	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_read_header
_mv_read_header:                        ## @mv_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r13
	movq	8(%rdi), %r15
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_avio_skip
	movq	%r13, %rdi
	callq	_avio_rb16
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	cmpl	$2, %ebx
	jne	LBB0_11
## %bb.2:
	movq	%r13, %rdi
	movl	$22, %esi
	callq	_avio_skip
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_46
## %bb.3:
	movq	%rax, %r15
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_46
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$64, %esi
	movl	$1, %edx
	movl	$15, %ecx
	callq	_avpriv_set_pts_info
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movl	16(%rbx), %edi
	callq	_av_inv_q
	movl	%eax, 20(%rbx)
	movq	%r13, %rdi
	callq	_avio_rb32
	movl	%eax, (%rbx)
	movq	%r13, %rdi
	callq	_avio_rb32
	cmpl	$2, %eax
	je	LBB0_22
## %bb.5:
	cmpl	$1, %eax
	jne	LBB0_23
## %bb.6:
	movq	_AV_CODEC_ID_MVC1@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%rbx), %rax
	movq	%rcx, 24(%rax)
	jmp	LBB0_24
LBB0_7:
	movq	%r13, %rdi
	callq	_avio_rb16
	cmpl	$3, %eax
	jne	LBB0_11
## %bb.8:
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_avio_skip
	movq	_parse_global_var@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_read_table
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_14
## %bb.9:
	movl	(%r15), %eax
	cmpl	$2, %eax
	jl	LBB0_15
## %bb.10:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_41
LBB0_11:
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_avpriv_request_sample
LBB0_12:
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	testl	%eax, %eax
	je	LBB0_35
## %bb.16:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_46
## %bb.17:
	movq	%rax, %rbx
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movq	_parse_audio_var@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_read_table
	testl	%eax, %eax
	js	LBB0_14
## %bb.18:
	movl	4(%r15), %edx
	movl	8(%r15), %ecx
	cmpl	$100, %edx
	jne	LBB0_37
## %bb.19:
	movq	_AUDIO_FORMAT_SIGNED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_37
## %bb.20:
	movq	8(%rbx), %rax
	cmpl	$16, 8(%rax)
	jne	LBB0_37
## %bb.21:
	movq	_AV_CODEC_ID_PCM_S16BE@GOTPCREL(%rip), %rcx
	jmp	LBB0_38
LBB0_22:
	movq	_AV_PIX_FMT_ARGB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	8(%rbx), %rax
	movl	%ecx, 56(%rax)
	movq	_AV_CODEC_ID_RAWVIDEO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 24(%rax)
	jmp	LBB0_24
LBB0_23:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_avpriv_request_sample
	movq	8(%rbx), %rax
LBB0_24:
	movq	$0, 48(%rax)
	movq	%r13, %rdi
	callq	_avio_rb32
	movq	8(%rbx), %rcx
	movq	%rax, 40(%rcx)
	movq	%r13, %rdi
	callq	_avio_rb32
	movq	8(%rbx), %rcx
	movq	%rax, 32(%rcx)
	movq	%r13, %rdi
	movl	$12, %esi
	callq	_avio_skip
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r15), %rcx
	movq	%rax, 16(%rcx)
	movl	(%rbx), %eax
	movl	%eax, (%r15)
	movq	%r13, %rdi
	callq	_avio_rb32
	movq	8(%r15), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	jle	LBB0_28
## %bb.25:
	movq	%r15, %rdi
	movl	$33, %esi
	movl	$1, %edx
	movl	%eax, %ecx
	callq	_avpriv_set_pts_info
	movq	%r13, %rdi
	callq	_avio_rb32
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_set_channels
	testq	%rax, %rax
	js	LBB0_34
## %bb.26:
	movq	%r13, %rdi
	callq	_avio_rb32
	movq	_AUDIO_FORMAT_SIGNED@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_29
## %bb.27:
	movq	_AV_CODEC_ID_PCM_S16BE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r15), %rcx
	movq	%rax, 24(%rcx)
	jmp	LBB0_30
