	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function dump_line_565_to_24
LCPI0_0:
	.long	31                              ## 0x1f
	.long	31                              ## 0x1f
	.long	31                              ## 0x1f
	.long	31                              ## 0x1f
LCPI0_1:
	.long	63                              ## 0x3f
	.long	63                              ## 0x3f
	.long	63                              ## 0x3f
	.long	63                              ## 0x3f
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_dump_line_565_to_24:                   ## @dump_line_565_to_24
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
	testl	%edx, %edx
	je	LBB0_10
## %bb.1:
	leal	-1(%rdx), %r9d
	xorl	%r8d, %r8d
	cmpl	$3, %r9d
	jb	LBB0_2
## %bb.3:
	leaq	(%rsi,%r9,4), %rax
	addq	$4, %rax
	cmpq	%rdi, %rax
	jbe	LBB0_5
## %bb.4:
	leaq	(%r9,%r9,2), %rax
	leaq	(%rdi,%rax,4), %rax
	addq	$12, %rax
	cmpq	%rsi, %rax
	jbe	LBB0_5
LBB0_2:
	movq	%rdi, %r11
	movq	%rsi, %r10
LBB0_8:
	subl	%r8d, %edx
	xorl	%r8d, %r8d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r10,%r8,4), %esi
	movl	%esi, %ecx
	andl	$31, %ecx
	movl	%esi, %eax
	shrl	$5, %eax
	andl	$63, %eax
	shrl	$11, %esi
	andl	$31, %esi
	movl	%ecx, %edi
	shrl	$2, %edi
	leal	(%rdi,%rcx,8), %ecx
	movl	%ecx, (%r11)
	movl	%eax, %ecx
	shrl	$4, %ecx
	leal	(%rcx,%rax,4), %eax
	movl	%eax, 4(%r11)
	movl	%esi, %eax
	shrl	$2, %eax
	leal	(%rax,%rsi,8), %eax
	movl	%eax, 8(%r11)
	incq	%r8
	addq	$12, %r11
	cmpl	%r8d, %edx
	jne	LBB0_9
LBB0_10:
	popq	%rbp
	retq
LBB0_5:
	incq	%r9
	movq	%r9, %r8
	andq	$-4, %r8
	leaq	(%r8,%r8,2), %rax
	leaq	(%rdi,%rax,4), %r11
	leaq	(%rsi,%r8,4), %r10
	xorl	%ecx, %ecx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [31,31,31,31]
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [63,63,63,63]
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rsi,%rcx,4), %xmm3
	movdqa	%xmm3, %xmm2
	pand	%xmm0, %xmm2
	movdqa	%xmm3, %xmm4
	psrld	$5, %xmm4
	pand	%xmm1, %xmm4
	psrld	$11, %xmm3
	pand	%xmm0, %xmm3
	movdqa	%xmm2, %xmm5
	pslld	$3, %xmm5
	psrld	$2, %xmm2
	por	%xmm5, %xmm2
	movdqa	%xmm4, %xmm5
	pslld	$2, %xmm5
	psrld	$4, %xmm4
	por	%xmm5, %xmm4
	movdqa	%xmm3, %xmm5
	pslld	$3, %xmm5
	psrld	$2, %xmm3
	por	%xmm5, %xmm3
	pshufd	$68, %xmm2, %xmm5               ## xmm5 = xmm2[0,1,0,1]
	pshufd	$80, %xmm4, %xmm6               ## xmm6 = xmm4[0,0,1,1]
	pblendw	$243, %xmm5, %xmm6              ## xmm6 = xmm5[0,1],xmm6[2,3],xmm5[4,5,6,7]
	pshufd	$68, %xmm3, %xmm5               ## xmm5 = xmm3[0,1,0,1]
	pblendw	$207, %xmm6, %xmm5              ## xmm5 = xmm6[0,1,2,3],xmm5[4,5],xmm6[6,7]
	pshufd	$165, %xmm4, %xmm6              ## xmm6 = xmm4[1,1,2,2]
	pblendw	$48, %xmm2, %xmm6               ## xmm6 = xmm6[0,1,2,3],xmm2[4,5],xmm6[6,7]
	pblendw	$12, %xmm3, %xmm6               ## xmm6 = xmm6[0,1],xmm3[2,3],xmm6[4,5,6,7]
	shufps	$255, %xmm4, %xmm2              ## xmm2 = xmm2[3,3],xmm4[3,3]
	pshufd	$238, %xmm3, %xmm3              ## xmm3 = xmm3[2,3,2,3]
	pblendw	$60, %xmm2, %xmm3               ## xmm3 = xmm3[0,1],xmm2[2,3,4,5],xmm3[6,7]
	movdqu	%xmm3, 32(%rdi)
	movdqu	%xmm6, 16(%rdi)
	movdqu	%xmm5, (%rdi)
	addq	$4, %rcx
	addq	$48, %rdi
	cmpq	%rcx, %r8
	jne	LBB0_6
