	.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
	movq	_AVSEEK_FLAG_FRAME@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_AVSEEK_FLAG_BYTE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_4
LBB0_2:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %r13
	movq	40(%r13), %rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rdx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	cmpq	(%rdi), %rdx
	cmovneq	%rdx, %rsi
	movq	(%rax), %r15
	movq	%r14, %r12
	subq	%rsi, %r12
	movq	32(%r13), %rdi
	movl	8(%r13), %esi
	movq	%r12, %rdx
	callq	_ff_index_search_timestamp
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:
	movq	32(%r13), %rcx
	movl	%eax, %ebx
	shlq	$4, %rbx
	movl	8(%rcx,%rbx), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_avio_seek
	testq	%rax, %rax
	js	LBB0_17
## %bb.6:
	movq	(%r13), %rcx
	movq	32(%r13), %rax
	movq	(%rax,%rbx), %rax
	movq	%rax, 24(%r13)
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_8
## %bb.7:
	addq	%rcx, %rax
	movq	%rax, 24(%r13)
LBB0_8:
	movq	%rax, 16(%r13)
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	16(%r13), %rcx
	cmpq	%r14, %rcx
	jg	LBB0_18
## %bb.11:
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	je	LBB0_18
## %bb.12:
	movq	(%r15), %rcx
	cmpq	%rax, %rcx
	je	LBB0_19
## %bb.13:
	cmpq	%rcx, %r12
	jle	LBB0_19
## %bb.14:
	movslq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.15:
	movq	32(%r13), %rcx
	shlq	$4, %rax
	movl	-8(%rax,%rcx), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_16
LBB0_18:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
LBB0_16:
	callq	_avio_seek
	testq	%rax, %rax
	js	LBB0_17
LBB0_19:
	movq	_SEEK_TO_PTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_parse_chunks
	testq	%rax, %rax
	jns	LBB0_9
## %bb.20:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_17:
	movl	$-1, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVSEEK_FLAG_FRAME,4,2          ## @AVSEEK_FLAG_FRAME
	.comm	_AVSEEK_FLAG_BYTE,4,2           ## @AVSEEK_FLAG_BYTE
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_SEEK_TO_PTS,4,2                ## @SEEK_TO_PTS
	.comm	_ERANGE,4,2                     ## @ERANGE
	.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	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
Lloh0:
	adrp	x8, _AVSEEK_FLAG_FRAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVSEEK_FLAG_FRAME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w3
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _AVSEEK_FLAG_BYTE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVSEEK_FLAG_BYTE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w3
	b.eq	LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_4:
	mov	x19, x2
	mov	x20, x0
	ldp	x8, x24, [x0]
	ldr	x26, [x8]
	ldr	x8, [x24]
Lloh8:
	adrp	x25, _AV_NOPTS_VALUE@GOTPAGE
Lloh9:
	ldr	x25, [x25, _AV_NOPTS_VALUE@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	csel	x8, xzr, x8, eq
	sub	x22, x2, x8
	ldp	x0, x21, [x24, #32]
	ldr	w1, [x24, #8]
	mov	x2, x22
	bl	_ff_index_search_timestamp
	tbnz	w0, #31, LBB0_9
; %bb.5:
	mov	x23, x0
	ldr	x8, [x24, #32]
	add	x8, x8, w0, uxtw #4
	ldr	w1, [x8, #8]
Lloh10:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_avio_seek
	tbnz	x0, #63, LBB0_16
; %bb.6:
	mov	w8, w23
	ldr	x9, [x24, #32]
	lsl	x8, x8, #4
	ldr	x8, [x9, x8]
	str	x8, [x24, #24]
	ldr	x9, [x24]
	ldr	x10, [x25]
	cmp	x9, x10
	b.eq	LBB0_8
; %bb.7:
	add	x8, x9, x8
	str	x8, [x24, #24]
LBB0_8:
	mov	w0, #0
	str	x8, [x24, #16]
	b	LBB0_17
LBB0_9:
	ldr	x9, [x24, #16]
	ldr	x8, [x25]
	cmp	x9, x19
	ccmp	x9, x8, #4, le
	b.ne	LBB0_11
; %bb.10:
Lloh13:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #0
	bl	_avio_seek
	tbz	x0, #63, LBB0_14
	b	LBB0_16
LBB0_11:
	ldr	x9, [x26]
	cmp	x9, x8
	ccmp	x22, x9, #4, ne
	b.le	LBB0_14
; %bb.12:
	ldr	w8, [x24, #8]
	cbz	w8, LBB0_14
; %bb.13:
	ldr	x9, [x24, #32]
	sub	w8, w8, #1
	add	x8, x9, w8, sxtw #4
	ldr	w1, [x8, #8]
Lloh16:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_avio_seek
	tbnz	x0, #63, LBB0_16
LBB0_14:
Lloh19:
	adrp	x8, _SEEK_TO_PTS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SEEK_TO_PTS@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	mov	w3, #0
	bl	_parse_chunks
	mov	x8, x0
	mov	w0, #0
	tbz	x8, #63, LBB0_17
; %bb.15:
Lloh22:
	adrp	x8, _ERANGE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
	b	LBB0_3
LBB0_16:
	mov	w0, #-1
LBB0_17:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_AVSEEK_FLAG_FRAME,4,2          ; @AVSEEK_FLAG_FRAME
	.comm	_AVSEEK_FLAG_BYTE,4,2           ; @AVSEEK_FLAG_BYTE
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_SEEK_TO_PTS,4,2                ; @SEEK_TO_PTS
	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	_read_seek
.subsections_via_symbols
