// File: /workspace/github_c_makefile_star2_O1/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 $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 0x1030f
testl %eax, %eax
je 0x115c9
movl %r14d, 0x40(%rsp)
movl $0x1, 0x4(%rsp)
movl %ebx, 0x34(%rsp)
cmpl $0x1, %ebx
je 0x115d1
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 0xf497
movl %eax, %r13d
shll $0x10, %r13d
movq %rbp, %rdi
callq 0xf497
movl %eax, %r12d
leal (%r12,%r13), %r15d
movq %rbp, %rdi
callq 0xf497
movl %eax, %r14d
movl %eax, %ebx
shll $0x10, %ebx
movq %rbp, %rdi
callq 0xf497
orl %eax, %ebx
cmpl $0x49484451, %ebx       # imm = 0x49484451
jg 0x10539
cmpl $0x43674249, %ebx       # imm = 0x43674249
je 0x105d6
cmpl $0x49444154, %ebx       # imm = 0x49444154
movq 0x10(%rsp), %rbp
movq 0x20(%rsp), %r13
je 0x10668
cmpl $0x49454e44, %ebx       # imm = 0x49454E44
jne 0x10620
cmpl $0x0, 0x8(%rsp)
je 0x10722
leaq 0x77f1(%rip), %rax      # 0x17d16
movq %rax, 0xbcfc(%rip)      # 0x1c228
movl $0x0, 0x4(%rsp)
jmp 0x11449
cmpl $0x74524e53, %ebx       # imm = 0x74524E53
je 0x105f8
cmpl $0x504c5445, %ebx       # imm = 0x504C5445
je 0x106aa
cmpl $0x49484452, %ebx       # imm = 0x49484452
movq 0x10(%rsp), %rbp
movq 0x20(%rsp), %r13
jne 0x10620
cmpl $0x0, 0x8(%rsp)
je 0x1073a
cmpl $0xd, %r15d
jne 0x10918
movq %rbp, %rdi
callq 0xf497
movl %eax, %ebx
shll $0x10, %ebx
movq %rbp, %rdi
callq 0xf497
orl %ebx, %eax
movl %eax, (%rbp)
cmpl $0x1000001, %eax        # imm = 0x1000001
movq 0x90(%rsp), %r15
jae 0x105ca
movq %rbp, %rdi
callq 0xf497
movl %eax, %ebx
shll $0x10, %ebx
movq %rbp, %rdi
callq 0xf497
orl %ebx, %eax
movl %eax, 0x4(%rbp)
cmpl $0x1000001, %eax        # imm = 0x1000001
jb 0x10b00
leaq 0x751e(%rip), %rax      # 0x17aef
jmp 0x1091f
movl $0x1, 0x44(%rsp)
movq 0x10(%rsp), %rbp
movq 0x20(%rsp), %r13
movq %rbp, %rdi
movl %r15d, %esi
callq 0xf6d7
jmp 0x10945
cmpl $0x0, 0x8(%rsp)
je 0x106e4
leaq 0x770c(%rip), %rax      # 0x17d16
movq %rax, 0xbc17(%rip)      # 0x1c228
xorl %eax, %eax
movl $0x1, 0x8(%rsp)
jmp 0x1070b
cmpl $0x0, 0x8(%rsp)
jne 0x106bf
movl $0x0, 0x8(%rsp)
btl $0xd, %r14d
jb 0x105e8
movl %ebx, %ecx
shrl $0x18, %ecx
movb %cl, 0xbb9b(%rip)       # 0x1c1e0
movl %ebx, %ecx
shrl $0x10, %ecx
movb %cl, 0xbb91(%rip)       # 0x1c1e1
movb %bh, 0xbb8c(%rip)       # 0x1c1e2
movb %al, 0xbb87(%rip)       # 0x1c1e3
leaq 0xbb7d(%rip), %rax      # 0x1c1e0
jmp 0x10963
cmpl $0x0, 0x8(%rsp)
jne 0x106bf
cmpb $0x0, 0xc(%rsp)
movq 0x58(%rsp), %rax
je 0x10979
testl %eax, %eax
jne 0x10979
leaq 0x76e2(%rip), %rax      # 0x17d70
movq %rax, 0xbb93(%rip)      # 0x1c228
movl $0x0, 0x8(%rsp)
xorl %eax, %eax
movq $0x0, 0x58(%rsp)
jmp 0x106d7
cmpl $0x0, 0x8(%rsp)
movq 0x10(%rsp), %rbp
movq 0x20(%rsp), %r13
je 0x10746
leaq 0x7650(%rip), %rax      # 0x17d16
movq %rax, 0xbb5b(%rip)      # 0x1c228
xorl %eax, %eax
movl $0x1, 0x8(%rsp)
movl $0x0, 0x4(%rsp)
jmp 0x1144b
movq 0x50(%rsp), %rax
cmpq $0x0, (%rax)
je 0x109a1
leaq 0x7638(%rip), %rax      # 0x17d32
movq %rax, 0xbb27(%rip)      # 0x1c228
movl $0x0, 0x8(%rsp)
xorl %eax, %eax
movl $0x0, 0x4(%rsp)
movq 0x10(%rsp), %rbp
movq 0x20(%rsp), %r13
jmp 0x1144b
cmpl $0x0, 0x34(%rsp)
je 0x109da
movl $0x1, 0x4(%rsp)
jmp 0x11449
leaq 0x7557(%rip), %rax      # 0x17c98
jmp 0x1091f
cmpl $0x301, %r15d           # imm = 0x301
jae 0x1095c
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 0x1095c
movl $0x0, 0x8(%rsp)
cmpl $0x3, %r12d
movq 0x90(%rsp), %r15
jb 0x10945
movl 0x58(%rsp), %ebx
xorl %r14d, %r14d
movq 0xb8(%rbp), %rax
cmpq 0xc0(%rbp), %rax
jb 0x107f8
cmpl $0x0, 0x30(%rbp)
je 0x107cf
movq 0x28(%rbp), %rdi
movl 0x34(%rbp), %edx
movq %r15, %rsi
callq *0x10(%rbp)
testl %eax, %eax
je 0x107d3
movq %r15, 0xb8(%rbp)
cltq
addq %r15, %rax
movq %rax, 0xc0(%rbp)
jmp 0x107f1
xorl %eax, %eax
jmp 0x10805
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 0x10872
cmpl $0x0, 0x30(%rbp)
je 0x10849
movq 0x28(%rbp), %rdi
movl 0x34(%rbp), %edx
movq %r15, %rsi
callq *0x10(%rbp)
testl %eax, %eax
je 0x1084d
movq %r15, 0xb8(%rbp)
cltq
addq %r15, %rax
movq %rax, 0xc0(%rbp)
jmp 0x1086b
xorl %eax, %eax
jmp 0x1087f
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 0x108ec
cmpl $0x0, 0x30(%rbp)
je 0x108c3
movq 0x28(%rbp), %rdi
movl 0x34(%rbp), %edx
movq %r15, %rsi
callq *0x10(%rbp)
testl %eax, %eax
je 0x108c7
movq %r15, 0xb8(%rbp)
cltq
addq %r15, %rax
movq %rax, 0xc0(%rbp)
jmp 0x108e5
xorl %eax, %eax
jmp 0x108f9
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 0x10793
jmp 0x10945
leaq 0x7387(%rip), %rax      # 0x17ca6
movq %rax, 0xb902(%rip)      # 0x1c228
xorl %ecx, %ecx
movl $0x0, 0x4(%rsp)
movl $0x0, 0x8(%rsp)
movl $0x0, %eax
testb %cl, %cl
je 0x1144b
movq %rbp, %rdi
callq 0xf497
movq %rbp, %rdi
callq 0xf497
movb $0x1, %al
jmp 0x1144b
leaq 0x73c2(%rip), %rax      # 0x17d25
movq %rax, 0xb8be(%rip)      # 0x1c228
movl $0x0, 0x8(%rsp)
xorl %eax, %eax
jmp 0x106d7
cmpl $0x2, 0x34(%rsp)
jne 0x10a96
movzbl 0xc(%rsp), %eax
movl %eax, 0x8(%rbp)
movl $0x1, 0x4(%rsp)
movl $0x0, 0x8(%rsp)
jmp 0x11449
cmpb $0x0, 0xc(%rsp)
je 0x10b4b
cmpl $0x2, 0x34(%rsp)
jne 0x10b7f
movq 0x10(%rsp), %rbp
movl $0x4, 0x8(%rbp)
movl $0x1, 0x4(%rsp)
movl $0x0, 0x8(%rsp)
xorl %eax, %eax
jmp 0x10718
movq 0x50(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x10b73
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 0x3c8a
movq %rax, 0x10(%rbx)
movl $0x0, 0x4(%rsp)
testq %rax, %rax
je 0x11449
movl 0x40(%rsp), %r12d
cmpl $0x3, %r12d
setne %bl
movq 0x50(%rsp), %r14
movq (%r14), %rdi
callq 0x21e0
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 0x10ba1
movl %ecx, 0xc(%rbp)
jmp 0x10ba4
movq 0x78(%rsp), %rax
leal (%r15,%rax), %ebp
movl $0x0, 0x8(%rsp)
cmpl %eax, %ebp
jl 0x11262
cmpl %r13d, %ebp
jbe 0x11216
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 0x10acf
movq 0x50(%rsp), %rbx
movq (%rbx), %rdi
movl %r13d, %esi
callq 0x22e0
testq %rax, %rax
je 0x111fb
movq %rax, (%rbx)
jmp 0x11211
movq 0xb8(%rbp), %rax
cmpq 0xc0(%rbp), %rax
jb 0x1117b
cmpl $0x0, 0x30(%rbp)
je 0x10f9b
movq 0x28(%rbp), %rdi
movl 0x34(%rbp), %edx
movq %r15, %rsi
callq *0x10(%rbp)
testl %eax, %eax
je 0x11156
movq %r15, 0xb8(%rbp)
cltq
addq %r15, %rax
movq %rax, 0xc0(%rbp)
jmp 0x11174
movq 0x10(%rsp), %rbp
movl 0x8(%rbp), %eax
testb $0x1, %al
leaq 0x6964(%rip), %r12      # 0x174c0
movq 0x20(%rsp), %r13
jne 0x10ed3
leaq 0x71f2(%rip), %rax      # 0x17d60
jmp 0x11061
leaq 0x7208(%rip), %rax      # 0x17d82
jmp 0x10525
movq 0x58(%rsp), %rax
testl %eax, %eax
je 0x10f75
cmpl %r15d, %eax
jae 0x10fa2
leaq 0x71b7(%rip), %rax      # 0x17d53
jmp 0x106fa
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 0x10f22
movl %r8d, %edi
movl %r9d, %esi
movl %ebx, %edx
xorl %ecx, %ecx
movq %r10, 0x80(%rsp)
movl %r11d, 0x30(%rsp)
callq 0xf848
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 0x688e(%rip), %rax      # 0x174d0
movslq (%rax,%r10,4), %rcx
leaq 0x68c3(%rip), %rax      # 0x17510
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 0x6878(%rip), %rax      # 0x174f0
movl (%rax,%r10,4), %ecx
leaq 0x68ad(%rip), %rax      # 0x17530
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 0x10ea4
cmpl %ecx, %r12d
ja 0x10ea4
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 0x121ec
addq $0x10, %rsp
testl %eax, %eax
je 0x10e80
movl %r12d, 0x70(%rsp)
testl %r12d, %r12d
movq 0xb8(%rsp), %rcx
movq 0xa8(%rsp), %r15
movl 0xb0(%rsp), %r14d
jle 0x10e23
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 0x10dfd
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 0x2150
movq 0xb8(%rsp), %rcx
incq %r13
addq %r15, %r12
cmpq %rbp, %r13
jl 0x10dbc
movq 0xa0(%rsp), %rdi
incq %rdi
addl 0x48(%rsp), %r14d
movq %rdi, 0xa0(%rsp)
cmpq 0xe8(%rsp), %rdi
jb 0x10d82
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 0x21e0
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 0x10ea7
movq 0x88(%rsp), %rdi
callq 0x21e0
xorl %edx, %edx
movq 0x80(%rsp), %rsi
movl 0x30(%rsp), %r9d
movq 0xd0(%rsp), %r10
movl %r14d, %r12d
testb %dl, %dl
je 0x11449
incq %r10
cmpq $0x7, %r10
jne 0x10c30
movq 0x18(%rsp), %rax
movq 0x88(%rsp), %rcx
movq %rcx, 0x18(%rax)
movl 0x40(%rsp), %ebx
jmp 0x10f46
addl %eax, %eax
cmpl %r15d, %eax
jne 0x1105a
movq 0x18(%rsp), %rax
cmpl $0x10, 0x20(%rax)
movl 0x8(%rbp), %eax
movb $0x1, %cl
jne 0x11384
movq %rcx, 0x60(%rsp)
testl %eax, %eax
jle 0x113b8
xorl %ebx, %ebx
movq %rbp, %rdi
callq 0xf497
movw %ax, 0xda(%rsp,%rbx,2)
incq %rbx
movslq 0x8(%rbp), %rax
cmpq %rax, %rbx
jl 0x10f01
jmp 0x113b8
movq %r10, %rsi
movl %r11d, %edx
movl %r12d, %ecx
pushq 0x68(%rsp)
pushq %r14
callq 0x121ec
addq $0x10, %rsp
testl %eax, %eax
movl 0x40(%rsp), %ebx
je 0x11449
cmpb $0x0, 0x60(%rsp)
je 0x11089
movq 0x18(%rsp), %rdi
cmpl $0x10, 0x20(%rdi)
movl 0xc(%rbp), %edx
jne 0x1107f
leaq 0xda(%rsp), %rsi
callq 0x11faf
jmp 0x11089
leaq 0x6dc6(%rip), %rax      # 0x17d42
movq %rax, 0xb2a5(%rip)      # 0x1c228
movl $0x0, 0x8(%rsp)
xorl %eax, %eax
movq $0x0, 0x58(%rsp)
jmp 0x1070b
xorl %eax, %eax
jmp 0x11188
movb $0x4, %al
movl %eax, 0xc(%rsp)
movl $0x0, 0x8(%rsp)
testl %r15d, %r15d
je 0x11458
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 0x11035
cmpl $0x0, 0x30(%rbp)
je 0x1100c
movq 0x28(%rbp), %rdi
movl 0x34(%rbp), %edx
movq %r15, %rsi
callq *0x10(%rbp)
testl %eax, %eax
je 0x11010
movq %r15, 0xb8(%rbp)
cltq
addq %r15, %rax
movq %rax, 0xc0(%rbp)
jmp 0x1102e
xorl %eax, %eax
jmp 0x11042
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 0x10fd0
jmp 0x10945
leaq 0x6cf2(%rip), %rax      # 0x17d53
movq %rax, 0xb1c0(%rip)      # 0x1c228
movl $0x0, 0x8(%rsp)
xorl %eax, %eax
movl $0x0, 0xc(%rsp)
jmp 0x106d7
leaq 0x2c(%rsp), %rsi
callq 0x12047
cmpl $0x0, 0x44(%rsp)
movq 0x18(%rsp), %rdi
je 0x110ae
cmpl $0x0, 0xb19c(%rip)      # 0x1c238
je 0x110ae
cmpl $0x3, 0xc(%rbp)
jl 0x110ae
callq 0x120d9
movq 0x18(%rsp), %rdi
movl 0xc(%rsp), %eax
testb %al, %al
je 0x11143
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 0xf782
movq %rax, %r12
testq %rax, %rax
je 0x11371
cmpl $0x3, %r14d
jne 0x113cd
testl %ebp, %ebp
je 0x11413
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 0x1110b
jmp 0x11413
cmpb $0x0, 0x60(%rsp)
je 0x1142e
incl 0x8(%rbp)
jmp 0x1142e
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 0x111e8
movl $0x10116, %ecx          # imm = 0x10116
btl %eax, %ecx
jae 0x111e8
movq 0xb8(%rbp), %rax
cmpq 0xc0(%rbp), %rax
jb 0x112a7
cmpl $0x0, 0x30(%rbp)
je 0x111f4
movq 0x28(%rbp), %rdi
movl 0x34(%rbp), %edx
movq %r15, %rsi
callq *0x10(%rbp)
testl %eax, %eax
je 0x11282
movq %r15, 0xb8(%rbp)
cltq
addq %r15, %rax
movq %rax, 0xc0(%rbp)
jmp 0x112a0
leaq 0x6ac4(%rip), %rax      # 0x17cb3
jmp 0x1091f
xorl %ebp, %ebp
jmp 0x112b5
leaq 0x68f7(%rip), %rcx      # 0x17af9
movq %rcx, 0xb01f(%rip)      # 0x1c228
movl $0x0, 0x4(%rsp)
testq %rax, %rax
je 0x11276
movq 0x50(%rsp), %rax
movl 0x78(%rsp), %esi
addq (%rax), %rsi
movq 0x10(%rsp), %rdi
movl %r15d, %edx
callq 0x11f02
testl %eax, %eax
je 0x1124c
movl $0x0, 0x8(%rsp)
movl %ebp, %eax
movq %rax, 0x78(%rsp)
movq 0x10(%rsp), %rbp
jmp 0x10945
leaq 0x6b25(%rip), %rax      # 0x17d78
movq %rax, 0xafce(%rip)      # 0x1c228
movl $0x0, 0x8(%rsp)
xorl %eax, %eax
movl $0x0, 0x4(%rsp)
movq 0x10(%rsp), %rbp
jmp 0x1144b
movl $0x0, 0x8(%rsp)
xorl %eax, %eax
jmp 0x1126c
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 0x112e4
leaq 0x69fe(%rip), %rax      # 0x17cc7
movq %rax, 0xaf58(%rip)      # 0x1c228
xorl %ecx, %ecx
movl $0x0, 0x4(%rsp)
movq 0x10(%rsp), %rbp
jmp 0x10930
cmpl $0x3, %eax
movq 0x18(%rsp), %rax
jne 0x11312
movb $0x3, %bl
cmpl $0x10, 0x20(%rax)
jne 0x1131e
leaq 0x69ca(%rip), %rax      # 0x17cc7
movq %rax, 0xaf24(%rip)      # 0x1c228
xorl %ecx, %ecx
movl $0x3, %eax
movq %rax, 0x68(%rsp)
jmp 0x112d2
testb $0x1, %bpl
jne 0x112c2
movl 0xc(%rsp), %eax
movl %eax, %ebx
movq 0x10(%rsp), %r14
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0x1148e
cmpl $0x0, 0x30(%r14)
je 0x114aa
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x11467
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x11487
leaq 0x6781(%rip), %rax      # 0x17af9
movq %rax, 0xaea9(%rip)      # 0x1c228
jmp 0x11424
movq %rcx, 0x60(%rsp)
testl %eax, %eax
jle 0x113b8
xorl %ebx, %ebx
movq 0x18(%rsp), %r14
movq %rbp, %rdi
callq 0xf497
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 0x11394
movl $0x0, 0x8(%rsp)
movl $0x0, 0xc(%rsp)
jmp 0x10945
testl %ebp, %ebp
je 0x11413
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 0x113d5
movq %rbx, %rdi
callq 0x21e0
movq 0x18(%rsp), %rax
movq %r12, 0x18(%rax)
testq %r12, %r12
movq 0x10(%rsp), %rbp
je 0x11449
movq 0x18(%rsp), %rbx
movq 0x10(%rbx), %rdi
callq 0x21e0
movq $0x0, 0x10(%rbx)
jmp 0x1072d
xorl %eax, %eax
testb %al, %al
jne 0x104a0
jmp 0x115d1
movq 0x10(%rsp), %rbp
movq 0x20(%rsp), %r13
jmp 0x10945
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 0x114aa
leaq 0x682c(%rip), %rax      # 0x17cd1
jmp 0x11534
movq %r14, %rdi
callq 0xf413
testb %al, %al
je 0x114bf
leaq 0x6824(%rip), %rax      # 0x17ce1
jmp 0x11534
movq %r14, %rdi
callq 0xf413
movzbl %al, %eax
movq %rax, 0xc8(%rsp)
cmpb $0x2, %al
jb 0x114df
leaq 0x6816(%rip), %rax      # 0x17cf3
jmp 0x11534
movl (%r14), %esi
testl %esi, %esi
je 0x1152d
movl 0x4(%r14), %ecx
testl %ecx, %ecx
je 0x1152d
testb %bl, %bl
je 0x11553
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 0x115bc
leaq 0x65d6(%rip), %rax      # 0x17aef
movq %rax, 0xad08(%rip)      # 0x1c228
xorl %ecx, %ecx
movl %ebx, %eax
movl %eax, 0xc(%rsp)
jmp 0x10928
leaq 0x67d4(%rip), %rax      # 0x17d08
movq %rax, 0xaced(%rip)      # 0x1c228
xorl %ecx, %ecx
movl %ebx, %eax
movl %eax, 0xc(%rsp)
movl $0x0, 0x4(%rsp)
movq %r14, %rbp
jmp 0x10930
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 0x1159e
leaq 0x6567(%rip), %rax      # 0x17aef
movq %rax, 0xac99(%rip)      # 0x1c228
xorl %ecx, %ecx
movl $0x0, 0xc(%rsp)
jmp 0x10928
cmpl $0x2, 0x34(%rsp)
jne 0x115bc
movl $0x1, 0x4(%rsp)
xorl %ecx, %ecx
movl $0x0, 0xc(%rsp)
jmp 0x10930
movb $0x1, %cl
movl %ebx, %eax
movl %eax, 0xc(%rsp)
jmp 0x10930
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