	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_read_stts
_mov_read_stts:                         ## @mov_read_stts
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -68(%rbp)
	movq	(%rdi), %rcx
	movl	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_24
## %bb.1:
	movq	%rdi, %r12
	movq	8(%rcx), %rcx
	decl	%eax
	movq	(%rcx,%rax,8), %r14
	movq	%rsi, %rbx
	movq	16(%r14), %r15
	movq	%rsi, %rdi
	callq	_avio_r8
	movq	%rbx, %rdi
	callq	_avio_rb24
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	%rax, %r13
	movq	(%r12), %rdi
	movq	_AV_LOG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rdi), %ecx
	decl	%ecx
	leaq	L_.str(%rip), %rdx
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_av_log
	leaq	16(%r15), %rbx
	cmpq	$0, 16(%r15)
	je	LBB0_3
## %bb.2:
	movq	(%r12), %rdi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
LBB0_3:
	movq	%rbx, %rdi
	callq	_av_freep
	movl	$0, (%r15)
	movl	%r13d, %ecx
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shrq	$3, %rax
	cmpq	%rax, %rcx
	jae	LBB0_9
## %bb.4:
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.5:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	xorl	%edi, %edi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r15)
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rbx
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, -64(%rbp)                 ## 4-byte Spill
	leaq	1(%r14), %r15
	movl	%r15d, %edi
	movl	$1048576, %esi                  ## imm = 0x100000
	callq	_FFMAX
	movq	%rax, %rdi
	movl	%r13d, %esi
	callq	_FFMIN
	movq	%rax, %r13
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	leal	(,%r13,8), %edx
	leaq	-68(%rbp), %rsi
	callq	_av_fast_realloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	%r13d, (%r12)
	movq	%rax, 16(%r12)
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	movq	%rbx, %r15
	movq	%rax, %rbx
	movq	16(%r12), %rax
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movl	%r13d, (%rax,%r14,8)
	movl	%ebx, 4(%rax,%r14,8)
	movq	(%r12), %rdi
	movq	_AV_LOG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movl	%r13d, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_av_log
	imull	%r13d, %ebx
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	addl	%ebx, %esi
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	addl	%r13d, %edi
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	%rax, %r14
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rax, %rcx
	movq	-104(%rbp), %r13                ## 8-byte Reload
	jne	LBB0_6
	jmp	LBB0_13
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	jne	LBB0_18
## %bb.11:
	movl	$0, (%r14)
	jmp	LBB0_22
LBB0_12:
	movl	%r14d, %r13d
LBB0_13:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%r13d, (%r15)
	testl	%esi, %esi
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_17
## %bb.14:
	movq	_INT64_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	4(%r15), %eax
	subl	%eax, %ecx
	cmpl	%ecx, %esi
	jg	LBB0_17
## %bb.15:
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	8(%r15), %ecx
	subl	%ecx, %edx
	cmpl	%edx, %edi
	jg	LBB0_17
## %bb.16:
	addl	%esi, %eax
	movl	%eax, 4(%r15)
	addl	%edi, %ecx
	movl	%ecx, 8(%r15)
LBB0_17:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_20
LBB0_18:
	movq	(%r12), %rdi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_25
LBB0_19:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_freep
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_25
LBB0_20:
	movl	%edi, (%r14)
	testl	%esi, %esi
	je	LBB0_22
## %bb.21:
	movq	8(%r14), %rdi
	movl	%esi, %ebx
	callq	_FFMIN
	movq	%rax, 8(%r14)
	jmp	LBB0_23
LBB0_22:
	xorl	%ebx, %ebx
LBB0_23:
	movl	%ebx, 12(%r15)
LBB0_24:
	xorl	%eax, %eax
LBB0_25:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_TRACE,4,2               ## @AV_LOG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"track[%u].stts.entries = %u\n"

	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Duplicated STTS atom\n"

	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"sample_count=%d, sample_duration=%d\n"

	.comm	_INT64_MAX,4,2                  ## @INT64_MAX
L_.str.3:                               ## @.str.3
	.asciz	"reached eof, corrupted STTS atom\n"

	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.no_dead_strip	_mov_read_stts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_read_stts
