	.file	"extr_dosinst.c_get_choice.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Choice: "
.LC1:
	.string	"%d"
.LC2:
	.string	"%2d  "
.LC3:
	.string	"%99s"
	.text
	.p2align 4
	.type	get_choice, @function
get_choice:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	lea	r13, .LC2[rip]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	lea	ebp, -1[rsi]
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	add	rbp, 2
	sub	rsp, 136
	.cfi_def_cfa_offset 192
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 120[rsp], rax
	xor	eax, eax
	lea	r15, 12[rsp]
	.p2align 4,,10
	.p2align 3
.L10:
	test	r14d, r14d
	jle	.L2
	mov	ebx, 1
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, r13
	xor	eax, eax
	call	printf@PLT
.L3:
	mov	rdi, QWORD PTR -8[r12+rbx*8]
	xor	eax, eax
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	esi, ebx
	add	rbx, 1
	cmp	rbx, rbp
	jne	.L6
.L2:
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	printf@PLT
	xor	eax, eax
	mov	rsi, r15
	lea	rdi, .LC1[rip]
	call	scanf@PLT
	cmp	eax, 1
	je	.L12
	lea	rsi, 16[rsp]
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	scanf@PLT
	mov	DWORD PTR 12[rsp], 0
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR 12[rsp]
	cmp	eax, r14d
	jge	.L10
	test	eax, eax
	jle	.L10
	mov	rdx, QWORD PTR 120[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 136
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_choice, .-get_choice
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_dosinst.c_get_choice.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Choice: \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"%2d  \000"
	.align	2
.LC3:
	.ascii	"%99s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_choice, %function
get_choice:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L15
	sub	sp, sp, #116
	mov	r7, r1
	ldr	r3, [r3]
	str	r3, [sp, #108]
	mov	r3,#0
	sub	r8, r0, #4
	ldr	r6, .L15+4
	ldr	r10, .L15+8
	ldr	r9, .L15+12
	add	r5, r8, r1, lsl #2
.L9:
	cmp	r7, #0
	ble	.L2
	mov	r4, r8
	mov	fp, #0
	b	.L3
.L6:
	mov	r1, fp
	mov	r0, r6
	bl	printf
.L3:
	ldr	r0, [r4, #4]!
	bl	printf
	mov	r0, #10
	bl	putchar
	cmp	r5, r4
	add	fp, fp, #1
	bne	.L6
.L2:
	mov	r0, r10
	bl	printf
	mov	r0, r9
	add	r1, sp, #4
	bl	scanf
	cmp	r0, #1
	beq	.L11
	ldr	r0, .L15+16
	add	r1, sp, #8
	bl	scanf
	mov	r3, #0
	str	r3, [sp, #4]
	b	.L9
.L11:
	ldr	r0, [sp, #4]
	cmp	r0, #0
	movgt	r3, #0
	movle	r3, #1
	cmp	r0, r7
	orrge	r3, r3, #1
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #108]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #116
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC4
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.size	get_choice, .-get_choice
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
