	.file	"995386.c"
	.intel_syntax noprefix
	.text
	.globl	move_size
	.data
	.align 4
	.type	move_size, @object
	.size	move_size, 4
move_size:
	.long	8
	.globl	xShift
	.align 16
	.type	xShift, @object
	.size	xShift, 16
xShift:
	.long	0
	.long	-1
	.long	1
	.long	0
	.globl	yShift
	.align 16
	.type	yShift, @object
	.size	yShift, 16
yShift:
	.long	-1
	.long	0
	.long	0
	.long	1
	.globl	xShift_diag
	.align 32
	.type	xShift_diag, @object
	.size	xShift_diag, 32
xShift_diag:
	.long	-1
	.long	0
	.long	1
	.long	-1
	.long	1
	.long	-1
	.long	0
	.long	1
	.globl	yShift_diag
	.align 32
	.type	yShift_diag, @object
	.size	yShift_diag, 32
yShift_diag:
	.long	-1
	.long	-1
	.long	-1
	.long	0
	.long	0
	.long	1
	.long	1
	.long	1
	.globl	p_xShift
	.section	.data.rel.local,"aw"
	.align 8
	.type	p_xShift, @object
	.size	p_xShift, 8
p_xShift:
	.quad	xShift_diag
	.globl	p_yShift
	.align 8
	.type	p_yShift, @object
	.size	p_yShift, 8
p_yShift:
	.quad	yShift_diag
	.globl	first_q
	.bss
	.align 8
	.type	first_q, @object
	.size	first_q, 8
first_q:
	.zero	8
	.globl	last_q
	.align 8
	.type	last_q, @object
	.size	last_q, 8
last_q:
	.zero	8
	.globl	silent
	.type	silent, @object
	.size	silent, 1
silent:
	.zero	1
	.globl	delay
	.align 4
	.type	delay, @object
	.size	delay, 4
delay:
	.zero	4
	.section	.rodata
.LC0:
	.string	"clear"
.LC1:
	.string	"r"
.LC2:
	.string	"-escape"
.LC3:
	.string	"-greedy"
.LC4:
	.string	"-bfs"
.LC5:
	.string	"Unknown search %s\n"
.LC6:
	.string	"-s"
.LC7:
	.string	"-l"
.LC8:
	.string	"-t"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	lea	rdi, .LC0[rip]
	call	system@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], 0
	cmp	DWORD PTR -36[rbp], 2
	jg	.L2
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	printHelp
	mov	eax, 1
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
	mov	eax, -1
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	mov	DWORD PTR -24[rbp], 0
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	mov	DWORD PTR -24[rbp], 1
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	mov	DWORD PTR -24[rbp], 2
	jmp	.L6
.L8:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	printHelp
	mov	eax, -1
	jmp	.L3
.L6:
	cmp	DWORD PTR -36[rbp], 4
	jne	.L9
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	sete	al
	mov	BYTE PTR silent[rip], al
	movzx	eax, BYTE PTR silent[rip]
	xor	eax, 1
	test	al, al
	je	.L10
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L11
	mov	DWORD PTR move_size[rip], 4
	lea	rax, xShift[rip]
	mov	QWORD PTR p_xShift[rip], rax
	lea	rax, yShift[rip]
	mov	QWORD PTR p_yShift[rip], rax
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	printHelp
	mov	eax, 1
	jmp	.L3
.L9:
	cmp	DWORD PTR -36[rbp], 5
	jne	.L12
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	sete	al
	mov	BYTE PTR -25[rbp], al
	cmp	BYTE PTR -25[rbp], 0
	je	.L13
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR delay[rip], eax
	jmp	.L10
.L13:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L15
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L16
.L15:
	mov	eax, 1
	jmp	.L17
.L16:
	mov	eax, 0
.L17:
	and	eax, 1
	mov	BYTE PTR silent[rip], al
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L18
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L19
.L18:
	mov	DWORD PTR move_size[rip], 4
	lea	rax, xShift[rip]
	mov	QWORD PTR p_xShift[rip], rax
	lea	rax, yShift[rip]
	mov	QWORD PTR p_yShift[rip], rax
	jmp	.L10
.L19:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	printHelp
	mov	eax, 1
	jmp	.L3
.L12:
	cmp	DWORD PTR -36[rbp], 6
	jne	.L20
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L21
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L21
	mov	BYTE PTR silent[rip], 1
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 40
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR delay[rip], eax
	jmp	.L10
.L21:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 40
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L23
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L23
	mov	BYTE PTR silent[rip], 1
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR delay[rip], eax
	jmp	.L10
.L23:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L24
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L24
	mov	DWORD PTR move_size[rip], 4
	lea	rax, xShift[rip]
	mov	QWORD PTR p_xShift[rip], rax
	lea	rax, yShift[rip]
	mov	QWORD PTR p_yShift[rip], rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 40
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR delay[rip], eax
	jmp	.L10
.L24:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 40
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L25
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L25
	mov	DWORD PTR move_size[rip], 4
	lea	rax, xShift[rip]
	mov	QWORD PTR p_xShift[rip], rax
	lea	rax, yShift[rip]
	mov	QWORD PTR p_yShift[rip], rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR delay[rip], eax
	jmp	.L10
.L25:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	printHelp
	mov	eax, 1
	jmp	.L3
