	.file	"36075265.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC1:
	.string	"Grocery Store Inventory"
	.align 8
.LC2:
	.string	"Press 0 while entering the Barcode # to exit"
.LC3:
	.string	"======================="
.LC4:
	.string	"Barcode  ->  "
.LC5:
	.string	"Price    ->  "
.LC6:
	.string	"Quantity ->  "
.LC7:
	.string	"-----------"
.LC8:
	.string	"\n\t\tGoods in Stock"
.LC9:
	.string	"\t\t=============="
.LC10:
	.string	"Barcode\tPrice\tQuantity\tValue"
	.align 8
.LC11:
	.string	"------------------------------------------"
.LC12:
	.string	"%d\t%.2lf\t%d\t\t%.2lf\n"
.LC13:
	.string	"\t\t\t\t------"
	.align 8
.LC14:
	.string	"Total values goods in stock\t%.2lf \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, 1664
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -1616[rbp]
	mov	eax, 0
	mov	ecx, 50
	mov	rdi, rdx
	rep stosq
	mov	DWORD PTR -1640[rbp], 0
	lea	rdx, -816[rbp]
	mov	eax, 0
	mov	ecx, 100
	mov	rdi, rdx
	rep stosq
	pxor	xmm0, xmm0
	movsd	QWORD PTR -1624[rbp], xmm0
	lea	rdx, -1216[rbp]
	mov	eax, 0
	mov	ecx, 50
	mov	rdi, rdx
	rep stosq
	mov	DWORD PTR -1636[rbp], 0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -1632[rbp], xmm0
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	DWORD PTR -1652[rbp], 0
	jmp	.L2
.L5:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	call	get_an_int
	mov	DWORD PTR -1640[rbp], eax
	cmp	DWORD PTR -1640[rbp], 0
	jne	.L3
	mov	eax, DWORD PTR -1652[rbp]
	mov	DWORD PTR -1644[rbp], eax
	mov	DWORD PTR -1652[rbp], 100
.L3:
	cmp	DWORD PTR -1652[rbp], 99
	jg	.L4
	mov	eax, DWORD PTR -1652[rbp]
	cdqe
	mov	edx, DWORD PTR -1640[rbp]
	mov	DWORD PTR -1616[rbp+rax*4], edx
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	call	get_a_double
	movq	rax, xmm0
	mov	QWORD PTR -1624[rbp], rax
	mov	eax, DWORD PTR -1652[rbp]
	cdqe
	movsd	xmm0, QWORD PTR -1624[rbp]
	movsd	QWORD PTR -816[rbp+rax*8], xmm0
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	call	get_an_int
	mov	DWORD PTR -1636[rbp], eax
	mov	eax, DWORD PTR -1652[rbp]
	cdqe
	mov	edx, DWORD PTR -1636[rbp]
	mov	DWORD PTR -1216[rbp+rax*4], edx
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L4:
	add	DWORD PTR -1652[rbp], 1
