// File: /workspace/github_c_makefile_star2_O2/aap[P]pdp11/lodepng.c
// Function: lodepng_encode
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.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;
    }
#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 $0x678, %rsp            # imm = 0x678
movq %rdx, %r13
movq %r9, %rbx
movq %rsi, %r14
movl %r8d, (%rsp)
movl %ecx, 0x10(%rsp)
movq %rdi, %r15
andq $0x0, 0x48(%rsp)
andq $0x0, 0x78(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
andq $0x0, 0x40(%rsp)
leaq 0xc0(%rsp), %rdi
callq 0x90d7
xorps %xmm0, %xmm0
movups %xmm0, 0x68(%rsp)
movabsq $0x800000006, %rax      # imm = 0x800000006
movq %rax, 0x50(%rsp)
movups %xmm0, 0x58(%rsp)
andq $0x0, (%r15)
andq $0x0, (%r14)
andl $0x0, 0x218(%rbx)
movl 0xe0(%rbx), %edi
cmpl $0x3, %edi
je 0xcfa3
cmpl $0x0, 0x98(%rbx)
je 0xcfc5
movq $-0x101, %rax           # imm = 0xFEFF
movq 0xf0(%rbx), %rcx
addq %rax, %rcx
cmpq %rax, %rcx
ja 0xcfc5
movl $0x44, 0x218(%rbx)
jmp 0xd01c
cmpl $0x3, 0x50(%rbx)
jb 0xcfd7
movl $0x3d, 0x218(%rbx)
jmp 0xd01c
cmpl $0x2, 0xd8(%rbx)
jb 0xcfec
movl $0x47, 0x218(%rbx)
jmp 0xd01c
movl 0xe4(%rbx), %esi
callq 0xb061
movl %eax, 0x218(%rbx)
testl %eax, %eax
jne 0xd01c
movl 0xa8(%rbx), %edi
movl 0xac(%rbx), %esi
callq 0xb061
movl %eax, 0x218(%rbx)
testl %eax, %eax
je 0xd065
leaq 0xc0(%rsp), %rdi
callq 0x917a
movq 0x48(%rsp), %rdi
callq 0x2030
leaq 0x50(%rsp), %rdi
callq 0x8a62
movq 0x30(%rsp), %rax
movq %rax, (%r15)
movq 0x38(%rsp), %rax
movq %rax, (%r14)
movl 0x218(%rbx), %eax
addq $0x678, %rsp            # imm = 0x678
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 0x91cf
cmpl $0x0, 0x80(%rbx)
pushq $0x8
popq %rax
movl %eax, 0x8(%rsp)
movq %r12, 0x28(%rsp)
je 0xd64a
andq $0x0, 0x258(%rsp)
andq $0x0, 0x248(%rsp)
andq $0x0, 0x24e(%rsp)
movl $0x1, 0x660(%rsp)
andq $0x0, 0x668(%rsp)
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, 0x670(%rsp)
cmpl $0x0, 0x1b8(%rbx)
je 0xd124
movq 0x1c8(%rbx), %rbp
movl 0x1d0(%rbx), %r12d
movq %rbp, %rdi
movl %r12d, %esi
callq 0xe72a
testl %eax, %eax
je 0xd108
andl $0x0, 0x670(%rsp)
movq %rbp, %rdi
movl %r12d, %esi
callq 0xe74d
testl %eax, %eax
movq 0x28(%rsp), %r12
je 0xd124
andl $0x0, 0x674(%rsp)
leaq 0x248(%rsp), %rdi
movq %r13, %rsi
movl 0x10(%rsp), %edx
movl (%rsp), %ecx
movq %r12, %r8
callq 0xa5bc
movl %eax, 0x218(%rbx)
testl %eax, %eax
jne 0xd01c
leaq 0xe0(%rbx), %r11
cmpl $0x0, 0x108(%rbx)
movq %r11, 0x18(%rsp)
je 0xd262
leaq 0x84(%rsp), %rax
andl $0x0, (%rax)
movq %rax, %rdi
leaq 0x244(%rsp), %rbp
andl $0x0, (%rbp)
leaq 0x240(%rsp), %r12
andl $0x0, (%r12)
xorps %xmm0, %xmm0
leaq 0x208(%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 %rbp, %rsi
movq %r12, %rdx
pushq %r11
pushq %rax
callq 0xa415
popq %rcx
popq %rdx
leaq 0x84(%rsp), %rax
movl (%rax), %edx
movl (%rbp), %ecx
movl (%r12), %eax
leaq 0x98(%rsp), %rbp
movb %dh, 0x88(%rsp)
leaq 0x88(%rsp), %rsi
movb %dl, 0x1(%rsi)
movb %ch, 0x8a(%rsp)
movb %cl, 0x3(%rsi)
movb %ah, 0x8c(%rsp)
movb %al, 0x5(%rsi)
orw $-0x1, 0x6(%rsi)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rbp)
movups %xmm0, 0x8(%rbp)
movabsq $0x1000000006, %rax     # imm = 0x1000000006
movq %rax, (%rbp)
leaq 0x248(%rsp), %rdi
pushq $0x1
popq %rcx
movl %ecx, %edx
movq %rbp, %r8
callq 0xa5bc
movl %eax, %r12d
movq %rbp, %rdi
callq 0x8a62
movq 0x18(%rsp), %r11
movl %r12d, 0x218(%rbx)
testl %r12d, %r12d
jne 0xd01c
movq 0x668(%rsp), %rsi
movl 0x24c(%rsp), %eax
movl 0x660(%rsp), %ecx
andl $0x0, 0x68(%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 0x248(%rsp), %edi
testb %dl, %dl
cmovnel %ecx, %r8d
testl %edi, %edi
sete %cl
cmpl $0x0, 0x674(%rsp)
movl 0x258(%rsp), %r9d
setne %dil
andb %cl, %dil
cmpl $0x8, %r8d
movl %r10d, %ecx
cmovael %r8d, %ecx
testb %dil, %dil
cmovnel %r8d, %ecx
movl 0x25c(%rsp), %r8d
cmpq $0x3, %r8
jae 0xd2e8
pushq $0x1
jmp 0xd2f0
cmpl $0x5, %r8d
jae 0xd2f3
pushq $0x2
popq %rbp
jmp 0xd306
xorl %r10d, %r10d
cmpl $0x11, %r8d
setae %r10b
leal 0x4(,%r10,4), %ebp
testl %r9d, %r9d
sete %r9b
andb %r9b, %dl
cmpl %ebp, %ecx
setbe %r9b
cmpl $0x0, 0x670(%rsp)
je 0xd3a7
movl %edi, %r10d
andb %dl, %r10b
andb %r9b, %r10b
jne 0xd3a7
leal -0x101(%r8), %r9d
cmpl $0xffffff00, %r9d       # imm = 0xFFFFFF00
jb 0xd3a7
addq %r8, %r8
cmpq %r8, %rsi
jb 0xd3a7
cmpl $0x8, %ecx
ja 0xd3a7
movl %ebp, 0x20(%rsp)
leaq 0x50(%rsp), %rbp
movq %rbp, %rdi
callq 0x8a62
xorl %r12d, %r12d
movl 0x25c(%rsp), %eax
cmpq %rax, %r12
je 0xd41d
movzbl 0x260(%rsp,%r12,4), %esi
movzbl 0x261(%rsp,%r12,4), %edx
movzbl 0x262(%rsp,%r12,4), %ecx
movzbl 0x263(%rsp,%r12,4), %r8d
movq %rbp, %rdi
callq 0x8b03
incq %r12
testl %eax, %eax
je 0xd360
movl %eax, %ebp
jmp 0xd41f
cmpq $0x11, %rsi
setae %sil
movl %ecx, 0x54(%rsp)
xorb $0x1, %dil
movzbl %dil, %edi
leal 0x4(,%rdi,2), %r8d
addl %edi, %edi
testb %dl, %dl
cmovel %r8d, %edi
movl %edi, 0x50(%rsp)
testl %eax, %eax
setne %al
andb %sil, %al
cmpb $0x1, %al
jne 0xd414
pushq $-0x1
popq %rax
shll %cl, %eax
notl %eax
movzwl 0x250(%rsp), %ecx
andl %eax, %ecx
movl %ecx, 0x6c(%rsp)
movzwl 0x252(%rsp), %ecx
andl %eax, %ecx
movl %ecx, 0x70(%rsp)
movzwl 0x254(%rsp), %ecx
andl %eax, %ecx
movl %ecx, 0x74(%rsp)
movl $0x1, 0x68(%rsp)
andl $0x0, 0x218(%rbx)
jmp 0xd481
xorl %ebp, %ebp
movl $0x3, 0x50(%rsp)
movl 0x20(%rsp), %ecx
movl %ecx, 0x54(%rsp)
movq 0x28(%rsp), %rax
cmpl $0x3, (%rax)
movq 0x18(%rsp), %r11
jne 0xd473
movq 0xb8(%rbx), %rax
cmpq 0x60(%rsp), %rax
jb 0xd473
cmpl %ecx, 0xac(%rbx)
jne 0xd473
leaq 0x50(%rsp), %r12
movq %r12, %rdi
callq 0x8a62
movq %r12, %rdi
movq 0x28(%rsp), %rsi
callq 0x8a78
movq 0x18(%rsp), %r11
movl %ebp, 0x218(%rbx)
testl %ebp, %ebp
jne 0xd01c
cmpl $0x0, 0x1d4(%rbx)
je 0xd58c
movl 0x1d8(%rbx), %eax
movl 0x1dc(%rbx), %edi
cmpl %edi, %eax
movl %edi, %ecx
cmoval %eax, %ecx
movl 0x1e0(%rbx), %edx
movl 0x1e4(%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 0xd4f1
testl %edx, %edx
setne %dil
cmpl %eax, %edx
setne %dl
testb %dl, %dil
jne 0xd4f1
movq %r11, %rdx
testl %esi, %esi
sete %dil
cmpl %eax, %esi
sete %r8b
orb %dil, %r8b
movl %r8d, 0x20(%rsp)
jmp 0xd4fc
movq %r11, %rdx
movl $0x0, 0x20(%rsp)
movl 0xd0(%rsp), %edi
cmpl $0x3, %edi
sete %r9b
movl 0x50(%rsp), %r8d
cmpl $0x3, %r8d
sete %r10b
andb %r10b, %r9b
cmpl $0x2, %edi
sete %r11b
andb %r10b, %r11b
cmpl $0x9, %ecx
setb %bpl
andb %bpl, %r11b
cmpl $0x6, %edi
sete %r12b
andb %r10b, %r12b
cmpl $0x8, %esi
sete %sil
andb %bpl, %sil
andb %r12b, %sil
orb %r9b, %r11b
orb %sil, %r11b
movzbl %r11b, %esi
movl %edi, %r9d
andl $-0x5, %r9d
cmpl $0x2, %r9d
jne 0xd591
cmpl $0x10, 0xd4(%rsp)
movq %rdx, %r11
jne 0xd594
movl %r8d, %r9d
xorl %edi, %r9d
movl 0x54(%rsp), %r10d
xorl $0x8, %r10d
orl %r9d, %r10d
pushq $0x1
popq %r9
cmovnel %esi, %r9d
cmpl $0x9, %ecx
cmovbl %r9d, %esi
jmp 0xd594
pushq $0x1
popq %rsi
jmp 0xd5bc
movq %rdx, %r11
movl 0x20(%rsp), %edx
cmpl $0x3, %edi
setne %cl
cmpl $0x3, %r8d
setne %dil
andb %cl, %dil
andb %dl, %dil
cmpb $0x1, %dil
jne 0xd5bc
cmpl 0x54(%rsp), %eax
pushq $0x1
popq %rax
cmovel %eax, %esi
cmpl $0x0, 0x98(%rbx)
je 0xd5dc
testl $0xfffffffb, 0xd0(%rsp) # imm = 0xFFFFFFFB
je 0xd5dc
testl $0xfffffffb, 0x50(%rsp) # imm = 0xFFFFFFFB
je 0xd64a
testl %esi, %esi
je 0xd64a
leaq 0xd0(%rsp), %rbp
leaq 0x50(%rsp), %rsi
movq %rbp, %rdi
movq %r11, %r12
callq 0x8a78
cmpl $0x0, 0x108(%rbx)
je 0xd64a
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 %rbp
callq 0xa415
popq %rcx
popq %rdx
testl %eax, %eax
je 0xd64a
movl $0x68, 0x218(%rbx)
jmp 0xd01c
cmpl $0x0, 0x1b8(%rbx)
je 0xd69c
movq 0x1c8(%rbx), %r12
movl 0x1d0(%rbx), %ebp
movq %r12, %rdi
movl %ebp, %esi
callq 0xe72a
movl %eax, 0x18(%rsp)
movq %r12, %rdi
movl %ebp, %esi
callq 0xe74d
movl 0x18(%rsp), %ecx
orl %ecx, %eax
je 0xd864
xorl %eax, %eax
testl $0xfffffffb, 0xd0(%rsp) # imm = 0xFFFFFFFB
sete %al
cmpl %eax, %ecx
jne 0xd8c2
leaq 0x50(%rbx), %r12
leaq 0xd0(%rsp), %rbp
movq 0x28(%rsp), %rdi
movq %rbp, %rsi
callq 0x9e83
testl %eax, %eax
je 0xd873
subq $0x8, %rsp
leaq 0x50(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0xc8(%rsp), %r9
movq %r13, %rdx
movl 0x18(%rsp), %ecx
movl 0x8(%rsp), %r8d
pushq %r12
callq 0xe770
popq %rcx
popq %rdx
movl %eax, 0x218(%rbx)
testl %eax, %eax
jne 0xd01c
movabsq $0xa1a0a0d474e5089, %rax # imm = 0xA1A0A0D474E5089
movq %rax, 0x248(%rsp)
leaq 0x30(%rsp), %rdi
pushq $0x8
popq %rsi
callq 0xef73
testl %eax, %eax
je 0xd91b
movq %r12, 0x18(%rsp)
leaq 0x30(%rsp), %r12
movq (%r12), %rdi
leaq 0x248(%rsp), %rsi
pushq $0x8
popq %rdx
callq 0x8adc
andl $0x0, 0x218(%rbx)
movl 0xc8(%rsp), %eax
movl %eax, 0x28(%rsp)
movl 0xd0(%rsp), %r13d
movl 0xd4(%rsp), %ebp
leaq 0x882e(%rip), %rcx      # 0x15f94
leaq 0x248(%rsp), %rdi
pushq $0xd
popq %rdx
movq %r12, %rsi
callq 0xff7b
testl %eax, %eax
jne 0xd8cf
movq 0x248(%rsp), %rdi
movl 0x10(%rsp), %ecx
movl %ecx, %eax
shrl $0x18, %eax
movb %al, 0x8(%rdi)
movl %ecx, %eax
shrl $0x10, %eax
movb %al, 0x9(%rdi)
movb %ch, 0xa(%rdi)
movb %cl, 0xb(%rdi)
movl (%rsp), %ecx
movl %ecx, %eax
shrl $0x18, %eax
movb %al, 0xc(%rdi)
movl %ecx, %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 0x28(%rsp), %eax
movb %al, 0x14(%rdi)
callq 0x8765
andl $0x0, 0x218(%rbx)
movq 0x1d8(%rsp), %rsi
testq %rsi, %rsi
movq 0x18(%rsp), %r13
je 0xd80e
movq 0x1f0(%rsp), %rdx
leaq 0x30(%rsp), %rdi
callq 0xec59
movl %eax, 0x218(%rbx)
testl %eax, %eax
jne 0xd01c
cmpl $0x0, 0x1a8(%rsp)
je 0xd9f6
andq $0x0, 0x248(%rsp)
andq $0x0, 0x98(%rsp)
andq $0x0, 0x208(%rsp)
movq 0x1b0(%rsp), %rdi
callq 0x86f3
movq %rax, %r12
addq $-0x50, %rax
cmpq $-0x50, %rax
ja 0xd97d
movl $0x59, 0x218(%rbx)
jmp 0xd01c
movl $0x64, 0x218(%rbx)
jmp 0xd01c
movq %r12, 0x18(%rsp)
movl 0x10(%rsp), %eax
movl (%rsp), %r12d
imulq %rax, %r12
movq %rbp, %rdi
callq 0x8bd4
movl %eax, %ebp
imulq %r12, %rbp
addq $0x7, %rbp
movq %rbp, %rdi
shrq $0x3, %rdi
callq 0x21a0
movq %rax, %r12
testq %rax, %rax
setne %al
cmpq $0x8, %rbp
setb %cl
orb %al, %cl
jne 0xd8da
movl $0x53, 0x218(%rbx)
jmp 0xd90e
cmpl $0x1, 0x80(%rbx)
pushq $0x66
popq %rax
sbbl $0x0, %eax
movl %eax, 0x218(%rbx)
jmp 0xd01c
cmpl $0x0, 0x218(%rbx)
jne 0xd90e
movq %r12, %rdi
movq %r13, %rsi
leaq 0xd0(%rsp), %rdx
movq 0x28(%rsp), %rcx
movl 0x10(%rsp), %r8d
movl (%rsp), %r9d
callq 0x9372
movl %eax, 0x218(%rbx)
testl %eax, %eax
je 0xd92a
movq %r12, %rdi
callq 0x2030
jmp 0xd01c
movl $0x53, 0x218(%rbx)
jmp 0xd01c
subq $0x8, %rsp
leaq 0x50(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0xc8(%rsp), %r9
movq %r12, %rdx
movl 0x18(%rsp), %ecx
movl 0x8(%rsp), %r8d
movq 0x20(%rsp), %r13
pushq %r13
callq 0xe770
popq %rcx
popq %rdx
movl %eax, %ebp
movl %eax, 0x218(%rbx)
movq %r12, %rdi
callq 0x2030
testl %ebp, %ebp
movq %r13, %r12
jne 0xd01c
jmp 0xd6f9
movq 0x1b8(%rsp), %rdx
movl 0x1c0(%rsp), %ecx
leaq 0x98(%rsp), %rdi
leaq 0x208(%rsp), %rsi
movq %r13, %r8
callq 0x1195e
testl %eax, %eax
jne 0xd9d9
movq 0x208(%rsp), %rax
leaq (%r12,%rax), %rdx
addq $0x2, %rdx
leaq 0x8611(%rip), %rcx      # 0x15fd0
leaq 0x248(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0xff7b
testl %eax, %eax
je 0xdbe9
movl %eax, %ebp
movq 0x98(%rsp), %rdi
callq 0x2030
movl %ebp, 0x218(%rbx)
testl %ebp, %ebp
jne 0xd01c
cmpl $0x0, 0x1a0(%rsp)
je 0xda33
movb 0x1a4(%rsp), %al
leaq 0x248(%rsp), %rcx
movb %al, (%rcx)
leaq 0x85b3(%rip), %rdx      # 0x15fcb
leaq 0x30(%rsp), %rdi
pushq $0x1
popq %rsi
callq 0x89f8
movl %eax, 0x218(%rbx)
testl %eax, %eax
jne 0xd01c
cmpl $0x0, 0x174(%rsp)
je 0xda81
leaq 0x857d(%rip), %rcx      # 0x15fc1
leaq 0x248(%rsp), %rdi
leaq 0x30(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0xff7b
testl %eax, %eax
jne 0xd8cf
movq 0x248(%rsp), %rdi
movl 0x178(%rsp), %eax
bswapl %eax
movl %eax, 0x8(%rdi)
callq 0x8765
andl $0x0, 0x218(%rbx)
cmpl $0x0, 0x17c(%rsp)
je 0xdb27
leaq 0x8530(%rip), %rcx      # 0x15fc6
leaq 0x248(%rsp), %rdi
leaq 0x30(%rsp), %rsi
pushq $0x20
popq %rdx
callq 0xff7b
testl %eax, %eax
jne 0xd8cf
movq 0x248(%rsp), %rdi
movl 0x180(%rsp), %eax
bswapl %eax
movl %eax, 0x8(%rdi)
movl 0x184(%rsp), %eax
bswapl %eax
movl %eax, 0xc(%rdi)
movl 0x188(%rsp), %eax
bswapl %eax
movl %eax, 0x10(%rdi)
movl 0x18c(%rsp), %eax
bswapl %eax
movl %eax, 0x14(%rdi)
movl 0x190(%rsp), %eax
bswapl %eax
movl %eax, 0x18(%rdi)
movl 0x194(%rsp), %eax
bswapl %eax
movl %eax, 0x1c(%rdi)
movl 0x198(%rsp), %eax
bswapl %eax
movl %eax, 0x20(%rdi)
movl 0x19c(%rsp), %eax
bswapl %eax
movl %eax, 0x24(%rdi)
callq 0x8765
andl $0x0, 0x218(%rbx)
cmpl $0x0, 0x1d4(%rbx)
movl 0xd0(%rsp), %ecx
je 0xddf3
pushq $0x73
popq %rax
cmpl $0x3, %ecx
jne 0xdc38
andq $0x0, 0x248(%rsp)
movl 0x1c8(%rsp), %ecx
testl %ecx, %ecx
je 0xd8cf
movl 0x1cc(%rsp), %edx
testl %edx, %edx
je 0xd8cf
movl 0x1d0(%rsp), %esi
testl %esi, %esi
je 0xd8cf
movl 0x8(%rsp), %edi
cmpl %edi, %ecx
seta %cl
cmpl %edi, %edx
seta %dl
orb %cl, %dl
cmpl %edi, %esi
seta %cl
orb %dl, %cl
jne 0xd8cf
leaq 0x8434(%rip), %rcx      # 0x15fd5
leaq 0x248(%rsp), %rdi
leaq 0x30(%rsp), %rsi
pushq $0x3
popq %rdx
callq 0xff7b
testl %eax, %eax
jne 0xd8cf
movb 0x1c8(%rsp), %al
movq 0x248(%rsp), %rdi
movb %al, 0x8(%rdi)
movb 0x1cc(%rsp), %al
movb %al, 0x9(%rdi)
movb 0x1d0(%rsp), %al
movb %al, 0xa(%rdi)
jmp 0xdde0
movq 0x248(%rsp), %r13
leaq 0x8(%r13), %rdi
movq 0x1b0(%rsp), %rsi
movq %r12, %rdx
callq 0x8adc
andw $0x0, 0x8(%r13,%r12)
leaq (%r12,%r13), %rdi
addq $0xa, %rdi
movq 0x98(%rsp), %rsi
movq 0x208(%rsp), %rdx
callq 0x8adc
movq %r13, %rdi
callq 0x8765
xorl %ebp, %ebp
jmp 0xd9db
movl 0xd4(%rsp), %edx
movl %edx, 0x8(%rsp)
andq $0x0, 0x248(%rsp)
cmpl $0x6, %ecx
ja 0xddec
movl %ecx, %edx
leaq 0x5d82(%rip), %rsi      # 0x139e0
movslq (%rsi,%rdx,4), %rdx
addq %rsi, %rdx
jmpq *%rdx
movl 0x1c8(%rsp), %ecx
decl %ecx
cmpl 0x8(%rsp), %ecx
jae 0xd8cf
leaq 0x8354(%rip), %rcx      # 0x15fd5
leaq 0x248(%rsp), %rdi
leaq 0x30(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0xff7b
testl %eax, %eax
jne 0xd8cf
movb 0x1c8(%rsp), %al
movq 0x248(%rsp), %rdi
movb %al, 0x8(%rdi)
jmp 0xdde0
movl 0x1c8(%rsp), %ecx
testl %ecx, %ecx
je 0xd8cf
movl 0x1d4(%rsp), %edx
testl %edx, %edx
je 0xd8cf
movl 0x8(%rsp), %esi
cmpl %esi, %ecx
seta %cl
cmpl %esi, %edx
seta %dl
orb %cl, %dl
jne 0xd8cf
leaq 0x82e5(%rip), %rcx      # 0x15fd5
leaq 0x248(%rsp), %rdi
leaq 0x30(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0xff7b
testl %eax, %eax
jne 0xd8cf
movb 0x1c8(%rsp), %al
movq 0x248(%rsp), %rdi
movb %al, 0x8(%rdi)
movb 0x1d4(%rsp), %al
movb %al, 0x9(%rdi)
jmp 0xdde0
movl 0x1c8(%rsp), %ecx
testl %ecx, %ecx
je 0xd8cf
movl 0x1cc(%rsp), %edx
testl %edx, %edx
je 0xd8cf
movl 0x1d0(%rsp), %esi
testl %esi, %esi
je 0xd8cf
cmpl 0x8(%rsp), %ecx
ja 0xd8cf
cmpl 0x8(%rsp), %edx
ja 0xd8cf
cmpl 0x8(%rsp), %esi
ja 0xd8cf
movl 0x1d4(%rsp), %ecx
decl %ecx
cmpl 0x8(%rsp), %ecx
jae 0xd8cf
leaq 0x8242(%rip), %rcx      # 0x15fd5
leaq 0x248(%rsp), %rdi
leaq 0x30(%rsp), %rsi
pushq $0x4
popq %rdx
callq 0xff7b
testl %eax, %eax
jne 0xd8cf
movb 0x1c8(%rsp), %al
movq 0x248(%rsp), %rdi
movb %al, 0x8(%rdi)
movb 0x1cc(%rsp), %al
movb %al, 0x9(%rdi)
movb 0x1d0(%rsp), %al
movb %al, 0xa(%rdi)
movb 0x1d4(%rsp), %al
movb %al, 0xb(%rdi)
callq 0x8765
movl 0xd0(%rsp), %ecx
andl $0x0, 0x218(%rbx)
cmpl $0x3, %ecx
jne 0xde1f
leaq 0x30(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0xecbe
movl %eax, 0x218(%rbx)
testl %eax, %eax
jne 0xd01c
movl 0xd0(%rsp), %ecx
cmpl $0x0, 0x98(%rbx)
je 0xde59
movl %ecx, %eax
andl $-0x5, %eax
cmpl $0x2, %eax
jne 0xde59
leaq 0x30(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0xecbe
movl %eax, 0x218(%rbx)
testl %eax, %eax
jne 0xd01c
movl 0xd0(%rsp), %ecx
andq $0x0, 0x248(%rsp)
testl %ecx, %ecx
je 0xdf60
cmpl $0x2, %ecx
je 0xdee8
cmpl $0x3, %ecx
jne 0xdfb6
movq 0xd8(%rsp), %rax
movq 0xe0(%rsp), %rcx
movq %rcx, %r12
subq $0x1, %rcx
jb 0xdfb6
cmpb $-0x1, 0x3(%rax,%rcx,4)
je 0xde88
leaq 0x80fb(%rip), %rcx      # 0x15f9e
leaq 0x248(%rsp), %rdi
leaq 0x30(%rsp), %rsi
movq %r12, %rdx
callq 0xff7b
testl %eax, %eax
jne 0xd8cf
movq 0x248(%rsp), %rdi
xorl %eax, %eax
cmpq %rax, %r12
je 0xdfac
movq 0xd8(%rsp), %rcx
movb 0x3(%rcx,%rax,4), %cl
movb %cl, 0x8(%rdi,%rax)
incq %rax
jmp 0xdeca
cmpl $0x0, 0xe8(%rsp)
je 0xdfb6
leaq 0x80a1(%rip), %rcx      # 0x15f9e
leaq 0x248(%rsp), %rdi
leaq 0x30(%rsp), %rsi
pushq $0x6
popq %rdx
callq 0xff7b
testl %eax, %eax
jne 0xd8cf
movb 0xed(%rsp), %al
movq 0x248(%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 0xdfb1
cmpl $0x0, 0xe8(%rsp)
je 0xdfb6
leaq 0x802d(%rip), %rcx      # 0x15f9e
leaq 0x248(%rsp), %rdi
leaq 0x30(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0xff7b
testl %eax, %eax
jne 0xd8cf
movb 0xed(%rsp), %al
movq 0x248(%rsp), %rdi
movb %al, 0x8(%rdi)
movb 0xec(%rsp), %al
movb %al, 0x9(%rdi)
jmp 0xdfb1
testq %rdi, %rdi
je 0xdfb6
callq 0x8765
andl $0x0, 0x218(%rbx)
cmpl $0x0, 0xf8(%rsp)
je 0xe0e6
andq $0x0, 0x248(%rsp)
movl 0xd0(%rsp), %eax
cmpq $0x6, %rax
ja 0xe0df
leaq 0x5a10(%rip), %rcx      # 0x139fc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x7fa7(%rip), %rcx      # 0x15fa3
leaq 0x248(%rsp), %rdi
leaq 0x30(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0xff7b
testl %eax, %eax
jne 0xd8cf
movb 0xfd(%rsp), %al
movq 0x248(%rsp), %rdi
movb %al, 0x8(%rdi)
movb 0xfc(%rsp), %al
movb %al, 0x9(%rdi)
jmp 0xe0da
leaq 0x7f62(%rip), %rcx      # 0x15fa3
leaq 0x248(%rsp), %rdi
leaq 0x30(%rsp), %rsi
pushq $0x6
popq %rdx
callq 0xff7b
testl %eax, %eax
jne 0xd8cf
movb 0xfd(%rsp), %al
movq 0x248(%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 0xe0da
leaq 0x7ef8(%rip), %rcx      # 0x15fa3
leaq 0x248(%rsp), %rdi
leaq 0x30(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0xff7b
testl %eax, %eax
jne 0xd8cf
movb 0xfc(%rsp), %al
movq 0x248(%rsp), %rdi
movb %al, 0x8(%rdi)
callq 0x8765
andl $0x0, 0x218(%rbx)
cmpl $0x0, 0x164(%rsp)
je 0xe14a
leaq 0x7ec5(%rip), %rcx      # 0x15fbc
leaq 0x248(%rsp), %rdi
leaq 0x30(%rsp), %rsi
pushq $0x9
popq %rdx
callq 0xff7b
testl %eax, %eax
jne 0xd8cf
movq 0x248(%rsp), %rdi
movl 0x168(%rsp), %eax
bswapl %eax
movl %eax, 0x8(%rdi)
movl 0x16c(%rsp), %eax
bswapl %eax
movl %eax, 0xc(%rdi)
movb 0x170(%rsp), %al
movb %al, 0x10(%rdi)
callq 0x8765
andl $0x0, 0x218(%rbx)
movq 0x1e0(%rsp), %rsi
testq %rsi, %rsi
movq 0x18(%rsp), %r12
je 0xe17c
movq 0x1f8(%rsp), %rdx
leaq 0x30(%rsp), %rdi
callq 0xec59
movl %eax, 0x218(%rbx)
testl %eax, %eax
jne 0xd01c
movq 0x48(%rsp), %rdx
movq 0x78(%rsp), %rcx
leaq 0x248(%rsp), %rdi
andq $0x0, (%rdi)
leaq 0x98(%rsp), %rsi
andq $0x0, (%rsi)
movq %r12, %r8
callq 0x1195e
movl %eax, %ebp
testl %eax, %eax
jne 0xe1cf
movq 0x98(%rsp), %rsi
movq 0x248(%rsp), %rcx
leaq 0x9126(%rip), %rdx      # 0x172e9
leaq 0x30(%rsp), %rdi
callq 0x89f8
movl %eax, %ebp
movq 0x248(%rsp), %rdi
callq 0x2030
movl %ebp, 0x218(%rbx)
testl %ebp, %ebp
jne 0xd01c
cmpl $0x0, 0x148(%rsp)
je 0xe272
leaq 0x7dbc(%rip), %rcx      # 0x15fb7
leaq 0x248(%rsp), %rdi
leaq 0x30(%rsp), %rsi
pushq $0x7
popq %rdx
callq 0xff7b
testl %eax, %eax
jne 0xd8cf
movb 0x14d(%rsp), %al
movq 0x248(%rsp), %rdi
movb %al, 0x8(%rdi)
movb 0x14c(%rsp), %al
movb %al, 0x9(%rdi)
movb 0x150(%rsp), %al
movb %al, 0xa(%rdi)
movb 0x154(%rsp), %al
movb %al, 0xb(%rdi)
movb 0x158(%rsp), %al
movb %al, 0xc(%rdi)
movb 0x15c(%rsp), %al
movb %al, 0xd(%rdi)
movb 0x160(%rsp), %al
movb %al, 0xe(%rdi)
callq 0x8765
andl $0x0, 0x218(%rbx)
movq $0x0, (%rsp)
movq (%rsp), %rax
cmpq 0x108(%rsp), %rax
je 0xe3ff
movq 0x110(%rsp), %rax
movq (%rsp), %rcx
movq (%rax,%rcx,8), %r12
movq %r12, %rdi
callq 0x86f3
cmpq $0x50, %rax
jae 0xe6c5
testq %rax, %rax
je 0xe6d4
cmpl $0x0, 0xa0(%rbx)
movq 0x118(%rsp), %rax
movq (%rsp), %rcx
movq (%rax,%rcx,8), %rbp
je 0xe389
andq $0x0, 0x248(%rsp)
andq $0x0, 0x98(%rsp)
andq $0x0, 0x208(%rsp)
movq %rbp, %rdi
callq 0x86f3
movq %rax, %r13
movq %r12, %rdi
callq 0x86f3
movq %rax, 0x10(%rsp)
addq $-0x50, %rax
cmpq $-0x50, %rax
jbe 0xd855
leaq 0x98(%rsp), %rdi
leaq 0x208(%rsp), %rsi
movq %rbp, %rdx
movq %r13, %rcx
movq 0x18(%rsp), %r8
callq 0x1195e
testl %eax, %eax
jne 0xe36b
movq 0x208(%rsp), %rax
movq 0x10(%rsp), %rcx
leaq (%rcx,%rax), %rdx
addq $0x2, %rdx
leaq 0x248(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x7c4b(%rip), %rcx      # 0x15fad
callq 0xff7b
testl %eax, %eax
je 0xe3b0
movl %eax, %ebp
movq 0x98(%rsp), %rdi
callq 0x2030
movl %ebp, 0x218(%rbx)
testl %ebp, %ebp
je 0xe3a7
jmp 0xd01c
leaq 0x30(%rsp), %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0xed41
movl %eax, 0x218(%rbx)
testl %eax, %eax
jne 0xd01c
incq (%rsp)
jmp 0xe27a
movq 0x248(%rsp), %r13
leaq 0x8(%r13), %rdi
movq %r12, %rsi
movq 0x10(%rsp), %r12
movq %r12, %rdx
callq 0x8adc
andw $0x0, 0x8(%r13,%r12)
leaq (%r12,%r13), %rdi
addq $0xa, %rdi
movq 0x98(%rsp), %rsi
movq 0x208(%rsp), %rdx
callq 0x8adc
movq %r13, %rdi
callq 0x8765
xorl %ebp, %ebp
jmp 0xe36d
cmpl $0x0, 0x9c(%rbx)
je 0xe476
movq 0x110(%rsp), %rax
xorl %ecx, %ecx
cmpq %rcx, (%rsp)
je 0xe450
movq (%rax,%rcx,8), %rdx
cmpb $0x4c, (%rdx)
jne 0xe44b
cmpb $0x6f, 0x1(%rdx)
jne 0xe44b
cmpb $0x64, 0x2(%rdx)
jne 0xe44b
cmpb $0x65, 0x3(%rdx)
jne 0xe44b
cmpb $0x50, 0x4(%rdx)
jne 0xe44b
cmpb $0x4e, 0x5(%rdx)
jne 0xe44b
cmpb $0x47, 0x6(%rdx)
jne 0xe44b
cmpb $0x0, 0x7(%rdx)
je 0xe476
incq %rcx
jmp 0xe412
movq 0xeee9(%rip), %rdx      # 0x1d340
leaq 0x7b7c(%rip), %rsi      # 0x15fda
leaq 0x30(%rsp), %rdi
callq 0xed41
movl %eax, 0x218(%rbx)
testl %eax, %eax
jne 0xd01c
movq $0x0, (%rsp)
movq (%rsp), %rax
cmpq 0x120(%rsp), %rax
je 0xe6e3
movq 0x128(%rsp), %rax
movq (%rsp), %rcx
movq (%rax,%rcx,8), %rdi
movq %rdi, 0x8(%rsp)
callq 0x86f3
cmpq $0x50, %rax
jae 0xe6c5
testq %rax, %rax
je 0xe6d4
movl 0xa0(%rbx), %eax
movl %eax, 0x28(%rsp)
movq 0x130(%rsp), %rax
movq 0x138(%rsp), %rcx
movq (%rsp), %rdx
movq (%rax,%rdx,8), %r13
movq (%rcx,%rdx,8), %r12
movq 0x140(%rsp), %rax
movq (%rax,%rdx,8), %rdi
andq $0x0, 0x248(%rsp)
andq $0x0, 0x98(%rsp)
andq $0x0, 0x208(%rsp)
movq %rdi, 0x90(%rsp)
callq 0x86f3
movq %rax, 0x10(%rsp)
movq 0x8(%rsp), %rdi
callq 0x86f3
movq %rax, %rbp
movq %r13, 0x230(%rsp)
movq %r13, %rdi
callq 0x86f3
movq %rax, 0x20(%rsp)
movq %r12, 0x238(%rsp)
movq %r12, %rdi
callq 0x86f3
movq %rax, %r13
leaq -0x50(%rbp), %rax
cmpq $-0x50, %rax
jbe 0xd855
movq 0x10(%rsp), %rax
cmpl $0x0, 0x28(%rsp)
je 0xe59e
leaq 0x98(%rsp), %rdi
leaq 0x208(%rsp), %rsi
movq 0x90(%rsp), %rdx
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %r8
callq 0x1195e
testl %eax, %eax
jne 0xe5ce
movq 0x208(%rsp), %rax
movq 0x20(%rsp), %rcx
addq %rbp, %rcx
addq %r13, %rcx
leaq (%rax,%rcx), %rdx
addq $0x5, %rdx
leaq 0x248(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x79ed(%rip), %rcx      # 0x15fb2
callq 0xff7b
testl %eax, %eax
je 0xe5d6
movl %eax, %r12d
jmp 0xe69f
movq 0x248(%rsp), %r12
leaq 0x8(%r12), %rdi
movq 0x8(%rsp), %rsi
movq %rbp, %rdx
callq 0x8adc
cmpl $0x0, 0x28(%rsp)
movl $0x0, %eax
movb %al, 0x8(%r12,%rbp)
setne 0x9(%r12,%rbp)
movb %al, 0xa(%r12,%rbp)
leaq (%r12,%rbp), %rdi
addq $0xb, %rdi
movq 0x230(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x8adc
movq 0x20(%rsp), %rax
addq %rbp, %rax
addq $0xb, %rax
leaq (%r12,%rax), %rbp
movq %r12, 0x8(%rsp)
leaq (%r12,%rax), %rdi
incq %rdi
xorl %r12d, %r12d
movb %r12b, -0x1(%rdi)
movq 0x238(%rsp), %rsi
movq %r13, %rdx
callq 0x8adc
movb %r12b, 0x1(%r13,%rbp)
leaq 0x2(,%rbp), %rdi
addq %r13, %rdi
cmpl $0x0, 0x28(%rsp)
je 0xe680
movq 0x98(%rsp), %rsi
movq 0x208(%rsp), %rdx
jmp 0xe68d
movq 0x90(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x8adc
movq 0x8(%rsp), %rdi
callq 0x8765
xorl %r12d, %r12d
movq 0x98(%rsp), %rdi
callq 0x2030
movl %r12d, 0x218(%rbx)
incq (%rsp)
testl %r12d, %r12d
je 0xe47e
jmp 0xd01c
movl $0x42, 0x218(%rbx)
jmp 0xd01c
movl $0x43, 0x218(%rbx)
jmp 0xd01c
movq 0x1e8(%rsp), %rsi
testq %rsi, %rsi
je 0xe710
movq 0x200(%rsp), %rdx
leaq 0x30(%rsp), %rdi
callq 0xec59
movl %eax, 0x218(%rbx)
testl %eax, %eax
jne 0xd01c
leaq 0x8bd7(%rip), %rdx      # 0x172ee
leaq 0x30(%rsp), %rdi
xorl %esi, %esi
xorl %ecx, %ecx
callq 0x89f8
jmp 0xd8cf