	.file	"701823.c"
	.intel_syntax noprefix
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -124[rbp], 0
	mov	DWORD PTR -120[rbp], 80
	mov	DWORD PTR -116[rbp], 40
	call	clock@PLT
	mov	QWORD PTR -112[rbp], rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -112[rbp]
	movsd	QWORD PTR -104[rbp], xmm0
	movsd	xmm0, QWORD PTR -104[rbp]
	cvttsd2si	rax, xmm0
	mov	edi, eax
	call	srand@PLT
	mov	eax, 0
	call	ScreenInit
	lea	rax, -80[rbp]
	sub	rsp, 8
	push	QWORD PTR -16[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]
	push	QWORD PTR -72[rbp]
	push	QWORD PTR -80[rbp]
	mov	rdi, rax
	call	MapInit
	add	rsp, 80
	mov	edx, DWORD PTR -120[rbp]
	mov	ecx, DWORD PTR -116[rbp]
	mov	rax, QWORD PTR -96[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	SaveMap
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	sub	rsp, 8
	push	QWORD PTR -16[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]
	push	QWORD PTR -72[rbp]
	push	QWORD PTR -80[rbp]
	mov	rdi, rax
	call	PlayerSetup
	add	rsp, 80
	mov	QWORD PTR -88[rbp], rax
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -124[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	BYTE PTR 64[rax], dl
	mov	rdx, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	HandleInput
.L2:
	call	getchar@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 81
	jne	.L3
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	DWORD PTR -132[rbp], 0
	jmp	.L4
.L5:
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -132[rbp], 1
.L4:
	mov	eax, DWORD PTR -24[rbp]
	cmp	DWORD PTR -132[rbp], eax
	jl	.L5
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	DWORD PTR -128[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -128[rbp], 1
.L6:
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jl	.L7
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	free@PLT
	call	endwin@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	ScreenInit
	.type	ScreenInit, @function
ScreenInit:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	initscr@PLT
	call	noecho@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	ScreenInit, .-ScreenInit
	.section	.rodata
.LC0:
	.string	"+"
	.text
	.globl	DrawDoor
	.type	DrawDoor, @function
DrawDoor:
.LFB8:
	.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, 104
	.cfi_offset 3, -24
	mov	QWORD PTR -88[rbp], rdi
	mov	DWORD PTR -92[rbp], esi
	mov	DWORD PTR -96[rbp], edx
	mov	DWORD PTR -100[rbp], ecx
	call	rand@PLT
	mov	edx, DWORD PTR -96[rbp]
	lea	ecx, -1[rdx]
	cdq
	idiv	ecx
	mov	eax, edx
	add	eax, 1
	mov	DWORD PTR -72[rbp], eax
	call	rand@PLT
	mov	edx, DWORD PTR -92[rbp]
	lea	ecx, -1[rdx]
	cdq
	idiv	ecx
	mov	eax, edx
	add	eax, 1
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -100[rbp], 3
	je	.L13
	cmp	DWORD PTR -100[rbp], 3
	jg	.L20
	cmp	DWORD PTR -100[rbp], 2
	je	.L15
	cmp	DWORD PTR -100[rbp], 2
	jg	.L20
	cmp	DWORD PTR -100[rbp], 0
	je	.L16
	cmp	DWORD PTR -100[rbp], 1
	je	.L17
	jmp	.L20
.L16:
	mov	eax, DWORD PTR 20[rbp]
	mov	DWORD PTR -60[rbp], eax
	mov	edx, DWORD PTR 16[rbp]
	mov	eax, DWORD PTR -72[rbp]
	add	eax, edx
	mov	DWORD PTR -64[rbp], eax
	mov	ecx, DWORD PTR -64[rbp]
	mov	eax, DWORD PTR -60[rbp]
	lea	rdx, .LC0[rip]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
	jmp	.L18
.L17:
	mov	edx, DWORD PTR 20[rbp]
	mov	eax, DWORD PTR -92[rbp]
	add	eax, edx
	mov	DWORD PTR -60[rbp], eax
	mov	edx, DWORD PTR 16[rbp]
	mov	eax, DWORD PTR -72[rbp]
	add	eax, edx
	mov	DWORD PTR -64[rbp], eax
	mov	ecx, DWORD PTR -64[rbp]
	mov	eax, DWORD PTR -60[rbp]
	lea	rdx, .LC0[rip]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
	jmp	.L18
.L15:
	mov	edx, DWORD PTR 20[rbp]
	mov	eax, DWORD PTR -68[rbp]
	add	eax, edx
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR 16[rbp]
	mov	DWORD PTR -64[rbp], eax
	mov	ecx, DWORD PTR -64[rbp]
	mov	eax, DWORD PTR -60[rbp]
	lea	rdx, .LC0[rip]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
	jmp	.L18
.L13:
	mov	edx, DWORD PTR 20[rbp]
	mov	eax, DWORD PTR -68[rbp]
	add	eax, edx
	mov	DWORD PTR -60[rbp], eax
	mov	edx, DWORD PTR 16[rbp]
	mov	eax, DWORD PTR -96[rbp]
	add	eax, edx
	mov	DWORD PTR -64[rbp], eax
	mov	ecx, DWORD PTR -64[rbp]
	mov	eax, DWORD PTR -60[rbp]
	lea	rdx, .LC0[rip]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
	jmp	.L18
.L20:
	nop
.L18:
	mov	rax, QWORD PTR -88[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR -48[rbp]
	mov	rbx, QWORD PTR -40[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	edx, DWORD PTR -32[rbp]
	mov	DWORD PTR 32[rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	DrawDoor, .-DrawDoor
	.section	.rodata
.LC1:
	.string	"-"
.LC2:
	.string	"|"
.LC3:
	.string	"."
	.text
	.globl	DrawRoom
	.type	DrawRoom, @function
DrawRoom:
.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, 120
	.cfi_offset 3, -24
	mov	DWORD PTR -68[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 28[rbp]
	sub	eax, 1
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR 24[rbp]
	sub	eax, 1
	mov	DWORD PTR -36[rbp], eax
	mov	DWORD PTR -56[rbp], 0
	jmp	.L22
.L23:
	mov	edx, DWORD PTR 16[rbp]
	mov	eax, DWORD PTR -56[rbp]
	lea	ecx, [rdx+rax]
	mov	eax, DWORD PTR 20[rbp]
	lea	rdx, .LC1[rip]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
	mov	edx, DWORD PTR 16[rbp]
	mov	eax, DWORD PTR -56[rbp]
	lea	ecx, [rdx+rax]
	mov	edx, DWORD PTR 20[rbp]
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	lea	rdx, .LC1[rip]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
	add	DWORD PTR -56[rbp], 1
.L22:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -56[rbp]
	jge	.L23
	mov	DWORD PTR -52[rbp], 1
	jmp	.L24
.L27:
	mov	eax, DWORD PTR 16[rbp]
	mov	ecx, DWORD PTR 20[rbp]
	mov	edx, DWORD PTR -52[rbp]
	add	ecx, edx
	lea	rdx, .LC2[rip]
	mov	esi, eax
	mov	edi, ecx
	mov	eax, 0
	call	mvprintw@PLT
	mov	edx, DWORD PTR 16[rbp]
	mov	eax, DWORD PTR -36[rbp]
	lea	ecx, [rdx+rax]
	mov	edx, DWORD PTR 20[rbp]
	mov	eax, DWORD PTR -52[rbp]
	add	eax, edx
	lea	rdx, .LC2[rip]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
	mov	DWORD PTR -48[rbp], 1
	jmp	.L25
.L26:
	mov	edx, DWORD PTR 16[rbp]
	mov	eax, DWORD PTR -48[rbp]
	lea	ecx, [rdx+rax]
	mov	edx, DWORD PTR 20[rbp]
	mov	eax, DWORD PTR -52[rbp]
	add	eax, edx
	lea	rdx, .LC3[rip]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
	add	DWORD PTR -48[rbp], 1
.L25:
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L26
	add	DWORD PTR -52[rbp], 1
.L24:
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jl	.L27
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -44[rbp], 0
	jmp	.L28
.L29:
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	lea	rbx, [rdx+rax]
	lea	r8, -128[rbp]
	mov	ecx, DWORD PTR -44[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	r9d, DWORD PTR -40[rbp]
	sub	rsp, 8
	sub	rsp, 40
	mov	rax, rsp
	mov	rsi, QWORD PTR 16[rbp]
	mov	rdi, QWORD PTR 24[rbp]
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
	mov	rsi, QWORD PTR 32[rbp]
	mov	rdi, QWORD PTR 40[rbp]
	mov	QWORD PTR 16[rax], rsi
	mov	QWORD PTR 24[rax], rdi
	mov	esi, DWORD PTR 48[rbp]
	mov	DWORD PTR 32[rax], esi
	mov	esi, r9d
	mov	rdi, r8
	call	DrawDoor
	add	rsp, 48
	mov	rax, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR -120[rbp]
	mov	QWORD PTR [rbx], rax
	mov	QWORD PTR 8[rbx], rdx
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR -104[rbp]
	mov	QWORD PTR 16[rbx], rax
	mov	QWORD PTR 24[rbx], rdx
	mov	eax, DWORD PTR -96[rbp]
	mov	DWORD PTR 32[rbx], eax
	add	DWORD PTR -44[rbp], 1
.L28:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L29
	mov	rax, QWORD PTR -32[rbp]
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	DrawRoom, .-DrawRoom
	.globl	RouteRooms
	.type	RouteRooms, @function
RouteRooms:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	DWORD PTR -56[rbp], ecx
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
.L43:
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -24[rbp]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	mov	edx, eax
	sub	edx, ecx
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, DWORD PTR -24[rbp]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	sub	eax, ecx
	cmp	edx, eax
	jge	.L33
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	ecx, DWORD PTR -28[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L33
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	winch@PLT
	cmp	eax, 32
	jne	.L33
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -8[rbp], eax
	sub	DWORD PTR -32[rbp], 1
	jmp	.L34
.L33:
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -24[rbp]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	mov	edx, eax
	sub	edx, ecx
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, DWORD PTR -24[rbp]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	sub	eax, ecx
	cmp	edx, eax
	jge	.L35
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	ecx, DWORD PTR -28[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L35
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	winch@PLT
	cmp	eax, 46
	jne	.L35
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -8[rbp], eax
	sub	DWORD PTR -32[rbp], 1
	jmp	.L34
.L35:
	mov	eax, DWORD PTR -32[rbp]
	add	eax, 1
	sub	eax, DWORD PTR -24[rbp]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	mov	edx, eax
	sub	edx, ecx
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, DWORD PTR -24[rbp]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	sub	eax, ecx
	cmp	edx, eax
	jge	.L36
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	ecx, DWORD PTR -28[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L36
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	winch@PLT
	cmp	eax, 32
	jne	.L36
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -8[rbp], eax
	add	DWORD PTR -32[rbp], 1
	jmp	.L34
.L36:
	mov	eax, DWORD PTR -32[rbp]
	add	eax, 1
	sub	eax, DWORD PTR -24[rbp]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	mov	edx, eax
	sub	edx, ecx
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, DWORD PTR -24[rbp]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	sub	eax, ecx
	cmp	edx, eax
	jge	.L37
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	ecx, DWORD PTR -28[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L37
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	winch@PLT
	cmp	eax, 46
	jne	.L37
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -8[rbp], eax
	add	DWORD PTR -32[rbp], 1
	jmp	.L34
.L37:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	mov	edx, eax
	sub	edx, ecx
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	sub	eax, ecx
	cmp	edx, eax
	jge	.L38
	mov	eax, DWORD PTR -28[rbp]
	lea	ecx, -1[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, DWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L38
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	winch@PLT
	cmp	eax, 32
	jne	.L38
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	sub	DWORD PTR -28[rbp], 1
	jmp	.L34
.L38:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	mov	edx, eax
	sub	edx, ecx
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	sub	eax, ecx
	cmp	edx, eax
	jge	.L39
	mov	eax, DWORD PTR -28[rbp]
	lea	ecx, -1[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, DWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L39
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	winch@PLT
	cmp	eax, 46
	jne	.L39
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	sub	DWORD PTR -28[rbp], 1
	jmp	.L34
.L39:
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	sub	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	mov	edx, eax
	sub	edx, ecx
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	sub	eax, ecx
	cmp	edx, eax
	jge	.L40
	mov	eax, DWORD PTR -28[rbp]
	lea	ecx, 1[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, DWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L40
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	winch@PLT
	cmp	eax, 32
	jne	.L40
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	add	DWORD PTR -28[rbp], 1
	jmp	.L34
.L40:
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	sub	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	mov	edx, eax
	sub	edx, ecx
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	sub	eax, ecx
	cmp	edx, eax
	jge	.L41
	mov	eax, DWORD PTR -28[rbp]
	lea	ecx, 1[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, DWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L41
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	winch@PLT
	cmp	eax, 46
	jne	.L41
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	add	DWORD PTR -28[rbp], 1
	jmp	.L34
.L41:
	mov	eax, 0
	jmp	.L44
.L34:
	mov	ecx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -28[rbp]
	lea	rdx, .LC3[rip]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
	jmp	.L43
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	RouteRooms, .-RouteRooms
	.globl	ConnectRooms
	.type	ConnectRooms, @function
ConnectRooms:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	DWORD PTR -20[rbp], 9999
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L46
.L51:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L47
.L50:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, ecx
	sub	eax, edx
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	mov	edx, eax
	sub	edx, ecx
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	add	rax, rcx
	sal	rax, 2
	mov	rcx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	mov	esi, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	add	rax, rcx
	sal	rax, 2
	mov	rcx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rcx
	mov	ecx, DWORD PTR 4[rax]
	mov	eax, esi
	sub	eax, ecx
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	sub	eax, ecx
	add	eax, edx
	cmp	DWORD PTR -20[rbp], eax
	jle	.L49
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, ecx
	sub	eax, edx
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	mov	edx, eax
	sub	edx, ecx
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	add	rax, rcx
	sal	rax, 2
	mov	rcx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	mov	esi, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	add	rax, rcx
	sal	rax, 2
	mov	rcx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rcx
	mov	ecx, DWORD PTR 4[rax]
	mov	eax, esi
	sub	eax, ecx
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	sub	eax, ecx
	add	eax, edx
	mov	DWORD PTR -20[rbp], eax
.L49:
	add	DWORD PTR -4[rbp], 1
.L47:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L50
	add	DWORD PTR -8[rbp], 1
.L46:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L51
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	rsi, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	RouteRooms
	mov	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	ConnectRooms, .-ConnectRooms
	.globl	CheckArea
	.type	CheckArea, @function
CheckArea:
.LFB12:
	.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, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -24[rbp], 2
	mov	eax, DWORD PTR 16[rbp]
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR 20[rbp]
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR 24[rbp]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR 28[rbp]
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -36[rbp], 1
	jg	.L54
	mov	DWORD PTR -36[rbp], 2
.L54:
	cmp	DWORD PTR -40[rbp], 1
	jg	.L55
	mov	DWORD PTR -40[rbp], 2
.L55:
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	mov	DWORD PTR -32[rbp], eax
	jmp	.L56
.L61:
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, 1
	mov	DWORD PTR -28[rbp], eax
	jmp	.L57
.L60:
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, DWORD PTR -28[rbp]
	mov	ecx, DWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L58
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	winch@PLT
	cmp	eax, 32
	jne	.L58
	mov	DWORD PTR 40[rbp], 1
	add	DWORD PTR -28[rbp], 1
	jmp	.L57
.L58:
	mov	DWORD PTR 40[rbp], 0
	mov	eax, DWORD PTR 32[rbp]
	mov	DWORD PTR 16[rbp], eax
	mov	eax, DWORD PTR 36[rbp]
	mov	DWORD PTR 20[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 16[rbp]
	mov	rbx, QWORD PTR 24[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR 32[rbp]
	mov	rbx, QWORD PTR 40[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	edx, DWORD PTR 48[rbp]
	mov	DWORD PTR 32[rax], edx
	jmp	.L59
.L57:
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	cmp	DWORD PTR -28[rbp], eax
	jl	.L60
	add	DWORD PTR -32[rbp], 1
.L56:
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	cmp	DWORD PTR -32[rbp], eax
	jl	.L61
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR 16[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR 20[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 16[rbp]
	mov	rbx, QWORD PTR 24[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR 32[rbp]
	mov	rbx, QWORD PTR 40[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	edx, DWORD PTR 48[rbp]
	mov	DWORD PTR 32[rax], edx
.L59:
	mov	rax, QWORD PTR -56[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	CheckArea, .-CheckArea
	.section	.rodata
.LC4:
	.string	"x=%d y=%d"
	.text
	.globl	CreateRoom
	.type	CreateRoom, @function
CreateRoom:
.LFB13:
	.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, 120
	.cfi_offset 3, -24
	mov	QWORD PTR -120[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -100[rbp], 3
	call	rand@PLT
	add	eax, 3
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR 16[rbp]
	mov	DWORD PTR 32[rbp], eax
	mov	eax, DWORD PTR 20[rbp]
	mov	DWORD PTR 36[rbp], eax
	mov	DWORD PTR -96[rbp], 1
	mov	DWORD PTR -92[rbp], 2
	mov	DWORD PTR -88[rbp], 5
	mov	DWORD PTR -84[rbp], 5
	mov	DWORD PTR -80[rbp], 20
	mov	DWORD PTR -76[rbp], 8
	mov	eax, DWORD PTR 16[rbp]
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR 20[rbp]
	mov	DWORD PTR -96[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	imul	edx, eax, 100
	mov	eax, DWORD PTR -72[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -96[rbp]
	add	eax, edx
	cdq
	idiv	DWORD PTR -76[rbp]
	mov	eax, edx
	add	eax, 2
	mov	DWORD PTR -92[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	imul	edx, eax, 100
	mov	eax, DWORD PTR -72[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -96[rbp]
	add	eax, edx
	cdq
	idiv	DWORD PTR -80[rbp]
	mov	eax, edx
	add	eax, 2
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -92[rbp]
	mov	DWORD PTR 28[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR 24[rbp], eax
	sub	rsp, 8
	sub	rsp, 40
	mov	rax, rsp
	mov	rcx, QWORD PTR 16[rbp]
	mov	rbx, QWORD PTR 24[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR 32[rbp]
	mov	rbx, QWORD PTR 40[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	edx, DWORD PTR 48[rbp]
	mov	DWORD PTR 32[rax], edx
	lea	rdi, 16[rbp]
	call	CheckArea
	add	rsp, 48
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	ecx, DWORD PTR 20[rbp]
	mov	edx, DWORD PTR 16[rbp]
	lea	rax, -64[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -64[rbp]
	mov	rdx, rax
	mov	esi, 0
	mov	edi, 0
	mov	eax, 0
	call	mvprintw@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, QWORD PTR 16[rbp]
	mov	rbx, QWORD PTR 24[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR 32[rbp]
	mov	rbx, QWORD PTR 40[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	edx, DWORD PTR 48[rbp]
	mov	DWORD PTR 32[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L64
	call	__stack_chk_fail@PLT
.L64:
	mov	rax, QWORD PTR -120[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	CreateRoom, .-CreateRoom
	.section	.rodata
.LC5:
	.string	"X=%d Y=%d"
.LC6:
	.string	"HERE!"
	.text
	.globl	MapInit
	.type	MapInit, @function
MapInit:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 144
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -80[rbp], 5
	mov	DWORD PTR -76[rbp], 4
	mov	eax, DWORD PTR -80[rbp]
	mov	DWORD PTR 72[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR 56[rbp], rax
	mov	eax, DWORD PTR -76[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	imul	rdx, rax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR 64[rbp], rax
	mov	DWORD PTR -72[rbp], 1
	mov	DWORD PTR -68[rbp], 1
	mov	DWORD PTR -96[rbp], 0
	jmp	.L66
.L67:
	mov	rcx, QWORD PTR 56[rbp]
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rcx, QWORD PTR 56[rbp]
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR 4[rdx], eax
	mov	rcx, QWORD PTR 56[rbp]
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR 16[rdx], eax
	mov	rcx, QWORD PTR 56[rbp]
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR 20[rdx], eax
	add	DWORD PTR -96[rbp], 1
.L66:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	jl	.L67
	mov	DWORD PTR -92[rbp], 0
	jmp	.L68
.L74:
	mov	rcx, QWORD PTR 56[rbp]
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	ecx, DWORD PTR [rax]
	mov	rsi, QWORD PTR 56[rbp]
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	add	rax, rsi
	mov	eax, DWORD PTR 8[rax]
	add	eax, ecx
	cmp	eax, 58
	jg	.L69
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	rcx, QWORD PTR 56[rbp]
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	ecx, DWORD PTR 4[rax]
	mov	rsi, QWORD PTR 56[rbp]
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	add	rax, rsi
	mov	edx, DWORD PTR [rax]
	lea	rax, -64[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -64[rbp]
	mov	rdx, rax
	mov	esi, 0
	mov	edi, 0
	mov	eax, 0
	call	mvprintw@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	rcx, QWORD PTR 56[rbp]
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	lea	rdx, [rcx+rax]
	mov	rsi, QWORD PTR 56[rbp]
	mov	eax, DWORD PTR -92[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	add	rax, rcx
	sal	rax, 2
	lea	rbx, [rsi+rax]
	lea	rcx, -160[rbp]
	sub	rsp, 8
	sub	rsp, 40
	mov	rax, rsp
	mov	rsi, QWORD PTR [rdx]
	mov	rdi, QWORD PTR 8[rdx]
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
	mov	rsi, QWORD PTR 16[rdx]
	mov	rdi, QWORD PTR 24[rdx]
	mov	QWORD PTR 16[rax], rsi
	mov	QWORD PTR 24[rax], rdi
	mov	edx, DWORD PTR 32[rdx]
	mov	DWORD PTR 32[rax], edx
	mov	rdi, rcx
	call	CreateRoom
	add	rsp, 48
	mov	rax, QWORD PTR -160[rbp]
	mov	rdx, QWORD PTR -152[rbp]
	mov	QWORD PTR [rbx], rax
	mov	QWORD PTR 8[rbx], rdx
	mov	rax, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR -136[rbp]
	mov	QWORD PTR 16[rbx], rax
	mov	QWORD PTR 24[rbx], rdx
	mov	eax, DWORD PTR -128[rbp]
	mov	DWORD PTR 32[rbx], eax
	mov	rcx, QWORD PTR 56[rbp]
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR 24[rax]
	cmp	eax, 1
	jne	.L70
	lea	rdx, .LC6[rip]
	mov	esi, 0
	mov	edi, 0
	mov	eax, 0
	call	mvprintw@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	rcx, QWORD PTR 56[rbp]
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	rcx, QWORD PTR 64[rbp]
	mov	edx, DWORD PTR -92[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	lea	r12, [rcx+rdx]
	mov	esi, DWORD PTR -76[rbp]
	sub	rsp, 8
	sub	rsp, 40
	mov	rdx, rsp
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR [rdx], rcx
	mov	QWORD PTR 8[rdx], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR 16[rdx], rcx
	mov	QWORD PTR 24[rdx], rbx
	mov	eax, DWORD PTR 32[rax]
	mov	DWORD PTR 32[rdx], eax
	mov	edi, esi
	call	DrawRoom
	add	rsp, 48
	mov	QWORD PTR [r12], rax
	add	DWORD PTR -92[rbp], 1
.L70:
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	jg	.L81
	mov	rcx, QWORD PTR 56[rbp]
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	ecx, DWORD PTR [rax]
	mov	rsi, QWORD PTR 56[rbp]
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	add	rax, rsi
	lea	edx, 10[rcx]
	mov	DWORD PTR [rax], edx
	jmp	.L73
.L69:
	mov	rcx, QWORD PTR 56[rbp]
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	DWORD PTR [rax], 1
	mov	rcx, QWORD PTR 56[rbp]
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	ecx, DWORD PTR 4[rax]
	mov	rsi, QWORD PTR 56[rbp]
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	add	rax, rsi
	lea	edx, 5[rcx]
	mov	DWORD PTR 4[rax], edx
.L73:
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	jg	.L82
.L68:
	mov	rcx, QWORD PTR 56[rbp]
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	ecx, DWORD PTR 4[rax]
	mov	rsi, QWORD PTR 56[rbp]
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	add	rax, rsi
	mov	eax, DWORD PTR 12[rax]
	add	eax, ecx
	cmp	eax, 37
	jle	.L74
	jmp	.L72
.L81:
	nop
	jmp	.L72
.L82:
	nop
.L72:
	mov	DWORD PTR -88[rbp], 0
	jmp	.L75
.L78:
	mov	DWORD PTR -84[rbp], 0
	jmp	.L76
.L77:
	mov	rdx, QWORD PTR 64[rbp]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	rdx, QWORD PTR 64[rbp]
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -76[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	ConnectRooms
	add	DWORD PTR -84[rbp], 1
.L76:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jl	.L77
	add	DWORD PTR -88[rbp], 1
.L75:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jl	.L78
	mov	rax, QWORD PTR -104[rbp]
	mov	rcx, QWORD PTR 16[rbp]
	mov	rbx, QWORD PTR 24[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR 32[rbp]
	mov	rbx, QWORD PTR 40[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR 48[rbp]
	mov	rbx, QWORD PTR 56[rbp]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	mov	rcx, QWORD PTR 64[rbp]
	mov	rbx, QWORD PTR 72[rbp]
	mov	QWORD PTR 48[rax], rcx
	mov	QWORD PTR 56[rax], rbx
	mov	rdx, QWORD PTR 80[rbp]
	mov	QWORD PTR 64[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L80
	call	__stack_chk_fail@PLT
.L80:
	mov	rax, QWORD PTR -104[rbp]
	lea	rsp, -16[rbp]
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	MapInit, .-MapInit
	.globl	SaveMap
	.type	SaveMap, @function
SaveMap:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -24[rbp], 0
	jmp	.L84
.L89:
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -40[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L85
.L88:
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, DWORD PTR -20[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L86
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	winch@PLT
	mov	edx, eax
	jmp	.L87
.L86:
	mov	edx, -1
.L87:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -20[rbp], 1
.L85:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jl	.L88
	add	DWORD PTR -24[rbp], 1
.L84:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L89
	mov	rax, QWORD PTR -40[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	SaveMap, .-SaveMap
	.globl	UpdateMap
	.type	UpdateMap, @function
UpdateMap:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -8[rbp], 0
	jmp	.L92
.L97:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L93
.L96:
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L94
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	winch@PLT
	mov	edx, eax
	jmp	.L95
.L94:
	mov	edx, -1
.L95:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -4[rbp], 1
.L93:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jl	.L96
	add	DWORD PTR -8[rbp], 1
.L92:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L97
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	UpdateMap, .-UpdateMap
	.section	.rodata
.LC7:
	.string	"@"
	.align 8
.LC8:
	.string	"Welcome! Press 'Q' to exit and move with wasd+qezx"
.LC9:
	.string	"\n"
	.text
	.globl	PlayerSetup
	.type	PlayerSetup, @function
PlayerSetup:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	edi, 72
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR 56[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR 56[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 60[rax], 20
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 24[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	rdx, .LC7[rip]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	lea	rdx, .LC8[rip]
	mov	esi, 0
	mov	edi, 0
	mov	eax, 0
	call	mvprintw@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	lea	rdx, .LC9[rip]
	mov	esi, 0
	mov	edi, 0
	mov	eax, 0
	call	mvprintw@PLT
	call	getchar@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	PlayerSetup, .-PlayerSetup
	.globl	HandleInput
	.type	HandleInput, @function
HandleInput:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	DWORD PTR 20[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 64[rax]
	movsx	eax, al
	sub	eax, 97
	cmp	eax, 25
	ja	.L117
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L104[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L104[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L104:
	.long	.L112-.L104
	.long	.L117-.L104
	.long	.L111-.L104
	.long	.L110-.L104
	.long	.L109-.L104
	.long	.L117-.L104
	.long	.L117-.L104
	.long	.L117-.L104
	.long	.L117-.L104
	.long	.L117-.L104
	.long	.L117-.L104
	.long	.L117-.L104
	.long	.L117-.L104
	.long	.L117-.L104
	.long	.L117-.L104
	.long	.L117-.L104
	.long	.L108-.L104
	.long	.L117-.L104
	.long	.L107-.L104
	.long	.L117-.L104
	.long	.L117-.L104
	.long	.L117-.L104
	.long	.L106-.L104
	.long	.L105-.L104
	.long	.L117-.L104
	.long	.L103-.L104
	.text
.L106:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L113
.L107:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	add	eax, 1
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L113
.L112:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, 1
	mov	DWORD PTR -4[rbp], eax
	jmp	.L113
.L110:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, 1
	mov	DWORD PTR -4[rbp], eax
	jmp	.L113
.L108:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, 1
	mov	DWORD PTR -4[rbp], eax
	jmp	.L113
.L109:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, 1
	mov	DWORD PTR -4[rbp], eax
	jmp	.L113
.L103:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	add	eax, 1
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, 1
	mov	DWORD PTR -4[rbp], eax
	jmp	.L113
.L105:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	add	eax, 1
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, 1
	mov	DWORD PTR -4[rbp], eax
	jmp	.L113
.L111:
	mov	esi, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	lea	rcx, .LC0[rip]
	mov	edx, 58
	mov	edi, eax
	call	TurnNearby
	jmp	.L113
.L117:
	nop
.L113:
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L114
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	winch@PLT
	mov	edx, eax
	jmp	.L115
.L114:
	mov	edx, -1
.L115:
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 28[rax], edx
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	MovePlayer
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	HandleInput, .-HandleInput
	.globl	TurnNearby
	.type	TurnNearby, @function
TurnNearby:
.LFB19:
	.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	QWORD PTR -24[rbp], rcx
	mov	eax, DWORD PTR -4[rbp]
	lea	ecx, -1[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	.L119
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	winch@PLT
	jmp	.L120
.L119:
	mov	eax, -1
.L120:
	mov	edx, DWORD PTR -12[rbp]
	cmp	eax, edx
	jne	.L121
	mov	eax, DWORD PTR -4[rbp]
	lea	ecx, -1[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	mov	edi, ecx
	mov	eax, 0
	call	mvprintw@PLT
.L121:
	mov	eax, DWORD PTR -4[rbp]
	lea	ecx, 1[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	.L122
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	winch@PLT
	jmp	.L123
.L122:
	mov	eax, -1
.L123:
	mov	edx, DWORD PTR -12[rbp]
	cmp	eax, edx
	jne	.L124
	mov	eax, DWORD PTR -4[rbp]
	lea	ecx, 1[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	mov	edi, ecx
	mov	eax, 0
	call	mvprintw@PLT
.L124:
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	ecx, DWORD PTR -4[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L125
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	winch@PLT
	jmp	.L126
.L125:
	mov	eax, -1
.L126:
	mov	edx, DWORD PTR -12[rbp]
	cmp	eax, edx
	jne	.L127
	mov	eax, DWORD PTR -8[rbp]
	lea	ecx, -1[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
.L127:
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	ecx, DWORD PTR -4[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L128
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	winch@PLT
	jmp	.L129
.L128:
	mov	eax, -1
.L129:
	mov	edx, DWORD PTR -12[rbp]
	cmp	eax, edx
	jne	.L130
	mov	eax, DWORD PTR -8[rbp]
	lea	ecx, 1[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
.L130:
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	lea	ecx, -1[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L131
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	winch@PLT
	jmp	.L132
.L131:
	mov	eax, -1
.L132:
	mov	edx, DWORD PTR -12[rbp]
	cmp	eax, edx
	jne	.L133
	mov	eax, DWORD PTR -8[rbp]
	lea	esi, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	lea	ecx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, rax
	mov	edi, ecx
	mov	eax, 0
	call	mvprintw@PLT
.L133:
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -4[rbp]
	lea	ecx, -1[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L134
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	winch@PLT
	jmp	.L135
.L134:
	mov	eax, -1
.L135:
	mov	edx, DWORD PTR -12[rbp]
	cmp	eax, edx
	jne	.L136
	mov	eax, DWORD PTR -8[rbp]
	lea	esi, -1[rax]
	mov	eax, DWORD PTR -4[rbp]
	lea	ecx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, rax
	mov	edi, ecx
	mov	eax, 0
	call	mvprintw@PLT
.L136:
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	lea	ecx, 1[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L137
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	winch@PLT
	jmp	.L138
.L137:
	mov	eax, -1
.L138:
	mov	edx, DWORD PTR -12[rbp]
	cmp	eax, edx
	jne	.L139
	mov	eax, DWORD PTR -8[rbp]
	lea	esi, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	lea	ecx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, rax
	mov	edi, ecx
	mov	eax, 0
	call	mvprintw@PLT
.L139:
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -4[rbp]
	lea	ecx, 1[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L140
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	winch@PLT
	jmp	.L141
.L140:
	mov	eax, -1
.L141:
	mov	edx, DWORD PTR -12[rbp]
	cmp	eax, edx
	jne	.L142
	mov	eax, DWORD PTR -8[rbp]
	lea	esi, -1[rax]
	mov	eax, DWORD PTR -4[rbp]
	lea	ecx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, rax
	mov	edi, ecx
	mov	eax, 0
	call	mvprintw@PLT
.L142:
	mov	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	TurnNearby, .-TurnNearby
	.section	.rodata
.LC10:
	.string	"%c"
	.text
	.globl	PrintOld
	.type	PrintOld, @function
PrintOld:
.LFB20:
	.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	QWORD PTR -32[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	lea	rax, -16[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdx, -16[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
	mov	eax, 1
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L146
	call	__stack_chk_fail@PLT
.L146:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	PrintOld, .-PrintOld
	.section	.rodata
.LC11:
	.string	":"
	.align 8
.LC12:
	.string	"Do you want to open the door? y/n"
	.align 8
.LC13:
	.string	"You opened the door! (close a door with 'c')"
	.text
	.globl	StepOn
	.type	StepOn, @function
StepOn:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, edx
	mov	QWORD PTR -24[rbp], rcx
	mov	QWORD PTR -32[rbp], r8
	mov	BYTE PTR -12[rbp], al
	movsx	eax, BYTE PTR -12[rbp]
	cmp	eax, 58
	je	.L148
	cmp	eax, 58
	jg	.L155
	cmp	eax, 43
	je	.L150
	cmp	eax, 46
	jne	.L155
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	PrintOld
	mov	edx, DWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	UpdateMap
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	rdx, .LC7[rip]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	jmp	.L151
.L148:
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	rdx, .LC11[rip]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	rdx, .LC7[rip]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	jmp	.L151
.L150:
	lea	rdx, .LC12[rip]
	mov	esi, 0
	mov	edi, 0
	mov	eax, 0
	call	mvprintw@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	lea	rdx, .LC9[rip]
	mov	esi, 0
	mov	edi, 0
	mov	eax, 0
	call	mvprintw@PLT
	call	getchar@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR 64[rax], dl
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 64[rax]
	cmp	al, 121
	je	.L152
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 64[rax]
	cmp	al, 89
	jne	.L153
.L152:
	lea	rdx, .LC13[rip]
	mov	esi, 0
	mov	edi, 0
	mov	eax, 0
	call	mvprintw@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	lea	rdx, .LC9[rip]
	mov	esi, 0
	mov	edi, 0
	mov	eax, 0
	call	mvprintw@PLT
	call	getchar@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	rcx, .LC11[rip]
	mov	edx, 43
	mov	edi, eax
	call	TurnNearby
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	jmp	.L155
.L153:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
.L155:
	nop
.L151:
	mov	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	StepOn, .-StepOn
	.globl	MovePlayer
	.type	MovePlayer, @function
MovePlayer:
.LFB22:
	.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	QWORD PTR -16[rbp], rdx
	mov	QWORD PTR -24[rbp], rcx
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 28[rax]
	cmp	eax, 58
	je	.L157
	cmp	eax, 58
	jg	.L158
	cmp	eax, 43
	je	.L159
	cmp	eax, 46
	jne	.L158
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 24[rax]
	test	eax, eax
	jne	.L160
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	esi, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, 46
	mov	edi, eax
	call	StepOn
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 24[rax], 0
	jmp	.L164
.L160:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	eax, 1
	jne	.L164
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	esi, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, 58
	mov	edi, eax
	call	StepOn
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 24[rax], 0
	jmp	.L164
.L157:
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	esi, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, 46
	mov	edi, eax
	call	StepOn
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 24[rax], 1
	jmp	.L162
.L159:
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	esi, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, 43
	mov	edi, eax
	call	StepOn
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 24[rax], 0
	jmp	.L162
.L158:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	jmp	.L162
.L164:
	nop
.L162:
	mov	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	MovePlayer, .-MovePlayer
	.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	"701823.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_d2uiz
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #156
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-108]
	mov	r3, #80
	str	r3, [fp, #-104]
	mov	r3, #40
	str	r3, [fp, #-100]
	bl	clock
	str	r0, [fp, #-96]
	ldr	r0, [fp, #-96]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	bl	__aeabi_d2uiz
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	ScreenInit
	sub	r4, fp, #72
	mov	lr, sp
	sub	ip, fp, #60
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2}
	stm	lr, {r0, r1, r2}
	sub	r3, fp, #72
	ldm	r3, {r1, r2, r3}
	mov	r0, r4
	bl	MapInit
	ldr	r2, [fp, #-104]
	ldr	r1, [fp, #-100]
	ldr	r0, [fp, #-92]
	bl	SaveMap
	str	r0, [fp, #-92]
	mov	lr, sp
	sub	ip, fp, #60
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2}
	stm	lr, {r0, r1, r2}
	sub	r3, fp, #72
	ldm	r3, {r1, r2, r3}
	ldr	r0, [fp, #-88]
	bl	PlayerSetup
	str	r0, [fp, #-88]
	b	.L2
.L3:
	ldr	r3, [fp, #-108]
	and	r2, r3, #255
	ldr	r3, [fp, #-88]
	strb	r2, [r3, #52]
	ldr	r1, [fp, #-92]
	ldr	r0, [fp, #-88]
	bl	HandleInput
.L2:
	bl	getchar
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #81
	bne	.L3
	ldr	r0, [fp, #-88]
	bl	free
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-116]
	b	.L4
.L5:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L4:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-116]
	cmp	r2, r3
	blt	.L5
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L6
.L7:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-92]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L6:
	ldr	r2, [fp, #-112]
	ldr	r3, [fp, #-100]
	cmp	r2, r3
	blt	.L7
	ldr	r0, [fp, #-92]
	bl	free
	bl	endwin
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.size	main, .-main
	.align	2
	.global	ScreenInit
	.syntax unified
	.arm
	.fpu softvfp
	.type	ScreenInit, %function
ScreenInit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	initscr
	bl	noecho
	ldr	r3, .L14
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	mov	r3, #1
	mov	r0, r3
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	stdscr
	.size	ScreenInit, .-ScreenInit
	.global	__aeabi_idivmod
	.section	.rodata
	.align	2
.LC1:
	.ascii	"+\000"
	.text
	.align	2
	.global	DrawDoor
	.syntax unified
	.arm
	.fpu softvfp
	.type	DrawDoor, %function
DrawDoor:
	@ args = 44, pretend = 8, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #8
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	str	r3, [fp, #8]
	bl	rand
	mov	r2, r0
	ldr	r3, [fp, #-64]
	sub	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	add	r3, r3, #1
	str	r3, [fp, #-48]
	bl	rand
	mov	r2, r0
	ldr	r3, [fp, #-60]
	sub	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	add	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #44]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L25
.L19:
	.word	.L22
	.word	.L21
	.word	.L20
	.word	.L18
.L22:
	ldr	r3, [fp, #12]
	str	r3, [fp, #-36]
	ldr	r2, [fp, #8]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	ldr	r1, [fp, #-40]
	ldr	r2, .L26
	mov	r0, r3
	bl	mvprintw
	b	.L23
.L21:
	ldr	r2, [fp, #12]
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r2, [fp, #8]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	ldr	r1, [fp, #-40]
	ldr	r2, .L26
	mov	r0, r3
	bl	mvprintw
	b	.L23
.L20:
	ldr	r2, [fp, #12]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	ldr	r1, [fp, #-40]
	ldr	r2, .L26
	mov	r0, r3
	bl	mvprintw
	b	.L23
.L18:
	ldr	r2, [fp, #12]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r2, [fp, #8]
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	ldr	r1, [fp, #-40]
	ldr	r2, .L26
	mov	r0, r3
	bl	mvprintw
	b	.L23
.L25:
	nop
.L23:
	ldr	r3, [fp, #-56]
	mov	lr, r3
	sub	ip, fp, #40
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldr	r3, [ip]
	str	r3, [lr]
	ldr	r0, [fp, #-56]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #8
	bx	lr
.L27:
	.align	2
.L26:
	.word	.LC1
	.size	DrawDoor, .-DrawDoor
	.section	.rodata
	.align	2
.LC2:
	.ascii	"-\000"
	.align	2
.LC3:
	.ascii	"|\000"
	.align	2
.LC4:
	.ascii	".\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	DrawRoom
	.syntax unified
	.arm
	.fpu softvfp
	.type	DrawRoom, %function
DrawRoom:
	@ args = 40, pretend = 16, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #112
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #16]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #12]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L29
.L30:
	ldr	r0, [fp, #8]
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, .L39+4
	mov	r1, r3
	bl	mvprintw
	ldr	r2, [fp, #8]
	ldr	r3, [fp, #-28]
	add	r0, r2, r3
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, .L39+4
	mov	r1, r3
	bl	mvprintw
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L29:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	bge	.L30
	mov	r3, #1
	str	r3, [fp, #-40]
	b	.L31
.L34:
	ldr	r2, [fp, #8]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldr	r1, [fp, #4]
	ldr	r2, .L39+8
	mov	r0, r3
	bl	mvprintw
	ldr	r2, [fp, #8]
	ldr	r3, [fp, #-40]
	add	r0, r2, r3
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, .L39+8
	mov	r1, r3
	bl	mvprintw
	mov	r3, #1
	str	r3, [fp, #-36]
	b	.L32
.L33:
	ldr	r2, [fp, #8]
	ldr	r3, [fp, #-40]
	add	r0, r2, r3
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, .L39+12
	mov	r1, r3
	bl	mvprintw
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L32:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L33
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L31:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L34
	ldr	r2, [fp, #40]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L35
.L36:
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r5, r3, r2
	sub	r4, fp, #84
	ldr	r3, [fp, #-32]
	str	r3, [sp, #32]
	mov	lr, sp
	add	ip, fp, #8
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2, r3}
	stm	lr, {r0, r1, r2, r3}
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-28]
	mov	r0, r4
	bl	DrawDoor
	mov	lr, r5
	sub	ip, fp, #84
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldr	r3, [ip]
	str	r3, [lr]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L35:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #40]
	cmp	r2, r3
	blt	.L36
	ldr	r3, [fp, #-20]
	ldr	r2, .L39
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L38
	bl	__stack_chk_fail
.L38:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, lr}
	add	sp, sp, #16
	bx	lr
.L40:
	.align	2
.L39:
	.word	.LC5
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	DrawRoom, .-DrawRoom
	.align	2
	.global	RouteRooms
	.syntax unified
	.arm
	.fpu softvfp
	.type	RouteRooms, %function
RouteRooms:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-40]
	add	r3, r3, r2
	ldr	r3, [r3]
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-40]
	add	r3, r3, r2
	ldr	r3, [r3, #4]
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-52]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-52]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	ldr	r3, [r3, #4]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
.L52:
	ldr	r3, [fp, #-36]
	sub	r2, r3, #1
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r1, [fp, #-36]
	ldr	r3, [fp, #-28]
	sub	r3, r1, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r2, r3
	bge	.L42
	ldr	r3, .L54
	ldr	r0, [r3]
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-32]
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L42
	ldr	r3, .L54
	ldr	r3, [r3]
	mov	r0, r3
	bl	winch
	mov	r3, r0
	cmp	r3, #32
	bne	.L42
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	str	r3, [fp, #-36]
	b	.L43
.L42:
	ldr	r3, [fp, #-36]
	sub	r2, r3, #1
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r1, [fp, #-36]
	ldr	r3, [fp, #-28]
	sub	r3, r1, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r2, r3
	bge	.L44
	ldr	r3, .L54
	ldr	r0, [r3]
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-32]
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L44
	ldr	r3, .L54
	ldr	r3, [r3]
	mov	r0, r3
	bl	winch
	mov	r3, r0
	cmp	r3, #46
	bne	.L44
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	str	r3, [fp, #-36]
	b	.L43
.L44:
	ldr	r3, [fp, #-36]
	add	r2, r3, #1
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r1, [fp, #-36]
	ldr	r3, [fp, #-28]
	sub	r3, r1, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r2, r3
	bge	.L45
	ldr	r3, .L54
	ldr	r0, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-32]
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L45
	ldr	r3, .L54
	ldr	r3, [r3]
	mov	r0, r3
	bl	winch
	mov	r3, r0
	cmp	r3, #32
	bne	.L45
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	b	.L43
.L45:
	ldr	r3, [fp, #-36]
	add	r2, r3, #1
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r1, [fp, #-36]
	ldr	r3, [fp, #-28]
	sub	r3, r1, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r2, r3
	bge	.L46
	ldr	r3, .L54
	ldr	r0, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-32]
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L46
	ldr	r3, .L54
	ldr	r3, [r3]
	mov	r0, r3
	bl	winch
	mov	r3, r0
	cmp	r3, #46
	bne	.L46
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	b	.L43
.L46:
	ldr	r3, [fp, #-32]
	sub	r2, r3, #1
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r1, [fp, #-32]
	ldr	r3, [fp, #-24]
	sub	r3, r1, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r2, r3
	bge	.L47
	ldr	r3, .L54
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	ldr	r2, [fp, #-36]
	mov	r1, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L47
	ldr	r3, .L54
	ldr	r3, [r3]
	mov	r0, r3
	bl	winch
	mov	r3, r0
	cmp	r3, #32
	bne	.L47
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L43
.L47:
	ldr	r3, [fp, #-32]
	sub	r2, r3, #1
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r1, [fp, #-32]
	ldr	r3, [fp, #-24]
	sub	r3, r1, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r2, r3
	bge	.L48
	ldr	r3, .L54
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	ldr	r2, [fp, #-36]
	mov	r1, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L48
	ldr	r3, .L54
	ldr	r3, [r3]
	mov	r0, r3
	bl	winch
	mov	r3, r0
	cmp	r3, #46
	bne	.L48
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L43
.L48:
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r1, [fp, #-32]
	ldr	r3, [fp, #-24]
	sub	r3, r1, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r2, r3
	bge	.L49
	ldr	r3, .L54
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	ldr	r2, [fp, #-36]
	mov	r1, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L49
	ldr	r3, .L54
	ldr	r3, [r3]
	mov	r0, r3
	bl	winch
	mov	r3, r0
	cmp	r3, #32
	bne	.L49
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L43
.L49:
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r1, [fp, #-32]
	ldr	r3, [fp, #-24]
	sub	r3, r1, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r2, r3
	bge	.L50
	ldr	r3, .L54
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	ldr	r2, [fp, #-36]
	mov	r1, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L50
	ldr	r3, .L54
	ldr	r3, [r3]
	mov	r0, r3
	bl	winch
	mov	r3, r0
	cmp	r3, #46
	bne	.L50
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L43
.L50:
	mov	r3, #0
	b	.L53
.L43:
	ldr	r2, .L54+4
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	mvprintw
	b	.L52
.L53:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	stdscr
	.word	.LC4
	.size	RouteRooms, .-RouteRooms
	.align	2
	.global	ConnectRooms
	.syntax unified
	.arm
	.fpu softvfp
	.type	ConnectRooms, %function
ConnectRooms:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L64
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L57
.L62:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L58
.L61:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r1, [r3]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, r2
	ldr	r3, [r3]
	sub	r3, r1, r3
	eor	r1, r3, r3, asr #31
	sub	r1, r1, r3, asr #31
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r0, [r3, #4]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, r2
	ldr	r3, [r3, #4]
	sub	r3, r0, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	add	r3, r1, r3
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	ble	.L60
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r1, [r3]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, r2
	ldr	r3, [r3]
	sub	r3, r1, r3
	eor	r1, r3, r3, asr #31
	sub	r1, r1, r3, asr #31
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r0, [r3, #4]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, r2
	ldr	r3, [r3, #4]
	sub	r3, r0, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	add	r3, r1, r3
	str	r3, [fp, #-24]
.L60:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L58:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L61
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L57:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L62
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	RouteRooms
	mov	r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L65:
	.align	2
.L64:
	.word	9999
	.size	ConnectRooms, .-ConnectRooms
	.align	2
	.global	CheckArea
	.syntax unified
	.arm
	.fpu softvfp
	.type	CheckArea, %function
CheckArea:
	@ args = 40, pretend = 16, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	add	r0, fp, #8
	stm	r0, {r1, r2, r3}
	mov	r3, #2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #12]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #20]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bgt	.L67
	mov	r3, #2
	str	r3, [fp, #-24]
.L67:
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	bgt	.L68
	mov	r3, #2
	str	r3, [fp, #-28]
.L68:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L69
.L74:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L70
.L73:
	ldr	r3, .L75
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L71
	ldr	r3, .L75
	ldr	r3, [r3]
	mov	r0, r3
	bl	winch
	mov	r3, r0
	cmp	r3, #32
	bne	.L71
	mov	r3, #1
	str	r3, [fp, #32]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L70
.L71:
	mov	r3, #0
	str	r3, [fp, #32]
	ldr	r3, [fp, #24]
	str	r3, [fp, #8]
	ldr	r3, [fp, #28]
	str	r3, [fp, #12]
	ldr	r3, [fp, #-32]
	mov	lr, r3
	add	ip, fp, #8
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldr	r3, [ip]
	str	r3, [lr]
	b	.L66
.L70:
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L73
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L69:
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L74
	ldr	r3, [fp, #-28]
	str	r3, [fp, #8]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #12]
	ldr	r3, [fp, #-32]
	mov	lr, r3
	add	ip, fp, #8
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldr	r3, [ip]
	str	r3, [lr]
.L66:
	ldr	r0, [fp, #-32]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L76:
	.align	2
.L75:
	.word	stdscr
	.size	CheckArea, .-CheckArea
	.section	.rodata
	.align	2
.LC6:
	.ascii	"x=%d y=%d\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	CreateRoom
	.syntax unified
	.arm
	.fpu softvfp
	.type	CreateRoom, %function
CreateRoom:
	@ args = 40, pretend = 16, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #108
	str	r0, [fp, #-88]
	add	r0, fp, #8
	stm	r0, {r1, r2, r3}
	ldr	r3, .L80
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #3
	str	r3, [fp, #-84]
	bl	rand
	mov	r3, r0
	add	r3, r3, #3
	str	r3, [fp, #-84]
	ldr	r3, [fp, #8]
	str	r3, [fp, #24]
	ldr	r3, [fp, #12]
	str	r3, [fp, #28]
	mov	r3, #1
	str	r3, [fp, #-80]
	mov	r3, #2
	str	r3, [fp, #-76]
	mov	r3, #5
	str	r3, [fp, #-72]
	mov	r3, #5
	str	r3, [fp, #-68]
	mov	r3, #20
	str	r3, [fp, #-64]
	mov	r3, #8
	str	r3, [fp, #-60]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #12]
	str	r3, [fp, #-80]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-56]
	add	r2, r2, r3
	ldr	r3, [fp, #-80]
	add	r3, r2, r3
	ldr	r1, [fp, #-60]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	add	r3, r3, #2
	str	r3, [fp, #-76]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-56]
	add	r2, r2, r3
	ldr	r3, [fp, #-80]
	add	r3, r2, r3
	ldr	r1, [fp, #-64]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	add	r3, r3, #2
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-76]
	str	r3, [fp, #20]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #16]
	add	r4, fp, #8
	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, #8
	ldm	r3, {r1, r2, r3}
	mov	r0, r4
	bl	CheckArea
	ldr	r3, .L80+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	ldr	r2, [fp, #8]
	ldr	r3, [fp, #12]
	sub	r0, fp, #48
	ldr	r1, .L80+8
	bl	sprintf
	sub	r3, fp, #48
	mov	r2, r3
	mov	r1, #0
	mov	r0, #0
	bl	mvprintw
	ldr	r3, .L80+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	ldr	r3, [fp, #-88]
	mov	lr, r3
	add	ip, fp, #8
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldr	r3, [ip]
	str	r3, [lr]
	ldr	r3, .L80
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L79
	bl	__stack_chk_fail
.L79:
	ldr	r0, [fp, #-88]
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, lr}
	add	sp, sp, #16
	bx	lr
.L81:
	.align	2
.L80:
	.word	.LC7
	.word	stdscr
	.word	.LC6
	.size	CreateRoom, .-CreateRoom
	.section	.rodata
	.align	2
.LC8:
	.ascii	"X=%d Y=%d\000"
	.align	2
.LC9:
	.ascii	"HERE!\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	MapInit
	.syntax unified
	.arm
	.fpu softvfp
	.type	MapInit, %function
MapInit:
	@ args = 60, pretend = 16, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #148
	str	r0, [fp, #-96]
	add	r0, fp, #8
	stm	r0, {r1, r2, r3}
	ldr	r3, .L100
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #5
	str	r3, [fp, #-72]
	mov	r3, #4
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-72]
	str	r3, [fp, #52]
	ldr	r2, [fp, #-72]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #44]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-72]
	mul	r2, r3, r2
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #48]
	mov	r3, #1
	str	r3, [fp, #-64]
	mov	r3, #1
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L83
.L84:
	ldr	r1, [fp, #44]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [fp, #-64]
	str	r2, [r3]
	ldr	r1, [fp, #44]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [fp, #-60]
	str	r2, [r3, #4]
	ldr	r1, [fp, #44]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [fp, #-64]
	str	r2, [r3, #16]
	ldr	r1, [fp, #44]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [fp, #-60]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L83:
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L84
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L85
.L91:
	ldr	r1, [fp, #44]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r0, [fp, #44]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r3, [r3, #8]
	add	r3, r1, r3
	cmp	r3, #58
	bgt	.L86
	ldr	r3, .L100+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	ldr	r1, [fp, #44]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	ip, [r3]
	ldr	r1, [fp, #44]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	sub	r0, fp, #56
	mov	r2, ip
	ldr	r1, .L100+8
	bl	sprintf
	sub	r3, fp, #56
	mov	r2, r3
	mov	r1, #0
	mov	r0, #0
	bl	mvprintw
	ldr	r3, .L100+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	ldr	r1, [fp, #44]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r4, r1, r3
	ldr	r1, [fp, #44]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r6, r1, r3
	sub	r5, fp, #140
	mov	lr, sp
	add	ip, r4, #12
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1}
	stm	lr, {r0, r1}
	ldm	r4, {r1, r2, r3}
	mov	r0, r5
	bl	CreateRoom
	mov	lr, r6
	sub	ip, fp, #140
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldr	r3, [ip]
	str	r3, [lr]
	ldr	r1, [fp, #44]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #24]
	cmp	r3, #1
	bne	.L87
	ldr	r2, .L100+12
	mov	r1, #0
	mov	r0, #0
	bl	mvprintw
	ldr	r3, .L100+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	ldr	r1, [fp, #44]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r4, r1, r3
	ldr	r2, [fp, #48]
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #2
	add	r5, r2, r3
	ldr	r3, [fp, #-68]
	str	r3, [sp, #20]
	mov	lr, sp
	add	ip, r4, #16
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldr	r3, [ip]
	str	r3, [lr]
	ldm	r4, {r0, r1, r2, r3}
	bl	DrawRoom
	mov	r3, r0
	str	r3, [r5]
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L87:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	bgt	.L98
	ldr	r1, [fp, #44]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r0, [fp, #44]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r2, r1, #10
	str	r2, [r3]
	b	.L90
.L86:
	ldr	r1, [fp, #44]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r1, [fp, #44]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3, #4]
	ldr	r0, [fp, #44]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r2, r1, #5
	str	r2, [r3, #4]
.L90:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	bgt	.L99
.L85:
	ldr	r1, [fp, #44]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3, #4]
	ldr	r0, [fp, #44]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r3, [r3, #12]
	add	r3, r1, r3
	cmp	r3, #37
	ble	.L91
	b	.L89
.L98:
	nop
	b	.L89
.L99:
	nop
.L89:
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L92
.L95:
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L93
.L94:
	ldr	r2, [fp, #48]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r2, [fp, #48]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-68]
	mov	r1, r3
	bl	ConnectRooms
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L93:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	blt	.L94
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L92:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	blt	.L95
	ldr	r3, [fp, #-96]
	mov	lr, r3
	add	ip, fp, #8
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1}
	stm	lr, {r0, r1}
	ldr	r3, .L100
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L97
	bl	__stack_chk_fail
.L97:
	ldr	r0, [fp, #-96]
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, lr}
	add	sp, sp, #16
	bx	lr
.L101:
	.align	2
.L100:
	.word	.LC10
	.word	stdscr
	.word	.LC8
	.word	.LC9
	.size	MapInit, .-MapInit
	.align	2
	.global	SaveMap
	.syntax unified
	.arm
	.fpu softvfp
	.type	SaveMap, %function
SaveMap:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L103
.L108:
	ldr	r1, [fp, #-32]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L104
.L107:
	ldr	r3, .L110
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L105
	ldr	r3, .L110
	ldr	r3, [r3]
	mov	r0, r3
	bl	winch
	mov	r3, r0
	and	r1, r3, #255
	b	.L106
.L105:
	mov	r1, #255
.L106:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L104:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L107
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L103:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L108
	ldr	r3, [fp, #-24]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L111:
	.align	2
.L110:
	.word	stdscr
	.size	SaveMap, .-SaveMap
	.align	2
	.global	UpdateMap
	.syntax unified
	.arm
	.fpu softvfp
	.type	UpdateMap, %function
UpdateMap:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L113
.L118:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L114
.L117:
	ldr	r3, .L120
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L115
	ldr	r3, .L120
	ldr	r3, [r3]
	mov	r0, r3
	bl	winch
	mov	r3, r0
	and	r1, r3, #255
	b	.L116
.L115:
	mov	r1, #255
.L116:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L114:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L117
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L113:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L118
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L121:
	.align	2
.L120:
	.word	stdscr
	.size	UpdateMap, .-UpdateMap
	.section	.rodata
	.align	2
.LC11:
	.ascii	"@\000"
	.align	2
.LC12:
	.ascii	"Welcome! Press 'Q' to exit and move with wasd+qezx\000"
	.align	2
.LC13:
	.ascii	"\012\000"
	.text
	.align	2
	.global	PlayerSetup
	.syntax unified
	.arm
	.fpu softvfp
	.type	PlayerSetup, %function
PlayerSetup:
	@ args = 60, 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
	str	r0, [fp, #-8]
	add	r0, fp, #8
	stm	r0, {r1, r2, r3}
	mov	r0, #56
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #44]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #44]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r2, #20
	str	r2, [r3, #48]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, [fp, #-8]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, .L124
	mov	r1, r3
	bl	mvprintw
	ldr	r3, .L124+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	bl	wmove
	ldr	r2, .L124+8
	mov	r1, #0
	mov	r0, #0
	bl	mvprintw
	ldr	r3, .L124+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	ldr	r2, .L124+12
	mov	r1, #0
	mov	r0, #0
	bl	mvprintw
	bl	getchar
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L125:
	.align	2
.L124:
	.word	.LC11
	.word	stdscr
	.word	.LC12
	.word	.LC13
	.size	PlayerSetup, .-PlayerSetup
	.align	2
	.global	HandleInput
	.syntax unified
	.arm
	.fpu softvfp
	.type	HandleInput, %function
HandleInput:
	@ 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]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #52]	@ zero_extendqisi2
	sub	r3, r3, #97
	cmp	r3, #25
	ldrls	pc, [pc, r3, asl #2]
	b	.L142
.L129:
	.word	.L137
	.word	.L142
	.word	.L136
	.word	.L135
	.word	.L134
	.word	.L142
	.word	.L142
	.word	.L142
	.word	.L142
	.word	.L142
	.word	.L142
	.word	.L142
	.word	.L142
	.word	.L142
	.word	.L142
	.word	.L142
	.word	.L133
	.word	.L142
	.word	.L132
	.word	.L142
	.word	.L142
	.word	.L142
	.word	.L131
	.word	.L130
	.word	.L142
	.word	.L128
.L131:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L138
.L132:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L138
.L137:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L138
.L135:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L138
.L133:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L138
.L134:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L138
.L128:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L138
.L130:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L138
.L136:
	ldr	r3, .L143
	mov	r2, #58
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	TurnNearby
	b	.L138
.L142:
	nop
.L138:
	ldr	r3, .L143+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L139
	ldr	r3, .L143+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	winch
	mov	r3, r0
	mov	r2, r3
	b	.L140
.L139:
	mvn	r2, #0
.L140:
	ldr	r3, [fp, #-16]
	str	r2, [r3, #28]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	MovePlayer
	ldr	r3, .L143+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	mov	r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L144:
	.align	2
.L143:
	.word	.LC1
	.word	stdscr
	.size	HandleInput, .-HandleInput
	.align	2
	.global	TurnNearby
	.syntax unified
	.arm
	.fpu softvfp
	.type	TurnNearby, %function
TurnNearby:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, .L171
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	mov	r1, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L146
	ldr	r3, .L171
	ldr	r3, [r3]
	mov	r0, r3
	bl	winch
	mov	r3, r0
	b	.L147
.L146:
	mvn	r3, #0
.L147:
	ldr	r2, [fp, #-16]
	cmp	r3, r2
	bne	.L148
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	mvprintw
.L148:
	ldr	r3, .L171
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, [fp, #-12]
	mov	r1, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L149
	ldr	r3, .L171
	ldr	r3, [r3]
	mov	r0, r3
	bl	winch
	mov	r3, r0
	b	.L150
.L149:
	mvn	r3, #0
.L150:
	ldr	r2, [fp, #-16]
	cmp	r3, r2
	bne	.L151
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	mvprintw
.L151:
	ldr	r3, .L171
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-8]
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L152
	ldr	r3, .L171
	ldr	r3, [r3]
	mov	r0, r3
	bl	winch
	mov	r3, r0
	b	.L153
.L152:
	mvn	r3, #0
.L153:
	ldr	r2, [fp, #-16]
	cmp	r3, r2
	bne	.L154
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	mvprintw
.L154:
	ldr	r3, .L171
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-8]
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L155
	ldr	r3, .L171
	ldr	r3, [r3]
	mov	r0, r3
	bl	winch
	mov	r3, r0
	b	.L156
.L155:
	mvn	r3, #0
.L156:
	ldr	r2, [fp, #-16]
	cmp	r3, r2
	bne	.L157
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	mvprintw
.L157:
	ldr	r3, .L171
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	sub	r1, r3, #1
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r2, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L158
	ldr	r3, .L171
	ldr	r3, [r3]
	mov	r0, r3
	bl	winch
	mov	r3, r0
	b	.L159
.L158:
	mvn	r3, #0
.L159:
	ldr	r2, [fp, #-16]
	cmp	r3, r2
	bne	.L160
	ldr	r3, [fp, #-8]
	sub	r0, r3, #1
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r2, [fp, #-20]
	mov	r1, r3
	bl	mvprintw
.L160:
	ldr	r3, .L171
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	sub	r1, r3, #1
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	mov	r2, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L161
	ldr	r3, .L171
	ldr	r3, [r3]
	mov	r0, r3
	bl	winch
	mov	r3, r0
	b	.L162
.L161:
	mvn	r3, #0
.L162:
	ldr	r2, [fp, #-16]
	cmp	r3, r2
	bne	.L163
	ldr	r3, [fp, #-8]
	sub	r0, r3, #1
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r2, [fp, #-20]
	mov	r1, r3
	bl	mvprintw
.L163:
	ldr	r3, .L171
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	add	r1, r3, #1
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r2, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L164
	ldr	r3, .L171
	ldr	r3, [r3]
	mov	r0, r3
	bl	winch
	mov	r3, r0
	b	.L165
.L164:
	mvn	r3, #0
.L165:
	ldr	r2, [fp, #-16]
	cmp	r3, r2
	bne	.L166
	ldr	r3, [fp, #-8]
	add	r0, r3, #1
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r2, [fp, #-20]
	mov	r1, r3
	bl	mvprintw
.L166:
	ldr	r3, .L171
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	add	r1, r3, #1
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	mov	r2, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L167
	ldr	r3, .L171
	ldr	r3, [r3]
	mov	r0, r3
	bl	winch
	mov	r3, r0
	b	.L168
.L167:
	mvn	r3, #0
.L168:
	ldr	r2, [fp, #-16]
	cmp	r3, r2
	bne	.L169
	ldr	r3, [fp, #-8]
	add	r0, r3, #1
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r2, [fp, #-20]
	mov	r1, r3
	bl	mvprintw
.L169:
	mov	r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L172:
	.align	2
.L171:
	.word	stdscr
	.size	TurnNearby, .-TurnNearby
	.section	.rodata
	.align	2
.LC14:
	.ascii	"%c\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	PrintOld
	.syntax unified
	.arm
	.fpu softvfp
	.type	PrintOld, %function
PrintOld:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, .L176
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	sub	r3, fp, #16
	ldr	r1, .L176+4
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #16
	mov	r2, r3
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	mvprintw
	mov	r3, #1
	ldr	r2, .L176
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L175
	bl	__stack_chk_fail
.L175:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L177:
	.align	2
.L176:
	.word	.LC15
	.word	.LC14
	.size	PrintOld, .-PrintOld
	.section	.rodata
	.align	2
.LC16:
	.ascii	":\000"
	.align	2
.LC17:
	.ascii	"Do you want to open the door? y/n\000"
	.align	2
.LC18:
	.ascii	"You opened the door! (close a door with 'c')\000"
	.text
	.align	2
	.global	StepOn
	.syntax unified
	.arm
	.fpu softvfp
	.type	StepOn, %function
StepOn:
	@ args = 4, 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, #-8]
	str	r1, [fp, #-12]
	str	r3, [fp, #-20]
	mov	r3, r2
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #58
	beq	.L179
	cmp	r3, #58
	bgt	.L186
	cmp	r3, #43
	beq	.L181
	cmp	r3, #46
	bne	.L186
	ldr	r3, [fp, #-20]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, [fp, #4]
	mov	r1, r3
	bl	PrintOld
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #4]
	bl	UpdateMap
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, .L187
	mov	r1, r3
	bl	mvprintw
	ldr	r3, .L187+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r2, r3
	bl	wmove
	b	.L182
.L179:
	ldr	r3, [fp, #-20]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, .L187+8
	mov	r1, r3
	bl	mvprintw
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, .L187
	mov	r1, r3
	bl	mvprintw
	ldr	r3, .L187+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r2, r3
	bl	wmove
	b	.L182
.L181:
	ldr	r2, .L187+12
	mov	r1, #0
	mov	r0, #0
	bl	mvprintw
	ldr	r3, .L187+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	ldr	r2, .L187+16
	mov	r1, #0
	mov	r0, #0
	bl	mvprintw
	bl	getchar
	mov	r3, r0
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	strb	r2, [r3, #52]
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3, #52]	@ zero_extendqisi2
	cmp	r3, #121
	beq	.L183
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3, #52]	@ zero_extendqisi2
	cmp	r3, #89
	bne	.L184
.L183:
	ldr	r2, .L187+20
	mov	r1, #0
	mov	r0, #0
	bl	mvprintw
	ldr	r3, .L187+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	ldr	r2, .L187+16
	mov	r1, #0
	mov	r0, #0
	bl	mvprintw
	bl	getchar
	ldr	r3, [fp, #-20]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r1, [r3]
	ldr	r3, .L187+8
	mov	r2, #43
	bl	TurnNearby
	ldr	r3, .L187+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r2, r3
	bl	wmove
	b	.L186
.L184:
	ldr	r3, .L187+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r2, r3
	bl	wmove
.L186:
	nop
.L182:
	mov	r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L188:
	.align	2
.L187:
	.word	.LC11
	.word	stdscr
	.word	.LC16
	.word	.LC17
	.word	.LC13
	.word	.LC18
	.size	StepOn, .-StepOn
	.align	2
	.global	MovePlayer
	.syntax unified
	.arm
	.fpu softvfp
	.type	MovePlayer, %function
MovePlayer:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #28]
	cmp	r3, #58
	beq	.L190
	cmp	r3, #58
	bgt	.L191
	cmp	r3, #43
	beq	.L192
	cmp	r3, #46
	bne	.L191
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L193
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	mov	r2, #46
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	StepOn
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #24]
	b	.L197
.L193:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	cmp	r3, #1
	bne	.L197
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	mov	r2, #58
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	StepOn
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #24]
	b	.L197
.L190:
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	mov	r2, #46
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	StepOn
	ldr	r3, [fp, #-16]
	mov	r2, #1
	str	r2, [r3, #24]
	b	.L195
.L192:
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	mov	r2, #43
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	StepOn
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #24]
	b	.L195
.L191:
	ldr	r3, .L198
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r2, r3
	bl	wmove
	b	.L195
.L197:
	nop
.L195:
	mov	r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L199:
	.align	2
.L198:
	.word	stdscr
	.size	MovePlayer, .-MovePlayer
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
