	.file	"122014624.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"PRODUCT NAME: %s\nPRODUCT PRICE: \342\202\254%.2f\n"
	.text
	.globl	printProduct
	.type	printProduct, @function
printProduct:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, rdi
	movq	rcx, xmm0
	mov	rdx, rcx
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], rdx
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	movq	xmm0, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 1
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	printProduct, .-printProduct
	.section	.rodata
.LC1:
	.string	"--------------------------"
	.align 8
.LC2:
	.string	"CUSTOMER NAME: %s\nCUSTOMER BUDGET: %.2f\n\n"
.LC3:
	.string	"QUANTITY: %d\n\n"
.LC4:
	.string	"COST: \342\202\254%.2f\n\n"
	.text
	.globl	printCustomer
	.type	printCustomer, @function
printCustomer:
.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
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR 24[rbp]
	mov	rax, QWORD PTR 16[rbp]
	movq	xmm0, rdx
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 1
	call	printf@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L3
.L4:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rax, 16[rax]
	add	rax, rbp
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rdx
	movq	xmm0, rax
	call	printProduct
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rax, 16[rax]
	add	rax, rbp
	add	rax, 32
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rax, 16[rax]
	add	rax, rbp
	add	rax, 32
	mov	eax, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rax, 16[rax]
	add	rax, rbp
	add	rax, 24
	movsd	xmm0, QWORD PTR [rax]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rax
	lea	rdi, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -12[rbp], 1
