	.file	"48255.c"
	.intel_syntax noprefix
	.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
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	sub	rsp, 48
	mov	rax, rsp
	mov	rcx, QWORD PTR -80[rbp]
	mov	rbx, QWORD PTR -72[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR -64[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rdx, QWORD PTR -48[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	edx, DWORD PTR -40[rbp]
	mov	DWORD PTR 40[rax], edx
	call	scanner
	add	rsp, 48
	mov	eax, 0
	mov	rsi, QWORD PTR -24[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.string	"Product Category ('M' for meat, 'P' for produce, 'D' for dairy, 'C' for canned goods, 'N' for nonfoods): "
.LC1:
	.string	" %c"
.LC2:
	.string	"Product Name: "
.LC3:
	.string	" %s"
.LC4:
	.string	"Product Cost (in cents): "
.LC5:
	.string	" %d"
	.align 8
.LC6:
	.string	"Product Category ('R' for red meat, 'P' for poultry, or 'F' for fish): "
.LC7:
	.string	"Date Packaged (MMYY): "
.LC8:
	.string	"Expiration Date (MMYY): "
.LC9:
	.string	"\n%s %dC %04d %04d %c\n"
	.align 8
.LC10:
	.string	"Product Category ('F' for fruit, or 'V' for vegetable): "
.LC11:
	.string	"Date Received (MMYY): "
.LC12:
	.string	"\n%s %dC %04d %c\n"
.LC13:
	.string	"\n%s %dC %04d\n"
.LC14:
	.string	"Aisle Number: "
.LC15:
	.string	"Aisle Side('A' or 'B'): "
.LC16:
	.string	"\n%s %dC %04d %d%c\n"
	.align 8
.LC17:
	.string	"Second Product Category ('C' for cleaning product, 'P' for pharmacy, 'O' for other): "
.LC18:
	.string	"\n%s %dC %d%c %c\n"
.LC19:
	.string	"\nInvalid category. Goodbye."
	.text
	.globl	scanner
	.type	scanner, @function
scanner:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, 16[rbp]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR 16[rbp]
	movsx	eax, al
	sub	eax, 67
	cmp	eax, 13
	ja	.L5
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L7[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L7[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L7:
	.long	.L11-.L7
	.long	.L10-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L9-.L7
	.long	.L8-.L7
	.long	.L5-.L7
	.long	.L6-.L7
	.text
.L9:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, 19[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, 40[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, 17[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, 48[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, 52[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR 17[rbp]
	movsx	edi, al
	mov	esi, DWORD PTR 48[rbp]
	mov	ecx, DWORD PTR 52[rbp]
	mov	edx, DWORD PTR 40[rbp]
	lea	rax, 19[rbp]
	mov	r9d, edi
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L6:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, 19[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, 40[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, 17[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, 44[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR 17[rbp]
	movsx	esi, al
	mov	ecx, DWORD PTR 44[rbp]
	mov	edx, DWORD PTR 40[rbp]
	lea	rax, 19[rbp]
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L10:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, 19[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, 40[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, 52[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	ecx, DWORD PTR 52[rbp]
	mov	edx, DWORD PTR 40[rbp]
	lea	rax, 19[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L11:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, 19[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, 40[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, 52[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, 56[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, 18[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR 18[rbp]
	movsx	edi, al
	mov	esi, DWORD PTR 56[rbp]
	mov	ecx, DWORD PTR 52[rbp]
	mov	edx, DWORD PTR 40[rbp]
	lea	rax, 19[rbp]
	mov	r9d, edi
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L8:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, 19[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, 40[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, 17[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, 56[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, 18[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR 17[rbp]
	movsx	edi, al
	movzx	eax, BYTE PTR 18[rbp]
	movsx	esi, al
	mov	ecx, DWORD PTR 56[rbp]
	mov	edx, DWORD PTR 40[rbp]
	lea	rax, 19[rbp]
	mov	r9d, edi
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L5:
	lea	rdi, .LC19[rip]
	call	puts@PLT
	nop
.L12:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	scanner, .-scanner
	.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	"48255.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	lr, sp
	sub	ip, fp, #36
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2}
	stm	lr, {r0, r1, r2}
	sub	r3, fp, #52
	ldm	r3, {r0, r1, r2, r3}
	bl	scanner
	mov	r3, #0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	main, .-main
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Product Category ('M' for meat, 'P' for produce, 'D"
	.ascii	"' for dairy, 'C' for canned goods, 'N' for nonfoods"
	.ascii	"): \000"
	.align	2
.LC2:
	.ascii	" %c\000"
	.align	2
.LC3:
	.ascii	"Product Name: \000"
	.align	2
.LC4:
	.ascii	" %s\000"
	.align	2
.LC5:
	.ascii	"Product Cost (in cents): \000"
	.align	2
.LC6:
	.ascii	" %d\000"
	.align	2
.LC7:
	.ascii	"Product Category ('R' for red meat, 'P' for poultry"
	.ascii	", or 'F' for fish): \000"
	.align	2
.LC8:
	.ascii	"Date Packaged (MMYY): \000"
	.align	2
.LC9:
	.ascii	"Expiration Date (MMYY): \000"
	.align	2
.LC10:
	.ascii	"\012%s %dC %04d %04d %c\012\000"
	.align	2
.LC11:
	.ascii	"Product Category ('F' for fruit, or 'V' for vegetab"
	.ascii	"le): \000"
	.align	2
.LC12:
	.ascii	"Date Received (MMYY): \000"
	.align	2
.LC13:
	.ascii	"\012%s %dC %04d %c\012\000"
	.align	2
.LC14:
	.ascii	"\012%s %dC %04d\012\000"
	.align	2
.LC15:
	.ascii	"Aisle Number: \000"
	.align	2
.LC16:
	.ascii	"Aisle Side('A' or 'B'): \000"
	.align	2
.LC17:
	.ascii	"\012%s %dC %04d %d%c\012\000"
	.align	2
.LC18:
	.ascii	"Second Product Category ('C' for cleaning product, "
	.ascii	"'P' for pharmacy, 'O' for other): \000"
	.align	2
.LC19:
	.ascii	"\012%s %dC %d%c %c\012\000"
	.align	2
.LC20:
	.ascii	"\012Invalid category. Goodbye.\000"
	.text
	.align	2
	.global	scanner
	.syntax unified
	.arm
	.fpu softvfp
	.type	scanner, %function
scanner:
	@ args = 44, pretend = 16, frame = 0
	@ 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}
	ldr	r0, .L15
	bl	printf
	add	r3, fp, #4
	mov	r1, r3
	ldr	r0, .L15+4
	bl	__isoc99_scanf
	ldrb	r3, [fp, #4]	@ zero_extendqisi2
	sub	r3, r3, #67
	cmp	r3, #13
	ldrls	pc, [pc, r3, asl #2]
	b	.L7
.L9:
	.word	.L13
	.word	.L12
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L11
	.word	.L10
	.word	.L7
	.word	.L8
.L11:
	ldr	r0, .L15+8
	bl	printf
	add	r3, fp, #7
	mov	r1, r3
	ldr	r0, .L15+12
	bl	__isoc99_scanf
	ldr	r0, .L15+16
	bl	printf
	add	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L15+20
	bl	__isoc99_scanf
	ldr	r0, .L15+24
	bl	printf
	add	r3, fp, #5
	mov	r1, r3
	ldr	r0, .L15+4
	bl	__isoc99_scanf
	ldr	r0, .L15+28
	bl	printf
	add	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L15+20
	bl	__isoc99_scanf
	ldr	r0, .L15+32
	bl	printf
	add	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L15+20
	bl	__isoc99_scanf
	ldr	r2, [fp, #28]
	ldr	r0, [fp, #40]
	ldr	r3, [fp, #36]
	ldrb	r1, [fp, #5]	@ zero_extendqisi2
	mov	ip, r1
	add	r1, fp, #7
	str	ip, [sp, #4]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L15+36
	bl	printf
	b	.L14
.L8:
	ldr	r0, .L15+8
	bl	printf
	add	r3, fp, #7
	mov	r1, r3
	ldr	r0, .L15+12
	bl	__isoc99_scanf
	ldr	r0, .L15+16
	bl	printf
	add	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L15+20
	bl	__isoc99_scanf
	ldr	r0, .L15+40
	bl	printf
	add	r3, fp, #5
	mov	r1, r3
	ldr	r0, .L15+4
	bl	__isoc99_scanf
	ldr	r0, .L15+44
	bl	printf
	add	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L15+20
	bl	__isoc99_scanf
	ldr	r2, [fp, #28]
	ldr	r3, [fp, #32]
	ldrb	r1, [fp, #5]	@ zero_extendqisi2
	mov	r0, r1
	add	r1, fp, #7
	str	r0, [sp]
	ldr	r0, .L15+48
	bl	printf
	b	.L14
.L12:
	ldr	r0, .L15+8
	bl	printf
	add	r3, fp, #7
	mov	r1, r3
	ldr	r0, .L15+12
	bl	__isoc99_scanf
	ldr	r0, .L15+16
	bl	printf
	add	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L15+20
	bl	__isoc99_scanf
	ldr	r0, .L15+32
	bl	printf
	add	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L15+20
	bl	__isoc99_scanf
	ldr	r2, [fp, #28]
	ldr	r3, [fp, #40]
	add	r1, fp, #7
	ldr	r0, .L15+52
	bl	printf
	b	.L14
.L13:
	ldr	r0, .L15+8
	bl	printf
	add	r3, fp, #7
	mov	r1, r3
	ldr	r0, .L15+12
	bl	__isoc99_scanf
	ldr	r0, .L15+16
	bl	printf
	add	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L15+20
	bl	__isoc99_scanf
	ldr	r0, .L15+32
	bl	printf
	add	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L15+20
	bl	__isoc99_scanf
	ldr	r0, .L15+56
	bl	printf
	add	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L15+20
	bl	__isoc99_scanf
	ldr	r0, .L15+60
	bl	printf
	add	r3, fp, #6
	mov	r1, r3
	ldr	r0, .L15+4
	bl	__isoc99_scanf
	ldr	r2, [fp, #28]
	ldr	r0, [fp, #40]
	ldr	r3, [fp, #44]
	ldrb	r1, [fp, #6]	@ zero_extendqisi2
	mov	ip, r1
	add	r1, fp, #7
	str	ip, [sp, #4]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L15+64
	bl	printf
	b	.L14
.L10:
	ldr	r0, .L15+8
	bl	printf
	add	r3, fp, #7
	mov	r1, r3
	ldr	r0, .L15+12
	bl	__isoc99_scanf
	ldr	r0, .L15+16
	bl	printf
	add	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L15+20
	bl	__isoc99_scanf
	ldr	r0, .L15+68
	bl	printf
	add	r3, fp, #5
	mov	r1, r3
	ldr	r0, .L15+4
	bl	__isoc99_scanf
	ldr	r0, .L15+56
	bl	printf
	add	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L15+20
	bl	__isoc99_scanf
	ldr	r0, .L15+60
	bl	printf
	add	r3, fp, #6
	mov	r1, r3
	ldr	r0, .L15+4
	bl	__isoc99_scanf
	ldr	r2, [fp, #28]
	ldr	r3, [fp, #44]
	ldrb	r1, [fp, #6]	@ zero_extendqisi2
	mov	r0, r1
	ldrb	r1, [fp, #5]	@ zero_extendqisi2
	mov	ip, r1
	add	r1, fp, #7
	str	ip, [sp, #4]
	str	r0, [sp]
	ldr	r0, .L15+72
	bl	printf
	b	.L14
.L7:
	ldr	r0, .L15+76
	bl	puts
	nop
.L14:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L16:
	.align	2
.L15:
	.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
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	scanner, .-scanner
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
