// File: /workspace/github_c_makefile_star2_O2/zhiyb[P]png2tlg/./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 0xb898
testl %eax, %eax
je 0xbde2
cmpl $0x1, %ebp
jne 0xb939
pushq $0x1
popq %r15
jmp 0xbde5
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 0xcd14
movl %eax, %ebp
movq %r14, %rdi
callq 0xcd14
cmpl $0x43674249, %eax       # imm = 0x43674249
je 0xbaf3
cmpl $0x49444154, %eax       # imm = 0x49444154
je 0xbb8a
cmpl $0x49484452, %eax       # imm = 0x49484452
je 0xb9f8
cmpl $0x504c5445, %eax       # imm = 0x504C5445
je 0xbb09
cmpl $0x74524e53, %eax       # imm = 0x74524E53
je 0xba90
cmpl $0x49454e44, %eax       # imm = 0x49454E44
je 0xbdcb
testl %r15d, %r15d
jne 0xbdd4
xorl %r15d, %r15d
btl $0x1d, %eax
jb 0xbafa
jmp 0xbe03
testl %r15d, %r15d
je 0xbdfa
cmpl $0xd, %ebp
jne 0xbe1b
movq %r14, %rdi
callq 0xcd14
movl %eax, (%r14)
cmpl $0x1000001, %eax        # imm = 0x1000001
jae 0xbda7
movq %r14, %rdi
callq 0xcd14
movl %eax, 0x4(%r14)
cmpl $0x1000001, %eax        # imm = 0x1000001
jae 0xbda7
movq %r14, %rdi
callq 0xae91
movzbl %al, %eax
movl %eax, 0x20(%r12)
cmpb $0x10, %al
ja 0xc198
movl $0x10116, %ecx          # imm = 0x10116
btl %eax, %ecx
jae 0xc198
movq %r14, %rdi
callq 0xae91
cmpb $0x7, %al
jae 0xbdb9
movl %eax, %ebp
movzbl %al, %r15d
cmpl $0x3, %r15d
jne 0xbc56
movb $0x3, %bl
cmpl $0x10, 0x20(%r12)
jne 0xbc60
jmp 0xbdb9
testl %r15d, %r15d
jne 0xbdd4
movq 0x28(%rsp), %rax
cmpq $0x0, (%rax)
jne 0xbe24
testb %bl, %bl
je 0xbcdd
cmpl $0x2, 0x20(%rsp)
movq 0x30(%rsp), %rax
je 0xbe78
testl %eax, %eax
je 0xbe85
cmpl %ebp, %eax
jb 0xbe42
movl %ebp, %ebx
xorl %r15d, %r15d
cmpq %r15, %rbx
je 0xbc18
movq %r14, %rdi
callq 0xae91
movb %al, 0xa3(%rsp,%r15,4)
incq %r15
jmp 0xbad5
pushq $0x1
popq %rax
movl %eax, 0x44(%rsp)
movq %r14, %rdi
movl %ebp, %esi
callq 0xb088
jmp 0xbd9a
testl %r15d, %r15d
jne 0xbdd4
cmpl $0x301, %ebp            # imm = 0x301
jae 0xbdb0
movl %ebp, %eax
xorl %edx, %edx
movw $0x3, %cx
divw %cx
movzwl %ax, %ecx
leal (%rcx,%rcx,2), %eax
cmpl %ebp, %eax
jne 0xbdb0
movl %ebx, %ebp
movq %rcx, 0x30(%rsp)
movl %ecx, %ebx
xorl %r15d, %r15d
cmpq %r15, %rbx
je 0xbc0e
movq %r14, %rdi
callq 0xae91
movb %al, 0xa0(%rsp,%r15,4)
movq %r14, %rdi
callq 0xae91
movb %al, 0xa1(%rsp,%r15,4)
movq %r14, %rdi
callq 0xae91
movb %al, 0xa2(%rsp,%r15,4)
movb $-0x1, 0xa3(%rsp,%r15,4)
incq %r15
jmp 0xbb43
testl %r15d, %r15d
jne 0xbdd4
testb %bl, %bl
je 0xbba2
cmpl $0x0, 0x30(%rsp)
je 0xbe2d
cmpl $0x2, 0x20(%rsp)
je 0xbe36
movq 0x18(%rsp), %rcx
leal (%rcx,%rbp), %r12d
cmpl %ecx, %r12d
jl 0xbde2
cmpl %r13d, %r12d
jbe 0xbc22
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 0xbbe0
movq (%r15), %rdi
movl %r13d, %esi
callq 0x22c0
testq %rax, %rax
je 0xc493
movq %rax, (%r15)
movq 0x18(%rsp), %rcx
jmp 0xbc2a
xorl %r15d, %r15d
movl %ebp, %ebx
jmp 0xbd9a
movb $0x4, %bl
xorl %r15d, %r15d
jmp 0xbd9a
movq 0x28(%rsp), %rax
movq (%rax), %rax
movl %ecx, %esi
addq %rax, %rsi
movq %r14, %rdi
movl %ebp, %edx
callq 0xcd35
testl %eax, %eax
je 0xbe4b
xorl %r15d, %r15d
movl %r12d, %eax
movq %rax, 0x18(%rsp)
movq 0x38(%rsp), %r12
jmp 0xbd9a
testb $0x1, %bpl
jne 0xbdb9
movq %r14, %rdi
callq 0xae91
testb %al, %al
jne 0xbe54
movq %r14, %rdi
callq 0xae91
testb %al, %al
jne 0xbe60
movq %r14, %rdi
callq 0xae91
cmpb $0x2, %al
jae 0xbe6c
movl (%r14), %esi
testl %esi, %esi
je 0xbdc2
movl 0x4(%r14), %ecx
testl %ecx, %ecx
je 0xbdc2
movzbl %al, %r8d
testb %bl, %bl
movq %r15, 0x68(%rsp)
movl %r8d, 0x10(%rsp)
je 0xbd1f
movl $0x1, 0x8(%r14)
xorl %r15d, %r15d
movl $0x40000000, %eax       # imm = 0x40000000
xorl %edx, %edx
divl %esi
shrl $0x2, %eax
cmpl %ecx, %eax
jae 0xbd9a
jmp 0xbda7
movl 0x8(%r14), %eax
testb $0x1, %al
je 0xc18c
leal (%rax,%rax), %ecx
cmpl %ebp, %ecx
jne 0xbe42
cmpl $0x10, 0x20(%r12)
jne 0xbd5c
xorl %ebx, %ebx
cltq
cmpq %rax, %rbx
jge 0xbd8e
movq %r14, %rdi
callq 0xaf12
movw %ax, 0x4a(%rsp,%rbx,2)
incq %rbx
movl 0x8(%r14), %eax
jmp 0xbcfe
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 0xbda7
xorl %r15d, %r15d
movl $0x0, %ebx
cmpl $0x2, 0x20(%rsp)
jne 0xbd9a
jmp 0xb930
xorl %ebx, %ebx
leaq 0x473b(%rip), %r15      # 0x104a0
cltq
cmpq %rax, %rbx
jge 0xbd8e
movq %r14, %rdi
callq 0xaf12
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 0xbd65
movb $0x1, %al
movq %rax, 0x50(%rsp)
xorl %r15d, %r15d
xorl %ebx, %ebx
movq %r14, %rdi
callq 0xcd14
jmp 0xb98d
leaq 0x4d21(%rip), %rax      # 0x10acf
jmp 0xbddb
leaq 0x4f4e(%rip), %rax      # 0x10d05
jmp 0xbddb
leaq 0x4ee7(%rip), %rax      # 0x10ca7
jmp 0xbddb
leaq 0x4f1f(%rip), %rax      # 0x10ce8
jmp 0xbddb
testl %r15d, %r15d
je 0xbe91
leaq 0x4f1b(%rip), %rax      # 0x10cf6
movq %rax, 0x9436(%rip)      # 0x15218
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 0x4e77(%rip), %rax      # 0x10c78
jmp 0xbddb
leaq 0x93c6(%rip), %rcx      # 0x151d0
bswapl %eax
movl %eax, 0x93be(%rip)      # 0x151d0
movq %rcx, 0x93ff(%rip)      # 0x15218
jmp 0xbde2
leaq 0x4e64(%rip), %rax      # 0x10c86
jmp 0xbddb
leaq 0x4ee7(%rip), %rax      # 0x10d12
jmp 0xbddb
leaq 0x4f1c(%rip), %rax      # 0x10d50
jmp 0xbddb
movzbl %bl, %eax
movl %eax, 0x8(%r14)
jmp 0xb930
leaq 0x4eea(%rip), %rax      # 0x10d33
jmp 0xbddb
leaq 0x4f06(%rip), %rax      # 0x10d58
jmp 0xbddb
leaq 0x4e56(%rip), %rax      # 0x10cb1
jmp 0xbddb
leaq 0x4e5a(%rip), %rax      # 0x10cc1
jmp 0xbddb
leaq 0x4e60(%rip), %rax      # 0x10cd3
jmp 0xbddb
movl $0x4, 0x8(%r14)
jmp 0xb930
leaq 0x4e96(%rip), %rax      # 0x10d22
jmp 0xbddb
pushq $0x1
popq %r15
cmpl $0x0, 0x20(%rsp)
jne 0xbde5
movq 0x28(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xc1a4
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 0x36fd
movq %rax, 0x10(%r12)
xorl %r15d, %r15d
testq %rax, %rax
je 0xbde5
movq 0x8(%r12), %rdi
callq 0x21c0
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 0xc1c0
movl %r8d, %edi
movl %r9d, %esi
movl %ebp, %edx
xorl %ecx, %ecx
movq %r10, 0x88(%rsp)
movl %r11d, 0x5c(%rsp)
callq 0xb1e3
movq %rax, 0x60(%rsp)
movslq %ebp, %r15
xorl %ebx, %ebx
leaq 0x450d(%rip), %r10      # 0x104b0
leaq 0x4546(%rip), %rcx      # 0x104f0
leaq 0x451f(%rip), %r13      # 0x104d0
cmpq $0x7, %rbx
je 0xc1b0
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 0x450f(%rip), %rax      # 0x10510
movl (%rax,%rbx,4), %r13d
addl %r13d, %ecx
movl %ecx, %eax
xorl %edx, %edx
divl %r13d
movq %r10, 0x30(%rsp)
cmpl %r8d, %r10d
ja 0xc140
movl %r13d, 0x10(%rsp)
cmpl %ecx, %r13d
ja 0xc140
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 0xcdd5
popq %rcx
popq %rdx
testl %eax, %eax
je 0xc272
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 0xc14b
movq %rbx, 0x28(%rsp)
imulq %rbp, %rbx
movq 0x20(%rsp), %r12
xorl %r13d, %r13d
cmpq %rbp, %r13
jge 0xc127
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 0x2130
incq %r13
addq 0x30(%rsp), %r12
jmp 0xc0f2
movq 0x28(%rsp), %rbx
incq %rbx
movl 0x10(%rsp), %r13d
addl %r13d, 0x18(%rsp)
movq 0x38(%rsp), %r12
jmp 0xc0d7
movq %rsi, %r10
movq %rbp, %rcx
movq %r9, %r13
jmp 0xc184
movq 0x18(%r12), %rdi
callq 0x21c0
movl 0x78(%rsp), %ecx
movl %ecx, %eax
addq %rax, 0x88(%rsp)
subl %ecx, 0x5c(%rsp)
movq 0x90(%rsp), %rbx
leaq 0x433a(%rip), %r10      # 0x104b0
leaq 0x4373(%rip), %rcx      # 0x104f0
leaq 0x434c(%rip), %r13      # 0x104d0
incq %rbx
jmp 0xbfb1
leaq 0x4bad(%rip), %rax      # 0x10d40
jmp 0xbddb
leaq 0x4af4(%rip), %rax      # 0x10c93
jmp 0xbddb
leaq 0x4bb7(%rip), %rax      # 0x10d62
jmp 0xbddb
movq 0x60(%rsp), %rax
movq %rax, 0x18(%r12)
movl 0x14(%rsp), %ebx
jmp 0xc1e7
movq %r12, %rdi
movq %r10, %rsi
movl %r11d, %edx
movl 0x58(%rsp), %ecx
pushq 0x68(%rsp)
pushq 0x88(%rsp)
callq 0xcdd5
popq %rcx
popq %rdx
testl %eax, %eax
je 0xbde5
cmpb $0x0, 0x50(%rsp)
je 0xc2f0
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 0xc242
cmpl $0x4, %edx
je 0xc281
cmpl $0x2, %edx
jne 0xc4ef
movzwl 0x4a(%rsp), %edx
xorl %esi, %esi
cmpl %esi, %ecx
je 0xc2f0
xorl %edi, %edi
cmpw %dx, (%rax,%rsi,4)
setne %dil
negl %edi
movw %di, 0x2(%rax,%rsi,4)
incq %rsi
jmp 0xc224
cmpl $0x4, %edx
je 0xc2bb
cmpl $0x2, %edx
jne 0xc50e
movb 0xc(%rsp), %dl
xorl %esi, %esi
cmpl %esi, %ecx
je 0xc2f0
cmpb %dl, (%rax,%rsi,2)
setne %dil
negb %dil
movb %dil, 0x1(%rax,%rsi,2)
incq %rsi
jmp 0xc256
movq 0x60(%rsp), %rdi
callq 0x21c0
jmp 0xbde2
movzwl 0x4a(%rsp), %edx
movzwl 0x4c(%rsp), %esi
movzwl 0x4e(%rsp), %edi
xorl %r8d, %r8d
cmpl %r8d, %ecx
je 0xc2f0
cmpw %dx, (%rax,%r8,8)
jne 0xc2b6
cmpw %si, 0x2(%rax,%r8,8)
jne 0xc2b6
cmpw %di, 0x4(%rax,%r8,8)
jne 0xc2b6
andw $0x0, 0x6(%rax,%r8,8)
incq %r8
jmp 0xc293
movb 0xc(%rsp), %dl
movb 0xd(%rsp), %sil
movb 0xe(%rsp), %dil
xorl %r8d, %r8d
cmpl %r8d, %ecx
je 0xc2f0
cmpb %dl, (%rax,%r8,4)
jne 0xc2eb
cmpb %sil, 0x1(%rax,%r8,4)
jne 0xc2eb
cmpb %dil, 0x2(%rax,%r8,4)
jne 0xc2eb
movb $0x0, 0x3(%rax,%r8,4)
incq %r8
jmp 0xc2cc
cmpl $0x0, 0x44(%rsp)
je 0xc40e
cmpl $0x0, 0x8f26(%rip)      # 0x15228
je 0xc40e
cmpl $0x3, 0xc(%r14)
jl 0xc40e
movq (%r12), %rsi
movq 0x18(%r12), %rcx
movl 0x4(%rsi), %eax
movl 0xc(%rsi), %edx
imull (%rsi), %eax
cmpl $0x4, %edx
je 0xc357
cmpl $0x3, %edx
jne 0xc52d
movq 0x38(%rsp), %r12
movl 0x14(%rsp), %ebx
subl $0x1, %eax
jb 0xc40e
movb (%rcx), %dl
movb 0x2(%rcx), %sil
movb %sil, (%rcx)
movb %dl, 0x2(%rcx)
addq $0x3, %rcx
jmp 0xc33c
cmpl $0x0, 0x8ec6(%rip)      # 0x15224
je 0xc3e6
movl %eax, %esi
xorl %edi, %edi
movq 0x38(%rsp), %r12
movl 0x14(%rsp), %ebx
cmpl %edi, %esi
je 0xc40e
movzbl 0x3(%rcx,%rdi,4), %r8d
movb (%rcx,%rdi,4), %al
testl %r8d, %r8d
je 0xc3d6
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 0xc3e1
movb 0x2(%rcx,%rdi,4), %dl
movb %dl, (%rcx,%rdi,4)
movb %al, 0x2(%rcx,%rdi,4)
incq %rdi
jmp 0xc371
movl %eax, %eax
xorl %edx, %edx
movq 0x38(%rsp), %r12
movl 0x14(%rsp), %ebx
cmpl %edx, %eax
je 0xc40e
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 0xc3f3
movl 0x74(%rsp), %eax
testb %al, %al
je 0xc4cf
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 0xb13b
testq %rax, %rax
je 0xc493
movq %rax, %r12
movl %r13d, %eax
xorl %ecx, %ecx
cmpl $0x3, %ebp
jne 0xc49f
movq %r12, %rdx
cmpq %rcx, %rax
je 0xc4b9
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 0xc45d
leaq 0x463f(%rip), %rax      # 0x10ad9
jmp 0xbddb
cmpq %rcx, %rax
je 0xc4b9
movzbl (%r14,%rcx), %edx
movl 0xa0(%rsp,%rdx,4), %edx
movl %edx, (%r12,%rcx,4)
incq %rcx
jmp 0xc49f
movq %r14, %rdi
callq 0x21c0
movq 0x38(%rsp), %rax
movq %r12, 0x18(%rax)
movq %rax, %r12
jmp 0xc4da
cmpb $0x0, 0x50(%rsp)
je 0xc4da
incl 0x8(%r14)
movq 0x10(%r12), %rdi
callq 0x21c0
andq $0x0, 0x10(%r12)
jmp 0xb930
leaq 0x495f(%rip), %rdi      # 0x10e55
leaq 0x4469(%rip), %rsi      # 0x10966
leaq 0x496a(%rip), %rcx      # 0x10e6e
movl $0x124d, %edx           # imm = 0x124D
callq 0x20f0
leaq 0x4940(%rip), %rdi      # 0x10e55
leaq 0x444a(%rip), %rsi      # 0x10966
leaq 0x498e(%rip), %rcx      # 0x10eb1
movl $0x1234, %edx           # imm = 0x1234
callq 0x20f0
leaq 0x49b9(%rip), %rdi      # 0x10eed
leaq 0x442b(%rip), %rsi      # 0x10966
leaq 0x49bd(%rip), %rcx      # 0x10eff
movl $0x129e, %edx           # imm = 0x129E
callq 0x20f0