// File: /workspace/github_cpp_makefile_star2_O2/lvandeve[P]lodepng/lodepng.cpp
// Function: lodepng_encode(unsigned char**, unsigned long*, unsigned char const*, unsigned int, unsigned int, LodePNGState*)
unsigned lodepng_encode(unsigned char** out, size_t* outsize,
                        const unsigned char* image, unsigned w, unsigned h,
                        LodePNGState* state) {
  unsigned char* data = 0; /*uncompressed version of the IDAT chunk data*/
  size_t datasize = 0;
  ucvector outv = ucvector_init(NULL, 0);
  LodePNGInfo info;
  const LodePNGInfo* info_png = &state->info_png;
  LodePNGColorMode auto_color;

  lodepng_info_init(&info);
  lodepng_color_mode_init(&auto_color);

  /*provide some proper output values if error will happen*/
  *out = 0;
  *outsize = 0;
  state->error = 0;

  /*check input values validity*/
  if((info_png->color.colortype == LCT_PALETTE || state->encoder.force_palette)
      && (info_png->color.palettesize == 0 || info_png->color.palettesize > 256)) {
    /*this error is returned even if auto_convert is enabled and thus encoder could
    generate the palette by itself: while allowing this could be possible in theory,
    it may complicate the code or edge cases, and always requiring to give a palette
    when setting this color type is a simpler contract*/
    state->error = 68; /*invalid palette size, it is only allowed to be 1-256*/
    goto cleanup;
  }
  if(state->encoder.zlibsettings.btype > 2) {
    state->error = 61; /*error: invalid btype*/
    goto cleanup;
  }
  if(info_png->interlace_method > 1) {
    state->error = 71; /*error: invalid interlace mode*/
    goto cleanup;
  }
  state->error = checkColorValidity(info_png->color.colortype, info_png->color.bitdepth);
  if(state->error) goto cleanup; /*error: invalid color type given*/
  state->error = checkColorValidity(state->info_raw.colortype, state->info_raw.bitdepth);
  if(state->error) goto cleanup; /*error: invalid color type given*/

  /* color convert and compute scanline filter types */
  lodepng_info_copy(&info, &state->info_png);
  if(state->encoder.auto_convert) {
    LodePNGColorStats stats;
    unsigned allow_convert = 1;
    lodepng_color_stats_init(&stats);
#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
    if(info_png->iccp_defined &&
        isGrayICCProfile(info_png->iccp_profile, info_png->iccp_profile_size)) {
      /*the PNG specification does not allow to use palette with a GRAY ICC profile, even
      if the palette has only gray colors, so disallow it.*/
      stats.allow_palette = 0;
    }
    if(info_png->iccp_defined &&
        isRGBICCProfile(info_png->iccp_profile, info_png->iccp_profile_size)) {
      /*the PNG specification does not allow to use grayscale color with RGB ICC profile, so disallow gray.*/
      stats.allow_greyscale = 0;
    }
#endif /* LODEPNG_COMPILE_ANCILLARY_CHUNKS */
    state->error = lodepng_compute_color_stats(&stats, image, w, h, &state->info_raw);
    if(state->error) goto cleanup;
#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
    if(info_png->background_defined) {
      /*the background chunk's color must be taken into account as well*/
      unsigned r = 0, g = 0, b = 0;
      LodePNGColorMode mode16 = lodepng_color_mode_make(LCT_RGB, 16);
      lodepng_convert_rgb(&r, &g, &b,
          info_png->background_r, info_png->background_g, info_png->background_b, &mode16, &info_png->color);
      state->error = lodepng_color_stats_add(&stats, r, g, b, 65535);
      if(state->error) goto cleanup;
    }
#endif /* LODEPNG_COMPILE_ANCILLARY_CHUNKS */
    state->error = auto_choose_color(&auto_color, &state->info_raw, &stats);
    if(state->error) goto cleanup;
#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
    if(info_png->sbit_defined) {
      /*if sbit is defined, due to strict requirements of which sbit values can be present for which color modes,
      auto_convert can't be done in many cases. However, do support a few cases here.
      TODO: more conversions may be possible, and it may also be possible to get a more appropriate color type out of
            auto_choose_color if knowledge about sbit is used beforehand
      */
      unsigned sbit_max = LODEPNG_MAX(LODEPNG_MAX(LODEPNG_MAX(info_png->sbit_r, info_png->sbit_g),
                           info_png->sbit_b), info_png->sbit_a);
      unsigned equal = (!info_png->sbit_g || info_png->sbit_g == info_png->sbit_r)
                    && (!info_png->sbit_b || info_png->sbit_b == info_png->sbit_r)
                    && (!info_png->sbit_a || info_png->sbit_a == info_png->sbit_r);
      allow_convert = 0;
      if(info.color.colortype == LCT_PALETTE &&
         auto_color.colortype == LCT_PALETTE) {
        /* input and output are palette, and in this case it may happen that palette data is
        expected to be copied from info_raw into the info_png */
        allow_convert = 1;
      }
      /*going from 8-bit RGB to palette (or 16-bit as long as sbit_max <= 8) is possible
      since both are 8-bit RGB for sBIT's purposes*/
      if(info.color.colortype == LCT_RGB &&
         auto_color.colortype == LCT_PALETTE && sbit_max <= 8) {
        allow_convert = 1;
      }
      /*going from 8-bit RGBA to palette is also ok but only if sbit_a is exactly 8*/
      if(info.color.colortype == LCT_RGBA && auto_color.colortype == LCT_PALETTE &&
         info_png->sbit_a == 8 && sbit_max <= 8) {
        allow_convert = 1;
      }
      /*going from 16-bit RGB(A) to 8-bit RGB(A) is ok if all sbit values are <= 8*/
      if((info.color.colortype == LCT_RGB || info.color.colortype == LCT_RGBA) && info.color.bitdepth == 16 &&
         auto_color.colortype == info.color.colortype && auto_color.bitdepth == 8 &&
         sbit_max <= 8) {
        allow_convert = 1;
      }
      /*going to less channels is ok if all bit values are equal (all possible values in sbit,
        as well as the chosen bitdepth of the result). Due to how auto_convert works,
        we already know that auto_color.colortype has less than or equal amount of channels than
        info.colortype. Palette is not used here. This conversion is not allowed if
        info_png->sbit_r < auto_color.bitdepth, because specifically for alpha, non-presence of
        an sbit value heavily implies that alpha's bit depth is equal to the PNG bit depth (rather
        than the bit depths set in the r, g and b sbit values, by how the PNG specification describes
        handling tRNS chunk case with sBIT), so be conservative here about ignoring user input.*/
      if(info.color.colortype != LCT_PALETTE && auto_color.colortype != LCT_PALETTE &&
         equal && info_png->sbit_r == auto_color.bitdepth) {
        allow_convert = 1;
      }
    }
#endif
    if(state->encoder.force_palette) {
      if(info.color.colortype != LCT_GREY && info.color.colortype != LCT_GREY_ALPHA &&
         (auto_color.colortype == LCT_GREY || auto_color.colortype == LCT_GREY_ALPHA)) {
        /*user speficially forced a PLTE palette, so cannot convert to grayscale types because
        the PNG specification only allows writing a suggested palette in PLTE for truecolor types*/
        allow_convert = 0;
      }
    }
    if(allow_convert) {
      lodepng_color_mode_copy(&info.color, &auto_color);
#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
      /*also convert the background chunk*/
      if(info_png->background_defined) {
        if(lodepng_convert_rgb(&info.background_r, &info.background_g, &info.background_b,
            info_png->background_r, info_png->background_g, info_png->background_b, &info.color, &info_png->color)) {
          state->error = 104;
          goto cleanup;
        }
      }
#endif /* LODEPNG_COMPILE_ANCILLARY_CHUNKS */
    }
  }
#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
  if(info_png->iccp_defined) {
    unsigned gray_icc = isGrayICCProfile(info_png->iccp_profile, info_png->iccp_profile_size);
    unsigned rgb_icc = isRGBICCProfile(info_png->iccp_profile, info_png->iccp_profile_size);
    unsigned gray_png = info.color.colortype == LCT_GREY || info.color.colortype == LCT_GREY_ALPHA;
    if(!gray_icc && !rgb_icc) {
      state->error = 100; /* Disallowed profile color type for PNG */
      goto cleanup;
    }
    if(gray_icc != gray_png) {
      /*Not allowed to use RGB/RGBA/palette with GRAY ICC profile or vice versa,
      or in case of auto_convert, it wasn't possible to find appropriate model*/
      state->error = state->encoder.auto_convert ? 102 : 101;
      goto cleanup;
    }
  }
#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
  if(!lodepng_color_mode_equal(&state->info_raw, &info.color)) {
    unsigned char* converted;
    size_t size = ((size_t)w * (size_t)h * (size_t)lodepng_get_bpp(&info.color) + 7u) / 8u;

    converted = (unsigned char*)lodepng_malloc(size);
    if(!converted && size) state->error = 83; /*alloc fail*/
    if(!state->error) {
      state->error = lodepng_convert(converted, image, &info.color, &state->info_raw, w, h);
    }
    if(!state->error) {
      state->error = preProcessScanlines(&data, &datasize, converted, w, h, &info, &state->encoder);
    }
    lodepng_free(converted);
    if(state->error) goto cleanup;
  } else {
    state->error = preProcessScanlines(&data, &datasize, image, w, h, &info, &state->encoder);
    if(state->error) goto cleanup;
  }

  /* output all PNG chunks */ {
#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
    size_t i;
#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
    /*write signature and chunks*/
    state->error = writeSignature(&outv);
    if(state->error) goto cleanup;
    /*IHDR*/
    state->error = addChunk_IHDR(&outv, w, h, info.color.colortype, info.color.bitdepth, info.interlace_method);
    if(state->error) goto cleanup;
#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
    /*unknown chunks between IHDR and PLTE*/
    if(info.unknown_chunks_data[0]) {
      state->error = addUnknownChunks(&outv, info.unknown_chunks_data[0], info.unknown_chunks_size[0]);
      if(state->error) goto cleanup;
    }
    /*color profile chunks must come before PLTE */
    if(info.cicp_defined) {
      state->error = addChunk_cICP(&outv, &info);
      if(state->error) goto cleanup;
    }
    if(info.mdcv_defined) {
      state->error = addChunk_mDCV(&outv, &info);
      if(state->error) goto cleanup;
    }
    if(info.clli_defined) {
      state->error = addChunk_cLLI(&outv, &info);
      if(state->error) goto cleanup;
    }
    if(info.iccp_defined) {
      state->error = addChunk_iCCP(&outv, &info, &state->encoder.zlibsettings);
      if(state->error) goto cleanup;
    }
    if(info.srgb_defined) {
      state->error = addChunk_sRGB(&outv, &info);
      if(state->error) goto cleanup;
    }
    if(info.gama_defined) {
      state->error = addChunk_gAMA(&outv, &info);
      if(state->error) goto cleanup;
    }
    if(info.chrm_defined) {
      state->error = addChunk_cHRM(&outv, &info);
      if(state->error) goto cleanup;
    }
    if(info_png->sbit_defined) {
      state->error = addChunk_sBIT(&outv, &info);
      if(state->error) goto cleanup;
    }
    if(info.exif_defined) {
      state->error = addChunk_eXIf(&outv, &info);
      if(state->error) goto cleanup;
    }
#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
    /*PLTE*/
    if(info.color.colortype == LCT_PALETTE) {
      state->error = addChunk_PLTE(&outv, &info.color);
      if(state->error) goto cleanup;
    }
    if(state->encoder.force_palette && (info.color.colortype == LCT_RGB || info.color.colortype == LCT_RGBA)) {
      /*force_palette means: write suggested palette for truecolor in PLTE chunk*/
      state->error = addChunk_PLTE(&outv, &info.color);
      if(state->error) goto cleanup;
    }
    /*tRNS (this will only add if when necessary) */
    state->error = addChunk_tRNS(&outv, &info.color);
    if(state->error) goto cleanup;
#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
    /*bKGD (must come between PLTE and the IDAt chunks*/
    if(info.background_defined) {
      state->error = addChunk_bKGD(&outv, &info);
      if(state->error) goto cleanup;
    }
    /*pHYs (must come before the IDAT chunks)*/
    if(info.phys_defined) {
      state->error = addChunk_pHYs(&outv, &info);
      if(state->error) goto cleanup;
    }

    /*unknown chunks between PLTE and IDAT*/
    if(info.unknown_chunks_data[1]) {
      state->error = addUnknownChunks(&outv, info.unknown_chunks_data[1], info.unknown_chunks_size[1]);
      if(state->error) goto cleanup;
    }
#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
    /*IDAT (multiple IDAT chunks must be consecutive)*/
    state->error = addChunk_IDAT(&outv, data, datasize, &state->encoder.zlibsettings);
    if(state->error) goto cleanup;
#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
    /*tIME*/
    if(info.time_defined) {
      state->error = addChunk_tIME(&outv, &info.time);
      if(state->error) goto cleanup;
    }
    /*tEXt and/or zTXt*/
    for(i = 0; i != info.text_num; ++i) {
      if(lodepng_strlen(info.text_keys[i]) > 79) {
        state->error = 66; /*text chunk too large*/
        goto cleanup;
      }
      if(lodepng_strlen(info.text_keys[i]) < 1) {
        state->error = 67; /*text chunk too small*/
        goto cleanup;
      }
      if(state->encoder.text_compression) {
        state->error = addChunk_zTXt(&outv, info.text_keys[i], info.text_strings[i], &state->encoder.zlibsettings);
        if(state->error) goto cleanup;
      } else {
        state->error = addChunk_tEXt(&outv, info.text_keys[i], info.text_strings[i]);
        if(state->error) goto cleanup;
      }
    }
    /*LodePNG version id in text chunk*/
    if(state->encoder.add_id) {
      unsigned already_added_id_text = 0;
      for(i = 0; i != info.text_num; ++i) {
        const char* k = info.text_keys[i];
        /* Could use strcmp, but we're not calling or reimplementing this C library function for this use only */
        if(k[0] == 'L' && k[1] == 'o' && k[2] == 'd' && k[3] == 'e' &&
           k[4] == 'P' && k[5] == 'N' && k[6] == 'G' && k[7] == '\0') {
          already_added_id_text = 1;
          break;
        }
      }
      if(already_added_id_text == 0) {
        state->error = addChunk_tEXt(&outv, "LodePNG", LODEPNG_VERSION_STRING); /*it's shorter as tEXt than as zTXt chunk*/
        if(state->error) goto cleanup;
      }
    }
    /*iTXt*/
    for(i = 0; i != info.itext_num; ++i) {
      if(lodepng_strlen(info.itext_keys[i]) > 79) {
        state->error = 66; /*text chunk too large*/
        goto cleanup;
      }
      if(lodepng_strlen(info.itext_keys[i]) < 1) {
        state->error = 67; /*text chunk too small*/
        goto cleanup;
      }
      state->error = addChunk_iTXt(
          &outv, state->encoder.text_compression,
          info.itext_keys[i], info.itext_langtags[i], info.itext_transkeys[i], info.itext_strings[i],
          &state->encoder.zlibsettings);
      if(state->error) goto cleanup;
    }

    /*unknown chunks between IDAT and IEND*/
    if(info.unknown_chunks_data[2]) {
      state->error = addUnknownChunks(&outv, info.unknown_chunks_data[2], info.unknown_chunks_size[2]);
      if(state->error) goto cleanup;
    }
#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
    state->error = addChunk_IEND(&outv);
    if(state->error) goto cleanup;
  }

cleanup:
  lodepng_info_cleanup(&info);
  lodepng_free(data);
  lodepng_color_mode_cleanup(&auto_color);

  /*instead of cleaning the vector up, give it to the output*/
  *out = outv.data;
  *outsize = outv.size;

  return state->error;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x6e8, %rsp            # imm = 0x6E8
movq %rdx, %rbp
movq %r9, %rbx
movq %rsi, %r12
movl %r8d, %r14d
movl %ecx, %r15d
movq %rdi, %r13
andq $0x0, 0x40(%rsp)
andq $0x0, 0x70(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
leaq 0xc0(%rsp), %rdi
callq 0x5095
xorps %xmm0, %xmm0
movups %xmm0, 0x60(%rsp)
movabsq $0x800000006, %rax      # imm = 0x800000006
movq %rax, 0x48(%rsp)
movups %xmm0, 0x50(%rsp)
movq %r13, 0x2a0(%rsp)
andq $0x0, (%r13)
movq %r12, 0x2a8(%rsp)
andq $0x0, (%r12)
andl $0x0, 0x278(%rbx)
movl 0xe0(%rbx), %edi
cmpl $0x3, %edi
je 0x9358
cmpl $0x0, 0x98(%rbx)
je 0x937a
movq $-0x101, %rax           # imm = 0xFEFF
movq 0xf0(%rbx), %rcx
addq %rax, %rcx
cmpq %rax, %rcx
ja 0x937a
movl $0x44, 0x278(%rbx)
jmp 0x93d1
cmpl $0x3, 0x50(%rbx)
jb 0x938c
movl $0x3d, 0x278(%rbx)
jmp 0x93d1
cmpl $0x2, 0xd8(%rbx)
jb 0x93a1
movl $0x47, 0x278(%rbx)
jmp 0x93d1
movl 0xe4(%rbx), %esi
callq 0x716b
movl %eax, 0x278(%rbx)
testl %eax, %eax
jne 0x93d1
movl 0xa8(%rbx), %edi
movl 0xac(%rbx), %esi
callq 0x716b
movl %eax, 0x278(%rbx)
testl %eax, %eax
je 0x942a
leaq 0xc0(%rsp), %rdi
callq 0x515b
movq 0x40(%rsp), %rdi
callq 0x2260
leaq 0x48(%rsp), %rdi
callq 0x498e
movq 0x10(%rsp), %rax
movq 0x2a0(%rsp), %rcx
movq %rax, (%rcx)
movq 0x18(%rsp), %rax
movq 0x2a8(%rsp), %rcx
movq %rax, (%rcx)
movl 0x278(%rbx), %eax
addq $0x6e8, %rsp            # imm = 0x6E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xd0(%rbx), %rsi
leaq 0xa8(%rbx), %r12
leaq 0xc0(%rsp), %rdi
callq 0x51b8
cmpl $0x0, 0x80(%rbx)
pushq $0x8
popq %rax
movl %eax, 0x4(%rsp)
movq %r12, 0x30(%rsp)
je 0x9a14
andq $0x0, 0x2c8(%rsp)
andq $0x0, 0x2b8(%rsp)
andq $0x0, 0x2be(%rsp)
movl $0x1, 0x6d0(%rsp)
andq $0x0, 0x6d8(%rsp)
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, 0x6e0(%rsp)
cmpl $0x0, 0x1cc(%rbx)
je 0x94e9
movq 0x1d8(%rbx), %r13
movl 0x1e0(%rbx), %r12d
movq %r13, %rdi
movl %r12d, %esi
callq 0xadc9
testl %eax, %eax
je 0x94cd
andl $0x0, 0x6e0(%rsp)
movq %r13, %rdi
movl %r12d, %esi
callq 0xadec
testl %eax, %eax
movq 0x30(%rsp), %r12
je 0x94e9
andl $0x0, 0x6e4(%rsp)
leaq 0x2b8(%rsp), %rdi
movq %rbp, %rsi
movl %r15d, %edx
movl %r14d, %ecx
movq %r12, %r8
callq 0x65da
movl %eax, 0x278(%rbx)
testl %eax, %eax
jne 0x93d1
leaq 0xe0(%rbx), %r11
cmpl $0x0, 0x108(%rbx)
movq %r11, 0x8(%rsp)
je 0x9624
leaq 0x7c(%rsp), %rax
andl $0x0, (%rax)
movq %rax, %rdi
leaq 0x2b4(%rsp), %r13
andl $0x0, (%r13)
leaq 0x2b0(%rsp), %r12
andl $0x0, (%r12)
xorps %xmm0, %xmm0
leaq 0x268(%rsp), %rax
movups %xmm0, 0x18(%rax)
movups %xmm0, 0x8(%rax)
movabsq $0x1000000002, %rcx     # imm = 0x1000000002
movq %rcx, (%rax)
movl 0x10c(%rbx), %ecx
movl 0x110(%rbx), %r8d
movl 0x114(%rbx), %r9d
movq %r13, %rsi
movq %r12, %rdx
pushq %r11
pushq %rax
callq 0x6433
popq %rcx
popq %rdx
leaq 0x7c(%rsp), %rax
movl (%rax), %edx
movl (%r13), %ecx
movl (%r12), %eax
leaq 0x98(%rsp), %r13
movb %dh, 0x80(%rsp)
leaq 0x80(%rsp), %rsi
movb %dl, 0x1(%rsi)
movb %ch, 0x82(%rsp)
movb %cl, 0x3(%rsi)
movb %ah, 0x84(%rsp)
movb %al, 0x5(%rsi)
orw $-0x1, 0x6(%rsi)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r13)
movups %xmm0, 0x8(%r13)
movabsq $0x1000000006, %rax     # imm = 0x1000000006
movq %rax, (%r13)
leaq 0x2b8(%rsp), %rdi
pushq $0x1
popq %rcx
movl %ecx, %edx
movq %r13, %r8
callq 0x65da
movl %eax, %r12d
movq %r13, %rdi
callq 0x498e
movq 0x8(%rsp), %r11
movl %r12d, 0x278(%rbx)
testl %r12d, %r12d
jne 0x93d1
movq 0x6d8(%rsp), %rsi
movl 0x2bc(%rsp), %eax
movl 0x6d0(%rsp), %ecx
andl $0x0, 0x60(%rsp)
testl %eax, %eax
sete %dil
cmpq $0x11, %rsi
setae %dl
orb %dil, %dl
cmpl $0x9, %ecx
pushq $0x8
popq %r10
movl %r10d, %r8d
cmovael %ecx, %r8d
movl 0x2b8(%rsp), %edi
testb %dl, %dl
cmovnel %ecx, %r8d
testl %edi, %edi
sete %cl
cmpl $0x0, 0x6e4(%rsp)
movl 0x2c8(%rsp), %r9d
setne %dil
andb %cl, %dil
cmpl $0x8, %r8d
movl %r10d, %ecx
cmovael %r8d, %ecx
testb %dil, %dil
cmovnel %r8d, %ecx
movl 0x2cc(%rsp), %r8d
cmpq $0x3, %r8
jae 0x96aa
pushq $0x1
jmp 0x96b2
cmpl $0x5, %r8d
jae 0x96b6
pushq $0x2
popq %r12
jmp 0x96c9
xorl %r10d, %r10d
cmpl $0x11, %r8d
setae %r10b
leal 0x4(,%r10,4), %r12d
testl %r9d, %r9d
sete %r9b
andb %r9b, %dl
cmpl %r12d, %ecx
setbe %r9b
cmpl $0x0, 0x6e0(%rsp)
je 0x976d
movl %edi, %r10d
andb %dl, %r10b
andb %r9b, %r10b
jne 0x976d
leal -0x101(%r8), %r9d
cmpl $0xffffff00, %r9d       # imm = 0xFFFFFF00
jb 0x976d
addq %r8, %r8
cmpq %r8, %rsi
jb 0x976d
cmpl $0x8, %ecx
ja 0x976d
movl %r12d, 0x38(%rsp)
leaq 0x48(%rsp), %r13
movq %r13, %rdi
callq 0x498e
xorl %r12d, %r12d
movl 0x2cc(%rsp), %eax
cmpq %rax, %r12
je 0x97e3
movzbl 0x2d0(%rsp,%r12,4), %esi
movzbl 0x2d1(%rsp,%r12,4), %edx
movzbl 0x2d2(%rsp,%r12,4), %ecx
movzbl 0x2d3(%rsp,%r12,4), %r8d
movq %r13, %rdi
callq 0x4a2f
incq %r12
testl %eax, %eax
je 0x9725
movl %eax, %r13d
jmp 0x97e6
cmpq $0x11, %rsi
setae %sil
movl %ecx, 0x4c(%rsp)
xorb $0x1, %dil
movzbl %dil, %edi
leal 0x4(,%rdi,2), %r8d
addl %edi, %edi
testb %dl, %dl
cmovel %r8d, %edi
movl %edi, 0x48(%rsp)
testl %eax, %eax
setne %al
andb %sil, %al
cmpb $0x1, %al
jne 0x97da
pushq $-0x1
popq %rax
shll %cl, %eax
notl %eax
movzwl 0x2c0(%rsp), %ecx
andl %eax, %ecx
movl %ecx, 0x64(%rsp)
movzwl 0x2c2(%rsp), %ecx
andl %eax, %ecx
movl %ecx, 0x68(%rsp)
movzwl 0x2c4(%rsp), %ecx
andl %eax, %ecx
movl %ecx, 0x6c(%rsp)
movl $0x1, 0x60(%rsp)
andl $0x0, 0x278(%rbx)
jmp 0x984a
xorl %r13d, %r13d
movl $0x3, 0x48(%rsp)
movl 0x38(%rsp), %ecx
movl %ecx, 0x4c(%rsp)
movq 0x30(%rsp), %rax
cmpl $0x3, (%rax)
movq 0x8(%rsp), %r11
jne 0x983a
movq 0xb8(%rbx), %rax
cmpq 0x58(%rsp), %rax
jb 0x983a
cmpl %ecx, 0xac(%rbx)
jne 0x983a
leaq 0x48(%rsp), %r12
movq %r12, %rdi
callq 0x498e
movq %r12, %rdi
movq 0x30(%rsp), %rsi
callq 0x49a4
movq 0x8(%rsp), %r11
movl %r13d, 0x278(%rbx)
testl %r13d, %r13d
jne 0x93d1
cmpl $0x0, 0x230(%rbx)
je 0x9955
movl 0x234(%rbx), %eax
movl 0x238(%rbx), %edi
cmpl %edi, %eax
movl %edi, %ecx
cmoval %eax, %ecx
movl 0x23c(%rbx), %edx
movl 0x240(%rbx), %esi
cmpl %edx, %ecx
cmovbel %edx, %ecx
cmpl %esi, %ecx
cmovbel %esi, %ecx
testl %edi, %edi
setne %r8b
cmpl %eax, %edi
setne %dil
testb %dil, %r8b
jne 0x98ba
testl %edx, %edx
setne %dil
cmpl %eax, %edx
setne %dl
testb %dl, %dil
jne 0x98ba
movq %r11, %rdx
testl %esi, %esi
sete %dil
cmpl %eax, %esi
sete %r8b
orb %dil, %r8b
movl %r8d, 0x38(%rsp)
jmp 0x98c5
movq %r11, %rdx
movl $0x0, 0x38(%rsp)
movl 0xd0(%rsp), %edi
cmpl $0x3, %edi
sete %r9b
movl 0x48(%rsp), %r8d
cmpl $0x3, %r8d
sete %r10b
andb %r10b, %r9b
cmpl $0x2, %edi
sete %r11b
andb %r10b, %r11b
cmpl $0x9, %ecx
setb %r12b
andb %r12b, %r11b
cmpl $0x6, %edi
sete %r13b
andb %r10b, %r13b
cmpl $0x8, %esi
sete %sil
andb %r12b, %sil
andb %r13b, %sil
orb %r9b, %r11b
orb %sil, %r11b
movzbl %r11b, %esi
movl %edi, %r9d
andl $-0x5, %r9d
cmpl $0x2, %r9d
jne 0x995a
cmpl $0x10, 0xd4(%rsp)
movq %rdx, %r11
jne 0x995d
movl %r8d, %r9d
xorl %edi, %r9d
movl 0x4c(%rsp), %r10d
xorl $0x8, %r10d
orl %r9d, %r10d
pushq $0x1
popq %r9
cmovnel %esi, %r9d
cmpl $0x9, %ecx
cmovbl %r9d, %esi
jmp 0x995d
pushq $0x1
popq %rsi
jmp 0x9985
movq %rdx, %r11
movl 0x38(%rsp), %edx
cmpl $0x3, %edi
setne %cl
cmpl $0x3, %r8d
setne %dil
andb %cl, %dil
andb %dl, %dil
cmpb $0x1, %dil
jne 0x9985
cmpl 0x4c(%rsp), %eax
pushq $0x1
popq %rax
cmovel %eax, %esi
cmpl $0x0, 0x98(%rbx)
je 0x99a5
testl $0xfffffffb, 0xd0(%rsp) # imm = 0xFFFFFFFB
je 0x99a5
testl $0xfffffffb, 0x48(%rsp) # imm = 0xFFFFFFFB
je 0x9a14
testl %esi, %esi
je 0x9a14
leaq 0xd0(%rsp), %r13
leaq 0x48(%rsp), %rsi
movq %r13, %rdi
movq %r11, %r12
callq 0x49a4
cmpl $0x0, 0x108(%rbx)
je 0x9a14
leaq 0xfc(%rsp), %rdi
leaq 0x100(%rsp), %rsi
leaq 0x104(%rsp), %rdx
movl 0x10c(%rbx), %ecx
movl 0x110(%rbx), %r8d
movl 0x114(%rbx), %r9d
pushq %r12
pushq %r13
callq 0x6433
popq %rcx
popq %rdx
testl %eax, %eax
je 0x9a14
movl $0x68, 0x278(%rbx)
jmp 0x93d1
cmpl $0x0, 0x1cc(%rbx)
je 0x9a69
movq 0x1d8(%rbx), %r12
movl 0x1e0(%rbx), %r13d
movq %r12, %rdi
movl %r13d, %esi
callq 0xadc9
movl %eax, 0x8(%rsp)
movq %r12, %rdi
movl %r13d, %esi
callq 0xadec
movl 0x8(%rsp), %ecx
orl %ecx, %eax
je 0x9ec1
xorl %eax, %eax
testl $0xfffffffb, 0xd0(%rsp) # imm = 0xFFFFFFFB
sete %al
cmpl %eax, %ecx
jne 0x9f1e
leaq 0x50(%rbx), %r12
leaq 0xd0(%rsp), %r13
movq 0x30(%rsp), %rdi
movq %r13, %rsi
callq 0x5ea1
testl %eax, %eax
je 0x9ed0
subq $0x8, %rsp
leaq 0x48(%rsp), %rdi
leaq 0x78(%rsp), %rsi
leaq 0xc8(%rsp), %r9
movq %rbp, %rdx
movl %r15d, %ecx
movl %r14d, %r8d
pushq %r12
callq 0xae0f
popq %rcx
popq %rdx
movl %eax, 0x278(%rbx)
testl %eax, %eax
jne 0x93d1
movabsq $0xa1a0a0d474e5089, %rax # imm = 0xA1A0A0D474E5089
movq %rax, 0x2b8(%rsp)
leaq 0x10(%rsp), %rdi
pushq $0x8
popq %rsi
callq 0xbda6
testl %eax, %eax
je 0x9f74
movq %r12, 0x8(%rsp)
leaq 0x10(%rsp), %r12
movq (%r12), %rdi
leaq 0x2b8(%rsp), %rsi
pushq $0x8
popq %rdx
callq 0x4a08
andl $0x0, 0x278(%rbx)
movl 0xc8(%rsp), %eax
movl %eax, 0x30(%rsp)
movl 0xd0(%rsp), %r13d
movl 0xd4(%rsp), %ebp
leaq 0x54c46(%rip), %rcx     # 0x5e773
leaq 0x2b8(%rsp), %rdi
pushq $0xd
popq %rdx
movq %r12, %rsi
callq 0xcdb2
testl %eax, %eax
jne 0x9f2b
movq 0x2b8(%rsp), %rdi
movl %r15d, %ecx
movl %r15d, %eax
shrl $0x18, %eax
movb %al, 0x8(%rdi)
movl %r15d, %eax
shrl $0x10, %eax
movb %al, 0x9(%rdi)
movb %ch, 0xa(%rdi)
movb %cl, 0xb(%rdi)
movl %r14d, %ecx
movl %r14d, %eax
shrl $0x18, %eax
movb %al, 0xc(%rdi)
movl %r14d, %eax
shrl $0x10, %eax
movb %al, 0xd(%rdi)
movb %ch, 0xe(%rdi)
movb %cl, 0xf(%rdi)
movb %bpl, 0x10(%rdi)
movb %r13b, 0x11(%rdi)
andw $0x0, 0x12(%rdi)
movl 0x30(%rsp), %eax
movb %al, 0x14(%rdi)
callq 0x4657
andl $0x0, 0x278(%rbx)
movq 0x238(%rsp), %rsi
testq %rsi, %rsi
je 0x9bd3
movq 0x250(%rsp), %rdx
leaq 0x10(%rsp), %rdi
callq 0xb313
movl %eax, 0x278(%rbx)
testl %eax, %eax
jne 0x93d1
cmpl $0x0, 0x1d4(%rsp)
je 0x9c88
pushq $0x74
popq %rax
cmpl $0xff, 0x1d8(%rsp)
ja 0x9f2b
cmpl $0xff, 0x1dc(%rsp)
ja 0x9f2b
cmpl $0xff, 0x1e0(%rsp)
ja 0x9f2b
cmpl $0xff, 0x1e4(%rsp)
ja 0x9f2b
leaq 0x54b85(%rip), %rcx     # 0x5e7b4
leaq 0x2b8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0xcdb2
testl %eax, %eax
jne 0x9f2b
movb 0x1d8(%rsp), %al
movq 0x2b8(%rsp), %rdi
movb %al, 0x8(%rdi)
movb 0x1dc(%rsp), %al
movb %al, 0x9(%rdi)
movb 0x1e0(%rsp), %al
movb %al, 0xa(%rdi)
movb 0x1e4(%rsp), %al
movb %al, 0xb(%rdi)
callq 0x4657
andl $0x0, 0x278(%rbx)
cmpl $0x0, 0x1e8(%rsp)
je 0x9e11
pushq $0x76
popq %rax
cmpl $0xffff, 0x1ec(%rsp) # imm = 0xFFFF
ja 0x9f2b
cmpl $0xffff, 0x1f0(%rsp) # imm = 0xFFFF
ja 0x9f2b
cmpl $0xffff, 0x1f4(%rsp) # imm = 0xFFFF
ja 0x9f2b
cmpl $0xffff, 0x1f8(%rsp) # imm = 0xFFFF
ja 0x9f2b
cmpl $0xffff, 0x1fc(%rsp) # imm = 0xFFFF
ja 0x9f2b
cmpl $0xffff, 0x200(%rsp) # imm = 0xFFFF
ja 0x9f2b
cmpl $0xffff, 0x204(%rsp) # imm = 0xFFFF
ja 0x9f2b
cmpl $0xffff, 0x208(%rsp) # imm = 0xFFFF
ja 0x9f2b
leaq 0x54a91(%rip), %rcx     # 0x5e7b9
leaq 0x2b8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
pushq $0x18
popq %rdx
callq 0xcdb2
testl %eax, %eax
jne 0x9f2b
movb 0x1ed(%rsp), %al
movq 0x2b8(%rsp), %rdi
movb %al, 0x8(%rdi)
movb 0x1ec(%rsp), %al
movb %al, 0x9(%rdi)
movb 0x1f1(%rsp), %al
movb %al, 0xa(%rdi)
movb 0x1f0(%rsp), %al
movb %al, 0xb(%rdi)
movb 0x1f5(%rsp), %al
movb %al, 0xc(%rdi)
movb 0x1f4(%rsp), %al
movb %al, 0xd(%rdi)
movb 0x1f9(%rsp), %al
movb %al, 0xe(%rdi)
movb 0x1f8(%rsp), %al
movb %al, 0xf(%rdi)
movb 0x1fd(%rsp), %al
movb %al, 0x10(%rdi)
movb 0x1fc(%rsp), %al
movb %al, 0x11(%rdi)
movb 0x201(%rsp), %al
movb %al, 0x12(%rdi)
movb 0x200(%rsp), %al
movb %al, 0x13(%rdi)
movb 0x205(%rsp), %al
movb %al, 0x14(%rdi)
movb 0x204(%rsp), %al
movb %al, 0x15(%rdi)
movb 0x209(%rsp), %al
movb %al, 0x16(%rdi)
movb 0x208(%rsp), %al
movb %al, 0x17(%rdi)
movl 0x20c(%rsp), %eax
bswapl %eax
movl %eax, 0x18(%rdi)
movl 0x210(%rsp), %eax
bswapl %eax
movl %eax, 0x1c(%rdi)
callq 0x4657
andl $0x0, 0x278(%rbx)
cmpl $0x0, 0x214(%rsp)
je 0x9e6b
leaq 0x5499c(%rip), %rcx     # 0x5e7be
leaq 0x2b8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
pushq $0x8
popq %rdx
callq 0xcdb2
testl %eax, %eax
jne 0x9f2b
movq 0x2b8(%rsp), %rdi
movl 0x218(%rsp), %eax
bswapl %eax
movl %eax, 0x8(%rdi)
movl 0x21c(%rsp), %eax
bswapl %eax
movl %eax, 0xc(%rdi)
callq 0x4657
andl $0x0, 0x278(%rbx)
cmpl $0x0, 0x1bc(%rsp)
je 0xa04b
andq $0x0, 0x2b8(%rsp)
andq $0x0, 0x98(%rsp)
andq $0x0, 0x268(%rsp)
movq 0x1c0(%rsp), %rdi
callq 0x45e5
movq %rax, %r12
addq $-0x50, %rax
cmpq $-0x50, %rax
ja 0x9fd0
movl $0x59, 0x278(%rbx)
jmp 0x93d1
movl $0x64, 0x278(%rbx)
jmp 0x93d1
movq %r12, 0x8(%rsp)
movl %r15d, %eax
movl %r14d, %r12d
imulq %rax, %r12
movq %r13, %rdi
callq 0x4b00
movl %eax, %r13d
imulq %r12, %r13
addq $0x7, %r13
movq %r13, %rdi
shrq $0x3, %rdi
callq 0x2280
movq %rax, %r12
testq %rax, %rax
setne %al
cmpq $0x8, %r13
setb %cl
orb %al, %cl
jne 0x9f36
movl $0x53, 0x278(%rbx)
jmp 0x9f67
cmpl $0x1, 0x80(%rbx)
pushq $0x66
popq %rax
sbbl $0x0, %eax
movl %eax, 0x278(%rbx)
jmp 0x93d1
cmpl $0x0, 0x278(%rbx)
jne 0x9f67
movq %r12, %rdi
movq %rbp, %rsi
leaq 0xd0(%rsp), %rdx
movq 0x30(%rsp), %rcx
movl %r15d, %r8d
movl %r14d, %r9d
callq 0x5390
movl %eax, 0x278(%rbx)
testl %eax, %eax
je 0x9f83
movq %r12, %rdi
callq 0x2260
jmp 0x93d1
movl $0x53, 0x278(%rbx)
jmp 0x93d1
subq $0x8, %rsp
leaq 0x48(%rsp), %rdi
leaq 0x78(%rsp), %rsi
leaq 0xc8(%rsp), %r9
movq %r12, %rdx
movl %r15d, %ecx
movl %r14d, %r8d
movq 0x10(%rsp), %r13
pushq %r13
callq 0xae0f
popq %rcx
popq %rdx
movl %eax, %ebp
movl %eax, 0x278(%rbx)
movq %r12, %rdi
movq %r13, %r12
callq 0x2260
testl %ebp, %ebp
jne 0x93d1
jmp 0x9ac0
movq 0x1c8(%rsp), %rdx
movl 0x1d0(%rsp), %ecx
leaq 0x98(%rsp), %rdi
leaq 0x268(%rsp), %rsi
movq 0x8(%rsp), %r8
callq 0xb81a
testl %eax, %eax
jne 0xa02e
movq 0x268(%rsp), %rax
leaq (%r12,%rax), %rdx
addq $0x2, %rdx
leaq 0x5479b(%rip), %rcx     # 0x5e7af
leaq 0x2b8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xcdb2
testl %eax, %eax
je 0xa23e
movl %eax, %ebp
movq 0x98(%rsp), %rdi
callq 0x2260
movl %ebp, 0x278(%rbx)
testl %ebp, %ebp
jne 0x93d1
cmpl $0x0, 0x1b4(%rsp)
je 0xa088
movb 0x1b8(%rsp), %al
leaq 0x2b8(%rsp), %rcx
movb %al, (%rcx)
leaq 0x5473d(%rip), %rdx     # 0x5e7aa
leaq 0x10(%rsp), %rdi
pushq $0x1
popq %rsi
callq 0x4924
movl %eax, 0x278(%rbx)
testl %eax, %eax
jne 0x93d1
cmpl $0x0, 0x188(%rsp)
je 0xa0d6
leaq 0x54707(%rip), %rcx     # 0x5e7a0
leaq 0x2b8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0xcdb2
testl %eax, %eax
jne 0x9f2b
movq 0x2b8(%rsp), %rdi
movl 0x18c(%rsp), %eax
bswapl %eax
movl %eax, 0x8(%rdi)
callq 0x4657
andl $0x0, 0x278(%rbx)
cmpl $0x0, 0x190(%rsp)
je 0xa17c
leaq 0x546ba(%rip), %rcx     # 0x5e7a5
leaq 0x2b8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
pushq $0x20
popq %rdx
callq 0xcdb2
testl %eax, %eax
jne 0x9f2b
movq 0x2b8(%rsp), %rdi
movl 0x194(%rsp), %eax
bswapl %eax
movl %eax, 0x8(%rdi)
movl 0x198(%rsp), %eax
bswapl %eax
movl %eax, 0xc(%rdi)
movl 0x19c(%rsp), %eax
bswapl %eax
movl %eax, 0x10(%rdi)
movl 0x1a0(%rsp), %eax
bswapl %eax
movl %eax, 0x14(%rdi)
movl 0x1a4(%rsp), %eax
bswapl %eax
movl %eax, 0x18(%rdi)
movl 0x1a8(%rsp), %eax
bswapl %eax
movl %eax, 0x1c(%rdi)
movl 0x1ac(%rsp), %eax
bswapl %eax
movl %eax, 0x20(%rdi)
movl 0x1b0(%rsp), %eax
bswapl %eax
movl %eax, 0x24(%rdi)
callq 0x4657
andl $0x0, 0x278(%rbx)
cmpl $0x0, 0x230(%rbx)
je 0xa441
movl 0xd0(%rsp), %ecx
pushq $0x73
popq %rax
cmpl $0x3, %ecx
jne 0xa28d
andq $0x0, 0x2b8(%rsp)
movl 0x224(%rsp), %ecx
testl %ecx, %ecx
je 0x9f2b
movl 0x228(%rsp), %edx
testl %edx, %edx
je 0x9f2b
movl 0x22c(%rsp), %esi
testl %esi, %esi
je 0x9f2b
movl 0x4(%rsp), %edi
cmpl %edi, %ecx
seta %cl
cmpl %edi, %edx
seta %dl
orb %cl, %dl
cmpl %edi, %esi
seta %cl
orb %dl, %cl
jne 0x9f2b
leaq 0x545d2(%rip), %rcx     # 0x5e7c8
leaq 0x2b8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
pushq $0x3
popq %rdx
callq 0xcdb2
testl %eax, %eax
jne 0x9f2b
movb 0x224(%rsp), %al
movq 0x2b8(%rsp), %rdi
movb %al, 0x8(%rdi)
movb 0x228(%rsp), %al
movb %al, 0x9(%rdi)
movb 0x22c(%rsp), %al
movb %al, 0xa(%rdi)
jmp 0xa435
movq 0x2b8(%rsp), %r13
leaq 0x8(%r13), %rdi
movq 0x1c0(%rsp), %rsi
movq %r12, %rdx
callq 0x4a08
andw $0x0, 0x8(%r13,%r12)
leaq (%r12,%r13), %rdi
addq $0xa, %rdi
movq 0x98(%rsp), %rsi
movq 0x268(%rsp), %rdx
callq 0x4a08
movq %r13, %rdi
callq 0x4657
xorl %ebp, %ebp
jmp 0xa030
movl 0xd4(%rsp), %edx
movl %edx, 0x4(%rsp)
andq $0x0, 0x2b8(%rsp)
cmpl $0x6, %ecx
ja 0xa43a
movl %ecx, %ecx
leaq 0x51eed(%rip), %rdx     # 0x5c1a0
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movl 0x224(%rsp), %ecx
decl %ecx
cmpl 0x4(%rsp), %ecx
jae 0x9f2b
leaq 0x544f2(%rip), %rcx     # 0x5e7c8
leaq 0x2b8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0xcdb2
testl %eax, %eax
jne 0x9f2b
movb 0x224(%rsp), %al
movq 0x2b8(%rsp), %rdi
movb %al, 0x8(%rdi)
jmp 0xa435
movl 0x224(%rsp), %ecx
testl %ecx, %ecx
je 0x9f2b
movl 0x230(%rsp), %edx
testl %edx, %edx
je 0x9f2b
movl 0x4(%rsp), %esi
cmpl %esi, %ecx
seta %cl
cmpl %esi, %edx
seta %dl
orb %cl, %dl
jne 0x9f2b
leaq 0x54483(%rip), %rcx     # 0x5e7c8
leaq 0x2b8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0xcdb2
testl %eax, %eax
jne 0x9f2b
movb 0x224(%rsp), %al
movq 0x2b8(%rsp), %rdi
movb %al, 0x8(%rdi)
movb 0x230(%rsp), %al
movb %al, 0x9(%rdi)
jmp 0xa435
movl 0x224(%rsp), %ecx
testl %ecx, %ecx
je 0x9f2b
movl 0x228(%rsp), %edx
testl %edx, %edx
je 0x9f2b
movl 0x22c(%rsp), %esi
testl %esi, %esi
je 0x9f2b
cmpl 0x4(%rsp), %ecx
ja 0x9f2b
cmpl 0x4(%rsp), %edx
ja 0x9f2b
cmpl 0x4(%rsp), %esi
ja 0x9f2b
movl 0x230(%rsp), %ecx
decl %ecx
cmpl 0x4(%rsp), %ecx
jae 0x9f2b
leaq 0x543e0(%rip), %rcx     # 0x5e7c8
leaq 0x2b8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0xcdb2
testl %eax, %eax
jne 0x9f2b
movb 0x224(%rsp), %al
movq 0x2b8(%rsp), %rdi
movb %al, 0x8(%rdi)
movb 0x228(%rsp), %al
movb %al, 0x9(%rdi)
movb 0x22c(%rsp), %al
movb %al, 0xa(%rdi)
movb 0x230(%rsp), %al
movb %al, 0xb(%rdi)
callq 0x4657
andl $0x0, 0x278(%rbx)
cmpl $0x0, 0x148(%rsp)
je 0xa479
movl 0x158(%rsp), %esi
movq 0x150(%rsp), %rcx
leaq 0x54362(%rip), %rdx     # 0x5e7c3
leaq 0x10(%rsp), %rdi
callq 0x4924
movl %eax, 0x278(%rbx)
testl %eax, %eax
jne 0x93d1
movl 0xd0(%rsp), %eax
cmpl $0x3, %eax
jne 0xa4ac
leaq 0x10(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0xb378
movl %eax, 0x278(%rbx)
testl %eax, %eax
jne 0x93d1
movl 0xd0(%rsp), %eax
cmpl $0x0, 0x98(%rbx)
je 0xa4e6
movl %eax, %ecx
andl $-0x5, %ecx
cmpl $0x2, %ecx
jne 0xa4e6
leaq 0x10(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0xb378
movl %eax, 0x278(%rbx)
testl %eax, %eax
jne 0x93d1
movl 0xd0(%rsp), %eax
andq $0x0, 0x2b8(%rsp)
testl %eax, %eax
je 0xa5ed
cmpl $0x2, %eax
je 0xa575
cmpl $0x3, %eax
jne 0xa643
movq 0xd8(%rsp), %rax
movq 0xe0(%rsp), %rcx
movq %rcx, %r12
subq $0x1, %rcx
jb 0xa643
cmpb $-0x1, 0x3(%rax,%rcx,4)
je 0xa515
leaq 0x5424d(%rip), %rcx     # 0x5e77d
leaq 0x2b8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movq %r12, %rdx
callq 0xcdb2
testl %eax, %eax
jne 0x9f2b
movq 0x2b8(%rsp), %rdi
xorl %eax, %eax
cmpq %rax, %r12
je 0xa639
movq 0xd8(%rsp), %rcx
movb 0x3(%rcx,%rax,4), %cl
movb %cl, 0x8(%rdi,%rax)
incq %rax
jmp 0xa557
cmpl $0x0, 0xe8(%rsp)
je 0xa643
leaq 0x541f3(%rip), %rcx     # 0x5e77d
leaq 0x2b8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
pushq $0x6
popq %rdx
callq 0xcdb2
testl %eax, %eax
jne 0x9f2b
movb 0xed(%rsp), %al
movq 0x2b8(%rsp), %rdi
movb %al, 0x8(%rdi)
movb 0xec(%rsp), %al
movb %al, 0x9(%rdi)
movb 0xf1(%rsp), %al
movb %al, 0xa(%rdi)
movb 0xf0(%rsp), %al
movb %al, 0xb(%rdi)
movb 0xf5(%rsp), %al
movb %al, 0xc(%rdi)
movb 0xf4(%rsp), %al
movb %al, 0xd(%rdi)
jmp 0xa63e
cmpl $0x0, 0xe8(%rsp)
je 0xa643
leaq 0x5417f(%rip), %rcx     # 0x5e77d
leaq 0x2b8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0xcdb2
testl %eax, %eax
jne 0x9f2b
movb 0xed(%rsp), %al
movq 0x2b8(%rsp), %rdi
movb %al, 0x8(%rdi)
movb 0xec(%rsp), %al
movb %al, 0x9(%rdi)
jmp 0xa63e
testq %rdi, %rdi
je 0xa643
callq 0x4657
andl $0x0, 0x278(%rbx)
cmpl $0x0, 0xf8(%rsp)
je 0xa773
andq $0x0, 0x2b8(%rsp)
movl 0xd0(%rsp), %eax
cmpq $0x6, %rax
ja 0xa76c
leaq 0x51b43(%rip), %rcx     # 0x5c1bc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x540f9(%rip), %rcx     # 0x5e782
leaq 0x2b8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0xcdb2
testl %eax, %eax
jne 0x9f2b
movb 0xfd(%rsp), %al
movq 0x2b8(%rsp), %rdi
movb %al, 0x8(%rdi)
movb 0xfc(%rsp), %al
movb %al, 0x9(%rdi)
jmp 0xa767
leaq 0x540b4(%rip), %rcx     # 0x5e782
leaq 0x2b8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
pushq $0x6
popq %rdx
callq 0xcdb2
testl %eax, %eax
jne 0x9f2b
movb 0xfd(%rsp), %al
movq 0x2b8(%rsp), %rdi
movb %al, 0x8(%rdi)
movb 0xfc(%rsp), %al
movb %al, 0x9(%rdi)
movb 0x101(%rsp), %al
movb %al, 0xa(%rdi)
movb 0x100(%rsp), %al
movb %al, 0xb(%rdi)
movb 0x105(%rsp), %al
movb %al, 0xc(%rdi)
movb 0x104(%rsp), %al
movb %al, 0xd(%rdi)
jmp 0xa767
leaq 0x5404a(%rip), %rcx     # 0x5e782
leaq 0x2b8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0xcdb2
testl %eax, %eax
jne 0x9f2b
movb 0xfc(%rsp), %al
movq 0x2b8(%rsp), %rdi
movb %al, 0x8(%rdi)
callq 0x4657
andl $0x0, 0x278(%rbx)
cmpl $0x0, 0x178(%rsp)
je 0xa7d7
leaq 0x54017(%rip), %rcx     # 0x5e79b
leaq 0x2b8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
pushq $0x9
popq %rdx
callq 0xcdb2
testl %eax, %eax
jne 0x9f2b
movq 0x2b8(%rsp), %rdi
movl 0x17c(%rsp), %eax
bswapl %eax
movl %eax, 0x8(%rdi)
movl 0x180(%rsp), %eax
bswapl %eax
movl %eax, 0xc(%rdi)
movb 0x184(%rsp), %al
movb %al, 0x10(%rdi)
callq 0x4657
andl $0x0, 0x278(%rbx)
movq 0x240(%rsp), %rsi
testq %rsi, %rsi
movq 0x8(%rsp), %r12
je 0xa809
movq 0x258(%rsp), %rdx
leaq 0x10(%rsp), %rdi
callq 0xb313
movl %eax, 0x278(%rbx)
testl %eax, %eax
jne 0x93d1
movq 0x40(%rsp), %rdx
movq 0x70(%rsp), %rcx
leaq 0x2b8(%rsp), %rdi
andq $0x0, (%rdi)
leaq 0x98(%rsp), %rsi
andq $0x0, (%rsi)
movq %r12, %r8
callq 0xb81a
movl %eax, %ebp
xorl %r12d, %r12d
leaq 0x55383(%rip), %r14     # 0x5fbc2
leaq 0x10(%rsp), %r15
xorl %r13d, %r13d
testl %ebp, %ebp
jne 0xa8a2
movq 0x98(%rsp), %rsi
addq %r12, %rsi
movq %rsi, %rax
shrq $0x1f, %rax
movq 0x2b8(%rsp), %rcx
addq %r13, %rcx
testq %rax, %rax
je 0xa88f
movl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
movq %r15, %rdi
movq %r14, %rdx
callq 0x4924
movl %eax, %ebp
addq $0x7fffffff, %r13       # imm = 0x7FFFFFFF
addq $-0x7fffffff, %r12      # imm = 0x80000001
jmp 0xa847
leaq 0x5532c(%rip), %rdx     # 0x5fbc2
leaq 0x10(%rsp), %rdi
callq 0x4924
movl %eax, %ebp
movq 0x2b8(%rsp), %rdi
callq 0x2260
movl %ebp, 0x278(%rbx)
testl %ebp, %ebp
jne 0x93d1
cmpl $0x0, 0x15c(%rsp)
je 0xa945
leaq 0x53ec8(%rip), %rcx     # 0x5e796
leaq 0x2b8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
pushq $0x7
popq %rdx
callq 0xcdb2
testl %eax, %eax
jne 0x9f2b
movb 0x161(%rsp), %al
movq 0x2b8(%rsp), %rdi
movb %al, 0x8(%rdi)
movb 0x160(%rsp), %al
movb %al, 0x9(%rdi)
movb 0x164(%rsp), %al
movb %al, 0xa(%rdi)
movb 0x168(%rsp), %al
movb %al, 0xb(%rdi)
movb 0x16c(%rsp), %al
movb %al, 0xc(%rdi)
movb 0x170(%rsp), %al
movb %al, 0xd(%rdi)
movb 0x174(%rsp), %al
movb %al, 0xe(%rdi)
callq 0x4657
andl $0x0, 0x278(%rbx)
xorl %r14d, %r14d
cmpq 0x108(%rsp), %r14
je 0xaab4
movq 0x110(%rsp), %rax
movq (%rax,%r14,8), %r12
movq %r12, %rdi
callq 0x45e5
cmpq $0x50, %rax
jae 0xad64
testq %rax, %rax
je 0xad73
cmpl $0x0, 0xa0(%rbx)
movq 0x118(%rsp), %rax
movq (%rax,%r14,8), %rbp
je 0xaa44
andq $0x0, 0x2b8(%rsp)
andq $0x0, 0x98(%rsp)
andq $0x0, 0x268(%rsp)
movq %rbp, %rdi
callq 0x45e5
movq %rax, %r13
movq %r12, %rdi
callq 0x45e5
movq %rax, %r15
addq $-0x50, %rax
cmpq $-0x50, %rax
jbe 0x9eb2
leaq 0x98(%rsp), %rdi
leaq 0x268(%rsp), %rsi
movq %rbp, %rdx
movq %r13, %rcx
movq 0x8(%rsp), %r8
callq 0xb81a
testl %eax, %eax
jne 0xaa26
movq 0x268(%rsp), %rax
leaq (%r15,%rax), %rdx
addq $0x2, %rdx
leaq 0x2b8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x53d6f(%rip), %rcx     # 0x5e78c
callq 0xcdb2
testl %eax, %eax
je 0xaa6a
movl %eax, %ebp
movq 0x98(%rsp), %rdi
callq 0x2260
movl %ebp, 0x278(%rbx)
testl %ebp, %ebp
je 0xaa62
jmp 0x93d1
leaq 0x10(%rsp), %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0xb3fb
movl %eax, 0x278(%rbx)
testl %eax, %eax
jne 0x93d1
incq %r14
jmp 0xa948
movq 0x2b8(%rsp), %r13
leaq 0x8(%r13), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x4a08
andw $0x0, 0x8(%r13,%r15)
leaq (%r15,%r13), %rdi
addq $0xa, %rdi
movq 0x98(%rsp), %rsi
movq 0x268(%rsp), %rdx
callq 0x4a08
movq %r13, %rdi
callq 0x4657
xorl %ebp, %ebp
jmp 0xaa28
cmpl $0x0, 0x9c(%rbx)
je 0xab2a
movq 0x110(%rsp), %rax
xorl %ecx, %ecx
cmpq %rcx, %r14
je 0xab04
movq (%rax,%rcx,8), %rdx
cmpb $0x4c, (%rdx)
jne 0xaaff
cmpb $0x6f, 0x1(%rdx)
jne 0xaaff
cmpb $0x64, 0x2(%rdx)
jne 0xaaff
cmpb $0x65, 0x3(%rdx)
jne 0xaaff
cmpb $0x50, 0x4(%rdx)
jne 0xaaff
cmpb $0x4e, 0x5(%rdx)
jne 0xaaff
cmpb $0x47, 0x6(%rdx)
jne 0xaaff
cmpb $0x0, 0x7(%rdx)
je 0xab2a
incq %rcx
jmp 0xaac7
movq 0x986ed(%rip), %rdx     # 0xa31f8
leaq 0x53cbb(%rip), %rsi     # 0x5e7cd
leaq 0x10(%rsp), %rdi
callq 0xb3fb
movl %eax, 0x278(%rbx)
testl %eax, %eax
jne 0x93d1
xorl %r13d, %r13d
cmpq 0x120(%rsp), %r13
je 0xad82
movq 0x128(%rsp), %rax
movq (%rax,%r13,8), %rdi
movq %rdi, 0x38(%rsp)
callq 0x45e5
cmpq $0x50, %rax
jae 0xad64
testq %rax, %rax
je 0xad73
movl 0xa0(%rbx), %eax
movl %eax, 0x4(%rsp)
movq 0x130(%rsp), %rax
movq 0x138(%rsp), %rcx
movq (%rax,%r13,8), %r14
movq (%rcx,%r13,8), %r12
movq 0x140(%rsp), %rax
movq (%rax,%r13,8), %rdi
andq $0x0, 0x2b8(%rsp)
andq $0x0, 0x98(%rsp)
andq $0x0, 0x268(%rsp)
movq %rdi, 0x88(%rsp)
callq 0x45e5
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rdi
callq 0x45e5
movq %rax, %rbp
movq %r14, 0x290(%rsp)
movq %r14, %rdi
callq 0x45e5
movq %rax, 0x90(%rsp)
movq %r12, 0x298(%rsp)
movq %r12, %rdi
callq 0x45e5
movq %rax, %r14
leaq -0x50(%rbp), %rax
cmpq $-0x50, %rax
jbe 0x9eb2
movq 0x30(%rsp), %rax
cmpl $0x0, 0x4(%rsp)
je 0xac44
leaq 0x98(%rsp), %rdi
leaq 0x268(%rsp), %rsi
movq 0x88(%rsp), %rdx
movq 0x30(%rsp), %rcx
movq 0x8(%rsp), %r8
callq 0xb81a
testl %eax, %eax
jne 0xac77
movq 0x268(%rsp), %rax
movq 0x90(%rsp), %rcx
addq %rbp, %rcx
addq %r14, %rcx
leaq (%rax,%rcx), %rdx
addq $0x5, %rdx
leaq 0x2b8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x53b23(%rip), %rcx     # 0x5e791
callq 0xcdb2
testl %eax, %eax
je 0xac7f
movl %eax, %r12d
jmp 0xad3f
movq 0x2b8(%rsp), %r15
leaq 0x8(%r15), %rdi
movq 0x38(%rsp), %rsi
movq %rbp, %rdx
callq 0x4a08
cmpl $0x0, 0x4(%rsp)
movl $0x0, %eax
movb %al, 0x8(%r15,%rbp)
setne 0x9(%r15,%rbp)
movb %al, 0xa(%r15,%rbp)
leaq 0xb(%r15,%rbp), %rdi
movq 0x290(%rsp), %rsi
movq 0x90(%rsp), %r12
movq %r12, %rdx
callq 0x4a08
leaq (%r12,%rbp), %rax
addq $0xb, %rax
leaq (%r15,%rax), %r12
movq %r15, %rbp
leaq (%r15,%rax), %rdi
incq %rdi
xorl %r15d, %r15d
movb %r15b, -0x1(%rdi)
movq 0x298(%rsp), %rsi
movq %r14, %rdx
callq 0x4a08
movb %r15b, 0x1(%r14,%r12)
leaq (%r14,%r12), %rdi
addq $0x2, %rdi
cmpl $0x0, 0x4(%rsp)
je 0xad22
movq 0x98(%rsp), %rsi
movq 0x268(%rsp), %rdx
jmp 0xad2f
movq 0x88(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq 0x4a08
movq %rbp, %rdi
callq 0x4657
xorl %r12d, %r12d
movq 0x98(%rsp), %rdi
callq 0x2260
movl %r12d, 0x278(%rbx)
incq %r13
testl %r12d, %r12d
je 0xab2d
jmp 0x93d1
movl $0x42, 0x278(%rbx)
jmp 0x93d1
movl $0x43, 0x278(%rbx)
jmp 0x93d1
movq 0x248(%rsp), %rsi
testq %rsi, %rsi
je 0xadaf
movq 0x260(%rsp), %rdx
leaq 0x10(%rsp), %rdi
callq 0xb313
movl %eax, 0x278(%rbx)
testl %eax, %eax
jne 0x93d1
leaq 0x56246(%rip), %rdx     # 0x60ffc
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
xorl %ecx, %ecx
callq 0x4924
jmp 0x9f2b