	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AddRightEdges
_AddRightEdges:                         ## @AddRightEdges
	.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
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, %r13
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	movl	36(%rbx), %esi
	callq	_VertLeq
	movl	%eax, %edi
	callq	_assert
	movl	32(%rbx), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_AddRegionBelow
	movq	24(%rbx), %rbx
	cmpq	%r12, %rbx
	jne	LBB0_1
## %bb.2:
	testq	%r13, %r13
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_RegionBelow
	movq	24(%rax), %rax
	movq	8(%rax), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %rsi
	subq	8(%r13), %rsi
	movq	%rsi, (%r14)
	movq	%r15, %rdi
	callq	_IsWindingInside
	movl	%eax, 16(%r14)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_RegionBelow
	movq	24(%rax), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rdx
	cmpq	(%r13), %rdx
	jne	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %r12
	movq	%r13, %rbx
	movq	%rax, %r14
	movq	%rcx, %r13
	cmpq	%rbx, 24(%rcx)
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r15), %edi
	movl	16(%r13), %esi
	movq	%r13, %rdx
	callq	_tessMeshSplice
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %edi
	movl	$1, %esi
	callq	_longjmp
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r15), %edi
	movl	16(%rbx), %esi
	movq	%r13, %rdx
	callq	_tessMeshSplice
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %edi
	movl	$1, %esi
	callq	_longjmp
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_CheckForRightSplice
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_AddWinding
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_DeleteRegion
	movl	4(%r15), %edi
	movq	%rbx, %rsi
	callq	_tessMeshDelete
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %edi
	movl	$1, %esi
	callq	_longjmp
	jmp	LBB0_14
LBB0_15:
	movq	_TRUE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 8(%r14)
	movq	(%r14), %rdx
	subq	8(%rcx), %rdx
	xorl	%edi, %edi
	cmpq	(%rax), %rdx
	sete	%dil
	callq	_assert
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_16
## %bb.17:
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WalkDirtyRegions               ## TAILCALL
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_AddRightEdges
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AddRightEdges
_AddRightEdges:                         ; @AddRightEdges
	.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
	mov	x19, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x25, _TRUE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _TRUE@GOTPAGEOFF]
	ldr	x26, [x25]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x24]
	ldr	w1, [x24, #36]
	bl	_VertLeq
	bl	_assert
	ldr	w2, [x24, #32]
	mov	x0, x20
	mov	x1, x21
	bl	_AddRegionBelow
	ldr	x24, [x24, #24]
	cmp	x24, x23
	b.ne	LBB0_1
; %bb.2:
	cbnz	x22, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_RegionBelow
	ldr	x8, [x0, #24]
	ldr	x22, [x8, #8]
LBB0_4:
	mov	x0, x21
	bl	_RegionBelow
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	ldr	x9, [x8]
	ldr	x10, [x22]
	cmp	x9, x10
	b.ne	LBB0_16
; %bb.5:
Lloh2:
	adrp	x27, _FALSE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _FALSE@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x24]
	ldr	x9, [x22, #8]
	sub	x1, x8, x9
	str	x1, [x21]
	mov	x0, x20
	bl	_IsWindingInside
	str	w0, [x21, #16]
	ldr	x8, [x25]
	str	x8, [x24, #8]
	cbz	w26, LBB0_13
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w26, [x27]
	mov	x0, x21
	bl	_RegionBelow
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	ldr	x9, [x8]
	ldr	x10, [x22]
	cmp	x9, x10
	b.ne	LBB0_16
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x21
	mov	x23, x22
	mov	x21, x0
	mov	x22, x8
	ldr	x8, [x8, #24]
	cmp	x8, x23
	b.eq	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x20, #4]
	ldr	w1, [x22, #16]
	mov	x2, x22
	bl	_tessMeshSplice
	cbnz	w0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x20]
	mov	w1, #1
	bl	_longjmp
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x20, #4]
	ldr	w1, [x23, #16]
	mov	x2, x22
	bl	_tessMeshSplice
	cbnz	w0, LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x20]
	mov	w1, #1
	bl	_longjmp
	b	LBB0_6
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_CheckForRightSplice
	cbz	x0, LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_AddWinding
	mov	x0, x20
	mov	x1, x24
	bl	_DeleteRegion
	ldr	w0, [x20, #4]
	mov	x1, x23
	bl	_tessMeshDelete
	cbnz	w0, LBB0_7
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x20]
	mov	w1, #1
	bl	_longjmp
	b	LBB0_7
LBB0_16:
	ldr	x9, [x25]
	str	x9, [x21, #8]
	ldr	x9, [x21]
	ldr	x8, [x8, #8]
	ldr	x10, [x0]
	sub	x8, x9, x8
	cmp	x8, x10
	cset	w0, eq
	bl	_assert
	cbz	w19, LBB0_18
; %bb.17:
	mov	x0, x20
	mov	x1, x21
	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
	b	_WalkDirtyRegions
LBB0_18:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_AddRightEdges
.subsections_via_symbols
