	.file	"348202.c"
	.intel_syntax noprefix
	.text
	.globl	Init_Queue
	.type	Init_Queue, @function
Init_Queue:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	Init_Queue, .-Init_Queue
	.section	.rodata
.LC0:
	.string	"Error allocating memory: %s\n"
	.text
	.globl	Enqueue
	.type	Enqueue, @function
Enqueue:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L3
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
.L5:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Enqueue, .-Enqueue
	.section	.rodata
.LC1:
	.string	"Error: Queue underrun!\n"
	.text
	.globl	Dequeue
	.type	Dequeue, @function
Dequeue:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -40[rbp], rax
	mov	rcx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rcx]
	mov	rdx, QWORD PTR 8[rcx]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR 16[rcx]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, 1
	jbe	.L8
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR 8[rax], rdx
.L8:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 16[rcx], rax
	mov	rax, QWORD PTR -56[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	Dequeue, .-Dequeue
	.globl	Delete_Queue
	.type	Delete_Queue, @function
Delete_Queue:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
.L11:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L12
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	Delete_Queue, .-Delete_Queue
	.section	.rodata
	.align 8
.LC2:
	.string	"Usage:\n\tDay13 <input seed> <max steps>\n"
.LC3:
	.string	"Error parsing input: %s\n"
.LC4:
	.string	"Input should be a number!\n"
	.align 8
.LC5:
	.string	"Number of rooms within %lu steps: %lu\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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, 152
	.cfi_offset 3, -24
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -148[rbp], 3
	je	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 39
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L37
.L14:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	QWORD PTR -112[rbp], rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L16
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L37
.L16:
	mov	QWORD PTR -104[rbp], 128
	mov	QWORD PTR -96[rbp], 128
	mov	rax, QWORD PTR -104[rbp]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -88[rbp], 0
	jne	.L17
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L37
.L17:
	mov	QWORD PTR -144[rbp], 0
	jmp	.L18
.L20:
	mov	rax, QWORD PTR -96[rbp]
	sal	rax, 4
	mov	rdx, QWORD PTR -144[rbp]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -88[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L19
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L37
.L19:
	add	QWORD PTR -144[rbp], 1
.L18:
	mov	rax, QWORD PTR -144[rbp]
	cmp	rax, QWORD PTR -104[rbp]
	jb	.L20
	mov	QWORD PTR -144[rbp], 0
	jmp	.L21
.L24:
	mov	QWORD PTR -136[rbp], 0
	jmp	.L22
.L23:
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	sal	rax, 4
	lea	rbx, [rdx+rax]
	mov	rdx, QWORD PTR -120[rbp]
	mov	rcx, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	Location_Is_Open
	mov	BYTE PTR [rbx], al
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	BYTE PTR 1[rax], 0
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	QWORD PTR 8[rax], -1
	add	QWORD PTR -136[rbp], 1
.L22:
	mov	rax, QWORD PTR -136[rbp]
	cmp	rax, QWORD PTR -96[rbp]
	jb	.L23
	add	QWORD PTR -144[rbp], 1
.L21:
	mov	rax, QWORD PTR -144[rbp]
	cmp	rax, QWORD PTR -104[rbp]
	jb	.L24
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 16
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 16
	mov	BYTE PTR 1[rax], 1
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	Init_Queue
	lea	rax, -80[rbp]
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	Enqueue
	jmp	.L25
.L29:
	lea	rax, -48[rbp]
	lea	rdx, -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	Dequeue
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -144[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -136[rbp], rax
	cmp	QWORD PTR -144[rbp], 0
	je	.L26
	mov	rax, QWORD PTR -144[rbp]
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	sal	rax, 4
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L26
	mov	rax, QWORD PTR -144[rbp]
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	sal	rax, 4
	add	rax, rdx
	movzx	eax, BYTE PTR 1[rax]
	xor	eax, 1
	test	al, al
	je	.L26
	mov	rax, QWORD PTR -144[rbp]
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	BYTE PTR 1[rax], 1
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -144[rbp]
	sal	rax, 3
	lea	rcx, -8[rax]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	sal	rax, 4
	add	rax, rcx
	add	rdx, 1
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -144[rbp]
	lea	rcx, -1[rax]
	mov	rdx, QWORD PTR -136[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	Enqueue
.L26:
	cmp	QWORD PTR -136[rbp], 0
	je	.L27
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	sal	rax, 4
	sub	rax, 16
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L27
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	sal	rax, 4
	sub	rax, 16
	add	rax, rdx
	movzx	eax, BYTE PTR 1[rax]
	xor	eax, 1
	test	al, al
	je	.L27
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	sal	rax, 4
	sub	rax, 16
	add	rax, rdx
	mov	BYTE PTR 1[rax], 1
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -144[rbp]
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	sal	rax, 4
	sub	rax, 16
	add	rax, rcx
	add	rdx, 1
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -136[rbp]
	lea	rdx, -1[rax]
	mov	rcx, QWORD PTR -144[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	Enqueue
.L27:
	mov	rax, QWORD PTR -144[rbp]
	cmp	rax, QWORD PTR -104[rbp]
	jnb	.L28
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	sal	rax, 4
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L28
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	sal	rax, 4
	add	rax, rdx
	movzx	eax, BYTE PTR 1[rax]
	xor	eax, 1
	test	al, al
	je	.L28
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	BYTE PTR 1[rax], 1
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 1
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	sal	rax, 4
	add	rax, rcx
	add	rdx, 1
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -144[rbp]
	lea	rcx, 1[rax]
	mov	rdx, QWORD PTR -136[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	Enqueue
.L28:
	mov	rax, QWORD PTR -136[rbp]
	cmp	rax, QWORD PTR -96[rbp]
	jnb	.L25
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, 1
	sal	rax, 4
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L25
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, 1
	sal	rax, 4
	add	rax, rdx
	movzx	eax, BYTE PTR 1[rax]
	xor	eax, 1
	test	al, al
	je	.L25
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, 1
	sal	rax, 4
	add	rax, rdx
	mov	BYTE PTR 1[rax], 1
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -144[rbp]
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, 1
	sal	rax, 4
	add	rax, rcx
	add	rdx, 1
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -136[rbp]
	lea	rdx, 1[rax]
	mov	rcx, QWORD PTR -144[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	Enqueue
.L25:
	mov	rax, QWORD PTR -80[rbp]
	test	rax, rax
	jne	.L29
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	jmp	.L30
.L34:
	mov	QWORD PTR -136[rbp], 0
	jmp	.L31
.L33:
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	cmp	QWORD PTR -112[rbp], rax
	jb	.L32
	add	QWORD PTR -128[rbp], 1
.L32:
	add	QWORD PTR -136[rbp], 1
.L31:
	mov	rax, QWORD PTR -136[rbp]
	cmp	rax, QWORD PTR -96[rbp]
	jb	.L33
	add	QWORD PTR -144[rbp], 1
.L30:
	mov	rax, QWORD PTR -144[rbp]
	cmp	rax, QWORD PTR -104[rbp]
	jb	.L34
	mov	rdx, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	Delete_Queue
	mov	QWORD PTR -144[rbp], 0
	jmp	.L35
.L36:
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	QWORD PTR -144[rbp], 1
.L35:
	cmp	QWORD PTR -144[rbp], 127
	jbe	.L36
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L37:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.globl	Location_Is_Open
	.type	Location_Is_Open, @function
Location_Is_Open:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	imul	rax, QWORD PTR -24[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	imul	rax, QWORD PTR -32[rbp]
	add	rax, rax
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	imul	rax, rax
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	and	eax, 1431655765
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	sar	rax
	and	eax, 1431655765
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	and	eax, 858993459
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	sar	rax, 2
	and	eax, 858993459
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	and	eax, 252645135
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	sar	rax, 4
	and	eax, 252645135
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	and	eax, 16711935
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	sar	rax, 8
	and	eax, 16711935
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, ax
	mov	rax, QWORD PTR -8[rbp]
	sar	rax, 16
	movzx	eax, ax
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	and	eax, 1
	test	rax, rax
	sete	al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	Location_Is_Open, .-Location_Is_Open
	.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	"348202.c"
	.text
	.align	2
	.global	Init_Queue
	.syntax unified
	.arm
	.fpu softvfp
	.type	Init_Queue, %function
Init_Queue:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	Init_Queue, .-Init_Queue
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error allocating memory: %s\012\000"
	.text
	.align	2
	.global	Enqueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	Enqueue, %function
Enqueue:
	@ 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]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L6
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L6+4
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #8]
	b	.L5
.L4:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
.L5:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L7:
	.align	2
.L6:
	.word	stderr
	.word	.LC0
	.size	Enqueue, .-Enqueue
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Error: Queue underrun!\012\000"
	.text
	.align	2
	.global	Dequeue
	.syntax unified
	.arm
	.fpu softvfp
	.type	Dequeue, %function
Dequeue:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L12+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L9:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	sub	r3, fp, #16
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	cmp	r3, #1
	bls	.L10
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-28]
	str	r2, [r3, #4]
.L10:
	ldr	r0, [fp, #-20]
	bl	free
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	mov	ip, r3
	sub	r3, fp, #16
	ldm	r3, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r0, [fp, #-24]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	stderr
	.word	.LC1
	.size	Dequeue, .-Dequeue
	.align	2
	.global	Delete_Queue
	.syntax unified
	.arm
	.fpu softvfp
	.type	Delete_Queue, %function
Delete_Queue:
	@ 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]
	b	.L15
.L16:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
.L15:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L16
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	Delete_Queue, .-Delete_Queue
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Usage:\012\011Day13 <input seed> <max steps>\012\000"
	.align	2
.LC3:
	.ascii	"Error parsing input: %s\012\000"
	.align	2
.LC4:
	.ascii	"Input should be a number!\012\000"
	.align	2
.LC5:
	.ascii	"Number of rooms within %lu steps: %lu\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #76
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-80]
	cmp	r3, #3
	beq	.L18
	ldr	r3, .L43+4
	ldr	r3, [r3]
	mov	r2, #39
	mov	r1, #1
	ldr	r0, .L43+8
	bl	fwrite
	mov	r3, #1
	b	.L41
.L18:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-84]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-84]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	str	r0, [fp, #-56]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L20
	ldr	r3, .L43+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L43+12
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L43+4
	ldr	r3, [r3]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L43+16
	bl	fwrite
	mov	r3, #1
	b	.L41
.L20:
	mov	r3, #128
	str	r3, [fp, #-52]
	mov	r3, #128
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L21
	ldr	r3, .L43+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L43+20
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L41
.L21:
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L22
.L24:
	ldr	r3, [fp, #-48]
	lsl	r1, r3, #3
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L23
	ldr	r3, .L43+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L43+20
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L41
.L23:
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L22:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	bcc	.L24
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L25
.L28:
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L26
.L27:
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #3
	add	r4, r2, r3
	ldr	r2, [fp, #-60]
	ldr	r1, [fp, #-68]
	ldr	r0, [fp, #-72]
	bl	Location_Is_Open
	mov	r3, r0
	strb	r3, [r4]
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #1]
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L26:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	bcc	.L27
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L25:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	bcc	.L28
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #8
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #8
	mov	r2, #1
	strb	r2, [r3, #1]
	sub	r3, fp, #40
	mov	r0, r3
	bl	Init_Queue
	sub	r3, fp, #40
	mov	r2, #1
	mov	r1, #1
	mov	r0, r3
	bl	Enqueue
	b	.L29
.L33:
	sub	r3, fp, #28
	sub	r2, fp, #40
	mov	r1, r2
	mov	r0, r3
	bl	Dequeue
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-72]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-72]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-72]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3, #1]
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-72]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r1, [fp, #-44]
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r2, r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-72]
	sub	r1, r3, #1
	sub	r3, fp, #40
	ldr	r2, [fp, #-68]
	mov	r0, r3
	bl	Enqueue
.L30:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	sub	r3, r3, #-536870911
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	sub	r3, r3, #-536870911
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	sub	r3, r3, #-536870911
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3, #1]
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-44]
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-68]
	sub	r3, r3, #-536870911
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r2, r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-68]
	sub	r2, r3, #1
	sub	r3, fp, #40
	ldr	r1, [fp, #-72]
	mov	r0, r3
	bl	Enqueue
.L31:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	bcs	.L32
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L32
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L32
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3, #1]
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r1, [fp, #-44]
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r2, r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-72]
	add	r1, r3, #1
	sub	r3, fp, #40
	ldr	r2, [fp, #-68]
	mov	r0, r3
	bl	Enqueue
.L32:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	bcs	.L29
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3, #1]
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-44]
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r2, r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-68]
	add	r2, r3, #1
	sub	r3, fp, #40
	ldr	r1, [fp, #-72]
	mov	r0, r3
	bl	Enqueue
.L29:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L33
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L34
.L38:
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L35
.L37:
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	bcc	.L36
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L36:
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L35:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	bcc	.L37
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L34:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	bcc	.L38
	ldr	r2, [fp, #-64]
	ldr	r1, [fp, #-56]
	ldr	r0, .L43+24
	bl	printf
	sub	r3, fp, #40
	mov	r0, r3
	bl	Delete_Queue
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L39
.L40:
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L39:
	ldr	r3, [fp, #-72]
	cmp	r3, #127
	bls	.L40
	ldr	r0, [fp, #-44]
	bl	free
	mov	r3, #0
.L41:
	ldr	r2, .L43
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC6
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC0
	.word	.LC5
	.size	main, .-main
	.align	2
	.global	Location_Is_Open
	.syntax unified
	.arm
	.fpu softvfp
	.type	Location_Is_Open, %function
Location_Is_Open:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldr	r2, [fp, #-16]
	mul	r2, r3, r2
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-20]
	mul	r3, r1, r3
	lsl	r3, r3, #1
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	mov	r1, r3
	mul	r1, r3, r1
	mov	r3, r1
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, .L47
	and	r2, r2, r3
	ldr	r3, [fp, #-8]
	asr	r1, r3, #1
	ldr	r3, .L47
	and	r3, r3, r1
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, .L47+4
	and	r2, r2, r3
	ldr	r3, [fp, #-8]
	asr	r1, r3, #2
	ldr	r3, .L47+4
	and	r3, r3, r1
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, .L47+8
	and	r2, r2, r3
	ldr	r3, [fp, #-8]
	asr	r1, r3, #4
	ldr	r3, .L47+8
	and	r3, r3, r1
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	bic	r2, r3, #-16777216
	bic	r2, r2, #65280
	ldr	r3, [fp, #-8]
	asr	r3, r3, #8
	bic	r3, r3, #-16777216
	bic	r3, r3, #65280
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, [fp, #-8]
	lsr	r2, r2, #16
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	and	r3, r3, #1
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L48:
	.align	2
.L47:
	.word	1431655765
	.word	858993459
	.word	252645135
	.size	Location_Is_Open, .-Location_Is_Open
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
