// File: /workspace/github_cpp_makefile_star2_O3/acherkaoui[P]HTOP/modules/RAM.cpp
// Function: RAM::refresh()
void RAM::refresh()
{
	struct sysinfo _sysInfo;
	sysinfo(&_sysInfo);
	int minute = 60;
	int hour = minute * 60;
	int day = hour * 24;

	_upTime = std::to_string(_sysInfo.uptime / day) +
		" days " + std::to_string((_sysInfo.uptime % day) / hour) +
		" hours " + std::to_string((_sysInfo.uptime % hour) / minute) +
		" min.";
	_totalRam = _sysInfo.totalram / MB;
	_totalSwap = _sysInfo.totalswap / MB;
	_freeRam = _sysInfo.freeram / MB;
	_freeSwap = _sysInfo.freeswap / MB;
	_processes = _sysInfo.procs;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x178, %rsp            # imm = 0x178
movq %rdi, %rbx
leaq 0x108(%rsp), %r14
movq %r14, %rdi
callq 0x4460
movq (%r14), %rcx
movabsq $0x1845c8a0ce512957, %r12 # imm = 0x1845C8A0CE512957
movq %rcx, %rax
imulq %r12
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0xd, %rdx
addq %rax, %rdx
movq %rdx, %r14
negq %r14
cmovsq %rdx, %r14
movl $0x1, %ebp
cmpq $0xa, %r14
jb 0x93ad
movl $0x4, %ebp
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r14, %rsi
cmpq $0x63, %rsi
jbe 0x93a6
cmpq $0x3e7, %rsi            # imm = 0x3E7
jbe 0x93ab
cmpq $0x2710, %rsi           # imm = 0x2710
jb 0x93ad
movq %rsi, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %ebp
cmpq $0x1869f, %rsi          # imm = 0x1869F
movq %rdx, %rsi
ja 0x9370
addl $-0x3, %ebp
jmp 0x93ad
addl $-0x2, %ebp
jmp 0x93ad
decl %ebp
xorl %r13d, %r13d
cmpq $-0x1517f, %rcx         # imm = 0xFFFEAE81
setl %r13b
movl %r13d, %esi
addl %ebp, %esi
leaq 0xd8(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xc8(%rsp), %r15
movq %r15, %rdi
movl $0x2d, %edx
callq 0x43f0
movq (%r15), %rdi
addq %r13, %rdi
movl %ebp, %esi
movq %r14, %rdx
callq 0x9af8
leaq 0x3ec8(%rip), %rsi      # 0xd2c0
movq %r15, %rdi
callq 0x4600
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x9427
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x942f
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x108(%rsp), %rcx
movq %rcx, %rax
imulq %r12
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0xd, %rdx
addq %rax, %rdx
imulq $0x15180, %rdx, %rax    # imm = 0x15180
subq %rax, %rcx
movslq %ecx, %rax
imulq $-0x6e5d4c3b, %rax, %rcx # imm = 0x91A2B3C5
shrq $0x20, %rcx
addl %ecx, %eax
movl %eax, %ecx
shrl $0x1f, %ecx
sarl $0xb, %eax
addl %ecx, %eax
movslq %eax, %r15
movq %r15, %r14
negq %r14
cmovsq %r15, %r14
cmpq $0xa, %r14
movl $0x2, %r12d
sbbl $0x0, %r12d
shrq $0x3f, %r15
leal (%r15,%r12), %esi
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x28(%rsp), %rdi
movl $0x2d, %edx
callq 0x43f0
addq 0x28(%rsp), %r15
movq %r15, %rdi
movl %r12d, %esi
movq %r14, %rdx
callq 0x9af8
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x30(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r13, %rcx
je 0x94f7
movq 0x18(%rsp), %rdi
movq 0x28(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x9515
movl $0xf, %edi
cmpq %rbp, %rsi
je 0x9510
movq 0x38(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x9521
leaq 0x8(%rsp), %rdi
callq 0x4150
jmp 0x952f
leaq 0x28(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x43b0
leaq 0x58(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x9553
movq %rsi, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x9559
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x3d4a(%rip), %rsi      # 0xd2c7
leaq 0x48(%rsp), %rdi
callq 0x4600
leaq 0x98(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x95b7
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x95bf
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x90(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x108(%rsp), %rcx
movabsq $0x48d159e26af37c05, %rdx # imm = 0x48D159E26AF37C05
movq %rcx, %rax
imulq %rdx
movq %rdx, %rax
shrq $0x3f, %rax
shrq $0xa, %rdx
addl %eax, %edx
imull $0xe10, %edx, %eax      # imm = 0xE10
subl %eax, %ecx
movswl %cx, %eax
imull $0xffff8889, %eax, %eax # imm = 0xFFFF8889
shrl $0x10, %eax
addl %ecx, %eax
movzwl %ax, %eax
movswl %ax, %ecx
shrl $0xf, %eax
sarl $0x5, %ecx
addl %eax, %ecx
movswq %cx, %r15
movq %r15, %r14
negq %r14
cmovsq %r15, %r14
cmpq $0xa, %r14
movl $0x2, %r12d
sbbl $0x0, %r12d
shrq $0x3f, %r15
leal (%r15,%r12), %esi
leaq 0xb8(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0xa8(%rsp), %rdi
movl $0x2d, %edx
callq 0x43f0
addq 0xa8(%rsp), %r15
movq %r15, %rdi
movl %r12d, %esi
movq %r14, %rdx
callq 0x9af8
movq 0x88(%rsp), %rcx
movq 0x90(%rsp), %r8
movq 0xb0(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r13, %rcx
je 0x96a9
movq 0x98(%rsp), %rdi
movq 0xa8(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x96cd
movl $0xf, %edi
cmpq %rbp, %rsi
je 0x96c8
movq 0xb8(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x96dc
leaq 0x88(%rsp), %rdi
callq 0x4150
jmp 0x96ed
leaq 0xa8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x43b0
leaq 0x78(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x9711
movq %rsi, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x9717
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x70(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x3b94(%rip), %rsi      # 0xd2cf
leaq 0x68(%rsp), %rdi
callq 0x4600
leaq 0xf8(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x9775
movq %rdx, 0xe8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xf8(%rsp)
jmp 0x977c
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0xe8(%rsp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x30(%rbx), %rdi
movq %r14, %rsi
callq 0x4430
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x97b4
callq 0x4320
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x97c7
callq 0x4320
movq 0xa8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x97d9
callq 0x4320
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
leaq 0x18(%rsp), %r14
leaq 0x38(%rsp), %r15
je 0x97f5
callq 0x4320
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9808
callq 0x4320
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x9817
callq 0x4320
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x9826
callq 0x4320
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x9840
callq 0x4320
movups 0x128(%rsp), %xmm0
movaps 0x3a61(%rip), %xmm1     # 0xd2b0
andps %xmm1, %xmm0
movups %xmm0, 0x50(%rbx)
movups 0x148(%rsp), %xmm0
andps %xmm1, %xmm0
movups %xmm0, 0x60(%rbx)
movzwl 0x158(%rsp), %eax
movq %rax, 0x70(%rbx)
addq $0x178, %rsp            # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x989e
callq 0x4320
jmp 0x989e
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x98b5
callq 0x4320
jmp 0x98b5
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
je 0x98cc
callq 0x4320
jmp 0x98cc
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x98e4
callq 0x4320
jmp 0x98e4
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x98fd
callq 0x4320
jmp 0x98fd
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x9916
callq 0x4320
jmp 0x9916
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x9930
callq 0x4320
movq %rbx, %rdi
callq 0x45c0