	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_scratch_buffers
_alloc_scratch_buffers:                 ## @alloc_scratch_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, %rbx
	movq	40(%rdi), %r14
	movl	%esi, %edi
	callq	_FFABS
	leaq	32(%rax), %rdi
	movl	$32, %esi
	callq	_FFALIGN
	movl	%eax, %r13d
	leaq	36(%rbx), %r15
	leaq	16(%rbx), %rsi
	shll	$5, %eax
	leal	(%rax,%rax,2), %edx
	movq	%r15, %rdi
	callq	_av_fast_malloc
	leaq	32(%rbx), %r12
	leaq	8(%rbx), %rax
	imull	$42, %r13d, %edx
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_av_fast_malloc
	movq	(%rbx), %rsi
	movq	24(%rbx), %rdi
	movl	(%r14), %eax
	shll	$7, %eax
	leal	(%rax,%rax,2), %edx
	callq	_av_fast_mallocz
	movq	(%rbx), %rsi
	movq	24(%rbx), %rdi
	addq	$4, %rdi
	addq	$8, %rsi
	movl	(%r14), %eax
	shll	$7, %eax
	leal	(%rax,%rax,2), %edx
	callq	_av_fast_mallocz
	cmpl	$0, 36(%rbx)
	je	LBB0_5
## %bb.1:
	cmpl	$0, (%r12)
	je	LBB0_5
## %bb.2:
	movq	24(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.3:
	cmpl	$0, 4(%rax)
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, %rdi
	callq	_av_freep
	movq	%r12, %rdi
	callq	_av_freep
	movq	24(%rbx), %rdi
	callq	_av_freep
	movq	24(%rbx), %rdi
	addq	$4, %rdi
	callq	_av_freep
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r13)
	movq	(%rbx), %rax
	movups	%xmm0, (%rax)
	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	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_alloc_scratch_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_scratch_buffers
_alloc_scratch_buffers:                 ; @alloc_scratch_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	x24, [x0, #40]
	mov	x0, x1
	bl	_FFABS
	add	x0, x0, #32
	mov	w1, #32
	bl	_FFALIGN
	mov	x23, x0
	add	x21, x19, #36
	add	x1, x19, #16
	add	w8, w0, w0, lsl #1
	lsl	w2, w8, #5
	mov	x0, x21
	bl	_av_fast_malloc
	add	x22, x19, #32
	add	x20, x19, #8
	mov	w8, #42
	mul	w2, w23, w8
	mov	x0, x22
	mov	x1, x20
	bl	_av_fast_malloc
	ldr	x0, [x19, #24]
	ldr	x1, [x19]
	ldr	w8, [x24]
	add	w8, w8, w8, lsl #1
	lsl	w2, w8, #7
	bl	_av_fast_mallocz
	ldr	x8, [x19, #24]
	add	x0, x8, #4
	ldr	x8, [x19]
	add	x1, x8, #8
	ldr	w8, [x24]
	add	w8, w8, w8, lsl #1
	lsl	w2, w8, #7
	bl	_av_fast_mallocz
	ldr	w8, [x19, #36]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	w8, [x22]
	cbz	w8, LBB0_5
; %bb.2:
	ldr	x8, [x19, #24]
	ldr	w9, [x8]
	cbz	w9, LBB0_5
; %bb.3:
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_5
; %bb.4:
	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_5:
	mov	x0, x21
	bl	_av_freep
	mov	x0, x22
	bl	_av_freep
	ldr	x0, [x19, #24]
	bl	_av_freep
	ldr	x8, [x19, #24]
	add	x0, x8, #4
	bl	_av_freep
	stp	xzr, xzr, [x20]
	ldr	x8, [x19]
	stp	xzr, xzr, [x8]
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_alloc_scratch_buffers
.subsections_via_symbols
