// File: alan0201tw[P]RayTracer/include/stb_image_write.h
// Function: stbi_zlib_compress
STBIWDEF unsigned char * stbi_zlib_compress(unsigned char *data, int data_len, int *out_len, int quality)
{
#ifdef STBIW_ZLIB_COMPRESS
   // user provided a zlib compress implementation, use that
   return STBIW_ZLIB_COMPRESS(data, data_len, out_len, quality);
#else // use builtin
   static unsigned short lengthc[] = { 3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258, 259 };
   static unsigned char  lengtheb[]= { 0,0,0,0,0,0,0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4,  4,  5,  5,  5,  5,  0 };
   static unsigned short distc[]   = { 1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577, 32768 };
   static unsigned char  disteb[]  = { 0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13 };
   unsigned int bitbuf=0;
   int i,j, bitcount=0;
   unsigned char *out = NULL;
   unsigned char ***hash_table = (unsigned char***) STBIW_MALLOC(stbiw__ZHASH * sizeof(char**));
   if (hash_table == NULL)
      return NULL;
   if (quality < 5) quality = 5;

   stbiw__sbpush(out, 0x78);   // DEFLATE 32K window
   stbiw__sbpush(out, 0x5e);   // FLEVEL = 1
   stbiw__zlib_add(1,1);  // BFINAL = 1
   stbiw__zlib_add(1,2);  // BTYPE = 1 -- fixed huffman

   for (i=0; i < stbiw__ZHASH; ++i)
      hash_table[i] = NULL;

   i=0;
   while (i < data_len-3) {
      // hash next 3 bytes of data to be compressed
      int h = stbiw__zhash(data+i)&(stbiw__ZHASH-1), best=3;
      unsigned char *bestloc = 0;
      unsigned char **hlist = hash_table[h];
      int n = stbiw__sbcount(hlist);
      for (j=0; j < n; ++j) {
         if (hlist[j]-data > i-32768) { // if entry lies within window
            int d = stbiw__zlib_countm(hlist[j], data+i, data_len-i);
            if (d >= best) { best=d; bestloc=hlist[j]; }
         }
      }
      // when hash table entry is too long, delete half the entries
      if (hash_table[h] && stbiw__sbn(hash_table[h]) == 2*quality) {
         STBIW_MEMMOVE(hash_table[h], hash_table[h]+quality, sizeof(hash_table[h][0])*quality);
         stbiw__sbn(hash_table[h]) = quality;
      }
      stbiw__sbpush(hash_table[h],data+i);

      if (bestloc) {
         // "lazy matching" - check match at *next* byte, and if it's better, do cur byte as literal
         h = stbiw__zhash(data+i+1)&(stbiw__ZHASH-1);
         hlist = hash_table[h];
         n = stbiw__sbcount(hlist);
         for (j=0; j < n; ++j) {
            if (hlist[j]-data > i-32767) {
               int e = stbiw__zlib_countm(hlist[j], data+i+1, data_len-i-1);
               if (e > best) { // if next match is better, bail on current match
                  bestloc = NULL;
                  break;
               }
            }
         }
      }

      if (bestloc) {
         int d = (int) (data+i - bestloc); // distance back
         STBIW_ASSERT(d <= 32767 && best <= 258);
         for (j=0; best > lengthc[j+1]-1; ++j);
         stbiw__zlib_huff(j+257);
         if (lengtheb[j]) stbiw__zlib_add(best - lengthc[j], lengtheb[j]);
         for (j=0; d > distc[j+1]-1; ++j);
         stbiw__zlib_add(stbiw__zlib_bitrev(j,5),5);
         if (disteb[j]) stbiw__zlib_add(d - distc[j], disteb[j]);
         i += best;
      } else {
         stbiw__zlib_huffb(data[i]);
         ++i;
      }
   }
   // write out final bytes
   for (;i < data_len; ++i)
      stbiw__zlib_huffb(data[i]);
   stbiw__zlib_huff(256); // end of block
   // pad with 0 bits to byte boundary
   while (bitcount)
      stbiw__zlib_add(0,1);

   for (i=0; i < stbiw__ZHASH; ++i)
      (void) stbiw__sbfree(hash_table[i]);
   STBIW_FREE(hash_table);

   {
      // compute adler32 on input
      unsigned int s1=1, s2=0;
      int blocklen = (int) (data_len % 5552);
      j=0;
      while (j < data_len) {
         for (i=0; i < blocklen; ++i) { s1 += data[j+i]; s2 += s1; }
         s1 %= 65521; s2 %= 65521;
         j += blocklen;
         blocklen = 5552;
      }
      stbiw__sbpush(out, STBIW_UCHAR(s2 >> 8));
      stbiw__sbpush(out, STBIW_UCHAR(s2));
      stbiw__sbpush(out, STBIW_UCHAR(s1 >> 8));
      stbiw__sbpush(out, STBIW_UCHAR(s1));
   }
   *out_len = stbiw__sbn(out);
   // make returned pointer freeable
   STBIW_MEMMOVE(stbiw__sbraw(out), out, *out_len);
   return (unsigned char *) stbiw__sbraw(out);
#endif // STBIW_ZLIB_COMPRESS
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movl $0x0, -0x28(%rbp)
movl $0x0, -0x34(%rbp)
movq $0x0, -0x40(%rbp)
movl $0x20000, %edi          # imm = 0x20000
callq 0x7650
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
jne 0x58401
movq $0x0, -0x8(%rbp)
jmp 0x58f6c
cmpl $0x5, -0x24(%rbp)
jge 0x5840e
movl $0x5, -0x24(%rbp)
cmpq $0x0, -0x40(%rbp)
je 0x58428
movq -0x40(%rbp), %rax
movl -0x4(%rax), %eax
addl $0x1, %eax
movq -0x40(%rbp), %rcx
cmpl -0x8(%rcx), %eax
jl 0x5843a
leaq -0x40(%rbp), %rdi
movl $0x1, %edx
movl %edx, %esi
callq 0x58f80
jmp 0x5843c
jmp 0x5843c
movq -0x40(%rbp), %rax
movq -0x40(%rbp), %rdx
movl -0x4(%rdx), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x4(%rdx)
movslq %ecx, %rcx
movb $0x78, (%rax,%rcx)
cmpq $0x0, -0x40(%rbp)
je 0x58470
movq -0x40(%rbp), %rax
movl -0x4(%rax), %eax
addl $0x1, %eax
movq -0x40(%rbp), %rcx
cmpl -0x8(%rcx), %eax
jl 0x58482
leaq -0x40(%rbp), %rdi
movl $0x1, %edx
movl %edx, %esi
callq 0x58f80
jmp 0x58484
jmp 0x58484
movq -0x40(%rbp), %rax
movq -0x40(%rbp), %rdx
movl -0x4(%rdx), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x4(%rdx)
movslq %ecx, %rcx
movb $0x5e, (%rax,%rcx)
movl -0x34(%rbp), %ecx
movl $0x1, %eax
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
movq -0x40(%rbp), %rdi
leaq -0x28(%rbp), %rsi
leaq -0x34(%rbp), %rdx
callq 0x59070
movq %rax, -0x40(%rbp)
movl -0x34(%rbp), %ecx
movl $0x1, %eax
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x34(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x34(%rbp)
movq -0x40(%rbp), %rdi
leaq -0x28(%rbp), %rsi
leaq -0x34(%rbp), %rdx
callq 0x59070
movq %rax, -0x40(%rbp)
movl $0x0, -0x2c(%rbp)
cmpl $0x4000, -0x2c(%rbp)    # imm = 0x4000
jge 0x58525
movq -0x48(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq $0x0, (%rax,%rcx,8)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x58501
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movl -0x14(%rbp), %ecx
subl $0x3, %ecx
cmpl %ecx, %eax
jge 0x58bea
movq -0x10(%rbp), %rdi
movslq -0x2c(%rbp), %rax
addq %rax, %rdi
callq 0x59110
andl $0x3fff, %eax           # imm = 0x3FFF
movl %eax, -0x4c(%rbp)
movl $0x3, -0x50(%rbp)
movq $0x0, -0x58(%rbp)
movq -0x48(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x60(%rbp)
cmpq $0x0, -0x60(%rbp)
je 0x58587
movq -0x60(%rbp), %rax
movl -0x4(%rax), %eax
movl %eax, -0x80(%rbp)
jmp 0x5858e
xorl %eax, %eax
movl %eax, -0x80(%rbp)
jmp 0x5858e
movl -0x80(%rbp), %eax
movl %eax, -0x64(%rbp)
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x64(%rbp), %eax
jge 0x58619
movq -0x60(%rbp), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0x10(%rbp), %rcx
subq %rcx, %rax
movl -0x2c(%rbp), %ecx
subl $0x8000, %ecx           # imm = 0x8000
movslq %ecx, %rcx
cmpq %rcx, %rax
jle 0x5860c
movq -0x60(%rbp), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x10(%rbp), %rsi
movslq -0x2c(%rbp), %rax
addq %rax, %rsi
movl -0x14(%rbp), %edx
subl -0x2c(%rbp), %edx
callq 0x59190
movl %eax, -0x68(%rbp)
movl -0x68(%rbp), %eax
cmpl -0x50(%rbp), %eax
jl 0x5860a
movl -0x68(%rbp), %eax
movl %eax, -0x50(%rbp)
movq -0x60(%rbp), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x58(%rbp)
jmp 0x5860c
jmp 0x5860e
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x5859b
movq -0x48(%rbp), %rax
movslq -0x4c(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
je 0x58682
movq -0x48(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl -0x4(%rax), %eax
movl -0x24(%rbp), %ecx
shll %ecx
cmpl %ecx, %eax
jne 0x58682
movq -0x48(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x48(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movslq -0x24(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movslq -0x24(%rbp), %rdx
shlq $0x3, %rdx
callq 0x77b0
movl -0x24(%rbp), %ecx
movq -0x48(%rbp), %rax
movslq -0x4c(%rbp), %rdx
movq (%rax,%rdx,8), %rax
movl %ecx, -0x4(%rax)
movq -0x48(%rbp), %rax
movslq -0x4c(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
je 0x586b4
movq -0x48(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl -0x4(%rax), %eax
addl $0x1, %eax
movq -0x48(%rbp), %rcx
movslq -0x4c(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
cmpl -0x8(%rcx), %eax
jl 0x586d4
movq -0x48(%rbp), %rdi
movslq -0x4c(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdi
movl $0x1, %esi
movl $0x8, %edx
callq 0x58f80
jmp 0x586d6
jmp 0x586d6
movq -0x10(%rbp), %rdx
movslq -0x2c(%rbp), %rax
addq %rax, %rdx
movq -0x48(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0x48(%rbp), %rcx
movslq -0x4c(%rbp), %rsi
movq (%rcx,%rsi,8), %rsi
movl -0x4(%rsi), %ecx
movl %ecx, %edi
addl $0x1, %edi
movl %edi, -0x4(%rsi)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
cmpq $0x0, -0x58(%rbp)
je 0x587ed
movq -0x10(%rbp), %rdi
movslq -0x2c(%rbp), %rax
addq %rax, %rdi
addq $0x1, %rdi
callq 0x59110
andl $0x3fff, %eax           # imm = 0x3FFF
movl %eax, -0x4c(%rbp)
movq -0x48(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x60(%rbp)
cmpq $0x0, -0x60(%rbp)
je 0x58758
movq -0x60(%rbp), %rax
movl -0x4(%rax), %eax
movl %eax, -0x84(%rbp)
jmp 0x58762
xorl %eax, %eax
movl %eax, -0x84(%rbp)
jmp 0x58762
movl -0x84(%rbp), %eax
movl %eax, -0x64(%rbp)
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x64(%rbp), %eax
jge 0x587eb
movq -0x60(%rbp), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0x10(%rbp), %rcx
subq %rcx, %rax
movl -0x2c(%rbp), %ecx
subl $0x7fff, %ecx           # imm = 0x7FFF
movslq %ecx, %rcx
cmpq %rcx, %rax
jle 0x587de
movq -0x60(%rbp), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x10(%rbp), %rsi
movslq -0x2c(%rbp), %rax
addq %rax, %rsi
addq $0x1, %rsi
movl -0x14(%rbp), %edx
subl -0x2c(%rbp), %edx
subl $0x1, %edx
callq 0x59190
movl %eax, -0x6c(%rbp)
movl -0x6c(%rbp), %eax
cmpl -0x50(%rbp), %eax
jle 0x587dc
movq $0x0, -0x58(%rbp)
jmp 0x587eb
jmp 0x587de
jmp 0x587e0
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x58772
jmp 0x587ed
cmpq $0x0, -0x58(%rbp)
je 0x58b3a
movq -0x10(%rbp), %rax
movslq -0x2c(%rbp), %rcx
addq %rcx, %rax
movq -0x58(%rbp), %rcx
subq %rcx, %rax
movl %eax, -0x70(%rbp)
xorl %eax, %eax
cmpl $0x7fff, -0x70(%rbp)    # imm = 0x7FFF
movb %al, -0x85(%rbp)
jg 0x5882e
cmpl $0x102, -0x50(%rbp)     # imm = 0x102
setle %al
movb %al, -0x85(%rbp)
movb -0x85(%rbp), %al
testb $0x1, %al
jne 0x5883a
jmp 0x5883c
jmp 0x5885b
leaq 0x28628(%rip), %rdi     # 0x80e6b
leaq 0x2863b(%rip), %rsi     # 0x80e85
movl $0x39a, %edx            # imm = 0x39A
leaq 0x28649(%rip), %rcx     # 0x80e9f
callq 0x7310
movl $0x0, -0x30(%rbp)
movl -0x50(%rbp), %eax
movl -0x30(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rdx
leaq 0x57c7b(%rip), %rcx     # 0xb04f0
movzwl (%rcx,%rdx,2), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jle 0x5888d
jmp 0x58882
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x58862
movl -0x30(%rbp), %eax
addl $0x101, %eax            # imm = 0x101
cmpl $0x8f, %eax
jg 0x588e0
movl -0x30(%rbp), %edi
addl $0x101, %edi            # imm = 0x101
addl $0x30, %edi
movl $0x8, %esi
callq 0x59200
movl -0x34(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x34(%rbp), %eax
addl $0x8, %eax
movl %eax, -0x34(%rbp)
movq -0x40(%rbp), %rdi
leaq -0x28(%rbp), %rsi
leaq -0x34(%rbp), %rdx
callq 0x59070
movq %rax, -0x40(%rbp)
jmp 0x58a10
movl -0x30(%rbp), %eax
addl $0x101, %eax            # imm = 0x101
cmpl $0xff, %eax
jg 0x58947
movl -0x30(%rbp), %edi
addl $0x101, %edi            # imm = 0x101
addl $0x190, %edi            # imm = 0x190
subl $0x90, %edi
movl $0x9, %esi
callq 0x59200
movl -0x34(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x34(%rbp), %eax
addl $0x9, %eax
movl %eax, -0x34(%rbp)
movq -0x40(%rbp), %rdi
leaq -0x28(%rbp), %rsi
leaq -0x34(%rbp), %rdx
callq 0x59070
movq %rax, -0x40(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0x58a09
movl -0x30(%rbp), %eax
addl $0x101, %eax            # imm = 0x101
cmpl $0x117, %eax            # imm = 0x117
jg 0x589a8
movl -0x30(%rbp), %edi
addl $0x101, %edi            # imm = 0x101
addl $0x0, %edi
subl $0x100, %edi            # imm = 0x100
movl $0x7, %esi
callq 0x59200
movl -0x34(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x34(%rbp), %eax
addl $0x7, %eax
movl %eax, -0x34(%rbp)
movq -0x40(%rbp), %rdi
leaq -0x28(%rbp), %rsi
leaq -0x34(%rbp), %rdx
callq 0x59070
movq %rax, -0x40(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x98(%rbp)
jmp 0x589fb
movl -0x30(%rbp), %edi
addl $0x101, %edi            # imm = 0x101
addl $0xc0, %edi
subl $0x118, %edi            # imm = 0x118
movl $0x8, %esi
callq 0x59200
movl -0x34(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x34(%rbp), %eax
addl $0x8, %eax
movl %eax, -0x34(%rbp)
movq -0x40(%rbp), %rdi
leaq -0x28(%rbp), %rsi
leaq -0x34(%rbp), %rdx
callq 0x59070
movq %rax, -0x40(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
movslq -0x30(%rbp), %rcx
leaq 0x57b15(%rip), %rax     # 0xb0530
cmpb $0x0, (%rax,%rcx)
je 0x58a6a
movl -0x50(%rbp), %eax
movslq -0x30(%rbp), %rdx
leaq 0x57ac1(%rip), %rcx     # 0xb04f0
movzwl (%rcx,%rdx,2), %ecx
subl %ecx, %eax
movl -0x34(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movslq -0x30(%rbp), %rcx
leaq 0x57ae5(%rip), %rax     # 0xb0530
movzbl (%rax,%rcx), %eax
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
movq -0x40(%rbp), %rdi
leaq -0x28(%rbp), %rsi
leaq -0x34(%rbp), %rdx
callq 0x59070
movq %rax, -0x40(%rbp)
movl $0x0, -0x30(%rbp)
movl -0x70(%rbp), %eax
movl -0x30(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rdx
leaq 0x57acc(%rip), %rcx     # 0xb0550
movzwl (%rcx,%rdx,2), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jle 0x58a9c
jmp 0x58a91
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x58a71
movl -0x30(%rbp), %edi
movl $0x5, %esi
callq 0x59200
movl -0x34(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x34(%rbp), %eax
addl $0x5, %eax
movl %eax, -0x34(%rbp)
movq -0x40(%rbp), %rdi
leaq -0x28(%rbp), %rsi
leaq -0x34(%rbp), %rdx
callq 0x59070
movq %rax, -0x40(%rbp)
movslq -0x30(%rbp), %rcx
leaq 0x57ab3(%rip), %rax     # 0xb0590
cmpb $0x0, (%rax,%rcx)
je 0x58b2c
movl -0x70(%rbp), %eax
movslq -0x30(%rbp), %rdx
leaq 0x57a5f(%rip), %rcx     # 0xb0550
movzwl (%rcx,%rdx,2), %ecx
subl %ecx, %eax
movl -0x34(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movslq -0x30(%rbp), %rcx
leaq 0x57a83(%rip), %rax     # 0xb0590
movzbl (%rax,%rcx), %eax
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
movq -0x40(%rbp), %rdi
leaq -0x28(%rbp), %rsi
leaq -0x34(%rbp), %rdx
callq 0x59070
movq %rax, -0x40(%rbp)
movl -0x50(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0x58be5
movq -0x10(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movzbl (%rax,%rcx), %eax
cmpl $0x8f, %eax
jg 0x58b91
movq -0x10(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movzbl (%rax,%rcx), %edi
addl $0x30, %edi
movl $0x8, %esi
callq 0x59200
movl -0x34(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x34(%rbp), %eax
addl $0x8, %eax
movl %eax, -0x34(%rbp)
movq -0x40(%rbp), %rdi
leaq -0x28(%rbp), %rsi
leaq -0x34(%rbp), %rdx
callq 0x59070
movq %rax, -0x40(%rbp)
jmp 0x58bdc
movq -0x10(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movzbl (%rax,%rcx), %edi
addl $0x190, %edi            # imm = 0x190
subl $0x90, %edi
movl $0x9, %esi
callq 0x59200
movl -0x34(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x34(%rbp), %eax
addl $0x9, %eax
movl %eax, -0x34(%rbp)
movq -0x40(%rbp), %rdi
leaq -0x28(%rbp), %rsi
leaq -0x34(%rbp), %rdx
callq 0x59070
movq %rax, -0x40(%rbp)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x5852c
jmp 0x58bec
movl -0x2c(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x58ca8
movq -0x10(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movzbl (%rax,%rcx), %eax
cmpl $0x8f, %eax
jg 0x58c4f
movq -0x10(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movzbl (%rax,%rcx), %edi
addl $0x30, %edi
movl $0x8, %esi
callq 0x59200
movl -0x34(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x34(%rbp), %eax
addl $0x8, %eax
movl %eax, -0x34(%rbp)
movq -0x40(%rbp), %rdi
leaq -0x28(%rbp), %rsi
leaq -0x34(%rbp), %rdx
callq 0x59070
movq %rax, -0x40(%rbp)
jmp 0x58c9a
movq -0x10(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movzbl (%rax,%rcx), %edi
addl $0x190, %edi            # imm = 0x190
subl $0x90, %edi
movl $0x9, %esi
callq 0x59200
movl -0x34(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x34(%rbp), %eax
addl $0x9, %eax
movl %eax, -0x34(%rbp)
movq -0x40(%rbp), %rdi
leaq -0x28(%rbp), %rsi
leaq -0x34(%rbp), %rdx
callq 0x59070
movq %rax, -0x40(%rbp)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x58bec
xorl %edi, %edi
movl $0x7, %esi
callq 0x59200
movl -0x34(%rbp), %ecx
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x34(%rbp), %eax
addl $0x7, %eax
movl %eax, -0x34(%rbp)
movq -0x40(%rbp), %rdi
leaq -0x28(%rbp), %rsi
leaq -0x34(%rbp), %rdx
callq 0x59070
movq %rax, -0x40(%rbp)
cmpl $0x0, -0x34(%rbp)
je 0x58d10
movl -0x34(%rbp), %ecx
xorl %eax, %eax
shll %cl, %eax
orl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
movq -0x40(%rbp), %rdi
leaq -0x28(%rbp), %rsi
leaq -0x34(%rbp), %rdx
callq 0x59070
movq %rax, -0x40(%rbp)
jmp 0x58cdd
movl $0x0, -0x2c(%rbp)
cmpl $0x4000, -0x2c(%rbp)    # imm = 0x4000
jge 0x58d53
movq -0x48(%rbp), %rax
movslq -0x2c(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
je 0x58d46
movq -0x48(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
addq $-0x8, %rdi
callq 0x75e0
jmp 0x58d48
jmp 0x58d48
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x58d17
movq -0x48(%rbp), %rdi
callq 0x75e0
movl $0x1, -0x74(%rbp)
movl $0x0, -0x78(%rbp)
movl -0x14(%rbp), %eax
movl $0x15b0, %ecx           # imm = 0x15B0
cltd
idivl %ecx
movl %edx, -0x7c(%rbp)
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x58df1
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
cmpl -0x7c(%rbp), %eax
jge 0x58dc1
movq -0x10(%rbp), %rax
movl -0x30(%rbp), %ecx
addl -0x2c(%rbp), %ecx
movslq %ecx, %rcx
movzbl (%rax,%rcx), %eax
addl -0x74(%rbp), %eax
movl %eax, -0x74(%rbp)
movl -0x74(%rbp), %eax
addl -0x78(%rbp), %eax
movl %eax, -0x78(%rbp)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x58d8e
movl -0x74(%rbp), %eax
movl $0xfff1, %ecx           # imm = 0xFFF1
xorl %edx, %edx
divl %ecx
movl %edx, -0x74(%rbp)
movl -0x78(%rbp), %eax
movl $0xfff1, %ecx           # imm = 0xFFF1
xorl %edx, %edx
divl %ecx
movl %edx, -0x78(%rbp)
movl -0x7c(%rbp), %eax
addl -0x30(%rbp), %eax
movl %eax, -0x30(%rbp)
movl $0x15b0, -0x7c(%rbp)    # imm = 0x15B0
jmp 0x58d7f
cmpq $0x0, -0x40(%rbp)
je 0x58e0b
movq -0x40(%rbp), %rax
movl -0x4(%rax), %eax
addl $0x1, %eax
movq -0x40(%rbp), %rcx
cmpl -0x8(%rcx), %eax
jl 0x58e1d
leaq -0x40(%rbp), %rdi
movl $0x1, %edx
movl %edx, %esi
callq 0x58f80
jmp 0x58e1f
jmp 0x58e1f
movl -0x78(%rbp), %eax
shrl $0x8, %eax
andl $0xff, %eax
movb %al, %dl
movq -0x40(%rbp), %rax
movq -0x40(%rbp), %rsi
movl -0x4(%rsi), %ecx
movl %ecx, %edi
addl $0x1, %edi
movl %edi, -0x4(%rsi)
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
cmpq $0x0, -0x40(%rbp)
je 0x58e5f
movq -0x40(%rbp), %rax
movl -0x4(%rax), %eax
addl $0x1, %eax
movq -0x40(%rbp), %rcx
cmpl -0x8(%rcx), %eax
jl 0x58e71
leaq -0x40(%rbp), %rdi
movl $0x1, %edx
movl %edx, %esi
callq 0x58f80
jmp 0x58e73
jmp 0x58e73
movl -0x78(%rbp), %eax
andl $0xff, %eax
movb %al, %dl
movq -0x40(%rbp), %rax
movq -0x40(%rbp), %rsi
movl -0x4(%rsi), %ecx
movl %ecx, %edi
addl $0x1, %edi
movl %edi, -0x4(%rsi)
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
cmpq $0x0, -0x40(%rbp)
je 0x58eb0
movq -0x40(%rbp), %rax
movl -0x4(%rax), %eax
addl $0x1, %eax
movq -0x40(%rbp), %rcx
cmpl -0x8(%rcx), %eax
jl 0x58ec2
leaq -0x40(%rbp), %rdi
movl $0x1, %edx
movl %edx, %esi
callq 0x58f80
jmp 0x58ec4
jmp 0x58ec4
movl -0x74(%rbp), %eax
shrl $0x8, %eax
andl $0xff, %eax
movb %al, %dl
movq -0x40(%rbp), %rax
movq -0x40(%rbp), %rsi
movl -0x4(%rsi), %ecx
movl %ecx, %edi
addl $0x1, %edi
movl %edi, -0x4(%rsi)
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
cmpq $0x0, -0x40(%rbp)
je 0x58f04
movq -0x40(%rbp), %rax
movl -0x4(%rax), %eax
addl $0x1, %eax
movq -0x40(%rbp), %rcx
cmpl -0x8(%rcx), %eax
jl 0x58f16
leaq -0x40(%rbp), %rdi
movl $0x1, %edx
movl %edx, %esi
callq 0x58f80
jmp 0x58f18
jmp 0x58f18
movl -0x74(%rbp), %eax
andl $0xff, %eax
movb %al, %dl
movq -0x40(%rbp), %rax
movq -0x40(%rbp), %rsi
movl -0x4(%rsi), %ecx
movl %ecx, %edi
addl $0x1, %edi
movl %edi, -0x4(%rsi)
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movq -0x40(%rbp), %rax
movl -0x4(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, (%rax)
movq -0x40(%rbp), %rdi
addq $-0x8, %rdi
movq -0x40(%rbp), %rsi
movq -0x20(%rbp), %rax
movslq (%rax), %rdx
callq 0x77b0
movq -0x40(%rbp), %rax
addq $-0x8, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq
nopl (%rax)