	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Sys_Exit
_Sys_Exit:                              ## @Sys_Exit
	.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
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_CON_Shutdown
	xorl	%eax, %eax
	callq	_SDL_Quit
	cmpl	$1, %ebx
	jg	LBB0_3
## %bb.1:
	movq	_com_fullyInitialized@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_FS_GetCurrentGameDir
	movl	%eax, %edi
	callq	_Sys_RemovePIDFile
LBB0_3:
	xorl	%eax, %eax
	callq	_NET_Shutdown
	xorl	%eax, %eax
	callq	_Sys_PlatformExit
	movl	%ebx, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_com_fullyInitialized,8,3       ## @com_fullyInitialized
	.no_dead_strip	_Sys_Exit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Sys_Exit
_Sys_Exit:                              ; @Sys_Exit
	.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
	mov	x19, x0
	bl	_CON_Shutdown
	bl	_SDL_Quit
	cmp	w19, #1
	b.gt	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _com_fullyInitialized@GOTPAGE
Lloh1:
	ldr	x8, [x8, _com_fullyInitialized@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	bl	_FS_GetCurrentGameDir
	bl	_Sys_RemovePIDFile
LBB0_3:
	bl	_NET_Shutdown
	bl	_Sys_PlatformExit
	mov	x0, x19
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_com_fullyInitialized,8,3       ; @com_fullyInitialized
	.no_dead_strip	_Sys_Exit
.subsections_via_symbols
