	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_join_lines                     ## -- Begin function join_lines
	.p2align	4, 0x90
_join_lines:                            ## @join_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rcx
	movq	%rdi, %rbx
	movq	_addr_last@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	callq	_INC_MOD
	movq	%rax, %rdi
	callq	_get_addressed_line_node
	movq	%rax, %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_get_addressed_line_node
	cmpq	%r12, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r13
	xorl	%ebx, %ebx
	movq	_ERR@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_get_sbuf_line
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	movl	(%r13), %edx
	addl	%ebx, %edx
	movl	(%r15), %ecx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_REALLOC
	movslq	%ebx, %rbx
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_memcpy
	addl	(%r13), %ebx
	movq	8(%r13), %r13
	cmpq	%r12, %r13
	jne	LBB0_2
	jmp	LBB0_5
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	leal	2(%rbx), %edx
	movq	_ERR@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_REALLOC
	movslq	%ebx, %rdi
	leaq	L_.str(%rip), %rsi
	movl	$2, %edx
	callq	_memcpy
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_delete_lines
	testq	%rax, %rax
	js	LBB0_12
## %bb.6:
	decq	%rbx
	movq	_current_addr@GOTPCREL(%rip), %r15
	movq	%rbx, (%r15)
	xorl	%eax, %eax
	callq	_SPL1
	xorl	%edi, %edi
	callq	_put_sbuf_line
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	_UADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rdx
	movq	%rdx, %rsi
	callq	_push_undo_stack
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	_modified@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_SPL0
	jmp	LBB0_13
LBB0_9:
	movl	(%r15), %ebx
	jmp	LBB0_13
LBB0_11:
	xorl	%eax, %eax
	callq	_SPL0
LBB0_12:
	movl	(%r14), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_addr_last,4,2                  ## @addr_last
	.comm	_ERR,4,2                        ## @ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_current_addr,8,3               ## @current_addr
	.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	_join_lines                     ; -- Begin function join_lines
	.p2align	2
_join_lines:                            ; @join_lines
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _addr_last@GOTPAGE
Lloh1:
	ldr	x8, [x8, _addr_last@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_INC_MOD
	bl	_get_addressed_line_node
	mov	x21, x0
	mov	x0, x19
	bl	_get_addressed_line_node
Lloh3:
	adrp	x24, _ERR@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ERR@GOTPAGEOFF]
	cmp	x0, x21
	b.eq	LBB0_4
; %bb.1:
	mov	x22, x0
	mov	w25, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_get_sbuf_line
	cbz	x0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, x0
	ldr	w8, [x22]
	add	w2, w8, w25
	ldr	w3, [x24]
	mov	x0, #0
	mov	w1, #0
	bl	_REALLOC
	sxtw	x0, w25
	ldr	w2, [x22]
	mov	x1, x23
	bl	_memcpy
	ldr	w8, [x22]
	add	w25, w8, w25
	ldr	x22, [x22, #8]
	cmp	x22, x21
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w25, #0
LBB0_5:
	add	w2, w25, #2
	ldr	w3, [x24]
	mov	x0, #0
	mov	w1, #0
	bl	_REALLOC
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	sxtw	x0, w25
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #2
	bl	_memcpy
	mov	x0, x19
	mov	x1, x20
	bl	_delete_lines
	tbnz	x0, #63, LBB0_10
; %bb.6:
	sub	x8, x19, #1
Lloh7:
	adrp	x19, _current_addr@GOTPAGE
Lloh8:
	ldr	x19, [x19, _current_addr@GOTPAGEOFF]
	str	x8, [x19]
	bl	_SPL1
	mov	x0, #0
	bl	_put_sbuf_line
	cbz	x0, LBB0_9
; %bb.7:
Lloh9:
	adrp	x8, _UADD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UADD@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x1, [x19]
	mov	x2, x1
	bl	_push_undo_stack
	cbz	x0, LBB0_9
; %bb.8:
Lloh12:
	adrp	x8, _modified@GOTPAGE
Lloh13:
	ldr	x8, [x8, _modified@GOTPAGEOFF]
	mov	w9, #1
Lloh14:
	str	w9, [x8]
	bl	_SPL0
	mov	w0, #0
	b	LBB0_11
LBB0_9:
	bl	_SPL0
LBB0_10:
	ldr	w0, [x24]
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_addr_last,4,2                  ; @addr_last
	.comm	_ERR,4,2                        ; @ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_current_addr,8,3               ; @current_addr
	.comm	_UADD,4,2                       ; @UADD
	.comm	_modified,4,2                   ; @modified
.subsections_via_symbols
