// File: /workspace/github_cpp_makefile_star2_O2/twekkel[P]mzpq/libzpaq.cpp
// Function: libzpaq::LZBuffer::fill()
void LZBuffer::fill() {

  // BWT
  if (level==3) {
    assert(in || n==0);
    assert(sa);
    for (; wpos<BUFSIZE && i<n+5; ++i) {
      if (i==0) put(n>0 ? in[n-1] : 255);
      else if (i>n) put(idx&255), idx>>=8;
      else if (sa[i-1]==0) idx=i, put(255);
      else put(in[sa[i-1]-1]);
    }
    return;
  }

  // LZ77: scan the input
  unsigned lit=0;  // number of output literals pending
  const unsigned mask=(1<<checkbits)-1;
  while (i<n && wpos*2<BUFSIZE) {

    // Search for longest match, or pick closest in case of tie
    unsigned blen=minMatch-1;  // best match length
    unsigned bp=0;  // pointer to best match
    unsigned blit=0;  // literals before best match
    int bscore=0;  // best cost

    // Look up contexts in suffix array
    if (isa) {
      if (sa[isa[i&mask]]!=i) // rebuild ISA
        for (unsigned j=0; j<n; ++j)
          if ((sa[j]&~mask)==(i&~mask))
            isa[sa[j]&mask]=j;
      for (unsigned h=0; h<=lookahead; ++h) {
        unsigned q=isa[(h+i)&mask];  // location of h+i in SA
        assert(q<n);
        if (sa[q]!=h+i) continue;
        for (int j=-1; j<=1; j+=2) {  // search backward and forward
          for (unsigned k=1; k<=bucket; ++k) {
            unsigned p;  // match to be tested
            if (q+j*k<n && (p=sa[q+j*k]-h)<i) {
              assert(p<n);
              unsigned l, l1;  // length of match, leading literals
              for (l=h; i+l<n && l<maxMatch && in[p+l]==in[i+l]; ++l);
              for (l1=h; l1>0 && in[p+l1-1]==in[i+l1-1]; --l1);
              int score=int(l-l1)*8-lg(i-p)-4*(lit==0 && l1>0)-11;
              for (unsigned a=0; a<h; ++a) score=score*5/8;
              if (score>bscore) blen=l, bp=p, blit=l1, bscore=score;
              if (l<blen || l<minMatch || l>255) break;
            }
          }
        }
        if (bscore<=0 || blen<minMatch) break;
      }
    }

    // Look up contexts in a hash table.
    // Try the longest context orders first. If a match is found, then
    // skip the lower order as a speed optimization.
    else if (level==1 || minMatch<=64) {
      if (minMatch2>0) {
        for (unsigned k=0; k<=bucket; ++k) {
          unsigned p=ht[h2^k];
          if (p && (p&mask)==(in[i+3]&mask)) {
            p>>=checkbits;
            if (p<i && i+blen<=n && in[p+blen-1]==in[i+blen-1]) {
              unsigned l;  // match length from lookahead
              for (l=lookahead; i+l<n && l<maxMatch && in[p+l]==in[i+l]; ++l);
              if (l>=minMatch2+lookahead) {
                int l1;  // length back from lookahead
                for (l1=lookahead; l1>0 && in[p+l1-1]==in[i+l1-1]; --l1);
                assert(l1>=0 && l1<=int(lookahead));
                int score=int(l-l1)*8-lg(i-p)-8*(lit==0 && l1>0)-11;
                if (score>bscore) blen=l, bp=p, blit=l1, bscore=score;
              }
            }
          }
          if (blen>=128) break;
        }
      }

      // Search the lower order context
      if (!minMatch2 || blen<minMatch2) {
        for (unsigned k=0; k<=bucket; ++k) {
          unsigned p=ht[h1^k];
          if (p && i+3<n && (p&mask)==(in[i+3]&mask)) {
            p>>=checkbits;
            if (p<i && i+blen<=n && in[p+blen-1]==in[i+blen-1]) {
              unsigned l;
              for (l=0; i+l<n && l<maxMatch && in[p+l]==in[i+l]; ++l);
              int score=l*8-lg(i-p)-2*(lit>0)-11;
              if (score>bscore) blen=l, bp=p, blit=0, bscore=score;
            }
          }
          if (blen>=128) break;
        }
      }
    }

    // If match is long enough, then output any pending literals first,
    // and then the match. blen is the length of the match.
    assert(i>=bp);
    const unsigned off=i-bp;  // offset
    if (off>0 && bscore>0
        && blen-blit>=minMatch+(level==2)*((off>=(1<<16))+(off>=(1<<24)))) {
      lit+=blit;
      write_literal(i+blit, lit);
      write_match(blen-blit, off);
    }

    // Otherwise add to literal length
    else {
      blen=1;
      ++lit;
    }

    // Update index, advance blen bytes
    if (isa)
      i+=blen;
    else {
      while (blen--) {
        if (i+minMatchBoth<n) {
          unsigned ih=((i*1234547)>>19)&bucket;
          const unsigned p=(i<<checkbits)|(in[i+3]&mask);
          assert(ih<=bucket);
          if (minMatch2) {
            ht[h2^ih]=p;
            h2=(((h2*9)<<shift2)
                +(in[i+minMatch2+lookahead]+1)*23456789u)&(htsize-1);
          }
          ht[h1^ih]=p;
          h1=(((h1*5)<<shift1)+(in[i+minMatch]+1)*123456791u)&(htsize-1);
        }
        ++i;
      }
    }

    // Write long literals to keep buf from filling up
    if (lit>=maxLiteral)
      write_literal(i, lit);
  }

  // Write pending literals at end of input
  assert(i<=n);
  if (i==n) {
    write_literal(n, lit);
    flush();
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdi, %r13
cmpl $0x3, 0x2c(%rdi)
jne 0x16c74
movl 0x78(%r13), %eax
movl 0x38(%r13), %ecx
movl 0x34(%r13), %edx
leal 0x5(%rdx), %esi
movq 0x80(%r13), %rdi
movq 0x20(%r13), %r8
leal -0x1(%rdx), %r9d
cmpl $0x3fff, %eax           # imm = 0x3FFF
ja 0x1756a
cmpq %rsi, %rcx
jae 0x1756a
movl %eax, %r10d
testq %rcx, %rcx
je 0x16c27
cmpq %rdx, %rcx
jbe 0x16c32
movl 0x7c(%r13), %r11d
incl %eax
movl %eax, 0x78(%r13)
movb %r11b, 0x90(%r13,%r10)
shrl $0x8, %r11d
movl %r11d, 0x7c(%r13)
jmp 0x16c56
testq %rdx, %rdx
je 0x16c45
movb (%r8,%r9), %r11b
jmp 0x16c48
movl -0x4(%rdi,%rcx,4), %r11d
testl %r11d, %r11d
je 0x16c5f
decl %r11d
movb (%r8,%r11), %r11b
jmp 0x16c48
movb $-0x1, %r11b
incl %eax
movl %eax, 0x78(%r13)
movb %r11b, 0x90(%r13,%r10)
incq %rcx
movl %ecx, 0x38(%r13)
jmp 0x16bea
movl %ecx, 0x7c(%r13)
incl %eax
movl %eax, 0x78(%r13)
movb $-0x1, 0x90(%r13,%r10)
jmp 0x16c56
leaq 0x8(%rsp), %rax
andl $0x0, (%rax)
movb 0x28(%r13), %cl
pushq $-0x1
popq %rax
shll %cl, %eax
movl %eax, 0xac(%rsp)
notl %eax
movl %eax, 0x14(%rsp)
movq %r13, 0x30(%rsp)
movl 0x34(%r13), %r11d
movl 0x38(%r13), %esi
cmpl %r11d, %esi
jae 0x17550
testl $0x7fffe000, 0x78(%r13) # imm = 0x7FFFE000
jne 0x17550
movl 0x3c(%r13), %r10d
leal -0x1(%r10), %r8d
movq 0x88(%r13), %rcx
testq %rcx, %rcx
movq %rcx, 0x98(%rsp)
je 0x16d25
movq 0x80(%r13), %r9
movl %esi, %eax
andl 0x14(%rsp), %eax
movl (%rcx,%rax,4), %eax
cmpl %esi, (%r9,%rax,4)
je 0x16fa8
xorl %eax, %eax
movl %r11d, %ecx
cmpq %rcx, %rax
jae 0x16fa0
movl (%r9,%rax,4), %ecx
movl 0x38(%r13), %edx
xorl %ecx, %edx
testl %edx, 0xac(%rsp)
jne 0x16d20
andl 0x14(%rsp), %ecx
movq 0x98(%rsp), %rdx
movl %eax, (%rdx,%rcx,4)
movl 0x34(%r13), %r11d
incq %rax
jmp 0x16cee
cmpl $0x1, 0x2c(%r13)
sete %al
cmpl $0x41, %r10d
setb %cl
orb %al, %cl
xorl %ebp, %ebp
cmpb $0x1, %cl
jne 0x17228
movl 0x40(%r13), %r9d
testl %r9d, %r9d
je 0x17237
movl 0x58(%r13), %edx
movl 0x54(%r13), %edi
movq 0x8(%r13), %rax
movq %rax, 0x60(%rsp)
movq 0x20(%r13), %rax
movq %rax, 0x28(%rsp)
leal 0x3(%rsi), %eax
movq %rax, 0x38(%rsp)
movl 0x28(%r13), %eax
movl %eax, 0x50(%rsp)
movl 0x4c(%r13), %eax
movl 0x44(%r13), %ecx
movq %rcx, 0x58(%rsp)
leal (%rax,%r9), %ecx
movl %ecx, 0x24(%rsp)
movl 0x8(%rsp), %ecx
movl %ecx, 0xa0(%rsp)
movl %eax, %ecx
sarl $0x1f, %ecx
andl %eax, %ecx
movl %ecx, 0x44(%rsp)
movq %rax, 0x78(%rsp)
leal -0xb(,%rax,8), %eax
movl %eax, 0x20(%rsp)
leal -0x1(%rsi), %eax
movq %rax, 0x48(%rsp)
xorl %r12d, %r12d
xorl %ebp, %ebp
movl $0x0, 0x4(%rsp)
movl $0x0, 0xc(%rsp)
cmpl %edx, %r12d
ja 0x17249
movl %edi, %eax
xorl %r12d, %eax
movq 0x60(%rsp), %rcx
movl (%rcx,%rax,4), %r15d
testl %r15d, %r15d
je 0x16f8b
movq 0x28(%rsp), %rax
movq 0x38(%rsp), %rcx
movzbl (%rax,%rcx), %eax
xorl %r15d, %eax
testl %eax, 0x14(%rsp)
jne 0x16f8b
movl 0x50(%rsp), %ecx
shrl %cl, %r15d
cmpl %esi, %r15d
jae 0x16f8b
leal (%r8,%rsi), %eax
cmpl %r11d, %eax
ja 0x16f8b
leal (%r8,%r15), %ecx
decl %ecx
movq 0x28(%rsp), %rbx
movb (%rbx,%rcx), %cl
decl %eax
cmpb (%rbx,%rax), %cl
jne 0x16f8b
movl %edi, 0x1c(%rsp)
movl %edx, 0x88(%rsp)
movl 0x20(%rsp), %eax
movq 0x78(%rsp), %rcx
movq %rcx, %rbx
movl %eax, %r13d
leaq (%rsi,%rcx), %rax
cmpl %r11d, %eax
jae 0x16e88
cmpq 0x58(%rsp), %rbx
jae 0x16e88
leal (%r15,%rbx), %ecx
movq 0x28(%rsp), %r14
movb (%r14,%rcx), %dl
movl %eax, %edi
leaq 0x1(%rbx), %rcx
leal 0x8(%r13), %eax
cmpb (%r14,%rdi), %dl
je 0x16e55
cmpl %ebx, 0x24(%rsp)
jbe 0x16ea3
movq 0x30(%rsp), %r13
movl 0x88(%rsp), %edx
movl 0x1c(%rsp), %edi
jmp 0x16f8b
movl %ebp, 0x10(%rsp)
leal -0x1(%r15), %eax
movq 0x78(%rsp), %r14
movq %r8, 0x80(%rsp)
movq %r10, 0x68(%rsp)
movl %r11d, 0x18(%rsp)
movq %r9, 0x90(%rsp)
movl %r14d, %ebp
testl %r14d, %r14d
jle 0x16ef2
leal (%rax,%rbp), %ecx
movq 0x28(%rsp), %rdi
movb (%rdi,%rcx), %cl
movq 0x48(%rsp), %rdx
addl %ebp, %edx
leal -0x1(%rbp), %r14d
cmpb (%rdi,%rdx), %cl
je 0x16eca
incl %r14d
jmp 0x16ef9
movl 0x44(%rsp), %eax
movl %eax, %r14d
xorl %eax, %eax
cmpl $0x0, 0xa0(%rsp)
setne %al
movq %rax, 0xb0(%rsp)
movl %esi, %edi
subl %r15d, %edi
movq %rsi, 0x70(%rsp)
callq 0x16ae3
movq 0x70(%rsp), %rsi
testl %ebp, %ebp
movq 0xb0(%rsp), %rcx
leal -0x8(,%rcx,8), %ecx
movl $0x0, %edx
cmovlel %edx, %ecx
subl %eax, %ecx
leal (,%r14,8), %eax
subl %eax, %ecx
addl %r13d, %ecx
movl 0x10(%rsp), %ebp
cmpl %ebp, %ecx
movq 0x30(%rsp), %r13
movq 0x80(%rsp), %r8
movq 0x68(%rsp), %r10
movl 0x18(%rsp), %r11d
movq 0x90(%rsp), %r9
movl 0x88(%rsp), %edx
movl 0x1c(%rsp), %edi
jle 0x16f8b
movl %ecx, %ebp
movl %r14d, 0x4(%rsp)
movl %r15d, 0xc(%rsp)
movl %ebx, %r8d
incl %r12d
cmpl $0x80, %r8d
jb 0x16dd0
jmp 0x17249
movl 0x38(%r13), %esi
movl 0x3c(%r13), %r10d
movl 0x4c(%r13), %eax
movl %eax, 0x90(%rsp)
movl 0x58(%r13), %r14d
movl 0x44(%r13), %r12d
movq 0x20(%r13), %r13
leal -0x1(%rsi), %eax
movl %eax, 0x78(%rsp)
movl 0x8(%rsp), %eax
movl %eax, 0x1c(%rsp)
xorl %edi, %edi
pushq $0x1
popq %rax
movl %eax, 0x24(%rsp)
pushq $-0xb
popq %rax
movl %eax, 0x20(%rsp)
xorl %ebp, %ebp
movl $0x0, 0x4(%rsp)
movl $0x0, 0xc(%rsp)
movq %rsi, 0x70(%rsp)
movq %r10, 0x68(%rsp)
movl %r11d, 0x18(%rsp)
movq %r9, 0xa0(%rsp)
movl %r14d, 0x44(%rsp)
movq %r12, 0x88(%rsp)
cmpl 0x90(%rsp), %edi
ja 0x1721a
leal (%rsi,%rdi), %eax
movl %eax, %ecx
andl 0x14(%rsp), %ecx
movq 0x98(%rsp), %rdx
movl (%rdx,%rcx,4), %edx
cmpl %eax, (%r9,%rdx,4)
jne 0x17206
movl %edi, %eax
movq %rax, 0x50(%rsp)
pushq $-0x1
popq %rcx
movq %rdi, 0x38(%rsp)
movq %rdx, 0x48(%rsp)
cmpl $0x1, %ecx
jg 0x171fd
pushq $0x1
popq %rax
movl %ecx, 0x60(%rsp)
cmpl %r14d, %eax
ja 0x171f1
movl %eax, 0x28(%rsp)
imull %ecx, %eax
addl %edx, %eax
cmpl %r11d, %eax
jae 0x171e2
movl %eax, %eax
movl (%r9,%rax,4), %eax
movl %eax, %ecx
subl %edi, %ecx
movl %esi, %edi
subl %ecx, %edi
jbe 0x170c8
movl %ecx, 0x58(%rsp)
movl %eax, %ecx
movl 0x20(%rsp), %r14d
movq 0x50(%rsp), %r15
leal (%rsi,%r15), %edx
cmpl %r11d, %edx
jae 0x170d2
cmpq %r12, %r15
jae 0x170d2
movl %ecx, %r9d
movb (%r13,%r9), %r9b
movl %edx, %edx
cmpb (%r13,%rdx), %r9b
jne 0x170d2
incq %r15
addl $0x8, %r14d
incl %ecx
jmp 0x1709e
movq 0x38(%rsp), %rdi
jmp 0x171e2
movl %ebp, 0x10(%rsp)
movq %r8, 0x80(%rsp)
decl %eax
movl 0x24(%rsp), %ecx
movl %ecx, %ebx
movl 0x78(%rsp), %ecx
movq 0x50(%rsp), %rdx
movq %rdx, %r12
addq $-0x1, %rdx
jae 0x17112
movl %eax, %r8d
movb (%r13,%r8), %r9b
movl %ecx, %r8d
decl %ecx
decl %eax
decl %ebx
cmpb (%r13,%r8), %r9b
je 0x170ef
jmp 0x17114
xorl %ebx, %ebx
xorl %ebp, %ebp
cmpl $0x0, 0x1c(%rsp)
setne %bpl
callq 0x16ae3
movl %eax, %ecx
testq %r12, %r12
leal -0x4(,%rbp,4), %eax
movl $0x0, %edx
cmovel %edx, %eax
subl %ecx, %eax
leal (,%rbx,8), %ecx
subl %ecx, %eax
addl %r14d, %eax
movq 0x38(%rsp), %rdi
movl %edi, %ecx
pushq $0x8
popq %rsi
movq 0x80(%rsp), %r8
movq 0x68(%rsp), %r10
movl 0x10(%rsp), %ebp
movq 0xa0(%rsp), %r9
movl 0x44(%rsp), %r14d
subl $0x1, %ecx
jb 0x1717b
leal (%rax,%rax,4), %eax
cltd
idivl %esi
jmp 0x1716e
movl %r15d, %ecx
cmpl %ebp, %eax
movq 0x70(%rsp), %rsi
movl 0x18(%rsp), %r11d
movq 0x88(%rsp), %r12
movq 0x48(%rsp), %rdx
jg 0x171b1
movl %r8d, %ecx
movl 0xc(%rsp), %eax
movl %eax, 0x58(%rsp)
movl 0x4(%rsp), %eax
movl %eax, %ebx
movl %ebp, %eax
cmpl %r15d, %r8d
ja 0x171f1
cmpl %r15d, %r10d
seta %dl
cmpq $0x100, %r15            # imm = 0x100
setae %dil
orb %dl, %dil
movq 0x48(%rsp), %rdx
movq 0x38(%rsp), %rdi
movl %ecx, %r8d
movl 0x58(%rsp), %ecx
movl %ecx, 0xc(%rsp)
movl %ebx, 0x4(%rsp)
movl %eax, %ebp
jne 0x171f1
movl 0x28(%rsp), %eax
incl %eax
movl 0x60(%rsp), %ecx
jmp 0x17063
movl 0x60(%rsp), %ecx
addl $0x2, %ecx
jmp 0x17053
testl %ebp, %ebp
jle 0x1721a
cmpl %r10d, %r8d
jb 0x1721a
incl %edi
addl $0x8, 0x20(%rsp)
incl 0x78(%rsp)
incl 0x24(%rsp)
jmp 0x17014
movq 0x30(%rsp), %r13
movl 0x4(%rsp), %edx
jmp 0x173bb
xorl %edx, %edx
movl $0x0, 0xc(%rsp)
jmp 0x173bb
xorl %ebp, %ebp
movl $0x0, 0x4(%rsp)
movl $0x0, 0xc(%rsp)
decl %r9d
cmpl %r8d, %r9d
jb 0x1721f
movl %ebp, 0x10(%rsp)
movl 0x58(%r13), %ebp
movl 0x50(%r13), %edx
movq 0x8(%r13), %r12
movq 0x20(%r13), %r9
leal 0x3(%rsi), %edi
movl 0x28(%r13), %eax
movl %eax, 0x28(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x8(%rsp)
movl 0x44(%r13), %ecx
movq %rcx, 0x60(%rsp)
sete %al
leal -0xd(,%rax,2), %eax
movl %eax, 0x38(%rsp)
xorl %r13d, %r13d
cmpl %ebp, %r13d
ja 0x173ae
movl %edx, %eax
xorl %r13d, %eax
movl (%r12,%rax,4), %ebx
testl %ebx, %ebx
je 0x1739e
cmpl %r11d, %edi
jae 0x1739e
movzbl (%r9,%rdi), %eax
xorl %ebx, %eax
testl %eax, 0x14(%rsp)
jne 0x1739e
movl 0x28(%rsp), %ecx
shrl %cl, %ebx
cmpl %esi, %ebx
jae 0x1739e
leal (%r8,%rsi), %eax
cmpl %r11d, %eax
ja 0x1739e
leal (%r8,%rbx), %ecx
decl %ecx
movb (%r9,%rcx), %cl
decl %eax
cmpb (%r9,%rax), %cl
jne 0x1739e
movq %rdi, 0x48(%rsp)
movl %edx, 0x58(%rsp)
movq %r10, 0x68(%rsp)
movq %r8, 0x80(%rsp)
movl 0x38(%rsp), %eax
xorl %ecx, %ecx
movq 0x60(%rsp), %r8
movq %rcx, %r15
movl %eax, %r14d
leaq (%rsi,%rcx), %rax
cmpl %r11d, %eax
jae 0x17343
cmpq %r8, %r15
jae 0x17343
leal (%rbx,%r15), %ecx
movb (%r9,%rcx), %dl
movl %eax, %edi
leaq 0x1(%r15), %rcx
leal 0x8(%r14), %eax
cmpb (%r9,%rdi), %dl
je 0x17317
movl %esi, %edi
subl %ebx, %edi
movq %rsi, 0x70(%rsp)
movl %r11d, 0x18(%rsp)
movq %r9, 0x50(%rsp)
callq 0x16ae3
movq 0x50(%rsp), %r9
movl 0x18(%rsp), %r11d
movq 0x70(%rsp), %rsi
subl %eax, %r14d
cmpl 0x10(%rsp), %r14d
movq 0x80(%rsp), %r8
movq 0x68(%rsp), %r10
movl 0x58(%rsp), %edx
movq 0x48(%rsp), %rdi
jle 0x1739e
movl $0x0, 0x4(%rsp)
movl %r14d, 0x10(%rsp)
movl %ebx, 0xc(%rsp)
movl %r15d, %r8d
incl %r13d
cmpl $0x80, %r8d
jb 0x17291
movq 0x30(%rsp), %r13
movl 0x4(%rsp), %edx
movl 0x10(%rsp), %ebp
movl %esi, %r14d
subl 0xc(%rsp), %r14d
je 0x1742d
testl %ebp, %ebp
jle 0x1742d
movl %r8d, %ebp
subl %edx, %ebp
xorl %ecx, %ecx
cmpl $0x10000, %r14d         # imm = 0x10000
setae %cl
cmpl $0x1000000, %r14d       # imm = 0x1000000
sbbl $-0x1, %ecx
cmpl $0x2, 0x2c(%r13)
movl $0x0, %eax
cmovnel %eax, %ecx
addl %r10d, %ecx
movl 0x8(%rsp), %eax
cmpl %ecx, %ebp
jb 0x17431
addl %edx, %eax
movl %eax, 0x8(%rsp)
addl %edx, %esi
movq %r13, %rdi
leaq 0x8(%rsp), %rdx
movq %r8, %rbx
callq 0x177a2
movq %r13, %rdi
movl %ebp, %esi
movl %r14d, %edx
callq 0x178c0
movq %rbx, %r10
movq 0x88(%r13), %rax
jmp 0x17445
movl 0x8(%rsp), %eax
incl %eax
movl %eax, 0x8(%rsp)
pushq $0x1
popq %rax
movl %eax, %r10d
movq 0x98(%rsp), %rax
testq %rax, %rax
je 0x17472
addl %r10d, 0x38(%r13)
movl 0x8(%rsp), %eax
cmpl 0x48(%r13), %eax
jb 0x16c97
movl 0x38(%r13), %esi
movq %r13, %rdi
leaq 0x8(%rsp), %rdx
callq 0x177a2
jmp 0x16c97
movq 0x8(%r13), %rax
movq 0x20(%r13), %rdx
subl $0x1, %r10d
jb 0x1744e
movl 0x38(%r13), %edi
movl 0x64(%r13), %ecx
addl %edi, %ecx
cmpl 0x34(%r13), %ecx
jae 0x17545
imull $0x12d673, %edi, %esi   # imm = 0x12D673
shrl $0x13, %esi
movb 0x28(%r13), %cl
movl %edi, %r8d
shll %cl, %r8d
addl $0x3, %edi
movzbl (%rdx,%rdi), %edi
andl 0x14(%rsp), %edi
orl %r8d, %edi
andl 0x58(%r13), %esi
cmpl $0x0, 0x40(%r13)
je 0x17505
movl 0x54(%r13), %ecx
xorl %esi, %ecx
movl %edi, (%rax,%rcx,4)
imull $0x9, 0x54(%r13), %r8d
movb 0x60(%r13), %cl
shll %cl, %r8d
movl $0x165ec15, %ecx        # imm = 0x165EC15
addl %ecx, %r8d
movl 0x30(%r13), %ecx
movl 0x40(%r13), %r9d
addl 0x38(%r13), %r9d
addl 0x4c(%r13), %r9d
movzbl (%rdx,%r9), %r9d
imull $0x165ec15, %r9d, %r9d  # imm = 0x165EC15
addl %r8d, %r9d
decl %ecx
andl %r9d, %ecx
movl %ecx, 0x54(%r13)
xorl 0x50(%r13), %esi
movl %edi, (%rax,%rsi,4)
imull $0x5, 0x50(%r13), %esi
movb 0x5c(%r13), %cl
shll %cl, %esi
movl $0x75bcd17, %ecx        # imm = 0x75BCD17
addl %ecx, %esi
movl 0x30(%r13), %ecx
movl 0x38(%r13), %edi
movl 0x3c(%r13), %r8d
addl %edi, %r8d
movzbl (%rdx,%r8), %r8d
imull $0x75bcd17, %r8d, %r8d  # imm = 0x75BCD17
addl %esi, %r8d
decl %ecx
andl %r8d, %ecx
movl %ecx, 0x50(%r13)
incl %edi
movl %edi, 0x38(%r13)
jmp 0x1747a
cmpl %r11d, %esi
jne 0x1756a
leaq 0x8(%rsp), %rdx
movq %r13, %rdi
callq 0x177a2
movq %r13, %rdi
callq 0x1ca90
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq