	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EDIT_PaintLine
_EDIT_PaintLine:                        ## @EDIT_PaintLine
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	_ES_MULTILINE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, (%rdi)
	je	LBB0_5
## %bb.1:
	movq	%r12, %rdi
	callq	_get_vertical_line_count
	movq	8(%r12), %rcx
	cmpq	%r14, %rcx
	jg	LBB0_4
## %bb.2:
	addq	%rax, %rcx
	cmpq	%r14, %rcx
	jl	LBB0_4
## %bb.3:
	cmpq	%r14, 16(%r12)
	jle	LBB0_4
LBB0_6:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_TRACE
	movq	%r12, %rdi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_EDIT_UpdateUniscribeData
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_EDIT_EM_LineIndex
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_EDIT_EM_PosFromChar
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_LOWORD
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_HIWORD
	movq	%rax, %r11
	movl	(%r12), %edx
	testl	%edx, (%r13)
	je	LBB0_7
## %bb.8:
	movq	24(%r12), %r9
	movq	%r9, %rsi
	negq	%rsi
	movq	_ES_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%edx, %r8d
	jne	LBB0_11
## %bb.9:
	movq	_ES_CENTER@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_10
LBB0_11:
	movq	64(%r12), %rbx
	testq	%rbx, %rbx
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	je	LBB0_16
## %bb.12:
	testl	%r14d, %r14d
	je	LBB0_16
## %bb.13:
	leal	-1(%r14), %eax
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rbx
	addl	$-1, %eax
	setb	%cl
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	testb	%cl, %cl
	jne	LBB0_14
LBB0_16:
	movslq	52(%r12), %rax
	movslq	56(%r12), %rdi
	subq	%rdi, %rax
	movslq	(%rbx), %rbx
	testl	%edx, %r8d
	je	LBB0_18
## %bb.17:
	addq	%rbx, %r9
	subq	%r9, %rax
	movq	%rax, %rsi
	jmp	LBB0_20
LBB0_5:
	testq	%r14, %r14
	je	LBB0_6
LBB0_4:
	addq	$56, %rsp
	jmp	LBB0_34
LBB0_7:
	movswq	%r15w, %rdx
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	testq	%r10, %r10
	jne	LBB0_23
LBB0_22:
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_18:
	movq	_ES_CENTER@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_20
## %bb.19:
	subl	%ebx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rsi
	subq	%r9, %rsi
	jmp	LBB0_20
LBB0_10:
	movl	56(%r12), %edi
	movq	-56(%rbp), %r10                 ## 8-byte Reload
LBB0_20:
	movslq	%edi, %rdx
	addq	%rsi, %rdx
	testq	%r10, %r10
	je	LBB0_22
LBB0_23:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r11, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	callq	_EDIT_EM_LineIndex
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_EDIT_EM_LineLength
	movq	%rax, %r13
	movq	32(%r12), %rdi
	movq	40(%r12), %rsi
	callq	_min
	movq	%rax, %rbx
	movq	32(%r12), %rdi
	movq	40(%r12), %rsi
	callq	_max
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	addq	%r15, %r13
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_max
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_min
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_max
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_min
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %r11                 ## 8-byte Reload
	movq	%rax, %r13
LBB0_24:
	movswq	%r11w, %rcx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.25:
	addq	$52, %r12
	subq	%r15, %rbx
	subq	%r15, %r13
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	movq	%rbx, %r9
	pushq	%rax
	pushq	%r13
	callq	_ScriptStringOut
	jmp	LBB0_33
LBB0_26:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_31
## %bb.27:
	movq	%r13, %r8
	subq	%rbx, %r8
	je	LBB0_31
## %bb.28:
	movq	_EF_FOCUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 48(%r12)
	jne	LBB0_30
## %bb.29:
	movq	_ES_NOHIDESEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_31
