	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EDIT_GetLineRect
_EDIT_GetLineRect:                      ## @EDIT_GetLineRect
	.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	%r8, %r14
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r13
	movq	_ES_MULTILINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	32(%rdi), %r9
	testl	%eax, (%rdi)
	je	LBB0_6
## %bb.1:
	movl	%esi, %eax
	subl	4(%r13), %eax
	movl	8(%r13), %r8d
	imull	%r8d, %eax
	cltq
	addq	%rax, %r9
	movq	%r9, 8(%r14)
	cmpl	%esi, 12(%r13)
	jle	LBB0_25
## %bb.2:
	movq	48(%r13), %rax
	cmpl	$-1, %esi
	je	LBB0_7
## %bb.3:
	testl	%esi, %esi
	jle	LBB0_11
## %bb.4:
	leal	-1(%rsi), %ebx
	movl	%esi, %edi
	andl	$3, %edi
	cmpl	$3, %ebx
	jae	LBB0_12
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_6:
	movq	%r9, 8(%r14)
	leaq	40(%r13), %rax
	movl	8(%r13), %r8d
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_7:
	movl	16(%r13), %esi
	movl	(%rax), %r10d
	xorl	%ebx, %ebx
	subl	%r10d, %esi
	js	LBB0_16
## %bb.8:
	movq	%rax, %rdi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_26
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	addl	%r10d, %ebx
	movl	(%rax), %r10d
	subl	%r10d, %esi
	movq	%rax, %rdi
	jns	LBB0_9
	jmp	LBB0_16
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_12:
	andl	$-4, %esi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rax), %ebx
	movq	16(%rax), %rax
	addl	(%rax), %ebx
	movq	16(%rax), %rax
	addl	(%rax), %ebx
	movq	16(%rax), %rax
	addl	(%rax), %ebx
	movq	16(%rax), %rax
	addl	$-4, %esi
	jne	LBB0_13
LBB0_14:
	testl	%edi, %edi
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rax), %ebx
	movq	16(%rax), %rax
	decl	%edi
	jne	LBB0_15
	jmp	LBB0_16
LBB0_26:
	movq	%rdi, %rax
LBB0_16:
	addq	$8, %rax
LBB0_17:
	movq	(%rax), %r12
	movslq	%r8d, %rax
	addq	%r9, %rax
	movq	%rax, 16(%r14)
	testl	%edx, %edx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_20
## %bb.18:
	leal	(%rbx,%rdx), %esi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%ecx, %r15d
	callq	_EDIT_EM_PosFromChar
	movl	%eax, %edi
	callq	_LOWORD
	movl	%r15d, %ecx
	movswl	%ax, %r15d
	cmpl	$-1, %ecx
	je	LBB0_21
LBB0_19:
	addl	%ecx, %ebx
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_EDIT_EM_PosFromChar
	movl	%eax, %edi
	callq	_LOWORD
	movswl	%ax, %ebx
	jmp	LBB0_22
LBB0_20:
	movswl	24(%r13), %r15d
	cmpl	$-1, %ecx
	jne	LBB0_19
LBB0_21:
	movswl	26(%r13), %ebx
LBB0_22:
	movl	%r15d, %eax
	testq	%r12, %r12
	je	LBB0_24
## %bb.23:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_ScriptStringCPtoX
	movswl	24(%r13), %eax
	addl	-44(%rbp), %eax
LBB0_24:
	movl	%eax, -44(%rbp)
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_max
	movl	-44(%rbp), %esi
	movl	%eax, %edi
	callq	_max
	movl	%eax, (%r14)
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_min
	movl	-44(%rbp), %esi
	movl	%eax, %edi
	callq	_min
	movl	%eax, 4(%r14)
LBB0_25:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ES_MULTILINE,4,2               ## @ES_MULTILINE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_EDIT_GetLineRect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EDIT_GetLineRect
_EDIT_GetLineRect:                      ; @EDIT_GetLineRect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x4
	mov	x22, x3
	mov	x21, x2
	mov	x20, x0
	ldr	w9, [x0]
Lloh0:
	adrp	x8, _ES_MULTILINE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ES_MULTILINE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	ldr	x8, [x0, #32]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.1:
	ldp	w10, w9, [x20, #4]
	sub	w10, w1, w10
	mul	w10, w10, w9
	add	x8, x8, w10, sxtw
	str	x8, [x19, #8]
	ldr	w10, [x20, #12]
	cmp	w10, w1
	b.le	LBB0_19
; %bb.2:
	ldr	x10, [x20, #48]
	cmn	w1, #1
	b.eq	LBB0_7
; %bb.3:
	cmp	w1, #1
	b.lt	LBB0_12
; %bb.4:
	mov	w25, #0
	add	w11, w1, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10]
	add	w25, w12, w25
	ldr	x10, [x10, #16]
	sub	w11, w11, #1
	cmp	w11, #1
	b.hi	LBB0_5
	b	LBB0_11
LBB0_6:
	mov	w25, #0
	str	x8, [x19, #8]
	add	x10, x20, #40
	ldr	w9, [x20, #8]
	b	LBB0_14
LBB0_7:
	ldr	w11, [x20, #16]
	ldr	w12, [x10]
	mov	w25, #0
	subs	w11, w11, w12
	b.mi	LBB0_11
; %bb.8:
	mov	x13, x10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x13, #16]
	cbz	x10, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w25, w12, w25
	ldr	w12, [x10]
	mov	x13, x10
	subs	w11, w11, w12
	b.pl	LBB0_9
LBB0_11:
	add	x10, x10, #8
	b	LBB0_14
LBB0_12:
	mov	w25, #0
	add	x10, x10, #8
	b	LBB0_14
LBB0_13:
	mov	x10, x13
	add	x10, x13, #8
LBB0_14:
	ldr	x24, [x10]
	add	x8, x8, w9, sxtw
	str	x8, [x19, #16]
Lloh3:
	adrp	x26, _TRUE@GOTPAGE
Lloh4:
	ldr	x26, [x26, _TRUE@GOTPAGEOFF]
	cbz	w21, LBB0_20
; %bb.15:
	add	w1, w25, w21
	ldr	w2, [x26]
	mov	x0, x20
	bl	_EDIT_EM_PosFromChar
	bl	_LOWORD
	sxth	w23, w0
	cmn	w22, #1
	b.eq	LBB0_21
LBB0_16:
	add	w1, w25, w22
	ldr	w2, [x26]
	mov	x0, x20
	bl	_EDIT_EM_PosFromChar
	bl	_LOWORD
	sxth	w22, w0
	mov	x8, x23
	cbz	x24, LBB0_18
LBB0_17:
Lloh5:
	adrp	x8, _FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x24
	mov	x1, x21
	bl	_ScriptStringCPtoX
	ldrsh	w8, [x20, #24]
	ldr	w9, [sp, #12]
	add	w8, w9, w8
LBB0_18:
	str	w8, [sp, #12]
	mov	x0, x23
	mov	x1, x22
	bl	_max
	ldr	w1, [sp, #12]
	bl	_max
	str	w0, [x19]
	mov	x0, x23
	mov	x1, x22
	bl	_min
	ldr	w1, [sp, #12]
	bl	_min
	str	w0, [x19, #4]
LBB0_19:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_20:
	ldrsh	w23, [x20, #24]
	cmn	w22, #1
	b.ne	LBB0_16
LBB0_21:
	ldrsh	w22, [x20, #26]
	mov	x8, x23
	cbnz	x24, LBB0_17
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ES_MULTILINE,4,2               ; @ES_MULTILINE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_EDIT_GetLineRect
.subsections_via_symbols
