	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%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_UISystemCalls@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rdx
	callq	_VM_Create
	movq	_uivm@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_Com_Error
	movq	(%r14), %rax
LBB0_4:
	movq	_UI_GETAPIVERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_VM_Call
	movl	%eax, %ebx
	movq	_UI_OLD_API_VERSION@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_7
## %bb.5:
	movq	(%r14), %rdi
	jmp	LBB0_6
LBB0_7:
	movq	_UI_API_VERSION@GOTPCREL(%rip), %r15
	movq	(%r14), %rdi
	cmpl	(%r15), %ebx
	jne	LBB0_8
LBB0_6:
	movq	_UI_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_clc@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	%r14
	popq	%r15
	popq	%rbp
	jmp	_VM_Call                        ## TAILCALL
LBB0_8:
	callq	_VM_Free
	movq	$0, (%r14)
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %ecx
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_Com_Error
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_cls@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vm_ui"

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

	.comm	_CL_UISystemCalls,4,2           ## @CL_UISystemCalls
	.comm	_uivm,8,3                       ## @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	_clc,8,3                        ## @clc
	.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
	.comm	_cls,4,2                        ## @cls
.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, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Cvar_VariableValue
	mov	x2, x0
Lloh2:
	adrp	x8, _cl_connectedToPureServer@GOTPAGE
Lloh3:
	ldr	x8, [x8, _cl_connectedToPureServer@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _VMI_COMPILED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VMI_COMPILED@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _VMI_BYTECODE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VMI_BYTECODE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x2, x9
	ccmp	x2, x8, #4, ne
	csel	x2, x2, x8, eq
LBB0_2:
Lloh11:
	adrp	x8, _CL_UISystemCalls@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CL_UISystemCalls@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_VM_Create
Lloh16:
	adrp	x20, _uivm@GOTPAGE
Lloh17:
	ldr	x20, [x20, _uivm@GOTPAGEOFF]
	str	x0, [x20]
	cbnz	x0, LBB0_4
; %bb.3:
Lloh18:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_Com_Error
	ldr	x0, [x20]
LBB0_4:
Lloh23:
	adrp	x8, _UI_GETAPIVERSION@GOTPAGE
Lloh24:
	ldr	x8, [x8, _UI_GETAPIVERSION@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_VM_Call
Lloh26:
	adrp	x8, _UI_OLD_API_VERSION@GOTPAGE
Lloh27:
	ldr	x8, [x8, _UI_OLD_API_VERSION@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.5:
	ldr	x0, [x20]
	b	LBB0_7
LBB0_6:
	mov	x19, x0
Lloh29:
	adrp	x21, _UI_API_VERSION@GOTPAGE
Lloh30:
	ldr	x21, [x21, _UI_API_VERSION@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	x0, [x20]
	cmp	w19, w8
	b.ne	LBB0_8
LBB0_7:
Lloh31:
	adrp	x8, _UI_INIT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _UI_INIT@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x8, _clc@GOTPAGE
Lloh35:
	ldr	x8, [x8, _clc@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
Lloh37:
	adrp	x9, _CA_AUTHORIZING@GOTPAGE
Lloh38:
	ldr	x9, [x9, _CA_AUTHORIZING@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh40:
	adrp	x9, _CA_ACTIVE@GOTPAGE
Lloh41:
	ldr	x9, [x9, _CA_ACTIVE@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	ccmp	x8, x9, #0, ge
	cset	w8, lt
	str	x8, [sp]
	bl	_VM_Call
	b	LBB0_9
LBB0_8:
	bl	_VM_Free
	str	xzr, [x20]
Lloh43:
	adrp	x8, _ERR_DROP@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ERR_DROP@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	ldr	w8, [x21]
	stp	x19, x8, [sp]
Lloh46:
	adrp	x1, l_.str.3@PAGE
Lloh47:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_Com_Error
Lloh48:
	adrp	x8, _qfalse@GOTPAGE
Lloh49:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
Lloh51:
	adrp	x9, _cls@GOTPAGE
Lloh52:
	ldr	x9, [x9, _cls@GOTPAGEOFF]
Lloh53:
	str	w8, [x9]
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotStr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vm_ui"

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

	.comm	_CL_UISystemCalls,4,2           ; @CL_UISystemCalls
	.comm	_uivm,8,3                       ; @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	_clc,8,3                        ; @clc
	.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
	.comm	_cls,4,2                        ; @cls
.subsections_via_symbols