LBB0_30:
	subq	%r15, %rbx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r12, %rdi
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %r8
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%rbx
	callq	_EDIT_PaintText
	addq	$16, %rsp
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	addq	%rax, %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %r8
	movq	%rbx, %r9
	pushq	%rax
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_EDIT_PaintText
	addq	$16, %rsp
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	addq	%rax, %rdx
	movq	%r13, %r9
	subq	%r15, %r9
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	addq	%r15, %rbx
	subq	%r13, %rbx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %r8
	pushq	%rax
	pushq	%rbx
	jmp	LBB0_32
LBB0_31:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r14, %r8
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
LBB0_32:
	callq	_EDIT_PaintText
LBB0_33:
	addq	$72, %rsp
LBB0_34:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ES_MULTILINE,4,2               ## @ES_MULTILINE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"line=%d\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_ES_RIGHT,4,2                   ## @ES_RIGHT
	.comm	_ES_CENTER,4,2                  ## @ES_CENTER
	.comm	_EF_FOCUSED,4,2                 ## @EF_FOCUSED
	.comm	_ES_NOHIDESEL,4,2               ## @ES_NOHIDESEL
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_EDIT_PaintLine
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EDIT_PaintLine
_EDIT_PaintLine:                        ; @EDIT_PaintLine
	.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
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x25, _ES_MULTILINE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ES_MULTILINE@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.1:
	mov	x0, x21
	bl	_get_vertical_line_count
	ldr	x8, [x21, #8]
	add	x9, x8, x0
	cmp	x8, x19
	ccmp	x9, x19, #8, le
	b.lt	LBB0_14
; %bb.2:
	ldr	x8, [x21, #16]
	cmp	x8, x19
	b.le	LBB0_14
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_TRACE
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_EDIT_UpdateUniscribeData
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	mov	x0, x21
	mov	x1, x19
	bl	_EDIT_EM_LineIndex
	mov	x1, x0
Lloh4:
	adrp	x8, _FALSE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_EDIT_EM_PosFromChar
	mov	x24, x0
	bl	_LOWORD
	mov	x23, x0
	mov	x0, x24
	bl	_HIWORD
	ldr	w8, [x21]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.4:
	ldr	x9, [x21, #24]
Lloh7:
	adrp	x10, _ES_RIGHT@GOTPAGE
Lloh8:
	ldr	x10, [x10, _ES_RIGHT@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	ands	w10, w10, w8
	b.ne	LBB0_6
; %bb.5:
Lloh10:
	adrp	x11, _ES_CENTER@GOTPAGE
Lloh11:
	ldr	x11, [x11, _ES_CENTER@GOTPAGEOFF]
Lloh12:
	ldr	w11, [x11]
	tst	w11, w8
	b.eq	LBB0_25
LBB0_6:
	ldr	x11, [x21, #64]
	cbz	x11, LBB0_11
; %bb.7:
	cbz	w19, LBB0_11
; %bb.8:
	sub	w12, w19, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x11, #8]
	subs	w12, w12, #1
	cset	w13, hs
	cbz	x11, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	tbnz	w13, #0, LBB0_9
LBB0_11:
	ldpsw	x13, x12, [x21, #52]
	sub	x13, x13, x12
	ldrsw	x11, [x11]
	cbz	w10, LBB0_24
; %bb.12:
	add	x8, x9, x11
	sub	x8, x13, x8
	b	LBB0_26
LBB0_13:
	cbz	x19, LBB0_3
LBB0_14:
	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
LBB0_15:
	sxth	x24, w23
	sxth	x3, w0
	cbnz	x22, LBB0_27
LBB0_16:
	str	xzr, [sp, #16]                  ; 8-byte Folded Spill
	mov	x27, #0
	mov	x28, #0
	mov	x23, #0
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	cbnz	x0, LBB0_28
LBB0_17:
	cbz	x22, LBB0_22
; %bb.18:
	subs	x25, x28, x23
	b.eq	LBB0_22
; %bb.19:
	ldr	w8, [x21, #48]
Lloh13:
	adrp	x9, _EF_FOCUSED@GOTPAGE
Lloh14:
	ldr	x9, [x9, _EF_FOCUSED@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_21
; %bb.20:
	ldr	w8, [x21]
Lloh16:
	adrp	x9, _ES_NOHIDESEL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ES_NOHIDESEL@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
LBB0_21:
	sub	x23, x23, x27
Lloh19:
	adrp	x26, _FALSE@GOTPAGE
Lloh20:
	ldr	x26, [x26, _FALSE@GOTPAGEOFF]
	ldr	w7, [x26]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	mov	x22, x3
	mov	x4, x19
	mov	x5, #0
	mov	x6, x23
	bl	_EDIT_PaintText
	add	x24, x0, x24
Lloh21:
	adrp	x8, _TRUE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh23:
	ldr	w7, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	mov	x3, x22
	mov	x4, x19
	mov	x5, x23
	mov	x6, x25
	bl	_EDIT_PaintText
	add	x2, x0, x24
	sub	x5, x28, x27
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x8, x27, x8
	sub	x6, x8, x28
	ldr	w7, [x26]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x22
	mov	x4, x19
	b	LBB0_23
LBB0_22:
Lloh24:
	adrp	x8, _FALSE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh26:
	ldr	w7, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	mov	x4, x19
	mov	x5, #0
	ldr	x6, [sp, #16]                   ; 8-byte Folded Reload
LBB0_23:
	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
	b	_EDIT_PaintText
LBB0_24:
Lloh27:
	adrp	x10, _ES_CENTER@GOTPAGE
Lloh28:
	ldr	x10, [x10, _ES_CENTER@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	sub	w11, w13, w11
	cmp	w11, #0
	cinc	w11, w11, lt
	sbfx	x11, x11, #1, #31
	sub	x11, x11, x9
	tst	w10, w8
	csneg	x8, x11, x9, ne
	b	LBB0_26
LBB0_25:
	neg	x8, x9
	ldr	w12, [x21, #56]
LBB0_26:
	add	x24, x8, w12, sxtw
	sxth	x3, w0
	cbz	x22, LBB0_16
LBB0_27:
	mov	x0, x21
	mov	x1, x19
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	bl	_EDIT_EM_LineIndex
	mov	x27, x0
	mov	x0, x21
	mov	x1, x27
	bl	_EDIT_EM_LineLength
	mov	x25, x20
	mov	x20, x0
	ldp	x0, x1, [x21, #32]
	bl	_min
	mov	x23, x0
	ldp	x0, x1, [x21, #32]
	bl	_max
	mov	x28, x0
	mov	x26, x24
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
	add	x24, x20, x27
	mov	x20, x25
	mov	x0, x27
	mov	x1, x23
	bl	_max
	mov	x1, x0
	mov	x0, x24
	bl	_min
	mov	x23, x0
	mov	x0, x27
	mov	x1, x28
	bl	_max
	mov	x1, x0
	mov	x0, x24
	mov	x24, x26
	bl	_min
	ldr	x3, [sp, #8]                    ; 8-byte Folded Reload
	mov	x28, x0
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	cbz	x0, LBB0_17
LBB0_28:
	add	x4, x21, #52
	sub	x5, x23, x27
	sub	x6, x28, x27
Lloh30:
	adrp	x8, _FALSE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh32:
	ldr	w7, [x8]
	mov	x1, x24
	mov	x2, x3
	mov	w3, #0
	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
	b	_ScriptStringOut
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ES_MULTILINE,4,2               ; @ES_MULTILINE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"line=%d\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_ES_RIGHT,4,2                   ; @ES_RIGHT
	.comm	_ES_CENTER,4,2                  ; @ES_CENTER
	.comm	_EF_FOCUSED,4,2                 ; @EF_FOCUSED
	.comm	_ES_NOHIDESEL,4,2               ; @ES_NOHIDESEL
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_EDIT_PaintLine
.subsections_via_symbols
