	.file	"extr_edit.c_EDIT_WM_SetFont.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	EDIT_WM_SetFont, @function
EDIT_WM_SetFont:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 24[rdi], esi
	call	EDIT_InvalidateUniscribeData@PLT
	mov	edi, DWORD PTR 8[rbx]
	call	GetDC@PLT
	mov	ebp, eax
	test	r12d, r12d
	jne	.L17
	lea	rsi, 16[rsp]
	mov	edi, eax
	call	GetTextMetricsW@PLT
	mov	eax, DWORD PTR 20[rsp]
	mov	DWORD PTR 16[rbx], eax
	mov	eax, DWORD PTR 16[rsp]
	mov	DWORD PTR 20[rbx], eax
.L7:
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, ebp
	lea	rbp, 12[rsp]
	call	ReleaseDC@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	rsi, rbp
	call	GetClientRect@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	EDIT_SetRectNP@PLT
	mov	edx, DWORD PTR EC_USEFONTINFO[rip]
	mov	r8d, DWORD PTR FALSE[rip]
	mov	rdi, rbx
	mov	esi, DWORD PTR EC_LEFTMARGIN[rip]
	or	esi, DWORD PTR EC_RIGHTMARGIN[rip]
	mov	ecx, edx
	call	EDIT_EM_SetMargins@PLT
	mov	eax, DWORD PTR [rbx]
	mov	rdi, rbx
	test	DWORD PTR ES_MULTILINE[rip], eax
	je	.L3
	call	get_text_length@PLT
	xor	r8d, r8d
	xor	ecx, ecx
	xor	esi, esi
	mov	edx, eax
	mov	rdi, rbx
	call	EDIT_BuildLineDefs_ML@PLT
	test	r13, r13
	jne	.L18
.L5:
	mov	eax, DWORD PTR 4[rbx]
	test	DWORD PTR EF_FOCUSED[rip], eax
	jne	.L19
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	call	EDIT_CalcLineWidth_SL@PLT
	test	r13, r13
	je	.L5
.L18:
	mov	edx, DWORD PTR TRUE[rip]
	xor	esi, esi
	mov	rdi, rbx
	call	EDIT_UpdateText@PLT
	mov	eax, DWORD PTR 4[rbx]
	test	DWORD PTR EF_FOCUSED[rip], eax
	je	.L1
.L19:
	xor	eax, eax
	call	DestroyCaret@PLT
	mov	ecx, DWORD PTR 16[rbx]
	mov	edi, DWORD PTR 8[rbx]
	xor	esi, esi
	mov	edx, 1
	call	CreateCaret@PLT
	mov	esi, DWORD PTR 12[rbx]
	mov	edx, DWORD PTR 4[rbx]
	mov	rdi, rbx
	and	edx, DWORD PTR EF_AFTER_WRAP[rip]
	call	EDIT_SetCaretPos@PLT
	mov	edi, DWORD PTR 8[rbx]
	call	ShowCaret@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	esi, r12d
	mov	edi, eax
	call	SelectObject@PLT
	lea	rsi, 16[rsp]
	mov	edi, ebp
	mov	r12d, eax
	call	GetTextMetricsW@PLT
	mov	eax, DWORD PTR 20[rsp]
	mov	esi, r12d
	mov	edi, ebp
	mov	DWORD PTR 16[rbx], eax
	mov	eax, DWORD PTR 16[rsp]
	mov	DWORD PTR 20[rbx], eax
	call	SelectObject@PLT
	jmp	.L7
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	EDIT_WM_SetFont, .-EDIT_WM_SetFont
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.comm	ES_MULTILINE,4,4
	.comm	EF_FOCUSED,4,4
	.comm	EF_AFTER_WRAP,4,4
	.comm	EC_USEFONTINFO,4,4
	.comm	EC_RIGHTMARGIN,4,4
	.comm	EC_LEFTMARGIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_edit.c_EDIT_WM_SetFont.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	EDIT_WM_SetFont, %function
EDIT_WM_SetFont:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	ldr	r3, .L21
	sub	sp, sp, #28
	str	r1, [r0, #24]
	mov	r5, r1
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	EDIT_InvalidateUniscribeData
	ldr	r0, [r4, #8]
	bl	GetDC
	cmp	r5, #0
	mov	r6, r0
	bne	.L17
	add	r1, sp, #12
	bl	GetTextMetricsW
	ldr	r2, [sp, #16]
	ldr	r3, [sp, #12]
	str	r2, [r4, #16]
	str	r3, [r4, #20]
.L7:
	mov	r1, r6
	ldr	r0, [r4, #8]
	bl	ReleaseDC
	add	r1, sp, #8
	ldr	r0, [r4, #8]
	bl	GetClientRect
	add	r1, sp, #8
	mov	r0, r4
	bl	EDIT_SetRectNP
	ldr	r0, .L21+4
	ldr	r2, .L21+8
	ldr	r3, .L21+12
	ldr	r1, .L21+16
	ldr	r3, [r3]
	ldr	ip, [r0]
	ldr	r1, [r1]
	ldr	r0, [r2]
	orr	r1, ip, r1
	mov	r2, r3
	str	r0, [sp]
	mov	r0, r4
	bl	EDIT_EM_SetMargins
	ldr	r3, .L21+20
	ldr	r2, [r4]
	ldr	r3, [r3]
	mov	r0, r4
	tst	r2, r3
	beq	.L3
	bl	get_text_length
	mov	r3, #0
	mov	r2, r0
	mov	r1, r3
	mov	r0, r4
	str	r3, [sp]
	bl	EDIT_BuildLineDefs_ML
	cmp	r7, #0
	bne	.L18
.L5:
	ldr	r3, .L21+24
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L19
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L3:
	bl	EDIT_CalcLineWidth_SL
	cmp	r7, #0
	beq	.L5
.L18:
	ldr	r3, .L21+28
	mov	r1, #0
	mov	r0, r4
	ldr	r2, [r3]
	bl	EDIT_UpdateText
	b	.L5
.L17:
	mov	r1, r5
	bl	SelectObject
	mov	r5, r0
	add	r1, sp, #12
	mov	r0, r6
	bl	GetTextMetricsW
	ldr	r2, [sp, #16]
	ldr	r3, [sp, #12]
	mov	r1, r5
	mov	r0, r6
	str	r2, [r4, #16]
	str	r3, [r4, #20]
	bl	SelectObject
	b	.L7
.L19:
	bl	DestroyCaret
	ldr	r3, [r4, #16]
	mov	r2, #1
	mov	r1, #0
	ldr	r0, [r4, #8]
	bl	CreateCaret
	ldr	r3, .L21+32
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	mov	r0, r4
	ldr	r1, [r4, #12]
	and	r2, r2, r3
	bl	EDIT_SetCaretPos
	ldr	r0, [r4, #8]
	bl	ShowCaret
	b	.L1
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	EC_LEFTMARGIN
	.word	FALSE
	.word	EC_USEFONTINFO
	.word	EC_RIGHTMARGIN
	.word	ES_MULTILINE
	.word	EF_FOCUSED
	.word	TRUE
	.word	EF_AFTER_WRAP
	.size	EDIT_WM_SetFont, .-EDIT_WM_SetFont
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.comm	ES_MULTILINE,4,4
	.comm	EF_FOCUSED,4,4
	.comm	EF_AFTER_WRAP,4,4
	.comm	EC_USEFONTINFO,4,4
	.comm	EC_RIGHTMARGIN,4,4
	.comm	EC_LEFTMARGIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
