	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function TryMergeWinding
LCPI0_0:
	.quad	0x3fb999999999999a              ## double 0.10000000000000001
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_TryMergeWinding
	.p2align	4, 0x90
_TryMergeWinding:                       ## @TryMergeWinding
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	jle	LBB0_16
## %bb.1:
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	8(%rbx), %rsi
	movq	(%rsi,%rdi,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	1(%rdi), %rbx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	movq	(%rsi,%rdx,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	jle	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	%r12, %r14
	movslq	(%r12), %rcx
	cmpq	%rcx, %r15
	jge	LBB0_13
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rbx
	movq	%r14, %r12
	movq	8(%r14), %rsi
	movq	(%rsi,%r15,8), %r13
	incq	%r15
	movl	%r15d, %eax
	cltd
	idivl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	movq	(%rsi,%rdx,8), %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	subq	(%r14), %rdi
	callq	_fabs
	ucomisd	LCPI0_0(%rip), %xmm0
	ja	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	subq	(%r13), %rdi
	callq	_fabs
	ucomisd	LCPI0_0(%rip), %xmm0
	ja	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	subq	8(%r14), %rdi
	callq	_fabs
	ucomisd	LCPI0_0(%rip), %xmm0
	ja	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	subq	8(%r13), %rdi
	callq	_fabs
	ucomisd	LCPI0_0(%rip), %xmm0
	ja	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rdi
	subq	16(%r14), %rdi
	callq	_fabs
	ucomisd	LCPI0_0(%rip), %xmm0
	ja	LBB0_4
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rdi
	subq	16(%r13), %rdi
	callq	_fabs
	ucomisd	LCPI0_0(%rip), %xmm0
	ja	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %r14
	movl	(%r12), %ecx
	movq	%rbx, %r15
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r15d, %ecx
	jg	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movslq	(%rbx), %rcx
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	cmpq	%rcx, %r12
	jl	LBB0_2
## %bb.15:
                                        ## kill: def $r12d killed $r12d killed $r12 def $r12
	jmp	LBB0_20
LBB0_16:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	%ecx, %r12d
	je	LBB0_21
	jmp	LBB0_17
LBB0_19:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %ecx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_20:
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	cmpl	%ecx, %r12d
	je	LBB0_21
LBB0_17:
	movq	8(%rbx), %rsi
	leal	(%r12,%rcx), %eax
	decl	%eax
	movl	%edx, %r13d
	cltd
	idivl	%ecx
	movslq	%edx, %rax
	movq	(%rsi,%rax,8), %rsi
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_VectorSubtract
	movl	%r13d, %edi
	callq	_CrossProduct
	callq	_VectorNormalize
	movq	8(%r14), %rcx
	leal	2(%r15), %eax
	cltd
	idivl	(%r14)
                                        ## kill: def $edx killed $edx def $rdx
	movq	(%rcx,%rdx,8), %rdi
	movq	%r12, %rsi
	callq	_VectorSubtract
	callq	_DotProduct
	movq	_CONTINUOUS_EPSILON@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %rax
	jg	LBB0_21
## %bb.22:
	movq	8(%rbx), %rcx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addl	$2, %eax
	cltd
	idivl	(%rbx)
                                        ## kill: def $edx killed $edx def $rdx
	movq	(%rcx,%rdx,8), %rdi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_VectorSubtract
	movl	%r13d, %edi
	callq	_CrossProduct
	callq	_VectorNormalize
	movq	8(%r14), %rcx
	movl	(%r14), %esi
	leal	(%r15,%rsi), %eax
	decl	%eax
	cltd
	idivl	%esi
	movslq	%edx, %rax
	movq	(%rcx,%rax,8), %rdi
	movq	%r12, %rsi
	callq	_VectorSubtract
	callq	_DotProduct
	movq	_CONTINUOUS_EPSILON@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %rax
	jle	LBB0_24
LBB0_21:
	xorl	%r13d, %r13d
LBB0_26:
	movq	%r13, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movl	(%r14), %edi
	addl	(%rbx), %edi
	callq	_AllocWinding
	movq	%rax, %r13
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	leal	1(%rsi), %edi
	movl	(%rbx), %ecx
	movl	%edi, %eax
	cltd
	idivl	%ecx
	cmpl	%esi, %edx
	jne	LBB0_27
LBB0_25:
	leal	1(%r15), %ebx
	movl	(%r14), %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	cmpl	%r15d, %edx
	je	LBB0_26
## %bb.32:
	movl	%edx, %r12d
	negq	-56(%rbp)                       ## 8-byte Folded Spill
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_35 Depth=1
	movq	8(%r14), %rax
	movslq	%r12d, %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	8(%r13), %rax
	movslq	(%r13), %rcx
	movq	(%rax,%rcx,8), %rsi
	callq	_VectorCopy
	incl	(%r13)
	movl	(%r14), %ecx
LBB0_34:                                ##   in Loop: Header=BB0_35 Depth=1
	incl	%r12d
	movl	%r12d, %eax
	cltd
	idivl	%ecx
	movl	%edx, %r12d
	cmpl	%r15d, %edx
	je	LBB0_26
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	cmpl	%edx, %r12d
	jne	LBB0_33
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -88(%rbp)                 ## 8-byte Folded Reload
	jge	LBB0_34
	jmp	LBB0_33
LBB0_27:
	movl	%edx, %ebx
	negq	-48(%rbp)                       ## 8-byte Folded Spill
	movl	%edi, -92(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_30 Depth=1
	movq	8(%r12), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	8(%r13), %rax
	movslq	(%r13), %rcx
	movq	(%rax,%rcx,8), %rsi
	callq	_VectorCopy
	movl	-92(%rbp), %edi                 ## 4-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	incl	(%r13)
	movl	(%r12), %ecx
LBB0_29:                                ##   in Loop: Header=BB0_30 Depth=1
	incl	%ebx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%edx, %ebx
	cmpl	%esi, %edx
	je	LBB0_25
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movl	%edi, %eax
	cltd
	idivl	%ecx
	cmpl	%edx, %ebx
	jne	LBB0_28
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -72(%rbp)                 ## 8-byte Folded Reload
	jge	LBB0_29
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_CONTINUOUS_EPSILON,8,3         ## @CONTINUOUS_EPSILON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TryMergeWinding                ; -- Begin function TryMergeWinding
	.p2align	2
_TryMergeWinding:                       ; @TryMergeWinding
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x28, x0
	ldr	w8, [x0]
	cmp	w8, #1
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	b.lt	LBB0_16
; %bb.1:
	str	w21, [sp]                       ; 4-byte Folded Spill
	mov	x25, #0
	mov	x26, #-7378697629483820647
	movk	x26, #39322
	movk	x26, #16313, lsl #48
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x9, [x28, #8]
	ldr	x23, [x9, x25, lsl #3]
	add	x27, x25, #1
	sdiv	w10, w27, w8
	msub	w8, w10, w8, w27
	ldr	x22, [x9, w8, uxtw #3]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x28, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldrsw	x8, [x19]
	mov	x28, x24
	cmp	x24, x8
	b.ge	LBB0_13
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x19, #8]
	ldr	x21, [x9, x28, lsl #3]
	add	x24, x28, #1
	sdiv	w10, w24, w8
	msub	w8, w10, w8, w24
	ldr	x20, [x9, w8, uxtw #3]
	ldr	x8, [x23]
	ldr	x9, [x20]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x26
	fcmp	d0, d1
	b.gt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [x22]
	ldr	x9, [x21]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x26
	fcmp	d0, d1
	b.gt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [x23, #8]
	ldr	x9, [x20, #8]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x26
	fcmp	d0, d1
	b.gt	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [x22, #8]
	ldr	x9, [x21, #8]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x26
	fcmp	d0, d1
	b.gt	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [x23, #16]
	ldr	x9, [x20, #16]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x26
	fcmp	d0, d1
	b.gt	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [x22, #16]
	ldr	x9, [x21, #16]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x26
	fcmp	d0, d1
	b.gt	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19]
	mov	x24, x28
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, #0
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, w24
	b.gt	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x28, [sp, #8]                   ; 8-byte Folded Reload
	ldrsw	x8, [x28]
	mov	x25, x27
	cmp	x27, x8
	b.lt	LBB0_2
; %bb.15:
	mov	x25, x27
	b	LBB0_18
LBB0_16:
	mov	w25, #0
	mov	x22, #0
	mov	w24, #0
	mov	x23, #0
	cmp	w25, w8
	b.eq	LBB0_20
	b	LBB0_19
LBB0_17:
	ldr	x28, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w8, [x28]
LBB0_18:
	ldr	w21, [sp]                       ; 4-byte Folded Reload
	cmp	w25, w8
	b.eq	LBB0_20
LBB0_19:
	ldr	x9, [x28, #8]
	add	w10, w25, w8
	sub	w10, w10, #1
	sdiv	w11, w10, w8
	msub	w8, w11, w8, w10
	ldr	x1, [x9, w8, sxtw #3]
	mov	x0, x23
	bl	_VectorSubtract
	mov	x0, x21
	bl	_CrossProduct
	bl	_VectorNormalize
	ldr	x8, [x19, #8]
	add	w9, w24, #2
	ldr	w10, [x19]
	sdiv	w11, w9, w10
	msub	w9, w11, w10, w9
	ldr	x0, [x8, w9, uxtw #3]
	mov	x1, x23
	bl	_VectorSubtract
	bl	_DotProduct
Lloh0:
	adrp	x20, _CONTINUOUS_EPSILON@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CONTINUOUS_EPSILON@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.le	LBB0_22
LBB0_20:
	mov	x21, #0
LBB0_21:
	mov	x0, x21
	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
	add	sp, sp, #112
	ret
LBB0_22:
	mov	x23, x0
	str	x8, [sp]                        ; 8-byte Folded Spill
	ldr	x8, [x28, #8]
	add	w9, w25, #2
	ldr	w10, [x28]
	sdiv	w11, w9, w10
	msub	w9, w11, w10, w9
	ldr	x0, [x8, w9, uxtw #3]
	mov	x1, x22
	bl	_VectorSubtract
	mov	x0, x21
	bl	_CrossProduct
	bl	_VectorNormalize
	ldr	x8, [x19, #8]
	ldr	w9, [x19]
	add	w10, w24, w9
	sub	w10, w10, #1
	sdiv	w11, w10, w9
	msub	w9, w11, w9, w10
	ldr	x0, [x8, w9, sxtw #3]
	mov	x1, x22
	bl	_VectorSubtract
	bl	_DotProduct
	mov	x21, #0
	mov	x27, x28
	ldr	x28, [x20]
	cmp	x0, x28
	b.gt	LBB0_21
; %bb.23:
	mov	x22, x0
	ldr	w8, [x27]
	ldr	w9, [x19]
	add	w0, w9, w8
	bl	_AllocWinding
	mov	x21, x0
	add	w20, w25, #1
	ldr	w8, [x27]
	sdiv	w9, w20, w8
	msub	w27, w9, w8, w20
	cmp	w27, w25
	b.ne	LBB0_29
LBB0_24:
	add	w20, w24, #1
	ldr	w8, [x19]
	sdiv	w9, w20, w8
	msub	w22, w9, w8, w20
	cmp	w22, w24
	b.eq	LBB0_21
; %bb.25:
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	neg	x25, x9
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	add	w9, w22, #1
	sdiv	w10, w9, w8
	msub	w22, w10, w8, w9
	cmp	w22, w24
	b.eq	LBB0_21
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	sdiv	w9, w20, w8
	msub	w9, w9, w8, w20
	cmp	w22, w9
	ccmp	x23, x25, #8, eq
	b.ge	LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, w22, sxtw #3]
	ldr	x8, [x21, #8]
	ldrsw	x9, [x21]
	ldr	x1, [x8, x9, lsl #3]
	bl	_VectorCopy
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	ldr	w8, [x19]
	b	LBB0_26
LBB0_29:
	neg	x28, x28
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=1
	add	w9, w27, #1
	sdiv	w10, w9, w8
	msub	w27, w10, w8, w9
	cmp	w27, w25
	b.eq	LBB0_24
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	sdiv	w9, w20, w8
	msub	w9, w9, w8, w20
	cmp	w27, w9
	ccmp	x22, x28, #8, eq
	b.ge	LBB0_30
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	ldr	x8, [x26, #8]
	ldr	x0, [x8, w27, sxtw #3]
	ldr	x8, [x21, #8]
	ldrsw	x9, [x21]
	ldr	x1, [x8, x9, lsl #3]
	bl	_VectorCopy
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	ldr	w8, [x26]
	b	LBB0_30
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CONTINUOUS_EPSILON,8,3         ; @CONTINUOUS_EPSILON
.subsections_via_symbols
