	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vp8_header
_vp8_header:                            ## @vp8_header
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	movslq	%esi, %rdx
	movq	%rdx, %rsi
	shlq	$4, %rsi
	movl	12(%rbx,%rsi), %ecx
	xorl	%eax, %eax
	cmpl	$7, %ecx
	jl	LBB0_13
## %bb.1:
	movslq	8(%rbx,%rsi), %r12
	shlq	$2, %r12
	addq	(%rbx,%rsi), %r12
	cmpl	$79, (%r12)
	jne	LBB0_13
## %bb.2:
	movq	(%rdi), %rax
	movq	(%rax,%rdx,8), %r14
	movl	20(%r12), %eax
	cmpl	$2, %eax
	je	LBB0_9
## %bb.3:
	cmpl	$1, %eax
	jne	LBB0_11
## %bb.4:
	movq	_VP8_HEADER_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jge	LBB0_6
## %bb.5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_12
LBB0_9:
	cmpl	$32, 24(%r12)
	jne	LBB0_12
## %bb.10:
	addq	$28, %r12
	addl	$-7, %ecx
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_ff_vorbis_stream_comment
	movl	$1, %eax
	jmp	LBB0_13
LBB0_11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.2(%rip), %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_12
LBB0_6:
	movl	24(%r12), %ecx
	cmpl	$1, %ecx
	jne	LBB0_7
## %bb.8:
	leaq	32(%r12), %rdi
	callq	_AV_RB16
	movq	8(%r14), %rcx
	movq	%rax, 16(%rcx)
	leaq	40(%r12), %rdi
	callq	_AV_RB16
	movq	8(%r14), %rcx
	movq	%rax, 8(%rcx)
	leaq	48(%r12), %rdi
	callq	_AV_RB24
	movq	%rax, 24(%r14)
	leaq	60(%r12), %rdi
	callq	_AV_RB24
	movq	%rax, 16(%r14)
	leaq	72(%r12), %rdi
	callq	_AV_RB32
	movq	%rax, %r15
	addq	$88, %r12
	movq	%r12, %rdi
	callq	_AV_RB32
	movq	%r14, %rdi
	movl	$64, %esi
	movq	%rax, %rdx
	movq	%r15, %rcx
	callq	_avpriv_set_pts_info
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %rcx
	movl	%eax, 4(%rcx)
	movq	_AV_CODEC_ID_VP8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	movq	_AVSTREAM_PARSE_HEADERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	$1, %eax
	jmp	LBB0_13
LBB0_7:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	28(%r12), %r8d
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
LBB0_12:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VP8_HEADER_SIZE,4,2            ## @VP8_HEADER_SIZE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid OggVP8 header packet"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Unknown OggVP8 version %d.%d\n"

	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_VP8,4,2            ## @AV_CODEC_ID_VP8
	.comm	_AVSTREAM_PARSE_HEADERS,4,2     ## @AVSTREAM_PARSE_HEADERS
L_.str.2:                               ## @.str.2
	.asciz	"Unknown VP8 header type 0x%02X\n"

	.no_dead_strip	_vp8_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vp8_header
_vp8_header:                            ; @vp8_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	add	x9, x8, w1, sxtw #4
	ldr	w8, [x9, #12]
	subs	w3, w8, #7
	b.lt	LBB0_6
; %bb.1:
	ldr	x10, [x9]
	ldrsw	x9, [x9, #8]
	add	x21, x10, x9, lsl #2
	ldr	w9, [x21]
	cmp	w9, #79
	b.ne	LBB0_6
; %bb.2:
	ldr	x9, [x0]
	ldr	x19, [x9, w1, sxtw #3]
	ldr	w9, [x21, #20]
	cmp	w9, #2
	b.eq	LBB0_8
; %bb.3:
	cmp	w9, #1
	b.ne	LBB0_10
; %bb.4:
Lloh0:
	adrp	x9, _VP8_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VP8_HEADER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_11
; %bb.5:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_14
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
	add	sp, sp, #64
	ret
LBB0_8:
	ldr	w8, [x21, #24]
	cmp	w8, #32
	b.ne	LBB0_15
; %bb.9:
	add	x2, x21, #28
	mov	x1, x19
	bl	_ff_vorbis_stream_comment
	mov	w0, #1
	b	LBB0_7
LBB0_10:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	str	x9, [sp]
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_11:
	ldr	w8, [x21, #24]
	cmp	w8, #1
	b.ne	LBB0_13
; %bb.12:
	add	x0, x21, #32
	bl	_AV_RB16
	ldr	x8, [x19, #8]
	str	x0, [x8, #16]
	add	x0, x21, #40
	bl	_AV_RB16
	ldr	x8, [x19, #8]
	str	x0, [x8, #8]
	add	x0, x21, #48
	bl	_AV_RB24
	str	x0, [x19, #24]
	add	x0, x21, #60
	bl	_AV_RB24
	str	x0, [x19, #16]
	add	x0, x21, #72
	bl	_AV_RB32
	mov	x20, x0
	add	x0, x21, #88
	bl	_AV_RB32
	mov	x2, x0
	mov	x0, x19
	mov	w1, #64
	mov	x3, x20
	bl	_avpriv_set_pts_info
Lloh13:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
Lloh16:
	adrp	x10, _AV_CODEC_ID_VP8@GOTPAGE
Lloh17:
	ldr	x10, [x10, _AV_CODEC_ID_VP8@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	stp	w10, w8, [x9]
Lloh19:
	adrp	x8, _AVSTREAM_PARSE_HEADERS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AVSTREAM_PARSE_HEADERS@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_7
LBB0_13:
Lloh22:
	adrp	x9, _AV_LOG_WARNING@GOTPAGE
Lloh23:
	ldr	x9, [x9, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x9]
	ldr	w9, [x21, #28]
	stp	x8, x9, [sp]
Lloh25:
	adrp	x2, l_.str.1@PAGE
Lloh26:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_14:
	bl	_av_log
LBB0_15:
Lloh27:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_VP8_HEADER_SIZE,4,2            ; @VP8_HEADER_SIZE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid OggVP8 header packet"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Unknown OggVP8 version %d.%d\n"

	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_VP8,4,2            ; @AV_CODEC_ID_VP8
	.comm	_AVSTREAM_PARSE_HEADERS,4,2     ; @AVSTREAM_PARSE_HEADERS
l_.str.2:                               ; @.str.2
	.asciz	"Unknown VP8 header type 0x%02X\n"

	.no_dead_strip	_vp8_header
.subsections_via_symbols
