	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function RemoveColinearPoints
LCPI0_0:
	.quad	0x3feff7ced916872b              ## double 0.99899999999999999
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_RemoveColinearPoints
	.p2align	4, 0x90
_RemoveColinearPoints:                  ## @RemoveColinearPoints
	.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	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_POINTS_ON_WINDING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movl	(%r13), %esi
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	movslq	%r15d, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %esi
	callq	_VectorCopy
	incl	%r15d
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r13), %rsi
	movq	%r14, %rbx
	cmpq	%rsi, %r14
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rbx), %r14
	movl	%r14d, %eax
	cltd
	idivl	%esi
	movl	%edx, %ecx
	leal	(%rbx,%rsi), %eax
	decl	%eax
	cltd
	idivl	%esi
	movl	%edx, %r12d
	movq	8(%r13), %rax
	movl	(%rax,%rcx,4), %edi
	movl	(%rax,%rbx,4), %esi
	callq	_VectorSubtract
	movq	8(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	movslq	%r12d, %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_VectorSubtract
	callq	_VectorNormalize
	callq	_VectorNormalize
	callq	_DotProduct
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_MAX_POINTS_ON_WINDING@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jl	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_Error
	jmp	LBB0_6
LBB0_1:
	xorl	%r15d, %r15d
LBB0_8:
	subl	%r15d, %esi
	je	LBB0_12
## %bb.9:
	movq	_numthreads@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jne	LBB0_11
## %bb.10:
	movq	_c_removed@GOTPCREL(%rip), %rax
	addl	%esi, (%rax)
LBB0_11:
	movl	%r15d, (%r13)
	movq	8(%r13), %rdi
	shll	$2, %r15d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_memcpy
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_POINTS_ON_WINDING,4,2      ## @MAX_POINTS_ON_WINDING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RemoveColinearPoints: MAX_POINTS_ON_WINDING"

	.comm	_numthreads,4,2                 ## @numthreads
	.comm	_c_removed,4,2                  ## @c_removed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RemoveColinearPoints           ; -- Begin function RemoveColinearPoints
	.p2align	2
_RemoveColinearPoints:                  ; @RemoveColinearPoints
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	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, #-88]
Lloh3:
	adrp	x23, _MAX_POINTS_ON_WINDING@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAX_POINTS_ON_WINDING@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x25, #0
	mov	w22, #0
	mov	x24, #34603
	movk	x24, #55574, lsl #16
	movk	x24, #63438, lsl #32
	movk	x24, #16367, lsl #48
Lloh7:
	adrp	x21, l_.str@PAGE
Lloh8:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x25, lsl #2]
	ldr	w1, [x20, w22, sxtw #2]
	bl	_VectorCopy
	add	w22, w22, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x19]
	mov	x25, x26
	cmp	x26, x8
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x26, x25, #1
	sdiv	w9, w26, w8
	msub	w9, w9, w8, w26
	add	w10, w25, w8
	sub	w10, w10, #1
	sdiv	w11, w10, w8
	msub	w27, w11, w8, w10
	ldr	x8, [x19, #8]
	ldr	w0, [x8, w9, uxtw #2]
	lsl	x28, x25, #2
	ldr	w1, [x8, x28]
	bl	_VectorSubtract
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x28]
	ldr	w1, [x8, w27, sxtw #2]
	bl	_VectorSubtract
	bl	_VectorNormalize
	bl	_VectorNormalize
	bl	_DotProduct
	fmov	d1, x24
	fcmp	d0, d1
	b.pl	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	cmp	w22, w8
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_Error
	b	LBB0_2
LBB0_7:
	mov	w22, #0
LBB0_8:
	subs	w8, w8, w22
	b.eq	LBB0_12
; %bb.9:
Lloh9:
	adrp	x9, _numthreads@GOTPAGE
Lloh10:
	ldr	x9, [x9, _numthreads@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w9, #1
	b.ne	LBB0_11
; %bb.10:
Lloh12:
	adrp	x9, _c_removed@GOTPAGE
Lloh13:
	ldr	x9, [x9, _c_removed@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w8, w8, w10
	str	w8, [x9]
LBB0_11:
	str	w22, [x19]
	ldr	x0, [x19, #8]
	lsl	w2, w22, #2
	mov	x1, x20
	bl	_memcpy
LBB0_12:
	ldur	x8, [x29, #-88]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_POINTS_ON_WINDING,4,2      ; @MAX_POINTS_ON_WINDING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RemoveColinearPoints: MAX_POINTS_ON_WINDING"

	.comm	_numthreads,4,2                 ; @numthreads
	.comm	_c_removed,4,2                  ; @c_removed
.subsections_via_symbols
