	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ConnectRightVertex
_ConnectRightVertex:                    ## @ConnectRightVertex
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rdx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_RegionBelow
	movq	(%r14), %r12
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rcx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	(%r12), %rax
	movq	%rcx, %rbx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_CheckForIntersect
LBB0_2:
	movl	40(%r12), %edi
	movl	8(%r13), %esi
	callq	_VertEq
	testq	%rax, %rax
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:
	movl	4(%r13), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rsi
	movq	%r12, %rdx
	callq	_tessMeshSplice
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	(%r13), %edi
	movl	$1, %esi
	callq	_longjmp
LBB0_6:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_TopLeftRegion
	movq	%rax, %r14
	testq	%rax, %rax
	movq	%rbx, %r12
	jne	LBB0_8
## %bb.7:
	movl	(%r13), %edi
	movl	$1, %esi
	callq	_longjmp
LBB0_8:
	movq	%r14, %rdi
	callq	_RegionBelow
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_RegionBelow
	movq	%r13, %rdi
	movq	%rax, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_FinishLeftRegions
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_9
LBB0_3:
	movq	%rbx, %r12
LBB0_9:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	40(%r12), %edi
	movl	8(%r13), %esi
	callq	_VertEq
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movl	4(%r13), %edi
	movq	32(%r12), %rdx
	movq	%rbx, %rsi
	callq	_tessMeshSplice
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movl	(%r13), %edi
	movl	$1, %esi
	callq	_longjmp
LBB0_12:
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_FinishLeftRegions
	movq	%rax, %rbx
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_13:
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.19:
	movq	16(%rbx), %rdx
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %r8
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AddRightEdges                  ## TAILCALL
LBB0_14:
	movl	40(%r12), %edi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	40(%r15), %esi
	callq	_VertLeq
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	32(%r12), %r15
LBB0_16:
	movl	4(%r13), %edi
	movl	24(%rbx), %esi
	movq	%r15, %rdx
	callq	_tessMeshConnect
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	movl	(%r13), %edi
	movl	$1, %esi
	callq	_longjmp
LBB0_18:
	movq	16(%r15), %rcx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%rcx, %r8
	callq	_AddRightEdges
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r15), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	%r13, %rdi
	movq	%r14, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WalkDirtyRegions               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_TRUE,8,3                       ## @TRUE
	.no_dead_strip	_ConnectRightVertex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ConnectRightVertex
_ConnectRightVertex:                    ; @ConnectRightVertex
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x24, [x2, #16]
	mov	x0, x1
	bl	_RegionBelow
	mov	x23, x0
	ldr	x21, [x20]
	ldr	x27, [x0]
Lloh0:
	adrp	x25, _FALSE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _FALSE@GOTPAGEOFF]
	ldr	x28, [x25]
	ldr	x8, [x21]
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_CheckForIntersect
LBB0_2:
	ldr	w0, [x21, #40]
	ldr	w1, [x19, #8]
	bl	_VertEq
Lloh2:
	adrp	x26, _TRUE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _TRUE@GOTPAGEOFF]
	cbz	x0, LBB0_8
; %bb.3:
	ldr	w0, [x19, #4]
	ldr	x1, [x24, #32]
	mov	x2, x21
	bl	_tessMeshSplice
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w0, [x19]
	mov	w1, #1
	bl	_longjmp
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_TopLeftRegion
	mov	x20, x0
	cbnz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x19]
	mov	w1, #1
	bl	_longjmp
LBB0_7:
	mov	x0, x20
	bl	_RegionBelow
	ldr	x24, [x0]
	mov	x0, x20
	bl	_RegionBelow
	mov	x1, x0
	mov	x0, x19
	mov	x2, x23
	bl	_FinishLeftRegions
	ldr	x28, [x26]
LBB0_8:
	ldr	w0, [x27, #40]
	ldr	w1, [x19, #8]
	bl	_VertEq
	cbz	x0, LBB0_12
; %bb.9:
	ldr	w0, [x19, #4]
	ldr	x2, [x27, #32]
	mov	x1, x22
	bl	_tessMeshSplice
	cbnz	w0, LBB0_11
; %bb.10:
	ldr	w0, [x19]
	mov	w1, #1
	bl	_longjmp
LBB0_11:
	mov	x0, x19
	mov	x1, x23
	mov	x2, #0
	bl	_FinishLeftRegions
	mov	x22, x0
	ldr	x28, [x26]
LBB0_12:
	cbz	w28, LBB0_14
; %bb.13:
	ldr	x2, [x22, #16]
	ldr	x5, [x26]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x24
	mov	x4, x24
	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	_AddRightEdges
LBB0_14:
	ldr	w0, [x27, #40]
	ldr	w1, [x21, #40]
	bl	_VertLeq
	cbz	x0, LBB0_16
; %bb.15:
	ldr	x21, [x27, #32]
LBB0_16:
	ldr	w0, [x19, #4]
	ldr	w1, [x22, #24]
	mov	x2, x21
	bl	_tessMeshConnect
	mov	x21, x0
	cbnz	x0, LBB0_18
; %bb.17:
	ldr	w0, [x19]
	mov	w1, #1
	bl	_longjmp
LBB0_18:
	ldr	x3, [x21, #16]
	ldr	x5, [x25]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x4, x3
	bl	_AddRightEdges
	ldr	x8, [x26]
	ldr	x9, [x21, #8]
	ldr	x9, [x9]
	str	x8, [x9]
	mov	x0, x19
	mov	x1, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_TRUE,8,3                       ; @TRUE
	.no_dead_strip	_ConnectRightVertex
.subsections_via_symbols
