	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function frame_copy_audio
_frame_copy_audio:                      ## @frame_copy_audio
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	24(%rdi), %edi
	callq	_av_sample_fmt_is_planar
	movl	(%r12), %r14d
	testl	%eax, %eax
	movl	$1, %ebx
	cmovnel	%r14d, %ebx
	movq	8(%r12), %rax
	cmpq	8(%r15), %rax
	jne	LBB0_10
## %bb.1:
	cmpl	(%r15), %r14d
	jne	LBB0_10
## %bb.2:
	movq	16(%r12), %rax
	cmpq	16(%r15), %rax
	jne	LBB0_10
## %bb.3:
	movq	%r15, %rdi
	callq	_CHECK_CHANNELS_CONSISTENCY
	movq	32(%r12), %rdi
	testl	%ebx, %ebx
	jle	LBB0_4
## %bb.6:
	movl	%ebx, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rdi,%rcx,4)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	32(%r15), %rsi
	cmpl	$0, (%rsi,%rcx,4)
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_8
	jmp	LBB0_5
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	movq	32(%r15), %rsi
LBB0_5:
	movq	8(%r12), %r8
	movl	24(%r12), %eax
	movl	%eax, (%rsp)
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%r14d, %r9d
	callq	_av_samples_copy
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_frame_copy_audio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function frame_copy_audio
_frame_copy_audio:                      ; @frame_copy_audio
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x0, #24]
	bl	_av_sample_fmt_is_planar
	ldr	w19, [x20]
	cmp	w0, #0
	csinc	w22, w19, wzr, ne
	ldr	x8, [x20, #8]
	ldr	x9, [x21, #8]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.1:
	ldr	w8, [x21]
	cmp	w19, w8
	b.ne	LBB0_8
; %bb.2:
	ldr	x8, [x20, #16]
	ldr	x9, [x21, #16]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.3:
	mov	x0, x21
	bl	_CHECK_CHANNELS_CONSISTENCY
	ldr	x0, [x20, #32]
	cmp	w22, #0
	b.le	LBB0_9
; %bb.4:
	mov	x8, #0
	lsl	x9, x22, #2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x0, x8]
	cbz	w10, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x21, #32]
	ldr	w10, [x1, x8]
	cbz	w10, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #4
	cmp	x9, x8
	b.ne	LBB0_5
	b	LBB0_10
LBB0_8:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_9:
	ldr	x1, [x21, #32]
LBB0_10:
	ldr	x4, [x20, #8]
	ldr	w6, [x20, #24]
	mov	w2, #0
	mov	w3, #0
	mov	x5, x19
	bl	_av_samples_copy
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_frame_copy_audio
.subsections_via_symbols
