// File: /workspace/github_cpp_makefile_star2_O1/enferex[P]fnplot/cs.cc
// Function: CS::buildDatabase[abi:cxx11]()
CSDB *CS::buildDatabase()
{
    int i = 0, sidx = 0;
    const char spin[] = "-\\|/";
    auto db = new CSDB;

    cout << "Building internal database: ";
    for (auto f: this->_files) {
        for (auto fndef_pr: *f->getFunctions()) {
            // Collect all calls this function (fndef) makes
            std::vector<const CSFuncCall *> callees;
            auto fndef = static_cast<const CSFuncDef *>(fndef_pr.second);
            fndef->getCallees(callees);

            // Add the funtion_def : calleess map entry
            auto pr = std::make_pair(fndef->getName(), callees);
            db->insert(pr);
            if ((++i % 1000) == 0)
              cout << '\b' << spin[sidx++ % 4] << std::flush;
        }
    }

    cout << '\b' << " Done " << endl;
    return db;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdi, %r14
movl $0x38, %edi
callq 0x21b0
leaq 0x30(%rax), %rcx
movq %rcx, (%rax)
movq $0x1, 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movl $0x3f800000, 0x20(%rax) # imm = 0x3F800000
movq %rax, 0x8(%rsp)
movups %xmm0, 0x28(%rax)
movq 0x4c95(%rip), %rdi      # 0x7fd0
leaq 0x1f0d(%rip), %rsi      # 0x524f
movl $0x1c, %edx
callq 0x21f0
movq 0x60(%r14), %rax
movq 0x68(%r14), %rcx
movq %rcx, 0x48(%rsp)
cmpq %rcx, %rax
je 0x3514
leaq 0x68(%rsp), %rbp
xorl %r14d, %r14d
leaq 0x28(%rsp), %r12
xorl %ebx, %ebx
movq %rax, 0x50(%rsp)
movq (%rax), %rax
movq 0x38(%rax), %r15
testq %r15, %r15
je 0x3500
movq %rbp, %r13
movq %rbp, 0x58(%rsp)
movq 0x8(%r15), %rsi
movq 0x10(%r15), %rdx
addq %rsi, %rdx
leaq 0x58(%rsp), %rdi
callq 0x3b82
movq 0x28(%r15), %rbp
movq %rbp, 0x78(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq %rbp, %rdi
leaq 0x10(%rsp), %rsi
callq 0x3a7a
movq (%rbp), %rax
movq %r12, %rdi
movq %rbp, %rsi
callq *(%rax)
leaq 0x80(%rsp), %rdi
movq %r12, %rsi
leaq 0x10(%rsp), %rdx
movq %r13, %rbp
callq 0x3d8a
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x340a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x8(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x4b7c
imull $0x26e978d5, %r14d, %eax # imm = 0x26E978D5
addl $0x27ef9dad, %eax       # imm = 0x27EF9DAD
rorl $0x3, %eax
cmpl $0x418936, %eax         # imm = 0x418936
ja 0x3485
movb $0x8, 0x28(%rsp)
movl $0x1, %edx
movq 0x4b8d(%rip), %rdi      # 0x7fd0
movq %r12, %rsi
callq 0x21f0
leal 0x3(%rbx), %ecx
testl %ebx, %ebx
cmovnsl %ebx, %ecx
andl $-0x4, %ecx
movl %ebx, %edx
subl %ecx, %edx
movslq %edx, %rcx
leaq 0x1de6(%rip), %rdx      # 0x524a
movb (%rcx,%rdx), %cl
movb %cl, 0x28(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x21f0
movq %rax, %rdi
callq 0x2140
incl %ebx
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x34a2
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x21c0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x34c7
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x34de
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x21c0
movq 0x58(%rsp), %rdi
cmpq %rbp, %rdi
je 0x34f5
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x21c0
incl %r14d
movq (%r15), %r15
jmp 0x337d
movq 0x50(%rsp), %rax
addq $0x8, %rax
cmpq 0x48(%rsp), %rax
jne 0x3371
leaq 0x80(%rsp), %rsi
movb $0x8, (%rsi)
movq 0x4aaa(%rip), %rdi      # 0x7fd0
movl $0x1, %edx
callq 0x21f0
movq %rax, %r14
leaq 0x1d32(%rip), %rsi      # 0x526c
movl $0x6, %edx
movq %rax, %rdi
callq 0x21f0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2190
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2140
movq 0x8(%rsp), %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x35c0
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21c0
jmp 0x35c0
jmp 0x35a8
movq %rax, %rbx
movq %r13, %rbp
jmp 0x35c0
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x3b24
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x35d7
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x21c0
movq 0x58(%rsp), %rdi
cmpq %rbp, %rdi
je 0x35ee
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rdi
callq 0x22f0