	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function drm_fb_xrgb8888_to_rgb888_line
LCPI0_0:
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_1:
	.byte	1                               ## 0x1
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	5                               ## 0x5
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	9                               ## 0x9
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	13                              ## 0xd
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
LCPI0_2:
	.byte	2                               ## 0x2
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	6                               ## 0x6
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	10                              ## 0xa
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	14                              ## 0xe
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_drm_fb_xrgb8888_to_rgb888_line:        ## @drm_fb_xrgb8888_to_rgb888_line
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edx, %edx
	je	LBB0_17
## %bb.1:
	movl	%edx, %r9d
	cmpl	$4, %edx
	jb	LBB0_2
## %bb.3:
	leaq	(%rsi,%r9,4), %rax
	cmpq	%rdi, %rax
	jbe	LBB0_6
## %bb.4:
	leaq	(%r9,%r9,2), %rax
	leaq	(%rdi,%rax,4), %rax
	cmpq	%rsi, %rax
	jbe	LBB0_6
LBB0_2:
	xorl	%ecx, %ecx
LBB0_13:
	movq	%rcx, %rax
	notq	%rax
	testb	$1, %r9b
	je	LBB0_15
## %bb.14:
	movzbl	(%rsi,%rcx,4), %edx
	movl	%edx, (%rdi)
	movzbl	1(%rsi,%rcx,4), %edx
	movl	%edx, 4(%rdi)
	movzbl	2(%rsi,%rcx,4), %edx
	movl	%edx, 8(%rdi)
	addq	$12, %rdi
	orq	$1, %rcx
LBB0_15:
	addq	%r9, %rax
	je	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rsi,%rcx,4), %eax
	movl	%eax, (%rdi)
	movzbl	1(%rsi,%rcx,4), %eax
	movl	%eax, 4(%rdi)
	movzbl	2(%rsi,%rcx,4), %eax
	movl	%eax, 8(%rdi)
	movzbl	4(%rsi,%rcx,4), %eax
	movl	%eax, 12(%rdi)
	movzbl	5(%rsi,%rcx,4), %eax
	movl	%eax, 16(%rdi)
	movzbl	6(%rsi,%rcx,4), %eax
	movl	%eax, 20(%rdi)
	addq	$2, %rcx
	addq	$24, %rdi
	cmpq	%rcx, %r9
	jne	LBB0_16
	jmp	LBB0_17
LBB0_6:
	movl	%r9d, %ecx
	andl	$-4, %ecx
	leaq	-4(%rcx), %rax
	movq	%rax, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_18
