// File: /workspace/github_cpp_makefile_star2_O1/alan0201tw[P]RayTracer/include/stb_image.h
// Function: stbi__parse_png_file(stbi__png*, int, int)
static int stbi__parse_png_file(stbi__png *z, int scan, int req_comp)
{
   stbi_uc palette[1024], pal_img_n=0;
   stbi_uc has_trans=0, tc[3]={0};
   stbi__uint16 tc16[3];
   stbi__uint32 ioff=0, idata_limit=0, i, pal_len=0;
   int first=1,k,interlace=0, color=0, is_iphone=0;
   stbi__context *s = z->s;

   z->expanded = NULL;
   z->idata = NULL;
   z->out = NULL;

   if (!stbi__check_png_header(s)) return 0;

   if (scan == STBI__SCAN_type) return 1;

   for (;;) {
      stbi__pngchunk c = stbi__get_chunk_header(s);
      switch (c.type) {
         case STBI__PNG_TYPE('C','g','B','I'):
            is_iphone = 1;
            stbi__skip(s, c.length);
            break;
         case STBI__PNG_TYPE('I','H','D','R'): {
            int comp,filter;
            if (!first) return stbi__err("multiple IHDR","Corrupt PNG");
            first = 0;
            if (c.length != 13) return stbi__err("bad IHDR len","Corrupt PNG");
            s->img_x = stbi__get32be(s); if (s->img_x > (1 << 24)) return stbi__err("too large","Very large image (corrupt?)");
            s->img_y = stbi__get32be(s); if (s->img_y > (1 << 24)) return stbi__err("too large","Very large image (corrupt?)");
            z->depth = stbi__get8(s);  if (z->depth != 1 && z->depth != 2 && z->depth != 4 && z->depth != 8 && z->depth != 16)  return stbi__err("1/2/4/8/16-bit only","PNG not supported: 1/2/4/8/16-bit only");
            color = stbi__get8(s);  if (color > 6)         return stbi__err("bad ctype","Corrupt PNG");
            if (color == 3 && z->depth == 16)                  return stbi__err("bad ctype","Corrupt PNG");
            if (color == 3) pal_img_n = 3; else if (color & 1) return stbi__err("bad ctype","Corrupt PNG");
            comp  = stbi__get8(s);  if (comp) return stbi__err("bad comp method","Corrupt PNG");
            filter= stbi__get8(s);  if (filter) return stbi__err("bad filter method","Corrupt PNG");
            interlace = stbi__get8(s); if (interlace>1) return stbi__err("bad interlace method","Corrupt PNG");
            if (!s->img_x || !s->img_y) return stbi__err("0-pixel image","Corrupt PNG");
            if (!pal_img_n) {
               s->img_n = (color & 2 ? 3 : 1) + (color & 4 ? 1 : 0);
               if ((1 << 30) / s->img_x / s->img_n < s->img_y) return stbi__err("too large", "Image too large to decode");
               if (scan == STBI__SCAN_header) return 1;
            } else {
               // if paletted, then pal_n is our final components, and
               // img_n is # components to decompress/filter.
               s->img_n = 1;
               if ((1 << 30) / s->img_x / 4 < s->img_y) return stbi__err("too large","Corrupt PNG");
               // if SCAN_header, have to scan to see if we have a tRNS
            }
            break;
         }

         case STBI__PNG_TYPE('P','L','T','E'):  {
            if (first) return stbi__err("first not IHDR", "Corrupt PNG");
            if (c.length > 256*3) return stbi__err("invalid PLTE","Corrupt PNG");
            pal_len = c.length / 3;
            if (pal_len * 3 != c.length) return stbi__err("invalid PLTE","Corrupt PNG");
            for (i=0; i < pal_len; ++i) {
               palette[i*4+0] = stbi__get8(s);
               palette[i*4+1] = stbi__get8(s);
               palette[i*4+2] = stbi__get8(s);
               palette[i*4+3] = 255;
            }
            break;
         }

         case STBI__PNG_TYPE('t','R','N','S'): {
            if (first) return stbi__err("first not IHDR", "Corrupt PNG");
            if (z->idata) return stbi__err("tRNS after IDAT","Corrupt PNG");
            if (pal_img_n) {
               if (scan == STBI__SCAN_header) { s->img_n = 4; return 1; }
               if (pal_len == 0) return stbi__err("tRNS before PLTE","Corrupt PNG");
               if (c.length > pal_len) return stbi__err("bad tRNS len","Corrupt PNG");
               pal_img_n = 4;
               for (i=0; i < c.length; ++i)
                  palette[i*4+3] = stbi__get8(s);
            } else {
               if (!(s->img_n & 1)) return stbi__err("tRNS with alpha","Corrupt PNG");
               if (c.length != (stbi__uint32) s->img_n*2) return stbi__err("bad tRNS len","Corrupt PNG");
               has_trans = 1;
               if (z->depth == 16) {
                  for (k = 0; k < s->img_n; ++k) tc16[k] = (stbi__uint16)stbi__get16be(s); // copy the values as-is
               } else {
                  for (k = 0; k < s->img_n; ++k) tc[k] = (stbi_uc)(stbi__get16be(s) & 255) * stbi__depth_scale_table[z->depth]; // non 8-bit images will be larger
               }
            }
            break;
         }

         case STBI__PNG_TYPE('I','D','A','T'): {
            if (first) return stbi__err("first not IHDR", "Corrupt PNG");
            if (pal_img_n && !pal_len) return stbi__err("no PLTE","Corrupt PNG");
            if (scan == STBI__SCAN_header) { s->img_n = pal_img_n; return 1; }
            if ((int)(ioff + c.length) < (int)ioff) return 0;
            if (ioff + c.length > idata_limit) {
               stbi__uint32 idata_limit_old = idata_limit;
               stbi_uc *p;
               if (idata_limit == 0) idata_limit = c.length > 4096 ? c.length : 4096;
               while (ioff + c.length > idata_limit)
                  idata_limit *= 2;
               STBI_NOTUSED(idata_limit_old);
               p = (stbi_uc *) STBI_REALLOC_SIZED(z->idata, idata_limit_old, idata_limit); if (p == NULL) return stbi__err("outofmem", "Out of memory");
               z->idata = p;
            }
            if (!stbi__getn(s, z->idata+ioff,c.length)) return stbi__err("outofdata","Corrupt PNG");
            ioff += c.length;
            break;
         }

         case STBI__PNG_TYPE('I','E','N','D'): {
            stbi__uint32 raw_len, bpl;
            if (first) return stbi__err("first not IHDR", "Corrupt PNG");
            if (scan != STBI__SCAN_load) return 1;
            if (z->idata == NULL) return stbi__err("no IDAT","Corrupt PNG");
            // initial guess for decoded data size to avoid unnecessary reallocs
            bpl = (s->img_x * z->depth + 7) / 8; // bytes per line, per component
            raw_len = bpl * s->img_y * s->img_n /* pixels */ + s->img_y /* filter mode per row */;
            z->expanded = (stbi_uc *) stbi_zlib_decode_malloc_guesssize_headerflag((char *) z->idata, ioff, raw_len, (int *) &raw_len, !is_iphone);
            if (z->expanded == NULL) return 0; // zlib should set error
            STBI_FREE(z->idata); z->idata = NULL;
            if ((req_comp == s->img_n+1 && req_comp != 3 && !pal_img_n) || has_trans)
               s->img_out_n = s->img_n+1;
            else
               s->img_out_n = s->img_n;
            if (!stbi__create_png_image(z, z->expanded, raw_len, s->img_out_n, z->depth, color, interlace)) return 0;
            if (has_trans) {
               if (z->depth == 16) {
                  if (!stbi__compute_transparency16(z, tc16, s->img_out_n)) return 0;
               } else {
                  if (!stbi__compute_transparency(z, tc, s->img_out_n)) return 0;
               }
            }
            if (is_iphone && stbi__de_iphone_flag && s->img_out_n > 2)
               stbi__de_iphone(z);
            if (pal_img_n) {
               // pal_img_n == 3 or 4
               s->img_n = pal_img_n; // record the actual colors we had
               s->img_out_n = pal_img_n;
               if (req_comp >= 3) s->img_out_n = req_comp;
               if (!stbi__expand_png_palette(z, palette, pal_len, s->img_out_n))
                  return 0;
            } else if (has_trans) {
               // non-paletted image with tRNS -> source image has (constant) alpha
               ++s->img_n;
            }
            STBI_FREE(z->expanded); z->expanded = NULL;
            return 1;
         }

         default:
            // if critical, fail
            if (first) return stbi__err("first not IHDR", "Corrupt PNG");
            if ((c.type & (1 << 29)) == 0) {
               #ifndef STBI_NO_FAILURE_STRINGS
               // not threadsafe
               static char invalid_chunk[] = "XXXX PNG chunk not known";
               invalid_chunk[0] = STBI__BYTECAST(c.type >> 24);
               invalid_chunk[1] = STBI__BYTECAST(c.type >> 16);
               invalid_chunk[2] = STBI__BYTECAST(c.type >>  8);
               invalid_chunk[3] = STBI__BYTECAST(c.type >>  0);
               #endif
               return stbi__err(invalid_chunk, "PNG not supported: unknown PNG chunk type");
            }
            stbi__skip(s, c.length);
            break;
      }
      // end of PNG chunk, read and skip CRC
      stbi__get32be(s);
   }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4f8, %rsp            # imm = 0x4F8
movl %edx, %r14d
movl %esi, %ebx
movb $0x0, 0x2e(%rsp)
movw $0x0, 0x2c(%rsp)
movq (%rdi), %rbp
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movq %rdi, 0x18(%rsp)
movq $0x0, 0x18(%rdi)
movq %rbp, %rdi
callq 0x32d1c
testl %eax, %eax
je 0x33fd6
movl %r14d, 0x40(%rsp)
movl $0x1, 0x4(%rsp)
movl %ebx, 0x34(%rsp)
cmpl $0x1, %ebx
je 0x33fde
movq 0x18(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x50(%rsp)
leaq 0x38(%rbp), %r15
leaq 0x39(%rbp), %rax
movq %rax, 0x38(%rsp)
movl $0x1, 0x8(%rsp)
movq $0x0, 0xc8(%rsp)
movq $0x0, 0x68(%rsp)
movl $0x0, 0x44(%rsp)
movq $0x0, 0x58(%rsp)
xorl %r13d, %r13d
movq $0x0, 0x78(%rsp)
movq $0x0, 0x60(%rsp)
movl $0x0, 0xc(%rsp)
movq %rbp, 0x10(%rsp)
movq %r15, 0x90(%rsp)
movq %r13, 0x20(%rsp)
movq %rbp, %rdi
callq 0x31ea4
movl %eax, %r13d
shll $0x10, %r13d
movq %rbp, %rdi
callq 0x31ea4
movl %eax, %r12d
leal (%r12,%r13), %r15d
movq %rbp, %rdi
callq 0x31ea4
movl %eax, %r14d
movl %eax, %ebx
shll $0x10, %ebx
movq %rbp, %rdi
callq 0x31ea4
orl %eax, %ebx
cmpl $0x49484451, %ebx       # imm = 0x49484451
jg 0x32f46
cmpl $0x43674249, %ebx       # imm = 0x43674249
je 0x32fe3
cmpl $0x49444154, %ebx       # imm = 0x49444154
movq 0x10(%rsp), %rbp
movq 0x20(%rsp), %r13
je 0x33075
cmpl $0x49454e44, %ebx       # imm = 0x49454E44
jne 0x3302d
cmpl $0x0, 0x8(%rsp)
je 0x3312f
leaq 0xca0f(%rip), %rax      # 0x3f941
movq %rax, 0x1c5af(%rip)     # 0x4f4e8
movl $0x0, 0x4(%rsp)
jmp 0x33e56
cmpl $0x74524e53, %ebx       # imm = 0x74524E53
je 0x33005
cmpl $0x504c5445, %ebx       # imm = 0x504C5445
je 0x330b7
cmpl $0x49484452, %ebx       # imm = 0x49484452
movq 0x10(%rsp), %rbp
movq 0x20(%rsp), %r13
jne 0x3302d
cmpl $0x0, 0x8(%rsp)
je 0x33147
cmpl $0xd, %r15d
jne 0x33325
movq %rbp, %rdi
callq 0x31ea4
movl %eax, %ebx
shll $0x10, %ebx
movq %rbp, %rdi
callq 0x31ea4
orl %ebx, %eax
movl %eax, (%rbp)
cmpl $0x1000001, %eax        # imm = 0x1000001
movq 0x90(%rsp), %r15
jae 0x32fd7
movq %rbp, %rdi
callq 0x31ea4
movl %eax, %ebx
shll $0x10, %ebx
movq %rbp, %rdi
callq 0x31ea4
orl %ebx, %eax
movl %eax, 0x4(%rbp)
cmpl $0x1000001, %eax        # imm = 0x1000001
jb 0x3350d
leaq 0xc73c(%rip), %rax      # 0x3f71a
jmp 0x3332c
movl $0x1, 0x44(%rsp)
movq 0x10(%rsp), %rbp
movq 0x20(%rsp), %r13
movq %rbp, %rdi
movl %r15d, %esi
callq 0x320e4
jmp 0x33352
cmpl $0x0, 0x8(%rsp)
je 0x330f1
leaq 0xc92a(%rip), %rax      # 0x3f941
movq %rax, 0x1c4ca(%rip)     # 0x4f4e8
xorl %eax, %eax
movl $0x1, 0x8(%rsp)
jmp 0x33118
cmpl $0x0, 0x8(%rsp)
jne 0x330cc
movl $0x0, 0x8(%rsp)
btl $0xd, %r14d
jb 0x32ff5
movl %ebx, %ecx
shrl $0x18, %ecx
movb %cl, 0x1c3de(%rip)      # 0x4f430
movl %ebx, %ecx
shrl $0x10, %ecx
movb %cl, 0x1c3d4(%rip)      # 0x4f431
movb %bh, 0x1c3cf(%rip)      # 0x4f432
movb %al, 0x1c3ca(%rip)      # 0x4f433
leaq 0x1c3c0(%rip), %rax     # 0x4f430
jmp 0x33370
cmpl $0x0, 0x8(%rsp)
jne 0x330cc
cmpb $0x0, 0xc(%rsp)
movq 0x58(%rsp), %rax
je 0x33386
testl %eax, %eax
jne 0x33386
leaq 0xc900(%rip), %rax      # 0x3f99b
movq %rax, 0x1c446(%rip)     # 0x4f4e8
movl $0x0, 0x8(%rsp)
xorl %eax, %eax
movq $0x0, 0x58(%rsp)
jmp 0x330e4
cmpl $0x0, 0x8(%rsp)
movq 0x10(%rsp), %rbp
movq 0x20(%rsp), %r13
je 0x33153
leaq 0xc86e(%rip), %rax      # 0x3f941
movq %rax, 0x1c40e(%rip)     # 0x4f4e8
xorl %eax, %eax
movl $0x1, 0x8(%rsp)
movl $0x0, 0x4(%rsp)
jmp 0x33e58
movq 0x50(%rsp), %rax
cmpq $0x0, (%rax)
je 0x333ae
leaq 0xc856(%rip), %rax      # 0x3f95d
movq %rax, 0x1c3da(%rip)     # 0x4f4e8
movl $0x0, 0x8(%rsp)
xorl %eax, %eax
movl $0x0, 0x4(%rsp)
movq 0x10(%rsp), %rbp
movq 0x20(%rsp), %r13
jmp 0x33e58
cmpl $0x0, 0x34(%rsp)
je 0x333e7
movl $0x1, 0x4(%rsp)
jmp 0x33e56
leaq 0xc775(%rip), %rax      # 0x3f8c3
jmp 0x3332c
cmpl $0x301, %r15d           # imm = 0x301
jae 0x33369
movl %r12d, %eax
imulq $0x55555556, %rax, %rax # imm = 0x55555556
shrq $0x20, %rax
movq %rax, 0x58(%rsp)
leal (%rax,%rax,2), %eax
cmpl %r15d, %eax
jne 0x33369
movl $0x0, 0x8(%rsp)
cmpl $0x3, %r12d
movq 0x90(%rsp), %r15
jb 0x33352
movl 0x58(%rsp), %ebx
xorl %r14d, %r14d
movq 0xb8(%rbp), %rax
cmpq 0xc0(%rbp), %rax
jb 0x33205
cmpl $0x0, 0x30(%rbp)
je 0x331dc
movq 0x28(%rbp), %rdi
movl 0x34(%rbp), %edx
movq %r15, %rsi
callq *0x10(%rbp)
testl %eax, %eax
je 0x331e0
movq %r15, 0xb8(%rbp)
cltq
addq %r15, %rax
movq %rax, 0xc0(%rbp)
jmp 0x331fe
xorl %eax, %eax
jmp 0x33212
movl $0x0, 0x30(%rbp)
movq %r15, 0xb8(%rbp)
movq 0x38(%rsp), %rax
movq %rax, 0xc0(%rbp)
movb $0x0, 0x38(%rbp)
movq 0xb8(%rbp), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%rbp)
movb (%rax), %al
movb %al, 0xf0(%rsp,%r14,4)
movq 0xb8(%rbp), %rax
cmpq 0xc0(%rbp), %rax
jb 0x3327f
cmpl $0x0, 0x30(%rbp)
je 0x33256
movq 0x28(%rbp), %rdi
movl 0x34(%rbp), %edx
movq %r15, %rsi
callq *0x10(%rbp)
testl %eax, %eax
je 0x3325a
movq %r15, 0xb8(%rbp)
cltq
addq %r15, %rax
movq %rax, 0xc0(%rbp)
jmp 0x33278
xorl %eax, %eax
jmp 0x3328c
movl $0x0, 0x30(%rbp)
movq %r15, 0xb8(%rbp)
movq 0x38(%rsp), %rax
movq %rax, 0xc0(%rbp)
movb $0x0, 0x38(%rbp)
movq 0xb8(%rbp), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%rbp)
movb (%rax), %al
movb %al, 0xf1(%rsp,%r14,4)
movq 0xb8(%rbp), %rax
cmpq 0xc0(%rbp), %rax
jb 0x332f9
cmpl $0x0, 0x30(%rbp)
je 0x332d0
movq 0x28(%rbp), %rdi
movl 0x34(%rbp), %edx
movq %r15, %rsi
callq *0x10(%rbp)
testl %eax, %eax
je 0x332d4
movq %r15, 0xb8(%rbp)
cltq
addq %r15, %rax
movq %rax, 0xc0(%rbp)
jmp 0x332f2
xorl %eax, %eax
jmp 0x33306
movl $0x0, 0x30(%rbp)
movq %r15, 0xb8(%rbp)
movq 0x38(%rsp), %rax
movq %rax, 0xc0(%rbp)
movb $0x0, 0x38(%rbp)
movq 0xb8(%rbp), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%rbp)
movb (%rax), %al
movb %al, 0xf2(%rsp,%r14,4)
movb $-0x1, 0xf3(%rsp,%r14,4)
incq %r14
cmpq %r14, %rbx
jne 0x331a0
jmp 0x33352
leaq 0xc5a5(%rip), %rax      # 0x3f8d1
movq %rax, 0x1c1b5(%rip)     # 0x4f4e8
xorl %ecx, %ecx
movl $0x0, 0x4(%rsp)
movl $0x0, 0x8(%rsp)
movl $0x0, %eax
testb %cl, %cl
je 0x33e58
movq %rbp, %rdi
callq 0x31ea4
movq %rbp, %rdi
callq 0x31ea4
movb $0x1, %al
jmp 0x33e58
leaq 0xc5e0(%rip), %rax      # 0x3f950
movq %rax, 0x1c171(%rip)     # 0x4f4e8
movl $0x0, 0x8(%rsp)
xorl %eax, %eax
jmp 0x330e4
cmpl $0x2, 0x34(%rsp)
jne 0x334a3
movzbl 0xc(%rsp), %eax
movl %eax, 0x8(%rbp)
movl $0x1, 0x4(%rsp)
movl $0x0, 0x8(%rsp)
jmp 0x33e56
cmpb $0x0, 0xc(%rsp)
je 0x33558
cmpl $0x2, 0x34(%rsp)
jne 0x3358c
movq 0x10(%rsp), %rbp
movl $0x4, 0x8(%rbp)
movl $0x1, 0x4(%rsp)
movl $0x0, 0x8(%rsp)
xorl %eax, %eax
jmp 0x33125
movq 0x50(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x33580
movq 0x18(%rsp), %rbx
movl 0x20(%rbx), %eax
imull (%rbp), %eax
addl $0x7, %eax
shrl $0x3, %eax
movl 0x4(%rbp), %ecx
movl 0x8(%rbp), %edx
imull %ecx, %edx
imull %eax, %edx
addl %ecx, %edx
movl %edx, 0x74(%rsp)
xorl %r8d, %r8d
cmpl $0x0, 0x44(%rsp)
sete %r8b
movq 0x78(%rsp), %rsi
leaq 0x74(%rsp), %rcx
callq 0x25e62
movq %rax, 0x10(%rbx)
movl $0x0, 0x4(%rsp)
testq %rax, %rax
je 0x33e56
movl 0x40(%rsp), %r12d
cmpl $0x3, %r12d
setne %bl
movq 0x50(%rsp), %r14
movq (%r14), %rdi
callq 0x6490
movq $0x0, (%r14)
movl 0x8(%rbp), %eax
leal 0x1(%rax), %ecx
cmpl %r12d, %ecx
sete %dl
cmpb $0x0, 0xc(%rsp)
sete %sil
andb %bl, %sil
andb %dl, %sil
cmpb $0x0, 0x60(%rsp)
setne %dl
orb %sil, %dl
cmpb $0x1, %dl
jne 0x335ae
movl %ecx, 0xc(%rbp)
jmp 0x335b1
movq 0x78(%rsp), %rax
leal (%r15,%rax), %ebp
movl $0x0, 0x8(%rsp)
cmpl %eax, %ebp
jl 0x33c6f
cmpl %r13d, %ebp
jbe 0x33c23
cmpl $0x1001, %r15d          # imm = 0x1001
movl $0x1000, %eax           # imm = 0x1000
cmovael %r15d, %eax
testl %r13d, %r13d
cmovnel %r13d, %eax
movl %eax, %r13d
leal (,%r13,2), %eax
cmpl %r13d, %ebp
ja 0x334dc
movq 0x50(%rsp), %rbx
movq (%rbx), %rdi
movl %r13d, %esi
callq 0x6660
testq %rax, %rax
je 0x33c08
movq %rax, (%rbx)
jmp 0x33c1e
movq 0xb8(%rbp), %rax
cmpq 0xc0(%rbp), %rax
jb 0x33b88
cmpl $0x0, 0x30(%rbp)
je 0x339a8
movq 0x28(%rbp), %rdi
movl 0x34(%rbp), %edx
movq %r15, %rsi
callq *0x10(%rbp)
testl %eax, %eax
je 0x33b63
movq %r15, 0xb8(%rbp)
cltq
addq %r15, %rax
movq %rax, 0xc0(%rbp)
jmp 0x33b81
movq 0x10(%rsp), %rbp
movl 0x8(%rbp), %eax
testb $0x1, %al
leaq 0xa1e7(%rip), %r12      # 0x3d750
movq 0x20(%rsp), %r13
jne 0x338e0
leaq 0xc410(%rip), %rax      # 0x3f98b
jmp 0x33a6e
leaq 0xc426(%rip), %rax      # 0x3f9ad
jmp 0x32f32
movq 0x58(%rsp), %rax
testl %eax, %eax
je 0x33982
cmpl %r15d, %eax
jae 0x339af
leaq 0xc3d5(%rip), %rax      # 0x3f97e
jmp 0x33107
movl %eax, 0xc(%rbp)
movq 0x18(%rsp), %rdi
movq (%rdi), %rax
movq 0x10(%rdi), %r10
movl 0xc(%rbp), %r12d
movl 0x20(%rdi), %r14d
cmpl $0x10, %r14d
sete %cl
movl %r12d, %ebx
shll %cl, %ebx
movl 0x74(%rsp), %r11d
movl (%rax), %r8d
movl 0x4(%rax), %r9d
cmpl $0x0, 0xc8(%rsp)
je 0x3392f
movl %r8d, %edi
movl %r9d, %esi
movl %ebx, %edx
xorl %ecx, %ecx
movq %r10, 0x80(%rsp)
movl %r11d, 0x30(%rsp)
callq 0x32255
movl 0x30(%rsp), %r9d
movq 0x80(%rsp), %rsi
movq %rax, 0x88(%rsp)
movslq %ebx, %rax
movq %rax, 0xb8(%rsp)
xorl %r10d, %r10d
movq %r14, %rbx
movq %r14, 0xe0(%rsp)
movl %r12d, 0xc0(%rsp)
movl %r12d, %r14d
movq 0x18(%rsp), %rax
movq (%rax), %rdi
leaq 0xa111(%rip), %rax      # 0x3d760
movslq (%rax,%r10,4), %rcx
leaq 0xa146(%rip), %rax      # 0x3d7a0
movslq (%rax,%r10,4), %r11
movq %rcx, 0x98(%rsp)
movl %ecx, %r8d
notl %r8d
addl (%rdi), %r8d
addl %r11d, %r8d
movl %r8d, %eax
xorl %edx, %edx
divl %r11d
movl %eax, 0x4c(%rsp)
leaq 0xa0fb(%rip), %rax      # 0x3d780
movl (%rax,%r10,4), %ecx
leaq 0xa130(%rip), %rax      # 0x3d7c0
movl (%rax,%r10,4), %r12d
movl %ecx, 0xb0(%rsp)
notl %ecx
addl 0x4(%rdi), %ecx
addl %r12d, %ecx
movl %ecx, %eax
xorl %edx, %edx
divl %r12d
movb $0x1, %dl
cmpl %r8d, %r11d
ja 0x338b1
cmpl %ecx, %r12d
ja 0x338b1
movl %r12d, 0x48(%rsp)
movq %r11, 0xa8(%rsp)
movq %r10, 0xd0(%rsp)
movl 0x4c(%rsp), %r8d
movl %r8d, %ecx
imull %ebx, %ecx
imull 0x8(%rdi), %ecx
movl %ecx, 0xc4(%rsp)
movq 0x18(%rsp), %rdi
movq %rsi, 0x80(%rsp)
movl %r9d, 0x30(%rsp)
movl %eax, %r12d
movl %r9d, %edx
movl %r14d, %ecx
movl %eax, %r9d
pushq 0x68(%rsp)
pushq %rbx
callq 0x34bf9
addq $0x10, %rsp
testl %eax, %eax
je 0x3388d
movl %r12d, 0x70(%rsp)
testl %r12d, %r12d
movq 0xb8(%rsp), %rcx
movq 0xa8(%rsp), %r15
movl 0xb0(%rsp), %r14d
jle 0x33830
movslq 0x4c(%rsp), %rbp
movl 0x70(%rsp), %eax
movq %rax, 0xe8(%rsp)
imull %ecx, %r14d
movl 0x48(%rsp), %eax
imull %ecx, %eax
movl %eax, 0x48(%rsp)
movq 0x98(%rsp), %r12
imulq %rcx, %r12
addq 0x88(%rsp), %r12
movq %r12, 0x98(%rsp)
imulq %rcx, %r15
movq $0x0, 0xa0(%rsp)
cmpl $0x0, 0x4c(%rsp)
jle 0x3380a
movq 0x18(%rsp), %rax
movq (%rax), %rdi
movq %rdi, 0xb0(%rsp)
movq 0x18(%rax), %rax
movq %rax, 0xa8(%rsp)
movq 0xa0(%rsp), %rbx
imulq %rbp, %rbx
movq 0x98(%rsp), %r12
xorl %r13d, %r13d
movq 0xb0(%rsp), %rax
movl (%rax), %edi
imull %r14d, %edi
addq %r12, %rdi
leaq (%rbx,%r13), %rsi
imulq %rcx, %rsi
addq 0xa8(%rsp), %rsi
movq 0xb8(%rsp), %rdx
callq 0x6330
movq 0xb8(%rsp), %rcx
incq %r13
addq %r15, %r12
cmpq %rbp, %r13
jl 0x337c9
movq 0xa0(%rsp), %rdi
incq %rdi
addl 0x48(%rsp), %r14d
movq %rdi, 0xa0(%rsp)
cmpq 0xe8(%rsp), %rdi
jb 0x3378f
movl 0xc4(%rsp), %ebx
addl $0x7, %ebx
sarl $0x3, %ebx
incl %ebx
imull 0x70(%rsp), %ebx
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x6490
movl %ebx, %eax
movq 0x80(%rsp), %rsi
addq %rax, %rsi
movl 0x30(%rsp), %r9d
subl %ebx, %r9d
movq 0x10(%rsp), %rbp
movq 0x20(%rsp), %r13
movq 0xe0(%rsp), %rbx
movl 0xc0(%rsp), %r12d
movq 0xd0(%rsp), %r10
movb $0x1, %dl
jmp 0x338b4
movq 0x88(%rsp), %rdi
callq 0x6490
xorl %edx, %edx
movq 0x80(%rsp), %rsi
movl 0x30(%rsp), %r9d
movq 0xd0(%rsp), %r10
movl %r14d, %r12d
testb %dl, %dl
je 0x33e56
incq %r10
cmpq $0x7, %r10
jne 0x3363d
movq 0x18(%rsp), %rax
movq 0x88(%rsp), %rcx
movq %rcx, 0x18(%rax)
movl 0x40(%rsp), %ebx
jmp 0x33953
addl %eax, %eax
cmpl %r15d, %eax
jne 0x33a67
movq 0x18(%rsp), %rax
cmpl $0x10, 0x20(%rax)
movl 0x8(%rbp), %eax
movb $0x1, %cl
jne 0x33d91
movq %rcx, 0x60(%rsp)
testl %eax, %eax
jle 0x33dc5
xorl %ebx, %ebx
movq %rbp, %rdi
callq 0x31ea4
movw %ax, 0xda(%rsp,%rbx,2)
incq %rbx
movslq 0x8(%rbp), %rax
cmpq %rax, %rbx
jl 0x3390e
jmp 0x33dc5
movq %r10, %rsi
movl %r11d, %edx
movl %r12d, %ecx
pushq 0x68(%rsp)
pushq %r14
callq 0x34bf9
addq $0x10, %rsp
testl %eax, %eax
movl 0x40(%rsp), %ebx
je 0x33e56
cmpb $0x0, 0x60(%rsp)
je 0x33a96
movq 0x18(%rsp), %rdi
cmpl $0x10, 0x20(%rdi)
movl 0xc(%rbp), %edx
jne 0x33a8c
leaq 0xda(%rsp), %rsi
callq 0x349bc
jmp 0x33a96
leaq 0xbfe4(%rip), %rax      # 0x3f96d
movq %rax, 0x1bb58(%rip)     # 0x4f4e8
movl $0x0, 0x8(%rsp)
xorl %eax, %eax
movq $0x0, 0x58(%rsp)
jmp 0x33118
xorl %eax, %eax
jmp 0x33b95
movb $0x4, %al
movl %eax, 0xc(%rsp)
movl $0x0, 0x8(%rsp)
testl %r15d, %r15d
je 0x33e65
addl %r13d, %r12d
xorl %ebx, %ebx
movq 0x10(%rsp), %rbp
movq 0x90(%rsp), %r15
movq 0x20(%rsp), %r13
movq 0xb8(%rbp), %rax
cmpq 0xc0(%rbp), %rax
jb 0x33a42
cmpl $0x0, 0x30(%rbp)
je 0x33a19
movq 0x28(%rbp), %rdi
movl 0x34(%rbp), %edx
movq %r15, %rsi
callq *0x10(%rbp)
testl %eax, %eax
je 0x33a1d
movq %r15, 0xb8(%rbp)
cltq
addq %r15, %rax
movq %rax, 0xc0(%rbp)
jmp 0x33a3b
xorl %eax, %eax
jmp 0x33a4f
movl $0x0, 0x30(%rbp)
movq %r15, 0xb8(%rbp)
movq 0x38(%rsp), %rax
movq %rax, 0xc0(%rbp)
movb $0x0, 0x38(%rbp)
movq 0xb8(%rbp), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%rbp)
movb (%rax), %al
movb %al, 0xf3(%rsp,%rbx,4)
incq %rbx
cmpq %rbx, %r12
jne 0x339dd
jmp 0x33352
leaq 0xbf10(%rip), %rax      # 0x3f97e
movq %rax, 0x1ba73(%rip)     # 0x4f4e8
movl $0x0, 0x8(%rsp)
xorl %eax, %eax
movl $0x0, 0xc(%rsp)
jmp 0x330e4
leaq 0x2c(%rsp), %rsi
callq 0x34a54
cmpl $0x0, 0x44(%rsp)
movq 0x18(%rsp), %rdi
je 0x33abb
cmpl $0x0, 0x1ba4f(%rip)     # 0x4f4f8
je 0x33abb
cmpl $0x3, 0xc(%rbp)
jl 0x33abb
callq 0x34ae6
movq 0x18(%rsp), %rdi
movl 0xc(%rsp), %eax
testb %al, %al
je 0x33b50
cmpl $0x3, %ebx
movzbl %al, %r14d
movl %r14d, 0x8(%rbp)
cmovgel %ebx, %r14d
movl %r14d, 0xc(%rbp)
movq (%rdi), %rax
movq 0x18(%rdi), %rbx
movl 0x4(%rax), %ebp
imull (%rax), %ebp
movl %ebp, %edi
movl %r14d, %esi
xorl %edx, %edx
callq 0x3218f
movq %rax, %r12
testq %rax, %rax
je 0x33d7e
cmpl $0x3, %r14d
jne 0x33dda
testl %ebp, %ebp
je 0x33e20
movl %ebp, %eax
xorl %ecx, %ecx
movq %r12, %rdx
movzbl (%rbx,%rcx), %esi
movb 0xf0(%rsp,%rsi,4), %dil
movb %dil, (%rdx)
movb 0xf1(%rsp,%rsi,4), %dil
movb %dil, 0x1(%rdx)
movb 0xf2(%rsp,%rsi,4), %sil
movb %sil, 0x2(%rdx)
addq $0x3, %rdx
incq %rcx
cmpq %rcx, %rax
jne 0x33b18
jmp 0x33e20
cmpb $0x0, 0x60(%rsp)
je 0x33e3b
incl 0x8(%rbp)
jmp 0x33e3b
movl $0x0, 0x30(%rbp)
movq %r15, 0xb8(%rbp)
movq 0x38(%rsp), %rax
movq %rax, 0xc0(%rbp)
movb $0x0, 0x38(%rbp)
movq 0xb8(%rbp), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%rbp)
movb (%rax), %al
movzbl %al, %eax
movq 0x18(%rsp), %rcx
movl %eax, 0x20(%rcx)
cmpb $0x10, %al
ja 0x33bf5
movl $0x10116, %ecx          # imm = 0x10116
btl %eax, %ecx
jae 0x33bf5
movq 0xb8(%rbp), %rax
cmpq 0xc0(%rbp), %rax
jb 0x33cb4
cmpl $0x0, 0x30(%rbp)
je 0x33c01
movq 0x28(%rbp), %rdi
movl 0x34(%rbp), %edx
movq %r15, %rsi
callq *0x10(%rbp)
testl %eax, %eax
je 0x33c8f
movq %r15, 0xb8(%rbp)
cltq
addq %r15, %rax
movq %rax, 0xc0(%rbp)
jmp 0x33cad
leaq 0xbce2(%rip), %rax      # 0x3f8de
jmp 0x3332c
xorl %ebp, %ebp
jmp 0x33cc2
leaq 0xbb15(%rip), %rcx      # 0x3f724
movq %rcx, 0x1b8d2(%rip)     # 0x4f4e8
movl $0x0, 0x4(%rsp)
testq %rax, %rax
je 0x33c83
movq 0x50(%rsp), %rax
movl 0x78(%rsp), %esi
addq (%rax), %rsi
movq 0x10(%rsp), %rdi
movl %r15d, %edx
callq 0x3490f
testl %eax, %eax
je 0x33c59
movl $0x0, 0x8(%rsp)
movl %ebp, %eax
movq %rax, 0x78(%rsp)
movq 0x10(%rsp), %rbp
jmp 0x33352
leaq 0xbd43(%rip), %rax      # 0x3f9a3
movq %rax, 0x1b881(%rip)     # 0x4f4e8
movl $0x0, 0x8(%rsp)
xorl %eax, %eax
movl $0x0, 0x4(%rsp)
movq 0x10(%rsp), %rbp
jmp 0x33e58
movl $0x0, 0x8(%rsp)
xorl %eax, %eax
jmp 0x33c79
movl $0x0, 0x30(%rbp)
movq %r15, 0xb8(%rbp)
movq 0x38(%rsp), %rax
movq %rax, 0xc0(%rbp)
movb $0x0, 0x38(%rbp)
movq 0xb8(%rbp), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%rbp)
movb (%rax), %bpl
movzbl %bpl, %eax
cmpb $0x7, %al
movq %rax, 0x68(%rsp)
jb 0x33cf1
leaq 0xbc1c(%rip), %rax      # 0x3f8f2
movq %rax, 0x1b80b(%rip)     # 0x4f4e8
xorl %ecx, %ecx
movl $0x0, 0x4(%rsp)
movq 0x10(%rsp), %rbp
jmp 0x3333d
cmpl $0x3, %eax
movq 0x18(%rsp), %rax
jne 0x33d1f
movb $0x3, %bl
cmpl $0x10, 0x20(%rax)
jne 0x33d2b
leaq 0xbbe8(%rip), %rax      # 0x3f8f2
movq %rax, 0x1b7d7(%rip)     # 0x4f4e8
xorl %ecx, %ecx
movl $0x3, %eax
movq %rax, 0x68(%rsp)
jmp 0x33cdf
testb $0x1, %bpl
jne 0x33ccf
movl 0xc(%rsp), %eax
movl %eax, %ebx
movq 0x10(%rsp), %r14
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0x33e9b
cmpl $0x0, 0x30(%r14)
je 0x33eb7
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x33e74
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x33e94
leaq 0xb99f(%rip), %rax      # 0x3f724
movq %rax, 0x1b75c(%rip)     # 0x4f4e8
jmp 0x33e31
movq %rcx, 0x60(%rsp)
testl %eax, %eax
jle 0x33dc5
xorl %ebx, %ebx
movq 0x18(%rsp), %r14
movq %rbp, %rdi
callq 0x31ea4
movl %eax, %ecx
movslq 0x20(%r14), %rax
movb (%rax,%r12), %al
mulb %cl
movb %al, 0x2c(%rsp,%rbx)
incq %rbx
movslq 0x8(%rbp), %rax
cmpq %rax, %rbx
jl 0x33da1
movl $0x0, 0x8(%rsp)
movl $0x0, 0xc(%rsp)
jmp 0x33352
testl %ebp, %ebp
je 0x33e20
movl %ebp, %eax
xorl %ecx, %ecx
movzbl (%rbx,%rcx), %edx
movb 0xf0(%rsp,%rdx,4), %sil
movb %sil, (%r12,%rcx,4)
movb 0xf1(%rsp,%rdx,4), %sil
movb %sil, 0x1(%r12,%rcx,4)
movb 0xf2(%rsp,%rdx,4), %sil
movb %sil, 0x2(%r12,%rcx,4)
movb 0xf3(%rsp,%rdx,4), %dl
movb %dl, 0x3(%r12,%rcx,4)
incq %rcx
cmpq %rcx, %rax
jne 0x33de2
movq %rbx, %rdi
callq 0x6490
movq 0x18(%rsp), %rax
movq %r12, 0x18(%rax)
testq %r12, %r12
movq 0x10(%rsp), %rbp
je 0x33e56
movq 0x18(%rsp), %rbx
movq 0x10(%rbx), %rdi
callq 0x6490
movq $0x0, 0x10(%rbx)
jmp 0x3313a
xorl %eax, %eax
testb %al, %al
jne 0x32ead
jmp 0x33fde
movq 0x10(%rsp), %rbp
movq 0x20(%rsp), %r13
jmp 0x33352
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq 0x38(%rsp), %rax
movq %rax, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
cmpb $0x0, (%rax)
je 0x33eb7
leaq 0xba4a(%rip), %rax      # 0x3f8fc
jmp 0x33f41
movq %r14, %rdi
callq 0x31e20
testb %al, %al
je 0x33ecc
leaq 0xba42(%rip), %rax      # 0x3f90c
jmp 0x33f41
movq %r14, %rdi
callq 0x31e20
movzbl %al, %eax
movq %rax, 0xc8(%rsp)
cmpb $0x2, %al
jb 0x33eec
leaq 0xba34(%rip), %rax      # 0x3f91e
jmp 0x33f41
movl (%r14), %esi
testl %esi, %esi
je 0x33f3a
movl 0x4(%r14), %ecx
testl %ecx, %ecx
je 0x33f3a
testb %bl, %bl
je 0x33f60
movq 0x10(%rsp), %rbp
movl $0x1, 0x8(%rbp)
movl $0x40000000, %eax       # imm = 0x40000000
xorl %edx, %edx
divl %esi
shrl $0x2, %eax
cmpl %ecx, %eax
jae 0x33fc9
leaq 0xb7f4(%rip), %rax      # 0x3f71a
movq %rax, 0x1b5bb(%rip)     # 0x4f4e8
xorl %ecx, %ecx
movl %ebx, %eax
movl %eax, 0xc(%rsp)
jmp 0x33335
leaq 0xb9f2(%rip), %rax      # 0x3f933
movq %rax, 0x1b5a0(%rip)     # 0x4f4e8
xorl %ecx, %ecx
movl %ebx, %eax
movl %eax, 0xc(%rsp)
movl $0x0, 0x4(%rsp)
movq %r14, %rbp
jmp 0x3333d
movq 0x68(%rsp), %rax
andl $0x2, %eax
xorl %edx, %edx
cmpb $0x4, %bpl
setae %dl
leal 0x1(%rdx,%rax), %edi
movq 0x10(%rsp), %rbp
movl %edi, 0x8(%rbp)
movl $0x40000000, %eax       # imm = 0x40000000
xorl %edx, %edx
divl %esi
xorl %edx, %edx
divl %edi
cmpl %ecx, %eax
jae 0x33fab
leaq 0xb785(%rip), %rax      # 0x3f71a
movq %rax, 0x1b54c(%rip)     # 0x4f4e8
xorl %ecx, %ecx
movl $0x0, 0xc(%rsp)
jmp 0x33335
cmpl $0x2, 0x34(%rsp)
jne 0x33fc9
movl $0x1, 0x4(%rsp)
xorl %ecx, %ecx
movl $0x0, 0xc(%rsp)
jmp 0x3333d
movb $0x1, %cl
movl %ebx, %eax
movl %eax, 0xc(%rsp)
jmp 0x3333d
movl $0x0, 0x4(%rsp)
movl 0x4(%rsp), %eax
addq $0x4f8, %rsp            # imm = 0x4F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq