	.file	"414657.c"
	.intel_syntax noprefix
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	shortest_counter
	.data
	.align 4
	.type	shortest_counter, @object
	.size	shortest_counter, 4
shortest_counter:
	.long	2147483647
	.globl	counter
	.bss
	.align 4
	.type	counter, @object
	.size	counter, 4
counter:
	.zero	4
	.globl	sw
	.align 4
	.type	sw, @object
	.size	sw, 4
sw:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%c "
	.text
	.globl	print_maze_c
	.type	print_maze_c, @function
print_maze_c:
.LFB0:
	.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 -40[rbp], rdi
	mov	ebx, DWORD PTR m[rip]
	mov	eax, ebx
	sub	rax, 1
	mov	QWORD PTR -24[rbp], rax
	mov	eax, ebx
	mov	r8, rax
	mov	r9d, 0
	mov	DWORD PTR -28[rbp], 0
	jmp	.L2
.L5:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	mov	edx, ebx
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -32[rbp], 1
.L3:
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR m[rip]
	cmp	edx, eax
	jb	.L4
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -28[rbp], 1
.L2:
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jb	.L5
	mov	edi, 10
	call	putchar@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	print_maze_c, .-print_maze_c
	.globl	copy_maze
	.type	copy_maze, @function
copy_maze:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	eax, DWORD PTR m[rip]
	mov	edx, eax
	sub	rdx, 1
	mov	QWORD PTR -32[rbp], rdx
	mov	edx, eax
	mov	rcx, rdx
	mov	ebx, 0
	mov	edx, DWORD PTR m[rip]
	mov	ecx, edx
	sub	rcx, 1
	mov	QWORD PTR -24[rbp], rcx
	mov	ecx, edx
	mov	r8, rcx
	mov	r9d, 0
	mov	DWORD PTR -36[rbp], 0
	jmp	.L7
.L10:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L8
.L9:
	mov	ecx, DWORD PTR -36[rbp]
	movsx	rcx, ecx
	mov	esi, edx
	imul	rcx, rsi
	lea	rsi, 0[0+rcx*4]
	mov	rcx, QWORD PTR -64[rbp]
	add	rsi, rcx
	mov	ecx, DWORD PTR -36[rbp]
	movsx	rcx, ecx
	mov	edi, eax
	imul	rcx, rdi
	lea	rdi, 0[0+rcx*4]
	mov	rcx, QWORD PTR -56[rbp]
	add	rdi, rcx
	mov	ecx, DWORD PTR -40[rbp]
	movsx	rcx, ecx
	mov	esi, DWORD PTR [rsi+rcx*4]
	mov	ecx, DWORD PTR -40[rbp]
	movsx	rcx, ecx
	mov	DWORD PTR [rdi+rcx*4], esi
	add	DWORD PTR -40[rbp], 1
.L8:
	mov	esi, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR m[rip]
	cmp	esi, ecx
	jb	.L9
	add	DWORD PTR -36[rbp], 1
.L7:
	mov	esi, DWORD PTR -36[rbp]
	mov	ecx, DWORD PTR n[rip]
	cmp	esi, ecx
	jb	.L10
	nop
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	copy_maze, .-copy_maze
	.globl	can_step_here
	.type	can_step_here, @function
can_step_here:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	QWORD PTR -48[rbp], rdx
	mov	eax, DWORD PTR m[rip]
	mov	edx, eax
	sub	rdx, 1
	mov	QWORD PTR -24[rbp], rdx
	mov	edx, eax
	mov	rcx, rdx
	mov	ebx, 0
	cmp	DWORD PTR -36[rbp], 0
	js	.L12
	cmp	DWORD PTR -40[rbp], 0
	js	.L12
	mov	edx, DWORD PTR n[rip]
	lea	ecx, -1[rdx]
	mov	edx, DWORD PTR -36[rbp]
	cmp	ecx, edx
	jb	.L12
	mov	edx, DWORD PTR m[rip]
	lea	ecx, -1[rdx]
	mov	edx, DWORD PTR -40[rbp]
	cmp	ecx, edx
	jb	.L12
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	mov	ecx, eax
	imul	rdx, rcx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -48[rbp]
	add	rcx, rdx
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rcx+rdx*4]
	cmp	dl, 46
	je	.L13
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	mov	eax, eax
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	cmp	al, 70
	jne	.L12
