	.file	"199930.c"
	.intel_syntax noprefix
	.text
	.globl	filepaths
	.bss
	.align 32
	.type	filepaths, @object
	.size	filepaths, 56
filepaths:
	.zero	56
	.globl	selectedNames
	.align 32
	.type	selectedNames, @object
	.size	selectedNames, 56
selectedNames:
	.zero	56
	.globl	connections
	.align 32
	.type	connections, @object
	.size	connections, 196
connections:
	.zero	196
	.globl	roomtypenames
	.section	.rodata
.LC0:
	.string	"START_ROOM"
.LC1:
	.string	"MID_ROOM"
.LC2:
	.string	"END_ROOM"
	.section	.data.rel.local,"aw"
	.align 16
	.type	roomtypenames, @object
	.size	roomtypenames, 24
roomtypenames:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.globl	names
	.section	.rodata
.LC3:
	.string	"WhiteHouse"
.LC4:
	.string	"Cellar"
.LC5:
	.string	"Cave"
.LC6:
	.string	"TrollRoom"
.LC7:
	.string	"TreasureRoom"
.LC8:
	.string	"Forest"
.LC9:
	.string	"WizardRoom"
.LC10:
	.string	"CarouselRoom"
.LC11:
	.string	"CoalMine"
.LC12:
	.string	"RiddleRoom"
	.section	.data.rel.local
	.align 32
	.type	names, @object
	.size	names, 80
names:
	.quad	.LC3
	.quad	.LC4
	.quad	.LC5
	.quad	.LC6
	.quad	.LC7
	.quad	.LC8
	.quad	.LC9
	.quad	.LC10
	.quad	.LC11
	.quad	.LC12
	.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
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	eax, 0
	call	createRooms
	mov	eax, 0
	call	createConnections
	mov	eax, 0
	call	createTypes
	mov	eax, 0
	call	game
	mov	eax, 0
	call	cleanup
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC13:
	.string	"%d"
.LC14:
	.string	"w"
.LC15:
	.string	"ROOM NAME: %s\n"
	.text
	.globl	createRooms
	.type	createRooms, @function
