	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rl2_read_seek
_rl2_read_seek:                         ## @rl2_read_seek
	.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	%ecx, %r15d
	movq	%rdi, %rbx
	movslq	%esi, %r14
	movq	8(%rdi), %rax
	movq	16(%rdi), %r13
	movq	(%rax,%r14,8), %r12
	movq	%r12, %rdi
	movl	%edx, %esi
	movl	%ecx, %edx
	callq	_av_index_search_timestamp
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	(%r13), %rcx
	movl	%eax, (%rcx,%r14,4)
	cmpl	$0, (%rbx)
	jle	LBB0_3
## %bb.4:
	movq	8(%r12), %rcx
	movl	%eax, %eax
	movl	(%rcx,%rax,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %r14
	movl	(%r12), %esi
	movl	(%r14), %edx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_av_rescale_q
	movq	_AVSEEK_FLAG_BACKWARD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	%r13d, %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_av_index_search_timestamp
	xorl	%edx, %edx
	testl	%eax, %eax
	cmovlel	%edx, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	%eax, (%rcx,%r15,4)
	incq	%r15
	movslq	(%rbx), %rax
	cmpq	%rax, %r15
	jl	LBB0_5
	jmp	LBB0_6
LBB0_1:
	movl	$-1, %edx
	jmp	LBB0_6
LBB0_3:
	xorl	%edx, %edx
LBB0_6:
	movl	%edx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVSEEK_FLAG_BACKWARD,4,2       ## @AVSEEK_FLAG_BACKWARD
	.no_dead_strip	_rl2_read_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rl2_read_seek
_rl2_read_seek:                         ; @rl2_read_seek
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x22, x1
	mov	x20, x0
	ldp	x8, x24, [x0, #8]
	ldr	x21, [x8, w1, sxtw #3]
	mov	x0, x21
	mov	x1, x2
	mov	x2, x3
	bl	_av_index_search_timestamp
	tbnz	w0, #31, LBB0_5
; %bb.1:
	sxtw	x8, w22
	ldr	x9, [x24]
	str	w0, [x9, x8, lsl #2]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x25, #0
	ldr	x8, [x21, #8]
	ldr	w22, [x8, w0, uxtw #2]
Lloh0:
	adrp	x26, _AVSEEK_FLAG_BACKWARD@GOTPAGE
Lloh1:
	ldr	x26, [x26, _AVSEEK_FLAG_BACKWARD@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x23, [x8, x25, lsl #3]
	ldr	w1, [x21]
	ldr	w2, [x23]
	mov	x0, x22
	bl	_av_rescale_q
	mov	x1, x0
	ldr	w8, [x26]
	orr	w2, w8, w19
	mov	x0, x23
	bl	_av_index_search_timestamp
	cmp	w0, #0
	csel	w8, w0, wzr, gt
	ldr	x9, [x24]
	str	w8, [x9, x25, lsl #2]
	add	x25, x25, #1
	ldrsw	x8, [x20]
	cmp	x25, x8
	b.lt	LBB0_3
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AVSEEK_FLAG_BACKWARD,4,2       ; @AVSEEK_FLAG_BACKWARD
	.no_dead_strip	_rl2_read_seek
.subsections_via_symbols