.L20:
	cmp	DWORD PTR -36[rbp], 7
	jne	.L10
	mov	BYTE PTR silent[rip], 1
	mov	DWORD PTR move_size[rip], 4
	lea	rax, xShift[rip]
	mov	QWORD PTR p_xShift[rip], rax
	lea	rax, yShift[rip]
	mov	QWORD PTR p_yShift[rip], rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L26
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L27
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 40
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L28
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 48
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR delay[rip], eax
	jmp	.L10
.L28:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	printHelp
	mov	eax, 1
	jmp	.L3
.L27:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 48
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L29
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L30
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 40
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR delay[rip], eax
	jmp	.L10
.L30:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	printHelp
	mov	eax, 1
	jmp	.L3
.L29:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	printHelp
	mov	eax, 1
	jmp	.L3
.L26:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L31
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L32
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 40
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L33
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 48
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR delay[rip], eax
	jmp	.L10
.L33:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	printHelp
	mov	eax, 1
	jmp	.L3
.L32:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	printHelp
	mov	eax, 1
	jmp	.L3
.L31:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 40
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L34
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L35
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR delay[rip], eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 48
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L10
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	printHelp
	mov	eax, 1
	jmp	.L3
.L35:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	printHelp
	mov	eax, 1
	jmp	.L3
.L34:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 48
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L36
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L37
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L38
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 40
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR delay[rip], eax
	jmp	.L10
.L38:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	printHelp
	mov	eax, 1
	jmp	.L3
.L37:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 40
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L39
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L40
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR delay[rip], eax
	jmp	.L10
.L40:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	printHelp
	mov	eax, 1
	jmp	.L3
.L39:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	printHelp
	mov	eax, 1
	jmp	.L3
.L36:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	printHelp
	mov	eax, 1
	jmp	.L3
.L10:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	LabRead
	mov	QWORD PTR -8[rbp], rax
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	LabSolve
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -20[rbp]
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC9:
	.ascii	"Usage: %s [<file>] [<algorithm>] [<args>]\nSearches:\t\n-esc"
	.ascii	"ape Just finds a path to escape.\t\n-greedy Finds mostly a g"
	.ascii	"ood"
	.string	" path.\t\n-bfs Finds best path via breadth first search.\nOptionals:\t\n-l Linear-only. Default is diagonally.\t\n-s Silent searching without unnessecary output. Default is not silent.\t\n-t <nanoseconds> Delay in nanoseconds. Accepts integer values. Default is 0.\n"
	.text
	.globl	printHelp
	.type	printHelp, @function
printHelp:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	printHelp, .-printHelp
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.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 first_q[rip]
	test	rax, rax
	jne	.L43
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR first_q[rip], rax
	jmp	.L44
