	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function allocate_buffers
_allocate_buffers:                      ## @allocate_buffers
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_av_assert0
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	_AV_SAMPLE_FMT_S32P@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	callq	_av_samples_get_buffer_size
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	leaq	8(%rbx), %rdi
	leaq	24(%rbx), %rsi
	movl	%eax, %edx
	callq	_av_fast_malloc
	movl	8(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_4
## %bb.2:
	movq	16(%rbx), %rdi
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	movl	(%r14), %r9d
	movl	$0, (%rsp)
	xorl	%esi, %esi
	callq	_av_samples_fill_arrays
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_SAMPLE_FMT_S32P,4,2         ## @AV_SAMPLE_FMT_S32P
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_allocate_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function allocate_buffers
_allocate_buffers:                      ; @allocate_buffers
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0]
	bl	_av_assert0
	ldp	w2, w1, [x19]
Lloh0:
	adrp	x20, _AV_SAMPLE_FMT_S32P@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AV_SAMPLE_FMT_S32P@GOTPAGEOFF]
	ldr	w3, [x20]
	mov	x0, #0
	mov	w4, #0
	bl	_av_samples_get_buffer_size
	mov	x2, x0
	tbnz	w0, #31, LBB0_3
; %bb.1:
	add	x0, x19, #8
	add	x1, x19, #24
	bl	_av_fast_malloc
	ldr	w2, [x19, #8]
	cbz	w2, LBB0_5
; %bb.2:
	ldr	x0, [x19, #16]
	ldp	w4, w3, [x19]
	ldr	w5, [x20]
	mov	x1, #0
	mov	w6, #0
	bl	_av_samples_fill_arrays
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	b	LBB0_4
LBB0_3:
	mov	x0, x2
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_SAMPLE_FMT_S32P,4,2         ; @AV_SAMPLE_FMT_S32P
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_allocate_buffers
.subsections_via_symbols
