	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function conv_argb8888_rgba4444
LCPI0_0:
	.long	3840                            ## 0xf00
	.long	3840                            ## 0xf00
	.long	3840                            ## 0xf00
	.long	3840                            ## 0xf00
LCPI0_1:
	.long	15                              ## 0xf
	.long	15                              ## 0xf
	.long	15                              ## 0xf
	.long	15                              ## 0xf
LCPI0_2:
	.long	61440                           ## 0xf000
	.long	61440                           ## 0xf000
	.long	61440                           ## 0xf000
	.long	61440                           ## 0xf000
LCPI0_3:
	.long	240                             ## 0xf0
	.long	240                             ## 0xf0
	.long	240                             ## 0xf0
	.long	240                             ## 0xf0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_conv_argb8888_rgba4444
	.p2align	4, 0x90
_conv_argb8888_rgba4444:                ## @conv_argb8888_rgba4444
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.1:
	sarl	$2, %r8d
	movslq	%r8d, %r8
	sarl	%r9d
	movslq	%r9d, %r9
	movl	%edx, %r15d
	shlq	$2, %r8
	shlq	$2, %r9
	movl	%r15d, %eax
	andl	$-8, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(,%r15,4), %r11
	andq	$-32, %r11
	xorl	%r14d, %r14d
	movdqa	LCPI0_0(%rip), %xmm8            ## xmm8 = [3840,3840,3840,3840]
	movdqa	LCPI0_1(%rip), %xmm9            ## xmm9 = [15,15,15,15]
	movdqa	LCPI0_2(%rip), %xmm10           ## xmm10 = [61440,61440,61440,61440]
	movdqa	LCPI0_3(%rip), %xmm11           ## xmm11 = [240,240,240,240]
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	addq	%r9, %r10
	addq	%r8, %r12
	cmpl	%ecx, %r14d
	je	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
	testl	%edx, %edx
	jle	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$8, %edx
	jb	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r9, %rbx
	imulq	%r14, %rbx
	addq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	%r8, %r13
	imulq	%r14, %r13
	addq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	subq	%rbx, %r13
	movl	$0, %ebx
	cmpq	$32, %r13
	jb	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	(%r10,%rbx), %xmm4
	movdqu	16(%r10,%rbx), %xmm5
	movdqa	%xmm4, %xmm6
	pand	%xmm8, %xmm6
	movdqa	%xmm5, %xmm7
	pand	%xmm8, %xmm7
	movdqa	%xmm4, %xmm0
	psrld	$24, %xmm0
	movdqa	%xmm5, %xmm1
	psrld	$24, %xmm1
	pand	%xmm9, %xmm0
	pand	%xmm9, %xmm1
	movdqa	%xmm4, %xmm2
	psrld	$4, %xmm2
	movdqa	%xmm5, %xmm3
	psrld	$4, %xmm3
	pand	%xmm10, %xmm2
	por	%xmm6, %xmm2
	pand	%xmm10, %xmm3
	por	%xmm7, %xmm3
	pslld	$4, %xmm4
	pslld	$4, %xmm5
	pand	%xmm11, %xmm4
	por	%xmm0, %xmm4
	por	%xmm2, %xmm4
	pand	%xmm11, %xmm5
	por	%xmm1, %xmm5
	por	%xmm3, %xmm5
	movdqu	%xmm4, (%r12,%rbx)
	movdqu	%xmm5, 16(%r12,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %r11
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rbx
	cmpq	%r15, %rax
	jne	LBB0_9
	jmp	LBB0_10
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r10,%rbx,4), %esi
	movl	%esi, %r13d
	andl	$3840, %r13d                    ## imm = 0xF00
	movl	%esi, %edi
	shrl	$24, %edi
	andl	$15, %edi
	movl	%esi, %eax
	shrl	$4, %eax
	andl	$61440, %eax                    ## imm = 0xF000
	orl	%r13d, %eax
	shll	$4, %esi
	movzbl	%sil, %esi
	orl	%eax, %esi
	orl	%edi, %esi
	movl	%esi, (%r12,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_9
	jmp	LBB0_10
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_conv_argb8888_rgba4444         ; -- Begin function conv_argb8888_rgba4444
	.p2align	2
_conv_argb8888_rgba4444:                ; @conv_argb8888_rgba4444
	.cfi_startproc
; %bb.0:
	cmp	w3, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x8, #0
	asr	w10, w4, #2
	asr	w11, w5, #1
	mov	w9, w2
	sbfiz	x10, x10, #2, #32
	sbfiz	x11, x11, #2, #32
	and	x12, x9, #0xfffffff0
	lsl	x13, x9, #2
	and	x13, x13, #0x3ffffffc0
	movi.4s	v0, #15, lsl #8
	movi.4s	v1, #15
	movi.4s	v2, #240, lsl #8
	movi.4s	v3, #240
	mov	x14, x1
	mov	x15, x0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	add	x15, x15, x10
	add	x14, x14, x11
	cmp	w8, w3
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
	cmp	w2, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x16, #0
	cmp	w2, #16
	b.lo	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x17, x11, x8, x1
	madd	x4, x10, x8, x0
	sub	x17, x4, x17
	cmp	x17, #64
	b.lo	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x16, #0
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x17, x14, x16
	ldp	q4, q5, [x17]
	and.16b	v6, v4, v0
	and.16b	v7, v5, v0
	ldp	q16, q17, [x17, #32]
	and.16b	v18, v16, v0
	and.16b	v19, v17, v0
	ushr.4s	v20, v4, #24
	ushr.4s	v21, v5, #24
	ushr.4s	v22, v16, #24
	ushr.4s	v23, v17, #24
	and.16b	v20, v20, v1
	and.16b	v21, v21, v1
	and.16b	v22, v22, v1
	and.16b	v23, v23, v1
	ushr.4s	v24, v4, #4
	ushr.4s	v25, v5, #4
	ushr.4s	v26, v16, #4
	ushr.4s	v27, v17, #4
	and.16b	v24, v24, v2
	and.16b	v25, v25, v2
	and.16b	v26, v26, v2
	and.16b	v27, v27, v2
	orr.16b	v6, v24, v6
	orr.16b	v7, v25, v7
	orr.16b	v18, v26, v18
	orr.16b	v19, v27, v19
	shl.4s	v4, v4, #4
	shl.4s	v5, v5, #4
	shl.4s	v16, v16, #4
	shl.4s	v17, v17, #4
	and.16b	v4, v4, v3
	and.16b	v5, v5, v3
	and.16b	v16, v16, v3
	and.16b	v17, v17, v3
	orr.16b	v4, v6, v4
	orr.16b	v5, v7, v5
	orr.16b	v6, v18, v16
	orr.16b	v7, v19, v17
	orr.16b	v4, v4, v20
	orr.16b	v5, v5, v21
	orr.16b	v6, v6, v22
	orr.16b	v7, v7, v23
	add	x17, x15, x16
	stp	q4, q5, [x17]
	stp	q6, q7, [x17, #32]
	add	x16, x16, #64
	cmp	x13, x16
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x16, x12
	cmp	x12, x9
	b.eq	LBB0_2
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x17, x16, #2
	ldr	w4, [x14, x17]
	lsr	w5, w4, #4
	and	w5, w5, #0xf000
	bfxil	w5, w4, #0, #12
	bfi	w5, w4, #4, #4
	bfxil	w5, w4, #24, #4
	str	w5, [x15, x17]
	add	x16, x16, #1
	cmp	x9, x16
	b.ne	LBB0_9
	b	LBB0_2
LBB0_10:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
