	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_trun_duration
_read_trun_duration:                    ## @read_trun_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_avio_r8
	movq	%r15, %rdi
	callq	_avio_rb24
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jg	LBB0_2
## %bb.1:
	movq	_MOV_TRUN_SAMPLE_DURATION@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_22
LBB0_2:
	movq	%r15, %rdi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_avio_rb32
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_MOV_TRUN_DATA_OFFSET@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_avio_rb32
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
LBB0_4:
	movq	_MOV_TRUN_FIRST_SAMPLE_FLAGS@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_avio_rb32
LBB0_6:
	movq	%r15, %rdi
	callq	_avio_tell
	xorl	%r14d, %r14d
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_24
## %bb.7:
	cmpl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_24
## %bb.8:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movl	$1, %r13d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	_MOV_TRUN_SAMPLE_DURATION@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_avio_rb32
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r15d
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_MOV_TRUN_SAMPLE_SIZE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_avio_rb32
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_MOV_TRUN_SAMPLE_FLAGS@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_avio_rb32
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%ebx, %esi
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_MOV_TRUN_SAMPLE_CTS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_avio_rb32
	movl	%eax, %esi
	addl	%ebx, %esi
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	testl	%r15d, %r15d
	js	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$1, %r13d
	cmovel	%esi, %r12d
	addl	%r15d, %esi
	movl	%r14d, %edi
	callq	_FFMAX
	movl	%eax, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_avio_tell
	cmpl	-64(%rbp), %r13d                ## 4-byte Folded Reload
	jge	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=1
	addl	%r15d, %ebx
	incl	%r13d
	cmpl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	jl	LBB0_9
LBB0_20:
	subl	%r12d, %r14d
	jmp	LBB0_24
LBB0_21:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_23
LBB0_22:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_23:
	movl	$-1, %r14d
LBB0_24:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MOV_TRUN_SAMPLE_DURATION,4,2   ## @MOV_TRUN_SAMPLE_DURATION
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No sample duration in trun flags\n"

	.comm	_MOV_TRUN_DATA_OFFSET,4,2       ## @MOV_TRUN_DATA_OFFSET
	.comm	_MOV_TRUN_FIRST_SAMPLE_FLAGS,4,2 ## @MOV_TRUN_FIRST_SAMPLE_FLAGS
	.comm	_MOV_TRUN_SAMPLE_SIZE,4,2       ## @MOV_TRUN_SAMPLE_SIZE
	.comm	_MOV_TRUN_SAMPLE_FLAGS,4,2      ## @MOV_TRUN_SAMPLE_FLAGS
	.comm	_MOV_TRUN_SAMPLE_CTS,4,2        ## @MOV_TRUN_SAMPLE_CTS
L_.str.1:                               ## @.str.1
	.asciz	"Negative sample duration %d\n"

	.no_dead_strip	_read_trun_duration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_trun_duration
_read_trun_duration:                    ; @read_trun_duration
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_avio_r8
	mov	x0, x21
	bl	_avio_rb24
	mov	x22, x0
	cmp	w20, #0
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MOV_TRUN_SAMPLE_DURATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MOV_TRUN_SAMPLE_DURATION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_22
LBB0_2:
	mov	x0, x21
	bl	_avio_rb32
	mov	x23, x0
Lloh3:
	adrp	x8, _MOV_TRUN_DATA_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MOV_TRUN_DATA_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_avio_rb32
LBB0_4:
Lloh6:
	adrp	x8, _MOV_TRUN_FIRST_SAMPLE_FLAGS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MOV_TRUN_FIRST_SAMPLE_FLAGS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_avio_rb32
LBB0_6:
	mov	x0, x21
	bl	_avio_tell
	mov	x8, x0
	mov	w0, #0
	cmp	w23, #1
	b.lt	LBB0_24
; %bb.7:
	cmp	w8, w19
	b.ge	LBB0_24
; %bb.8:
	mov	w24, #0
	mov	w26, #0
	mov	w27, #0
	mov	w28, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
Lloh9:
	adrp	x8, _MOV_TRUN_SAMPLE_DURATION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MOV_TRUN_SAMPLE_DURATION@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	x25, x20
	tst	w8, w22
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x21
	bl	_avio_rb32
	mov	x25, x0
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh12:
	adrp	x8, _MOV_TRUN_SAMPLE_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MOV_TRUN_SAMPLE_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x21
	bl	_avio_rb32
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh15:
	adrp	x8, _MOV_TRUN_SAMPLE_FLAGS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MOV_TRUN_SAMPLE_FLAGS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x21
	bl	_avio_rb32
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh18:
	adrp	x8, _MOV_TRUN_SAMPLE_CTS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MOV_TRUN_SAMPLE_CTS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x8]
	mov	x8, x27
	tst	w9, w22
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x21
	bl	_avio_rb32
	add	w8, w0, w27
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	tbnz	w25, #31, LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w28, #1
	csel	w26, w8, w26, eq
	add	w1, w8, w25
	mov	x0, x24
	bl	_FFMAX
	mov	x24, x0
	mov	x0, x21
	bl	_avio_tell
	cmp	w28, w23
	b.ge	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w27, w25, w27
	add	w28, w28, #1
	cmp	w0, w19
	b.lt	LBB0_9
LBB0_20:
	sub	w0, w24, w26
	b	LBB0_24
LBB0_21:
Lloh21:
	adrp	x8, _stderr@GOTPAGE
Lloh22:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	str	x25, [sp]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_23
LBB0_22:
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
LBB0_23:
	bl	_fprintf
	mov	w0, #-1
LBB0_24:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MOV_TRUN_SAMPLE_DURATION,4,2   ; @MOV_TRUN_SAMPLE_DURATION
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No sample duration in trun flags\n"

	.comm	_MOV_TRUN_DATA_OFFSET,4,2       ; @MOV_TRUN_DATA_OFFSET
	.comm	_MOV_TRUN_FIRST_SAMPLE_FLAGS,4,2 ; @MOV_TRUN_FIRST_SAMPLE_FLAGS
	.comm	_MOV_TRUN_SAMPLE_SIZE,4,2       ; @MOV_TRUN_SAMPLE_SIZE
	.comm	_MOV_TRUN_SAMPLE_FLAGS,4,2      ; @MOV_TRUN_SAMPLE_FLAGS
	.comm	_MOV_TRUN_SAMPLE_CTS,4,2        ; @MOV_TRUN_SAMPLE_CTS
l_.str.1:                               ; @.str.1
	.asciz	"Negative sample duration %d\n"

	.no_dead_strip	_read_trun_duration
.subsections_via_symbols
