// File: srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__create_png_image_raw(stbi__png*, unsigned char*, unsigned int, int, unsigned int, unsigned int, int, int)
static int stbi__create_png_image_raw(stbi__png *a, stbi_uc *raw, stbi__uint32 raw_len, int out_n, stbi__uint32 x, stbi__uint32 y, int depth, int color)
{
   stbi__context *s = a->s;
   stbi__uint32 i,j,stride = x*out_n;
   stbi__uint32 img_len, img_width_bytes;
   int k;
   int img_n = s->img_n; // copy it into a local for later

   STBI_ASSERT(out_n == s->img_n || out_n == s->img_n+1);
   a->out = (stbi_uc *) stbi__malloc(x * y * out_n); // extra bytes to write off the end into
   if (!a->out) return stbi__err("outofmem", "Out of memory");

   img_width_bytes = (((img_n * x * depth) + 7) >> 3);
   img_len = (img_width_bytes + 1) * y;
   if (s->img_x == x && s->img_y == y) {
      if (raw_len != img_len) return stbi__err("not enough pixels","Corrupt PNG");
   } else { // interlaced:
      if (raw_len < img_len) return stbi__err("not enough pixels","Corrupt PNG");
   }

   for (j=0; j < y; ++j) {
      stbi_uc *cur = a->out + stride*j;
      stbi_uc *prior = cur - stride;
      int filter = *raw++;
      int filter_bytes = img_n;
      int width = x;
      if (filter > 4)
         return stbi__err("invalid filter","Corrupt PNG");

      if (depth < 8) {
         STBI_ASSERT(img_width_bytes <= x);
         cur += x*out_n - img_width_bytes; // store output to the rightmost img_len bytes, so we can decode in place
         filter_bytes = 1;
         width = img_width_bytes;
      }

      // if first row, use special filter that doesn't sample previous row
      if (j == 0) filter = first_row_filter[filter];

      // handle first byte explicitly
      for (k=0; k < filter_bytes; ++k) {
         switch (filter) {
            case STBI__F_none       : cur[k] = raw[k]; break;
            case STBI__F_sub        : cur[k] = raw[k]; break;
            case STBI__F_up         : cur[k] = STBI__BYTECAST(raw[k] + prior[k]); break;
            case STBI__F_avg        : cur[k] = STBI__BYTECAST(raw[k] + (prior[k]>>1)); break;
            case STBI__F_paeth      : cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(0,prior[k],0)); break;
            case STBI__F_avg_first  : cur[k] = raw[k]; break;
            case STBI__F_paeth_first: cur[k] = raw[k]; break;
         }
      }

      if (depth == 8) {
         if (img_n != out_n)
            cur[img_n] = 255; // first pixel
         raw += img_n;
         cur += out_n;
         prior += out_n;
      } else {
         raw += 1;
         cur += 1;
         prior += 1;
      }

      // this is a little gross, so that we don't switch per-pixel or per-component
      if (depth < 8 || img_n == out_n) {
         int nk = (width - 1)*img_n;
         #define CASE(f) \
             case f:     \
                for (k=0; k < nk; ++k)
         switch (filter) {
            // "none" filter turns into a memcpy here; make that explicit.
            case STBI__F_none:         memcpy(cur, raw, nk); break;
            CASE(STBI__F_sub)          cur[k] = STBI__BYTECAST(raw[k] + cur[k-filter_bytes]); break;
            CASE(STBI__F_up)           cur[k] = STBI__BYTECAST(raw[k] + prior[k]); break;
            CASE(STBI__F_avg)          cur[k] = STBI__BYTECAST(raw[k] + ((prior[k] + cur[k-filter_bytes])>>1)); break;
            CASE(STBI__F_paeth)        cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-filter_bytes],prior[k],prior[k-filter_bytes])); break;
            CASE(STBI__F_avg_first)    cur[k] = STBI__BYTECAST(raw[k] + (cur[k-filter_bytes] >> 1)); break;
            CASE(STBI__F_paeth_first)  cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-filter_bytes],0,0)); break;
         }
         #undef CASE
         raw += nk;
      } else {
         STBI_ASSERT(img_n+1 == out_n);
         #define CASE(f) \
             case f:     \
                for (i=x-1; i >= 1; --i, cur[img_n]=255,raw+=img_n,cur+=out_n,prior+=out_n) \
                   for (k=0; k < img_n; ++k)
         switch (filter) {
            CASE(STBI__F_none)         cur[k] = raw[k]; break;
            CASE(STBI__F_sub)          cur[k] = STBI__BYTECAST(raw[k] + cur[k-out_n]); break;
            CASE(STBI__F_up)           cur[k] = STBI__BYTECAST(raw[k] + prior[k]); break;
            CASE(STBI__F_avg)          cur[k] = STBI__BYTECAST(raw[k] + ((prior[k] + cur[k-out_n])>>1)); break;
            CASE(STBI__F_paeth)        cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-out_n],prior[k],prior[k-out_n])); break;
            CASE(STBI__F_avg_first)    cur[k] = STBI__BYTECAST(raw[k] + (cur[k-out_n] >> 1)); break;
            CASE(STBI__F_paeth_first)  cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-out_n],0,0)); break;
         }
         #undef CASE
      }
   }

   // we make a separate pass to expand bits to pixels; for performance,
   // this could run two scanlines behind the above code, so it won't
   // intefere with filtering but will still be in the cache.
   if (depth < 8) {
      for (j=0; j < y; ++j) {
         stbi_uc *cur = a->out + stride*j;
         stbi_uc *in  = a->out + stride*j + x*out_n - img_width_bytes;
         // unpack 1/2/4-bit into a 8-bit buffer. allows us to keep the common 8-bit path optimal at minimal cost for 1/2/4-bit
         // png guarante byte alignment, if width is not multiple of 8/4/2 we'll decode dummy trailing data that will be skipped in the later loop
         stbi_uc scale = (color == 0) ? stbi__depth_scale_table[depth] : 1; // scale grayscale values to 0..255 range

         // note that the final byte might overshoot and write more data than desired.
         // we can allocate enough data that this never writes out of memory, but it
         // could also overwrite the next scanline. can it overwrite non-empty data
         // on the next scanline? yes, consider 1-pixel-wide scanlines with 1-bit-per-pixel.
         // so we need to explicitly clamp the final ones

         if (depth == 4) {
            for (k=x*img_n; k >= 2; k-=2, ++in) {
               *cur++ = scale * ((*in >> 4)       );
               *cur++ = scale * ((*in     ) & 0x0f);
            }
            if (k > 0) *cur++ = scale * ((*in >> 4)       );
         } else if (depth == 2) {
            for (k=x*img_n; k >= 4; k-=4, ++in) {
               *cur++ = scale * ((*in >> 6)       );
               *cur++ = scale * ((*in >> 4) & 0x03);
               *cur++ = scale * ((*in >> 2) & 0x03);
               *cur++ = scale * ((*in     ) & 0x03);
            }
            if (k > 0) *cur++ = scale * ((*in >> 6)       );
            if (k > 1) *cur++ = scale * ((*in >> 4) & 0x03);
            if (k > 2) *cur++ = scale * ((*in >> 2) & 0x03);
         } else if (depth == 1) {
            for (k=x*img_n; k >= 8; k-=8, ++in) {
               *cur++ = scale * ((*in >> 7)       );
               *cur++ = scale * ((*in >> 6) & 0x01);
               *cur++ = scale * ((*in >> 5) & 0x01);
               *cur++ = scale * ((*in >> 4) & 0x01);
               *cur++ = scale * ((*in >> 3) & 0x01);
               *cur++ = scale * ((*in >> 2) & 0x01);
               *cur++ = scale * ((*in >> 1) & 0x01);
               *cur++ = scale * ((*in     ) & 0x01);
            }
            if (k > 0) *cur++ = scale * ((*in >> 7)       );
            if (k > 1) *cur++ = scale * ((*in >> 6) & 0x01);
            if (k > 2) *cur++ = scale * ((*in >> 5) & 0x01);
            if (k > 3) *cur++ = scale * ((*in >> 4) & 0x01);
            if (k > 4) *cur++ = scale * ((*in >> 3) & 0x01);
            if (k > 5) *cur++ = scale * ((*in >> 2) & 0x01);
            if (k > 6) *cur++ = scale * ((*in >> 1) & 0x01);
         }
         if (img_n != out_n) {
            int q;
            // insert alpha = 255
            cur = a->out + stride*j;
            if (img_n == 1) {
               for (q=x-1; q >= 0; --q) {
                  cur[q*2+1] = 255;
                  cur[q*2+0] = cur[q];
               }
            } else {
               STBI_ASSERT(img_n == 3);
               for (q=x-1; q >= 0; --q) {
                  cur[q*4+3] = 255;
                  cur[q*4+2] = cur[q*3+2];
                  cur[q*4+1] = cur[q*3+1];
                  cur[q*4+0] = cur[q*3+0];
               }
            }
         }
      }
   }

   return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %eax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movl %ecx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movl %r9d, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x30(%rbp)
