	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function WalkDirtyRegions
_WalkDirtyRegions:                      ## @WalkDirtyRegions
	.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
	movq	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_RegionBelow
	movq	%rax, %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_AddWinding
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_DeleteRegion
	movl	12(%rbx), %edi
	movq	%r15, %rsi
	callq	_tessMeshDelete
	testl	%eax, %eax
	je	LBB0_31
LBB0_32:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_RegionAbove
	movq	%rax, %r12
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	cmpq	$0, 16(%r14)
	je	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rbx
	movq	%r14, %rdi
	callq	_RegionBelow
	movq	%rax, %r14
	cmpq	$0, 16(%rax)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 16(%rbx)
	je	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %r12
	movq	%r14, %rbx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rbx
	cmpq	$0, 16(%rbx)
	jne	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_RegionAbove
	testq	%rax, %rax
	je	LBB0_26
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r12
	cmpq	$0, 16(%rax)
	je	LBB0_26
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
	movq	8(%r12), %r15
	movq	8(%rbx), %r13
	movq	(%r15), %rax
	cmpq	(%r13), %rax
	je	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_CheckForLeftSplice
	testq	%rax, %rax
	je	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, (%rbx)
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_DeleteRegion
	movl	12(%r14), %edi
	movq	%r13, %rsi
	callq	_tessMeshDelete
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	movl	$1, %esi
	callq	_longjmp
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_RegionBelow
	movq	%rax, %r14
	movq	8(%rax), %r13
	jmp	LBB0_19
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, (%r12)
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_DeleteRegion
	movl	12(%r14), %edi
	movq	%r15, %rsi
	callq	_tessMeshDelete
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	movl	$1, %esi
	callq	_longjmp
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_RegionAbove
	movq	%rax, %r12
	movq	8(%rax), %r15
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %r14
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r15), %rax
	cmpq	8(%r13), %rax
	je	LBB0_28
## %bb.20:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rcx
	movq	(%r13), %rax
	cmpq	%rax, %rcx
	je	LBB0_27
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, (%r12)
	jne	LBB0_27
## %bb.22:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, (%r14)
	jne	LBB0_27
## %bb.23:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdx
	cmpq	%rdx, %rcx
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%rdx, %rax
	je	LBB0_25
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_CheckForRightSplice
LBB0_28:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r15), %rax
	cmpq	8(%r13), %rax
	jne	LBB0_1
## %bb.29:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rax
	cmpq	(%r13), %rax
	jne	LBB0_1
	jmp	LBB0_30
LBB0_31:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	movl	$1, %esi
	callq	_longjmp
	jmp	LBB0_32
LBB0_25:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_CheckForIntersect
	testq	%rax, %rax
	je	LBB0_28
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.no_dead_strip	_WalkDirtyRegions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WalkDirtyRegions
_WalkDirtyRegions:                      ; @WalkDirtyRegions
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_RegionBelow
	mov	x22, x0
Lloh0:
	adrp	x25, _FALSE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _FALSE@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	mov	x1, x21
	bl	_AddWinding
	mov	x0, x19
	mov	x1, x20
	bl	_DeleteRegion
	ldr	w0, [x19, #12]
	mov	x1, x21
	bl	_tessMeshDelete
	cbz	w0, LBB0_30
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_RegionAbove
	mov	x20, x0
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_7
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x24, x22
	mov	x0, x22
	bl	_RegionBelow
	mov	x22, x0
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, x24
	mov	x24, x22
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x20
	ldr	x8, [x24, #16]
	cbnz	x8, LBB0_6
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	bl	_RegionAbove
	cbz	x0, LBB0_31
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_31
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25]
	str	x8, [x20, #16]
	ldr	x21, [x20, #8]
	ldr	x23, [x24, #8]
	ldr	x8, [x21]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_CheckForLeftSplice
	cbz	x0, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24]
	cbz	x8, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_DeleteRegion
	ldr	w0, [x19, #12]
	mov	x1, x23
	bl	_tessMeshDelete
	cbnz	w0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #8]
	mov	w1, #1
	bl	_longjmp
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_RegionBelow
	mov	x22, x0
	ldr	x23, [x0, #8]
	b	LBB0_21
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	cbz	x8, LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_DeleteRegion
	ldr	w0, [x19, #12]
	mov	x1, x21
	bl	_tessMeshDelete
	cbnz	w0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #8]
	mov	w1, #1
	bl	_longjmp
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	bl	_RegionAbove
	mov	x20, x0
	ldr	x21, [x0, #8]
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x24
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #8]
	ldr	x9, [x23, #8]
	cmp	x8, x9
	b.eq	LBB0_28
; %bb.22:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_27
; %bb.23:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x20]
	cbnz	x10, LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x22]
	cbnz	x10, LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x19]
	cmp	x8, x10
	ccmp	x9, x10, #4, ne
	b.ne	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_CheckForIntersect
	cbz	x0, LBB0_28
	b	LBB0_31
LBB0_27:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_CheckForRightSplice
LBB0_28:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #8]
	ldr	x9, [x23, #8]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.29:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_3
	b	LBB0_1
LBB0_30:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #8]
	mov	w1, #1
	bl	_longjmp
	b	LBB0_2
LBB0_31:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.no_dead_strip	_WalkDirtyRegions
.subsections_via_symbols
