	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_fast_realloc                ## -- Begin function av_fast_realloc
	.p2align	4, 0x90
_av_fast_realloc:                       ## @av_fast_realloc
	.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
	movq	%rdi, %r12
	movl	(%rsi), %eax
	cmpq	%rdx, %rax
	jae	LBB0_5
## %bb.1:
	movq	%rsi, %r14
	movq	_max_alloc_size@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	addq	$-32, %rbx
	cmpq	%rdx, %rbx
	jae	LBB0_3
## %bb.2:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_4
LBB0_3:
	movq	%rdx, %rax
	shrq	$4, %rax
	leaq	(%rdx,%rax), %rdi
	addq	$32, %rdi
	movq	%rdx, %rsi
	callq	_FFMAX
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_FFMIN
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_av_realloc
	movq	%rax, %r12
	xorl	%eax, %eax
	testq	%r12, %r12
	cmovel	%eax, %r15d
LBB0_4:
	movl	%r15d, (%r14)
LBB0_5:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_max_alloc_size,4,2             ## @max_alloc_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_fast_realloc                ; -- Begin function av_fast_realloc
	.p2align	2
_av_fast_realloc:                       ; @av_fast_realloc
	.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
	mov	x20, x0
	ldr	w8, [x1]
	cmp	x8, x2
	b.hs	LBB0_5
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x8, _max_alloc_size@GOTPAGE
Lloh1:
	ldr	x8, [x8, _max_alloc_size@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	sub	x21, x8, #32
	cmp	x21, x2
	b.hs	LBB0_3
; %bb.2:
	mov	w8, #0
	mov	x20, #0
	b	LBB0_4
LBB0_3:
	add	x8, x2, x2, lsr #4
	add	x0, x8, #32
	mov	x1, x2
	bl	_FFMAX
	mov	x1, x0
	mov	x0, x21
	bl	_FFMIN
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_av_realloc
	mov	x20, x0
	cmp	x0, #0
	csel	w8, wzr, w21, eq
LBB0_4:
	str	w8, [x19]
LBB0_5:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_max_alloc_size,4,2             ; @max_alloc_size
.subsections_via_symbols
