	.file	"63415.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Usage: ./editor filename\n"
.LC1:
	.string	"%d:%s\n"
	.align 8
.LC2:
	.string	"Line number can't be smaller than 1!"
.LC3:
	.string	"Changes written to %s\n"
.LC4:
	.string	"not found: %s\n"
.LC5:
	.string	"Wrong command."
.LC6:
	.string	"Line not found"
.LC7:
	.string	"---END---"
	.text
	.globl	main
	.type	main, @function
main:
.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, 1104
	mov	DWORD PTR -1092[rbp], edi
	mov	QWORD PTR -1104[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -1092[rbp], 2
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -1104[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -1048[rbp], rax
	mov	rax, QWORD PTR -1104[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	readlines
	mov	QWORD PTR -1072[rbp], rax
	mov	rax, QWORD PTR -1072[rbp]
	mov	QWORD PTR -1064[rbp], rax
	mov	DWORD PTR -1080[rbp], 0
	jmp	.L3
.L30:
	mov	rax, QWORD PTR -1064[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	puts@PLT
	mov	edi, 58
	call	putchar@PLT
	lea	rax, -1040[rbp]
	mov	edx, 10
	mov	esi, 1024
	mov	rdi, rax
	call	readstdin
	movzx	eax, BYTE PTR -1040[rbp]
	movsx	eax, al
	sub	eax, 97
	cmp	eax, 27
	ja	.L4
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L6[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L6[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L15-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L14-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L13-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L12-.L6
	.long	.L11-.L6
	.long	.L4-.L6
	.long	.L10-.L6
	.long	.L9-.L6
	.long	.L4-.L6
	.long	.L8-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L7-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L5-.L6
	.text
.L10:
	mov	rax, QWORD PTR -1072[rbp]
	mov	QWORD PTR -1056[rbp], rax
	jmp	.L16
.L17:
	mov	rax, QWORD PTR -1056[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR -1056[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -1056[rbp], rax
.L16:
	cmp	QWORD PTR -1056[rbp], 0
	jne	.L17
	jmp	.L18
.L11:
	mov	rax, QWORD PTR -1072[rbp]
	mov	QWORD PTR -1056[rbp], rax
	mov	DWORD PTR -1076[rbp], 1
	jmp	.L19
.L20:
	mov	rax, QWORD PTR -1056[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -1076[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1056[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -1056[rbp], rax
	add	DWORD PTR -1076[rbp], 1
.L19:
	cmp	QWORD PTR -1056[rbp], 0
	jne	.L20
	jmp	.L18
.L9:
	mov	DWORD PTR -1080[rbp], 1
	jmp	.L18
.L14:
	mov	rax, QWORD PTR -1064[rbp]
	mov	rdi, rax
	call	deleteline
	mov	QWORD PTR -1056[rbp], rax
	mov	rax, QWORD PTR -1064[rbp]
	cmp	rax, QWORD PTR -1072[rbp]
	jne	.L21
	mov	rax, QWORD PTR -1056[rbp]
	mov	QWORD PTR -1072[rbp], rax
.L21:
	mov	rax, QWORD PTR -1056[rbp]
	mov	QWORD PTR -1064[rbp], rax
	jmp	.L18
.L12:
	lea	rax, -1040[rbp]
	add	rax, 1
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -1076[rbp], eax
	movzx	eax, BYTE PTR -1039[rbp]
	cmp	al, 36
	jne	.L22
	mov	rcx, QWORD PTR -1064[rbp]
	mov	rax, QWORD PTR -1072[rbp]
	mov	edx, 36
	mov	rsi, rcx
	mov	rdi, rax
	call	moveline
	mov	QWORD PTR -1072[rbp], rax
	jmp	.L18
.L22:
	cmp	DWORD PTR -1076[rbp], 0
	jg	.L24
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L18
.L24:
	mov	edx, DWORD PTR -1076[rbp]
	mov	rcx, QWORD PTR -1064[rbp]
	mov	rax, QWORD PTR -1072[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	moveline
	mov	QWORD PTR -1072[rbp], rax
	jmp	.L18
.L7:
	mov	rdx, QWORD PTR -1048[rbp]
	mov	rax, QWORD PTR -1072[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	writelines
	mov	rax, QWORD PTR -1048[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L13:
	lea	rax, -1040[rbp]
	mov	edx, 46
	mov	esi, 1024
	mov	rdi, rax
	call	readstdin
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -1064[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	insertstring
	mov	QWORD PTR -1056[rbp], rax
	mov	rax, QWORD PTR -1072[rbp]
	cmp	rax, QWORD PTR -1064[rbp]
	jne	.L32
	mov	rax, QWORD PTR -1056[rbp]
	mov	QWORD PTR -1072[rbp], rax
	jmp	.L32
.L15:
	lea	rax, -1040[rbp]
	mov	edx, 46
	mov	esi, 1024
	mov	rdi, rax
	call	readstdin
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -1064[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	appendstring
	jmp	.L18
.L8:
	mov	rax, QWORD PTR -1064[rbp]
	mov	rax, QWORD PTR 16[rax]
	lea	rdx, -1040[rbp]
	add	rdx, 2
	mov	rsi, rdx
	mov	rdi, rax
	call	findsubstring
	mov	QWORD PTR -1056[rbp], rax
	cmp	QWORD PTR -1056[rbp], 0
	je	.L26
	mov	rax, QWORD PTR -1056[rbp]
	mov	QWORD PTR -1064[rbp], rax
	jmp	.L18
.L26:
	lea	rax, -1040[rbp]
	add	rax, 2
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L5:
	lea	rax, -1040[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -1064[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	runcommand
	mov	DWORD PTR -1076[rbp], eax
	cmp	DWORD PTR -1076[rbp], 0
	jne	.L33
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L33
.L4:
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -1072[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	findline
	mov	QWORD PTR -1056[rbp], rax
	cmp	QWORD PTR -1056[rbp], 0
	jne	.L29
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L18
.L29:
	mov	rax, QWORD PTR -1056[rbp]
	mov	QWORD PTR -1064[rbp], rax
	jmp	.L18
.L32:
	nop
	jmp	.L18
.L33:
	nop
.L18:
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L3:
	cmp	DWORD PTR -1080[rbp], 0
	je	.L30
	mov	rax, QWORD PTR -1072[rbp]
	mov	rdi, rax
	call	freelines
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	readstdin
	.type	readstdin, @function
readstdin:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	eax, edx
	mov	BYTE PTR -32[rbp], al
	mov	DWORD PTR -4[rbp], 0
	jmp	.L35
.L37:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jge	.L36
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -5[rbp]
	mov	BYTE PTR [rdx], al
.L36:
	add	DWORD PTR -4[rbp], 1
.L35:
	call	getchar@PLT
	mov	BYTE PTR -5[rbp], al
	movzx	eax, BYTE PTR -5[rbp]
	cmp	al, BYTE PTR -32[rbp]
	jne	.L37
.L39:
	cmp	BYTE PTR -32[rbp], 10
	je	.L38
	call	getchar@PLT
	mov	BYTE PTR -5[rbp], al
	cmp	BYTE PTR -5[rbp], 10
	jne	.L39
.L38:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jge	.L40
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L42
.L40:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L42:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	readstdin, .-readstdin
	.globl	insertline
	.type	insertline, @function
insertline:
.LFB8:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	cmp	QWORD PTR -8[rbp], 0
	je	.L47
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
	cmp	QWORD PTR -16[rbp], 0
	je	.L46
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
.L46:
	cmp	QWORD PTR -24[rbp], 0
	je	.L43
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], rdx
	jmp	.L43
.L47:
	nop
.L43:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	insertline, .-insertline
	.section	.rodata
.LC8:
	.string	"malloc"
	.text
	.globl	createline
	.type	createline, @function
createline:
.LFB9:
	.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 -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L49
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 2
	call	exit@PLT
.L49:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rdx, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	insertline
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	createline, .-createline
	.globl	unlinkline
	.type	unlinkline, @function
unlinkline:
.LFB10:
	.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	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L52
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 24[rax], rdx
.L52:
	cmp	QWORD PTR -16[rbp], 0
	je	.L54
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
.L54:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	unlinkline, .-unlinkline
	.globl	deleteline
	.type	deleteline, @function
deleteline:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	unlinkline
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	cmp	QWORD PTR -24[rbp], 0
	jne	.L56
	cmp	QWORD PTR -16[rbp], 0
	jne	.L56
	mov	edi, 1
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 1
	mov	rdi, rax
	call	createline
	jmp	.L57
.L56:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L58
	mov	rax, QWORD PTR -16[rbp]
	jmp	.L57
.L58:
	mov	rax, QWORD PTR -24[rbp]
.L57:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	deleteline, .-deleteline
	.globl	moveline
	.type	moveline, @function
moveline:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 40
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	cmp	DWORD PTR -36[rbp], 0
	jg	.L60
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	unlinkline
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	insertline
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L61
.L60:
	mov	DWORD PTR -12[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L62
.L64:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	add	DWORD PTR -12[rbp], 1
.L62:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L63
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L64
.L63:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	je	.L61
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jne	.L65
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -24[rbp], rax
.L65:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	unlinkline
	cmp	DWORD PTR -36[rbp], 36
	jne	.L66
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	insertline
	jmp	.L67
.L66:
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	insertline
.L67:
	cmp	DWORD PTR -36[rbp], 1
	jne	.L61
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -24[rbp], rax
.L61:
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	moveline, .-moveline
	.globl	setlines
	.type	setlines, @function
setlines:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L70
.L79:
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L71
	mov	rax, QWORD PTR -48[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	je	.L72
.L71:
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	je	.L73
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L74
.L73:
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L75
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 2
	call	exit@PLT
.L75:
	mov	DWORD PTR -52[rbp], 0
	jmp	.L76
.L77:
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -52[rbp], 1
	add	QWORD PTR -40[rbp], 1
.L76:
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -48[rbp]
	jne	.L77
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, eax
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, 0
	mov	rdi, rax
	call	createline
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 1
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L74
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -24[rbp], rax
.L74:
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L81
	add	QWORD PTR -48[rbp], 1
.L70:
	cmp	QWORD PTR -48[rbp], 0
	jne	.L79
	jmp	.L72
.L81:
	nop
.L72:
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	setlines, .-setlines
	.globl	insertstring
	.type	insertstring, @function
insertstring:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	setlines
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	insertline
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L83
.L84:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -24[rbp], rax
.L83:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L84
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	insertline
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	insertstring, .-insertstring
	.globl	appendstring
	.type	appendstring, @function
appendstring:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L87
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	setlines
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	insertline
	jmp	.L88
.L87:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	insertstring
	mov	QWORD PTR -16[rbp], rax
.L88:
	mov	rax, QWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	appendstring, .-appendstring
	.globl	findsubstring
	.type	findsubstring, @function
findsubstring:
.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
	jmp	.L91
.L94:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L92
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L93
.L92:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
.L91:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L94
	mov	eax, 0
.L93:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	findsubstring, .-findsubstring
	.section	.rodata
.LC9:
	.string	"r"
	.text
	.globl	readlines
	.type	readlines, @function
readlines:
.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, 208
	mov	QWORD PTR -200[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -184[rbp], rax
	cmp	QWORD PTR -184[rbp], 0
	jne	.L96
	mov	edi, 1
	call	malloc@PLT
	mov	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -168[rbp]
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 1
	mov	rdi, rax
	call	createline
	mov	QWORD PTR -192[rbp], rax
	jmp	.L97
.L96:
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR -176[rbp], rax
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	jne	.L98
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 2
	call	exit@PLT
.L98:
	mov	rdx, QWORD PTR -184[rbp]
	mov	rsi, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	setlines
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	free@PLT
.L97:
	mov	rax, QWORD PTR -192[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L100
	call	__stack_chk_fail@PLT
.L100:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	readlines, .-readlines
	.section	.rodata
.LC10:
	.string	" "
.LC11:
	.string	"1"
.LC12:
	.string	"0"
	.text
	.globl	runcommand
	.type	runcommand, @function
runcommand:
.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, 336
	mov	QWORD PTR -328[rbp], rdi
	mov	QWORD PTR -336[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -336[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -272[rbp], rax
	mov	DWORD PTR -304[rbp], 1
	jmp	.L102
.L105:
	lea	rsi, .LC10[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	edx, DWORD PTR -304[rbp]
	movsx	rdx, edx
	mov	QWORD PTR -272[rbp+rdx*8], rax
	mov	eax, DWORD PTR -304[rbp]
	cdqe
	mov	rax, QWORD PTR -272[rbp+rax*8]
	test	rax, rax
	je	.L113
	add	DWORD PTR -304[rbp], 1
.L102:
	cmp	DWORD PTR -304[rbp], 31
	jle	.L105
	jmp	.L104
.L113:
	nop
.L104:
	lea	rax, -296[rbp]
	mov	rdi, rax
	call	pipe@PLT
	mov	rax, QWORD PTR -328[rbp]
	mov	eax, DWORD PTR 8[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -328[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -292[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -292[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	pipe@PLT
	lea	rax, -280[rbp]
	mov	rdi, rax
	call	pipe@PLT
	call	fork@PLT
	mov	DWORD PTR -300[rbp], eax
	cmp	DWORD PTR -300[rbp], 0
	je	.L106
	mov	eax, DWORD PTR -276[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -296[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -284[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -308[rbp]
	mov	rdi, rax
	call	wait@PLT
	mov	eax, DWORD PTR -280[rbp]
	lea	rcx, -9[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 49
	jne	.L107
	mov	eax, 0
	jmp	.L111
.L107:
	mov	rax, QWORD PTR -328[rbp]
	mov	eax, DWORD PTR 8[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -328[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -288[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	eax, DWORD PTR -288[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
	jmp	.L111
.L106:
	mov	edi, 1
	call	close@PLT
	mov	eax, DWORD PTR -284[rbp]
	mov	edi, eax
	call	dup@PLT
	mov	edi, 0
	call	close@PLT
	mov	eax, DWORD PTR -296[rbp]
	mov	edi, eax
	call	dup@PLT
	mov	rax, QWORD PTR -272[rbp]
	lea	rdx, -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	cmp	eax, -1
	jne	.L109
	mov	eax, DWORD PTR -276[rbp]
	mov	edx, 1
	lea	rsi, .LC11[rip]
	mov	edi, eax
	call	write@PLT
	jmp	.L110
.L109:
	mov	eax, DWORD PTR -280[rbp]
	mov	edx, 1
	lea	rsi, .LC12[rip]
	mov	edi, eax
	call	write@PLT
.L110:
	mov	edi, 0
	call	exit@PLT
.L111:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L112
	call	__stack_chk_fail@PLT
.L112:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	runcommand, .-runcommand
	.section	.rodata
.LC13:
	.string	"w"
.LC14:
	.string	"fopen"
.LC15:
	.string	"\n"
	.text
	.globl	writelines
	.type	writelines, @function
writelines:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L116
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	edi, 3
	call	exit@PLT
.L117:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	movsx	rsi, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -24[rbp], rax
.L116:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L117
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	writelines, .-writelines
	.globl	findline
	.type	findline, @function
findline:
.LFB20:
	.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
	cmp	DWORD PTR -28[rbp], 0
	jg	.L119
	mov	eax, 0
	jmp	.L120
.L119:
	mov	DWORD PTR -4[rbp], 1
	jmp	.L121
.L123:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jne	.L122
	mov	rax, QWORD PTR -24[rbp]
	jmp	.L120
.L122:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -24[rbp], rax
	add	DWORD PTR -4[rbp], 1
.L121:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L123
	mov	rax, QWORD PTR -24[rbp]
.L120:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	findline, .-findline
	.globl	freelines
	.type	freelines, @function
freelines:
.LFB21:
	.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
	jmp	.L125
.L126:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
.L125:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L126
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	freelines, .-freelines
	.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	"63415.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: ./editor filename\012\000"
	.align	2
.LC1:
	.ascii	"%d:%s\012\000"
	.align	2
.LC2:
	.ascii	"Line number can't be smaller than 1!\000"
	.align	2
.LC3:
	.ascii	"Changes written to %s\012\000"
	.align	2
.LC4:
	.ascii	"not found: %s\012\000"
	.align	2
.LC5:
	.ascii	"Wrong command.\000"
	.align	2
.LC6:
	.ascii	"Line not found\000"
	.align	2
.LC7:
	.ascii	"---END---\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1056
	sub	sp, sp, #8
	str	r0, [fp, #-1064]
	str	r1, [fp, #-1068]
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-1064]
	cmp	r3, #2
	beq	.L2
	ldr	r3, .L34+4
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L34+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-1068]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-1036]
	ldr	r3, [fp, #-1068]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	readlines
	str	r0, [fp, #-1056]
	ldr	r3, [fp, #-1056]
	str	r3, [fp, #-1052]
	mov	r3, #0
	str	r3, [fp, #-1044]
	b	.L3
.L30:
	ldr	r3, [fp, #-1052]
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
	mov	r0, #58
	bl	putchar
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #10
	mov	r1, #1024
	mov	r0, r3
	bl	readstdin
	ldrb	r3, [fp, #-1032]	@ zero_extendqisi2
	sub	r3, r3, #97
	cmp	r3, #27
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L15
	.word	.L4
	.word	.L4
	.word	.L14
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L13
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L12
	.word	.L11
	.word	.L4
	.word	.L10
	.word	.L9
	.word	.L4
	.word	.L8
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L7
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L5
.L10:
	ldr	r3, [fp, #-1056]
	str	r3, [fp, #-1048]
	b	.L16
.L17:
	ldr	r3, [fp, #-1048]
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-1048]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-1048]
.L16:
	ldr	r3, [fp, #-1048]
	cmp	r3, #0
	bne	.L17
	b	.L18
.L11:
	ldr	r3, [fp, #-1056]
	str	r3, [fp, #-1048]
	mov	r3, #1
	str	r3, [fp, #-1040]
	b	.L19
.L20:
	ldr	r3, [fp, #-1048]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-1040]
	ldr	r0, .L34+12
	bl	printf
	ldr	r3, [fp, #-1048]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-1048]
	ldr	r3, [fp, #-1040]
	add	r3, r3, #1
	str	r3, [fp, #-1040]
.L19:
	ldr	r3, [fp, #-1048]
	cmp	r3, #0
	bne	.L20
	b	.L18
.L9:
	mov	r3, #1
	str	r3, [fp, #-1044]
	b	.L18
.L14:
	ldr	r0, [fp, #-1052]
	bl	deleteline
	str	r0, [fp, #-1048]
	ldr	r2, [fp, #-1052]
	ldr	r3, [fp, #-1056]
	cmp	r2, r3
	bne	.L21
	ldr	r3, [fp, #-1048]
	str	r3, [fp, #-1056]
.L21:
	ldr	r3, [fp, #-1048]
	str	r3, [fp, #-1052]
	b	.L18
.L12:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #1
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-1040]
	ldrb	r3, [fp, #-1031]	@ zero_extendqisi2
	cmp	r3, #36
	bne	.L22
	mov	r2, #36
	ldr	r1, [fp, #-1052]
	ldr	r0, [fp, #-1056]
	bl	moveline
	str	r0, [fp, #-1056]
	b	.L18
.L22:
	ldr	r3, [fp, #-1040]
	cmp	r3, #0
	bgt	.L24
	ldr	r0, .L34+16
	bl	puts
	b	.L18
.L24:
	ldr	r2, [fp, #-1040]
	ldr	r1, [fp, #-1052]
	ldr	r0, [fp, #-1056]
	bl	moveline
	str	r0, [fp, #-1056]
	b	.L18
.L7:
	ldr	r1, [fp, #-1036]
	ldr	r0, [fp, #-1056]
	bl	writelines
	ldr	r1, [fp, #-1036]
	ldr	r0, .L34+20
	bl	printf
	b	.L18
.L13:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #46
	mov	r1, #1024
	mov	r0, r3
	bl	readstdin
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1052]
	bl	insertstring
	str	r0, [fp, #-1048]
	ldr	r2, [fp, #-1056]
	ldr	r3, [fp, #-1052]
	cmp	r2, r3
	bne	.L32
	ldr	r3, [fp, #-1048]
	str	r3, [fp, #-1056]
	b	.L32
.L15:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #46
	mov	r1, #1024
	mov	r0, r3
	bl	readstdin
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1052]
	bl	appendstring
	b	.L18
.L8:
	ldr	r3, [fp, #-1052]
	ldr	r2, [r3, #8]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #2
	mov	r1, r3
	mov	r0, r2
	bl	findsubstring
	str	r0, [fp, #-1048]
	ldr	r3, [fp, #-1048]
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-1048]
	str	r3, [fp, #-1052]
	b	.L18
.L26:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #2
	mov	r1, r3
	ldr	r0, .L34+24
	bl	printf
	b	.L18
.L5:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-1052]
	bl	runcommand
	str	r0, [fp, #-1040]
	ldr	r3, [fp, #-1040]
	cmp	r3, #0
	bne	.L33
	ldr	r0, .L34+28
	bl	puts
	b	.L33
.L4:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-1056]
	bl	findline
	str	r0, [fp, #-1048]
	ldr	r3, [fp, #-1048]
	cmp	r3, #0
	bne	.L29
	ldr	r0, .L34+32
	bl	puts
	b	.L18
.L29:
	ldr	r3, [fp, #-1048]
	str	r3, [fp, #-1052]
	b	.L18
.L32:
	nop
	b	.L18
.L33:
	nop
.L18:
	ldr	r0, .L34+36
	bl	puts
.L3:
	ldr	r3, [fp, #-1044]
	cmp	r3, #0
	beq	.L30
	ldr	r0, [fp, #-1056]
	bl	freelines
	mov	r0, #0
	bl	exit
.L35:
	.align	2
.L34:
	.word	.LC8
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.align	2
	.global	readstdin
	.syntax unified
	.arm
	.fpu softvfp
	.type	readstdin, %function
readstdin:
	@ args = 0, pretend = 0, frame = 24
	@ 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]
	mov	r3, r2
	strb	r3, [fp, #-21]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L37
.L39:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bge	.L38
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [fp, #-9]
	strb	r2, [r3]
.L38:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L37:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-9]
	ldrb	r2, [fp, #-9]	@ zero_extendqisi2
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L39
.L41:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L40
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L41
.L40:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bge	.L42
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L44
.L42:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L44:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	readstdin, .-readstdin
	.align	2
	.global	insertline
	.syntax unified
	.arm
	.fpu softvfp
	.type	insertline, %function
insertline:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L49
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L48
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #8]
.L48:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L45
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #12]
	b	.L45
.L49:
	nop
.L45:
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	insertline, .-insertline
	.section	.rodata
	.align	2
.LC9:
	.ascii	"malloc\000"
	.text
	.align	2
	.global	createline
	.syntax unified
	.arm
	.fpu softvfp
	.type	createline, %function
createline:
	@ args = 0, pretend = 0, frame = 24
	@ 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]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L51
	ldr	r0, .L53
	bl	perror
	mov	r0, #2
	bl	exit
.L51:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-8]
	bl	insertline
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC9
	.size	createline, .-createline
	.align	2
	.global	unlinkline
	.syntax unified
	.arm
	.fpu softvfp
	.type	unlinkline, %function
unlinkline:
	@ 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]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L56
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #12]
.L56:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L58
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #8]
.L58:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	unlinkline, .-unlinkline
	.align	2
	.global	deleteline
	.syntax unified
	.arm
	.fpu softvfp
	.type	deleteline, %function
deleteline:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	unlinkline
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-24]
	bl	free
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L60
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L60
	mov	r0, #1
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	mov	r2, #0
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	createline
	mov	r3, r0
	b	.L61
.L60:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L62
	ldr	r3, [fp, #-12]
	b	.L61
.L62:
	ldr	r3, [fp, #-16]
.L61:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	deleteline, .-deleteline
	.align	2
	.global	moveline
	.syntax unified
	.arm
	.fpu softvfp
	.type	moveline, %function
moveline:
	@ args = 0, pretend = 0, frame = 24
	@ 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]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bgt	.L64
	ldr	r0, [fp, #-20]
	bl	unlinkline
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	insertline
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
	b	.L65
.L64:
	mov	r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	b	.L66
.L68:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L66:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L67
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L68
.L67:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	beq	.L65
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L69
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-16]
.L69:
	ldr	r0, [fp, #-20]
	bl	unlinkline
	ldr	r3, [fp, #-24]
	cmp	r3, #36
	bne	.L70
	mov	r2, #0
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-20]
	bl	insertline
	b	.L71
.L70:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	insertline
.L71:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bne	.L65
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
.L65:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	moveline, .-moveline
	.align	2
	.global	setlines
	.syntax unified
	.arm
	.fpu softvfp
	.type	setlines, %function
setlines:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-28]
	b	.L74
.L83:
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L75
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	beq	.L76
.L75:
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L77
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L78
.L77:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L79
	ldr	r0, .L86
	bl	perror
	mov	r0, #2
	bl	exit
.L79:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L80
.L81:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L80:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bne	.L81
	ldr	r1, [fp, #-12]
	mov	r3, #0
	ldr	r2, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	createline
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L78
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
.L78:
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L85
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L74:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L83
	b	.L76
.L85:
	nop
.L76:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L87:
	.align	2
.L86:
	.word	.LC9
	.size	setlines, .-setlines
	.align	2
	.global	insertstring
	.syntax unified
	.arm
	.fpu softvfp
	.type	insertstring, %function
insertstring:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-28]
	bl	setlines
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	insertline
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
	b	.L89
.L90:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-16]
.L89:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L90
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-24]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	insertline
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	insertstring, .-insertstring
	.align	2
	.global	appendstring
	.syntax unified
	.arm
	.fpu softvfp
	.type	appendstring, %function
appendstring:
	@ 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, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L93
	ldr	r0, [fp, #-20]
	bl	setlines
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	insertline
	b	.L94
.L93:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	insertstring
	str	r0, [fp, #-12]
.L94:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	appendstring, .-appendstring
	.align	2
	.global	findsubstring
	.syntax unified
	.arm
	.fpu softvfp
	.type	findsubstring, %function
findsubstring:
	@ 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]
	b	.L97
.L100:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L98
	ldr	r3, [fp, #-8]
	b	.L99
.L98:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
.L97:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L100
	mov	r3, #0
.L99:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	findsubstring, .-findsubstring
	.section	.rodata
	.align	2
.LC10:
	.ascii	"r\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readlines
	.syntax unified
	.arm
	.fpu softvfp
	.type	readlines, %function
readlines:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-120]
	ldr	r3, .L107
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L107+4
	ldr	r0, [fp, #-120]
	bl	fopen
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L102
	mov	r0, #1
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-104]
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	mov	r2, #0
	mov	r1, #1
	ldr	r0, [fp, #-104]
	bl	createline
	str	r0, [fp, #-116]
	b	.L103
.L102:
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-120]
	bl	stat
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-108]
	ldr	r0, [fp, #-108]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bne	.L104
	ldr	r0, .L107+8
	bl	perror
	mov	r0, #2
	bl	exit
.L104:
	ldr	r3, [fp, #-112]
	mov	r2, #1
	ldr	r1, [fp, #-108]
	ldr	r0, [fp, #-104]
	bl	fread
	ldr	r0, [fp, #-112]
	bl	fclose
	ldr	r0, [fp, #-104]
	bl	setlines
	str	r0, [fp, #-116]
	ldr	r0, [fp, #-104]
	bl	free
.L103:
	ldr	r3, [fp, #-116]
	ldr	r2, .L107
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L106
	bl	__stack_chk_fail
.L106:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L108:
	.align	2
.L107:
	.word	.LC11
	.word	.LC10
	.word	.LC9
	.size	readlines, .-readlines
	.section	.rodata
	.align	2
.LC12:
	.ascii	" \000"
	.align	2
.LC13:
	.ascii	"1\000"
	.align	2
.LC14:
	.ascii	"0\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	runcommand
	.syntax unified
	.arm
	.fpu softvfp
	.type	runcommand, %function
runcommand:
	@ args = 0, pretend = 0, frame = 184
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #184
	str	r0, [fp, #-184]
	str	r1, [fp, #-188]
	ldr	r3, .L122
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L122+4
	ldr	r0, [fp, #-188]
	bl	strtok
	mov	r3, r0
	str	r3, [fp, #-140]
	mov	r3, #1
	str	r3, [fp, #-172]
	b	.L110
.L113:
	ldr	r1, .L122+4
	mov	r0, #0
	bl	strtok
	mov	r2, r0
	ldr	r3, [fp, #-172]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-136]
	ldr	r3, [fp, #-172]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-136]
	cmp	r3, #0
	beq	.L121
	ldr	r3, [fp, #-172]
	add	r3, r3, #1
	str	r3, [fp, #-172]
.L110:
	ldr	r3, [fp, #-172]
	cmp	r3, #31
	ble	.L113
	b	.L112
.L121:
	nop
.L112:
	sub	r3, fp, #164
	mov	r0, r3
	bl	pipe
	ldr	r0, [fp, #-160]
	ldr	r3, [fp, #-184]
	ldr	r1, [r3]
	ldr	r3, [fp, #-184]
	ldr	r3, [r3, #4]
	mov	r2, r3
	bl	write
	ldr	r3, [fp, #-160]
	mov	r0, r3
	bl	close
	sub	r3, fp, #156
	mov	r0, r3
	bl	pipe
	sub	r3, fp, #148
	mov	r0, r3
	bl	pipe
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-168]
	ldr	r3, [fp, #-168]
	cmp	r3, #0
	beq	.L114
	ldr	r3, [fp, #-144]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-164]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-152]
	mov	r0, r3
	bl	close
	sub	r3, fp, #176
	mov	r0, r3
	bl	wait
	ldr	r3, [fp, #-148]
	sub	r1, fp, #12
	mov	r2, #1
	mov	r0, r3
	bl	read
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L115
	mov	r3, #0
	b	.L119
.L115:
	ldr	r0, [fp, #-156]
	ldr	r3, [fp, #-184]
	ldr	r1, [r3]
	ldr	r3, [fp, #-184]
	ldr	r3, [r3, #4]
	mov	r2, r3
	bl	read
	ldr	r3, [fp, #-156]
	mov	r0, r3
	bl	close
	mov	r3, #1
	b	.L119
.L114:
	mov	r0, #1
	bl	close
	ldr	r3, [fp, #-152]
	mov	r0, r3
	bl	dup
	mov	r0, #0
	bl	close
	ldr	r3, [fp, #-164]
	mov	r0, r3
	bl	dup
	ldr	r3, [fp, #-140]
	sub	r2, fp, #140
	mov	r1, r2
	mov	r0, r3
	bl	execvp
	mov	r3, r0
	cmn	r3, #1
	bne	.L117
	ldr	r3, [fp, #-144]
	mov	r2, #1
	ldr	r1, .L122+8
	mov	r0, r3
	bl	write
	b	.L118
.L117:
	ldr	r3, [fp, #-148]
	mov	r2, #1
	ldr	r1, .L122+12
	mov	r0, r3
	bl	write
.L118:
	mov	r0, #0
	bl	exit
.L119:
	ldr	r2, .L122
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L120
	bl	__stack_chk_fail
.L120:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L123:
	.align	2
.L122:
	.word	.LC15
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	runcommand, .-runcommand
	.section	.rodata
	.align	2
.LC16:
	.ascii	"w\000"
	.align	2
.LC17:
	.ascii	"fopen\000"
	.align	2
.LC18:
	.ascii	"\012\000"
	.text
	.align	2
	.global	writelines
	.syntax unified
	.arm
	.fpu softvfp
	.type	writelines, %function
writelines:
	@ 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, #-16]
	str	r1, [fp, #-20]
	ldr	r1, .L128
	ldr	r0, [fp, #-20]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L126
	ldr	r0, .L128+4
	bl	perror
	mov	r0, #3
	bl	exit
.L127:
	ldr	r3, [fp, #-16]
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r3, [fp, #-8]
	mov	r2, #1
	bl	fwrite
	ldr	r3, [fp, #-8]
	mov	r2, #1
	mov	r1, #1
	ldr	r0, .L128+8
	bl	fwrite
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-16]
.L126:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L127
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L129:
	.align	2
.L128:
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	writelines, .-writelines
	.align	2
	.global	findline
	.syntax unified
	.arm
	.fpu softvfp
	.type	findline, %function
findline:
	@ 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, #-20]
	cmp	r3, #0
	bgt	.L131
	mov	r3, #0
	b	.L132
.L131:
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L133
.L135:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bne	.L134
	ldr	r3, [fp, #-16]
	b	.L132
.L134:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L133:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L135
	ldr	r3, [fp, #-16]
.L132:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	findline, .-findline
	.align	2
	.global	freelines
	.syntax unified
	.arm
	.fpu softvfp
	.type	freelines, %function
freelines:
	@ 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, #-16]
	b	.L137
.L138:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
.L137:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L138
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	freelines, .-freelines
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
