	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_frag_index
_update_frag_index:                     ## @update_frag_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_search_frag_moof_offset
	movl	%eax, %r15d
	movl	(%r12), %eax
	movq	8(%r12), %rdi
	cmpl	%eax, %r15d
	jge	LBB0_2
## %bb.1:
	movslq	%r15d, %rcx
	leaq	(%rcx,%rcx,4), %rcx
	cmpq	%r14, (%rdi,%rcx,8)
	je	LBB0_13
LBB0_2:
	leaq	16(%r12), %rsi
	leal	(%rax,%rax,4), %eax
	leal	40(,%rax,8), %edx
	callq	_av_fast_realloc
	movl	$-1, %r13d
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	movq	%rax, 8(%r12)
	movq	24(%r12), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	movl	$48, %edx
	callq	_av_realloc_array
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:
	movq	24(%r12), %rcx
	movl	(%rcx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_9
## %bb.5:
	movq	8(%rcx), %rcx
	leaq	40(%rax), %rdx
	xorl	%esi, %esi
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rdi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rbx
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	js	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, -40(%rdx)
	movq	(%rdi), %rbx
	movq	%rbx, (%rdx)
	movq	(%rdi), %rbx
	movq	%rbx, -8(%rdx)
	movq	(%rdi), %rbx
	movq	%rbx, -16(%rdx)
	movl	$-1, -32(%rdx)
	movq	$0, -24(%rdx)
	incq	%rsi
	addq	$48, %rdx
	cmpq	%rsi, %r8
	jne	LBB0_6
LBB0_9:
	movl	(%r12), %ecx
	movl	%ecx, %edx
	subl	%r15d, %edx
	jle	LBB0_10
## %bb.11:
	movq	8(%r12), %rdi
	movslq	%r15d, %r13
	leaq	(,%r13,4), %rcx
	addq	%r13, %rcx
	leaq	(%rdi,%rcx,8), %rsi
	leaq	(%rdi,%rcx,8), %rdi
	addq	$40, %rdi
	shll	$3, %edx
	leal	(%rdx,%rdx,4), %edx
	movq	%rax, %rbx
	callq	_memmove
	movq	%rbx, %rax
	movq	24(%r12), %rcx
	movl	(%rcx), %r8d
	movl	(%r12), %ecx
	jmp	LBB0_12
LBB0_7:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_14
LBB0_10:
	movslq	%r15d, %r13
LBB0_12:
	movq	8(%r12), %rdx
	leaq	(,%r13,4), %rsi
	addq	%r13, %rsi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rdx,%rsi,8)
	movl	%r8d, 8(%rdx,%rsi,8)
	movq	%r14, (%rdx,%rsi,8)
	movq	%rax, 16(%rdx,%rsi,8)
	incl	%ecx
	movl	%ecx, (%r12)
LBB0_13:
	movl	%r15d, %r13d
LBB0_14:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.no_dead_strip	_update_frag_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_frag_index
_update_frag_index:                     ; @update_frag_index
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_search_frag_moof_offset
	mov	x19, x0
	ldr	w8, [x20]
	ldr	x0, [x20, #8]
	cmp	w19, w8
	b.ge	LBB0_2
; %bb.1:
	mov	w9, #40
	smull	x9, w19, w9
	ldr	x9, [x0, x9]
	cmp	x9, x21
	b.eq	LBB0_14
LBB0_2:
	add	x1, x20, #16
	mov	w9, #40
	mul	w8, w8, w9
	add	w2, w8, #40
	bl	_av_fast_realloc
	cbz	x0, LBB0_10
; %bb.3:
	str	x0, [x20, #8]
	ldr	x8, [x20, #24]
	ldr	w1, [x8]
	mov	x0, #0
	mov	w2, #48
	bl	_av_realloc_array
	cbz	x0, LBB0_10
; %bb.4:
	mov	x22, x0
	ldr	x9, [x20, #24]
	ldr	w8, [x9]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	ldr	x9, [x9, #8]
	add	x10, x22, #24
Lloh0:
	adrp	x11, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x11, [x11, _AV_NOPTS_VALUE@GOTPAGEOFF]
	mov	w12, #-1
	mov	x13, x8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x9]
	ldr	x14, [x14]
	tbnz	x14, #63, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	stur	x14, [x10, #-24]
	ldr	x14, [x11]
	str	x14, [x10, #16]
	ldr	x14, [x11]
	str	x14, [x10, #8]
	ldr	x14, [x11]
	stp	xzr, x14, [x10, #-8]
	stur	w12, [x10, #-16]
	add	x9, x9, #8
	add	x10, x10, #48
	subs	x13, x13, #1
	b.ne	LBB0_6
LBB0_8:
	ldr	w9, [x20]
	subs	w10, w9, w19
	b.le	LBB0_12
; %bb.9:
	ldr	x8, [x20, #8]
	mov	x9, x19
	sxtw	x23, w9
	mov	w9, #40
	smaddl	x1, w19, w9, x8
	add	x0, x1, #40
	add	w8, w10, w10, lsl #2
	lsl	w2, w8, #3
	bl	_memmove
	ldr	x8, [x20, #24]
	ldr	w8, [x8]
	ldr	w9, [x20]
	b	LBB0_13
LBB0_10:
	mov	w19, #-1
	b	LBB0_14
LBB0_11:
Lloh2:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
	b	LBB0_14
LBB0_12:
	sxtw	x23, w19
LBB0_13:
	ldr	x10, [x20, #8]
	mov	w11, #40
	madd	x10, x23, x11, x10
	stp	xzr, xzr, [x10, #24]
	str	w8, [x10, #8]
	str	x21, [x10]
	str	x22, [x10, #16]
	add	w8, w9, #1
	str	w8, [x20]
LBB0_14:
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.no_dead_strip	_update_frag_index
.subsections_via_symbols
