	.file	"extr_ui_main.c__UI_MouseEvent.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	_UI_MouseEvent
	.type	_UI_MouseEvent, @function
_UI_MouseEvent:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	movsx	rdi, edi
	add	rdi, QWORD PTR uiInfo[rip]
	mov	QWORD PTR uiInfo[rip], rdi
	js	.L9
	mov	rax, QWORD PTR SCREEN_WIDTH[rip]
	cmp	rdi, rax
	jg	.L10
.L3:
	movsx	rsi, esi
	add	rsi, QWORD PTR uiInfo[rip+8]
	mov	QWORD PTR uiInfo[rip+8], rsi
	js	.L11
	mov	rax, QWORD PTR SCREEN_HEIGHT[rip]
	cmp	rsi, rax
	jg	.L12
.L5:
	xor	eax, eax
	call	Menu_Count@PLT
	test	rax, rax
	jg	.L13
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	QWORD PTR uiInfo[rip+8], rax
	xor	eax, eax
	call	Menu_Count@PLT
	test	rax, rax
	jle	.L1
.L13:
	mov	rdx, QWORD PTR uiInfo[rip+8]
	mov	rsi, QWORD PTR uiInfo[rip]
	xor	edi, edi
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	Display_MouseMove@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	QWORD PTR uiInfo[rip], rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	mov	QWORD PTR uiInfo[rip+8], 0
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	QWORD PTR uiInfo[rip], 0
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	_UI_MouseEvent, .-_UI_MouseEvent
	.comm	uiInfo,16,16
	.comm	SCREEN_WIDTH,8,8
	.comm	SCREEN_HEIGHT,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ui_main.c__UI_MouseEvent.c"
	.text
	.align	2
	.global	_UI_MouseEvent
	.syntax unified
	.arm
	.fpu softvfp
	.type	_UI_MouseEvent, %function
_UI_MouseEvent:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r4, .L9
	ldr	r3, [r4]
	add	r0, r0, r3
	cmp	r0, #0
	movlt	r3, #0
	str	r0, [r4]
	strlt	r3, [r4]
	blt	.L3
	ldr	r3, .L9+4
	ldr	r3, [r3]
	cmp	r0, r3
	strgt	r3, [r4]
.L3:
	ldr	r3, [r4, #4]
	add	r1, r1, r3
	cmp	r1, #0
	movlt	r3, #0
	str	r1, [r4, #4]
	strlt	r3, [r4, #4]
	blt	.L5
	ldr	r3, .L9+8
	ldr	r3, [r3]
	cmp	r1, r3
	strgt	r3, [r4, #4]
.L5:
	bl	Menu_Count
	cmp	r0, #0
	pople	{r4, pc}
	ldm	r4, {r1, r2}
	mov	r0, #0
	pop	{r4, lr}
	b	Display_MouseMove
.L10:
	.align	2
.L9:
	.word	uiInfo
	.word	SCREEN_WIDTH
	.word	SCREEN_HEIGHT
	.size	_UI_MouseEvent, .-_UI_MouseEvent
	.comm	uiInfo,8,4
	.comm	SCREEN_WIDTH,4,4
	.comm	SCREEN_HEIGHT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
