	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EDIT_WM_MouseMove
_EDIT_WM_MouseMove:                     ## @EDIT_WM_MouseMove
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)
	movq	%rdx, -40(%rbp)
	cmpl	$0, 28(%rdi)
	je	LBB0_3
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_GetCapture
	cmpq	(%rbx), %rax
	jne	LBB0_3
## %bb.2:
	leaq	-48(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_EDIT_ConfinePoint
	movq	-48(%rbp), %rsi
	xorl	%eax, %eax
	cmpq	%r15, %rsi
	setl	%al
	movl	$-1, %ecx
	cmovgl	%ecx, %eax
	movl	%eax, 8(%rbx)
	movq	-40(%rbp), %rdx
	xorl	%eax, %eax
	cmpq	%r14, %rdx
	setl	%al
	cmovgl	%ecx, %eax
	movl	%eax, 12(%rbx)
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_EDIT_CharFromPos
	movl	24(%rbx), %esi
	movl	-28(%rbp), %ecx
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_EDIT_EM_SetSel
	movl	20(%rbx), %esi
	movq	_EF_AFTER_WRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	16(%rbx), %edx
	movq	%rbx, %rdi
	callq	_EDIT_SetCaretPos
LBB0_3:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EF_AFTER_WRAP,4,2              ## @EF_AFTER_WRAP
	.no_dead_strip	_EDIT_WM_MouseMove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EDIT_WM_MouseMove
_EDIT_WM_MouseMove:                     ; @EDIT_WM_MouseMove
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	stp	x2, x1, [sp, #16]
	ldr	w8, [x0, #28]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_GetCapture
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	add	x1, sp, #24
	add	x2, sp, #16
	mov	x0, x19
	bl	_EDIT_ConfinePoint
	ldp	x2, x1, [sp, #16]
	cmp	x1, x21
	cset	w8, lt
	csinv	w8, w8, wzr, le
	cmp	x2, x20
	cset	w9, lt
	csinv	w9, w9, wzr, le
	stp	w8, w9, [x19, #8]
	add	x3, sp, #12
	mov	x0, x19
	bl	_EDIT_CharFromPos
	mov	x2, x0
	ldr	w1, [x19, #24]
	ldr	w3, [sp, #12]
	mov	x0, x19
	bl	_EDIT_EM_SetSel
	ldp	w8, w1, [x19, #16]
Lloh0:
	adrp	x9, _EF_AFTER_WRAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EF_AFTER_WRAP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w2, w9, w8
	mov	x0, x19
	bl	_EDIT_SetCaretPos
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EF_AFTER_WRAP,4,2              ; @EF_AFTER_WRAP
	.no_dead_strip	_EDIT_WM_MouseMove
.subsections_via_symbols
