	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EDIT_WM_SetFont
_EDIT_WM_SetFont:                       ## @EDIT_WM_SetFont
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	%esi, 24(%rdi)
	callq	_EDIT_InvalidateUniscribeData
	movl	8(%rbx), %edi
	callq	_GetDC
	movl	%eax, %r15d
	testl	%r12d, %r12d
	je	LBB0_1
## %bb.2:
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_SelectObject
	movl	%eax, %r13d
	jmp	LBB0_3
LBB0_1:
	xorl	%r13d, %r13d
LBB0_3:
	leaq	-48(%rbp), %rsi
	movl	%r15d, %edi
	callq	_GetTextMetricsW
	movl	-44(%rbp), %eax
	movl	%eax, 16(%rbx)
	movl	-48(%rbp), %eax
	movl	%eax, 20(%rbx)
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.4:
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_SelectObject
LBB0_5:
	movl	8(%rbx), %edi
	movl	%r15d, %esi
	callq	_ReleaseDC
	movl	8(%rbx), %edi
	leaq	-52(%rbp), %r15
	movq	%r15, %rsi
	callq	_GetClientRect
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_EDIT_SetRectNP
	movq	_EC_LEFTMARGIN@GOTPCREL(%rip), %rax
	movq	_EC_RIGHTMARGIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_EC_USEFONTINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_EDIT_EM_SetMargins
	movq	_ES_MULTILINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_7
## %bb.6:
	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
	testq	%r14, %r14
	je	LBB0_10
LBB0_9:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_EDIT_UpdateText
LBB0_10:
	movq	_EF_FOCUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	callq	_DestroyCaret
	movl	8(%rbx), %edi
	movl	16(%rbx), %ecx
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_CreateCaret
	movl	12(%rbx), %esi
	movq	_EF_AFTER_WRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	4(%rbx), %edx
	movq	%rbx, %rdi
	callq	_EDIT_SetCaretPos
	movl	8(%rbx), %edi
	callq	_ShowCaret
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	callq	_EDIT_CalcLineWidth_SL
	testq	%r14, %r14
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_LEFTMARGIN,4,2              ## @EC_LEFTMARGIN
	.comm	_EC_RIGHTMARGIN,4,2             ## @EC_RIGHTMARGIN
	.comm	_EC_USEFONTINFO,4,2             ## @EC_USEFONTINFO
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_ES_MULTILINE,4,2               ## @ES_MULTILINE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_EF_FOCUSED,4,2                 ## @EF_FOCUSED
	.comm	_EF_AFTER_WRAP,4,2              ## @EF_AFTER_WRAP
	.no_dead_strip	_EDIT_WM_SetFont
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EDIT_WM_SetFont
_EDIT_WM_SetFont:                       ; @EDIT_WM_SetFont
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	str	w1, [x0, #24]
	bl	_EDIT_InvalidateUniscribeData
	ldr	w0, [x19, #8]
	bl	_GetDC
	mov	x21, x0
	cbz	w22, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x22
	bl	_SelectObject
	mov	x23, x0
	b	LBB0_3
LBB0_2:
	mov	w23, #0
LBB0_3:
	add	x1, sp, #8
	mov	x0, x21
	bl	_GetTextMetricsW
	ldr	d0, [sp, #8]
	rev64.2s	v0, v0
	str	d0, [x19, #16]
	cbz	w22, LBB0_5
; %bb.4:
	mov	x0, x21
	mov	x1, x23
	bl	_SelectObject
LBB0_5:
	ldr	w0, [x19, #8]
	mov	x1, x21
	bl	_ReleaseDC
	ldr	w0, [x19, #8]
	add	x1, sp, #4
	bl	_GetClientRect
	add	x1, sp, #4
	mov	x0, x19
	bl	_EDIT_SetRectNP
Lloh0:
	adrp	x8, _EC_LEFTMARGIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EC_LEFTMARGIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _EC_RIGHTMARGIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EC_RIGHTMARGIN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh6:
	adrp	x8, _EC_USEFONTINFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EC_USEFONTINFO@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _FALSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x3, x2
	bl	_EDIT_EM_SetMargins
	ldr	w8, [x19]
Lloh12:
	adrp	x9, _ES_MULTILINE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ES_MULTILINE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	mov	x0, x19
	tst	w9, w8
	b.eq	LBB0_11
; %bb.6:
	bl	_get_text_length
	mov	x2, x0
	mov	x0, x19
	mov	w1, #0
	mov	w3, #0
	mov	x4, #0
	bl	_EDIT_BuildLineDefs_ML
	cbz	x20, LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, _TRUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	bl	_EDIT_UpdateText
LBB0_8:
	ldr	w8, [x19, #4]
Lloh18:
	adrp	x9, _EF_FOCUSED@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EF_FOCUSED@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	bl	_DestroyCaret
	ldr	w0, [x19, #8]
	ldr	w3, [x19, #16]
	mov	w1, #0
	mov	w2, #1
	bl	_CreateCaret
	ldr	w1, [x19, #12]
	ldr	w8, [x19, #4]
Lloh21:
	adrp	x9, _EF_AFTER_WRAP@GOTPAGE
Lloh22:
	ldr	x9, [x9, _EF_AFTER_WRAP@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	and	w2, w9, w8
	mov	x0, x19
	bl	_EDIT_SetCaretPos
	ldr	w0, [x19, #8]
	bl	_ShowCaret
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
	bl	_EDIT_CalcLineWidth_SL
	cbnz	x20, LBB0_7
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_LEFTMARGIN,4,2              ; @EC_LEFTMARGIN
	.comm	_EC_RIGHTMARGIN,4,2             ; @EC_RIGHTMARGIN
	.comm	_EC_USEFONTINFO,4,2             ; @EC_USEFONTINFO
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_ES_MULTILINE,4,2               ; @ES_MULTILINE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_EF_FOCUSED,4,2                 ; @EF_FOCUSED
	.comm	_EF_AFTER_WRAP,4,2              ; @EF_AFTER_WRAP
	.no_dead_strip	_EDIT_WM_SetFont
.subsections_via_symbols
