	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vp9_metadata_filter
_vp9_metadata_filter:                   ## @vp9_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_ff_bsf_get_packet_ref
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	leaq	32(%r12), %r13
	movl	24(%r12), %edi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_ff_cbs_read_packet
	testl	%eax, %eax
	js	LBB0_13
## %bb.3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r13)
	jle	LBB0_30
## %bb.4:
	xorl	%ebx, %ebx
	movq	_VP9_KEY_FRAME@GOTPCREL(%rip), %rdx
	movq	_VP9_CS_RGB@GOTPCREL(%rip), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, 24(%r14)
LBB0_29:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_30
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r12), %rax
	movq	(%rax,%rbx,8), %r14
	movl	(%r14), %eax
	addl	%eax, %eax
	addl	4(%r14), %eax
	movq	8(%r14), %rcx
	cmpq	(%rdx), %rcx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	32(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_23
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%eax, %eax
	jle	LBB0_23
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rcx
	testq	%rcx, %rcx
	js	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	testb	$1, %al
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	(%r15), %rcx
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	testb	$2, 8(%r12)
	jne	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rdx
	callq	_av_log
	movq	_VP9_KEY_FRAME@GOTPCREL(%rip), %rdx
	orb	$2, 8(%r12)
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	testb	$4, 8(%r12)
	jne	LBB0_29
## %bb.24:                              ##   in Loop: Header=BB0_5 Depth=1
	testq	%rcx, %rcx
	je	LBB0_29
## %bb.25:                              ##   in Loop: Header=BB0_5 Depth=1
	testl	%eax, %eax
	jne	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rax
	testq	%rax, %rax
	js	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_VP9_CS_BT_601@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.3(%rip), %rdx
	callq	_av_log
	movq	_VP9_KEY_FRAME@GOTPCREL(%rip), %rdx
	orb	$4, 8(%r12)
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rcx, 16(%r14)
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r12), %rax
	testq	%rax, %rax
	js	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, 24(%r14)
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r14), %rax
	cmpq	(%r15), %rax
	jne	LBB0_29
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	testb	$1, 8(%r12)
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, 24(%r14)
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rdx
	callq	_av_log
	movq	_VP9_KEY_FRAME@GOTPCREL(%rip), %rdx
	orb	$1, 8(%r12)
	jmp	LBB0_22
LBB0_30:
	movl	24(%r12), %edi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_ff_cbs_write_packet
	testl	%eax, %eax
	js	LBB0_31
## %bb.32:
	movl	24(%r12), %edi
	movq	%r13, %rsi
	callq	_ff_cbs_fragment_reset
	xorl	%ebx, %ebx
	jmp	LBB0_33
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_33
LBB0_13:
	movl	%eax, %ebx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_14
LBB0_31:
	movl	%eax, %ebx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	movl	24(%r12), %edi
	movq	%r13, %rsi
	callq	_ff_cbs_fragment_reset
	movq	%r14, %rdi
	callq	_av_packet_unref
LBB0_33:
	movl	%ebx, %eax
	addq	$24, %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"

	.comm	_VP9_KEY_FRAME,8,3              ## @VP9_KEY_FRAME
	.comm	_VP9_CS_RGB,8,3                 ## @VP9_CS_RGB
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Warning: RGB incompatible with profiles 0 and 2.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Warning: Color space RGB implicitly sets color range to PC range.\n"

	.comm	_VP9_CS_BT_601,8,3              ## @VP9_CS_BT_601
L_.str.3:                               ## @.str.3
	.asciz	"Warning: Intra-only frames in profile 0 are automatically BT.601.\n"

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

	.no_dead_strip	_vp9_metadata_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vp9_metadata_filter
_vp9_metadata_filter:                   ; @vp9_metadata_filter
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x21, x0
	ldr	x25, [x0]
	bl	_ff_bsf_get_packet_ref
	tbnz	w0, #31, LBB0_27
