	.file	"276603.c"
	.intel_syntax noprefix
	.text
	.globl	createLine
	.type	createLine, @function
createLine:
.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	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	mov	eax, 0
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	createLine, .-createLine
	.globl	getLine
	.type	getLine, @function
getLine:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	cmp	QWORD PTR -40[rbp], 0
	jne	.L5
	mov	eax, 0
	jmp	.L6
.L5:
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L7
	mov	eax, 0
	jmp	.L6
.L7:
	mov	DWORD PTR -28[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -29[rbp], al
	jmp	.L8
.L12:
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	and	eax, 31
	test	eax, eax
	jne	.L9
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 33
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L10
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L6
.L10:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -24[rbp], rax
.L9:
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -28[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -29[rbp]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -29[rbp], al
.L8:
	cmp	BYTE PTR -29[rbp], 10
	je	.L11
	cmp	BYTE PTR -29[rbp], -1
	jne	.L12
.L11:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L13
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L6
.L13:
	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	rax, QWORD PTR -8[rbp]
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getLine, .-getLine
	.globl	createList
	.type	createList, @function
createList:
.LFB8:
	.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	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L15
	mov	eax, 0
	jmp	.L16
.L15:
	mov	edi, 256
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L17
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L16
.L17:
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	createList, .-createList
	.globl	addLine
	.type	addLine, @function
addLine:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	je	.L19
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 8[rax]
	and	eax, 31
	test	eax, eax
	jne	.L19
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 8[rax]
	add	eax, 32
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L20
	mov	eax, -1
	jmp	.L21
.L20:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
.L19:
	mov	eax, 0
	call	createLine
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 8[rax]
	add	eax, 1
	cdqe
	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	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L22
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, -1
	jmp	.L21
.L22:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR 8[rax]
	lea	ecx, 1[rdx]
	mov	DWORD PTR 8[rax], ecx
	movsx	rax, edx
	sal	rax, 3
	lea	rdx, [rsi+rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
	mov	eax, 0
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	addLine, .-addLine
	.globl	freeLine
	.type	freeLine, @function
freeLine:
.LFB10:
	.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	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	freeLine, .-freeLine
	.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -28[rbp], eax
	jge	.L26
	cmp	DWORD PTR -28[rbp], 0
	js	.L26
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	freeLine
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L27
.L28:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, 1
	sal	rax, 3
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR [rcx]
	mov	QWORD PTR [rdx], rax
	add	DWORD PTR -4[rbp], 1
.L27:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 8[rax]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jl	.L28
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR 8[rax]
	sub	edx, 1
	mov	DWORD PTR 8[rax], edx
	mov	eax, 0
	jmp	.L29
.L26:
	mov	eax, 1
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	deleteLine, .-deleteLine
	.globl	freeList
	.type	freeList, @function
freeList:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L31
.L32:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	freeLine
	add	DWORD PTR -4[rbp], 1
.L31:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L32
	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	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	freeList, .-freeList
	.globl	printLine
	.type	printLine, @function
printLine:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	puts@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	printLine, .-printLine
	.section	.rodata
.LC0:
	.string	"clear"
.LC1:
	.string	"*** Help ***\n"
	.align 8
.LC2:
	.string	"-> Type 'add <task name>' to add a task."
	.align 8
.LC3:
	.string	"-> Type 'remove <task number>' to complete a task and remove it from the list."
	.align 8
.LC4:
	.string	"-> Type 'history' to view commands used in current session."
	.align 8
.LC5:
	.string	"-> Type 'exit' to save and exit."
	.align 8
.LC6:
	.string	"\nEnd of help.\nPress ENTER to go back.."
	.text
	.globl	printHelp
	.type	printHelp, @function
printHelp:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	system@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	printHelp, .-printHelp
	.section	.rodata
.LC7:
	.string	"r"
.LC8:
	.string	"tasks.txt"
	.text
	.globl	countTasks
	.type	countTasks, @function
countTasks:
.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
	cmp	QWORD PTR -24[rbp], 0
	jne	.L39
	mov	eax, 1
	jmp	.L40
.L39:
	lea	rsi, .LC7[rip]
	lea	rdi, .LC8[rip]
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -5[rbp], al
	jmp	.L41
.L43:
	cmp	BYTE PTR -5[rbp], 10
	jne	.L42
	add	DWORD PTR -4[rbp], 1
.L42:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -5[rbp], al
.L41:
	cmp	BYTE PTR -5[rbp], -1
	jne	.L43
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -4[rbp]
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	countTasks, .-countTasks
	.section	.rodata
.LC9:
	.string	"*** Tasks to do ***\n"
	.align 8
.LC10:
	.string	"-> No tasks here yet, add one with \"add <task>\"."
.LC11:
	.string	"%d. %s\n"
.LC12:
	.string	"\ncommand> "
	.text
	.globl	printTasksUI
	.type	printTasksUI, @function
printTasksUI:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rdi, .LC0[rip]
	call	system@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	jne	.L45
	lea	rdi, .LC10[rip]
	call	puts@PLT
	jmp	.L46
.L45:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L47
.L48:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -4[rbp]
	lea	ecx, 1[rdx]
	mov	rdx, rax
	mov	esi, ecx
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L47:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L48
.L46:
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	printTasksUI, .-printTasksUI
	.section	.rodata
.LC13:
	.string	"*** History ***\n"
.LC14:
	.string	"No history yet."
.LC15:
	.string	"-> %s\n"
.LC16:
	.string	"\nEnd of history."
.LC17:
	.string	"\nPress ENTER to go back.."
	.text
	.globl	printHistoryUI
	.type	printHistoryUI, @function
printHistoryUI:
.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 -24[rbp], rdi
	lea	rdi, .LC0[rip]
	call	system@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	jne	.L51
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L52
.L51:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L53
.L54:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L53:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L54
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
.L52:
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	printHistoryUI, .-printHistoryUI
	.section	.rodata
	.align 8
.LC18:
	.string	"\nInvalid command! (Try \"h\" for help)\nPress ENTER to try again.."
	.text
	.globl	invalidCommand
	.type	invalidCommand, @function
invalidCommand:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	invalidCommand, .-invalidCommand
	.section	.rodata
	.align 8
.LC19:
	.string	"\nPlease enter a valid number! (Try \"h\" for help)\nPress ENTER to try again.."
	.text
	.globl	invalidNumber
	.type	invalidNumber, @function
invalidNumber:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	invalidNumber, .-invalidNumber
	.globl	add
	.type	add, @function
add:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 8[rax]
	sub	eax, 3
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L61
	mov	eax, -1
	jmp	.L62
.L61:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, 0
	call	createLine
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, -4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	addLine
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	freeLine
	mov	eax, 0
.L62:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	add, .-add
	.section	.rodata
.LC20:
	.string	"%d"
	.text
	.globl	rem
	.type	rem, @function
rem:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 7
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L73
	mov	DWORD PTR -28[rbp], 0
	jmp	.L66
.L68:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L74
	add	DWORD PTR -28[rbp], 1
.L66:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L68
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR -32[rbp]
	cmp	edx, eax
	jl	.L75
	mov	eax, DWORD PTR -32[rbp]
	test	eax, eax
	jle	.L75
	mov	eax, 0
	call	createLine
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 8[rax]
	add	eax, 10
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L69
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, -1
	jmp	.L71
.L69:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	movabs	rcx, 4207599511220872562
	mov	QWORD PTR [rax], rcx
	mov	WORD PTR 8[rax], 32
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 9[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	addLine
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	freeLine
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	deleteLine
	mov	eax, 0
	jmp	.L71
.L73:
	nop
	jmp	.L65
.L74:
	nop
	jmp	.L65
.L75:
	nop
.L65:
	mov	eax, 0
	call	invalidNumber
	mov	eax, 1
.L71:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L72
	call	__stack_chk_fail@PLT
.L72:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	rem, .-rem
	.section	.rodata
.LC21:
	.string	"add "
.LC22:
	.string	"remove "
.LC23:
	.string	"history"
.LC24:
	.string	"h"
	.text
	.globl	commandCheck
	.type	commandCheck, @function
commandCheck:
.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	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rdx]
	cmp	rax, rdx
	jne	.L77
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	add
	jmp	.L78
.L77:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rdx]
	cmp	rax, rdx
	jne	.L79
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	rem
	jmp	.L78
.L79:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L80
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	printHistoryUI
	jmp	.L78
.L80:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L81
	mov	eax, 0
	call	printHelp
	jmp	.L78
.L81:
	mov	eax, 0
	call	invalidCommand
.L78:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	commandCheck, .-commandCheck
	.section	.rodata
.LC25:
	.string	"a+"
.LC26:
	.string	"%s\n"
	.text
	.globl	saveFile
	.type	saveFile, @function
saveFile:
.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	lea	rdi, .LC8[rip]
	call	remove@PLT
	lea	rsi, .LC25[rip]
	lea	rdi, .LC8[rip]
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -4[rbp], 0
	jmp	.L84
.L85:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -4[rbp], 1
.L84:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L85
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	saveFile, .-saveFile
	.section	.rodata
	.align 8
.LC27:
	.string	"\"tasks.txt\" not found, do you want to create a new blank file? Press ENTER to continue or [Ctrl + C] to cancel.."
.LC28:
	.string	"exit"
	.text
	.globl	main
	.type	main, @function
main:
.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC7[rip]
	lea	rdi, .LC8[rip]
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L88
	mov	eax, 0
	call	createList
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -52[rbp], 0
	jmp	.L89
.L90:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	getLine
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	addLine
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	freeLine
	add	DWORD PTR -52[rbp], 1
.L89:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	countTasks
	cmp	DWORD PTR -52[rbp], eax
	jl	.L90
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L91
.L88:
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	lea	rsi, .LC25[rip]
	lea	rdi, .LC8[rip]
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	call	createList
	mov	QWORD PTR -48[rbp], rax
	lea	rdi, .LC0[rip]
	call	system@PLT
.L91:
	mov	eax, 0
	call	createList
	mov	QWORD PTR -40[rbp], rax
.L95:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	printTasksUI
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	getLine
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L92
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	freeLine
	nop
	lea	rdi, .LC0[rip]
	call	system@PLT
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	saveFile
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	freeList
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	freeList
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L97
	jmp	.L98
.L92:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L94
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	addLine
.L94:
	lea	rdx, -40[rbp]
	lea	rcx, -48[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	commandCheck
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	freeLine
	jmp	.L95
.L98:
	call	__stack_chk_fail@PLT
.L97:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.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	"276603.c"
	.text
	.align	2
	.global	createLine
	.syntax unified
	.arm
	.fpu softvfp
	.type	createLine, %function
createLine:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	mov	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	createLine, .-createLine
	.align	2
	.global	getLine
	.syntax unified
	.arm
	.fpu softvfp
	.type	getLine, %function
getLine:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L5
	mov	r3, #0
	b	.L6
.L5:
	mov	r0, #32
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L7
	mov	r3, #0
	b	.L6
.L7:
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-32]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-21]
	b	.L8
.L11:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	and	r3, r3, #31
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-16]
	add	r3, r3, #33
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	realloc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L10
	ldr	r0, [fp, #-20]
	bl	free
	mov	r3, #0
	b	.L6
.L10:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-20]
.L9:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldrb	r2, [fp, #-21]
	strb	r2, [r3]
	ldr	r0, [fp, #-32]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-21]
.L8:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L11
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L12
	ldr	r0, [fp, #-20]
	bl	free
	mov	r3, #0
	b	.L6
.L12:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	getLine, .-getLine
	.align	2
	.global	createList
	.syntax unified
	.arm
	.fpu softvfp
	.type	createList, %function
createList:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L14
	mov	r3, #0
	b	.L15
.L14:
	mov	r0, #128
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L16
	ldr	r0, [fp, #-8]
	bl	free
	mov	r3, #0
	b	.L15
.L16:
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	createList, .-createList
	.align	2
	.global	addLine
	.syntax unified
	.arm
	.fpu softvfp
	.type	addLine, %function
addLine:
	@ 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]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	and	r3, r3, #31
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	add	r3, r3, #32
	lsl	r3, r3, #2
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L19
	mvn	r3, #0
	b	.L20
.L19:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
.L18:
	bl	createLine
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L21
	ldr	r0, [fp, #-8]
	bl	free
	mvn	r3, #0
	b	.L20
.L21:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [r3, #4]
	add	r0, r2, #1
	str	r0, [r3, #4]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	mov	r3, #0
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	addLine, .-addLine
	.align	2
	.global	freeLine
	.syntax unified
	.arm
	.fpu softvfp
	.type	freeLine, %function
freeLine:
	@ 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]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-8]
	bl	free
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	freeLine, .-freeLine
	.align	2
	.global	deleteLine
	.syntax unified
	.arm
	.fpu softvfp
	.type	deleteLine, %function
deleteLine:
	@ 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]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bge	.L25
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L25
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	freeLine
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	b	.L26
.L27:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L26:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L27
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [r3, #4]
	sub	r2, r2, #1
	str	r2, [r3, #4]
	mov	r3, #0
	b	.L28
.L25:
	mov	r3, #1
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	deleteLine, .-deleteLine
	.align	2
	.global	freeList
	.syntax unified
	.arm
	.fpu softvfp
	.type	freeList, %function
freeList:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L30
.L31:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	freeLine
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L30:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L31
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-16]
	bl	free
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	freeList, .-freeList
	.align	2
	.global	printLine
	.syntax unified
	.arm
	.fpu softvfp
	.type	printLine, %function
printLine:
	@ 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]
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	printLine, .-printLine
	.section	.rodata
	.align	2
.LC0:
	.ascii	"clear\000"
	.align	2
.LC1:
	.ascii	"*** Help ***\012\000"
	.align	2
.LC2:
	.ascii	"-> Type 'add <task name>' to add a task.\000"
	.align	2
.LC3:
	.ascii	"-> Type 'remove <task number>' to complete a task a"
	.ascii	"nd remove it from the list.\000"
	.align	2
.LC4:
	.ascii	"-> Type 'history' to view commands used in current "
	.ascii	"session.\000"
	.align	2
.LC5:
	.ascii	"-> Type 'exit' to save and exit.\000"
	.align	2
.LC6:
	.ascii	"\012End of help.\012Press ENTER to go back..\000"
	.text
	.align	2
	.global	printHelp
	.syntax unified
	.arm
	.fpu softvfp
	.type	printHelp, %function
printHelp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L37
	bl	system
	ldr	r0, .L37+4
	bl	puts
	ldr	r0, .L37+8
	bl	puts
	ldr	r0, .L37+12
	bl	puts
	ldr	r0, .L37+16
	bl	puts
	ldr	r0, .L37+20
	bl	puts
	ldr	r0, .L37+24
	bl	printf
	bl	getchar
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	printHelp, .-printHelp
	.section	.rodata
	.align	2
.LC7:
	.ascii	"r\000"
	.align	2
.LC8:
	.ascii	"tasks.txt\000"
	.text
	.align	2
	.global	countTasks
	.syntax unified
	.arm
	.fpu softvfp
	.type	countTasks, %function
countTasks:
	@ 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]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L40
	mov	r3, #1
	b	.L44
.L40:
	ldr	r1, .L45
	ldr	r0, .L45+4
	bl	fopen
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-9]
.L43:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L42
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L42:
	ldr	r0, [fp, #-16]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-9]
	b	.L43
.L44:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC7
	.word	.LC8
	.size	countTasks, .-countTasks
	.section	.rodata
	.align	2
.LC9:
	.ascii	"*** Tasks to do ***\012\000"
	.align	2
.LC10:
	.ascii	"-> No tasks here yet, add one with \"add <task>\".\000"
	.align	2
.LC11:
	.ascii	"%d. %s\012\000"
	.align	2
.LC12:
	.ascii	"\012command> \000"
	.text
	.align	2
	.global	printTasksUI
	.syntax unified
	.arm
	.fpu softvfp
	.type	printTasksUI, %function
printTasksUI:
	@ 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]
	ldr	r0, .L53
	bl	system
	ldr	r0, .L53+4
	bl	puts
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L48
	ldr	r0, .L53+8
	bl	puts
	b	.L49
.L48:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L50
.L51:
	ldr	r3, [fp, #-8]
	add	r1, r3, #1
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L53+12
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L50:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L51
.L49:
	ldr	r0, .L53+16
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC0
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	printTasksUI, .-printTasksUI
	.section	.rodata
	.align	2
.LC13:
	.ascii	"*** History ***\012\000"
	.align	2
.LC14:
	.ascii	"No history yet.\000"
	.align	2
.LC15:
	.ascii	"-> %s\012\000"
	.align	2
.LC16:
	.ascii	"\012End of history.\000"
	.align	2
.LC17:
	.ascii	"\012Press ENTER to go back..\000"
	.text
	.align	2
	.global	printHistoryUI
	.syntax unified
	.arm
	.fpu softvfp
	.type	printHistoryUI, %function
printHistoryUI:
	@ 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]
	ldr	r0, .L61
	bl	system
	ldr	r0, .L61+4
	bl	puts
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L56
	ldr	r0, .L61+8
	bl	printf
	b	.L57
.L56:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L58
.L59:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L61+12
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L58:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L59
	ldr	r0, .L61+16
	bl	printf
.L57:
	ldr	r0, .L61+20
	bl	printf
	bl	getchar
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L62:
	.align	2
.L61:
	.word	.LC0
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	printHistoryUI, .-printHistoryUI
	.section	.rodata
	.align	2
.LC18:
	.ascii	"\012Invalid command! (Try \"h\" for help)\012Press "
	.ascii	"ENTER to try again..\000"
	.text
	.align	2
	.global	invalidCommand
	.syntax unified
	.arm
	.fpu softvfp
	.type	invalidCommand, %function
invalidCommand:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L65
	bl	printf
	bl	getchar
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L66:
	.align	2
.L65:
	.word	.LC18
	.size	invalidCommand, .-invalidCommand
	.section	.rodata
	.align	2
.LC19:
	.ascii	"\012Please enter a valid number! (Try \"h\" for hel"
	.ascii	"p)\012Press ENTER to try again..\000"
	.text
	.align	2
	.global	invalidNumber
	.syntax unified
	.arm
	.fpu softvfp
	.type	invalidNumber, %function
invalidNumber:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L69
	bl	printf
	bl	getchar
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	.LC19
	.size	invalidNumber, .-invalidNumber
	.align	2
	.global	add
	.syntax unified
	.arm
	.fpu softvfp
	.type	add, %function
add:
	@ 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, #-20]
	ldr	r3, [r3, #4]
	sub	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L72
	mvn	r3, #0
	b	.L73
.L72:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	strcpy
	bl	createLine
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	sub	r2, r3, #4
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	addLine
	ldr	r0, [fp, #-8]
	bl	freeLine
	mov	r3, #0
.L73:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	add, .-add
	.section	.rodata
	.align	2
.LC20:
	.ascii	"%d\000"
	.align	2
.LC21:
	.ascii	"removed: \000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	rem
	.syntax unified
	.arm
	.fpu softvfp
	.type	rem, %function
rem:
	@ 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, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L87
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	add	r3, r3, #7
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L84
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L77
.L79:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L85
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L77:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L79
	sub	r3, fp, #24
	mov	r2, r3
	ldr	r1, .L87+4
	ldr	r0, [fp, #-16]
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L86
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L86
	bl	createLine
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	add	r3, r3, #10
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L80
	ldr	r0, [fp, #-12]
	bl	free
	mvn	r3, #0
	b	.L82
.L80:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldr	r2, .L87+8
	mov	r0, r3
	mov	r1, r2
	mov	r3, #10
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-12]
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r1, r3
	bl	strcat
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	add	r2, r3, #9
	ldr	r3, [fp, #-12]
	str	r2, [r3, #4]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-40]
	bl	addLine
	ldr	r0, [fp, #-12]
	bl	freeLine
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	deleteLine
	mov	r3, #0
	b	.L82
.L84:
	nop
	b	.L76
.L85:
	nop
	b	.L76
.L86:
	nop
.L76:
	bl	invalidNumber
	mov	r3, #1
.L82:
	ldr	r2, .L87
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L83
	bl	__stack_chk_fail
.L83:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L88:
	.align	2
.L87:
	.word	.LC22
	.word	.LC20
	.word	.LC21
	.size	rem, .-rem
	.section	.rodata
	.align	2
.LC23:
	.ascii	"add \000"
	.align	2
.LC24:
	.ascii	"remove \000"
	.align	2
.LC25:
	.ascii	"history\000"
	.align	2
.LC26:
	.ascii	"h\000"
	.text
	.align	2
	.global	commandCheck
	.syntax unified
	.arm
	.fpu softvfp
	.type	commandCheck, %function
commandCheck:
	@ 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]
	ldr	r3, [r3]
	ldr	r1, .L96
	mov	r0, r3
	bl	strstr
	mov	r2, r0
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L90
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	add
	b	.L91
.L90:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r1, .L96+4
	mov	r0, r3
	bl	strstr
	mov	r2, r0
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L92
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	rem
	b	.L91
.L92:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r1, .L96+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L93
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	printHistoryUI
	b	.L91
.L93:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r1, .L96+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L94
	bl	printHelp
	b	.L91
.L94:
	bl	invalidCommand
.L91:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L97:
	.align	2
.L96:
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.size	commandCheck, .-commandCheck
	.section	.rodata
	.align	2
.LC27:
	.ascii	"a+\000"
	.align	2
.LC28:
	.ascii	"%s\012\000"
	.text
	.align	2
	.global	saveFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	saveFile, %function
saveFile:
	@ 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	r0, .L102
	bl	remove
	ldr	r1, .L102+4
	ldr	r0, .L102
	bl	fopen
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L99
.L100:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L102+8
	ldr	r0, [fp, #-16]
	bl	fprintf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L99:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L100
	ldr	r0, [fp, #-16]
	bl	fclose
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L103:
	.align	2
.L102:
	.word	.LC8
	.word	.LC27
	.word	.LC28
	.size	saveFile, .-saveFile
	.section	.rodata
	.align	2
.LC29:
	.ascii	"\"tasks.txt\" not found, do you want to create a ne"
	.ascii	"w blank file? Press ENTER to continue or [Ctrl + C]"
	.ascii	" to cancel..\000"
	.align	2
.LC30:
	.ascii	"exit\000"
	.align	2
.LC31:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L116
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L116+4
	ldr	r0, .L116+8
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L105
	bl	createList
	mov	r3, r0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L106
.L107:
	ldr	r0, [fp, #-24]
	bl	getLine
	str	r0, [fp, #-16]
	sub	r3, fp, #32
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	addLine
	ldr	r0, [fp, #-16]
	bl	freeLine
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L106:
	ldr	r0, [fp, #-24]
	bl	countTasks
	mov	r2, r0
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	blt	.L107
	ldr	r0, [fp, #-24]
	bl	fclose
	b	.L108
.L105:
	ldr	r0, .L116+12
	bl	printf
	bl	getchar
	ldr	r1, .L116+16
	ldr	r0, .L116+8
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	fclose
	bl	createList
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r0, .L116+20
	bl	system
.L108:
	bl	createList
	mov	r3, r0
	str	r3, [fp, #-28]
.L112:
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	printTasksUI
	ldr	r3, .L116+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	getLine
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldr	r1, .L116+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L109
	ldr	r0, [fp, #-12]
	bl	freeLine
	nop
	ldr	r0, .L116+20
	bl	system
	ldr	r3, [fp, #-32]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	saveFile
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	freeList
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	freeList
	mov	r3, #0
	ldr	r2, .L116
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L114
	b	.L115
.L109:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldr	r1, .L116+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L111
	sub	r3, fp, #28
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	addLine
.L111:
	sub	r2, fp, #28
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	commandCheck
	ldr	r0, [fp, #-12]
	bl	freeLine
	b	.L112
.L115:
	bl	__stack_chk_fail
.L114:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L117:
	.align	2
.L116:
	.word	.LC31
	.word	.LC7
	.word	.LC8
	.word	.LC29
	.word	.LC27
	.word	.LC0
	.word	stdin
	.word	.LC30
	.word	.LC25
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
