	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function R_ColorShiftLightingBytes
_R_ColorShiftLightingBytes:             ## @R_ColorShiftLightingBytes
	.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	(%rdi), %r8d
	shll	%cl, %r8d
	movl	4(%rdi), %r10d
	shll	%cl, %r10d
	movl	8(%rdi), %r9d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r9d
	movl	%r10d, %eax
	orl	%r8d, %eax
	orl	%r9d, %eax
	cmpl	$256, %eax                      ## imm = 0x100
	jl	LBB0_2
## %bb.1:
	cmpl	%r10d, %r8d
	movl	%r10d, %r11d
	cmovgl	%r8d, %r11d
	cmpl	%r9d, %r11d
	cmovlel	%r9d, %r11d
	movl	%r8d, %eax
	shll	$8, %eax
	subl	%r8d, %eax
	cltd
	idivl	%r11d
	movl	%r10d, %ecx
	shll	$8, %ecx
	subl	%r10d, %ecx
	movl	%eax, %r8d
	movl	%ecx, %eax
	cltd
	idivl	%r11d
	movl	%r9d, %ecx
	shll	$8, %ecx
	subl	%r9d, %ecx
	movl	%eax, %r10d
	movl	%ecx, %eax
	cltd
	idivl	%r11d
	movl	%eax, %r9d
LBB0_2:
	movl	%r8d, (%rsi)
	movl	%r10d, 4(%rsi)
	movl	%r9d, 8(%rsi)
	movl	12(%rdi), %eax
	movl	%eax, 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_ColorShiftLightingBytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function R_ColorShiftLightingBytes
_R_ColorShiftLightingBytes:             ; @R_ColorShiftLightingBytes
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _r_mapOverBrightBits@GOTPAGE
Lloh1:
	ldr	x8, [x8, _r_mapOverBrightBits@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _tr@GOTPAGE
Lloh4:
	ldr	x9, [x9, _tr@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	sub	w10, w8, w9
	ldp	w8, w11, [x0]
	lsl	w9, w8, w10
	lsl	w8, w11, w10
	ldr	w11, [x0, #8]
	lsl	w10, w11, w10
	orr	w11, w8, w9
	orr	w11, w11, w10
	cmp	w11, #256
	b.lt	LBB0_2
; %bb.1:
	cmp	w9, w8
	csel	w11, w9, w8, gt
	cmp	w11, w10
	csel	w11, w11, w10, gt
	lsl	w12, w9, #8
	sub	w9, w12, w9
	sdiv	w9, w9, w11
	lsl	w12, w8, #8
	sub	w8, w12, w8
	sdiv	w8, w8, w11
	lsl	w12, w10, #8
	sub	w10, w12, w10
	sdiv	w10, w10, w11
LBB0_2:
	stp	w9, w8, [x1]
	str	w10, [x1, #8]
	ldr	w8, [x0, #12]
	str	w8, [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_ColorShiftLightingBytes
.subsections_via_symbols
