	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function AAS_FindBestAreaSplitPlane
LCPI0_0:
	.long	0xc97423f0                      ## float -999999
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_AAS_FindBestAreaSplitPlane
	.p2align	4, 0x90
_AAS_FindBestAreaSplitPlane:            ## @AAS_FindBestAreaSplitPlane
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	_cfg@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_VectorCopy
	callq	_VectorInverse
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_33
## %bb.1:
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -64(%rbp)                ## 4-byte Spill
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_Log_Write
	movq	%rbx, %rdi
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rbx
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	cmpq	%rbx, -88(%rbp)                 ## 8-byte Folded Reload
	setne	%al
	movq	16(%rdi), %rcx
	movq	(%rcx,%rax,8), %rax
	testq	%rax, %rax
	je	LBB0_30
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	8(%rax), %rcx
	xorl	%r12d, %r12d
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	cmpq	%rbx, %rcx
	setne	%r14b
	movq	%rbx, %r15
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_WindingIsTiny
	testq	%rax, %rax
	jne	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movb	%r14b, %r12b
	movq	_FACE_GROUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	movq	%rbx, %rdi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%r12d, %ebx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_AAS_GapFace
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_3
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	movq	%r15, %rbx
	cmpq	%r15, -88(%rbp)                 ## 8-byte Folded Reload
	setne	%al
	movq	16(%rdi), %rcx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_12 Depth=2
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_Log_Write
LBB0_10:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=2
	xorl	%eax, %eax
	cmpq	%rbx, %r15
	setne	%al
	movq	16(%r14), %rcx
LBB0_12:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx,%rax,8), %r14
	testq	%r14, %r14
	je	LBB0_4
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	8(%r14), %r15
	xorl	%r12d, %r12d
	cmpq	%rbx, %r15
	setne	%r13b
	movl	4(%rdi), %edi
	callq	_WindingIsTiny
	testq	%rax, %rax
	jne	LBB0_9
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	movb	%r13b, %r12b
	movq	_FACE_GROUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_AAS_GapFace
	testq	%rax, %rax
	je	LBB0_10
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	_FACE_GROUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testl	%eax, (%rdi)
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_AAS_GapFace
	testq	%rax, %rax
	jne	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	_FACE_GROUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=2
	testl	%eax, (%r14)
	je	LBB0_11
## %bb.21:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	callq	_AAS_GapFace
	testq	%rax, %rax
	je	LBB0_10
LBB0_22:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	movl	4(%r14), %esi
	leaq	-68(%rbp), %r8
	callq	_FindPlaneSeperatingWindings
	testl	%eax, %eax
	je	LBB0_10
