	.file	"extr_caret.c_ME_LButtonDown.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ME_LButtonDown
	.type	ME_LButtonDown, @function
ME_LButtonDown:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	ebx, DWORD PTR 48[rdi]
	add	edx, DWORD PTR 40[rdi]
	mov	DWORD PTR [rdi], -1
	mov	rax, QWORD PTR 24[rdi]
	mov	r15d, edx
	add	ebx, esi
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 12[rsp], eax
	call	ME_IsSelection@PLT
	mov	edi, DWORD PTR VK_SHIFT[rip]
	mov	r14d, eax
	call	GetKeyState@PLT
	mov	rcx, QWORD PTR 24[rbp]
	lea	r8, 36[rbp]
	mov	edx, r15d
	mov	r9d, DWORD PTR FALSE[rip]
	mov	esi, ebx
	mov	rdi, rbp
	mov	r13, rax
	call	ME_FindPixelPos@PLT
	cmp	DWORD PTR 32[rbp], ebx
	jle	.L2
	test	r13, r13
	js	.L21
	cmp	r12d, 1
	jle	.L22
	and	r12d, 1
	jne	.L13
.L18:
	mov	esi, DWORD PTR stParagraph[rip]
	mov	rdi, rbp
	call	ME_SelectByType@PLT
.L8:
	mov	rdi, rbp
	call	ME_InvalidateSelection@PLT
	mov	edi, DWORD PTR 16[rbp]
	mov	esi, DWORD PTR FALSE[rip]
	call	ITextHost_TxShowCaret@PLT
	mov	rdi, rbp
	call	ME_ShowCaret@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	ME_SendSelChange@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	r12d, 1
	jle	.L5
	mov	rax, QWORD PTR 24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	DWORD PTR 4[rax], edx
	test	r13, r13
	js	.L14
	and	r12d, 1
	jne	.L18
.L19:
	mov	esi, DWORD PTR stWord[rip]
	mov	rdi, rbp
	call	ME_SelectByType@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rax, QWORD PTR stPosition[rip]
	cmp	r12d, 1
	jle	.L10
	mov	rax, QWORD PTR 24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	DWORD PTR 4[rax], edx
.L14:
	cmp	DWORD PTR 32[rbp], ebx
	jg	.L18
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR stPosition[rip]
	test	r13, r13
	js	.L10
	mov	QWORD PTR 8[rbp], rax
	mov	rax, QWORD PTR 24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	DWORD PTR 4[rax], edx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L13:
	mov	esi, DWORD PTR stDocument[rip]
	mov	rdi, rbp
	call	ME_SelectByType@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L10:
	test	r14d, r14d
	jne	.L11
	mov	QWORD PTR 8[rbp], rax
	mov	esi, DWORD PTR 12[rsp]
	mov	rax, QWORD PTR 24[rbp]
	mov	DWORD PTR 4[rax], esi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L22:
	mov	esi, DWORD PTR stLine[rip]
	mov	rdi, rbp
	call	ME_SelectByType@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L11:
	cmp	QWORD PTR 8[rbp], rax
	je	.L8
	mov	rdi, rbp
	call	ME_ExtendAnchorSelection@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	ME_LButtonDown, .-ME_LButtonDown
	.comm	stWord,4,4
	.comm	stPosition,8,8
	.comm	stParagraph,4,4
	.comm	stLine,4,4
	.comm	stDocument,4,4
	.comm	VK_SHIFT,4,4
	.comm	FALSE,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_caret.c_ME_LButtonDown.c"
	.text
	.align	2
	.global	ME_LButtonDown
	.syntax unified
	.arm
	.fpu softvfp
	.type	ME_LButtonDown, %function
ME_LButtonDown:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mvn	r6, #0
	ldr	lr, [r0, #24]
	ldr	ip, [r0, #12]
	ldr	r5, [r0, #28]
	sub	sp, sp, #12
	str	r6, [r0]
	mov	r4, r0
	add	r5, r1, r5
	add	fp, r2, lr
	ldr	r10, [ip]
	mov	r6, r3
	bl	ME_IsSelection
	ldr	r3, .L24
	mov	r8, r0
	ldr	r0, [r3]
	bl	GetKeyState
	ldr	r9, .L24+4
	add	r3, r4, #20
	ldr	ip, [r9]
	str	r3, [sp]
	ldr	r3, [r4, #12]
	mov	r7, r0
	mov	r2, fp
	mov	r1, r5
	mov	r0, r4
	str	ip, [sp, #4]
	bl	ME_FindPixelPos
	ldr	r3, [r4, #16]
	cmp	r3, r5
	ble	.L2
	cmp	r7, #0
	blt	.L21
	cmp	r6, #1
	ble	.L22
	tst	r6, #1
	bne	.L13
.L18:
	ldr	r3, .L24+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	ME_SelectByType
.L8:
	mov	r0, r4
	bl	ME_InvalidateSelection
	ldr	r1, [r9]
	ldr	r0, [r4, #8]
	bl	ITextHost_TxShowCaret
	mov	r0, r4
	bl	ME_ShowCaret
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	ME_SendSelChange
.L2:
	cmp	r6, #1
	ble	.L5
	ldr	r3, [r4, #12]
	cmp	r7, #0
	ldr	r2, [r3]
	str	r2, [r3, #4]
	blt	.L14
	tst	r6, #1
	bne	.L18
.L19:
	ldr	r3, .L24+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	ME_SelectByType
	b	.L8
.L21:
	cmp	r6, #1
	ble	.L23
	ldr	r3, [r4, #12]
	ldr	r2, [r3]
	str	r2, [r3, #4]
.L14:
	ldr	r3, [r4, #16]
	cmp	r3, r5
	bgt	.L18
	b	.L19
.L5:
	ldr	r3, .L24+16
	cmp	r7, #0
	ldr	r3, [r3]
	blt	.L10
	ldr	r2, [r4, #12]
	str	r3, [r4, #4]
	ldr	r3, [r2]
	str	r3, [r2, #4]
	b	.L8
.L13:
	ldr	r3, .L24+20
	mov	r0, r4
	ldr	r1, [r3]
	bl	ME_SelectByType
	b	.L8
.L23:
	ldr	r3, .L24+16
	ldr	r3, [r3]
.L10:
	cmp	r8, #0
	bne	.L11
	ldr	r2, [r4, #12]
	str	r3, [r4, #4]
	str	r10, [r2, #4]
	b	.L8
.L22:
	ldr	r3, .L24+24
	mov	r0, r4
	ldr	r1, [r3]
	bl	ME_SelectByType
	b	.L8
.L11:
	ldr	r2, [r4, #4]
	cmp	r2, r3
	beq	.L8
	mov	r0, r4
	bl	ME_ExtendAnchorSelection
	b	.L8
.L25:
	.align	2
.L24:
	.word	VK_SHIFT
	.word	FALSE
	.word	stParagraph
	.word	stWord
	.word	stPosition
	.word	stDocument
	.word	stLine
	.size	ME_LButtonDown, .-ME_LButtonDown
	.comm	stWord,4,4
	.comm	stPosition,4,4
	.comm	stParagraph,4,4
	.comm	stLine,4,4
	.comm	stDocument,4,4
	.comm	VK_SHIFT,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
