	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_append_lines                   ## -- Begin function append_lines
	.p2align	4, 0x90
_append_lines:                          ## @append_lines
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_current_addr@GOTPCREL(%rip), %r12
	movq	%rdi, (%r12)
	movq	_isglobal@GOTPCREL(%rip), %rax
	movq	_ibufp@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	cmpl	$0, (%rax)
	je	LBB0_4
LBB0_1:
	movq	(%r13), %r15
	cmpb	$0, (%r15)
	je	LBB0_24
## %bb.2:
	leaq	1(%r15), %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rax,%rbx), %rcx
	movq	%rcx, (%r13)
	cmpb	$10, (%r15,%rbx)
	leaq	1(%rbx), %rbx
	jne	LBB0_3
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_16:
	movq	_modified@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_SPL0
	movq	_isglobal@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_1
LBB0_4:
	xorl	%eax, %eax
	callq	_get_tty_line
	testl	%eax, %eax
	js	LBB0_18
## %bb.5:
	movl	%eax, %ebx
	je	LBB0_21
## %bb.6:
	movq	_ibuf@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	leal	-1(%rbx), %eax
	cmpb	$10, (%r15,%rax)
	jne	LBB0_21
LBB0_7:
	cmpl	$2, %ebx
	jne	LBB0_10
## %bb.8:
	cmpb	$46, (%r15)
	jne	LBB0_10
## %bb.9:
	cmpb	$10, 1(%r15)
	je	LBB0_24
LBB0_10:
	movslq	%ebx, %rbx
	addq	%r15, %rbx
	xorl	%eax, %eax
	callq	_SPL1
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	(%r12), %rdi
	callq	_get_addressed_line_node
	movl	%eax, (%r14)
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpq	%rbx, %r15
	je	LBB0_16
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_put_sbuf_line
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rax, %r15
	testq	%r14, %r14
	jne	LBB0_11
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_UADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rdx
	movq	%rdx, %rsi
	callq	_push_undo_stack
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_12
LBB0_17:
	xorl	%eax, %eax
	callq	_SPL0
LBB0_18:
	movq	_ERR@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_21:
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_clearerr
	testl	%ebx, %ebx
	je	LBB0_20
## %bb.22:
	movq	_EOF@GOTPCREL(%rip), %rax
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ibuf,8,3                       ## @ibuf
	.comm	_current_addr,8,3               ## @current_addr
	.comm	_isglobal,4,2                   ## @isglobal
	.comm	_ERR,4,2                        ## @ERR
	.comm	_stdin,4,2                      ## @stdin
	.comm	_EOF,4,2                        ## @EOF
	.comm	_ibufp,8,3                      ## @ibufp
	.comm	_UADD,4,2                       ## @UADD
	.comm	_modified,4,2                   ## @modified
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_append_lines                   ; -- Begin function append_lines
	.p2align	2
_append_lines:                          ; @append_lines
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, #0
Lloh0:
	adrp	x22, _current_addr@GOTPAGE
Lloh1:
	ldr	x22, [x22, _current_addr@GOTPAGEOFF]
Lloh2:
	adrp	x23, _isglobal@GOTPAGE
Lloh3:
	ldr	x23, [x23, _isglobal@GOTPAGEOFF]
Lloh4:
	adrp	x24, _ibuf@GOTPAGE
Lloh5:
	ldr	x24, [x24, _ibuf@GOTPAGEOFF]
Lloh6:
	adrp	x25, _UADD@GOTPAGE
Lloh7:
	ldr	x25, [x25, _UADD@GOTPAGEOFF]
	str	x0, [x22]
Lloh8:
	adrp	x26, _modified@GOTPAGE
Lloh9:
	ldr	x26, [x26, _modified@GOTPAGEOFF]
	mov	w27, #1
Lloh10:
	adrp	x28, _ibufp@GOTPAGE
Lloh11:
	ldr	x28, [x28, _ibufp@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_5
LBB0_1:
	ldr	x20, [x28]
	ldrb	w8, [x20]
	cbz	w8, LBB0_20
; %bb.2:
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x20, x21
	add	x9, x8, #1
	str	x9, [x28]
	ldrb	w8, [x8]
	add	x21, x21, #1
	cmp	w8, #10
	b.ne	LBB0_3
	b	LBB0_8
LBB0_4:
	str	w27, [x26]
	bl	_SPL0
	ldr	w8, [x23]
	cbnz	w8, LBB0_1
LBB0_5:
	bl	_get_tty_line
	tbnz	w0, #31, LBB0_18
; %bb.6:
	mov	x21, x0
	cbz	w0, LBB0_21
; %bb.7:
	ldr	x20, [x24]
	sub	w8, w21, #1
	ldrb	w8, [x20, w8, uxtw]
	cmp	w8, #10
	b.ne	LBB0_21
LBB0_8:
	cmp	w21, #2
	b.ne	LBB0_11
; %bb.9:
	ldrb	w8, [x20]
	cmp	w8, #46
	b.ne	LBB0_11
; %bb.10:
	ldrb	w8, [x20, #1]
	cmp	w8, #10
	b.eq	LBB0_20
LBB0_11:
	add	x21, x20, w21, sxtw
	bl	_SPL1
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x0, [x22]
	bl	_get_addressed_line_node
	str	w0, [x19]
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	cmp	x20, x21
	b.eq	LBB0_4
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_put_sbuf_line
	cbz	x0, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x20, x0
	cbnz	x19, LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [x25]
	ldr	x1, [x22]
	mov	x2, x1
	bl	_push_undo_stack
	mov	x19, x0
	cbnz	x0, LBB0_13
LBB0_17:
	bl	_SPL0
LBB0_18:
Lloh12:
	adrp	x8, _ERR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_20:
	mov	w0, #0
	b	LBB0_19
LBB0_21:
Lloh15:
	adrp	x8, _stdin@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_clearerr
Lloh18:
	adrp	x8, _EOF@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w21, #0
	csel	w0, wzr, w8, eq
	b	LBB0_19
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ibuf,8,3                       ; @ibuf
	.comm	_current_addr,8,3               ; @current_addr
	.comm	_isglobal,4,2                   ; @isglobal
	.comm	_ERR,4,2                        ; @ERR
	.comm	_stdin,4,2                      ; @stdin
	.comm	_EOF,4,2                        ; @EOF
	.comm	_ibufp,8,3                      ; @ibufp
	.comm	_UADD,4,2                       ; @UADD
	.comm	_modified,4,2                   ; @modified
.subsections_via_symbols