_mov_read_stts:                         ; @mov_read_stts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	str	wzr, [sp, #44]
	ldr	x8, [x0]
	ldr	w9, [x8]
	subs	w9, w9, #1
	b.lt	LBB0_17
; %bb.1:
	mov	x20, x1
	mov	x24, x0
	ldr	x8, [x8, #8]
	ldr	x19, [x8, w9, uxtw #3]
	ldr	x28, [x19, #16]
	mov	x0, x1
	bl	_avio_r8
	mov	x0, x20
	bl	_avio_rb24
	mov	x0, x20
	bl	_avio_rb32
	mov	x22, x0
	ldr	x0, [x24]
Lloh0:
	adrp	x8, _AV_LOG_TRACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_TRACE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w8, [x0]
	sub	w8, w8, #1
	stp	x8, x22, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	mov	x23, x28
	ldr	x8, [x23, #16]!
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x0, [x24]
Lloh5:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
LBB0_3:
	mov	x0, x23
	bl	_av_freep
	str	wzr, [x28]
	and	x8, x22, #0xffffffff
Lloh10:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh11:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh12:
	ldrsw	x9, [x9]
	cmp	x8, x9, lsr #3
	b.hs	LBB0_18
; %bb.4:
	cbz	w22, LBB0_19
; %bb.5:
	str	x24, [sp, #32]                  ; 8-byte Folded Spill
	str	x19, [sp, #16]                  ; 8-byte Folded Spill
	mov	x19, #0
	mov	w24, #0
	mov	w21, #0
	mov	w25, #0
	lsl	x8, x8, #3
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	cbnz	x8, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w24, w24, #1
	mov	x0, x24
	mov	w1, #1048576
	bl	_FFMAX
	mov	x1, x22
	bl	_FFMIN
	mov	x26, x0
	ldr	x0, [x23]
	lsl	w2, w26, #3
	add	x1, sp, #44
	bl	_av_fast_realloc
	cbz	x0, LBB0_21
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w26, [x28]
	str	x0, [x28, #16]
	mov	x0, x20
	bl	_avio_rb32
	mov	x26, x0
	mov	x0, x20
	bl	_avio_rb32
	mov	x27, x0
	ldr	x8, [x28, #16]
	add	x8, x8, x19
	stp	w26, w27, [x8]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	x0, [x8]
Lloh13:
	adrp	x8, _AV_LOG_TRACE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_TRACE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	stp	x26, x27, [sp]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_av_log
	madd	w21, w27, w26, w21
	add	w25, w25, w26
	add	x19, x19, #8
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x8, x19
	b.ne	LBB0_6
; %bb.9:
	mov	x24, x22
LBB0_10:
	str	w24, [x28]
	cmp	w21, #1
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	b.lt	LBB0_14
; %bb.11:
Lloh18:
	adrp	x8, _INT64_MAX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _INT64_MAX@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x8]
	ldr	w8, [x28, #4]
	sub	w9, w9, w8
	cmp	w21, w9
	b.gt	LBB0_14
; %bb.12:
Lloh21:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh22:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x9]
	ldr	w9, [x28, #8]
	sub	w10, w10, w9
	cmp	w25, w10
	b.gt	LBB0_14
; %bb.13:
	add	w8, w8, w21
	add	w9, w9, w25
	stp	w8, w9, [x28, #4]
LBB0_14:
	ldr	x8, [x20]
	ldr	x24, [sp, #32]                  ; 8-byte Folded Reload
	cbnz	x8, LBB0_20
; %bb.15:
	str	w25, [x19]
	cbz	w21, LBB0_23
; %bb.16:
	ldr	x0, [x19, #8]
	mov	x1, x21
	bl	_FFMIN
	str	x0, [x19, #8]
	b	LBB0_23
LBB0_17:
	mov	w0, #0
	b	LBB0_24
LBB0_18:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_AVERROR
LBB0_19:
	ldr	x8, [x20]
	cbz	x8, LBB0_22
LBB0_20:
	ldr	x0, [x24]
Lloh27:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str.3@PAGE
Lloh31:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_av_log
Lloh32:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	b	LBB0_24
LBB0_21:
	mov	x0, x23
	bl	_av_freep
	str	wzr, [x28]
Lloh35:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_24
LBB0_22:
	mov	w21, #0
	str	wzr, [x19]
LBB0_23:
	mov	w0, #0
	str	w21, [x28, #12]
LBB0_24:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_TRACE,4,2               ; @AV_LOG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"track[%u].stts.entries = %u\n"

	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Duplicated STTS atom\n"

	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"sample_count=%d, sample_duration=%d\n"

	.comm	_INT64_MAX,4,2                  ; @INT64_MAX
l_.str.3:                               ; @.str.3
	.asciz	"reached eof, corrupted STTS atom\n"

	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.no_dead_strip	_mov_read_stts
.subsections_via_symbols
