	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EDIT_WM_SetText
_EDIT_WM_SetText:                       ## @EDIT_WM_SetText
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_EF_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_ERR
LBB0_2:
	movq	_FALSE@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$-1, %edx
	callq	_EDIT_EM_SetSel
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_debugstr_w
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movl	(%r12), %r15d
	movq	%r14, %rdi
	callq	_strlenW
	movl	(%r12), %r8d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	movl	%eax, %ecx
	movl	%r8d, %r9d
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	(%r12), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%esi, %r8d
	movl	%esi, %r9d
LBB0_5:
	callq	_EDIT_EM_ReplaceSel
	movq	$0, 16(%rbx)
	movq	_EF_MODIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_EDIT_EM_SetSel
	movq	_ES_MULTILINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	jne	LBB0_8
## %bb.6:
	cmpq	$0, 8(%rbx)
	jne	LBB0_8
## %bb.7:
	movq	_EN_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_EDIT_NOTIFY_PARENT
	movq	_EN_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_EDIT_NOTIFY_PARENT
LBB0_8:
	movq	%rbx, %rdi
	callq	_EDIT_EM_ScrollCaret
	movq	%rbx, %rdi
	callq	_EDIT_UpdateScrollInfo
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_EDIT_InvalidateUniscribeData   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EF_UPDATE,4,2                  ## @EF_UPDATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SetSel may generate UPDATE message whose handler may reset selection.\n"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"%s\n"

L_.str.2:                               ## @.str.2
	.asciz	"<NULL>\n"

	.comm	_EF_MODIFIED,4,2                ## @EF_MODIFIED
	.comm	_ES_MULTILINE,4,2               ## @ES_MULTILINE
	.comm	_EN_UPDATE,4,2                  ## @EN_UPDATE
	.comm	_EN_CHANGE,4,2                  ## @EN_CHANGE
	.no_dead_strip	_EDIT_WM_SetText
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EDIT_WM_SetText
_EDIT_WM_SetText:                       ; @EDIT_WM_SetText
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _EF_UPDATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EF_UPDATE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
LBB0_2:
Lloh5:
	adrp	x22, _FALSE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #-1
	bl	_EDIT_EM_SetSel
	cbz	x20, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_debugstr_w
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	ldr	w21, [x22]
	mov	x0, x20
	bl	_strlenW
	mov	x3, x0
	ldr	w4, [x22]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x5, x4
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	mov	x4, x1
	mov	x5, x1
LBB0_5:
	bl	_EDIT_EM_ReplaceSel
Lloh11:
	adrp	x8, _EF_MODIFIED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EF_MODIFIED@GOTPAGEOFF]
	str	xzr, [x19, #16]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_EDIT_EM_SetSel
	ldr	w8, [x19, #4]
Lloh14:
	adrp	x9, _ES_MULTILINE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ES_MULTILINE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.6:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_8
; %bb.7:
Lloh17:
	adrp	x8, _EN_UPDATE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EN_UPDATE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_EDIT_NOTIFY_PARENT
Lloh20:
	adrp	x8, _EN_CHANGE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EN_CHANGE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_EDIT_NOTIFY_PARENT
LBB0_8:
	mov	x0, x19
	bl	_EDIT_EM_ScrollCaret
	mov	x0, x19
	bl	_EDIT_UpdateScrollInfo
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_EDIT_InvalidateUniscribeData
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EF_UPDATE,4,2                  ; @EF_UPDATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SetSel may generate UPDATE message whose handler may reset selection.\n"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"%s\n"

l_.str.2:                               ; @.str.2
	.asciz	"<NULL>\n"

	.comm	_EF_MODIFIED,4,2                ; @EF_MODIFIED
	.comm	_ES_MULTILINE,4,2               ; @ES_MULTILINE
	.comm	_EN_UPDATE,4,2                  ; @EN_UPDATE
	.comm	_EN_CHANGE,4,2                  ; @EN_CHANGE
	.no_dead_strip	_EDIT_WM_SetText
.subsections_via_symbols
