	.file	"15227.c"
	.intel_syntax noprefix
	.text
	.globl	inventory
	.bss
	.align 8
	.type	inventory, @object
	.size	inventory, 8
inventory:
	.zero	8
	.section	.rodata
	.align 8
.LC0:
	.string	"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
.LC1:
	.string	"03:30:18"
.LC2:
	.string	"Dec  6 2024"
.LC3:
	.string	"the_stack_data/15227.c"
	.align 8
.LC4:
	.string	"File: %s, C Version: %d, Date: %s, Time: %s\n\n"
	.align 8
.LC5:
	.string	"Enter operation code (i-insert, s-search, u-update, p-print, e-erase, q-exit): "
.LC6:
	.string	" %c"
	.align 8
.LC7:
	.string	"\n++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
.LC8:
	.string	"Illegal code"
	.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	r8, .LC1[rip]
	lea	rcx, .LC2[rip]
	mov	edx, 201710
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -9[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	nop
.L2:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L2
	movzx	eax, BYTE PTR -9[rbp]
	movsx	eax, al
	sub	eax, 101
	cmp	eax, 16
	ja	.L3
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L5[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L5[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L10-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L9-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L8-.L5
	.long	.L7-.L5
	.long	.L3-.L5
	.long	.L6-.L5
	.long	.L3-.L5
	.long	.L4-.L5
	.text
.L9:
	call	insert
	jmp	.L11
.L6:
	call	search
	jmp	.L11
.L4:
	call	update
	jmp	.L11
.L8:
	call	print
	jmp	.L11
.L10:
	call	erase
	jmp	.L11
.L7:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	jmp	.L15
.L3:
	lea	rdi, .LC8[rip]
	call	puts@PLT
.L11:
	mov	edi, 10
	call	putchar@PLT
	jmp	.L13
.L15:
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	read_line
	.type	read_line, @function
read_line:
.LFB7:
	.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, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -20[rbp], 0
	nop
.L17:
	call	__ctype_b_loc@PLT
	mov	rbx, QWORD PTR [rax]
	call	getchar@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, rax
	add	rax, rbx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L17
	jmp	.L18
.L21:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jge	.L19
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -20[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
.L19:
	call	getchar@PLT
	mov	DWORD PTR -24[rbp], eax
.L18:
	cmp	DWORD PTR -24[rbp], 10
	je	.L20
	cmp	DWORD PTR -24[rbp], -1
	jne	.L21
.L20:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -20[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	read_line, .-read_line
	.globl	find_part
	.type	find_part, @function
find_part:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR inventory[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L24
.L26:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -8[rbp], rax
.L24:
	cmp	QWORD PTR -8[rbp], 0
	je	.L25
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -20[rbp], eax
	jg	.L26
.L25:
	cmp	QWORD PTR -8[rbp], 0
	je	.L27
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L27
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L28
.L27:
	mov	eax, 0
.L28:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	find_part, .-find_part
	.section	.rodata
	.align 8
.LC9:
	.string	"Database is full; can't add more parts."
.LC10:
	.string	"Enter part number: "
.LC11:
	.string	"%d"
.LC12:
	.string	"Part already exists."
.LC13:
	.string	"Enter part name: "
.LC14:
	.string	"Enter quantity on hand: "
	.text
	.globl	insert
	.type	insert, @function
insert:
.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	edi, 48
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L30
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L29
.L30:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR inventory[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	jmp	.L32
.L34:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -24[rbp], rax
.L32:
	cmp	QWORD PTR -24[rbp], 0
	je	.L33
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jg	.L34
.L33:
	cmp	QWORD PTR -24[rbp], 0
	je	.L35
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jne	.L35
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L29
.L35:
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	mov	esi, 25
	mov	rdi, rax
	call	read_line
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 32
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 40[rax], rdx
	cmp	QWORD PTR -16[rbp], 0
	jne	.L36
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR inventory[rip], rax
	jmp	.L29
.L36:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 40[rax], rdx
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	insert, .-insert
	.section	.rodata
.LC15:
	.string	"Part name: %s\n"
.LC16:
	.string	"Quantity on hand: %d\n"
.LC17:
	.string	"Part not found."
	.text
	.globl	search
	.type	search, @function
search:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	find_part
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L38
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 32[rax]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L41
.L38:
	lea	rdi, .LC17[rip]
	call	puts@PLT
.L41:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	search, .-search
	.section	.rodata
	.align 8
.LC18:
	.string	"Enter change in quantity on hand: "
	.text
	.globl	update
	.type	update, @function
update:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	find_part
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L43
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 32[rax]
	mov	eax, DWORD PTR -20[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 32[rax], edx
	jmp	.L46
.L43:
	lea	rdi, .LC17[rip]
	call	puts@PLT
.L46:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	update, .-update
	.section	.rodata
	.align 8
.LC19:
	.string	"Part Number   Part Name                  Quantity on Hand"
	.align 8
.LC20:
	.string	"---------------------------------------------------------"
.LC21:
	.string	"%7d       %-25s%11d\n"
	.text
	.globl	print
	.type	print, @function
print:
.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, 16
	lea	rdi, .LC19[rip]
	call	puts@PLT
	lea	rdi, .LC20[rip]
	call	puts@PLT
	mov	rax, QWORD PTR inventory[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L48
.L49:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 32[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	ecx, edx
	mov	rdx, rsi
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -8[rbp], rax
.L48:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L49
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	print, .-print
	.globl	erase
	.type	erase, @function
erase:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, inventory[rip]
	mov	QWORD PTR -24[rbp], rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	find_part
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L51
	jmp	.L52
.L54:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -16[rbp], rax
	jne	.L53
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
.L53:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 40
	mov	QWORD PTR -24[rbp], rax
.L52:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L54
	jmp	.L57
.L51:
	lea	rdi, .LC17[rip]
	call	puts@PLT
.L57:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L56
	call	__stack_chk_fail@PLT
.L56:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	erase, .-erase
	.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	"15227.c"
	.text
	.global	inventory
	.bss
	.align	2
	.type	inventory, %object
	.size	inventory, 4
inventory:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"+++++++++++++++++++++++++++++++++++++++++++++++++++"
	.ascii	"+++++++++++++++++\000"
	.align	2
.LC1:
	.ascii	"Dec  6 2024\000"
	.align	2
.LC2:
	.ascii	"the_stack_data/15227.c\000"
	.align	2
.LC3:
	.ascii	"File: %s, C Version: %d, Date: %s, Time: %s\012\012"
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"03:30:18\000"
	.align	2
.LC5:
	.ascii	"Enter operation code (i-insert, s-search, u-update,"
	.ascii	" p-print, e-erase, q-exit): \000"
	.align	2
.LC6:
	.ascii	" %c\000"
	.align	2
.LC7:
	.ascii	"\012+++++++++++++++++++++++++++++++++++++++++++++++"
	.ascii	"+++++++++++++++++++++\000"
	.align	2
.LC8:
	.ascii	"Illegal code\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L16+4
	bl	puts
	ldr	r3, .L16+8
	str	r3, [sp]
	ldr	r3, .L16+12
	ldr	r2, .L16+16
	ldr	r1, .L16+20
	ldr	r0, .L16+24
	bl	printf
.L13:
	ldr	r0, .L16+28
	bl	printf
	sub	r3, fp, #9
	mov	r1, r3
	ldr	r0, .L16+32
	bl	__isoc99_scanf
	nop
.L2:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L2
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	sub	r3, r3, #101
	cmp	r3, #16
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L10
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L9
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L8
	.word	.L7
	.word	.L3
	.word	.L6
	.word	.L3
	.word	.L4
.L9:
	bl	insert
	b	.L11
.L6:
	bl	search
	b	.L11
.L4:
	bl	update
	b	.L11
.L8:
	bl	print
	b	.L11
.L10:
	bl	erase
	b	.L11
.L7:
	ldr	r0, .L16+36
	bl	puts
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	b	.L15
.L3:
	ldr	r0, .L16+40
	bl	puts
.L11:
	mov	r0, #10
	bl	putchar
	b	.L13
.L15:
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC9
	.word	.LC0
	.word	.LC4
	.word	.LC1
	.word	201710
	.word	.LC2
	.word	.LC3
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.align	2
	.global	read_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_line, %function
read_line:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	nop
.L19:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r4, [r3]
	bl	getchar
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #1
	add	r3, r4, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L19
	b	.L20
.L23:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bge	.L21
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	ldr	r2, [fp, #-20]
	and	r2, r2, #255
	strb	r2, [r3]
.L21:
	bl	getchar
	str	r0, [fp, #-20]
.L20:
	ldr	r3, [fp, #-20]
	cmp	r3, #10
	beq	.L22
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L23
.L22:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	read_line, .-read_line
	.align	2
	.global	find_part
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_part, %function
find_part:
	@ 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
	str	r0, [fp, #-16]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L26
.L28:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #36]
	str	r3, [fp, #-8]
.L26:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bgt	.L28
.L27:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L29
	ldr	r3, [fp, #-8]
	b	.L30
.L29:
	mov	r3, #0
.L30:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L32:
	.align	2
.L31:
	.word	inventory
	.size	find_part, .-find_part
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Database is full; can't add more parts.\000"
	.align	2
.LC11:
	.ascii	"Enter part number: \000"
	.align	2
.LC12:
	.ascii	"%d\000"
	.align	2
.LC13:
	.ascii	"Part already exists.\000"
	.align	2
.LC14:
	.ascii	"Enter part name: \000"
	.align	2
.LC15:
	.ascii	"Enter quantity on hand: \000"
	.text
	.align	2
	.global	insert
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert, %function
insert:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r0, #40
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L34
	ldr	r0, .L41
	bl	puts
	b	.L33
.L34:
	ldr	r0, .L41+4
	bl	printf
	ldr	r3, [fp, #-8]
	mov	r1, r3
	ldr	r0, .L41+8
	bl	__isoc99_scanf
	ldr	r3, .L41+12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L36
.L38:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #36]
	str	r3, [fp, #-16]
.L36:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L37
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L38
.L37:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L39
	ldr	r0, .L41+16
	bl	puts
	ldr	r0, [fp, #-8]
	bl	free
	b	.L33
.L39:
	ldr	r0, .L41+20
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	mov	r1, #25
	mov	r0, r3
	bl	read_line
	ldr	r0, .L41+24
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #32
	mov	r1, r3
	ldr	r0, .L41+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #36]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L40
	ldr	r2, .L41+12
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	b	.L33
.L40:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #36]
.L33:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	inventory
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	insert, .-insert
	.section	.rodata
	.align	2
.LC16:
	.ascii	"Part name: %s\012\000"
	.align	2
.LC17:
	.ascii	"Quantity on hand: %d\012\000"
	.align	2
.LC18:
	.ascii	"Part not found.\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	search
	.syntax unified
	.arm
	.fpu softvfp
	.type	search, %function
search:
	@ 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, .L48
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L48+4
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L48+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	find_part
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L44
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L48+12
	bl	printf
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #32]
	mov	r1, r3
	ldr	r0, .L48+16
	bl	printf
	b	.L47
.L44:
	ldr	r0, .L48+20
	bl	puts
.L47:
	nop
	ldr	r3, .L48
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L46
	bl	__stack_chk_fail
.L46:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC19
	.word	.LC11
	.word	.LC12
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	search, .-search
	.section	.rodata
	.align	2
.LC20:
	.ascii	"Enter change in quantity on hand: \000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	update
	.syntax unified
	.arm
	.fpu softvfp
	.type	update, %function
update:
	@ 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, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L55+4
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L55+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	find_part
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L51
	ldr	r0, .L55+12
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L55+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #32]
	ldr	r3, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	str	r2, [r3, #32]
	b	.L54
.L51:
	ldr	r0, .L55+16
	bl	puts
.L54:
	nop
	ldr	r3, .L55
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L53
	bl	__stack_chk_fail
.L53:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC21
	.word	.LC11
	.word	.LC12
	.word	.LC20
	.word	.LC18
	.size	update, .-update
	.section	.rodata
	.align	2
.LC22:
	.ascii	"Part Number   Part Name                  Quantity o"
	.ascii	"n Hand\000"
	.align	2
.LC23:
	.ascii	"---------------------------------------------------"
	.ascii	"------\000"
	.align	2
.LC24:
	.ascii	"%7d       %-25s%11d\012\000"
	.text
	.align	2
	.global	print
	.syntax unified
	.arm
	.fpu softvfp
	.type	print, %function
print:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L60
	bl	puts
	ldr	r0, .L60+4
	bl	puts
	ldr	r3, .L60+8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L58
.L59:
	ldr	r3, [fp, #-8]
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	add	r2, r3, #4
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #32]
	ldr	r0, .L60+12
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #36]
	str	r3, [fp, #-8]
.L58:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L59
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L61:
	.align	2
.L60:
	.word	.LC22
	.word	.LC23
	.word	inventory
	.word	.LC24
	.size	print, .-print
	.section	.rodata
	.align	2
.LC25:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	erase
	.syntax unified
	.arm
	.fpu softvfp
	.type	erase, %function
erase:
	@ 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, .L70
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L70+4
	str	r3, [fp, #-16]
	ldr	r0, .L70+8
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L70+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	find_part
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L63
	b	.L64
.L66:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L65
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [r3, #36]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r0, [fp, #-12]
	bl	free
.L65:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r3, r3, #36
	str	r3, [fp, #-16]
.L64:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L66
	b	.L69
.L63:
	ldr	r0, .L70+16
	bl	puts
.L69:
	nop
	ldr	r3, .L70
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L68
	bl	__stack_chk_fail
.L68:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L71:
	.align	2
.L70:
	.word	.LC25
	.word	inventory
	.word	.LC11
	.word	.LC12
	.word	.LC18
	.size	erase, .-erase
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
