	.file	"936445.c"
	.intel_syntax noprefix
	.text
	.globl	gamestate
	.bss
	.align 4
	.type	gamestate, @object
	.size	gamestate, 4
gamestate:
	.zero	4
	.globl	cvals
	.align 32
	.type	cvals, @object
	.size	cvals, 36
cvals:
	.zero	36
	.globl	display
	.align 8
	.type	display, @object
	.size	display, 8
display:
	.zero	8
	.globl	screen
	.align 4
	.type	screen, @object
	.size	screen, 4
screen:
	.zero	4
	.local	pname
	.comm	pname,8,8
	.globl	empty
	.align 8
	.type	empty, @object
	.size	empty, 8
empty:
	.zero	8
	.globl	wall
	.align 8
	.type	wall, @object
	.size	wall, 8
wall:
	.zero	8
	.globl	pill
	.align 8
	.type	pill, @object
	.size	pill, 8
pill:
	.zero	8
	.globl	pacmanu2
	.align 8
	.type	pacmanu2, @object
	.size	pacmanu2, 8
pacmanu2:
	.zero	8
	.globl	pacmanu1
	.align 8
	.type	pacmanu1, @object
	.size	pacmanu1, 8
pacmanu1:
	.zero	8
	.globl	pacmanu0
	.align 8
	.type	pacmanu0, @object
	.size	pacmanu0, 8
pacmanu0:
	.zero	8
	.globl	pacmanr2
	.align 8
	.type	pacmanr2, @object
	.size	pacmanr2, 8
pacmanr2:
	.zero	8
	.globl	pacmanr1
	.align 8
	.type	pacmanr1, @object
	.size	pacmanr1, 8
pacmanr1:
	.zero	8
	.globl	pacmanr0
	.align 8
	.type	pacmanr0, @object
	.size	pacmanr0, 8
pacmanr0:
	.zero	8
	.globl	pacmand2
	.align 8
	.type	pacmand2, @object
	.size	pacmand2, 8
pacmand2:
	.zero	8
	.globl	pacmand1
	.align 8
	.type	pacmand1, @object
	.size	pacmand1, 8
pacmand1:
	.zero	8
	.globl	pacmand0
	.align 8
	.type	pacmand0, @object
	.size	pacmand0, 8
pacmand0:
	.zero	8
	.globl	pacmanl2
	.align 8
	.type	pacmanl2, @object
	.size	pacmanl2, 8
pacmanl2:
	.zero	8
	.globl	pacmanl1
	.align 8
	.type	pacmanl1, @object
	.size	pacmanl1, 8
pacmanl1:
	.zero	8
	.globl	pacmanl0
	.align 8
	.type	pacmanl0, @object
	.size	pacmanl0, 8
pacmanl0:
	.zero	8
	.globl	ghostr
	.align 8
	.type	ghostr, @object
	.size	ghostr, 8
ghostr:
	.zero	8
	.globl	ghostw
	.align 8
	.type	ghostw, @object
	.size	ghostw, 8
ghostw:
	.zero	8
	.globl	ghostb
	.align 8
	.type	ghostb, @object
	.size	ghostb, 8
ghostb:
	.zero	8
	.globl	ghostg
	.align 8
	.type	ghostg, @object
	.size	ghostg, 8
ghostg:
	.zero	8
	.globl	ghostgy
	.align 8
	.type	ghostgy, @object
	.size	ghostgy, 8
ghostgy:
	.zero	8
	.globl	eatpill
	.align 8
	.type	eatpill, @object
	.size	eatpill, 8
eatpill:
	.zero	8
	.globl	emptyd
	.align 8
	.type	emptyd, @object
	.size	emptyd, 8
emptyd:
	.zero	8
	.globl	walld
	.align 8
	.type	walld, @object
	.size	walld, 8
walld:
	.zero	8
	.globl	pilld
	.align 8
	.type	pilld, @object
	.size	pilld, 8
pilld:
	.zero	8
	.globl	pacmanu2d
	.align 8
	.type	pacmanu2d, @object
	.size	pacmanu2d, 8
pacmanu2d:
	.zero	8
	.globl	pacmanu1d
	.align 8
	.type	pacmanu1d, @object
	.size	pacmanu1d, 8
pacmanu1d:
	.zero	8
	.globl	pacmanu0d
	.align 8
	.type	pacmanu0d, @object
	.size	pacmanu0d, 8
pacmanu0d:
	.zero	8
	.globl	pacmanr2d
	.align 8
	.type	pacmanr2d, @object
	.size	pacmanr2d, 8
pacmanr2d:
	.zero	8
	.globl	pacmanr1d
	.align 8
	.type	pacmanr1d, @object
	.size	pacmanr1d, 8
pacmanr1d:
	.zero	8
	.globl	pacmanr0d
	.align 8
	.type	pacmanr0d, @object
	.size	pacmanr0d, 8
pacmanr0d:
	.zero	8
	.globl	pacmand2d
	.align 8
	.type	pacmand2d, @object
	.size	pacmand2d, 8
pacmand2d:
	.zero	8
	.globl	pacmand1d
	.align 8
	.type	pacmand1d, @object
	.size	pacmand1d, 8
pacmand1d:
	.zero	8
	.globl	pacmand0d
	.align 8
	.type	pacmand0d, @object
	.size	pacmand0d, 8
pacmand0d:
	.zero	8
	.globl	pacmanl2d
	.align 8
	.type	pacmanl2d, @object
	.size	pacmanl2d, 8
pacmanl2d:
	.zero	8
	.globl	pacmanl1d
	.align 8
	.type	pacmanl1d, @object
	.size	pacmanl1d, 8
pacmanl1d:
	.zero	8
	.globl	pacmanl0d
	.align 8
	.type	pacmanl0d, @object
	.size	pacmanl0d, 8
pacmanl0d:
	.zero	8
	.globl	ghostrd
	.align 8
	.type	ghostrd, @object
	.size	ghostrd, 8
ghostrd:
	.zero	8
	.globl	ghostwd
	.align 8
	.type	ghostwd, @object
	.size	ghostwd, 8
ghostwd:
	.zero	8
	.globl	ghostbd
	.align 8
	.type	ghostbd, @object
	.size	ghostbd, 8
ghostbd:
	.zero	8
	.globl	ghostgd
	.align 8
	.type	ghostgd, @object
	.size	ghostgd, 8
ghostgd:
	.zero	8
	.globl	ghostgyd
	.align 8
	.type	ghostgyd, @object
	.size	ghostgyd, 8
ghostgyd:
	.zero	8
	.globl	eatpilld
	.align 8
	.type	eatpilld, @object
	.size	eatpilld, 8
eatpilld:
	.zero	8
	.globl	map
	.align 8
	.type	map, @object
	.size	map, 8
map:
	.zero	8
	.globl	dmap
	.align 8
	.type	dmap, @object
	.size	dmap, 8
dmap:
	.zero	8
	.globl	cdmap
	.align 4
	.type	cdmap, @object
	.size	cdmap, 4
cdmap:
	.zero	4
	.globl	depth
	.align 4
	.type	depth, @object
	.size	depth, 4
depth:
	.zero	4
	.globl	width
	.data
	.align 4
	.type	width, @object
	.size	width, 4
width:
	.long	33
	.globl	height
	.align 4
	.type	height, @object
	.size	height, 4
height:
	.long	33
	.globl	difficulty
	.bss
	.align 4
	.type	difficulty, @object
	.size	difficulty, 4
difficulty:
	.zero	4
	.globl	randseed
	.data
	.align 4
	.type	randseed, @object
	.size	randseed, 4
randseed:
	.long	5755585
	.globl	pillnum
	.bss
	.align 4
	.type	pillnum, @object
	.size	pillnum, 4
pillnum:
	.zero	4
	.globl	pacpos
	.align 8
	.type	pacpos, @object
	.size	pacpos, 8
pacpos:
	.zero	8
	.globl	oldpacpos
	.align 8
	.type	oldpacpos, @object
	.size	oldpacpos, 8
oldpacpos:
	.zero	8
	.globl	pacdir
	.align 4
	.type	pacdir, @object
	.size	pacdir, 4
pacdir:
	.zero	4
	.globl	newdir
	.align 4
	.type	newdir, @object
	.size	newdir, 4
newdir:
	.zero	4
	.globl	ghosts
	.align 32
	.type	ghosts, @object
	.size	ghosts, 2048
ghosts:
	.zero	2048
	.globl	ghostnum
	.data
	.align 4
	.type	ghostnum, @object
	.size	ghostnum, 4
ghostnum:
	.long	4
	.globl	cghostnum
	.bss
	.align 4
	.type	cghostnum, @object
	.size	cghostnum, 4
cghostnum:
	.zero	4
	.globl	ecount
	.align 4
	.type	ecount, @object
	.size	ecount, 4
ecount:
	.zero	4
	.section	.rodata
.LC0:
	.string	"width"
.LC1:
	.string	"height"
.LC2:
	.string	"leftkey"
.LC3:
	.string	"rightkey"
.LC4:
	.string	"upkey"
.LC5:
	.string	"downkey"
.LC6:
	.string	"quitkey"
.LC7:
	.string	"level"
.LC8:
	.string	"framerate"
.LC9:
	.string	"%[A-Za-z]"
.LC10:
	.string	"-%*[A-Za-z]%d"
.LC11:
	.string	"%d"
.LC12:
	.string	"No value found for option %s\n"
.LC13:
	.string	"%s"
	.align 8
.LC14:
	.string	"No string found for option %s\n"
.LC15:
	.string	"%c"
	.align 8
.LC16:
	.string	"No character found for option %s\n"
.LC17:
	.string	"Option %s not recognised.\n "
.LC18:
	.string	"Usage: %s "
.LC19:
	.string	"[-%s "
.LC20:
	.string	"<number>] "
.LC21:
	.string	"<string>] "
.LC22:
	.string	"] "
.LC23:
	.string	"<character>] "
.LC24:
	.string	"xpac 0.12"
	.align 8
.LC25:
	.string	"xpac 0.12\nUse %c up %c down %c left %c right %c quit \n"
	.align 8
.LC26:
	.string	"%s: can't connect to X server %s.\n"
	.align 8
.LC27:
	.string	"%s: structure window_title_property can't be allocated.\n"
.LC28:
	.string	"Snake"
	.align 8
