	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function AAS_TestSplitPlane
LCPI0_0:
	.quad	0x3fd999999999999a              ## double 0.40000000000000002
LCPI0_1:
	.quad	0xbfd999999999999a              ## double -0.40000000000000002
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_2:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_AAS_TestSplitPlane
	.p2align	4, 0x90
_AAS_TestSplitPlane:                    ## @AAS_TestSplitPlane
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movl	$0, (%r8)
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	$0, (%rcx)
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	$0, (%rdx)
	movl	%esi, %edi
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	callq	_FindFloatPlane
	movq	%r14, %rdi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %esi
	callq	_AAS_SplitWinding
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_22
## %bb.1:
	movq	%rax, %rdi
	callq	_FreeWinding
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.2:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	cmpq	-88(%rbp), %rdx                 ## 8-byte Folded Reload
	setne	%al
	movq	24(%rcx), %rcx
	movq	(%rcx,%rax,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_21
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movl	(%rcx), %eax
	xorl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	cmpl	$1, %eax
	jbe	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rcx), %rax
	movq	8(%rcx), %r13
	cmpl	$0, (%r13)
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r12d, %r12d
	xorps	%xmm2, %xmm2
	xorps	%xmm3, %xmm3
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=2
	movaps	%xmm0, %xmm1
	movsd	LCPI0_1(%rip), %xmm3            ## xmm3 = mem[0],zero
	ucomisd	%xmm2, %xmm3
	maxss	-52(%rbp), %xmm1                ## 4-byte Folded Reload
	cmoval	%ecx, %r14d
	minss	-56(%rbp), %xmm0                ## 4-byte Folded Reload
	incq	%r12
	movslq	(%r13), %rcx
	movaps	%xmm0, %xmm2
	movaps	%xmm1, %xmm3
	movl	%eax, %r15d
	cmpq	%rcx, %r12
	jge	LBB0_11
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	%xmm3, -52(%rbp)                ## 4-byte Spill
	movss	%xmm2, -56(%rbp)                ## 4-byte Spill
	movq	8(%r13), %rax
	movl	(%rax,%r12,4), %edi
	movl	%ebx, %esi
	callq	_DotProduct
	subss	-48(%rbp), %xmm0                ## 4-byte Folded Reload
	xorps	%xmm2, %xmm2
	cvtss2sd	%xmm0, %xmm2
	ucomisd	LCPI0_0(%rip), %xmm2
	movl	$1, %ecx
	movl	$1, %eax
	ja	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movl	%r15d, %eax
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorps	%xmm1, %xmm1
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	xorps	%xmm0, %xmm0
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_FACECLIP_EPSILON@GOTPCREL(%rip), %rcx
	movss	(%rcx), %xmm3                   ## xmm3 = mem[0],zero,zero,zero
	ucomiss	%xmm3, %xmm1
	movq	_FACE_EPSILON@GOTPCREL(%rip), %rcx
	movss	(%rcx), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	jbe	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	ucomiss	%xmm1, %xmm2
	ja	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	xorps	LCPI0_2(%rip), %xmm3
	ucomiss	%xmm0, %xmm3
	jbe	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	xorps	LCPI0_2(%rip), %xmm2
	ucomiss	%xmm2, %xmm0
	jbe	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	incl	(%rcx)
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	%r14d, %r14d
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
	movq	_FACE_GROUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rcx)
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
	jmp	LBB0_20
LBB0_21:
	movl	$1, %ecx
	jmp	LBB0_22
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_Log_Print
	xorl	%ecx, %ecx
LBB0_22:
	movl	%ecx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AAS_TestSplitPlane: tried face plane as splitter\n"

	.comm	_FACECLIP_EPSILON,4,2           ## @FACECLIP_EPSILON
	.comm	_FACE_EPSILON,4,2               ## @FACE_EPSILON
	.comm	_FACE_GROUND,4,2                ## @FACE_GROUND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_TestSplitPlane             ; -- Begin function AAS_TestSplitPlane
	.p2align	2
_AAS_TestSplitPlane:                    ; @AAS_TestSplitPlane
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	mov	x19, x4
	fmov	s8, s0
	mov	x22, x1
	mov	x20, x0
	str	wzr, [x4]
	stp	x3, x2, [sp]                    ; 16-byte Folded Spill
	str	wzr, [x3]
	str	wzr, [x2]
	mov	x0, x1
	bl	_FindFloatPlane
	mov	x1, x0
	mov	x0, x20
	str	w1, [sp, #28]                   ; 4-byte Folded Spill
	bl	_AAS_SplitWinding
	cbz	x0, LBB0_17
; %bb.1:
	bl	_FreeWinding
	ldr	x25, [x20]
	cbz	x25, LBB0_15
; %bb.2:
	mov	x26, #-7378697629483820647
	movk	x26, #39322
	movk	x26, #16345, lsl #48
	mov	x27, #-7378697629483820647
	movk	x27, #39322
	movk	x27, #49113, lsl #48
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x28, x8
	cset	w8, ne
	ldr	x9, [x25, #24]
	ldr	x25, [x9, w8, uxtw #3]
	cbz	x25, LBB0_15
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w8, [x25]
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	eor	w8, w8, w9
	cmp	w8, #1
	b.ls	LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x23, x28, [x25, #8]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, #0
	mov	w20, #0
	mov	w21, #0
	movi	d9, #0000000000000000
	movi	d10, #0000000000000000
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x23, #8]
	ldr	w0, [x8, x24, lsl #2]
	mov	x1, x22
	bl	_DotProduct
	fsub	s0, s0, s8
	fcmp	s0, s10
	fcsel	s10, s0, s10, gt
	fcmp	s0, s9
	fcsel	s9, s0, s9, mi
	fcvt	d0, s0
	fmov	d1, x26
	fcmp	d0, d1
	csinc	w21, w21, wzr, le
	fmov	d1, x27
	fcmp	d0, d1
	csinc	w20, w20, wzr, pl
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.lt	LBB0_7
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w21, #0
	mov	w20, #0
	movi	d10, #0000000000000000
	movi	d9, #0000000000000000
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh0:
	adrp	x8, _FACECLIP_EPSILON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FACECLIP_EPSILON@GOTPAGEOFF]
Lloh2:
	ldr	s0, [x8]
Lloh3:
	adrp	x8, _FACE_EPSILON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FACE_EPSILON@GOTPAGEOFF]
Lloh5:
	ldr	s1, [x8]
	fcmp	s10, s0
	fccmp	s10, s1, #0, gt
	b.mi	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	fneg	s0, s0
	fneg	s1, s1
	fcmp	s9, s0
	fccmp	s9, s1, #4, mi
	b.le	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w21, #0
	ccmp	w20, #0, #4, ne
	b.eq	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w8, [x9]
	add	w8, w8, #1
	str	w8, [x9]
	ldr	w8, [x25, #4]
Lloh6:
	adrp	x9, _FACE_GROUND@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FACE_GROUND@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	ldr	w8, [x9]
	add	w8, w8, #1
	str	w8, [x9]
	b	LBB0_3
LBB0_15:
	mov	w0, #1
	b	LBB0_17
LBB0_16:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Log_Print
	mov	w0, #0
LBB0_17:
	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
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AAS_TestSplitPlane: tried face plane as splitter\n"

	.comm	_FACECLIP_EPSILON,4,2           ; @FACECLIP_EPSILON
	.comm	_FACE_EPSILON,4,2               ; @FACE_EPSILON
	.comm	_FACE_GROUND,4,2                ; @FACE_GROUND
.subsections_via_symbols
