	.file	"852785.c"
	.intel_syntax noprefix
	.text
	.globl	CitiesX
	.bss
	.align 8
	.type	CitiesX, @object
	.size	CitiesX, 12
CitiesX:
	.zero	12
	.globl	CitiesY
	.align 8
	.type	CitiesY, @object
	.size	CitiesY, 12
CitiesY:
	.zero	12
	.globl	Path
	.align 16
	.type	Path, @object
	.size	Path, 16
Path:
	.zero	16
	.globl	CalculatedDistances
	.align 32
	.type	CalculatedDistances, @object
	.size	CalculatedDistances, 72
CalculatedDistances:
	.zero	72
	.section	.rodata
	.align 8
.LC0:
	.string	"Now initializing the positions of the cities..."
	.text
	.globl	SetCities
	.type	SetCities, @function
SetCities:
.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, 16
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	call	rand@PLT
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	movss	xmm0, DWORD PTR .LC1[rip]
	mulss	xmm0, xmm1
	movss	xmm1, DWORD PTR .LC2[rip]
	divss	xmm0, xmm1
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, CitiesX[rip]
	movss	DWORD PTR [rdx+rax], xmm0
	call	rand@PLT
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	movss	xmm0, DWORD PTR .LC1[rip]
	mulss	xmm0, xmm1
	movss	xmm1, DWORD PTR .LC2[rip]
	divss	xmm0, xmm1
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, CitiesY[rip]
	movss	DWORD PTR [rdx+rax], xmm0
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L3
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	SetCities, .-SetCities
	.globl	IsInPath2
	.type	IsInPath2, @function
