	.file	"285566.c"
	.intel_syntax noprefix
	.text
	.globl	path1
	.data
	.align 8
	.type	path1, @object
	.size	path1, 9
path1:
	.string	"data.bin"
	.globl	path2
	.align 16
	.type	path2, @object
	.size	path2, 16
path2:
	.string	"paymentInfo.bin"
	.globl	fpl
	.bss
	.align 8
	.type	fpl, @object
	.size	fpl, 8
fpl:
	.zero	8
	.globl	recCount
	.align 4
	.type	recCount, @object
	.size	recCount, 4
recCount:
	.zero	4
	.section	.rodata
.LC0:
	.string	"@cls||clear"
	.text
	.globl	clrscr
	.type	clrscr, @function
clrscr:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	system@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	clrscr, .-clrscr
	.globl	delay
	.type	delay, @function
delay:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, eax, 1000
	mov	DWORD PTR -12[rbp], eax
	call	clock@PLT
	mov	QWORD PTR -8[rbp], rax
	nop
.L3:
	call	clock@PLT
	mov	edx, DWORD PTR -12[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	cmp	rax, rdx
	jl	.L3
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	delay, .-delay
	.globl	dateCompare
	.type	dateCompare, @function
dateCompare:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, rdx
	mov	rdx, rcx
	mov	QWORD PTR -16[rbp], rdi
	mov	DWORD PTR -8[rbp], esi
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 0
	or	eax, edx
	mov	DWORD PTR -24[rbp], eax
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -24[rbp]
	cmp	edx, eax
	jle	.L5
	mov	eax, 1
	jmp	.L6
.L5:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -24[rbp]
	cmp	edx, eax
	jge	.L7
	mov	eax, -1
	jmp	.L6
.L7:
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -28[rbp]
	cmp	edx, eax
	jle	.L8
	mov	eax, 1
	jmp	.L6
.L8:
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -28[rbp]
	cmp	edx, eax
	jge	.L9
	mov	eax, -1
	jmp	.L6
.L9:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -32[rbp]
	cmp	edx, eax
	jle	.L10
	mov	eax, 1
	jmp	.L6
.L10:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -32[rbp]
	cmp	edx, eax
	jge	.L11
	mov	eax, -1
	jmp	.L6
.L11:
	mov	eax, 0
.L6:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	dateCompare, .-dateCompare
	.section	.rodata
	.align 8
.LC1:
	.string	"\nInvalid entry. Try again ... "
	.text
	.globl	mainMenu
	.type	mainMenu, @function
mainMenu:
.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	DWORD PTR -4[rbp], edi
.L13:
	cmp	DWORD PTR -4[rbp], 7
	ja	.L14
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L16[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L16[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L16:
	.long	.L23-.L16
	.long	.L22-.L16
	.long	.L21-.L16
	.long	.L20-.L16
	.long	.L19-.L16
	.long	.L18-.L16
	.long	.L17-.L16
	.long	.L25-.L16
	.text
.L22:
	mov	eax, 0
	call	newPurchase
	jmp	.L24
.L21:
	mov	eax, 0
	call	addItem
	jmp	.L24
.L20:
	mov	eax, 0
	call	deleteItem
	jmp	.L24
.L19:
	mov	eax, 0
	call	viewItems
	jmp	.L24
.L18:
	mov	eax, 0
	call	viewPaymentInfo
	jmp	.L24
.L17:
	mov	eax, 0
	call	reviewWarnings
	jmp	.L24
.L23:
	mov	edi, 0
	call	exit@PLT
.L14:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L13
.L25:
	nop
.L24:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	mainMenu, .-mainMenu
	.section	.rodata
.LC2:
	.string	"r"
.LC3:
	.string	"Unable to open file"
.LC4:
	.string	"wb"
.LC5:
	.string	"tmp.bin"
.LC6:
	.string	"Unable to open temp file"
	.align 8
.LC7:
	.string	"Unable to open payment information file"
	.align 8
.LC8:
	.string	"Input the name of the medicine to be purchased : "
.LC9:
	.string	" %[^\n]%*c"
	.align 8
.LC10:
	.string	"Input the quantity to be purchased : "
.LC11:
	.string	" %d"
.LC12:
	.string	"Input card number : "
	.align 8
.LC13:
	.string	"Input date of expiry in dd <enter> mm <enter> yy format"
.LC14:
	.string	"Input CVV : "
	.align 8
.LC15:
	.string	"No record(s) found with the requested name: %s\n\n"
	.align 8
.LC16:
	.string	"\nWould you like to make another purchase? (y/n) "
.LC17:
	.string	"%s"
	.align 8
.LC18:
	.string	"Please enter a valid condition! "
	.text
	.globl	newPurchase
	.type	newPurchase, @function
newPurchase:
.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, 368
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -356[rbp], 0
	mov	DWORD PTR -352[rbp], 0
	lea	rsi, .LC2[rip]
	lea	rdi, path1[rip]
	call	fopen@PLT
	mov	QWORD PTR -344[rbp], rax
	cmp	QWORD PTR -344[rbp], 0
	jne	.L27
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L27:
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -336[rbp], rax
	cmp	QWORD PTR -336[rbp], 0
	jne	.L28
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L28:
	lea	rsi, .LC4[rip]
	lea	rdi, path2[rip]
	call	fopen@PLT
	mov	QWORD PTR -328[rbp], rax
	cmp	QWORD PTR -328[rbp], 0
	jne	.L29
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L29:
	mov	eax, DWORD PTR recCount[rip]
	add	eax, 1
	mov	DWORD PTR recCount[rip], eax
	mov	DWORD PTR -356[rbp], 0
	mov	eax, 0
	call	line
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -360[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -320[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rax, -320[rbp]
	add	rax, 16
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -320[rbp]
	add	rax, 20
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -320[rbp]
	add	rax, 24
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -320[rbp]
	add	rax, 28
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, 0
	call	line
	jmp	.L30
.L32:
	lea	rdx, -272[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L31
	mov	eax, DWORD PTR -360[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	movss	xmm0, DWORD PTR -120[rbp]
	mulss	xmm0, xmm1
	movss	DWORD PTR -288[rbp], xmm0
	mov	eax, DWORD PTR -116[rbp]
	mov	edx, DWORD PTR -360[rbp]
	sub	eax, edx
	mov	DWORD PTR -116[rbp], eax
	mov	rdx, QWORD PTR -336[rbp]
	lea	rax, -272[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 228
	mov	rdi, rax
	call	fwrite@PLT
	mov	rdx, QWORD PTR -328[rbp]
	lea	rax, -320[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 36
	mov	rdi, rax
	call	fwrite@PLT
	mov	DWORD PTR -356[rbp], 1
	jmp	.L30
.L31:
	mov	rdx, QWORD PTR -336[rbp]
	lea	rax, -272[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 228
	mov	rdi, rax
	call	fwrite@PLT
.L30:
	mov	rdx, QWORD PTR -344[rbp]
	lea	rax, -272[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 228
	mov	rdi, rax
	call	fread@PLT
	test	rax, rax
	jne	.L32
	cmp	DWORD PTR -356[rbp], 0
	jne	.L33
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
.L33:
	mov	DWORD PTR -348[rbp], 0
.L37:
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -361[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -361[rbp]
	movsx	eax, al
	cmp	eax, 110
	je	.L34
	cmp	eax, 121
	jne	.L35
	mov	DWORD PTR -352[rbp], 0
	mov	DWORD PTR -348[rbp], 1
	jmp	.L36
.L34:
	mov	DWORD PTR -352[rbp], 1
	mov	DWORD PTR -348[rbp], 1
	jmp	.L36
.L35:
	lea	rdi, .LC18[rip]
	call	puts@PLT
	nop
.L36:
	cmp	DWORD PTR -348[rbp], 1
	jne	.L37
	cmp	DWORD PTR -352[rbp], 1
	jne	.L29
	mov	rax, QWORD PTR -344[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -336[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, path1[rip]
	call	remove@PLT
	lea	rsi, path1[rip]
	lea	rdi, .LC5[rip]
	call	rename@PLT
	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
.LFE10:
	.size	newPurchase, .-newPurchase
	.section	.rodata
.LC19:
	.string	"ab"
.LC20:
	.string	"Unable to open file!"
.LC21:
	.string	"Input name (w/ brand) : "
	.align 8
.LC22:
	.string	"Input date of manufacture in dd <enter> mm <enter> yy format"
	.align 8
.LC23:
	.string	"\nSorry Date of Expiry cannot be before Date of manufacture ... \nPlease enter Date again"
.LC24:
	.string	"Input cost per unit : "
.LC25:
	.string	" %f"
.LC26:
	.string	"Input stock quantity : "
	.align 8
.LC27:
	.string	"Input safety stock quantity : "
.LC28:
	.string	"Input reference ID : "
	.align 8
.LC29:
	.string	"Input type (manner of consumption) : "
	.align 8
.LC30:
	.string	"\nWould you like to write another record? (y/n) "
	.text
	.globl	addItem
	.type	addItem, @function
addItem:
.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, 272
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -256[rbp], 0
	lea	rsi, .LC19[rip]
	lea	rdi, path1[rip]
	call	fopen@PLT
	mov	QWORD PTR -248[rbp], rax
	cmp	QWORD PTR -248[rbp], 0
	jne	.L40
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L40:
	mov	eax, DWORD PTR recCount[rip]
	add	eax, 1
	mov	DWORD PTR recCount[rip], eax
	mov	eax, 0
	call	line
	mov	DWORD PTR -260[rbp], -1
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -240[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L41
.L42:
	lea	rdi, .LC22[rip]
	call	puts@PLT
	lea	rax, -240[rbp]
	sub	rax, -128
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -240[rbp]
	add	rax, 132
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -240[rbp]
	add	rax, 136
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rax, -240[rbp]
	add	rax, 140
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -240[rbp]
	add	rax, 144
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -240[rbp]
	add	rax, 148
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdx, -260[rbp]
	lea	rax, -240[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	datecheck
	mov	eax, DWORD PTR -260[rbp]
	cmp	eax, -1
	jne	.L41
	lea	rdi, .LC23[rip]
	call	puts@PLT
.L41:
	mov	eax, DWORD PTR -260[rbp]
	cmp	eax, -1
	je	.L42
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -240[rbp]
	add	rax, 152
	mov	rsi, rax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -240[rbp]
	add	rax, 156
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -240[rbp]
	add	rax, 160
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -240[rbp]
	add	rax, 164
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -240[rbp]
	add	rax, 196
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, 0
	call	line
	mov	rdx, QWORD PTR -248[rbp]
	lea	rax, -240[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 228
	mov	rdi, rax
	call	fwrite@PLT
	mov	DWORD PTR -252[rbp], 0
.L46:
	lea	rdi, .LC30[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -261[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -261[rbp]
	movsx	eax, al
	cmp	eax, 110
	je	.L43
	cmp	eax, 121
	jne	.L44
	mov	DWORD PTR -256[rbp], 0
	mov	DWORD PTR -252[rbp], 1
	jmp	.L45
.L43:
	mov	DWORD PTR -256[rbp], 1
	mov	DWORD PTR -252[rbp], 1
	jmp	.L45
.L44:
	lea	rdi, .LC18[rip]
	call	puts@PLT
	nop
.L45:
	cmp	DWORD PTR -252[rbp], 1
	jne	.L46
	cmp	DWORD PTR -256[rbp], 1
	jne	.L40
	mov	rax, QWORD PTR -248[rbp]
	mov	rdi, rax
	call	fclose@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
.LFE11:
	.size	addItem, .-addItem
	.section	.rodata
.LC31:
	.string	"rb"
.LC32:
	.string	"Serial number : %d\n"
.LC33:
	.string	"Name : %s\n"
	.align 8
.LC34:
	.string	"Date of manufacture : %d / %d / %d\n"
	.align 8
.LC35:
	.string	"Date of expiry : %d / %d / %d\n"
.LC36:
	.string	"Cost per unit : %f\n"
.LC37:
	.string	"Quantity in stock : %d\n"
.LC38:
	.string	"Safety stock : %d\n"
.LC39:
	.string	"Reference ID : %s\n"
.LC40:
	.string	"Type : %s\n"
	.text
	.globl	viewItems
	.type	viewItems, @function
viewItems:
.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, 256
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -252[rbp], 1
	lea	rsi, .LC31[rip]
	lea	rdi, path1[rip]
	call	fopen@PLT
	mov	QWORD PTR -248[rbp], rax
	cmp	QWORD PTR -248[rbp], 0
	jne	.L49
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L49:
	mov	eax, 0
	call	line
	jmp	.L50
.L51:
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -252[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -252[rbp], edx
	mov	esi, eax
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -240[rbp]
	mov	rsi, rax
	lea	rdi, .LC33[rip]
	mov	eax, 0
	call	printf@PLT
	mov	ecx, DWORD PTR -104[rbp]
	mov	edx, DWORD PTR -108[rbp]
	mov	eax, DWORD PTR -112[rbp]
	mov	esi, eax
	lea	rdi, .LC34[rip]
	mov	eax, 0
	call	printf@PLT
	mov	ecx, DWORD PTR -92[rbp]
	mov	edx, DWORD PTR -96[rbp]
	mov	eax, DWORD PTR -100[rbp]
	mov	esi, eax
	lea	rdi, .LC35[rip]
	mov	eax, 0
	call	printf@PLT
	movss	xmm0, DWORD PTR -88[rbp]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC36[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, eax
	lea	rdi, .LC37[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -80[rbp]
	mov	esi, eax
	lea	rdi, .LC38[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -240[rbp]
	add	rax, 164
	mov	rsi, rax
	lea	rdi, .LC39[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -240[rbp]
	add	rax, 196
	mov	rsi, rax
	lea	rdi, .LC40[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
.L50:
	mov	rdx, QWORD PTR -248[rbp]
	lea	rax, -240[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 228
	mov	rdi, rax
	call	fread@PLT
	test	rax, rax
	jne	.L51
	mov	rax, QWORD PTR -248[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L52
	call	__stack_chk_fail@PLT
.L52:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	viewItems, .-viewItems
	.section	.rodata
.LC41:
	.string	"Card number : %s\n"
.LC42:
	.string	"CVV : %d\n"
.LC43:
	.string	"Amount deducted : %f\n"
	.text
	.globl	viewPaymentInfo
	.type	viewPaymentInfo, @function
viewPaymentInfo:
.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -60[rbp], 1
	lea	rsi, .LC31[rip]
	lea	rdi, path2[rip]
	call	fopen@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L54
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L54:
	mov	eax, 0
	call	line
	jmp	.L55
.L56:
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -60[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -60[rbp], edx
	mov	esi, eax
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC41[rip]
	mov	eax, 0
	call	printf@PLT
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC35[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC42[rip]
	mov	eax, 0
	call	printf@PLT
	movss	xmm0, DWORD PTR -16[rbp]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC43[rip]
	mov	eax, 1
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
.L55:
	mov	rdx, QWORD PTR -56[rbp]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 36
	mov	rdi, rax
	call	fread@PLT
	test	rax, rax
	jne	.L56
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L57
	call	__stack_chk_fail@PLT
.L57:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	viewPaymentInfo, .-viewPaymentInfo
	.section	.rodata
	.align 8
.LC44:
	.string	"Input the name of the record to be deleted : "
	.align 8
.LC45:
	.string	"A record with requested name found and deleted.\n"
	.text
	.globl	deleteItem
	.type	deleteItem, @function
deleteItem:
.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, 304
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -292[rbp], 0
	mov	eax, 0
	call	line
	lea	rdi, .LC44[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, 0
	call	line
	lea	rsi, .LC31[rip]
	lea	rdi, path1[rip]
	call	fopen@PLT
	mov	QWORD PTR -288[rbp], rax
	cmp	QWORD PTR -288[rbp], 0
	jne	.L59
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L59:
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -280[rbp], rax
	cmp	QWORD PTR -280[rbp], 0
	jne	.L61
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L63:
	lea	rdx, -272[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L62
	lea	rdi, .LC45[rip]
	call	puts@PLT
	mov	DWORD PTR -292[rbp], 1
	jmp	.L61
.L62:
	mov	rdx, QWORD PTR -280[rbp]
	lea	rax, -272[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 228
	mov	rdi, rax
	call	fwrite@PLT
.L61:
	mov	rdx, QWORD PTR -288[rbp]
	lea	rax, -272[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 228
	mov	rdi, rax
	call	fread@PLT
	test	rax, rax
	jne	.L63
	cmp	DWORD PTR -292[rbp], 0
	jne	.L64
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
.L64:
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, path1[rip]
	call	remove@PLT
	lea	rsi, path1[rip]
	lea	rdi, .LC5[rip]
	call	rename@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L65
	call	__stack_chk_fail@PLT
.L65:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	deleteItem, .-deleteItem
	.section	.rodata
	.align 8
.LC46:
	.string	"Warning : Inadequate safety stock. Restock immediately\n"
	.align 8
.LC47:
	.string	"Warning : Stock expired. Discard immediately\n"
	.text
	.globl	reviewWarnings
	.type	reviewWarnings, @function
reviewWarnings:
.LFB15:
	.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, 360
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -356[rbp], 1
	lea	rsi, .LC31[rip]
	lea	rdi, path1[rip]
	call	fopen@PLT
	mov	QWORD PTR -344[rbp], rax
	cmp	QWORD PTR -344[rbp], 0
	jne	.L67
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L67:
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -352[rbp], rax
	lea	rax, -352[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR -320[rbp], rcx
	mov	QWORD PTR -312[rbp], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR -304[rbp], rcx
	mov	QWORD PTR -296[rbp], rbx
	mov	rcx, QWORD PTR 32[rax]
	mov	rbx, QWORD PTR 40[rax]
	mov	QWORD PTR -288[rbp], rcx
	mov	QWORD PTR -280[rbp], rbx
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -272[rbp], rax
	mov	eax, DWORD PTR -300[rbp]
	add	eax, 1900
	mov	DWORD PTR -324[rbp], eax
	mov	eax, DWORD PTR -304[rbp]
	add	eax, 1
	mov	DWORD PTR -328[rbp], eax
	mov	eax, DWORD PTR -308[rbp]
	mov	DWORD PTR -332[rbp], eax
	mov	eax, 0
	call	line
	jmp	.L68
.L70:
	mov	edx, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR -96[rbp]
	cmp	edx, eax
	jg	.L69
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -356[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -356[rbp], edx
	mov	esi, eax
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -256[rbp]
	mov	rsi, rax
	lea	rdi, .LC33[rip]
	mov	eax, 0
	call	printf@PLT
	mov	ecx, DWORD PTR -120[rbp]
	mov	edx, DWORD PTR -124[rbp]
	mov	eax, DWORD PTR -128[rbp]
	mov	esi, eax
	lea	rdi, .LC34[rip]
	mov	eax, 0
	call	printf@PLT
	mov	ecx, DWORD PTR -108[rbp]
	mov	edx, DWORD PTR -112[rbp]
	mov	eax, DWORD PTR -116[rbp]
	mov	esi, eax
	lea	rdi, .LC35[rip]
	mov	eax, 0
	call	printf@PLT
	movss	xmm0, DWORD PTR -104[rbp]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC36[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR -100[rbp]
	mov	esi, eax
	lea	rdi, .LC37[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -96[rbp]
	mov	esi, eax
	lea	rdi, .LC38[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -256[rbp]
	add	rax, 164
	mov	rsi, rax
	lea	rdi, .LC39[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -256[rbp]
	add	rax, 196
	mov	rsi, rax
	lea	rdi, .LC40[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -256[rbp]
	add	rax, 196
	mov	rsi, rax
	lea	rdi, .LC46[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
.L69:
	mov	rax, QWORD PTR -116[rbp]
	mov	ecx, DWORD PTR -108[rbp]
	mov	rdx, rcx
	mov	rdi, QWORD PTR -332[rbp]
	mov	esi, DWORD PTR -324[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	call	dateCompare
	test	eax, eax
	jle	.L68
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -356[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -356[rbp], edx
	mov	esi, eax
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -256[rbp]
	mov	rsi, rax
	lea	rdi, .LC33[rip]
	mov	eax, 0
	call	printf@PLT
	mov	ecx, DWORD PTR -120[rbp]
	mov	edx, DWORD PTR -124[rbp]
	mov	eax, DWORD PTR -128[rbp]
	mov	esi, eax
	lea	rdi, .LC34[rip]
	mov	eax, 0
	call	printf@PLT
	mov	ecx, DWORD PTR -108[rbp]
	mov	edx, DWORD PTR -112[rbp]
	mov	eax, DWORD PTR -116[rbp]
	mov	esi, eax
	lea	rdi, .LC35[rip]
	mov	eax, 0
	call	printf@PLT
	movss	xmm0, DWORD PTR -104[rbp]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rax, xmm2
	movq	xmm0, rax
	lea	rdi, .LC36[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR -100[rbp]
	mov	esi, eax
	lea	rdi, .LC37[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -96[rbp]
	mov	esi, eax
	lea	rdi, .LC38[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -256[rbp]
	add	rax, 164
	mov	rsi, rax
	lea	rdi, .LC39[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -256[rbp]
	add	rax, 196
	mov	rsi, rax
	lea	rdi, .LC40[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -256[rbp]
	add	rax, 196
	mov	rsi, rax
	lea	rdi, .LC47[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
.L68:
	mov	rdx, QWORD PTR -344[rbp]
	lea	rax, -256[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 228
	mov	rdi, rax
	call	fread@PLT
	test	rax, rax
	jne	.L70
	mov	rax, QWORD PTR -344[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L71
	call	__stack_chk_fail@PLT
.L71:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	reviewWarnings, .-reviewWarnings
	.section	.rodata
	.align 8
.LC48:
	.string	"\n________________________________________________________________________________________"
	.text
	.globl	line
	.type	line, @function
line:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC48[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	line, .-line
	.section	.rodata
.LC49:
	.string	"MENU"
.LC50:
	.string	"1. New purchase"
.LC51:
	.string	"2. Add items"
.LC52:
	.string	"3. Delete item"
.LC53:
	.string	"4. View items"
.LC54:
	.string	"5. View payment information"
.LC55:
	.string	"6. Review warnings"
.LC56:
	.string	"7. Change encryption key"
.LC57:
	.string	"0. Exit"
.LC58:
	.string	"Input your choice : "
.LC59:
	.string	"pause"
	.text
	.globl	main
	.type	main, @function
main:
.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 fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L74:
	mov	eax, 0
	call	clrscr
	mov	eax, 0
	call	line
	lea	rdi, .LC49[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	line
	lea	rdi, .LC50[rip]
	call	puts@PLT
	lea	rdi, .LC51[rip]
	call	puts@PLT
	lea	rdi, .LC52[rip]
	call	puts@PLT
	lea	rdi, .LC53[rip]
	call	puts@PLT
	lea	rdi, .LC54[rip]
	call	puts@PLT
	lea	rdi, .LC55[rip]
	call	puts@PLT
	lea	rdi, .LC56[rip]
	call	puts@PLT
	lea	rdi, .LC57[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	line
	lea	rdi, .LC58[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, 0
	call	line
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 7
	ja	.L75
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L77[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L77[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L77:
	.long	.L84-.L77
	.long	.L83-.L77
	.long	.L82-.L77
	.long	.L81-.L77
	.long	.L80-.L77
	.long	.L79-.L77
	.long	.L78-.L77
	.long	.L76-.L77
	.text
.L83:
	mov	edi, 1
	call	mainMenu
	jmp	.L85
.L82:
	mov	edi, 2
	call	mainMenu
	jmp	.L85
.L81:
	mov	edi, 3
	call	mainMenu
	jmp	.L85
.L80:
	mov	edi, 4
	call	mainMenu
	mov	edi, 10
	call	delay
	jmp	.L85
.L79:
	mov	edi, 5
	call	mainMenu
	jmp	.L85
.L78:
	mov	edi, 6
	call	mainMenu
	jmp	.L85
.L76:
	mov	edi, 7
	call	mainMenu
	jmp	.L85
.L84:
	mov	edi, 0
	call	mainMenu
	jmp	.L85
.L75:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L74
.L85:
	lea	rdi, .LC59[rip]
	call	system@PLT
	jmp	.L74
	.cfi_endproc
.LFE17:
	.size	main, .-main
	.globl	datecheck
	.type	datecheck, @function
datecheck:
.LFB18:
	.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
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 148[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 136[rax]
	cmp	edx, eax
	jl	.L88
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 148[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 136[rax]
	cmp	edx, eax
	jne	.L89
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 144[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 132[rax]
	cmp	edx, eax
	jl	.L88
.L89:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 148[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 136[rax]
	cmp	edx, eax
	jne	.L90
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 144[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 132[rax]
	cmp	edx, eax
	jne	.L90
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 140[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 128[rax]
	cmp	edx, eax
	jge	.L90
.L88:
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], -1
	jmp	.L91
.L90:
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 1
	nop
.L91:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	datecheck, .-datecheck
	.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	"285566.c"
	.text
	.global	path1
	.data
	.align	2
	.type	path1, %object
	.size	path1, 9
path1:
	.ascii	"data.bin\000"
	.global	path2
	.align	2
	.type	path2, %object
	.size	path2, 16
path2:
	.ascii	"paymentInfo.bin\000"
	.global	fpl
	.bss
	.align	2
	.type	fpl, %object
	.size	fpl, 4
fpl:
	.space	4
	.global	recCount
	.align	2
	.type	recCount, %object
	.size	recCount, 4
recCount:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"@cls||clear\000"
	.text
	.align	2
	.global	clrscr
	.syntax unified
	.arm
	.fpu softvfp
	.type	clrscr, %function
clrscr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	system
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	clrscr, .-clrscr
	.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
.L5:
	bl	clock
	mov	r1, r0
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	cmp	r1, r3
	blt	.L5
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	delay, .-delay
	.align	2
	.global	dateCompare
	.syntax unified
	.arm
	.fpu softvfp
	.type	dateCompare, %function
dateCompare:
	@ args = 16, pretend = 8, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	sub	sp, sp, #8
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	sub	ip, fp, #16
	stm	ip, {r0, r1, r2}
	str	r3, [fp, #8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #16]
	cmp	r2, r3
	ble	.L7
	mov	r3, #1
	b	.L8
.L7:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #16]
	cmp	r2, r3
	bge	.L9
	mvn	r3, #0
	b	.L8
.L9:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #12]
	cmp	r2, r3
	ble	.L10
	mov	r3, #1
	b	.L8
.L10:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #12]
	cmp	r2, r3
	bge	.L11
	mvn	r3, #0
	b	.L8
.L11:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #8]
	cmp	r2, r3
	ble	.L12
	mov	r3, #1
	b	.L8
.L12:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #8]
	cmp	r2, r3
	bge	.L13
	mvn	r3, #0
	b	.L8
.L13:
	mov	r3, #0
.L8:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	add	sp, sp, #8
	bx	lr
	.size	dateCompare, .-dateCompare
	.section	.rodata
	.align	2
.LC1:
	.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]
.L15:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L16
.L18:
	.word	.L25
	.word	.L24
	.word	.L23
	.word	.L22
	.word	.L21
	.word	.L20
	.word	.L19
	.word	.L27
.L24:
	bl	newPurchase
	b	.L26
.L23:
	bl	addItem
	b	.L26
.L22:
	bl	deleteItem
	b	.L26
.L21:
	bl	viewItems
	b	.L26
.L20:
	bl	viewPaymentInfo
	b	.L26
.L19:
	bl	reviewWarnings
	b	.L26
.L25:
	mov	r0, #0
	bl	exit
.L16:
	ldr	r0, .L28
	bl	printf
	b	.L15
.L27:
	nop
.L26:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC1
	.size	mainMenu, .-mainMenu
	.section	.rodata
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	"Unable to open file\000"
	.align	2
.LC4:
	.ascii	"wb\000"
	.align	2
.LC5:
	.ascii	"tmp.bin\000"
	.align	2
.LC6:
	.ascii	"Unable to open temp file\000"
	.align	2
.LC7:
	.ascii	"Unable to open payment information file\000"
	.align	2
.LC8:
	.ascii	"Input the name of the medicine to be purchased : \000"
	.align	2
.LC9:
	.ascii	" %[^\012]%*c\000"
	.align	2
.LC10:
	.ascii	"Input the quantity to be purchased : \000"
	.align	2
.LC11:
	.ascii	" %d\000"
	.align	2
.LC12:
	.ascii	"Input card number : \000"
	.align	2
.LC13:
	.ascii	"Input date of expiry in dd <enter> mm <enter> yy fo"
	.ascii	"rmat\000"
	.align	2
.LC14:
	.ascii	"Input CVV : \000"
	.global	__aeabi_i2f
	.global	__aeabi_fmul
	.align	2
.LC15:
	.ascii	"No record(s) found with the requested name: %s\012\012"
	.ascii	"\000"
	.align	2
.LC16:
	.ascii	"\012Would you like to make another purchase? (y/n) "
	.ascii	"\000"
	.align	2
.LC17:
	.ascii	"%s\000"
	.align	2
.LC18:
	.ascii	"Please enter a valid condition! \000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	newPurchase
	.syntax unified
	.arm
	.fpu softvfp
	.type	newPurchase, %function
newPurchase:
	@ args = 0, pretend = 0, frame = 320
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #320
	ldr	r3, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-312]
	mov	r3, #0
	str	r3, [fp, #-308]
	ldr	r1, .L43+4
	ldr	r0, .L43+8
	bl	fopen
	str	r0, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	bne	.L31
	ldr	r0, .L43+12
	bl	printf
	mov	r0, #0
	bl	exit
.L31:
	ldr	r1, .L43+16
	ldr	r0, .L43+20
	bl	fopen
	str	r0, [fp, #-296]
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	bne	.L32
	ldr	r0, .L43+24
	bl	printf
	mov	r0, #0
	bl	exit
.L32:
	ldr	r1, .L43+16
	ldr	r0, .L43+28
	bl	fopen
	str	r0, [fp, #-292]
	ldr	r3, [fp, #-292]
	cmp	r3, #0
	bne	.L33
	ldr	r0, .L43+32
	bl	printf
	mov	r0, #0
	bl	exit
.L33:
	ldr	r3, .L43+36
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L43+36
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-312]
	bl	line
	ldr	r0, .L43+40
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L43+44
	bl	__isoc99_scanf
	ldr	r0, .L43+48
	bl	printf
	sub	r3, fp, #316
	mov	r1, r3
	ldr	r0, .L43+52
	bl	__isoc99_scanf
	ldr	r0, .L43+56
	bl	printf
	sub	r3, fp, #288
	mov	r1, r3
	ldr	r0, .L43+44
	bl	__isoc99_scanf
	ldr	r0, .L43+60
	bl	puts
	sub	r3, fp, #288
	add	r3, r3, #16
	mov	r1, r3
	ldr	r0, .L43+52
	bl	__isoc99_scanf
	sub	r3, fp, #288
	add	r3, r3, #20
	mov	r1, r3
	ldr	r0, .L43+52
	bl	__isoc99_scanf
	sub	r3, fp, #288
	add	r3, r3, #24
	mov	r1, r3
	ldr	r0, .L43+52
	bl	__isoc99_scanf
	ldr	r0, .L43+64
	bl	printf
	sub	r3, fp, #288
	add	r3, r3, #28
	mov	r1, r3
	ldr	r0, .L43+52
	bl	__isoc99_scanf
	bl	line
	b	.L34
.L36:
	sub	r2, fp, #252
	sub	r3, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	ldr	r3, [fp, #-316]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r2, r0
	ldr	r3, [fp, #-100]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-256]	@ float
	ldr	r2, [fp, #-96]
	ldr	r3, [fp, #-316]
	sub	r3, r2, r3
	str	r3, [fp, #-96]
	sub	r0, fp, #252
	ldr	r3, [fp, #-296]
	mov	r2, #1
	mov	r1, #228
	bl	fwrite
	sub	r0, fp, #288
	ldr	r3, [fp, #-292]
	mov	r2, #1
	mov	r1, #36
	bl	fwrite
	mov	r3, #1
	str	r3, [fp, #-312]
	b	.L34
.L35:
	sub	r0, fp, #252
	ldr	r3, [fp, #-296]
	mov	r2, #1
	mov	r1, #228
	bl	fwrite
.L34:
	sub	r0, fp, #252
	ldr	r3, [fp, #-300]
	mov	r2, #1
	mov	r1, #228
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	bne	.L36
	ldr	r3, [fp, #-312]
	cmp	r3, #0
	bne	.L37
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L43+68
	bl	printf
.L37:
	mov	r3, #0
	str	r3, [fp, #-304]
.L41:
	ldr	r0, .L43+72
	bl	printf
	sub	r3, fp, #316
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L43+76
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-317]	@ zero_extendqisi2
	cmp	r3, #110
	beq	.L38
	cmp	r3, #121
	bne	.L39
	mov	r3, #0
	str	r3, [fp, #-308]
	mov	r3, #1
	str	r3, [fp, #-304]
	b	.L40
.L38:
	mov	r3, #1
	str	r3, [fp, #-308]
	mov	r3, #1
	str	r3, [fp, #-304]
	b	.L40
.L39:
	ldr	r0, .L43+80
	bl	puts
	nop
.L40:
	ldr	r3, [fp, #-304]
	cmp	r3, #1
	bne	.L41
	ldr	r3, [fp, #-308]
	cmp	r3, #1
	bne	.L33
	ldr	r0, [fp, #-300]
	bl	fclose
	ldr	r0, [fp, #-296]
	bl	fclose
	ldr	r0, [fp, #-292]
	bl	fclose
	ldr	r0, .L43+8
	bl	remove
	ldr	r1, .L43+8
	ldr	r0, .L43+20
	bl	rename
	nop
	ldr	r3, .L43
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC19
	.word	.LC2
	.word	path1
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	path2
	.word	.LC7
	.word	recCount
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	newPurchase, .-newPurchase
	.section	.rodata
	.align	2
.LC20:
	.ascii	"ab\000"
	.align	2
.LC21:
	.ascii	"Unable to open file!\000"
	.align	2
.LC22:
	.ascii	"Input name (w/ brand) : \000"
	.align	2
.LC23:
	.ascii	"Input date of manufacture in dd <enter> mm <enter> "
	.ascii	"yy format\000"
	.align	2
.LC24:
	.ascii	"\012Sorry Date of Expiry cannot be before Date of m"
	.ascii	"anufacture ... \012Please enter Date again\000"
	.align	2
.LC25:
	.ascii	"Input cost per unit : \000"
	.align	2
.LC26:
	.ascii	" %f\000"
	.align	2
.LC27:
	.ascii	"Input stock quantity : \000"
	.align	2
.LC28:
	.ascii	"Input safety stock quantity : \000"
	.align	2
.LC29:
	.ascii	"Input reference ID : \000"
	.align	2
.LC30:
	.ascii	"Input type (manner of consumption) : \000"
	.align	2
.LC31:
	.ascii	"\012Would you like to write another record? (y/n) \000"
	.align	2
.LC32:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	addItem
	.syntax unified
	.arm
	.fpu softvfp
	.type	addItem, %function
addItem:
	@ args = 0, pretend = 0, frame = 256
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #256
	ldr	r3, .L54
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-248]
	ldr	r1, .L54+4
	ldr	r0, .L54+8
	bl	fopen
	str	r0, [fp, #-240]
	ldr	r3, [fp, #-240]
	cmp	r3, #0
	bne	.L46
	ldr	r0, .L54+12
	bl	printf
	mov	r0, #0
	bl	exit
.L46:
	ldr	r3, .L54+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L54+16
	str	r3, [r2]
	bl	line
	mvn	r3, #0
	str	r3, [fp, #-252]
	ldr	r0, .L54+20
	bl	printf
	sub	r3, fp, #236
	mov	r1, r3
	ldr	r0, .L54+24
	bl	__isoc99_scanf
	b	.L47
.L48:
	ldr	r0, .L54+28
	bl	puts
	sub	r3, fp, #236
	add	r3, r3, #128
	mov	r1, r3
	ldr	r0, .L54+32
	bl	__isoc99_scanf
	sub	r3, fp, #236
	add	r3, r3, #132
	mov	r1, r3
	ldr	r0, .L54+32
	bl	__isoc99_scanf
	sub	r3, fp, #236
	add	r3, r3, #136
	mov	r1, r3
	ldr	r0, .L54+32
	bl	__isoc99_scanf
	ldr	r0, .L54+36
	bl	puts
	sub	r3, fp, #236
	add	r3, r3, #140
	mov	r1, r3
	ldr	r0, .L54+32
	bl	__isoc99_scanf
	sub	r3, fp, #236
	add	r3, r3, #144
	mov	r1, r3
	ldr	r0, .L54+32
	bl	__isoc99_scanf
	sub	r3, fp, #236
	add	r3, r3, #148
	mov	r1, r3
	ldr	r0, .L54+32
	bl	__isoc99_scanf
	sub	r2, fp, #252
	sub	r3, fp, #236
	mov	r1, r2
	mov	r0, r3
	bl	datecheck
	ldr	r3, [fp, #-252]
	cmn	r3, #1
	bne	.L47
	ldr	r0, .L54+40
	bl	puts
.L47:
	ldr	r3, [fp, #-252]
	cmn	r3, #1
	beq	.L48
	ldr	r0, .L54+44
	bl	printf
	sub	r3, fp, #236
	add	r3, r3, #152
	mov	r1, r3
	ldr	r0, .L54+48
	bl	__isoc99_scanf
	ldr	r0, .L54+52
	bl	printf
	sub	r3, fp, #236
	add	r3, r3, #156
	mov	r1, r3
	ldr	r0, .L54+32
	bl	__isoc99_scanf
	ldr	r0, .L54+56
	bl	printf
	sub	r3, fp, #236
	add	r3, r3, #160
	mov	r1, r3
	ldr	r0, .L54+32
	bl	__isoc99_scanf
	ldr	r0, .L54+60
	bl	printf
	sub	r3, fp, #236
	add	r3, r3, #164
	mov	r1, r3
	ldr	r0, .L54+24
	bl	__isoc99_scanf
	ldr	r0, .L54+64
	bl	printf
	sub	r3, fp, #236
	add	r3, r3, #196
	mov	r1, r3
	ldr	r0, .L54+24
	bl	__isoc99_scanf
	bl	line
	sub	r0, fp, #236
	ldr	r3, [fp, #-240]
	mov	r2, #1
	mov	r1, #228
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-244]
.L52:
	ldr	r0, .L54+68
	bl	printf
	sub	r3, fp, #253
	mov	r1, r3
	ldr	r0, .L54+72
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-253]	@ zero_extendqisi2
	cmp	r3, #110
	beq	.L49
	cmp	r3, #121
	bne	.L50
	mov	r3, #0
	str	r3, [fp, #-248]
	mov	r3, #1
	str	r3, [fp, #-244]
	b	.L51
.L49:
	mov	r3, #1
	str	r3, [fp, #-248]
	mov	r3, #1
	str	r3, [fp, #-244]
	b	.L51
.L50:
	ldr	r0, .L54+76
	bl	puts
	nop
.L51:
	ldr	r3, [fp, #-244]
	cmp	r3, #1
	bne	.L52
	ldr	r3, [fp, #-248]
	cmp	r3, #1
	bne	.L46
	ldr	r0, [fp, #-240]
	bl	fclose
	nop
	ldr	r3, .L54
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L53
	bl	__stack_chk_fail
.L53:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC32
	.word	.LC20
	.word	path1
	.word	.LC21
	.word	recCount
	.word	.LC22
	.word	.LC9
	.word	.LC23
	.word	.LC11
	.word	.LC13
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC17
	.word	.LC18
	.size	addItem, .-addItem
	.section	.rodata
	.align	2
.LC33:
	.ascii	"rb\000"
	.align	2
.LC34:
	.ascii	"Serial number : %d\012\000"
	.align	2
.LC35:
	.ascii	"Name : %s\012\000"
	.align	2
.LC36:
	.ascii	"Date of manufacture : %d / %d / %d\012\000"
	.align	2
.LC37:
	.ascii	"Date of expiry : %d / %d / %d\012\000"
	.global	__aeabi_f2d
	.align	2
.LC38:
	.ascii	"Cost per unit : %f\012\000"
	.align	2
.LC39:
	.ascii	"Quantity in stock : %d\012\000"
	.align	2
.LC40:
	.ascii	"Safety stock : %d\012\000"
	.align	2
.LC41:
	.ascii	"Reference ID : %s\012\000"
	.align	2
.LC42:
	.ascii	"Type : %s\012\000"
	.align	2
.LC43:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	viewItems
	.syntax unified
	.arm
	.fpu softvfp
	.type	viewItems, %function
viewItems:
	@ args = 0, pretend = 0, frame = 240
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #240
	ldr	r3, .L61
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-244]
	ldr	r1, .L61+4
	ldr	r0, .L61+8
	bl	fopen
	str	r0, [fp, #-240]
	ldr	r3, [fp, #-240]
	cmp	r3, #0
	bne	.L57
	ldr	r0, .L61+12
	bl	printf
	mov	r0, #0
	bl	exit
.L57:
	bl	line
	b	.L58
.L59:
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-244]
	add	r2, r3, #1
	str	r2, [fp, #-244]
	mov	r1, r3
	ldr	r0, .L61+16
	bl	printf
	sub	r3, fp, #236
	mov	r1, r3
	ldr	r0, .L61+20
	bl	printf
	ldr	r1, [fp, #-108]
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-100]
	ldr	r0, .L61+24
	bl	printf
	ldr	r1, [fp, #-96]
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-88]
	ldr	r0, .L61+28
	bl	printf
	ldr	r3, [fp, #-84]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L61+32
	bl	printf
	ldr	r3, [fp, #-80]
	mov	r1, r3
	ldr	r0, .L61+36
	bl	printf
	ldr	r3, [fp, #-76]
	mov	r1, r3
	ldr	r0, .L61+40
	bl	printf
	sub	r3, fp, #236
	add	r3, r3, #164
	mov	r1, r3
	ldr	r0, .L61+44
	bl	printf
	sub	r3, fp, #236
	add	r3, r3, #196
	mov	r1, r3
	ldr	r0, .L61+48
	bl	printf
	mov	r0, #10
	bl	putchar
.L58:
	sub	r0, fp, #236
	ldr	r3, [fp, #-240]
	mov	r2, #1
	mov	r1, #228
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	bne	.L59
	ldr	r0, [fp, #-240]
	bl	fclose
	nop
	ldr	r3, .L61
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L60
	bl	__stack_chk_fail
.L60:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L62:
	.align	2
.L61:
	.word	.LC43
	.word	.LC33
	.word	path1
	.word	.LC21
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.size	viewItems, .-viewItems
	.section	.rodata
	.align	2
.LC44:
	.ascii	"Card number : %s\012\000"
	.align	2
.LC45:
	.ascii	"CVV : %d\012\000"
	.align	2
.LC46:
	.ascii	"Amount deducted : %f\012\000"
	.align	2
.LC47:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	viewPaymentInfo
	.syntax unified
	.arm
	.fpu softvfp
	.type	viewPaymentInfo, %function
viewPaymentInfo:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L68
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-52]
	ldr	r1, .L68+4
	ldr	r0, .L68+8
	bl	fopen
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L64
	ldr	r0, .L68+12
	bl	printf
	mov	r0, #0
	bl	exit
.L64:
	bl	line
	b	.L65
.L66:
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-52]
	add	r2, r3, #1
	str	r2, [fp, #-52]
	mov	r1, r3
	ldr	r0, .L68+16
	bl	printf
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L68+20
	bl	printf
	ldr	r1, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	ldr	r0, .L68+24
	bl	printf
	ldr	r3, [fp, #-16]
	mov	r1, r3
	ldr	r0, .L68+28
	bl	printf
	ldr	r3, [fp, #-12]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L68+32
	bl	printf
	mov	r0, #10
	bl	putchar
.L65:
	sub	r0, fp, #44
	ldr	r3, [fp, #-48]
	mov	r2, #1
	mov	r1, #36
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	bne	.L66
	ldr	r0, [fp, #-48]
	bl	fclose
	nop
	ldr	r3, .L68
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L67
	bl	__stack_chk_fail
.L67:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	.LC47
	.word	.LC33
	.word	path2
	.word	.LC21
	.word	.LC34
	.word	.LC44
	.word	.LC37
	.word	.LC45
	.word	.LC46
	.size	viewPaymentInfo, .-viewPaymentInfo
	.section	.rodata
	.align	2
.LC48:
	.ascii	"Input the name of the record to be deleted : \000"
	.align	2
.LC49:
	.ascii	"A record with requested name found and deleted.\012"
	.ascii	"\000"
	.align	2
.LC50:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	deleteItem
	.syntax unified
	.arm
	.fpu softvfp
	.type	deleteItem, %function
deleteItem:
	@ args = 0, pretend = 0, frame = 264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #264
	ldr	r3, .L78
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-264]
	bl	line
	ldr	r0, .L78+4
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L78+8
	bl	__isoc99_scanf
	bl	line
	ldr	r1, .L78+12
	ldr	r0, .L78+16
	bl	fopen
	str	r0, [fp, #-260]
	ldr	r3, [fp, #-260]
	cmp	r3, #0
	bne	.L71
	ldr	r0, .L78+20
	bl	printf
	mov	r0, #0
	bl	exit
.L71:
	ldr	r1, .L78+24
	ldr	r0, .L78+28
	bl	fopen
	str	r0, [fp, #-256]
	ldr	r3, [fp, #-256]
	cmp	r3, #0
	bne	.L73
	ldr	r0, .L78+32
	bl	printf
	mov	r0, #0
	bl	exit
.L75:
	sub	r2, fp, #252
	sub	r3, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L74
	ldr	r0, .L78+36
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-264]
	b	.L73
.L74:
	sub	r0, fp, #252
	ldr	r3, [fp, #-256]
	mov	r2, #1
	mov	r1, #228
	bl	fwrite
.L73:
	sub	r0, fp, #252
	ldr	r3, [fp, #-260]
	mov	r2, #1
	mov	r1, #228
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	bne	.L75
	ldr	r3, [fp, #-264]
	cmp	r3, #0
	bne	.L76
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L78+40
	bl	printf
.L76:
	ldr	r0, [fp, #-260]
	bl	fclose
	ldr	r0, [fp, #-256]
	bl	fclose
	ldr	r0, .L78+16
	bl	remove
	ldr	r1, .L78+16
	ldr	r0, .L78+28
	bl	rename
	nop
	ldr	r3, .L78
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L77
	bl	__stack_chk_fail
.L77:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L79:
	.align	2
.L78:
	.word	.LC50
	.word	.LC48
	.word	.LC9
	.word	.LC33
	.word	path1
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC49
	.word	.LC15
	.size	deleteItem, .-deleteItem
	.section	.rodata
	.align	2
.LC51:
	.ascii	"Warning : Inadequate safety stock. Restock immediat"
	.ascii	"ely\012\000"
	.align	2
.LC52:
	.ascii	"Warning : Stock expired. Discard immediately\012\000"
	.align	2
.LC53:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	reviewWarnings
	.syntax unified
	.arm
	.fpu softvfp
	.type	reviewWarnings, %function
reviewWarnings:
	@ args = 0, pretend = 0, frame = 304
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #312
	ldr	r3, .L86
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-300]
	ldr	r1, .L86+4
	ldr	r0, .L86+8
	bl	fopen
	str	r0, [fp, #-296]
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	bne	.L81
	ldr	r0, .L86+12
	bl	printf
	mov	r0, #0
	bl	exit
.L81:
	mov	r0, #0
	bl	time
	mov	r3, r0
	str	r3, [fp, #-304]
	sub	r3, fp, #304
	mov	r0, r3
	bl	localtime
	mov	r3, r0
	sub	ip, fp, #280
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, [fp, #-260]
	add	r3, r3, #1888
	add	r3, r3, #12
	str	r3, [fp, #-284]
	ldr	r3, [fp, #-264]
	add	r3, r3, #1
	str	r3, [fp, #-288]
	ldr	r3, [fp, #-268]
	str	r3, [fp, #-292]
	bl	line
	b	.L82
.L84:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	bgt	.L83
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-300]
	add	r2, r3, #1
	str	r2, [fp, #-300]
	mov	r1, r3
	ldr	r0, .L86+16
	bl	printf
	sub	r3, fp, #236
	mov	r1, r3
	ldr	r0, .L86+20
	bl	printf
	ldr	r1, [fp, #-108]
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-100]
	ldr	r0, .L86+24
	bl	printf
	ldr	r1, [fp, #-96]
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-88]
	ldr	r0, .L86+28
	bl	printf
	ldr	r3, [fp, #-84]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L86+32
	bl	printf
	ldr	r3, [fp, #-80]
	mov	r1, r3
	ldr	r0, .L86+36
	bl	printf
	ldr	r3, [fp, #-76]
	mov	r1, r3
	ldr	r0, .L86+40
	bl	printf
	sub	r3, fp, #236
	add	r3, r3, #164
	mov	r1, r3
	ldr	r0, .L86+44
	bl	printf
	sub	r3, fp, #236
	add	r3, r3, #196
	mov	r1, r3
	ldr	r0, .L86+48
	bl	printf
	sub	r3, fp, #236
	add	r3, r3, #196
	mov	r1, r3
	ldr	r0, .L86+52
	bl	printf
	mov	r0, #10
	bl	putchar
.L83:
	mov	r2, sp
	sub	r3, fp, #92
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, [fp, #-96]
	sub	r2, fp, #292
	ldm	r2, {r0, r1, r2}
	bl	dateCompare
	mov	r3, r0
	cmp	r3, #0
	ble	.L82
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-300]
	add	r2, r3, #1
	str	r2, [fp, #-300]
	mov	r1, r3
	ldr	r0, .L86+16
	bl	printf
	sub	r3, fp, #236
	mov	r1, r3
	ldr	r0, .L86+20
	bl	printf
	ldr	r1, [fp, #-108]
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-100]
	ldr	r0, .L86+24
	bl	printf
	ldr	r1, [fp, #-96]
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-88]
	ldr	r0, .L86+28
	bl	printf
	ldr	r3, [fp, #-84]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L86+32
	bl	printf
	ldr	r3, [fp, #-80]
	mov	r1, r3
	ldr	r0, .L86+36
	bl	printf
	ldr	r3, [fp, #-76]
	mov	r1, r3
	ldr	r0, .L86+40
	bl	printf
	sub	r3, fp, #236
	add	r3, r3, #164
	mov	r1, r3
	ldr	r0, .L86+44
	bl	printf
	sub	r3, fp, #236
	add	r3, r3, #196
	mov	r1, r3
	ldr	r0, .L86+48
	bl	printf
	sub	r3, fp, #236
	add	r3, r3, #196
	mov	r1, r3
	ldr	r0, .L86+56
	bl	printf
	mov	r0, #10
	bl	putchar
.L82:
	sub	r0, fp, #236
	ldr	r3, [fp, #-296]
	mov	r2, #1
	mov	r1, #228
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	bne	.L84
	ldr	r0, [fp, #-296]
	bl	fclose
	nop
	ldr	r3, .L86
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L85
	bl	__stack_chk_fail
.L85:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L87:
	.align	2
.L86:
	.word	.LC53
	.word	.LC33
	.word	path1
	.word	.LC21
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC51
	.word	.LC52
	.size	reviewWarnings, .-reviewWarnings
	.section	.rodata
	.align	2
.LC54:
	.ascii	"\012_______________________________________________"
	.ascii	"_________________________________________\000"
	.text
	.align	2
	.global	line
	.syntax unified
	.arm
	.fpu softvfp
	.type	line, %function
line:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L89
	bl	puts
	nop
	pop	{fp, pc}
.L90:
	.align	2
.L89:
	.word	.LC54
	.size	line, .-line
	.section	.rodata
	.align	2
.LC55:
	.ascii	"MENU\000"
	.align	2
.LC56:
	.ascii	"1. New purchase\000"
	.align	2
.LC57:
	.ascii	"2. Add items\000"
	.align	2
.LC58:
	.ascii	"3. Delete item\000"
	.align	2
.LC59:
	.ascii	"4. View items\000"
	.align	2
.LC60:
	.ascii	"5. View payment information\000"
	.align	2
.LC61:
	.ascii	"6. Review warnings\000"
	.align	2
.LC62:
	.ascii	"7. Change encryption key\000"
	.align	2
.LC63:
	.ascii	"0. Exit\000"
	.align	2
.LC64:
	.ascii	"Input your choice : \000"
	.align	2
.LC65:
	.ascii	"pause\000"
	.align	2
.LC66:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L105
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L92:
	bl	clrscr
	bl	line
	ldr	r0, .L105+4
	bl	printf
	bl	line
	ldr	r0, .L105+8
	bl	puts
	ldr	r0, .L105+12
	bl	puts
	ldr	r0, .L105+16
	bl	puts
	ldr	r0, .L105+20
	bl	puts
	ldr	r0, .L105+24
	bl	puts
	ldr	r0, .L105+28
	bl	puts
	ldr	r0, .L105+32
	bl	puts
	ldr	r0, .L105+36
	bl	printf
	bl	line
	ldr	r0, .L105+40
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L105+44
	bl	__isoc99_scanf
	bl	line
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L93
.L95:
	.word	.L102
	.word	.L101
	.word	.L100
	.word	.L99
	.word	.L98
	.word	.L97
	.word	.L96
	.word	.L94
.L101:
	mov	r0, #1
	bl	mainMenu
	b	.L103
.L100:
	mov	r0, #2
	bl	mainMenu
	b	.L103
.L99:
	mov	r0, #3
	bl	mainMenu
	b	.L103
.L98:
	mov	r0, #4
	bl	mainMenu
	mov	r0, #10
	bl	delay
	b	.L103
.L97:
	mov	r0, #5
	bl	mainMenu
	b	.L103
.L96:
	mov	r0, #6
	bl	mainMenu
	b	.L103
.L94:
	mov	r0, #7
	bl	mainMenu
	b	.L103
.L102:
	mov	r0, #0
	bl	mainMenu
	b	.L103
.L93:
	ldr	r0, .L105+48
	bl	printf
	b	.L92
.L103:
	ldr	r0, .L105+52
	bl	system
	b	.L92
.L106:
	.align	2
.L105:
	.word	.LC66
	.word	.LC55
	.word	.LC56
	.word	.LC57
	.word	.LC58
	.word	.LC59
	.word	.LC60
	.word	.LC61
	.word	.LC62
	.word	.LC63
	.word	.LC64
	.word	.LC11
	.word	.LC1
	.word	.LC65
	.size	main, .-main
	.align	2
	.global	datecheck
	.syntax unified
	.arm
	.fpu softvfp
	.type	datecheck, %function
datecheck:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #148]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #136]
	cmp	r2, r3
	blt	.L108
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #148]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #136]
	cmp	r2, r3
	bne	.L109
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #144]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #132]
	cmp	r2, r3
	blt	.L108
.L109:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #148]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #136]
	cmp	r2, r3
	bne	.L110
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #144]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #132]
	cmp	r2, r3
	bne	.L110
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #140]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #128]
	cmp	r2, r3
	bge	.L110
.L108:
	ldr	r3, [fp, #-12]
	mvn	r2, #0
	str	r2, [r3]
	b	.L111
.L110:
	ldr	r3, [fp, #-12]
	mov	r2, #1
	str	r2, [r3]
	nop
.L111:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	datecheck, .-datecheck
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
