	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EDIT_WM_Create
_EDIT_WM_Create:                        ## @EDIT_WM_Create
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_debugstr_w
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movq	_FALSE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_EDIT_WM_SetFont
	movq	%rbx, %rdi
	callq	_EDIT_EM_EmptyUndoBuffer
	movl	(%rbx), %edi
	leaq	-36(%rbp), %r15
	movq	%r15, %rsi
	callq	_GetClientRect
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_EDIT_SetRectNP
	testq	%r14, %r14
	je	LBB0_3
## %bb.1:
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.2:
	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
	callq	_EDIT_EM_ReplaceSel
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	%rbx, %rdi
	callq	_EDIT_EM_ScrollCaret
LBB0_3:
	movq	%rbx, %rdi
	callq	_EDIT_UpdateScrollInfo
	movl	(%rbx), %edi
	movq	_WC_EDITW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_OpenThemeData
	movl	$1, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_WC_EDITW,4,2                   ## @WC_EDITW
	.no_dead_strip	_EDIT_WM_Create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EDIT_WM_Create
_EDIT_WM_Create:                        ; @EDIT_WM_Create
	.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
	mov	x0, x1
	bl	_debugstr_w
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh2:
	adrp	x22, _FALSE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #0
	bl	_EDIT_WM_SetFont
	mov	x0, x19
	bl	_EDIT_EM_EmptyUndoBuffer
	ldr	w0, [x19]
	add	x1, sp, #12
	bl	_GetClientRect
	add	x1, sp, #12
	mov	x0, x19
	bl	_EDIT_SetRectNP
	cbz	x20, LBB0_3
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.2:
	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
	bl	_EDIT_EM_ReplaceSel
	stp	xzr, xzr, [x19, #8]
	mov	x0, x19
	bl	_EDIT_EM_ScrollCaret
LBB0_3:
	mov	x0, x19
	bl	_EDIT_UpdateScrollInfo
	ldr	w0, [x19]
Lloh4:
	adrp	x8, _WC_EDITW@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WC_EDITW@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_OpenThemeData
	mov	w0, #1
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_WC_EDITW,4,2                   ; @WC_EDITW
	.no_dead_strip	_EDIT_WM_Create
.subsections_via_symbols
