	.file	"270689.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"snacks.csv"
.LC2:
	.string	"input.txt"
	.align 8
.LC3:
	.string	"Error: unable to open file %s\n"
.LC5:
	.string	","
.LC6:
	.string	"Read data: %s $%.2f\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 1584
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -1568[rbp], 0
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -1568[rbp], rax
	cmp	QWORD PTR -1568[rbp], 0
	jne	.L3
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	pxor	xmm0, xmm0
	movss	DWORD PTR -1572[rbp], xmm0
	lea	rax, -1040[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -1560[rbp], rax
	cmp	QWORD PTR -1560[rbp], 0
	je	.L4
	mov	rdx, QWORD PTR -1560[rbp]
	lea	rax, -1552[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L4:
	lea	rsi, .LC5[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -1560[rbp], rax
	cmp	QWORD PTR -1560[rbp], 0
	je	.L5
	mov	rax, QWORD PTR -1560[rbp]
	mov	rdi, rax
	call	atof@PLT
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -1572[rbp], xmm0
.L5:
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -1572[rbp]
	movq	rdx, xmm1
	lea	rax, -1552[rbp]
	movq	xmm0, rdx
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
.L3:
	mov	rdx, QWORD PTR -1568[rbp]
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L6
	mov	rax, QWORD PTR -1568[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"270689.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"snacks.csv\000"
	.align	2
.LC2:
	.ascii	"input.txt\000"
	.align	2
.LC3:
	.ascii	"Error: unable to open file %s\012\000"
	.align	2
.LC4:
	.ascii	",\000"
	.global	__aeabi_d2f
	.global	__aeabi_f2d
	.align	2
.LC5:
	.ascii	"Read data: %s $%.2f\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1552
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1552
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1552]
	ldr	r1, .L9+4
	ldr	r0, .L9+8
	bl	fopen
	str	r0, [fp, #-1552]
	ldr	r3, [fp, #-1552]
	cmp	r3, #0
	bne	.L3
	ldr	r1, .L9+12
	ldr	r0, .L9+16
	bl	printf
	mov	r0, #1
	bl	exit
.L6:
	mov	r3, #0
	str	r3, [fp, #-1556]	@ float
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L9+20
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-1548]
	ldr	r3, [fp, #-1548]
	cmp	r3, #0
	beq	.L4
	sub	r3, fp, #1536
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-1548]
	mov	r0, r3
	bl	strcpy
.L4:
	ldr	r1, .L9+20
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-1548]
	ldr	r3, [fp, #-1548]
	cmp	r3, #0
	beq	.L5
	ldr	r0, [fp, #-1548]
	bl	atof
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-1556]	@ float
.L5:
	ldr	r0, [fp, #-1556]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #1536
	sub	r1, r1, #4
	sub	r1, r1, #4
	ldr	r0, .L9+24
	bl	printf
.L3:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1552]
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r0, [fp, #-1552]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
