	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_add_index_entry             ## -- Begin function ff_add_index_entry
	.p2align	4, 0x90
_ff_add_index_entry:                    ## @ff_add_index_entry
	.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	%rdx, %r15
	movl	(%rsi), %eax
	incl	%eax
	movq	_UINT_MAX@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	shrq	$5, %rdx
	movl	$-1, %r13d
	cmpq	%rax, %rdx
	jbe	LBB0_18
## %bb.1:
	movq	%r8, %r12
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	cmpq	%r8, (%rax)
	je	LBB0_19
## %bb.2:
	cmpl	$1073741824, %r9d               ## imm = 0x40000000
	jb	LBB0_3
LBB0_19:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_3:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	24(%rbp), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	16(%rbp), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_is_relative
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_RELATIVE_TS_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_5:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rdi
	movl	(%rbx), %edx
	shll	$5, %edx
	addl	$32, %edx
	movq	%r15, %rsi
	callq	_av_fast_realloc
	testq	%rax, %rax
	je	LBB0_18
## %bb.6:
	movq	%rax, %r15
	subq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	movq	%rax, (%r14)
	movl	(%rbx), %esi
	movq	_AVSEEK_FLAG_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_ff_index_search_timestamp
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_7
## %bb.11:
	movl	%eax, %esi
	shlq	$5, %rsi
	movq	%r15, %r14
	addq	%rsi, %r14
	cmpq	%r12, (%r15,%rsi)
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jne	LBB0_12
## %bb.14:
	cmpq	%rdx, 8(%r15,%rsi)
	jne	LBB0_15
## %bb.16:
	movl	16(%r15,%rsi), %esi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, %esi
	cmovgl	%esi, %ebx
	movq	%r14, %r15
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_17
LBB0_7:
	movslq	(%rbx), %r14
	leal	1(%r14), %eax
	movq	%r14, %rcx
	shlq	$5, %rcx
	addq	%rcx, %r15
	movl	%eax, (%rbx)
	testq	%r14, %r14
	je	LBB0_8
## %bb.9:
	xorl	%edi, %edi
	cmpq	%r12, -32(%r15)
	setl	%dil
	jmp	LBB0_10
LBB0_12:
	jle	LBB0_18
## %bb.13:
	leaq	32(%r14), %rdi
	movl	(%rbx), %edx
	subl	%eax, %edx
	shll	$5, %edx
	movq	%rax, %r15
	movq	%r14, %rsi
	callq	_memmove
	movq	%r15, %rax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	incl	(%rbx)
LBB0_15:
	movq	%r14, %r15
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_17
LBB0_8:
	movl	$1, %edi
LBB0_10:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	callq	_av_assert0
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%r14, %rax
LBB0_17:
	movq	%rdx, 8(%r15)
	movq	%r12, (%r15)
	movl	%ebx, 16(%r15)
	movl	%ecx, 20(%r15)
	movl	%esi, 24(%r15)
	movl	%eax, %r13d
LBB0_18:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RELATIVE_TS_BASE,8,3           ## @RELATIVE_TS_BASE
	.comm	_AVSEEK_FLAG_ANY,4,2            ## @AVSEEK_FLAG_ANY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_add_index_entry             ; -- Begin function ff_add_index_entry
	.p2align	2
_ff_add_index_entry:                    ; @ff_add_index_entry
	.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	w8, [x1]
	add	w8, w8, #1
Lloh0:
	adrp	x9, _UINT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UINT_MAX@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	cmp	x8, x9, lsr #5
	b.hs	LBB0_13
; %bb.1:
	mov	x23, x4
Lloh3:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x4
	b.eq	LBB0_3
; %bb.2:
	mov	x20, x5
	lsr	w8, w5, #30
	cbz	w8, LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_4:
	mov	x19, x7
	mov	x21, x6
	mov	x22, x3
	mov	x24, x2
	mov	x25, x1
	mov	x26, x0
	mov	x0, x23
	bl	_is_relative
Lloh9:
	adrp	x8, _RELATIVE_TS_BASE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RELATIVE_TS_BASE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x28, xzr, x8, eq
	ldr	x0, [x26]
	ldr	w8, [x25]
	lsl	w8, w8, #5
	add	w2, w8, #32
	mov	x1, x24
	bl	_av_fast_realloc
	cbz	x0, LBB0_13
; %bb.5:
	mov	x27, x0
	sub	x24, x23, x28
	str	x0, [x26]
	ldr	w1, [x25]
Lloh12:
	adrp	x8, _AVSEEK_FLAG_ANY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVSEEK_FLAG_ANY@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x2, x24
	bl	_ff_index_search_timestamp
	tbnz	w0, #31, LBB0_9
; %bb.6:
	mov	x23, x0
	mov	w8, w0
	add	x26, x27, x8, lsl #5
	ldr	x9, [x26]
	cmp	x9, x24
	b.ne	LBB0_11
; %bb.7:
	ldr	x9, [x26, #8]
	cmp	x9, x22
	b.ne	LBB0_17
; %bb.8:
	add	x8, x27, x8, lsl #5
	ldr	w8, [x8, #16]
	cmp	w8, w21
	csel	w21, w8, w21, gt
	b	LBB0_17
LBB0_9:
	ldrsw	x23, [x25]
	add	w8, w23, #1
	str	w8, [x25]
	add	x26, x27, x23, lsl #5
	cbz	w23, LBB0_15
; %bb.10:
	ldur	x8, [x26, #-32]
	cmp	x8, x24
	cset	w0, lt
	b	LBB0_16
LBB0_11:
	b.le	LBB0_13
; %bb.12:
	add	x0, x26, #32
	ldr	w8, [x25]
	sub	w8, w8, w23
	lsl	w2, w8, #5
	mov	x1, x26
	bl	_memmove
	ldr	w8, [x25]
	add	w8, w8, #1
	str	w8, [x25]
	b	LBB0_17
LBB0_13:
	mov	w23, #-1
LBB0_14:
	mov	x0, x23
	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
LBB0_15:
	mov	w0, #1
LBB0_16:
	bl	_av_assert0
LBB0_17:
	stp	x24, x22, [x26]
	stp	w21, w20, [x26, #16]
	str	w19, [x26, #24]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RELATIVE_TS_BASE,8,3           ; @RELATIVE_TS_BASE
	.comm	_AVSEEK_FLAG_ANY,4,2            ; @AVSEEK_FLAG_ANY
.subsections_via_symbols
