	.file	"15047.c"
	.intel_syntax noprefix
	.text
	.globl	win
	.bss
	.align 8
	.type	win, @object
	.size	win, 8
win:
	.zero	8
	.globl	stats
	.align 8
	.type	stats, @object
	.size	stats, 8
stats:
	.zero	8
	.globl	helpwindow
	.align 8
	.type	helpwindow, @object
	.size	helpwindow, 8
helpwindow:
	.zero	8
	.globl	encounterwin
	.align 8
	.type	encounterwin, @object
	.size	encounterwin, 8
encounterwin:
	.zero	8
	.globl	game_state
	.align 4
	.type	game_state, @object
	.size	game_state, 4
game_state:
	.zero	4
	.globl	width
	.align 4
	.type	width, @object
	.size	width, 4
width:
	.zero	4
	.globl	height
	.align 4
	.type	height, @object
	.size	height, 4
height:
	.zero	4
	.globl	quit
	.type	quit, @object
	.size	quit, 1
quit:
	.zero	1
	.globl	walk_counter
	.align 4
	.type	walk_counter, @object
	.size	walk_counter, 4
walk_counter:
	.zero	4
	.globl	mapTopX
	.align 4
	.type	mapTopX, @object
	.size	mapTopX, 4
mapTopX:
	.zero	4
	.globl	mapTopY
	.align 4
	.type	mapTopY, @object
	.size	mapTopY, 4
mapTopY:
	.zero	4
	.globl	grid
	.align 8
	.type	grid, @object
	.size	grid, 8
grid:
	.zero	8
	.globl	grid2
	.align 8
	.type	grid2, @object
	.size	grid2, 8
grid2:
	.zero	8
	.globl	fillprob
	.data
	.align 4
	.type	fillprob, @object
	.size	fillprob, 4
fillprob:
	.long	40
	.globl	r1_cutoff
	.align 4
	.type	r1_cutoff, @object
	.size	r1_cutoff, 4
r1_cutoff:
	.long	5
	.globl	r2_cutoff
	.align 4
	.type	r2_cutoff, @object
	.size	r2_cutoff, 4
r2_cutoff:
	.long	2
	.globl	size_x
	.align 4
	.type	size_x, @object
	.size	size_x, 4
size_x:
	.long	800
	.globl	size_y
	.align 4
	.type	size_y, @object
	.size	size_y, 4
size_y:
	.long	600
	.globl	params
	.bss
	.align 8
	.type	params, @object
	.size	params, 8
params:
	.zero	8
	.globl	params_set
	.align 8
	.type	params_set, @object
	.size	params_set, 8
params_set:
	.zero	8
	.globl	generations
	.align 4
	.type	generations, @object
	.size	generations, 4
generations:
	.zero	4
	.globl	player
	.align 32
	.type	player, @object
	.size	player, 96
player:
	.zero	96
	.globl	races
	.section	.rodata
.LC0:
	.string	"Human"
.LC1:
	.string	"Elf"
.LC2:
	.string	"Giant"
	.section	.data.rel.local,"aw"
	.align 32
	.type	races, @object
	.size	races, 120
races:
	.quad	.LC0
	.long	0
	.long	0
	.long	18
	.long	18
	.long	13
	.long	18
	.long	6
	.zero	4
	.quad	.LC1
	.long	0
	.long	0
	.long	15
	.long	19
	.long	20
	.long	20
	.long	7
	.zero	4
	.quad	.LC2
	.long	5
	.long	5
	.long	25
	.long	15
	.long	12
	.long	10
	.long	10
	.zero	4
	.globl	weapons
	.section	.rodata
.LC3:
	.string	"Shortsword"
.LC4:
	.string	"Dagger"
.LC5:
	.string	"Broadsword"
	.section	.data.rel.local
	.align 32
	.type	weapons, @object
	.size	weapons, 48
weapons:
	.quad	.LC3
	.long	6
	.long	10
	.quad	.LC4
	.long	4
	.long	4
	.quad	.LC5
	.long	8
	.long	12
	.globl	enemies
	.section	.rodata
.LC6:
	.string	"Goblin"
.LC7:
	.string	"Berserker"
.LC8:
	.string	"Orc"
.LC9:
	.string	"Evil Faerie"
	.section	.data.rel.local
	.align 32
	.type	enemies, @object
	.size	enemies, 192
enemies:
	.quad	.LC6
	.long	1
	.long	15
	.long	8
	.long	10
	.long	12
	.long	1
	.long	2
	.long	3
	.long	4
	.zero	4
	.quad	.LC7
	.long	1
	.long	12
	.long	8
	.long	10
	.long	12
	.long	0
	.long	5
	.long	4
	.long	6
	.zero	4
	.quad	.LC8
	.long	2
	.long	20
	.long	5
	.long	12
	.long	13
	.long	2
	.long	1
	.long	3
	.long	10
	.zero	4
	.quad	.LC9
	.long	3
	.long	13
	.long	4
	.long	5
	.long	20
	.long	-1
	.long	0
	.long	40
	.long	2
	.zero	4
	.globl	command
	.section	.rodata
.LC10:
	.string	"New Game"
.LC11:
	.string	"Quit"
	.section	.data.rel.local
	.align 32
	.type	command, @object
	.size	command, 32
command:
	.quad	.LC10
	.long	1
	.zero	4
	.quad	.LC11
	.long	3
	.zero	4
	.text
	.globl	mapPick
	.type	mapPick, @function
mapPick:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 100
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR fillprob[rip]
	cmp	edx, eax
	jge	.L2
	mov	eax, 0
	jmp	.L3
.L2:
	mov	eax, 1
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	mapPick, .-mapPick
	.globl	playerDidHit
	.type	playerDidHit, @function
playerDidHit:
.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, 16
	mov	DWORD PTR -8[rbp], 0
	mov	esi, 20
	mov	edi, 1
	call	rollDie
	mov	DWORD PTR -4[rbp], eax
	mov	BYTE PTR player[rip+88], 0
	cmp	DWORD PTR -4[rbp], 1
	jne	.L5
	mov	eax, 0
	jmp	.L6
.L5:
	cmp	DWORD PTR -4[rbp], 20
	jne	.L7
	mov	BYTE PTR player[rip+88], 1
	mov	eax, 1
	jmp	.L6
.L7:
	mov	edx, DWORD PTR player[rip+84]
	mov	eax, DWORD PTR -4[rbp]
	add	edx, eax
	mov	eax, DWORD PTR player[rip+32]
	add	eax, edx
	mov	DWORD PTR -8[rbp], eax
	mov	edx, DWORD PTR 32[rbp]
	mov	eax, DWORD PTR 40[rbp]
	add	eax, edx
	cmp	DWORD PTR -8[rbp], eax
	jle	.L8
	mov	eax, 1
	jmp	.L6
.L8:
	mov	eax, 0
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	playerDidHit, .-playerDidHit
	.section	.rodata
.LC12:
	.string	"@"
	.align 8
.LC13:
	.string	"Character Name (8 letter max): "
.LC14:
	.string	"Race: "
.LC15:
	.string	"[%i] - %s"
.LC16:
	.string	"%s - %s"
.LC17:
	.string	"STR: %i"
.LC18:
	.string	"DEF: %i"
.LC19:
	.string	"AGI: %i"
	.align 8
.LC20:
	.string	"Enter/Space: Roll Again\tA - Accept Character"
.LC21:
	.string	"Generating Dungeon..."
	.text
	.globl	newGame
	.type	newGame, @function
newGame:
.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, 16
	mov	DWORD PTR player[rip+12], 2
	mov	DWORD PTR player[rip+16], 2
	mov	DWORD PTR player[rip+44], 1
	mov	DWORD PTR player[rip+52], 0
	mov	BYTE PTR player[rip+64], 0
	lea	rax, .LC12[rip]
	mov	QWORD PTR player[rip+72], rax
	mov	DWORD PTR player[rip+80], 0
	mov	DWORD PTR player[rip+24], 0
	mov	DWORD PTR player[rip+28], 0
	mov	DWORD PTR player[rip+84], 1
	mov	DWORD PTR player[rip+56], 5
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wclear@PLT
	call	has_colors@PLT
	test	al, al
	je	.L10
	mov	edx, 4
	mov	esi, 7
	mov	edi, 2
	call	init_pair@PLT
	mov	rax, QWORD PTR win[rip]
	mov	esi, 2097664
	mov	rdi, rax
	call	wbkgd@PLT
	jmp	.L11
.L10:
	mov	rax, QWORD PTR win[rip]
	mov	esi, 2097152
	mov	rdi, rax
	call	wbkgd@PLT
