	.file	"205130.c"
	.intel_syntax noprefix
	.text
	.globl	head
	.bss
	.align 8
	.type	head, @object
	.size	head, 8
head:
	.zero	8
	.globl	structure_member_prefix
	.section	.rodata
	.align 32
	.type	structure_member_prefix, @object
	.size	structure_member_prefix, 56
structure_member_prefix:
	.string	""
	.string	""
	.zero	5
	.string	""
	.string	""
	.zero	5
	.string	""
	.string	""
	.zero	5
	.string	""
	.string	""
	.zero	5
	.string	"Name: "
	.string	"Sex: "
	.zero	1
	.string	"Age: "
	.zero	1
	.string	"Job: "
	.zero	1
	.globl	structure_member_name
	.align 16
	.type	structure_member_name, @object
	.size	structure_member_name, 20
structure_member_name:
	.string	"name"
	.string	"sex"
	.zero	1
	.string	"age"
	.zero	1
	.string	"job"
	.zero	1
	.globl	file_read_failure
	.align 8
.LC0:
	.string	"Failed to read database file, please ensure that it is formatted correctly.\n"
	.section	.data.rel.local,"aw"
	.align 8
	.type	file_read_failure, @object
	.size	file_read_failure, 8
file_read_failure:
	.quad	.LC0
	.section	.rodata
.LC1:
	.string	"Usage: %s [<database-file>]\n"
.LC2:
	.string	"\nOptions:\n"
	.align 8
.LC3:
	.string	"%d: Add new employee to database\n"
	.align 8
.LC4:
	.string	"%d: Delete employee from database\n"
.LC5:
	.string	"%d: Print database to screen\n"
.LC6:
	.string	"%d: Exit database program\n"
.LC7:
	.string	"\nEnter option: "
.LC8:
	.string	"%d"
.LC9:
	.string	"corrupted menu choice\n"
