	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_StitchAllPatches             ## -- Begin function R_StitchAllPatches
	.p2align	4, 0x90
_R_StitchAllPatches:                    ## @R_StitchAllPatches
	.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	_s_worldData@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	xorl	%r14d, %r14d
	movq	_SF_GRID@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	je	LBB0_8
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	_qfalse@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	testl	%eax, %eax
	jle	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=2
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_7
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	(%rcx), %rdx
	cmpq	(%r13), %rdx
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpq	$0, 8(%rcx)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r12, 8(%rcx)
	movl	%ebx, %edi
	callq	_R_TryStitchingPatch
	addl	%eax, %r14d
	movl	(%r15), %eax
	jmp	LBB0_6
LBB0_8:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PRINT_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_s_worldData,16,3               ## @s_worldData
	.comm	_SF_GRID,8,3                    ## @SF_GRID
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_ri,8,3                         ## @ri
	.comm	_PRINT_ALL,4,2                  ## @PRINT_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stitched %d LoD cracks\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_StitchAllPatches             ; -- Begin function R_StitchAllPatches
	.p2align	2
_R_StitchAllPatches:                    ; @R_StitchAllPatches
	.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	w19, #0
Lloh0:
	adrp	x21, _s_worldData@GOTPAGE
Lloh1:
	ldr	x21, [x21, _s_worldData@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _qfalse@GOTPAGE
Lloh3:
	ldr	x22, [x22, _qfalse@GOTPAGEOFF]
Lloh4:
	adrp	x23, _SF_GRID@GOTPAGE
Lloh5:
	ldr	x23, [x23, _SF_GRID@GOTPAGEOFF]
Lloh6:
	adrp	x24, _qtrue@GOTPAGE
Lloh7:
	ldr	x24, [x24, _qtrue@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	w25, LBB0_8
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w25, [x22]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_1
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x21, #8]
	ldr	x9, [x9, x20, lsl #3]
	ldr	x10, [x9]
	ldr	x11, [x23]
	cmp	x10, x11
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x10, [x9, #8]
	cbnz	x10, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x25, [x24]
	str	x25, [x9, #8]
	mov	x0, x20
	bl	_R_TryStitchingPatch
	add	w19, w19, w0
	ldr	w8, [x21]
	b	LBB0_4
LBB0_8:
Lloh8:
	adrp	x8, _ri@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh10:
	ldr	x3, [x8]
Lloh11:
	adrp	x8, _PRINT_ALL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PRINT_ALL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	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
	br	x3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_s_worldData,16,3               ; @s_worldData
	.comm	_SF_GRID,8,3                    ; @SF_GRID
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_ri,8,3                         ; @ri
	.comm	_PRINT_ALL,4,2                  ; @PRINT_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stitched %d LoD cracks\n"

.subsections_via_symbols
