	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_lines                     ## -- Begin function copy_lines
	.p2align	4, 0x90
_copy_lines:                            ## @copy_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	%rdi, %r14
	movq	_first_addr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_get_addressed_line_node
	movq	%rax, %r15
	movq	_second_addr@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movslq	(%rbx), %rdx
	movl	%ecx, %eax
	subl	%edx, %eax
	incl	%eax
	movslq	%eax, %r13
	movq	_current_addr@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	xorl	%eax, %eax
	cmpq	%r14, %rdx
	jg	LBB0_4
## %bb.2:
	subq	%r14, %rcx
	jle	LBB0_4
## %bb.3:
	negq	%rdx
	leaq	(%r14,%rdx), %r13
	incq	%r13
	testq	%r13, %r13
	jg	LBB0_5
	jmp	LBB0_14
LBB0_4:
	xorl	%ecx, %ecx
	testq	%r13, %r13
	jle	LBB0_14
LBB0_5:
	movq	_modified@GOTPCREL(%rip), %r12
	movq	%rcx, %rax
	xorl	%r14d, %r14d
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	incq	%r13
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=2
	movq	%rbx, (%r14)
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=2
	movl	$1, (%r12)
	xorl	%eax, %eax
	callq	_SPL0
	movq	(%r15), %r15
	decq	%r13
	cmpq	$1, %r13
	jbe	LBB0_12
LBB0_9:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%eax, %eax
	callq	_SPL1
	movq	%r15, %rdi
	callq	_dup_line_node
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_add_line_node
	testq	%r14, %r14
	jne	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	_UADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_current_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %esi
	callq	_push_undo_stack
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_8
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_current_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	incl	%edi
	callq	_get_addressed_line_node
	movq	%rax, %r15
	xorl	%eax, %eax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	testq	%r13, %r13
	jg	LBB0_6
	jmp	LBB0_14
LBB0_13:
	xorl	%eax, %eax
	callq	_SPL0
	movq	_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_first_addr,4,2                 ## @first_addr
	.comm	_second_addr,4,2                ## @second_addr
	.comm	_current_addr,4,2               ## @current_addr
	.comm	_ERR,4,2                        ## @ERR
	.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	_copy_lines                     ; -- Begin function copy_lines
	.p2align	2
_copy_lines:                            ; @copy_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	x20, x0
Lloh0:
	adrp	x21, _first_addr@GOTPAGE
Lloh1:
	ldr	x21, [x21, _first_addr@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_get_addressed_line_node
Lloh2:
	adrp	x8, _second_addr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _second_addr@GOTPAGEOFF]
Lloh4:
	ldrsw	x8, [x8]
	ldrsw	x9, [x21]
	sub	w10, w8, w9
	add	w10, w10, #1
	sxtw	x10, w10
Lloh5:
	adrp	x22, _current_addr@GOTPAGE
Lloh6:
	ldr	x22, [x22, _current_addr@GOTPAGEOFF]
	str	w20, [x22]
	sub	x11, x20, x9
	subs	x8, x8, x20
	csinc	x11, x10, x11, le
	csel	x8, xzr, x8, le
	cmp	x9, x20
	csel	x23, x10, x11, gt
	csel	x8, xzr, x8, gt
	cmp	x23, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x0
	mov	x20, #0
Lloh7:
	adrp	x24, _UADD@GOTPAGE
Lloh8:
	ldr	x24, [x24, _UADD@GOTPAGEOFF]
Lloh9:
	adrp	x25, _modified@GOTPAGE
Lloh10:
	ldr	x25, [x25, _modified@GOTPAGEOFF]
	mov	w26, #1
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	add	x27, x23, #1
	mov	x23, x8
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=2
	str	x21, [x20]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	str	w26, [x25]
	bl	_SPL0
	ldr	x19, [x19]
	sub	x27, x27, #1
	cmp	x27, #1
	b.ls	LBB0_8
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_SPL1
	mov	x0, x19
	bl	_dup_line_node
	cbz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x21, x0
	bl	_add_line_node
	cbnz	x20, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w0, [x24]
	ldr	w1, [x22]
	mov	x2, x1
	bl	_push_undo_stack
	mov	x20, x0
	cbnz	x0, LBB0_4
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x22]
	add	w0, w8, #1
	bl	_get_addressed_line_node
	mov	x19, x0
	mov	x8, #0
	cmp	x23, #0
	b.gt	LBB0_2
LBB0_9:
	mov	w0, #0
	b	LBB0_11
LBB0_10:
	bl	_SPL0
Lloh11:
	adrp	x8, _ERR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
LBB0_11:
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_first_addr,4,2                 ; @first_addr
	.comm	_second_addr,4,2                ; @second_addr
	.comm	_current_addr,4,2               ; @current_addr
	.comm	_ERR,4,2                        ; @ERR
	.comm	_UADD,4,2                       ; @UADD
	.comm	_modified,4,2                   ; @modified
.subsections_via_symbols
