// File: /workspace/github_cpp_makefile_star2_O3/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 $0xc48, %rsp            # imm = 0xC48
movq %rdi, 0x20(%rsp)
movq 0x8(%rdi), %r13
cmpq %rdx, %r13
ja 0x3225
movq 0x20(%rsp), %rax
cmpq 0x10(%rax), %r13
ja 0x3225
movq %rdx, %rbx
movq %rsi, %r14
movq %r13, %r15
cmpb $0xa, (%r14,%r15)
je 0x2cb8
incq %r15
cmpq %rbx, %r15
jbe 0x2ca9
movq %r15, %rbp
subq %r13, %rbp
incq %r15
cmpq %rbx, %r15
setae %al
cmpq $0x401, %rbp            # imm = 0x401
setae %cl
orb %al, %cl
jne 0x2cf3
addq %r14, %r13
leaq 0x840(%rsp), %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x2170
movb $0x0, 0x840(%rsp,%rbp)
leaq 0x840(%rsp), %r13
movb (%r13), %bpl
movsbl %bpl, %edi
callq 0x2060
incq %r13
testl %eax, %eax
jne 0x2cfb
movl $0x68, %edi
callq 0x21b0
movq %rax, %r12
addq $0x10, %rax
movq %rax, 0x38(%rsp)
movq %rax, (%r12)
movq %r13, %rdi
callq 0x20e0
leaq (%rax,%r13), %rdx
movq %r12, %rdi
movq %r13, %rsi
callq 0x42f6
movb %bpl, 0x20(%r12)
leaq 0x58(%r12), %rax
movq %rax, 0x28(%r12)
movq $0x1, 0x30(%r12)
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%r12)
movl $0x3f800000, 0x48(%r12) # imm = 0x3F800000
movups %xmm0, 0x50(%r12)
movq $0x0, 0x60(%r12)
movq %r15, %rbp
cmpq %rbx, %r15
ja 0x2d93
movq %r15, %rbp
cmpb $0xa, (%r14,%rbp)
je 0x2d93
incq %rbp
cmpq %rbx, %rbp
jbe 0x2d84
movq %r12, 0x8(%rsp)
movq %rbp, %r13
subq %r15, %r13
incq %rbp
cmpq %rbx, %rbp
setae %al
cmpq $0x401, %r13            # imm = 0x401
setae %cl
orb %al, %cl
jne 0x2dd4
addq %r14, %r15
leaq 0x440(%rsp), %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x2170
movb $0x0, 0x440(%rsp,%r13)
cmpq %rbx, %rbp
leaq 0x25a2(%rip), %r12      # 0x5380
jbe 0x2de8
movq %rbp, %r13
jmp 0x3175
movq %rbp, %r13
cmpq %rbx, %rbp
ja 0x2e02
movq %rbp, %r13
cmpb $0xa, (%r14,%r13)
je 0x2e02
incq %r13
cmpq %rbx, %r13
jbe 0x2df3
movq %r13, %r15
subq %rbp, %r15
incq %r13
cmpq %rbx, %r13
setae %al
cmpq $0x401, %r15            # imm = 0x401
setae %cl
orb %al, %cl
jne 0x2e3e
addq %r14, %rbp
leaq 0x440(%rsp), %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x2170
movb $0x0, 0x440(%rsp,%r15)
leaq 0x43f(%rsp), %r15
movb 0x1(%r15), %bpl
incq %r15
movsbl %bpl, %edi
callq 0x2060
testl %eax, %eax
jne 0x2e46
cmpb $0x40, %bpl
je 0x3165
movq %r15, %rdi
callq 0x2210
movq %rax, 0x28(%rsp)
cmpq %rbx, %r13
ja 0x3157
movq %r13, %r15
cmpq %rbx, %r13
ja 0x2e94
movq %r13, %r15
cmpb $0xa, (%r14,%r15)
je 0x2e94
incq %r15
cmpq %rbx, %r15
jbe 0x2e85
movq %r15, %rbp
subq %r13, %rbp
incq %r15
cmpq %rbx, %r15
setae %al
cmpq $0x401, %rbp            # imm = 0x401
setae %cl
orb %al, %cl
jne 0x2ec9
addq %r14, %r13
leaq 0x40(%rsp), %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x2170
movb $0x0, 0x40(%rsp,%rbp)
movb 0x40(%rsp), %al
testb %al, %al
je 0x3154
leaq 0x43(%rsp), %r13
cmpb $0x20, %al
jne 0x2ee7
movb -0x2(%r13), %al
incq %r13
jmp 0x2eda
movzbl %al, %eax
cmpl $0x9, %eax
jne 0x2ef9
movzbl -0x2(%r13), %eax
cmpl $0x40, %eax
jne 0x2f01
movq %r15, %r13
jmp 0x2e71
movq $-0x1, %rcx
cmpq $0x10, %rcx
je 0x2ef9
leaq 0x1(%rcx), %rdx
cmpb %al, 0x2(%rcx,%r12)
movq %rdx, %rcx
jne 0x2f08
cmpq $0x10, %rdx
ja 0x2ef9
cmpl $0x60, %eax
je 0x2f2c
cmpl $0x24, %eax
jne 0x2ef9
leaq -0x1(%r13), %rcx
movq %rcx, 0x10(%rsp)
movb (%rcx), %cl
cmpb $0x40, %cl
jne 0x2f45
cmpb $0x0, (%r13)
jne 0x2f66
jmp 0x2ef9
movq $-0x1, %rdx
cmpq $0x10, %rdx
je 0x2f66
leaq 0x1(%rdx), %rsi
cmpb %cl, 0x2(%rdx,%r12)
movq %rsi, %rdx
jne 0x2f4c
cmpq $0x10, %rsi
jbe 0x2f3c
cmpl $0x24, %eax
je 0x3030
cmpl $0x60, %eax
jne 0x30ee
movq 0x8(%rsp), %rax
movq 0x60(%rax), %rax
testq %rax, %rax
je 0x2ef9
movq %rax, 0x30(%rsp)
movl $0x78, %edi
callq 0x21b0
movq %rax, %rbp
leaq 0x4dbd(%rip), %rax      # 0x7d60
movq %rax, (%rbp)
leaq 0x8(%rbp), %rax
movq %rax, 0x18(%rsp)
leaq 0x18(%rbp), %rax
movq %rax, 0x8(%rbp)
movq 0x10(%rsp), %rdi
callq 0x20e0
leaq (%rax,%r13), %rdx
decq %rdx
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x42f6
movb $0x60, 0x28(%rbp)
movq 0x28(%rsp), %rax
movq %rax, 0x30(%rbp)
movq 0x8(%rsp), %rax
movq %rax, 0x38(%rbp)
movq %rbp, %rax
addq $0x70, %rax
movq %rax, 0x40(%rbp)
movq $0x1, 0x48(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rbp)
movl $0x3f800000, 0x60(%rbp) # imm = 0x3F800000
movups %xmm0, 0x68(%rbp)
leaq 0x4d06(%rip), %rax      # 0x7d20
movq %rax, (%rbp)
movq 0x30(%rsp), %rdi
movq %rbp, %rsi
callq 0x438c
jmp 0x30ee
movl $0xb0, %edi
callq 0x21b0
movq %rax, %rbp
leaq 0x4d1c(%rip), %rax      # 0x7d60
movq %rax, (%rbp)
leaq 0x8(%rbp), %rax
movq %rax, 0x18(%rsp)
leaq 0x18(%rbp), %rax
movq %rax, 0x8(%rbp)
movq 0x10(%rsp), %rdi
callq 0x20e0
leaq (%rax,%r13), %rdx
decq %rdx
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x42f6
movb $0x24, 0x28(%rbp)
movq 0x28(%rsp), %rax
movq %rax, 0x30(%rbp)
movq 0x8(%rsp), %rdi
movq %rdi, 0x38(%rbp)
leaq 0x70(%rbp), %rax
movq %rax, 0x40(%rbp)
movl $0x1, %ecx
movq %rcx, 0x48(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rbp)
movl $0x3f800000, %edx       # imm = 0x3F800000
movl %edx, 0x60(%rbp)
movups %xmm0, 0x68(%rbp)
leaq 0x4cbe(%rip), %rax      # 0x7d78
movq %rax, (%rbp)
movq %rbp, %rax
addq $0xa8, %rax
movq %rax, 0x78(%rbp)
movq %rcx, 0x80(%rbp)
movups %xmm0, 0x88(%rbp)
movl %edx, 0x98(%rbp)
movups %xmm0, 0xa0(%rbp)
movq %rbp, %rsi
callq 0x4438
movq 0x10(%rsp), %rax
cmpb $0x0, (%rax)
je 0x2ef9
movq %r15, %r13
cmpq %rbx, %r15
ja 0x3116
movq %r15, %r13
cmpb $0xa, (%r14,%r13)
je 0x3116
incq %r13
cmpq %rbx, %r13
jbe 0x3107
movq %r13, %rbp
subq %r15, %rbp
incq %r13
cmpq %rbx, %r13
setae %al
cmpq $0x401, %rbp            # imm = 0x401
setae %cl
orb %al, %cl
jne 0x2e71
addq %r14, %r15
leaq 0x40(%rsp), %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0x2170
movb $0x0, 0x40(%rsp,%rbp)
jmp 0x2e71
movq %r15, %r13
movq %r13, %rbp
cmpq %rbx, %r13
jbe 0x2deb
jmp 0x3175
leaq 0x440(%rsp), %rdi
callq 0x20e0
subq %rax, %r13
leaq 0x50(%rsp), %rbp
movq %rbp, 0x40(%rsp)
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x40(%rsp), %rdi
callq 0x3ad2
movq 0x40(%rsp), %rdi
movq 0x48(%rsp), %r15
cmpq %rbp, %rdi
je 0x31b4
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x21c0
testq %r15, %r15
je 0x31d9
movq 0x20(%rsp), %r15
movq %r15, %rdi
movq 0x8(%rsp), %r12
movq %r12, %rsi
callq 0x3aa8
movl 0x40(%r12), %eax
addl %eax, 0x58(%r15)
jmp 0x3211
movq 0x8(%rsp), %r15
movq %r15, %rdi
addq $0x28, %rdi
callq 0x4920
movq (%r15), %rdi
movq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x3202
movq (%rax), %rsi
incq %rsi
callq 0x21c0
movl $0x68, %esi
movq 0x8(%rsp), %rdi
callq 0x21c0
cmpq %rbx, %r13
ja 0x3225
movq 0x20(%rsp), %rax
cmpq 0x10(%rax), %r13
jbe 0x2ca6
addq $0xc48, %rsp            # imm = 0xC48
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0x78, %esi
jmp 0x3249
movq %rax, %rbx
movl $0xb0, %esi
movq %rbp, %rdi
jmp 0x3259
movq %rax, %rbx
movl $0x68, %esi
movq %r12, %rdi
callq 0x21c0
movq %rbx, %rdi
callq 0x22f0