	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vp9_superframe_filter
_vp9_superframe_filter:                 ## @vp9_superframe_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, %r15
	movq	(%rdi), %rbx
	callq	_ff_bsf_get_packet_ref
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rsi
	movslq	8(%r14), %rdx
	movl	-4(%rsi,%rdx,4), %eax
	movl	%eax, %ecx
	andl	$224, %ecx
	xorl	%r13d, %r13d
	cmpl	$192, %ecx
	jne	LBB0_4
## %bb.2:
	movl	%eax, %ecx
	shrl	$3, %ecx
	andl	$3, %ecx
	incl	%ecx
	movl	%eax, %edi
	andl	$7, %edi
	incl	%edi
	imull	%ecx, %edi
	addl	$2, %edi
	movl	%edx, %ecx
	subl	%edi, %ecx
	jl	LBB0_4
## %bb.3:
	movslq	%ecx, %rcx
	xorl	%r13d, %r13d
	cmpl	%eax, (%rsi,%rcx,4)
	sete	%r13b
LBB0_4:
	leaq	-44(%rbp), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:
	leaq	-44(%rbp), %r12
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_get_bits
	movq	%r12, %rdi
	callq	_get_bits1
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_get_bits1
	addl	%eax, %eax
	orl	%ebx, %eax
	cmpl	$3, %eax
	jne	LBB0_7
## %bb.6:
	leaq	-44(%rbp), %rdi
	callq	_get_bits1
LBB0_7:
	leaq	-44(%rbp), %rdi
	callq	_get_bits1
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	xorl	%ecx, %ecx
	testl	%r13d, %r13d
	jne	LBB0_13
	jmp	LBB0_17
LBB0_9:
	movl	%eax, %r12d
	jmp	LBB0_31
LBB0_11:
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_get_bits1
	movq	%rbx, %rdi
	callq	_get_bits1
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%dl
	testl	%r13d, %r13d
	je	LBB0_16
## %bb.12:
	movb	%dl, %cl
LBB0_13:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_15
## %bb.14:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r12d
	jmp	LBB0_29
LBB0_15:
	testl	%ecx, %ecx
	sete	%bl
	testl	%eax, %eax
	jne	LBB0_20
	jmp	LBB0_18
LBB0_16:
	testl	%eax, %eax
	je	LBB0_19
LBB0_17:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %eax
	movb	$1, %bl
	testl	%eax, %eax
	jne	LBB0_20
LBB0_18:
	xorl	%r12d, %r12d
	jmp	LBB0_31
LBB0_19:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %eax
	xorl	%ebx, %ebx
LBB0_20:
	leal	1(%rax), %ecx
	movq	_MAX_CACHE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jge	LBB0_28
## %bb.21:
	movq	8(%r13), %rdx
	movl	%ecx, (%r13)
	cltq
	movq	(%rdx,%rax,8), %rdi
	movq	%r14, %rsi
	callq	_av_packet_move_ref
	testb	%bl, %bl
	je	LBB0_32
## %bb.22:
	xorl	%edi, %edi
	cmpl	$0, (%r13)
	setg	%dil
	callq	_av_assert0
	movq	8(%r13), %rdi
	movl	(%r13), %esi
	movq	%r14, %rdx
	callq	_merge_superframe
	testl	%eax, %eax
	js	LBB0_10
## %bb.23:
	movq	8(%r13), %rax
	movslq	(%r13), %rcx
	movq	-8(%rax,%rcx,8), %rsi
	movq	%r14, %rdi
	callq	_av_packet_copy_props
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_30
## %bb.24:
	cmpl	$0, (%r13)
	jle	LBB0_27
## %bb.25:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_av_packet_unref
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_26
LBB0_27:
	movl	$0, (%r13)
	jmp	LBB0_29
LBB0_10:
	movl	%eax, %r12d
	jmp	LBB0_30
LBB0_28:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_29:
	testl	%r12d, %r12d
	jns	LBB0_31
LBB0_30:
	movq	%r14, %rdi
	callq	_av_packet_unref
LBB0_31:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r12d
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mixing of superframe syntax and naked VP9 frames not supported\n"

	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_MAX_CACHE,4,2                  ## @MAX_CACHE
L_.str.1:                               ## @.str.1
	.asciz	"Too many invisible frames\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_vp9_superframe_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vp9_superframe_filter
