	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FS_ConditionalRestart          ## -- Begin function FS_ConditionalRestart
	.p2align	4, 0x90
_FS_ConditionalRestart:                 ## @FS_ConditionalRestart
	.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
	movl	%edi, %ebx
	movq	_fs_gamedirvar@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.1:
	movq	%rsi, %r14
	movq	_lastValidGame@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	8(%rax), %rsi
	callq	_FS_FilenameCompare
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	(%r12), %rax
	cmpq	$0, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	(%r15), %rax
	movq	8(%rax), %rdi
	movq	_com_basegame@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	callq	_FS_FilenameCompare
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:
	movq	(%r15), %rax
	movq	8(%rax), %rax
	cmpq	$0, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	(%r12), %rdi
	movq	_com_basegame@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	callq	_FS_FilenameCompare
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_Com_GameRestart
	movq	_qtrue@GOTPCREL(%rip), %rbx
	jmp	LBB0_13
LBB0_7:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
LBB0_8:
	movq	_fs_checksumFeed@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_9
## %bb.10:
	movq	_fs_numServerPaks@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_qfalse@GOTPCREL(%rip), %rbx
	je	LBB0_13
## %bb.11:
	movq	_fs_reordered@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	callq	_FS_ReorderPurePaks
	jmp	LBB0_13
LBB0_9:
	movl	%ebx, %edi
	callq	_FS_Restart
	movq	_qfalse@GOTPCREL(%rip), %rbx
LBB0_13:
	movq	(%rbx), %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fs_gamedirvar,8,3              ## @fs_gamedirvar
	.comm	_lastValidGame,8,3              ## @lastValidGame
	.comm	_com_basegame,8,3               ## @com_basegame
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_fs_checksumFeed,4,2            ## @fs_checksumFeed
	.comm	_fs_numServerPaks,8,3           ## @fs_numServerPaks
	.comm	_fs_reordered,4,2               ## @fs_reordered
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FS_ConditionalRestart          ; -- Begin function FS_ConditionalRestart
	.p2align	2
_FS_ConditionalRestart:                 ; @FS_ConditionalRestart
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _fs_gamedirvar@GOTPAGE
Lloh1:
	ldr	x21, [x21, _fs_gamedirvar@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x8]
	cbz	x9, LBB0_8
; %bb.1:
	mov	x20, x1
Lloh2:
	adrp	x22, _lastValidGame@GOTPAGE
Lloh3:
	ldr	x22, [x22, _lastValidGame@GOTPAGEOFF]
	ldr	x0, [x22]
	ldr	x1, [x8, #8]
	bl	_FS_FilenameCompare
	cbz	x0, LBB0_7
; %bb.2:
	ldr	x8, [x22]
	ldr	x8, [x8]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x21]
	ldr	x0, [x8, #8]
Lloh4:
	adrp	x8, _com_basegame@GOTPAGE
Lloh5:
	ldr	x8, [x8, _com_basegame@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	x1, [x8]
	bl	_FS_FilenameCompare
	cbz	x0, LBB0_7
LBB0_4:
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_6
; %bb.5:
	ldr	x0, [x22]
Lloh7:
	adrp	x8, _com_basegame@GOTPAGE
Lloh8:
	ldr	x8, [x8, _com_basegame@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x1, [x8]
	bl	_FS_FilenameCompare
	cbz	x0, LBB0_7
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_Com_GameRestart
Lloh10:
	adrp	x8, _qtrue@GOTPAGE
Lloh11:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b	LBB0_13
LBB0_7:
Lloh12:
	adrp	x8, _qfalse@GOTPAGE
Lloh13:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x9, [x21]
	str	x8, [x9]
LBB0_8:
Lloh15:
	adrp	x8, _fs_checksumFeed@GOTPAGE
Lloh16:
	ldr	x8, [x8, _fs_checksumFeed@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_11
; %bb.9:
Lloh18:
	adrp	x8, _fs_numServerPaks@GOTPAGE
Lloh19:
	ldr	x8, [x8, _fs_numServerPaks@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _fs_reordered@GOTPAGE
Lloh22:
	ldr	x9, [x9, _fs_reordered@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, #0, #0, ne
	b.ne	LBB0_12
; %bb.10:
	bl	_FS_ReorderPurePaks
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_FS_Restart
LBB0_12:
Lloh24:
	adrp	x8, _qfalse@GOTPAGE
Lloh25:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_13:
	ldr	x0, [x8]
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_fs_gamedirvar,8,3              ; @fs_gamedirvar
	.comm	_lastValidGame,8,3              ; @lastValidGame
	.comm	_com_basegame,8,3               ; @com_basegame
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_fs_checksumFeed,4,2            ; @fs_checksumFeed
	.comm	_fs_numServerPaks,8,3           ; @fs_numServerPaks
	.comm	_fs_reordered,4,2               ; @fs_reordered
.subsections_via_symbols
