	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_samples_fill_arrays         ## -- Begin function av_samples_fill_arrays
	.p2align	4, 0x90
_av_samples_fill_arrays:                ## @av_samples_fill_arrays
	.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, %r14d
	movl	%r8d, %r13d
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movl	%r9d, %edi
	callq	_av_sample_fmt_is_planar
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leaq	-44(%rbp), %rdi
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	movl	16(%rbp), %r8d
	callq	_av_samples_get_buffer_size
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	testl	%eax, %eax
	js	LBB0_12
## %bb.1:
	movq	%rbx, (%r15)
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_10
## %bb.2:
	cmpl	$2, %ecx
	jl	LBB0_10
## %bb.3:
	movslq	-44(%rbp), %r9
	movl	%ecx, %ecx
	leaq	-1(%rcx), %rdi
	addq	$-2, %rcx
	movl	%edi, %r10d
	andl	$7, %r10d
	movl	$1, %esi
	cmpq	$7, %rcx
	jb	LBB0_7
## %bb.4:
	andq	$-8, %rdi
	movq	%r9, %r8
	shlq	$5, %r8
	leaq	(,%r9,4), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdx
	addq	%rcx, %rbx
	movq	%rbx, 8(%r15,%rsi,8)
	addq	%rcx, %rbx
	movq	%rbx, 16(%r15,%rsi,8)
	addq	%rcx, %rbx
	movq	%rbx, 24(%r15,%rsi,8)
	addq	%rcx, %rbx
	movq	%rbx, 32(%r15,%rsi,8)
	addq	%rcx, %rbx
	movq	%rbx, 40(%r15,%rsi,8)
	addq	%rcx, %rbx
	movq	%rbx, 48(%r15,%rsi,8)
	addq	%rcx, %rbx
	movq	%rbx, 56(%r15,%rsi,8)
	addq	%rcx, %rbx
	movq	%rbx, 64(%r15,%rsi,8)
	addq	$8, %rsi
	cmpq	%rsi, %rdi
	jne	LBB0_5
## %bb.6:
	addq	%r8, %rdx
	incq	%rsi
	movq	%rdx, %rbx
LBB0_7:
	testq	%r10, %r10
	je	LBB0_10
## %bb.8:
	leaq	(%rbx,%r9,4), %rcx
	shlq	$2, %r9
	leaq	(%r15,%rsi,8), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, (%rdx,%rsi,8)
	incq	%rsi
	addq	%r9, %rcx
	cmpq	%rsi, %r10
	jne	LBB0_9
LBB0_10:
	testq	%r12, %r12
	je	LBB0_12
## %bb.11:
	movl	-44(%rbp), %ecx
	movl	%ecx, (%r12)
LBB0_12:
	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_fill_arrays         ; -- Begin function av_samples_fill_arrays
	.p2align	2
_av_samples_fill_arrays:                ; @av_samples_fill_arrays
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x24, x6
	mov	x25, x5
	mov	x26, x4
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x5
	bl	_av_sample_fmt_is_planar
	mov	x23, x0
	add	x0, sp, #12
	mov	x1, x22
	mov	x2, x26
	mov	x3, x25
	mov	x4, x24
	bl	_av_samples_get_buffer_size
	tbnz	w0, #31, LBB0_7
; %bb.1:
	str	x21, [x20]
	cbz	w23, LBB0_5
; %bb.2:
	cmp	w22, #2
	b.lt	LBB0_5
; %bb.3:
	ldrsw	x9, [sp, #12]
	mov	w8, w22
	lsl	x9, x9, #2
	add	x10, x21, x9
	mov	w11, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	x10, [x20, x11, lsl #3]
	add	x11, x11, #1
	add	x10, x10, x9
	cmp	x11, x8
	b.lo	LBB0_4
LBB0_5:
	cbz	x19, LBB0_7
; %bb.6:
	ldr	w8, [sp, #12]
	str	w8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