createRooms:
.LFB7:
	.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, 184
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	DWORD PTR -136[rbp], 0
	mov	DWORD PTR -160[rbp], -1
	lea	rax, -160[rbp]
	mov	rdi, rax
	call	pickRooms
	call	getpid@PLT
	mov	DWORD PTR -188[rbp], eax
	mov	edx, DWORD PTR -188[rbp]
	lea	rax, -74[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -64[rbp]
	movabs	rbx, 7308612615393128238
	movabs	rsi, 8317426611270872434
	mov	QWORD PTR [rax], rbx
	mov	QWORD PTR 8[rax], rsi
	mov	WORD PTR 16[rax], 46
	lea	rdx, -74[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -64[rbp]
	mov	esi, 511
	mov	rdi, rax
	call	mkdir@PLT
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	DWORD PTR -184[rbp], eax
	mov	ecx, DWORD PTR -184[rbp]
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	DWORD PTR -184[rbp], edx
	mov	DWORD PTR -180[rbp], 0
	mov	DWORD PTR -192[rbp], 0
	jmp	.L4
.L5:
	mov	edi, 50
	call	malloc@PLT
	mov	rcx, rax
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, filepaths[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	edi, 20
	call	malloc@PLT
	mov	rcx, rax
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, selectedNames[rip]
	mov	QWORD PTR [rdx+rax], rcx
	add	DWORD PTR -192[rbp], 1
.L4:
	cmp	DWORD PTR -192[rbp], 6
	jle	.L5
	mov	DWORD PTR -192[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, filepaths[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	rdx, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, filepaths[rip]
	mov	rbx, QWORD PTR [rdx+rax]
	mov	rdi, rbx
	call	strlen@PLT
	add	rax, rbx
	mov	WORD PTR [rax], 47
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	mov	eax, DWORD PTR -160[rbp+rax*4]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, names[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, filepaths[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	mov	eax, DWORD PTR -160[rbp+rax*4]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, names[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, selectedNames[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, filepaths[rip]
	mov	rbx, QWORD PTR [rdx+rax]
	mov	rdi, rbx
	call	strlen@PLT
	add	rax, rbx
	mov	DWORD PTR [rax], 1954051118
	mov	BYTE PTR 4[rax], 0
	add	DWORD PTR -192[rbp], 1
.L6:
	cmp	DWORD PTR -192[rbp], 6
	jle	.L7
	mov	DWORD PTR -192[rbp], 0
	jmp	.L8
.L9:
	mov	DWORD PTR -176[rbp], 0
	mov	DWORD PTR -172[rbp], 0
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, filepaths[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -168[rbp], rax
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	mov	eax, DWORD PTR -160[rbp+rax*4]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, names[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -168[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	fclose@PLT
	add	DWORD PTR -192[rbp], 1
.L8:
	cmp	DWORD PTR -192[rbp], 6
	jle	.L9
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	createRooms, .-createRooms
	.section	.rodata
.LC16:
	.string	"a"
.LC17:
	.string	"CONNECTION %d: %s\n"
	.text
	.globl	createConnections
	.type	createConnections, @function
createConnections:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, connections[rip]
	mov	DWORD PTR [rdx+rax], 1
	add	DWORD PTR -36[rbp], 1
.L12:
	cmp	DWORD PTR -36[rbp], 6
	jle	.L13
	mov	DWORD PTR -36[rbp], 0
	jmp	.L14
.L21:
	call	rand@PLT
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	add	eax, 3
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, connections[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	DWORD PTR -24[rbp], eax
	add	DWORD PTR -28[rbp], 1
.L15:
	cmp	DWORD PTR -28[rbp], 6
	jle	.L16
	jmp	.L17
.L20:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, -1840700269
	shr	rdx, 32
	add	edx, eax
	sar	edx, 2
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -20[rbp], edx
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, ecx
	sal	edx, 3
	sub	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -20[rbp], eax
	jmp	.L18
.L19:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, -1840700269
	shr	rdx, 32
	add	edx, eax
	sar	edx, 2
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -20[rbp], edx
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, ecx
	sal	edx, 3
	sub	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -20[rbp], eax
.L18:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	je	.L19
	mov	eax, DWORD PTR -20[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, connections[rip]
	mov	DWORD PTR [rdx+rax], 1
	mov	eax, DWORD PTR -36[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, connections[rip]
	mov	DWORD PTR [rdx+rax], 1
	add	DWORD PTR -24[rbp], 1
.L17:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jle	.L20
	add	DWORD PTR -36[rbp], 1
.L14:
	cmp	DWORD PTR -36[rbp], 6
	jle	.L21
	mov	DWORD PTR -36[rbp], 0
	jmp	.L22
.L26:
	mov	DWORD PTR -16[rbp], 1
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, filepaths[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -32[rbp], 0
	jmp	.L23
.L25:
	mov	eax, DWORD PTR -32[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, connections[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L24
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	je	.L24
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, selectedNames[rip]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -16[rbp], 1
.L24:
	add	DWORD PTR -32[rbp], 1
.L23:
	cmp	DWORD PTR -32[rbp], 6
	jle	.L25
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	add	DWORD PTR -36[rbp], 1
.L22:
	cmp	DWORD PTR -36[rbp], 6
	jle	.L26
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	createConnections, .-createConnections
	.section	.rodata
.LC18:
	.string	"ROOM TYPE: %s\n"
	.text
	.globl	createTypes
	.type	createTypes, @function
createTypes:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -12[rbp], 0
	jmp	.L28
.L32:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, filepaths[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	DWORD PTR -12[rbp], 0
	jne	.L29
	mov	rdx, QWORD PTR roomtypenames[rip]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L30
.L29:
	cmp	DWORD PTR -12[rbp], 6
	jne	.L31
	mov	rdx, QWORD PTR roomtypenames[rip+16]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L30
.L31:
	mov	rdx, QWORD PTR roomtypenames[rip+8]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L30:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	add	DWORD PTR -12[rbp], 1
.L28:
	cmp	DWORD PTR -12[rbp], 6
	jle	.L32
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	createTypes, .-createTypes
	.globl	pickRooms
	.type	pickRooms, @function
pickRooms:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -12[rbp], 0
	jmp	.L34
.L39:
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	mov	ecx, DWORD PTR -4[rbp]
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	DWORD PTR -4[rbp], edx
	mov	DWORD PTR -8[rbp], 0
	jmp	.L35
.L38:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -4[rbp], eax
	je	.L40
	add	DWORD PTR -8[rbp], 1
.L35:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L38
	jmp	.L37
.L40:
	nop
.L37:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jne	.L34
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -12[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
.L34:
	cmp	DWORD PTR -12[rbp], 6
	jle	.L39
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	pickRooms, .-pickRooms
	.section	.rodata
.LC19:
	.string	"CURRENT LOCATION: %s\n"
.LC20:
	.string	"POSSIBLE CONNECTIONS: "
.LC21:
	.string	"%s"
.LC22:
	.string	", "
.LC23:
	.string	"."
.LC24:
	.string	"WHERE TO? >"
.LC25:
	.string	"\n"
	.align 8
.LC26:
	.string	"HUH? I DON'T UNDERSTAND THAT ROOM. TRY AGAIN\n\n"
	.align 8
.LC27:
	.string	"YOU HAVE FOUND THE END ROOM. CONGRATULATIONS!"
	.align 8
.LC28:
	.string	"YOU TOOK %d STEPS. YOUR PATH TO VICTORY WAS:\n"
	.text
	.globl	game
	.type	game, @function
game:
.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, 288
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -256[rbp]
	mov	eax, 0
	mov	ecx, 25
	mov	rdi, rdx
	rep stosq
	mov	DWORD PTR -256[rbp], -1
	mov	BYTE PTR -282[rbp], 0
	mov	DWORD PTR -264[rbp], 0
	mov	DWORD PTR -260[rbp], 0
	jmp	.L42
.L56:
	mov	BYTE PTR -281[rbp], 0
	jmp	.L43
.L55:
	mov	DWORD PTR -272[rbp], 0
	mov	DWORD PTR -276[rbp], 0
	jmp	.L44
.L46:
	mov	eax, DWORD PTR -276[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -260[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, connections[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L45
	add	DWORD PTR -272[rbp], 1
.L45:
	add	DWORD PTR -276[rbp], 1
.L44:
	cmp	DWORD PTR -276[rbp], 6
	jle	.L46
	mov	DWORD PTR -268[rbp], 0
	sub	DWORD PTR -272[rbp], 1
	mov	eax, DWORD PTR -260[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, selectedNames[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -280[rbp], 0
	jmp	.L47
.L49:
	mov	eax, DWORD PTR -280[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -260[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, connections[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L48
	mov	eax, DWORD PTR -280[rbp]
	cmp	eax, DWORD PTR -260[rbp]
	je	.L48
	mov	eax, DWORD PTR -280[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, selectedNames[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, rax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -268[rbp], 1
	mov	eax, DWORD PTR -268[rbp]
	cmp	eax, DWORD PTR -272[rbp]
	jge	.L48
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
.L48:
	add	DWORD PTR -280[rbp], 1
.L47:
	cmp	DWORD PTR -280[rbp], 6
	jle	.L49
	lea	rdi, .LC23[rip]
	call	puts@PLT
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -48[rbp]
	mov	esi, 25
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -48[rbp]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	DWORD PTR -280[rbp], 0
	jmp	.L50
.L52:
	mov	eax, DWORD PTR -280[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, selectedNames[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L51
	mov	eax, DWORD PTR -280[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -260[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, connections[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L51
	mov	eax, DWORD PTR -260[rbp]
	cmp	eax, DWORD PTR -280[rbp]
	je	.L51
	mov	BYTE PTR -281[rbp], 1
	mov	eax, DWORD PTR -280[rbp]
	mov	DWORD PTR -260[rbp], eax
	mov	eax, DWORD PTR -264[rbp]
	cdqe
	mov	edx, DWORD PTR -260[rbp]
	mov	DWORD PTR -256[rbp+rax*4], edx
	add	DWORD PTR -264[rbp], 1
	cmp	DWORD PTR -280[rbp], 6
	jne	.L51
	mov	BYTE PTR -282[rbp], 1
.L51:
	add	DWORD PTR -280[rbp], 1
.L50:
	cmp	DWORD PTR -280[rbp], 6
	jle	.L52
	movzx	eax, BYTE PTR -281[rbp]
	xor	eax, 1
	test	al, al
	je	.L53
	lea	rdi, .LC26[rip]
	call	puts@PLT
	jmp	.L43
.L53:
	lea	rdi, .LC25[rip]
	call	puts@PLT
.L43:
	movzx	eax, BYTE PTR -281[rbp]
	xor	eax, 1
	test	al, al
	jne	.L55
.L42:
	movzx	eax, BYTE PTR -282[rbp]
	xor	eax, 1
	test	al, al
	jne	.L56
	cmp	BYTE PTR -282[rbp], 0
	je	.L61
	lea	rdi, .LC27[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -264[rbp]
	mov	esi, eax
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -280[rbp], 0
	jmp	.L58
.L59:
	mov	eax, DWORD PTR -280[rbp]
	cdqe
	mov	eax, DWORD PTR -256[rbp+rax*4]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, selectedNames[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	puts@PLT
	add	DWORD PTR -280[rbp], 1
.L58:
	mov	eax, DWORD PTR -280[rbp]
	cmp	eax, DWORD PTR -264[rbp]
	jl	.L59
.L61:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L60
	call	__stack_chk_fail@PLT
.L60:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	game, .-game
	.globl	cleanup
	.type	cleanup, @function
cleanup:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], 0
	jmp	.L63
.L64:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, filepaths[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, selectedNames[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -4[rbp], 1
.L63:
	cmp	DWORD PTR -4[rbp], 6
	jle	.L64
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	cleanup, .-cleanup
	.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	"199930.c"
	.text
	.comm	filepaths,28,4
	.comm	selectedNames,28,4
	.global	connections
	.bss
	.align	2
	.type	connections, %object
	.size	connections, 196
connections:
	.space	196
	.global	roomtypenames
	.section	.rodata
	.align	2
.LC0:
	.ascii	"START_ROOM\000"
	.align	2
.LC1:
	.ascii	"MID_ROOM\000"
	.align	2
.LC2:
	.ascii	"END_ROOM\000"
	.data
	.align	2
	.type	roomtypenames, %object
	.size	roomtypenames, 12
roomtypenames:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.global	names
	.section	.rodata
	.align	2
.LC3:
	.ascii	"WhiteHouse\000"
	.align	2
.LC4:
	.ascii	"Cellar\000"
	.align	2
.LC5:
	.ascii	"Cave\000"
	.align	2
.LC6:
	.ascii	"TrollRoom\000"
	.align	2
.LC7:
	.ascii	"TreasureRoom\000"
	.align	2
.LC8:
	.ascii	"Forest\000"
	.align	2
.LC9:
	.ascii	"WizardRoom\000"
	.align	2
.LC10:
	.ascii	"CarouselRoom\000"
	.align	2
.LC11:
	.ascii	"CoalMine\000"
	.align	2
.LC12:
	.ascii	"RiddleRoom\000"
	.data
	.align	2
	.type	names, %object
	.size	names, 40
names:
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	createRooms
	bl	createConnections
	bl	createTypes
	bl	game
	bl	cleanup
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
.LC13:
	.ascii	"%d\000"
	.align	2
.LC14:
	.ascii	"./rushmerm.rooms.\000"
	.align	2
.LC15:
	.ascii	"/\000"
	.align	2
.LC16:
	.ascii	".txt\000"
	.align	2
.LC17:
	.ascii	"w\000"
	.align	2
.LC18:
	.ascii	"ROOM NAME: %s\012\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	createRooms
	.syntax unified
	.arm
	.fpu softvfp
	.type	createRooms, %function
createRooms:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #132
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #108
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	str	r2, [r3, #20]
	str	r2, [r3, #24]
	mvn	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #108
	mov	r0, r3
	bl	pickRooms
	bl	getpid
	str	r0, [fp, #-132]
	sub	r3, fp, #68
	ldr	r2, [fp, #-132]
	ldr	r1, .L11+4
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #56
	ldr	r2, .L11+8
	mov	ip, r3
	mov	lr, r2
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	strh	r3, [ip]	@ movhi
	sub	r2, fp, #68
	sub	r3, fp, #56
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #56
	ldr	r1, .L11+12
	mov	r0, r3
	bl	mkdir
	bl	rand
	mov	r2, r0
	ldr	r3, .L11+16
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-128]
	mov	r3, #0
	str	r3, [fp, #-124]
	mov	r3, #0
	str	r3, [fp, #-136]
	b	.L4
.L5:
	mov	r0, #50
	bl	malloc
	mov	r3, r0
	mov	r1, r3
	ldr	r2, .L11+20
	ldr	r3, [fp, #-136]
	str	r1, [r2, r3, lsl #2]
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	mov	r1, r3
	ldr	r2, .L11+24
	ldr	r3, [fp, #-136]
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-136]
	add	r3, r3, #1
	str	r3, [fp, #-136]
.L4:
	ldr	r3, [fp, #-136]
	cmp	r3, #6
	ble	.L5
	mov	r3, #0
	str	r3, [fp, #-136]
	b	.L6
.L7:
	ldr	r2, .L11+20
	ldr	r3, [fp, #-136]
	ldr	r3, [r2, r3, lsl #2]
	sub	r2, fp, #56
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r2, .L11+20
	ldr	r3, [fp, #-136]
	ldr	r4, [r2, r3, lsl #2]
	mov	r0, r4
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	ldr	r2, .L11+28
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r2, .L11+20
	ldr	r3, [fp, #-136]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-136]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-96]
	ldr	r1, .L11+32
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	mov	r0, r2
	bl	strcat
	ldr	r2, .L11+24
	ldr	r3, [fp, #-136]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-136]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-96]
	ldr	r1, .L11+32
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	ldr	r2, .L11+20
	ldr	r3, [fp, #-136]
	ldr	r4, [r2, r3, lsl #2]
	mov	r0, r4
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	ldr	r2, .L11+36
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-136]
	add	r3, r3, #1
	str	r3, [fp, #-136]
.L6:
	ldr	r3, [fp, #-136]
	cmp	r3, #6
	ble	.L7
	mov	r3, #0
	str	r3, [fp, #-136]
	b	.L8
.L9:
	mov	r3, #0
	str	r3, [fp, #-120]
	mov	r3, #0
	str	r3, [fp, #-116]
	ldr	r2, .L11+20
	ldr	r3, [fp, #-136]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r1, .L11+40
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-136]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-96]
	ldr	r2, .L11+32
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r1, .L11+44
	ldr	r0, [fp, #-112]
	bl	fprintf
	ldr	r0, [fp, #-112]
	bl	fclose
	ldr	r3, [fp, #-136]
	add	r3, r3, #1
	str	r3, [fp, #-136]
.L8:
	ldr	r3, [fp, #-136]
	cmp	r3, #6
	ble	.L9
	nop
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC19
	.word	.LC13
	.word	.LC14
	.word	511
	.word	1717986919
	.word	filepaths
	.word	selectedNames
	.word	.LC15
	.word	names
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	createRooms, .-createRooms
	.section	.rodata
	.align	2
.LC20:
	.ascii	"a\000"
	.align	2
.LC21:
	.ascii	"CONNECTION %d: %s\012\000"
	.text
	.align	2
	.global	createConnections
	.syntax unified
	.arm
	.fpu softvfp
	.type	createConnections, %function
createConnections:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L14
.L15:
	ldr	r2, .L29
	ldr	r3, [fp, #-36]
	mov	r1, #1
	str	r1, [r2, r3, lsl #5]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L14:
	ldr	r3, [fp, #-36]
	cmp	r3, #6
	ble	.L15
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L16
.L23:
	bl	rand
	mov	r3, r0
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	add	r3, r3, #3
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L17
.L18:
	ldr	r1, .L29
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-28]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L17:
	ldr	r3, [fp, #-28]
	cmp	r3, #6
	ble	.L18
	b	.L19
.L22:
	bl	rand
	mov	r2, r0
	ldr	r3, .L29+4
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #3
	sub	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [fp, #-20]
	b	.L20
.L21:
	bl	rand
	mov	r2, r0
	ldr	r3, .L29+4
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #3
	sub	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [fp, #-20]
.L20:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	beq	.L21
	ldr	r1, .L29
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-20]
	add	r3, r3, r2
	mov	r2, #1
	str	r2, [r1, r3, lsl #2]
	ldr	r1, .L29
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-36]
	add	r3, r3, r2
	mov	r2, #1
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L19:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L22
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L16:
	ldr	r3, [fp, #-36]
	cmp	r3, #6
	ble	.L23
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L24
.L28:
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r2, .L29+8
	ldr	r3, [fp, #-36]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r1, .L29+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L25
.L27:
	ldr	r1, .L29
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, #1
	bne	.L26
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	beq	.L26
	ldr	r2, .L29+16
	ldr	r3, [fp, #-32]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-16]
	ldr	r1, .L29+20
	ldr	r0, [fp, #-12]
	bl	fprintf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L26:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L25:
	ldr	r3, [fp, #-32]
	cmp	r3, #6
	ble	.L27
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L24:
	ldr	r3, [fp, #-36]
	cmp	r3, #6
	ble	.L28
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	connections
	.word	-1840700269
	.word	filepaths
	.word	.LC20
	.word	selectedNames
	.word	.LC21
	.size	createConnections, .-createConnections
	.section	.rodata
	.align	2
.LC22:
	.ascii	"ROOM TYPE: %s\012\000"
	.text
	.align	2
	.global	createTypes
	.syntax unified
	.arm
	.fpu softvfp
	.type	createTypes, %function
createTypes:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L32
.L36:
	ldr	r2, .L37
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r1, .L37+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L33
	ldr	r3, .L37+8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L37+12
	ldr	r0, [fp, #-8]
	bl	fprintf
	b	.L34
.L33:
	ldr	r3, [fp, #-12]
	cmp	r3, #6
	bne	.L35
	ldr	r3, .L37+8
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r1, .L37+12
	ldr	r0, [fp, #-8]
	bl	fprintf
	b	.L34
.L35:
	ldr	r3, .L37+8
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r1, .L37+12
	ldr	r0, [fp, #-8]
	bl	fprintf
.L34:
	ldr	r0, [fp, #-8]
	bl	fclose
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L32:
	ldr	r3, [fp, #-12]
	cmp	r3, #6
	ble	.L36
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	filepaths
	.word	.LC20
	.word	roomtypenames
	.word	.LC22
	.size	createTypes, .-createTypes
	.align	2
	.global	pickRooms
	.syntax unified
	.arm
	.fpu softvfp
	.type	pickRooms, %function
pickRooms:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L40
.L45:
	bl	rand
	mov	r2, r0
	ldr	r3, .L47
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L41
.L44:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L46
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L41:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L44
	b	.L43
.L46:
	nop
.L43:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bne	.L40
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
.L40:
	ldr	r3, [fp, #-16]
	cmp	r3, #6
	ble	.L45
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	1717986919
	.size	pickRooms, .-pickRooms
	.section	.rodata
	.align	2
.LC23:
	.ascii	"CURRENT LOCATION: %s\012\000"
	.align	2
.LC24:
	.ascii	"POSSIBLE CONNECTIONS: \000"
	.align	2
.LC25:
	.ascii	"%s\000"
	.align	2
.LC26:
	.ascii	", \000"
	.align	2
.LC27:
	.ascii	".\000"
	.align	2
.LC28:
	.ascii	"WHERE TO? >\000"
	.align	2
.LC29:
	.ascii	"\012\000"
	.align	2
.LC30:
	.ascii	"HUH? I DON'T UNDERSTAND THAT ROOM. TRY AGAIN\012\012"
	.ascii	"\000"
	.align	2
.LC31:
	.ascii	"YOU HAVE FOUND THE END ROOM. CONGRATULATIONS!\000"
	.align	2
.LC32:
	.ascii	"YOU TOOK %d STEPS. YOUR PATH TO VICTORY WAS:\012\000"
	.align	2
.LC33:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	game
	.syntax unified
	.arm
	.fpu softvfp
	.type	game, %function
game:
	@ args = 0, pretend = 0, frame = 264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #264
	ldr	r3, .L70
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #236
	mov	r2, #200
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mvn	r3, #0
	str	r3, [fp, #-236]
	mov	r3, #0
	strb	r3, [fp, #-262]
	mov	r3, #0
	str	r3, [fp, #-244]
	mov	r3, #0
	str	r3, [fp, #-240]
	b	.L50
.L64:
	mov	r3, #0
	strb	r3, [fp, #-261]
	b	.L51
.L63:
	mov	r3, #0
	str	r3, [fp, #-252]
	mov	r3, #0
	str	r3, [fp, #-256]
	b	.L52
.L54:
	ldr	r1, .L70+4
	ldr	r2, [fp, #-240]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-256]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, #1
	bne	.L53
	ldr	r3, [fp, #-252]
	add	r3, r3, #1
	str	r3, [fp, #-252]
.L53:
	ldr	r3, [fp, #-256]
	add	r3, r3, #1
	str	r3, [fp, #-256]
.L52:
	ldr	r3, [fp, #-256]
	cmp	r3, #6
	ble	.L54
	mov	r3, #0
	str	r3, [fp, #-248]
	ldr	r3, [fp, #-252]
	sub	r3, r3, #1
	str	r3, [fp, #-252]
	ldr	r2, .L70+8
	ldr	r3, [fp, #-240]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L70+12
	bl	printf
	ldr	r0, .L70+16
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-260]
	b	.L55
.L57:
	ldr	r1, .L70+4
	ldr	r2, [fp, #-240]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-260]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, #1
	bne	.L56
	ldr	r2, [fp, #-260]
	ldr	r3, [fp, #-240]
	cmp	r2, r3
	beq	.L56
	ldr	r2, .L70+8
	ldr	r3, [fp, #-260]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L70+20
	bl	printf
	ldr	r3, [fp, #-248]
	add	r3, r3, #1
	str	r3, [fp, #-248]
	ldr	r2, [fp, #-248]
	ldr	r3, [fp, #-252]
	cmp	r2, r3
	bge	.L56
	ldr	r0, .L70+24
	bl	printf
.L56:
	ldr	r3, [fp, #-260]
	add	r3, r3, #1
	str	r3, [fp, #-260]
.L55:
	ldr	r3, [fp, #-260]
	cmp	r3, #6
	ble	.L57
	ldr	r0, .L70+28
	bl	puts
	ldr	r0, .L70+32
	bl	printf
	ldr	r3, .L70+36
	ldr	r2, [r3]
	sub	r3, fp, #36
	mov	r1, #25
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #36
	ldr	r1, .L70+40
	mov	r0, r3
	bl	strtok
	mov	r3, #0
	str	r3, [fp, #-260]
	b	.L58
.L60:
	ldr	r2, .L70+8
	ldr	r3, [fp, #-260]
	ldr	r2, [r2, r3, lsl #2]
	sub	r3, fp, #36
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L59
	ldr	r1, .L70+4
	ldr	r2, [fp, #-240]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-260]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, #1
	bne	.L59
	ldr	r2, [fp, #-240]
	ldr	r3, [fp, #-260]
	cmp	r2, r3
	beq	.L59
	mov	r3, #1
	strb	r3, [fp, #-261]
	ldr	r3, [fp, #-260]
	str	r3, [fp, #-240]
	ldr	r3, [fp, #-244]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-240]
	str	r2, [r3, #-232]
	ldr	r3, [fp, #-244]
	add	r3, r3, #1
	str	r3, [fp, #-244]
	ldr	r3, [fp, #-260]
	cmp	r3, #6
	bne	.L59
	mov	r3, #1
	strb	r3, [fp, #-262]
.L59:
	ldr	r3, [fp, #-260]
	add	r3, r3, #1
	str	r3, [fp, #-260]
.L58:
	ldr	r3, [fp, #-260]
	cmp	r3, #6
	ble	.L60
	ldrb	r3, [fp, #-261]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L61
	ldr	r0, .L70+44
	bl	puts
	b	.L51
.L61:
	ldr	r0, .L70+40
	bl	puts
.L51:
	ldrb	r3, [fp, #-261]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L63
.L50:
	ldrb	r3, [fp, #-262]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L64
	ldrb	r3, [fp, #-262]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L69
	ldr	r0, .L70+48
	bl	puts
	ldr	r1, [fp, #-244]
	ldr	r0, .L70+52
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-260]
	b	.L66
.L67:
	ldr	r3, [fp, #-260]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-232]
	ldr	r2, .L70+8
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-260]
	add	r3, r3, #1
	str	r3, [fp, #-260]
.L66:
	ldr	r2, [fp, #-260]
	ldr	r3, [fp, #-244]
	cmp	r2, r3
	blt	.L67
.L69:
	nop
	ldr	r3, .L70
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L68
	bl	__stack_chk_fail
.L68:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L71:
	.align	2
.L70:
	.word	.LC33
	.word	connections
	.word	selectedNames
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	stdin
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.size	game, .-game
	.align	2
	.global	cleanup
	.syntax unified
	.arm
	.fpu softvfp
	.type	cleanup, %function
cleanup:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L73
.L74:
	ldr	r2, .L75
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	free
	ldr	r2, .L75+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L73:
	ldr	r3, [fp, #-8]
	cmp	r3, #6
	ble	.L74
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L76:
	.align	2
.L75:
	.word	filepaths
	.word	selectedNames
	.size	cleanup, .-cleanup
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
