	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_editorMoveCursor               ## -- Begin function editorMoveCursor
	.p2align	4, 0x90
_editorMoveCursor:                      ## @editorMoveCursor
	.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
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edi killed $edi def $rdi
	movq	_E@GOTPCREL(%rip), %r15
	movl	(%r15), %r11d
	movl	4(%r15), %edx
	leal	(%rdx,%r11), %ebx
	movl	8(%r15), %r8d
	movl	12(%r15), %r14d
	movl	16(%r15), %r10d
	xorl	%ecx, %ecx
	cmpl	%r10d, %ebx
	movq	24(%r15), %r9
	movslq	%ebx, %rsi
	leaq	(%r9,%rsi,4), %rsi
	cmovgeq	%rcx, %rsi
	addl	$-128, %edi
	cmpl	$3, %edi
	ja	LBB0_30
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdi,4), %rdi
	addq	%rax, %rdi
	jmpq	*%rdi
LBB0_20:
	testl	%edx, %edx
	je	LBB0_21
## %bb.24:
	decl	%edx
	jmp	LBB0_29
LBB0_10:
	testq	%rsi, %rsi
	je	LBB0_30
## %bb.11:
	leal	(%r14,%r8), %eax
	cmpl	(%rsi), %eax
	jge	LBB0_15
## %bb.12:
	movl	36(%r15), %eax
	decl	%eax
	cmpl	%eax, %r14d
	jne	LBB0_14
## %bb.13:
	incl	%r8d
	movl	%r8d, 8(%r15)
	jmp	LBB0_30
LBB0_2:
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.9:
	decl	%r14d
	movl	%r14d, 12(%r15)
	jmp	LBB0_30
LBB0_25:
	cmpl	%r10d, %ebx
	jge	LBB0_30
## %bb.26:
	movl	32(%r15), %eax
	decl	%eax
	cmpl	%eax, %edx
	jne	LBB0_28
## %bb.27:
	incl	%r11d
	movl	%r11d, (%r15)
	jmp	LBB0_30
LBB0_21:
	xorl	%edx, %edx
	testl	%r11d, %r11d
	je	LBB0_22
## %bb.23:
	decl	%r11d
	movl	%r11d, (%r15)
	jmp	LBB0_30
LBB0_3:
	testl	%r8d, %r8d
	je	LBB0_5
## %bb.4:
	decl	%r8d
	movl	%r8d, 8(%r15)
	xorl	%r14d, %r14d
	jmp	LBB0_30
LBB0_15:
	jne	LBB0_30
## %bb.16:
	movq	$0, 8(%r15)
	movl	32(%r15), %eax
	decl	%eax
	cmpl	%eax, %edx
	jne	LBB0_19
## %bb.17:
	incl	%r11d
	movl	%r11d, (%r15)
	jmp	LBB0_18
LBB0_28:
	incl	%edx
LBB0_29:
	movl	%edx, 4(%r15)
LBB0_30:
	addl	%r11d, %edx
	leal	(%r14,%r8), %esi
	cmpl	%r10d, %edx
	jge	LBB0_33
## %bb.31:
	testq	%r9, %r9
	je	LBB0_33
## %bb.32:
	movslq	%edx, %rax
	movl	(%r9,%rax,4), %ecx
LBB0_33:
	subl	%esi, %ecx
	jge	LBB0_36
## %bb.34:
	addl	%r14d, %ecx
	movl	%ecx, 12(%r15)
	jns	LBB0_36
## %bb.35:
	addl	%r8d, %ecx
	movl	%ecx, 8(%r15)
	movl	$0, 12(%r15)
LBB0_36:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	incl	%r14d
	movl	%r14d, 12(%r15)
	jmp	LBB0_30
LBB0_22:
	xorl	%r11d, %r11d
	jmp	LBB0_30
LBB0_5:
	xorl	%r8d, %r8d
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.7:
	decl	%edx
	movl	%edx, 4(%r15)
	decl	%ebx
	movl	(%r9,%rbx,4), %r14d
	movl	%r14d, 12(%r15)
	movl	36(%r15), %esi
	movl	%r14d, %edi
	subl	%esi, %edi
	jl	LBB0_30
## %bb.8:
	incl	%edi
	movl	%edi, 8(%r15)
	decl	%esi
	movl	%esi, 12(%r15)
	movl	%esi, %r14d
	movl	%edi, %r8d
	jmp	LBB0_30
LBB0_19:
	incl	%edx
	movl	%edx, 4(%r15)
LBB0_18:
	xorl	%r14d, %r14d
	xorl	%r8d, %r8d
	jmp	LBB0_30
