	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EDIT_EM_SetHandle
_EDIT_EM_SetHandle:                     ## @EDIT_EM_SetHandle
	.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
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	_ES_MULTILINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rdi), %eax
	je	LBB0_2
## %bb.3:
	movq	%rsi, %r14
	movq	_TRUE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_EDIT_UnlockBuffer
	movq	%r14, 56(%rbx)
	movq	%r14, %rdi
	callq	_LocalSize
	sarl	$2, %eax
	decl	%eax
	movl	%eax, 4(%rbx)
	movq	$0, 48(%rbx)
	movq	%rbx, %rdi
	callq	_EDIT_LockBuffer
	movq	%rbx, %rdi
	callq	_text_buffer_changed
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movups	%xmm0, 32(%rbx)
	movq	%rbx, %rdi
	callq	_EDIT_EM_EmptyUndoBuffer
	movq	_EF_MODIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_EF_UPDATE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_get_text_length
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_EDIT_BuildLineDefs_ML
	movl	(%r15), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_EDIT_UpdateText
	movq	%rbx, %rdi
	callq	_EDIT_EM_ScrollCaret
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_EDIT_UpdateScrollInfo          ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ES_MULTILINE,4,2               ## @ES_MULTILINE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_EF_MODIFIED,4,2                ## @EF_MODIFIED
	.comm	_EF_UPDATE,4,2                  ## @EF_UPDATE
	.no_dead_strip	_EDIT_EM_SetHandle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EDIT_EM_SetHandle
_EDIT_EM_SetHandle:                     ; @EDIT_EM_SetHandle
	.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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _ES_MULTILINE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ES_MULTILINE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
	cbz	w8, LBB0_3
; %bb.2:
	mov	x20, x1
Lloh3:
	adrp	x21, _TRUE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _TRUE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_EDIT_UnlockBuffer
	str	x20, [x19, #56]
	mov	x0, x20
	bl	_LocalSize
	asr	w8, w0, #2
	sub	w8, w8, #1
	str	w8, [x19, #4]
	str	xzr, [x19, #48]
	mov	x0, x19
	bl	_EDIT_LockBuffer
	mov	x0, x19
	bl	_text_buffer_changed
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #16]
	mov	x0, x19
	bl	_EDIT_EM_EmptyUndoBuffer
Lloh5:
	adrp	x8, _EF_MODIFIED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EF_MODIFIED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
Lloh8:
	adrp	x10, _EF_UPDATE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _EF_UPDATE@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w8, w8, w10
	bic	w8, w9, w8
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_get_text_length
	mov	x2, x0
	mov	x0, x19
	mov	w1, #0
	mov	w3, #0
	mov	x4, #0
	bl	_EDIT_BuildLineDefs_ML
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, #0
	bl	_EDIT_UpdateText
	mov	x0, x19
	bl	_EDIT_EM_ScrollCaret
	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_UpdateScrollInfo
LBB0_3:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ES_MULTILINE,4,2               ; @ES_MULTILINE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_EF_MODIFIED,4,2                ; @EF_MODIFIED
	.comm	_EF_UPDATE,4,2                  ; @EF_UPDATE
	.no_dead_strip	_EDIT_EM_SetHandle
.subsections_via_symbols
