	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_InitUI                      ## -- Begin function CL_InitUI
	.p2align	4, 0x90
_CL_InitUI:                             ## @CL_InitUI
	.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
	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(%rip), %rdi
	callq	_Cvar_VariableValue
	movl	%eax, %edx
LBB0_3:
	movq	_CL_UISystemCalls@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_VM_Create
	movq	_uivm@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_Com_Error
	movl	(%rbx), %eax
LBB0_5:
	movq	_UI_GETAPIVERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_VM_Call
	movq	_UI_OLD_API_VERSION@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_8
## %bb.6:
	movq	_UI_API_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_7
LBB0_8:
	movl	(%rbx), %edi
	movq	_UI_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_cls@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CA_AUTHORIZING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setge	%cl
	movq	_CA_ACTIVE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setl	%al
	andb	%cl, %al
	movzbl	%al, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_VM_Call                        ## TAILCALL
LBB0_7:
	movq	_ERR_DROP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_Com_Error
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_cls@GOTPCREL(%rip), %rcx
	movl	%eax, 8(%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cl_connectedToPureServer,8,3   ## @cl_connectedToPureServer
	.comm	_VMI_COMPILED,4,2               ## @VMI_COMPILED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vm_ui"

L_.str.1:                               ## @.str.1
	.asciz	"ui"

	.comm	_CL_UISystemCalls,4,2           ## @CL_UISystemCalls
	.comm	_uivm,4,2                       ## @uivm
	.comm	_ERR_FATAL,4,2                  ## @ERR_FATAL
L_.str.2:                               ## @.str.2
	.asciz	"VM_Create on UI failed"

	.comm	_UI_GETAPIVERSION,4,2           ## @UI_GETAPIVERSION
	.comm	_UI_OLD_API_VERSION,4,2         ## @UI_OLD_API_VERSION
	.comm	_UI_INIT,4,2                    ## @UI_INIT
	.comm	_cls,16,3                       ## @cls
	.comm	_CA_AUTHORIZING,8,3             ## @CA_AUTHORIZING
	.comm	_CA_ACTIVE,8,3                  ## @CA_ACTIVE
	.comm	_UI_API_VERSION,4,2             ## @UI_API_VERSION
	.comm	_ERR_DROP,4,2                   ## @ERR_DROP
L_.str.3:                               ## @.str.3
	.asciz	"User Interface is version %d, expected %d"

	.comm	_qfalse,4,2                     ## @qfalse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_InitUI                      ; -- Begin function CL_InitUI
	.p2align	2
_CL_InitUI:                             ; @CL_InitUI
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _cl_connectedToPureServer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cl_connectedToPureServer@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _VMI_COMPILED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VMI_COMPILED@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Cvar_VariableValue
	mov	x2, x0
LBB0_3:
Lloh8:
	adrp	x8, _CL_UISystemCalls@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CL_UISystemCalls@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_VM_Create
Lloh13:
	adrp	x19, _uivm@GOTPAGE
Lloh14:
	ldr	x19, [x19, _uivm@GOTPAGEOFF]
	str	w0, [x19]
	cbnz	w0, LBB0_5
; %bb.4:
Lloh15:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_Com_Error
	ldr	w0, [x19]
LBB0_5:
Lloh20:
	adrp	x8, _UI_GETAPIVERSION@GOTPAGE
Lloh21:
	ldr	x8, [x8, _UI_GETAPIVERSION@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_VM_Call
                                        ; kill: def $w0 killed $w0 def $x0
Lloh23:
	adrp	x8, _UI_OLD_API_VERSION@GOTPAGE
Lloh24:
	ldr	x8, [x8, _UI_OLD_API_VERSION@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.6:
Lloh26:
	adrp	x8, _UI_API_VERSION@GOTPAGE
Lloh27:
	ldr	x8, [x8, _UI_API_VERSION@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x8]
	cmp	w0, w9
	b.ne	LBB0_8
LBB0_7:
	ldr	w0, [x19]
Lloh29:
	adrp	x8, _UI_INIT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _UI_INIT@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _cls@GOTPAGE
Lloh33:
	ldr	x8, [x8, _cls@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
Lloh35:
	adrp	x9, _CA_AUTHORIZING@GOTPAGE
Lloh36:
	ldr	x9, [x9, _CA_AUTHORIZING@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh38:
	adrp	x9, _CA_ACTIVE@GOTPAGE
Lloh39:
	ldr	x9, [x9, _CA_ACTIVE@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	ccmp	x8, x9, #0, ge
	cset	w8, lt
	str	x8, [sp]
	bl	_VM_Call
	b	LBB0_9
LBB0_8:
Lloh41:
	adrp	x8, _ERR_DROP@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ERR_DROP@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	stp	x0, x9, [sp]
Lloh44:
	adrp	x1, l_.str.3@PAGE
Lloh45:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x8
	bl	_Com_Error
Lloh46:
	adrp	x8, _qfalse@GOTPAGE
Lloh47:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
Lloh49:
	adrp	x9, _cls@GOTPAGE
Lloh50:
	ldr	x9, [x9, _cls@GOTPAGEOFF]
Lloh51:
	str	w8, [x9, #8]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotStr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_cl_connectedToPureServer,8,3   ; @cl_connectedToPureServer
	.comm	_VMI_COMPILED,4,2               ; @VMI_COMPILED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vm_ui"

l_.str.1:                               ; @.str.1
	.asciz	"ui"

	.comm	_CL_UISystemCalls,4,2           ; @CL_UISystemCalls
	.comm	_uivm,4,2                       ; @uivm
	.comm	_ERR_FATAL,4,2                  ; @ERR_FATAL
l_.str.2:                               ; @.str.2
	.asciz	"VM_Create on UI failed"

	.comm	_UI_GETAPIVERSION,4,2           ; @UI_GETAPIVERSION
	.comm	_UI_OLD_API_VERSION,4,2         ; @UI_OLD_API_VERSION
	.comm	_UI_INIT,4,2                    ; @UI_INIT
	.comm	_cls,16,3                       ; @cls
	.comm	_CA_AUTHORIZING,8,3             ; @CA_AUTHORIZING
	.comm	_CA_ACTIVE,8,3                  ; @CA_ACTIVE
	.comm	_UI_API_VERSION,4,2             ; @UI_API_VERSION
	.comm	_ERR_DROP,4,2                   ; @ERR_DROP
l_.str.3:                               ; @.str.3
	.asciz	"User Interface is version %d, expected %d"

	.comm	_qfalse,4,2                     ; @qfalse
.subsections_via_symbols
