	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function VS_SplitWinding
LCPI0_0:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_VS_SplitWinding
	.p2align	4, 0x90
_VS_SplitWinding:                       ## @VS_SplitWinding
	.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	$1112, %rsp                     ## imm = 0x458
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -1096(%rbp)               ## 8-byte Spill
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -1076(%rbp)
	movq	$0, -1084(%rbp)
	cmpl	$0, (%rdi)
	jle	LBB0_8
## %bb.1:
	movaps	%xmm0, %xmm1
	movq	%rdx, %r12
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm1, %xmm0
	movaps	%xmm0, -1136(%rbp)              ## 16-byte Spill
	xorl	%ebx, %ebx
	movq	_SIDE_FRONT@GOTPCREL(%rip), %r13
	movq	_SIDE_BACK@GOTPCREL(%rip), %r14
	movaps	%xmm1, -1120(%rbp)              ## 16-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %eax
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	%eax, %rcx
	incl	-1084(%rbp,%rcx,4)
	movl	%eax, -1072(%rbp,%rbx,4)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	(%r12), %rsi
	callq	_DotProduct
	movaps	-1120(%rbp), %xmm1              ## 16-byte Reload
	subss	8(%r12), %xmm0
	movss	%xmm0, -560(%rbp,%rbx,4)
	ucomiss	%xmm1, %xmm0
	ja	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movaps	-1136(%rbp), %xmm2              ## 16-byte Reload
	ucomiss	%xmm0, %xmm2
	jbe	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_SIDE_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_3
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	_SIDE_BACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpl	$0, -1084(%rbp,%rcx,4)
	movq	_SIDE_FRONT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-1084(%rbp,%rax,4), %edx
	je	LBB0_26
## %bb.10:
	testl	%edx, %edx
	je	LBB0_28
## %bb.11:
	movl	-1072(%rbp), %eax
	movl	%eax, -1072(%rbp,%rbx,4)
	movss	-560(%rbp), %xmm0               ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -560(%rbp,%rbx,4)
	movq	-1096(%rbp), %rax               ## 8-byte Reload
	movl	$0, (%rax)
	cmpl	$0, (%r15)
	jle	LBB0_29
## %bb.12:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%r12, %rdi
	callq	_VectorCopy
	incl	%ebx
	movl	%ebx, %r14d
	movq	-1096(%rbp), %rbx               ## 8-byte Reload
	movq	8(%rbx), %rax
	movslq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rsi
	movq	%r12, %rdi
	callq	_VectorCopy
	incl	(%rbx)
	movl	%r14d, %ebx
	incq	%r13
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=1
	movslq	(%r15), %rax
	cmpq	%rax, %r13
	jge	LBB0_30
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	_MAX_POINTS_ON_FIXED_WINDING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jge	LBB0_25
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-1096(%rbp), %rcx               ## 8-byte Reload
	cmpl	%eax, (%rcx)
	jge	LBB0_25
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%r13,8), %r12
	movslq	-1072(%rbp,%r13,4), %r14
	movq	_SIDE_ON@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_13
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_SIDE_FRONT@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r12, %rdi
	callq	_VectorCopy
	incl	%ebx
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	_SIDE_BACK@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%ebx, -1120(%rbp)               ## 4-byte Spill
	movq	-1096(%rbp), %rbx               ## 8-byte Reload
	movq	8(%rbx), %rax
	movslq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rsi
	movq	%r12, %rdi
	callq	_VectorCopy
	incl	(%rbx)
	movl	-1120(%rbp), %ebx               ## 4-byte Reload
LBB0_22:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	-1068(%rbp,%r13,4), %eax
	incq	%r13
	movq	_SIDE_ON@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_14
## %bb.23:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	%r14d, %eax
	je	LBB0_14
## %bb.24:
	movq	_MAX_POINTS_ON_FIXED_WINDING@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
LBB0_25:
	leaq	L_.str(%rip), %rdi
	callq	__printf
	movq	_SIDE_FRONT@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_26:
	testl	%edx, %edx
	jne	LBB0_32
## %bb.27:
	movq	_SIDE_ON@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_28:
	movl	%ecx, %eax
	jmp	LBB0_32
LBB0_29:
	xorl	%ebx, %ebx
LBB0_30:
	movl	%ebx, -1152(%rbp)
	leaq	-1152(%rbp), %rsi
	movq	%r15, %rdi
	movl	$16, %edx
	callq	_memcpy
	movq	_SIDE_CROSS@GOTPCREL(%rip), %rax
LBB0_31:
	movl	(%rax), %eax
LBB0_32:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_34
## %bb.33:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$1112, %rsp                     ## imm = 0x458
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SIDE_FRONT,8,3                 ## @SIDE_FRONT
	.comm	_SIDE_BACK,8,3                  ## @SIDE_BACK
	.comm	_SIDE_ON,4,2                    ## @SIDE_ON
	.comm	_MAX_POINTS_ON_FIXED_WINDING,4,2 ## @MAX_POINTS_ON_FIXED_WINDING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WARNING: VS_SplitWinding -> MAX_POINTS_ON_FIXED_WINDING overflowed\n"

	.comm	_SIDE_CROSS,4,2                 ## @SIDE_CROSS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VS_SplitWinding                ; -- Begin function VS_SplitWinding
	.p2align	2
