// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__gif_load_next(stbi__context*, stbi__gif*, int*, int, unsigned char*)
static stbi_uc *stbi__gif_load_next(stbi__context *s, stbi__gif *g, int *comp, int req_comp, stbi_uc *two_back)
{
   int dispose; 
   int first_frame; 
   int pi; 
   int pcount; 
   STBI_NOTUSED(req_comp);

   // on first frame, any non-written pixels get the background colour (non-transparent)
   first_frame = 0; 
   if (g->out == 0) {
      if (!stbi__gif_header(s, g, comp,0)) return 0; // stbi__g_failure_reason set by stbi__gif_header
      if (!stbi__mad3sizes_valid(4, g->w, g->h, 0))
         return stbi__errpuc("too large", "GIF image is too large");
      pcount = g->w * g->h;
      g->out = (stbi_uc *) stbi__malloc(4 * pcount);
      g->background = (stbi_uc *) stbi__malloc(4 * pcount);
      g->history = (stbi_uc *) stbi__malloc(pcount);
      if (!g->out || !g->background || !g->history)
         return stbi__errpuc("outofmem", "Out of memory");

      // image is treated as "transparent" at the start - ie, nothing overwrites the current background; 
      // background colour is only used for pixels that are not rendered first frame, after that "background"
      // color refers to the color that was there the previous frame. 
      memset(g->out, 0x00, 4 * pcount);
      memset(g->background, 0x00, 4 * pcount); // state of the background (starts transparent)
      memset(g->history, 0x00, pcount);        // pixels that were affected previous frame
      first_frame = 1; 
   } else {
      // second frame - how do we dispoase of the previous one?
      dispose = (g->eflags & 0x1C) >> 2; 
      pcount = g->w * g->h; 

      if ((dispose == 3) && (two_back == 0)) {
         dispose = 2; // if I don't have an image to revert back to, default to the old background
      }

      if (dispose == 3) { // use previous graphic
         for (pi = 0; pi < pcount; ++pi) {
            if (g->history[pi]) {
               memcpy( &g->out[pi * 4], &two_back[pi * 4], 4 ); 
            }
         }
      } else if (dispose == 2) { 
         // restore what was changed last frame to background before that frame; 
         for (pi = 0; pi < pcount; ++pi) {
            if (g->history[pi]) {
               memcpy( &g->out[pi * 4], &g->background[pi * 4], 4 ); 
            }
         }
      } else {
         // This is a non-disposal case eithe way, so just 
         // leave the pixels as is, and they will become the new background
         // 1: do not dispose
         // 0:  not specified.
      }

      // background is what out is after the undoing of the previou frame; 
      memcpy( g->background, g->out, 4 * g->w * g->h ); 
   }

   // clear my history; 
   memset( g->history, 0x00, g->w * g->h );        // pixels that were affected previous frame

   for (;;) {
      int tag = stbi__get8(s); 
      switch (tag) {
         case 0x2C: /* Image Descriptor */
         {
            stbi__int32 x, y, w, h;
            stbi_uc *o;

            x = stbi__get16le(s);
            y = stbi__get16le(s);
            w = stbi__get16le(s);
            h = stbi__get16le(s);
            if (((x + w) > (g->w)) || ((y + h) > (g->h)))
               return stbi__errpuc("bad Image Descriptor", "Corrupt GIF");

            g->line_size = g->w * 4;
            g->start_x = x * 4;
            g->start_y = y * g->line_size;
            g->max_x   = g->start_x + w * 4;
            g->max_y   = g->start_y + h * g->line_size;
            g->cur_x   = g->start_x;
            g->cur_y   = g->start_y;

            // if the width of the specified rectangle is 0, that means
            // we may not see *any* pixels or the image is malformed;
            // to make sure this is caught, move the current y down to
            // max_y (which is what out_gif_code checks).
            if (w == 0)
               g->cur_y = g->max_y;

            g->lflags = stbi__get8(s);

            if (g->lflags & 0x40) {
               g->step = 8 * g->line_size; // first interlaced spacing
               g->parse = 3;
            } else {
               g->step = g->line_size;
               g->parse = 0;
            }

            if (g->lflags & 0x80) {
               stbi__gif_parse_colortable(s,g->lpal, 2 << (g->lflags & 7), g->eflags & 0x01 ? g->transparent : -1);
               g->color_table = (stbi_uc *) g->lpal;
            } else if (g->flags & 0x80) {
               g->color_table = (stbi_uc *) g->pal;
            } else
               return stbi__errpuc("missing color table", "Corrupt GIF");            
            
            o = stbi__process_gif_raster(s, g);
            if (!o) return NULL;

            // if this was the first frame, 
            pcount = g->w * g->h; 
            if (first_frame && (g->bgindex > 0)) {
               // if first frame, any pixel not drawn to gets the background color
               for (pi = 0; pi < pcount; ++pi) {
                  if (g->history[pi] == 0) {
                     g->pal[g->bgindex][3] = 255; // just in case it was made transparent, undo that; It will be reset next frame if need be; 
                     memcpy( &g->out[pi * 4], &g->pal[g->bgindex], 4 ); 
                  }
               }
            }

            return o;
         }

         case 0x21: // Comment Extension.
         {
            int len;
            int ext = stbi__get8(s); 
            if (ext == 0xF9) { // Graphic Control Extension.
               len = stbi__get8(s);
               if (len == 4) {
                  g->eflags = stbi__get8(s);
                  g->delay = 10 * stbi__get16le(s); // delay - 1/100th of a second, saving as 1/1000ths.

                  // unset old transparent
                  if (g->transparent >= 0) {
                     g->pal[g->transparent][3] = 255; 
                  } 
                  if (g->eflags & 0x01) {
                     g->transparent = stbi__get8(s);
                     if (g->transparent >= 0) {
                        g->pal[g->transparent][3] = 0; 
                     }
                  } else {
                     // don't need transparent
                     stbi__skip(s, 1); 
                     g->transparent = -1; 
                  }
               } else {
                  stbi__skip(s, len);
                  break;
               }
            } 
            while ((len = stbi__get8(s)) != 0) {
               stbi__skip(s, len);
            }
            break;
         }

         case 0x3B: // gif stream termination code
            return (stbi_uc *) s; // using '1' causes warning on some compilers

         default:
            return stbi__errpuc("unknown code", "Corrupt GIF");
      }
   }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rsi), %rax
