	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Com_GameRestart                ## -- Begin function Com_GameRestart
	.p2align	4, 0x90
_Com_GameRestart:                       ## @Com_GameRestart
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_com_gameRestarting@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jne	LBB0_13
## %bb.1:
	movq	_com_fullyInitialized@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.2:
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	_qtrue@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, (%r15)
	movq	_com_cl_running@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_com_gameClientRestarting@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	movq	_com_sv_running@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_SV_Shutdown
	movq	(%r12), %rax
LBB0_4:
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.6:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_CL_Disconnect
LBB0_7:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_CL_Shutdown
LBB0_8:
	movl	%r14d, %edi
	callq	_FS_Restart
	movq	(%r13), %rdi
	callq	_Cvar_Restart
	xorl	%eax, %eax
	callq	_Com_ExecuteCfg
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_NET_Restart_f
LBB0_10:
	cmpq	$0, (%r12)
	je	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	callq	_CL_Init
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_CL_StartHunkUsers
LBB0_12:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	%rax, (%r12)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_com_gameRestarting,8,3         ## @com_gameRestarting
	.comm	_com_fullyInitialized,8,3       ## @com_fullyInitialized
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_com_cl_running,8,3             ## @com_cl_running
	.comm	_com_gameClientRestarting,8,3   ## @com_gameClientRestarting
	.comm	_com_sv_running,8,3             ## @com_sv_running
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Game directory changed"

	.comm	_qfalse,8,3                     ## @qfalse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Com_GameRestart                ; -- Begin function Com_GameRestart
	.p2align	2
_Com_GameRestart:                       ; @Com_GameRestart
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x21, _com_gameRestarting@GOTPAGE
Lloh1:
	ldr	x21, [x21, _com_gameRestarting@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _com_fullyInitialized@GOTPAGE
Lloh3:
	ldr	x9, [x9, _com_fullyInitialized@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x9, #0, #4, eq
	b.eq	LBB0_12
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh5:
	adrp	x24, _qtrue@GOTPAGE
Lloh6:
	ldr	x24, [x24, _qtrue@GOTPAGEOFF]
	ldr	x8, [x24]
	str	x8, [x21]
Lloh7:
	adrp	x8, _com_cl_running@GOTPAGE
Lloh8:
	ldr	x8, [x8, _com_cl_running@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x22, _com_gameClientRestarting@GOTPAGE
Lloh11:
	ldr	x22, [x22, _com_gameClientRestarting@GOTPAGEOFF]
	ldr	x8, [x8]
	str	x8, [x22]
Lloh12:
	adrp	x9, _com_sv_running@GOTPAGE
Lloh13:
	ldr	x9, [x9, _com_sv_running@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldr	x9, [x9]
	cbz	x9, LBB0_3
; %bb.2:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_SV_Shutdown
	ldr	x8, [x22]
LBB0_3:
Lloh17:
	adrp	x23, _qfalse@GOTPAGE
Lloh18:
	ldr	x23, [x23, _qfalse@GOTPAGEOFF]
	cbz	x8, LBB0_7
; %bb.4:
	cbz	x19, LBB0_6
; %bb.5:
	ldr	x0, [x23]
	bl	_CL_Disconnect
LBB0_6:
	ldr	x2, [x23]
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_CL_Shutdown
LBB0_7:
	mov	x0, x20
	bl	_FS_Restart
	ldr	x0, [x24]
	bl	_Cvar_Restart
	bl	_Com_ExecuteCfg
	cbz	x19, LBB0_9
; %bb.8:
	bl	_NET_Restart_f
LBB0_9:
	ldr	x8, [x22]
	cbz	x8, LBB0_11
; %bb.10:
	bl	_CL_Init
	ldr	x0, [x23]
	bl	_CL_StartHunkUsers
LBB0_11:
	ldr	x8, [x23]
	str	x8, [x21]
	str	x8, [x22]
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_com_gameRestarting,8,3         ; @com_gameRestarting
	.comm	_com_fullyInitialized,8,3       ; @com_fullyInitialized
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_com_cl_running,8,3             ; @com_cl_running
	.comm	_com_gameClientRestarting,8,3   ; @com_gameClientRestarting
	.comm	_com_sv_running,8,3             ; @com_sv_running
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Game directory changed"

	.comm	_qfalse,8,3                     ; @qfalse
.subsections_via_symbols
