	.file	"extr_ui_shared.c_Menu_HandleMouseMove.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	Menu_HandleMouseMove
	.type	Menu_HandleMouseMove, @function
Menu_HandleMouseMove:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	movss	DWORD PTR 8[rsp], xmm0
	movss	DWORD PTR 12[rsp], xmm1
	test	rdi, rdi
	je	.L1
	mov	eax, DWORD PTR WINDOW_VISIBLE[rip]
	mov	r14, rdi
	or	eax, DWORD PTR WINDOW_FORCED[rip]
	test	DWORD PTR 16[rdi], eax
	je	.L1
	mov	rax, QWORD PTR itemCapture[rip]
	or	rax, QWORD PTR g_waitingForKey[rip]
	or	rax, QWORD PTR g_editingField[rip]
	jne	.L1
	mov	r13, QWORD PTR qfalse[rip]
	xor	r12d, r12d
.L3:
	mov	eax, DWORD PTR [r14]
	xor	ebx, ebx
	test	eax, eax
	jg	.L15
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L53:
	cmp	r12d, 1
	je	.L51
.L5:
	lea	eax, 1[rbx]
	cmp	DWORD PTR [r14], eax
	jle	.L14
.L16:
	add	rbx, 1
.L15:
	mov	rax, QWORD PTR 8[r14]
	lea	rbp, 0[0+rbx*8]
	mov	rdi, QWORD PTR [rax+rbx*8]
	mov	eax, DWORD PTR WINDOW_VISIBLE[rip]
	or	eax, DWORD PTR WINDOW_FORCED[rip]
	test	DWORD PTR 16[rdi], eax
	je	.L5
	mov	esi, DWORD PTR CVAR_ENABLE[rip]
	mov	edx, DWORD PTR CVAR_DISABLE[rip]
	mov	eax, DWORD PTR [rdi]
	or	edx, esi
	test	edx, eax
	jne	.L52
.L6:
	mov	esi, DWORD PTR CVAR_SHOW[rip]
	mov	edx, DWORD PTR CVAR_HIDE[rip]
	or	edx, esi
	test	edx, eax
	je	.L8
	call	Item_EnableShowViaCvar@PLT
	test	eax, eax
	je	.L5
	mov	rax, QWORD PTR 8[r14]
	mov	rdi, QWORD PTR [rax+rbp]
.L8:
	movss	xmm1, DWORD PTR 12[rsp]
	movss	xmm0, DWORD PTR 8[rsp]
	add	rdi, 20
	call	Rect_ContainsPoint@PLT
	test	rax, rax
	jne	.L53
	mov	rax, QWORD PTR 8[r14]
	mov	rdi, QWORD PTR [rax+rbp]
	test	rdi, rdi
	je	.L5
	mov	eax, DWORD PTR 16[rdi]
	test	DWORD PTR WINDOW_MOUSEOVER[rip], eax
	je	.L5
	call	Item_MouseLeave@PLT
	mov	rax, QWORD PTR 8[r14]
	mov	rsi, QWORD PTR qfalse[rip]
	mov	rdi, QWORD PTR [rax+rbp]
	call	Item_SetMouseOver@PLT
	lea	eax, 1[rbx]
	cmp	DWORD PTR [r14], eax
	jg	.L16
	.p2align 4,,10
	.p2align 3
.L14:
	cmp	r12d, 1
	je	.L1
	mov	r12d, 1
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L51:
	mov	rax, QWORD PTR 8[r14]
	mov	rbp, QWORD PTR [rax+rbp]
	mov	rax, QWORD PTR ITEM_TYPE_TEXT[rip]
	cmp	QWORD PTR 8[rbp], rax
	jne	.L13
	cmp	QWORD PTR 24[rbp], 0
	jne	.L54
.L13:
	mov	edi, DWORD PTR 16[rbp]
	call	IsVisible@PLT
	test	rax, rax
	jne	.L55
.L12:
	lea	eax, 1[rbx]
	cmp	DWORD PTR [r14], eax
	jg	.L16
.L1:
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L52:
	.cfi_restore_state
	call	Item_EnableShowViaCvar@PLT
	test	eax, eax
	je	.L5
	mov	rax, QWORD PTR 8[r14]
	mov	rdi, QWORD PTR [rax+rbp]
	mov	eax, DWORD PTR [rdi]
	jmp	.L6
.L54:
	mov	rdi, rbp
	call	Item_CorrectedTextRect@PLT
	movss	xmm1, DWORD PTR 12[rsp]
	movss	xmm0, DWORD PTR 8[rsp]
	mov	rdi, rax
	call	Rect_ContainsPoint@PLT
	test	rax, rax
	jne	.L13
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L55:
	movss	xmm1, DWORD PTR 12[rsp]
	movss	xmm0, DWORD PTR 8[rsp]
	mov	rdi, rbp
	call	Item_MouseEnter@PLT
	test	r13, r13
	jne	.L12
	movss	xmm1, DWORD PTR 12[rsp]
	movss	xmm0, DWORD PTR 8[rsp]
	mov	rdi, rbp
	call	Item_SetFocus@PLT
	mov	r13, rax
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	Menu_HandleMouseMove, .-Menu_HandleMouseMove
	.comm	qfalse,8,8
	.comm	itemCapture,8,8
	.comm	g_waitingForKey,8,8
	.comm	g_editingField,8,8
	.comm	WINDOW_VISIBLE,4,4
	.comm	WINDOW_MOUSEOVER,4,4
	.comm	WINDOW_FORCED,4,4
	.comm	ITEM_TYPE_TEXT,8,8
	.comm	CVAR_SHOW,4,4
	.comm	CVAR_HIDE,4,4
	.comm	CVAR_ENABLE,4,4
	.comm	CVAR_DISABLE,4,4
	.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_shared.c_Menu_HandleMouseMove.c"
	.text
	.align	2
	.global	Menu_HandleMouseMove
	.syntax unified
	.arm
	.fpu softvfp
	.type	Menu_HandleMouseMove, %function
