	.file	"94233.c"
	.intel_syntax noprefix
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	initialise
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	allocate_step
	mov	QWORD PTR -80[rbp], rax
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	allocate_step
	mov	QWORD PTR -72[rbp], rax
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	make_tree
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	print_board
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	initialise
	.type	initialise, @function
initialise:
.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	DWORD PTR -8[rbp], 0
	jmp	.L5
.L8:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 32
	add	DWORD PTR -4[rbp], 1
.L6:
	cmp	DWORD PTR -4[rbp], 6
	jle	.L7
	add	DWORD PTR -8[rbp], 1
.L5:
	cmp	DWORD PTR -8[rbp], 3
	jle	.L8
	mov	DWORD PTR -8[rbp], 4
	jmp	.L9
.L12:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 35
	add	DWORD PTR -4[rbp], 1
.L10:
	cmp	DWORD PTR -4[rbp], 6
	jle	.L11
	add	DWORD PTR -8[rbp], 1
.L9:
	cmp	DWORD PTR -8[rbp], 7
	jle	.L12
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	initialise, .-initialise
	.section	.rodata
.LC0:
	.string	"|"
.LC1:
	.string	"%c."
.LC2:
	.string	"%c|\n"
	.text
	.globl	print_board
	.type	print_board, @function
print_board:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	edi, 124
	call	putchar@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L14
