	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vqf_read_seek
_vqf_read_seek:                         ## @vqf_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
	movl	%edx, %eax
	movq	%rdi, %r14
	movq	16(%rdi), %rdx
	movslq	%esi, %rsi
	movq	(%rdx,%rsi,8), %r12
	movq	16(%r12), %rdx
	imull	(%rdx), %eax
	movq	24(%rdi), %r15
	movl	(%r15), %edx
	imull	(%r12), %edx
	movq	8(%r12), %rsi
	movq	_AVSEEK_FLAG_BACKWARD@GOTPCREL(%rip), %rdi
	andl	(%rdi), %ecx
	jne	LBB0_1
## %bb.2:
	movq	_AV_ROUND_UP@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_AV_ROUND_DOWN@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %ecx
	movl	%eax, %edi
	callq	_av_rescale_rnd
	movl	%eax, %ebx
	imull	(%r15), %ebx
	movl	(%r12), %esi
	movq	16(%r12), %rax
	movl	(%rax), %edx
	imull	8(%r12), %edx
	movl	%ebx, %edi
	callq	_av_rescale
	movl	%eax, 24(%r12)
	movl	8(%r14), %edi
	addl	$-7, %ebx
	movl	%ebx, %eax
	sarl	$3, %eax
	movslq	%eax, %rsi
	movq	(%r14), %rax
	addq	(%rax), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_avio_seek
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	andl	$7, %ebx
	movl	$-7, %eax
	subl	%ebx, %eax
	movl	%eax, 4(%r15)
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVSEEK_FLAG_BACKWARD,4,2       ## @AVSEEK_FLAG_BACKWARD
	.comm	_AV_ROUND_DOWN,4,2              ## @AV_ROUND_DOWN
	.comm	_AV_ROUND_UP,4,2                ## @AV_ROUND_UP
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_vqf_read_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vqf_read_seek
_vqf_read_seek:                         ; @vqf_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	x19, x0
	ldp	x8, x21, [x0, #16]
	ldr	x22, [x8, w1, sxtw #3]
	ldp	x1, x8, [x22, #8]
	ldr	w8, [x8]
	mul	w0, w8, w2
	ldr	w8, [x22]
	ldr	w9, [x21]
	mul	w2, w9, w8
Lloh0:
	adrp	x8, _AVSEEK_FLAG_BACKWARD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVSEEK_FLAG_BACKWARD@GOTPAGEOFF]
Lloh2:
	adrp	x9, _AV_ROUND_DOWN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AV_ROUND_DOWN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x10, _AV_ROUND_UP@GOTPAGE
Lloh6:
	ldr	x10, [x10, _AV_ROUND_UP@GOTPAGEOFF]
	tst	w8, w3
	csel	x8, x10, x9, eq
	ldr	w3, [x8]
	bl	_av_rescale_rnd
	ldr	w8, [x21]
	mul	w20, w8, w0
	ldr	w1, [x22]
	ldr	x8, [x22, #16]
	ldr	w8, [x8]
	ldr	w9, [x22, #8]
	mul	w2, w8, w9
	mov	x0, x20
	bl	_av_rescale
	str	w0, [x22, #24]
	ldr	w0, [x19, #8]
	sub	w20, w20, #7
	asr	w8, w20, #3
	ldr	x9, [x19]
	ldr	x9, [x9]
	add	x1, x9, w8, sxtw
Lloh7:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	bl	_avio_seek
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	w0, #0
	and	w8, w20, #0x7
	mov	w9, #-7
	sub	w8, w9, w8
	str	w8, [x21, #4]
LBB0_2:
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AVSEEK_FLAG_BACKWARD,4,2       ; @AVSEEK_FLAG_BACKWARD
	.comm	_AV_ROUND_DOWN,4,2              ; @AV_ROUND_DOWN
	.comm	_AV_ROUND_UP,4,2                ; @AV_ROUND_UP
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_vqf_read_seek
.subsections_via_symbols
