	.file	"742971.c"
	.intel_syntax noprefix
	.text
	.globl	TRUE
	.section	.rodata
	.align 4
	.type	TRUE, @object
	.size	TRUE, 4
TRUE:
	.long	1
	.globl	FALSE
	.align 4
	.type	FALSE, @object
	.size	FALSE, 4
FALSE:
	.zero	4
	.globl	Food
	.type	Food, @object
	.size	Food, 1
Food:
	.byte	42
	.globl	Empty
	.type	Empty, @object
	.size	Empty, 1
Empty:
	.byte	46
	.globl	MaxSteps
	.align 4
	.type	MaxSteps, @object
	.size	MaxSteps, 4
MaxSteps:
	.long	615
	.globl	Left
	.type	Left, @object
	.size	Left, 4
Left:
	.string	"\001\002\003"
	.globl	Right
	.type	Right, @object
	.size	Right, 4
Right:
	.string	"\003"
	.ascii	"\001\002"
	.globl	DirX
	.align 16
	.type	DirX, @object
	.size	DirX, 16
DirX:
	.long	0
	.long	-1
	.long	0
	.long	1
	.globl	DirY
	.align 16
	.type	DirY, @object
	.size	DirY, 16
DirY:
	.long	-1
	.long	0
	.long	1
	.long	0
	.globl	Avatar
	.type	Avatar, @object
	.size	Avatar, 4
Avatar:
	.ascii	"^<v>"
	.globl	grid
	.align 8
.LC0:
	.string	".***............................"
	.align 8
.LC1:
	.string	"...*............................"
	.align 8
.LC2:
	.string	"...*.....................***...."
	.align 8
.LC3:
	.string	"...*....................*....*.."
	.align 8
.LC4:
	.string	"...****.*****........**........."
	.align 8
.LC5:
	.string	"............*................*.."
	.align 8
.LC6:
	.string	"............*.......*..........."
	.align 8
.LC7:
	.string	"............*.......*........*.."
	.align 8
.LC8:
	.string	"....................*..........."
	.align 8
.LC9:
	.string	"............*..................."
	.align 8
.LC10:
	.string	"............*.......*.....***..."
	.align 8
.LC11:
	.string	".................*.....*........"
	.align 8
.LC12:
	.string	"................................"
	.align 8
.LC13:
	.string	"............*...*.......*......."
	.align 8
.LC14:
	.string	"............*...*..........*...."
	.align 8
.LC15:
	.string	"............*...*..............."
	.align 8
.LC16:
	.string	"............*.............*....."
	.align 8
.LC17:
	.string	"............*..........*........"
	.align 8
.LC18:
	.string	"...**..*****....*..............."
	.align 8
.LC19:
	.string	".*..............*..............."
	.align 8
.LC20:
	.string	".*......*******................."
	.align 8
.LC21:
	.string	".*.....*........................"
	.align 8
.LC22:
	.string	".......*........................"
	.align 8
.LC23:
	.string	"..****.........................."
	.section	.data.rel.local,"aw"
	.align 32
	.type	grid, @object
	.size	grid, 256
grid:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.quad	.LC3
	.quad	.LC4
	.quad	.LC5
	.quad	.LC6
	.quad	.LC6
	.quad	.LC7
	.quad	.LC8
	.quad	.LC9
	.quad	.LC5
	.quad	.LC6
	.quad	.LC10
	.quad	.LC11
	.quad	.LC12
	.quad	.LC9
	.quad	.LC13
	.quad	.LC14
	.quad	.LC15
	.quad	.LC15
	.quad	.LC16
	.quad	.LC17
	.quad	.LC18
	.quad	.LC19
	.quad	.LC19
	.quad	.LC20
	.quad	.LC21
	.quad	.LC22
	.quad	.LC23
	.quad	.LC12
	.globl	GridHeight
	.section	.rodata
	.align 4
	.type	GridHeight, @object
	.size	GridHeight, 4
GridHeight:
	.long	32
	.globl	GridWidth
	.align 4
	.type	GridWidth, @object
	.size	GridWidth, 4
GridWidth:
	.long	32
	.globl	dir
	.data
	.align 4
	.type	dir, @object
	.size	dir, 4
dir:
	.long	3
	.globl	x
	.bss
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	consumed_food
	.align 4
	.type	consumed_food, @object
	.size	consumed_food, 4
consumed_food:
	.zero	4
	.globl	steps
	.align 4
	.type	steps, @object
	.size	steps, 4
steps:
	.zero	4
	.text
	.globl	move
	.type	move, @function
move:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR steps[rip]
	mov	edx, 615
	cmp	eax, edx
	jge	.L4
	mov	eax, 0
	call	ahead_x
	mov	DWORD PTR x[rip], eax
	mov	eax, 0
	call	ahead_y
	mov	DWORD PTR y[rip], eax
	mov	eax, DWORD PTR steps[rip]
	add	eax, 1
	mov	DWORD PTR steps[rip], eax
	mov	eax, DWORD PTR y[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, grid[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR x[rip]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	edx, 42
	cmp	al, dl
	jne	.L1
	mov	eax, DWORD PTR consumed_food[rip]
	add	eax, 1
	mov	DWORD PTR consumed_food[rip], eax
	mov	eax, DWORD PTR y[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, grid[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR x[rip]
	cdqe
	add	rax, rdx
	mov	edx, 46
	mov	BYTE PTR [rax], dl
	jmp	.L1
.L4:
	nop
.L1:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	move, .-move
	.globl	right
	.type	right, @function
right:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR steps[rip]
	mov	edx, 615
	cmp	eax, edx
	jge	.L8
	mov	eax, DWORD PTR dir[rip]
	mov	edx, eax
	lea	rax, Right[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	mov	DWORD PTR dir[rip], eax
	mov	eax, DWORD PTR steps[rip]
	add	eax, 1
	mov	DWORD PTR steps[rip], eax
	jmp	.L5
.L8:
	nop
.L5:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	right, .-right
	.globl	left
	.type	left, @function
left:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR steps[rip]
	mov	edx, 615
	cmp	eax, edx
	jge	.L12
	mov	eax, DWORD PTR dir[rip]
	mov	edx, eax
	lea	rax, Left[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	mov	DWORD PTR dir[rip], eax
	mov	eax, DWORD PTR steps[rip]
	add	eax, 1
	mov	DWORD PTR steps[rip], eax
	jmp	.L9
.L12:
	nop
.L9:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	left, .-left
	.globl	food_ahead
	.type	food_ahead, @function
food_ahead:
.LFB3:
	.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, 8
	.cfi_offset 3, -24
	mov	eax, 0
	call	ahead_y
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, grid[rip]
	mov	rbx, QWORD PTR [rdx+rax]
	mov	eax, 0
	call	ahead_x
	cdqe
	add	rax, rbx
	movzx	eax, BYTE PTR [rax]
	mov	edx, 42
	cmp	al, dl
	jne	.L14
	mov	eax, 1
	jmp	.L16
.L14:
	mov	eax, 0
.L16:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	food_ahead, .-food_ahead
	.globl	show_scene
	.type	show_scene, @function
show_scene:
.LFB4:
	.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	DWORD PTR -4[rbp], 0
	jmp	.L18
.L23:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L19
.L22:
	mov	eax, DWORD PTR x[rip]
	cmp	DWORD PTR -8[rbp], eax
	jne	.L20
	mov	eax, DWORD PTR y[rip]
	cmp	DWORD PTR -4[rbp], eax
	jne	.L20
	mov	eax, DWORD PTR dir[rip]
	mov	edx, eax
	lea	rax, Avatar[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	jmp	.L21
.L20:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, grid[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
.L21:
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 1
.L19:
	mov	eax, 32
	cmp	DWORD PTR -8[rbp], eax
	jl	.L22
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -4[rbp], 1
.L18:
	mov	eax, 32
	cmp	DWORD PTR -4[rbp], eax
	jl	.L23
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	show_scene, .-show_scene
	.globl	ahead_x
	.type	ahead_x, @function
ahead_x:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR dir[rip]
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, DirX[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR x[rip]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L25
	mov	eax, 0
	jmp	.L26
.L25:
	mov	eax, 32
	cmp	DWORD PTR -4[rbp], eax
	jl	.L27
	mov	eax, 32
	sub	eax, 1
	jmp	.L26
.L27:
	mov	eax, DWORD PTR -4[rbp]
.L26:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	ahead_x, .-ahead_x
	.globl	ahead_y
	.type	ahead_y, @function
ahead_y:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR dir[rip]
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, DirY[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR y[rip]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L29
	mov	eax, 0
	jmp	.L30
.L29:
	mov	eax, 32
	cmp	DWORD PTR -4[rbp], eax
	jl	.L31
	mov	eax, 32
	sub	eax, 1
	jmp	.L30
.L31:
	mov	eax, DWORD PTR -4[rbp]
.L30:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	ahead_y, .-ahead_y
	.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	"742971.c"
	.text
	.global	TRUE
	.section	.rodata
	.align	2
	.type	TRUE, %object
	.size	TRUE, 4
TRUE:
	.word	1
	.global	FALSE
	.align	2
	.type	FALSE, %object
	.size	FALSE, 4
FALSE:
	.space	4
	.global	Food
	.type	Food, %object
	.size	Food, 1
Food:
	.byte	42
	.global	Empty
	.type	Empty, %object
	.size	Empty, 1
Empty:
	.byte	46
	.global	MaxSteps
	.align	2
	.type	MaxSteps, %object
	.size	MaxSteps, 4
MaxSteps:
	.word	615
	.global	Left
	.align	2
	.type	Left, %object
	.size	Left, 4
Left:
	.ascii	"\001\002\003\000"
	.global	Right
	.align	2
	.type	Right, %object
	.size	Right, 4
Right:
	.ascii	"\003\000\001\002"
	.global	DirX
	.align	2
	.type	DirX, %object
	.size	DirX, 16
DirX:
	.word	0
	.word	-1
	.word	0
	.word	1
	.global	DirY
	.align	2
	.type	DirY, %object
	.size	DirY, 16
DirY:
	.word	-1
	.word	0
	.word	1
	.word	0
	.global	Avatar
	.align	2
	.type	Avatar, %object
	.size	Avatar, 4
Avatar:
	.ascii	"^<v>"
	.global	grid
	.align	2
.LC0:
	.ascii	".***............................\000"
	.align	2
.LC1:
	.ascii	"...*............................\000"
	.align	2
.LC2:
	.ascii	"...*.....................***....\000"
	.align	2
.LC3:
	.ascii	"...*....................*....*..\000"
	.align	2
.LC4:
	.ascii	"...****.*****........**.........\000"
	.align	2
.LC5:
	.ascii	"............*................*..\000"
	.align	2
.LC6:
	.ascii	"............*.......*...........\000"
	.align	2
.LC7:
	.ascii	"............*.......*........*..\000"
	.align	2
.LC8:
	.ascii	"....................*...........\000"
	.align	2
.LC9:
	.ascii	"............*...................\000"
	.align	2
.LC10:
	.ascii	"............*.......*.....***...\000"
	.align	2
.LC11:
	.ascii	".................*.....*........\000"
	.align	2
.LC12:
	.ascii	"................................\000"
	.align	2
.LC13:
	.ascii	"............*...*.......*.......\000"
	.align	2
.LC14:
	.ascii	"............*...*..........*....\000"
	.align	2
.LC15:
	.ascii	"............*...*...............\000"
	.align	2
.LC16:
	.ascii	"............*.............*.....\000"
	.align	2
.LC17:
	.ascii	"............*..........*........\000"
	.align	2
.LC18:
	.ascii	"...**..*****....*...............\000"
	.align	2
.LC19:
	.ascii	".*..............*...............\000"
	.align	2
.LC20:
	.ascii	".*......*******.................\000"
	.align	2
.LC21:
	.ascii	".*.....*........................\000"
	.align	2
.LC22:
	.ascii	".......*........................\000"
	.align	2
.LC23:
	.ascii	"..****..........................\000"
	.data
	.align	2
	.type	grid, %object
	.size	grid, 128
grid:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC5
	.word	.LC6
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC9
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC12
	.global	GridHeight
	.section	.rodata
	.align	2
	.type	GridHeight, %object
	.size	GridHeight, 4
GridHeight:
	.word	32
	.global	GridWidth
	.align	2
	.type	GridWidth, %object
	.size	GridWidth, 4
GridWidth:
	.word	32
	.global	dir
	.data
	.align	2
	.type	dir, %object
	.size	dir, 4
dir:
	.word	3
	.global	x
	.bss
	.align	2
	.type	x, %object
	.size	x, 4
x:
	.space	4
	.global	y
	.align	2
	.type	y, %object
	.size	y, 4
y:
	.space	4
	.global	consumed_food
	.align	2
	.type	consumed_food, %object
	.size	consumed_food, 4
consumed_food:
	.space	4
	.global	steps
	.align	2
	.type	steps, %object
	.size	steps, 4
steps:
	.space	4
	.text
	.align	2
	.global	move
	.syntax unified
	.arm
	.fpu softvfp
	.type	move, %function
move:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L5
	ldr	r3, [r3]
	ldr	r2, .L5+4
	cmp	r3, r2
	bge	.L4
	bl	ahead_x
	mov	r3, r0
	ldr	r2, .L5+8
	str	r3, [r2]
	bl	ahead_y
	mov	r3, r0
	ldr	r2, .L5+12
	str	r3, [r2]
	ldr	r3, .L5
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L5
	str	r3, [r2]
	ldr	r3, .L5+12
	ldr	r3, [r3]
	ldr	r2, .L5+16
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L5+8
	ldr	r2, [r2]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, #42
	cmp	r3, r2
	popne	{fp, pc}
	ldr	r3, .L5+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L5+20
	str	r3, [r2]
	ldr	r3, .L5+12
	ldr	r3, [r3]
	ldr	r2, .L5+16
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L5+8
	ldr	r2, [r2]
	add	r3, r3, r2
	mov	r2, #46
	strb	r2, [r3]
	pop	{fp, pc}
.L4:
	nop
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	steps
	.word	615
	.word	x
	.word	y
	.word	grid
	.word	consumed_food
	.size	move, .-move
	.align	2
	.global	right
	.syntax unified
	.arm
	.fpu softvfp
	.type	right, %function
right:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L11
	ldr	r3, [r3]
	ldr	r2, .L11+4
	cmp	r3, r2
	bge	.L10
	ldr	r3, .L11+8
	ldr	r3, [r3]
	ldr	r2, .L11+12
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L11+8
	str	r2, [r3]
	ldr	r3, .L11
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L11
	str	r3, [r2]
	b	.L7
.L10:
	nop
.L7:
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L12:
	.align	2
.L11:
	.word	steps
	.word	615
	.word	dir
	.word	Right
	.size	right, .-right
	.align	2
	.global	left
	.syntax unified
	.arm
	.fpu softvfp
	.type	left, %function
left:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L17
	ldr	r3, [r3]
	ldr	r2, .L17+4
	cmp	r3, r2
	bge	.L16
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ldr	r2, .L17+12
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L17+8
	str	r2, [r3]
	ldr	r3, .L17
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L17
	str	r3, [r2]
	b	.L13
.L16:
	nop
.L13:
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L18:
	.align	2
.L17:
	.word	steps
	.word	615
	.word	dir
	.word	Left
	.size	left, .-left
	.align	2
	.global	food_ahead
	.syntax unified
	.arm
	.fpu softvfp
	.type	food_ahead, %function
food_ahead:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	bl	ahead_y
	mov	r3, r0
	ldr	r2, .L23
	ldr	r4, [r2, r3, lsl #2]
	bl	ahead_x
	mov	r3, r0
	add	r3, r4, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, #42
	cmp	r3, r2
	bne	.L20
	mov	r3, #1
	b	.L22
.L20:
	mov	r3, #0
.L22:
	mov	r0, r3
	pop	{r4, r5, fp, pc}
.L24:
	.align	2
.L23:
	.word	grid
	.size	food_ahead, .-food_ahead
	.align	2
	.global	show_scene
	.syntax unified
	.arm
	.fpu softvfp
	.type	show_scene, %function
show_scene:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L26
.L31:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L27
.L30:
	ldr	r3, .L32
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L28
	ldr	r3, .L32+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L28
	ldr	r3, .L32+8
	ldr	r3, [r3]
	ldr	r2, .L32+12
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	b	.L29
.L28:
	ldr	r2, .L32+16
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
.L29:
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L27:
	mov	r2, #32
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	blt	.L30
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L26:
	mov	r2, #32
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	blt	.L31
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	x
	.word	y
	.word	dir
	.word	Avatar
	.word	grid
	.size	show_scene, .-show_scene
	.align	2
	.global	ahead_x
	.syntax unified
	.arm
	.fpu softvfp
	.type	ahead_x, %function
ahead_x:
	@ 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
	ldr	r3, .L38
	ldr	r3, [r3]
	ldr	r2, .L38+4
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L38+8
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L35
	mov	r3, #0
	b	.L36
.L35:
	mov	r2, #32
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	blt	.L37
	mov	r3, #32
	sub	r3, r3, #1
	b	.L36
.L37:
	ldr	r3, [fp, #-8]
.L36:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L39:
	.align	2
.L38:
	.word	dir
	.word	DirX
	.word	x
	.size	ahead_x, .-ahead_x
	.align	2
	.global	ahead_y
	.syntax unified
	.arm
	.fpu softvfp
	.type	ahead_y, %function
ahead_y:
	@ 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
	ldr	r3, .L44
	ldr	r3, [r3]
	ldr	r2, .L44+4
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L44+8
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L41
	mov	r3, #0
	b	.L42
.L41:
	mov	r2, #32
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	blt	.L43
	mov	r3, #32
	sub	r3, r3, #1
	b	.L42
.L43:
	ldr	r3, [fp, #-8]
.L42:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L45:
	.align	2
.L44:
	.word	dir
	.word	DirY
	.word	y
	.size	ahead_y, .-ahead_y
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
