	.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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_CL_VideoRecording
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_CL_CloseAVI
LBB0_2:
	movq	_clc@GOTPCREL(%rip), %r15
	cmpq	$0, 16(%r15)
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_CL_StopRecord_f
LBB0_4:
	xorl	%eax, %eax
	callq	_S_StopAllSounds
	movl	8(%r15), %edi
	movq	_qtrue@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	callq	_FS_ConditionalRestart
	testl	%eax, %eax
	je	LBB0_5
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_com_sv_running@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_Hunk_ClearToMark
	jmp	LBB0_8
LBB0_7:
	xorl	%eax, %eax
	callq	_Hunk_Clear
LBB0_8:
	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	_qfalse@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_cls@GOTPCREL(%rip), %rbx
	movq	%rax, 24(%rbx)
	movq	%rax, 16(%rbx)
	movq	%rax, (%rbx)
	movq	%rax, 8(%rbx)
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_Cvar_Set
	xorl	%eax, %eax
	callq	_CL_InitRef
	movq	(%r12), %rdi
	callq	_CL_StartHunkUsers
	movq	(%r15), %rax
	movq	_CA_CONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_10
## %bb.9:
	movq	_CA_CINEMATIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.11:
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	callq	_CL_InitCGame
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CL_SendPureChecksums           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_clc,24,3                       ## @clc
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_com_sv_running,8,3             ## @com_sv_running
	.comm	_FS_UI_REF,4,2                  ## @FS_UI_REF
	.comm	_FS_CGAME_REF,4,2               ## @FS_CGAME_REF
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_cls,32,3                       ## @cls
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cl_paused"

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

	.comm	_CA_CONNECTED,8,3               ## @CA_CONNECTED
	.comm	_CA_CINEMATIC,8,3               ## @CA_CINEMATIC
.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	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
	bl	_CL_VideoRecording
	cbz	x0, LBB0_2
; %bb.1:
	bl	_CL_CloseAVI
LBB0_2:
Lloh0:
	adrp	x19, _clc@GOTPAGE
Lloh1:
	ldr	x19, [x19, _clc@GOTPAGEOFF]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
	bl	_CL_StopRecord_f
LBB0_4:
	bl	_S_StopAllSounds
	ldr	w0, [x19, #8]
Lloh2:
	adrp	x20, _qtrue@GOTPAGE
Lloh3:
	ldr	x20, [x20, _qtrue@GOTPAGEOFF]
	ldr	x1, [x20]
	bl	_FS_ConditionalRestart
	cbz	w0, LBB0_6
LBB0_5:
	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
LBB0_6:
Lloh4:
	adrp	x8, _com_sv_running@GOTPAGE
Lloh5:
	ldr	x8, [x8, _com_sv_running@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
	bl	_Hunk_ClearToMark
	b	LBB0_9
LBB0_8:
	bl	_Hunk_Clear
LBB0_9:
	bl	_CL_ShutdownUI
	bl	_CL_ShutdownCGame
	bl	_CL_ShutdownRef
	bl	_CL_ResetPureClientAtServer
Lloh7:
	adrp	x8, _FS_UI_REF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FS_UI_REF@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _FS_CGAME_REF@GOTPAGE
Lloh11:
	ldr	x9, [x9, _FS_CGAME_REF@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_FS_ClearPakReferences
Lloh13:
	adrp	x22, _qfalse@GOTPAGE
Lloh14:
	ldr	x22, [x22, _qfalse@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh15:
	adrp	x21, _cls@GOTPAGE
Lloh16:
	ldr	x21, [x21, _cls@GOTPAGEOFF]
	stp	x8, x8, [x21, #16]
	stp	x8, x8, [x21]
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_Cvar_Set
	bl	_CL_InitRef
	ldr	x0, [x22]
	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_5
; %bb.10:
Lloh24:
	adrp	x9, _CA_CINEMATIC@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CA_CINEMATIC@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.11:
	ldr	x8, [x20]
	str	x8, [x21]
	bl	_CL_InitCGame
	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
	b	_CL_SendPureChecksums
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_clc,24,3                       ; @clc
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_com_sv_running,8,3             ; @com_sv_running
	.comm	_FS_UI_REF,4,2                  ; @FS_UI_REF
	.comm	_FS_CGAME_REF,4,2               ; @FS_CGAME_REF
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_cls,32,3                       ; @cls
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cl_paused"

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

	.comm	_CA_CONNECTED,8,3               ; @CA_CONNECTED
	.comm	_CA_CINEMATIC,8,3               ; @CA_CINEMATIC
.subsections_via_symbols