## %bb.23:                              ##   in Loop: Header=BB0_12 Depth=2
	movss	-68(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movq	%rbx, %rdi
	leaq	-80(%rbp), %rdx
	leaq	-76(%rbp), %rcx
	leaq	-56(%rbp), %r8
	callq	_AAS_TestSplitPlane
	testl	%eax, %eax
	je	LBB0_10
## %bb.24:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	-76(%rbp), %eax
	addl	%eax, %eax
	addl	-80(%rbp), %eax
	movl	$100, %ecx
	subl	%eax, %ecx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ecx, %xmm0
	imull	$-1000, -56(%rbp), %eax         ## imm = 0xFC18
	xorps	%xmm1, %xmm1
	cvtsi2ss	%eax, %xmm1
	addss	%xmm0, %xmm1
	ucomiss	-64(%rbp), %xmm1                ## 4-byte Folded Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jbe	LBB0_11
## %bb.25:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movss	%xmm1, -64(%rbp)                ## 4-byte Spill
	callq	_VectorCopy
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movss	-68(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movss	%xmm0, (%rax)
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	movl	-56(%rbp), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	jmp	LBB0_11
LBB0_30:
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_32
## %bb.31:
	movl	-56(%rbp), %esi
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_Log_Write
LBB0_32:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_34
LBB0_33:
	xorl	%eax, %eax
LBB0_34:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cfg,8,3                        ## @cfg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gsubdiv: area %d has a tiny winding\r\n"

	.comm	_FACE_GROUND,4,2                ## @FACE_GROUND
L_.str.1:                               ## @.str.1
	.asciz	"found %d epsilon faces trying to split area %d\r\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_FindBestAreaSplitPlane     ; -- Begin function AAS_FindBestAreaSplitPlane
	.p2align	2
_AAS_FindBestAreaSplitPlane:            ; @AAS_FindBestAreaSplitPlane
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	stp	x1, x2, [sp, #8]                ; 16-byte Folded Spill
	mov	x19, x0
Lloh0:
	adrp	x8, _cfg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cfg@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	bl	_VectorCopy
	bl	_VectorInverse
	ldr	x23, [x19, #8]
	cbz	x23, LBB0_26
; %bb.1:
	str	wzr, [sp, #28]                  ; 4-byte Folded Spill
	mov	w20, #0
	mov	w8, #9200
	movk	w8, #51572, lsl #16
	fmov	s8, w8
Lloh3:
	adrp	x28, _FACE_GROUND@GOTPAGE
Lloh4:
	ldr	x28, [x28, _FACE_GROUND@GOTPAGEOFF]
Lloh5:
	adrp	x24, l_.str@PAGE
Lloh6:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x19]
	mov	x0, x24
	bl	_Log_Write
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x22, x19
	cset	w8, ne
	ldr	x9, [x23, #16]
	ldr	x23, [x9, w8, uxtw #3]
	cbz	x23, LBB0_24
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x22, [x23, #8]
	cmp	x22, x19
	cset	w25, ne
	ldr	w0, [x23, #4]
	bl	_WindingIsTiny
	cbnz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	ldr	w9, [x28]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x25
	bl	_AAS_GapFace
	cbz	x0, LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x22, x19
	cset	w8, ne
	ldr	x9, [x23, #16]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	w1, [x19]
	mov	x0, x24
	bl	_Log_Write
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	cmp	x21, x19
	cset	w8, ne
	ldr	x9, [x26, #16]
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x26, [x9, w8, uxtw #3]
	cbz	x26, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x21, [x26, #8]
	cmp	x21, x19
	cset	w27, ne
	ldr	w0, [x23, #4]
	bl	_WindingIsTiny
	cbnz	x0, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w9, [x26]
	ldr	w8, [x28]
	tst	w8, w9
	b.ne	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x26
	mov	x1, x27
	bl	_AAS_GapFace
	cbz	x0, LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w8, [x28]
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	w9, [x23]
	tst	w8, w9
	b.eq	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x26
	mov	x1, x27
	bl	_AAS_GapFace
	cbnz	x0, LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w8, [x28]
LBB0_18:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	w9, [x26]
	tst	w8, w9
	b.eq	LBB0_9
; %bb.19:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x23
	mov	x1, x25
	bl	_AAS_GapFace
	cbz	x0, LBB0_9
LBB0_20:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	w0, [x23, #4]
	ldr	w1, [x26, #4]
	add	x4, sp, #32
	bl	_FindPlaneSeperatingWindings
	cbz	w0, LBB0_9
; %bb.21:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	s0, [sp, #32]
	add	x2, sp, #44
	add	x3, sp, #40
	add	x4, sp, #36
	mov	x0, x19
	bl	_AAS_TestSplitPlane
	cbz	w0, LBB0_9
; %bb.22:                               ;   in Loop: Header=BB0_10 Depth=2
	ldp	w9, w8, [sp, #40]
	add	w8, w8, w9, lsl #1
	mov	w9, #100
	sub	w8, w9, w8
	scvtf	s0, w8
	ldr	w8, [sp, #36]
	mov	w9, #-1000
	mul	w8, w8, w9
	scvtf	s1, w8
	fadd	s9, s0, s1
	fcmp	s9, s8
	b.le	LBB0_9
; %bb.23:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_VectorCopy
	ldr	s0, [sp, #32]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	str	s0, [x8]
	mov	w20, #1
	ldr	w8, [sp, #36]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	fmov	s8, s9
	b	LBB0_9
LBB0_24:
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_27
; %bb.25:
	ldr	w1, [sp, #36]
	ldr	w8, [x19]
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Log_Write
	b	LBB0_27
LBB0_26:
	mov	w20, #0
LBB0_27:
	mov	x0, x20
	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
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_cfg,8,3                        ; @cfg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gsubdiv: area %d has a tiny winding\r\n"

	.comm	_FACE_GROUND,4,2                ; @FACE_GROUND
l_.str.1:                               ; @.str.1
	.asciz	"found %d epsilon faces trying to split area %d\r\n"

.subsections_via_symbols
