	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_buffers
_alloc_buffers:                         ## @alloc_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	%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	%esi, %r14d
	movq	%rdi, %rbx
	movl	40(%rdi), %r15d
	xorl	%edi, %edi
	cmpl	%esi, 36(%rbx)
	setle	%dil
	callq	_av_assert0
	addl	$64, %r14d
	cmpl	%r14d, (%rbx)
	jge	LBB0_5
## %bb.1:
	movl	$0, (%rbx)
	leaq	24(%rbx), %rdi
	callq	_av_freep
	movl	32(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	16(%rbx), %r12
	movq	%r12, %rdi
	callq	_av_freep
	leaq	8(%rbx), %rdi
	callq	_av_freep
	movq	_MAX_BLOCKSIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	%r14d, %edi
	callq	_av_malloc_array
	movq	%rax, 24(%rbx)
	movl	(%r13), %eax
	leal	(%rax,%r14), %edi
	addl	%eax, %r15d
	movl	%r15d, %esi
	callq	_av_malloc_array
	movq	%rax, 16(%rbx)
	movl	(%r13), %esi
	movl	%r14d, %edi
	callq	_av_malloc_array
	movq	%rax, 8(%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_6
## %bb.2:
	cmpq	$0, (%r12)
	je	LBB0_6
## %bb.3:
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	%r14d, (%rbx)
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_BLOCKSIZE,4,2              ## @MAX_BLOCKSIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_alloc_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_buffers
_alloc_buffers:                         ; @alloc_buffers
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldp	w8, w22, [x0, #36]
	cmp	w8, w1
	cset	w0, le
	bl	_av_assert0
	add	w20, w20, #64
	ldr	w8, [x19]
	cmp	w8, w20
	b.ge	LBB0_5
; %bb.1:
	str	wzr, [x19]
	add	x0, x19, #24
	bl	_av_freep
	ldr	w0, [x19, #32]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x21, x19, #16
	mov	x0, x21
	bl	_av_freep
	add	x0, x19, #8
	bl	_av_freep
Lloh0:
	adrp	x23, _MAX_BLOCKSIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MAX_BLOCKSIZE@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_av_malloc_array
	str	x0, [x19, #24]
	ldr	w8, [x23]
	add	w0, w8, w20
	add	w1, w8, w22
	bl	_av_malloc_array
	str	x0, [x19, #16]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_av_malloc_array
	str	x0, [x19, #8]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x8, [x21]
	cbz	x8, LBB0_6
; %bb.3:
	cbz	x0, LBB0_6
; %bb.4:
	str	w20, [x19]
LBB0_5:
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_BLOCKSIZE,4,2              ; @MAX_BLOCKSIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_alloc_buffers
.subsections_via_symbols
