	.file	"139042.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\n%.4f,%d,%d\n"
	.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	DWORD PTR -40[rbp], 1
	cmp	DWORD PTR -52[rbp], 1
	jle	.L2
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	jmp	.L3
.L2:
	mov	eax, 100000000
.L3:
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	initialize
	mov	QWORD PTR -32[rbp], rax
	call	omp_get_wtime@PLT
	movq	rax, xmm0
	mov	QWORD PTR -24[rbp], rax
	mov	ecx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 2
	mov	esi, ecx
	mov	rdi, rax
	call	build_kdtree
	mov	QWORD PTR -16[rbp], rax
	call	omp_get_wtime@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	subsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR -8[rbp], xmm0
	call	omp_get_num_threads@PLT
	mov	DWORD PTR -40[rbp], eax
	mov	edx, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, ecx
	movq	xmm0, rax
	lea	rdi, .LC0[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC1:
	.string	"Problem with malloc()"
	.text
	.globl	initialize
	.type	initialize, @function
initialize:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L6
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L7
.L6:
	call	getpid@PLT
	cdqe
	mov	rdi, rax
	call	srand48@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L8
.L9:
	call	drand48@PLT
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	call	drand48@PLT
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR 4[rax], xmm0
	add	DWORD PTR -12[rbp], 1
.L8:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L9
	mov	rax, QWORD PTR -8[rbp]
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	initialize, .-initialize
	.globl	build_kdtree
	.type	build_kdtree, @function
build_kdtree:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	edx, DWORD PTR -32[rbp]
	mov	esi, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, -1
	mov	rdi, rax
	call	build_kdtree_ric
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	build_kdtree, .-build_kdtree
	.globl	build_kdtree_ric
	.type	build_kdtree_ric, @function
build_kdtree_ric:
.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, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	DWORD PTR -64[rbp], edx
	mov	DWORD PTR -68[rbp], ecx
	cmp	DWORD PTR -60[rbp], 0
	jne	.L13
	mov	eax, 0
	jmp	.L14
.L13:
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L15
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L14
.L15:
	mov	edx, DWORD PTR -64[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, edx
	mov	edi, eax
	call	choose_splitting_dimension
	mov	DWORD PTR -48[rbp], eax
	mov	ecx, DWORD PTR -48[rbp]
	mov	edx, DWORD PTR -64[rbp]
	mov	esi, DWORD PTR -60[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	choose_splitting_point
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L16
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, 1
	jmp	.L17
.L16:
	mov	eax, DWORD PTR -44[rbp]
.L17:
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	mov	ecx, DWORD PTR -48[rbp]
	mov	edx, DWORD PTR -64[rbp]
	mov	esi, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	build_kdtree_ric
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	ecx, DWORD PTR -48[rbp]
	mov	edx, DWORD PTR -64[rbp]
	mov	esi, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	build_kdtree_ric
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 24[rdx], rax
	mov	rax, QWORD PTR -32[rbp]
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	build_kdtree_ric, .-build_kdtree_ric
	.globl	choose_splitting_dimension
	.type	choose_splitting_dimension, @function
choose_splitting_dimension:
.LFB10:
	.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	cdq
	idiv	DWORD PTR -8[rbp]
	mov	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	choose_splitting_dimension, .-choose_splitting_dimension
	.globl	choose_splitting_point
	.type	choose_splitting_point, @function
choose_splitting_point:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -36[rbp], ecx
	mov	edx, DWORD PTR -36[rbp]
	mov	esi, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, edx
	mov	edx, 8
	mov	rdi, rax
	call	my_qsort
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	choose_splitting_point, .-choose_splitting_point
	.globl	my_qsort
	.type	my_qsort, @function
my_qsort:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	DWORD PTR -20[rbp], ecx
	cmp	DWORD PTR -20[rbp], 0
	jne	.L23
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, comp_x[rip]
	mov	rdi, rax
	call	qsort@PLT
	jmp	.L25
.L23:
	cmp	DWORD PTR -20[rbp], 1
	jne	.L25
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, comp_y[rip]
	mov	rdi, rax
	call	qsort@PLT
.L25:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	my_qsort, .-my_qsort
	.globl	comp_x
	.type	comp_x, @function
comp_x:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	movss	xmm0, DWORD PTR [rax]
	movss	DWORD PTR -8[rbp], xmm0
	mov	rax, QWORD PTR -32[rbp]
	movss	xmm0, DWORD PTR [rax]
	movss	DWORD PTR -4[rbp], xmm0
	movss	xmm0, DWORD PTR -8[rbp]
	comiss	xmm0, DWORD PTR -4[rbp]
	jbe	.L36
	mov	eax, 1
	jmp	.L33
.L36:
	movss	xmm0, DWORD PTR -4[rbp]
	comiss	xmm0, DWORD PTR -8[rbp]
	jbe	.L37
	mov	eax, -1
	jmp	.L33
.L37:
	mov	eax, 0
.L33:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	comp_x, .-comp_x
	.globl	comp_y
	.type	comp_y, @function
comp_y:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	movss	xmm0, DWORD PTR 4[rax]
	movss	DWORD PTR -8[rbp], xmm0
	mov	rax, QWORD PTR -32[rbp]
	movss	xmm0, DWORD PTR 4[rax]
	movss	DWORD PTR -4[rbp], xmm0
	movss	xmm0, DWORD PTR -8[rbp]
	comiss	xmm0, DWORD PTR -4[rbp]
	jbe	.L48
	mov	eax, 1
	jmp	.L45
.L48:
	movss	xmm0, DWORD PTR -4[rbp]
	comiss	xmm0, DWORD PTR -8[rbp]
	jbe	.L49
	mov	eax, -1
	jmp	.L45
.L49:
	mov	eax, 0
.L45:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	comp_y, .-comp_y
	.section	.rodata
.LC2:
	.string	"\n(%f, %f) - Axis = %d"
.LC3:
	.string	"\nLeft Branch:"
.LC4:
	.string	"\nRight branch:"
	.text
	.globl	print_tree
	.type	print_tree, @function
print_tree:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR 8[rax]
	cvtss2sd	xmm0, xmm0
	mov	rax, QWORD PTR -8[rbp]
	movss	xmm1, DWORD PTR 4[rax]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm1
	movq	rax, xmm2
	mov	esi, edx
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC2[rip]
	mov	eax, 2
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L51
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	print_tree
.L51:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L53
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	print_tree
.L53:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	print_tree, .-print_tree
	.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	"139042.c"
	.text
	.global	__aeabi_dsub
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012%.4f,%d,%d\012\000"
	.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, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	mov	r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	ble	.L2
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	b	.L3
.L2:
	ldr	r3, .L5
.L3:
	str	r3, [fp, #-32]
	ldr	r0, [fp, #-32]
	bl	initialize
	str	r0, [fp, #-28]
	bl	omp_get_wtime
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	mov	r2, #2
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-28]
	bl	build_kdtree
	str	r0, [fp, #-24]
	bl	omp_get_wtime
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	bl	omp_get_num_threads
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L5+4
	bl	printf
	ldr	r0, [fp, #-28]
	bl	free
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	100000000
	.word	.LC0
	.size	main, .-main
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Problem with malloc()\000"
	.global	__aeabi_d2f
	.text
	.align	2
	.global	initialize
	.syntax unified
	.arm
	.fpu softvfp
	.type	initialize, %function
initialize:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L12
	bl	printf
	mov	r3, #0
	b	.L9
.L8:
	bl	getpid
	mov	r3, r0
	mov	r0, r3
	bl	srand48
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L10
.L11:
	bl	drand48
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-20]
	lsl	r1, r1, #3
	ldr	r0, [fp, #-16]
	add	r4, r0, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [r4]	@ float
	bl	drand48
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-20]
	lsl	r1, r1, #3
	ldr	r0, [fp, #-16]
	add	r4, r0, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [r4, #4]	@ float
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L10:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-16]
.L9:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC1
	.size	initialize, .-initialize
	.align	2
	.global	build_kdtree
	.syntax unified
	.arm
	.fpu softvfp
	.type	build_kdtree, %function
build_kdtree:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mvn	r3, #0
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	build_kdtree_ric
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	build_kdtree, .-build_kdtree
	.align	2
	.global	build_kdtree_ric
	.syntax unified
	.arm
	.fpu softvfp
	.type	build_kdtree_ric, %function
build_kdtree_ric:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L17
	mov	r3, #0
	b	.L18
.L17:
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L19
	ldr	r0, .L22
	bl	printf
	mov	r3, #0
	b	.L18
.L19:
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-52]
	bl	choose_splitting_dimension
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-48]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	choose_splitting_point
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-44]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	b	.L21
.L20:
	ldr	r3, [fp, #-24]
.L21:
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	mov	r2, #4
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-48]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-12]
	bl	build_kdtree_ric
	mov	r2, r0
	ldr	r3, [fp, #-36]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-48]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	build_kdtree_ric
	mov	r2, r0
	ldr	r3, [fp, #-36]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-36]
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC1
	.size	build_kdtree_ric, .-build_kdtree_ric
	.global	__aeabi_idivmod
	.align	2
	.global	choose_splitting_dimension
	.syntax unified
	.arm
	.fpu softvfp
	.type	choose_splitting_dimension, %function
choose_splitting_dimension:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	choose_splitting_dimension, .-choose_splitting_dimension
	.align	2
	.global	choose_splitting_point
	.syntax unified
	.arm
	.fpu softvfp
	.type	choose_splitting_point, %function
choose_splitting_point:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	mov	r2, #8
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	my_qsort
	ldr	r3, [fp, #-20]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	lsl	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	choose_splitting_point, .-choose_splitting_point
	.align	2
	.global	my_qsort
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_qsort, %function
my_qsort:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L29
	ldr	r1, [fp, #-12]
	ldr	r2, [fp, #-16]
	ldr	r3, .L32
	ldr	r0, [fp, #-8]
	bl	qsort
	b	.L31
.L29:
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bne	.L31
	ldr	r1, [fp, #-12]
	ldr	r2, [fp, #-16]
	ldr	r3, .L32+4
	ldr	r0, [fp, #-8]
	bl	qsort
.L31:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	comp_x
	.word	comp_y
	.size	my_qsort, .-my_qsort
	.global	__aeabi_fcmpgt
	.global	__aeabi_fcmplt
	.align	2
	.global	comp_x
	.syntax unified
	.arm
	.fpu softvfp
	.type	comp_x, %function
comp_x:
	@ 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	r3, [fp, #-16]
	ldr	r3, [r3]	@ float
	str	r3, [fp, #-12]	@ float
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]	@ float
	str	r3, [fp, #-8]	@ float
	ldr	r1, [fp, #-8]	@ float
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L44
	mov	r3, #1
	b	.L41
.L44:
	ldr	r1, [fp, #-8]	@ float
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L45
	mvn	r3, #0
	b	.L41
.L45:
	mov	r3, #0
.L41:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	comp_x, .-comp_x
	.align	2
	.global	comp_y
	.syntax unified
	.arm
	.fpu softvfp
	.type	comp_y, %function
comp_y:
	@ 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	r3, [fp, #-16]
	ldr	r3, [r3, #4]	@ float
	str	r3, [fp, #-12]	@ float
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]	@ float
	str	r3, [fp, #-8]	@ float
	ldr	r1, [fp, #-8]	@ float
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L56
	mov	r3, #1
	b	.L53
.L56:
	ldr	r1, [fp, #-8]	@ float
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L57
	mvn	r3, #0
	b	.L53
.L57:
	mov	r3, #0
.L53:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	comp_y, .-comp_y
	.global	__aeabi_f2d
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\012(%f, %f) - Axis = %d\000"
	.align	2
.LC3:
	.ascii	"\012Left Branch:\000"
	.align	2
.LC4:
	.ascii	"\012Right branch:\000"
	.text
	.align	2
	.global	print_tree
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_tree, %function
print_tree:
	@ 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, #24
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-16]
	ldr	r1, [r1]
	str	r1, [sp, #8]
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L62
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L59
	ldr	r0, .L62+4
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	print_tree
.L59:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L61
	ldr	r0, .L62+8
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	print_tree
.L61:
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L63:
	.align	2
.L62:
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	print_tree, .-print_tree
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
