	.file	"211081749.c"
	.intel_syntax noprefix
	.text
	.globl	state
	.bss
	.align 4
	.type	state, @object
	.size	state, 4
state:
	.zero	4
	.globl	text
	.align 16
	.type	text, @object
	.size	text, 16
text:
	.zero	16
	.globl	currentTime
	.align 4
	.type	currentTime, @object
	.size	currentTime, 4
currentTime:
	.zero	4
	.globl	maxTime
	.align 4
	.type	maxTime, @object
	.size	maxTime, 4
maxTime:
	.zero	4
	.globl	undos
	.align 8
	.type	undos, @object
	.size	undos, 8
undos:
	.zero	8
	.globl	redos
	.align 8
	.type	redos, @object
	.size	redos, 8
redos:
	.zero	8
	.globl	in_buf
	.align 8
	.type	in_buf, @object
	.size	in_buf, 8
in_buf:
	.zero	8
	.globl	in_buf_size
	.align 8
	.type	in_buf_size, @object
	.size	in_buf_size, 8
in_buf_size:
	.zero	8
	.globl	in_len
	.align 8
	.type	in_len, @object
	.size	in_len, 8
in_len:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%d,%dc"
.LC1:
	.string	"%d,%dp"
.LC2:
	.string	"%d,%dd"
.LC3:
	.string	"%du"
.LC4:
	.string	"%dr"
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR text[rip+12], 8
	mov	DWORD PTR text[rip+8], 0
	mov	eax, DWORD PTR text[rip+12]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR text[rip], rax
	mov	DWORD PTR currentTime[rip], -1
	mov	DWORD PTR maxTime[rip], -1
	mov	QWORD PTR undos[rip], 0
	mov	QWORD PTR redos[rip], 0
	mov	QWORD PTR in_buf[rip], 0
	mov	QWORD PTR in_buf_size[rip], 0
	jmp	.L2
