// File: /workspace/github_cpp_makefile_star2_O2/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 $0x4a8, %rsp            # imm = 0x4A8
movl %edx, %ebx
movl %esi, %ebp
andw $0x0, 0xc(%rsp)
movq %rdi, %r12
movb $0x0, 0xe(%rsp)
movq (%rdi), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
andq $0x0, 0x18(%rdi)
movq %r14, %rdi
callq 0x29569
testl %eax, %eax
je 0x29ab3
cmpl $0x1, %ebp
jne 0x2960a
pushq $0x1
popq %r15
jmp 0x29ab6
movl %ebp, 0x20(%rsp)
movl %ebx, 0x14(%rsp)
leaq 0x8(%r12), %rax
movq %rax, 0x28(%rsp)
pushq $0x1
popq %r15
movl $0x0, 0x10(%rsp)
movq $0x0, 0x68(%rsp)
movl $0x0, 0x44(%rsp)
movq $0x0, 0x30(%rsp)
xorl %r13d, %r13d
movq $0x0, 0x18(%rsp)
movq $0x0, 0x50(%rsp)
xorl %ebx, %ebx
movq %r12, 0x38(%rsp)
movq %r14, %rdi
callq 0x2a9e5
movl %eax, %ebp
movq %r14, %rdi
callq 0x2a9e5
cmpl $0x43674249, %eax       # imm = 0x43674249
je 0x297c4
cmpl $0x49444154, %eax       # imm = 0x49444154
je 0x2985b
cmpl $0x49484452, %eax       # imm = 0x49484452
je 0x296c9
cmpl $0x504c5445, %eax       # imm = 0x504C5445
je 0x297da
cmpl $0x74524e53, %eax       # imm = 0x74524E53
je 0x29761
cmpl $0x49454e44, %eax       # imm = 0x49454E44
je 0x29a9c
testl %r15d, %r15d
jne 0x29aa5
xorl %r15d, %r15d
btl $0x1d, %eax
jb 0x297cb
jmp 0x29ad4
testl %r15d, %r15d
je 0x29acb
cmpl $0xd, %ebp
jne 0x29aec
movq %r14, %rdi
callq 0x2a9e5
movl %eax, (%r14)
cmpl $0x1000001, %eax        # imm = 0x1000001
jae 0x29a78
movq %r14, %rdi
callq 0x2a9e5
movl %eax, 0x4(%r14)
cmpl $0x1000001, %eax        # imm = 0x1000001
jae 0x29a78
movq %r14, %rdi
callq 0x28b62
movzbl %al, %eax
movl %eax, 0x20(%r12)
cmpb $0x10, %al
ja 0x29e69
movl $0x10116, %ecx          # imm = 0x10116
btl %eax, %ecx
jae 0x29e69
movq %r14, %rdi
callq 0x28b62
cmpb $0x7, %al
jae 0x29a8a
movl %eax, %ebp
movzbl %al, %r15d
cmpl $0x3, %r15d
jne 0x29927
movb $0x3, %bl
cmpl $0x10, 0x20(%r12)
jne 0x29931
jmp 0x29a8a
testl %r15d, %r15d
jne 0x29aa5
movq 0x28(%rsp), %rax
cmpq $0x0, (%rax)
jne 0x29af5
testb %bl, %bl
je 0x299ae
cmpl $0x2, 0x20(%rsp)
movq 0x30(%rsp), %rax
je 0x29b49
testl %eax, %eax
je 0x29b56
cmpl %ebp, %eax
jb 0x29b13
movl %ebp, %ebx
xorl %r15d, %r15d
cmpq %r15, %rbx
je 0x298e9
movq %r14, %rdi
callq 0x28b62
movb %al, 0xa3(%rsp,%r15,4)
incq %r15
jmp 0x297a6
pushq $0x1
popq %rax
movl %eax, 0x44(%rsp)
movq %r14, %rdi
movl %ebp, %esi
callq 0x28d59
jmp 0x29a6b
testl %r15d, %r15d
jne 0x29aa5
cmpl $0x301, %ebp            # imm = 0x301
jae 0x29a81
movl %ebp, %eax
xorl %edx, %edx
movw $0x3, %cx
divw %cx
movzwl %ax, %ecx
leal (%rcx,%rcx,2), %eax
cmpl %ebp, %eax
jne 0x29a81
movl %ebx, %ebp
movq %rcx, 0x30(%rsp)
movl %ecx, %ebx
xorl %r15d, %r15d
cmpq %r15, %rbx
je 0x298df
movq %r14, %rdi
callq 0x28b62
movb %al, 0xa0(%rsp,%r15,4)
movq %r14, %rdi
callq 0x28b62
movb %al, 0xa1(%rsp,%r15,4)
movq %r14, %rdi
callq 0x28b62
movb %al, 0xa2(%rsp,%r15,4)
movb $-0x1, 0xa3(%rsp,%r15,4)
incq %r15
jmp 0x29814
testl %r15d, %r15d
jne 0x29aa5
testb %bl, %bl
je 0x29873
cmpl $0x0, 0x30(%rsp)
je 0x29afe
cmpl $0x2, 0x20(%rsp)
je 0x29b07
movq 0x18(%rsp), %rcx
leal (%rcx,%rbp), %r12d
cmpl %ecx, %r12d
jl 0x29ab3
cmpl %r13d, %r12d
jbe 0x298f3
cmpl $0x1001, %ebp           # imm = 0x1001
movl %ebp, %eax
movl $0x1000, %ecx           # imm = 0x1000
cmovbl %ecx, %eax
testl %r13d, %r13d
cmovnel %r13d, %eax
movq 0x28(%rsp), %r15
movl %eax, %r13d
leal (,%r13,2), %eax
cmpl %r13d, %r12d
ja 0x298b1
movq (%r15), %rdi
movl %r13d, %esi
callq 0x6690
testq %rax, %rax
je 0x2a164
movq %rax, (%r15)
movq 0x18(%rsp), %rcx
jmp 0x298fb
xorl %r15d, %r15d
movl %ebp, %ebx
jmp 0x29a6b
movb $0x4, %bl
xorl %r15d, %r15d
jmp 0x29a6b
movq 0x28(%rsp), %rax
movq (%rax), %rax
movl %ecx, %esi
addq %rax, %rsi
movq %r14, %rdi
movl %ebp, %edx
callq 0x2aa06
testl %eax, %eax
je 0x29b1c
xorl %r15d, %r15d
movl %r12d, %eax
movq %rax, 0x18(%rsp)
movq 0x38(%rsp), %r12
jmp 0x29a6b
testb $0x1, %bpl
jne 0x29a8a
movq %r14, %rdi
callq 0x28b62
testb %al, %al
jne 0x29b25
movq %r14, %rdi
callq 0x28b62
testb %al, %al
jne 0x29b31
movq %r14, %rdi
callq 0x28b62
cmpb $0x2, %al
jae 0x29b3d
movl (%r14), %esi
testl %esi, %esi
je 0x29a93
movl 0x4(%r14), %ecx
testl %ecx, %ecx
je 0x29a93
movzbl %al, %r8d
testb %bl, %bl
movq %r15, 0x68(%rsp)
movl %r8d, 0x10(%rsp)
je 0x299f0
movl $0x1, 0x8(%r14)
xorl %r15d, %r15d
movl $0x40000000, %eax       # imm = 0x40000000
xorl %edx, %edx
divl %esi
shrl $0x2, %eax
cmpl %ecx, %eax
jae 0x29a6b
jmp 0x29a78
movl 0x8(%r14), %eax
testb $0x1, %al
je 0x29e5d
leal (%rax,%rax), %ecx
cmpl %ebp, %ecx
jne 0x29b13
cmpl $0x10, 0x20(%r12)
jne 0x29a2d
xorl %ebx, %ebx
cltq
cmpq %rax, %rbx
jge 0x29a5f
movq %r14, %rdi
callq 0x28be3
movw %ax, 0x4a(%rsp,%rbx,2)
incq %rbx
movl 0x8(%r14), %eax
jmp 0x299cf
movl %r15d, %eax
andl $0x2, %eax
xorl %edx, %edx
cmpb $0x4, %bpl
setae %dl
leal (%rdx,%rax), %edi
incl %edi
movl %edi, 0x8(%r14)
movl $0x40000000, %eax       # imm = 0x40000000
xorl %edx, %edx
divl %esi
xorl %edx, %edx
divl %edi
cmpl %ecx, %eax
jb 0x29a78
xorl %r15d, %r15d
movl $0x0, %ebx
cmpl $0x2, 0x20(%rsp)
jne 0x29a6b
jmp 0x29601
xorl %ebx, %ebx
leaq 0x7e8a(%rip), %r15      # 0x318c0
cltq
cmpq %rax, %rbx
jge 0x29a5f
movq %r14, %rdi
callq 0x28be3
movl %eax, %ecx
movslq 0x20(%r12), %rax
movb (%rax,%r15), %al
mulb %cl
movb %al, 0xc(%rsp,%rbx)
incq %rbx
movl 0x8(%r14), %eax
jmp 0x29a36
movb $0x1, %al
movq %rax, 0x50(%rsp)
xorl %r15d, %r15d
xorl %ebx, %ebx
movq %r14, %rdi
callq 0x2a9e5
jmp 0x2965e
leaq 0x9e0b(%rip), %rax      # 0x3388a
jmp 0x29aac
leaq 0xa038(%rip), %rax      # 0x33ac0
jmp 0x29aac
leaq 0x9fd1(%rip), %rax      # 0x33a62
jmp 0x29aac
leaq 0xa009(%rip), %rax      # 0x33aa3
jmp 0x29aac
testl %r15d, %r15d
je 0x29b62
leaq 0xa005(%rip), %rax      # 0x33ab1
movq %rax, 0x1ea65(%rip)     # 0x48518
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x4a8, %rsp            # imm = 0x4A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x9f61(%rip), %rax      # 0x33a33
jmp 0x29aac
leaq 0x1e985(%rip), %rcx     # 0x48460
bswapl %eax
movl %eax, 0x1e97d(%rip)     # 0x48460
movq %rcx, 0x1ea2e(%rip)     # 0x48518
jmp 0x29ab3
leaq 0x9f4e(%rip), %rax      # 0x33a41
jmp 0x29aac
leaq 0x9fd1(%rip), %rax      # 0x33acd
jmp 0x29aac
leaq 0xa006(%rip), %rax      # 0x33b0b
jmp 0x29aac
movzbl %bl, %eax
movl %eax, 0x8(%r14)
jmp 0x29601
leaq 0x9fd4(%rip), %rax      # 0x33aee
jmp 0x29aac
leaq 0x9ff0(%rip), %rax      # 0x33b13
jmp 0x29aac
leaq 0x9f40(%rip), %rax      # 0x33a6c
jmp 0x29aac
leaq 0x9f44(%rip), %rax      # 0x33a7c
jmp 0x29aac
leaq 0x9f4a(%rip), %rax      # 0x33a8e
jmp 0x29aac
movl $0x4, 0x8(%r14)
jmp 0x29601
leaq 0x9f80(%rip), %rax      # 0x33add
jmp 0x29aac
pushq $0x1
popq %r15
cmpl $0x0, 0x20(%rsp)
jne 0x29ab6
movq 0x28(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x29e75
movl 0x20(%r12), %eax
imull (%r14), %eax
addl $0x7, %eax
shrl $0x3, %eax
movl 0x4(%r14), %ecx
movl 0x8(%r14), %edx
imull %ecx, %edx
imull %eax, %edx
addl %ecx, %edx
leaq 0x7c(%rsp), %rcx
movl %edx, (%rcx)
xorl %r8d, %r8d
cmpl $0x0, 0x44(%rsp)
sete %r8b
movq 0x18(%rsp), %rsi
callq 0x20c89
movq %rax, 0x10(%r12)
xorl %r15d, %r15d
testq %rax, %rax
je 0x29ab6
movq 0x8(%r12), %rdi
callq 0x64d0
andq $0x0, 0x8(%r12)
movl 0x8(%r14), %eax
leal 0x1(%rax), %ecx
cmpb $0x0, 0x50(%rsp)
cmovnel %ecx, %eax
movl %ebx, %edx
movl 0x14(%rsp), %ebx
cmpl $0x3, %ebx
movl %eax, %ebp
cmovnel %ecx, %ebp
movl %edx, 0x74(%rsp)
testb %dl, %dl
cmovnel %eax, %ebp
cmpl %ebx, %ecx
cmovnel %eax, %ebp
movl %ebp, 0xc(%r14)
movq (%r12), %rax
movq 0x10(%r12), %r10
movl 0x20(%r12), %ecx
movq %rcx, 0x80(%rsp)
cmpl $0x10, %ecx
sete %cl
movl %ebp, 0x58(%rsp)
shll %cl, %ebp
movl 0x7c(%rsp), %r11d
movl (%rax), %r8d
movl 0x4(%rax), %r9d
cmpl $0x0, 0x10(%rsp)
je 0x29e91
movl %r8d, %edi
movl %r9d, %esi
movl %ebp, %edx
xorl %ecx, %ecx
movq %r10, 0x88(%rsp)
movl %r11d, 0x5c(%rsp)
callq 0x28eb4
movq %rax, 0x60(%rsp)
movslq %ebp, %r15
xorl %ebx, %ebx
leaq 0x7c5c(%rip), %r10      # 0x318d0
leaq 0x7c95(%rip), %rcx      # 0x31910
leaq 0x7c6e(%rip), %r13      # 0x318f0
cmpq $0x7, %rbx
je 0x29e81
movq (%r12), %rdi
movq %r10, %rsi
movslq (%r10,%rbx,4), %rax
movq %rcx, %rbp
movslq (%rcx,%rbx,4), %r10
movq %rax, 0x20(%rsp)
movl %eax, %r8d
notl %r8d
addl (%rdi), %r8d
addl %r10d, %r8d
movl %r8d, %eax
xorl %edx, %edx
divl %r10d
movl %eax, %r11d
movq %r13, %r9
movl (%r13,%rbx,4), %ecx
movl %ecx, 0x18(%rsp)
notl %ecx
addl 0x4(%rdi), %ecx
leaq 0x7c5e(%rip), %rax      # 0x31930
movl (%rax,%rbx,4), %r13d
addl %r13d, %ecx
movl %ecx, %eax
xorl %edx, %edx
divl %r13d
movq %r10, 0x30(%rsp)
cmpl %r8d, %r10d
ja 0x29e11
movl %r13d, 0x10(%rsp)
cmpl %ecx, %r13d
ja 0x29e11
movl %r11d, %r13d
movl %r11d, %ebp
movl %eax, %r9d
movq 0x80(%rsp), %rax
imull %eax, %ebp
imull 0x8(%rdi), %ebp
movq %r12, %rdi
movq 0x88(%rsp), %rsi
movl 0x5c(%rsp), %edx
movl 0x58(%rsp), %ecx
movl %r11d, %r8d
movl %r9d, 0x28(%rsp)
pushq 0x68(%rsp)
pushq %rax
callq 0x2aaa6
popq %rcx
popq %rdx
testl %eax, %eax
je 0x29f43
movq %rbx, 0x90(%rsp)
addl $0x7, %ebp
sarl $0x3, %ebp
incl %ebp
movl 0x28(%rsp), %eax
imull %eax, %ebp
movl %ebp, 0x78(%rsp)
movslq %r13d, %rbp
cltq
movq %rax, 0x98(%rsp)
movl 0x18(%rsp), %eax
imull %r15d, %eax
movl %eax, 0x18(%rsp)
movl 0x10(%rsp), %r13d
imull %r15d, %r13d
movq 0x20(%rsp), %rax
imulq %r15, %rax
addq 0x60(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rax
imulq %r15, %rax
movq %rax, 0x30(%rsp)
xorl %ebx, %ebx
movl %r13d, 0x10(%rsp)
cmpq 0x98(%rsp), %rbx
jge 0x29e1c
movq %rbx, 0x28(%rsp)
imulq %rbp, %rbx
movq 0x20(%rsp), %r12
xorl %r13d, %r13d
cmpq %rbp, %r13
jge 0x29df8
movq 0x38(%rsp), %rcx
movq (%rcx), %rax
movl (%rax), %edi
imull 0x18(%rsp), %edi
addq %r12, %rdi
leaq (%rbx,%r13), %rsi
imulq %r15, %rsi
addq 0x18(%rcx), %rsi
movq %r15, %rdx
callq 0x6360
incq %r13
addq 0x30(%rsp), %r12
jmp 0x29dc3
movq 0x28(%rsp), %rbx
incq %rbx
movl 0x10(%rsp), %r13d
addl %r13d, 0x18(%rsp)
movq 0x38(%rsp), %r12
jmp 0x29da8
movq %rsi, %r10
movq %rbp, %rcx
movq %r9, %r13
jmp 0x29e55
movq 0x18(%r12), %rdi
callq 0x64d0
movl 0x78(%rsp), %ecx
movl %ecx, %eax
addq %rax, 0x88(%rsp)
subl %ecx, 0x5c(%rsp)
movq 0x90(%rsp), %rbx
leaq 0x7a89(%rip), %r10      # 0x318d0
leaq 0x7ac2(%rip), %rcx      # 0x31910
leaq 0x7a9b(%rip), %r13      # 0x318f0
incq %rbx
jmp 0x29c82
leaq 0x9c97(%rip), %rax      # 0x33afb
jmp 0x29aac
leaq 0x9bde(%rip), %rax      # 0x33a4e
jmp 0x29aac
leaq 0x9ca1(%rip), %rax      # 0x33b1d
jmp 0x29aac
movq 0x60(%rsp), %rax
movq %rax, 0x18(%r12)
movl 0x14(%rsp), %ebx
jmp 0x29eb8
movq %r12, %rdi
movq %r10, %rsi
movl %r11d, %edx
movl 0x58(%rsp), %ecx
pushq 0x68(%rsp)
pushq 0x88(%rsp)
callq 0x2aaa6
popq %rcx
popq %rdx
testl %eax, %eax
je 0x29ab6
cmpb $0x0, 0x50(%rsp)
je 0x29fc1
movq (%r12), %rcx
movq 0x18(%r12), %rax
movl 0x4(%rcx), %esi
imull (%rcx), %esi
cmpl $0x10, 0x20(%r12)
movl 0xc(%r14), %edx
movl %esi, %ecx
jne 0x29f13
cmpl $0x4, %edx
je 0x29f52
cmpl $0x2, %edx
jne 0x2a1c0
movzwl 0x4a(%rsp), %edx
xorl %esi, %esi
cmpl %esi, %ecx
je 0x29fc1
xorl %edi, %edi
cmpw %dx, (%rax,%rsi,4)
setne %dil
negl %edi
movw %di, 0x2(%rax,%rsi,4)
incq %rsi
jmp 0x29ef5
cmpl $0x4, %edx
je 0x29f8c
cmpl $0x2, %edx
jne 0x2a1df
movb 0xc(%rsp), %dl
xorl %esi, %esi
cmpl %esi, %ecx
je 0x29fc1
cmpb %dl, (%rax,%rsi,2)
setne %dil
negb %dil
movb %dil, 0x1(%rax,%rsi,2)
incq %rsi
jmp 0x29f27
movq 0x60(%rsp), %rdi
callq 0x64d0
jmp 0x29ab3
movzwl 0x4a(%rsp), %edx
movzwl 0x4c(%rsp), %esi
movzwl 0x4e(%rsp), %edi
xorl %r8d, %r8d
cmpl %r8d, %ecx
je 0x29fc1
cmpw %dx, (%rax,%r8,8)
jne 0x29f87
cmpw %si, 0x2(%rax,%r8,8)
jne 0x29f87
cmpw %di, 0x4(%rax,%r8,8)
jne 0x29f87
andw $0x0, 0x6(%rax,%r8,8)
incq %r8
jmp 0x29f64
movb 0xc(%rsp), %dl
movb 0xd(%rsp), %sil
movb 0xe(%rsp), %dil
xorl %r8d, %r8d
cmpl %r8d, %ecx
je 0x29fc1
cmpb %dl, (%rax,%r8,4)
jne 0x29fbc
cmpb %sil, 0x1(%rax,%r8,4)
jne 0x29fbc
cmpb %dil, 0x2(%rax,%r8,4)
jne 0x29fbc
movb $0x0, 0x3(%rax,%r8,4)
incq %r8
jmp 0x29f9d
cmpl $0x0, 0x44(%rsp)
je 0x2a0df
cmpl $0x0, 0x1e555(%rip)     # 0x48528
je 0x2a0df
cmpl $0x3, 0xc(%r14)
jl 0x2a0df
movq (%r12), %rsi
movq 0x18(%r12), %rcx
movl 0x4(%rsi), %eax
movl 0xc(%rsi), %edx
imull (%rsi), %eax
cmpl $0x4, %edx
je 0x2a028
cmpl $0x3, %edx
jne 0x2a1fe
movq 0x38(%rsp), %r12
movl 0x14(%rsp), %ebx
subl $0x1, %eax
jb 0x2a0df
movb (%rcx), %dl
movb 0x2(%rcx), %sil
movb %sil, (%rcx)
movb %dl, 0x2(%rcx)
addq $0x3, %rcx
jmp 0x2a00d
cmpl $0x0, 0x1e4f5(%rip)     # 0x48524
je 0x2a0b7
movl %eax, %esi
xorl %edi, %edi
movq 0x38(%rsp), %r12
movl 0x14(%rsp), %ebx
cmpl %edi, %esi
je 0x2a0df
movzbl 0x3(%rcx,%rdi,4), %r8d
movb (%rcx,%rdi,4), %al
testl %r8d, %r8d
je 0x2a0a7
movzbl %al, %r9d
movl %r8d, %r10d
shrl %r10d
movzbl 0x2(%rcx,%rdi,4), %eax
imull $0xff, %eax, %eax
addl %r10d, %eax
xorl %edx, %edx
divw %r8w
movb %al, (%rcx,%rdi,4)
movzbl 0x1(%rcx,%rdi,4), %eax
imull $0xff, %eax, %eax
addl %r10d, %eax
xorl %edx, %edx
divw %r8w
movb %al, 0x1(%rcx,%rdi,4)
imull $0xff, %r9d, %eax
addl %r10d, %eax
xorl %edx, %edx
divw %r8w
movb %al, 0x2(%rcx,%rdi,4)
jmp 0x2a0b2
movb 0x2(%rcx,%rdi,4), %dl
movb %dl, (%rcx,%rdi,4)
movb %al, 0x2(%rcx,%rdi,4)
incq %rdi
jmp 0x2a042
movl %eax, %eax
xorl %edx, %edx
movq 0x38(%rsp), %r12
movl 0x14(%rsp), %ebx
cmpl %edx, %eax
je 0x2a0df
movb (%rcx,%rdx,4), %sil
movb 0x2(%rcx,%rdx,4), %dil
movb %dil, (%rcx,%rdx,4)
movb %sil, 0x2(%rcx,%rdx,4)
incq %rdx
jmp 0x2a0c4
movl 0x74(%rsp), %eax
testb %al, %al
je 0x2a1a0
movzbl %al, %ebp
movl %ebp, 0x8(%r14)
cmpl $0x3, %ebx
cmovgel %ebx, %ebp
movl %ebp, 0xc(%r14)
movq (%r12), %rax
movq 0x18(%r12), %r14
movl 0x4(%rax), %r13d
imull (%rax), %r13d
movl %r13d, %edi
movl %ebp, %esi
xorl %edx, %edx
callq 0x28e0c
testq %rax, %rax
je 0x2a164
movq %rax, %r12
movl %r13d, %eax
xorl %ecx, %ecx
cmpl $0x3, %ebp
jne 0x2a170
movq %r12, %rdx
cmpq %rcx, %rax
je 0x2a18a
movzbl (%r14,%rcx), %esi
movb 0xa0(%rsp,%rsi,4), %dil
movb %dil, (%rdx)
movb 0xa1(%rsp,%rsi,4), %dil
movb %dil, 0x1(%rdx)
movb 0xa2(%rsp,%rsi,4), %sil
movb %sil, 0x2(%rdx)
addq $0x3, %rdx
incq %rcx
jmp 0x2a12e
leaq 0x9729(%rip), %rax      # 0x33894
jmp 0x29aac
cmpq %rcx, %rax
je 0x2a18a
movzbl (%r14,%rcx), %edx
movl 0xa0(%rsp,%rdx,4), %edx
movl %edx, (%r12,%rcx,4)
incq %rcx
jmp 0x2a170
movq %r14, %rdi
callq 0x64d0
movq 0x38(%rsp), %rax
movq %r12, 0x18(%rax)
movq %rax, %r12
jmp 0x2a1ab
cmpb $0x0, 0x50(%rsp)
je 0x2a1ab
incl 0x8(%r14)
movq 0x10(%r12), %rdi
callq 0x64d0
andq $0x0, 0x10(%r12)
jmp 0x29601
leaq 0x9a49(%rip), %rdi      # 0x33c10
leaq 0x954d(%rip), %rsi      # 0x3371b
leaq 0x9a54(%rip), %rcx      # 0x33c29
movl $0x124d, %edx           # imm = 0x124D
callq 0x6280
leaq 0x9a2a(%rip), %rdi      # 0x33c10
leaq 0x952e(%rip), %rsi      # 0x3371b
leaq 0x9a78(%rip), %rcx      # 0x33c6c
movl $0x1234, %edx           # imm = 0x1234
callq 0x6280
leaq 0x9aa3(%rip), %rdi      # 0x33ca8
leaq 0x950f(%rip), %rsi      # 0x3371b
leaq 0x9aa7(%rip), %rcx      # 0x33cba
movl $0x129e, %edx           # imm = 0x129E
callq 0x6280