	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function Q3_FaceOnWinding
LCPI0_0:
	.quad	0xbfb999999999999a              ## double -0.10000000000000001
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_Q3_FaceOnWinding
	.p2align	4, 0x90
_Q3_FaceOnWinding:                      ## @Q3_FaceOnWinding
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_CopyWinding
	movq	%rax, %r12
	movq	%rax, -48(%rbp)
	leaq	-60(%rbp), %rdx
	movq	%r14, %rdi
	callq	_Q3_SurfacePlane
	movl	(%r14), %ecx
	testq	%r12, %r12
	setne	%al
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.1:
	testq	%r12, %r12
	je	LBB0_5
## %bb.2:
	movl	$1, %ebx
	movq	_q3_drawVerts@GOTPCREL(%rip), %r13
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%rbx), %eax
	movq	(%r13), %rsi
	movl	4(%r14), %edi
	cltd
	idivl	%ecx
	addl	%edi, %edx
	movslq	%edx, %rax
	movq	(%rsi,%rax,8), %r12
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	addl	%edi, %edx
	movslq	%edx, %rax
	movq	(%rsi,%rax,8), %rdi
	movq	%r12, %rsi
	callq	_VectorSubtract
	movl	-64(%rbp), %esi
	callq	_CrossProduct
	callq	_VectorNormalize
	movq	%r12, %rsi
	callq	_DotProduct
	movq	%r15, %rdi
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	callq	_ChopWindingInPlace
	movl	(%r14), %ecx
	movq	-48(%rbp), %r12
	testq	%r12, %r12
	setne	%al
	cmpl	%ecx, %ebx
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	testq	%r12, %r12
	jne	LBB0_3
LBB0_5:
	xorps	%xmm0, %xmm0
	testb	%al, %al
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_WindingArea
	movss	%xmm0, -52(%rbp)                ## 4-byte Spill
	movq	-48(%rbp), %rdi
	callq	_FreeWinding
	movss	-52(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_q3_drawVerts,8,3               ## @q3_drawVerts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q3_FaceOnWinding               ; -- Begin function Q3_FaceOnWinding
	.p2align	2
_Q3_FaceOnWinding:                      ; @Q3_FaceOnWinding
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 b8, -72
	.cfi_offset b9, -80
	mov	x19, x0
	mov	x0, x1
	bl	_CopyWinding
	mov	x20, x0
	str	x0, [sp]
	add	x8, sp, #8
	orr	x2, x8, #0x4
	mov	x0, x19
	bl	_Q3_SurfacePlane
	ldr	w8, [x19]
	cmp	x20, #0
	cset	w9, ne
	cmp	w8, #1
	ccmp	x20, #0, #4, ge
	b.eq	LBB0_4
; %bb.1:
	mov	w21, #1
Lloh0:
	adrp	x22, _q3_drawVerts@GOTPAGE
Lloh1:
	ldr	x22, [x22, _q3_drawVerts@GOTPAGEOFF]
	mov	x23, #-7378697629483820647
	movk	x23, #39322
	movk	x23, #49081, lsl #48
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w9, w21, #1
	ldr	x10, [x22]
	ldr	w11, [x19, #4]
	sdiv	w12, w9, w8
	msub	w9, w12, w8, w9
	add	w9, w9, w11
	ldr	x20, [x10, w9, sxtw #3]
	sdiv	w9, w21, w8
	msub	w8, w9, w8, w21
	add	w8, w8, w11
	ldr	x0, [x10, w8, sxtw #3]
	mov	x1, x20
	bl	_VectorSubtract
	ldr	w1, [sp, #8]
	bl	_CrossProduct
	bl	_VectorNormalize
	mov	x1, x20
	bl	_DotProduct
	fmov	d1, x23
	mov	x0, sp
	bl	_ChopWindingInPlace
	ldr	w8, [x19]
	ldr	x20, [sp]
	cmp	x20, #0
	cset	w9, ne
	cmp	w21, w8
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w21, w21, #1
	cbnz	x20, LBB0_2
LBB0_4:
	movi	d8, #0000000000000000
	cbz	w9, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_WindingArea
	fmov	s8, s0
	ldr	x0, [sp]
	bl	_FreeWinding
LBB0_6:
	fmov	s0, s8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_q3_drawVerts,8,3               ; @q3_drawVerts
.subsections_via_symbols