LBB0_28:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_29:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_avpriv_request_sample
LBB0_30:
	movq	%r13, %rdi
	movl	$12, %esi
	callq	_avio_skip
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	$128, %edx
	callq	_var_read_metadata
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	$256, %edx                      ## imm = 0x100
	callq	_var_read_metadata
	movq	%r13, %rdi
	movl	$128, %esi
	callq	_avio_skip
	cmpl	$0, (%rbx)
	jle	LBB0_36
## %bb.31:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_avio_rb32
	movq	%r13, %r15
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_avio_rb32
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_avio_rb32
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_avio_feof
	testq	%rax, %rax
	jne	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_avio_skip
	movq	_AVINDEX_KEYFRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	callq	_av_add_index_entry
	addl	%r12d, %r13d
	movq	_AVINDEX_KEYFRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%ebx, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%r8d, %r8d
	callq	_av_add_index_entry
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	4(%rax), %ecx
	addl	%ecx, %ecx
	movl	%r12d, %eax
	xorl	%r12d, %r12d
	cltd
	idivl	%ecx
	addl	%eax, %r14d
	incl	%ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rax), %ebx
	movq	%r15, %r13
	jl	LBB0_32
	jmp	LBB0_14
LBB0_34:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_35:
	xorl	%ebx, %ebx
	jmp	LBB0_39
LBB0_37:
	movq	8(%rbx), %rax
	movl	8(%rax), %r8d
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_avpriv_request_sample
	movq	8(%rbx), %rax
	movq	_AV_CODEC_ID_NONE@GOTPCREL(%rip), %rcx
LBB0_38:
	movq	(%rcx), %rcx
	movq	%rcx, 24(%rax)
	cmpl	$0, 4(%rax)
	jle	LBB0_52
LBB0_39:
	movl	12(%r15), %eax
	cmpl	$2, %eax
	jl	LBB0_42
## %bb.40:
	leaq	L_.str.8(%rip), %rsi
LBB0_41:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_avpriv_request_sample
	jmp	LBB0_12
LBB0_42:
	testl	%eax, %eax
	je	LBB0_47
## %bb.43:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_46
## %bb.44:
	movq	%rax, %r12
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r12), %rcx
	movq	%rax, 16(%rcx)
	movq	_parse_video_var@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_read_table
	testl	%eax, %eax
	jns	LBB0_48
## %bb.45:
	movl	%eax, %r12d
	jmp	LBB0_14
LBB0_46:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_47:
	xorl	%r12d, %r12d
LBB0_48:
	cmpl	$0, (%r15)
	je	LBB0_50
## %bb.49:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_read_index
LBB0_50:
	cmpl	$0, 12(%r15)
	je	LBB0_36
## %bb.51:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_read_index
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_36:
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_52:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_MVC1,8,3           ## @AV_CODEC_ID_MVC1
	.comm	_AV_PIX_FMT_ARGB,4,2            ## @AV_PIX_FMT_ARGB
	.comm	_AV_CODEC_ID_RAWVIDEO,8,3       ## @AV_CODEC_ID_RAWVIDEO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Video compression %i"

	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Invalid sample rate %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AUDIO_FORMAT_SIGNED,4,2        ## @AUDIO_FORMAT_SIGNED
	.comm	_AV_CODEC_ID_PCM_S16BE,8,3      ## @AV_CODEC_ID_PCM_S16BE
L_.str.2:                               ## @.str.2
	.asciz	"Audio compression (format %i)"

L_.str.3:                               ## @.str.3
	.asciz	"title"

L_.str.4:                               ## @.str.4
	.asciz	"comment"

	.comm	_AVINDEX_KEYFRAME,4,2           ## @AVINDEX_KEYFRAME
	.comm	_parse_global_var,4,2           ## @parse_global_var
L_.str.5:                               ## @.str.5
	.asciz	"Multiple audio streams support"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.comm	_parse_audio_var,4,2            ## @parse_audio_var
L_.str.6:                               ## @.str.6
	.asciz	"Audio compression %i (format %i, sr %i)"

	.comm	_AV_CODEC_ID_NONE,8,3           ## @AV_CODEC_ID_NONE
L_.str.7:                               ## @.str.7
	.asciz	"No valid channel count found.\n"

L_.str.8:                               ## @.str.8
	.asciz	"Multiple video streams support"

	.comm	_parse_video_var,4,2            ## @parse_video_var
