	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_default_get_audio_buffer    ## -- Begin function ff_default_get_audio_buffer
	.p2align	4, 0x90
_ff_default_get_audio_buffer:           ## @ff_default_get_audio_buffer
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	(%rdi), %r15d
	movl	12(%rdi), %edi
	callq	_av_get_channel_layout_nb_channels
	movl	$1, %edi
	cmpl	%eax, %r15d
	je	LBB0_2
## %bb.1:
	movl	12(%r12), %edi
	callq	_av_get_channel_layout_nb_channels
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
LBB0_2:
	callq	_av_assert0
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.3:
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	$0, -40(%rbp)
	movq	_AV_SAMPLE_FMT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	leaq	-40(%rbp), %r8
	callq	_ff_frame_pool_get_audio_config
	testq	%rax, %rax
	js	LBB0_10
## %bb.4:
	leaq	16(%r12), %rdi
	cmpl	%r15d, -48(%rbp)
	jne	LBB0_11
## %bb.5:
	cmpl	%r14d, -44(%rbp)
	jl	LBB0_11
## %bb.6:
	movl	-36(%rbp), %eax
	cmpl	4(%r12), %eax
	jne	LBB0_11
## %bb.7:
	movl	-40(%rbp), %eax
	movq	_BUFFER_ALIGN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.8:
	movq	(%rdi), %rax
	jmp	LBB0_12
LBB0_11:
	callq	_ff_frame_pool_uninit
LBB0_9:
	movq	_av_buffer_allocz@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r12), %ecx
	movq	_BUFFER_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_ff_frame_pool_audio_init
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_10
LBB0_12:
	movq	%rax, %rdi
	callq	_ff_frame_pool_get
	testq	%rax, %rax
	je	LBB0_10
## %bb.13:
	movq	%rax, %rbx
	movl	%r14d, (%rax)
	movl	12(%r12), %eax
	movl	%eax, 12(%rbx)
	movl	8(%r12), %eax
	movl	%eax, 8(%rbx)
	movl	4(%rbx), %edi
	movl	4(%r12), %r8d
	xorl	%esi, %esi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	callq	_av_samples_set_silence
	jmp	LBB0_14
LBB0_10:
	xorl	%ebx, %ebx
LBB0_14:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_av_buffer_allocz,4,2           ## @av_buffer_allocz
	.comm	_BUFFER_ALIGN,4,2               ## @BUFFER_ALIGN
	.comm	_AV_SAMPLE_FMT_NONE,4,2         ## @AV_SAMPLE_FMT_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_default_get_audio_buffer    ; -- Begin function ff_default_get_audio_buffer
	.p2align	2
_ff_default_get_audio_buffer:           ; @ff_default_get_audio_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	w20, [x0]
	ldr	w0, [x0, #12]
	bl	_av_get_channel_layout_nb_channels
	cmp	w20, w0
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	ldr	w0, [x21, #12]
	bl	_av_get_channel_layout_nb_channels
	cmp	w0, #0
	cset	w0, eq
LBB0_3:
	bl	_av_assert0
	mov	x22, x21
	ldr	x0, [x22, #16]!
	cbz	x0, LBB0_10
; %bb.4:
	str	xzr, [sp, #8]
	str	wzr, [sp, #4]
Lloh0:
	adrp	x8, _AV_SAMPLE_FMT_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_SAMPLE_FMT_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp]
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x3, sp
	add	x4, sp, #4
	bl	_ff_frame_pool_get_audio_config
	tbnz	x0, #63, LBB0_15
; %bb.5:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x23, _BUFFER_ALIGN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _BUFFER_ALIGN@GOTPAGEOFF]
	cmp	w8, w20
	b.ne	LBB0_11
; %bb.6:
	ldr	w8, [sp, #8]
	cmp	w8, w19
	b.lt	LBB0_11
; %bb.7:
	ldr	w8, [sp]
	ldr	w9, [x21, #4]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.8:
	ldr	w8, [sp, #4]
	ldr	w9, [x23]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.9:
	ldr	x0, [x22]
	b	LBB0_13
LBB0_10:
Lloh5:
	adrp	x8, _av_buffer_allocz@GOTPAGE
Lloh6:
	ldr	x8, [x8, _av_buffer_allocz@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w3, [x21, #4]
Lloh8:
	adrp	x8, _BUFFER_ALIGN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BUFFER_ALIGN@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	b	LBB0_12
LBB0_11:
	mov	x0, x22
	bl	_ff_frame_pool_uninit
Lloh11:
	adrp	x8, _av_buffer_allocz@GOTPAGE
Lloh12:
	ldr	x8, [x8, _av_buffer_allocz@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w3, [x21, #4]
	ldr	w4, [x23]
LBB0_12:
	mov	x1, x20
	mov	x2, x19
	bl	_ff_frame_pool_audio_init
	str	x0, [x21, #16]
	cbz	x0, LBB0_15
LBB0_13:
	bl	_ff_frame_pool_get
	mov	x22, x0
	cbz	x0, LBB0_16
; %bb.14:
	str	w19, [x22]
	ldr	d0, [x21, #8]
	str	d0, [x22, #8]
	ldr	w0, [x22, #4]
	ldr	w4, [x21, #4]
	mov	w1, #0
	mov	x2, x19
	mov	x3, x20
	bl	_av_samples_set_silence
	b	LBB0_16
LBB0_15:
	mov	x22, #0
LBB0_16:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_av_buffer_allocz,4,2           ; @av_buffer_allocz
	.comm	_BUFFER_ALIGN,4,2               ; @BUFFER_ALIGN
	.comm	_AV_SAMPLE_FMT_NONE,4,2         ; @AV_SAMPLE_FMT_NONE
.subsections_via_symbols
