	.file	"151706327.c"
	.intel_syntax noprefix
	.text
	.globl	delay
	.type	delay, @function
delay:
.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	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, eax, 1000
	mov	DWORD PTR -12[rbp], eax
	mov	eax, 0
	call	clock@PLT
	cdqe
	mov	QWORD PTR -8[rbp], rax
	nop
.L2:
	mov	eax, 0
	call	clock@PLT
	cdqe
	mov	edx, DWORD PTR -12[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	cmp	rax, rdx
	jl	.L2
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	delay, .-delay
	.section	.rodata
	.align 8
.LC0:
	.string	"\nInvalid entry. Try again ... "
	.text
	.globl	mainMenu
	.type	mainMenu, @function
mainMenu:
.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, 16
	mov	DWORD PTR -4[rbp], edi
.L4:
	cmp	DWORD PTR -4[rbp], 6
	ja	.L5
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L7[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L7[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L7:
	.long	.L5-.L7
	.long	.L14-.L7
	.long	.L11-.L7
	.long	.L10-.L7
	.long	.L9-.L7
	.long	.L14-.L7
	.long	.L6-.L7
	.text
.L11:
	mov	eax, 0
	call	addItemCSV
	jmp	.L13
.L10:
	mov	eax, 0
	call	deleteItemCSV
	jmp	.L13
.L9:
	mov	eax, 0
	call	viewItemsCSV
	jmp	.L13
.L6:
	mov	edi, 0
	call	exit@PLT
.L5:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L14:
	nop
.L13:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	mainMenu, .-mainMenu
	.section	.rodata
.LC1:
	.string	"wb"
.LC2:
	.string	"data.bin"
.LC3:
	.string	"Unable to open file!"
	.text
	.globl	addItem
	.type	addItem, @function
addItem:
.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, 224
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -216[rbp], rax
	cmp	QWORD PTR -216[rbp], 0
	jne	.L16
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L16:
	lea	rax, -208[rbp]
	movabs	rcx, 7022349196488499568
	mov	QWORD PTR [rax], rcx
	mov	DWORD PTR 8[rax], 7106413
	mov	DWORD PTR -80[rbp], 12
	lea	rax, -208[rbp]
	add	rax, 132
	mov	DWORD PTR [rax], 843198785
	mov	WORD PTR 4[rax], 13123
	mov	BYTE PTR 6[rax], 0
	lea	rax, -208[rbp]
	add	rax, 164
	mov	DWORD PTR [rax], 1818386772
	mov	WORD PTR 4[rax], 29797
	mov	BYTE PTR 6[rax], 0
	mov	rdx, QWORD PTR -216[rbp]
	lea	rax, -208[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 196
	mov	rdi, rax
	call	fwrite@PLT
	lea	rax, -208[rbp]
	movabs	rsi, 7816404403735127394
	mov	QWORD PTR [rax], rsi
	mov	BYTE PTR 8[rax], 0
	mov	DWORD PTR -80[rbp], 13
	lea	rax, -208[rbp]
	add	rax, 132
	mov	DWORD PTR [rax], 843198785
	mov	WORD PTR 4[rax], 13379
	mov	BYTE PTR 6[rax], 0
	lea	rax, -208[rbp]
	add	rax, 164
	mov	DWORD PTR [rax], 1970436435
	mov	WORD PTR 4[rax], 112
	mov	rdx, QWORD PTR -216[rbp]
	lea	rax, -208[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 196
	mov	rdi, rax
	call	fwrite@PLT
	lea	rax, -208[rbp]
	movabs	rcx, 7956009382346781537
	mov	QWORD PTR [rax], rcx
	mov	BYTE PTR 8[rax], 0
	mov	DWORD PTR -80[rbp], 14
	lea	rax, -208[rbp]
	add	rax, 132
	mov	DWORD PTR [rax], 843198785
	mov	WORD PTR 4[rax], 13635
	mov	BYTE PTR 6[rax], 0
	lea	rax, -208[rbp]
	add	rax, 164
	movabs	rsi, 7809911821932457545
	mov	QWORD PTR [rax], rsi
	mov	WORD PTR 8[rax], 101
	mov	rdx, QWORD PTR -216[rbp]
	lea	rax, -208[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 196
	mov	rdi, rax
	call	fwrite@PLT
	lea	rax, -208[rbp]
	movabs	rcx, 31078213190315875
	mov	QWORD PTR [rax], rcx
	mov	DWORD PTR -80[rbp], 12
	lea	rax, -208[rbp]
	add	rax, 132
	mov	DWORD PTR [rax], 843198785
	mov	WORD PTR 4[rax], 13891
	mov	BYTE PTR 6[rax], 0
	lea	rax, -208[rbp]
	add	rax, 164
	movabs	rdi, 8028075781016677961
	mov	QWORD PTR [rax], rdi
	mov	WORD PTR 8[rax], 110
	mov	rdx, QWORD PTR -216[rbp]
	lea	rax, -208[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 196
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	addItem, .-addItem
	.section	.rodata
.LC4:
	.string	"a+"
.LC5:
	.string	"data.csv"
.LC6:
	.string	"Can't open file"
.LC7:
	.string	"%s, %d, %s, %s\n"
.LC8:
	.string	"\nNew Entries added to record"
	.text
	.globl	addItemCSV
	.type	addItemCSV, @function
addItemCSV:
.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, 224
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -216[rbp], rax
	cmp	QWORD PTR -216[rbp], 0
	jne	.L19
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L18
.L19:
	lea	rax, -208[rbp]
	movabs	rdx, 7022349196488499568
	mov	QWORD PTR [rax], rdx
	mov	DWORD PTR 8[rax], 7106413
	mov	DWORD PTR -80[rbp], 12
	lea	rax, -208[rbp]
	add	rax, 132
	mov	DWORD PTR [rax], 843198785
	mov	WORD PTR 4[rax], 13123
	mov	BYTE PTR 6[rax], 0
	lea	rax, -208[rbp]
	add	rax, 164
	mov	DWORD PTR [rax], 1818386772
	mov	WORD PTR 4[rax], 29797
	mov	BYTE PTR 6[rax], 0
	mov	ecx, DWORD PTR -80[rbp]
	lea	rax, -208[rbp]
	lea	rdi, 164[rax]
	lea	rax, -208[rbp]
	lea	rsi, 132[rax]
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -216[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rax, -208[rbp]
	movabs	rcx, 7816404403735127394
	mov	QWORD PTR [rax], rcx
	mov	BYTE PTR 8[rax], 0
	mov	DWORD PTR -80[rbp], 13
	lea	rax, -208[rbp]
	add	rax, 132
	mov	DWORD PTR [rax], 843198785
	mov	WORD PTR 4[rax], 13379
	mov	BYTE PTR 6[rax], 0
	lea	rax, -208[rbp]
	add	rax, 164
	mov	DWORD PTR [rax], 1970436435
	mov	WORD PTR 4[rax], 112
	mov	ecx, DWORD PTR -80[rbp]
	lea	rax, -208[rbp]
	lea	rdi, 164[rax]
	lea	rax, -208[rbp]
	lea	rsi, 132[rax]
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -216[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rax, -208[rbp]
	movabs	rsi, 7956009382346781537
	mov	QWORD PTR [rax], rsi
	mov	BYTE PTR 8[rax], 0
	mov	DWORD PTR -80[rbp], 14
	lea	rax, -208[rbp]
	add	rax, 132
	mov	DWORD PTR [rax], 843198785
	mov	WORD PTR 4[rax], 13635
	mov	BYTE PTR 6[rax], 0
	lea	rax, -208[rbp]
	add	rax, 164
	movabs	rdx, 7809911821932457545
	mov	QWORD PTR [rax], rdx
	mov	WORD PTR 8[rax], 101
	mov	ecx, DWORD PTR -80[rbp]
	lea	rax, -208[rbp]
	lea	rdi, 164[rax]
	lea	rax, -208[rbp]
	lea	rsi, 132[rax]
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -216[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rax, -208[rbp]
	movabs	rcx, 31078213190315875
	mov	QWORD PTR [rax], rcx
	mov	DWORD PTR -80[rbp], 12
	lea	rax, -208[rbp]
	add	rax, 132
	mov	DWORD PTR [rax], 843198785
	mov	WORD PTR 4[rax], 13891
	mov	BYTE PTR 6[rax], 0
	lea	rax, -208[rbp]
	add	rax, 164
	movabs	rsi, 8028075781016677961
	mov	QWORD PTR [rax], rsi
	mov	WORD PTR 8[rax], 110
	mov	ecx, DWORD PTR -80[rbp]
	lea	rax, -208[rbp]
	lea	rdi, 164[rax]
	lea	rax, -208[rbp]
	lea	rsi, 132[rax]
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -216[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L18:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	addItemCSV, .-addItemCSV
	.section	.rodata
.LC9:
	.string	"rb"
	.align 8
.LC10:
	.string	"The following records are in the binary file"
.LC11:
	.string	"%d\n"
	.text
	.globl	viewItems
	.type	viewItems, @function
viewItems:
.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, 224
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC9[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -216[rbp], rax
	cmp	QWORD PTR -216[rbp], 0
	jne	.L23
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L23:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	jmp	.L24
.L25:
	lea	rax, -208[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	eax, DWORD PTR -80[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -208[rbp]
	add	rax, 132
	mov	rdi, rax
	call	puts@PLT
	lea	rax, -208[rbp]
	add	rax, 164
	mov	rdi, rax
	call	puts@PLT
.L24:
	mov	rdx, QWORD PTR -216[rbp]
	lea	rax, -208[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 196
	mov	rdi, rax
	call	fread@PLT
	test	rax, rax
	jne	.L25
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	viewItems, .-viewItems
	.section	.rodata
.LC12:
	.string	"r"
.LC13:
	.string	", "
.LC14:
	.string	"Medicine name : "
.LC15:
	.string	"\tQuantity : "
.LC16:
	.string	"\tReference ID : "
.LC17:
	.string	"\tType :"
.LC18:
	.string	"%s"
	.text
	.globl	viewItemsCSV
	.type	viewItemsCSV, @function
viewItemsCSV:
.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, 1072
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC12[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -1048[rbp], rax
	cmp	QWORD PTR -1048[rbp], 0
	jne	.L28
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L39
.L28:
	mov	DWORD PTR -1064[rbp], 0
	mov	DWORD PTR -1060[rbp], 0
	jmp	.L30
.L37:
	mov	DWORD PTR -1060[rbp], 0
	add	DWORD PTR -1064[rbp], 1
	lea	rax, -1040[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -1056[rbp], rax
	jmp	.L31
.L36:
	cmp	DWORD PTR -1060[rbp], 0
	jne	.L32
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
.L32:
	cmp	DWORD PTR -1060[rbp], 1
	jne	.L33
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
.L33:
	cmp	DWORD PTR -1060[rbp], 2
	jne	.L34
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
.L34:
	cmp	DWORD PTR -1060[rbp], 3
	jne	.L35
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
.L35:
	mov	rax, QWORD PTR -1056[rbp]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, .LC13[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -1056[rbp], rax
	add	DWORD PTR -1060[rbp], 1
.L31:
	cmp	QWORD PTR -1056[rbp], 0
	jne	.L36
	mov	edi, 10
	call	putchar@PLT
.L30:
	mov	rdx, QWORD PTR -1048[rbp]
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L37
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L39:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	viewItemsCSV, .-viewItemsCSV
	.section	.rodata
.LC19:
	.string	"Unable to open file"
.LC20:
	.string	"tmp.bin"
.LC21:
	.string	"Unable to open temp file"
	.align 8
.LC22:
	.string	"A record with requested name found and deleted.\n"
	.align 8
.LC23:
	.string	"No record(s) found with the requested name: %s\n\n"
	.text
	.globl	deleteItem
	.type	deleteItem, @function
deleteItem:
.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, 272
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -260[rbp], 0
	movabs	rax, 7956009382346781537
	mov	edx, 0
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	lea	rsi, .LC9[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -256[rbp], rax
	cmp	QWORD PTR -256[rbp], 0
	jne	.L41
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L41:
	lea	rsi, .LC1[rip]
	lea	rdi, .LC20[rip]
	call	fopen@PLT
	mov	QWORD PTR -248[rbp], rax
	cmp	QWORD PTR -248[rbp], 0
	jne	.L43
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L45:
	lea	rdx, -240[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L44
	lea	rdi, .LC22[rip]
	call	puts@PLT
	mov	DWORD PTR -260[rbp], 1
	jmp	.L43
.L44:
	mov	rdx, QWORD PTR -248[rbp]
	lea	rax, -240[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 196
	mov	rdi, rax
	call	fwrite@PLT
.L43:
	mov	rdx, QWORD PTR -256[rbp]
	lea	rax, -240[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 196
	mov	rdi, rax
	call	fread@PLT
	test	rax, rax
	jne	.L45
	cmp	DWORD PTR -260[rbp], 0
	jne	.L46
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
.L46:
	mov	rax, QWORD PTR -256[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -248[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC2[rip]
	call	remove@PLT
	lea	rsi, .LC2[rip]
	lea	rdi, .LC20[rip]
	call	rename@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	deleteItem, .-deleteItem
	.section	.rodata
.LC24:
	.string	"tmp.csv"
	.text
	.globl	deleteItemCSV
	.type	deleteItemCSV, @function
deleteItemCSV:
.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, 1312
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1292[rbp], 0
	movabs	rax, 7956009382346781537
	mov	edx, 0
	mov	QWORD PTR -1056[rbp], rax
	mov	QWORD PTR -1048[rbp], rdx
	mov	DWORD PTR -1300[rbp], 0
	mov	DWORD PTR -1296[rbp], 0
	lea	rsi, .LC12[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -1280[rbp], rax
	cmp	QWORD PTR -1280[rbp], 0
	jne	.L49
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L49:
	lea	rsi, .LC4[rip]
	lea	rdi, .LC24[rip]
	call	fopen@PLT
	mov	QWORD PTR -1272[rbp], rax
	cmp	QWORD PTR -1272[rbp], 0
	jne	.L51
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L60:
	mov	DWORD PTR -1296[rbp], 0
	add	DWORD PTR -1300[rbp], 1
	cmp	DWORD PTR -1300[rbp], 1
	jne	.L52
	jmp	.L51
.L52:
	lea	rax, -1040[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -1288[rbp], rax
	jmp	.L53
.L59:
	mov	rdx, QWORD PTR -1288[rbp]
	lea	rax, -1056[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L54
	lea	rsi, .LC13[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -1288[rbp], rax
	add	DWORD PTR -1296[rbp], 1
	jmp	.L53
.L54:
	cmp	DWORD PTR -1296[rbp], 0
	jne	.L55
	mov	rdx, QWORD PTR -1272[rbp]
	mov	rax, QWORD PTR -1288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
.L55:
	cmp	DWORD PTR -1296[rbp], 1
	jne	.L56
	mov	rdx, QWORD PTR -1272[rbp]
	mov	rax, QWORD PTR -1288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
.L56:
	cmp	DWORD PTR -1296[rbp], 2
	jne	.L57
	mov	rdx, QWORD PTR -1272[rbp]
	mov	rax, QWORD PTR -1288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
.L57:
	cmp	DWORD PTR -1296[rbp], 3
	jne	.L58
	mov	rdx, QWORD PTR -1272[rbp]
	mov	rax, QWORD PTR -1288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
.L58:
	lea	rsi, .LC13[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -1288[rbp], rax
	add	DWORD PTR -1296[rbp], 1
.L53:
	cmp	QWORD PTR -1288[rbp], 0
	jne	.L59
	mov	rax, QWORD PTR -1272[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
.L51:
	mov	rdx, QWORD PTR -1280[rbp]
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L60
	cmp	DWORD PTR -1292[rbp], 0
	jne	.L61
	lea	rax, -1056[rbp]
	mov	rsi, rax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
.L61:
	mov	rax, QWORD PTR -1280[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -1272[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC5[rip]
	call	remove@PLT
	lea	rsi, .LC5[rip]
	lea	rdi, .LC24[rip]
	call	rename@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L62
	call	__stack_chk_fail@PLT
.L62:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	deleteItemCSV, .-deleteItemCSV
	.globl	main
	.type	main, @function
main:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 2
	call	mainMenu
	mov	edi, 4
	call	mainMenu
	mov	edi, 3
	call	mainMenu
	mov	edi, 4
	call	mainMenu
	mov	edi, 6
	call	mainMenu
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.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	"151706327.c"
	.text
	.align	2
	.global	delay
	.syntax unified
	.arm
	.fpu softvfp
	.type	delay, %function
delay:
	@ 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	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	str	r3, [fp, #-12]
	bl	clock
	str	r0, [fp, #-8]
	nop
.L2:
	bl	clock
	mov	r1, r0
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	cmp	r1, r3
	blt	.L2
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	delay, .-delay
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Invalid entry. Try again ... \000"
	.text
	.align	2
	.global	mainMenu
	.syntax unified
	.arm
	.fpu softvfp
	.type	mainMenu, %function
mainMenu:
	@ 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]
.L4:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L5
.L7:
	.word	.L14
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L14
	.word	.L6
.L11:
	bl	addItemCSV
	b	.L13
.L10:
	bl	deleteItemCSV
	b	.L13
.L9:
	bl	viewItemsCSV
	b	.L13
.L6:
	mov	r0, #0
	bl	exit
.L5:
	ldr	r0, .L15
	bl	printf
	b	.L4
.L14:
	nop
.L13:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.size	mainMenu, .-mainMenu
	.section	.rodata
	.align	2
.LC1:
	.ascii	"wb\000"
	.align	2
.LC2:
	.ascii	"data.bin\000"
	.align	2
.LC3:
	.ascii	"Unable to open file!\000"
	.align	2
.LC4:
	.ascii	"paracetamol\000"
	.align	2
.LC5:
	.ascii	"A1B2C3\000"
	.align	2
.LC6:
	.ascii	"Tablet\000"
	.align	2
.LC7:
	.ascii	"benadryl\000"
	.align	2
.LC8:
	.ascii	"A1B2C4\000"
	.align	2
.LC9:
	.ascii	"Syrup\000"
	.align	2
.LC10:
	.ascii	"asthalin\000"
	.align	2
.LC11:
	.ascii	"A1B2C5\000"
	.align	2
.LC12:
	.ascii	"Inhalable\000"
	.align	2
.LC13:
	.ascii	"covaxin\000"
	.align	2
.LC14:
	.ascii	"A1B2C6\000"
	.align	2
.LC15:
	.ascii	"Injection\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	addItem
	.syntax unified
	.arm
	.fpu softvfp
	.type	addItem, %function
addItem:
	@ args = 0, pretend = 0, frame = 208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #208
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L20+4
	ldr	r0, .L20+8
	bl	fopen
	str	r0, [fp, #-208]
	ldr	r3, [fp, #-208]
	cmp	r3, #0
	bne	.L18
	ldr	r0, .L20+12
	bl	printf
	mov	r0, #0
	bl	exit
.L18:
	sub	r3, fp, #204
	ldr	r2, .L20+16
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	mov	r3, #12
	str	r3, [fp, #-76]
	sub	r3, fp, #204
	add	r3, r3, #132
	ldr	r2, .L20+20
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r1, #16
	strb	r2, [r3]
	sub	r3, fp, #204
	add	r3, r3, #164
	ldr	r2, .L20+24
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r1, #16
	strb	r2, [r3]
	sub	r0, fp, #204
	ldr	r3, [fp, #-208]
	mov	r2, #1
	mov	r1, #196
	bl	fwrite
	sub	r3, fp, #204
	ldr	r2, .L20+28
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strb	r2, [r3]
	mov	r3, #13
	str	r3, [fp, #-76]
	sub	r3, fp, #204
	add	r3, r3, #132
	ldr	r2, .L20+32
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r1, #16
	strb	r2, [r3]
	sub	r3, fp, #204
	add	r3, r3, #164
	ldr	r2, .L20+36
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	sub	r0, fp, #204
	ldr	r3, [fp, #-208]
	mov	r2, #1
	mov	r1, #196
	bl	fwrite
	sub	r3, fp, #204
	ldr	r2, .L20+40
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strb	r2, [r3]
	mov	r3, #14
	str	r3, [fp, #-76]
	sub	r3, fp, #204
	add	r3, r3, #132
	ldr	r2, .L20+44
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r1, #16
	strb	r2, [r3]
	sub	r3, fp, #204
	add	r3, r3, #164
	ldr	r2, .L20+48
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	sub	r0, fp, #204
	ldr	r3, [fp, #-208]
	mov	r2, #1
	mov	r1, #196
	bl	fwrite
	sub	r3, fp, #204
	ldr	r2, .L20+52
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	mov	r3, #12
	str	r3, [fp, #-76]
	sub	r3, fp, #204
	add	r3, r3, #132
	ldr	r2, .L20+56
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r1, #16
	strb	r2, [r3]
	sub	r3, fp, #204
	add	r3, r3, #164
	ldr	r2, .L20+60
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	sub	r0, fp, #204
	ldr	r3, [fp, #-208]
	mov	r2, #1
	mov	r1, #196
	bl	fwrite
	ldr	r0, [fp, #-208]
	bl	fclose
	nop
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC16
	.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
	.word	.LC14
	.word	.LC15
	.size	addItem, .-addItem
	.section	.rodata
	.align	2
.LC17:
	.ascii	"a+\000"
	.align	2
.LC18:
	.ascii	"data.csv\000"
	.align	2
.LC19:
	.ascii	"Can't open file\000"
	.align	2
.LC20:
	.ascii	"%s, %d, %s, %s\012\000"
	.align	2
.LC21:
	.ascii	"\012New Entries added to record\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	addItemCSV
	.syntax unified
	.arm
	.fpu softvfp
	.type	addItemCSV, %function
addItemCSV:
	@ args = 0, pretend = 0, frame = 208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #216
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L26+4
	ldr	r0, .L26+8
	bl	fopen
	str	r0, [fp, #-208]
	ldr	r3, [fp, #-208]
	cmp	r3, #0
	bne	.L23
	ldr	r0, .L26+12
	bl	puts
	b	.L22
.L23:
	sub	r3, fp, #204
	ldr	r2, .L26+16
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	mov	r3, #12
	str	r3, [fp, #-76]
	sub	r3, fp, #204
	add	r3, r3, #132
	ldr	r2, .L26+20
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r1, #16
	strb	r2, [r3]
	sub	r3, fp, #204
	add	r3, r3, #164
	ldr	r2, .L26+24
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r1, #16
	strb	r2, [r3]
	ldr	r1, [fp, #-76]
	sub	r2, fp, #204
	sub	r3, fp, #204
	add	r3, r3, #164
	str	r3, [sp, #4]
	sub	r3, fp, #204
	add	r3, r3, #132
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L26+28
	ldr	r0, [fp, #-208]
	bl	fprintf
	sub	r3, fp, #204
	ldr	r2, .L26+32
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strb	r2, [r3]
	mov	r3, #13
	str	r3, [fp, #-76]
	sub	r3, fp, #204
	add	r3, r3, #132
	ldr	r2, .L26+36
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r1, #16
	strb	r2, [r3]
	sub	r3, fp, #204
	add	r3, r3, #164
	ldr	r2, .L26+40
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	ldr	r1, [fp, #-76]
	sub	r2, fp, #204
	sub	r3, fp, #204
	add	r3, r3, #164
	str	r3, [sp, #4]
	sub	r3, fp, #204
	add	r3, r3, #132
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L26+28
	ldr	r0, [fp, #-208]
	bl	fprintf
	sub	r3, fp, #204
	ldr	r2, .L26+44
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strb	r2, [r3]
	mov	r3, #14
	str	r3, [fp, #-76]
	sub	r3, fp, #204
	add	r3, r3, #132
	ldr	r2, .L26+48
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r1, #16
	strb	r2, [r3]
	sub	r3, fp, #204
	add	r3, r3, #164
	ldr	r2, .L26+52
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	ldr	r1, [fp, #-76]
	sub	r2, fp, #204
	sub	r3, fp, #204
	add	r3, r3, #164
	str	r3, [sp, #4]
	sub	r3, fp, #204
	add	r3, r3, #132
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L26+28
	ldr	r0, [fp, #-208]
	bl	fprintf
	sub	r3, fp, #204
	ldr	r2, .L26+56
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	mov	r3, #12
	str	r3, [fp, #-76]
	sub	r3, fp, #204
	add	r3, r3, #132
	ldr	r2, .L26+60
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r1, #16
	strb	r2, [r3]
	sub	r3, fp, #204
	add	r3, r3, #164
	ldr	r2, .L26+64
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	ldr	r1, [fp, #-76]
	sub	r2, fp, #204
	sub	r3, fp, #204
	add	r3, r3, #164
	str	r3, [sp, #4]
	sub	r3, fp, #204
	add	r3, r3, #132
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L26+28
	ldr	r0, [fp, #-208]
	bl	fprintf
	ldr	r0, .L26+68
	bl	printf
	ldr	r0, [fp, #-208]
	bl	fclose
.L22:
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC22
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC20
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC21
	.size	addItemCSV, .-addItemCSV
	.section	.rodata
	.align	2
.LC23:
	.ascii	"rb\000"
	.align	2
.LC24:
	.ascii	"The following records are in the binary file\000"
	.align	2
.LC25:
	.ascii	"%d\012\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	viewItems
	.syntax unified
	.arm
	.fpu softvfp
	.type	viewItems, %function
viewItems:
	@ args = 0, pretend = 0, frame = 208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #208
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L33+4
	ldr	r0, .L33+8
	bl	fopen
	str	r0, [fp, #-208]
	ldr	r3, [fp, #-208]
	cmp	r3, #0
	bne	.L29
	ldr	r0, .L33+12
	bl	printf
	mov	r0, #0
	bl	exit
.L29:
	ldr	r0, .L33+16
	bl	puts
	b	.L30
.L31:
	sub	r3, fp, #204
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-76]
	mov	r1, r3
	ldr	r0, .L33+20
	bl	printf
	sub	r3, fp, #204
	add	r3, r3, #132
	mov	r0, r3
	bl	puts
	sub	r3, fp, #204
	add	r3, r3, #164
	mov	r0, r3
	bl	puts
.L30:
	sub	r0, fp, #204
	ldr	r3, [fp, #-208]
	mov	r2, #1
	mov	r1, #196
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	bne	.L31
	ldr	r0, [fp, #-208]
	bl	fclose
	nop
	ldr	r3, .L33
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC26
	.word	.LC23
	.word	.LC2
	.word	.LC3
	.word	.LC24
	.word	.LC25
	.size	viewItems, .-viewItems
	.section	.rodata
	.align	2
.LC27:
	.ascii	"r\000"
	.align	2
.LC28:
	.ascii	", \000"
	.align	2
.LC29:
	.ascii	"Medicine name : \000"
	.align	2
.LC30:
	.ascii	"\011Quantity : \000"
	.align	2
.LC31:
	.ascii	"\011Reference ID : \000"
	.align	2
.LC32:
	.ascii	"\011Type :\000"
	.align	2
.LC33:
	.ascii	"%s\000"
	.align	2
.LC34:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	viewItemsCSV
	.syntax unified
	.arm
	.fpu softvfp
	.type	viewItemsCSV, %function
viewItemsCSV:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	sub	sp, sp, #8
	ldr	r3, .L48
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L48+4
	ldr	r0, .L48+8
	bl	fopen
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	bne	.L36
	ldr	r0, .L48+12
	bl	puts
	b	.L47
.L36:
	mov	r3, #0
	str	r3, [fp, #-1048]
	mov	r3, #0
	str	r3, [fp, #-1044]
	b	.L38
.L45:
	mov	r3, #0
	str	r3, [fp, #-1044]
	ldr	r3, [fp, #-1048]
	add	r3, r3, #1
	str	r3, [fp, #-1048]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L48+16
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-1040]
	b	.L39
.L44:
	ldr	r3, [fp, #-1044]
	cmp	r3, #0
	bne	.L40
	ldr	r0, .L48+20
	bl	printf
.L40:
	ldr	r3, [fp, #-1044]
	cmp	r3, #1
	bne	.L41
	ldr	r0, .L48+24
	bl	printf
.L41:
	ldr	r3, [fp, #-1044]
	cmp	r3, #2
	bne	.L42
	ldr	r0, .L48+28
	bl	printf
.L42:
	ldr	r3, [fp, #-1044]
	cmp	r3, #3
	bne	.L43
	ldr	r0, .L48+32
	bl	printf
.L43:
	ldr	r1, [fp, #-1040]
	ldr	r0, .L48+36
	bl	printf
	ldr	r1, .L48+16
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-1040]
	ldr	r3, [fp, #-1044]
	add	r3, r3, #1
	str	r3, [fp, #-1044]
.L39:
	ldr	r3, [fp, #-1040]
	cmp	r3, #0
	bne	.L44
	mov	r0, #10
	bl	putchar
.L38:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1036]
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L45
	ldr	r0, [fp, #-1036]
	bl	fclose
.L47:
	nop
	ldr	r3, .L48
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L46
	bl	__stack_chk_fail
.L46:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC34
	.word	.LC27
	.word	.LC18
	.word	.LC19
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.size	viewItemsCSV, .-viewItemsCSV
	.section	.rodata
	.align	2
.LC36:
	.ascii	"Unable to open file\000"
	.align	2
.LC37:
	.ascii	"tmp.bin\000"
	.align	2
.LC38:
	.ascii	"Unable to open temp file\000"
	.align	2
.LC39:
	.ascii	"A record with requested name found and deleted.\012"
	.ascii	"\000"
	.align	2
.LC40:
	.ascii	"No record(s) found with the requested name: %s\012\012"
	.ascii	"\000"
	.align	2
.LC35:
	.ascii	"asthalin\000"
	.space	7
	.align	2
.LC41:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	deleteItem
	.syntax unified
	.arm
	.fpu softvfp
	.type	deleteItem, %function
deleteItem:
	@ args = 0, pretend = 0, frame = 232
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #232
	ldr	r3, .L58
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-232]
	ldr	r2, .L58+4
	sub	r3, fp, #24
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strb	r2, [r3]
	sub	r3, fp, #15
	mov	r2, #0
	mov	r1, r2
	strb	r1, [r3]
	mov	r1, r2
	strb	r1, [r3, #1]
	mov	r1, r2
	strb	r1, [r3, #2]
	mov	r1, r2
	strb	r1, [r3, #3]
	mov	r1, r2
	strb	r1, [r3, #4]
	mov	r1, r2
	strb	r1, [r3, #5]
	strb	r2, [r3, #6]
	ldr	r1, .L58+8
	ldr	r0, .L58+12
	bl	fopen
	str	r0, [fp, #-228]
	ldr	r3, [fp, #-228]
	cmp	r3, #0
	bne	.L51
	ldr	r0, .L58+16
	bl	printf
	mov	r0, #0
	bl	exit
.L51:
	ldr	r1, .L58+20
	ldr	r0, .L58+24
	bl	fopen
	str	r0, [fp, #-224]
	ldr	r3, [fp, #-224]
	cmp	r3, #0
	bne	.L53
	ldr	r0, .L58+28
	bl	printf
	mov	r0, #0
	bl	exit
.L55:
	sub	r2, fp, #220
	sub	r3, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L54
	ldr	r0, .L58+32
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-232]
	b	.L53
.L54:
	sub	r0, fp, #220
	ldr	r3, [fp, #-224]
	mov	r2, #1
	mov	r1, #196
	bl	fwrite
.L53:
	sub	r0, fp, #220
	ldr	r3, [fp, #-228]
	mov	r2, #1
	mov	r1, #196
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	bne	.L55
	ldr	r3, [fp, #-232]
	cmp	r3, #0
	bne	.L56
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L58+36
	bl	printf
.L56:
	ldr	r0, [fp, #-228]
	bl	fclose
	ldr	r0, [fp, #-224]
	bl	fclose
	ldr	r0, .L58+12
	bl	remove
	ldr	r1, .L58+12
	ldr	r0, .L58+24
	bl	rename
	nop
	ldr	r3, .L58
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L57
	bl	__stack_chk_fail
.L57:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L59:
	.align	2
.L58:
	.word	.LC41
	.word	.LC35
	.word	.LC23
	.word	.LC2
	.word	.LC36
	.word	.LC1
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.size	deleteItem, .-deleteItem
	.section	.rodata
	.align	2
.LC42:
	.ascii	"tmp.csv\000"
	.align	2
.LC43:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	deleteItemCSV
	.syntax unified
	.arm
	.fpu softvfp
	.type	deleteItemCSV, %function
deleteItemCSV:
	@ args = 0, pretend = 0, frame = 1264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1264
	ldr	r3, .L75
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1256]
	ldr	r2, .L75+4
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strb	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #11
	mov	r2, #0
	mov	r1, r2
	strb	r1, [r3]
	mov	r1, r2
	strb	r1, [r3, #1]
	mov	r1, r2
	strb	r1, [r3, #2]
	mov	r1, r2
	strb	r1, [r3, #3]
	mov	r1, r2
	strb	r1, [r3, #4]
	mov	r1, r2
	strb	r1, [r3, #5]
	strb	r2, [r3, #6]
	mov	r3, #0
	str	r3, [fp, #-1268]
	mov	r3, #0
	str	r3, [fp, #-1264]
	ldr	r1, .L75+8
	ldr	r0, .L75+12
	bl	fopen
	str	r0, [fp, #-1252]
	ldr	r3, [fp, #-1252]
	cmp	r3, #0
	bne	.L61
	ldr	r0, .L75+16
	bl	printf
	mov	r0, #0
	bl	exit
.L61:
	ldr	r1, .L75+20
	ldr	r0, .L75+24
	bl	fopen
	str	r0, [fp, #-1248]
	ldr	r3, [fp, #-1248]
	cmp	r3, #0
	bne	.L63
	ldr	r0, .L75+28
	bl	printf
	mov	r0, #0
	bl	exit
.L72:
	mov	r3, #0
	str	r3, [fp, #-1264]
	ldr	r3, [fp, #-1268]
	add	r3, r3, #1
	str	r3, [fp, #-1268]
	ldr	r3, [fp, #-1268]
	cmp	r3, #1
	bne	.L64
	b	.L63
.L64:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L75+32
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-1260]
	b	.L65
.L71:
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-1260]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L66
	ldr	r1, .L75+32
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-1260]
	ldr	r3, [fp, #-1264]
	add	r3, r3, #1
	str	r3, [fp, #-1264]
	b	.L65
.L66:
	ldr	r3, [fp, #-1264]
	cmp	r3, #0
	bne	.L67
	ldr	r1, [fp, #-1248]
	ldr	r0, [fp, #-1260]
	bl	fputs
.L67:
	ldr	r3, [fp, #-1264]
	cmp	r3, #1
	bne	.L68
	ldr	r1, [fp, #-1248]
	ldr	r0, [fp, #-1260]
	bl	fputs
.L68:
	ldr	r3, [fp, #-1264]
	cmp	r3, #2
	bne	.L69
	ldr	r1, [fp, #-1248]
	ldr	r0, [fp, #-1260]
	bl	fputs
.L69:
	ldr	r3, [fp, #-1264]
	cmp	r3, #3
	bne	.L70
	ldr	r1, [fp, #-1248]
	ldr	r0, [fp, #-1260]
	bl	fputs
.L70:
	ldr	r1, .L75+32
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-1260]
	ldr	r3, [fp, #-1264]
	add	r3, r3, #1
	str	r3, [fp, #-1264]
.L65:
	ldr	r3, [fp, #-1260]
	cmp	r3, #0
	bne	.L71
	ldr	r1, [fp, #-1248]
	mov	r0, #10
	bl	fputc
.L63:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1252]
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L72
	ldr	r3, [fp, #-1256]
	cmp	r3, #0
	bne	.L73
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L75+36
	bl	printf
.L73:
	ldr	r0, [fp, #-1252]
	bl	fclose
	ldr	r0, [fp, #-1248]
	bl	fclose
	ldr	r0, .L75+12
	bl	remove
	ldr	r1, .L75+12
	ldr	r0, .L75+24
	bl	rename
	nop
	ldr	r3, .L75
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L74
	bl	__stack_chk_fail
.L74:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L76:
	.align	2
.L75:
	.word	.LC43
	.word	.LC35
	.word	.LC27
	.word	.LC18
	.word	.LC36
	.word	.LC17
	.word	.LC42
	.word	.LC38
	.word	.LC28
	.word	.LC40
	.size	deleteItemCSV, .-deleteItemCSV
	.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, #2
	bl	mainMenu
	mov	r0, #4
	bl	mainMenu
	mov	r0, #3
	bl	mainMenu
	mov	r0, #4
	bl	mainMenu
	mov	r0, #6
	bl	mainMenu
	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
