	.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_CheckFaceWindingPlane
LCPI0_0:
	.quad	0x3fd999999999999a              ## double 0.40000000000000002
LCPI0_1:
	.quad	0x3f1a36e2eb1c432d              ## double 1.0E-4
	.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_CheckFaceWindingPlane
	.p2align	4, 0x90
_AAS_CheckFaceWindingPlane:             ## @AAS_CheckFaceWindingPlane
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rdi
	leaq	-36(%rbp), %rdx
	callq	_WindingPlane
	movq	_mapplanes@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	(%r14), %rbx
	shlq	$4, %rbx
	movq	(%r15,%rbx), %rdi
	callq	_DotProduct
	movss	%xmm0, -40(%rbp)                ## 4-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2ssq	8(%r15,%rbx), %xmm0
	movss	-36(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm1
	cvttss2si	%xmm1, %rdi
	callq	_fabs
	ucomisd	LCPI0_0(%rip), %xmm0
	ja	LBB0_4
## %bb.1:
	callq	_fabs
	ucomisd	LCPI0_1(%rip), %xmm0
	ja	LBB0_4
## %bb.2:
	callq	_fabs
	ucomisd	LCPI0_1(%rip), %xmm0
	ja	LBB0_4
## %bb.3:
	callq	_fabs
	ucomisd	LCPI0_1(%rip), %xmm0
	jbe	LBB0_13
LBB0_4:
	leaq	(%r15,%rbx), %r12
	addq	$8, %r12
	callq	_VectorInverse
	movss	-36(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	xorps	LCPI0_2(%rip), %xmm0
	movss	%xmm0, -36(%rbp)
	xorps	%xmm1, %xmm1
	cvtsi2ssq	(%r12), %xmm1
	subss	%xmm1, %xmm0
	cvttss2si	%xmm0, %rdi
	callq	_fabs
	ucomisd	LCPI0_0(%rip), %xmm0
	ja	LBB0_8
## %bb.5:
	callq	_fabs
	ucomisd	LCPI0_1(%rip), %xmm0
	ja	LBB0_8
## %bb.6:
	callq	_fabs
	ucomisd	LCPI0_1(%rip), %xmm0
	ja	LBB0_8
## %bb.7:
	callq	_fabs
	ucomisd	LCPI0_1(%rip), %xmm0
	jbe	LBB0_12
LBB0_8:
	addq	%rbx, %r15
	movl	16(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_Log_Write
	movq	(%r15), %rdi
	callq	_DotProduct
	xorps	%xmm1, %xmm1
	ucomiss	-40(%rbp), %xmm1                ## 4-byte Folded Reload
	jbe	LBB0_10
## %bb.9:
	ucomiss	%xmm1, %xmm0
	ja	LBB0_12
LBB0_10:
	movss	-40(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm2
	jbe	LBB0_13
## %bb.11:
	xorps	%xmm1, %xmm1
	ucomiss	%xmm0, %xmm1
	jbe	LBB0_13
LBB0_12:
	movl	16(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_Log_Write
	movq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_ReverseWinding
	movq	%rax, 8(%r14)
	movq	%rbx, %rdi
	callq	_FreeWinding
LBB0_13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mapplanes,8,3                  ## @mapplanes
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AAS_CheckFaceWindingPlane: face %d winding plane unequal to face plane\r\n"

L_.str.1:                               ## @.str.1
	.asciz	"AAS_CheckFaceWindingPlane: face %d winding reversed\r\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_CheckFaceWindingPlane      ; -- Begin function AAS_CheckFaceWindingPlane
	.p2align	2
_AAS_CheckFaceWindingPlane:             ; @AAS_CheckFaceWindingPlane
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	mov	x19, x0
	ldr	x0, [x0, #8]
	add	x2, sp, #12
	bl	_WindingPlane
Lloh0:
	adrp	x8, _mapplanes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mapplanes@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x20, x8, x9, lsl #4
	ldr	x0, [x20]
	bl	_DotProduct
	fmov	s8, s0
	mov	x21, x20
	ldr	x8, [x21, #8]!
	ldr	s0, [sp, #12]
	scvtf	s1, x8
	fsub	s0, s0, s1
	fcvtzs	x0, s0
	bl	_fabs
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16345, lsl #48
	fmov	d1, x8
	fcmp	d0, d1
	b.gt	LBB0_4
; %bb.1:
	bl	_fabs
	mov	x8, #17197
	movk	x8, #60188, lsl #16
	movk	x8, #14050, lsl #32
	movk	x8, #16154, lsl #48
	fmov	d1, x8
	fcmp	d0, d1
	b.gt	LBB0_4
; %bb.2:
	bl	_fabs
	mov	x8, #17197
	movk	x8, #60188, lsl #16
	movk	x8, #14050, lsl #32
	movk	x8, #16154, lsl #48
	fmov	d1, x8
	fcmp	d0, d1
	b.gt	LBB0_4
; %bb.3:
	bl	_fabs
	mov	x8, #17197
	movk	x8, #60188, lsl #16
	movk	x8, #14050, lsl #32
	movk	x8, #16154, lsl #48
	fmov	d1, x8
	fcmp	d0, d1
	b.le	LBB0_13
LBB0_4:
	bl	_VectorInverse
	ldr	s0, [sp, #12]
	fneg	s0, s0
	str	s0, [sp, #12]
	ldr	x8, [x21]
	scvtf	s1, x8
	fsub	s0, s0, s1
	fcvtzs	x0, s0
	bl	_fabs
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16345, lsl #48
	fmov	d1, x8
	fcmp	d0, d1
	b.gt	LBB0_8
; %bb.5:
	bl	_fabs
	mov	x8, #17197
	movk	x8, #60188, lsl #16
	movk	x8, #14050, lsl #32
	movk	x8, #16154, lsl #48
	fmov	d1, x8
	fcmp	d0, d1
	b.gt	LBB0_8
; %bb.6:
	bl	_fabs
	mov	x8, #17197
	movk	x8, #60188, lsl #16
	movk	x8, #14050, lsl #32
	movk	x8, #16154, lsl #48
	fmov	d1, x8
	fcmp	d0, d1
	b.gt	LBB0_8
; %bb.7:
	bl	_fabs
	mov	x8, #17197
	movk	x8, #60188, lsl #16
	movk	x8, #14050, lsl #32
	movk	x8, #16154, lsl #48
	fmov	d1, x8
	fcmp	d0, d1
	b.le	LBB0_12
LBB0_8:
	ldr	w1, [x19, #16]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Log_Write
	ldr	x0, [x20]
	bl	_DotProduct
	fcmp	s8, #0.0
	b.pl	LBB0_10
; %bb.9:
	fcmp	s0, #0.0
	b.gt	LBB0_12
LBB0_10:
	fcmp	s8, #0.0
	b.le	LBB0_13
; %bb.11:
	fcmp	s0, #0.0
	b.pl	LBB0_13
LBB0_12:
	ldr	w1, [x19, #16]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Log_Write
	ldr	x20, [x19, #8]
	mov	x0, x20
	bl	_ReverseWinding
	str	x0, [x19, #8]
	mov	x0, x20
	bl	_FreeWinding
LBB0_13:
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_mapplanes,8,3                  ; @mapplanes
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AAS_CheckFaceWindingPlane: face %d winding plane unequal to face plane\r\n"

l_.str.1:                               ; @.str.1
	.asciz	"AAS_CheckFaceWindingPlane: face %d winding reversed\r\n"

.subsections_via_symbols
