LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: twekkel[P]mzpq/libzpaq.cpp
// Function: libzpaq::Compressor::startBlock(char const*)
void Compressor::startBlock(const char* hcomp) {
  assert(state==INIT);
  MemoryReader m(hcomp);
  z.read(&m);
  pz.sha1=&sha1;
  assert(z.header.isize()>6);
  enc.out->put('z');
  enc.out->put('P');
  enc.out->put('Q');
  enc.out->put(1+(z.header[6]==0));  // level 1 or 2
  enc.out->put(1);
  z.write(enc.out, false);
  state=BLOCK1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rsi
leaq -0x20(%rbp), %rdi
movq %rdi, -0x38(%rbp)
callq 0x31210
movq -0x40(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0xe7f0
jmp 0x15e98
movq -0x40(%rbp), %rax
movq %rax, %rcx
addq $0x1b1d8, %rcx          # imm = 0x1B1D8
movq %rcx, 0xc8(%rax)
movq 0x180(%rax), %rdi
movq (%rdi), %rax
movq (%rax), %rax
movl $0x7a, %esi
callq *%rax
jmp 0x15ec3
movq -0x40(%rbp), %rax
movq 0x180(%rax), %rdi
movq (%rdi), %rax
movq (%rax), %rax
movl $0x50, %esi
callq *%rax
jmp 0x15edd
movq -0x40(%rbp), %rax
movq 0x180(%rax), %rdi
movq (%rdi), %rax
movq (%rax), %rax
movl $0x51, %esi
callq *%rax
jmp 0x15ef7
movq -0x40(%rbp), %rdi
movq 0x180(%rdi), %rax
movq %rax, -0x50(%rbp)
addq $0x10, %rdi
movl $0x6, %esi
callq 0x30630
movq %rax, -0x48(%rbp)
jmp 0x15f1a
movq -0x50(%rbp), %rdi
movq -0x48(%rbp), %rax
movb (%rax), %al
xorl %esi, %esi
subb $0x1, %al
adcl $0x1, %esi
movq (%rdi), %rax
movq (%rax), %rax
callq *%rax
jmp 0x15f35
movq -0x40(%rbp), %rax
movq 0x180(%rax), %rdi
movq (%rdi), %rax
movq (%rax), %rax
movl $0x1, %esi
callq *%rax
jmp 0x15f4f
movq -0x40(%rbp), %rdi
movq 0x180(%rdi), %rsi
xorl %edx, %edx
callq 0xe6e0
jmp 0x15f63
movq -0x40(%rbp), %rax
movl $0x1, 0x1b25c(%rax)
leaq -0x20(%rbp), %rdi
callq 0x31250
addq $0x50, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x31250
movq -0x28(%rbp), %rdi
callq 0x5490
nop
// File: twekkel[P]mzpq/libzpaq.cpp
// Function: libzpaq::Compressor::startBlock(char const*, int*, libzpaq::Writer*)
void Compressor::startBlock(const char* config, int* args, Writer* pcomp_cmd) {
  assert(state==INIT);
  Compiler(config, args, z, pz, pcomp_cmd);
  pz.sha1=&sha1;
  assert(z.header.isize()>6);
  enc.out->put('z');
  enc.out->put('P');
  enc.out->put('Q');
  enc.out->put(1+(z.header[6]==0));  // level 1 or 2
  enc.out->put(1);
  z.write(enc.out, false);
  state=BLOCK1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rcx
movq %rcx, -0x98(%rbp)
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq %rcx, %r8
addq $0xc0, %r8
movq -0x20(%rbp), %r9
leaq -0x90(%rbp), %rdi
callq 0x154c0
leaq -0x90(%rbp), %rdi
callq 0x31270
movq -0x98(%rbp), %rax
movq %rax, %rcx
addq $0x1b1d8, %rcx          # imm = 0x1B1D8
movq %rcx, 0xc8(%rax)
movq 0x180(%rax), %rdi
movq (%rdi), %rax
movl $0x7a, %esi
callq *(%rax)
movq -0x98(%rbp), %rax
movq 0x180(%rax), %rdi
movq (%rdi), %rax
movl $0x50, %esi
callq *(%rax)
movq -0x98(%rbp), %rax
movq 0x180(%rax), %rdi
movq (%rdi), %rax
movl $0x51, %esi
callq *(%rax)
movq -0x98(%rbp), %rdi
movq 0x180(%rdi), %rax
movq %rax, -0xa0(%rbp)
addq $0x10, %rdi
movl $0x6, %esi
callq 0x30630
movq -0xa0(%rbp), %rdi
movzbl (%rax), %eax
cmpl $0x0, %eax
sete %al
andb $0x1, %al
movzbl %al, %esi
addl $0x1, %esi
movq (%rdi), %rax
callq *(%rax)
movq -0x98(%rbp), %rax
movq 0x180(%rax), %rdi
movq (%rdi), %rax
movl $0x1, %esi
callq *(%rax)
movq -0x98(%rbp), %rdi
movq 0x180(%rdi), %rsi
xorl %edx, %edx
callq 0xe6e0
movq -0x98(%rbp), %rax
movl $0x1, 0x1b25c(%rax)
addq $0xa0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: twekkel[P]mzpq/libzpaq.cpp
// Function: libzpaq::Compressor::startSegment(char const*, char const*)
void Compressor::startSegment(const char* filename, const char* comment) {
  assert(state==BLOCK1 || state==BLOCK2);
  enc.out->put(1);
  while (filename && *filename)
    enc.out->put(*filename++);
  enc.out->put(0);
  while (comment && *comment)
    enc.out->put(*comment++);
  enc.out->put(0);
  enc.out->put(0);
  if (state==BLOCK1) state=SEG1;
  if (state==BLOCK2) state=SEG2;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq 0x180(%rax), %rdi
movq (%rdi), %rax
movl $0x1, %esi
callq *(%rax)
xorl %eax, %eax
cmpq $0x0, -0x10(%rbp)
movb %al, -0x21(%rbp)
je 0x16126
movq -0x10(%rbp), %rax
cmpb $0x0, (%rax)
setne %al
movb %al, -0x21(%rbp)
movb -0x21(%rbp), %al
testb $0x1, %al
jne 0x1612f
jmp 0x16153
movq -0x20(%rbp), %rax
movq 0x180(%rax), %rdi
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movsbl (%rax), %esi
movq (%rdi), %rax
callq *(%rax)
jmp 0x1610d
movq -0x20(%rbp), %rax
movq 0x180(%rax), %rdi
movq (%rdi), %rax
xorl %esi, %esi
callq *(%rax)
xorl %eax, %eax
cmpq $0x0, -0x18(%rbp)
movb %al, -0x22(%rbp)
je 0x1617e
movq -0x18(%rbp), %rax
cmpb $0x0, (%rax)
setne %al
movb %al, -0x22(%rbp)
movb -0x22(%rbp), %al
testb $0x1, %al
jne 0x16187
jmp 0x161ab
movq -0x20(%rbp), %rax
movq 0x180(%rax), %rdi
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
movsbl (%rax), %esi
movq (%rdi), %rax
callq *(%rax)
jmp 0x16165
movq -0x20(%rbp), %rax
movq 0x180(%rax), %rdi
movq (%rdi), %rax
xorl %esi, %esi
callq *(%rax)
movq -0x20(%rbp), %rax
movq 0x180(%rax), %rdi
movq (%rdi), %rax
xorl %esi, %esi
callq *(%rax)
movq -0x20(%rbp), %rax
cmpl $0x1, 0x1b25c(%rax)
jne 0x161ea
movq -0x20(%rbp), %rax
movl $0x2, 0x1b25c(%rax)
movq -0x20(%rbp), %rax
cmpl $0x3, 0x1b25c(%rax)
jne 0x16205
movq -0x20(%rbp), %rax
movl $0x4, 0x1b25c(%rax)
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: twekkel[P]mzpq/libzpaq.cpp
// Function: libzpaq::Compressor::postProcess(char const*, int)
void Compressor::postProcess(const char* pcomp, int len) {
  if (state==SEG2) return;
  assert(state==SEG1);
  enc.init();
  if (!pcomp) {
    len=pz.hend-pz.hbegin;
    if (len>0) {
      assert(pz.header.isize()>pz.hend);
      assert(pz.hbegin>=0);
      pcomp=(const char*)&pz.header[pz.hbegin];
    }
    assert(len>=0);
  }
  else if (len==0) {
    len=toU16(pcomp);
    pcomp+=2;
  }
  if (len>0) {
    enc.compress(1);
    enc.compress(len&255);
    enc.compress((len>>8)&255);
    for (int i=0; i<len; ++i)
      enc.compress(pcomp[i]&255);
    if (verify)
      pz.initp();
  }
  else
    enc.compress(0);
  state=SEG2;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
cmpl $0x4, 0x1b25c(%rax)
jne 0x16239
jmp 0x1637c
movq -0x20(%rbp), %rdi
addq $0x180, %rdi            # imm = 0x180
callq 0x14490
cmpq $0x0, -0x10(%rbp)
jne 0x1628d
movq -0x20(%rbp), %rcx
movl 0xf0(%rcx), %eax
subl 0xec(%rcx), %eax
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
jle 0x1628b
movq -0x20(%rbp), %rax
movq %rax, %rdi
addq $0xc0, %rdi
addq $0x10, %rdi
movslq 0xec(%rax), %rsi
callq 0x30630
movq %rax, -0x10(%rbp)
jmp 0x162ad
cmpl $0x0, -0x14(%rbp)
jne 0x162ab
movq -0x10(%rbp), %rdi
callq 0x64c0
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x10(%rbp)
jmp 0x162ad
cmpl $0x0, -0x14(%rbp)
jle 0x1635c
movq -0x20(%rbp), %rdi
addq $0x180, %rdi            # imm = 0x180
movl $0x1, %esi
callq 0x145a0
movq -0x20(%rbp), %rdi
addq $0x180, %rdi            # imm = 0x180
movl -0x14(%rbp), %esi
andl $0xff, %esi
callq 0x145a0
movq -0x20(%rbp), %rdi
addq $0x180, %rdi            # imm = 0x180
movl -0x14(%rbp), %esi
sarl $0x8, %esi
andl $0xff, %esi
callq 0x145a0
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x1633d
movq -0x20(%rbp), %rdi
addq $0x180, %rdi            # imm = 0x180
movq -0x10(%rbp), %rax
movslq -0x18(%rbp), %rcx
movsbl (%rax,%rcx), %esi
andl $0xff, %esi
callq 0x145a0
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x16308
movq -0x20(%rbp), %rax
testb $0x1, 0x1b260(%rax)
je 0x1635a
movq -0x20(%rbp), %rdi
addq $0xc0, %rdi
callq 0xef20
jmp 0x1636e
movq -0x20(%rbp), %rdi
addq $0x180, %rdi            # imm = 0x180
xorl %esi, %esi
callq 0x145a0
movq -0x20(%rbp), %rax
movl $0x4, 0x1b25c(%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: twekkel[P]mzpq/libzpaq.cpp
// Function: libzpaq::Compressor::compress(int)
bool Compressor::compress(int n) {
  if (state==SEG1)
    postProcess();
  assert(state==SEG2);

  const int BUFSIZE=1<<14;
  char buf[BUFSIZE];  // input buffer
  while (n) {
    int nbuf=BUFSIZE;  // bytes read into buf
    if (n>=0 && n<nbuf) nbuf=n;
    int nr=in->read(buf, nbuf);
    if (nr<0 || nr>BUFSIZE || nr>nbuf) error("invalid read size");
    if (nr<=0) return false;
    if (n>=0) n-=nr;
    for (int i=0; i<nr; ++i) {
      int ch=U8(buf[i]);
      enc.compress(ch);
      if (verify) {
        if (pz.hend) pz.run(ch);
        else sha1.put(ch);
      }
    }
  }
  return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x4040, %rsp           # imm = 0x4040
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x4038(%rbp)
cmpl $0x2, 0x1b25c(%rax)
jne 0x163c8
movq -0x4038(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq 0x16210
movl $0x4000, -0x18(%rbp)    # imm = 0x4000
cmpl $0x0, -0x14(%rbp)
je 0x16534
movl $0x4000, -0x4024(%rbp)  # imm = 0x4000
cmpl $0x0, -0x14(%rbp)
jl 0x163fd
movl -0x14(%rbp), %eax
cmpl -0x4024(%rbp), %eax
jge 0x163fd
movl -0x14(%rbp), %eax
movl %eax, -0x4024(%rbp)
movq -0x4038(%rbp), %rax
movq 0x1b1d0(%rax), %rdi
leaq -0x4020(%rbp), %rsi
movl -0x4024(%rbp), %edx
movq (%rdi), %rax
callq *0x8(%rax)
movl %eax, -0x4028(%rbp)
cmpl $0x0, -0x4028(%rbp)
jl 0x16447
cmpl $0x4000, -0x4028(%rbp)  # imm = 0x4000
jg 0x16447
movl -0x4028(%rbp), %eax
cmpl -0x4024(%rbp), %eax
jle 0x16453
leaq 0x2231e(%rip), %rdi     # 0x3876c
callq 0x5720
cmpl $0x0, -0x4028(%rbp)
jg 0x16465
movb $0x0, -0x1(%rbp)
jmp 0x16538
cmpl $0x0, -0x14(%rbp)
jl 0x16479
movl -0x4028(%rbp), %ecx
movl -0x14(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x14(%rbp)
movl $0x0, -0x402c(%rbp)
movl -0x402c(%rbp), %eax
cmpl -0x4028(%rbp), %eax
jge 0x1652f
movq -0x4038(%rbp), %rdi
movslq -0x402c(%rbp), %rax
movzbl -0x4020(%rbp,%rax), %eax
movl %eax, -0x4030(%rbp)
addq $0x180, %rdi            # imm = 0x180
movl -0x4030(%rbp), %esi
callq 0x145a0
movq -0x4038(%rbp), %rax
testb $0x1, 0x1b260(%rax)
je 0x16519
movq -0x4038(%rbp), %rax
cmpl $0x0, 0xf0(%rax)
je 0x164fe
movq -0x4038(%rbp), %rdi
addq $0xc0, %rdi
movl -0x4030(%rbp), %esi
callq 0x132c0
jmp 0x16517
movq -0x4038(%rbp), %rdi
addq $0x1b1d8, %rdi          # imm = 0x1B1D8
movl -0x4030(%rbp), %esi
callq 0x30080
jmp 0x16519
jmp 0x1651b
movl -0x402c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x402c(%rbp)
jmp 0x16483
jmp 0x163cf
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x4040, %rsp           # imm = 0x4040
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: twekkel[P]mzpq/libzpaq.cpp
// Function: libzpaq::Compressor::endSegment(char const*)
void Compressor::endSegment(const char* sha1string) {
  if (state==SEG1)
    postProcess();
  assert(state==SEG2);
  enc.compress(-1);
  if (verify && pz.hend) {
    pz.run(-1);
    pz.flush();
  }
  enc.out->put(0);
  enc.out->put(0);
  enc.out->put(0);
  enc.out->put(0);
  if (sha1string) {
    enc.out->put(253);
    for (int i=0; i<20; ++i)
      enc.out->put(sha1string[i]);
  }
  else
    enc.out->put(254);
  state=BLOCK2;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
cmpl $0x2, 0x1b25c(%rax)
jne 0x16580
movq -0x20(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq 0x16210
movq -0x20(%rbp), %rdi
addq $0x180, %rdi            # imm = 0x180
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x145a0
movq -0x20(%rbp), %rax
testb $0x1, 0x1b260(%rax)
je 0x165d4
movq -0x20(%rbp), %rax
cmpl $0x0, 0xf0(%rax)
je 0x165d4
movq -0x20(%rbp), %rdi
addq $0xc0, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x132c0
movq -0x20(%rbp), %rdi
addq $0xc0, %rdi
callq 0xef70
movq -0x20(%rbp), %rax
movq 0x180(%rax), %rdi
movq (%rdi), %rax
xorl %esi, %esi
callq *(%rax)
movq -0x20(%rbp), %rax
movq 0x180(%rax), %rdi
movq (%rdi), %rax
xorl %esi, %esi
callq *(%rax)
movq -0x20(%rbp), %rax
movq 0x180(%rax), %rdi
movq (%rdi), %rax
xorl %esi, %esi
callq *(%rax)
movq -0x20(%rbp), %rax
movq 0x180(%rax), %rdi
movq (%rdi), %rax
xorl %esi, %esi
callq *(%rax)
cmpq $0x0, -0x10(%rbp)
je 0x1666e
movq -0x20(%rbp), %rax
movq 0x180(%rax), %rdi
movq (%rdi), %rax
movl $0xfd, %esi
callq *(%rax)
movl $0x0, -0x14(%rbp)
cmpl $0x14, -0x14(%rbp)
jge 0x1666c
movq -0x20(%rbp), %rax
movq 0x180(%rax), %rdi
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %esi
movq (%rdi), %rax
callq *(%rax)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x1663f
jmp 0x16683
movq -0x20(%rbp), %rax
movq 0x180(%rax), %rdi
movq (%rdi), %rax
movl $0xfe, %esi
callq *(%rax)
movq -0x20(%rbp), %rax
movl $0x3, 0x1b25c(%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: twekkel[P]mzpq/libzpaq.cpp
// Function: libzpaq::Compressor::endSegmentChecksum(long*, bool)
char* Compressor::endSegmentChecksum(int64_t* size, bool dosha1) {
  if (state==SEG1)
    postProcess();
  assert(state==SEG2);
  enc.compress(-1);
  if (verify && pz.hend) {
    pz.run(-1);
    pz.flush();
  }
  enc.out->put(0);
  enc.out->put(0);
  enc.out->put(0);
  enc.out->put(0);
  if (verify) {
    if (size) *size=sha1.usize();
    memcpy(sha1result, sha1.result(), 20);
  }
  if (verify && dosha1) {
    enc.out->put(253);
    for (int i=0; i<20; ++i)
      enc.out->put(sha1result[i]);
  }
  else
    enc.out->put(254);
  state=BLOCK2;
  return verify ? sha1result : 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movb %dl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
andb $0x1, %al
movb %al, -0x11(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
cmpl $0x2, 0x1b25c(%rax)
jne 0x166d7
movq -0x20(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq 0x16210
movq -0x20(%rbp), %rdi
addq $0x180, %rdi            # imm = 0x180
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x145a0
movq -0x20(%rbp), %rax
testb $0x1, 0x1b260(%rax)
je 0x1672b
movq -0x20(%rbp), %rax
cmpl $0x0, 0xf0(%rax)
je 0x1672b
movq -0x20(%rbp), %rdi
addq $0xc0, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x132c0
movq -0x20(%rbp), %rdi
addq $0xc0, %rdi
callq 0xef70
movq -0x20(%rbp), %rax
movq 0x180(%rax), %rdi
movq (%rdi), %rax
xorl %esi, %esi
callq *(%rax)
movq -0x20(%rbp), %rax
movq 0x180(%rax), %rdi
movq (%rdi), %rax
xorl %esi, %esi
callq *(%rax)
movq -0x20(%rbp), %rax
movq 0x180(%rax), %rdi
movq (%rdi), %rax
xorl %esi, %esi
callq *(%rax)
movq -0x20(%rbp), %rax
movq 0x180(%rax), %rdi
movq (%rdi), %rax
xorl %esi, %esi
callq *(%rax)
movq -0x20(%rbp), %rax
testb $0x1, 0x1b260(%rax)
je 0x167d6
cmpq $0x0, -0x10(%rbp)
je 0x167a1
movq -0x20(%rbp), %rdi
addq $0x1b1d8, %rdi          # imm = 0x1B1D8
callq 0x312a0
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x20(%rbp), %rdi
addq $0x1b1d8, %rdi          # imm = 0x1B1D8
callq 0x66f0
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq (%rcx), %rdx
movq %rdx, 0x1b248(%rax)
movq 0x8(%rcx), %rdx
movq %rdx, 0x1b250(%rax)
movl 0x10(%rcx), %ecx
movl %ecx, 0x1b258(%rax)
movq -0x20(%rbp), %rax
testb $0x1, 0x1b260(%rax)
je 0x16834
testb $0x1, -0x11(%rbp)
je 0x16834
movq -0x20(%rbp), %rax
movq 0x180(%rax), %rdi
movq (%rdi), %rax
movl $0xfd, %esi
callq *(%rax)
movl $0x0, -0x18(%rbp)
cmpl $0x14, -0x18(%rbp)
jge 0x16832
movq -0x20(%rbp), %rax
movq 0x180(%rax), %rdi
movslq -0x18(%rbp), %rcx
movsbl 0x1b248(%rax,%rcx), %esi
movq (%rdi), %rax
callq *(%rax)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x16805
jmp 0x16849
movq -0x20(%rbp), %rax
movq 0x180(%rax), %rdi
movq (%rdi), %rax
movl $0xfe, %esi
callq *(%rax)
movq -0x20(%rbp), %rax
movl $0x3, 0x1b25c(%rax)
testb $0x1, 0x1b260(%rax)
je 0x16870
movq -0x20(%rbp), %rax
addq $0x1b248, %rax          # imm = 0x1B248
movq %rax, -0x28(%rbp)
jmp 0x16878
xorl %eax, %eax
movq %rax, -0x28(%rbp)
jmp 0x16878
movq -0x28(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: twekkel[P]mzpq/libzpaq.cpp
// Function: libzpaq::flush1(libzpaq::ZPAQL*)
static int flush1(ZPAQL* z) {
  try {
    z->flush();
    return 0;
  }
  catch(std::bad_alloc& x) {
    return 2;
  }
  catch(...) {
    return 3;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0xef70
jmp 0x1c987
movl $0x0, -0x4(%rbp)
jmp 0x1c9d8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movl $0x2, %ecx
cmpl %ecx, %eax
jne 0x1c9c3
movq -0x18(%rbp), %rdi
callq 0x5100
movq %rax, -0x28(%rbp)
movl $0x2, -0x4(%rbp)
callq 0x5440
jmp 0x1c9d8
movq -0x18(%rbp), %rdi
callq 0x5100
movl $0x3, -0x4(%rbp)
callq 0x5440
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: twekkel[P]mzpq/libzpaq.cpp
// Function: libzpaq::oplen(unsigned char const*)
static int oplen(const U8* hcomp) {
  if (*hcomp==255) return 3;
  if (*hcomp%8==7) return 2;
  if (*hcomp<51 && (*hcomp%8-1)/2==0) {  // ++ or -- opcode
    int i;
    for (i=1; i<127 && hcomp[i]==hcomp[0]; ++i);
    return i;
  }
  return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xff, %eax
jne 0x1ca12
movl $0x3, -0x4(%rbp)
jmp 0x1caae
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
movl $0x8, %ecx
cltd
idivl %ecx
cmpl $0x7, %edx
jne 0x1ca2f
movl $0x2, -0x4(%rbp)
jmp 0x1caae
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x33, %eax
jge 0x1caa7
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
movl $0x8, %ecx
cltd
idivl %ecx
movl %edx, %eax
subl $0x1, %eax
movl $0x2, %ecx
cltd
idivl %ecx
cmpl $0x0, %eax
jne 0x1caa7
movl $0x1, -0x14(%rbp)
xorl %eax, %eax
cmpl $0x7f, -0x14(%rbp)
movb %al, -0x15(%rbp)
jge 0x1ca89
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movq -0x10(%rbp), %rcx
movzbl (%rcx), %ecx
cmpl %ecx, %eax
sete %al
movb %al, -0x15(%rbp)
movb -0x15(%rbp), %al
testb $0x1, %al
jne 0x1ca92
jmp 0x1ca9f
jmp 0x1ca94
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x1ca63
movl -0x14(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x1caae
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: twekkel[P]mzpq/libzpaq.cpp
// Function: libzpaq::divsufsort(unsigned char const*, int*, int)
int
divsufsort(const unsigned char *T, int *SA, int n) {
  int *bucket_A, *bucket_B;
  int m;
  int err = 0;

  /* Check arguments. */
  if((T == NULL) || (SA == NULL) || (n < 0)) { return -1; }
  else if(n == 0) { return 0; }
  else if(n == 1) { SA[0] = 0; return 0; }
  else if(n == 2) { m = (T[0] < T[1]); SA[m ^ 1] = 0, SA[m] = 1; return 0; }

  bucket_A = (int *)malloc(BUCKET_A_SIZE * sizeof(int));
  bucket_B = (int *)malloc(BUCKET_B_SIZE * sizeof(int));

  /* Suffixsort. */
  if((bucket_A != NULL) && (bucket_B != NULL)) {
    m = sort_typeBstar(T, SA, bucket_A, bucket_B, n);
    construct_SA(T, SA, bucket_A, bucket_B, n, m);
  } else {
    err = -2;
  }

  free(bucket_B);
  free(bucket_A);

  return err;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movl $0x0, -0x38(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x212de
cmpq $0x0, -0x18(%rbp)
je 0x212de
cmpl $0x0, -0x1c(%rbp)
jge 0x212ea
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x213f3
cmpl $0x0, -0x1c(%rbp)
jne 0x212fc
movl $0x0, -0x4(%rbp)
jmp 0x213f3
cmpl $0x1, -0x1c(%rbp)
jne 0x21318
movq -0x18(%rbp), %rax
movl $0x0, (%rax)
movl $0x0, -0x4(%rbp)
jmp 0x213f3
cmpl $0x2, -0x1c(%rbp)
jne 0x21369
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
movq -0x10(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
cmpl %ecx, %eax
setl %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x34(%rbp)
movq -0x18(%rbp), %rax
movl -0x34(%rbp), %ecx
xorl $0x1, %ecx
movslq %ecx, %rcx
movl $0x0, (%rax,%rcx,4)
movq -0x18(%rbp), %rax
movslq -0x34(%rbp), %rcx
movl $0x1, (%rax,%rcx,4)
movl $0x0, -0x4(%rbp)
jmp 0x213f3
jmp 0x2136b
jmp 0x2136d
jmp 0x2136f
movl $0x400, %edi            # imm = 0x400
callq 0x5380
movq %rax, -0x28(%rbp)
movl $0x40000, %edi          # imm = 0x40000
callq 0x5380
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x213d4
cmpq $0x0, -0x30(%rbp)
je 0x213d4
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
movl -0x1c(%rbp), %r8d
callq 0x21400
movl %eax, -0x34(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
movl -0x1c(%rbp), %r8d
movl -0x34(%rbp), %r9d
callq 0x21bf0
jmp 0x213db
movl $0xfffffffe, -0x38(%rbp) # imm = 0xFFFFFFFE
movq -0x30(%rbp), %rdi
callq 0x5320
movq -0x28(%rbp), %rdi
callq 0x5320
movl -0x38(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
// File: twekkel[P]mzpq/libzpaq.cpp
// Function: libzpaq::itos[abi:cxx11](long, int)
std::string itos(int64_t x, int n=1) {
  assert(x>=0);
  assert(n>=0);
  std::string r;
  for (; x || n>0; x/=10, --n) r=std::string(1, '0'+x%10)+r;
  return r;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x80(%rbp)
movq %rdi, %rax
movq %rax, -0x78(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movb $0x0, -0x15(%rbp)
callq 0x53a0
movb $0x1, %al
cmpq $0x0, -0x10(%rbp)
movb %al, -0x81(%rbp)
jne 0x22466
cmpl $0x0, -0x14(%rbp)
setg %al
movb %al, -0x81(%rbp)
movb -0x81(%rbp), %al
testb $0x1, %al
jne 0x22475
jmp 0x22575
movq -0x10(%rbp), %rax
movq %rax, -0xa0(%rbp)
movabsq $0x6666666666666667, %rcx # imm = 0x6666666666666667
imulq %rcx
movq -0xa0(%rbp), %rax
movq %rdx, %rcx
shrq $0x3f, %rcx
shrq $0x2, %rdx
addl %ecx, %edx
addl %edx, %edx
movl %edx, %ecx
leal (%rcx,%rcx,4), %ecx
subl %ecx, %eax
addl $0x30, %eax
movl %eax, -0x94(%rbp)
leaq -0x59(%rbp), %rdi
movq %rdi, -0x90(%rbp)
callq 0x54a0
movl -0x94(%rbp), %eax
movq -0x90(%rbp), %rcx
movsbl %al, %edx
leaq -0x58(%rbp), %rdi
movl $0x1, %esi
callq 0x31590
jmp 0x224e3
movq -0x80(%rbp), %rdx
leaq -0x38(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x31540
jmp 0x224f6
movq -0x80(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x5340
leaq -0x38(%rbp), %rdi
callq 0x5548
leaq -0x58(%rbp), %rdi
callq 0x5548
leaq -0x59(%rbp), %rdi
callq 0x52c0
movq -0x10(%rbp), %rax
movl $0xa, %ecx
cqto
idivq %rcx
movq %rax, -0x10(%rbp)
movl -0x14(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x2244a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x22561
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x5548
leaq -0x59(%rbp), %rdi
callq 0x52c0
movq -0x80(%rbp), %rdi
callq 0x5548
jmp 0x22595
movb $0x1, -0x15(%rbp)
testb $0x1, -0x15(%rbp)
jne 0x22588
movq -0x80(%rbp), %rdi
callq 0x5548
movq -0x78(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq
movq -0x68(%rbp), %rdi
callq 0x5490
nop
// File: twekkel[P]mzpq/libzpaq.cpp
// Function: libzpaq::e8e9(unsigned char*, int)
void e8e9(unsigned char* buf, int n) {
  for (int i=n-5; i>=0; --i) {
    if (((buf[i]&254)==0xe8) && ((buf[i+4]+1)&254)==0) {
      unsigned a=(buf[i+1]|buf[i+2]<<8|buf[i+3]<<16)+i;
      buf[i+1]=a;
      buf[i+2]=a>>8;
      buf[i+3]=a>>16;
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl -0xc(%rbp), %eax
subl $0x5, %eax
movl %eax, -0x10(%rbp)
cmpl $0x0, -0x10(%rbp)
jl 0x22694
movq -0x8(%rbp), %rax
movslq -0x10(%rbp), %rcx
movzbl (%rax,%rcx), %eax
andl $0xfe, %eax
cmpl $0xe8, %eax
jne 0x22684
movq -0x8(%rbp), %rax
movl -0x10(%rbp), %ecx
addl $0x4, %ecx
movslq %ecx, %rcx
movzbl (%rax,%rcx), %eax
addl $0x1, %eax
andl $0xfe, %eax
cmpl $0x0, %eax
jne 0x22684
movq -0x8(%rbp), %rax
movl -0x10(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movzbl (%rax,%rcx), %eax
movq -0x8(%rbp), %rcx
movl -0x10(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movzbl (%rcx,%rdx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movq -0x8(%rbp), %rcx
movl -0x10(%rbp), %edx
addl $0x3, %edx
movslq %edx, %rdx
movzbl (%rcx,%rdx), %ecx
shll $0x10, %ecx
orl %ecx, %eax
addl -0x10(%rbp), %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
movb %al, %dl
movq -0x8(%rbp), %rax
movl -0x10(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movl -0x14(%rbp), %eax
shrl $0x8, %eax
movb %al, %dl
movq -0x8(%rbp), %rax
movl -0x10(%rbp), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movl -0x14(%rbp), %eax
shrl $0x10, %eax
movb %al, %dl
movq -0x8(%rbp), %rax
movl -0x10(%rbp), %ecx
addl $0x3, %ecx
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
jmp 0x22686
movl -0x10(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x225b4
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: twekkel[P]mzpq/libzpaq.cpp
// Function: libzpaq::lg(unsigned int)
int lg(unsigned x) {
  unsigned r=0;
  if (x>=65536) r=16, x>>=16;
  if (x>=256) r+=8, x>>=8;
  if (x>=16) r+=4, x>>=4;
  assert(x>=0 && x<16);
  return
    "\x00\x01\x02\x02\x03\x03\x03\x03\x04\x04\x04\x04\x04\x04\x04\x04"[x]+r;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x4(%rbp)
movl $0x0, -0x8(%rbp)
cmpl $0x10000, -0x4(%rbp)    # imm = 0x10000
jb 0x226c7
movl $0x10, -0x8(%rbp)
movl -0x4(%rbp), %eax
shrl $0x10, %eax
movl %eax, -0x4(%rbp)
cmpl $0x100, -0x4(%rbp)      # imm = 0x100
jb 0x226e2
movl -0x8(%rbp), %eax
addl $0x8, %eax
movl %eax, -0x8(%rbp)
movl -0x4(%rbp), %eax
shrl $0x8, %eax
movl %eax, -0x4(%rbp)
cmpl $0x10, -0x4(%rbp)
jb 0x226fa
movl -0x8(%rbp), %eax
addl $0x4, %eax
movl %eax, -0x8(%rbp)
movl -0x4(%rbp), %eax
shrl $0x4, %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
movl %eax, %ecx
leaq 0x14f62(%rip), %rax     # 0x37668
movsbl (%rax,%rcx), %eax
addl -0x8(%rbp), %eax
popq %rbp
retq
nop
// File: twekkel[P]mzpq/libzpaq.cpp
// Function: libzpaq::LZBuffer::read(char*, int)
int LZBuffer::read(char* p, int n) {
  if (rpos==wpos) fill();
  int nr=n;
  if (nr>int(wpos-rpos)) nr=wpos-rpos;
  if (nr) memcpy(p, buf+rpos, nr);
  rpos+=nr;
  assert(rpos<=wpos);
  if (rpos==wpos) rpos=wpos=0;
  return nr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movl 0x74(%rcx), %eax
cmpl 0x78(%rcx), %eax
jne 0x2276c
movq -0x20(%rbp), %rdi
callq 0x227f0
movq -0x20(%rbp), %rdx
movl -0x14(%rbp), %eax
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %eax
movl 0x78(%rdx), %ecx
subl 0x74(%rdx), %ecx
cmpl %ecx, %eax
jle 0x22790
movq -0x20(%rbp), %rcx
movl 0x78(%rcx), %eax
subl 0x74(%rcx), %eax
movl %eax, -0x18(%rbp)
cmpl $0x0, -0x18(%rbp)
je 0x227b7
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rdi
movq %rax, %rsi
addq $0x90, %rsi
movl 0x74(%rax), %eax
addq %rax, %rsi
movslq -0x18(%rbp), %rdx
callq 0x5200
movq -0x20(%rbp), %rcx
movl -0x18(%rbp), %eax
addl 0x74(%rcx), %eax
movl %eax, 0x74(%rcx)
movl 0x74(%rcx), %eax
cmpl 0x78(%rcx), %eax
jne 0x227de
movq -0x20(%rbp), %rax
movl $0x0, 0x78(%rax)
movl $0x0, 0x74(%rax)
movl -0x18(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: twekkel[P]mzpq/libzpaq.cpp
// Function: libzpaq::LZBuffer::write_literal(unsigned int, unsigned int&)
void LZBuffer::write_literal(unsigned i, unsigned& lit) {
  assert(lit>=0);
  assert(i>=0 && i<=n);
  assert(i>=lit);
  if (level==1) {
    if (lit<1) return;
    int ll=lg(lit);
    assert(ll>=1 && ll<=24);
    putb(0, 2);
    --ll;
    while (--ll>=0) {
      putb(1, 1);
      putb((lit>>ll)&1, 1);
    }
    putb(0, 1);
    while (lit) putb(in[i-lit--], 8);
  }
  else {
    assert(level==2);
    while (lit>0) {
      unsigned lit1=lit;
      if (lit1>64) lit1=64;
      put(lit1-1);
      for (unsigned j=i-lit; j<i-lit+lit1; ++j) put(in[j]);
      lit-=lit1;
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
cmpl $0x1, 0x2c(%rax)
jne 0x23a00
movq -0x18(%rbp), %rax
cmpl $0x1, (%rax)
jae 0x23953
jmp 0x23a7f
movq -0x18(%rbp), %rax
movl (%rax), %edi
callq 0x226a0
movq -0x30(%rbp), %rdi
movl %eax, -0x1c(%rbp)
xorl %esi, %esi
movl $0x2, %edx
callq 0x316a0
movl -0x1c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x1c(%rbp)
cmpl $0x0, %eax
jl 0x239b6
movq -0x30(%rbp), %rdi
movl $0x1, %edx
movl %edx, %esi
callq 0x316a0
movq -0x30(%rbp), %rdi
movq -0x18(%rbp), %rax
movl (%rax), %esi
movl -0x1c(%rbp), %ecx
shrl %cl, %esi
andl $0x1, %esi
movl $0x1, %edx
callq 0x316a0
jmp 0x2397a
movq -0x30(%rbp), %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x316a0
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
je 0x239fe
movq -0x30(%rbp), %rdi
movq 0x20(%rdi), %rax
movl -0xc(%rbp), %ecx
movq -0x18(%rbp), %rsi
movl (%rsi), %edx
movl %edx, %r8d
addl $-0x1, %r8d
movl %r8d, (%rsi)
subl %edx, %ecx
movl %ecx, %ecx
movzbl (%rax,%rcx), %esi
movl $0x8, %edx
callq 0x316a0
jmp 0x239c6
jmp 0x23a7f
jmp 0x23a02
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
jbe 0x23a7d
movq -0x18(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x20(%rbp)
cmpl $0x40, -0x20(%rbp)
jbe 0x23a21
movl $0x40, -0x20(%rbp)
movq -0x30(%rbp), %rdi
movl -0x20(%rbp), %esi
subl $0x1, %esi
callq 0x31620
movl -0xc(%rbp), %eax
movq -0x18(%rbp), %rcx
subl (%rcx), %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
movl -0xc(%rbp), %ecx
movq -0x18(%rbp), %rdx
subl (%rdx), %ecx
addl -0x20(%rbp), %ecx
cmpl %ecx, %eax
jae 0x23a6e
movq -0x30(%rbp), %rdi
movq 0x20(%rdi), %rax
movl -0x24(%rbp), %ecx
movzbl (%rax,%rcx), %esi
callq 0x31620
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x23a3c
movl -0x20(%rbp), %edx
movq -0x18(%rbp), %rax
movl (%rax), %ecx
subl %edx, %ecx
movl %ecx, (%rax)
jmp 0x23a02
jmp 0x23a7f
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: twekkel[P]mzpq/libzpaq.cpp
// Function: libzpaq::blockmix(unsigned int*, int)
static void blockmix(U32* b, int r) {
  assert(r<=8);
  U32 x[16];
  U32 y[256];
  memcpy(x, b+32*r-16, 64);
  for (int i=0; i<2*r; ++i) {
    for (int j=0; j<16; ++j) x[j]^=b[i*16+j];
    salsa8(x);
    memcpy(&y[i*16], x, 64);
  }
  for (int i=0; i<r; ++i) memcpy(b+i*16, &y[i*32], 64);
  for (int i=0; i<r; ++i) memcpy(b+(i+r)*16, &y[i*32+16], 64);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x460, %rsp            # imm = 0x460
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
leaq -0x50(%rbp), %rdi
movq -0x8(%rbp), %rsi
movl -0xc(%rbp), %eax
shll $0x5, %eax
cltq
shlq $0x2, %rax
addq %rax, %rsi
addq $-0x40, %rsi
movl $0x40, %edx
callq 0x5200
movl $0x0, -0x454(%rbp)
movl -0x454(%rbp), %eax
movl -0xc(%rbp), %ecx
shll %ecx
cmpl %ecx, %eax
jge 0x28404
movl $0x0, -0x458(%rbp)
cmpl $0x10, -0x458(%rbp)
jge 0x283c0
movq -0x8(%rbp), %rax
movl -0x454(%rbp), %ecx
shll $0x4, %ecx
addl -0x458(%rbp), %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %ecx
movslq -0x458(%rbp), %rax
xorl -0x50(%rbp,%rax,4), %ecx
movl %ecx, -0x50(%rbp,%rax,4)
movl -0x458(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x458(%rbp)
jmp 0x2837e
leaq -0x50(%rbp), %rdi
callq 0x284e0
movl -0x454(%rbp), %eax
shll $0x4, %eax
cltq
leaq -0x450(%rbp), %rdi
shlq $0x2, %rax
addq %rax, %rdi
leaq -0x50(%rbp), %rsi
movl $0x40, %edx
callq 0x5200
movl -0x454(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x454(%rbp)
jmp 0x28361
movl $0x0, -0x45c(%rbp)
movl -0x45c(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x28463
movq -0x8(%rbp), %rdi
movl -0x45c(%rbp), %eax
shll $0x4, %eax
cltq
shlq $0x2, %rax
addq %rax, %rdi
movl -0x45c(%rbp), %eax
shll $0x5, %eax
cltq
leaq -0x450(%rbp), %rsi
shlq $0x2, %rax
addq %rax, %rsi
movl $0x40, %edx
callq 0x5200
movl -0x45c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x45c(%rbp)
jmp 0x2840e
movl $0x0, -0x460(%rbp)
movl -0x460(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x284c8
movq -0x8(%rbp), %rdi
movl -0x460(%rbp), %eax
addl -0xc(%rbp), %eax
shll $0x4, %eax
cltq
shlq $0x2, %rax
addq %rax, %rdi
movl -0x460(%rbp), %eax
shll $0x5, %eax
addl $0x10, %eax
cltq
leaq -0x450(%rbp), %rsi
shlq $0x2, %rax
addq %rax, %rsi
movl $0x40, %edx
callq 0x5200
movl -0x460(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x460(%rbp)
jmp 0x2846d
addq $0x460, %rsp            # imm = 0x460
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: twekkel[P]mzpq/./libzpaq.h
// Function: libzpaq::SHA1::put(int)
void put(int c) {  // hash 1 byte
    U32& r=w[U32(len)>>5&15];
    r=(r<<8)|(c&255);
    len+=8;
    if ((U32(len)&511)==0) process();
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq %rax, %rcx
addq $0x1c, %rcx
movq (%rax), %rdx
shrl $0x5, %edx
andl $0xf, %edx
movl %edx, %edx
shlq $0x2, %rdx
addq %rdx, %rcx
movq %rcx, -0x18(%rbp)
movq -0x18(%rbp), %rcx
movl (%rcx), %edx
shll $0x8, %edx
movl -0xc(%rbp), %ecx
andl $0xff, %ecx
orl %ecx, %edx
movq -0x18(%rbp), %rcx
movl %edx, (%rcx)
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
movq (%rax), %rax
andl $0x1ff, %eax            # imm = 0x1FF
cmpl $0x0, %eax
jne 0x300ee
movq -0x20(%rbp), %rdi
callq 0x69c0
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
// File: twekkel[P]mzpq/./libzpaq.h
// Function: libzpaq::SHA256::put(int)
void put(int c) {  // hash 1 byte
    unsigned& r=w[len0>>5&15];
    r=(r<<8)|(c&255);
    if (!(len0+=8)) ++len1;
    if ((len0&511)==0) process();
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq %rcx, %rax
addq $0x28, %rax
movl (%rcx), %edx
shrl $0x5, %edx
andl $0xf, %edx
movl %edx, %edx
shlq $0x2, %rdx
addq %rdx, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl (%rax), %edx
shll $0x8, %edx
movl -0xc(%rbp), %eax
andl $0xff, %eax
orl %eax, %edx
movq -0x18(%rbp), %rax
movl %edx, (%rax)
movl (%rcx), %eax
addl $0x8, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x30165
movq -0x20(%rbp), %rax
movl 0x4(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x4(%rax)
movq -0x20(%rbp), %rax
movl (%rax), %eax
andl $0x1ff, %eax            # imm = 0x1FF
cmpl $0x0, %eax
jne 0x3017e
movq -0x20(%rbp), %rdi
callq 0x8570
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
// File: twekkel[P]mzpq/./libzpaq.h
// Function: libzpaq::Array<unsigned int>::resize(unsigned long, int)
void Array<T>::resize(size_t sz, int ex) {
  assert(size_t(-1)>0);  // unsigned type?
  while (ex>0) {
    if (sz>sz*2) error("Array too big");
    sz*=2, --ex;
  }
  if (n>0) {
    assert(offset>0 && offset<=64);
    assert((char*)data-offset);
    ::free((char*)data-offset);
  }
  n=0;
  offset=0;
  if (sz==0) return;
  n=sz;
  const size_t nb=128+n*sizeof(T);  // test for overflow
  if (nb<=128 || (nb-128)/sizeof(T)!=n) n=0, error("Array too big");
  data=(T*)::calloc(nb, 1);
  if (!data) n=0, error("Out of memory");
  offset=64-(((char*)data-(char*)0)&63);
  assert(offset>0 && offset<=64);
  data=(T*)((char*)data+offset);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
cmpl $0x0, -0x14(%rbp)
jle 0x30273
movq -0x10(%rbp), %rax
movq -0x10(%rbp), %rcx
shlq %rcx
cmpq %rcx, %rax
jbe 0x3025d
leaq 0xacdd(%rip), %rdi      # 0x3af35
callq 0x5720
movq -0x10(%rbp), %rax
shlq %rax
movq %rax, -0x10(%rbp)
movl -0x14(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x3023b
movq -0x28(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jbe 0x30296
movq -0x28(%rbp), %rax
movq (%rax), %rdi
movslq 0x10(%rax), %rcx
xorl %eax, %eax
subq %rcx, %rax
addq %rax, %rdi
callq 0x5320
movq -0x28(%rbp), %rax
movq $0x0, 0x8(%rax)
movl $0x0, 0x10(%rax)
cmpq $0x0, -0x10(%rbp)
jne 0x302b5
jmp 0x3036a
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq 0x8(%rax), %rax
shlq $0x2, %rax
addq $0x80, %rax
movq %rax, -0x20(%rbp)
cmpq $0x80, -0x20(%rbp)
jbe 0x302f5
movq -0x28(%rbp), %rcx
movq -0x20(%rbp), %rax
subq $0x80, %rax
shrq $0x2, %rax
cmpq 0x8(%rcx), %rax
je 0x3030d
movq -0x28(%rbp), %rax
movq $0x0, 0x8(%rax)
leaq 0xac2d(%rip), %rdi      # 0x3af35
callq 0x5720
movq -0x20(%rbp), %rdi
movl $0x1, %esi
callq 0x5190
movq %rax, %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
cmpq $0x0, (%rax)
jne 0x30343
movq -0x28(%rbp), %rax
movq $0x0, 0x8(%rax)
leaq 0x84c8(%rip), %rdi      # 0x38806
callq 0x5720
movq -0x28(%rbp), %rax
movq (%rax), %rdx
subq $0x0, %rdx
andq $0x3f, %rdx
movl $0x40, %ecx
subq %rdx, %rcx
movl %ecx, 0x10(%rax)
movq (%rax), %rcx
movslq 0x10(%rax), %rdx
addq %rdx, %rcx
movq %rcx, (%rax)
addq $0x30, %rsp
popq %rbp
retq
// File: twekkel[P]mzpq/./libzpaq.h
// Function: libzpaq::Predictor::train(libzpaq::Component&, int)
void train(Component& cr, int y) {
    assert(y==0 || y==1);
    U32& pn=cr.cm(cr.cxt);
    U32 count=pn&0x3ff;
    int error=y*32767-(cr.cm(cr.cxt)>>17);
    pn+=(error*dt[count]&-1024)+(count<cr.limit);
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rdi
addq $0x28, %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x30970
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movl (%rax), %eax
andl $0x3ff, %eax            # imm = 0x3FF
movl %eax, -0x24(%rbp)
imull $0x7fff, -0x14(%rbp), %eax # imm = 0x7FFF
movl %eax, -0x34(%rbp)
movq -0x10(%rbp), %rdi
addq $0x28, %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x30970
movl -0x34(%rbp), %ecx
movq %rax, %rdx
movq -0x30(%rbp), %rax
movl (%rdx), %edx
shrl $0x11, %edx
subl %edx, %ecx
movl %ecx, -0x28(%rbp)
movl -0x28(%rbp), %ecx
movl -0x24(%rbp), %edx
imull 0x7c14(%rax,%rdx,4), %ecx
andl $0xfffffc00, %ecx       # imm = 0xFFFFFC00
movl -0x24(%rbp), %eax
movq -0x10(%rbp), %rdx
cmpq (%rdx), %rax
setb %al
andb $0x1, %al
movzbl %al, %eax
addl %eax, %ecx
movq -0x20(%rbp), %rax
addl (%rax), %ecx
movl %ecx, (%rax)
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: twekkel[P]mzpq/./libzpaq.h
// Function: libzpaq::Decoder::get()
int get() {        // return 1 byte of buffered input or EOF
    if (rpos==wpos) {
      rpos=0;
      wpos=in ? in->read(&buf[0], BUFSIZE) : 0;
      assert(wpos<=BUFSIZE);
    }
    return rpos<wpos ? U8(buf[rpos++]) : -1;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rcx
movq %rcx, -0x10(%rbp)
movl 0x1c(%rcx), %eax
cmpl 0x20(%rcx), %eax
jne 0x30f22
movq -0x10(%rbp), %rax
movl $0x0, 0x1c(%rax)
cmpq $0x0, 0x8(%rax)
je 0x30f11
movq -0x10(%rbp), %rdi
movq 0x8(%rdi), %rax
movq %rax, -0x20(%rbp)
addq $0x1b050, %rdi          # imm = 0x1B050
xorl %eax, %eax
movl %eax, %esi
callq 0x301d0
movq -0x20(%rbp), %rdi
movq %rax, %rsi
movq (%rdi), %rax
movl $0x10000, %edx          # imm = 0x10000
callq *0x8(%rax)
movl %eax, -0x14(%rbp)
jmp 0x30f18
xorl %eax, %eax
movl %eax, -0x14(%rbp)
jmp 0x30f18
movq -0x10(%rbp), %rax
movl -0x14(%rbp), %ecx
movl %ecx, 0x20(%rax)
movq -0x10(%rbp), %rcx
movl 0x1c(%rcx), %eax
cmpl 0x20(%rcx), %eax
jae 0x30f58
movq -0x10(%rbp), %rcx
movq %rcx, %rdi
addq $0x1b050, %rdi          # imm = 0x1B050
movl 0x1c(%rcx), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, 0x1c(%rcx)
movl %eax, %eax
movl %eax, %esi
callq 0x301d0
movzbl (%rax), %eax
movl %eax, -0x24(%rbp)
jmp 0x30f62
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x24(%rbp)
jmp 0x30f62
movl -0x24(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: twekkel[P]mzpq/./libzpaq.h
// Function: libzpaq::StringBuffer::write(char const*, int)
void write(const char* buf, int n) {
    if (n<1) return;
    lengthen(n);
    assert(p);
    assert(wpos+n<=al);
    if (buf) memcpy(p+wpos, buf, n);
    wpos+=n;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
cmpl $0x1, -0x14(%rbp)
jge 0x31393
jmp 0x313d0
movq -0x20(%rbp), %rdi
movslq -0x14(%rbp), %rsi
callq 0x32270
cmpq $0x0, -0x10(%rbp)
je 0x313c0
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rdi
addq 0x20(%rax), %rdi
movq -0x10(%rbp), %rsi
movslq -0x14(%rbp), %rdx
callq 0x5200
movq -0x20(%rbp), %rax
movslq -0x14(%rbp), %rcx
addq 0x20(%rax), %rcx
movq %rcx, 0x20(%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: twekkel[P]mzpq/libzpaq.cpp
// Function: libzpaq::LZBuffer::putb(unsigned int, int)
void putb(unsigned x, int k) {
    x&=(1<<k)-1;
    bits|=x<<nbits;
    nbits+=k;
    while (nbits>7) {
      assert(wpos<BUFSIZE);
      buf[wpos++]=bits, bits>>=8, nbits-=8;
    }
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movl -0x10(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
subl $0x1, %ecx
andl -0xc(%rbp), %ecx
movl %ecx, -0xc(%rbp)
movl -0xc(%rbp), %edx
movl 0x70(%rax), %ecx
shll %cl, %edx
movl %edx, %ecx
orl 0x6c(%rax), %ecx
movl %ecx, 0x6c(%rax)
movl -0x10(%rbp), %ecx
addl 0x70(%rax), %ecx
movl %ecx, 0x70(%rax)
movq -0x18(%rbp), %rax
cmpl $0x7, 0x70(%rax)
jbe 0x3171f
movq -0x18(%rbp), %rax
movl 0x6c(%rax), %ecx
movb %cl, %dl
movl 0x78(%rax), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, 0x78(%rax)
movl %ecx, %ecx
movb %dl, 0x90(%rax,%rcx)
movl 0x6c(%rax), %ecx
shrl $0x8, %ecx
movl %ecx, 0x6c(%rax)
movl 0x70(%rax), %ecx
subl $0x8, %ecx
movl %ecx, 0x70(%rax)
jmp 0x316e4
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
// File: twekkel[P]mzpq/libzpaq.cpp
// Function: libzpaq::LZBuffer::get()
int get() {
    int c=-1;
    if (rpos==wpos) fill();
    if (rpos<wpos) c=buf[rpos++];
    if (rpos==wpos) rpos=wpos=0;
    return c;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rcx
movq %rcx, -0x18(%rbp)
movl $0xffffffff, -0xc(%rbp) # imm = 0xFFFFFFFF
movl 0x74(%rcx), %eax
cmpl 0x78(%rcx), %eax
jne 0x31ddc
movq -0x18(%rbp), %rdi
callq 0x227f0
movq -0x18(%rbp), %rcx
movl 0x74(%rcx), %eax
cmpl 0x78(%rcx), %eax
jae 0x31e04
movq -0x18(%rbp), %rax
movl 0x74(%rax), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0x74(%rax)
movl %ecx, %ecx
movzbl 0x90(%rax,%rcx), %eax
movl %eax, -0xc(%rbp)
movq -0x18(%rbp), %rcx
movl 0x74(%rcx), %eax
cmpl 0x78(%rcx), %eax
jne 0x31e22
movq -0x18(%rbp), %rax
movl $0x0, 0x78(%rax)
movl $0x0, 0x74(%rax)
movl -0xc(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: twekkel[P]mzpq/./libzpaq.h
// Function: libzpaq::StringBuffer::read(char*, int)
int read(char* buf, int n) {
    assert(rpos<=wpos);
    assert(wpos<=al);
    assert(!al==!p);
    if (rpos+n>wpos) n=wpos-rpos;
    if (n>0 && buf) memcpy(buf, p+rpos, n);
    rpos+=n;
    return n;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq 0x28(%rcx), %rax
movslq -0x14(%rbp), %rdx
addq %rdx, %rax
cmpq 0x20(%rcx), %rax
jbe 0x3211b
movq -0x20(%rbp), %rcx
movq 0x20(%rcx), %rax
subq 0x28(%rcx), %rax
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
jle 0x32141
cmpq $0x0, -0x10(%rbp)
je 0x32141
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rdi
movq 0x10(%rax), %rsi
addq 0x28(%rax), %rsi
movslq -0x14(%rbp), %rdx
callq 0x5200
movq -0x20(%rbp), %rax
movslq -0x14(%rbp), %rcx
addq 0x28(%rax), %rcx
movq %rcx, 0x28(%rax)
movl -0x14(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: twekkel[P]mzpq/./libzpaq.h
// Function: libzpaq::StringBuffer::lengthen(unsigned long)
void lengthen(size_t n) {
    assert(wpos<=al);
    if (wpos+n>limit || wpos+n<wpos) error("StringBuffer overflow");
    if (wpos+n<=al) return;
    size_t a=al;
    while (wpos+n>=a) a=a*2+init;
    reserve(a);
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq 0x20(%rcx), %rax
addq -0x10(%rbp), %rax
cmpq 0x30(%rcx), %rax
ja 0x322a8
movq -0x20(%rbp), %rcx
movq 0x20(%rcx), %rax
addq -0x10(%rbp), %rax
cmpq 0x20(%rcx), %rax
jae 0x322b4
leaq 0x8c70(%rip), %rdi      # 0x3af1f
callq 0x5720
movq -0x20(%rbp), %rcx
movq 0x20(%rcx), %rax
addq -0x10(%rbp), %rax
cmpq 0x18(%rcx), %rax
ja 0x322c8
jmp 0x32308
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
addq -0x10(%rbp), %rax
cmpq -0x18(%rbp), %rax
jb 0x322fb
movq -0x20(%rbp), %rcx
movq -0x18(%rbp), %rax
shlq %rax
addq 0x38(%rcx), %rax
movq %rax, -0x18(%rbp)
jmp 0x322d4
movq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x32310
addq $0x20, %rsp
popq %rbp
retq
nop
// File: twekkel[P]mzpq/./libzpaq.h
// Function: libzpaq::StringBuffer::reserve(unsigned long)
void reserve(size_t a) {
    assert(!al==!p);
    if (a<=al) return;
    unsigned char* q=0;
    if (a>0) q=(unsigned char*)(p ? realloc(p, a) : malloc(a));
    if (a>0 && !q) error("Out of memory");
    p=q;
    al=a;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rax
cmpq 0x18(%rcx), %rax
ja 0x32334
jmp 0x323a8
movq $0x0, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
jbe 0x3237a
movq -0x20(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x32365
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x5450
movq %rax, -0x28(%rbp)
jmp 0x32372
movq -0x10(%rbp), %rdi
callq 0x5380
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
jbe 0x32394
cmpq $0x0, -0x18(%rbp)
jne 0x32394
leaq 0x6477(%rip), %rdi      # 0x38806
callq 0x5720
movq -0x20(%rbp), %rax
movq -0x18(%rbp), %rcx
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rcx
movq %rcx, 0x18(%rax)
addq $0x30, %rsp
popq %rbp
retq
nop