	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function CL_InitCGame
LCPI0_0:
	.quad	0x408f400000000000              ## double 1000
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CL_InitCGame
	.p2align	4, 0x90
_CL_InitCGame:                          ## @CL_InitCGame
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	callq	_Sys_Milliseconds
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_Con_Close
	movq	_cl@GOTPCREL(%rip), %rbx
	movq	16(%rbx), %rax
	movq	_CS_SERVERINFO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rax,%rcx,4), %rdi
	addq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_Info_ValueForKey
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	movq	%rax, %rcx
	callq	_Com_sprintf
	leaq	L_.str.2(%rip), %rdi
	callq	_Cvar_VariableValue
	movq	_cl_connectedToPureServer@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_VMI_COMPILED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_VMI_BYTECODE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	movq	%rcx, %rdx
	cmoveq	%rax, %rdx
	cmpq	%rcx, %rax
	cmovneq	%rdx, %rax
LBB0_2:
	movq	_CL_CgameSystemCalls@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rdx
	callq	_VM_Create
	movq	_cgvm@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_Com_Error
	movl	(%rbx), %eax
LBB0_4:
	movq	_CA_LOADING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_clc@GOTPCREL(%rip), %rbx
	movl	%ecx, (%rbx)
	movq	_CG_INIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	16(%rbx), %edx
	movl	8(%rbx), %r8d
	movl	12(%rbx), %ecx
	movl	%eax, %edi
	callq	_VM_Call
	movl	4(%rbx), %eax
	movq	_cl_connectedToCheatServer@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_Cvar_SetCheatState
LBB0_6:
	movq	_CA_PRIMED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	callq	_Sys_Milliseconds
	subl	%r14d, %eax
	cvtsi2sd	%eax, %xmm0
	divsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %esi
	leaq	L_.str.5(%rip), %rdi
	callq	_Com_Printf
	movq	_re@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	callq	*(%rcx)
	xorl	%eax, %eax
	callq	_Sys_LowPhysicalMemory
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_Com_TouchMemory
LBB0_8:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_Con_ClearNotify                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cl,24,3                        ## @cl
	.comm	_CS_SERVERINFO,8,3              ## @CS_SERVERINFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mapname"

L_.str.1:                               ## @.str.1
	.asciz	"maps/%s.bsp"

L_.str.2:                               ## @.str.2
	.asciz	"vm_cgame"

	.comm	_cl_connectedToPureServer,8,3   ## @cl_connectedToPureServer
	.comm	_VMI_COMPILED,8,3               ## @VMI_COMPILED
	.comm	_VMI_BYTECODE,8,3               ## @VMI_BYTECODE
L_.str.3:                               ## @.str.3
	.asciz	"cgame"

	.comm	_CL_CgameSystemCalls,4,2        ## @CL_CgameSystemCalls
	.comm	_cgvm,4,2                       ## @cgvm
	.comm	_ERR_DROP,4,2                   ## @ERR_DROP
L_.str.4:                               ## @.str.4
	.asciz	"VM_Create on cgame failed"

	.comm	_CA_LOADING,4,2                 ## @CA_LOADING
	.comm	_clc,20,2                       ## @clc
	.comm	_CG_INIT,4,2                    ## @CG_INIT
	.comm	_cl_connectedToCheatServer,4,2  ## @cl_connectedToCheatServer
	.comm	_CA_PRIMED,4,2                  ## @CA_PRIMED
L_.str.5:                               ## @.str.5
	.asciz	"CL_InitCGame: %5.2f seconds\n"

	.comm	_re,8,3                         ## @re
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_InitCGame                   ; -- Begin function CL_InitCGame
	.p2align	2
_CL_InitCGame:                          ; @CL_InitCGame
	.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	_Sys_Milliseconds
	mov	x19, x0
	bl	_Con_Close
