	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_editorInsertNewline            ## -- Begin function editorInsertNewline
	.p2align	4, 0x90
_editorInsertNewline:                   ## @editorInsertNewline
	.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	_E@GOTPCREL(%rip), %r14
	movslq	(%r14), %rax
	movslq	4(%r14), %rbx
	addq	%rax, %rbx
	movl	%ebx, %edi
	movl	16(%r14), %ecx
	cmpl	%ecx, %ebx
	jge	LBB0_2
## %bb.1:
	movq	24(%r14), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movl	12(%r14), %r15d
	addl	8(%r14), %r15d
	shlq	$4, %rbx
	movl	(%rax,%rbx), %edx
	cmpl	%edx, %r15d
	cmovgel	%edx, %r15d
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.5:
	incl	%edi
	movslq	%r15d, %r12
	movq	8(%rax,%rbx), %rsi
	addq	%r12, %rsi
	subl	%r15d, %edx
	callq	_editorInsertRow
	movq	24(%r14), %rax
	leaq	(%rax,%rbx), %rdi
	movq	8(%rax,%rbx), %rcx
	movb	$0, (%rcx,%r12)
	movl	%r15d, (%rax,%rbx)
	callq	_editorUpdateRow
	jmp	LBB0_6
LBB0_2:
	cmpl	%ecx, %edi
	jne	LBB0_10
LBB0_3:
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%edx, %edx
	callq	_editorInsertRow
LBB0_6:
	movl	4(%r14), %eax
	movl	20(%r14), %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	jne	LBB0_8
## %bb.7:
	incl	(%r14)
	jmp	LBB0_9
LBB0_8:
	incl	%eax
	movl	%eax, 4(%r14)
LBB0_9:
	movq	$0, 8(%r14)
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E,32,3                         ## @E
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_editorInsertNewline            ; -- Begin function editorInsertNewline
	.p2align	2
_editorInsertNewline:                   ; @editorInsertNewline
	.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
Lloh0:
	adrp	x19, _E@GOTPAGE
Lloh1:
	ldr	x19, [x19, _E@GOTPAGEOFF]
	ldp	w10, w11, [x19]
	ldr	w9, [x19, #16]
	ldr	x8, [x19, #24]
	add	w10, w11, w10
	cmp	w10, w9
	sxtw	x0, w10
	ccmp	x8, #0, #4, lt
	b.ne	LBB0_2
; %bb.1:
	cmp	w0, w9
	b.eq	LBB0_4
	b	LBB0_9
LBB0_2:
	ldp	w10, w11, [x19, #8]
	lsl	x21, x0, #4
	ldr	w9, [x8, x21]
	add	w10, w11, w10
	cmp	w10, w9
	csel	w20, w10, w9, lt
	cbz	w20, LBB0_4
; %bb.3:
	add	w0, w0, #1
	add	x8, x8, x21
	ldr	x8, [x8, #8]
	sxtw	x22, w20
	add	x1, x8, x22
	sub	w2, w9, w20
	bl	_editorInsertRow
	ldr	x8, [x19, #24]
	add	x0, x8, x21
	ldr	x8, [x0, #8]
	strb	wzr, [x8, x22]
	str	w20, [x0]
	bl	_editorUpdateRow
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w2, #0
	bl	_editorInsertRow
LBB0_5:
	ldr	w8, [x19, #4]
	ldr	w9, [x19, #20]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_8
LBB0_7:
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_8:
	str	xzr, [x19, #8]
LBB0_9:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_E,32,3                         ; @E
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

.subsections_via_symbols
