// File: mhe[P]raytracerframework_cpp/lodepng.cpp
// Function: decodeGeneric(LodePNG_Decoder*, unsigned char**, unsigned long*, unsigned char const*, unsigned long)
static void decodeGeneric(LodePNG_Decoder* decoder, unsigned char** out, size_t* outsize, const unsigned char* in, size_t size)
{
  unsigned char IEND = 0;
  const unsigned char* chunk;
  size_t i;
  ucvector idat; /*the data from idat chunks*/
  
  /*for unknown chunk order*/
  unsigned unknown = 0;
  unsigned critical_pos = 1; /*1 = after IHDR, 2 = after PLTE, 3 = after IDAT*/
  
  /*provide some proper output values if error will happen*/
  *out = 0;
  *outsize = 0;
  
  if(size == 0 || in == 0) { decoder->error = 48; return; } /*the given data is empty*/

  LodePNG_inspect(decoder, in, size); /*reads header and resets other parameters in decoder->infoPng*/
  if(decoder->error) return;

  ucvector_init(&idat);
  
  chunk = &in[33]; /*first byte of the first chunk after the header*/
  
  while(!IEND) /*loop through the chunks, ignoring unknown chunks and stopping at IEND chunk. IDAT data is put at the start of the in buffer*/
  {
    unsigned chunkLength;
    const unsigned char* data; /*the data in the chunk*/
    
    if((size_t)((chunk - in) + 12) > size || chunk < in) { decoder->error = 30; break; } /*error: size of the in buffer too small to contain next chunk*/
    chunkLength = LodePNG_chunk_length(chunk); /*length of the data of the chunk, excluding the length bytes, chunk type and CRC bytes*/
    if(chunkLength > 2147483647) { decoder->error = 63; break; }
    if((size_t)((chunk - in) + chunkLength + 12) > size || (chunk + chunkLength + 12) < in) { decoder->error = 35; break; } /*error: size of the in buffer too small to contain next chunk*/
    data = LodePNG_chunk_data_const(chunk);
    
    /*IDAT chunk, containing compressed image data*/
    if(LodePNG_chunk_type_equals(chunk, "IDAT"))
    {
      size_t oldsize = idat.size;
      if(!ucvector_resize(&idat, oldsize + chunkLength)) { decoder->error = 9936; break; }
      for(i = 0; i < chunkLength; i++) idat.data[oldsize + i] = data[i];
      critical_pos = 3;
    }
    /*IEND chunk*/
    else if(LodePNG_chunk_type_equals(chunk, "IEND"))
    {
      IEND = 1;
    }
    /*palette chunk (PLTE)*/
    else if(LodePNG_chunk_type_equals(chunk, "PLTE"))
    {
      unsigned pos = 0;
      if(decoder->infoPng.color.palette) free(decoder->infoPng.color.palette);
      decoder->infoPng.color.palettesize = chunkLength / 3;
      decoder->infoPng.color.palette = (unsigned char*)malloc(4 * decoder->infoPng.color.palettesize);
      if(!decoder->infoPng.color.palette && decoder->infoPng.color.palettesize) { decoder->error = 9937; break; }
      if(!decoder->infoPng.color.palette) decoder->infoPng.color.palettesize = 0; /*malloc failed...*/
      if(decoder->infoPng.color.palettesize > 256) { decoder->error = 38; break; } /*error: palette too big*/
      for(i = 0; i < decoder->infoPng.color.palettesize; i++)
      {
        decoder->infoPng.color.palette[4 * i + 0] = data[pos++]; /*R*/
        decoder->infoPng.color.palette[4 * i + 1] = data[pos++]; /*G*/
        decoder->infoPng.color.palette[4 * i + 2] = data[pos++]; /*B*/
        decoder->infoPng.color.palette[4 * i + 3] = 255; /*alpha*/
      }
      critical_pos = 2;
    }
    /*palette transparency chunk (tRNS)*/
    else if(LodePNG_chunk_type_equals(chunk, "tRNS"))
    {
      if(decoder->infoPng.color.colorType == 3)
      {
        if(chunkLength > decoder->infoPng.color.palettesize) { decoder->error = 39; break; } /*error: more alpha values given than there are palette entries*/
        for(i = 0; i < chunkLength; i++) decoder->infoPng.color.palette[4 * i + 3] = data[i];
      }
      else if(decoder->infoPng.color.colorType == 0)
      {
        if(chunkLength != 2) { decoder->error = 40; break; } /*error: this chunk must be 2 bytes for greyscale image*/
        decoder->infoPng.color.key_defined = 1;
        decoder->infoPng.color.key_r = decoder->infoPng.color.key_g = decoder->infoPng.color.key_b = 256 * data[0] + data[1];
      }
      else if(decoder->infoPng.color.colorType == 2)
      {
        if(chunkLength != 6) { decoder->error = 41; break; } /*error: this chunk must be 6 bytes for RGB image*/
        decoder->infoPng.color.key_defined = 1;
        decoder->infoPng.color.key_r = 256 * data[0] + data[1];
        decoder->infoPng.color.key_g = 256 * data[2] + data[3];
        decoder->infoPng.color.key_b = 256 * data[4] + data[5];
      }
      else { decoder->error = 42; break; } /*error: tRNS chunk not allowed for other color models*/
    }
#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
    /*background color chunk (bKGD)*/
    else if(LodePNG_chunk_type_equals(chunk, "bKGD"))
    {
      if(decoder->infoPng.color.colorType == 3)
      {
        if(chunkLength != 1) { decoder->error = 43; break; } /*error: this chunk must be 1 byte for indexed color image*/
        decoder->infoPng.background_defined = 1;
        decoder->infoPng.background_r = decoder->infoPng.background_g = decoder->infoPng.background_g = data[0];
      }
      else if(decoder->infoPng.color.colorType == 0 || decoder->infoPng.color.colorType == 4)
      {
        if(chunkLength != 2) { decoder->error = 44; break; } /*error: this chunk must be 2 bytes for greyscale image*/
        decoder->infoPng.background_defined = 1;
        decoder->infoPng.background_r = decoder->infoPng.background_g = decoder->infoPng.background_b = 256 * data[0] + data[1];
      }
      else if(decoder->infoPng.color.colorType == 2 || decoder->infoPng.color.colorType == 6)
      {
        if(chunkLength != 6) { decoder->error = 45; break; } /*error: this chunk must be 6 bytes for greyscale image*/
        decoder->infoPng.background_defined = 1;
        decoder->infoPng.background_r = 256 * data[0] + data[1];
        decoder->infoPng.background_g = 256 * data[2] + data[3];
        decoder->infoPng.background_b = 256 * data[4] + data[5];
      }
    }
    /*text chunk (tEXt)*/
    else if(LodePNG_chunk_type_equals(chunk, "tEXt"))
    {
      if(decoder->settings.readTextChunks)
      {
        char *key = 0, *str = 0;
        
        while(!decoder->error) /*not really a while loop, only used to break on error*/
        {
          unsigned length, string2_begin;
          
          for(length = 0; length < chunkLength && data[length] != 0; length++) ;
          if(length + 1 >= chunkLength) { decoder->error = 75; break; }
          key = (char*)malloc(length + 1);
          if(!key) { decoder->error = 9938; break; }
          key[length] = 0;
          for(i = 0; i < length; i++) key[i] = data[i];
  
          string2_begin = length + 1;
          if(string2_begin > chunkLength)  { decoder->error = 75; break; }
          length = chunkLength - string2_begin;
          str = (char*)malloc(length + 1);
          if(!str) { decoder->error = 9939; break; }
          str[length] = 0;
          for(i = 0; i < length; i++) str[i] = data[string2_begin + i];
  
          decoder->error = LodePNG_Text_add(&decoder->infoPng.text, key, str);
          
          break;
        }

        free(key);
        free(str);
      }
    }
    /*compressed text chunk (zTXt)*/
    else if(LodePNG_chunk_type_equals(chunk, "zTXt"))
    {
      if(decoder->settings.readTextChunks)
      {
        unsigned length, string2_begin;
        char *key = 0;
        ucvector decoded;
        
        ucvector_init(&decoded);
        
        while(!decoder->error) /*not really a while loop, only used to break on error*/
        {
          for(length = 0; length < chunkLength && data[length] != 0; length++) ;
          if(length + 2 >= chunkLength) { decoder->error = 75; break; }
          key = (char*)malloc(length + 1);
          if(!key) { decoder->error = 9940; break; }
          key[length] = 0;
          for(i = 0; i < length; i++) key[i] = data[i];
          
          if(data[length + 1] != 0) { decoder->error = 72; break; } /*the 0 byte indicating compression must be 0*/
          
          string2_begin = length + 2;
          if(string2_begin > chunkLength)  { decoder->error = 75; break; }
          length = chunkLength - string2_begin;
          decoder->error = LodePNG_decompress(&decoded.data, &decoded.size, (unsigned char*)(&data[string2_begin]), length, &decoder->settings.zlibsettings);
          if(decoder->error) break;
          ucvector_push_back(&decoded, 0);

          decoder->error = LodePNG_Text_add(&decoder->infoPng.text, key, (char*)decoded.data);
          
          break;
        }

        free(key);
        ucvector_cleanup(&decoded);
        if(decoder->error) break;
      }
    }
    /*international text chunk (iTXt)*/
    else if(LodePNG_chunk_type_equals(chunk, "iTXt"))
    {
      if(decoder->settings.readTextChunks)
      {
        unsigned length, begin, compressed;
        char *key = 0, *langtag = 0, *transkey = 0;
        ucvector decoded;
        ucvector_init(&decoded);
        
        while(!decoder->error) /*not really a while loop, only used to break on error*/
        {
          if(chunkLength < 5) { decoder->error = 76; break; }
          for(length = 0; length < chunkLength && data[length] != 0; length++) ;
          if(length + 2 >= chunkLength) { decoder->error = 75; break; }
          key = (char*)malloc(length + 1);
          if(!key) { decoder->error = 9941; break; }
          key[length] = 0;
          for(i = 0; i < length; i++) key[i] = data[i];
          
          compressed = data[length + 1];
          if(data[length + 2] != 0) { decoder->error = 72; break; } /*the 0 byte indicating compression must be 0*/
          
          begin = length + 3;
          length = 0;
          for(i = begin; i < chunkLength && data[i] != 0; i++) length++;
          if(begin + length + 1 >= chunkLength) { decoder->error = 75; break; }
          langtag = (char*)malloc(length + 1);
          if(!langtag) { decoder->error = 9942; break; }
          langtag[length] = 0;
          for(i = 0; i < length; i++) langtag[i] = data[begin + i];
          
          begin += length + 1;
          length = 0;
          for(i = begin; i < chunkLength && data[i] != 0; i++) length++;
          if(begin + length + 1 >= chunkLength) { decoder->error = 75; break; }
          transkey = (char*)malloc(length + 1);
          if(!transkey) { decoder->error = 9943; break; }
          transkey[length] = 0;
          for(i = 0; i < length; i++) transkey[i] = data[begin + i];

          begin += length + 1;
          if(begin > chunkLength)  { decoder->error = 75; break; }
          length = chunkLength - begin;
          
          if(compressed)
          {
            decoder->error = LodePNG_decompress(&decoded.data, &decoded.size, (unsigned char*)(&data[begin]), length, &decoder->settings.zlibsettings);
            if(decoder->error) break;
            ucvector_push_back(&decoded, 0);
          }
          else
          {
            if(!ucvector_resize(&decoded, length + 1)) { decoder->error = 9944; break; }
            decoded.data[length] = 0;
            for(i = 0; i < length; i++) decoded.data[i] = data[begin + i];
          }
          
          decoder->error = LodePNG_IText_add(&decoder->infoPng.itext, key, langtag, transkey, (char*)decoded.data);
          
          break;
        }

        free(key);
        free(langtag);
        free(transkey);
        ucvector_cleanup(&decoded);
        if(decoder->error) break;
      }
    }
    else if(LodePNG_chunk_type_equals(chunk, "tIME"))
    {
      if(chunkLength != 7) { decoder->error = 73; break; }
      decoder->infoPng.time_defined = 1;
      decoder->infoPng.time.year = 256 * data[0] + data[+ 1];
      decoder->infoPng.time.month = data[2];
      decoder->infoPng.time.day = data[3];
      decoder->infoPng.time.hour = data[4];
      decoder->infoPng.time.minute = data[5];
      decoder->infoPng.time.second = data[6];
    }
    else if(LodePNG_chunk_type_equals(chunk, "pHYs"))
    {
      if(chunkLength != 9) { decoder->error = 74; break; }
      decoder->infoPng.phys_defined = 1;
      decoder->infoPng.phys_x = 16777216 * data[0] + 65536 * data[1] + 256 * data[2] + data[3];
      decoder->infoPng.phys_y = 16777216 * data[4] + 65536 * data[5] + 256 * data[6] + data[7];
      decoder->infoPng.phys_unit = data[8];
    }
#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
    else /*it's not an implemented chunk type, so ignore it: skip over the data*/
    {
      if(LodePNG_chunk_critical(chunk)) { decoder->error = 69; break; } /*error: unknown critical chunk (5th bit of first byte of chunk type is 0)*/
      unknown = 1;
#ifdef LODEPNG_COMPILE_UNKNOWN_CHUNKS
      if(decoder->settings.rememberUnknownChunks)
      {
        LodePNG_UnknownChunks* unknown = &decoder->infoPng.unknown_chunks;
        decoder->error = LodePNG_append_chunk(&unknown->data[critical_pos - 1], &unknown->datasize[critical_pos - 1], chunk);
        if(decoder->error) break;
      }
#endif /*LODEPNG_COMPILE_UNKNOWN_CHUNKS*/
    }
    
    if(!decoder->settings.ignoreCrc && !unknown) /*check CRC if wanted, only on known chunk types*/
    {
      if(LodePNG_chunk_check_crc(chunk)) { decoder->error = 57; break; }
    }
    
    if(!IEND) chunk = LodePNG_chunk_next_const(chunk);
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movb $0x0, -0x29(%rbp)
movl $0x0, -0x5c(%rbp)
movl $0x1, -0x60(%rbp)
movq -0x10(%rbp), %rax
movq $0x0, (%rax)
movq -0x18(%rbp), %rax
movq $0x0, (%rax)
cmpq $0x0, -0x28(%rbp)
je 0x284b5
cmpq $0x0, -0x20(%rbp)
jne 0x284c8
movq -0x8(%rbp), %rax
movl $0x30, 0x120(%rax)
jmp 0x299c1
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x27f40
movq -0x8(%rbp), %rax
cmpl $0x0, 0x120(%rax)
je 0x284eb
jmp 0x299c1
leaq -0x58(%rbp), %rdi
callq 0x25960
movq -0x20(%rbp), %rax
addq $0x21, %rax
movq %rax, -0x38(%rbp)
cmpb $0x0, -0x29(%rbp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x28512
jmp 0x2981b
movq -0x38(%rbp), %rax
movq -0x20(%rbp), %rcx
subq %rcx, %rax
addq $0xc, %rax
cmpq -0x28(%rbp), %rax
ja 0x28531
movq -0x38(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0x28544
movq -0x8(%rbp), %rax
movl $0x1e, 0x120(%rax)
jmp 0x2981b
movq -0x38(%rbp), %rdi
callq 0x25a30
movl %eax, -0x64(%rbp)
cmpl $0x7fffffff, -0x64(%rbp) # imm = 0x7FFFFFFF
jbe 0x2856c
movq -0x8(%rbp), %rax
movl $0x3f, 0x120(%rax)
jmp 0x2981b
movq -0x38(%rbp), %rax
movq -0x20(%rbp), %rcx
subq %rcx, %rax
movl -0x64(%rbp), %ecx
addq %rcx, %rax
addq $0xc, %rax
cmpq -0x28(%rbp), %rax
ja 0x2859b
movq -0x38(%rbp), %rax
movl -0x64(%rbp), %ecx
addq %rcx, %rax
addq $0xc, %rax
cmpq -0x20(%rbp), %rax
jae 0x285ae
movq -0x8(%rbp), %rax
movl $0x23, 0x120(%rax)
jmp 0x2981b
movq -0x38(%rbp), %rdi
callq 0x25c00
movq %rax, -0x70(%rbp)
movq -0x38(%rbp), %rdi
leaq 0x2358d(%rip), %rsi     # 0x4bb53
callq 0x25ae0
cmpb $0x0, %al
je 0x2864a
movq -0x50(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rsi
movl -0x64(%rbp), %eax
addq %rax, %rsi
leaq -0x58(%rbp), %rdi
callq 0x24470
cmpl $0x0, %eax
jne 0x28602
movq -0x8(%rbp), %rax
movl $0x26d0, 0x120(%rax)    # imm = 0x26D0
jmp 0x2981b
movq $0x0, -0x40(%rbp)
movq -0x40(%rbp), %rax
movl -0x64(%rbp), %ecx
cmpq %rcx, %rax
jae 0x2863e
movq -0x70(%rbp), %rax
movq -0x40(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x58(%rbp), %rax
movq -0x78(%rbp), %rcx
addq -0x40(%rbp), %rcx
movb %dl, (%rax,%rcx)
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x2860a
movl $0x3, -0x60(%rbp)
jmp 0x297d3
movq -0x38(%rbp), %rdi
leaq 0x23503(%rip), %rsi     # 0x4bb58
callq 0x25ae0
cmpb $0x0, %al
je 0x28667
movb $0x1, -0x29(%rbp)
jmp 0x297d1
movq -0x38(%rbp), %rdi
leaq 0x234eb(%rip), %rsi     # 0x4bb5d
callq 0x25ae0
cmpb $0x0, %al
je 0x287f6
movl $0x0, -0x7c(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x60(%rax)
je 0x2869e
movq -0x8(%rbp), %rax
movq 0x60(%rax), %rdi
callq 0x54b0
movl -0x64(%rbp), %eax
movl $0x3, %ecx
xorl %edx, %edx
divl %ecx
movl %eax, %eax
movl %eax, %ecx
movq -0x8(%rbp), %rax
movq %rcx, 0x68(%rax)
movq -0x8(%rbp), %rax
movq 0x68(%rax), %rdi
shlq $0x2, %rdi
callq 0x5570
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x60(%rax)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x60(%rax)
jne 0x286fb
movq -0x8(%rbp), %rax
cmpq $0x0, 0x68(%rax)
je 0x286fb
movq -0x8(%rbp), %rax
movl $0x26d1, 0x120(%rax)    # imm = 0x26D1
jmp 0x2981b
movq -0x8(%rbp), %rax
cmpq $0x0, 0x60(%rax)
jne 0x28712
movq -0x8(%rbp), %rax
movq $0x0, 0x68(%rax)
movq -0x8(%rbp), %rax
cmpq $0x100, 0x68(%rax)      # imm = 0x100
jbe 0x28733
movq -0x8(%rbp), %rax
movl $0x26, 0x120(%rax)
jmp 0x2981b
movq $0x0, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq 0x68(%rcx), %rax
jae 0x287ea
movq -0x70(%rbp), %rax
movl -0x7c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x7c(%rbp)
movl %ecx, %ecx
movb (%rax,%rcx), %dl
movq -0x8(%rbp), %rax
movq 0x60(%rax), %rax
movq -0x40(%rbp), %rcx
shlq $0x2, %rcx
movb %dl, (%rax,%rcx)
movq -0x70(%rbp), %rax
movl -0x7c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x7c(%rbp)
movl %ecx, %ecx
movb (%rax,%rcx), %dl
movq -0x8(%rbp), %rax
movq 0x60(%rax), %rax
movq -0x40(%rbp), %rcx
shlq $0x2, %rcx
movb %dl, 0x1(%rax,%rcx)
movq -0x70(%rbp), %rax
movl -0x7c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x7c(%rbp)
movl %ecx, %ecx
movb (%rax,%rcx), %dl
movq -0x8(%rbp), %rax
movq 0x60(%rax), %rax
movq -0x40(%rbp), %rcx
shlq $0x2, %rcx
movb %dl, 0x2(%rax,%rcx)
movq -0x8(%rbp), %rax
movq 0x60(%rax), %rax
movq -0x40(%rbp), %rcx
shlq $0x2, %rcx
movb $-0x1, 0x3(%rax,%rcx)
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x2873b
movl $0x2, -0x60(%rbp)
jmp 0x297cf
movq -0x38(%rbp), %rdi
leaq 0x23361(%rip), %rsi     # 0x4bb62
callq 0x25ae0
cmpb $0x0, %al
je 0x28979
movq -0x8(%rbp), %rax
cmpl $0x3, 0x58(%rax)
jne 0x2887e
movl -0x64(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpq 0x68(%rcx), %rax
jbe 0x28838
movq -0x8(%rbp), %rax
movl $0x27, 0x120(%rax)
jmp 0x2981b
movq $0x0, -0x40(%rbp)
movq -0x40(%rbp), %rax
movl -0x64(%rbp), %ecx
cmpq %rcx, %rax
jae 0x28879
movq -0x70(%rbp), %rax
movq -0x40(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x8(%rbp), %rax
movq 0x60(%rax), %rax
movq -0x40(%rbp), %rcx
shlq $0x2, %rcx
movb %dl, 0x3(%rax,%rcx)
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x28840
jmp 0x28974
movq -0x8(%rbp), %rax
cmpl $0x0, 0x58(%rax)
jne 0x288da
cmpl $0x2, -0x64(%rbp)
je 0x288a1
movq -0x8(%rbp), %rax
movl $0x28, 0x120(%rax)
jmp 0x2981b
movq -0x8(%rbp), %rax
movl $0x1, 0x70(%rax)
movq -0x70(%rbp), %rax
movzbl (%rax), %ecx
shll $0x8, %ecx
movq -0x70(%rbp), %rax
movzbl 0x1(%rax), %eax
addl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x7c(%rax)
movq -0x8(%rbp), %rax
movl %ecx, 0x78(%rax)
movq -0x8(%rbp), %rax
movl %ecx, 0x74(%rax)
jmp 0x28972
movq -0x8(%rbp), %rax
cmpl $0x2, 0x58(%rax)
jne 0x2895d
cmpl $0x6, -0x64(%rbp)
je 0x288fd
movq -0x8(%rbp), %rax
movl $0x29, 0x120(%rax)
jmp 0x2981b
movq -0x8(%rbp), %rax
movl $0x1, 0x70(%rax)
movq -0x70(%rbp), %rax
movzbl (%rax), %ecx
shll $0x8, %ecx
movq -0x70(%rbp), %rax
movzbl 0x1(%rax), %eax
addl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x74(%rax)
movq -0x70(%rbp), %rax
movzbl 0x2(%rax), %ecx
shll $0x8, %ecx
movq -0x70(%rbp), %rax
movzbl 0x3(%rax), %eax
addl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x78(%rax)
movq -0x70(%rbp), %rax
movzbl 0x4(%rax), %ecx
shll $0x8, %ecx
movq -0x70(%rbp), %rax
movzbl 0x5(%rax), %eax
addl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x7c(%rax)
jmp 0x28970
movq -0x8(%rbp), %rax
movl $0x2a, 0x120(%rax)
jmp 0x2981b
jmp 0x28972
jmp 0x28974
jmp 0x297cd
movq -0x38(%rbp), %rdi
leaq 0x231e3(%rip), %rsi     # 0x4bb67
callq 0x25ae0
cmpb $0x0, %al
je 0x28b02
movq -0x8(%rbp), %rax
cmpl $0x3, 0x58(%rax)
jne 0x289ec
cmpl $0x1, -0x64(%rbp)
je 0x289b4
movq -0x8(%rbp), %rax
movl $0x2b, 0x120(%rax)
jmp 0x2981b
movq -0x8(%rbp), %rax
movl $0x1, 0x80(%rax)
movq -0x70(%rbp), %rax
movzbl (%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x88(%rax)
movq -0x8(%rbp), %rax
movl %ecx, 0x88(%rax)
movq -0x8(%rbp), %rax
movl %ecx, 0x84(%rax)
jmp 0x28afd
movq -0x8(%rbp), %rax
cmpl $0x0, 0x58(%rax)
je 0x28a00
movq -0x8(%rbp), %rax
cmpl $0x4, 0x58(%rax)
jne 0x28a5e
cmpl $0x2, -0x64(%rbp)
je 0x28a19
movq -0x8(%rbp), %rax
movl $0x2c, 0x120(%rax)
jmp 0x2981b
movq -0x8(%rbp), %rax
movl $0x1, 0x80(%rax)
movq -0x70(%rbp), %rax
movzbl (%rax), %ecx
shll $0x8, %ecx
movq -0x70(%rbp), %rax
movzbl 0x1(%rax), %eax
addl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x8c(%rax)
movq -0x8(%rbp), %rax
movl %ecx, 0x88(%rax)
movq -0x8(%rbp), %rax
movl %ecx, 0x84(%rax)
jmp 0x28afb
movq -0x8(%rbp), %rax
cmpl $0x2, 0x58(%rax)
je 0x28a76
movq -0x8(%rbp), %rax
cmpl $0x6, 0x58(%rax)
jne 0x28af9
cmpl $0x6, -0x64(%rbp)
je 0x28a8f
movq -0x8(%rbp), %rax
movl $0x2d, 0x120(%rax)
jmp 0x2981b
movq -0x8(%rbp), %rax
movl $0x1, 0x80(%rax)
movq -0x70(%rbp), %rax
movzbl (%rax), %ecx
shll $0x8, %ecx
movq -0x70(%rbp), %rax
movzbl 0x1(%rax), %eax
addl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x84(%rax)
movq -0x70(%rbp), %rax
movzbl 0x2(%rax), %ecx
shll $0x8, %ecx
movq -0x70(%rbp), %rax
movzbl 0x3(%rax), %eax
addl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x88(%rax)
movq -0x70(%rbp), %rax
movzbl 0x4(%rax), %ecx
shll $0x8, %ecx
movq -0x70(%rbp), %rax
movzbl 0x5(%rax), %eax
addl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x8c(%rax)
jmp 0x28afb
jmp 0x28afd
jmp 0x297cb
movq -0x38(%rbp), %rdi
leaq 0x2305f(%rip), %rsi     # 0x4bb6c
callq 0x25ae0
cmpb $0x0, %al
je 0x28d62
movq -0x8(%rbp), %rax
cmpl $0x0, 0xc(%rax)
je 0x28d5d
movq $0x0, -0x88(%rbp)
movq $0x0, -0x90(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x120(%rax)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x28b57
jmp 0x28d45
movl $0x0, -0x94(%rbp)
movl -0x94(%rbp), %ecx
xorl %eax, %eax
cmpl -0x64(%rbp), %ecx
movb %al, -0x139(%rbp)
jae 0x28b8e
movq -0x70(%rbp), %rax
movl -0x94(%rbp), %ecx
movzbl (%rax,%rcx), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x139(%rbp)
movb -0x139(%rbp), %al
testb $0x1, %al
jne 0x28b9a
jmp 0x28bad
jmp 0x28b9c
movl -0x94(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x94(%rbp)
jmp 0x28b61
movl -0x94(%rbp), %eax
addl $0x1, %eax
cmpl -0x64(%rbp), %eax
jb 0x28bce
movq -0x8(%rbp), %rax
movl $0x4b, 0x120(%rax)
jmp 0x28d45
movl -0x94(%rbp), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %edi
callq 0x5570
movq %rax, -0x88(%rbp)
cmpq $0x0, -0x88(%rbp)
jne 0x28c04
movq -0x8(%rbp), %rax
movl $0x26d2, 0x120(%rax)    # imm = 0x26D2
jmp 0x28d45
movq -0x88(%rbp), %rax
movl -0x94(%rbp), %ecx
movb $0x0, (%rax,%rcx)
movq $0x0, -0x40(%rbp)
movq -0x40(%rbp), %rax
movl -0x94(%rbp), %ecx
cmpq %rcx, %rax
jae 0x28c53
movq -0x70(%rbp), %rax
movq -0x40(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x88(%rbp), %rax
movq -0x40(%rbp), %rcx
movb %dl, (%rax,%rcx)
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x28c1d
movl -0x94(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x98(%rbp)
movl -0x98(%rbp), %eax
cmpl -0x64(%rbp), %eax
jbe 0x28c80
movq -0x8(%rbp), %rax
movl $0x4b, 0x120(%rax)
jmp 0x28d45
movl -0x64(%rbp), %eax
subl -0x98(%rbp), %eax
movl %eax, -0x94(%rbp)
movl -0x94(%rbp), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %edi
callq 0x5570
movq %rax, -0x90(%rbp)
cmpq $0x0, -0x90(%rbp)
jne 0x28cc5
movq -0x8(%rbp), %rax
movl $0x26d3, 0x120(%rax)    # imm = 0x26D3
jmp 0x28d45
movq -0x90(%rbp), %rax
movl -0x94(%rbp), %ecx
movb $0x0, (%rax,%rcx)
movq $0x0, -0x40(%rbp)
movq -0x40(%rbp), %rax
movl -0x94(%rbp), %ecx
cmpq %rcx, %rax
jae 0x28d1a
movq -0x70(%rbp), %rax
movl -0x98(%rbp), %ecx
addq -0x40(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x90(%rbp), %rax
movq -0x40(%rbp), %rcx
movb %dl, (%rax,%rcx)
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x28cde
movq -0x8(%rbp), %rdi
addq $0x40, %rdi
addq $0x50, %rdi
movq -0x88(%rbp), %rsi
movq -0x90(%rbp), %rdx
callq 0x266b0
movl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x120(%rax)
movq -0x88(%rbp), %rdi
callq 0x54b0
movq -0x90(%rbp), %rdi
callq 0x54b0
jmp 0x297c9
movq -0x38(%rbp), %rdi
leaq 0x22e04(%rip), %rsi     # 0x4bb71
callq 0x25ae0
cmpb $0x0, %al
je 0x28fd0
movq -0x8(%rbp), %rax
cmpl $0x0, 0xc(%rax)
je 0x28fcb
movq $0x0, -0xa8(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0x25960
movq -0x8(%rbp), %rax
cmpl $0x0, 0x120(%rax)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x28db8
jmp 0x28f9f
movl $0x0, -0x9c(%rbp)
movl -0x9c(%rbp), %ecx
xorl %eax, %eax
cmpl -0x64(%rbp), %ecx
movb %al, -0x13a(%rbp)
jae 0x28def
movq -0x70(%rbp), %rax
movl -0x9c(%rbp), %ecx
movzbl (%rax,%rcx), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x13a(%rbp)
movb -0x13a(%rbp), %al
testb $0x1, %al
jne 0x28dfb
jmp 0x28e0e
jmp 0x28dfd
movl -0x9c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x9c(%rbp)
jmp 0x28dc2
movl -0x9c(%rbp), %eax
addl $0x2, %eax
cmpl -0x64(%rbp), %eax
jb 0x28e2f
movq -0x8(%rbp), %rax
movl $0x4b, 0x120(%rax)
jmp 0x28f9f
movl -0x9c(%rbp), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %edi
callq 0x5570
movq %rax, -0xa8(%rbp)
cmpq $0x0, -0xa8(%rbp)
jne 0x28e65
movq -0x8(%rbp), %rax
movl $0x26d4, 0x120(%rax)    # imm = 0x26D4
jmp 0x28f9f
movq -0xa8(%rbp), %rax
movl -0x9c(%rbp), %ecx
movb $0x0, (%rax,%rcx)
movq $0x0, -0x40(%rbp)
movq -0x40(%rbp), %rax
movl -0x9c(%rbp), %ecx
cmpq %rcx, %rax
jae 0x28eb4
movq -0x70(%rbp), %rax
movq -0x40(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0xa8(%rbp), %rax
movq -0x40(%rbp), %rcx
movb %dl, (%rax,%rcx)
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x28e7e
movq -0x70(%rbp), %rax
movl -0x9c(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, %ecx
movzbl (%rax,%rcx), %eax
cmpl $0x0, %eax
je 0x28edf
movq -0x8(%rbp), %rax
movl $0x48, 0x120(%rax)
jmp 0x28f9f
movl -0x9c(%rbp), %eax
addl $0x2, %eax
movl %eax, -0xa0(%rbp)
movl -0xa0(%rbp), %eax
cmpl -0x64(%rbp), %eax
jbe 0x28f0c
movq -0x8(%rbp), %rax
movl $0x4b, 0x120(%rax)
jmp 0x28f9f
movl -0x64(%rbp), %eax
subl -0xa0(%rbp), %eax
movl %eax, -0x9c(%rbp)
leaq -0xc0(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
addq $0x8, %rsi
movq -0x70(%rbp), %rdx
movl -0xa0(%rbp), %eax
addq %rax, %rdx
movl -0x9c(%rbp), %eax
movl %eax, %ecx
movq -0x8(%rbp), %r8
callq 0x2f7e0
movl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x120(%rax)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x120(%rax)
je 0x28f66
jmp 0x28f9f
leaq -0xc0(%rbp), %rdi
xorl %esi, %esi
callq 0x25570
movq -0x8(%rbp), %rdi
addq $0x40, %rdi
addq $0x50, %rdi
movq -0xa8(%rbp), %rsi
movq -0xc0(%rbp), %rdx
callq 0x266b0
movl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x120(%rax)
movq -0xa8(%rbp), %rdi
callq 0x54b0
leaq -0xc0(%rbp), %rdi
callq 0x25990
movq -0x8(%rbp), %rax
cmpl $0x0, 0x120(%rax)
je 0x28fc9
jmp 0x2981b
jmp 0x28fcb
jmp 0x297c7
movq -0x38(%rbp), %rdi
leaq 0x22b9b(%rip), %rsi     # 0x4bb76
callq 0x25ae0
cmpb $0x0, %al
je 0x295a9
movq -0x8(%rbp), %rax
cmpl $0x0, 0xc(%rax)
je 0x295a4
movq $0x0, -0xd8(%rbp)
movq $0x0, -0xe0(%rbp)
movq $0x0, -0xe8(%rbp)
leaq -0x100(%rbp), %rdi
callq 0x25960
movq -0x8(%rbp), %rax
cmpl $0x0, 0x120(%rax)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x2903c
jmp 0x29560
cmpl $0x5, -0x64(%rbp)
jae 0x29055
movq -0x8(%rbp), %rax
movl $0x4c, 0x120(%rax)
jmp 0x29560
movl $0x0, -0xc4(%rbp)
movl -0xc4(%rbp), %ecx
xorl %eax, %eax
cmpl -0x64(%rbp), %ecx
movb %al, -0x13b(%rbp)
jae 0x2908c
movq -0x70(%rbp), %rax
movl -0xc4(%rbp), %ecx
movzbl (%rax,%rcx), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x13b(%rbp)
movb -0x13b(%rbp), %al
testb $0x1, %al
jne 0x29098
jmp 0x290ab
jmp 0x2909a
movl -0xc4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc4(%rbp)
jmp 0x2905f
movl -0xc4(%rbp), %eax
addl $0x2, %eax
cmpl -0x64(%rbp), %eax
jb 0x290cc
movq -0x8(%rbp), %rax
movl $0x4b, 0x120(%rax)
jmp 0x29560
movl -0xc4(%rbp), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %edi
callq 0x5570
movq %rax, -0xd8(%rbp)
cmpq $0x0, -0xd8(%rbp)
jne 0x29102
movq -0x8(%rbp), %rax
movl $0x26d5, 0x120(%rax)    # imm = 0x26D5
jmp 0x29560
movq -0xd8(%rbp), %rax
movl -0xc4(%rbp), %ecx
movb $0x0, (%rax,%rcx)
movq $0x0, -0x40(%rbp)
movq -0x40(%rbp), %rax
movl -0xc4(%rbp), %ecx
cmpq %rcx, %rax
jae 0x29151
movq -0x70(%rbp), %rax
movq -0x40(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0xd8(%rbp), %rax
movq -0x40(%rbp), %rcx
movb %dl, (%rax,%rcx)
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x2911b
movq -0x70(%rbp), %rax
movl -0xc4(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, %ecx
movzbl (%rax,%rcx), %eax
movl %eax, -0xcc(%rbp)
movq -0x70(%rbp), %rax
movl -0xc4(%rbp), %ecx
addl $0x2, %ecx
movl %ecx, %ecx
movzbl (%rax,%rcx), %eax
cmpl $0x0, %eax
je 0x29195
movq -0x8(%rbp), %rax
movl $0x48, 0x120(%rax)
jmp 0x29560
movl -0xc4(%rbp), %eax
addl $0x3, %eax
movl %eax, -0xc8(%rbp)
movl $0x0, -0xc4(%rbp)
movl -0xc8(%rbp), %eax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rcx
movl -0x64(%rbp), %eax
movl %eax, %edx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x13c(%rbp)
jae 0x291e6
movq -0x70(%rbp), %rax
movq -0x40(%rbp), %rcx
movzbl (%rax,%rcx), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x13c(%rbp)
movb -0x13c(%rbp), %al
testb $0x1, %al
jne 0x291f2
jmp 0x2920f
movl -0xc4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc4(%rbp)
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x291b8
movl -0xc8(%rbp), %eax
addl -0xc4(%rbp), %eax
addl $0x1, %eax
cmpl -0x64(%rbp), %eax
jb 0x29236
movq -0x8(%rbp), %rax
movl $0x4b, 0x120(%rax)
jmp 0x29560
movl -0xc4(%rbp), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %edi
callq 0x5570
movq %rax, -0xe0(%rbp)
cmpq $0x0, -0xe0(%rbp)
jne 0x2926c
movq -0x8(%rbp), %rax
movl $0x26d6, 0x120(%rax)    # imm = 0x26D6
jmp 0x29560
movq -0xe0(%rbp), %rax
movl -0xc4(%rbp), %ecx
movb $0x0, (%rax,%rcx)
movq $0x0, -0x40(%rbp)
movq -0x40(%rbp), %rax
movl -0xc4(%rbp), %ecx
cmpq %rcx, %rax
jae 0x292c1
movq -0x70(%rbp), %rax
movl -0xc8(%rbp), %ecx
addq -0x40(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0xe0(%rbp), %rax
movq -0x40(%rbp), %rcx
movb %dl, (%rax,%rcx)
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x29285
movl -0xc4(%rbp), %eax
addl $0x1, %eax
addl -0xc8(%rbp), %eax
movl %eax, -0xc8(%rbp)
movl $0x0, -0xc4(%rbp)
movl -0xc8(%rbp), %eax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rcx
movl -0x64(%rbp), %eax
movl %eax, %edx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x13d(%rbp)
jae 0x29318
movq -0x70(%rbp), %rax
movq -0x40(%rbp), %rcx
movzbl (%rax,%rcx), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x13d(%rbp)
movb -0x13d(%rbp), %al
testb $0x1, %al
jne 0x29324
jmp 0x29341
movl -0xc4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc4(%rbp)
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x292ea
movl -0xc8(%rbp), %eax
addl -0xc4(%rbp), %eax
addl $0x1, %eax
cmpl -0x64(%rbp), %eax
jb 0x29368
movq -0x8(%rbp), %rax
movl $0x4b, 0x120(%rax)
jmp 0x29560
movl -0xc4(%rbp), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %edi
callq 0x5570
movq %rax, -0xe8(%rbp)
cmpq $0x0, -0xe8(%rbp)
jne 0x2939e
movq -0x8(%rbp), %rax
movl $0x26d7, 0x120(%rax)    # imm = 0x26D7
jmp 0x29560
movq -0xe8(%rbp), %rax
movl -0xc4(%rbp), %ecx
movb $0x0, (%rax,%rcx)
movq $0x0, -0x40(%rbp)
movq -0x40(%rbp), %rax
movl -0xc4(%rbp), %ecx
cmpq %rcx, %rax
jae 0x293f3
movq -0x70(%rbp), %rax
movl -0xc8(%rbp), %ecx
addq -0x40(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0xe8(%rbp), %rax
movq -0x40(%rbp), %rcx
movb %dl, (%rax,%rcx)
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x293b7
movl -0xc4(%rbp), %eax
addl $0x1, %eax
addl -0xc8(%rbp), %eax
movl %eax, -0xc8(%rbp)
movl -0xc8(%rbp), %eax
cmpl -0x64(%rbp), %eax
jbe 0x29426
movq -0x8(%rbp), %rax
movl $0x4b, 0x120(%rax)
jmp 0x29560
movl -0x64(%rbp), %eax
subl -0xc8(%rbp), %eax
movl %eax, -0xc4(%rbp)
cmpl $0x0, -0xcc(%rbp)
je 0x2949f
leaq -0x100(%rbp), %rdi
leaq -0x100(%rbp), %rsi
addq $0x8, %rsi
movq -0x70(%rbp), %rdx
movl -0xc8(%rbp), %eax
addq %rax, %rdx
movl -0xc4(%rbp), %eax
movl %eax, %ecx
movq -0x8(%rbp), %r8
callq 0x2f7e0
movl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x120(%rax)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x120(%rax)
je 0x2948c
jmp 0x29560
leaq -0x100(%rbp), %rdi
xorl %esi, %esi
callq 0x25570
jmp 0x29527
movl -0xc4(%rbp), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
leaq -0x100(%rbp), %rdi
callq 0x24470
cmpl $0x0, %eax
jne 0x294d0
movq -0x8(%rbp), %rax
movl $0x26d8, 0x120(%rax)    # imm = 0x26D8
jmp 0x29560
movq -0x100(%rbp), %rax
movl -0xc4(%rbp), %ecx
movb $0x0, (%rax,%rcx)
movq $0x0, -0x40(%rbp)
movq -0x40(%rbp), %rax
movl -0xc4(%rbp), %ecx
cmpq %rcx, %rax
jae 0x29525
movq -0x70(%rbp), %rax
movl -0xc8(%rbp), %ecx
addq -0x40(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x100(%rbp), %rax
movq -0x40(%rbp), %rcx
movb %dl, (%rax,%rcx)
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x294e9
jmp 0x29527
movq -0x8(%rbp), %rdi
addq $0x40, %rdi
addq $0x68, %rdi
movq -0xd8(%rbp), %rsi
movq -0xe0(%rbp), %rdx
movq -0xe8(%rbp), %rcx
movq -0x100(%rbp), %r8
callq 0x26b00
movl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x120(%rax)
movq -0xd8(%rbp), %rdi
callq 0x54b0
movq -0xe0(%rbp), %rdi
callq 0x54b0
movq -0xe8(%rbp), %rdi
callq 0x54b0
leaq -0x100(%rbp), %rdi
callq 0x25990
movq -0x8(%rbp), %rax
cmpl $0x0, 0x120(%rax)
je 0x295a2
jmp 0x2981b
jmp 0x295a4
jmp 0x297c5
movq -0x38(%rbp), %rdi
leaq 0x225c7(%rip), %rsi     # 0x4bb7b
callq 0x25ae0
cmpb $0x0, %al
je 0x2965d
cmpl $0x7, -0x64(%rbp)
je 0x295da
movq -0x8(%rbp), %rax
movl $0x49, 0x120(%rax)
jmp 0x2981b
movq -0x8(%rbp), %rax
movb $0x1, 0xd0(%rax)
movq -0x70(%rbp), %rax
movzbl (%rax), %ecx
shll $0x8, %ecx
movq -0x70(%rbp), %rax
movzbl 0x1(%rax), %eax
addl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0xd4(%rax)
movq -0x70(%rbp), %rax
movb 0x2(%rax), %cl
movq -0x8(%rbp), %rax
movb %cl, 0xd8(%rax)
movq -0x70(%rbp), %rax
movb 0x3(%rax), %cl
movq -0x8(%rbp), %rax
movb %cl, 0xd9(%rax)
movq -0x70(%rbp), %rax
movb 0x4(%rax), %cl
movq -0x8(%rbp), %rax
movb %cl, 0xda(%rax)
movq -0x70(%rbp), %rax
movb 0x5(%rax), %cl
movq -0x8(%rbp), %rax
movb %cl, 0xdb(%rax)
movq -0x70(%rbp), %rax
movb 0x6(%rax), %cl
movq -0x8(%rbp), %rax
movb %cl, 0xdc(%rax)
jmp 0x297c3
movq -0x38(%rbp), %rdi
leaq 0x22518(%rip), %rsi     # 0x4bb80
callq 0x25ae0
cmpb $0x0, %al
je 0x29723
cmpl $0x9, -0x64(%rbp)
je 0x2968e
movq -0x8(%rbp), %rax
movl $0x4a, 0x120(%rax)
jmp 0x2981b
movq -0x8(%rbp), %rax
movl $0x1, 0xe0(%rax)
movq -0x70(%rbp), %rax
movzbl (%rax), %ecx
shll $0x18, %ecx
movq -0x70(%rbp), %rax
movzbl 0x1(%rax), %eax
shll $0x10, %eax
addl %eax, %ecx
movq -0x70(%rbp), %rax
movzbl 0x2(%rax), %eax
shll $0x8, %eax
addl %eax, %ecx
movq -0x70(%rbp), %rax
movzbl 0x3(%rax), %eax
addl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0xe4(%rax)
movq -0x70(%rbp), %rax
movzbl 0x4(%rax), %ecx
shll $0x18, %ecx
movq -0x70(%rbp), %rax
movzbl 0x5(%rax), %eax
shll $0x10, %eax
addl %eax, %ecx
movq -0x70(%rbp), %rax
movzbl 0x6(%rax), %eax
shll $0x8, %eax
addl %eax, %ecx
movq -0x70(%rbp), %rax
movzbl 0x7(%rax), %eax
addl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0xe8(%rax)
movq -0x70(%rbp), %rax
movb 0x8(%rax), %cl
movq -0x8(%rbp), %rax
movb %cl, 0xec(%rax)
jmp 0x297c1
movq -0x38(%rbp), %rdi
callq 0x25b80
cmpb $0x0, %al
je 0x29743
movq -0x8(%rbp), %rax
movl $0x45, 0x120(%rax)
jmp 0x2981b
movl $0x1, -0x5c(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x10(%rax)
je 0x297bf
movq -0x8(%rbp), %rax
addq $0x40, %rax
addq $0xb0, %rax
movq %rax, -0x108(%rbp)
movq -0x108(%rbp), %rdi
movl -0x60(%rbp), %eax
subl $0x1, %eax
movl %eax, %eax
shlq $0x3, %rax
addq %rax, %rdi
movq -0x108(%rbp), %rsi
addq $0x18, %rsi
movl -0x60(%rbp), %eax
subl $0x1, %eax
movl %eax, %eax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x38(%rbp), %rdx
callq 0x25de0
movl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x120(%rax)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x120(%rax)
je 0x297bd
jmp 0x2981b
jmp 0x297bf
jmp 0x297c1
jmp 0x297c3
jmp 0x297c5
jmp 0x297c7
jmp 0x297c9
jmp 0x297cb
jmp 0x297cd
jmp 0x297cf
jmp 0x297d1
jmp 0x297d3
movq -0x8(%rbp), %rax
cmpl $0x0, 0x4(%rax)
jne 0x29803
cmpl $0x0, -0x5c(%rbp)
jne 0x29803
movq -0x38(%rbp), %rdi
callq 0x25c20
cmpl $0x0, %eax
je 0x29801
movq -0x8(%rbp), %rax
movl $0x39, 0x120(%rax)
jmp 0x2981b
jmp 0x29803
cmpb $0x0, -0x29(%rbp)
jne 0x29816
movq -0x38(%rbp), %rdi
callq 0x25db0
movq %rax, -0x38(%rbp)
jmp 0x28500
movq -0x8(%rbp), %rax
cmpl $0x0, 0x120(%rax)
jne 0x299b8
leaq -0x120(%rbp), %rdi
callq 0x25960
movq -0x8(%rbp), %rax
movl 0x40(%rax), %eax
movl %eax, -0x144(%rbp)
movq -0x8(%rbp), %rax
movl 0x44(%rax), %eax
movl %eax, -0x148(%rbp)
movq -0x8(%rbp), %rdi
addq $0x40, %rdi
addq $0x18, %rdi
callq 0x26220
movl -0x148(%rbp), %ecx
movl %eax, %edx
movl -0x144(%rbp), %eax
imull %edx, %ecx
addl $0x7, %ecx
imull %ecx, %eax
shrl $0x3, %eax
movq -0x8(%rbp), %rcx
addl 0x44(%rcx), %eax
movl %eax, %eax
movl %eax, %esi
leaq -0x120(%rbp), %rdi
callq 0x24470
cmpl $0x0, %eax
jne 0x298a7
movq -0x8(%rbp), %rax
movl $0x26d9, 0x120(%rax)    # imm = 0x26D9
movq -0x8(%rbp), %rax
cmpl $0x0, 0x120(%rax)
jne 0x298e3
leaq -0x120(%rbp), %rdi
leaq -0x120(%rbp), %rsi
addq $0x8, %rsi
movq -0x58(%rbp), %rdx
movq -0x50(%rbp), %rcx
movq -0x8(%rbp), %r8
callq 0x2f7e0
movl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x120(%rax)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x120(%rax)
jne 0x299ac
leaq -0x138(%rbp), %rdi
callq 0x25960
movq -0x8(%rbp), %rax
movl 0x44(%rax), %eax
movq -0x8(%rbp), %rcx
imull 0x40(%rcx), %eax
movl %eax, -0x14c(%rbp)
movq -0x8(%rbp), %rdi
addq $0x40, %rdi
addq $0x18, %rdi
callq 0x26220
movl %eax, %ecx
movl -0x14c(%rbp), %eax
imull %ecx, %eax
addl $0x7, %eax
shrl $0x3, %eax
movl %eax, %eax
movl %eax, %esi
leaq -0x138(%rbp), %rdi
xorl %edx, %edx
callq 0x2f820
cmpl $0x0, %eax
jne 0x2995c
movq -0x8(%rbp), %rax
movl $0x26da, 0x120(%rax)    # imm = 0x26DA
movq -0x8(%rbp), %rax
cmpl $0x0, 0x120(%rax)
jne 0x29990
movq -0x138(%rbp), %rdi
movq -0x120(%rbp), %rsi
movq -0x8(%rbp), %rdx
addq $0x40, %rdx
callq 0x2f8a0
movl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x120(%rax)
movq -0x138(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x130(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
leaq -0x120(%rbp), %rdi
callq 0x25990
leaq -0x58(%rbp), %rdi
callq 0x25990
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
nopw (%rax,%rax)