	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FilterMiscModelSurfIntoTree    ## -- Begin function FilterMiscModelSurfIntoTree
	.p2align	4, 0x90
_FilterMiscModelSurfIntoTree:           ## @FilterMiscModelSurfIntoTree
	.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
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	xorl	%r13d, %r13d
	cmpl	$3, (%rdi)
	jl	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$3, %edi
	callq	_AllocWinding
	movq	%rax, %r12
	movq	8(%r15), %rax
	movq	24(%r15), %rcx
	movq	(%rax,%rbx,8), %rax
	movl	(%rcx,%rax,4), %edi
	movq	8(%r12), %rax
	movl	(%rax), %esi
	callq	_VectorCopy
	movq	8(%r15), %rax
	movq	24(%r15), %rcx
	leaq	1(%rbx), %r14
	movq	8(%rax,%rbx,8), %rax
	movl	(%rcx,%rax,4), %edi
	movq	8(%r12), %rax
	movl	4(%rax), %esi
	callq	_VectorCopy
	movq	8(%r15), %rax
	movq	24(%r15), %rcx
	movq	16(%rax,%rbx,8), %rax
	movl	(%rcx,%rax,4), %edi
	movq	8(%r12), %rax
	movl	8(%rax), %esi
	callq	_VectorCopy
	movl	$3, (%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_FilterMapDrawSurfIntoTree_r
	addl	%eax, %r13d
	movslq	(%r15), %rax
	addq	$-2, %rax
	movq	%r14, %rbx
	cmpq	%rax, %r14
	jl	LBB0_2
LBB0_3:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	cmpl	$0, 16(%r15)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	movl	(%r14), %edx
	movq	%r15, %rsi
	callq	_FilterMapDrawSurfIntoTree
	addl	%eax, %r13d
	incq	%rbx
	movslq	16(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FilterMiscModelSurfIntoTree    ; -- Begin function FilterMiscModelSurfIntoTree
	.p2align	2
_FilterMiscModelSurfIntoTree:           ; @FilterMiscModelSurfIntoTree
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #3
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
	mov	w21, #0
	mov	w24, #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #3
	bl	_AllocWinding
	mov	x22, x0
	ldr	x8, [x20, #24]
	ldr	x9, [x20, #8]
	lsl	x25, x23, #3
	ldr	x9, [x9, x25]
	ldr	w0, [x8, x9, lsl #2]
	ldr	x8, [x22, #8]
	ldr	w1, [x8]
	bl	_VectorCopy
	ldr	x8, [x20, #24]
	ldr	x9, [x20, #8]
	add	x23, x23, #1
	add	x9, x9, x25
	ldr	x9, [x9, #8]
	ldr	w0, [x8, x9, lsl #2]
	ldr	x8, [x22, #8]
	ldr	w1, [x8, #4]
	bl	_VectorCopy
	ldr	x8, [x20, #24]
	ldr	x9, [x20, #8]
	add	x9, x9, x25
	ldr	x9, [x9, #16]
	ldr	w0, [x8, x9, lsl #2]
	ldr	x8, [x22, #8]
	ldr	w1, [x8, #8]
	bl	_VectorCopy
	str	w24, [x22]
	ldr	w2, [x19]
	mov	x0, x22
	mov	x1, x20
	bl	_FilterMapDrawSurfIntoTree_r
	add	w21, w21, w0
	ldrsw	x8, [x20]
	sub	x8, x8, #2
	cmp	x23, x8
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w21, #0
LBB0_4:
	ldr	w8, [x20, #16]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x22, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	w0, [x8, x22, lsl #2]
	ldr	w2, [x19]
	mov	x1, x20
	bl	_FilterMapDrawSurfIntoTree
	add	w21, w21, w0
	add	x22, x22, #1
	ldrsw	x8, [x20, #16]
	cmp	x22, x8
	b.lt	LBB0_6
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
