	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function MakeMeshNormals
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_MakeMeshNormals
	.p2align	4, 0x90
_MakeMeshNormals:                       ## @MakeMeshNormals
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, %r12
	shrq	$32, %r12
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testl	%edi, %edi
	movq	%rsi, -160(%rbp)                ## 8-byte Spill
	movq	%rdi, -152(%rbp)                ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	movq	%rcx, -192(%rbp)                ## 8-byte Spill
	movq	%rdi, %rax
	sarq	$32, %rax
	movl	%edi, %ecx
	movq	%rcx, -200(%rbp)                ## 8-byte Spill
	movq	%r12, %rbx
	shlq	$32, %rbx
	movabsq	$-4294967296, %r15              ## imm = 0xFFFFFFFF00000000
	addq	%r15, %rbx
	andq	%rdi, %r15
	leaq	4(%rsi), %r14
	shlq	$3, %rax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	%rbx, %rax
	sarq	$29, %rax
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	movl	4(%rcx,%rax), %esi
	callq	_VectorSubtract
	callq	_VectorLength
	ucomiss	LCPI0_0(%rip), %xmm0
	ja	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	addq	%r15, %rbx
	addq	-168(%rbp), %r14                ## 8-byte Folded Reload
	cmpq	%r13, -200(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_3
## %bb.5:
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	movl	%edi, %r13d
	jmp	LBB0_7
LBB0_1:
	xorl	%r13d, %r13d
	movq	%rcx, -168(%rbp)                ## 8-byte Spill
	cmpl	%edi, %r13d
	je	LBB0_9
	jmp	LBB0_10
LBB0_6:
	movq	-152(%rbp), %rdi                ## 8-byte Reload
LBB0_7:
	movq	-192(%rbp), %rcx                ## 8-byte Reload
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	movq	-160(%rbp), %rsi                ## 8-byte Reload
	cmpl	%edi, %r13d
	jne	LBB0_10
LBB0_9:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
LBB0_10:
	movq	%rcx, -192(%rbp)                ## 8-byte Spill
	testl	%r12d, %r12d
	jle	LBB0_70
## %bb.11:
	leal	-1(%rdi), %eax
	movl	%r12d, %ecx
	imull	%eax, %ecx
	movslq	%ecx, %rax
	leaq	(%rsi,%rax,8), %r14
	addq	$4, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	-160(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax,%rbx,8), %edi
	movl	(%r14,%rbx,8), %esi
	callq	_VectorSubtract
	callq	_VectorLength
	ucomiss	LCPI0_0(%rip), %xmm0
	ja	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_12
## %bb.14:
	movl	%r12d, %ebx
LBB0_15:
	cmpl	%r12d, %ebx
	movq	-160(%rbp), %r14                ## 8-byte Reload
	movq	-152(%rbp), %rax                ## 8-byte Reload
	jne	LBB0_17
## %bb.16:
	movq	_qtrue@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -168(%rbp)                ## 8-byte Spill
LBB0_17:
	movl	$1, %ecx
	movl	$1, %edx
	subl	%r12d, %edx
	movl	%edx, -180(%rbp)                ## 4-byte Spill
	leal	-1(%r12), %edx
	movl	%edx, -176(%rbp)                ## 4-byte Spill
	subl	%eax, %ecx
	movl	%ecx, -200(%rbp)                ## 4-byte Spill
	leal	-1(%rax), %ecx
	movl	%ecx, -172(%rbp)                ## 4-byte Spill
	movq	%rax, %rcx
	sarq	$32, %rcx
	movq	%rcx, -216(%rbp)                ## 8-byte Spill
	movl	%eax, %ecx
	movq	%rcx, -208(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_69:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%r15
	cmpq	%r12, %r15
	movq	-152(%rbp), %rax                ## 8-byte Reload
	je	LBB0_70
LBB0_18:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
                                        ##       Child Loop BB0_21 Depth 3
                                        ##       Child Loop BB0_63 Depth 3
	testl	%eax, %eax
	jle	LBB0_69
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_68:                                ##   in Loop: Header=BB0_20 Depth=2
	movq	-224(%rbp), %rax                ## 8-byte Reload
	movl	(%r14,%rax,8), %esi
	callq	_VectorNormalize
	incq	%r13
	cmpq	-208(%rbp), %r13                ## 8-byte Folded Reload
	je	LBB0_69
LBB0_20:                                ##   Parent Loop BB0_18 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_21 Depth 3
                                        ##       Child Loop BB0_63 Depth 3
	movq	%r13, %rax
	imulq	-216(%rbp), %rax                ## 8-byte Folded Reload
	addq	%r15, %rax
	movq	%rax, -224(%rbp)                ## 8-byte Spill
	movl	4(%r14,%rax,8), %edi
	callq	_VectorCopy
	xorl	%r14d, %r14d
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_60:                                ##   in Loop: Header=BB0_21 Depth=3
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -144(%rbp,%r14,2)
	movl	%ebx, %esi
	callq	_VectorCopy
LBB0_61:                                ##   in Loop: Header=BB0_21 Depth=3
	addq	$4, %r14
	cmpq	$32, %r14
	je	LBB0_62
LBB0_21:                                ##   Parent Loop BB0_18 Depth=1
                                        ##     Parent Loop BB0_20 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	-80(%rbp,%r14), %ebx
	movl	%ebx, %edi
	callq	_VectorClear
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -144(%rbp,%r14,2)
	movq	_neighbors@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,2), %rcx
	movl	(%rcx), %eax
	addl	%r15d, %eax
	movl	4(%rcx), %ecx
	addl	%r13d, %ecx
	cmpq	$0, -192(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_51
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=3
	testl	%eax, %eax
	js	LBB0_23
## %bb.50:                              ##   in Loop: Header=BB0_21 Depth=3
	cmpl	%r12d, %eax
	movl	-180(%rbp), %edx                ## 4-byte Reload
	movl	$0, %esi
	cmovll	%esi, %edx
	addl	%edx, %eax
LBB0_51:                                ##   in Loop: Header=BB0_21 Depth=3
	cmpq	$0, -168(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_55
LBB0_52:                                ##   in Loop: Header=BB0_21 Depth=3
	testl	%ecx, %ecx
	js	LBB0_53
## %bb.54:                              ##   in Loop: Header=BB0_21 Depth=3
	cmpl	-152(%rbp), %ecx                ## 4-byte Folded Reload
	movl	-200(%rbp), %edx                ## 4-byte Reload
	movl	$0, %esi
	cmovll	%esi, %edx
	addl	%edx, %ecx
	jmp	LBB0_55
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=3
	addl	-176(%rbp), %eax                ## 4-byte Folded Reload
	cmpq	$0, -168(%rbp)                  ## 8-byte Folded Reload
	jne	LBB0_52
	jmp	LBB0_55
	.p2align	4, 0x90
LBB0_53:                                ##   in Loop: Header=BB0_21 Depth=3
	addl	-172(%rbp), %ecx                ## 4-byte Folded Reload
LBB0_55:                                ##   in Loop: Header=BB0_21 Depth=3
	testl	%eax, %eax
	js	LBB0_61
## %bb.56:                              ##   in Loop: Header=BB0_21 Depth=3
	cmpl	%r12d, %eax
	jge	LBB0_61
## %bb.57:                              ##   in Loop: Header=BB0_21 Depth=3
	testl	%ecx, %ecx
	js	LBB0_61
## %bb.58:                              ##   in Loop: Header=BB0_21 Depth=3
	cmpl	-152(%rbp), %ecx                ## 4-byte Folded Reload
	jge	LBB0_61
## %bb.59:                              ##   in Loop: Header=BB0_21 Depth=3
	imull	%r12d, %ecx
	addl	%eax, %ecx
	movslq	%ecx, %rax
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	movl	4(%rcx,%rax,8), %edi
	callq	_VectorSubtract
	callq	_VectorNormalize
	testl	%eax, %eax
	jne	LBB0_60
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=3
	movq	_neighbors@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,2), %rcx
	movl	(%rcx), %eax
	leal	(%r15,%rax,2), %eax
	cmpq	$0, -192(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_21 Depth=3
	testl	%eax, %eax
	js	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_21 Depth=3
	cmpl	%r12d, %eax
	movl	-180(%rbp), %edx                ## 4-byte Reload
	movl	$0, %esi
	cmovll	%esi, %edx
	addl	%edx, %eax
	jmp	LBB0_28
LBB0_27:                                ##   in Loop: Header=BB0_21 Depth=3
	addl	-176(%rbp), %eax                ## 4-byte Folded Reload
LBB0_28:                                ##   in Loop: Header=BB0_21 Depth=3
	movl	4(%rcx), %ecx
	leal	(%r13,%rcx,2), %ecx
	cmpq	$0, -168(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_32
## %bb.29:                              ##   in Loop: Header=BB0_21 Depth=3
	testl	%ecx, %ecx
	js	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_21 Depth=3
	cmpl	-152(%rbp), %ecx                ## 4-byte Folded Reload
	movl	-200(%rbp), %edx                ## 4-byte Reload
	movl	$0, %esi
	cmovll	%esi, %edx
	addl	%edx, %ecx
LBB0_32:                                ##   in Loop: Header=BB0_21 Depth=3
	testl	%eax, %eax
	js	LBB0_61
LBB0_33:                                ##   in Loop: Header=BB0_21 Depth=3
	cmpl	%r12d, %eax
	jge	LBB0_61
## %bb.34:                              ##   in Loop: Header=BB0_21 Depth=3
	testl	%ecx, %ecx
	js	LBB0_61
## %bb.35:                              ##   in Loop: Header=BB0_21 Depth=3
	cmpl	-152(%rbp), %ecx                ## 4-byte Folded Reload
	jge	LBB0_61
## %bb.36:                              ##   in Loop: Header=BB0_21 Depth=3
	imull	%r12d, %ecx
	addl	%eax, %ecx
	movslq	%ecx, %rax
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	movl	4(%rcx,%rax,8), %edi
	callq	_VectorSubtract
	callq	_VectorNormalize
	testl	%eax, %eax
	jne	LBB0_60
## %bb.37:                              ##   in Loop: Header=BB0_21 Depth=3
	movq	_neighbors@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,2), %rcx
	movl	(%rcx), %eax
	leal	(%rax,%rax,2), %eax
	addl	%r15d, %eax
	cmpq	$0, -192(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_41
## %bb.38:                              ##   in Loop: Header=BB0_21 Depth=3
	testl	%eax, %eax
	js	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_21 Depth=3
	cmpl	%r12d, %eax
	movl	-180(%rbp), %edx                ## 4-byte Reload
	movl	$0, %esi
	cmovll	%esi, %edx
	addl	%edx, %eax
	jmp	LBB0_41
LBB0_31:                                ##   in Loop: Header=BB0_21 Depth=3
	addl	-172(%rbp), %ecx                ## 4-byte Folded Reload
	testl	%eax, %eax
	jns	LBB0_33
	jmp	LBB0_61
LBB0_40:                                ##   in Loop: Header=BB0_21 Depth=3
	addl	-176(%rbp), %eax                ## 4-byte Folded Reload
LBB0_41:                                ##   in Loop: Header=BB0_21 Depth=3
	movl	4(%rcx), %ecx
	leal	(%rcx,%rcx,2), %ecx
	addl	%r13d, %ecx
	cmpq	$0, -168(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_45
## %bb.42:                              ##   in Loop: Header=BB0_21 Depth=3
	testl	%ecx, %ecx
	js	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_21 Depth=3
	cmpl	-152(%rbp), %ecx                ## 4-byte Folded Reload
	movl	-200(%rbp), %edx                ## 4-byte Reload
	movl	$0, %esi
	cmovll	%esi, %edx
	addl	%edx, %ecx
LBB0_45:                                ##   in Loop: Header=BB0_21 Depth=3
	testl	%eax, %eax
	js	LBB0_61
LBB0_46:                                ##   in Loop: Header=BB0_21 Depth=3
	cmpl	%r12d, %eax
	jge	LBB0_61
## %bb.47:                              ##   in Loop: Header=BB0_21 Depth=3
	testl	%ecx, %ecx
	js	LBB0_61
## %bb.48:                              ##   in Loop: Header=BB0_21 Depth=3
	cmpl	-152(%rbp), %ecx                ## 4-byte Folded Reload
	jge	LBB0_61
## %bb.49:                              ##   in Loop: Header=BB0_21 Depth=3
	imull	%r12d, %ecx
	addl	%eax, %ecx
	movslq	%ecx, %rax
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	movl	4(%rcx,%rax,8), %edi
	callq	_VectorSubtract
	callq	_VectorNormalize
	testl	%eax, %eax
	jne	LBB0_60
	jmp	LBB0_61
LBB0_44:                                ##   in Loop: Header=BB0_21 Depth=3
	addl	-172(%rbp), %ecx                ## 4-byte Folded Reload
	testl	%eax, %eax
	jns	LBB0_46
	jmp	LBB0_61
	.p2align	4, 0x90
LBB0_62:                                ##   in Loop: Header=BB0_20 Depth=2
	callq	_VectorClear
	movl	$1, %ebx
	movq	-160(%rbp), %r14                ## 8-byte Reload
	jmp	LBB0_63
	.p2align	4, 0x90
LBB0_67:                                ##   in Loop: Header=BB0_63 Depth=3
	incq	%rbx
	cmpq	$9, %rbx
	je	LBB0_68
LBB0_63:                                ##   Parent Loop BB0_18 Depth=1
                                        ##     Parent Loop BB0_20 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	$0, -152(%rbp,%rbx,8)
	je	LBB0_67
## %bb.64:                              ##   in Loop: Header=BB0_63 Depth=3
	movl	%ebx, %eax
	andl	$7, %eax
	cmpq	$0, -144(%rbp,%rax,8)
	je	LBB0_67
## %bb.65:                              ##   in Loop: Header=BB0_63 Depth=3
	movl	-80(%rbp,%rax,4), %edi
	movl	-84(%rbp,%rbx,4), %esi
	callq	_CrossProduct
	callq	_VectorNormalize
	testl	%eax, %eax
	je	LBB0_67
## %bb.66:                              ##   in Loop: Header=BB0_63 Depth=3
	callq	_VectorAdd
	jmp	LBB0_67
LBB0_70:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_72
## %bb.71:
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_72:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_neighbors,8,3                  ## @neighbors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MakeMeshNormals                ; -- Begin function MakeMeshNormals
	.p2align	2
_MakeMeshNormals:                       ; @MakeMeshNormals
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #288
	.cfi_def_cfa_offset 288
	stp	d9, d8, [sp, #176]              ; 16-byte Folded Spill
	stp	x28, x27, [sp, #192]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #208]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #224]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #240]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #256]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #272]            ; 16-byte Folded Spill
	add	x29, sp, #272
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x28, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-112]
	lsr	x22, x0, #32
Lloh3:
	adrp	x8, _qfalse@GOTPAGE
Lloh4:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh5:
	ldr	x19, [x8]
	asr	x9, x0, #32
	subs	w8, w20, #1
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	b.lt	LBB0_6
; %bb.1:
	mov	x23, #0
	and	x21, x20, #0xffffffff
	mov	x8, #-4294967296
	add	x24, x8, x22, lsl #32
	and	x25, x20, #0xffffffff00000000
	add	x26, x28, #4
	lsl	x27, x9, #3
	fmov	s8, #1.00000000
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	add	x8, x28, x24, asr #29
	ldr	w1, [x8, #4]
	bl	_VectorSubtract
	bl	_VectorLength
	fcmp	s0, s8
	b.gt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	add	x24, x24, x25
	add	x26, x26, x27
	cmp	x21, x23
	b.ne	LBB0_2
; %bb.4:
	mov	x23, x20
LBB0_5:
Lloh6:
	adrp	x8, _qfalse@GOTPAGE
Lloh7:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh8:
	ldr	x21, [x8]
	b	LBB0_7
LBB0_6:
	mov	w23, #0
	mov	x21, x19
LBB0_7:
Lloh9:
	adrp	x8, _qtrue@GOTPAGE
Lloh10:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	w23, w20
	csel	x8, x8, x19, eq
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	subs	w8, w22, #1
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	b.lt	LBB0_41
; %bb.8:
	mov	x19, #0
	sub	w8, w20, #1
	mul	w8, w8, w22
	sbfiz	x23, x8, #3, #32
	add	x24, x28, #4
	fmov	s8, #1.00000000
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	ldr	w1, [x24, x23]
	bl	_VectorSubtract
	bl	_VectorLength
	fcmp	s0, s8
	b.gt	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x19, x19, #1
	add	x24, x24, #8
	cmp	x22, x19
	b.ne	LBB0_9
; %bb.11:
	mov	x19, x22
LBB0_12:
	mov	x24, #0
Lloh12:
	adrp	x8, _qtrue@GOTPAGE
Lloh13:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	w19, w22
	csel	x8, x8, x21, eq
	stp	x28, x8, [sp, #24]              ; 16-byte Folded Spill
	mov	w8, #1
	sub	w19, w8, w22
	sub	w23, w8, w20
	and	x8, x20, #0xffffffff
	str	x8, [sp]                        ; 8-byte Folded Spill
	add	x26, sp, #128
	add	x25, sp, #64
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x24, x24, #1
	cmp	x24, x22
	b.eq	LBB0_41
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
                                        ;       Child Loop BB0_20 Depth 3
                                        ;       Child Loop BB0_37 Depth 3
	cmp	w20, #1
	b.lt	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x27, #0
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	lsl	x8, x8, #3
	ldr	w1, [x28, x8]
	bl	_VectorNormalize
	add	x27, x27, #1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	cmp	x27, x8
	b.eq	LBB0_13
LBB0_17:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_20 Depth 3
                                        ;       Child Loop BB0_37 Depth 3
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	madd	x8, x27, x8, x24
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	add	x8, x28, x8, lsl #3
	ldr	w0, [x8, #4]
	bl	_VectorCopy
	mov	x28, #0
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=3
Lloh15:
	adrp	x8, _qtrue@GOTPAGE
Lloh16:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x25, x28, lsl #3]
	mov	x1, x21
	bl	_VectorCopy
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=3
	add	x28, x28, #1
	cmp	x28, #8
	b.eq	LBB0_35
LBB0_20:                                ;   Parent Loop BB0_14 Depth=1
                                        ;     Parent Loop BB0_17 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w21, [x26, x28, lsl #2]
	mov	x0, x21
	bl	_VectorClear
Lloh18:
	adrp	x8, _qfalse@GOTPAGE
Lloh19:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	lsl	x9, x28, #3
	str	x8, [x25, x9]
Lloh21:
	adrp	x8, _neighbors@GOTPAGE
Lloh22:
	ldr	x8, [x8, _neighbors@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	x8, [x8, x9]
	ldp	w10, w8, [x8]
	add	w9, w8, w27
	add	w8, w10, w24
	cmp	w8, w22
	csel	w10, wzr, w19, lt
	add	w10, w8, w10
	ldr	w11, [sp, #44]                  ; 4-byte Folded Reload
	add	w11, w11, w8
	tst	w8, #0x80000000
	csel	w10, w10, w11, eq
	ldr	x11, [sp, #48]                  ; 8-byte Folded Reload
	cmp	x11, #0
	csel	w8, w8, w10, eq
	cmp	w9, w20
	csel	w10, wzr, w23, lt
	add	w10, w9, w10
	ldr	w11, [sp, #60]                  ; 4-byte Folded Reload
	add	w11, w11, w9
	tst	w9, #0x80000000
	csel	w10, w10, w11, eq
	ldr	x11, [sp, #32]                  ; 8-byte Folded Reload
	cmp	x11, #0
	csel	w9, w9, w10, eq
	tbnz	w8, #31, LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=3
	cmp	w8, w22
	b.ge	LBB0_19
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=3
	tbnz	w9, #31, LBB0_19
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=3
	cmp	w9, w20
	b.ge	LBB0_19
; %bb.24:                               ;   in Loop: Header=BB0_20 Depth=3
	madd	w8, w9, w22, w8
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x8, x9, w8, sxtw #3
	ldr	w0, [x8, #4]
	bl	_VectorSubtract
	bl	_VectorNormalize
	cbnz	w0, LBB0_18
; %bb.25:                               ;   in Loop: Header=BB0_20 Depth=3
Lloh24:
	adrp	x8, _neighbors@GOTPAGE
Lloh25:
	ldr	x8, [x8, _neighbors@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldr	x8, [x8, x28, lsl #3]
	ldp	w9, w8, [x8]
	add	w9, w24, w9, lsl #1
	add	w10, w27, w8, lsl #1
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	add	w8, w8, w9
	cmp	w9, w22
	csel	w11, wzr, w19, lt
	add	w11, w9, w11
	tst	w9, #0x80000000
	csel	w8, w8, w11, ne
	ldr	x11, [sp, #48]                  ; 8-byte Folded Reload
	cmp	x11, #0
	csel	w8, w9, w8, eq
	ldr	w9, [sp, #60]                   ; 4-byte Folded Reload
	add	w9, w9, w10
	cmp	w10, w20
	csel	w11, wzr, w23, lt
	add	w11, w10, w11
	tst	w10, #0x80000000
	csel	w9, w9, w11, ne
	ldr	x11, [sp, #32]                  ; 8-byte Folded Reload
	cmp	x11, #0
	csel	w9, w10, w9, eq
	tbnz	w8, #31, LBB0_19
; %bb.26:                               ;   in Loop: Header=BB0_20 Depth=3
	cmp	w8, w22
	b.ge	LBB0_19
; %bb.27:                               ;   in Loop: Header=BB0_20 Depth=3
	tbnz	w9, #31, LBB0_19
; %bb.28:                               ;   in Loop: Header=BB0_20 Depth=3
	cmp	w9, w20
	b.ge	LBB0_19
; %bb.29:                               ;   in Loop: Header=BB0_20 Depth=3
	madd	w8, w9, w22, w8
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x8, x9, w8, sxtw #3
	ldr	w0, [x8, #4]
	bl	_VectorSubtract
	bl	_VectorNormalize
	cbnz	w0, LBB0_18
; %bb.30:                               ;   in Loop: Header=BB0_20 Depth=3
Lloh27:
	adrp	x8, _neighbors@GOTPAGE
Lloh28:
	ldr	x8, [x8, _neighbors@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	ldr	x8, [x8, x28, lsl #3]
	ldp	w9, w8, [x8]
	add	w9, w9, w9, lsl #1
	add	w10, w8, w8, lsl #1
	add	w8, w9, w24
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	add	w9, w9, w8
	cmp	w8, w22
	csel	w11, wzr, w19, lt
	add	w11, w8, w11
	tst	w8, #0x80000000
	csel	w9, w9, w11, ne
	ldr	x11, [sp, #48]                  ; 8-byte Folded Reload
	cmp	x11, #0
	csel	w8, w8, w9, eq
	add	w9, w10, w27
	ldr	w10, [sp, #60]                  ; 4-byte Folded Reload
	add	w10, w10, w9
	cmp	w9, w20
	csel	w11, wzr, w23, lt
	add	w11, w9, w11
	tst	w9, #0x80000000
	csel	w10, w10, w11, ne
	ldr	x11, [sp, #32]                  ; 8-byte Folded Reload
	cmp	x11, #0
	csel	w9, w9, w10, eq
	tbnz	w8, #31, LBB0_19
; %bb.31:                               ;   in Loop: Header=BB0_20 Depth=3
	cmp	w8, w22
	b.ge	LBB0_19
; %bb.32:                               ;   in Loop: Header=BB0_20 Depth=3
	tbnz	w9, #31, LBB0_19
; %bb.33:                               ;   in Loop: Header=BB0_20 Depth=3
	cmp	w9, w20
	b.ge	LBB0_19
; %bb.34:                               ;   in Loop: Header=BB0_20 Depth=3
	madd	w8, w9, w22, w8
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x8, x9, w8, sxtw #3
	ldr	w0, [x8, #4]
	bl	_VectorSubtract
	bl	_VectorNormalize
	cbnz	w0, LBB0_18
	b	LBB0_19
LBB0_35:                                ;   in Loop: Header=BB0_17 Depth=2
	bl	_VectorClear
	mov	x8, #0
	ldr	x28, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_37
LBB0_36:                                ;   in Loop: Header=BB0_37 Depth=3
	mov	x8, x21
	cmp	x21, #8
	b.eq	LBB0_16
LBB0_37:                                ;   Parent Loop BB0_14 Depth=1
                                        ;     Parent Loop BB0_17 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x9, [x25, x8, lsl #3]
	add	x21, x8, #1
	cbz	x9, LBB0_36
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=3
	and	x9, x21, #0x7
	ldr	x10, [x25, x9, lsl #3]
	cbz	x10, LBB0_36
; %bb.39:                               ;   in Loop: Header=BB0_37 Depth=3
	add	x10, sp, #128
	ldr	w0, [x10, x9, lsl #2]
	add	x26, sp, #128
	ldr	w1, [x10, x8, lsl #2]
	bl	_CrossProduct
	bl	_VectorNormalize
	cbz	w0, LBB0_36
; %bb.40:                               ;   in Loop: Header=BB0_37 Depth=3
	bl	_VectorAdd
	b	LBB0_36
LBB0_41:
	ldur	x8, [x29, #-112]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_43
; %bb.42:
	ldp	x29, x30, [sp, #272]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #256]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #240]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #224]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #208]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #192]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #176]              ; 16-byte Folded Reload
	add	sp, sp, #288
	ret
LBB0_43:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_neighbors,8,3                  ; @neighbors
.subsections_via_symbols
