	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_planar_422
_calc_planar_422:                       ## @calc_planar_422
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rsi), %rax
	movl	(%rax), %r8d
	movl	4(%rax), %eax
	movl	%eax, (%rdx)
	movl	%eax, (%rcx)
	cmpq	$0, (%rdi)
	movq	(%rsi), %r9
	je	LBB0_2
## %bb.1:
	movq	8(%r9), %r10
	movq	%r10, 8(%rdx)
	movl	(%rdx), %edi
	movl	%edi, %esi
	shrl	$31, %esi
	addl	%edi, %esi
	sarl	%esi
	movslq	%esi, %rdi
	imull	%r8d, %esi
	movslq	%esi, %rsi
	addq	%r10, %rsi
	movq	%rsi, 16(%rdx)
	subq	%rdi, %rsi
	movq	%rsi, 24(%rdx)
	movq	16(%r9), %rdx
	movq	%rdx, 8(%rcx)
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	imull	%esi, %r8d
	movslq	%r8d, %rax
	addq	%rdx, %rax
	movq	%rax, 16(%rcx)
	movslq	%esi, %rdx
	subq	%rdx, %rax
	movq	%rax, 24(%rcx)
	jmp	LBB0_3
LBB0_2:
	movq	16(%r9), %rsi
	movq	%rsi, 16(%rcx)
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	movslq	%edi, %rax
	leaq	(%rsi,%rax), %rdi
	movq	%rdi, 24(%rcx)
	imull	%r8d, %eax
	cltq
	addq	%rsi, %rax
	movq	%rax, 8(%rcx)
	movq	8(%r9), %rax
	movq	%rax, 16(%rdx)
	movl	(%rdx), %ecx
	movl	%ecx, %esi
	shrl	$31, %esi
	addl	%ecx, %esi
	sarl	%esi
	movslq	%esi, %rcx
	leaq	(%rax,%rcx), %rsi
	movq	%rsi, 24(%rdx)
	imull	%r8d, %ecx
	movslq	%ecx, %rcx
	addq	%rax, %rcx
	movq	%rcx, 8(%rdx)
LBB0_3:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_calc_planar_422
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_planar_422
_calc_planar_422:                       ; @calc_planar_422
	.cfi_startproc
; %bb.0:
	ldp	x9, x10, [x1]
	ldp	w8, w10, [x10]
	str	w10, [x2]
	str	w10, [x3]
	ldr	x11, [x0]
	cbz	x11, LBB0_2
; %bb.1:
	ldr	w11, [x2]
	cmp	w11, #0
	cinc	w11, w11, lt
	asr	w11, w11, #1
	mul	w12, w11, w8
	ldp	x13, x9, [x9, #8]
	add	x12, x13, w12, sxtw
	stp	x13, x12, [x2, #8]
	sub	x11, x12, w11, sxtw
	str	x11, [x2, #24]
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w10, w10, #1
	mul	w8, w10, w8
	add	x8, x9, w8, sxtw
	stp	x9, x8, [x3, #8]
	sub	x8, x8, w10, sxtw
	str	x8, [x3, #24]
	mov	w0, #0
	ret
LBB0_2:
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w10, w10, #1
	ldp	x9, x11, [x9, #8]
	add	x12, x11, w10, sxtw
	stp	x11, x12, [x3, #16]
	mul	w10, w10, w8
	add	x10, x11, w10, sxtw
	str	x10, [x3, #8]
	ldr	w10, [x2]
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w10, w10, #1
	add	x11, x9, w10, sxtw
	stp	x9, x11, [x2, #16]
	mul	w8, w10, w8
	add	x8, x9, w8, sxtw
	str	x8, [x2, #8]
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_calc_planar_422
.subsections_via_symbols
