	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EDIT_EM_LineLength
_EDIT_EM_LineLength:                    ## @EDIT_EM_LineLength
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_ES_MULTILINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_9
## %bb.1:
	cmpl	$-1, %esi
	je	LBB0_2
## %bb.3:
	movq	16(%rbx), %rax
	subl	8(%rax), %esi
	js	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rcx
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	subl	8(%rax), %esi
	movq	%rax, %rcx
	jns	LBB0_5
	jmp	LBB0_7
LBB0_9:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_get_text_length                ## TAILCALL
LBB0_2:
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	_EDIT_EM_LineFromChar
	movl	4(%rbx), %r14d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_EDIT_EM_LineIndex
	movl	%eax, %r15d
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_EDIT_EM_LineFromChar
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_EDIT_EM_LineIndex
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_EDIT_EM_LineLength
	subl	%r15d, %r14d
	addl	%r12d, %r14d
	addl	%eax, %r14d
	subl	8(%rbx), %r14d
	jmp	LBB0_8
LBB0_4:
	movq	%rax, %rcx
LBB0_7:
	movl	(%rcx), %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ES_MULTILINE,4,2               ## @ES_MULTILINE
	.no_dead_strip	_EDIT_EM_LineLength
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EDIT_EM_LineLength
_EDIT_EM_LineLength:                    ; @EDIT_EM_LineLength
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _ES_MULTILINE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ES_MULTILINE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
	cmn	w1, #1
	b.eq	LBB0_7
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #8]
	subs	w9, w1, w9
	b.mi	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, #16]
	cbz	x10, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x10, #8]
	mov	x8, x10
	subs	w9, w9, w11
	b.pl	LBB0_3
LBB0_5:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_get_text_length
LBB0_7:
	ldr	w1, [x19, #4]
	mov	x0, x19
	bl	_EDIT_EM_LineFromChar
	mov	x1, x0
	ldr	w22, [x19, #4]
	mov	x0, x19
	bl	_EDIT_EM_LineIndex
	mov	x20, x0
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_EDIT_EM_LineFromChar
	mov	x1, x0
	mov	x0, x19
	bl	_EDIT_EM_LineIndex
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_EDIT_EM_LineLength
	ldr	w8, [x19, #8]
	sub	w9, w22, w20
	add	w9, w9, w21
	add	w9, w9, w0
	sub	w0, w9, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ES_MULTILINE,4,2               ; @ES_MULTILINE
	.no_dead_strip	_EDIT_EM_LineLength
.subsections_via_symbols
