	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function viv_read_seek
_viv_read_seek:                         ## @viv_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	%rdi, %r14
	movq	16(%rdi), %r13
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rcx
	movq	(%rcx), %rax
	movl	8(%rax), %eax
	movslq	%esi, %rsi
	movq	(%rcx,%rsi,8), %rcx
	movl	8(%rcx), %ecx
	movq	%rdx, %rdi
	movl	%eax, %esi
	movl	%ecx, %edx
	callq	_av_rescale_q
	movq	%rax, %rdx
LBB0_2:
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.4:
	movq	24(%r13), %rax
	movb	$1, %r15b
	movl	$16, %ebx
	xorl	%esi, %esi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rsi
	cmpq	%rcx, %rsi
	setb	%r15b
	addq	$24, %rbx
	cmpq	%rsi, %rcx
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-16(%rax,%rbx), %rdi
	cmpq	%rdi, %rdx
	jl	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	-8(%rax,%rbx), %rdi
	cmpq	%rdi, %rdx
	jge	LBB0_8
## %bb.7:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r13)
	movl	%esi, 4(%r13)
	movl	8(%r14), %edi
	movq	(%rax,%rbx), %rsi
	addq	32(%r13), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_avio_seek
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_load_sb_block
	movq	24(%r13), %rax
	movq	-16(%rax,%rbx), %rbx
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movl	$1, %esi
	callq	_av_make_q
	movl	%eax, %r12d
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	8(%rax), %edi
	callq	_av_inv_q
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_av_rescale_q
	movq	%rax, 16(%r13)
	movq	(%r14), %rcx
	movq	8(%rcx), %rcx
	movq	(%rcx), %rcx
	addq	(%rcx), %rax
	movq	%rax, 16(%r13)
	movq	$0, 8(%r13)
	jmp	LBB0_9
LBB0_3:
	xorl	%r15d, %r15d
LBB0_9:
	movzbl	%r15b, %eax
	andl	$1, %eax
	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	_viv_read_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function viv_read_seek
_viv_read_seek:                         ; @viv_read_seek
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x9, x2
	mov	x20, x0
	ldr	x19, [x0, #16]
	cbz	w1, LBB0_2
; %bb.1:
	ldr	x10, [x20]
	ldr	x8, [x10]
	ldr	w8, [x8, #8]
	ldr	x10, [x10, w1, sxtw #3]
	ldr	w2, [x10, #8]
	mov	x0, x9
	mov	x1, x8
	bl	_av_rescale_q
	mov	x9, x0
LBB0_2:
	ldr	w10, [x19]
	cmp	w10, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x11, #0
	ldr	x8, [x19, #24]
	add	x8, x8, #16
	mov	w23, #1
	mov	w21, #8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x11, x11, #1
	cmp	x11, x10
	cset	w23, lo
	add	x8, x8, #24
	add	x21, x21, #24
	cmp	x10, x11
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x8, #-16]
	cmp	x9, x12
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	x13, [x8, #-8]
	add	x12, x13, x12
	cmp	x9, x12
	b.ge	LBB0_4
; %bb.7:
	stp	xzr, xzr, [x19, #40]
	str	w11, [x19, #4]
	ldr	w0, [x20, #8]
	ldr	x9, [x19, #32]
	ldr	x8, [x8]
	add	x1, x8, x9
Lloh0:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_avio_seek
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_load_sb_block
	ldr	x8, [x19, #24]
	add	x8, x8, x21
	ldur	x21, [x8, #-8]
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	x0, [x8]
	mov	w1, #1
	bl	_av_make_q
	mov	x22, x0
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w0, [x8, #8]
	bl	_av_inv_q
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_av_rescale_q
	ldr	x8, [x20]
	str	x0, [x19, #16]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x8, x0, x8
	stp	xzr, x8, [x19, #8]
	b	LBB0_9
LBB0_8:
	mov	w23, #0
LBB0_9:
	and	w0, w23, #0x1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_viv_read_seek
.subsections_via_symbols
