	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_Vid_Restart_f               ## -- Begin function CL_Vid_Restart_f
	.p2align	4, 0x90
_CL_Vid_Restart_f:                      ## @CL_Vid_Restart_f
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	callq	_S_StopAllSounds
	xorl	%eax, %eax
	callq	_CL_ShutdownUI
	xorl	%eax, %eax
	callq	_CL_ShutdownCGame
	xorl	%eax, %eax
	callq	_CL_ShutdownRef
	xorl	%eax, %eax
	callq	_CL_ResetPureClientAtServer
	movq	_FS_UI_REF@GOTPCREL(%rip), %rax
	movq	_FS_CGAME_REF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_FS_ClearPakReferences
	movq	_clc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FS_ConditionalRestart
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_cls@GOTPCREL(%rip), %rbx
	movq	%rax, 32(%rbx)
	movq	%rax, 24(%rbx)
	movq	%rax, 8(%rbx)
	movq	%rax, 16(%rbx)
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_Cvar_Set
	movq	_com_sv_running@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	_Hunk_ClearToMark
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
	callq	_Hunk_Clear
LBB0_3:
	xorl	%eax, %eax
	callq	_CL_InitRef
	xorl	%eax, %eax
	callq	_CL_StartHunkUsers
	movq	(%rbx), %rax
	movq	_CA_CONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_5
## %bb.4:
	movq	_CA_CINEMATIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.6:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	xorl	%eax, %eax
	callq	_CL_InitCGame
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_CL_SendPureChecksums           ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FS_UI_REF,4,2                  ## @FS_UI_REF
	.comm	_FS_CGAME_REF,4,2               ## @FS_CGAME_REF
	.comm	_clc,4,2                        ## @clc
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_cls,40,3                       ## @cls
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cl_paused"

L_.str.1:                               ## @.str.1
	.asciz	"0"

	.comm	_com_sv_running,8,3             ## @com_sv_running
	.comm	_CA_CONNECTED,8,3               ## @CA_CONNECTED
	.comm	_CA_CINEMATIC,8,3               ## @CA_CINEMATIC
	.comm	_qtrue,8,3                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_Vid_Restart_f               ; -- Begin function CL_Vid_Restart_f
	.p2align	2
_CL_Vid_Restart_f:                      ; @CL_Vid_Restart_f
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_S_StopAllSounds
	bl	_CL_ShutdownUI
	bl	_CL_ShutdownCGame
	bl	_CL_ShutdownRef
	bl	_CL_ResetPureClientAtServer
Lloh0:
	adrp	x8, _FS_UI_REF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FS_UI_REF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FS_CGAME_REF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FS_CGAME_REF@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_FS_ClearPakReferences
Lloh6:
	adrp	x8, _clc@GOTPAGE
Lloh7:
	ldr	x8, [x8, _clc@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_FS_ConditionalRestart
Lloh9:
	adrp	x8, _qfalse@GOTPAGE
Lloh10:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x19, _cls@GOTPAGE
Lloh13:
	ldr	x19, [x19, _cls@GOTPAGEOFF]
	stp	x8, x8, [x19, #24]
	stp	x8, x8, [x19, #8]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_Cvar_Set
Lloh18:
	adrp	x8, _com_sv_running@GOTPAGE
Lloh19:
	ldr	x8, [x8, _com_sv_running@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
	bl	_Hunk_ClearToMark
	b	LBB0_3
LBB0_2:
	bl	_Hunk_Clear
LBB0_3:
	bl	_CL_InitRef
	bl	_CL_StartHunkUsers
	ldr	x8, [x19]
Lloh21:
	adrp	x9, _CA_CONNECTED@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CA_CONNECTED@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_6
; %bb.4:
Lloh24:
	adrp	x9, _CA_CINEMATIC@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CA_CINEMATIC@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
Lloh27:
	adrp	x8, _qtrue@GOTPAGE
Lloh28:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	bl	_CL_InitCGame
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_CL_SendPureChecksums
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_FS_UI_REF,4,2                  ; @FS_UI_REF
	.comm	_FS_CGAME_REF,4,2               ; @FS_CGAME_REF
	.comm	_clc,4,2                        ; @clc
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_cls,40,3                       ; @cls
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cl_paused"

l_.str.1:                               ; @.str.1
	.asciz	"0"

	.comm	_com_sv_running,8,3             ; @com_sv_running
	.comm	_CA_CONNECTED,8,3               ; @CA_CONNECTED
	.comm	_CA_CINEMATIC,8,3               ; @CA_CINEMATIC
	.comm	_qtrue,8,3                      ; @qtrue
.subsections_via_symbols
