	.file	"732429.c"
	.intel_syntax noprefix
	.text
	.globl	getManhatanDistance
	.type	getManhatanDistance, @function
getManhatanDistance:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movq	rax, xmm0
	movapd	xmm0, xmm1
	mov	rdx, rax
	movq	rax, xmm0
	movq	xmm1, rdx
	movq	xmm0, rax
	movsd	QWORD PTR -16[rbp], xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR -16[rbp]
	movq	xmm1, QWORD PTR .LC0[rip]
	andpd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	movq	xmm2, QWORD PTR .LC0[rip]
	andpd	xmm0, xmm2
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getManhatanDistance, .-getManhatanDistance
	.globl	isVisited
	.type	isVisited, @function
isVisited:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	movq	rax, xmm0
	movapd	xmm0, xmm1
	mov	rdx, rax
	movq	rax, xmm0
	movq	xmm1, rdx
	movq	xmm0, rax
	movsd	QWORD PTR -40[rbp], xmm1
	movsd	QWORD PTR -32[rbp], xmm0
	mov	QWORD PTR -16[rbp], 0
	jmp	.L4
.L9:
	mov	rax, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR [rax]
	movsd	xmm1, QWORD PTR -40[rbp]
	ucomisd	xmm0, xmm1
	jp	.L5
	ucomisd	xmm0, xmm1
	jne	.L5
	mov	rax, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR 8[rax]
	movsd	xmm1, QWORD PTR -32[rbp]
	ucomisd	xmm0, xmm1
	jp	.L5
	ucomisd	xmm0, xmm1
	jne	.L5
	mov	eax, 1
	jmp	.L8
.L5:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -24[rbp], rax
.L4:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L9
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR -40[rbp]
	movsd	QWORD PTR [rax], xmm0
	movsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR 8[rax], xmm0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	eax, 0
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	isVisited, .-isVisited
	.globl	solve
	.type	solve, @function
