	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ff_fast_malloc
_ff_fast_malloc:                        ## @ff_fast_malloc
	.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	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r13
	leaq	-48(%rbp), %rdi
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_memcpy
	movl	(%r14), %eax
	cmpq	%rbx, %rax
	jae	LBB0_1
## %bb.2:
	movq	%rbx, %rax
	shrq	$4, %rax
	leaq	(%rbx,%rax), %rdi
	addq	$32, %rdi
	movq	%rbx, %rsi
	callq	_FFMAX
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_av_freep
	movq	%r15, %rdi
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:
	callq	_av_mallocz
	jmp	LBB0_5
LBB0_1:
	cmpq	$0, -48(%rbp)
	setne	%al
	testq	%rbx, %rbx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_av_assert0
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	callq	_av_malloc
LBB0_5:
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	movl	$8, %edx
	callq	_memcpy
	xorl	%eax, %eax
	cmpq	$0, -48(%rbp)
	cmovel	%eax, %r15d
	movl	%r15d, (%r14)
	movl	$1, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ff_fast_malloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ff_fast_malloc
_ff_fast_malloc:                        ; @ff_fast_malloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	add	x0, sp, #8
	mov	x1, x20
	mov	w2, #8
	bl	_memcpy
	ldr	w8, [x19]
	cmp	x8, x21
	b.hs	LBB0_3
; %bb.1:
	add	x8, x21, x21, lsr #4
	add	x0, x8, #32
	mov	x1, x21
	bl	_FFMAX
	mov	x21, x0
	mov	x0, x20
	bl	_av_freep
	mov	x0, x21
	cbz	w22, LBB0_4
; %bb.2:
	bl	_av_mallocz
	b	LBB0_5
LBB0_3:
	ldr	x8, [sp, #8]
	cmp	x21, #0
	ccmp	x8, #0, #0, ne
	cset	w0, ne
	bl	_av_assert0
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	bl	_av_malloc
LBB0_5:
	str	x0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #8
	bl	_memcpy
	ldr	x8, [sp, #8]
	cmp	x8, #0
	csel	w8, wzr, w21, eq
	str	w8, [x19]
	mov	w0, #1
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ff_fast_malloc
.subsections_via_symbols
