	.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	%edx, %r15d
	movq	_AVSEEK_FLAG_BYTE@GOTPCREL(%rip), %rax
	movq	_AVSEEK_FLAG_FRAME@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	testl	%ecx, %edx
	je	LBB0_1
## %bb.10:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	16(%rdi), %r13
	movq	(%rax), %r12
	xorl	%r14d, %r14d
	cmpl	$1, %esi
	je	LBB0_4
## %bb.2:
	testl	%esi, %esi
	jne	LBB0_9
## %bb.3:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ecx, %edx
	callq	_av_index_search_timestamp
	movl	%eax, %r15d
LBB0_4:
	testl	%r15d, %r15d
	js	LBB0_9
## %bb.5:
	cmpl	(%r12), %r15d
	jge	LBB0_9
## %bb.6:
	movl	(%rbx), %edi
	movq	8(%r12), %rax
	movl	%r15d, %ecx
	movl	(%rax,%rcx,4), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_avio_seek
	testq	%rax, %rax
	js	LBB0_7
## %bb.8:
	movq	_JV_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movl	%r15d, (%r13)
	jmp	LBB0_9
LBB0_7:
	movl	$-1, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVSEEK_FLAG_BYTE,4,2           ## @AVSEEK_FLAG_BYTE
	.comm	_AVSEEK_FLAG_FRAME,4,2          ## @AVSEEK_FLAG_FRAME
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_JV_AUDIO,4,2                   ## @JV_AUDIO
	.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
Lloh0:
	adrp	x8, _AVSEEK_FLAG_BYTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVSEEK_FLAG_BYTE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AVSEEK_FLAG_FRAME@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AVSEEK_FLAG_FRAME@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w3
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh8:
	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_2:
	mov	x19, x2
	mov	x20, x0
	ldp	x8, x22, [x0, #8]
	ldr	x21, [x8]
	cmp	w1, #1
	b.eq	LBB0_5
; %bb.3:
	cbnz	w1, LBB0_9
; %bb.4:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x3
	bl	_av_index_search_timestamp
	mov	x19, x0
LBB0_5:
	tbnz	w19, #31, LBB0_9
; %bb.6:
	ldr	w8, [x21]
	cmp	w19, w8
	b.ge	LBB0_9
; %bb.7:
	ldr	w0, [x20]
	ldr	x8, [x21, #8]
	ldr	w1, [x8, w19, uxtw #2]
Lloh9:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_avio_seek
	tbnz	x0, #63, LBB0_11
; %bb.8:
	mov	w0, #0
Lloh12:
	adrp	x8, _JV_AUDIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _JV_AUDIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	stp	w19, w8, [x22]
	b	LBB0_10
LBB0_9:
	mov	w0, #0
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
LBB0_11:
	mov	w0, #-1
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AVSEEK_FLAG_BYTE,4,2           ; @AVSEEK_FLAG_BYTE
	.comm	_AVSEEK_FLAG_FRAME,4,2          ; @AVSEEK_FLAG_FRAME
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_JV_AUDIO,4,2                   ; @JV_AUDIO
	.no_dead_strip	_read_seek
.subsections_via_symbols
