	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_KeyUpEvent                  ## -- Begin function CL_KeyUpEvent
	.p2align	4, 0x90
_CL_KeyUpEvent:                         ## @CL_KeyUpEvent
	.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
	movl	%esi, %r8d
	movl	%edi, %ebx
	movq	_keys@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movq	%rcx, %rsi
	shlq	$4, %rsi
	movq	$0, 8(%rax,%rsi)
	movq	_qfalse@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	%edi, (%rax,%rsi)
	movq	_anykeydown@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rdi
	cmpq	$2, %rdi
	movl	$1, %edx
	cmovgeq	%rdi, %rdx
	decq	%rdx
	movq	%rdx, (%rsi)
	movq	_K_CONSOLE@GOTPCREL(%rip), %rdx
	cmpl	%ecx, (%rdx)
	je	LBB0_10
## %bb.1:
	movq	_K_ESCAPE@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_3
## %bb.2:
	movq	_K_SHIFT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rcx
	cmpl	$0, (%rax,%rcx)
	jne	LBB0_10
LBB0_3:
	movl	(%r14), %esi
	movl	%ebx, %edi
	movl	%r8d, %edx
	callq	_CL_ParseBinding
	xorl	%eax, %eax
	callq	_Key_GetCatcher
	movq	_KEYCATCH_UI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.4:
	movq	_uivm@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	movq	_UI_KEY_EVENT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	xorl	%eax, %eax
	callq	_Key_GetCatcher
	movq	_KEYCATCH_CGAME@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.7:
	movq	_cgvm@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.8:
	movq	_CG_KEY_EVENT@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %esi
	movl	(%r14), %ecx
	movl	%ebx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_VM_Call                        ## TAILCALL
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_keys,8,3                       ## @keys
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_anykeydown,8,3                 ## @anykeydown
	.comm	_K_CONSOLE,4,2                  ## @K_CONSOLE
	.comm	_K_ESCAPE,4,2                   ## @K_ESCAPE
	.comm	_K_SHIFT,8,3                    ## @K_SHIFT
	.comm	_KEYCATCH_UI,4,2                ## @KEYCATCH_UI
	.comm	_uivm,8,3                       ## @uivm
	.comm	_UI_KEY_EVENT,4,2               ## @UI_KEY_EVENT
	.comm	_KEYCATCH_CGAME,4,2             ## @KEYCATCH_CGAME
	.comm	_cgvm,8,3                       ## @cgvm
	.comm	_CG_KEY_EVENT,4,2               ## @CG_KEY_EVENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_KeyUpEvent                  ; -- Begin function CL_KeyUpEvent
	.p2align	2
_CL_KeyUpEvent:                         ; @CL_KeyUpEvent
	.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
Lloh0:
	adrp	x8, _keys@GOTPAGE
Lloh1:
	ldr	x8, [x8, _keys@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x9, x8, w0, sxtw #4
	str	xzr, [x9, #8]
Lloh3:
	adrp	x20, _qfalse@GOTPAGE
Lloh4:
	ldr	x20, [x20, _qfalse@GOTPAGEOFF]
	ldr	w10, [x20]
	str	w10, [x9]
Lloh5:
	adrp	x9, _anykeydown@GOTPAGE
Lloh6:
	ldr	x9, [x9, _anykeydown@GOTPAGEOFF]
	ldr	x10, [x9]
	cmp	x10, #1
	csinc	x10, x10, xzr, gt
	sub	x10, x10, #1
	str	x10, [x9]
Lloh7:
	adrp	x9, _K_CONSOLE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _K_CONSOLE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w9, w0
	b.eq	LBB0_7
; %bb.1:
	mov	x2, x1
	mov	x19, x0
Lloh10:
	adrp	x9, _K_ESCAPE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _K_ESCAPE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w9, w0
	b.ne	LBB0_3
; %bb.2:
Lloh13:
	adrp	x9, _K_SHIFT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _K_SHIFT@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	lsl	x9, x9, #4
	ldr	w8, [x8, x9]
	cbnz	w8, LBB0_7
LBB0_3:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_CL_ParseBinding
	bl	_Key_GetCatcher
Lloh16:
	adrp	x8, _KEYCATCH_UI@GOTPAGE
Lloh17:
	ldr	x8, [x8, _KEYCATCH_UI@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh19:
	adrp	x9, _uivm@GOTPAGE
Lloh20:
	ldr	x9, [x9, _uivm@GOTPAGEOFF]
Lloh21:
	ldr	x0, [x9]
	cmp	w8, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_8
; %bb.4:
	bl	_Key_GetCatcher
Lloh22:
	adrp	x8, _KEYCATCH_CGAME@GOTPAGE
Lloh23:
	ldr	x8, [x8, _KEYCATCH_CGAME@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.5:
Lloh25:
	adrp	x8, _cgvm@GOTPAGE
Lloh26:
	ldr	x8, [x8, _cgvm@GOTPAGEOFF]
Lloh27:
	ldr	x0, [x8]
	cbz	x0, LBB0_7
; %bb.6:
Lloh28:
	adrp	x8, _CG_KEY_EVENT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CG_KEY_EVENT@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh30:
	adrp	x8, _UI_KEY_EVENT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _UI_KEY_EVENT@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x8]
	ldr	w3, [x20]
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_VM_Call
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_keys,8,3                       ; @keys
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_anykeydown,8,3                 ; @anykeydown
	.comm	_K_CONSOLE,4,2                  ; @K_CONSOLE
	.comm	_K_ESCAPE,4,2                   ; @K_ESCAPE
	.comm	_K_SHIFT,8,3                    ; @K_SHIFT
	.comm	_KEYCATCH_UI,4,2                ; @KEYCATCH_UI
	.comm	_uivm,8,3                       ; @uivm
	.comm	_UI_KEY_EVENT,4,2               ; @UI_KEY_EVENT
	.comm	_KEYCATCH_CGAME,4,2             ; @KEYCATCH_CGAME
	.comm	_cgvm,8,3                       ; @cgvm
	.comm	_CG_KEY_EVENT,4,2               ; @CG_KEY_EVENT
.subsections_via_symbols