solve:
.LFB8:
	.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, 120
	.cfi_offset 3, -24
	mov	QWORD PTR -120[rbp], rdi
	mov	DWORD PTR -112[rbp], 0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -32[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC2[rip]
	movsd	QWORD PTR -24[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -48[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -40[rbp], xmm0
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	pxor	xmm0, xmm0
	movsd	QWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -104[rbp]
	pxor	xmm0, xmm0
	movsd	QWORD PTR 8[rax], xmm0
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -120[rbp]
	mov	QWORD PTR -96[rbp], rax
	pxor	xmm0, xmm0
	movsd	QWORD PTR -56[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -64[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC2[rip]
	movsd	QWORD PTR -72[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -80[rbp], xmm0
	jmp	.L13
.L19:
	mov	rax, QWORD PTR -96[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 76
	jne	.L14
	pxor	xmm1, xmm1
	movss	xmm0, DWORD PTR .LC4[rip]
	jmp	.L15
.L14:
	movss	xmm1, DWORD PTR .LC5[rip]
	movss	xmm0, DWORD PTR .LC6[rip]
.L15:
	cvtss2sd	xmm1, xmm1
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movsd	xmm0, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -80[rbp]
	movapd	xmm3, xmm2
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	__muldc3@PLT
	movq	rax, xmm0
	movapd	xmm0, xmm1
	mov	QWORD PTR -32[rbp], rax
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR -80[rbp], xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR -72[rbp], xmm0
	mov	DWORD PTR -108[rbp], 0
	jmp	.L16
.L18:
	movsd	xmm0, QWORD PTR -80[rbp]
	movapd	xmm1, xmm0
	addsd	xmm1, QWORD PTR -64[rbp]
	movsd	xmm0, QWORD PTR -72[rbp]
	addsd	xmm0, QWORD PTR -56[rbp]
	movsd	QWORD PTR -48[rbp], xmm1
	movsd	QWORD PTR -40[rbp], xmm0
	movsd	QWORD PTR -64[rbp], xmm1
	movsd	QWORD PTR -56[rbp], xmm0
	cmp	DWORD PTR -112[rbp], 0
	jne	.L17
	mov	rdx, QWORD PTR -48[rbp]
	movsd	xmm1, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -104[rbp]
	movq	xmm0, rdx
	mov	rdi, rax
	call	isVisited
	test	eax, eax
	je	.L17
	mov	rax, QWORD PTR -48[rbp]
	movsd	xmm1, QWORD PTR -40[rbp]
	movq	xmm0, rax
	call	getManhatanDistance
	mov	DWORD PTR -112[rbp], eax
.L17:
	add	DWORD PTR -108[rbp], 1
.L16:
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -108[rbp], eax
	jl	.L18
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -96[rbp], rax
.L13:
	cmp	QWORD PTR -96[rbp], 0
	jne	.L19
	jmp	.L20
.L21:
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	free@PLT
.L20:
	cmp	QWORD PTR -104[rbp], 0
	jne	.L21
	mov	rax, QWORD PTR -48[rbp]
	movsd	xmm1, QWORD PTR -40[rbp]
	movq	xmm0, rax
	call	getManhatanDistance
	mov	edx, eax
	movabs	rax, -4294967296
	and	rax, rbx
	or	rax, rdx
	mov	rbx, rax
	mov	eax, DWORD PTR -112[rbp]
	sal	rax, 32
	mov	edx, ebx
	or	rax, rdx
	mov	rbx, rax
	mov	rax, rbx
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	solve, .-solve
	.section	.rodata
.LC7:
	.string	"r"
.LC8:
	.string	"Error reading input file!\n"
	.text
	.globl	getInput
	.type	getInput, @function
getInput:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L24
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L24:
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -44[rbp], 0
	mov	BYTE PTR -45[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	jmp	.L25
.L30:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -44[rbp], eax
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 1024
	test	eax, eax
	je	.L26
	mov	DWORD PTR -36[rbp], 0
	mov	eax, DWORD PTR -44[rbp]
	mov	BYTE PTR -45[rbp], al
	jmp	.L25
.L26:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L27
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, 48
	add	eax, edx
	mov	DWORD PTR -40[rbp], eax
	jmp	.L25
.L27:
	cmp	DWORD PTR -36[rbp], 0
	jne	.L25
	mov	DWORD PTR -36[rbp], 1
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR -45[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	DWORD PTR -40[rbp], 0
	cmp	QWORD PTR -24[rbp], 0
	je	.L28
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	jmp	.L29
.L28:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -32[rbp], rax
.L29:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
.L25:
	cmp	DWORD PTR -44[rbp], -1
	jne	.L30
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -32[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	getInput, .-getInput
	.globl	freeInput
	.type	freeInput, @function
freeInput:
.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	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L33
.L34:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L33:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L34
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	freeInput, .-freeInput
	.section	.rodata
	.align 8
.LC9:
	.string	"Please, add input file path as parameter"
.LC10:
	.string	"P1: %d\n"
.LC11:
	.string	"P2: %d\n\n"
.LC13:
	.string	"Time: %.7f\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -68[rbp], 2
	je	.L36
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L36:
	lea	rax, -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	getInput
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	solve
	mov	QWORD PTR -56[rbp], rax
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	freeInput
	mov	eax, DWORD PTR -56[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	sub	rax, rdx
	imul	rdx, rax, 1000000
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -40[rbp]
	sub	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC12[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC13[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.section	.rodata
	.align 16
.LC0:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC2:
	.long	0
	.long	1072693248
	.align 4
.LC4:
	.long	1065353216
	.align 4
.LC5:
	.long	-2147483648
	.align 4
.LC6:
	.long	-1082130432
	.align 8
.LC12:
	.long	0
	.long	1093567616
	.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	"732429.c"
	.text
	.global	__aeabi_dadd
	.global	__aeabi_d2iz
	.align	2
	.global	getManhatanDistance
	.syntax unified
	.arm
	.fpu softvfp
	.type	getManhatanDistance, %function
getManhatanDistance:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #16
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	mov	r4, r2
	bic	r5, r3, #-2147483648
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	mov	r6, r2
	bic	r7, r3, #-2147483648
	mov	r2, r6
	mov	r3, r7
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
	.size	getManhatanDistance, .-getManhatanDistance
	.global	__aeabi_dcmpeq
	.align	2
	.global	isVisited
	.syntax unified
	.arm
	.fpu softvfp
	.type	isVisited, %function
isVisited:
	@ args = 16, pretend = 8, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #8
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	add	r1, fp, #4
	stm	r1, {r2, r3}
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L4
.L9:
	ldr	r3, [fp, #-16]
	ldmia	r3, {r0-r1}
	ldmib	fp, {r2-r3}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-16]
	add	r1, r3, #8
	ldmia	r1, {r0-r1}
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	mov	r3, #1
	b	.L8
.L5:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-16]
.L4:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L9
	mov	r0, #24
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldmib	fp, {r2-r3}
	stm	r1, {r2-r3}
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	str	r2, [r1, #8]
	str	r3, [r1, #12]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #16]
	mov	r3, #0
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #8
	bx	lr
	.size	isVisited, .-isVisited
	.global	__aeabi_f2d
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	solve
	.syntax unified
	.arm
	.fpu softvfp
	.type	solve, %function
solve:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #156
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-120]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r2, #0
	ldr	r3, .L24+4
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r0, #24
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-116]
	ldr	r1, [fp, #-116]
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r1, [fp, #-116]
	mov	r2, #0
	mov	r3, #0
	str	r2, [r1, #8]
	str	r3, [r1, #12]
	ldr	r3, [fp, #-116]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, [fp, #-132]
	str	r3, [fp, #-112]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	mov	r2, #0
	ldr	r3, .L24+4
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-100]
	str	r3, [fp, #-96]
	b	.L13
.L19:
	ldr	r3, [fp, #-112]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #76
	bne	.L14
	mov	r2, #0
	mov	r3, #1065353216
	b	.L15
.L14:
	mov	r2, #-2147483648
	ldr	r3, .L24+8
.L15:
	mov	r6, r3
	mov	r0, r2
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	mov	r0, r6
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #148
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	str	r4, [sp, #8]
	str	r5, [sp, #12]
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #100
	ldmia	r3, {r2-r3}
	mov	r0, r1
	bl	__muldc3
	sub	r3, fp, #148
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	sub	r3, fp, #140
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-100]
	str	r3, [fp, #-96]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L16
.L18:
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	sub	r1, fp, #100
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	sub	r1, fp, #92
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r4, [fp, #-60]
	str	r5, [fp, #-56]
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	str	r4, [fp, #-84]
	str	r5, [fp, #-80]
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-48]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-52]
	str	r3, [sp]
	sub	r3, fp, #60
	ldm	r3, {r2, r3}
	ldr	r0, [fp, #-116]
	bl	isVisited
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	bl	getManhatanDistance
	str	r0, [fp, #-120]
.L17:
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L16:
	ldr	r3, [fp, #-112]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-108]
	cmp	r2, r3
	blt	.L18
	ldr	r3, [fp, #-112]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-112]
.L13:
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L19
	b	.L20
.L21:
	ldr	r3, [fp, #-116]
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-116]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-116]
	ldr	r0, [fp, #-104]
	bl	free
.L20:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bne	.L21
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	bl	getManhatanDistance
	mov	r2, r0
	ldr	r3, [fp, #-128]
	str	r2, [r3]
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-120]
	str	r2, [r3, #4]
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	ldr	r0, [fp, #-128]
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC0
	.word	1072693248
	.word	-1082130432
	.size	solve, .-solve
	.section	.rodata
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"Error reading input file!\012\000"
	.text
	.align	2
	.global	getInput
	.syntax unified
	.arm
	.fpu softvfp
	.type	getInput, %function
getInput:
	@ 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]
	ldr	r1, .L35
	ldr	r0, [fp, #-40]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L27
	ldr	r0, .L35+4
	bl	perror
	mov	r0, #1
	bl	exit
.L27:
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	strb	r3, [fp, #-33]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L28
.L33:
	ldr	r0, [fp, #-12]
	bl	getc
	str	r0, [fp, #-24]
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #1024
	cmp	r3, #0
	beq	.L29
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	strb	r3, [fp, #-33]
	b	.L28
.L29:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L30
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-24]
	sub	r3, r3, #48
	add	r3, r2, r3
	str	r3, [fp, #-20]
	b	.L28
.L30:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L28
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r2, [fp, #-33]
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #8]
	b	.L32
.L31:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-32]
.L32:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-28]
.L28:
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L33
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r3, [fp, #-32]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC1
	.word	.LC2
	.size	getInput, .-getInput
	.align	2
	.global	freeInput
	.syntax unified
	.arm
	.fpu softvfp
	.type	freeInput, %function
freeInput:
	@ 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]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	b	.L38
.L39:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	free
.L38:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L39
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	freeInput, .-freeInput
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Please, add input file path as parameter\000"
	.align	2
.LC4:
	.ascii	"P1: %d\012\000"
	.align	2
.LC5:
	.ascii	"P2: %d\012\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC6:
	.ascii	"Time: %.7f\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	ldr	r3, .L44
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	beq	.L41
	ldr	r0, .L44+4
	bl	perror
	mov	r0, #1
	bl	exit
.L41:
	sub	r3, fp, #32
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	getInput
	str	r0, [fp, #-36]
	sub	r3, fp, #16
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	solve
	sub	r3, fp, #24
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r0, [fp, #-36]
	bl	freeInput
	ldr	r3, [fp, #-16]
	mov	r1, r3
	ldr	r0, .L44+8
	bl	printf
	ldr	r3, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L44+12
	bl	printf
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-32]
	sub	r1, r2, r3
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L44+16
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L44+20
	bl	printf
	mov	r3, #0
	ldr	r2, .L44
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L43
	bl	__stack_chk_fail
.L43:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	.LC7
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	1093567616
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
