	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_TryStitchingPatch            ## -- Begin function R_TryStitchingPatch
	.p2align	4, 0x90
_R_TryStitchingPatch:                   ## @R_TryStitchingPatch
	.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), %r12
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.3:
	movl	%edi, %r14d
	movq	8(%r12), %rcx
	movslq	%edi, %rdx
	movq	(%rcx,%rdx,8), %r13
	xorl	%ebx, %ebx
	movq	_SF_GRID@GOTPCREL(%rip), %rdi
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	(%rcx,%rbx,8), %rcx
	movq	(%rcx), %rdx
	cmpq	(%rdi), %rdx
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r13), %rdx
	cmpq	8(%rcx), %rdx
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r13), %rdx
	movq	(%rdx), %rsi
	movq	16(%rcx), %rcx
	cmpq	(%rcx), %rsi
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rdx), %rsi
	cmpq	8(%rcx), %rsi
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rdx), %rdx
	cmpq	16(%rcx), %rdx
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	decl	%r15d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_R_StitchPatches
	incl	%r15d
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %eax
	movq	_SF_GRID@GOTPCREL(%rip), %rdi
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_2
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r12), %rcx
	jmp	LBB0_4
LBB0_1:
	xorl	%r15d, %r15d
LBB0_2:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_s_worldData,16,3               ## @s_worldData
	.comm	_SF_GRID,8,3                    ## @SF_GRID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_TryStitchingPatch            ; -- Begin function R_TryStitchingPatch
	.p2align	2
_R_TryStitchingPatch:                   ; @R_TryStitchingPatch
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x22, _s_worldData@GOTPAGE
Lloh1:
	ldr	x22, [x22, _s_worldData@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x20, x0
	mov	x21, #0
	mov	w19, #0
	ldr	x9, [x22, #8]
	ldr	x23, [x9, w0, sxtw #3]
Lloh2:
	adrp	x24, _SF_GRID@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SF_GRID@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x9, [x9, x21, lsl #3]
	ldr	x10, [x9]
	ldr	x11, [x24]
	cmp	x10, x11
	b.ne	LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x10, [x23, #8]
	ldr	x11, [x9, #8]
	cmp	x10, x11
	b.ne	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x10, [x23, #16]
	ldr	x11, [x10]
	ldr	x9, [x9, #16]
	ldr	x12, [x9]
	cmp	x11, x12
	b.ne	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x11, [x10, #8]
	ldr	x12, [x9, #8]
	cmp	x11, x12
	b.ne	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x10, [x10, #16]
	ldr	x9, [x9, #16]
	cmp	x10, x9
	b.ne	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w19, w19, #1
LBB0_8:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	x1, x21
	bl	_R_StitchPatches
	add	w19, w19, #1
	cbnz	x0, LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x22]
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x22, #8]
	b	LBB0_2
LBB0_12:
	mov	w19, #0
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_s_worldData,16,3               ; @s_worldData
	.comm	_SF_GRID,8,3                    ; @SF_GRID
.subsections_via_symbols
