	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SelectSplitSide                ## -- Begin function SelectSplitSide
	.p2align	4, 0x90
_SelectSplitSide:                       ## @SelectSplitSide
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movl	$0, -52(%rbp)
	movb	$1, %r13b
	movl	$-99999, -48(%rbp)              ## 4-byte Folded Spill
                                        ## imm = 0xFFFE7961
	movq	_TEXINFO_NODE@GOTPCREL(%rip), %r9
	movq	_SFL_TESTED@GOTPCREL(%rip), %r15
	movq	_SFL_CURVE@GOTPCREL(%rip), %r8
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%r12, %r12
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_23
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r12d, %r12d
	testb	$1, %r13b
	movl	$0, %r13d
	je	LBB0_25
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
                                        ##         Child Loop BB0_16 Depth 4
                                        ##         Child Loop BB0_21 Depth 4
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rdi, %rbx
	xorl	%r12d, %r12d
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
                                        ##         Child Loop BB0_16 Depth 4
                                        ##         Child Loop BB0_21 Depth 4
	cmpl	$0, (%rbx)
	jle	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	xorl	%edi, %edi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=3
	movq	_TEXINFO_NODE@GOTPCREL(%rip), %r9
	movq	_SFL_CURVE@GOTPCREL(%rip), %r8
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=3
	incq	%rdi
	movslq	(%rbx), %rax
	cmpq	%rax, %rdi
	jge	LBB0_5
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_16 Depth 4
                                        ##         Child Loop BB0_21 Depth 4
	movq	16(%rbx), %rdx
	leaq	(%rdi,%rdi,2), %rsi
	cmpl	$0, 20(%rdx,%rsi,8)
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=3
	leaq	(%rdx,%rsi,8), %rcx
	movq	(%rcx), %rax
	cmpq	(%r9), %rax
	je	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=3
	movl	8(%rdx,%rsi,8), %eax
	testl	%eax, (%r15)
	jne	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=3
	testl	%eax, (%r8)
	setne	%al
	testb	%r13b, %al
	jne	LBB0_9
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=3
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	movslq	12(%rdx,%rsi,8), %r14
	andq	$-2, %r14
	movl	%r14d, %edi
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_CheckPlaneAgainstParents
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_CheckPlaneAgainstVolume
	testl	%eax, %eax
	je	LBB0_8
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=3
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movl	$0, -56(%rbp)
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ##       Parent Loop BB0_10 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movq	%r12, %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	leaq	-84(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	leaq	-56(%rbp), %r8
	callq	_TestBrushToPlanenum
	addl	-84(%rbp), %r13d
	movl	%eax, 4(%r12)
	movq	_PSIDE_FACING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r15d
	movq	_PSIDE_FRONT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %ebx
	movq	_PSIDE_BACK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	$1, %eax
	sbbl	$-1, %r14d
	movq	24(%r12), %r12
	testq	%r12, %r12
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=3
	subl	%r14d, %ebx
	subl	%r13d, %r15d
	movl	%ebx, %eax
	negl	%eax
	leal	(%r15,%r15,4), %ecx
	cmovnsl	%ebx, %eax
	leal	(%rcx,%rax), %edx
	movq	_mapplanes@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	cmpl	$3, (%rsi,%rdi,4)
	leal	5(%rax,%rcx), %ecx
	cmovgel	%edx, %ecx
	imull	$-1000, -56(%rbp), %eax         ## imm = 0xFC18
	addl	%ecx, %eax
	cmpl	$0, -52(%rbp)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=3
	movq	_SURF_HINT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	testl	%ecx, 16(%rdx,%rsi,8)
	movl	$-9999999, %ecx                 ## imm = 0xFF676981
	cmovel	%ecx, %eax
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=3
	movq	_SFL_TESTED@GOTPCREL(%rip), %r15
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movq	_TEXINFO_NODE@GOTPCREL(%rip), %r9
	movq	_SFL_CURVE@GOTPCREL(%rip), %r8
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	jle	LBB0_9
## %bb.20:                              ##   in Loop: Header=BB0_10 Depth=3
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ##       Parent Loop BB0_10 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movl	4(%rcx), %edx
	movl	%edx, 8(%rcx)
	movq	24(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_10 Depth=3
	movq	-120(%rbp), %r12                ## 8-byte Reload
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_9
LBB0_23:
	testb	$1, %r13b
	jne	LBB0_25
## %bb.24:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
LBB0_25:
	testq	%rdi, %rdi
	je	LBB0_41
## %bb.26:
	movl	$4, %r8d
	pcmpeqd	%xmm0, %xmm0
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_28 Depth=1
	movq	24(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_41
LBB0_28:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_35 Depth 2
                                        ##     Child Loop BB0_40 Depth 2
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_27
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	16(%rdi), %r9
	cmpl	$5, %ecx
	jb	LBB0_30
## %bb.31:                              ##   in Loop: Header=BB0_28 Depth=1
	leaq	8(%r9), %rsi
	leaq	4(%r15), %rax
	cmpq	%rax, %rsi
	jae	LBB0_34
## %bb.32:                              ##   in Loop: Header=BB0_28 Depth=1
	leaq	(%rcx,%rcx,2), %rsi
	leaq	(%r9,%rsi,8), %rsi
	addq	$-12, %rsi
	cmpq	%r15, %rsi
	jbe	LBB0_34
LBB0_30:                                ##   in Loop: Header=BB0_28 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_36
LBB0_34:                                ##   in Loop: Header=BB0_28 Depth=1
	movl	%ecx, %esi
	andl	$3, %esi
	testq	%rsi, %rsi
	cmoveq	%r8, %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movd	(%r15), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	pxor	%xmm0, %xmm1
	leaq	80(%r9), %rdx
	movq	%rax, %rsi
	.p2align	4, 0x90
LBB0_35:                                ##   Parent Loop BB0_28 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movd	-72(%rdx), %xmm2                ## xmm2 = mem[0],zero,zero,zero
	pinsrd	$1, -48(%rdx), %xmm2
	pinsrd	$2, -24(%rdx), %xmm2
	pinsrd	$3, (%rdx), %xmm2
	pand	%xmm1, %xmm2
	movd	%xmm2, -72(%rdx)
	pextrd	$1, %xmm2, -48(%rdx)
	pextrd	$2, %xmm2, -24(%rdx)
	pextrd	$3, %xmm2, (%rdx)
	addq	$96, %rdx
	addq	$-4, %rsi
	jne	LBB0_35
LBB0_36:                                ##   in Loop: Header=BB0_28 Depth=1
	movl	%ecx, %edx
	subl	%eax, %edx
	movq	%rax, %rsi
	testb	$1, %dl
	je	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_28 Depth=1
	movl	(%r15), %esi
	notl	%esi
	leaq	(%rax,%rax,2), %rdx
	andl	%esi, 8(%r9,%rdx,8)
	leaq	1(%rax), %rsi
LBB0_38:                                ##   in Loop: Header=BB0_28 Depth=1
	notq	%rax
	addq	%rcx, %rax
	je	LBB0_27
## %bb.39:                              ##   in Loop: Header=BB0_28 Depth=1
	subq	%rsi, %rcx
	leaq	(%rsi,%rsi,2), %rsi
	leaq	(%r9,%rsi,8), %rdx
	addq	$32, %rdx
	.p2align	4, 0x90
LBB0_40:                                ##   Parent Loop BB0_28 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15), %esi
	notl	%esi
	andl	%esi, -24(%rdx)
	movl	(%r15), %esi
	notl	%esi
	andl	%esi, (%rdx)
	addq	$48, %rdx
	addq	$-2, %rcx
	jne	LBB0_40
	jmp	LBB0_27
LBB0_41:
	movq	%r12, %rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TEXINFO_NODE,8,3               ## @TEXINFO_NODE
	.comm	_SFL_TESTED,4,2                 ## @SFL_TESTED
	.comm	_SFL_CURVE,4,2                  ## @SFL_CURVE
	.comm	_PSIDE_FACING,4,2               ## @PSIDE_FACING
	.comm	_PSIDE_FRONT,4,2                ## @PSIDE_FRONT
	.comm	_PSIDE_BACK,4,2                 ## @PSIDE_BACK
	.comm	_PSIDE_BOTH,4,2                 ## @PSIDE_BOTH
	.comm	_mapplanes,8,3                  ## @mapplanes
	.comm	_SURF_HINT,4,2                  ## @SURF_HINT
	.comm	_numthreads,4,2                 ## @numthreads
	.comm	_c_nonvis,4,2                   ## @c_nonvis
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SelectSplitSide                ; -- Begin function SelectSplitSide
	.p2align	2
_SelectSplitSide:                       ; @SelectSplitSide
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	str	x1, [sp, #32]                   ; 8-byte Folded Spill
	mov	x23, x0
	str	wzr, [sp, #52]
	mov	w8, #1
	mov	w9, #31073
	movk	w9, #65534, lsl #16
	str	w9, [sp, #28]                   ; 4-byte Folded Spill
	mov	w27, #24
Lloh0:
	adrp	x28, _TEXINFO_NODE@GOTPAGE
Lloh1:
	ldr	x28, [x28, _TEXINFO_NODE@GOTPAGEOFF]
Lloh2:
	adrp	x21, _SFL_TESTED@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SFL_TESTED@GOTPAGEOFF]
Lloh4:
	adrp	x11, _SFL_CURVE@GOTPAGE
Lloh5:
	ldr	x11, [x11, _SFL_CURVE@GOTPAGEOFF]
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	cbnz	x0, LBB0_25
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #0
	tbz	w20, #0, LBB0_24
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
                                        ;         Child Loop BB0_16 Depth 4
                                        ;         Child Loop BB0_22 Depth 4
	mov	x20, x8
	cbz	x23, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [sp, #8]                   ; 8-byte Folded Spill
	mov	x12, x23
	str	w20, [sp, #24]                  ; 4-byte Folded Spill
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	x12, [x12, #24]
	cbz	x12, LBB0_1
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
                                        ;         Child Loop BB0_16 Depth 4
                                        ;         Child Loop BB0_22 Depth 4
	ldr	w8, [x12]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x19, #0
	str	x12, [sp, #40]                  ; 8-byte Folded Spill
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=3
Lloh6:
	adrp	x11, _SFL_CURVE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _SFL_CURVE@GOTPAGEOFF]
	ldr	x12, [sp, #40]                  ; 8-byte Folded Reload
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=3
	add	x19, x19, #1
	ldrsw	x8, [x12]
	cmp	x19, x8
	b.ge	LBB0_5
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_16 Depth 4
                                        ;         Child Loop BB0_22 Depth 4
	ldr	x26, [x12, #16]
	madd	x24, x19, x27, x26
	ldr	w8, [x24, #20]
	cbz	w8, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=3
	ldr	x8, [x24]
	ldr	x9, [x28]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=3
	madd	x8, x19, x27, x26
	ldr	w8, [x8, #8]
	ldr	w9, [x21]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=3
	ldr	w9, [x11]
	tst	w9, w8
	cset	w8, ne
	and	w8, w8, w20
	tbnz	w8, #0, LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=3
	madd	x8, x19, x27, x26
	ldrsw	x8, [x8, #12]
	and	x22, x8, #0xfffffffffffffffe
	mov	x0, x22
	ldr	x25, [sp, #32]                  ; 8-byte Folded Reload
	mov	x1, x25
	bl	_CheckPlaneAgainstParents
	mov	x0, x22
	mov	x1, x25
	bl	_CheckPlaneAgainstVolume
	cbz	w0, LBB0_8
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=3
	mov	w28, #0
	mov	w21, #0
	mov	w27, #0
	mov	w25, #0
	str	wzr, [sp, #56]
Lloh8:
	adrp	x20, _PSIDE_FACING@GOTPAGE
Lloh9:
	ldr	x20, [x20, _PSIDE_FACING@GOTPAGEOFF]
LBB0_16:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ;       Parent Loop BB0_10 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	add	x2, sp, #60
	add	x3, sp, #52
	add	x4, sp, #56
	mov	x0, x23
	mov	x1, x22
	bl	_TestBrushToPlanenum
	ldr	w8, [sp, #60]
	add	w28, w8, w28
	str	w0, [x23, #4]
	ldr	w8, [x20]
	tst	w8, w0
	cinc	w21, w21, ne
Lloh10:
	adrp	x8, _PSIDE_FRONT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PSIDE_FRONT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w0
	cinc	w25, w25, ne
Lloh13:
	adrp	x8, _PSIDE_BACK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PSIDE_BACK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w0
	cinc	w27, w27, ne
	ldr	x23, [x23, #24]
	cbnz	x23, LBB0_16
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=3
	subs	w8, w25, w27
	cneg	w8, w8, mi
	sub	w9, w21, w28
	add	w9, w9, w9, lsl #2
	sub	w8, w9, w8
Lloh16:
	adrp	x9, _mapplanes@GOTPAGE
Lloh17:
	ldr	x9, [x9, _mapplanes@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	ldr	w9, [x9, x22, lsl #2]
	add	w10, w8, #5
	cmp	w9, #3
	csel	w8, w10, w8, lt
	ldr	w9, [sp, #56]
	mov	w10, #-1000
	madd	w8, w9, w10, w8
	ldr	w9, [sp, #52]
	cbz	w9, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=3
	mov	w27, #24
	madd	x9, x19, x27, x26
	ldr	w9, [x9, #16]
Lloh19:
	adrp	x10, _SURF_HINT@GOTPAGE
Lloh20:
	ldr	x10, [x10, _SURF_HINT@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	tst	w10, w9
	mov	w9, #27009
	movk	w9, #65383, lsl #16
	csel	w8, w9, w8, eq
	ldr	x23, [sp, #16]                  ; 8-byte Folded Reload
Lloh22:
	adrp	x21, _SFL_TESTED@GOTPAGE
Lloh23:
	ldr	x21, [x21, _SFL_TESTED@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_10 Depth=3
	ldr	x23, [sp, #16]                  ; 8-byte Folded Reload
Lloh24:
	adrp	x21, _SFL_TESTED@GOTPAGE
Lloh25:
	ldr	x21, [x21, _SFL_TESTED@GOTPAGEOFF]
	mov	w27, #24
LBB0_20:                                ;   in Loop: Header=BB0_10 Depth=3
Lloh26:
	adrp	x28, _TEXINFO_NODE@GOTPAGE
Lloh27:
	ldr	x28, [x28, _TEXINFO_NODE@GOTPAGEOFF]
Lloh28:
	adrp	x11, _SFL_CURVE@GOTPAGE
Lloh29:
	ldr	x11, [x11, _SFL_CURVE@GOTPAGEOFF]
	ldp	w20, w9, [sp, #24]              ; 8-byte Folded Reload
	ldr	x12, [sp, #40]                  ; 8-byte Folded Reload
	cmp	w8, w9
	b.le	LBB0_9
; %bb.21:                               ;   in Loop: Header=BB0_10 Depth=3
	mov	x9, x23
LBB0_22:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ;       Parent Loop BB0_10 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	w10, [x9, #4]
	str	w10, [x9, #8]
	ldr	x9, [x9, #24]
	cbnz	x9, LBB0_22
; %bb.23:                               ;   in Loop: Header=BB0_10 Depth=3
	str	x24, [sp, #8]                   ; 8-byte Folded Spill
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	b	LBB0_9
LBB0_24:
	mov	x0, #0
	b	LBB0_27
LBB0_25:
	tbnz	w20, #0, LBB0_27
; %bb.26:
	mov	w8, #1
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	str	w8, [x9]
LBB0_27:
	cbnz	x23, LBB0_30
LBB0_28:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=1
	ldr	x23, [x23, #24]
	cbz	x23, LBB0_28
LBB0_30:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_32 Depth 2
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	ldr	x9, [x23, #16]
	add	x9, x9, #8
LBB0_32:                                ;   Parent Loop BB0_30 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x21]
	ldr	w11, [x9]
	bic	w10, w11, w10
	str	w10, [x9], #24
	subs	x8, x8, #1
	b.ne	LBB0_32
	b	LBB0_29
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_TEXINFO_NODE,8,3               ; @TEXINFO_NODE
	.comm	_SFL_TESTED,4,2                 ; @SFL_TESTED
	.comm	_SFL_CURVE,4,2                  ; @SFL_CURVE
	.comm	_PSIDE_FACING,4,2               ; @PSIDE_FACING
	.comm	_PSIDE_FRONT,4,2                ; @PSIDE_FRONT
	.comm	_PSIDE_BACK,4,2                 ; @PSIDE_BACK
	.comm	_PSIDE_BOTH,4,2                 ; @PSIDE_BOTH
	.comm	_mapplanes,8,3                  ; @mapplanes
	.comm	_SURF_HINT,4,2                  ; @SURF_HINT
	.comm	_numthreads,4,2                 ; @numthreads
	.comm	_c_nonvis,4,2                   ; @c_nonvis
.subsections_via_symbols
