// File: 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:
subq $0x288, %rsp            # imm = 0x288
movq %rdi, 0x280(%rsp)
movq %rsi, 0x278(%rsp)
movq 0x280(%rsp), %rax
movq %rax, 0x48(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x43e0
movq 0x278(%rsp), %rax
movq %rax, 0x50(%rsp)
movl $0x8, %edi
movl $0x4, %esi
callq 0xb010
movl %eax, 0x58(%rsp)
jmp 0x6430
movl 0x58(%rsp), %edx
movq 0x50(%rsp), %rsi
leaq 0x70(%rsp), %rdi
callq 0x4220
jmp 0x6445
movq 0x48(%rsp), %rsi
addq $0x18, %rsi
leaq 0x70(%rsp), %rdi
movl $0x4, %edx
callq 0x4440
jmp 0x645f
movq 0x48(%rsp), %rsi
addq $0x20, %rsi
leaq 0x70(%rsp), %rdi
movl $0x4, %edx
callq 0x4440
jmp 0x6479
movq 0x48(%rsp), %rsi
addq $0x24, %rsi
leaq 0x70(%rsp), %rdi
movl $0x4, %edx
callq 0x4440
jmp 0x6493
movq 0x48(%rsp), %rax
movl 0x18(%rax), %ecx
decl %ecx
movl %ecx, 0x28(%rax)
movl 0x18(%rax), %eax
movq %rax, 0x30(%rsp)
shlq $0x2, %rax
leaq (%rax,%rax,4), %rdi
movq %rdi, 0x38(%rsp)
callq 0x4030
movq %rax, 0x40(%rsp)
jmp 0x64c1
movq 0x30(%rsp), %rax
cmpq $0x0, %rax
je 0x6513
movq 0x40(%rsp), %rax
movq 0x30(%rsp), %rcx
imulq $0x14, %rcx, %rdx
movq %rax, %rcx
addq %rdx, %rcx
movq %rcx, 0x20(%rsp)
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0xae60
jmp 0x64fb
movq 0x20(%rsp), %rcx
movq 0x18(%rsp), %rax
addq $0x14, %rax
cmpq %rcx, %rax
movq %rax, 0x28(%rsp)
jne 0x64ea
movq 0x48(%rsp), %rax
movq 0x40(%rsp), %rcx
movq %rcx, 0x8(%rax)
movl $0x0, 0x60(%rsp)
movq 0x48(%rsp), %rcx
movl 0x60(%rsp), %eax
cmpl 0x18(%rcx), %eax
jae 0x667d
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rax
movl 0x60(%rsp), %ecx
leaq (%rcx,%rcx,4), %rcx
leaq (%rax,%rcx,4), %rsi
leaq 0x70(%rsp), %rdi
movl $0x4, %edx
callq 0x4440
jmp 0x6561
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rax
movl 0x60(%rsp), %ecx
leaq (%rcx,%rcx,4), %rcx
leaq 0x8(%rax,%rcx,4), %rsi
leaq 0x70(%rsp), %rdi
movl $0x4, %edx
callq 0x4440
jmp 0x6588
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rax
movl 0x60(%rsp), %ecx
leaq (%rcx,%rcx,4), %rcx
leaq 0x4(%rax,%rcx,4), %rsi
leaq 0x70(%rsp), %rdi
movl $0x4, %edx
callq 0x4440
jmp 0x65af
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rax
movl 0x60(%rsp), %ecx
leaq (%rcx,%rcx,4), %rcx
movl 0x8(%rax,%rcx,4), %edi
callq 0x5bc0
movl %eax, 0x14(%rsp)
jmp 0x65cf
movl 0x14(%rsp), %eax
movl %eax, 0x5c(%rsp)
cmpl $0x0, 0x5c(%rsp)
je 0x666b
movl 0x5c(%rsp), %eax
movl %eax, %edi
shlq $0x2, %rdi
callq 0x4030
movq %rax, 0x8(%rsp)
jmp 0x65f8
movq 0x48(%rsp), %rax
movq 0x8(%rsp), %rsi
movq 0x8(%rax), %rcx
movl 0x60(%rsp), %edx
leaq (%rdx,%rdx,4), %rdx
movq %rsi, 0xc(%rcx,%rdx,4)
movq 0x8(%rax), %rax
movl 0x60(%rsp), %ecx
leaq (%rcx,%rcx,4), %rcx
movq 0xc(%rax,%rcx,4), %rsi
movl 0x5c(%rsp), %eax
movl %eax, %edx
shlq $0x2, %rdx
leaq 0x70(%rsp), %rdi
callq 0x4440
jmp 0x663a
jmp 0x666b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
jmp 0x668f
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
callq 0x4690
jmp 0x668f
jmp 0x666d
movl 0x60(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x60(%rsp)
jmp 0x6529
leaq 0x70(%rsp), %rdi
callq 0x4100
addq $0x288, %rsp            # imm = 0x288
retq
leaq 0x70(%rsp), %rdi
callq 0x4100
movq 0x68(%rsp), %rdi
callq 0x4620
nopw %cs:(%rax,%rax)