; %bb.1:
	add	x20, x25, #32
	ldr	w0, [x25, #24]
	mov	x1, x20
	mov	x2, x19
	bl	_ff_cbs_read_packet
	tbnz	w0, #31, LBB0_28
; %bb.2:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.3:
	mov	x26, #0
Lloh0:
	adrp	x27, _VP9_KEY_FRAME@GOTPAGE
Lloh1:
	ldr	x27, [x27, _VP9_KEY_FRAME@GOTPAGEOFF]
Lloh2:
	adrp	x28, _VP9_CS_RGB@GOTPAGE
Lloh3:
	ldr	x28, [x28, _VP9_CS_RGB@GOTPAGEOFF]
Lloh4:
	adrp	x24, _AV_LOG_WARNING@GOTPAGE
Lloh5:
	ldr	x24, [x24, _AV_LOG_WARNING@GOTPAGEOFF]
	mov	w23, #1
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w23, [x22, #24]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x20]
	cmp	x26, x8
	b.ge	LBB0_25
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25, #40]
	ldr	x22, [x8, x26, lsl #3]
	ldp	w8, w9, [x22]
	add	w8, w9, w8, lsl #1
	ldr	x9, [x22, #8]
	ldr	x10, [x27]
	cmp	x9, x10
	b.eq	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x22, #32]
	cmp	x9, #0
	ccmp	w8, #1, #8, ne
	b.ge	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w10, [x25, #8]
	tbnz	w10, #2, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x9, #0
	ccmp	w8, #0, #0, ne
	b.ne	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25]
	tbnz	x8, #63, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh6:
	adrp	x9, _VP9_CS_BT_601@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VP9_CS_BT_601@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x24]
	mov	x0, x21
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_av_log
	ldr	w8, [x25, #8]
	orr	w8, w8, #0x4
	str	w8, [x25, #8]
	b	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x25]
	tbnz	x9, #63, LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	tbnz	w8, #0, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x28]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x25, #8]
	tbnz	w8, #1, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x24]
	mov	x0, x21
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
	ldr	w8, [x25, #8]
	orr	w8, w8, #0x2
	str	w8, [x25, #8]
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x9, [x22, #16]
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25, #16]
	tbnz	x8, #63, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_6 Depth=1
	str	w8, [x22, #24]
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22, #16]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.22:                               ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x25, #8]
	tbnz	w8, #0, LBB0_4
; %bb.23:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x22, #24]
	cbnz	w8, LBB0_4
; %bb.24:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x24]
	mov	x0, x21
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_av_log
	ldr	w8, [x25, #8]
	orr	w8, w8, #0x1
	str	w8, [x25, #8]
	b	LBB0_4
LBB0_25:
	ldr	w0, [x25, #24]
	mov	x1, x19
	mov	x2, x20
	bl	_ff_cbs_write_packet
	tbnz	w0, #31, LBB0_29
; %bb.26:
	ldr	w0, [x25, #24]
	mov	x1, x20
	bl	_ff_cbs_fragment_reset
	mov	w22, #0
	b	LBB0_31
LBB0_27:
	mov	x22, x0
	b	LBB0_31
LBB0_28:
	mov	x22, x0
Lloh15:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_30
LBB0_29:
	mov	x22, x0
Lloh20:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str.4@PAGE
Lloh24:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_30:
	mov	x0, x21
	bl	_av_log
	ldr	w0, [x25, #24]
	mov	x1, x20
	bl	_ff_cbs_fragment_reset
	mov	x0, x19
	bl	_av_packet_unref
LBB0_31:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.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"

	.comm	_VP9_KEY_FRAME,8,3              ; @VP9_KEY_FRAME
	.comm	_VP9_CS_RGB,8,3                 ; @VP9_CS_RGB
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Warning: RGB incompatible with profiles 0 and 2.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Warning: Color space RGB implicitly sets color range to PC range.\n"

	.comm	_VP9_CS_BT_601,8,3              ; @VP9_CS_BT_601
l_.str.3:                               ; @.str.3
	.asciz	"Warning: Intra-only frames in profile 0 are automatically BT.601.\n"

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

	.no_dead_strip	_vp9_metadata_filter
.subsections_via_symbols
