	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_audio_data_alloc            ## -- Begin function ff_audio_data_alloc
	.p2align	4, 0x90
_ff_audio_data_alloc:                   ## @ff_audio_data_alloc
	.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
	xorl	%ebx, %ebx
	testl	%edi, %edi
	jle	LBB0_9
## %bb.1:
	movl	%edi, %r12d
	movq	_AVRESAMPLE_MAX_CHANNELS@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jl	LBB0_9
## %bb.2:
	movq	%rcx, %r15
	movl	%edx, %r13d
	movl	%esi, %r14d
	movl	$64, %edi
	callq	_av_mallocz
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %rbx
	movl	%r13d, %edi
	callq	_av_get_bytes_per_sample
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_ff_sample_fmt_is_planar
	testq	%rax, %rax
	movl	$1, %ecx
	movl	%r12d, %edx
	cmovel	%ecx, %edx
	movq	%rax, 56(%rbx)
	movl	%edx, 4(%rbx)
	cmovel	%r12d, %ecx
	imull	(%rbx), %ecx
	movl	%ecx, 8(%rbx)
	movq	_audio_data_class@GOTPCREL(%rip), %rax
	movq	%rax, 48(%rbx)
	movl	%r13d, 12(%rbx)
	movl	%r12d, 16(%rbx)
	movl	%r12d, 20(%rbx)
	movq	$0, 40(%rbx)
	movl	$1, 24(%rbx)
	testq	%r15, %r15
	leaq	L_.str(%rip), %rax
	cmovneq	%r15, %rax
	movq	%rax, 32(%rbx)
	movq	%rbx, %rdi
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.5:
	movl	%r14d, %esi
	callq	_ff_audio_data_realloc
	testl	%eax, %eax
	jns	LBB0_9
LBB0_6:
	movq	%rbx, %rdi
	callq	_av_free
LBB0_7:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	_calc_ptr_alignment
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_AVRESAMPLE_MAX_CHANNELS,4,2    ## @AVRESAMPLE_MAX_CHANNELS
	.comm	_audio_data_class,4,2           ## @audio_data_class
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.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_alloc            ; -- Begin function ff_audio_data_alloc
	.p2align	2
_ff_audio_data_alloc:                   ; @ff_audio_data_alloc
	.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, #0
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x8, _AVRESAMPLE_MAX_CHANNELS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVRESAMPLE_MAX_CHANNELS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.lt	LBB0_8
; %bb.2:
	mov	x21, x3
	mov	x23, x2
	mov	x20, x1
	mov	w0, #64
	bl	_av_mallocz
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.3:
	mov	x0, x23
	bl	_av_get_bytes_per_sample
	str	w0, [x19]
	cbz	w0, LBB0_6
; %bb.4:
	mov	x0, x23
	mov	x1, x22
	bl	_ff_sample_fmt_is_planar
	cmp	x0, #0
	ldr	w8, [x19]
	csinc	w9, w22, wzr, eq
	mul	w8, w8, w9
	csinc	w9, w22, wzr, ne
	stp	w9, w8, [x19, #4]
Lloh3:
	adrp	x8, _audio_data_class@GOTPAGE
Lloh4:
	ldr	x8, [x8, _audio_data_class@GOTPAGEOFF]
	stp	x8, x0, [x19, #48]
	stp	w23, w22, [x19, #12]
	mov	w8, #1
Lloh5:
	adrp	x9, l_.str@PAGE
Lloh6:
	add	x9, x9, l_.str@PAGEOFF
	stp	w22, w8, [x19, #20]
	cmp	x21, #0
	csel	x8, x9, x21, eq
	stp	x8, xzr, [x19, #32]
	mov	x0, x19
	cmp	w20, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x1, x20
	bl	_ff_audio_data_realloc
	tbz	w0, #31, LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_av_free
	mov	x19, #0
	b	LBB0_8
LBB0_7:
	bl	_calc_ptr_alignment
LBB0_8:
	mov	x0, x19
	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
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AVRESAMPLE_MAX_CHANNELS,4,2    ; @AVRESAMPLE_MAX_CHANNELS
	.comm	_audio_data_class,4,2           ; @audio_data_class
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"{no name}"

.subsections_via_symbols