## %bb.7:
	movq	%r8, %r10
	andq	$-2, %r10
	xorl	%edx, %edx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [255,0,0,0,255,0,0,0,255,0,0,0,255,0,0,0]
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [1,128,128,128,5,128,128,128,9,128,128,128,13,128,128,128]
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [2,128,128,128,6,128,128,128,10,128,128,128,14,128,128,128]
	movq	%rdi, %rax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rsi,%rdx,4), %xmm3
	movdqa	%xmm3, %xmm4
	pand	%xmm0, %xmm4
	movdqa	%xmm3, %xmm5
	pshufb	%xmm1, %xmm5
	pshufd	$80, %xmm5, %xmm6               ## xmm6 = xmm5[0,0,1,1]
	pshufd	$68, %xmm4, %xmm7               ## xmm7 = xmm4[0,1,0,1]
	pblendw	$12, %xmm6, %xmm7               ## xmm7 = xmm7[0,1],xmm6[2,3],xmm7[4,5,6,7]
	pmovzxbd	%xmm3, %xmm6                    ## xmm6 = xmm3[0],zero,zero,zero,xmm3[1],zero,zero,zero,xmm3[2],zero,zero,zero,xmm3[3],zero,zero,zero
	pshufb	%xmm2, %xmm3
	pblendw	$207, %xmm7, %xmm6              ## xmm6 = xmm7[0,1,2,3],xmm6[4,5],xmm7[6,7]
	pshufd	$165, %xmm5, %xmm7              ## xmm7 = xmm5[1,1,2,2]
	pblendw	$48, %xmm4, %xmm7               ## xmm7 = xmm7[0,1,2,3],xmm4[4,5],xmm7[6,7]
	pblendw	$12, %xmm3, %xmm7               ## xmm7 = xmm7[0,1],xmm3[2,3],xmm7[4,5,6,7]
	shufps	$255, %xmm5, %xmm4              ## xmm4 = xmm4[3,3],xmm5[3,3]
	pshufd	$238, %xmm3, %xmm3              ## xmm3 = xmm3[2,3,2,3]
	pblendw	$60, %xmm4, %xmm3               ## xmm3 = xmm3[0,1],xmm4[2,3,4,5],xmm3[6,7]
	movdqu	%xmm3, 32(%rax)
	movdqu	%xmm7, 16(%rax)
	movdqu	%xmm6, (%rax)
	movdqu	16(%rsi,%rdx,4), %xmm3
	movdqa	%xmm3, %xmm4
	pand	%xmm0, %xmm4
	movdqa	%xmm3, %xmm5
	pshufb	%xmm1, %xmm5
	pshufd	$80, %xmm5, %xmm6               ## xmm6 = xmm5[0,0,1,1]
	pshufd	$68, %xmm4, %xmm7               ## xmm7 = xmm4[0,1,0,1]
	pblendw	$12, %xmm6, %xmm7               ## xmm7 = xmm7[0,1],xmm6[2,3],xmm7[4,5,6,7]
	pmovzxbd	%xmm3, %xmm6                    ## xmm6 = xmm3[0],zero,zero,zero,xmm3[1],zero,zero,zero,xmm3[2],zero,zero,zero,xmm3[3],zero,zero,zero
	pshufb	%xmm2, %xmm3
	pblendw	$207, %xmm7, %xmm6              ## xmm6 = xmm7[0,1,2,3],xmm6[4,5],xmm7[6,7]
	pshufd	$165, %xmm5, %xmm7              ## xmm7 = xmm5[1,1,2,2]
	pblendw	$48, %xmm4, %xmm7               ## xmm7 = xmm7[0,1,2,3],xmm4[4,5],xmm7[6,7]
	pblendw	$12, %xmm3, %xmm7               ## xmm7 = xmm7[0,1],xmm3[2,3],xmm7[4,5,6,7]
	shufps	$255, %xmm5, %xmm4              ## xmm4 = xmm4[3,3],xmm5[3,3]
	pshufd	$238, %xmm3, %xmm3              ## xmm3 = xmm3[2,3,2,3]
	pblendw	$60, %xmm4, %xmm3               ## xmm3 = xmm3[0,1],xmm4[2,3,4,5],xmm3[6,7]
	movdqu	%xmm3, 80(%rax)
	movdqu	%xmm7, 64(%rax)
	movdqu	%xmm6, 48(%rax)
	addq	$8, %rdx
	addq	$96, %rax
	addq	$-2, %r10
	jne	LBB0_8
## %bb.9:
	testb	$1, %r8b
	je	LBB0_11
LBB0_10:
	movdqu	(%rsi,%rdx,4), %xmm0
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [255,0,0,0,255,0,0,0,255,0,0,0,255,0,0,0]
	pand	%xmm0, %xmm1
	movdqa	%xmm0, %xmm2
	pshufb	LCPI0_1(%rip), %xmm2            ## xmm2 = xmm2[1],zero,zero,zero,xmm2[5],zero,zero,zero,xmm2[9],zero,zero,zero,xmm2[13],zero,zero,zero
	pmovzxbd	%xmm0, %xmm3                    ## xmm3 = xmm0[0],zero,zero,zero,xmm0[1],zero,zero,zero,xmm0[2],zero,zero,zero,xmm0[3],zero,zero,zero
	pshufb	LCPI0_2(%rip), %xmm0            ## xmm0 = xmm0[2],zero,zero,zero,xmm0[6],zero,zero,zero,xmm0[10],zero,zero,zero,xmm0[14],zero,zero,zero
	leaq	(%rdx,%rdx,2), %rax
	pshufd	$80, %xmm2, %xmm4               ## xmm4 = xmm2[0,0,1,1]
	pshufd	$68, %xmm1, %xmm5               ## xmm5 = xmm1[0,1,0,1]
	pblendw	$12, %xmm4, %xmm5               ## xmm5 = xmm5[0,1],xmm4[2,3],xmm5[4,5,6,7]
	pblendw	$48, %xmm3, %xmm5               ## xmm5 = xmm5[0,1,2,3],xmm3[4,5],xmm5[6,7]
	pshufd	$165, %xmm2, %xmm3              ## xmm3 = xmm2[1,1,2,2]
	pblendw	$48, %xmm1, %xmm3               ## xmm3 = xmm3[0,1,2,3],xmm1[4,5],xmm3[6,7]
	pblendw	$12, %xmm0, %xmm3               ## xmm3 = xmm3[0,1],xmm0[2,3],xmm3[4,5,6,7]
	shufps	$255, %xmm2, %xmm1              ## xmm1 = xmm1[3,3],xmm2[3,3]
	pshufd	$238, %xmm0, %xmm0              ## xmm0 = xmm0[2,3,2,3]
	pblendw	$60, %xmm1, %xmm0               ## xmm0 = xmm0[0,1],xmm1[2,3,4,5],xmm0[6,7]
	movdqu	%xmm0, 32(%rdi,%rax,4)
	movdqu	%xmm3, 16(%rdi,%rax,4)
	movdqu	%xmm5, (%rdi,%rax,4)
LBB0_11:
	cmpq	%r9, %rcx
	jne	LBB0_12
LBB0_17:
	popq	%rbp
	retq
LBB0_12:
	leaq	(%rcx,%rcx,2), %rax
	leaq	(%rdi,%rax,4), %rdi
	jmp	LBB0_13
LBB0_18:
	xorl	%edx, %edx
	testb	$1, %r8b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_drm_fb_xrgb8888_to_rgb888_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_fb_xrgb8888_to_rgb888_line
_drm_fb_xrgb8888_to_rgb888_line:        ; @drm_fb_xrgb8888_to_rgb888_line
	.cfi_startproc
; %bb.0:
	cbz	w2, LBB0_9
; %bb.1:
	mov	w9, w2
	cmp	w2, #4
	b.lo	LBB0_6
; %bb.2:
	mov	w8, #12
	madd	x8, x9, x8, x0
	add	x10, x1, x9, lsl #2
	cmp	x10, x0
	ccmp	x8, x1, #0, hi
	b.hi	LBB0_6
; %bb.3:
	and	x10, x9, #0xfffffffc
	mov	w8, #12
	madd	x8, x10, x8, x0
	movi.2d	v0, #0x0000ff000000ff
	mov	x11, x10
	mov	x12, x1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	q1, [x12], #16
	and.16b	v2, v1, v0
	ushr.4s	v5, v1, #8
	and.16b	v3, v5, v0
	ushr.4s	v1, v1, #16
	and.16b	v4, v1, v0
	st3.4s	{ v2, v3, v4 }, [x0], #48
	subs	x11, x11, #4
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x9
	b.ne	LBB0_7
	b	LBB0_9
LBB0_6:
	mov	x10, #0
	mov	x8, x0
LBB0_7:
	add	x11, x1, x10, lsl #2
	sub	x9, x9, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x11]
	str	w10, [x8]
	ldrb	w10, [x11, #1]
	str	w10, [x8, #4]
	ldrb	w10, [x11, #2]
	str	w10, [x8, #8]
	add	x11, x11, #4
	add	x8, x8, #12
	subs	x9, x9, #1
	b.ne	LBB0_8
LBB0_9:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_drm_fb_xrgb8888_to_rgb888_line
.subsections_via_symbols
