	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function R_ComputeLOD
LCPI0_0:
	.long	0x41a00000                      ## float 20
LCPI0_1:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_R_ComputeLOD
	.p2align	4, 0x90
_R_ComputeLOD:                          ## @R_ComputeLOD
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_tr@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax), %ecx
	xorl	%r14d, %r14d
	movl	$0, %edx
	cmpl	$2, %ecx
	jl	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movslq	(%rax), %rcx
	addq	%rax, %rcx
	movslq	4(%rdi), %rax
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %edi
	movl	4(%rax), %esi
	callq	_RadiusFromBounds
	movl	(%rbx), %edi
	callq	_ProjectRadius
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	jne	LBB0_2
	jnp	LBB0_3
LBB0_2:
	movq	_r_lodscale@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	minss	(%rax), %xmm1
	mulss	%xmm1, %xmm0
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm1
LBB0_3:
	movq	(%r15), %rax
	xorps	%xmm0, %xmm0
	cvtsi2ssl	(%rax), %xmm0
	mulss	%xmm1, %xmm0
	callq	_myftol
	movq	(%r15), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	leal	-1(%rcx), %edx
	cmpl	%ecx, %eax
	cmovll	%eax, %edx
	jmp	LBB0_6
LBB0_4:
	xorl	%edx, %edx
LBB0_6:
	movq	_r_lodbias@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addl	(%rax), %edx
	leal	-1(%rcx), %eax
	cmpl	%ecx, %edx
	cmovll	%edx, %eax
	testl	%eax, %eax
	cmovgl	%eax, %r14d
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tr,8,3                         ## @tr
	.comm	_r_lodscale,8,3                 ## @r_lodscale
	.comm	_r_lodbias,8,3                  ## @r_lodbias
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_ComputeLOD                   ; -- Begin function R_ComputeLOD
	.p2align	2
_R_ComputeLOD:                          ; @R_ComputeLOD
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _tr@GOTPAGE
Lloh1:
	ldr	x20, [x20, _tr@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	w8, [x9]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x8, [x9, #8]
	ldr	x8, [x8]
	ldrsw	x9, [x8]
	add	x8, x8, x9
	ldrsw	x9, [x0, #4]
	ldr	x8, [x8, x9, lsl #3]
	ldp	w0, w1, [x8]
	bl	_RadiusFromBounds
	ldr	w0, [x19]
	bl	_ProjectRadius
	fcmp	s0, #0.0
	b.eq	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _r_lodscale@GOTPAGE
Lloh3:
	ldr	x8, [x8, _r_lodscale@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	s1, [x8]
	fmov	s2, #20.00000000
	fmin	s1, s1, s2
	fmov	s2, #1.00000000
	fmsub	s0, s0, s1, s2
	b	LBB0_4
LBB0_3:
	movi	d0, #0000000000000000
LBB0_4:
	ldr	x8, [x20]
	ldr	s1, [x8]
	scvtf	s1, s1
	fmul	s0, s0, s1
	bl	_myftol
	ldr	x8, [x20]
	ldr	w8, [x8]
	tbnz	w0, #31, LBB0_6
; %bb.5:
	sub	w9, w8, #1
	cmp	w0, w8
	csel	w9, w0, w9, lt
	b	LBB0_7
LBB0_6:
	mov	w9, #0
LBB0_7:
Lloh5:
	adrp	x10, _r_lodbias@GOTPAGE
Lloh6:
	ldr	x10, [x10, _r_lodbias@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	ldr	w10, [x10]
	sub	w11, w8, #1
	add	w9, w9, w10
	cmp	w9, w8
	csel	w8, w9, w11, lt
	cmp	w8, #0
	csel	w0, w8, wzr, gt
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_tr,8,3                         ; @tr
	.comm	_r_lodscale,8,3                 ; @r_lodscale
	.comm	_r_lodbias,8,3                  ; @r_lodbias
.subsections_via_symbols
