	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpeg2_metadata_filter
_mpeg2_metadata_filter:                 ## @mpeg2_metadata_filter
	.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	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %r13
	callq	_ff_bsf_get_packet_ref
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	leaq	4(%r13), %r14
	movl	(%r13), %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_ff_cbs_read_packet
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_mpeg2_metadata_update_fragment
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	(%r13), %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_ff_cbs_write_packet
	testl	%eax, %eax
	js	LBB0_7
## %bb.10:
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_ff_cbs_fragment_reset
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_8
LBB0_5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_8
LBB0_7:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdx
LBB0_8:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_av_log
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_ff_cbs_fragment_reset
	movq	%r15, %rdi
	callq	_av_packet_unref
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read packet.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to update frame fragment.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to write packet.\n"

	.no_dead_strip	_mpeg2_metadata_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpeg2_metadata_filter
_mpeg2_metadata_filter:                 ; @mpeg2_metadata_filter
	.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, x1
	mov	x21, x0
	ldr	x23, [x0]
	bl	_ff_bsf_get_packet_ref
	tbnz	w0, #31, LBB0_5
; %bb.1:
	add	x20, x23, #4
	ldr	w0, [x23]
	mov	x1, x20
	mov	x2, x19
	bl	_ff_cbs_read_packet
	tbnz	w0, #31, LBB0_6
; %bb.2:
	mov	x0, x21
	mov	x1, x20
	bl	_mpeg2_metadata_update_fragment
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldr	w0, [x23]
	mov	x1, x19
	mov	x2, x20
	bl	_ff_cbs_write_packet
	tbnz	w0, #31, LBB0_8
; %bb.4:
	ldr	w0, [x23]
	mov	x1, x20
	bl	_ff_cbs_fragment_reset
	mov	w22, #0
	b	LBB0_10
LBB0_5:
	mov	x22, x0
	b	LBB0_10
LBB0_6:
	mov	x22, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_9
LBB0_7:
	mov	x22, x0
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
	mov	x22, x0
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_9:
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_av_log
	ldr	w0, [x23]
	mov	x1, x20
	bl	_ff_cbs_fragment_reset
	mov	x0, x19
	bl	_av_packet_unref
LBB0_10:
	mov	x0, x22
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read packet.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to update frame fragment.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to write packet.\n"

	.no_dead_strip	_mpeg2_metadata_filter
.subsections_via_symbols