IsInPath2:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L5
.L8:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Path[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L6
	mov	eax, 1
	jmp	.L7
.L6:
	add	DWORD PTR -4[rbp], 1
.L5:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L8
	mov	eax, 0
.L7:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	IsInPath2, .-IsInPath2
	.section	.rodata
.LC3:
	.string	"> The cities are:"
	.align 8
.LC4:
	.string	">> City: %6d  X:%5.2f Y:%5.2f\n"
	.text
	.globl	PrintCities
	.type	PrintCities, @function
PrintCities:
.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, 16
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, CitiesY[rip]
	movss	xmm0, DWORD PTR [rdx+rax]
	cvtss2sd	xmm0, xmm0
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, CitiesX[rip]
	movss	xmm1, DWORD PTR [rdx+rax]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm1
	movq	rdx, xmm2
	mov	eax, DWORD PTR -4[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 2
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L10:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L11
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	PrintCities, .-PrintCities
	.section	.rodata
.LC5:
	.string	"> The path is:"
.LC6:
	.string	">> %d "
	.text
	.globl	PrintPath
	.type	PrintPath, @function
PrintPath:
.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, 16
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Path[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L13:
	cmp	DWORD PTR -4[rbp], 3
	jle	.L14
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	PrintPath, .-PrintPath
	.section	.rodata
	.align 8
.LC7:
	.string	"Now creating a visual map of the cities..."
.LC8:
	.string	"This is the cities' map:"
	.align 8
.LC9:
	.string	"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
.LC10:
	.string	"%8d "
	.text
	.globl	MapCities
	.type	MapCities, @function
MapCities:
.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, 304
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	DWORD PTR -300[rbp], 0
	jmp	.L16
.L19:
	mov	DWORD PTR -296[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -300[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	DWORD PTR -272[rbp+rax*4], -999999
	add	DWORD PTR -296[rbp], 1
.L17:
	cmp	DWORD PTR -296[rbp], 7
	jle	.L18
	add	DWORD PTR -300[rbp], 1
.L16:
	cmp	DWORD PTR -300[rbp], 7
	jle	.L19
	mov	DWORD PTR -292[rbp], 0
	jmp	.L20
.L23:
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, CitiesX[rip]
	movss	xmm0, DWORD PTR [rdx+rax]
	cvttss2si	eax, xmm0
	mov	DWORD PTR -280[rbp], eax
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, CitiesY[rip]
	movss	xmm0, DWORD PTR [rdx+rax]
	cvttss2si	eax, xmm0
	mov	DWORD PTR -276[rbp], eax
	mov	eax, DWORD PTR -280[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -276[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	eax, DWORD PTR -272[rbp+rax*4]
	cmp	eax, -999999
	jne	.L21
	mov	eax, DWORD PTR -280[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -276[rbp]
	cdqe
	sal	rax, 3
	add	rdx, rax
	mov	eax, DWORD PTR -292[rbp]
	mov	DWORD PTR -272[rbp+rdx*4], eax
	jmp	.L22
.L21:
	mov	eax, DWORD PTR -280[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -276[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	DWORD PTR -272[rbp+rax*4], -1
.L22:
	add	DWORD PTR -292[rbp], 1
.L20:
	cmp	DWORD PTR -292[rbp], 2
	jle	.L23
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	DWORD PTR -288[rbp], 0
	jmp	.L24
.L27:
	mov	DWORD PTR -284[rbp], 0
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -284[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -288[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	eax, DWORD PTR -272[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -284[rbp], 1
.L25:
	cmp	DWORD PTR -284[rbp], 7
	jle	.L26
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -288[rbp], 1
.L24:
	cmp	DWORD PTR -288[rbp], 7
	jle	.L27
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	MapCities, .-MapCities
	.globl	Distance
	.type	Distance, @function
Distance:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, CitiesX[rip]
	movss	xmm0, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, CitiesX[rip]
	movss	xmm2, DWORD PTR [rdx+rax]
	movaps	xmm1, xmm0
	subss	xmm1, xmm2
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, CitiesX[rip]
	movss	xmm0, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, CitiesX[rip]
	movss	xmm2, DWORD PTR [rdx+rax]
	subss	xmm0, xmm2
	mulss	xmm1, xmm0
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, CitiesY[rip]
	movss	xmm0, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, CitiesY[rip]
	movss	xmm3, DWORD PTR [rdx+rax]
	movaps	xmm2, xmm0
	subss	xmm2, xmm3
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, CitiesY[rip]
	movss	xmm0, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, CitiesY[rip]
	movss	xmm3, DWORD PTR [rdx+rax]
	subss	xmm0, xmm3
	mulss	xmm0, xmm2
	addss	xmm0, xmm1
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, xmm0
	movq	rax, xmm4
	movq	xmm0, rax
	call	sqrt@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	Distance, .-Distance
	.globl	PathDistance
	.type	PathDistance, @function
PathDistance:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8[rbp], xmm0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L32
.L33:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Path[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, Path[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, edx
	mov	edi, eax
	call	Distance
	movsd	xmm1, QWORD PTR -8[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	add	DWORD PTR -12[rbp], 1
.L32:
	cmp	DWORD PTR -12[rbp], 2
	jle	.L33
	mov	edx, DWORD PTR Path[rip]
	mov	eax, DWORD PTR Path[rip+12]
	mov	esi, edx
	mov	edi, eax
	call	Distance
	movsd	xmm1, QWORD PTR -8[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	PathDistance, .-PathDistance
	.section	.rodata
	.align 8
.LC12:
	.string	"Now calculating distances between all pairs of cities..."
	.text
	.globl	CalculateAllDistances
	.type	CalculateAllDistances, @function
CalculateAllDistances:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -16[rbp], 0
	jmp	.L36
.L39:
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	mov	DWORD PTR -12[rbp], eax
	jmp	.L37
.L38:
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, edx
	mov	edi, eax
	call	Distance
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*8]
	lea	rax, CalculatedDistances[rip]
	movsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR [rdx+rax], xmm0
	mov	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*8]
	lea	rax, CalculatedDistances[rip]
	movsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR [rdx+rax], xmm0
	add	DWORD PTR -12[rbp], 1
.L37:
	cmp	DWORD PTR -12[rbp], 2
	jle	.L38
	add	DWORD PTR -16[rbp], 1
.L36:
	cmp	DWORD PTR -16[rbp], 2
	jle	.L39
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	CalculateAllDistances, .-CalculateAllDistances
	.section	.rodata
.LC14:
	.string	"\ni=%d and currentCity=%d"
.LC15:
	.string	" ===> ABORTED"
	.align 8
.LC16:
	.string	"\nWent from %d to %d with distance %.2lf, so total distance is %.2lf"
	.text
	.globl	FindShortestStepPath
	.type	FindShortestStepPath, @function
FindShortestStepPath:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	pxor	xmm0, xmm0
	movsd	QWORD PTR -24[rbp], xmm0
	mov	DWORD PTR -40[rbp], 1
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR Path[rip], 0
	mov	DWORD PTR Path[rip+12], 0
.L46:
	pxor	xmm0, xmm0
	movsd	QWORD PTR -16[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC13[rip]
	movsd	QWORD PTR -8[rbp], xmm0
	mov	DWORD PTR -32[rbp], -1
	mov	DWORD PTR -28[rbp], 0
	jmp	.L41
.L45:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, edx
	mov	edi, eax
	call	IsInPath2
	test	eax, eax
	je	.L42
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L43
.L42:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*8]
	lea	rax, CalculatedDistances[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	movsd	QWORD PTR -16[rbp], xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	comisd	xmm0, QWORD PTR -16[rbp]
	jbe	.L43
	movsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR -8[rbp], xmm0
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -32[rbp], eax
.L43:
	add	DWORD PTR -28[rbp], 1
.L41:
	cmp	DWORD PTR -28[rbp], 2
	jle	.L45
	mov	eax, DWORD PTR -40[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -40[rbp], edx
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, Path[rip]
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	movsd	xmm0, QWORD PTR -24[rbp]
	addsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rcx
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 2
	call	printf@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -40[rbp], 2
	jle	.L46
	mov	eax, DWORD PTR Path[rip+8]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, CalculatedDistances[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	movsd	xmm1, QWORD PTR -24[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	mov	eax, DWORD PTR Path[rip+8]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, CalculatedDistances[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR Path[rip+8]
	movsd	xmm0, QWORD PTR -24[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rdx
	mov	edx, 0
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 2
	call	printf@PLT
	movsd	xmm0, QWORD PTR -24[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	FindShortestStepPath, .-FindShortestStepPath
	.section	.rodata
	.align 8
.LC17:
	.string	"------------------------------------------------------------------------------"
	.align 8
.LC18:
	.string	"This program searches for the optimal traveling distance between %d cities,\n"
	.align 8
.LC19:
	.string	"spanning in an area of X=(0,%d) and Y=(0,%d)\n"
	.align 8
.LC20:
	.string	"Estimated Total path distance is:%.2lf\n"
	.align 8
.LC21:
	.string	"Exact Total path distance is:%.2lf\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	esi, 3
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, 7
	mov	esi, 7
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	eax, 0
	call	SetCities
	mov	eax, 0
	call	PrintCities
	mov	eax, 0
	call	MapCities
	mov	eax, 0
	call	CalculateAllDistances
	mov	eax, 0
	call	FindShortestStepPath
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rax
	lea	rdi, .LC20[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	call	PathDistance
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC21[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	call	PrintPath
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC1:
	.long	1088421888
	.align 4
.LC2:
	.long	1325400064
	.align 8
.LC13:
	.long	0
	.long	2146435072
	.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	"852785.c"
	.text
	.comm	CitiesX,12,4
	.comm	CitiesY,12,4
	.comm	Path,16,4
	.comm	CalculatedDistances,72,8
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Now initializing the positions of the cities...\000"
	.global	__aeabi_i2f
	.global	__aeabi_fmul
	.global	__aeabi_fdiv
	.text
	.align	2
	.global	SetCities
	.syntax unified
	.arm
	.fpu softvfp
	.type	SetCities, %function
SetCities:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	bl	rand
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L4+4
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, #1325400064
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r1, r3
	ldr	r2, .L4+8
	ldr	r3, [fp, #-8]
	str	r1, [r2, r3, lsl #2]	@ float
	bl	rand
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L4+4
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, #1325400064
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r1, r3
	ldr	r2, .L4+12
	ldr	r3, [fp, #-8]
	str	r1, [r2, r3, lsl #2]	@ float
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L3
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	1088421888
	.word	CitiesX
	.word	CitiesY
	.size	SetCities, .-SetCities
	.align	2
	.global	IsInPath2
	.syntax unified
	.arm
	.fpu softvfp
	.type	IsInPath2, %function
IsInPath2:
	@ 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, #-8]
	b	.L7
.L10:
	ldr	r2, .L11
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L8
	mov	r3, #1
	b	.L9
.L8:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L7:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L10
	mov	r3, #0
.L9:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L12:
	.align	2
.L11:
	.word	Path
	.size	IsInPath2, .-IsInPath2
	.section	.rodata
	.align	2
.LC1:
	.ascii	"> The cities are:\000"
	.global	__aeabi_f2d
	.align	2
.LC2:
	.ascii	">> City: %6d  X:%5.2f Y:%5.2f\012\000"
	.text
	.align	2
	.global	PrintCities
	.syntax unified
	.arm
	.fpu softvfp
	.type	PrintCities, %function
PrintCities:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	ldr	r0, .L16
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L14
.L15:
	ldr	r2, .L16+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r2, .L16+8
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r1, [fp, #-16]
	ldr	r0, .L16+12
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L14:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	ble	.L15
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC1
	.word	CitiesX
	.word	CitiesY
	.word	.LC2
	.size	PrintCities, .-PrintCities
	.section	.rodata
	.align	2
.LC3:
	.ascii	"> The path is:\000"
	.align	2
.LC4:
	.ascii	">> %d \000"
	.text
	.align	2
	.global	PrintPath
	.syntax unified
	.arm
	.fpu softvfp
	.type	PrintPath, %function
PrintPath:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L21
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L19
.L20:
	ldr	r2, .L21+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L21+8
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L19:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	ble	.L20
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC3
	.word	Path
	.word	.LC4
	.size	PrintPath, .-PrintPath
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Now creating a visual map of the cities...\000"
	.global	__aeabi_f2iz
	.align	2
.LC6:
	.ascii	"This is the cities' map:\000"
	.align	2
.LC7:
	.ascii	"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
	.ascii	"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
	.ascii	"~~~~~~~~~\000"
	.align	2
.LC8:
	.ascii	"%8d \000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	MapCities
	.syntax unified
	.arm
	.fpu softvfp
	.type	MapCities, %function
MapCities:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L37+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-292]
	b	.L24
.L27:
	mov	r3, #0
	str	r3, [fp, #-288]
	b	.L25
.L26:
	ldr	r3, [fp, #-288]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-292]
	add	r3, r2, r3
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, .L37+8
	str	r2, [r3, #-260]
	ldr	r3, [fp, #-288]
	add	r3, r3, #1
	str	r3, [fp, #-288]
.L25:
	ldr	r3, [fp, #-288]
	cmp	r3, #7
	ble	.L26
	ldr	r3, [fp, #-292]
	add	r3, r3, #1
	str	r3, [fp, #-292]
.L24:
	ldr	r3, [fp, #-292]
	cmp	r3, #7
	ble	.L27
	mov	r3, #0
	str	r3, [fp, #-284]
	b	.L28
.L31:
	ldr	r2, .L37+12
	ldr	r3, [fp, #-284]
	ldr	r3, [r2, r3, lsl #2]	@ float
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r3, r0
	str	r3, [fp, #-272]
	ldr	r2, .L37+16
	ldr	r3, [fp, #-284]
	ldr	r3, [r2, r3, lsl #2]	@ float
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r3, r0
	str	r3, [fp, #-268]
	ldr	r3, [fp, #-268]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-272]
	add	r3, r2, r3
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-260]
	ldr	r2, .L37+8
	cmp	r3, r2
	bne	.L29
	ldr	r3, [fp, #-268]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-272]
	add	r3, r2, r3
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-284]
	str	r2, [r3, #-260]
	b	.L30
.L29:
	ldr	r3, [fp, #-268]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-272]
	add	r3, r2, r3
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3, #-260]
.L30:
	ldr	r3, [fp, #-284]
	add	r3, r3, #1
	str	r3, [fp, #-284]
.L28:
	ldr	r3, [fp, #-284]
	cmp	r3, #2
	ble	.L31
	ldr	r0, .L37+20
	bl	puts
	ldr	r0, .L37+24
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-280]
	b	.L32
.L35:
	mov	r3, #0
	str	r3, [fp, #-276]
	b	.L33
.L34:
	ldr	r3, [fp, #-280]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-276]
	add	r3, r2, r3
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-260]
	mov	r1, r3
	ldr	r0, .L37+28
	bl	printf
	ldr	r3, [fp, #-276]
	add	r3, r3, #1
	str	r3, [fp, #-276]
.L33:
	ldr	r3, [fp, #-276]
	cmp	r3, #7
	ble	.L34
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-280]
	add	r3, r3, #1
	str	r3, [fp, #-280]
.L32:
	ldr	r3, [fp, #-280]
	cmp	r3, #7
	ble	.L35
	ldr	r0, .L37+24
	bl	puts
	mov	r0, #10
	bl	putchar
	nop
	ldr	r3, .L37
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC9
	.word	.LC5
	.word	-999999
	.word	CitiesX
	.word	CitiesY
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	MapCities, .-MapCities
	.global	__aeabi_fsub
	.global	__aeabi_fadd
	.align	2
	.global	Distance
	.syntax unified
	.arm
	.fpu softvfp
	.type	Distance, %function
Distance:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r2, .L41
	ldr	r3, [fp, #-16]
	ldr	r2, [r2, r3, lsl #2]	@ float
	ldr	r1, .L41
	ldr	r3, [fp, #-20]
	ldr	r3, [r1, r3, lsl #2]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r4, r3
	ldr	r2, .L41
	ldr	r3, [fp, #-16]
	ldr	r2, [r2, r3, lsl #2]	@ float
	ldr	r1, .L41
	ldr	r3, [fp, #-20]
	ldr	r3, [r1, r3, lsl #2]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r2, .L41+4
	ldr	r3, [fp, #-16]
	ldr	r2, [r2, r3, lsl #2]	@ float
	ldr	r1, .L41+4
	ldr	r3, [fp, #-20]
	ldr	r3, [r1, r3, lsl #2]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r5, r3
	ldr	r2, .L41+4
	ldr	r3, [fp, #-16]
	ldr	r2, [r2, r3, lsl #2]	@ float
	ldr	r1, .L41+4
	ldr	r3, [fp, #-20]
	ldr	r3, [r1, r3, lsl #2]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
	mov	r0, r5
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L42:
	.align	2
.L41:
	.word	CitiesX
	.word	CitiesY
	.size	Distance, .-Distance
	.global	__aeabi_dadd
	.align	2
	.global	PathDistance
	.syntax unified
	.arm
	.fpu softvfp
	.type	PathDistance, %function
PathDistance:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L44
.L45:
	ldr	r2, .L47
	ldr	r3, [fp, #-16]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r1, .L47
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	mov	r0, r2
	bl	Distance
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L44:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	ble	.L45
	ldr	r3, .L47
	ldr	r3, [r3, #12]
	ldr	r2, .L47
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	Distance
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	Path
	.size	PathDistance, .-PathDistance
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Now calculating distances between all pairs of citi"
	.ascii	"es...\000"
	.text
	.align	2
	.global	CalculateAllDistances
	.syntax unified
	.arm
	.fpu softvfp
	.type	CalculateAllDistances, %function
CalculateAllDistances:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r0, .L54
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L50
.L53:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L51
.L52:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	Distance
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	ldr	r1, .L54+4
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r1, r1, r3
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r1, .L54+4
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-20]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r1, r1, r3
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L51:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	ble	.L52
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L50:
	ldr	r3, [fp, #-20]
	cmp	r3, #2
	ble	.L53
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC10
	.word	CalculatedDistances
	.size	CalculateAllDistances, .-CalculateAllDistances
	.section	.rodata
	.align	2
.LC11:
	.ascii	"\012i=%d and currentCity=%d\000"
	.align	2
.LC12:
	.ascii	" ===> ABORTED\000"
	.global	__aeabi_dcmpgt
	.align	2
.LC13:
	.ascii	"\012Went from %d to %d with distance %.2lf, so tota"
	.ascii	"l distance is %.2lf\000"
	.text
	.align	2
	.global	FindShortestStepPath
	.syntax unified
	.arm
	.fpu softvfp
	.type	FindShortestStepPath, %function
FindShortestStepPath:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r3, .L65
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L65
	mov	r2, #0
	str	r2, [r3, #12]
.L62:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r2, #0
	ldr	r3, .L65+4
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	mvn	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L57
.L61:
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-32]
	ldr	r0, .L65+8
	bl	printf
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-32]
	bl	IsInPath2
	mov	r3, r0
	cmp	r3, #0
	beq	.L58
	ldr	r0, .L65+12
	bl	printf
	b	.L59
.L58:
	ldr	r1, .L65+16
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-32]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L59
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-36]
.L59:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L57:
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	ble	.L61
	ldr	r3, [fp, #-44]
	add	r2, r3, #1
	str	r2, [fp, #-44]
	ldr	r1, .L65
	ldr	r2, [fp, #-36]
	str	r2, [r1, r3, lsl #2]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-40]
	ldr	r0, .L65+20
	bl	printf
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-44]
	cmp	r3, #2
	ble	.L62
	ldr	r3, .L65
	ldr	r2, [r3, #8]
	ldr	r1, .L65+16
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, .L65
	ldr	ip, [r3, #8]
	ldr	r3, .L65
	ldr	r2, [r3, #8]
	ldr	r1, .L65+16
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	stm	sp, {r2-r3}
	mov	r2, #0
	mov	r1, ip
	ldr	r0, .L65+20
	bl	printf
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L66:
	.align	2
.L65:
	.word	Path
	.word	2146435072
	.word	.LC11
	.word	.LC12
	.word	CalculatedDistances
	.word	.LC13
	.size	FindShortestStepPath, .-FindShortestStepPath
	.section	.rodata
	.align	2
.LC14:
	.ascii	"---------------------------------------------------"
	.ascii	"---------------------------\000"
	.align	2
.LC15:
	.ascii	"This program searches for the optimal traveling dis"
	.ascii	"tance between %d cities,\012\000"
	.align	2
.LC16:
	.ascii	"spanning in an area of X=(0,%d) and Y=(0,%d)\012\000"
	.align	2
.LC17:
	.ascii	"Estimated Total path distance is:%.2lf\012\000"
	.align	2
.LC18:
	.ascii	"Exact Total path distance is:%.2lf\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	ldr	r0, .L69
	bl	puts
	mov	r1, #3
	ldr	r0, .L69+4
	bl	printf
	mov	r2, #7
	mov	r1, #7
	ldr	r0, .L69+8
	bl	printf
	ldr	r0, .L69
	bl	puts
	bl	SetCities
	bl	PrintCities
	bl	MapCities
	bl	CalculateAllDistances
	bl	FindShortestStepPath
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	mov	r0, #10
	bl	putchar
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L69+12
	bl	printf
	bl	PathDistance
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L69+16
	bl	printf
	bl	PrintPath
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
