	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__UI_MouseEvent                 ## -- Begin function _UI_MouseEvent
	.p2align	4, 0x90
__UI_MouseEvent:                        ## @_UI_MouseEvent
	.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
	movslq	%edi, %rcx
	movq	_uiInfo@GOTPCREL(%rip), %rbx
	addq	(%rbx), %rcx
	movq	%rcx, (%rbx)
	js	LBB0_1
## %bb.2:
	movq	_SCREEN_WIDTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jg	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	%rax, (%rbx)
LBB0_4:
	movslq	%esi, %rcx
	addq	8(%rbx), %rcx
	movq	%rcx, 8(%rbx)
	js	LBB0_5
## %bb.6:
	movq	_SCREEN_HEIGHT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jg	LBB0_7
	jmp	LBB0_8
LBB0_5:
	xorl	%eax, %eax
LBB0_7:
	movq	%rax, 8(%rbx)
LBB0_8:
	xorl	%eax, %eax
	callq	_Menu_Count
	testq	%rax, %rax
	jle	LBB0_9
## %bb.10:
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdx
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_Display_MouseMove              ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_uiInfo,16,3                    ## @uiInfo
	.comm	_SCREEN_WIDTH,8,3               ## @SCREEN_WIDTH
	.comm	_SCREEN_HEIGHT,8,3              ## @SCREEN_HEIGHT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__UI_MouseEvent                 ; -- Begin function _UI_MouseEvent
	.p2align	2
__UI_MouseEvent:                        ; @_UI_MouseEvent
	.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	x19, _uiInfo@GOTPAGE
Lloh1:
	ldr	x19, [x19, _uiInfo@GOTPAGEOFF]
	ldr	x8, [x19]
	adds	x9, x8, w0, sxtw
	str	x9, [x19]
	b.mi	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _SCREEN_WIDTH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SCREEN_WIDTH@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x9, x8
	b.gt	LBB0_3
	b	LBB0_4
LBB0_2:
	mov	x8, #0
LBB0_3:
	str	x8, [x19]
LBB0_4:
	ldr	x8, [x19, #8]
	adds	x9, x8, w1, sxtw
	str	x9, [x19, #8]
	b.mi	LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _SCREEN_HEIGHT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SCREEN_HEIGHT@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x9, x8
	b.gt	LBB0_7
	b	LBB0_8
LBB0_6:
	mov	x8, #0
LBB0_7:
	str	x8, [x19, #8]
LBB0_8:
	bl	_Menu_Count
	cmp	x0, #1
	b.lt	LBB0_10
; %bb.9:
	ldp	x1, x2, [x19]
	mov	x0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_Display_MouseMove
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_uiInfo,16,3                    ; @uiInfo
	.comm	_SCREEN_WIDTH,8,3               ; @SCREEN_WIDTH
	.comm	_SCREEN_HEIGHT,8,3              ; @SCREEN_HEIGHT
.subsections_via_symbols
