// File: /workspace/github_cpp_makefile_star2_O2/helchr[P]reMap/sysinfo.cpp
// Function: SysInfo::getImcs[abi:cxx11]()
std::vector<std::string> SysInfo::getImcs()
{
    static std::vector<std::string> imcs;
    if(imcs.empty())
    {
        std::string path = "/sys/bus/event_source/devices/";
        std::string imc = path+"uncore_imc";
        for (const auto & entry : fs::directory_iterator(path))
        {
            if(entry.path().string().rfind(imc,0) == 0)
            {
                imcs.push_back(entry.path());
            }
        }
        std::sort(imcs.begin(),imcs.end());
    }
    return imcs;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movb 0x1fd65(%rip), %al      # 0x2c530
testb %al, %al
je 0xc990
movq 0x1fd3e(%rip), %rax     # 0x2c518
cmpq 0x1fd3f(%rip), %rax     # 0x2c520
jne 0xc96c
movq %rdi, 0x28(%rsp)
leaq 0x14e0f(%rip), %rsi     # 0x21602
leaq 0x88(%rsp), %r14
leaq 0xa8(%rsp), %rdx
movq %r14, %rdi
callq 0xcbf0
leaq 0x14e0f(%rip), %rdx     # 0x21621
leaq 0x68(%rsp), %rdi
movq %r14, %rsi
callq 0xce42
leaq 0xa8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0xcdf0
leaq 0x30(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0xce7a
leaq 0xa8(%rsp), %r12
movq %r12, %rdi
callq 0xd068
leaq 0x40(%rsp), %rdi
leaq 0x30(%rsp), %r14
movq %r14, %rsi
callq 0xd094
leaq 0x8(%rsp), %rax
leaq 0x48(%rsp), %rdi
movaps -0x8(%rdi), %xmm0
movaps %xmm0, -0x8(%rax)
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%rdi)
callq 0xd0c8
leaq 0x58(%rsp), %rdi
movq %r14, %rsi
callq 0xd094
leaq 0x18(%rsp), %rax
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%rax)
leaq 0x60(%rsp), %rdi
callq 0xd0c8
movq %rsp, %r13
leaq 0x68(%rsp), %rbp
leaq 0x1fc60(%rip), %r14     # 0x2c518
movq 0x8(%rsp), %rax
cmpq 0x18(%rsp), %rax
je 0xc91f
movq %r13, %rdi
callq 0xf590
movq %rax, %r15
movq %r12, %rdi
movq %rax, %rsi
callq 0xce84
movq %r12, %rdi
movq %rbp, %rsi
xorl %edx, %edx
callq 0x53a0
movq %rax, %rbx
movq %r12, %rdi
callq 0x5888
testq %rbx, %rbx
jne 0xc915
movq %r12, %rdi
movq %r15, %rsi
callq 0x55a0
movq %r14, %rdi
movq %r12, %rsi
callq 0xd3ca
movq %r12, %rdi
callq 0x5888
movq %r13, %rdi
callq 0x10b20
jmp 0xc8b8
leaq 0x18(%rsp), %rdi
callq 0xd0c8
leaq 0x8(%rsp), %rdi
callq 0xd0c8
leaq 0x38(%rsp), %rdi
callq 0xd0c8
movq 0x1fbd4(%rip), %rdi     # 0x2c518
movq 0x1fbd5(%rip), %rsi     # 0x2c520
callq 0xd555
leaq 0x68(%rsp), %rdi
callq 0x5888
leaq 0x88(%rsp), %rdi
callq 0x5888
movq 0x28(%rsp), %rdi
leaq 0x1fba5(%rip), %rsi     # 0x2c518
movq %rdi, %rbx
callq 0xcea0
movq %rbx, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdi, %rbx
leaq 0x1fb96(%rip), %rdi     # 0x2c530
callq 0x57f0
movq %rbx, %rdi
testl %eax, %eax
je 0xc7d3
xorps %xmm0, %xmm0
movups %xmm0, 0x1fb64(%rip)    # 0x2c518
andq $0x0, 0x1fb6c(%rip)     # 0x2c528
leaq 0x1fb55(%rip), %rsi     # 0x2c518
leaq -0x31cc(%rip), %rdi     # 0x97fe
leaq 0x1fa77(%rip), %rdx     # 0x2c448
callq 0x5410
leaq 0x1fb53(%rip), %rdi     # 0x2c530
callq 0x5310
movq %rbx, %rdi
jmp 0xc7d3
jmp 0xc9fe
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0xd068
jmp 0xca41
movq %rax, %rbx
jmp 0xca41
movq %rax, %rbx
jmp 0xca4b
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x5888
jmp 0xca23
jmp 0xca20
jmp 0xca20
jmp 0xca20
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0xd0c8
leaq 0x8(%rsp), %rdi
callq 0xd0c8
leaq 0x38(%rsp), %rdi
callq 0xd0c8
leaq 0x68(%rsp), %rdi
callq 0x5888
leaq 0x88(%rsp), %rdi
callq 0x5888
movq %rbx, %rdi
callq 0x5790