	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WindingOnPlaneSide             ## -- Begin function WindingOnPlaneSide
	.p2align	4, 0x90
_WindingOnPlaneSide:                    ## @WindingOnPlaneSide
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	cmpl	$0, (%rdi)
	jle	LBB0_9
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %rbx
	xorl	%r12d, %r12d
	movq	%r14, %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movslq	(%rbx), %rax
	cmpq	%rax, %r12
	jge	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movl	(%rax,%r12,4), %edi
	movl	%r15d, %esi
	callq	_DotProduct
	subq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	movq	_ON_EPSILON@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, %rdx
	negq	%rdx
	cmpq	%rdx, %rax
	jge	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%r13, %r13
	jne	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rcx, %rax
	jle	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%r14, %r14
	jne	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_2
LBB0_9:
	movq	%r14, %r13
LBB0_10:
	testq	%r14, %r14
	je	LBB0_12
## %bb.11:
	movq	_SIDE_BACK@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_12:
	testq	%r13, %r13
	jne	LBB0_15
## %bb.13:
	movq	_SIDE_ON@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_16:
	movq	_SIDE_CROSS@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_15:
	movq	_SIDE_FRONT@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_ON_EPSILON,8,3                 ## @ON_EPSILON
	.comm	_SIDE_CROSS,4,2                 ## @SIDE_CROSS
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_SIDE_BACK,4,2                  ## @SIDE_BACK
	.comm	_SIDE_FRONT,4,2                 ## @SIDE_FRONT
	.comm	_SIDE_ON,4,2                    ## @SIDE_ON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WindingOnPlaneSide             ; -- Begin function WindingOnPlaneSide
	.p2align	2
_WindingOnPlaneSide:                    ; @WindingOnPlaneSide
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _qfalse@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x24, #0
Lloh3:
	adrp	x25, _ON_EPSILON@GOTPAGE
Lloh4:
	ldr	x25, [x25, _ON_EPSILON@GOTPAGEOFF]
Lloh5:
	adrp	x23, _SIDE_CROSS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _SIDE_CROSS@GOTPAGEOFF]
	mov	x26, x22
Lloh7:
	adrp	x27, _qtrue@GOTPAGE
Lloh8:
	ldr	x27, [x27, _qtrue@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x21]
	cmp	x24, x8
	b.ge	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w0, [x8, x24, lsl #2]
	mov	x1, x20
	bl	_DotProduct
	sub	x8, x0, x19
	ldr	x9, [x25]
	neg	x10, x9
	cmp	x8, x10
	b.ge	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	x26, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x22, [x27]
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x8, x9
	b.le	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	x22, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x26, [x27]
	b	LBB0_2
LBB0_9:
	mov	x26, x22
LBB0_10:
Lloh9:
	adrp	x8, _SIDE_BACK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SIDE_BACK@GOTPAGEOFF]
Lloh11:
	adrp	x9, _SIDE_FRONT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SIDE_FRONT@GOTPAGEOFF]
Lloh13:
	adrp	x10, _SIDE_ON@GOTPAGE
Lloh14:
	ldr	x10, [x10, _SIDE_ON@GOTPAGEOFF]
	cmp	x26, #0
	csel	x9, x10, x9, eq
	cmp	x22, #0
	csel	x23, x8, x9, ne
LBB0_11:
	ldr	w0, [x23]
	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	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_ON_EPSILON,8,3                 ; @ON_EPSILON
	.comm	_SIDE_CROSS,4,2                 ; @SIDE_CROSS
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_SIDE_BACK,4,2                  ; @SIDE_BACK
	.comm	_SIDE_FRONT,4,2                 ; @SIDE_FRONT
	.comm	_SIDE_ON,4,2                    ; @SIDE_ON
.subsections_via_symbols
