	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EDIT_MoveHome
_EDIT_MoveHome:                         ## @EDIT_MoveHome
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	xorl	%r15d, %r15d
	jmp	LBB0_4
LBB0_2:
	movq	_ES_MULTILINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r15d, %r15d
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.3:
	subl	20(%rbx), %r15d
	movl	16(%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
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_EDIT_CharFromPos
	movq	%rax, %r15
LBB0_4:
	movq	%r15, %rsi
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movq	8(%rbx), %rsi
LBB0_6:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_EDIT_EM_SetSel
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_EDIT_EM_ScrollCaret            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ES_MULTILINE,4,2               ## @ES_MULTILINE
	.comm	_EF_AFTER_WRAP,4,2              ## @EF_AFTER_WRAP
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_EDIT_MoveHome
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EDIT_MoveHome
_EDIT_MoveHome:                         ; @EDIT_MoveHome
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	cbz	x2, LBB0_4
LBB0_1:
	mov	x2, #0
	mov	x1, x2
	cbz	x20, LBB0_3
LBB0_2:
	ldr	x1, [x19, #8]
LBB0_3:
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_EDIT_EM_SetSel
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_EDIT_EM_ScrollCaret
LBB0_4:
	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.5:
	ldp	w1, w8, [x19, #16]
	neg	w21, w8
	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
	mov	x0, x19
	mov	x1, x21
	mov	x3, #0
	bl	_EDIT_CharFromPos
	mov	x2, x0
	mov	x1, x2
	cbnz	x20, LBB0_2
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ES_MULTILINE,4,2               ; @ES_MULTILINE
	.comm	_EF_AFTER_WRAP,4,2              ; @EF_AFTER_WRAP
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_EDIT_MoveHome
.subsections_via_symbols
