	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VGLrgb332ToNative              ## -- Begin function VGLrgb332ToNative
	.p2align	4, 0x90
_VGLrgb332ToNative:                     ## @VGLrgb332ToNative
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %ecx
	shrl	$5, %ecx
	andl	$7, %ecx
	movl	%ecx, %eax
	shll	$16, %eax
	subl	%ecx, %eax
	imulq	$613566757, %rax, %rcx          ## imm = 0x24924925
	shrq	$32, %rcx
	subl	%ecx, %eax
	shrl	%eax
	addl	%ecx, %eax
	shrl	$2, %eax
	movl	%edi, %ecx
	shrl	$2, %ecx
	andl	$7, %ecx
	movl	%ecx, %esi
	shll	$16, %esi
	subl	%ecx, %esi
	imulq	$613566757, %rsi, %rcx          ## imm = 0x24924925
	shrq	$32, %rcx
	subl	%ecx, %esi
	shrl	%esi
	addl	%ecx, %esi
	shrl	$2, %esi
	andl	$3, %edi
	imull	$21845, %edi, %edx              ## imm = 0x5555
	movl	%eax, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	popq	%rbp
	jmp	_VGLrgbToNative                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VGLrgb332ToNative              ; -- Begin function VGLrgb332ToNative
	.p2align	2
_VGLrgb332ToNative:                     ; @VGLrgb332ToNative
	.cfi_startproc
; %bb.0:
	ubfx	w8, w0, #5, #3
	lsl	w9, w8, #16
	mov	w10, #18725
	movk	w10, #9362, lsl #16
	sub	w8, w9, w8
	umull	x9, w8, w10
	lsr	x9, x9, #32
	sub	w8, w8, w9
	add	w8, w9, w8, lsr #1
	lsr	w8, w8, #2
	ubfx	w9, w0, #2, #3
	lsl	w11, w9, #16
	sub	w9, w11, w9
	umull	x10, w9, w10
	lsr	x10, x10, #32
	sub	w9, w9, w10
	add	w9, w10, w9, lsr #1
	lsr	w1, w9, #2
	and	w9, w0, #0x3
	mov	w10, #21845
	mul	w2, w9, w10
	mov	x0, x8
	b	_VGLrgbToNative
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
