// File: /workspace/github_cpp_makefile_star2_O3/IHorvalds[P]RomAna/./processing/InflexEngineUtil.cpp
// Function: InflexEngine::loadExternal(char const*)
void InflexEngine::loadExternal(const char* filename) {
// Load class members from external binary file
  std::ifstream in;
  in.open(filename, std::ios::in | std::ios::binary);

  in.read((char*) &size,       sizeof(uint32_t));
  in.read((char*) &sigma,      sizeof(uint32_t));
  in.read((char*) &fullBits,  sizeof(uint32_t));

  bufferLastPtr = size - 1;
  staticTrie = new InflexEngineNode[size];
  for (unsigned i = 0; i < size; i++) {
    in.read((char*) &staticTrie[i].code,          sizeof(uint32_t));
    in.read((char*) &staticTrie[i].configuration, sizeof(uint32_t));
    in.read((char*) &staticTrie[i].parent,        sizeof(uint32_t));
    unsigned count = bitOp::countOfBits(staticTrie[i].configuration);
    if (count) {
      staticTrie[i].sons = new uint32_t[count];
      in.read((char*) staticTrie[i].sons, count * sizeof(uint32_t));
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x32e0
movq %r15, %rdi
movq %r14, %rsi
movl $0xc, %edx
callq 0x3180
leaq 0x18(%rbx), %rsi
leaq 0x10(%rsp), %rdi
movl $0x4, %edx
movq %rsi, 0x8(%rsp)
callq 0x3330
leaq 0x20(%rbx), %rsi
leaq 0x10(%rsp), %rdi
movl $0x4, %edx
callq 0x3330
leaq 0x24(%rbx), %rsi
leaq 0x10(%rsp), %rdi
movl $0x4, %edx
callq 0x3330
movl 0x18(%rbx), %r14d
leal -0x1(%r14), %eax
movl %eax, 0x28(%rbx)
movq %r14, %rax
shlq $0x2, %rax
leaq (%rax,%rax,4), %r12
movq %r12, %rdi
callq 0x3030
movq %rax, %r15
testl %r14d, %r14d
je 0x4953
addq $-0x14, %r12
movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD
movq %r12, %rax
mulq %rcx
shrq $0x4, %rdx
leaq (%rdx,%rdx,4), %rax
leaq 0x14(,%rax,4), %rdx
xorl %r13d, %r13d
movq %r15, %rdi
xorl %esi, %esi
callq 0x3170
movq %r15, 0x8(%rbx)
leaq 0x10(%rsp), %r15
xorl %ebp, %ebp
movq 0x8(%rbx), %rsi
addq %r13, %rsi
movl $0x4, %edx
movq %r15, %rdi
callq 0x3330
movq 0x8(%rbx), %rax
leaq (%rax,%r13), %rsi
addq $0x8, %rsi
movl $0x4, %edx
movq %r15, %rdi
callq 0x3330
movq 0x8(%rbx), %rax
leaq (%rax,%r13), %rsi
addq $0x4, %rsi
movl $0x4, %edx
movq %r15, %rdi
callq 0x3330
movq 0x8(%rbx), %r14
movl 0x8(%r14,%r13), %eax
testl %eax, %eax
je 0x493a
movl %eax, %ecx
shrl %ecx
andl $0x55555555, %ecx       # imm = 0x55555555
subl %ecx, %eax
movl %eax, %ecx
movl $0x33333333, %edx       # imm = 0x33333333
andl %edx, %ecx
shrl $0x2, %eax
andl %edx, %eax
addl %ecx, %eax
movl %eax, %ecx
shrl $0x4, %ecx
addl %eax, %ecx
andl $0xf0f0f0f, %ecx        # imm = 0xF0F0F0F
imull $0x1010101, %ecx, %r12d # imm = 0x1010101
shrl $0x16, %r12d
andl $-0x4, %r12d
movq %r12, %rdi
callq 0x3030
movq %rax, 0xc(%r14,%r13)
movq %r15, %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x3330
incq %rbp
movq 0x8(%rsp), %rax
movl (%rax), %eax
addq $0x14, %r13
cmpq %rax, %rbp
jb 0x4894
jmp 0x4957
movq %r15, 0x8(%rbx)
leaq 0x10(%rsp), %rdi
callq 0x30c0
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4977
jmp 0x4977
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x30c0
movq %rbx, %rdi
callq 0x34b0