	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function R_FixSharedVertexLodError_r
LCPI0_0:
	.quad	0x3fb999999999999a              ## double 0.10000000000000001
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_R_FixSharedVertexLodError_r
	.p2align	4, 0x90
_R_FixSharedVertexLodError_r:           ## @R_FixSharedVertexLodError_r
	.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	$72, %rsp
	.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), %rcx
	movl	%edi, -84(%rbp)                 ## 4-byte Spill
	cmpl	%edi, (%rcx)
	jle	LBB0_108
## %bb.1:
	movq	%rsi, %r15
	movslq	-84(%rbp), %rdx                 ## 4-byte Folded Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	incq	%rdx
	movq	_s_worldData@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rax
	cmpq	%rax, %rdx
	jge	LBB0_108
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##       Child Loop BB0_18 Depth 3
                                        ##         Child Loop BB0_24 Depth 4
                                        ##         Child Loop BB0_35 Depth 4
                                        ##         Child Loop BB0_46 Depth 4
                                        ##         Child Loop BB0_56 Depth 4
                                        ##     Child Loop BB0_65 Depth 2
                                        ##       Child Loop BB0_70 Depth 3
                                        ##         Child Loop BB0_76 Depth 4
                                        ##         Child Loop BB0_87 Depth 4
                                        ##         Child Loop BB0_95 Depth 4
                                        ##           Child Loop BB0_101 Depth 5
	movq	8(%rcx), %rax
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	(%rax,%rdx,8), %rsi
	movq	(%rsi), %rax
	movq	_SF_GRID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$2, 8(%rsi)
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r15), %rax
	cmpq	16(%rsi), %rax
	jne	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r15), %rax
	movq	(%rax), %rdx
	movq	24(%rsi), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rax), %rdx
	cmpq	8(%rcx), %rdx
	jne	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rax), %rax
	cmpq	16(%rcx), %rax
	jne	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movb	$1, %r14b
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_R_MergedWidthPoints
	testq	%rax, %rax
	movl	%r14d, -64(%rbp)                ## 4-byte Spill
	je	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=2
	testb	$1, -64(%rbp)                   ## 1-byte Folded Reload
	movl	$0, %r14d
	je	LBB0_61
LBB0_12:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_18 Depth 3
                                        ##         Child Loop BB0_24 Depth 4
                                        ##         Child Loop BB0_35 Depth 4
                                        ##         Child Loop BB0_46 Depth 4
                                        ##         Child Loop BB0_56 Depth 4
	xorl	%ebx, %ebx
	testb	$1, %r14b
	jne	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	32(%r15), %ebx
	decl	%ebx
	imull	36(%r15), %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=2
	cmpl	$3, 36(%r15)
	jl	LBB0_11
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=2
	movslq	%ebx, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$1, %r14d
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_18 Depth=3
	movq	%rbx, %rsi
LBB0_17:                                ##   in Loop: Header=BB0_18 Depth=3
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	incq	%r14
	movslq	36(%r15), %rax
	decq	%rax
	cmpq	%rax, %r14
	jge	LBB0_11
LBB0_18:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_12 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_24 Depth 4
                                        ##         Child Loop BB0_35 Depth 4
                                        ##         Child Loop BB0_46 Depth 4
                                        ##         Child Loop BB0_56 Depth 4
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r14,%rax), %r12
	movq	%rsi, %rdi
	movq	%rsi, %rbx
	xorl	%esi, %esi
	callq	_R_MergedWidthPoints
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=3
	movq	%rbx, %rdx
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=3
	cmpl	$3, 36(%rbx)
	movq	%rbx, %rdx
	jl	LBB0_29
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=3
	movl	$1, %ebx
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_24 Depth=4
	movq	%r13, %rdx
LBB0_23:                                ##   in Loop: Header=BB0_24 Depth=4
	incq	%rbx
	movslq	36(%rdx), %rax
	decq	%rax
	cmpq	%rax, %rbx
	jge	LBB0_29