.L15:
	mov	edi, 124
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 1
.L14:
	cmp	DWORD PTR -8[rbp], 12
	jle	.L15
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L16
.L19:
	mov	edi, 124
	call	putchar@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L17:
	cmp	DWORD PTR -4[rbp], 5
	jle	.L18
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR 6[rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -8[rbp], 1
.L16:
	cmp	DWORD PTR -8[rbp], 7
	jle	.L19
	mov	edi, 124
	call	putchar@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L20
.L21:
	mov	edi, 124
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 1
.L20:
	cmp	DWORD PTR -8[rbp], 12
	jle	.L21
	lea	rdi, .LC0[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	print_board, .-print_board
	.globl	board_copy
	.type	board_copy, @function
board_copy:
.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L23
.L26:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L24
.L25:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, [rcx+rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	edx, BYTE PTR [rsi+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	BYTE PTR [rcx+rax], dl
	add	DWORD PTR -4[rbp], 1
.L24:
	cmp	DWORD PTR -4[rbp], 6
	jle	.L25
	add	DWORD PTR -8[rbp], 1
.L23:
	cmp	DWORD PTR -8[rbp], 7
	jle	.L26
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	board_copy, .-board_copy
	.globl	board_compare
	.type	board_compare, @function
board_compare:
.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	DWORD PTR -8[rbp], 0
	jmp	.L28
.L33:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L29
.L32:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	ecx, BYTE PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	mov	rsi, rax
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, [rsi+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	cl, al
	je	.L30
	mov	eax, 0
	jmp	.L31
.L30:
	add	DWORD PTR -4[rbp], 1
.L29:
	cmp	DWORD PTR -4[rbp], 6
	jle	.L32
	add	DWORD PTR -8[rbp], 1
.L28:
	cmp	DWORD PTR -8[rbp], 7
	jle	.L33
	mov	eax, 1
.L31:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	board_compare, .-board_compare
	.section	.rodata
.LC3:
	.string	"Cannot allocate step."
	.text
	.globl	allocate_step
	.type	allocate_step, @function
allocate_step:
.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	edi, 72
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L35
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 2
	call	exit@PLT
.L35:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	board_copy
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 56[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 64[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	allocate_step, .-allocate_step
	.globl	is_movable_up
	.type	is_movable_up, @function
is_movable_up:
.LFB12:
	.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, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 35
	je	.L38
	mov	eax, 0
	jmp	.L39
.L38:
	cmp	DWORD PTR -12[rbp], 1
	jle	.L40
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	lea	rdx, -7[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 35
	jne	.L40
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	lea	rdx, -14[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 32
	jne	.L40
	mov	eax, 1
	jmp	.L39
.L40:
	mov	eax, 0
.L39:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	is_movable_up, .-is_movable_up
	.globl	is_movable_right
	.type	is_movable_right, @function
is_movable_right:
.LFB13:
	.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, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 35
	je	.L42
	mov	eax, 0
	jmp	.L43
.L42:
	cmp	DWORD PTR -16[rbp], 4
	jg	.L44
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 35
	jne	.L44
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 2
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 32
	jne	.L44
	mov	eax, 1
	jmp	.L43
.L44:
	mov	eax, 0
.L43:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	is_movable_right, .-is_movable_right
	.globl	is_movable_left
	.type	is_movable_left, @function
is_movable_left:
.LFB14:
	.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, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 35
	je	.L46
	mov	eax, 0
	jmp	.L47
.L46:
	cmp	DWORD PTR -16[rbp], 1
	jle	.L48
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 35
	jne	.L48
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, 2
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 32
	jne	.L48
	mov	eax, 1
	jmp	.L47
.L48:
	mov	eax, 0
.L47:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	is_movable_left, .-is_movable_left
	.globl	move_up
	.type	move_up, @function
move_up:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, new_array.3[rip]
	mov	rdi, rax
	call	board_copy
	mov	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, new_array.3[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 32
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, new_array.3[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 32
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, -2[rax]
	mov	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, new_array.3[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 35
	lea	rax, new_array.3[rip]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	move_up, .-move_up
	.globl	move_right
	.type	move_right, @function
move_right:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, new_array.2[rip]
	mov	rdi, rax
	call	board_copy
	mov	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, new_array.2[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 32
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, new_array.2[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 32
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 2
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, new_array.2[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 35
	lea	rax, new_array.2[rip]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	move_right, .-move_right
	.globl	move_left
	.type	move_left, @function
move_left:
.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	rax, QWORD PTR -8[rbp]
	lea	rsi, new_array.1[rip]
	mov	rdi, rax
	call	board_copy
	mov	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, new_array.1[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 32
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, 1
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, new_array.1[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 32
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, 2
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, new_array.1[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 35
	lea	rax, new_array.1[rip]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	move_left, .-move_left
	.globl	search_tree
	.type	search_tree, @function
search_tree:
.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	QWORD PTR -16[rbp], rsi
	jmp	.L56
.L59:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	board_compare
	cmp	eax, 1
	jne	.L57
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L58
.L57:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 64[rax]
	mov	QWORD PTR -8[rbp], rax
.L56:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 64[rax]
	test	rax, rax
	jne	.L59
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	board_compare
	test	eax, eax
	jne	.L59
	mov	eax, 0
.L58:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	search_tree, .-search_tree
	.globl	insert_step
	.type	insert_step, @function
insert_step:
.LFB19:
	.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 previous.0[rip]
	test	rax, rax
	je	.L61
	mov	rax, QWORD PTR previous.0[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 64[rax], rdx
.L61:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR previous.0[rip], rax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	insert_step, .-insert_step
	.globl	moves_from
	.type	moves_from, @function
moves_from:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -32[rbp], rdi
	mov	DWORD PTR -36[rbp], esi
	mov	DWORD PTR -40[rbp], edx
	mov	QWORD PTR -48[rbp], rcx
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	is_movable_up
	cmp	eax, 1
	jne	.L63
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	move_up
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	search_tree
	test	rax, rax
	jne	.L63
	mov	rbx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	move_up
	mov	rsi, rbx
	mov	rdi, rax
	call	board_copy
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	insert_step
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 56[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	jmp	.L64
.L63:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	is_movable_right
	cmp	eax, 1
	jne	.L65
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	move_right
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	search_tree
	test	rax, rax
	jne	.L65
	mov	rbx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	move_right
	mov	rsi, rbx
	mov	rdi, rax
	call	board_copy
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	insert_step
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 56[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	jmp	.L64
.L65:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	is_movable_left
	cmp	eax, 1
	jne	.L66
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	move_left
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	search_tree
	test	rax, rax
	jne	.L66
	mov	rbx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	move_up
	mov	rsi, rbx
	mov	rdi, rax
	call	board_copy
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	insert_step
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 56[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	jmp	.L64
.L66:
	mov	eax, 0
.L64:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	moves_from, .-moves_from
	.globl	make_tree
	.type	make_tree, @function
make_tree:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L68
.L72:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L69
.L71:
	mov	rcx, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	esi, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	moves_from
	test	rax, rax
	je	.L70
	mov	rcx, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	esi, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	moves_from
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	make_tree
.L70:
	add	DWORD PTR -4[rbp], 1
.L69:
	cmp	DWORD PTR -4[rbp], 6
	jle	.L71
	add	DWORD PTR -8[rbp], 1
.L68:
	cmp	DWORD PTR -8[rbp], 7
	jle	.L72
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	make_tree, .-make_tree
	.local	new_array.3
	.comm	new_array.3,56,32
	.local	new_array.2
	.comm	new_array.2,56,32
	.local	new_array.1
	.comm	new_array.1,56,32
	.local	previous.0
	.comm	previous.0,8,8
	.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	"94233.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #64
	mov	r0, r3
	bl	initialise
	sub	r3, fp, #64
	mov	r0, r3
	bl	allocate_step
	str	r0, [fp, #-72]
	sub	r3, fp, #64
	mov	r0, r3
	bl	allocate_step
	str	r0, [fp, #-68]
	ldr	r1, [fp, #-68]
	ldr	r0, [fp, #-72]
	bl	make_tree
	ldr	r3, [fp, #-72]
	mov	r0, r3
	bl	print_board
	mov	r3, #0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	main, .-main
	.align	2
	.global	initialise
	.syntax unified
	.arm
	.fpu softvfp
	.type	initialise, %function
initialise:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L7
.L10:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L8
.L9:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L8:
	ldr	r3, [fp, #-8]
	cmp	r3, #6
	ble	.L9
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L7:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	ble	.L10
	mov	r3, #4
	str	r3, [fp, #-12]
	b	.L11
.L14:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L12
.L13:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #35
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L12:
	ldr	r3, [fp, #-8]
	cmp	r3, #6
	ble	.L13
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L11:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ble	.L14
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	initialise, .-initialise
	.section	.rodata
	.align	2
.LC1:
	.ascii	"|\000"
	.align	2
.LC2:
	.ascii	"%c.\000"
	.align	2
.LC3:
	.ascii	"%c|\012\000"
	.text
	.align	2
	.global	print_board
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_board, %function
print_board:
	@ 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, #124
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L16
.L17:
	mov	r0, #124
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L16:
	ldr	r3, [fp, #-12]
	cmp	r3, #12
	ble	.L17
	ldr	r0, .L24
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L18
.L21:
	mov	r0, #124
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L19
.L20:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L24+4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L19:
	ldr	r3, [fp, #-8]
	cmp	r3, #5
	ble	.L20
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3, #6]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L24+8
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L18:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ble	.L21
	mov	r0, #124
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L22
.L23:
	mov	r0, #124
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L22:
	ldr	r3, [fp, #-12]
	cmp	r3, #12
	ble	.L23
	ldr	r0, .L24
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	print_board, .-print_board
	.align	2
	.global	board_copy
	.syntax unified
	.arm
	.fpu softvfp
	.type	board_copy, %function
board_copy:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L27
.L30:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L28
.L29:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r1, r2, r3
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	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]
.L28:
	ldr	r3, [fp, #-8]
	cmp	r3, #6
	ble	.L29
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L27:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ble	.L30
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	board_copy, .-board_copy
	.align	2
	.global	board_compare
	.syntax unified
	.arm
	.fpu softvfp
	.type	board_compare, %function
board_compare:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L32
.L37:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L33
.L36:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r1, r3
	beq	.L34
	mov	r3, #0
	b	.L35
.L34:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L33:
	ldr	r3, [fp, #-8]
	cmp	r3, #6
	ble	.L36
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L32:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ble	.L37
	mov	r3, #1
.L35:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	board_compare, .-board_compare
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Cannot allocate step.\000"
	.text
	.align	2
	.global	allocate_step
	.syntax unified
	.arm
	.fpu softvfp
	.type	allocate_step, %function
allocate_step:
	@ 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, #64
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L39
	ldr	r0, .L41
	bl	puts
	mov	r0, #2
	bl	exit
.L39:
	ldr	r3, [fp, #-8]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	board_copy
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #56]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #60]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC4
	.size	allocate_step, .-allocate_step
	.align	2
	.global	is_movable_up
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_movable_up, %function
is_movable_up:
	@ 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	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #35
	beq	.L44
	mov	r3, #0
	b	.L45
.L44:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	ble	.L46
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	sub	r3, r3, #7
	ldr	r2, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L46
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	sub	r3, r3, #14
	ldr	r2, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L46
	mov	r3, #1
	b	.L45
.L46:
	mov	r3, #0
.L45:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_movable_up, .-is_movable_up
	.align	2
	.global	is_movable_right
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_movable_right, %function
is_movable_right:
	@ 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	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #35
	beq	.L48
	mov	r3, #0
	b	.L49
.L48:
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	bgt	.L50
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L50
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L50
	mov	r3, #1
	b	.L49
.L50:
	mov	r3, #0
.L49:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_movable_right, .-is_movable_right
	.align	2
	.global	is_movable_left
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_movable_left, %function
is_movable_left:
	@ 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	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #35
	beq	.L52
	mov	r3, #0
	b	.L53
.L52:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L54
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L54
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	ldr	r2, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	sub	r3, r3, #2
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L54
	mov	r3, #1
	b	.L53
.L54:
	mov	r3, #0
.L53:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_movable_left, .-is_movable_left
	.align	2
	.global	move_up
	.syntax unified
	.arm
	.fpu softvfp
	.type	move_up, %function
move_up:
	@ 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	r1, .L57
	ldr	r0, [fp, #-8]
	bl	board_copy
	ldr	r1, .L57
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	sub	r2, r3, #1
	ldr	r1, .L57
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	sub	r2, r3, #2
	ldr	r1, .L57
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #35
	strb	r2, [r3]
	ldr	r3, .L57
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	new_array.5257
	.size	move_up, .-move_up
	.align	2
	.global	move_right
	.syntax unified
	.arm
	.fpu softvfp
	.type	move_right, %function
move_right:
	@ 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	r1, .L61
	ldr	r0, [fp, #-8]
	bl	board_copy
	ldr	r1, .L61
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r1, r3, #1
	ldr	r0, .L61
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, #32
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r1, r3, #2
	ldr	r0, .L61
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, #35
	strb	r2, [r3]
	ldr	r3, .L61
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L62:
	.align	2
.L61:
	.word	new_array.5263
	.size	move_right, .-move_right
	.align	2
	.global	move_left
	.syntax unified
	.arm
	.fpu softvfp
	.type	move_left, %function
move_left:
	@ 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	r1, .L65
	ldr	r0, [fp, #-8]
	bl	board_copy
	ldr	r1, .L65
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	sub	r1, r3, #1
	ldr	r0, .L65
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, #32
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	sub	r1, r3, #2
	ldr	r0, .L65
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, #35
	strb	r2, [r3]
	ldr	r3, .L65
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L66:
	.align	2
.L65:
	.word	new_array.5269
	.size	move_left, .-move_left
	.align	2
	.global	search_tree
	.syntax unified
	.arm
	.fpu softvfp
	.type	search_tree, %function
search_tree:
	@ 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]
	str	r1, [fp, #-12]
	b	.L68
.L71:
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	board_compare
	mov	r3, r0
	cmp	r3, #1
	bne	.L69
	ldr	r3, [fp, #-8]
	b	.L70
.L69:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #60]
	str	r3, [fp, #-8]
.L68:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #60]
	cmp	r3, #0
	bne	.L71
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	board_compare
	mov	r3, r0
	cmp	r3, #0
	bne	.L71
	mov	r3, #0
.L70:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	search_tree, .-search_tree
	.align	2
	.global	insert_step
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert_step, %function
insert_step:
	@ 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, .L74
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L73
	ldr	r3, .L74
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #60]
.L73:
	ldr	r2, .L74
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L75:
	.align	2
.L74:
	.word	previous.5282
	.size	insert_step, .-insert_step
	.align	2
	.global	moves_from
	.syntax unified
	.arm
	.fpu softvfp
	.type	moves_from, %function
moves_from:
	@ 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]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	is_movable_up
	mov	r3, r0
	cmp	r3, #1
	bne	.L77
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	move_up
	mov	r3, r0
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	search_tree
	mov	r3, r0
	cmp	r3, #0
	bne	.L77
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	move_up
	mov	r2, r0
	ldr	r3, [fp, #-8]
	mov	r1, r3
	mov	r0, r2
	bl	board_copy
	ldr	r0, [fp, #-8]
	bl	insert_step
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #56]
	ldr	r3, [fp, #-8]
	b	.L78
.L77:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	is_movable_right
	mov	r3, r0
	cmp	r3, #1
	bne	.L79
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	move_right
	mov	r3, r0
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	search_tree
	mov	r3, r0
	cmp	r3, #0
	bne	.L79
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	move_right
	mov	r2, r0
	ldr	r3, [fp, #-8]
	mov	r1, r3
	mov	r0, r2
	bl	board_copy
	ldr	r0, [fp, #-8]
	bl	insert_step
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #56]
	ldr	r3, [fp, #-8]
	b	.L78
.L79:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	is_movable_left
	mov	r3, r0
	cmp	r3, #1
	bne	.L80
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	move_left
	mov	r3, r0
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	search_tree
	mov	r3, r0
	cmp	r3, #0
	bne	.L80
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	move_up
	mov	r2, r0
	ldr	r3, [fp, #-8]
	mov	r1, r3
	mov	r0, r2
	bl	board_copy
	ldr	r0, [fp, #-8]
	bl	insert_step
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #56]
	ldr	r3, [fp, #-8]
	b	.L78
.L80:
	mov	r3, #0
.L78:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	moves_from, .-moves_from
	.align	2
	.global	make_tree
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_tree, %function
make_tree:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L82
.L86:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L83
.L85:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	moves_from
	mov	r3, r0
	cmp	r3, #0
	beq	.L84
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	moves_from
	str	r0, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	make_tree
.L84:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L83:
	ldr	r3, [fp, #-8]
	cmp	r3, #6
	ble	.L85
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L82:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ble	.L86
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	make_tree, .-make_tree
	.local	new_array.5257
	.comm	new_array.5257,56,4
	.local	new_array.5263
	.comm	new_array.5263,56,4
	.local	new_array.5269
	.comm	new_array.5269,56,4
	.local	previous.5282
	.comm	previous.5282,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
