// File: /workspace/github_cpp_makefile_star2_O1/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 0x947d
movl $0x4, %ebp
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r14, %rsi
cmpq $0x63, %rsi
jbe 0x9476
cmpq $0x3e7, %rsi            # imm = 0x3E7
jbe 0x947b
cmpq $0x2710, %rsi           # imm = 0x2710
jb 0x947d
movq %rsi, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %ebp
cmpq $0x1869f, %rsi          # imm = 0x1869F
movq %rdx, %rsi
ja 0x9440
addl $-0x3, %ebp
jmp 0x947d
addl $-0x2, %ebp
jmp 0x947d
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 0x9c00
leaq 0x3de7(%rip), %rsi      # 0xd2af
movq %r15, %rdi
callq 0x4600
leaq 0x18(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x94f7
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x94fd
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x108(%rsp), %r14
movq %r14, %rax
imulq %r12
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0xd, %rdx
addq %rax, %rdx
imulq $0x15180, %rdx, %rax    # imm = 0x15180
subq %rax, %r14
movabsq $0x48d159e26af37c05, %r13 # imm = 0x48D159E26AF37C05
movq %r14, %rax
imulq %r13
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0xa, %rdx
addq %rax, %rdx
movq %rdx, %r15
negq %r15
cmovsq %rdx, %r15
cmpq $0xa, %r15
movl $0x2, %ebp
sbbl $0x0, %ebp
xorl %esi, %esi
cmpq $-0xe0f, %r14           # imm = 0xF1F1
setl %sil
addl %ebp, %esi
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x28(%rsp), %rdi
movl $0x2d, %edx
callq 0x43f0
xorl %edi, %edi
cmpq $-0xe0f, %r14           # imm = 0xF1F1
setl %dil
addq 0x28(%rsp), %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x9c00
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x30(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
leaq 0x18(%rsp), %rdi
cmpq %rdi, %rcx
je 0x95da
movq 0x18(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x95f5
movl $0xf, %esi
cmpq %r12, 0x28(%rsp)
je 0x95f0
movq 0x38(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x9606
movq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x4150
jmp 0x9614
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 0x9638
movq %rsi, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x963e
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 0x3c54(%rip), %rsi      # 0xd2b6
leaq 0x48(%rsp), %rdi
callq 0x4600
leaq 0xb8(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x969d
movq %rdx, 0xa8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xb8(%rsp)
jmp 0x96a5
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0xb0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x108(%rsp), %r14
movq %r14, %rax
imulq %r13
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0xa, %rdx
addq %rax, %rdx
imulq $0xe10, %rdx, %rax      # imm = 0xE10
subq %rax, %r14
movabsq $-0x7777777777777777, %rcx # imm = 0x8888888888888889
movq %r14, %rax
imulq %rcx
addq %r14, %rdx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x5, %rdx
addq %rax, %rdx
movq %rdx, %r15
negq %r15
cmovsq %rdx, %r15
cmpq $0xa, %r15
movl $0x2, %ebp
sbbl $0x0, %ebp
xorl %esi, %esi
cmpq $-0x3b, %r14
setl %sil
addl %ebp, %esi
leaq 0x98(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x88(%rsp), %rdi
movl $0x2d, %edx
callq 0x43f0
xorl %edi, %edi
cmpq $-0x3b, %r14
setl %dil
addq 0x88(%rsp), %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x9c00
movq 0xa8(%rsp), %rcx
movq 0xb0(%rsp), %r8
movq 0x90(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x9791
movq 0xb8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x97b2
movl $0xf, %esi
cmpq %r13, 0x88(%rsp)
je 0x97ad
movq 0x98(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x97c9
movq 0x88(%rsp), %rsi
leaq 0xa8(%rsp), %rdi
callq 0x4150
jmp 0x97da
leaq 0x88(%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 0x97fe
movq %rsi, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x9804
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 0x3a96(%rip), %rsi      # 0xd2be
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 0x9862
movq %rdx, 0xe8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xf8(%rsp)
jmp 0x9869
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 0x98a1
callq 0x4320
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
leaq 0x18(%rsp), %r14
je 0x98b9
callq 0x4320
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
je 0x98cb
callq 0x4320
movq 0xa8(%rsp), %rdi
cmpq %r12, %rdi
je 0x98dd
callq 0x4320
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
leaq 0x38(%rsp), %r15
je 0x98f5
callq 0x4320
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x9904
callq 0x4320
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x9913
callq 0x4320
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x992d
callq 0x4320
movq $-0x400, %rax           # imm = 0xFC00
movq 0x128(%rsp), %rcx
andq %rax, %rcx
movq %rcx, 0x50(%rbx)
movq 0x148(%rsp), %rcx
andq %rax, %rcx
movq %rcx, 0x60(%rbx)
movq 0x130(%rsp), %rcx
andq %rax, %rcx
movq %rcx, 0x58(%rbx)
andq 0x150(%rsp), %rax
movq %rax, 0x68(%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 0x99a6
callq 0x4320
jmp 0x99a6
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
je 0x99bd
callq 0x4320
jmp 0x99bd
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %r12, %rdi
je 0x99d4
callq 0x4320
jmp 0x99d4
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x99ec
callq 0x4320
jmp 0x99ec
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x9a05
callq 0x4320
jmp 0x9a05
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x9a1e
callq 0x4320
jmp 0x9a1e
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x9a38
callq 0x4320
movq %rbx, %rdi
callq 0x45c0