	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asf_read_simple_index
_asf_read_simple_index:                 ## @asf_read_simple_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	16(%rdi), %r12
	movq	%r15, %rdi
	callq	_avio_rl64
	movl	(%r12), %ebx
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.1:
	movq	24(%r12), %rcx
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%esi, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	cmpq	%rsi, %rbx
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rdi
	cmpq	%rdx, (%rdi)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 8(%rdi)
	jne	LBB0_4
## %bb.5:
	movl	$1, 8(%rdi)
	movq	(%r14), %rdx
	movq	16(%rdi), %rcx
	movq	(%rdx,%rcx,8), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.7:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_avio_skip
	movq	%r15, %rdi
	callq	_avio_rl64
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_avio_skip
	movq	%r15, %rdi
	callq	_avio_rl32
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_14
## %bb.8:
	movl	$-1, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	%r12d
	cmpl	%r12d, -52(%rbp)                ## 4-byte Folded Reload
	je	LBB0_14
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_avio_rl32
	movl	%eax, %r13d
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_avio_skip
	testq	%rax, %rax
	js	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	%r13d, %ebx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movslq	4(%r14), %rax
	movslq	%r13d, %rbx
	imulq	%rax, %rbx
	addq	16(%r14), %rbx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %esi
	movl	$10000, %edx                    ## imm = 0x2710
	callq	_av_rescale
	movl	4(%r14), %ecx
	movq	_AVINDEX_KEYFRAME@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%r8d, %r8d
	callq	_av_add_index_entry
	movl	%r13d, %ebx
	jmp	LBB0_13
LBB0_6:
	addl	$-24, %eax
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_avio_skip
LBB0_15:
	xorl	%r14d, %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 8(%rax)
	movl	12(%rax), %esi
	movq	%r15, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_align_position
	jmp	LBB0_15
LBB0_10:
	movq	%rax, %r14
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Skipping failed in asf_read_simple_index.\n"

	.comm	_AVINDEX_KEYFRAME,4,2           ## @AVINDEX_KEYFRAME
	.no_dead_strip	_asf_read_simple_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asf_read_simple_index
_asf_read_simple_index:                 ; @asf_read_simple_index
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x0
	ldp	x19, x28, [x0, #8]
	mov	x0, x19
	bl	_avio_rl64
	mov	x21, x0
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	ldr	x9, [x28, #24]
Lloh0:
	adrp	x10, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	ldr	x12, [x11]
	cmp	x12, x10
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w12, [x11, #8]
	cbnz	w12, LBB0_2
; %bb.5:
	mov	w8, #1
	str	w8, [x11, #8]
	ldr	x8, [x20]
	ldr	x9, [x11, #16]
	ldr	x22, [x8, x9, lsl #3]
	cbz	x22, LBB0_12
; %bb.6:
	mov	x0, x19
	mov	w1, #16
	bl	_avio_skip
	mov	x0, x19
	bl	_avio_rl64
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #4
	bl	_avio_skip
	mov	x0, x19
	bl	_avio_rl32
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.7:
	mov	x24, x0
	mov	w25, #0
	mov	w23, #-1
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w25, w25, #1
	cmp	w24, w25
	b.eq	LBB0_15
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_avio_rl32
	mov	x26, x0
	mov	x0, x19
	mov	w1, #2
	bl	_avio_skip
	tbnz	x0, #63, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w23, w26
	b.eq	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x28, #16]
	ldrsw	x9, [x28, #4]
	sxtw	x10, w26
	madd	x27, x9, x10, x8
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	mov	x1, x25
	mov	w2, #10000
	bl	_av_rescale
	mov	x2, x0
	ldr	w3, [x28, #4]
Lloh3:
	adrp	x8, _AVINDEX_KEYFRAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVINDEX_KEYFRAME@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	mov	x0, x22
	mov	x1, x27
	mov	w4, #0
	bl	_av_add_index_entry
	mov	x23, x26
	b	LBB0_8
LBB0_12:
	sub	w1, w21, #24
	mov	x0, x19
	bl	_avio_skip
LBB0_13:
	mov	w27, #0
LBB0_14:
	mov	x0, x27
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
	mov	w8, #1
	str	w8, [x28, #8]
	ldr	w1, [x28, #12]
	mov	x0, x19
	mov	x2, x21
	bl	_align_position
	b	LBB0_13
LBB0_16:
	mov	x27, x0
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Skipping failed in asf_read_simple_index.\n"

	.comm	_AVINDEX_KEYFRAME,4,2           ; @AVINDEX_KEYFRAME
	.no_dead_strip	_asf_read_simple_index
.subsections_via_symbols
