	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv9_read_file_header
_rv9_read_file_header:                  ## @rv9_read_file_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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-52(%rbp), %rsi
	movl	$12, %edx
	callq	_PEEK_BYTES
	cmpl	$12, %eax
	jne	LBB0_12
## %bb.1:
	leaq	-52(%rbp), %rdi
	callq	_BI32
	movl	%eax, %r15d
	leal	-1025(%r15), %eax
	cmpl	$-1014, %eax                    ## imm = 0xFC0A
	ja	LBB0_3
LBB0_2:
	movq	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_3:
	movd	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movd	%xmm0, %eax
	cmpl	$1329875286, %eax               ## imm = 0x4F444956
	jne	LBB0_2
## %bb.4:
	cmpb	$82, -44(%rbp)
	jne	LBB0_2
## %bb.5:
	cmpb	$86, -43(%rbp)
	jne	LBB0_2
## %bb.6:
	cmpb	$48, -41(%rbp)
	jne	LBB0_2
## %bb.7:
	movsbl	-42(%rbp), %eax
	leal	-49(%rax), %ecx
	cmpl	$4, %ecx
	jae	LBB0_2
## %bb.8:
	testq	%r14, %r14
	je	LBB0_16
## %bb.9:
	cltq
	leaq	l_switch.table.rv9_read_file_header(%rip), %rcx
	movq	-392(%rcx,%rax,8), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_vc_container_track_allocate_extradata
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.10:
	movq	(%r14), %rax
	movl	8(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_READ_BYTES
	cmpl	%r15d, %eax
	jne	LBB0_12
## %bb.11:
	movq	(%r14), %rax
	movl	%r15d, (%rax)
	movl	%r12d, 4(%rax)
	movq	%rbx, %rdi
	callq	_STREAM_STATUS
	jmp	LBB0_14
LBB0_12:
	movq	_VC_CONTAINER_ERROR_EOS@GOTPCREL(%rip), %rax
LBB0_13:
	movq	(%rax), %rax
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_17
## %bb.15:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_ERROR_EOS,8,3     ## @VC_CONTAINER_ERROR_EOS
	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,8,3 ## @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
	.comm	_VC_CONTAINER_CODEC_RV40,4,2    ## @VC_CONTAINER_CODEC_RV40
	.comm	_VC_CONTAINER_CODEC_RV30,4,2    ## @VC_CONTAINER_CODEC_RV30
	.comm	_VC_CONTAINER_CODEC_RV20,4,2    ## @VC_CONTAINER_CODEC_RV20
	.comm	_VC_CONTAINER_CODEC_RV10,4,2    ## @VC_CONTAINER_CODEC_RV10
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.no_dead_strip	_rv9_read_file_header
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.rv9_read_file_header
l_switch.table.rv9_read_file_header:
	.quad	_VC_CONTAINER_CODEC_RV10
	.quad	_VC_CONTAINER_CODEC_RV20
	.quad	_VC_CONTAINER_CODEC_RV30
	.quad	_VC_CONTAINER_CODEC_RV40

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rv9_read_file_header
_rv9_read_file_header:                  ; @rv9_read_file_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	add	x1, sp, #12
	mov	w2, #12
	bl	_PEEK_BYTES
	cmp	w0, #12
	b.ne	LBB0_12
; %bb.1:
	add	x0, sp, #12
	bl	_BI32
	sub	w8, w0, #1025
	cmn	w8, #1014
	b.hi	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGEOFF]
	b	LBB0_13
LBB0_3:
	ldr	s0, [sp, #16]
	ushll.8h	v0, v0, #0
	xtn.8b	v0, v0
	fmov	w8, s0
	mov	w9, #18774
	movk	w9, #20292, lsl #16
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.4:
	ldrb	w8, [sp, #20]
	cmp	w8, #82
	b.ne	LBB0_2
; %bb.5:
	ldrb	w8, [sp, #21]
	cmp	w8, #86
	b.ne	LBB0_2
; %bb.6:
	ldrb	w8, [sp, #23]
	cmp	w8, #48
	b.ne	LBB0_2
; %bb.7:
	ldrsb	x8, [sp, #22]
	sub	x8, x8, #49
	cmp	w8, #4
	b.hs	LBB0_2
; %bb.8:
	cbz	x20, LBB0_16
; %bb.9:
	mov	x21, x0
Lloh5:
	adrp	x9, l_switch.table.rv9_read_file_header@PAGE
Lloh6:
	add	x9, x9, l_switch.table.rv9_read_file_header@PAGEOFF
	ldr	x8, [x9, x8, lsl #3]
	ldr	w22, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_vc_container_track_allocate_extradata
Lloh7:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.10:
	ldr	x8, [x20]
	ldr	w1, [x8, #8]
	mov	x0, x19
	mov	x2, x21
	bl	_READ_BYTES
	cmp	w0, w21
	b.ne	LBB0_12
; %bb.11:
	ldr	x8, [x20]
	stp	w21, w22, [x8]
	mov	x0, x19
	bl	_STREAM_STATUS
	b	LBB0_14
LBB0_12:
Lloh10:
	adrp	x8, _VC_CONTAINER_ERROR_EOS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_EOS@GOTPAGEOFF]
LBB0_13:
	ldr	x0, [x8]
LBB0_14:
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.15:
	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
	add	sp, sp, #80
	ret
LBB0_16:
Lloh15:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	b	LBB0_13
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_ERROR_EOS,8,3     ; @VC_CONTAINER_ERROR_EOS
	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,8,3 ; @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
	.comm	_VC_CONTAINER_CODEC_RV40,4,2    ; @VC_CONTAINER_CODEC_RV40
	.comm	_VC_CONTAINER_CODEC_RV30,4,2    ; @VC_CONTAINER_CODEC_RV30
	.comm	_VC_CONTAINER_CODEC_RV20,4,2    ; @VC_CONTAINER_CODEC_RV20
	.comm	_VC_CONTAINER_CODEC_RV10,4,2    ; @VC_CONTAINER_CODEC_RV10
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.no_dead_strip	_rv9_read_file_header
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.rv9_read_file_header
l_switch.table.rv9_read_file_header:
	.quad	_VC_CONTAINER_CODEC_RV10
	.quad	_VC_CONTAINER_CODEC_RV20
	.quad	_VC_CONTAINER_CODEC_RV30
	.quad	_VC_CONTAINER_CODEC_RV40

.subsections_via_symbols
