// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x480, %rsp            # imm = 0x480
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movb $0x0, -0x421(%rbp)
movb $0x0, -0x422(%rbp)
movl $0x0, -0x42c(%rbp)
movl $0x0, -0x430(%rbp)
movl $0x0, -0x438(%rbp)
movl $0x1, -0x43c(%rbp)
movl $0x0, -0x444(%rbp)
movl $0x0, -0x448(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x450(%rbp)
movq -0x10(%rbp), %rax
movq $0x0, 0x10(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x8(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x18(%rax)
movq -0x450(%rbp), %rdi
callq 0x418530
cmpl $0x0, %eax
jne 0x4187ce
movl $0x0, -0x4(%rbp)
jmp 0x4192c8
cmpl $0x1, -0x14(%rbp)
jne 0x4187e0
movl $0x1, -0x4(%rbp)
jmp 0x4192c8
jmp 0x4187e2
movq -0x450(%rbp), %rdi
callq 0x419870
movq %rax, -0x458(%rbp)
movl -0x454(%rbp), %eax
movl %eax, -0x478(%rbp)
subl $0x43674249, %eax       # imm = 0x43674249
je 0x418868
jmp 0x41880a
movl -0x478(%rbp), %eax
subl $0x49444154, %eax       # imm = 0x49444154
je 0x418e55
jmp 0x41881d
movl -0x478(%rbp), %eax
subl $0x49454e44, %eax       # imm = 0x49454E44
je 0x418fd4
jmp 0x418830
movl -0x478(%rbp), %eax
subl $0x49484452, %eax       # imm = 0x49484452
je 0x418889
jmp 0x41883f
movl -0x478(%rbp), %eax
subl $0x504c5445, %eax       # imm = 0x504C5445
je 0x418b80
jmp 0x418852
movl -0x478(%rbp), %eax
subl $0x74524e53, %eax       # imm = 0x74524E53
je 0x418ca9
jmp 0x419217
movl $0x1, -0x448(%rbp)
movq -0x450(%rbp), %rdi
movl -0x458(%rbp), %esi
callq 0x415d20
jmp 0x4192b7
cmpl $0x0, -0x43c(%rbp)
jne 0x4188a6
leaq 0xccd63(%rip), %rdi     # 0x4e55fc
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
movl $0x0, -0x43c(%rbp)
cmpl $0xd, -0x458(%rbp)
je 0x4188cd
leaq 0xccd4a(%rip), %rdi     # 0x4e560a
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
movq -0x450(%rbp), %rdi
callq 0x4198a0
movl %eax, %ecx
movq -0x450(%rbp), %rax
movl %ecx, (%rax)
movq -0x450(%rbp), %rax
cmpl $0x1000000, (%rax)      # imm = 0x1000000
jbe 0x418907
leaq 0xd6a85(%rip), %rdi     # 0x4ef37f
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
movq -0x450(%rbp), %rdi
callq 0x4198a0
movl %eax, %ecx
movq -0x450(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x450(%rbp), %rax
cmpl $0x1000000, 0x4(%rax)   # imm = 0x1000000
jbe 0x418943
leaq 0xd6a49(%rip), %rdi     # 0x4ef37f
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
movq -0x450(%rbp), %rdi
callq 0x415960
movzbl %al, %eax
movl %eax, -0x45c(%rbp)
cmpl $0x8, -0x45c(%rbp)
je 0x418975
leaq 0xcccaf(%rip), %rdi     # 0x4e5617
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
movq -0x450(%rbp), %rdi
callq 0x415960
movzbl %al, %eax
movl %eax, -0x460(%rbp)
cmpl $0x6, -0x460(%rbp)
jle 0x4189a7
leaq 0xccc87(%rip), %rdi     # 0x4e5621
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
cmpl $0x3, -0x460(%rbp)
jne 0x4189b9
movb $0x3, -0x421(%rbp)
jmp 0x4189dd
movl -0x460(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x4189db
leaq 0xccc53(%rip), %rdi     # 0x4e5621
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
jmp 0x4189dd
movq -0x450(%rbp), %rdi
callq 0x415960
movzbl %al, %eax
movl %eax, -0x464(%rbp)
cmpl $0x0, -0x464(%rbp)
je 0x418a0f
leaq 0xccc29(%rip), %rdi     # 0x4e562b
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
movq -0x450(%rbp), %rdi
callq 0x415960
movzbl %al, %eax
movl %eax, -0x468(%rbp)
cmpl $0x0, -0x468(%rbp)
je 0x418a41
leaq 0xccc07(%rip), %rdi     # 0x4e563b
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
movq -0x450(%rbp), %rdi
callq 0x415960
movzbl %al, %eax
movl %eax, -0x444(%rbp)
cmpl $0x1, -0x444(%rbp)
jle 0x418a73
leaq 0xccbe7(%rip), %rdi     # 0x4e564d
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
movq -0x450(%rbp), %rax
cmpl $0x0, (%rax)
je 0x418a8c
movq -0x450(%rbp), %rax
cmpl $0x0, 0x4(%rax)
jne 0x418aa0
leaq 0xccbcf(%rip), %rdi     # 0x4e5662
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
cmpb $0x0, -0x421(%rbp)
jne 0x418b38
movl -0x460(%rbp), %edx
andl $0x2, %edx
movl $0x1, %ecx
movl $0x3, %eax
cmpl $0x0, %edx
cmovnel %eax, %ecx
movl -0x460(%rbp), %esi
andl $0x4, %esi
xorl %eax, %eax
movl $0x1, %edx
cmpl $0x0, %esi
cmovnel %edx, %eax
addl %eax, %ecx
movq -0x450(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x450(%rbp), %rcx
movl $0x40000000, %eax       # imm = 0x40000000
xorl %edx, %edx
divl (%rcx)
movq -0x450(%rbp), %rcx
xorl %edx, %edx
divl 0x8(%rcx)
movq -0x450(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jae 0x418b24
leaq 0xd6868(%rip), %rdi     # 0x4ef37f
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
cmpl $0x2, -0x14(%rbp)
jne 0x418b36
movl $0x1, -0x4(%rbp)
jmp 0x4192c8
jmp 0x418b7b
movq -0x450(%rbp), %rax
movl $0x1, 0x8(%rax)
movq -0x450(%rbp), %rcx
movl $0x40000000, %eax       # imm = 0x40000000
xorl %edx, %edx
divl (%rcx)
shrl $0x2, %eax
movq -0x450(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jae 0x418b79
leaq 0xd6813(%rip), %rdi     # 0x4ef37f
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
jmp 0x418b7b
jmp 0x4192b7
cmpl $0x0, -0x43c(%rbp)
je 0x418b9d
leaq 0xccae0(%rip), %rdi     # 0x4e5670
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
cmpl $0x300, -0x458(%rbp)    # imm = 0x300
jbe 0x418bbd
leaq 0xccacf(%rip), %rdi     # 0x4e567f
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
movl -0x458(%rbp), %eax
movl $0x3, %ecx
xorl %edx, %edx
divl %ecx
movl %eax, -0x438(%rbp)
imull $0x3, -0x438(%rbp), %eax
cmpl -0x458(%rbp), %eax
je 0x418bf5
leaq 0xcca97(%rip), %rdi     # 0x4e567f
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
movl $0x0, -0x434(%rbp)
movl -0x434(%rbp), %eax
cmpl -0x438(%rbp), %eax
jae 0x418ca4
movq -0x450(%rbp), %rdi
callq 0x415960
movb %al, %cl
movl -0x434(%rbp), %eax
shll $0x2, %eax
addl $0x0, %eax
movl %eax, %eax
movb %cl, -0x420(%rbp,%rax)
movq -0x450(%rbp), %rdi
callq 0x415960
movb %al, %cl
movl -0x434(%rbp), %eax
shll $0x2, %eax
addl $0x1, %eax
movl %eax, %eax
movb %cl, -0x420(%rbp,%rax)
movq -0x450(%rbp), %rdi
callq 0x415960
movb %al, %cl
movl -0x434(%rbp), %eax
shll $0x2, %eax
addl $0x2, %eax
movl %eax, %eax
movb %cl, -0x420(%rbp,%rax)
movl -0x434(%rbp), %eax
shll $0x2, %eax
addl $0x3, %eax
movl %eax, %eax
movb $-0x1, -0x420(%rbp,%rax)
movl -0x434(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x434(%rbp)
jmp 0x418bff
jmp 0x4192b7
cmpl $0x0, -0x43c(%rbp)
je 0x418cc6
leaq 0xcc9b7(%rip), %rdi     # 0x4e5670
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x418ce5
leaq 0xcc9b4(%rip), %rdi     # 0x4e568c
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
cmpb $0x0, -0x421(%rbp)
je 0x418da9
cmpl $0x2, -0x14(%rbp)
jne 0x418d12
movq -0x450(%rbp), %rax
movl $0x4, 0x8(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4192c8
cmpl $0x0, -0x438(%rbp)
jne 0x418d2f
leaq 0xcc97a(%rip), %rdi     # 0x4e569c
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
movl -0x458(%rbp), %eax
cmpl -0x438(%rbp), %eax
jbe 0x418d51
leaq 0xcc969(%rip), %rdi     # 0x4e56ad
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
movb $0x4, -0x421(%rbp)
movl $0x0, -0x434(%rbp)
movl -0x434(%rbp), %eax
cmpl -0x458(%rbp), %eax
jae 0x418da4
movq -0x450(%rbp), %rdi
callq 0x415960
movb %al, %cl
movl -0x434(%rbp), %eax
shll $0x2, %eax
addl $0x3, %eax
movl %eax, %eax
movb %cl, -0x420(%rbp,%rax)
movl -0x434(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x434(%rbp)
jmp 0x418d62
jmp 0x418e50
movq -0x450(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x418dcf
leaq 0xcc8f8(%rip), %rdi     # 0x4e56ba
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
movl -0x458(%rbp), %eax
movq -0x450(%rbp), %rcx
movl 0x8(%rcx), %ecx
shll %ecx
cmpl %ecx, %eax
je 0x418df9
leaq 0xcc8c1(%rip), %rdi     # 0x4e56ad
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
movb $0x1, -0x422(%rbp)
movl $0x0, -0x440(%rbp)
movl -0x440(%rbp), %eax
movq -0x450(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x418e4e
movq -0x450(%rbp), %rdi
callq 0x415aa0
andl $0xff, %eax
movb %al, %cl
movslq -0x440(%rbp), %rax
movb %cl, -0x425(%rbp,%rax)
movl -0x440(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x440(%rbp)
jmp 0x418e0a
jmp 0x418e50
jmp 0x4192b7
cmpl $0x0, -0x43c(%rbp)
je 0x418e72
leaq 0xcc80b(%rip), %rdi     # 0x4e5670
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
movzbl -0x421(%rbp), %eax
cmpl $0x0, %eax
je 0x418e9b
cmpl $0x0, -0x438(%rbp)
jne 0x418e9b
leaq 0xcc83c(%rip), %rdi     # 0x4e56ca
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
cmpl $0x2, -0x14(%rbp)
jne 0x418ebe
movzbl -0x421(%rbp), %ecx
movq -0x450(%rbp), %rax
movl %ecx, 0x8(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4192c8
movl -0x42c(%rbp), %eax
addl -0x458(%rbp), %eax
cmpl -0x430(%rbp), %eax
jbe 0x418f81
cmpl $0x0, -0x430(%rbp)
jne 0x418f12
cmpl $0x1000, -0x458(%rbp)   # imm = 0x1000
jbe 0x418ef9
movl -0x458(%rbp), %eax
movl %eax, -0x47c(%rbp)
jmp 0x418f06
movl $0x1000, %eax           # imm = 0x1000
movl %eax, -0x47c(%rbp)
jmp 0x418f06
movl -0x47c(%rbp), %eax
movl %eax, -0x430(%rbp)
jmp 0x418f14
movl -0x42c(%rbp), %eax
addl -0x458(%rbp), %eax
cmpl -0x430(%rbp), %eax
jbe 0x418f38
movl -0x430(%rbp), %eax
shll %eax
movl %eax, -0x430(%rbp)
jmp 0x418f14
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movl -0x430(%rbp), %eax
movl %eax, %esi
callq 0x4533b0
movq %rax, -0x470(%rbp)
cmpq $0x0, -0x470(%rbp)
jne 0x418f72
leaq 0xcc576(%rip), %rdi     # 0x4e54db
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
movq -0x470(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x450(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
movl -0x42c(%rbp), %eax
addq %rax, %rsi
movl -0x458(%rbp), %edx
callq 0x4198e0
cmpl $0x0, %eax
jne 0x418fbd
leaq 0xcc722(%rip), %rdi     # 0x4e56d2
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
movl -0x458(%rbp), %eax
addl -0x42c(%rbp), %eax
movl %eax, -0x42c(%rbp)
jmp 0x4192b7
cmpl $0x0, -0x43c(%rbp)
je 0x418ff1
leaq 0xcc68c(%rip), %rdi     # 0x4e5670
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
cmpl $0x0, -0x14(%rbp)
je 0x419003
movl $0x1, -0x4(%rbp)
jmp 0x4192c8
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x419022
leaq 0xcc6c7(%rip), %rdi     # 0x4e56dc
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movl -0x42c(%rbp), %esi
cmpl $0x0, -0x448(%rbp)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %r8d
movl $0x4000, %edx           # imm = 0x4000
leaq -0x474(%rbp), %rcx
callq 0x412310
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x419075
movl $0x0, -0x4(%rbp)
jmp 0x4192c8
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x453060
movq -0x10(%rbp), %rax
movq $0x0, 0x8(%rax)
movl -0x18(%rbp), %eax
movq -0x450(%rbp), %rcx
movl 0x8(%rcx), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
jne 0x4190b1
cmpl $0x3, -0x18(%rbp)
je 0x4190b1
cmpb $0x0, -0x421(%rbp)
je 0x4190bd
movzbl -0x422(%rbp), %eax
cmpl $0x0, %eax
je 0x4190d6
movq -0x450(%rbp), %rax
movl 0x8(%rax), %ecx
addl $0x1, %ecx
movq -0x450(%rbp), %rax
movl %ecx, 0xc(%rax)
jmp 0x4190ea
movq -0x450(%rbp), %rax
movl 0x8(%rax), %ecx
movq -0x450(%rbp), %rax
movl %ecx, 0xc(%rax)
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
movl -0x474(%rbp), %edx
movq -0x450(%rbp), %rax
movl 0xc(%rax), %ecx
movl -0x444(%rbp), %r8d
callq 0x419a10
cmpl $0x0, %eax
jne 0x419123
movl $0x0, -0x4(%rbp)
jmp 0x4192c8
cmpb $0x0, -0x422(%rbp)
je 0x419159
movq -0x10(%rbp), %rdi
leaq -0x425(%rbp), %rsi
movq -0x450(%rbp), %rax
movl 0xc(%rax), %edx
callq 0x419d70
cmpl $0x0, %eax
jne 0x419157
movl $0x0, -0x4(%rbp)
jmp 0x4192c8
jmp 0x419159
cmpl $0x0, -0x448(%rbp)
je 0x419181
cmpl $0x0, 0x110823(%rip)    # 0x52998c
je 0x419181
movq -0x450(%rbp), %rax
cmpl $0x2, 0xc(%rax)
jle 0x419181
movq -0x10(%rbp), %rdi
callq 0x419ea0
cmpb $0x0, -0x421(%rbp)
je 0x4191f2
movzbl -0x421(%rbp), %ecx
movq -0x450(%rbp), %rax
movl %ecx, 0x8(%rax)
movzbl -0x421(%rbp), %ecx
movq -0x450(%rbp), %rax
movl %ecx, 0xc(%rax)
cmpl $0x3, -0x18(%rbp)
jl 0x4191bf
movl -0x18(%rbp), %ecx
movq -0x450(%rbp), %rax
movl %ecx, 0xc(%rax)
movq -0x10(%rbp), %rdi
leaq -0x420(%rbp), %rsi
movl -0x438(%rbp), %edx
movq -0x450(%rbp), %rax
movl 0xc(%rax), %ecx
callq 0x41a070
cmpl $0x0, %eax
jne 0x4191f0
movl $0x0, -0x4(%rbp)
jmp 0x4192c8
jmp 0x4191f2
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x453060
movq -0x10(%rbp), %rax
movq $0x0, 0x10(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4192c8
cmpl $0x0, -0x43c(%rbp)
je 0x419234
leaq 0xcc449(%rip), %rdi     # 0x4e5670
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
movl -0x454(%rbp), %eax
andl $0x20000000, %eax       # imm = 0x20000000
cmpl $0x0, %eax
jne 0x4192a5
movl -0x454(%rbp), %eax
shrl $0x18, %eax
andl $0xff, %eax
movb %al, 0x10d0e8(%rip)     # 0x526340
movl -0x454(%rbp), %eax
shrl $0x10, %eax
andl $0xff, %eax
movb %al, 0x10d0d5(%rip)     # 0x526341
movl -0x454(%rbp), %eax
shrl $0x8, %eax
andl $0xff, %eax
movb %al, 0x10d0c2(%rip)     # 0x526342
movl -0x454(%rbp), %eax
shrl $0x0, %eax
andl $0xff, %eax
movb %al, 0x10d0af(%rip)     # 0x526343
leaq 0x10d0a5(%rip), %rdi    # 0x526340
callq 0x411080
movl %eax, -0x4(%rbp)
jmp 0x4192c8
movq -0x450(%rbp), %rdi
movl -0x458(%rbp), %esi
callq 0x415d20
movq -0x450(%rbp), %rdi
callq 0x4198a0
jmp 0x4187e2
movl -0x4(%rbp), %eax
addq $0x480, %rsp            # imm = 0x480
popq %rbp
retq
nopw %cs:(%rax,%rax)