.L43:
	mov	rax, QWORD PTR last_q[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
.L44:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR last_q[rip], rax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	enqueue, .-enqueue
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR first_q[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR first_q[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR first_q[rip], rax
	mov	rax, QWORD PTR first_q[rip]
	test	rax, rax
	je	.L46
	mov	rax, QWORD PTR first_q[rip]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L47
.L46:
	mov	rax, QWORD PTR first_q[rip]
	mov	QWORD PTR last_q[rip], rax
.L47:
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	dequeue, .-dequeue
	.globl	getLabWidth
	.type	getLabWidth, @function
getLabWidth:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L50
.L53:
	cmp	BYTE PTR -5[rbp], 10
	jne	.L51
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L52
.L51:
	add	DWORD PTR -4[rbp], 1
.L50:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -5[rbp], al
	cmp	BYTE PTR -5[rbp], -1
	jne	.L53
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	eax, 1
.L52:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	getLabWidth, .-getLabWidth
	.globl	getLabHeight
	.type	getLabHeight, @function
getLabHeight:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 1
	jmp	.L55
.L56:
	cmp	BYTE PTR -5[rbp], 10
	jne	.L55
	add	DWORD PTR -4[rbp], 1
.L55:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -5[rbp], al
	cmp	BYTE PTR -5[rbp], -1
	jne	.L56
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	getLabHeight, .-getLabHeight
	.section	.rodata
.LC10:
	.string	"\033[1;1H"
	.text
	.globl	rewindOutputField
	.type	rewindOutputField, @function
rewindOutputField:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	rewindOutputField, .-rewindOutputField
	.section	.rodata
.LC11:
	.string	"Solving..."
	.text
	.globl	printOutputField
	.type	printOutputField, @function
printOutputField:
.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	QWORD PTR -24[rbp], rdi
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L60
.L61:
	mov	edi, 32
	call	putchar@PLT
	add	DWORD PTR -12[rbp], 1
.L60:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L61
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L62
.L65:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L63
.L64:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	imul	eax, DWORD PTR -8[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, ecx
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -4[rbp], 1
.L63:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L64
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 1
.L62:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L65
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	printOutputField, .-printOutputField
	.section	.rodata
	.align 8
.LC12:
	.string	"Error: Unable to find start field 'S'.\n"
	.text
	.globl	getStartField
	.type	getStartField, @function
getStartField:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	edi, 12
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L67
.L72:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L68
.L71:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	imul	eax, DWORD PTR -16[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, ecx
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 83
	jne	.L69
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L73
.L69:
	add	DWORD PTR -12[rbp], 1
.L68:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L71
	add	DWORD PTR -16[rbp], 1
.L67:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L72
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L73:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	getStartField, .-getStartField
	.globl	LabRead
	.type	LabRead, @function
LabRead:
.LFB15:
	.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 -40[rbp], rdi
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	getLabWidth
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rdx], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	getLabHeight
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR 12[rdx], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 12[rax]
	cdqe
	imul	rax, rdx
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L75
.L77:
	cmp	BYTE PTR -17[rbp], 10
	jne	.L76
	mov	DWORD PTR -16[rbp], 0
	add	DWORD PTR -12[rbp], 1
	jmp	.L75
.L76:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	imul	eax, DWORD PTR -12[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -16[rbp]
	add	eax, ecx
	cdqe
	add	rdx, rax
	movzx	eax, BYTE PTR -17[rbp]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -16[rbp], 1
.L75:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -17[rbp], al
	cmp	BYTE PTR -17[rbp], -1
	jne	.L77
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	LabRead, .-LabRead
	.globl	exists
	.type	exists, @function
exists:
.LFB16:
	.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	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	cmp	DWORD PTR -12[rbp], 0
	jle	.L80
	cmp	DWORD PTR -16[rbp], 0
	jle	.L80
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -12[rbp], eax
	jge	.L80
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	DWORD PTR -16[rbp], eax
	jge	.L80
	mov	eax, 1
	jmp	.L81
.L80:
	mov	eax, 0
.L81:
	and	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	exists, .-exists
	.globl	isFree
	.type	isFree, @function
isFree:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	edx, DWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	getField
	cmp	al, 32
	sete	al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	isFree, .-isFree
	.globl	isGoal
	.type	isGoal, @function
isGoal:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	edx, DWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	getField
	cmp	al, 88
	sete	al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	isGoal, .-isGoal
	.globl	setVisited
	.type	setVisited, @function
setVisited:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	edx, DWORD PTR -16[rbp]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, 46
	mov	rdi, rax
	call	setField
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	setVisited, .-setVisited
	.globl	setUnvisited
	.type	setUnvisited, @function
setUnvisited:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	edx, DWORD PTR -16[rbp]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, 32
	mov	rdi, rax
	call	setField
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	setUnvisited, .-setUnvisited
	.globl	setField
	.type	setField, @function
setField:
.LFB21:
	.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	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	eax, ecx
	mov	BYTE PTR -20[rbp], al
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	imul	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rcx
	add	rdx, rax
	movzx	eax, BYTE PTR -20[rbp]
	mov	BYTE PTR [rdx], al
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	setField, .-setField
	.globl	getField
	.type	getField, @function
getField:
.LFB22:
	.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	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	imul	eax, DWORD PTR -16[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, ecx
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	getField, .-getField
	.globl	setEvaluated
	.type	setEvaluated, @function
setEvaluated:
.LFB23:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	DWORD PTR -20[rbp], ecx
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 48
	movsx	ecx, al
	mov	edx, DWORD PTR -16[rbp]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	setField
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	setEvaluated, .-setEvaluated
	.globl	dummyMove
	.type	dummyMove, @function
dummyMove:
.LFB24:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	edi, 12
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], -2
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 4[rax], -2
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rax], 1000000000
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	dummyMove, .-dummyMove
	.globl	cloneMove
	.type	cloneMove, @function
cloneMove:
.LFB25:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	edi, 12
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	cloneMove, .-cloneMove
	.globl	greedy
	.type	greedy, @function
greedy:
.LFB26:
	.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 -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	DWORD PTR -20[rbp], 1000000000
	mov	edx, DWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	setVisited
	mov	eax, DWORD PTR delay[rip]
	mov	edi, eax
	call	usleep@PLT
	movzx	eax, BYTE PTR silent[rip]
	xor	eax, 1
	test	al, al
	je	.L98
	mov	eax, 0
	call	rewindOutputField
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	printOutputField
.L98:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L99
.L103:
	mov	rdx, QWORD PTR p_xShift[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	add	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	rdx, QWORD PTR p_yShift[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -48[rbp]
	add	eax, edx
	mov	DWORD PTR -8[rbp], eax
	mov	edx, DWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	exists
	test	al, al
	je	.L100
	mov	edx, DWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	isGoal
	test	al, al
	je	.L101
	mov	eax, 1
	jmp	.L102
.L101:
	mov	edx, DWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	isFree
	test	al, al
	je	.L100
	mov	edx, DWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	greedy
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jge	.L100
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -20[rbp], eax
.L100:
	add	DWORD PTR -16[rbp], 1
.L99:
	mov	eax, DWORD PTR move_size[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L103
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
.L102:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	greedy, .-greedy
	.globl	escape
	.type	escape, @function
escape:
.LFB27:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -12[rbp], 0
	jmp	.L105
.L110:
	mov	rdx, QWORD PTR p_xShift[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	mov	DWORD PTR -8[rbp], eax
	mov	rdx, QWORD PTR p_yShift[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	exists
	test	al, al
	je	.L106
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	isGoal
	test	al, al
	je	.L107
	mov	eax, 1
	jmp	.L108
.L107:
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	isFree
	test	al, al
	je	.L106
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	setVisited
	mov	eax, DWORD PTR delay[rip]
	mov	edi, eax
	call	usleep@PLT
	movzx	eax, BYTE PTR silent[rip]
	xor	eax, 1
	test	al, al
	je	.L109
	mov	eax, 0
	call	rewindOutputField
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	printOutputField
.L109:
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	escape
	test	eax, eax
	je	.L106
	mov	eax, 1
	jmp	.L108
.L106:
	add	DWORD PTR -12[rbp], 1
.L105:
	mov	eax, DWORD PTR move_size[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L110
	mov	eax, 0
.L108:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE27:
	.size	escape, .-escape
	.globl	bfs
	.type	bfs, @function
bfs:
.LFB28:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	enqueue
.L118:
	mov	eax, 0
	call	dequeue
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR delay[rip]
	mov	edi, eax
	call	usleep@PLT
	movzx	eax, BYTE PTR silent[rip]
	xor	eax, 1
	test	al, al
	je	.L112
	mov	eax, 0
	call	rewindOutputField
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	printOutputField
.L112:
	mov	DWORD PTR -52[rbp], 0
	jmp	.L113
.L117:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rcx, QWORD PTR p_xShift[rip]
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	add	eax, edx
	mov	DWORD PTR -48[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rcx, QWORD PTR p_yShift[rip]
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	add	eax, edx
	mov	DWORD PTR -44[rbp], eax
	mov	edx, DWORD PTR -44[rbp]
	mov	ecx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	exists
	test	al, al
	je	.L114
	mov	edx, DWORD PTR -44[rbp]
	mov	ecx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	isFree
	test	al, al
	je	.L115
	mov	edi, 12
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	setVisited
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	enqueue
	jmp	.L114
.L115:
	mov	edx, DWORD PTR -44[rbp]
	mov	ecx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	isGoal
	test	al, al
	je	.L114
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 8[rax]
	add	eax, 1
	jmp	.L116
.L114:
	add	DWORD PTR -52[rbp], 1
.L113:
	mov	eax, DWORD PTR move_size[rip]
	cmp	DWORD PTR -52[rbp], eax
	jl	.L117
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR first_q[rip]
	test	rax, rax
	jne	.L118
	mov	eax, 0
.L116:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE28:
	.size	bfs, .-bfs
	.section	.rodata
	.align 8
.LC13:
	.string	"Press enter to start solving..."
.LC14:
	.string	"Solved."
.LC15:
	.string	"Impossible."
	.align 8
.LC16:
	.string	"Solved. Good way is %d steps.\n"
	.align 8
.LC17:
	.string	"Solved. Best way is %d steps.\n"
	.text
	.globl	LabSolve
	.type	LabSolve, @function
LabSolve:
.LFB29:
	.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 -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	getStartField
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	movzx	eax, BYTE PTR silent[rip]
	xor	eax, 1
	test	al, al
	je	.L120
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	DWORD PTR -16[rbp], 0
	jmp	.L121
.L124:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L122
.L123:
	mov	edx, DWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	getField
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -12[rbp], 1
.L122:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L123
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -16[rbp], 1
.L121:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L124
	nop
.L125:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L125
	mov	edi, 10
	call	putchar@PLT
.L120:
	cmp	DWORD PTR -44[rbp], 2
	je	.L126
	cmp	DWORD PTR -44[rbp], 2
	jg	.L127
	cmp	DWORD PTR -44[rbp], 0
	je	.L128
	cmp	DWORD PTR -44[rbp], 1
	je	.L129
	jmp	.L127
.L128:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	escape
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L130
	lea	rdi, .LC14[rip]
	call	puts@PLT
	jmp	.L127
.L130:
	lea	rdi, .LC15[rip]
	call	puts@PLT
	jmp	.L127
.L129:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	greedy
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 999999999
	jg	.L132
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L127
.L132:
	lea	rdi, .LC15[rip]
	call	puts@PLT
	jmp	.L127
.L126:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	bfs
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L134
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L137
.L134:
	lea	rdi, .LC15[rip]
	call	puts@PLT
.L137:
	nop
.L127:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -20[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE29:
	.size	LabSolve, .-LabSolve
	.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	"995386.c"
	.text
	.global	move_size
	.data
	.align	2
	.type	move_size, %object
	.size	move_size, 4
move_size:
	.word	8
	.global	xShift
	.align	2
	.type	xShift, %object
	.size	xShift, 16
xShift:
	.word	0
	.word	-1
	.word	1
	.word	0
	.global	yShift
	.align	2
	.type	yShift, %object
	.size	yShift, 16
yShift:
	.word	-1
	.word	0
	.word	0
	.word	1
	.global	xShift_diag
	.align	2
	.type	xShift_diag, %object
	.size	xShift_diag, 32
xShift_diag:
	.word	-1
	.word	0
	.word	1
	.word	-1
	.word	1
	.word	-1
	.word	0
	.word	1
	.global	yShift_diag
	.align	2
	.type	yShift_diag, %object
	.size	yShift_diag, 32
yShift_diag:
	.word	-1
	.word	-1
	.word	-1
	.word	0
	.word	0
	.word	1
	.word	1
	.word	1
	.global	p_xShift
	.align	2
	.type	p_xShift, %object
	.size	p_xShift, 4
p_xShift:
	.word	xShift_diag
	.global	p_yShift
	.align	2
	.type	p_yShift, %object
	.size	p_yShift, 4
p_yShift:
	.word	yShift_diag
	.global	first_q
	.bss
	.align	2
	.type	first_q, %object
	.size	first_q, 4
first_q:
	.space	4
	.global	last_q
	.align	2
	.type	last_q, %object
	.size	last_q, 4
last_q:
	.space	4
	.global	silent
	.type	silent, %object
	.size	silent, 1
silent:
	.space	1
	.global	delay
	.align	2
	.type	delay, %object
	.size	delay, 4
delay:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"clear\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"-escape\000"
	.align	2
.LC3:
	.ascii	"-greedy\000"
	.align	2
.LC4:
	.ascii	"-bfs\000"
	.align	2
.LC5:
	.ascii	"Unknown search %s\012\000"
	.align	2
.LC6:
	.ascii	"-s\000"
	.align	2
.LC7:
	.ascii	"-l\000"
	.align	2
.LC8:
	.ascii	"-t\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
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r0, .L41
	bl	system
	ldr	r3, .L41+4
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	bgt	.L2
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r0, r3
	bl	printHelp
	mov	r3, #1
	b	.L3
.L2:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L41+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	mvn	r3, #0
	b	.L3
.L4:
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L41+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L6
.L5:
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L41+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L6
.L7:
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L41+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	mov	r3, #2
	str	r3, [fp, #-20]
	b	.L6
.L8:
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L41+24
	bl	printf
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r0, r3
	bl	printHelp
	mvn	r3, #0
	b	.L3
.L6:
	ldr	r3, [fp, #-32]
	cmp	r3, #4
	bne	.L9
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L41+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r2, r3, #255
	ldr	r3, .L41+32
	strb	r2, [r3]
	ldr	r3, .L41+32
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L41+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L41+40
	mov	r2, #4
	str	r2, [r3]
	ldr	r3, .L41+44
	ldr	r2, .L41+48
	str	r2, [r3]
	ldr	r3, .L41+52
	ldr	r2, .L41+56
	str	r2, [r3]
	b	.L10
.L11:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r0, r3
	bl	printHelp
	mov	r3, #1
	b	.L3
.L9:
	ldr	r3, [fp, #-32]
	cmp	r3, #5
	bne	.L12
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L41+60
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	strb	r3, [fp, #-21]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-36]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L41+64
	str	r3, [r2]
	b	.L10
.L13:
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L41+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-36]
	add	r3, r3, #16
	ldr	r3, [r3]
	ldr	r1, .L41+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
.L15:
	mov	r3, #1
	b	.L17
.L16:
	mov	r3, #0
.L17:
	and	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, .L41+32
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L41+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-36]
	add	r3, r3, #16
	ldr	r3, [r3]
	ldr	r1, .L41+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
.L18:
	ldr	r3, .L41+40
	mov	r2, #4
	str	r2, [r3]
	ldr	r3, .L41+44
	ldr	r2, .L41+48
	str	r2, [r3]
	ldr	r3, .L41+52
	ldr	r2, .L41+56
	str	r2, [r3]
	b	.L10
.L19:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r0, r3
	bl	printHelp
	mov	r3, #1
	b	.L3
.L12:
	ldr	r3, [fp, #-32]
	cmp	r3, #6
	bne	.L20
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L41+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r3, [fp, #-36]
	add	r3, r3, #16
	ldr	r3, [r3]
	ldr	r1, .L41+60
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r3, .L41+32
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #20
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L41+64
	str	r3, [r2]
	b	.L10
.L21:
	ldr	r3, [fp, #-36]
	add	r3, r3, #20
	ldr	r3, [r3]
	ldr	r1, .L41+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L41+60
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	ldr	r3, .L41+32
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L41+64
	str	r3, [r2]
	b	.L10
.L23:
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L41+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
	ldr	r3, [fp, #-36]
	add	r3, r3, #16
	ldr	r3, [r3]
	ldr	r1, .L41+60
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
	ldr	r3, .L41+40
	mov	r2, #4
	str	r2, [r3]
	ldr	r3, .L41+44
	ldr	r2, .L41+48
	str	r2, [r3]
	ldr	r3, .L41+52
	ldr	r2, .L41+56
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #20
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L41+64
	str	r3, [r2]
	b	.L10
.L24:
	ldr	r3, [fp, #-36]
	add	r3, r3, #20
	ldr	r3, [r3]
	ldr	r1, .L41+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L41+60
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	ldr	r3, .L41+40
	mov	r2, #4
	str	r2, [r3]
	ldr	r3, .L41+44
	ldr	r2, .L41+48
	str	r2, [r3]
	ldr	r3, .L41+52
	ldr	r2, .L41+56
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L41+64
	str	r3, [r2]
	b	.L10
.L25:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r0, r3
	bl	printHelp
	mov	r3, #1
	b	.L3
.L20:
	ldr	r3, [fp, #-32]
	cmp	r3, #7
	bne	.L10
	ldr	r3, .L41+32
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, .L41+40
	mov	r2, #4
	str	r2, [r3]
	ldr	r3, .L41+44
	ldr	r2, .L41+48
	str	r2, [r3]
	ldr	r3, .L41+52
	ldr	r2, .L41+56
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L41+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-36]
	add	r3, r3, #16
	ldr	r3, [r3]
	ldr	r1, .L41+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	ldr	r3, [fp, #-36]
	add	r3, r3, #20
	ldr	r3, [r3]
	ldr	r1, .L41+60
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
	ldr	r3, [fp, #-36]
	add	r3, r3, #24
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L41+64
	str	r3, [r2]
	b	.L10
.L28:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r0, r3
	bl	printHelp
	mov	r3, #1
	b	.L3
.L27:
	ldr	r3, [fp, #-36]
	add	r3, r3, #24
	ldr	r3, [r3]
	ldr	r1, .L41+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	ldr	r3, [fp, #-36]
	add	r3, r3, #16
	ldr	r3, [r3]
	ldr	r1, .L41+60
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-36]
	add	r3, r3, #20
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L41+64
	str	r3, [r2]
	b	.L10
.L30:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r0, r3
	bl	printHelp
	mov	r3, #1
	b	.L3
.L29:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r0, r3
	bl	printHelp
	mov	r3, #1
	b	.L3
.L26:
	ldr	r3, [fp, #-36]
	add	r3, r3, #16
	ldr	r3, [r3]
	ldr	r1, .L41+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L31
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L41+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L32
	ldr	r3, [fp, #-36]
	add	r3, r3, #20
	ldr	r3, [r3]
	ldr	r1, .L41+60
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
	ldr	r3, [fp, #-36]
	add	r3, r3, #24
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L41+64
	str	r3, [r2]
	b	.L10
.L33:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r0, r3
	bl	printHelp
	mov	r3, #1
	b	.L3
.L32:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r0, r3
	bl	printHelp
	mov	r3, #1
	b	.L3
.L31:
	ldr	r3, [fp, #-36]
	add	r3, r3, #20
	ldr	r3, [r3]
	ldr	r1, .L41+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L34
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L41+60
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	ldr	r3, [fp, #-36]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L41+64
	str	r3, [r2]
	ldr	r3, [fp, #-36]
	add	r3, r3, #24
	ldr	r3, [r3]
	ldr	r1, .L41+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r0, r3
	bl	printHelp
	mov	r3, #1
	b	.L3
.L35:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r0, r3
	bl	printHelp
	mov	r3, #1
	b	.L3
.L34:
	ldr	r3, [fp, #-36]
	add	r3, r3, #24
	ldr	r3, [r3]
	ldr	r1, .L41+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L36
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L41+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
	ldr	r3, [fp, #-36]
	add	r3, r3, #16
	ldr	r3, [r3]
	ldr	r1, .L41+60
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L38
	ldr	r3, [fp, #-36]
	add	r3, r3, #20
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L41+64
	str	r3, [r2]
	b	.L10
.L38:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r0, r3
	bl	printHelp
	mov	r3, #1
	b	.L3
.L37:
	ldr	r3, [fp, #-36]
	add	r3, r3, #20
	ldr	r3, [r3]
	ldr	r1, .L41+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L39
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L41+60
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L40
	ldr	r3, [fp, #-36]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L41+64
	str	r3, [r2]
	b	.L10
.L40:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r0, r3
	bl	printHelp
	mov	r3, #1
	b	.L3
.L39:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r0, r3
	bl	printHelp
	mov	r3, #1
	b	.L3
.L36:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r0, r3
	bl	printHelp
	mov	r3, #1
	b	.L3
.L10:
	ldr	r0, [fp, #-16]
	bl	LabRead
	str	r0, [fp, #-12]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-12]
	bl	LabSolve
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-16]
	bl	fclose
	ldr	r3, [fp, #-8]
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC0
	.word	stdin
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	silent
	.word	.LC7
	.word	move_size
	.word	p_xShift
	.word	xShift
	.word	p_yShift
	.word	yShift
	.word	.LC8
	.word	delay
	.size	main, .-main
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Usage: %s [<file>] [<algorithm>] [<args>]\012Search"
	.ascii	"es:\011\012-escape Just finds a path to escape.\011"
	.ascii	"\012-greedy Finds mostly a good path.\011\012-bfs F"
	.ascii	"inds best path via breadth first search.\012Optiona"
	.ascii	"ls:\011\012-l Linear-only. Default is diagonally.\011"
	.ascii	"\012-s Silent searching without unnessecary output."
	.ascii	" Default is not silent.\011\012-t <nanoseconds> Del"
	.ascii	"ay in nanoseconds. Accepts integer values. Default "
	.ascii	"is 0.\012\000"
	.text
	.align	2
	.global	printHelp
	.syntax unified
	.arm
	.fpu softvfp
	.type	printHelp, %function
printHelp:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L44
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L44+4
	mov	r0, r3
	bl	fprintf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	stderr
	.word	.LC9
	.size	printHelp, .-printHelp
	.align	2
	.global	enqueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	enqueue, %function
enqueue:
	@ 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, .L49
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L47
	ldr	r2, .L49
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	b	.L48
.L47:
	ldr	r3, .L49+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
.L48:
	ldr	r2, .L49+4
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L50:
	.align	2
.L49:
	.word	first_q
	.word	last_q
	.size	enqueue, .-enqueue
	.align	2
	.global	dequeue
	.syntax unified
	.arm
	.fpu softvfp
	.type	dequeue, %function
dequeue:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L55
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, .L55
	str	r3, [r2]
	ldr	r3, .L55
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L52
	ldr	r3, .L55
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L53
.L52:
	ldr	r3, .L55
	ldr	r3, [r3]
	ldr	r2, .L55+4
	str	r3, [r2]
.L53:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L56:
	.align	2
.L55:
	.word	first_q
	.word	last_q
	.size	dequeue, .-dequeue
	.align	2
	.global	getLabWidth
	.syntax unified
	.arm
	.fpu softvfp
	.type	getLabWidth, %function
getLabWidth:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L58
.L63:
	ldr	r0, [fp, #-16]
	bl	rewind
	ldr	r3, [fp, #-8]
	b	.L62
.L59:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L58:
	ldr	r0, [fp, #-16]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L59
	b	.L63
.L62:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	getLabWidth, .-getLabWidth
	.align	2
	.global	getLabHeight
	.syntax unified
	.arm
	.fpu softvfp
	.type	getLabHeight, %function
getLabHeight:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L65
.L67:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L65:
	ldr	r0, [fp, #-16]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L65
	b	.L67
	.size	getLabHeight, .-getLabHeight
	.section	.rodata
	.align	2
.LC10:
	.ascii	"\033[1;1H\000"
	.text
	.align	2
	.global	rewindOutputField
	.syntax unified
	.arm
	.fpu softvfp
	.type	rewindOutputField, %function
rewindOutputField:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L69
	bl	printf
	nop
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	.LC10
	.size	rewindOutputField, .-rewindOutputField
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Solving...\000"
	.text
	.align	2
	.global	printOutputField
	.syntax unified
	.arm
	.fpu softvfp
	.type	printOutputField, %function
printOutputField:
	@ 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]
	ldr	r0, .L78
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L72
.L73:
	mov	r0, #32
	bl	putchar
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L72:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L73
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L74
.L77:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L75
.L76:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r2, [r2, #4]
	ldr	r1, [fp, #-12]
	mul	r1, r2, r1
	ldr	r2, [fp, #-8]
	add	r2, r1, r2
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L75:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L76
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L74:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L77
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L79:
	.align	2
.L78:
	.word	.LC11
	.size	printOutputField, .-printOutputField
	.section	.rodata
	.align	2
.LC12:
	.ascii	"Error: Unable to find start field 'S'.\012\000"
	.text
	.align	2
	.global	getStartField
	.syntax unified
	.arm
	.fpu softvfp
	.type	getStartField, %function
getStartField:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L81
.L86:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L82
.L85:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r2, [r2, #4]
	ldr	r1, [fp, #-16]
	mul	r1, r2, r1
	ldr	r2, [fp, #-12]
	add	r2, r1, r2
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #83
	bne	.L83
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	b	.L87
.L83:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L82:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L85
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L81:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L86
	ldr	r0, .L88
	bl	perror
	mov	r0, #1
	bl	exit
.L87:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L89:
	.align	2
.L88:
	.word	.LC12
	.size	getStartField, .-getStartField
	.align	2
	.global	LabRead
	.syntax unified
	.arm
	.fpu softvfp
	.type	LabRead, %function
LabRead:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-24]
	bl	getLabWidth
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r0, [fp, #-24]
	bl	getLabHeight
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mul	r3, r2, r3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L91
.L94:
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L91
.L92:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r2, [r2, #4]
	ldr	r1, [fp, #-12]
	mul	r1, r2, r1
	ldr	r2, [fp, #-16]
	add	r2, r1, r2
	add	r3, r3, r2
	ldrb	r2, [fp, #-17]
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L91:
	ldr	r0, [fp, #-24]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-17]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L92
	b	.L94
	.size	LabRead, .-LabRead
	.align	2
	.global	exists
	.syntax unified
	.arm
	.fpu softvfp
	.type	exists, %function
exists:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L96
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L96
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L96
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bge	.L96
	mov	r3, #1
	b	.L97
.L96:
	mov	r3, #0
.L97:
	and	r3, r3, #1
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	exists, .-exists
	.align	2
	.global	isFree
	.syntax unified
	.arm
	.fpu softvfp
	.type	isFree, %function
isFree:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	getField
	mov	r3, r0
	cmp	r3, #32
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	isFree, .-isFree
	.align	2
	.global	isGoal
	.syntax unified
	.arm
	.fpu softvfp
	.type	isGoal, %function
isGoal:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	getField
	mov	r3, r0
	cmp	r3, #88
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	isGoal, .-isGoal
	.align	2
	.global	setVisited
	.syntax unified
	.arm
	.fpu softvfp
	.type	setVisited, %function
setVisited:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	mov	r3, #46
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	setField
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	setVisited, .-setVisited
	.align	2
	.global	setUnvisited
	.syntax unified
	.arm
	.fpu softvfp
	.type	setUnvisited, %function
setUnvisited:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	mov	r3, #32
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	setField
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	setUnvisited, .-setUnvisited
	.align	2
	.global	setField
	.syntax unified
	.arm
	.fpu softvfp
	.type	setField, %function
setField:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	strb	r3, [fp, #-17]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-16]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	add	r3, r2, r3
	ldrb	r2, [fp, #-17]
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	setField, .-setField
	.align	2
	.global	getField
	.syntax unified
	.arm
	.fpu softvfp
	.type	getField, %function
getField:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r2, [r2, #4]
	ldr	r1, [fp, #-16]
	mul	r1, r2, r1
	ldr	r2, [fp, #-12]
	add	r2, r1, r2
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	getField, .-getField
	.align	2
	.global	setEvaluated
	.syntax unified
	.arm
	.fpu softvfp
	.type	setEvaluated, %function
setEvaluated:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	and	r3, r3, #255
	add	r3, r3, #48
	and	r3, r3, #255
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	setField
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	setEvaluated, .-setEvaluated
	.align	2
	.global	dummyMove
	.syntax unified
	.arm
	.fpu softvfp
	.type	dummyMove, %function
dummyMove:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mvn	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mvn	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, .L111
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L112:
	.align	2
.L111:
	.word	1000000000
	.size	dummyMove, .-dummyMove
	.align	2
	.global	cloneMove
	.syntax unified
	.arm
	.fpu softvfp
	.type	cloneMove, %function
cloneMove:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	cloneMove, .-cloneMove
	.align	2
	.global	greedy
	.syntax unified
	.arm
	.fpu softvfp
	.type	greedy, %function
greedy:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L122
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	setVisited
	ldr	r3, .L122+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	usleep
	ldr	r3, .L122+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L116
	bl	rewindOutputField
	ldr	r0, [fp, #-32]
	bl	printOutputField
.L116:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L117
.L121:
	ldr	r3, .L122+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, .L122+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-32]
	bl	exists
	mov	r3, r0
	cmp	r3, #0
	beq	.L118
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-32]
	bl	isGoal
	mov	r3, r0
	cmp	r3, #0
	beq	.L119
	mov	r3, #1
	b	.L120
.L119:
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-32]
	bl	isFree
	mov	r3, r0
	cmp	r3, #0
	beq	.L118
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-32]
	bl	greedy
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bge	.L118
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-24]
.L118:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L117:
	ldr	r3, .L122+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L121
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
.L120:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L123:
	.align	2
.L122:
	.word	1000000000
	.word	delay
	.word	silent
	.word	p_xShift
	.word	p_yShift
	.word	move_size
	.size	greedy, .-greedy
	.align	2
	.global	escape
	.syntax unified
	.arm
	.fpu softvfp
	.type	escape, %function
escape:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L125
.L130:
	ldr	r3, .L131
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, .L131+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	exists
	mov	r3, r0
	cmp	r3, #0
	beq	.L126
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	isGoal
	mov	r3, r0
	cmp	r3, #0
	beq	.L127
	mov	r3, #1
	b	.L128
.L127:
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	isFree
	mov	r3, r0
	cmp	r3, #0
	beq	.L126
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	setVisited
	ldr	r3, .L131+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	usleep
	ldr	r3, .L131+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L129
	bl	rewindOutputField
	ldr	r0, [fp, #-24]
	bl	printOutputField
.L129:
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	escape
	mov	r3, r0
	cmp	r3, #0
	beq	.L126
	mov	r3, #1
	b	.L128
.L126:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L125:
	ldr	r3, .L131+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L130
	mov	r3, #0
.L128:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L132:
	.align	2
.L131:
	.word	p_xShift
	.word	p_yShift
	.word	delay
	.word	silent
	.word	move_size
	.size	escape, .-escape
	.align	2
	.global	bfs
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfs, %function
bfs:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-44]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-44]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r0, [fp, #-32]
	bl	enqueue
.L140:
	bl	dequeue
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r3, .L141
	ldr	r3, [r3]
	mov	r0, r3
	bl	usleep
	ldr	r3, .L141+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L134
	bl	rewindOutputField
	ldr	r0, [fp, #-40]
	bl	printOutputField
.L134:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L135
.L139:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, .L141+8
	ldr	r1, [r3]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #4]
	ldr	r3, .L141+12
	ldr	r1, [r3]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-40]
	bl	exists
	mov	r3, r0
	cmp	r3, #0
	beq	.L136
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-40]
	bl	isFree
	mov	r3, r0
	cmp	r3, #0
	beq	.L137
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r0, [fp, #-40]
	bl	setVisited
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r0, [fp, #-24]
	bl	enqueue
	b	.L136
.L137:
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-40]
	bl	isGoal
	mov	r3, r0
	cmp	r3, #0
	beq	.L136
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	add	r3, r3, #1
	b	.L138
.L136:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L135:
	ldr	r3, .L141+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	blt	.L139
	ldr	r0, [fp, #-28]
	bl	free
	ldr	r3, .L141+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L140
	mov	r3, #0
.L138:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L142:
	.align	2
.L141:
	.word	delay
	.word	silent
	.word	p_xShift
	.word	p_yShift
	.word	move_size
	.word	first_q
	.size	bfs, .-bfs
	.section	.rodata
	.align	2
.LC13:
	.ascii	"Press enter to start solving...\000"
	.align	2
.LC14:
	.ascii	"Solved.\000"
	.align	2
.LC15:
	.ascii	"Impossible.\000"
	.align	2
.LC16:
	.ascii	"Solved. Good way is %d steps.\012\000"
	.align	2
.LC17:
	.ascii	"Solved. Best way is %d steps.\012\000"
	.text
	.align	2
	.global	LabSolve
	.syntax unified
	.arm
	.fpu softvfp
	.type	LabSolve, %function
LabSolve:
	@ 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	r0, [fp, #-24]
	bl	getStartField
	str	r0, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, .L162
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L144
	ldr	r0, .L162+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L145
.L148:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L146
.L147:
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	getField
	mov	r3, r0
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L146:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L147
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L145:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L148
	nop
.L149:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L149
	mov	r0, #10
	bl	putchar
.L144:
	ldr	r3, [fp, #-28]
	cmp	r3, #2
	beq	.L150
	ldr	r3, [fp, #-28]
	cmp	r3, #2
	bgt	.L151
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L152
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	beq	.L153
	b	.L151
.L152:
	ldr	r3, [fp, #-8]
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r0, [fp, #-24]
	bl	escape
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L154
	ldr	r0, .L162+8
	bl	puts
	b	.L151
.L154:
	ldr	r0, .L162+12
	bl	puts
	b	.L151
.L153:
	ldr	r3, [fp, #-8]
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r0, [fp, #-24]
	bl	greedy
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, .L162+16
	cmp	r3, r2
	bgt	.L156
	ldr	r1, [fp, #-20]
	ldr	r0, .L162+20
	bl	printf
	b	.L151
.L156:
	ldr	r0, .L162+12
	bl	puts
	b	.L151
.L150:
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-24]
	bl	bfs
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L158
	ldr	r1, [fp, #-20]
	ldr	r0, .L162+24
	bl	printf
	b	.L161
.L158:
	ldr	r0, .L162+12
	bl	puts
.L161:
	nop
.L151:
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L163:
	.align	2
.L162:
	.word	silent
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	999999999
	.word	.LC16
	.word	.LC17
	.size	LabSolve, .-LabSolve
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
