	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function planar_rgb_to_a
_planar_rgb_to_a:                       ## @planar_rgb_to_a
	.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
	jle	LBB0_14
## %bb.1:
	movq	24(%rsi), %rax
	movl	%edx, %r9d
	xorl	%esi, %esi
	cmpl	$8, %edx
	jb	LBB0_10
## %bb.2:
	movq	%rdi, %rcx
	subq	%rax, %rcx
	cmpq	$32, %rcx
	jb	LBB0_10
## %bb.3:
	movl	%r9d, %esi
	andl	$-8, %esi
	leaq	-8(%rsi), %rcx
	movq	%rcx, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:
	movq	%r8, %rcx
	andq	$-2, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rax,%rdx,4), %xmm0
	movdqu	16(%rax,%rdx,4), %xmm1
	pslld	$6, %xmm0
	pslld	$6, %xmm1
	movdqu	%xmm0, (%rdi,%rdx,4)
	movdqu	%xmm1, 16(%rdi,%rdx,4)
	movdqu	32(%rax,%rdx,4), %xmm0
	movdqu	48(%rax,%rdx,4), %xmm1
	pslld	$6, %xmm0
	pslld	$6, %xmm1
	movdqu	%xmm0, 32(%rdi,%rdx,4)
	movdqu	%xmm1, 48(%rdi,%rdx,4)
	addq	$16, %rdx
	addq	$-2, %rcx
	jne	LBB0_6
## %bb.7:
	testb	$1, %r8b
	je	LBB0_9
LBB0_8:
	movdqu	(%rax,%rdx,4), %xmm0
	movdqu	16(%rax,%rdx,4), %xmm1
	pslld	$6, %xmm0
	pslld	$6, %xmm1
	movdqu	%xmm0, (%rdi,%rdx,4)
	movdqu	%xmm1, 16(%rdi,%rdx,4)
LBB0_9:
	cmpq	%r9, %rsi
	je	LBB0_14
LBB0_10:
	movq	%rsi, %r8
	notq	%r8
	addq	%r9, %r8
	movq	%r9, %rdx
	andq	$3, %rdx
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rsi,4), %ecx
	shll	$6, %ecx
	movl	%ecx, (%rdi,%rsi,4)
	incq	%rsi
	decq	%rdx
	jne	LBB0_11
LBB0_12:
	cmpq	$3, %r8
	jb	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rsi,4), %ecx
	shll	$6, %ecx
	movl	%ecx, (%rdi,%rsi,4)
	movl	4(%rax,%rsi,4), %ecx
	shll	$6, %ecx
	movl	%ecx, 4(%rdi,%rsi,4)
	movl	8(%rax,%rsi,4), %ecx
	shll	$6, %ecx
	movl	%ecx, 8(%rdi,%rsi,4)
	movl	12(%rax,%rsi,4), %ecx
	shll	$6, %ecx
	movl	%ecx, 12(%rdi,%rsi,4)
	addq	$4, %rsi
	cmpq	%rsi, %r9
	jne	LBB0_13
LBB0_14:
	popq	%rbp
	retq
LBB0_4:
	xorl	%edx, %edx
	testb	$1, %r8b
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_planar_rgb_to_a
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function planar_rgb_to_a
_planar_rgb_to_a:                       ; @planar_rgb_to_a
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x8, #0
	ldr	x10, [x1, #24]
	mov	w9, w2
	cmp	w2, #16
	b.lo	LBB0_6
; %bb.2:
	sub	x11, x0, x10
	cmp	x11, #64
	b.lo	LBB0_6
; %bb.3:
	and	x8, x9, #0xfffffff0
	add	x11, x0, #32
	add	x12, x10, #32
	mov	x13, x8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	shl.4s	v0, v0, #6
	shl.4s	v1, v1, #6
	shl.4s	v2, v2, #6
	shl.4s	v3, v3, #6
	stp	q0, q1, [x11, #-32]
	stp	q2, q3, [x11], #64
	subs	x13, x13, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x8, x9
	b.eq	LBB0_8
LBB0_6:
	lsl	x12, x8, #2
	add	x11, x0, x12
	add	x10, x10, x12
	sub	x8, x9, x8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x10], #4
	lsl	w9, w9, #6
	str	w9, [x11], #4
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_planar_rgb_to_a
.subsections_via_symbols
