	.file	"770519.c"
	.intel_syntax noprefix
	.text
	.globl	hole
	.bss
	.align 16
	.type	hole, @object
	.size	hole, 16
hole:
	.zero	16
	.globl	wall
	.align 32
	.type	wall, @object
	.size	wall, 256
wall:
	.zero	256
	.globl	impossible
	.type	impossible, @object
	.size	impossible, 1
impossible:
	.zero	1
	.globl	move
	.align 4
	.type	move, @object
	.size	move, 4
move:
	.zero	4
	.globl	getdeep
	.type	getdeep, @object
	.size	getdeep, 1
getdeep:
	.zero	1
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	W
	.align 4
	.type	W, @object
	.size	W, 4
W:
	.zero	4
	.globl	st
	.align 16
	.type	st, @object
	.size	st, 17
st:
	.zero	17
	.globl	q
	.align 32
	.type	q, @object
	.size	q, 170388
q:
	.zero	170388
	.globl	hash
	.align 32
	.type	hash, @object
	.size	hash, 40088
hash:
	.zero	40088
	.text
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	eax, ecx
	mov	BYTE PTR -44[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 170380[rax]
	lea	edx, 1[rax]
	movsx	rax, edx
	imul	rax, rax, 438839205
	shr	rax, 32
	sar	eax, 9
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 5011
	mov	eax, edx
	sub	eax, ecx
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR 170380[rdx], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 170380[rax]
	mov	rcx, QWORD PTR -24[rbp]
	cdqe
	mov	rdx, rax
	sal	rdx, 4
	add	rax, rdx
	lea	rsi, [rcx+rax]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rcx]
	mov	rdx, QWORD PTR 8[rcx]
	mov	QWORD PTR [rsi], rax
	mov	QWORD PTR 8[rsi], rdx
	movzx	eax, BYTE PTR 16[rcx]
	mov	BYTE PTR 16[rsi], al
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L5:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 170380[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR [rcx+rax]
	mov	rdi, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -4[rbp]
	movsx	rsi, ecx
	movsx	rdx, edx
	mov	ecx, DWORD PTR -8[rbp]
	movsx	rcx, ecx
	sal	rdx, 2
	add	rdx, rcx
	sal	rdx, 2
	add	rdx, rdi
	add	rdx, rsi
	add	rdx, 85187
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -4[rbp], 1
.L3:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L4
	add	DWORD PTR -8[rbp], 1
.L2:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L5
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 170380[rax]
	mov	rdx, QWORD PTR -24[rbp]
	cdqe
	movzx	ecx, BYTE PTR -44[rbp]
	mov	BYTE PTR 165363[rdx+rax], cl
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 170384[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 170384[rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	enqueue, .-enqueue
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.LFB7:
	.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	QWORD PTR -48[rbp], rcx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 170376[rax]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	cdqe
	mov	rdx, rax
	sal	rdx, 4
	add	rax, rdx
	add	rsi, rax
	mov	rax, QWORD PTR [rsi]
	mov	rdx, QWORD PTR 8[rsi]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	movzx	eax, BYTE PTR 16[rsi]
	mov	BYTE PTR 16[rcx], al
	mov	DWORD PTR -8[rbp], 0
	jmp	.L7
.L10:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L8
.L9:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 170376[rax]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -40[rbp]
	add	rcx, rdx
	mov	rdi, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rsi, edx
	cdqe
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdi
	add	rax, rsi
	add	rax, 85187
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	BYTE PTR [rcx+rax], dl
	add	DWORD PTR -4[rbp], 1
.L8:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L9
	add	DWORD PTR -8[rbp], 1
.L7:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L10
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 170376[rax]
	mov	rdx, QWORD PTR -24[rbp]
	cdqe
	movzx	edx, BYTE PTR 165363[rdx+rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 170376[rax]
	lea	edx, 1[rax]
	movsx	rax, edx
	imul	rax, rax, 438839205
	shr	rax, 32
	sar	eax, 9
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 5011
	mov	eax, edx
	sub	eax, ecx
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR 170376[rdx], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 170384[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 170384[rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	dequeue, .-dequeue
	.globl	empty
	.type	empty, @function
empty:
.LFB8:
	.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	eax, DWORD PTR 170384[rax]
	test	eax, eax
	sete	al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	empty, .-empty
	.globl	fh
	.type	fh, @function
fh:
.LFB9:
	.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	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L14
.L18:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L15
.L17:
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L16
	mov	eax, DWORD PTR N[rip]
	imul	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	lea	esi, [rdx+rax]
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	add	eax, esi
	add	DWORD PTR -4[rbp], eax
.L16:
	add	DWORD PTR -8[rbp], 1
.L15:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L17
	add	DWORD PTR -12[rbp], 1
.L14:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L18
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 438839205
	shr	rdx, 32
	sar	edx, 9
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 5011
	sub	eax, ecx
	mov	edx, eax
	mov	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	fh, .-fh
	.globl	cmp_state
	.type	cmp_state, @function
cmp_state:
.LFB10:
	.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	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR 16[rax]
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR 16[rax]
	cmp	dl, al
	je	.L21
	mov	eax, 1
	jmp	.L22
.L21:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L23
.L27:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L24
.L26:
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rsi, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rsi
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	je	.L25
	mov	eax, 1
	jmp	.L22
.L25:
	add	DWORD PTR -4[rbp], 1
.L24:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L26
	add	DWORD PTR -8[rbp], 1
.L23:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L27
	mov	eax, 0
.L22:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	cmp_state, .-cmp_state
	.globl	BFS
	.type	BFS, @function
BFS:
.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, 160
	mov	QWORD PTR -152[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L29
.L127:
	lea	rcx, -138[rbp]
	lea	rdx, -96[rbp]
	lea	rsi, -64[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	dequeue
	movzx	eax, BYTE PTR -48[rbp]
	test	al, al
	jne	.L30
	movzx	eax, BYTE PTR -138[rbp]
	movsx	eax, al
	jmp	.L128
.L30:
	mov	BYTE PTR -137[rbp], 1
	movzx	eax, BYTE PTR -48[rbp]
	mov	BYTE PTR -16[rbp], al
	mov	DWORD PTR -132[rbp], 0
	jmp	.L32
.L46:
	mov	DWORD PTR -136[rbp], 0
	jmp	.L33
.L44:
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 64
	movzx	eax, BYTE PTR [rax]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -136[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rbp
	add	rdx, rcx
	sub	rdx, 32
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 96
	movzx	eax, BYTE PTR [rax]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -136[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rbp
	add	rdx, rcx
	sub	rdx, 80
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L34
	mov	DWORD PTR -124[rbp], 0
	mov	DWORD PTR -120[rbp], 0
	mov	eax, DWORD PTR -136[rbp]
	sub	eax, 1
	mov	DWORD PTR -128[rbp], eax
	jmp	.L35
.L40:
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L36
	mov	eax, DWORD PTR -128[rbp]
	add	eax, 1
	mov	DWORD PTR -124[rbp], eax
	jmp	.L37
.L36:
	mov	eax, DWORD PTR -128[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -132[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -132[rbp]
	movsx	rsi, eax
	movsx	rax, edx
	sal	rax, 2
	lea	rdx, [rax+rsi]
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	sal	rdx, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, [rax+rcx]
	lea	rax, wall[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L38
	mov	eax, DWORD PTR -128[rbp]
	add	eax, 1
	mov	DWORD PTR -124[rbp], eax
	jmp	.L37
.L38:
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 80
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L39
	mov	eax, DWORD PTR -128[rbp]
	mov	DWORD PTR -124[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 80
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -120[rbp], eax
	jmp	.L37
.L39:
	sub	DWORD PTR -128[rbp], 1
.L35:
	cmp	DWORD PTR -128[rbp], 0
	jns	.L40
.L37:
	cmp	DWORD PTR -120[rbp], 0
	je	.L41
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	DWORD PTR -120[rbp], eax
	je	.L42
	mov	BYTE PTR -137[rbp], 0
	jmp	.L43
.L42:
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	movzx	eax, BYTE PTR [rax]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -124[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rbp
	add	rdx, rcx
	sub	rdx, 80
	mov	BYTE PTR [rdx], al
	movzx	eax, BYTE PTR -16[rbp]
	sub	eax, 1
	mov	BYTE PTR -16[rbp], al
	jmp	.L34
.L41:
	mov	eax, DWORD PTR -124[rbp]
	cmp	eax, DWORD PTR -136[rbp]
	je	.L34
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	movzx	eax, BYTE PTR [rax]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -124[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rbp
	add	rdx, rcx
	sub	rdx, 32
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	mov	BYTE PTR [rax], 0
.L34:
	add	DWORD PTR -136[rbp], 1
.L33:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -136[rbp], eax
	jl	.L44
.L43:
	add	DWORD PTR -132[rbp], 1
.L32:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -132[rbp], eax
	jge	.L45
	cmp	BYTE PTR -137[rbp], 0
	jne	.L46
.L45:
	cmp	BYTE PTR -137[rbp], 0
	je	.L47
	lea	rdx, -32[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	cmp_state
	test	eax, eax
	je	.L47
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	fh
	mov	DWORD PTR -116[rbp], eax
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, hash[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	BYTE PTR -137[rbp], 1
	jmp	.L48
.L53:
	mov	rax, QWORD PTR -112[rbp]
	lea	rdx, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	cmp_state
	test	eax, eax
	jne	.L49
	movzx	eax, BYTE PTR -138[rbp]
	movsx	edx, al
	mov	rax, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR 20[rax]
	cmp	edx, eax
	jle	.L50
	mov	BYTE PTR -137[rbp], 0
	jmp	.L52
.L50:
	movzx	eax, BYTE PTR -138[rbp]
	movsx	edx, al
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR 20[rax], edx
	jmp	.L52
.L49:
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -112[rbp], rax
.L48:
	cmp	QWORD PTR -112[rbp], 0
	jne	.L53
.L52:
	cmp	BYTE PTR -137[rbp], 0
	je	.L47
	cmp	QWORD PTR -112[rbp], 0
	jne	.L54
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	rcx, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	movzx	eax, BYTE PTR -16[rbp]
	mov	BYTE PTR 16[rcx], al
	movzx	eax, BYTE PTR -138[rbp]
	movsx	edx, al
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR 20[rax], edx
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR 24[rax], 0
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, hash[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L55
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, hash[rip]
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	jmp	.L54
.L55:
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -112[rbp]
	mov	QWORD PTR 24[rax], rdx
.L54:
	movzx	eax, BYTE PTR -138[rbp]
	add	eax, 1
	movsx	ecx, al
	lea	rdx, -80[rbp]
	lea	rsi, -32[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	enqueue
.L47:
	mov	BYTE PTR -137[rbp], 1
	movzx	eax, BYTE PTR -48[rbp]
	mov	BYTE PTR -16[rbp], al
	mov	DWORD PTR -132[rbp], 0
	jmp	.L56
.L70:
	mov	eax, DWORD PTR N[rip]
	sub	eax, 1
	mov	DWORD PTR -136[rbp], eax
	jmp	.L57
.L68:
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 64
	movzx	eax, BYTE PTR [rax]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -136[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rbp
	add	rdx, rcx
	sub	rdx, 32
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 96
	movzx	eax, BYTE PTR [rax]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -136[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rbp
	add	rdx, rcx
	sub	rdx, 80
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L58
	mov	eax, DWORD PTR N[rip]
	sub	eax, 1
	mov	DWORD PTR -124[rbp], eax
	mov	DWORD PTR -120[rbp], 0
	mov	eax, DWORD PTR -136[rbp]
	add	eax, 1
	mov	DWORD PTR -128[rbp], eax
	jmp	.L59
.L64:
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L60
	mov	eax, DWORD PTR -128[rbp]
	sub	eax, 1
	mov	DWORD PTR -124[rbp], eax
	jmp	.L61
.L60:
	mov	eax, DWORD PTR -128[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -132[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -132[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	sal	rax, 2
	add	rax, rsi
	movsx	rdx, edx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, [rax+rcx]
	lea	rax, wall[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L62
	mov	eax, DWORD PTR -128[rbp]
	sub	eax, 1
	mov	DWORD PTR -124[rbp], eax
	jmp	.L61
.L62:
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 80
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L63
	mov	eax, DWORD PTR -128[rbp]
	mov	DWORD PTR -124[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 80
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -120[rbp], eax
	jmp	.L61
.L63:
	add	DWORD PTR -128[rbp], 1
.L59:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -128[rbp], eax
	jl	.L64
.L61:
	cmp	DWORD PTR -120[rbp], 0
	je	.L65
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	DWORD PTR -120[rbp], eax
	je	.L66
	mov	BYTE PTR -137[rbp], 0
	jmp	.L67
.L66:
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	movzx	eax, BYTE PTR [rax]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -124[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rbp
	add	rdx, rcx
	sub	rdx, 80
	mov	BYTE PTR [rdx], al
	movzx	eax, BYTE PTR -16[rbp]
	sub	eax, 1
	mov	BYTE PTR -16[rbp], al
	jmp	.L58
.L65:
	mov	eax, DWORD PTR -124[rbp]
	cmp	eax, DWORD PTR -136[rbp]
	je	.L58
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	movzx	eax, BYTE PTR [rax]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -124[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rbp
	add	rdx, rcx
	sub	rdx, 32
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	mov	BYTE PTR [rax], 0
.L58:
	sub	DWORD PTR -136[rbp], 1
.L57:
	cmp	DWORD PTR -136[rbp], 0
	jns	.L68
.L67:
	add	DWORD PTR -132[rbp], 1
.L56:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -132[rbp], eax
	jge	.L69
	cmp	BYTE PTR -137[rbp], 0
	jne	.L70
.L69:
	cmp	BYTE PTR -137[rbp], 0
	je	.L71
	lea	rdx, -32[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	cmp_state
	test	eax, eax
	je	.L71
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	fh
	mov	DWORD PTR -116[rbp], eax
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, hash[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	BYTE PTR -137[rbp], 1
	jmp	.L72
.L77:
	mov	rax, QWORD PTR -112[rbp]
	lea	rdx, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	cmp_state
	test	eax, eax
	jne	.L73
	movzx	eax, BYTE PTR -138[rbp]
	movsx	edx, al
	mov	rax, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR 20[rax]
	cmp	edx, eax
	jle	.L74
	mov	BYTE PTR -137[rbp], 0
	jmp	.L76
.L74:
	movzx	eax, BYTE PTR -138[rbp]
	movsx	edx, al
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR 20[rax], edx
	jmp	.L76
.L73:
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -112[rbp], rax
.L72:
	cmp	QWORD PTR -112[rbp], 0
	jne	.L77
.L76:
	cmp	BYTE PTR -137[rbp], 0
	je	.L71
	cmp	QWORD PTR -112[rbp], 0
	jne	.L78
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	rcx, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	movzx	eax, BYTE PTR -16[rbp]
	mov	BYTE PTR 16[rcx], al
	movzx	eax, BYTE PTR -138[rbp]
	movsx	edx, al
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR 20[rax], edx
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR 24[rax], 0
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, hash[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L79
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, hash[rip]
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	jmp	.L78
.L79:
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -112[rbp]
	mov	QWORD PTR 24[rax], rdx
.L78:
	movzx	eax, BYTE PTR -138[rbp]
	add	eax, 1
	movsx	ecx, al
	lea	rdx, -80[rbp]
	lea	rsi, -32[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	enqueue
.L71:
	mov	BYTE PTR -137[rbp], 1
	movzx	eax, BYTE PTR -48[rbp]
	mov	BYTE PTR -16[rbp], al
	mov	DWORD PTR -136[rbp], 0
	jmp	.L80
.L94:
	mov	DWORD PTR -132[rbp], 0
	jmp	.L81
.L92:
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 64
	movzx	eax, BYTE PTR [rax]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -136[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rbp
	add	rdx, rcx
	sub	rdx, 32
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 96
	movzx	eax, BYTE PTR [rax]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -136[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rbp
	add	rdx, rcx
	sub	rdx, 80
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L82
	mov	DWORD PTR -124[rbp], 0
	mov	DWORD PTR -120[rbp], 0
	mov	eax, DWORD PTR -132[rbp]
	sub	eax, 1
	mov	DWORD PTR -128[rbp], eax
	jmp	.L83
.L88:
	mov	eax, DWORD PTR -128[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L84
	mov	eax, DWORD PTR -128[rbp]
	add	eax, 1
	mov	DWORD PTR -124[rbp], eax
	jmp	.L85
.L84:
	mov	eax, DWORD PTR -128[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -128[rbp]
	movsx	rcx, eax
	movsx	rdx, edx
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rdx, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, [rax+rcx]
	lea	rax, wall[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L86
	mov	eax, DWORD PTR -128[rbp]
	add	eax, 1
	mov	DWORD PTR -124[rbp], eax
	jmp	.L85
.L86:
	mov	eax, DWORD PTR -128[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 80
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L87
	mov	eax, DWORD PTR -128[rbp]
	mov	DWORD PTR -124[rbp], eax
	mov	eax, DWORD PTR -128[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 80
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -120[rbp], eax
	jmp	.L85
.L87:
	sub	DWORD PTR -128[rbp], 1
.L83:
	cmp	DWORD PTR -128[rbp], 0
	jns	.L88
.L85:
	cmp	DWORD PTR -120[rbp], 0
	je	.L89
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	DWORD PTR -120[rbp], eax
	je	.L90
	mov	BYTE PTR -137[rbp], 0
	jmp	.L91
.L90:
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	movzx	eax, BYTE PTR [rax]
	mov	edx, DWORD PTR -124[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -136[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rbp
	add	rdx, rcx
	sub	rdx, 80
	mov	BYTE PTR [rdx], al
	movzx	eax, BYTE PTR -16[rbp]
	sub	eax, 1
	mov	BYTE PTR -16[rbp], al
	jmp	.L82
.L89:
	mov	eax, DWORD PTR -124[rbp]
	cmp	eax, DWORD PTR -132[rbp]
	je	.L82
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	movzx	eax, BYTE PTR [rax]
	mov	edx, DWORD PTR -124[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -136[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rbp
	add	rdx, rcx
	sub	rdx, 32
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	mov	BYTE PTR [rax], 0
.L82:
	add	DWORD PTR -132[rbp], 1
.L81:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -132[rbp], eax
	jl	.L92
.L91:
	add	DWORD PTR -136[rbp], 1
.L80:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -136[rbp], eax
	jge	.L93
	cmp	BYTE PTR -137[rbp], 0
	jne	.L94
.L93:
	cmp	BYTE PTR -137[rbp], 0
	je	.L95
	lea	rdx, -32[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	cmp_state
	test	eax, eax
	je	.L95
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	fh
	mov	DWORD PTR -116[rbp], eax
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, hash[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	BYTE PTR -137[rbp], 1
	jmp	.L96
.L101:
	mov	rax, QWORD PTR -112[rbp]
	lea	rdx, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	cmp_state
	test	eax, eax
	jne	.L97
	movzx	eax, BYTE PTR -138[rbp]
	movsx	edx, al
	mov	rax, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR 20[rax]
	cmp	edx, eax
	jle	.L98
	mov	BYTE PTR -137[rbp], 0
	jmp	.L100
.L98:
	movzx	eax, BYTE PTR -138[rbp]
	movsx	edx, al
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR 20[rax], edx
	jmp	.L100
.L97:
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -112[rbp], rax
.L96:
	cmp	QWORD PTR -112[rbp], 0
	jne	.L101
.L100:
	cmp	BYTE PTR -137[rbp], 0
	je	.L95
	cmp	QWORD PTR -112[rbp], 0
	jne	.L102
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	rcx, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	movzx	eax, BYTE PTR -16[rbp]
	mov	BYTE PTR 16[rcx], al
	movzx	eax, BYTE PTR -138[rbp]
	movsx	edx, al
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR 20[rax], edx
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR 24[rax], 0
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, hash[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L103
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, hash[rip]
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	jmp	.L102
.L103:
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -112[rbp]
	mov	QWORD PTR 24[rax], rdx
.L102:
	movzx	eax, BYTE PTR -138[rbp]
	add	eax, 1
	movsx	ecx, al
	lea	rdx, -80[rbp]
	lea	rsi, -32[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	enqueue
.L95:
	mov	BYTE PTR -137[rbp], 1
	movzx	eax, BYTE PTR -48[rbp]
	mov	BYTE PTR -16[rbp], al
	mov	DWORD PTR -136[rbp], 0
	jmp	.L104
.L118:
	mov	eax, DWORD PTR N[rip]
	sub	eax, 1
	mov	DWORD PTR -132[rbp], eax
	jmp	.L105
.L116:
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 64
	movzx	eax, BYTE PTR [rax]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -136[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rbp
	add	rdx, rcx
	sub	rdx, 32
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 96
	movzx	eax, BYTE PTR [rax]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -136[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rbp
	add	rdx, rcx
	sub	rdx, 80
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L106
	mov	eax, DWORD PTR N[rip]
	sub	eax, 1
	mov	DWORD PTR -124[rbp], eax
	mov	DWORD PTR -120[rbp], 0
	mov	eax, DWORD PTR -132[rbp]
	add	eax, 1
	mov	DWORD PTR -128[rbp], eax
	jmp	.L107
.L112:
	mov	eax, DWORD PTR -128[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L108
	mov	eax, DWORD PTR -128[rbp]
	sub	eax, 1
	mov	DWORD PTR -124[rbp], eax
	jmp	.L109
.L108:
	mov	eax, DWORD PTR -128[rbp]
	sub	eax, 1
	movsx	rcx, eax
	mov	eax, DWORD PTR -128[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rdx, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, [rax+rcx]
	lea	rax, wall[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L110
	mov	eax, DWORD PTR -128[rbp]
	sub	eax, 1
	mov	DWORD PTR -124[rbp], eax
	jmp	.L109
.L110:
	mov	eax, DWORD PTR -128[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 80
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L111
	mov	eax, DWORD PTR -128[rbp]
	mov	DWORD PTR -124[rbp], eax
	mov	eax, DWORD PTR -128[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 80
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -120[rbp], eax
	jmp	.L109
.L111:
	add	DWORD PTR -128[rbp], 1
.L107:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -128[rbp], eax
	jl	.L112
.L109:
	cmp	DWORD PTR -120[rbp], 0
	je	.L113
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	DWORD PTR -120[rbp], eax
	je	.L114
	mov	BYTE PTR -137[rbp], 0
	jmp	.L115
.L114:
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	movzx	eax, BYTE PTR [rax]
	mov	edx, DWORD PTR -124[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -136[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rbp
	add	rdx, rcx
	sub	rdx, 80
	mov	BYTE PTR [rdx], al
	movzx	eax, BYTE PTR -16[rbp]
	sub	eax, 1
	mov	BYTE PTR -16[rbp], al
	jmp	.L106
.L113:
	mov	eax, DWORD PTR -124[rbp]
	cmp	eax, DWORD PTR -132[rbp]
	je	.L106
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	movzx	eax, BYTE PTR [rax]
	mov	edx, DWORD PTR -124[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -136[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rbp
	add	rdx, rcx
	sub	rdx, 32
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rbp
	add	rax, rdx
	sub	rax, 32
	mov	BYTE PTR [rax], 0
.L106:
	sub	DWORD PTR -132[rbp], 1
.L105:
	cmp	DWORD PTR -132[rbp], 0
	jns	.L116
.L115:
	add	DWORD PTR -136[rbp], 1
.L104:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -136[rbp], eax
	jge	.L117
	cmp	BYTE PTR -137[rbp], 0
	jne	.L118
.L117:
	cmp	BYTE PTR -137[rbp], 0
	je	.L29
	lea	rdx, -32[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	cmp_state
	test	eax, eax
	je	.L29
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	fh
	mov	DWORD PTR -116[rbp], eax
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, hash[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	BYTE PTR -137[rbp], 1
	jmp	.L119
.L124:
	mov	rax, QWORD PTR -112[rbp]
	lea	rdx, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	cmp_state
	test	eax, eax
	jne	.L120
	movzx	eax, BYTE PTR -138[rbp]
	movsx	edx, al
	mov	rax, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR 20[rax]
	cmp	edx, eax
	jle	.L121
	mov	BYTE PTR -137[rbp], 0
	jmp	.L123
.L121:
	movzx	eax, BYTE PTR -138[rbp]
	movsx	edx, al
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR 20[rax], edx
	jmp	.L123
.L120:
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -112[rbp], rax
.L119:
	cmp	QWORD PTR -112[rbp], 0
	jne	.L124
.L123:
	cmp	BYTE PTR -137[rbp], 0
	je	.L29
	cmp	QWORD PTR -112[rbp], 0
	jne	.L125
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	rcx, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	movzx	eax, BYTE PTR -16[rbp]
	mov	BYTE PTR 16[rcx], al
	movzx	eax, BYTE PTR -138[rbp]
	movsx	edx, al
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR 20[rax], edx
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR 24[rax], 0
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, hash[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L126
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, hash[rip]
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	jmp	.L125
.L126:
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -112[rbp]
	mov	QWORD PTR 24[rax], rdx
.L125:
	movzx	eax, BYTE PTR -138[rbp]
	add	eax, 1
	movsx	ecx, al
	lea	rdx, -80[rbp]
	lea	rsi, -32[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	enqueue
.L29:
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	empty
	test	al, al
	je	.L127
	mov	eax, 1000000
.L128:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L129
	call	__stack_chk_fail@PLT
.L129:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	BFS, .-BFS
	.globl	get_int
	.type	get_int, @function
get_int:
.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
	nop
.L131:
	call	getchar@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 32
	je	.L131
	cmp	DWORD PTR -8[rbp], 10
	je	.L131
	cmp	DWORD PTR -8[rbp], -1
	jne	.L132
	mov	eax, -1
	jmp	.L133
.L132:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L134
.L136:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 48
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	call	getchar@PLT
	mov	DWORD PTR -8[rbp], eax
.L134:
	cmp	DWORD PTR -8[rbp], 47
	jle	.L135
	cmp	DWORD PTR -8[rbp], 57
	jle	.L136
.L135:
	mov	eax, DWORD PTR -4[rbp]
.L133:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	get_int, .-get_int
	.section	.rodata
.LC0:
	.string	"Case %d: "
.LC1:
	.string	"%d moves\n\n"
.LC2:
	.string	"impossible\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], 1
.L164:
	mov	eax, 0
	call	get_int
	mov	DWORD PTR N[rip], eax
	mov	eax, 0
	call	get_int
	mov	DWORD PTR M[rip], eax
	mov	eax, 0
	call	get_int
	mov	DWORD PTR W[rip], eax
	mov	eax, DWORD PTR N[rip]
	test	eax, eax
	jne	.L138
	mov	eax, DWORD PTR M[rip]
	test	eax, eax
	jne	.L138
	mov	eax, DWORD PTR W[rip]
	test	eax, eax
	je	.L167
.L138:
	mov	BYTE PTR impossible[rip], 0
	mov	DWORD PTR move[rip], 1000000
	mov	DWORD PTR -16[rbp], 0
	jmp	.L140
.L147:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L141
.L146:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	lea	rax, st[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	lea	rax, hole[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	DWORD PTR -28[rbp], 0
	jmp	.L142
.L145:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L143
.L144:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rdx, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, [rax+rcx]
	lea	rax, wall[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	add	DWORD PTR -24[rbp], 1
.L143:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -24[rbp], eax
	jl	.L144
	add	DWORD PTR -28[rbp], 1
.L142:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L145
	add	DWORD PTR -12[rbp], 1
.L141:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L146
	add	DWORD PTR -16[rbp], 1
.L140:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L147
	mov	eax, DWORD PTR M[rip]
	mov	BYTE PTR st[rip+16], al
	mov	DWORD PTR -16[rbp], 1
	jmp	.L148
.L149:
	mov	eax, 0
	call	get_int
	mov	DWORD PTR -28[rbp], eax
	mov	eax, 0
	call	get_int
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rcx, rax
	lea	rax, st[rip]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -16[rbp], 1
.L148:
	mov	eax, DWORD PTR M[rip]
	cmp	DWORD PTR -16[rbp], eax
	jle	.L149
	mov	DWORD PTR -16[rbp], 1
	jmp	.L150
.L154:
	mov	eax, 0
	call	get_int
	mov	DWORD PTR -28[rbp], eax
	mov	eax, 0
	call	get_int
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	lea	rax, st[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L151
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	lea	rax, st[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	DWORD PTR -16[rbp], eax
	je	.L152
	mov	BYTE PTR impossible[rip], 1
	jmp	.L153
.L152:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	lea	rax, st[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	movzx	eax, BYTE PTR st[rip+16]
	sub	eax, 1
	mov	BYTE PTR st[rip+16], al
	jmp	.L153
.L151:
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rcx, rax
	lea	rax, hole[rip]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
.L153:
	add	DWORD PTR -16[rbp], 1
.L150:
	mov	eax, DWORD PTR M[rip]
	cmp	DWORD PTR -16[rbp], eax
	jle	.L154
	movzx	eax, BYTE PTR st[rip+16]
	test	al, al
	jne	.L155
	mov	DWORD PTR move[rip], 0
.L155:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L156
.L157:
	mov	eax, 0
	call	get_int
	mov	DWORD PTR -28[rbp], eax
	mov	eax, 0
	call	get_int
	mov	DWORD PTR -24[rbp], eax
	mov	eax, 0
	call	get_int
	mov	DWORD PTR -8[rbp], eax
	mov	eax, 0
	call	get_int
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rdx, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, [rax+rcx]
	lea	rax, wall[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 1
	mov	eax, DWORD PTR -24[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rdx, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, [rax+rcx]
	lea	rax, wall[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 1
	add	DWORD PTR -16[rbp], 1
.L156:
	mov	eax, DWORD PTR W[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L157
	movzx	eax, BYTE PTR st[rip+16]
	cmp	al, 8
	jle	.L158
	mov	BYTE PTR impossible[rip], 1
.L158:
	movzx	eax, BYTE PTR impossible[rip]
	test	al, al
	jne	.L159
	mov	eax, DWORD PTR move[rip]
	cmp	eax, 1000000
	jne	.L159
	mov	DWORD PTR -16[rbp], 0
	jmp	.L160
.L161:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, hash[rip]
	mov	QWORD PTR [rdx+rax], 0
	add	DWORD PTR -16[rbp], 1
.L160:
	cmp	DWORD PTR -16[rbp], 5010
	jle	.L161
	lea	rdi, st[rip]
	call	fh
	mov	DWORD PTR -28[rbp], eax
	mov	edi, 32
	call	malloc@PLT
	mov	rcx, rax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, hash[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, hash[rip]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR st[rip]
	mov	rdx, QWORD PTR st[rip+8]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	movzx	eax, BYTE PTR st[rip+16]
	mov	BYTE PTR 16[rcx], al
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, hash[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	DWORD PTR 20[rax], 0
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, hash[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR 24[rax], 0
	mov	DWORD PTR q[rip+170376], 0
	mov	DWORD PTR q[rip+170380], 5010
	mov	DWORD PTR q[rip+170384], 0
	mov	ecx, 0
	lea	rdx, hole[rip]
	lea	rsi, st[rip]
	lea	rdi, q[rip]
	call	enqueue
	lea	rdi, q[rip]
	call	BFS
	mov	DWORD PTR move[rip], eax
.L159:
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR move[rip]
	cmp	eax, 1000000
	je	.L162
	mov	eax, DWORD PTR move[rip]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L163
.L162:
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L163:
	add	DWORD PTR -20[rbp], 1
	jmp	.L164
.L167:
	nop
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	main, .-main
	.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	"770519.c"
	.text
	.comm	hole,16,4
	.comm	wall,256,4
	.comm	impossible,1,1
	.comm	move,4,4
	.comm	getdeep,1,1
	.comm	N,4,4
	.comm	M,4,4
	.comm	W,4,4
	.comm	st,17,4
	.comm	q,170388,4
	.comm	hash,20044,4
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	strb	r3, [fp, #-25]
	ldr	r3, [fp, #-16]
	add	r3, r3, #167936
	ldr	r3, [r3, #2444]
	add	r2, r3, #1
	ldr	r3, .L6
	smull	r1, r3, r2, r3
	asr	r1, r3, #9
	asr	r3, r2, #31
	sub	r3, r1, r3
	ldr	r1, .L6+4
	mul	r3, r1, r3
	sub	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r2, r2, #167936
	str	r3, [r2, #2444]
	ldr	r3, [fp, #-16]
	add	r3, r3, #167936
	ldr	r2, [r3, #2444]
	ldr	r1, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-20]
	mov	r0, r2
	mov	r1, r3
	mov	r3, #17
	mov	r2, r3
	bl	memcpy
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L5:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L3
.L4:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r1, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #167936
	ldr	r3, [r3, #2444]
	ldr	r2, [fp, #-8]
	add	r2, r1, r2
	ldrb	r0, [r2]	@ zero_extendqisi2
	ldr	r2, [fp, #-16]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	add	r3, r3, #84992
	add	r3, r3, #195
	mov	r2, r0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, .L6+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L4
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, .L6+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L5
	ldr	r3, [fp, #-16]
	add	r3, r3, #167936
	ldr	r3, [r3, #2444]
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, .L6+12
	add	r3, r2, r3
	ldrb	r2, [fp, #-25]
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #167936
	ldr	r3, [r3, #2448]
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r2, r2, #167936
	str	r3, [r2, #2448]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	438839205
	.word	5011
	.word	N
	.word	165363
	.size	enqueue, .-enqueue
	.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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-16]
	add	r3, r3, #167936
	ldr	r2, [r3, #2440]
	ldr	r0, [fp, #-20]
	ldr	r1, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	add	r3, r1, r3
	mov	r1, r3
	mov	r3, #17
	mov	r2, r3
	bl	memcpy
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L9
.L12:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L10
.L11:
	ldr	r3, [fp, #-16]
	add	r3, r3, #167936
	ldr	r3, [r3, #2440]
	ldr	r2, [fp, #-12]
	lsl	r2, r2, #2
	ldr	r1, [fp, #-24]
	add	r2, r1, r2
	ldr	r1, [fp, #-16]
	lsl	r0, r3, #2
	ldr	r3, [fp, #-12]
	add	r3, r0, r3
	lsl	r3, r3, #2
	add	r1, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	add	r3, r3, #84992
	add	r3, r3, #195
	ldrb	r1, [r3]	@ zero_extendqisi2
	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]
.L10:
	ldr	r3, .L13
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L9:
	ldr	r3, .L13
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L12
	ldr	r3, [fp, #-16]
	add	r3, r3, #167936
	ldr	r3, [r3, #2440]
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, .L13+4
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-28]
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #167936
	ldr	r3, [r3, #2440]
	add	r2, r3, #1
	ldr	r3, .L13+8
	smull	r1, r3, r2, r3
	asr	r1, r3, #9
	asr	r3, r2, #31
	sub	r3, r1, r3
	ldr	r1, .L13+12
	mul	r3, r1, r3
	sub	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r2, r2, #167936
	str	r3, [r2, #2440]
	ldr	r3, [fp, #-16]
	add	r3, r3, #167936
	ldr	r3, [r3, #2448]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r2, r2, #167936
	str	r3, [r2, #2448]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	N
	.word	165363
	.word	438839205
	.word	5011
	.size	dequeue, .-dequeue
	.align	2
	.global	empty
	.syntax unified
	.arm
	.fpu softvfp
	.type	empty, %function
empty:
	@ 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]
	add	r3, r3, #167936
	ldr	r3, [r3, #2448]
	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
	.size	empty, .-empty
	.align	2
	.global	fh
	.syntax unified
	.arm
	.fpu softvfp
	.type	fh, %function
fh:
	@ 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, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L18
.L22:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L19
.L21:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L20
	ldr	r3, .L24
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	mul	r2, r3, r2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r1, [fp, #-24]
	ldr	r2, [fp, #-16]
	lsl	r2, r2, #2
	add	r1, r1, r2
	ldr	r2, [fp, #-12]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
.L20:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L19:
	ldr	r3, .L24
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L21
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L18:
	ldr	r3, .L24
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L22
	ldr	r3, [fp, #-8]
	ldr	r2, .L24+4
	smull	r1, r2, r3, r2
	asr	r1, r2, #9
	asr	r2, r3, #31
	sub	r2, r1, r2
	ldr	r1, .L24+8
	mul	r2, r1, r2
	sub	r2, r3, r2
	mov	r3, r2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L25:
	.align	2
.L24:
	.word	N
	.word	438839205
	.word	5011
	.size	fh, .-fh
	.align	2
	.global	cmp_state
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmp_state, %function
cmp_state:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldrb	r2, [r3, #16]	@ zero_extendqisi2
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3, #16]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L27
	mov	r3, #1
	b	.L28
.L27:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L29
.L33:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L30
.L32:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r1, [fp, #-20]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r1, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L31
	mov	r3, #1
	b	.L28
.L31:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L30:
	ldr	r3, .L34
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L32
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L29:
	ldr	r3, .L34
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L33
	mov	r3, #0
.L28:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L35:
	.align	2
.L34:
	.word	N
	.size	cmp_state, .-cmp_state
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	BFS
	.syntax unified
	.arm
	.fpu softvfp
	.type	BFS, %function
BFS:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-120]
	ldr	r3, .L138+16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L37
.L135:
	sub	r3, fp, #114
	sub	r2, fp, #80
	sub	r1, fp, #48
	ldr	r0, [fp, #-120]
	bl	dequeue
	ldrb	r3, [fp, #-32]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L38
	ldrb	r3, [fp, #-114]	@ zero_extendqisi2
	b	.L136
.L38:
	mov	r3, #1
	strb	r3, [fp, #-113]
	ldrb	r3, [fp, #-32]	@ zero_extendqisi2
	strb	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L40
.L54:
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L41
.L52:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #44
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #76
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #60
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L42
	mov	r3, #0
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-112]
	sub	r3, r3, #1
	str	r3, [fp, #-104]
	b	.L43
.L48:
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L44
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-100]
	b	.L45
.L44:
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	ldr	r1, .L138
	lsl	r2, r3, #2
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	lsl	r2, r3, #2
	ldr	r3, [fp, #-104]
	add	r3, r2, r3
	lsl	r3, r3, #2
	add	r2, r1, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L46
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-100]
	b	.L45
.L46:
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #60
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L47
	ldr	r3, [fp, #-104]
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #60
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-96]
	b	.L45
.L47:
	ldr	r3, [fp, #-104]
	sub	r3, r3, #1
	str	r3, [fp, #-104]
.L43:
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bge	.L48
.L45:
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	beq	.L49
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-96]
	cmp	r3, r2
	beq	.L50
	mov	r3, #0
	strb	r3, [fp, #-113]
	b	.L51
.L50:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #60
	mov	r2, r1
	strb	r2, [r3]
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	sub	r3, r3, #1
	and	r3, r3, #255
	strb	r3, [fp, #-12]
	b	.L42
.L49:
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	beq	.L42
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	mov	r2, #0
	strb	r2, [r3]
.L42:
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L41:
	ldr	r3, .L138+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-112]
	cmp	r2, r3
	blt	.L52
.L51:
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L40:
	ldr	r3, .L138+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-108]
	cmp	r2, r3
	bge	.L53
	ldrb	r3, [fp, #-113]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L54
.L53:
	ldrb	r3, [fp, #-113]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L55
	sub	r2, fp, #28
	sub	r3, fp, #48
	mov	r1, r2
	mov	r0, r3
	bl	cmp_state
	mov	r3, r0
	cmp	r3, #0
	beq	.L55
	sub	r3, fp, #28
	mov	r0, r3
	bl	fh
	str	r0, [fp, #-84]
	ldr	r2, .L138+8
	ldr	r3, [fp, #-84]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-92]
	mov	r3, #1
	strb	r3, [fp, #-113]
	b	.L56
.L61:
	ldr	r3, [fp, #-92]
	sub	r2, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	cmp_state
	mov	r3, r0
	cmp	r3, #0
	bne	.L57
	ldrb	r3, [fp, #-114]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-92]
	ldr	r3, [r3, #20]
	cmp	r2, r3
	ble	.L58
	mov	r3, #0
	strb	r3, [fp, #-113]
	b	.L60
.L58:
	ldrb	r3, [fp, #-114]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-92]
	str	r2, [r3, #20]
	b	.L60
.L57:
	ldr	r3, [fp, #-92]
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-92]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-92]
.L56:
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bne	.L61
.L60:
	ldrb	r3, [fp, #-113]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L55
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bne	.L62
	mov	r0, #28
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-92]
	mov	lr, r3
	sub	ip, fp, #28
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldr	r3, [ip]
	strb	r3, [lr]
	ldrb	r3, [fp, #-114]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-92]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-92]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r2, .L138+8
	ldr	r3, [fp, #-84]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L63
	ldr	r1, .L138+8
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-92]
	str	r2, [r1, r3, lsl #2]
	b	.L62
.L63:
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-92]
	str	r2, [r3, #24]
.L62:
	ldrb	r3, [fp, #-114]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r3, r3, #255
	sub	r2, fp, #64
	sub	r1, fp, #28
	ldr	r0, [fp, #-120]
	bl	enqueue
.L55:
	mov	r3, #1
	strb	r3, [fp, #-113]
	ldrb	r3, [fp, #-32]	@ zero_extendqisi2
	strb	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L64
.L78:
	ldr	r3, .L138+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-112]
	b	.L65
.L76:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #44
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #76
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #60
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L66
	ldr	r3, .L138+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-104]
	b	.L67
.L72:
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L68
	ldr	r3, [fp, #-104]
	sub	r3, r3, #1
	str	r3, [fp, #-100]
	b	.L69
.L68:
	ldr	r3, [fp, #-104]
	sub	r3, r3, #1
	ldr	r0, .L138
	ldr	r2, [fp, #-104]
	lsl	r1, r2, #2
	ldr	r2, [fp, #-108]
	add	r2, r1, r2
	lsl	r2, r2, #2
	add	r3, r2, r3
	lsl	r3, r3, #2
	add	r2, r0, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L70
	ldr	r3, [fp, #-104]
	sub	r3, r3, #1
	str	r3, [fp, #-100]
	b	.L69
.L70:
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #60
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L71
	ldr	r3, [fp, #-104]
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #60
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-96]
	b	.L69
.L71:
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L67:
	ldr	r3, .L138+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	blt	.L72
.L69:
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	beq	.L73
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-96]
	cmp	r3, r2
	beq	.L74
	mov	r3, #0
	strb	r3, [fp, #-113]
	b	.L75
.L74:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #60
	mov	r2, r1
	strb	r2, [r3]
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	sub	r3, r3, #1
	and	r3, r3, #255
	strb	r3, [fp, #-12]
	b	.L66
.L73:
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	beq	.L66
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	mov	r2, #0
	strb	r2, [r3]
.L66:
	ldr	r3, [fp, #-112]
	sub	r3, r3, #1
	str	r3, [fp, #-112]
.L65:
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bge	.L76
.L75:
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L64:
	ldr	r3, .L138+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-108]
	cmp	r2, r3
	bge	.L77
	ldrb	r3, [fp, #-113]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L78
.L77:
	ldrb	r3, [fp, #-113]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L79
	sub	r2, fp, #28
	sub	r3, fp, #48
	mov	r1, r2
	mov	r0, r3
	bl	cmp_state
	mov	r3, r0
	cmp	r3, #0
	beq	.L79
	sub	r3, fp, #28
	mov	r0, r3
	bl	fh
	str	r0, [fp, #-84]
	ldr	r2, .L138+8
	ldr	r3, [fp, #-84]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-92]
	mov	r3, #1
	strb	r3, [fp, #-113]
	b	.L80
.L85:
	ldr	r3, [fp, #-92]
	sub	r2, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	cmp_state
	mov	r3, r0
	cmp	r3, #0
	bne	.L81
	ldrb	r3, [fp, #-114]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-92]
	ldr	r3, [r3, #20]
	cmp	r2, r3
	ble	.L82
	mov	r3, #0
	strb	r3, [fp, #-113]
	b	.L84
.L82:
	ldrb	r3, [fp, #-114]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-92]
	str	r2, [r3, #20]
	b	.L84
.L81:
	ldr	r3, [fp, #-92]
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-92]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-92]
.L80:
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bne	.L85
.L84:
	ldrb	r3, [fp, #-113]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L79
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bne	.L86
	mov	r0, #28
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-92]
	mov	lr, r3
	sub	ip, fp, #28
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldr	r3, [ip]
	strb	r3, [lr]
	ldrb	r3, [fp, #-114]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-92]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-92]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r2, .L138+8
	ldr	r3, [fp, #-84]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L87
	ldr	r1, .L138+8
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-92]
	str	r2, [r1, r3, lsl #2]
	b	.L86
.L87:
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-92]
	str	r2, [r3, #24]
.L86:
	ldrb	r3, [fp, #-114]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r3, r3, #255
	sub	r2, fp, #64
	sub	r1, fp, #28
	ldr	r0, [fp, #-120]
	bl	enqueue
.L79:
	mov	r3, #1
	strb	r3, [fp, #-113]
	ldrb	r3, [fp, #-32]	@ zero_extendqisi2
	strb	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L88
.L102:
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L89
.L100:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #44
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #76
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #60
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L90
	mov	r3, #0
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-108]
	sub	r3, r3, #1
	str	r3, [fp, #-104]
	b	.L91
.L96:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-104]
	add	r3, r2, r3
	sub	r3, r3, #24
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L92
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-100]
	b	.L93
.L92:
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	ldr	r1, .L138
	ldr	r2, [fp, #-112]
	lsl	r2, r2, #2
	add	r3, r2, r3
	lsl	r2, r3, #2
	ldr	r3, [fp, #-112]
	add	r3, r2, r3
	lsl	r3, r3, #2
	add	r2, r1, r3
	ldr	r3, [fp, #-104]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L94
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-100]
	b	.L93
.L94:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-104]
	add	r3, r2, r3
	sub	r3, r3, #60
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L95
	ldr	r3, [fp, #-104]
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-104]
	add	r3, r2, r3
	sub	r3, r3, #60
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-96]
	b	.L93
.L95:
	ldr	r3, [fp, #-104]
	sub	r3, r3, #1
	str	r3, [fp, #-104]
.L91:
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bge	.L96
.L93:
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	beq	.L97
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-96]
	cmp	r3, r2
	beq	.L98
	mov	r3, #0
	strb	r3, [fp, #-113]
	b	.L99
.L98:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-100]
	add	r3, r2, r3
	sub	r3, r3, #60
	mov	r2, r1
	strb	r2, [r3]
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	sub	r3, r3, #1
	and	r3, r3, #255
	strb	r3, [fp, #-12]
	b	.L90
.L97:
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-108]
	cmp	r2, r3
	beq	.L90
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-100]
	add	r3, r2, r3
	sub	r3, r3, #24
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	mov	r2, #0
	strb	r2, [r3]
.L90:
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L89:
	ldr	r3, .L138+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-108]
	cmp	r2, r3
	blt	.L100
.L99:
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L88:
	ldr	r3, .L138+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-112]
	cmp	r2, r3
	bge	.L101
	ldrb	r3, [fp, #-113]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L102
.L101:
	ldrb	r3, [fp, #-113]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L103
	sub	r2, fp, #28
	sub	r3, fp, #48
	mov	r1, r2
	mov	r0, r3
	bl	cmp_state
	mov	r3, r0
	cmp	r3, #0
	beq	.L103
	sub	r3, fp, #28
	mov	r0, r3
	bl	fh
	str	r0, [fp, #-84]
	ldr	r2, .L138+8
	ldr	r3, [fp, #-84]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-92]
	mov	r3, #1
	strb	r3, [fp, #-113]
	b	.L104
.L109:
	ldr	r3, [fp, #-92]
	sub	r2, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	cmp_state
	mov	r3, r0
	cmp	r3, #0
	bne	.L105
	ldrb	r3, [fp, #-114]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-92]
	ldr	r3, [r3, #20]
	cmp	r2, r3
	ble	.L106
	mov	r3, #0
	strb	r3, [fp, #-113]
	b	.L108
.L106:
	ldrb	r3, [fp, #-114]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-92]
	str	r2, [r3, #20]
	b	.L108
.L105:
	ldr	r3, [fp, #-92]
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-92]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-92]
.L104:
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bne	.L109
.L108:
	ldrb	r3, [fp, #-113]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L103
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bne	.L110
	mov	r0, #28
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-92]
	mov	lr, r3
	sub	ip, fp, #28
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldr	r3, [ip]
	strb	r3, [lr]
	ldrb	r3, [fp, #-114]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-92]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-92]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r2, .L138+8
	ldr	r3, [fp, #-84]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L111
	ldr	r1, .L138+8
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-92]
	str	r2, [r1, r3, lsl #2]
	b	.L110
.L111:
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-92]
	str	r2, [r3, #24]
.L110:
	ldrb	r3, [fp, #-114]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r3, r3, #255
	sub	r2, fp, #64
	sub	r1, fp, #28
	ldr	r0, [fp, #-120]
	bl	enqueue
.L103:
	mov	r3, #1
	strb	r3, [fp, #-113]
	ldrb	r3, [fp, #-32]	@ zero_extendqisi2
	strb	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L112
.L126:
	ldr	r3, .L138+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-108]
	b	.L113
.L139:
	.align	2
.L138:
	.word	wall
	.word	N
	.word	hash
	.word	1000000
	.word	.LC0
.L124:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #44
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #76
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #60
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L114
	ldr	r3, .L138+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-104]
	b	.L115
.L120:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-104]
	add	r3, r2, r3
	sub	r3, r3, #24
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L116
	ldr	r3, [fp, #-104]
	sub	r3, r3, #1
	str	r3, [fp, #-100]
	b	.L117
.L116:
	ldr	r3, [fp, #-104]
	sub	r3, r3, #1
	ldr	r0, .L138
	ldr	r2, [fp, #-112]
	lsl	r1, r2, #2
	ldr	r2, [fp, #-104]
	add	r2, r1, r2
	lsl	r1, r2, #2
	ldr	r2, [fp, #-112]
	add	r2, r1, r2
	lsl	r2, r2, #2
	add	r2, r0, r2
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L118
	ldr	r3, [fp, #-104]
	sub	r3, r3, #1
	str	r3, [fp, #-100]
	b	.L117
.L118:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-104]
	add	r3, r2, r3
	sub	r3, r3, #60
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L119
	ldr	r3, [fp, #-104]
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-104]
	add	r3, r2, r3
	sub	r3, r3, #60
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-96]
	b	.L117
.L119:
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L115:
	ldr	r3, .L138+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	blt	.L120
.L117:
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	beq	.L121
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-96]
	cmp	r3, r2
	beq	.L122
	mov	r3, #0
	strb	r3, [fp, #-113]
	b	.L123
.L122:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-100]
	add	r3, r2, r3
	sub	r3, r3, #60
	mov	r2, r1
	strb	r2, [r3]
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	sub	r3, r3, #1
	and	r3, r3, #255
	strb	r3, [fp, #-12]
	b	.L114
.L121:
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-108]
	cmp	r2, r3
	beq	.L114
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-100]
	add	r3, r2, r3
	sub	r3, r3, #24
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	sub	r3, r3, #24
	mov	r2, #0
	strb	r2, [r3]
.L114:
	ldr	r3, [fp, #-108]
	sub	r3, r3, #1
	str	r3, [fp, #-108]
.L113:
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bge	.L124
.L123:
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L112:
	ldr	r3, .L138+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-112]
	cmp	r2, r3
	bge	.L125
	ldrb	r3, [fp, #-113]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L126
.L125:
	ldrb	r3, [fp, #-113]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L37
	sub	r2, fp, #28
	sub	r3, fp, #48
	mov	r1, r2
	mov	r0, r3
	bl	cmp_state
	mov	r3, r0
	cmp	r3, #0
	beq	.L37
	sub	r3, fp, #28
	mov	r0, r3
	bl	fh
	str	r0, [fp, #-84]
	ldr	r2, .L138+8
	ldr	r3, [fp, #-84]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-92]
	mov	r3, #1
	strb	r3, [fp, #-113]
	b	.L127
.L132:
	ldr	r3, [fp, #-92]
	sub	r2, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	cmp_state
	mov	r3, r0
	cmp	r3, #0
	bne	.L128
	ldrb	r3, [fp, #-114]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-92]
	ldr	r3, [r3, #20]
	cmp	r2, r3
	ble	.L129
	mov	r3, #0
	strb	r3, [fp, #-113]
	b	.L131
.L129:
	ldrb	r3, [fp, #-114]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-92]
	str	r2, [r3, #20]
	b	.L131
.L128:
	ldr	r3, [fp, #-92]
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-92]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-92]
.L127:
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bne	.L132
.L131:
	ldrb	r3, [fp, #-113]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L37
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bne	.L133
	mov	r0, #28
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-92]
	mov	lr, r3
	sub	ip, fp, #28
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldr	r3, [ip]
	strb	r3, [lr]
	ldrb	r3, [fp, #-114]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-92]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-92]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r2, .L138+8
	ldr	r3, [fp, #-84]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L134
	ldr	r1, .L138+8
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-92]
	str	r2, [r1, r3, lsl #2]
	b	.L133
.L134:
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-92]
	str	r2, [r3, #24]
.L133:
	ldrb	r3, [fp, #-114]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r3, r3, #255
	sub	r2, fp, #64
	sub	r1, fp, #28
	ldr	r0, [fp, #-120]
	bl	enqueue
.L37:
	ldr	r0, [fp, #-120]
	bl	empty
	mov	r3, r0
	cmp	r3, #0
	beq	.L135
	ldr	r3, .L138+12
.L136:
	ldr	r2, .L138+16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L137
	bl	__stack_chk_fail
.L137:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	BFS, .-BFS
	.align	2
	.global	get_int
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_int, %function
get_int:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	nop
.L141:
	bl	getchar
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #32
	beq	.L141
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	beq	.L141
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L142
	mvn	r3, #0
	b	.L143
.L142:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L144
.L146:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-12]
	sub	r3, r3, #48
	add	r3, r2, r3
	str	r3, [fp, #-8]
	bl	getchar
	str	r0, [fp, #-12]
.L144:
	ldr	r3, [fp, #-12]
	cmp	r3, #47
	ble	.L145
	ldr	r3, [fp, #-12]
	cmp	r3, #57
	ble	.L146
.L145:
	ldr	r3, [fp, #-8]
.L143:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get_int, .-get_int
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Case %d: \000"
	.align	2
.LC2:
	.ascii	"%d moves\012\012\000"
	.align	2
.LC3:
	.ascii	"impossible\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, #1
	str	r3, [fp, #-24]
.L174:
	bl	get_int
	mov	r3, r0
	ldr	r2, .L178
	str	r3, [r2]
	bl	get_int
	mov	r3, r0
	ldr	r2, .L178+4
	str	r3, [r2]
	bl	get_int
	mov	r3, r0
	ldr	r2, .L178+8
	str	r3, [r2]
	ldr	r3, .L178
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L148
	ldr	r3, .L178+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L148
	ldr	r3, .L178+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L177
.L148:
	ldr	r3, .L178+12
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L178+16
	ldr	r2, .L178+20
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L150
.L157:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L151
.L156:
	ldr	r2, .L178+24
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r2, .L178+28
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L152
.L155:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L153
.L154:
	ldr	r1, .L178+32
	ldr	r3, [fp, #-20]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	lsl	r2, r3, #2
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	lsl	r3, r3, #2
	add	r2, r1, r3
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L153:
	ldr	r3, .L178
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L154
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L152:
	ldr	r3, .L178
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L155
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L151:
	ldr	r3, .L178
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L156
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L150:
	ldr	r3, .L178
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L157
	ldr	r3, .L178+4
	ldr	r3, [r3]
	and	r2, r3, #255
	ldr	r3, .L178+24
	strb	r2, [r3, #16]
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L158
.L159:
	bl	get_int
	str	r0, [fp, #-32]
	bl	get_int
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-20]
	and	r1, r3, #255
	ldr	r2, .L178+24
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L158:
	ldr	r3, .L178+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	ble	.L159
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L160
.L164:
	bl	get_int
	str	r0, [fp, #-32]
	bl	get_int
	str	r0, [fp, #-28]
	ldr	r2, .L178+24
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L161
	ldr	r2, .L178+24
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	beq	.L162
	ldr	r3, .L178+12
	mov	r2, #1
	strb	r2, [r3]
	b	.L163
.L162:
	ldr	r2, .L178+24
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L178+24
	ldrb	r3, [r3, #16]	@ zero_extendqisi2
	sub	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, .L178+24
	strb	r2, [r3, #16]
	b	.L163
.L161:
	ldr	r3, [fp, #-20]
	and	r1, r3, #255
	ldr	r2, .L178+28
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
.L163:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L160:
	ldr	r3, .L178+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	ble	.L164
	ldr	r3, .L178+24
	ldrb	r3, [r3, #16]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L165
	ldr	r3, .L178+16
	mov	r2, #0
	str	r2, [r3]
.L165:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L166
.L167:
	bl	get_int
	str	r0, [fp, #-32]
	bl	get_int
	str	r0, [fp, #-28]
	bl	get_int
	str	r0, [fp, #-12]
	bl	get_int
	str	r0, [fp, #-8]
	ldr	r1, .L178+32
	ldr	r3, [fp, #-32]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	lsl	r2, r3, #2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	lsl	r3, r3, #2
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3]
	ldr	r1, .L178+32
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	lsl	r2, r3, #2
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	lsl	r3, r3, #2
	add	r2, r1, r3
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L166:
	ldr	r3, .L178+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L167
	ldr	r3, .L178+24
	ldrb	r3, [r3, #16]	@ zero_extendqisi2
	cmp	r3, #8
	bls	.L168
	ldr	r3, .L178+12
	mov	r2, #1
	strb	r2, [r3]
.L168:
	ldr	r3, .L178+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L169
	ldr	r3, .L178+16
	ldr	r3, [r3]
	ldr	r2, .L178+20
	cmp	r3, r2
	bne	.L169
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L170
.L171:
	ldr	r2, .L178+36
	ldr	r3, [fp, #-20]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L170:
	ldr	r3, [fp, #-20]
	ldr	r2, .L178+40
	cmp	r3, r2
	ble	.L171
	ldr	r0, .L178+24
	bl	fh
	str	r0, [fp, #-32]
	mov	r0, #28
	bl	malloc
	mov	r3, r0
	mov	r1, r3
	ldr	r2, .L178+36
	ldr	r3, [fp, #-32]
	str	r1, [r2, r3, lsl #2]
	ldr	r2, .L178+36
	ldr	r3, [fp, #-32]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L178+24
	mov	r0, r3
	mov	r1, r2
	mov	r3, #17
	mov	r2, r3
	bl	memcpy
	ldr	r2, .L178+36
	ldr	r3, [fp, #-32]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, #0
	str	r2, [r3, #20]
	ldr	r2, .L178+36
	ldr	r3, [fp, #-32]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, .L178+44
	add	r3, r3, #167936
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #2440]
	ldr	r3, .L178+44
	add	r3, r3, #167936
	mov	r2, r3
	ldr	r3, .L178+40
	str	r3, [r2, #2444]
	ldr	r3, .L178+44
	add	r3, r3, #167936
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #2448]
	mov	r3, #0
	ldr	r2, .L178+28
	ldr	r1, .L178+24
	ldr	r0, .L178+44
	bl	enqueue
	ldr	r0, .L178+44
	bl	BFS
	mov	r3, r0
	ldr	r2, .L178+16
	str	r3, [r2]
.L169:
	ldr	r1, [fp, #-24]
	ldr	r0, .L178+48
	bl	printf
	ldr	r3, .L178+16
	ldr	r3, [r3]
	ldr	r2, .L178+20
	cmp	r3, r2
	beq	.L172
	ldr	r3, .L178+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L178+52
	bl	printf
	b	.L173
.L172:
	ldr	r0, .L178+56
	bl	puts
.L173:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L174
.L177:
	nop
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L179:
	.align	2
.L178:
	.word	N
	.word	M
	.word	W
	.word	impossible
	.word	move
	.word	1000000
	.word	st
	.word	hole
	.word	wall
	.word	hash
	.word	5010
	.word	q
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
