	.file	"extr_gui.c_gui_mouse_correct.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	gui_mouse_correct
	.type	gui_mouse_correct, @function
gui_mouse_correct:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR FALSE[rip]
	cmp	QWORD PTR gui[rip+8], 0
	mov	DWORD PTR need_mouse_correct[rip], eax
	je	.L1
	cmp	QWORD PTR p_mousef[rip], 0
	jne	.L13
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, rsp
	lea	rsi, 4[rsp]
	call	gui_mch_getmouse@PLT
	mov	edi, DWORD PTR [rsp]
	test	edi, edi
	js	.L1
	mov	eax, DWORD PTR gui[rip]
	imul	eax, DWORD PTR Columns[rip]
	cmp	edi, eax
	jg	.L1
	mov	esi, DWORD PTR 4[rsp]
	test	esi, esi
	js	.L1
	call	xy2win@PLT
	cmp	QWORD PTR curwin[rip], rax
	je	.L1
	test	rax, rax
	je	.L1
	xor	eax, eax
	call	validate_cline_row@PLT
	mov	rdi, QWORD PTR curwin[rip]
	call	W_WINROW@PLT
	mov	edx, DWORD PTR gui[rip+4]
	mov	rdi, QWORD PTR curwin[rip]
	mov	ebp, edx
	add	eax, DWORD PTR [rdi]
	imul	eax, edx
	shr	ebp, 31
	add	ebp, edx
	sar	ebp
	add	ebp, eax
	call	W_ENDCOL@PLT
	imul	eax, DWORD PTR gui[rip]
	mov	esi, ebp
	lea	edi, -3[rax]
	call	gui_mch_setmouse@PLT
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	gui_mouse_correct, .-gui_mouse_correct
	.comm	p_mousef,8,8
	.comm	need_mouse_correct,4,4
	.comm	gui,16,16
	.comm	curwin,8,8
	.comm	FALSE,4,4
	.comm	Columns,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_gui.c_gui_mouse_correct.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	gui_mouse_correct
	.syntax unified
	.arm
	.fpu softvfp
	.type	gui_mouse_correct, %function
gui_mouse_correct:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, .L18
	ldr	r3, .L18+4
	ldr	r1, [r4, #8]
	ldr	r2, [r3]
	cmp	r1, #0
	ldr	r3, .L18+8
	ldr	r1, .L18+12
	sub	sp, sp, #16
	ldr	r1, [r1]
	str	r1, [sp, #12]
	mov	r1,#0
	str	r2, [r3]
	beq	.L1
	ldr	r3, .L18+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L16
.L1:
	ldr	r3, .L18+12
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L16:
	add	r1, sp, #8
	add	r0, sp, #4
	bl	gui_mch_getmouse
	ldr	r0, [sp, #4]
	cmp	r0, #0
	blt	.L1
	ldr	r2, .L18+20
	ldr	r3, [r4]
	ldr	r2, [r2]
	mul	r3, r2, r3
	cmp	r0, r3
	bgt	.L1
	ldr	r1, [sp, #8]
	cmp	r1, #0
	blt	.L1
	bl	xy2win
	ldr	r6, .L18+24
	ldr	r3, [r6]
	cmp	r3, r0
	cmpne	r0, #0
	beq	.L1
	bl	validate_cline_row
	ldr	r0, [r6]
	bl	W_ENDCOL
	mov	r5, r0
	ldr	r3, [r4]
	ldr	r0, [r6]
	mul	r5, r3, r5
	bl	W_WINROW
	ldr	r3, [r6]
	ldr	r1, [r4, #4]
	ldr	r2, [r3]
	add	r3, r1, r1, lsr #31
	add	r2, r0, r2
	sub	r5, r5, #3
	asr	r3, r3, #1
	mov	r0, r5
	mla	r1, r2, r1, r3
	bl	gui_mch_setmouse
	b	.L1
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	gui
	.word	FALSE
	.word	need_mouse_correct
	.word	.LC0
	.word	p_mousef
	.word	Columns
	.word	curwin
	.size	gui_mouse_correct, .-gui_mouse_correct
	.comm	p_mousef,4,4
	.comm	need_mouse_correct,4,4
	.comm	gui,12,4
	.comm	curwin,4,4
	.comm	FALSE,4,4
	.comm	Columns,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
