// File: /workspace/github_c_makefile_star2_O3/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, %r13
xorps %xmm0, %xmm0
movups %xmm0, 0x98(%rsp)
movq %rsi, 0x90(%rsp)
movl %edx, 0x98(%rsp)
leaq 0x1a8(%rdi), %rax
movq $0x0, 0x1a8(%rdi)
movq %rax, 0x1b0(%rdi)
addq $0x370, %rdi            # imm = 0x370
callq 0x32e0
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
testl %eax, %eax
je 0xa461
movl %ecx, %ebx
movq %r13, %rdi
callq 0xbf1f
movl %ebx, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x90(%rsp), %r12
movq %r12, %rdi
movl $0x20, %esi
callq 0xc114
movl %eax, %r15d
movq %r12, %rdi
movl $0xa0, %esi
callq 0xc114
movq %r13, 0x10(%rsp)
movl $0x1000, 0x88(%r13) # imm = 0x1000
cmpl $0xdec04342, %r15d      # imm = 0xDEC04342
je 0xb781
cmpl $0xb17c0de, %r15d       # imm = 0xB17C0DE
je 0xb781
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x6d736100, %r15d      # imm = 0x6D736100
jne 0xa44f
movq 0x10(%rsp), %rax
movl $0x1, 0x64(%rax)
leaq 0x4(%r14), %rax
movslq %ebp, %r15
addq %r14, %r15
movq %rax, 0x18(%rsp)
movq %r15, 0x20(%rsp)
movq %r14, 0x28(%rsp)
xorl %ecx, %ecx
cmpl $0x8, %ebp
jl 0xa4fa
movl 0x4(%r14), %ecx
addq $0x8, %r14
movq %r14, 0x18(%rsp)
movq %r14, %rax
movq %rax, %r14
leaq 0x1b0a1(%rip), %rdx     # 0x255a5
xorl %eax, %eax
movq 0x10(%rsp), %r13
movq %r13, %rdi
movl $0x3, %esi
callq 0x4091
movq 0x168(%r13), %rdi
movq 0x170(%r13), %rbx
leaq 0x1(%rbx), %r12
cmpq 0x178(%r13), %r12
jbe 0xa558
leaq (%r12,%r12), %rax
movq %rax, 0x178(%r13)
movq %r12, %rax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rsi
callq 0x33c0
movq %rax, 0x168(%r13)
movq %rax, %rdi
movq %r12, 0x170(%r13)
leaq (%rbx,%rbx,4), %rax
movl $0x1, (%rdi,%rax,8)
xorps %xmm0, %xmm0
movups %xmm0, 0x4(%rdi,%rax,8)
movups %xmm0, 0x14(%rdi,%rax,8)
movl $0x0, 0x24(%rdi,%rax,8)
movq 0x168(%r13), %rdi
movq 0x170(%r13), %rbx
leaq 0x1(%rbx), %r12
cmpq 0x178(%r13), %r12
jbe 0xa5c2
leaq (%r12,%r12), %rax
movq %rax, 0x178(%r13)
movq %r12, %rax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rsi
callq 0x33c0
xorps %xmm0, %xmm0
movq %rax, 0x168(%r13)
movq %rax, %rdi
movq %r12, 0x170(%r13)
leaq (%rbx,%rbx,4), %rax
movl $0x5, (%rdi,%rax,8)
movups %xmm0, 0x4(%rdi,%rax,8)
movups %xmm0, 0x14(%rdi,%rax,8)
movl $0x0, 0x24(%rdi,%rax,8)
movq 0x168(%r13), %rdi
movq 0x170(%r13), %rbx
leaq 0x1(%rbx), %r12
cmpq 0x178(%r13), %r12
jbe 0xa626
leaq (%r12,%r12), %rax
movq %rax, 0x178(%r13)
movq %r12, %rax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rsi
callq 0x33c0
movq %rax, 0x168(%r13)
movq %rax, %rdi
movq %r12, 0x170(%r13)
leaq (%rbx,%rbx,4), %rax
movl $0x6, (%rdi,%rax,8)
xorps %xmm0, %xmm0
movups %xmm0, 0x4(%rdi,%rax,8)
movups %xmm0, 0x14(%rdi,%rax,8)
movl $0x0, 0x24(%rdi,%rax,8)
movq 0x168(%r13), %rdi
movq 0x170(%r13), %rbx
leaq 0x1(%rbx), %r12
cmpq 0x178(%r13), %r12
jbe 0xa690
leaq (%r12,%r12), %rax
movq %rax, 0x178(%r13)
movq %r12, %rax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rsi
callq 0x33c0
xorps %xmm0, %xmm0
movq %rax, 0x168(%r13)
movq %rax, %rdi
movq %r12, 0x170(%r13)
leaq (%rbx,%rbx,4), %rax
movl $0x8, (%rdi,%rax,8)
movups %xmm0, 0x4(%rdi,%rax,8)
movups %xmm0, 0x14(%rdi,%rax,8)
movl $0x0, 0x24(%rdi,%rax,8)
movq 0x168(%r13), %rdi
movq 0x170(%r13), %rbx
leaq 0x1(%rbx), %r12
cmpq 0x178(%r13), %r12
jbe 0xa6f4
leaq (%r12,%r12), %rax
movq %rax, 0x178(%r13)
movq %r12, %rax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rsi
callq 0x33c0
movq %rax, 0x168(%r13)
movq %rax, %rdi
movq %r12, 0x170(%r13)
leaq (%rbx,%rbx,4), %rax
movl $0x9, (%rdi,%rax,8)
xorps %xmm0, %xmm0
movups %xmm0, 0x4(%rdi,%rax,8)
movups %xmm0, 0x14(%rdi,%rax,8)
movl $0x0, 0x24(%rdi,%rax,8)
movq 0x168(%r13), %rdi
movq 0x170(%r13), %rbx
leaq 0x1(%rbx), %r12
cmpq 0x178(%r13), %r12
jbe 0xa75e
leaq (%r12,%r12), %rax
movq %rax, 0x178(%r13)
movq %r12, %rax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rsi
callq 0x33c0
xorps %xmm0, %xmm0
movq %rax, 0x168(%r13)
movq %rax, %rdi
movq %r12, 0x170(%r13)
leaq (%rbx,%rbx,4), %rax
movl $0x3, (%rdi,%rax,8)
movups %xmm0, 0x4(%rdi,%rax,8)
movups %xmm0, 0x14(%rdi,%rax,8)
movl $0x0, 0x24(%rdi,%rax,8)
movq 0x168(%r13), %rdi
movq 0x170(%r13), %rbx
leaq 0x1(%rbx), %r12
cmpq 0x178(%r13), %r12
jbe 0xa7c2
leaq (%r12,%r12), %rax
movq %rax, 0x178(%r13)
movq %r12, %rax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rsi
callq 0x33c0
movq %rax, 0x168(%r13)
movq %rax, %rdi
movq %r12, 0x170(%r13)
leaq (%rbx,%rbx,4), %rax
movl $0x4, (%rdi,%rax,8)
xorps %xmm0, %xmm0
movups %xmm0, 0x4(%rdi,%rax,8)
movups %xmm0, 0x14(%rdi,%rax,8)
movl $0x0, 0x24(%rdi,%rax,8)
cmpq %r15, %r14
jae 0xb754
movq %r14, %rcx
xorl %eax, %eax
movl %eax, %esi
movl %esi, %r8d
movb $-0x1, %sil
cmpq %r15, %rcx
jae 0xa80f
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x18(%rsp)
movq %rcx, %rdx
movl %esi, %edi
movl %esi, %ecx
andb $0x7f, %cl
movzbl %cl, %esi
movl %eax, %ecx
shll %cl, %esi
orl %esi, %r8d
addl $0x7, %eax
movq %rdx, %rcx
movl %r8d, %esi
testb %dil, %dil
js 0xa7f9
xorl %ecx, %ecx
movl %ecx, %eax
movl %ecx, %r12d
movb $-0x1, %cl
cmpq %r15, %rdx
jae 0xa849
movb (%rdx), %cl
incq %rdx
movq %rdx, 0x18(%rsp)
movl %ecx, %esi
movq %rdx, %rdi
andb $0x7f, %cl
movzbl %cl, %edx
movl %eax, %ecx
shll %cl, %edx
orl %edx, %r12d
addl $0x7, %eax
movq %rdi, %rdx
movl %r12d, %ecx
testb %sil, %sil
js 0xa835
movl %r12d, 0x6c(%rsp)
cmpl $0xb, %r8d
movq %rdi, 0x80(%rsp)
ja 0xb0d0
movl %r8d, %eax
leaq 0x192de(%rip), %rcx     # 0x23b68
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
leaq 0x18(%rsp), %rsi
callq 0xf126
movq %rax, %r14
xorl %eax, %eax
movq %rbx, %rdi
movl $0x3, %esi
leaq 0x1acfc(%rip), %rdx     # 0x255b5
movq %r14, %rcx
callq 0x4091
movq %r14, %rdi
callq 0x3030
jmp 0xb728
xorl %edx, %edx
movq %rdi, %rcx
movl %edx, %eax
movl %edx, %ebp
movb $-0x1, %dl
cmpq %r15, %rcx
jae 0xa8e8
movb (%rcx), %dl
incq %rcx
movq %rcx, 0x18(%rsp)
movl %edx, %esi
movq %rcx, %rdx
movl %esi, %ecx
andb $0x7f, %cl
movzbl %cl, %edi
movl %eax, %ecx
shll %cl, %edi
orl %edi, %ebp
addl $0x7, %eax
movq %rdx, %rcx
movl %ebp, %edx
testb %sil, %sil
js 0xa8d5
testl %ebp, %ebp
je 0xb728
xorl %r14d, %r14d
movq 0x10(%rsp), %r15
movq %r15, %rdi
leaq 0x18(%rsp), %rbx
movq %rbx, %rsi
callq 0xf126
movq %rax, 0x30(%rsp)
movq %r15, %rdi
movq %rbx, %rsi
callq 0xf126
movq %rax, %r12
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %rax
cmpq %rax, %rcx
jae 0xbd64
movzbl (%rcx), %esi
leaq 0x1(%rcx), %rdx
movq %rdx, 0x18(%rsp)
testl %esi, %esi
jne 0xbc07
xorl %edi, %edi
movq %rdx, %rcx
movl %edi, %edx
movl %edi, %esi
movb $-0x1, %dil
cmpq %rax, %rcx
jae 0xa97e
movb (%rcx), %dil
incq %rcx
movq %rcx, 0x18(%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 0xa969
movl %r14d, 0x5c(%rsp)
movq 0x580(%r15), %rax
movslq %esi, %rcx
movl (%rax,%rcx,4), %ebx
movl $0x1, %edi
movl $0x90, %esi
callq 0x32f0
movq %rax, %r13
addq $0x48, %rax
movq %rax, 0x50(%r13)
movl %ebx, 0x10(%r13)
movq 0x2e0(%r15), %r14
movl %r14d, 0x34(%r13)
movq %r12, %rdi
callq 0x34d0
movq %rax, 0x20(%r13)
leaq 0x1(%r14), %rbx
movq 0x2d8(%r15), %rdi
cmpq 0x2e8(%r15), %rbx
jbe 0xaa1f
leaq (%rbx,%rbx), %rax
movq %rax, 0x2e8(%r15)
movq %rbx, %rsi
shlq $0x4, %rsi
callq 0x33c0
movq %rax, 0x2d8(%r15)
movq %rax, %rdi
movq %rbx, 0x2e0(%r15)
movq %r13, (%rdi,%r14,8)
cmpq $0x0, 0x70(%r13)
jne 0xaa50
movq %r13, %rdi
callq 0xf214
testl %eax, %eax
jne 0xaa50
movq 0x20(%r13), %rdi
movq 0x10(%rsp), %rax
movq 0x48(%rax), %rsi
callq *(%rax)
movq %rax, 0x70(%r13)
movq 0x30(%rsp), %rdi
callq 0x3030
movq %r12, %rdi
callq 0x3030
movl 0x5c(%rsp), %eax
incl %eax
movl %eax, %r14d
cmpl %ebp, %eax
jne 0xa913
jmp 0xb728
xorl %esi, %esi
movq %rdi, %rcx
movl %esi, %eax
movl %esi, %ebp
movb $-0x1, %sil
cmpq %r15, %rcx
jae 0xaa94
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x18(%rsp)
movq %rcx, %rdx
movl %esi, %edi
movl %esi, %ecx
andb $0x7f, %cl
movzbl %cl, %esi
movl %eax, %ecx
shll %cl, %esi
orl %esi, %ebp
addl $0x7, %eax
movq %rdx, %rcx
movl %ebp, %esi
testb %dil, %dil
js 0xaa7f
testl %ebp, %ebp
je 0xb728
xorl %r14d, %r14d
movq %rdx, %rbx
movl %r14d, %r13d
movq %rbx, %r8
movq %rbx, %rcx
movl %r14d, %r9d
movl %r14d, %eax
movl %r9d, %edx
movq %rcx, %rdi
movb $-0x1, %cl
cmpq %r15, %r8
jae 0xaaf1
movb (%r8), %cl
incq %r8
movq %r8, 0x18(%rsp)
movq %r8, %rsi
movq %r8, %rdi
jmp 0xaaf4
movq %r8, %rsi
movl %ecx, %r10d
andb $0x7f, %cl
movzbl %cl, %r8d
movl %eax, %ecx
shll %cl, %r8d
orl %r8d, %edx
addl $0x7, %eax
movq %rdi, %rcx
movq %rsi, %r8
movl %edx, %r9d
testb %r10b, %r10b
js 0xaad1
testl %edx, %edx
jne 0xbcc4
xorl %edx, %edx
movq %rsi, %rcx
movl %edx, %eax
movl %edx, %esi
movb $-0x1, %dl
cmpq %r15, %rcx
jae 0xab41
movb (%rcx), %dl
movq %rcx, %rbx
incq %rbx
movq %rbx, 0x18(%rsp)
movq %rbx, %rcx
jmp 0xab44
movq %rdi, %rbx
movl %edx, %r8d
movq %rcx, %rdx
movl %r8d, %ecx
andb $0x7f, %cl
movzbl %cl, %edi
movl %eax, %ecx
shll %cl, %edi
orl %edi, %esi
addl $0x7, %eax
movq %rbx, %rdi
movq %rdx, %rcx
movl %esi, %edx
testb %r8b, %r8b
js 0xab26
xorl %eax, %eax
leaq 0x1af05(%rip), %rdi     # 0x25a77
callq 0x3190
movl %r13d, %eax
incl %eax
movl %eax, %r13d
cmpl %ebp, %eax
jne 0xaac5
jmp 0xb728
xorl %edx, %edx
movq %rdi, %rcx
movl %edx, %eax
movl %edx, %r14d
movb $-0x1, %dl
cmpq %r15, %rcx
jae 0xaba7
movb (%rcx), %dl
incq %rcx
movq %rcx, 0x18(%rsp)
movl %edx, %esi
movq %rcx, %rdx
movl %esi, %ecx
andb $0x7f, %cl
movzbl %cl, %edi
movl %eax, %ecx
shll %cl, %edi
movl %r14d, %r13d
orl %edi, %r13d
addl $0x7, %eax
movq %rdx, %rcx
movl %r13d, %edx
testb %sil, %sil
js 0xab93
testl %r13d, %r13d
je 0xb728
xorl %eax, %eax
movl %r13d, 0x68(%rsp)
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %r15
cmpq %r15, %rcx
jae 0xbd3f
movl %eax, %esi
movb (%rcx), %dl
incq %rcx
movq %rcx, 0x18(%rsp)
movl %edx, %eax
cmpb $0x60, %dl
jne 0xbd41
movl %esi, 0x40(%rsp)
xorl %edx, %edx
movl %edx, %eax
movl %edx, %ebp
movb $-0x1, %dl
cmpq %r15, %rcx
jae 0xac21
movb (%rcx), %dl
incq %rcx
movq %rcx, 0x18(%rsp)
movq %rcx, %rbx
movl %edx, %esi
movl %edx, %ecx
andb $0x7f, %cl
movzbl %cl, %edx
movl %eax, %ecx
shll %cl, %edx
orl %edx, %ebp
addl $0x7, %eax
movq %rbx, %rcx
movl %ebp, %edx
testb %sil, %sil
js 0xac0e
movslq %ebp, %r14
leaq (,%r14,4), %rdi
callq 0x3380
movq %rax, %r12
testl %r14d, %r14d
jle 0xac95
movl %ebp, %eax
movl %eax, %ebx
xorl %eax, %eax
movq 0x10(%rsp), %r15
leaq 0x18(%rsp), %r13
movq %rax, %r14
movq %r15, %rdi
movq %r13, %rsi
callq 0xf1ba
movl %eax, (%r12,%r14,4)
incq %r14
movq %r14, %rax
cmpq %r14, %rbx
jne 0xac69
movq 0x18(%rsp), %rbx
movq 0x20(%rsp), %r15
movl 0x68(%rsp), %r13d
xorl %edi, %edi
movq %rbx, %rcx
movl %edi, %edx
movq 0x10(%rsp), %rbx
leaq 0x18(%rsp), %r10
movl %edi, %esi
movb $-0x1, %dil
cmpq %r15, %rcx
jae 0xacbb
movb (%rcx), %dil
incq %rcx
movq %rcx, 0x18(%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 0xaca6
cmpl $0x1, %esi
ja 0xbd22
testl %esi, %esi
je 0xacfa
movq %rbx, %rdi
movq %r10, %rsi
callq 0xf1ba
jmp 0xacfc
xorl %eax, %eax
movl %eax, 0x48(%rsp)
movq 0x580(%rbx), %rdi
movq %rbx, %r14
movq 0x588(%rbx), %r15
leaq 0x1(%r15), %rbx
cmpq 0x590(%r14), %rbx
jbe 0xad40
leaq (%rbx,%rbx), %rax
movq %rax, 0x590(%r14)
leaq (,%rbx,8), %rsi
callq 0x33c0
movq %rax, 0x580(%r14)
movq %rax, %rdi
movq %rbx, 0x588(%r14)
movq 0x170(%r14), %rbx
movl %ebx, (%rdi,%r15,4)
leaq 0x1(%rbx), %r15
movq 0x168(%r14), %rdi
cmpq 0x178(%r14), %r15
jbe 0xad8b
leaq (%r15,%r15), %rax
movq %rax, 0x178(%r14)
movq %r15, %rax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rsi
callq 0x33c0
movq %rax, 0x168(%r14)
movq %rax, %rdi
movl 0x40(%rsp), %ecx
movq %r15, 0x170(%r14)
leaq (%rbx,%rbx,4), %rax
movl $0xc, (%rdi,%rax,8)
movq %r12, 0x8(%rdi,%rax,8)
movl 0x48(%rsp), %edx
movl %edx, 0x10(%rdi,%rax,8)
movl %ebp, 0x14(%rdi,%rax,8)
movl $0x0, 0x18(%rdi,%rax,8)
incl %ecx
movl %ecx, %eax
cmpl %r13d, %ecx
jne 0xabdc
jmp 0xb728
xorl %edx, %edx
movq %rdi, %rcx
movl %edx, %eax
movl %edx, %ebp
movb $-0x1, %dl
cmpq %r15, %rcx
jae 0xade6
movb (%rcx), %dl
incq %rcx
movq %rcx, 0x18(%rsp)
movl %edx, %esi
movq %rcx, %rdx
movl %esi, %ecx
andb $0x7f, %cl
movzbl %cl, %edi
movl %eax, %ecx
shll %cl, %edi
orl %edi, %ebp
addl $0x7, %eax
movq %rdx, %rcx
movl %ebp, %edx
testb %sil, %sil
js 0xadd3
testl %ebp, %ebp
je 0xb728
xorl %eax, %eax
movl %eax, 0x64(%rsp)
movq 0x10(%rsp), %r15
movq %r15, %rdi
leaq 0x18(%rsp), %rsi
callq 0xf1ba
movl %eax, %r13d
movq %r15, %rdi
movl %eax, %esi
movl $0x1, %edx
callq 0xf297
movl %eax, %r9d
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %rax
xorl %edx, %edx
movl %edx, %esi
movl %esi, %r14d
movb $-0x1, %sil
cmpq %rax, %rcx
jae 0xae5f
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x18(%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 0xae49
movq %r15, %rdi
movl %r13d, %esi
movl %r9d, %r12d
movl %r9d, %edx
xorl %ecx, %ecx
movl %ecx, %r8d
movl %ecx, %r9d
callq 0xf348
movq 0x598(%r15), %rdi
movq 0x5a0(%r15), %rbx
movq %r15, %r13
leaq 0x1(%rbx), %r15
cmpq 0x5a8(%r13), %r15
jbe 0xaee3
movl %eax, 0x44(%rsp)
leaq (%r15,%r15), %rax
movq %rax, 0x5a8(%r13)
movq %r15, %rsi
shlq $0x4, %rsi
callq 0x33c0
movq %rax, 0x598(%r13)
movq %rax, %rdi
movl 0x44(%rsp), %eax
movq %r15, 0x5a0(%r13)
movl %eax, 0x4c(%rsp)
movl %eax, (%rdi,%rbx,8)
movl %r12d, 0x4(%rdi,%rbx,8)
movq %r13, %rdi
leaq 0x18(%rsp), %rsi
callq 0xf410
movq %r13, %rdi
callq 0xf491
movq %rax, %r12
movq 0x2f0(%r13), %rdi
movq 0x2f8(%r13), %rbx
leaq 0x1(%rbx), %r15
cmpq 0x300(%r13), %r15
jbe 0xaf4a
leaq (%r15,%r15), %rax
movq %rax, 0x300(%r13)
movq %r15, %rsi
shlq $0x4, %rsi
callq 0x33c0
movq %rax, 0x2f0(%r13)
movq %rax, %rdi
movl %r12d, %eax
movq %r15, 0x2f8(%r13)
movl 0x4c(%rsp), %r12d
movl %r12d, (%rdi,%rbx,8)
movl %eax, 0x4(%rdi,%rbx,8)
xorl %ebx, %ebx
movl %ebx, %edi
movq %r13, %rsi
movl %r12d, %edx
callq 0xf9b4
movq %r13, %rdi
movl %eax, %esi
callq 0xd299
movq %rax, %r15
movq %rax, 0x88(%rsp)
leaq 0x88(%rsp), %rdi
movq %r13, %rsi
movl %r12d, %edx
callq 0xf9b4
movq 0x5a0(%r13), %rdx
decq %rdx
movl %ebx, %eax
leaq 0x1aae5(%rip), %rdi     # 0x25a90
movq %r15, %rsi
movl %r14d, %ecx
callq 0x3190
movl 0x64(%rsp), %ecx
incl %ecx
movl %ecx, %eax
cmpl %ebp, %ecx
jne 0xae10
jmp 0xb728
xorl %edx, %edx
movq %rdi, %rcx
movl %edx, %eax
movl %edx, %ebp
movb $-0x1, %dl
cmpq %r15, %rcx
jae 0xafe5
movb (%rcx), %dl
incq %rcx
movq %rcx, 0x18(%rsp)
movl %edx, %esi
movq %rcx, %rdx
movl %esi, %ecx
andb $0x7f, %cl
movzbl %cl, %edi
movl %eax, %ecx
shll %cl, %edi
orl %edi, %ebp
addl $0x7, %eax
movq %rdx, %rcx
movl %ebp, %edx
testb %sil, %sil
js 0xafd2
testl %ebp, %ebp
je 0xb728
xorl %r15d, %r15d
movq 0x10(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0xf126
movq %rax, %r14
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %rdx
movb $-0x1, %sil
cmpq %rdx, %rcx
jae 0xb03f
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x18(%rsp)
xorl %r8d, %r8d
movl %r8d, %eax
movl %r8d, %edi
movb $-0x1, %r8b
cmpq %rdx, %rcx
jae 0xb05b
movb (%rcx), %r8b
incq %rcx
movq %rcx, 0x18(%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 0xb045
cmpb $0x2, %sil
je 0xb0b3
movzbl %sil, %r8d
testl %r8d, %r8d
jne 0xbeb5
movq 0x10(%rsp), %rax
movq 0x2d8(%rax), %rax
movslq %edi, %rcx
movq (%rax,%rcx,8), %rbx
movq %r14, %rdi
callq 0x34d0
movq %rax, 0x20(%rbx)
movq %r14, %rdi
callq 0x3030
movl %r15d, %eax
incl %eax
movl %eax, %r15d
cmpl %ebp, %eax
jne 0xb010
jmp 0xb728
xorl %eax, %eax
movq 0x10(%rsp), %rdi
movl $0x1, %esi
leaq 0x1a4ec(%rip), %rdx     # 0x255cf
movl %r8d, %ecx
callq 0x4091
jmp 0xb728
xorl %esi, %esi
movq %rdi, %rcx
movl %esi, %eax
movl %esi, %ebp
movb $-0x1, %sil
cmpq %r15, %rcx
jae 0xb10c
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x18(%rsp)
movq %rcx, %rdx
movl %esi, %edi
movl %esi, %ecx
andb $0x7f, %cl
movzbl %cl, %esi
movl %eax, %ecx
shll %cl, %esi
orl %esi, %ebp
addl $0x7, %eax
movq %rdx, %rcx
movl %ebp, %esi
testb %dil, %dil
js 0xb0f7
testl %ebp, %ebp
je 0xb728
xorl %eax, %eax
movq %rdx, %r13
movl %eax, 0x3c(%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 0xb163
movb (%rsi), %cl
movq %rsi, %r13
incq %r13
movq %r13, 0x18(%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 0xb147
movq 0x10(%rsp), %rbx
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
movq 0x2d8(%rbx), %rdi
cmpq 0x2e8(%rbx), %r12
jbe 0xb219
leaq (%r12,%r12), %rax
movq %rax, 0x2e8(%rbx)
movq %r12, %rsi
shlq $0x4, %rsi
movq %rdx, 0x78(%rsp)
callq 0x33c0
movq 0x78(%rsp), %rdx
movq %rax, 0x2d8(%rbx)
movq %rax, %rdi
movl 0x3c(%rsp), %ecx
movq %r12, 0x2e0(%rbx)
movq %r14, (%rdi,%rdx,8)
incl %ecx
movl %ecx, %eax
cmpl %ebp, %ecx
jne 0xb139
jmp 0xb728
xorl %esi, %esi
movq %rdi, %rcx
movl %esi, %eax
movl %esi, %ebp
movb $-0x1, %sil
cmpq %r15, %rcx
jae 0xb255
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x18(%rsp)
movq %rcx, %rdx
movl %esi, %edi
movl %esi, %ecx
andb $0x7f, %cl
movzbl %cl, %esi
movl %eax, %ecx
shll %cl, %esi
orl %esi, %ebp
addl $0x7, %eax
movq %rdx, %rcx
movl %ebp, %esi
testb %dil, %dil
js 0xb240
testl %ebp, %ebp
je 0xb728
xorl %r14d, %r14d
movq %rdx, %rbx
cmpq %r15, %rbx
jae 0xbc84
movb (%rbx), %al
movq %rbx, %rcx
incq %rcx
movq %rcx, 0x18(%rsp)
cmpb $0x70, %al
jne 0xbc84
xorl %edi, %edi
movl %edi, %eax
movl %edi, %edx
movb $-0x1, %dil
cmpq %r15, %rcx
jae 0xb2ba
movb (%rcx), %dil
incq %rcx
movq %rcx, 0x18(%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 0xb2a5
testl %edx, %edx
jne 0xbd03
xorl %edi, %edi
movq %rsi, %rcx
movq %rsi, %rdx
movl %edi, %eax
movl %edi, %esi
movq %rcx, %rbx
movb $-0x1, %cl
cmpq %r15, %rdx
jae 0xb309
movb (%rdx), %cl
movq %rdx, %rbx
incq %rbx
movq %rbx, 0x18(%rsp)
movq %rbx, %rdx
movl %ecx, %r8d
andb $0x7f, %cl
movzbl %cl, %edi
movl %eax, %ecx
shll %cl, %edi
orl %edi, %esi
addl $0x7, %eax
movq %rbx, %rcx
movl %esi, %edi
testb %r8b, %r8b
js 0xb2ed
xorl %eax, %eax
leaq 0x1a712(%rip), %rdi     # 0x25a40
callq 0x3190
movl %r14d, %eax
incl %eax
movl %eax, %r14d
cmpl %ebp, %eax
jne 0xb283
jmp 0xb728
xorl %esi, %esi
movq %rdi, %rcx
movl %esi, %eax
movl %esi, %ebp
movb $-0x1, %sil
cmpq %r15, %rcx
jae 0xb364
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x18(%rsp)
movq %rcx, %rdx
movl %esi, %edi
movl %esi, %ecx
andb $0x7f, %cl
movzbl %cl, %esi
movl %eax, %ecx
shll %cl, %esi
orl %esi, %ebp
addl $0x7, %eax
movq %rdx, %rcx
movl %ebp, %esi
testb %dil, %dil
js 0xb34f
testl %ebp, %ebp
je 0xb728
xorl %eax, %eax
movq %r15, %r14
movl %eax, 0x60(%rsp)
movq %rdx, %rcx
xorl %edx, %edx
movl %edx, %esi
movq 0x10(%rsp), %rbx
leaq 0x18(%rsp), %r9
movl %esi, %r13d
movb $-0x1, %sil
cmpq %r14, %rcx
jae 0xb3bc
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x18(%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 0xb3a6
movq %rbx, %rdi
movq %r9, %rsi
callq 0xf410
movq %rbx, %rdi
callq 0xf491
movl %eax, %ecx
cmpq %rcx, 0x188(%rbx)
jbe 0xbce3
movq 0x180(%rbx), %rax
movq (%rax,%rcx,8), %rsi
movq %rbx, %rdi
callq 0x16a31
movl %eax, %r12d
movl 0x19c(%rbx), %esi
movq %rbx, %rdi
callq 0xeff9
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %r14
xorl %edx, %edx
movl %edx, %eax
movl %edx, %ebx
movb $-0x1, %dl
cmpq %r14, %rcx
jae 0xb44c
movb (%rcx), %dl
movq %rcx, %r15
incq %r15
movq %r15, 0x18(%rsp)
jmp 0xb44f
movq %rcx, %r15
movl %edx, %esi
movl %edx, %ecx
andb $0x7f, %cl
movzbl %cl, %edx
movl %eax, %ecx
shll %cl, %edx
orl %edx, %ebx
addl $0x7, %eax
movq %r15, %rcx
movl %ebx, %edx
testb %sil, %sil
js 0xb434
testl %r13d, %r13d
je 0xb478
movl %ebx, %ebx
movl %ebx, %r13d
jmp 0xb4b2
movl %r12d, %eax
movl %eax, %edi
movq 0x10(%rsp), %r13
addq 0x20(%r13), %rdi
movl %ebx, %eax
movl %eax, %edx
movq %rdx, 0x70(%rsp)
movq %r15, %rsi
callq 0x3360
movl 0x88(%r13), %eax
addl %r12d, %ebx
cmpl %ebx, %eax
cmoval %eax, %ebx
movl %ebx, 0x88(%r13)
movq 0x70(%rsp), %r13
addq %r13, %r15
movq %r15, 0x18(%rsp)
movl 0x60(%rsp), %ecx
incl %ecx
movq %r15, %rdx
movl %ecx, %eax
cmpl %ebp, %ecx
jne 0xb391
jmp 0xb728
xorl %edx, %edx
movq %rdi, %rcx
movl %edx, %eax
movl %edx, %r14d
movb $-0x1, %dl
cmpq %r15, %rcx
jae 0xb4ed
movb (%rcx), %dl
incq %rcx
movq %rcx, 0x18(%rsp)
movl %edx, %esi
movq %rcx, %rdx
movl %esi, %ecx
andb $0x7f, %cl
movzbl %cl, %edi
movl %eax, %ecx
shll %cl, %edi
orl %edi, %r14d
addl $0x7, %eax
movq %rdx, %rcx
movl %r14d, %edx
testb %sil, %sil
js 0xb4d9
movq 0x10(%rsp), %rax
movq 0x1a8(%rax), %rsi
movq %rsi, 0x1c0(%rax)
testl %r14d, %r14d
je 0xb728
xorl %ebp, %ebp
movq 0x10(%rsp), %rbx
movq $0x0, 0x5d0(%rbx)
movl 0x198(%rbx), %eax
movl %eax, 0x19c(%rbx)
movq %rbx, %rdi
callq 0x101bb
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %rax
cmpq %rax, %rcx
jae 0xb77f
movl 0x198(%rbx), %esi
cmpb $0x0, (%rcx)
jns 0xb582
movq %rcx, %rdx
incq %rdx
movq %rdx, %rcx
cmpq %rax, %rdx
jne 0xb56a
jmp 0xb77f
movl %esi, 0x58(%rsp)
incq %rcx
movq %rcx, 0x18(%rsp)
xorl %esi, %esi
movl %esi, %edx
movl %esi, %r13d
movb $-0x1, %sil
cmpq %rax, %rcx
jae 0xb5a8
movb (%rcx), %sil
incq %rcx
movq %rcx, 0x18(%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 0xb592
movq 0x1c0(%rbx), %rbx
movl $0x1, %r12d
movq %r12, %rdi
movl $0x58, %esi
callq 0x32f0
movq %rax, %r15
addq $0x10, %rax
movq %rax, 0x18(%r15)
movl 0x40(%rbx), %eax
movl %eax, %ecx
incl %ecx
movl %ecx, 0x40(%rbx)
movl %eax, 0x28(%r15)
movq 0x50(%rbx), %rax
movq %rax, 0x8(%r15)
movq %r15, (%rax)
movq %r15, 0x50(%rbx)
leaq 0x1a6d0(%rip), %rdi     # 0x25ce5
callq 0x34d0
movq %rax, 0x50(%r15)
movq 0x10(%rsp), %rax
movq 0x1c0(%rax), %rax
movl 0x10(%rax), %r8d
movq 0x10(%rsp), %rdi
movq %r15, %rsi
leaq 0x18(%rsp), %rdx
movl %r13d, %ecx
callq 0x102aa
movq 0x10(%rsp), %rax
movq 0x1c0(%rax), %rdi
movq %r15, %rsi
callq 0x11ce8
movq %rax, %r13
leaq 0x1a68d(%rip), %rdi     # 0x25cee
callq 0x34d0
movq %rax, 0x50(%r13)
movl 0x28(%r13), %ebx
movq %r12, %rdi
movl $0x68, %esi
callq 0x32f0
movabsq $-0xfffffff8, %rcx      # imm = 0xFFFFFFFF00000008
movq %rcx, 0x28(%rax)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %edx, 0x30(%rax)
movq %r15, 0x10(%rax)
movq 0x18(%r15), %rcx
movq %rcx, 0x8(%rax)
movq %rax, (%rcx)
movq %rax, 0x18(%r15)
movq 0x10(%rsp), %r15
movl %ebx, 0x60(%rax)
movl %edx, 0x58(%rax)
movq %rsp, %rax
movl %edx, 0x8(%rax)
movl $0x0, (%rax)
xorl %eax, %eax
movl %eax, %r8d
movq %r15, %rdi
movq %r13, %rsi
leaq 0x18(%rsp), %rdx
movl 0x58(%rsp), %ecx
movl $0x2, %r9d
callq 0x105a8
testq %rax, %rax
je 0xb6ea
movq %rax, %rsi
movq %r15, %rdi
callq 0x11751
movq 0x1c0(%r15), %rsi
movq %r15, %rdi
callq 0x117f6
movl 0x19c(%r15), %esi
movq %r15, %rdi
callq 0xeff9
movq 0x1c0(%r15), %rax
movq (%rax), %rsi
movq %rsi, 0x1c0(%r15)
movl %ebp, %eax
incl %eax
movl %eax, %ebp
cmpl %r14d, %eax
jne 0xb52d
movl 0x6c(%rsp), %r12d
movl %r12d, %eax
movq 0x80(%rsp), %rcx
addq %rax, %rcx
movq %rcx, 0x18(%rsp)
movq 0x20(%rsp), %rax
movq %rax, %r15
movq %rcx, %r14
cmpq %rax, %rcx
jb 0xa7f2
movl $0xfff, %eax            # imm = 0xFFF
movq 0x10(%rsp), %r15
addl 0x88(%r15), %eax
andl $0xfffff000, %eax       # imm = 0xFFFFF000
addl $0x100000, %eax         # imm = 0x100000
movl %eax, 0x88(%r15)
movq 0x20(%r15), %rcx
movl %eax, 0x4(%rcx)
jmp 0xb7a2
jmp 0xb77f
xorl %eax, %eax
movl %eax, %ecx
leaq 0x90(%rsp), %r8
movq 0x10(%rsp), %r15
movq %r15, %rdi
movl $0x2, %esi
movq %rcx, %rdx
callq 0xc192
movq 0x438(%r15), %rdi
callq 0x3030
movl $0xfff, %eax            # imm = 0xFFF
addl 0x88(%r15), %eax
andl $0xfffff000, %eax       # imm = 0xFFFFF000
movl %eax, %ecx
movl %eax, 0x8c(%r15)
movl %eax, 0x600(%r15)
movl 0xa4(%r15), %edx
movq 0x20(%r15), %rsi
leaq (%rsi,%rcx), %rdi
movq %rdi, 0x90(%r15)
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(%r15)
je 0xb889
movq 0x20(%r15), %r14
xorl %eax, %eax
movl %eax, %ebx
movq 0x188(%r15), %rcx
movq 0x2f0(%r15), %rdx
movl (%rdx,%rbx,8), %eax
cmpq %rax, %rcx
jbe 0xbbcf
movl 0x4(%rdx,%rbx,8), %edx
cmpq %rdx, %rcx
jbe 0xbbca
movq 0x180(%r15), %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 %r15, %rdi
callq 0x215df
movq %rbx, %rax
incq %rax
movq %rax, %rbx
cmpq %rax, 0x2f8(%r15)
ja 0xb82a
movl $0xffffffff, 0xe8(%r15) # imm = 0xFFFFFFFF
cmpq $0x0, 0xc8(%r15)
jne 0xb8ac
leaq 0x224ab(%rip), %rax     # 0x2dd50
movq %rax, 0xc8(%r15)
leaq 0x1c90b(%rip), %rsi     # 0x281be
leaq 0x19970(%rip), %rdx     # 0x2522a
movl $0x1, %ebp
movq %r15, %rdi
movl %ebp, %ecx
callq 0xe369
movq %rax, 0xb0(%r15)
leaq 0x1c8f2(%rip), %rsi     # 0x281c9
leaq 0x1a311(%rip), %r14     # 0x25bef
movq %r15, %rdi
movq %r14, %rdx
movl %ebp, %ecx
callq 0xe369
movq %rax, 0xb8(%r15)
leaq 0x1c8dc(%rip), %rsi     # 0x281d5
movq %r15, %rdi
movq %r14, %rdx
movl %ebp, %ecx
callq 0xe369
movq %rax, 0xc0(%r15)
movq 0xb0(%r15), %rdx
xorl %ecx, %ecx
movl %ecx, %esi
testq %rdx, %rdx
je 0xb923
subl 0x20(%r15), %edx
movl %edx, %esi
movl %esi, %ebx
movq 0xb8(%r15), %rdx
testq %rdx, %rdx
je 0xb937
movl %edx, %ecx
subl 0x20(%r15), %ecx
movl %ecx, 0x54(%rsp)
testq %rax, %rax
je 0xb946
subl 0x20(%r15), %eax
jmp 0xb948
xorl %eax, %eax
movl %eax, 0x50(%rsp)
movl 0x198(%r15), %r12d
testl %r12d, %r12d
jle 0xba06
movq 0x188(%r15), %r15
xorl %ecx, %ecx
movl %ecx, %r14d
cmpq %r14, %r15
je 0xbbea
movq 0x10(%rsp), %rax
movq 0x180(%rax), %rax
movq (%rax,%r14,8), %rax
cmpl $0x2, (%rax)
jne 0xb9ec
movq 0x30(%rax), %rbp
movq 0x20(%rbp), %r13
testq %r13, %r13
je 0xb9ec
movq %r13, %rdi
leaq 0x1c826(%rip), %rsi     # 0x281c3
callq 0x3300
movl %ebx, %ecx
testl %eax, %eax
je 0xb9d6
movq %r13, %rdi
leaq 0x1c81c(%rip), %rsi     # 0x281ce
callq 0x3300
movl 0x54(%rsp), %ecx
testl %eax, %eax
je 0xb9d6
movq %r13, %rdi
leaq 0x1c811(%rip), %rsi     # 0x281da
callq 0x3300
movl 0x50(%rsp), %ecx
testl %eax, %eax
jne 0xb9ec
movq 0x10(%rsp), %rsi
movq 0x20(%rsi), %rax
movl 0x28(%rbp), %edx
movl %ecx, (%rax,%rdx)
movl 0x198(%rsi), %r12d
movq %r14, %rcx
incq %rcx
movslq %r12d, %rdx
movl %r12d, %eax
movq %rcx, %r14
cmpq %rdx, %rcx
jl 0xb968
jmp 0xba09
movl %r12d, %eax
movl %eax, %ebx
movq 0x10(%rsp), %r12
movq 0x2e0(%r12), %r15
movl $0x8, %r14d
movq %r15, %rdi
movq %r14, %rsi
callq 0x32f0
movq %rax, 0x28(%r12)
movq %r15, %rdi
movq %r14, %rsi
callq 0x32f0
movq %rax, 0x30(%r12)
movl %ebx, %eax
testq %r15, %r15
je 0xbadc
xorl %r12d, %r12d
movl %r12d, %ecx
leaq 0x1957e(%rip), %r14     # 0x24fd4
movl $0x1, %ebp
movq %r15, %rax
movq %rcx, %r15
movq 0x10(%rsp), %r13
movq 0x10(%rsp), %rsi
movq 0x2d8(%rsi), %rcx
movq (%rcx,%r15,8), %rbx
movq 0x60(%rbx), %rcx
movq 0x28(%rsi), %rdx
movq %rcx, (%rdx,%r15,8)
movq 0x70(%rbx), %rcx
movq 0x30(%rsi), %rdx
movq %rcx, (%rdx,%r15,8)
cmpb $0x0, 0x29(%rbx)
je 0xbac3
orq 0x60(%rbx), %rcx
jne 0xbac3
movq 0x20(%rbx), %rcx
movl %r12d, %eax
movq %r13, %rdi
movl %ebp, %esi
movq %r14, %rdx
callq 0x4091
testb $-0x80, 0x100(%r13)
je 0xbca3
movq 0x2e0(%r13), %rax
movq %r15, %rdx
incq %rdx
movq %rdx, %r15
cmpq %rdx, %rax
ja 0xba66
movq 0x10(%rsp), %rax
movl 0x198(%rax), %eax
testl %eax, %eax
jle 0xbb54
movq 0x10(%rsp), %rdi
movq 0x188(%rdi), %r12
movl %eax, %eax
movl %eax, %r13d
xorl %eax, %eax
movl %eax, %ebx
leaq 0x1c6fe(%rip), %r14     # 0x281fa
cmpq %rbx, %r12
je 0xbc6f
movq 0x180(%rdi), %rax
movq (%rax,%rbx,8), %rax
cmpl $0x2, (%rax)
jne 0xbb2e
movq 0x30(%rax), %r15
movq 0x20(%r15), %rdi
testq %rdi, %rdi
je 0xbb2e
movq %r14, %rsi
callq 0x3300
testl %eax, %eax
je 0xbb4b
movq %rbx, %rax
incq %rax
movq %rax, %rbx
cmpq %rax, %r13
movq 0x10(%rsp), %rdi
jne 0xbafc
xorl %ecx, %ecx
movq %rdi, %r13
jmp 0xa443
movl 0x2c(%r15), %eax
cmpl $0xc, %eax
jae 0xbb60
xorl %ecx, %ecx
movq 0x10(%rsp), %r13
jmp 0xa443
movl %eax, %eax
movl $0xaaaaaaab, %ecx       # imm = 0xAAAAAAAB
imulq %rax, %rcx
shrq $0x21, %rcx
movl %ecx, %eax
andl $-0x4, %eax
leaq (%rax,%rax,2), %r14
xorl %ebp, %ebp
movl %ebp, %ebx
movq 0x10(%rsp), %r13
movl 0x28(%r15), %eax
addq 0x20(%r13), %rax
movl 0x4(%rbx,%rax), %eax
cmpq %rax, 0x2e0(%r13)
jbe 0xbbaf
movq 0x10(%rsp), %rdi
movq 0x2d8(%rdi), %rcx
movq (%rcx,%rax,8), %rsi
movl %ebp, %edx
movl %ebp, %eax
callq 0x3c7e
movq %rbx, %rax
addq $0xc, %rax
xorl %ecx, %ecx
movq %rax, %rbx
cmpq %rax, %r14
movq 0x10(%rsp), %r13
jne 0xbb81
jmp 0xa443
movl %edx, %r8d
jmp 0xbbd2
movl %eax, %r8d
leaq 0x19997(%rip), %rsi     # 0x25570
leaq 0x1a144(%rip), %rcx     # 0x25d24
xorl %eax, %eax
movq %r15, %rdi
jmp 0xbcf9
movl %r15d, %r8d
leaq 0x1997c(%rip), %rsi     # 0x25570
leaq 0x1a129(%rip), %rcx     # 0x25d24
xorl %eax, %eax
movq 0x10(%rsp), %rdi
jmp 0xbcf9
movq %r12, %r14
cmpl $0x1, %esi
je 0xbd97
cmpl $0x2, %esi
je 0xbe29
movl %esi, %eax
cmpl $0x3, %esi
jne 0xbd69
leaq 0x18(%rsp), %r12
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0xf1ba
movl %eax, %ebp
movq %r12, %rdi
callq 0xf0f0
movzbl %bpl, %ecx
movq %rsp, %rdx
movl %eax, 0x8(%rdx)
movl %ecx, (%rdx)
leaq 0x1998f(%rip), %rsi     # 0x255e8
leaq 0x19d5a(%rip), %rcx     # 0x259ba
xorl %eax, %eax
movq %rbx, %rdi
movl $0x133, %edx            # imm = 0x133
jmp 0xbef6
movl %r12d, %r8d
leaq 0x198f7(%rip), %rsi     # 0x25570
leaq 0x1a0a4(%rip), %rcx     # 0x25d24
xorl %eax, %eax
jmp 0xbcf9
leaq 0x1995d(%rip), %rsi     # 0x255e8
leaq 0x19d68(%rip), %rcx     # 0x259fa
xorl %eax, %eax
movq 0x10(%rsp), %rdi
movl $0x165, %edx            # imm = 0x165
callq 0xca98
movq 0x20(%rbx), %r8
leaq 0x19347(%rip), %rsi     # 0x24ff5
leaq 0x19323(%rip), %rcx     # 0x24fd8
xorl %eax, %eax
movq %r13, %rdi
movl $0x3c3, %edx            # imm = 0x3C3
callq 0xca98
leaq 0x1991d(%rip), %rsi     # 0x255e8
leaq 0x19d86(%rip), %rcx     # 0x25a58
xorl %eax, %eax
movq 0x10(%rsp), %rdi
movl $0x17b, %edx            # imm = 0x17B
callq 0xca98
movl %eax, %r8d
leaq 0x19883(%rip), %rsi     # 0x25570
leaq 0x1a030(%rip), %rcx     # 0x25d24
xorl %eax, %eax
movq %rbx, %rdi
movl $0x143, %edx            # imm = 0x143
callq 0xca98
leaq 0x198de(%rip), %rsi     # 0x255e8
leaq 0x19d11(%rip), %rcx     # 0x25a22
xorl %eax, %eax
movq 0x10(%rsp), %rdi
movl $0x169, %edx            # imm = 0x169
callq 0xca98
leaq 0x198bf(%rip), %rsi     # 0x255e8
leaq 0x19904(%rip), %rcx     # 0x25634
xorl %eax, %eax
movq %rbx, %rdi
movl $0xe3, %edx
callq 0xca98
movb $-0x1, %al
movzbl %al, %r8d
leaq 0x1989c(%rip), %rsi     # 0x255e8
leaq 0x198c3(%rip), %rcx     # 0x25616
xorl %eax, %eax
movq 0x10(%rsp), %rdi
movl $0xd4, %edx
callq 0xca98
movq %r12, %r14
movb $-0x1, %al
movzbl %al, %r8d
movq %rsp, %rax
movq %r14, (%rax)
leaq 0x1986e(%rip), %rsi     # 0x255e8
leaq 0x198fb(%rip), %rcx     # 0x2567c
xorl %eax, %eax
movq 0x10(%rsp), %rdi
movl $0x152, %edx            # imm = 0x152
movq 0x30(%rsp), %r9
callq 0xca98
cmpq %rax, %rdx
jae 0xbe99
movb 0x1(%rcx), %dl
addq $0x2, %rcx
movq %rcx, 0x18(%rsp)
cmpb $0x70, %dl
jne 0xbe99
xorl %edi, %edi
movl %edi, %edx
movl %edi, %esi
movb $-0x1, %dil
cmpq %rax, %rcx
jae 0xbdce
movb (%rcx), %dil
incq %rcx
movq %rcx, 0x18(%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 0xbdb9
testl %esi, %esi
jne 0xbf03
leaq 0x18(%rsp), %rdi
callq 0xf0f0
movq %rsp, %rcx
movl %eax, (%rcx)
leaq 0x197d7(%rip), %rsi     # 0x255e8
leaq 0x19b11(%rip), %rcx     # 0x25929
xorl %eax, %eax
movq 0x10(%rsp), %rdi
movl $0x119, %edx            # imm = 0x119
jmp 0xbef6
xorl %edi, %edi
movq %rdx, %rcx
movl %edi, %edx
movl %edi, %esi
movb $-0x1, %dil
cmpq %rax, %rcx
jae 0xbe45
movb (%rcx), %dil
incq %rcx
movq %rcx, 0x18(%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 0xbe30
testl %esi, %esi
jne 0xbedc
leaq 0x18(%rsp), %rdi
callq 0xf0f0
movq %rsp, %rcx
movl %eax, (%rcx)
leaq 0x19764(%rip), %rsi     # 0x255e8
leaq 0x19af5(%rip), %rcx     # 0x25980
xorl %eax, %eax
movq 0x10(%rsp), %rdi
movl $0x128, %edx            # imm = 0x128
jmp 0xbef6
leaq 0x19748(%rip), %rsi     # 0x255e8
leaq 0x19a37(%rip), %rcx     # 0x258de
xorl %eax, %eax
movq 0x10(%rsp), %rdi
movl $0x110, %edx            # imm = 0x110
jmp 0xbef6
movq %rsp, %rax
movl %edi, (%rax)
leaq 0x19727(%rip), %rsi     # 0x255e8
leaq 0x19deb(%rip), %rcx     # 0x25cb3
xorl %eax, %eax
movq 0x10(%rsp), %rdi
movl $0x1a1, %edx            # imm = 0x1A1
movq %r14, %r9
callq 0xca98
leaq 0x19705(%rip), %rsi     # 0x255e8
leaq 0x19a70(%rip), %rcx     # 0x2595a
xorl %eax, %eax
movq 0x10(%rsp), %rdi
movl $0x124, %edx            # imm = 0x124
movq 0x30(%rsp), %r8
movq %r14, %r9
callq 0xca98
leaq 0x196de(%rip), %rsi     # 0x255e8
leaq 0x199f3(%rip), %rcx     # 0x25904
xorl %eax, %eax
movq 0x10(%rsp), %rdi
movl $0x115, %edx            # imm = 0x115
jmp 0xbef6