	.file	"extr_facebsp.c_FaceBSP.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"--- FaceBSP ---\n"
.LC1:
	.string	"%5i faces\n"
.LC2:
	.string	"%5i leafs\n"
	.text
	.p2align 4
	.globl	FaceBSP
	.type	FaceBSP, @function
FaceBSP:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	eax, eax
	mov	r14, rdi
	lea	rdi, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	qprintf@PLT
	xor	eax, eax
	call	AllocTree@PLT
	mov	r12, rax
	test	r14, r14
	je	.L6
	mov	rbp, r14
	xor	r13d, r13d
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 0[rbp]
	add	r13d, 1
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	jle	.L3
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR 8[r12]
	mov	esi, DWORD PTR 12[r12]
	mov	edi, DWORD PTR [rax+rbx*4]
	add	rbx, 1
	call	AddPointToBounds@PLT
	mov	rax, QWORD PTR 0[rbp]
	cmp	DWORD PTR [rax], ebx
	jg	.L4
.L3:
	mov	rbp, QWORD PTR 8[rbp]
	test	rbp, rbp
	jne	.L5
.L2:
	mov	esi, r13d
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	qprintf@PLT
	xor	eax, eax
	call	AllocNode@PLT
	mov	edi, DWORD PTR 12[r12]
	mov	QWORD PTR [r12], rax
	mov	esi, DWORD PTR 4[rax]
	call	VectorCopy@PLT
	mov	rax, QWORD PTR [r12]
	mov	edi, DWORD PTR 8[r12]
	mov	esi, DWORD PTR [rax]
	call	VectorCopy@PLT
	mov	rdi, QWORD PTR [r12]
	mov	rsi, r14
	mov	DWORD PTR c_faceLeafs[rip], 0
	call	BuildFaceTree_r@PLT
	mov	esi, DWORD PTR c_faceLeafs[rip]
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	qprintf@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L6:
	.cfi_restore_state
	xor	r13d, r13d
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	FaceBSP, .-FaceBSP
	.comm	c_faceLeafs,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_facebsp.c_FaceBSP.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"--- FaceBSP ---\012\000"
	.align	2
.LC1:
	.ascii	"%5i faces\012\000"
	.align	2
.LC2:
	.ascii	"%5i leafs\012\000"
	.text
	.align	2
	.global	FaceBSP
	.syntax unified
	.arm
	.fpu softvfp
	.type	FaceBSP, %function
FaceBSP:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, r0
	ldr	r0, .L11
	bl	qprintf
	bl	AllocTree
	cmp	r8, #0
	mov	r5, r0
	beq	.L6
	mov	r6, r8
	mov	r7, #0
.L5:
	ldr	r3, [r6]
	add	r7, r7, #1
	ldr	r2, [r3]
	cmp	r2, #0
	ble	.L3
	mov	r4, #0
.L4:
	ldr	r3, [r3, #4]
	ldr	r2, [r5, #4]
	ldr	r0, [r3, r4, lsl #2]
	ldr	r1, [r5, #8]
	bl	AddPointToBounds
	ldr	r3, [r6]
	add	r4, r4, #1
	ldr	r2, [r3]
	cmp	r2, r4
	bgt	.L4
.L3:
	ldr	r6, [r6, #4]
	cmp	r6, #0
	bne	.L5
.L2:
	mov	r1, r7
	ldr	r0, .L11+4
	bl	qprintf
	bl	AllocNode
	mov	r3, r0
	ldr	r0, [r5, #8]
	ldr	r1, [r3, #4]
	str	r3, [r5]
	bl	VectorCopy
	ldr	r3, [r5]
	ldr	r0, [r5, #4]
	ldr	r1, [r3]
	bl	VectorCopy
	mov	r3, #0
	ldr	r4, .L11+8
	mov	r1, r8
	ldr	r0, [r5]
	str	r3, [r4]
	bl	BuildFaceTree_r
	ldr	r1, [r4]
	ldr	r0, .L11+12
	bl	qprintf
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r7, r8
	b	.L2
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	.LC1
	.word	c_faceLeafs
	.word	.LC2
	.size	FaceBSP, .-FaceBSP
	.comm	c_faceLeafs,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
