	.file	"extr_cl_cin.c_RoQReset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	RoQReset, @function
RoQReset:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	rax, QWORD PTR currentHandle[rip]
	mov	rdx, QWORD PTR cinTable[rip]
	lea	rax, [rax+rax*2]
	lea	rax, [rdx+rax*4]
	mov	edi, DWORD PTR 4[rax]
	call	Sys_EndStreamedFile@PLT
	mov	rax, QWORD PTR currentHandle[rip]
	mov	rcx, QWORD PTR cinTable[rip]
	lea	rax, [rax+rax*2]
	lea	rax, [rcx+rax*4]
	mov	edi, DWORD PTR 4[rax]
	call	FS_FCloseFile@PLT
	mov	rax, QWORD PTR currentHandle[rip]
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR cinTable[rip]
	lea	rax, [rax+rdx*4]
	mov	edx, DWORD PTR qtrue[rip]
	mov	edi, DWORD PTR 8[rax]
	lea	rsi, 4[rax]
	call	FS_FOpenFileRead@PLT
	mov	rax, QWORD PTR currentHandle[rip]
	mov	rsi, QWORD PTR cinTable[rip]
	lea	rax, [rax+rax*2]
	lea	rax, [rsi+rax*4]
	mov	esi, 65536
	mov	edi, DWORD PTR 4[rax]
	call	Sys_BeginStreamedFile@PLT
	mov	edx, 1
	mov	esi, 16
	mov	rax, QWORD PTR currentHandle[rip]
	mov	rdi, QWORD PTR cinTable[rip]
	lea	rax, [rax+rax*2]
	lea	rax, [rdi+rax*4]
	mov	edi, DWORD PTR cin[rip]
	mov	ecx, DWORD PTR 4[rax]
	call	Sys_StreamedRead@PLT
	xor	eax, eax
	call	RoQ_init@PLT
	mov	rax, QWORD PTR currentHandle[rip]
	mov	r8, QWORD PTR cinTable[rip]
	mov	edx, DWORD PTR FMV_LOOPED[rip]
	lea	rax, [rax+rax*2]
	lea	rax, [r8+rax*4]
	mov	DWORD PTR [rax], edx
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	RoQReset, .-RoQReset
	.comm	qtrue,4,4
	.comm	currentHandle,8,8
	.comm	cinTable,8,8
	.comm	cin,4,4
	.comm	FMV_LOOPED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cl_cin.c_RoQReset.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	RoQReset, %function
RoQReset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L4
	ldr	r4, .L4+4
	ldr	r3, [r5]
	ldr	r2, [r4]
	add	r3, r3, r3, lsl #1
	add	r3, r2, r3, lsl #2
	ldr	r0, [r3, #4]
	bl	Sys_EndStreamedFile
	ldr	r3, [r5]
	ldr	r2, [r4]
	add	r3, r3, r3, lsl #1
	add	r3, r2, r3, lsl #2
	ldr	r0, [r3, #4]
	bl	FS_FCloseFile
	ldr	r2, [r5]
	ldr	r3, [r4]
	ldr	ip, .L4+8
	add	r2, r2, r2, lsl #1
	add	r3, r3, r2, lsl #2
	add	r1, r3, #4
	ldr	r2, [ip]
	ldr	r0, [r3, #8]
	bl	FS_FOpenFileRead
	ldr	r3, [r5]
	ldr	r2, [r4]
	add	r3, r3, r3, lsl #1
	add	r3, r2, r3, lsl #2
	mov	r1, #65536
	ldr	r0, [r3, #4]
	bl	Sys_BeginStreamedFile
	ldr	r3, [r5]
	ldr	r2, [r4]
	ldr	r1, .L4+12
	add	r3, r3, r3, lsl #1
	add	r3, r2, r3, lsl #2
	ldr	r3, [r3, #4]
	mov	r2, #1
	ldr	r0, [r1]
	mov	r1, #16
	bl	Sys_StreamedRead
	bl	RoQ_init
	ldr	r1, .L4+16
	ldr	r3, [r5]
	ldr	r2, [r4]
	ldr	r1, [r1]
	add	r3, r3, r3, lsl #1
	str	r1, [r2, r3, lsl #2]
	pop	{r4, r5, r6, pc}
.L5:
	.align	2
.L4:
	.word	currentHandle
	.word	cinTable
	.word	qtrue
	.word	cin
	.word	FMV_LOOPED
	.size	RoQReset, .-RoQReset
	.comm	qtrue,4,4
	.comm	currentHandle,4,4
	.comm	cinTable,4,4
	.comm	cin,4,4
	.comm	FMV_LOOPED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
