	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_index_search_timestamp      ## -- Begin function ff_index_search_timestamp
	.p2align	4, 0x90
_ff_index_search_timestamp:             ## @ff_index_search_timestamp
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r9d
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movslq	%r9d, %rax
	shlq	$4, %rax
	cmpq	%rdx, -16(%rax,%rdi)
	leal	-1(%r9), %eax
	movl	$-1, %r8d
	cmovll	%eax, %r8d
	jmp	LBB0_3
LBB0_2:
	movl	$-1, %r8d
LBB0_3:
	movl	%r9d, %eax
	subl	%r8d, %eax
	cmpl	$2, %eax
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	jl	LBB0_16
## %bb.4:
	movq	_AVINDEX_DISCARD_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leal	-1(%r9), %r10d
	movslq	%r10d, %r11
	leaq	24(%rdi), %rsi
                                        ## kill: def $r9d killed $r9d killed $r9 def $r9
	jmp	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	leal	-1(%r9), %r12d
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movslq	%r12d, %rax
	movq	%rax, %rcx
	shlq	$4, %rcx
	cmpq	%rdx, (%rdi,%rcx)
	cmovgel	%eax, %r9d
	cmovlel	%eax, %r8d
	movl	%r9d, %eax
	subl	%r8d, %eax
	cmpl	$1, %eax
	jle	LBB0_17
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	leal	(%r9,%r8), %r12d
	sarl	%r12d
	movslq	%r12d, %rbx
	movq	%rbx, %rax
	shlq	$4, %rax
	testl	%r15d, 8(%rdi,%rax)
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%r9d, %r12d
	jge	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%r10d, %r12d
	jge	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movslq	%r9d, %r13
	movq	%r13, %r14
	shlq	$4, %r14
	addq	%rdi, %r14
	incq	%rbx
	addq	%rsi, %rax
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rbx, %r13
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	cmpq	%rdx, (%r14)
	jge	LBB0_5
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=2
	incl	%r12d
	testl	%r15d, (%rax)
	je	LBB0_6
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=2
	cmpq	%r13, %rbx
	jge	LBB0_6
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=2
	leaq	1(%rbx), %rcx
	addq	$16, %rax
	cmpq	%r11, %rbx
	movq	%rcx, %rbx
	jl	LBB0_11
	jmp	LBB0_6
LBB0_16:
                                        ## kill: def $r9d killed $r9d killed $r9 def $r9
LBB0_17:
	movq	_AVSEEK_FLAG_BACKWARD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, %ecx
	cmovel	%r9d, %r8d
	movq	_AVSEEK_FLAG_ANY@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	jne	LBB0_25
## %bb.18:
	testl	%r8d, %r8d
	js	LBB0_25
## %bb.19:
	andl	%edx, %ecx
	xorl	%eax, %eax
	negl	%ecx
	sbbl	%eax, %eax
	orl	$1, %eax
	movq	_AVINDEX_KEYFRAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, %r8d
	jge	LBB0_26
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	%r8d, %edx
	shlq	$4, %rdx
	testl	%ecx, 8(%rdi,%rdx)
	jne	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	addl	%eax, %r8d
	jns	LBB0_20
## %bb.23:
	movl	$-1, %r8d
	jmp	LBB0_26
LBB0_25:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_26:
	cmpl	%esi, %r8d
	movl	$-1, %eax
	cmovnel	%r8d, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVINDEX_DISCARD_FRAME,4,2      ## @AVINDEX_DISCARD_FRAME
	.comm	_AVSEEK_FLAG_BACKWARD,4,2       ## @AVSEEK_FLAG_BACKWARD
	.comm	_AVSEEK_FLAG_ANY,4,2            ## @AVSEEK_FLAG_ANY
	.comm	_AVINDEX_KEYFRAME,4,2           ## @AVINDEX_KEYFRAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_index_search_timestamp      ; -- Begin function ff_index_search_timestamp
	.p2align	2
_ff_index_search_timestamp:             ; @ff_index_search_timestamp
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	cbz	w1, LBB0_2
; %bb.1:
	sxtw	x8, w1
	sub	x8, x8, #1
	lsl	x9, x8, #4
	ldr	x9, [x0, x9]
	cmp	x9, x2
	csinv	w8, w8, wzr, lt
	b	LBB0_3
LBB0_2:
	mov	w8, #-1
LBB0_3:
	sub	w9, w1, w8
	cmp	w9, #2
	b.lt	LBB0_12
; %bb.4:
Lloh0:
	adrp	x9, _AVINDEX_DISCARD_FRAME@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AVINDEX_DISCARD_FRAME@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x9]
	sub	w9, w1, #1
	sxtw	x11, w9
	add	x12, x0, #24
	mov	x9, x1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sbfiz	x14, x13, #4, #32
	ldr	x14, [x0, x14]
	cmp	x14, x2
	csel	w9, w9, w13, lt
	csel	w8, w8, w13, gt
	sub	w13, w9, w8
	cmp	w13, #1
	b.le	LBB0_13
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	add	w14, w9, w8
	asr	w13, w14, #1
	add	x15, x0, w13, sxtw #4
	ldr	w15, [x15, #8]
	and	w15, w10, w15
	cmp	w15, #0
	ccmp	w13, w9, #0, ne
	ccmp	w13, w11, #0, lt
	b.ge	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	sbfx	x17, x14, #1, #31
	sxtw	x14, w9
	add	x15, x0, w9, sxtw #4
	add	x16, x17, #1
	add	x17, x12, x17, lsl #4
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	w4, [x17], #16
	and	w4, w10, w4
	add	w13, w13, #1
	cmp	w4, #0
	ccmp	x16, x14, #0, ne
	ccmp	x16, x11, #0, lt
	add	x16, x16, #1
	b.ge	LBB0_5
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x14, x16
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x4, [x15]
	cmp	x4, x2
	b.lt	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	w13, w9, #1
	b	LBB0_5
LBB0_12:
	mov	x9, x1
LBB0_13:
Lloh3:
	adrp	x10, _AVSEEK_FLAG_BACKWARD@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AVSEEK_FLAG_BACKWARD@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	ands	w10, w10, w3
	csel	w8, w9, w8, eq
Lloh6:
	adrp	x9, _AVSEEK_FLAG_ANY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AVSEEK_FLAG_ANY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w3
	b.ne	LBB0_20
; %bb.14:
	tbnz	w8, #31, LBB0_20
; %bb.15:
	cmp	w10, #0
	mov	w9, #1
	cneg	w9, w9, ne
Lloh9:
	adrp	x10, _AVINDEX_KEYFRAME@GOTPAGE
Lloh10:
	ldr	x10, [x10, _AVINDEX_KEYFRAME@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	cmp	w8, w1
	b.ge	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x11, x0, w8, uxtw #4
	ldr	w11, [x11, #8]
	tst	w10, w11
	b.ne	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	adds	w8, w8, w9
	b.pl	LBB0_16
; %bb.19:
	mov	w8, #-1
LBB0_20:
	cmp	w8, w1
	csinv	w0, w8, wzr, ne
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AVINDEX_DISCARD_FRAME,4,2      ; @AVINDEX_DISCARD_FRAME
	.comm	_AVSEEK_FLAG_BACKWARD,4,2       ; @AVSEEK_FLAG_BACKWARD
	.comm	_AVSEEK_FLAG_ANY,4,2            ; @AVSEEK_FLAG_ANY
	.comm	_AVINDEX_KEYFRAME,4,2           ; @AVINDEX_KEYFRAME
.subsections_via_symbols