Lloh0:
	adrp	x20, _cl@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cl@GOTPAGEOFF]
	ldp	x8, x9, [x20, #8]
Lloh2:
	adrp	x10, _CS_SERVERINFO@GOTPAGE
Lloh3:
	ldr	x10, [x10, _CS_SERVERINFO@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	ldrsw	x9, [x9, x10, lsl #2]
	add	x0, x8, x9
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Info_ValueForKey
	mov	x3, x0
	ldr	w0, [x20]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	bl	_Com_sprintf
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_Cvar_VariableValue
	mov	x2, x0
Lloh11:
	adrp	x8, _cl_connectedToPureServer@GOTPAGE
Lloh12:
	ldr	x8, [x8, _cl_connectedToPureServer@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh14:
	adrp	x8, _VMI_COMPILED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VMI_COMPILED@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _VMI_BYTECODE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _VMI_BYTECODE@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x2, x9
	ccmp	x2, x8, #4, ne
	csel	x2, x2, x8, eq
LBB0_2:
Lloh20:
	adrp	x8, _CL_CgameSystemCalls@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CL_CgameSystemCalls@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_VM_Create
Lloh25:
	adrp	x20, _cgvm@GOTPAGE
Lloh26:
	ldr	x20, [x20, _cgvm@GOTPAGEOFF]
	str	w0, [x20]
	cbnz	w0, LBB0_4
; %bb.3:
Lloh27:
	adrp	x8, _ERR_DROP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ERR_DROP@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_Com_Error
	ldr	w0, [x20]
LBB0_4:
Lloh32:
	adrp	x8, _CA_LOADING@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CA_LOADING@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x20, _clc@GOTPAGE
Lloh36:
	ldr	x20, [x20, _clc@GOTPAGEOFF]
	str	w8, [x20]
Lloh37:
	adrp	x8, _CG_INIT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CG_INIT@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	ldp	w3, w2, [x20, #12]
	ldr	w4, [x20, #8]
	bl	_VM_Call
	ldr	w8, [x20, #4]
Lloh40:
	adrp	x9, _cl_connectedToCheatServer@GOTPAGE
Lloh41:
	ldr	x9, [x9, _cl_connectedToCheatServer@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w8, w8, w9
	cbnz	w8, LBB0_6
; %bb.5:
	bl	_Cvar_SetCheatState
LBB0_6:
Lloh43:
	adrp	x8, _CA_PRIMED@GOTPAGE
Lloh44:
	ldr	x8, [x8, _CA_PRIMED@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	str	w8, [x20]
	bl	_Sys_Milliseconds
	sub	w8, w0, w19
	scvtf	d0, w8
	mov	x8, #70368744177664
	movk	x8, #16527, lsl #48
	fmov	d1, x8
	fdiv	d0, d0, d1
	fcvtzs	w1, d0
Lloh46:
	adrp	x0, l_.str.5@PAGE
Lloh47:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_Com_Printf
Lloh48:
	adrp	x8, _re@GOTPAGE
Lloh49:
	ldr	x8, [x8, _re@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
	blr	x8
	bl	_Sys_LowPhysicalMemory
	cbnz	w0, LBB0_8
; %bb.7:
	bl	_Com_TouchMemory
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_Con_ClearNotify
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_cl,24,3                        ; @cl
	.comm	_CS_SERVERINFO,8,3              ; @CS_SERVERINFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mapname"

l_.str.1:                               ; @.str.1
	.asciz	"maps/%s.bsp"

l_.str.2:                               ; @.str.2
	.asciz	"vm_cgame"

	.comm	_cl_connectedToPureServer,8,3   ; @cl_connectedToPureServer
	.comm	_VMI_COMPILED,8,3               ; @VMI_COMPILED
	.comm	_VMI_BYTECODE,8,3               ; @VMI_BYTECODE
l_.str.3:                               ; @.str.3
	.asciz	"cgame"

	.comm	_CL_CgameSystemCalls,4,2        ; @CL_CgameSystemCalls
	.comm	_cgvm,4,2                       ; @cgvm
	.comm	_ERR_DROP,4,2                   ; @ERR_DROP
l_.str.4:                               ; @.str.4
	.asciz	"VM_Create on cgame failed"

	.comm	_CA_LOADING,4,2                 ; @CA_LOADING
	.comm	_clc,20,2                       ; @clc
	.comm	_CG_INIT,4,2                    ; @CG_INIT
	.comm	_cl_connectedToCheatServer,4,2  ; @cl_connectedToCheatServer
	.comm	_CA_PRIMED,4,2                  ; @CA_PRIMED
l_.str.5:                               ; @.str.5
	.asciz	"CL_InitCGame: %5.2f seconds\n"

	.comm	_re,8,3                         ; @re
.subsections_via_symbols
