	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function planar422p_to_yuv_packed
_planar422p_to_yuv_packed:              ## @planar422p_to_yuv_packed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	imull	%ecx, %edx
	testl	%edx, %edx
	je	LBB0_3
## %bb.1:
	movslq	%edx, %r9
	leaq	(%rdi,%r9), %r14
	addq	%r9, %r9
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cltq
	addq	%r14, %rax
	xorl	%r11d, %r11d
	movq	_V4L2_PIX_FMT_YUYV@GOTPCREL(%rip), %r10
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	cmpl	%r8d, (%r10)
	sete	%dl
	setne	%bl
	movq	%r14, %rcx
	cmoveq	%rdi, %rcx
	addq	%r14, %rbx
	addq	%rdi, %rdx
	movzbl	(%rcx), %ecx
	movb	%cl, (%rsi,%r11)
	xorl	%edi, %edi
	xorl	%r14d, %r14d
	cmpl	%r8d, (%r10)
	setne	%dil
	sete	%r14b
	movq	%rdx, %rcx
	cmoveq	%rbx, %rcx
	addq	%rbx, %r14
	addq	%rdx, %rdi
	movzbl	(%rcx), %ecx
	movq	%r11, %rdx
	orq	$1, %rdx
	movb	%cl, (%rsi,%rdx)
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	cmpl	%r8d, (%r10)
	sete	%dl
	setne	%bl
	movq	%rax, %rcx
	cmoveq	%rdi, %rcx
	addq	%rax, %rbx
	addq	%rdi, %rdx
	movzbl	(%rcx), %eax
	movq	%r11, %rcx
	orq	$2, %rcx
	movb	%al, (%rsi,%rcx)
	xorl	%edi, %edi
	xorl	%eax, %eax
	cmpl	%r8d, (%r10)
	setne	%dil
	movq	%rdx, %rcx
	cmoveq	%rbx, %rcx
	sete	%al
	addq	%rbx, %rax
	addq	%rdx, %rdi
	movzbl	(%rcx), %ecx
	movq	%r11, %rdx
	orq	$3, %rdx
	movb	%cl, (%rsi,%rdx)
	addl	$4, %r11d
	cmpq	%r11, %r9
	ja	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_PIX_FMT_YUYV,4,2          ## @V4L2_PIX_FMT_YUYV
	.no_dead_strip	_planar422p_to_yuv_packed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function planar422p_to_yuv_packed
_planar422p_to_yuv_packed:              ; @planar422p_to_yuv_packed
	.cfi_startproc
; %bb.0:
	mul	w9, w3, w2
	cbz	w9, LBB0_3
; %bb.1:
	mov	x8, #0
	sxtw	x11, w9
	sbfiz	x9, x9, #1, #32
	add	x10, x0, x11
	cmp	w11, #0
	cinc	w11, w11, lt
	asr	w11, w11, #1
	add	x12, x10, w11, sxtw
Lloh0:
	adrp	x11, _V4L2_PIX_FMT_YUYV@GOTPAGE
Lloh1:
	ldr	x11, [x11, _V4L2_PIX_FMT_YUYV@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x11]
	cmp	w13, w4
	cinc	x13, x10, ne
	csel	x10, x0, x10, eq
	ldrb	w10, [x10]
	strb	w10, [x1, x8]
	cinc	x14, x0, eq
	ldr	w10, [x11]
	cmp	w10, w4
	cinc	x10, x13, eq
	cinc	x15, x14, ne
	csel	x13, x13, x14, eq
	ldrb	w13, [x13]
	orr	x14, x8, #0x1
	strb	w13, [x1, x14]
	ldr	w13, [x11]
	cmp	w13, w4
	cinc	x13, x12, ne
	csel	x12, x15, x12, eq
	ldrb	w12, [x12]
	orr	x14, x8, #0x2
	strb	w12, [x1, x14]
	cinc	x14, x15, eq
	ldr	w12, [x11]
	cmp	w12, w4
	cinc	x12, x13, eq
	cinc	x0, x14, ne
	csel	x13, x13, x14, eq
	ldrb	w13, [x13]
	orr	x14, x8, #0x3
	strb	w13, [x1, x14]
	add	w8, w8, #4
	cmp	x9, x8
	b.hi	LBB0_2
LBB0_3:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_PIX_FMT_YUYV,4,2          ; @V4L2_PIX_FMT_YUYV
	.no_dead_strip	_planar422p_to_yuv_packed
.subsections_via_symbols
