// File: /workspace/github_cpp_makefile_star2_O3/acherkaoui[P]HTOP/modules/Network.cpp
// Function: Network::refreshCpuData()
void  Network::refreshCpuData()
{
	std::ifstream file("/proc/net/dev", std::ifstream::in);
	std::string line;

	while (!file.eof())
	{
		std::getline(file, line);
		if (line.find("wlo1:") != std::string::npos)
			break;
	}
	std::string array[STAT_COLUMNS];
	std::size_t i = 0;
	std::stringstream ssin(line);
	while (ssin.good() && i < STAT_COLUMNS)
	{
		ssin >> array[i];
		i++;
	}
	fillValue(array[IN_BYTES], _inBytes);
	fillValue(array[IN_PACKETS], _inPackets);
	fillValue(array[OUT_BYTES], _outBytes);
	fillValue(array[OUT_PACKETS], _outPackets);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x5e0, %rsp            # imm = 0x5E0
movq %rdi, %rbx
leaq 0x46ed(%rip), %rsi      # 0xd287
leaq 0x3d8(%rsp), %r14
movq %r14, %rdi
movl $0x8, %edx
callq 0x45e0
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
leaq 0x8(%rsp), %r15
leaq 0x46c4(%rip), %r12      # 0xd295
movq 0x3d8(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x3f8(%rsp,%rax)
jne 0x8c22
leaq (%rsp,%rax), %rdi
addq $0x3d8, %rdi            # imm = 0x3D8
movl $0xa, %esi
callq 0x4330
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x45f0
movl $0x5, %ecx
movq %r15, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x45b0
cmpq $-0x1, %rax
je 0x8bd1
movl $0x10, %eax
leaq (%rsp,%rax), %rcx
addq $0x1b0, %rcx            # imm = 0x1B0
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rax
cmpq $0x230, %rax            # imm = 0x230
jne 0x8c27
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
movl $0x18, %edx
callq 0x4530
movq 0x28(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x48(%rsp,%rax)
jne 0x8cae
leaq 0x1b0(%rsp), %r14
xorl %r12d, %r12d
leaq 0x28(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x4440
movq 0x28(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x48(%rsp,%rax)
jne 0x8cae
leaq 0x1(%r12), %rax
addq $0x20, %r14
cmpq $0x10, %r12
movq %rax, %r12
jb 0x8c81
leaq 0x1d0(%rsp), %rdi
leaq 0x30(%rbx), %rsi
callq 0x8f1d
leaq 0x1f0(%rsp), %rdi
leaq 0x38(%rbx), %rsi
callq 0x8f1d
leaq 0x2d0(%rsp), %rdi
leaq 0x40(%rbx), %rsi
callq 0x8f1d
leaq 0x2f0(%rsp), %rdi
addq $0x48, %rbx
movq %rbx, %rsi
callq 0x8f1d
movq 0x92a4(%rip), %rsi      # 0x11fa0
leaq 0x28(%rsp), %rdi
callq 0x42a0
leaq 0xa8(%rsp), %rdi
callq 0x4160
leaq 0x3c0(%rsp), %rbx
xorl %r14d, %r14d
movq 0x3b0(%rsp,%r14), %rdi
leaq (%rbx,%r14), %rax
cmpq %rdi, %rax
je 0x8d34
callq 0x4320
addq $-0x20, %r14
cmpq $-0x220, %r14           # imm = 0xFDE0
jne 0x8d1e
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x8d50
callq 0x4320
leaq 0x3d8(%rsp), %rdi
callq 0x4100
addq $0x5e0, %rsp            # imm = 0x5E0
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
jmp 0x8d96
jmp 0x8d75
movq %rax, %rbx
movq 0x9221(%rip), %rsi      # 0x11fa0
leaq 0x28(%rsp), %rdi
callq 0x42a0
leaq 0xa8(%rsp), %rdi
callq 0x4160
leaq 0x3c0(%rsp), %r14
xorl %r15d, %r15d
movq 0x3b0(%rsp,%r15), %rdi
leaq (%r14,%r15), %rax
cmpq %rdi, %rax
je 0x8db7
callq 0x4320
addq $-0x20, %r15
cmpq $-0x220, %r15           # imm = 0xFDE0
jne 0x8da1
jmp 0x8dc9
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x8dd8
callq 0x4320
leaq 0x3d8(%rsp), %rdi
callq 0x4100
movq %rbx, %rdi
callq 0x45c0
nop