	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_read_stss
_mov_read_stss:                         ## @mov_read_stss
	.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	(%rdi), %rcx
	movl	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rcx), %rcx
	decl	%eax
	movq	(%rcx,%rax,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %r15
	movq	%rsi, %rdi
	callq	_avio_r8
	movq	%rbx, %rdi
	callq	_avio_rb24
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	%rax, %r13
	movq	(%r14), %rdi
	movq	_AV_LOG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%r12d, %r12d
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	testl	%r13d, %r13d
	je	LBB0_11
## %bb.2:
	cmpq	$0, 8(%r15)
	je	LBB0_4
## %bb.3:
	movq	(%r14), %rdi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
LBB0_4:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %r13d
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shrq	$2, %rax
	cmpq	%rax, %r13
	jae	LBB0_14
## %bb.5:
	leaq	8(%r15), %r12
	movq	%r12, %rdi
	callq	_av_freep
	movl	$0, 4(%r15)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$8, %esi
	callq	_av_malloc_array
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_15
## %bb.6:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rbx)
	jne	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_avio_rb32
	movq	(%r12), %rcx
	movq	%rax, (%rcx,%r14,8)
	incq	%r14
	cmpq	%r14, %r13
	jne	LBB0_7
## %bb.9:
	cmpq	$0, (%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, 4(%rax)
	jne	LBB0_17
LBB0_10:
	xorl	%r12d, %r12d
	jmp	LBB0_19
LBB0_11:
	movl	$1, (%r15)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpq	$0, (%rdx)
	jne	LBB0_19
## %bb.12:
	movq	8(%rdx), %rax
	movq	(%rax), %rax
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.13:
	movq	_AVSTREAM_PARSE_HEADERS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	jmp	LBB0_19
LBB0_14:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_16:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, 4(%rax)
LBB0_17:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %r12d
LBB0_19:
	movl	%r12d, %eax
	addq	$24, %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	"keyframe_count = %u\n"

	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AVSTREAM_PARSE_HEADERS,8,3     ## @AVSTREAM_PARSE_HEADERS
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Duplicated STSS atom\n"

	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"reached eof, corrupted STSS atom\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_read_stss
_mov_read_stss:                         ; @mov_read_stss
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	ldr	x8, [x0]
	ldr	w9, [x8]
	subs	w9, w9, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x8, #8]
	ldr	x22, [x8, w9, uxtw #3]
	ldr	x23, [x22, #16]
	mov	x0, x1
	bl	_avio_r8
	mov	x0, x20
	bl	_avio_rb24
	mov	x0, x20
	bl	_avio_rb32
	mov	x21, x0
	ldr	x0, [x19]
Lloh0:
	adrp	x8, _AV_LOG_TRACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_TRACE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	str	x21, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	cbz	w21, LBB0_10
; %bb.2:
	mov	x22, x23
	ldr	x8, [x22, #8]!
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x0, [x19]
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_4:
	and	x24, x21, #0xffffffff
Lloh10:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh12:
	ldrsw	x8, [x8]
	cmp	x24, x8, lsr #2
	b.hs	LBB0_14
; %bb.5:
	mov	x0, x22
	bl	_av_freep
	str	wzr, [x23, #4]
	mov	x0, x21
	mov	w1, #8
	bl	_av_malloc_array
	str	x0, [x23, #8]
	cbz	x0, LBB0_15
; %bb.6:
	mov	x25, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	cbnz	x8, LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_avio_rb32
	ldr	x8, [x22]
	str	x0, [x8, x25, lsl #3]
	add	x25, x25, #1
	cmp	x24, x25
	b.ne	LBB0_7
; %bb.9:
	ldr	x8, [x20]
	str	w21, [x23, #4]
	cbnz	x8, LBB0_17
	b	LBB0_13
LBB0_10:
	mov	w8, #1
	str	w8, [x23]
	ldr	x8, [x22]
	cbnz	x8, LBB0_13
; %bb.11:
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
	mov	w0, #0
Lloh16:
	adrp	x8, _AVSTREAM_PARSE_HEADERS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AVSTREAM_PARSE_HEADERS@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x8, [x22]
	b	LBB0_19
LBB0_13:
	mov	w0, #0
	b	LBB0_19
LBB0_14:
Lloh19:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	b	LBB0_18
LBB0_15:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w0, [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
	add	sp, sp, #96
	b	_AVERROR
LBB0_16:
	str	w25, [x23, #4]
LBB0_17:
	ldr	x0, [x19]
Lloh24:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str.2@PAGE
Lloh28:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_av_log
Lloh29:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
LBB0_19:
	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
	add	sp, sp, #96
	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 AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_TRACE,4,2               ; @AV_LOG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"keyframe_count = %u\n"

	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AVSTREAM_PARSE_HEADERS,8,3     ; @AVSTREAM_PARSE_HEADERS
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Duplicated STSS atom\n"

	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"reached eof, corrupted STSS atom\n"

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