	.file	"93888732.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"n and k must be from 0 to 29, and k must not be larger than n."
.LC1:
	.string	"k must not be larger than n."
	.text
	.globl	choose
	.type	choose, @function
choose:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -4[rbp], 1
	cmp	DWORD PTR -20[rbp], 0
	js	.L2
	cmp	DWORD PTR -20[rbp], 29
	jg	.L2
	cmp	DWORD PTR -24[rbp], 0
	js	.L2
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jg	.L2
	cmp	DWORD PTR -24[rbp], 0
	je	.L3
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jne	.L4
.L3:
	mov	eax, 1
	jmp	.L5
.L4:
	cmp	DWORD PTR -24[rbp], 1
	jne	.L6
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -24[rbp], eax
	jle	.L7
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -24[rbp], eax
.L7:
	mov	DWORD PTR -8[rbp], 1
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
	sub	DWORD PTR -20[rbp], 1
	add	DWORD PTR -8[rbp], 1
.L8:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L9
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L5
.L2:
	cmp	DWORD PTR -20[rbp], 0
	js	.L10
	cmp	DWORD PTR -24[rbp], 0
	js	.L10
	cmp	DWORD PTR -20[rbp], 29
	jg	.L10
	cmp	DWORD PTR -24[rbp], 29
	jle	.L11
.L10:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L12
.L11:
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L12:
	mov	eax, 0
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	choose, .-choose
	.section	.rodata
.LC2:
	.string	"%d "
.LC3:
	.string	"Row must be from 0 to 29."
	.text
	.globl	pascal_triangle
	.type	pascal_triangle, @function
pascal_triangle:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 0
	js	.L14
	cmp	DWORD PTR -20[rbp], 29
	jg	.L14
	mov	DWORD PTR -4[rbp], 0
	jmp	.L15
.L16:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	choose
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L15:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jle	.L16
	mov	edi, 10
	call	putchar@PLT
	jmp	.L17
.L14:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	nop
.L17:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	pascal_triangle, .-pascal_triangle
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 10
	call	pascal_triangle
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"93888732.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata
	.align	2
.LC0:
	.ascii	"n and k must be from 0 to 29, and k must not be lar"
	.ascii	"ger than n.\000"
	.align	2
.LC1:
	.ascii	"k must not be larger than n.\000"
	.text
	.align	2
	.global	choose
	.syntax unified
	.arm
	.fpu softvfp
	.type	choose, %function
choose:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L2
	ldr	r3, [fp, #-16]
	cmp	r3, #29
	bgt	.L2
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L2
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bgt	.L2
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L3
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L4
.L3:
	mov	r3, #1
	b	.L5
.L4:
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bne	.L6
	ldr	r3, [fp, #-16]
	b	.L5
.L6:
	ldr	r3, [fp, #-16]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	ble	.L7
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	str	r3, [fp, #-20]
.L7:
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L8
.L9:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L8:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L9
	ldr	r3, [fp, #-8]
	b	.L5
.L2:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L10
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L10
	ldr	r3, [fp, #-16]
	cmp	r3, #29
	bgt	.L10
	ldr	r3, [fp, #-20]
	cmp	r3, #29
	ble	.L11
.L10:
	ldr	r0, .L13
	bl	puts
	b	.L12
.L11:
	ldr	r0, .L13+4
	bl	puts
.L12:
	mov	r3, #0
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	.LC1
	.size	choose, .-choose
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%d \000"
	.align	2
.LC3:
	.ascii	"Row must be from 0 to 29.\000"
	.text
	.align	2
	.global	pascal_triangle
	.syntax unified
	.arm
	.fpu softvfp
	.type	pascal_triangle, %function
pascal_triangle:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L16
	ldr	r3, [fp, #-16]
	cmp	r3, #29
	bgt	.L16
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L17
.L18:
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	choose
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L20
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L17:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	ble	.L18
	mov	r0, #10
	bl	putchar
	b	.L19
.L16:
	ldr	r0, .L20+4
	bl	puts
	nop
.L19:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC2
	.word	.LC3
	.size	pascal_triangle, .-pascal_triangle
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #10
	bl	pascal_triangle
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
