// File: /workspace/github_cpp_makefile_star2_O2/enferex[P]fnplot/cs.cc
// Function: CS::initSymbols(unsigned char const*, unsigned long)
void CS::initSymbols(const uint8_t *data, size_t data_len)
{
    pos_t pos = {0};
    char line[1024];
    CSFile *file;

    pos.off = this->_hdr.syms_start;
    pos.data = data;
    pos.data_len = data_len;

    while (VALID(&pos) && pos.off <= this->_hdr.trailer) {
        // Get file info
        getLine(&pos, line, sizeof(line));
        file = newFile(line);
        fileLoadSymbols(file, &pos);

        // No-name file
        if (file->getName().size() == 0) {
            delete file;
            continue;
        }

        // Add the file to the list of files 
        this->addFile(file);
        this->_n_functions += file->getFunctionCount();
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc38, %rsp            # imm = 0xC38
movq %rdi, 0x10(%rsp)
movq 0x8(%rdi), %rbx
leaq 0x18(%rsp), %r14
movq %rbx, (%r14)
movq %rsi, 0x10(%r14)
movq %rdx, 0x8(%r14)
leaq 0x430(%rsp), %rbp
cmpq %rdx, %rbx
ja 0x2cbc
movq 0x10(%rsp), %rax
cmpq 0x10(%rax), %rbx
ja 0x2cbc
movq %r14, %rdi
leaq 0x830(%rsp), %rbx
movq %rbx, %rsi
callq 0x3233
movsbl (%rbx), %r12d
movl %r12d, %edi
callq 0x2050
incq %rbx
testl %eax, %eax
jne 0x2a95
pushq $0x68
popq %rdi
callq 0x21d0
movq %rax, %r15
movq %rax, %rdi
movq %rbx, %rsi
movl %r12d, %edx
callq 0x3bf2
movq %r14, %rdi
leaq 0x30(%rsp), %rsi
callq 0x3233
movq %r15, 0x8(%rsp)
movq 0x18(%rsp), %rbx
cmpq 0x20(%rsp), %rbx
ja 0x2c61
movq %r14, %rdi
leaq 0x30(%rsp), %rsi
callq 0x3233
leaq 0x2f(%rsp), %rbx
movb 0x1(%rbx), %r15b
incq %rbx
movsbl %r15b, %edi
callq 0x2050
testl %eax, %eax
jne 0x2af5
cmpb $0x40, %r15b
je 0x2c45
movq %rbx, %rdi
callq 0x2220
movq %rax, %rbx
movq 0x18(%rsp), %rax
cmpq 0x20(%rsp), %rax
ja 0x2c3b
movq %r14, %rdi
movq %rbp, %rsi
callq 0x3233
movb 0x430(%rsp), %al
testb %al, %al
je 0x2c3b
leaq 0x433(%rsp), %r13
cmpb $0x20, %al
jne 0x2b5d
movb -0x2(%r13), %al
incq %r13
jmp 0x2b50
movzbl %al, %eax
cmpl $0x9, %eax
jne 0x2b1e
movsbl -0x2(%r13), %r15d
movl %r15d, %edi
callq 0x32a5
testb %al, %al
je 0x2b1e
movzbl %r15b, %r15d
cmpl $0x60, %r15d
je 0x2b86
cmpl $0x24, %r15d
jne 0x2b1e
leaq -0x1(%r13), %r12
movsbl (%r12), %edi
callq 0x32a5
testb %al, %al
je 0x2ba3
cmpb $0x0, (%r13)
je 0x2b1e
cmpl $0x24, %r15d
je 0x2bef
cmpl $0x60, %r15d
jne 0x2c20
movq 0x8(%rsp), %rax
movq 0x60(%rax), %r13
testq %r13, %r13
je 0x2b1e
pushq $0x78
popq %rdi
callq 0x21d0
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
pushq $0x60
popq %rdx
movq %rbx, %rcx
movq 0x8(%rsp), %r8
callq 0x3ce4
movq %r13, %rdi
movq %r15, %rsi
callq 0x3c3c
jmp 0x2c20
movl $0xb0, %edi
callq 0x21d0
movq %rax, %r13
movq %rax, %rdi
movq %r12, %rsi
pushq $0x24
popq %rdx
movq %rbx, %rcx
movq 0x8(%rsp), %r15
movq %r15, %r8
callq 0x3da4
movq %r15, %rdi
movq %r13, %rsi
callq 0x3cfa
cmpb $0x0, (%r12)
je 0x2b1e
movq %r14, %rdi
movq %rbp, %rsi
callq 0x3233
jmp 0x2b1e
movq 0x8(%rsp), %r15
jmp 0x2ad3
leaq 0x30(%rsp), %rdi
callq 0x20d0
movq 0x18(%rsp), %rbx
subq %rax, %rbx
movq %rbx, 0x18(%rsp)
movq 0x8(%rsp), %r15
movq %rbp, %rdi
movq %r15, %rsi
callq 0x2270
movq %r15, %r12
movq 0x438(%rsp), %r15
movq %rbp, %rdi
callq 0x20f0
testq %r15, %r15
je 0x2c9f
movq 0x10(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x338c
movl 0x40(%r12), %eax
addl %eax, 0x58(%r15)
jmp 0x2cb2
movq %r12, %rdi
callq 0x3376
movq %r12, %rdi
pushq $0x68
popq %rsi
callq 0x21e0
movq 0x20(%rsp), %rdx
jmp 0x2a6a
addq $0xc38, %rsp            # imm = 0xC38
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
pushq $0x68
jmp 0x2cda
movq %rax, %rbx
pushq $0x78
popq %rsi
movq %r15, %rdi
jmp 0x2ceb
movq %rax, %rbx
movl $0xb0, %esi
movq %r13, %rdi
callq 0x21e0
movq %rbx, %rdi
callq 0x2320