.L3:
	mov	eax, DWORD PTR 272[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L4
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	printCustomer, .-printCustomer
	.section	.rodata
.LC5:
	.string	"r"
.LC6:
	.string	"csv_files/stock.csv"
.LC7:
	.string	"CASH IN SHOP IS %.2f\n"
.LC8:
	.string	","
	.text
	.globl	createAndStockShop
	.type	createAndStockShop, @function
createAndStockShop:
.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, 656
	mov	QWORD PTR -648[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -632[rbp], 0
	mov	QWORD PTR -624[rbp], 0
	lea	rsi, .LC5[rip]
	lea	rdi, .LC6[rip]
	call	fopen@PLT
	mov	QWORD PTR -616[rbp], rax
	cmp	QWORD PTR -616[rbp], 0
	jne	.L6
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	rdx, QWORD PTR -616[rbp]
	lea	rcx, -624[rbp]
	lea	rax, -632[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -608[rbp], rax
	mov	rax, QWORD PTR -632[rbp]
	mov	rdi, rax
	call	atof@PLT
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -640[rbp], xmm0
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -640[rbp]
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC7[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rdx, -512[rbp]
	mov	eax, 0
	mov	ecx, 62
	mov	rdi, rdx
	rep stosq
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -640[rbp]
	movsd	QWORD PTR -512[rbp], xmm0
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -632[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -600[rbp], rax
	lea	rsi, .LC8[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -592[rbp], rax
	lea	rsi, .LC8[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -584[rbp], rax
	mov	rax, QWORD PTR -592[rbp]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR -576[rbp], rax
	mov	rax, QWORD PTR -584[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -636[rbp], eax
	mov	edi, 50
	call	malloc@PLT
	mov	QWORD PTR -568[rbp], rax
	mov	rdx, QWORD PTR -600[rbp]
	mov	rax, QWORD PTR -568[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -568[rbp]
	mov	QWORD PTR -560[rbp], rax
	movsd	xmm0, QWORD PTR -576[rbp]
	movsd	QWORD PTR -552[rbp], xmm0
	mov	rax, QWORD PTR -560[rbp]
	mov	rdx, QWORD PTR -552[rbp]
	mov	QWORD PTR -544[rbp], rax
	mov	QWORD PTR -536[rbp], rdx
	mov	eax, DWORD PTR -636[rbp]
	mov	DWORD PTR -528[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -24[rbp], edx
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	lea	rcx, -512[rax]
	mov	rax, QWORD PTR -544[rbp]
	mov	rdx, QWORD PTR -536[rbp]
	mov	QWORD PTR 8[rcx], rax
	mov	QWORD PTR 16[rcx], rdx
	mov	rax, QWORD PTR -528[rbp]
	mov	QWORD PTR 24[rcx], rax
.L7:
	mov	rdx, QWORD PTR -616[rbp]
	lea	rcx, -624[rbp]
	lea	rax, -632[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -608[rbp], rax
	cmp	QWORD PTR -608[rbp], -1
	jne	.L8
	mov	rax, QWORD PTR -648[rbp]
	mov	rdi, rax
	lea	rax, -512[rbp]
	mov	edx, 62
	mov	rsi, rax
	mov	rcx, rdx
	rep movsq
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	mov	rax, QWORD PTR -648[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	createAndStockShop, .-createAndStockShop
	.section	.rodata
.LC9:
	.string	"customer1.csv"
	.text
	.globl	customerOrderCSV
	.type	customerOrderCSV, @function
customerOrderCSV:
.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, 352
	mov	QWORD PTR -344[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -336[rbp], 0
	mov	QWORD PTR -328[rbp], 0
	lea	rsi, .LC5[rip]
	lea	rdi, .LC9[rip]
	call	fopen@PLT
	mov	QWORD PTR -320[rbp], rax
	cmp	QWORD PTR -320[rbp], 0
	jne	.L12
	mov	edi, 1
	call	exit@PLT
.L12:
	mov	rdx, QWORD PTR -320[rbp]
	lea	rcx, -328[rbp]
	lea	rax, -336[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -312[rbp], rax
	mov	rax, QWORD PTR -336[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -304[rbp], rax
	lea	rsi, .LC8[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -296[rbp], rax
	mov	edi, 50
	call	malloc@PLT
	mov	QWORD PTR -288[rbp], rax
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR -280[rbp], rax
	mov	rdx, QWORD PTR -304[rbp]
	mov	rax, QWORD PTR -288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rdx, -272[rbp]
	mov	eax, 0
	mov	ecx, 33
	mov	rdi, rdx
	rep stosq
	mov	rax, QWORD PTR -288[rbp]
	mov	QWORD PTR -272[rbp], rax
	movsd	xmm0, QWORD PTR -280[rbp]
	movsd	QWORD PTR -264[rbp], xmm0
	nop
.L13:
	mov	rdx, QWORD PTR -320[rbp]
	lea	rcx, -328[rbp]
	lea	rax, -336[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -312[rbp], rax
	cmp	QWORD PTR -312[rbp], -1
	jne	.L13
	mov	rax, QWORD PTR -344[rbp]
	mov	rdi, rax
	lea	rax, -272[rbp]
	mov	edx, 33
	mov	rsi, rax
	mov	rcx, rdx
	rep movsq
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	mov	rax, QWORD PTR -344[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	customerOrderCSV, .-customerOrderCSV
	.section	.rodata
.LC10:
	.string	"SHOP CASH FLOAT: \342\202\254%.2f\n"
	.align 8
.LC11:
	.string	"------------------------------"
.LC12:
	.string	"QUANTITY AVAILABLE: %d\n"
	.text
	.globl	printShop
	.type	printShop, @function
printShop:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movq	xmm0, rax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L17
.L18:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rdx
	movq	xmm0, rax
	call	printProduct
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	add	rax, 24
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L17:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 488[rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L18
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	printShop, .-printShop
	.section	.rodata
.LC13:
	.string	"\n-------------------"
.LC14:
	.string	"\nSHOP MENU"
.LC15:
	.string	"-------------------"
.LC16:
	.string	"\nView shop stock, press 1"
.LC17:
	.string	"\nMake an order, press 2"
.LC18:
	.string	"\nOption 3"
.LC19:
	.string	"\nPress 0 to Exit"
	.text
	.globl	displayMenu
	.type	displayMenu, @function
displayMenu:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rdi, .LC17[rip]
	call	puts@PLT
	lea	rdi, .LC18[rip]
	call	puts@PLT
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC19[rip]
	call	puts@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	displayMenu, .-displayMenu
	.section	.rodata
.LC20:
	.string	"----------------------------"
.LC21:
	.string	"To view menu press y."
.LC22:
	.string	"%c"
	.text
	.globl	toMenu
	.type	toMenu, @function
toMenu:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rdi, .LC20[rip]
	call	puts@PLT
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -9[rbp]
	mov	rsi, rax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 121
	jne	.L23
	mov	eax, 0
	call	displayMenu
.L23:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	toMenu, .-toMenu
	.globl	find
	.type	find, @function
find:
.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	DWORD PTR -4[rbp], 0
	jmp	.L25
.L28:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rax, 16[rax]
	add	rax, rbp
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L26
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rax, 16[rax]
	add	rax, rbp
	add	rax, 16
	movsd	xmm0, QWORD PTR [rax]
	jmp	.L27
.L26:
	add	DWORD PTR -4[rbp], 1
.L25:
	mov	eax, DWORD PTR 504[rbp]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L28
	movsd	xmm0, QWORD PTR .LC23[rip]
.L27:
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	find, .-find
	.section	.rodata
	.align 8
.LC24:
	.string	"\nPlease select a menu option: "
.LC25:
	.string	" %d"
.LC26:
	.string	"Shop Stock & Status"
.LC27:
	.string	"Make an order"
	.align 8
.LC29:
	.string	"There is insufficient funds in your account."
	.text
	.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
	sub	rsp, 800
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, 0
	call	displayMenu
	lea	rax, -512[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	createAndStockShop
	mov	DWORD PTR -788[rbp], -1
	jmp	.L30
.L34:
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -788[rbp]
	mov	rsi, rax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -788[rbp]
	cmp	eax, 1
	jne	.L31
	lea	rdi, .LC26[rip]
	call	puts@PLT
	lea	rax, -512[rbp]
	mov	rdi, rax
	call	printShop
	mov	eax, 0
	call	toMenu
	jmp	.L30
.L31:
	mov	eax, DWORD PTR -788[rbp]
	cmp	eax, 2
	jne	.L30
	lea	rdi, .LC27[rip]
	call	puts@PLT
	lea	rax, -784[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	customerOrderCSV
	movsd	xmm0, QWORD PTR -776[rbp]
	pxor	xmm1, xmm1
	ucomisd	xmm0, xmm1
	jp	.L30
	pxor	xmm1, xmm1
	ucomisd	xmm0, xmm1
	jne	.L30
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	toMenu
.L30:
	mov	eax, DWORD PTR -788[rbp]
	test	eax, eax
	jne	.L34
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC23:
	.long	0
	.long	-1074790400
	.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	"122014624.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"PRODUCT NAME: %s\012PRODUCT PRICE: \342\202\254%.2f"
	.ascii	"\012\000"
	.text
	.align	2
	.global	printProduct
	.syntax unified
	.arm
	.fpu softvfp
	.type	printProduct, %function
printProduct:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	sub	ip, fp, #20
	stm	ip, {r0, r1, r2, r3}
	ldr	r1, [fp, #-20]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L2
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	printProduct, .-printProduct
	.section	.rodata
	.align	2
.LC1:
	.ascii	"--------------------------\000"
	.align	2
.LC2:
	.ascii	"CUSTOMER NAME: %s\012CUSTOMER BUDGET: %.2f\012\012\000"
	.align	2
.LC3:
	.ascii	"QUANTITY: %d\012\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.align	2
.LC4:
	.ascii	"COST: \342\202\254%.2f\012\012\000"
	.text
	.align	2
	.global	printCustomer
	.syntax unified
	.arm
	.fpu softvfp
	.type	printCustomer, %function
printCustomer:
	@ args = 264, pretend = 16, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	ldr	r0, .L7
	bl	puts
	ldr	r1, [fp, #4]
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L7+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L5
.L6:
	ldr	r0, .L7
	bl	puts
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r2, fp, #4
	add	r3, r2, r3
	add	r3, r3, #16
	ldm	r3, {r0, r1, r2, r3}
	bl	printProduct
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r2, fp, #4
	add	r3, r2, r3
	add	r3, r3, #32
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L7+8
	bl	printf
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r2, fp, #4
	add	r3, r2, r3
	add	r3, r3, #32
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r2, fp, #4
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L7+12
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L5:
	ldr	r3, [fp, #260]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L6
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L8:
	.align	2
.L7:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	printCustomer, .-printCustomer
	.section	.rodata
	.align	2
.LC5:
	.ascii	"r\000"
	.align	2
.LC6:
	.ascii	"csv_files/stock.csv\000"
	.global	__aeabi_d2f
	.global	__aeabi_f2d
	.align	2
.LC7:
	.ascii	"CASH IN SHOP IS %.2f\012\000"
	.align	2
.LC8:
	.ascii	",\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	createAndStockShop
	.syntax unified
	.arm
	.fpu softvfp
	.type	createAndStockShop, %function
createAndStockShop:
	@ args = 0, pretend = 0, frame = 600
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #600
	str	r0, [fp, #-600]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-596]
	mov	r3, #0
	str	r3, [fp, #-592]
	ldr	r1, .L15+4
	ldr	r0, .L15+8
	bl	fopen
	str	r0, [fp, #-588]
	ldr	r3, [fp, #-588]
	cmp	r3, #0
	bne	.L10
	mov	r0, #1
	bl	exit
.L10:
	sub	r1, fp, #592
	sub	r3, fp, #596
	ldr	r2, [fp, #-588]
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-584]
	ldr	r3, [fp, #-596]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-580]	@ float
	ldr	r0, [fp, #-580]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L15+12
	bl	printf
	sub	r3, fp, #508
	mov	r2, #496
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, [fp, #-580]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-508]
	str	r3, [fp, #-504]
	b	.L11
.L12:
	ldr	r3, [fp, #-596]
	ldr	r1, .L15+16
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-576]
	ldr	r1, .L15+16
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-572]
	ldr	r1, .L15+16
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-568]
	ldr	r0, [fp, #-572]
	bl	atof
	str	r0, [fp, #-556]
	str	r1, [fp, #-552]
	ldr	r0, [fp, #-568]
	bl	atoi
	str	r0, [fp, #-564]
	mov	r0, #50
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-560]
	ldr	r1, [fp, #-576]
	ldr	r0, [fp, #-560]
	bl	strcpy
	ldr	r3, [fp, #-560]
	str	r3, [fp, #-548]
	sub	r3, fp, #556
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-540]
	str	r3, [fp, #-536]
	sub	ip, fp, #532
	sub	r3, fp, #548
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-564]
	str	r3, [fp, #-516]
	ldr	r2, [fp, #-20]
	add	r3, r2, #1
	str	r3, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #496
	mov	lr, r3
	sub	ip, fp, #532
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1}
	stm	lr, {r0, r1}
.L11:
	sub	r1, fp, #592
	sub	r3, fp, #596
	ldr	r2, [fp, #-588]
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-584]
	ldr	r3, [fp, #-584]
	cmn	r3, #1
	bne	.L12
	ldr	r3, [fp, #-600]
	mov	r0, r3
	sub	r3, fp, #508
	mov	r2, #496
	mov	r1, r3
	bl	memcpy
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	ldr	r0, [fp, #-600]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC9
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	createAndStockShop, .-createAndStockShop
	.section	.rodata
	.align	2
.LC10:
	.ascii	"customer1.csv\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	customerOrderCSV
	.syntax unified
	.arm
	.fpu softvfp
	.type	customerOrderCSV, %function
customerOrderCSV:
	@ args = 0, pretend = 0, frame = 320
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #320
	str	r0, [fp, #-320]
	ldr	r3, .L22
	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, .L22+4
	ldr	r0, .L22+8
	bl	fopen
	str	r0, [fp, #-304]
	ldr	r3, [fp, #-304]
	cmp	r3, #0
	bne	.L18
	mov	r0, #1
	bl	exit
.L18:
	sub	r1, fp, #308
	sub	r3, fp, #312
	ldr	r2, [fp, #-304]
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-300]
	ldr	r3, [fp, #-312]
	ldr	r1, .L22+12
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-296]
	ldr	r1, .L22+12
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-292]
	mov	r0, #50
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-288]
	ldr	r0, [fp, #-292]
	bl	atof
	str	r0, [fp, #-284]
	str	r1, [fp, #-280]
	ldr	r1, [fp, #-296]
	ldr	r0, [fp, #-288]
	bl	strcpy
	sub	r3, fp, #276
	mov	r2, #264
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-288]
	str	r3, [fp, #-276]
	sub	r3, fp, #284
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-268]
	str	r3, [fp, #-264]
	nop
.L19:
	sub	r1, fp, #308
	sub	r3, fp, #312
	ldr	r2, [fp, #-304]
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmn	r3, #1
	bne	.L19
	ldr	r3, [fp, #-320]
	mov	r0, r3
	sub	r3, fp, #276
	mov	r2, #264
	mov	r1, r3
	bl	memcpy
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	ldr	r0, [fp, #-320]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC11
	.word	.LC5
	.word	.LC10
	.word	.LC8
	.size	customerOrderCSV, .-customerOrderCSV
	.section	.rodata
	.align	2
.LC12:
	.ascii	"SHOP CASH FLOAT: \342\202\254%.2f\012\000"
	.align	2
.LC13:
	.ascii	"------------------------------\000"
	.align	2
.LC14:
	.ascii	"QUANTITY AVAILABLE: %d\012\000"
	.text
	.align	2
	.global	printShop
	.syntax unified
	.arm
	.fpu softvfp
	.type	printShop, %function
printShop:
	@ 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, [fp, #-16]
	ldmia	r3, {r2-r3}
	ldr	r0, .L27
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L25
.L26:
	ldr	r0, .L27+4
	bl	puts
	ldr	r1, [fp, #-16]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #8
	ldm	r3, {r0, r1, r2, r3}
	bl	printProduct
	ldr	r1, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L27+8
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L25:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #488]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L26
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	printShop, .-printShop
	.section	.rodata
	.align	2
.LC15:
	.ascii	"\012-------------------\000"
	.align	2
.LC16:
	.ascii	"\012SHOP MENU\000"
	.align	2
.LC17:
	.ascii	"-------------------\000"
	.align	2
.LC18:
	.ascii	"\012View shop stock, press 1\000"
	.align	2
.LC19:
	.ascii	"\012Make an order, press 2\000"
	.align	2
.LC20:
	.ascii	"\012Option 3\000"
	.align	2
.LC21:
	.ascii	"\012Press 0 to Exit\000"
	.text
	.align	2
	.global	displayMenu
	.syntax unified
	.arm
	.fpu softvfp
	.type	displayMenu, %function
displayMenu:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L30
	bl	printf
	ldr	r0, .L30+4
	bl	puts
	ldr	r0, .L30+8
	bl	printf
	ldr	r0, .L30+12
	bl	puts
	ldr	r0, .L30+16
	bl	puts
	ldr	r0, .L30+20
	bl	puts
	ldr	r0, .L30+8
	bl	printf
	ldr	r0, .L30+24
	bl	puts
	ldr	r0, .L30+8
	bl	puts
	nop
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	displayMenu, .-displayMenu
	.section	.rodata
	.align	2
.LC22:
	.ascii	"----------------------------\000"
	.align	2
.LC23:
	.ascii	"To view menu press y.\000"
	.align	2
.LC24:
	.ascii	"%c\000"
	.align	2
.LC25:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	toMenu
	.syntax unified
	.arm
	.fpu softvfp
	.type	toMenu, %function
toMenu:
	@ 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, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L36+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r0, .L36+8
	bl	puts
	ldr	r0, .L36+12
	bl	printf
	sub	r3, fp, #9
	mov	r1, r3
	ldr	r0, .L36+16
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #121
	bne	.L35
	bl	displayMenu
.L35:
	nop
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC25
	.word	stdin
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.size	toMenu, .-toMenu
	.align	2
	.global	find
	.syntax unified
	.arm
	.fpu softvfp
	.type	find, %function
find:
	@ args = 500, pretend = 16, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L39
.L42:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r2, fp, #4
	add	r3, r2, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #500]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L40
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r2, fp, #4
	add	r3, r2, r3
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	b	.L41
.L40:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L39:
	ldr	r3, [fp, #492]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L42
	mov	r2, #0
	ldr	r3, .L43
.L41:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L44:
	.align	2
.L43:
	.word	-1074790400
	.size	find, .-find
	.section	.rodata
	.align	2
.LC26:
	.ascii	"\012Please select a menu option: \000"
	.align	2
.LC27:
	.ascii	" %d\000"
	.align	2
.LC28:
	.ascii	"Shop Stock & Status\000"
	.align	2
.LC29:
	.ascii	"Make an order\000"
	.global	__aeabi_dcmpeq
	.align	2
.LC30:
	.ascii	"There is insufficient funds in your account.\000"
	.align	2
.LC31:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 776
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #776
	ldr	r3, .L54
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L54+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	bl	displayMenu
	sub	r3, fp, #508
	mov	r0, r3
	bl	createAndStockShop
	mvn	r3, #0
	str	r3, [fp, #-776]
	b	.L46
.L50:
	ldr	r0, .L54+8
	bl	printf
	sub	r3, fp, #776
	mov	r1, r3
	ldr	r0, .L54+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-776]
	cmp	r3, #1
	bne	.L47
	ldr	r0, .L54+16
	bl	puts
	sub	r3, fp, #508
	mov	r0, r3
	bl	printShop
	bl	toMenu
	b	.L46
.L47:
	ldr	r3, [fp, #-776]
	cmp	r3, #2
	bne	.L46
	ldr	r0, .L54+20
	bl	puts
	sub	r3, fp, #772
	mov	r0, r3
	bl	customerOrderCSV
	sub	r1, fp, #764
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L46
	ldr	r0, .L54+24
	bl	printf
	bl	toMenu
.L46:
	ldr	r3, [fp, #-776]
	cmp	r3, #0
	bne	.L50
	mov	r3, #0
	ldr	r2, .L54
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L52
	bl	__stack_chk_fail
.L52:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC31
	.word	stdin
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
