LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: adamnovak[P]rlcsa/rlcsa.cpp
// Function: CSA::RLCSA::display(unsigned int, unsigned int, unsigned int, unsigned int&) const
uchar*
RLCSA::display(usint position, usint len, usint context, usint& result_length) const
{
  if(!(this->support_display)) { return 0; }

  pair_type range = this->getSequenceRangeForPosition(position);
  if(isEmpty(range)) { return 0; }

  range.first = position - std::min(context, position - range.first);
  range.second = std::min(range.second, position + len + context - 1);
  result_length = length(range);
  if(isEmpty(range)) { return 0; }

  uchar* data = new uchar[length(range)];
  this->displayUnsafe(range, data);

  return data;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x70(%rbp)
testb $0x1, 0x819(%rax)
jne 0xaa6a
movq $0x0, -0x8(%rbp)
jmp 0xab6a
movq -0x70(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xab80
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
callq 0xdaf0
testb $0x1, %al
jne 0xaa91
jmp 0xaa9e
movq $0x0, -0x8(%rbp)
jmp 0xab6a
movl -0x14(%rbp), %eax
movl %eax, -0x74(%rbp)
movl -0x14(%rbp), %eax
subl -0x30(%rbp), %eax
movl %eax, -0x3c(%rbp)
leaq -0x1c(%rbp), %rdi
leaq -0x3c(%rbp), %rsi
callq 0x63a0
movq %rax, %rcx
movl -0x74(%rbp), %eax
subl (%rcx), %eax
movl %eax, -0x30(%rbp)
leaq -0x30(%rbp), %rdi
addq $0x4, %rdi
movl -0x14(%rbp), %eax
addl -0x18(%rbp), %eax
addl -0x1c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x40(%rbp)
leaq -0x40(%rbp), %rsi
callq 0x63a0
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rdi
callq 0xdc40
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, (%rax)
movq -0x30(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdi
callq 0xdaf0
testb $0x1, %al
jne 0xab1a
jmp 0xab24
movq $0x0, -0x8(%rbp)
jmp 0xab6a
movq -0x30(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rdi
callq 0xdc40
movl %eax, %eax
movl %eax, %edi
callq 0x3030
movq -0x70(%rbp), %rdi
movq %rax, -0x58(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x58(%rbp), %rdx
movq -0x68(%rbp), %rsi
xorl %ecx, %ecx
xorl %eax, %eax
movl %eax, %r8d
callq 0xa680
movq -0x58(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x80, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: adamnovak[P]rlcsa/rlcsa.cpp
// Function: CSA::RLCSA::displayPrefix(unsigned int, unsigned int, unsigned char*) const
usint
RLCSA::displayPrefix(usint sequence, usint len, uchar* data) const
{
  if(!(this->support_display) || len == 0 || data == 0) { return 0; }

  pair_type seq_range = this->getSequenceRange(sequence);
  if(isEmpty(seq_range)) { return 0; }

  pair_type range(seq_range.first, std::min(seq_range.second, seq_range.first + len - 1));

  this->displayUnsafe(range, data);
  return length(range);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x58(%rbp)
testb $0x1, 0x819(%rax)
je 0xabf4
cmpl $0x0, -0x18(%rbp)
je 0xabf4
cmpq $0x0, -0x20(%rbp)
jne 0xac00
movl $0x0, -0x4(%rbp)
jmp 0xac99
movq -0x58(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xa540
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
callq 0xdaf0
testb $0x1, %al
jne 0xac27
jmp 0xac30
movl $0x0, -0x4(%rbp)
jmp 0xac99
leaq -0x28(%rbp), %rax
movq %rax, -0x60(%rbp)
leaq -0x28(%rbp), %rdi
addq $0x4, %rdi
movl -0x28(%rbp), %eax
addl -0x18(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x3c(%rbp)
leaq -0x3c(%rbp), %rsi
callq 0x63a0
movq -0x60(%rbp), %rsi
movq %rax, %rdx
leaq -0x38(%rbp), %rdi
callq 0xe090
movq -0x58(%rbp), %rdi
movq -0x38(%rbp), %rax
movq %rax, -0x44(%rbp)
movq -0x20(%rbp), %rdx
movq -0x44(%rbp), %rsi
xorl %ecx, %ecx
xorl %eax, %eax
movl %eax, %r8d
callq 0xa680
movq -0x38(%rbp), %rax
movq %rax, -0x4c(%rbp)
movq -0x4c(%rbp), %rdi
callq 0xdc40
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: adamnovak[P]rlcsa/rlcsa.cpp
// Function: CSA::RLCSA::displayFromPosition(unsigned int, unsigned int, unsigned char*) const
usint
RLCSA::displayFromPosition(usint index, usint max_len, uchar* data) const
{
  if(max_len == 0 || data == 0 || index >= this->data_size) { return 0; }

  for(usint i = 0; i < max_len; i++)
  {
    data[i] = this->getCharacter(index);
    index = this->psiUnsafe(index, data[i]);
    if(index < this->number_of_sequences) { return i + 1; }
    index -= this->number_of_sequences;
  }

  return max_len;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
cmpl $0x0, -0x18(%rbp)
je 0xace7
cmpq $0x0, -0x20(%rbp)
je 0xace7
movq -0x30(%rbp), %rcx
movl -0x14(%rbp), %eax
cmpl 0x4(%rcx), %eax
jb 0xacf0
movl $0x0, -0x4(%rbp)
jmp 0xad6e
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x18(%rbp), %eax
jae 0xad68
movq -0x30(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xe0c0
movq -0x30(%rbp), %rdi
movb %al, %dl
movq -0x20(%rbp), %rax
movl -0x24(%rbp), %ecx
movb %dl, (%rax,%rcx)
movl -0x14(%rbp), %esi
movq -0x20(%rbp), %rax
movl -0x24(%rbp), %ecx
movzbl (%rax,%rcx), %edx
callq 0xe0f0
movq -0x30(%rbp), %rcx
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl 0x820(%rcx), %eax
jae 0xad4b
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0xad6e
movq -0x30(%rbp), %rax
movl 0x820(%rax), %ecx
movl -0x14(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x14(%rbp)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xacf7
movl -0x18(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: adamnovak[P]rlcsa/rlcsa.cpp
// Function: CSA::RLCSA::locateRange(std::pair<unsigned int, unsigned int>) const
std::vector<usint>*
RLCSA::locateRange(pair_type range) const
{
  std::vector<usint>* results = new std::vector<usint>;
  if(!(this->support_locate)) { return results; }

  this->locateRange(range, *results);
  removeDuplicates(results, false);

  return results;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rsi, -0x10(%rbp)
movq %rdi, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movl $0x18, %edi
callq 0x32c0
movq %rax, %rdi
movq %rdi, -0x38(%rbp)
callq 0xe3c0
movq -0x38(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, -0x20(%rbp)
testb $0x1, 0x818(%rax)
jne 0xae7d
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xaea9
movq -0x30(%rbp), %rdi
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rsi
callq 0xaec0
movq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0xe3e0
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: adamnovak[P]rlcsa/rlcsa.cpp
// Function: CSA::RLCSA::locateRange(std::pair<unsigned int, unsigned int>, std::vector<unsigned int, std::allocator<unsigned int>>&) const
void
RLCSA::locateRange(pair_type range, std::vector<usint>& vec) const
{
  if(isEmpty(range) || range.second >= this->data_size) { return; }

  usint* data = new usint[length(range)];
  this->locateUnsafe(range, data, false);
  for(usint i = 0; i < length(range); i++) { vec.push_back(data[i]); }
  delete[] data;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rsi, -0x8(%rbp)
movq %rdi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0xdaf0
testb $0x1, %al
jne 0xaefd
movq -0x50(%rbp), %rcx
movl -0x4(%rbp), %eax
cmpl 0x4(%rcx), %eax
jb 0xaf02
jmp 0xafb5
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
callq 0xdc40
movl %eax, %eax
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x3030
movq -0x50(%rbp), %rdi
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rdx
movq -0x38(%rbp), %rsi
xorl %ecx, %ecx
callq 0x9b30
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movl %eax, -0x54(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x44(%rbp)
movq -0x44(%rbp), %rdi
callq 0xdc40
movl %eax, %ecx
movl -0x54(%rbp), %eax
cmpl %ecx, %eax
jae 0xaf9e
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
movl -0x3c(%rbp), %eax
shlq $0x2, %rax
addq %rax, %rsi
callq 0xe4c0
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0xaf5c
movq -0x28(%rbp), %rax
movq %rax, -0x60(%rbp)
cmpq $0x0, %rax
je 0xafb5
movq -0x60(%rbp), %rdi
callq 0x33e0
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: adamnovak[P]rlcsa/rlcsa.cpp
// Function: CSA::RLCSA::locateRanges(std::vector<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int>>>&) const
std::vector<usint>*
RLCSA::locateRanges(std::vector<pair_type>& ranges) const
{
  std::vector<usint>* results = new std::vector<usint>;
  if(!(this->support_locate)) { return results; }

  for(std::vector<pair_type>::iterator iter = ranges.begin(); iter != ranges.end(); ++iter)
  {
    this->locateRange(*iter, *results);
  }
  removeDuplicates(results, false);

  return results;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
movl $0x18, %edi
callq 0x32c0
movq %rax, %rdi
movq %rdi, -0x48(%rbp)
callq 0xe3c0
movq -0x48(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, -0x20(%rbp)
testb $0x1, 0x818(%rax)
jne 0xb00d
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xb079
movq -0x18(%rbp), %rdi
callq 0xe2e0
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
callq 0xe350
movq %rax, -0x30(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0xe310
testb $0x1, %al
jne 0xb03a
jmp 0xb066
leaq -0x28(%rbp), %rdi
callq 0xe380
movq -0x40(%rbp), %rdi
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rdx
movq -0x38(%rbp), %rsi
callq 0xaec0
leaq -0x28(%rbp), %rdi
callq 0xe3a0
jmp 0xb01a
movq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0xe3e0
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: adamnovak[P]rlcsa/rlcsa.cpp
// Function: CSA::RLCSA::getSequenceForPosition(unsigned int*, unsigned int) const
usint*
RLCSA::getSequenceForPosition(usint* values, usint len) const
{
  if(values == 0) { return 0; }

  DeltaVector::Iterator iter(*(this->end_points));
  for(usint i = 0; i < len; i++)
  {
    if(values[i] > 0) { values[i] = iter.rank(values[i] - 1); }
  }

  return values;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xb8(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0xb185
movq $0x0, -0x8(%rbp)
jmp 0xb24c
movq -0xb8(%rbp), %rax
movq 0x828(%rax), %rsi
leaq -0x98(%rbp), %rdi
callq 0x200a0
movl $0x0, -0x9c(%rbp)
movl -0x9c(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jae 0xb238
movq -0x18(%rbp), %rax
movl -0x9c(%rbp), %ecx
cmpl $0x0, (%rax,%rcx,4)
jbe 0xb222
movq -0x18(%rbp), %rax
movl -0x9c(%rbp), %ecx
movl (%rax,%rcx,4), %esi
decl %esi
leaq -0x98(%rbp), %rdi
xorl %edx, %edx
callq 0x200f0
movl %eax, -0xbc(%rbp)
jmp 0xb1ed
movl -0xbc(%rbp), %edx
movq -0x18(%rbp), %rax
movl -0x9c(%rbp), %ecx
movl %edx, (%rax,%rcx,4)
jmp 0xb222
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x200d0
jmp 0xb259
jmp 0xb224
movl -0x9c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x9c(%rbp)
jmp 0xb1a9
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x200d0
movq -0x8(%rbp), %rax
addq $0xc0, %rsp
popq %rbp
retq
movq -0xa8(%rbp), %rdi
callq 0x3530
nopw %cs:(%rax,%rax)
// File: adamnovak[P]rlcsa/rlcsa.cpp
// Function: CSA::RLCSA::getRelativePosition(unsigned int) const
pair_type
RLCSA::getRelativePosition(usint value) const
{
  // Get an iterator so we can use the vector of sequence endpoints.
  DeltaVector::Iterator iter(*(this->end_points));
  
  // Start out saying we're in text 0 at index whatever our index in the whole
  // string of texts is.
  pair_type result(0, value);

  // Adjust the text number to whatever text hadn't yet ended at the position
  // before the one we're interested in.
  if(value > 0) { result.first = iter.rank(value - 1); }
  if(result.first > 0)
  {
    // If we're not still in the 0th text, re-base our index in the text to
    // count from the first multiple of the SA sample rate after the end of the
    // text before this text (since we have declared text coordinates start on
    // SA sample multiples).
    result.second -= nextMultipleOf(this->sample_rate, iter.select(result.first - 1));
  }

  // Return the fixed-up relative position.
  return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq 0x828(%rax), %rsi
leaq -0x90(%rbp), %rdi
callq 0x200a0
movl $0x0, -0x94(%rbp)
leaq -0x8(%rbp), %rdi
leaq -0x94(%rbp), %rsi
leaq -0x14(%rbp), %rdx
callq 0xe580
jmp 0xb2c0
cmpl $0x0, -0x14(%rbp)
jbe 0xb30c
movl -0x14(%rbp), %esi
decl %esi
leaq -0x90(%rbp), %rdi
xorl %edx, %edx
callq 0x200f0
movl %eax, -0xb4(%rbp)
jmp 0xb2e1
movl -0xb4(%rbp), %eax
movl %eax, -0x8(%rbp)
jmp 0xb30c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x200d0
jmp 0xb37e
cmpl $0x0, -0x8(%rbp)
jbe 0xb365
movq -0xb0(%rbp), %rax
movl 0x81c(%rax), %eax
movl %eax, -0xbc(%rbp)
movl -0x8(%rbp), %esi
decl %esi
leaq -0x90(%rbp), %rdi
callq 0x20200
movl %eax, -0xb8(%rbp)
jmp 0xb33e
movl -0xb8(%rbp), %esi
movl -0xbc(%rbp), %edi
callq 0xe550
movl %eax, -0xc0(%rbp)
jmp 0xb357
movl -0xc0(%rbp), %ecx
movl -0x4(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x4(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x200d0
movq -0x8(%rbp), %rax
addq $0xc0, %rsp
popq %rbp
retq
movq -0xa0(%rbp), %rdi
callq 0x3530
nopw (%rax,%rax)
// File: adamnovak[P]rlcsa/rlcsa.cpp
// Function: CSA::RLCSA::getAbsolutePosition(std::pair<unsigned int, unsigned int>) const
usint
RLCSA::getAbsolutePosition(pair_type position) const
{
  // Get an iterator so we can use the vector of sequence endpoints.
  DeltaVector::Iterator iter(*(this->end_points));
  
  // Where is this position as an absolute position? Start off at the beginning.
  usint value = 0;
  
  if(position.first > 0) {
    // Only the 0th text starts at 0. Find the absolute endpoint of the previous
    // text, and then start at the next multiple of the sample rate after that.
    // That is where this text is going to start.
    value = nextMultipleOf(this->sample_rate, iter.select(position.first - 1));
  }
  
  // Advance the start of the text by the index into the text.
  value += position.second;
  
  // Return the resulting absolute position.
  return value;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rsi, -0x8(%rbp)
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq 0x828(%rax), %rsi
leaq -0x88(%rbp), %rdi
callq 0x200a0
movl $0x0, -0x8c(%rbp)
cmpl $0x0, -0x8(%rbp)
jbe 0xb444
movq -0xa8(%rbp), %rax
movl 0x81c(%rax), %eax
movl %eax, -0xb0(%rbp)
movl -0x8(%rbp), %esi
decl %esi
leaq -0x88(%rbp), %rdi
callq 0x20200
movl %eax, -0xac(%rbp)
jmp 0xb3fd
movl -0xac(%rbp), %esi
movl -0xb0(%rbp), %edi
callq 0xe550
movl %eax, -0xb4(%rbp)
jmp 0xb416
movl -0xb4(%rbp), %eax
movl %eax, -0x8c(%rbp)
jmp 0xb444
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x200d0
jmp 0xb47a
movl -0x4(%rbp), %eax
addl -0x8c(%rbp), %eax
movl %eax, -0x8c(%rbp)
movl -0x8c(%rbp), %eax
movl %eax, -0xb8(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x200d0
movl -0xb8(%rbp), %eax
addq $0xc0, %rsp
popq %rbp
retq
movq -0x98(%rbp), %rdi
callq 0x3530
nopw %cs:(%rax,%rax)
// File: adamnovak[P]rlcsa/rlcsa.cpp
// Function: CSA::RLCSA::readBWT(std::pair<unsigned int, unsigned int>) const
uchar*
RLCSA::readBWT(pair_type range) const
{
  if(isEmpty(range) || range.second >= this->data_size + this->number_of_sequences) { return 0; }

  usint n = length(range);

  uchar* bwt = new uchar[n];
  memset(bwt, 0, n);

  for(usint c = 0; c < CHARS; c++)
  {
    if(this->array[c] != 0)
    {
      PsiVector::Iterator iter(*(this->array[c]));
      usint pos = iter.valueAfter(range.first).first;
      while(pos <= range.second)
      {
        bwt[pos - range.first] = c;
        pos = iter.selectNext();
      }
    }
  }

  return bwt;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rsi, -0x10(%rbp)
movq %rdi, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0xdaf0
testb $0x1, %al
jne 0xb52a
movq -0xe0(%rbp), %rdx
movl -0xc(%rbp), %eax
movl 0x4(%rdx), %ecx
addl 0x820(%rdx), %ecx
cmpl %ecx, %eax
jb 0xb537
movq $0x0, -0x8(%rbp)
jmp 0xb66d
movq -0x10(%rbp), %rax
movq %rax, -0x2c(%rbp)
movq -0x2c(%rbp), %rdi
callq 0xdc40
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
movl %eax, %edi
callq 0x3030
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movl -0x24(%rbp), %eax
movl %eax, %edx
xorl %esi, %esi
callq 0x3190
movl $0x0, -0x3c(%rbp)
cmpl $0x100, -0x3c(%rbp)     # imm = 0x100
jae 0xb665
movq -0xe0(%rbp), %rax
movl -0x3c(%rbp), %ecx
cmpq $0x0, 0x8(%rax,%rcx,8)
je 0xb655
movq -0xe0(%rbp), %rax
movl -0x3c(%rbp), %ecx
movq 0x8(%rax,%rcx,8), %rsi
leaq -0xb8(%rbp), %rdi
movq %rdi, -0xf0(%rbp)
callq 0x20a90
movq -0xf0(%rbp), %rdi
movl -0x10(%rbp), %esi
callq 0x20fb0
movq %rax, -0xe8(%rbp)
jmp 0xb5cd
movq -0xe8(%rbp), %rax
movq %rax, -0xc4(%rbp)
movl -0xc4(%rbp), %eax
movl %eax, -0xbc(%rbp)
movl -0xbc(%rbp), %eax
cmpl -0xc(%rbp), %eax
ja 0xb649
movb -0x3c(%rbp), %dl
movq -0x38(%rbp), %rax
movl -0xbc(%rbp), %ecx
movl -0x10(%rbp), %esi
subl %esi, %ecx
movb %dl, (%rax,%rcx)
leaq -0xb8(%rbp), %rdi
callq 0x20d90
movl %eax, -0xf4(%rbp)
jmp 0xb61b
movl -0xf4(%rbp), %eax
movl %eax, -0xbc(%rbp)
jmp 0xb5e7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd0(%rbp)
movl %eax, -0xd4(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0x20ac0
jmp 0xb67a
leaq -0xb8(%rbp), %rdi
callq 0x20ac0
jmp 0xb657
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0xb570
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
movq -0xd0(%rbp), %rdi
callq 0x3530
nopw %cs:(%rax,%rax)
// File: adamnovak[P]rlcsa/rlcsa.cpp
// Function: CSA::RLCSA::countRuns() const
usint
RLCSA::countRuns() const
{
  usint runs = 0;
  for(usint c = 0; c < CHARS; c++)
  {
    if(this->array[c] != 0)
    {
      PsiVector::Iterator iter(*(this->array[c]));
      runs += iter.countRuns();
    }
  }

  return runs;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xa0(%rbp)
movl $0x0, -0xc(%rbp)
movl $0x0, -0x10(%rbp)
cmpl $0x100, -0x10(%rbp)     # imm = 0x100
jae 0xb757
movq -0xa0(%rbp), %rax
movl -0x10(%rbp), %ecx
cmpq $0x0, 0x8(%rax,%rcx,8)
je 0xb747
movq -0xa0(%rbp), %rax
movl -0x10(%rbp), %ecx
movq 0x8(%rax,%rcx,8), %rsi
leaq -0x88(%rbp), %rdi
movq %rdi, -0xb0(%rbp)
callq 0x20a90
movq -0xb0(%rbp), %rdi
callq 0x21280
movl %eax, -0xa4(%rbp)
jmp 0xb70d
movl -0xa4(%rbp), %eax
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x20ac0
jmp 0xb747
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x20ac0
jmp 0xb763
jmp 0xb749
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0xb6b8
movl -0xc(%rbp), %eax
addq $0xb0, %rsp
popq %rbp
retq
movq -0x90(%rbp), %rdi
callq 0x3530
nop
// File: adamnovak[P]rlcsa/rlcsa.cpp
// Function: CSA::RLCSA::getSuffixArrayForSequence(unsigned int) const
SuffixArray*
RLCSA::getSuffixArrayForSequence(usint number) const
{
  if(!this->supportsDisplay()) { return 0; }

  pair_type seq_range = this->getSequenceRange(number);
  if(isEmpty(seq_range)) { return 0; }

  uchar* data = new uchar[length(seq_range) + 1];
  usint* ranks = new usint[length(seq_range) + 1];
  this->displayUnsafe(seq_range, data, true, ranks);
  data[length(seq_range)] = 0; ranks[length(seq_range)] = number;

  return new SuffixArray(data, ranks, length(seq_range) + 1, 1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x80(%rbp)
callq 0xe5b0
testb $0x1, %al
jne 0xb7a0
movq $0x0, -0x8(%rbp)
jmp 0xb930
movq -0x80(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xa540
movq %rax, -0x1c(%rbp)
movq -0x1c(%rbp), %rax
movq %rax, -0x24(%rbp)
movq -0x24(%rbp), %rdi
callq 0xdaf0
testb $0x1, %al
jne 0xb7c7
jmp 0xb7d4
movq $0x0, -0x8(%rbp)
jmp 0xb930
movq -0x1c(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
callq 0xdc40
incl %eax
movl %eax, %edi
callq 0x3030
movq %rax, -0x30(%rbp)
movq -0x1c(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rdi
callq 0xdc40
incl %eax
movl %eax, %edi
shlq $0x2, %rdi
callq 0x3030
movq -0x80(%rbp), %rdi
movq %rax, -0x40(%rbp)
movq -0x1c(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x30(%rbp), %rdx
movq -0x40(%rbp), %r8
movq -0x50(%rbp), %rsi
movl $0x1, %ecx
callq 0xa680
movq -0x30(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x1c(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdi
callq 0xdc40
movl %eax, %ecx
movq -0xb8(%rbp), %rax
movl %ecx, %ecx
movb $0x0, (%rax,%rcx)
movl -0x14(%rbp), %eax
movl %eax, -0xac(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x1c(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rdi
callq 0xdc40
movl -0xac(%rbp), %edx
movl %eax, %ecx
movq -0xa8(%rbp), %rax
movl %ecx, %ecx
movl %edx, (%rax,%rcx,4)
movl $0x30, %edi
callq 0x32c0
movq %rax, -0xa0(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x1c(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rdi
callq 0xdc40
movl %eax, -0x84(%rbp)
jmp 0xb8da
movq -0x90(%rbp), %rdx
movq -0x98(%rbp), %rsi
movq -0xa0(%rbp), %rdi
movl -0x84(%rbp), %ecx
incl %ecx
movl $0x1, %r8d
callq 0x1b490
jmp 0xb904
movq -0xa0(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xb930
movq -0xa0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
movl $0x30, %esi
callq 0x32d0
jmp 0xb93d
movq -0x8(%rbp), %rax
addq $0xc0, %rsp
popq %rbp
retq
movq -0x70(%rbp), %rdi
callq 0x3530
nopw %cs:(%rax,%rax)
// File: adamnovak[P]rlcsa/rlcsa.cpp
// Function: CSA::RLCSA::printInfo() const
void
RLCSA::printInfo() const
{
  double megabytes = this->data_size / (double)MEGABYTE;

  std::cout << "Sequences:       " << this->number_of_sequences << std::endl;
  std::cout << "Original size:   " << megabytes << " MB" << std::endl;
  std::cout << "Block size:      " << (this->getBlockSize() * sizeof(usint)) << " bytes" << std::endl;
  if(this->support_locate || this->support_display)
  {
    std::cout << "Sample rate:     " << this->sample_rate;
    if(this->sa_samples->isWeighted()) { std::cout << " (weighted)"; }
    std::cout << std::endl;
  }
  std::cout << std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movl 0x4(%rax), %eax
cvtsi2sd %rax, %xmm0
movsd 0x1d7c4(%rip), %xmm1    # 0x293a8
divsd %xmm1, %xmm0
movsd %xmm0, -0x10(%rbp)
movq 0x2c3dc(%rip), %rdi     # 0x37fd0
leaq 0x1d9cc(%rip), %rsi     # 0x295c7
callq 0x32a0
movq %rax, %rdi
movq -0x18(%rbp), %rax
movl 0x820(%rax), %esi
callq 0x3400
movq %rax, %rdi
movq 0x2c394(%rip), %rsi     # 0x37fb0
callq 0x3300
movq 0x2c3a8(%rip), %rdi     # 0x37fd0
leaq 0x1d9aa(%rip), %rsi     # 0x295d9
callq 0x32a0
movq %rax, %rdi
movsd -0x10(%rbp), %xmm0
callq 0x3570
movq %rax, %rdi
leaq 0x1d942(%rip), %rsi     # 0x2958d
callq 0x32a0
movq %rax, %rdi
movq 0x2c356(%rip), %rsi     # 0x37fb0
callq 0x3300
movq 0x2c36a(%rip), %rdi     # 0x37fd0
leaq 0x1d97e(%rip), %rsi     # 0x295eb
callq 0x32a0
movq -0x18(%rbp), %rdi
movq %rax, -0x20(%rbp)
callq 0xda60
movq -0x20(%rbp), %rdi
movl %eax, %eax
movl %eax, %esi
shlq $0x2, %rsi
callq 0x30d0
movq %rax, %rdi
leaq 0x1d963(%rip), %rsi     # 0x295fd
callq 0x32a0
movq %rax, %rdi
movq 0x2c307(%rip), %rsi     # 0x37fb0
callq 0x3300
movq -0x18(%rbp), %rax
testb $0x1, 0x818(%rax)
jne 0xbcc8
movq -0x18(%rbp), %rax
testb $0x1, 0x819(%rax)
je 0xbd29
movq 0x2c301(%rip), %rdi     # 0x37fd0
leaq 0x1d92e(%rip), %rsi     # 0x29604
callq 0x32a0
movq %rax, %rdi
movq -0x18(%rbp), %rax
movl 0x81c(%rax), %esi
callq 0x3400
movq -0x18(%rbp), %rax
movq 0x810(%rax), %rdi
callq 0xdaa0
testb $0x1, %al
jne 0xbd03
jmp 0xbd16
movq 0x2c2c6(%rip), %rdi     # 0x37fd0
leaq 0x1d905(%rip), %rsi     # 0x29616
callq 0x32a0
movq 0x2c2b3(%rip), %rdi     # 0x37fd0
movq 0x2c28c(%rip), %rsi     # 0x37fb0
callq 0x3300
movq 0x2c2a0(%rip), %rdi     # 0x37fd0
movq 0x2c279(%rip), %rsi     # 0x37fb0
callq 0x3300
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: adamnovak[P]rlcsa/rlcsa.cpp
// Function: CSA::RLCSA::lcp(unsigned int, CSA::LCPSamples const&, bool) const
usint
RLCSA::lcp(usint index, const LCPSamples& lcp_samples, bool steps) const
{
  if(index >= this->data_size) { return 0; }

  usint offset = 0;
  while(true)
  {
    if(lcp_samples.isSampled(index))
    {
      return (steps ? offset : lcp_samples.getSampleAt(index) + offset);
    }
    index = this->psi(index); this->convertToSAIndex(index);
    offset++;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movb %cl, %al
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
andb $0x1, %al
movb %al, -0x21(%rbp)
movq -0x10(%rbp), %rcx
movq %rcx, -0x30(%rbp)
movl -0x14(%rbp), %eax
cmpl 0x4(%rcx), %eax
jb 0xd133
movl $0x0, -0x4(%rbp)
jmp 0xd19b
movl $0x0, -0x28(%rbp)
movq -0x20(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xebd0
testb $0x1, %al
jne 0xd14c
jmp 0xd174
testb $0x1, -0x21(%rbp)
je 0xd15a
movl -0x28(%rbp), %eax
movl %eax, -0x34(%rbp)
jmp 0xd16c
movq -0x20(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xec60
addl -0x28(%rbp), %eax
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0xd19b
movq -0x30(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xde60
movq -0x30(%rbp), %rdi
movl %eax, -0x14(%rbp)
leaq -0x14(%rbp), %rsi
callq 0xed60
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0xd13a
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: adamnovak[P]rlcsa/rlcsa.cpp
// Function: CSA::RLCSA::lcpDirect(unsigned int) const
usint
RLCSA::lcpDirect(usint index) const
{
  if(index >= this->data_size || index == 0)
  {
    return 0;
  }

  usint match = index - 1;
  usint value = 0;

  usint c = this->getCharacter(index);
  usint low = this->alphabet->cumulative(c);
  while(match >= low)
  {
    PsiVector::Iterator iter(*(this->array[c]));
    match = this->psiUnsafe(match, c, iter);
    index = this->psiUnsafe(index, c, iter);
    value++;

    if(match < this->number_of_sequences || index < this->number_of_sequences)
    {
      break;
    }
    this->convertToSAIndex(match); this->convertToSAIndex(index);

    c = this->getCharacter(index);
    low = this->alphabet->cumulative(c);
  }

  return value;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rcx
movq %rcx, -0xb8(%rbp)
movl -0x14(%rbp), %eax
cmpl 0x4(%rcx), %eax
jae 0xd1db
cmpl $0x0, -0x14(%rbp)
jne 0xd1e7
movl $0x0, -0x4(%rbp)
jmp 0xd39f
movq -0xb8(%rbp), %rdi
movl -0x14(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x14(%rbp), %esi
callq 0xe0c0
movl %eax, %ecx
movq -0xb8(%rbp), %rax
movl %ecx, -0x20(%rbp)
movq 0x808(%rax), %rdi
movl -0x20(%rbp), %esi
callq 0xdc20
movl %eax, -0x24(%rbp)
movl -0x18(%rbp), %eax
cmpl -0x24(%rbp), %eax
jb 0xd399
movq -0xb8(%rbp), %rax
movl -0x20(%rbp), %ecx
movq 0x8(%rax,%rcx,8), %rsi
leaq -0xa0(%rbp), %rdi
movq %rdi, -0xc8(%rbp)
callq 0x20a90
movq -0xb8(%rbp), %rdi
movq -0xc8(%rbp), %rcx
movl -0x18(%rbp), %esi
movl -0x20(%rbp), %edx
callq 0xe210
movl %eax, -0xbc(%rbp)
jmp 0xd273
movq -0xb8(%rbp), %rdi
movl -0xbc(%rbp), %eax
movl %eax, -0x18(%rbp)
movl -0x14(%rbp), %esi
movl -0x20(%rbp), %edx
leaq -0xa0(%rbp), %rcx
callq 0xe210
movl %eax, -0xcc(%rbp)
jmp 0xd29d
movq -0xb8(%rbp), %rcx
movl -0xcc(%rbp), %eax
movl %eax, -0x14(%rbp)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
movl -0x18(%rbp), %eax
cmpl 0x820(%rcx), %eax
jb 0xd2d3
movq -0xb8(%rbp), %rcx
movl -0x14(%rbp), %eax
cmpl 0x820(%rcx), %eax
jae 0xd305
movl $0x3, -0xb0(%rbp)
jmp 0xd37a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x20ac0
jmp 0xd3ab
movq -0xb8(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0xed60
jmp 0xd317
movq -0xb8(%rbp), %rdi
leaq -0x14(%rbp), %rsi
callq 0xed60
jmp 0xd329
movq -0xb8(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xe0c0
movl %eax, -0xd0(%rbp)
jmp 0xd340
movq -0xb8(%rbp), %rax
movl -0xd0(%rbp), %ecx
movl %ecx, -0x20(%rbp)
movq 0x808(%rax), %rdi
movl -0x20(%rbp), %esi
callq 0xdc20
movl %eax, -0xd4(%rbp)
jmp 0xd367
movl -0xd4(%rbp), %eax
movl %eax, -0x24(%rbp)
movl $0x0, -0xb0(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x20ac0
movl -0xb0(%rbp), %eax
testl %eax, %eax
je 0xd394
jmp 0xd392
jmp 0xd399
jmp 0xd224
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xe0, %rsp
popq %rbp
retq
movq -0xa8(%rbp), %rdi
callq 0x3530
nopw (%rax,%rax)
// File: adamnovak[P]rlcsa/./rlcsa.h
// Function: CSA::RLCSA::psi(unsigned int) const
inline usint psi(usint sa_index) const
    {
      if(sa_index >= this->data_size)
      {
        return this->data_size + this->number_of_sequences;
      }

      usint c = this->getCharacter(sa_index);
      return this->psiUnsafe(sa_index, c);
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movl -0x14(%rbp), %eax
cmpl 0x4(%rcx), %eax
jb 0xde91
movq -0x20(%rbp), %rcx
movl 0x4(%rcx), %eax
addl 0x820(%rcx), %eax
movl %eax, -0x4(%rbp)
jmp 0xdeb2
movq -0x20(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xe0c0
movq -0x20(%rbp), %rdi
movl %eax, -0x18(%rbp)
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
callq 0xe0f0
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: adamnovak[P]rlcsa/./misc/utils.h
// Function: void CSA::removeDuplicates<unsigned int>(std::vector<unsigned int, std::allocator<unsigned int>>*, bool)
void
removeDuplicates(std::vector<T>* vec, bool parallel = true)
{
  if(vec == 0) { return; }
  if(parallel) { parallelSort(vec->begin(), vec->end()); }
  else         { sequentialSort(vec->begin(), vec->end()); }
  vec->resize(std::unique(vec->begin(), vec->end()) - vec->begin());
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movb %sil, %al
movq %rdi, -0x8(%rbp)
andb $0x1, %al
movb %al, -0x9(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0xe400
jmp 0xe4af
testb $0x1, -0x9(%rbp)
je 0xe42f
movq -0x8(%rbp), %rdi
callq 0xf750
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rdi
callq 0xf780
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0xf710
jmp 0xe456
movq -0x8(%rbp), %rdi
callq 0xf750
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rdi
callq 0xf780
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0xf7b0
movq -0x8(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x8(%rbp), %rdi
callq 0xf750
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rdi
callq 0xf780
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0xf8c0
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rdi
callq 0xf750
movq %rax, -0x50(%rbp)
leaq -0x38(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0xf880
movq -0x58(%rbp), %rdi
movq %rax, %rsi
callq 0xf7f0
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
// File: adamnovak[P]rlcsa/./bits/bitbuffer.h
// Function: CSA::ReadBuffer::readItemConst(unsigned int) const
inline usint readItemConst(usint item) const
    {
      usint b = item * this->item_bits;
      usint p = b / WORD_BITS;
      b = WORD_BITS - b % WORD_BITS;

      usint c = this->item_bits;
      usint value = 0;

      if(c >= b)
      {
        c -= b;
        value |= HIGHER(GET(this->data[p], b), c);
        p++; b = WORD_BITS;
      }
      if(c > 0)
      {
        b -= c;
        value |= GET(LOWER(this->data[p], b), c);
      }

      return value;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movl -0xc(%rbp), %ecx
imull 0xc(%rax), %ecx
movl %ecx, -0x10(%rbp)
movl -0x10(%rbp), %ecx
shrl $0x5, %ecx
movl %ecx, -0x14(%rbp)
movl -0x10(%rbp), %edx
andl $0x1f, %edx
movl $0x20, %ecx
subl %edx, %ecx
movl %ecx, -0x10(%rbp)
movl 0xc(%rax), %eax
movl %eax, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x18(%rbp), %eax
cmpl -0x10(%rbp), %eax
jb 0xef31
movq -0x28(%rbp), %rax
movl -0x10(%rbp), %edx
movl -0x18(%rbp), %ecx
subl %edx, %ecx
movl %ecx, -0x18(%rbp)
movq (%rax), %rax
movl -0x14(%rbp), %ecx
movl (%rax,%rcx,4), %eax
movl $0x20, %ecx
subl -0x10(%rbp), %ecx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
shrl %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
movl -0x18(%rbp), %ecx
shll %cl, %eax
orl -0x1c(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movl $0x20, -0x10(%rbp)
cmpl $0x0, -0x18(%rbp)
jbe 0xef6d
movq -0x28(%rbp), %rax
movl -0x18(%rbp), %edx
movl -0x10(%rbp), %ecx
subl %edx, %ecx
movl %ecx, -0x10(%rbp)
movq (%rax), %rax
movl -0x14(%rbp), %ecx
movl (%rax,%rcx,4), %eax
movl -0x10(%rbp), %ecx
shrl %cl, %eax
movl $0x20, %ecx
subl -0x18(%rbp), %ecx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
shrl %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
orl -0x1c(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: adamnovak[P]rlcsa/sasamples.cpp
// Function: CSA::SASamples::buildInverseSamples()
void
SASamples::buildInverseSamples()
{
  WriteBuffer inverse_buffer(this->items, length(this->items - 1));
  this->samples->goToItem(0);
  for(usint i = 0; i < this->items; i++)
  {
    inverse_buffer.goToItem(this->samples->readItem());
    inverse_buffer.writeItem(i);
  }

  this->inverse_indexes = 0;
  this->inverse_samples = inverse_buffer.getReadBuffer();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x48(%rbp)
movl 0xc(%rax), %edi
movl %edi, -0x4c(%rbp)
decl %edi
callq 0x14da0
movl -0x4c(%rbp), %esi
movl %eax, %edx
leaq -0x30(%rbp), %rdi
callq 0x1e430
movq -0x48(%rbp), %rax
movq 0x18(%rax), %rdi
xorl %esi, %esi
callq 0x15070
jmp 0x13490
movl $0x0, -0x40(%rbp)
movq -0x48(%rbp), %rcx
movl -0x40(%rbp), %eax
cmpl 0xc(%rcx), %eax
jae 0x134f5
movq -0x48(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x14ff0
movl %eax, -0x50(%rbp)
jmp 0x134b5
movl -0x50(%rbp), %esi
leaq -0x30(%rbp), %rdi
callq 0x150b0
jmp 0x134c3
movl -0x40(%rbp), %esi
leaq -0x30(%rbp), %rdi
callq 0x14e80
jmp 0x134d1
jmp 0x134d3
movl -0x40(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x40(%rbp)
jmp 0x13497
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x1e570
jmp 0x1352b
movq -0x48(%rbp), %rax
movq $0x0, 0x20(%rax)
leaq -0x30(%rbp), %rdi
callq 0x1e5b0
movq %rax, -0x58(%rbp)
jmp 0x13510
movq -0x48(%rbp), %rax
movq -0x58(%rbp), %rcx
movq %rcx, 0x28(%rax)
leaq -0x30(%rbp), %rdi
callq 0x1e570
addq $0x60, %rsp
popq %rbp
retq
movq -0x38(%rbp), %rdi
callq 0x3530
nopw %cs:(%rax,%rax)
// File: adamnovak[P]rlcsa/sasamples.cpp
// Function: CSA::SASamples::SASamples(std::pair<unsigned int, unsigned int>*, CSA::Sampler*, unsigned int)
SASamples::SASamples(short_pair* sa, Sampler* sampler, usint threads) :
  weighted(true),
  rate(1), size(sampler->getSize()), items(sampler->getItems())
{
  pair_type* sample_pairs = sampler->getSamples(sa, 1, threads); // FIXME multiple sequences?
  this->buildSamples(sample_pairs, false, threads);
  this->buildSamples(sample_pairs, true, threads);
  delete[] sample_pairs;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movb $0x1, (%rax)
movl $0x1, 0x4(%rax)
movq -0x18(%rbp), %rdi
callq 0x14f20
movl %eax, %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x18(%rbp), %rdi
callq 0x14f40
movl %eax, %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0xc(%rax)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x1c(%rbp), %ecx
movl $0x1, %edx
callq 0x174d0
movq -0x38(%rbp), %rdi
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rsi
movl -0x1c(%rbp), %ecx
xorl %edx, %edx
callq 0x13160
movq -0x38(%rbp), %rdi
movq -0x28(%rbp), %rsi
movl -0x1c(%rbp), %ecx
movl $0x1, %edx
callq 0x13160
movq -0x28(%rbp), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0x13d44
movq -0x30(%rbp), %rdi
callq 0x33e0
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: adamnovak[P]rlcsa/sasamples.cpp
// Function: CSA::SASamples::~SASamples()
SASamples::~SASamples()
{
  delete this->indexes; this->indexes = 0;
  delete this->samples; this->samples = 0;
  delete this->inverse_indexes; this->inverse_indexes = 0;
  delete this->inverse_samples; this->inverse_samples = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, %rax
je 0x14639
movq -0x10(%rbp), %rdi
callq 0x20050
movq -0x10(%rbp), %rdi
movl $0x48, %esi
callq 0x32d0
movq -0x18(%rbp), %rax
movq $0x0, 0x10(%rax)
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
je 0x1466a
movq -0x20(%rbp), %rdi
callq 0x1e230
movq -0x20(%rbp), %rdi
movl $0x28, %esi
callq 0x32d0
movq -0x18(%rbp), %rax
movq $0x0, 0x18(%rax)
movq 0x20(%rax), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
je 0x1469b
movq -0x28(%rbp), %rdi
callq 0x20050
movq -0x28(%rbp), %rdi
movl $0x48, %esi
callq 0x32d0
movq -0x18(%rbp), %rax
movq $0x0, 0x20(%rax)
movq 0x28(%rax), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0x146cc
movq -0x30(%rbp), %rdi
callq 0x1e230
movq -0x30(%rbp), %rdi
movl $0x28, %esi
callq 0x32d0
movq -0x18(%rbp), %rax
movq $0x0, 0x28(%rax)
addq $0x30, %rsp
popq %rbp
retq
nop
// File: adamnovak[P]rlcsa/sasamples.cpp
// Function: CSA::SASamples::writeTo(std::basic_ofstream<char, std::char_traits<char>>&) const
void
SASamples::writeTo(std::ofstream& sample_file) const
{
  if(this->weighted)
  {
    sample_file.write((char*)&(this->size), sizeof(this->size));
    sample_file.write((char*)&(this->items), sizeof(this->items));

    SAVector::Iterator iter(*(this->indexes));
    pair_type buffer(iter.select(0), this->samples->readItem(0));
    for(usint i = 0; i < this->items; i++)
    {
      sample_file.write((char*)&buffer, sizeof(buffer));
      buffer.first = iter.selectNext();
      buffer.second = this->samples->readItem();
    }
  }
  else
  {
    this->indexes->writeTo(sample_file);
    this->samples->writeBuffer(sample_file);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xb8(%rbp)
testb $0x1, (%rax)
je 0x14881
movq -0xb8(%rbp), %rsi
movq -0x10(%rbp), %rdi
addq $0x8, %rsi
movl $0x4, %edx
movq %rdx, -0xd0(%rbp)
callq 0x33f0
movq -0xd0(%rbp), %rdx
movq -0xb8(%rbp), %rsi
movq -0x10(%rbp), %rdi
addq $0xc, %rsi
callq 0x33f0
movq -0xb8(%rbp), %rax
movq 0x10(%rax), %rsi
leaq -0x88(%rbp), %rdi
movq %rdi, -0xc8(%rbp)
callq 0x200a0
movq -0xc8(%rbp), %rdi
xorl %esi, %esi
callq 0x20200
movl %eax, -0xbc(%rbp)
jmp 0x14776
movq -0xb8(%rbp), %rax
movl -0xbc(%rbp), %ecx
movl %ecx, -0x94(%rbp)
movq 0x18(%rax), %rdi
xorl %esi, %esi
callq 0x14f90
movl %eax, -0xd4(%rbp)
jmp 0x1479c
movl -0xd4(%rbp), %eax
movl %eax, -0xa8(%rbp)
leaq -0x90(%rbp), %rdi
leaq -0x94(%rbp), %rsi
leaq -0xa8(%rbp), %rdx
callq 0x14fc0
jmp 0x147c4
movl $0x0, -0xac(%rbp)
movq -0xb8(%rbp), %rcx
movl -0xac(%rbp), %eax
cmpl 0xc(%rcx), %eax
jae 0x14873
movq -0x10(%rbp), %rdi
leaq -0x90(%rbp), %rsi
movl $0x8, %edx
callq 0x33f0
jmp 0x147fb
leaq -0x88(%rbp), %rdi
callq 0x202a0
movl %eax, -0xd8(%rbp)
jmp 0x1480f
movq -0xb8(%rbp), %rax
movl -0xd8(%rbp), %ecx
movl %ecx, -0x90(%rbp)
movq 0x18(%rax), %rdi
callq 0x14ff0
movl %eax, -0xdc(%rbp)
jmp 0x14833
movl -0xdc(%rbp), %eax
movl %eax, -0x8c(%rbp)
movl -0xac(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xac(%rbp)
jmp 0x147ce
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x200d0
jmp 0x148b2
leaq -0x88(%rbp), %rdi
callq 0x200d0
jmp 0x148a9
movq -0xb8(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x1f470
movq -0xb8(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x15010
addq $0xe0, %rsp
popq %rbp
retq
movq -0xa0(%rbp), %rdi
callq 0x3530
nop
// File: adamnovak[P]rlcsa/sasamples.cpp
// Function: CSA::SASamples::writeTo(_IO_FILE*) const
void
SASamples::writeTo(FILE* sample_file) const
{
  if(sample_file == 0) { return; }

  if(this->weighted)
  {
    std::fwrite(&(this->size), sizeof(this->size), 1, sample_file);
    std::fwrite(&(this->items), sizeof(this->items), 1, sample_file);

    SAVector::Iterator iter(*(this->indexes));
    pair_type buffer(iter.select(0), this->samples->readItem(0));
    for(usint i = 0; i < this->items; i++)
    {
      std::fwrite(&buffer, sizeof(buffer), 1, sample_file);
      buffer.first = iter.selectNext();
      buffer.second = this->samples->readItem();
    }
  }
  else
  {
    this->indexes->writeTo(sample_file);
    this->samples->writeBuffer(sample_file);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xb8(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x148ea
jmp 0x14ab4
movq -0xb8(%rbp), %rax
testb $0x1, (%rax)
je 0x14a8c
movq -0xb8(%rbp), %rdi
addq $0x8, %rdi
movq -0x10(%rbp), %rcx
movl $0x4, %esi
movq %rsi, -0xd8(%rbp)
movl $0x1, %edx
movq %rdx, -0xd0(%rbp)
callq 0x3580
movq -0xd8(%rbp), %rsi
movq -0xd0(%rbp), %rdx
movq -0xb8(%rbp), %rdi
addq $0xc, %rdi
movq -0x10(%rbp), %rcx
callq 0x3580
movq -0xb8(%rbp), %rax
movq 0x10(%rax), %rsi
leaq -0x88(%rbp), %rdi
movq %rdi, -0xc8(%rbp)
callq 0x200a0
movq -0xc8(%rbp), %rdi
xorl %esi, %esi
callq 0x20200
movl %eax, -0xbc(%rbp)
jmp 0x1497c
movq -0xb8(%rbp), %rax
movl -0xbc(%rbp), %ecx
movl %ecx, -0x94(%rbp)
movq 0x18(%rax), %rdi
xorl %esi, %esi
callq 0x14f90
movl %eax, -0xdc(%rbp)
jmp 0x149a2
movl -0xdc(%rbp), %eax
movl %eax, -0xa8(%rbp)
leaq -0x90(%rbp), %rdi
leaq -0x94(%rbp), %rsi
leaq -0xa8(%rbp), %rdx
callq 0x14fc0
jmp 0x149ca
movl $0x0, -0xac(%rbp)
movq -0xb8(%rbp), %rcx
movl -0xac(%rbp), %eax
cmpl 0xc(%rcx), %eax
jae 0x14a7e
movq -0x10(%rbp), %rcx
leaq -0x90(%rbp), %rdi
movl $0x8, %esi
movl $0x1, %edx
callq 0x3580
jmp 0x14a06
leaq -0x88(%rbp), %rdi
callq 0x202a0
movl %eax, -0xe0(%rbp)
jmp 0x14a1a
movq -0xb8(%rbp), %rax
movl -0xe0(%rbp), %ecx
movl %ecx, -0x90(%rbp)
movq 0x18(%rax), %rdi
callq 0x14ff0
movl %eax, -0xe4(%rbp)
jmp 0x14a3e
movl -0xe4(%rbp), %eax
movl %eax, -0x8c(%rbp)
movl -0xac(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xac(%rbp)
jmp 0x149d4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x200d0
jmp 0x14abd
leaq -0x88(%rbp), %rdi
callq 0x200d0
jmp 0x14ab4
movq -0xb8(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x1f570
movq -0xb8(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x15040
addq $0xf0, %rsp
popq %rbp
retq
movq -0xa0(%rbp), %rdi
callq 0x3530
nopl (%rax)
// File: adamnovak[P]rlcsa/sasamples.cpp
// Function: CSA::SASamples::reportSize() const
usint
SASamples::reportSize() const
{
  usint bytes = sizeof(*this);
  bytes += this->indexes->reportSize();
  bytes += this->samples->reportSize();
  if(this->weighted) { bytes += this->inverse_indexes->reportSize(); }
  bytes += this->inverse_samples->reportSize();
  return bytes;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movl $0x30, -0xc(%rbp)
movq 0x10(%rax), %rdi
callq 0x20070
movl %eax, %ecx
movq -0x18(%rbp), %rax
addl -0xc(%rbp), %ecx
movl %ecx, -0xc(%rbp)
movq 0x18(%rax), %rdi
callq 0x1e370
movl %eax, %ecx
movq -0x18(%rbp), %rax
addl -0xc(%rbp), %ecx
movl %ecx, -0xc(%rbp)
testb $0x1, (%rax)
je 0x14b2d
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x20070
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rdi
callq 0x1e370
addl -0xc(%rbp), %eax
movl %eax, -0xc(%rbp)
movl -0xc(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
// File: adamnovak[P]rlcsa/sasamples.cpp
// Function: CSA::SASamples::inverseSA(unsigned int) const
pair_type
SASamples::inverseSA(usint value) const
{
  if(value >= this->size) { return pair_type(this->size, this->size); }

  pair_type result;
  if(this->weighted)
  {
    SAVector::Iterator iter(*(this->inverse_indexes));
    result.first = iter.rank(value) - 1;
    result.second = this->inverse_samples->readItemConst(result.first);
    result.first = iter.select(result.first);
  }
  else
  {
    SAVector::Iterator iter(*(this->indexes));
    result.first = value - (value % this->rate);
    result.second = iter.select(this->inverse_samples->readItemConst(value / this->rate));
  }

  return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rcx
movq %rcx, -0x120(%rbp)
movl -0x14(%rbp), %eax
cmpl 0x8(%rcx), %eax
jb 0x14b95
movq -0x120(%rbp), %rdx
movq %rdx, %rsi
addq $0x8, %rsi
addq $0x8, %rdx
leaq -0x8(%rbp), %rdi
callq 0xea00
jmp 0x14d1d
leaq -0x8(%rbp), %rdi
callq 0xe530
movq -0x120(%rbp), %rax
testb $0x1, (%rax)
je 0x14c68
movq -0x120(%rbp), %rax
movq 0x20(%rax), %rsi
leaq -0x90(%rbp), %rdi
movq %rdi, -0x130(%rbp)
callq 0x200a0
movq -0x130(%rbp), %rdi
movl -0x14(%rbp), %esi
xorl %edx, %edx
callq 0x200f0
movl %eax, -0x124(%rbp)
jmp 0x14be5
movq -0x120(%rbp), %rax
movl -0x124(%rbp), %ecx
decl %ecx
movl %ecx, -0x8(%rbp)
movq 0x28(%rax), %rdi
movl -0x8(%rbp), %esi
callq 0xeea0
movl %eax, -0x134(%rbp)
jmp 0x14c0b
movl -0x134(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x8(%rbp), %esi
leaq -0x90(%rbp), %rdi
callq 0x20200
movl %eax, -0x138(%rbp)
jmp 0x14c2b
movl -0x138(%rbp), %eax
movl %eax, -0x8(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x200d0
jmp 0x14d1b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x200d0
jmp 0x14d2a
movq -0x120(%rbp), %rax
movq 0x10(%rax), %rsi
leaq -0x118(%rbp), %rdi
callq 0x200a0
movq -0x120(%rbp), %rcx
movl -0x14(%rbp), %eax
movl %eax, -0x144(%rbp)
movl 0x4(%rcx), %esi
xorl %edx, %edx
movl %edx, -0x140(%rbp)
divl %esi
movl -0x144(%rbp), %eax
movl %edx, %esi
movl -0x140(%rbp), %edx
subl %esi, %eax
movl %eax, -0x8(%rbp)
movq 0x28(%rcx), %rdi
movl -0x14(%rbp), %eax
movl 0x4(%rcx), %ecx
divl %ecx
movl %eax, %esi
callq 0xeea0
movl %eax, -0x13c(%rbp)
jmp 0x14cca
movl -0x13c(%rbp), %esi
leaq -0x118(%rbp), %rdi
callq 0x20200
movl %eax, -0x148(%rbp)
jmp 0x14ce4
movl -0x148(%rbp), %eax
movl %eax, -0x4(%rbp)
leaq -0x118(%rbp), %rdi
callq 0x200d0
jmp 0x14d1b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
leaq -0x118(%rbp), %rdi
callq 0x200d0
jmp 0x14d2a
jmp 0x14d1d
movq -0x8(%rbp), %rax
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
movq -0x98(%rbp), %rdi
callq 0x3530
nopw %cs:(%rax,%rax)
// File: adamnovak[P]rlcsa/./bits/bitbuffer.h
// Function: CSA::ReadBuffer::goToItem(unsigned int)
inline void goToItem(usint item)
    {
      usint b = item * this->item_bits;
      this->pos = b / WORD_BITS;
      this->bits = WORD_BITS - b % WORD_BITS;
      this->current = item;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
imull 0xc(%rax), %ecx
movl %ecx, -0x10(%rbp)
movl -0x10(%rbp), %ecx
shrl $0x5, %ecx
movl %ecx, 0x18(%rax)
movl -0x10(%rbp), %edx
andl $0x1f, %edx
movl $0x20, %ecx
subl %edx, %ecx
movl %ecx, 0x1c(%rax)
movl -0xc(%rbp), %ecx
movl %ecx, 0x20(%rax)
popq %rbp
retq
nopw (%rax,%rax)