	.file	"772871.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Pickles"
.LC1:
	.string	"Bananas"
.LC2:
	.string	"Kimchi"
.LC3:
	.string	"Potatoes"
.LC4:
	.string	"Banana peppers"
.LC5:
	.string	"Chilis"
	.section	.data.rel.local,"aw"
	.align 32
	.type	NAMES, @object
	.size	NAMES, 48
NAMES:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.quad	.LC4
	.quad	.LC5
	.section	.rodata
.LC6:
	.string	"Bob"
.LC7:
	.string	"Tim"
.LC8:
	.string	"Mary"
.LC9:
	.string	"Sue"
.LC10:
	.string	"Jane"
.LC11:
	.string	"Arthur"
.LC12:
	.string	"Zaphod"
	.section	.data.rel.local
	.align 32
	.type	FOODS, @object
	.size	FOODS, 56
FOODS:
	.quad	.LC6
	.quad	.LC7
	.quad	.LC8
	.quad	.LC9
	.quad	.LC10
	.quad	.LC11
	.quad	.LC12
	.text
	.globl	get_name
	.type	get_name, @function
get_name:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 5
	jg	.L2
	cmp	QWORD PTR -8[rbp], 0
	jns	.L3
.L2:
	mov	eax, 0
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, NAMES[rip]
	mov	rax, QWORD PTR [rdx+rax]
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_name, .-get_name
	.globl	get_food
	.type	get_food, @function
get_food:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 6
	jg	.L6
	cmp	QWORD PTR -8[rbp], 0
	jns	.L7
.L6:
	mov	eax, 0
	jmp	.L8
.L7:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, FOODS[rip]
	mov	rax, QWORD PTR [rdx+rax]
.L8:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_food, .-get_food
	.section	.rodata
	.align 8
.LC13:
	.string	"You need to select a type and an index!"
.LC14:
	.string	"bad number as second arg: %s\n"
.LC15:
	.string	"foods"
.LC16:
	.string	"Aw that food doesn't exist :("
	.align 8
.LC17:
	.string	"I don't think the recipe calls for a %s...\n"
.LC18:
	.string	"names"
.LC19:
	.string	"Aw that name doesn't exist :("
.LC20:
	.string	"What kind of name is %s?\n"
	.align 8
.LC21:
	.string	"We don't know anything about %s here\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 2
	jg	.L10
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	QWORD PTR -32[rbp], rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 22
	je	.L11
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 34
	jne	.L12
.L11:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 5
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L13
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	get_food
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L14
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L15
.L13:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 5
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L16
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	get_name
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L17
	lea	rdi, .LC19[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L17:
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L15
.L16:
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"772871.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Pickles\000"
	.align	2
.LC1:
	.ascii	"Bananas\000"
	.align	2
.LC2:
	.ascii	"Kimchi\000"
	.align	2
.LC3:
	.ascii	"Potatoes\000"
	.align	2
.LC4:
	.ascii	"Banana peppers\000"
	.align	2
.LC5:
	.ascii	"Chilis\000"
	.data
	.align	2
	.type	NAMES, %object
	.size	NAMES, 24
NAMES:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Bob\000"
	.align	2
.LC7:
	.ascii	"Tim\000"
	.align	2
.LC8:
	.ascii	"Mary\000"
	.align	2
.LC9:
	.ascii	"Sue\000"
	.align	2
.LC10:
	.ascii	"Jane\000"
	.align	2
.LC11:
	.ascii	"Arthur\000"
	.align	2
.LC12:
	.ascii	"Zaphod\000"
	.data
	.align	2
	.type	FOODS, %object
	.size	FOODS, 28
FOODS:
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.text
	.align	2
	.global	get_name
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_name, %function
get_name:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #5
	bgt	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L3
.L2:
	mov	r3, #0
	b	.L4
.L3:
	ldr	r2, .L5
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L6:
	.align	2
.L5:
	.word	NAMES
	.size	get_name, .-get_name
	.align	2
	.global	get_food
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_food, %function
get_food:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #6
	bgt	.L8
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L9
.L8:
	mov	r3, #0
	b	.L10
.L9:
	ldr	r2, .L11
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
.L10:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L12:
	.align	2
.L11:
	.word	FOODS
	.size	get_food, .-get_food
	.section	.rodata
	.align	2
.LC13:
	.ascii	"You need to select a type and an index!\000"
	.align	2
.LC14:
	.ascii	"bad number as second arg: %s\012\000"
	.align	2
.LC15:
	.ascii	"foods\000"
	.align	2
.LC16:
	.ascii	"Aw that food doesn't exist :(\000"
	.align	2
.LC17:
	.ascii	"I don't think the recipe calls for a %s...\012\000"
	.align	2
.LC18:
	.ascii	"names\000"
	.align	2
.LC19:
	.ascii	"Aw that name doesn't exist :(\000"
	.align	2
.LC20:
	.ascii	"What kind of name is %s?\012\000"
	.align	2
.LC21:
	.ascii	"We don't know anything about %s here\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	bgt	.L14
	ldr	r0, .L23
	bl	puts
	mov	r0, #1
	bl	exit
.L14:
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-20]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #22
	beq	.L15
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #34
	bne	.L16
.L15:
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L23+4
	bl	printf
	mov	r0, #1
	bl	exit
.L16:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	mov	r2, #5
	ldr	r1, .L23+8
	ldr	r0, [fp, #-16]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	ldr	r0, [fp, #-20]
	bl	get_food
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L18
	ldr	r0, .L23+12
	bl	puts
	mov	r0, #1
	bl	exit
.L18:
	ldr	r1, [fp, #-8]
	ldr	r0, .L23+16
	bl	printf
	b	.L19
.L17:
	mov	r2, #5
	ldr	r1, .L23+20
	ldr	r0, [fp, #-16]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	ldr	r0, [fp, #-20]
	bl	get_name
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L21
	ldr	r0, .L23+24
	bl	puts
	mov	r0, #1
	bl	exit
.L21:
	ldr	r1, [fp, #-12]
	ldr	r0, .L23+28
	bl	printf
	b	.L19
.L20:
	ldr	r1, [fp, #-16]
	ldr	r0, .L23+32
	bl	printf
	mov	r0, #1
	bl	exit
.L19:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
