	.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	%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
	movq	%rdi, %r12
	cmpl	$0, (%rdi)
	jle	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r15,%rbx,8), %rax
	movq	32(%r12), %rcx
	movq	%rax, (%rcx,%r13)
	incq	%r14
	movslq	(%r12), %rax
	addq	$8, %r13
	cmpq	%rax, %r14
	jge	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	40(%r12), %esi
	movl	$1, %edi
	callq	_FFMAX
	movslq	%eax, %rcx
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shrq	$2, %rax
	cmpq	%rcx, %rax
	jbe	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	4(%r12), %rcx
	movslq	8(%r12), %rdx
	addq	%rcx, %rdx
	cmpq	%rdx, %rax
	jbe	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	48(%r12), %rbx
	addq	%r13, %rbx
	movl	40(%r12), %esi
	movl	$1, %edi
	callq	_FFMAX
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	%eax, %edx
	callq	_av_reallocp_array
	testl	%eax, %eax
	js	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r12), %rdi
	addq	%r13, %rdi
	movl	8(%r12), %esi
	addl	4(%r12), %esi
	movl	$8, %edx
	callq	_av_reallocp_array
	testl	%eax, %eax
	js	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movslq	8(%r12), %rbx
	movq	24(%r12), %rax
	movq	(%rax,%r13), %r15
	testq	%rbx, %rbx
	jle	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %esi
	shlq	$3, %rsi
	movq	%r15, %rdi
	callq	___bzero
	jmp	LBB0_12
LBB0_1:
	movl	8(%r12), %ebx
LBB0_13:
	addq	$16, %r12
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$8, %edx
	callq	_av_reallocp_array
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
	jmp	LBB0_14
LBB0_4:
	movl	56(%r12), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_5
LBB0_7:
	movl	56(%r12), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_5:
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nmean too large\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"s->blocksize + s->nwrap too large\n"

	.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	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	x19, x0
	ldr	w8, [x0]
	cmp	w8, #0
	b.le	LBB0_9
; %bb.1:
	mov	x22, #0
	mov	x23, #0
Lloh0:
	adrp	x24, _UINT_MAX@GOTPAGE
Lloh1:
	ldr	x24, [x24, _UINT_MAX@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, x20
	sxtw	x8, w8
	add	x8, x21, x8, lsl #3
	ldr	x9, [x19, #32]
	str	x8, [x9, x22]
	add	x23, x23, #1
	ldrsw	x8, [x19]
	add	x22, x22, #8
	cmp	x23, x8
	b.ge	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #40]
	mov	w0, #1
	bl	_FFMAX
	ldrsw	x8, [x24]
	lsr	x8, x8, #2
	cmp	x8, w0, sxtw
	b.ls	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldpsw	x9, x10, [x19, #4]
	add	x9, x10, x9
	cmp	x8, x9
	b.ls	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #48]
	add	x20, x8, x22
	ldr	w1, [x19, #40]
	mov	w0, #1
	bl	_FFMAX
	mov	x2, x0
	mov	x0, x20
	mov	w1, #4
	bl	_av_reallocp_array
	tbnz	w0, #31, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #24]
	add	x0, x8, x22
	ldp	w8, w9, [x19, #4]
	add	w1, w9, w8
	mov	w2, #8
	bl	_av_reallocp_array
	tbnz	w0, #31, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w20, [x19, #8]
	ldr	x8, [x19, #24]
	ldr	x21, [x8, x22]
	cmp	w20, #1
	b.lt	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	x1, x20, #3
	mov	x0, x21
	bl	_bzero
	b	LBB0_2
LBB0_9:
	ldr	w20, [x19, #8]
LBB0_10:
	add	x0, x19, #16
	mov	x1, x20
	mov	w2, #8
	bl	_av_reallocp_array
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	b	LBB0_14
LBB0_11:
	ldr	w0, [x19, #56]
Lloh2:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_13
LBB0_12:
	ldr	w0, [x19, #56]
Lloh7:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_13:
	bl	_av_log
Lloh12:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
LBB0_14:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nmean too large\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"s->blocksize + s->nwrap too large\n"

	.no_dead_strip	_allocate_buffers
.subsections_via_symbols
