	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function PointOnWinding
LCPI0_0:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_2:
	.quad	0xbfefae147ae147ae              ## double -0.98999999999999999
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_PointOnWinding
	.p2align	4, 0x90
_PointOnWinding:                        ## @PointOnWinding
	.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	%rcx, %r14
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movq	%rdi, %r13
	movl	$0, (%rcx)
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %edi
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	callq	_DotProduct
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	cvtss2sd	%xmm1, %xmm1
	subsd	%xmm1, %xmm0
	cvtsd2ss	%xmm0, %xmm0
	movq	_MELT_ON_EPSILON@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movaps	LCPI0_0(%rip), %xmm2            ## xmm2 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm1, %xmm2
	xorl	%ebx, %ebx
	ucomiss	%xmm0, %xmm2
	ja	LBB0_12
## %bb.1:
	ucomiss	%xmm1, %xmm0
	ja	LBB0_12
## %bb.2:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.3:
	xorl	%r12d, %r12d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movslq	(%r13), %rcx
	cmpq	%rcx, %r12
	jge	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %r15
	incq	%r12
	movl	%r12d, %eax
	cltd
	idivl	%ecx
	movl	%edx, %r14d
	movq	8(%r13), %rax
	movl	(%rax,%r14,4), %edi
	movl	(%rax,%r15,4), %esi
	callq	_VectorSubtract
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_CrossProduct
	callq	_VectorNormalize
	movq	8(%r13), %rax
	movl	(%rax,%r15,4), %esi
	callq	_DotProduct
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movl	%ebx, %edi
	callq	_DotProduct
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	cvtss2sd	%xmm1, %xmm1
	subsd	%xmm1, %xmm0
	cvtsd2ss	%xmm0, %xmm0
	movq	_MELT_ON_EPSILON@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm2
	xorps	LCPI0_0(%rip), %xmm2
	ucomiss	%xmm0, %xmm2
	ja	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	ucomiss	%xmm1, %xmm0
	ja	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%r15,4), %esi
	movl	%ebx, %edi
	callq	_VectorSubtract
	movq	8(%r13), %rax
	movl	(%rax,%r14,4), %esi
	movl	%ebx, %edi
	callq	_VectorSubtract
	callq	_VectorNormalize
	xorl	%ebx, %ebx
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	ja	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_VectorNormalize
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	ja	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_DotProduct
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jbe	LBB0_10
## %bb.9:
	incl	%r15d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
	movl	$1, %ebx
	jmp	LBB0_12
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MELT_ON_EPSILON,4,2            ## @MELT_ON_EPSILON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PointOnWinding                 ; -- Begin function PointOnWinding
	.p2align	2
_PointOnWinding:                        ; @PointOnWinding
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x3
	mov	x20, x2
	fmov	s8, s0
	mov	x21, x1
	mov	x22, x0
	str	wzr, [x3]
	mov	x0, x2
	bl	_DotProduct
	mov	w0, #0
	fcvt	d1, s8
	fsub	d0, d0, d1
	fcvt	s0, d0
Lloh0:
	adrp	x23, _MELT_ON_EPSILON@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MELT_ON_EPSILON@GOTPAGEOFF]
	ldr	s1, [x23]
	fneg	s2, s1
	fcmp	s0, s2
	fccmp	s1, s0, #8, pl
	b.mi	LBB0_10
; %bb.1:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x24, #0
	fmov	d8, #0.50000000
	mov	x25, #18350
	movk	x25, #31457, lsl #16
	movk	x25, #44564, lsl #32
	movk	x25, #49135, lsl #48
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x22]
	mov	x24, x26
	cmp	x26, x8
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x26, x24, #1
	sdiv	w9, w26, w8
	msub	w27, w9, w8, w26
	ldr	x8, [x22, #8]
	ldr	w0, [x8, w27, uxtw #2]
	lsl	x28, x24, #2
	ldr	w1, [x8, x28]
	bl	_VectorSubtract
	mov	x0, x21
	bl	_CrossProduct
	bl	_VectorNormalize
	ldr	x8, [x22, #8]
	ldr	w1, [x8, x28]
	bl	_DotProduct
	fcvt	s9, d0
	mov	x0, x20
	bl	_DotProduct
	fcvt	d1, s9
	fsub	d0, d0, d1
	fcvt	s0, d0
	ldr	s1, [x23]
	fneg	s2, s1
	fcmp	s0, s2
	fccmp	s1, s0, #8, pl
	b.mi	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #8]
	ldr	w1, [x8, x24, lsl #2]
	mov	x0, x20
	bl	_VectorSubtract
	ldr	x8, [x22, #8]
	ldr	w1, [x8, x27, lsl #2]
	mov	x0, x20
	bl	_VectorSubtract
	bl	_VectorNormalize
	fcmp	d0, d8
	b.mi	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_VectorNormalize
	fcmp	d0, d8
	b.mi	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_DotProduct
	fmov	d1, x25
	fcmp	d0, d1
	b.pl	LBB0_3
; %bb.8:
	add	w8, w24, #1
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MELT_ON_EPSILON,4,2            ; @MELT_ON_EPSILON
.subsections_via_symbols
