	.file	"234517609.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC1:
	.string	"Product: %s; "
	.align 8
.LC2:
	.string	"Product: %s; \tPrice: \342\202\254%.2f \t"
	.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
	movsd	xmm0, QWORD PTR -8[rbp]
	pxor	xmm1, xmm1
	ucomisd	xmm0, xmm1
	jp	.L2
	pxor	xmm1, xmm1
	ucomisd	xmm0, xmm1
	jne	.L2
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
.L2:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	movq	xmm0, rdx
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 1
	call	printf@PLT
.L6:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	printProduct, .-printProduct
	.globl	get_product_price
	.type	get_product_price, @function
get_product_price:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, rdi
	movq	rcx, xmm0
	mov	rdx, rcx
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], rdx
	movsd	xmm0, QWORD PTR -8[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_product_price, .-get_product_price
	.section	.rodata
.LC3:
	.string	"r"
.LC4:
	.string	"../shop_stock.csv"
.LC5:
	.string	"File not found"
.LC6:
	.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, 672
	mov	QWORD PTR -664[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -640[rbp], 0
	mov	QWORD PTR -632[rbp], 0
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	fopen@PLT
	mov	QWORD PTR -624[rbp], rax
	cmp	QWORD PTR -624[rbp], 0
	jne	.L10
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	rdx, QWORD PTR -624[rbp]
	lea	rcx, -632[rbp]
	lea	rax, -640[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -616[rbp], rax
	mov	rax, QWORD PTR -640[rbp]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR -608[rbp], rax
	lea	rdx, -512[rbp]
	mov	eax, 0
	mov	ecx, 62
	mov	rdi, rdx
	rep stosq
	movsd	xmm0, QWORD PTR -608[rbp]
	movsd	QWORD PTR -512[rbp], xmm0
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -640[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -600[rbp], rax
	lea	rsi, .LC6[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -592[rbp], rax
	lea	rsi, .LC6[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 -644[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 -644[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
.L11:
	mov	rdx, QWORD PTR -624[rbp]
	lea	rcx, -632[rbp]
	lea	rax, -640[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -616[rbp], rax
	cmp	QWORD PTR -616[rbp], -1
	jne	.L12
	mov	rax, QWORD PTR -664[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	.L14
	call	__stack_chk_fail@PLT
.L14:
	mov	rax, QWORD PTR -664[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	createAndStockShop, .-createAndStockShop
	.globl	create_customer
	.type	create_customer, @function
create_customer:
.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, 432
	mov	QWORD PTR -424[rbp], rdi
	mov	DWORD PTR -428[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -400[rbp], 0
	mov	QWORD PTR -392[rbp], 0
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -384[rbp], rax
	cmp	QWORD PTR -384[rbp], 0
	jne	.L16
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	mov	rdx, QWORD PTR -384[rbp]
	lea	rcx, -392[rbp]
	lea	rax, -400[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -376[rbp], rax
	mov	rax, QWORD PTR -400[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -368[rbp], rax
	lea	rsi, .LC6[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -360[rbp], rax
	mov	edi, 50
	call	malloc@PLT
	mov	QWORD PTR -352[rbp], rax
	mov	rdx, QWORD PTR -368[rbp]
	mov	rax, QWORD PTR -352[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -360[rbp]
	mov	rdi, rax
	call	atof@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -408[rbp], eax
	lea	rdx, -272[rbp]
	mov	eax, 0
	mov	ecx, 33
	mov	rdi, rdx
	rep stosq
	mov	rax, QWORD PTR -352[rbp]
	mov	QWORD PTR -272[rbp], rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -408[rbp]
	movsd	QWORD PTR -264[rbp], xmm0
	jmp	.L17
.L18:
	mov	rax, QWORD PTR -400[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -344[rbp], rax
	lea	rsi, .LC6[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -336[rbp], rax
	mov	edi, 50
	call	malloc@PLT
	mov	QWORD PTR -328[rbp], rax
	mov	rdx, QWORD PTR -344[rbp]
	mov	rax, QWORD PTR -328[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -336[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -404[rbp], eax
	mov	QWORD PTR -320[rbp], 0
	mov	QWORD PTR -312[rbp], 0
	mov	rax, QWORD PTR -328[rbp]
	mov	QWORD PTR -320[rbp], rax
	mov	rax, QWORD PTR -320[rbp]
	mov	rdx, QWORD PTR -312[rbp]
	mov	QWORD PTR -304[rbp], rax
	mov	QWORD PTR -296[rbp], rdx
	mov	eax, DWORD PTR -404[rbp]
	mov	DWORD PTR -288[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -16[rbp], edx
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	lea	rcx, -256[rax]
	mov	rax, QWORD PTR -304[rbp]
	mov	rdx, QWORD PTR -296[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR -288[rbp]
	mov	QWORD PTR 16[rcx], rax
.L17:
	mov	rdx, QWORD PTR -384[rbp]
	lea	rcx, -392[rbp]
	lea	rax, -400[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -376[rbp], rax
	cmp	QWORD PTR -376[rbp], -1
	jne	.L18
	mov	rax, QWORD PTR -424[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	.L20
	call	__stack_chk_fail@PLT
.L20:
	mov	rax, QWORD PTR -424[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	create_customer, .-create_customer
	.section	.rodata
.LC7:
	.string	"Shop has \342\202\254%.2f in cash\n"
.LC8:
	.string	"==== ==== ===="
.LC9:
	.string	"Available amount: %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, .LC7[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L22
.L23:
	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, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L22:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 488[rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L23
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	printShop, .-printShop
	.section	.rodata
	.align 8
.LC10:
	.string	"Customer Name: %s, budget: \342\202\254%.2f \n"
.LC11:
	.string	"---- ---- ----"
	.align 8
.LC12:
	.string	"Customer wants product: %s, quantity %d. "
	.align 8
.LC13:
	.string	"Test1: product name in shop: %s "
	.align 8
.LC14:
	.string	"Test2: Shop product name: %s, dddd %s. "
	.align 8
.LC15:
	.string	"\tSub-total cost will be \342\202\254%.2f. \n"
	.align 8
.LC16:
	.string	"\tOnly %d is available and bought. Sub-total cost will be \342\202\254%.2f. \n"
	.align 8
.LC17:
	.string	"\tThis product not available. Sub-total cost will be \342\202\254%.2f. \n"
	.align 8
.LC18:
	.string	"\nTotal cost will be \342\202\254%.2f. \n"
	.align 8
.LC19:
	.string	"Unfortunately, you do not have enough money for all the desired items. You are short of \342\202\254%.2f. "
	.align 8
.LC20:
	.string	"Come back with more frinds (money) or negotiate your shopping list."
	.align 8
.LC21:
	.string	"After shopping the remaining money will be \342\202\254%.2f. \n"
	.text
	.globl	process_order
	.type	process_order, @function
process_order:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rdx, QWORD PTR 24[rbp]
	mov	rax, QWORD PTR 16[rbp]
	movq	xmm0, rdx
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	pxor	xmm0, xmm0
	movsd	QWORD PTR -40[rbp], xmm0
	mov	DWORD PTR -56[rbp], 0
	jmp	.L25
.L32:
	pxor	xmm0, xmm0
	movsd	QWORD PTR -32[rbp], xmm0
	mov	eax, DWORD PTR -56[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	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -56[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	lea	rax, 16[rax]
	add	rax, rbp
	add	rax, 16
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rcx
	movq	xmm0, rax
	lea	rdi, .LC12[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR -56[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	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -52[rbp], 0
	mov	rcx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -48[rbp], 0
	jmp	.L26
.L30:
	mov	rcx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	BYTE PTR -57[rbp], al
	mov	rcx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	movsx	eax, BYTE PTR -57[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	movsx	rax, BYTE PTR -57[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L27
	add	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -56[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	ecx, DWORD PTR [rax]
	mov	rsi, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	add	rax, 24
	mov	eax, DWORD PTR [rax]
	cmp	ecx, eax
	jg	.L28
	mov	eax, DWORD PTR -56[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	rcx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	add	rax, 16
	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, .LC15[rip]
	mov	eax, 1
	call	printf@PLT
	movsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR -32[rbp], xmm0
	mov	rcx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	add	rax, 24
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -56[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]
	sub	ecx, eax
	mov	rsi, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	add	rax, 24
	mov	DWORD PTR [rax], ecx
	jmp	.L29
.L28:
	mov	rcx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -48[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	DWORD PTR -44[rbp], eax
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -44[rbp]
	mov	rcx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	add	rax, 16
	movsd	xmm0, QWORD PTR [rax]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -44[rbp]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 1
	call	printf@PLT
	movsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR -32[rbp], xmm0
.L29:
	movsd	xmm0, QWORD PTR -40[rbp]
	addsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR -40[rbp], xmm0
.L27:
	add	DWORD PTR -48[rbp], 1
.L26:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 488[rax]
	cmp	DWORD PTR -48[rbp], eax
	jl	.L30
	cmp	DWORD PTR -52[rbp], 0
	jne	.L31
	mov	rax, QWORD PTR -32[rbp]
	movq	xmm0, rax
	lea	rdi, .LC17[rip]
	mov	eax, 1
	call	printf@PLT
.L31:
	add	DWORD PTR -56[rbp], 1
.L25:
	mov	eax, DWORD PTR 272[rbp]
	cmp	DWORD PTR -56[rbp], eax
	jl	.L32
	mov	rax, QWORD PTR -40[rbp]
	movq	xmm0, rax
	lea	rdi, .LC18[rip]
	mov	eax, 1
	call	printf@PLT
	movsd	xmm1, QWORD PTR 24[rbp]
	movsd	xmm0, QWORD PTR -40[rbp]
	comisd	xmm0, xmm1
	jbe	.L37
	movsd	xmm1, QWORD PTR 24[rbp]
	movsd	xmm0, QWORD PTR -40[rbp]
	subsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC19[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rdi, .LC20[rip]
	call	puts@PLT
	jmp	.L38
.L37:
	movsd	xmm0, QWORD PTR 24[rbp]
	subsd	xmm0, QWORD PTR -40[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC21[rip]
	mov	eax, 1
	call	printf@PLT
.L38:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	process_order, .-process_order
	.globl	shop_status
	.type	shop_status, @function
shop_status:
.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, 512
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -512[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	createAndStockShop
	lea	rax, -512[rbp]
	mov	rdi, rax
	call	printShop
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	shop_status, .-shop_status
	.section	.rodata
.LC22:
	.string	"../customer_good.csv"
	.text
	.globl	customer_A_shopping
	.type	customer_A_shopping, @function
customer_A_shopping:
.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, 288
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, createAndStockShop[rip]
	mov	QWORD PTR -280[rbp], rax
	lea	rax, -272[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	create_customer
	lea	r8, -280[rbp]
	sub	rsp, 8
	sub	rsp, 264
	mov	rax, rsp
	mov	rdi, rax
	lea	rax, -272[rbp]
	mov	edx, 33
	mov	rsi, rax
	mov	rcx, rdx
	rep movsq
	mov	rdi, r8
	call	process_order
	add	rsp, 272
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	customer_A_shopping, .-customer_A_shopping
	.section	.rodata
	.align 8
.LC23:
	.string	"../customer_insufficient_funds.csv"
	.text
	.globl	customer_B_shopping
	.type	customer_B_shopping, @function
customer_B_shopping:
.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, 288
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, createAndStockShop[rip]
	mov	QWORD PTR -280[rbp], rax
	lea	rax, -272[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	create_customer
	lea	r8, -280[rbp]
	sub	rsp, 8
	sub	rsp, 264
	mov	rax, rsp
	mov	rdi, rax
	lea	rax, -272[rbp]
	mov	edx, 33
	mov	rsi, rax
	mov	rcx, rdx
	rep movsq
	mov	rdi, r8
	call	process_order
	add	rsp, 272
	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
.LFE14:
	.size	customer_B_shopping, .-customer_B_shopping
	.section	.rodata
	.align 8
.LC24:
	.string	"../customer_exceeding_order.csv"
	.text
	.globl	customer_C_shopping
	.type	customer_C_shopping, @function
customer_C_shopping:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 288
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, createAndStockShop[rip]
	mov	QWORD PTR -280[rbp], rax
	lea	rax, -272[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	mov	eax, 0
	call	create_customer
	lea	r8, -280[rbp]
	sub	rsp, 8
	sub	rsp, 264
	mov	rax, rsp
	mov	rdi, rax
	lea	rax, -272[rbp]
	mov	edx, 33
	mov	rsi, rax
	mov	rcx, rdx
	rep movsq
	mov	rdi, r8
	call	process_order
	add	rsp, 272
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L50
	call	__stack_chk_fail@PLT
.L50:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	customer_C_shopping, .-customer_C_shopping
	.section	.rodata
.LC25:
	.string	"cls"
.LC26:
	.string	"clear"
.LC27:
	.string	"Shop Main Menu:"
.LC28:
	.string	"***************"
.LC29:
	.string	"1. Shop status"
.LC30:
	.string	"2. Customer A - good case"
	.align 8
.LC31:
	.string	"3. Customer B - insufficient funds case"
	.align 8
.LC32:
	.string	"4. Customer C - exceeding order case"
.LC33:
	.string	"5. Interactive mode"
.LC34:
	.string	"9. Exit"
	.align 8
.LC35:
	.string	"NB: The sequence of the customers being processed might affect the initial case of the customers. "
.LC36:
	.string	"%s"
	.align 8
.LC37:
	.string	"Wrong key. Enter the option number for desired operation."
	.text
	.globl	shop_menu
	.type	shop_menu, @function
shop_menu:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], -1
	lea	rdi, .LC25[rip]
	call	system@PLT
	lea	rdi, .LC26[rip]
	call	system@PLT
.L61:
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC27[rip]
	call	puts@PLT
	lea	rdi, .LC28[rip]
	call	puts@PLT
	lea	rdi, .LC29[rip]
	call	puts@PLT
	lea	rdi, .LC30[rip]
	call	puts@PLT
	lea	rdi, .LC31[rip]
	call	puts@PLT
	lea	rdi, .LC32[rip]
	call	puts@PLT
	lea	rdi, .LC33[rip]
	call	puts@PLT
	lea	rdi, .LC34[rip]
	call	puts@PLT
	lea	rdi, .LC35[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -10[rbp]
	mov	rsi, rax
	lea	rdi, .LC36[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -10[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 9
	ja	.L52
	mov	eax, DWORD PTR -16[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L54[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L54[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L54:
	.long	.L52-.L54
	.long	.L59-.L54
	.long	.L58-.L54
	.long	.L57-.L54
	.long	.L56-.L54
	.long	.L63-.L54
	.long	.L52-.L54
	.long	.L52-.L54
	.long	.L52-.L54
	.long	.L63-.L54
	.text
.L59:
	call	shop_status
	jmp	.L60
.L58:
	call	customer_A_shopping
	jmp	.L60
.L57:
	call	customer_B_shopping
	jmp	.L60
.L56:
	call	customer_C_shopping
	jmp	.L60
.L52:
	lea	rdi, .LC37[rip]
	call	puts@PLT
	jmp	.L60
.L63:
	nop
.L60:
	cmp	DWORD PTR -16[rbp], 9
	jne	.L61
	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
.LFE16:
	.size	shop_menu, .-shop_menu
	.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
	mov	eax, 0
	call	shop_menu
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.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	"234517609.c"
	.text
	.global	__aeabi_dcmpeq
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Product: %s; \000"
	.align	2
.LC1:
	.ascii	"Product: %s; \011Price: \342\202\254%.2f \011\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}
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L8
	bl	printf
	b	.L7
.L6:
	ldr	r1, [fp, #-20]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L8+4
	bl	printf
.L7:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	.LC1
	.size	printProduct, .-printProduct
	.align	2
	.global	get_product_price
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_product_price, %function
get_product_price:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	sub	ip, fp, #20
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	get_product_price, .-get_product_price
	.section	.rodata
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	"../shop_stock.csv\000"
	.align	2
.LC4:
	.ascii	"File not found\000"
	.align	2
.LC5:
	.ascii	",\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	createAndStockShop
	.syntax unified
	.arm
	.fpu softvfp
	.type	createAndStockShop, %function
createAndStockShop:
	@ args = 0, pretend = 0, frame = 608
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #608
	str	r0, [fp, #-608]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-600]
	mov	r3, #0
	str	r3, [fp, #-596]
	ldr	r1, .L18+4
	ldr	r0, .L18+8
	bl	fopen
	str	r0, [fp, #-592]
	ldr	r3, [fp, #-592]
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L18+12
	bl	puts
	mov	r0, #1
	bl	exit
.L13:
	sub	r1, fp, #596
	sub	r3, fp, #600
	ldr	r2, [fp, #-592]
	mov	r0, r3
	bl	getline
	mov	r3, r0
	str	r3, [fp, #-588]
	ldr	r3, [fp, #-600]
	mov	r0, r3
	bl	atof
	str	r0, [fp, #-564]
	str	r1, [fp, #-560]
	sub	r3, fp, #508
	mov	r2, #496
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #564
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-508]
	str	r3, [fp, #-504]
	b	.L14
.L15:
	ldr	r3, [fp, #-600]
	ldr	r1, .L18+16
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-584]
	ldr	r1, .L18+16
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-580]
	ldr	r1, .L18+16
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-576]
	ldr	r0, [fp, #-580]
	bl	atof
	str	r0, [fp, #-556]
	str	r1, [fp, #-552]
	ldr	r0, [fp, #-576]
	bl	atoi
	str	r0, [fp, #-572]
	mov	r0, #50
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-568]
	ldr	r1, [fp, #-584]
	ldr	r0, [fp, #-568]
	bl	strcpy
	ldr	r3, [fp, #-568]
	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, #-572]
	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}
.L14:
	sub	r1, fp, #596
	sub	r3, fp, #600
	ldr	r2, [fp, #-592]
	mov	r0, r3
	bl	getline
	mov	r3, r0
	str	r3, [fp, #-588]
	ldr	r3, [fp, #-588]
	cmn	r3, #1
	bne	.L15
	ldr	r3, [fp, #-608]
	mov	r0, r3
	sub	r3, fp, #508
	mov	r2, #496
	mov	r1, r3
	bl	memcpy
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	ldr	r0, [fp, #-608]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC6
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	createAndStockShop, .-createAndStockShop
	.global	__aeabi_d2iz
	.global	__aeabi_i2d
	.section	.rodata
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	create_customer
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_customer, %function
create_customer:
	@ args = 0, pretend = 0, frame = 368
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #368
	str	r0, [fp, #-368]
	str	r1, [fp, #-372]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-364]
	mov	r3, #0
	str	r3, [fp, #-360]
	ldr	r3, [fp, #-372]
	ldr	r1, .L26+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-356]
	ldr	r3, [fp, #-356]
	cmp	r3, #0
	bne	.L21
	ldr	r0, .L26+8
	bl	puts
	mov	r0, #1
	bl	exit
.L21:
	sub	r1, fp, #360
	sub	r3, fp, #364
	ldr	r2, [fp, #-356]
	mov	r0, r3
	bl	getline
	mov	r3, r0
	str	r3, [fp, #-352]
	ldr	r3, [fp, #-364]
	ldr	r1, .L26+12
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-348]
	ldr	r1, .L26+12
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-344]
	mov	r0, #50
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-340]
	ldr	r1, [fp, #-348]
	ldr	r0, [fp, #-340]
	bl	strcpy
	ldr	r0, [fp, #-344]
	bl	atof
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-336]
	sub	r3, fp, #276
	mov	r2, #264
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-340]
	str	r3, [fp, #-276]
	ldr	r0, [fp, #-336]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-268]
	str	r3, [fp, #-264]
	b	.L22
.L23:
	ldr	r3, [fp, #-364]
	ldr	r1, .L26+12
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-332]
	ldr	r1, .L26+12
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-328]
	mov	r0, #50
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-324]
	ldr	r1, [fp, #-332]
	ldr	r0, [fp, #-324]
	bl	strcpy
	ldr	r0, [fp, #-328]
	bl	atoi
	str	r0, [fp, #-320]
	sub	r3, fp, #316
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-324]
	str	r3, [fp, #-316]
	sub	ip, fp, #300
	sub	r3, fp, #316
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-320]
	str	r3, [fp, #-284]
	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, #256
	mov	lr, r3
	sub	ip, fp, #300
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1}
	stm	lr, {r0, r1}
.L22:
	sub	r1, fp, #360
	sub	r3, fp, #364
	ldr	r2, [fp, #-356]
	mov	r0, r3
	bl	getline
	mov	r3, r0
	str	r3, [fp, #-352]
	ldr	r3, [fp, #-352]
	cmn	r3, #1
	bne	.L23
	ldr	r3, [fp, #-368]
	mov	r0, r3
	sub	r3, fp, #276
	mov	r2, #264
	mov	r1, r3
	bl	memcpy
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	ldr	r0, [fp, #-368]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC7
	.word	.LC2
	.word	.LC4
	.word	.LC5
	.size	create_customer, .-create_customer
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Shop has \342\202\254%.2f in cash\012\000"
	.align	2
.LC9:
	.ascii	"==== ==== ====\000"
	.align	2
.LC10:
	.ascii	"Available amount: %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, .L31
	bl	printf
	ldr	r0, .L31+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L29
.L30:
	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, .L31+8
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L29:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #488]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L30
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	printShop, .-printShop
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Customer Name: %s, budget: \342\202\254%.2f \012\000"
	.align	2
.LC12:
	.ascii	"---- ---- ----\000"
	.align	2
.LC13:
	.ascii	"Customer wants product: %s, quantity %d. \000"
	.align	2
.LC14:
	.ascii	"Test1: product name in shop: %s \000"
	.align	2
.LC15:
	.ascii	"Test2: Shop product name: %s, dddd %s. \000"
	.global	__aeabi_dmul
	.align	2
.LC16:
	.ascii	"\011Sub-total cost will be \342\202\254%.2f. \012\000"
	.align	2
.LC17:
	.ascii	"\011Only %d is available and bought. Sub-total cost"
	.ascii	" will be \342\202\254%.2f. \012\000"
	.global	__aeabi_dadd
	.align	2
.LC18:
	.ascii	"\011This product not available. Sub-total cost will"
	.ascii	" be \342\202\254%.2f. \012\000"
	.align	2
.LC19:
	.ascii	"\012Total cost will be \342\202\254%.2f. \012\000"
	.global	__aeabi_dcmpgt
	.global	__aeabi_dsub
	.align	2
.LC20:
	.ascii	"Unfortunately, you do not have enough money for all"
	.ascii	" the desired items. You are short of \342\202\254%."
	.ascii	"2f. \000"
	.align	2
.LC21:
	.ascii	"Come back with more frinds (money) or negotiate you"
	.ascii	"r shopping list.\000"
	.align	2
.LC22:
	.ascii	"After shopping the remaining money will be \342\202"
	.ascii	"\254%.2f. \012\000"
	.text
	.align	2
	.global	process_order
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_order, %function
process_order:
	@ args = 268, pretend = 16, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	ldr	r1, [fp, #4]
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L48
	bl	printf
	ldr	r0, .L48+4
	bl	puts
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L34
.L41:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-56]
	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	r1, [r3]
	ldr	r2, [fp, #-56]
	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
	str	r1, [sp, #8]
	mov	ip, sp
	add	r2, r3, #8
	ldm	r2, {r0, r1}
	stm	ip, {r0, r1}
	ldm	r3, {r2, r3}
	ldr	r0, .L48+8
	bl	printf
	ldr	r2, [fp, #-56]
	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
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r1, [fp, #268]
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L48+12
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L35
.L39:
	ldr	r1, [fp, #268]
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	strb	r3, [fp, #-57]
	ldrb	r0, [fp, #-57]	@ zero_extendqisi2
	ldr	r1, [fp, #268]
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r0
	ldr	r0, .L48+16
	bl	printf
	ldrb	r3, [fp, #-57]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-44]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L36
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
	ldr	r2, [fp, #-56]
	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	r1, [r3]
	ldr	r0, [fp, #268]
	ldr	r3, [fp, #-48]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	ldr	r3, [r3]
	cmp	r1, r3
	bgt	.L37
	ldr	r2, [fp, #-56]
	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	ip, [fp, #268]
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, ip, r3
	add	r3, r3, #16
	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, .L48+20
	bl	printf
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r1, [fp, #268]
	ldr	r3, [fp, #-48]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r2, [fp, #-56]
	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]
	sub	r1, r1, r3
	ldr	r0, [fp, #268]
	ldr	r3, [fp, #-48]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	str	r1, [r3]
	b	.L38
.L37:
	ldr	r1, [fp, #268]
	ldr	r3, [fp, #-48]
	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]
	str	r3, [fp, #-40]
	ldr	r0, [fp, #-40]
	bl	__aeabi_i2d
	ldr	ip, [fp, #268]
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, ip, r3
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-40]
	ldr	r0, .L48+24
	bl	printf
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
.L38:
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
.L36:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L35:
	ldr	r3, [fp, #268]
	ldr	r3, [r3, #488]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L39
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L40
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	ldr	r0, .L48+28
	bl	printf
.L40:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L34:
	ldr	r3, [fp, #260]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	blt	.L41
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r0, .L48+32
	bl	printf
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L46
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L48+36
	bl	printf
	ldr	r0, .L48+40
	bl	puts
	b	.L47
.L46:
	add	r1, fp, #12
	ldmia	r1, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L48+44
	bl	printf
.L47:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L49:
	.align	2
.L48:
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	process_order, .-process_order
	.section	.rodata
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	shop_status
	.syntax unified
	.arm
	.fpu softvfp
	.type	shop_status, %function
shop_status:
	@ args = 0, pretend = 0, frame = 504
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #504
	ldr	r3, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #508
	mov	r0, r3
	bl	createAndStockShop
	sub	r3, fp, #508
	mov	r0, r3
	bl	printShop
	mov	r3, #0
	ldr	r2, .L53
	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}
.L54:
	.align	2
.L53:
	.word	.LC23
	.size	shop_status, .-shop_status
	.section	.rodata
	.align	2
.LC24:
	.ascii	"../customer_good.csv\000"
	.align	2
.LC25:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	customer_A_shopping
	.syntax unified
	.arm
	.fpu softvfp
	.type	customer_A_shopping, %function
customer_A_shopping:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #536
	ldr	r3, .L58
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L58+4
	str	r3, [fp, #-280]
	sub	r3, fp, #276
	ldr	r1, .L58+8
	mov	r0, r3
	bl	create_customer
	sub	r3, fp, #280
	str	r3, [sp, #248]
	mov	r0, sp
	sub	r3, fp, #260
	mov	r2, #248
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #276
	ldm	r3, {r0, r1, r2, r3}
	bl	process_order
	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	.LC25
	.word	createAndStockShop
	.word	.LC24
	.size	customer_A_shopping, .-customer_A_shopping
	.section	.rodata
	.align	2
.LC26:
	.ascii	"../customer_insufficient_funds.csv\000"
	.align	2
.LC27:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	customer_B_shopping
	.syntax unified
	.arm
	.fpu softvfp
	.type	customer_B_shopping, %function
customer_B_shopping:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #536
	ldr	r3, .L63
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L63+4
	str	r3, [fp, #-280]
	sub	r3, fp, #276
	ldr	r1, .L63+8
	mov	r0, r3
	bl	create_customer
	sub	r3, fp, #280
	str	r3, [sp, #248]
	mov	r0, sp
	sub	r3, fp, #260
	mov	r2, #248
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #276
	ldm	r3, {r0, r1, r2, r3}
	bl	process_order
	nop
	ldr	r3, .L63
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L62
	bl	__stack_chk_fail
.L62:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L64:
	.align	2
.L63:
	.word	.LC27
	.word	createAndStockShop
	.word	.LC26
	.size	customer_B_shopping, .-customer_B_shopping
	.section	.rodata
	.align	2
.LC28:
	.ascii	"../customer_exceeding_order.csv\000"
	.align	2
.LC29:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	customer_C_shopping
	.syntax unified
	.arm
	.fpu softvfp
	.type	customer_C_shopping, %function
customer_C_shopping:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #536
	ldr	r3, .L68
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L68+4
	str	r3, [fp, #-280]
	sub	r3, fp, #276
	ldr	r1, .L68+8
	mov	r0, r3
	bl	create_customer
	sub	r3, fp, #280
	str	r3, [sp, #248]
	mov	r0, sp
	sub	r3, fp, #260
	mov	r2, #248
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #276
	ldm	r3, {r0, r1, r2, r3}
	bl	process_order
	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	.LC29
	.word	createAndStockShop
	.word	.LC28
	.size	customer_C_shopping, .-customer_C_shopping
	.section	.rodata
	.align	2
.LC30:
	.ascii	"cls\000"
	.align	2
.LC31:
	.ascii	"clear\000"
	.align	2
.LC32:
	.ascii	"Shop Main Menu:\000"
	.align	2
.LC33:
	.ascii	"***************\000"
	.align	2
.LC34:
	.ascii	"1. Shop status\000"
	.align	2
.LC35:
	.ascii	"2. Customer A - good case\000"
	.align	2
.LC36:
	.ascii	"3. Customer B - insufficient funds case\000"
	.align	2
.LC37:
	.ascii	"4. Customer C - exceeding order case\000"
	.align	2
.LC38:
	.ascii	"5. Interactive mode\000"
	.align	2
.LC39:
	.ascii	"9. Exit\000"
	.align	2
.LC40:
	.ascii	"NB: The sequence of the customers being processed m"
	.ascii	"ight affect the initial case of the customers. \000"
	.align	2
.LC41:
	.ascii	"%s\000"
	.align	2
.LC42:
	.ascii	"Wrong key. Enter the option number for desired oper"
	.ascii	"ation.\000"
	.align	2
.LC43:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	shop_menu
	.syntax unified
	.arm
	.fpu softvfp
	.type	shop_menu, %function
shop_menu:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L83
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-16]
	ldr	r0, .L83+4
	bl	system
	ldr	r0, .L83+8
	bl	system
.L80:
	mov	r0, #10
	bl	putchar
	ldr	r0, .L83+12
	bl	puts
	ldr	r0, .L83+16
	bl	puts
	ldr	r0, .L83+20
	bl	puts
	ldr	r0, .L83+24
	bl	puts
	ldr	r0, .L83+28
	bl	puts
	ldr	r0, .L83+32
	bl	puts
	ldr	r0, .L83+36
	bl	puts
	ldr	r0, .L83+40
	bl	puts
	ldr	r0, .L83+44
	bl	puts
	ldr	r3, .L83+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L83+52
	bl	__isoc99_scanf
	sub	r3, fp, #12
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	cmp	r3, #8
	ldrls	pc, [pc, r3, asl #2]
	b	.L71
.L73:
	.word	.L78
	.word	.L77
	.word	.L76
	.word	.L75
	.word	.L82
	.word	.L71
	.word	.L71
	.word	.L71
	.word	.L82
.L78:
	bl	shop_status
	b	.L79
.L77:
	bl	customer_A_shopping
	b	.L79
.L76:
	bl	customer_B_shopping
	b	.L79
.L75:
	bl	customer_C_shopping
	b	.L79
.L71:
	ldr	r0, .L83+56
	bl	puts
	b	.L79
.L82:
	nop
.L79:
	ldr	r3, [fp, #-16]
	cmp	r3, #9
	bne	.L80
	nop
	ldr	r3, .L83
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L81
	bl	__stack_chk_fail
.L81:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L84:
	.align	2
.L83:
	.word	.LC43
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	stdin
	.word	.LC41
	.word	.LC42
	.size	shop_menu, .-shop_menu
	.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
	bl	shop_menu
	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