.LC29:
	.string	"%s: Problem with gettimeofday()!\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, 832
	mov	DWORD PTR -820[rbp], edi
	mov	QWORD PTR -832[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -788[rbp], 4
	mov	QWORD PTR -720[rbp], 0
	mov	DWORD PTR -784[rbp], 20
	mov	BYTE PTR -813[rbp], 119
	mov	BYTE PTR -812[rbp], 97
	mov	BYTE PTR -811[rbp], 115
	mov	BYTE PTR -810[rbp], 100
	mov	BYTE PTR -809[rbp], 113
	mov	DWORD PTR -808[rbp], 15
	lea	rax, .LC0[rip]
	mov	QWORD PTR -416[rbp], rax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -408[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -400[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -392[rbp], rax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -384[rbp], rax
	lea	rax, .LC5[rip]
	mov	QWORD PTR -376[rbp], rax
	lea	rax, .LC6[rip]
	mov	QWORD PTR -368[rbp], rax
	lea	rax, .LC7[rip]
	mov	QWORD PTR -360[rbp], rax
	lea	rax, .LC8[rip]
	mov	QWORD PTR -352[rbp], rax
	mov	DWORD PTR -464[rbp], 0
	mov	DWORD PTR -460[rbp], 0
	mov	DWORD PTR -456[rbp], 3
	mov	DWORD PTR -452[rbp], 3
	mov	DWORD PTR -448[rbp], 3
	mov	DWORD PTR -444[rbp], 3
	mov	DWORD PTR -440[rbp], 3
	mov	DWORD PTR -436[rbp], 0
	mov	DWORD PTR -432[rbp], 0
	mov	DWORD PTR -792[rbp], 0
	lea	rax, width[rip]
	mov	QWORD PTR -336[rbp], rax
	lea	rax, height[rip]
	mov	QWORD PTR -328[rbp], rax
	lea	rax, -810[rbp]
	mov	QWORD PTR -312[rbp], rax
	lea	rax, -812[rbp]
	mov	QWORD PTR -320[rbp], rax
	lea	rax, -813[rbp]
	mov	QWORD PTR -304[rbp], rax
	lea	rax, -811[rbp]
	mov	QWORD PTR -296[rbp], rax
	lea	rax, -809[rbp]
	mov	QWORD PTR -288[rbp], rax
	lea	rax, difficulty[rip]
	mov	QWORD PTR -280[rbp], rax
	lea	rax, -808[rbp]
	mov	QWORD PTR -272[rbp], rax
	mov	rax, QWORD PTR -832[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR pname[rip], rax
	mov	DWORD PTR -796[rbp], 1
	jmp	.L2
.L20:
	mov	DWORD PTR -800[rbp], 0
	mov	eax, DWORD PTR -796[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -832[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rcx, 1[rax]
	lea	rax, -32[rbp]
	mov	rdx, rax
	lea	rsi, .LC9[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -804[rbp], 0
	jmp	.L3
.L18:
	mov	eax, DWORD PTR -804[rbp]
	cdqe
	mov	rax, QWORD PTR -416[rbp+rax*8]
	lea	rdx, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L55
	mov	DWORD PTR -800[rbp], 1
	mov	eax, DWORD PTR -804[rbp]
	cdqe
	mov	eax, DWORD PTR -464[rbp+rax*4]
	cmp	eax, 3
	je	.L5
	cmp	eax, 3
	ja	.L4
	cmp	eax, 2
	je	.L6
	cmp	eax, 2
	ja	.L4
	test	eax, eax
	je	.L7
	cmp	eax, 1
	je	.L8
	jmp	.L4
.L7:
	mov	eax, DWORD PTR -804[rbp]
	cdqe
	mov	rdx, QWORD PTR -336[rbp+rax*8]
	mov	eax, DWORD PTR -796[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -832[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, -1
	jne	.L56
	mov	eax, DWORD PTR -796[rbp]
	add	eax, 1
	cmp	DWORD PTR -820[rbp], eax
	jle	.L10
	mov	eax, DWORD PTR -804[rbp]
	cdqe
	mov	rdx, QWORD PTR -336[rbp+rax*8]
	mov	eax, DWORD PTR -796[rbp]
	cdqe
	add	rax, 1
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -832[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, -1
	je	.L11
	add	DWORD PTR -796[rbp], 1
	jmp	.L56
.L11:
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L56
.L10:
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L56
.L8:
	mov	eax, DWORD PTR -796[rbp]
	add	eax, 1
	cmp	DWORD PTR -820[rbp], eax
	jle	.L12
	mov	eax, DWORD PTR -804[rbp]
	cdqe
	mov	rdx, QWORD PTR -336[rbp+rax*8]
	mov	eax, DWORD PTR -796[rbp]
	cdqe
	add	rax, 1
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -832[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, -1
	je	.L13
	add	DWORD PTR -796[rbp], 1
	jmp	.L4
.L13:
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L12:
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -804[rbp]
	cdqe
	mov	rax, QWORD PTR -336[rbp+rax*8]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	sete	dl
	mov	eax, DWORD PTR -804[rbp]
	cdqe
	mov	rax, QWORD PTR -336[rbp+rax*8]
	movzx	edx, dl
	mov	DWORD PTR [rax], edx
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -796[rbp]
	add	eax, 1
	cmp	DWORD PTR -820[rbp], eax
	jle	.L15
	mov	eax, DWORD PTR -804[rbp]
	cdqe
	mov	rdx, QWORD PTR -336[rbp+rax*8]
	mov	eax, DWORD PTR -796[rbp]
	cdqe
	add	rax, 1
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -832[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, -1
	je	.L16
	add	DWORD PTR -796[rbp], 1
	jmp	.L4
.L16:
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L15:
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L55:
	nop
	jmp	.L4
.L56:
	nop
.L4:
	add	DWORD PTR -804[rbp], 1
.L3:
	cmp	DWORD PTR -804[rbp], 8
	jle	.L18
	cmp	DWORD PTR -800[rbp], 0
	jne	.L19
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -792[rbp], 1
.L19:
	add	DWORD PTR -796[rbp], 1
.L2:
	mov	eax, DWORD PTR -796[rbp]
	cmp	eax, DWORD PTR -820[rbp]
	jl	.L20
	cmp	DWORD PTR -792[rbp], 0
	je	.L21
	mov	rax, QWORD PTR pname[rip]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -804[rbp], 0
	jmp	.L22
.L28:
	mov	eax, DWORD PTR -804[rbp]
	cdqe
	mov	rax, QWORD PTR -416[rbp+rax*8]
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -804[rbp]
	cdqe
	mov	eax, DWORD PTR -464[rbp+rax*4]
	cmp	eax, 3
	je	.L23
	cmp	eax, 3
	ja	.L24
	cmp	eax, 2
	je	.L25
	cmp	eax, 2
	ja	.L24
	test	eax, eax
	je	.L26
	cmp	eax, 1
	je	.L27
	jmp	.L24
.L26:
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L24
.L27:
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L24
.L25:
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L24
.L23:
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L24:
	add	DWORD PTR -804[rbp], 1
.L22:
	cmp	DWORD PTR -804[rbp], 8
	jle	.L28
	mov	edi, 10
	call	putchar@PLT
.L21:
	mov	ecx, DWORD PTR -808[rbp]
	mov	eax, 1000
	cdq
	idiv	ecx
	mov	DWORD PTR -780[rbp], eax
	mov	edi, 256
	call	malloc@PLT
	mov	QWORD PTR -752[rbp], rax
	mov	rax, QWORD PTR -752[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	movzx	eax, BYTE PTR -809[rbp]
	movsx	edi, al
	movzx	eax, BYTE PTR -812[rbp]
	movsx	esi, al
	movzx	eax, BYTE PTR -810[rbp]
	movsx	ecx, al
	movzx	eax, BYTE PTR -811[rbp]
	movsx	edx, al
	movzx	eax, BYTE PTR -813[rbp]
	movsx	eax, al
	mov	r9d, edi
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -720[rbp]
	mov	rdi, rax
	call	XOpenDisplay@PLT
	mov	QWORD PTR display[rip], rax
	mov	rax, QWORD PTR display[rip]
	test	rax, rax
	jne	.L29
	mov	rdx, QWORD PTR pname[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -720[rbp]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L29:
	mov	rax, QWORD PTR display[rip]
	mov	eax, DWORD PTR 224[rax]
	mov	DWORD PTR screen[rip], eax
	mov	rax, QWORD PTR display[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR screen[rip]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	eax, DWORD PTR 56[rax]
	mov	DWORD PTR depth[rip], eax
	mov	DWORD PTR -776[rbp], 0
	mov	DWORD PTR -772[rbp], 0
	mov	eax, DWORD PTR width[rip]
	sal	eax, 4
	mov	DWORD PTR -768[rbp], eax
	mov	eax, DWORD PTR height[rip]
	sal	eax, 4
	mov	DWORD PTR -764[rbp], eax
	mov	rax, QWORD PTR display[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR screen[rip]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	r9, QWORD PTR 64[rax]
	mov	r8d, DWORD PTR depth[rip]
	mov	edi, DWORD PTR -788[rbp]
	mov	r11d, DWORD PTR -764[rbp]
	mov	r10d, DWORD PTR -768[rbp]
	mov	rax, QWORD PTR display[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR screen[rip]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rsi, QWORD PTR 16[rax]
	mov	rax, QWORD PTR display[rip]
	mov	ecx, DWORD PTR -772[rbp]
	mov	edx, DWORD PTR -776[rbp]
	push	0
	push	0
	push	r9
	push	1
	push	r8
	push	rdi
	mov	r9d, r11d
	mov	r8d, r10d
	mov	rdi, rax
	call	XCreateWindow@PLT
	add	rsp, 48
	mov	QWORD PTR -712[rbp], rax
	mov	QWORD PTR -544[rbp], 60
	mov	eax, DWORD PTR -768[rbp]
	mov	DWORD PTR -520[rbp], eax
	mov	eax, DWORD PTR -764[rbp]
	mov	DWORD PTR -516[rbp], eax
	mov	eax, DWORD PTR -768[rbp]
	mov	DWORD PTR -512[rbp], eax
	mov	eax, DWORD PTR -764[rbp]
	mov	DWORD PTR -508[rbp], eax
	lea	rdx, -640[rbp]
	lea	rax, -752[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	XStringListToTextProperty@PLT
	test	eax, eax
	jne	.L30
	mov	rdx, QWORD PTR pname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L30:
	mov	DWORD PTR -596[rbp], 1
	mov	DWORD PTR -600[rbp], 1
	mov	QWORD PTR -608[rbp], 3
	mov	rax, QWORD PTR pname[rip]
	mov	QWORD PTR -704[rbp], rax
	lea	rax, .LC28[rip]
	mov	QWORD PTR -696[rbp], rax
	mov	rax, QWORD PTR display[rip]
	mov	r8d, DWORD PTR -820[rbp]
	mov	rdi, QWORD PTR -832[rbp]
	lea	rdx, -640[rbp]
	mov	rsi, QWORD PTR -712[rbp]
	sub	rsp, 8
	lea	rcx, -704[rbp]
	push	rcx
	lea	rcx, -608[rbp]
	push	rcx
	lea	rcx, -544[rbp]
	push	rcx
	mov	r9d, r8d
	mov	r8, rdi
	mov	ecx, 0
	mov	rdi, rax
	call	XSetWMProperties@PLT
	add	rsp, 32
	mov	rax, QWORD PTR display[rip]
	mov	rcx, QWORD PTR -712[rbp]
	mov	edx, 2260993
	mov	rsi, rcx
	mov	rdi, rax
	call	XSelectInput@PLT
	lea	rax, -736[rbp]
	mov	rdi, rax
	call	ld_font
	mov	rdx, QWORD PTR -736[rbp]
	lea	rcx, -744[rbp]
	mov	rax, QWORD PTR -712[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getGC
	mov	rax, QWORD PTR display[rip]
	mov	rdx, QWORD PTR -712[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XMapWindow@PLT
	mov	rax, QWORD PTR -712[rbp]
	mov	rdi, rax
	call	make_image
	mov	DWORD PTR gamestate[rip], 11
	call	init_game
.L53:
	lea	rax, -656[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	test	eax, eax
	je	.L31
	mov	rdx, QWORD PTR pname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L31:
	mov	rax, QWORD PTR -656[rbp]
	imul	esi, eax, 1000
	mov	rcx, QWORD PTR -648[rbp]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	add	eax, esi
	mov	DWORD PTR -760[rbp], eax
	mov	eax, DWORD PTR gamestate[rip]
	and	eax, 8
	test	eax, eax
	je	.L32
	call	setup_maze
	call	setup_game
	mov	eax, DWORD PTR gamestate[rip]
	and	eax, -9
	mov	DWORD PTR gamestate[rip], eax
	call	reset_display_map
	mov	rdx, QWORD PTR -744[rbp]
	mov	rax, QWORD PTR -712[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	update_image_from_map
.L32:
	mov	eax, DWORD PTR gamestate[rip]
	and	eax, 4
	test	eax, eax
	je	.L33
	call	setup_game
	mov	eax, DWORD PTR gamestate[rip]
	and	eax, -5
	mov	DWORD PTR gamestate[rip], eax
	call	reset_display_map
	mov	rdx, QWORD PTR -744[rbp]
	mov	rax, QWORD PTR -712[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	update_image_from_map
.L33:
	mov	eax, DWORD PTR gamestate[rip]
	and	eax, 2
	test	eax, eax
	jne	.L36
	mov	eax, DWORD PTR gamestate[rip]
	and	eax, 1
	test	eax, eax
	je	.L36
	mov	eax, DWORD PTR gamestate[rip]
	and	eax, 32
	test	eax, eax
	je	.L35
	mov	rdx, QWORD PTR -744[rbp]
	mov	rax, QWORD PTR -712[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	update_image_eat
	call	update_game_eat
	mov	eax, DWORD PTR ecount[rip]
	sub	eax, 1
	mov	DWORD PTR ecount[rip], eax
	mov	eax, DWORD PTR ecount[rip]
	test	eax, eax
	jg	.L36
	mov	eax, DWORD PTR gamestate[rip]
	and	eax, -33
	mov	DWORD PTR gamestate[rip], eax
	jmp	.L36
.L35:
	mov	rdx, QWORD PTR -744[rbp]
	mov	rax, QWORD PTR -712[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	update_image
	call	update_game
	jmp	.L36
.L50:
	mov	eax, DWORD PTR -256[rbp]
	cmp	eax, 22
	ja	.L57
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L39[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L39[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L39:
	.long	.L57-.L39
	.long	.L57-.L39
	.long	.L43-.L39
	.long	.L57-.L39
	.long	.L57-.L39
	.long	.L57-.L39
	.long	.L57-.L39
	.long	.L57-.L39
	.long	.L57-.L39
	.long	.L42-.L39
	.long	.L41-.L39
	.long	.L57-.L39
	.long	.L40-.L39
	.long	.L57-.L39
	.long	.L57-.L39
	.long	.L57-.L39
	.long	.L57-.L39
	.long	.L57-.L39
	.long	.L57-.L39
	.long	.L57-.L39
	.long	.L57-.L39
	.long	.L57-.L39
	.long	.L36-.L39
	.text
.L40:
	mov	eax, DWORD PTR -200[rbp]
	test	eax, eax
	je	.L44
	jmp	.L36
.L44:
	call	reset_display_map
	mov	rdx, QWORD PTR -744[rbp]
	mov	rax, QWORD PTR -712[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	update_image_from_map
	mov	rdx, QWORD PTR -744[rbp]
	mov	rax, QWORD PTR -712[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	update_image
	jmp	.L36
.L43:
	lea	rdi, -688[rbp]
	lea	rcx, -728[rbp]
	mov	edx, DWORD PTR -784[rbp]
	lea	rsi, -64[rbp]
	lea	rax, -256[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	XLookupString@PLT
	movzx	eax, BYTE PTR -64[rbp]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	movzx	edx, BYTE PTR -813[rbp]
	movsx	edx, dl
	cmp	eax, edx
	jne	.L45
	mov	DWORD PTR newdir[rip], 0
.L45:
	movzx	eax, BYTE PTR -64[rbp]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	movzx	edx, BYTE PTR -812[rbp]
	movsx	edx, dl
	cmp	eax, edx
	jne	.L46
	mov	DWORD PTR newdir[rip], 1
.L46:
	movzx	eax, BYTE PTR -64[rbp]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	movzx	edx, BYTE PTR -811[rbp]
	movsx	edx, dl
	cmp	eax, edx
	jne	.L47
	mov	DWORD PTR newdir[rip], 2
.L47:
	movzx	eax, BYTE PTR -64[rbp]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	movzx	edx, BYTE PTR -810[rbp]
	movsx	edx, dl
	cmp	eax, edx
	jne	.L48
	mov	DWORD PTR newdir[rip], 3
.L48:
	movzx	eax, BYTE PTR -64[rbp]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	movzx	edx, BYTE PTR -809[rbp]
	movsx	edx, dl
	cmp	eax, edx
	jne	.L36
	call	free_memory
	mov	rax, QWORD PTR -736[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR display[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	XUnloadFont@PLT
	mov	rdx, QWORD PTR -744[rbp]
	mov	rax, QWORD PTR display[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	XFreeGC@PLT
	mov	rax, QWORD PTR display[rip]
	mov	rdi, rax
	call	XCloseDisplay@PLT
	mov	edi, 1
	call	exit@PLT
.L42:
	mov	eax, DWORD PTR gamestate[rip]
	and	eax, -3
	mov	DWORD PTR gamestate[rip], eax
	jmp	.L36
.L41:
	mov	eax, DWORD PTR gamestate[rip]
	or	eax, 2
	mov	DWORD PTR gamestate[rip], eax
	jmp	.L36
.L57:
	nop
.L36:
	mov	rax, QWORD PTR display[rip]
	lea	rdx, -256[rbp]
	mov	esi, 2260993
	mov	rdi, rax
	call	XCheckMaskEvent@PLT
	test	eax, eax
	jne	.L50
	lea	rax, -672[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	test	eax, eax
	je	.L51
	mov	rdx, QWORD PTR pname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L51:
	mov	rax, QWORD PTR -672[rbp]
	imul	esi, eax, 1000
	mov	rcx, QWORD PTR -664[rbp]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	add	eax, esi
	mov	DWORD PTR -756[rbp], eax
	mov	edx, DWORD PTR -760[rbp]
	mov	eax, DWORD PTR -780[rbp]
	add	eax, edx
	cmp	DWORD PTR -756[rbp], eax
	jl	.L36
	jmp	.L53
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC30:
	.string	"9x15"
.LC31:
	.string	"%s: cannot open font '9x15'.\n"
	.text
	.globl	ld_font
	.type	ld_font, @function
ld_font:
.LFB7:
	.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	QWORD PTR -24[rbp], rdi
	lea	rax, .LC30[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR display[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XLoadQueryFont@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L60
	mov	rdx, QWORD PTR pname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L60:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	ld_font, .-ld_font
	.globl	getGC
	.type	getGC, @function
getGC:
.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, 208
	mov	QWORD PTR -184[rbp], rdi
	mov	QWORD PTR -192[rbp], rsi
	mov	QWORD PTR -200[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -152[rbp], 0
	mov	DWORD PTR -176[rbp], 1
	mov	DWORD PTR -172[rbp], 0
	mov	DWORD PTR -168[rbp], 2
	mov	DWORD PTR -164[rbp], 1
	mov	DWORD PTR -160[rbp], 0
	mov	DWORD PTR -156[rbp], 2
	mov	rax, QWORD PTR display[rip]
	lea	rcx, -144[rbp]
	mov	rdx, QWORD PTR -152[rbp]
	mov	rsi, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	XCreateGC@PLT
	mov	rdx, QWORD PTR -192[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -200[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -192[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR display[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	XSetFont@PLT
	mov	rax, QWORD PTR display[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR screen[rip]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rdx, QWORD PTR 96[rax]
	mov	rax, QWORD PTR -192[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR display[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	XSetForeground@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR display[rip]
	mov	r8d, DWORD PTR -164[rbp]
	mov	edi, DWORD PTR -168[rbp]
	mov	ecx, DWORD PTR -172[rbp]
	mov	edx, DWORD PTR -176[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	rdi, rax
	call	XSetLineAttributes@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR display[rip]
	mov	ecx, DWORD PTR -156[rbp]
	mov	edx, DWORD PTR -160[rbp]
	mov	r8d, ecx
	lea	rcx, dash_list.0[rip]
	mov	rdi, rax
	call	XSetDashes@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L62
	call	__stack_chk_fail@PLT
.L62:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	getGC, .-getGC
	.section	.rodata
.LC32:
	.string	"black"
.LC33:
	.string	"white"
.LC34:
	.string	"red"
.LC35:
	.string	"green"
.LC36:
	.string	"slate blue"
.LC37:
	.string	"blue"
.LC38:
	.string	"sky blue"
.LC39:
	.string	"yellow"
.LC40:
	.string	"grey"
	.text
	.globl	make_image
	.type	make_image, @function
make_image:
.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, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR display[rip]
	lea	rdx, -144[rbp]
	mov	rcx, QWORD PTR -184[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XGetWindowAttributes@PLT
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR emptyd[rip], rax
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR walld[rip], rax
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR pilld[rip], rax
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR pacmanu2d[rip], rax
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR pacmanu1d[rip], rax
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR pacmanu0d[rip], rax
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR pacmanr2d[rip], rax
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR pacmanr1d[rip], rax
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR pacmanr0d[rip], rax
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR pacmand2d[rip], rax
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR pacmand1d[rip], rax
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR pacmand0d[rip], rax
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR pacmanl2d[rip], rax
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR pacmanl1d[rip], rax
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR pacmanl0d[rip], rax
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR ghostrd[rip], rax
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR ghostwd[rip], rax
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR ghostbd[rip], rax
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR ghostgd[rip], rax
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR ghostgyd[rip], rax
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR eatpilld[rip], rax
	mov	rdx, QWORD PTR emptyd[rip]
	mov	eax, DWORD PTR depth[rip]
	mov	edi, eax
	mov	rsi, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR display[rip]
	push	0
	push	8
	push	16
	push	16
	mov	r9, rdx
	mov	r8d, 0
	mov	ecx, 2
	mov	edx, edi
	mov	rdi, rax
	call	XCreateImage@PLT
	add	rsp, 32
	mov	QWORD PTR empty[rip], rax
	mov	rdx, QWORD PTR walld[rip]
	mov	eax, DWORD PTR depth[rip]
	mov	edi, eax
	mov	rsi, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR display[rip]
	push	0
	push	8
	push	16
	push	16
	mov	r9, rdx
	mov	r8d, 0
	mov	ecx, 2
	mov	edx, edi
	mov	rdi, rax
	call	XCreateImage@PLT
	add	rsp, 32
	mov	QWORD PTR wall[rip], rax
	mov	rdx, QWORD PTR pilld[rip]
	mov	eax, DWORD PTR depth[rip]
	mov	edi, eax
	mov	rsi, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR display[rip]
	push	0
	push	8
	push	16
	push	16
	mov	r9, rdx
	mov	r8d, 0
	mov	ecx, 2
	mov	edx, edi
	mov	rdi, rax
	call	XCreateImage@PLT
	add	rsp, 32
	mov	QWORD PTR pill[rip], rax
	mov	rdx, QWORD PTR pacmanu2d[rip]
	mov	eax, DWORD PTR depth[rip]
	mov	edi, eax
	mov	rsi, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR display[rip]
	push	0
	push	8
	push	16
	push	16
	mov	r9, rdx
	mov	r8d, 0
	mov	ecx, 2
	mov	edx, edi
	mov	rdi, rax
	call	XCreateImage@PLT
	add	rsp, 32
	mov	QWORD PTR pacmanu2[rip], rax
	mov	rdx, QWORD PTR pacmanu1d[rip]
	mov	eax, DWORD PTR depth[rip]
	mov	edi, eax
	mov	rsi, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR display[rip]
	push	0
	push	8
	push	16
	push	16
	mov	r9, rdx
	mov	r8d, 0
	mov	ecx, 2
	mov	edx, edi
	mov	rdi, rax
	call	XCreateImage@PLT
	add	rsp, 32
	mov	QWORD PTR pacmanu1[rip], rax
	mov	rdx, QWORD PTR pacmanu0d[rip]
	mov	eax, DWORD PTR depth[rip]
	mov	edi, eax
	mov	rsi, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR display[rip]
	push	0
	push	8
	push	16
	push	16
	mov	r9, rdx
	mov	r8d, 0
	mov	ecx, 2
	mov	edx, edi
	mov	rdi, rax
	call	XCreateImage@PLT
	add	rsp, 32
	mov	QWORD PTR pacmanu0[rip], rax
	mov	rdx, QWORD PTR pacmanr2d[rip]
	mov	eax, DWORD PTR depth[rip]
	mov	edi, eax
	mov	rsi, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR display[rip]
	push	0
	push	8
	push	16
	push	16
	mov	r9, rdx
	mov	r8d, 0
	mov	ecx, 2
	mov	edx, edi
	mov	rdi, rax
	call	XCreateImage@PLT
	add	rsp, 32
	mov	QWORD PTR pacmanr2[rip], rax
	mov	rdx, QWORD PTR pacmanr1d[rip]
	mov	eax, DWORD PTR depth[rip]
	mov	edi, eax
	mov	rsi, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR display[rip]
	push	0
	push	8
	push	16
	push	16
	mov	r9, rdx
	mov	r8d, 0
	mov	ecx, 2
	mov	edx, edi
	mov	rdi, rax
	call	XCreateImage@PLT
	add	rsp, 32
	mov	QWORD PTR pacmanr1[rip], rax
	mov	rdx, QWORD PTR pacmanr0d[rip]
	mov	eax, DWORD PTR depth[rip]
	mov	edi, eax
	mov	rsi, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR display[rip]
	push	0
	push	8
	push	16
	push	16
	mov	r9, rdx
	mov	r8d, 0
	mov	ecx, 2
	mov	edx, edi
	mov	rdi, rax
	call	XCreateImage@PLT
	add	rsp, 32
	mov	QWORD PTR pacmanr0[rip], rax
	mov	rdx, QWORD PTR pacmand2d[rip]
	mov	eax, DWORD PTR depth[rip]
	mov	edi, eax
	mov	rsi, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR display[rip]
	push	0
	push	8
	push	16
	push	16
	mov	r9, rdx
	mov	r8d, 0
	mov	ecx, 2
	mov	edx, edi
	mov	rdi, rax
	call	XCreateImage@PLT
	add	rsp, 32
	mov	QWORD PTR pacmand2[rip], rax
	mov	rdx, QWORD PTR pacmand1d[rip]
	mov	eax, DWORD PTR depth[rip]
	mov	edi, eax
	mov	rsi, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR display[rip]
	push	0
	push	8
	push	16
	push	16
	mov	r9, rdx
	mov	r8d, 0
	mov	ecx, 2
	mov	edx, edi
	mov	rdi, rax
	call	XCreateImage@PLT
	add	rsp, 32
	mov	QWORD PTR pacmand1[rip], rax
	mov	rdx, QWORD PTR pacmand0d[rip]
	mov	eax, DWORD PTR depth[rip]
	mov	edi, eax
	mov	rsi, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR display[rip]
	push	0
	push	8
	push	16
	push	16
	mov	r9, rdx
	mov	r8d, 0
	mov	ecx, 2
	mov	edx, edi
	mov	rdi, rax
	call	XCreateImage@PLT
	add	rsp, 32
	mov	QWORD PTR pacmand0[rip], rax
	mov	rdx, QWORD PTR pacmanl2d[rip]
	mov	eax, DWORD PTR depth[rip]
	mov	edi, eax
	mov	rsi, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR display[rip]
	push	0
	push	8
	push	16
	push	16
	mov	r9, rdx
	mov	r8d, 0
	mov	ecx, 2
	mov	edx, edi
	mov	rdi, rax
	call	XCreateImage@PLT
	add	rsp, 32
	mov	QWORD PTR pacmanl2[rip], rax
	mov	rdx, QWORD PTR pacmanl1d[rip]
	mov	eax, DWORD PTR depth[rip]
	mov	edi, eax
	mov	rsi, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR display[rip]
	push	0
	push	8
	push	16
	push	16
	mov	r9, rdx
	mov	r8d, 0
	mov	ecx, 2
	mov	edx, edi
	mov	rdi, rax
	call	XCreateImage@PLT
	add	rsp, 32
	mov	QWORD PTR pacmanl1[rip], rax
	mov	rdx, QWORD PTR pacmanl0d[rip]
	mov	eax, DWORD PTR depth[rip]
	mov	edi, eax
	mov	rsi, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR display[rip]
	push	0
	push	8
	push	16
	push	16
	mov	r9, rdx
	mov	r8d, 0
	mov	ecx, 2
	mov	edx, edi
	mov	rdi, rax
	call	XCreateImage@PLT
	add	rsp, 32
	mov	QWORD PTR pacmanl0[rip], rax
	mov	rdx, QWORD PTR ghostrd[rip]
	mov	eax, DWORD PTR depth[rip]
	mov	edi, eax
	mov	rsi, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR display[rip]
	push	0
	push	8
	push	16
	push	16
	mov	r9, rdx
	mov	r8d, 0
	mov	ecx, 2
	mov	edx, edi
	mov	rdi, rax
	call	XCreateImage@PLT
	add	rsp, 32
	mov	QWORD PTR ghostr[rip], rax
	mov	rdx, QWORD PTR ghostwd[rip]
	mov	eax, DWORD PTR depth[rip]
	mov	edi, eax
	mov	rsi, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR display[rip]
	push	0
	push	8
	push	16
	push	16
	mov	r9, rdx
	mov	r8d, 0
	mov	ecx, 2
	mov	edx, edi
	mov	rdi, rax
	call	XCreateImage@PLT
	add	rsp, 32
	mov	QWORD PTR ghostw[rip], rax
	mov	rdx, QWORD PTR ghostbd[rip]
	mov	eax, DWORD PTR depth[rip]
	mov	edi, eax
	mov	rsi, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR display[rip]
	push	0
	push	8
	push	16
	push	16
	mov	r9, rdx
	mov	r8d, 0
	mov	ecx, 2
	mov	edx, edi
	mov	rdi, rax
	call	XCreateImage@PLT
	add	rsp, 32
	mov	QWORD PTR ghostb[rip], rax
	mov	rdx, QWORD PTR ghostgd[rip]
	mov	eax, DWORD PTR depth[rip]
	mov	edi, eax
	mov	rsi, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR display[rip]
	push	0
	push	8
	push	16
	push	16
	mov	r9, rdx
	mov	r8d, 0
	mov	ecx, 2
	mov	edx, edi
	mov	rdi, rax
	call	XCreateImage@PLT
	add	rsp, 32
	mov	QWORD PTR ghostg[rip], rax
	mov	rdx, QWORD PTR ghostgyd[rip]
	mov	eax, DWORD PTR depth[rip]
	mov	edi, eax
	mov	rsi, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR display[rip]
	push	0
	push	8
	push	16
	push	16
	mov	r9, rdx
	mov	r8d, 0
	mov	ecx, 2
	mov	edx, edi
	mov	rdi, rax
	call	XCreateImage@PLT
	add	rsp, 32
	mov	QWORD PTR ghostgy[rip], rax
	mov	rdx, QWORD PTR eatpilld[rip]
	mov	eax, DWORD PTR depth[rip]
	mov	edi, eax
	mov	rsi, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR display[rip]
	push	0
	push	8
	push	16
	push	16
	mov	r9, rdx
	mov	r8d, 0
	mov	ecx, 2
	mov	edx, edi
	mov	rdi, rax
	call	XCreateImage@PLT
	add	rsp, 32
	mov	QWORD PTR eatpill[rip], rax
	mov	rsi, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR display[rip]
	lea	rcx, -160[rbp]
	lea	rdx, -176[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC32[rip]
	mov	rdi, rax
	call	XAllocNamedColor@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	DWORD PTR cvals[rip], eax
	mov	rsi, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR display[rip]
	lea	rcx, -160[rbp]
	lea	rdx, -176[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC33[rip]
	mov	rdi, rax
	call	XAllocNamedColor@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	DWORD PTR cvals[rip+4], eax
	mov	rsi, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR display[rip]
	lea	rcx, -160[rbp]
	lea	rdx, -176[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC34[rip]
	mov	rdi, rax
	call	XAllocNamedColor@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	DWORD PTR cvals[rip+8], eax
	mov	rsi, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR display[rip]
	lea	rcx, -160[rbp]
	lea	rdx, -176[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC35[rip]
	mov	rdi, rax
	call	XAllocNamedColor@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	DWORD PTR cvals[rip+12], eax
	mov	rsi, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR display[rip]
	lea	rcx, -160[rbp]
	lea	rdx, -176[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC36[rip]
	mov	rdi, rax
	call	XAllocNamedColor@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	DWORD PTR cvals[rip+16], eax
	mov	rsi, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR display[rip]
	lea	rcx, -160[rbp]
	lea	rdx, -176[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC37[rip]
	mov	rdi, rax
	call	XAllocNamedColor@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	DWORD PTR cvals[rip+20], eax
	mov	rsi, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR display[rip]
	lea	rcx, -160[rbp]
	lea	rdx, -176[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC38[rip]
	mov	rdi, rax
	call	XAllocNamedColor@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	DWORD PTR cvals[rip+24], eax
	mov	rsi, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR display[rip]
	lea	rcx, -160[rbp]
	lea	rdx, -176[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC39[rip]
	mov	rdi, rax
	call	XAllocNamedColor@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	DWORD PTR cvals[rip+28], eax
	mov	rsi, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR display[rip]
	lea	rcx, -160[rbp]
	lea	rdx, -176[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC40[rip]
	mov	rdi, rax
	call	XAllocNamedColor@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	DWORD PTR cvals[rip+32], eax
	mov	eax, DWORD PTR depth[rip]
	cmp	eax, 1
	jne	.L64
	mov	rax, QWORD PTR display[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR screen[rip]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rax, QWORD PTR 96[rax]
	mov	DWORD PTR cvals[rip], eax
	mov	rax, QWORD PTR display[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR screen[rip]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rax, QWORD PTR 88[rax]
	mov	DWORD PTR cvals[rip+4], eax
	mov	rax, QWORD PTR display[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR screen[rip]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rax, QWORD PTR 88[rax]
	mov	DWORD PTR cvals[rip+8], eax
	mov	rax, QWORD PTR display[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR screen[rip]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rax, QWORD PTR 88[rax]
	mov	DWORD PTR cvals[rip+12], eax
	mov	rax, QWORD PTR display[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR screen[rip]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rax, QWORD PTR 88[rax]
	mov	DWORD PTR cvals[rip+16], eax
	mov	rax, QWORD PTR display[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR screen[rip]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rax, QWORD PTR 88[rax]
	mov	DWORD PTR cvals[rip+20], eax
	mov	rax, QWORD PTR display[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR screen[rip]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rax, QWORD PTR 88[rax]
	mov	DWORD PTR cvals[rip+24], eax
	mov	rax, QWORD PTR display[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR screen[rip]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rax, QWORD PTR 88[rax]
	mov	DWORD PTR cvals[rip+28], eax
	mov	rax, QWORD PTR display[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR screen[rip]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rax, QWORD PTR 88[rax]
	mov	DWORD PTR cvals[rip+32], eax
.L64:
	mov	rax, QWORD PTR empty[rip]
	mov	rdi, rax
	call	setup_empty
	mov	rax, QWORD PTR wall[rip]
	mov	rdi, rax
	call	setup_wall
	mov	rax, QWORD PTR pill[rip]
	mov	rdi, rax
	call	setup_pill
	call	setup_pacmen
	call	setup_ghosts
	mov	rax, QWORD PTR eatpill[rip]
	mov	rdi, rax
	call	setup_eatpill
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L65
	call	__stack_chk_fail@PLT
.L65:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	make_image, .-make_image
	.globl	setup_blank
	.type	setup_blank, @function
setup_blank:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L67
.L70:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L68
.L69:
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, QWORD PTR 112[rax]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rcx, eax
	mov	edx, DWORD PTR -4[rbp]
	mov	esi, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	r8
	add	DWORD PTR -8[rbp], 1
.L68:
	cmp	DWORD PTR -8[rbp], 15
	jle	.L69
	add	DWORD PTR -4[rbp], 1
.L67:
	cmp	DWORD PTR -4[rbp], 15
	jle	.L70
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	setup_blank, .-setup_blank
	.globl	setup_empty
	.type	setup_empty, @function
setup_empty:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	setup_blank
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	setup_empty, .-setup_empty
	.globl	setup_wall
	.type	setup_wall, @function
setup_wall:
.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
	mov	QWORD PTR -8[rbp], rdi
	mov	edx, DWORD PTR cvals[rip+16]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	setup_blank
	mov	edx, DWORD PTR cvals[rip+24]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 14
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+24]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 14
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip+20]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 1
	mov	esi, 15
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+20]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 1
	mov	esi, 15
	mov	rdi, rax
	call	draw_y_line
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	setup_wall, .-setup_wall
	.globl	setup_game
	.type	setup_game, @function
setup_game:
.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, 16
	mov	edx, DWORD PTR width[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	movsx	rdx, eax
	imul	rdx, rdx, -2130574327
	shr	rdx, 32
	add	edx, eax
	sar	edx, 6
	sar	eax, 31
	sub	edx, eax
	mov	eax, DWORD PTR difficulty[rip]
	add	eax, edx
	mov	DWORD PTR ghostnum[rip], eax
	mov	eax, DWORD PTR height[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR width[rip]
	mov	ecx, eax
	shr	ecx, 31
	add	eax, ecx
	sar	eax
	mov	esi, edx
	mov	edi, eax
	call	add_pills
	mov	eax, DWORD PTR width[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	sal	eax, 4
	mov	DWORD PTR pacpos[rip], eax
	mov	eax, DWORD PTR height[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	sal	eax, 4
	mov	DWORD PTR pacpos[rip+4], eax
	mov	DWORD PTR pacdir[rip], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L74
.L80:
	mov	eax, DWORD PTR -4[rbp]
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	cmp	eax, 3
	je	.L75
	cmp	eax, 3
	jg	.L76
	cmp	eax, 2
	je	.L77
	cmp	eax, 2
	jg	.L76
	test	eax, eax
	je	.L78
	cmp	eax, 1
	je	.L79
	jmp	.L76
.L78:
	mov	eax, DWORD PTR width[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	sal	eax, 4
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+4]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR width[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	sal	eax, 4
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+8]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+12]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+16]
	mov	DWORD PTR [rdx+rax], 2
	mov	rax, QWORD PTR ghostr[rip]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	rcx, rdx
	sal	rcx, 5
	lea	rdx, ghosts[rip+24]
	mov	QWORD PTR [rcx+rdx], rax
	jmp	.L76
.L79:
	mov	eax, DWORD PTR width[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	sal	eax, 4
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR height[rip]
	sub	eax, 1
	sal	eax, 4
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+4]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR width[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	sal	eax, 4
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+8]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR height[rip]
	sub	eax, 1
	sal	eax, 4
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+12]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+16]
	mov	DWORD PTR [rdx+rax], 0
	mov	rax, QWORD PTR ghostw[rip]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	rcx, rdx
	sal	rcx, 5
	lea	rdx, ghosts[rip+24]
	mov	QWORD PTR [rcx+rdx], rax
	jmp	.L76
.L77:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR height[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	sal	eax, 4
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+4]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+8]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR height[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	sal	eax, 4
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+12]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+16]
	mov	DWORD PTR [rdx+rax], 1
	mov	rax, QWORD PTR ghostb[rip]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	rcx, rdx
	sal	rcx, 5
	lea	rdx, ghosts[rip+24]
	mov	QWORD PTR [rcx+rdx], rax
	jmp	.L76
.L75:
	mov	eax, DWORD PTR width[rip]
	sub	eax, 1
	sal	eax, 4
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR height[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	sal	eax, 4
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+4]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR width[rip]
	sub	eax, 1
	sal	eax, 4
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+8]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR height[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	sal	eax, 4
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+12]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+16]
	mov	DWORD PTR [rdx+rax], 3
	mov	rax, QWORD PTR ghostg[rip]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	rcx, rdx
	sal	rcx, 5
	lea	rdx, ghosts[rip+24]
	mov	QWORD PTR [rcx+rdx], rax
	nop
.L76:
	add	DWORD PTR -4[rbp], 1
.L74:
	mov	eax, DWORD PTR ghostnum[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L80
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	setup_game, .-setup_game
	.globl	draw_y_line
	.type	draw_y_line, @function
draw_y_line:
.LFB14:
	.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -36[rbp], ecx
	mov	DWORD PTR -40[rbp], r8d
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L82
.L83:
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, QWORD PTR 112[rax]
	mov	eax, DWORD PTR -40[rbp]
	movsx	rcx, eax
	mov	edx, DWORD PTR -4[rbp]
	mov	esi, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	r8
	add	DWORD PTR -4[rbp], 1
.L82:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L83
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	draw_y_line, .-draw_y_line
	.globl	update_image_from_map
	.type	update_image_from_map, @function
update_image_from_map:
.LFB15:
	.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L85
.L93:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L86
.L92:
	mov	rcx, QWORD PTR dmap[rip]
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	edx, eax
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	movsx	rsi, eax
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	cdqe
	add	rax, rsi
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jne	.L94
	mov	rcx, QWORD PTR dmap[rip]
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	edx, eax
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	movsx	rsi, eax
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	cdqe
	add	rax, rsi
	sal	rax, 2
	add	rax, rcx
	mov	DWORD PTR [rax], 0
	mov	rcx, QWORD PTR map[rip]
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	edx, eax
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	movsx	rsi, eax
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	cdqe
	add	rax, rsi
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	je	.L88
	cmp	eax, 3
	ja	.L87
	cmp	eax, 2
	je	.L89
	cmp	eax, 2
	ja	.L87
	test	eax, eax
	je	.L90
	cmp	eax, 1
	je	.L91
	jmp	.L87
.L90:
	mov	rcx, QWORD PTR empty[rip]
	mov	rax, QWORD PTR display[rip]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	push	16
	push	16
	mov	edi, DWORD PTR -4[rbp]
	push	rdi
	mov	edi, DWORD PTR -8[rbp]
	push	rdi
	mov	r9d, 0
	mov	r8d, 0
	mov	rdi, rax
	call	XPutImage@PLT
	add	rsp, 32
	jmp	.L87
.L91:
	mov	rcx, QWORD PTR wall[rip]
	mov	rax, QWORD PTR display[rip]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	push	16
	push	16
	mov	edi, DWORD PTR -4[rbp]
	push	rdi
	mov	edi, DWORD PTR -8[rbp]
	push	rdi
	mov	r9d, 0
	mov	r8d, 0
	mov	rdi, rax
	call	XPutImage@PLT
	add	rsp, 32
	jmp	.L87
.L89:
	mov	rcx, QWORD PTR pill[rip]
	mov	rax, QWORD PTR display[rip]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	push	16
	push	16
	mov	edi, DWORD PTR -4[rbp]
	push	rdi
	mov	edi, DWORD PTR -8[rbp]
	push	rdi
	mov	r9d, 0
	mov	r8d, 0
	mov	rdi, rax
	call	XPutImage@PLT
	add	rsp, 32
	jmp	.L87
.L88:
	mov	rcx, QWORD PTR eatpill[rip]
	mov	rax, QWORD PTR display[rip]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	push	16
	push	16
	mov	edi, DWORD PTR -4[rbp]
	push	rdi
	mov	edi, DWORD PTR -8[rbp]
	push	rdi
	mov	r9d, 0
	mov	r8d, 0
	mov	rdi, rax
	call	XPutImage@PLT
	add	rsp, 32
	jmp	.L87
.L94:
	nop
.L87:
	add	DWORD PTR -8[rbp], 16
.L86:
	mov	eax, DWORD PTR width[rip]
	sal	eax, 4
	cmp	DWORD PTR -8[rbp], eax
	jl	.L92
	add	DWORD PTR -4[rbp], 16
.L85:
	mov	eax, DWORD PTR height[rip]
	sal	eax, 4
	cmp	DWORD PTR -4[rbp], eax
	jl	.L93
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	update_image_from_map, .-update_image_from_map
	.globl	update_image
	.type	update_image, @function
update_image:
.LFB16:
	.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	plot_pacman
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	plot_ghosts
	mov	rax, QWORD PTR display[rip]
	mov	esi, 0
	mov	rdi, rax
	call	XSync@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	update_image, .-update_image
	.globl	update_image_eat
	.type	update_image_eat, @function
update_image_eat:
.LFB17:
	.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	plot_pacman
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	plot_ghosts_eat
	mov	rax, QWORD PTR display[rip]
	mov	esi, 0
	mov	rdi, rax
	call	XSync@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	update_image_eat, .-update_image_eat
	.section	.rodata
	.align 8
.LC41:
	.string	"%s: Unable to allocate needed memory.\n"
	.text
	.globl	setup_map_memory
	.type	setup_map_memory, @function
setup_map_memory:
.LFB18:
	.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 width[rip]
	movsx	rdx, eax
	mov	eax, DWORD PTR height[rip]
	cdqe
	imul	rax, rdx
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR map[rip], rax
	mov	eax, DWORD PTR width[rip]
	movsx	rdx, eax
	mov	eax, DWORD PTR height[rip]
	cdqe
	imul	rax, rdx
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR dmap[rip], rax
	mov	rax, QWORD PTR map[rip]
	test	rax, rax
	je	.L98
	mov	rax, QWORD PTR dmap[rip]
	test	rax, rax
	jne	.L100
.L98:
	mov	rdx, QWORD PTR pname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC41[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L100:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	setup_map_memory, .-setup_map_memory
	.globl	free_memory
	.type	free_memory, @function
free_memory:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR emptyd[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR walld[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR map[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR dmap[rip]
	mov	rdi, rax
	call	free@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	free_memory, .-free_memory
	.section	.rodata
	.align 8
.LC42:
	.string	"Usage: %s [-w<width>] [-h<height>] [-l<left key>]"
	.align 8
.LC43:
	.string	" [-r<right key>] [-u<up key>] [-d<down key>] [-q<quitkey>] "
	.align 8
.LC44:
	.string	"[-s<slowdown factor>] [-g<difficulty level>]"
	.text
	.globl	print_usage
	.type	print_usage, @function
print_usage:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR pname[rip]
	mov	rsi, rax
	lea	rdi, .LC42[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC43[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC44[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	print_usage, .-print_usage
	.globl	setup_maze
	.type	setup_maze, @function
setup_maze:
.LFB21:
	.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 -8[rbp], 0
	jmp	.L104
.L107:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L105
.L106:
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	add	DWORD PTR -4[rbp], 1
.L105:
	mov	eax, DWORD PTR height[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L106
	add	DWORD PTR -8[rbp], 1
.L104:
	mov	eax, DWORD PTR width[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L107
	mov	eax, DWORD PTR height[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR width[rip]
	mov	ecx, eax
	shr	ecx, 31
	add	eax, ecx
	sar	eax
	mov	ecx, edx
	mov	edx, eax
	mov	esi, 0
	mov	edi, 0
	call	maze_draw
	call	draw_maze_edges
	mov	DWORD PTR pillnum[rip], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	setup_maze, .-setup_maze
	.globl	reset_display_map
	.type	reset_display_map, @function
reset_display_map:
.LFB22:
	.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 -8[rbp], 0
	jmp	.L109
.L112:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L110
.L111:
	mov	rdx, QWORD PTR dmap[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	add	DWORD PTR -4[rbp], 1
.L110:
	mov	eax, DWORD PTR height[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L111
	add	DWORD PTR -8[rbp], 1
.L109:
	mov	eax, DWORD PTR width[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L112
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	reset_display_map, .-reset_display_map
	.globl	get_rand
	.type	get_rand, @function
get_rand:
.LFB23:
	.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 randseed[rip]
	sal	eax, 13
	mov	edx, eax
	mov	eax, DWORD PTR randseed[rip]
	sar	eax, 19
	or	edx, eax
	mov	eax, DWORD PTR randseed[rip]
	xor	eax, edx
	mov	DWORD PTR randseed[rip], eax
	mov	eax, DWORD PTR randseed[rip]
	add	eax, 1
	mov	DWORD PTR randseed[rip], eax
	mov	eax, DWORD PTR randseed[rip]
	cdq
	xor	eax, edx
	sub	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	get_rand, .-get_rand
	.globl	draw_passage_rectangle
	.type	draw_passage_rectangle, @function
draw_passage_rectangle:
.LFB24:
	.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	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	DWORD PTR -32[rbp], ecx
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L116
.L117:
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rcx, QWORD PTR map[rip]
	mov	eax, DWORD PTR width[rip]
	sub	eax, 1
	sub	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	movsx	rdx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR height[rip]
	sub	eax, 1
	sub	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rcx, QWORD PTR map[rip]
	mov	eax, DWORD PTR width[rip]
	sub	eax, 1
	sub	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	movsx	rdx, eax
	mov	eax, DWORD PTR height[rip]
	sub	eax, 1
	sub	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rcx, QWORD PTR map[rip]
	mov	eax, DWORD PTR width[rip]
	sub	eax, 1
	sub	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	movsx	rdx, eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR height[rip]
	sub	eax, 1
	sub	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rcx, QWORD PTR map[rip]
	mov	eax, DWORD PTR width[rip]
	sub	eax, 1
	sub	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	movsx	rdx, eax
	mov	eax, DWORD PTR height[rip]
	sub	eax, 1
	sub	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	DWORD PTR [rax], 0
	add	DWORD PTR -8[rbp], 1
.L116:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jle	.L117
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L118
.L119:
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -20[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rcx, QWORD PTR map[rip]
	mov	eax, DWORD PTR width[rip]
	sub	eax, 1
	sub	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	movsx	rdx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -20[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR height[rip]
	sub	eax, 1
	sub	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rcx, QWORD PTR map[rip]
	mov	eax, DWORD PTR width[rip]
	sub	eax, 1
	sub	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	movsx	rdx, eax
	mov	eax, DWORD PTR height[rip]
	sub	eax, 1
	sub	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -28[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rcx, QWORD PTR map[rip]
	mov	eax, DWORD PTR width[rip]
	sub	eax, 1
	sub	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	movsx	rdx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -28[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR height[rip]
	sub	eax, 1
	sub	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rcx, QWORD PTR map[rip]
	mov	eax, DWORD PTR width[rip]
	sub	eax, 1
	sub	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	movsx	rdx, eax
	mov	eax, DWORD PTR height[rip]
	sub	eax, 1
	sub	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	DWORD PTR [rax], 0
	add	DWORD PTR -4[rbp], 1
.L118:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jle	.L119
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	draw_passage_rectangle, .-draw_passage_rectangle
	.globl	maze_draw
	.type	maze_draw, @function
maze_draw:
.LFB25:
	.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	DWORD PTR -32[rbp], ecx
	mov	ecx, DWORD PTR -32[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	esi, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	draw_passage_rectangle
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, DWORD PTR -24[rbp]
	imul	eax, edx
	cmp	eax, 50
	jle	.L123
	call	get_rand
	and	eax, 1
	test	eax, eax
	jne	.L122
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, DWORD PTR -20[rbp]
	cmp	eax, 4
	jle	.L122
	call	get_rand
	mov	edx, DWORD PTR -28[rbp]
	sub	edx, DWORD PTR -20[rbp]
	lea	ecx, -4[rdx]
	cdq
	idiv	ecx
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	add	eax, 2
	mov	DWORD PTR -8[rbp], eax
	mov	ecx, DWORD PTR -32[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	esi, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	maze_draw
	mov	ecx, DWORD PTR -32[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	esi, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	maze_draw
	jmp	.L123
.L122:
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, DWORD PTR -24[rbp]
	cmp	eax, 4
	jle	.L123
	call	get_rand
	mov	edx, DWORD PTR -32[rbp]
	sub	edx, DWORD PTR -24[rbp]
	lea	ecx, -4[rdx]
	cdq
	idiv	ecx
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	add	eax, 2
	mov	DWORD PTR -4[rbp], eax
	mov	ecx, DWORD PTR -4[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	esi, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	maze_draw
	mov	ecx, DWORD PTR -32[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	esi, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	maze_draw
.L123:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	maze_draw, .-maze_draw
	.globl	draw_maze_point
	.type	draw_maze_point, @function
draw_maze_point:
.LFB26:
	.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rcx, QWORD PTR map[rip]
	mov	eax, DWORD PTR width[rip]
	sub	eax, 1
	sub	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, rdx
	sal	rax, 2
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR height[rip]
	sub	eax, 1
	sub	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rcx, QWORD PTR map[rip]
	mov	eax, DWORD PTR width[rip]
	sub	eax, 1
	sub	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	movsx	rdx, eax
	mov	eax, DWORD PTR height[rip]
	sub	eax, 1
	sub	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, rdx
	sal	rax, 2
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rdx], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	draw_maze_point, .-draw_maze_point
	.globl	draw_maze_edges
	.type	draw_maze_edges, @function
draw_maze_edges:
.LFB27:
	.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 -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	mov	eax, DWORD PTR height[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	sub	eax, 1
	mov	DWORD PTR -4[rbp], eax
	jmp	.L126
.L129:
	mov	rcx, QWORD PTR map[rip]
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	movsx	rdx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L127
	cmp	DWORD PTR -12[rbp], 0
	sete	al
	movzx	eax, al
	mov	DWORD PTR -12[rbp], eax
.L127:
	mov	rcx, QWORD PTR map[rip]
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	movsx	rdx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jne	.L128
	cmp	DWORD PTR -12[rbp], 1
	jne	.L128
	mov	ecx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 1
	mov	esi, ecx
	mov	edi, eax
	call	draw_maze_point
.L128:
	sub	DWORD PTR -4[rbp], 1
.L126:
	cmp	DWORD PTR -4[rbp], 0
	jg	.L129
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	cmp	DWORD PTR -12[rbp], 1
	jne	.L130
	mov	ecx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 1
	mov	esi, ecx
	mov	edi, eax
	call	draw_maze_point
.L130:
	mov	DWORD PTR -8[rbp], 1
	jmp	.L131
.L134:
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rcx
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L132
	cmp	DWORD PTR -12[rbp], 0
	sete	al
	movzx	eax, al
	mov	DWORD PTR -12[rbp], eax
.L132:
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rcx
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jne	.L133
	cmp	DWORD PTR -12[rbp], 1
	jne	.L133
	mov	ecx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 1
	mov	esi, ecx
	mov	edi, eax
	call	draw_maze_point
.L133:
	add	DWORD PTR -8[rbp], 1
.L131:
	mov	eax, DWORD PTR width[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -8[rbp], eax
	jl	.L134
	mov	eax, DWORD PTR width[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -4[rbp], 0
	jmp	.L135
.L138:
	mov	ecx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	edi, eax
	call	draw_maze_point
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rcx
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L136
	cmp	DWORD PTR -12[rbp], 0
	sete	al
	movzx	eax, al
	mov	DWORD PTR -12[rbp], eax
.L136:
	sub	DWORD PTR -8[rbp], 1
.L135:
	cmp	DWORD PTR -12[rbp], 1
	jne	.L137
	cmp	DWORD PTR -8[rbp], 0
	jns	.L138
.L137:
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 1
	jmp	.L139
.L142:
	mov	ecx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	edi, eax
	call	draw_maze_point
	mov	rcx, QWORD PTR map[rip]
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	movsx	rdx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L140
	cmp	DWORD PTR -12[rbp], 0
	sete	al
	movzx	eax, al
	mov	DWORD PTR -12[rbp], eax
.L140:
	add	DWORD PTR -4[rbp], 1
.L139:
	cmp	DWORD PTR -12[rbp], 1
	jne	.L143
	mov	eax, DWORD PTR height[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -4[rbp], eax
	jl	.L142
.L143:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE27:
	.size	draw_maze_edges, .-draw_maze_edges
	.globl	draw_x_line
	.type	draw_x_line, @function
draw_x_line:
.LFB28:
	.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -36[rbp], ecx
	mov	DWORD PTR -40[rbp], r8d
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L145
.L146:
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, QWORD PTR 112[rax]
	mov	eax, DWORD PTR -40[rbp]
	movsx	rcx, eax
	mov	edx, DWORD PTR -28[rbp]
	mov	esi, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	r8
	add	DWORD PTR -4[rbp], 1
.L145:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L146
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE28:
	.size	draw_x_line, .-draw_x_line
	.globl	setup_pill
	.type	setup_pill, @function
setup_pill:
.LFB29:
	.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	QWORD PTR -8[rbp], rdi
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	setup_blank
	mov	edx, DWORD PTR cvals[rip+12]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 8
	mov	edx, 6
	mov	esi, 5
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+12]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 9
	mov	edx, 5
	mov	esi, 6
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+12]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 9
	mov	edx, 5
	mov	esi, 7
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+12]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 9
	mov	edx, 5
	mov	esi, 8
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+12]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 8
	mov	edx, 6
	mov	esi, 9
	mov	rdi, rax
	call	draw_x_line
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE29:
	.size	setup_pill, .-setup_pill
	.globl	add_pills
	.type	add_pills, @function
add_pills:
.LFB30:
	.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], edi
	mov	DWORD PTR -8[rbp], esi
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L152
	cmp	DWORD PTR -4[rbp], 0
	js	.L152
	mov	eax, DWORD PTR width[rip]
	cmp	DWORD PTR -4[rbp], eax
	jge	.L152
	cmp	DWORD PTR -8[rbp], 0
	js	.L152
	mov	eax, DWORD PTR height[rip]
	cmp	DWORD PTR -8[rbp], eax
	jge	.L152
	mov	eax, DWORD PTR pillnum[rip]
	add	eax, 1
	mov	DWORD PTR pillnum[rip], eax
	call	get_rand
	and	eax, 127
	test	eax, eax
	jne	.L150
	mov	edx, 3
	jmp	.L151
.L150:
	mov	edx, 2
.L151:
	mov	rcx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -4[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, rsi
	sal	rax, 2
	add	rax, rcx
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	mov	edi, edx
	call	add_pills
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	mov	edi, edx
	call	add_pills
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	add_pills
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	add_pills
.L152:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE30:
	.size	add_pills, .-add_pills
	.globl	setup_pacmen
	.type	setup_pacmen, @function
setup_pacmen:
.LFB31:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	setup_pacmanu
	call	setup_pacmanr
	call	setup_pacmand
	call	setup_pacmanl
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE31:
	.size	setup_pacmen, .-setup_pacmen
	.globl	setup_pacmanu
	.type	setup_pacmanu, @function
setup_pacmanu:
.LFB32:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR pacmanu2[rip]
	mov	rdi, rax
	call	setup_pacman
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanu2[rip]
	mov	r8d, edx
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 3
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanu2[rip]
	mov	r8d, edx
	mov	ecx, 4
	mov	edx, 0
	mov	esi, 4
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanu2[rip]
	mov	r8d, edx
	mov	ecx, 5
	mov	edx, 0
	mov	esi, 5
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanu2[rip]
	mov	r8d, edx
	mov	ecx, 6
	mov	edx, 0
	mov	esi, 6
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanu2[rip]
	mov	r8d, edx
	mov	ecx, 7
	mov	edx, 0
	mov	esi, 7
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanu2[rip]
	mov	r8d, edx
	mov	ecx, 7
	mov	edx, 0
	mov	esi, 8
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanu2[rip]
	mov	r8d, edx
	mov	ecx, 6
	mov	edx, 0
	mov	esi, 9
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanu2[rip]
	mov	r8d, edx
	mov	ecx, 5
	mov	edx, 0
	mov	esi, 10
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanu2[rip]
	mov	r8d, edx
	mov	ecx, 4
	mov	edx, 0
	mov	esi, 11
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanu2[rip]
	mov	r8d, edx
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 12
	mov	rdi, rax
	call	draw_y_line
	mov	rax, QWORD PTR pacmanu1[rip]
	mov	rdi, rax
	call	setup_pacman
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanu1[rip]
	mov	r8d, edx
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 5
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanu1[rip]
	mov	r8d, edx
	mov	ecx, 5
	mov	edx, 0
	mov	esi, 6
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanu1[rip]
	mov	r8d, edx
	mov	ecx, 7
	mov	edx, 0
	mov	esi, 7
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanu1[rip]
	mov	r8d, edx
	mov	ecx, 7
	mov	edx, 0
	mov	esi, 8
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanu1[rip]
	mov	r8d, edx
	mov	ecx, 5
	mov	edx, 0
	mov	esi, 9
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanu1[rip]
	mov	r8d, edx
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 10
	mov	rdi, rax
	call	draw_y_line
	mov	rax, QWORD PTR pacmanu0[rip]
	mov	rdi, rax
	call	setup_pacman
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE32:
	.size	setup_pacmanu, .-setup_pacmanu
	.globl	setup_pacman
	.type	setup_pacman, @function
setup_pacman:
.LFB33:
	.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	QWORD PTR -8[rbp], rdi
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	setup_blank
	mov	edx, DWORD PTR cvals[rip+28]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 9
	mov	edx, 6
	mov	esi, 1
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+28]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 11
	mov	edx, 4
	mov	esi, 2
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+28]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 12
	mov	edx, 3
	mov	esi, 3
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+28]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 13
	mov	edx, 2
	mov	esi, 4
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+28]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 13
	mov	edx, 2
	mov	esi, 5
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+28]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 14
	mov	edx, 1
	mov	esi, 6
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+28]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 14
	mov	edx, 1
	mov	esi, 7
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+28]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 14
	mov	edx, 1
	mov	esi, 8
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+28]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 14
	mov	edx, 1
	mov	esi, 9
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+28]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 13
	mov	edx, 2
	mov	esi, 10
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+28]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 13
	mov	edx, 2
	mov	esi, 11
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+28]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 12
	mov	edx, 3
	mov	esi, 12
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+28]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 11
	mov	edx, 4
	mov	esi, 13
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+28]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 9
	mov	edx, 6
	mov	esi, 14
	mov	rdi, rax
	call	draw_x_line
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE33:
	.size	setup_pacman, .-setup_pacman
	.globl	plot_pacman
	.type	plot_pacman, @function
plot_pacman:
.LFB34:
	.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, DWORD PTR pacdir[rip]
	cmp	eax, 3
	je	.L157
	cmp	eax, 3
	ja	.L158
	cmp	eax, 2
	je	.L159
	cmp	eax, 2
	ja	.L158
	test	eax, eax
	je	.L160
	cmp	eax, 1
	je	.L161
	jmp	.L158
.L160:
	mov	edx, DWORD PTR pacpos[rip]
	mov	eax, DWORD PTR pacpos[rip+4]
	add	eax, edx
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	mov	edx, eax
	mov	eax, edx
	sar	eax, 31
	shr	eax, 30
	mov	ecx, eax
	lea	eax, [rdx+rcx]
	and	eax, 3
	sub	eax, ecx
	cmp	eax, 3
	je	.L162
	cmp	eax, 3
	jg	.L182
	cmp	eax, 2
	je	.L164
	cmp	eax, 2
	jg	.L182
	test	eax, eax
	je	.L165
	cmp	eax, 1
	je	.L166
	jmp	.L182
.L165:
	mov	rax, QWORD PTR pacmanu0[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L163
.L166:
	mov	rax, QWORD PTR pacmanu1[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L163
.L164:
	mov	rax, QWORD PTR pacmanu2[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L163
.L162:
	mov	rax, QWORD PTR pacmanu1[rip]
	mov	QWORD PTR -8[rbp], rax
	nop
.L163:
	jmp	.L182
.L157:
	mov	edx, DWORD PTR pacpos[rip]
	mov	eax, DWORD PTR pacpos[rip+4]
	add	eax, edx
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	mov	edx, eax
	mov	eax, edx
	sar	eax, 31
	shr	eax, 30
	mov	ecx, eax
	lea	eax, [rdx+rcx]
	and	eax, 3
	sub	eax, ecx
	cmp	eax, 3
	je	.L167
	cmp	eax, 3
	jg	.L183
	cmp	eax, 2
	je	.L169
	cmp	eax, 2
	jg	.L183
	test	eax, eax
	je	.L170
	cmp	eax, 1
	je	.L171
	jmp	.L183
.L170:
	mov	rax, QWORD PTR pacmanl0[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L168
.L171:
	mov	rax, QWORD PTR pacmanl1[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L168
.L169:
	mov	rax, QWORD PTR pacmanl2[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L168
.L167:
	mov	rax, QWORD PTR pacmanl1[rip]
	mov	QWORD PTR -8[rbp], rax
	nop
.L168:
	jmp	.L183
.L159:
	mov	edx, DWORD PTR pacpos[rip]
	mov	eax, DWORD PTR pacpos[rip+4]
	add	eax, edx
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	mov	edx, eax
	mov	eax, edx
	sar	eax, 31
	shr	eax, 30
	mov	ecx, eax
	lea	eax, [rdx+rcx]
	and	eax, 3
	sub	eax, ecx
	cmp	eax, 3
	je	.L172
	cmp	eax, 3
	jg	.L184
	cmp	eax, 2
	je	.L174
	cmp	eax, 2
	jg	.L184
	test	eax, eax
	je	.L175
	cmp	eax, 1
	je	.L176
	jmp	.L184
.L175:
	mov	rax, QWORD PTR pacmand0[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L173
.L176:
	mov	rax, QWORD PTR pacmand1[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L173
.L174:
	mov	rax, QWORD PTR pacmand2[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L173
.L172:
	mov	rax, QWORD PTR pacmand1[rip]
	mov	QWORD PTR -8[rbp], rax
	nop
.L173:
	jmp	.L184
.L161:
	mov	edx, DWORD PTR pacpos[rip]
	mov	eax, DWORD PTR pacpos[rip+4]
	add	eax, edx
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	mov	edx, eax
	mov	eax, edx
	sar	eax, 31
	shr	eax, 30
	mov	ecx, eax
	lea	eax, [rdx+rcx]
	and	eax, 3
	sub	eax, ecx
	cmp	eax, 3
	je	.L177
	cmp	eax, 3
	jg	.L185
	cmp	eax, 2
	je	.L179
	cmp	eax, 2
	jg	.L185
	test	eax, eax
	je	.L180
	cmp	eax, 1
	je	.L181
	jmp	.L185
.L180:
	mov	rax, QWORD PTR pacmanr0[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L178
.L181:
	mov	rax, QWORD PTR pacmanr1[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L178
.L179:
	mov	rax, QWORD PTR pacmanr2[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L178
.L177:
	mov	rax, QWORD PTR pacmanr1[rip]
	mov	QWORD PTR -8[rbp], rax
	nop
.L178:
	jmp	.L185
.L182:
	nop
	jmp	.L158
.L183:
	nop
	jmp	.L158
.L184:
	nop
	jmp	.L158
.L185:
	nop
.L158:
	mov	edi, DWORD PTR oldpacpos[rip+4]
	mov	r9d, DWORD PTR oldpacpos[rip]
	mov	r8d, DWORD PTR pacpos[rip+4]
	mov	ecx, DWORD PTR pacpos[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	sub	rsp, 8
	push	rdi
	mov	rdi, rax
	call	plot_sprite
	add	rsp, 16
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE34:
	.size	plot_pacman, .-plot_pacman
	.globl	update_game
	.type	update_game, @function
update_game:
.LFB35:
	.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
	call	update_pacman_position
	call	update_ghosts
	mov	eax, DWORD PTR pacpos[rip]
	add	eax, 4
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	ecx, DWORD PTR width[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -16[rbp], edx
	mov	eax, DWORD PTR pacpos[rip+4]
	add	eax, 4
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	ecx, DWORD PTR height[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -12[rbp], edx
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L187
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR pillnum[rip]
	sub	eax, 1
	mov	DWORD PTR pillnum[rip], eax
.L187:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	jne	.L188
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR gamestate[rip]
	or	eax, 32
	mov	DWORD PTR gamestate[rip], eax
	mov	DWORD PTR ecount[rip], 127
	mov	eax, DWORD PTR pillnum[rip]
	sub	eax, 1
	mov	DWORD PTR pillnum[rip], eax
.L188:
	mov	eax, DWORD PTR pacpos[rip]
	add	eax, 11
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	ecx, DWORD PTR width[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -16[rbp], edx
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L189
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR pillnum[rip]
	sub	eax, 1
	mov	DWORD PTR pillnum[rip], eax
.L189:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	jne	.L190
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR gamestate[rip]
	or	eax, 32
	mov	DWORD PTR gamestate[rip], eax
	mov	DWORD PTR ecount[rip], 127
	mov	eax, DWORD PTR pillnum[rip]
	sub	eax, 1
	mov	DWORD PTR pillnum[rip], eax
.L190:
	mov	eax, DWORD PTR pacpos[rip+4]
	add	eax, 11
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	ecx, DWORD PTR height[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -12[rbp], edx
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L191
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR pillnum[rip]
	sub	eax, 1
	mov	DWORD PTR pillnum[rip], eax
.L191:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	jne	.L192
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR gamestate[rip]
	or	eax, 32
	mov	DWORD PTR gamestate[rip], eax
	mov	DWORD PTR ecount[rip], 127
	mov	eax, DWORD PTR pillnum[rip]
	sub	eax, 1
	mov	DWORD PTR pillnum[rip], eax
.L192:
	mov	eax, DWORD PTR pacpos[rip]
	add	eax, 4
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	ecx, DWORD PTR width[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -16[rbp], edx
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L193
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR pillnum[rip]
	sub	eax, 1
	mov	DWORD PTR pillnum[rip], eax
.L193:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	jne	.L194
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR gamestate[rip]
	or	eax, 32
	mov	DWORD PTR gamestate[rip], eax
	mov	DWORD PTR ecount[rip], 127
	mov	eax, DWORD PTR pillnum[rip]
	sub	eax, 1
	mov	DWORD PTR pillnum[rip], eax
.L194:
	mov	eax, DWORD PTR pillnum[rip]
	test	eax, eax
	jg	.L195
	mov	eax, DWORD PTR gamestate[rip]
	or	eax, 8
	mov	DWORD PTR gamestate[rip], eax
.L195:
	call	test_ghost_collide
	test	eax, eax
	je	.L197
	mov	eax, DWORD PTR gamestate[rip]
	or	eax, 4
	mov	DWORD PTR gamestate[rip], eax
.L197:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE35:
	.size	update_game, .-update_game
	.globl	update_game_eat
	.type	update_game_eat, @function
update_game_eat:
.LFB36:
	.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
	call	update_pacman_position
	call	update_ghosts_eat
	mov	eax, DWORD PTR pacpos[rip]
	add	eax, 4
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	ecx, DWORD PTR width[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -16[rbp], edx
	mov	eax, DWORD PTR pacpos[rip+4]
	add	eax, 4
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	ecx, DWORD PTR height[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -12[rbp], edx
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L199
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR pillnum[rip]
	sub	eax, 1
	mov	DWORD PTR pillnum[rip], eax
.L199:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	jne	.L200
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR gamestate[rip]
	or	eax, 32
	mov	DWORD PTR gamestate[rip], eax
	mov	DWORD PTR ecount[rip], 127
	mov	eax, DWORD PTR pillnum[rip]
	sub	eax, 1
	mov	DWORD PTR pillnum[rip], eax
.L200:
	mov	eax, DWORD PTR pacpos[rip]
	add	eax, 11
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	ecx, DWORD PTR width[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -16[rbp], edx
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L201
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR pillnum[rip]
	sub	eax, 1
	mov	DWORD PTR pillnum[rip], eax
.L201:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	jne	.L202
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR gamestate[rip]
	or	eax, 32
	mov	DWORD PTR gamestate[rip], eax
	mov	DWORD PTR ecount[rip], 127
	mov	eax, DWORD PTR pillnum[rip]
	sub	eax, 1
	mov	DWORD PTR pillnum[rip], eax
.L202:
	mov	eax, DWORD PTR pacpos[rip+4]
	add	eax, 11
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	ecx, DWORD PTR height[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -12[rbp], edx
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L203
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR pillnum[rip]
	sub	eax, 1
	mov	DWORD PTR pillnum[rip], eax
.L203:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	jne	.L204
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR gamestate[rip]
	or	eax, 32
	mov	DWORD PTR gamestate[rip], eax
	mov	DWORD PTR ecount[rip], 127
	mov	eax, DWORD PTR pillnum[rip]
	sub	eax, 1
	mov	DWORD PTR pillnum[rip], eax
.L204:
	mov	eax, DWORD PTR pacpos[rip]
	add	eax, 4
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	ecx, DWORD PTR width[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -16[rbp], edx
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L205
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR pillnum[rip]
	sub	eax, 1
	mov	DWORD PTR pillnum[rip], eax
.L205:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	jne	.L206
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR gamestate[rip]
	or	eax, 32
	mov	DWORD PTR gamestate[rip], eax
	mov	DWORD PTR ecount[rip], 127
	mov	eax, DWORD PTR pillnum[rip]
	sub	eax, 1
	mov	DWORD PTR pillnum[rip], eax
.L206:
	mov	eax, DWORD PTR pillnum[rip]
	test	eax, eax
	jg	.L207
	mov	eax, DWORD PTR gamestate[rip]
	or	eax, 8
	mov	DWORD PTR gamestate[rip], eax
.L207:
	call	test_ghost_collide
	test	eax, eax
	je	.L209
	mov	eax, 0
	call	which_ghost_collide
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+16]
	mov	DWORD PTR [rdx+rax], 4
.L209:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE36:
	.size	update_game_eat, .-update_game_eat
	.globl	newpacpos
	.type	newpacpos, @function
newpacpos:
.LFB37:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR pacpos[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR pacdir[rip]
	cmp	eax, 3
	je	.L211
	cmp	eax, 3
	ja	.L212
	cmp	eax, 2
	je	.L213
	cmp	eax, 2
	ja	.L212
	test	eax, eax
	je	.L214
	cmp	eax, 1
	je	.L215
	jmp	.L212
.L214:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 4
	mov	DWORD PTR -4[rbp], eax
	jmp	.L212
.L211:
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 4
	mov	DWORD PTR -8[rbp], eax
	jmp	.L212
.L213:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 4
	mov	DWORD PTR -4[rbp], eax
	jmp	.L212
.L215:
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 4
	mov	DWORD PTR -8[rbp], eax
	nop
.L212:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR width[rip]
	sal	eax, 4
	add	eax, edx
	mov	edx, DWORD PTR width[rip]
	mov	ecx, edx
	sal	ecx, 4
	cdq
	idiv	ecx
	mov	eax, edx
	mov	DWORD PTR -8[rbp], eax
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR height[rip]
	sal	eax, 4
	add	eax, edx
	mov	edx, DWORD PTR height[rip]
	mov	ecx, edx
	sal	ecx, 4
	cdq
	idiv	ecx
	mov	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE37:
	.size	newpacpos, .-newpacpos
	.globl	setup_pacmanr
	.type	setup_pacmanr, @function
setup_pacmanr:
.LFB38:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR pacmanr2[rip]
	mov	rdi, rax
	call	setup_pacman
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanr2[rip]
	mov	r8d, edx
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 3
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanr2[rip]
	mov	r8d, edx
	mov	ecx, 4
	mov	edx, 0
	mov	esi, 4
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanr2[rip]
	mov	r8d, edx
	mov	ecx, 5
	mov	edx, 0
	mov	esi, 5
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanr2[rip]
	mov	r8d, edx
	mov	ecx, 6
	mov	edx, 0
	mov	esi, 6
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanr2[rip]
	mov	r8d, edx
	mov	ecx, 7
	mov	edx, 0
	mov	esi, 7
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanr2[rip]
	mov	r8d, edx
	mov	ecx, 7
	mov	edx, 0
	mov	esi, 8
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanr2[rip]
	mov	r8d, edx
	mov	ecx, 6
	mov	edx, 0
	mov	esi, 9
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanr2[rip]
	mov	r8d, edx
	mov	ecx, 5
	mov	edx, 0
	mov	esi, 10
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanr2[rip]
	mov	r8d, edx
	mov	ecx, 4
	mov	edx, 0
	mov	esi, 11
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanr2[rip]
	mov	r8d, edx
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 12
	mov	rdi, rax
	call	draw_x_line
	mov	rax, QWORD PTR pacmanr1[rip]
	mov	rdi, rax
	call	setup_pacman
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanr1[rip]
	mov	r8d, edx
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 5
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanr1[rip]
	mov	r8d, edx
	mov	ecx, 5
	mov	edx, 0
	mov	esi, 6
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanr1[rip]
	mov	r8d, edx
	mov	ecx, 7
	mov	edx, 0
	mov	esi, 7
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanr1[rip]
	mov	r8d, edx
	mov	ecx, 7
	mov	edx, 0
	mov	esi, 8
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanr1[rip]
	mov	r8d, edx
	mov	ecx, 5
	mov	edx, 0
	mov	esi, 9
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanr1[rip]
	mov	r8d, edx
	mov	ecx, 3
	mov	edx, 0
	mov	esi, 10
	mov	rdi, rax
	call	draw_x_line
	mov	rax, QWORD PTR pacmanr0[rip]
	mov	rdi, rax
	call	setup_pacman
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE38:
	.size	setup_pacmanr, .-setup_pacmanr
	.globl	setup_pacmand
	.type	setup_pacmand, @function
setup_pacmand:
.LFB39:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR pacmand2[rip]
	mov	rdi, rax
	call	setup_pacman
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmand2[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 12
	mov	esi, 3
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmand2[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 11
	mov	esi, 4
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmand2[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 10
	mov	esi, 5
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmand2[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 9
	mov	esi, 6
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmand2[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 8
	mov	esi, 7
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmand2[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 8
	mov	esi, 8
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmand2[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 9
	mov	esi, 9
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmand2[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 10
	mov	esi, 10
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmand2[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 11
	mov	esi, 11
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmand2[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 12
	mov	esi, 12
	mov	rdi, rax
	call	draw_y_line
	mov	rax, QWORD PTR pacmand1[rip]
	mov	rdi, rax
	call	setup_pacman
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmand1[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 12
	mov	esi, 5
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmand1[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 10
	mov	esi, 6
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmand1[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 8
	mov	esi, 7
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmand1[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 8
	mov	esi, 8
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmand1[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 10
	mov	esi, 9
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmand1[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 12
	mov	esi, 10
	mov	rdi, rax
	call	draw_y_line
	mov	rax, QWORD PTR pacmand0[rip]
	mov	rdi, rax
	call	setup_pacman
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE39:
	.size	setup_pacmand, .-setup_pacmand
	.globl	setup_pacmanl
	.type	setup_pacmanl, @function
setup_pacmanl:
.LFB40:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR pacmanl2[rip]
	mov	rdi, rax
	call	setup_pacman
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanl2[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 12
	mov	esi, 3
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanl2[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 11
	mov	esi, 4
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanl2[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 10
	mov	esi, 5
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanl2[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 9
	mov	esi, 6
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanl2[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 8
	mov	esi, 7
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanl2[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 8
	mov	esi, 8
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanl2[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 9
	mov	esi, 9
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanl2[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 10
	mov	esi, 10
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanl2[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 11
	mov	esi, 11
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanl2[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 12
	mov	esi, 12
	mov	rdi, rax
	call	draw_x_line
	mov	rax, QWORD PTR pacmanl1[rip]
	mov	rdi, rax
	call	setup_pacman
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanl1[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 12
	mov	esi, 5
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanl1[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 10
	mov	esi, 6
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanl1[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 8
	mov	esi, 7
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanl1[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 8
	mov	esi, 8
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanl1[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 10
	mov	esi, 9
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR pacmanl1[rip]
	mov	r8d, edx
	mov	ecx, 15
	mov	edx, 12
	mov	esi, 10
	mov	rdi, rax
	call	draw_x_line
	mov	rax, QWORD PTR pacmanl0[rip]
	mov	rdi, rax
	call	setup_pacman
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE40:
	.size	setup_pacmanl, .-setup_pacmanl
	.globl	setup_ghosts
	.type	setup_ghosts, @function
setup_ghosts:
.LFB41:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, DWORD PTR cvals[rip+8]
	mov	rax, QWORD PTR ghostr[rip]
	mov	esi, edx
	mov	rdi, rax
	call	setup_ghost
	mov	edx, DWORD PTR cvals[rip+4]
	mov	rax, QWORD PTR ghostw[rip]
	mov	esi, edx
	mov	rdi, rax
	call	setup_ghost
	mov	edx, DWORD PTR cvals[rip+28]
	mov	rax, QWORD PTR ghostb[rip]
	mov	esi, edx
	mov	rdi, rax
	call	setup_ghost
	mov	edx, DWORD PTR cvals[rip+12]
	mov	rax, QWORD PTR ghostg[rip]
	mov	esi, edx
	mov	rdi, rax
	call	setup_ghost
	mov	edx, DWORD PTR cvals[rip+32]
	mov	rax, QWORD PTR ghostgy[rip]
	mov	esi, edx
	mov	rdi, rax
	call	setup_ghost
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE41:
	.size	setup_ghosts, .-setup_ghosts
	.globl	setup_ghost
	.type	setup_ghost, @function
setup_ghost:
.LFB42:
	.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	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	setup_blank
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 14
	mov	edx, 3
	mov	esi, 3
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 13
	mov	edx, 2
	mov	esi, 4
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 12
	mov	edx, 2
	mov	esi, 5
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 13
	mov	edx, 1
	mov	esi, 6
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 14
	mov	edx, 1
	mov	esi, 7
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 14
	mov	edx, 1
	mov	esi, 8
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 13
	mov	edx, 1
	mov	esi, 9
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 12
	mov	edx, 2
	mov	esi, 10
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 13
	mov	edx, 2
	mov	esi, 11
	mov	rdi, rax
	call	draw_y_line
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 14
	mov	edx, 3
	mov	esi, 12
	mov	rdi, rax
	call	draw_y_line
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE42:
	.size	setup_ghost, .-setup_ghost
	.globl	plot_sprite
	.type	plot_sprite, @function
plot_sprite:
.LFB43:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -44[rbp], ecx
	mov	DWORD PTR -48[rbp], r8d
	mov	DWORD PTR -52[rbp], r9d
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR 16[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	DWORD PTR -4[rbp], eax
	mov	rdx, QWORD PTR dmap[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	mov	eax, DWORD PTR -52[rbp]
	add	eax, 15
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	ecx, DWORD PTR width[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -8[rbp], edx
	mov	rdx, QWORD PTR dmap[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	mov	eax, DWORD PTR 16[rbp]
	add	eax, 15
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	ecx, DWORD PTR height[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -4[rbp], edx
	mov	rdx, QWORD PTR dmap[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	DWORD PTR -8[rbp], eax
	mov	rdx, QWORD PTR dmap[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR 16[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	sal	eax, 4
	mov	ecx, eax
	mov	eax, DWORD PTR -8[rbp]
	sal	eax, 4
	mov	edx, eax
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	plot_map_tile
	mov	eax, DWORD PTR -52[rbp]
	add	eax, 15
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	ecx, DWORD PTR width[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -8[rbp], edx
	mov	eax, DWORD PTR -4[rbp]
	sal	eax, 4
	mov	ecx, eax
	mov	eax, DWORD PTR -8[rbp]
	sal	eax, 4
	mov	edx, eax
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	plot_map_tile
	mov	eax, DWORD PTR 16[rbp]
	add	eax, 15
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	ecx, DWORD PTR height[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -4[rbp], edx
	mov	eax, DWORD PTR -4[rbp]
	sal	eax, 4
	mov	ecx, eax
	mov	eax, DWORD PTR -8[rbp]
	sal	eax, 4
	mov	edx, eax
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	plot_map_tile
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	sal	eax, 4
	mov	ecx, eax
	mov	eax, DWORD PTR -8[rbp]
	sal	eax, 4
	mov	edx, eax
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	plot_map_tile
	mov	rax, QWORD PTR display[rip]
	mov	rcx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	push	16
	push	16
	mov	edi, DWORD PTR -48[rbp]
	push	rdi
	mov	edi, DWORD PTR -44[rbp]
	push	rdi
	mov	r9d, 0
	mov	r8d, 0
	mov	rdi, rax
	call	XPutImage@PLT
	add	rsp, 32
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE43:
	.size	plot_sprite, .-plot_sprite
	.globl	plot_ghosts
	.type	plot_ghosts, @function
plot_ghosts:
.LFB44:
	.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L224
.L226:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+16]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 4
	je	.L225
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+12]
	mov	edi, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+8]
	mov	r9d, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+4]
	mov	r8d, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+24]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	sub	rsp, 8
	push	rdi
	mov	rdi, rax
	call	plot_sprite
	add	rsp, 16
.L225:
	add	DWORD PTR -4[rbp], 1
.L224:
	mov	eax, DWORD PTR ghostnum[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L226
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE44:
	.size	plot_ghosts, .-plot_ghosts
	.globl	plot_ghosts_eat
	.type	plot_ghosts_eat, @function
plot_ghosts_eat:
.LFB45:
	.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L228
.L231:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+16]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 4
	je	.L229
	mov	eax, DWORD PTR ecount[rip]
	cmp	eax, 31
	jg	.L230
	mov	eax, DWORD PTR ecount[rip]
	and	eax, 1
	test	eax, eax
	jne	.L230
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+12]
	mov	edi, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+8]
	mov	r9d, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+4]
	mov	r8d, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+24]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	sub	rsp, 8
	push	rdi
	mov	rdi, rax
	call	plot_sprite
	add	rsp, 16
	jmp	.L229
.L230:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+12]
	mov	edi, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+8]
	mov	r9d, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+4]
	mov	r8d, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	rdx, QWORD PTR ghostgy[rip]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	sub	rsp, 8
	push	rdi
	mov	rdi, rax
	call	plot_sprite
	add	rsp, 16
.L229:
	add	DWORD PTR -4[rbp], 1
.L228:
	mov	eax, DWORD PTR ghostnum[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L231
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE45:
	.size	plot_ghosts_eat, .-plot_ghosts_eat
	.globl	plot_map_tile
	.type	plot_map_tile, @function
plot_map_tile:
.LFB46:
	.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	mov	DWORD PTR -24[rbp], ecx
	mov	rcx, QWORD PTR dmap[rip]
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	edx, eax
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	movsx	rsi, eax
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	cdqe
	add	rax, rsi
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jne	.L238
	mov	rcx, QWORD PTR dmap[rip]
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	edx, eax
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	movsx	rsi, eax
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	cdqe
	add	rax, rsi
	sal	rax, 2
	add	rax, rcx
	mov	DWORD PTR [rax], 0
	mov	rcx, QWORD PTR map[rip]
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	edx, eax
	mov	eax, DWORD PTR height[rip]
	imul	eax, edx
	movsx	rsi, eax
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	cdqe
	add	rax, rsi
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 3
	je	.L234
	cmp	eax, 3
	ja	.L239
	cmp	eax, 2
	je	.L235
	cmp	eax, 2
	ja	.L239
	test	eax, eax
	je	.L236
	cmp	eax, 1
	je	.L237
	jmp	.L239
.L236:
	mov	rcx, QWORD PTR empty[rip]
	mov	rax, QWORD PTR display[rip]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	push	16
	push	16
	mov	edi, DWORD PTR -24[rbp]
	push	rdi
	mov	edi, DWORD PTR -20[rbp]
	push	rdi
	mov	r9d, 0
	mov	r8d, 0
	mov	rdi, rax
	call	XPutImage@PLT
	add	rsp, 32
	jmp	.L233
.L237:
	mov	rcx, QWORD PTR wall[rip]
	mov	rax, QWORD PTR display[rip]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	push	16
	push	16
	mov	edi, DWORD PTR -24[rbp]
	push	rdi
	mov	edi, DWORD PTR -20[rbp]
	push	rdi
	mov	r9d, 0
	mov	r8d, 0
	mov	rdi, rax
	call	XPutImage@PLT
	add	rsp, 32
	jmp	.L233
.L235:
	mov	rcx, QWORD PTR pill[rip]
	mov	rax, QWORD PTR display[rip]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	push	16
	push	16
	mov	edi, DWORD PTR -24[rbp]
	push	rdi
	mov	edi, DWORD PTR -20[rbp]
	push	rdi
	mov	r9d, 0
	mov	r8d, 0
	mov	rdi, rax
	call	XPutImage@PLT
	add	rsp, 32
	jmp	.L233
.L234:
	mov	rcx, QWORD PTR eatpill[rip]
	mov	rax, QWORD PTR display[rip]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	push	16
	push	16
	mov	edi, DWORD PTR -24[rbp]
	push	rdi
	mov	edi, DWORD PTR -20[rbp]
	push	rdi
	mov	r9d, 0
	mov	r8d, 0
	mov	rdi, rax
	call	XPutImage@PLT
	add	rsp, 32
	jmp	.L233
.L238:
	nop
.L233:
.L239:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE46:
	.size	plot_map_tile, .-plot_map_tile
	.globl	newghostpos_eat
	.type	newghostpos_eat, @function
newghostpos_eat:
.LFB47:
	.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 16[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR 20[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR 32[rbp]
	cmp	eax, 3
	je	.L241
	cmp	eax, 3
	ja	.L242
	cmp	eax, 2
	je	.L243
	cmp	eax, 2
	ja	.L242
	test	eax, eax
	je	.L244
	cmp	eax, 1
	je	.L245
	jmp	.L242
.L244:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 2
	mov	DWORD PTR -4[rbp], eax
	jmp	.L242
.L241:
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 2
	mov	DWORD PTR -8[rbp], eax
	jmp	.L242
.L243:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 2
	mov	DWORD PTR -4[rbp], eax
	jmp	.L242
.L245:
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 2
	mov	DWORD PTR -8[rbp], eax
	nop
.L242:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR width[rip]
	sal	eax, 4
	add	eax, edx
	mov	edx, DWORD PTR width[rip]
	mov	ecx, edx
	sal	ecx, 4
	cdq
	idiv	ecx
	mov	eax, edx
	mov	DWORD PTR -8[rbp], eax
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR height[rip]
	sal	eax, 4
	add	eax, edx
	mov	edx, DWORD PTR height[rip]
	mov	ecx, edx
	sal	ecx, 4
	cdq
	idiv	ecx
	mov	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE47:
	.size	newghostpos_eat, .-newghostpos_eat
	.globl	newghostpos
	.type	newghostpos, @function
newghostpos:
.LFB48:
	.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 16[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR 20[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR 32[rbp]
	cmp	eax, 3
	je	.L248
	cmp	eax, 3
	ja	.L249
	cmp	eax, 2
	je	.L250
	cmp	eax, 2
	ja	.L249
	test	eax, eax
	je	.L251
	cmp	eax, 1
	je	.L252
	jmp	.L249
.L251:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 4
	mov	DWORD PTR -4[rbp], eax
	jmp	.L249
.L248:
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 4
	mov	DWORD PTR -8[rbp], eax
	jmp	.L249
.L250:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 4
	mov	DWORD PTR -4[rbp], eax
	jmp	.L249
.L252:
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 4
	mov	DWORD PTR -8[rbp], eax
	nop
.L249:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR width[rip]
	sal	eax, 4
	add	eax, edx
	mov	edx, DWORD PTR width[rip]
	mov	ecx, edx
	sal	ecx, 4
	cdq
	idiv	ecx
	mov	eax, edx
	mov	DWORD PTR -8[rbp], eax
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR height[rip]
	sal	eax, 4
	add	eax, edx
	mov	edx, DWORD PTR height[rip]
	mov	ecx, edx
	sal	ecx, 4
	cdq
	idiv	ecx
	mov	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE48:
	.size	newghostpos, .-newghostpos
	.globl	update_pacman_position
	.type	update_pacman_position, @function
update_pacman_position:
.LFB49:
	.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	rax, QWORD PTR pacpos[rip]
	mov	QWORD PTR oldpacpos[rip], rax
	mov	edx, DWORD PTR pacpos[rip]
	mov	eax, DWORD PTR pacpos[rip+4]
	add	eax, edx
	and	eax, 15
	test	eax, eax
	jne	.L259
	mov	eax, DWORD PTR pacdir[rip]
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR newdir[rip]
	mov	DWORD PTR pacdir[rip], eax
	call	newpacpos
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	DWORD PTR -28[rbp], eax
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -32[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 15
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	ecx, DWORD PTR width[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -32[rbp], edx
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -32[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 15
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	ecx, DWORD PTR height[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -28[rbp], edx
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -32[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	edx, eax
	mov	eax, DWORD PTR width[rip]
	add	eax, edx
	mov	ecx, DWORD PTR width[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -32[rbp], edx
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -32[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -24[rbp], 1
	je	.L256
	cmp	DWORD PTR -20[rbp], 1
	je	.L256
	cmp	DWORD PTR -16[rbp], 1
	je	.L256
	cmp	DWORD PTR -12[rbp], 1
	je	.L256
	mov	eax, DWORD PTR -8[rbp]
	test	eax, eax
	js	.L256
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, DWORD PTR width[rip]
	sub	edx, 1
	sal	edx, 4
	cmp	eax, edx
	jg	.L256
	mov	eax, DWORD PTR -4[rbp]
	test	eax, eax
	js	.L256
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, DWORD PTR height[rip]
	sub	edx, 1
	sal	edx, 4
	cmp	eax, edx
	jle	.L259
.L256:
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR pacdir[rip], eax
.L259:
	call	newpacpos
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	DWORD PTR -28[rbp], eax
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -32[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 15
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	ecx, DWORD PTR width[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -32[rbp], edx
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -32[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 15
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	ecx, DWORD PTR height[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -28[rbp], edx
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -32[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	edx, eax
	mov	eax, DWORD PTR width[rip]
	add	eax, edx
	mov	ecx, DWORD PTR width[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -32[rbp], edx
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -32[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -24[rbp], 1
	je	.L257
	cmp	DWORD PTR -20[rbp], 1
	je	.L257
	cmp	DWORD PTR -16[rbp], 1
	je	.L257
	cmp	DWORD PTR -12[rbp], 1
	je	.L257
	mov	eax, DWORD PTR -8[rbp]
	test	eax, eax
	js	.L257
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, DWORD PTR width[rip]
	sub	edx, 1
	sal	edx, 4
	cmp	eax, edx
	jg	.L257
	mov	eax, DWORD PTR -4[rbp]
	test	eax, eax
	js	.L257
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, DWORD PTR height[rip]
	sub	edx, 1
	sal	edx, 4
	cmp	eax, edx
	jle	.L258
.L257:
	mov	eax, DWORD PTR pacdir[rip]
	add	eax, 1
	and	eax, 3
	mov	DWORD PTR pacdir[rip], eax
	mov	eax, DWORD PTR pacdir[rip]
	mov	DWORD PTR newdir[rip], eax
.L258:
	cmp	DWORD PTR -24[rbp], 1
	je	.L259
	cmp	DWORD PTR -20[rbp], 1
	je	.L259
	cmp	DWORD PTR -16[rbp], 1
	je	.L259
	cmp	DWORD PTR -12[rbp], 1
	je	.L259
	mov	eax, DWORD PTR -8[rbp]
	test	eax, eax
	js	.L259
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, DWORD PTR width[rip]
	sub	edx, 1
	sal	edx, 4
	cmp	eax, edx
	jg	.L259
	mov	eax, DWORD PTR -4[rbp]
	test	eax, eax
	js	.L259
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, DWORD PTR height[rip]
	sub	edx, 1
	sal	edx, 4
	cmp	eax, edx
	jg	.L259
	call	newpacpos
	mov	QWORD PTR pacpos[rip], rax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE49:
	.size	update_pacman_position, .-update_pacman_position
	.globl	update_ghost_position
	.type	update_ghost_position, @function
update_ghost_position:
.LFB50:
	.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
	call	get_rand
	and	eax, 1
	test	eax, eax
	jne	.L263
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	add	eax, edx
	and	eax, 15
	test	eax, eax
	jne	.L263
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	ebx, DWORD PTR 16[rax]
	call	get_rand
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	add	eax, eax
	add	eax, ebx
	add	eax, 1
	and	eax, 3
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -40[rbp]
	push	QWORD PTR 24[rax]
	push	QWORD PTR 16[rax]
	push	QWORD PTR 8[rax]
	push	QWORD PTR [rax]
	call	newghostpos
	add	rsp, 32
	mov	QWORD PTR -24[rbp], rax
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, edx
	mov	edi, eax
	call	valid_position
	test	eax, eax
	jne	.L263
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR 16[rax], edx
.L263:
	mov	rax, QWORD PTR -40[rbp]
	push	QWORD PTR 24[rax]
	push	QWORD PTR 16[rax]
	push	QWORD PTR 8[rax]
	push	QWORD PTR [rax]
	call	newghostpos
	add	rsp, 32
	mov	QWORD PTR -24[rbp], rax
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, edx
	mov	edi, eax
	call	valid_position
	test	eax, eax
	jne	.L262
	call	get_rand
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 16[rax], edx
.L262:
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, edx
	mov	edi, eax
	call	valid_position
	test	eax, eax
	je	.L263
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 4[rax], edx
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE50:
	.size	update_ghost_position, .-update_ghost_position
	.globl	update_ghost_position_eat
	.type	update_ghost_position_eat, @function
update_ghost_position_eat:
.LFB51:
	.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
	call	get_rand
	and	eax, 1
	test	eax, eax
	jne	.L267
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	add	eax, edx
	and	eax, 15
	test	eax, eax
	jne	.L267
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	ebx, DWORD PTR 16[rax]
	call	get_rand
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	add	eax, eax
	add	eax, ebx
	add	eax, 1
	and	eax, 3
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -40[rbp]
	push	QWORD PTR 24[rax]
	push	QWORD PTR 16[rax]
	push	QWORD PTR 8[rax]
	push	QWORD PTR [rax]
	call	newghostpos_eat
	add	rsp, 32
	mov	QWORD PTR -24[rbp], rax
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, edx
	mov	edi, eax
	call	valid_position
	test	eax, eax
	jne	.L267
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR 16[rax], edx
.L267:
	mov	rax, QWORD PTR -40[rbp]
	push	QWORD PTR 24[rax]
	push	QWORD PTR 16[rax]
	push	QWORD PTR 8[rax]
	push	QWORD PTR [rax]
	call	newghostpos_eat
	add	rsp, 32
	mov	QWORD PTR -24[rbp], rax
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, edx
	mov	edi, eax
	call	valid_position
	test	eax, eax
	jne	.L266
	call	get_rand
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 16[rax], edx
.L266:
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, edx
	mov	edi, eax
	call	valid_position
	test	eax, eax
	je	.L267
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 4[rax], edx
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE51:
	.size	update_ghost_position_eat, .-update_ghost_position_eat
	.globl	update_ghosts
	.type	update_ghosts, @function
update_ghosts:
.LFB52:
	.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	.L269
.L270:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip]
	add	rax, rdx
	mov	rdi, rax
	call	update_ghost_position
	add	DWORD PTR -4[rbp], 1
.L269:
	mov	eax, DWORD PTR ghostnum[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L270
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE52:
	.size	update_ghosts, .-update_ghosts
	.globl	update_ghosts_eat
	.type	update_ghosts_eat, @function
update_ghosts_eat:
.LFB53:
	.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	.L272
.L273:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip]
	add	rax, rdx
	mov	rdi, rax
	call	update_ghost_position_eat
	add	DWORD PTR -4[rbp], 1
.L272:
	mov	eax, DWORD PTR ghostnum[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L273
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE53:
	.size	update_ghosts_eat, .-update_ghosts_eat
	.globl	valid_position
	.type	valid_position, @function
valid_position:
.LFB54:
	.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 -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	DWORD PTR -20[rbp], eax
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -24[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 15
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	ecx, DWORD PTR width[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -24[rbp], edx
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -24[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, 15
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	ecx, DWORD PTR height[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -20[rbp], edx
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -24[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, 15[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 4
	mov	edx, eax
	mov	eax, DWORD PTR width[rip]
	add	eax, edx
	mov	ecx, DWORD PTR width[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -24[rbp], edx
	mov	rdx, QWORD PTR map[rip]
	mov	eax, DWORD PTR height[rip]
	imul	eax, DWORD PTR -24[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -16[rbp], 1
	je	.L275
	cmp	DWORD PTR -12[rbp], 1
	je	.L275
	cmp	DWORD PTR -8[rbp], 1
	je	.L275
	cmp	DWORD PTR -4[rbp], 1
	je	.L275
	cmp	DWORD PTR -36[rbp], 0
	js	.L275
	mov	eax, DWORD PTR width[rip]
	sub	eax, 1
	sal	eax, 4
	cmp	DWORD PTR -36[rbp], eax
	jg	.L275
	cmp	DWORD PTR -40[rbp], 0
	js	.L275
	mov	eax, DWORD PTR height[rip]
	sub	eax, 1
	sal	eax, 4
	cmp	DWORD PTR -40[rbp], eax
	jle	.L276
.L275:
	mov	eax, 0
	jmp	.L277
.L276:
	mov	eax, 1
.L277:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE54:
	.size	valid_position, .-valid_position
	.globl	init_game
	.type	init_game, @function
init_game:
.LFB55:
	.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	edi, 0
	call	time@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR randseed[rip], eax
	call	setup_map_memory
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE55:
	.size	init_game, .-init_game
	.globl	test_collide
	.type	test_collide, @function
test_collide:
.LFB56:
	.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	DWORD PTR -16[rbp], ecx
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, DWORD PTR -4[rbp]
	cmp	eax, -14
	jl	.L280
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, DWORD PTR -4[rbp]
	cmp	eax, 14
	jg	.L280
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, DWORD PTR -8[rbp]
	cmp	eax, -14
	jl	.L280
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, DWORD PTR -8[rbp]
	cmp	eax, 14
	jg	.L280
	mov	eax, 1
	jmp	.L282
.L280:
	mov	eax, 0
.L282:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE56:
	.size	test_collide, .-test_collide
	.globl	test_ghost_collide
	.type	test_ghost_collide, @function
test_ghost_collide:
.LFB57:
	.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	.L284
.L287:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+16]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 4
	je	.L285
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+4]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	esi, DWORD PTR pacpos[rip+4]
	mov	eax, DWORD PTR pacpos[rip]
	mov	edi, eax
	call	test_collide
	test	eax, eax
	je	.L285
	mov	eax, 1
	jmp	.L286
.L285:
	add	DWORD PTR -4[rbp], 1
.L284:
	mov	eax, DWORD PTR ghostnum[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L287
	mov	eax, 0
.L286:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE57:
	.size	test_ghost_collide, .-test_ghost_collide
	.globl	which_ghost_collide
	.type	which_ghost_collide, @function
which_ghost_collide:
.LFB58:
	.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	.L289
.L292:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+16]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 4
	je	.L290
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip+4]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, ghosts[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	esi, DWORD PTR pacpos[rip+4]
	mov	eax, DWORD PTR pacpos[rip]
	mov	edi, eax
	call	test_collide
	test	eax, eax
	je	.L290
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L291
.L290:
	add	DWORD PTR -4[rbp], 1
.L289:
	mov	eax, DWORD PTR ghostnum[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L292
	mov	eax, -1
.L291:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE58:
	.size	which_ghost_collide, .-which_ghost_collide
	.globl	setup_eatpill
	.type	setup_eatpill, @function
setup_eatpill:
.LFB59:
	.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	QWORD PTR -8[rbp], rdi
	mov	edx, DWORD PTR cvals[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	setup_blank
	mov	edx, DWORD PTR cvals[rip+8]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 9
	mov	edx, 6
	mov	esi, 4
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+8]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 10
	mov	edx, 5
	mov	esi, 5
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+8]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 11
	mov	edx, 4
	mov	esi, 6
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+8]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 11
	mov	edx, 4
	mov	esi, 7
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+8]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 11
	mov	edx, 4
	mov	esi, 8
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+8]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 11
	mov	edx, 4
	mov	esi, 9
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+8]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 10
	mov	edx, 5
	mov	esi, 10
	mov	rdi, rax
	call	draw_x_line
	mov	edx, DWORD PTR cvals[rip+8]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 9
	mov	edx, 6
	mov	esi, 11
	mov	rdi, rax
	call	draw_x_line
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE59:
	.size	setup_eatpill, .-setup_eatpill
	.data
	.type	dash_list.0, @object
	.size	dash_list.0, 2
dash_list.0:
	.ascii	"\f\030"
	.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	"936445.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"width\000"
	.align	2
.LC1:
	.ascii	"height\000"
	.align	2
.LC2:
	.ascii	"leftkey\000"
	.align	2
.LC3:
	.ascii	"rightkey\000"
	.align	2
.LC4:
	.ascii	"upkey\000"
	.align	2
.LC5:
	.ascii	"downkey\000"
	.align	2
.LC6:
	.ascii	"quitkey\000"
	.align	2
.LC7:
	.ascii	"level\000"
	.align	2
.LC8:
	.ascii	"framerate\000"
	.text
	.comm	gamestate,4,4
	.comm	cvals,36,4
	.comm	display,4,4
	.comm	screen,4,4
	.local	pname
	.comm	pname,4,4
	.comm	empty,4,4
	.comm	wall,4,4
	.comm	pill,4,4
	.comm	pacmanu2,4,4
	.comm	pacmanu1,4,4
	.comm	pacmanu0,4,4
	.comm	pacmanr2,4,4
	.comm	pacmanr1,4,4
	.comm	pacmanr0,4,4
	.comm	pacmand2,4,4
	.comm	pacmand1,4,4
	.comm	pacmand0,4,4
	.comm	pacmanl2,4,4
	.comm	pacmanl1,4,4
	.comm	pacmanl0,4,4
	.comm	ghostr,4,4
	.comm	ghostw,4,4
	.comm	ghostb,4,4
	.comm	ghostg,4,4
	.comm	ghostgy,4,4
	.comm	eatpill,4,4
	.comm	emptyd,4,4
	.comm	walld,4,4
	.comm	pilld,4,4
	.comm	pacmanu2d,4,4
	.comm	pacmanu1d,4,4
	.comm	pacmanu0d,4,4
	.comm	pacmanr2d,4,4
	.comm	pacmanr1d,4,4
	.comm	pacmanr0d,4,4
	.comm	pacmand2d,4,4
	.comm	pacmand1d,4,4
	.comm	pacmand0d,4,4
	.comm	pacmanl2d,4,4
	.comm	pacmanl1d,4,4
	.comm	pacmanl0d,4,4
	.comm	ghostrd,4,4
	.comm	ghostwd,4,4
	.comm	ghostbd,4,4
	.comm	ghostgd,4,4
	.comm	ghostgyd,4,4
	.comm	eatpilld,4,4
	.comm	map,4,4
	.comm	dmap,4,4
	.comm	cdmap,4,4
	.comm	depth,4,4
	.global	width
	.data
	.align	2
	.type	width, %object
	.size	width, 4
width:
	.word	33
	.global	height
	.align	2
	.type	height, %object
	.size	height, 4
height:
	.word	33
	.global	difficulty
	.bss
	.align	2
	.type	difficulty, %object
	.size	difficulty, 4
difficulty:
	.space	4
	.global	randseed
	.data
	.align	2
	.type	randseed, %object
	.size	randseed, 4
randseed:
	.word	5755585
	.comm	pillnum,4,4
	.comm	pacpos,8,4
	.comm	oldpacpos,8,4
	.comm	pacdir,4,4
	.comm	newdir,4,4
	.comm	ghosts,1536,4
	.global	ghostnum
	.align	2
	.type	ghostnum, %object
	.size	ghostnum, 4
ghostnum:
	.word	4
	.comm	cghostnum,4,4
	.comm	ecount,4,4
	.section	.rodata
	.align	2
.LC12:
	.ascii	"%[A-Za-z]\000"
	.align	2
.LC13:
	.ascii	"-%*[A-Za-z]%d\000"
	.align	2
.LC14:
	.ascii	"%d\000"
	.align	2
.LC15:
	.ascii	"No value found for option %s\012\000"
	.align	2
.LC16:
	.ascii	"%s\000"
	.align	2
.LC17:
	.ascii	"No string found for option %s\012\000"
	.align	2
.LC18:
	.ascii	"%c\000"
	.align	2
.LC19:
	.ascii	"No character found for option %s\012\000"
	.align	2
.LC20:
	.ascii	"Option %s not recognised.\012 \000"
	.align	2
.LC21:
	.ascii	"Usage: %s \000"
	.align	2
.LC22:
	.ascii	"[-%s \000"
	.align	2
.LC23:
	.ascii	"<number>] \000"
	.align	2
.LC24:
	.ascii	"<string>] \000"
	.align	2
.LC25:
	.ascii	"] \000"
	.align	2
.LC26:
	.ascii	"<character>] \000"
	.global	__aeabi_idiv
	.align	2
.LC27:
	.ascii	"xpac 0.12\000"
	.align	2
.LC28:
	.ascii	"xpac 0.12\012Use %c up %c down %c left %c right %c "
	.ascii	"quit \012\000"
	.align	2
.LC29:
	.ascii	"%s: can't connect to X server %s.\012\000"
	.align	2
.LC30:
	.ascii	"%s: structure window_title_property can't be alloca"
	.ascii	"ted.\012\000"
	.align	2
.LC31:
	.ascii	"Snake\000"
	.align	2
.LC32:
	.ascii	"%s: Problem with gettimeofday()!\012\000"
	.align	2
.LC11:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.align	2
.LC10:
	.word	0
	.word	0
	.word	3
	.word	3
	.word	3
	.word	3
	.word	3
	.word	0
	.word	0
	.align	2
.LC33:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 504
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #540
	str	r0, [fp, #-520]
	str	r1, [fp, #-524]
	ldr	r3, .L60
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #4
	str	r3, [fp, #-468]
	mov	r3, #0
	str	r3, [fp, #-464]
	mov	r3, #20
	str	r3, [fp, #-460]
	mov	r3, #119
	strb	r3, [fp, #-509]
	mov	r3, #97
	strb	r3, [fp, #-508]
	mov	r3, #115
	strb	r3, [fp, #-507]
	mov	r3, #100
	strb	r3, [fp, #-506]
	mov	r3, #113
	strb	r3, [fp, #-505]
	mov	r3, #15
	str	r3, [fp, #-488]
	ldr	r3, .L60+4
	sub	ip, fp, #268
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	ldr	r3, .L60+8
	sub	ip, fp, #196
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	mov	r3, #0
	str	r3, [fp, #-472]
	ldr	r3, .L60+12
	str	r3, [fp, #-232]
	ldr	r3, .L60+16
	str	r3, [fp, #-228]
	sub	r3, fp, #504
	sub	r3, r3, #2
	str	r3, [fp, #-220]
	sub	r3, fp, #508
	str	r3, [fp, #-224]
	sub	r3, fp, #508
	sub	r3, r3, #1
	str	r3, [fp, #-216]
	sub	r3, fp, #504
	sub	r3, r3, #3
	str	r3, [fp, #-212]
	sub	r3, fp, #504
	sub	r3, r3, #1
	str	r3, [fp, #-208]
	ldr	r3, .L60+20
	str	r3, [fp, #-204]
	sub	r3, fp, #488
	str	r3, [fp, #-200]
	ldr	r3, [fp, #-524]
	ldr	r3, [r3]
	ldr	r2, .L60+24
	str	r3, [r2]
	mov	r3, #1
	str	r3, [fp, #-476]
	b	.L2
.L21:
	mov	r3, #0
	str	r3, [fp, #-480]
	ldr	r3, [fp, #-476]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-524]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	sub	r2, fp, #44
	ldr	r1, .L60+28
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, #0
	str	r3, [fp, #-484]
	b	.L3
.L19:
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r3, [r3, #-248]
	sub	r2, fp, #44
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L57
	mov	r3, #1
	str	r3, [fp, #-480]
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r3, [r3, #-176]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L9:
	ldr	r3, [fp, #-476]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-524]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r3, [r3, #-212]
	mov	r2, r3
	ldr	r1, .L60+32
	bl	__isoc99_sscanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L58
	ldr	r3, [fp, #-476]
	add	r3, r3, #1
	ldr	r2, [fp, #-520]
	cmp	r2, r3
	ble	.L11
	ldr	r3, [fp, #-476]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-524]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r3, [r3, #-212]
	mov	r2, r3
	ldr	r1, .L60+36
	bl	__isoc99_sscanf
	mov	r3, r0
	cmn	r3, #1
	beq	.L12
	ldr	r3, [fp, #-476]
	add	r3, r3, #1
	str	r3, [fp, #-476]
	b	.L58
.L12:
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L60+40
	bl	printf
	b	.L58
.L11:
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L60+40
	bl	printf
	b	.L58
.L8:
	ldr	r3, [fp, #-476]
	add	r3, r3, #1
	ldr	r2, [fp, #-520]
	cmp	r2, r3
	ble	.L13
	ldr	r3, [fp, #-476]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-524]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r3, [r3, #-212]
	mov	r2, r3
	ldr	r1, .L60+44
	bl	__isoc99_sscanf
	mov	r3, r0
	cmn	r3, #1
	beq	.L14
	ldr	r3, [fp, #-476]
	add	r3, r3, #1
	str	r3, [fp, #-476]
	b	.L4
.L14:
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L60+48
	bl	printf
	b	.L4
.L13:
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L60+48
	bl	printf
	b	.L4
.L7:
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r3, [r3, #-212]
	ldr	r3, [r3]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r2, r3, #255
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #2
	sub	r1, fp, #20
	add	r3, r1, r3
	ldr	r3, [r3, #-212]
	str	r2, [r3]
	b	.L4
.L5:
	ldr	r3, [fp, #-476]
	add	r3, r3, #1
	ldr	r2, [fp, #-520]
	cmp	r2, r3
	ble	.L16
	ldr	r3, [fp, #-476]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-524]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r3, [r3, #-212]
	mov	r2, r3
	ldr	r1, .L60+52
	bl	__isoc99_sscanf
	mov	r3, r0
	cmn	r3, #1
	beq	.L17
	ldr	r3, [fp, #-476]
	add	r3, r3, #1
	str	r3, [fp, #-476]
	b	.L4
.L17:
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L60+56
	bl	printf
	b	.L4
.L16:
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L60+56
	bl	printf
	b	.L4
.L57:
	nop
	b	.L4
.L58:
	nop
.L4:
	ldr	r3, [fp, #-484]
	add	r3, r3, #1
	str	r3, [fp, #-484]
.L3:
	ldr	r3, [fp, #-484]
	cmp	r3, #8
	ble	.L19
	ldr	r3, [fp, #-480]
	cmp	r3, #0
	bne	.L20
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L60+60
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-472]
.L20:
	ldr	r3, [fp, #-476]
	add	r3, r3, #1
	str	r3, [fp, #-476]
.L2:
	ldr	r2, [fp, #-476]
	ldr	r3, [fp, #-520]
	cmp	r2, r3
	blt	.L21
	ldr	r3, [fp, #-472]
	cmp	r3, #0
	beq	.L22
	ldr	r3, .L60+24
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L60+64
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-484]
	b	.L23
.L30:
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r3, [r3, #-248]
	mov	r1, r3
	ldr	r0, .L60+68
	bl	printf
	ldr	r3, [fp, #-484]
	lsl	r3, r3, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r3, [r3, #-176]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L24
.L26:
	.word	.L29
	.word	.L28
	.word	.L27
	.word	.L25
.L29:
	ldr	r0, .L60+72
	bl	printf
	b	.L24
.L28:
	ldr	r0, .L60+76
	bl	printf
	b	.L24
.L27:
	ldr	r0, .L60+80
	bl	printf
	b	.L24
.L25:
	ldr	r0, .L60+84
	bl	printf
	nop
.L24:
	ldr	r3, [fp, #-484]
	add	r3, r3, #1
	str	r3, [fp, #-484]
.L23:
	ldr	r3, [fp, #-484]
	cmp	r3, #8
	ble	.L30
	mov	r0, #10
	bl	putchar
.L22:
	ldr	r3, [fp, #-488]
	mov	r1, r3
	mov	r0, #1000
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-456]
	mov	r0, #256
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-504]
	ldr	r3, [fp, #-504]
	ldr	r1, .L60+88
	mov	r0, r3
	bl	sprintf
	ldrb	r3, [fp, #-509]	@ zero_extendqisi2
	mov	r1, r3
	ldrb	r3, [fp, #-507]	@ zero_extendqisi2
	mov	r0, r3
	ldrb	r3, [fp, #-506]	@ zero_extendqisi2
	mov	ip, r3
	ldrb	r3, [fp, #-508]	@ zero_extendqisi2
	ldrb	r2, [fp, #-505]	@ zero_extendqisi2
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r0, .L60+92
	bl	printf
	ldr	r0, [fp, #-464]
	bl	XOpenDisplay
	mov	r3, r0
	ldr	r2, .L60+96
	str	r3, [r2]
	ldr	r3, .L60+96
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L31
	ldr	r3, .L60+100
	ldr	r0, [r3]
	ldr	r3, .L60+24
	ldr	r2, [r3]
	ldr	r3, [fp, #-464]
	ldr	r1, .L60+104
	bl	fprintf
	mov	r0, #0
	bl	exit
.L31:
	ldr	r3, .L60+96
	ldr	r3, [r3]
	ldr	r3, [r3, #132]
	ldr	r2, .L60+108
	str	r3, [r2]
	ldr	r3, .L60+96
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L60+108
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #36]
	ldr	r2, .L60+112
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-452]
	mov	r3, #0
	str	r3, [fp, #-448]
	ldr	r3, .L60+12
	ldr	r3, [r3]
	lsl	r3, r3, #4
	str	r3, [fp, #-444]
	ldr	r3, .L60+16
	ldr	r3, [r3]
	lsl	r3, r3, #4
	str	r3, [fp, #-440]
	ldr	r3, .L60+96
	ldr	r4, [r3]
	ldr	r3, .L60+96
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L60+108
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r5, [r3, #8]
	ldr	r2, [fp, #-444]
	ldr	r1, [fp, #-440]
	ldr	r0, [fp, #-468]
	ldr	r3, .L60+112
	ldr	ip, [r3]
	ldr	r3, .L60+96
	ldr	r3, [r3]
	ldr	lr, [r3, #140]
	ldr	r3, .L60+108
	ldr	r3, [r3]
	mov	r6, r3
	mov	r3, r6
	lsl	r3, r3, #2
	add	r3, r3, r6
	lsl	r3, r3, #4
	add	r3, lr, r3
	ldr	r3, [r3, #40]
	mov	lr, #0
	str	lr, [sp, #28]
	mov	lr, #0
	str	lr, [sp, #24]
	str	r3, [sp, #20]
	mov	r3, #1
	str	r3, [sp, #16]
	str	ip, [sp, #12]
	str	r0, [sp, #8]
	str	r1, [sp, #4]
	str	r2, [sp]
	ldr	r3, [fp, #-448]
	ldr	r2, [fp, #-452]
	mov	r1, r5
	mov	r0, r4
	bl	XCreateWindow
	str	r0, [fp, #-436]
	mov	r3, #60
	str	r3, [fp, #-340]
	ldr	r3, [fp, #-444]
	str	r3, [fp, #-320]
	ldr	r3, [fp, #-440]
	str	r3, [fp, #-316]
	ldr	r3, [fp, #-444]
	str	r3, [fp, #-312]
	ldr	r3, [fp, #-440]
	str	r3, [fp, #-308]
	sub	r2, fp, #392
	sub	r3, fp, #504
	mov	r1, #1
	mov	r0, r3
	bl	XStringListToTextProperty
	mov	r3, r0
	cmp	r3, #0
	bne	.L32
	ldr	r3, .L60+100
	ldr	r3, [r3]
	ldr	r2, .L60+24
	ldr	r2, [r2]
	ldr	r1, .L60+116
	mov	r0, r3
	bl	fprintf
.L32:
	mov	r3, #1
	str	r3, [fp, #-368]
	mov	r3, #1
	str	r3, [fp, #-372]
	mov	r3, #3
	str	r3, [fp, #-376]
	ldr	r3, .L60+24
	ldr	r3, [r3]
	str	r3, [fp, #-424]
	ldr	r3, .L60+120
	str	r3, [fp, #-420]
	ldr	r3, .L60+96
	ldr	r0, [r3]
	sub	r2, fp, #392
	sub	r3, fp, #424
	str	r3, [sp, #16]
	sub	r3, fp, #376
	str	r3, [sp, #12]
	sub	r3, fp, #340
	str	r3, [sp, #8]
	ldr	r3, [fp, #-520]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-524]
	str	r3, [sp]
	mov	r3, #0
	ldr	r1, [fp, #-436]
	bl	XSetWMProperties
	ldr	r3, .L60+96
	ldr	r3, [r3]
	ldr	r2, .L60+124
	ldr	r1, [fp, #-436]
	mov	r0, r3
	bl	XSelectInput
	sub	r3, fp, #496
	mov	r0, r3
	bl	ld_font
	ldr	r2, [fp, #-496]
	sub	r3, fp, #500
	mov	r1, r3
	ldr	r0, [fp, #-436]
	bl	getGC
	ldr	r3, .L60+96
	ldr	r3, [r3]
	ldr	r1, [fp, #-436]
	mov	r0, r3
	bl	XMapWindow
	ldr	r0, [fp, #-436]
	bl	make_image
	ldr	r3, .L60+128
	mov	r2, #11
	str	r2, [r3]
	bl	init_game
.L55:
	sub	r3, fp, #400
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	mov	r3, r0
	cmp	r3, #0
	beq	.L33
	ldr	r3, .L60+100
	ldr	r3, [r3]
	ldr	r2, .L60+24
	ldr	r2, [r2]
	ldr	r1, .L60+132
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L33:
	ldr	r2, [fp, #-400]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r1, r3
	ldr	r3, [fp, #-396]
	ldr	r2, .L60+136
	smull	r0, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r3, r2, r3
	add	r3, r1, r3
	str	r3, [fp, #-432]
	ldr	r3, .L60+128
	ldr	r3, [r3]
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L34
	bl	setup_maze
	bl	setup_game
	ldr	r3, .L60+128
	ldr	r3, [r3]
	bic	r3, r3, #8
	ldr	r2, .L60+128
	str	r3, [r2]
	bl	reset_display_map
	ldr	r3, [fp, #-500]
	mov	r1, r3
	ldr	r0, [fp, #-436]
	bl	update_image_from_map
.L34:
	ldr	r3, .L60+128
	ldr	r3, [r3]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L35
	bl	setup_game
	ldr	r3, .L60+128
	ldr	r3, [r3]
	bic	r3, r3, #4
	ldr	r2, .L60+128
	str	r3, [r2]
	bl	reset_display_map
	ldr	r3, [fp, #-500]
	mov	r1, r3
	ldr	r0, [fp, #-436]
	bl	update_image_from_map
.L35:
	ldr	r3, .L60+128
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	bne	.L38
	ldr	r3, .L60+128
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L38
	ldr	r3, .L60+128
	ldr	r3, [r3]
	and	r3, r3, #32
	cmp	r3, #0
	beq	.L37
	ldr	r3, [fp, #-500]
	mov	r1, r3
	ldr	r0, [fp, #-436]
	bl	update_image_eat
	bl	update_game_eat
	ldr	r3, .L60+140
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L60+140
	str	r3, [r2]
	ldr	r3, .L60+140
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L38
	ldr	r3, .L60+128
	ldr	r3, [r3]
	bic	r3, r3, #32
	ldr	r2, .L60+128
	str	r3, [r2]
	b	.L38
.L37:
	ldr	r3, [fp, #-500]
	mov	r1, r3
	ldr	r0, [fp, #-436]
	bl	update_image
	bl	update_game
	b	.L38
.L52:
	ldr	r3, [fp, #-160]
	sub	r3, r3, #2
	cmp	r3, #20
	ldrls	pc, [pc, r3, asl #2]
	b	.L59
.L41:
	.word	.L45
	.word	.L59
	.word	.L59
	.word	.L59
	.word	.L59
	.word	.L59
	.word	.L59
	.word	.L44
	.word	.L43
	.word	.L59
	.word	.L42
	.word	.L59
	.word	.L59
	.word	.L59
	.word	.L59
	.word	.L59
	.word	.L59
	.word	.L59
	.word	.L59
	.word	.L59
	.word	.L38
.L42:
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	beq	.L46
	b	.L38
.L46:
	bl	reset_display_map
	ldr	r3, [fp, #-500]
	mov	r1, r3
	ldr	r0, [fp, #-436]
	bl	update_image_from_map
	ldr	r3, [fp, #-500]
	mov	r1, r3
	ldr	r0, [fp, #-436]
	bl	update_image
	b	.L38
.L45:
	sub	r2, fp, #492
	sub	r1, fp, #64
	sub	r0, fp, #160
	sub	r3, fp, #416
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-460]
	bl	XLookupString
	ldrb	r3, [fp, #-64]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	ldrb	r2, [fp, #-509]	@ zero_extendqisi2
	cmp	r3, r2
	bne	.L47
	ldr	r3, .L60+144
	mov	r2, #0
	str	r2, [r3]
.L47:
	ldrb	r3, [fp, #-64]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	ldrb	r2, [fp, #-508]	@ zero_extendqisi2
	cmp	r3, r2
	bne	.L48
	ldr	r3, .L60+144
	mov	r2, #1
	str	r2, [r3]
.L48:
	ldrb	r3, [fp, #-64]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	ldrb	r2, [fp, #-507]	@ zero_extendqisi2
	cmp	r3, r2
	bne	.L49
	ldr	r3, .L60+144
	mov	r2, #2
	str	r2, [r3]
.L49:
	ldrb	r3, [fp, #-64]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	ldrb	r2, [fp, #-506]	@ zero_extendqisi2
	cmp	r3, r2
	bne	.L50
	ldr	r3, .L60+144
	mov	r2, #3
	str	r2, [r3]
.L50:
	ldrb	r3, [fp, #-64]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	ldrb	r2, [fp, #-505]	@ zero_extendqisi2
	cmp	r3, r2
	bne	.L38
	bl	free_memory
	ldr	r3, .L60+96
	ldr	r2, [r3]
	ldr	r3, [fp, #-496]
	ldr	r3, [r3, #4]
	mov	r1, r3
	mov	r0, r2
	bl	XUnloadFont
	ldr	r3, .L60+96
	ldr	r3, [r3]
	ldr	r2, [fp, #-500]
	mov	r1, r2
	mov	r0, r3
	bl	XFreeGC
	ldr	r3, .L60+96
	ldr	r3, [r3]
	mov	r0, r3
	bl	XCloseDisplay
	mov	r0, #1
	bl	exit
.L44:
	ldr	r3, .L60+128
	ldr	r3, [r3]
	bic	r3, r3, #2
	ldr	r2, .L60+128
	str	r3, [r2]
	b	.L38
.L43:
	ldr	r3, .L60+128
	ldr	r3, [r3]
	orr	r3, r3, #2
	ldr	r2, .L60+128
	str	r3, [r2]
	b	.L38
.L59:
	nop
.L38:
	ldr	r3, .L60+96
	ldr	r3, [r3]
	sub	r2, fp, #160
	ldr	r1, .L60+124
	mov	r0, r3
	bl	XCheckMaskEvent
	mov	r3, r0
	cmp	r3, #0
	bne	.L52
	sub	r3, fp, #408
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	mov	r3, r0
	cmp	r3, #0
	beq	.L53
	ldr	r3, .L60+100
	ldr	r3, [r3]
	ldr	r2, .L60+24
	ldr	r2, [r2]
	ldr	r1, .L60+132
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L53:
	ldr	r2, [fp, #-408]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r1, r3
	ldr	r3, [fp, #-404]
	ldr	r2, .L60+136
	smull	r0, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r3, r2, r3
	add	r3, r1, r3
	str	r3, [fp, #-428]
	ldr	r2, [fp, #-432]
	ldr	r3, [fp, #-456]
	add	r3, r2, r3
	ldr	r2, [fp, #-428]
	cmp	r2, r3
	blt	.L38
	b	.L55
.L61:
	.align	2
.L60:
	.word	.LC33
	.word	.LC11
	.word	.LC10
	.word	width
	.word	height
	.word	difficulty
	.word	pname
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	display
	.word	stderr
	.word	.LC29
	.word	screen
	.word	depth
	.word	.LC30
	.word	.LC31
	.word	2260993
	.word	gamestate
	.word	.LC32
	.word	274877907
	.word	ecount
	.word	newdir
	.size	main, .-main
	.section	.rodata
	.align	2
.LC34:
	.ascii	"9x15\000"
	.align	2
.LC35:
	.ascii	"%s: cannot open font '9x15'.\012\000"
	.text
	.align	2
	.global	ld_font
	.syntax unified
	.arm
	.fpu softvfp
	.type	ld_font, %function
ld_font:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L65
	str	r3, [fp, #-8]
	ldr	r3, .L65+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	XLoadQueryFont
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L64
	ldr	r3, .L65+8
	ldr	r3, [r3]
	ldr	r2, .L65+12
	ldr	r2, [r2]
	ldr	r1, .L65+16
	mov	r0, r3
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L64:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L66:
	.align	2
.L65:
	.word	.LC34
	.word	display
	.word	stderr
	.word	pname
	.word	.LC35
	.size	ld_font, .-ld_font
	.section	.rodata
	.align	2
.LC36:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getGC
	.syntax unified
	.arm
	.fpu softvfp
	.type	getGC, %function
getGC:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	str	r2, [fp, #-144]
	ldr	r3, .L69
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-128]
	mov	r3, #1
	str	r3, [fp, #-124]
	mov	r3, #0
	str	r3, [fp, #-120]
	mov	r3, #2
	str	r3, [fp, #-116]
	mov	r3, #1
	str	r3, [fp, #-112]
	mov	r3, #0
	str	r3, [fp, #-108]
	mov	r3, #2
	str	r3, [fp, #-104]
	ldr	r3, .L69+4
	ldr	r0, [r3]
	sub	r3, fp, #100
	ldr	r2, [fp, #-128]
	ldr	r1, [fp, #-136]
	bl	XCreateGC
	mov	r2, r0
	ldr	r3, [fp, #-140]
	str	r2, [r3]
	ldr	r3, .L69+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-140]
	ldr	r1, [r3]
	ldr	r3, [fp, #-144]
	ldr	r3, [r3, #4]
	mov	r2, r3
	bl	XSetFont
	ldr	r3, .L69+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-140]
	ldr	r1, [r3]
	ldr	r3, .L69+4
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L69+8
	ldr	r3, [r3]
	mov	ip, r3
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, ip
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #56]
	mov	r2, r3
	bl	XSetForeground
	ldr	r3, .L69+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-140]
	ldr	r1, [r3]
	ldr	r3, [fp, #-112]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-116]
	str	r3, [sp]
	ldr	r3, [fp, #-120]
	ldr	r2, [fp, #-124]
	bl	XSetLineAttributes
	ldr	r3, .L69+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-140]
	ldr	r1, [r3]
	ldr	r3, [fp, #-104]
	str	r3, [sp]
	ldr	r3, .L69+12
	ldr	r2, [fp, #-108]
	bl	XSetDashes
	nop
	ldr	r3, .L69
	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}
.L70:
	.align	2
.L69:
	.word	.LC36
	.word	display
	.word	screen
	.word	dash_list.9745
	.size	getGC, .-getGC
	.section	.rodata
	.align	2
.LC37:
	.ascii	"black\000"
	.align	2
.LC38:
	.ascii	"white\000"
	.align	2
.LC39:
	.ascii	"red\000"
	.align	2
.LC40:
	.ascii	"green\000"
	.align	2
.LC41:
	.ascii	"slate blue\000"
	.align	2
.LC42:
	.ascii	"blue\000"
	.align	2
.LC43:
	.ascii	"sky blue\000"
	.align	2
.LC44:
	.ascii	"yellow\000"
	.align	2
.LC45:
	.ascii	"grey\000"
	.align	2
.LC46:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	make_image
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_image, %function
make_image:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-128]
	ldr	r3, .L74
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L74+4
	ldr	r3, [r3]
	sub	r2, fp, #100
	ldr	r1, [fp, #-128]
	mov	r0, r3
	bl	XGetWindowAttributes
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L74+8
	str	r2, [r3]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L74+12
	str	r2, [r3]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L74+16
	str	r2, [r3]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L74+20
	str	r2, [r3]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L74+24
	str	r2, [r3]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L74+28
	str	r2, [r3]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L74+32
	str	r2, [r3]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L74+36
	str	r2, [r3]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L74+40
	str	r2, [r3]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L74+44
	str	r2, [r3]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L74+48
	str	r2, [r3]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L74+52
	str	r2, [r3]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L74+56
	str	r2, [r3]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L74+60
	str	r2, [r3]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L74+64
	str	r2, [r3]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L74+68
	str	r2, [r3]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L74+72
	str	r2, [r3]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L74+76
	str	r2, [r3]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L74+80
	str	r2, [r3]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L74+84
	str	r2, [r3]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L74+88
	str	r2, [r3]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-76]
	ldr	r3, .L74+92
	ldr	r3, [r3]
	mov	ip, r3
	ldr	r3, .L74+8
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [sp, #20]
	mov	r2, #8
	str	r2, [sp, #16]
	mov	r2, #16
	str	r2, [sp, #12]
	mov	r2, #16
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #2
	mov	r2, ip
	bl	XCreateImage
	mov	r3, r0
	ldr	r2, .L74+96
	str	r3, [r2]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-76]
	ldr	r3, .L74+92
	ldr	r3, [r3]
	mov	ip, r3
	ldr	r3, .L74+12
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [sp, #20]
	mov	r2, #8
	str	r2, [sp, #16]
	mov	r2, #16
	str	r2, [sp, #12]
	mov	r2, #16
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #2
	mov	r2, ip
	bl	XCreateImage
	mov	r3, r0
	ldr	r2, .L74+100
	str	r3, [r2]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-76]
	ldr	r3, .L74+92
	ldr	r3, [r3]
	mov	ip, r3
	ldr	r3, .L74+16
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [sp, #20]
	mov	r2, #8
	str	r2, [sp, #16]
	mov	r2, #16
	str	r2, [sp, #12]
	mov	r2, #16
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #2
	mov	r2, ip
	bl	XCreateImage
	mov	r3, r0
	ldr	r2, .L74+104
	str	r3, [r2]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-76]
	ldr	r3, .L74+92
	ldr	r3, [r3]
	mov	ip, r3
	ldr	r3, .L74+20
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [sp, #20]
	mov	r2, #8
	str	r2, [sp, #16]
	mov	r2, #16
	str	r2, [sp, #12]
	mov	r2, #16
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #2
	mov	r2, ip
	bl	XCreateImage
	mov	r3, r0
	ldr	r2, .L74+108
	str	r3, [r2]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-76]
	ldr	r3, .L74+92
	ldr	r3, [r3]
	mov	ip, r3
	ldr	r3, .L74+24
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [sp, #20]
	mov	r2, #8
	str	r2, [sp, #16]
	mov	r2, #16
	str	r2, [sp, #12]
	mov	r2, #16
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #2
	mov	r2, ip
	bl	XCreateImage
	mov	r3, r0
	ldr	r2, .L74+112
	str	r3, [r2]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-76]
	ldr	r3, .L74+92
	ldr	r3, [r3]
	mov	ip, r3
	ldr	r3, .L74+28
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [sp, #20]
	mov	r2, #8
	str	r2, [sp, #16]
	mov	r2, #16
	str	r2, [sp, #12]
	mov	r2, #16
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #2
	mov	r2, ip
	bl	XCreateImage
	mov	r3, r0
	ldr	r2, .L74+116
	str	r3, [r2]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-76]
	ldr	r3, .L74+92
	ldr	r3, [r3]
	mov	ip, r3
	ldr	r3, .L74+32
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [sp, #20]
	mov	r2, #8
	str	r2, [sp, #16]
	mov	r2, #16
	str	r2, [sp, #12]
	mov	r2, #16
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #2
	mov	r2, ip
	bl	XCreateImage
	mov	r3, r0
	ldr	r2, .L74+120
	str	r3, [r2]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-76]
	ldr	r3, .L74+92
	ldr	r3, [r3]
	mov	ip, r3
	ldr	r3, .L74+36
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [sp, #20]
	mov	r2, #8
	str	r2, [sp, #16]
	mov	r2, #16
	str	r2, [sp, #12]
	mov	r2, #16
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #2
	mov	r2, ip
	bl	XCreateImage
	mov	r3, r0
	ldr	r2, .L74+124
	str	r3, [r2]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-76]
	ldr	r3, .L74+92
	ldr	r3, [r3]
	mov	ip, r3
	ldr	r3, .L74+40
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [sp, #20]
	mov	r2, #8
	str	r2, [sp, #16]
	mov	r2, #16
	str	r2, [sp, #12]
	mov	r2, #16
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #2
	mov	r2, ip
	bl	XCreateImage
	mov	r3, r0
	ldr	r2, .L74+128
	str	r3, [r2]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-76]
	ldr	r3, .L74+92
	ldr	r3, [r3]
	mov	ip, r3
	ldr	r3, .L74+44
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [sp, #20]
	mov	r2, #8
	str	r2, [sp, #16]
	mov	r2, #16
	str	r2, [sp, #12]
	mov	r2, #16
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #2
	mov	r2, ip
	bl	XCreateImage
	mov	r3, r0
	ldr	r2, .L74+132
	str	r3, [r2]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-76]
	ldr	r3, .L74+92
	ldr	r3, [r3]
	mov	ip, r3
	ldr	r3, .L74+48
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [sp, #20]
	mov	r2, #8
	str	r2, [sp, #16]
	mov	r2, #16
	str	r2, [sp, #12]
	mov	r2, #16
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #2
	mov	r2, ip
	bl	XCreateImage
	mov	r3, r0
	ldr	r2, .L74+136
	str	r3, [r2]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-76]
	ldr	r3, .L74+92
	ldr	r3, [r3]
	mov	ip, r3
	ldr	r3, .L74+52
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [sp, #20]
	mov	r2, #8
	str	r2, [sp, #16]
	mov	r2, #16
	str	r2, [sp, #12]
	mov	r2, #16
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #2
	mov	r2, ip
	bl	XCreateImage
	mov	r3, r0
	ldr	r2, .L74+140
	str	r3, [r2]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-76]
	ldr	r3, .L74+92
	ldr	r3, [r3]
	mov	ip, r3
	ldr	r3, .L74+56
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [sp, #20]
	mov	r2, #8
	str	r2, [sp, #16]
	mov	r2, #16
	str	r2, [sp, #12]
	mov	r2, #16
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #2
	mov	r2, ip
	bl	XCreateImage
	mov	r3, r0
	ldr	r2, .L74+144
	str	r3, [r2]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-76]
	ldr	r3, .L74+92
	ldr	r3, [r3]
	mov	ip, r3
	ldr	r3, .L74+60
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [sp, #20]
	mov	r2, #8
	str	r2, [sp, #16]
	mov	r2, #16
	str	r2, [sp, #12]
	mov	r2, #16
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #2
	mov	r2, ip
	bl	XCreateImage
	mov	r3, r0
	ldr	r2, .L74+148
	str	r3, [r2]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-76]
	ldr	r3, .L74+92
	ldr	r3, [r3]
	mov	ip, r3
	ldr	r3, .L74+64
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [sp, #20]
	mov	r2, #8
	str	r2, [sp, #16]
	mov	r2, #16
	str	r2, [sp, #12]
	mov	r2, #16
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #2
	mov	r2, ip
	bl	XCreateImage
	mov	r3, r0
	ldr	r2, .L74+152
	str	r3, [r2]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-76]
	ldr	r3, .L74+92
	ldr	r3, [r3]
	mov	ip, r3
	ldr	r3, .L74+68
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [sp, #20]
	mov	r2, #8
	str	r2, [sp, #16]
	mov	r2, #16
	str	r2, [sp, #12]
	mov	r2, #16
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #2
	mov	r2, ip
	bl	XCreateImage
	mov	r3, r0
	ldr	r2, .L74+156
	str	r3, [r2]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-76]
	ldr	r3, .L74+92
	ldr	r3, [r3]
	mov	ip, r3
	ldr	r3, .L74+72
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [sp, #20]
	mov	r2, #8
	str	r2, [sp, #16]
	mov	r2, #16
	str	r2, [sp, #12]
	mov	r2, #16
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #2
	mov	r2, ip
	bl	XCreateImage
	mov	r3, r0
	ldr	r2, .L74+160
	str	r3, [r2]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-76]
	ldr	r3, .L74+92
	ldr	r3, [r3]
	mov	ip, r3
	ldr	r3, .L74+76
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [sp, #20]
	mov	r2, #8
	str	r2, [sp, #16]
	mov	r2, #16
	str	r2, [sp, #12]
	mov	r2, #16
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #2
	mov	r2, ip
	bl	XCreateImage
	mov	r3, r0
	ldr	r2, .L74+164
	str	r3, [r2]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-76]
	ldr	r3, .L74+92
	ldr	r3, [r3]
	mov	ip, r3
	ldr	r3, .L74+80
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [sp, #20]
	mov	r2, #8
	str	r2, [sp, #16]
	mov	r2, #16
	str	r2, [sp, #12]
	mov	r2, #16
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #2
	mov	r2, ip
	bl	XCreateImage
	mov	r3, r0
	ldr	r2, .L74+168
	str	r3, [r2]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-76]
	ldr	r3, .L74+92
	ldr	r3, [r3]
	mov	ip, r3
	ldr	r3, .L74+84
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [sp, #20]
	mov	r2, #8
	str	r2, [sp, #16]
	mov	r2, #16
	str	r2, [sp, #12]
	mov	r2, #16
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #2
	mov	r2, ip
	bl	XCreateImage
	mov	r3, r0
	ldr	r2, .L74+172
	str	r3, [r2]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-76]
	ldr	r3, .L74+92
	ldr	r3, [r3]
	mov	ip, r3
	ldr	r3, .L74+88
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [sp, #20]
	mov	r2, #8
	str	r2, [sp, #16]
	mov	r2, #16
	str	r2, [sp, #12]
	mov	r2, #16
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #2
	mov	r2, ip
	bl	XCreateImage
	mov	r3, r0
	ldr	r2, .L74+176
	str	r3, [r2]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-40]
	sub	r2, fp, #124
	sub	r3, fp, #112
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L74+180
	bl	XAllocNamedColor
	ldr	r3, [fp, #-124]
	mov	r2, r3
	ldr	r3, .L74+184
	str	r2, [r3]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-40]
	sub	r2, fp, #124
	sub	r3, fp, #112
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L74+188
	bl	XAllocNamedColor
	ldr	r3, [fp, #-124]
	mov	r2, r3
	ldr	r3, .L74+184
	str	r2, [r3, #4]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-40]
	sub	r2, fp, #124
	sub	r3, fp, #112
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L74+192
	bl	XAllocNamedColor
	ldr	r3, [fp, #-124]
	mov	r2, r3
	ldr	r3, .L74+184
	str	r2, [r3, #8]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-40]
	sub	r2, fp, #124
	sub	r3, fp, #112
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L74+196
	bl	XAllocNamedColor
	ldr	r3, [fp, #-124]
	mov	r2, r3
	ldr	r3, .L74+184
	str	r2, [r3, #12]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-40]
	sub	r2, fp, #124
	sub	r3, fp, #112
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L74+200
	bl	XAllocNamedColor
	ldr	r3, [fp, #-124]
	mov	r2, r3
	ldr	r3, .L74+184
	str	r2, [r3, #16]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-40]
	sub	r2, fp, #124
	sub	r3, fp, #112
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L74+204
	bl	XAllocNamedColor
	ldr	r3, [fp, #-124]
	mov	r2, r3
	ldr	r3, .L74+184
	str	r2, [r3, #20]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-40]
	sub	r2, fp, #124
	sub	r3, fp, #112
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L74+208
	bl	XAllocNamedColor
	ldr	r3, [fp, #-124]
	mov	r2, r3
	ldr	r3, .L74+184
	str	r2, [r3, #24]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-40]
	sub	r2, fp, #124
	sub	r3, fp, #112
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L74+212
	bl	XAllocNamedColor
	ldr	r3, [fp, #-124]
	mov	r2, r3
	ldr	r3, .L74+184
	str	r2, [r3, #28]
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-40]
	sub	r2, fp, #124
	sub	r3, fp, #112
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L74+216
	bl	XAllocNamedColor
	ldr	r3, [fp, #-124]
	mov	r2, r3
	ldr	r3, .L74+184
	str	r2, [r3, #32]
	ldr	r3, .L74+92
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L72
	ldr	r3, .L74+4
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L74+220
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #56]
	mov	r2, r3
	ldr	r3, .L74+184
	str	r2, [r3]
	ldr	r3, .L74+4
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L74+220
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #52]
	mov	r2, r3
	ldr	r3, .L74+184
	str	r2, [r3, #4]
	ldr	r3, .L74+4
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L74+220
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #52]
	mov	r2, r3
	ldr	r3, .L74+184
	str	r2, [r3, #8]
	ldr	r3, .L74+4
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L74+220
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #52]
	mov	r2, r3
	ldr	r3, .L74+184
	str	r2, [r3, #12]
	ldr	r3, .L74+4
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L74+220
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #52]
	mov	r2, r3
	ldr	r3, .L74+184
	str	r2, [r3, #16]
	ldr	r3, .L74+4
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L74+220
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #52]
	mov	r2, r3
	ldr	r3, .L74+184
	str	r2, [r3, #20]
	ldr	r3, .L74+4
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L74+220
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #52]
	mov	r2, r3
	ldr	r3, .L74+184
	str	r2, [r3, #24]
	ldr	r3, .L74+4
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L74+220
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #52]
	mov	r2, r3
	ldr	r3, .L74+184
	str	r2, [r3, #28]
	ldr	r3, .L74+4
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L74+220
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #52]
	mov	r2, r3
	ldr	r3, .L74+184
	str	r2, [r3, #32]
.L72:
	ldr	r3, .L74+96
	ldr	r3, [r3]
	mov	r0, r3
	bl	setup_empty
	ldr	r3, .L74+100
	ldr	r3, [r3]
	mov	r0, r3
	bl	setup_wall
	ldr	r3, .L74+104
	ldr	r3, [r3]
	mov	r0, r3
	bl	setup_pill
	bl	setup_pacmen
	bl	setup_ghosts
	ldr	r3, .L74+176
	ldr	r3, [r3]
	mov	r0, r3
	bl	setup_eatpill
	nop
	ldr	r3, .L74
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L73
	bl	__stack_chk_fail
.L73:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L75:
	.align	2
.L74:
	.word	.LC46
	.word	display
	.word	emptyd
	.word	walld
	.word	pilld
	.word	pacmanu2d
	.word	pacmanu1d
	.word	pacmanu0d
	.word	pacmanr2d
	.word	pacmanr1d
	.word	pacmanr0d
	.word	pacmand2d
	.word	pacmand1d
	.word	pacmand0d
	.word	pacmanl2d
	.word	pacmanl1d
	.word	pacmanl0d
	.word	ghostrd
	.word	ghostwd
	.word	ghostbd
	.word	ghostgd
	.word	ghostgyd
	.word	eatpilld
	.word	depth
	.word	empty
	.word	wall
	.word	pill
	.word	pacmanu2
	.word	pacmanu1
	.word	pacmanu0
	.word	pacmanr2
	.word	pacmanr1
	.word	pacmanr0
	.word	pacmand2
	.word	pacmand1
	.word	pacmand0
	.word	pacmanl2
	.word	pacmanl1
	.word	pacmanl0
	.word	ghostr
	.word	ghostw
	.word	ghostb
	.word	ghostg
	.word	ghostgy
	.word	eatpill
	.word	.LC37
	.word	cvals
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	screen
	.size	make_image, .-make_image
	.align	2
	.global	setup_blank
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_blank, %function
setup_blank:
	@ 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]
	b	.L77
.L80:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L78
.L79:
	ldr	r3, [fp, #-24]
	ldr	r4, [r3, #76]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	blx	r4
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L78:
	ldr	r3, [fp, #-20]
	cmp	r3, #15
	ble	.L79
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L77:
	ldr	r3, [fp, #-16]
	cmp	r3, #15
	ble	.L80
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	setup_blank, .-setup_blank
	.align	2
	.global	setup_empty
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_empty, %function
setup_empty:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L82
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	setup_blank
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L83:
	.align	2
.L82:
	.word	cvals
	.size	setup_empty, .-setup_empty
	.align	2
	.global	setup_wall
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_wall, %function
setup_wall:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	ldr	r3, .L85
	ldr	r3, [r3, #16]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	setup_blank
	ldr	r3, .L85
	ldr	r3, [r3, #24]
	str	r3, [sp]
	mov	r3, #14
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L85
	ldr	r3, [r3, #24]
	str	r3, [sp]
	mov	r3, #14
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	draw_y_line
	ldr	r3, .L85
	ldr	r3, [r3, #20]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #1
	mov	r1, #15
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L85
	ldr	r3, [r3, #20]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #1
	mov	r1, #15
	ldr	r0, [fp, #-8]
	bl	draw_y_line
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L86:
	.align	2
.L85:
	.word	cvals
	.size	setup_wall, .-setup_wall
	.align	2
	.global	setup_game
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_game, %function
setup_game:
	@ 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	r3, .L96
	ldr	r3, [r3]
	ldr	r2, .L96+4
	ldr	r2, [r2]
	mul	r3, r2, r3
	ldr	r2, .L96+8
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r2, r2, r3
	ldr	r3, .L96+12
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L96+16
	str	r3, [r2]
	ldr	r3, .L96
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r0, r3
	ldr	r3, .L96+4
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r1, r3
	bl	add_pills
	ldr	r3, .L96
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	lsl	r3, r3, #4
	ldr	r2, .L96+20
	str	r3, [r2]
	ldr	r3, .L96+4
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	lsl	r3, r3, #4
	ldr	r2, .L96+20
	str	r3, [r2, #4]
	ldr	r3, .L96+24
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L88
.L95:
	ldr	r3, [fp, #-8]
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L89
.L91:
	.word	.L94
	.word	.L93
	.word	.L92
	.word	.L90
.L94:
	ldr	r3, .L96
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	lsl	r1, r3, #4
	ldr	r0, .L96+28
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	str	r1, [r3]
	ldr	r1, .L96+28
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L96
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	lsl	r1, r3, #4
	ldr	r0, .L96+28
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #8
	str	r1, [r3]
	ldr	r1, .L96+28
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #12
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L96+28
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #16
	mov	r2, #2
	str	r2, [r3]
	ldr	r3, .L96+32
	ldr	r1, [r3]
	ldr	r0, .L96+28
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #20
	str	r1, [r3]
	b	.L89
.L93:
	ldr	r3, .L96
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	lsl	r1, r3, #4
	ldr	r0, .L96+28
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	str	r1, [r3]
	ldr	r3, .L96+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	lsl	r1, r3, #4
	ldr	r0, .L96+28
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #4
	str	r1, [r3]
	ldr	r3, .L96
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	lsl	r1, r3, #4
	ldr	r0, .L96+28
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #8
	str	r1, [r3]
	ldr	r3, .L96+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	lsl	r1, r3, #4
	ldr	r0, .L96+28
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #12
	str	r1, [r3]
	ldr	r1, .L96+28
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #16
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L96+36
	ldr	r1, [r3]
	ldr	r0, .L96+28
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #20
	str	r1, [r3]
	b	.L89
.L92:
	ldr	r1, .L96+28
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L96+4
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	lsl	r1, r3, #4
	ldr	r0, .L96+28
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #4
	str	r1, [r3]
	ldr	r1, .L96+28
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L96+4
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	lsl	r1, r3, #4
	ldr	r0, .L96+28
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #12
	str	r1, [r3]
	ldr	r1, .L96+28
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #16
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L96+40
	ldr	r1, [r3]
	ldr	r0, .L96+28
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #20
	str	r1, [r3]
	b	.L89
.L90:
	ldr	r3, .L96
	ldr	r3, [r3]
	sub	r3, r3, #1
	lsl	r1, r3, #4
	ldr	r0, .L96+28
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	str	r1, [r3]
	ldr	r3, .L96+4
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	lsl	r1, r3, #4
	ldr	r0, .L96+28
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #4
	str	r1, [r3]
	ldr	r3, .L96
	ldr	r3, [r3]
	sub	r3, r3, #1
	lsl	r1, r3, #4
	ldr	r0, .L96+28
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #8
	str	r1, [r3]
	ldr	r3, .L96+4
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	lsl	r1, r3, #4
	ldr	r0, .L96+28
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #12
	str	r1, [r3]
	ldr	r1, .L96+28
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #16
	mov	r2, #3
	str	r2, [r3]
	ldr	r3, .L96+44
	ldr	r1, [r3]
	ldr	r0, .L96+28
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #20
	str	r1, [r3]
	nop
.L89:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L88:
	ldr	r3, .L96+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L95
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L97:
	.align	2
.L96:
	.word	width
	.word	height
	.word	-2130574327
	.word	difficulty
	.word	ghostnum
	.word	pacpos
	.word	pacdir
	.word	ghosts
	.word	ghostr
	.word	ghostw
	.word	ghostb
	.word	ghostg
	.size	setup_game, .-setup_game
	.align	2
	.global	draw_y_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_y_line, %function
draw_y_line:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	b	.L99
.L100:
	ldr	r3, [fp, #-24]
	ldr	r4, [r3, #76]
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	blx	r4
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L99:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L100
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	draw_y_line, .-draw_y_line
	.align	2
	.global	update_image_from_map
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_image_from_map, %function
update_image_from_map:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L102
.L111:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L103
.L110:
	ldr	r3, .L113
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r1, r3, #15
	cmp	r3, #0
	movlt	r3, r1
	movge	r3, r3
	asr	r3, r3, #4
	mov	r1, r3
	ldr	r3, .L113+4
	ldr	r3, [r3]
	mul	r3, r1, r3
	mov	r0, r3
	ldr	r3, [fp, #-8]
	add	r1, r3, #15
	cmp	r3, #0
	movlt	r3, r1
	movge	r3, r3
	asr	r3, r3, #4
	add	r3, r0, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L112
	ldr	r3, .L113
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r1, r3, #15
	cmp	r3, #0
	movlt	r3, r1
	movge	r3, r3
	asr	r3, r3, #4
	mov	r1, r3
	ldr	r3, .L113+4
	ldr	r3, [r3]
	mul	r3, r1, r3
	mov	r0, r3
	ldr	r3, [fp, #-8]
	add	r1, r3, #15
	cmp	r3, #0
	movlt	r3, r1
	movge	r3, r3
	asr	r3, r3, #4
	add	r3, r0, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L113+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r1, r3, #15
	cmp	r3, #0
	movlt	r3, r1
	movge	r3, r3
	asr	r3, r3, #4
	mov	r1, r3
	ldr	r3, .L113+4
	ldr	r3, [r3]
	mul	r3, r1, r3
	mov	r0, r3
	ldr	r3, [fp, #-8]
	add	r1, r3, #15
	cmp	r3, #0
	movlt	r3, r1
	movge	r3, r3
	asr	r3, r3, #4
	add	r3, r0, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L104
.L106:
	.word	.L109
	.word	.L108
	.word	.L107
	.word	.L105
.L109:
	ldr	r3, .L113+12
	ldr	r0, [r3]
	ldr	r3, .L113+16
	ldr	r2, [r3]
	mov	r3, #16
	str	r3, [sp, #20]
	mov	r3, #16
	str	r3, [sp, #16]
	ldr	r3, [fp, #-8]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-12]
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	bl	XPutImage
	b	.L104
.L108:
	ldr	r3, .L113+12
	ldr	r0, [r3]
	ldr	r3, .L113+20
	ldr	r2, [r3]
	mov	r3, #16
	str	r3, [sp, #20]
	mov	r3, #16
	str	r3, [sp, #16]
	ldr	r3, [fp, #-8]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-12]
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	bl	XPutImage
	b	.L104
.L107:
	ldr	r3, .L113+12
	ldr	r0, [r3]
	ldr	r3, .L113+24
	ldr	r2, [r3]
	mov	r3, #16
	str	r3, [sp, #20]
	mov	r3, #16
	str	r3, [sp, #16]
	ldr	r3, [fp, #-8]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-12]
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	bl	XPutImage
	b	.L104
.L105:
	ldr	r3, .L113+12
	ldr	r0, [r3]
	ldr	r3, .L113+28
	ldr	r2, [r3]
	mov	r3, #16
	str	r3, [sp, #20]
	mov	r3, #16
	str	r3, [sp, #16]
	ldr	r3, [fp, #-8]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-12]
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	bl	XPutImage
	b	.L104
.L112:
	nop
.L104:
	ldr	r3, [fp, #-12]
	add	r3, r3, #16
	str	r3, [fp, #-12]
.L103:
	ldr	r3, .L113+32
	ldr	r3, [r3]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L110
	ldr	r3, [fp, #-8]
	add	r3, r3, #16
	str	r3, [fp, #-8]
.L102:
	ldr	r3, .L113+4
	ldr	r3, [r3]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L111
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L114:
	.align	2
.L113:
	.word	dmap
	.word	height
	.word	map
	.word	display
	.word	empty
	.word	wall
	.word	pill
	.word	eatpill
	.word	width
	.size	update_image_from_map, .-update_image_from_map
	.align	2
	.global	update_image
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_image, %function
update_image:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	plot_pacman
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	plot_ghosts
	ldr	r3, .L116
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	XSync
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L117:
	.align	2
.L116:
	.word	display
	.size	update_image, .-update_image
	.align	2
	.global	update_image_eat
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_image_eat, %function
update_image_eat:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	plot_pacman
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	plot_ghosts_eat
	ldr	r3, .L119
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	XSync
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L120:
	.align	2
.L119:
	.word	display
	.size	update_image_eat, .-update_image_eat
	.section	.rodata
	.align	2
.LC47:
	.ascii	"%s: Unable to allocate needed memory.\012\000"
	.text
	.align	2
	.global	setup_map_memory
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_map_memory, %function
setup_map_memory:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L125
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, .L125+4
	ldr	r3, [r3]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L125+8
	str	r2, [r3]
	ldr	r3, .L125
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, .L125+4
	ldr	r3, [r3]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L125+12
	str	r2, [r3]
	ldr	r3, .L125+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L122
	ldr	r3, .L125+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L124
.L122:
	ldr	r3, .L125+16
	ldr	r3, [r3]
	ldr	r2, .L125+20
	ldr	r2, [r2]
	ldr	r1, .L125+24
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L124:
	nop
	pop	{fp, pc}
.L126:
	.align	2
.L125:
	.word	width
	.word	height
	.word	map
	.word	dmap
	.word	stderr
	.word	pname
	.word	.LC47
	.size	setup_map_memory, .-setup_map_memory
	.align	2
	.global	free_memory
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_memory, %function
free_memory:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L128
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L128+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L128+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L128+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	nop
	pop	{fp, pc}
.L129:
	.align	2
.L128:
	.word	emptyd
	.word	walld
	.word	map
	.word	dmap
	.size	free_memory, .-free_memory
	.section	.rodata
	.align	2
.LC48:
	.ascii	"Usage: %s [-w<width>] [-h<height>] [-l<left key>]\000"
	.align	2
.LC49:
	.ascii	" [-r<right key>] [-u<up key>] [-d<down key>] [-q<qu"
	.ascii	"itkey>] \000"
	.align	2
.LC50:
	.ascii	"[-s<slowdown factor>] [-g<difficulty level>]\000"
	.text
	.align	2
	.global	print_usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_usage, %function
print_usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L131
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L131+4
	bl	printf
	ldr	r0, .L131+8
	bl	printf
	ldr	r0, .L131+12
	bl	puts
	nop
	pop	{fp, pc}
.L132:
	.align	2
.L131:
	.word	pname
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.size	print_usage, .-print_usage
	.align	2
	.global	setup_maze
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_maze, %function
setup_maze:
	@ 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, #-12]
	b	.L134
.L137:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L135
.L136:
	ldr	r3, .L138
	ldr	r2, [r3]
	ldr	r3, .L138+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L135:
	ldr	r3, .L138+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L136
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L134:
	ldr	r3, .L138+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L137
	ldr	r3, .L138+8
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r1, r3
	ldr	r3, .L138+4
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r1
	mov	r1, #0
	mov	r0, #0
	bl	maze_draw
	bl	draw_maze_edges
	ldr	r3, .L138+12
	mov	r2, #0
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L139:
	.align	2
.L138:
	.word	map
	.word	height
	.word	width
	.word	pillnum
	.size	setup_maze, .-setup_maze
	.align	2
	.global	reset_display_map
	.syntax unified
	.arm
	.fpu softvfp
	.type	reset_display_map, %function
reset_display_map:
	@ 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
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L141
.L144:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L142
.L143:
	ldr	r3, .L145
	ldr	r2, [r3]
	ldr	r3, .L145+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L142:
	ldr	r3, .L145+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L143
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L141:
	ldr	r3, .L145+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L144
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L146:
	.align	2
.L145:
	.word	dmap
	.word	height
	.word	width
	.size	reset_display_map, .-reset_display_map
	.align	2
	.global	get_rand
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_rand, %function
get_rand:
	@ 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, .L149
	ldr	r3, [r3]
	lsl	r2, r3, #13
	ldr	r3, .L149
	ldr	r3, [r3]
	asr	r3, r3, #19
	orr	r2, r2, r3
	ldr	r3, .L149
	ldr	r3, [r3]
	eor	r3, r3, r2
	ldr	r2, .L149
	str	r3, [r2]
	ldr	r3, .L149
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L149
	str	r3, [r2]
	ldr	r3, .L149
	ldr	r3, [r3]
	cmp	r3, #0
	rsblt	r3, r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L150:
	.align	2
.L149:
	.word	randseed
	.size	get_rand, .-get_rand
	.align	2
	.global	draw_passage_rectangle
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_passage_rectangle, %function
draw_passage_rectangle:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	b	.L152
.L153:
	ldr	r3, .L156
	ldr	r2, [r3]
	ldr	r3, .L156+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-20]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L156
	ldr	r2, [r3]
	ldr	r3, .L156+8
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r3, [fp, #-12]
	sub	r3, r1, r3
	ldr	r1, .L156+4
	ldr	r1, [r1]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-20]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L156
	ldr	r2, [r3]
	ldr	r3, .L156+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mul	r3, r1, r3
	mov	r0, r3
	ldr	r3, .L156+4
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r3, [fp, #-20]
	sub	r3, r1, r3
	add	r3, r0, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L156
	ldr	r2, [r3]
	ldr	r3, .L156+8
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r3, [fp, #-12]
	sub	r3, r1, r3
	ldr	r1, .L156+4
	ldr	r1, [r1]
	mul	r3, r1, r3
	mov	r0, r3
	ldr	r3, .L156+4
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r3, [fp, #-20]
	sub	r3, r1, r3
	add	r3, r0, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L156
	ldr	r2, [r3]
	ldr	r3, .L156+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-28]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L156
	ldr	r2, [r3]
	ldr	r3, .L156+8
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r3, [fp, #-12]
	sub	r3, r1, r3
	ldr	r1, .L156+4
	ldr	r1, [r1]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-28]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L156
	ldr	r2, [r3]
	ldr	r3, .L156+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mul	r3, r1, r3
	mov	r0, r3
	ldr	r3, .L156+4
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r3, [fp, #-28]
	sub	r3, r1, r3
	add	r3, r0, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L156
	ldr	r2, [r3]
	ldr	r3, .L156+8
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r3, [fp, #-12]
	sub	r3, r1, r3
	ldr	r1, .L156+4
	ldr	r1, [r1]
	mul	r3, r1, r3
	mov	r0, r3
	ldr	r3, .L156+4
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r3, [fp, #-28]
	sub	r3, r1, r3
	add	r3, r0, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L152:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	ble	.L153
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	b	.L154
.L155:
	ldr	r3, .L156
	ldr	r2, [r3]
	ldr	r3, .L156+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L156
	ldr	r2, [r3]
	ldr	r3, .L156+8
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r3, [fp, #-16]
	sub	r3, r1, r3
	ldr	r1, .L156+4
	ldr	r1, [r1]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L156
	ldr	r2, [r3]
	ldr	r3, .L156+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	mul	r3, r1, r3
	mov	r0, r3
	ldr	r3, .L156+4
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r3, [fp, #-8]
	sub	r3, r1, r3
	add	r3, r0, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L156
	ldr	r2, [r3]
	ldr	r3, .L156+8
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r3, [fp, #-16]
	sub	r3, r1, r3
	ldr	r1, .L156+4
	ldr	r1, [r1]
	mul	r3, r1, r3
	mov	r0, r3
	ldr	r3, .L156+4
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r3, [fp, #-8]
	sub	r3, r1, r3
	add	r3, r0, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L156
	ldr	r2, [r3]
	ldr	r3, .L156+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-24]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L156
	ldr	r2, [r3]
	ldr	r3, .L156+8
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r3, [fp, #-24]
	sub	r3, r1, r3
	ldr	r1, .L156+4
	ldr	r1, [r1]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L156
	ldr	r2, [r3]
	ldr	r3, .L156+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-24]
	mul	r3, r1, r3
	mov	r0, r3
	ldr	r3, .L156+4
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r3, [fp, #-8]
	sub	r3, r1, r3
	add	r3, r0, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L156
	ldr	r2, [r3]
	ldr	r3, .L156+8
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r3, [fp, #-24]
	sub	r3, r1, r3
	ldr	r1, .L156+4
	ldr	r1, [r1]
	mul	r3, r1, r3
	mov	r0, r3
	ldr	r3, .L156+4
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r3, [fp, #-8]
	sub	r3, r1, r3
	add	r3, r0, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L154:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	ble	.L155
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L157:
	.align	2
.L156:
	.word	map
	.word	height
	.word	width
	.size	draw_passage_rectangle, .-draw_passage_rectangle
	.global	__aeabi_idivmod
	.align	2
	.global	maze_draw
	.syntax unified
	.arm
	.fpu softvfp
	.type	maze_draw, %function
maze_draw:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	draw_passage_rectangle
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	ldr	r1, [fp, #-28]
	ldr	r2, [fp, #-20]
	sub	r2, r1, r2
	mul	r3, r2, r3
	cmp	r3, #50
	ble	.L161
	bl	get_rand
	mov	r3, r0
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L160
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	cmp	r3, #4
	ble	.L160
	bl	get_rand
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	sub	r3, r3, #4
	mov	r1, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	add	r3, r3, #2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	maze_draw
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-12]
	bl	maze_draw
	b	.L161
.L160:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	cmp	r3, #4
	ble	.L161
	bl	get_rand
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	sub	r3, r3, #4
	mov	r1, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	add	r3, r3, #2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	maze_draw
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	maze_draw
.L161:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	maze_draw, .-maze_draw
	.align	2
	.global	draw_maze_point
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_maze_point, %function
draw_maze_point:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, .L163
	ldr	r2, [r3]
	ldr	r3, .L163+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-8]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, .L163
	ldr	r2, [r3]
	ldr	r3, .L163+8
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r3, [fp, #-8]
	sub	r3, r1, r3
	ldr	r1, .L163+4
	ldr	r1, [r1]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, .L163
	ldr	r2, [r3]
	ldr	r3, .L163+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-8]
	mul	r3, r1, r3
	mov	r0, r3
	ldr	r3, .L163+4
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r3, [fp, #-12]
	sub	r3, r1, r3
	add	r3, r0, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, .L163
	ldr	r2, [r3]
	ldr	r3, .L163+8
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r3, [fp, #-8]
	sub	r3, r1, r3
	ldr	r1, .L163+4
	ldr	r1, [r1]
	mul	r3, r1, r3
	mov	r0, r3
	ldr	r3, .L163+4
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r3, [fp, #-12]
	sub	r3, r1, r3
	add	r3, r0, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L164:
	.align	2
.L163:
	.word	map
	.word	height
	.word	width
	.size	draw_maze_point, .-draw_maze_point
	.align	2
	.global	draw_maze_edges
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_maze_edges, %function
draw_maze_edges:
	@ 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	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L184
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L166
.L169:
	ldr	r3, .L184+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r1, .L184
	ldr	r1, [r1]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L167
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-16]
.L167:
	ldr	r3, .L184+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r1, .L184
	ldr	r1, [r1]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L168
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L168
	mov	r2, #1
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	draw_maze_point
.L168:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L166:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L169
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L170
	mov	r2, #1
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	draw_maze_point
.L170:
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L171
.L174:
	ldr	r3, .L184+4
	ldr	r2, [r3]
	ldr	r3, .L184
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L172
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-16]
.L172:
	ldr	r3, .L184+4
	ldr	r2, [r3]
	ldr	r3, .L184
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L173
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L173
	mov	r2, #1
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	draw_maze_point
.L173:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L171:
	ldr	r3, .L184+8
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	blt	.L174
	ldr	r3, .L184+8
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L175
.L178:
	mov	r2, #0
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	draw_maze_point
	ldr	r3, .L184+4
	ldr	r2, [r3]
	ldr	r3, .L184
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L176
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-16]
.L176:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L175:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L177
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L178
.L177:
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L179
.L182:
	mov	r2, #0
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	draw_maze_point
	ldr	r3, .L184+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r1, .L184
	ldr	r1, [r1]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L180
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-16]
.L180:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L179:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L183
	ldr	r3, .L184
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	blt	.L182
.L183:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L185:
	.align	2
.L184:
	.word	height
	.word	map
	.word	width
	.size	draw_maze_edges, .-draw_maze_edges
	.align	2
	.global	draw_x_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_x_line, %function
draw_x_line:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	b	.L187
.L188:
	ldr	r3, [fp, #-24]
	ldr	r4, [r3, #76]
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	blx	r4
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L187:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L188
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	draw_x_line, .-draw_x_line
	.align	2
	.global	setup_pill
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_pill, %function
setup_pill:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	ldr	r3, .L190
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	setup_blank
	ldr	r3, .L190
	ldr	r3, [r3, #12]
	str	r3, [sp]
	mov	r3, #8
	mov	r2, #6
	mov	r1, #5
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L190
	ldr	r3, [r3, #12]
	str	r3, [sp]
	mov	r3, #9
	mov	r2, #5
	mov	r1, #6
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L190
	ldr	r3, [r3, #12]
	str	r3, [sp]
	mov	r3, #9
	mov	r2, #5
	mov	r1, #7
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L190
	ldr	r3, [r3, #12]
	str	r3, [sp]
	mov	r3, #9
	mov	r2, #5
	mov	r1, #8
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L190
	ldr	r3, [r3, #12]
	str	r3, [sp]
	mov	r3, #8
	mov	r2, #6
	mov	r1, #9
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L191:
	.align	2
.L190:
	.word	cvals
	.size	setup_pill, .-setup_pill
	.align	2
	.global	add_pills
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_pills, %function
add_pills:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, .L197
	ldr	r2, [r3]
	ldr	r3, .L197+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-8]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L196
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L196
	ldr	r3, .L197+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bge	.L196
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L196
	ldr	r3, .L197+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L196
	ldr	r3, .L197+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L197+12
	str	r3, [r2]
	bl	get_rand
	mov	r3, r0
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L194
	mov	r2, #3
	b	.L195
.L194:
	mov	r2, #2
.L195:
	ldr	r3, .L197
	ldr	r1, [r3]
	ldr	r3, .L197+4
	ldr	r3, [r3]
	ldr	r0, [fp, #-8]
	mul	r3, r0, r3
	mov	r0, r3
	ldr	r3, [fp, #-12]
	add	r3, r0, r3
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	add_pills
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	add_pills
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	add_pills
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	add_pills
.L196:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L198:
	.align	2
.L197:
	.word	map
	.word	height
	.word	width
	.word	pillnum
	.size	add_pills, .-add_pills
	.align	2
	.global	setup_pacmen
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_pacmen, %function
setup_pacmen:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	setup_pacmanu
	bl	setup_pacmanr
	bl	setup_pacmand
	bl	setup_pacmanl
	nop
	pop	{fp, pc}
	.size	setup_pacmen, .-setup_pacmen
	.align	2
	.global	setup_pacmanu
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_pacmanu, %function
setup_pacmanu:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L201
	ldr	r3, [r3]
	mov	r0, r3
	bl	setup_pacman
	ldr	r3, .L201
	ldr	r0, [r3]
	ldr	r3, .L201+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #3
	bl	draw_y_line
	ldr	r3, .L201
	ldr	r0, [r3]
	ldr	r3, .L201+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #4
	mov	r2, #0
	mov	r1, #4
	bl	draw_y_line
	ldr	r3, .L201
	ldr	r0, [r3]
	ldr	r3, .L201+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #5
	mov	r2, #0
	mov	r1, #5
	bl	draw_y_line
	ldr	r3, .L201
	ldr	r0, [r3]
	ldr	r3, .L201+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #6
	mov	r2, #0
	mov	r1, #6
	bl	draw_y_line
	ldr	r3, .L201
	ldr	r0, [r3]
	ldr	r3, .L201+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #7
	mov	r2, #0
	mov	r1, #7
	bl	draw_y_line
	ldr	r3, .L201
	ldr	r0, [r3]
	ldr	r3, .L201+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #7
	mov	r2, #0
	mov	r1, #8
	bl	draw_y_line
	ldr	r3, .L201
	ldr	r0, [r3]
	ldr	r3, .L201+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #6
	mov	r2, #0
	mov	r1, #9
	bl	draw_y_line
	ldr	r3, .L201
	ldr	r0, [r3]
	ldr	r3, .L201+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #5
	mov	r2, #0
	mov	r1, #10
	bl	draw_y_line
	ldr	r3, .L201
	ldr	r0, [r3]
	ldr	r3, .L201+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #4
	mov	r2, #0
	mov	r1, #11
	bl	draw_y_line
	ldr	r3, .L201
	ldr	r0, [r3]
	ldr	r3, .L201+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #12
	bl	draw_y_line
	ldr	r3, .L201+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	setup_pacman
	ldr	r3, .L201+8
	ldr	r0, [r3]
	ldr	r3, .L201+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #5
	bl	draw_y_line
	ldr	r3, .L201+8
	ldr	r0, [r3]
	ldr	r3, .L201+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #5
	mov	r2, #0
	mov	r1, #6
	bl	draw_y_line
	ldr	r3, .L201+8
	ldr	r0, [r3]
	ldr	r3, .L201+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #7
	mov	r2, #0
	mov	r1, #7
	bl	draw_y_line
	ldr	r3, .L201+8
	ldr	r0, [r3]
	ldr	r3, .L201+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #7
	mov	r2, #0
	mov	r1, #8
	bl	draw_y_line
	ldr	r3, .L201+8
	ldr	r0, [r3]
	ldr	r3, .L201+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #5
	mov	r2, #0
	mov	r1, #9
	bl	draw_y_line
	ldr	r3, .L201+8
	ldr	r0, [r3]
	ldr	r3, .L201+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #10
	bl	draw_y_line
	ldr	r3, .L201+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	setup_pacman
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L202:
	.align	2
.L201:
	.word	pacmanu2
	.word	cvals
	.word	pacmanu1
	.word	pacmanu0
	.size	setup_pacmanu, .-setup_pacmanu
	.align	2
	.global	setup_pacman
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_pacman, %function
setup_pacman:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	ldr	r3, .L204
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	setup_blank
	ldr	r3, .L204
	ldr	r3, [r3, #28]
	str	r3, [sp]
	mov	r3, #9
	mov	r2, #6
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L204
	ldr	r3, [r3, #28]
	str	r3, [sp]
	mov	r3, #11
	mov	r2, #4
	mov	r1, #2
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L204
	ldr	r3, [r3, #28]
	str	r3, [sp]
	mov	r3, #12
	mov	r2, #3
	mov	r1, #3
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L204
	ldr	r3, [r3, #28]
	str	r3, [sp]
	mov	r3, #13
	mov	r2, #2
	mov	r1, #4
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L204
	ldr	r3, [r3, #28]
	str	r3, [sp]
	mov	r3, #13
	mov	r2, #2
	mov	r1, #5
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L204
	ldr	r3, [r3, #28]
	str	r3, [sp]
	mov	r3, #14
	mov	r2, #1
	mov	r1, #6
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L204
	ldr	r3, [r3, #28]
	str	r3, [sp]
	mov	r3, #14
	mov	r2, #1
	mov	r1, #7
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L204
	ldr	r3, [r3, #28]
	str	r3, [sp]
	mov	r3, #14
	mov	r2, #1
	mov	r1, #8
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L204
	ldr	r3, [r3, #28]
	str	r3, [sp]
	mov	r3, #14
	mov	r2, #1
	mov	r1, #9
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L204
	ldr	r3, [r3, #28]
	str	r3, [sp]
	mov	r3, #13
	mov	r2, #2
	mov	r1, #10
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L204
	ldr	r3, [r3, #28]
	str	r3, [sp]
	mov	r3, #13
	mov	r2, #2
	mov	r1, #11
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L204
	ldr	r3, [r3, #28]
	str	r3, [sp]
	mov	r3, #12
	mov	r2, #3
	mov	r1, #12
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L204
	ldr	r3, [r3, #28]
	str	r3, [sp]
	mov	r3, #11
	mov	r2, #4
	mov	r1, #13
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L204
	ldr	r3, [r3, #28]
	str	r3, [sp]
	mov	r3, #9
	mov	r2, #6
	mov	r1, #14
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L205:
	.align	2
.L204:
	.word	cvals
	.size	setup_pacman, .-setup_pacman
	.align	2
	.global	plot_pacman
	.syntax unified
	.arm
	.fpu softvfp
	.type	plot_pacman, %function
plot_pacman:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L241
	ldr	r3, [r3]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L207
.L209:
	.word	.L212
	.word	.L211
	.word	.L210
	.word	.L208
.L212:
	ldr	r3, .L241+4
	ldr	r2, [r3]
	ldr	r3, .L241+4
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L237
.L215:
	.word	.L218
	.word	.L217
	.word	.L216
	.word	.L214
.L218:
	ldr	r3, .L241+8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L213
.L217:
	ldr	r3, .L241+12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L213
.L216:
	ldr	r3, .L241+16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L213
.L214:
	ldr	r3, .L241+12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	nop
.L213:
	b	.L237
.L208:
	ldr	r3, .L241+4
	ldr	r2, [r3]
	ldr	r3, .L241+4
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L238
.L221:
	.word	.L224
	.word	.L223
	.word	.L222
	.word	.L220
.L224:
	ldr	r3, .L241+20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L219
.L223:
	ldr	r3, .L241+24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L219
.L222:
	ldr	r3, .L241+28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L219
.L220:
	ldr	r3, .L241+24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	nop
.L219:
	b	.L238
.L210:
	ldr	r3, .L241+4
	ldr	r2, [r3]
	ldr	r3, .L241+4
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L239
.L227:
	.word	.L230
	.word	.L229
	.word	.L228
	.word	.L226
.L230:
	ldr	r3, .L241+32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L225
.L229:
	ldr	r3, .L241+36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L225
.L228:
	ldr	r3, .L241+40
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L225
.L226:
	ldr	r3, .L241+36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	nop
.L225:
	b	.L239
.L211:
	ldr	r3, .L241+4
	ldr	r2, [r3]
	ldr	r3, .L241+4
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L240
.L233:
	.word	.L236
	.word	.L235
	.word	.L234
	.word	.L232
.L236:
	ldr	r3, .L241+44
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L231
.L235:
	ldr	r3, .L241+48
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L231
.L234:
	ldr	r3, .L241+52
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L231
.L232:
	ldr	r3, .L241+48
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	nop
.L231:
	b	.L240
.L237:
	nop
	b	.L207
.L238:
	nop
	b	.L207
.L239:
	nop
	b	.L207
.L240:
	nop
.L207:
	ldr	r3, .L241+4
	ldr	r0, [r3]
	ldr	r3, .L241+4
	ldr	r3, [r3, #4]
	ldr	r2, .L241+56
	ldr	r2, [r2]
	ldr	r1, .L241+56
	ldr	r1, [r1, #4]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r0
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	plot_sprite
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L242:
	.align	2
.L241:
	.word	pacdir
	.word	pacpos
	.word	pacmanu0
	.word	pacmanu1
	.word	pacmanu2
	.word	pacmanl0
	.word	pacmanl1
	.word	pacmanl2
	.word	pacmand0
	.word	pacmand1
	.word	pacmand2
	.word	pacmanr0
	.word	pacmanr1
	.word	pacmanr2
	.word	oldpacpos
	.size	plot_pacman, .-plot_pacman
	.align	2
	.global	update_game
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_game, %function
update_game:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	bl	update_pacman_position
	bl	update_ghosts
	ldr	r3, .L255
	ldr	r3, [r3]
	add	r3, r3, #4
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L255+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-16]
	ldr	r3, .L255
	ldr	r3, [r3, #4]
	add	r3, r3, #4
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L255+8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-12]
	ldr	r3, .L255+12
	ldr	r2, [r3]
	ldr	r3, .L255+8
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L244
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L255+16
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L255+16
	str	r3, [r2]
.L244:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L245
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L255+20
	ldr	r3, [r3]
	orr	r3, r3, #32
	ldr	r2, .L255+20
	str	r3, [r2]
	ldr	r3, .L255+24
	mov	r2, #127
	str	r2, [r3]
	ldr	r3, .L255+16
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L255+16
	str	r3, [r2]
.L245:
	ldr	r3, .L255
	ldr	r3, [r3]
	add	r3, r3, #11
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L255+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-16]
	ldr	r3, .L255+12
	ldr	r2, [r3]
	ldr	r3, .L255+8
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L246
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L255+16
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L255+16
	str	r3, [r2]
.L246:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L247
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L255+20
	ldr	r3, [r3]
	orr	r3, r3, #32
	ldr	r2, .L255+20
	str	r3, [r2]
	ldr	r3, .L255+24
	mov	r2, #127
	str	r2, [r3]
	ldr	r3, .L255+16
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L255+16
	str	r3, [r2]
.L247:
	ldr	r3, .L255
	ldr	r3, [r3, #4]
	add	r3, r3, #11
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L255+8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-12]
	ldr	r3, .L255+12
	ldr	r2, [r3]
	ldr	r3, .L255+8
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L248
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L255+16
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L255+16
	str	r3, [r2]
.L248:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L249
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L255+20
	ldr	r3, [r3]
	orr	r3, r3, #32
	ldr	r2, .L255+20
	str	r3, [r2]
	ldr	r3, .L255+24
	mov	r2, #127
	str	r2, [r3]
	ldr	r3, .L255+16
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L255+16
	str	r3, [r2]
.L249:
	ldr	r3, .L255
	ldr	r3, [r3]
	add	r3, r3, #4
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L255+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-16]
	ldr	r3, .L255+12
	ldr	r2, [r3]
	ldr	r3, .L255+8
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L250
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L255+16
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L255+16
	str	r3, [r2]
.L250:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L251
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L255+20
	ldr	r3, [r3]
	orr	r3, r3, #32
	ldr	r2, .L255+20
	str	r3, [r2]
	ldr	r3, .L255+24
	mov	r2, #127
	str	r2, [r3]
	ldr	r3, .L255+16
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L255+16
	str	r3, [r2]
.L251:
	ldr	r3, .L255+16
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L252
	ldr	r3, .L255+20
	ldr	r3, [r3]
	orr	r3, r3, #8
	ldr	r2, .L255+20
	str	r3, [r2]
.L252:
	bl	test_ghost_collide
	mov	r3, r0
	cmp	r3, #0
	beq	.L254
	ldr	r3, .L255+20
	ldr	r3, [r3]
	orr	r3, r3, #4
	ldr	r2, .L255+20
	str	r3, [r2]
.L254:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L256:
	.align	2
.L255:
	.word	pacpos
	.word	width
	.word	height
	.word	map
	.word	pillnum
	.word	gamestate
	.word	ecount
	.size	update_game, .-update_game
	.align	2
	.global	update_game_eat
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_game_eat, %function
update_game_eat:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	bl	update_pacman_position
	bl	update_ghosts_eat
	ldr	r3, .L269
	ldr	r3, [r3]
	add	r3, r3, #4
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L269+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-16]
	ldr	r3, .L269
	ldr	r3, [r3, #4]
	add	r3, r3, #4
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L269+8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-12]
	ldr	r3, .L269+12
	ldr	r2, [r3]
	ldr	r3, .L269+8
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L258
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L269+16
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L269+16
	str	r3, [r2]
.L258:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L259
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L269+20
	ldr	r3, [r3]
	orr	r3, r3, #32
	ldr	r2, .L269+20
	str	r3, [r2]
	ldr	r3, .L269+24
	mov	r2, #127
	str	r2, [r3]
	ldr	r3, .L269+16
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L269+16
	str	r3, [r2]
.L259:
	ldr	r3, .L269
	ldr	r3, [r3]
	add	r3, r3, #11
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L269+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-16]
	ldr	r3, .L269+12
	ldr	r2, [r3]
	ldr	r3, .L269+8
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L260
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L269+16
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L269+16
	str	r3, [r2]
.L260:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L261
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L269+20
	ldr	r3, [r3]
	orr	r3, r3, #32
	ldr	r2, .L269+20
	str	r3, [r2]
	ldr	r3, .L269+24
	mov	r2, #127
	str	r2, [r3]
	ldr	r3, .L269+16
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L269+16
	str	r3, [r2]
.L261:
	ldr	r3, .L269
	ldr	r3, [r3, #4]
	add	r3, r3, #11
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L269+8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-12]
	ldr	r3, .L269+12
	ldr	r2, [r3]
	ldr	r3, .L269+8
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L262
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L269+16
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L269+16
	str	r3, [r2]
.L262:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L263
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L269+20
	ldr	r3, [r3]
	orr	r3, r3, #32
	ldr	r2, .L269+20
	str	r3, [r2]
	ldr	r3, .L269+24
	mov	r2, #127
	str	r2, [r3]
	ldr	r3, .L269+16
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L269+16
	str	r3, [r2]
.L263:
	ldr	r3, .L269
	ldr	r3, [r3]
	add	r3, r3, #4
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L269+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-16]
	ldr	r3, .L269+12
	ldr	r2, [r3]
	ldr	r3, .L269+8
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L264
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L269+16
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L269+16
	str	r3, [r2]
.L264:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L265
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L269+20
	ldr	r3, [r3]
	orr	r3, r3, #32
	ldr	r2, .L269+20
	str	r3, [r2]
	ldr	r3, .L269+24
	mov	r2, #127
	str	r2, [r3]
	ldr	r3, .L269+16
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L269+16
	str	r3, [r2]
.L265:
	ldr	r3, .L269+16
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L266
	ldr	r3, .L269+20
	ldr	r3, [r3]
	orr	r3, r3, #8
	ldr	r2, .L269+20
	str	r3, [r2]
.L266:
	bl	test_ghost_collide
	mov	r3, r0
	cmp	r3, #0
	beq	.L268
	bl	which_ghost_collide
	mov	r2, r0
	ldr	r1, .L269+28
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #16
	mov	r2, #4
	str	r2, [r3]
.L268:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L270:
	.align	2
.L269:
	.word	pacpos
	.word	width
	.word	height
	.word	map
	.word	pillnum
	.word	gamestate
	.word	ecount
	.word	ghosts
	.size	update_game_eat, .-update_game_eat
	.align	2
	.global	newpacpos
	.syntax unified
	.arm
	.fpu softvfp
	.type	newpacpos, %function
newpacpos:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r2, .L279
	sub	r3, fp, #12
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, .L279+4
	ldr	r3, [r3]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L272
.L274:
	.word	.L277
	.word	.L276
	.word	.L275
	.word	.L273
.L277:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #4
	str	r3, [fp, #-8]
	b	.L272
.L273:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	str	r3, [fp, #-12]
	b	.L272
.L275:
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	str	r3, [fp, #-8]
	b	.L272
.L276:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #4
	str	r3, [fp, #-12]
	nop
.L272:
	ldr	r2, [fp, #-12]
	ldr	r3, .L279+8
	ldr	r3, [r3]
	lsl	r3, r3, #4
	add	r2, r2, r3
	ldr	r3, .L279+8
	ldr	r3, [r3]
	lsl	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, .L279+12
	ldr	r3, [r3]
	lsl	r3, r3, #4
	add	r2, r2, r3
	ldr	r3, .L279+12
	ldr	r3, [r3]
	lsl	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	mov	r2, r3
	sub	r3, fp, #12
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r0, [fp, #-16]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L280:
	.align	2
.L279:
	.word	pacpos
	.word	pacdir
	.word	width
	.word	height
	.size	newpacpos, .-newpacpos
	.align	2
	.global	setup_pacmanr
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_pacmanr, %function
setup_pacmanr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L282
	ldr	r3, [r3]
	mov	r0, r3
	bl	setup_pacman
	ldr	r3, .L282
	ldr	r0, [r3]
	ldr	r3, .L282+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #3
	bl	draw_x_line
	ldr	r3, .L282
	ldr	r0, [r3]
	ldr	r3, .L282+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #4
	mov	r2, #0
	mov	r1, #4
	bl	draw_x_line
	ldr	r3, .L282
	ldr	r0, [r3]
	ldr	r3, .L282+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #5
	mov	r2, #0
	mov	r1, #5
	bl	draw_x_line
	ldr	r3, .L282
	ldr	r0, [r3]
	ldr	r3, .L282+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #6
	mov	r2, #0
	mov	r1, #6
	bl	draw_x_line
	ldr	r3, .L282
	ldr	r0, [r3]
	ldr	r3, .L282+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #7
	mov	r2, #0
	mov	r1, #7
	bl	draw_x_line
	ldr	r3, .L282
	ldr	r0, [r3]
	ldr	r3, .L282+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #7
	mov	r2, #0
	mov	r1, #8
	bl	draw_x_line
	ldr	r3, .L282
	ldr	r0, [r3]
	ldr	r3, .L282+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #6
	mov	r2, #0
	mov	r1, #9
	bl	draw_x_line
	ldr	r3, .L282
	ldr	r0, [r3]
	ldr	r3, .L282+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #5
	mov	r2, #0
	mov	r1, #10
	bl	draw_x_line
	ldr	r3, .L282
	ldr	r0, [r3]
	ldr	r3, .L282+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #4
	mov	r2, #0
	mov	r1, #11
	bl	draw_x_line
	ldr	r3, .L282
	ldr	r0, [r3]
	ldr	r3, .L282+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #12
	bl	draw_x_line
	ldr	r3, .L282+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	setup_pacman
	ldr	r3, .L282+8
	ldr	r0, [r3]
	ldr	r3, .L282+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #5
	bl	draw_x_line
	ldr	r3, .L282+8
	ldr	r0, [r3]
	ldr	r3, .L282+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #5
	mov	r2, #0
	mov	r1, #6
	bl	draw_x_line
	ldr	r3, .L282+8
	ldr	r0, [r3]
	ldr	r3, .L282+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #7
	mov	r2, #0
	mov	r1, #7
	bl	draw_x_line
	ldr	r3, .L282+8
	ldr	r0, [r3]
	ldr	r3, .L282+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #7
	mov	r2, #0
	mov	r1, #8
	bl	draw_x_line
	ldr	r3, .L282+8
	ldr	r0, [r3]
	ldr	r3, .L282+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #5
	mov	r2, #0
	mov	r1, #9
	bl	draw_x_line
	ldr	r3, .L282+8
	ldr	r0, [r3]
	ldr	r3, .L282+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #3
	mov	r2, #0
	mov	r1, #10
	bl	draw_x_line
	ldr	r3, .L282+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	setup_pacman
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L283:
	.align	2
.L282:
	.word	pacmanr2
	.word	cvals
	.word	pacmanr1
	.word	pacmanr0
	.size	setup_pacmanr, .-setup_pacmanr
	.align	2
	.global	setup_pacmand
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_pacmand, %function
setup_pacmand:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L285
	ldr	r3, [r3]
	mov	r0, r3
	bl	setup_pacman
	ldr	r3, .L285
	ldr	r0, [r3]
	ldr	r3, .L285+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #12
	mov	r1, #3
	bl	draw_y_line
	ldr	r3, .L285
	ldr	r0, [r3]
	ldr	r3, .L285+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #11
	mov	r1, #4
	bl	draw_y_line
	ldr	r3, .L285
	ldr	r0, [r3]
	ldr	r3, .L285+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #10
	mov	r1, #5
	bl	draw_y_line
	ldr	r3, .L285
	ldr	r0, [r3]
	ldr	r3, .L285+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #9
	mov	r1, #6
	bl	draw_y_line
	ldr	r3, .L285
	ldr	r0, [r3]
	ldr	r3, .L285+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #8
	mov	r1, #7
	bl	draw_y_line
	ldr	r3, .L285
	ldr	r0, [r3]
	ldr	r3, .L285+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #8
	mov	r1, #8
	bl	draw_y_line
	ldr	r3, .L285
	ldr	r0, [r3]
	ldr	r3, .L285+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #9
	mov	r1, #9
	bl	draw_y_line
	ldr	r3, .L285
	ldr	r0, [r3]
	ldr	r3, .L285+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #10
	mov	r1, #10
	bl	draw_y_line
	ldr	r3, .L285
	ldr	r0, [r3]
	ldr	r3, .L285+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #11
	mov	r1, #11
	bl	draw_y_line
	ldr	r3, .L285
	ldr	r0, [r3]
	ldr	r3, .L285+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #12
	mov	r1, #12
	bl	draw_y_line
	ldr	r3, .L285+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	setup_pacman
	ldr	r3, .L285+8
	ldr	r0, [r3]
	ldr	r3, .L285+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #12
	mov	r1, #5
	bl	draw_y_line
	ldr	r3, .L285+8
	ldr	r0, [r3]
	ldr	r3, .L285+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #10
	mov	r1, #6
	bl	draw_y_line
	ldr	r3, .L285+8
	ldr	r0, [r3]
	ldr	r3, .L285+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #8
	mov	r1, #7
	bl	draw_y_line
	ldr	r3, .L285+8
	ldr	r0, [r3]
	ldr	r3, .L285+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #8
	mov	r1, #8
	bl	draw_y_line
	ldr	r3, .L285+8
	ldr	r0, [r3]
	ldr	r3, .L285+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #10
	mov	r1, #9
	bl	draw_y_line
	ldr	r3, .L285+8
	ldr	r0, [r3]
	ldr	r3, .L285+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #12
	mov	r1, #10
	bl	draw_y_line
	ldr	r3, .L285+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	setup_pacman
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L286:
	.align	2
.L285:
	.word	pacmand2
	.word	cvals
	.word	pacmand1
	.word	pacmand0
	.size	setup_pacmand, .-setup_pacmand
	.align	2
	.global	setup_pacmanl
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_pacmanl, %function
setup_pacmanl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L288
	ldr	r3, [r3]
	mov	r0, r3
	bl	setup_pacman
	ldr	r3, .L288
	ldr	r0, [r3]
	ldr	r3, .L288+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #12
	mov	r1, #3
	bl	draw_x_line
	ldr	r3, .L288
	ldr	r0, [r3]
	ldr	r3, .L288+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #11
	mov	r1, #4
	bl	draw_x_line
	ldr	r3, .L288
	ldr	r0, [r3]
	ldr	r3, .L288+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #10
	mov	r1, #5
	bl	draw_x_line
	ldr	r3, .L288
	ldr	r0, [r3]
	ldr	r3, .L288+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #9
	mov	r1, #6
	bl	draw_x_line
	ldr	r3, .L288
	ldr	r0, [r3]
	ldr	r3, .L288+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #8
	mov	r1, #7
	bl	draw_x_line
	ldr	r3, .L288
	ldr	r0, [r3]
	ldr	r3, .L288+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #8
	mov	r1, #8
	bl	draw_x_line
	ldr	r3, .L288
	ldr	r0, [r3]
	ldr	r3, .L288+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #9
	mov	r1, #9
	bl	draw_x_line
	ldr	r3, .L288
	ldr	r0, [r3]
	ldr	r3, .L288+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #10
	mov	r1, #10
	bl	draw_x_line
	ldr	r3, .L288
	ldr	r0, [r3]
	ldr	r3, .L288+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #11
	mov	r1, #11
	bl	draw_x_line
	ldr	r3, .L288
	ldr	r0, [r3]
	ldr	r3, .L288+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #12
	mov	r1, #12
	bl	draw_x_line
	ldr	r3, .L288+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	setup_pacman
	ldr	r3, .L288+8
	ldr	r0, [r3]
	ldr	r3, .L288+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #12
	mov	r1, #5
	bl	draw_x_line
	ldr	r3, .L288+8
	ldr	r0, [r3]
	ldr	r3, .L288+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #10
	mov	r1, #6
	bl	draw_x_line
	ldr	r3, .L288+8
	ldr	r0, [r3]
	ldr	r3, .L288+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #8
	mov	r1, #7
	bl	draw_x_line
	ldr	r3, .L288+8
	ldr	r0, [r3]
	ldr	r3, .L288+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #8
	mov	r1, #8
	bl	draw_x_line
	ldr	r3, .L288+8
	ldr	r0, [r3]
	ldr	r3, .L288+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #10
	mov	r1, #9
	bl	draw_x_line
	ldr	r3, .L288+8
	ldr	r0, [r3]
	ldr	r3, .L288+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #15
	mov	r2, #12
	mov	r1, #10
	bl	draw_x_line
	ldr	r3, .L288+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	setup_pacman
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L289:
	.align	2
.L288:
	.word	pacmanl2
	.word	cvals
	.word	pacmanl1
	.word	pacmanl0
	.size	setup_pacmanl, .-setup_pacmanl
	.align	2
	.global	setup_ghosts
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_ghosts, %function
setup_ghosts:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L291
	ldr	r3, [r3]
	ldr	r2, .L291+4
	ldr	r2, [r2, #8]
	mov	r1, r2
	mov	r0, r3
	bl	setup_ghost
	ldr	r3, .L291+8
	ldr	r3, [r3]
	ldr	r2, .L291+4
	ldr	r2, [r2, #4]
	mov	r1, r2
	mov	r0, r3
	bl	setup_ghost
	ldr	r3, .L291+12
	ldr	r3, [r3]
	ldr	r2, .L291+4
	ldr	r2, [r2, #28]
	mov	r1, r2
	mov	r0, r3
	bl	setup_ghost
	ldr	r3, .L291+16
	ldr	r3, [r3]
	ldr	r2, .L291+4
	ldr	r2, [r2, #12]
	mov	r1, r2
	mov	r0, r3
	bl	setup_ghost
	ldr	r3, .L291+20
	ldr	r3, [r3]
	ldr	r2, .L291+4
	ldr	r2, [r2, #32]
	mov	r1, r2
	mov	r0, r3
	bl	setup_ghost
	nop
	pop	{fp, pc}
.L292:
	.align	2
.L291:
	.word	ghostr
	.word	cvals
	.word	ghostw
	.word	ghostb
	.word	ghostg
	.word	ghostgy
	.size	setup_ghosts, .-setup_ghosts
	.align	2
	.global	setup_ghost
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_ghost, %function
setup_ghost:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, .L294
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	setup_blank
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	mov	r3, #14
	mov	r2, #3
	mov	r1, #3
	ldr	r0, [fp, #-8]
	bl	draw_y_line
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	mov	r3, #13
	mov	r2, #2
	mov	r1, #4
	ldr	r0, [fp, #-8]
	bl	draw_y_line
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	mov	r3, #12
	mov	r2, #2
	mov	r1, #5
	ldr	r0, [fp, #-8]
	bl	draw_y_line
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	mov	r3, #13
	mov	r2, #1
	mov	r1, #6
	ldr	r0, [fp, #-8]
	bl	draw_y_line
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	mov	r3, #14
	mov	r2, #1
	mov	r1, #7
	ldr	r0, [fp, #-8]
	bl	draw_y_line
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	mov	r3, #14
	mov	r2, #1
	mov	r1, #8
	ldr	r0, [fp, #-8]
	bl	draw_y_line
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	mov	r3, #13
	mov	r2, #1
	mov	r1, #9
	ldr	r0, [fp, #-8]
	bl	draw_y_line
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	mov	r3, #12
	mov	r2, #2
	mov	r1, #10
	ldr	r0, [fp, #-8]
	bl	draw_y_line
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	mov	r3, #13
	mov	r2, #2
	mov	r1, #11
	ldr	r0, [fp, #-8]
	bl	draw_y_line
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	mov	r3, #14
	mov	r2, #3
	mov	r1, #12
	ldr	r0, [fp, #-8]
	bl	draw_y_line
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L295:
	.align	2
.L294:
	.word	cvals
	.size	setup_ghost, .-setup_ghost
	.align	2
	.global	plot_sprite
	.syntax unified
	.arm
	.fpu softvfp
	.type	plot_sprite, %function
plot_sprite:
	@ args = 12, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #8]
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	str	r3, [fp, #-12]
	ldr	r3, [fp, #12]
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	str	r3, [fp, #-8]
	ldr	r3, .L297
	ldr	r2, [r3]
	ldr	r3, .L297+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #8]
	add	r3, r3, #15
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L297+8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-12]
	ldr	r3, .L297
	ldr	r2, [r3]
	ldr	r3, .L297+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #12]
	add	r3, r3, #15
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L297+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-8]
	ldr	r3, .L297
	ldr	r2, [r3]
	ldr	r3, .L297+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #8]
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	str	r3, [fp, #-12]
	ldr	r3, .L297
	ldr	r2, [r3]
	ldr	r3, .L297+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #8]
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	str	r3, [fp, #-12]
	ldr	r3, [fp, #12]
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #4
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	plot_map_tile
	ldr	r3, [fp, #8]
	add	r3, r3, #15
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L297+8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #4
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	plot_map_tile
	ldr	r3, [fp, #12]
	add	r3, r3, #15
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L297+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #4
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	plot_map_tile
	ldr	r3, [fp, #8]
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #4
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	plot_map_tile
	ldr	r3, .L297+12
	ldr	r0, [r3]
	mov	r3, #16
	str	r3, [sp, #20]
	mov	r3, #16
	str	r3, [sp, #16]
	ldr	r3, [fp, #4]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-28]
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	bl	XPutImage
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L298:
	.align	2
.L297:
	.word	dmap
	.word	height
	.word	width
	.word	display
	.size	plot_sprite, .-plot_sprite
	.align	2
	.global	plot_ghosts
	.syntax unified
	.arm
	.fpu softvfp
	.type	plot_ghosts, %function
plot_ghosts:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L300
.L302:
	ldr	r1, .L303
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #16
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L301
	ldr	r1, .L303
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #20
	ldr	ip, [r3]
	ldr	r1, .L303
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	lr, [r3]
	ldr	r1, .L303
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r0, .L303
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #8
	ldr	r0, [r3]
	ldr	r4, .L303
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r4, r3
	add	r3, r3, #12
	ldr	r3, [r3]
	str	r3, [sp, #8]
	str	r0, [sp, #4]
	str	r1, [sp]
	mov	r3, lr
	mov	r2, ip
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	plot_sprite
.L301:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L300:
	ldr	r3, .L303+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L302
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L304:
	.align	2
.L303:
	.word	ghosts
	.word	ghostnum
	.size	plot_ghosts, .-plot_ghosts
	.align	2
	.global	plot_ghosts_eat
	.syntax unified
	.arm
	.fpu softvfp
	.type	plot_ghosts_eat, %function
plot_ghosts_eat:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L306
.L309:
	ldr	r1, .L310
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #16
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L307
	ldr	r3, .L310+4
	ldr	r3, [r3]
	cmp	r3, #31
	bgt	.L308
	ldr	r3, .L310+4
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L308
	ldr	r1, .L310
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #20
	ldr	ip, [r3]
	ldr	r1, .L310
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	lr, [r3]
	ldr	r1, .L310
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r0, .L310
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #8
	ldr	r0, [r3]
	ldr	r4, .L310
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r4, r3
	add	r3, r3, #12
	ldr	r3, [r3]
	str	r3, [sp, #8]
	str	r0, [sp, #4]
	str	r1, [sp]
	mov	r3, lr
	mov	r2, ip
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	plot_sprite
	b	.L307
.L308:
	ldr	r3, .L310+8
	ldr	ip, [r3]
	ldr	r1, .L310
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	lr, [r3]
	ldr	r1, .L310
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r0, .L310
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #8
	ldr	r0, [r3]
	ldr	r4, .L310
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r4, r3
	add	r3, r3, #12
	ldr	r3, [r3]
	str	r3, [sp, #8]
	str	r0, [sp, #4]
	str	r1, [sp]
	mov	r3, lr
	mov	r2, ip
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	plot_sprite
.L307:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L306:
	ldr	r3, .L310+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L309
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L311:
	.align	2
.L310:
	.word	ghosts
	.word	ecount
	.word	ghostgy
	.word	ghostnum
	.size	plot_ghosts_eat, .-plot_ghosts_eat
	.align	2
	.global	plot_map_tile
	.syntax unified
	.arm
	.fpu softvfp
	.type	plot_map_tile, %function
plot_map_tile:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, .L321
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r1, r3, #15
	cmp	r3, #0
	movlt	r3, r1
	movge	r3, r3
	asr	r3, r3, #4
	mov	r1, r3
	ldr	r3, .L321+4
	ldr	r3, [r3]
	mul	r3, r1, r3
	mov	r0, r3
	ldr	r3, [fp, #-20]
	add	r1, r3, #15
	cmp	r3, #0
	movlt	r3, r1
	movge	r3, r3
	asr	r3, r3, #4
	add	r3, r0, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L319
	ldr	r3, .L321
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r1, r3, #15
	cmp	r3, #0
	movlt	r3, r1
	movge	r3, r3
	asr	r3, r3, #4
	mov	r1, r3
	ldr	r3, .L321+4
	ldr	r3, [r3]
	mul	r3, r1, r3
	mov	r0, r3
	ldr	r3, [fp, #-20]
	add	r1, r3, #15
	cmp	r3, #0
	movlt	r3, r1
	movge	r3, r3
	asr	r3, r3, #4
	add	r3, r0, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L321+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r1, r3, #15
	cmp	r3, #0
	movlt	r3, r1
	movge	r3, r3
	asr	r3, r3, #4
	mov	r1, r3
	ldr	r3, .L321+4
	ldr	r3, [r3]
	mul	r3, r1, r3
	mov	r0, r3
	ldr	r3, [fp, #-20]
	add	r1, r3, #15
	cmp	r3, #0
	movlt	r3, r1
	movge	r3, r3
	asr	r3, r3, #4
	add	r3, r0, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L320
.L315:
	.word	.L318
	.word	.L317
	.word	.L316
	.word	.L314
.L318:
	ldr	r3, .L321+12
	ldr	r0, [r3]
	ldr	r3, .L321+16
	ldr	r2, [r3]
	mov	r3, #16
	str	r3, [sp, #20]
	mov	r3, #16
	str	r3, [sp, #16]
	ldr	r3, [fp, #-20]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-16]
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	bl	XPutImage
	b	.L313
.L317:
	ldr	r3, .L321+12
	ldr	r0, [r3]
	ldr	r3, .L321+20
	ldr	r2, [r3]
	mov	r3, #16
	str	r3, [sp, #20]
	mov	r3, #16
	str	r3, [sp, #16]
	ldr	r3, [fp, #-20]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-16]
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	bl	XPutImage
	b	.L313
.L316:
	ldr	r3, .L321+12
	ldr	r0, [r3]
	ldr	r3, .L321+24
	ldr	r2, [r3]
	mov	r3, #16
	str	r3, [sp, #20]
	mov	r3, #16
	str	r3, [sp, #16]
	ldr	r3, [fp, #-20]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-16]
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	bl	XPutImage
	b	.L313
.L314:
	ldr	r3, .L321+12
	ldr	r0, [r3]
	ldr	r3, .L321+28
	ldr	r2, [r3]
	mov	r3, #16
	str	r3, [sp, #20]
	mov	r3, #16
	str	r3, [sp, #16]
	ldr	r3, [fp, #-20]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-16]
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	bl	XPutImage
	b	.L313
.L319:
	nop
.L313:
.L320:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L322:
	.align	2
.L321:
	.word	dmap
	.word	height
	.word	map
	.word	display
	.word	empty
	.word	wall
	.word	pill
	.word	eatpill
	.size	plot_map_tile, .-plot_map_tile
	.align	2
	.global	newghostpos_eat
	.syntax unified
	.arm
	.fpu softvfp
	.type	newghostpos_eat, %function
newghostpos_eat:
	@ args = 28, pretend = 16, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	add	r0, fp, #8
	stm	r0, {r1, r2, r3}
	ldr	r3, [fp, #8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #24]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L324
.L326:
	.word	.L329
	.word	.L328
	.word	.L327
	.word	.L325
.L329:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #2
	str	r3, [fp, #-8]
	b	.L324
.L325:
	ldr	r3, [fp, #-12]
	add	r3, r3, #2
	str	r3, [fp, #-12]
	b	.L324
.L327:
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	str	r3, [fp, #-8]
	b	.L324
.L328:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #2
	str	r3, [fp, #-12]
	nop
.L324:
	ldr	r2, [fp, #-12]
	ldr	r3, .L331
	ldr	r3, [r3]
	lsl	r3, r3, #4
	add	r2, r2, r3
	ldr	r3, .L331
	ldr	r3, [r3]
	lsl	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, .L331+4
	ldr	r3, [r3]
	lsl	r3, r3, #4
	add	r2, r2, r3
	ldr	r3, .L331+4
	ldr	r3, [r3]
	lsl	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	mov	r2, r3
	sub	r3, fp, #12
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r0, [fp, #-16]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L332:
	.align	2
.L331:
	.word	width
	.word	height
	.size	newghostpos_eat, .-newghostpos_eat
	.align	2
	.global	newghostpos
	.syntax unified
	.arm
	.fpu softvfp
	.type	newghostpos, %function
newghostpos:
	@ args = 28, pretend = 16, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	add	r0, fp, #8
	stm	r0, {r1, r2, r3}
	ldr	r3, [fp, #8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #24]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L334
.L336:
	.word	.L339
	.word	.L338
	.word	.L337
	.word	.L335
.L339:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #4
	str	r3, [fp, #-8]
	b	.L334
.L335:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	str	r3, [fp, #-12]
	b	.L334
.L337:
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	str	r3, [fp, #-8]
	b	.L334
.L338:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #4
	str	r3, [fp, #-12]
	nop
.L334:
	ldr	r2, [fp, #-12]
	ldr	r3, .L341
	ldr	r3, [r3]
	lsl	r3, r3, #4
	add	r2, r2, r3
	ldr	r3, .L341
	ldr	r3, [r3]
	lsl	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, .L341+4
	ldr	r3, [r3]
	lsl	r3, r3, #4
	add	r2, r2, r3
	ldr	r3, .L341+4
	ldr	r3, [r3]
	lsl	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	mov	r2, r3
	sub	r3, fp, #12
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r0, [fp, #-16]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L342:
	.align	2
.L341:
	.word	width
	.word	height
	.size	newghostpos, .-newghostpos
	.section	.rodata
	.align	2
.LC51:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	update_pacman_position
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_pacman_position, %function
update_pacman_position:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	ldr	r3, .L350
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L350+4
	ldr	r2, .L350+8
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, .L350+8
	ldr	r2, [r3]
	ldr	r3, .L350+8
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	and	r3, r3, #15
	cmp	r3, #0
	bne	.L348
	ldr	r3, .L350+12
	ldr	r3, [r3]
	str	r3, [fp, #-52]
	ldr	r3, .L350+16
	ldr	r3, [r3]
	ldr	r2, .L350+12
	str	r3, [r2]
	sub	r3, fp, #24
	mov	r0, r3
	bl	newpacpos
	ldr	r3, [fp, #-24]
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-20]
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	str	r3, [fp, #-44]
	ldr	r3, .L350+20
	ldr	r2, [r3]
	ldr	r3, .L350+24
	ldr	r3, [r3]
	ldr	r1, [fp, #-48]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-44]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-24]
	add	r3, r3, #15
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L350+28
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-48]
	ldr	r3, .L350+20
	ldr	r2, [r3]
	ldr	r3, .L350+24
	ldr	r3, [r3]
	ldr	r1, [fp, #-48]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-44]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-20]
	add	r3, r3, #15
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L350+24
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-44]
	ldr	r3, .L350+20
	ldr	r2, [r3]
	ldr	r3, .L350+24
	ldr	r3, [r3]
	ldr	r1, [fp, #-48]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-44]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-24]
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L350+28
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L350+28
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-48]
	ldr	r3, .L350+20
	ldr	r2, [r3]
	ldr	r3, .L350+24
	ldr	r3, [r3]
	ldr	r1, [fp, #-48]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-44]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	beq	.L345
	ldr	r3, [fp, #-36]
	cmp	r3, #1
	beq	.L345
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	beq	.L345
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	beq	.L345
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	blt	.L345
	ldr	r2, [fp, #-24]
	ldr	r3, .L350+28
	ldr	r3, [r3]
	sub	r3, r3, #1
	lsl	r3, r3, #4
	cmp	r2, r3
	bgt	.L345
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L345
	ldr	r2, [fp, #-20]
	ldr	r3, .L350+24
	ldr	r3, [r3]
	sub	r3, r3, #1
	lsl	r3, r3, #4
	cmp	r2, r3
	ble	.L348
.L345:
	ldr	r2, .L350+12
	ldr	r3, [fp, #-52]
	str	r3, [r2]
.L348:
	sub	r3, fp, #60
	mov	r0, r3
	bl	newpacpos
	sub	r3, fp, #24
	sub	r2, fp, #60
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-24]
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-20]
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	str	r3, [fp, #-44]
	ldr	r3, .L350+20
	ldr	r2, [r3]
	ldr	r3, .L350+24
	ldr	r3, [r3]
	ldr	r1, [fp, #-48]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-44]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-24]
	add	r3, r3, #15
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L350+28
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-48]
	ldr	r3, .L350+20
	ldr	r2, [r3]
	ldr	r3, .L350+24
	ldr	r3, [r3]
	ldr	r1, [fp, #-48]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-44]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-20]
	add	r3, r3, #15
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L350+24
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-44]
	ldr	r3, .L350+20
	ldr	r2, [r3]
	ldr	r3, .L350+24
	ldr	r3, [r3]
	ldr	r1, [fp, #-48]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-44]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-24]
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L350+28
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L350+28
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-48]
	ldr	r3, .L350+20
	ldr	r2, [r3]
	ldr	r3, .L350+24
	ldr	r3, [r3]
	ldr	r1, [fp, #-48]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-44]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	beq	.L346
	ldr	r3, [fp, #-36]
	cmp	r3, #1
	beq	.L346
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	beq	.L346
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	beq	.L346
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	blt	.L346
	ldr	r2, [fp, #-24]
	ldr	r3, .L350+28
	ldr	r3, [r3]
	sub	r3, r3, #1
	lsl	r3, r3, #4
	cmp	r2, r3
	bgt	.L346
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L346
	ldr	r2, [fp, #-20]
	ldr	r3, .L350+24
	ldr	r3, [r3]
	sub	r3, r3, #1
	lsl	r3, r3, #4
	cmp	r2, r3
	ble	.L347
.L346:
	ldr	r3, .L350+12
	ldr	r3, [r3]
	add	r3, r3, #1
	and	r3, r3, #3
	ldr	r2, .L350+12
	str	r3, [r2]
	ldr	r3, .L350+12
	ldr	r3, [r3]
	ldr	r2, .L350+16
	str	r3, [r2]
.L347:
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	beq	.L348
	ldr	r3, [fp, #-36]
	cmp	r3, #1
	beq	.L348
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	beq	.L348
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	beq	.L348
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	blt	.L348
	ldr	r2, [fp, #-24]
	ldr	r3, .L350+28
	ldr	r3, [r3]
	sub	r3, r3, #1
	lsl	r3, r3, #4
	cmp	r2, r3
	bgt	.L348
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L348
	ldr	r2, [fp, #-20]
	ldr	r3, .L350+24
	ldr	r3, [r3]
	sub	r3, r3, #1
	lsl	r3, r3, #4
	cmp	r2, r3
	bgt	.L348
	ldr	r4, .L350+8
	sub	r3, fp, #60
	mov	r0, r3
	bl	newpacpos
	mov	r2, r4
	sub	r3, fp, #60
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	nop
	ldr	r3, .L350
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L349
	bl	__stack_chk_fail
.L349:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L351:
	.align	2
.L350:
	.word	.LC51
	.word	oldpacpos
	.word	pacpos
	.word	pacdir
	.word	newdir
	.word	map
	.word	height
	.word	width
	.size	update_pacman_position, .-update_pacman_position
	.section	.rodata
	.align	2
.LC52:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	update_ghost_position
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_ghost_position, %function
update_ghost_position:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-32]
	ldr	r3, .L357
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	get_rand
	mov	r3, r0
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L355
	ldr	r3, [fp, #-32]
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	and	r3, r3, #15
	cmp	r3, #0
	bne	.L355
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	ldr	r4, [r3, #16]
	bl	get_rand
	mov	r3, r0
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	lsl	r3, r3, #1
	add	r3, r4, r3
	add	r3, r3, #1
	and	r2, r3, #3
	ldr	r3, [fp, #-32]
	str	r2, [r3, #16]
	sub	lr, fp, #24
	ldr	r3, [fp, #-32]
	mov	ip, sp
	add	r2, r3, #12
	ldm	r2, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldm	r3, {r1, r2, r3}
	mov	r0, lr
	bl	newghostpos
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	valid_position
	mov	r3, r0
	cmp	r3, #0
	bne	.L355
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	str	r2, [r3, #16]
.L355:
	sub	lr, fp, #44
	ldr	r3, [fp, #-32]
	mov	ip, sp
	add	r2, r3, #12
	ldm	r2, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldm	r3, {r1, r2, r3}
	mov	r0, lr
	bl	newghostpos
	sub	r3, fp, #24
	sub	r2, fp, #44
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	valid_position
	mov	r3, r0
	cmp	r3, #0
	bne	.L354
	bl	get_rand
	mov	r3, r0
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	mov	r2, r3
	ldr	r3, [fp, #-32]
	str	r2, [r3, #16]
.L354:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	valid_position
	mov	r3, r0
	cmp	r3, #0
	beq	.L355
	ldr	r3, [fp, #-32]
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-32]
	str	r2, [r3, #12]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-32]
	str	r2, [r3]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	str	r2, [r3, #4]
	nop
	ldr	r3, .L357
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L356
	bl	__stack_chk_fail
.L356:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L358:
	.align	2
.L357:
	.word	.LC52
	.size	update_ghost_position, .-update_ghost_position
	.section	.rodata
	.align	2
.LC53:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	update_ghost_position_eat
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_ghost_position_eat, %function
update_ghost_position_eat:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-32]
	ldr	r3, .L364
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	get_rand
	mov	r3, r0
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L362
	ldr	r3, [fp, #-32]
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	and	r3, r3, #15
	cmp	r3, #0
	bne	.L362
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	ldr	r4, [r3, #16]
	bl	get_rand
	mov	r3, r0
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	lsl	r3, r3, #1
	add	r3, r4, r3
	add	r3, r3, #1
	and	r2, r3, #3
	ldr	r3, [fp, #-32]
	str	r2, [r3, #16]
	sub	lr, fp, #24
	ldr	r3, [fp, #-32]
	mov	ip, sp
	add	r2, r3, #12
	ldm	r2, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldm	r3, {r1, r2, r3}
	mov	r0, lr
	bl	newghostpos_eat
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	valid_position
	mov	r3, r0
	cmp	r3, #0
	bne	.L362
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	str	r2, [r3, #16]
.L362:
	sub	lr, fp, #44
	ldr	r3, [fp, #-32]
	mov	ip, sp
	add	r2, r3, #12
	ldm	r2, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldm	r3, {r1, r2, r3}
	mov	r0, lr
	bl	newghostpos_eat
	sub	r3, fp, #24
	sub	r2, fp, #44
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	valid_position
	mov	r3, r0
	cmp	r3, #0
	bne	.L361
	bl	get_rand
	mov	r3, r0
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	mov	r2, r3
	ldr	r3, [fp, #-32]
	str	r2, [r3, #16]
.L361:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	valid_position
	mov	r3, r0
	cmp	r3, #0
	beq	.L362
	ldr	r3, [fp, #-32]
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-32]
	str	r2, [r3, #12]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-32]
	str	r2, [r3]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	str	r2, [r3, #4]
	nop
	ldr	r3, .L364
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L363
	bl	__stack_chk_fail
.L363:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L365:
	.align	2
.L364:
	.word	.LC53
	.size	update_ghost_position_eat, .-update_ghost_position_eat
	.align	2
	.global	update_ghosts
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_ghosts, %function
update_ghosts:
	@ 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	.L367
.L368:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, .L369
	add	r3, r3, r2
	mov	r0, r3
	bl	update_ghost_position
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L367:
	ldr	r3, .L369+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L368
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L370:
	.align	2
.L369:
	.word	ghosts
	.word	ghostnum
	.size	update_ghosts, .-update_ghosts
	.align	2
	.global	update_ghosts_eat
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_ghosts_eat, %function
update_ghosts_eat:
	@ 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	.L372
.L373:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, .L374
	add	r3, r3, r2
	mov	r0, r3
	bl	update_ghost_position_eat
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L372:
	ldr	r3, .L374+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L373
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L375:
	.align	2
.L374:
	.word	ghosts
	.word	ghostnum
	.size	update_ghosts_eat, .-update_ghosts_eat
	.align	2
	.global	valid_position
	.syntax unified
	.arm
	.fpu softvfp
	.type	valid_position, %function
valid_position:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-32]
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-36]
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	str	r3, [fp, #-24]
	ldr	r3, .L380
	ldr	r2, [r3]
	ldr	r3, .L380+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-28]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-24]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	add	r3, r3, #15
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L380+8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-28]
	ldr	r3, .L380
	ldr	r2, [r3]
	ldr	r3, .L380+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-28]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-24]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-36]
	add	r3, r3, #15
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L380+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-24]
	ldr	r3, .L380
	ldr	r2, [r3]
	ldr	r3, .L380+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-28]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-24]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L380+8
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L380+8
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-28]
	ldr	r3, .L380
	ldr	r2, [r3]
	ldr	r3, .L380+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-28]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-24]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	beq	.L377
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	beq	.L377
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	beq	.L377
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	beq	.L377
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	blt	.L377
	ldr	r3, .L380+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	lsl	r3, r3, #4
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bgt	.L377
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	blt	.L377
	ldr	r3, .L380+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	lsl	r3, r3, #4
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	ble	.L378
.L377:
	mov	r3, #0
	b	.L379
.L378:
	mov	r3, #1
.L379:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L381:
	.align	2
.L380:
	.word	map
	.word	height
	.word	width
	.size	valid_position, .-valid_position
	.align	2
	.global	init_game
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_game, %function
init_game:
	@ 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	r0, #0
	bl	time
	str	r0, [fp, #-8]
	ldr	r2, .L383
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	bl	setup_map_memory
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L384:
	.align	2
.L383:
	.word	randseed
	.size	init_game, .-init_game
	.align	2
	.global	test_collide
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_collide, %function
test_collide:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	cmn	r3, #14
	blt	.L386
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	cmp	r3, #14
	bgt	.L386
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	cmn	r3, #14
	blt	.L386
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	cmp	r3, #14
	bgt	.L386
	mov	r3, #1
	b	.L388
.L386:
	mov	r3, #0
.L388:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	test_collide, .-test_collide
	.align	2
	.global	test_ghost_collide
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_ghost_collide, %function
test_ghost_collide:
	@ 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	.L390
.L393:
	ldr	r1, .L394
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #16
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L391
	ldr	r3, .L394+4
	ldr	r0, [r3]
	ldr	r3, .L394+4
	ldr	r1, [r3, #4]
	ldr	ip, .L394
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, ip, r3
	ldr	ip, [r3]
	ldr	lr, .L394
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, lr, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, ip
	bl	test_collide
	mov	r3, r0
	cmp	r3, #0
	beq	.L391
	mov	r3, #1
	b	.L392
.L391:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L390:
	ldr	r3, .L394+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L393
	mov	r3, #0
.L392:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L395:
	.align	2
.L394:
	.word	ghosts
	.word	pacpos
	.word	ghostnum
	.size	test_ghost_collide, .-test_ghost_collide
	.align	2
	.global	which_ghost_collide
	.syntax unified
	.arm
	.fpu softvfp
	.type	which_ghost_collide, %function
which_ghost_collide:
	@ 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	.L397
.L400:
	ldr	r1, .L401
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #16
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L398
	ldr	r3, .L401+4
	ldr	r0, [r3]
	ldr	r3, .L401+4
	ldr	r1, [r3, #4]
	ldr	ip, .L401
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, ip, r3
	ldr	ip, [r3]
	ldr	lr, .L401
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, lr, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, ip
	bl	test_collide
	mov	r3, r0
	cmp	r3, #0
	beq	.L398
	ldr	r3, [fp, #-8]
	b	.L399
.L398:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L397:
	ldr	r3, .L401+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L400
	mvn	r3, #0
.L399:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L402:
	.align	2
.L401:
	.word	ghosts
	.word	pacpos
	.word	ghostnum
	.size	which_ghost_collide, .-which_ghost_collide
	.align	2
	.global	setup_eatpill
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_eatpill, %function
setup_eatpill:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	ldr	r3, .L404
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	setup_blank
	ldr	r3, .L404
	ldr	r3, [r3, #8]
	str	r3, [sp]
	mov	r3, #9
	mov	r2, #6
	mov	r1, #4
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L404
	ldr	r3, [r3, #8]
	str	r3, [sp]
	mov	r3, #10
	mov	r2, #5
	mov	r1, #5
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L404
	ldr	r3, [r3, #8]
	str	r3, [sp]
	mov	r3, #11
	mov	r2, #4
	mov	r1, #6
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L404
	ldr	r3, [r3, #8]
	str	r3, [sp]
	mov	r3, #11
	mov	r2, #4
	mov	r1, #7
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L404
	ldr	r3, [r3, #8]
	str	r3, [sp]
	mov	r3, #11
	mov	r2, #4
	mov	r1, #8
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L404
	ldr	r3, [r3, #8]
	str	r3, [sp]
	mov	r3, #11
	mov	r2, #4
	mov	r1, #9
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L404
	ldr	r3, [r3, #8]
	str	r3, [sp]
	mov	r3, #10
	mov	r2, #5
	mov	r1, #10
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	ldr	r3, .L404
	ldr	r3, [r3, #8]
	str	r3, [sp]
	mov	r3, #9
	mov	r2, #6
	mov	r1, #11
	ldr	r0, [fp, #-8]
	bl	draw_x_line
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L405:
	.align	2
.L404:
	.word	cvals
	.size	setup_eatpill, .-setup_eatpill
	.data
	.align	2
	.type	dash_list.9745, %object
	.size	dash_list.9745, 2
dash_list.9745:
	.ascii	"\014\030"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