Menu_HandleMouseMove:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r5, r0, #0
	sub	sp, sp, #12
	beq	.L1
	ldr	fp, .L62
	ldr	r8, .L62+4
	mov	r7, r2
	ldr	r0, [r8]
	ldr	r2, [fp]
	mov	r10, r1
	ldr	r1, [r5, #8]
	orr	r2, r2, r0
	tst	r2, r1
	beq	.L1
	ldr	r2, .L62+8
	ldr	r0, .L62+12
	ldr	r1, .L62+16
	ldr	r2, [r2]
	ldr	r0, [r0]
	ldr	r1, [r1]
	orr	r2, r2, r0
	orrs	r3, r2, r1
	str	r3, [sp]
	bne	.L1
	ldr	r3, .L62+20
	ldr	r1, [r5]
	ldr	r3, [r3]
	ldr	r9, .L62+24
	str	r3, [sp, #4]
.L3:
	cmp	r1, #0
	movgt	r6, #1
	bgt	.L15
	b	.L14
.L58:
	ldr	r3, [sp]
	cmp	r3, #1
	beq	.L50
.L55:
	ldr	r1, [r5]
.L5:
	cmp	r1, r6
	ble	.L14
.L16:
	add	r6, r6, #1
.L15:
	ldr	r3, [r5, #4]
	lsl	r4, r6, #2
	sub	r4, r4, #4
	ldr	r0, [r3, r4]
	ldr	ip, [r8]
	ldr	r3, [fp]
	ldr	r2, [r0, #8]
	orr	r3, r3, ip
	tst	r3, r2
	beq	.L5
	ldr	r3, .L62+28
	ldr	r2, [r0]
	ldr	r1, [r3]
	ldr	r3, [r9]
	orr	r3, r1, r3
	tst	r3, r2
	bne	.L57
.L6:
	ldr	r3, .L62+32
	ldr	r1, [r3]
	ldr	r3, .L62+36
	ldr	r3, [r3]
	orr	r3, r1, r3
	tst	r3, r2
	beq	.L8
	bl	Item_EnableShowViaCvar
	cmp	r0, #0
	beq	.L55
	ldr	r3, [r5, #4]
	ldr	r0, [r3, r4]
.L8:
	mov	r2, r7
	mov	r1, r10
	add	r0, r0, #12
	bl	Rect_ContainsPoint
	cmp	r0, #0
	bne	.L58
	ldr	r3, [r5, #4]
	ldr	r0, [r3, r4]
	cmp	r0, #0
	beq	.L55
	ldr	r3, .L62+40
	ldr	r2, [r0, #8]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L55
	bl	Item_MouseLeave
	ldr	r3, [r5, #4]
	ldr	r2, .L62+20
	ldr	r0, [r3, r4]
	ldr	r1, [r2]
	bl	Item_SetMouseOver
	b	.L55
.L14:
	ldr	r3, [sp]
	cmp	r3, #1
	bne	.L59
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L57:
	bl	Item_EnableShowViaCvar
	cmp	r0, #0
	beq	.L55
	ldr	r3, [r5, #4]
	ldr	r0, [r3, r4]
	ldr	r2, [r0]
	b	.L6
.L59:
	mov	r3, #1
	str	r3, [sp]
	b	.L3
.L50:
	ldr	r2, [r5, #4]
	ldr	r3, .L62+44
	ldr	r4, [r2, r4]
	ldr	r3, [r3]
	ldr	r2, [r4, #4]
	cmp	r2, r3
	bne	.L13
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L60
.L13:
	ldr	r0, [r4, #8]
	bl	IsVisible
	cmp	r0, #0
	bne	.L61
.L12:
	ldr	r1, [r5]
	cmp	r1, r6
	bgt	.L16
	b	.L1
.L60:
	mov	r0, r4
	bl	Item_CorrectedTextRect
	mov	r2, r7
	mov	r1, r10
	bl	Rect_ContainsPoint
	cmp	r0, #0
	bne	.L13
	b	.L12
.L61:
	mov	r2, r7
	mov	r1, r10
	mov	r0, r4
	bl	Item_MouseEnter
	ldr	r3, [sp, #4]
	cmp	r3, #0
	bne	.L12
	mov	r0, r4
	mov	r2, r7
	mov	r1, r10
	bl	Item_SetFocus
	str	r0, [sp, #4]
	b	.L12
.L63:
	.align	2
.L62:
	.word	WINDOW_VISIBLE
	.word	WINDOW_FORCED
	.word	itemCapture
	.word	g_waitingForKey
	.word	g_editingField
	.word	qfalse
	.word	CVAR_DISABLE
	.word	CVAR_ENABLE
	.word	CVAR_SHOW
	.word	CVAR_HIDE
	.word	WINDOW_MOUSEOVER
	.word	ITEM_TYPE_TEXT
	.size	Menu_HandleMouseMove, .-Menu_HandleMouseMove
	.comm	qfalse,4,4
	.comm	itemCapture,4,4
	.comm	g_waitingForKey,4,4
	.comm	g_editingField,4,4
	.comm	WINDOW_VISIBLE,4,4
	.comm	WINDOW_MOUSEOVER,4,4
	.comm	WINDOW_FORCED,4,4
	.comm	ITEM_TYPE_TEXT,4,4
	.comm	CVAR_SHOW,4,4
	.comm	CVAR_HIDE,4,4
	.comm	CVAR_ENABLE,4,4
	.comm	CVAR_DISABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
