	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_read_mvhd
_mov_read_mvhd:                         ## @mov_read_mvhd
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_avio_r8
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_avio_rb24
	movq	%rbx, %rdi
	cmpl	$1, %r15d
	jne	LBB0_2
## %bb.1:
	callq	_avio_rb64
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_avio_rb64
	jmp	LBB0_3
LBB0_2:
	callq	_avio_rb32
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_avio_rb32
LBB0_3:
	movq	24(%r14), %rdx
	leaq	4(%rdx), %rdi
	movq	%r12, %rsi
	callq	_mov_metadata_creation_time
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	%rax, %rcx
	movl	%ecx, (%r14)
	testl	%ecx, %ecx
	jg	LBB0_5
## %bb.4:
	movq	24(%r14), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_av_log
	movl	$1, (%r14)
	movl	$1, %ecx
LBB0_5:
	movq	24(%r14), %rdi
	movq	_AV_LOG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_av_log
	movq	%rbx, %rdi
	cmpl	$1, %r15d
	jne	LBB0_7
## %bb.6:
	callq	_avio_rb64
	jmp	LBB0_8
LBB0_7:
	callq	_avio_rb32
LBB0_8:
	movq	%rax, 16(%r14)
	movl	(%r14), %edx
	testl	%edx, %edx
	jle	LBB0_11
## %bb.9:
	cmpl	$0, 32(%r14)
	jne	LBB0_11
## %bb.10:
	movq	_AV_TIME_BASE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_av_rescale
	movq	24(%r14), %rcx
	movl	%eax, (%rcx)
LBB0_11:
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	%rbx, %rdi
	callq	_avio_rb16
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_avio_skip
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	8(%r14), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	8(%r14), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 8(%rcx)
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	8(%r14), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 16(%rcx)
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	8(%r14), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	8(%r14), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, 8(%rcx)
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	8(%r14), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, 16(%rcx)
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	8(%r14), %rcx
	movq	16(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	8(%r14), %rcx
	movq	16(%rcx), %rcx
	movq	%rax, 8(%rcx)
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	8(%r14), %rcx
	movq	16(%rcx), %rcx
	movq	%rax, 16(%rcx)
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	%rbx, %rdi
	callq	_avio_rb32
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid mvhd time scale %d, defaulting to 1\n"

	.comm	_AV_LOG_TRACE,4,2               ## @AV_LOG_TRACE
L_.str.1:                               ## @.str.1
	.asciz	"time scale = %i\n"

	.comm	_AV_TIME_BASE,4,2               ## @AV_TIME_BASE
	.no_dead_strip	_mov_read_mvhd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_read_mvhd
_mov_read_mvhd:                         ; @mov_read_mvhd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_avio_r8
	mov	x21, x0
	mov	x0, x19
	bl	_avio_rb24
	mov	x0, x19
	cmp	w21, #1
	b.ne	LBB0_2
; %bb.1:
	bl	_avio_rb64
	mov	x22, x0
	mov	x0, x19
	bl	_avio_rb64
	b	LBB0_3
LBB0_2:
	bl	_avio_rb32
	mov	x22, x0
	mov	x0, x19
	bl	_avio_rb32
LBB0_3:
	ldr	x2, [x20, #24]
	add	x0, x2, #4
	mov	x1, x22
	bl	_mov_metadata_creation_time
	mov	x0, x19
	bl	_avio_rb32
	mov	x3, x0
	str	w3, [x20]
	cmp	w3, #0
	b.gt	LBB0_5
; %bb.4:
	ldr	x0, [x20, #24]
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
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_av_log
	mov	w3, #1
	str	w3, [x20]
LBB0_5:
	ldr	x0, [x20, #24]
Lloh5:
	adrp	x8, _AV_LOG_TRACE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_TRACE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_av_log
	mov	x0, x19
	cmp	w21, #1
	b.ne	LBB0_7
; %bb.6:
	bl	_avio_rb64
	b	LBB0_8
LBB0_7:
	bl	_avio_rb32
LBB0_8:
	str	x0, [x20, #16]
	ldr	w2, [x20]
	cmp	w2, #1
	b.lt	LBB0_11
; %bb.9:
	ldr	w8, [x20, #32]
	cbnz	w8, LBB0_11
; %bb.10:
Lloh10:
	adrp	x8, _AV_TIME_BASE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_TIME_BASE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_av_rescale
	ldr	x8, [x20, #24]
	str	w0, [x8]
LBB0_11:
	mov	x0, x19
	bl	_avio_rb32
	mov	x0, x19
	bl	_avio_rb16
	mov	x0, x19
	mov	w1, #10
	bl	_avio_skip
	mov	x0, x19
	bl	_avio_rb32
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	str	x0, [x8]
	mov	x0, x19
	bl	_avio_rb32
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	str	x0, [x8, #8]
	mov	x0, x19
	bl	_avio_rb32
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	str	x0, [x8, #16]
	mov	x0, x19
	bl	_avio_rb32
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	str	x0, [x8]
	mov	x0, x19
	bl	_avio_rb32
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	str	x0, [x8, #8]
	mov	x0, x19
	bl	_avio_rb32
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	str	x0, [x8, #16]
	mov	x0, x19
	bl	_avio_rb32
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #16]
	str	x0, [x8]
	mov	x0, x19
	bl	_avio_rb32
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #16]
	str	x0, [x8, #8]
	mov	x0, x19
	bl	_avio_rb32
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #16]
	str	x0, [x8, #16]
	mov	x0, x19
	bl	_avio_rb32
	mov	x0, x19
	bl	_avio_rb32
	mov	x0, x19
	bl	_avio_rb32
	mov	x0, x19
	bl	_avio_rb32
	mov	x0, x19
	bl	_avio_rb32
	mov	x0, x19
	bl	_avio_rb32
	mov	x0, x19
	bl	_avio_rb32
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid mvhd time scale %d, defaulting to 1\n"

	.comm	_AV_LOG_TRACE,4,2               ; @AV_LOG_TRACE
l_.str.1:                               ; @.str.1
	.asciz	"time scale = %i\n"

	.comm	_AV_TIME_BASE,4,2               ; @AV_TIME_BASE
	.no_dead_strip	_mov_read_mvhd
.subsections_via_symbols