LBB0_6:
	xorl	%r14d, %r14d
	jmp	LBB0_30
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
LJTI0_0:
	.long	L0_0_set_20
	.long	L0_0_set_10
	.long	L0_0_set_2
	.long	L0_0_set_25
	.end_data_region
                                        ## -- End function
	.comm	_E,40,3                         ## @E
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_editorMoveCursor               ; -- Begin function editorMoveCursor
	.p2align	2
_editorMoveCursor:                      ; @editorMoveCursor
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _E@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E@GOTPAGEOFF]
	ldp	w10, w12, [x8]
	ldp	w13, w14, [x8, #8]
	ldr	w11, [x8, #16]
	ldr	x9, [x8, #24]
	add	w15, w12, w10
	cmp	w15, w11
	add	x16, x9, w15, sxtw #2
	csel	x16, x16, xzr, lt
	sub	w17, w0, #128
	cmp	w17, #3
	b.hi	LBB0_27
; %bb.1:
Lloh2:
	adrp	x0, lJTI0_0@PAGE
Lloh3:
	add	x0, x0, lJTI0_0@PAGEOFF
	adr	x1, LBB0_2
	ldrb	w2, [x0, x17]
	add	x1, x1, x2, lsl #2
	br	x1
LBB0_2:
	cbz	w12, LBB0_12
; %bb.3:
	sub	w12, w12, #1
	b	LBB0_26
LBB0_4:
	cbz	x16, LBB0_27
; %bb.5:
	ldr	w15, [x16]
	add	w16, w14, w13
	cmp	w16, w15
	b.ge	LBB0_16
; %bb.6:
	ldr	w15, [x8, #36]
	sub	w15, w15, #1
	cmp	w14, w15
	b.ne	LBB0_20
; %bb.7:
	add	w13, w13, #1
	str	w13, [x8, #8]
	b	LBB0_27
LBB0_8:
	cbz	w14, LBB0_14
; %bb.9:
	sub	w14, w14, #1
	str	w14, [x8, #12]
	b	LBB0_27
LBB0_10:
	cmp	w15, w11
	b.ge	LBB0_27
; %bb.11:
	ldr	w15, [x8, #32]
	sub	w15, w15, #1
	cmp	w12, w15
	b.eq	LBB0_19
	b	LBB0_25
LBB0_12:
	mov	w12, #0
	cbz	w10, LBB0_27
; %bb.13:
	sub	w10, w10, #1
	str	w10, [x8]
	b	LBB0_27
LBB0_14:
	cbz	w13, LBB0_21
; %bb.15:
	mov	w14, #0
	sub	w13, w13, #1
	str	w13, [x8, #8]
	b	LBB0_27
LBB0_16:
	b.ne	LBB0_27
; %bb.17:
	str	xzr, [x8, #8]
	ldr	w13, [x8, #32]
	sub	w13, w13, #1
	cmp	w12, w13
	b.ne	LBB0_24
; %bb.18:
	mov	w14, #0
	mov	w13, #0
LBB0_19:
	add	w10, w10, #1
	str	w10, [x8]
	b	LBB0_27
LBB0_20:
	add	w14, w14, #1
	str	w14, [x8, #12]
	b	LBB0_27
LBB0_21:
	subs	w13, w15, #1
	b.lt	LBB0_33
; %bb.22:
	sub	w12, w12, #1
	str	w12, [x8, #4]
	ldr	w14, [x9, w13, uxtw #2]
	str	w14, [x8, #12]
	ldr	w15, [x8, #36]
	subs	w13, w14, w15
	b.ge	LBB0_34
; %bb.23:
	mov	w13, #0
	b	LBB0_27
LBB0_24:
	mov	w14, #0
	mov	w13, #0
LBB0_25:
	add	w12, w12, #1
LBB0_26:
	str	w12, [x8, #4]
LBB0_27:
	add	w15, w14, w13
	add	w10, w12, w10
	cmp	w10, w11
	ccmp	x9, #0, #4, lt
	b.ne	LBB0_30
; %bb.28:
	mov	w9, #0
	subs	w9, w9, w15
	b.lt	LBB0_31
LBB0_29:
	ret
LBB0_30:
	ldr	w9, [x9, w10, sxtw #2]
	subs	w9, w9, w15
	b.ge	LBB0_29
LBB0_31:
	adds	w9, w9, w14
	str	w9, [x8, #12]
	b.pl	LBB0_29
; %bb.32:
	add	w9, w9, w13
	stp	w9, wzr, [x8, #8]
	ret
LBB0_33:
	mov	w14, #0
	mov	w13, #0
	b	LBB0_27
LBB0_34:
	add	w13, w13, #1
	sub	w14, w15, #1
	stp	w13, w14, [x8, #8]
	b	LBB0_27
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_E,40,3                         ; @E
.subsections_via_symbols
