	.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
	movq	_cl_connectedToPureServer@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_VMI_COMPILED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	callq	_Cvar_VariableValue
	movl	%eax, %edx
LBB0_3:
	movq	_CL_CgameSystemCalls@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_VM_Create
	movq	_cgvm@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_Com_Error
	movl	(%rbx), %eax
LBB0_5:
	movq	_CA_LOADING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_cls@GOTPCREL(%rip), %rbx
	movl	%ecx, (%rbx)
	movq	_CG_INIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_clc@GOTPCREL(%rip), %rcx
	movl	8(%rcx), %edx
	movl	(%rcx), %r8d
	movl	4(%rcx), %ecx
	movl	%eax, %edi
	callq	_VM_Call
	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_7
## %bb.6:
	xorl	%eax, %eax
	callq	_Com_TouchMemory
LBB0_7:
	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"

	.comm	_cl_connectedToPureServer,8,3   ## @cl_connectedToPureServer
	.comm	_VMI_COMPILED,4,2               ## @VMI_COMPILED
L_.str.2:                               ## @.str.2
	.asciz	"vm_cgame"

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	_cls,4,2                        ## @cls
	.comm	_CG_INIT,4,2                    ## @CG_INIT
	.comm	_clc,12,2                       ## @clc
	.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	x8, _cl_connectedToPureServer@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cl_connectedToPureServer@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _VMI_COMPILED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VMI_COMPILED@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	b	LBB0_3
LBB0_2:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_Cvar_VariableValue
	mov	x2, x0
LBB0_3:
Lloh17:
	adrp	x8, _CL_CgameSystemCalls@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CL_CgameSystemCalls@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_VM_Create
Lloh22:
	adrp	x20, _cgvm@GOTPAGE
Lloh23:
	ldr	x20, [x20, _cgvm@GOTPAGEOFF]
	str	w0, [x20]
	cbnz	w0, LBB0_5
; %bb.4:
Lloh24:
	adrp	x8, _ERR_DROP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ERR_DROP@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_Com_Error
	ldr	w0, [x20]
LBB0_5:
Lloh29:
	adrp	x8, _CA_LOADING@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CA_LOADING@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x20, _cls@GOTPAGE
Lloh33:
	ldr	x20, [x20, _cls@GOTPAGEOFF]
	str	w8, [x20]
Lloh34:
	adrp	x8, _CG_INIT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _CG_INIT@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x8, _clc@GOTPAGE
Lloh38:
	ldr	x8, [x8, _clc@GOTPAGEOFF]
	ldp	w3, w2, [x8, #4]
	ldr	w4, [x8]
	bl	_VM_Call
Lloh39:
	adrp	x8, _CA_PRIMED@GOTPAGE
Lloh40:
	ldr	x8, [x8, _CA_PRIMED@GOTPAGEOFF]
Lloh41:
	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
Lloh42:
	adrp	x0, l_.str.5@PAGE
Lloh43:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_Com_Printf
Lloh44:
	adrp	x8, _re@GOTPAGE
Lloh45:
	ldr	x8, [x8, _re@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
	blr	x8
	bl	_Sys_LowPhysicalMemory
	cbnz	w0, LBB0_7
; %bb.6:
	bl	_Com_TouchMemory
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_Con_ClearNotify
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.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"

	.comm	_cl_connectedToPureServer,8,3   ; @cl_connectedToPureServer
	.comm	_VMI_COMPILED,4,2               ; @VMI_COMPILED
l_.str.2:                               ; @.str.2
	.asciz	"vm_cgame"

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	_cls,4,2                        ; @cls
	.comm	_CG_INIT,4,2                    ; @CG_INIT
	.comm	_clc,12,2                       ; @clc
	.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
