// File: acherkaoui[P]HTOP/terminal/terminal.cpp
// Function: Curses::clearTerminal()
void Curses::clearTerminal()
{
	int i = 4;
	wclear(stdscr);
	wclear(_ram);
	wclear(_cpu);
	wclear(_user);
	wclear(_time);
	wclear(_net);
	if(COLS > 200)
	{
		print(stdscr, i++, _xlogo, "  _____  _____  _____  _____  ", 5);
		print(stdscr, i++, _xlogo, " |  |  ||  _  ||     ||_   _| ", 4);
		print(stdscr, i++, _xlogo, " |     ||   __||  |  |  | |   ", 7);
		print(stdscr, i++, _xlogo, " |__|__||__|   |_____|  |_|   ", 5);
		print(stdscr, i++, _xlogo, " |__|__||__|   |_____|  |_|   ", 4);
		print(stdscr, i++, _xlogo, "       The Lion Monitor       ", 7);
		print(stdscr, i++, _xlogo, "                              ", 7);
		printLion();
	}
	if(_xlogo == COLS - 30 - 45)
		_side = false;
	else if(_xlogo == 69)
		_side = true;
	if(_side != 0)
		_xlogo++;
	else
		_xlogo--;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movl $0x4, -0xc(%rbp)
movq 0x8ae6(%rip), %rax      # 0x1afc8
movq (%rax), %rdi
callq 0x4430
movq -0x18(%rbp), %rax
movq 0x6b0(%rax), %rdi
callq 0x4430
movq -0x18(%rbp), %rax
movq 0x6b8(%rax), %rdi
callq 0x4430
movq -0x18(%rbp), %rax
movq 0x6c8(%rax), %rdi
callq 0x4430
movq -0x18(%rbp), %rax
movq 0x6c0(%rax), %rdi
callq 0x4430
movq -0x18(%rbp), %rax
movq 0x6d0(%rax), %rdi
callq 0x4430
movq 0x8a5f(%rip), %rax      # 0x1afa0
cmpl $0xc8, (%rax)
jle 0x12698
movq -0x18(%rbp), %rdi
movq 0x8a70(%rip), %rax      # 0x1afc8
movq (%rax), %rsi
movl -0xc(%rbp), %edx
movl %edx, %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
movl 0xc(%rdi), %ecx
leaq 0x2155(%rip), %r8       # 0x146c5
movl $0x5, %r9d
callq 0xfad0
movq -0x18(%rbp), %rdi
movq 0x8a42(%rip), %rax      # 0x1afc8
movq (%rax), %rsi
movl -0xc(%rbp), %edx
movl %edx, %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
movl 0xc(%rdi), %ecx
leaq 0x214a(%rip), %r8       # 0x146e8
movl $0x4, %r9d
callq 0xfad0
movq -0x18(%rbp), %rdi
movq 0x8a14(%rip), %rax      # 0x1afc8
movq (%rax), %rsi
movl -0xc(%rbp), %edx
movl %edx, %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
movl 0xc(%rdi), %ecx
leaq 0x213f(%rip), %r8       # 0x1470b
movl $0x7, %r9d
callq 0xfad0
movq -0x18(%rbp), %rdi
movq 0x89e6(%rip), %rax      # 0x1afc8
movq (%rax), %rsi
movl -0xc(%rbp), %edx
movl %edx, %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
movl 0xc(%rdi), %ecx
leaq 0x2134(%rip), %r8       # 0x1472e
movl $0x5, %r9d
callq 0xfad0
movq -0x18(%rbp), %rdi
movq 0x89b8(%rip), %rax      # 0x1afc8
movq (%rax), %rsi
movl -0xc(%rbp), %edx
movl %edx, %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
movl 0xc(%rdi), %ecx
leaq 0x2106(%rip), %r8       # 0x1472e
movl $0x4, %r9d
callq 0xfad0
movq -0x18(%rbp), %rdi
movq 0x898a(%rip), %rax      # 0x1afc8
movq (%rax), %rsi
movl -0xc(%rbp), %edx
movl %edx, %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
movl 0xc(%rdi), %ecx
leaq 0x20fb(%rip), %r8       # 0x14751
movl $0x7, %r9d
callq 0xfad0
movq -0x18(%rbp), %rdi
movq 0x895c(%rip), %rax      # 0x1afc8
movq (%rax), %rsi
movl -0xc(%rbp), %edx
movl %edx, %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
movl 0xc(%rdi), %ecx
leaq 0x218b(%rip), %r8       # 0x1480f
movl $0x7, %r9d
callq 0xfad0
movq -0x18(%rbp), %rdi
callq 0xfb40
movq -0x18(%rbp), %rax
movl 0xc(%rax), %eax
movq 0x88fa(%rip), %rcx      # 0x1afa0
movl (%rcx), %ecx
subl $0x1e, %ecx
subl $0x2d, %ecx
cmpl %ecx, %eax
jne 0x126bf
movq -0x18(%rbp), %rax
movl $0x0, 0x10(%rax)
jmp 0x126d6
movq -0x18(%rbp), %rax
cmpl $0x45, 0xc(%rax)
jne 0x126d4
movq -0x18(%rbp), %rax
movl $0x1, 0x10(%rax)
jmp 0x126d6
movq -0x18(%rbp), %rax
cmpl $0x0, 0x10(%rax)
je 0x126ef
movq -0x18(%rbp), %rax
movl 0xc(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0xc(%rax)
jmp 0x126fc
movq -0x18(%rbp), %rax
movl 0xc(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0xc(%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)