	.file	"483353.c"
	.intel_syntax noprefix
	.text
	.globl	menu
	.section	.rodata
.LC0:
	.string	"a - add new record"
.LC1:
	.string	"d - delete record"
.LC2:
	.string	"q - quit"
	.section	.data.rel.local,"aw"
	.align 32
	.type	menu, @object
	.size	menu, 32
menu:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	0
	.section	.rodata
.LC3:
	.string	"You are not a terminal!\n"
.LC4:
	.string	"Please select an action"
.LC5:
	.string	"You have chosen: %c\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fileno@PLT
	mov	edi, eax
	mov	eax, 0
	call	isatty@PLT
	test	eax, eax
	jne	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rsi, menu[rip]
	lea	rdi, .LC4[rip]
	call	getchoice
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -4[rbp], 113
	jne	.L2
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC6:
	.string	"Choice: %s\n"
	.align 8
.LC7:
	.string	"Incorrect choice, select again"
	.text
	.globl	getchoice
	.type	getchoice, @function
getchoice:
.LFB7:
	.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -16[rbp], 0
.L11:
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	puts@PLT
	add	QWORD PTR -8[rbp], 8
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L5
	call	getchar@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L6
.L9:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	DWORD PTR -12[rbp], eax
	jne	.L7
	mov	DWORD PTR -16[rbp], 1
	jmp	.L8
.L7:
	add	QWORD PTR -8[rbp], 8
.L6:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L9
.L8:
	cmp	DWORD PTR -16[rbp], 0
	jne	.L10
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L10:
	cmp	DWORD PTR -16[rbp], 0
	je	.L11
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getchoice, .-getchoice
	.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	"483353.c"
	.text
	.global	menu
	.section	.rodata
	.align	2
.LC0:
	.ascii	"a - add new record\000"
	.align	2
.LC1:
	.ascii	"d - delete record\000"
	.align	2
.LC2:
	.ascii	"q - quit\000"
	.data
	.align	2
	.type	menu, %object
	.size	menu, 16
menu:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	0
	.section	.rodata
	.align	2
.LC3:
	.ascii	"You are not a terminal!\012\000"
	.align	2
.LC4:
	.ascii	"Please select an action\000"
	.align	2
.LC5:
	.ascii	"You have chosen: %c\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r0, r3
	bl	fileno
	mov	r3, r0
	mov	r0, r3
	bl	isatty
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L3+4
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L3+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L2:
	ldr	r1, .L3+12
	ldr	r0, .L3+16
	bl	getchoice
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L3+20
	bl	printf
	ldr	r3, [fp, #-8]
	cmp	r3, #113
	bne	.L2
	mov	r0, #0
	bl	exit
.L4:
	.align	2
.L3:
	.word	stdout
	.word	stderr
	.word	.LC3
	.word	menu
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Choice: %s\012\000"
	.align	2
.LC7:
	.ascii	"Incorrect choice, select again\000"
	.text
	.align	2
	.global	getchoice
	.syntax unified
	.arm
	.fpu softvfp
	.type	getchoice, %function
getchoice:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
.L13:
	ldr	r1, [fp, #-24]
	ldr	r0, .L15
	bl	printf
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-12]
	b	.L6
.L7:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	str	r3, [fp, #-12]
.L6:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	bl	getchar
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-12]
	b	.L8
.L11:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	bne	.L9
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L10
.L9:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	str	r3, [fp, #-12]
.L8:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L11
.L10:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L15+4
	bl	puts
.L12:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC6
	.word	.LC7
	.size	getchoice, .-getchoice
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
