// File: /workspace/github_c_makefile_star2_O1/archer1357[P]Offline-Raytracer/stb_image.c
// Function: stbi__parse_png_file
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];
   stbi__uint32 ioff=0, idata_limit=0, i, pal_len=0;
   int first=1,k,interlace=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 == SCAN_type) return 1;

   for (;;) {
      stbi__pngchunk c = stbi__get_chunk_header(s);
      switch (c.type) {
         case PNG_TYPE('C','g','B','I'):
            is_iphone = 1;
            stbi__skip(s, c.length);
            break;
         case PNG_TYPE('I','H','D','R'): {
            int depth,color,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?)");
            depth = stbi__get8(s);  if (depth != 8)        return stbi__err("8bit only","PNG not supported: 8-bit only");
            color = stbi__get8(s);  if (color > 6)         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 == 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 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 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 == 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;
               for (k=0; k < s->img_n; ++k)
                  tc[k] = (stbi_uc) (stbi__get16be(s) & 255); // non 8-bit images will be larger
            }
            break;
         }

         case 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 == SCAN_header) { s->img_n = pal_img_n; return 1; }
            if (ioff + c.length > 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;
               p = (stbi_uc *) realloc(z->idata, 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 PNG_TYPE('I','E','N','D'): {
            stbi__uint32 raw_len;
            if (first) return stbi__err("first not IHDR", "Corrupt PNG");
            if (scan != SCAN_load) return 1;
            if (z->idata == NULL) return stbi__err("no IDAT","Corrupt PNG");
            z->expanded = (stbi_uc *) stbi_zlib_decode_malloc_guesssize_headerflag((char *) z->idata, ioff, 16384, (int *) &raw_len, !is_iphone);
            if (z->expanded == NULL) return 0; // zlib should set error
            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, interlace)) return 0;
            if (has_trans)
               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;
            }
            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, 0x54(%rsp)
