	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_MouseEvent                  ## -- Begin function CL_MouseEvent
	.p2align	4, 0x90
_CL_MouseEvent:                         ## @CL_MouseEvent
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %ecx
	movl	%edi, %edx
	movq	_cls@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_KEYCATCH_UI@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	je	LBB0_3
## %bb.1:
	movq	_uivm@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UI_MOUSE_EVENT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	_KEYCATCH_CGAME@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	je	LBB0_5
## %bb.4:
	movq	_cgvm@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CG_MOUSE_EVENT@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	popq	%rbp
	jmp	_VM_Call                        ## TAILCALL
LBB0_5:
	movq	_cl@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	8(%rax), %rdi
	addl	%edx, (%rsi,%rdi,4)
	movq	16(%rax), %rax
	addl	%ecx, (%rax,%rdi,4)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cls,4,2                        ## @cls
	.comm	_KEYCATCH_UI,4,2                ## @KEYCATCH_UI
	.comm	_uivm,4,2                       ## @uivm
	.comm	_UI_MOUSE_EVENT,4,2             ## @UI_MOUSE_EVENT
	.comm	_KEYCATCH_CGAME,4,2             ## @KEYCATCH_CGAME
	.comm	_cgvm,4,2                       ## @cgvm
	.comm	_CG_MOUSE_EVENT,4,2             ## @CG_MOUSE_EVENT
	.comm	_cl,24,3                        ## @cl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_MouseEvent                  ; -- Begin function CL_MouseEvent
	.p2align	2
_CL_MouseEvent:                         ; @CL_MouseEvent
	.cfi_startproc
; %bb.0:
	mov	x3, x1
	mov	x2, x0
Lloh0:
	adrp	x8, _cls@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cls@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _KEYCATCH_UI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _KEYCATCH_UI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _uivm@GOTPAGE
Lloh7:
	ldr	x8, [x8, _uivm@GOTPAGEOFF]
Lloh8:
	adrp	x9, _UI_MOUSE_EVENT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _UI_MOUSE_EVENT@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh10:
	adrp	x9, _KEYCATCH_CGAME@GOTPAGE
Lloh11:
	ldr	x9, [x9, _KEYCATCH_CGAME@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh13:
	adrp	x8, _cgvm@GOTPAGE
Lloh14:
	ldr	x8, [x8, _cgvm@GOTPAGEOFF]
Lloh15:
	adrp	x9, _CG_MOUSE_EVENT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CG_MOUSE_EVENT@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldr	w1, [x9]
	b	_VM_Call
LBB0_5:
Lloh17:
	adrp	x8, _cl@GOTPAGE
Lloh18:
	ldr	x8, [x8, _cl@GOTPAGEOFF]
	ldp	x9, x10, [x8]
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	add	w11, w11, w2
	str	w11, [x9, x10]
	ldr	x8, [x8, #16]
	ldr	w9, [x8, x10]
	add	w9, w9, w3
	str	w9, [x8, x10]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_cls,4,2                        ; @cls
	.comm	_KEYCATCH_UI,4,2                ; @KEYCATCH_UI
	.comm	_uivm,4,2                       ; @uivm
	.comm	_UI_MOUSE_EVENT,4,2             ; @UI_MOUSE_EVENT
	.comm	_KEYCATCH_CGAME,4,2             ; @KEYCATCH_CGAME
	.comm	_cgvm,4,2                       ; @cgvm
	.comm	_CG_MOUSE_EVENT,4,2             ; @CG_MOUSE_EVENT
	.comm	_cl,24,3                        ; @cl
.subsections_via_symbols
