	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function planarToNv12Wrapper
_planarToNv12Wrapper:                   ## @planarToNv12Wrapper
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	16(%rbp), %rsi
	movl	4(%rsi), %eax
	movq	%rsi, %rbx
	imull	%ecx, %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	movslq	%esi, %r14
	shlq	$2, %r14
	addq	8(%r9), %r14
	movq	(%r13), %rdi
	movl	(%rdx), %esi
	movl	12(%r12), %r8d
	movq	(%r9), %r9
	movl	(%rbx), %eax
	subq	$8, %rsp
	movl	%ecx, %edx
	movl	%r15d, %ecx
	pushq	%rax
	callq	_copyPlane
	addq	$16, %rsp
	movq	(%r12), %rax
	movq	_AV_PIX_FMT_NV12@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	$2, %eax
	subq	%rdx, %rax
	movq	(%r13,%rax,8), %rdi
	movq	8(%r13,%rdx,8), %rsi
	movl	8(%r12), %ecx
	leal	1(%r15), %ebx
	shrl	$31, %ebx
	leal	(%r15,%rbx), %r8d
	incl	%r8d
	sarl	%r8d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx,%rax,4), %r9d
	movl	4(%rbx,%rdx,4), %eax
	movq	16(%rbp), %rdx
	movl	4(%rdx), %ebx
	movq	%r14, %rdx
	pushq	%rbx
	pushq	%rax
	callq	_interleaveBytes
	addq	$16, %rsp
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_NV12,8,3            ## @AV_PIX_FMT_NV12
	.no_dead_strip	_planarToNv12Wrapper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function planarToNv12Wrapper
_planarToNv12Wrapper:                   ; @planarToNv12Wrapper
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x6
	mov	x20, x4
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldp	w6, w8, [x6]
	mul	w8, w8, w3
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	ldp	x5, x9, [x5]
	add	x24, x9, w8, sxtw #2
	ldr	x0, [x1]
	ldr	w1, [x2]
	ldr	w4, [x23, #12]
	mov	x2, x3
	mov	x3, x20
	bl	_copyPlane
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _AV_PIX_FMT_NV12@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PIX_FMT_NV12@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #1
	cinc	x9, x8, ne
	cinc	x8, x8, eq
	ldr	x0, [x22, x9, lsl #3]
	ldr	x1, [x22, x8, lsl #3]
	ldr	w3, [x23, #8]
	add	w10, w20, #1
	add	w11, w20, #2
	cmp	w10, #0
	csinc	w10, w11, w20, lt
	asr	w4, w10, #1
	ldr	w5, [x21, x9, lsl #2]
	ldr	w6, [x21, x8, lsl #2]
	ldr	w7, [x19, #4]
	mov	x2, x24
	bl	_interleaveBytes
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_NV12,8,3            ; @AV_PIX_FMT_NV12
	.no_dead_strip	_planarToNv12Wrapper
.subsections_via_symbols
