// File: /workspace/github_c_makefile_star2_O1/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, %r10
movq %rdi, %r14
movq 0x58(%rdi), %rsi
movq 0x50(%rdi), %rdi
cmpq %rdi, %rsi
jae 0x74d0
movq %rsi, %rax
notq %rax
addq %rax, %rdi
jmp 0x74d7
movq 0x48(%r14), %rdi
subq %rsi, %rdi
movq 0x8(%r14), %r13
movq (%r10), %r12
movl 0x8(%r10), %ebx
movq 0x30(%r14), %r15
movl 0x2c(%r14), %ebp
movq %r10, 0x10(%rsp)
movl (%r13), %eax
cmpq $0xb, %rax
ja 0x7dd4
leaq 0x2b90(%rip), %rcx      # 0xa094
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpl $0x1002, %edi           # imm = 0x1002
jb 0x7b3b
cmpl $0xa, %ebx
jb 0x7b3b
movq %r15, 0x30(%r14)
movl %ebp, 0x2c(%r14)
movl %ebx, 0x8(%r10)
movq %r12, %rax
subq (%r10), %rax
addq %rax, 0x10(%r10)
movq %r12, (%r10)
movq %rsi, 0x58(%r14)
movzbl 0x30(%r13), %edi
movzbl 0x31(%r13), %esi
movzbl 0x32(%r13), %edx
movq 0x38(%r13), %rcx
movq 0x40(%r13), %r8
movq 0x48(%r13), %r9
pushq %r10
pushq %r14
callq 0x7ee0
addq $0x10, %rsp
movl %eax, %edx
movq 0x58(%r14), %rsi
movq 0x50(%r14), %rdi
cmpq %rdi, %rsi
jae 0x78a1
movq %rsi, %rax
notq %rax
addq %rax, %rdi
jmp 0x78a8
movl 0x20(%r13), %eax
cmpl %eax, %ebp
jae 0x77a9
testl %ebx, %ebx
je 0x7e01
leaq 0x1(%r12), %r8
movl $0x1, %r9d
subl %ebx, %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 0x78dc
incq %r8
incl %r9d
movl %edx, %ecx
cmpl $0x1, %r9d
jne 0x75ac
jmp 0x7cbf
movq %r12, %r8
jmp 0x791a
movl 0x20(%r13), %eax
cmpl %eax, %ebp
jae 0x77b1
testl %ebx, %ebx
je 0x7e01
leaq 0x1(%r12), %r8
movl $0x1, %r9d
subl %ebx, %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 0x79c4
incq %r8
incl %r9d
movl %edx, %ecx
cmpl $0x1, %r9d
jne 0x7604
jmp 0x7cbf
movq %rbx, 0x8(%rsp)
movq %rsi, %rax
subq 0x40(%r14), %rax
movl 0x8(%r13), %ecx
cmpl %eax, %ecx
jbe 0x77b9
movq 0x48(%r14), %rbx
jmp 0x77be
movq %r12, %r8
jmp 0x7a1e
movq %rbx, 0x8(%rsp)
cmpl $0x0, 0x4(%r13)
je 0x788f
movslq 0x1c(%r13), %rax
movq 0x30(%r10,%rax,8), %rbx
addq 0x10(%r13), %rbx
testl %edi, %edi
jne 0x7714
movq 0x48(%r14), %rax
xorl %edi, %edi
cmpq %rax, %rsi
jne 0x76aa
movq 0x40(%r14), %rcx
movq 0x50(%r14), %r8
cmpq %rcx, %r8
je 0x76aa
movl %ecx, %esi
notl %esi
addl %r8d, %esi
subl %ecx, %eax
cmpq %r8, %rcx
cmovbl %esi, %eax
movq %rcx, %rsi
movl %eax, %edi
testl %edi, %edi
jne 0x7714
movq %rsi, 0x58(%r14)
movq %r14, %rdi
movq %r10, %rsi
callq 0x8a4c
movq 0x50(%r14), %rcx
movq 0x58(%r14), %rsi
cmpq %rcx, %rsi
jae 0x76d5
movq %rsi, %rdi
notq %rdi
addq %rcx, %rdi
jmp 0x76dc
movq 0x48(%r14), %rdi
subq %rsi, %rdi
movq 0x48(%r14), %rdx
cmpq %rdx, %rsi
movq 0x10(%rsp), %r10
jne 0x770c
movq 0x40(%r14), %r8
cmpq %r8, %rcx
je 0x770c
movq %r8, %rsi
notq %rsi
addq %rcx, %rsi
subq %r8, %rdx
cmpq %rcx, %r8
cmovbq %rsi, %rdx
movq %r8, %rsi
movq %rdx, %rdi
testl %edi, %edi
je 0x7d2e
movb (%rbx), %al
incq %rbx
movb %al, (%rsi)
cmpq 0x48(%r14), %rbx
jne 0x7725
movq 0x40(%r14), %rbx
incq %rsi
decl %edi
incq 0x10(%r13)
xorl %edx, %edx
decl 0x4(%r13)
jne 0x7676
jmp 0x788f
testl %edi, %edi
jne 0x7c7b
movq 0x48(%r14), %rax
xorl %edi, %edi
cmpq %rax, %rsi
jne 0x7773
movq 0x40(%r14), %rcx
movq 0x50(%r14), %r8
cmpq %rcx, %r8
je 0x7773
movl %ecx, %esi
notl %esi
addl %r8d, %esi
subl %ecx, %eax
cmpq %r8, %rcx
cmovbl %esi, %eax
movq %rcx, %rsi
movl %eax, %edi
testl %edi, %edi
jne 0x7c7b
movq %rsi, 0x58(%r14)
movq %r14, %rdi
movq %r10, %rsi
callq 0x8a4c
movq 0x50(%r14), %rcx
movq 0x58(%r14), %rsi
cmpq %rcx, %rsi
jae 0x7c3c
movq %rsi, %rdi
notq %rdi
addq %rcx, %rdi
jmp 0x7c43
movq %r12, %r8
jmp 0x78e9
movq %r12, %r8
jmp 0x79d1
xorl %eax, %eax
movq %rsi, %rbx
cmpl $0x0, 0x4(%r13)
je 0x788f
subq %rcx, %rax
addq %rax, %rbx
testl %edi, %edi
jne 0x786d
movq 0x48(%r14), %rax
xorl %edi, %edi
cmpq %rax, %rsi
jne 0x7803
movq 0x40(%r14), %rcx
movq 0x50(%r14), %r8
cmpq %rcx, %r8
je 0x7803
movl %ecx, %esi
notl %esi
addl %r8d, %esi
subl %ecx, %eax
cmpq %r8, %rcx
cmovbl %esi, %eax
movq %rcx, %rsi
movl %eax, %edi
testl %edi, %edi
jne 0x786d
movq %rsi, 0x58(%r14)
movq %r14, %rdi
movq %r10, %rsi
callq 0x8a4c
movq 0x50(%r14), %rcx
movq 0x58(%r14), %rsi
cmpq %rcx, %rsi
jae 0x782e
movq %rsi, %rdi
notq %rdi
addq %rcx, %rdi
jmp 0x7835
movq 0x48(%r14), %rdi
subq %rsi, %rdi
movq 0x48(%r14), %rdx
cmpq %rdx, %rsi
movq 0x10(%rsp), %r10
jne 0x7865
movq 0x40(%r14), %r8
cmpq %r8, %rcx
je 0x7865
movq %r8, %rsi
notq %rsi
addq %rcx, %rsi
subq %r8, %rdx
cmpq %rcx, %r8
cmovbq %rsi, %rdx
movq %r8, %rsi
movq %rdx, %rdi
testl %edi, %edi
je 0x7d2e
movb (%rbx), %al
incq %rbx
movb %al, (%rsi)
cmpq 0x48(%r14), %rbx
jne 0x787e
movq 0x40(%r14), %rbx
incq %rsi
decl %edi
xorl %edx, %edx
decl 0x4(%r13)
jne 0x77cf
movl $0x0, (%r13)
movq 0x8(%rsp), %rbx
jmp 0x74ef
movq 0x48(%r14), %rdi
subq %rsi, %rdi
movq 0x10(%rsp), %r10
movq (%r10), %r12
movl 0x8(%r10), %ebx
movq 0x30(%r14), %r15
movl 0x2c(%r14), %ebp
testl %edx, %edx
je 0x7b39
xorl %eax, %eax
cmpl $0x1, %edx
setne %al
leal 0x9(,%rax,2), %eax
movl %eax, (%r13)
jmp 0x74ef
addl $0x8, %ecx
negl %r9d
xorl %edx, %edx
movl %ecx, %ebp
movl %r9d, %ebx
leaq 0x88b0(%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), %rax
movq %rax, 0x20(%r13)
movl $0x1, (%r13)
movl 0x28(%r13), %eax
cmpl %eax, %ebp
jae 0x7962
testl %ebx, %ebx
je 0x7d5a
leaq 0x1(%r8), %r12
movl $0x1, %r9d
subl %ebx, %r9d
movl %ebp, %ecx
movq %r15, %rdx
movzbl -0x1(%r12), %r15d
shlq %cl, %r15
orq %rdx, %r15
leal 0x8(%rcx), %edx
cmpl %eax, %edx
jae 0x7967
incq %r12
incl %r9d
movl %edx, %ecx
cmpl $0x1, %r9d
jne 0x7939
jmp 0x7c95
movq %r8, %r12
jmp 0x7974
addl $0x8, %ecx
negl %r9d
xorl %edx, %edx
movl %ecx, %ebp
movl %r9d, %ebx
movq 0x20(%r13), %rcx
leaq 0x8821(%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
testb $0x10, %cl
jne 0x79a9
testb $0x40, %cl
je 0x7be3
jmp 0x7e1d
andl $0xf, %ecx
movl %ecx, 0x20(%r13)
movl 0x4(%rax), %eax
movl %eax, 0x4(%r13)
movl $0x2, (%r13)
jmp 0x74ef
addl $0x8, %ecx
negl %r9d
xorl %edx, %edx
movl %ecx, %ebp
movl %r9d, %ebx
leaq 0x87c8(%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 0x7a05
movl $0x7, (%r13)
movq %r8, %r12
jmp 0x74ef
movzbl 0x32(%r13), %eax
movl %eax, 0x28(%r13)
movq 0x48(%r13), %rax
movq %rax, 0x20(%r13)
movl $0x5, (%r13)
movl 0x28(%r13), %eax
cmpl %eax, %ebp
jae 0x7a66
testl %ebx, %ebx
je 0x7d5a
leaq 0x1(%r8), %r12
movl $0x1, %r9d
subl %ebx, %r9d
movl %ebp, %ecx
movq %r15, %rdx
movzbl -0x1(%r12), %r15d
shlq %cl, %r15
orq %rdx, %r15
leal 0x8(%rcx), %edx
cmpl %eax, %edx
jae 0x7a6b
incq %r12
incl %r9d
movl %edx, %ecx
cmpl $0x1, %r9d
jne 0x7a3d
jmp 0x7c95
movq %r8, %r12
jmp 0x7a78
addl $0x8, %ecx
negl %r9d
xorl %edx, %edx
movl %ecx, %ebp
movl %r9d, %ebx
movq 0x20(%r13), %rcx
leaq 0x871d(%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 0x7aac
testb $0x40, %cl
je 0x7be3
jmp 0x7e2e
movl 0x4(%rax), %eax
movl %eax, %ecx
shrl %ecx
movl %ecx, 0x1c(%r13)
movl 0x4(%r13), %ecx
movl %ecx, %r8d
shrl $0x8, %r8d
andb $-0x80, %r8b
movb %r8b, 0x18(%r13)
movq 0x70(%r14,%rax,8), %r8
testw %cx, %cx
js 0x7add
movl 0x8(%r13), %r9d
addq %r9, %r8
jmp 0x7ae4
movl 0x8(%r13), %r9d
subq %r9, %r8
movq %r8, 0x10(%r13)
andl $0x3fff, %ecx           # imm = 0x3FFF
movl %ecx, 0x4(%r13)
cmpl $0x101, 0x8(%r13)       # imm = 0x101
jb 0x7b15
cmpq $0x0, 0x80(%r14,%rax,8)
je 0x7b23
movq $0x0, 0x80(%r14,%rax,8)
jmp 0x7b2c
movq $0x1, 0x80(%r14,%rax,8)
movl %ecx, %ecx
addq 0x10(%r13), %rcx
movq %rcx, 0x70(%r14,%rax,8)
movl $0x6, (%r13)
jmp 0x74ef
xorl %edx, %edx
movzbl 0x31(%r13), %eax
movl %eax, 0x28(%r13)
movq 0x40(%r13), %rax
movq %rax, 0x20(%r13)
movl $0x3, (%r13)
movq %r12, %rax
movl 0x28(%r13), %r8d
cmpl %r8d, %ebp
jae 0x7ba1
testl %ebx, %ebx
je 0x7e0f
leaq 0x1(%rax), %r12
movl $0x1, %r9d
subl %ebx, %r9d
movl %ebp, %ecx
movq %r15, %rdx
movzbl -0x1(%r12), %r15d
shlq %cl, %r15
orq %rdx, %r15
leal 0x8(%rcx), %edx
cmpl %r8d, %edx
jae 0x7ba6
incq %r12
incl %r9d
movl %edx, %ecx
cmpl $0x1, %r9d
jne 0x7b77
jmp 0x7ce9
movq %rax, %r12
jmp 0x7bb3
addl $0x8, %ecx
negl %r9d
xorl %edx, %edx
movl %ecx, %ebp
movl %r9d, %ebx
movq 0x20(%r13), %rax
leaq 0x85e2(%rip), %rcx      # 0x101a0
movl (%rcx,%r8,4), %ecx
andl %r15d, %ecx
leaq (%rax,%rcx,8), %rax
movzbl 0x1(%rax), %ecx
shrq %cl, %r15
subl %ecx, %ebp
movzbl (%rax), %ecx
testl %ecx, %ecx
je 0x7bf7
testb $0x10, %cl
jne 0x7c0b
testb $0x40, %cl
jne 0x7c26
movl %ecx, 0x28(%r13)
movl 0x4(%rax), %ecx
leaq (%rax,%rcx,8), %rax
movq %rax, 0x20(%r13)
jmp 0x74ef
movl 0x4(%rax), %eax
movl %eax, 0x20(%r13)
movl $0x8, (%r13)
jmp 0x74ef
andl $0xf, %ecx
movl %ecx, 0x20(%r13)
movl 0x4(%rax), %eax
movl %eax, 0x8(%r13)
movl $0x4, (%r13)
jmp 0x74ef
testb $0x20, %cl
je 0x7e7c
movl $0x9, (%r13)
jmp 0x74ef
movq 0x48(%r14), %rdi
subq %rsi, %rdi
movq 0x48(%r14), %rdx
cmpq %rdx, %rsi
movq 0x10(%rsp), %r10
jne 0x7c73
movq 0x40(%r14), %r8
cmpq %r8, %rcx
je 0x7c73
movq %r8, %rsi
notq %rsi
addq %rcx, %rsi
subq %r8, %rdx
cmpq %rcx, %r8
cmovbq %rsi, %rdx
movq %r8, %rsi
movq %rdx, %rdi
testl %edi, %edi
je 0x7ebc
movb 0x20(%r13), %al
movb %al, (%rsi)
incq %rsi
decl %edi
movl $0x0, (%r13)
xorl %edx, %edx
jmp 0x74ef
movl %ebx, %eax
addq %rax, %r8
leal (%rbp,%rbx,8), %eax
xorl %edx, %edx
movq %r15, 0x30(%r14)
movl %eax, 0x2c(%r14)
movl $0x0, 0x8(%r10)
movq %r8, %rax
subq (%r10), %rax
addq %rax, 0x10(%r10)
movq %r8, (%r10)
jmp 0x7d11
movl %ebx, %eax
addq %rax, %r12
leal (%rbp,%rbx,8), %eax
xorl %edx, %edx
movq %r15, 0x30(%r14)
movl %eax, 0x2c(%r14)
movl $0x0, 0x8(%r10)
movq %r12, %rax
subq (%r10), %rax
addq %rax, 0x10(%r10)
movq %r12, (%r10)
jmp 0x7d11
movl %ebx, %ecx
addq %rcx, %rax
leal (%rbp,%rbx,8), %ecx
xorl %edx, %edx
movq %r15, 0x30(%r14)
movl %ecx, 0x2c(%r14)
movl $0x0, 0x8(%r10)
movq %rax, %rcx
subq (%r10), %rcx
addq %rcx, 0x10(%r10)
movq %rax, (%r10)
movq %rsi, 0x58(%r14)
movq %r14, %rdi
movq %r10, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8a4c
movq %r15, 0x30(%r14)
movl %ebp, 0x2c(%r14)
movq 0x8(%rsp), %rcx
movl %ecx, 0x8(%r10)
movq %r12, %rcx
subq (%r10), %rcx
addq %rcx, 0x10(%r10)
movq %r12, (%r10)
movq %rsi, 0x58(%r14)
movq %r14, %rdi
movq %r10, %rsi
movl %eax, %edx
jmp 0x7d1b
movl %ebx, %eax
addq %rax, %r8
leal (%rbp,%rbx,8), %eax
jmp 0x7ca0
movq %rbx, %rax
movl %ebp, %ebx
jmp 0x7e4f
movq %rbx, %rcx
leal -0x8(%rbp), %ebx
xorl %eax, %eax
cmpl $0x8, %ebp
cmovbl %ebp, %ebx
setae %al
subq %rax, %r12
addl %eax, %ecx
movq %rcx, 0x8(%rsp)
movq %rsi, 0x58(%r14)
movq %r14, %rdi
movq %r10, %rsi
movq %r10, %rbp
callq 0x8a4c
movq 0x58(%r14), %rsi
cmpq %rsi, 0x50(%r14)
je 0x7e3f
movq %r15, 0x30(%r14)
movl %ebx, 0x2c(%r14)
movq 0x8(%rsp), %rcx
movl %ecx, 0x8(%rbp)
movq %r12, %rcx
subq (%rbp), %rcx
addq %rcx, 0x10(%rbp)
movq %r12, (%rbp)
movq %r14, %rdi
movq %rbp, %rsi
jmp 0x7d56
movq %r15, 0x30(%r14)
movl %ebp, 0x2c(%r14)
movl %ebx, 0x8(%r10)
movq %r12, %rax
subq (%r10), %rax
addq %rax, 0x10(%r10)
movq %r12, (%r10)
movq %rsi, 0x58(%r14)
movq %r14, %rdi
movq %r10, %rsi
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
jmp 0x7d1b
movl %ebx, %eax
addq %rax, %r12
leal (%rbp,%rbx,8), %eax
jmp 0x7cca
movl %ebx, %ecx
addq %rcx, %rax
leal (%rbp,%rbx,8), %ecx
jmp 0x7cf4
movl $0xb, (%r13)
leaq 0x22ae(%rip), %rax      # 0xa0da
jmp 0x7e8b
movl $0xb, (%r13)
leaq 0x22b9(%rip), %rax      # 0xa0f6
jmp 0x7e8b
movq 0x8(%rsp), %rax
movl $0xa, (%r13)
movq %rbp, %r10
movq %r15, 0x30(%r14)
movl %ebx, 0x2c(%r14)
movl %eax, 0x8(%r10)
movq %r12, %rax
subq (%r10), %rax
addq %rax, 0x10(%r10)
movq %r12, (%r10)
movq %rsi, 0x58(%r14)
movq %r14, %rdi
movq %r10, %rsi
movl $0x1, %edx
jmp 0x7d1b
movl $0xb, (%r13)
leaq 0x2239(%rip), %rax      # 0xa0c4
movq %rax, 0x50(%r10)
movq %r15, 0x30(%r14)
movl %ebp, 0x2c(%r14)
movl %ebx, 0x8(%r10)
movq %r12, %rax
subq (%r10), %rax
addq %rax, 0x10(%r10)
movq %r12, (%r10)
movq %rsi, 0x58(%r14)
movq %r14, %rdi
movq %r10, %rsi
movl $0xfffffffd, %edx       # imm = 0xFFFFFFFD
jmp 0x7d1b
movq %r15, 0x30(%r14)
movl %ebp, 0x2c(%r14)
movl %ebx, 0x8(%r10)
jmp 0x7d3f