	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function WindingPlane
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_WindingPlane
	.p2align	4, 0x90
_WindingPlane:                          ## @WindingPlane
	.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, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.1:
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r12), %rcx
	cmpq	%rcx, %r13
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rbx
	movq	8(%r12), %rsi
	incq	%r13
	movl	%r13d, %eax
	cltd
	idivl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	movl	(%rsi,%rdx,4), %edi
	movl	(%rsi,%rbx,4), %esi
	callq	_VectorSubtract
	movq	8(%r12), %rcx
	leal	2(%rbx), %eax
	cltd
	idivl	(%r12)
                                        ## kill: def $edx killed $edx def $rdx
	movl	(%rcx,%rdx,4), %edi
	movl	(%rcx,%rbx,4), %esi
	callq	_VectorSubtract
	callq	_VectorLength
	ucomisd	LCPI0_0(%rip), %xmm0
	jbe	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_VectorLength
	ucomisd	LCPI0_0(%rip), %xmm0
	jbe	LBB0_4
LBB0_5:
	movl	%r15d, %edx
	callq	_CrossProduct
	movl	%r15d, %edi
	callq	_VectorNormalize
	movq	8(%r12), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_DotProduct
	movl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WindingPlane                   ; -- Begin function WindingPlane
	.p2align	2
_WindingPlane:                          ; @WindingPlane
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x23, #0
	fmov	d8, #0.50000000
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x21]
	mov	x23, x22
	cmp	x22, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #8]
	add	x22, x23, #1
	sdiv	w10, w22, w8
	msub	w8, w10, w8, w22
	ldr	w0, [x9, w8, uxtw #2]
	lsl	x24, x23, #2
	ldr	w1, [x9, x24]
	bl	_VectorSubtract
	ldr	x8, [x21, #8]
	ldr	w9, [x21]
	add	w10, w23, #2
	sdiv	w11, w10, w9
	msub	w9, w11, w9, w10
	ldr	w0, [x8, w9, uxtw #2]
	ldr	w1, [x8, x24]
	bl	_VectorSubtract
	bl	_VectorLength
	fcmp	d0, d8
	b.le	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_VectorLength
	fcmp	d0, d8
	b.le	LBB0_2
LBB0_5:
	mov	x2, x20
	bl	_CrossProduct
	mov	x0, x20
	bl	_VectorNormalize
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_DotProduct
	str	w0, [x19]
	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	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
