	.file	"extr_main.c_join_lines.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\n"
	.text
	.p2align 4
	.globl	join_lines
	.type	join_lines, @function
join_lines:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	mov	rdi, r14
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR addr_last[rip]
	call	INC_MOD@PLT
	mov	rdi, rax
	call	get_addressed_line_node@PLT
	mov	rdi, r13
	mov	r12, rax
	call	get_addressed_line_node@PLT
	cmp	r12, rax
	je	.L9
	mov	rbx, rax
	xor	r15d, r15d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR [rbx]
	mov	ecx, DWORD PTR ERR[rip]
	xor	esi, esi
	xor	edi, edi
	add	edx, r15d
	call	REALLOC@PLT
	mov	edx, DWORD PTR [rbx]
	movsx	rdi, r15d
	mov	rsi, rbp
	call	memcpy@PLT
	add	r15d, DWORD PTR [rbx]
	mov	rbx, QWORD PTR 8[rbx]
	cmp	r12, rbx
	je	.L17
.L5:
	mov	rdi, rbx
	call	get_sbuf_line@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L3
.L15:
	mov	eax, DWORD PTR ERR[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	lea	edx, 2[r15]
	movsx	r15, r15d
.L2:
	mov	ecx, DWORD PTR ERR[rip]
	xor	esi, esi
	xor	edi, edi
	call	REALLOC@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, r15
	mov	edx, 2
	call	memcpy@PLT
	mov	rsi, r14
	mov	rdi, r13
	call	delete_lines@PLT
	test	rax, rax
	js	.L15
	sub	r13, 1
	xor	eax, eax
	mov	QWORD PTR current_addr[rip], r13
	call	SPL1@PLT
	xor	edi, edi
	call	put_sbuf_line@PLT
	test	rax, rax
	je	.L8
	mov	rsi, QWORD PTR current_addr[rip]
	mov	edi, DWORD PTR UADD[rip]
	mov	rdx, rsi
	call	push_undo_stack@PLT
	test	rax, rax
	je	.L8
	mov	DWORD PTR modified[rip], 1
	xor	eax, eax
	call	SPL0@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	xor	eax, eax
	call	SPL0@PLT
	jmp	.L15
.L9:
	xor	r15d, r15d
	mov	edx, 2
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	join_lines, .-join_lines
	.comm	modified,4,4
	.comm	current_addr,8,8
	.comm	addr_last,4,4
	.comm	UADD,4,4
	.comm	ERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_main.c_join_lines.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\012\000"
	.text
	.align	2
	.global	join_lines
	.syntax unified
	.arm
	.fpu softvfp
	.type	join_lines, %function
join_lines:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L19
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, r0
	mov	r9, r1
	mov	r0, r1
	ldr	r1, [r3]
	bl	INC_MOD
	bl	get_addressed_line_node
	mov	r10, r0
	mov	r0, r8
	bl	get_addressed_line_node
	cmp	r10, r0
	beq	.L9
	mov	r4, r0
	mov	r6, #0
	ldr	r7, .L19+4
	b	.L5
.L3:
	mov	r1, #0
	ldr	r2, [r4]
	ldr	r3, [r7]
	add	r2, r6, r2
	mov	r0, r1
	bl	REALLOC
	mov	r0, r6
	ldr	r2, [r4]
	mov	r1, r5
	bl	memcpy
	ldm	r4, {r3, r4}
	cmp	r10, r4
	add	r6, r6, r3
	beq	.L18
.L5:
	mov	r0, r4
	bl	get_sbuf_line
	subs	r5, r0, #0
	bne	.L3
.L16:
	ldr	r0, [r7]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	add	r2, r6, #2
.L2:
	mov	r1, #0
	ldr	r3, [r7]
	mov	r0, r1
	bl	REALLOC
	mov	r2, #2
	ldr	r1, .L19+8
	mov	r0, r6
	bl	memcpy
	mov	r1, r9
	mov	r0, r8
	bl	delete_lines
	cmp	r0, #0
	blt	.L16
	ldr	r4, .L19+12
	sub	r8, r8, #1
	str	r8, [r4]
	bl	SPL1
	mov	r0, #0
	bl	put_sbuf_line
	cmp	r0, #0
	beq	.L8
	ldr	r2, [r4]
	ldr	r3, .L19+16
	mov	r1, r2
	ldr	r0, [r3]
	bl	push_undo_stack
	cmp	r0, #0
	beq	.L8
	mov	r2, #1
	ldr	r3, .L19+20
	str	r2, [r3]
	bl	SPL0
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	bl	SPL0
	ldr	r0, [r7]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	mov	r6, #0
	mov	r2, #2
	ldr	r7, .L19+4
	b	.L2
.L20:
	.align	2
.L19:
	.word	addr_last
	.word	ERR
	.word	.LC0
	.word	current_addr
	.word	UADD
	.word	modified
	.size	join_lines, .-join_lines
	.comm	modified,4,4
	.comm	current_addr,4,4
	.comm	addr_last,4,4
	.comm	UADD,4,4
	.comm	ERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
