	.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_FogFactor
LCPI0_0:
	.long	0xbb000000                      ## float -0.001953125
LCPI0_1:
	.long	0x3d000000                      ## float 0.03125
LCPI0_2:
	.long	0x3f780000                      ## float 0.96875
LCPI0_3:
	.long	0xbd000000                      ## float -0.03125
LCPI0_4:
	.long	0x3f700000                      ## float 0.9375
LCPI0_5:
	.long	0x41000000                      ## float 8
LCPI0_6:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_R_FogFactor
	.p2align	4, 0x90
_R_FogFactor:                           ## @R_FogFactor
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	addss	LCPI0_0(%rip), %xmm0
	xorps	%xmm2, %xmm2
	ucomiss	%xmm0, %xmm2
	ja	LBB0_5
## %bb.1:
	movss	LCPI0_1(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm3
	ja	LBB0_5
## %bb.2:
	movss	LCPI0_2(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm2
	jbe	LBB0_4
## %bb.3:
	addss	LCPI0_3(%rip), %xmm1
	divss	LCPI0_4(%rip), %xmm1
	mulss	%xmm1, %xmm0
LBB0_4:
	mulss	LCPI0_5(%rip), %xmm0
	movss	LCPI0_6(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	minss	%xmm0, %xmm1
	movq	_tr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_FOG_TABLE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	decl	%ecx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ecx, %xmm0
	mulss	%xmm1, %xmm0
	cvttss2si	%xmm0, %ecx
	movslq	%ecx, %rcx
	movss	(%rax,%rcx,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
LBB0_5:
	movaps	%xmm2, %xmm0
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tr,8,3                         ## @tr
	.comm	_FOG_TABLE_SIZE,4,2             ## @FOG_TABLE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_FogFactor                    ; -- Begin function R_FogFactor
	.p2align	2
_R_FogFactor:                           ; @R_FogFactor
	.cfi_startproc
; %bb.0:
	movi.2s	v2, #187, lsl #24
	fadd	s2, s0, s2
	movi	d0, #0000000000000000
	fcmp	s2, #0.0
	movi.2s	v3, #61, lsl #24
	fccmp	s1, s3, #8, pl
	b.mi	LBB0_4
; %bb.1:
	fmov	s0, #0.96875000
	fcmp	s1, s0
	b.pl	LBB0_3
; %bb.2:
	movi.2s	v0, #189, lsl #24
	fadd	s0, s1, s0
	fmov	s1, #0.93750000
	fdiv	s0, s0, s1
	fmul	s2, s2, s0
LBB0_3:
	fmov	s0, #8.00000000
	fmul	s0, s2, s0
	fmov	s1, #1.00000000
	fmin	s0, s0, s1
Lloh0:
	adrp	x8, _tr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tr@GOTPAGEOFF]
Lloh2:
	adrp	x9, _FOG_TABLE_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FOG_TABLE_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	sub	w9, w9, #1
	scvtf	s1, w9
Lloh5:
	ldr	x8, [x8]
	fmul	s0, s0, s1
	fcvtzs	w9, s0
	ldr	s0, [x8, w9, sxtw #2]
LBB0_4:
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_tr,8,3                         ; @tr
	.comm	_FOG_TABLE_SIZE,4,2             ; @FOG_TABLE_SIZE
.subsections_via_symbols
