	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_buf
_prepare_buf:                           ## @prepare_buf
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	cmpl	$2, %edx
	jne	LBB0_3
## %bb.1:
	cmpl	$2, (%rdi)
	jge	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	movq	(%rbx), %rax
	movslq	%edx, %r14
	movq	(%rax,%r14,8), %rax
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movl	8(%rbx), %edi
	addl	%edi, %edi
	callq	_av_mallocz
	movq	(%rbx), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	(%rbx), %rax
	movq	(%rax,%r14,8), %rax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_prepare_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_buf
_prepare_buf:                           ; @prepare_buf
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x19, x1
	cmp	w2, #2
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x0]
	cmp	w8, #2
	b.ge	LBB0_3
; %bb.2:
	mov	x0, #0
	b	LBB0_5
LBB0_3:
	ldr	x8, [x19]
	ldr	x0, [x8, w2, sxtw #3]
	cbnz	x0, LBB0_5
; %bb.4:
	sxtw	x20, w2
	ldr	w8, [x19, #8]
	lsl	w0, w8, #1
	bl	_av_mallocz
	ldr	x8, [x19]
	lsl	x9, x20, #3
	str	x0, [x8, x9]
	ldr	x8, [x19]
	ldr	x0, [x8, x9]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_prepare_buf
.subsections_via_symbols
