	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_read_sidx
_mov_read_sidx:                         ## @mov_read_sidx
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_avio_tell
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_avio_r8
	movl	%eax, %r13d
	cmpl	$2, %eax
	jl	LBB0_2
## %bb.1:
	movq	16(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_avpriv_request_sample
	jmp	LBB0_35
LBB0_2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_avio_rb24
	movq	%r12, %rdi
	callq	_avio_rb32
	movq	%rax, %rbx
	movq	16(%r15), %rdi
	movl	(%rdi), %eax
	testq	%rax, %rax
	je	LBB0_36
## %bb.3:
	addq	%r14, -64(%rbp)                 ## 8-byte Folded Spill
	movq	8(%rdi), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %r14
	cmpl	%ebx, (%r14)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_5
LBB0_36:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %ecx
	callq	_av_log
	xorl	%r14d, %r14d
LBB0_35:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	16(%r14), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_avio_rb32
	movl	$1, %edi
	movq	%rax, %rsi
	callq	_av_make_q
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	testl	%r13d, %r13d
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	je	LBB0_9
## %bb.10:
	callq	_avio_rb64
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_avio_rb64
	jmp	LBB0_11
LBB0_7:
	movq	16(%r15), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_35
LBB0_9:
	callq	_avio_rb32
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_avio_rb32
LBB0_11:
	movq	%rax, %rbx
	addq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_avio_rb16
	movq	%r12, %rdi
	callq	_avio_rb16
	testl	%eax, %eax
	je	LBB0_17
## %bb.12:
	movl	%eax, %r13d
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movslq	%r15d, %rax
	addq	%rax, %rbx
	movslq	-64(%rbp), %rax                 ## 4-byte Folded Reload
	addq	%rax, -56(%rbp)                 ## 8-byte Folded Spill
	decl	%r13d
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_17
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_avio_rb32
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_avio_rb32
	testl	$-2147483648, %r15d             ## imm = 0x80000000
	jne	LBB0_37
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_avio_rb32
	movl	24(%r14), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_av_rescale_q
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_update_frag_index
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_get_frag_stream_info
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	%rcx, (%rax)
	jmp	LBB0_16
LBB0_17:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	movq	%rcx, 8(%r14)
	movl	$1, (%rax)
	movq	%r12, %rdi
	callq	_avio_size
	xorl	%r14d, %r14d
	cmpq	%rax, %rbx
	jne	LBB0_35
## %bb.18:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	testq	%rax, %rax
	je	LBB0_34
## %bb.19:
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	movq	8(%r9), %r8
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	xorl	%esi, %esi
	xorl	%r12d, %r12d
	xorl	%r10d, %r10d
	jmp	LBB0_20
LBB0_26:                                ##   in Loop: Header=BB0_20 Depth=1
	xorl	%r12d, %r12d
LBB0_27:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%rsi
	cmpq	%rax, %rsi
	je	LBB0_28
LBB0_20:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_23 Depth 2
	testq	%r12, %r12
	jne	LBB0_27
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%rsi, %rcx
	shlq	$4, %rcx
	movl	(%r8,%rcx), %edi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	addq	%r8, %rcx
	addq	$8, %rcx
	movq	(%rcx), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rdx, (%rcx,%rbx,8)
	jne	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=2
	incq	%rbx
	cmpq	%rbx, %rdi
	jne	LBB0_23
	jmp	LBB0_26
LBB0_24:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	16(%r9), %rcx
	movq	8(%rcx), %rcx
	movq	(%rcx,%rbx,8), %r12
	movq	16(%r12), %r10
	jmp	LBB0_27
LBB0_37:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_avpriv_request_sample
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_35
LBB0_28:
	testq	%r12, %r12
	je	LBB0_34
## %bb.29:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_34
## %bb.30:
	xorl	%ebx, %ebx
	movq	%r10, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_31 Depth=1
	incq	%rbx
	movl	(%rax), %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_34
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rcx
	movq	(%rcx,%rbx,8), %r13
	movq	16(%r13), %r15
	cmpl	$0, (%r15)
	jne	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	8(%r12), %rdi
	movl	4(%r15), %esi
	movl	4(%r10), %edx
	callq	_av_rescale
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	movq	%rax, 8(%r15)
	movq	%rax, 8(%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	jmp	LBB0_33
LBB0_34:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 4(%rax)
	jmp	LBB0_35
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sidx version %u"

	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"could not find corresponding track id %d\n"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Invalid sidx timescale 1/%d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.3:                               ## @.str.3
	.asciz	"sidx reference_type 1"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.no_dead_strip	_mov_read_sidx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_read_sidx
_mov_read_sidx:                         ; @mov_read_sidx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x23, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_avio_tell
	mov	x24, x0
	mov	x0, x20
	bl	_avio_r8
	mov	x22, x0
	cmp	w0, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	x0, [x19, #16]
	str	x22, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_avpriv_request_sample
	b	LBB0_7
LBB0_2:
	mov	x0, x20
	bl	_avio_rb24
	mov	x0, x20
	bl	_avio_rb32
	mov	x21, x0
	ldr	x0, [x19, #16]
	ldr	w8, [x0]
	cbz	w8, LBB0_6
; %bb.3:
	add	x23, x24, x23
	ldr	x9, [x0, #8]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x9]
	ldr	w10, [x25]
	cmp	w10, w21
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_4
LBB0_6:
Lloh2:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x21
	bl	_av_log
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_9:
	ldr	x24, [x25, #16]
	mov	x0, x20
	bl	_avio_rb32
	mov	x1, x0
	mov	w0, #1
	bl	_av_make_q
	cbz	w0, LBB0_12
; %bb.10:
	mov	x26, x0
	str	x24, [sp, #16]                  ; 8-byte Folded Spill
	mov	x0, x20
	cbz	w22, LBB0_13
; %bb.11:
	bl	_avio_rb64
	mov	x22, x0
	mov	x0, x20
	bl	_avio_rb64
	b	LBB0_14
LBB0_12:
	ldr	x0, [x19, #16]
Lloh7:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w3, #0
	bl	_av_log
Lloh12:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_13:
	bl	_avio_rb32
	mov	x22, x0
	mov	x0, x20
	bl	_avio_rb32
LBB0_14:
	add	x23, x0, x23
	mov	x0, x20
	bl	_avio_rb16
	mov	x0, x20
	bl	_avio_rb16
	cbz	w0, LBB0_20
; %bb.15:
	mov	x24, x0
	mov	w8, w26
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x23, x23, w26, sxtw
	add	x22, x22, w27, sxtw
	subs	w24, w24, #1
	b.eq	LBB0_20
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_avio_rb32
	mov	x26, x0
	mov	x0, x20
	bl	_avio_rb32
	tbnz	w26, #31, LBB0_31
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x27, x0
	mov	x0, x20
	bl	_avio_rb32
	ldr	w2, [x25, #24]
	mov	x0, x22
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	bl	_av_rescale_q
	mov	x28, x0
	mov	x0, x19
	mov	x1, x23
	bl	_update_frag_index
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_get_frag_stream_info
	cbz	x0, LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	str	x28, [x0]
	b	LBB0_16
LBB0_20:
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	str	x22, [x9, #8]
	str	x22, [x25, #8]
	mov	w8, #1
	str	w8, [x9]
	mov	x0, x20
	bl	_avio_size
	cmp	x23, x0
	b.ne	LBB0_7
; %bb.21:
	ldr	w8, [x19]
	cbz	w8, LBB0_38
; %bb.22:
	mov	x9, #0
	mov	x21, #0
	mov	x20, #0
	ldr	x10, [x19, #8]
Lloh15:
	adrp	x11, _AV_NOPTS_VALUE@GOTPAGE
Lloh16:
	ldr	x11, [x11, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh17:
	ldr	x11, [x11]
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_25 Depth=1
	mov	x21, #0
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_32
LBB0_25:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_28 Depth 2
	cbnz	x21, LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	add	x13, x10, x9, lsl #4
	ldr	w14, [x13], #8
	cbz	w14, LBB0_23
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	x12, #0
	ldr	x13, [x13]
	lsl	x14, x14, #3
LBB0_28:                                ;   Parent Loop BB0_25 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x13, x12]
	cmp	x15, x11
	b.ne	LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=2
	add	x12, x12, #8
	cmp	x14, x12
	b.ne	LBB0_28
	b	LBB0_23
LBB0_30:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	x13, [x19, #16]
	ldr	x13, [x13, #8]
	ldr	x21, [x13, x12]
	ldr	x20, [x21, #16]
	b	LBB0_24
LBB0_31:
	ldr	x0, [x19, #16]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_avpriv_request_sample
Lloh20:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_32:
	cbz	x21, LBB0_38
; %bb.33:
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
	cbz	w9, LBB0_38
; %bb.34:
	mov	x22, #0
	b	LBB0_36
LBB0_35:                                ;   in Loop: Header=BB0_36 Depth=1
	add	x22, x22, #1
	ldr	w9, [x8]
	cmp	x22, x9
	b.hs	LBB0_38
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, #8]
	ldr	x23, [x9, x22, lsl #3]
	ldr	x24, [x23, #16]
	ldr	w9, [x24]
	cbnz	w9, LBB0_35
; %bb.37:                               ;   in Loop: Header=BB0_36 Depth=1
	ldr	x0, [x21, #8]
	ldr	w1, [x24, #4]
	ldr	w2, [x20, #4]
	bl	_av_rescale
	str	x0, [x24, #8]
	str	x0, [x23, #8]
	ldr	x8, [x19, #16]
	b	LBB0_35
LBB0_38:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sidx version %u"

	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"could not find corresponding track id %d\n"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Invalid sidx timescale 1/%d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.3:                               ; @.str.3
	.asciz	"sidx reference_type 1"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.no_dead_strip	_mov_read_sidx
.subsections_via_symbols
