	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc1t_read_header
_vc1t_read_header:                      ## @vc1t_read_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	%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	%rdi, %r12
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_avio_rl24
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_avio_r8
	cmpl	$197, %eax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_avio_rl32
	cmpl	$3, %eax
	jg	LBB0_3
LBB0_2:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%eax, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	%rax, %r15
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r15), %rsi
	movl	%eax, 12(%rsi)
	movq	_AV_CODEC_ID_WMV3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rsi)
	movq	_VC1_EXTRADATA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_ff_get_extradata
	testq	%rax, %rax
	js	LBB0_13
## %bb.5:
	addl	$-4, %r13d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_avio_skip
	movq	%rbx, %rdi
	callq	_avio_rl32
	movq	8(%r15), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_avio_rl32
	movq	8(%r15), %rcx
	movl	%eax, 4(%rcx)
	movq	%rbx, %rdi
	callq	_avio_rl32
	cmpl	$12, %eax
	jne	LBB0_2
## %bb.6:
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_avio_skip
	movq	%rbx, %rdi
	callq	_avio_rl32
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.8:
	movq	%r15, %rdi
	movl	$32, %esi
	movl	$1, %edx
	movl	$1000, %ecx                     ## imm = 0x3E8
	callq	_avpriv_set_pts_info
	jmp	LBB0_11
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_9:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
	movl	$1, %eax
LBB0_10:
	movq	%r15, %rdi
	movl	$24, %esi
	movl	$1, %edx
	movl	%eax, %ecx
	callq	_avpriv_set_pts_info
	movl	%r14d, (%r15)
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_WMV3,4,2           ## @AV_CODEC_ID_WMV3
	.comm	_VC1_EXTRADATA_SIZE,4,2         ## @VC1_EXTRADATA_SIZE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Zero FPS specified, defaulting to 1 FPS\n"

	.no_dead_strip	_vc1t_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc1t_read_header
_vc1t_read_header:                      ; @vc1t_read_header
	.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	x20, x0
	ldr	x22, [x0]
	mov	x0, x22
	bl	_avio_rl24
	mov	x19, x0
	mov	x0, x22
	bl	_avio_r8
	cmp	w0, #197
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_avio_rl32
	cmp	w0, #3
	b.gt	LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_3:
	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
LBB0_4:
	mov	x23, x0
	mov	x0, x20
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_10
; %bb.5:
	mov	x21, x0
Lloh3:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x1, [x0, #8]
Lloh6:
	adrp	x9, _AV_CODEC_ID_WMV3@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AV_CODEC_ID_WMV3@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x1, #8]
Lloh9:
	adrp	x8, _VC1_EXTRADATA_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VC1_EXTRADATA_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_ff_get_extradata
	tbnz	x0, #63, LBB0_10
; %bb.6:
	sub	w1, w23, #4
	mov	x0, x22
	bl	_avio_skip
	mov	x0, x22
	bl	_avio_rl32
	ldr	x8, [x21, #8]
	str	w0, [x8]
	mov	x0, x22
	bl	_avio_rl32
	ldr	x8, [x21, #8]
	str	w0, [x8, #4]
	mov	x0, x22
	bl	_avio_rl32
	cmp	w0, #12
	b.ne	LBB0_2
; %bb.7:
	mov	x0, x22
	mov	w1, #8
	bl	_avio_skip
	mov	x0, x22
	bl	_avio_rl32
	cbz	w0, LBB0_11
; %bb.8:
	mov	x3, x0
	cmn	w0, #1
	b.ne	LBB0_12
; %bb.9:
	mov	x0, x21
	mov	w1, #32
	mov	w2, #1
	mov	w3, #1000
	bl	_avpriv_set_pts_info
	mov	w0, #0
	b	LBB0_3
LBB0_10:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_11:
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
	mov	x0, x20
	bl	_av_log
	mov	w3, #1
LBB0_12:
	mov	x0, x21
	mov	w1, #24
	mov	w2, #1
	bl	_avpriv_set_pts_info
	mov	w0, #0
	str	w19, [x21]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_WMV3,4,2           ; @AV_CODEC_ID_WMV3
	.comm	_VC1_EXTRADATA_SIZE,4,2         ; @VC1_EXTRADATA_SIZE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Zero FPS specified, defaulting to 1 FPS\n"

	.no_dead_strip	_vc1t_read_header
.subsections_via_symbols