movl %esi, 0x24(%rsp)
movq %rdi, %r12
movq (%rdi), %rbp
leaq 0x8(%rdi), %rax
movq %rax, 0x40(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movq $0x0, 0x18(%rdi)
xorl %ebx, %ebx
leaq 0xc743f(%rip), %r14     # 0x4d7748
movq %rbp, %rdi
callq 0x40f6b6
movb (%rbx,%r14), %cl
cmpb %cl, %al
jne 0x410324
incq %rbx
cmpq $0x8, %rbx
jne 0x410309
jmp 0x410332
leaq 0xc7649(%rip), %rdx     # 0x4d7974
movq %rdx, 0x10b20e(%rip)    # 0x51b540
movl $0x0, (%rsp)
cmpb %cl, %al
jne 0x41034b
movl $0x1, (%rsp)
cmpl $0x1, 0x24(%rsp)
jne 0x410360
movl (%rsp), %eax
addq $0x4c8, %rsp            # imm = 0x4C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, 0x4(%rsp)
movq $0x0, 0x90(%rsp)
movl $0x0, 0x38(%rsp)
xorl %r14d, %r14d
movq $0x0, 0x98(%rsp)
xorl %ebx, %ebx
movq $0x0, 0x68(%rsp)
movl $0x0, 0x14(%rsp)
movq %rbp, 0x28(%rsp)
movq %rbx, 0x8(%rsp)
movq %rbp, %rdi
callq 0x411421
movl %eax, %ebx
movq %rbp, %rdi
callq 0x411421
cmpl $0x49484451, %eax       # imm = 0x49484451
jg 0x41040c
cmpl $0x43674249, %eax       # imm = 0x43674249
je 0x41048e
cmpl $0x49444154, %eax       # imm = 0x49444154
je 0x4104fb
cmpl $0x49454e44, %eax       # imm = 0x49454E44
jne 0x4104d0
cmpl $0x0, 0x4(%rsp)
je 0x41055a
leaq 0xc7600(%rip), %rax     # 0x4d79f4
movq %rax, 0x10b145(%rip)    # 0x51b540
movl $0x0, (%rsp)
movq 0x8(%rsp), %rbx
jmp 0x410571
cmpl $0x74524e53, %eax       # imm = 0x74524E53
je 0x4104aa
cmpl $0x504c5445, %eax       # imm = 0x504C5445
je 0x410536
cmpl $0x49484452, %eax       # imm = 0x49484452
jne 0x4104d0
cmpl $0x0, 0x4(%rsp)
je 0x410578
cmpl $0xd, %ebx
jne 0x410611
movq %rbp, %rdi
callq 0x411421
movl %eax, (%rbp)
cmpl $0x1000001, %eax        # imm = 0x1000001
movq 0x8(%rsp), %rbx
jae 0x41046e
movq %rbp, %rdi
callq 0x411421
movl %eax, 0x4(%rbp)
cmpl $0x1000001, %eax        # imm = 0x1000001
jb 0x4107db
leaq 0xd132a(%rip), %rax     # 0x4e179f
movq %rax, 0x10b0c4(%rip)    # 0x51b540
xorl %ecx, %ecx
movl 0x14(%rsp), %ebp
movl $0x0, (%rsp)
jmp 0x410631
movl $0x1, 0x38(%rsp)
movq %rbp, %rdi
movl %ebx, %esi
callq 0x40f87d
movq 0x8(%rsp), %rbx
jmp 0x41064b
cmpl $0x0, 0x4(%rsp)
jne 0x41053d
movq 0x40(%rsp), %rax
cmpq $0x0, (%rax)
je 0x41069d
leaq 0xc7545(%rip), %rax     # 0x4d7a10
jmp 0x41065e
cmpl $0x0, 0x4(%rsp)
jne 0x41053d
movl %eax, %eax
movl $0x0, 0x4(%rsp)
btl $0x1d, %eax
jb 0x410496
bswapl %eax
movl %eax, 0x107d51(%rip)    # 0x518240
leaq 0x107d4a(%rip), %rax    # 0x518240
jmp 0x41065e
cmpl $0x0, 0x4(%rsp)
jne 0x41053d
cmpb $0x0, 0x14(%rsp)
je 0x410688
testl %r14d, %r14d
jne 0x410688
leaq 0xc7531(%rip), %rax     # 0x4d7a4e
movq %rax, 0x10b01c(%rip)    # 0x51b540
movl $0x0, 0x4(%rsp)
xorl %eax, %eax
xorl %r14d, %r14d
jmp 0x41066f
cmpl $0x0, 0x4(%rsp)
je 0x410584
leaq 0xc74b0(%rip), %rax     # 0x4d79f4
movq %rax, 0x10aff5(%rip)    # 0x51b540
xorl %eax, %eax
movl $0x1, 0x4(%rsp)
jmp 0x41066f
cmpl $0x0, 0x24(%rsp)
movq 0x8(%rsp), %rbx
je 0x4106cd
movl $0x1, (%rsp)
xorl %eax, %eax
jmp 0x41067b
leaq 0xc7401(%rip), %rax     # 0x4d7980
jmp 0x410618
cmpl $0x301, %ebx            # imm = 0x301
jae 0x410657
movl %ebx, %r14d
movl $0xaaaaaaab, %eax       # imm = 0xAAAAAAAB
imulq %rax, %r14
shrq $0x21, %r14
leal (%r14,%r14,2), %eax
cmpl %ebx, %eax
jne 0x410657
movl $0x0, 0x4(%rsp)
cmpl $0x3, %ebx
jb 0x4104a0
movq %r14, %r15
movl %r14d, %ebx
xorl %r14d, %r14d
movq %rbp, %rdi
callq 0x40f6b6
movb %al, 0xc0(%rsp,%r14,4)
movq %rbp, %rdi
callq 0x40f6b6
movb %al, 0xc1(%rsp,%r14,4)
movq %rbp, %rdi
callq 0x40f6b6
movb %al, 0xc2(%rsp,%r14,4)
movb $-0x1, 0xc3(%rsp,%r14,4)
incq %r14
cmpq %r14, %rbx
jne 0x4105c6
movq 0x8(%rsp), %rbx
movq %r15, %r14
jmp 0x41064b
leaq 0xc7376(%rip), %rax     # 0x4d798e
movq %rax, 0x10af21(%rip)    # 0x51b540
xorl %ecx, %ecx
movl 0x14(%rsp), %ebp
movl $0x0, (%rsp)
movq 0x8(%rsp), %rbx
movl $0x0, 0x4(%rsp)
movl %ebp, 0x14(%rsp)
movl $0x0, %eax
testb %cl, %cl
movq 0x28(%rsp), %rbp
je 0x41067b
movq %rbp, %rdi
callq 0x411421
movb $0x1, %al
jmp 0x41067b
leaq 0xc73a5(%rip), %rax     # 0x4d7a03
movq %rax, 0x10aedb(%rip)    # 0x51b540
movl $0x0, 0x4(%rsp)
xorl %eax, %eax
movl $0x0, (%rsp)
movq 0x8(%rsp), %rbx
testb %al, %al
jne 0x4103a3
jmp 0x41034b
cmpl $0x2, 0x24(%rsp)
jne 0x410772
movzbl 0x14(%rsp), %eax
movl %eax, 0x8(%rbp)
jmp 0x4106ba
cmpb $0x0, 0x14(%rsp)
je 0x410803
cmpl $0x2, 0x24(%rsp)
jne 0x41083c
movl $0x4, 0x8(%rbp)
movl $0x1, (%rsp)
movl $0x0, 0x4(%rsp)
xorl %eax, %eax
jmp 0x410676
movq 0x40(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x41081a
xorl %r8d, %r8d
cmpl $0x0, 0x38(%rsp)
sete %r8b
movl %ebx, %esi
movl $0x4000, %edx           # imm = 0x4000
leaq 0x8c(%rsp), %rcx
callq 0x40d779
movq %rax, 0x10(%r12)
movl $0x0, (%rsp)
testq %rax, %rax
je 0x410571
movq %r12, %r13
movl 0x54(%rsp), %r12d
cmpl $0x3, %r12d
setne %bl
movq 0x40(%rsp), %r15
movq (%r15), %rdi
callq 0x444d10
movq $0x0, (%r15)
movl 0x8(%rbp), %eax
leal 0x1(%rax), %ecx
cmpl %r12d, %ecx
sete %dl
cmpb $0x0, 0x14(%rsp)
sete %sil
andb %bl, %sil
andb %dl, %sil
cmpb $0x0, 0x68(%rsp)
setne %dl
orb %sil, %dl
cmpb $0x1, %dl
movq %r14, 0x18(%rsp)
jne 0x410866
movl %ecx, 0xc(%rbp)
jmp 0x410869
movq 0x8(%rsp), %rax
leal (%rbx,%rax), %ebp
movq 0x98(%rsp), %rax
cmpl %eax, %ebp
movq %r14, 0x18(%rsp)
jbe 0x410834
cmpl $0x1001, %ebx           # imm = 0x1001
movq %rax, %rdx
movl %ebx, %eax
movl $0x1000, %ecx           # imm = 0x1000
cmovbl %ecx, %eax
testl %edx, %edx
cmovnel %edx, %eax
movl %eax, %ecx
leal (%rcx,%rcx), %eax
cmpl %ecx, %ebp
ja 0x4107a7
movq 0x40(%rsp), %r15
movq (%r15), %rdi
movq %rcx, 0x98(%rsp)
movl %ecx, %esi
callq 0x445060
movq %r12, %r13
testq %rax, %rax
je 0x410c38
movq %rax, (%r15)
jmp 0x410c4d
movq %rbp, %rdi
callq 0x40f6b6
cmpb $0x8, %al
jne 0x41085a
movq %rbp, %rdi
callq 0x40f6b6
cmpb $0x7, %al
jb 0x410bf6
leaq 0xc71a7(%rip), %rax     # 0x4d79a5
jmp 0x410618
movl 0x8(%rbp), %eax
testb $0x1, %al
jne 0x410b1d
leaq 0xc7229(%rip), %rax     # 0x4d7a3e
jmp 0x410d26
leaq 0xc723f(%rip), %rax     # 0x4d7a60
movq %rax, 0x10ad18(%rip)    # 0x51b540
movl $0x0, (%rsp)
jmp 0x410571
movq %r12, %r13
jmp 0x410c52
testl %r14d, %r14d
je 0x410cd8
cmpl %ebx, %r14d
jae 0x410ce4
leaq 0xc71dc(%rip), %rax     # 0x4d7a31
jmp 0x41065e
leaq 0xc713a(%rip), %rax     # 0x4d799b
jmp 0x410475
movl %eax, 0xc(%rbp)
movq %r13, %r12
movq (%r13), %rax
movq 0x10(%r13), %r15
movl 0x8c(%rsp), %r14d
movslq 0xc(%rbp), %rcx
movl (%rax), %r8d
movl 0x4(%rax), %r9d
cmpl $0x0, 0x90(%rsp)
movq 0x8(%rsp), %rbx
movq %r13, 0x58(%rsp)
je 0x410b6b
imull %ecx, %r8d
imull %r9d, %r8d
movq %r8, %rdi
movq %rcx, 0x48(%rsp)
callq 0x4449d0
movl %r14d, %r10d
movq %r15, %rsi
movq 0x48(%rsp), %rcx
movq %rax, 0x60(%rsp)
xorl %r11d, %r11d
movq 0x18(%rsp), %r14
movq %r14, %r13
movq %r12, %r15
movq (%r12), %rdi
leaq 0xc6bb3(%rip), %rax     # 0x4d7490
movslq (%rax,%r11,4), %rdx
leaq 0xc6be8(%rip), %rax     # 0x4d74d0
movslq (%rax,%r11,4), %r12
movq %rdx, 0x70(%rsp)
movl %edx, %r9d
notl %r9d
addl (%rdi), %r9d
addl %r12d, %r9d
movl %r9d, %eax
xorl %edx, %edx
divl %r12d
movl %eax, 0x30(%rsp)
leaq 0xc6ba0(%rip), %rax     # 0x4d74b0
movl (%rax,%r11,4), %r8d
leaq 0xc6bd5(%rip), %rax     # 0x4d74f0
movl (%rax,%r11,4), %eax
movl %r8d, 0x80(%rsp)
notl %r8d
addl 0x4(%rdi), %r8d
movl %eax, %edi
addl %eax, %r8d
movl %r8d, %eax
xorl %edx, %edx
divl %edi
movl %eax, 0x34(%rsp)
movb $0x1, %al
cmpl %r9d, %r12d
ja 0x410acb
cmpl %r8d, %edi
ja 0x410acb
movq %r12, %r14
movl %edi, 0x3c(%rsp)
movq %r11, 0xa0(%rsp)
movq %r15, %r12
movq %r15, %rdi
movq %rsi, 0xa8(%rsp)
movl %r10d, 0x50(%rsp)
movl %r10d, %edx
movl 0x30(%rsp), %r8d
movl 0x34(%rsp), %r15d
movl %r15d, %r9d
callq 0x41160a
testl %eax, %eax
je 0x410ad3
testl %r15d, %r15d
movq 0x48(%rsp), %rdx
movq %r14, %r12
movl 0x80(%rsp), %r14d
movl 0x3c(%rsp), %eax
jle 0x410a76
movslq 0x30(%rsp), %rbx
movl 0x34(%rsp), %esi
movq %rsi, 0xb0(%rsp)
imull %edx, %r14d
imull %edx, %eax
movq 0x70(%rsp), %r15
imulq %rdx, %r15
addq 0x60(%rsp), %r15
movq %r15, 0x70(%rsp)
imulq %rdx, %r12
movq $0x0, 0x78(%rsp)
movl %eax, 0x3c(%rsp)
cmpl $0x0, 0x30(%rsp)
jle 0x410a54
movq 0x58(%rsp), %rax
movq (%rax), %rsi
movq %rsi, 0x80(%rsp)
movq 0x18(%rax), %rax
movq %rax, 0xb8(%rsp)
movq 0x78(%rsp), %rbp
imulq %rbx, %rbp
movq 0x70(%rsp), %r13
xorl %r15d, %r15d
movq 0x80(%rsp), %rax
movl (%rax), %edi
imull %r14d, %edi
addq %r13, %rdi
leaq (%r15,%rbp), %rsi
imulq %rdx, %rsi
addq 0xb8(%rsp), %rsi
callq 0x401058
movq 0x48(%rsp), %rdx
incq %r15
addq %r12, %r13
cmpq %rbx, %r15
jl 0x410a1e
movq 0x78(%rsp), %r9
incq %r9
movl 0x3c(%rsp), %eax
addl %eax, %r14d
movq %r9, 0x78(%rsp)
cmpq 0xb0(%rsp), %r9
jb 0x4109ea
movq 0x58(%rsp), %r12
movq 0x18(%r12), %rdi
callq 0x444d10
movq 0x48(%rsp), %rcx
movl 0x30(%rsp), %eax
imull %ecx, %eax
incl %eax
movl 0x34(%rsp), %edx
imull %eax, %edx
movslq %edx, %rax
movq 0xa8(%rsp), %rsi
addq %rax, %rsi
movl 0x50(%rsp), %r10d
subl %eax, %r10d
movq 0x28(%rsp), %rbp
movq 0x8(%rsp), %rbx
movq 0x18(%rsp), %r14
movq 0xa0(%rsp), %r11
movb $0x1, %al
jmp 0x410afc
movq %r13, %r14
movq %r15, %r12
jmp 0x410afc
movq 0x60(%rsp), %rdi
callq 0x444d10
xorl %eax, %eax
movq 0x48(%rsp), %rcx
movq 0xa8(%rsp), %rsi
movl 0x50(%rsp), %r10d
movq 0xa0(%rsp), %r11
movq %r13, %r14
testb %al, %al
je 0x410571
incq %r11
cmpq $0x7, %r11
jne 0x4108cc
movq 0x60(%rsp), %rax
movq %rax, 0x18(%r12)
jmp 0x410b86
addl %eax, %eax
cmpl %ebx, %eax
jne 0x410d1f
movb $0x1, %al
movq %rax, 0x68(%rsp)
cmpl $0x0, 0x8(%rbp)
jle 0x410b56
xorl %ebx, %ebx
movq %rbp, %rdi
callq 0x40f6b6
movq %rbp, %rdi
callq 0x40f6b6
movb %al, 0x21(%rsp,%rbx)
incq %rbx
movslq 0x8(%rbp), %rax
cmpq %rax, %rbx
jl 0x410b36
movl $0x0, 0x4(%rsp)
movl $0x0, 0x14(%rsp)
jmp 0x4104a0
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %edx
callq 0x41160a
testl %eax, %eax
movq 0x18(%rsp), %r14
je 0x410571
cmpb $0x0, 0x68(%rsp)
je 0x410d66
movl 0xc(%rbp), %ecx
movq (%r12), %rdx
movq 0x18(%r12), %rax
movl 0x4(%rdx), %edi
imull (%rdx), %edi
cmpl $0x2, %ecx
je 0x410d44
cmpl $0x4, %ecx
jne 0x410fa6
testl %edi, %edi
je 0x410d66
movb 0x21(%rsp), %cl
movb 0x22(%rsp), %dl
movb 0x23(%rsp), %sil
movl %edi, %edi
xorl %r8d, %r8d
cmpb %cl, (%rax,%r8,4)
jne 0x410be9
cmpb %dl, 0x1(%rax,%r8,4)
jne 0x410be9
cmpb %sil, 0x2(%rax,%r8,4)
jne 0x410be9
movb $0x0, 0x3(%rax,%r8,4)
incq %r8
cmpl %r8d, %edi
jne 0x410bcf
jmp 0x410d66
movl %eax, %ebx
movzbl %al, %r15d
movb $0x3, %bpl
cmpl $0x3, %r15d
je 0x410c12
testb $0x1, %bl
jne 0x4107f7
movl 0x14(%rsp), %ebp
movq %r14, 0x18(%rsp)
movq 0x28(%rsp), %r14
movq %r14, %rdi
callq 0x40f6b6
testb %al, %al
je 0x410eb8
leaq 0xc6d7c(%rip), %rax     # 0x4d79af
jmp 0x410f31
leaq 0xc6c20(%rip), %rcx     # 0x4d785f
movq %rcx, 0x10a8fa(%rip)    # 0x51b540
movl $0x0, (%rsp)
testq %rax, %rax
je 0x410cb7
movq 0x8(%rsp), %r15
movl %r15d, %esi
movq 0x40(%rsp), %rax
addq (%rax), %rsi
movq 0x28(%rsp), %rdi
movl %ebx, %edx
callq 0x411469
testl %eax, %eax
je 0x410c8e
movl $0x0, 0x4(%rsp)
movl %ebp, %ebx
movq 0x28(%rsp), %rbp
movq 0x18(%rsp), %r14
movq %r13, %r12
jmp 0x41064b
leaq 0xc6dc1(%rip), %rax     # 0x4d7a56
movq %rax, 0x10a8a4(%rip)    # 0x51b540
movl $0x0, 0x4(%rsp)
xorl %eax, %eax
movl $0x0, (%rsp)
movq 0x28(%rsp), %rbp
movq %r15, %rbx
jmp 0x410ccb
movl $0x0, 0x4(%rsp)
xorl %eax, %eax
movq 0x28(%rsp), %rbp
movq 0x8(%rsp), %rbx
movq 0x18(%rsp), %r14
movq %r13, %r12
jmp 0x41067b
leaq 0xc6d41(%rip), %rax     # 0x4d7a20
jmp 0x41051d
movb $0x4, %al
movl %eax, 0x14(%rsp)
movl $0x0, 0x4(%rsp)
testl %ebx, %ebx
je 0x4104a0
movq %r14, %r15
movl %ebx, %ebx
xorl %r14d, %r14d
movq %rbp, %rdi
callq 0x40f6b6
movb %al, 0xc3(%rsp,%r14,4)
incq %r14
cmpq %r14, %rbx
jne 0x410d02
jmp 0x410607
leaq 0xc6d0b(%rip), %rax     # 0x4d7a31
movq %rax, 0x10a813(%rip)    # 0x51b540
movl $0x0, 0x4(%rsp)
xorl %eax, %eax
movl $0x0, 0x14(%rsp)
jmp 0x41066f
testl %edi, %edi
je 0x410d66
movb 0x21(%rsp), %cl
movl %edi, %edx
xorl %esi, %esi
cmpb %cl, (%rax,%rsi,2)
setne %dil
negb %dil
movb %dil, 0x1(%rax,%rsi,2)
incq %rsi
cmpl %esi, %edx
jne 0x410d50
cmpl $0x0, 0x38(%rsp)
je 0x410d84
cmpl $0x0, 0x10a7d8(%rip)    # 0x51b54c
je 0x410d84
cmpl $0x3, 0xc(%rbp)
jl 0x410d84
movq %r12, %rdi
callq 0x411516
cmpb $0x0, 0x14(%rsp)
je 0x410ea0
movl 0x54(%rsp), %eax
movq %r14, %r15
cmpl $0x3, %eax
movzbl 0x14(%rsp), %r14d
movl %r14d, 0x8(%rbp)
cmovgel %eax, %r14d
movl %r14d, 0xc(%rbp)
movq (%r12), %rax
movq 0x18(%r12), %rbx
movl 0x4(%rax), %ebp
imull (%rax), %ebp
movl %ebp, %edi
imull %r14d, %edi
callq 0x4449d0
movq %rax, %r13
testq %rax, %rax
je 0x410e1a
cmpl $0x3, %r14d
jne 0x410e2d
testl %ebp, %ebp
movq %r15, %r14
je 0x410e77
movl %ebp, %eax
xorl %ecx, %ecx
movq %r13, %rdx
movzbl (%rbx,%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 0x410de5
jmp 0x410e77
leaq 0xc6a3e(%rip), %rax     # 0x4d785f
movq %rax, 0x10a718(%rip)    # 0x51b540
movq %r15, %r14
jmp 0x410e88
testl %ebp, %ebp
movq %r15, %r14
je 0x410e77
movl %ebp, %eax
xorl %ecx, %ecx
movzbl (%rbx,%rcx), %edx
movb 0xc0(%rsp,%rdx,4), %sil
movb %sil, (%r13,%rcx,4)
movb 0xc1(%rsp,%rdx,4), %sil
movb %sil, 0x1(%r13,%rcx,4)
movb 0xc2(%rsp,%rdx,4), %sil
movb %sil, 0x2(%r13,%rcx,4)
movb 0xc3(%rsp,%rdx,4), %dl
movb %dl, 0x3(%r13,%rcx,4)
incq %rcx
cmpq %rcx, %rax
jne 0x410e38
movq %rbx, %rdi
callq 0x444d10
movq 0x58(%rsp), %rax
movq %r13, 0x18(%rax)
testq %r13, %r13
movq 0x58(%rsp), %r12
movq 0x28(%rsp), %rbp
movq 0x8(%rsp), %rbx
je 0x410571
movq 0x10(%r12), %rdi
callq 0x444d10
movq $0x0, 0x10(%r12)
jmp 0x41056a
movq %r14, %rdi
callq 0x40f6b6
testb %al, %al
je 0x410ecd
leaq 0xc6af4(%rip), %rax     # 0x4d79bf
jmp 0x410f31
movq %r14, %rdi
callq 0x40f6b6
movzbl %al, %eax
movq %rax, 0x90(%rsp)
cmpb $0x2, %al
jb 0x410eed
leaq 0xc6ae6(%rip), %rax     # 0x4d79d1
jmp 0x410f31
movl (%r14), %esi
testl %esi, %esi
je 0x410f2a
movl 0x4(%r14), %ecx
testl %ecx, %ecx
je 0x410f2a
testb %bpl, %bpl
je 0x410f50
movq 0x28(%rsp), %rax
movl $0x1, 0x8(%rax)
movl $0x40000000, %eax       # imm = 0x40000000
xorl %edx, %edx
divl %esi
shrl $0x2, %eax
cmpl %ecx, %eax
jae 0x410fa2
leaq 0xd0877(%rip), %rax     # 0x4e179f
jmp 0x410f31
leaq 0xc6ab5(%rip), %rax     # 0x4d79e6
movq %rax, 0x10a608(%rip)    # 0x51b540
xorl %ecx, %ecx
movl $0x0, (%rsp)
movq 0x8(%rsp), %rbx
movq 0x18(%rsp), %r14
jmp 0x410631
andl $0x2, %r15d
xorl %eax, %eax
cmpb $0x4, %bl
setae %al
leal 0x1(%rax,%r15), %edi
movq 0x28(%rsp), %rax
movl %edi, 0x8(%rax)
movl $0x40000000, %eax       # imm = 0x40000000
xorl %edx, %edx
divl %esi
xorl %edx, %edx
divl %edi
cmpl %ecx, %eax
jae 0x410f8e
leaq 0xd081e(%rip), %rax     # 0x4e179f
movq %rax, 0x10a5b8(%rip)    # 0x51b540
xorl %ecx, %ecx
xorl %ebp, %ebp
jmp 0x410f3a
cmpl $0x2, 0x24(%rsp)
jne 0x410fa2
movl $0x1, (%rsp)
xorl %ecx, %ecx
xorl %ebp, %ebp
jmp 0x410f41
movb $0x1, %cl
jmp 0x410f41
leaq 0xc6b7c(%rip), %rdi     # 0x4d7b29
leaq 0xc697a(%rip), %rsi     # 0x4d792e
leaq 0xc6b87(%rip), %rcx     # 0x4d7b42
movl $0x8dc, %edx            # imm = 0x8DC
callq 0x41fae0