movq %rax, 0x58(%rsp)
testq %rax, %rax
je 0x13560
movl 0x4(%rbx), %eax
movl 0x30(%rbx), %esi
shrl $0x2, %esi
andl $0x7, %esi
imull (%rbx), %eax
cmpl $0x3, %esi
movl $0x2, %edx
cmovnel %esi, %edx
testq %rcx, %rcx
cmovnel %esi, %edx
cmpl $0x3, %edx
je 0x13627
cmpl $0x2, %edx
jne 0x1364b
testl %eax, %eax
jle 0x1364b
movl %eax, %eax
xorl %ecx, %ecx
movq 0x18(%rbx), %rdx
cmpb $0x0, (%rdx,%rcx)
je 0x13553
movq 0x8(%rbx), %rdx
movq 0x10(%rbx), %rsi
movl (%rsi,%rcx,4), %esi
movl %esi, (%rdx,%rcx,4)
incq %rcx
cmpq %rcx, %rax
jne 0x1353b
jmp 0x1364b
xorl %r13d, %r13d
movq %r14, %rdi
movq %rbx, %rsi
xorl %ecx, %ecx
callq 0x14149
testl %eax, %eax
je 0x14137
movl (%rbx), %ebp
movl 0x4(%rbx), %r12d
movl $0x4, %edi
movl %ebp, %esi
movl %r12d, %edx
xorl %ecx, %ecx
callq 0xf725
testl %eax, %eax
je 0x14126
imull %ebp, %r12d
leal (,%r12,4), %eax
movslq %eax, %r15
movq %r15, %rdi
callq 0x2210
movq %rax, %r13
movq %rax, 0x8(%rbx)
movq %r15, %rdi
callq 0x2210
movq %rax, %rbp
movq %rax, 0x10(%rbx)
movslq %r12d, %rdi
movq %rdi, 0x28(%rsp)
callq 0x2210
movq %rax, %r12
movq %rax, 0x18(%rbx)
leaq 0x451a(%rip), %rax      # 0x17af9
testq %r13, %r13
je 0x1412d
testq %rbp, %rbp
sete %cl
testq %r12, %r12
sete %dl
orb %cl, %dl
jne 0x1412d
movq %r13, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x20f0
movq %rbp, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x20f0
movq %r12, %rdi
xorl %esi, %esi
movq 0x28(%rsp), %rdx
callq 0x20f0
jmp 0x13667
testl %eax, %eax
jle 0x1364b
movl %eax, %eax
xorl %edx, %edx
movq 0x18(%rbx), %rsi
cmpb $0x0, (%rsi,%rdx)
je 0x13643
movq 0x8(%rbx), %rsi
movl (%rcx,%rdx,4), %edi
movl %edi, (%rsi,%rdx,4)
incq %rdx
cmpq %rdx, %rax
jne 0x1362f
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdi
movslq (%rbx), %rax
movslq 0x4(%rbx), %rdx
imulq %rax, %rdx
shlq $0x2, %rdx
callq 0x2150
movq 0x18(%rbx), %rdi
movslq (%rbx), %rax
movslq 0x4(%rbx), %rdx
imulq %rax, %rdx
xorl %esi, %esi
callq 0x20f0
leaq 0x38(%r14), %r15
leaq 0x39(%r14), %r12
leaq 0x434(%rbx), %rax
movq %rax, 0x50(%rsp)
leaq 0x34(%rbx), %rax
movq %rax, 0x48(%rsp)
movq %rbx, 0x10(%rsp)
movq %r12, 0x20(%rsp)
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0x13709
cmpl $0x0, 0x30(%r14)
je 0x136e3
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x136e7
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x13702
xorl %eax, %eax
jmp 0x13716
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq %r12, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %al
cmpb $0x21, %al
je 0x1378f
movzbl %al, %eax
cmpl $0x3b, %eax
je 0x13785
cmpl $0x2c, %eax
jne 0x137dd
movq %r14, %rdi
callq 0x12ebf
movl %eax, %r12d
movq %r14, %rdi
callq 0x12ebf
movl %eax, %ebp
movq %r14, %rdi
callq 0x12ebf
movl %eax, %r13d
movq %r14, %rdi
callq 0x12ebf
leal (%r12,%r13), %edx
movl (%rbx), %ecx
cmpl %ecx, %edx
jg 0x13768
addl %ebp, %eax
cmpl 0x4(%rbx), %eax
jle 0x137f5
leaq 0x493c(%rip), %rax      # 0x180ab
movq %rax, 0x8ab2(%rip)      # 0x1c228
xorl %eax, %eax
xorl %r13d, %r13d
movq 0x20(%rsp), %r12
jmp 0x1411c
xorl %eax, %eax
movq %r14, %r13
jmp 0x1411c
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0x138ac
cmpl $0x0, 0x30(%r14)
je 0x140a0
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x1388a
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x138a5
leaq 0x48f0(%rip), %rax      # 0x180d4
movq %rax, 0x8a3d(%rip)      # 0x1c228
xorl %eax, %eax
xorl %r13d, %r13d
jmp 0x1411c
shll $0x2, %ecx
movl %ecx, 0x8864(%rbx)
shll $0x2, %r12d
movl %r12d, 0x884c(%rbx)
imull %ecx, %ebp
movl %ebp, 0x8850(%rbx)
shll $0x2, %edx
movl %edx, 0x8854(%rbx)
imull %eax, %ecx
movl %ecx, 0x8858(%rbx)
movl %r12d, 0x885c(%rbx)
testl %r13d, %r13d
cmovnel %ebp, %ecx
movl %ecx, 0x8860(%rbx)
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
movq 0x20(%rsp), %r12
jb 0x139bd
cmpl $0x0, 0x30(%r14)
je 0x13990
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x1399b
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x139b6
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq %r12, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
cmpb $-0x7, (%rax)
jne 0x140a0
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0x13925
cmpl $0x0, 0x30(%r14)
je 0x138ff
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x13903
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x1391e
xorl %eax, %eax
jmp 0x13932
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq %r12, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %al
cmpb $0x4, %al
jne 0x13980
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0x13ac9
cmpl $0x0, 0x30(%r14)
je 0x13994
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x13aa7
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x13ac2
movzbl %al, %esi
movq %r14, %rdi
callq 0xf6d7
jmp 0x1411a
xorl %ecx, %ecx
jmp 0x139ca
xorl %eax, %eax
jmp 0x13ad7
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq %r12, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %cl
movzbl %cl, %edx
movl %edx, 0x8848(%rbx)
movl 0x8864(%rbx), %eax
testb $0x40, %dl
jne 0x139f0
movl %eax, 0x8844(%rbx)
movl $0x0, 0x8840(%rbx)
jmp 0x13a03
shll $0x3, %eax
movl %eax, 0x8844(%rbx)
movl $0x3, 0x8840(%rbx)
testb %cl, %cl
js 0x13a19
testb $-0x80, 0x20(%rbx)
jne 0x13a4a
leaq 0x46ac(%rip), %rax      # 0x180c0
jmp 0x137e4
andb $0x7, %cl
movl $0x2, %edx
shll %cl, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
testb $0x1, 0x30(%rbx)
je 0x13a31
movl 0x2c(%rbx), %ecx
movq %r14, %rdi
movq 0x50(%rsp), %r13
movq %r13, %rsi
callq 0x14670
movq %r13, 0x8838(%rbx)
jmp 0x13a56
movq 0x48(%rsp), %rax
movq %rax, 0x8838(%rbx)
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0x13bb9
cmpl $0x0, 0x30(%r14)
je 0x13aa0
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x13b97
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x13bb2
xorl %ecx, %ecx
jmp 0x13bc6
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq %r12, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movzbl (%rax), %eax
movl %eax, 0x30(%rbx)
movq %r14, %rdi
callq 0x12ebf
addl %eax, %eax
leal (%rax,%rax,4), %eax
movl %eax, 0x8868(%rbx)
movslq 0x2c(%rbx), %rax
testq %rax, %rax
js 0x13afb
movb $-0x1, 0x37(%rbx,%rax,4)
testb $0x1, 0x30(%rbx)
jne 0x13b27
cmpq $0x0, 0x10(%r14)
je 0x13b1e
movq 0xc0(%r14), %rax
movl 0xb8(%r14), %edx
movl %eax, %ecx
subl %edx, %ecx
testl %ecx, %ecx
jle 0x13b75
incq 0xb8(%r14)
jmp 0x13b8b
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0x1407b
cmpl $0x0, 0x30(%r14)
je 0x14055
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x14059
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x14074
movq %rax, 0xb8(%r14)
movq 0x28(%r14), %rdi
movl $0x1, %esi
subl %ecx, %esi
callq *0x18(%r14)
movl $0xffffffff, 0x2c(%rbx) # imm = 0xFFFFFFFF
jmp 0x140a0
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq %r12, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %cl
cmpb $0xc, %cl
jbe 0x13bd9
movq $0x0, 0x18(%rsp)
jmp 0x13fc9
movzbl %cl, %edx
movl $0x1, %esi
shll %cl, %esi
xorl %eax, %eax
movw $0xffff, 0x834(%rbx,%rax,4) # imm = 0xFFFF
movb %al, 0x836(%rbx,%rax,4)
movb %al, 0x837(%rbx,%rax,4)
incq %rax
cmpq %rax, %rsi
jne 0x13be5
movl $0x2, %eax
shll %cl, %eax
incl %edx
decl %eax
leal 0x2(%rsi), %ecx
movq %rsi, 0x60(%rsp)
incl %esi
movl %esi, 0x38(%rsp)
xorl %ebx, %ebx
movl $0xffffffff, 0x4(%rsp)  # imm = 0xFFFFFFFF
movl $0x1, 0x8(%rsp)
movl %edx, 0x44(%rsp)
movq %rdx, 0x28(%rsp)
movl %eax, 0x40(%rsp)
movl %eax, 0xc(%rsp)
movl %ecx, 0x3c(%rsp)
movl %ecx, %eax
movq %rax, 0x30(%rsp)
xorl %ebp, %ebp
xorl %r12d, %r12d
movl %ebp, %r13d
subl 0x28(%rsp), %ebp
jge 0x13d78
testl %r12d, %r12d
jne 0x13cea
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0x13cd1
cmpl $0x0, 0x30(%r14)
je 0x13ca6
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x13caa
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x13cca
xorl %eax, %eax
jmp 0x13cde
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq 0x20(%rsp), %rax
movq %rax, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %al
testb %al, %al
je 0x13fbb
movzbl %al, %r12d
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0x13d54
cmpl $0x0, 0x30(%r14)
je 0x13d29
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x13d2d
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x13d4d
xorl %eax, %eax
jmp 0x13d62
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq 0x20(%rsp), %rax
movq %rax, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movzbl (%rax), %eax
movl %r13d, %ecx
shll %cl, %eax
decl %r12d
orl %eax, %ebx
addl $0x8, %r13d
movl %r13d, %ebp
jmp 0x13c54
movl %ebx, %r13d
movq 0x28(%rsp), %rcx
sarl %cl, %ebx
andl 0xc(%rsp), %r13d
movb $0x1, %dl
xorl %ecx, %ecx
cmpl 0x60(%rsp), %r13d
jne 0x13db7
movl 0x44(%rsp), %eax
movq %rax, 0x28(%rsp)
movl 0x40(%rsp), %eax
movl %eax, 0xc(%rsp)
movl 0x3c(%rsp), %eax
movq %rax, 0x30(%rsp)
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
jmp 0x13ebd
cmpl 0x38(%rsp), %r13d
jne 0x13e51
movq 0x20(%rsp), %r13
movq %r14, %rdi
movl %r12d, %esi
callq 0xf6d7
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0x13e37
cmpl $0x0, 0x30(%r14)
je 0x13e11
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x13e15
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x13e30
xorl %eax, %eax
jmp 0x13e44
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq %r13, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %al
testb %al, %al
je 0x13e73
movzbl %al, %r12d
jmp 0x13dc7
movq 0x30(%rsp), %rax
cmpl %eax, %r13d
jle 0x13e93
leaq 0x42a4(%rip), %rax      # 0x18106
movq %rax, 0x83bf(%rip)      # 0x1c228
xorl %edx, %edx
movl 0x8(%rsp), %eax
movl %eax, %ecx
jmp 0x13eaf
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
xorl %r12d, %r12d
movl 0x8(%rsp), %eax
movl %eax, %ecx
movl 0x4(%rsp), %r13d
xorl %edx, %edx
jmp 0x13ebd
cmpl $0x0, 0x8(%rsp)
je 0x13ed3
leaq 0x4248(%rip), %rax      # 0x180e9
movq %rax, 0x8380(%rip)      # 0x1c228
movl $0x1, %ecx
xorl %edx, %edx
movl 0x4(%rsp), %r13d
movq $0x0, 0x18(%rsp)
movl %ecx, 0x8(%rsp)
movl %r13d, 0x4(%rsp)
testb %dl, %dl
jne 0x13c51
jmp 0x13fc9
cmpl $0x0, 0x4(%rsp)
js 0x13efd
leal 0x1(%rax), %edx
cmpl $0x2000, %eax           # imm = 0x2000
jl 0x13f1b
leaq 0x420c(%rip), %rax      # 0x180f7
movq %rax, 0x8336(%rip)      # 0x1c228
xorl %ecx, %ecx
movl %edx, %eax
movq %rax, 0x30(%rsp)
jmp 0x13f12
cmpl %eax, %r13d
jne 0x13f5a
leaq 0x41fd(%rip), %rax      # 0x18106
movq %rax, 0x8318(%rip)      # 0x1c228
xorl %ecx, %ecx
movl 0x4(%rsp), %r13d
xorl %edx, %edx
jmp 0x13eb4
cltq
movq 0x10(%rsp), %rdi
movl 0x4(%rsp), %ecx
movw %cx, 0x834(%rdi,%rax,4)
movl %ecx, %ecx
movb 0x836(%rdi,%rcx,4), %cl
movb %cl, 0x836(%rdi,%rax,4)
cmpl %edx, %r13d
je 0x13f4d
movslq %r13d, %rcx
movb 0x836(%rdi,%rcx,4), %cl
movb %cl, 0x837(%rdi,%rax,4)
movl %edx, 0x4(%rsp)
jmp 0x13f63
movl %eax, 0x4(%rsp)
movq 0x10(%rsp), %rdi
movzwl %r13w, %esi
callq 0x14835
movl 0xc(%rsp), %r8d
movl 0x4(%rsp), %r9d
testl %r8d, %r9d
sete %al
cmpl $0x1000, %r9d           # imm = 0x1000
setl %dl
movq 0x28(%rsp), %rdi
leal 0x1(%rdi), %ecx
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
shll %cl, %esi
testb %al, %dl
cmovnel %ecx, %edi
movq %rdi, 0x28(%rsp)
notl %esi
cmovnel %esi, %r8d
movl %r8d, 0xc(%rsp)
movl %r9d, %eax
movq %rax, 0x30(%rsp)
xorl %ecx, %ecx
movb $0x1, %dl
jmp 0x13ebd
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %r13
testq %r13, %r13
je 0x13fec
cmpq $0x0, 0x58(%rsp)
movq 0x20(%rsp), %r12
je 0x13ffb
xorl %eax, %eax
movq 0x10(%rsp), %rbx
jmp 0x1411c
xorl %eax, %eax
xorl %r13d, %r13d
movq 0x10(%rsp), %rbx
jmp 0x1377b
movq 0x10(%rsp), %rbx
movl 0x4(%rbx), %eax
imull (%rbx), %eax
cmpl $0x0, 0x24(%rbx)
setg %cl
testl %eax, %eax
setg %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x1404e
movl %eax, %ecx
xorl %edx, %edx
movq 0x18(%rbx), %rax
cmpb $0x0, (%rax,%rdx)
jne 0x1403f
movslq 0x24(%rbx), %rax
movb $-0x1, 0x37(%rbx,%rax,4)
movq 0x8(%rbx), %rax
movslq 0x24(%rbx), %rsi
movl 0x34(%rbx,%rsi,4), %esi
movl %esi, (%rax,%rdx,4)
incq %rdx
xorl %eax, %eax
cmpq %rdx, %rcx
jne 0x1401d
jmp 0x1411c
xorl %eax, %eax
jmp 0x1411c
xorl %eax, %eax
jmp 0x14088
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq %r12, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %al
movzbl %al, %eax
movl %eax, 0x2c(%rbx)
movb $0x0, 0x37(%rbx,%rax,4)
jmp 0x140a0
movzbl %al, %esi
movq %r14, %rdi
callq 0xf6d7
movq 0xb8(%r14), %rax
cmpq 0xc0(%r14), %rax
jb 0x14105
cmpl $0x0, 0x30(%r14)
je 0x140df
movq 0x28(%r14), %rdi
movl 0x34(%r14), %edx
movq %r15, %rsi
callq *0x10(%r14)
testl %eax, %eax
je 0x140e3
movq %r15, 0xb8(%r14)
cltq
addq %r15, %rax
movq %rax, 0xc0(%r14)
jmp 0x140fe
xorl %eax, %eax
jmp 0x14112
movl $0x0, 0x30(%r14)
movq %r15, 0xb8(%r14)
movq %r12, 0xc0(%r14)
movb $0x0, 0x38(%r14)
movq 0xb8(%r14), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r14)
movb (%rax), %al
testb %al, %al
jne 0x14095
movb $0x1, %al
testb %al, %al
jne 0x136a4
jmp 0x14137
leaq 0x39c2(%rip), %rax      # 0x17aef
movq %rax, 0x80f4(%rip)      # 0x1c228
xorl %r13d, %r13d
movq %r13, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq