// File: /workspace/github_cpp_makefile_star2_O3/alan0201tw[P]RayTracer/include/stb_image.h
// Function: stbi__parse_png_file(stbi__png*, int, int)
static int stbi__parse_png_file(stbi__png *z, int scan, int req_comp)
{
   stbi_uc palette[1024], pal_img_n=0;
   stbi_uc has_trans=0, tc[3]={0};
   stbi__uint16 tc16[3];
   stbi__uint32 ioff=0, idata_limit=0, i, pal_len=0;
   int first=1,k,interlace=0, color=0, is_iphone=0;
   stbi__context *s = z->s;

   z->expanded = NULL;
   z->idata = NULL;
   z->out = NULL;

   if (!stbi__check_png_header(s)) return 0;

   if (scan == STBI__SCAN_type) return 1;

   for (;;) {
      stbi__pngchunk c = stbi__get_chunk_header(s);
      switch (c.type) {
         case STBI__PNG_TYPE('C','g','B','I'):
            is_iphone = 1;
            stbi__skip(s, c.length);
            break;
         case STBI__PNG_TYPE('I','H','D','R'): {
            int comp,filter;
            if (!first) return stbi__err("multiple IHDR","Corrupt PNG");
            first = 0;
            if (c.length != 13) return stbi__err("bad IHDR len","Corrupt PNG");
            s->img_x = stbi__get32be(s); if (s->img_x > (1 << 24)) return stbi__err("too large","Very large image (corrupt?)");
            s->img_y = stbi__get32be(s); if (s->img_y > (1 << 24)) return stbi__err("too large","Very large image (corrupt?)");
            z->depth = stbi__get8(s);  if (z->depth != 1 && z->depth != 2 && z->depth != 4 && z->depth != 8 && z->depth != 16)  return stbi__err("1/2/4/8/16-bit only","PNG not supported: 1/2/4/8/16-bit only");
            color = stbi__get8(s);  if (color > 6)         return stbi__err("bad ctype","Corrupt PNG");
            if (color == 3 && z->depth == 16)                  return stbi__err("bad ctype","Corrupt PNG");
            if (color == 3) pal_img_n = 3; else if (color & 1) return stbi__err("bad ctype","Corrupt PNG");
            comp  = stbi__get8(s);  if (comp) return stbi__err("bad comp method","Corrupt PNG");
            filter= stbi__get8(s);  if (filter) return stbi__err("bad filter method","Corrupt PNG");
            interlace = stbi__get8(s); if (interlace>1) return stbi__err("bad interlace method","Corrupt PNG");
            if (!s->img_x || !s->img_y) return stbi__err("0-pixel image","Corrupt PNG");
            if (!pal_img_n) {
               s->img_n = (color & 2 ? 3 : 1) + (color & 4 ? 1 : 0);
               if ((1 << 30) / s->img_x / s->img_n < s->img_y) return stbi__err("too large", "Image too large to decode");
               if (scan == STBI__SCAN_header) return 1;
            } else {
               // if paletted, then pal_n is our final components, and
               // img_n is # components to decompress/filter.
               s->img_n = 1;
               if ((1 << 30) / s->img_x / 4 < s->img_y) return stbi__err("too large","Corrupt PNG");
               // if SCAN_header, have to scan to see if we have a tRNS
            }
            break;
         }

         case STBI__PNG_TYPE('P','L','T','E'):  {
            if (first) return stbi__err("first not IHDR", "Corrupt PNG");
            if (c.length > 256*3) return stbi__err("invalid PLTE","Corrupt PNG");
            pal_len = c.length / 3;
            if (pal_len * 3 != c.length) return stbi__err("invalid PLTE","Corrupt PNG");
            for (i=0; i < pal_len; ++i) {
               palette[i*4+0] = stbi__get8(s);
               palette[i*4+1] = stbi__get8(s);
               palette[i*4+2] = stbi__get8(s);
               palette[i*4+3] = 255;
            }
            break;
         }

         case STBI__PNG_TYPE('t','R','N','S'): {
            if (first) return stbi__err("first not IHDR", "Corrupt PNG");
            if (z->idata) return stbi__err("tRNS after IDAT","Corrupt PNG");
            if (pal_img_n) {
               if (scan == STBI__SCAN_header) { s->img_n = 4; return 1; }
               if (pal_len == 0) return stbi__err("tRNS before PLTE","Corrupt PNG");
               if (c.length > pal_len) return stbi__err("bad tRNS len","Corrupt PNG");
               pal_img_n = 4;
               for (i=0; i < c.length; ++i)
                  palette[i*4+3] = stbi__get8(s);
            } else {
               if (!(s->img_n & 1)) return stbi__err("tRNS with alpha","Corrupt PNG");
               if (c.length != (stbi__uint32) s->img_n*2) return stbi__err("bad tRNS len","Corrupt PNG");
               has_trans = 1;
               if (z->depth == 16) {
                  for (k = 0; k < s->img_n; ++k) tc16[k] = (stbi__uint16)stbi__get16be(s); // copy the values as-is
               } else {
                  for (k = 0; k < s->img_n; ++k) tc[k] = (stbi_uc)(stbi__get16be(s) & 255) * stbi__depth_scale_table[z->depth]; // non 8-bit images will be larger
               }
            }
            break;
         }

         case STBI__PNG_TYPE('I','D','A','T'): {
            if (first) return stbi__err("first not IHDR", "Corrupt PNG");
            if (pal_img_n && !pal_len) return stbi__err("no PLTE","Corrupt PNG");
            if (scan == STBI__SCAN_header) { s->img_n = pal_img_n; return 1; }
            if ((int)(ioff + c.length) < (int)ioff) return 0;
            if (ioff + c.length > idata_limit) {
               stbi__uint32 idata_limit_old = idata_limit;
               stbi_uc *p;
               if (idata_limit == 0) idata_limit = c.length > 4096 ? c.length : 4096;
               while (ioff + c.length > idata_limit)
                  idata_limit *= 2;
               STBI_NOTUSED(idata_limit_old);
               p = (stbi_uc *) STBI_REALLOC_SIZED(z->idata, idata_limit_old, idata_limit); if (p == NULL) return stbi__err("outofmem", "Out of memory");
               z->idata = p;
            }
            if (!stbi__getn(s, z->idata+ioff,c.length)) return stbi__err("outofdata","Corrupt PNG");
            ioff += c.length;
            break;
         }

         case STBI__PNG_TYPE('I','E','N','D'): {
            stbi__uint32 raw_len, bpl;
            if (first) return stbi__err("first not IHDR", "Corrupt PNG");
            if (scan != STBI__SCAN_load) return 1;
            if (z->idata == NULL) return stbi__err("no IDAT","Corrupt PNG");
            // initial guess for decoded data size to avoid unnecessary reallocs
            bpl = (s->img_x * z->depth + 7) / 8; // bytes per line, per component
            raw_len = bpl * s->img_y * s->img_n /* pixels */ + s->img_y /* filter mode per row */;
            z->expanded = (stbi_uc *) stbi_zlib_decode_malloc_guesssize_headerflag((char *) z->idata, ioff, raw_len, (int *) &raw_len, !is_iphone);
            if (z->expanded == NULL) return 0; // zlib should set error
            STBI_FREE(z->idata); z->idata = NULL;
            if ((req_comp == s->img_n+1 && req_comp != 3 && !pal_img_n) || has_trans)
               s->img_out_n = s->img_n+1;
            else
               s->img_out_n = s->img_n;
            if (!stbi__create_png_image(z, z->expanded, raw_len, s->img_out_n, z->depth, color, interlace)) return 0;
            if (has_trans) {
               if (z->depth == 16) {
                  if (!stbi__compute_transparency16(z, tc16, s->img_out_n)) return 0;
               } else {
                  if (!stbi__compute_transparency(z, tc, s->img_out_n)) return 0;
               }
            }
            if (is_iphone && stbi__de_iphone_flag && s->img_out_n > 2)
               stbi__de_iphone(z);
            if (pal_img_n) {
               // pal_img_n == 3 or 4
               s->img_n = pal_img_n; // record the actual colors we had
               s->img_out_n = pal_img_n;
               if (req_comp >= 3) s->img_out_n = req_comp;
               if (!stbi__expand_png_palette(z, palette, pal_len, s->img_out_n))
                  return 0;
            } else if (has_trans) {
               // non-paletted image with tRNS -> source image has (constant) alpha
               ++s->img_n;
            }
            STBI_FREE(z->expanded); z->expanded = NULL;
            return 1;
         }

         default:
            // if critical, fail
            if (first) return stbi__err("first not IHDR", "Corrupt PNG");
            if ((c.type & (1 << 29)) == 0) {
               #ifndef STBI_NO_FAILURE_STRINGS
               // not threadsafe
               static char invalid_chunk[] = "XXXX PNG chunk not known";
               invalid_chunk[0] = STBI__BYTECAST(c.type >> 24);
               invalid_chunk[1] = STBI__BYTECAST(c.type >> 16);
               invalid_chunk[2] = STBI__BYTECAST(c.type >>  8);
               invalid_chunk[3] = STBI__BYTECAST(c.type >>  0);
               #endif
               return stbi__err(invalid_chunk, "PNG not supported: unknown PNG chunk type");
            }
            stbi__skip(s, c.length);
            break;
      }
      // end of PNG chunk, read and skip CRC
      stbi__get32be(s);
   }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $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 0x32dd5
testl %eax, %eax
je 0x33774
movl $0x1, %ebp
cmpl $0x1, %r12d
je 0x33776
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 0x31b23
movl %eax, %ebx
shll $0x10, %ebx
movq %r14, %rdi
callq 0x31b23
movl %eax, %ebp
leal (%rbx,%rbp), %r15d
movq %r14, %rdi
callq 0x31b23
movl %eax, %r13d
movl %eax, %r12d
shll $0x10, %r13d
movq %r14, %rdi
callq 0x31b23
orl %eax, %r13d
cmpl $0x49484451, %r13d      # imm = 0x49484451
jle 0x33065
cmpl $0x74524e53, %r13d      # imm = 0x74524E53
je 0x3310e
cmpl $0x504c5445, %r13d      # imm = 0x504C5445
movl 0x18(%rsp), %ecx
je 0x33200
cmpl $0x49484452, %r13d      # imm = 0x49484452
movq 0x28(%rsp), %rbp
jne 0x333d2
testl %ecx, %ecx
je 0x3378a
cmpl $0xd, %r15d
jne 0x33793
movq %r14, %rdi
callq 0x31b23
movl %eax, %ebx
shll $0x10, %ebx
movq %r14, %rdi
callq 0x31b23
orl %ebx, %eax
movl %eax, (%r14)
cmpl $0x1000001, %eax        # imm = 0x1000001
jae 0x3373a
movq %r14, %rdi
callq 0x31b23
movl %eax, %ebx
shll $0x10, %ebx
movq %r14, %rdi
callq 0x31b23
orl %ebx, %eax
movl %eax, 0x4(%r14)
cmpl $0x1000001, %eax        # imm = 0x1000001
jae 0x3373a
movq 0xb8(%r14), %rdx
movq 0xc0(%r14), %rax
cmpq %rax, %rdx
jae 0x3341b
leaq 0x1(%rdx), %rcx
movq %rcx, 0xb8(%r14)
movb (%rdx), %dl
movq 0x48(%rsp), %r15
movq 0x40(%rsp), %r13
jmp 0x33546
cmpl $0x43674249, %r13d      # imm = 0x43674249
je 0x333b7
cmpl $0x49444154, %r13d      # imm = 0x49444154
jne 0x333c1
cmpl $0x0, 0x18(%rsp)
movq 0x78(%rsp), %rcx
jne 0x33766
cmpb $0x0, 0xc(%rsp)
movq 0x38(%rsp), %rax
je 0x330a3
testl %eax, %eax
je 0x337a5
cmpl $0x2, 0x24(%rsp)
je 0x337d9
movq 0x10(%rsp), %rax
leal (%r15,%rax), %ebx
xorl %ebp, %ebp
cmpl %eax, %ebx
jl 0x33776
cmpl %ecx, %ebx
jbe 0x33455
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 0x330de
movq 0x50(%rsp), %r13
movq (%r13), %rdi
movq %rcx, 0x78(%rsp)
movl %ecx, %esi
callq 0x6660
testq %rax, %rax
je 0x33ce5
movq %rax, (%r13)
jmp 0x3345d
cmpl $0x0, 0x18(%rsp)
jne 0x33766
movq 0x50(%rsp), %rax
cmpq $0x0, (%rax)
jne 0x3379c
cmpb $0x0, 0xc(%rsp)
je 0x33480
cmpl $0x2, 0x24(%rsp)
movq 0x40(%rsp), %r13
je 0x3381d
movq 0x38(%rsp), %rax
testl %eax, %eax
je 0x3382f
cmpl %r15d, %eax
jb 0x337e4
movb $0x4, %al
movl %eax, 0xc(%rsp)
movl $0x0, 0x18(%rsp)
testl %r15d, %r15d
je 0x333f8
movq 0xb8(%r14), %rcx
movq 0xc0(%r14), %rax
addl %ebx, %ebp
xorl %ebx, %ebx
cmpq %rax, %rcx
jae 0x33199
leaq 0x1(%rcx), %rsi
movq %rsi, 0xb8(%r14)
movb (%rcx), %dl
movq %rsi, %rcx
jmp 0x331ec
cmpl $0x0, 0x30(%r14)
je 0x331c3
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r13, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x331c7
cltq
addq %r13, %rax
movb (%r13), %dl
movq 0x28(%rsp), %rcx
jmp 0x331de
xorl %edx, %edx
jmp 0x331ec
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 0x33182
jmp 0x333f8
testl %ecx, %ecx
jne 0x33766
cmpl $0x301, %r15d           # imm = 0x301
jae 0x33743
imull $0xaaab, %ebp, %eax     # imm = 0xAAAB
shrl $0x11, %eax
movq %rax, 0x38(%rsp)
leal (%rax,%rax,2), %eax
cmpl %r15d, %eax
jne 0x33743
movl $0x0, 0x18(%rsp)
cmpl $0x3, %ebp
jb 0x333f8
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 0x33276
leaq 0x1(%rcx), %rsi
movq %rsi, 0xb8(%r14)
movb (%rcx), %dl
movq %rsi, %rcx
jmp 0x332c2
cmpl $0x0, 0x30(%r14)
je 0x3329b
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r13, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x3329f
cltq
addq %r13, %rax
movb (%r13), %dl
jmp 0x332b1
xorl %edx, %edx
jmp 0x332c2
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 0x332e1
leaq 0x1(%rcx), %rsi
movq %rsi, 0xb8(%r14)
movb (%rcx), %dl
movq %rsi, %rcx
jmp 0x3332d
cmpl $0x0, 0x30(%r14)
je 0x33306
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r13, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x3330a
cltq
addq %r13, %rax
movb (%r13), %dl
jmp 0x3331c
xorl %edx, %edx
jmp 0x3332d
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 0x3334c
leaq 0x1(%rcx), %rsi
movq %rsi, 0xb8(%r14)
movb (%rcx), %dl
movq %rsi, %rcx
jmp 0x33398
cmpl $0x0, 0x30(%r14)
je 0x33371
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r13, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x33375
cltq
addq %r13, %rax
movb (%r13), %dl
jmp 0x33387
xorl %edx, %edx
jmp 0x33398
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 0x3325f
jmp 0x333f8
movl $0x1, 0x5c(%rsp)
jmp 0x333ed
cmpl $0x49454e44, %r13d      # imm = 0x49454E44
movl 0x18(%rsp), %ecx
je 0x3375e
testl %ecx, %ecx
jne 0x33766
movl $0x0, 0x18(%rsp)
btl $0xd, %r12d
jae 0x337ae
movq %r14, %rdi
movl %r15d, %esi
callq 0x31d5a
movq 0x10(%rsp), %rax
movl %eax, %ebx
movq %r14, %rdi
callq 0x31b23
movq %r14, %rdi
callq 0x31b23
movl %ebx, %eax
movq %rax, 0x10(%rsp)
jmp 0x32f60
cmpl $0x0, 0x30(%r14)
movq 0x48(%rsp), %r15
movq 0x40(%rsp), %r13
je 0x3383b
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r13, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x33523
cltq
addq %r13, %rax
movb (%r13), %dl
jmp 0x33535
movq 0x50(%rsp), %rax
movq (%rax), %rax
movl 0x10(%rsp), %esi
addq %rax, %rsi
movq %r14, %rdi
movl %r15d, %edx
callq 0x345e4
movl $0x0, 0x18(%rsp)
testl %eax, %eax
jne 0x333ff
jmp 0x337ed
movl 0x8(%r14), %eax
testb $0x1, %al
je 0x33ba3
leal (%rax,%rax), %ecx
cmpl %r15d, %ecx
jne 0x337e4
movq 0x48(%rsp), %r15
cmpl $0x10, 0x20(%r15)
jne 0x334cf
movb $0x1, %cl
movq %rcx, 0x68(%rsp)
testl %eax, %eax
jle 0x33507
xorl %ebx, %ebx
movq %r14, %rdi
callq 0x31b23
movw %ax, 0xb2(%rsp,%rbx,2)
incq %rbx
movslq 0x8(%r14), %rax
cmpq %rax, %rbx
jl 0x334b1
jmp 0x33507
movb $0x1, %cl
movq %rcx, 0x68(%rsp)
testl %eax, %eax
jle 0x33507
xorl %ebx, %ebx
leaq 0xa4dd(%rip), %r13      # 0x3d9c0
movq %r14, %rdi
callq 0x31b23
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 0x334e3
movl $0x0, 0x18(%rsp)
movq 0x10(%rsp), %rax
movl %eax, %ebx
movl $0x0, 0xc(%rsp)
jmp 0x333ff
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 0x33843
movl $0x10116, %esi          # imm = 0x10116
btl %edx, %esi
jae 0x33843
cmpq %rax, %rcx
jae 0x3357b
leaq 0x1(%rcx), %rdx
movq %rdx, 0xb8(%r14)
movb (%rcx), %bl
movq %rdx, %rcx
jmp 0x335ca
cmpl $0x0, 0x30(%r14)
je 0x335a0
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r13, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x335a7
cltq
addq %r13, %rax
movb (%r13), %bl
jmp 0x335b9
xorl %ebx, %ebx
xorl %r15d, %r15d
jmp 0x335fd
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 0x33755
cmpb $0x3, %bl
jne 0x335f0
cmpl $0x10, 0x20(%r15)
je 0x33755
movl $0x3, %r15d
movb $0x3, %bl
movb $0x3, %bpl
jmp 0x33601
testb $0x1, %bl
jne 0x33755
movzbl %bl, %r15d
movl 0xc(%rsp), %ebp
cmpq %rax, %rcx
jae 0x33615
leaq 0x1(%rcx), %rax
movq %rax, 0xb8(%r14)
movb (%rcx), %al
jmp 0x33665
cmpl $0x0, 0x30(%r14)
je 0x3366d
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r13, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x33640
movslq %eax, %rcx
addq %r13, %rcx
movb (%r13), %al
movq 0x28(%rsp), %rdx
jmp 0x33657
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 0x33811
movq %r14, %rdi
callq 0x31aa8
testb %al, %al
jne 0x337f9
movq %r14, %rdi
callq 0x31aa8
cmpb $0x2, %al
jae 0x33805
movl (%r14), %esi
testl %esi, %esi
je 0x3374c
movl 0x4(%r14), %ecx
testl %ecx, %ecx
je 0x3374c
movzbl %al, %r8d
testb %bpl, %bpl
movq %r15, 0x90(%rsp)
movq %r8, 0x60(%rsp)
je 0x336eb
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 0x333ff
jmp 0x3373a
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 0x3373a
movl $0x0, 0x18(%rsp)
movq 0x10(%rsp), %rax
movl %eax, %ebx
movl $0x0, 0xc(%rsp)
cmpl $0x2, 0x24(%rsp)
jne 0x333ff
jmp 0x33825
leaq 0xc241(%rip), %rax      # 0x3f982
jmp 0x3376d
leaq 0xc46e(%rip), %rax      # 0x3fbb8
jmp 0x3376d
leaq 0xc448(%rip), %rax      # 0x3fb9b
jmp 0x3376d
leaq 0xc3fe(%rip), %rax      # 0x3fb5a
jmp 0x3376d
testl %ecx, %ecx
je 0x3384f
leaq 0xc43c(%rip), %rax      # 0x3fba9
movq %rax, 0x1bd54(%rip)     # 0x4f4c8
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 0xc39a(%rip), %rax      # 0x3fb2b
jmp 0x3376d
leaq 0xc39f(%rip), %rax      # 0x3fb39
jmp 0x3376d
leaq 0xc422(%rip), %rax      # 0x3fbc5
jmp 0x3376d
leaq 0xc457(%rip), %rax      # 0x3fc03
jmp 0x3376d
movl %r12d, %edx
movb %dh, 0x1bc59(%rip)      # 0x4f410
leaq 0x1bc52(%rip), %rcx     # 0x4f410
movb %dl, 0x1bc4d(%rip)      # 0x4f411
movb %ah, 0x1bc48(%rip)      # 0x4f412
movb %al, 0x1bc43(%rip)      # 0x4f413
movq %rcx, 0x1bcf1(%rip)     # 0x4f4c8
jmp 0x33774
movzbl 0xc(%rsp), %eax
movl %eax, 0x8(%r14)
jmp 0x33825
leaq 0xc3fb(%rip), %rax      # 0x3fbe6
jmp 0x3376d
leaq 0xc417(%rip), %rax      # 0x3fc0b
jmp 0x3376d
leaq 0xc374(%rip), %rax      # 0x3fb74
jmp 0x3376d
leaq 0xc37a(%rip), %rax      # 0x3fb86
jmp 0x3376d
leaq 0xc34c(%rip), %rax      # 0x3fb64
jmp 0x3376d
movl $0x4, 0x8(%r14)
movl $0x1, %ebp
jmp 0x33776
leaq 0xc39f(%rip), %rax      # 0x3fbd5
jmp 0x3376d
movl $0x0, 0x20(%r15)
leaq 0xc2fc(%rip), %rax      # 0x3fb46
jmp 0x3376d
movl $0x1, %ebp
cmpl $0x0, 0x24(%rsp)
jne 0x33776
movq 0x50(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x33baf
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 0x254d2
movq %rax, 0x10(%r15)
xorl %ebp, %ebp
testq %rax, %rax
je 0x33776
movq 0x8(%r15), %rdi
callq 0x6490
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 0x33bbb
xorl %ebp, %ebp
movl %r8d, %edi
movl %r9d, %esi
movl %ebx, %edx
xorl %ecx, %ecx
callq 0x31ec4
movq %rax, 0x80(%rsp)
movslq %ebx, %rax
movq %rax, 0x50(%rsp)
leaq 0xa068(%rip), %rax      # 0x3d9d0
leaq 0xa0a1(%rip), %r8       # 0x3da10
leaq 0xa07a(%rip), %r10      # 0x3d9f0
leaq 0xa0b3(%rip), %r11      # 0x3da30
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 0x33b7b
cmpl %ecx, %r13d
ja 0x33b7b
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 0x3489f
addq $0x10, %rsp
testl %eax, %eax
je 0x33c19
movq %rbp, 0xb8(%rsp)
movl %r12d, 0x9c(%rsp)
testl %r15d, %r15d
jle 0x33b1e
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 0x33afc
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 0x6330
movq %r13, %rsi
incq %rbp
addq %r12, %rbx
cmpq %r13, %rbp
jl 0x33ace
movq 0x28(%rsp), %rcx
incq %rcx
movl 0x24(%rsp), %r13d
addl %r13d, 0x38(%rsp)
movq %rcx, 0x28(%rsp)
cmpq 0x78(%rsp), %rcx
jb 0x33a95
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 0x6490
movl %ebx, %eax
addq %rax, 0x88(%rsp)
movl 0x9c(%rsp), %r12d
subl %ebx, %r12d
movq 0xb8(%rsp), %rbp
leaq 0x9e6c(%rip), %rax      # 0x3d9d0
leaq 0x9ea5(%rip), %r8       # 0x3da10
leaq 0x9e7e(%rip), %r10      # 0x3d9f0
leaq 0x9eb7(%rip), %r11      # 0x3da30
jmp 0x33b88
movq %r12, %r15
movl %r9d, %r12d
leaq 0x9e48(%rip), %rax      # 0x3d9d0
incq %rbp
cmpq $0x7, %rbp
jne 0x3397d
movq 0x80(%rsp), %rax
movq %rax, 0x18(%r15)
jmp 0x33bec
leaq 0xc049(%rip), %rax      # 0x3fbf3
jmp 0x3376d
leaq 0xc05f(%rip), %rax      # 0x3fc15
jmp 0x3376d
movq %r15, %rdi
movq 0x88(%rsp), %rsi
movl %r12d, %edx
movl 0x70(%rsp), %ecx
pushq 0x90(%rsp)
pushq 0xb0(%rsp)
callq 0x3489f
addq $0x10, %rsp
testl %eax, %eax
je 0x33776
cmpb $0x0, 0x68(%rsp)
je 0x33c35
cmpl $0x10, 0x20(%r15)
movl 0xc(%r14), %r8d
movq (%r15), %rax
movq 0x18(%r15), %rdx
movl (%rax), %edi
movl 0x4(%rax), %esi
jne 0x33c2b
leaq 0xb2(%rsp), %rcx
callq 0x34686
jmp 0x33c35
movq 0x80(%rsp), %rdi
callq 0x6490
jmp 0x33774
leaq 0x34(%rsp), %rcx
callq 0x34713
cmpl $0x0, 0x5c(%rsp)
je 0x33c58
cmpl $0x0, 0x1b895(%rip)     # 0x4f4d8
je 0x33c58
cmpl $0x3, 0xc(%r14)
jl 0x33c58
movq (%r15), %rdi
movq 0x18(%r15), %rsi
callq 0x3479a
movl 0xc(%rsp), %eax
testb %al, %al
je 0x33cf8
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 0x31e0d
testq %rax, %rax
je 0x33ce5
movq %rax, %r15
cmpl $0x3, %r12d
jne 0x33d05
testl %ebx, %ebx
je 0x33d25
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 0x33caf
jmp 0x33d25
leaq 0xbca0(%rip), %rax      # 0x3f98c
movq %rax, 0x1b7d5(%rip)     # 0x4f4c8
jmp 0x33776
cmpb $0x0, 0x68(%rsp)
je 0x33d39
incl 0x8(%r14)
jmp 0x33d39
testl %ebx, %ebx
je 0x33d25
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 0x33d0d
movq %r14, %rdi
callq 0x6490
movq 0x48(%rsp), %rax
movq %r15, 0x18(%rax)
movq %rax, %r15
movq 0x10(%r15), %rdi
callq 0x6490
movq $0x0, 0x10(%r15)
jmp 0x33825