.L13:
	mov	eax, 1
	jmp	.L14
.L12:
	mov	eax, 0
.L14:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	can_step_here, .-can_step_here
	.section	.rodata
.LC1:
	.string	"(%d, %d) "
.LC2:
	.string	"\n"
	.text
	.globl	baccu_traccu
	.type	baccu_traccu, @function
baccu_traccu:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 88
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -88[rbp], rdi
	mov	DWORD PTR -92[rbp], esi
	mov	DWORD PTR -96[rbp], edx
	mov	QWORD PTR -104[rbp], rcx
	mov	QWORD PTR -112[rbp], r8
	mov	QWORD PTR -120[rbp], r9
	mov	edx, DWORD PTR m[rip]
	mov	eax, edx
	sub	rax, 1
	mov	QWORD PTR -72[rbp], rax
	mov	eax, edx
	mov	r14, rax
	mov	r15d, 0
	mov	ebx, DWORD PTR m[rip]
	mov	eax, ebx
	sub	rax, 1
	mov	QWORD PTR -64[rbp], rax
	mov	eax, ebx
	mov	r12, rax
	mov	r13d, 0
	mov	edx, DWORD PTR m[rip]
	mov	eax, edx
	sub	rax, 1
	mov	QWORD PTR -56[rbp], rax
	mov	eax, edx
	mov	r10, rax
	mov	r11d, 0
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	mov	edx, ebx
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	cmp	al, 70
	jne	.L16
	mov	DWORD PTR sw[rip], 1
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	print_maze_c
	mov	eax, DWORD PTR counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -92[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -96[rbp]
	mov	DWORD PTR 4[rdx], eax
	mov	eax, DWORD PTR counter[rip]
	add	eax, 1
	mov	DWORD PTR counter[rip], eax
	mov	DWORD PTR -76[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -76[rbp], 1
.L17:
	mov	eax, DWORD PTR counter[rip]
	sub	eax, 1
	cmp	DWORD PTR -76[rbp], eax
	jl	.L18
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edx, DWORD PTR shortest_counter[rip]
	mov	eax, DWORD PTR counter[rip]
	cmp	edx, eax
	jle	.L19
	mov	eax, DWORD PTR counter[rip]
	mov	DWORD PTR shortest_counter[rip], eax
	mov	rdx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	copy_maze
	mov	DWORD PTR -80[rbp], 0
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -80[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR 16[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -80[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR 16[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR 4[rdx], eax
	add	DWORD PTR -80[rbp], 1
.L20:
	mov	eax, DWORD PTR shortest_counter[rip]
	cmp	DWORD PTR -80[rbp], eax
	jl	.L21
.L19:
	mov	eax, DWORD PTR counter[rip]
	sub	eax, 1
	mov	DWORD PTR counter[rip], eax
	jmp	.L15
.L16:
	mov	rdx, QWORD PTR -104[rbp]
	mov	ecx, DWORD PTR -96[rbp]
	mov	eax, DWORD PTR -92[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	can_step_here
	test	eax, eax
	je	.L15
	mov	eax, DWORD PTR counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -92[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -96[rbp]
	mov	DWORD PTR 4[rdx], eax
	mov	eax, DWORD PTR counter[rip]
	add	eax, 1
	mov	DWORD PTR counter[rip], eax
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	mov	edx, ebx
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	cmp	eax, 70
	je	.L23
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	mov	edx, ebx
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	mov	DWORD PTR [rdx+rax*4], 120
.L23:
	mov	eax, DWORD PTR n[rip]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -92[rbp]
	cmp	edx, eax
	jbe	.L24
	mov	eax, DWORD PTR -92[rbp]
	lea	esi, 1[rax]
	mov	r8, QWORD PTR -120[rbp]
	mov	rdi, QWORD PTR -112[rbp]
	mov	rcx, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR -96[rbp]
	mov	rax, QWORD PTR -88[rbp]
	sub	rsp, 8
	push	QWORD PTR 16[rbp]
	mov	r9, r8
	mov	r8, rdi
	mov	rdi, rax
	call	baccu_traccu
	add	rsp, 16
.L24:
	mov	eax, DWORD PTR m[rip]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -96[rbp]
	cmp	edx, eax
	jbe	.L25
	mov	eax, DWORD PTR -96[rbp]
	lea	edi, 1[rax]
	mov	r8, QWORD PTR -120[rbp]
	mov	rcx, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR -104[rbp]
	mov	esi, DWORD PTR -92[rbp]
	mov	rax, QWORD PTR -88[rbp]
	sub	rsp, 8
	push	QWORD PTR 16[rbp]
	mov	r9, r8
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, edi
	mov	rdi, rax
	call	baccu_traccu
	add	rsp, 16
.L25:
	cmp	DWORD PTR -92[rbp], 0
	jle	.L26
	mov	eax, DWORD PTR -92[rbp]
	lea	esi, -1[rax]
	mov	r8, QWORD PTR -120[rbp]
	mov	rdi, QWORD PTR -112[rbp]
	mov	rcx, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR -96[rbp]
	mov	rax, QWORD PTR -88[rbp]
	sub	rsp, 8
	push	QWORD PTR 16[rbp]
	mov	r9, r8
	mov	r8, rdi
	mov	rdi, rax
	call	baccu_traccu
	add	rsp, 16
.L26:
	cmp	DWORD PTR -96[rbp], 0
	jle	.L27
	mov	eax, DWORD PTR -96[rbp]
	lea	edi, -1[rax]
	mov	r8, QWORD PTR -120[rbp]
	mov	rcx, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR -104[rbp]
	mov	esi, DWORD PTR -92[rbp]
	mov	rax, QWORD PTR -88[rbp]
	sub	rsp, 8
	push	QWORD PTR 16[rbp]
	mov	r9, r8
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, edi
	mov	rdi, rax
	call	baccu_traccu
	add	rsp, 16
.L27:
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	mov	edx, ebx
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	cmp	eax, 70
	je	.L15
	mov	eax, DWORD PTR counter[rip]
	sub	eax, 1
	mov	DWORD PTR counter[rip], eax
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	mov	edx, ebx
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	mov	DWORD PTR [rdx+rax*4], 46
	mov	eax, DWORD PTR counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR counter[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	DWORD PTR 4[rax], 0
.L15:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	baccu_traccu, .-baccu_traccu
	.section	.rodata
.LC3:
	.string	"r"
.LC4:
	.string	"maze.txt"
.LC5:
	.string	" %u %u \n"
.LC6:
	.string	" %d %d \n"
.LC7:
	.string	" %c \n"
.LC8:
	.string	"Shortest solution"
.LC9:
	.string	"Sol doesn't exist"
	.text
	.globl	main
	.type	main, @function
main:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 440
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	QWORD PTR -408[rbp], rax
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	fopen@PLT
	mov	QWORD PTR -128[rbp], rax
	mov	rax, QWORD PTR -128[rbp]
	lea	rcx, m[rip]
	lea	rdx, n[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	esi, DWORD PTR m[rip]
	mov	edi, DWORD PTR n[rip]
	mov	eax, esi
	sub	rax, 1
	mov	QWORD PTR -136[rbp], rax
	mov	eax, esi
	mov	QWORD PTR -368[rbp], rax
	mov	QWORD PTR -360[rbp], 0
	mov	eax, edi
	sub	rax, 1
	mov	QWORD PTR -144[rbp], rax
	mov	eax, esi
	mov	r14, rax
	mov	r15d, 0
	mov	eax, edi
	mov	r12, rax
	mov	r13d, 0
	mov	rdx, r15
	imul	rdx, r12
	mov	rax, r13
	imul	rax, r14
	lea	rcx, [rdx+rax]
	mov	rax, r14
	mul	r12
	add	rcx, rdx
	mov	rdx, rcx
	mov	eax, esi
	mov	QWORD PTR -208[rbp], rax
	mov	QWORD PTR -200[rbp], 0
	mov	eax, edi
	mov	QWORD PTR -224[rbp], rax
	mov	QWORD PTR -216[rbp], 0
	mov	r10, QWORD PTR -208[rbp]
	mov	r11, QWORD PTR -200[rbp]
	mov	rdx, r11
	mov	r8, QWORD PTR -224[rbp]
	mov	r9, QWORD PTR -216[rbp]
	imul	rdx, r8
	mov	rax, r9
	imul	rax, r10
	lea	rcx, [rdx+rax]
	mov	rax, r10
	mul	r8
	add	rcx, rdx
	mov	rdx, rcx
	mov	edx, esi
	mov	eax, edi
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L29:
	cmp	rsp, rcx
	je	.L30
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L29
.L30:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L31
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L31:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -152[rbp], rax
	mov	esi, DWORD PTR m[rip]
	mov	edi, DWORD PTR n[rip]
	mov	eax, esi
	sub	rax, 1
	mov	QWORD PTR -160[rbp], rax
	mov	eax, esi
	mov	QWORD PTR -384[rbp], rax
	mov	QWORD PTR -376[rbp], 0
	mov	eax, esi
	lea	rbx, 0[0+rax*4]
	mov	eax, edi
	sub	rax, 1
	mov	QWORD PTR -168[rbp], rax
	mov	eax, esi
	mov	QWORD PTR -240[rbp], rax
	mov	QWORD PTR -232[rbp], 0
	mov	eax, edi
	mov	QWORD PTR -256[rbp], rax
	mov	QWORD PTR -248[rbp], 0
	mov	r9, QWORD PTR -240[rbp]
	mov	r10, QWORD PTR -232[rbp]
	mov	rdx, r10
	mov	r11, QWORD PTR -256[rbp]
	mov	r12, QWORD PTR -248[rbp]
	imul	rdx, r11
	mov	rax, r12
	imul	rax, r9
	lea	rcx, [rdx+rax]
	mov	rax, r9
	mul	r11
	add	rcx, rdx
	mov	rdx, rcx
	mov	eax, esi
	mov	QWORD PTR -272[rbp], rax
	mov	QWORD PTR -264[rbp], 0
	mov	eax, edi
	mov	QWORD PTR -288[rbp], rax
	mov	QWORD PTR -280[rbp], 0
	mov	r10, QWORD PTR -272[rbp]
	mov	r11, QWORD PTR -264[rbp]
	mov	rdx, r11
	mov	r14, QWORD PTR -288[rbp]
	mov	r15, QWORD PTR -280[rbp]
	imul	rdx, r14
	mov	rax, r15
	imul	rax, r10
	lea	rcx, [rdx+rax]
	mov	rax, r10
	mul	r14
	add	rcx, rdx
	mov	rdx, rcx
	mov	edx, esi
	mov	eax, edi
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L32:
	cmp	rsp, rcx
	je	.L33
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L32
.L33:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L34
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L34:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -120[rbp], rax
	mov	esi, DWORD PTR m[rip]
	mov	edi, DWORD PTR n[rip]
	mov	eax, esi
	sub	rax, 1
	mov	QWORD PTR -112[rbp], rax
	mov	eax, esi
	mov	QWORD PTR -400[rbp], rax
	mov	QWORD PTR -392[rbp], 0
	mov	eax, edi
	sub	rax, 1
	mov	QWORD PTR -104[rbp], rax
	mov	eax, esi
	mov	QWORD PTR -304[rbp], rax
	mov	QWORD PTR -296[rbp], 0
	mov	eax, edi
	mov	QWORD PTR -320[rbp], rax
	mov	QWORD PTR -312[rbp], 0
	mov	r8, QWORD PTR -304[rbp]
	mov	r9, QWORD PTR -296[rbp]
	mov	rdx, r9
	mov	r10, QWORD PTR -320[rbp]
	mov	r11, QWORD PTR -312[rbp]
	imul	rdx, r10
	mov	rax, r11
	imul	rax, r8
	lea	rcx, [rdx+rax]
	mov	rax, r8
	mul	r10
	add	rcx, rdx
	mov	rdx, rcx
	mov	eax, esi
	mov	QWORD PTR -336[rbp], rax
	mov	QWORD PTR -328[rbp], 0
	mov	eax, edi
	mov	QWORD PTR -352[rbp], rax
	mov	QWORD PTR -344[rbp], 0
	mov	r8, QWORD PTR -336[rbp]
	mov	r9, QWORD PTR -328[rbp]
	mov	rdx, r9
	mov	r14, QWORD PTR -352[rbp]
	mov	r15, QWORD PTR -344[rbp]
	imul	rdx, r14
	mov	rax, r15
	imul	rax, r8
	lea	rcx, [rdx+rax]
	mov	rax, r8
	mul	r14
	add	rcx, rdx
	mov	rdx, rcx
	mov	edx, esi
	mov	eax, edi
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L35:
	cmp	rsp, rdx
	je	.L36
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L35
.L36:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L37
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L37:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -96[rbp], rax
	mov	edx, DWORD PTR n[rip]
	mov	eax, DWORD PTR m[rip]
	imul	eax, edx
	mov	edx, eax
	sub	rdx, 1
	mov	QWORD PTR -88[rbp], rdx
	mov	edx, eax
	mov	QWORD PTR -432[rbp], rdx
	mov	QWORD PTR -424[rbp], 0
	mov	edx, eax
	mov	QWORD PTR -448[rbp], rdx
	mov	QWORD PTR -440[rbp], 0
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L38:
	cmp	rsp, rdx
	je	.L39
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L38
.L39:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L40
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L40:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -80[rbp], rax
	mov	edx, DWORD PTR n[rip]
	mov	eax, DWORD PTR m[rip]
	imul	eax, edx
	mov	edx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	mov	edx, eax
	mov	QWORD PTR -464[rbp], rdx
	mov	QWORD PTR -456[rbp], 0
	mov	edx, eax
	mov	QWORD PTR -480[rbp], rdx
	mov	QWORD PTR -472[rbp], 0
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L41:
	cmp	rsp, rdx
	je	.L42
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L41
.L42:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L43
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L43:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -64[rbp], rax
	mov	edx, DWORD PTR n[rip]
	mov	eax, DWORD PTR m[rip]
	imul	eax, edx
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	edx, DWORD PTR n[rip]
	mov	eax, DWORD PTR m[rip]
	imul	eax, edx
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -184[rbp]
	lea	rdx, -188[rbp]
	mov	rax, QWORD PTR -128[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -172[rbp], 0
	jmp	.L44
.L47:
	mov	DWORD PTR -176[rbp], 0
	jmp	.L45
.L46:
	mov	rdx, rbx
	shr	rdx, 2
	mov	eax, DWORD PTR -176[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -172[rbp]
	cdqe
	imul	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -120[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -128[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	add	DWORD PTR -176[rbp], 1
.L45:
	mov	edx, DWORD PTR -176[rbp]
	mov	eax, DWORD PTR m[rip]
	cmp	edx, eax
	jb	.L46
	add	DWORD PTR -172[rbp], 1
.L44:
	mov	edx, DWORD PTR -172[rbp]
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jb	.L47
	mov	rdx, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	copy_maze
	mov	edx, DWORD PTR -184[rbp]
	mov	esi, DWORD PTR -188[rbp]
	mov	r8, QWORD PTR -80[rbp]
	mov	rdi, QWORD PTR -96[rbp]
	mov	rcx, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR -120[rbp]
	sub	rsp, 8
	push	QWORD PTR -64[rbp]
	mov	r9, r8
	mov	r8, rdi
	mov	rdi, rax
	call	baccu_traccu
	add	rsp, 16
	mov	eax, DWORD PTR sw[rip]
	test	eax, eax
	je	.L48
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	print_maze_c
	mov	DWORD PTR -180[rbp], 0
	jmp	.L49
.L50:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -180[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR 4[rax+rdx*8]
	mov	rax, QWORD PTR -64[rbp]
	mov	ecx, DWORD PTR -180[rbp]
	movsx	rcx, ecx
	mov	eax, DWORD PTR [rax+rcx*8]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -180[rbp], 1
.L49:
	mov	eax, DWORD PTR shortest_counter[rip]
	sub	eax, 1
	cmp	DWORD PTR -180[rbp], eax
	jl	.L50
	jmp	.L51
.L48:
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L51:
	mov	eax, 0
	mov	rsp, QWORD PTR -408[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L53
	call	__stack_chk_fail@PLT
.L53:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"414657.c"
	.text
	.comm	n,4,4
	.comm	m,4,4
	.global	shortest_counter
	.data
	.align	2
	.type	shortest_counter, %object
	.size	shortest_counter, 4
shortest_counter:
	.word	2147483647
	.comm	counter,4,4
	.comm	sw,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%c \000"
	.text
	.align	2
	.global	print_maze_c
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_maze_c, %function
print_maze_c:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	ldr	r3, .L6
	ldr	r4, [r3]
	mov	r3, r4
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	mov	r0, r4
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L2
.L5:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L3
.L4:
	ldr	r3, [fp, #-20]
	mul	r3, r4, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, r3
	ldr	r0, .L6+4
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L3:
	ldr	r2, [fp, #-24]
	ldr	r3, .L6
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L4
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	ldr	r2, [fp, #-20]
	ldr	r3, .L6+8
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L5
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L7:
	.align	2
.L6:
	.word	m
	.word	.LC0
	.word	n
	.size	print_maze_c, .-print_maze_c
	.align	2
	.global	copy_maze
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy_maze, %function
copy_maze:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L13
	ldr	ip, [r3]
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, .L13
	ldr	lr, [r3]
	mov	r3, lr
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	mov	r0, lr
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L9
.L12:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L10
.L11:
	ldr	r3, [fp, #-16]
	mul	r3, lr, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	mul	r3, ip, r3
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r1, [fp, #-20]
	ldr	r1, [r2, r1, lsl #2]
	ldr	r2, [fp, #-20]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L10:
	ldr	r2, [fp, #-20]
	ldr	r3, .L13
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L11
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L9:
	ldr	r2, [fp, #-16]
	ldr	r3, .L13+4
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L12
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	m
	.word	n
	.size	copy_maze, .-copy_maze
	.align	2
	.global	can_step_here
	.syntax unified
	.arm
	.fpu softvfp
	.type	can_step_here, %function
can_step_here:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, .L19
	ldr	ip, [r3]
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L16
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L16
	ldr	r3, .L19+4
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bcc	.L16
	ldr	r3, .L19
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bcc	.L16
	ldr	r3, [fp, #-16]
	mul	r3, ip, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	ldr	r3, [r3, r2, lsl #2]
	and	r3, r3, #255
	cmp	r3, #46
	beq	.L17
	ldr	r3, [fp, #-16]
	mul	r3, ip, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	ldr	r3, [r3, r2, lsl #2]
	and	r3, r3, #255
	cmp	r3, #70
	bne	.L16
.L17:
	mov	r3, #1
	b	.L18
.L16:
	mov	r3, #0
.L18:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L20:
	.align	2
.L19:
	.word	m
	.word	n
	.size	can_step_here, .-can_step_here
	.section	.rodata
	.align	2
.LC1:
	.ascii	"(%d, %d) \000"
	.align	2
.LC2:
	.ascii	"\012\000"
	.text
	.align	2
	.global	baccu_traccu
	.syntax unified
	.arm
	.fpu softvfp
	.type	baccu_traccu, %function
baccu_traccu:
	@ args = 12, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r3, .L34
	ldr	r3, [r3]
	mov	r2, r3
	sub	r2, r2, #1
	str	r2, [fp, #-24]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, .L34
	ldr	r4, [r3]
	mov	r3, r4
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	mov	r0, r4
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, .L34
	ldr	r3, [r3]
	mov	r2, r3
	sub	r2, r2, #1
	str	r2, [fp, #-16]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-44]
	mul	r3, r4, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r2, [fp, #-48]
	ldr	r3, [r3, r2, lsl #2]
	and	r3, r3, #255
	cmp	r3, #70
	bne	.L22
	ldr	r3, .L34+4
	mov	r2, #1
	str	r2, [r3]
	ldr	r0, [fp, #-52]
	bl	print_maze_c
	ldr	r3, .L34+8
	ldr	r3, [r3]
	lsl	r3, r3, #3
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldr	r2, [fp, #-44]
	str	r2, [r3]
	ldr	r3, .L34+8
	ldr	r3, [r3]
	lsl	r3, r3, #3
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldr	r2, [fp, #-48]
	str	r2, [r3, #4]
	ldr	r3, .L34+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L34+8
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L23
.L24:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r0, .L34+12
	bl	printf
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L23:
	ldr	r3, .L34+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L24
	ldr	r0, .L34+16
	bl	puts
	ldr	r3, .L34+20
	ldr	r2, [r3]
	ldr	r3, .L34+8
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L25
	ldr	r3, .L34+8
	ldr	r3, [r3]
	ldr	r2, .L34+20
	str	r3, [r2]
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #4]
	bl	copy_maze
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L26
.L27:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	ldr	r2, [fp, #8]
	add	r2, r2, r3
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	ldr	r1, [fp, #12]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	ldr	r2, [fp, #8]
	add	r2, r2, r3
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	ldr	r1, [fp, #12]
	add	r3, r1, r3
	ldr	r2, [r2, #4]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L26:
	ldr	r3, .L34+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L27
.L25:
	ldr	r3, .L34+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L34+8
	str	r3, [r2]
	b	.L21
.L22:
	ldr	r2, [fp, #-52]
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-44]
	bl	can_step_here
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r3, .L34+8
	ldr	r3, [r3]
	lsl	r3, r3, #3
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldr	r2, [fp, #-44]
	str	r2, [r3]
	ldr	r3, .L34+8
	ldr	r3, [r3]
	lsl	r3, r3, #3
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldr	r2, [fp, #-48]
	str	r2, [r3, #4]
	ldr	r3, .L34+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L34+8
	str	r3, [r2]
	ldr	r3, [fp, #-44]
	mul	r3, r4, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r2, [fp, #-48]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #70
	beq	.L29
	ldr	r3, [fp, #-44]
	mul	r3, r4, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r2, [fp, #-48]
	mov	r1, #120
	str	r1, [r3, r2, lsl #2]
.L29:
	ldr	r3, .L34+24
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	bls	.L30
	ldr	r3, [fp, #-44]
	add	r1, r3, #1
	ldr	r3, [fp, #12]
	str	r3, [sp, #8]
	ldr	r3, [fp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-48]
	ldr	r0, [fp, #-40]
	bl	baccu_traccu
.L30:
	ldr	r3, .L34
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	bls	.L31
	ldr	r3, [fp, #-48]
	add	r2, r3, #1
	ldr	r3, [fp, #12]
	str	r3, [sp, #8]
	ldr	r3, [fp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-52]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	baccu_traccu
.L31:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	ble	.L32
	ldr	r3, [fp, #-44]
	sub	r1, r3, #1
	ldr	r3, [fp, #12]
	str	r3, [sp, #8]
	ldr	r3, [fp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-48]
	ldr	r0, [fp, #-40]
	bl	baccu_traccu
.L32:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	ble	.L33
	ldr	r3, [fp, #-48]
	sub	r2, r3, #1
	ldr	r3, [fp, #12]
	str	r3, [sp, #8]
	ldr	r3, [fp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-52]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	baccu_traccu
.L33:
	ldr	r3, [fp, #-44]
	mul	r3, r4, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r2, [fp, #-48]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #70
	beq	.L21
	ldr	r3, .L34+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L34+8
	str	r3, [r2]
	ldr	r3, [fp, #-44]
	mul	r3, r4, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r2, [fp, #-48]
	mov	r1, #46
	str	r1, [r3, r2, lsl #2]
	ldr	r3, .L34+8
	ldr	r3, [r3]
	lsl	r3, r3, #3
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L34+8
	ldr	r3, [r3]
	lsl	r3, r3, #3
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #4]
.L21:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L35:
	.align	2
.L34:
	.word	m
	.word	sw
	.word	counter
	.word	.LC1
	.word	.LC2
	.word	shortest_counter
	.word	n
	.size	baccu_traccu, .-baccu_traccu
	.section	.rodata
	.align	2
.LC3:
	.ascii	"r\000"
	.align	2
.LC4:
	.ascii	"maze.txt\000"
	.align	2
.LC5:
	.ascii	" %u %u \012\000"
	.align	2
.LC6:
	.ascii	" %d %d \012\000"
	.align	2
.LC7:
	.ascii	" %c \012\000"
	.align	2
.LC8:
	.ascii	"Shortest solution\000"
	.align	2
.LC9:
	.ascii	"Sol doesn't exist\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #100
	ldr	r3, .L47
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, sp
	mov	r8, r3
	ldr	r1, .L47+4
	ldr	r0, .L47+8
	bl	fopen
	str	r0, [fp, #-80]
	ldr	r3, .L47+12
	ldr	r2, .L47+16
	ldr	r1, .L47+20
	ldr	r0, [fp, #-80]
	bl	__isoc99_fscanf
	ldr	r3, .L47+12
	ldr	ip, [r3]
	ldr	r3, .L47+16
	ldr	lr, [r3]
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-84]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, lr
	sub	r3, r3, #1
	str	r3, [fp, #-88]
	mov	r4, ip
	mov	r5, #0
	mov	r0, lr
	mov	r1, #0
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	r6, r2, r3
	umull	r2, r3, r4, r0
	add	r1, r6, r3
	mov	r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r4, ip
	mov	r5, #0
	mov	r0, lr
	mov	r1, #0
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	r6, r2, r3
	umull	r2, r3, r4, r0
	add	r1, r6, r3
	mov	r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mul	r3, lr, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #16
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-92]
	ldr	r3, .L47+12
	ldr	ip, [r3]
	ldr	r3, .L47+16
	ldr	lr, [r3]
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-96]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	lsl	r6, ip, #2
	mov	r3, lr
	sub	r3, r3, #1
	str	r3, [fp, #-100]
	mov	r4, ip
	mov	r5, #0
	mov	r0, lr
	mov	r1, #0
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	r7, r2, r3
	umull	r2, r3, r4, r0
	add	r1, r7, r3
	mov	r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r4, ip
	mov	r5, #0
	mov	r0, lr
	mov	r1, #0
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	r7, r2, r3
	umull	r2, r3, r4, r0
	add	r1, r7, r3
	mov	r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mul	r3, lr, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #16
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-64]
	ldr	r3, .L47+12
	ldr	ip, [r3]
	ldr	r3, .L47+16
	ldr	lr, [r3]
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-60]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, lr
	sub	r3, r3, #1
	str	r3, [fp, #-56]
	mov	r4, ip
	mov	r5, #0
	mov	r0, lr
	mov	r1, #0
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	r7, r2, r3
	umull	r2, r3, r4, r0
	add	r1, r7, r3
	mov	r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r4, ip
	mov	r5, #0
	mov	r0, lr
	mov	r1, #0
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	r7, r2, r3
	umull	r2, r3, r4, r0
	add	r1, r7, r3
	mov	r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mul	r3, lr, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #16
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-52]
	ldr	r3, .L47+16
	ldr	r3, [r3]
	ldr	r2, .L47+12
	ldr	r2, [r2]
	mul	ip, r2, r3
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-48]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	lsl	r3, ip, #3
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #16
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-44]
	ldr	r3, .L47+16
	ldr	r3, [r3]
	ldr	r2, .L47+12
	ldr	r2, [r2]
	mul	ip, r2, r3
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-40]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	lsl	r3, ip, #3
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #16
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-36]
	ldr	r3, .L47+16
	ldr	r3, [r3]
	ldr	r2, .L47+12
	ldr	r2, [r2]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-44]
	bl	memset
	ldr	r3, .L47+16
	ldr	r3, [r3]
	ldr	r2, .L47+12
	ldr	r2, [r2]
	mul	r3, r2, r3
	lsl	r3, r3, #3
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-36]
	bl	memset
	sub	r3, fp, #104
	sub	r2, fp, #108
	ldr	r1, .L47+24
	ldr	r0, [fp, #-80]
	bl	__isoc99_fscanf
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L37
.L40:
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L38
.L39:
	lsr	r3, r6, #2
	ldr	r2, [fp, #-68]
	mul	r2, r3, r2
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L47+28
	ldr	r0, [fp, #-80]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L38:
	ldr	r2, [fp, #-72]
	ldr	r3, .L47+12
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L39
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L37:
	ldr	r2, [fp, #-68]
	ldr	r3, .L47+16
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L40
	ldr	r1, [fp, #-64]
	ldr	r0, [fp, #-92]
	bl	copy_maze
	ldr	r1, [fp, #-108]
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-36]
	str	r3, [sp, #8]
	ldr	r3, [fp, #-44]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-52]
	str	r3, [sp]
	ldr	r3, [fp, #-92]
	ldr	r0, [fp, #-64]
	bl	baccu_traccu
	ldr	r3, .L47+32
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L41
	ldr	r0, .L47+36
	bl	puts
	ldr	r0, [fp, #-52]
	bl	print_maze_c
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L42
.L43:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-76]
	ldr	r1, [r3, r2, lsl #3]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r0, .L47+40
	bl	printf
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L42:
	ldr	r3, .L47+44
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	blt	.L43
	b	.L44
.L41:
	ldr	r0, .L47+48
	bl	printf
.L44:
	mov	r3, #0
	mov	sp, r8
	ldr	r2, .L47
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L46
	bl	__stack_chk_fail
.L46:
	mov	r0, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC10
	.word	.LC3
	.word	.LC4
	.word	m
	.word	n
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	sw
	.word	.LC8
	.word	.LC1
	.word	shortest_counter
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
