	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RoQReset
_RoQReset:                              ## @RoQReset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_currentHandle@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_cinTable@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	leaq	(%rax,%rax,2), %rax
	movl	4(%rcx,%rax,4), %edi
	callq	_Sys_EndStreamedFile
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	4(%rax,%rcx,4), %edi
	callq	_FS_FCloseFile
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	8(%rax,%rcx,4), %edi
	leaq	(%rax,%rcx,4), %rsi
	addq	$4, %rsi
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_FS_FOpenFileRead
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	4(%rax,%rcx,4), %edi
	movl	$65536, %esi                    ## imm = 0x10000
	callq	_Sys_BeginStreamedFile
	movq	_cin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	4(%rax,%rcx,4), %ecx
	movl	$16, %esi
	movl	$1, %edx
	callq	_Sys_StreamedRead
	xorl	%eax, %eax
	callq	_RoQ_init
	movq	_FMV_LOOPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movq	(%r14), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movl	%eax, (%rcx,%rdx,4)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_currentHandle,8,3              ## @currentHandle
	.comm	_cinTable,8,3                   ## @cinTable
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_cin,4,2                        ## @cin
	.comm	_FMV_LOOPED,4,2                 ## @FMV_LOOPED
	.no_dead_strip	_RoQReset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RoQReset
_RoQReset:                              ; @RoQReset
	.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	x19, _currentHandle@GOTPAGE
Lloh1:
	ldr	x19, [x19, _currentHandle@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x20, _cinTable@GOTPAGE
Lloh3:
	ldr	x20, [x20, _cinTable@GOTPAGEOFF]
	ldr	x9, [x20]
	mov	w21, #12
	madd	x8, x8, x21, x9
	ldr	w0, [x8, #4]
	bl	_Sys_EndStreamedFile
	ldr	x8, [x20]
	ldr	x9, [x19]
	madd	x8, x9, x21, x8
	ldr	w0, [x8, #4]
	bl	_FS_FCloseFile
	ldr	x8, [x20]
	ldr	x9, [x19]
	madd	x8, x9, x21, x8
	ldr	w0, [x8, #8]
	add	x1, x8, #4
Lloh4:
	adrp	x8, _qtrue@GOTPAGE
Lloh5:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	bl	_FS_FOpenFileRead
	ldr	x8, [x20]
	ldr	x9, [x19]
	madd	x8, x9, x21, x8
	ldr	w0, [x8, #4]
	mov	w1, #65536
	bl	_Sys_BeginStreamedFile
Lloh7:
	adrp	x8, _cin@GOTPAGE
Lloh8:
	ldr	x8, [x8, _cin@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	x8, [x20]
	ldr	x9, [x19]
	madd	x8, x9, x21, x8
	ldr	w3, [x8, #4]
	mov	w1, #16
	mov	w2, #1
	bl	_Sys_StreamedRead
	bl	_RoQ_init
Lloh10:
	adrp	x8, _FMV_LOOPED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FMV_LOOPED@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	x9, [x20]
	ldr	x10, [x19]
	mul	x10, x10, x21
	str	w8, [x9, x10]
	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	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_currentHandle,8,3              ; @currentHandle
	.comm	_cinTable,8,3                   ; @cinTable
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_cin,4,2                        ; @cin
	.comm	_FMV_LOOPED,4,2                 ; @FMV_LOOPED
	.no_dead_strip	_RoQReset
.subsections_via_symbols
