	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EDIT_MoveEnd
_EDIT_MoveEnd:                          ## @EDIT_MoveEnd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	testq	%rdx, %rdx
	je	LBB0_1
LBB0_3:
	movq	%rbx, %rdi
	callq	_get_text_length
	jmp	LBB0_4
LBB0_1:
	movq	_ES_MULTILINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.2:
	movl	12(%rbx), %esi
	movq	_EF_AFTER_WRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	4(%rbx), %edx
	movq	%rbx, %rdi
	callq	_EDIT_EM_PosFromChar
	movl	%eax, %edi
	callq	_HIWORD
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1073741823, %esi               ## imm = 0x3FFFFFFF
	movl	%eax, %edx
	callq	_EDIT_CharFromPos
LBB0_4:
	movl	%eax, %esi
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movl	8(%rbx), %esi
LBB0_6:
	movq	-24(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_EDIT_EM_SetSel
	movq	%rbx, %rdi
	callq	_EDIT_EM_ScrollCaret
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_ES_MULTILINE,4,2               ## @ES_MULTILINE
	.comm	_EF_AFTER_WRAP,4,2              ## @EF_AFTER_WRAP
	.no_dead_strip	_EDIT_MoveEnd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EDIT_MoveEnd
_EDIT_MoveEnd:                          ; @EDIT_MoveEnd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	cbz	x2, LBB0_2
LBB0_1:
	mov	x0, x19
	bl	_get_text_length
	b	LBB0_4
LBB0_2:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _ES_MULTILINE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ES_MULTILINE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.3:
	ldr	w1, [x19, #12]
	ldr	w8, [x19, #4]
Lloh6:
	adrp	x9, _EF_AFTER_WRAP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EF_AFTER_WRAP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w2, w9, w8
	mov	x0, x19
	bl	_EDIT_EM_PosFromChar
	bl	_HIWORD
	mov	x2, x0
	add	x3, sp, #8
	mov	x0, x19
	mov	w1, #1073741823
	bl	_EDIT_CharFromPos
LBB0_4:
	mov	x2, x0
	mov	x1, x0
	cbz	x20, LBB0_6
; %bb.5:
	ldr	w1, [x19, #8]
LBB0_6:
	ldr	x3, [sp, #8]
	mov	x0, x19
	bl	_EDIT_EM_SetSel
	mov	x0, x19
	bl	_EDIT_EM_ScrollCaret
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_ES_MULTILINE,4,2               ; @ES_MULTILINE
	.comm	_EF_AFTER_WRAP,4,2              ; @EF_AFTER_WRAP
	.no_dead_strip	_EDIT_MoveEnd
.subsections_via_symbols