.L2:
	cmp	DWORD PTR -1652[rbp], 99
	jle	.L5
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	DWORD PTR -1648[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -1648[rbp]
	cdqe
	movsd	xmm1, QWORD PTR -816[rbp+rax*8]
	mov	eax, DWORD PTR -1648[rbp]
	cdqe
	mov	eax, DWORD PTR -1216[rbp+rax*4]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -1632[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -1632[rbp], xmm0
	mov	eax, DWORD PTR -1648[rbp]
	cdqe
	movsd	xmm1, QWORD PTR -816[rbp+rax*8]
	mov	eax, DWORD PTR -1648[rbp]
	cdqe
	mov	eax, DWORD PTR -1216[rbp+rax*4]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mulsd	xmm0, xmm1
	mov	eax, DWORD PTR -1648[rbp]
	cdqe
	mov	edx, DWORD PTR -1216[rbp+rax*4]
	mov	eax, DWORD PTR -1648[rbp]
	cdqe
	mov	rcx, QWORD PTR -816[rbp+rax*8]
	mov	eax, DWORD PTR -1648[rbp]
	cdqe
	mov	eax, DWORD PTR -1616[rbp+rax*4]
	movapd	xmm1, xmm0
	movq	xmm0, rcx
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 2
	call	printf@PLT
	add	DWORD PTR -1648[rbp], 1
.L6:
	mov	eax, DWORD PTR -1648[rbp]
	cmp	eax, DWORD PTR -1644[rbp]
	jl	.L7
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -1632[rbp]
	movq	xmm0, rax
	lea	rdi, .LC14[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	clear_buffer
	.type	clear_buffer, @function
clear_buffer:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
.L11:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L11
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	clear_buffer, .-clear_buffer
	.section	.rodata
.LC15:
	.string	"%d"
.LC16:
	.string	"Error! Enter an integer -> "
	.text
	.globl	get_an_int
	.type	get_an_int, @function
get_an_int:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 0
.L16:
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	test	eax, eax
	je	.L13
	call	getchar@PLT
	cmp	eax, 10
	je	.L14
.L13:
	call	clear_buffer
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -12[rbp], 1
	jmp	.L15
.L14:
	mov	DWORD PTR -12[rbp], 0
.L15:
	cmp	DWORD PTR -12[rbp], 0
	jne	.L16
	mov	eax, DWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_an_int, .-get_an_int
	.section	.rodata
.LC17:
	.string	"%lf"
	.align 8
.LC18:
	.string	"Error! Enter an integer/double -> "
	.text
	.globl	get_a_double
	.type	get_a_double, @function
get_a_double:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -20[rbp], 0
.L23:
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	test	eax, eax
	je	.L20
	call	getchar@PLT
	cmp	eax, 10
	je	.L21
.L20:
	call	clear_buffer
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -20[rbp], 1
	jmp	.L22
.L21:
	mov	DWORD PTR -20[rbp], 0
.L22:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L23
	movsd	xmm0, QWORD PTR -16[rbp]
	movq	rax, xmm0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	get_a_double, .-get_a_double
	.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	"36075265.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Grocery Store Inventory\000"
	.align	2
.LC1:
	.ascii	"Press 0 while entering the Barcode # to exit\000"
	.align	2
.LC2:
	.ascii	"=======================\000"
	.align	2
.LC3:
	.ascii	"Barcode  ->  \000"
	.align	2
.LC4:
	.ascii	"Price    ->  \000"
	.align	2
.LC5:
	.ascii	"Quantity ->  \000"
	.align	2
.LC6:
	.ascii	"-----------\000"
	.align	2
.LC7:
	.ascii	"\012\011\011Goods in Stock\000"
	.align	2
.LC8:
	.ascii	"\011\011==============\000"
	.align	2
.LC9:
	.ascii	"Barcode\011Price\011Quantity\011Value\000"
	.align	2
.LC10:
	.ascii	"------------------------------------------\000"
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.align	2
.LC11:
	.ascii	"%d\011%.2lf\011%d\011\011%.2lf\012\000"
	.align	2
.LC12:
	.ascii	"\011\011\011\011------\000"
	.align	2
.LC13:
	.ascii	"Total values goods in stock\011%.2lf \012\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1648
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #1664
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	sub	r3, fp, #1616
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r2, #400
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1660]
	sub	r3, fp, #836
	mov	r2, #800
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-1644]
	str	r3, [fp, #-1640]
	sub	r3, fp, #1216
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r2, #400
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1656]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-1652]
	str	r3, [fp, #-1648]
	ldr	r0, .L10+4
	bl	puts
	ldr	r0, .L10+8
	bl	puts
	ldr	r0, .L10+12
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-1672]
	b	.L2
