	.file	"933731.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"the_stack_data/933731.c"
.LC1:
	.string	"seq!=NULL"
.LC2:
	.string	"%s:%d:alloc: %zu\n"
.LC3:
	.string	"malloc()"
	.text
	.globl	textseq_init
	.type	textseq_init, @function
textseq_init:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	lea	rcx, __PRETTY_FUNCTION__.10[rip]
	mov	edx, 68
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L2:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, 4295
	and	rax, -4096
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	sub	rax, 1
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	r8, rdx
	mov	ecx, 78
	lea	rdx, .LC0[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L3
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, rdx
	sub	rax, rcx
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, 1
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	textseq_init, .-textseq_init
	.globl	textseq_free
	.type	textseq_free, @function
textseq_free:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L8
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], 0
	jmp	.L5
.L8:
	nop
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	textseq_free, .-textseq_free
	.section	.rodata
.LC4:
	.string	"line!=(unsigned)-1"
	.align 8
.LC5:
	.string	"%s:%d:gap=%zu gaplen=%zu len=%zu\n"
	.align 8
.LC6:
	.string	"seq->gap_pos<=(seq->len+seq->gap_len)"
.LC7:
	.string	"%s:%d:Line does not exist\n"
	.text
	.globl	textseq_cursor_lineat
	.type	textseq_cursor_lineat, @function
textseq_cursor_lineat:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	cmp	QWORD PTR -24[rbp], 0
	jne	.L10
	lea	rcx, __PRETTY_FUNCTION__.9[rip]
	mov	edx, 123
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L10:
	cmp	DWORD PTR -28[rbp], -1
	jne	.L11
	lea	rcx, __PRETTY_FUNCTION__.9[rip]
	mov	edx, 124
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L11:
	cmp	DWORD PTR -28[rbp], 0
	jne	.L12
	mov	eax, 0
	jmp	.L13
