	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_index
_read_index:                            ## @read_index
	.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
	movl	%esi, %r12d
	movq	16(%rdi), %rcx
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %r13
	xorl	%esi, %esi
	cmpl	%r12d, (%r13)
	setne	%sil
	shlq	$4, %rsi
	movq	(%rcx,%rsi), %r14
	xorl	%eax, %eax
	subq	%rdx, %r14
	jle	LBB0_7
## %bb.1:
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	8(%rcx,%rsi), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_avio_feof
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %ebx
	movl	(%r15), %edi
	callq	_avio_rl32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r15), %edi
	callq	_avio_rl32
	movl	%eax, %r12d
	movl	(%r15), %edi
	movl	$8, %esi
	callq	_avio_skip
	movl	(%r15), %edi
	callq	_avio_rl32
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_av_add_index_entry
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edi
	xorl	%eax, %eax
	movl	%ebx, %r12d
	cmpl	%ebx, (%r13)
	sete	%al
	leal	4(,%rax,4), %esi
	callq	_avio_skip
	decq	%r14
	jne	LBB0_2
## %bb.6:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_3:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.no_dead_strip	_read_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_index
_read_index:                            ; @read_index
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x24, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w9, w1
	cset	w10, ne
	mov	w9, #24
	mov	w25, #8
	csel	x9, x25, x9, eq
	lsl	x10, x10, #4
	ldr	x10, [x8, x10]
	subs	x26, x10, x2
	b.le	LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x10, [x0, #8]
	ldr	x8, [x8, x9]
	ldr	x21, [x10, x8, lsl #3]
	mov	w27, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_avio_feof
	cbnz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20]
	bl	_avio_rl32
	mov	x22, x0
	ldr	w0, [x20]
	bl	_avio_rl32
	mov	x23, x0
	ldr	w0, [x20]
	mov	w1, #8
	bl	_avio_skip
	ldr	w0, [x20]
	bl	_avio_rl32
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	mov	x3, x23
	mov	w4, #0
	mov	w5, #0
	bl	_av_add_index_entry
	tbnz	w0, #31, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20]
	ldr	w8, [x24]
	cmp	w8, w19
	csel	w1, w25, w27, eq
	bl	_avio_skip
	subs	x26, x26, #1
	b.ne	LBB0_2
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_7:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.no_dead_strip	_read_index
.subsections_via_symbols