.L5:
	ldr	r0, .L10+16
	bl	printf
	bl	get_an_int
	str	r0, [fp, #-1660]
	ldr	r3, [fp, #-1660]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-1672]
	str	r3, [fp, #-1664]
	mov	r3, #100
	str	r3, [fp, #-1672]
.L3:
	ldr	r3, [fp, #-1672]
	cmp	r3, #99
	bgt	.L4
	ldr	r3, [fp, #-1672]
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r2, [fp, #-1660]
	str	r2, [r3, #-1608]
	ldr	r0, .L10+20
	bl	printf
	bl	get_a_double
	str	r0, [fp, #-1644]
	str	r1, [fp, #-1640]
	ldr	r3, [fp, #-1672]
	lsl	r3, r3, #3
	sub	r2, fp, #28
	add	r3, r2, r3
	sub	r1, r3, #808
	ldr	r2, [fp, #-1644]
	ldr	r3, [fp, #-1640]
	stm	r1, {r2-r3}
	ldr	r0, .L10+24
	bl	printf
	bl	get_an_int
	str	r0, [fp, #-1656]
	ldr	r3, [fp, #-1672]
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r2, [fp, #-1656]
	str	r2, [r3, #-1208]
	ldr	r0, .L10+28
	bl	puts
.L4:
	ldr	r3, [fp, #-1672]
	add	r3, r3, #1
	str	r3, [fp, #-1672]
.L2:
	ldr	r3, [fp, #-1672]
	cmp	r3, #99
	ble	.L5
	ldr	r0, .L10+32
	bl	puts
	ldr	r0, .L10+36
	bl	puts
	ldr	r0, .L10+40
	bl	puts
	ldr	r0, .L10+44
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-1668]
	b	.L6
.L7:
	ldr	r3, [fp, #-1668]
	lsl	r3, r3, #3
	sub	r2, fp, #28
	add	r3, r2, r3
	sub	r3, r3, #808
	ldmia	r3, {r4-r5}
	ldr	r3, [fp, #-1668]
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r3, [r3, #-1208]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	ldr	r0, [fp, #-1652]
	ldr	r1, [fp, #-1648]
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-1652]
	str	r3, [fp, #-1648]
	ldr	r3, [fp, #-1668]
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r9, [r3, #-1608]
	ldr	r3, [fp, #-1668]
	lsl	r3, r3, #3
	sub	r2, fp, #28
	add	r3, r2, r3
	sub	r3, r3, #808
	ldmia	r3, {r4-r5}
	ldr	r3, [fp, #-1668]
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r8, [r3, #-1208]
	ldr	r3, [fp, #-1668]
	lsl	r3, r3, #3
	sub	r2, fp, #28
	add	r3, r2, r3
	sub	r3, r3, #808
	ldmia	r3, {r6-r7}
	ldr	r3, [fp, #-1668]
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r3, [r3, #-1208]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	str	r8, [sp]
	mov	r2, r4
	mov	r3, r5
	mov	r1, r9
	ldr	r0, .L10+48
	bl	printf
	ldr	r3, [fp, #-1668]
	add	r3, r3, #1
	str	r3, [fp, #-1668]
.L6:
	ldr	r2, [fp, #-1668]
	ldr	r3, [fp, #-1664]
	cmp	r2, r3
	blt	.L7
	ldr	r0, .L10+52
	bl	puts
	ldr	r2, [fp, #-1652]
	ldr	r3, [fp, #-1648]
	ldr	r0, .L10+56
	bl	printf
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC14
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.align	2
	.global	clear_buffer
	.syntax unified
	.arm
	.fpu softvfp
	.type	clear_buffer, %function
clear_buffer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	nop
.L13:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L13
	nop
	nop
	pop	{fp, pc}
	.size	clear_buffer, .-clear_buffer
	.section	.rodata
	.align	2
.LC15:
	.ascii	"%d\000"
	.align	2
.LC16:
	.ascii	"Error! Enter an integer -> \000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_an_int
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_an_int, %function
get_an_int:
	@ 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, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-12]
.L18:
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L21+4
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	beq	.L16
.L15:
	bl	clear_buffer
	ldr	r0, .L21+8
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L17
.L16:
	mov	r3, #0
	str	r3, [fp, #-12]
.L17:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-16]
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC17
	.word	.LC15
	.word	.LC16
	.size	get_an_int, .-get_an_int
	.section	.rodata
	.align	2
.LC18:
	.ascii	"%lf\000"
	.align	2
.LC19:
	.ascii	"Error! Enter an integer/double -> \000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_a_double
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_a_double, %function
get_a_double:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
.L27:
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L30+4
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	beq	.L25
.L24:
	bl	clear_buffer
	ldr	r0, .L30+8
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L26
.L25:
	mov	r3, #0
	str	r3, [fp, #-24]
.L26:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L27
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r1, .L30
	ldr	r0, [r1]
	ldr	r1, [fp, #-8]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC20
	.word	.LC18
	.word	.LC19
	.size	get_a_double, .-get_a_double
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
