	.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_ColorShiftLightingFloats
LCPI0_0:
	.long	0x437f0000                      ## float 255
LCPI0_1:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_R_ColorShiftLightingFloats:            ## @R_ColorShiftLightingFloats
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_r_mapOverBrightBits@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movq	_tr@GOTPCREL(%rip), %rax
	subl	(%rax), %ecx
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	cvtsi2ss	%eax, %xmm0
	divss	LCPI0_0(%rip), %xmm0
	movsd	(%rdi), %xmm2                   ## xmm2 = mem[0],zero
	movsldup	%xmm0, %xmm1                    ## xmm1 = xmm0[0,0,2,2]
	mulps	%xmm2, %xmm1
	mulss	8(%rdi), %xmm0
	movshdup	%xmm1, %xmm2                    ## xmm2 = xmm1[1,1,3,3]
	ucomiss	LCPI0_1(%rip), %xmm1
	ja	LBB0_3
## %bb.1:
	ucomiss	LCPI0_1(%rip), %xmm2
	ja	LBB0_3
## %bb.2:
	ucomiss	LCPI0_1(%rip), %xmm0
	jbe	LBB0_4
LBB0_3:
	movaps	%xmm1, %xmm3
	maxss	%xmm2, %xmm3
	maxss	%xmm0, %xmm3
	movsldup	%xmm3, %xmm2                    ## xmm2 = xmm3[0,0,2,2]
	divps	%xmm2, %xmm1
	divss	%xmm3, %xmm0
LBB0_4:
	movss	%xmm1, (%rsi)
	extractps	$1, %xmm1, 4(%rsi)
	movss	%xmm0, 8(%rsi)
	movss	12(%rdi), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 12(%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_r_mapOverBrightBits,8,3        ## @r_mapOverBrightBits
	.comm	_tr,4,2                         ## @tr
	.no_dead_strip	_R_ColorShiftLightingFloats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function R_ColorShiftLightingFloats
_R_ColorShiftLightingFloats:            ; @R_ColorShiftLightingFloats
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _r_mapOverBrightBits@GOTPAGE
Lloh1:
	ldr	x8, [x8, _r_mapOverBrightBits@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _tr@GOTPAGE
Lloh4:
	ldr	x9, [x9, _tr@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	sub	w8, w8, w9
	mov	w9, #1
	lsl	w8, w9, w8
	scvtf	s0, w8
	mov	w8, #1132396544
	fmov	s1, w8
	fdiv	s1, s0, s1
	ldr	d0, [x0]
	fmul.2s	v0, v0, v1[0]
	ldr	s2, [x0, #8]
	fmul	s1, s2, s1
	fmov.2s	v2, #1.00000000
	fcmgt.2s	v2, v0, v2
	fmov	w8, s2
	tbnz	w8, #0, LBB0_3
; %bb.1:
	mov.s	w8, v2[1]
	tbnz	w8, #0, LBB0_3
; %bb.2:
	fmov	s2, #1.00000000
	fcmp	s1, s2
	b.le	LBB0_4
LBB0_3:
	mov	s2, v0[1]
	fcmp	s0, s2
	fcsel	s2, s0, s2, gt
	fcmp	s2, s1
	fcsel	s2, s2, s1, gt
	fdiv	s1, s1, s2
	dup.2s	v2, v2[0]
	fdiv.2s	v0, v0, v2
LBB0_4:
	str	d0, [x1]
	str	s1, [x1, #8]
	ldr	s0, [x0, #12]
	str	s0, [x1, #12]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_r_mapOverBrightBits,8,3        ; @r_mapOverBrightBits
	.comm	_tr,4,2                         ; @tr
	.no_dead_strip	_R_ColorShiftLightingFloats
.subsections_via_symbols