.L13:
	mov	QWORD PTR in_buf[rip], 0
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, rax
	lea	rsi, in_buf_size[rip]
	lea	rdi, in_buf[rip]
	call	getline@PLT
	mov	QWORD PTR in_len[rip], rax
	mov	rdx, QWORD PTR in_buf[rip]
	mov	rax, QWORD PTR in_len[rip]
	sub	rax, 2
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -17[rbp], al
	movsx	eax, BYTE PTR -17[rbp]
	sub	eax, 99
	cmp	eax, 18
	ja	.L3
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L5[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L5[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L10-.L5
	.long	.L9-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L8-.L5
	.long	.L7-.L5
	.long	.L6-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L4-.L5
	.text
.L10:
	mov	rax, QWORD PTR in_buf[rip]
	lea	rcx, -12[rbp]
	lea	rdx, -16[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR currentTime[rip]
	add	eax, 1
	mov	DWORD PTR currentTime[rip], eax
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, edx
	mov	edi, eax
	call	OnChange
	jmp	.L3
.L8:
	mov	rax, QWORD PTR in_buf[rip]
	lea	rcx, -12[rbp]
	lea	rdx, -16[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, edx
	mov	edi, eax
	call	OnPrint
	jmp	.L3
.L9:
	mov	rax, QWORD PTR in_buf[rip]
	lea	rcx, -12[rbp]
	lea	rdx, -16[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR currentTime[rip]
	add	eax, 1
	mov	DWORD PTR currentTime[rip], eax
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, edx
	mov	edi, eax
	call	OnDelete
	jmp	.L3
.L4:
	mov	rax, QWORD PTR in_buf[rip]
	lea	rdx, -16[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	OnUndo
	jmp	.L3
.L6:
	mov	rax, QWORD PTR in_buf[rip]
	lea	rdx, -16[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	OnRedo
	jmp	.L3
.L7:
	mov	DWORD PTR state[rip], -1
	nop
.L3:
	mov	eax, DWORD PTR currentTime[rip]
	test	eax, eax
	jns	.L11
	mov	DWORD PTR currentTime[rip], 0
.L11:
	mov	edx, DWORD PTR currentTime[rip]
	mov	eax, DWORD PTR maxTime[rip]
	cmp	edx, eax
	jle	.L12
	mov	eax, DWORD PTR currentTime[rip]
	mov	DWORD PTR maxTime[rip], eax
.L12:
	mov	eax, 0
	call	Recap
.L2:
	mov	eax, DWORD PTR state[rip]
	test	eax, eax
	jns	.L13
	mov	rax, QWORD PTR in_buf[rip]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR in_buf[rip], 0
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC5:
	.string	"."
.LC6:
	.string	"%s"
	.text
	.globl	OnPrint
	.type	OnPrint, @function
OnPrint:
.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L17
.L21:
	mov	eax, DWORD PTR text[rip+8]
	cmp	DWORD PTR -4[rbp], eax
	jg	.L18
	cmp	DWORD PTR -4[rbp], 0
	jne	.L19
.L18:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L20
.L19:
	mov	rdx, QWORD PTR text[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L20:
	add	DWORD PTR -4[rbp], 1
.L17:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L21
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	OnPrint, .-OnPrint
	.section	.rodata
.LC7:
	.string	"%*c%c"
	.text
	.globl	OnChange
	.type	OnChange, @function
OnChange:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	CheckTextCapacity
	mov	rax, QWORD PTR undos[rip]
	mov	rdi, rax
	call	InitEdit
	mov	QWORD PTR undos[rip], rax
	mov	rax, QWORD PTR undos[rip]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	jne	.L23
	mov	rax, QWORD PTR undos[rip]
	mov	rdi, rax
	call	InitEditLines
.L23:
	mov	rax, QWORD PTR undos[rip]
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR 28[rax], edx
	mov	rax, QWORD PTR undos[rip]
	mov	BYTE PTR 24[rax], 115
	mov	rax, QWORD PTR redos[rip]
	mov	rdi, rax
	call	InitEdit
	mov	QWORD PTR redos[rip], rax
	mov	rax, QWORD PTR redos[rip]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	jne	.L24
	mov	rax, QWORD PTR redos[rip]
	mov	rdi, rax
	call	InitEditLines
.L24:
	mov	rax, QWORD PTR redos[rip]
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR 28[rax], edx
	mov	rax, QWORD PTR redos[rip]
	mov	BYTE PTR 24[rax], 99
	mov	rax, QWORD PTR undos[rip]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR redos[rip]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR undos[rip]
	mov	edx, DWORD PTR text[rip+8]
	mov	DWORD PTR 32[rax], edx
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -28[rbp], eax
	jmp	.L25
.L28:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 16[rax]
	test	eax, eax
	jle	.L26
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L26
	mov	edi, 24
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
.L26:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 16[rax]
	test	eax, eax
	jle	.L27
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L27
	mov	edi, 24
	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]
	mov	DWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
.L27:
	mov	QWORD PTR in_buf[rip], 0
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, rax
	lea	rsi, in_buf_size[rip]
	lea	rdi, in_buf[rip]
	call	getline@PLT
	mov	QWORD PTR in_len[rip], rax
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	NewLineRequired
	mov	rdx, QWORD PTR text[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rdx, QWORD PTR text[rip]
	mov	eax, DWORD PTR -28[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 -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], 0
	mov	rdx, QWORD PTR in_buf_size[rip]
	mov	eax, DWORD PTR -28[rbp]
	lea	rsi, in_buf[rip]
	mov	edi, eax
	call	SetLineContent
	mov	rdx, QWORD PTR text[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rdx, QWORD PTR text[rip]
	mov	eax, DWORD PTR -28[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	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], 0
	add	DWORD PTR -28[rbp], 1
.L25:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jle	.L28
	mov	rax, QWORD PTR redos[rip]
	mov	edx, DWORD PTR text[rip+8]
	mov	DWORD PTR 32[rax], edx
	lea	rax, -29[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	OnChange, .-OnChange
	.globl	OnDelete
	.type	OnDelete, @function
OnDelete:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	rax, QWORD PTR undos[rip]
	mov	rdi, rax
	call	InitEdit
	mov	QWORD PTR undos[rip], rax
	mov	rax, QWORD PTR undos[rip]
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR 28[rax], edx
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR undos[rip]
	add	edx, 1
	mov	DWORD PTR 32[rax], edx
	mov	rbx, QWORD PTR undos[rip]
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	edi, eax
	call	GetLinesForInsert
	mov	QWORD PTR 40[rbx], rax
	mov	rax, QWORD PTR undos[rip]
	mov	BYTE PTR 24[rax], 105
	mov	rax, QWORD PTR redos[rip]
	mov	rdi, rax
	call	InitEdit
	mov	QWORD PTR redos[rip], rax
	mov	rax, QWORD PTR redos[rip]
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR 28[rax], edx
	mov	rax, QWORD PTR redos[rip]
	mov	edx, DWORD PTR -40[rbp]
	mov	DWORD PTR 32[rax], edx
	mov	rax, QWORD PTR redos[rip]
	mov	BYTE PTR 24[rax], 100
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, DWORD PTR -36[rbp]
	add	eax, 1
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	mov	DWORD PTR -20[rbp], eax
	mov	ecx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	edi, eax
	call	ShiftLines
	mov	eax, DWORD PTR -24[rbp]
	neg	eax
	mov	edi, eax
	call	ResizeText
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	OnDelete, .-OnDelete
	.globl	OnUndo
	.type	OnUndo, @function
OnUndo:
.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	DWORD PTR -4[rbp], edi
	jmp	.L32
.L39:
	mov	rax, QWORD PTR undos[rip]
	movzx	eax, BYTE PTR 24[rax]
	movsx	eax, al
	cmp	eax, 105
	je	.L33
	cmp	eax, 115
	je	.L34
	jmp	.L35
.L33:
	mov	rax, QWORD PTR undos[rip]
	mov	rdi, rax
	call	DoInsert
	jmp	.L35
.L34:
	mov	rax, QWORD PTR undos[rip]
	mov	rdi, rax
	call	DoChangeAndResize
	nop
.L35:
	mov	rax, QWORD PTR undos[rip]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L36
	mov	rax, QWORD PTR undos[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR undos[rip], rax
.L36:
	mov	rax, QWORD PTR redos[rip]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L37
	mov	rax, QWORD PTR redos[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR redos[rip], rax
.L37:
	mov	eax, DWORD PTR currentTime[rip]
	sub	eax, 1
	mov	DWORD PTR currentTime[rip], eax
	sub	DWORD PTR -4[rbp], 1
.L32:
	mov	rax, QWORD PTR undos[rip]
	test	rax, rax
	je	.L40
	mov	rax, QWORD PTR redos[rip]
	test	rax, rax
	je	.L40
	mov	eax, DWORD PTR currentTime[rip]
	test	eax, eax
	js	.L40
	cmp	DWORD PTR -4[rbp], 0
	jg	.L39
.L40:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	OnUndo, .-OnUndo
	.globl	OnRedo
	.type	OnRedo, @function
OnRedo:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	jmp	.L42
.L48:
	mov	rax, QWORD PTR redos[rip]
	movzx	eax, BYTE PTR 24[rax]
	movsx	eax, al
	cmp	eax, 99
	je	.L43
	cmp	eax, 100
	jne	.L44
	mov	rax, QWORD PTR undos[rip]
	mov	rdi, rax
	call	DoDelete
	jmp	.L44
.L43:
	mov	rax, QWORD PTR undos[rip]
	mov	rdi, rax
	call	DoChangeAndResize
	nop
.L44:
	mov	rax, QWORD PTR redos[rip]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L45
	mov	rax, QWORD PTR redos[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR redos[rip], rax
.L45:
	mov	rax, QWORD PTR undos[rip]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L46
	mov	rax, QWORD PTR undos[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR undos[rip], rax
.L46:
	mov	eax, DWORD PTR currentTime[rip]
	add	eax, 1
	mov	DWORD PTR currentTime[rip], eax
	sub	DWORD PTR -4[rbp], 1
.L42:
	mov	rax, QWORD PTR redos[rip]
	test	rax, rax
	je	.L49
	mov	rax, QWORD PTR undos[rip]
	test	rax, rax
	je	.L49
	mov	edx, DWORD PTR currentTime[rip]
	mov	eax, DWORD PTR maxTime[rip]
	cmp	edx, eax
	jg	.L49
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -4[rbp], edx
	test	eax, eax
	jne	.L48
.L49:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	OnRedo, .-OnRedo
	.globl	DoChange
	.type	DoChange, @function
DoChange:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	DoChange, .-DoChange
	.globl	DoChangeAndResize
	.type	DoChangeAndResize, @function
DoChangeAndResize:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 32[rax]
	mov	edi, eax
	call	SetTextSize
	mov	rax, QWORD PTR undos[rip]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR undos[rip]
	mov	eax, DWORD PTR 28[rax]
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
	jmp	.L52
.L54:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 8[rax]
	mov	eax, DWORD PTR -12[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	SetLineContent
.L52:
	cmp	QWORD PTR -8[rbp], 0
	je	.L55
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L55
	mov	eax, DWORD PTR text[rip+8]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L54
.L55:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	DoChangeAndResize, .-DoChangeAndResize
	.globl	DoDelete
	.type	DoDelete, @function
DoDelete:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 32[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR 28[rax]
	mov	eax, edx
	sub	eax, ecx
	add	eax, 1
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 28[rax]
	sub	eax, 1
	mov	DWORD PTR -4[rbp], eax
	mov	ecx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	edi, eax
	call	ShiftLines
	mov	eax, DWORD PTR -8[rbp]
	neg	eax
	mov	edi, eax
	call	ResizeText
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	DoDelete, .-DoDelete
	.globl	DoInsert
	.type	DoInsert, @function
DoInsert:
.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	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 32[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR 28[rax]
	mov	eax, edx
	sub	eax, ecx
	add	eax, 1
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	ResizeText
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 1
	mov	esi, eax
	mov	edi, 0
	call	ShiftLines
	mov	rax, QWORD PTR undos[rip]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 28[rax]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L58
.L60:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 8[rax]
	mov	eax, DWORD PTR -12[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	SetLineContent
.L58:
	cmp	QWORD PTR -8[rbp], 0
	je	.L61
	mov	eax, DWORD PTR text[rip+8]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L60
.L61:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	DoInsert, .-DoInsert
	.globl	ResizeText
	.type	ResizeText, @function
ResizeText:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	edx, DWORD PTR text[rip+8]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	mov	DWORD PTR text[rip+8], eax
	mov	eax, DWORD PTR text[rip+8]
	test	eax, eax
	jg	.L64
	mov	DWORD PTR text[rip+8], 0
.L64:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	ResizeText, .-ResizeText
	.globl	SetTextSize
	.type	SetTextSize, @function
SetTextSize:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR text[rip+8], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	SetTextSize, .-SetTextSize
	.globl	CheckTextCapacity
	.type	CheckTextCapacity, @function
CheckTextCapacity:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	jmp	.L67
.L68:
	mov	eax, DWORD PTR text[rip+12]
	add	eax, 8
	mov	DWORD PTR text[rip+12], eax
	mov	eax, DWORD PTR text[rip+12]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR text[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR text[rip], rax
.L67:
	mov	eax, DWORD PTR text[rip+12]
	cmp	DWORD PTR -4[rbp], eax
	jg	.L68
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	CheckTextCapacity, .-CheckTextCapacity
	.globl	NewLineRequired
	.type	NewLineRequired, @function
NewLineRequired:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR text[rip+8]
	cmp	DWORD PTR -20[rbp], eax
	jle	.L70
	mov	rdx, QWORD PTR text[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	sub	rax, 8
	lea	rbx, [rdx+rax]
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR text[rip+8]
	add	eax, 1
	mov	DWORD PTR text[rip+8], eax
	mov	eax, 1
	jmp	.L71
.L70:
	mov	eax, 0
.L71:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	NewLineRequired, .-NewLineRequired
	.globl	SetLineContent
	.type	SetLineContent, @function
SetLineContent:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rdx, QWORD PTR text[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rdx]
	mov	QWORD PTR [rax], rdx
	mov	rdx, QWORD PTR text[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	SetLineContent, .-SetLineContent
	.globl	ShiftLines
	.type	ShiftLines, @function
ShiftLines:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	cmp	DWORD PTR -28[rbp], 0
	jne	.L74
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L75
.L77:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -24[rbp]
	add	edx, eax
	mov	eax, DWORD PTR text[rip+8]
	cmp	edx, eax
	jge	.L76
	mov	rdx, QWORD PTR text[rip]
	mov	ecx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, ecx
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rcx, QWORD PTR text[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR [rdx]
	mov	QWORD PTR [rax], rdx
.L76:
	add	DWORD PTR -4[rbp], 1
.L75:
	mov	eax, DWORD PTR text[rip+8]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L77
	jmp	.L81
.L74:
	mov	eax, DWORD PTR text[rip+8]
	sub	eax, 1
	mov	DWORD PTR -4[rbp], eax
	jmp	.L79
.L80:
	mov	rdx, QWORD PTR text[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	sub	rax, 8
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rcx, QWORD PTR text[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR [rdx]
	mov	QWORD PTR [rax], rdx
.L79:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jg	.L80
	sub	DWORD PTR -4[rbp], 1
.L81:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	ShiftLines, .-ShiftLines
	.globl	InitEdit
	.type	InitEdit, @function
InitEdit:
.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 -24[rbp], rdi
	mov	edi, 48
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	edx, DWORD PTR currentTime[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 28[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 32[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 24[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 40[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
	cmp	QWORD PTR -24[rbp], 0
	je	.L83
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
.L83:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	InitEdit, .-InitEdit
	.globl	InitEditLines
	.type	InitEditLines, @function
InitEditLines:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	edi, 24
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	DWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR [rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	InitEditLines, .-InitEditLines
	.globl	GetLinesForInsert
	.type	GetLinesForInsert, @function
GetLinesForInsert:
.LFB24:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	mov	DWORD PTR -20[rbp], eax
	jmp	.L87
.L89:
	mov	eax, DWORD PTR text[rip+8]
	cmp	DWORD PTR -20[rbp], eax
	jge	.L88
	mov	rdx, QWORD PTR text[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rdx, QWORD PTR text[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	edi, 24
	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]
	mov	QWORD PTR -16[rbp], rax
.L88:
	add	DWORD PTR -20[rbp], 1
.L87:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jl	.L89
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	GetLinesForInsert, .-GetLinesForInsert
	.section	.rodata
.LC8:
	.string	"\n-------------------"
	.align 8
.LC9:
	.string	"Text lenght:%d\nCurrent time: %d\nMax time: %d\n"
.LC10:
	.string	"---\nText:"
.LC11:
	.string	"%d) %s"
.LC12:
	.string	"---\nUndos ahead:"
.LC13:
	.string	"Undo #%d\n"
.LC14:
	.string	"%c, %d, %d\nLines:\n"
.LC15:
	.string	"---\nUndos behind:"
.LC16:
	.string	"---\nRedos ahead:"
.LC17:
	.string	"Redo #%d\n"
.LC18:
	.string	"---\nRedos behind:"
	.text
	.globl	Recap
	.type	Recap, @function
Recap:
.LFB25:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	ecx, DWORD PTR maxTime[rip]
	mov	edx, DWORD PTR currentTime[rip]
	mov	eax, DWORD PTR text[rip+8]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	DWORD PTR -24[rbp], 0
	jmp	.L92
.L93:
	mov	rdx, QWORD PTR text[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -24[rbp]
	lea	ecx, 1[rdx]
	mov	rdx, rax
	mov	esi, ecx
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -24[rbp], 1
.L92:
	mov	eax, DWORD PTR text[rip+8]
	cmp	DWORD PTR -24[rbp], eax
	jl	.L93
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	rax, QWORD PTR undos[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L94
.L97:
	add	DWORD PTR -20[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR 32[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 28[rax]
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR 24[rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L95
.L96:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
.L95:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L96
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
.L94:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L97
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	rax, QWORD PTR undos[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L98
.L101:
	sub	DWORD PTR -20[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR 32[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 28[rax]
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR 24[rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L99
.L100:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
.L99:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L100
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -16[rbp], rax
.L98:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L101
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	rax, QWORD PTR redos[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L102
.L105:
	add	DWORD PTR -20[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR 32[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 28[rax]
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR 24[rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L103
.L104:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
.L103:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L104
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
.L102:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L105
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	rax, QWORD PTR redos[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L106
.L109:
	sub	DWORD PTR -20[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR 32[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 28[rax]
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR 24[rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L107
.L108:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
.L107:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L108
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -16[rbp], rax
.L106:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L109
	lea	rdi, .LC8[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	Recap, .-Recap
	.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	"211081749.c"
	.text
	.global	state
	.bss
	.align	2
	.type	state, %object
	.size	state, 4
state:
	.space	4
	.comm	text,12,4
	.comm	currentTime,4,4
	.comm	maxTime,4,4
	.comm	undos,4,4
	.comm	redos,4,4
	.comm	in_buf,4,4
	.comm	in_buf_size,4,4
	.comm	in_len,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d,%dc\000"
	.align	2
.LC1:
	.ascii	"%d,%dp\000"
	.align	2
.LC2:
	.ascii	"%d,%dd\000"
	.align	2
.LC3:
	.ascii	"%du\000"
	.align	2
.LC4:
	.ascii	"%dr\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L16+4
	mov	r2, #8
	str	r2, [r3, #8]
	ldr	r3, .L16+4
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L16+4
	ldr	r3, [r3, #8]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L16+4
	str	r2, [r3]
	ldr	r3, .L16+8
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L16+12
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L16+16
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L16+20
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L16+24
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L16+28
	mov	r2, #0
	str	r2, [r3]
	b	.L2
.L13:
	ldr	r3, .L16+24
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L16+32
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L16+28
	ldr	r0, .L16+24
	bl	getline
	mov	r3, r0
	ldr	r2, .L16+36
	str	r3, [r2]
	ldr	r3, .L16+24
	ldr	r2, [r3]
	ldr	r3, .L16+36
	ldr	r3, [r3]
	sub	r3, r3, #2
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-17]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	sub	r3, r3, #99
	cmp	r3, #18
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L10
	.word	.L9
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L3
	.word	.L3
	.word	.L4
.L10:
	ldr	r3, .L16+24
	ldr	r0, [r3]
	sub	r3, fp, #12
	sub	r2, fp, #16
	ldr	r1, .L16+40
	bl	__isoc99_sscanf
	ldr	r3, .L16+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L16+8
	str	r3, [r2]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mov	r1, r2
	mov	r0, r3
	bl	OnChange
	b	.L3
.L8:
	ldr	r3, .L16+24
	ldr	r0, [r3]
	sub	r3, fp, #12
	sub	r2, fp, #16
	ldr	r1, .L16+44
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mov	r1, r2
	mov	r0, r3
	bl	OnPrint
	b	.L3
.L9:
	ldr	r3, .L16+24
	ldr	r0, [r3]
	sub	r3, fp, #12
	sub	r2, fp, #16
	ldr	r1, .L16+48
	bl	__isoc99_sscanf
	ldr	r3, .L16+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L16+8
	str	r3, [r2]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mov	r1, r2
	mov	r0, r3
	bl	OnDelete
	b	.L3
.L4:
	ldr	r3, .L16+24
	ldr	r3, [r3]
	sub	r2, fp, #16
	ldr	r1, .L16+52
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	OnUndo
	b	.L3
.L6:
	ldr	r3, .L16+24
	ldr	r3, [r3]
	sub	r2, fp, #16
	ldr	r1, .L16+56
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	OnRedo
	b	.L3
.L7:
	ldr	r3, .L16+60
	mvn	r2, #0
	str	r2, [r3]
	nop
.L3:
	ldr	r3, .L16+8
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L11
	ldr	r3, .L16+8
	mov	r2, #0
	str	r2, [r3]
.L11:
	ldr	r3, .L16+8
	ldr	r2, [r3]
	ldr	r3, .L16+12
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L12
	ldr	r3, .L16+8
	ldr	r3, [r3]
	ldr	r2, .L16+12
	str	r3, [r2]
.L12:
	bl	Recap
.L2:
	ldr	r3, .L16+60
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L13
	ldr	r3, .L16+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L16+24
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC5
	.word	text
	.word	currentTime
	.word	maxTime
	.word	undos
	.word	redos
	.word	in_buf
	.word	in_buf_size
	.word	stdin
	.word	in_len
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	state
	.size	main, .-main
	.section	.rodata
	.align	2
.LC6:
	.ascii	".\000"
	.align	2
.LC7:
	.ascii	"%s\000"
	.text
	.align	2
	.global	OnPrint
	.syntax unified
	.arm
	.fpu softvfp
	.type	OnPrint, %function
OnPrint:
	@ 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]
	str	r3, [fp, #-8]
	b	.L19
.L23:
	ldr	r3, .L24
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bgt	.L20
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L21
.L20:
	ldr	r0, .L24+4
	bl	puts
	b	.L22
.L21:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L24+8
	bl	printf
.L22:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L19:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L23
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	text
	.word	.LC6
	.word	.LC7
	.size	OnPrint, .-OnPrint
	.section	.rodata
	.align	2
.LC8:
	.ascii	"%*c%c\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	OnChange
	.syntax unified
	.arm
	.fpu softvfp
	.type	OnChange, %function
OnChange:
	@ 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]
	str	r1, [fp, #-36]
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-36]
	bl	CheckTextCapacity
	ldr	r3, .L34+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	InitEdit
	mov	r3, r0
	ldr	r2, .L34+4
	str	r3, [r2]
	ldr	r3, .L34+4
	ldr	r3, [r3]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L27
	ldr	r3, .L34+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	InitEditLines
.L27:
	ldr	r3, .L34+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	str	r2, [r3, #16]
	ldr	r3, .L34+4
	ldr	r3, [r3]
	mov	r2, #115
	strb	r2, [r3, #12]
	ldr	r3, .L34+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	InitEdit
	mov	r3, r0
	ldr	r2, .L34+8
	str	r3, [r2]
	ldr	r3, .L34+8
	ldr	r3, [r3]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L28
	ldr	r3, .L34+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	InitEditLines
.L28:
	ldr	r3, .L34+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	str	r2, [r3, #16]
	ldr	r3, .L34+8
	ldr	r3, [r3]
	mov	r2, #99
	strb	r2, [r3, #12]
	ldr	r3, .L34+4
	ldr	r3, [r3]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-20]
	ldr	r3, .L34+8
	ldr	r3, [r3]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-16]
	ldr	r3, .L34+4
	ldr	r3, [r3]
	ldr	r2, .L34+12
	ldr	r2, [r2, #4]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-12]
	b	.L29
.L32:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	ble	.L30
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L30
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
.L30:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	ble	.L31
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L31
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
.L31:
	ldr	r3, .L34+16
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L34+20
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L34+24
	ldr	r0, .L34+16
	bl	getline
	mov	r3, r0
	ldr	r2, .L34+28
	str	r3, [r2]
	ldr	r0, [fp, #-12]
	bl	NewLineRequired
	ldr	r3, .L34+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	str	r2, [r3, #8]
	ldr	r3, .L34+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L34+24
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L34+16
	ldr	r0, [fp, #-12]
	bl	SetLineContent
	ldr	r3, .L34+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r3, .L34+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L29:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	ble	.L32
	ldr	r3, .L34+8
	ldr	r3, [r3]
	ldr	r2, .L34+12
	ldr	r2, [r2, #4]
	str	r2, [r3, #20]
	sub	r3, fp, #21
	mov	r1, r3
	ldr	r0, .L34+32
	bl	__isoc99_scanf
	nop
	ldr	r3, .L34
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC9
	.word	undos
	.word	redos
	.word	text
	.word	in_buf
	.word	stdin
	.word	in_buf_size
	.word	in_len
	.word	.LC8
	.size	OnChange, .-OnChange
	.align	2
	.global	OnDelete
	.syntax unified
	.arm
	.fpu softvfp
	.type	OnDelete, %function
OnDelete:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L37
	ldr	r3, [r3]
	mov	r0, r3
	bl	InitEdit
	mov	r3, r0
	ldr	r2, .L37
	str	r3, [r2]
	ldr	r3, .L37
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #16]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	sub	r2, r2, r3
	ldr	r3, .L37
	ldr	r3, [r3]
	add	r2, r2, #1
	str	r2, [r3, #20]
	ldr	r3, .L37
	ldr	r4, [r3]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	GetLinesForInsert
	mov	r3, r0
	str	r3, [r4, #24]
	ldr	r3, .L37
	ldr	r3, [r3]
	mov	r2, #105
	strb	r2, [r3, #12]
	ldr	r3, .L37+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	InitEdit
	mov	r3, r0
	ldr	r2, .L37+4
	str	r3, [r2]
	ldr	r3, .L37+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #16]
	ldr	r3, .L37+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	str	r2, [r3, #20]
	ldr	r3, .L37+4
	ldr	r3, [r3]
	mov	r2, #100
	strb	r2, [r3, #12]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	mov	r2, #0
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	ShiftLines
	ldr	r3, [fp, #-20]
	rsb	r3, r3, #0
	mov	r0, r3
	bl	ResizeText
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L38:
	.align	2
.L37:
	.word	undos
	.word	redos
	.size	OnDelete, .-OnDelete
	.align	2
	.global	OnUndo
	.syntax unified
	.arm
	.fpu softvfp
	.type	OnUndo, %function
OnUndo:
	@ 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]
	b	.L40
.L47:
	ldr	r3, .L49
	ldr	r3, [r3]
	ldrb	r3, [r3, #12]	@ zero_extendqisi2
	cmp	r3, #105
	beq	.L41
	cmp	r3, #115
	beq	.L42
	b	.L43
.L41:
	ldr	r3, .L49
	ldr	r3, [r3]
	mov	r0, r3
	bl	DoInsert
	b	.L43
.L42:
	ldr	r3, .L49
	ldr	r3, [r3]
	mov	r0, r3
	bl	DoChangeAndResize
	nop
.L43:
	ldr	r3, .L49
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L44
	ldr	r3, .L49
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r2, .L49
	str	r3, [r2]
.L44:
	ldr	r3, .L49+4
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L45
	ldr	r3, .L49+4
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r2, .L49+4
	str	r3, [r2]
.L45:
	ldr	r3, .L49+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L49+8
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L40:
	ldr	r3, .L49
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L48
	ldr	r3, .L49+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L48
	ldr	r3, .L49+8
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L48
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L47
.L48:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	undos
	.word	redos
	.word	currentTime
	.size	OnUndo, .-OnUndo
	.align	2
	.global	OnRedo
	.syntax unified
	.arm
	.fpu softvfp
	.type	OnRedo, %function
OnRedo:
	@ 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]
	b	.L52
.L58:
	ldr	r3, .L60
	ldr	r3, [r3]
	ldrb	r3, [r3, #12]	@ zero_extendqisi2
	cmp	r3, #99
	beq	.L53
	cmp	r3, #100
	bne	.L54
	ldr	r3, .L60+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	DoDelete
	b	.L54
.L53:
	ldr	r3, .L60+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	DoChangeAndResize
	nop
.L54:
	ldr	r3, .L60
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L55
	ldr	r3, .L60
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, .L60
	str	r3, [r2]
.L55:
	ldr	r3, .L60+4
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L56
	ldr	r3, .L60+4
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, .L60+4
	str	r3, [r2]
.L56:
	ldr	r3, .L60+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L60+8
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L52:
	ldr	r3, .L60
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L59
	ldr	r3, .L60+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L59
	ldr	r3, .L60+8
	ldr	r2, [r3]
	ldr	r3, .L60+12
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L59
	ldr	r3, [fp, #-8]
	sub	r2, r3, #1
	str	r2, [fp, #-8]
	cmp	r3, #0
	bne	.L58
.L59:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L61:
	.align	2
.L60:
	.word	redos
	.word	undos
	.word	currentTime
	.word	maxTime
	.size	OnRedo, .-OnRedo
	.align	2
	.global	DoChange
	.syntax unified
	.arm
	.fpu softvfp
	.type	DoChange, %function
DoChange:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	DoChange, .-DoChange
	.align	2
	.global	DoChangeAndResize
	.syntax unified
	.arm
	.fpu softvfp
	.type	DoChangeAndResize, %function
DoChangeAndResize:
	@ 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]
	ldr	r3, [r3, #20]
	mov	r0, r3
	bl	SetTextSize
	ldr	r3, .L68
	ldr	r3, [r3]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-12]
	ldr	r3, .L68
	ldr	r3, [r3]
	ldr	r3, [r3, #16]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L64
.L66:
	ldr	r3, [fp, #-12]
	add	r1, r3, #4
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r0, [fp, #-8]
	bl	SetLineContent
.L64:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L67
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L67
	ldr	r3, .L68+4
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L66
.L67:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	undos
	.word	text
	.size	DoChangeAndResize, .-DoChangeAndResize
	.align	2
	.global	DoDelete
	.syntax unified
	.arm
	.fpu softvfp
	.type	DoDelete, %function
DoDelete:
	@ 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]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	sub	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	mov	r2, #0
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	ShiftLines
	ldr	r3, [fp, #-12]
	rsb	r3, r3, #0
	mov	r0, r3
	bl	ResizeText
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	DoDelete, .-DoDelete
	.align	2
	.global	DoInsert
	.syntax unified
	.arm
	.fpu softvfp
	.type	DoInsert, %function
DoInsert:
	@ 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	r2, [r3, #20]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	sub	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	ResizeText
	mov	r2, #1
	ldr	r1, [fp, #-16]
	mov	r0, #0
	bl	ShiftLines
	ldr	r3, .L76
	ldr	r3, [r3]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-8]
	b	.L72
.L74:
	ldr	r3, [fp, #-12]
	add	r1, r3, #4
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r0, [fp, #-8]
	bl	SetLineContent
.L72:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L75
	ldr	r3, .L76+4
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L74
.L75:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L77:
	.align	2
.L76:
	.word	undos
	.word	text
	.size	DoInsert, .-DoInsert
	.align	2
	.global	ResizeText
	.syntax unified
	.arm
	.fpu softvfp
	.type	ResizeText, %function
ResizeText:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L81
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L81
	str	r3, [r2, #4]
	ldr	r3, .L81
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bgt	.L80
	ldr	r3, .L81
	mov	r2, #0
	str	r2, [r3, #4]
.L80:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L82:
	.align	2
.L81:
	.word	text
	.size	ResizeText, .-ResizeText
	.align	2
	.global	SetTextSize
	.syntax unified
	.arm
	.fpu softvfp
	.type	SetTextSize, %function
SetTextSize:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r2, .L84
	ldr	r3, [fp, #-8]
	str	r3, [r2, #4]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L85:
	.align	2
.L84:
	.word	text
	.size	SetTextSize, .-SetTextSize
	.align	2
	.global	CheckTextCapacity
	.syntax unified
	.arm
	.fpu softvfp
	.type	CheckTextCapacity, %function
CheckTextCapacity:
	@ 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]
	b	.L87
.L88:
	ldr	r3, .L89
	ldr	r3, [r3, #8]
	add	r3, r3, #8
	ldr	r2, .L89
	str	r3, [r2, #8]
	ldr	r3, .L89
	ldr	r3, [r3]
	ldr	r2, .L89
	ldr	r2, [r2, #8]
	lsl	r2, r2, #2
	mov	r1, r2
	mov	r0, r3
	bl	realloc
	mov	r3, r0
	ldr	r2, .L89
	str	r3, [r2]
.L87:
	ldr	r3, .L89
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bgt	.L88
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L90:
	.align	2
.L89:
	.word	text
	.size	CheckTextCapacity, .-CheckTextCapacity
	.align	2
	.global	NewLineRequired
	.syntax unified
	.arm
	.fpu softvfp
	.type	NewLineRequired, %function
NewLineRequired:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r3, .L94
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L92
	ldr	r3, .L94
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, .L94
	ldr	r3, [r3, #4]
	add	r3, r3, #1
	ldr	r2, .L94
	str	r3, [r2, #4]
	mov	r3, #1
	b	.L93
.L92:
	mov	r3, #0
.L93:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L95:
	.align	2
.L94:
	.word	text
	.size	NewLineRequired, .-NewLineRequired
	.align	2
	.global	SetLineContent
	.syntax unified
	.arm
	.fpu softvfp
	.type	SetLineContent, %function
SetLineContent:
	@ 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, .L97
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, .L97
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L98:
	.align	2
.L97:
	.word	text
	.size	SetLineContent, .-SetLineContent
	.align	2
	.global	ShiftLines
	.syntax unified
	.arm
	.fpu softvfp
	.type	ShiftLines, %function
ShiftLines:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L100
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L101
.L103:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, .L108
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bge	.L102
	ldr	r3, .L108
	ldr	r2, [r3]
	ldr	r1, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L108
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r2, [r3]
.L102:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L101:
	ldr	r3, .L108
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L103
	b	.L107
.L100:
	ldr	r3, .L108
	ldr	r3, [r3, #4]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L105
.L106:
	ldr	r3, .L108
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L108
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r2, [r3]
.L105:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bgt	.L106
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L107:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L109:
	.align	2
.L108:
	.word	text
	.size	ShiftLines, .-ShiftLines
	.align	2
	.global	InitEdit
	.syntax unified
	.arm
	.fpu softvfp
	.type	InitEdit, %function
InitEdit:
	@ 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	r0, #28
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, .L113
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #20]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L111
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
.L111:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L114:
	.align	2
.L113:
	.word	currentTime
	.size	InitEdit, .-InitEdit
	.align	2
	.global	InitEditLines
	.syntax unified
	.arm
	.fpu softvfp
	.type	InitEditLines, %function
InitEditLines:
	@ 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]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #24]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #24]
	mov	r2, #0
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	InitEditLines, .-InitEditLines
	.align	2
	.global	GetLinesForInsert
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetLinesForInsert, %function
GetLinesForInsert:
	@ 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]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L117
.L119:
	ldr	r3, .L121
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L118
	ldr	r3, .L121
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r3, .L121
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
.L118:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L117:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L119
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L122:
	.align	2
.L121:
	.word	text
	.size	GetLinesForInsert, .-GetLinesForInsert
	.section	.rodata
	.align	2
.LC10:
	.ascii	"\012-------------------\000"
	.align	2
.LC11:
	.ascii	"Text lenght:%d\012Current time: %d\012Max time: %d\012"
	.ascii	"\000"
	.align	2
.LC12:
	.ascii	"---\012Text:\000"
	.align	2
.LC13:
	.ascii	"%d) %s\000"
	.align	2
.LC14:
	.ascii	"---\012Undos ahead:\000"
	.align	2
.LC15:
	.ascii	"Undo #%d\012\000"
	.align	2
.LC16:
	.ascii	"%c, %d, %d\012Lines:\012\000"
	.align	2
.LC17:
	.ascii	"---\012Undos behind:\000"
	.align	2
.LC18:
	.ascii	"---\012Redos ahead:\000"
	.align	2
.LC19:
	.ascii	"Redo #%d\012\000"
	.align	2
.LC20:
	.ascii	"---\012Redos behind:\000"
	.text
	.align	2
	.global	Recap
	.syntax unified
	.arm
	.fpu softvfp
	.type	Recap, %function
Recap:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r0, .L142
	bl	puts
	ldr	r3, .L142+4
	ldr	r1, [r3, #4]
	ldr	r3, .L142+8
	ldr	r2, [r3]
	ldr	r3, .L142+12
	ldr	r3, [r3]
	ldr	r0, .L142+16
	bl	printf
	ldr	r0, .L142+20
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L124
.L125:
	ldr	r3, [fp, #-20]
	add	r1, r3, #1
	ldr	r3, .L142+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L142+24
	bl	printf
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L124:
	ldr	r3, .L142+4
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L125
	ldr	r0, .L142+28
	bl	puts
	ldr	r3, .L142+32
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L126
.L129:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L142+36
	bl	printf
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #12]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	ldr	r0, .L142+40
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-8]
	b	.L127
.L128:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L142+44
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
.L127:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L128
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
.L126:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L129
	ldr	r0, .L142+48
	bl	puts
	ldr	r3, .L142+32
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L130
.L133:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L142+36
	bl	printf
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #12]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	ldr	r0, .L142+40
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-8]
	b	.L131
.L132:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L142+44
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
.L131:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L132
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-16]
.L130:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L133
	ldr	r0, .L142+52
	bl	puts
	ldr	r3, .L142+56
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L134
.L137:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L142+60
	bl	printf
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #12]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	ldr	r0, .L142+40
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-8]
	b	.L135
.L136:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L142+44
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
.L135:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L136
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
.L134:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L137
	ldr	r0, .L142+64
	bl	puts
	ldr	r3, .L142+56
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L138
.L141:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L142+60
	bl	printf
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #12]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	ldr	r0, .L142+40
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-8]
	b	.L139
.L140:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L142+44
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
.L139:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L140
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-16]
.L138:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L141
	ldr	r0, .L142
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L143:
	.align	2
.L142:
	.word	.LC10
	.word	text
	.word	currentTime
	.word	maxTime
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	undos
	.word	.LC15
	.word	.LC16
	.word	.LC7
	.word	.LC17
	.word	.LC18
	.word	redos
	.word	.LC19
	.word	.LC20
	.size	Recap, .-Recap
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