.LC10:
	.string	"illegal choice %d\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, 352
	mov	DWORD PTR -340[rbp], edi
	mov	QWORD PTR -352[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -340[rbp], 1
	je	.L2
	cmp	DWORD PTR -340[rbp], 2
	je	.L2
	mov	rax, QWORD PTR -352[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L2:
	cmp	DWORD PTR -340[rbp], 2
	jne	.L16
	mov	rax, QWORD PTR -352[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	read_employee_database
.L16:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 10
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, 0
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, 1
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, 2
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, 3
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdin[rip]
	lea	rcx, -320[rbp]
	mov	edx, 300
	mov	rsi, rcx
	mov	rdi, rax
	call	read_line
	test	eax, eax
	jne	.L19
	lea	rdx, -328[rbp]
	lea	rax, -320[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -324[rbp], eax
	cmp	DWORD PTR -324[rbp], 1
	je	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	jmp	.L15
.L6:
	mov	eax, DWORD PTR -328[rbp]
	cmp	eax, 3
	je	.L20
	cmp	eax, 3
	jg	.L8
	cmp	eax, 2
	je	.L9
	cmp	eax, 2
	jg	.L8
	test	eax, eax
	je	.L10
	cmp	eax, 1
	je	.L11
	jmp	.L8
.L10:
	call	menu_add_employee
	jmp	.L12
.L11:
	call	menu_delete_employee
	jmp	.L12
.L9:
	call	menu_print_database
	jmp	.L12
.L8:
	mov	edx, DWORD PTR -328[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L12
.L20:
	nop
.L12:
	mov	eax, DWORD PTR -328[rbp]
	cmp	eax, 3
	jne	.L16
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	jmp	.L18
.L19:
	nop
.L15:
	jmp	.L16
.L18:
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.type	read_line, @function
read_line:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -4[rbp], 0
.L26:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -5[rbp], al
	cmp	BYTE PTR -5[rbp], -1
	jne	.L22
	mov	eax, -1
	jmp	.L23
.L22:
	cmp	BYTE PTR -5[rbp], 10
	jne	.L24
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, 0
	jmp	.L23
.L24:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jge	.L26
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -4[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -5[rbp]
	mov	BYTE PTR [rdx], al
	jmp	.L26
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	read_line, .-read_line
	.type	read_string, @function
read_string:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	DWORD PTR -60[rbp], ecx
	mov	DWORD PTR -20[rbp], 0
	jmp	.L28
.L31:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -21[rbp], al
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -21[rbp], al
	je	.L29
	mov	eax, -1
	jmp	.L30
.L29:
	add	DWORD PTR -20[rbp], 1
.L28:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L31
	mov	edx, DWORD PTR -60[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	read_line
.L30:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	read_string, .-read_string
	.type	print_error, @function
print_error:
.LFB9:
	.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	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	rdx, QWORD PTR stderr[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	cmp	DWORD PTR -12[rbp], 0
	je	.L35
	mov	edi, 1
	call	exit@PLT
.L35:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	print_error, .-print_error
	.section	.rodata
.LC11:
	.string	"Invalid "
.LC12:
	.string	", please enter again.\n"
	.align 8
.LC13:
	.string	" found in database file, program will now exit.\n"
	.text
	.type	get_input_validity_check, @function
get_input_validity_check:
.LFB10:
	.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], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	cmp	DWORD PTR -4[rbp], 0
	jle	.L37
	cmp	DWORD PTR -8[rbp], 0
	jne	.L37
	mov	esi, 0
	lea	rdi, .LC11[rip]
	call	print_error
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, structure_member_name[rip]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	print_error
	mov	esi, 0
	lea	rdi, .LC12[rip]
	call	print_error
	jmp	.L38
.L37:
	cmp	DWORD PTR -4[rbp], 0
	jle	.L38
	cmp	DWORD PTR -8[rbp], 0
	je	.L38
	mov	esi, 0
	lea	rdi, .LC11[rip]
	call	print_error
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, structure_member_name[rip]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	print_error
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	print_error
.L38:
	cmp	DWORD PTR -8[rbp], 0
	jne	.L41
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	lea	rdx, 28[rax]
	lea	rax, structure_member_prefix[rip]
	add	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	rdi, rdx
	call	fputs@PLT
	nop
.L41:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	get_input_validity_check, .-get_input_validity_check
	.section	.rodata
	.align 8
.LC14:
	.string	"Problem allocating memory for another employee.\nThe program will now exit.\n"
.LC15:
	.string	"%1[^\n]"
.LC16:
	.string	"%d%1[^\n]"
	.text
	.type	get_input, @function
get_input:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 352
	mov	QWORD PTR -344[rbp], rdi
	mov	DWORD PTR -348[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 232
	call	malloc@PLT
	mov	QWORD PTR -328[rbp], rax
	cmp	QWORD PTR -328[rbp], 0
	jne	.L43
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	print_error
.L43:
	mov	rax, QWORD PTR -328[rbp]
	mov	BYTE PTR [rax], 0
	mov	DWORD PTR -332[rbp], 0
	jmp	.L44
.L46:
	mov	ecx, DWORD PTR -348[rbp]
	mov	eax, DWORD PTR -332[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	edi, eax
	call	get_input_validity_check
	mov	rdx, QWORD PTR -328[rbp]
	mov	eax, DWORD PTR -348[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	sal	rax, 2
	lea	rcx, structure_member_prefix[rip]
	lea	rsi, [rax+rcx]
	mov	rax, QWORD PTR -344[rbp]
	mov	ecx, 100
	mov	rdi, rax
	call	read_string
	cmp	eax, -1
	jne	.L45
	mov	rax, QWORD PTR file_read_failure[rip]
	mov	esi, 1
	mov	rdi, rax
	call	print_error
.L45:
	add	DWORD PTR -332[rbp], 1
.L44:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, -320[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	test	eax, eax
	jle	.L46
	mov	rax, QWORD PTR -328[rbp]
	mov	BYTE PTR 101[rax], 0
	mov	BYTE PTR -319[rbp], 97
	mov	DWORD PTR -332[rbp], 0
	jmp	.L47
.L51:
	mov	ecx, DWORD PTR -348[rbp]
	mov	eax, DWORD PTR -332[rbp]
	mov	edx, 1
	mov	esi, ecx
	mov	edi, eax
	call	get_input_validity_check
	mov	eax, DWORD PTR -348[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	lea	rdx, 7[rax]
	lea	rax, structure_member_prefix[rip]
	lea	rsi, [rdx+rax]
	lea	rdx, -320[rbp]
	mov	rax, QWORD PTR -344[rbp]
	mov	ecx, 2
	mov	rdi, rax
	call	read_string
	cmp	eax, -1
	jne	.L48
	mov	rax, QWORD PTR file_read_failure[rip]
	mov	esi, 1
	mov	rdi, rax
	call	print_error
.L48:
	movzx	eax, BYTE PTR -319[rbp]
	test	al, al
	jne	.L49
	movzx	edx, BYTE PTR -320[rbp]
	mov	rax, QWORD PTR -328[rbp]
	mov	BYTE PTR 101[rax], dl
	mov	BYTE PTR -319[rbp], 97
.L49:
	add	DWORD PTR -332[rbp], 1
.L47:
	mov	rax, QWORD PTR -328[rbp]
	movzx	eax, BYTE PTR 101[rax]
	cmp	al, 77
	je	.L50
	mov	rax, QWORD PTR -328[rbp]
	movzx	eax, BYTE PTR 101[rax]
	cmp	al, 70
	jne	.L51
.L50:
	mov	rax, QWORD PTR -328[rbp]
	mov	DWORD PTR 104[rax], -1
	mov	DWORD PTR -332[rbp], 0
	jmp	.L52
.L55:
	mov	ecx, DWORD PTR -348[rbp]
	mov	eax, DWORD PTR -332[rbp]
	mov	edx, 2
	mov	esi, ecx
	mov	edi, eax
	call	get_input_validity_check
	mov	eax, DWORD PTR -348[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	lea	rdx, 14[rax]
	lea	rax, structure_member_prefix[rip]
	lea	rsi, [rdx+rax]
	lea	rdx, -320[rbp]
	mov	rax, QWORD PTR -344[rbp]
	mov	ecx, 300
	mov	rdi, rax
	call	read_string
	cmp	eax, -1
	jne	.L53
	mov	rax, QWORD PTR file_read_failure[rip]
	mov	esi, 1
	mov	rdi, rax
	call	print_error
.L53:
	mov	rax, QWORD PTR -328[rbp]
	lea	rsi, 104[rax]
	lea	rdx, -320[rbp]
	lea	rax, -320[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	je	.L54
	mov	rax, QWORD PTR -328[rbp]
	mov	DWORD PTR 104[rax], -1
.L54:
	add	DWORD PTR -332[rbp], 1
.L52:
	mov	rax, QWORD PTR -328[rbp]
	mov	eax, DWORD PTR 104[rax]
	test	eax, eax
	js	.L55
	mov	rax, QWORD PTR -328[rbp]
	mov	BYTE PTR 108[rax], 0
	mov	DWORD PTR -332[rbp], 0
	jmp	.L56
.L58:
	mov	ecx, DWORD PTR -348[rbp]
	mov	eax, DWORD PTR -332[rbp]
	mov	edx, 3
	mov	esi, ecx
	mov	edi, eax
	call	get_input_validity_check
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 108[rax]
	mov	eax, DWORD PTR -348[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	sal	rax, 2
	lea	rcx, 21[rax]
	lea	rax, structure_member_prefix[rip]
	lea	rsi, [rcx+rax]
	mov	rax, QWORD PTR -344[rbp]
	mov	ecx, 100
	mov	rdi, rax
	call	read_string
	cmp	eax, -1
	jne	.L57
	mov	rax, QWORD PTR file_read_failure[rip]
	mov	esi, 1
	mov	rdi, rax
	call	print_error
.L57:
	add	DWORD PTR -332[rbp], 1
.L56:
	mov	rax, QWORD PTR -328[rbp]
	lea	rcx, 108[rax]
	lea	rax, -320[rbp]
	mov	rdx, rax
	lea	rsi, .LC15[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	test	eax, eax
	jle	.L58
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L60
	call	__stack_chk_fail@PLT
.L60:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	get_input, .-get_input
	.section	.rodata
.LC17:
	.string	"%s%s\n"
.LC18:
	.string	"%s%c\n"
.LC19:
	.string	"%s%d\n"
	.text
	.type	print_single_employee, @function
print_single_employee:
.LFB12:
	.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rdx
	lea	rdx, structure_member_prefix[rip+28]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR 101[rax]
	movsx	edx, al
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, edx
	lea	rdx, structure_member_prefix[rip+35]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 104[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, edx
	lea	rdx, structure_member_prefix[rip+42]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 108[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rdx
	lea	rdx, structure_member_prefix[rip+49]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	print_single_employee, .-print_single_employee
	.type	place_employee, @function
place_employee:
.LFB13:
	.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	rax, QWORD PTR head[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR head[rip]
	test	rax, rax
	jne	.L64
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR head[rip], rax
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR 224[rax], 0
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR 216[rax], 0
	jmp	.L63
.L64:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR head[rip]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	js	.L66
	mov	rax, QWORD PTR head[rip]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 216[rax], rdx
	mov	rdx, QWORD PTR head[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 224[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 216[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR head[rip], rax
	jmp	.L63
.L66:
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -8[rbp], rax
.L70:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jg	.L67
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 216[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L68
.L67:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 224[rax]
	test	rax, rax
	je	.L73
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 224[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L70
.L73:
	nop
.L68:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 216[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 224[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 224[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 224[rax]
	test	rax, rax
	je	.L71
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 224[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 216[rax], rdx
.L71:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 224[rax], rdx
	nop
.L63:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	place_employee, .-place_employee
	.type	search_for_employee, @function
search_for_employee:
.LFB14:
	.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	rax, QWORD PTR head[rip]
	test	rax, rax
	jne	.L75
	mov	eax, 0
	jmp	.L76
.L75:
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L77
.L80:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L81
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 224[rax]
	mov	QWORD PTR -8[rbp], rax
.L77:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L80
	jmp	.L79
.L81:
	nop
.L79:
	mov	rax, QWORD PTR -8[rbp]
.L76:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	search_for_employee, .-search_for_employee
	.type	delete_employee_from_list, @function
delete_employee_from_list:
.LFB15:
	.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 216[rax]
	test	rax, rax
	je	.L83
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 216[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 224[rdx]
	mov	QWORD PTR 224[rax], rdx
.L83:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 224[rax]
	test	rax, rax
	je	.L84
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 224[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 216[rdx]
	mov	QWORD PTR 216[rax], rdx
.L84:
	mov	rax, QWORD PTR head[rip]
	cmp	QWORD PTR -8[rbp], rax
	jne	.L85
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 224[rax]
	mov	QWORD PTR head[rip], rax
.L85:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	delete_employee_from_list, .-delete_employee_from_list
	.type	menu_add_employee, @function
menu_add_employee:
.LFB16:
	.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	rax, QWORD PTR stdin[rip]
	mov	esi, 0
	mov	rdi, rax
	call	get_input
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	place_employee
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	menu_add_employee, .-menu_add_employee
	.type	menu_print_database, @function
menu_print_database:
.LFB17:
	.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	rax, QWORD PTR head[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L90
.L91:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	print_single_employee
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 224[rax]
	mov	QWORD PTR -8[rbp], rax
.L90:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L91
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	menu_print_database, .-menu_print_database
	.section	.rodata
	.align 8
.LC20:
	.string	"Please enter the name of the employee to be deleted: "
.LC21:
	.string	"Employee not found.\n"
	.text
	.type	menu_delete_employee, @function
menu_delete_employee:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 53
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdin[rip]
	lea	rcx, -112[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	rdi, rax
	call	read_line
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	search_for_employee
	mov	QWORD PTR -120[rbp], rax
	cmp	QWORD PTR -120[rbp], 0
	jne	.L94
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC21[rip]
	call	fwrite@PLT
	jmp	.L93
.L94:
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	delete_employee_from_list
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	search_for_employee
	mov	QWORD PTR -120[rbp], rax
	jmp	.L96
.L97:
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	delete_employee_from_list
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	search_for_employee
	mov	QWORD PTR -120[rbp], rax
.L96:
	cmp	QWORD PTR -120[rbp], 0
	jne	.L97
	nop
.L93:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L99
	call	__stack_chk_fail@PLT
.L99:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	menu_delete_employee, .-menu_delete_employee
	.type	read_employee_database, @function
read_employee_database:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	read_employee_database, .-read_employee_database
	.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	"205130.c"
	.text
	.global	head
	.bss
	.align	2
	.type	head, %object
	.size	head, 4
head:
	.space	4
	.global	structure_member_prefix
	.section	.rodata
	.align	2
	.type	structure_member_prefix, %object
	.size	structure_member_prefix, 56
structure_member_prefix:
	.ascii	"\000\000"
	.space	5
	.ascii	"\000\000"
	.space	5
	.ascii	"\000\000"
	.space	5
	.ascii	"\000\000"
	.space	5
	.ascii	"Name: \000"
	.ascii	"Sex: \000"
	.space	1
	.ascii	"Age: \000"
	.space	1
	.ascii	"Job: \000"
	.space	1
	.global	structure_member_name
	.align	2
	.type	structure_member_name, %object
	.size	structure_member_name, 20
structure_member_name:
	.ascii	"name\000"
	.ascii	"sex\000"
	.space	1
	.ascii	"age\000"
	.space	1
	.ascii	"job\000"
	.space	1
	.global	file_read_failure
	.align	2
.LC0:
	.ascii	"Failed to read database file, please ensure that it"
	.ascii	" is formatted correctly.\012\000"
	.data
	.align	2
	.type	file_read_failure, %object
	.size	file_read_failure, 4
file_read_failure:
	.word	.LC0
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Usage: %s [<database-file>]\012\000"
	.align	2
.LC2:
	.ascii	"\012Options:\012\000"
	.align	2
.LC3:
	.ascii	"%d: Add new employee to database\012\000"
	.align	2
.LC4:
	.ascii	"%d: Delete employee from database\012\000"
	.align	2
.LC5:
	.ascii	"%d: Print database to screen\012\000"
	.align	2
.LC6:
	.ascii	"%d: Exit database program\012\000"
	.align	2
.LC7:
	.ascii	"\012Enter option: \000"
	.align	2
.LC8:
	.ascii	"%d\000"
	.align	2
.LC9:
	.ascii	"corrupted menu choice\012\000"
	.align	2
.LC10:
	.ascii	"illegal choice %d\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 328
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #328
	str	r0, [fp, #-328]
	str	r1, [fp, #-332]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-328]
	cmp	r3, #1
	beq	.L2
	ldr	r3, [fp, #-328]
	cmp	r3, #2
	beq	.L2
	ldr	r3, .L22+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-332]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L22+8
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L2:
	ldr	r3, [fp, #-328]
	cmp	r3, #2
	bne	.L17
	ldr	r3, [fp, #-332]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	read_employee_database
.L17:
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #1
	ldr	r0, .L22+12
	bl	fwrite
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, .L22+16
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, .L22+20
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r2, #2
	ldr	r1, .L22+24
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r2, #3
	ldr	r1, .L22+28
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L22+32
	bl	fwrite
	ldr	r3, .L22+36
	ldr	r3, [r3]
	sub	r1, fp, #312
	mov	r2, #300
	mov	r0, r3
	bl	read_line
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	sub	r2, fp, #320
	sub	r3, fp, #312
	ldr	r1, .L22+40
	mov	r0, r3
	bl	__isoc99_sscanf
	str	r0, [fp, #-316]
	ldr	r3, [fp, #-316]
	cmp	r3, #1
	beq	.L6
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L22+44
	bl	fwrite
	b	.L16
.L6:
	ldr	r3, [fp, #-320]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L7
.L9:
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L21
.L12:
	bl	menu_add_employee
	b	.L13
.L11:
	bl	menu_delete_employee
	b	.L13
.L10:
	bl	menu_print_database
	b	.L13
.L7:
	ldr	r3, .L22+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-320]
	ldr	r1, .L22+48
	mov	r0, r3
	bl	fprintf
	b	.L13
.L21:
	nop
.L13:
	ldr	r3, [fp, #-320]
	cmp	r3, #3
	bne	.L17
	mov	r3, #0
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	b	.L19
.L20:
	nop
.L16:
	b	.L17
.L19:
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC11
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	stdin
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_line, %function
read_line:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
.L28:
	ldr	r0, [fp, #-16]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L25
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	b	.L29
.L25:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bge	.L28
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	str	r2, [fp, #-8]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldrb	r2, [fp, #-9]
	strb	r2, [r3]
	b	.L28
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	read_line, .-read_line
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_string, %function
read_string:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L31
.L34:
	ldr	r0, [fp, #-16]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-9]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-9]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L32
	mvn	r3, #0
	b	.L33
.L32:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L31:
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bhi	.L34
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	read_line
	mov	r3, r0
.L33:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	read_string, .-read_string
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_error, %function
print_error:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, .L39
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	fputs
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L38
	mov	r0, #1
	bl	exit
.L38:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	stderr
	.size	print_error, .-print_error
	.section	.rodata
	.align	2
.LC12:
	.ascii	"Invalid \000"
	.align	2
.LC13:
	.ascii	", please enter again.\012\000"
	.align	2
.LC14:
	.ascii	" found in database file, program will now exit.\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_input_validity_check, %function
get_input_validity_check:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L42
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L42
	mov	r1, #0
	ldr	r0, .L47
	bl	print_error
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, .L47+4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	print_error
	mov	r1, #0
	ldr	r0, .L47+8
	bl	print_error
	b	.L43
.L42:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L43
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L43
	mov	r1, #0
	ldr	r0, .L47
	bl	print_error
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, .L47+4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	print_error
	mov	r1, #1
	ldr	r0, .L47+12
	bl	print_error
.L43:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L46
	ldr	r3, .L47+16
	ldr	r1, [r3]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	add	r3, r3, #28
	ldr	r2, .L47+20
	add	r3, r3, r2
	mov	r0, r3
	bl	fputs
	nop
.L46:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC12
	.word	structure_member_name
	.word	.LC13
	.word	.LC14
	.word	stderr
	.word	structure_member_prefix
	.size	get_input_validity_check, .-get_input_validity_check
	.section	.rodata
	.align	2
.LC15:
	.ascii	"Problem allocating memory for another employee.\012"
	.ascii	"The program will now exit.\012\000"
	.align	2
.LC16:
	.ascii	"%1[^\012]\000"
	.align	2
.LC17:
	.ascii	"%d%1[^\012]\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_input, %function
get_input:
	@ args = 0, pretend = 0, frame = 328
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #328
	str	r0, [fp, #-328]
	str	r1, [fp, #-332]
	ldr	r3, .L68
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #220
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-316]
	ldr	r3, [fp, #-316]
	cmp	r3, #0
	bne	.L50
	mov	r1, #1
	ldr	r0, .L68+4
	bl	print_error
.L50:
	ldr	r3, [fp, #-316]
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-320]
	b	.L51
.L53:
	mov	r2, #0
	ldr	r1, [fp, #-332]
	ldr	r0, [fp, #-320]
	bl	get_input_validity_check
	ldr	r2, [fp, #-332]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L68+8
	add	r1, r3, r2
	ldr	r2, [fp, #-316]
	mov	r3, #100
	ldr	r0, [fp, #-328]
	bl	read_string
	mov	r3, r0
	cmn	r3, #1
	bne	.L52
	ldr	r3, .L68+12
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	print_error
.L52:
	ldr	r3, [fp, #-320]
	add	r3, r3, #1
	str	r3, [fp, #-320]
.L51:
	ldr	r3, [fp, #-316]
	sub	r2, fp, #312
	ldr	r1, .L68+16
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #0
	ble	.L53
	ldr	r3, [fp, #-316]
	mov	r2, #0
	strb	r2, [r3, #101]
	mov	r3, #97
	strb	r3, [fp, #-311]
	mov	r3, #0
	str	r3, [fp, #-320]
	b	.L54
.L58:
	mov	r2, #1
	ldr	r1, [fp, #-332]
	ldr	r0, [fp, #-320]
	bl	get_input_validity_check
	ldr	r2, [fp, #-332]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, #7
	ldr	r2, .L68+8
	add	r1, r3, r2
	sub	r2, fp, #312
	mov	r3, #2
	ldr	r0, [fp, #-328]
	bl	read_string
	mov	r3, r0
	cmn	r3, #1
	bne	.L55
	ldr	r3, .L68+12
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	print_error
.L55:
	ldrb	r3, [fp, #-311]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L56
	ldrb	r2, [fp, #-312]	@ zero_extendqisi2
	ldr	r3, [fp, #-316]
	strb	r2, [r3, #101]
	mov	r3, #97
	strb	r3, [fp, #-311]
.L56:
	ldr	r3, [fp, #-320]
	add	r3, r3, #1
	str	r3, [fp, #-320]
.L54:
	ldr	r3, [fp, #-316]
	ldrb	r3, [r3, #101]	@ zero_extendqisi2
	cmp	r3, #77
	beq	.L57
	ldr	r3, [fp, #-316]
	ldrb	r3, [r3, #101]	@ zero_extendqisi2
	cmp	r3, #70
	bne	.L58
.L57:
	ldr	r3, [fp, #-316]
	mvn	r2, #0
	str	r2, [r3, #104]
	mov	r3, #0
	str	r3, [fp, #-320]
	b	.L59
.L62:
	mov	r2, #2
	ldr	r1, [fp, #-332]
	ldr	r0, [fp, #-320]
	bl	get_input_validity_check
	ldr	r2, [fp, #-332]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, #14
	ldr	r2, .L68+8
	add	r1, r3, r2
	sub	r2, fp, #312
	mov	r3, #300
	ldr	r0, [fp, #-328]
	bl	read_string
	mov	r3, r0
	cmn	r3, #1
	bne	.L60
	ldr	r3, .L68+12
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	print_error
.L60:
	ldr	r3, [fp, #-316]
	add	r2, r3, #104
	sub	r3, fp, #312
	sub	r0, fp, #312
	ldr	r1, .L68+20
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L61
	ldr	r3, [fp, #-316]
	mvn	r2, #0
	str	r2, [r3, #104]
.L61:
	ldr	r3, [fp, #-320]
	add	r3, r3, #1
	str	r3, [fp, #-320]
.L59:
	ldr	r3, [fp, #-316]
	ldr	r3, [r3, #104]
	cmp	r3, #0
	blt	.L62
	ldr	r3, [fp, #-316]
	mov	r2, #0
	strb	r2, [r3, #108]
	mov	r3, #0
	str	r3, [fp, #-320]
	b	.L63
.L65:
	mov	r2, #3
	ldr	r1, [fp, #-332]
	ldr	r0, [fp, #-320]
	bl	get_input_validity_check
	ldr	r2, [fp, #-332]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, #21
	ldr	r2, .L68+8
	add	r1, r3, r2
	ldr	r3, [fp, #-316]
	add	r2, r3, #108
	mov	r3, #100
	ldr	r0, [fp, #-328]
	bl	read_string
	mov	r3, r0
	cmn	r3, #1
	bne	.L64
	ldr	r3, .L68+12
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	print_error
.L64:
	ldr	r3, [fp, #-320]
	add	r3, r3, #1
	str	r3, [fp, #-320]
.L63:
	ldr	r3, [fp, #-316]
	add	r3, r3, #108
	sub	r2, fp, #312
	ldr	r1, .L68+16
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #0
	ble	.L65
	ldr	r3, [fp, #-316]
	ldr	r2, .L68
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L67
	bl	__stack_chk_fail
.L67:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	.LC18
	.word	.LC15
	.word	structure_member_prefix
	.word	file_read_failure
	.word	.LC16
	.word	.LC17
	.size	get_input, .-get_input
	.section	.rodata
	.align	2
.LC19:
	.ascii	"%s%s\012\000"
	.align	2
.LC20:
	.ascii	"%s%c\012\000"
	.align	2
.LC21:
	.ascii	"%s%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_single_employee, %function
print_single_employee:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, .L72
	ldr	r1, .L72+4
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3, #101]	@ zero_extendqisi2
	ldr	r2, .L72+8
	ldr	r1, .L72+12
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #104]
	ldr	r2, .L72+16
	ldr	r1, .L72+20
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-12]
	add	r3, r3, #108
	ldr	r2, .L72+24
	ldr	r1, .L72+4
	ldr	r0, [fp, #-8]
	bl	fprintf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L73:
	.align	2
.L72:
	.word	structure_member_prefix+28
	.word	.LC19
	.word	structure_member_prefix+35
	.word	.LC20
	.word	structure_member_prefix+42
	.word	.LC21
	.word	structure_member_prefix+49
	.size	print_single_employee, .-print_single_employee
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	place_employee, %function
place_employee:
	@ 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, .L85
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L85
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L75
	ldr	r2, .L85
	ldr	r3, [fp, #-16]
	str	r3, [r2]
	ldr	r3, .L85
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #216]
	ldr	r3, .L85
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #212]
	b	.L74
.L75:
	ldr	r3, .L85
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	blt	.L77
	ldr	r3, .L85
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #212]
	ldr	r3, .L85
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #216]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #212]
	ldr	r2, .L85
	ldr	r3, [fp, #-16]
	str	r3, [r2]
	b	.L74
.L77:
	ldr	r3, .L85
	ldr	r3, [r3]
	str	r3, [fp, #-8]
.L81:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bgt	.L78
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #212]
	str	r3, [fp, #-8]
	b	.L79
.L78:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #216]
	cmp	r3, #0
	beq	.L84
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #216]
	str	r3, [fp, #-8]
	b	.L81
.L84:
	nop
.L79:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #212]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #216]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #216]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #216]
	cmp	r3, #0
	beq	.L82
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #216]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #212]
.L82:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #216]
	nop
.L74:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L86:
	.align	2
.L85:
	.word	head
	.size	place_employee, .-place_employee
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	search_for_employee, %function
search_for_employee:
	@ 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, .L95
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L88
	mov	r3, #0
	b	.L89
.L88:
	ldr	r3, .L95
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L90
.L93:
	ldr	r3, [fp, #-8]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L94
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #216]
	str	r3, [fp, #-8]
.L90:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L93
	b	.L92
.L94:
	nop
.L92:
	ldr	r3, [fp, #-8]
.L89:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L96:
	.align	2
.L95:
	.word	head
	.size	search_for_employee, .-search_for_employee
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	delete_employee_from_list, %function
delete_employee_from_list:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #212]
	cmp	r3, #0
	beq	.L98
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #212]
	ldr	r2, [fp, #-8]
	ldr	r2, [r2, #216]
	str	r2, [r3, #216]
.L98:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #216]
	cmp	r3, #0
	beq	.L99
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #216]
	ldr	r2, [fp, #-8]
	ldr	r2, [r2, #212]
	str	r2, [r3, #212]
.L99:
	ldr	r3, .L102
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L100
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #216]
	ldr	r2, .L102
	str	r3, [r2]
.L100:
	ldr	r0, [fp, #-8]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L103:
	.align	2
.L102:
	.word	head
	.size	delete_employee_from_list, .-delete_employee_from_list
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	menu_add_employee, %function
menu_add_employee:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L106
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	get_input
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	place_employee
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L107:
	.align	2
.L106:
	.word	stdin
	.size	menu_add_employee, .-menu_add_employee
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	menu_print_database, %function
menu_print_database:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L112
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L109
.L110:
	ldr	r3, .L112+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	print_single_employee
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #216]
	str	r3, [fp, #-8]
.L109:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L110
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L113:
	.align	2
.L112:
	.word	head
	.word	stdout
	.size	menu_print_database, .-menu_print_database
	.section	.rodata
	.align	2
.LC22:
	.ascii	"Please enter the name of the employee to be deleted"
	.ascii	": \000"
	.align	2
.LC23:
	.ascii	"Employee not found.\012\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	menu_delete_employee, %function
menu_delete_employee:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	ldr	r3, .L121
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L121+4
	ldr	r3, [r3]
	mov	r2, #53
	mov	r1, #1
	ldr	r0, .L121+8
	bl	fwrite
	ldr	r3, .L121+12
	ldr	r3, [r3]
	sub	r1, fp, #112
	mov	r2, #100
	mov	r0, r3
	bl	read_line
	sub	r3, fp, #112
	mov	r0, r3
	bl	search_for_employee
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bne	.L115
	ldr	r3, .L121+4
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L121+16
	bl	fwrite
	b	.L114
.L115:
	ldr	r0, [fp, #-116]
	bl	delete_employee_from_list
	sub	r3, fp, #112
	mov	r0, r3
	bl	search_for_employee
	str	r0, [fp, #-116]
	b	.L117
.L118:
	ldr	r0, [fp, #-116]
	bl	delete_employee_from_list
	sub	r3, fp, #112
	mov	r0, r3
	bl	search_for_employee
	str	r0, [fp, #-116]
.L117:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bne	.L118
	nop
.L114:
	ldr	r3, .L121
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L120
	bl	__stack_chk_fail
.L120:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L122:
	.align	2
.L121:
	.word	.LC24
	.word	stderr
	.word	.LC22
	.word	stdin
	.word	.LC23
	.size	menu_delete_employee, .-menu_delete_employee
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_employee_database, %function
read_employee_database:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	read_employee_database, .-read_employee_database
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
