	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_seek
_read_seek:                             ## @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
	pushq	%rax
	.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, %r14
	movq	8(%rdi), %r12
	movq	16(%rdi), %rax
	movq	(%rax), %rbx
	movq	%rdx, %rdi
	xorl	%esi, %esi
	callq	_FFMAX
	movq	(%r12), %r13
	testq	%r13, %r13
	je	LBB0_4
## %bb.1:
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	movq	%rax, %rcx
	orq	%r13, %rcx
	shrq	$32, %rcx
	je	LBB0_7
## %bb.3:
	xorl	%edx, %edx
	divq	%r13
	movq	%rax, %rcx
	jmp	LBB0_8
LBB0_4:
	cmpq	$0, 8(%rbx)
	je	LBB0_15
## %bb.5:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	%r15d, %edx
	callq	_av_index_search_timestamp
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	%r15, %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %r13
	movq	8(%rax,%rcx), %rcx
	jmp	LBB0_13
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r13d
	movl	%eax, %ecx
LBB0_8:
	imulq	%rdi, %rcx
	movq	16(%r12), %rsi
	testq	%rsi, %rsi
	jle	LBB0_10
## %bb.9:
	movq	%rcx, %rdi
	callq	_FFMIN
	movq	%rax, %rcx
	movq	(%r12), %r13
	movq	8(%r12), %rdi
LBB0_10:
	movq	%rcx, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_12
## %bb.11:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rdi
	movq	%rax, %r15
	imulq	%rax, %r13
	jmp	LBB0_13
LBB0_12:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, %r15d
	imulq	%r15, %r13
LBB0_13:
	movl	(%r14), %edi
	addq	40(%r12), %rcx
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rcx, %rsi
	callq	_avio_seek
	testq	%rax, %rax
	js	LBB0_15
## %bb.14:
	movq	%r15, 24(%r12)
	movq	%r13, 32(%r12)
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_15:
	movl	$-1, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_read_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_seek
_read_seek:                             ; @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, x3
	mov	x19, x0
	ldp	x22, x8, [x0, #8]
	ldr	x21, [x8]
	mov	x0, x2
	mov	w1, #0
	bl	_FFMAX
	mov	x1, x0
	ldr	x8, [x22]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x9, [x22, #8]
	cbz	x9, LBB0_5
; %bb.2:
	udiv	x10, x1, x8
	mul	x0, x10, x9
	ldr	x1, [x22, #16]
	cmp	x1, #1
	b.lt	LBB0_4
; %bb.3:
	bl	_FFMIN
	ldp	x8, x9, [x22]
LBB0_4:
	udiv	x20, x0, x9
	mul	x21, x8, x20
	b	LBB0_7
LBB0_5:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_9
; %bb.6:
	mov	x0, x21
	mov	x2, x20
	bl	_av_index_search_timestamp
	mov	x20, x0
	ldr	x8, [x21]
	add	x8, x8, x0, lsl #4
	ldp	x21, x0, [x8]
LBB0_7:
	ldr	w8, [x19]
	ldr	x9, [x22, #40]
	add	x1, x9, x0
Lloh0:
	adrp	x9, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	mov	x0, x8
	bl	_avio_seek
	tbnz	x0, #63, LBB0_9
; %bb.8:
	mov	w0, #0
	stp	x20, x21, [x22, #24]
	b	LBB0_10
LBB0_9:
	mov	w0, #-1
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_read_seek
.subsections_via_symbols