movl -0x24(%rbp), %eax
imull -0x20(%rbp), %eax
movl %eax, -0x3c(%rbp)
movq -0x30(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x4c(%rbp)
movl -0x20(%rbp), %ecx
movq -0x30(%rbp), %rdx
movb $0x1, %al
cmpl 0x8(%rdx), %ecx
movb %al, -0x89(%rbp)
je 0x31f62
movl -0x20(%rbp), %eax
movq -0x30(%rbp), %rcx
movl 0x8(%rcx), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
sete %al
movb %al, -0x89(%rbp)
movb -0x89(%rbp), %al
testb $0x1, %al
jne 0x31f6e
jmp 0x31f70
jmp 0x31f8f
leaq 0x1630b(%rip), %rdi     # 0x48282
leaq 0x16137(%rip), %rsi     # 0x480b5
movl $0xf94, %edx            # imm = 0xF94
leaq 0x16321(%rip), %rcx     # 0x482ab
callq 0x52c0
movl -0x24(%rbp), %eax
imull -0x28(%rbp), %eax
imull -0x20(%rbp), %eax
movl %eax, %eax
movl %eax, %edi
callq 0x27f20
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x18(%rax)
jne 0x31fcd
leaq 0x16025(%rip), %rdi     # 0x47fe5
callq 0x275b0
movl %eax, -0x4(%rbp)
jmp 0x33230
movl -0x4c(%rbp), %eax
imull -0x24(%rbp), %eax
imull 0x10(%rbp), %eax
addl $0x7, %eax
shrl $0x3, %eax
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %eax
addl $0x1, %eax
imull -0x28(%rbp), %eax
movl %eax, -0x40(%rbp)
movq -0x30(%rbp), %rax
movl (%rax), %eax
cmpl -0x24(%rbp), %eax
jne 0x32023
movq -0x30(%rbp), %rax
movl 0x4(%rax), %eax
cmpl -0x28(%rbp), %eax
jne 0x32023
movl -0x1c(%rbp), %eax
cmpl -0x40(%rbp), %eax
je 0x32021
leaq 0x16307(%rip), %rdi     # 0x4831b
callq 0x275b0
movl %eax, -0x4(%rbp)
jmp 0x33230
jmp 0x32041
movl -0x1c(%rbp), %eax
cmpl -0x40(%rbp), %eax
jae 0x3203f
leaq 0x162e9(%rip), %rdi     # 0x4831b
callq 0x275b0
movl %eax, -0x4(%rbp)
jmp 0x33230
jmp 0x32041
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpl -0x28(%rbp), %eax
jae 0x32b10
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x3c(%rbp), %ecx
imull -0x38(%rbp), %ecx
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movl -0x3c(%rbp), %ecx
movl %ecx, %edx
xorl %ecx, %ecx
subq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
movzbl (%rax), %eax
movl %eax, -0x64(%rbp)
movl -0x4c(%rbp), %eax
movl %eax, -0x68(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x6c(%rbp)
cmpl $0x4, -0x64(%rbp)
jle 0x320bc
leaq 0x1627e(%rip), %rdi     # 0x4832d
callq 0x275b0
movl %eax, -0x4(%rbp)
jmp 0x33230
cmpl $0x8, 0x10(%rbp)
jge 0x3210f
movl -0x44(%rbp), %eax
cmpl -0x24(%rbp), %eax
ja 0x320cc
jmp 0x320eb
leaq 0x16269(%rip), %rdi     # 0x4833c
leaq 0x15fdb(%rip), %rsi     # 0x480b5
movl $0xfaa, %edx            # imm = 0xFAA
leaq 0x161c5(%rip), %rcx     # 0x482ab
callq 0x52c0
movl -0x24(%rbp), %ecx
imull -0x20(%rbp), %ecx
subl -0x44(%rbp), %ecx
movq -0x58(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movl $0x1, -0x68(%rbp)
movl -0x44(%rbp), %eax
movl %eax, -0x6c(%rbp)
cmpl $0x0, -0x38(%rbp)
jne 0x32127
movslq -0x64(%rbp), %rcx
leaq 0x2a3f9(%rip), %rax     # 0x5c519
movzbl (%rax,%rcx), %eax
movl %eax, -0x64(%rbp)
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x68(%rbp), %eax
jge 0x3227f
movl -0x64(%rbp), %eax
movq %rax, -0x98(%rbp)
subq $0x6, %rax
ja 0x3226f
movq -0x98(%rbp), %rax
leaq 0x15c34(%rip), %rcx     # 0x47d90
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x18(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x58(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb %dl, (%rax,%rcx)
jmp 0x3226f
movq -0x18(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x58(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb %dl, (%rax,%rcx)
jmp 0x3226f
movq -0x18(%rbp), %rax
movslq -0x48(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movq -0x60(%rbp), %rcx
movslq -0x48(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
addl %ecx, %eax
andl $0xff, %eax
movb %al, %dl
movq -0x58(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb %dl, (%rax,%rcx)
jmp 0x3226f
movq -0x18(%rbp), %rax
movslq -0x48(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movq -0x60(%rbp), %rcx
movslq -0x48(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
sarl %ecx
addl %ecx, %eax
andl $0xff, %eax
movb %al, %dl
movq -0x58(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb %dl, (%rax,%rcx)
jmp 0x3226f
movq -0x18(%rbp), %rax
movslq -0x48(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, -0x9c(%rbp)
movq -0x60(%rbp), %rax
movslq -0x48(%rbp), %rcx
movzbl (%rax,%rcx), %esi
xorl %edx, %edx
movl %edx, %edi
callq 0x33240
movl %eax, %ecx
movl -0x9c(%rbp), %eax
addl %ecx, %eax
andl $0xff, %eax
movb %al, %dl
movq -0x58(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb %dl, (%rax,%rcx)
jmp 0x3226f
movq -0x18(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x58(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb %dl, (%rax,%rcx)
jmp 0x3226f
movq -0x18(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x58(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb %dl, (%rax,%rcx)
jmp 0x32271
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x3212e
cmpl $0x8, 0x10(%rbp)
jne 0x322ce
movl -0x4c(%rbp), %eax
cmpl -0x20(%rbp), %eax
je 0x32299
movq -0x58(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movb $-0x1, (%rax,%rcx)
movl -0x4c(%rbp), %ecx
movq -0x18(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movl -0x20(%rbp), %ecx
movq -0x58(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movl -0x20(%rbp), %ecx
movq -0x60(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
jmp 0x322f2
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
movq -0x58(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x58(%rbp)
movq -0x60(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x60(%rbp)
cmpl $0x8, 0x10(%rbp)
jl 0x32304
movl -0x4c(%rbp), %eax
cmpl -0x20(%rbp), %eax
jne 0x32597
movl -0x6c(%rbp), %eax
decl %eax
movl -0x4c(%rbp), %ecx
imull %ecx, %eax
movl %eax, -0x70(%rbp)
movl -0x64(%rbp), %eax
movq %rax, -0xa8(%rbp)
subq $0x6, %rax
ja 0x32581
movq -0xa8(%rbp), %rax
leaq 0x15a40(%rip), %rcx     # 0x47d74
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x58(%rbp), %rdi
movq -0x18(%rbp), %rsi
movslq -0x70(%rbp), %rdx
callq 0x5370
jmp 0x32581
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x70(%rbp), %eax
jge 0x3239e
movq -0x18(%rbp), %rax
movslq -0x48(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movq -0x58(%rbp), %rcx
movl -0x48(%rbp), %edx
subl -0x68(%rbp), %edx
movslq %edx, %rdx
movzbl (%rcx,%rdx), %ecx
addl %ecx, %eax
andl $0xff, %eax
movb %al, %dl
movq -0x58(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x3235a
jmp 0x32581
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x70(%rbp), %eax
jge 0x323e9
movq -0x18(%rbp), %rax
movslq -0x48(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movq -0x60(%rbp), %rcx
movslq -0x48(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
addl %ecx, %eax
andl $0xff, %eax
movb %al, %dl
movq -0x58(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x323aa
jmp 0x32581
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x70(%rbp), %eax
jge 0x32449
movq -0x18(%rbp), %rax
movslq -0x48(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movq -0x60(%rbp), %rcx
movslq -0x48(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
movq -0x58(%rbp), %rdx
movl -0x48(%rbp), %esi
subl -0x68(%rbp), %esi
movslq %esi, %rsi
movzbl (%rdx,%rsi), %edx
addl %edx, %ecx
sarl %ecx
addl %ecx, %eax
andl $0xff, %eax
movb %al, %dl
movq -0x58(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x323f5
jmp 0x32581
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x70(%rbp), %eax
jge 0x324c9
movq -0x18(%rbp), %rax
movslq -0x48(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, -0xac(%rbp)
movq -0x58(%rbp), %rax
movl -0x48(%rbp), %ecx
subl -0x68(%rbp), %ecx
movslq %ecx, %rcx
movzbl (%rax,%rcx), %edi
movq -0x60(%rbp), %rax
movslq -0x48(%rbp), %rcx
movzbl (%rax,%rcx), %esi
movq -0x60(%rbp), %rax
movl -0x48(%rbp), %ecx
subl -0x68(%rbp), %ecx
movslq %ecx, %rcx
movzbl (%rax,%rcx), %edx
callq 0x33240
movl %eax, %ecx
movl -0xac(%rbp), %eax
addl %ecx, %eax
andl $0xff, %eax
movb %al, %dl
movq -0x58(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x32455
jmp 0x32581
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x70(%rbp), %eax
jge 0x3251b
movq -0x18(%rbp), %rax
movslq -0x48(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movq -0x58(%rbp), %rcx
movl -0x48(%rbp), %edx
subl -0x68(%rbp), %edx
movslq %edx, %rdx
movzbl (%rcx,%rdx), %ecx
sarl %ecx
addl %ecx, %eax
andl $0xff, %eax
movb %al, %dl
movq -0x58(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x324d5
jmp 0x32581
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x70(%rbp), %eax
jge 0x3257f
movq -0x18(%rbp), %rax
movslq -0x48(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, -0xb0(%rbp)
movq -0x58(%rbp), %rax
movl -0x48(%rbp), %ecx
subl -0x68(%rbp), %ecx
movslq %ecx, %rcx
movzbl (%rax,%rcx), %edi
xorl %edx, %edx
movl %edx, %esi
callq 0x33240
movl %eax, %ecx
movl -0xb0(%rbp), %eax
addl %ecx, %eax
andl $0xff, %eax
movb %al, %dl
movq -0x58(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x32524
jmp 0x32581
movl -0x70(%rbp), %ecx
movq -0x18(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
jmp 0x32b00
movl -0x4c(%rbp), %eax
addl $0x1, %eax
cmpl -0x20(%rbp), %eax
jne 0x325a4
jmp 0x325c3
leaq 0x15da6(%rip), %rdi     # 0x48351
leaq 0x15b03(%rip), %rsi     # 0x480b5
movl $0xfdf, %edx            # imm = 0xFDF
leaq 0x15ced(%rip), %rcx     # 0x482ab
callq 0x52c0
movl -0x64(%rbp), %eax
movq %rax, -0xb8(%rbp)
subq $0x6, %rax
ja 0x32afe
movq -0xb8(%rbp), %rax
leaq 0x15773(%rip), %rcx     # 0x47d58
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x24(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x34(%rbp)
cmpl $0x1, -0x34(%rbp)
jb 0x3267c
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x4c(%rbp), %eax
jge 0x3262d
movq -0x18(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x58(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x32604
jmp 0x3262f
movl -0x34(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x34(%rbp)
movq -0x58(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movb $-0x1, (%rax,%rcx)
movl -0x4c(%rbp), %ecx
movq -0x18(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movl -0x20(%rbp), %ecx
movq -0x58(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movl -0x20(%rbp), %ecx
movq -0x60(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
jmp 0x325f7
jmp 0x32afe
movl -0x24(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x34(%rbp)
cmpl $0x1, -0x34(%rbp)
jb 0x3272e
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x4c(%rbp), %eax
jge 0x326df
movq -0x18(%rbp), %rax
movslq -0x48(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movq -0x58(%rbp), %rcx
movl -0x48(%rbp), %edx
subl -0x20(%rbp), %edx
movslq %edx, %rdx
movzbl (%rcx,%rdx), %ecx
addl %ecx, %eax
andl $0xff, %eax
movb %al, %dl
movq -0x58(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x3269b
jmp 0x326e1
movl -0x34(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x34(%rbp)
movq -0x58(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movb $-0x1, (%rax,%rcx)
movl -0x4c(%rbp), %ecx
movq -0x18(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movl -0x20(%rbp), %ecx
movq -0x58(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movl -0x20(%rbp), %ecx
movq -0x60(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
jmp 0x3268a
jmp 0x32afe
movl -0x24(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x34(%rbp)
cmpl $0x1, -0x34(%rbp)
jb 0x327db
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x4c(%rbp), %eax
jge 0x3278c
movq -0x18(%rbp), %rax
movslq -0x48(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movq -0x60(%rbp), %rcx
movslq -0x48(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
addl %ecx, %eax
andl $0xff, %eax
movb %al, %dl
movq -0x58(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x3274d
jmp 0x3278e
movl -0x34(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x34(%rbp)
movq -0x58(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movb $-0x1, (%rax,%rcx)
movl -0x4c(%rbp), %ecx
movq -0x18(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movl -0x20(%rbp), %ecx
movq -0x58(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movl -0x20(%rbp), %ecx
movq -0x60(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
jmp 0x3273c
jmp 0x32afe
movl -0x24(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x34(%rbp)
cmpl $0x1, -0x34(%rbp)
jb 0x3289d
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x4c(%rbp), %eax
jge 0x3284e
movq -0x18(%rbp), %rax
movslq -0x48(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movq -0x60(%rbp), %rcx
movslq -0x48(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
movq -0x58(%rbp), %rdx
movl -0x48(%rbp), %esi
subl -0x20(%rbp), %esi
movslq %esi, %rsi
movzbl (%rdx,%rsi), %edx
addl %edx, %ecx
sarl %ecx
addl %ecx, %eax
andl $0xff, %eax
movb %al, %dl
movq -0x58(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x327fa
jmp 0x32850
movl -0x34(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x34(%rbp)
movq -0x58(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movb $-0x1, (%rax,%rcx)
movl -0x4c(%rbp), %ecx
movq -0x18(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movl -0x20(%rbp), %ecx
movq -0x58(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movl -0x20(%rbp), %ecx
movq -0x60(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
jmp 0x327e9
jmp 0x32afe
movl -0x24(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x34(%rbp)
cmpl $0x1, -0x34(%rbp)
jb 0x3297f
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x4c(%rbp), %eax
jge 0x32930
movq -0x18(%rbp), %rax
movslq -0x48(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, -0xbc(%rbp)
movq -0x58(%rbp), %rax
movl -0x48(%rbp), %ecx
subl -0x20(%rbp), %ecx
movslq %ecx, %rcx
movzbl (%rax,%rcx), %edi
movq -0x60(%rbp), %rax
movslq -0x48(%rbp), %rcx
movzbl (%rax,%rcx), %esi
movq -0x60(%rbp), %rax
movl -0x48(%rbp), %ecx
subl -0x20(%rbp), %ecx
movslq %ecx, %rcx
movzbl (%rax,%rcx), %edx
callq 0x33240
movl %eax, %ecx
movl -0xbc(%rbp), %eax
addl %ecx, %eax
andl $0xff, %eax
movb %al, %dl
movq -0x58(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x328bc
jmp 0x32932
movl -0x34(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x34(%rbp)
movq -0x58(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movb $-0x1, (%rax,%rcx)
movl -0x4c(%rbp), %ecx
movq -0x18(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movl -0x20(%rbp), %ecx
movq -0x58(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movl -0x20(%rbp), %ecx
movq -0x60(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
jmp 0x328ab
jmp 0x32afe
movl -0x24(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x34(%rbp)
cmpl $0x1, -0x34(%rbp)
jb 0x32a33
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x4c(%rbp), %eax
jge 0x329e4
movq -0x18(%rbp), %rax
movslq -0x48(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movq -0x58(%rbp), %rcx
movl -0x48(%rbp), %edx
subl -0x20(%rbp), %edx
movslq %edx, %rdx
movzbl (%rcx,%rdx), %ecx
sarl %ecx
addl %ecx, %eax
andl $0xff, %eax
movb %al, %dl
movq -0x58(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x3299e
jmp 0x329e6
movl -0x34(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x34(%rbp)
movq -0x58(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movb $-0x1, (%rax,%rcx)
movl -0x4c(%rbp), %ecx
movq -0x18(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movl -0x20(%rbp), %ecx
movq -0x58(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movl -0x20(%rbp), %ecx
movq -0x60(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
jmp 0x3298d
jmp 0x32afe
movl -0x24(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x34(%rbp)
cmpl $0x1, -0x34(%rbp)
jb 0x32afc
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x4c(%rbp), %eax
jge 0x32aad
movq -0x18(%rbp), %rax
movslq -0x48(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, -0xc0(%rbp)
movq -0x58(%rbp), %rax
movl -0x48(%rbp), %ecx
subl -0x20(%rbp), %ecx
movslq %ecx, %rcx
movzbl (%rax,%rcx), %edi
xorl %edx, %edx
movl %edx, %esi
callq 0x33240
movl %eax, %ecx
movl -0xc0(%rbp), %eax
addl %ecx, %eax
andl $0xff, %eax
movb %al, %dl
movq -0x58(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x32a52
jmp 0x32aaf
movl -0x34(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x34(%rbp)
movq -0x58(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movb $-0x1, (%rax,%rcx)
movl -0x4c(%rbp), %ecx
movq -0x18(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movl -0x20(%rbp), %ecx
movq -0x58(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movl -0x20(%rbp), %ecx
movq -0x60(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
jmp 0x32a41
jmp 0x32afe
jmp 0x32b00
jmp 0x32b02
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x32048
cmpl $0x8, 0x10(%rbp)
jge 0x33229
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpl -0x28(%rbp), %eax
jae 0x33227
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x3c(%rbp), %ecx
imull -0x38(%rbp), %ecx
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x78(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x3c(%rbp), %ecx
imull -0x38(%rbp), %ecx
movl %ecx, %ecx
addq %rcx, %rax
movl -0x24(%rbp), %ecx
imull -0x20(%rbp), %ecx
movl %ecx, %ecx
addq %rcx, %rax
movl -0x44(%rbp), %ecx
movl %ecx, %edx
xorl %ecx, %ecx
subq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0x80(%rbp)
cmpl $0x0, 0x18(%rbp)
jne 0x32b93
movslq 0x10(%rbp), %rcx
leaq 0x29965(%rip), %rax     # 0x5c4ec
movzbl (%rax,%rcx), %eax
movl %eax, -0xc4(%rbp)
jmp 0x32ba0
movl $0x1, %eax
movl %eax, -0xc4(%rbp)
jmp 0x32ba0
movl -0xc4(%rbp), %eax
movb %al, -0x81(%rbp)
cmpl $0x4, 0x10(%rbp)
jne 0x32c5d
movl -0x24(%rbp), %eax
imull -0x4c(%rbp), %eax
movl %eax, -0x48(%rbp)
cmpl $0x2, -0x48(%rbp)
jl 0x32c2b
movzbl -0x81(%rbp), %eax
movq -0x80(%rbp), %rcx
movzbl (%rcx), %ecx
sarl $0x4, %ecx
imull %ecx, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
movb %cl, (%rax)
movzbl -0x81(%rbp), %eax
movq -0x80(%rbp), %rcx
movzbl (%rcx), %ecx
andl $0xf, %ecx
imull %ecx, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
movb %cl, (%rax)
movl -0x48(%rbp), %eax
subl $0x2, %eax
movl %eax, -0x48(%rbp)
movq -0x80(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x80(%rbp)
jmp 0x32bc0
cmpl $0x0, -0x48(%rbp)
jle 0x32c58
movzbl -0x81(%rbp), %eax
movq -0x80(%rbp), %rcx
movzbl (%rcx), %ecx
sarl $0x4, %ecx
imull %ecx, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
movb %cl, (%rax)
jmp 0x3309c
cmpl $0x2, 0x10(%rbp)
jne 0x32dc9
movl -0x24(%rbp), %eax
imull -0x4c(%rbp), %eax
movl %eax, -0x48(%rbp)
cmpl $0x4, -0x48(%rbp)
jl 0x32d37
movzbl -0x81(%rbp), %eax
movq -0x80(%rbp), %rcx
movzbl (%rcx), %ecx
sarl $0x6, %ecx
imull %ecx, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
movb %cl, (%rax)
movzbl -0x81(%rbp), %eax
movq -0x80(%rbp), %rcx
movzbl (%rcx), %ecx
sarl $0x4, %ecx
andl $0x3, %ecx
imull %ecx, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
movb %cl, (%rax)
movzbl -0x81(%rbp), %eax
movq -0x80(%rbp), %rcx
movzbl (%rcx), %ecx
sarl $0x2, %ecx
andl $0x3, %ecx
imull %ecx, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
movb %cl, (%rax)
movzbl -0x81(%rbp), %eax
movq -0x80(%rbp), %rcx
movzbl (%rcx), %ecx
andl $0x3, %ecx
imull %ecx, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
movb %cl, (%rax)
movl -0x48(%rbp), %eax
subl $0x4, %eax
movl %eax, -0x48(%rbp)
movq -0x80(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x80(%rbp)
jmp 0x32c71
cmpl $0x0, -0x48(%rbp)
jle 0x32d64
movzbl -0x81(%rbp), %eax
movq -0x80(%rbp), %rcx
movzbl (%rcx), %ecx
sarl $0x6, %ecx
imull %ecx, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
movb %cl, (%rax)
cmpl $0x1, -0x48(%rbp)
jle 0x32d94
movzbl -0x81(%rbp), %eax
movq -0x80(%rbp), %rcx
movzbl (%rcx), %ecx
sarl $0x4, %ecx
andl $0x3, %ecx
imull %ecx, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
movb %cl, (%rax)
cmpl $0x2, -0x48(%rbp)
jle 0x32dc4
movzbl -0x81(%rbp), %eax
movq -0x80(%rbp), %rcx
movzbl (%rcx), %ecx
sarl $0x2, %ecx
andl $0x3, %ecx
imull %ecx, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
movb %cl, (%rax)
jmp 0x3309a
cmpl $0x1, 0x10(%rbp)
jne 0x33098
movl -0x24(%rbp), %eax
imull -0x4c(%rbp), %eax
movl %eax, -0x48(%rbp)
cmpl $0x8, -0x48(%rbp)
jl 0x32f4a
movzbl -0x81(%rbp), %eax
movq -0x80(%rbp), %rcx
movzbl (%rcx), %ecx
sarl $0x7, %ecx
imull %ecx, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
movb %cl, (%rax)
movzbl -0x81(%rbp), %eax
movq -0x80(%rbp), %rcx
movzbl (%rcx), %ecx
sarl $0x6, %ecx
andl $0x1, %ecx
imull %ecx, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
movb %cl, (%rax)
movzbl -0x81(%rbp), %eax
movq -0x80(%rbp), %rcx
movzbl (%rcx), %ecx
sarl $0x5, %ecx
andl $0x1, %ecx
imull %ecx, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
movb %cl, (%rax)
movzbl -0x81(%rbp), %eax
movq -0x80(%rbp), %rcx
movzbl (%rcx), %ecx
sarl $0x4, %ecx
andl $0x1, %ecx
imull %ecx, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
movb %cl, (%rax)
movzbl -0x81(%rbp), %eax
movq -0x80(%rbp), %rcx
movzbl (%rcx), %ecx
sarl $0x3, %ecx
andl $0x1, %ecx
imull %ecx, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
movb %cl, (%rax)
movzbl -0x81(%rbp), %eax
movq -0x80(%rbp), %rcx
movzbl (%rcx), %ecx
sarl $0x2, %ecx
andl $0x1, %ecx
imull %ecx, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
movb %cl, (%rax)
movzbl -0x81(%rbp), %eax
movq -0x80(%rbp), %rcx
movzbl (%rcx), %ecx
sarl %ecx
andl $0x1, %ecx
imull %ecx, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
movb %cl, (%rax)
movzbl -0x81(%rbp), %eax
movq -0x80(%rbp), %rcx
movzbl (%rcx), %ecx
andl $0x1, %ecx
imull %ecx, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
movb %cl, (%rax)
movl -0x48(%rbp), %eax
subl $0x8, %eax
movl %eax, -0x48(%rbp)
movq -0x80(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x80(%rbp)
jmp 0x32ddd
cmpl $0x0, -0x48(%rbp)
jle 0x32f77
movzbl -0x81(%rbp), %eax
movq -0x80(%rbp), %rcx
movzbl (%rcx), %ecx
sarl $0x7, %ecx
imull %ecx, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
movb %cl, (%rax)
cmpl $0x1, -0x48(%rbp)
jle 0x32fa7
movzbl -0x81(%rbp), %eax
movq -0x80(%rbp), %rcx
movzbl (%rcx), %ecx
sarl $0x6, %ecx
andl $0x1, %ecx
imull %ecx, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
movb %cl, (%rax)
cmpl $0x2, -0x48(%rbp)
jle 0x32fd7
movzbl -0x81(%rbp), %eax
movq -0x80(%rbp), %rcx
movzbl (%rcx), %ecx
sarl $0x5, %ecx
andl $0x1, %ecx
imull %ecx, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
movb %cl, (%rax)
cmpl $0x3, -0x48(%rbp)
jle 0x33007
movzbl -0x81(%rbp), %eax
movq -0x80(%rbp), %rcx
movzbl (%rcx), %ecx
sarl $0x4, %ecx
andl $0x1, %ecx
imull %ecx, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
movb %cl, (%rax)
cmpl $0x4, -0x48(%rbp)
jle 0x33037
movzbl -0x81(%rbp), %eax
movq -0x80(%rbp), %rcx
movzbl (%rcx), %ecx
sarl $0x3, %ecx
andl $0x1, %ecx
imull %ecx, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
movb %cl, (%rax)
cmpl $0x5, -0x48(%rbp)
jle 0x33067
movzbl -0x81(%rbp), %eax
movq -0x80(%rbp), %rcx
movzbl (%rcx), %ecx
sarl $0x2, %ecx
andl $0x1, %ecx
imull %ecx, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
movb %cl, (%rax)
cmpl $0x6, -0x48(%rbp)
jle 0x33096
movzbl -0x81(%rbp), %eax
movq -0x80(%rbp), %rcx
movzbl (%rcx), %ecx
sarl %ecx
andl $0x1, %ecx
imull %ecx, %eax
movb %al, %cl
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
movb %cl, (%rax)
jmp 0x33098
jmp 0x3309a
jmp 0x3309c
movl -0x4c(%rbp), %eax
cmpl -0x20(%rbp), %eax
je 0x33217
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x3c(%rbp), %ecx
imull -0x38(%rbp), %ecx
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x78(%rbp)
cmpl $0x1, -0x4c(%rbp)
jne 0x3312a
movl -0x24(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x88(%rbp)
cmpl $0x0, -0x88(%rbp)
jl 0x33125
movq -0x78(%rbp), %rax
movl -0x88(%rbp), %ecx
shll %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movb $-0x1, (%rax,%rcx)
movq -0x78(%rbp), %rax
movslq -0x88(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x78(%rbp), %rax
movl -0x88(%rbp), %ecx
shll %ecx
addl $0x0, %ecx
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movl -0x88(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x88(%rbp)
jmp 0x330d2
jmp 0x33215
cmpl $0x3, -0x4c(%rbp)
jne 0x33132
jmp 0x33151
leaq 0x15229(%rip), %rdi     # 0x48362
leaq 0x14f75(%rip), %rsi     # 0x480b5
movl $0x102f, %edx           # imm = 0x102F
leaq 0x1515f(%rip), %rcx     # 0x482ab
callq 0x52c0
movl -0x24(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x88(%rbp)
cmpl $0x0, -0x88(%rbp)
jl 0x33213
movq -0x78(%rbp), %rax
movl -0x88(%rbp), %ecx
shll $0x2, %ecx
addl $0x3, %ecx
movslq %ecx, %rcx
movb $-0x1, (%rax,%rcx)
movq -0x78(%rbp), %rax
imull $0x3, -0x88(%rbp), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
movb (%rax,%rcx), %dl
movq -0x78(%rbp), %rax
movl -0x88(%rbp), %ecx
shll $0x2, %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movq -0x78(%rbp), %rax
imull $0x3, -0x88(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movb (%rax,%rcx), %dl
movq -0x78(%rbp), %rax
movl -0x88(%rbp), %ecx
shll $0x2, %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movq -0x78(%rbp), %rax
imull $0x3, -0x88(%rbp), %ecx
addl $0x0, %ecx
movslq %ecx, %rcx
movb (%rax,%rcx), %dl
movq -0x78(%rbp), %rax
movl -0x88(%rbp), %ecx
shll $0x2, %ecx
addl $0x0, %ecx
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movl -0x88(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x88(%rbp)
jmp 0x3315d
jmp 0x33215
jmp 0x33217
jmp 0x33219
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x32b21
jmp 0x33229
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xd0, %rsp
popq %rbp
retq
nopl (%rax)