// File: /workspace/github_c_makefile_star2_O1/cogbee[P]vmir-latest/src/vmir.c
// Function: vmir_load
int
vmir_load(ir_unit_t *iu, const uint8_t *u8, int len)
{
  bcbitstream_t bs = {0};
  bs.rdata = u8;
  bs.bytes_length = len;


  TAILQ_INIT(&iu->iu_functions_with_bodies);

  if(setjmp(iu->iu_parser_jmp)) {
    iu_cleanup(iu);
    return VMIR_ERR_LOAD_ERROR;
  }

#ifdef VMIR_VM_JIT
  jit_init(iu);
#endif

  const uint32_t magic = read_bits(&bs, 32);
  // crosss....cogbee
  read_bits(&bs, 32*5);
  iu->iu_data_ptr = 4096;
  switch(magic) {

  case 0x6d736100: // WebAssembly
    iu->iu_mode = VMIR_WASM;
    wasm_parse_module(iu, u8 + 4, u8 + len);
    break;

  case 0xdec04342: // LLVM Bitcode
  case 0x0b17c0de: // LLVM Bitcode
    // WebAssembly need memory at 0. Bitcode don't really.
    ir_parse_blocks(iu, 2, NULL, NULL, &bs);
    break;
  default:
    return VMIR_ERR_NOT_BITCODE;
  }

  free(iu->iu_text_alloc);

#ifdef VMIR_VM_JIT
  jit_seal_code(iu);
#endif
  iu->iu_heap_start = VMIR_ALIGN(iu->iu_data_ptr, 4096);
  iu->iu_stats.data_size = iu->iu_heap_start;

  vmir_heap_init(iu);

  initialize_globals(iu, iu->iu_mem);

  libc_initialize(iu);

  iu->iu_vm_funcs  = calloc(VECTOR_LEN(&iu->iu_functions), sizeof(void *));
  iu->iu_function_table = calloc(VECTOR_LEN(&iu->iu_functions), sizeof(void *));
  
  for(int i = 0; i < VECTOR_LEN(&iu->iu_functions); i++) {
    ir_function_t *f = VECTOR_ITEM(&iu->iu_functions, i);

    iu->iu_vm_funcs[i]  = f->if_vm_text;
    iu->iu_function_table[i] = f->if_ext_func;
    if(f->if_used && f->if_vm_text == NULL && f->if_ext_func == NULL) {
      vmir_log(iu, VMIR_LOG_ERROR, "....Function %s() is not defined", f->if_name);
      if(!(iu->iu_debug_flags & VMIR_DBG_IGNORE_UNRESOLVED_FUNCTIONS)) {
        parser_error(iu, "Function %s() is not defined", f->if_name);
      }
    }
  }

  run_global_ctors(iu);

  iu_cleanup(iu);
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
xorl %eax, %eax
movq %rax, 0x80(%rsp)
movq %rsi, 0x70(%rsp)
movl %edx, 0x78(%rsp)
leaq 0x1a8(%rdi), %rcx
movq %rax, 0x1a8(%rdi)
movq %rcx, 0x1b0(%rdi)
addq $0x370, %rdi            # imm = 0x370
callq 0x32e0
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
testl %eax, %eax
je 0xa414
movq %rbx, %rdi
movl %ecx, %ebx
callq 0xbf0b
movl %ebx, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x70(%rsp), %r12
movq %r12, %rdi
movl $0x20, %esi
callq 0xc0fb
movl %eax, %r15d
movq %r12, %rdi
movl $0xa0, %esi
callq 0xc0fb
movl $0x1000, 0x88(%rbx)     # imm = 0x1000
cmpl $0xdec04342, %r15d      # imm = 0xDEC04342
movq %rbx, 0x28(%rsp)
je 0xb7c8
cmpl $0xb17c0de, %r15d       # imm = 0xB17C0DE
je 0xb7c8
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x6d736100, %r15d      # imm = 0x6D736100
jne 0xa402
movl $0x1, 0x64(%rbx)
leaq 0x4(%r14), %rax
movslq %ebp, %r15
addq %r14, %r15
movq %rax, 0x10(%rsp)
movq %r15, 0x18(%rsp)
movq %r14, 0x20(%rsp)
xorl %ecx, %ecx
cmpl $0x8, %ebp
jl 0xa4a1
movl 0x4(%r14), %ecx
addq $0x8, %r14
movq %r14, 0x10(%rsp)
leaq 0x1b04d(%rip), %rdx     # 0x254f5
xorl %eax, %eax
movq %rbx, %rdi
movl $0x3, %esi
callq 0x4045
movq %rbx, %r12
movq 0x170(%rbx), %rbx
leaq 0x1(%rbx), %r14
cmpq 0x178(%r12), %r14
jbe 0xa4fb
leaq (%r14,%r14), %rax
movq %rax, 0x178(%r12)
movq %r14, %rax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rsi
movq 0x168(%r12), %rdi
callq 0x33c0
movq %rax, 0x168(%r12)
movq %r14, 0x170(%r12)
movq 0x168(%r12), %rax
leaq (%rbx,%rbx,4), %rcx
movl $0x1, (%rax,%rcx,8)
xorps %xmm0, %xmm0
movups %xmm0, 0x4(%rax,%rcx,8)
movups %xmm0, 0x14(%rax,%rcx,8)
movl $0x0, 0x24(%rax,%rcx,8)
movq 0x170(%r12), %rbx
leaq 0x1(%rbx), %r14
cmpq 0x178(%r12), %r14
jbe 0xa570
leaq (%r14,%r14), %rax
movq %rax, 0x178(%r12)
movq %r14, %rax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rsi
movq 0x168(%r12), %rdi
callq 0x33c0
xorps %xmm0, %xmm0
movq %rax, 0x168(%r12)
movq %r14, 0x170(%r12)
movq 0x168(%r12), %rax
leaq (%rbx,%rbx,4), %rcx
movl $0x5, (%rax,%rcx,8)
movups %xmm0, 0x4(%rax,%rcx,8)
movups %xmm0, 0x14(%rax,%rcx,8)
movl $0x0, 0x24(%rax,%rcx,8)
movq 0x170(%r12), %rbx
leaq 0x1(%rbx), %r14
cmpq 0x178(%r12), %r14
jbe 0xa5df
leaq (%r14,%r14), %rax
movq %rax, 0x178(%r12)
movq %r14, %rax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rsi
movq 0x168(%r12), %rdi
callq 0x33c0
movq %rax, 0x168(%r12)
movq %r14, 0x170(%r12)
movq 0x168(%r12), %rax
leaq (%rbx,%rbx,4), %rcx
movl $0x6, (%rax,%rcx,8)
xorps %xmm0, %xmm0
movups %xmm0, 0x4(%rax,%rcx,8)
movups %xmm0, 0x14(%rax,%rcx,8)
movl $0x0, 0x24(%rax,%rcx,8)
movq 0x170(%r12), %rbx
leaq 0x1(%rbx), %r14
cmpq 0x178(%r12), %r14
jbe 0xa654
leaq (%r14,%r14), %rax
movq %rax, 0x178(%r12)
movq %r14, %rax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rsi
movq 0x168(%r12), %rdi
callq 0x33c0
xorps %xmm0, %xmm0
movq %rax, 0x168(%r12)
movq %r14, 0x170(%r12)
movq 0x168(%r12), %rax
leaq (%rbx,%rbx,4), %rcx
movl $0x8, (%rax,%rcx,8)
movups %xmm0, 0x4(%rax,%rcx,8)
movups %xmm0, 0x14(%rax,%rcx,8)
movl $0x0, 0x24(%rax,%rcx,8)
movq 0x170(%r12), %rbx
leaq 0x1(%rbx), %r14
cmpq 0x178(%r12), %r14
jbe 0xa6c3
leaq (%r14,%r14), %rax
movq %rax, 0x178(%r12)
movq %r14, %rax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rsi
movq 0x168(%r12), %rdi
callq 0x33c0
movq %rax, 0x168(%r12)
movq %r14, 0x170(%r12)
movq 0x168(%r12), %rax
leaq (%rbx,%rbx,4), %rcx
movl $0x9, (%rax,%rcx,8)
xorps %xmm0, %xmm0
movups %xmm0, 0x4(%rax,%rcx,8)
movups %xmm0, 0x14(%rax,%rcx,8)
movl $0x0, 0x24(%rax,%rcx,8)
movq 0x170(%r12), %rbx
leaq 0x1(%rbx), %r14
cmpq 0x178(%r12), %r14
jbe 0xa738
leaq (%r14,%r14), %rax
movq %rax, 0x178(%r12)
movq %r14, %rax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rsi
movq 0x168(%r12), %rdi
callq 0x33c0
xorps %xmm0, %xmm0
movq %rax, 0x168(%r12)
movq %r14, 0x170(%r12)
movq 0x168(%r12), %rax
leaq (%rbx,%rbx,4), %rcx
movl $0x3, (%rax,%rcx,8)
movups %xmm0, 0x4(%rax,%rcx,8)
movups %xmm0, 0x14(%rax,%rcx,8)
movl $0x0, 0x24(%rax,%rcx,8)
movq 0x170(%r12), %rbx
leaq 0x1(%rbx), %r14
cmpq 0x178(%r12), %r14
jbe 0xa7a7
leaq (%r14,%r14), %rax
movq %rax, 0x178(%r12)
movq %r14, %rax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rsi
movq 0x168(%r12), %rdi
callq 0x33c0
movq %rax, 0x168(%r12)
movq %r14, 0x170(%r12)
movq 0x168(%r12), %rax
leaq (%rbx,%rbx,4), %rcx
movl $0x4, (%rax,%rcx,8)
xorps %xmm0, %xmm0
movups %xmm0, 0x4(%rax,%rcx,8)
movups %xmm0, 0x14(%rax,%rcx,8)
movl $0x0, 0x24(%rax,%rcx,8)
movq 0x10(%rsp), %rax
cmpq %r15, %rax
movq %r12, %rbx
jae 0xb7a4
movq %rax, %rcx
movq %r15, %rax
xorl %edx, %edx
movl %edx, %esi
movl %esi, %r8d
movb $-0x1, %sil
cmpq %rax, %rcx
jae 0xa808
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x10(%rsp)
movl %esi, %edi
movq %rcx, %rsi
movl %edi, %ecx
andb $0x7f, %cl
movzbl %cl, %r9d
movl %edx, %ecx
shll %cl, %r9d
orl %r9d, %r8d
addl $0x7, %edx
movq %rsi, %rcx
movl %r8d, %esi
testb %dil, %dil
js 0xa7f2
xorl %esi, %esi
movq 0x10(%rsp), %rcx
movl %esi, %edx
movl %esi, %r12d
movb $-0x1, %sil
cmpq %rax, %rcx
jae 0xa84b
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x10(%rsp)
movl %esi, %edi
movq %rcx, %rsi
movl %edi, %ecx
andb $0x7f, %cl
movzbl %cl, %r9d
movl %edx, %ecx
shll %cl, %r9d
orl %r9d, %r12d
addl $0x7, %edx
movq %rsi, %rcx
movl %r12d, %esi
testb %dil, %dil
js 0xa835
movl %r12d, 0x6c(%rsp)
movq 0x10(%rsp), %rdi
cmpl $0xb, %r8d
movq %rdi, 0x98(%rsp)
ja 0xb110
movl %r8d, %ecx
leaq 0x192af(%rip), %rdx     # 0x23b44
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq %rbx, %rdi
leaq 0x10(%rsp), %rsi
callq 0xf1a2
movq %rax, %r14
xorl %eax, %eax
movq %rbx, %rdi
movl $0x3, %esi
leaq 0x1ac46(%rip), %rdx     # 0x25505
movq %r14, %rcx
callq 0x4045
movq %r14, %rdi
callq 0x3030
jmp 0xb778
xorl %esi, %esi
movq %rdi, %rcx
movl %esi, %edx
leaq 0x10(%rsp), %r15
movl %esi, %ebp
movb $-0x1, %sil
cmpq %rax, %rcx
jae 0xa8f5
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x10(%rsp)
movl %esi, %edi
movq %rcx, %rsi
movl %edi, %ecx
andb $0x7f, %cl
movzbl %cl, %r8d
movl %edx, %ecx
shll %cl, %r8d
orl %r8d, %ebp
addl $0x7, %edx
movq %rsi, %rcx
movl %ebp, %esi
testb %dil, %dil
js 0xa8e0
testl %ebp, %ebp
je 0xb778
xorl %eax, %eax
movl %eax, %r12d
movq %rbx, %rdi
movq %r15, %rsi
callq 0xf1a2
movq %rax, %r14
movq %rbx, %rdi
movq %r15, %rsi
callq 0xf1a2
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %rdx
movb $-0x1, %sil
cmpq %rdx, %rcx
jae 0xa95b
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x10(%rsp)
movq %r14, 0x38(%rsp)
movq %rax, 0x30(%rsp)
testb %sil, %sil
jne 0xbbfa
xorl %edi, %edi
movq 0x10(%rsp), %rcx
movl %edi, %eax
movl %edi, %esi
movb $-0x1, %dil
cmpq %rdx, %rcx
jae 0xa98c
movb (%rcx), %dil
incq %rcx
movq %rcx, 0x10(%rsp)
movl %edi, %r8d
movq %rcx, %rdi
movl %r8d, %ecx
andb $0x7f, %cl
movzbl %cl, %r9d
movl %eax, %ecx
shll %cl, %r9d
orl %r9d, %esi
addl $0x7, %eax
movq %rdi, %rcx
movl %esi, %edi
testb %r8b, %r8b
js 0xa977
movl %r12d, %r15d
movq 0x580(%rbx), %rax
movslq %esi, %rcx
movq %rbx, %r12
movl (%rax,%rcx,4), %ebx
movl $0x1, %edi
movl $0x90, %esi
callq 0x32f0
movq %rax, %r13
addq $0x48, %rax
movq $0x0, 0x48(%r13)
movq %rax, 0x50(%r13)
movl %ebx, 0x10(%r13)
movq 0x2e0(%r12), %r14
movl %r14d, 0x34(%r13)
movq 0x30(%rsp), %rdi
callq 0x34d0
movq %rax, 0x20(%r13)
leaq 0x1(%r14), %rbx
cmpq 0x2e8(%r12), %rbx
jbe 0xaa3a
leaq (%rbx,%rbx), %rax
movq %rax, 0x2e8(%r12)
movq %rbx, %rsi
shlq $0x4, %rsi
movq 0x2d8(%r12), %rdi
callq 0x33c0
movq %rax, 0x2d8(%r12)
movq %rbx, 0x2e0(%r12)
movq 0x2d8(%r12), %rax
movq %r13, (%rax,%r14,8)
cmpq $0x0, 0x70(%r13)
movq %r12, %rbx
jne 0xaa72
movq %r13, %rdi
callq 0xf293
testl %eax, %eax
jne 0xaa72
movq 0x20(%r13), %rdi
movq 0x48(%rbx), %rsi
callq *(%rbx)
movq %rax, 0x70(%r13)
movq 0x38(%rsp), %rdi
callq 0x3030
movq 0x30(%rsp), %rdi
callq 0x3030
incl %r15d
movl %r15d, %eax
cmpl %ebp, %r15d
leaq 0x10(%rsp), %r15
jne 0xa922
jmp 0xb778
xorl %esi, %esi
movq %rdi, %rcx
movl %esi, %edx
movl %esi, %ebp
movb $-0x1, %sil
cmpq %rax, %rcx
jae 0xaabb
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x10(%rsp)
movl %esi, %edi
movq %rcx, %rsi
movl %edi, %ecx
andb $0x7f, %cl
movzbl %cl, %r8d
movl %edx, %ecx
shll %cl, %r8d
orl %r8d, %ebp
addl $0x7, %edx
movq %rsi, %rcx
movl %ebp, %esi
testb %dil, %dil
js 0xaaa6
testl %ebp, %ebp
je 0xb778
movq 0x10(%rsp), %r15
movq 0x18(%rsp), %r14
xorl %r12d, %r12d
movl %r12d, %r13d
movq %r15, %rdi
movl %r12d, %r8d
movl %r12d, %eax
movl %r8d, %edx
movb $-0x1, %cl
cmpq %r14, %rdi
jae 0xab1b
movb (%rdi), %cl
movq %rdi, %rsi
incq %rsi
movq %rsi, 0x10(%rsp)
movq %rsi, %rdi
jmp 0xab1e
movq %r15, %rsi
movl %ecx, %r9d
andb $0x7f, %cl
movzbl %cl, %r8d
movl %eax, %ecx
shll %cl, %r8d
orl %r8d, %edx
addl $0x7, %eax
movq %rsi, %r15
movl %edx, %r8d
testb %r9b, %r9b
js 0xaaff
testl %edx, %edx
jne 0xbcb0
xorl %edi, %edi
movq %rsi, %rcx
movq %rsi, %rdx
movl %edi, %eax
movl %edi, %esi
movq %rcx, %r15
movb $-0x1, %cl
cmpq %r14, %rdx
jae 0xab6c
movb (%rdx), %cl
movq %rdx, %r15
incq %r15
movq %r15, 0x10(%rsp)
movq %r15, %rdx
movl %ecx, %r8d
andb $0x7f, %cl
movzbl %cl, %edi
movl %eax, %ecx
shll %cl, %edi
orl %edi, %esi
addl $0x7, %eax
movq %r15, %rcx
movl %esi, %edi
testb %r8b, %r8b
js 0xab50
xorl %eax, %eax
leaq 0x1ae36(%rip), %rdi     # 0x259c7
callq 0x3190
movl %r13d, %eax
incl %eax
movl %eax, %r13d
cmpl %ebp, %eax
jne 0xaaf6
jmp 0xb778
xorl %esi, %esi
movq %rdi, %rcx
movl %esi, %edx
leaq 0x10(%rsp), %r12
movl %esi, %ebp
movb $-0x1, %sil
cmpq %rax, %rcx
jae 0xabcc
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x10(%rsp)
movl %esi, %edi
movq %rcx, %rsi
movl %edi, %ecx
andb $0x7f, %cl
movzbl %cl, %r8d
movl %edx, %ecx
shll %cl, %r8d
orl %r8d, %ebp
addl $0x7, %edx
movq %rsi, %rcx
movl %ebp, %esi
testb %dil, %dil
js 0xabb7
testl %ebp, %ebp
je 0xb778
xorl %eax, %eax
movl %ebp, 0x68(%rsp)
movl %eax, %r9d
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %rax
movb $-0x1, %dl
cmpq %rax, %rcx
jae 0xac1b
movb (%rcx), %dl
incq %rcx
movq %rcx, 0x10(%rsp)
cmpb $0x60, %dl
jne 0xbccd
xorl %esi, %esi
movq 0x10(%rsp), %rcx
movl %esi, %edx
movl %esi, %r15d
movb $-0x1, %sil
cmpq %rax, %rcx
jae 0xac43
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x10(%rsp)
movl %esi, %edi
movq %rcx, %rsi
movl %edi, %ecx
andb $0x7f, %cl
movzbl %cl, %r8d
movl %edx, %ecx
shll %cl, %r8d
orl %r8d, %r15d
addl $0x7, %edx
movq %rsi, %rcx
movl %r15d, %esi
testb %dil, %dil
js 0xac2d
movl %r9d, 0x64(%rsp)
movq %rbx, %r13
movslq %r15d, %rbx
leaq (,%rbx,4), %rdi
callq 0x3380
movq %rax, %rbp
testl %ebx, %ebx
jle 0xacab
movl %r15d, %eax
movl %eax, %ebx
xorl %eax, %eax
movq %rax, %r14
movq %r13, %rdi
movq %r12, %rsi
callq 0xf23d
movl %eax, (%rbp,%r14,4)
incq %r14
movq %r14, %rax
cmpq %r14, %rbx
jne 0xac8d
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %rax
xorl %edi, %edi
movl %edi, %edx
movl %edi, %esi
movb $-0x1, %dil
cmpq %rax, %rcx
jae 0xacce
movb (%rcx), %dil
incq %rcx
movq %rcx, 0x10(%rsp)
movl %edi, %r8d
movq %rcx, %rdi
movl %r8d, %ecx
andb $0x7f, %cl
movzbl %cl, %r9d
movl %edx, %ecx
shll %cl, %r9d
orl %r9d, %esi
addl $0x7, %edx
movq %rdi, %rcx
movl %esi, %edi
testb %r8b, %r8b
js 0xacb9
cmpl $0x1, %esi
ja 0xbcee
testl %esi, %esi
je 0xad0d
movq %r13, %rdi
movq %r12, %rsi
callq 0xf23d
jmp 0xad0f
xorl %eax, %eax
movl %eax, 0x40(%rsp)
movq 0x588(%r13), %r14
leaq 0x1(%r14), %rbx
cmpq 0x590(%r13), %rbx
jbe 0xad4d
leaq (%rbx,%rbx), %rax
movq %rax, 0x590(%r13)
leaq (,%rbx,8), %rsi
movq 0x580(%r13), %rdi
callq 0x33c0
movq %rax, 0x580(%r13)
movq %rbx, 0x588(%r13)
movq 0x170(%r13), %rbx
movq 0x580(%r13), %rcx
movl %ebx, (%rcx,%r14,4)
leaq 0x1(%rbx), %r14
cmpq 0x178(%r13), %r14
jbe 0xad9c
leaq (%r14,%r14), %rax
movq %rax, 0x178(%r13)
movq %r14, %rax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rsi
movq 0x168(%r13), %rdi
callq 0x33c0
movq %rax, 0x168(%r13)
movq %r14, 0x170(%r13)
movq 0x168(%r13), %rax
leaq (%rbx,%rbx,4), %rcx
movl $0xc, (%rax,%rcx,8)
movq %rbp, 0x8(%rax,%rcx,8)
movl 0x40(%rsp), %edx
movl %edx, 0x10(%rax,%rcx,8)
movl %r15d, 0x14(%rax,%rcx,8)
movl $0x0, 0x18(%rax,%rcx,8)
movl 0x64(%rsp), %ecx
incl %ecx
movl %ecx, %eax
movl 0x68(%rsp), %ebp
cmpl %ebp, %ecx
movq %r13, %rbx
jne 0xabfd
jmp 0xb778
xorl %esi, %esi
movq %rdi, %rcx
movl %esi, %edx
leaq 0x10(%rsp), %r9
movl %esi, %ebp
movb $-0x1, %sil
cmpq %rax, %rcx
jae 0xae0c
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x10(%rsp)
movl %esi, %edi
movq %rcx, %rsi
movl %edi, %ecx
andb $0x7f, %cl
movzbl %cl, %r8d
movl %edx, %ecx
shll %cl, %r8d
orl %r8d, %ebp
addl $0x7, %edx
movq %rsi, %rcx
movl %ebp, %esi
testb %dil, %dil
js 0xadf7
testl %ebp, %ebp
je 0xb778
xorl %eax, %eax
movl %eax, 0x5c(%rsp)
movq %rbx, %rdi
movq %r9, %rsi
callq 0xf23d
movl %eax, %r13d
movq %rbx, %rdi
movl %eax, %esi
movl $0x1, %edx
callq 0xf30d
movl %eax, %r9d
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %rax
xorl %edx, %edx
movl %edx, %esi
movl %esi, %r14d
movb $-0x1, %sil
cmpq %rax, %rcx
jae 0xae81
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x10(%rsp)
movl %esi, %edi
movq %rcx, %rsi
movl %edi, %ecx
andb $0x7f, %cl
movzbl %cl, %r8d
movl %edx, %ecx
shll %cl, %r8d
orl %r8d, %r14d
addl $0x7, %edx
movq %rsi, %rcx
movl %r14d, %esi
testb %dil, %dil
js 0xae6b
movq %rbx, %rdi
movl %r13d, %esi
movl %r9d, 0x48(%rsp)
movl %r9d, %edx
xorl %ecx, %ecx
movl %ecx, %r8d
movl %ecx, %r9d
callq 0xf3db
movl %eax, %r13d
movq 0x5a0(%rbx), %r12
leaq 0x1(%r12), %r15
cmpq 0x5a8(%rbx), %r15
jbe 0xaefd
leaq (%r15,%r15), %rax
movq %rax, 0x5a8(%rbx)
movq %r15, %rsi
shlq $0x4, %rsi
movq 0x598(%rbx), %rdi
callq 0x33c0
movq %rax, 0x598(%rbx)
movq %r15, 0x5a0(%rbx)
movq 0x598(%rbx), %rax
movl %r13d, (%rax,%r12,8)
movl 0x48(%rsp), %ecx
movl %ecx, 0x4(%rax,%r12,8)
movq %rbx, %rdi
leaq 0x10(%rsp), %rsi
callq 0xf4a3
movq %rbx, %rdi
callq 0xf524
movq 0x2f8(%rbx), %r12
leaq 0x1(%r12), %r15
cmpq 0x300(%rbx), %r15
jbe 0xaf77
movq %rax, 0x88(%rsp)
leaq (%r15,%r15), %rax
movq %rax, 0x300(%rbx)
movq %r15, %rsi
shlq $0x4, %rsi
movq 0x2f0(%rbx), %rdi
callq 0x33c0
movq %rax, 0x2f0(%rbx)
movq 0x88(%rsp), %rax
movq %r15, 0x2f8(%rbx)
movq 0x2f0(%rbx), %rcx
movl %r13d, (%rcx,%r12,8)
movl %eax, 0x4(%rcx,%r12,8)
xorl %r12d, %r12d
movl %r12d, %edi
movq %rbx, %rsi
movl %r13d, %edx
callq 0xfa66
movq %rbx, %rdi
movl %eax, %esi
callq 0xd275
movq %rax, %r15
movq %rax, 0xa0(%rsp)
leaq 0xa0(%rsp), %rdi
movq %rbx, %rsi
movl %r13d, %edx
callq 0xfa66
movq 0x5a0(%rbx), %rdx
decq %rdx
movl %r12d, %eax
leaq 0x1aa05(%rip), %rdi     # 0x259e0
movq %r15, %rsi
movl %r14d, %ecx
callq 0x3190
movl 0x5c(%rsp), %ecx
incl %ecx
movl %ecx, %eax
cmpl %ebp, %ecx
leaq 0x10(%rsp), %r9
jne 0xae39
jmp 0xb778
xorl %esi, %esi
movq %rdi, %rcx
movl %esi, %edx
leaq 0x10(%rsp), %r12
movl %esi, %ebp
movb $-0x1, %sil
cmpq %rax, %rcx
jae 0xb021
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x10(%rsp)
movl %esi, %edi
movq %rcx, %rsi
movl %edi, %ecx
andb $0x7f, %cl
movzbl %cl, %r8d
movl %edx, %ecx
shll %cl, %r8d
orl %r8d, %ebp
addl $0x7, %edx
movq %rsi, %rcx
movl %ebp, %esi
testb %dil, %dil
js 0xb00c
testl %ebp, %ebp
je 0xb778
xorl %r15d, %r15d
movq %rbx, %rdi
movq %r12, %rsi
callq 0xf1a2
movq %rax, %r14
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %rdx
movb $-0x1, %sil
cmpq %rdx, %rcx
jae 0xb07a
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x10(%rsp)
xorl %r8d, %r8d
movq 0x10(%rsp), %rcx
movl %r8d, %eax
movl %r8d, %edi
movb $-0x1, %r8b
cmpq %rdx, %rcx
jae 0xb09b
movb (%rcx), %r8b
incq %rcx
movq %rcx, 0x10(%rsp)
movl %r8d, %r9d
movq %rcx, %r8
movl %r9d, %ecx
andb $0x7f, %cl
movzbl %cl, %r10d
movl %eax, %ecx
shll %cl, %r10d
orl %r10d, %edi
addl $0x7, %eax
movq %r8, %rcx
movl %edi, %r8d
testb %r9b, %r9b
js 0xb085
cmpb $0x2, %sil
je 0xb0f3
movzbl %sil, %r8d
testl %r8d, %r8d
jne 0xbe80
movq 0x2d8(%rbx), %rax
movslq %edi, %rcx
movq (%rax,%rcx,8), %rbx
movq %r14, %rdi
callq 0x34d0
movq %rax, 0x20(%rbx)
movq 0x28(%rsp), %rbx
movq %r14, %rdi
callq 0x3030
movl %r15d, %eax
incl %eax
movl %eax, %r15d
cmpl %ebp, %eax
jne 0xb04f
jmp 0xb778
xorl %eax, %eax
movq %rbx, %rdi
movl $0x1, %esi
leaq 0x1a3fe(%rip), %rdx     # 0x2551f
movl %r8d, %ecx
callq 0x4045
jmp 0xb778
xorl %esi, %esi
movq %rdi, %rcx
movl %esi, %edx
movl %esi, %ebp
movb $-0x1, %sil
cmpq %rax, %rcx
jae 0xb14a
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x10(%rsp)
movl %esi, %edi
movq %rcx, %rsi
movl %edi, %ecx
andb $0x7f, %cl
movzbl %cl, %r8d
movl %edx, %ecx
shll %cl, %r8d
orl %r8d, %ebp
addl $0x7, %edx
movq %rsi, %rcx
movl %ebp, %esi
testb %dil, %dil
js 0xb135
testl %ebp, %ebp
je 0xb778
movq 0x10(%rsp), %r13
movq 0x18(%rsp), %r15
xorl %eax, %eax
movl %eax, 0x50(%rsp)
movq %r13, %rsi
movq %r13, %rcx
xorl %eax, %eax
movl %eax, %edi
movl %edi, %edx
movq %rcx, %r13
movb $-0x1, %cl
cmpq %r15, %rsi
jae 0xb1ab
movb (%rsi), %cl
movq %rsi, %r13
incq %r13
movq %r13, 0x10(%rsp)
movq %r13, %rsi
movl %ecx, %r8d
andb $0x7f, %cl
movzbl %cl, %edi
movl %eax, %ecx
shll %cl, %edi
orl %edi, %edx
addl $0x7, %eax
movq %r13, %rcx
movl %edx, %edi
testb %r8b, %r8b
js 0xb18f
movq 0x580(%rbx), %rax
movl %edx, %edx
movl %edx, %ecx
movl (%rax,%rcx,4), %r12d
movl $0x1, %edi
movl $0x90, %esi
callq 0x32f0
movq %rax, %r14
addq $0x48, %rax
xorl %ecx, %ecx
movq %rcx, 0x48(%r14)
movq %rax, 0x50(%r14)
movl %r12d, 0x10(%r14)
movq 0x2e0(%rbx), %rdx
movl %edx, 0x34(%r14)
movq %rcx, (%r14)
movq 0x1b0(%rbx), %rax
movq %rax, 0x8(%r14)
movq %r14, (%rax)
movq %r14, 0x1b0(%rbx)
leaq 0x1(%rdx), %r12
cmpq 0x2e8(%rbx), %r12
jbe 0xb25f
leaq (%r12,%r12), %rax
movq %rax, 0x2e8(%rbx)
movq %r12, %rsi
shlq $0x4, %rsi
movq 0x2d8(%rbx), %rdi
movq %rdx, 0x90(%rsp)
callq 0x33c0
movq 0x90(%rsp), %rdx
movq %rax, 0x2d8(%rbx)
movq %r12, 0x2e0(%rbx)
movq 0x2d8(%rbx), %rax
movq %r14, (%rax,%rdx,8)
movl 0x50(%rsp), %ecx
incl %ecx
movl %ecx, %eax
cmpl %ebp, %ecx
jne 0xb181
jmp 0xb778
xorl %esi, %esi
movq %rdi, %rcx
movl %esi, %edx
movl %esi, %ebp
movb $-0x1, %sil
cmpq %rax, %rcx
jae 0xb2a2
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x10(%rsp)
movl %esi, %edi
movq %rcx, %rsi
movl %edi, %ecx
andb $0x7f, %cl
movzbl %cl, %r8d
movl %edx, %ecx
shll %cl, %r8d
orl %r8d, %ebp
addl $0x7, %edx
movq %rsi, %rcx
movl %ebp, %esi
testb %dil, %dil
js 0xb28d
testl %ebp, %ebp
je 0xb778
movq 0x10(%rsp), %r13
movq 0x18(%rsp), %r14
xorl %r15d, %r15d
cmpq %r14, %r13
jae 0xbc73
movb (%r13), %al
movq %r13, %rcx
incq %rcx
movq %rcx, 0x10(%rsp)
cmpb $0x70, %al
jne 0xbc73
xorl %edi, %edi
movl %edi, %eax
movl %edi, %edx
movb $-0x1, %dil
cmpq %r14, %rcx
jae 0xb313
movb (%rcx), %dil
incq %rcx
movq %rcx, 0x10(%rsp)
movq %rcx, %rsi
movl %edi, %r8d
movl %edi, %ecx
andb $0x7f, %cl
movzbl %cl, %edi
movl %eax, %ecx
shll %cl, %edi
orl %edi, %edx
addl $0x7, %eax
movq %rsi, %rcx
movl %edx, %edi
testb %r8b, %r8b
js 0xb2fe
testl %edx, %edx
jne 0xbd0b
xorl %edx, %edx
movq %rsi, %rcx
movl %edx, %eax
movl %edx, %esi
movb $-0x1, %dl
cmpq %r14, %rcx
jae 0xb356
movb (%rcx), %dl
incq %rcx
movq %rcx, 0x10(%rsp)
movq %rcx, %r13
movl %edx, %edi
movl %edx, %ecx
andb $0x7f, %cl
movzbl %cl, %edx
movl %eax, %ecx
shll %cl, %edx
orl %edx, %esi
addl $0x7, %eax
movq %r13, %rcx
movl %esi, %edx
testb %dil, %dil
js 0xb343
xorl %eax, %eax
leaq 0x1a611(%rip), %rdi     # 0x25990
callq 0x3190
movl %r15d, %eax
incl %eax
movl %eax, %r15d
cmpl %ebp, %eax
jne 0xb2da
jmp 0xb778
xorl %esi, %esi
movq %rdi, %rcx
movl %esi, %edx
leaq 0x10(%rsp), %r12
movl %esi, %ebp
movb $-0x1, %sil
cmpq %rax, %rcx
jae 0xb3ba
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x10(%rsp)
movl %esi, %edi
movq %rcx, %rsi
movl %edi, %ecx
andb $0x7f, %cl
movzbl %cl, %r8d
movl %edx, %ecx
shll %cl, %r8d
orl %r8d, %ebp
addl $0x7, %edx
movq %rsi, %rcx
movl %ebp, %esi
testb %dil, %dil
js 0xb3a5
testl %ebp, %ebp
je 0xb778
xorl %eax, %eax
movl %eax, 0x58(%rsp)
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %rax
xorl %edx, %edx
movl %edx, %esi
movl %esi, %r15d
movb $-0x1, %sil
cmpq %rax, %rcx
jae 0xb40f
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x10(%rsp)
movl %esi, %edi
movq %rcx, %rsi
movl %edi, %ecx
andb $0x7f, %cl
movzbl %cl, %r8d
movl %edx, %ecx
shll %cl, %r8d
orl %r8d, %r15d
addl $0x7, %edx
movq %rsi, %rcx
movl %r15d, %esi
testb %dil, %dil
js 0xb3f9
movq %rbx, %rdi
movq %r12, %rsi
callq 0xf4a3
movq %rbx, %rdi
callq 0xf524
movl %eax, %ecx
cmpq %rcx, 0x188(%rbx)
jbe 0xbc64
movq 0x180(%rbx), %rax
movq (%rax,%rcx,8), %rsi
movq %rbx, %rdi
callq 0x16a3f
movl %eax, %r14d
movl 0x19c(%rbx), %esi
movq %rbx, %rdi
callq 0xf069
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %rax
xorl %esi, %esi
movl %esi, %edx
movl %esi, %r13d
movb $-0x1, %sil
cmpq %rax, %rcx
jae 0xb49d
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x10(%rsp)
movl %esi, %edi
movq %rcx, %rsi
movl %edi, %ecx
andb $0x7f, %cl
movzbl %cl, %r8d
movl %edx, %ecx
shll %cl, %r8d
orl %r8d, %r13d
addl $0x7, %edx
movq %rsi, %rcx
movl %r13d, %esi
testb %dil, %dil
js 0xb487
movl %r13d, %ebx
testl %r15d, %r15d
jne 0xb4fb
movl %r14d, %eax
movl %eax, %edi
movq 0x28(%rsp), %r15
addq 0x20(%r15), %rdi
movq 0x10(%rsp), %rsi
movl %ebx, %edx
callq 0x3360
movl 0x88(%r15), %eax
addl %r14d, %r13d
cmpl %r13d, %eax
cmoval %eax, %r13d
movl %r13d, 0x88(%r15)
movl %ebx, %eax
addq %rax, 0x10(%rsp)
movl 0x58(%rsp), %ecx
incl %ecx
movl %ecx, %eax
cmpl %ebp, %ecx
movq 0x28(%rsp), %rbx
jne 0xb3e7
jmp 0xb778
xorl %esi, %esi
movq %rdi, %rcx
movl %esi, %edx
movl %esi, %r14d
movb $-0x1, %sil
cmpq %rax, %rcx
jae 0xb539
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x10(%rsp)
movl %esi, %edi
movq %rcx, %rsi
movl %edi, %ecx
andb $0x7f, %cl
movzbl %cl, %r8d
movl %edx, %ecx
shll %cl, %r8d
orl %r8d, %r14d
addl $0x7, %edx
movq %rsi, %rcx
movl %r14d, %esi
testb %dil, %dil
js 0xb523
movq 0x1a8(%rbx), %rax
movq %rax, 0x1c0(%rbx)
testl %r14d, %r14d
je 0xb778
xorl %eax, %eax
movl %eax, 0x60(%rsp)
movq $0x0, 0x5d0(%rbx)
movl 0x198(%rbx), %eax
movl %eax, 0x19c(%rbx)
movq 0x1c0(%rbx), %rsi
movq %rbx, %rdi
callq 0x10244
movl 0x198(%rbx), %eax
movl %eax, 0x54(%rsp)
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %rax
cmpq %rax, %rcx
jae 0xb5d0
leaq 0x1(%rcx), %rdx
cmpb $0x0, (%rcx)
movq %rdx, 0x10(%rsp)
setns %sil
movq %rdx, %rcx
movl %esi, %edx
jmp 0xb5d2
xorl %edx, %edx
testb %dl, %dl
je 0xb5b4
xorl %esi, %esi
movq 0x10(%rsp), %rcx
movl %esi, %edx
movl %esi, %ebp
movb $-0x1, %sil
cmpq %rax, %rcx
jae 0xb5f4
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x10(%rsp)
movl %esi, %edi
movq %rcx, %rsi
movl %edi, %ecx
andb $0x7f, %cl
movzbl %cl, %r8d
movl %edx, %ecx
shll %cl, %r8d
orl %r8d, %ebp
addl $0x7, %edx
movq %rsi, %rcx
movl %ebp, %esi
testb %dil, %dil
js 0xb5df
movq 0x28(%rsp), %rax
movq 0x1c0(%rax), %rbx
movl $0x1, %edi
movl $0x58, %esi
callq 0x32f0
movq %rax, %r13
addq $0x10, %rax
xorl %ecx, %ecx
movl %ecx, %r15d
movq %r15, 0x10(%r13)
movq %rax, 0x18(%r13)
movl 0x40(%rbx), %eax
movl %eax, %ecx
incl %ecx
movl %ecx, 0x40(%rbx)
movl %eax, 0x28(%r13)
movq %r15, (%r13)
movq 0x50(%rbx), %rax
movq %rax, 0x8(%r13)
movq %r13, (%rax)
movq %r13, 0x50(%rbx)
movq 0x28(%rsp), %rbx
leaq 0x1a5c2(%rip), %rdi     # 0x25c35
callq 0x34d0
movq %rax, 0x50(%r13)
movq 0x1c0(%rbx), %r8
movq %rbx, %rdi
movq %r13, %rsi
leaq 0x10(%rsp), %r12
movq %r12, %rdx
movl %ebp, %ecx
callq 0x10333
movq 0x1c0(%rbx), %rdi
movq %r13, %rsi
callq 0x11efe
movq %rax, %rbp
leaq 0x1a58d(%rip), %rdi     # 0x25c3e
callq 0x34d0
movq %rax, 0x50(%rbp)
movl $0x1, %edi
movl $0x68, %esi
callq 0x32f0
movq %r15, 0x20(%rax)
movabsq $-0xfffffff8, %rcx      # imm = 0xFFFFFFFF00000008
movq %rcx, 0x28(%rax)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %edx, 0x30(%rax)
movq %r13, 0x10(%rax)
movq %r15, (%rax)
movq 0x18(%r13), %rcx
movq %rcx, 0x8(%rax)
movq %rax, (%rcx)
movq %rax, 0x18(%r13)
movl 0x28(%rbp), %ecx
movl %ecx, 0x60(%rax)
movl %edx, 0x58(%rax)
movq %rsp, %rax
movl %edx, 0x8(%rax)
movl $0x0, (%rax)
movq %rbx, %rdi
movq %rbp, %rsi
movq %r12, %rdx
movl 0x54(%rsp), %ecx
movq %r15, %r8
movl $0x2, %r9d
callq 0x10644
testq %rax, %rax
je 0xb739
movq %rax, %rsi
movq %rbx, %rdi
callq 0x1195d
movq 0x1c0(%rbx), %rsi
movq %rbx, %rdi
callq 0x11a0b
movl 0x19c(%rbx), %esi
movq %rbx, %rdi
callq 0xf069
movq 0x1c0(%rbx), %rax
movq (%rax), %rax
movq %rax, 0x1c0(%rbx)
movl 0x60(%rsp), %ecx
incl %ecx
movl %ecx, %eax
cmpl %r14d, %ecx
jne 0xb576
movl 0x6c(%rsp), %r12d
movl %r12d, %eax
movq 0x98(%rsp), %rcx
addq %rax, %rcx
movq %rcx, 0x10(%rsp)
movq 0x18(%rsp), %rdx
movq %rdx, %r15
movq %rcx, %rax
cmpq %rdx, %rcx
jb 0xa7e8
movl $0xfff, %eax            # imm = 0xFFF
addl 0x88(%rbx), %eax
andl $0xfffff000, %eax       # imm = 0xFFFFF000
addl $0x100000, %eax         # imm = 0x100000
movl %eax, 0x88(%rbx)
movq 0x20(%rbx), %rcx
movl %eax, 0x4(%rcx)
jmp 0xb7e1
xorl %eax, %eax
movl %eax, %ecx
leaq 0x70(%rsp), %r8
movq %rbx, %rdi
movl $0x2, %esi
movq %rcx, %rdx
callq 0xc17b
movq 0x438(%rbx), %rdi
callq 0x3030
movl $0xfff, %eax            # imm = 0xFFF
addl 0x88(%rbx), %eax
andl $0xfffff000, %eax       # imm = 0xFFFFF000
movl %eax, %ecx
movl %eax, 0x8c(%rbx)
movl %eax, 0x600(%rbx)
movl 0xa4(%rbx), %edx
movq 0x20(%rbx), %rsi
leaq (%rsi,%rcx), %rdi
movq %rdi, 0x90(%rbx)
leaq (%rsi,%rcx), %r8
addq $0x10, %r8
subl %eax, %edx
addl $-0x10, %edx
movl %edx, 0x4(%r8)
movl $0xf4eef4ee, (%r8)      # imm = 0xF4EEF4EE
leaq (%rsi,%rcx), %rax
addq $0x18, %rax
movq $0x0, (%rax)
movq %rdi, 0x8(%rax)
movq %r8, -0x18(%rax)
movq %rax, -0x10(%rax)
cmpq $0x0, 0x2f8(%rbx)
je 0xb8c7
movq 0x20(%rbx), %r14
xorl %eax, %eax
movl %eax, %r15d
movq 0x188(%rbx), %rcx
movq 0x2f0(%rbx), %rdx
movl (%rdx,%r15,8), %eax
cmpq %rax, %rcx
jbe 0xbc64
movl 0x4(%rdx,%r15,8), %edx
cmpq %rdx, %rcx
jbe 0xbc69
movq 0x180(%rbx), %rcx
movq (%rcx,%rax,8), %rax
movq (%rcx,%rdx,8), %rcx
movq 0x30(%rax), %rax
movl 0x10(%rax), %edx
movl 0x28(%rax), %eax
movl %eax, %esi
addq %r14, %rsi
movq %rbx, %rdi
callq 0x214b4
movq %r15, %rax
incq %rax
movq %rax, %r15
cmpq %rax, 0x2f8(%rbx)
ja 0xb866
movl $0xffffffff, 0xe8(%rbx) # imm = 0xFFFFFFFF
cmpq $0x0, 0xc8(%rbx)
jne 0xb8e9
leaq 0x2246e(%rip), %rax     # 0x2dd50
movq %rax, 0xc8(%rbx)
leaq 0x1c884(%rip), %rsi     # 0x28174
leaq 0x19883(%rip), %rdx     # 0x2517a
movl $0x1, %ebp
movq %rbx, %rdi
movl %ebp, %ecx
callq 0xe421
movq %rax, 0xb0(%rbx)
leaq 0x1c86b(%rip), %rsi     # 0x2817f
leaq 0x1a224(%rip), %r14     # 0x25b3f
movq %rbx, %rdi
movq %r14, %rdx
movl %ebp, %ecx
callq 0xe421
movq %rax, 0xb8(%rbx)
leaq 0x1c855(%rip), %rsi     # 0x2818b
movq %rbx, %rdi
movq %r14, %rdx
movl %ebp, %ecx
callq 0xe421
movq %rax, 0xc0(%rbx)
movq 0xb0(%rbx), %rdx
xorl %ecx, %ecx
movl %ecx, %ebp
testq %rdx, %rdx
je 0xb95f
subl 0x20(%rbx), %edx
movl %edx, %ebp
movq 0xb8(%rbx), %rdx
testq %rdx, %rdx
je 0xb970
movl %edx, %ecx
subl 0x20(%rbx), %ecx
movl %ecx, 0x4c(%rsp)
testq %rax, %rax
je 0xb97e
subl 0x20(%rbx), %eax
jmp 0xb980
xorl %eax, %eax
movl %eax, 0x44(%rsp)
cmpl $0x0, 0x198(%rbx)
jle 0xba2c
movq 0x188(%rbx), %r15
xorl %eax, %eax
movl %eax, %r14d
cmpq %r14, %r15
je 0xbc6e
movq 0x180(%rbx), %rax
movq (%rax,%r14,8), %rax
cmpl $0x2, (%rax)
jne 0xba13
movq 0x30(%rax), %r12
movq 0x20(%r12), %r13
testq %r13, %r13
je 0xba13
movq %r13, %rdi
leaq 0x1c7ab(%rip), %rsi     # 0x28179
callq 0x3300
movl %ebp, %ecx
testl %eax, %eax
je 0xba07
movq %r13, %rdi
leaq 0x1c7a1(%rip), %rsi     # 0x28184
callq 0x3300
movl 0x4c(%rsp), %ecx
testl %eax, %eax
je 0xba07
movq %r13, %rdi
leaq 0x1c796(%rip), %rsi     # 0x28190
callq 0x3300
movl 0x44(%rsp), %ecx
testl %eax, %eax
jne 0xba13
movq 0x20(%rbx), %rax
movl 0x28(%r12), %edx
movl %ecx, (%rax,%rdx)
movq %r14, %rax
incq %rax
movslq 0x198(%rbx), %rcx
movq %rax, %r14
cmpq %rcx, %rax
jl 0xb99d
movq 0x2e0(%rbx), %r14
movl $0x8, %r15d
movq %r14, %rdi
movq %r15, %rsi
callq 0x32f0
movq %rax, 0x28(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x32f0
movq %rax, 0x30(%rbx)
cmpq $0x0, 0x2e0(%rbx)
je 0xbade
xorl %r15d, %r15d
movl %r15d, %r12d
leaq 0x194b6(%rip), %r14     # 0x24f24
movl $0x1, %ebp
movq 0x2d8(%rbx), %rax
movq (%rax,%r12,8), %r13
movq 0x60(%r13), %rax
movq 0x28(%rbx), %rcx
movq %rax, (%rcx,%r12,8)
movq 0x70(%r13), %rax
movq 0x30(%rbx), %rcx
movq %rax, (%rcx,%r12,8)
cmpb $0x0, 0x29(%r13)
je 0xbacc
cmpq $0x0, 0x60(%r13)
jne 0xbacc
cmpq $0x0, 0x70(%r13)
jne 0xbacc
movq 0x20(%r13), %rcx
movl %r15d, %eax
movq %rbx, %rdi
movl %ebp, %esi
movq %r14, %rdx
callq 0x4045
testb $-0x80, 0x100(%rbx)
je 0xbec1
movq %r12, %rax
incq %rax
movq %rax, %r12
cmpq %rax, 0x2e0(%rbx)
ja 0xba73
movslq 0x198(%rbx), %r15
xorl %ecx, %ecx
testq %r15, %r15
jle 0xbb70
movq 0x188(%rbx), %r12
xorl %eax, %eax
movl %eax, %r13d
leaq 0x1c6ad(%rip), %r14     # 0x281b0
cmpq %r13, %r12
je 0xbc90
movq 0x180(%rbx), %rax
movq (%rax,%r13,8), %rax
movl $0x4, %ecx
cmpl $0x2, (%rax)
jne 0xbb41
movq 0x30(%rax), %rbx
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0xbb3a
movq %r14, %rsi
callq 0x3300
testl %eax, %eax
je 0xbb46
xorl %ecx, %ecx
movq %rbp, %rax
jmp 0xbb4e
movq %rbp, %rax
jmp 0xbb53
movl $0x1, %ecx
movq %rbx, %rax
movq 0x28(%rsp), %rbx
testb $0x3, %cl
jne 0xbb75
movq %r13, %rcx
incq %rcx
movq %rcx, %r13
movq %rax, %rbp
cmpq %rcx, %r15
jne 0xbb03
xorl %eax, %eax
movl %eax, %r14d
jmp 0xbb78
movl %ecx, %r14d
jmp 0xbb7a
movq %rax, %r14
xorl %ecx, %ecx
testq %r14, %r14
je 0xa3f6
movl 0x2c(%r14), %eax
cmpl $0xc, %eax
jb 0xa3f6
movl %eax, %eax
movl $0xaaaaaaab, %ecx       # imm = 0xAAAAAAAB
imulq %rax, %rcx
shrq $0x21, %rcx
movl %ecx, %eax
andl $-0x4, %eax
leaq (%rax,%rax,2), %r15
xorl %ebp, %ebp
movl %ebp, %ebx
movl 0x28(%r14), %eax
movq 0x28(%rsp), %rcx
addq 0x20(%rcx), %rax
movl 0x4(%rbx,%rax), %eax
cmpq %rax, 0x2e0(%rcx)
jbe 0xbbdf
movq 0x28(%rsp), %rdi
movq 0x2d8(%rdi), %rcx
movq (%rcx,%rax,8), %rsi
movl %ebp, %edx
movl %ebp, %eax
callq 0x3c22
movq %rbx, %rax
addq $0xc, %rax
movq %rax, %rbx
cmpq %rax, %r15
jne 0xbbac
xorl %ecx, %ecx
movq 0x28(%rsp), %rbx
jmp 0xa3f6
movzbl %sil, %r8d
cmpl $0x1, %r8d
je 0xbda1
cmpl $0x2, %r8d
je 0xbd28
cmpl $0x3, %r8d
jne 0xbe35
leaq 0x10(%rsp), %r12
movq 0x28(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0xf23d
movl %eax, %ebp
movq %r12, %rdi
callq 0xf16c
movzbl %bpl, %ecx
movq %rsp, %rdx
movl %eax, 0x8(%rdx)
movl %ecx, (%rdx)
leaq 0x198ea(%rip), %rsi     # 0x25538
leaq 0x19cb5(%rip), %rcx     # 0x2590a
xorl %eax, %eax
movq %rbx, %rdi
movl $0x133, %edx            # imm = 0x133
jmp 0xbefc
movl %eax, %r8d
jmp 0xbc93
movl %edx, %r8d
jmp 0xbc93
movl %r15d, %r8d
jmp 0xbc93
leaq 0x198be(%rip), %rsi     # 0x25538
leaq 0x19cc9(%rip), %rcx     # 0x2594a
xorl %eax, %eax
movq %rbx, %rdi
movl $0x165, %edx            # imm = 0x165
callq 0xca73
movl %r12d, %r8d
leaq 0x19826(%rip), %rsi     # 0x254c0
leaq 0x19fd3(%rip), %rcx     # 0x25c74
xorl %eax, %eax
movq %rbx, %rdi
movl $0x143, %edx            # imm = 0x143
callq 0xca73
leaq 0x19881(%rip), %rsi     # 0x25538
leaq 0x19cea(%rip), %rcx     # 0x259a8
xorl %eax, %eax
movq %rbx, %rdi
movl $0x17b, %edx            # imm = 0x17B
callq 0xca73
movzbl %dl, %r8d
leaq 0x19860(%rip), %rsi     # 0x25538
leaq 0x19887(%rip), %rcx     # 0x25566
xorl %eax, %eax
movq %rbx, %rdi
movl $0xd4, %edx
callq 0xca73
leaq 0x19843(%rip), %rsi     # 0x25538
leaq 0x19888(%rip), %rcx     # 0x25584
xorl %eax, %eax
movq %r13, %rdi
movl $0xe3, %edx
callq 0xca73
leaq 0x19826(%rip), %rsi     # 0x25538
leaq 0x19c59(%rip), %rcx     # 0x25972
xorl %eax, %eax
movq %rbx, %rdi
movl $0x169, %edx            # imm = 0x169
callq 0xca73
xorl %edi, %edi
movq 0x10(%rsp), %rcx
movl %edi, %eax
movl %edi, %esi
movb $-0x1, %dil
cmpq %rdx, %rcx
jae 0xbd46
movb (%rcx), %dil
incq %rcx
movq %rcx, 0x10(%rsp)
movl %edi, %r8d
movq %rcx, %rdi
movl %r8d, %ecx
andb $0x7f, %cl
movzbl %cl, %r9d
movl %eax, %ecx
shll %cl, %r9d
orl %r9d, %esi
addl $0x7, %eax
movq %rdi, %rcx
movl %esi, %edi
testb %r8b, %r8b
js 0xbd31
testl %esi, %esi
jne 0xbea5
leaq 0x10(%rsp), %rdi
callq 0xf16c
movq %rsp, %rcx
movl %eax, (%rcx)
leaq 0x197af(%rip), %rsi     # 0x25538
leaq 0x19b40(%rip), %rcx     # 0x258d0
xorl %eax, %eax
movq 0x28(%rsp), %rdi
movl $0x128, %edx            # imm = 0x128
jmp 0xbefc
movq 0x10(%rsp), %rcx
cmpq %rdx, %rcx
jae 0xbe64
movb (%rcx), %al
incq %rcx
movq %rcx, 0x10(%rsp)
cmpb $0x70, %al
jne 0xbe64
xorl %edi, %edi
movl %edi, %eax
movl %edi, %esi
movb $-0x1, %dil
cmpq %rdx, %rcx
jae 0xbdda
movb (%rcx), %dil
incq %rcx
movq %rcx, 0x10(%rsp)
movl %edi, %r8d
movq %rcx, %rdi
movl %r8d, %ecx
andb $0x7f, %cl
movzbl %cl, %r9d
movl %eax, %ecx
shll %cl, %r9d
orl %r9d, %esi
addl $0x7, %eax
movq %rdi, %rcx
movl %esi, %edi
testb %r8b, %r8b
js 0xbdc5
testl %esi, %esi
jne 0xbee2
leaq 0x10(%rsp), %rdi
callq 0xf16c
movq %rsp, %rcx
movl %eax, (%rcx)
leaq 0x1971b(%rip), %rsi     # 0x25538
leaq 0x19a55(%rip), %rcx     # 0x25879
xorl %eax, %eax
movq 0x28(%rsp), %rdi
movl $0x119, %edx            # imm = 0x119
jmp 0xbefc
movq %rsp, %rax
movq 0x30(%rsp), %rcx
movq %rcx, (%rax)
leaq 0x196f1(%rip), %rsi     # 0x25538
leaq 0x1977e(%rip), %rcx     # 0x255cc
xorl %eax, %eax
movq 0x28(%rsp), %rdi
movl $0x152, %edx            # imm = 0x152
movq 0x38(%rsp), %r9
callq 0xca73
leaq 0x196cd(%rip), %rsi     # 0x25538
leaq 0x199bc(%rip), %rcx     # 0x2582e
xorl %eax, %eax
movq 0x28(%rsp), %rdi
movl $0x110, %edx            # imm = 0x110
jmp 0xbefc
movq %rsp, %rax
movl %edi, (%rax)
leaq 0x196ac(%rip), %rsi     # 0x25538
leaq 0x19d70(%rip), %rcx     # 0x25c03
xorl %eax, %eax
movq %rbx, %rdi
movl $0x1a1, %edx            # imm = 0x1A1
movq %r14, %r9
callq 0xca73
leaq 0x1968c(%rip), %rsi     # 0x25538
leaq 0x199f7(%rip), %rcx     # 0x258aa
xorl %eax, %eax
movq 0x28(%rsp), %rdi
movl $0x124, %edx            # imm = 0x124
jmp 0xbefc
movq 0x20(%r13), %r8
leaq 0x19079(%rip), %rsi     # 0x24f45
leaq 0x19055(%rip), %rcx     # 0x24f28
xorl %eax, %eax
movq %rbx, %rdi
movl $0x3c3, %edx            # imm = 0x3C3
callq 0xca73
leaq 0x1964f(%rip), %rsi     # 0x25538
leaq 0x19964(%rip), %rcx     # 0x25854
xorl %eax, %eax
movq 0x28(%rsp), %rdi
movl $0x115, %edx            # imm = 0x115
movq 0x38(%rsp), %r8
movq 0x30(%rsp), %r9
callq 0xca73