LBB0_24:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_12 Depth=2
                                        ##       Parent Loop BB0_18 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movq	48(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movq	(%rax), %rdi
	movq	48(%rdx), %rax
	movq	(%rax,%rbx,8), %rax
	subq	(%rax), %rdi
	movq	%rdx, %r13
	callq	_fabs
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	ja	LBB0_22
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=4
	movq	48(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movq	8(%rax), %rdi
	movq	48(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	subq	8(%rax), %rdi
	callq	_fabs
	ucomisd	LCPI0_0(%rip), %xmm0
	ja	LBB0_22
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=4
	movq	48(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movq	16(%rax), %rdi
	movq	48(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	subq	16(%rax), %rdi
	callq	_fabs
	ucomisd	LCPI0_0(%rip), %xmm0
	movq	%r13, %rdx
	ja	LBB0_23
## %bb.28:                              ##   in Loop: Header=BB0_24 Depth=4
	movq	56(%r15), %rax
	movl	(%rax,%r14,4), %eax
	movq	56(%rdx), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_18 Depth=3
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movslq	32(%rdx), %rax
	decq	%rax
	movslq	36(%rdx), %r14
	imulq	%rax, %r14
	movq	%rdx, %rdi
	movq	%rdx, %rbx
	movl	%r14d, %esi
	callq	_R_MergedWidthPoints
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_18 Depth=3
	movq	%rbx, %rdx
	jmp	LBB0_40
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_18 Depth=3
	cmpl	$3, 36(%rbx)
	movq	%rbx, %rdx
	jl	LBB0_40
## %bb.32:                              ##   in Loop: Header=BB0_18 Depth=3
	shlq	$3, %r14
	movl	$1, %ebx
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_35 Depth=4
	movq	%r13, %rdx
LBB0_34:                                ##   in Loop: Header=BB0_35 Depth=4
	incq	%rbx
	movslq	36(%rdx), %rax
	decq	%rax
	cmpq	%rax, %rbx
	jge	LBB0_40
LBB0_35:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_12 Depth=2
                                        ##       Parent Loop BB0_18 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movq	48(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movq	(%rax), %rdi
	movq	48(%rdx), %rax
	addq	%r14, %rax
	movq	(%rax,%rbx,8), %rax
	subq	(%rax), %rdi
	movq	%rdx, %r13
	callq	_fabs
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	ja	LBB0_33
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=4
	movq	48(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movq	8(%rax), %rdi
	movq	48(%r13), %rax
	addq	%r14, %rax
	movq	(%rax,%rbx,8), %rax
	subq	8(%rax), %rdi
	callq	_fabs
	ucomisd	LCPI0_0(%rip), %xmm0
	ja	LBB0_33
## %bb.38:                              ##   in Loop: Header=BB0_35 Depth=4
	movq	48(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movq	16(%rax), %rdi
	movq	48(%r13), %rax
	addq	%r14, %rax
	movq	(%rax,%rbx,8), %rax
	subq	16(%rax), %rdi
	callq	_fabs
	ucomisd	LCPI0_0(%rip), %xmm0
	movq	%r13, %rdx
	ja	LBB0_34
## %bb.39:                              ##   in Loop: Header=BB0_35 Depth=4
	movq	56(%r15), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %eax
	movq	56(%rdx), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_18 Depth=3
	movq	%rdx, %rdi
	movq	%rdx, %rbx
	xorl	%esi, %esi
	callq	_R_MergedHeightPoints
	testq	%rax, %rax
	je	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_18 Depth=3
	movq	%rbx, %rsi
	jmp	LBB0_51
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_18 Depth=3
	cmpl	$3, 32(%rbx)
	movq	%rbx, %rsi
	jl	LBB0_51
## %bb.43:                              ##   in Loop: Header=BB0_18 Depth=3
	movl	$1, %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_46
	.p2align	4, 0x90
LBB0_44:                                ##   in Loop: Header=BB0_46 Depth=4
	movq	%r13, %rsi
LBB0_45:                                ##   in Loop: Header=BB0_46 Depth=4
	incq	%rbx
	movslq	32(%rsi), %rax
	decq	%rax
	cmpq	%rax, %rbx
	jge	LBB0_51
LBB0_46:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_12 Depth=2
                                        ##       Parent Loop BB0_18 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movq	48(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movq	(%rax), %rdi
	movq	48(%rsi), %rax
	movslq	36(%rsi), %rcx
	movslq	%ebx, %rdx
	imulq	%rcx, %rdx
	movq	(%rax,%rdx,8), %rax
	subq	(%rax), %rdi
	movq	%rsi, %r13
	callq	_fabs
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	ja	LBB0_44
## %bb.47:                              ##   in Loop: Header=BB0_46 Depth=4
	movq	48(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movq	8(%rax), %rdi
	movq	48(%r13), %rax
	movslq	36(%r13), %rcx
	movslq	%ebx, %rdx
	imulq	%rcx, %rdx
	movq	(%rax,%rdx,8), %rax
	subq	8(%rax), %rdi
	callq	_fabs
	ucomisd	LCPI0_0(%rip), %xmm0
	ja	LBB0_44
## %bb.49:                              ##   in Loop: Header=BB0_46 Depth=4
	movq	48(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movq	16(%rax), %rdi
	movq	48(%r13), %rax
	movslq	36(%r13), %rcx
	movslq	%ebx, %rdx
	imulq	%rcx, %rdx
	movq	(%rax,%rdx,8), %rax
	subq	16(%rax), %rdi
	callq	_fabs
	ucomisd	LCPI0_0(%rip), %xmm0
	movq	%r13, %rsi
	ja	LBB0_45
## %bb.50:                              ##   in Loop: Header=BB0_46 Depth=4
	movq	56(%r15), %rax
	movl	(%rax,%r14,4), %eax
	movq	40(%rsi), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_45
	.p2align	4, 0x90
LBB0_51:                                ##   in Loop: Header=BB0_18 Depth=3
	movslq	36(%rsi), %r14
	decq	%r14
	movq	%rsi, %rdi
	movq	%rsi, %rbx
	movl	%r14d, %esi
	callq	_R_MergedHeightPoints
	testq	%rax, %rax
	jne	LBB0_16
## %bb.52:                              ##   in Loop: Header=BB0_18 Depth=3
	cmpl	$3, 32(%rbx)
	movq	%rbx, %rsi
	jl	LBB0_17
## %bb.53:                              ##   in Loop: Header=BB0_18 Depth=3
	movl	$1, %ebx
	jmp	LBB0_56
	.p2align	4, 0x90
LBB0_54:                                ##   in Loop: Header=BB0_56 Depth=4
	movq	%r13, %rsi
LBB0_55:                                ##   in Loop: Header=BB0_56 Depth=4
	incq	%rbx
	movslq	32(%rsi), %rax
	decq	%rax
	cmpq	%rax, %rbx
	jge	LBB0_17
LBB0_56:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_12 Depth=2
                                        ##       Parent Loop BB0_18 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movq	48(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movq	(%rax), %rdi
	movq	48(%rsi), %rax
	movslq	36(%rsi), %rcx
	movslq	%ebx, %rdx
	imulq	%rcx, %rdx
	addq	%r14, %rdx
	movq	(%rax,%rdx,8), %rax
	subq	(%rax), %rdi
	movq	%rsi, %r13
	callq	_fabs
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	ja	LBB0_54
## %bb.57:                              ##   in Loop: Header=BB0_56 Depth=4
	movq	48(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movq	8(%rax), %rdi
	movq	48(%r13), %rax
	movl	36(%r13), %ecx
	imull	%ebx, %ecx
	addl	%r14d, %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rax
	subq	8(%rax), %rdi
	callq	_fabs
	ucomisd	LCPI0_0(%rip), %xmm0
	ja	LBB0_54
## %bb.59:                              ##   in Loop: Header=BB0_56 Depth=4
	movq	48(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movq	16(%rax), %rdi
	movq	48(%r13), %rax
	movl	36(%r13), %ecx
	imull	%ebx, %ecx
	addl	%r14d, %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rax
	subq	16(%rax), %rdi
	callq	_fabs
	ucomisd	LCPI0_0(%rip), %xmm0
	movq	%r13, %rsi
	ja	LBB0_55
## %bb.60:                              ##   in Loop: Header=BB0_56 Depth=4
	movq	56(%r15), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %eax
	movq	40(%rsi), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_55
LBB0_61:                                ##   in Loop: Header=BB0_3 Depth=1
	movb	$1, %al
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_65
	.p2align	4, 0x90
LBB0_62:                                ##   in Loop: Header=BB0_65 Depth=2
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_R_MergedHeightPoints
	testq	%rax, %rax
	je	LBB0_67
LBB0_63:                                ##   in Loop: Header=BB0_65 Depth=2
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
LBB0_64:                                ##   in Loop: Header=BB0_65 Depth=2
	testb	$1, -100(%rbp)                  ## 1-byte Folded Reload
	movl	$0, %eax
	je	LBB0_106
LBB0_65:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_70 Depth 3
                                        ##         Child Loop BB0_76 Depth 4
                                        ##         Child Loop BB0_87 Depth 4
                                        ##         Child Loop BB0_95 Depth 4
                                        ##           Child Loop BB0_101 Depth 5
	xorl	%r14d, %r14d
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	testb	$1, %al
	jne	LBB0_62
## %bb.66:                              ##   in Loop: Header=BB0_65 Depth=2
	movl	36(%r15), %r14d
	decl	%r14d
	jmp	LBB0_62
	.p2align	4, 0x90
LBB0_67:                                ##   in Loop: Header=BB0_65 Depth=2
	cmpl	$3, 32(%r15)
	jl	LBB0_63
## %bb.68:                              ##   in Loop: Header=BB0_65 Depth=2
	movl	$1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, -72(%rbp)                ## 4-byte Spill
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_70
	.p2align	4, 0x90
LBB0_69:                                ##   in Loop: Header=BB0_70 Depth=3
	incq	%r13
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movslq	32(%r15), %rax
	decq	%rax
	movq	%r13, %rcx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %r13
	movl	-72(%rbp), %r14d                ## 4-byte Reload
	jge	LBB0_64
LBB0_70:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_65 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_76 Depth 4
                                        ##         Child Loop BB0_87 Depth 4
                                        ##         Child Loop BB0_95 Depth 4
                                        ##           Child Loop BB0_101 Depth 5
	movq	%rsi, %rdi
	movq	%rsi, %rbx
	xorl	%esi, %esi
	callq	_R_MergedWidthPoints
	testq	%rax, %rax
	je	LBB0_72
## %bb.71:                              ##   in Loop: Header=BB0_70 Depth=3
	movq	%rbx, %rdx
	jmp	LBB0_81
	.p2align	4, 0x90
LBB0_72:                                ##   in Loop: Header=BB0_70 Depth=3
	cmpl	$3, 36(%rbx)
	movq	%rbx, %rdx
	jl	LBB0_81
## %bb.73:                              ##   in Loop: Header=BB0_70 Depth=3
	movl	$1, %ebx
	jmp	LBB0_76
	.p2align	4, 0x90
LBB0_74:                                ##   in Loop: Header=BB0_76 Depth=4
	movq	%r13, %rdx
LBB0_75:                                ##   in Loop: Header=BB0_76 Depth=4
	incq	%rbx
	movslq	36(%rdx), %rax
	decq	%rax
	cmpq	%rax, %rbx
	jge	LBB0_81
LBB0_76:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_65 Depth=2
                                        ##       Parent Loop BB0_70 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movq	48(%r15), %rax
	movl	36(%r15), %ecx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	imull	%r12d, %ecx
	addl	%r14d, %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rdi
	movq	48(%rdx), %rax
	movq	(%rax,%rbx,8), %rax
	subq	(%rax), %rdi
	movq	%rdx, %r13
	callq	_fabs
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	ja	LBB0_74
## %bb.77:                              ##   in Loop: Header=BB0_76 Depth=4
	movq	48(%r15), %rax
	movl	36(%r15), %ecx
	imull	%r12d, %ecx
	addl	%r14d, %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	8(%rax), %rdi
	movq	48(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	subq	8(%rax), %rdi
	callq	_fabs
	ucomisd	LCPI0_0(%rip), %xmm0
	ja	LBB0_74
## %bb.79:                              ##   in Loop: Header=BB0_76 Depth=4
	movq	48(%r15), %rax
	movl	36(%r15), %ecx
	imull	%r12d, %ecx
	addl	%r14d, %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	16(%rax), %rdi
	movq	48(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	subq	16(%rax), %rdi
	callq	_fabs
	ucomisd	LCPI0_0(%rip), %xmm0
	movq	%r13, %rdx
	ja	LBB0_75
## %bb.80:                              ##   in Loop: Header=BB0_76 Depth=4
	movq	40(%r15), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %eax
	movq	56(%rdx), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_75
	.p2align	4, 0x90
LBB0_81:                                ##   in Loop: Header=BB0_70 Depth=3
	movslq	32(%rdx), %rax
	decq	%rax
	movslq	36(%rdx), %r15
	imulq	%rax, %r15
	movq	%rdx, %rdi
	movq	%rdx, %rbx
	movl	%r15d, %esi
	callq	_R_MergedWidthPoints
	testq	%rax, %rax
	je	LBB0_83
## %bb.82:                              ##   in Loop: Header=BB0_70 Depth=3
	movq	%rbx, %rsi
	jmp	LBB0_91
	.p2align	4, 0x90
LBB0_83:                                ##   in Loop: Header=BB0_70 Depth=3
	cmpl	$3, 36(%rbx)
	movq	%rbx, %rsi
	jl	LBB0_91
## %bb.84:                              ##   in Loop: Header=BB0_70 Depth=3
	shlq	$3, %r15
	movl	$1, %ebx
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_87
	.p2align	4, 0x90
LBB0_85:                                ##   in Loop: Header=BB0_87 Depth=4
	movq	%r15, %rsi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_86:                                ##   in Loop: Header=BB0_87 Depth=4
	incq	%rbx
	movslq	36(%rsi), %rax
	decq	%rax
	cmpq	%rax, %rbx
	jge	LBB0_91
LBB0_87:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_65 Depth=2
                                        ##       Parent Loop BB0_70 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	48(%r14), %rax
	movl	36(%r14), %ecx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	imull	%r13d, %ecx
	movl	-72(%rbp), %r12d                ## 4-byte Reload
	addl	%r12d, %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rdi
	movq	48(%rsi), %rax
	addq	%r15, %rax
	movq	(%rax,%rbx,8), %rax
	subq	(%rax), %rdi
	movq	%rsi, %r15
	callq	_fabs
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	ja	LBB0_85
## %bb.88:                              ##   in Loop: Header=BB0_87 Depth=4
	movq	48(%r14), %rax
	movl	36(%r14), %ecx
	imull	%r13d, %ecx
	addl	%r12d, %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	8(%rax), %rdi
	movq	48(%r15), %rax
	addq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	movq	(%rax,%rbx,8), %rax
	subq	8(%rax), %rdi
	callq	_fabs
	ucomisd	LCPI0_0(%rip), %xmm0
	ja	LBB0_85
## %bb.89:                              ##   in Loop: Header=BB0_87 Depth=4
	movq	48(%r14), %rax
	movl	36(%r14), %ecx
	imull	%r13d, %ecx
	addl	%r12d, %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	16(%rax), %rdi
	movq	%r15, %r14
	movq	48(%r15), %rax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	addq	%r15, %rax
	movq	(%rax,%rbx,8), %rax
	subq	16(%rax), %rdi
	callq	_fabs
	ucomisd	LCPI0_0(%rip), %xmm0
	movq	%r14, %rsi
	ja	LBB0_86
## %bb.90:                              ##   in Loop: Header=BB0_87 Depth=4
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	40(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %eax
	movq	56(%rsi), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_86
	.p2align	4, 0x90
LBB0_91:                                ##   in Loop: Header=BB0_70 Depth=3
	movb	$1, %bl
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_95
	.p2align	4, 0x90
LBB0_92:                                ##   in Loop: Header=BB0_95 Depth=4
	movq	%rsi, %rdi
	movq	%rsi, %r14
	movl	%r15d, %esi
	callq	_R_MergedHeightPoints
	testq	%rax, %rax
	movl	%ebx, -104(%rbp)                ## 4-byte Spill
	je	LBB0_97
## %bb.93:                              ##   in Loop: Header=BB0_95 Depth=4
	movq	%r14, %rsi
LBB0_94:                                ##   in Loop: Header=BB0_95 Depth=4
	testb	$1, -104(%rbp)                  ## 1-byte Folded Reload
	movl	$0, %ebx
	je	LBB0_69
LBB0_95:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_65 Depth=2
                                        ##       Parent Loop BB0_70 Depth=3
                                        ## =>      This Loop Header: Depth=4
                                        ##           Child Loop BB0_101 Depth 5
	xorl	%r15d, %r15d
	testb	$1, %bl
	jne	LBB0_92
## %bb.96:                              ##   in Loop: Header=BB0_95 Depth=4
	movl	36(%rsi), %r15d
	decl	%r15d
	jmp	LBB0_92
	.p2align	4, 0x90
LBB0_97:                                ##   in Loop: Header=BB0_95 Depth=4
	cmpl	$3, 32(%r14)
	movq	%r14, %rsi
	jl	LBB0_94
## %bb.98:                              ##   in Loop: Header=BB0_95 Depth=4
	movl	%r15d, -64(%rbp)                ## 4-byte Spill
	movl	$1, %r12d
	jmp	LBB0_101
	.p2align	4, 0x90
LBB0_99:                                ##   in Loop: Header=BB0_101 Depth=5
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%rbx, %rsi
LBB0_100:                               ##   in Loop: Header=BB0_101 Depth=5
	incq	%r12
	movslq	32(%rsi), %rax
	decq	%rax
	cmpq	%rax, %r12
	jge	LBB0_94
LBB0_101:                               ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_65 Depth=2
                                        ##       Parent Loop BB0_70 Depth=3
                                        ##         Parent Loop BB0_95 Depth=4
                                        ## =>        This Inner Loop Header: Depth=5
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	48(%r14), %rax
	movl	36(%r14), %ecx
	imull	%r13d, %ecx
	movl	-72(%rbp), %r13d                ## 4-byte Reload
	addl	%r13d, %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rdi
	movq	48(%rsi), %rax
	movl	36(%rsi), %ecx
	imull	%r12d, %ecx
	movl	-64(%rbp), %r15d                ## 4-byte Reload
	addl	%r15d, %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rax
	subq	(%rax), %rdi
	movq	%rsi, %rbx
	callq	_fabs
	ucomisd	LCPI0_0(%rip), %xmm0
	ja	LBB0_99
## %bb.102:                             ##   in Loop: Header=BB0_101 Depth=5
	movq	48(%r14), %rax
	movl	36(%r14), %ecx
	imull	-56(%rbp), %ecx                 ## 4-byte Folded Reload
	addl	%r13d, %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	8(%rax), %rdi
	movq	48(%rbx), %rax
	movl	36(%rbx), %ecx
	imull	%r12d, %ecx
	addl	%r15d, %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rax
	subq	8(%rax), %rdi
	callq	_fabs
	ucomisd	LCPI0_0(%rip), %xmm0
	ja	LBB0_99
## %bb.103:                             ##   in Loop: Header=BB0_101 Depth=5
	movq	48(%r14), %rax
	movl	36(%r14), %ecx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	imull	%r14d, %ecx
	addl	%r13d, %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	16(%rax), %rdi
	movq	48(%rbx), %rax
	movl	36(%rbx), %ecx
	imull	%r12d, %ecx
	addl	%r15d, %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rax
	subq	16(%rax), %rdi
	callq	_fabs
	ucomisd	LCPI0_0(%rip), %xmm0
	movq	%r14, %r13
	movq	%rbx, %rsi
	ja	LBB0_100
## %bb.104:                             ##   in Loop: Header=BB0_101 Depth=5
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	40(%rax), %rax
	movl	(%rax,%r13,4), %eax
	movq	40(%rsi), %rcx
	movl	%eax, (%rcx,%r12,4)
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_100
LBB0_106:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_2
## %bb.107:                             ##   in Loop: Header=BB0_3 Depth=1
	movl	$2, 8(%rsi)
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	callq	_R_FixSharedVertexLodError_r
	jmp	LBB0_2
LBB0_108:
	addq	$72, %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
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_FixSharedVertexLodError_r    ; -- Begin function R_FixSharedVertexLodError_r
	.p2align	2
_R_FixSharedVertexLodError_r:           ; @R_FixSharedVertexLodError_r
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x9, _s_worldData@GOTPAGE
Lloh1:
	ldr	x9, [x9, _s_worldData@GOTPAGEOFF]
	ldr	w8, [x9]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	cmp	w8, w0
	b.le	LBB0_93
; %bb.1:
	mov	x19, x1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	sxtw	x25, w8
	mov	x28, #-7378697629483820647
	movk	x28, #39322
	movk	x28, #16313, lsl #48
Lloh2:
	adrp	x27, _qtrue@GOTPAGE
Lloh3:
	ldr	x27, [x27, _qtrue@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
Lloh4:
	adrp	x9, _s_worldData@GOTPAGE
Lloh5:
	ldr	x9, [x9, _s_worldData@GOTPAGEOFF]
	ldrsw	x8, [x9]
	cmp	x25, x8
	b.ge	LBB0_93
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;       Child Loop BB0_18 Depth 3
                                        ;         Child Loop BB0_22 Depth 4
                                        ;         Child Loop BB0_30 Depth 4
                                        ;         Child Loop BB0_38 Depth 4
                                        ;         Child Loop BB0_46 Depth 4
                                        ;     Child Loop BB0_52 Depth 2
                                        ;       Child Loop BB0_59 Depth 3
                                        ;         Child Loop BB0_63 Depth 4
                                        ;         Child Loop BB0_71 Depth 4
                                        ;         Child Loop BB0_79 Depth 4
                                        ;         Child Loop BB0_87 Depth 4
	ldr	x8, [x9, #8]
	ldr	x21, [x8, x25, lsl #3]
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _SF_GRID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SF_GRID@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21, #8]
	cmp	w8, #2
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	ldr	x9, [x21, #16]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #24]
	ldr	x10, [x8]
	ldr	x9, [x21, #24]
	ldr	x11, [x9]
	cmp	x10, x11
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x8, #8]
	ldr	x11, [x9, #8]
	cmp	x10, x11
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x8, #16]
	ldr	x9, [x9, #16]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh9:
	adrp	x8, _qfalse@GOTPAGE
Lloh10:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	mov	w8, #1
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	mov	w8, #0
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	tbz	w9, #0, LBB0_50
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_18 Depth 3
                                        ;         Child Loop BB0_22 Depth 4
                                        ;         Child Loop BB0_30 Depth 4
                                        ;         Child Loop BB0_38 Depth 4
                                        ;         Child Loop BB0_46 Depth 4
	mov	x23, x8
	tbz	w8, #0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	w22, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=2
	ldp	w8, w9, [x19, #32]
	sub	w8, w8, #1
	mul	w22, w8, w9
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x19
	mov	x1, x22
	bl	_R_MergedWidthPoints
	str	w23, [sp, #20]                  ; 4-byte Folded Spill
	cbnz	x0, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	w8, [x19, #36]
	cmp	w8, #3
	b.lt	LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=2
	sxtw	x8, w22
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	mov	w26, #1
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=3
	add	x26, x26, #1
	ldrsw	x8, [x19, #36]
	sub	x8, x8, #1
	cmp	x26, x8
	b.ge	LBB0_10
LBB0_18:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_11 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_22 Depth 4
                                        ;         Child Loop BB0_30 Depth 4
                                        ;         Child Loop BB0_38 Depth 4
                                        ;         Child Loop BB0_46 Depth 4
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x23, x26, x8
	mov	x0, x21
	mov	w1, #0
	bl	_R_MergedWidthPoints
	cbnz	x0, LBB0_26
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=3
	ldr	w8, [x21, #36]
	cmp	w8, #3
	b.lt	LBB0_26
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=3
	mov	w22, #1
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=4
	add	x22, x22, #1
	ldrsw	x8, [x21, #36]
	sub	x8, x8, #1
	cmp	x22, x8
	b.ge	LBB0_26
LBB0_22:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_11 Depth=2
                                        ;       Parent Loop BB0_18 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8]
	ldr	x9, [x21, #48]
	ldr	x9, [x9, x22, lsl #3]
	ldr	x9, [x9]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x28
	fcmp	d0, d1
	b.gt	LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=4
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8, #8]
	ldr	x9, [x21, #48]
	ldr	x9, [x9, x22, lsl #3]
	ldr	x9, [x9, #8]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x28
	fcmp	d0, d1
	b.gt	LBB0_21
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=4
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8, #16]
	ldr	x9, [x21, #48]
	ldr	x9, [x9, x22, lsl #3]
	ldr	x9, [x9, #16]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x28
	fcmp	d0, d1
	b.gt	LBB0_21
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=4
	ldr	x8, [x19, #56]
	ldr	w8, [x8, x26, lsl #2]
	ldr	x9, [x21, #56]
	str	w8, [x9, x22, lsl #2]
	ldr	w20, [x27]
	b	LBB0_21
LBB0_26:                                ;   in Loop: Header=BB0_18 Depth=3
	ldp	w8, w9, [x21, #32]
	sub	w8, w8, #1
	mul	w22, w8, w9
	mov	x0, x21
	mov	x1, x22
	bl	_R_MergedWidthPoints
	cbnz	x0, LBB0_34
; %bb.27:                               ;   in Loop: Header=BB0_18 Depth=3
	ldr	w8, [x21, #36]
	cmp	w8, #3
	b.lt	LBB0_34
; %bb.28:                               ;   in Loop: Header=BB0_18 Depth=3
	sbfiz	x22, x22, #3, #32
	mov	w24, #1
	b	LBB0_30
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=4
	add	x24, x24, #1
	ldrsw	x8, [x21, #36]
	sub	x8, x8, #1
	cmp	x24, x8
	b.ge	LBB0_34
LBB0_30:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_11 Depth=2
                                        ;       Parent Loop BB0_18 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8]
	ldr	x9, [x21, #48]
	add	x9, x9, x22
	ldr	x9, [x9, x24, lsl #3]
	ldr	x9, [x9]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x28
	fcmp	d0, d1
	b.gt	LBB0_29
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=4
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8, #8]
	ldr	x9, [x21, #48]
	add	x9, x9, x22
	ldr	x9, [x9, x24, lsl #3]
	ldr	x9, [x9, #8]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x28
	fcmp	d0, d1
	b.gt	LBB0_29
; %bb.32:                               ;   in Loop: Header=BB0_30 Depth=4
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8, #16]
	ldr	x9, [x21, #48]
	add	x9, x9, x22
	ldr	x9, [x9, x24, lsl #3]
	ldr	x9, [x9, #16]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x28
	fcmp	d0, d1
	b.gt	LBB0_29
; %bb.33:                               ;   in Loop: Header=BB0_30 Depth=4
	ldr	x8, [x19, #56]
	ldr	w8, [x8, x26, lsl #2]
	ldr	x9, [x21, #56]
	str	w8, [x9, x24, lsl #2]
	ldr	w20, [x27]
	b	LBB0_29
LBB0_34:                                ;   in Loop: Header=BB0_18 Depth=3
	mov	x0, x21
	mov	w1, #0
	bl	_R_MergedHeightPoints
	cbnz	x0, LBB0_42
; %bb.35:                               ;   in Loop: Header=BB0_18 Depth=3
	ldr	w8, [x21, #32]
	cmp	w8, #3
	b.lt	LBB0_42
; %bb.36:                               ;   in Loop: Header=BB0_18 Depth=3
	mov	w22, #1
	b	LBB0_38
LBB0_37:                                ;   in Loop: Header=BB0_38 Depth=4
	add	x22, x22, #1
	ldrsw	x8, [x21, #32]
	sub	x8, x8, #1
	cmp	x22, x8
	b.ge	LBB0_42
LBB0_38:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_11 Depth=2
                                        ;       Parent Loop BB0_18 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8]
	ldr	x9, [x21, #48]
	ldr	w10, [x21, #36]
	mul	w10, w10, w22
	ldr	x9, [x9, w10, sxtw #3]
	ldr	x9, [x9]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x28
	fcmp	d0, d1
	b.gt	LBB0_37
; %bb.39:                               ;   in Loop: Header=BB0_38 Depth=4
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8, #8]
	ldr	x9, [x21, #48]
	ldr	w10, [x21, #36]
	mul	w10, w10, w22
	ldr	x9, [x9, w10, sxtw #3]
	ldr	x9, [x9, #8]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x28
	fcmp	d0, d1
	b.gt	LBB0_37
; %bb.40:                               ;   in Loop: Header=BB0_38 Depth=4
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8, #16]
	ldr	x9, [x21, #48]
	ldr	w10, [x21, #36]
	mul	w10, w10, w22
	ldr	x9, [x9, w10, sxtw #3]
	ldr	x9, [x9, #16]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x28
	fcmp	d0, d1
	b.gt	LBB0_37
; %bb.41:                               ;   in Loop: Header=BB0_38 Depth=4
	ldr	x8, [x19, #56]
	ldr	w8, [x8, x26, lsl #2]
	ldr	x9, [x21, #40]
	str	w8, [x9, x22, lsl #2]
	ldr	w20, [x27]
	b	LBB0_37
LBB0_42:                                ;   in Loop: Header=BB0_18 Depth=3
	ldr	w8, [x21, #36]
	sub	w22, w8, #1
	mov	x0, x21
	mov	x1, x22
	bl	_R_MergedHeightPoints
	cbnz	x0, LBB0_17
; %bb.43:                               ;   in Loop: Header=BB0_18 Depth=3
	ldr	w8, [x21, #32]
	cmp	w8, #3
	b.lt	LBB0_17
; %bb.44:                               ;   in Loop: Header=BB0_18 Depth=3
	mov	w24, #1
	b	LBB0_46
LBB0_45:                                ;   in Loop: Header=BB0_46 Depth=4
	add	x24, x24, #1
	ldrsw	x8, [x21, #32]
	sub	x8, x8, #1
	cmp	x24, x8
	b.ge	LBB0_17
LBB0_46:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_11 Depth=2
                                        ;       Parent Loop BB0_18 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8]
	ldr	x9, [x21, #48]
	ldr	w10, [x21, #36]
	madd	w10, w10, w24, w22
	ldr	x9, [x9, w10, sxtw #3]
	ldr	x9, [x9]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x28
	fcmp	d0, d1
	b.gt	LBB0_45
; %bb.47:                               ;   in Loop: Header=BB0_46 Depth=4
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8, #8]
	ldr	x9, [x21, #48]
	ldr	w10, [x21, #36]
	madd	w10, w10, w24, w22
	ldr	x9, [x9, w10, sxtw #3]
	ldr	x9, [x9, #8]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x28
	fcmp	d0, d1
	b.gt	LBB0_45
; %bb.48:                               ;   in Loop: Header=BB0_46 Depth=4
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8, #16]
	ldr	x9, [x21, #48]
	ldr	w10, [x21, #36]
	madd	w10, w10, w24, w22
	ldr	x9, [x9, w10, sxtw #3]
	ldr	x9, [x9, #16]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x28
	fcmp	d0, d1
	b.gt	LBB0_45
; %bb.49:                               ;   in Loop: Header=BB0_46 Depth=4
	ldr	x8, [x19, #56]
	ldr	w8, [x8, x26, lsl #2]
	ldr	x9, [x21, #40]
	str	w8, [x9, x24, lsl #2]
	ldr	w20, [x27]
	b	LBB0_45
LBB0_50:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #1
	b	LBB0_52
LBB0_51:                                ;   in Loop: Header=BB0_52 Depth=2
	mov	w8, #0
	ldr	w9, [sp, #24]                   ; 4-byte Folded Reload
	tbz	w9, #0, LBB0_91
LBB0_52:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_59 Depth 3
                                        ;         Child Loop BB0_63 Depth 4
                                        ;         Child Loop BB0_71 Depth 4
                                        ;         Child Loop BB0_79 Depth 4
                                        ;         Child Loop BB0_87 Depth 4
	mov	x23, x8
	tbz	w8, #0, LBB0_54
; %bb.53:                               ;   in Loop: Header=BB0_52 Depth=2
	mov	w22, #0
	b	LBB0_55
LBB0_54:                                ;   in Loop: Header=BB0_52 Depth=2
	ldr	w8, [x19, #36]
	sub	w22, w8, #1
LBB0_55:                                ;   in Loop: Header=BB0_52 Depth=2
	mov	x0, x19
	mov	x1, x22
	bl	_R_MergedHeightPoints
	str	w23, [sp, #24]                  ; 4-byte Folded Spill
	cbnz	x0, LBB0_51
; %bb.56:                               ;   in Loop: Header=BB0_52 Depth=2
	ldr	w8, [x19, #32]
	cmp	w8, #3
	b.lt	LBB0_51
; %bb.57:                               ;   in Loop: Header=BB0_52 Depth=2
	mov	w24, #1
	b	LBB0_59
LBB0_58:                                ;   in Loop: Header=BB0_59 Depth=3
	add	x24, x24, #1
	ldrsw	x8, [x19, #32]
	sub	x8, x8, #1
	cmp	x24, x8
	b.ge	LBB0_51
LBB0_59:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_52 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_63 Depth 4
                                        ;         Child Loop BB0_71 Depth 4
                                        ;         Child Loop BB0_79 Depth 4
                                        ;         Child Loop BB0_87 Depth 4
	mov	x0, x21
	mov	w1, #0
	bl	_R_MergedWidthPoints
	cbnz	x0, LBB0_67
; %bb.60:                               ;   in Loop: Header=BB0_59 Depth=3
	ldr	w8, [x21, #36]
	cmp	w8, #3
	b.lt	LBB0_67
; %bb.61:                               ;   in Loop: Header=BB0_59 Depth=3
	mov	w23, #1
	b	LBB0_63
LBB0_62:                                ;   in Loop: Header=BB0_63 Depth=4
	add	x23, x23, #1
	ldrsw	x8, [x21, #36]
	sub	x8, x8, #1
	cmp	x23, x8
	b.ge	LBB0_67
LBB0_63:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_52 Depth=2
                                        ;       Parent Loop BB0_59 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	x8, [x19, #48]
	ldr	w9, [x19, #36]
	madd	w9, w9, w24, w22
	ldr	x8, [x8, w9, sxtw #3]
	ldr	x8, [x8]
	ldr	x9, [x21, #48]
	ldr	x9, [x9, x23, lsl #3]
	ldr	x9, [x9]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x28
	fcmp	d0, d1
	b.gt	LBB0_62
; %bb.64:                               ;   in Loop: Header=BB0_63 Depth=4
	ldr	x8, [x19, #48]
	ldr	w9, [x19, #36]
	madd	w9, w9, w24, w22
	ldr	x8, [x8, w9, sxtw #3]
	ldr	x8, [x8, #8]
	ldr	x9, [x21, #48]
	ldr	x9, [x9, x23, lsl #3]
	ldr	x9, [x9, #8]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x28
	fcmp	d0, d1
	b.gt	LBB0_62
; %bb.65:                               ;   in Loop: Header=BB0_63 Depth=4
	ldr	x8, [x19, #48]
	ldr	w9, [x19, #36]
	madd	w9, w9, w24, w22
	ldr	x8, [x8, w9, sxtw #3]
	ldr	x8, [x8, #16]
	ldr	x9, [x21, #48]
	ldr	x9, [x9, x23, lsl #3]
	ldr	x9, [x9, #16]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x28
	fcmp	d0, d1
	b.gt	LBB0_62
; %bb.66:                               ;   in Loop: Header=BB0_63 Depth=4
	ldr	x8, [x19, #40]
	ldr	w8, [x8, x24, lsl #2]
	ldr	x9, [x21, #56]
	str	w8, [x9, x23, lsl #2]
	ldr	w20, [x27]
	b	LBB0_62
LBB0_67:                                ;   in Loop: Header=BB0_59 Depth=3
	ldp	w8, w9, [x21, #32]
	sub	w8, w8, #1
	mul	w23, w8, w9
	mov	x0, x21
	mov	x1, x23
	bl	_R_MergedWidthPoints
	cbnz	x0, LBB0_75
; %bb.68:                               ;   in Loop: Header=BB0_59 Depth=3
	ldr	w8, [x21, #36]
	cmp	w8, #3
	b.lt	LBB0_75
; %bb.69:                               ;   in Loop: Header=BB0_59 Depth=3
	sbfiz	x23, x23, #3, #32
	mov	w26, #1
	b	LBB0_71
LBB0_70:                                ;   in Loop: Header=BB0_71 Depth=4
	add	x26, x26, #1
	ldrsw	x8, [x21, #36]
	sub	x8, x8, #1
	cmp	x26, x8
	b.ge	LBB0_75
LBB0_71:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_52 Depth=2
                                        ;       Parent Loop BB0_59 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	x8, [x19, #48]
	ldr	w9, [x19, #36]
	madd	w9, w9, w24, w22
	ldr	x8, [x8, w9, sxtw #3]
	ldr	x8, [x8]
	ldr	x9, [x21, #48]
	add	x9, x9, x23
	ldr	x9, [x9, x26, lsl #3]
	ldr	x9, [x9]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x28
	fcmp	d0, d1
	b.gt	LBB0_70
; %bb.72:                               ;   in Loop: Header=BB0_71 Depth=4
	ldr	x8, [x19, #48]
	ldr	w9, [x19, #36]
	madd	w9, w9, w24, w22
	ldr	x8, [x8, w9, sxtw #3]
	ldr	x8, [x8, #8]
	ldr	x9, [x21, #48]
	add	x9, x9, x23
	ldr	x9, [x9, x26, lsl #3]
	ldr	x9, [x9, #8]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x28
	fcmp	d0, d1
	b.gt	LBB0_70
; %bb.73:                               ;   in Loop: Header=BB0_71 Depth=4
	ldr	x8, [x19, #48]
	ldr	w9, [x19, #36]
	madd	w9, w9, w24, w22
	ldr	x8, [x8, w9, sxtw #3]
	ldr	x8, [x8, #16]
	ldr	x9, [x21, #48]
	add	x9, x9, x23
	ldr	x9, [x9, x26, lsl #3]
	ldr	x9, [x9, #16]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x28
	fcmp	d0, d1
	b.gt	LBB0_70
; %bb.74:                               ;   in Loop: Header=BB0_71 Depth=4
	ldr	x8, [x19, #40]
	ldr	w8, [x8, x24, lsl #2]
	ldr	x9, [x21, #56]
	str	w8, [x9, x26, lsl #2]
	ldr	w20, [x27]
	b	LBB0_70
LBB0_75:                                ;   in Loop: Header=BB0_59 Depth=3
	mov	x0, x21
	mov	w1, #0
	bl	_R_MergedHeightPoints
	cbnz	x0, LBB0_83
; %bb.76:                               ;   in Loop: Header=BB0_59 Depth=3
	ldr	w8, [x21, #32]
	cmp	w8, #3
	b.lt	LBB0_83
; %bb.77:                               ;   in Loop: Header=BB0_59 Depth=3
	mov	w23, #1
	b	LBB0_79
LBB0_78:                                ;   in Loop: Header=BB0_79 Depth=4
	add	x23, x23, #1
	ldrsw	x8, [x21, #32]
	sub	x8, x8, #1
	cmp	x23, x8
	b.ge	LBB0_83
LBB0_79:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_52 Depth=2
                                        ;       Parent Loop BB0_59 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	x8, [x19, #48]
	ldr	w9, [x19, #36]
	madd	w9, w9, w24, w22
	ldr	x8, [x8, w9, sxtw #3]
	ldr	x8, [x8]
	ldr	x9, [x21, #48]
	ldr	w10, [x21, #36]
	mul	w10, w10, w23
	ldr	x9, [x9, w10, sxtw #3]
	ldr	x9, [x9]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x28
	fcmp	d0, d1
	b.gt	LBB0_78
; %bb.80:                               ;   in Loop: Header=BB0_79 Depth=4
	ldr	x8, [x19, #48]
	ldr	w9, [x19, #36]
	madd	w9, w9, w24, w22
	ldr	x8, [x8, w9, sxtw #3]
	ldr	x8, [x8, #8]
	ldr	x9, [x21, #48]
	ldr	w10, [x21, #36]
	mul	w10, w10, w23
	ldr	x9, [x9, w10, sxtw #3]
	ldr	x9, [x9, #8]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x28
	fcmp	d0, d1
	b.gt	LBB0_78
; %bb.81:                               ;   in Loop: Header=BB0_79 Depth=4
	ldr	x8, [x19, #48]
	ldr	w9, [x19, #36]
	madd	w9, w9, w24, w22
	ldr	x8, [x8, w9, sxtw #3]
	ldr	x8, [x8, #16]
	ldr	x9, [x21, #48]
	ldr	w10, [x21, #36]
	mul	w10, w10, w23
	ldr	x9, [x9, w10, sxtw #3]
	ldr	x9, [x9, #16]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x28
	fcmp	d0, d1
	b.gt	LBB0_78
; %bb.82:                               ;   in Loop: Header=BB0_79 Depth=4
	ldr	x8, [x19, #40]
	ldr	w8, [x8, x24, lsl #2]
	ldr	x9, [x21, #40]
	str	w8, [x9, x23, lsl #2]
	ldr	w20, [x27]
	b	LBB0_78
LBB0_83:                                ;   in Loop: Header=BB0_59 Depth=3
	ldr	w8, [x21, #36]
	sub	w23, w8, #1
	mov	x0, x21
	mov	x1, x23
	bl	_R_MergedHeightPoints
	cbnz	x0, LBB0_58
; %bb.84:                               ;   in Loop: Header=BB0_59 Depth=3
	ldr	w8, [x21, #32]
	cmp	w8, #3
	b.lt	LBB0_58
; %bb.85:                               ;   in Loop: Header=BB0_59 Depth=3
	mov	w26, #1
	b	LBB0_87
LBB0_86:                                ;   in Loop: Header=BB0_87 Depth=4
	add	x26, x26, #1
	ldrsw	x8, [x21, #32]
	sub	x8, x8, #1
	cmp	x26, x8
	b.ge	LBB0_58
LBB0_87:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_52 Depth=2
                                        ;       Parent Loop BB0_59 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	x8, [x19, #48]
	ldr	w9, [x19, #36]
	madd	w9, w9, w24, w22
	ldr	x8, [x8, w9, sxtw #3]
	ldr	x8, [x8]
	ldr	x9, [x21, #48]
	ldr	w10, [x21, #36]
	madd	w10, w10, w26, w23
	ldr	x9, [x9, w10, sxtw #3]
	ldr	x9, [x9]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x28
	fcmp	d0, d1
	b.gt	LBB0_86
; %bb.88:                               ;   in Loop: Header=BB0_87 Depth=4
	ldr	x8, [x19, #48]
	ldr	w9, [x19, #36]
	madd	w9, w9, w24, w22
	ldr	x8, [x8, w9, sxtw #3]
	ldr	x8, [x8, #8]
	ldr	x9, [x21, #48]
	ldr	w10, [x21, #36]
	madd	w10, w10, w26, w23
	ldr	x9, [x9, w10, sxtw #3]
	ldr	x9, [x9, #8]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x28
	fcmp	d0, d1
	b.gt	LBB0_86
; %bb.89:                               ;   in Loop: Header=BB0_87 Depth=4
	ldr	x8, [x19, #48]
	ldr	w9, [x19, #36]
	madd	w9, w9, w24, w22
	ldr	x8, [x8, w9, sxtw #3]
	ldr	x8, [x8, #16]
	ldr	x9, [x21, #48]
	ldr	w10, [x21, #36]
	madd	w10, w10, w26, w23
	ldr	x9, [x9, w10, sxtw #3]
	ldr	x9, [x9, #16]
	sub	x0, x8, x9
	bl	_fabs
	fmov	d1, x28
	fcmp	d0, d1
	b.gt	LBB0_86
; %bb.90:                               ;   in Loop: Header=BB0_87 Depth=4
	ldr	x8, [x19, #40]
	ldr	w8, [x8, x24, lsl #2]
	ldr	x9, [x21, #40]
	str	w8, [x9, x26, lsl #2]
	ldr	w20, [x27]
	b	LBB0_86
LBB0_91:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w20, LBB0_2
; %bb.92:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #2
	str	w8, [x21, #8]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x21
	bl	_R_FixSharedVertexLodError_r
	b	LBB0_2
LBB0_93:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_s_worldData,16,3               ; @s_worldData
	.comm	_SF_GRID,8,3                    ; @SF_GRID
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
