// File: /workspace/github_c_makefile_star2_O0/tditlu[P]shadetabler/src/lodepng/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;

  lodepng_info_init(&info);

  /*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)) {
    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;
    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(&info.color, &state->info_raw, &stats);
    if(state->error) goto cleanup;
#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;
    }
#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);

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

  return state->error;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x650, %rsp            # imm = 0x650
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movl %r8d, -0x20(%rbp)
movq %r9, -0x28(%rbp)
movq $0x0, -0x30(%rbp)
movq $0x0, -0x38(%rbp)
leaq -0x50(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rsi
callq 0x50f0
movq -0x28(%rbp), %rax
addq $0xb8, %rax
movq %rax, -0x190(%rbp)
leaq -0x188(%rbp), %rdi
callq 0x7060
movq -0x8(%rbp), %rax
movq $0x0, (%rax)
movq -0x10(%rbp), %rax
movq $0x0, (%rax)
movq -0x28(%rbp), %rax
movl $0x0, 0x1f0(%rax)
movq -0x190(%rbp), %rax
cmpl $0x3, 0x10(%rax)
je 0xd58d
movq -0x28(%rbp), %rax
cmpl $0x0, 0x80(%rax)
je 0xd5bf
movq -0x190(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0xd5ac
movq -0x190(%rbp), %rax
cmpq $0x100, 0x20(%rax)      # imm = 0x100
jbe 0xd5bf
movq -0x28(%rbp), %rax
movl $0x44, 0x1f0(%rax)
jmp 0xe2e6
movq -0x28(%rbp), %rax
cmpl $0x2, 0x38(%rax)
jbe 0xd5dc
movq -0x28(%rbp), %rax
movl $0x3d, 0x1f0(%rax)
jmp 0xe2e6
movq -0x190(%rbp), %rax
cmpl $0x1, 0x8(%rax)
jbe 0xd5fc
movq -0x28(%rbp), %rax
movl $0x47, 0x1f0(%rax)
jmp 0xe2e6
movq -0x190(%rbp), %rax
movl 0x10(%rax), %edi
movq -0x190(%rbp), %rax
movl 0x14(%rax), %esi
callq 0xada0
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xd633
jmp 0xe2e6
movq -0x28(%rbp), %rax
movl 0x90(%rax), %edi
movq -0x28(%rbp), %rax
movl 0x94(%rax), %esi
callq 0xada0
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xd66a
jmp 0xe2e6
movq -0x28(%rbp), %rsi
addq $0xb8, %rsi
leaq -0x188(%rbp), %rdi
callq 0x72d0
movq -0x28(%rbp), %rax
cmpl $0x0, 0x68(%rax)
je 0xd904
leaq -0x5c0(%rbp), %rdi
callq 0x9c20
movq -0x190(%rbp), %rax
cmpl $0x0, 0xe8(%rax)
je 0xd6da
movq -0x190(%rbp), %rax
movq 0xf8(%rax), %rdi
movq -0x190(%rbp), %rax
movl 0x100(%rax), %esi
callq 0xe330
cmpl $0x0, %eax
je 0xd6da
movl $0x0, -0x198(%rbp)
movq -0x190(%rbp), %rax
cmpl $0x0, 0xe8(%rax)
je 0xd719
movq -0x190(%rbp), %rax
movq 0xf8(%rax), %rdi
movq -0x190(%rbp), %rax
movl 0x100(%rax), %esi
callq 0xe3b0
cmpl $0x0, %eax
je 0xd719
movl $0x0, -0x194(%rbp)
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
movl -0x20(%rbp), %ecx
movq -0x28(%rbp), %r8
addq $0x90, %r8
leaq -0x5c0(%rbp), %rdi
callq 0x9cb0
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xd758
jmp 0xe2e6
movq -0x190(%rbp), %rax
cmpl $0x0, 0x38(%rax)
je 0xd836
movl $0x0, -0x5c4(%rbp)
movl $0x0, -0x5c8(%rbp)
movl $0x0, -0x5cc(%rbp)
leaq -0x5f8(%rbp), %rdi
movl $0x2, %esi
movl $0x10, %edx
callq 0x6490
movq -0x190(%rbp), %rax
movl 0x3c(%rax), %ecx
movq -0x190(%rbp), %rax
movl 0x40(%rax), %r8d
movq -0x190(%rbp), %rax
movl 0x44(%rax), %r9d
movq -0x190(%rbp), %rax
addq $0x10, %rax
leaq -0x5c4(%rbp), %rdi
leaq -0x5c8(%rbp), %rsi
leaq -0x5cc(%rbp), %rdx
leaq -0x5f8(%rbp), %r10
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x9940
movl -0x5c4(%rbp), %esi
movl -0x5c8(%rbp), %edx
movl -0x5cc(%rbp), %ecx
leaq -0x5c0(%rbp), %rdi
movl $0xffff, %r8d           # imm = 0xFFFF
callq 0xe430
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xd834
jmp 0xe2e6
jmp 0xd836
leaq -0x188(%rbp), %rdi
addq $0x10, %rdi
movq -0x28(%rbp), %rsi
addq $0x90, %rsi
leaq -0x5c0(%rbp), %rdx
callq 0xe4d0
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xd876
jmp 0xe2e6
movq -0x190(%rbp), %rax
cmpl $0x0, 0x38(%rax)
je 0xd902
leaq -0x188(%rbp), %rdi
addq $0x3c, %rdi
leaq -0x188(%rbp), %rsi
addq $0x40, %rsi
leaq -0x188(%rbp), %rdx
addq $0x44, %rdx
movq -0x190(%rbp), %rax
movl 0x3c(%rax), %ecx
movq -0x190(%rbp), %rax
movl 0x40(%rax), %r8d
movq -0x190(%rbp), %rax
movl 0x44(%rax), %r9d
leaq -0x188(%rbp), %r10
addq $0x10, %r10
movq -0x190(%rbp), %rax
addq $0x10, %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x9940
cmpl $0x0, %eax
je 0xd900
movq -0x28(%rbp), %rax
movl $0x68, 0x1f0(%rax)
jmp 0xe2e6
jmp 0xd902
jmp 0xd904
movq -0x190(%rbp), %rax
cmpl $0x0, 0xe8(%rax)
je 0xd9f1
movq -0x190(%rbp), %rax
movq 0xf8(%rax), %rdi
movq -0x190(%rbp), %rax
movl 0x100(%rax), %esi
callq 0xe330
movl %eax, -0x5fc(%rbp)
movq -0x190(%rbp), %rax
movq 0xf8(%rax), %rdi
movq -0x190(%rbp), %rax
movl 0x100(%rax), %esi
callq 0xe3b0
movl %eax, -0x600(%rbp)
movb $0x1, %al
cmpl $0x0, -0x178(%rbp)
movb %al, -0x631(%rbp)
je 0xd985
cmpl $0x4, -0x178(%rbp)
sete %al
movb %al, -0x631(%rbp)
movb -0x631(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x604(%rbp)
cmpl $0x0, -0x5fc(%rbp)
jne 0xd9bb
cmpl $0x0, -0x600(%rbp)
jne 0xd9bb
movq -0x28(%rbp), %rax
movl $0x64, 0x1f0(%rax)
jmp 0xe2e6
movl -0x5fc(%rbp), %eax
cmpl -0x604(%rbp), %eax
je 0xd9ef
movq -0x28(%rbp), %rax
movl 0x68(%rax), %edx
movl $0x65, %ecx
movl $0x66, %eax
cmpl $0x0, %edx
cmovnel %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
jmp 0xe2e6
jmp 0xd9f1
movq -0x28(%rbp), %rdi
addq $0x90, %rdi
leaq -0x188(%rbp), %rsi
addq $0x10, %rsi
callq 0x7b30
cmpl $0x0, %eax
jne 0xdb37
movl -0x1c(%rbp), %eax
movl -0x20(%rbp), %ecx
imulq %rcx, %rax
movq %rax, -0x640(%rbp)
leaq -0x188(%rbp), %rdi
addq $0x10, %rdi
callq 0x6680
movl %eax, %ecx
movq -0x640(%rbp), %rax
movl %ecx, %ecx
imulq %rcx, %rax
addq $0x7, %rax
shrq $0x3, %rax
movq %rax, -0x618(%rbp)
movq -0x618(%rbp), %rdi
callq 0x3de0
movq %rax, -0x610(%rbp)
cmpq $0x0, -0x610(%rbp)
jne 0xda89
cmpq $0x0, -0x618(%rbp)
je 0xda89
movq -0x28(%rbp), %rax
movl $0x53, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
jne 0xdad0
movq -0x610(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq -0x188(%rbp), %rdx
addq $0x10, %rdx
movq -0x28(%rbp), %rcx
addq $0x90, %rcx
movl -0x1c(%rbp), %r8d
movl -0x20(%rbp), %r9d
callq 0x76b0
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
jne 0xdb17
movq -0x610(%rbp), %rdx
movl -0x1c(%rbp), %ecx
movl -0x20(%rbp), %r8d
movq -0x28(%rbp), %rax
addq $0x38, %rax
leaq -0x30(%rbp), %rdi
leaq -0x38(%rbp), %rsi
leaq -0x188(%rbp), %r9
movq %rax, (%rsp)
callq 0xe800
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x610(%rbp), %rdi
callq 0x5060
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xdb35
jmp 0xe2e6
jmp 0xdb82
movq -0x18(%rbp), %rdx
movl -0x1c(%rbp), %ecx
movl -0x20(%rbp), %r8d
movq -0x28(%rbp), %rax
addq $0x38, %rax
leaq -0x30(%rbp), %rdi
leaq -0x38(%rbp), %rsi
leaq -0x188(%rbp), %r9
movq %rax, (%rsp)
callq 0xe800
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xdb80
jmp 0xe2e6
jmp 0xdb82
leaq -0x50(%rbp), %rdi
callq 0xebf0
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xdba9
jmp 0xe2e6
movl -0x1c(%rbp), %esi
movl -0x20(%rbp), %edx
movl -0x178(%rbp), %ecx
movl -0x174(%rbp), %r8d
movl -0x180(%rbp), %r9d
leaq -0x50(%rbp), %rdi
callq 0xec60
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xdbea
jmp 0xe2e6
cmpq $0x0, -0x80(%rbp)
je 0xdc22
movq -0x80(%rbp), %rsi
movq -0x68(%rbp), %rdx
leaq -0x50(%rbp), %rdi
callq 0xed20
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xdc20
jmp 0xe2e6
jmp 0xdc22
cmpl $0x0, -0xa0(%rbp)
je 0xdc63
movq -0x28(%rbp), %rdx
addq $0x38, %rdx
leaq -0x50(%rbp), %rdi
leaq -0x188(%rbp), %rsi
callq 0xedb0
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xdc61
jmp 0xe2e6
jmp 0xdc63
cmpl $0x0, -0xa8(%rbp)
je 0xdc9c
leaq -0x50(%rbp), %rdi
leaq -0x188(%rbp), %rsi
callq 0xeef0
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xdc9a
jmp 0xe2e6
jmp 0xdc9c
cmpl $0x0, -0xd4(%rbp)
je 0xdcd5
leaq -0x50(%rbp), %rdi
leaq -0x188(%rbp), %rsi
callq 0xef30
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xdcd3
jmp 0xe2e6
jmp 0xdcd5
cmpl $0x0, -0xcc(%rbp)
je 0xdd0e
leaq -0x50(%rbp), %rdi
leaq -0x188(%rbp), %rsi
callq 0xefa0
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xdd0c
jmp 0xe2e6
jmp 0xdd0e
cmpl $0x3, -0x178(%rbp)
jne 0xdd4b
leaq -0x188(%rbp), %rsi
addq $0x10, %rsi
leaq -0x50(%rbp), %rdi
callq 0xf0b0
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xdd49
jmp 0xe2e6
jmp 0xdd4b
movq -0x28(%rbp), %rax
cmpl $0x0, 0x80(%rax)
je 0xdd9e
cmpl $0x2, -0x178(%rbp)
je 0xdd6a
cmpl $0x6, -0x178(%rbp)
jne 0xdd9e
leaq -0x188(%rbp), %rsi
addq $0x10, %rsi
leaq -0x50(%rbp), %rdi
callq 0xf0b0
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xdd9c
jmp 0xe2e6
jmp 0xdd9e
leaq -0x188(%rbp), %rsi
addq $0x10, %rsi
leaq -0x50(%rbp), %rdi
callq 0xf1c0
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xddd0
jmp 0xe2e6
cmpl $0x0, -0x150(%rbp)
je 0xde09
leaq -0x50(%rbp), %rdi
leaq -0x188(%rbp), %rsi
callq 0xf420
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xde07
jmp 0xe2e6
jmp 0xde09
cmpl $0x0, -0xe4(%rbp)
je 0xde42
leaq -0x50(%rbp), %rdi
leaq -0x188(%rbp), %rsi
callq 0xf5e0
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xde40
jmp 0xe2e6
jmp 0xde42
cmpq $0x0, -0x78(%rbp)
je 0xde7a
movq -0x78(%rbp), %rsi
movq -0x60(%rbp), %rdx
leaq -0x50(%rbp), %rdi
callq 0xed20
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xde78
jmp 0xe2e6
jmp 0xde7a
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq -0x28(%rbp), %rcx
addq $0x38, %rcx
leaq -0x50(%rbp), %rdi
callq 0xf680
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xdeb1
jmp 0xe2e6
cmpl $0x0, -0x100(%rbp)
je 0xdef1
leaq -0x188(%rbp), %rsi
addq $0x8c, %rsi
leaq -0x50(%rbp), %rdi
callq 0xf700
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xdeef
jmp 0xe2e6
jmp 0xdef1
movq $0x0, -0x620(%rbp)
movq -0x620(%rbp), %rax
cmpq -0x140(%rbp), %rax
je 0xe038
movq -0x138(%rbp), %rax
movq -0x620(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x5bb0
cmpq $0x4f, %rax
jbe 0xdf40
movq -0x28(%rbp), %rax
movl $0x42, 0x1f0(%rax)
jmp 0xe2e6
movq -0x138(%rbp), %rax
movq -0x620(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x5bb0
cmpq $0x1, %rax
jae 0xdf70
movq -0x28(%rbp), %rax
movl $0x43, 0x1f0(%rax)
jmp 0xe2e6
movq -0x28(%rbp), %rax
cmpl $0x0, 0x88(%rax)
je 0xdfd2
movq -0x138(%rbp), %rax
movq -0x620(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movq -0x130(%rbp), %rax
movq -0x620(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -0x28(%rbp), %rcx
addq $0x38, %rcx
leaq -0x50(%rbp), %rdi
callq 0xf7d0
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xdfd0
jmp 0xe2e6
jmp 0xe01f
movq -0x138(%rbp), %rax
movq -0x620(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movq -0x130(%rbp), %rax
movq -0x620(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
leaq -0x50(%rbp), %rdi
callq 0xf900
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xe01d
jmp 0xe2e6
jmp 0xe01f
jmp 0xe021
movq -0x620(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x620(%rbp)
jmp 0xdefc
movq -0x28(%rbp), %rax
cmpl $0x0, 0x84(%rax)
je 0xe171
movl $0x0, -0x624(%rbp)
movq $0x0, -0x620(%rbp)
movq -0x620(%rbp), %rax
cmpq -0x140(%rbp), %rax
je 0xe12f
movq -0x138(%rbp), %rax
movq -0x620(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x630(%rbp)
movq -0x630(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x4c, %eax
jne 0xe116
movq -0x630(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x6f, %eax
jne 0xe116
movq -0x630(%rbp), %rax
movsbl 0x2(%rax), %eax
cmpl $0x64, %eax
jne 0xe116
movq -0x630(%rbp), %rax
movsbl 0x3(%rax), %eax
cmpl $0x65, %eax
jne 0xe116
movq -0x630(%rbp), %rax
movsbl 0x4(%rax), %eax
cmpl $0x50, %eax
jne 0xe116
movq -0x630(%rbp), %rax
movsbl 0x5(%rax), %eax
cmpl $0x4e, %eax
jne 0xe116
movq -0x630(%rbp), %rax
movsbl 0x6(%rax), %eax
cmpl $0x47, %eax
jne 0xe116
movq -0x630(%rbp), %rax
movsbl 0x7(%rax), %eax
cmpl $0x0, %eax
jne 0xe116
movl $0x1, -0x624(%rbp)
jmp 0xe12f
jmp 0xe118
movq -0x620(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x620(%rbp)
jmp 0xe05e
cmpl $0x0, -0x624(%rbp)
jne 0xe16f
movq 0x13fc1(%rip), %rdx     # 0x22100
leaq -0x50(%rbp), %rdi
leaq 0xd47f(%rip), %rsi      # 0x1b5c9
callq 0xf900
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xe16d
jmp 0xe2e6
jmp 0xe16f
jmp 0xe171
movq $0x0, -0x620(%rbp)
movq -0x620(%rbp), %rax
cmpq -0x128(%rbp), %rax
je 0xe28b
movq -0x120(%rbp), %rax
movq -0x620(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x5bb0
cmpq $0x4f, %rax
jbe 0xe1c0
movq -0x28(%rbp), %rax
movl $0x42, 0x1f0(%rax)
jmp 0xe2e6
movq -0x120(%rbp), %rax
movq -0x620(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x5bb0
cmpq $0x1, %rax
jae 0xe1f0
movq -0x28(%rbp), %rax
movl $0x43, 0x1f0(%rax)
jmp 0xe2e6
movq -0x28(%rbp), %rax
movl 0x88(%rax), %esi
movq -0x120(%rbp), %rax
movq -0x620(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -0x118(%rbp), %rax
movq -0x620(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
movq -0x110(%rbp), %rax
movq -0x620(%rbp), %rdi
movq (%rax,%rdi,8), %r8
movq -0x108(%rbp), %rax
movq -0x620(%rbp), %rdi
movq (%rax,%rdi,8), %r9
movq -0x28(%rbp), %rax
addq $0x38, %rax
leaq -0x50(%rbp), %rdi
movq %rax, (%rsp)
callq 0xf9e0
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xe272
jmp 0xe2e6
jmp 0xe274
movq -0x620(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x620(%rbp)
jmp 0xe17c
cmpq $0x0, -0x70(%rbp)
je 0xe2c0
movq -0x70(%rbp), %rsi
movq -0x58(%rbp), %rdx
leaq -0x50(%rbp), %rdi
callq 0xed20
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xe2be
jmp 0xe2e6
jmp 0xe2c0
leaq -0x50(%rbp), %rdi
callq 0xfca0
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x1f0(%rax)
movq -0x28(%rbp), %rax
cmpl $0x0, 0x1f0(%rax)
je 0xe2e4
jmp 0xe2e6
jmp 0xe2e6
leaq -0x188(%rbp), %rdi
callq 0x7240
movq -0x30(%rbp), %rdi
callq 0x5060
movq -0x50(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
movq -0x48(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rax
movl 0x1f0(%rax), %eax
addq $0x650, %rsp            # imm = 0x650
popq %rbp
retq
nopw %cs:(%rax,%rax)