	.file	"159515924.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC3:
	.string	"Welcome to Fatima Struct's Snack Bar.\nHow much money do you have? "
.LC5:
	.string	"%lf"
	.align 8
.LC6:
	.string	"%d. %s  cost: %0.2f  quantity: %d \n"
	.align 8
.LC7:
	.string	"What snack would you like to buy [0,1,2]? "
.LC8:
	.string	"%d"
	.align 8
.LC9:
	.string	"Sorry, we are out of Lays Chips"
.LC10:
	.string	"You can't afford it!"
	.align 8
.LC11:
	.string	"You bought Lays Chips\nYou have %0.2f left\n"
	.align 8
.LC12:
	.string	"Sorry, we are out of CheetoPuff"
	.align 8
.LC13:
	.string	"You bought CheetoPuff\nYou have %0.2f left\n"
.LC14:
	.string	"Sorry, we are out of Tang"
	.align 8
.LC15:
	.string	"You bought Tang\nYou have %0.2f left\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 320
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -308[rbp], 0
	lea	rax, -272[rbp]
	movabs	rcx, 7595394578215690572
	mov	QWORD PTR [rax], rcx
	mov	WORD PTR 8[rax], 29552
	mov	BYTE PTR 10[rax], 0
	movsd	xmm0, QWORD PTR .LC0[rip]
	movsd	QWORD PTR -248[rbp], xmm0
	mov	DWORD PTR -240[rbp], 0
	lea	rax, -224[rbp]
	movabs	rcx, 8453379046282455107
	mov	QWORD PTR [rax], rcx
	mov	WORD PTR 8[rax], 26214
	mov	BYTE PTR 10[rax], 0
	movsd	xmm0, QWORD PTR .LC1[rip]
	movsd	QWORD PTR -200[rbp], xmm0
	mov	DWORD PTR -192[rbp], 5
	lea	rax, -176[rbp]
	movabs	rcx, 7013266178410636620
	mov	QWORD PTR [rax], rcx
	mov	WORD PTR 8[rax], 26478
	mov	BYTE PTR 10[rax], 0
	movsd	xmm0, QWORD PTR .LC2[rip]
	movsd	QWORD PTR -152[rbp], xmm0
	mov	DWORD PTR -144[rbp], 2
	mov	rax, QWORD PTR -272[rbp]
	mov	rdx, QWORD PTR -264[rbp]
	mov	QWORD PTR -128[rbp], rax
	mov	QWORD PTR -120[rbp], rdx
	mov	rax, QWORD PTR -256[rbp]
	mov	rdx, QWORD PTR -248[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -104[rbp], rdx
	mov	rax, QWORD PTR -240[rbp]
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR -224[rbp]
	mov	rdx, QWORD PTR -216[rbp]
	mov	QWORD PTR -88[rbp], rax
	mov	QWORD PTR -80[rbp], rdx
	mov	rax, QWORD PTR -208[rbp]
	mov	rdx, QWORD PTR -200[rbp]
	mov	QWORD PTR -72[rbp], rax
	mov	QWORD PTR -64[rbp], rdx
	mov	rax, QWORD PTR -192[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -176[rbp]
	mov	rdx, QWORD PTR -168[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -160[rbp]
	mov	rdx, QWORD PTR -152[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -144[rbp]
	mov	QWORD PTR -16[rbp], rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	pxor	xmm0, xmm0
	movsd	QWORD PTR -304[rbp], xmm0
	lea	rax, -304[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -312[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -312[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 96
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -312[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 104
	mov	rdx, QWORD PTR [rax]
	lea	rdi, -128[rbp]
	mov	eax, DWORD PTR -312[rbp]
	movsx	rsi, eax
	mov	rax, rsi
	sal	rax, 2
	add	rax, rsi
	sal	rax, 3
	lea	rsi, [rdi+rax]
	mov	eax, DWORD PTR -312[rbp]
	movq	xmm0, rdx
	mov	rdx, rsi
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -312[rbp], 1
.L2:
	cmp	DWORD PTR -312[rbp], 2
	jle	.L3
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rax, -316[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -316[rbp]
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR -96[rbp]
	test	eax, eax
	jne	.L5
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L6
.L5:
	movsd	xmm0, QWORD PTR -104[rbp]
	movsd	xmm1, QWORD PTR -304[rbp]
	comisd	xmm0, xmm1
	jbe	.L21
	lea	rdi, .LC10[rip]
	call	puts@PLT
	jmp	.L6
.L21:
	pxor	xmm0, xmm0
	movsd	QWORD PTR -280[rbp], xmm0
	movsd	xmm0, QWORD PTR -304[rbp]
	movsd	xmm1, QWORD PTR -104[rbp]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -280[rbp], xmm0
	mov	rax, QWORD PTR -280[rbp]
	movq	xmm0, rax
	lea	rdi, .LC11[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L6
.L4:
	mov	eax, DWORD PTR -316[rbp]
	cmp	eax, 1
	jne	.L9
	mov	eax, DWORD PTR -56[rbp]
	test	eax, eax
	jne	.L10
	lea	rdi, .LC12[rip]
	call	puts@PLT
	jmp	.L6
.L10:
	movsd	xmm0, QWORD PTR -64[rbp]
	movsd	xmm1, QWORD PTR -304[rbp]
	comisd	xmm0, xmm1
	jbe	.L22
	lea	rdi, .LC10[rip]
	call	puts@PLT
	jmp	.L6
.L22:
	pxor	xmm0, xmm0
	movsd	QWORD PTR -288[rbp], xmm0
	movsd	xmm0, QWORD PTR -304[rbp]
	movsd	xmm1, QWORD PTR -64[rbp]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -288[rbp], xmm0
	mov	rax, QWORD PTR -288[rbp]
	movq	xmm0, rax
	lea	rdi, .LC13[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L6
.L9:
	mov	eax, DWORD PTR -316[rbp]
	cmp	eax, 2
	jne	.L6
	mov	eax, DWORD PTR -16[rbp]
	test	eax, eax
	jne	.L13
	lea	rdi, .LC14[rip]
	call	puts@PLT
	jmp	.L6
.L13:
	movsd	xmm0, QWORD PTR -24[rbp]
	movsd	xmm1, QWORD PTR -304[rbp]
	comisd	xmm0, xmm1
	jbe	.L23
	lea	rdi, .LC10[rip]
	call	puts@PLT
	jmp	.L6
.L23:
	pxor	xmm0, xmm0
	movsd	QWORD PTR -296[rbp], xmm0
	movsd	xmm0, QWORD PTR -304[rbp]
	movsd	xmm1, QWORD PTR -24[rbp]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -296[rbp], xmm0
	mov	rax, QWORD PTR -296[rbp]
	movq	xmm0, rax
	lea	rdi, .LC15[rip]
	mov	eax, 1
	call	printf@PLT
.L6:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1073217536
	.align 8
.LC1:
	.long	0
	.long	1074003968
	.align 8
.LC2:
	.long	0
	.long	1071644672
	.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	"159515924.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Lays Chips\000"
	.align	2
.LC1:
	.ascii	"CheetoPuff\000"
	.align	2
.LC2:
	.ascii	"Lemon Tang\000"
	.align	2
.LC3:
	.ascii	"Welcome to Fatima Struct's Snack Bar.\012How much m"
	.ascii	"oney do you have? \000"
	.align	2
.LC4:
	.ascii	"%lf\000"
	.align	2
.LC5:
	.ascii	"%d. %s  cost: %0.2f  quantity: %d \012\000"
	.align	2
.LC6:
	.ascii	"What snack would you like to buy [0,1,2]? \000"
	.align	2
.LC7:
	.ascii	"%d\000"
	.align	2
.LC8:
	.ascii	"Sorry, we are out of Lays Chips\000"
	.global	__aeabi_dcmpgt
	.align	2
.LC9:
	.ascii	"You can't afford it!\000"
	.global	__aeabi_dsub
	.align	2
.LC10:
	.ascii	"You bought Lays Chips\012You have %0.2f left\012\000"
	.align	2
.LC11:
	.ascii	"Sorry, we are out of CheetoPuff\000"
	.align	2
.LC12:
	.ascii	"You bought CheetoPuff\012You have %0.2f left\012\000"
	.align	2
.LC13:
	.ascii	"Sorry, we are out of Tang\000"
	.align	2
.LC14:
	.ascii	"You bought Tang\012You have %0.2f left\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 296
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #312
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-288]
	sub	r3, fp, #252
	ldr	r2, .L24+4
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	mov	r2, #0
	ldr	r3, .L24+8
	str	r2, [fp, #-228]
	str	r3, [fp, #-224]
	mov	r3, #0
	str	r3, [fp, #-220]
	sub	r3, fp, #212
	ldr	r2, .L24+12
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	mov	r2, #0
	ldr	r3, .L24+16
	str	r2, [fp, #-188]
	str	r3, [fp, #-184]
	mov	r3, #5
	str	r3, [fp, #-180]
	sub	r3, fp, #172
	ldr	r2, .L24+20
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	mov	r2, #0
	ldr	r3, .L24+24
	str	r2, [fp, #-148]
	str	r3, [fp, #-144]
	mov	r3, #2
	str	r3, [fp, #-140]
	sub	ip, fp, #132
	sub	lr, fp, #252
	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}
	stm	ip, {r0, r1}
	sub	ip, fp, #92
	sub	lr, fp, #212
	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}
	stm	ip, {r0, r1}
	sub	ip, fp, #52
	sub	lr, fp, #172
	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}
	stm	ip, {r0, r1}
	ldr	r0, .L24+28
	bl	printf
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-284]
	str	r3, [fp, #-280]
	sub	r3, fp, #284
	mov	r1, r3
	ldr	r0, .L24+32
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-292]
	b	.L2
.L3:
	sub	r1, fp, #132
	ldr	r2, [fp, #-292]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	ip, r1, r3
	ldr	r2, [fp, #-292]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #104
	ldmia	r3, {r0-r1}
	ldr	r2, [fp, #-292]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #96
	ldr	r3, [r3]
	str	r3, [sp, #8]
	stm	sp, {r0-r1}
	mov	r2, ip
	ldr	r1, [fp, #-292]
	ldr	r0, .L24+36
	bl	printf
	ldr	r3, [fp, #-292]
	add	r3, r3, #1
	str	r3, [fp, #-292]
.L2:
	ldr	r3, [fp, #-292]
	cmp	r3, #2
	ble	.L3
	ldr	r0, .L24+40
	bl	puts
	sub	r3, fp, #296
	mov	r1, r3
	ldr	r0, .L24+44
	bl	__isoc99_scanf
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L24+48
	bl	puts
	b	.L6
.L5:
	sub	r1, fp, #108
	ldmia	r1, {r0-r1}
	sub	r3, fp, #284
	ldmia	r3, {r2-r3}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r0, .L24+52
	bl	puts
	b	.L6
.L21:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-260]
	str	r3, [fp, #-256]
	sub	r1, fp, #284
	ldmia	r1, {r0-r1}
	sub	r3, fp, #108
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-260]
	str	r3, [fp, #-256]
	sub	r3, fp, #260
	ldmia	r3, {r2-r3}
	ldr	r0, .L24+56
	bl	printf
	b	.L6
.L4:
	ldr	r3, [fp, #-296]
	cmp	r3, #1
	bne	.L9
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L24+60
	bl	puts
	b	.L6
.L10:
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	sub	r3, fp, #284
	ldmia	r3, {r2-r3}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	ldr	r0, .L24+52
	bl	puts
	b	.L6
.L22:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-268]
	str	r3, [fp, #-264]
	sub	r1, fp, #284
	ldmia	r1, {r0-r1}
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-268]
	str	r3, [fp, #-264]
	sub	r3, fp, #268
	ldmia	r3, {r2-r3}
	ldr	r0, .L24+64
	bl	printf
	b	.L6
.L9:
	ldr	r3, [fp, #-296]
	cmp	r3, #2
	bne	.L6
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L24+68
	bl	puts
	b	.L6
.L13:
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	sub	r3, fp, #284
	ldmia	r3, {r2-r3}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	ldr	r0, .L24+52
	bl	puts
	b	.L6
.L23:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-276]
	str	r3, [fp, #-272]
	sub	r1, fp, #284
	ldmia	r1, {r0-r1}
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-276]
	str	r3, [fp, #-272]
	sub	r3, fp, #276
	ldmia	r3, {r2-r3}
	ldr	r0, .L24+72
	bl	printf
.L6:
	mov	r3, #0
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC15
	.word	.LC0
	.word	1073217536
	.word	.LC1
	.word	1074003968
	.word	.LC2
	.word	1071644672
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
