	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function FilterMapDrawSurfIntoTree
LCPI0_0:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_FilterMapDrawSurfIntoTree
	.p2align	4, 0x90
_FilterMapDrawSurfIntoTree:             ## @FilterMapDrawSurfIntoTree
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %r15
	movq	_PLANENUM_LEAF@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_2:
	movl	%edi, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_mapplanes@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	4(%r13,%r15,8), %esi
	movl	%r12d, %edi
	callq	_DotProduct
	subss	(%r13,%r15,8), %xmm0
	movq	_ON_EPSILON@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	movaps	%xmm2, %xmm1
	xorps	LCPI0_0(%rip), %xmm1
	ucomiss	%xmm1, %xmm0
	movl	$0, %eax
	jb	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r14), %rax
	movq	(%rax), %rdx
	movl	%r12d, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	callq	_FilterMapDrawSurfIntoTree
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movq	_ON_EPSILON@GOTPCREL(%rip), %rcx
	movss	(%rcx), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	ucomiss	%xmm0, %xmm2
	jb	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r14), %rcx
	movq	8(%rcx), %r14
	addl	%eax, %ebx
	movq	(%r14), %r15
	movq	_PLANENUM_LEAF@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_3
LBB0_7:
	cmpq	$0, 16(%r14)
	je	LBB0_9
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_9:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	_numDrawSurfaces@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rax)
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_11
LBB0_13:
	movl	$16, %edi
	callq	_malloc
	movq	_numDrawSurfaces@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	movq	8(%r14), %rcx
	movq	%rcx, 8(%rax)
	movq	%rax, 8(%r14)
	movl	$1, %eax
LBB0_15:
	addl	%eax, %ebx
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLANENUM_LEAF,8,3              ## @PLANENUM_LEAF
	.comm	_mapplanes,8,3                  ## @mapplanes
	.comm	_ON_EPSILON,4,2                 ## @ON_EPSILON
	.comm	_numDrawSurfaces,8,3            ## @numDrawSurfaces
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FilterMapDrawSurfIntoTree      ; -- Begin function FilterMapDrawSurfIntoTree
	.p2align	2
_FilterMapDrawSurfIntoTree:             ; @FilterMapDrawSurfIntoTree
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -88
	.cfi_offset b9, -96
	mov	x19, x2
	ldr	x8, [x2]
Lloh0:
	adrp	x23, _PLANENUM_LEAF@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PLANENUM_LEAF@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	w22, #0
LBB0_2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
LBB0_3:
	mov	w0, #0
	b	LBB0_14
LBB0_4:
	mov	x20, x1
	mov	x21, x0
	mov	w22, #0
Lloh2:
	adrp	x24, _mapplanes@GOTPAGE
Lloh3:
	ldr	x24, [x24, _mapplanes@GOTPAGEOFF]
Lloh4:
	adrp	x25, _ON_EPSILON@GOTPAGE
Lloh5:
	ldr	x25, [x25, _ON_EPSILON@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #24]
	ldr	x2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_FilterMapDrawSurfIntoTree
	ldr	s0, [x25]
	fcmp	s8, s0
	b.hi	LBB0_14
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #24]
	ldr	x19, [x8, #8]
	add	w22, w0, w22
	ldr	x8, [x19]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24]
	add	x26, x9, x8, lsl #3
	ldr	w1, [x26, #4]
	mov	x0, x21
	bl	_DotProduct
	ldr	s1, [x26]
	fsub	s8, s0, s1
	ldr	s0, [x25]
	fneg	s1, s0
	fcmp	s8, s1
	b.ge	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #0
	fcmp	s8, s0
	b.ls	LBB0_6
	b	LBB0_14
LBB0_9:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x20, _numDrawSurfaces@GOTPAGE
Lloh7:
	ldr	x20, [x20, _numDrawSurfaces@GOTPAGEOFF]
	cbz	x8, LBB0_13
; %bb.10:
	ldr	x9, [x20]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8]
	cmp	x10, x9
	b.eq	LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_11
LBB0_13:
	mov	w0, #16
	bl	_malloc
	ldr	x8, [x20]
	ldr	x9, [x19, #8]
	stp	x8, x9, [x0]
	str	x0, [x19, #8]
	mov	w0, #1
LBB0_14:
	add	w0, w0, w22
	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	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PLANENUM_LEAF,8,3              ; @PLANENUM_LEAF
	.comm	_mapplanes,8,3                  ; @mapplanes
	.comm	_ON_EPSILON,4,2                 ; @ON_EPSILON
	.comm	_numDrawSurfaces,8,3            ; @numDrawSurfaces
.subsections_via_symbols