.L11:
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wclear@PLT
	mov	edi, DWORD PTR acs_map[rip+452]
	mov	ecx, DWORD PTR acs_map[rip+452]
	mov	edx, DWORD PTR acs_map[rip+480]
	mov	esi, DWORD PTR acs_map[rip+480]
	mov	rax, QWORD PTR win[rip]
	sub	rsp, 8
	push	0
	push	0
	push	0
	mov	r9d, 0
	mov	r8d, edi
	mov	rdi, rax
	call	wborder@PLT
	add	rsp, 32
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	call	echo@PLT
	mov	rax, QWORD PTR win[rip]
	mov	edx, 2
	mov	esi, 2
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L13
	mov	rax, QWORD PTR win[rip]
	mov	edx, -1
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	waddnstr@PLT
.L13:
	mov	rax, QWORD PTR win[rip]
	mov	edx, 8
	lea	rsi, player[rip]
	mov	rdi, rax
	call	wgetnstr@PLT
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	call	noecho@PLT
	mov	rax, QWORD PTR win[rip]
	mov	edx, 2
	mov	esi, 3
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L15
	mov	rax, QWORD PTR win[rip]
	mov	edx, -1
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	waddnstr@PLT
.L15:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, races[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	esi, 4[rax]
	mov	rax, QWORD PTR win[rip]
	mov	r9, rdx
	mov	r8d, ecx
	lea	rcx, .LC15[rip]
	mov	edx, 4
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	add	DWORD PTR -12[rbp], 1
.L16:
	cmp	DWORD PTR -12[rbp], 2
	jle	.L17
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	DWORD PTR player[rip+52], eax
	jmp	.L18
.L19:
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	DWORD PTR player[rip+52], eax
.L18:
	mov	eax, DWORD PTR player[rip+52]
	cmp	eax, 48
	jle	.L19
	mov	eax, DWORD PTR player[rip+52]
	cmp	eax, 51
	jg	.L19
	mov	eax, DWORD PTR player[rip+52]
	sub	eax, 49
	mov	DWORD PTR player[rip+52], eax
	mov	eax, DWORD PTR player[rip+52]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, races[rip+24]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR player[rip+44]
	mov	ecx, eax
	shr	ecx, 31
	add	eax, ecx
	sar	eax
	add	eax, edx
	mov	DWORD PTR player[rip+20], eax
	mov	DWORD PTR -8[rbp], 0
	jmp	.L20
.L24:
	mov	eax, DWORD PTR player[rip+52]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, races[rip+16]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	statRoll
	mov	DWORD PTR player[rip+32], eax
	mov	eax, DWORD PTR player[rip+52]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, races[rip+20]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	statRoll
	mov	DWORD PTR player[rip+36], eax
	mov	eax, DWORD PTR player[rip+52]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, races[rip+28]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	statRoll
	mov	DWORD PTR player[rip+40], eax
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wclear@PLT
	mov	edi, DWORD PTR acs_map[rip+452]
	mov	ecx, DWORD PTR acs_map[rip+452]
	mov	edx, DWORD PTR acs_map[rip+480]
	mov	esi, DWORD PTR acs_map[rip+480]
	mov	rax, QWORD PTR win[rip]
	sub	rsp, 8
	push	0
	push	0
	push	0
	mov	r9d, 0
	mov	r8d, edi
	mov	rdi, rax
	call	wborder@PLT
	add	rsp, 32
	mov	eax, DWORD PTR player[rip+52]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, races[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR win[rip]
	mov	r9, rdx
	lea	r8, player[rip]
	lea	rcx, .LC16[rip]
	mov	edx, 2
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	edx, DWORD PTR player[rip+32]
	mov	rax, QWORD PTR win[rip]
	mov	r8d, edx
	lea	rcx, .LC17[rip]
	mov	edx, 15
	mov	esi, 4
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	edx, DWORD PTR player[rip+36]
	mov	rax, QWORD PTR win[rip]
	mov	r8d, edx
	lea	rcx, .LC18[rip]
	mov	edx, 15
	mov	esi, 5
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	edx, DWORD PTR player[rip+40]
	mov	rax, QWORD PTR win[rip]
	mov	r8d, edx
	lea	rcx, .LC19[rip]
	mov	edx, 15
	mov	esi, 6
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR win[rip]
	mov	esi, 262144
	mov	rdi, rax
	call	wattrset@PLT
	mov	rax, QWORD PTR win[rip]
	lea	rcx, .LC20[rip]
	mov	edx, 15
	mov	esi, 10
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR win[rip]
	mov	edx, 0
	mov	esi, 262144
	mov	rdi, rax
	call	wattr_off@PLT
	call	flushinp@PLT
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	call	noecho@PLT
	mov	rax, QWORD PTR win[rip]
	mov	esi, 1
	mov	rdi, rax
	call	keypad@PLT
	call	raw@PLT
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 343
	je	.L21
	cmp	DWORD PTR -4[rbp], 343
	jg	.L20
	cmp	DWORD PTR -4[rbp], 97
	je	.L22
	cmp	DWORD PTR -4[rbp], 97
	jg	.L20
	cmp	DWORD PTR -4[rbp], 32
	jg	.L23
	cmp	DWORD PTR -4[rbp], 10
	jl	.L20
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	movabs	rax, 4294976512
	and	rax, rdx
	test	rax, rax
	setne	al
	test	al, al
	jne	.L21
	jmp	.L20
.L23:
	cmp	DWORD PTR -4[rbp], 65
	je	.L22
	jmp	.L20
.L21:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L20
.L22:
	mov	DWORD PTR -8[rbp], 1
	nop
.L20:
	cmp	DWORD PTR -8[rbp], 0
	je	.L24
	call	clearPlay
	mov	rax, QWORD PTR win[rip]
	lea	rcx, .LC21[rip]
	mov	edx, 15
	mov	esi, 4
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	call	buildMap
	mov	rax, QWORD PTR win[rip]
	mov	edx, 60
	mov	esi, 20
	mov	rdi, rax
	mov	eax, 0
	call	resize_window@PLT
	call	drawPlayArea
	call	drawStatsArea
	call	gameLoop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	newGame, .-newGame
	.globl	initMap
	.type	initMap, @function
initMap:
.LFB9:
	.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, 24
	.cfi_offset 3, -24
	mov	edi, 4800
	call	malloc@PLT
	mov	QWORD PTR grid[rip], rax
	mov	edi, 4800
	call	malloc@PLT
	mov	QWORD PTR grid2[rip], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L26
.L27:
	mov	rdx, QWORD PTR grid[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	lea	rbx, [rdx+rax]
	mov	edi, 3200
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rdx, QWORD PTR grid2[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	lea	rbx, [rdx+rax]
	mov	edi, 3200
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -20[rbp], 1
.L26:
	mov	eax, DWORD PTR size_y[rip]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L27
	mov	DWORD PTR -20[rbp], 1
	jmp	.L28
.L31:
	mov	DWORD PTR -24[rbp], 1
	jmp	.L29
.L30:
	mov	rdx, QWORD PTR grid[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	lea	rbx, [rdx+rax]
	call	mapPick
	mov	DWORD PTR [rbx], eax
	add	DWORD PTR -24[rbp], 1
.L29:
	cmp	DWORD PTR -24[rbp], 798
	jle	.L30
	add	DWORD PTR -20[rbp], 1
.L28:
	cmp	DWORD PTR -20[rbp], 598
	jle	.L31
	mov	DWORD PTR -20[rbp], 0
	jmp	.L32
.L35:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L33
.L34:
	mov	rdx, QWORD PTR grid2[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	add	DWORD PTR -24[rbp], 1
.L33:
	cmp	DWORD PTR -24[rbp], 799
	jle	.L34
	add	DWORD PTR -20[rbp], 1
.L32:
	cmp	DWORD PTR -20[rbp], 599
	jle	.L35
	mov	DWORD PTR -20[rbp], 0
	jmp	.L36
.L37:
	mov	rdx, QWORD PTR grid[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR size_x[rip]
	cdqe
	sal	rax, 2
	sub	rax, 4
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rcx, QWORD PTR grid[rip]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rdx, QWORD PTR [rdx]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -20[rbp], 1
.L36:
	cmp	DWORD PTR -20[rbp], 599
	jle	.L37
	mov	DWORD PTR -24[rbp], 0
	jmp	.L38
.L39:
	mov	rdx, QWORD PTR grid[rip]
	mov	eax, DWORD PTR size_y[rip]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR grid[rip]
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -24[rbp], 1
.L38:
	cmp	DWORD PTR -24[rbp], 799
	jle	.L39
	nop
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	initMap, .-initMap
	.globl	buildMap
	.type	buildMap, @function
buildMap:
.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, 16
	mov	DWORD PTR mapTopX[rip], 0
	mov	DWORD PTR mapTopY[rip], 0
	call	initMap
	mov	DWORD PTR generations[rip], 1
	mov	DWORD PTR fillprob[rip], 35
	mov	eax, DWORD PTR generations[rip]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR params_set[rip], rax
	mov	rax, QWORD PTR params_set[rip]
	mov	QWORD PTR params[rip], rax
	mov	rax, QWORD PTR params[rip]
	mov	DWORD PTR [rax], 24
	mov	rax, QWORD PTR params[rip]
	mov	DWORD PTR 4[rax], 5
	mov	rax, QWORD PTR params[rip]
	mov	DWORD PTR 8[rax], 1
	mov	rax, QWORD PTR params[rip]
	add	rax, 12
	mov	QWORD PTR params[rip], rax
	mov	rax, QWORD PTR params[rip]
	mov	DWORD PTR [rax], 20
	mov	rax, QWORD PTR params[rip]
	mov	DWORD PTR 4[rax], 3
	mov	rax, QWORD PTR params[rip]
	mov	DWORD PTR 8[rax], 1
	mov	rax, QWORD PTR params[rip]
	add	rax, 12
	mov	QWORD PTR params[rip], rax
	mov	DWORD PTR -8[rbp], 0
	jmp	.L41
.L44:
	mov	rcx, QWORD PTR params_set[rip]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	QWORD PTR params[rip], rax
	mov	DWORD PTR -4[rbp], 0
	jmp	.L42
.L43:
	call	generation
	add	DWORD PTR -4[rbp], 1
.L42:
	mov	rax, QWORD PTR params[rip]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L43
	add	DWORD PTR -8[rbp], 1
.L41:
	mov	eax, DWORD PTR generations[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L44
	mov	rax, QWORD PTR params[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR params_set[rip]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	buildMap, .-buildMap
	.globl	generation
	.type	generation, @function
generation:
.LFB11:
	.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], 1
	jmp	.L46
.L65:
	mov	DWORD PTR -24[rbp], 1
	jmp	.L47
.L64:
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -16[rbp], -1
	jmp	.L48
.L52:
	mov	DWORD PTR -12[rbp], -1
	jmp	.L49
.L51:
	mov	rdx, QWORD PTR grid[rip]
	mov	ecx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -16[rbp]
	add	eax, ecx
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	ecx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, ecx
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	je	.L50
	add	DWORD PTR -8[rbp], 1
.L50:
	add	DWORD PTR -12[rbp], 1
.L49:
	cmp	DWORD PTR -12[rbp], 1
	jle	.L51
	add	DWORD PTR -16[rbp], 1
.L48:
	cmp	DWORD PTR -16[rbp], 1
	jle	.L52
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 2
	mov	DWORD PTR -16[rbp], eax
	jmp	.L53
.L60:
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, 2
	mov	DWORD PTR -12[rbp], eax
	jmp	.L54
.L59:
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, DWORD PTR -20[rbp]
	cdq
	xor	eax, edx
	sub	eax, edx
	cmp	eax, 2
	jne	.L55
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, DWORD PTR -24[rbp]
	cdq
	xor	eax, edx
	sub	eax, edx
	cmp	eax, 2
	je	.L70
.L55:
	cmp	DWORD PTR -16[rbp], 0
	js	.L71
	cmp	DWORD PTR -12[rbp], 0
	js	.L71
	mov	eax, DWORD PTR size_y[rip]
	cmp	DWORD PTR -16[rbp], eax
	jge	.L71
	mov	eax, DWORD PTR size_x[rip]
	cmp	DWORD PTR -12[rbp], eax
	jge	.L71
	mov	rdx, QWORD PTR grid[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	je	.L56
	add	DWORD PTR -4[rbp], 1
	jmp	.L56
.L70:
	nop
	jmp	.L56
.L71:
	nop
.L56:
	add	DWORD PTR -12[rbp], 1
.L54:
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 2
	cmp	DWORD PTR -12[rbp], eax
	jle	.L59
	add	DWORD PTR -16[rbp], 1
.L53:
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 2
	cmp	DWORD PTR -16[rbp], eax
	jle	.L60
	mov	rax, QWORD PTR params[rip]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -8[rbp], eax
	jge	.L61
	mov	rax, QWORD PTR params[rip]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -4[rbp], eax
	jg	.L62
.L61:
	mov	rdx, QWORD PTR grid2[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	jmp	.L63
.L62:
	mov	rdx, QWORD PTR grid2[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 1
.L63:
	add	DWORD PTR -24[rbp], 1
.L47:
	cmp	DWORD PTR -24[rbp], 798
	jle	.L64
	add	DWORD PTR -20[rbp], 1
.L46:
	cmp	DWORD PTR -20[rbp], 598
	jle	.L65
	mov	DWORD PTR -20[rbp], 1
	jmp	.L66
.L69:
	mov	DWORD PTR -24[rbp], 1
	jmp	.L67
.L68:
	mov	rdx, QWORD PTR grid2[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rcx, QWORD PTR grid[rip]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -24[rbp], 1
.L67:
	mov	eax, DWORD PTR size_x[rip]
	sub	eax, 1
	cmp	DWORD PTR -24[rbp], eax
	jl	.L68
	add	DWORD PTR -20[rbp], 1
.L66:
	mov	eax, DWORD PTR size_y[rip]
	sub	eax, 1
	cmp	DWORD PTR -20[rbp], eax
	jl	.L69
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	generation, .-generation
	.globl	updatePlayer
	.type	updatePlayer, @function
updatePlayer:
.LFB12:
	.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 player[rip+20]
	test	eax, eax
	jne	.L73
	mov	BYTE PTR player[rip+64], 1
.L73:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 100
	sub	eax, ecx
	mov	edx, eax
	cmp	edx, 30
	jne	.L75
	call	showEncounter
.L75:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	updatePlayer, .-updatePlayer
	.globl	getPlayerInput
	.type	getPlayerInput, @function
getPlayerInput:
.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	rax, QWORD PTR win[rip]
	mov	esi, 1
	mov	rdi, rax
	call	keypad@PLT
	call	raw@PLT
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR win[rip]
	mov	esi, 0
	mov	rdi, rax
	call	keypad@PLT
	call	flushinp@PLT
	mov	eax, DWORD PTR player[rip+12]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR player[rip+16]
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -12[rbp], 360
	je	.L104
	cmp	DWORD PTR -12[rbp], 360
	jg	.L78
	cmp	DWORD PTR -12[rbp], 343
	je	.L105
	cmp	DWORD PTR -12[rbp], 343
	jg	.L78
	cmp	DWORD PTR -12[rbp], 339
	je	.L80
	cmp	DWORD PTR -12[rbp], 339
	jg	.L78
	cmp	DWORD PTR -12[rbp], 338
	je	.L104
	cmp	DWORD PTR -12[rbp], 338
	jg	.L78
	cmp	DWORD PTR -12[rbp], 265
	jg	.L78
	cmp	DWORD PTR -12[rbp], 258
	jge	.L81
	cmp	DWORD PTR -12[rbp], 113
	je	.L82
	cmp	DWORD PTR -12[rbp], 113
	jg	.L78
	cmp	DWORD PTR -12[rbp], 81
	je	.L82
	cmp	DWORD PTR -12[rbp], 81
	jg	.L78
	cmp	DWORD PTR -12[rbp], 10
	je	.L105
	cmp	DWORD PTR -12[rbp], 13
	jmp	.L105
.L81:
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 258
	cmp	eax, 7
	ja	.L78
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L84[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L84[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L84:
	.long	.L88-.L84
	.long	.L87-.L84
	.long	.L86-.L84
	.long	.L85-.L84
	.long	.L80-.L84
	.long	.L78-.L84
	.long	.L78-.L84
	.long	.L83-.L84
	.text
.L80:
	mov	eax, DWORD PTR player[rip+16]
	sub	eax, 1
	mov	DWORD PTR player[rip+16], eax
	mov	eax, DWORD PTR player[rip+12]
	sub	eax, 1
	mov	DWORD PTR player[rip+12], eax
	mov	eax, DWORD PTR walk_counter[rip]
	add	eax, 1
	mov	DWORD PTR walk_counter[rip], eax
	jmp	.L78
.L83:
	call	showHelp
	jmp	.L78
.L87:
	mov	eax, DWORD PTR player[rip+16]
	cmp	eax, 2
	jle	.L89
	mov	eax, DWORD PTR player[rip+16]
	sub	eax, 1
	mov	DWORD PTR player[rip+16], eax
	jmp	.L78
.L89:
	mov	eax, DWORD PTR mapTopY[rip]
	sub	eax, 1
	mov	DWORD PTR mapTopY[rip], eax
	jmp	.L78
.L88:
	mov	eax, DWORD PTR player[rip+16]
	cmp	eax, 15
	jg	.L91
	mov	eax, DWORD PTR player[rip+16]
	add	eax, 1
	mov	DWORD PTR player[rip+16], eax
	jmp	.L78
.L91:
	mov	eax, DWORD PTR mapTopY[rip]
	add	eax, 1
	mov	DWORD PTR mapTopY[rip], eax
	jmp	.L78
.L85:
	mov	eax, DWORD PTR player[rip+12]
	cmp	eax, 55
	jg	.L93
	mov	eax, DWORD PTR player[rip+12]
	add	eax, 1
	mov	DWORD PTR player[rip+12], eax
	jmp	.L78
.L93:
	mov	eax, DWORD PTR mapTopX[rip]
	add	eax, 1
	mov	DWORD PTR mapTopX[rip], eax
	jmp	.L78
.L86:
	mov	eax, DWORD PTR player[rip+12]
	cmp	eax, 2
	jle	.L95
	mov	eax, DWORD PTR player[rip+12]
	sub	eax, 1
	mov	DWORD PTR player[rip+12], eax
	jmp	.L78
.L95:
	mov	eax, DWORD PTR mapTopX[rip]
	sub	eax, 1
	mov	DWORD PTR mapTopX[rip], eax
	jmp	.L78
.L82:
	mov	BYTE PTR quit[rip], 1
	mov	DWORD PTR game_state[rip], 0
	jmp	.L78
.L104:
	nop
	jmp	.L78
.L105:
	nop
.L78:
	mov	rdx, QWORD PTR grid[rip]
	mov	ecx, DWORD PTR player[rip+16]
	mov	eax, DWORD PTR mapTopY[rip]
	add	eax, ecx
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	ecx, DWORD PTR player[rip+12]
	mov	eax, DWORD PTR mapTopX[rip]
	add	eax, ecx
	cdqe
	sal	rax, 2
	sub	rax, 4
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L97
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR player[rip+12], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR player[rip+16], eax
.L97:
	mov	eax, DWORD PTR player[rip+12]
	cmp	DWORD PTR -8[rbp], eax
	jne	.L98
	mov	eax, DWORD PTR player[rip+16]
	cmp	DWORD PTR -4[rbp], eax
	je	.L99
.L98:
	mov	eax, DWORD PTR walk_counter[rip]
	add	eax, 1
	mov	DWORD PTR walk_counter[rip], eax
	mov	eax, DWORD PTR walk_counter[rip]
	cmp	eax, 5
	jne	.L99
	mov	DWORD PTR walk_counter[rip], 0
	call	healPlayer
.L99:
	mov	eax, DWORD PTR mapTopY[rip]
	test	eax, eax
	jns	.L100
	mov	DWORD PTR mapTopY[rip], 0
.L100:
	mov	eax, DWORD PTR mapTopX[rip]
	test	eax, eax
	jns	.L101
	mov	DWORD PTR mapTopX[rip], 0
.L101:
	mov	edx, DWORD PTR player[rip+12]
	mov	eax, DWORD PTR mapTopX[rip]
	add	eax, edx
	cmp	eax, 800
	jne	.L102
	mov	DWORD PTR mapTopX[rip], 742
.L102:
	mov	edx, DWORD PTR player[rip+16]
	mov	eax, DWORD PTR mapTopY[rip]
	add	eax, edx
	cmp	eax, 599
	jne	.L106
	mov	DWORD PTR mapTopY[rip], 582
.L106:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	getPlayerInput, .-getPlayerInput
	.globl	healPlayer
	.type	healPlayer, @function
healPlayer:
.LFB14:
	.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 player[rip+52]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, races[rip+24]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR player[rip+44]
	mov	ecx, eax
	shr	ecx, 31
	add	eax, ecx
	sar	eax
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR player[rip+20]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L109
	mov	eax, DWORD PTR player[rip+20]
	add	eax, 1
	mov	DWORD PTR player[rip+20], eax
.L109:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	healPlayer, .-healPlayer
	.globl	gameLoop
	.type	gameLoop, @function
gameLoop:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	jmp	.L111
.L113:
	call	getPlayerInput
	movzx	eax, BYTE PTR quit[rip]
	xor	eax, 1
	test	al, al
	je	.L111
	call	updatePlayer
	call	drawPlayArea
	call	drawStatsArea
.L111:
	mov	eax, DWORD PTR game_state[rip]
	cmp	eax, 3
	je	.L114
	movzx	eax, BYTE PTR quit[rip]
	xor	eax, 1
	test	al, al
	je	.L114
	movzx	eax, BYTE PTR player[rip+64]
	xor	eax, 1
	test	al, al
	jne	.L113
.L114:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	gameLoop, .-gameLoop
	.globl	rollDie
	.type	rollDie, @function
rollDie:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	call	rand@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC22[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -24[rbp]
	movsd	xmm1, QWORD PTR -16[rbp]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	cvttsd2si	edx, xmm0
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	rollDie, .-rollDie
	.globl	statRoll
	.type	statRoll, @function
statRoll:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L118
.L119:
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	mov	edi, 1
	call	rollDie
	mov	DWORD PTR -4[rbp], eax
.L118:
	cmp	DWORD PTR -4[rbp], 5
	jle	.L119
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	statRoll, .-statRoll
	.section	.rodata
.LC23:
	.string	"!!! ENCOUNTER !!!"
	.text
	.globl	showEncounter
	.type	showEncounter, @function
showEncounter:
.LFB18:
	.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 encounterwin[rip]
	mov	rdi, rax
	call	wclear@PLT
	mov	rax, QWORD PTR encounterwin[rip]
	mov	esi, 2098176
	mov	rdi, rax
	call	wbkgd@PLT
	mov	edi, DWORD PTR acs_map[rip+452]
	mov	ecx, DWORD PTR acs_map[rip+452]
	mov	edx, DWORD PTR acs_map[rip+480]
	mov	esi, DWORD PTR acs_map[rip+480]
	mov	rax, QWORD PTR encounterwin[rip]
	sub	rsp, 8
	push	0
	push	0
	push	0
	mov	r9d, 0
	mov	r8d, edi
	mov	rdi, rax
	call	wborder@PLT
	add	rsp, 32
	mov	rax, QWORD PTR encounterwin[rip]
	lea	rcx, .LC23[rip]
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR encounterwin[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	edi, 1500
	call	napms@PLT
	call	doBattle
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	showEncounter, .-showEncounter
	.globl	clearPlay
	.type	clearPlay, @function
clearPlay:
.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 win[rip]
	mov	esi, 1048576
	mov	rdi, rax
	call	wbkgd@PLT
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wclear@PLT
	mov	edi, DWORD PTR acs_map[rip+452]
	mov	ecx, DWORD PTR acs_map[rip+452]
	mov	edx, DWORD PTR acs_map[rip+480]
	mov	esi, DWORD PTR acs_map[rip+480]
	mov	rax, QWORD PTR win[rip]
	sub	rsp, 8
	push	0
	push	0
	push	0
	mov	r9d, 0
	mov	r8d, edi
	mov	rdi, rax
	call	wborder@PLT
	add	rsp, 32
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	clearPlay, .-clearPlay
	.globl	levelUp
	.type	levelUp, @function
levelUp:
.LFB20:
	.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	edx, DWORD PTR player[rip+24]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	mov	DWORD PTR player[rip+24], eax
	mov	edx, DWORD PTR player[rip+28]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	mov	DWORD PTR player[rip+28], eax
	mov	eax, DWORD PTR player[rip+28]
	cmp	eax, 99
	jle	.L124
	mov	eax, DWORD PTR player[rip+28]
	sub	eax, 100
	mov	DWORD PTR player[rip+28], eax
	mov	eax, DWORD PTR player[rip+44]
	add	eax, 1
	mov	DWORD PTR player[rip+44], eax
	mov	eax, DWORD PTR player[rip+32]
	add	eax, 1
	mov	DWORD PTR player[rip+32], eax
	mov	eax, DWORD PTR player[rip+36]
	add	eax, 1
	mov	DWORD PTR player[rip+36], eax
	mov	eax, DWORD PTR player[rip+84]
	add	eax, 1
	mov	DWORD PTR player[rip+84], eax
	mov	eax, DWORD PTR player[rip+52]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, races[rip+24]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR player[rip+44]
	mov	ecx, eax
	shr	ecx, 31
	add	eax, ecx
	sar	eax
	add	eax, edx
	mov	DWORD PTR player[rip+20], eax
	mov	eax, 1
	jmp	.L125
.L124:
	mov	eax, 0
.L125:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	levelUp, .-levelUp
	.section	.rodata
.LC24:
	.string	"[A]ttack"
.LC25:
	.string	"[F]lee"
.LC26:
	.string	"%s flees from the battle!"
	.align 8
.LC27:
	.string	"%s attempts to flee but fails!"
.LC28:
	.string	"%s attacks the %s..."
	.align 8
.LC29:
	.string	"...%s's strike glances off the %s!"
	.align 8
.LC30:
	.string	"...%s hits the %s for %i damage!"
.LC31:
	.string	"...%s misses!"
.LC32:
	.string	"Invalid Option. Try again."
.LC33:
	.string	"Thou art dead!"
.LC34:
	.string	"Press any key..."
.LC35:
	.string	"Victory!"
.LC36:
	.string	"%s hast slain the %s!"
.LC37:
	.string	"%s found %i gold on the %s"
	.align 8
.LC38:
	.string	"%s gained %i XP from the battle"
.LC39:
	.string	"%s has gained a level!"
	.align 8
.LC40:
	.string	"Press any key to continue thine journey..."
	.text
	.globl	doBattle
	.type	doBattle, @function
doBattle:
.LFB21:
	.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, 88
	.cfi_offset 3, -24
	mov	DWORD PTR -92[rbp], 1
	mov	DWORD PTR -84[rbp], 0
	mov	DWORD PTR -80[rbp], 0
	mov	DWORD PTR -76[rbp], 0
	mov	DWORD PTR -72[rbp], 0
	mov	BYTE PTR -93[rbp], 0
	mov	esi, 4
	mov	edi, 0
	call	rollDie
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], 4
	jne	.L127
	mov	DWORD PTR -88[rbp], 3
.L127:
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, enemies[rip]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	rbx, QWORD PTR 8[rdx+rax]
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -56[rbp], rbx
	mov	rcx, QWORD PTR 16[rdx+rax]
	mov	rbx, QWORD PTR 24[rdx+rax]
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -40[rbp], rbx
	lea	rdx, 32[rdx+rax]
	mov	rax, QWORD PTR [rdx]
	mov	rdx, QWORD PTR 8[rdx]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, -1
	jne	.L128
	mov	esi, 3
	mov	edi, 0
	call	rollDie
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], 3
	jne	.L129
	mov	DWORD PTR -88[rbp], 2
.L129:
	mov	eax, DWORD PTR -88[rbp]
	mov	DWORD PTR -36[rbp], eax
.L128:
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	mov	edi, 1
	call	rollDie
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	test	eax, eax
	je	.L131
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	mov	edi, 1
	call	rollDie
	mov	DWORD PTR -84[rbp], eax
	jmp	.L131
.L145:
	call	flushinp@PLT
	mov	eax, DWORD PTR -92[rbp]
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	push	QWORD PTR -56[rbp]
	push	QWORD PTR -64[rbp]
	mov	edi, eax
	call	battleStats
	add	rsp, 48
	mov	rax, QWORD PTR win[rip]
	mov	esi, 2097152
	mov	rdi, rax
	call	wattrset@PLT
	mov	rax, QWORD PTR win[rip]
	lea	rcx, .LC24[rip]
	mov	edx, 12
	mov	esi, 7
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR win[rip]
	lea	rcx, .LC25[rip]
	mov	edx, 12
	mov	esi, 8
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR win[rip]
	mov	esi, 0
	mov	rdi, rax
	call	wattrset@PLT
	call	noecho@PLT
	mov	rax, QWORD PTR win[rip]
	mov	esi, 1
	mov	rdi, rax
	call	keypad@PLT
	call	raw@PLT
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	DWORD PTR -68[rbp], eax
	call	flushinp@PLT
	cmp	DWORD PTR -68[rbp], 102
	je	.L132
	cmp	DWORD PTR -68[rbp], 102
	jg	.L133
	cmp	DWORD PTR -68[rbp], 97
	je	.L134
	cmp	DWORD PTR -68[rbp], 97
	jg	.L133
	cmp	DWORD PTR -68[rbp], 65
	je	.L134
	cmp	DWORD PTR -68[rbp], 70
	jne	.L133
.L132:
	mov	esi, 6
	mov	edi, 1
	call	rollDie
	mov	ebx, eax
	mov	esi, 6
	mov	edi, 1
	call	rollDie
	add	ebx, eax
	mov	esi, 6
	mov	edi, 1
	call	rollDie
	add	eax, ebx
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR player[rip+40]
	cmp	DWORD PTR -72[rbp], eax
	jge	.L135
	mov	eax, DWORD PTR -92[rbp]
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	push	QWORD PTR -56[rbp]
	push	QWORD PTR -64[rbp]
	mov	edi, eax
	call	battleStats
	add	rsp, 48
	mov	rax, QWORD PTR win[rip]
	lea	r8, player[rip]
	lea	rcx, .LC26[rip]
	mov	edx, 3
	mov	esi, 10
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	edi, 500
	call	napms@PLT
	mov	BYTE PTR -93[rbp], 1
	mov	DWORD PTR walk_counter[rip], 0
	jmp	.L137
.L135:
	mov	eax, DWORD PTR -92[rbp]
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	push	QWORD PTR -56[rbp]
	push	QWORD PTR -64[rbp]
	mov	edi, eax
	call	battleStats
	add	rsp, 48
	mov	rax, QWORD PTR win[rip]
	lea	r8, player[rip]
	lea	rcx, .LC27[rip]
	mov	edx, 3
	mov	esi, 10
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	edi, 1000
	call	napms@PLT
	mov	eax, DWORD PTR -92[rbp]
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	push	QWORD PTR -56[rbp]
	push	QWORD PTR -64[rbp]
	mov	edi, eax
	call	enemyAttack
	add	rsp, 48
	add	DWORD PTR -92[rbp], 1
	jmp	.L137
.L134:
	mov	eax, DWORD PTR -92[rbp]
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	push	QWORD PTR -56[rbp]
	push	QWORD PTR -64[rbp]
	mov	edi, eax
	call	battleStats
	add	rsp, 48
	mov	eax, DWORD PTR player[rip+48]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, weapons[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR win[rip]
	sub	rsp, 8
	push	rdx
	mov	r9, rcx
	lea	r8, player[rip]
	lea	rcx, .LC28[rip]
	mov	edx, 3
	mov	esi, 10
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	add	rsp, 16
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	push	QWORD PTR -56[rbp]
	push	QWORD PTR -64[rbp]
	call	playerDidHit
	add	rsp, 48
	test	al, al
	je	.L138
	mov	ecx, DWORD PTR player[rip+32]
	mov	eax, DWORD PTR player[rip+48]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, weapons[rip+8]
	mov	eax, DWORD PTR [rdx+rax]
	lea	edx, [rcx+rax]
	mov	eax, DWORD PTR player[rip+84]
	lea	ebx, [rdx+rax]
	mov	eax, DWORD PTR player[rip+48]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, weapons[rip+12]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	mov	edi, 1
	call	rollDie
	add	eax, ebx
	mov	ecx, DWORD PTR -40[rbp]
	mov	edx, DWORD PTR -24[rbp]
	add	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	jg	.L139
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR win[rip]
	mov	r9, rdx
	lea	r8, player[rip]
	lea	rcx, .LC29[rip]
	mov	edx, 5
	mov	esi, 11
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	jmp	.L140
.L139:
	mov	rcx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR win[rip]
	sub	rsp, 8
	mov	edx, DWORD PTR -76[rbp]
	push	rdx
	mov	r9, rcx
	lea	r8, player[rip]
	lea	rcx, .LC30[rip]
	mov	edx, 5
	mov	esi, 11
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	add	rsp, 16
	mov	eax, DWORD PTR -52[rbp]
	sub	eax, DWORD PTR -76[rbp]
	mov	DWORD PTR -52[rbp], eax
	jmp	.L140
.L138:
	mov	rax, QWORD PTR win[rip]
	lea	r8, player[rip]
	lea	rcx, .LC31[rip]
	mov	edx, 5
	mov	esi, 11
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
.L140:
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	edi, 750
	call	napms@PLT
	mov	eax, DWORD PTR -52[rbp]
	test	eax, eax
	jle	.L152
	mov	eax, DWORD PTR -92[rbp]
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	push	QWORD PTR -56[rbp]
	push	QWORD PTR -64[rbp]
	mov	edi, eax
	call	enemyAttack
	add	rsp, 48
	add	DWORD PTR -92[rbp], 1
	jmp	.L152
.L133:
	mov	rax, QWORD PTR win[rip]
	mov	esi, 262144
	mov	rdi, rax
	call	wattrset@PLT
	mov	rax, QWORD PTR win[rip]
	lea	rcx, .LC32[rip]
	mov	edx, 10
	mov	esi, 10
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR win[rip]
	mov	esi, 0
	mov	rdi, rax
	call	wattrset@PLT
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	edi, 500
	call	napms@PLT
	jmp	.L137
.L152:
	nop
.L137:
	mov	eax, DWORD PTR player[rip+20]
	test	eax, eax
	jns	.L142
	mov	DWORD PTR player[rip+20], 0
.L142:
	mov	eax, DWORD PTR player[rip+20]
	test	eax, eax
	jne	.L143
	mov	BYTE PTR player[rip+64], 1
.L143:
	call	drawStatsArea
.L131:
	mov	eax, DWORD PTR -52[rbp]
	test	eax, eax
	jle	.L144
	movzx	eax, BYTE PTR player[rip+64]
	xor	eax, 1
	test	al, al
	je	.L144
	mov	eax, DWORD PTR player[rip+20]
	test	eax, eax
	jle	.L144
	movzx	eax, BYTE PTR -93[rbp]
	xor	eax, 1
	test	al, al
	jne	.L145
.L144:
	call	flushinp@PLT
	movzx	eax, BYTE PTR player[rip+64]
	test	al, al
	je	.L146
	mov	rax, QWORD PTR win[rip]
	mov	esi, 1049600
	mov	rdi, rax
	call	wbkgd@PLT
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wclear@PLT
	mov	edi, DWORD PTR acs_map[rip+452]
	mov	ecx, DWORD PTR acs_map[rip+452]
	mov	edx, DWORD PTR acs_map[rip+480]
	mov	esi, DWORD PTR acs_map[rip+480]
	mov	rax, QWORD PTR win[rip]
	sub	rsp, 8
	push	0
	push	0
	push	0
	mov	r9d, 0
	mov	r8d, edi
	mov	rdi, rax
	call	wborder@PLT
	add	rsp, 32
	mov	rax, QWORD PTR win[rip]
	lea	rcx, .LC33[rip]
	mov	edx, 20
	mov	esi, 10
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR win[rip]
	lea	rcx, .LC34[rip]
	mov	edx, 20
	mov	esi, 12
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	DWORD PTR game_state[rip], 3
	jmp	.L153
.L146:
	movzx	eax, BYTE PTR -93[rbp]
	xor	eax, 1
	test	al, al
	je	.L153
	mov	edx, DWORD PTR player[rip+8]
	mov	eax, DWORD PTR -84[rbp]
	add	eax, edx
	cmp	eax, 2147483647
	jne	.L148
	mov	DWORD PTR player[rip+8], 2147483647
	jmp	.L149
.L148:
	mov	edx, DWORD PTR player[rip+8]
	mov	eax, DWORD PTR -84[rbp]
	add	eax, edx
	mov	DWORD PTR player[rip+8], eax
.L149:
	mov	eax, DWORD PTR player[rip+80]
	add	eax, 1
	mov	DWORD PTR player[rip+80], eax
	mov	DWORD PTR walk_counter[rip], 0
	mov	rax, QWORD PTR win[rip]
	mov	esi, 1048832
	mov	rdi, rax
	call	wbkgd@PLT
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wclear@PLT
	mov	edi, DWORD PTR acs_map[rip+452]
	mov	ecx, DWORD PTR acs_map[rip+452]
	mov	edx, DWORD PTR acs_map[rip+480]
	mov	esi, DWORD PTR acs_map[rip+480]
	mov	rax, QWORD PTR win[rip]
	sub	rsp, 8
	push	0
	push	0
	push	0
	mov	r9d, 0
	mov	r8d, edi
	mov	rdi, rax
	call	wborder@PLT
	add	rsp, 32
	mov	rax, QWORD PTR win[rip]
	lea	rcx, .LC35[rip]
	mov	edx, 10
	mov	esi, 3
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR win[rip]
	mov	r9, rdx
	lea	r8, player[rip]
	lea	rcx, .LC36[rip]
	mov	edx, 5
	mov	esi, 5
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR win[rip]
	mov	ecx, DWORD PTR -84[rbp]
	sub	rsp, 8
	push	rdx
	mov	r9d, ecx
	lea	r8, player[rip]
	lea	rcx, .LC37[rip]
	mov	edx, 5
	mov	esi, 6
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	add	rsp, 16
	cmp	DWORD PTR -80[rbp], 0
	jle	.L150
	mov	rax, QWORD PTR win[rip]
	mov	edx, DWORD PTR -80[rbp]
	mov	r9d, edx
	lea	r8, player[rip]
	lea	rcx, .LC38[rip]
	mov	edx, 5
	mov	esi, 7
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
.L150:
	mov	eax, DWORD PTR -80[rbp]
	mov	edi, eax
	call	levelUp
	cmp	eax, 1
	jne	.L151
	mov	rax, QWORD PTR win[rip]
	mov	esi, 2097152
	mov	rdi, rax
	call	wattrset@PLT
	mov	rax, QWORD PTR win[rip]
	lea	r8, player[rip]
	lea	rcx, .LC39[rip]
	mov	edx, 5
	mov	esi, 9
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR win[rip]
	mov	esi, 0
	mov	rdi, rax
	call	wattrset@PLT
.L151:
	mov	rax, QWORD PTR win[rip]
	mov	esi, 262144
	mov	rdi, rax
	call	wattrset@PLT
	mov	rax, QWORD PTR win[rip]
	lea	rcx, .LC40[rip]
	mov	edx, 10
	mov	esi, 13
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR win[rip]
	mov	esi, 0
	mov	rdi, rax
	call	wattrset@PLT
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	call	drawStatsArea
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wgetch@PLT
.L153:
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	doBattle, .-doBattle
	.section	.rodata
	.align 8
.LC41:
	.string	"The %s attacks %s with a %s..."
.LC42:
	.string	"...the %s misses!"
	.align 8
.LC43:
	.string	"...the strike glances off %s's armor"
	.align 8
.LC44:
	.string	"...the %s deals %i damage to %s!"
	.text
	.globl	enemyAttack
	.type	enemyAttack, @function
enemyAttack:
.LFB22:
	.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	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	eax, DWORD PTR -36[rbp]
	push	QWORD PTR 56[rbp]
	push	QWORD PTR 48[rbp]
	push	QWORD PTR 40[rbp]
	push	QWORD PTR 32[rbp]
	push	QWORD PTR 24[rbp]
	push	QWORD PTR 16[rbp]
	mov	edi, eax
	call	battleStats
	add	rsp, 48
	mov	eax, DWORD PTR 44[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, weapons[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rcx, QWORD PTR 16[rbp]
	mov	rax, QWORD PTR win[rip]
	sub	rsp, 8
	push	rdx
	lea	r9, player[rip]
	mov	r8, rcx
	lea	rcx, .LC41[rip]
	mov	edx, 3
	mov	esi, 10
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	add	rsp, 16
	mov	edi, 500
	call	napms@PLT
	mov	esi, 20
	mov	edi, 1
	call	rollDie
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 1
	jne	.L155
	mov	rdx, QWORD PTR 16[rbp]
	mov	rax, QWORD PTR win[rip]
	mov	r8, rdx
	lea	rcx, .LC42[rip]
	mov	edx, 5
	mov	esi, 11
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
.L155:
	mov	edx, DWORD PTR 36[rbp]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -28[rbp], 20
	je	.L156
	mov	edx, DWORD PTR player[rip+36]
	mov	eax, DWORD PTR player[rip+56]
	add	eax, edx
	cmp	DWORD PTR -24[rbp], eax
	jle	.L157
.L156:
	mov	ecx, DWORD PTR 36[rbp]
	mov	eax, DWORD PTR 44[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, weapons[rip+8]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ebx, [rcx+rax]
	mov	eax, DWORD PTR 44[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, weapons[rip+12]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	mov	edi, 1
	call	rollDie
	add	eax, ebx
	mov	ecx, DWORD PTR player[rip+36]
	mov	edx, DWORD PTR player[rip+56]
	add	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jg	.L158
	mov	rax, QWORD PTR win[rip]
	lea	r8, player[rip]
	lea	rcx, .LC43[rip]
	mov	edx, 5
	mov	esi, 11
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	jmp	.L160
.L158:
	mov	rcx, QWORD PTR 16[rbp]
	mov	rax, QWORD PTR win[rip]
	mov	esi, DWORD PTR -20[rbp]
	sub	rsp, 8
	lea	rdx, player[rip]
	push	rdx
	mov	r9d, esi
	mov	r8, rcx
	lea	rcx, .LC44[rip]
	mov	edx, 5
	mov	esi, 11
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	add	rsp, 16
	mov	eax, DWORD PTR player[rip+20]
	sub	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR player[rip+20], eax
	jmp	.L160
.L157:
	mov	rdx, QWORD PTR 16[rbp]
	mov	rax, QWORD PTR win[rip]
	mov	r8, rdx
	lea	rcx, .LC42[rip]
	mov	edx, 5
	mov	esi, 11
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
.L160:
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	edi, 500
	call	napms@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	enemyAttack, .-enemyAttack
	.section	.rodata
.LC45:
	.string	"Battle - Round %i"
.LC46:
	.string	"%s"
.LC47:
	.string	"Level: %i"
.LC48:
	.string	"HP: %i"
	.text
	.globl	battleStats
	.type	battleStats, @function
battleStats:
.LFB23:
	.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
	call	clearPlay
	mov	rax, QWORD PTR win[rip]
	mov	edx, DWORD PTR -4[rbp]
	mov	r8d, edx
	lea	rcx, .LC45[rip]
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR win[rip]
	mov	esi, 262144
	mov	rdi, rax
	call	wattrset@PLT
	mov	rdx, QWORD PTR 16[rbp]
	mov	rax, QWORD PTR win[rip]
	mov	r8, rdx
	lea	rcx, .LC46[rip]
	mov	edx, 1
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR win[rip]
	mov	esi, 0
	mov	rdi, rax
	call	wattrset@PLT
	mov	edx, DWORD PTR 24[rbp]
	mov	rax, QWORD PTR win[rip]
	mov	r8d, edx
	lea	rcx, .LC47[rip]
	mov	edx, 1
	mov	esi, 3
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	edx, DWORD PTR 28[rbp]
	mov	rax, QWORD PTR win[rip]
	mov	r8d, edx
	lea	rcx, .LC48[rip]
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	battleStats, .-battleStats
	.globl	drawPlayArea
	.type	drawPlayArea, @function
drawPlayArea:
.LFB24:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	clearPlay
	call	drawMap
	mov	rax, QWORD PTR win[rip]
	mov	edx, 0
	mov	esi, 2099712
	mov	rdi, rax
	call	wattr_on@PLT
	mov	rcx, QWORD PTR player[rip+72]
	mov	edx, DWORD PTR player[rip+12]
	mov	esi, DWORD PTR player[rip+16]
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR win[rip]
	mov	edx, 0
	mov	esi, 2099712
	mov	rdi, rax
	call	wattr_off@PLT
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	drawPlayArea, .-drawPlayArea
	.section	.rodata
.LC49:
	.string	"."
	.text
	.globl	drawMap
	.type	drawMap, @function
drawMap:
.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, 16
	mov	DWORD PTR -4[rbp], 0
	jmp	.L164
.L170:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L165
.L169:
	mov	rdx, QWORD PTR grid[rip]
	mov	ecx, DWORD PTR mapTopY[rip]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, ecx
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	ecx, DWORD PTR mapTopX[rip]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, ecx
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L166
	cmp	eax, 1
	je	.L167
	jmp	.L168
.L166:
	mov	rax, QWORD PTR win[rip]
	mov	esi, 1024
	mov	rdi, rax
	call	wattrset@PLT
	mov	edx, DWORD PTR acs_map[rip+416]
	mov	eax, DWORD PTR -8[rbp]
	lea	edi, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	lea	esi, 1[rax]
	mov	rax, QWORD PTR win[rip]
	mov	ecx, edx
	mov	edx, edi
	mov	rdi, rax
	mov	eax, 0
	call	mvwaddrawch@PLT
	mov	rax, QWORD PTR win[rip]
	mov	edx, 0
	mov	esi, 1024
	mov	rdi, rax
	call	wattr_off@PLT
	jmp	.L168
.L167:
	mov	rax, QWORD PTR win[rip]
	mov	esi, 2816
	mov	rdi, rax
	call	wattrset@PLT
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	lea	esi, 1[rax]
	mov	rax, QWORD PTR win[rip]
	lea	rcx, .LC49[rip]
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR win[rip]
	mov	edx, 0
	mov	esi, 2816
	mov	rdi, rax
	call	wattr_off@PLT
	nop
.L168:
	add	DWORD PTR -8[rbp], 1
.L165:
	cmp	DWORD PTR -8[rbp], 57
	jle	.L169
	add	DWORD PTR -4[rbp], 1
.L164:
	cmp	DWORD PTR -4[rbp], 17
	jle	.L170
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	drawMap, .-drawMap
	.section	.rodata
.LC50:
	.string	"Gold: %i"
.LC51:
	.string	"XP: %i"
.LC52:
	.string	"Slain: %i"
.LC53:
	.string	"XP Needed: %i"
	.text
	.globl	drawStatsArea
	.type	drawStatsArea, @function
drawStatsArea:
.LFB26:
	.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 stats[rip]
	mov	rdi, rax
	call	wclear@PLT
	mov	rax, QWORD PTR stats[rip]
	mov	esi, 1048576
	mov	rdi, rax
	call	wbkgd@PLT
	mov	edi, DWORD PTR acs_map[rip+452]
	mov	ecx, DWORD PTR acs_map[rip+452]
	mov	edx, DWORD PTR acs_map[rip+480]
	mov	esi, DWORD PTR acs_map[rip+480]
	mov	rax, QWORD PTR stats[rip]
	sub	rsp, 8
	push	0
	push	0
	push	0
	mov	r9d, 0
	mov	r8d, edi
	mov	rdi, rax
	call	wborder@PLT
	add	rsp, 32
	mov	rax, QWORD PTR stats[rip]
	mov	esi, 2097152
	mov	rdi, rax
	call	wattrset@PLT
	mov	rax, QWORD PTR stats[rip]
	lea	rcx, player[rip]
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR stats[rip]
	mov	esi, 0
	mov	rdi, rax
	call	wattrset@PLT
	mov	eax, DWORD PTR player[rip+52]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, races[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR stats[rip]
	mov	r8, rdx
	lea	rcx, .LC46[rip]
	mov	edx, 1
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	edx, DWORD PTR player[rip+8]
	mov	rax, QWORD PTR stats[rip]
	mov	r8d, edx
	lea	rcx, .LC50[rip]
	mov	edx, 1
	mov	esi, 3
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	edx, DWORD PTR player[rip+44]
	mov	rax, QWORD PTR stats[rip]
	mov	r8d, edx
	lea	rcx, .LC47[rip]
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	edx, DWORD PTR player[rip+20]
	mov	rax, QWORD PTR stats[rip]
	mov	r8d, edx
	lea	rcx, .LC48[rip]
	mov	edx, 1
	mov	esi, 5
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	edx, DWORD PTR player[rip+24]
	mov	rax, QWORD PTR stats[rip]
	mov	r8d, edx
	lea	rcx, .LC51[rip]
	mov	edx, 1
	mov	esi, 6
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	edx, DWORD PTR player[rip+32]
	mov	rax, QWORD PTR stats[rip]
	mov	r8d, edx
	lea	rcx, .LC17[rip]
	mov	edx, 1
	mov	esi, 7
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	edx, DWORD PTR player[rip+36]
	mov	rax, QWORD PTR stats[rip]
	mov	r8d, edx
	lea	rcx, .LC18[rip]
	mov	edx, 1
	mov	esi, 8
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	edx, DWORD PTR player[rip+40]
	mov	rax, QWORD PTR stats[rip]
	mov	r8d, edx
	lea	rcx, .LC19[rip]
	mov	edx, 1
	mov	esi, 9
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR stats[rip]
	mov	edx, 1
	mov	esi, 16
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L173
	mov	ecx, DWORD PTR acs_map[rip+452]
	mov	rax, QWORD PTR stats[rip]
	mov	edx, 18
	mov	esi, ecx
	mov	rdi, rax
	call	whline@PLT
.L173:
	mov	edx, DWORD PTR player[rip+80]
	mov	rax, QWORD PTR stats[rip]
	mov	r8d, edx
	lea	rcx, .LC52[rip]
	mov	edx, 1
	mov	esi, 17
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	eax, DWORD PTR player[rip+28]
	mov	edx, 100
	sub	edx, eax
	mov	rax, QWORD PTR stats[rip]
	mov	r8d, edx
	lea	rcx, .LC53[rip]
	mov	edx, 1
	mov	esi, 18
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR stats[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	drawStatsArea, .-drawStatsArea
	.section	.rodata
.LC54:
	.string	"Help"
.LC55:
	.string	"Q - Quit"
.LC56:
	.string	"F1 - Help (this screen)"
.LC57:
	.string	"Left Arrow - Move Left"
.LC58:
	.string	"Right Arrow - Move Right"
.LC59:
	.string	"Down Arrow - Move Down"
.LC60:
	.string	"Up Arrow - Move Up"
.LC61:
	.string	"Press any key to resume"
	.text
	.globl	showHelp
	.type	showHelp, @function
showHelp:
.LFB27:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	flushinp@PLT
	mov	rax, QWORD PTR helpwindow[rip]
	mov	rdi, rax
	call	wclear@PLT
	mov	rax, QWORD PTR helpwindow[rip]
	mov	esi, 1049088
	mov	rdi, rax
	call	wbkgd@PLT
	mov	rax, QWORD PTR helpwindow[rip]
	sub	rsp, 8
	push	0
	push	0
	push	0
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	wborder@PLT
	add	rsp, 32
	mov	rax, QWORD PTR helpwindow[rip]
	mov	esi, 2097152
	mov	rdi, rax
	call	wattrset@PLT
	mov	rax, QWORD PTR helpwindow[rip]
	lea	rcx, .LC54[rip]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR helpwindow[rip]
	lea	rcx, .LC55[rip]
	mov	edx, 2
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR helpwindow[rip]
	lea	rcx, .LC56[rip]
	mov	edx, 2
	mov	esi, 3
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR helpwindow[rip]
	lea	rcx, .LC57[rip]
	mov	edx, 2
	mov	esi, 4
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR helpwindow[rip]
	lea	rcx, .LC58[rip]
	mov	edx, 2
	mov	esi, 5
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR helpwindow[rip]
	lea	rcx, .LC59[rip]
	mov	edx, 2
	mov	esi, 6
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR helpwindow[rip]
	lea	rcx, .LC60[rip]
	mov	edx, 2
	mov	esi, 7
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR helpwindow[rip]
	mov	esi, 262144
	mov	rdi, rax
	call	wattrset@PLT
	mov	rax, QWORD PTR helpwindow[rip]
	lea	rcx, .LC61[rip]
	mov	edx, 2
	mov	esi, 18
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR helpwindow[rip]
	mov	esi, 0
	mov	rdi, rax
	call	wattrset@PLT
	mov	rax, QWORD PTR helpwindow[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	rax, QWORD PTR helpwindow[rip]
	mov	rdi, rax
	call	wgetch@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE27:
	.size	showHelp, .-showHelp
	.globl	quitGame
	.type	quitGame, @function
quitGame:
.LFB28:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	BYTE PTR quit[rip], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE28:
	.size	quitGame, .-quitGame
	.globl	gameOptions
	.type	gameOptions, @function
gameOptions:
.LFB29:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE29:
	.size	gameOptions, .-gameOptions
	.globl	loadGame
	.type	loadGame, @function
loadGame:
.LFB30:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE30:
	.size	loadGame, .-loadGame
	.section	.rodata
.LC62:
	.string	"Dungcrwl - A Beginner's RPG"
	.text
	.globl	display_menu
	.type	display_menu, @function
display_menu:
.LFB31:
	.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	eax, DWORD PTR COLS[rip]
	sub	eax, 14
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR LINES[rip]
	sub	eax, 4
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L179
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 2097152
	mov	rdi, rax
	call	wattrset@PLT
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, -5[rax]
	mov	eax, DWORD PTR -4[rbp]
	lea	ecx, -2[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L181
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, -1
	lea	rsi, .LC62[rip]
	mov	rdi, rax
	call	waddnstr@PLT
.L181:
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 0
	mov	rdi, rax
	call	wattrset@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L182
.L185:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -12[rbp]
	lea	ecx, [rdx+rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, DWORD PTR -8[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L184
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, command[rip]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, -1
	mov	rsi, rcx
	mov	rdi, rax
	call	waddnstr@PLT
.L184:
	add	DWORD PTR -12[rbp], 1
.L182:
	cmp	DWORD PTR -12[rbp], 1
	jle	.L185
	jmp	.L186
.L179:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -20[rbp]
	lea	ecx, [rdx+rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, DWORD PTR -8[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L186
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, command[rip]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, -1
	mov	rsi, rcx
	mov	rdi, rax
	call	waddnstr@PLT
.L186:
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 262144
	mov	rdi, rax
	call	wattrset@PLT
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -24[rbp]
	lea	ecx, [rdx+rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, DWORD PTR -8[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L189
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, command[rip]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, -1
	mov	rsi, rcx
	mov	rdi, rax
	call	waddnstr@PLT
.L189:
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 0
	mov	rdi, rax
	call	wattrset@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE31:
	.size	display_menu, .-display_menu
	.globl	initGame
	.type	initGame, @function
initGame:
.LFB32:
	.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	QWORD PTR -32[rbp], rsi
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	call	initscr@PLT
	call	raw@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 1
	mov	rdi, rax
	call	nodelay@PLT
	call	noecho@PLT
	mov	edi, 0
	call	curs_set@PLT
	call	nonl@PLT
	call	has_colors@PLT
	test	al, al
	je	.L191
	call	start_color@PLT
.L191:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L192
.L195:
	cmp	DWORD PTR -4[rbp], 7
	jne	.L193
	mov	eax, DWORD PTR -4[rbp]
	movsx	edx, ax
	mov	eax, DWORD PTR -4[rbp]
	cwde
	mov	esi, 0
	mov	edi, eax
	call	init_pair@PLT
	jmp	.L194
.L193:
	mov	eax, DWORD PTR -4[rbp]
	movsx	edx, ax
	mov	eax, DWORD PTR -4[rbp]
	cwde
	mov	esi, 7
	mov	edi, eax
	call	init_pair@PLT
.L194:
	add	DWORD PTR -4[rbp], 1
.L192:
	mov	eax, DWORD PTR COLORS[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L195
	mov	edx, 0
	mov	esi, 3
	mov	edi, 10
	call	init_pair@PLT
	mov	edx, 0
	mov	esi, 2
	mov	edi, 11
	call	init_pair@PLT
	mov	DWORD PTR width[rip], 80
	mov	DWORD PTR height[rip], 20
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wclear@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	edx, DWORD PTR width[rip]
	mov	eax, DWORD PTR height[rip]
	mov	esi, edx
	mov	edi, eax
	call	resize_term@PLT
	mov	eax, DWORD PTR COLS[rip]
	mov	edx, DWORD PTR width[rip]
	sub	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	ecx, eax
	mov	eax, DWORD PTR LINES[rip]
	mov	edx, DWORD PTR height[rip]
	sub	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	esi, DWORD PTR width[rip]
	mov	eax, DWORD PTR height[rip]
	mov	edi, eax
	call	newwin@PLT
	mov	QWORD PTR win[rip], rax
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 0
	mov	edi, 0
	call	newwin@PLT
	mov	QWORD PTR helpwindow[rip], rax
	mov	ecx, 60
	mov	edx, 0
	mov	esi, 20
	mov	edi, 20
	call	newwin@PLT
	mov	QWORD PTR stats[rip], rax
	mov	ecx, 20
	mov	edx, 10
	mov	esi, 19
	mov	edi, 3
	call	newwin@PLT
	mov	QWORD PTR encounterwin[rip], rax
	mov	rax, QWORD PTR win[rip]
	test	rax, rax
	je	.L196
	mov	rax, QWORD PTR stats[rip]
	test	rax, rax
	je	.L196
	mov	rax, QWORD PTR helpwindow[rip]
	test	rax, rax
	jne	.L197
.L196:
	call	endwin@PLT
	mov	eax, 1
	jmp	.L198
.L197:
	call	savetty@PLT
	mov	esi, 0
	mov	edi, 0
	call	resize_term@PLT
	mov	DWORD PTR game_state[rip], 0
	mov	eax, 0
.L198:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE32:
	.size	initGame, .-initGame
	.globl	gameShutdown
	.type	gameShutdown, @function
gameShutdown:
.LFB33:
	.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 win[rip]
	mov	rdi, rax
	call	delwin@PLT
	mov	rax, QWORD PTR helpwindow[rip]
	mov	rdi, rax
	call	delwin@PLT
	mov	rax, QWORD PTR stats[rip]
	mov	rdi, rax
	call	delwin@PLT
	mov	rax, QWORD PTR encounterwin[rip]
	mov	rdi, rax
	call	delwin@PLT
	mov	rax, QWORD PTR grid[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR grid2[rip]
	mov	rdi, rax
	call	free@PLT
	mov	edi, 1
	call	curs_set@PLT
	call	endwin@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE33:
	.size	gameShutdown, .-gameShutdown
	.globl	showMenu
	.type	showMenu, @function
showMenu:
.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, 16
	mov	DWORD PTR -8[rbp], -1
	mov	DWORD PTR -12[rbp], 0
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	display_menu
	jmp	.L201
.L214:
	call	noecho@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 1
	mov	rdi, rax
	call	keypad@PLT
	call	raw@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 410
	je	.L202
	cmp	DWORD PTR -4[rbp], 410
	jg	.L201
	cmp	DWORD PTR -4[rbp], 360
	je	.L203
	cmp	DWORD PTR -4[rbp], 360
	jg	.L201
	cmp	DWORD PTR -4[rbp], 343
	je	.L204
	cmp	DWORD PTR -4[rbp], 343
	jg	.L201
	cmp	DWORD PTR -4[rbp], 339
	je	.L205
	cmp	DWORD PTR -4[rbp], 339
	jg	.L201
	cmp	DWORD PTR -4[rbp], 338
	je	.L203
	cmp	DWORD PTR -4[rbp], 338
	jg	.L201
	cmp	DWORD PTR -4[rbp], 262
	je	.L205
	cmp	DWORD PTR -4[rbp], 262
	jg	.L201
	cmp	DWORD PTR -4[rbp], 259
	je	.L206
	cmp	DWORD PTR -4[rbp], 259
	jg	.L201
	cmp	DWORD PTR -4[rbp], 258
	je	.L207
	cmp	DWORD PTR -4[rbp], 258
	jg	.L201
	cmp	DWORD PTR -4[rbp], 113
	je	.L208
	cmp	DWORD PTR -4[rbp], 113
	jg	.L201
	cmp	DWORD PTR -4[rbp], 81
	je	.L208
	cmp	DWORD PTR -4[rbp], 81
	jg	.L201
	cmp	DWORD PTR -4[rbp], 10
	je	.L204
	cmp	DWORD PTR -4[rbp], 13
	jne	.L201
.L204:
	mov	DWORD PTR -8[rbp], -1
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	werase@PLT
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, command[rip+8]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR game_state[rip], eax
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	werase@PLT
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	display_menu
	jmp	.L201
.L205:
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	display_menu
	jmp	.L201
.L203:
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -12[rbp], 1
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	display_menu
	jmp	.L201
.L206:
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L209
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	jmp	.L210
.L209:
	mov	eax, DWORD PTR -12[rbp]
.L210:
	mov	DWORD PTR -12[rbp], eax
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	display_menu
	jmp	.L201
.L207:
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -12[rbp], 1
	je	.L211
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	jmp	.L212
.L211:
	mov	eax, DWORD PTR -12[rbp]
.L212:
	mov	DWORD PTR -12[rbp], eax
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	display_menu
	jmp	.L201
.L202:
	mov	DWORD PTR -8[rbp], -1
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	werase@PLT
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	display_menu
	jmp	.L201
.L208:
	mov	BYTE PTR quit[rip], 1
	mov	DWORD PTR game_state[rip], 3
	nop
.L201:
	movzx	eax, BYTE PTR quit[rip]
	xor	eax, 1
	test	al, al
	je	.L215
	mov	eax, DWORD PTR game_state[rip]
	test	eax, eax
	je	.L214
.L215:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE34:
	.size	showMenu, .-showMenu
	.section	.rodata
.LC63:
	.string	""
.LC64:
	.string	"Dungcrwl"
	.text
	.globl	main
	.type	main, @function
main:
.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
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	lea	rsi, .LC63[rip]
	mov	edi, 6
	call	setlocale@PLT
	lea	rdi, .LC64[rip]
	mov	eax, 0
	call	PDC_set_title@PLT
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	initGame
	test	eax, eax
	je	.L219
	mov	eax, 1
	jmp	.L218
.L224:
	mov	eax, DWORD PTR game_state[rip]
	cmp	eax, 3
	je	.L220
	cmp	eax, 3
	jg	.L219
	cmp	eax, 2
	je	.L221
	cmp	eax, 2
	jg	.L219
	test	eax, eax
	je	.L222
	cmp	eax, 1
	je	.L223
	jmp	.L219
.L222:
	mov	eax, 0
	call	showMenu
	jmp	.L219
.L223:
	mov	eax, 0
	call	newGame
	jmp	.L219
.L221:
	call	gameLoop
	jmp	.L219
.L220:
	mov	BYTE PTR quit[rip], 1
	nop
.L219:
	movzx	eax, BYTE PTR quit[rip]
	xor	eax, 1
	test	al, al
	jne	.L224
	call	gameShutdown
	mov	eax, 0
.L218:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC22:
	.long	0
	.long	1105199104
	.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	"15047.c"
	.text
	.comm	win,4,4
	.comm	stats,4,4
	.comm	helpwindow,4,4
	.comm	encounterwin,4,4
	.comm	game_state,4,4
	.comm	width,4,4
	.comm	height,4,4
	.global	quit
	.bss
	.type	quit, %object
	.size	quit, 1
quit:
	.space	1
	.global	walk_counter
	.align	2
	.type	walk_counter, %object
	.size	walk_counter, 4
walk_counter:
	.space	4
	.comm	mapTopX,4,4
	.comm	mapTopY,4,4
	.comm	grid,4,4
	.comm	grid2,4,4
	.global	fillprob
	.data
	.align	2
	.type	fillprob, %object
	.size	fillprob, 4
fillprob:
	.word	40
	.global	r1_cutoff
	.align	2
	.type	r1_cutoff, %object
	.size	r1_cutoff, 4
r1_cutoff:
	.word	5
	.global	r2_cutoff
	.align	2
	.type	r2_cutoff, %object
	.size	r2_cutoff, 4
r2_cutoff:
	.word	2
	.global	size_x
	.align	2
	.type	size_x, %object
	.size	size_x, 4
size_x:
	.word	800
	.global	size_y
	.align	2
	.type	size_y, %object
	.size	size_y, 4
size_y:
	.word	600
	.comm	params,4,4
	.comm	params_set,4,4
	.comm	generations,4,4
	.comm	player,84,4
	.global	races
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Human\000"
	.align	2
.LC1:
	.ascii	"Elf\000"
	.align	2
.LC2:
	.ascii	"Giant\000"
	.data
	.align	2
	.type	races, %object
	.size	races, 96
races:
	.word	.LC0
	.word	0
	.word	0
	.word	18
	.word	18
	.word	13
	.word	18
	.word	6
	.word	.LC1
	.word	0
	.word	0
	.word	15
	.word	19
	.word	20
	.word	20
	.word	7
	.word	.LC2
	.word	5
	.word	5
	.word	25
	.word	15
	.word	12
	.word	10
	.word	10
	.global	weapons
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Shortsword\000"
	.align	2
.LC4:
	.ascii	"Dagger\000"
	.align	2
.LC5:
	.ascii	"Broadsword\000"
	.data
	.align	2
	.type	weapons, %object
	.size	weapons, 36
weapons:
	.word	.LC3
	.word	6
	.word	10
	.word	.LC4
	.word	4
	.word	4
	.word	.LC5
	.word	8
	.word	12
	.global	enemies
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Goblin\000"
	.align	2
.LC7:
	.ascii	"Berserker\000"
	.align	2
.LC8:
	.ascii	"Orc\000"
	.align	2
.LC9:
	.ascii	"Evil Faerie\000"
	.data
	.align	2
	.type	enemies, %object
	.size	enemies, 160
enemies:
	.word	.LC6
	.word	1
	.word	15
	.word	8
	.word	10
	.word	12
	.word	1
	.word	2
	.word	3
	.word	4
	.word	.LC7
	.word	1
	.word	12
	.word	8
	.word	10
	.word	12
	.word	0
	.word	5
	.word	4
	.word	6
	.word	.LC8
	.word	2
	.word	20
	.word	5
	.word	12
	.word	13
	.word	2
	.word	1
	.word	3
	.word	10
	.word	.LC9
	.word	3
	.word	13
	.word	4
	.word	5
	.word	20
	.word	-1
	.word	0
	.word	40
	.word	2
	.global	command
	.section	.rodata
	.align	2
.LC10:
	.ascii	"New Game\000"
	.align	2
.LC11:
	.ascii	"Quit\000"
	.data
	.align	2
	.type	command, %object
	.size	command, 16
command:
	.word	.LC10
	.word	1
	.word	.LC11
	.word	3
	.text
	.align	2
	.global	mapPick
	.syntax unified
	.arm
	.fpu softvfp
	.type	mapPick, %function
mapPick:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	rand
	mov	r1, r0
	ldr	r3, .L4
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	ldr	r3, .L4+4
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L2
	mov	r3, #0
	b	.L3
.L2:
	mov	r3, #1
.L3:
	mov	r0, r3
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	1374389535
	.word	fillprob
	.size	mapPick, .-mapPick
	.align	2
	.global	playerDidHit
	.syntax unified
	.arm
	.fpu softvfp
	.type	playerDidHit, %function
playerDidHit:
	@ args = 40, pretend = 16, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r1, #20
	mov	r0, #1
	bl	rollDie
	str	r0, [fp, #-8]
	ldr	r3, .L11
	mov	r2, #0
	strb	r2, [r3, #80]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L7
	mov	r3, #0
	b	.L8
.L7:
	ldr	r3, [fp, #-8]
	cmp	r3, #20
	bne	.L9
	ldr	r3, .L11
	mov	r2, #1
	strb	r2, [r3, #80]
	mov	r3, #1
	b	.L8
.L9:
	ldr	r3, .L11
	ldr	r2, [r3, #76]
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, .L11
	ldr	r3, [r3, #32]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r2, [fp, #16]
	ldr	r3, [fp, #24]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L10
	mov	r3, #1
	b	.L8
.L10:
	mov	r3, #0
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L12:
	.align	2
.L11:
	.word	player
	.size	playerDidHit, .-playerDidHit
	.section	.rodata
	.align	2
.LC12:
	.ascii	"@\000"
	.align	2
.LC13:
	.ascii	"Character Name (8 letter max): \000"
	.align	2
.LC14:
	.ascii	"Race: \000"
	.align	2
.LC15:
	.ascii	"[%i] - %s\000"
	.align	2
.LC16:
	.ascii	"%s - %s\000"
	.align	2
.LC17:
	.ascii	"STR: %i\000"
	.align	2
.LC18:
	.ascii	"DEF: %i\000"
	.align	2
.LC19:
	.ascii	"AGI: %i\000"
	.align	2
.LC20:
	.ascii	"Enter/Space: Roll Again\011A - Accept Character\000"
	.align	2
.LC21:
	.ascii	"Generating Dungeon...\000"
	.text
	.align	2
	.global	newGame
	.syntax unified
	.arm
	.fpu softvfp
	.type	newGame, %function
newGame:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L29
	mov	r2, #2
	str	r2, [r3, #12]
	ldr	r3, .L29
	mov	r2, #2
	str	r2, [r3, #16]
	ldr	r3, .L29
	mov	r2, #1
	str	r2, [r3, #44]
	ldr	r3, .L29
	mov	r2, #0
	str	r2, [r3, #52]
	ldr	r3, .L29
	mov	r2, #0
	strb	r2, [r3, #64]
	ldr	r3, .L29
	ldr	r2, .L29+4
	str	r2, [r3, #68]
	ldr	r3, .L29
	mov	r2, #0
	str	r2, [r3, #72]
	ldr	r3, .L29
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, .L29
	mov	r2, #0
	str	r2, [r3, #28]
	ldr	r3, .L29
	mov	r2, #1
	str	r2, [r3, #76]
	ldr	r3, .L29
	mov	r2, #5
	str	r2, [r3, #56]
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	wclear
	bl	has_colors
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	mov	r2, #4
	mov	r1, #7
	mov	r0, #2
	bl	init_pair
	ldr	r3, .L29+8
	ldr	r3, [r3]
	ldr	r1, .L29+12
	mov	r0, r3
	bl	wbkgd
	b	.L15
.L14:
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mov	r1, #2097152
	mov	r0, r3
	bl	wbkgd
.L15:
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	wclear
	ldr	r3, .L29+8
	ldr	r0, [r3]
	ldr	r3, .L29+16
	ldr	r1, [r3, #480]
	ldr	r3, .L29+16
	ldr	r2, [r3, #480]
	ldr	r3, .L29+16
	ldr	ip, [r3, #452]
	ldr	r3, .L29+16
	ldr	r3, [r3, #452]
	mov	lr, #0
	str	lr, [sp, #16]
	mov	lr, #0
	str	lr, [sp, #12]
	mov	lr, #0
	str	lr, [sp, #8]
	mov	lr, #0
	str	lr, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	bl	wborder
	ldr	r3, .L29+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	bl	echo
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, #2
	mov	r0, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L17
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mvn	r2, #0
	ldr	r1, .L29+24
	mov	r0, r3
	bl	waddnstr
.L17:
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mov	r2, #8
	ldr	r1, .L29
	mov	r0, r3
	bl	wgetnstr
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	bl	noecho
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, #3
	mov	r0, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L19
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mvn	r2, #0
	ldr	r1, .L29+28
	mov	r0, r3
	bl	waddnstr
.L19:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L20
.L21:
	ldr	r3, .L29+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	add	r1, r3, #4
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	ip, .L29+32
	ldr	r2, [fp, #-16]
	ldr	r2, [ip, r2, lsl #5]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, .L29+36
	mov	r2, #4
	bl	mvwprintw
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L20:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	ble	.L21
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	mov	r3, r0
	ldr	r2, .L29
	str	r3, [r2, #52]
	b	.L22
.L23:
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	mov	r3, r0
	ldr	r2, .L29
	str	r3, [r2, #52]
.L22:
	ldr	r3, .L29
	ldr	r3, [r3, #52]
	cmp	r3, #48
	ble	.L23
	ldr	r3, .L29
	ldr	r3, [r3, #52]
	cmp	r3, #51
	bgt	.L23
	ldr	r3, .L29
	ldr	r3, [r3, #52]
	sub	r3, r3, #49
	ldr	r2, .L29
	str	r3, [r2, #52]
	ldr	r3, .L29
	ldr	r3, [r3, #52]
	ldr	r2, .L29+32
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r2, [r3, #20]
	ldr	r3, .L29
	ldr	r3, [r3, #44]
	lsr	r1, r3, #31
	add	r3, r1, r3
	asr	r3, r3, #1
	add	r3, r2, r3
	ldr	r2, .L29
	str	r3, [r2, #20]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L24
.L28:
	ldr	r3, .L29
	ldr	r3, [r3, #52]
	ldr	r2, .L29+32
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	statRoll
	mov	r3, r0
	ldr	r2, .L29
	str	r3, [r2, #32]
	ldr	r3, .L29
	ldr	r3, [r3, #52]
	ldr	r2, .L29+32
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	statRoll
	mov	r3, r0
	ldr	r2, .L29
	str	r3, [r2, #36]
	ldr	r3, .L29
	ldr	r3, [r3, #52]
	ldr	r2, .L29+32
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r3, [r3, #24]
	mov	r0, r3
	bl	statRoll
	mov	r3, r0
	ldr	r2, .L29
	str	r3, [r2, #40]
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	wclear
	ldr	r3, .L29+8
	ldr	r0, [r3]
	ldr	r3, .L29+16
	ldr	r1, [r3, #480]
	ldr	r3, .L29+16
	ldr	r2, [r3, #480]
	ldr	r3, .L29+16
	ldr	ip, [r3, #452]
	ldr	r3, .L29+16
	ldr	r3, [r3, #452]
	mov	lr, #0
	str	lr, [sp, #16]
	mov	lr, #0
	str	lr, [sp, #12]
	mov	lr, #0
	str	lr, [sp, #8]
	mov	lr, #0
	str	lr, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	bl	wborder
	ldr	r3, .L29+8
	ldr	r0, [r3]
	ldr	r3, .L29
	ldr	r3, [r3, #52]
	ldr	r2, .L29+32
	ldr	r3, [r2, r3, lsl #5]
	str	r3, [sp, #4]
	ldr	r3, .L29
	str	r3, [sp]
	ldr	r3, .L29+40
	mov	r2, #2
	mov	r1, #2
	bl	mvwprintw
	ldr	r3, .L29+8
	ldr	r0, [r3]
	ldr	r3, .L29
	ldr	r3, [r3, #32]
	str	r3, [sp]
	ldr	r3, .L29+44
	mov	r2, #15
	mov	r1, #4
	bl	mvwprintw
	ldr	r3, .L29+8
	ldr	r0, [r3]
	ldr	r3, .L29
	ldr	r3, [r3, #36]
	str	r3, [sp]
	ldr	r3, .L29+48
	mov	r2, #15
	mov	r1, #5
	bl	mvwprintw
	ldr	r3, .L29+8
	ldr	r0, [r3]
	ldr	r3, .L29
	ldr	r3, [r3, #40]
	str	r3, [sp]
	ldr	r3, .L29+52
	mov	r2, #15
	mov	r1, #6
	bl	mvwprintw
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mov	r1, #262144
	mov	r0, r3
	bl	wattrset
	ldr	r3, .L29+8
	ldr	r0, [r3]
	ldr	r3, .L29+56
	mov	r2, #15
	mov	r1, #10
	bl	mvwprintw
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #262144
	mov	r0, r3
	bl	wattr_off
	bl	flushinp
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	bl	noecho
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	keypad
	bl	raw
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, .L29+60
	cmp	r3, r2
	beq	.L25
	ldr	r3, [fp, #-8]
	cmp	r3, #344
	bge	.L24
	ldr	r3, [fp, #-8]
	cmp	r3, #97
	beq	.L26
	ldr	r3, [fp, #-8]
	cmp	r3, #97
	bgt	.L24
	ldr	r3, [fp, #-8]
	cmp	r3, #32
	bgt	.L27
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	blt	.L24
	ldr	r3, [fp, #-8]
	sub	r3, r3, #10
	mov	r2, #1
	lsl	r2, r2, r3
	ldr	r3, .L29+64
	and	r3, r3, r2
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L25
	b	.L24
.L27:
	ldr	r3, [fp, #-8]
	cmp	r3, #65
	beq	.L26
	b	.L24
.L25:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L24
.L26:
	mov	r3, #1
	str	r3, [fp, #-12]
	nop
.L24:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L28
	bl	clearPlay
	ldr	r3, .L29+8
	ldr	r0, [r3]
	ldr	r3, .L29+68
	mov	r2, #15
	mov	r1, #4
	bl	mvwprintw
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	bl	buildMap
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mov	r2, #60
	mov	r1, #20
	mov	r0, r3
	bl	resize_window
	bl	drawPlayArea
	bl	drawStatsArea
	bl	gameLoop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	player
	.word	.LC12
	.word	win
	.word	2097664
	.word	acs_map
	.word	stdscr
	.word	.LC13
	.word	.LC14
	.word	races
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	343
	.word	4194313
	.word	.LC21
	.size	newGame, .-newGame
	.align	2
	.global	initMap
	.syntax unified
	.arm
	.fpu softvfp
	.type	initMap, %function
initMap:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	mov	r0, #2400
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L46
	str	r2, [r3]
	mov	r0, #2400
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L46+4
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L32
.L33:
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, #3200
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, .L46+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, #3200
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L32:
	ldr	r3, .L46+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L33
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L34
.L37:
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L35
.L36:
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r4, r2, r3
	bl	mapPick
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L35:
	ldr	r3, [fp, #-20]
	ldr	r2, .L46+12
	cmp	r3, r2
	ble	.L36
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L34:
	ldr	r3, [fp, #-16]
	ldr	r2, .L46+16
	cmp	r3, r2
	ble	.L37
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L38
.L41:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L39
.L40:
	ldr	r3, .L46+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L39:
	ldr	r3, [fp, #-20]
	cmp	r3, #800
	blt	.L40
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L38:
	ldr	r3, [fp, #-16]
	cmp	r3, #600
	blt	.L41
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L42
.L43:
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L46+20
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r2, .L46
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	lsl	r2, r2, #2
	add	r2, r1, r2
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r3, [r2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L42:
	ldr	r3, [fp, #-16]
	cmp	r3, #600
	blt	.L43
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L44
.L45:
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, .L46+8
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r2, .L46
	ldr	r2, [r2]
	ldr	r1, [r2]
	ldr	r2, [fp, #-20]
	lsl	r2, r2, #2
	add	r2, r1, r2
	ldr	r3, [r3]
	str	r3, [r2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L44:
	ldr	r3, [fp, #-20]
	cmp	r3, #800
	blt	.L45
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L47:
	.align	2
.L46:
	.word	grid
	.word	grid2
	.word	size_y
	.word	798
	.word	598
	.word	size_x
	.size	initMap, .-initMap
	.align	2
	.global	buildMap
	.syntax unified
	.arm
	.fpu softvfp
	.type	buildMap, %function
buildMap:
	@ 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, .L53
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L53+4
	mov	r2, #0
	str	r2, [r3]
	bl	initMap
	ldr	r3, .L53+8
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L53+12
	mov	r2, #35
	str	r2, [r3]
	ldr	r3, .L53+8
	ldr	r3, [r3]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L53+16
	str	r2, [r3]
	ldr	r3, .L53+16
	ldr	r3, [r3]
	ldr	r2, .L53+20
	str	r3, [r2]
	ldr	r3, .L53+20
	ldr	r3, [r3]
	mov	r2, #24
	str	r2, [r3]
	ldr	r3, .L53+20
	ldr	r3, [r3]
	mov	r2, #5
	str	r2, [r3, #4]
	ldr	r3, .L53+20
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [r3, #8]
	ldr	r3, .L53+20
	ldr	r3, [r3]
	add	r3, r3, #12
	ldr	r2, .L53+20
	str	r3, [r2]
	ldr	r3, .L53+20
	ldr	r3, [r3]
	mov	r2, #20
	str	r2, [r3]
	ldr	r3, .L53+20
	ldr	r3, [r3]
	mov	r2, #3
	str	r2, [r3, #4]
	ldr	r3, .L53+20
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [r3, #8]
	ldr	r3, .L53+20
	ldr	r3, [r3]
	add	r3, r3, #12
	ldr	r2, .L53+20
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L49
.L52:
	ldr	r3, .L53+16
	ldr	r1, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, .L53+20
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L50
.L51:
	bl	generation
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L50:
	ldr	r3, .L53+20
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L51
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L49:
	ldr	r3, .L53+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L52
	ldr	r3, .L53+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L53+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	mapTopX
	.word	mapTopY
	.word	generations
	.word	fillprob
	.word	params_set
	.word	params
	.size	buildMap, .-buildMap
	.align	2
	.global	generation
	.syntax unified
	.arm
	.fpu softvfp
	.type	generation, %function
generation:
	@ 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
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L56
.L75:
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L57
.L74:
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	mvn	r3, #0
	str	r3, [fp, #-20]
	b	.L58
.L62:
	mvn	r3, #0
	str	r3, [fp, #-16]
	b	.L59
.L61:
	ldr	r3, .L82
	ldr	r2, [r3]
	ldr	r1, [fp, #-24]
	ldr	r3, [fp, #-20]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r1, [fp, #-28]
	ldr	r3, [fp, #-16]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L60
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L60:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L59:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L61
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L58:
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	ble	.L62
	ldr	r3, [fp, #-24]
	sub	r3, r3, #2
	str	r3, [fp, #-20]
	b	.L63
.L70:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #2
	str	r3, [fp, #-16]
	b	.L64
.L69:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r3, #2
	bne	.L65
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r3, #2
	beq	.L80
.L65:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L81
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L81
	ldr	r3, .L82+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bge	.L81
	ldr	r3, .L82+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bge	.L81
	ldr	r3, .L82
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L66
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L66
.L80:
	nop
	b	.L66
.L81:
	nop
.L66:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L64:
	ldr	r3, [fp, #-28]
	add	r3, r3, #2
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L69
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L63:
	ldr	r3, [fp, #-24]
	add	r3, r3, #2
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	ble	.L70
	ldr	r3, .L82+12
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L71
	ldr	r3, .L82+12
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bgt	.L72
.L71:
	ldr	r3, .L82+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	b	.L73
.L72:
	ldr	r3, .L82+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
.L73:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L57:
	ldr	r3, [fp, #-28]
	ldr	r2, .L82+20
	cmp	r3, r2
	ble	.L74
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L56:
	ldr	r3, [fp, #-24]
	ldr	r2, .L82+24
	cmp	r3, r2
	ble	.L75
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L76
.L79:
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L77
.L78:
	ldr	r3, .L82+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L82
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L77:
	ldr	r3, .L82+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L78
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L76:
	ldr	r3, .L82+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L79
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L83:
	.align	2
.L82:
	.word	grid
	.word	size_y
	.word	size_x
	.word	params
	.word	grid2
	.word	798
	.word	598
	.size	generation, .-generation
	.align	2
	.global	updatePlayer
	.syntax unified
	.arm
	.fpu softvfp
	.type	updatePlayer, %function
updatePlayer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L88
	ldr	r3, [r3, #20]
	cmp	r3, #0
	bne	.L85
	ldr	r3, .L88
	mov	r2, #1
	strb	r2, [r3, #64]
.L85:
	bl	rand
	mov	r1, r0
	ldr	r3, .L88+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	cmp	r2, #30
	bne	.L87
	bl	showEncounter
.L87:
	nop
	pop	{fp, pc}
.L89:
	.align	2
.L88:
	.word	player
	.word	1374389535
	.size	updatePlayer, .-updatePlayer
	.align	2
	.global	getPlayerInput
	.syntax unified
	.arm
	.fpu softvfp
	.type	getPlayerInput, %function
getPlayerInput:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L122
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	keypad
	bl	raw
	ldr	r3, .L122
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	str	r0, [fp, #-16]
	ldr	r3, .L122
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	keypad
	bl	flushinp
	ldr	r3, .L122+4
	ldr	r3, [r3, #12]
	str	r3, [fp, #-12]
	ldr	r3, .L122+4
	ldr	r3, [r3, #16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #360
	bgt	.L91
	ldr	r3, [fp, #-16]
	ldr	r2, .L122+8
	cmp	r3, r2
	bge	.L92
	ldr	r3, [fp, #-16]
	ldr	r2, .L122+12
	cmp	r3, r2
	bgt	.L91
	ldr	r3, [fp, #-16]
	ldr	r2, .L122+16
	cmp	r3, r2
	bge	.L93
	ldr	r3, [fp, #-16]
	cmp	r3, #113
	beq	.L94
	ldr	r3, [fp, #-16]
	cmp	r3, #113
	bgt	.L91
	ldr	r3, [fp, #-16]
	cmp	r3, #81
	beq	.L94
	ldr	r3, [fp, #-16]
	cmp	r3, #81
	bgt	.L91
	ldr	r3, [fp, #-16]
	cmp	r3, #10
	beq	.L120
	ldr	r3, [fp, #-16]
	cmp	r3, #13
	b	.L120
.L92:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #336
	sub	r3, r3, #2
	cmp	r3, #22
	ldrls	pc, [pc, r3, asl #2]
	b	.L91
.L97:
	.word	.L91
	.word	.L98
	.word	.L91
	.word	.L91
	.word	.L91
	.word	.L91
	.word	.L91
	.word	.L91
	.word	.L91
	.word	.L91
	.word	.L91
	.word	.L91
	.word	.L91
	.word	.L91
	.word	.L91
	.word	.L91
	.word	.L91
	.word	.L91
	.word	.L91
	.word	.L91
	.word	.L91
	.word	.L91
	.word	.L91
.L93:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #256
	sub	r3, r3, #2
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L91
.L100:
	.word	.L104
	.word	.L103
	.word	.L102
	.word	.L101
	.word	.L98
	.word	.L91
	.word	.L91
	.word	.L99
.L98:
	ldr	r3, .L122+4
	ldr	r3, [r3, #16]
	sub	r3, r3, #1
	ldr	r2, .L122+4
	str	r3, [r2, #16]
	ldr	r3, .L122+4
	ldr	r3, [r3, #12]
	sub	r3, r3, #1
	ldr	r2, .L122+4
	str	r3, [r2, #12]
	ldr	r3, .L122+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L122+20
	str	r3, [r2]
	b	.L91
.L99:
	bl	showHelp
	b	.L91
.L103:
	ldr	r3, .L122+4
	ldr	r3, [r3, #16]
	cmp	r3, #2
	ble	.L105
	ldr	r3, .L122+4
	ldr	r3, [r3, #16]
	sub	r3, r3, #1
	ldr	r2, .L122+4
	str	r3, [r2, #16]
	b	.L91
.L105:
	ldr	r3, .L122+24
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L122+24
	str	r3, [r2]
	b	.L91
.L104:
	ldr	r3, .L122+4
	ldr	r3, [r3, #16]
	cmp	r3, #15
	bgt	.L107
	ldr	r3, .L122+4
	ldr	r3, [r3, #16]
	add	r3, r3, #1
	ldr	r2, .L122+4
	str	r3, [r2, #16]
	b	.L91
.L107:
	ldr	r3, .L122+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L122+24
	str	r3, [r2]
	b	.L91
.L101:
	ldr	r3, .L122+4
	ldr	r3, [r3, #12]
	cmp	r3, #55
	bgt	.L109
	ldr	r3, .L122+4
	ldr	r3, [r3, #12]
	add	r3, r3, #1
	ldr	r2, .L122+4
	str	r3, [r2, #12]
	b	.L91
.L109:
	ldr	r3, .L122+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L122+28
	str	r3, [r2]
	b	.L91
.L102:
	ldr	r3, .L122+4
	ldr	r3, [r3, #12]
	cmp	r3, #2
	ble	.L111
	ldr	r3, .L122+4
	ldr	r3, [r3, #12]
	sub	r3, r3, #1
	ldr	r2, .L122+4
	str	r3, [r2, #12]
	b	.L91
.L111:
	ldr	r3, .L122+28
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L122+28
	str	r3, [r2]
	b	.L91
.L94:
	ldr	r3, .L122+32
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, .L122+36
	mov	r2, #0
	str	r2, [r3]
	b	.L91
.L120:
	nop
.L91:
	ldr	r3, .L122+40
	ldr	r2, [r3]
	ldr	r3, .L122+4
	ldr	r1, [r3, #16]
	ldr	r3, .L122+24
	ldr	r3, [r3]
	add	r3, r1, r3
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L122+4
	ldr	r1, [r3, #12]
	ldr	r3, .L122+28
	ldr	r3, [r3]
	add	r3, r1, r3
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L113
	ldr	r2, .L122+4
	ldr	r3, [fp, #-12]
	str	r3, [r2, #12]
	ldr	r2, .L122+4
	ldr	r3, [fp, #-8]
	str	r3, [r2, #16]
.L113:
	ldr	r3, .L122+4
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L114
	ldr	r3, .L122+4
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L115
.L114:
	ldr	r3, .L122+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L122+20
	str	r3, [r2]
	ldr	r3, .L122+20
	ldr	r3, [r3]
	cmp	r3, #5
	bne	.L115
	ldr	r3, .L122+20
	mov	r2, #0
	str	r2, [r3]
	bl	healPlayer
.L115:
	ldr	r3, .L122+24
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L116
	ldr	r3, .L122+24
	mov	r2, #0
	str	r2, [r3]
.L116:
	ldr	r3, .L122+28
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L117
	ldr	r3, .L122+28
	mov	r2, #0
	str	r2, [r3]
.L117:
	ldr	r3, .L122+4
	ldr	r2, [r3, #12]
	ldr	r3, .L122+28
	ldr	r3, [r3]
	add	r3, r2, r3
	cmp	r3, #800
	bne	.L118
	ldr	r3, .L122+28
	ldr	r2, .L122+44
	str	r2, [r3]
.L118:
	ldr	r3, .L122+4
	ldr	r2, [r3, #16]
	ldr	r3, .L122+24
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L122+48
	cmp	r3, r2
	bne	.L121
	ldr	r3, .L122+24
	ldr	r2, .L122+52
	str	r2, [r3]
.L121:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L123:
	.align	2
.L122:
	.word	win
	.word	player
	.word	338
	.word	265
	.word	258
	.word	walk_counter
	.word	mapTopY
	.word	mapTopX
	.word	quit
	.word	game_state
	.word	grid
	.word	742
	.word	599
	.word	582
	.size	getPlayerInput, .-getPlayerInput
	.align	2
	.global	healPlayer
	.syntax unified
	.arm
	.fpu softvfp
	.type	healPlayer, %function
healPlayer:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	ldr	r3, .L127
	ldr	r3, [r3, #52]
	ldr	r2, .L127+4
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r2, [r3, #20]
	ldr	r3, .L127
	ldr	r3, [r3, #44]
	lsr	r1, r3, #31
	add	r3, r1, r3
	asr	r3, r3, #1
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, .L127
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L126
	ldr	r3, .L127
	ldr	r3, [r3, #20]
	add	r3, r3, #1
	ldr	r2, .L127
	str	r3, [r2, #20]
.L126:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L128:
	.align	2
.L127:
	.word	player
	.word	races
	.size	healPlayer, .-healPlayer
	.align	2
	.global	gameLoop
	.syntax unified
	.arm
	.fpu softvfp
	.type	gameLoop, %function
gameLoop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	b	.L130
.L132:
	bl	getPlayerInput
	ldr	r3, .L134
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L130
	bl	updatePlayer
	bl	drawPlayArea
	bl	drawStatsArea
.L130:
	ldr	r3, .L134+4
	ldr	r3, [r3]
	cmp	r3, #3
	beq	.L133
	ldr	r3, .L134
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L133
	ldr	r3, .L134+8
	ldrb	r3, [r3, #64]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L132
.L133:
	nop
	pop	{fp, pc}
.L135:
	.align	2
.L134:
	.word	quit
	.word	game_state
	.word	player
	.size	gameLoop, .-gameLoop
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.global	__aeabi_d2iz
	.align	2
	.global	rollDie
	.syntax unified
	.arm
	.fpu softvfp
	.type	rollDie, %function
rollDie:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	bl	rand
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L138
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-28]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_d2iz
	mov	r2, r0
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L139:
	.align	2
.L138:
	.word	1105199104
	.size	rollDie, .-rollDie
	.align	2
	.global	statRoll
	.syntax unified
	.arm
	.fpu softvfp
	.type	statRoll, %function
statRoll:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L141
.L142:
	ldr	r1, [fp, #-16]
	mov	r0, #1
	bl	rollDie
	str	r0, [fp, #-8]
.L141:
	ldr	r3, [fp, #-8]
	cmp	r3, #5
	ble	.L142
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	statRoll, .-statRoll
	.section	.rodata
	.align	2
.LC22:
	.ascii	"!!! ENCOUNTER !!!\000"
	.text
	.align	2
	.global	showEncounter
	.syntax unified
	.arm
	.fpu softvfp
	.type	showEncounter, %function
showEncounter:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L145
	ldr	r3, [r3]
	mov	r0, r3
	bl	wclear
	ldr	r3, .L145
	ldr	r3, [r3]
	ldr	r1, .L145+4
	mov	r0, r3
	bl	wbkgd
	ldr	r3, .L145
	ldr	r0, [r3]
	ldr	r3, .L145+8
	ldr	r1, [r3, #480]
	ldr	r3, .L145+8
	ldr	r2, [r3, #480]
	ldr	r3, .L145+8
	ldr	ip, [r3, #452]
	ldr	r3, .L145+8
	ldr	r3, [r3, #452]
	mov	lr, #0
	str	lr, [sp, #16]
	mov	lr, #0
	str	lr, [sp, #12]
	mov	lr, #0
	str	lr, [sp, #8]
	mov	lr, #0
	str	lr, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	bl	wborder
	ldr	r3, .L145
	ldr	r0, [r3]
	ldr	r3, .L145+12
	mov	r2, #1
	mov	r1, #1
	bl	mvwprintw
	ldr	r3, .L145
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	ldr	r0, .L145+16
	bl	napms
	bl	doBattle
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L146:
	.align	2
.L145:
	.word	encounterwin
	.word	2098176
	.word	acs_map
	.word	.LC22
	.word	1500
	.size	showEncounter, .-showEncounter
	.align	2
	.global	clearPlay
	.syntax unified
	.arm
	.fpu softvfp
	.type	clearPlay, %function
clearPlay:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L148
	ldr	r3, [r3]
	mov	r1, #1048576
	mov	r0, r3
	bl	wbkgd
	ldr	r3, .L148
	ldr	r3, [r3]
	mov	r0, r3
	bl	wclear
	ldr	r3, .L148
	ldr	r0, [r3]
	ldr	r3, .L148+4
	ldr	r1, [r3, #480]
	ldr	r3, .L148+4
	ldr	r2, [r3, #480]
	ldr	r3, .L148+4
	ldr	ip, [r3, #452]
	ldr	r3, .L148+4
	ldr	r3, [r3, #452]
	mov	lr, #0
	str	lr, [sp, #16]
	mov	lr, #0
	str	lr, [sp, #12]
	mov	lr, #0
	str	lr, [sp, #8]
	mov	lr, #0
	str	lr, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	bl	wborder
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L149:
	.align	2
.L148:
	.word	win
	.word	acs_map
	.size	clearPlay, .-clearPlay
	.align	2
	.global	levelUp
	.syntax unified
	.arm
	.fpu softvfp
	.type	levelUp, %function
levelUp:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L153
	ldr	r2, [r3, #24]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L153
	str	r3, [r2, #24]
	ldr	r3, .L153
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L153
	str	r3, [r2, #28]
	ldr	r3, .L153
	ldr	r3, [r3, #28]
	cmp	r3, #99
	ble	.L151
	ldr	r3, .L153
	ldr	r3, [r3, #28]
	sub	r3, r3, #100
	ldr	r2, .L153
	str	r3, [r2, #28]
	ldr	r3, .L153
	ldr	r3, [r3, #44]
	add	r3, r3, #1
	ldr	r2, .L153
	str	r3, [r2, #44]
	ldr	r3, .L153
	ldr	r3, [r3, #32]
	add	r3, r3, #1
	ldr	r2, .L153
	str	r3, [r2, #32]
	ldr	r3, .L153
	ldr	r3, [r3, #36]
	add	r3, r3, #1
	ldr	r2, .L153
	str	r3, [r2, #36]
	ldr	r3, .L153
	ldr	r3, [r3, #76]
	add	r3, r3, #1
	ldr	r2, .L153
	str	r3, [r2, #76]
	ldr	r3, .L153
	ldr	r3, [r3, #52]
	ldr	r2, .L153+4
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r2, [r3, #20]
	ldr	r3, .L153
	ldr	r3, [r3, #44]
	lsr	r1, r3, #31
	add	r3, r1, r3
	asr	r3, r3, #1
	add	r3, r2, r3
	ldr	r2, .L153
	str	r3, [r2, #20]
	mov	r3, #1
	b	.L152
.L151:
	mov	r3, #0
.L152:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L154:
	.align	2
.L153:
	.word	player
	.word	races
	.size	levelUp, .-levelUp
	.section	.rodata
	.align	2
.LC23:
	.ascii	"[A]ttack\000"
	.align	2
.LC24:
	.ascii	"[F]lee\000"
	.align	2
.LC25:
	.ascii	"%s flees from the battle!\000"
	.align	2
.LC26:
	.ascii	"%s attempts to flee but fails!\000"
	.align	2
.LC27:
	.ascii	"%s attacks the %s...\000"
	.align	2
.LC28:
	.ascii	"...%s's strike glances off the %s!\000"
	.align	2
.LC29:
	.ascii	"...%s hits the %s for %i damage!\000"
	.align	2
.LC30:
	.ascii	"...%s misses!\000"
	.align	2
.LC31:
	.ascii	"Invalid Option. Try again.\000"
	.align	2
.LC32:
	.ascii	"Thou art dead!\000"
	.align	2
.LC33:
	.ascii	"Press any key...\000"
	.align	2
.LC34:
	.ascii	"Victory!\000"
	.align	2
.LC35:
	.ascii	"%s hast slain the %s!\000"
	.align	2
.LC36:
	.ascii	"%s found %i gold on the %s\000"
	.align	2
.LC37:
	.ascii	"%s gained %i XP from the battle\000"
	.align	2
.LC38:
	.ascii	"%s has gained a level!\000"
	.align	2
.LC39:
	.ascii	"Press any key to continue thine journey...\000"
	.text
	.align	2
	.global	doBattle
	.syntax unified
	.arm
	.fpu softvfp
	.type	doBattle, %function
doBattle:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #108
	mov	r3, #1
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	strb	r3, [fp, #-81]
	mov	r1, #4
	mov	r0, #0
	bl	rollDie
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #4
	bne	.L156
	mov	r3, #3
	str	r3, [fp, #-76]
.L156:
	ldr	r1, .L183
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	sub	ip, fp, #52
	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}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L157
	mov	r1, #3
	mov	r0, #0
	bl	rollDie
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #3
	bne	.L158
	mov	r3, #2
	str	r3, [fp, #-76]
.L158:
	ldr	r3, [fp, #-76]
	str	r3, [fp, #-28]
.L157:
	ldr	r3, [fp, #-20]
	mov	r1, r3
	mov	r0, #1
	bl	rollDie
	str	r0, [fp, #-68]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L160
	ldr	r3, [fp, #-24]
	mov	r1, r3
	mov	r0, #1
	bl	rollDie
	str	r0, [fp, #-72]
	b	.L160
.L174:
	bl	flushinp
	ldr	r3, [fp, #-80]
	str	r3, [sp, #24]
	mov	lr, sp
	sub	ip, fp, #36
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1}
	stm	lr, {r0, r1}
	sub	r3, fp, #52
	ldm	r3, {r0, r1, r2, r3}
	bl	battleStats
	ldr	r3, .L183+4
	ldr	r3, [r3]
	mov	r1, #2097152
	mov	r0, r3
	bl	wattrset
	ldr	r3, .L183+4
	ldr	r0, [r3]
	ldr	r3, .L183+8
	mov	r2, #12
	mov	r1, #7
	bl	mvwprintw
	ldr	r3, .L183+4
	ldr	r0, [r3]
	ldr	r3, .L183+12
	mov	r2, #12
	mov	r1, #8
	bl	mvwprintw
	ldr	r3, .L183+4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	wattrset
	bl	noecho
	ldr	r3, .L183+4
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	keypad
	bl	raw
	ldr	r3, .L183+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	str	r0, [fp, #-56]
	bl	flushinp
	ldr	r3, [fp, #-56]
	cmp	r3, #102
	beq	.L161
	ldr	r3, [fp, #-56]
	cmp	r3, #102
	bgt	.L162
	ldr	r3, [fp, #-56]
	cmp	r3, #97
	beq	.L163
	ldr	r3, [fp, #-56]
	cmp	r3, #97
	bgt	.L162
	ldr	r3, [fp, #-56]
	cmp	r3, #65
	beq	.L163
	ldr	r3, [fp, #-56]
	cmp	r3, #70
	bne	.L162
.L161:
	mov	r1, #6
	mov	r0, #1
	bl	rollDie
	mov	r4, r0
	mov	r1, #6
	mov	r0, #1
	bl	rollDie
	mov	r3, r0
	add	r4, r4, r3
	mov	r1, #6
	mov	r0, #1
	bl	rollDie
	mov	r3, r0
	add	r3, r4, r3
	str	r3, [fp, #-60]
	ldr	r3, .L183+16
	ldr	r3, [r3, #40]
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	bge	.L164
	ldr	r3, [fp, #-80]
	str	r3, [sp, #24]
	mov	lr, sp
	sub	ip, fp, #36
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1}
	stm	lr, {r0, r1}
	sub	r3, fp, #52
	ldm	r3, {r0, r1, r2, r3}
	bl	battleStats
	ldr	r3, .L183+4
	ldr	r0, [r3]
	ldr	r3, .L183+16
	str	r3, [sp]
	ldr	r3, .L183+20
	mov	r2, #3
	mov	r1, #10
	bl	mvwprintw
	ldr	r3, .L183+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	mov	r0, #500
	bl	napms
	mov	r3, #1
	strb	r3, [fp, #-81]
	ldr	r3, .L183+24
	mov	r2, #0
	str	r2, [r3]
	b	.L166
.L164:
	ldr	r3, [fp, #-80]
	str	r3, [sp, #24]
	mov	lr, sp
	sub	ip, fp, #36
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1}
	stm	lr, {r0, r1}
	sub	r3, fp, #52
	ldm	r3, {r0, r1, r2, r3}
	bl	battleStats
	ldr	r3, .L183+4
	ldr	r0, [r3]
	ldr	r3, .L183+16
	str	r3, [sp]
	ldr	r3, .L183+28
	mov	r2, #3
	mov	r1, #10
	bl	mvwprintw
	ldr	r3, .L183+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	mov	r0, #1000
	bl	napms
	ldr	r3, [fp, #-80]
	str	r3, [sp, #24]
	mov	lr, sp
	sub	ip, fp, #36
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1}
	stm	lr, {r0, r1}
	sub	r3, fp, #52
	ldm	r3, {r0, r1, r2, r3}
	bl	enemyAttack
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
	b	.L166
.L163:
	ldr	r3, [fp, #-80]
	str	r3, [sp, #24]
	mov	lr, sp
	sub	ip, fp, #36
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1}
	stm	lr, {r0, r1}
	sub	r3, fp, #52
	ldm	r3, {r0, r1, r2, r3}
	bl	battleStats
	ldr	r3, .L183+4
	ldr	r0, [r3]
	ldr	r1, [fp, #-52]
	ldr	r3, .L183+16
	ldr	r2, [r3, #48]
	ldr	ip, .L183+32
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, ip, r3
	ldr	r3, [r3]
	str	r3, [sp, #8]
	str	r1, [sp, #4]
	ldr	r3, .L183+16
	str	r3, [sp]
	ldr	r3, .L183+36
	mov	r2, #3
	mov	r1, #10
	bl	mvwprintw
	mov	lr, sp
	sub	ip, fp, #36
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1}
	stm	lr, {r0, r1}
	sub	r3, fp, #52
	ldm	r3, {r0, r1, r2, r3}
	bl	playerDidHit
	mov	r3, r0
	cmp	r3, #0
	beq	.L167
	ldr	r3, .L183+16
	ldr	r1, [r3, #32]
	ldr	r3, .L183+16
	ldr	r2, [r3, #48]
	ldr	r0, .L183+32
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r2, r1, r3
	ldr	r3, .L183+16
	ldr	r3, [r3, #76]
	add	r4, r2, r3
	ldr	r3, .L183+16
	ldr	r2, [r3, #48]
	ldr	r1, .L183+32
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #1
	bl	rollDie
	mov	r3, r0
	add	r2, r4, r3
	ldr	r1, [fp, #-32]
	ldr	r3, [fp, #-16]
	add	r3, r1, r3
	sub	r3, r2, r3
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bgt	.L168
	ldr	r3, .L183+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-52]
	str	r3, [sp, #4]
	ldr	r3, .L183+16
	str	r3, [sp]
	ldr	r3, .L183+40
	mov	r2, #5
	mov	r1, #11
	bl	mvwprintw
	b	.L169
.L168:
	ldr	r3, .L183+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-64]
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	ldr	r3, .L183+16
	str	r3, [sp]
	ldr	r3, .L183+44
	mov	r2, #5
	mov	r1, #11
	bl	mvwprintw
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-64]
	sub	r3, r2, r3
	str	r3, [fp, #-44]
	b	.L169
.L167:
	ldr	r3, .L183+4
	ldr	r0, [r3]
	ldr	r3, .L183+16
	str	r3, [sp]
	ldr	r3, .L183+48
	mov	r2, #5
	mov	r1, #11
	bl	mvwprintw
.L169:
	ldr	r3, .L183+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	ldr	r0, .L183+52
	bl	napms
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	ble	.L181
	ldr	r3, [fp, #-80]
	str	r3, [sp, #24]
	mov	lr, sp
	sub	ip, fp, #36
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1}
	stm	lr, {r0, r1}
	sub	r3, fp, #52
	ldm	r3, {r0, r1, r2, r3}
	bl	enemyAttack
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
	b	.L181
.L162:
	ldr	r3, .L183+4
	ldr	r3, [r3]
	mov	r1, #262144
	mov	r0, r3
	bl	wattrset
	ldr	r3, .L183+4
	ldr	r0, [r3]
	ldr	r3, .L183+56
	mov	r2, #10
	mov	r1, #10
	bl	mvwprintw
	ldr	r3, .L183+4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	wattrset
	ldr	r3, .L183+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	mov	r0, #500
	bl	napms
	b	.L166
.L181:
	nop
.L166:
	ldr	r3, .L183+16
	ldr	r3, [r3, #20]
	cmp	r3, #0
	bge	.L171
	ldr	r3, .L183+16
	mov	r2, #0
	str	r2, [r3, #20]
.L171:
	ldr	r3, .L183+16
	ldr	r3, [r3, #20]
	cmp	r3, #0
	bne	.L172
	ldr	r3, .L183+16
	mov	r2, #1
	strb	r2, [r3, #64]
.L172:
	bl	drawStatsArea
.L160:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	ble	.L173
	ldr	r3, .L183+16
	ldrb	r3, [r3, #64]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L173
	ldr	r3, .L183+16
	ldr	r3, [r3, #20]
	cmp	r3, #0
	ble	.L173
	ldrb	r3, [fp, #-81]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L174
.L173:
	bl	flushinp
	ldr	r3, .L183+16
	ldrb	r3, [r3, #64]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L175
	ldr	r3, .L183+4
	ldr	r3, [r3]
	ldr	r1, .L183+60
	mov	r0, r3
	bl	wbkgd
	ldr	r3, .L183+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wclear
	ldr	r3, .L183+4
	ldr	r0, [r3]
	ldr	r3, .L183+64
	ldr	r1, [r3, #480]
	ldr	r3, .L183+64
	ldr	r2, [r3, #480]
	ldr	r3, .L183+64
	ldr	ip, [r3, #452]
	ldr	r3, .L183+64
	ldr	r3, [r3, #452]
	mov	lr, #0
	str	lr, [sp, #16]
	mov	lr, #0
	str	lr, [sp, #12]
	mov	lr, #0
	str	lr, [sp, #8]
	mov	lr, #0
	str	lr, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	bl	wborder
	ldr	r3, .L183+4
	ldr	r0, [r3]
	ldr	r3, .L183+68
	mov	r2, #20
	mov	r1, #10
	bl	mvwprintw
	ldr	r3, .L183+4
	ldr	r0, [r3]
	ldr	r3, .L183+72
	mov	r2, #20
	mov	r1, #12
	bl	mvwprintw
	ldr	r3, .L183+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	ldr	r3, .L183+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	ldr	r3, .L183+76
	mov	r2, #3
	str	r2, [r3]
	b	.L182
.L175:
	ldrb	r3, [fp, #-81]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L182
	ldr	r3, .L183+16
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	cmn	r3, #-2147483647
	bne	.L177
	ldr	r3, .L183+16
	mvn	r2, #-2147483648
	str	r2, [r3, #8]
	b	.L178
.L177:
	ldr	r3, .L183+16
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	ldr	r2, .L183+16
	str	r3, [r2, #8]
.L178:
	ldr	r3, .L183+16
	ldr	r3, [r3, #72]
	add	r3, r3, #1
	ldr	r2, .L183+16
	str	r3, [r2, #72]
	ldr	r3, .L183+24
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L183+4
	ldr	r3, [r3]
	ldr	r1, .L183+80
	mov	r0, r3
	bl	wbkgd
	ldr	r3, .L183+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wclear
	ldr	r3, .L183+4
	ldr	r0, [r3]
	ldr	r3, .L183+64
	ldr	r1, [r3, #480]
	ldr	r3, .L183+64
	ldr	r2, [r3, #480]
	ldr	r3, .L183+64
	ldr	ip, [r3, #452]
	ldr	r3, .L183+64
	ldr	r3, [r3, #452]
	mov	lr, #0
	str	lr, [sp, #16]
	mov	lr, #0
	str	lr, [sp, #12]
	mov	lr, #0
	str	lr, [sp, #8]
	mov	lr, #0
	str	lr, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	bl	wborder
	ldr	r3, .L183+4
	ldr	r0, [r3]
	ldr	r3, .L183+84
	mov	r2, #10
	mov	r1, #3
	bl	mvwprintw
	ldr	r3, .L183+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-52]
	str	r3, [sp, #4]
	ldr	r3, .L183+16
	str	r3, [sp]
	ldr	r3, .L183+88
	mov	r2, #5
	mov	r1, #5
	bl	mvwprintw
	ldr	r3, .L183+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-52]
	str	r3, [sp, #8]
	ldr	r3, [fp, #-72]
	str	r3, [sp, #4]
	ldr	r3, .L183+16
	str	r3, [sp]
	ldr	r3, .L183+92
	mov	r2, #5
	mov	r1, #6
	bl	mvwprintw
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	ble	.L179
	ldr	r3, .L183+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-68]
	str	r3, [sp, #4]
	ldr	r3, .L183+16
	str	r3, [sp]
	ldr	r3, .L183+96
	mov	r2, #5
	mov	r1, #7
	bl	mvwprintw
.L179:
	ldr	r0, [fp, #-68]
	bl	levelUp
	mov	r3, r0
	cmp	r3, #1
	bne	.L180
	ldr	r3, .L183+4
	ldr	r3, [r3]
	mov	r1, #2097152
	mov	r0, r3
	bl	wattrset
	ldr	r3, .L183+4
	ldr	r0, [r3]
	ldr	r3, .L183+16
	str	r3, [sp]
	ldr	r3, .L183+100
	mov	r2, #5
	mov	r1, #9
	bl	mvwprintw
	ldr	r3, .L183+4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	wattrset
.L180:
	ldr	r3, .L183+4
	ldr	r3, [r3]
	mov	r1, #262144
	mov	r0, r3
	bl	wattrset
	ldr	r3, .L183+4
	ldr	r0, [r3]
	ldr	r3, .L183+104
	mov	r2, #10
	mov	r1, #13
	bl	mvwprintw
	ldr	r3, .L183+4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	wattrset
	ldr	r3, .L183+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	bl	drawStatsArea
	ldr	r3, .L183+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
.L182:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L184:
	.align	2
.L183:
	.word	enemies
	.word	win
	.word	.LC23
	.word	.LC24
	.word	player
	.word	.LC25
	.word	walk_counter
	.word	.LC26
	.word	weapons
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	750
	.word	.LC31
	.word	1049600
	.word	acs_map
	.word	.LC32
	.word	.LC33
	.word	game_state
	.word	1048832
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.size	doBattle, .-doBattle
	.section	.rodata
	.align	2
.LC40:
	.ascii	"The %s attacks %s with a %s...\000"
	.align	2
.LC41:
	.ascii	"...the %s misses!\000"
	.align	2
.LC42:
	.ascii	"...the strike glances off %s's armor\000"
	.align	2
.LC43:
	.ascii	"...the %s deals %i damage to %s!\000"
	.text
	.align	2
	.global	enemyAttack
	.syntax unified
	.arm
	.fpu softvfp
	.type	enemyAttack, %function
enemyAttack:
	@ args = 44, pretend = 16, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #44]
	str	r3, [sp, #24]
	mov	lr, sp
	add	ip, fp, #20
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1}
	stm	lr, {r0, r1}
	add	r3, fp, #4
	ldm	r3, {r0, r1, r2, r3}
	bl	battleStats
	ldr	r3, .L192
	ldr	r0, [r3]
	ldr	r1, [fp, #4]
	ldr	r2, [fp, #28]
	ldr	ip, .L192+4
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, ip, r3
	ldr	r3, [r3]
	str	r3, [sp, #8]
	ldr	r3, .L192+8
	str	r3, [sp, #4]
	str	r1, [sp]
	ldr	r3, .L192+12
	mov	r2, #3
	mov	r1, #10
	bl	mvwprintw
	mov	r0, #500
	bl	napms
	mov	r1, #20
	mov	r0, #1
	bl	rollDie
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bne	.L186
	ldr	r3, .L192
	ldr	r0, [r3]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, .L192+16
	mov	r2, #5
	mov	r1, #11
	bl	mvwprintw
.L186:
	ldr	r3, [fp, #20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r3, #20
	beq	.L187
	ldr	r3, .L192+8
	ldr	r2, [r3, #36]
	ldr	r3, .L192+8
	ldr	r3, [r3, #56]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	ble	.L188
.L187:
	ldr	r1, [fp, #20]
	ldr	r2, [fp, #28]
	ldr	r0, .L192+4
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r4, r1, r3
	ldr	r2, [fp, #28]
	ldr	r1, .L192+4
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #1
	bl	rollDie
	mov	r3, r0
	add	r2, r4, r3
	ldr	r3, .L192+8
	ldr	r1, [r3, #36]
	ldr	r3, .L192+8
	ldr	r3, [r3, #56]
	add	r3, r1, r3
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L189
	ldr	r3, .L192
	ldr	r0, [r3]
	ldr	r3, .L192+8
	str	r3, [sp]
	ldr	r3, .L192+20
	mov	r2, #5
	mov	r1, #11
	bl	mvwprintw
	b	.L191
.L189:
	ldr	r3, .L192
	ldr	r0, [r3]
	ldr	r3, [fp, #4]
	ldr	r2, .L192+8
	str	r2, [sp, #8]
	ldr	r2, [fp, #-16]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, .L192+24
	mov	r2, #5
	mov	r1, #11
	bl	mvwprintw
	ldr	r3, .L192+8
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	ldr	r2, .L192+8
	str	r3, [r2, #20]
	b	.L191
.L188:
	ldr	r3, .L192
	ldr	r0, [r3]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, .L192+16
	mov	r2, #5
	mov	r1, #11
	bl	mvwprintw
.L191:
	ldr	r3, .L192
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	mov	r0, #500
	bl	napms
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, lr}
	add	sp, sp, #16
	bx	lr
.L193:
	.align	2
.L192:
	.word	win
	.word	weapons
	.word	player
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.size	enemyAttack, .-enemyAttack
	.section	.rodata
	.align	2
.LC44:
	.ascii	"Battle - Round %i\000"
	.align	2
.LC45:
	.ascii	"%s\000"
	.align	2
.LC46:
	.ascii	"Level: %i\000"
	.align	2
.LC47:
	.ascii	"HP: %i\000"
	.text
	.align	2
	.global	battleStats
	.syntax unified
	.arm
	.fpu softvfp
	.type	battleStats, %function
battleStats:
	@ args = 44, pretend = 16, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	bl	clearPlay
	ldr	r3, .L195
	ldr	r0, [r3]
	ldr	r3, [fp, #44]
	str	r3, [sp]
	ldr	r3, .L195+4
	mov	r2, #1
	mov	r1, #1
	bl	mvwprintw
	ldr	r3, .L195
	ldr	r3, [r3]
	mov	r1, #262144
	mov	r0, r3
	bl	wattrset
	ldr	r3, .L195
	ldr	r0, [r3]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, .L195+8
	mov	r2, #1
	mov	r1, #2
	bl	mvwprintw
	ldr	r3, .L195
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	wattrset
	ldr	r3, .L195
	ldr	r0, [r3]
	ldr	r3, [fp, #8]
	str	r3, [sp]
	ldr	r3, .L195+12
	mov	r2, #1
	mov	r1, #3
	bl	mvwprintw
	ldr	r3, .L195
	ldr	r0, [r3]
	ldr	r3, [fp, #12]
	str	r3, [sp]
	ldr	r3, .L195+16
	mov	r2, #1
	mov	r1, #4
	bl	mvwprintw
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L196:
	.align	2
.L195:
	.word	win
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.size	battleStats, .-battleStats
	.align	2
	.global	drawPlayArea
	.syntax unified
	.arm
	.fpu softvfp
	.type	drawPlayArea, %function
drawPlayArea:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	clearPlay
	bl	drawMap
	ldr	r3, .L198
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, .L198+4
	mov	r0, r3
	bl	wattr_on
	ldr	r3, .L198
	ldr	r0, [r3]
	ldr	r3, .L198+8
	ldr	r1, [r3, #16]
	ldr	r3, .L198+8
	ldr	r2, [r3, #12]
	ldr	r3, .L198+8
	ldr	r3, [r3, #68]
	bl	mvwprintw
	ldr	r3, .L198
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, .L198+4
	mov	r0, r3
	bl	wattr_off
	ldr	r3, .L198
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	nop
	pop	{fp, pc}
.L199:
	.align	2
.L198:
	.word	win
	.word	2099712
	.word	player
	.size	drawPlayArea, .-drawPlayArea
	.section	.rodata
	.align	2
.LC48:
	.ascii	".\000"
	.text
	.align	2
	.global	drawMap
	.syntax unified
	.arm
	.fpu softvfp
	.type	drawMap, %function
drawMap:
	@ 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	.L201
.L207:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L202
.L206:
	ldr	r3, .L208
	ldr	r2, [r3]
	ldr	r3, .L208+4
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L208+8
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L203
	cmp	r3, #1
	beq	.L204
	b	.L205
.L203:
	ldr	r3, .L208+12
	ldr	r3, [r3]
	mov	r1, #1024
	mov	r0, r3
	bl	wattrset
	ldr	r3, .L208+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	add	r1, r3, #1
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	ldr	r3, .L208+16
	ldr	r3, [r3, #416]
	bl	mvwaddrawch
	ldr	r3, .L208+12
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #1024
	mov	r0, r3
	bl	wattr_off
	b	.L205
.L204:
	ldr	r3, .L208+12
	ldr	r3, [r3]
	mov	r1, #2816
	mov	r0, r3
	bl	wattrset
	ldr	r3, .L208+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	add	r1, r3, #1
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	ldr	r3, .L208+20
	bl	mvwprintw
	ldr	r3, .L208+12
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #2816
	mov	r0, r3
	bl	wattr_off
	nop
.L205:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L202:
	ldr	r3, [fp, #-12]
	cmp	r3, #57
	ble	.L206
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L201:
	ldr	r3, [fp, #-8]
	cmp	r3, #17
	ble	.L207
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L209:
	.align	2
.L208:
	.word	grid
	.word	mapTopY
	.word	mapTopX
	.word	win
	.word	acs_map
	.word	.LC48
	.size	drawMap, .-drawMap
	.section	.rodata
	.align	2
.LC49:
	.ascii	"Gold: %i\000"
	.align	2
.LC50:
	.ascii	"XP: %i\000"
	.align	2
.LC51:
	.ascii	"Slain: %i\000"
	.align	2
.LC52:
	.ascii	"XP Needed: %i\000"
	.text
	.align	2
	.global	drawStatsArea
	.syntax unified
	.arm
	.fpu softvfp
	.type	drawStatsArea, %function
drawStatsArea:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L213
	ldr	r3, [r3]
	mov	r0, r3
	bl	wclear
	ldr	r3, .L213
	ldr	r3, [r3]
	mov	r1, #1048576
	mov	r0, r3
	bl	wbkgd
	ldr	r3, .L213
	ldr	r0, [r3]
	ldr	r3, .L213+4
	ldr	r1, [r3, #480]
	ldr	r3, .L213+4
	ldr	r2, [r3, #480]
	ldr	r3, .L213+4
	ldr	ip, [r3, #452]
	ldr	r3, .L213+4
	ldr	r3, [r3, #452]
	mov	lr, #0
	str	lr, [sp, #16]
	mov	lr, #0
	str	lr, [sp, #12]
	mov	lr, #0
	str	lr, [sp, #8]
	mov	lr, #0
	str	lr, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	bl	wborder
	ldr	r3, .L213
	ldr	r3, [r3]
	mov	r1, #2097152
	mov	r0, r3
	bl	wattrset
	ldr	r3, .L213
	ldr	r0, [r3]
	ldr	r3, .L213+8
	mov	r2, #1
	mov	r1, #1
	bl	mvwprintw
	ldr	r3, .L213
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	wattrset
	ldr	r3, .L213
	ldr	r0, [r3]
	ldr	r3, .L213+8
	ldr	r3, [r3, #52]
	ldr	r2, .L213+12
	ldr	r3, [r2, r3, lsl #5]
	str	r3, [sp]
	ldr	r3, .L213+16
	mov	r2, #1
	mov	r1, #2
	bl	mvwprintw
	ldr	r3, .L213
	ldr	r0, [r3]
	ldr	r3, .L213+8
	ldr	r3, [r3, #8]
	str	r3, [sp]
	ldr	r3, .L213+20
	mov	r2, #1
	mov	r1, #3
	bl	mvwprintw
	ldr	r3, .L213
	ldr	r0, [r3]
	ldr	r3, .L213+8
	ldr	r3, [r3, #44]
	str	r3, [sp]
	ldr	r3, .L213+24
	mov	r2, #1
	mov	r1, #4
	bl	mvwprintw
	ldr	r3, .L213
	ldr	r0, [r3]
	ldr	r3, .L213+8
	ldr	r3, [r3, #20]
	str	r3, [sp]
	ldr	r3, .L213+28
	mov	r2, #1
	mov	r1, #5
	bl	mvwprintw
	ldr	r3, .L213
	ldr	r0, [r3]
	ldr	r3, .L213+8
	ldr	r3, [r3, #24]
	str	r3, [sp]
	ldr	r3, .L213+32
	mov	r2, #1
	mov	r1, #6
	bl	mvwprintw
	ldr	r3, .L213
	ldr	r0, [r3]
	ldr	r3, .L213+8
	ldr	r3, [r3, #32]
	str	r3, [sp]
	ldr	r3, .L213+36
	mov	r2, #1
	mov	r1, #7
	bl	mvwprintw
	ldr	r3, .L213
	ldr	r0, [r3]
	ldr	r3, .L213+8
	ldr	r3, [r3, #36]
	str	r3, [sp]
	ldr	r3, .L213+40
	mov	r2, #1
	mov	r1, #8
	bl	mvwprintw
	ldr	r3, .L213
	ldr	r0, [r3]
	ldr	r3, .L213+8
	ldr	r3, [r3, #40]
	str	r3, [sp]
	ldr	r3, .L213+44
	mov	r2, #1
	mov	r1, #9
	bl	mvwprintw
	ldr	r3, .L213
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #16
	mov	r0, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L212
	ldr	r3, .L213
	ldr	r3, [r3]
	ldr	r2, .L213+4
	ldr	r1, [r2, #452]
	mov	r2, #18
	mov	r0, r3
	bl	whline
.L212:
	ldr	r3, .L213
	ldr	r0, [r3]
	ldr	r3, .L213+8
	ldr	r3, [r3, #72]
	str	r3, [sp]
	ldr	r3, .L213+48
	mov	r2, #1
	mov	r1, #17
	bl	mvwprintw
	ldr	r3, .L213
	ldr	r0, [r3]
	ldr	r3, .L213+8
	ldr	r3, [r3, #28]
	rsb	r3, r3, #100
	str	r3, [sp]
	ldr	r3, .L213+52
	mov	r2, #1
	mov	r1, #18
	bl	mvwprintw
	ldr	r3, .L213
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L214:
	.align	2
.L213:
	.word	stats
	.word	acs_map
	.word	player
	.word	races
	.word	.LC45
	.word	.LC49
	.word	.LC46
	.word	.LC47
	.word	.LC50
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC51
	.word	.LC52
	.size	drawStatsArea, .-drawStatsArea
	.section	.rodata
	.align	2
.LC53:
	.ascii	"Help\000"
	.align	2
.LC54:
	.ascii	"Q - Quit\000"
	.align	2
.LC55:
	.ascii	"F1 - Help (this screen)\000"
	.align	2
.LC56:
	.ascii	"Left Arrow - Move Left\000"
	.align	2
.LC57:
	.ascii	"Right Arrow - Move Right\000"
	.align	2
.LC58:
	.ascii	"Down Arrow - Move Down\000"
	.align	2
.LC59:
	.ascii	"Up Arrow - Move Up\000"
	.align	2
.LC60:
	.ascii	"Press any key to resume\000"
	.text
	.align	2
	.global	showHelp
	.syntax unified
	.arm
	.fpu softvfp
	.type	showHelp, %function
showHelp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	bl	flushinp
	ldr	r3, .L216
	ldr	r3, [r3]
	mov	r0, r3
	bl	wclear
	ldr	r3, .L216
	ldr	r3, [r3]
	ldr	r1, .L216+4
	mov	r0, r3
	bl	wbkgd
	ldr	r3, .L216
	ldr	r0, [r3]
	mov	r3, #0
	str	r3, [sp, #16]
	mov	r3, #0
	str	r3, [sp, #12]
	mov	r3, #0
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	mov	r1, #0
	bl	wborder
	ldr	r3, .L216
	ldr	r3, [r3]
	mov	r1, #2097152
	mov	r0, r3
	bl	wattrset
	ldr	r3, .L216
	ldr	r0, [r3]
	ldr	r3, .L216+8
	mov	r2, #2
	mov	r1, #0
	bl	mvwprintw
	ldr	r3, .L216
	ldr	r0, [r3]
	ldr	r3, .L216+12
	mov	r2, #2
	mov	r1, #2
	bl	mvwprintw
	ldr	r3, .L216
	ldr	r0, [r3]
	ldr	r3, .L216+16
	mov	r2, #2
	mov	r1, #3
	bl	mvwprintw
	ldr	r3, .L216
	ldr	r0, [r3]
	ldr	r3, .L216+20
	mov	r2, #2
	mov	r1, #4
	bl	mvwprintw
	ldr	r3, .L216
	ldr	r0, [r3]
	ldr	r3, .L216+24
	mov	r2, #2
	mov	r1, #5
	bl	mvwprintw
	ldr	r3, .L216
	ldr	r0, [r3]
	ldr	r3, .L216+28
	mov	r2, #2
	mov	r1, #6
	bl	mvwprintw
	ldr	r3, .L216
	ldr	r0, [r3]
	ldr	r3, .L216+32
	mov	r2, #2
	mov	r1, #7
	bl	mvwprintw
	ldr	r3, .L216
	ldr	r3, [r3]
	mov	r1, #262144
	mov	r0, r3
	bl	wattrset
	ldr	r3, .L216
	ldr	r0, [r3]
	ldr	r3, .L216+36
	mov	r2, #2
	mov	r1, #18
	bl	mvwprintw
	ldr	r3, .L216
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	wattrset
	ldr	r3, .L216
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	ldr	r3, .L216
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L217:
	.align	2
.L216:
	.word	helpwindow
	.word	1049088
	.word	.LC53
	.word	.LC54
	.word	.LC55
	.word	.LC56
	.word	.LC57
	.word	.LC58
	.word	.LC59
	.word	.LC60
	.size	showHelp, .-showHelp
	.align	2
	.global	quitGame
	.syntax unified
	.arm
	.fpu softvfp
	.type	quitGame, %function
quitGame:
	@ 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, .L219
	mov	r2, #1
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L220:
	.align	2
.L219:
	.word	quit
	.size	quitGame, .-quitGame
	.align	2
	.global	gameOptions
	.syntax unified
	.arm
	.fpu softvfp
	.type	gameOptions, %function
gameOptions:
	@ 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
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	gameOptions, .-gameOptions
	.align	2
	.global	loadGame
	.syntax unified
	.arm
	.fpu softvfp
	.type	loadGame, %function
loadGame:
	@ 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
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	loadGame, .-loadGame
	.section	.rodata
	.align	2
.LC61:
	.ascii	"Dungcrwl - A Beginner's RPG\000"
	.text
	.align	2
	.global	display_menu
	.syntax unified
	.arm
	.fpu softvfp
	.type	display_menu, %function
display_menu:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L235
	ldr	r3, [r3]
	sub	r3, r3, #14
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, .L235+4
	ldr	r3, [r3]
	sub	r3, r3, #4
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L224
	ldr	r3, .L235+8
	ldr	r3, [r3]
	mov	r1, #2097152
	mov	r0, r3
	bl	wattrset
	ldr	r3, .L235+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	sub	r1, r3, #2
	ldr	r3, [fp, #-12]
	sub	r3, r3, #5
	mov	r2, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L226
	ldr	r3, .L235+8
	ldr	r3, [r3]
	mvn	r2, #0
	ldr	r1, .L235+12
	mov	r0, r3
	bl	waddnstr
.L226:
	ldr	r3, .L235+8
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	wattrset
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L227
.L230:
	ldr	r3, .L235+8
	ldr	r0, [r3]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	mov	r1, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L229
	ldr	r3, .L235+8
	ldr	r0, [r3]
	ldr	r2, .L235+16
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #3]
	mvn	r2, #0
	mov	r1, r3
	bl	waddnstr
.L229:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L227:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L230
	b	.L231
.L224:
	ldr	r3, .L235+8
	ldr	r0, [r3]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	mov	r1, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L231
	ldr	r3, .L235+8
	ldr	r0, [r3]
	ldr	r2, .L235+16
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #3]
	mvn	r2, #0
	mov	r1, r3
	bl	waddnstr
.L231:
	ldr	r3, .L235+8
	ldr	r3, [r3]
	mov	r1, #262144
	mov	r0, r3
	bl	wattrset
	ldr	r3, .L235+8
	ldr	r0, [r3]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	mov	r1, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L234
	ldr	r3, .L235+8
	ldr	r0, [r3]
	ldr	r2, .L235+16
	ldr	r3, [fp, #-28]
	ldr	r3, [r2, r3, lsl #3]
	mvn	r2, #0
	mov	r1, r3
	bl	waddnstr
.L234:
	ldr	r3, .L235+8
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	wattrset
	ldr	r3, .L235+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L236:
	.align	2
.L235:
	.word	COLS
	.word	LINES
	.word	stdscr
	.word	.LC61
	.word	command
	.size	display_menu, .-display_menu
	.align	2
	.global	initGame
	.syntax unified
	.arm
	.fpu softvfp
	.type	initGame, %function
initGame:
	@ 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]
	str	r1, [fp, #-20]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	initscr
	bl	raw
	ldr	r3, .L246
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	nodelay
	bl	noecho
	mov	r0, #0
	bl	curs_set
	bl	nonl
	bl	has_colors
	mov	r3, r0
	cmp	r3, #0
	beq	.L238
	bl	start_color
.L238:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L239
.L242:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	bne	.L240
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #16
	asr	r0, r3, #16
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mov	r2, r3
	mov	r1, #0
	bl	init_pair
	b	.L241
.L240:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #16
	asr	r0, r3, #16
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mov	r2, r3
	mov	r1, #7
	bl	init_pair
.L241:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L239:
	ldr	r3, .L246+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L242
	mov	r2, #0
	mov	r1, #3
	mov	r0, #10
	bl	init_pair
	mov	r2, #0
	mov	r1, #2
	mov	r0, #11
	bl	init_pair
	ldr	r3, .L246+8
	mov	r2, #80
	str	r2, [r3]
	ldr	r3, .L246+12
	mov	r2, #20
	str	r2, [r3]
	ldr	r3, .L246
	ldr	r3, [r3]
	mov	r0, r3
	bl	wclear
	ldr	r3, .L246
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	ldr	r3, .L246+12
	ldr	r3, [r3]
	ldr	r2, .L246+8
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	resize_term
	ldr	r3, .L246+12
	ldr	r0, [r3]
	ldr	r3, .L246+8
	ldr	r1, [r3]
	ldr	r3, .L246+16
	ldr	r2, [r3]
	ldr	r3, .L246+12
	ldr	r3, [r3]
	sub	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	ip, r3
	ldr	r3, .L246+20
	ldr	r2, [r3]
	ldr	r3, .L246+8
	ldr	r3, [r3]
	sub	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, ip
	bl	newwin
	mov	r3, r0
	ldr	r2, .L246+24
	str	r3, [r2]
	mov	r3, #0
	mov	r2, #0
	mov	r1, #0
	mov	r0, #0
	bl	newwin
	mov	r3, r0
	ldr	r2, .L246+28
	str	r3, [r2]
	mov	r3, #60
	mov	r2, #0
	mov	r1, #20
	mov	r0, #20
	bl	newwin
	mov	r3, r0
	ldr	r2, .L246+32
	str	r3, [r2]
	mov	r3, #20
	mov	r2, #10
	mov	r1, #19
	mov	r0, #3
	bl	newwin
	mov	r3, r0
	ldr	r2, .L246+36
	str	r3, [r2]
	ldr	r3, .L246+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L243
	ldr	r3, .L246+32
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L243
	ldr	r3, .L246+28
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L244
.L243:
	bl	endwin
	mov	r3, #1
	b	.L245
.L244:
	bl	savetty
	mov	r1, #0
	mov	r0, #0
	bl	resize_term
	ldr	r3, .L246+40
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
.L245:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L247:
	.align	2
.L246:
	.word	stdscr
	.word	COLORS
	.word	width
	.word	height
	.word	LINES
	.word	COLS
	.word	win
	.word	helpwindow
	.word	stats
	.word	encounterwin
	.word	game_state
	.size	initGame, .-initGame
	.align	2
	.global	gameShutdown
	.syntax unified
	.arm
	.fpu softvfp
	.type	gameShutdown, %function
gameShutdown:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L249
	ldr	r3, [r3]
	mov	r0, r3
	bl	delwin
	ldr	r3, .L249+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	delwin
	ldr	r3, .L249+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	delwin
	ldr	r3, .L249+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	delwin
	ldr	r3, .L249+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L249+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	mov	r0, #1
	bl	curs_set
	bl	endwin
	nop
	pop	{fp, pc}
.L250:
	.align	2
.L249:
	.word	win
	.word	helpwindow
	.word	stats
	.word	encounterwin
	.word	grid
	.word	grid2
	.size	gameShutdown, .-gameShutdown
	.align	2
	.global	showMenu
	.syntax unified
	.arm
	.fpu softvfp
	.type	showMenu, %function
showMenu:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mvn	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	display_menu
	b	.L252
.L267:
	bl	noecho
	ldr	r3, .L269
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	keypad
	bl	raw
	ldr	r3, .L269
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, .L269+4
	cmp	r3, r2
	beq	.L253
	ldr	r3, [fp, #-8]
	ldr	r2, .L269+4
	cmp	r3, r2
	bgt	.L252
	ldr	r3, [fp, #-8]
	cmp	r3, #360
	bgt	.L252
	ldr	r3, [fp, #-8]
	ldr	r2, .L269+8
	cmp	r3, r2
	bge	.L254
	ldr	r3, [fp, #-8]
	ldr	r2, .L269+12
	cmp	r3, r2
	beq	.L255
	ldr	r3, [fp, #-8]
	ldr	r2, .L269+12
	cmp	r3, r2
	bgt	.L252
	ldr	r3, [fp, #-8]
	ldr	r2, .L269+16
	cmp	r3, r2
	beq	.L256
	ldr	r3, [fp, #-8]
	cmp	r3, #260
	bge	.L252
	ldr	r3, [fp, #-8]
	ldr	r2, .L269+20
	cmp	r3, r2
	beq	.L257
	ldr	r3, [fp, #-8]
	ldr	r2, .L269+20
	cmp	r3, r2
	bgt	.L252
	ldr	r3, [fp, #-8]
	cmp	r3, #113
	beq	.L258
	ldr	r3, [fp, #-8]
	cmp	r3, #113
	bgt	.L252
	ldr	r3, [fp, #-8]
	cmp	r3, #81
	beq	.L258
	ldr	r3, [fp, #-8]
	cmp	r3, #81
	bgt	.L252
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	beq	.L259
	ldr	r3, [fp, #-8]
	cmp	r3, #13
	beq	.L259
	b	.L252
.L254:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #336
	sub	r3, r3, #2
	cmp	r3, #22
	ldrls	pc, [pc, r3, asl #2]
	b	.L252
.L261:
	.word	.L260
	.word	.L255
	.word	.L252
	.word	.L252
	.word	.L252
	.word	.L259
	.word	.L252
	.word	.L252
	.word	.L252
	.word	.L252
	.word	.L252
	.word	.L252
	.word	.L252
	.word	.L252
	.word	.L252
	.word	.L252
	.word	.L252
	.word	.L252
	.word	.L252
	.word	.L252
	.word	.L252
	.word	.L252
	.word	.L260
.L259:
	mvn	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L269
	ldr	r3, [r3]
	mov	r0, r3
	bl	werase
	ldr	r3, .L269+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	ldr	r2, .L269+28
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	ldr	r2, .L269+32
	str	r3, [r2]
	ldr	r3, .L269
	ldr	r3, [r3]
	mov	r0, r3
	bl	werase
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	display_menu
	b	.L252
.L255:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	display_menu
	b	.L252
.L260:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	display_menu
	b	.L252
.L256:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L262
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	b	.L263
.L262:
	ldr	r3, [fp, #-16]
.L263:
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	display_menu
	b	.L252
.L257:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	beq	.L264
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	b	.L265
.L264:
	ldr	r3, [fp, #-16]
.L265:
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	display_menu
	b	.L252
.L253:
	mvn	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L269
	ldr	r3, [r3]
	mov	r0, r3
	bl	werase
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	display_menu
	b	.L252
.L258:
	ldr	r3, .L269+36
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, .L269+32
	mov	r2, #3
	str	r2, [r3]
	nop
.L252:
	ldr	r3, .L269+36
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L268
	ldr	r3, .L269+32
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L267
.L268:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L270:
	.align	2
.L269:
	.word	stdscr
	.word	410
	.word	338
	.word	262
	.word	259
	.word	258
	.word	win
	.word	command
	.word	game_state
	.word	quit
	.size	showMenu, .-showMenu
	.section	.rodata
	.align	2
.LC62:
	.ascii	"\000"
	.align	2
.LC63:
	.ascii	"Dungcrwl\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r1, .L283
	mov	r0, #6
	bl	setlocale
	ldr	r0, .L283+4
	bl	PDC_set_title
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	initGame
	mov	r3, r0
	cmp	r3, #0
	beq	.L282
	mov	r3, #1
	b	.L273
.L281:
	ldr	r3, .L283+8
	ldr	r3, [r3]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L275
.L277:
	.word	.L280
	.word	.L279
	.word	.L278
	.word	.L276
.L280:
	bl	showMenu
	b	.L275
.L279:
	bl	newGame
	b	.L275
.L278:
	bl	gameLoop
	b	.L275
.L276:
	ldr	r3, .L283+12
	mov	r2, #1
	strb	r2, [r3]
	b	.L275
.L282:
	nop
.L275:
	ldr	r3, .L283+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L281
	bl	gameShutdown
	mov	r3, #0
.L273:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L284:
	.align	2
.L283:
	.word	.LC62
	.word	.LC63
	.word	game_state
	.word	quit
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
