	.file	"445673.c"
	.intel_syntax noprefix
	.text
	.globl	emp
	.bss
	.align 32
	.type	emp, @object
	.size	emp, 32
emp:
	.zero	32
	.section	.rodata
.LC0:
	.string	"rb+"
.LC1:
	.string	"record"
.LC2:
	.string	"wb+"
.LC3:
	.string	"Error in opening file"
	.align 8
.LC4:
	.string	"1.Add new record to the database"
	.align 8
.LC5:
	.string	"2.Display record by name of employee"
	.align 8
.LC6:
	.string	"3.Modify an existing employee phone number by specifying the ID"
.LC7:
	.string	"4.Exit\n\n"
.LC8:
	.string	" %d"
	.align 8
.LC9:
	.string	"\t\tAdd new record to the database\n"
	.align 8
.LC10:
	.string	"\t\tDisplay record by name of employee\n"
	.align 8
.LC11:
	.string	"\t\tModify an existing employee phone number by specifying the ID\n"
.LC12:
	.string	"\t\tExiting......\n"
.LC13:
	.string	"\t\tInvalid choice\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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L9
	lea	rsi, .LC2[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L9
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, 4
	je	.L3
	cmp	eax, 4
	jg	.L4
	cmp	eax, 3
	je	.L5
	cmp	eax, 3
	jg	.L4
	cmp	eax, 1
	je	.L6
	cmp	eax, 2
	je	.L7
	jmp	.L4
.L6:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	add_new_record
	mov	DWORD PTR -20[rbp], eax
	jmp	.L8
.L7:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	display
	jmp	.L8
.L5:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	jmp	.L8
.L3:
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L4:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	nop
.L8:
	jmp	.L9
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC14:
	.string	"Enter number of records to be recorded"
.LC15:
	.string	"Enter ID:\t"
.LC16:
	.string	"\nEnter Name:\t"
.LC17:
	.string	"\t\tMAF"
.LC18:
	.string	"Enter Department:\t"
.LC19:
	.string	"Enter Phone number:\t"
	.text
	.globl	add_new_record
	.type	add_new_record, @function
add_new_record:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r12
	push	rbx
	sub	rsp, 112
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	QWORD PTR -120[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	r12, rax
	mov	DWORD PTR -108[rbp], 0
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rax, -108[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	ebx, DWORD PTR -108[rbp]
	movsx	rax, ebx
	sub	rax, 1
	mov	QWORD PTR -96[rbp], rax
	movsx	rax, ebx
	mov	QWORD PTR -144[rbp], rax
	mov	QWORD PTR -136[rbp], 0
	movsx	rax, ebx
	mov	r14, rax
	mov	r15d, 0
	movsx	rax, ebx
	sal	rax, 5
	mov	rdx, rax
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L12:
	cmp	rsp, rdx
	je	.L13
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L12
.L13:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L14
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L14:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -88[rbp], rax
	mov	DWORD PTR -104[rbp], 0
	jmp	.L15
.L23:
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L17:
	call	getchar@PLT
	mov	BYTE PTR -109[rbp], al
	cmp	BYTE PTR -109[rbp], 10
	je	.L16
	cmp	BYTE PTR -109[rbp], -1
	jne	.L17
.L16:
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -80[rbp]
	mov	edx, 30
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -80[rbp]
	mov	esi, 29
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR -80[rbp+rax]
	cmp	al, 10
	jne	.L18
	mov	eax, DWORD PTR -100[rbp]
	sub	eax, 1
	cdqe
	mov	BYTE PTR -80[rbp+rax], 0
.L18:
	mov	eax, DWORD PTR -100[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	sal	rax, 5
	add	rax, rcx
	add	rax, 8
	mov	QWORD PTR [rax], rdx
	mov	rdx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	sal	rax, 5
	add	rax, rdx
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L19
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	sal	rax, 5
	add	rax, rcx
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rcx, -80[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -80[rbp]
	mov	edx, 30
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -80[rbp]
	mov	esi, 29
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR -80[rbp+rax]
	cmp	al, 10
	jne	.L20
	mov	eax, DWORD PTR -100[rbp]
	sub	eax, 1
	cdqe
	mov	BYTE PTR -80[rbp+rax], 0
.L20:
	mov	eax, DWORD PTR -100[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	sal	rax, 5
	add	rax, rcx
	add	rax, 16
	mov	QWORD PTR [rax], rdx
	mov	rdx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	sal	rax, 5
	add	rax, rdx
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L21
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	sal	rax, 5
	add	rax, rcx
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rcx, -80[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L22:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L22
	add	DWORD PTR -104[rbp], 1
.L15:
	mov	eax, DWORD PTR -108[rbp]
	cmp	DWORD PTR -104[rbp], eax
	jl	.L23
	movsx	rax, ebx
	sal	rax, 5
	mov	rsi, rax
	mov	rdx, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -108[rbp]
	mov	rsp, r12
	mov	rbx, QWORD PTR -40[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	add_new_record, .-add_new_record
	.section	.rodata
.LC20:
	.string	"\tRecord %d\n\n"
.LC21:
	.string	"Enter ID:\t%d\n"
.LC22:
	.string	"Enter Name:\t%s\n"
.LC23:
	.string	"Enter Department:\t%s\n"
.LC24:
	.string	"Enter Phone number:\t%d\n\n"
	.text
	.globl	display
	.type	display, @function
display:
.LFB8:
	.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L27
.L28:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR emp[rip]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR emp[rip+8]
	mov	rsi, rax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR emp[rip+16]
	mov	rsi, rax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR emp[rip+24]
	mov	esi, eax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L27:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L28
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	display, .-display
	.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	"445673.c"
	.text
	.comm	emp,16,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"rb+\000"
	.align	2
.LC1:
	.ascii	"record\000"
	.align	2
.LC2:
	.ascii	"wb+\000"
	.align	2
.LC3:
	.ascii	"Error in opening file\000"
	.align	2
.LC4:
	.ascii	"1.Add new record to the database\000"
	.align	2
.LC5:
	.ascii	"2.Display record by name of employee\000"
	.align	2
.LC6:
	.ascii	"3.Modify an existing employee phone number by speci"
	.ascii	"fying the ID\000"
	.align	2
.LC7:
	.ascii	"4.Exit\012\012\000"
	.align	2
.LC8:
	.ascii	" %d\000"
	.align	2
.LC9:
	.ascii	"\011\011Add new record to the database\012\000"
	.align	2
.LC10:
	.ascii	"\011\011Display record by name of employee\012\000"
	.align	2
.LC11:
	.ascii	"\011\011Modify an existing employee phone number by"
	.ascii	" specifying the ID\012\000"
	.align	2
.LC12:
	.ascii	"\011\011Exiting......\012\000"
	.align	2
.LC13:
	.ascii	"\011\011Invalid choice\012\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L12+4
	ldr	r0, .L12+8
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L10
	ldr	r1, .L12+12
	ldr	r0, .L12+8
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L12+16
	bl	puts
	mov	r0, #1
	bl	exit
.L10:
	ldr	r0, .L12+20
	bl	puts
	ldr	r0, .L12+24
	bl	puts
	ldr	r0, .L12+28
	bl	puts
	ldr	r0, .L12+32
	bl	puts
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L12+36
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L4
.L8:
	ldr	r0, .L12+40
	bl	puts
	ldr	r0, [fp, #-16]
	bl	add_new_record
	str	r0, [fp, #-12]
	b	.L9
.L7:
	ldr	r0, .L12+44
	bl	puts
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	display
	b	.L9
.L6:
	ldr	r0, .L12+48
	bl	puts
	b	.L9
.L4:
	ldr	r0, .L12+52
	bl	puts
	mov	r0, #0
	bl	exit
.L3:
	ldr	r0, .L12+56
	bl	puts
	nop
.L9:
	b	.L10
.L13:
	.align	2
.L12:
	.word	.LC14
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.section	.rodata
	.align	2
.LC15:
	.ascii	"Enter number of records to be recorded\000"
	.align	2
.LC16:
	.ascii	"Enter ID:\011\000"
	.align	2
.LC17:
	.ascii	"\012Enter Name:\011\000"
	.align	2
.LC18:
	.ascii	"\011\011MAF\000"
	.align	2
.LC19:
	.ascii	"Enter Department:\011\000"
	.align	2
.LC20:
	.ascii	"Enter Phone number:\011\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	add_new_record
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_new_record, %function
add_new_record:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #72
	str	r0, [fp, #-80]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r5, r3
	mov	r3, #0
	str	r3, [fp, #-68]
	ldr	r0, .L25+4
	bl	puts
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L25+8
	bl	__isoc99_scanf
	ldr	r4, [fp, #-68]
	sub	r3, r4, #1
	str	r3, [fp, #-60]
	mov	r3, r4
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #7
	orr	r3, r3, r0, lsr #25
	lsl	r2, r0, #7
	mov	r3, r4
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #7
	orr	r3, r3, r0, lsr #25
	lsl	r2, r0, #7
	mov	r3, r4
	lsl	r3, r3, #4
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L15
.L22:
	ldr	r0, .L25+12
	bl	printf
	nop
.L16:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-69]
	ldrb	r3, [fp, #-69]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L16
	ldr	r0, .L25+16
	bl	printf
	sub	r3, fp, #48
	mov	r2, #30
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L25+20
	ldr	r2, [r3]
	sub	r3, fp, #48
	mov	r1, #29
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #48
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	sub	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-36]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L17
	ldr	r3, [fp, #-52]
	sub	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-36]
.L17:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r1, r3
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #4
	add	r3, r2, r3
	str	r1, [r3, #4]
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L18
	ldr	r0, .L25+24
	bl	puts
	mov	r0, #1
	bl	exit
.L18:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-52]
	sub	r1, fp, #48
	mov	r0, r3
	bl	strncpy
	ldr	r0, .L25+28
	bl	printf
	sub	r3, fp, #48
	mov	r2, #30
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L25+20
	ldr	r2, [r3]
	sub	r3, fp, #48
	mov	r1, #29
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #48
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	sub	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-36]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L19
	ldr	r3, [fp, #-52]
	sub	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-36]
.L19:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r1, r3
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #4
	add	r3, r2, r3
	str	r1, [r3, #8]
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L20
	ldr	r0, .L25+24
	bl	puts
	mov	r0, #1
	bl	exit
.L20:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-52]
	sub	r1, fp, #48
	mov	r0, r3
	bl	strncpy
	ldr	r0, .L25+32
	bl	printf
	nop
.L21:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L21
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L15:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	blt	.L22
	mov	r3, r4
	lsl	r1, r3, #4
	ldr	r3, [fp, #-80]
	mov	r2, #1
	ldr	r0, [fp, #-56]
	bl	fwrite
	ldr	r3, [fp, #-68]
	mov	sp, r5
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC21
	.word	.LC15
	.word	.LC8
	.word	.LC16
	.word	.LC17
	.word	stdin
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	add_new_record, .-add_new_record
	.section	.rodata
	.align	2
.LC22:
	.ascii	"\011Record %d\012\012\000"
	.align	2
.LC23:
	.ascii	"Enter ID:\011%d\012\000"
	.align	2
.LC24:
	.ascii	"Enter Name:\011%s\012\000"
	.align	2
.LC25:
	.ascii	"Enter Department:\011%s\012\000"
	.align	2
.LC26:
	.ascii	"Enter Phone number:\011%d\012\012\000"
	.text
	.align	2
	.global	display
	.syntax unified
	.arm
	.fpu softvfp
	.type	display, %function
display:
	@ 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, #0
	str	r3, [fp, #-8]
	b	.L28
.L29:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L30
	bl	printf
	ldr	r3, .L30+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L30+8
	bl	printf
	ldr	r3, .L30+4
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L30+12
	bl	printf
	ldr	r3, .L30+4
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, .L30+16
	bl	printf
	ldr	r3, .L30+4
	ldr	r3, [r3, #12]
	mov	r1, r3
	ldr	r0, .L30+20
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L28:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L29
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC22
	.word	emp
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.size	display, .-display
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
