	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EDIT_EM_LineFromChar
_EDIT_EM_LineFromChar:                  ## @EDIT_EM_LineFromChar
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ES_MULTILINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	testl	%eax, (%rdi)
	je	LBB0_9
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_get_text_length
	cmpl	%ebx, %eax
	jge	LBB0_3
## %bb.2:
	movl	4(%r15), %r14d
	decl	%r14d
	jmp	LBB0_9
LBB0_3:
	cmpl	$-1, %ebx
	jne	LBB0_5
## %bb.4:
	movl	16(%r15), %esi
	movl	20(%r15), %edi
	callq	_min
	movl	%eax, %ebx
LBB0_5:
	movq	8(%r15), %rax
	subl	(%rax), %ebx
	js	LBB0_9
## %bb.6:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incl	%r14d
	subl	(%rax), %ebx
	jns	LBB0_7
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ES_MULTILINE,4,2               ## @ES_MULTILINE
	.no_dead_strip	_EDIT_EM_LineFromChar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EDIT_EM_LineFromChar
_EDIT_EM_LineFromChar:                  ; @EDIT_EM_LineFromChar
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	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_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	bl	_get_text_length
	cmp	w0, w20
	b.ge	LBB0_4
; %bb.2:
	ldr	w8, [x19, #4]
	sub	w0, w8, #1
	b	LBB0_9
LBB0_3:
	mov	w0, #0
	b	LBB0_9
LBB0_4:
	cmn	w20, #1
	b.ne	LBB0_6
; %bb.5:
	ldp	w1, w0, [x19, #16]
	bl	_min
	mov	x20, x0
LBB0_6:
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	mov	w0, #0
	subs	w9, w20, w9
	b.mi	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w0, w0, #1
	ldr	w10, [x8]
	subs	w9, w9, w10
	b.pl	LBB0_7
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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_LineFromChar
.subsections_via_symbols
