	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AddWindingPoint                ## -- Begin function AddWindingPoint
	.p2align	4, 0x90
_AddWindingPoint:                       ## @AddWindingPoint
	.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
	movl	%edx, %r12d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	cmpl	%edx, (%rdi)
	jge	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_Error
LBB0_2:
	testl	%r12d, %r12d
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_Error
LBB0_4:
	movl	(%r15), %edi
	incl	%edi
	callq	_AllocWinding
	movq	%rax, %r13
	movl	(%r15), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r13)
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:
	movl	%r12d, %r12d
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r15), %rax
	movslq	%r14d, %r14
	movl	(%rax,%r14,4), %edi
	movq	8(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_VectorCopy
	incl	%r14d
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %r12
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%r12,4), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_VectorCopy
	jmp	LBB0_9
LBB0_10:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AddWindingPoint: num > w->numpoints"

L_.str.1:                               ## @.str.1
	.asciz	"AddWindingPoint: num < 0"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AddWindingPoint                ; -- Begin function AddWindingPoint
	.p2align	2
_AddWindingPoint:                       ; @AddWindingPoint
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, w2
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Error
LBB0_2:
	tbz	w22, #31, LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Error
LBB0_4:
	ldr	w8, [x20]
	add	w0, w8, #1
	bl	_AllocWinding
	mov	x21, x0
	ldr	w8, [x20]
	add	w9, w8, #1
	str	w9, [x0]
	tbnz	w8, #31, LBB0_10
; %bb.5:
	mov	x23, #0
	mov	w24, #0
	mov	w22, w22
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8, w24, sxtw #2]
	ldr	x8, [x21, #8]
	ldr	w1, [x8, x23, lsl #2]
	bl	_VectorCopy
	add	w24, w24, #1
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x21]
	cmp	x23, x8
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x22, x23
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x21, #8]
	ldr	w1, [x8, x22, lsl #2]
	mov	x0, x19
	bl	_VectorCopy
	b	LBB0_7
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AddWindingPoint: num > w->numpoints"

l_.str.1:                               ; @.str.1
	.asciz	"AddWindingPoint: num < 0"

.subsections_via_symbols