_VS_SplitWinding:                       ; @VS_SplitWinding
	.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
	sub	sp, sp, #1072
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-112]
	str	wzr, [sp, #24]
	str	xzr, [sp, #16]
	ldr	w8, [x0]
Lloh3:
	adrp	x22, _SIDE_FRONT@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SIDE_FRONT@GOTPAGEOFF]
Lloh5:
	adrp	x23, _SIDE_BACK@GOTPAGE
Lloh6:
	ldr	x23, [x23, _SIDE_BACK@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	fmov	s8, s0
	mov	x21, x2
	mov	x24, #0
	fneg	s9, s0
	add	x25, sp, #544
	add	x26, sp, #32
	add	x27, sp, #16
Lloh7:
	adrp	x28, _SIDE_ON@GOTPAGE
Lloh8:
	ldr	x28, [x28, _SIDE_ON@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w8, [x26, x24, lsl #2]
	sbfiz	x8, x8, #2, #32
	ldr	w9, [x27, x8]
	add	w9, w9, #1
	str	w9, [x27, x8]
	add	x24, x24, #1
	ldrsw	x8, [x19]
	cmp	x24, x8
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x24, lsl #3]
	ldr	x1, [x21]
	bl	_DotProduct
	ldr	s1, [x21, #8]
	fsub	s0, s0, s1
	str	s0, [x25, x24, lsl #2]
	fcmp	s0, s8
	b.gt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	fcmp	s0, s9
	b.pl	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x28]
	b	LBB0_3
LBB0_8:
	mov	x24, #0
LBB0_9:
	ldr	x8, [x23]
	add	x9, sp, #16
	ldr	w10, [x9, x8, lsl #2]
	ldr	x0, [x22]
	ldr	w9, [x9, x0, lsl #2]
	cbz	w10, LBB0_25
; %bb.10:
	cbz	w9, LBB0_27
; %bb.11:
	ldr	w8, [sp, #32]
	lsl	x9, x24, #2
	add	x24, sp, #32
	str	w8, [x24, x9]
	ldr	s0, [sp, #544]
	add	x8, sp, #544
	str	s0, [x8, x9]
	str	wzr, [x20]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_28
; %bb.12:
	mov	x26, #0
	mov	w25, #0
Lloh9:
	adrp	x28, _SIDE_ON@GOTPAGE
Lloh10:
	ldr	x28, [x28, _SIDE_ON@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x21
	bl	_VectorCopy
	add	w25, w25, #1
	ldr	x8, [x20, #8]
	ldrsw	x9, [x20]
	ldr	x1, [x8, x9, lsl #3]
	mov	x0, x21
	bl	_VectorCopy
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	add	x26, x26, #1
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	ldrsw	x8, [x19]
	cmp	x26, x8
	b.ge	LBB0_29
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
Lloh11:
	adrp	x8, _MAX_POINTS_ON_FIXED_WINDING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAX_POINTS_ON_FIXED_WINDING@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w25, w8
	b.ge	LBB0_24
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w9, [x20]
	cmp	w9, w8
	b.ge	LBB0_24
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x19, #8]
	ldr	x21, [x8, x26, lsl #3]
	ldrsw	x27, [x24, x26, lsl #2]
	ldr	w8, [x28]
	cmp	w27, w8
	b.eq	LBB0_13
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x22]
	cmp	x8, x27
	b.ne	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x21
	bl	_VectorCopy
	add	w25, w25, #1
LBB0_20:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x23]
	cmp	x8, x27
	b.ne	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x20, #8]
	ldrsw	x9, [x20]
	ldr	x1, [x8, x9, lsl #3]
	mov	x0, x21
	bl	_VectorCopy
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
LBB0_22:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x26, x26, #1
	ldr	w8, [x24, x26, lsl #2]
	ldr	w9, [x28]
	cmp	w8, w9
	ccmp	w8, w27, #4, ne
	b.eq	LBB0_14
; %bb.23:
Lloh14:
	adrp	x8, _MAX_POINTS_ON_FIXED_WINDING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAX_POINTS_ON_FIXED_WINDING@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w25, w8
LBB0_24:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	__printf
	ldr	w0, [x22]
	b	LBB0_31
LBB0_25:
	cbnz	w9, LBB0_31
; %bb.26:
Lloh19:
	adrp	x8, _SIDE_ON@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SIDE_ON@GOTPAGEOFF]
	b	LBB0_30
LBB0_27:
	mov	x0, x8
	b	LBB0_31
LBB0_28:
	mov	w25, #0
LBB0_29:
	str	w25, [sp]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #16
	bl	_memcpy
Lloh21:
	adrp	x8, _SIDE_CROSS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SIDE_CROSS@GOTPAGEOFF]
LBB0_30:
	ldr	w0, [x8]
LBB0_31:
	ldur	x8, [x29, #-112]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.32:
                                        ; kill: def $w0 killed $w0 killed $x0
	add	sp, sp, #1072
	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
LBB0_33:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_SIDE_FRONT,8,3                 ; @SIDE_FRONT
	.comm	_SIDE_BACK,8,3                  ; @SIDE_BACK
	.comm	_SIDE_ON,4,2                    ; @SIDE_ON
	.comm	_MAX_POINTS_ON_FIXED_WINDING,4,2 ; @MAX_POINTS_ON_FIXED_WINDING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WARNING: VS_SplitWinding -> MAX_POINTS_ON_FIXED_WINDING overflowed\n"

	.comm	_SIDE_CROSS,4,2                 ; @SIDE_CROSS
.subsections_via_symbols
