// File: /workspace/github_c_makefile_star2_O2/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), %r12
movq 0x58(%rdi), %rdi
movq 0x50(%r14), %r9
cmpq %r9, %rdi
jae 0x70e9
movq %rdi, %rax
notq %rax
addq %rax, %r9
jmp 0x70f0
movq 0x48(%r14), %r9
subq %rdi, %r9
movq (%rbx), %rax
movq %rax, (%rsp)
movl 0x8(%rbx), %r13d
movq 0x30(%r14), %r15
movl 0x2c(%r14), %eax
movq %rax, 0x8(%rsp)
movl (%r12), %ecx
leaq 0x2f81(%rip), %rbp      # 0xa094
cmpl $0xb, %ecx
ja 0x7a79
movl %ecx, %eax
movslq (%rbp,%rax,4), %rax
addq %rbp, %rax
jmpq *%rax
movb 0x31(%r12), %al
movq 0x40(%r12), %r8
cmpl $0x1002, %r9d           # imm = 0x1002
jb 0x7815
cmpl $0xa, %r13d
jb 0x7815
movq %r15, 0x30(%r14)
movq 0x8(%rsp), %rcx
movl %ecx, 0x2c(%r14)
movl %r13d, 0x8(%rbx)
movq (%rsp), %rdx
movq %rdx, %rcx
subq (%rbx), %rcx
addq %rcx, 0x10(%rbx)
movzbl %al, %esi
movq %rdx, (%rbx)
movq %rdi, 0x58(%r14)
movzbl 0x30(%r12), %edi
movzbl 0x32(%r12), %edx
movq 0x38(%r12), %rcx
movq 0x48(%r12), %r9
pushq %rbx
pushq %r14
callq 0x7bb0
popq %rcx
popq %rdx
movl %eax, %edx
movq 0x58(%r14), %rdi
movq 0x50(%r14), %r9
cmpq %r9, %rdi
jae 0x7561
movq %rdi, %rax
notq %rax
addq %rax, %r9
jmp 0x7568
movl 0x20(%r12), %esi
movq 0x8(%rsp), %rax
movq (%rsp), %r8
movl %r13d, %r10d
cmpl %esi, %eax
jae 0x7326
subl $0x1, %r10d
jb 0x796d
movzbl (%r8), %edx
movl %eax, %ecx
shlq %cl, %rdx
incq %r8
orq %rdx, %r15
addl $0x8, %eax
xorl %edx, %edx
jmp 0x71c4
movq %rbx, 0x10(%rsp)
movq %rdi, %rbx
subq 0x40(%r14), %rbx
movl 0x8(%r12), %eax
cmpl %ebx, %eax
jbe 0x736c
movq 0x48(%r14), %rcx
jmp 0x7371
movl 0x28(%r12), %r11d
movq (%rsp), %r8
movl %r13d, %r10d
jmp 0x74cd
movslq 0x1c(%r12), %rax
movq %rbx, 0x10(%rsp)
movq 0x30(%rbx,%rax,8), %rbx
addq 0x10(%r12), %rbx
movl 0x4(%r12), %eax
testl %eax, %eax
je 0x7454
testl %r9d, %r9d
je 0x724d
movq %rdi, %rcx
jmp 0x72e3
cmpq 0x48(%r14), %rdi
je 0x7297
movq %rdi, %rcx
movq %rcx, 0x58(%r14)
movq %r14, %rdi
movq 0x10(%rsp), %rsi
callq 0x8758
movq 0x50(%r14), %rsi
movq 0x58(%r14), %rdx
cmpq %rsi, %rdx
jae 0x7283
movq %rdx, %r9
notq %r9
addq %rsi, %r9
movq 0x48(%r14), %rcx
jmp 0x728d
movq 0x48(%r14), %rcx
movq %rcx, %r9
subq %rdx, %r9
cmpq %rcx, %rdx
je 0x72bb
movq %rdx, %rcx
jmp 0x72da
movq 0x40(%r14), %rcx
movq 0x50(%r14), %rax
cmpq %rcx, %rax
je 0x7253
movl %ecx, %esi
notl %esi
addl %eax, %esi
subl %ecx, %edi
cmpq %rax, %rcx
cmovbl %esi, %edi
movl %edi, %r9d
testl %edi, %edi
jne 0x72e3
jmp 0x7256
movq 0x40(%r14), %rcx
cmpq %rcx, %rsi
je 0x7292
movq %rcx, %rdi
notq %rdi
addq %rsi, %rdi
subq %rcx, %rdx
cmpq %rsi, %rcx
cmovbq %rdi, %rdx
movq %rdx, %r9
testl %r9d, %r9d
je 0x79b6
movb (%rbx), %al
incq %rbx
movb %al, (%rcx)
cmpq 0x48(%r14), %rbx
jne 0x72f4
movq 0x40(%r14), %rbx
movl 0x4(%r12), %eax
decl %eax
movl %eax, 0x4(%r12)
incq 0x10(%r12)
incq %rcx
decl %r9d
xorl %edx, %edx
movq %rcx, %rdi
jmp 0x7238
testl %r9d, %r9d
je 0x7465
movq %rdi, %rsi
jmp 0x7678
leaq 0x8e73(%rip), %rcx      # 0x101a0
movl (%rcx,%rsi,4), %r11d
andl %r15d, %r11d
addl 0x4(%r12), %r11d
movl %esi, %ecx
shrq %cl, %r15
movl %r11d, 0x4(%r12)
subl %esi, %eax
btl $0xe, %r11d
jb 0x74a4
movl $0x7, (%r12)
pushq $0x7
popq %rcx
movq %rax, 0x8(%rsp)
movq %r8, (%rsp)
movl %r10d, %r13d
jmp 0x7113
xorl %ebx, %ebx
movq %rdi, %rcx
subq %rax, %rbx
addq %rcx, %rbx
movl 0x4(%r12), %eax
testl %eax, %eax
je 0x7454
testl %r9d, %r9d
je 0x7391
movq %rdi, %rcx
jmp 0x7427
cmpq 0x48(%r14), %rdi
je 0x73db
movq %rdi, %rcx
movq %rcx, 0x58(%r14)
movq %r14, %rdi
movq 0x10(%rsp), %rsi
callq 0x8758
movq 0x50(%r14), %rsi
movq 0x58(%r14), %rdx
cmpq %rsi, %rdx
jae 0x73c7
movq %rdx, %r9
notq %r9
addq %rsi, %r9
movq 0x48(%r14), %rcx
jmp 0x73d1
movq 0x48(%r14), %rcx
movq %rcx, %r9
subq %rdx, %r9
cmpq %rcx, %rdx
je 0x73ff
movq %rdx, %rcx
jmp 0x741e
movq 0x40(%r14), %rcx
movq 0x50(%r14), %rax
cmpq %rcx, %rax
je 0x7397
movl %ecx, %esi
notl %esi
addl %eax, %esi
subl %ecx, %edi
cmpq %rax, %rcx
cmovbl %esi, %edi
movl %edi, %r9d
testl %edi, %edi
jne 0x7427
jmp 0x739a
movq 0x40(%r14), %rcx
cmpq %rcx, %rsi
je 0x73d6
movq %rcx, %rdi
notq %rdi
addq %rsi, %rdi
subq %rcx, %rdx
cmpq %rsi, %rcx
cmovbq %rdi, %rdx
movq %rdx, %r9
testl %r9d, %r9d
je 0x79b6
movb (%rbx), %al
incq %rbx
movb %al, (%rcx)
cmpq 0x48(%r14), %rbx
jne 0x7438
movq 0x40(%r14), %rbx
incq %rcx
decl %r9d
movl 0x4(%r12), %eax
decl %eax
movl %eax, 0x4(%r12)
xorl %edx, %edx
movq %rcx, %rdi
jmp 0x737c
andl $0x0, (%r12)
xorl %ecx, %ecx
movq 0x10(%rsp), %rbx
jmp 0x7113
cmpq 0x48(%r14), %rdi
je 0x7625
movq %rdi, %rsi
movq %rsi, 0x58(%r14)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8758
movq 0x50(%r14), %rdx
movq 0x58(%r14), %rcx
cmpq %rdx, %rcx
jae 0x7611
movq %rcx, %r9
notq %r9
addq %rdx, %r9
movq 0x48(%r14), %rsi
jmp 0x761b
movzbl 0x32(%r12), %r11d
movl %r11d, 0x28(%r12)
movq 0x48(%r12), %rcx
movq %rcx, 0x20(%r12)
movl $0x5, (%r12)
movq %rax, 0x8(%rsp)
movq %r8, (%rsp)
movl %r10d, %r13d
movq %r8, %rsi
negq %rsi
movq 0x8(%rsp), %rax
cmpl %r11d, %eax
jae 0x7507
subl $0x1, %r13d
jb 0x791d
movq (%rsp), %rcx
movzbl (%rcx), %edx
incq %rcx
movq %rcx, (%rsp)
movl %eax, %ecx
shlq %cl, %rdx
orq %rdx, %r15
addl $0x8, %eax
decq %rsi
xorl %edx, %edx
jmp 0x74d8
movq 0x20(%r12), %rcx
movl %r11d, %r8d
leaq 0x8c8a(%rip), %r10      # 0x101a0
movl (%r10,%r8,4), %r8d
andl %r15d, %r8d
leaq (%rcx,%r8,8), %r8
movzbl 0x1(%r8), %ecx
shrq %cl, %r15
movl %eax, %r10d
subl %ecx, %r10d
movq %r10, 0x8(%rsp)
movzbl (%r8), %r10d
testl %r10d, %r10d
je 0x75a0
testb $0x40, %r10b
jne 0x7aa3
movl %r10d, 0x28(%r12)
movl 0x4(%r8), %eax
leaq (%r8,%rax,8), %rax
movq %rax, 0x20(%r12)
pushq $0x5
popq %rcx
jmp 0x7113
movq 0x48(%r14), %r9
subq %rdi, %r9
movq (%rbx), %rax
movq %rax, (%rsp)
movl 0x8(%rbx), %r13d
movq 0x30(%r14), %r15
movl 0x2c(%r14), %eax
movq %rax, 0x8(%rsp)
testl %edx, %edx
je 0x7809
xorl %eax, %eax
cmpl $0x1, %edx
setne %al
leal 0x9(,%rax,2), %ecx
movl %ecx, (%r12)
jmp 0x7113
movl 0x4(%r8), %eax
movl %eax, %ecx
shrl %ecx
movl %ecx, 0x1c(%r12)
movl 0x4(%r12), %ecx
movl 0x8(%r12), %r8d
movl %ecx, %esi
shrl $0x8, %esi
andb $-0x80, %sil
movb %sil, 0x18(%r12)
movq %r8, %rsi
negq %rsi
testw %cx, %cx
cmovnsq %r8, %rsi
addq 0x70(%r14,%rax,8), %rsi
andl $0x3fff, %ecx           # imm = 0x3FFF
movq %rsi, 0x10(%r12)
movl %ecx, 0x4(%r12)
cmpq $0x101, %r8             # imm = 0x101
jb 0x7696
cmpq $0x0, 0x80(%r14,%rax,8)
je 0x76b0
andq $0x0, 0x80(%r14,%rax,8)
jmp 0x76b8
movq 0x48(%r14), %rsi
movq %rsi, %r9
subq %rcx, %r9
cmpq %rsi, %rcx
je 0x7650
movq %rcx, %rsi
jmp 0x766f
movq 0x40(%r14), %rsi
movq 0x50(%r14), %rax
cmpq %rsi, %rax
je 0x746f
movl %esi, %ecx
notl %ecx
addl %eax, %ecx
subl %esi, %edi
cmpq %rax, %rsi
cmovbl %ecx, %edi
movl %edi, %r9d
testl %edi, %edi
jne 0x7678
jmp 0x7472
movq 0x40(%r14), %rsi
cmpq %rsi, %rdx
je 0x7620
movq %rsi, %rdi
notq %rdi
addq %rdx, %rdi
subq %rsi, %rcx
cmpq %rdx, %rsi
cmovbq %rdi, %rcx
movq %rcx, %r9
testl %r9d, %r9d
je 0x7b2b
movb 0x20(%r12), %al
movb %al, (%rsi)
incq %rsi
andl $0x0, (%r12)
decl %r9d
xorl %ecx, %ecx
movq %rsi, %rdi
xorl %edx, %edx
jmp 0x7113
movq $0x1, 0x80(%r14,%rax,8)
movl %ecx, %ecx
addq 0x10(%r12), %rcx
movq %rcx, 0x70(%r14,%rax,8)
jmp 0x76b8
addq %rcx, %rsi
movq %rsi, 0x70(%r14,%rax,8)
movl $0x6, (%r12)
pushq $0x6
popq %rcx
jmp 0x7113
movl 0x20(%r12), %esi
movq 0x8(%rsp), %rbp
movl %ebp, %eax
movq (%rsp), %r11
movq %r11, %r8
movl %r13d, %r10d
cmpl %esi, %eax
jae 0x771c
subl $0x1, %r10d
jb 0x7947
movzbl (%r8), %edx
movl %eax, %ecx
shlq %cl, %rdx
incq %r8
orq %rdx, %r15
addl $0x8, %eax
xorl %edx, %edx
jmp 0x76de
movl 0x28(%r12), %r11d
jmp 0x782b
movl 0x28(%r12), %r11d
movq (%rsp), %r8
movq 0x8(%rsp), %rax
jmp 0x7755
leaq 0x8a7d(%rip), %rcx      # 0x101a0
movl (%rcx,%rsi,4), %ecx
andl %r15d, %ecx
addl %ecx, 0x8(%r12)
movl %esi, %ecx
shrq %cl, %r15
subl %esi, %eax
movzbl 0x30(%r12), %r11d
movl %r11d, 0x28(%r12)
movq 0x38(%r12), %rcx
movq %rcx, 0x20(%r12)
movl $0x1, (%r12)
movl %r10d, %r13d
movq %r8, %r10
negq %r10
movq %rax, %rsi
movq %r8, (%rsp)
movq %r8, %rbp
movl %r13d, %r8d
cmpl %r11d, %eax
jae 0x7790
subl $0x1, %r8d
jb 0x7917
movzbl (%rbp), %edx
incq %rbp
movl %eax, %ecx
shlq %cl, %rdx
orq %rdx, %r15
addl $0x8, %eax
decq %r10
xorl %edx, %edx
jmp 0x7768
movq %rbx, %rsi
movq 0x20(%r12), %rcx
movl %r11d, %r11d
leaq 0x89fe(%rip), %rbx      # 0x101a0
movl (%rbx,%r11,4), %r11d
andl %r15d, %r11d
leaq (%rcx,%r11,8), %r11
movzbl 0x1(%r11), %ecx
shrq %cl, %r15
movl %eax, %ebx
subl %ecx, %ebx
movq %rbx, 0x8(%rsp)
movzbl (%r11), %ebx
testb $0x10, %bl
jne 0x77e9
testb $0x40, %bl
jne 0x7b1a
movl %ebx, 0x28(%r12)
movl 0x4(%r11), %eax
leaq (%r11,%rax,8), %rax
movq %rax, 0x20(%r12)
pushq $0x1
jmp 0x7907
andl $0xf, %ebx
movl %ebx, 0x20(%r12)
movl 0x4(%r11), %eax
movl %eax, 0x4(%r12)
movl $0x2, (%r12)
pushq $0x2
jmp 0x7907
movb 0x31(%r12), %al
movq 0x40(%r12), %r8
xorl %edx, %edx
movzbl %al, %r11d
movl %r11d, 0x28(%r12)
movq %r8, 0x20(%r12)
movl $0x3, (%r12)
movq (%rsp), %rbp
movq 0x8(%rsp), %rax
movq %rbp, %r10
negq %r10
movq %rax, %rsi
movq %rbp, (%rsp)
movl %r13d, %r8d
cmpl %r11d, %eax
jae 0x786c
subl $0x1, %r8d
jb 0x7917
movzbl (%rbp), %edx
incq %rbp
movl %eax, %ecx
shlq %cl, %rdx
orq %rdx, %r15
addl $0x8, %eax
decq %r10
xorl %edx, %edx
jmp 0x7844
movq %rbx, %rsi
movq 0x20(%r12), %rcx
movl %r11d, %r11d
leaq 0x8922(%rip), %rbx      # 0x101a0
movl (%rbx,%r11,4), %r11d
andl %r15d, %r11d
leaq (%rcx,%r11,8), %r11
movzbl 0x1(%r11), %ecx
shrq %cl, %r15
movl %eax, %ebx
subl %ecx, %ebx
movq %rbx, 0x8(%rsp)
movzbl (%r11), %ebx
testl %ebx, %ebx
je 0x78c2
testb $0x10, %bl
jne 0x78d7
testb $0x40, %bl
jne 0x78f4
movl %ebx, 0x28(%r12)
movl 0x4(%r11), %eax
leaq (%r11,%rax,8), %rax
movq %rax, 0x20(%r12)
pushq $0x3
jmp 0x7907
movl 0x4(%r11), %eax
movl %eax, 0x20(%r12)
movl $0x8, (%r12)
pushq $0x8
jmp 0x7907
andl $0xf, %ebx
movl %ebx, 0x20(%r12)
movl 0x4(%r11), %eax
movl %eax, 0x8(%r12)
movl $0x4, (%r12)
pushq $0x4
jmp 0x7907
testb $0x20, %bl
je 0x7b5c
movl $0x9, (%r12)
pushq $0x9
popq %rcx
movq %rbp, (%rsp)
movl %r8d, %r13d
movq %rsi, %rbx
jmp 0x710c
leal (%rsi,%r13,8), %eax
jmp 0x7976
movq 0x8(%rsp), %rax
leal (%rax,%r10,8), %eax
movl %r10d, %ecx
movq %r15, 0x30(%r14)
movl %eax, 0x2c(%r14)
andl $0x0, 0x8(%rbx)
addq %rcx, %r8
movq %r8, %rax
subq (%rbx), %rax
addq %rax, 0x10(%rbx)
movq %r8, (%rbx)
jmp 0x7999
leal (%rbp,%r13,8), %eax
movl %r13d, %ecx
movq %r15, 0x30(%r14)
movl %eax, 0x2c(%r14)
andl $0x0, 0x8(%rbx)
addq %rcx, %r11
movq %r11, %rax
subq (%rbx), %rax
addq %rax, 0x10(%rbx)
movq %r11, (%rbx)
jmp 0x7999
movq 0x8(%rsp), %rax
leal (%rax,%r13,8), %eax
movl %r13d, %ecx
movq %r15, 0x30(%r14)
movl %eax, 0x2c(%r14)
andl $0x0, 0x8(%rbx)
movq (%rsp), %rsi
addq %rcx, %rsi
movq %rsi, %rax
subq (%rbx), %rax
addq %rax, 0x10(%rbx)
movq %rsi, (%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 0x8758
movq %r15, 0x30(%r14)
movq 0x8(%rsp), %rdx
movl %edx, 0x2c(%r14)
movq 0x10(%rsp), %rsi
movl %r13d, 0x8(%rsi)
movq (%rsp), %rdi
movq %rdi, %rdx
subq (%rsi), %rdx
addq %rdx, 0x10(%rsi)
movq %rdi, (%rsi)
movq %rcx, 0x58(%r14)
movq %r14, %rdi
movl %eax, %edx
jmp 0x79a3
movq %r15, 0x30(%r14)
movq 0x8(%rsp), %rax
movl %eax, 0x2c(%r14)
movl %r13d, 0x8(%rbx)
movq (%rsp), %rcx
movq %rcx, %rax
subq (%rbx), %rax
addq %rax, 0x10(%rbx)
movq %rcx, (%rbx)
jmp 0x7ad9
movq 0x8(%rsp), %rax
jmp 0x7af1
movq 0x8(%rsp), %rcx
leal -0x8(%rcx), %esi
xorl %eax, %eax
cmpl $0x8, %ecx
cmovbl %ecx, %esi
movl %esi, 0x10(%rsp)
setae %al
movq (%rsp), %rbp
subq %rax, %rbp
addl %eax, %r13d
movq %rdi, 0x58(%r14)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8758
movq 0x58(%r14), %rdi
cmpq %rdi, 0x50(%r14)
je 0x7ae1
movq %r15, 0x30(%r14)
movl 0x10(%rsp), %ecx
movl %ecx, 0x2c(%r14)
movl %r13d, 0x8(%rbx)
movq %rbp, %rcx
subq (%rbx), %rcx
addq %rcx, 0x10(%rbx)
movq %rbp, (%rbx)
jmp 0x7b51
movq %r15, 0x30(%r14)
movq 0x8(%rsp), %rax
movl %eax, 0x2c(%r14)
movl %r13d, 0x8(%rbx)
movq (%rsp), %rcx
movq %rcx, %rax
subq (%rbx), %rax
addq %rax, 0x10(%rbx)
movq %rcx, (%rbx)
movq %rdi, 0x58(%r14)
pushq $-0x2
jmp 0x7b14
movl $0xb, (%r12)
leaq 0x2644(%rip), %rdx      # 0xa0f6
movq %rdx, 0x50(%rbx)
movq %r15, 0x30(%r14)
subl %ecx, %eax
movl %eax, 0x2c(%r14)
movl %r13d, 0x8(%rbx)
movq 0x10(%rbx), %rax
subq (%rbx), %rax
subq %rsi, %rax
movq %rax, 0x10(%rbx)
movq (%rsp), %rax
movq %rax, (%rbx)
movq %rdi, 0x58(%r14)
pushq $-0x3
jmp 0x7b14
movq %rbp, (%rsp)
movl $0xa, (%r12)
movl 0x10(%rsp), %eax
movq %r15, 0x30(%r14)
movl %eax, 0x2c(%r14)
movl %r13d, 0x8(%rbx)
movq (%rsp), %rcx
movq %rcx, %rax
subq (%rbx), %rax
addq %rax, 0x10(%rbx)
movq %rcx, (%rbx)
movq %rdi, 0x58(%r14)
pushq $0x1
popq %rdx
jmp 0x799d
movl $0xb, (%r12)
leaq 0x25b1(%rip), %rdx      # 0xa0da
jmp 0x7b6b
movq %r15, 0x30(%r14)
movq 0x8(%rsp), %rcx
movl %ecx, 0x2c(%r14)
movl %r13d, 0x8(%rbx)
movq (%rsp), %rdx
movq %rdx, %rcx
subq (%rbx), %rcx
addq %rcx, 0x10(%rbx)
movq %rdx, (%rbx)
movq %rsi, 0x58(%r14)
movq %r14, %rdi
movq %rbx, %rsi
jmp 0x79e4
movl $0xb, (%r12)
leaq 0x2559(%rip), %rdx      # 0xa0c4
movq %rdx, 0x50(%rsi)
movq %r15, 0x30(%r14)
subl %ecx, %eax
movl %eax, 0x2c(%r14)
movl %r8d, 0x8(%rsi)
movq 0x10(%rsi), %rax
subq (%rsi), %rax
subq %r10, %rax
movq %rax, 0x10(%rsi)
movq %rbp, (%rsi)
movq %rdi, 0x58(%r14)
pushq $-0x3
popq %rdx
movq %r14, %rdi
jmp 0x79a3