	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TestEdge                       ## -- Begin function TestEdge
	.p2align	4, 0x90
_TestEdge:                              ## @TestEdge
	.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
	cmpl	%ecx, %edx
	jne	LBB0_1
## %bb.16:
	movq	_c_degenerate@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_15
LBB0_1:
	movl	%r8d, %ebx
	movq	_num_edge_verts@GOTPCREL(%rip), %r8
	cmpl	%ebx, (%r8)
	jle	LBB0_11
## %bb.2:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movslq	%ebx, %r15
	leal	1(%r15), %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	incq	%r15
	movslq	(%r8), %rax
	incl	%ebx
	cmpq	%rax, %r15
	jge	LBB0_11
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_edge_verts@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %r12d
	cmpl	%edx, %r12d
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	%ecx, %r12d
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movslq	%r12d, %rax
	movq	_dvertexes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %edi
	movl	%edx, %r14d
	callq	_VectorCopy
	movq	_edge_start@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VectorSubtract
	movq	_edge_dir@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DotProduct
	movq	_num_edge_verts@GOTPCREL(%rip), %r8
	movl	%r14d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	jle	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rax, %r13
	cmpq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	jge	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	_edge_start@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_edge_dir@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	callq	_VectorMA
	callq	_VectorSubtract
	callq	_VectorLength
	movq	%rax, %rdi
	callq	_fabs
	movq	_num_edge_verts@GOTPCREL(%rip), %r8
	movl	%r14d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	_OFF_EPSILON@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jg	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_c_tjunctions@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	callq	_TestEdge
	movq	_num_edge_verts@GOTPCREL(%rip), %r8
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edx
	cmpl	(%r8), %ebx
	jl	LBB0_3
	jmp	LBB0_12
LBB0_11:
	movl	%edx, %r12d
LBB0_12:
	movq	_numsuperverts@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_MAX_SUPERVERTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jb	LBB0_14
## %bb.13:
	leaq	L_.str(%rip), %rdi
	callq	_Error
	movq	(%rbx), %rax
LBB0_14:
	movq	_superverts@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r12d, (%rcx,%rax,4)
	incq	%rax
	movq	%rax, (%rbx)
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_c_degenerate,4,2               ## @c_degenerate
	.comm	_num_edge_verts,4,2             ## @num_edge_verts
	.comm	_edge_verts,8,3                 ## @edge_verts
	.comm	_dvertexes,8,3                  ## @dvertexes
	.comm	_edge_start,4,2                 ## @edge_start
	.comm	_edge_dir,4,2                   ## @edge_dir
	.comm	_OFF_EPSILON,8,3                ## @OFF_EPSILON
	.comm	_c_tjunctions,4,2               ## @c_tjunctions
	.comm	_numsuperverts,8,3              ## @numsuperverts
	.comm	_MAX_SUPERVERTS,8,3             ## @MAX_SUPERVERTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAX_SUPERVERTS"

	.comm	_superverts,8,3                 ## @superverts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TestEdge                       ; -- Begin function TestEdge
	.p2align	2
_TestEdge:                              ; @TestEdge
	.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
	cmp	w2, w3
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _c_degenerate@GOTPAGE
Lloh1:
	ldr	x8, [x8, _c_degenerate@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_14
LBB0_2:
	mov	x19, x4
	mov	x22, x2
Lloh2:
	adrp	x26, _num_edge_verts@GOTPAGE
Lloh3:
	ldr	x26, [x26, _num_edge_verts@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, w4
	b.le	LBB0_10
; %bb.3:
	mov	x20, x3
	mov	x21, x1
	mov	x23, x0
Lloh4:
	adrp	x27, _edge_verts@GOTPAGE
Lloh5:
	ldr	x27, [x27, _edge_verts@GOTPAGEOFF]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	sxtw	x28, w19
	add	w19, w19, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x28, x28, #1
	ldrsw	x8, [x26]
	add	w19, w19, #1
	cmp	x28, x8
	b.ge	LBB0_10
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x27]
	ldr	w24, [x8, x28, lsl #2]
	cmp	w24, w22
	ccmp	w24, w20, #4, ne
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	sxtw	x8, w24
Lloh6:
	adrp	x9, _dvertexes@GOTPAGE
Lloh7:
	ldr	x9, [x9, _dvertexes@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w0, [x9, x8, lsl #2]
	bl	_VectorCopy
Lloh9:
	adrp	x8, _edge_start@GOTPAGE
Lloh10:
	ldr	x8, [x8, _edge_start@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_VectorSubtract
Lloh12:
	adrp	x8, _edge_dir@GOTPAGE
Lloh13:
	ldr	x8, [x8, _edge_dir@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_DotProduct
	cmp	x0, x23
	ccmp	x0, x21, #0, gt
	b.ge	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x25, x0
Lloh15:
	adrp	x8, _edge_start@GOTPAGE
Lloh16:
	ldr	x8, [x8, _edge_start@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _edge_dir@GOTPAGE
Lloh19:
	ldr	x8, [x8, _edge_dir@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x1, x25
	bl	_VectorMA
	bl	_VectorSubtract
	bl	_VectorLength
	bl	_fabs
Lloh21:
	adrp	x8, _OFF_EPSILON@GOTPAGE
Lloh22:
	ldr	x8, [x8, _OFF_EPSILON@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh24:
	adrp	x9, _c_tjunctions@GOTPAGE
Lloh25:
	ldr	x9, [x9, _c_tjunctions@GOTPAGEOFF]
	ldr	w8, [x9]
	add	w8, w8, #1
	str	w8, [x9]
	mov	x0, x23
	mov	x1, x25
	mov	x2, x22
	mov	x3, x24
	mov	x4, x19
	bl	_TestEdge
	ldr	w8, [x26]
	mov	x23, x25
	mov	x22, x24
	cmp	w19, w8
	b.lt	LBB0_4
	b	LBB0_11
LBB0_10:
	mov	x24, x22
LBB0_11:
Lloh26:
	adrp	x19, _numsuperverts@GOTPAGE
Lloh27:
	ldr	x19, [x19, _numsuperverts@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh28:
	adrp	x9, _MAX_SUPERVERTS@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MAX_SUPERVERTS@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lo	LBB0_13
; %bb.12:
Lloh31:
	adrp	x0, l_.str@PAGE
Lloh32:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Error
	ldr	x8, [x19]
LBB0_13:
Lloh33:
	adrp	x9, _superverts@GOTPAGE
Lloh34:
	ldr	x9, [x9, _superverts@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	str	w24, [x9, x8, lsl #2]
	add	x8, x8, #1
	str	x8, [x19]
LBB0_14:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_c_degenerate,4,2               ; @c_degenerate
	.comm	_num_edge_verts,4,2             ; @num_edge_verts
	.comm	_edge_verts,8,3                 ; @edge_verts
	.comm	_dvertexes,8,3                  ; @dvertexes
	.comm	_edge_start,4,2                 ; @edge_start
	.comm	_edge_dir,4,2                   ; @edge_dir
	.comm	_OFF_EPSILON,8,3                ; @OFF_EPSILON
	.comm	_c_tjunctions,4,2               ; @c_tjunctions
	.comm	_numsuperverts,8,3              ; @numsuperverts
	.comm	_MAX_SUPERVERTS,8,3             ; @MAX_SUPERVERTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAX_SUPERVERTS"

	.comm	_superverts,8,3                 ; @superverts
.subsections_via_symbols
