	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_samples_copy                ## -- Begin function av_samples_copy
	.p2align	4, 0x90
_av_samples_copy:                       ## @av_samples_copy
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movl	%r8d, %r14d
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	16(%rbp), %edi
	callq	_av_sample_fmt_is_planar
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	16(%rbp), %edi
	callq	_av_get_bytes_per_sample
	movl	%ebx, %ecx
	movq	(%r12), %rdx
	movq	(%r15), %r8
	movq	%rdx, %rsi
	subq	%r8, %rsi
	negq	%rsi
	movq	%rdx, %rdi
	subq	%r8, %rdi
	cmovbq	%rsi, %rdi
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movl	$1, %esi
	movl	%r13d, %ebx
	cmovel	%esi, %ebx
	cmovel	%r13d, %esi
	imull	%eax, %esi
	imull	%esi, %r14d
	imull	%esi, %ecx
	imull	-48(%rbp), %esi                 ## 4-byte Folded Reload
	sarq	$2, %rdi
	movslq	%r14d, %rax
	cmpq	%rax, %rdi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jge	LBB0_1
## %bb.5:
	testl	%ebx, %ebx
	jle	LBB0_9
## %bb.6:
	movslq	%ecx, %r13
	movslq	%esi, %r12
	leaq	(%rdx,%r13,4), %rdi
	leaq	(%r8,%r12,4), %rsi
	movl	%r14d, %edx
	callq	_memmove
	cmpl	$1, %ebx
	je	LBB0_9
## %bb.7:
	movl	%ebx, %eax
	movl	%ebx, %r15d
	movl	$1, %ebx
	shlq	$2, %r13
	shlq	$2, %r12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rdi
	addq	%r13, %rdi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rsi
	addq	%r12, %rsi
	movl	%r14d, %edx
	callq	_memmove
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_8
	jmp	LBB0_9
LBB0_1:
	testl	%ebx, %ebx
	jle	LBB0_9
## %bb.2:
	movslq	%ecx, %r13
	movslq	%esi, %r12
	leaq	(%rdx,%r13,4), %rdi
	leaq	(%r8,%r12,4), %rsi
	movl	%r14d, %edx
	callq	_memcpy
	cmpl	$1, %ebx
	je	LBB0_9
## %bb.3:
	movl	%ebx, %eax
	movl	%ebx, %ebx
	movl	$1, %r15d
	shlq	$2, %r13
	shlq	$2, %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %rdi
	addq	%r13, %rdi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %rsi
	addq	%r12, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	incq	%r15
	cmpq	%r15, %rbx
	jne	LBB0_4
LBB0_9:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_samples_copy                ; -- Begin function av_samples_copy
	.p2align	2
_av_samples_copy:                       ; @av_samples_copy
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x6
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x6
	bl	_av_sample_fmt_is_planar
	mov	x26, x0
	mov	x0, x19
	bl	_av_get_bytes_per_sample
	cmp	w26, #0
	csinc	w26, w22, wzr, ne
	csinc	w8, w22, wzr, eq
	mul	w8, w8, w0
	mul	w19, w8, w23
	mul	w23, w8, w25
	mul	w22, w8, w24
	ldr	x9, [x21]
	ldr	x8, [x20]
	sub	x10, x8, x9
	subs	x11, x9, x8
	csel	x10, x10, x11, lo
	sxtw	x11, w19
	cmp	x11, x10, asr #2
	b.le	LBB0_5
; %bb.1:
	cmp	w26, #1
	b.lt	LBB0_9
; %bb.2:
	add	x0, x9, w23, sxtw #2
	add	x1, x8, w22, sxtw #2
	mov	x2, x19
	bl	_memmove
	cmp	w26, #1
	b.eq	LBB0_9
; %bb.3:
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	sxtw	x23, w23
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	sxtw	x22, w22
	sub	x24, x26, #1
	add	x21, x21, #8
	add	x20, x20, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21], #8
	ldr	x9, [x20], #8
	add	x0, x8, x23, lsl #2
	add	x1, x9, x22, lsl #2
	mov	x2, x19
	bl	_memmove
	subs	x24, x24, #1
	b.ne	LBB0_4
	b	LBB0_9
LBB0_5:
	cmp	w26, #1
	b.lt	LBB0_9
; %bb.6:
	add	x0, x9, w23, sxtw #2
	add	x1, x8, w22, sxtw #2
	mov	x2, x19
	bl	_memcpy
	cmp	w26, #1
	b.eq	LBB0_9
; %bb.7:
	sxtw	x23, w23
	sxtw	x22, w22
	sub	x24, x26, #1
	add	x21, x21, #8
	add	x20, x20, #8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21], #8
	ldr	x9, [x20], #8
	add	x0, x8, x23, lsl #2
	add	x1, x9, x22, lsl #2
	mov	x2, x19
	bl	_memcpy
	subs	x24, x24, #1
	b.ne	LBB0_8
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
