	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gx_priv_colour_to_paint        ## -- Begin function gx_priv_colour_to_paint
	.p2align	4, 0x90
_gx_priv_colour_to_paint:               ## @gx_priv_colour_to_paint
	.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_888_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	movl	%eax, %ecx
	shrl	$16, %ecx
	sarl	$16, %eax
	imull	$-32639, %eax, %eax             ## imm = 0x8081
	shrl	$16, %eax
	addl	%ecx, %eax
	movzwl	%ax, %eax
	movswl	%ax, %ecx
	shrl	$15, %eax
	sarl	$7, %ecx
	addl	%eax, %ecx
	movswl	%cx, %eax
	movl	%eax, (%rsi)
	movq	_G_888_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	sarl	$8, %eax
	cltq
	imulq	$-2139062143, %rax, %rcx        ## imm = 0x80808081
	shrq	$32, %rcx
	addl	%ecx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	sarl	$7, %eax
	addl	%ecx, %eax
	movl	%eax, 4(%rsi)
	movq	_B_888_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	movslq	%edi, %rax
	imulq	$-2139062143, %rax, %rcx        ## imm = 0x80808081
	shrq	$32, %rcx
	addl	%ecx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	sarl	$7, %eax
	addl	%ecx, %eax
	movl	%eax, 8(%rsi)
	movl	$0, 12(%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R_888_MASK,4,2                 ## @R_888_MASK
	.comm	_G_888_MASK,4,2                 ## @G_888_MASK
	.comm	_B_888_MASK,4,2                 ## @B_888_MASK
	.comm	_ALPHA_888_MASK,4,2             ## @ALPHA_888_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gx_priv_colour_to_paint        ; -- Begin function gx_priv_colour_to_paint
	.p2align	2
_gx_priv_colour_to_paint:               ; @gx_priv_colour_to_paint
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _R_888_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R_888_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
	asr	w9, w8, #16
	mov	w10, #-32639
	mul	w9, w9, w10
	lsr	w9, w9, #16
	add	w8, w9, w8, lsr #16
	and	w9, w8, #0x8000
	sbfx	w8, w8, #7, #9
	add	w8, w8, w9, lsr #15
	str	w8, [x1]
Lloh3:
	adrp	x8, _G_888_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _G_888_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
	asr	w8, w8, #8
	mov	w9, #32897
	movk	w9, #32896, lsl #16
	smull	x10, w8, w9
	lsr	x10, x10, #32
	add	w8, w10, w8
	asr	w10, w8, #7
	add	w8, w10, w8, lsr #31
Lloh6:
	adrp	x10, _B_888_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _B_888_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	and	w10, w10, w0
	smull	x9, w10, w9
	lsr	x9, x9, #32
	add	w9, w9, w10
	asr	w10, w9, #7
	add	w9, w10, w9, lsr #31
	stp	w8, w9, [x1, #4]
	str	wzr, [x1, #12]
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_R_888_MASK,4,2                 ; @R_888_MASK
	.comm	_G_888_MASK,4,2                 ; @G_888_MASK
	.comm	_B_888_MASK,4,2                 ; @B_888_MASK
	.comm	_ALPHA_888_MASK,4,2             ; @ALPHA_888_MASK
.subsections_via_symbols
