	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_read_stco
_mov_read_stco:                         ## @mov_read_stco
	.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
	pushq	%rax
	.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
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jle	LBB0_20
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %rcx
	decl	%eax
	movq	(%rcx,%rax,8), %rax
	movq	(%rax), %r12
	movq	%rsi, %rdi
	callq	_avio_r8
	movq	%r14, %rdi
	callq	_avio_rb24
	movq	%r14, %rdi
	callq	_avio_rb32
	movq	%rax, %r15
	testl	%r15d, %r15d
	je	LBB0_20
## %bb.2:
	cmpq	$0, 8(%r12)
	je	LBB0_3
## %bb.4:
	movq	(%rbx), %rdi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	8(%r12), %rdi
	jmp	LBB0_5
LBB0_3:
	xorl	%edi, %edi
LBB0_5:
	callq	_av_free
	movl	$0, (%r12)
	movl	%r15d, %edi
	movl	$8, %esi
	callq	_av_malloc_array
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_21
## %bb.6:
	movl	%r15d, (%r12)
	movl	$115, %edi
	movl	$116, %esi
	movl	$99, %edx
	movl	$111, %ecx
	callq	_MKTAG
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, %rax
	jne	LBB0_10
## %bb.7:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r14)
	jne	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	callq	_avio_rb32
	movq	8(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_8
	jmp	LBB0_16
LBB0_21:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_10:
	movl	$99, %edi
	movl	$111, %esi
	movq	%rcx, %r13
	movl	$54, %edx
	movl	$52, %ecx
	callq	_MKTAG
	cmpq	%r13, %rax
	jne	LBB0_14
## %bb.11:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r14)
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rdi
	callq	_avio_rb64
	movq	8(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_12
	jmp	LBB0_16
LBB0_15:
	movl	%ebx, %r15d
LBB0_16:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%r12)
	cmpq	$0, (%r14)
	je	LBB0_17
## %bb.18:
	movq	(%rax), %rdi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_av_log
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_17:
	xorl	%r13d, %r13d
	jmp	LBB0_20
LBB0_14:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %r13d
LBB0_20:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Duplicated STCO atom\n"

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

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_read_stco
_mov_read_stco:                         ; @mov_read_stco
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0]
	ldr	w9, [x8]
	subs	w9, w9, #1
	b.lt	LBB0_18
; %bb.1:
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x8, #8]
	ldr	x8, [x8, w9, uxtw #3]
	ldr	x23, [x8]
	mov	x0, x1
	bl	_avio_r8
	mov	x0, x20
	bl	_avio_rb24
	mov	x0, x20
	bl	_avio_rb32
	mov	x21, x0
	cbz	w21, LBB0_18
; %bb.2:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x0, [x19]
Lloh0:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	ldr	x0, [x23, #8]
	b	LBB0_5
LBB0_4:
	mov	x0, #0
LBB0_5:
	bl	_av_free
	str	wzr, [x23]
	mov	x0, x21
	mov	w1, #8
	bl	_av_malloc_array
	str	x0, [x23, #8]
	cbz	x0, LBB0_10
; %bb.6:
	str	w21, [x23]
	mov	w0, #115
	mov	w1, #116
	mov	w2, #99
	mov	w3, #111
	bl	_MKTAG
	cmp	x0, x22
	b.ne	LBB0_11
; %bb.7:
	mov	x22, #0
	and	x24, x21, #0xffffffff
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	cbnz	x8, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	bl	_avio_rb32
	ldr	x8, [x23, #8]
	str	x0, [x8, x22, lsl #3]
	add	x22, x22, #1
	cmp	x24, x22
	b.ne	LBB0_8
	b	LBB0_16
LBB0_10:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_11:
	mov	w0, #99
	mov	w1, #111
	mov	w2, #54
	mov	w3, #52
	bl	_MKTAG
	cmp	x0, x22
	b.ne	LBB0_19
; %bb.12:
	mov	x22, #0
	and	x24, x21, #0xffffffff
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	cbnz	x8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x20
	bl	_avio_rb64
	ldr	x8, [x23, #8]
	str	x0, [x8, x22, lsl #3]
	add	x22, x22, #1
	cmp	x24, x22
	b.ne	LBB0_13
	b	LBB0_16
LBB0_15:
	mov	x21, x22
LBB0_16:
	str	w21, [x23]
	ldr	x8, [x20]
	cbz	x8, LBB0_18
; %bb.17:
	ldr	x0, [x19]
Lloh8:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
Lloh13:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:
	mov	w0, #0
	b	LBB0_21
LBB0_19:
Lloh15:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [x8]
LBB0_21:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Duplicated STCO atom\n"

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

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