	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function voc_read_seek
_voc_read_seek:                         ## @voc_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	jle	LBB0_8
## %bb.1:
	movq	%rdx, %r14
	movq	16(%rbx), %r12
	movq	8(%rbx), %rax
	movslq	%esi, %rdx
	movq	(%rax,%rdx,8), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ecx, %edx
	callq	_av_index_search_timestamp
	movslq	(%r15), %rdx
	leaq	-1(%rdx), %rcx
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	cmpl	%ecx, %eax
	jge	LBB0_4
## %bb.3:
	movq	8(%r15), %r14
	movl	%eax, %r15d
	movl	4(%rbx), %edi
	shlq	$4, %r15
	movl	12(%r14,%r15), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_avio_seek
	movq	(%r14,%r15), %rax
	movq	%rax, (%r12)
	movl	8(%r14,%r15), %eax
	movl	%eax, 8(%r12)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_8:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	movl	$-1, %eax
	testl	%edx, %edx
	je	LBB0_7
## %bb.5:
	movq	8(%r15), %rdx
	cmpq	%r14, (%rdx)
	jg	LBB0_7
## %bb.6:
	shlq	$4, %rcx
	movq	(%rdx,%rcx), %rsi
	movq	%rsi, (%r12)
	movl	8(%rdx,%rcx), %ecx
	movl	%ecx, 8(%r12)
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot seek while no stream was found yet\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_voc_read_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function voc_read_seek
_voc_read_seek:                         ; @voc_read_seek
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #0
	b.le	LBB0_4
; %bb.1:
	mov	x19, x2
	ldp	x8, x22, [x20, #8]
	ldr	x21, [x8, w1, sxtw #3]
	mov	x0, x21
	mov	x1, x2
	mov	x2, x3
	bl	_av_index_search_timestamp
	ldr	w9, [x21]
	sub	w8, w9, #1
	tbnz	w0, #31, LBB0_5
; %bb.2:
	cmp	w0, w8
	b.ge	LBB0_5
; %bb.3:
	ldr	x9, [x21, #8]
	ldr	w8, [x20, #4]
	add	x19, x9, w0, uxtw #4
	ldr	w1, [x19, #12]
Lloh0:
	adrp	x9, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	mov	x0, x8
	bl	_avio_seek
	mov	w0, #0
	ldr	x8, [x19]
	str	x8, [x22]
	ldr	w8, [x19, #8]
	str	w8, [x22, #8]
	b	LBB0_9
LBB0_4:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_5:
	cbz	w9, LBB0_8
; %bb.6:
	ldr	x9, [x21, #8]
	ldr	x10, [x9]
	cmp	x10, x19
	b.gt	LBB0_8
; %bb.7:
	add	x8, x9, w8, sxtw #4
	ldr	x9, [x8]
	str	x9, [x22]
	ldr	w8, [x8, #8]
	str	w8, [x22, #8]
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot seek while no stream was found yet\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_voc_read_seek
.subsections_via_symbols
