	.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, %r12
	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	(%r12), %esi
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r12), %rsi
	movq	%r14, %r13
	cmpq	%rsi, %r14
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%r13), %r14
	movl	%r14d, %eax
	cltd
	idivl	%esi
	movl	%edx, %ecx
	leal	(%rsi,%r13), %eax
	decl	%eax
	cltd
	idivl	%esi
	movl	%edx, %ebx
	movq	8(%r12), %rax
	movl	(%rax,%rcx,4), %edi
	movl	(%rax,%r13,4), %esi
	callq	_VectorSubtract
	movq	8(%r12), %rax
	movl	(%rax,%r13,4), %edi
	movslq	%ebx, %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_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%r13,4), %edi
	movslq	%r15d, %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r15,4), %esi
	callq	_VectorCopy
	incl	%r15d
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
LBB0_6:
	subl	%r15d, %esi
	je	LBB0_10
## %bb.7:
	movq	_numthreads@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	_c_removed@GOTPCREL(%rip), %rax
	addl	%esi, (%rax)
LBB0_9:
	movl	%r15d, (%r12)
	movq	8(%r12), %rdi
	shll	$2, %r15d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_memcpy
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_POINTS_ON_WINDING,4,2      ## @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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	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, #-72]
Lloh3:
	adrp	x8, _MAX_POINTS_ON_WINDING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_POINTS_ON_WINDING@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	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_5
; %bb.1:
	mov	x24, #0
	mov	w21, #0
	mov	x22, #34603
	movk	x22, #55574, lsl #16
	movk	x22, #63438, lsl #32
	movk	x22, #16367, lsl #48
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x19]
	mov	x24, x23
	cmp	x23, x8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x24, #1
	sdiv	w9, w23, w8
	msub	w9, w9, w8, w23
	add	w10, w24, w8
	sub	w10, w10, #1
	sdiv	w11, w10, w8
	msub	w25, w11, w8, w10
	ldr	x8, [x19, #8]
	ldr	w0, [x8, w9, uxtw #2]
	lsl	x26, x24, #2
	ldr	w1, [x8, x26]
	bl	_VectorSubtract
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x26]
	ldr	w1, [x8, w25, sxtw #2]
	bl	_VectorSubtract
	bl	_VectorNormalize
	bl	_VectorNormalize
	bl	_DotProduct
	fmov	d1, x22
	fcmp	d0, d1
	b.pl	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x24, lsl #2]
	ldr	w1, [x20, w21, sxtw #2]
	bl	_VectorCopy
	add	w21, w21, #1
	b	LBB0_2
LBB0_5:
	mov	w21, #0
LBB0_6:
	subs	w8, w8, w21
	b.eq	LBB0_10
; %bb.7:
Lloh8:
	adrp	x9, _numthreads@GOTPAGE
Lloh9:
	ldr	x9, [x9, _numthreads@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w9, #1
	b.ne	LBB0_9
; %bb.8:
Lloh11:
	adrp	x9, _c_removed@GOTPAGE
Lloh12:
	ldr	x9, [x9, _c_removed@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w8, w8, w10
	str	w8, [x9]
LBB0_9:
	str	w21, [x19]
	ldr	x0, [x19, #8]
	lsl	w2, w21, #2
	mov	x1, x20
	bl	_memcpy
LBB0_10:
	ldur	x8, [x29, #-72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_POINTS_ON_WINDING,4,2      ; @MAX_POINTS_ON_WINDING
	.comm	_numthreads,4,2                 ; @numthreads
	.comm	_c_removed,4,2                  ; @c_removed
.subsections_via_symbols
