	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function allocate_buffers2
_allocate_buffers2:                     ## @allocate_buffers2
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$-1, %esi
	jl	LBB0_6
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r15
	addl	$2, %r14d
	movq	8(%rdi), %rax
	xorl	%ebx, %ebx
	movq	_WV_MONO_DATA@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %r14
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rbx,8), %rdi
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %rsi
	movl	(%r15), %edx
	shll	$2, %edx
	callq	_av_fast_padded_malloc
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	cmpl	$0, (%rdi)
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %ecx
	testl	%ecx, 4(%r15)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %rdi
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %rsi
	addq	$4, %rsi
	movl	(%r15), %edx
	shll	$2, %edx
	callq	_av_fast_padded_malloc
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rcx
	cmpl	$0, 4(%rcx)
	jne	LBB0_5
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WV_MONO_DATA,4,2               ## @WV_MONO_DATA
	.no_dead_strip	_allocate_buffers2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function allocate_buffers2
_allocate_buffers2:                     ; @allocate_buffers2
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cmn	w1, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x0
	mov	x20, #0
	add	w9, w1, #2
	ldr	x8, [x0, #8]
	lsl	x21, x9, #3
Lloh0:
	adrp	x22, _WV_MONO_DATA@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WV_MONO_DATA@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #8
	cmp	x21, x20
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x8, x20]
	ldr	x8, [x19, #16]
	ldr	x1, [x8, x20]
	ldr	w8, [x19]
	lsl	w2, w8, #2
	bl	_av_fast_padded_malloc
	ldr	x8, [x19, #8]
	ldr	x9, [x8, x20]
	ldr	w10, [x9]
	cbz	w10, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x19, #4]
	ldr	w11, [x22]
	tst	w11, w10
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x9, #4
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x20]
	add	x1, x8, #4
	ldr	w8, [x19]
	lsl	w2, w8, #2
	bl	_av_fast_padded_malloc
	ldr	x8, [x19, #8]
	ldr	x9, [x8, x20]
	ldr	w9, [x9, #4]
	cbnz	w9, LBB0_2
LBB0_6:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WV_MONO_DATA,4,2               ; @WV_MONO_DATA
	.no_dead_strip	_allocate_buffers2
.subsections_via_symbols
