	.file	"5131.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"lab1.sql"
.LC1:
	.string	"Can't open database: %s\n"
.LC2:
	.string	"print_info"
.LC3:
	.string	"length_function"
	.align 8
.LC4:
	.ascii	"SELECT DISTINCT print_info(a1.city, a2.city), length_functio"
	.ascii	"n(a1.Latitude, a1.Longitude, a2.Latitude, a2.Longitude) as l"
	.ascii	"ength     FROM Airports a1, Airports a2, routes r, Airlines "
	.ascii	"air     WHERE a1.Airport_ID = r.Source_Airport_ID AND a2.Air"
	.ascii	"port_ID = r.destination_"
	.string	"airport_ID AND r.airline_ID = air.airline_ID     AND (air.IATA <> '/N' OR air.IATA <> '' OR air.ICAO <> '/N' OR air.ICAO <> '' OR air.Callsign <> '/N' OR air.Callsign <> '' OR air.country <> '/N' OR air.country <> '')     ORDER BY length desc     LIMIT 10;"
.LC5:
	.string	"Preparation failed: %s\n"
.LC6:
	.string	"%s"
	.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	call	sqlite3_open@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	sqlite3_errmsg@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	sqlite3_close@PLT
	mov	eax, 1
	jmp	.L9
.L2:
	mov	rax, QWORD PTR -32[rbp]
	push	0
	push	0
	lea	r9, print_info[rip]
	mov	r8d, 0
	mov	ecx, 1
	mov	edx, 2
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	sqlite3_create_function@PLT
	add	rsp, 16
	mov	rax, QWORD PTR -32[rbp]
	push	0
	push	0
	lea	r9, length_function[rip]
	mov	r8d, 0
	mov	ecx, 1
	mov	edx, 4
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	sqlite3_create_function@PLT
	add	rsp, 16
	lea	rax, .LC4[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, -24[rbp]
	mov	rsi, QWORD PTR -16[rbp]
	mov	r8d, 0
	mov	rcx, rdx
	mov	edx, -1
	mov	rdi, rax
	call	sqlite3_prepare_v2@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L5
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	sqlite3_errmsg@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	sqlite3_close@PLT
	mov	eax, 1
	jmp	.L9
.L8:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	sqlite3_column_text@PLT
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -40[rbp], 1
.L6:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	sqlite3_column_count@PLT
	sub	eax, 1
	cmp	DWORD PTR -40[rbp], eax
	jl	.L7
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	sqlite3_column_text@PLT
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
.L5:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	sqlite3_step@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 100
	je	.L8
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	sqlite3_finalize@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	sqlite3_close@PLT
	mov	eax, 0
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	length_function
	.type	length_function, @function
length_function:
.LFB7:
	.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, 104
	.cfi_offset 3, -24
	mov	QWORD PTR -88[rbp], rdi
	mov	DWORD PTR -92[rbp], esi
	mov	QWORD PTR -104[rbp], rdx
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	sqlite3_value_double@PLT
	movq	rax, xmm0
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	sqlite3_value_double@PLT
	movq	rax, xmm0
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	sqlite3_value_double@PLT
	movq	rax, xmm0
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	sqlite3_value_double@PLT
	movq	rax, xmm0
	mov	QWORD PTR -56[rbp], rax
	movsd	xmm0, QWORD PTR -72[rbp]
	subsd	xmm0, QWORD PTR -56[rbp]
	movsd	QWORD PTR -72[rbp], xmm0
	movsd	xmm1, QWORD PTR -72[rbp]
	movsd	xmm0, QWORD PTR .LC7[rip]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -72[rbp], xmm0
	movsd	xmm1, QWORD PTR -80[rbp]
	movsd	xmm0, QWORD PTR .LC7[rip]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -80[rbp], xmm0
	movsd	xmm1, QWORD PTR -64[rbp]
	movsd	xmm0, QWORD PTR .LC7[rip]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -64[rbp], xmm0
	mov	rax, QWORD PTR -72[rbp]
	movq	xmm0, rax
	call	cos@PLT
	movsd	QWORD PTR -112[rbp], xmm0
	mov	rax, QWORD PTR -80[rbp]
	movq	xmm0, rax
	call	cos@PLT
	movapd	xmm2, xmm0
	mulsd	xmm2, QWORD PTR -112[rbp]
	movsd	QWORD PTR -112[rbp], xmm2
	mov	rax, QWORD PTR -64[rbp]
	movq	xmm0, rax
	call	cos@PLT
	movapd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -112[rbp]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -48[rbp], xmm0
	mov	rax, QWORD PTR -72[rbp]
	movq	xmm0, rax
	call	sin@PLT
	movsd	QWORD PTR -112[rbp], xmm0
	mov	rax, QWORD PTR -80[rbp]
	movq	xmm0, rax
	call	cos@PLT
	mulsd	xmm0, QWORD PTR -112[rbp]
	movsd	QWORD PTR -40[rbp], xmm0
	mov	rax, QWORD PTR -80[rbp]
	movq	xmm0, rax
	call	sin@PLT
	movq	rbx, xmm0
	mov	rax, QWORD PTR -64[rbp]
	movq	xmm0, rax
	call	sin@PLT
	movapd	xmm1, xmm0
	movq	xmm0, rbx
	subsd	xmm0, xmm1
	movsd	QWORD PTR -32[rbp], xmm0
	movsd	xmm0, QWORD PTR -48[rbp]
	movapd	xmm1, xmm0
	mulsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -40[rbp]
	mulsd	xmm0, xmm0
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -32[rbp]
	mulsd	xmm0, xmm0
	addsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	call	sqrt@PLT
	movq	rax, xmm0
	movsd	xmm0, QWORD PTR .LC8[rip]
	movq	xmm3, rax
	divsd	xmm3, xmm0
	movq	rax, xmm3
	movq	xmm0, rax
	call	asin@PLT
	movapd	xmm1, xmm0
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC9[rip]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -88[rbp]
	movq	xmm0, rdx
	mov	rdi, rax
	call	sqlite3_result_double@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	length_function, .-length_function
	.section	.rodata
.LC10:
	.string	"From %s to %s, length(km) = "
	.text
	.globl	print_info
	.type	print_info, @function
print_info:
.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, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	sqlite3_value_text@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	sqlite3_value_text@PLT
	mov	rdx, rbx
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	sqlite3_mprintf@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edi, eax
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR sqlite3_free@GOTPCREL[rip]
	mov	rcx, rdx
	mov	edx, edi
	mov	rdi, rax
	call	sqlite3_result_text@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	print_info, .-print_info
	.section	.rodata
	.align 8
.LC7:
	.long	-1657456360
	.long	1066524486
	.align 8
.LC8:
	.long	0
	.long	1073741824
	.align 8
.LC9:
	.long	1305670058
	.long	1085858562
	.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	"5131.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"lab1.sql\000"
	.align	2
.LC1:
	.ascii	"Can't open database: %s\012\000"
	.align	2
.LC2:
	.ascii	"print_info\000"
	.align	2
.LC3:
	.ascii	"length_function\000"
	.align	2
.LC4:
	.ascii	"SELECT DISTINCT print_info(a1.city, a2.city), lengt"
	.ascii	"h_function(a1.Latitude, a1.Longitude, a2.Latitude, "
	.ascii	"a2.Longitude) as length     FROM Airports a1, Airpo"
	.ascii	"rts a2, routes r, Airlines air     WHERE a1.Airport"
	.ascii	"_ID = r.Source_Airport_ID AND a2.Airport_ID = r.des"
	.ascii	"tination_airport_ID AND r.airline_ID = air.airline_"
	.ascii	"ID     AND (air.IATA <> '/N' OR air.IATA <> '' OR a"
	.ascii	"ir.ICAO <> '/N' OR air.ICAO <> '' OR air.Callsign <"
	.ascii	"> '/N' OR air.Callsign <> '' OR air.country <> '/N'"
	.ascii	" OR air.country <> '')     ORDER BY length desc    "
	.ascii	" LIMIT 10;\000"
	.align	2
.LC5:
	.ascii	"Preparation failed: %s\012\000"
	.align	2
.LC6:
	.ascii	"%s\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 = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L11+4
	bl	sqlite3_open
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L11+8
	ldr	r4, [r3]
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	sqlite3_errmsg
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L11+12
	mov	r0, r4
	bl	fprintf
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	sqlite3_close
	mov	r3, #1
	b	.L9
.L2:
	ldr	r0, [fp, #-36]
	mov	r3, #0
	str	r3, [sp, #12]
	mov	r3, #0
	str	r3, [sp, #8]
	ldr	r3, .L11+16
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #2
	ldr	r1, .L11+20
	bl	sqlite3_create_function
	ldr	r0, [fp, #-36]
	mov	r3, #0
	str	r3, [sp, #12]
	mov	r3, #0
	str	r3, [sp, #8]
	ldr	r3, .L11+24
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #4
	ldr	r1, .L11+28
	bl	sqlite3_create_function
	ldr	r3, .L11+32
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-36]
	sub	r3, fp, #32
	mov	r2, #0
	str	r2, [sp]
	mvn	r2, #0
	ldr	r1, [fp, #-20]
	bl	sqlite3_prepare_v2
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L11+8
	ldr	r4, [r3]
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	sqlite3_errmsg
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L11+36
	mov	r0, r4
	bl	fprintf
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	sqlite3_close
	mov	r3, #1
	b	.L9
.L8:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L6
.L7:
	ldr	r3, [fp, #-32]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	sqlite3_column_text
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L11+40
	bl	printf
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L6:
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	sqlite3_column_count
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L7
	ldr	r3, [fp, #-32]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	sqlite3_column_text
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L11+40
	bl	printf
	mov	r0, #10
	bl	putchar
.L5:
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	sqlite3_step
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #100
	beq	.L8
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	sqlite3_finalize
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	sqlite3_close
	mov	r3, #0
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC7
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	print_info
	.word	.LC2
	.word	length_function
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.global	__aeabi_dsub
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_ddiv
	.align	2
	.global	length_function
	.syntax unified
	.arm
	.fpu softvfp
	.type	length_function, %function
length_function:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #80
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	str	r2, [fp, #-88]
	ldr	r3, [fp, #-88]
	ldr	r3, [r3]
	mov	r0, r3
	bl	sqlite3_value_double
	str	r0, [fp, #-76]
	str	r1, [fp, #-72]
	ldr	r3, [fp, #-88]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	sqlite3_value_double
	str	r0, [fp, #-68]
	str	r1, [fp, #-64]
	ldr	r3, [fp, #-88]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	sqlite3_value_double
	str	r0, [fp, #-60]
	str	r1, [fp, #-56]
	ldr	r3, [fp, #-88]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	sqlite3_value_double
	str	r0, [fp, #-52]
	str	r1, [fp, #-48]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	ldr	r2, .L14
	ldr	r3, .L14+4
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	ldr	r2, .L14
	ldr	r3, .L14+4
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	ldr	r2, .L14
	ldr	r3, .L14+4
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	cos
	mov	r4, r0
	mov	r5, r1
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	cos
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	cos
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	sin
	mov	r4, r0
	mov	r5, r1
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	cos
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	sin
	mov	r4, r0
	mov	r5, r1
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	sin
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, #0
	mov	r3, #1073741824
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	asin
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L14+8
	ldr	r3, .L14+12
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-80]
	bl	sqlite3_result_double
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L15:
	.align	2
.L14:
	.word	-1657456360
	.word	1066524486
	.word	1305670058
	.word	1085858562
	.size	length_function, .-length_function
	.section	.rodata
	.align	2
.LC8:
	.ascii	"From %s to %s, length(km) = \000"
	.text
	.align	2
	.global	print_info
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_info, %function
print_info:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	mov	r0, r3
	bl	sqlite3_value_text
	mov	r4, r0
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	sqlite3_value_text
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L17
	bl	sqlite3_mprintf
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L17+4
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	sqlite3_result_text
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC8
	.word	sqlite3_free
	.size	print_info, .-print_info
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
