	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_rm_retrieve_cache           ## -- Begin function ff_rm_retrieve_cache
	.p2align	4, 0x90
_ff_rm_retrieve_cache:                  ## @ff_rm_retrieve_cache
	.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	%r8, %r15
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	(%rdi), %r13
	xorl	%edi, %edi
	cmpl	$0, (%r13)
	setg	%dil
	callq	_av_assert0
	movq	(%rbx), %rax
	movq	_DEINT_ID_VBRF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_DEINT_ID_VBRS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.3:
	movq	8(%r14), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_av_new_packet
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:
	movl	24(%r15), %edi
	movq	8(%r14), %rax
	movl	(%rax), %ecx
	movl	20(%rbx), %eax
	imull	16(%rbx), %eax
	cltd
	idivl	%ecx
	subl	(%r13), %eax
	imull	%ecx, %eax
	movslq	%eax, %rsi
	addq	32(%rbx), %rsi
	movl	%ecx, %edx
	callq	_memcpy
	jmp	LBB0_5
LBB0_2:
	movq	8(%rbx), %rax
	movq	40(%rbx), %rcx
	movslq	(%r13), %rdx
	subq	%rdx, %rax
	movl	(%rcx,%rax,4), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_av_get_packet
	testl	%eax, %eax
	js	LBB0_9
LBB0_5:
	movl	(%r13), %eax
	decl	%eax
	movl	%eax, (%r13)
	movq	24(%rbx), %rdx
	movq	%rdx, 16(%r15)
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_7
## %bb.6:
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_7:
	movq	%rcx, 24(%rbx)
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_8:
	movq	%rcx, 8(%r15)
	movl	(%r14), %ecx
	movl	%ecx, (%r15)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEINT_ID_VBRF,8,3              ## @DEINT_ID_VBRF
	.comm	_DEINT_ID_VBRS,8,3              ## @DEINT_ID_VBRS
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_AV_PKT_FLAG_KEY,8,3            ## @AV_PKT_FLAG_KEY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_rm_retrieve_cache           ; -- Begin function ff_rm_retrieve_cache
	.p2align	2
_ff_rm_retrieve_cache:                  ; @ff_rm_retrieve_cache
	.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, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	ldr	x23, [x0]
	ldr	w8, [x23]
	cmp	w8, #0
	cset	w0, gt
	bl	_av_assert0
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _DEINT_ID_VBRF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DEINT_ID_VBRF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _DEINT_ID_VBRS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DEINT_ID_VBRS@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x21, #40]
	ldr	x9, [x21, #8]
	ldrsw	x10, [x23]
	sub	x9, x9, x10
	ldr	w2, [x8, x9, lsl #2]
	mov	x0, x22
	mov	x1, x19
	bl	_av_get_packet
	tbz	w0, #31, LBB0_4
	b	LBB0_8
LBB0_2:
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_av_new_packet
	tbnz	w0, #31, LBB0_8
; %bb.3:
	ldr	w0, [x19, #24]
	ldr	x8, [x21, #32]
	ldr	x9, [x20, #8]
	ldr	w2, [x9]
	ldp	w9, w10, [x21, #16]
	mul	w9, w10, w9
	sdiv	w9, w9, w2
	ldr	w10, [x23]
	sub	w9, w9, w10
	mul	w9, w9, w2
	add	x1, x8, w9, sxtw
	bl	_memcpy
LBB0_4:
	ldr	w8, [x23]
	sub	w0, w8, #1
	str	w0, [x23]
	ldr	x9, [x21, #24]
	str	x9, [x19, #16]
Lloh6:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x8, #0
	b	LBB0_7
LBB0_6:
	str	x8, [x21, #24]
Lloh9:
	adrp	x8, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
LBB0_7:
	str	x8, [x19, #8]
	ldr	w8, [x20]
	str	w8, [x19]
LBB0_8:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DEINT_ID_VBRF,8,3              ; @DEINT_ID_VBRF
	.comm	_DEINT_ID_VBRS,8,3              ; @DEINT_ID_VBRS
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_AV_PKT_FLAG_KEY,8,3            ; @AV_PKT_FLAG_KEY
.subsections_via_symbols
