	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_extradata
_remove_extradata:                      ## @remove_extradata
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %r15
	callq	_ff_bsf_get_packet_ref
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	16(%r15), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	(%rax), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.4:
	movq	(%r15), %rax
	movq	_REMOVE_FREQ_ALL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_9
## %bb.5:
	movq	_REMOVE_FREQ_NONKEYFRAME@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%r14)
	je	LBB0_9
LBB0_7:
	movq	_REMOVE_FREQ_KEYFRAME@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_10
## %bb.8:
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_10
LBB0_9:
	movl	8(%r15), %edi
	movl	4(%r14), %esi
	movl	8(%r14), %edx
	callq	*%rcx
	addl	%eax, 4(%r14)
	subl	%eax, 8(%r14)
	jmp	LBB0_10
LBB0_1:
	movl	%eax, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REMOVE_FREQ_ALL,8,3            ## @REMOVE_FREQ_ALL
	.comm	_REMOVE_FREQ_NONKEYFRAME,8,3    ## @REMOVE_FREQ_NONKEYFRAME
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.comm	_REMOVE_FREQ_KEYFRAME,8,3       ## @REMOVE_FREQ_KEYFRAME
	.no_dead_strip	_remove_extradata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_extradata
_remove_extradata:                      ; @remove_extradata
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x20, [x0]
	bl	_ff_bsf_get_packet_ref
	tbnz	w0, #31, LBB0_10
; %bb.1:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_9
; %bb.2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.3:
	ldr	x9, [x20]
Lloh0:
	adrp	x10, _REMOVE_FREQ_ALL@GOTPAGE
Lloh1:
	ldr	x10, [x10, _REMOVE_FREQ_ALL@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_8
; %bb.4:
Lloh3:
	adrp	x10, _REMOVE_FREQ_NONKEYFRAME@GOTPAGE
Lloh4:
	ldr	x10, [x10, _REMOVE_FREQ_NONKEYFRAME@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.5:
	ldr	w10, [x19]
Lloh6:
	adrp	x11, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh7:
	ldr	x11, [x11, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_8
LBB0_6:
Lloh9:
	adrp	x10, _REMOVE_FREQ_KEYFRAME@GOTPAGE
Lloh10:
	ldr	x10, [x10, _REMOVE_FREQ_KEYFRAME@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.7:
	ldr	w9, [x19]
Lloh12:
	adrp	x10, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh13:
	ldr	x10, [x10, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_9
LBB0_8:
	ldr	w0, [x20, #8]
	ldp	w1, w2, [x19, #4]
	blr	x8
	mov	x8, x0
	mov	w0, #0
	ldp	w9, w10, [x19, #4]
	add	w9, w9, w8
	sub	w8, w10, w8
	stp	w9, w8, [x19, #4]
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_REMOVE_FREQ_ALL,8,3            ; @REMOVE_FREQ_ALL
	.comm	_REMOVE_FREQ_NONKEYFRAME,8,3    ; @REMOVE_FREQ_NONKEYFRAME
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.comm	_REMOVE_FREQ_KEYFRAME,8,3       ; @REMOVE_FREQ_KEYFRAME
	.no_dead_strip	_remove_extradata
.subsections_via_symbols
