	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RoQShutdown
_RoQShutdown:                           ## @RoQShutdown
	.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
	movq	_cinTable@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_currentHandle@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	cmpl	$0, 32(%rax,%rcx,8)
	je	LBB0_9
## %bb.1:
	movq	(%rax,%rcx,8), %rax
	movq	_FMV_IDLE@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	je	LBB0_9
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_Com_DPrintf
	movq	(%rbx), %rcx
	movq	(%r15), %rax
	movq	(%r12), %rdx
	leaq	(%rdx,%rdx,4), %rdx
	movq	%rcx, (%rax,%rdx,8)
	movq	(%r12), %rcx
	leaq	(%rcx,%rcx,4), %rdx
	movq	24(%rax,%rdx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_Sys_EndStreamedFile
	movq	(%r15), %rax
	movq	(%r12), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	movq	24(%rax,%rcx,8), %rdi
	callq	_FS_FCloseFile
	movq	(%r15), %rax
	movq	(%r12), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	movq	$0, 24(%rax,%rcx,8)
	movq	(%r12), %rcx
LBB0_4:
	leaq	(%rcx,%rcx,4), %rdx
	cmpq	$0, 16(%rax,%rdx,8)
	je	LBB0_8
## %bb.5:
	movq	_CA_DISCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_cls@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str.1(%rip), %rdi
	callq	_Cvar_VariableString
	cmpb	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_EXEC_APPEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	callq	_va
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_Cbuf_ExecuteText
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_Cvar_Set
LBB0_7:
	movq	_CL_handle@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	movq	(%r15), %rax
	movq	(%r12), %rcx
LBB0_8:
	leaq	(%rcx,%rcx,4), %rcx
	movq	8(%rax,%rcx,8), %rax
	movq	$0, (%rax)
	movq	$-1, (%r12)
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cinTable,8,3                   ## @cinTable
	.comm	_currentHandle,8,3              ## @currentHandle
	.comm	_FMV_IDLE,8,3                   ## @FMV_IDLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"finished cinematic\n"

	.comm	_CA_DISCONNECTED,4,2            ## @CA_DISCONNECTED
	.comm	_cls,4,2                        ## @cls
L_.str.1:                               ## @.str.1
	.asciz	"nextmap"

	.comm	_EXEC_APPEND,4,2                ## @EXEC_APPEND
L_.str.2:                               ## @.str.2
	.asciz	"%s\n"

L_.str.3:                               ## @.str.3
	.space	1

	.comm	_CL_handle,4,2                  ## @CL_handle
	.no_dead_strip	_RoQShutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RoQShutdown
_RoQShutdown:                           ; @RoQShutdown
	.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	x21, _cinTable@GOTPAGE
Lloh1:
	ldr	x21, [x21, _cinTable@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x20, _currentHandle@GOTPAGE
Lloh3:
	ldr	x20, [x20, _currentHandle@GOTPAGEOFF]
	ldr	x9, [x20]
	mov	w10, #40
	madd	x10, x9, x10, x8
	ldr	w10, [x10, #32]
	cbz	w10, LBB0_9
; %bb.1:
	mov	w10, #40
	mul	x9, x9, x10
	ldr	x8, [x8, x9]
Lloh4:
	adrp	x19, _FMV_IDLE@GOTPAGE
Lloh5:
	ldr	x19, [x19, _FMV_IDLE@GOTPAGEOFF]
	ldr	x9, [x19]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Com_DPrintf
	ldr	x9, [x19]
	ldr	x8, [x21]
	ldr	x10, [x20]
	mov	w11, #40
	mul	x10, x10, x11
	str	x9, [x8, x10]
	ldr	x9, [x20]
	madd	x10, x9, x11, x8
	ldr	x0, [x10, #24]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_Sys_EndStreamedFile
	ldr	x8, [x21]
	ldr	x9, [x20]
	mov	w19, #40
	madd	x8, x9, x19, x8
	ldr	x0, [x8, #24]
	bl	_FS_FCloseFile
	ldr	x8, [x21]
	ldr	x9, [x20]
	madd	x9, x9, x19, x8
	str	xzr, [x9, #24]
	ldr	x9, [x20]
LBB0_4:
	mov	w10, #40
	madd	x10, x9, x10, x8
	ldr	x10, [x10, #16]
	cbz	x10, LBB0_8
; %bb.5:
Lloh8:
	adrp	x8, _CA_DISCONNECTED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CA_DISCONNECTED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _cls@GOTPAGE
Lloh12:
	ldr	x9, [x9, _cls@GOTPAGEOFF]
Lloh13:
	str	w8, [x9]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Cvar_VariableString
	ldrb	w8, [x0]
	cbz	w8, LBB0_7
; %bb.6:
	mov	x1, x0
Lloh16:
	adrp	x8, _EXEC_APPEND@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EXEC_APPEND@GOTPAGEOFF]
Lloh18:
	ldr	w19, [x8]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_va
	mov	x1, x0
	mov	x0, x19
	bl	_Cbuf_ExecuteText
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_Cvar_Set
LBB0_7:
Lloh25:
	adrp	x8, _CL_handle@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CL_handle@GOTPAGEOFF]
	mov	w9, #-1
Lloh27:
	str	w9, [x8]
	ldr	x8, [x21]
	ldr	x9, [x20]
LBB0_8:
	mov	w10, #40
	madd	x8, x9, x10, x8
	ldr	x8, [x8, #8]
	str	xzr, [x8]
	mov	x8, #-1
	str	x8, [x20]
LBB0_9:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_cinTable,8,3                   ; @cinTable
	.comm	_currentHandle,8,3              ; @currentHandle
	.comm	_FMV_IDLE,8,3                   ; @FMV_IDLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"finished cinematic\n"

	.comm	_CA_DISCONNECTED,4,2            ; @CA_DISCONNECTED
	.comm	_cls,4,2                        ; @cls
l_.str.1:                               ; @.str.1
	.asciz	"nextmap"

	.comm	_EXEC_APPEND,4,2                ; @EXEC_APPEND
l_.str.2:                               ; @.str.2
	.asciz	"%s\n"

l_.str.3:                               ; @.str.3
	.space	1

	.comm	_CL_handle,4,2                  ; @CL_handle
	.no_dead_strip	_RoQShutdown
.subsections_via_symbols
