// File: /workspace/github_cpp_makefile_star2_O2/acherkaoui[P]HTOP/terminal/terminal.cpp
// Function: Curses::printRam()
void Curses::printRam()
{
	int i = 0;
	print(_ram , i++, 2, "                                  ", 2);
	print(_ram , i++, 2, ("                " +
		data.ram.getModuleName()).c_str(), 8);
	print(_ram , i++, 2, "                                  ", 2);
	i++;

	print(_ram, i++, 15, (std::to_string(data.ram.getPercentRam()).substr(0, 5) + "%%").c_str(), 5);
	print(_ram, i, 2, (" RAM:  "), 5);
	ProgressBar(_ram,i++,  9,data.ram.getPercentRam());

	wattron(_ram, COLOR_PAIR(5));
	mvwprintw(_ram, i++, 2, " Total RAM: %s        ", std::to_string(data.ram.getTotalRam()).c_str());
	mvwprintw(_ram, i++, 2, " Available RAM: %s      ", std::to_string(data.ram.getFreeRam()).c_str());
	wattroff(_ram, COLOR_PAIR(5));

	i++;
	print(_ram, i++, 15, (std::to_string(data.ram.getPercentSwap()).substr(0, 4) + "%%").c_str(), 4);
	print(_ram, i, 2, (" SWAP: "), 4);
	ProgressBar(_ram,i++, 9,data.ram.getPercentSwap());
	wattron(_ram, COLOR_PAIR(4));
	mvwprintw(_ram, i++, 2, " Total SWAP : %s    ", std::to_string(data.ram.getTotalSwap()).c_str());
	mvwprintw(_ram, i++, 2, " Available SWAP : %s     ", std::to_string(data.ram.getFreeSwap()).c_str());
	wattroff(_ram, COLOR_PAIR(4));

	i++;
	print(_ram , i++, 2, (" Tasks: " + std::to_string(data.ram.getProcesses()) + "         ").c_str(), 7);
	print(_ram , i++, 2, (" UpTime: " + data.ram.getUpTime()).c_str(), 7);
	i++;
	print(_ram , i++, 2, "                                  ", 2);
	mvwin(_ram  , 1, COLS - 38);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdi, %rbx
movq 0x6b0(%rdi), %rsi
leaq 0x2835(%rip), %r8       # 0xb82b
pushq $0x2
popq %rcx
xorl %edx, %edx
movl %ecx, %r9d
callq 0x8c16
movq 0x6b0(%rbx), %r15
leaq 0x1e8(%rbx), %r14
leaq 0x28(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x7196
leaq 0x2815(%rip), %rsi      # 0xb83d
leaq 0x8(%rsp), %rdi
movq %r12, %rdx
callq 0xa5dd
movq 0x8(%rsp), %r8
pushq $0x1
popq %rdx
pushq $0x2
popq %rcx
pushq $0x8
popq %r9
movq %r15, %rsi
callq 0x8c16
leaq 0x8(%rsp), %rdi
callq 0x41f0
leaq 0x28(%rsp), %rdi
callq 0x41f0
movq 0x6b0(%rbx), %rsi
leaq 0x27bd(%rip), %r8       # 0xb82b
pushq $0x2
popq %rcx
movl %ecx, %edx
movl %ecx, %r9d
callq 0x8c16
movq 0x6b0(%rbx), %r15
movq %r14, %rdi
callq 0x84f2
leaq 0x48(%rsp), %r12
movq %r12, %rdi
movq %rax, %rsi
callq 0xa601
leaq 0x28(%rsp), %rdi
pushq $0x5
popq %rcx
movq %r12, %rsi
xorl %edx, %edx
callq 0x4380
leaq 0x26dd(%rip), %rdx      # 0xb790
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x85ec
movq 0x8(%rsp), %r8
pushq $0x4
popq %rdx
pushq $0xf
popq %rcx
pushq $0x5
popq %r9
movq %r15, %rsi
callq 0x8c16
leaq 0x8(%rsp), %rdi
callq 0x41f0
leaq 0x28(%rsp), %rdi
callq 0x41f0
leaq 0x48(%rsp), %rdi
callq 0x41f0
movq 0x6b0(%rbx), %rsi
leaq 0x268e(%rip), %r8       # 0xb793
pushq $0x2
popq %rbp
pushq $0x5
popq %r15
movl %r15d, %edx
movl %ebp, %ecx
movl %r15d, %r9d
callq 0x8c16
movq 0x6b0(%rbx), %r12
movq %r14, %rdi
callq 0x84f2
testq %rax, %rax
js 0x9134
cvtsi2ss %rax, %xmm0
jmp 0x9149
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
leaq 0x88(%rsp), %r13
pushq $0x9
popq %r8
movq %r13, %rdi
movq %r12, %rdx
movl %r15d, %ecx
callq 0x953c
movq %r13, %rdi
callq 0x41f0
movq 0x6b0(%rbx), %rdi
movl $0x500, %esi            # imm = 0x500
xorl %edx, %edx
callq 0x4210
movq 0x6b0(%rbx), %r15
movq %r14, %rdi
callq 0x8254
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %rax, %rsi
callq 0xa601
movq (%r12), %r8
leaq 0x25f3(%rip), %rcx      # 0xb79b
pushq $0x6
popq %rsi
movq %r15, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x40f0
leaq 0x8(%rsp), %rdi
callq 0x41f0
movq 0x6b0(%rbx), %r15
movq %r14, %rdi
callq 0x8496
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %rax, %rsi
callq 0xa601
movq (%r12), %r8
leaq 0x25c7(%rip), %rcx      # 0xb7b2
pushq $0x7
popq %rsi
pushq $0x2
popq %rdx
movq %r15, %rdi
xorl %eax, %eax
callq 0x40f0
leaq 0x8(%rsp), %rdi
callq 0x41f0
movq 0x6b0(%rbx), %rdi
movl $0x500, %esi            # imm = 0x500
xorl %edx, %edx
callq 0x4440
movq 0x6b0(%rbx), %r15
movq %r14, %rdi
callq 0x8508
leaq 0x48(%rsp), %r12
movq %r12, %rdi
movq %rax, %rsi
callq 0xa601
leaq 0x28(%rsp), %rdi
pushq $0x4
popq %rcx
movq %r12, %rsi
xorl %edx, %edx
callq 0x4380
leaq 0x2540(%rip), %rdx      # 0xb790
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x85ec
movq 0x8(%rsp), %r8
pushq $0x9
popq %rdx
pushq $0xf
popq %rcx
pushq $0x4
popq %r9
movq %r15, %rsi
callq 0x8c16
leaq 0x8(%rsp), %rdi
callq 0x41f0
leaq 0x28(%rsp), %rdi
callq 0x41f0
leaq 0x48(%rsp), %rdi
callq 0x41f0
movq 0x6b0(%rbx), %rsi
leaq 0x2529(%rip), %r8       # 0xb7cb
pushq $0xa
popq %r15
pushq $0x2
popq %rbp
pushq $0x4
popq %r9
movl %r15d, %edx
movl %ebp, %ecx
callq 0x8c16
movq 0x6b0(%rbx), %r12
movq %r14, %rdi
callq 0x8508
testq %rax, %rax
js 0x92d2
cvtsi2ss %rax, %xmm0
jmp 0x92e7
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
leaq 0x68(%rsp), %r13
pushq $0x9
popq %r8
movq %r13, %rdi
movq %r12, %rdx
movl %r15d, %ecx
callq 0x953c
movq %r13, %rdi
callq 0x41f0
movq 0x6b0(%rbx), %rdi
movl $0x400, %esi            # imm = 0x400
xorl %edx, %edx
callq 0x4210
movq 0x6b0(%rbx), %r15
movq %r14, %rdi
callq 0x8486
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %rax, %rsi
callq 0xa601
movq (%r12), %r8
leaq 0x2490(%rip), %rcx      # 0xb7d3
pushq $0xb
popq %rsi
movq %r15, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x40f0
leaq 0x8(%rsp), %rdi
callq 0x41f0
movq 0x6b0(%rbx), %r15
movq %r14, %rdi
callq 0x84a6
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %rax, %rsi
callq 0xa601
movq (%r12), %r8
leaq 0x2462(%rip), %rcx      # 0xb7e8
pushq $0xc
popq %rsi
pushq $0x2
popq %rdx
movq %r15, %rdi
xorl %eax, %eax
callq 0x40f0
leaq 0x8(%rsp), %rdi
callq 0x41f0
movq 0x6b0(%rbx), %rdi
movl $0x400, %esi            # imm = 0x400
xorl %edx, %edx
callq 0x4440
movq 0x6b0(%rbx), %r15
movq %r14, %rdi
callq 0x84b6
leaq 0x48(%rsp), %r12
movq %r12, %rdi
movq %rax, %rsi
callq 0xa601
leaq 0x2429(%rip), %rsi      # 0xb802
leaq 0x28(%rsp), %rdi
movq %r12, %rdx
callq 0xa5dd
leaq 0x2457(%rip), %rdx      # 0xb844
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x85ec
movq 0x8(%rsp), %r8
pushq $0xe
popq %rdx
pushq $0x2
popq %rcx
pushq $0x7
popq %r9
movq %r15, %rsi
callq 0x8c16
leaq 0x8(%rsp), %rdi
callq 0x41f0
leaq 0x28(%rsp), %rdi
callq 0x41f0
leaq 0x48(%rsp), %rdi
callq 0x41f0
movq 0x6b0(%rbx), %r15
leaq 0x28(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x84c6
leaq 0x23bc(%rip), %rsi      # 0xb80b
leaq 0x8(%rsp), %rdi
movq %r12, %rdx
callq 0xa5dd
movq 0x8(%rsp), %r8
pushq $0xf
popq %rdx
pushq $0x2
popq %rcx
pushq $0x7
popq %r9
movq %r15, %rsi
callq 0x8c16
leaq 0x8(%rsp), %rdi
callq 0x41f0
leaq 0x28(%rsp), %rdi
callq 0x41f0
movq 0x6b0(%rbx), %rsi
leaq 0x2396(%rip), %r8       # 0xb82b
pushq $0x11
popq %rdx
pushq $0x2
popq %rcx
movl %ecx, %r9d
callq 0x8c16
movq 0x6b0(%rbx), %rdi
movq 0x7aff(%rip), %rax      # 0x10fb0
movl (%rax), %edx
addl $-0x26, %edx
pushq $0x1
popq %rsi
callq 0x41c0
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9518
jmp 0x9527
jmp 0x94f0
jmp 0x94ff
jmp 0x950e
jmp 0x94e6
jmp 0x94e6
jmp 0x94f0
jmp 0x94ff
jmp 0x950e
jmp 0x94e6
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
jmp 0x952f
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x41f0
jmp 0x9502
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x41f0
jmp 0x9511
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
jmp 0x952f
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x41f0
jmp 0x952a
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x41f0
movq %rbx, %rdi
callq 0x45a0