// File: /workspace/github_c_makefile_star2_O3/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 $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rsi), %r13
testq %r13, %r13
je 0x13d3f
movl 0x4(%r14), %eax
movl 0x30(%r14), %esi
shrl $0x2, %esi
andl $0x7, %esi
imull (%r14), %eax
cmpl $0x3, %esi
movl $0x2, %edx
cmovnel %esi, %edx
testq %rcx, %rcx
cmovnel %esi, %edx
cmpl $0x3, %edx
je 0x13e16
cmpl $0x2, %edx
jne 0x13e3a
testl %eax, %eax
jle 0x13e3a
movl %eax, %eax
xorl %ecx, %ecx
movq 0x18(%r14), %rdx
cmpb $0x0, (%rdx,%rcx)
je 0x13d32
movq 0x8(%r14), %rdx
movq 0x10(%r14), %rsi
movl (%rsi,%rcx,4), %esi
movl %esi, (%rdx,%rcx,4)
incq %rcx
cmpq %rcx, %rax
jne 0x13d1a
jmp 0x13e3a
movq %rbx, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x147b6
testl %eax, %eax
je 0x14288
movl (%r14), %ebp
movl 0x4(%r14), %r15d
movl $0x4, %edi
movl %ebp, %esi
movl %r15d, %edx
xorl %ecx, %ecx
callq 0xfeae
testl %eax, %eax
je 0x14270
movq %r13, 0x28(%rsp)
imull %ebp, %r15d
leal (,%r15,4), %eax
movslq %eax, %r13
movq %r13, %rdi
callq 0x2200
movq %rax, %rbp
movq %rax, 0x8(%r14)
movq %r13, %rdi
callq 0x2200
movq %rax, 0x10(%rsp)
movq %rax, 0x10(%r14)
movslq %r15d, %r15
movq %r15, %rdi
callq 0x2200
movq %rax, %r12
movq %rax, 0x18(%r14)
leaq 0x4de8(%rip), %rax      # 0x18ba9
movq %rax, 0x8(%rsp)
testq %rbp, %rbp
je 0x1427c
cmpq $0x0, 0x10(%rsp)
sete %al
testq %r12, %r12
sete %cl
orb %al, %cl
jne 0x1427c
movq %rbp, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x20e0
movq 0x10(%rsp), %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x20e0
movq %r12, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x20e0
movq 0x28(%rsp), %r13
jmp 0x13e65
testl %eax, %eax
jle 0x13e3a
movl %eax, %eax
xorl %edx, %edx
movq 0x18(%r14), %rsi
cmpb $0x0, (%rsi,%rdx)
je 0x13e32
movq 0x8(%r14), %rsi
movl (%rcx,%rdx,4), %edi
movl %edi, (%rsi,%rdx,4)
incq %rdx
cmpq %rdx, %rax
jne 0x13e1e
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdi
movslq (%r14), %rax
movslq 0x4(%r14), %rdx
imulq %rax, %rdx
shlq $0x2, %rdx
callq 0x2140
movq 0x18(%r14), %r12
movslq (%r14), %rax
movslq 0x4(%r14), %r15
imulq %rax, %r15
movq %r12, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x20e0
leaq 0x38(%rbx), %r15
leaq 0x39(%rbx), %r12
leaq 0x34(%r14), %rbp
leaq 0x52ff(%rip), %rax      # 0x19184
movq %rax, 0x8(%rsp)
movq 0xb8(%rbx), %rcx
movq 0xc0(%rbx), %rax
cmpq %rax, %rcx
jae 0x13eac
leaq 0x1(%rcx), %rdx
movq %rdx, 0xb8(%rbx)
movb (%rcx), %cl
jmp 0x13ef2
cmpl $0x0, 0x30(%rbx)
je 0x1427c
movq 0x28(%rbx), %rdi
movl 0x34(%rbx), %edx
movq %r15, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0x13ed1
cltq
addq %r15, %rax
movb (%r15), %cl
jmp 0x13ee1
movl $0x0, 0x30(%rbx)
movb $0x0, 0x38(%rbx)
xorl %ecx, %ecx
movq %r12, %rax
movq %rax, 0xc0(%rbx)
movq %r12, 0xb8(%rbx)
movq %r12, %rdx
cmpb $0x21, %cl
jne 0x1418d
cmpq %rax, %rdx
jae 0x13f0f
leaq 0x1(%rdx), %rsi
movq %rsi, 0xb8(%rbx)
movb (%rdx), %cl
jmp 0x13f55
cmpl $0x0, 0x30(%rbx)
je 0x14121
movq 0x28(%rbx), %rdi
movl 0x34(%rbx), %edx
movq %r15, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0x13f34
cltq
addq %r15, %rax
movb (%r15), %cl
jmp 0x13f44
movl $0x0, 0x30(%rbx)
movb $0x0, 0x38(%rbx)
xorl %ecx, %ecx
movq %r12, %rax
movq %rax, 0xc0(%rbx)
movq %r12, 0xb8(%rbx)
movq %r12, %rsi
cmpb $-0x7, %cl
jne 0x14121
cmpq %rax, %rsi
jae 0x13f72
leaq 0x1(%rsi), %rdx
movq %rdx, 0xb8(%rbx)
movb (%rsi), %cl
jmp 0x13fb8
cmpl $0x0, 0x30(%rbx)
je 0x13f93
movq 0x28(%rbx), %rdi
movl 0x34(%rbx), %edx
movq %r15, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0x13f97
cltq
addq %r15, %rax
movb (%r15), %cl
jmp 0x13fa7
xorl %ecx, %ecx
jmp 0x13fd1
movl $0x0, 0x30(%rbx)
movb $0x0, 0x38(%rbx)
xorl %ecx, %ecx
movq %r12, %rax
movq %rax, 0xc0(%rbx)
movq %r12, 0xb8(%rbx)
movq %r12, %rdx
cmpb $0x4, %cl
jne 0x13fd1
cmpq %rax, %rdx
jae 0x13fe1
leaq 0x1(%rdx), %rax
movq %rax, 0xb8(%rbx)
movb (%rdx), %al
jmp 0x14025
movzbl %cl, %esi
movq %rbx, %rdi
callq 0xfe58
jmp 0x13e8a
cmpl $0x0, 0x30(%rbx)
je 0x14003
movq 0x28(%rbx), %rdi
movl 0x34(%rbx), %edx
movq %r15, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0x14007
movslq %eax, %rcx
addq %r15, %rcx
movb (%r15), %al
jmp 0x14017
xorl %eax, %eax
jmp 0x14025
movl $0x0, 0x30(%rbx)
movb $0x0, 0x38(%rbx)
xorl %eax, %eax
movq %r12, %rcx
movq %rcx, 0xc0(%rbx)
movq %r12, 0xb8(%rbx)
movzbl %al, %eax
movl %eax, 0x30(%r14)
movq %rbx, %rdi
callq 0x136e6
addl %eax, %eax
leal (%rax,%rax,4), %eax
movl %eax, 0x8868(%r14)
movslq 0x2c(%r14), %rax
testq %rax, %rax
js 0x1404e
movb $-0x1, 0x3(%rbp,%rax,4)
testb $0x1, 0x30(%r14)
jne 0x14089
cmpq $0x0, 0x10(%rbx)
je 0x140ca
movq 0xb8(%rbx), %rax
movq 0xc0(%rbx), %rcx
movl %ecx, %edx
subl %eax, %edx
testl %edx, %edx
jg 0x140d1
movq %rcx, 0xb8(%rbx)
movq 0x28(%rbx), %rdi
movl $0x1, %esi
subl %edx, %esi
callq *0x18(%rbx)
jmp 0x140db
movq 0xb8(%rbx), %rax
cmpq 0xc0(%rbx), %rax
jae 0x140a8
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%rbx)
movb (%rax), %al
jmp 0x14107
cmpl $0x0, 0x30(%rbx)
je 0x140e5
movq 0x28(%rbx), %rdi
movl 0x34(%rbx), %edx
movq %r15, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0x140e9
movslq %eax, %rcx
addq %r15, %rcx
movb (%r15), %al
jmp 0x140f9
movq 0xb8(%rbx), %rax
incq %rax
movq %rax, 0xb8(%rbx)
movl $0xffffffff, 0x2c(%r14) # imm = 0xFFFFFFFF
jmp 0x14121
xorl %eax, %eax
jmp 0x14107
movl $0x0, 0x30(%rbx)
movb $0x0, 0x38(%rbx)
xorl %eax, %eax
movq %r12, %rcx
movq %rcx, 0xc0(%rbx)
movq %r12, 0xb8(%rbx)
movzbl %al, %eax
movl %eax, 0x2c(%r14)
movb $0x0, 0x37(%r14,%rax,4)
jmp 0x14121
movzbl %al, %esi
movq %rbx, %rdi
callq 0xfe58
movq 0xb8(%rbx), %rax
cmpq 0xc0(%rbx), %rax
jae 0x14140
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%rbx)
movb (%rax), %al
jmp 0x14184
cmpl $0x0, 0x30(%rbx)
je 0x13e8a
movq 0x28(%rbx), %rdi
movl 0x34(%rbx), %edx
movq %r15, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0x14166
movslq %eax, %rcx
addq %r15, %rcx
movb (%r15), %al
jmp 0x14176
movl $0x0, 0x30(%rbx)
movb $0x0, 0x38(%rbx)
xorl %eax, %eax
movq %r12, %rcx
movq %rcx, 0xc0(%rbx)
movq %r12, 0xb8(%rbx)
testb %al, %al
jne 0x14116
jmp 0x13e8a
movzbl %cl, %eax
cmpl $0x3b, %eax
je 0x1428a
movq %rbp, 0x10(%rsp)
movq %r13, 0x28(%rsp)
cmpl $0x2c, %eax
jne 0x1427c
movq %rbx, %rdi
callq 0x136e6
movl %eax, %ebp
movq %rbx, %rdi
callq 0x136e6
movl %eax, 0x4(%rsp)
movq %rbx, %rdi
callq 0x136e6
movl %eax, %r13d
movq %rbx, %rdi
callq 0x136e6
leal (%r13,%rbp), %ecx
movl (%r14), %edx
leaq 0x4f77(%rip), %rsi      # 0x1915b
movq %rsi, 0x8(%rsp)
cmpl %edx, %ecx
jg 0x1427c
movl 0x4(%rsp), %esi
addl %esi, %eax
cmpl 0x4(%r14), %eax
jg 0x1427c
shll $0x2, %edx
movl %edx, 0x8864(%r14)
shll $0x2, %ebp
movl %ebp, 0x884c(%r14)
imull %edx, %esi
movl %esi, 0x8850(%r14)
shll $0x2, %ecx
movl %ecx, 0x8854(%r14)
imull %edx, %eax
movl %eax, 0x8858(%r14)
movl %ebp, 0x885c(%r14)
testl %r13d, %r13d
cmovnel %esi, %eax
movl %eax, 0x8860(%r14)
movq 0xb8(%rbx), %rsi
movq 0xc0(%rbx), %rax
cmpq %rax, %rsi
jae 0x1429c
leaq 0x1(%rsi), %rdi
movq %rdi, 0xb8(%rbx)
movb (%rsi), %cl
movq %rdi, %rsi
movq 0x10(%rsp), %r13
jmp 0x142fb
leaq 0x4928(%rip), %rax      # 0x18b9f
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x8f70(%rip)      # 0x1d1f8
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x0, 0x30(%rbx)
movq 0x10(%rsp), %r13
je 0x142c2
movq 0x28(%rbx), %rdi
movl 0x34(%rbx), %edx
movq %r15, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0x142d3
cltq
addq %r15, %rax
movb (%r15), %cl
jmp 0x142e3
movl $0x0, 0x8848(%r14)
xorl %edi, %edi
xorl %ecx, %ecx
jmp 0x14322
movl $0x0, 0x30(%rbx)
movb $0x0, 0x38(%rbx)
xorl %ecx, %ecx
movq %r12, %rax
movq %rax, 0xc0(%rbx)
movq %r12, 0xb8(%rbx)
movl 0x8864(%r14), %edx
movq %r12, %rsi
movzbl %cl, %ecx
movl %ecx, 0x8848(%r14)
movl %ecx, %edi
shll $0x19, %edi
sarl $0x1f, %edi
leal (,%rdx,8), %r8d
testb $0x40, %cl
cmovel %edx, %r8d
andl $0x3, %edi
movl %r8d, %edx
movl %edx, 0x8844(%r14)
movl %edi, 0x8840(%r14)
cmpl $0x80, %ecx
jae 0x1434b
testb $-0x80, 0x20(%r14)
jne 0x1438e
leaq 0x4e2a(%rip), %rax      # 0x19170
jmp 0x14277
andb $0x7, %cl
movl $0x2, %edx
shll %cl, %edx
leaq 0x434(%r14), %r13
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
testb $0x1, 0x30(%r14)
je 0x1436c
movl 0x2c(%r14), %ecx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x14c5d
movq %r13, 0x8838(%r14)
movq 0xb8(%rbx), %rsi
movq 0xc0(%rbx), %rax
jmp 0x14395
movq %r13, 0x8838(%r14)
cmpq %rax, %rsi
jae 0x143a9
leaq 0x1(%rsi), %rax
movq %rax, 0xb8(%rbx)
movb (%rsi), %al
jmp 0x143ed
cmpl $0x0, 0x30(%rbx)
je 0x143cb
movq 0x28(%rbx), %rdi
movl 0x34(%rbx), %edx
movq %r15, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0x143cf
movslq %eax, %rcx
addq %r15, %rcx
movb (%r15), %al
jmp 0x143df
xorl %eax, %eax
jmp 0x143f5
movl $0x0, 0x30(%rbx)
movb $0x0, 0x38(%rbx)
xorl %eax, %eax
movq %r12, %rcx
movq %rcx, 0xc0(%rbx)
movq %r12, 0xb8(%rbx)
cmpb $0xc, %al
ja 0x14288
movzbl %al, %ecx
movl $0x1, %edx
shll %cl, %edx
xorl %eax, %eax
movw $0xffff, 0x834(%r14,%rax,4) # imm = 0xFFFF
movb %al, 0x836(%r14,%rax,4)
movb %al, 0x837(%r14,%rax,4)
incq %rax
cmpq %rax, %rdx
jne 0x14401
movl $0x2, %eax
shll %cl, %eax
incl %ecx
decl %eax
leal 0x2(%rdx), %esi
movq %rdx, 0x40(%rsp)
incl %edx
movl %edx, 0x30(%rsp)
xorl %r10d, %r10d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %ecx, 0x3c(%rsp)
movl %eax, 0x38(%rsp)
movl %esi, 0x34(%rsp)
xorl %edi, %edi
xorl %ebp, %ebp
xorl %r9d, %r9d
movl %edx, 0x1c(%rsp)
movl %esi, 0x4(%rsp)
movl %eax, 0x24(%rsp)
movl %ecx, %r8d
movb %r10b, 0x20(%rsp)
movl %ebp, %r13d
movq %r8, 0x10(%rsp)
subl %r8d, %ebp
jge 0x14586
movq 0xb8(%rbx), %rcx
movq 0xc0(%rbx), %rax
testl %r9d, %r9d
jne 0x14502
cmpq %rax, %rcx
jae 0x144a7
leaq 0x1(%rcx), %rsi
movq %rsi, 0xb8(%rbx)
movb (%rcx), %dl
movq %rsi, %rcx
jmp 0x144f6
cmpl $0x0, 0x30(%rbx)
je 0x14730
movl %edi, %ebp
movq 0x28(%rbx), %rdi
movl 0x34(%rbx), %edx
movq %r15, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0x144ce
cltq
addq %r15, %rax
movb (%r15), %dl
jmp 0x144de
movl $0x0, 0x30(%rbx)
movb $0x0, 0x38(%rbx)
xorl %edx, %edx
movq %r12, %rax
movq %rax, 0xc0(%rbx)
movq %r12, 0xb8(%rbx)
movq %r12, %rcx
movl %ebp, %edi
movq 0x10(%rsp), %r8
testb %dl, %dl
je 0x14730
movzbl %dl, %r9d
cmpq %rax, %rcx
jae 0x14516
leaq 0x1(%rcx), %rax
movq %rax, 0xb8(%rbx)
movb (%rcx), %al
jmp 0x1456d
cmpl $0x0, 0x30(%rbx)
je 0x1453f
movl %r9d, 0x8(%rsp)
movl %edi, %ebp
movq 0x28(%rbx), %rdi
movl 0x34(%rbx), %edx
movq %r15, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0x14543
movslq %eax, %rcx
addq %r15, %rcx
movb (%r15), %al
jmp 0x14553
xorl %eax, %eax
jmp 0x1456d
movl $0x0, 0x30(%rbx)
movb $0x0, 0x38(%rbx)
xorl %eax, %eax
movq %r12, %rcx
movl %ebp, %edi
movq 0x10(%rsp), %r8
movl 0x8(%rsp), %r9d
movq %rcx, 0xc0(%rbx)
movq %r12, 0xb8(%rbx)
movzbl %al, %eax
movl %r13d, %ecx
shll %cl, %eax
decl %r9d
orl %eax, %edi
addl $0x8, %r13d
movl %r13d, %ebp
jmp 0x14474
movl %edi, %r13d
movl %r8d, %ecx
sarl %cl, %edi
andl 0x24(%rsp), %r13d
movb $0x1, %r10b
movl 0x3c(%rsp), %ecx
movl 0x38(%rsp), %eax
movl 0x34(%rsp), %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmpl 0x40(%rsp), %r13d
je 0x14458
cmpl 0x30(%rsp), %r13d
je 0x146ba
leaq 0x4bd5(%rip), %rax      # 0x19199
cmpl 0x4(%rsp), %r13d
leaq 0x4be6(%rip), %rcx      # 0x191b6
cmovgq %rcx, %rax
movq %rax, 0x8(%rsp)
jg 0x1427c
movb 0x20(%rsp), %al
xorb $0x1, %al
testb $0x1, %al
jne 0x1427c
movl 0x1c(%rsp), %ecx
testl %ecx, %ecx
js 0x14641
movl 0x4(%rsp), %eax
cmpl $0x1fff, %eax           # imm = 0x1FFF
jg 0x1479e
movl %eax, %esi
cltq
incl %esi
movw %cx, 0x834(%r14,%rax,4)
movl %ecx, %ecx
movb 0x836(%r14,%rcx,4), %cl
movb %cl, 0x836(%r14,%rax,4)
movl %esi, %edx
cmpl %esi, %r13d
je 0x14637
movslq %r13d, %rcx
movb 0x836(%r14,%rcx,4), %cl
movb %cl, 0x837(%r14,%rax,4)
jmp 0x1464e
movl 0x4(%rsp), %edx
cmpl %edx, %r13d
je 0x147aa
movl %edx, 0x4(%rsp)
movzwl %r13w, %esi
movl %edi, 0x20(%rsp)
movq %r14, %rdi
movl %r9d, 0x8(%rsp)
callq 0x14df8
movb $0x1, %r10b
movl 0x8(%rsp), %r9d
movl 0x20(%rsp), %edi
movl 0x24(%rsp), %r8d
movl 0x4(%rsp), %r11d
testl %r8d, %r11d
sete 0x1c(%rsp)
cmpl $0x1000, %r11d          # imm = 0x1000
setl %sil
movq 0x10(%rsp), %rdx
leal 0x1(%rdx), %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
shll %cl, %eax
notl %eax
testb %sil, 0x1c(%rsp)
cmovnel %ecx, %edx
cmovel %r8d, %eax
movl %edx, %ecx
movl %r11d, %esi
movl %r13d, %edx
jmp 0x14458
movq %rbx, %rdi
movl %r9d, %esi
callq 0xfe58
movq 0xb8(%rbx), %rax
cmpq 0xc0(%rbx), %rax
jae 0x146e4
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%rbx)
movb (%rax), %al
jmp 0x14724
cmpl $0x0, 0x30(%rbx)
je 0x14730
movq 0x28(%rbx), %rdi
movl 0x34(%rbx), %edx
movq %r15, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0x14706
movslq %eax, %rcx
addq %r15, %rcx
movb (%r15), %al
jmp 0x14716
movl $0x0, 0x30(%rbx)
movb $0x0, 0x38(%rbx)
xorl %eax, %eax
movq %r12, %rcx
movq %rcx, 0xc0(%rbx)
movq %r12, 0xb8(%rbx)
testb %al, %al
je 0x14730
movzbl %al, %esi
movq %rbx, %rdi
jmp 0x146c0
movq 0x8(%r14), %rbx
testq %rbx, %rbx
je 0x14288
cmpq $0x0, 0x28(%rsp)
jne 0x1428a
movl 0x4(%r14), %eax
imull (%r14), %eax
cmpl $0x0, 0x24(%r14)
setg %cl
testl %eax, %eax
setg %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x1428a
movl %eax, %eax
xorl %ecx, %ecx
movq 0x18(%r14), %rdx
cmpb $0x0, (%rdx,%rcx)
jne 0x14791
movslq 0x24(%r14), %rdx
movb $-0x1, 0x37(%r14,%rdx,4)
movq 0x8(%r14), %rdx
movslq 0x24(%r14), %rsi
movl 0x34(%r14,%rsi,4), %esi
movl %esi, (%rdx,%rcx,4)
incq %rcx
cmpq %rcx, %rax
jne 0x1476d
jmp 0x1428a
leaq 0x4a02(%rip), %rax      # 0x191a7
jmp 0x14277
leaq 0x4a05(%rip), %rax      # 0x191b6
jmp 0x14277