	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EDIT_PaintText
_EDIT_PaintText:                        ## @EDIT_PaintText
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 16(%rbp)
	je	LBB0_1
## %bb.2:
	movq	%r9, %r14
	movq	%r8, %r12
	movq	%rcx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, %edi
	callq	_GetBkMode
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edi
	callq	_GetBkColor
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_GetTextColor
	cmpq	$0, 24(%rbp)
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:
	cmpq	$0, (%r13)
	je	LBB0_5
## %bb.6:
	movq	_OBJ_FONT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_GetCurrentObject
	leaq	-64(%rbp), %rbx
	movq	%rax, %rdi
	movl	$4, %esi
	movq	%rbx, %rdx
	callq	_GetObjectW
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	%rbx, %rdi
	callq	_CreateFontIndirectW
	movl	%r15d, %edi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	callq	_SelectObject
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_5:
	movq	_COLOR_HIGHLIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetSysColor
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_SetBkColor
	movq	_COLOR_HIGHLIGHTTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetSysColor
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_SetTextColor
	movq	_OPAQUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r15d, %edi
	callq	_SetBkMode
LBB0_3:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_7:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_EDIT_EM_LineIndex
	movq	%rax, %rbx
	movq	_ES_MULTILINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	%r14, %rbx
	movq	16(%r13), %rcx
	addq	%rbx, %rcx
	testl	%eax, 8(%r13)
	je	LBB0_9
## %bb.8:
	movl	44(%r13), %r9d
	movl	40(%r13), %eax
	movq	32(%r13), %rbx
	subq	24(%r13), %rbx
	movl	%r15d, %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rbp), %r8
	pushq	%rbx
	pushq	%rax
	callq	_TabbedTextOutW
	addq	$16, %rsp
	movl	%eax, %edi
	callq	_LOWORD
	movq	%rax, %r14
	cmpq	$0, 24(%rbp)
	jne	LBB0_11
	jmp	LBB0_17
LBB0_9:
	movl	%r15d, %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rbp), %r14
	movq	%r14, %r8
	callq	_TextOutW
	addq	16(%r13), %rbx
	leaq	-104(%rbp), %rcx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_GetTextExtentPoint32W
	movq	-104(%rbp), %r14
	cmpq	$0, 24(%rbp)
	je	LBB0_17
LBB0_11:
	cmpq	$0, (%r13)
	je	LBB0_12
## %bb.13:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.14:
	movl	%r15d, %edi
	callq	_SelectObject
LBB0_15:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:
	callq	_DeleteObject
	jmp	LBB0_17
LBB0_12:
	movl	%r15d, %edi
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	callq	_SetBkColor
	movl	%r15d, %edi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_SetTextColor
	movl	%r15d, %edi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_SetBkMode
LBB0_17:
	movq	%r14, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COLOR_HIGHLIGHT,4,2            ## @COLOR_HIGHLIGHT
	.comm	_COLOR_HIGHLIGHTTEXT,4,2        ## @COLOR_HIGHLIGHTTEXT
	.comm	_OPAQUE,8,3                     ## @OPAQUE
	.comm	_OBJ_FONT,4,2                   ## @OBJ_FONT
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_ES_MULTILINE,4,2               ## @ES_MULTILINE
	.no_dead_strip	_EDIT_PaintText
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EDIT_PaintText
_EDIT_PaintText:                        ; @EDIT_PaintText
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x6, LBB0_4
; %bb.1:
	mov	x21, x7
	mov	x25, x6
	mov	x28, x5
	mov	x20, x4
	mov	x26, x3
	mov	x27, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x1
	bl	_GetBkMode
	mov	x23, x0
	mov	x0, x19
	bl	_GetBkColor
	mov	x24, x0
	mov	x0, x19
	bl	_GetTextColor
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	stp	w0, w24, [sp]                   ; 8-byte Folded Spill
	cbz	x21, LBB0_6
; %bb.2:
	ldr	x8, [x22]
	cbz	x8, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _OBJ_FONT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OBJ_FONT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetCurrentObject
	add	x2, sp, #24
	mov	w1, #4
	bl	_GetObjectW
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	add	x0, sp, #24
	bl	_CreateFontIndirectW
	mov	x23, x0
	mov	x0, x19
	mov	x1, x23
	bl	_SelectObject
	mov	x24, x0
	b	LBB0_7
LBB0_4:
	mov	x20, #0
	b	LBB0_16
LBB0_5:
Lloh6:
	adrp	x8, _COLOR_HIGHLIGHT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _COLOR_HIGHLIGHT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_GetSysColor
	mov	x1, x0
	mov	x0, x19
	bl	_SetBkColor
Lloh9:
	adrp	x8, _COLOR_HIGHLIGHTTEXT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _COLOR_HIGHLIGHTTEXT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_GetSysColor
	mov	x1, x0
	mov	x0, x19
	bl	_SetTextColor
Lloh12:
	adrp	x8, _OPAQUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OPAQUE@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_SetBkMode
LBB0_6:
	mov	x24, #0
	mov	x23, #0
LBB0_7:
	mov	x0, x22
	mov	x1, x20
	bl	_EDIT_EM_LineIndex
Lloh15:
	adrp	x8, _ES_MULTILINE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ES_MULTILINE@GOTPAGEOFF]
	ldr	w9, [x22, #8]
Lloh17:
	ldr	w8, [x8]
	ldr	x10, [x22, #16]
	add	x20, x0, x28
	add	x3, x20, x10
	tst	w8, w9
	b.eq	LBB0_9
; %bb.8:
	ldp	w6, w5, [x22, #40]
	ldp	x9, x8, [x22, #24]
	sub	x7, x8, x9
	mov	x0, x19
	mov	x1, x27
	mov	x2, x26
	mov	x4, x25
	bl	_TabbedTextOutW
	bl	_LOWORD
	mov	x20, x0
	cbnz	x21, LBB0_10
	b	LBB0_16
LBB0_9:
	mov	x0, x19
	mov	x1, x27
	mov	x2, x26
	mov	x4, x25
	bl	_TextOutW
	ldr	x8, [x22, #16]
	add	x1, x20, x8
	add	x3, sp, #16
	mov	x0, x19
	mov	x2, x25
	bl	_GetTextExtentPoint32W
	ldr	x20, [sp, #16]
	cbz	x21, LBB0_16
LBB0_10:
	ldr	x8, [x22]
	cbz	x8, LBB0_15
; %bb.11:
	cbz	x24, LBB0_13
; %bb.12:
	mov	x0, x19
	mov	x1, x24
	bl	_SelectObject
LBB0_13:
	cbz	x23, LBB0_16
; %bb.14:
	mov	x0, x23
	bl	_DeleteObject
	b	LBB0_16
LBB0_15:
	mov	x0, x19
	ldr	w1, [sp, #4]                    ; 4-byte Folded Reload
	bl	_SetBkColor
	mov	x0, x19
	ldr	w1, [sp]                        ; 4-byte Folded Reload
	bl	_SetTextColor
	mov	x0, x19
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_SetBkMode
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_COLOR_HIGHLIGHT,4,2            ; @COLOR_HIGHLIGHT
	.comm	_COLOR_HIGHLIGHTTEXT,4,2        ; @COLOR_HIGHLIGHTTEXT
	.comm	_OPAQUE,8,3                     ; @OPAQUE
	.comm	_OBJ_FONT,4,2                   ; @OBJ_FONT
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_ES_MULTILINE,4,2               ; @ES_MULTILINE
	.no_dead_strip	_EDIT_PaintText
.subsections_via_symbols
