	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_audio_fifo_alloc            ## -- Begin function av_audio_fifo_alloc
	.p2align	4, 0x90
_av_audio_fifo_alloc:                   ## @av_audio_fifo_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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%edi, %r12d
	leaq	-44(%rbp), %rdi
	movl	%r12d, %ecx
	movl	$1, %r8d
	callq	_av_samples_get_buffer_size
	testq	%rax, %rax
	js	LBB0_8
## %bb.1:
	movl	$32, %edi
	callq	_av_mallocz
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r13
	movl	%r15d, (%rax)
	movl	%r12d, 4(%rax)
	movl	-44(%rbp), %eax
	cltd
	idivl	%r14d
	movl	%eax, 8(%r13)
	movl	%r12d, %edi
	callq	_av_sample_fmt_is_planar
	testq	%rax, %rax
	movl	$1, %edi
	cmovnel	%r15d, %edi
	movl	%edi, 12(%r13)
	movl	$4, %esi
	callq	_av_mallocz_array
	movq	%rax, 24(%r13)
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	cmpl	$0, 12(%r13)
	jle	LBB0_10
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi
	callq	_av_fifo_alloc
	movq	24(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movslq	12(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_10:
	movl	%r14d, 16(%r13)
	jmp	LBB0_9
LBB0_7:
	movq	%r13, %rdi
	callq	_av_audio_fifo_free
LBB0_8:
	xorl	%r13d, %r13d
LBB0_9:
	movq	%r13, %rax
	addq	$8, %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_audio_fifo_alloc            ; -- Begin function av_audio_fifo_alloc
	.p2align	2
_av_audio_fifo_alloc:                   ; @av_audio_fifo_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	add	x0, sp, #12
	mov	x3, x22
	mov	w4, #1
	bl	_av_samples_get_buffer_size
	tbnz	x0, #63, LBB0_9
; %bb.1:
	mov	w0, #32
	bl	_av_mallocz
	mov	x20, x0
	cbz	x0, LBB0_10
; %bb.2:
	stp	w21, w22, [x20]
	ldr	w8, [sp, #12]
	sdiv	w8, w8, w19
	str	w8, [x20, #8]
	mov	x0, x22
	bl	_av_sample_fmt_is_planar
	cmp	x0, #0
	csinc	w0, w21, wzr, ne
	str	w0, [x20, #12]
	mov	w1, #4
	bl	_av_mallocz_array
	str	x0, [x20, #24]
	cbz	x0, LBB0_8
; %bb.3:
	ldr	w8, [x20, #12]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [sp, #12]
	bl	_av_fifo_alloc
	ldr	x8, [x20, #24]
	str	w0, [x8, x21, lsl #2]
	cbz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20, #12]
	cmp	x21, x8
	b.lt	LBB0_5
LBB0_7:
	str	w19, [x20, #16]
	b	LBB0_10
LBB0_8:
	mov	x0, x20
	bl	_av_audio_fifo_free
LBB0_9:
	mov	x20, #0
LBB0_10:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
