	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_audio_data_init             ## -- Begin function ff_audio_data_init
	.p2align	4, 0x90
_ff_audio_data_init:                    ## @ff_audio_data_init
	.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, %r12d
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r15d
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	24(%rbp), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	16(%rbp), %r13d
	xorl	%esi, %esi
	movl	$88, %edx
	callq	_memset
	movq	_audio_data_class@GOTPCREL(%rip), %rax
	movq	%rax, 80(%rbx)
	testl	%r15d, %r15d
	jle	LBB0_2
## %bb.1:
	movq	_AVRESAMPLE_MAX_CHANNELS@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jl	LBB0_2
## %bb.5:
	movl	%r12d, %edi
	callq	_av_get_bytes_per_sample
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_ff_sample_fmt_is_planar
	testq	%rax, %rax
	movl	$1, %ecx
	movl	%r15d, %edx
	cmovel	%ecx, %edx
	movq	%rax, 72(%rbx)
	movl	%edx, 4(%rbx)
	cmovel	%r15d, %ecx
	imull	(%rbx), %ecx
	movl	%ecx, 8(%rbx)
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	64(%rbx), %rsi
	movq	%rax, (%rsi,%rcx,8)
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	LBB0_8
## %bb.11:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmovel	%ecx, %eax
	movl	%eax, 12(%rbx)
	movl	%ecx, 16(%rbx)
	movl	%r12d, 20(%rbx)
	movl	%r15d, 24(%rbx)
	movl	%r15d, 28(%rbx)
	movl	%r13d, 32(%rbx)
	movq	$0, 56(%rbx)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	leaq	L_.str.3(%rip), %rax
	cmovneq	%rcx, %rax
	movq	%rax, 40(%rbx)
	movq	%rbx, %rdi
	callq	_calc_ptr_alignment
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cltd
	idivl	8(%rbx)
	movl	%eax, 48(%rbx)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	jmp	LBB0_3
LBB0_6:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_4
LBB0_9:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
LBB0_3:
	xorl	%eax, %eax
	callq	_av_log
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_audio_data_class,4,2           ## @audio_data_class
	.comm	_AVRESAMPLE_MAX_CHANNELS,4,2    ## @AVRESAMPLE_MAX_CHANNELS
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid channel count: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"invalid sample format\n"

L_.str.2:                               ## @.str.2
	.asciz	"invalid NULL pointer for src[%d]\n"

L_.str.3:                               ## @.str.3
	.asciz	"{no name}"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_audio_data_init             ; -- Begin function ff_audio_data_init
	.p2align	2
_ff_audio_data_init:                    ; @ff_audio_data_init
	.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	x21, x7
	mov	x23, x6
	mov	x24, x5
	mov	x25, x4
	mov	x22, x3
	mov	x20, x2
	mov	x26, x1
	mov	x19, x0
	mov	w1, #0
	mov	w2, #88
	bl	_memset
Lloh0:
	adrp	x8, _audio_data_class@GOTPAGE
Lloh1:
	ldr	x8, [x8, _audio_data_class@GOTPAGEOFF]
	str	x8, [x19, #80]
	cmp	w22, #1
	b.lt	LBB0_7
; %bb.1:
Lloh2:
	adrp	x8, _AVRESAMPLE_MAX_CHANNELS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVRESAMPLE_MAX_CHANNELS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w22
	b.lt	LBB0_7
; %bb.2:
	mov	x0, x24
	bl	_av_get_bytes_per_sample
	str	w0, [x19]
	cbz	w0, LBB0_8
; %bb.3:
	mov	x0, x24
	mov	x1, x22
	bl	_ff_sample_fmt_is_planar
	mov	x8, #0
	str	x0, [x19, #72]
	cmp	x0, #0
	csinc	w9, w22, wzr, ne
	ldr	w10, [x19]
	csinc	w11, w22, wzr, eq
	mul	w10, w10, w11
	stp	w9, w10, [x19, #4]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x26, x8, lsl #3]
	cbz	x10, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [x19, #64]
	str	x10, [x11, x8, lsl #3]
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.6:
	cmp	w23, #0
	csel	w8, w25, wzr, eq
	stp	w8, w25, [x19, #12]
	stp	w24, w22, [x19, #20]
	stp	w22, w23, [x19, #28]
	str	xzr, [x19, #56]
Lloh5:
	adrp	x8, l_.str.3@PAGE
Lloh6:
	add	x8, x8, l_.str.3@PAGEOFF
	cmp	x21, #0
	csel	x8, x8, x21, eq
	str	x8, [x19, #40]
	mov	x0, x19
	bl	_calc_ptr_alignment
	ldr	w8, [x19, #8]
	sdiv	w8, w20, w8
	str	w8, [x19, #48]
	mov	w0, #0
	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
LBB0_7:
Lloh7:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	str	x22, [sp]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_10
LBB0_8:
Lloh12:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh17:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh20:
	adrp	x2, l_.str.2@PAGE
Lloh21:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_av_log
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	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
	b	_AVERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_audio_data_class,4,2           ; @audio_data_class
	.comm	_AVRESAMPLE_MAX_CHANNELS,4,2    ; @AVRESAMPLE_MAX_CHANNELS
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid channel count: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"invalid sample format\n"

l_.str.2:                               ; @.str.2
	.asciz	"invalid NULL pointer for src[%d]\n"

l_.str.3:                               ; @.str.3
	.asciz	"{no name}"

.subsections_via_symbols