_vp9_superframe_filter:                 ; @vp9_superframe_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
	ldr	x22, [x0]
	bl	_ff_bsf_get_packet_ref
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x1, [x19]
	ldr	w2, [x19, #8]
	sub	w8, w2, #1
	ldr	w8, [x1, w8, sxtw #2]
	and	w9, w8, #0xe0
	cmp	w9, #192
	b.ne	LBB0_3
; %bb.2:
	ubfx	w9, w8, #3, #2
	and	w10, w8, #0x7
	add	w10, w10, #1
	madd	w9, w10, w9, w10
	add	w9, w9, #2
	subs	w9, w2, w9
	b.ge	LBB0_5
LBB0_3:
	mov	w23, #0
	b	LBB0_6
LBB0_4:
	mov	x21, x0
	b	LBB0_32
LBB0_5:
	ldr	w9, [x1, w9, sxtw #2]
	cmp	w9, w8
	cset	w23, eq
LBB0_6:
	add	x0, sp, #12
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_28
; %bb.7:
	add	x0, sp, #12
	mov	w1, #2
	bl	_get_bits
	add	x0, sp, #12
	bl	_get_bits1
	mov	x21, x0
	add	x0, sp, #12
	bl	_get_bits1
	orr	w8, w21, w0, lsl #1
	cmp	w8, #3
	b.ne	LBB0_9
; %bb.8:
	add	x0, sp, #12
	bl	_get_bits1
LBB0_9:
	add	x0, sp, #12
	bl	_get_bits1
	cbz	w0, LBB0_12
; %bb.10:
	cbz	w23, LBB0_17
; %bb.11:
	mov	w9, #0
	b	LBB0_13
LBB0_12:
	add	x0, sp, #12
	bl	_get_bits1
	add	x0, sp, #12
	bl	_get_bits1
	cmp	w0, #0
	cset	w9, eq
	cbz	w23, LBB0_16
LBB0_13:
	ldr	w8, [x22]
	cmp	w8, #0
	b.le	LBB0_15
; %bb.14:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
Lloh5:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x21, x0
	b	LBB0_30
LBB0_15:
	cmp	w9, #0
	cset	w21, eq
	cbnz	w8, LBB0_20
	b	LBB0_18
LBB0_16:
	cbz	w0, LBB0_19
LBB0_17:
	ldr	w8, [x22]
	mov	w21, #1
	cbnz	w8, LBB0_20
LBB0_18:
	mov	w21, #0
	b	LBB0_32
LBB0_19:
	mov	w21, #0
	ldr	w8, [x22]
LBB0_20:
	add	w9, w8, #1
Lloh8:
	adrp	x10, _MAX_CACHE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MAX_CACHE@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ge	LBB0_29
; %bb.21:
	ldr	x10, [x22, #8]
	str	w9, [x22]
	ldr	x0, [x10, w8, sxtw #3]
	mov	x1, x19
	bl	_av_packet_move_ref
	tbz	w21, #0, LBB0_33
; %bb.22:
	ldr	w8, [x22]
	cmp	w8, #0
	cset	w0, gt
	bl	_av_assert0
	ldr	x0, [x22, #8]
	ldr	w1, [x22]
	mov	x2, x19
	bl	_merge_superframe
	tbnz	w0, #31, LBB0_28
; %bb.23:
	ldr	x8, [x22, #8]
	ldrsw	x9, [x22]
	add	x8, x8, x9, lsl #3
	ldur	x1, [x8, #-8]
	mov	x0, x19
	bl	_av_packet_copy_props
	mov	x21, x0
	tbnz	w0, #31, LBB0_31
; %bb.24:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.25:
	mov	x20, #0
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	x0, [x8, x20, lsl #3]
	bl	_av_packet_unref
	add	x20, x20, #1
	ldrsw	x8, [x22]
	cmp	x20, x8
	b.lt	LBB0_26
LBB0_27:
	str	wzr, [x22]
	b	LBB0_30
LBB0_28:
	mov	x21, x0
	b	LBB0_31
LBB0_29:
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_av_log
Lloh16:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
LBB0_30:
	tbz	w21, #31, LBB0_32
LBB0_31:
	mov	x0, x19
	bl	_av_packet_unref
LBB0_32:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_33:
Lloh19:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x21, x0
	b	LBB0_32
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mixing of superframe syntax and naked VP9 frames not supported\n"

	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_MAX_CACHE,4,2                  ; @MAX_CACHE
l_.str.1:                               ; @.str.1
	.asciz	"Too many invisible frames\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_vp9_superframe_filter
.subsections_via_symbols