L_.str.9:                               ## @.str.9
	.asciz	"Version %i"

	.no_dead_strip	_mv_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv_read_header
_mv_read_header:                        ; @mv_read_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x0
	ldp	x19, x24, [x0]
	mov	x0, x19
	mov	w1, #4
	bl	_avio_skip
	mov	x0, x19
	bl	_avio_rb16
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.1:
	cmp	w21, #2
	b.ne	LBB0_11
; %bb.2:
	mov	x0, x19
	mov	w1, #22
	bl	_avio_skip
	mov	x0, x20
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_45
; %bb.3:
	mov	x21, x0
	mov	x0, x20
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_45
; %bb.4:
	mov	x22, x0
	mov	w1, #64
	mov	w2, #1
	mov	w3, #15
	bl	_avpriv_set_pts_info
Lloh0:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x22, #8]
	str	x8, [x9, #16]
	ldr	w0, [x22, #16]
	bl	_av_inv_q
	str	w0, [x22, #20]
	mov	x0, x19
	bl	_avio_rb32
	str	w0, [x22]
	mov	x0, x19
	bl	_avio_rb32
	cmp	w0, #2
	b.eq	LBB0_22
; %bb.5:
	cmp	w0, #1
	b.ne	LBB0_23
; %bb.6:
Lloh3:
	adrp	x8, _AV_CODEC_ID_MVC1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_CODEC_ID_MVC1@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x8]
	ldr	x8, [x22, #8]
	str	x9, [x8, #24]
	b	LBB0_24
LBB0_7:
	mov	x0, x19
	bl	_avio_rb16
	cmp	w0, #3
	b.ne	LBB0_11
; %bb.8:
	mov	x0, x19
	mov	w1, #4
	bl	_avio_skip
Lloh6:
	adrp	x8, _parse_global_var@GOTPAGE
Lloh7:
	ldr	x8, [x8, _parse_global_var@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, #0
	bl	_read_table
	mov	x23, x0
	tbnz	w0, #31, LBB0_14
; %bb.9:
	ldr	w8, [x24]
	cmp	w8, #2
	b.lt	LBB0_15
; %bb.10:
Lloh9:
	adrp	x1, l_.str.5@PAGE
Lloh10:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_11:
	str	x21, [sp]
Lloh11:
	adrp	x1, l_.str.9@PAGE
Lloh12:
	add	x1, x1, l_.str.9@PAGEOFF
LBB0_12:
	mov	x0, x20
	bl	_avpriv_request_sample
Lloh13:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
LBB0_13:
	ldr	w23, [x8]
LBB0_14:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_15:
	cbz	w8, LBB0_36
; %bb.16:
	mov	x0, x20
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_45
; %bb.17:
	mov	x21, x0
Lloh15:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x9, [x0, #8]
	str	x8, [x9, #16]
Lloh18:
	adrp	x8, _parse_audio_var@GOTPAGE
Lloh19:
	ldr	x8, [x8, _parse_audio_var@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_read_table
	tbnz	w0, #31, LBB0_14
; %bb.18:
	ldp	w8, w9, [x24, #4]
	cmp	w8, #100
	b.ne	LBB0_37
; %bb.19:
Lloh21:
	adrp	x10, _AUDIO_FORMAT_SIGNED@GOTPAGE
Lloh22:
	ldr	x10, [x10, _AUDIO_FORMAT_SIGNED@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_37
; %bb.20:
	ldr	x10, [x21, #8]
	ldr	w11, [x10, #8]
	cmp	w11, #16
	b.ne	LBB0_37
; %bb.21:
Lloh24:
	adrp	x8, _AV_CODEC_ID_PCM_S16BE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_CODEC_ID_PCM_S16BE@GOTPAGEOFF]
	b	LBB0_38
LBB0_22:
Lloh26:
	adrp	x8, _AV_PIX_FMT_ARGB@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AV_PIX_FMT_ARGB@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x8]
	ldr	x8, [x22, #8]
	str	w9, [x8, #56]
Lloh29:
	adrp	x9, _AV_CODEC_ID_RAWVIDEO@GOTPAGE
Lloh30:
	ldr	x9, [x9, _AV_CODEC_ID_RAWVIDEO@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	str	x9, [x8, #24]
	b	LBB0_24
LBB0_23:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_avpriv_request_sample
	ldr	x8, [x22, #8]
LBB0_24:
	str	xzr, [x8, #48]
	mov	x0, x19
	bl	_avio_rb32
	ldr	x8, [x22, #8]
	str	x0, [x8, #40]
	mov	x0, x19
	bl	_avio_rb32
	ldr	x8, [x22, #8]
	str	x0, [x8, #32]
	mov	x0, x19
	mov	w1, #12
	bl	_avio_skip
Lloh34:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	ldr	x9, [x21, #8]
	str	x8, [x9, #16]
	ldr	w8, [x22]
	str	w8, [x21]
	mov	x0, x19
	bl	_avio_rb32
	mov	x3, x0
	ldr	x8, [x21, #8]
	str	w3, [x8]
	cmp	w3, #0
	b.le	LBB0_28
; %bb.25:
	mov	x0, x21
	mov	w1, #33
	mov	w2, #1
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_avpriv_set_pts_info
	mov	x0, x19
	bl	_avio_rb32
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_set_channels
	tbnz	x0, #63, LBB0_30
; %bb.26:
	mov	x0, x19
	bl	_avio_rb32
Lloh37:
	adrp	x8, _AUDIO_FORMAT_SIGNED@GOTPAGE
Lloh38:
	ldr	x8, [x8, _AUDIO_FORMAT_SIGNED@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_31
; %bb.27:
Lloh40:
	adrp	x8, _AV_CODEC_ID_PCM_S16BE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _AV_CODEC_ID_PCM_S16BE@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	ldr	x9, [x21, #8]
	str	x8, [x9, #24]
	b	LBB0_32
LBB0_28:
Lloh43:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
                                        ; kill: def $w3 killed $w3 killed $x3 def $x3
	str	x3, [sp]
Lloh46:
	adrp	x2, l_.str.1@PAGE
Lloh47:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_29:
	mov	x0, x20
	bl	_av_log
LBB0_30:
Lloh48:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh49:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	b	LBB0_13
LBB0_31:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
Lloh50:
	adrp	x1, l_.str.2@PAGE
Lloh51:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_avpriv_request_sample
LBB0_32:
	mov	x0, x19
	mov	w1, #12
	bl	_avio_skip
Lloh52:
	adrp	x1, l_.str.3@PAGE
Lloh53:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	w2, #128
	bl	_var_read_metadata
Lloh54:
	adrp	x1, l_.str.4@PAGE
Lloh55:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	w2, #256
	bl	_var_read_metadata
	mov	x0, x19
	mov	w1, #128
	bl	_avio_skip
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_51
; %bb.33:
	mov	w20, #0
	mov	w24, #0
Lloh56:
	adrp	x27, _AVINDEX_KEYFRAME@GOTPAGE
Lloh57:
	ldr	x27, [x27, _AVINDEX_KEYFRAME@GOTPAGEOFF]
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_avio_rb32
	mov	x23, x0
	mov	x0, x19
	bl	_avio_rb32
	mov	x25, x0
	mov	x0, x19
	bl	_avio_rb32
	mov	x26, x0
	mov	x0, x19
	bl	_avio_feof
	cbnz	x0, LBB0_30
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=1
	mov	x0, x19
	mov	w1, #8
	bl	_avio_skip
	ldr	w5, [x27]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	mov	x3, x25
	mov	w4, #0
	bl	_av_add_index_entry
	add	w1, w25, w23
	ldr	w5, [x27]
	mov	x0, x22
	mov	x2, x24
	mov	x3, x26
	mov	w4, #0
	bl	_av_add_index_entry
	mov	w23, #0
	ldr	x8, [x21, #8]
	ldr	w8, [x8, #4]
	lsl	w8, w8, #1
	sdiv	w8, w25, w8
	add	w20, w8, w20
	add	w24, w24, #1
	ldr	w8, [x22]
	cmp	w24, w8
	b.lt	LBB0_34
	b	LBB0_14
LBB0_36:
	mov	x21, #0
	b	LBB0_39
LBB0_37:
	ldr	x10, [x21, #8]
	ldr	w10, [x10, #8]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh58:
	adrp	x1, l_.str.6@PAGE
Lloh59:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_avpriv_request_sample
	ldr	x10, [x21, #8]
Lloh60:
	adrp	x8, _AV_CODEC_ID_NONE@GOTPAGE
Lloh61:
	ldr	x8, [x8, _AV_CODEC_ID_NONE@GOTPAGEOFF]
LBB0_38:
	ldr	x8, [x8]
	str	x8, [x10, #24]
	ldr	w8, [x10, #4]
	cmp	w8, #1
	b.lt	LBB0_52
LBB0_39:
	ldr	w8, [x24, #12]
	cmp	w8, #1
	b.le	LBB0_41
; %bb.40:
Lloh62:
	adrp	x1, l_.str.8@PAGE
Lloh63:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_12
LBB0_41:
	cbz	w8, LBB0_46
; %bb.42:
	mov	x0, x20
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_45
; %bb.43:
	mov	x22, x0
Lloh64:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh65:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh66:
	ldr	x8, [x8]
	ldr	x9, [x0, #8]
	str	x8, [x9, #16]
Lloh67:
	adrp	x8, _parse_video_var@GOTPAGE
Lloh68:
	ldr	x8, [x8, _parse_video_var@GOTPAGEOFF]
Lloh69:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x22
	bl	_read_table
	tbz	w0, #31, LBB0_47
; %bb.44:
	mov	x23, x0
	b	LBB0_14
LBB0_45:
Lloh70:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh71:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh72:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_AVERROR
LBB0_46:
	mov	x22, #0
LBB0_47:
	ldr	w8, [x24]
	cbz	w8, LBB0_49
; %bb.48:
	mov	x0, x19
	mov	x1, x21
	bl	_read_index
LBB0_49:
	ldr	w8, [x24, #12]
	cbz	w8, LBB0_51
; %bb.50:
	mov	x0, x19
	mov	x1, x22
	bl	_read_index
	mov	w23, #0
	b	LBB0_14
LBB0_51:
	mov	w23, #0
	b	LBB0_14
LBB0_52:
Lloh73:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh74:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh75:
	ldr	w1, [x8]
Lloh76:
	adrp	x2, l_.str.7@PAGE
Lloh77:
	add	x2, x2, l_.str.7@PAGEOFF
	b	LBB0_29
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_MVC1,8,3           ; @AV_CODEC_ID_MVC1
	.comm	_AV_PIX_FMT_ARGB,4,2            ; @AV_PIX_FMT_ARGB
	.comm	_AV_CODEC_ID_RAWVIDEO,8,3       ; @AV_CODEC_ID_RAWVIDEO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Video compression %i"

	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Invalid sample rate %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AUDIO_FORMAT_SIGNED,4,2        ; @AUDIO_FORMAT_SIGNED
	.comm	_AV_CODEC_ID_PCM_S16BE,8,3      ; @AV_CODEC_ID_PCM_S16BE
l_.str.2:                               ; @.str.2
	.asciz	"Audio compression (format %i)"

l_.str.3:                               ; @.str.3
	.asciz	"title"

l_.str.4:                               ; @.str.4
	.asciz	"comment"

	.comm	_AVINDEX_KEYFRAME,4,2           ; @AVINDEX_KEYFRAME
	.comm	_parse_global_var,4,2           ; @parse_global_var
l_.str.5:                               ; @.str.5
	.asciz	"Multiple audio streams support"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.comm	_parse_audio_var,4,2            ; @parse_audio_var
l_.str.6:                               ; @.str.6
	.asciz	"Audio compression %i (format %i, sr %i)"

	.comm	_AV_CODEC_ID_NONE,8,3           ; @AV_CODEC_ID_NONE
l_.str.7:                               ; @.str.7
	.asciz	"No valid channel count found.\n"

l_.str.8:                               ; @.str.8
	.asciz	"Multiple video streams support"

	.comm	_parse_video_var,4,2            ; @parse_video_var
l_.str.9:                               ; @.str.9
	.asciz	"Version %i"

	.no_dead_strip	_mv_read_header
.subsections_via_symbols
