	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_moof_duration
_read_moof_duration:                    ## @read_moof_duration
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_avio_seek
	movq	%r12, %rdi
	callq	_avio_rb32
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_avio_rb32
	movq	%rax, %r15
	movl	$109, %edi
	movl	$111, %esi
	movl	$111, %edx
	movl	$102, %ecx
	callq	_MKBETAG
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_expect_tag
	testq	%rax, %rax
	jne	LBB0_18
## %bb.1:
	addq	%r14, %rbx
	jle	LBB0_16
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r14
	movq	%r12, %rdi
	callq	_avio_tell
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_avio_rb32
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_avio_rb32
	movq	%rax, %r15
	movl	$116, %edi
	movl	$114, %esi
	movl	$97, %edx
	movl	$102, %ecx
	callq	_MKBETAG
	leaq	(%rbx,%r13), %rsi
	cmpq	%rax, %r15
	je	LBB0_3
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_avio_seek
	movq	%r14, %rbx
	cmpq	%r14, %r13
	jl	LBB0_2
LBB0_16:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_17
LBB0_3:
	testq	%rbx, %rbx
	jle	LBB0_14
## %bb.4:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, %r14
	movq	%r12, %rdi
	callq	_avio_tell
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_avio_rb32
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_avio_rb32
	movq	%rax, %r15
	movl	$116, %edi
	movl	$102, %esi
	movl	$104, %edx
	movl	$100, %ecx
	callq	_MKBETAG
	cmpq	%rax, %r15
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_avio_r8
	movq	%r12, %rdi
	callq	_avio_rb24
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_avio_rb32
	movq	_MOV_TFHD_BASE_DATA_OFFSET@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_avio_rb64
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_MOV_TFHD_STSD_ID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_avio_rb32
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_MOV_TFHD_DEFAULT_DURATION@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_avio_rb32
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$116, %edi
	movl	$114, %esi
	movl	$117, %edx
	movl	$110, %ecx
	callq	_MKBETAG
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, %r13
	cmpq	%rax, %r15
	je	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rcx, %rbx
	callq	_avio_seek
	movq	%r14, %rsi
	cmpq	%r14, %rbx
	jl	LBB0_5
LBB0_14:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_17:
	callq	_fprintf
LBB0_18:
	movq	$-1, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r13, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_read_trun_duration             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_MOV_TFHD_BASE_DATA_OFFSET,4,2  ## @MOV_TFHD_BASE_DATA_OFFSET
	.comm	_MOV_TFHD_STSD_ID,4,2           ## @MOV_TFHD_STSD_ID
	.comm	_MOV_TFHD_DEFAULT_DURATION,4,2  ## @MOV_TFHD_DEFAULT_DURATION
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't find trun\n"

L_.str.1:                               ## @.str.1
	.asciz	"Couldn't find traf\n"

	.no_dead_strip	_read_moof_duration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_moof_duration
_read_moof_duration:                    ; @read_moof_duration
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x26, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x26, [x26, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x26]
	bl	_avio_seek
	mov	x0, x19
	bl	_avio_rb32
	mov	x21, x0
	mov	x0, x19
	bl	_avio_rb32
	mov	x22, x0
	mov	w0, #109
	mov	w1, #111
	mov	w2, #111
	mov	w3, #102
	bl	_MKBETAG
	mov	x1, x0
	mov	x0, x22
	bl	_expect_tag
	cbnz	x0, LBB0_18
; %bb.1:
	add	x24, x21, x20
	cmp	x24, #1
	b.lt	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_avio_tell
	mov	x21, x0
	mov	x0, x19
	bl	_avio_rb32
	mov	x22, x0
	mov	x0, x19
	bl	_avio_rb32
	mov	x23, x0
	mov	w0, #116
	mov	w1, #114
	mov	w2, #97
	mov	w3, #102
	bl	_MKBETAG
	add	x20, x22, x21
	cmp	x23, x0
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x26]
	mov	x0, x19
	mov	x1, x20
	bl	_avio_seek
	cmp	x21, x24
	b.lt	LBB0_2
LBB0_4:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_5:
	cmp	x22, #1
	b.lt	LBB0_16
; %bb.6:
	mov	w21, #0
Lloh7:
	adrp	x28, _MOV_TFHD_STSD_ID@GOTPAGE
Lloh8:
	ldr	x28, [x28, _MOV_TFHD_STSD_ID@GOTPAGEOFF]
Lloh9:
	adrp	x27, _MOV_TFHD_DEFAULT_DURATION@GOTPAGE
Lloh10:
	ldr	x27, [x27, _MOV_TFHD_DEFAULT_DURATION@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_avio_tell
	mov	x22, x0
	mov	x0, x19
	bl	_avio_rb32
	mov	x23, x0
	mov	x0, x19
	bl	_avio_rb32
	mov	x24, x0
	mov	w0, #116
	mov	w1, #102
	mov	w2, #104
	mov	w3, #100
	bl	_MKBETAG
	cmp	x24, x0
	b.ne	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_avio_r8
	mov	x0, x19
	bl	_avio_rb24
	mov	x25, x0
	mov	x0, x19
	bl	_avio_rb32
Lloh11:
	adrp	x8, _MOV_TFHD_BASE_DATA_OFFSET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MOV_TFHD_BASE_DATA_OFFSET@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_avio_rb64
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x28]
	tst	w8, w25
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_avio_rb32
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x27]
	tst	w8, w25
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_avio_rb32
	mov	x21, x0
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #116
	mov	w1, #114
	mov	w2, #117
	mov	w3, #110
	bl	_MKBETAG
	add	x8, x23, x22
	cmp	x24, x0
	b.eq	LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x26]
	mov	x0, x19
	mov	x1, x8
	bl	_avio_seek
	cmp	x22, x20
	b.lt	LBB0_7
LBB0_16:
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
LBB0_17:
	bl	_fprintf
LBB0_18:
	mov	x0, #-1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_read_trun_duration
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_MOV_TFHD_BASE_DATA_OFFSET,4,2  ; @MOV_TFHD_BASE_DATA_OFFSET
	.comm	_MOV_TFHD_STSD_ID,4,2           ; @MOV_TFHD_STSD_ID
	.comm	_MOV_TFHD_DEFAULT_DURATION,4,2  ; @MOV_TFHD_DEFAULT_DURATION
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't find trun\n"

l_.str.1:                               ; @.str.1
	.asciz	"Couldn't find traf\n"

	.no_dead_strip	_read_moof_duration
.subsections_via_symbols
