// File: /workspace/github_c_makefile_star2_O3/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 $0x4c8, %rsp            # imm = 0x4C8
movl %edx, %r15d
movl %esi, %r12d
movq %rdi, %rbx
movb $0x0, 0x36(%rsp)
movw $0x0, 0x34(%rsp)
movq (%rdi), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movq $0x0, 0x18(%rdi)
movq %r14, %rdi
callq 0x10ed3
testl %eax, %eax
je 0x11872
movl $0x1, %ebp
cmpl $0x1, %r12d
je 0x11874
movl %r12d, 0x24(%rsp)
movl %r15d, 0x74(%rsp)
movq %rbx, 0x48(%rsp)
leaq 0x8(%rbx), %rax
movq %rax, 0x50(%rsp)
leaq 0x38(%r14), %rax
movq %rax, 0x40(%rsp)
leaq 0x39(%r14), %rax
movq %rax, 0x28(%rsp)
movl $0x1, 0x18(%rsp)
movq $0x0, 0x60(%rsp)
movq $0x0, 0x90(%rsp)
movl $0x0, 0x5c(%rsp)
movq $0x0, 0x38(%rsp)
movq $0x0, 0x78(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x68(%rsp)
movl $0x0, 0xc(%rsp)
movq %r14, %rdi
callq 0xfc21
movl %eax, %ebx
shll $0x10, %ebx
movq %r14, %rdi
callq 0xfc21
movl %eax, %ebp
leal (%rbx,%rbp), %r15d
movq %r14, %rdi
callq 0xfc21
movl %eax, %r13d
movl %eax, %r12d
shll $0x10, %r13d
movq %r14, %rdi
callq 0xfc21
orl %eax, %r13d
cmpl $0x49484451, %r13d      # imm = 0x49484451
jle 0x11163
cmpl $0x74524e53, %r13d      # imm = 0x74524E53
je 0x1120c
cmpl $0x504c5445, %r13d      # imm = 0x504C5445
movl 0x18(%rsp), %ecx
je 0x112fe
cmpl $0x49484452, %r13d      # imm = 0x49484452
movq 0x28(%rsp), %rbp
jne 0x114d0
testl %ecx, %ecx
je 0x11888
cmpl $0xd, %r15d
jne 0x11891
movq %r14, %rdi
callq 0xfc21
movl %eax, %ebx
shll $0x10, %ebx
movq %r14, %rdi
callq 0xfc21
orl %ebx, %eax
movl %eax, (%r14)
cmpl $0x1000001, %eax        # imm = 0x1000001
jae 0x11838
movq %r14, %rdi
callq 0xfc21
movl %eax, %ebx
shll $0x10, %ebx
movq %r14, %rdi
callq 0xfc21
orl %ebx, %eax
movl %eax, 0x4(%r14)
cmpl $0x1000001, %eax        # imm = 0x1000001
jae 0x11838
movq 0xb8(%r14), %rdx
movq 0xc0(%r14), %rax
cmpq %rax, %rdx
jae 0x11519
leaq 0x1(%rdx), %rcx
movq %rcx, 0xb8(%r14)
movb (%rdx), %dl
movq 0x48(%rsp), %r15
movq 0x40(%rsp), %r13
jmp 0x11644
cmpl $0x43674249, %r13d      # imm = 0x43674249
je 0x114b5
cmpl $0x49444154, %r13d      # imm = 0x49444154
jne 0x114bf
cmpl $0x0, 0x18(%rsp)
movq 0x78(%rsp), %rcx
jne 0x11864
cmpb $0x0, 0xc(%rsp)
movq 0x38(%rsp), %rax
je 0x111a1
testl %eax, %eax
je 0x118a3
cmpl $0x2, 0x24(%rsp)
je 0x118d7
movq 0x10(%rsp), %rax
leal (%r15,%rax), %ebx
xorl %ebp, %ebp
cmpl %eax, %ebx
jl 0x11874
cmpl %ecx, %ebx
jbe 0x11553
cmpl $0x1001, %r15d          # imm = 0x1001
movl $0x1000, %eax           # imm = 0x1000
cmovael %r15d, %eax
testl %ecx, %ecx
cmovnel %ecx, %eax
movl %eax, %ecx
leal (%rcx,%rcx), %eax
cmpl %ecx, %ebx
ja 0x111dc
movq 0x50(%rsp), %r13
movq (%r13), %rdi
movq %rcx, 0x78(%rsp)
movl %ecx, %esi
callq 0x22d0
testq %rax, %rax
je 0x11de3
movq %rax, (%r13)
jmp 0x1155b
cmpl $0x0, 0x18(%rsp)
jne 0x11864
movq 0x50(%rsp), %rax
cmpq $0x0, (%rax)
jne 0x1189a
cmpb $0x0, 0xc(%rsp)
je 0x1157e
cmpl $0x2, 0x24(%rsp)
movq 0x40(%rsp), %r13
je 0x1191b
movq 0x38(%rsp), %rax
testl %eax, %eax
je 0x1192d
cmpl %r15d, %eax
jb 0x118e2
movb $0x4, %al
movl %eax, 0xc(%rsp)
movl $0x0, 0x18(%rsp)
testl %r15d, %r15d
je 0x114f6
movq 0xb8(%r14), %rcx
movq 0xc0(%r14), %rax
addl %ebx, %ebp
xorl %ebx, %ebx
cmpq %rax, %rcx
jae 0x11297
leaq 0x1(%rcx), %rsi
movq %rsi, 0xb8(%r14)
movb (%rcx), %dl
movq %rsi, %rcx
jmp 0x112ea
cmpl $0x0, 0x30(%r14)
je 0x112c1
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r13, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x112c5
cltq
addq %r13, %rax
movb (%r13), %dl
movq 0x28(%rsp), %rcx
jmp 0x112dc
xorl %edx, %edx
jmp 0x112ea
movl $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
xorl %edx, %edx
movq 0x28(%rsp), %rcx
movq %rcx, %rax
movq %rax, 0xc0(%r14)
movq %rcx, 0xb8(%r14)
movb %dl, 0xc3(%rsp,%rbx,4)
incq %rbx
cmpq %rbx, %rbp
jne 0x11280
jmp 0x114f6
testl %ecx, %ecx
jne 0x11864
cmpl $0x301, %r15d           # imm = 0x301
jae 0x11841
imull $0xaaab, %ebp, %eax     # imm = 0xAAAB
shrl $0x11, %eax
movq %rax, 0x38(%rsp)
leal (%rax,%rax,2), %eax
cmpl %r15d, %eax
jne 0x11841
movl $0x0, 0x18(%rsp)
cmpl $0x3, %ebp
jb 0x114f6
movl 0x38(%rsp), %ebx
movq 0xb8(%r14), %rcx
movq 0xc0(%r14), %rax
xorl %r15d, %r15d
movq 0x40(%rsp), %r13
movq 0x28(%rsp), %rbp
cmpq %rax, %rcx
jae 0x11374
leaq 0x1(%rcx), %rsi
movq %rsi, 0xb8(%r14)
movb (%rcx), %dl
movq %rsi, %rcx
jmp 0x113c0
cmpl $0x0, 0x30(%r14)
je 0x11399
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r13, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x1139d
cltq
addq %r13, %rax
movb (%r13), %dl
jmp 0x113af
xorl %edx, %edx
jmp 0x113c0
movl $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
xorl %edx, %edx
movq %rbp, %rax
movq %rax, 0xc0(%r14)
movq %rbp, 0xb8(%r14)
movq %rbp, %rcx
movb %dl, 0xc0(%rsp,%r15,4)
cmpq %rax, %rcx
jae 0x113df
leaq 0x1(%rcx), %rsi
movq %rsi, 0xb8(%r14)
movb (%rcx), %dl
movq %rsi, %rcx
jmp 0x1142b
cmpl $0x0, 0x30(%r14)
je 0x11404
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r13, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x11408
cltq
addq %r13, %rax
movb (%r13), %dl
jmp 0x1141a
xorl %edx, %edx
jmp 0x1142b
movl $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
xorl %edx, %edx
movq %rbp, %rax
movq %rax, 0xc0(%r14)
movq %rbp, 0xb8(%r14)
movq %rbp, %rcx
movb %dl, 0xc1(%rsp,%r15,4)
cmpq %rax, %rcx
jae 0x1144a
leaq 0x1(%rcx), %rsi
movq %rsi, 0xb8(%r14)
movb (%rcx), %dl
movq %rsi, %rcx
jmp 0x11496
cmpl $0x0, 0x30(%r14)
je 0x1146f
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r13, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x11473
cltq
addq %r13, %rax
movb (%r13), %dl
jmp 0x11485
xorl %edx, %edx
jmp 0x11496
movl $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
xorl %edx, %edx
movq %rbp, %rax
movq %rax, 0xc0(%r14)
movq %rbp, 0xb8(%r14)
movq %rbp, %rcx
movb %dl, 0xc2(%rsp,%r15,4)
movb $-0x1, 0xc3(%rsp,%r15,4)
incq %r15
cmpq %r15, %rbx
jne 0x1135d
jmp 0x114f6
movl $0x1, 0x5c(%rsp)
jmp 0x114eb
cmpl $0x49454e44, %r13d      # imm = 0x49454E44
movl 0x18(%rsp), %ecx
je 0x1185c
testl %ecx, %ecx
jne 0x11864
movl $0x0, 0x18(%rsp)
btl $0xd, %r12d
jae 0x118ac
movq %r14, %rdi
movl %r15d, %esi
callq 0xfe58
movq 0x10(%rsp), %rax
movl %eax, %ebx
movq %r14, %rdi
callq 0xfc21
movq %r14, %rdi
callq 0xfc21
movl %ebx, %eax
movq %rax, 0x10(%rsp)
jmp 0x1105e
cmpl $0x0, 0x30(%r14)
movq 0x48(%rsp), %r15
movq 0x40(%rsp), %r13
je 0x11939
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r13, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x11621
cltq
addq %r13, %rax
movb (%r13), %dl
jmp 0x11633
movq 0x50(%rsp), %rax
movq (%rax), %rax
movl 0x10(%rsp), %esi
addq %rax, %rsi
movq %r14, %rdi
movl %r15d, %edx
callq 0x126e2
movl $0x0, 0x18(%rsp)
testl %eax, %eax
jne 0x114fd
jmp 0x118eb
movl 0x8(%r14), %eax
testb $0x1, %al
je 0x11ca1
leal (%rax,%rax), %ecx
cmpl %r15d, %ecx
jne 0x118e2
movq 0x48(%rsp), %r15
cmpl $0x10, 0x20(%r15)
jne 0x115cd
movb $0x1, %cl
movq %rcx, 0x68(%rsp)
testl %eax, %eax
jle 0x11605
xorl %ebx, %ebx
movq %r14, %rdi
callq 0xfc21
movw %ax, 0xb2(%rsp,%rbx,2)
incq %rbx
movslq 0x8(%r14), %rax
cmpq %rax, %rbx
jl 0x115af
jmp 0x11605
movb $0x1, %cl
movq %rcx, 0x68(%rsp)
testl %eax, %eax
jle 0x11605
xorl %ebx, %ebx
leaq 0x6f8f(%rip), %r13      # 0x18570
movq %r14, %rdi
callq 0xfc21
movl %eax, %ecx
movslq 0x20(%r15), %rax
movb (%rax,%r13), %al
mulb %cl
movb %al, 0x34(%rsp,%rbx)
incq %rbx
movslq 0x8(%r14), %rax
cmpq %rax, %rbx
jl 0x115e1
movl $0x0, 0x18(%rsp)
movq 0x10(%rsp), %rax
movl %eax, %ebx
movl $0x0, 0xc(%rsp)
jmp 0x114fd
movl $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
xorl %edx, %edx
movq %rbp, %rax
movq %rax, 0xc0(%r14)
movq %rbp, 0xb8(%r14)
movq %rbp, %rcx
movzbl %dl, %edx
movl %edx, 0x20(%r15)
cmpb $0x10, %dl
ja 0x11941
movl $0x10116, %esi          # imm = 0x10116
btl %edx, %esi
jae 0x11941
cmpq %rax, %rcx
jae 0x11679
leaq 0x1(%rcx), %rdx
movq %rdx, 0xb8(%r14)
movb (%rcx), %bl
movq %rdx, %rcx
jmp 0x116c8
cmpl $0x0, 0x30(%r14)
je 0x1169e
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r13, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x116a5
cltq
addq %r13, %rax
movb (%r13), %bl
jmp 0x116b7
xorl %ebx, %ebx
xorl %r15d, %r15d
jmp 0x116fb
movl $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
xorl %ebx, %ebx
movq %rbp, %rax
movq %rax, 0xc0(%r14)
movq %rbp, 0xb8(%r14)
movq %rbp, %rcx
cmpb $0x7, %bl
jae 0x11853
cmpb $0x3, %bl
jne 0x116ee
cmpl $0x10, 0x20(%r15)
je 0x11853
movl $0x3, %r15d
movb $0x3, %bl
movb $0x3, %bpl
jmp 0x116ff
testb $0x1, %bl
jne 0x11853
movzbl %bl, %r15d
movl 0xc(%rsp), %ebp
cmpq %rax, %rcx
jae 0x11713
leaq 0x1(%rcx), %rax
movq %rax, 0xb8(%r14)
movb (%rcx), %al
jmp 0x11763
cmpl $0x0, 0x30(%r14)
je 0x1176b
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r13, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x1173e
movslq %eax, %rcx
addq %r13, %rcx
movb (%r13), %al
movq 0x28(%rsp), %rdx
jmp 0x11755
movl $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
xorl %eax, %eax
movq 0x28(%rsp), %rdx
movq %rdx, %rcx
movq %rcx, 0xc0(%r14)
movq %rdx, 0xb8(%r14)
testb %al, %al
jne 0x1190f
movq %r14, %rdi
callq 0xfba6
testb %al, %al
jne 0x118f7
movq %r14, %rdi
callq 0xfba6
cmpb $0x2, %al
jae 0x11903
movl (%r14), %esi
testl %esi, %esi
je 0x1184a
movl 0x4(%r14), %ecx
testl %ecx, %ecx
je 0x1184a
movzbl %al, %r8d
testb %bpl, %bpl
movq %r15, 0x90(%rsp)
movq %r8, 0x60(%rsp)
je 0x117e9
movl %ebp, 0xc(%rsp)
movl $0x1, 0x8(%r14)
movl $0x0, 0x18(%rsp)
movl $0x40000000, %eax       # imm = 0x40000000
xorl %edx, %edx
divl %esi
shrl $0x2, %eax
movq 0x10(%rsp), %rdx
movl %edx, %ebx
cmpl %ecx, %eax
jae 0x114fd
jmp 0x11838
movl %r15d, %eax
andl $0x2, %eax
xorl %edx, %edx
cmpb $0x4, %bl
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 0x11838
movl $0x0, 0x18(%rsp)
movq 0x10(%rsp), %rax
movl %eax, %ebx
movl $0x0, 0xc(%rsp)
cmpl $0x2, 0x24(%rsp)
jne 0x114fd
jmp 0x11923
leaq 0x7360(%rip), %rax      # 0x18b9f
jmp 0x1186b
leaq 0x758d(%rip), %rax      # 0x18dd5
jmp 0x1186b
leaq 0x7567(%rip), %rax      # 0x18db8
jmp 0x1186b
leaq 0x751d(%rip), %rax      # 0x18d77
jmp 0x1186b
testl %ecx, %ecx
je 0x1194d
leaq 0x755b(%rip), %rax      # 0x18dc6
movq %rax, 0xb986(%rip)      # 0x1d1f8
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x4c8, %rsp            # imm = 0x4C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x74b9(%rip), %rax      # 0x18d48
jmp 0x1186b
leaq 0x74be(%rip), %rax      # 0x18d56
jmp 0x1186b
leaq 0x7541(%rip), %rax      # 0x18de2
jmp 0x1186b
leaq 0x7576(%rip), %rax      # 0x18e20
jmp 0x1186b
movl %r12d, %edx
movb %dh, 0xb8fb(%rip)       # 0x1d1b0
leaq 0xb8f4(%rip), %rcx      # 0x1d1b0
movb %dl, 0xb8ef(%rip)       # 0x1d1b1
movb %ah, 0xb8ea(%rip)       # 0x1d1b2
movb %al, 0xb8e5(%rip)       # 0x1d1b3
movq %rcx, 0xb923(%rip)      # 0x1d1f8
jmp 0x11872
movzbl 0xc(%rsp), %eax
movl %eax, 0x8(%r14)
jmp 0x11923
leaq 0x751a(%rip), %rax      # 0x18e03
jmp 0x1186b
leaq 0x7536(%rip), %rax      # 0x18e28
jmp 0x1186b
leaq 0x7493(%rip), %rax      # 0x18d91
jmp 0x1186b
leaq 0x7499(%rip), %rax      # 0x18da3
jmp 0x1186b
leaq 0x746b(%rip), %rax      # 0x18d81
jmp 0x1186b
movl $0x4, 0x8(%r14)
movl $0x1, %ebp
jmp 0x11874
leaq 0x74be(%rip), %rax      # 0x18df2
jmp 0x1186b
movl $0x0, 0x20(%r15)
leaq 0x741b(%rip), %rax      # 0x18d63
jmp 0x1186b
movl $0x1, %ebp
cmpl $0x0, 0x24(%rsp)
jne 0x11874
movq 0x50(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x11cad
movq 0x48(%rsp), %r15
movl 0x20(%r15), %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 0xa4(%rsp), %rcx
movl %edx, (%rcx)
xorl %r8d, %r8d
cmpl $0x0, 0x5c(%rsp)
sete %r8b
movq 0x10(%rsp), %rsi
callq 0x3d6e
movq %rax, 0x10(%r15)
xorl %ebp, %ebp
testq %rax, %rax
je 0x11874
movq 0x8(%r15), %rdi
callq 0x21d0
movq $0x0, 0x8(%r15)
movl 0x8(%r14), %eax
leal 0x1(%rax), %ecx
cmpb $0x0, 0x68(%rsp)
cmovnel %ecx, %eax
movl 0x74(%rsp), %edx
cmpl $0x3, %edx
movl %eax, %ebx
cmovnel %ecx, %ebx
cmpb $0x0, 0xc(%rsp)
cmovnel %eax, %ebx
cmpl %edx, %ecx
cmovnel %eax, %ebx
movl %ebx, 0xc(%r14)
movq (%r15), %rax
movq 0x10(%r15), %rcx
movq %rcx, 0x88(%rsp)
movl 0x20(%r15), %ecx
movq %rcx, 0xa8(%rsp)
cmpl $0x10, %ecx
sete %cl
movl %ebx, 0x70(%rsp)
shll %cl, %ebx
movl 0xa4(%rsp), %r12d
movl (%rax), %r8d
movl 0x4(%rax), %r9d
cmpl $0x0, 0x60(%rsp)
je 0x11cb9
xorl %ebp, %ebp
movl %r8d, %edi
movl %r9d, %esi
movl %ebx, %edx
xorl %ecx, %ecx
callq 0xffc2
movq %rax, 0x80(%rsp)
movslq %ebx, %rax
movq %rax, 0x50(%rsp)
leaq 0x6b1a(%rip), %rax      # 0x18580
leaq 0x6b53(%rip), %r8       # 0x185c0
leaq 0x6b2c(%rip), %r10      # 0x185a0
leaq 0x6b65(%rip), %r11      # 0x185e0
movl %r12d, %r9d
movq %r15, %r12
movq (%r15), %rdi
movslq (%rax,%rbp,4), %rax
movslq (%r8,%rbp,4), %r15
movq %rax, 0x60(%rsp)
movl %eax, %esi
notl %esi
addl (%rdi), %esi
addl %r15d, %esi
movl %esi, %eax
xorl %edx, %edx
divl %r15d
movl %eax, 0x40(%rsp)
movl (%r10,%rbp,4), %ecx
movl %ecx, 0x38(%rsp)
notl %ecx
addl 0x4(%rdi), %ecx
movl (%r11,%rbp,4), %r13d
addl %r13d, %ecx
movl %ecx, %eax
xorl %edx, %edx
divl %r13d
movl %eax, 0x58(%rsp)
cmpl %esi, %r15d
ja 0x11c79
cmpl %ecx, %r13d
ja 0x11c79
movq %r15, %rbx
movl 0x40(%rsp), %r8d
movl %r8d, %ecx
movq 0xa8(%rsp), %rax
imull %eax, %ecx
imull 0x8(%rdi), %ecx
movl %ecx, 0xa0(%rsp)
movq %r12, %rdi
movq 0x88(%rsp), %rsi
movl %r9d, %r12d
movl %r9d, %edx
movl 0x70(%rsp), %ecx
movl 0x58(%rsp), %r15d
movl %r15d, %r9d
pushq 0x90(%rsp)
pushq %rax
callq 0x1299d
addq $0x10, %rsp
testl %eax, %eax
je 0x11d17
movq %rbp, 0xb8(%rsp)
movl %r12d, 0x9c(%rsp)
testl %r15d, %r15d
jle 0x11c1c
movq %rbx, %r12
movslq 0x40(%rsp), %rsi
movl 0x58(%rsp), %eax
movq %rax, 0x78(%rsp)
movq 0x50(%rsp), %rax
movq 0x60(%rsp), %rbx
imulq %rax, %rbx
addq 0x80(%rsp), %rbx
movq %rbx, 0x60(%rsp)
movl 0x38(%rsp), %ecx
imull %eax, %ecx
movl %ecx, 0x38(%rsp)
imull %eax, %r13d
imulq %rax, %r12
movq $0x0, 0x28(%rsp)
movl %r13d, 0x24(%rsp)
cmpl $0x0, 0x40(%rsp)
movq 0x50(%rsp), %r15
jle 0x11bfa
movq 0x48(%rsp), %rcx
movq (%rcx), %rax
movq 0x18(%rcx), %rcx
movq %rcx, 0x10(%rsp)
movq 0x28(%rsp), %rcx
imulq %rsi, %rcx
movq %rcx, 0x18(%rsp)
movl (%rax), %ebx
imull 0x38(%rsp), %ebx
addq 0x60(%rsp), %rbx
xorl %ebp, %ebp
movq %rsi, %r13
movq 0x18(%rsp), %rax
leaq (%rax,%rbp), %rsi
imulq %r15, %rsi
addq 0x10(%rsp), %rsi
movq %rbx, %rdi
movq %r15, %rdx
callq 0x2140
movq %r13, %rsi
incq %rbp
addq %r12, %rbx
cmpq %r13, %rbp
jl 0x11bcc
movq 0x28(%rsp), %rcx
incq %rcx
movl 0x24(%rsp), %r13d
addl %r13d, 0x38(%rsp)
movq %rcx, 0x28(%rsp)
cmpq 0x78(%rsp), %rcx
jb 0x11b93
movl 0xa0(%rsp), %ebx
addl $0x7, %ebx
sarl $0x3, %ebx
incl %ebx
imull 0x58(%rsp), %ebx
movq 0x48(%rsp), %r15
movq 0x18(%r15), %rdi
callq 0x21d0
movl %ebx, %eax
addq %rax, 0x88(%rsp)
movl 0x9c(%rsp), %r12d
subl %ebx, %r12d
movq 0xb8(%rsp), %rbp
leaq 0x691e(%rip), %rax      # 0x18580
leaq 0x6957(%rip), %r8       # 0x185c0
leaq 0x6930(%rip), %r10      # 0x185a0
leaq 0x6969(%rip), %r11      # 0x185e0
jmp 0x11c86
movq %r12, %r15
movl %r9d, %r12d
leaq 0x68fa(%rip), %rax      # 0x18580
incq %rbp
cmpq $0x7, %rbp
jne 0x11a7b
movq 0x80(%rsp), %rax
movq %rax, 0x18(%r15)
jmp 0x11cea
leaq 0x7168(%rip), %rax      # 0x18e10
jmp 0x1186b
leaq 0x717e(%rip), %rax      # 0x18e32
jmp 0x1186b
movq %r15, %rdi
movq 0x88(%rsp), %rsi
movl %r12d, %edx
movl 0x70(%rsp), %ecx
pushq 0x90(%rsp)
pushq 0xb0(%rsp)
callq 0x1299d
addq $0x10, %rsp
testl %eax, %eax
je 0x11874
cmpb $0x0, 0x68(%rsp)
je 0x11d33
cmpl $0x10, 0x20(%r15)
movl 0xc(%r14), %r8d
movq (%r15), %rax
movq 0x18(%r15), %rdx
movl (%rax), %edi
movl 0x4(%rax), %esi
jne 0x11d29
leaq 0xb2(%rsp), %rcx
callq 0x12784
jmp 0x11d33
movq 0x80(%rsp), %rdi
callq 0x21d0
jmp 0x11872
leaq 0x34(%rsp), %rcx
callq 0x12811
cmpl $0x0, 0x5c(%rsp)
je 0x11d56
cmpl $0x0, 0xb4c7(%rip)      # 0x1d208
je 0x11d56
cmpl $0x3, 0xc(%r14)
jl 0x11d56
movq (%r15), %rdi
movq 0x18(%r15), %rsi
callq 0x12898
movl 0xc(%rsp), %eax
testb %al, %al
je 0x11df6
movzbl %al, %r12d
movl %r12d, 0x8(%r14)
movl 0x74(%rsp), %eax
cmpl $0x3, %eax
cmovgel %eax, %r12d
movl %r12d, 0xc(%r14)
movq (%r15), %rax
movq 0x18(%r15), %r14
movl 0x4(%rax), %ebx
imull (%rax), %ebx
xorl %ebp, %ebp
movl %ebx, %edi
movl %r12d, %esi
xorl %edx, %edx
callq 0xff0b
testq %rax, %rax
je 0x11de3
movq %rax, %r15
cmpl $0x3, %r12d
jne 0x11e03
testl %ebx, %ebx
je 0x11e23
movl %ebx, %eax
xorl %ecx, %ecx
movq %r15, %rdx
movzbl (%r14,%rcx), %esi
movb 0xc0(%rsp,%rsi,4), %dil
movb %dil, (%rdx)
movb 0xc1(%rsp,%rsi,4), %dil
movb %dil, 0x1(%rdx)
movb 0xc2(%rsp,%rsi,4), %sil
movb %sil, 0x2(%rdx)
addq $0x3, %rdx
incq %rcx
cmpq %rcx, %rax
jne 0x11dad
jmp 0x11e23
leaq 0x6dbf(%rip), %rax      # 0x18ba9
movq %rax, 0xb407(%rip)      # 0x1d1f8
jmp 0x11874
cmpb $0x0, 0x68(%rsp)
je 0x11e37
incl 0x8(%r14)
jmp 0x11e37
testl %ebx, %ebx
je 0x11e23
movl %ebx, %eax
xorl %ecx, %ecx
movzbl (%r14,%rcx), %edx
movl 0xc0(%rsp,%rdx,4), %edx
movl %edx, (%r15,%rcx,4)
incq %rcx
cmpq %rcx, %rax
jne 0x11e0b
movq %r14, %rdi
callq 0x21d0
movq 0x48(%rsp), %rax
movq %r15, 0x18(%rax)
movq %rax, %r15
movq 0x10(%r15), %rdi
callq 0x21d0
movq $0x0, 0x10(%r15)
jmp 0x11923