.L12:
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR stderr[rip]
	sub	rsp, 8
	push	rdx
	mov	r9, rsi
	mov	r8, rcx
	mov	ecx, 132
	lea	rdx, .LC0[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 16
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, rcx
	cmp	rdx, rax
	jbe	.L14
	lea	rcx, __PRETTY_FUNCTION__.9[rip]
	mov	edx, 133
	lea	rsi, .LC0[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L14:
	mov	QWORD PTR -8[rbp], 0
	jmp	.L15
.L17:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L16
	add	DWORD PTR -12[rbp], 1
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jne	.L16
	mov	rax, QWORD PTR -8[rbp]
	add	eax, 1
	jmp	.L13
.L16:
	add	QWORD PTR -8[rbp], 1
.L15:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 32[rax]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L17
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, rcx
	cmp	rdx, rax
	jb	.L19
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 149
	lea	rdx, .LC0[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L13
.L21:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L20
	add	DWORD PTR -12[rbp], 1
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jne	.L20
	mov	rax, QWORD PTR -8[rbp]
	add	eax, 1
	jmp	.L13
.L20:
	add	QWORD PTR -8[rbp], 1
.L19:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L21
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 162
	lea	rdx, .LC0[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	textseq_cursor_lineat, .-textseq_cursor_lineat
	.globl	textseq_linelength
	.type	textseq_linelength, @function
textseq_linelength:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rdx, rax
	jbe	.L23
	mov	eax, -1
	jmp	.L24
.L23:
	mov	QWORD PTR -8[rbp], 0
	mov	eax, DWORD PTR -28[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L25
.L27:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L26
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L24
.L26:
	add	QWORD PTR -16[rbp], 1
	add	QWORD PTR -8[rbp], 1
.L25:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 32[rax]
	cmp	QWORD PTR -16[rbp], rax
	jb	.L27
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	QWORD PTR -16[rbp], rax
	jmp	.L28
.L30:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L29
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L24
.L29:
	add	QWORD PTR -16[rbp], 1
	add	QWORD PTR -8[rbp], 1
.L28:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, rdx
	cmp	QWORD PTR -16[rbp], rax
	jb	.L30
	mov	rax, QWORD PTR -8[rbp]
.L24:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	textseq_linelength, .-textseq_linelength
	.section	.rodata
	.align 8
.LC8:
	.string	"=== dump #%d ===  total length: %zu (gap:%zu len:%zu)\n"
.LC9:
	.string	"<<GAP:%zd>>"
.LC10:
	.string	"<EOF>"
	.text
	.globl	textseq_dump
	.type	textseq_dump, @function
textseq_dump:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rsi, rax
	mov	eax, DWORD PTR -28[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	rdx, rsi
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -8[rbp], 0
	jmp	.L32
.L33:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	QWORD PTR -8[rbp], 1
.L32:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 32[rax]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L33
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	je	.L34
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L34:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	jmp	.L35
.L36:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	QWORD PTR -8[rbp], 1
.L35:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, rdx
	cmp	QWORD PTR -8[rbp], rax
	jb	.L36
	lea	rdi, .LC10[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	textseq_dump, .-textseq_dump
	.section	.rodata
	.align 8
.LC11:
	.string	"%s:%d:realloc: data=%p newsize=%zu alloc=%zu\n"
.LC12:
	.string	"tmp!=NULL"
.LC13:
	.string	"realloc()"
	.align 8
.LC14:
	.string	"%s:%d:memmove: data=%p gap_post=%zu gap_len=%zu len=%zu newgaplen=%zu taillen=%zu\n"
	.align 8
.LC15:
	.string	"EXPR:seq->gap_pos+newgaplen+taillen is %zu\n"
	.align 8
.LC16:
	.string	"(seq->gap_pos+newgaplen+taillen)<=newsize"
	.text
	.globl	textseq_expand_gap
	.type	textseq_expand_gap, @function
textseq_expand_gap:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	add	DWORD PTR -60[rbp], 200
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	eax, DWORD PTR -60[rbp]
	cmp	rdx, rax
	jbe	.L38
	mov	eax, 1
	jmp	.L39
.L38:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -60[rbp]
	add	rax, rdx
	add	rax, 4095
	and	rax, -4096
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, QWORD PTR -32[rbp]
	sub	rsp, 8
	push	rdx
	mov	r9, rsi
	mov	r8, rcx
	mov	ecx, 216
	lea	rdx, .LC0[rip]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 16
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L40
	lea	rcx, __PRETTY_FUNCTION__.8[rip]
	mov	edx, 218
	lea	rsi, .LC0[rip]
	lea	rdi, .LC12[rip]
	call	__assert_fail@PLT
.L40:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L41
	lea	rdi, .LC13[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L39
.L41:
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, rcx
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	esi, 35
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 32[rax]
	mov	rax, rdx
	sub	rax, rcx
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, rdx
	sub	rax, 1
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, QWORD PTR 32[rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, QWORD PTR -24[rbp]
	push	QWORD PTR -16[rbp]
	push	QWORD PTR -8[rbp]
	push	rcx
	push	rdx
	mov	r9, rdi
	mov	r8, rsi
	mov	ecx, 232
	lea	rdx, .LC0[rip]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 32
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	cmp	QWORD PTR -32[rbp], rax
	jnb	.L42
	lea	rcx, __PRETTY_FUNCTION__.8[rip]
	mov	edx, 234
	lea	rsi, .LC0[rip]
	lea	rdi, .LC16[rip]
	call	__assert_fail@PLT
.L42:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, [rdx+rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, rax
	mov	rdi, rcx
	call	memmove@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 24[rax]
	sub	rax, 1
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR [rdx]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 32[rdx]
	add	rcx, rdx
	mov	rdx, rax
	mov	esi, 64
	mov	rdi, rcx
	call	memset@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 32[rax]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	DWORD PTR -44[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	jmp	.L43
.L45:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 90
	jle	.L44
	add	DWORD PTR -44[rbp], 1
.L44:
	add	QWORD PTR -40[rbp], 1
.L43:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 24[rax]
	cmp	QWORD PTR -40[rbp], rax
	jb	.L45
	mov	eax, 1
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	textseq_expand_gap, .-textseq_expand_gap
	.section	.rodata
	.align 8
.LC17:
	.string	"position<=(seq->len+seq->gap_len)"
	.align 8
.LC18:
	.string	"%s:%d:gappos=%zu gaplen=%zu len=%zu\n"
.LC19:
	.string	"%s:%d:FAST PATH\n"
.LC20:
	.string	"%s:%d:FAILURE\n"
	.align 8
.LC21:
	.string	"%s:%d:gappos:%zd gaplen:%zd position:%d\n"
.LC22:
	.string	"%s:%d:UP\n"
	.align 8
.LC23:
	.string	"%s:%d:data:%p datalen:%#zx gaplen:%#zx src:%p dst:%p len:%#zx\n"
.LC24:
	.string	"src>=seq->data"
	.align 8
.LC25:
	.string	"src<(seq->data+seq->len+seq->gap_len)"
	.align 8
.LC26:
	.string	"src+len<=(seq->data+seq->len+seq->gap_len)"
.LC27:
	.string	"dst>=seq->data"
	.align 8
.LC28:
	.string	"dst<(seq->data+seq->len+seq->gap_len)"
	.align 8
.LC29:
	.string	"dst+len<=(seq->data+seq->len+seq->gap_len)"
.LC30:
	.string	"%s:%d:DOWN\n"
.LC31:
	.string	"seq->gap_pos<seq->alloc"
	.align 8
.LC32:
	.string	"(seq->gap_pos+seq->gap_len-1)<=seq->alloc"
.LC33:
	.string	"dst!=src"
	.align 8
.LC34:
	.string	"%s:%d:gap_pos=%zu pos=%zu gaplen=%zu len=%zu\n"
.LC35:
	.string	"%s:%d:PART0: \"%s\"\n"
.LC36:
	.string	"EXPR:seq->gap_pos is %zu\n"
.LC37:
	.string	"EXPR:seq->gap_len is %zu\n"
.LC38:
	.string	"EXPR:seq->alloc is %zu\n"
.LC39:
	.string	"EXPR:seq->len is %zu\n"
.LC40:
	.string	"%s:%d:PART1: \"%s\"\n"
	.text
	.globl	textseq_move_gap
	.type	textseq_move_gap, @function
textseq_move_gap:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	cmp	QWORD PTR -40[rbp], 0
	jne	.L47
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 292
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L47:
	mov	edx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, rcx
	cmp	rdx, rax
	jbe	.L48
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 293
	lea	rsi, .LC0[rip]
	lea	rdi, .LC17[rip]
	call	__assert_fail@PLT
.L48:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR stderr[rip]
	sub	rsp, 8
	push	rdx
	mov	r9, rsi
	mov	r8, rcx
	mov	ecx, 295
	lea	rdx, .LC0[rip]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 16
	mov	edx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 32[rax]
	cmp	rdx, rax
	je	.L49
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	jne	.L50
.L49:
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 299
	lea	rdx, .LC0[rip]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L51
.L50:
	mov	edx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, rcx
	cmp	rdx, rax
	jbe	.L52
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 304
	lea	rdx, .LC0[rip]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L51
.L52:
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR stderr[rip]
	sub	rsp, 8
	mov	edx, DWORD PTR -44[rbp]
	push	rdx
	mov	r9, rsi
	mov	r8, rcx
	mov	ecx, 308
	lea	rdx, .LC0[rip]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 16
	mov	edx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 32[rax]
	cmp	rdx, rax
	ja	.L53
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 312
	lea	rdx, .LC0[rip]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -44[rbp]
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	ecx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, rcx
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	edx, DWORD PTR -44[rbp]
	sub	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	push	QWORD PTR -8[rbp]
	push	QWORD PTR -16[rbp]
	push	QWORD PTR -24[rbp]
	push	rdx
	mov	r9, rsi
	mov	r8, rcx
	mov	ecx, 316
	lea	rdx, .LC0[rip]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 32
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -24[rbp], rax
	jnb	.L54
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 316
	lea	rsi, .LC0[rip]
	lea	rdi, .LC24[rip]
	call	__assert_fail@PLT
.L54:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, rcx
	add	rax, rdx
	cmp	QWORD PTR -24[rbp], rax
	jb	.L55
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 316
	lea	rsi, .LC0[rip]
	lea	rdi, .LC25[rip]
	call	__assert_fail@PLT
.L55:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, rsi
	add	rax, rcx
	cmp	rdx, rax
	jbe	.L56
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 316
	lea	rsi, .LC0[rip]
	lea	rdi, .LC26[rip]
	call	__assert_fail@PLT
.L56:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -16[rbp], rax
	jnb	.L57
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 316
	lea	rsi, .LC0[rip]
	lea	rdi, .LC27[rip]
	call	__assert_fail@PLT
.L57:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, rcx
	add	rax, rdx
	cmp	QWORD PTR -16[rbp], rax
	jb	.L58
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 316
	lea	rsi, .LC0[rip]
	lea	rdi, .LC28[rip]
	call	__assert_fail@PLT
.L58:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, rsi
	add	rax, rcx
	cmp	rdx, rax
	jbe	.L59
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 316
	lea	rsi, .LC0[rip]
	lea	rdi, .LC29[rip]
	call	__assert_fail@PLT
.L53:
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 319
	lea	rdx, .LC0[rip]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, rcx
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 32[rax]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	edx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 32[rax]
	mov	rax, rdx
	sub	rax, rcx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	push	QWORD PTR -8[rbp]
	push	QWORD PTR -16[rbp]
	push	QWORD PTR -24[rbp]
	push	rdx
	mov	r9, rsi
	mov	r8, rcx
	mov	ecx, 323
	lea	rdx, .LC0[rip]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 32
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -24[rbp], rax
	jnb	.L60
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 323
	lea	rsi, .LC0[rip]
	lea	rdi, .LC24[rip]
	call	__assert_fail@PLT
.L60:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, rcx
	add	rax, rdx
	cmp	QWORD PTR -24[rbp], rax
	jb	.L61
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 323
	lea	rsi, .LC0[rip]
	lea	rdi, .LC25[rip]
	call	__assert_fail@PLT
.L61:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, rsi
	add	rax, rcx
	cmp	rdx, rax
	jbe	.L62
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 323
	lea	rsi, .LC0[rip]
	lea	rdi, .LC26[rip]
	call	__assert_fail@PLT
.L62:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -16[rbp], rax
	jnb	.L63
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 323
	lea	rsi, .LC0[rip]
	lea	rdi, .LC27[rip]
	call	__assert_fail@PLT
.L63:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, rcx
	add	rax, rdx
	cmp	QWORD PTR -16[rbp], rax
	jb	.L64
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 323
	lea	rsi, .LC0[rip]
	lea	rdi, .LC28[rip]
	call	__assert_fail@PLT
.L64:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, rsi
	add	rax, rcx
	cmp	rdx, rax
	jbe	.L59
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 323
	lea	rsi, .LC0[rip]
	lea	rdi, .LC29[rip]
	call	__assert_fail@PLT
.L59:
	mov	edx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 24[rax]
	cmp	rdx, rax
	jb	.L65
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 327
	lea	rsi, .LC0[rip]
	lea	rdi, .LC31[rip]
	call	__assert_fail@PLT
.L65:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, rdx
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 24[rax]
	cmp	rdx, rax
	jbe	.L66
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 328
	lea	rsi, .LC0[rip]
	lea	rdi, .LC32[rip]
	call	__assert_fail@PLT
.L66:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jne	.L67
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 329
	lea	rsi, .LC0[rip]
	lea	rdi, .LC33[rip]
	call	__assert_fail@PLT
.L67:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR [rdx]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 32[rdx]
	add	rcx, rdx
	mov	rdx, rax
	mov	esi, 38
	mov	rdi, rcx
	call	memset@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 32[rax]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	edi, DWORD PTR -44[rbp]
	push	rcx
	push	rdx
	mov	r9d, edi
	mov	r8, rsi
	mov	ecx, 338
	lea	rdx, .LC0[rip]
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 16
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	r8, rdx
	mov	ecx, 340
	lea	rdx, .LC0[rip]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC38[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC39[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, rcx
	add	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	r8, rdx
	mov	ecx, 345
	lea	rdx, .LC0[rip]
	lea	rsi, .LC40[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
.L51:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	textseq_move_gap, .-textseq_move_gap
	.section	.rodata
	.align 8
.LC41:
	.string	"%s:%d:Top half is smaller. move DOWN\n"
.LC42:
	.string	"seq->gap_pos==0"
	.align 8
.LC43:
	.string	"%s:%d:bottom half is smaller, move data UP (and gap to end)\n"
.LC44:
	.string	"seq->gap_pos==seq->len"
	.text
	.globl	textseq_flattened
	.type	textseq_flattened, @function
textseq_flattened:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rdx, rax
	jnb	.L69
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 354
	lea	rdx, .LC0[rip]
	lea	rsi, .LC41[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	textseq_move_gap
	cmp	QWORD PTR -16[rbp], 0
	je	.L70
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
.L70:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	je	.L71
	lea	rcx, __PRETTY_FUNCTION__.6[rip]
	mov	edx, 358
	lea	rsi, .LC0[rip]
	lea	rdi, .LC42[rip]
	call	__assert_fail@PLT
.L71:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, rdx
	jmp	.L72
.L69:
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 362
	lea	rdx, .LC0[rip]
	lea	rsi, .LC43[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	textseq_cursor_eof@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	textseq_move_gap
	cmp	QWORD PTR -16[rbp], 0
	je	.L73
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
.L73:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rdx, rax
	je	.L74
	lea	rcx, __PRETTY_FUNCTION__.6[rip]
	mov	edx, 366
	lea	rsi, .LC0[rip]
	lea	rdi, .LC44[rip]
	call	__assert_fail@PLT
.L74:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
.L72:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	textseq_flattened, .-textseq_flattened
	.section	.rodata
.LC45:
	.string	"str!=NULL"
	.align 8
.LC46:
	.string	"(seq->gap_pos+len)<=seq->alloc"
	.text
	.globl	textseq_insert
	.type	textseq_insert, @function
textseq_insert:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	cmp	QWORD PTR -8[rbp], 0
	jne	.L76
	lea	rcx, __PRETTY_FUNCTION__.5[rip]
	mov	edx, 373
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L76:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L77
	lea	rcx, __PRETTY_FUNCTION__.5[rip]
	mov	edx, 374
	lea	rsi, .LC0[rip]
	lea	rdi, .LC45[rip]
	call	__assert_fail@PLT
.L77:
	cmp	QWORD PTR -32[rbp], -1
	jne	.L78
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -32[rbp], rax
.L78:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	textseq_move_gap
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	cmp	QWORD PTR -32[rbp], rax
	jbe	.L79
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	textseq_expand_gap
	test	eax, eax
	jne	.L79
	call	abort@PLT
.L79:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	cmp	rdx, rax
	jbe	.L80
	lea	rcx, __PRETTY_FUNCTION__.5[rip]
	mov	edx, 386
	lea	rsi, .LC0[rip]
	lea	rdi, .LC46[rip]
	call	__assert_fail@PLT
.L80:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	lea	rcx, [rdx+rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	sub	rax, QWORD PTR -32[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	je	.L81
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L81:
	mov	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	textseq_insert, .-textseq_insert
	.section	.rodata
.LC47:
	.string	"len<=seq->len-position"
.LC48:
	.string	"seq->gap_pos<=seq->gap_len"
	.text
	.globl	textseq_delete
	.type	textseq_delete, @function
textseq_delete:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	cmp	QWORD PTR -8[rbp], 0
	jne	.L84
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 403
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L84:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	textseq_move_gap
	cmp	QWORD PTR -24[rbp], -1
	jne	.L85
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	sub	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -24[rbp], rax
.L85:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	sub	rax, QWORD PTR -16[rbp]
	cmp	QWORD PTR -24[rbp], rax
	jbe	.L86
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 409
	lea	rsi, .LC0[rip]
	lea	rdi, .LC47[rip]
	call	__assert_fail@PLT
.L86:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	sub	rax, QWORD PTR -24[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	cmp	rdx, rax
	jbe	.L87
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 412
	lea	rsi, .LC0[rip]
	lea	rdi, .LC48[rip]
	call	__assert_fail@PLT
.L87:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	textseq_delete, .-textseq_delete
	.globl	textseq_clear
	.type	textseq_clear, @function
textseq_clear:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	jne	.L90
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 420
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L90:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 32[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR [rdx]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 32[rdx]
	add	rcx, rdx
	mov	rdx, rax
	mov	esi, 94
	mov	rdi, rcx
	call	memset@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	textseq_clear, .-textseq_clear
	.section	.rodata
	.align 8
.LC49:
	.string	"%s:%d:cursor %d exceeds range 0..%d\n"
	.text
	.globl	textseq_getch
	.type	textseq_getch, @function
textseq_getch:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	cmp	QWORD PTR -8[rbp], 0
	jne	.L93
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 438
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L93:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rdx, rax
	jb	.L94
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rcx, -1[rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -12[rbp]
	mov	r9, rcx
	mov	r8d, edx
	mov	ecx, 440
	lea	rdx, .LC0[rip]
	lea	rsi, .LC49[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L95
.L94:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	cmp	rdx, rax
	jnb	.L96
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	jmp	.L95
.L96:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	ecx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rax, rcx
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
.L95:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	textseq_getch, .-textseq_getch
	.section	.rodata
	.align 8
.LC50:
	.ascii	".c - Clears text editor buffer\n.f - Formats text editor buf"
	.ascii	"fer with indents on paragraphs (preserves line breaks)\n.sp "
	.ascii	"- spell checks text editor buffer\n.s(?) - searches text edi"
	.ascii	"tor buffer for strings matching query (possibly moves to the"
	.ascii	" string?)\n.r <parameter1> <parameter2> - replaces 1 occuran"
	.ascii	"ce of parameter1 string with parameter2 string.\n.rf - repla"
	.ascii	"ces all occurances of parameter1 string with parameter2 stri"
	.ascii	"ng.\n.i <parameter1> <parameter2> - searches for parameter1 "
	.ascii	"and inserts parameter2 before it.\n.d <parameter1> - deletes"
	.ascii	" the string specified in parameter 1\n.n - turns on line num"
	.ascii	"bers\n.dl# - deletes a line specified by number\n.l# - skips"
	.ascii	" to the line specified by number\n"
	.string	".p - prints contents\n.q - exits without saving changes\n.qs - saves changes and exits text editor\n.a<#> - Appends a new line at #. If no # is specified, adds new line to end.\n.h - help\n.t <line1> <line2> - copy/pastes an existing line to the specified line."
	.text
	.globl	editor_help
	.type	editor_help, @function
editor_help:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC50[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	editor_help, .-editor_help
	.globl	editor_init
	.type	editor_init, @function
editor_init:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 80
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	textseq_init
	test	eax, eax
	jne	.L99
	mov	eax, 0
	jmp	.L100
.L99:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 56[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 64[rax], rdx
	mov	eax, 1
.L100:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	editor_init, .-editor_init
	.section	.rodata
.LC51:
	.string	"Enter .h for help:"
	.text
	.globl	editor_start
	.type	editor_start, @function
editor_start:
.LFB23:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	editor_init
	test	eax, eax
	jne	.L102
	mov	eax, 0
	jmp	.L103
.L102:
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 76[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 72[rax], 0
	lea	rdi, .LC51[rip]
	call	puts@PLT
	mov	eax, 1
.L103:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	editor_start, .-editor_start
	.section	.rodata
.LC52:
	.string	"ei!=NULL"
.LC53:
	.string	"Unknown command '.%c'\n"
	.text
	.globl	editor_line
	.type	editor_line, @function
editor_line:
.LFB24:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L105
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 512
	lea	rsi, .LC0[rip]
	lea	rdi, .LC52[rip]
	call	__assert_fail@PLT
.L105:
	cmp	QWORD PTR -48[rbp], 0
	jne	.L106
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 513
	lea	rsi, .LC0[rip]
	lea	rdi, .LC45[rip]
	call	__assert_fail@PLT
.L106:
	cmp	QWORD PTR -48[rbp], 0
	jne	.L107
	mov	eax, 0
	jmp	.L122
.L107:
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	jne	.L109
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 97
	cmp	eax, 16
	ja	.L110
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L112[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L112[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L112:
	.long	.L116-.L112
	.long	.L110-.L112
	.long	.L115-.L112
	.long	.L110-.L112
	.long	.L110-.L112
	.long	.L110-.L112
	.long	.L110-.L112
	.long	.L114-.L112
	.long	.L110-.L112
	.long	.L110-.L112
	.long	.L110-.L112
	.long	.L110-.L112
	.long	.L110-.L112
	.long	.L110-.L112
	.long	.L110-.L112
	.long	.L113-.L112
	.long	.L111-.L112
	.text
.L116:
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, 2[rax]
	lea	rax, -24[rbp]
	mov	edx, 10
	mov	rsi, rax
	mov	rdi, rcx
	call	strtol@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -24[rbp]
	cmp	rdx, rax
	jne	.L117
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 76[rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 72[rax], 0
	jmp	.L120
.L117:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	textseq_cursor_lineat
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 76[rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 72[rax], 1
	jmp	.L120
.L115:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	textseq_clear
	jmp	.L120
.L113:
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	textseq_flattened
	mov	rdi, rax
	call	puts@PLT
	jmp	.L120
.L111:
	mov	eax, 0
	jmp	.L122
.L110:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC53[rip]
	mov	eax, 0
	call	printf@PLT
.L114:
	call	editor_help
	jmp	.L120
.L109:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 72[rax]
	test	eax, eax
	je	.L121
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 76[rax]
	mov	esi, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rcx, -1
	mov	rdi, rax
	call	textseq_insert
	jmp	.L120
.L121:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	textseq_cursor_eof@PLT
	movsx	rsi, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rcx, -1
	mov	rdi, rax
	call	textseq_insert
.L120:
	mov	eax, 1
.L122:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L123
	call	__stack_chk_fail@PLT
.L123:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	editor_line, .-editor_line
	.section	.rodata
.LC54:
	.string	"%s:%d:Adding newline at %d\n"
.LC55:
	.string	"\n"
	.text
	.globl	editor_fix_nl
	.type	editor_fix_nl, @function
editor_fix_nl:
.LFB25:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	textseq_cursor_charateof@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	je	.L126
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	textseq_getch
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	js	.L126
	cmp	DWORD PTR -4[rbp], 10
	je	.L126
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -8[rbp]
	mov	r8d, edx
	mov	ecx, 569
	lea	rdx, .LC0[rip]
	lea	rsi, .LC54[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	esi, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, 1
	lea	rdx, .LC55[rip]
	mov	rdi, rax
	call	textseq_insert
.L126:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	editor_fix_nl, .-editor_fix_nl
	.globl	testseq_test_str
	.section	.rodata
	.align 8
.LC56:
	.string	"Alas, poor Yorick!--I knew him, Horatio;\na fellow of infinite jest, of most excellent fancy:\nhe hath borne me on his back a thousand times;\nand now, how abhorred in my imagination it is!\nmy gorge rises at it."
	.section	.data.rel.local,"aw"
	.align 8
	.type	testseq_test_str, @object
	.size	testseq_test_str, 8
testseq_test_str:
	.quad	.LC56
	.section	.rodata
.LC57:
	.string	"len=%zd\n@%s@\n"
	.text
	.globl	editor_test
	.type	editor_test, @function
editor_test:
.LFB26:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 624
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR testseq_test_str[rip]
	lea	rax, -608[rbp]
	mov	rcx, rdx
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	editor_start
	lea	rax, -608[rbp]
	mov	rdi, rax
	call	editor_fix_nl
	jmp	.L128
.L130:
	lea	rdx, -528[rbp]
	lea	rax, -608[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	editor_line
	test	eax, eax
	je	.L132
.L128:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L130
	jmp	.L129
.L132:
	nop
.L129:
	lea	rdx, -624[rbp]
	lea	rax, -608[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	textseq_flattened
	mov	QWORD PTR -616[rbp], rax
	mov	rax, QWORD PTR -624[rbp]
	mov	rdx, QWORD PTR -616[rbp]
	mov	rsi, rax
	lea	rdi, .LC57[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -608[rbp]
	mov	rdi, rax
	call	textseq_free
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L131
	call	__stack_chk_fail@PLT
.L131:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	editor_test, .-editor_test
	.section	.rodata
.LC58:
	.string	"cursor: %d (line=%d)\n"
.LC59:
	.string	"cannot find line %d\n"
	.text
	.globl	textseq_test_cursor_at_line
	.type	textseq_test_cursor_at_line, @function
textseq_test_cursor_at_line:
.LFB27:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR stderr[rip]
	sub	rsp, 8
	push	rdx
	mov	r9, rsi
	mov	r8, rcx
	mov	ecx, 604
	lea	rdx, .LC0[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 16
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	textseq_cursor_lineat
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC58[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -4[rbp], 0
	jns	.L134
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC59[rip]
	mov	eax, 0
	call	printf@PLT
	call	abort@PLT
.L134:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE27:
	.size	textseq_test_cursor_at_line, .-textseq_test_cursor_at_line
	.section	.rodata
.LC60:
	.string	"cursor: %d (EOF)\n"
.LC61:
	.string	"cursor>=0"
	.text
	.globl	textseq_test_cursor_at_eof
	.type	textseq_test_cursor_at_eof, @function
textseq_test_cursor_at_eof:
.LFB28:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR stderr[rip]
	sub	rsp, 8
	push	rdx
	mov	r9, rsi
	mov	r8, rcx
	mov	ecx, 617
	lea	rdx, .LC0[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 16
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	textseq_cursor_eof@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC60[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -4[rbp], 0
	jns	.L137
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 621
	lea	rsi, .LC0[rip]
	lea	rdi, .LC61[rip]
	call	__assert_fail@PLT
.L137:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE28:
	.size	textseq_test_cursor_at_eof, .-textseq_test_cursor_at_eof
	.section	.rodata
.LC62:
	.string	"[zero alpha]\n"
.LC63:
	.string	"line length : %d\n"
.LC64:
	.string	"[one beta]\n"
	.text
	.globl	textseq_test
	.type	textseq_test, @function
textseq_test:
.LFB29:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR testseq_test_str[rip]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	textseq_init
	test	eax, eax
	jne	.L140
	call	abort@PLT
.L140:
	lea	rax, -64[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	textseq_test_cursor_at_line
	mov	DWORD PTR -84[rbp], eax
	mov	edx, DWORD PTR -84[rbp]
	lea	rax, -64[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	textseq_move_gap
	lea	rax, -64[rbp]
	mov	esi, 636
	mov	rdi, rax
	call	textseq_dump
	lea	rax, -64[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	textseq_test_cursor_at_line
	mov	DWORD PTR -84[rbp], eax
	mov	edx, DWORD PTR -84[rbp]
	lea	rax, -64[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	textseq_move_gap
	lea	rax, -64[rbp]
	mov	esi, 640
	mov	rdi, rax
	call	textseq_dump
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	textseq_test_cursor_at_eof
	mov	DWORD PTR -84[rbp], eax
	mov	edx, DWORD PTR -84[rbp]
	lea	rax, -64[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	textseq_move_gap
	lea	rax, -64[rbp]
	mov	esi, 644
	mov	rdi, rax
	call	textseq_dump
	lea	rax, -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	textseq_test_cursor_at_line
	mov	DWORD PTR -84[rbp], eax
	mov	edx, DWORD PTR -84[rbp]
	lea	rax, -64[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	textseq_move_gap
	lea	rax, -64[rbp]
	mov	esi, 648
	mov	rdi, rax
	call	textseq_dump
	lea	rax, -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	textseq_test_cursor_at_line
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	movsx	rsi, eax
	lea	rax, -64[rbp]
	mov	rcx, -1
	lea	rdx, .LC62[rip]
	mov	rdi, rax
	call	textseq_insert
	lea	rax, -64[rbp]
	mov	esi, 652
	mov	rdi, rax
	call	textseq_dump
	lea	rax, -64[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	textseq_test_cursor_at_line
	mov	DWORD PTR -84[rbp], eax
	mov	edx, DWORD PTR -84[rbp]
	lea	rax, -64[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	textseq_linelength
	mov	esi, eax
	lea	rdi, .LC63[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -84[rbp]
	movsx	rsi, eax
	lea	rax, -64[rbp]
	mov	rcx, -1
	lea	rdx, .LC64[rip]
	mov	rdi, rax
	call	textseq_insert
	lea	rax, -64[rbp]
	mov	esi, 657
	mov	rdi, rax
	call	textseq_dump
	lea	rax, -64[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	textseq_test_cursor_at_line
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	movsx	rcx, eax
	lea	rax, -64[rbp]
	mov	edx, 19
	mov	rsi, rcx
	mov	rdi, rax
	call	textseq_delete
	lea	rax, -64[rbp]
	mov	esi, 661
	mov	rdi, rax
	call	textseq_dump
	lea	rdx, -80[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	textseq_flattened
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC57[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	textseq_free
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L141
	call	__stack_chk_fail@PLT
.L141:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE29:
	.size	textseq_test, .-textseq_test
	.globl	main
	.type	main, @function
main:
.LFB30:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	textseq_test
	call	editor_test
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE30:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.10, @object
	.size	__PRETTY_FUNCTION__.10, 13
__PRETTY_FUNCTION__.10:
	.string	"textseq_init"
	.align 16
	.type	__PRETTY_FUNCTION__.9, @object
	.size	__PRETTY_FUNCTION__.9, 22
__PRETTY_FUNCTION__.9:
	.string	"textseq_cursor_lineat"
	.align 16
	.type	__PRETTY_FUNCTION__.8, @object
	.size	__PRETTY_FUNCTION__.8, 19
__PRETTY_FUNCTION__.8:
	.string	"textseq_expand_gap"
	.align 16
	.type	__PRETTY_FUNCTION__.7, @object
	.size	__PRETTY_FUNCTION__.7, 17
__PRETTY_FUNCTION__.7:
	.string	"textseq_move_gap"
	.align 16
	.type	__PRETTY_FUNCTION__.6, @object
	.size	__PRETTY_FUNCTION__.6, 18
__PRETTY_FUNCTION__.6:
	.string	"textseq_flattened"
	.align 8
	.type	__PRETTY_FUNCTION__.5, @object
	.size	__PRETTY_FUNCTION__.5, 15
__PRETTY_FUNCTION__.5:
	.string	"textseq_insert"
	.align 8
	.type	__PRETTY_FUNCTION__.4, @object
	.size	__PRETTY_FUNCTION__.4, 15
__PRETTY_FUNCTION__.4:
	.string	"textseq_delete"
	.align 8
	.type	__PRETTY_FUNCTION__.3, @object
	.size	__PRETTY_FUNCTION__.3, 14
__PRETTY_FUNCTION__.3:
	.string	"textseq_clear"
	.align 8
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 14
__PRETTY_FUNCTION__.2:
	.string	"textseq_getch"
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 12
__PRETTY_FUNCTION__.1:
	.string	"editor_line"
	.align 16
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 27
__PRETTY_FUNCTION__.0:
	.string	"textseq_test_cursor_at_eof"
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"933731.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/933731.c\000"
	.align	2
.LC1:
	.ascii	"seq!=NULL\000"
	.align	2
.LC2:
	.ascii	"%s:%d:alloc: %zu\012\000"
	.align	2
.LC3:
	.ascii	"malloc()\000"
	.text
	.align	2
	.global	textseq_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	textseq_init, %function
textseq_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L5
	mov	r2, #68
	ldr	r1, .L5+4
	ldr	r0, .L5+8
	bl	__assert_fail
.L2:
	ldr	r0, [fp, #-12]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	add	r3, r3, #4288
	add	r3, r3, #7
	bic	r3, r3, #4080
	bic	r3, r3, #15
	ldr	r2, [fp, #-8]
	str	r3, [r2, #12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	lsl	r2, r3, #4
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	sub	r3, r3, #1
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L5+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	str	r3, [sp]
	mov	r3, #78
	ldr	r2, .L5+4
	ldr	r1, .L5+16
	bl	fprintf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L5+20
	bl	perror
	mov	r3, #0
	b	.L4
.L3:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	sub	r3, r2, r3
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-8]
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-12]
	bl	memcpy
	mov	r3, #1
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	__PRETTY_FUNCTION__.5320
	.word	.LC0
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	.LC3
	.size	textseq_init, .-textseq_init
	.align	2
	.global	textseq_free
	.syntax unified
	.arm
	.fpu softvfp
	.type	textseq_free, %function
textseq_free:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	b	.L7
.L10:
	nop
.L7:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	textseq_free, .-textseq_free
	.section	.rodata
	.align	2
.LC4:
	.ascii	"line!=(unsigned)-1\000"
	.align	2
.LC5:
	.ascii	"%s:%d:gap=%zu gaplen=%zu len=%zu\012\000"
	.align	2
.LC6:
	.ascii	"seq->gap_pos<=(seq->len+seq->gap_len)\000"
	.align	2
.LC7:
	.ascii	"%s:%d:Line does not exist\012\000"
	.text
	.align	2
	.global	textseq_cursor_lineat
	.syntax unified
	.arm
	.fpu softvfp
	.type	textseq_cursor_lineat, %function
textseq_cursor_lineat:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L24
	mov	r2, #123
	ldr	r1, .L24+4
	ldr	r0, .L24+8
	bl	__assert_fail
.L12:
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L13
	ldr	r3, .L24
	mov	r2, #124
	ldr	r1, .L24+4
	ldr	r0, .L24+12
	bl	__assert_fail
.L13:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L14
	mov	r3, #0
	b	.L15
.L14:
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L24+16
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-16]
	ldr	r2, [r2, #20]
	ldr	r1, [fp, #-16]
	ldr	r1, [r1, #4]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #132
	ldr	r2, .L24+4
	ldr	r1, .L24+20
	bl	fprintf
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	add	r3, r1, r3
	cmp	r2, r3
	bls	.L16
	ldr	r3, .L24
	mov	r2, #133
	ldr	r1, .L24+4
	ldr	r0, .L24+24
	bl	__assert_fail
.L16:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L17
.L19:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L18
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bne	.L18
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	b	.L15
.L18:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L17:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bcc	.L19
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	add	r3, r1, r3
	cmp	r2, r3
	bcc	.L21
	ldr	r3, .L24+16
	ldr	r0, [r3]
	mov	r3, #149
	ldr	r2, .L24+4
	ldr	r1, .L24+28
	bl	fprintf
	mvn	r3, #0
	b	.L15
.L23:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L22
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bne	.L22
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	b	.L15
.L22:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L21:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bcc	.L23
	ldr	r3, .L24+16
	ldr	r0, [r3]
	mov	r3, #162
	ldr	r2, .L24+4
	ldr	r1, .L24+28
	bl	fprintf
	mvn	r3, #0
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	__PRETTY_FUNCTION__.5343
	.word	.LC0
	.word	.LC1
	.word	.LC4
	.word	stderr
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	textseq_cursor_lineat, .-textseq_cursor_lineat
	.align	2
	.global	textseq_linelength
	.syntax unified
	.arm
	.fpu softvfp
	.type	textseq_linelength, %function
textseq_linelength:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bls	.L27
	mvn	r3, #0
	b	.L28
.L27:
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-12]
	b	.L29
.L31:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L30
	ldr	r3, [fp, #-8]
	b	.L28
.L30:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L29:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bcc	.L31
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	b	.L32
.L34:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L33
	ldr	r3, [fp, #-8]
	b	.L28
.L33:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L32:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bcc	.L34
	ldr	r3, [fp, #-8]
.L28:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	textseq_linelength, .-textseq_linelength
	.section	.rodata
	.align	2
.LC8:
	.ascii	"=== dump #%d ===  total length: %zu (gap:%zu len:%z"
	.ascii	"u)\012\000"
	.align	2
.LC9:
	.ascii	"<<GAP:%zd>>\000"
	.align	2
.LC10:
	.ascii	"<EOF>\000"
	.text
	.align	2
	.global	textseq_dump
	.syntax unified
	.arm
	.fpu softvfp
	.type	textseq_dump, %function
textseq_dump:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, #16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, [fp, #-20]
	ldr	r0, .L41
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L36
.L37:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L36:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcc	.L37
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	beq	.L38
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	mov	r1, r3
	ldr	r0, .L41+4
	bl	printf
.L38:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	b	.L39
.L40:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L39:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcc	.L40
	ldr	r0, .L41+8
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	textseq_dump, .-textseq_dump
	.section	.rodata
	.align	2
.LC11:
	.ascii	"%s:%d:realloc: data=%p newsize=%zu alloc=%zu\012\000"
	.align	2
.LC12:
	.ascii	"tmp!=NULL\000"
	.align	2
.LC13:
	.ascii	"realloc()\000"
	.align	2
.LC14:
	.ascii	"%s:%d:memmove: data=%p gap_post=%zu gap_len=%zu len"
	.ascii	"=%zu newgaplen=%zu taillen=%zu\012\000"
	.align	2
.LC15:
	.ascii	"EXPR:seq->gap_pos+newgaplen+taillen is %zu\012\000"
	.align	2
.LC16:
	.ascii	"(seq->gap_pos+newgaplen+taillen)<=newsize\000"
	.text
	.align	2
	.global	textseq_expand_gap
	.syntax unified
	.arm
	.fpu softvfp
	.type	textseq_expand_gap, %function
textseq_expand_gap:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-36]
	add	r3, r3, #200
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bcs	.L44
	mov	r3, #1
	b	.L45
.L44:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	add	r3, r3, #4080
	add	r3, r3, #15
	bic	r3, r3, #4080
	bic	r3, r3, #15
	str	r3, [fp, #-20]
	ldr	r3, .L52
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	ldr	r2, [r2, #12]
	str	r2, [sp, #8]
	ldr	r2, [fp, #-20]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #216
	ldr	r2, .L52+4
	ldr	r1, .L52+8
	bl	fprintf
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	realloc
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L46
	ldr	r3, .L52+12
	mov	r2, #218
	ldr	r1, .L52+4
	ldr	r0, .L52+16
	bl	__assert_fail
.L46:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L47
	ldr	r0, .L52+20
	bl	perror
	mov	r3, #0
	b	.L45
.L47:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-16]
	add	r0, r2, r3
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-20]
	sub	r3, r2, r3
	mov	r2, r3
	mov	r1, #35
	bl	memset
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-20]
	sub	r3, r2, r3
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, .L52
	ldr	ip, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-32]
	ldr	r2, [r2, #20]
	ldr	r1, [fp, #-32]
	ldr	r1, [r1, #4]
	ldr	r0, [fp, #-12]
	str	r0, [sp, #20]
	ldr	r0, [fp, #-8]
	str	r0, [sp, #16]
	str	r1, [sp, #12]
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-16]
	str	r3, [sp]
	mov	r3, #232
	ldr	r2, .L52+4
	ldr	r1, .L52+24
	mov	r0, ip
	bl	fprintf
	ldr	r3, .L52
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L52+28
	bl	fprintf
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bcs	.L48
	ldr	r3, .L52+12
	mov	r2, #234
	ldr	r1, .L52+4
	ldr	r0, .L52+32
	bl	__assert_fail
.L48:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r0, r2, r3
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #20]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	mov	r1, r3
	bl	memmove
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #12]
	sub	r3, r3, #1
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	add	r0, r2, r3
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #20]
	mov	r2, r3
	mov	r1, #64
	bl	memset
	ldr	r3, [fp, #-32]
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L49
.L51:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #90
	bls	.L50
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L50:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L49:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bcc	.L51
	mov	r3, #1
.L45:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	stderr
	.word	.LC0
	.word	.LC11
	.word	__PRETTY_FUNCTION__.5381
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	textseq_expand_gap, .-textseq_expand_gap
	.section	.rodata
	.align	2
.LC17:
	.ascii	"position<=(seq->len+seq->gap_len)\000"
	.align	2
.LC18:
	.ascii	"%s:%d:gappos=%zu gaplen=%zu len=%zu\012\000"
	.align	2
.LC19:
	.ascii	"%s:%d:FAST PATH\012\000"
	.align	2
.LC20:
	.ascii	"%s:%d:FAILURE\012\000"
	.align	2
.LC21:
	.ascii	"%s:%d:gappos:%zd gaplen:%zd position:%d\012\000"
	.align	2
.LC22:
	.ascii	"%s:%d:UP\012\000"
	.align	2
.LC23:
	.ascii	"%s:%d:data:%p datalen:%#zx gaplen:%#zx src:%p dst:%"
	.ascii	"p len:%#zx\012\000"
	.align	2
.LC24:
	.ascii	"src>=seq->data\000"
	.align	2
.LC25:
	.ascii	"src<(seq->data+seq->len+seq->gap_len)\000"
	.align	2
.LC26:
	.ascii	"src+len<=(seq->data+seq->len+seq->gap_len)\000"
	.align	2
.LC27:
	.ascii	"dst>=seq->data\000"
	.align	2
.LC28:
	.ascii	"dst<(seq->data+seq->len+seq->gap_len)\000"
	.align	2
.LC29:
	.ascii	"dst+len<=(seq->data+seq->len+seq->gap_len)\000"
	.align	2
.LC30:
	.ascii	"%s:%d:DOWN\012\000"
	.align	2
.LC31:
	.ascii	"seq->gap_pos<seq->alloc\000"
	.align	2
.LC32:
	.ascii	"(seq->gap_pos+seq->gap_len-1)<=seq->alloc\000"
	.align	2
.LC33:
	.ascii	"dst!=src\000"
	.align	2
.LC34:
	.ascii	"%s:%d:gap_pos=%zu pos=%zu gaplen=%zu len=%zu\012\000"
	.align	2
.LC35:
	.ascii	"%s:%d:PART0: \"%s\"\012\000"
	.align	2
.LC36:
	.ascii	"EXPR:seq->gap_pos is %zu\012\000"
	.align	2
.LC37:
	.ascii	"EXPR:seq->gap_len is %zu\012\000"
	.align	2
.LC38:
	.ascii	"EXPR:seq->alloc is %zu\012\000"
	.align	2
.LC39:
	.ascii	"EXPR:seq->len is %zu\012\000"
	.align	2
.LC40:
	.ascii	"%s:%d:PART1: \"%s\"\012\000"
	.text
	.align	2
	.global	textseq_move_gap
	.syntax unified
	.arm
	.fpu softvfp
	.type	textseq_move_gap, %function
textseq_move_gap:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L55
	ldr	r3, .L76
	mov	r2, #292
	ldr	r1, .L76+4
	ldr	r0, .L76+8
	bl	__assert_fail
.L55:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bls	.L56
	ldr	r3, .L76
	ldr	r2, .L76+12
	ldr	r1, .L76+4
	ldr	r0, .L76+16
	bl	__assert_fail
.L56:
	ldr	r3, .L76+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-24]
	ldr	r2, [r2, #20]
	ldr	r1, [fp, #-24]
	ldr	r1, [r1, #4]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, .L76+24
	ldr	r2, .L76+4
	ldr	r1, .L76+28
	bl	fprintf
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	beq	.L57
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	bne	.L58
.L57:
	ldr	r3, .L76+20
	ldr	r0, [r3]
	ldr	r3, .L76+32
	ldr	r2, .L76+4
	ldr	r1, .L76+36
	bl	fprintf
	mov	r3, #1
	b	.L59
.L58:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bls	.L60
	ldr	r3, .L76+20
	ldr	r0, [r3]
	mov	r3, #304
	ldr	r2, .L76+4
	ldr	r1, .L76+40
	bl	fprintf
	mov	r3, #0
	b	.L59
.L60:
	ldr	r3, .L76+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-24]
	ldr	r2, [r2, #20]
	ldr	r1, [fp, #-28]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #308
	ldr	r2, .L76+4
	ldr	r1, .L76+44
	bl	fprintf
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bhi	.L61
	ldr	r3, .L76+20
	ldr	r0, [r3]
	mov	r3, #312
	ldr	r2, .L76+4
	ldr	r1, .L76+48
	bl	fprintf
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-28]
	add	r3, r1, r3
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, .L76+20
	ldr	ip, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r2, [r2, #4]
	ldr	r1, [fp, #-24]
	ldr	r1, [r1, #20]
	ldr	r0, [fp, #-8]
	str	r0, [sp, #20]
	ldr	r0, [fp, #-12]
	str	r0, [sp, #16]
	ldr	r0, [fp, #-16]
	str	r0, [sp, #12]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #316
	ldr	r2, .L76+4
	ldr	r1, .L76+52
	mov	r0, ip
	bl	fprintf
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bcs	.L62
	ldr	r3, .L76
	mov	r2, #316
	ldr	r1, .L76+4
	ldr	r0, .L76+56
	bl	__assert_fail
.L62:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	add	r3, r1, r3
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bcc	.L63
	ldr	r3, .L76
	mov	r2, #316
	ldr	r1, .L76+4
	ldr	r0, .L76+60
	bl	__assert_fail
.L63:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	add	r3, r0, r3
	add	r3, r1, r3
	cmp	r2, r3
	bls	.L64
	ldr	r3, .L76
	mov	r2, #316
	ldr	r1, .L76+4
	ldr	r0, .L76+64
	bl	__assert_fail
.L64:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bcs	.L65
	ldr	r3, .L76
	mov	r2, #316
	ldr	r1, .L76+4
	ldr	r0, .L76+68
	bl	__assert_fail
.L65:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	add	r3, r1, r3
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bcc	.L66
	ldr	r3, .L76
	mov	r2, #316
	ldr	r1, .L76+4
	ldr	r0, .L76+72
	bl	__assert_fail
.L66:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	add	r3, r0, r3
	add	r3, r1, r3
	cmp	r2, r3
	bls	.L67
	ldr	r3, .L76
	mov	r2, #316
	ldr	r1, .L76+4
	ldr	r0, .L76+76
	bl	__assert_fail
.L61:
	ldr	r3, .L76+20
	ldr	r0, [r3]
	ldr	r3, .L76+80
	ldr	r2, .L76+4
	ldr	r1, .L76+84
	bl	fprintf
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r1, [r3, #16]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	add	r3, r1, r3
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-28]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, .L76+20
	ldr	ip, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r2, [r2, #4]
	ldr	r1, [fp, #-24]
	ldr	r1, [r1, #20]
	ldr	r0, [fp, #-8]
	str	r0, [sp, #20]
	ldr	r0, [fp, #-12]
	str	r0, [sp, #16]
	ldr	r0, [fp, #-16]
	str	r0, [sp, #12]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, .L76+88
	ldr	r2, .L76+4
	ldr	r1, .L76+52
	mov	r0, ip
	bl	fprintf
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bcs	.L68
	ldr	r3, .L76
	ldr	r2, .L76+88
	ldr	r1, .L76+4
	ldr	r0, .L76+56
	bl	__assert_fail
.L68:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	add	r3, r1, r3
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bcc	.L69
	ldr	r3, .L76
	ldr	r2, .L76+88
	ldr	r1, .L76+4
	ldr	r0, .L76+60
	bl	__assert_fail
.L69:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	add	r3, r0, r3
	add	r3, r1, r3
	cmp	r2, r3
	bls	.L70
	ldr	r3, .L76
	ldr	r2, .L76+88
	ldr	r1, .L76+4
	ldr	r0, .L76+64
	bl	__assert_fail
.L70:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bcs	.L71
	ldr	r3, .L76
	ldr	r2, .L76+88
	ldr	r1, .L76+4
	ldr	r0, .L76+68
	bl	__assert_fail
.L71:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	add	r3, r1, r3
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bcc	.L72
	ldr	r3, .L76
	ldr	r2, .L76+88
	ldr	r1, .L76+4
	ldr	r0, .L76+72
	bl	__assert_fail
.L72:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	add	r3, r0, r3
	add	r3, r1, r3
	cmp	r2, r3
	bls	.L67
	ldr	r3, .L76
	ldr	r2, .L76+88
	ldr	r1, .L76+4
	ldr	r0, .L76+76
	bl	__assert_fail
.L67:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	cmp	r2, r3
	bcc	.L73
	ldr	r3, .L76
	ldr	r2, .L76+92
	ldr	r1, .L76+4
	ldr	r0, .L76+96
	bl	__assert_fail
.L73:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	add	r3, r2, r3
	sub	r2, r3, #1
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	cmp	r2, r3
	bls	.L74
	ldr	r3, .L76
	mov	r2, #328
	ldr	r1, .L76+4
	ldr	r0, .L76+100
	bl	__assert_fail
.L74:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L75
	ldr	r3, .L76
	ldr	r2, .L76+104
	ldr	r1, .L76+4
	ldr	r0, .L76+108
	bl	__assert_fail
.L75:
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	memmove
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	add	r0, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	mov	r2, r3
	mov	r1, #38
	bl	memset
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L76+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-24]
	ldr	r2, [r2, #20]
	ldr	r1, [fp, #-24]
	ldr	r1, [r1, #4]
	str	r1, [sp, #12]
	str	r2, [sp, #8]
	ldr	r2, [fp, #-28]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, .L76+112
	ldr	r2, .L76+4
	ldr	r1, .L76+116
	bl	fprintf
	ldr	r3, .L76+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, #340
	ldr	r2, .L76+4
	ldr	r1, .L76+120
	bl	fprintf
	ldr	r3, .L76+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r1, .L76+124
	bl	fprintf
	ldr	r3, .L76+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	mov	r2, r3
	ldr	r1, .L76+128
	bl	fprintf
	ldr	r3, .L76+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	mov	r2, r3
	ldr	r1, .L76+132
	bl	fprintf
	ldr	r3, .L76+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r1, .L76+136
	bl	fprintf
	ldr	r3, .L76+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r1, [r3, #16]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	add	r3, r1, r3
	add	r3, r2, r3
	str	r3, [sp]
	ldr	r3, .L76+140
	ldr	r2, .L76+4
	ldr	r1, .L76+144
	bl	fprintf
	mov	r3, #1
.L59:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L77:
	.align	2
.L76:
	.word	__PRETTY_FUNCTION__.5394
	.word	.LC0
	.word	.LC1
	.word	293
	.word	.LC17
	.word	stderr
	.word	295
	.word	.LC18
	.word	299
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	319
	.word	.LC30
	.word	323
	.word	327
	.word	.LC31
	.word	.LC32
	.word	329
	.word	.LC33
	.word	338
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	345
	.word	.LC40
	.size	textseq_move_gap, .-textseq_move_gap
	.section	.rodata
	.align	2
.LC41:
	.ascii	"%s:%d:Top half is smaller. move DOWN\012\000"
	.align	2
.LC42:
	.ascii	"seq->gap_pos==0\000"
	.align	2
.LC43:
	.ascii	"%s:%d:bottom half is smaller, move data UP (and gap"
	.ascii	" to end)\012\000"
	.align	2
.LC44:
	.ascii	"seq->gap_pos==seq->len\000"
	.text
	.align	2
	.global	textseq_flattened
	.syntax unified
	.arm
	.fpu softvfp
	.type	textseq_flattened, %function
textseq_flattened:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bcs	.L79
	ldr	r3, .L85
	ldr	r0, [r3]
	ldr	r3, .L85+4
	ldr	r2, .L85+8
	ldr	r1, .L85+12
	bl	fprintf
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	textseq_move_gap
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L80
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	str	r2, [r3]
.L80:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L81
	ldr	r3, .L85+16
	ldr	r2, .L85+20
	ldr	r1, .L85+8
	ldr	r0, .L85+24
	bl	__assert_fail
.L81:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	add	r3, r2, r3
	b	.L82
.L79:
	ldr	r3, .L85
	ldr	r0, [r3]
	ldr	r3, .L85+28
	ldr	r2, .L85+8
	ldr	r1, .L85+32
	bl	fprintf
	ldr	r0, [fp, #-8]
	bl	textseq_cursor_eof
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	textseq_move_gap
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L83
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	str	r2, [r3]
.L83:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	beq	.L84
	ldr	r3, .L85+16
	ldr	r2, .L85+36
	ldr	r1, .L85+8
	ldr	r0, .L85+40
	bl	__assert_fail
.L84:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
.L82:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L86:
	.align	2
.L85:
	.word	stderr
	.word	354
	.word	.LC0
	.word	.LC41
	.word	__PRETTY_FUNCTION__.5399
	.word	358
	.word	.LC42
	.word	362
	.word	.LC43
	.word	366
	.word	.LC44
	.size	textseq_flattened, .-textseq_flattened
	.section	.rodata
	.align	2
.LC45:
	.ascii	"str!=NULL\000"
	.align	2
.LC46:
	.ascii	"(seq->gap_pos+len)<=seq->alloc\000"
	.text
	.align	2
	.global	textseq_insert
	.syntax unified
	.arm
	.fpu softvfp
	.type	textseq_insert, %function
textseq_insert:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L88
	ldr	r3, .L95
	ldr	r2, .L95+4
	ldr	r1, .L95+8
	ldr	r0, .L95+12
	bl	__assert_fail
.L88:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L89
	ldr	r3, .L95
	ldr	r2, .L95+16
	ldr	r1, .L95+8
	ldr	r0, .L95+20
	bl	__assert_fail
.L89:
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L90
	ldr	r0, [fp, #-16]
	bl	strlen
	str	r0, [fp, #-20]
.L90:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	textseq_move_gap
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bls	.L91
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	textseq_expand_gap
	mov	r3, r0
	cmp	r3, #0
	bne	.L91
	bl	abort
.L91:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r2, r3
	bls	.L92
	ldr	r3, .L95
	ldr	r2, .L95+24
	ldr	r1, .L95+8
	ldr	r0, .L95+28
	bl	__assert_fail
.L92:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-20]
	sub	r2, r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	beq	.L93
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L93:
	mov	r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L96:
	.align	2
.L95:
	.word	__PRETTY_FUNCTION__.5406
	.word	373
	.word	.LC0
	.word	.LC1
	.word	374
	.word	.LC45
	.word	386
	.word	.LC46
	.size	textseq_insert, .-textseq_insert
	.section	.rodata
	.align	2
.LC47:
	.ascii	"len<=seq->len-position\000"
	.align	2
.LC48:
	.ascii	"seq->gap_pos<=seq->gap_len\000"
	.text
	.align	2
	.global	textseq_delete
	.syntax unified
	.arm
	.fpu softvfp
	.type	textseq_delete, %function
textseq_delete:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L98
	ldr	r3, .L103
	ldr	r2, .L103+4
	ldr	r1, .L103+8
	ldr	r0, .L103+12
	bl	__assert_fail
.L98:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	textseq_move_gap
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L99
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
.L99:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bls	.L100
	ldr	r3, .L103
	ldr	r2, .L103+16
	ldr	r1, .L103+8
	ldr	r0, .L103+20
	bl	__assert_fail
.L100:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	sub	r2, r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	cmp	r2, r3
	bls	.L101
	ldr	r3, .L103
	mov	r2, #412
	ldr	r1, .L103+8
	ldr	r0, .L103+24
	bl	__assert_fail
.L101:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L104:
	.align	2
.L103:
	.word	__PRETTY_FUNCTION__.5412
	.word	403
	.word	.LC0
	.word	.LC1
	.word	409
	.word	.LC47
	.word	.LC48
	.size	textseq_delete, .-textseq_delete
	.align	2
	.global	textseq_clear
	.syntax unified
	.arm
	.fpu softvfp
	.type	textseq_clear, %function
textseq_clear:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L106
	ldr	r3, .L108
	mov	r2, #420
	ldr	r1, .L108+4
	ldr	r0, .L108+8
	bl	__assert_fail
.L106:
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	add	r0, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	mov	r2, r3
	mov	r1, #94
	bl	memset
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L109:
	.align	2
.L108:
	.word	__PRETTY_FUNCTION__.5416
	.word	.LC0
	.word	.LC1
	.size	textseq_clear, .-textseq_clear
	.section	.rodata
	.align	2
.LC49:
	.ascii	"%s:%d:cursor %d exceeds range 0..%d\012\000"
	.text
	.align	2
	.global	textseq_getch
	.syntax unified
	.arm
	.fpu softvfp
	.type	textseq_getch, %function
textseq_getch:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L111
	ldr	r3, .L115
	ldr	r2, .L115+4
	ldr	r1, .L115+8
	ldr	r0, .L115+12
	bl	__assert_fail
.L111:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bcc	.L112
	ldr	r3, .L115+16
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	sub	r3, r3, #1
	str	r3, [sp, #4]
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	mov	r3, #440
	ldr	r2, .L115+8
	ldr	r1, .L115+20
	bl	fprintf
	mvn	r3, #0
	b	.L113
.L112:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bcs	.L114
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L113
.L114:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
.L113:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L116:
	.align	2
.L115:
	.word	__PRETTY_FUNCTION__.5421
	.word	438
	.word	.LC0
	.word	.LC1
	.word	stderr
	.word	.LC49
	.size	textseq_getch, .-textseq_getch
	.section	.rodata
	.align	2
.LC50:
	.ascii	".c - Clears text editor buffer\012.f - Formats text"
	.ascii	" editor buffer with indents on paragraphs (preserve"
	.ascii	"s line breaks)\012.sp - spell checks text editor bu"
	.ascii	"ffer\012.s(?) - searches text editor buffer for str"
	.ascii	"ings matching query (possibly moves to the string?)"
	.ascii	"\012.r <parameter1> <parameter2> - replaces 1 occur"
	.ascii	"ance of parameter1 string with parameter2 string.\012"
	.ascii	".rf - replaces all occurances of parameter1 string "
	.ascii	"with parameter2 string.\012.i <parameter1> <paramet"
	.ascii	"er2> - searches for parameter1 and inserts paramete"
	.ascii	"r2 before it.\012.d <parameter1> - deletes the stri"
	.ascii	"ng specified in parameter 1\012.n - turns on line n"
	.ascii	"umbers\012.dl# - deletes a line specified by number"
	.ascii	"\012.l# - skips to the line specified by number\012"
	.ascii	".p - prints contents\012.q - exits without saving c"
	.ascii	"hanges\012.qs - saves changes and exits text editor"
	.ascii	"\012.a<#> - Appends a new line at #. If no # is spe"
	.ascii	"cified, adds new line to end.\012.h - help\012.t <l"
	.ascii	"ine1> <line2> - copy/pastes an existing line to the"
	.ascii	" specified line.\000"
	.text
	.align	2
	.global	editor_help
	.syntax unified
	.arm
	.fpu softvfp
	.type	editor_help, %function
editor_help:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L118
	bl	puts
	nop
	pop	{fp, pc}
.L119:
	.align	2
.L118:
	.word	.LC50
	.size	editor_help, .-editor_help
	.align	2
	.global	editor_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	editor_init, %function
editor_init:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	mov	r2, #44
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	textseq_init
	mov	r3, r0
	cmp	r3, #0
	bne	.L121
	mov	r3, #0
	b	.L122
.L121:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #28]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #32]
	mov	r3, #1
.L122:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	editor_init, .-editor_init
	.section	.rodata
	.align	2
.LC51:
	.ascii	"Enter .h for help:\000"
	.text
	.align	2
	.global	editor_start
	.syntax unified
	.arm
	.fpu softvfp
	.type	editor_start, %function
editor_start:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	editor_init
	mov	r3, r0
	cmp	r3, #0
	bne	.L124
	mov	r3, #0
	b	.L125
.L124:
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #40]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #36]
	ldr	r0, .L126
	bl	puts
	mov	r3, #1
.L125:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L127:
	.align	2
.L126:
	.word	.LC51
	.size	editor_start, .-editor_start
	.section	.rodata
	.align	2
.LC52:
	.ascii	"ei!=NULL\000"
	.align	2
.LC53:
	.ascii	"Unknown command '.%c'\012\000"
	.align	2
.LC54:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	editor_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	editor_line, %function
editor_line:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L148
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L129
	ldr	r3, .L148+4
	mov	r2, #512
	ldr	r1, .L148+8
	ldr	r0, .L148+12
	bl	__assert_fail
.L129:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L130
	ldr	r3, .L148+4
	ldr	r2, .L148+16
	ldr	r1, .L148+8
	ldr	r0, .L148+20
	bl	__assert_fail
.L130:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L131
	mov	r3, #0
	b	.L146
.L131:
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L133
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #97
	cmp	r3, #16
	ldrls	pc, [pc, r3, asl #2]
	b	.L134
.L136:
	.word	.L140
	.word	.L134
	.word	.L139
	.word	.L134
	.word	.L134
	.word	.L134
	.word	.L134
	.word	.L138
	.word	.L134
	.word	.L134
	.word	.L134
	.word	.L134
	.word	.L134
	.word	.L134
	.word	.L134
	.word	.L137
	.word	.L135
.L140:
	ldr	r3, [fp, #-36]
	add	r3, r3, #2
	sub	r1, fp, #24
	mov	r2, #10
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-36]
	add	r2, r3, #2
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L141
	ldr	r3, [fp, #-32]
	mov	r2, #0
	str	r2, [r3, #40]
	ldr	r3, [fp, #-32]
	mov	r2, #0
	str	r2, [r3, #36]
	b	.L144
.L141:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	textseq_cursor_lineat
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-32]
	str	r2, [r3, #40]
	ldr	r3, [fp, #-32]
	mov	r2, #1
	str	r2, [r3, #36]
	b	.L144
.L139:
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	textseq_clear
	b	.L144
.L137:
	ldr	r3, [fp, #-32]
	mov	r1, #0
	mov	r0, r3
	bl	textseq_flattened
	mov	r3, r0
	mov	r0, r3
	bl	puts
	b	.L144
.L135:
	mov	r3, #0
	b	.L146
.L134:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L148+24
	bl	printf
.L138:
	bl	editor_help
	b	.L144
.L133:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #36]
	cmp	r3, #0
	beq	.L145
	ldr	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r1, [r3, #40]
	mvn	r3, #0
	ldr	r2, [fp, #-36]
	bl	textseq_insert
	b	.L144
.L145:
	ldr	r4, [fp, #-32]
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	textseq_cursor_eof
	mov	r3, r0
	mov	r1, r3
	mvn	r3, #0
	ldr	r2, [fp, #-36]
	mov	r0, r4
	bl	textseq_insert
.L144:
	mov	r3, #1
.L146:
	ldr	r2, .L148
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L147
	bl	__stack_chk_fail
.L147:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L149:
	.align	2
.L148:
	.word	.LC54
	.word	__PRETTY_FUNCTION__.5459
	.word	.LC0
	.word	.LC52
	.word	513
	.word	.LC45
	.word	.LC53
	.size	editor_line, .-editor_line
	.section	.rodata
	.align	2
.LC55:
	.ascii	"%s:%d:Adding newline at %d\012\000"
	.align	2
.LC56:
	.ascii	"\012\000"
	.text
	.align	2
	.global	editor_fix_nl
	.syntax unified
	.arm
	.fpu softvfp
	.type	editor_fix_nl, %function
editor_fix_nl:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	textseq_cursor_charateof
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L152
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	textseq_getch
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L152
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	beq	.L152
	ldr	r3, .L153
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	ldr	r3, .L153+4
	ldr	r2, .L153+8
	ldr	r1, .L153+12
	bl	fprintf
	ldr	r0, [fp, #-16]
	mov	r3, #1
	ldr	r2, .L153+16
	ldr	r1, [fp, #-12]
	bl	textseq_insert
.L152:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L154:
	.align	2
.L153:
	.word	stderr
	.word	569
	.word	.LC0
	.word	.LC55
	.word	.LC56
	.size	editor_fix_nl, .-editor_fix_nl
	.global	testseq_test_str
	.section	.rodata
	.align	2
.LC57:
	.ascii	"Alas, poor Yorick!--I knew him, Horatio;\012a fello"
	.ascii	"w of infinite jest, of most excellent fancy:\012he "
	.ascii	"hath borne me on his back a thousand times;\012and "
	.ascii	"now, how abhorred in my imagination it is!\012my go"
	.ascii	"rge rises at it.\000"
	.data
	.align	2
	.type	testseq_test_str, %object
	.size	testseq_test_str, 4
testseq_test_str:
	.word	.LC57
	.section	.rodata
	.align	2
.LC58:
	.ascii	"len=%zd\012@%s@\012\000"
	.align	2
.LC59:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	editor_test
	.syntax unified
	.arm
	.fpu softvfp
	.type	editor_test, %function
editor_test:
	@ args = 0, pretend = 0, frame = 568
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #568
	ldr	r3, .L161
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L161+4
	ldr	r3, [r3]
	sub	r0, fp, #564
	mov	r2, #0
	mov	r1, #0
	bl	editor_start
	sub	r3, fp, #564
	mov	r0, r3
	bl	editor_fix_nl
	b	.L156
.L158:
	sub	r2, fp, #520
	sub	r3, fp, #564
	mov	r1, r2
	mov	r0, r3
	bl	editor_line
	mov	r3, r0
	cmp	r3, #0
	beq	.L160
.L156:
	ldr	r3, .L161+8
	ldr	r2, [r3]
	sub	r3, fp, #520
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L158
	b	.L157
.L160:
	nop
.L157:
	sub	r2, fp, #572
	sub	r3, fp, #564
	mov	r1, r2
	mov	r0, r3
	bl	textseq_flattened
	str	r0, [fp, #-568]
	ldr	r3, [fp, #-572]
	ldr	r2, [fp, #-568]
	mov	r1, r3
	ldr	r0, .L161+12
	bl	printf
	sub	r3, fp, #564
	mov	r0, r3
	bl	textseq_free
	nop
	ldr	r3, .L161
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L159
	bl	__stack_chk_fail
.L159:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L162:
	.align	2
.L161:
	.word	.LC59
	.word	testseq_test_str
	.word	stdin
	.word	.LC58
	.size	editor_test, .-editor_test
	.section	.rodata
	.align	2
.LC60:
	.ascii	"cursor: %d (line=%d)\012\000"
	.align	2
.LC61:
	.ascii	"cannot find line %d\012\000"
	.text
	.align	2
	.global	textseq_test_cursor_at_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	textseq_test_cursor_at_line, %function
textseq_test_cursor_at_line:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L166
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-16]
	ldr	r2, [r2, #20]
	ldr	r1, [fp, #-16]
	ldr	r1, [r1, #4]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #604
	ldr	r2, .L166+4
	ldr	r1, .L166+8
	bl	fprintf
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	textseq_cursor_lineat
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-8]
	ldr	r0, .L166+12
	bl	printf
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L164
	ldr	r1, [fp, #-20]
	ldr	r0, .L166+16
	bl	printf
	bl	abort
.L164:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L167:
	.align	2
.L166:
	.word	stderr
	.word	.LC0
	.word	.LC5
	.word	.LC60
	.word	.LC61
	.size	textseq_test_cursor_at_line, .-textseq_test_cursor_at_line
	.section	.rodata
	.align	2
.LC62:
	.ascii	"cursor: %d (EOF)\012\000"
	.align	2
.LC63:
	.ascii	"cursor>=0\000"
	.text
	.align	2
	.global	textseq_test_cursor_at_eof
	.syntax unified
	.arm
	.fpu softvfp
	.type	textseq_test_cursor_at_eof, %function
textseq_test_cursor_at_eof:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	ldr	r3, .L171
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-16]
	ldr	r2, [r2, #20]
	ldr	r1, [fp, #-16]
	ldr	r1, [r1, #4]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, .L171+4
	ldr	r2, .L171+8
	ldr	r1, .L171+12
	bl	fprintf
	ldr	r0, [fp, #-16]
	bl	textseq_cursor_eof
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L171+16
	bl	printf
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L169
	ldr	r3, .L171+20
	ldr	r2, .L171+24
	ldr	r1, .L171+8
	ldr	r0, .L171+28
	bl	__assert_fail
.L169:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L172:
	.align	2
.L171:
	.word	stderr
	.word	617
	.word	.LC0
	.word	.LC5
	.word	.LC62
	.word	__PRETTY_FUNCTION__.5492
	.word	621
	.word	.LC63
	.size	textseq_test_cursor_at_eof, .-textseq_test_cursor_at_eof
	.section	.rodata
	.align	2
.LC64:
	.ascii	"[zero alpha]\012\000"
	.align	2
.LC65:
	.ascii	"line length : %d\012\000"
	.align	2
.LC66:
	.ascii	"[one beta]\012\000"
	.align	2
.LC67:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	textseq_test
	.syntax unified
	.arm
	.fpu softvfp
	.type	textseq_test, %function
textseq_test:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L176
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L176+4
	ldr	r2, [r3]
	sub	r3, fp, #32
	mov	r1, r2
	mov	r0, r3
	bl	textseq_init
	mov	r3, r0
	cmp	r3, #0
	bne	.L174
	bl	abort
.L174:
	sub	r3, fp, #32
	mov	r1, #2
	mov	r0, r3
	bl	textseq_test_cursor_at_line
	str	r0, [fp, #-40]
	ldr	r2, [fp, #-40]
	sub	r3, fp, #32
	mov	r1, r2
	mov	r0, r3
	bl	textseq_move_gap
	sub	r3, fp, #32
	mov	r1, #636
	mov	r0, r3
	bl	textseq_dump
	sub	r3, fp, #32
	mov	r1, #2
	mov	r0, r3
	bl	textseq_test_cursor_at_line
	str	r0, [fp, #-40]
	ldr	r2, [fp, #-40]
	sub	r3, fp, #32
	mov	r1, r2
	mov	r0, r3
	bl	textseq_move_gap
	sub	r3, fp, #32
	mov	r1, #640
	mov	r0, r3
	bl	textseq_dump
	sub	r3, fp, #32
	mov	r0, r3
	bl	textseq_test_cursor_at_eof
	str	r0, [fp, #-40]
	ldr	r2, [fp, #-40]
	sub	r3, fp, #32
	mov	r1, r2
	mov	r0, r3
	bl	textseq_move_gap
	sub	r3, fp, #32
	mov	r1, #644
	mov	r0, r3
	bl	textseq_dump
	sub	r3, fp, #32
	mov	r1, #0
	mov	r0, r3
	bl	textseq_test_cursor_at_line
	str	r0, [fp, #-40]
	ldr	r2, [fp, #-40]
	sub	r3, fp, #32
	mov	r1, r2
	mov	r0, r3
	bl	textseq_move_gap
	sub	r3, fp, #32
	mov	r1, #648
	mov	r0, r3
	bl	textseq_dump
	sub	r3, fp, #32
	mov	r1, #0
	mov	r0, r3
	bl	textseq_test_cursor_at_line
	str	r0, [fp, #-40]
	ldr	r1, [fp, #-40]
	sub	r0, fp, #32
	mvn	r3, #0
	ldr	r2, .L176+8
	bl	textseq_insert
	sub	r3, fp, #32
	mov	r1, #652
	mov	r0, r3
	bl	textseq_dump
	sub	r3, fp, #32
	mov	r1, #4
	mov	r0, r3
	bl	textseq_test_cursor_at_line
	str	r0, [fp, #-40]
	ldr	r2, [fp, #-40]
	sub	r3, fp, #32
	mov	r1, r2
	mov	r0, r3
	bl	textseq_linelength
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L176+12
	bl	printf
	ldr	r1, [fp, #-40]
	sub	r0, fp, #32
	mvn	r3, #0
	ldr	r2, .L176+16
	bl	textseq_insert
	sub	r3, fp, #32
	ldr	r1, .L176+20
	mov	r0, r3
	bl	textseq_dump
	sub	r3, fp, #32
	mov	r1, #1
	mov	r0, r3
	bl	textseq_test_cursor_at_line
	str	r0, [fp, #-40]
	ldr	r1, [fp, #-40]
	sub	r3, fp, #32
	mov	r2, #19
	mov	r0, r3
	bl	textseq_delete
	sub	r3, fp, #32
	ldr	r1, .L176+24
	mov	r0, r3
	bl	textseq_dump
	sub	r2, fp, #44
	sub	r3, fp, #32
	mov	r1, r2
	mov	r0, r3
	bl	textseq_flattened
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-36]
	mov	r1, r3
	ldr	r0, .L176+28
	bl	printf
	sub	r3, fp, #32
	mov	r0, r3
	bl	textseq_free
	nop
	ldr	r3, .L176
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L175
	bl	__stack_chk_fail
.L175:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L177:
	.align	2
.L176:
	.word	.LC67
	.word	testseq_test_str
	.word	.LC64
	.word	.LC65
	.word	.LC66
	.word	657
	.word	661
	.word	.LC58
	.size	textseq_test, .-textseq_test
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	textseq_test
	bl	editor_test
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5320, %object
	.size	__PRETTY_FUNCTION__.5320, 13
__PRETTY_FUNCTION__.5320:
	.ascii	"textseq_init\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5343, %object
	.size	__PRETTY_FUNCTION__.5343, 22
__PRETTY_FUNCTION__.5343:
	.ascii	"textseq_cursor_lineat\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5381, %object
	.size	__PRETTY_FUNCTION__.5381, 19
__PRETTY_FUNCTION__.5381:
	.ascii	"textseq_expand_gap\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5394, %object
	.size	__PRETTY_FUNCTION__.5394, 17
__PRETTY_FUNCTION__.5394:
	.ascii	"textseq_move_gap\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5399, %object
	.size	__PRETTY_FUNCTION__.5399, 18
__PRETTY_FUNCTION__.5399:
	.ascii	"textseq_flattened\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5406, %object
	.size	__PRETTY_FUNCTION__.5406, 15
__PRETTY_FUNCTION__.5406:
	.ascii	"textseq_insert\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5412, %object
	.size	__PRETTY_FUNCTION__.5412, 15
__PRETTY_FUNCTION__.5412:
	.ascii	"textseq_delete\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5416, %object
	.size	__PRETTY_FUNCTION__.5416, 14
__PRETTY_FUNCTION__.5416:
	.ascii	"textseq_clear\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5421, %object
	.size	__PRETTY_FUNCTION__.5421, 14
__PRETTY_FUNCTION__.5421:
	.ascii	"textseq_getch\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5459, %object
	.size	__PRETTY_FUNCTION__.5459, 12
__PRETTY_FUNCTION__.5459:
	.ascii	"editor_line\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5492, %object
	.size	__PRETTY_FUNCTION__.5492, 27
__PRETTY_FUNCTION__.5492:
	.ascii	"textseq_test_cursor_at_eof\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
