// File: /workspace/github_cpp_makefile_star2_O2/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 0x32b0
pushq $0xc
popq %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x3170
leaq 0x18(%rbx), %rsi
leaq 0x10(%rsp), %rdi
pushq $0x4
popq %rdx
movq %rsi, 0x8(%rsp)
callq 0x32f0
leaq 0x20(%rbx), %rsi
leaq 0x10(%rsp), %rdi
pushq $0x4
popq %rdx
callq 0x32f0
leaq 0x24(%rbx), %rsi
leaq 0x10(%rsp), %rdi
pushq $0x4
popq %rdx
callq 0x32f0
movl 0x18(%rbx), %r13d
leal -0x1(%r13), %eax
movl %eax, 0x28(%rbx)
imulq $0x14, %r13, %r15
movq %r15, %rdi
callq 0x3030
movq %rax, %r12
movq %rbx, (%rsp)
testl %r13d, %r13d
je 0x44a0
addq $-0x14, %r15
pushq $0x14
popq %rcx
movq %r15, %rax
xorl %edx, %edx
divq %rcx
subq %rdx, %r15
addq $0x14, %r15
movq %r12, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x3160
movq (%rsp), %rax
movq %r12, 0x8(%rax)
xorl %ebp, %ebp
leaq 0x10(%rsp), %rbx
pushq $0x4
popq %r15
xorl %r14d, %r14d
movl %r13d, %eax
cmpq %rax, %r14
jae 0x457a
movq (%rsp), %r13
movq 0x8(%r13), %rsi
addq %rbp, %rsi
movq %rbx, %rdi
movq %r15, %rdx
callq 0x32f0
movq 0x8(%r13), %rax
leaq (%rax,%rbp), %rsi
addq $0x8, %rsi
movq %rbx, %rdi
movq %r15, %rdx
callq 0x32f0
movq 0x8(%r13), %rax
leaq (%rax,%rbp), %rsi
addq $0x4, %rsi
movq %rbx, %rdi
movq %r15, %rdx
callq 0x32f0
movq 0x8(%r13), %r12
movl 0x8(%r12,%rbp), %eax
testl %eax, %eax
je 0x4566
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, %r13d # imm = 0x1010101
shrl $0x16, %r13d
andl $-0x4, %r13d
movq %r13, %rdi
callq 0x3030
movq %rax, 0xc(%r12,%rbp)
movq %rbx, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x32f0
incq %r14
movq 0x8(%rsp), %rax
movl (%rax), %r13d
addq $0x14, %rbp
jmp 0x44b6
leaq 0x10(%rsp), %rdi
callq 0x30b0
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x459a
jmp 0x459a
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x30b0
movq %rbx, %rdi
callq 0x3480
nop