	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_fb_setcolreg
_vmw_fb_setcolreg:                      ## @vmw_fb_setcolreg
	.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, %eax
	cmpl	$16, %edi
	jb	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_6
LBB0_2:
	movq	(%r9), %rdi
	movq	(%rdi), %r9
	movq	8(%rdi), %rdi
	movq	(%rdi), %rdi
	movl	(%rdi), %r8d
	cmpl	$32, %r8d
	je	LBB0_4
## %bb.3:
	cmpl	$24, %r8d
	jne	LBB0_5
LBB0_4:
	shll	$8, %esi
	andl	$16711680, %esi                 ## imm = 0xFF0000
	andl	$65280, %edx                    ## imm = 0xFF00
	orl	%esi, %edx
	movzbl	%ch, %ecx
	orl	%edx, %ecx
	movl	%eax, %eax
	movl	%ecx, (%r9,%rax,4)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_5:
	movq	8(%rdi), %rax
	movl	(%rax), %edx
	shll	$3, %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%r8d, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_6:
	movl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad regno %u.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Bad depth %u, bpp %u.\n"

	.no_dead_strip	_vmw_fb_setcolreg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_fb_setcolreg
_vmw_fb_setcolreg:                      ; @vmw_fb_setcolreg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x0
	cmp	w0, #16
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x8
	b	LBB0_5
LBB0_2:
	ldr	x10, [x5]
	ldr	x9, [x10, #8]
	ldr	x11, [x9]
	ldr	w9, [x11]
	cmp	w9, #32
	ccmp	w9, #24, #4, ne
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	ldr	x9, [x10]
	lsr	w10, w1, #8
	and	w11, w2, #0xff00
	bfi	w11, w10, #16, #8
	bfxil	w11, w3, #8, #8
	str	w11, [x9, w8, uxtw #2]
	b	LBB0_6
LBB0_4:
	ldr	x8, [x11, #8]
	ldr	w8, [x8]
	lsl	w8, w8, #3
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x9
LBB0_5:
	bl	_DRM_ERROR
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad regno %u.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Bad depth %u, bpp %u.\n"

	.no_dead_strip	_vmw_fb_setcolreg
.subsections_via_symbols
