	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CM_RemoveDegenerateColumns
_CM_RemoveDegenerateColumns:            ## @CM_RemoveDegenerateColumns
	.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
	cmpl	$2, (%rdi)
	jl	LBB0_19
## %bb.1:
	movq	%rdi, %r13
	movl	4(%rdi), %eax
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %ecx
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	decl	%ecx
	cmpl	%ecx, %r14d
	jge	LBB0_19
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
                                        ##       Child Loop BB0_14 Depth 3
	movl	$0, %ebx
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r14d, %r15
	leal	1(%r15), %eax
	movslq	%eax, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r13), %rax
	movq	(%rax,%r15,8), %rcx
	movl	(%rcx,%rbx,4), %edi
	movq	(%rax,%r12,8), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_CM_ComparePoints
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	incq	%rbx
	movslq	4(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, %ebx
	jne	LBB0_8
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r13), %eax
	cmpl	%eax, %ebx
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	leal	2(%r14), %r15d
	movslq	%r15d, %r14
	movl	(%r13), %ecx
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=2
	incq	%rbx
	movslq	%eax, %rdx
	cmpq	%rdx, %rbx
	jge	LBB0_17
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_14 Depth 3
	cmpl	%ecx, %r15d
	jge	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r14, %r12
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_12 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	8(%r13), %rax
	movq	-8(%rax,%r12,8), %rcx
	movq	(%rax,%r12,8), %rax
	movl	(%rax,%rbx,4), %edi
	movl	(%rcx,%rbx,4), %esi
	callq	_VectorCopy
	incq	%r12
	movslq	(%r13), %rcx
	cmpq	%rcx, %r12
	jl	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	4(%r13), %eax
	jmp	LBB0_16
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %ecx
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	decl	%ecx
	movl	%ecx, (%r13)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	decl	%r14d
	jmp	LBB0_18
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_CM_RemoveDegenerateColumns
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CM_RemoveDegenerateColumns
_CM_RemoveDegenerateColumns:            ; @CM_RemoveDegenerateColumns
	.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
	ldr	w8, [x0]
	cmp	w8, #2
	b.lt	LBB0_20
; %bb.1:
	mov	x19, x0
	mov	w20, #0
	ldr	w8, [x0, #4]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	sub	w9, w9, #1
	cmp	w20, w9
	b.ge	LBB0_20
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
                                        ;       Child Loop BB0_16 Depth 3
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, #0
	sxtw	x22, w20
	add	x23, x22, #1
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #8]
	ldr	x9, [x8, x22, lsl #3]
	lsl	x10, x21, #2
	ldr	w0, [x9, x10]
	ldr	x8, [x8, x23, lsl #3]
	ldr	w1, [x8, x10]
	bl	_CM_ComparePoints
	cbz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x21, x21, #1
	ldrsw	x8, [x19, #4]
	cmp	x21, x8
	b.lt	LBB0_6
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w21, #0
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w21, w8
	b.ne	LBB0_2
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #4]
	cmp	w21, w8
	b.ne	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #0
	b.le	LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, #0
	add	w9, w20, #2
	sxtw	x22, w9
	ldr	w9, [x19]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_19
LBB0_14:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_16 Depth 3
	cmp	w22, w9
	b.ge	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x23, x22
LBB0_16:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_14 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x19, #8]
	add	x8, x8, x23, lsl #3
	ldp	x8, x9, [x8, #-8]
	lsl	x10, x21, #2
	ldr	w0, [x9, x10]
	ldr	w1, [x8, x10]
	bl	_VectorCopy
	add	x23, x23, #1
	ldrsw	x9, [x19]
	cmp	x23, x9
	b.lt	LBB0_16
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	w8, [x19, #4]
	b	LBB0_13
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x19]
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w9, w9, #1
	str	w9, [x19]
	sub	w20, w20, #1
	b	LBB0_3
LBB0_20:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_CM_RemoveDegenerateColumns
.subsections_via_symbols
