	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function VL_PointInLeafnum_r
LCPI0_0:
	.quad	0x3fb999999999999a              ## double 0.10000000000000001
LCPI0_1:
	.quad	0xbfb999999999999a              ## double -0.10000000000000001
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_VL_PointInLeafnum_r
	.p2align	4, 0x90
_VL_PointInLeafnum_r:                   ## @VL_PointInLeafnum_r
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %eax
	testl	%esi, %esi
	js	LBB0_9
## %bb.1:
	movl	%edi, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx,%r12), %rax
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %eax
	testl	%eax, %eax
	js	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_dnodes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	movl	%eax, %r12d
	movq	_dplanes@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	shlq	$4, %r12
	movq	(%rbx,%r12), %r15
	shlq	$4, %r15
	movl	8(%r14,%r15), %esi
	movl	%r13d, %edi
	callq	_DotProduct
	subsd	(%r14,%r15), %xmm0
	ucomisd	LCPI0_0(%rip), %xmm0
	ja	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	movq	8(%rbx,%r12), %rax
	ja	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_VL_PointInLeafnum_r
	movq	_dleafs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %edx
	cmpl	$-1, (%rcx,%rdx,4)
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rbx,%r12), %rax
	addq	$8, %rax
	movq	(%rax), %rax
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %rax
	jmp	LBB0_8
LBB0_9:
	notl	%eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dnodes,8,3                     ## @dnodes
	.comm	_dplanes,8,3                    ## @dplanes
	.comm	_dleafs,8,3                     ## @dleafs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VL_PointInLeafnum_r            ; -- Begin function VL_PointInLeafnum_r
	.p2align	2
_VL_PointInLeafnum_r:                   ; @VL_PointInLeafnum_r
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	tbnz	w1, #31, LBB0_8
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x20, _dnodes@GOTPAGE
Lloh1:
	ldr	x20, [x20, _dnodes@GOTPAGEOFF]
Lloh2:
	adrp	x21, _dplanes@GOTPAGE
Lloh3:
	ldr	x21, [x21, _dplanes@GOTPAGEOFF]
	mov	x22, #-7378697629483820647
	movk	x22, #39322
	movk	x22, #16313, lsl #48
	mov	x23, #-7378697629483820647
	movk	x23, #39322
	movk	x23, #49081, lsl #48
Lloh4:
	adrp	x24, _dleafs@GOTPAGE
Lloh5:
	ldr	x24, [x24, _dleafs@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x25, x26, lsl #4
	ldr	x8, [x8, #8]
	ldr	w1, [x8]
	tbnz	w1, #31, LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x20]
	mov	w26, w1
	ldr	x8, [x21]
	lsl	x9, x26, #4
	ldr	x9, [x25, x9]
	add	x27, x8, x9, lsl #4
	ldr	w1, [x27, #8]
	mov	x0, x19
	bl	_DotProduct
	ldr	d1, [x27]
	fsub	d0, d0, d1
	fmov	d1, x22
	fcmp	d0, d1
	b.gt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, x26, lsl #4
	ldr	x8, [x25, #8]!
	fmov	d1, x23
	fcmp	d0, d1
	b.mi	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x8]
	mov	x0, x19
	bl	_VL_PointInLeafnum_r
	ldr	x8, [x24]
	ldr	w8, [x8, w0, uxtw #2]
	cmn	w8, #1
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25]
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #4
	ldr	w1, [x8]
	tbz	w1, #31, LBB0_3
LBB0_8:
	mvn	w0, w1
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_dnodes,8,3                     ; @dnodes
	.comm	_dplanes,8,3                    ; @dplanes
	.comm	_dleafs,8,3                     ; @dleafs
.subsections_via_symbols
