// File: /workspace/github_c_makefile_star2_O0/patriciogonzalezvivo[P]tprint/include/std/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];
   stbi__uint32 ioff=0, idata_limit=0, i, pal_len=0;
   int first=1,k,interlace=0, color=0, depth=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?)");
            depth = stbi__get8(s);  if (depth != 1 && depth != 2 && depth != 4 && depth != 8)  return stbi__err("1/2/4/8-bit only","PNG not supported: 1/2/4/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 == 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;
               for (k=0; k < s->img_n; ++k)
                  tc[k] = (stbi_uc) (stbi__get16be(s) & 255) * stbi__depth_scale_table[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_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 *) STBI_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 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 * 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, depth, color, 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;
            }
            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:
subq $0x488, %rsp            # imm = 0x488
movq %rdi, 0x478(%rsp)
movl %esi, 0x474(%rsp)
movl %edx, 0x470(%rsp)
movb $0x0, 0x6f(%rsp)
movb $0x0, 0x6e(%rsp)
movl $0x0, 0x64(%rsp)
movl $0x0, 0x60(%rsp)
movl $0x0, 0x58(%rsp)
movl $0x1, 0x54(%rsp)
movl $0x0, 0x4c(%rsp)
movl $0x0, 0x48(%rsp)
movl $0x0, 0x44(%rsp)
movl $0x0, 0x40(%rsp)
movq 0x478(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x478(%rsp), %rax
movq $0x0, 0x10(%rax)
movq 0x478(%rsp), %rax
movq $0x0, 0x8(%rax)
movq 0x478(%rsp), %rax
movq $0x0, 0x18(%rax)
movq 0x38(%rsp), %rdi
callq 0x24d10
cmpl $0x0, %eax
jne 0x24fe6
movl $0x0, 0x484(%rsp)
jmp 0x25b13
cmpl $0x1, 0x474(%rsp)
jne 0x25000
movl $0x1, 0x484(%rsp)
jmp 0x25b13
jmp 0x25002
movq 0x38(%rsp), %rdi
callq 0x261a0
movq %rax, 0x30(%rsp)
movl 0x34(%rsp), %eax
movl %eax, 0x14(%rsp)
subl $0x43674249, %eax       # imm = 0x43674249
je 0x25076
jmp 0x25022
movl 0x14(%rsp), %eax
subl $0x49444154, %eax       # imm = 0x49444154
je 0x25637
jmp 0x25033
movl 0x14(%rsp), %eax
subl $0x49454e44, %eax       # imm = 0x49454E44
je 0x257b9
jmp 0x25044
movl 0x14(%rsp), %eax
subl $0x49484452, %eax       # imm = 0x49484452
je 0x25091
jmp 0x25051
movl 0x14(%rsp), %eax
subl $0x504c5445, %eax       # imm = 0x504C5445
je 0x2538b
jmp 0x25062
movl 0x14(%rsp), %eax
subl $0x74524e53, %eax       # imm = 0x74524E53
je 0x25489
jmp 0x25a6c
movl $0x1, 0x40(%rsp)
movq 0x38(%rsp), %rdi
movl 0x30(%rsp), %esi
callq 0x21ab0
jmp 0x25b04
cmpl $0x0, 0x54(%rsp)
jne 0x250b0
leaq 0x8c53(%rip), %rdi      # 0x2dcf2
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
movl $0x0, 0x54(%rsp)
cmpl $0xd, 0x30(%rsp)
je 0x250d7
leaq 0x8c3a(%rip), %rdi      # 0x2dd00
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
movq 0x38(%rsp), %rdi
callq 0x261d0
movl %eax, %ecx
movq 0x38(%rsp), %rax
movl %ecx, (%rax)
movq 0x38(%rsp), %rax
cmpl $0x1000000, (%rax)      # imm = 0x1000000
jbe 0x2510f
leaq 0x8a3b(%rip), %rdi      # 0x2db39
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
movq 0x38(%rsp), %rdi
callq 0x261d0
movl %eax, %ecx
movq 0x38(%rsp), %rax
movl %ecx, 0x4(%rax)
movq 0x38(%rsp), %rax
cmpl $0x1000000, 0x4(%rax)   # imm = 0x1000000
jbe 0x25149
leaq 0x8a01(%rip), %rdi      # 0x2db39
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
movq 0x38(%rsp), %rdi
callq 0x21530
movzbl %al, %eax
movl %eax, 0x44(%rsp)
cmpl $0x1, 0x44(%rsp)
je 0x2518e
cmpl $0x2, 0x44(%rsp)
je 0x2518e
cmpl $0x4, 0x44(%rsp)
je 0x2518e
cmpl $0x8, 0x44(%rsp)
je 0x2518e
leaq 0x8b90(%rip), %rdi      # 0x2dd0d
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
movq 0x38(%rsp), %rdi
callq 0x21530
movzbl %al, %eax
movl %eax, 0x48(%rsp)
cmpl $0x6, 0x48(%rsp)
jle 0x251be
leaq 0x8b71(%rip), %rdi      # 0x2dd1e
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
cmpl $0x3, 0x48(%rsp)
jne 0x251cc
movb $0x3, 0x6f(%rsp)
jmp 0x251f2
movl 0x48(%rsp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x251f0
leaq 0x8b3f(%rip), %rdi      # 0x2dd1e
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
jmp 0x251f2
movq 0x38(%rsp), %rdi
callq 0x21530
movzbl %al, %eax
movl %eax, 0x2c(%rsp)
cmpl $0x0, 0x2c(%rsp)
je 0x25222
leaq 0x8b17(%rip), %rdi      # 0x2dd28
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
movq 0x38(%rsp), %rdi
callq 0x21530
movzbl %al, %eax
movl %eax, 0x28(%rsp)
cmpl $0x0, 0x28(%rsp)
je 0x25252
leaq 0x8af7(%rip), %rdi      # 0x2dd38
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
movq 0x38(%rsp), %rdi
callq 0x21530
movzbl %al, %eax
movl %eax, 0x4c(%rsp)
cmpl $0x1, 0x4c(%rsp)
jle 0x25282
leaq 0x8ad9(%rip), %rdi      # 0x2dd4a
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
movq 0x38(%rsp), %rax
cmpl $0x0, (%rax)
je 0x25297
movq 0x38(%rsp), %rax
cmpl $0x0, 0x4(%rax)
jne 0x252af
leaq 0x8ac1(%rip), %rdi      # 0x2dd5f
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
cmpb $0x0, 0x6f(%rsp)
jne 0x25345
movl 0x48(%rsp), %edx
andl $0x2, %edx
movl $0x1, %ecx
movl $0x3, %eax
cmpl $0x0, %edx
cmovnel %eax, %ecx
movl 0x48(%rsp), %esi
andl $0x4, %esi
xorl %eax, %eax
movl $0x1, %edx
cmpl $0x0, %esi
cmovnel %edx, %eax
addl %eax, %ecx
movq 0x38(%rsp), %rax
movl %ecx, 0x8(%rax)
movq 0x38(%rsp), %rcx
movl $0x40000000, %eax       # imm = 0x40000000
xorl %edx, %edx
divl (%rcx)
movq 0x38(%rsp), %rcx
xorl %edx, %edx
divl 0x8(%rcx)
movq 0x38(%rsp), %rcx
cmpl 0x4(%rcx), %eax
jae 0x25329
leaq 0x8821(%rip), %rdi      # 0x2db39
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
cmpl $0x2, 0x474(%rsp)
jne 0x25343
movl $0x1, 0x484(%rsp)
jmp 0x25b13
jmp 0x25386
movq 0x38(%rsp), %rax
movl $0x1, 0x8(%rax)
movq 0x38(%rsp), %rcx
movl $0x40000000, %eax       # imm = 0x40000000
xorl %edx, %edx
divl (%rcx)
shrl $0x2, %eax
movq 0x38(%rsp), %rcx
cmpl 0x4(%rcx), %eax
jae 0x25384
leaq 0x87c6(%rip), %rdi      # 0x2db39
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
jmp 0x25386
jmp 0x25b04
cmpl $0x0, 0x54(%rsp)
je 0x253aa
leaq 0x89d4(%rip), %rdi      # 0x2dd6d
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
cmpl $0x300, 0x30(%rsp)      # imm = 0x300
jbe 0x253cc
leaq 0x89c1(%rip), %rdi      # 0x2dd7c
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
movl 0x30(%rsp), %eax
movl $0x3, %ecx
xorl %edx, %edx
divl %ecx
movl %eax, 0x58(%rsp)
imull $0x3, 0x58(%rsp), %eax
cmpl 0x30(%rsp), %eax
je 0x25400
leaq 0x898d(%rip), %rdi      # 0x2dd7c
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
movl $0x0, 0x5c(%rsp)
movl 0x5c(%rsp), %eax
cmpl 0x58(%rsp), %eax
jae 0x25484
movq 0x38(%rsp), %rdi
callq 0x21530
movb %al, %cl
movl 0x5c(%rsp), %eax
shll $0x2, %eax
addl $0x0, %eax
movl %eax, %eax
movb %cl, 0x70(%rsp,%rax)
movq 0x38(%rsp), %rdi
callq 0x21530
movb %al, %cl
movl 0x5c(%rsp), %eax
shll $0x2, %eax
addl $0x1, %eax
movl %eax, %eax
movb %cl, 0x70(%rsp,%rax)
movq 0x38(%rsp), %rdi
callq 0x21530
movb %al, %cl
movl 0x5c(%rsp), %eax
shll $0x2, %eax
addl $0x2, %eax
movl %eax, %eax
movb %cl, 0x70(%rsp,%rax)
movl 0x5c(%rsp), %eax
shll $0x2, %eax
addl $0x3, %eax
movl %eax, %eax
movb $-0x1, 0x70(%rsp,%rax)
movl 0x5c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x5c(%rsp)
jmp 0x25408
jmp 0x25b04
cmpl $0x0, 0x54(%rsp)
je 0x254a8
leaq 0x88d6(%rip), %rdi      # 0x2dd6d
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
movq 0x478(%rsp), %rax
cmpq $0x0, 0x8(%rax)
je 0x254cf
leaq 0x88cb(%rip), %rdi      # 0x2dd89
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
cmpb $0x0, 0x6f(%rsp)
je 0x25586
cmpl $0x2, 0x474(%rsp)
jne 0x25500
movq 0x38(%rsp), %rax
movl $0x4, 0x8(%rax)
movl $0x1, 0x484(%rsp)
jmp 0x25b13
cmpl $0x0, 0x58(%rsp)
jne 0x2551f
leaq 0x888b(%rip), %rdi      # 0x2dd99
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
movl 0x30(%rsp), %eax
cmpl 0x58(%rsp), %eax
jbe 0x25541
leaq 0x887a(%rip), %rdi      # 0x2ddaa
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
movb $0x4, 0x6f(%rsp)
movl $0x0, 0x5c(%rsp)
movl 0x5c(%rsp), %eax
cmpl 0x30(%rsp), %eax
jae 0x25581
movq 0x38(%rsp), %rdi
callq 0x21530
movb %al, %cl
movl 0x5c(%rsp), %eax
shll $0x2, %eax
addl $0x3, %eax
movl %eax, %eax
movb %cl, 0x70(%rsp,%rax)
movl 0x5c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x5c(%rsp)
jmp 0x2554e
jmp 0x25632
movq 0x38(%rsp), %rax
movl 0x8(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x255ae
leaq 0x881a(%rip), %rdi      # 0x2ddb7
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
movl 0x30(%rsp), %eax
movq 0x38(%rsp), %rcx
movl 0x8(%rcx), %ecx
shll %ecx
cmpl %ecx, %eax
je 0x255d8
leaq 0x87e3(%rip), %rdi      # 0x2ddaa
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
movb $0x1, 0x6e(%rsp)
movl $0x0, 0x50(%rsp)
movl 0x50(%rsp), %eax
movq 0x38(%rsp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x25630
movq 0x38(%rsp), %rdi
callq 0x21680
andl $0xff, %eax
movzbl %al, %eax
movslq 0x44(%rsp), %rdx
leaq 0x10efb(%rip), %rcx     # 0x3650c
movzbl (%rcx,%rdx), %ecx
imull %ecx, %eax
movb %al, %cl
movslq 0x50(%rsp), %rax
movb %cl, 0x6b(%rsp,%rax)
movl 0x50(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x50(%rsp)
jmp 0x255e5
jmp 0x25632
jmp 0x25b04
cmpl $0x0, 0x54(%rsp)
je 0x25656
leaq 0x8728(%rip), %rdi      # 0x2dd6d
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
cmpb $0x0, 0x6f(%rsp)
je 0x2567c
cmpl $0x0, 0x58(%rsp)
jne 0x2567c
leaq 0x875c(%rip), %rdi      # 0x2ddc7
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
cmpl $0x2, 0x474(%rsp)
jne 0x256a3
movzbl 0x6f(%rsp), %ecx
movq 0x38(%rsp), %rax
movl %ecx, 0x8(%rax)
movl $0x1, 0x484(%rsp)
jmp 0x25b13
movl 0x64(%rsp), %eax
addl 0x30(%rsp), %eax
cmpl 0x64(%rsp), %eax
jge 0x256c1
movl $0x0, 0x484(%rsp)
jmp 0x25b13
movl 0x64(%rsp), %eax
addl 0x30(%rsp), %eax
cmpl 0x60(%rsp), %eax
jbe 0x2576a
cmpl $0x0, 0x60(%rsp)
jne 0x25701
cmpl $0x1000, 0x30(%rsp)     # imm = 0x1000
jbe 0x256ee
movl 0x30(%rsp), %eax
movl %eax, 0x10(%rsp)
jmp 0x256f9
movl $0x1000, %eax           # imm = 0x1000
movl %eax, 0x10(%rsp)
jmp 0x256f9
movl 0x10(%rsp), %eax
movl %eax, 0x60(%rsp)
jmp 0x25703
movl 0x64(%rsp), %eax
addl 0x30(%rsp), %eax
cmpl 0x60(%rsp), %eax
jbe 0x2571d
movl 0x60(%rsp), %eax
shll %eax
movl %eax, 0x60(%rsp)
jmp 0x25703
movq 0x478(%rsp), %rax
movq 0x8(%rax), %rdi
movl 0x60(%rsp), %eax
movl %eax, %esi
callq 0xd6e0
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0x25759
leaq 0x83fb(%rip), %rdi      # 0x2db43
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
movq 0x20(%rsp), %rcx
movq 0x478(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x38(%rsp), %rdi
movq 0x478(%rsp), %rax
movq 0x8(%rax), %rsi
movl 0x64(%rsp), %eax
addq %rax, %rsi
movl 0x30(%rsp), %edx
callq 0x26210
cmpl $0x0, %eax
jne 0x257a8
leaq 0x8638(%rip), %rdi      # 0x2ddcf
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
movl 0x30(%rsp), %eax
addl 0x64(%rsp), %eax
movl %eax, 0x64(%rsp)
jmp 0x25b04
cmpl $0x0, 0x54(%rsp)
je 0x257d8
leaq 0x85a6(%rip), %rdi      # 0x2dd6d
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
cmpl $0x0, 0x474(%rsp)
je 0x257f2
movl $0x1, 0x484(%rsp)
jmp 0x25b13
movq 0x478(%rsp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x25819
leaq 0x85d1(%rip), %rdi      # 0x2ddd9
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
movq 0x38(%rsp), %rax
movl (%rax), %eax
imull 0x44(%rsp), %eax
addl $0x7, %eax
shrl $0x3, %eax
movl %eax, 0x18(%rsp)
movl 0x18(%rsp), %eax
movq 0x38(%rsp), %rcx
imull 0x4(%rcx), %eax
movq 0x38(%rsp), %rcx
imull 0x8(%rcx), %eax
movq 0x38(%rsp), %rcx
addl 0x4(%rcx), %eax
movl %eax, 0x1c(%rsp)
movq 0x478(%rsp), %rax
movq 0x8(%rax), %rdi
movl 0x64(%rsp), %esi
movl 0x1c(%rsp), %edx
cmpl $0x0, 0x40(%rsp)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %r8d
leaq 0x1c(%rsp), %rcx
callq 0x1ad30
movq %rax, %rcx
movq 0x478(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x478(%rsp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x258ad
movl $0x0, 0x484(%rsp)
jmp 0x25b13
movq 0x478(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0xd4e0
movq 0x478(%rsp), %rax
movq $0x0, 0x8(%rax)
movl 0x470(%rsp), %eax
movq 0x38(%rsp), %rcx
movl 0x8(%rcx), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
jne 0x258f5
cmpl $0x3, 0x470(%rsp)
je 0x258f5
cmpb $0x0, 0x6f(%rsp)
je 0x258fc
cmpb $0x0, 0x6e(%rsp)
je 0x25911
movq 0x38(%rsp), %rax
movl 0x8(%rax), %ecx
addl $0x1, %ecx
movq 0x38(%rsp), %rax
movl %ecx, 0xc(%rax)
jmp 0x25921
movq 0x38(%rsp), %rax
movl 0x8(%rax), %ecx
movq 0x38(%rsp), %rax
movl %ecx, 0xc(%rax)
movq 0x478(%rsp), %rdi
movq 0x478(%rsp), %rax
movq 0x10(%rax), %rsi
movl 0x1c(%rsp), %edx
movq 0x38(%rsp), %rax
movl 0xc(%rax), %ecx
movl 0x44(%rsp), %r8d
movl 0x48(%rsp), %r9d
movl 0x4c(%rsp), %eax
movl %eax, (%rsp)
callq 0x26360
cmpl $0x0, %eax
jne 0x2596c
movl $0x0, 0x484(%rsp)
jmp 0x25b13
cmpb $0x0, 0x6e(%rsp)
je 0x259a4
movq 0x478(%rsp), %rdi
leaq 0x6b(%rsp), %rsi
movq 0x38(%rsp), %rax
movl 0xc(%rax), %edx
callq 0x267d0
cmpl $0x0, %eax
jne 0x259a2
movl $0x0, 0x484(%rsp)
jmp 0x25b13
jmp 0x259a4
cmpl $0x0, 0x40(%rsp)
je 0x259cc
cmpl $0x0, 0x10e06(%rip)     # 0x367b8
je 0x259cc
movq 0x38(%rsp), %rax
cmpl $0x2, 0xc(%rax)
jle 0x259cc
movq 0x478(%rsp), %rdi
callq 0x26940
cmpb $0x0, 0x6f(%rsp)
je 0x25a3b
movzbl 0x6f(%rsp), %ecx
movq 0x38(%rsp), %rax
movl %ecx, 0x8(%rax)
movzbl 0x6f(%rsp), %ecx
movq 0x38(%rsp), %rax
movl %ecx, 0xc(%rax)
cmpl $0x3, 0x470(%rsp)
jl 0x25a06
movl 0x470(%rsp), %ecx
movq 0x38(%rsp), %rax
movl %ecx, 0xc(%rax)
movq 0x478(%rsp), %rdi
leaq 0x70(%rsp), %rsi
movl 0x58(%rsp), %edx
movq 0x38(%rsp), %rax
movl 0xc(%rax), %ecx
callq 0x26b40
cmpl $0x0, %eax
jne 0x25a39
movl $0x0, 0x484(%rsp)
jmp 0x25b13
jmp 0x25a3b
movq 0x478(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0xd4e0
movq 0x478(%rsp), %rax
movq $0x0, 0x10(%rax)
movl $0x1, 0x484(%rsp)
jmp 0x25b13
cmpl $0x0, 0x54(%rsp)
je 0x25a8b
leaq 0x82f3(%rip), %rdi      # 0x2dd6d
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
movl 0x34(%rsp), %eax
andl $0x20000000, %eax       # imm = 0x20000000
cmpl $0x0, %eax
jne 0x25af6
movl 0x34(%rsp), %eax
shrl $0x18, %eax
andl $0xff, %eax
movb %al, 0x10a75(%rip)      # 0x36520
movl 0x34(%rsp), %eax
shrl $0x10, %eax
andl $0xff, %eax
movb %al, 0x10a64(%rip)      # 0x36521
movl 0x34(%rsp), %eax
shrl $0x8, %eax
andl $0xff, %eax
movb %al, 0x10a53(%rip)      # 0x36522
movl 0x34(%rsp), %eax
shrl $0x0, %eax
andl $0xff, %eax
movb %al, 0x10a42(%rip)      # 0x36523
leaq 0x10a38(%rip), %rdi     # 0x36520
callq 0x1a190
movl %eax, 0x484(%rsp)
jmp 0x25b13
movq 0x38(%rsp), %rdi
movl 0x30(%rsp), %esi
callq 0x21ab0
movq 0x38(%rsp), %rdi
callq 0x261d0
jmp 0x25002
movl 0x484(%rsp), %eax
addq $0x488, %rsp            # imm = 0x488
retq
nopw %cs:(%rax,%rax)