// File: /workspace/github_c_makefile_star2_O3/snej[P]zdelta/infcodes.c
// Function: inflate_codes
int inflate_codes(s, z, r)
     inflate_blocks_statef *s;
     zd_streamp z;
     int r;
{
  uInt j;               /* temporary storage */
  inflate_huft *t;      /* temporary pointer */
  uInt e;               /* extra bits or operation */
  uLong b;              /* bit buffer */
  uInt k;               /* bits in bit buffer */
  Bytef *p;             /* input data pointer */
  uInt n;               /* bytes available there */
  Bytef *q;             /* output window write pointer */
  uInt m;               /* bytes to end of window or read pointer */
  Bytef *f;             /* pointer to copy strings from */
  inflate_codes_statef *c = s->sub.decode.codes;  /* codes state */

  /* zdelta local variables */
  uInt best_ptr = 0;
  ulg *rwptr = s->rwptr;         /* zdelta: reference window ptr */

  /* copy input/output information to locals (UPDATE macro restores) */
  LOAD

  /* process input and output based on current state */
  while (1) switch (c->mode)
  {    /* waiting for "i:"=input, "o:"=output, "x:"=nothing */
  case START:         /* x: set up for LEN */
#ifndef SLOW
    /* zdelta: the zdelta maximum match length is 4098 */
    /*        if (m >= 258 && n >= 10)                 */
    if (m >= MAX_MATCH && n >= 10) 
    {
      UPDATE
      r = inflate_fast(c->lbits, c->dbits, c->zdbits, 
		       c->ltree, c->dtree, c->zdtree, s, z);
      LOAD
      if (r != ZD_OK)
      {
	c->mode = r == ZD_STREAM_END ? WASH : BADCODE;
	break;
      }
    }
#endif /* !SLOW */
    c->sub.code.need = c->dbits;
    c->sub.code.tree = c->dtree;
    c->mode = DIST;
  case DIST:          /* i: get literal/distance/eob next */
    j = c->sub.code.need;
    NEEDBITS(j)
    t = c->sub.code.tree + ((uInt)b & inflate_mask[j]);
    DUMPBITS(t->bits)
    e = (uInt)(t->exop);
    if (e == 0)               /* literal */
    {
      c->sub.lit = t->base;
      Tracevv((stderr, t->base >= 0x20 && t->base < 0x7f ?
	       "inflate:         literal '%c'\n" :
	       "inflate:         literal 0x%02x\n", t->base));
      c->mode = LIT;
      break;
    }
    if (e & 16)               /* distance */
    {
      c->sub.copy.get = e & 15;
      c->dist = t->base;
      c->mode = DISTEXT;
      break;
    }
    if ((e & 64) == 0)        /* next table */
    {
      c->sub.code.need = e;
      c->sub.code.tree = t + t->base;
      break;
    }
    if (e & 32)               /* end of block */
    {
      Tracevv((stderr, "inflate:         end of block\n"));
      c->mode = WASH;
      break;
    }
    c->mode = BADCODE;        /* invalid code */
    z->msg = (char*)"invalid distance code";
    r = ZD_DATA_ERROR;
    LEAVE
  case DISTEXT:       /* i: getting distance extra */
    j = c->sub.copy.get;
    NEEDBITS(j)
    c->dist += (uInt)((uInt)b & inflate_mask[j]);
    DUMPBITS(j)
    Tracevv((stderr, "inflate:         distance %u\n", c->dist));
    c->sub.code.need = c->lbits;
    c->sub.code.tree = c->ltree;
    c->mode = LEN;
  case LEN:           /* i: get length next */
    j = c->sub.code.need;
    NEEDBITS(j)
    t = c->sub.code.tree + ((uInt)b & inflate_mask[j]);
    DUMPBITS(t->bits)
    e = (uInt)(t->exop);
    if (e & 16)               /* length */
    {
      c->sub.copy.get = e & 15;
      c->len = t->base;
      c->mode = LENEXT;
      break;
    }
    if ((e & 64) == 0)        /* next table */
    {
      c->sub.code.need = e;
      c->sub.code.tree = t + t->base;
      break;
    }
    c->mode = BADCODE;        /* invalid code */
    z->msg = (char*)"invalid literal/length code";
    r = ZD_DATA_ERROR;
    LEAVE
  case LENEXT:        /* i: getting length extra (have base) */
    j = c->sub.copy.get;
    NEEDBITS(j)
    c->len += (uInt)b & inflate_mask[j];
    DUMPBITS(j)
    Tracevv((stderr, "inflate:         length %u\n", c->len));
    if(!(c->len & REFMATCH)) /*target match, negative sign, no ptr to update*/
    { 
      c->mode = COPY_T;
      break;
    }
    c->sub.code.need = c->zdbits;
    c->sub.code.tree = c->zdtree;
    c->mode = ZDCODE;
  case ZDCODE:          /* i: get the distance sign and reference pointer */
    j = c->sub.code.need;
    NEEDBITS(j)
    t = c->sub.code.tree + ((uInt)b & inflate_mask[j]);
    DUMPBITS(t->bits)
    e = (uInt)(t->exop);
    if (e == 0)         /* zdcode */
    {
      best_ptr = t->base;                /* get reference pointer */
      c->rw    = best_ptr/2;
      c->sign  = (c->len>>8) & ZD_MINUS; /* get the sign          */
      /* jump to the beginning of the match */
      if (c->sign == ZD_PLUS) {
        c->bp = rwptr[best_ptr] + c->dist;
      } else {
        c->bp = rwptr[best_ptr] - c->dist;
      }
      c->len  &= (REFMATCH-1);           /* normalize the length  */
      if(c->dist > ZD_FAR){              /* updated base pointers */
	if(s->stable[best_ptr])
	  s->stable[best_ptr] = 0;
	else
	  rwptr[best_ptr] = c->bp + c->len;
      }
      else{
	s->stable[best_ptr] = 1;
	rwptr[best_ptr] = c->bp + c->len;
      }

      c->mode = COPY_R;
      break;
    }
    if ((e & 64) == 0)        /* next table */
    {
      c->sub.code.need = e;
      c->sub.code.tree = t + t->base;
      break;
    }
    c->mode = BADCODE;        /* invalid code */
    z->msg = (char*)"invalid zdelta code";
    r = ZD_DATA_ERROR;
    LEAVE
  case COPY_R: 
    /* o: copying bytes from reference data to window, waiting for space */
    f=z->base[c->rw]+c->bp;       /* do the coping */
    while (c->len)
    {
      NEEDOUT
      OUTBYTE(*f++)
      if (f == s->end)
	f = s->window;
      c->len--;
      c->bp++;
    }
    c->mode = START;
    break;
  case COPY_T:
    /* o: copying bytes from target data to window, waiting for space */
#ifndef __TURBOC__ /* Turbo C bug for following expression */
    f = (uInt)(q - s->window) < c->dist ?
      s->end - (c->dist - (q - s->window)) :
	q - c->dist;
#else
    f = q - c->dist;
    if ((uInt)(q - s->window) < c->dist)
      f = s->end - (c->dist - (uInt)(q - s->window));
#endif
    while (c->len)
    {
      NEEDOUT
      OUTBYTE(*f++)
      if (f == s->end)
	f = s->window;
      c->len--;
    }
    c->mode = START;
    break;
  case LIT:           /* o: got literal, waiting for output space */
    NEEDOUT
    OUTBYTE(c->sub.lit)
    TraceHuf( (stderr, "d:%u\n", c->sub.lit) );
    c->mode = START;
    break;
  case WASH:          /* o: got eob, possibly more output */
    if (k > 7)        /* return unused byte, if any */
    {
      Assert(k < 16, "inflate_codes grabbed too many bytes")
      k -= 8;
      n++;
      p--;            /* can always return one */
    }
    FLUSH
    if (s->read != s->write)
      LEAVE
    c->mode = END;
  case END:
    r = ZD_STREAM_END;
    LEAVE
  case BADCODE:       /* x: got error */
    r = ZD_DATA_ERROR;
    LEAVE
  default:
    r = ZD_STREAM_ERROR;
    LEAVE
  }
#ifdef NEED_DUMMY_RETURN
  return Z_STREAM_ERROR;  /* Some dumb compilers complain without this */
#endif
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %r13
movq 0x58(%rdi), %rdi
movq 0x50(%r14), %rsi
cmpq %rsi, %rdi
jae 0x76a0
movq %rdi, %rax
notq %rax
addq %rax, %rsi
jmp 0x76a7
movq 0x48(%r14), %rsi
subq %rdi, %rsi
movq (%rbx), %rax
movq %rax, 0x8(%rsp)
movl 0x8(%rbx), %r12d
movq 0x30(%r14), %r15
movl 0x2c(%r14), %ebp
movl (%r13), %eax
cmpl $0xb, %eax
ja 0x8013
movl %eax, %eax
leaq 0x2a63(%rip), %rcx      # 0xa134
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb 0x31(%r13), %al
movq 0x40(%r13), %r8
cmpl $0x1002, %esi           # imm = 0x1002
jb 0x7d69
cmpl $0xa, %r12d
jb 0x7d69
movq %r15, 0x30(%r14)
movl %ebp, 0x2c(%r14)
movl %r12d, 0x8(%rbx)
movq 0x8(%rsp), %rdx
movq %rdx, %rcx
subq (%rbx), %rcx
addq %rcx, 0x10(%rbx)
movzbl %al, %esi
movq %rdx, (%rbx)
movq %rdi, 0x58(%r14)
movzbl 0x30(%r13), %edi
movzbl 0x32(%r13), %edx
movq 0x38(%r13), %rcx
movq 0x48(%r13), %r9
pushq %rbx
pushq %r14
callq 0x8128
addq $0x10, %rsp
movl %eax, %edx
movq 0x58(%r14), %rdi
movq 0x50(%r14), %rsi
cmpq %rsi, %rdi
jae 0x7a7d
movq %rdi, %rax
notq %rax
addq %rax, %rsi
jmp 0x7a84
movl 0x20(%r13), %eax
cmpl %eax, %ebp
jae 0x7aca
testl %r12d, %r12d
je 0x7f2c
movq 0x8(%rsp), %rcx
leaq 0x1(%rcx), %r8
movl $0x1, %r9d
subl %r12d, %r9d
movl %ebp, %ecx
movq %r15, %rdx
movzbl -0x1(%r8), %r15d
shlq %cl, %r15
orq %rdx, %r15
leal 0x8(%rcx), %edx
cmpl %eax, %edx
jae 0x7ab8
incq %r8
incl %r9d
movl %edx, %ecx
cmpl $0x1, %r9d
jne 0x7785
jmp 0x7f2a
movl 0x20(%r13), %eax
cmpl %eax, %ebp
jae 0x793d
testl %r12d, %r12d
je 0x7f2c
movq 0x8(%rsp), %rcx
leaq 0x1(%rcx), %r8
movl $0x1, %r9d
subl %r12d, %r9d
movl %ebp, %ecx
movq %r15, %rdx
movzbl -0x1(%r8), %r15d
shlq %cl, %r15
orq %rdx, %r15
leal 0x8(%rcx), %edx
cmpl %eax, %edx
jae 0x7bcd
incq %r8
incl %r9d
movl %edx, %ecx
cmpl $0x1, %r9d
jne 0x77da
jmp 0x7f2a
movl 0x28(%r13), %eax
jmp 0x7d7c
movq %r12, 0x10(%rsp)
movq %rdi, %rax
subq 0x40(%r14), %rax
movl 0x8(%r13), %ecx
cmpl %eax, %ecx
jbe 0x7947
movq 0x48(%r14), %r12
jmp 0x794c
movl 0x28(%r13), %eax
jmp 0x7c33
movq %r12, 0x10(%rsp)
cmpl $0x0, 0x4(%r13)
je 0x7a24
movslq 0x1c(%r13), %rax
movq 0x30(%rbx,%rax,8), %r12
addq 0x10(%r13), %r12
testl %esi, %esi
je 0x7862
movq %rdi, %rcx
jmp 0x78f4
cmpq 0x48(%r14), %rdi
je 0x78aa
movq %rdi, %rcx
movq %rcx, 0x58(%r14)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8c64
movq 0x50(%r14), %rdi
movq 0x58(%r14), %rdx
cmpq %rdi, %rdx
jae 0x7896
movq %rdx, %rsi
notq %rsi
addq %rdi, %rsi
movq 0x48(%r14), %rcx
jmp 0x78a0
movq 0x48(%r14), %rcx
movq %rcx, %rsi
subq %rdx, %rsi
cmpq %rcx, %rdx
je 0x78cd
movq %rdx, %rcx
jmp 0x78ec
movq 0x40(%r14), %rcx
movq 0x50(%r14), %rax
cmpq %rcx, %rax
je 0x7868
movl %ecx, %esi
notl %esi
addl %eax, %esi
subl %ecx, %edi
cmpq %rax, %rcx
cmovbl %esi, %edi
movl %edi, %esi
testl %edi, %edi
jne 0x78f4
jmp 0x786b
movq 0x40(%r14), %rcx
cmpq %rcx, %rdi
je 0x78a5
movq %rcx, %rsi
notq %rsi
addq %rdi, %rsi
subq %rcx, %rdx
cmpq %rdi, %rcx
cmovbq %rsi, %rdx
movq %rdx, %rsi
testl %esi, %esi
je 0x7f75
movb (%r12), %al
incq %r12
movb %al, (%rcx)
cmpq 0x48(%r14), %r12
jne 0x7907
movq 0x40(%r14), %r12
incq %rcx
decl %esi
incq 0x10(%r13)
xorl %edx, %edx
decl 0x4(%r13)
movq %rcx, %rdi
jne 0x7856
jmp 0x7a27
movl 0x28(%r13), %eax
jmp 0x7afb
testl %esi, %esi
je 0x7a3e
movq %rdi, %rcx
jmp 0x7ef1
movq 0x8(%rsp), %r8
jmp 0x7bda
xorl %eax, %eax
movq %rdi, %r12
cmpl $0x0, 0x4(%r13)
je 0x7a24
subq %rcx, %rax
addq %rax, %r12
testl %esi, %esi
je 0x7969
movq %rdi, %rcx
jmp 0x79fb
cmpq 0x48(%r14), %rdi
je 0x79b1
movq %rdi, %rcx
movq %rcx, 0x58(%r14)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8c64
movq 0x50(%r14), %rdi
movq 0x58(%r14), %rdx
cmpq %rdi, %rdx
jae 0x799d
movq %rdx, %rsi
notq %rsi
addq %rdi, %rsi
movq 0x48(%r14), %rcx
jmp 0x79a7
movq 0x48(%r14), %rcx
movq %rcx, %rsi
subq %rdx, %rsi
cmpq %rcx, %rdx
je 0x79d4
movq %rdx, %rcx
jmp 0x79f3
movq 0x40(%r14), %rcx
movq 0x50(%r14), %rax
cmpq %rcx, %rax
je 0x796f
movl %ecx, %esi
notl %esi
addl %eax, %esi
subl %ecx, %edi
cmpq %rax, %rcx
cmovbl %esi, %edi
movl %edi, %esi
testl %edi, %edi
jne 0x79fb
jmp 0x7972
movq 0x40(%r14), %rcx
cmpq %rcx, %rdi
je 0x79ac
movq %rcx, %rsi
notq %rsi
addq %rdi, %rsi
subq %rcx, %rdx
cmpq %rdi, %rcx
cmovbq %rsi, %rdx
movq %rdx, %rsi
testl %esi, %esi
je 0x7f75
movb (%r12), %al
incq %r12
movb %al, (%rcx)
cmpq 0x48(%r14), %r12
jne 0x7a0e
movq 0x40(%r14), %r12
incq %rcx
decl %esi
xorl %edx, %edx
decl 0x4(%r13)
movq %rcx, %rdi
jne 0x795d
jmp 0x7a27
movq %rdi, %rcx
movl $0x0, (%r13)
xorl %eax, %eax
movq %rcx, %rdi
movq 0x10(%rsp), %r12
jmp 0x76bf
cmpq 0x48(%r14), %rdi
je 0x7ea0
movq %rdi, %rcx
movq %rcx, 0x58(%r14)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8c64
movq 0x50(%r14), %rdi
movq 0x58(%r14), %rdx
cmpq %rdi, %rdx
jae 0x7e8c
movq %rdx, %rsi
notq %rsi
addq %rdi, %rsi
movq 0x48(%r14), %rcx
jmp 0x7e96
movq 0x48(%r14), %rsi
subq %rdi, %rsi
movq (%rbx), %rax
movq %rax, 0x8(%rsp)
movl 0x8(%rbx), %r12d
movq 0x30(%r14), %r15
movl 0x2c(%r14), %ebp
testl %edx, %edx
je 0x7d5f
xorl %eax, %eax
cmpl $0x1, %edx
setne %al
leal 0x9(,%rax,2), %eax
movl %eax, (%r13)
jmp 0x76bf
addl $0x8, %ecx
negl %r9d
xorl %edx, %edx
movl %ecx, %ebp
movl %r9d, %r12d
movq %r8, 0x8(%rsp)
leaq 0x86cf(%rip), %rcx      # 0x101a0
movl (%rcx,%rax,4), %ecx
andl %r15d, %ecx
addl %ecx, 0x8(%r13)
movl %eax, %ecx
shrq %cl, %r15
subl %eax, %ebp
movzbl 0x30(%r13), %eax
movl %eax, 0x28(%r13)
movq 0x38(%r13), %rcx
movq %rcx, 0x20(%r13)
movl $0x1, (%r13)
cmpl %eax, %ebp
jae 0x7b44
testl %r12d, %r12d
je 0x7f2c
movq 0x8(%rsp), %rcx
leaq 0x1(%rcx), %r8
movl $0x1, %r9d
subl %r12d, %r9d
movl %ebp, %ecx
movq %r15, %rdx
movzbl -0x1(%r8), %r15d
shlq %cl, %r15
orq %rdx, %r15
leal 0x8(%rcx), %edx
cmpl %eax, %edx
jae 0x7b4b
incq %r8
incl %r9d
movl %edx, %ecx
cmpl $0x1, %r9d
jne 0x7b1c
jmp 0x7f2a
movq 0x8(%rsp), %r8
jmp 0x7b58
addl $0x8, %ecx
negl %r9d
xorl %edx, %edx
movl %ecx, %ebp
movl %r9d, %r12d
movq 0x20(%r13), %rcx
movl %eax, %eax
leaq 0x863b(%rip), %r9       # 0x101a0
movl (%r9,%rax,4), %eax
andl %r15d, %eax
leaq (%rcx,%rax,8), %rax
movzbl 0x1(%rax), %ecx
shrq %cl, %r15
subl %ecx, %ebp
movzbl (%rax), %ecx
testb $0x10, %cl
jne 0x7ba8
testb $0x40, %cl
jne 0x8045
movl %ecx, 0x28(%r13)
movl 0x4(%rax), %ecx
leaq (%rax,%rcx,8), %rax
movq %rax, 0x20(%r13)
movl $0x1, %eax
movq %r8, 0x8(%rsp)
jmp 0x76bf
andl $0xf, %ecx
movl %ecx, 0x20(%r13)
movl 0x4(%rax), %eax
movl %eax, 0x4(%r13)
movl $0x2, (%r13)
movl $0x2, %eax
movq %r8, 0x8(%rsp)
jmp 0x76bf
addl $0x8, %ecx
negl %r9d
xorl %edx, %edx
movl %ecx, %ebp
movl %r9d, %r12d
leaq 0x85bf(%rip), %rcx      # 0x101a0
movl (%rcx,%rax,4), %r9d
andl %r15d, %r9d
addl 0x4(%r13), %r9d
movl %eax, %ecx
shrq %cl, %r15
movl %r9d, 0x4(%r13)
subl %eax, %ebp
btl $0xe, %r9d
jb 0x7c15
movl $0x7, (%r13)
movl $0x7, %eax
movq %r8, 0x8(%rsp)
jmp 0x76bf
movzbl 0x32(%r13), %eax
movl %eax, 0x28(%r13)
movq 0x48(%r13), %rcx
movq %rcx, 0x20(%r13)
movl $0x5, (%r13)
movq %r8, 0x8(%rsp)
cmpl %eax, %ebp
jae 0x7c8e
testl %r12d, %r12d
je 0x7f2c
movq 0x8(%rsp), %rcx
leaq 0x1(%rcx), %r9
movl $0x1, %r8d
subl %r12d, %r8d
movl %ebp, %ecx
movq %r15, %rdx
movzbl -0x1(%r9), %r15d
shlq %cl, %r15
orq %rdx, %r15
leal 0x8(%rcx), %edx
cmpl %eax, %edx
jae 0x7c7c
incq %r9
incl %r8d
movl %edx, %ecx
cmpl $0x1, %r8d
jne 0x7c54
jmp 0x7f2a
addl $0x8, %ecx
negl %r8d
xorl %edx, %edx
movl %ecx, %ebp
movq %r9, 0x8(%rsp)
movl %r8d, %r12d
movq 0x20(%r13), %rcx
movl %eax, %eax
leaq 0x8505(%rip), %r8       # 0x101a0
movl (%r8,%rax,4), %eax
andl %r15d, %eax
leaq (%rcx,%rax,8), %rax
movzbl 0x1(%rax), %ecx
shrq %cl, %r15
subl %ecx, %ebp
movzbl (%rax), %ecx
testl %ecx, %ecx
je 0x7cd8
testb $0x40, %cl
jne 0x8059
movl %ecx, 0x28(%r13)
movl 0x4(%rax), %ecx
leaq (%rax,%rcx,8), %rax
movq %rax, 0x20(%r13)
movl $0x5, %eax
jmp 0x76bf
movl 0x4(%rax), %eax
movl %eax, %ecx
shrl %ecx
movl %ecx, 0x1c(%r13)
movl 0x4(%r13), %ecx
movl 0x8(%r13), %r9d
movl %ecx, %r8d
shrl $0x8, %r8d
andb $-0x80, %r8b
movb %r8b, 0x18(%r13)
movq %r9, %r8
negq %r8
testw %cx, %cx
cmovnsq %r9, %r8
addq 0x70(%r14,%rax,8), %r8
andl $0x3fff, %ecx           # imm = 0x3FFF
movq %r8, 0x10(%r13)
movl %ecx, 0x4(%r13)
cmpq $0x101, %r9             # imm = 0x101
jb 0x7d43
cmpq $0x0, 0x80(%r14,%rax,8)
je 0x7f10
movq $0x0, 0x80(%r14,%rax,8)
jmp 0x7f18
movq $0x1, 0x80(%r14,%rax,8)
movl %ecx, %ecx
addq 0x10(%r13), %rcx
movq %rcx, 0x70(%r14,%rax,8)
jmp 0x7f18
movb 0x31(%r13), %al
movq 0x40(%r13), %r8
xorl %edx, %edx
movzbl %al, %eax
movl %eax, 0x28(%r13)
movq %r8, 0x20(%r13)
movl $0x3, (%r13)
cmpl %eax, %ebp
jae 0x7dc5
testl %r12d, %r12d
je 0x7f2c
movq 0x8(%rsp), %rcx
leaq 0x1(%rcx), %r8
movl $0x1, %r9d
subl %r12d, %r9d
movl %ebp, %ecx
movq %r15, %rdx
movzbl -0x1(%r8), %r15d
shlq %cl, %r15
orq %rdx, %r15
leal 0x8(%rcx), %edx
cmpl %eax, %edx
jae 0x7dcc
incq %r8
incl %r9d
movl %edx, %ecx
cmpl $0x1, %r9d
jne 0x7d9d
jmp 0x7f2a
movq 0x8(%rsp), %r8
jmp 0x7dd9
addl $0x8, %ecx
negl %r9d
xorl %edx, %edx
movl %ecx, %ebp
movl %r9d, %r12d
movq 0x20(%r13), %rcx
movl %eax, %eax
leaq 0x83ba(%rip), %r9       # 0x101a0
movl (%r9,%rax,4), %eax
andl %r15d, %eax
leaq (%rcx,%rax,8), %rax
movzbl 0x1(%rax), %ecx
shrq %cl, %r15
subl %ecx, %ebp
movzbl (%rax), %ecx
testl %ecx, %ecx
je 0x7e29
testb $0x10, %cl
jne 0x7e47
testb $0x40, %cl
jne 0x7e6c
movl %ecx, 0x28(%r13)
movl 0x4(%rax), %ecx
leaq (%rax,%rcx,8), %rax
movq %rax, 0x20(%r13)
movl $0x3, %eax
movq %r8, 0x8(%rsp)
jmp 0x76bf
movl 0x4(%rax), %eax
movl %eax, 0x20(%r13)
movl $0x8, (%r13)
movl $0x8, %eax
movq %r8, 0x8(%rsp)
jmp 0x76bf
andl $0xf, %ecx
movl %ecx, 0x20(%r13)
movl 0x4(%rax), %eax
movl %eax, 0x8(%r13)
movl $0x4, (%r13)
movl $0x4, %eax
movq %r8, 0x8(%rsp)
jmp 0x76bf
testb $0x20, %cl
je 0x80d6
movl $0x9, (%r13)
movl $0x9, %eax
movq %r8, 0x8(%rsp)
jmp 0x76bf
movq 0x48(%r14), %rcx
movq %rcx, %rsi
subq %rdx, %rsi
cmpq %rcx, %rdx
je 0x7eca
movq %rdx, %rcx
jmp 0x7ee9
movq 0x40(%r14), %rcx
movq 0x50(%r14), %rax
cmpq %rcx, %rax
je 0x7a48
movl %ecx, %esi
notl %esi
addl %eax, %esi
subl %ecx, %edi
cmpq %rax, %rcx
cmovbl %esi, %edi
movl %edi, %esi
testl %edi, %edi
jne 0x7ef1
jmp 0x7a4b
movq 0x40(%r14), %rcx
cmpq %rcx, %rdi
je 0x7e9b
movq %rcx, %rsi
notq %rsi
addq %rdi, %rsi
subq %rcx, %rdx
cmpq %rdi, %rcx
cmovbq %rsi, %rdx
movq %rdx, %rsi
testl %esi, %esi
je 0x80c5
movb 0x20(%r13), %al
movb %al, (%rcx)
incq %rcx
decl %esi
movl $0x0, (%r13)
xorl %eax, %eax
movq %rcx, %rdi
xorl %edx, %edx
jmp 0x76bf
addq %rcx, %r8
movq %r8, 0x70(%r14,%rax,8)
movl $0x6, (%r13)
movl $0x6, %eax
jmp 0x76bf
xorl %edx, %edx
movl %r12d, %eax
movq 0x8(%rsp), %rcx
addq %rax, %rcx
leal (%rbp,%r12,8), %eax
movq %r15, 0x30(%r14)
movl %eax, 0x2c(%r14)
movl $0x0, 0x8(%rbx)
movq %rcx, %rax
subq (%rbx), %rax
addq %rax, 0x10(%rbx)
movq %rcx, (%rbx)
movq %rdi, 0x58(%r14)
movq %r14, %rdi
movq %rbx, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8c64
movq %r15, 0x30(%r14)
movl %ebp, 0x2c(%r14)
movq 0x10(%rsp), %rdx
movl %edx, 0x8(%rbx)
movq 0x8(%rsp), %rsi
movq %rsi, %rdx
subq (%rbx), %rdx
addq %rdx, 0x10(%rbx)
movq %rsi, (%rbx)
movq %rcx, 0x58(%r14)
movq %r14, %rdi
movq %rbx, %rsi
movl %eax, %edx
jmp 0x7f62
movq %r12, %rax
movl %ebp, %r12d
movq 0x8(%rsp), %rbp
jmp 0x8099
movq %r12, %rcx
leal -0x8(%rbp), %r12d
xorl %eax, %eax
cmpl $0x8, %ebp
cmovbl %ebp, %r12d
setae %al
movq 0x8(%rsp), %rbp
subq %rax, %rbp
addl %eax, %ecx
movq %rcx, 0x10(%rsp)
movq %rdi, 0x58(%r14)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8c64
movq 0x58(%r14), %rdi
cmpq %rdi, 0x50(%r14)
je 0x808c
movq %r15, 0x30(%r14)
movl %r12d, 0x2c(%r14)
movq 0x10(%rsp), %rcx
movl %ecx, 0x8(%rbx)
movq %rbp, %rcx
subq (%rbx), %rcx
addq %rcx, 0x10(%rbx)
movq %rbp, (%rbx)
jmp 0x7f9b
movq %r15, 0x30(%r14)
movl %ebp, 0x2c(%r14)
movl %r12d, 0x8(%rbx)
movq 0x8(%rsp), %rcx
movq %rcx, %rax
subq (%rbx), %rax
addq %rax, 0x10(%rbx)
movq %rcx, (%rbx)
movq %rdi, 0x58(%r14)
movq %r14, %rdi
movq %rbx, %rsi
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
jmp 0x7f62
movl $0xb, (%r13)
leaq 0x2126(%rip), %rax      # 0xa17a
jmp 0x80e5
movl $0xb, (%r13)
leaq 0x212e(%rip), %rax      # 0xa196
movq %rax, 0x50(%rbx)
movq %r15, 0x30(%r14)
movl %ebp, 0x2c(%r14)
movl %r12d, 0x8(%rbx)
movq 0x8(%rsp), %rcx
movq %rcx, %rax
subq (%rbx), %rax
addq %rax, 0x10(%rbx)
movq %rcx, (%rbx)
jmp 0x8102
movq 0x10(%rsp), %rax
movl $0xa, (%r13)
movq %r15, 0x30(%r14)
movl %r12d, 0x2c(%r14)
movl %eax, 0x8(%rbx)
movq %rbp, %rax
subq (%rbx), %rax
addq %rax, 0x10(%rbx)
movq %rbp, (%rbx)
movq %rdi, 0x58(%r14)
movq %r14, %rdi
movq %rbx, %rsi
movl $0x1, %edx
jmp 0x7f62
movq %r15, 0x30(%r14)
movl %ebp, 0x2c(%r14)
movl %r12d, 0x8(%rbx)
jmp 0x7f85
movl $0xb, (%r13)
leaq 0x207f(%rip), %rax      # 0xa164
movq %rax, 0x50(%rbx)
movq %r15, 0x30(%r14)
movl %ebp, 0x2c(%r14)
movl %r12d, 0x8(%rbx)
movq %r8, %rax
subq (%rbx), %rax
addq %rax, 0x10(%rbx)
movq %r8, (%rbx)
movq %rdi, 0x58(%r14)
movq %r14, %rdi
movq %rbx, %rsi
movl $0xfffffffd, %edx       # imm = 0xFFFFFFFD
jmp 0x7f62