## %bb.7:
	cmpq	%r8, %r9
	jne	LBB0_8
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dump_line_565_to_24
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function dump_line_565_to_24
lCPI0_0:
	.long	31                              ; 0x1f
	.long	63                              ; 0x3f
lCPI0_1:
	.long	3                               ; 0x3
	.long	2                               ; 0x2
lCPI0_2:
	.long	4294967294                      ; 0xfffffffe
	.long	4294967292                      ; 0xfffffffc
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dump_line_565_to_24:                   ; @dump_line_565_to_24
	.cfi_startproc
; %bb.0:
	cbz	w2, LBB0_9
; %bb.1:
	sub	w8, w2, #1
	cmp	w8, #3
	b.lo	LBB0_6
; %bb.2:
	mov	w9, #12
	umaddl	x9, w8, w9, x0
	add	x9, x9, #12
	add	x10, x1, w8, uxtw #2
	add	x10, x10, #4
	cmp	x10, x0
	ccmp	x9, x1, #0, hi
	b.hi	LBB0_6
; %bb.3:
	add	x11, x8, #1
	and	x10, x11, #0x1fffffffc
	mov	w8, #12
	madd	x8, x10, x8, x0
	add	x9, x1, x10, lsl #2
	movi.4s	v0, #31
	movi.4s	v1, #63
	mov	x12, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	q2, [x1], #16
	and.16b	v3, v2, v0
	ushr.4s	v4, v2, #5
	and.16b	v4, v4, v1
	ushr.4s	v2, v2, #11
	and.16b	v2, v2, v0
	shl.4s	v5, v3, #3
	ushr.4s	v3, v3, #2
	orr.16b	v5, v5, v3
	shl.4s	v3, v4, #2
	ushr.4s	v4, v4, #4
	orr.16b	v6, v3, v4
	shl.4s	v3, v2, #3
	ushr.4s	v2, v2, #2
	orr.16b	v7, v3, v2
	st3.4s	{ v5, v6, v7 }, [x0], #48
	subs	x12, x12, #4
	b.ne	LBB0_4
; %bb.5:
	cmp	x11, x10
	b.ne	LBB0_7
	b	LBB0_9
LBB0_6:
	mov	w10, #0
	mov	x8, x0
	mov	x9, x1
LBB0_7:
	sub	w10, w2, w10
Lloh0:
	adrp	x11, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x11, lCPI0_0@PAGEOFF]
Lloh2:
	adrp	x11, lCPI0_1@PAGE
Lloh3:
	ldr	d1, [x11, lCPI0_1@PAGEOFF]
Lloh4:
	adrp	x11, lCPI0_2@PAGE
Lloh5:
	ldr	d2, [x11, lCPI0_2@PAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9], #4
	lsr	w12, w11, #5
	lsr	w13, w11, #11
	ubfx	w14, w11, #11, #5
	fmov	s3, w11
	mov.s	v3[1], w12
	and.8b	v3, v3, v0
	ushl.2s	v4, v3, v1
	ushl.2s	v3, v3, v2
	orr.8b	v3, v4, v3
	str	d3, [x8]
	ubfx	w11, w13, #2, #3
	bfi	w11, w14, #3, #5
	str	w11, [x8, #8]
	add	x8, x8, #12
	subs	w10, w10, #1
	b.ne	LBB0_8
LBB0_9:
	ret
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dump_line_565_to_24
.subsections_via_symbols
