LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/adamnovak[P]rlcsa/docarray.cpp
// Function: CSA::DocArray::~DocArray()
DocArray::~DocArray()
{
  delete this->leaf_ranges; this->leaf_ranges = 0;
  delete this->first_children; this->first_children = 0;
  delete this->parents; this->parents = 0;
  delete this->next_leaves; this->next_leaves = 0;

  delete this->rule_borders; this->rule_borders = 0;
  delete this->rules; this->rules = 0;

  delete this->block_borders; this->block_borders = 0;
  delete this->blocks; this->blocks = 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %r14
testq %r14, %r14
je 0xf800
movq %r14, %rdi
callq 0x13c4a
pushq $0x48
popq %rsi
movq %r14, %rdi
callq 0x3240
andq $0x0, 0x8(%rbx)
movq 0x10(%rbx), %r14
testq %r14, %r14
je 0xf821
movq %r14, %rdi
callq 0x14a90
pushq $0x48
popq %rsi
movq %r14, %rdi
callq 0x3240
andq $0x0, 0x10(%rbx)
movq 0x18(%rbx), %r14
testq %r14, %r14
je 0xf842
movq %r14, %rdi
callq 0x12b48
pushq $0x28
popq %rsi
movq %r14, %rdi
callq 0x3240
andq $0x0, 0x18(%rbx)
movq 0x20(%rbx), %r14
testq %r14, %r14
je 0xf863
movq %r14, %rdi
callq 0x12b48
pushq $0x28
popq %rsi
movq %r14, %rdi
callq 0x3240
andq $0x0, 0x20(%rbx)
movq 0x28(%rbx), %r14
testq %r14, %r14
je 0xf884
movq %r14, %rdi
callq 0x14a90
pushq $0x48
popq %rsi
movq %r14, %rdi
callq 0x3240
andq $0x0, 0x28(%rbx)
movq 0x30(%rbx), %r14
testq %r14, %r14
je 0xf8a5
movq %r14, %rdi
callq 0x12b48
pushq $0x28
popq %rsi
movq %r14, %rdi
callq 0x3240
andq $0x0, 0x30(%rbx)
movq 0x38(%rbx), %r14
testq %r14, %r14
je 0xf8c6
movq %r14, %rdi
callq 0x14a90
pushq $0x48
popq %rsi
movq %r14, %rdi
callq 0x3240
andq $0x0, 0x38(%rbx)
movq 0x40(%rbx), %r14
testq %r14, %r14
je 0xf8e7
movq %r14, %rdi
callq 0x12b48
pushq $0x28
popq %rsi
movq %r14, %rdi
callq 0x3240
andq $0x0, 0x40(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/adamnovak[P]rlcsa/docarray.cpp
// Function: CSA::parseLine(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::vector<unsigned int, std::allocator<unsigned int>>&, int, std::vector<unsigned int, std::allocator<unsigned int>>&)
void
parseLine(std::string& row, std::vector<usint>& before, int separator, std::vector<usint>& after)
{
  bool found = false, num = false;
  usint value = 0;
  for(usint i = 0; i < row.length(); i++)
  {
    if(isdigit(row[i])) { value = 10 * value + row[i] - '0'; num = true; }
    else if(num)
    {
      if(found) { after.push_back(value); }
      else      { before.push_back(value); }
      value = 0; num = false;
    }
    if(row[i] == separator) { found = true; }
  }
  if(num)
  {
    if(found) { after.push_back(value); }
    else      { before.push_back(value); }
    value = 0; num = false;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r14
movl %edx, %ebp
movq %rsi, 0x10(%rsp)
movq %rdi, %r15
leaq 0xc(%rsp), %rax
andl $0x0, (%rax)
xorl %eax, %eax
pushq $0x1
popq %r12
xorl %r13d, %r13d
xorl %ecx, %ecx
xorl %edx, %edx
movl %edx, %ebx
cmpq %rbx, 0x8(%r15)
jbe 0xf991
movq (%r15), %rdx
movsbl (%rdx,%rbx), %esi
addl $-0x30, %esi
cmpl $0x9, %esi
ja 0xf955
imull $0xa, %eax, %eax
addl %eax, %esi
movl %esi, 0xc(%rsp)
movb $0x1, %cl
movl %esi, %eax
jmp 0xf97e
testb $0x1, %cl
je 0xf97e
movq %r14, %rdi
testb $0x1, %r13b
jne 0xf968
movq 0x10(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x9972
andl $0x0, 0xc(%rsp)
movq (%r15), %rdx
xorl %eax, %eax
xorl %ecx, %ecx
movsbl (%rdx,%rbx), %edx
cmpl %ebp, %edx
movzbl %r13b, %r13d
cmovel %r12d, %r13d
leal 0x1(%rbx), %edx
jmp 0xf92f
testb $0x1, %cl
je 0xf9ad
testb $0x1, %r13b
movq 0x10(%rsp), %rdi
cmovneq %r14, %rdi
leaq 0xc(%rsp), %rsi
callq 0x9972
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/adamnovak[P]rlcsa/docarray.cpp
// Function: CSA::DocArray::writeTo(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
void
DocArray::writeTo(const std::string& base_name) const
{
  std::string output_name = base_name + DOCUMENT_EXTENSION;
  std::ofstream output(output_name.c_str(), std::ios_base::binary);
  if(!output)
  {
    std::cerr << "DocArray: Error creating output file " << output_name << "!" << std::endl;
    return;
  }

  usint flags = 0; if(this->usesRLE()) { flags |= RLE_FLAG; }
  output.write((char*)(&flags), sizeof(flags));

  this->leaf_ranges->writeTo(output);
  this->first_children->writeTo(output);
  this->parents->writeBuffer(output);
  this->next_leaves->writeBuffer(output);

  if(this->hasGrammar())
  {
    this->rule_borders->writeTo(output);
    this->rules->writeBuffer(output);
    this->block_borders->writeTo(output);
    this->blocks->writeBuffer(output);
  }

  output.close();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
movq %rdi, %rbx
leaq 0x13fb2(%rip), %rdx     # 0x248b8
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x934c
movq (%r14), %rsi
leaq 0x28(%rsp), %rdi
pushq $0x4
popq %rdx
callq 0x3270
movq 0x28(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x48(%rsp,%rax)
je 0x1096f
movq 0x136b6(%rip), %rdi     # 0x23ff0
leaq 0x8183(%rip), %rsi      # 0x18ac4
callq 0x3210
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x3200
leaq 0x7f1e(%rip), %rsi      # 0x18878
movq %rax, %rdi
callq 0x3210
movq %rax, %rdi
callq 0x3100
jmp 0x10a07
movzbl 0x4a(%rbx), %eax
leaq 0x4(%rsp), %rsi
movl %eax, (%rsi)
leaq 0x28(%rsp), %rdi
pushq $0x4
popq %rdx
callq 0x32d0
movq 0x8(%rbx), %rdi
leaq 0x28(%rsp), %rsi
callq 0x13588
movq 0x10(%rbx), %rdi
leaq 0x28(%rsp), %rsi
callq 0x14a96
movq 0x18(%rbx), %rdi
leaq 0x28(%rsp), %rsi
callq 0x12b62
movq 0x20(%rbx), %rdi
leaq 0x28(%rsp), %rsi
callq 0x12b62
cmpb $0x1, 0x49(%rbx)
jne 0x109fd
movq 0x28(%rbx), %rdi
leaq 0x28(%rsp), %rsi
callq 0x14a96
movq 0x30(%rbx), %rdi
leaq 0x28(%rsp), %rsi
callq 0x12b62
movq 0x38(%rbx), %rdi
leaq 0x28(%rsp), %rsi
callq 0x14a96
movq 0x40(%rbx), %rdi
leaq 0x28(%rsp), %rsi
callq 0x12b62
leaq 0x28(%rsp), %rdi
callq 0x3310
leaq 0x28(%rsp), %rdi
callq 0x3330
leaq 0x8(%rsp), %rdi
callq 0x34a8
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r14
retq
movq %rax, %rbx
jmp 0x10a3a
jmp 0x10a2d
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x3330
leaq 0x8(%rsp), %rdi
callq 0x34a8
movq %rbx, %rdi
callq 0x3430
// File: /workspace/github_cpp_makefile_star2_O2/adamnovak[P]rlcsa/docarray.cpp
// Function: CSA::DocArray::listDocuments(std::pair<unsigned int, unsigned int>) const
std::vector<usint>*
DocArray::listDocuments(pair_type range) const
{
  if(isEmpty(range) || range.second >= this->getSize()) { return 0; }

  std::vector<usint>* result = this->documentListing<usint>(range);
  if(result != 0) { removeDuplicates(result, false); }

  return result;
}

// Assembly:
pushq %rbx
movq %rsi, %rax
shrq $0x20, %rax
cmpl %eax, %esi
ja 0x10c69
movq (%rdi), %rcx
cmpl %eax, 0x4(%rcx)
jbe 0x10c69
callq 0x10e6a
testq %rax, %rax
je 0x10c69
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
callq 0x993c
jmp 0x10c6b
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/adamnovak[P]rlcsa/docarray.cpp
// Function: CSA::DocArray::listDocumentsRLE(std::pair<unsigned int, unsigned int>) const
std::vector<pair_type>*
DocArray::listDocumentsRLE(pair_type range) const
{
  if(isEmpty(range) || range.second >= this->getSize()) { return 0; }

  std::vector<pair_type>* result = this->documentListing<pair_type>(range);
  if(result != 0) { mergeRanges(result, false); }

  return result;
}

// Assembly:
pushq %rbx
movq %rsi, %rax
shrq $0x20, %rax
cmpl %eax, %esi
ja 0x10cb5
movq (%rdi), %rcx
cmpl %eax, 0x4(%rcx)
jbe 0x10cb5
callq 0x110b0
testq %rax, %rax
je 0x10cb5
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
callq 0x16320
jmp 0x10cb7
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/adamnovak[P]rlcsa/docarray.cpp
// Function: CSA::DocArray::directListing(std::pair<unsigned int, unsigned int>) const
std::vector<usint>*
DocArray::directListing(pair_type range) const
{
  if(isEmpty(range) || range.second >= this->getSize()) { return 0; }
  std::vector<usint>* result = new std::vector<usint>;
  this->processRange(range, *result);
  removeDuplicates(result, false);
  return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rsi, %rax
shrq $0x20, %rax
cmpl %eax, %r14d
ja 0x10d0b
movq %rdi, %r15
movq (%rdi), %rcx
cmpl %eax, 0x4(%rcx)
jbe 0x10d0b
pushq $0x18
popq %rdi
callq 0x3230
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
andq $0x0, 0x10(%rax)
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x112f6
movq %rbx, %rdi
xorl %esi, %esi
callq 0x993c
jmp 0x10d0d
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/adamnovak[P]rlcsa/docarray.cpp
// Function: CSA::DocArray::directListingRLE(std::pair<unsigned int, unsigned int>) const
std::vector<pair_type>*
DocArray::directListingRLE(pair_type range) const
{
  if(isEmpty(range) || range.second >= this->getSize()) { return 0; }
  std::vector<pair_type>* result = new std::vector<pair_type>;
  this->processRange(range, *result);
  mergeRanges(result, false);
  return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rsi, %rax
shrq $0x20, %rax
cmpl %eax, %r14d
ja 0x10d65
movq %rdi, %r15
movq (%rdi), %rcx
cmpl %eax, 0x4(%rcx)
jbe 0x10d65
pushq $0x18
popq %rdi
callq 0x3230
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
andq $0x0, 0x10(%rax)
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x11358
movq %rbx, %rdi
xorl %esi, %esi
callq 0x16320
jmp 0x10d67
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/adamnovak[P]rlcsa/./docarray.h
// Function: void CSA::DocArray::processRange<unsigned int>(std::pair<unsigned int, unsigned int>, std::vector<unsigned int, std::allocator<unsigned int>>&) const
void
    processRange(pair_type range, std::vector<T>& result) const
    {
      if(isEmpty(range)) { return; }

      usint* res = this->rlcsa.locate(range);
      this->rlcsa.getSequenceForPosition(res, length(range));
      for(usint i = 0; i < length(range); i++)
      {
        this->addItem(res[i], result);
      }
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r15
shrq $0x20, %r15
subl %esi, %r15d
jae 0x11315
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rdx, %rbx
movq %rdi, %r14
movq (%rdi), %rdi
xorl %r13d, %r13d
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x73fc
movq %rax, %r12
movq (%r14), %rdi
incl %r15d
movq %rax, %rsi
movl %r15d, %edx
callq 0x8138
cmpq %r13, %r15
je 0x1130b
movl (%r12,%r13,4), %esi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x119ea
incq %r13
jmp 0x1133e
nop
// File: /workspace/github_cpp_makefile_star2_O2/adamnovak[P]rlcsa/bits/succinctvector.cpp
// Function: CSA::SuccinctVector::SuccinctVector(std::basic_ifstream<char, std::char_traits<char>>&)
SuccinctVector::SuccinctVector(std::ifstream& file) :
  BitVector()
{
  this->readHeader(file);
  this->readArray(file);

  this->integer_bits = length(this->size);
  this->indexForRank();
  this->indexForSelect();
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
callq 0x13502
movq %rbx, %rdi
movq %r14, %rsi
callq 0x12e76
movq %rbx, %rdi
movq %r14, %rsi
callq 0x12ec8
movl (%rbx), %edi
callq 0xbad4
movl %eax, 0x20(%rbx)
movq %rbx, %rdi
callq 0x1470e
movq %rbx, %rdi
callq 0x1480a
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x13518
movq %r14, %rdi
callq 0x3430
// File: /workspace/github_cpp_makefile_star2_O2/adamnovak[P]rlcsa/bits/succinctvector.cpp
// Function: CSA::SuccinctVector::indexForRank()
void
SuccinctVector::indexForRank()
{
  delete this->rank_index; this->rank_index = 0;

  WriteBuffer buffer(this->number_of_blocks + 1, this->integer_bits);
  const usint* data = this->array;

  buffer.writeItem(0);
  usint bitcount = 0;
  for(usint block = 0; block < this->number_of_blocks; block++)
  {
    for(usint word = 0; word < this->block_size; word++, ++data) { bitcount += popcount(*data); }
    buffer.writeItem(bitcount);
  }

  this->rank_index = buffer.getReadBuffer();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x28(%rdi), %r14
testq %r14, %r14
je 0x14730
movq %r14, %rdi
callq 0x12b48
pushq $0x28
popq %rsi
movq %r14, %rdi
callq 0x3240
andq $0x0, 0x28(%rbx)
movl 0x14(%rbx), %esi
movl 0x20(%rbx), %edx
incl %esi
movq %rsp, %r15
movq %r15, %rdi
callq 0x12c3a
movq 0x8(%rbx), %r12
xorl %r14d, %r14d
movq %r15, %rdi
xorl %esi, %esi
callq 0xbae2
movl $0x33333333, %ebp       # imm = 0x33333333
xorl %r13d, %r13d
cmpl 0x14(%rbx), %r13d
jae 0x147cf
movl 0x10(%rbx), %eax
leaq (,%rax,4), %r15
xorl %ecx, %ecx
cmpl %ecx, %eax
je 0x147bc
movl (%r12,%rcx,4), %edx
movl %edx, %esi
shrl %esi
andl $0x55555555, %esi       # imm = 0x55555555
subl %esi, %edx
movl %edx, %esi
andl %ebp, %esi
shrl $0x2, %edx
andl %ebp, %edx
addl %esi, %edx
movl %edx, %esi
shrl $0x4, %esi
addl %edx, %esi
andl $0xf0f0f0f, %esi        # imm = 0xF0F0F0F
imull $0x1010101, %esi, %edx  # imm = 0x1010101
shrl $0x18, %edx
addl %edx, %r14d
incq %rcx
jmp 0x1477f
movq %rsp, %rdi
movl %r14d, %esi
callq 0xbae2
addq %r15, %r12
incl %r13d
jmp 0x1476c
movq %rsp, %rdi
callq 0x12cf6
movq %rax, 0x28(%rbx)
movq %rsp, %rdi
callq 0x12ce2
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x147f6
jmp 0x147f6
movq %rax, %rbx
movq %rsp, %rdi
callq 0x12ce2
movq %rbx, %rdi
callq 0x3430
nop
// File: /workspace/github_cpp_makefile_star2_O2/adamnovak[P]rlcsa/bits/succinctvector.cpp
// Function: CSA::SuccinctVector::indexForSelect()
void
SuccinctVector::indexForSelect()
{
  delete this->select_index; this->select_index = 0;

  this->select_rate = (this->items + this->number_of_blocks - 1) / this->number_of_blocks;
  usint index_samples = (this->items + this->select_rate - 1) / this->select_rate + 1;
  WriteBuffer buffer(index_samples, this->integer_bits);

  // pointer is the largest block number such that rank_index[pointer] <= current.
  usint pointer = 0;
  usint next_rank = this->rank_index->readItem(1);
  for(usint current = 0; current < this->items; current += this->select_rate)
  {
    while(next_rank <= current)
    {
      pointer++; next_rank = this->rank_index->readItem();
    }
    buffer.writeItem(pointer);
  }
  buffer.writeItem(this->number_of_blocks - 1);

  this->select_index = buffer.getReadBuffer();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq 0x38(%rdi), %r14
testq %r14, %r14
je 0x1482a
movq %r14, %rdi
callq 0x12b48
pushq $0x28
popq %rsi
movq %r14, %rdi
callq 0x3240
andq $0x0, 0x38(%rbx)
movl 0x4(%rbx), %esi
movl 0x14(%rbx), %ecx
leal (%rsi,%rcx), %eax
decl %eax
xorl %ebp, %ebp
xorl %edx, %edx
divl %ecx
movl %eax, %ecx
movl %eax, 0x40(%rbx)
leal (%rsi,%rcx), %eax
decl %eax
xorl %edx, %edx
divl %ecx
leal 0x1(%rax), %esi
movl 0x20(%rbx), %edx
leaq 0x8(%rsp), %rdi
callq 0x12c3a
movq 0x28(%rbx), %rdi
pushq $0x1
popq %rsi
callq 0xbaf4
movl %eax, %r15d
leaq 0x8(%rsp), %r14
xorl %r12d, %r12d
cmpl 0x4(%rbx), %r12d
jae 0x148ab
cmpl %r12d, %r15d
ja 0x1489b
movq 0x28(%rbx), %rdi
callq 0xbb70
movl %eax, %r15d
incl %ebp
jmp 0x14886
movq %r14, %rdi
movl %ebp, %esi
callq 0xbae2
addl 0x40(%rbx), %r12d
jmp 0x14880
movl 0x14(%rbx), %esi
decl %esi
leaq 0x8(%rsp), %rdi
callq 0xbae2
leaq 0x8(%rsp), %rdi
callq 0x12cf6
movq %rax, 0x38(%rbx)
leaq 0x8(%rsp), %rdi
callq 0x12ce2
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x148e3
jmp 0x148e3
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x12ce2
movq %rbx, %rdi
callq 0x3430
// File: /workspace/github_cpp_makefile_star2_O2/adamnovak[P]rlcsa/bits/succinctvector.cpp
// Function: CSA::SuccinctVector::SuccinctVector(_IO_FILE*)
SuccinctVector::SuccinctVector(FILE* file) :
  BitVector()
{
  if(file == 0) { return; }

  this->readHeader(file);
  this->readArray(file);

  this->integer_bits = length(this->size);
  this->indexForRank();
  this->indexForSelect();
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
callq 0x13502
testq %r14, %r14
je 0x1493c
movq %rbx, %rdi
movq %r14, %rsi
callq 0x131d6
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1324a
movl (%rbx), %edi
callq 0xbad4
movl %eax, 0x20(%rbx)
movq %rbx, %rdi
callq 0x1470e
movq %rbx, %rdi
callq 0x1480a
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x13518
movq %r14, %rdi
callq 0x3430
nop
// File: /workspace/github_cpp_makefile_star2_O2/adamnovak[P]rlcsa/bits/succinctvector.cpp
// Function: CSA::SuccinctVector::SuccinctVector(CSA::SuccinctEncoder&, unsigned int)
SuccinctVector::SuccinctVector(Encoder& encoder, usint universe_size) :
  BitVector()
{
  if(encoder.items == 0)
  {
    std::cerr << "SuccinctVector: Cannot create a bit vector with no 1-bits!" << std::endl;
    return;
  }

  this->size = universe_size;
  this->items = encoder.items;
  this->block_size = encoder.block_size;

  this->number_of_blocks = (this->size + this->block_size * WORD_BITS - 1) / (this->block_size * WORD_BITS);
  this->copyArray(encoder);

  this->integer_bits = length(this->size);
  this->indexForRank();
  this->indexForSelect();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
callq 0x13502
movl 0x4(%r14), %eax
testl %eax, %eax
je 0x149b9
movl %r15d, (%rbx)
movl %eax, 0x4(%rbx)
movl 0xc(%r14), %ecx
movl %ecx, 0x10(%rbx)
shll $0x5, %ecx
leal (%r15,%rcx), %eax
decl %eax
xorl %edx, %edx
divl %ecx
movl %eax, 0x14(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x13400
movl (%rbx), %edi
callq 0xbad4
movl %eax, 0x20(%rbx)
movq %rbx, %rdi
callq 0x1470e
movq %rbx, %rdi
callq 0x1480a
jmp 0x149d4
movq 0xf630(%rip), %rdi      # 0x23ff0
leaq 0x41e9(%rip), %rsi      # 0x18bb0
callq 0x3210
movq %rax, %rdi
callq 0x3100
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x13518
movq %r14, %rdi
callq 0x3430
nop
// File: /workspace/github_cpp_makefile_star2_O2/adamnovak[P]rlcsa/bits/succinctvector.cpp
// Function: CSA::SuccinctVector::SuccinctVector(CSA::SuccinctEncoder&)
SuccinctVector::SuccinctVector(Encoder& encoder) :
  BitVector()
{
  if(encoder.items == 0)
  {
    std::cerr << "SuccinctVector: Cannot create a bit vector with no 1-bits!" << std::endl;
    return;
  }

  this->size = std::max(encoder.size, encoder.superblock_bytes * CHAR_BIT);
  this->items = encoder.items;
  this->block_size = encoder.block_size;

  this->number_of_blocks = (this->size + this->block_size * WORD_BITS - 1) / (this->block_size * WORD_BITS);
  this->copyArray(encoder, true);

  this->integer_bits = length(this->size);
  this->indexForRank();
  this->indexForSelect();
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
callq 0x13502
movl 0x4(%r14), %eax
testl %eax, %eax
je 0x14a59
movl (%r14), %ecx
movl 0x10(%r14), %edx
shll $0x3, %edx
cmpl %edx, %ecx
cmoval %ecx, %edx
movl %edx, (%rbx)
movl %eax, 0x4(%rbx)
movl 0xc(%r14), %ecx
movl %ecx, 0x10(%rbx)
shll $0x5, %ecx
leal (%rdx,%rcx), %eax
decl %eax
xorl %edx, %edx
divl %ecx
movl %eax, 0x14(%rbx)
pushq $0x1
popq %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13400
movl (%rbx), %edi
callq 0xbad4
movl %eax, 0x20(%rbx)
movq %rbx, %rdi
callq 0x1470e
movq %rbx, %rdi
callq 0x1480a
jmp 0x14a74
movq 0xf590(%rip), %rdi      # 0x23ff0
leaq 0x4149(%rip), %rsi      # 0x18bb0
callq 0x3210
movq %rax, %rdi
callq 0x3100
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x13518
movq %r14, %rdi
callq 0x3430
nop
// File: /workspace/github_cpp_makefile_star2_O2/adamnovak[P]rlcsa/bits/succinctvector.cpp
// Function: CSA::SuccinctVector::Iterator::rank(unsigned int, bool)
usint
SuccinctVector::Iterator::rank(usint value, bool at_least)
{
  const SuccinctVector& par = (const SuccinctVector&)(this->parent);

  if(value >= par.size) { return par.items; }

  usint block = value / (par.block_size * WORD_BITS);
  usint result = par.rank_index->readItemConst(block);
  const usint* data = par.array + block * par.block_size;

  // Value is now the number of bits to be read within the block.
  // Add popcounts for entire words as long as possible.
  value = value - block * par.block_size * WORD_BITS + 1;
  while(value >= WORD_BITS)
  {
    result += popcount(*data);
    ++data; value -= WORD_BITS;
  }

  // Add popcount for the last bits.
  if(value > 0)
  {
    result += popcount(GET(LOWER(*data, WORD_BITS - value), value));
  }

  return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq (%rdi), %r15
cmpl %esi, (%r15)
jbe 0x14bcc
movl %esi, %ebx
movl 0x10(%r15), %ecx
shll $0x5, %ecx
movl %esi, %eax
xorl %edx, %edx
divl %ecx
movl %eax, %r14d
movq 0x28(%r15), %rdi
movl %eax, %esi
callq 0x9b42
imull 0x10(%r15), %r14d
leaq (,%r14,4), %rdx
addq 0x8(%r15), %rdx
shll $0x5, %r14d
negl %r14d
leal (%rbx,%r14), %ecx
incl %ecx
movl $0x33333333, %esi       # imm = 0x33333333
cmpl $0x20, %ecx
jb 0x14b8c
movl (%rdx), %edi
movl %edi, %r8d
shrl %r8d
andl $0x55555555, %r8d       # imm = 0x55555555
subl %r8d, %edi
movl %edi, %r8d
andl %esi, %r8d
shrl $0x2, %edi
andl %esi, %edi
addl %r8d, %edi
movl %edi, %r8d
shrl $0x4, %r8d
addl %edi, %r8d
andl $0xf0f0f0f, %r8d        # imm = 0xF0F0F0F
imull $0x1010101, %r8d, %edi  # imm = 0x1010101
shrl $0x18, %edi
addl %edi, %eax
addq $0x4, %rdx
addl $-0x20, %ecx
jmp 0x14b41
testl %ecx, %ecx
je 0x14bd0
movl (%rdx), %edx
negb %cl
shrl %cl, %edx
movl %edx, %ecx
shrl %ecx
andl $0x55555555, %ecx       # imm = 0x55555555
subl %ecx, %edx
movl $0x33333333, %ecx       # imm = 0x33333333
movl %edx, %esi
andl %ecx, %esi
shrl $0x2, %edx
andl %ecx, %edx
addl %esi, %edx
movl %edx, %ecx
shrl $0x4, %ecx
addl %edx, %ecx
andl $0xf0f0f0f, %ecx        # imm = 0xF0F0F0F
imull $0x1010101, %ecx, %ecx  # imm = 0x1010101
shrl $0x18, %ecx
addl %ecx, %eax
jmp 0x14bd0
movl 0x4(%r15), %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/adamnovak[P]rlcsa/bits/succinctvector.cpp
// Function: CSA::SuccinctVector::Iterator::valueBefore(unsigned int)
pair_type
SuccinctVector::Iterator::valueBefore(usint value)
{
  const SuccinctVector& par = (const SuccinctVector&)(this->parent);
  if(value >= par.size) { return pair_type(par.size, par.items); }

	usint temp = this->rank(value);
	if(temp == 0)         { return pair_type(par.size, par.items); }
	return pair_type(this->select(temp - 1), temp - 1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq (%rdi), %r15
movl (%r15), %eax
cmpl %esi, %eax
jbe 0x14dbe
movq %rdi, %r14
xorl %edx, %edx
callq 0x14af0
testl %eax, %eax
je 0x14dbb
movl %eax, %ebx
decl %ebx
movq %r14, %rdi
movl %ebx, %esi
callq 0x14bd6
jmp 0x14dc2
movl (%r15), %eax
movl 0x4(%r15), %ebx
shlq $0x20, %rbx
movl %eax, %eax
orq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/adamnovak[P]rlcsa/bits/succinctvector.cpp
// Function: CSA::SuccinctVector::Iterator::valueAfter(unsigned int)
pair_type
SuccinctVector::Iterator::valueAfter(usint value)
{
  const SuccinctVector& par = (const SuccinctVector&)(this->parent);
  if(value >= par.size) { return pair_type(par.size, par.items); }

	if(value == 0) { return pair_type(this->select(0), 0); }
	usint temp = this->rank(value - 1);
	return pair_type(this->select(temp), temp);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq (%rdi), %rcx
movl (%rcx), %eax
cmpl %esi, %eax
jbe 0x14dfb
movq %rdi, %r14
testl %esi, %esi
je 0x14e00
decl %esi
movq %r14, %rdi
xorl %edx, %edx
callq 0x14af0
movl %eax, %ebx
movq %r14, %rdi
movl %eax, %esi
jmp 0x14e07
movl 0x4(%rcx), %ebx
jmp 0x14e0c
xorl %ebx, %ebx
movq %r14, %rdi
xorl %esi, %esi
callq 0x14bd6
shlq $0x20, %rbx
movl %eax, %eax
orq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/adamnovak[P]rlcsa/bits/succinctvector.cpp
// Function: CSA::SuccinctVector::Iterator::countRuns()
usint
SuccinctVector::Iterator::countRuns()
{
  usint runs = 0;
  usint prev = this->select(0);
  while(this->hasNext())
  {
    usint temp = this->selectNext();
    if(temp != prev + 1) { runs++; }
    prev = temp;
  }
  return runs;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
xorl %ebp, %ebp
xorl %esi, %esi
callq 0x14bd6
movl %eax, %r14d
movq (%rbx), %rax
movl 0x4(%rax), %eax
decl %eax
cmpl %eax, 0x8(%rbx)
jae 0x14e91
movq %rbx, %rdi
callq 0x14d6a
incl %r14d
xorl %ecx, %ecx
cmpl %r14d, %eax
setne %cl
addl %ecx, %ebp
jmp 0x14e6a
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/adamnovak[P]rlcsa/bits/succinctvector.cpp
// Function: CSA::SuccinctEncoder::setBit(unsigned int)
void
SuccinctEncoder::setBit(usint value)
{
  // We can set any bit in the current superblock as well as those bits after it.
  if(value < this->array_blocks.size() * this->superblock_bytes * CHAR_BIT) { return; }
  this->size = std::max(this->size, value + 1);

  value -= this->array_blocks.size() * this->superblock_bytes * CHAR_BIT;
  while(value >= this->superblock_bytes * CHAR_BIT)
  {
    this->addNewBlock();
    value -= this->superblock_bytes * CHAR_BIT;
  }

  if(!(this->buffer->isSet(value))) { this->items++; }
  this->buffer->setBit(value);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r14d
movl %esi, %edx
movq 0x30(%rdi), %rcx
movl 0x10(%rdi), %eax
movq %rcx, %rsi
imulq %rax, %rsi
shlq $0x3, %rsi
cmpq %rdx, %rsi
ja 0x14f2d
movq %rdi, %rbx
leal 0x1(%r14), %edx
movl (%rdi), %esi
cmpl %edx, %esi
cmoval %esi, %edx
movl %edx, (%rdi)
imull %eax, %ecx
shll $0x3, %ecx
subl %ecx, %r14d
shll $0x3, %eax
cmpl %eax, %r14d
jb 0x14efe
movq %rbx, %rdi
callq 0x13afc
movl 0x10(%rbx), %eax
leal (,%rax,8), %ecx
subl %ecx, %r14d
jmp 0x14edf
movq 0x18(%rbx), %rax
movq (%rax), %rax
movl %r14d, %edx
notb %r14b
pushq $0x1
popq %rsi
movl %r14d, %ecx
shll %cl, %esi
shrl $0x5, %edx
movl (%rax,%rdx,4), %ecx
movzbl %r14b, %edi
btl %edi, %ecx
jb 0x14f28
incl 0x4(%rbx)
movl (%rax,%rdx,4), %ecx
orl %esi, %ecx
movl %ecx, (%rax,%rdx,4)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/ushitora-anqou[P]femtoyaml/./femtoyaml.hpp
// Function: femtoyaml::detail::to_string[abi:cxx11](std::variant<femtoyaml::detail::tk_eof, femtoyaml::detail::tk_scalar_plain, femtoyaml::detail::tk_block_sequence_start, femtoyaml::detail::tk_block_end, femtoyaml::detail::tk_block_entry, femtoyaml::detail::tk_block_mapping_start, femtoyaml::detail::tk_key, femtoyaml::detail::tk_value> const&)
std::string to_string(const token& tk)
{
    return match_with(
        tk, [](const tk_eof&) { return std::string("EOF"); },
        [](const tk_scalar_plain& tk) {
            return "SCALAR(" + tk.str + ", plain)";
        },
        [](const tk_block_sequence_start&) {
            return std::string("BLOCK-SEQUENCE-START");
        },
        [](const tk_block_end&) { return std::string("BLOCK-END"); },
        [](const tk_block_entry&) { return std::string("BLOCK-ENTRY"); },
        [](const tk_block_mapping_start&) {
            return std::string("BLOCK-MAPPING-START");
        },
        [](const tk_key&) { return std::string("KEY"); },
        [](const tk_value&) { return std::string("VALUE"); });
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movb 0x20(%rsi), %al
cmpb $-0x1, %al
jne 0x3507
leaq 0x3b44(%rip), %rdi      # 0x7042
callq 0x3954
movb 0x20(%r14), %al
movsbq %al, %rax
leaq 0x95f6(%rip), %rcx      # 0xcb08
leaq -0x11(%rbp), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq *(%rcx,%rax,8)
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/ushitora-anqou[P]femtoyaml/./femtoyaml.hpp
// Function: femtoyaml::load(std::istream&)
inline value load(std::istream& is)
{
    detail::stream st = is;
    auto tokens = detail::tokenizer(st).get();
    // for (auto&& tk : tokens)
    //    std::cout << femtoyaml::detail::to_string(tk) << std::endl;
    return detail::parser(tokens.begin()).get();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0xc0, %rsp
movq %rdi, %rbx
leaq -0xc8(%rbp), %r14
movq %r14, %rdi
callq 0x3f90
leaq -0x68(%rbp), %rdi
movq %r14, %rsi
callq 0x3fb0
leaq -0x60(%rbp), %rsi
leaq -0x28(%rbp), %rdi
callq 0x400a
leaq -0x68(%rbp), %rdi
callq 0x4064
movq -0x28(%rbp), %rsi
leaq -0x68(%rbp), %rdi
callq 0x4088
leaq -0x60(%rbp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6db0
movq %r14, %rdi
callq 0x6ee8
leaq -0x28(%rbp), %rdi
callq 0x40bc
leaq -0xc0(%rbp), %rdi
callq 0x6eb0
movq %rbx, %rax
addq $0xc0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movq %r14, %rdi
callq 0x6ee8
jmp 0x38ff
movq %rax, %rbx
leaq -0x28(%rbp), %rdi
callq 0x40bc
jmp 0x391b
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0x4064
jmp 0x391b
movq %rax, %rbx
leaq -0xc0(%rbp), %rdi
callq 0x6eb0
movq %rbx, %rdi
callq 0x32b0
// File: /workspace/github_cpp_makefile_star2_O2/ushitora-anqou[P]femtoyaml/./femtoyaml.hpp
// Function: auto femtoyaml::value::visit<femtoyaml::detail::serializer::do_serialize(femtoyaml::value const&, int)::'lambda'(int), femtoyaml::detail::serializer::do_serialize(femtoyaml::value const&, int)::'lambda'(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&), femtoyaml::detail::serializer::do_serialize(femtoyaml::value const&, int)::'lambda'(std::vector<femtoyaml::value, std::allocator<femtoyaml::value>> const&), femtoyaml::detail::serializer::do_serialize(femtoyaml::value const&, int)::'lambda'(std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, femtoyaml::value, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, femtoyaml::value>>> const&)>(femtoyaml::detail::serializer::do_serialize(femtoyaml::value const&, int)::'lambda'(int)&&, femtoyaml::detail::serializer::do_serialize(femtoyaml::value const&, int)::'lambda'(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)&&, femtoyaml::detail::serializer::do_serialize(femtoyaml::value const&, int)::'lambda'(std::vector<femtoyaml::value, std::allocator<femtoyaml::value>> const&)&&, femtoyaml::detail::serializer::do_serialize(femtoyaml::value const&, int)::'lambda'(std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, femtoyaml::value, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, femtoyaml::value>>> const&)&&) const
auto visit(Visitors&&... visitors) const
    {
        auto callback = overloaded{visitors...};
        return match_with(
            val_,
            [&](const std::shared_ptr<list>& ptr) { return callback(*ptr); },
            [&](const std::shared_ptr<map>& ptr) { return callback(*ptr); },
            [&](int val) { return callback(val); },
            [&](const std::string& str) { return callback(str); });
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, %rax
movups (%rsi), %xmm0
leaq -0x60(%rbp), %rsi
movaps %xmm0, (%rsi)
movups (%rdx), %xmm0
movaps %xmm0, 0x10(%rsi)
movups (%rcx), %xmm0
movaps %xmm0, 0x20(%rsi)
movups (%r8), %xmm0
movaps %xmm0, 0x30(%rsi)
leaq -0x20(%rbp), %rdi
movq %rsi, (%rdi)
movq %rsi, 0x8(%rdi)
movq %rsi, 0x10(%rdi)
movq %rsi, 0x18(%rdi)
movzbl 0x20(%rax), %ecx
leaq 0x8ef1(%rip), %rdx      # 0xcb48
movq %rax, %rsi
callq *(%rdx,%rcx,8)
addq $0x60, %rsp
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/ushitora-anqou[P]femtoyaml/./femtoyaml.hpp
// Function: femtoyaml::detail::stream::skip_ws()
void skip_ws()
    {
        while (true) {
            switch (peek()) {
            case ' ':
            case '\n':
                next();
                break;

            default:
                return;
            }
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x458a
cmpl $0x20, %eax
je 0x4509
cmpl $0xa, %eax
jne 0x4513
movq %rbx, %rdi
callq 0x464e
jmp 0x44f5
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/ushitora-anqou[P]femtoyaml/./femtoyaml.hpp
// Function: femtoyaml::detail::tokenizer::unroll_indent(int)
void unroll_indent(int column)
    {
        // check indent and unroll it if needed
        while (indent_ > column) {
            indent_ = indents_.back();
            indents_.pop_back();
            tks_.push_back(tk_block_end{});
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movl %esi, %ebx
movq %rdi, %r14
leaq 0x8(%rdi), %r15
leaq -0x48(%rbp), %r12
cmpl %ebx, 0x20(%r14)
jle 0x4568
movq 0x30(%r14), %rax
movl -0x4(%rax), %ecx
addq $-0x4, %rax
movl %ecx, 0x20(%r14)
movq %rax, 0x30(%r14)
movb $0x3, -0x28(%rbp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x4db8
movq %r12, %rdi
callq 0x4674
jmp 0x4536
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x4674
movq %rbx, %rdi
callq 0x32b0
nop
// File: /workspace/github_cpp_makefile_star2_O2/ushitora-anqou[P]femtoyaml/./femtoyaml.hpp
// Function: void femtoyaml::detail::tokenizer::roll_indent<femtoyaml::detail::tk_block_sequence_start>(int)
void roll_indent(int column)
    {
        // check if block sequence starts
        if (indent_ < column) {
            tks_.push_back(T{});
            indents_.push_back(indent_);
            indent_ = column;
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
cmpl %esi, 0x20(%rdi)
jge 0x462f
movl %esi, %ebx
movq %rdi, %r14
addq $0x8, %rdi
leaq -0x40(%rbp), %rsi
movb $0x2, 0x20(%rsi)
callq 0x4db8
leaq 0x20(%r14), %r15
leaq -0x40(%rbp), %rdi
callq 0x4674
leaq 0x28(%r14), %rdi
movq %r15, %rsi
callq 0x4bbe
movl %ebx, 0x20(%r14)
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x4674
movq %rbx, %rdi
callq 0x32b0
// File: /workspace/github_cpp_makefile_star2_O2/ushitora-anqou[P]femtoyaml/./femtoyaml.hpp
// Function: femtoyaml::detail::tokenizer::fetch_plain_scalar()
tk_scalar_plain fetch_plain_scalar()
    {
        std::stringstream ss;
        while (true) {
            switch (st_.peek()) {
            case '\n':
                goto end;
            case ':':
                if (is_blankz(st_.peek(1))) goto end;
                break;
            case EOF:
                goto end;
            }
            ss << (char)st_.next();
        }
    end:
        return tk_scalar_plain{ss.str()};
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x190, %rsp            # imm = 0x190
movq %rsi, %r14
movq %rdi, %rbx
leaq -0x1a8(%rbp), %rdi
callq 0x30f0
leaq -0x198(%rbp), %r15
pushq $0x1
popq %r12
movq (%r14), %rdi
xorl %esi, %esi
callq 0x458a
cmpl $0x3a, %eax
je 0x478c
cmpl $-0x1, %eax
je 0x47b6
cmpl $0xa, %eax
jne 0x47a1
jmp 0x47b6
movq (%r14), %rdi
movl %r12d, %esi
callq 0x458a
cmpl $0xa, %eax
je 0x47b6
cmpl $0x20, %eax
je 0x47b6
movq (%r14), %rdi
callq 0x464e
movsbl %al, %esi
movq %r15, %rdi
callq 0x3190
jmp 0x4771
leaq -0x190(%rbp), %rsi
movq %rbx, %rdi
callq 0x3250
leaq -0x1a8(%rbp), %rdi
callq 0x3110
movq %rbx, %rax
addq $0x190, %rsp            # imm = 0x190
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x47e6
movq %rax, %rbx
leaq -0x1a8(%rbp), %rdi
callq 0x3110
movq %rbx, %rdi
callq 0x32b0
nop
// File: /workspace/github_cpp_makefile_star2_O2/ushitora-anqou[P]femtoyaml/./femtoyaml.hpp
// Function: std::optional<femtoyaml::detail::tk_scalar_plain> femtoyaml::detail::parser::pop_if<femtoyaml::detail::tk_scalar_plain>()
std::optional<T> pop_if()
    {
        auto ptk = std::get_if<T>(&*tks_iter_);
        if (!ptk) return std::nullopt;
        tks_iter_++;
        return *ptk;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rsi, %rax
movq %rdi, %rbx
movq (%rsi), %rsi
testq %rsi, %rsi
je 0x5419
cmpb $0x1, 0x20(%rsi)
jne 0x5419
leaq 0x28(%rsi), %rcx
movq %rcx, (%rax)
movq %rbx, %rdi
callq 0x5714
jmp 0x541d
movb $0x0, 0x20(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/dguglielmi[P]dlan-linux-software/tools/../common/packettask.h
// Function: bool CPacketTaskRunner::Run<MSCounter>(unsigned long, MSCounter)
bool Run(unsigned long ulTimeout, TMSecCounterFunc fncGetMsCount)
  {
    unsigned long ulNow, ulStart = fncGetMsCount();
    while(!task.Complete() && (((ulNow = fncGetMsCount()) - ulStart) < ulTimeout))
    {
      unsigned long ulWait = task.Drumbeat();
      ifc.ReceivePackets(task.GetReceiver(), std::min<unsigned long>(ulWait, ulTimeout - (ulNow - ulStart)));
    }
    return task.Successful();
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x7(%rsp), %rdi
callq 0x62fa
movq %rax, %r12
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
testb %al, %al
jne 0x4bfd
leaq 0x7(%rsp), %rdi
callq 0x62fa
subq %r12, %rax
movq %r15, %r14
subq %rax, %r14
jbe 0x4bfd
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movq %rax, %r13
movq (%rbx), %rbp
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
callq *(%rax)
cmpq %r13, %r14
cmovbq %r14, %r13
movq (%rbp), %rcx
movq %rbp, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq *0x18(%rcx)
jmp 0x4ba8
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/dguglielmi[P]dlan-linux-software/tools/../common/packettask.h
// Function: CPacketTaskRunner::Run()
bool Run()
  {
    while(!task.Complete())
    {
      unsigned long ulWait = task.Drumbeat();
      ifc.ReceivePackets(task.GetReceiver(), ulWait);
    }
    return task.Successful();
  }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
movq 0x8(%rbx), %rdi
movq (%rdi), %rcx
testb %al, %al
jne 0x4d6c
callq *0x8(%rcx)
movq %rax, %r14
movq (%rbx), %r15
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
callq *(%rax)
movq (%r15), %rcx
movq %r15, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq *0x18(%rcx)
jmp 0x4d34
popq %rbx
popq %r14
popq %r15
jmpq *0x18(%rcx)
// File: /workspace/github_cpp_makefile_star2_O2/dguglielmi[P]dlan-linux-software/tools/dlanpasswd.cpp
// Function: CFindLocalDevice::OnUpdate()
virtual void OnUpdate()
  {
    if(devToFind)
    {
      for(CDlanLocalDeviceList::const_iterator itLocal = GetLocalDevices().begin(); 
        !stop && (itLocal != GetLocalDevices().end()); ++itLocal)
      {
        if(itLocal->GetAddress() == devToFind)
        {
          itDevice = itLocal;
          stop = true;
          ifc.StopReceiving();
        }
      }
    }
    else if(GetLocalDevices().size() > 0)
    {
      itDevice = GetLocalDevices().begin();
      stop = true;
      ifc.StopReceiving();
    }
  }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0xf0(%rdi), %rdi
callq 0x5b32
testb %al, %al
je 0x51d4
leaq 0x98(%rbx), %r14
movq %r14, %r15
cmpb $0x0, 0xe0(%rbx)
jne 0x5205
movq (%r15), %r15
cmpq %r14, %r15
je 0x5205
leaq 0x10(%r15), %rdi
movq 0xf0(%rbx), %rsi
callq 0x5b4d
testb %al, %al
je 0x5192
movq %r15, 0xf8(%rbx)
movb $0x1, 0xe0(%rbx)
movq 0xe8(%rbx), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
jmp 0x5192
cmpq $0x0, 0xa8(%rbx)
je 0x5205
movq 0x98(%rbx), %rax
movq 0xe8(%rbx), %rdi
movq %rax, 0xf8(%rbx)
movb $0x1, 0xe0(%rbx)
movq (%rdi), %rax
popq %rbx
popq %r14
popq %r15
jmpq *0x20(%rax)
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/dguglielmi[P]dlan-linux-software/tools/../common/hpmmes.h
// Function: HomePlugMMEs::CDispatcher::Dispatch(CMACAddress const&, IPacket const&)
virtual bool Dispatch(const CMACAddress& adapter, const IPacket& pkt)
    {
      if(CMACHeader::IsValid(pkt, uEtherType))
      {
        if(SetNetworkEncKey::CConfirm::IsValid(pkt))
          OnSetNetworkEncKeyConfirm(adapter, SetNetworkEncKey::CConfirm(pkt));
        else if(ParamsAndStats::CResponse::IsValid(pkt))
          OnParamsAndStatsResponse(adapter, ParamsAndStats::CResponse(pkt));
        else if(Int51NetStat::CResponse::IsValid(pkt))
          OnInt51NetStatResponse(adapter, Int51NetStat::CResponse(pkt));
        else if(TurboDeviceDescription::CResponse::IsValid(pkt))
          OnTurboDeviceDescriptionResponse(adapter, TurboDeviceDescription::CResponse(pkt));
        else if(TurboChannelCapacities::CResponse::IsValid(pkt))
          OnTurboChannelCapacitiesResponse(adapter, TurboChannelCapacities::CResponse(pkt));
        else
          OnUnknownMme(adapter, pkt);

        return true;
      }
      else
        return false;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x120, %rsp            # imm = 0x120
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
movq %rdx, %rdi
movl $0x887b, %esi           # imm = 0x887B
callq 0x5b5e
movl %eax, %ebx
testb %al, %al
je 0x5384
movq %r12, %rdi
callq 0x5b92
testb %al, %al
je 0x52be
leaq 0xb(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x5b9c
movq (%r15), %rax
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq *0x8(%rax)
jmp 0x5384
movq %r12, %rdi
callq 0x5ba8
testb %al, %al
je 0x52ee
leaq 0xb(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x5bb4
movq (%r15), %rax
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq *0x10(%rax)
jmp 0x5384
movq %r12, %rdi
callq 0x5bc0
testb %al, %al
je 0x531b
leaq 0xb(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x5bea
movq (%r15), %rax
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq *0x18(%rax)
jmp 0x5384
movq %r12, %rdi
callq 0x5bf8
testb %al, %al
je 0x5348
leaq 0xb(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x5c04
movq (%r15), %rax
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq *0x20(%rax)
jmp 0x5384
movq %r12, %rdi
callq 0x5c10
testb %al, %al
je 0x5375
leaq 0xb(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x5c1a
movq (%r15), %rax
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq *0x28(%rax)
jmp 0x5384
movq (%r15), %rax
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq *0x30(%rax)
movl %ebx, %eax
addq $0x120, %rsp            # imm = 0x120
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/dguglielmi[P]dlan-linux-software/tools/../common/hpmmes.h
// Function: HomePlugAvMMEs::CDispatcher::Dispatch(CMACAddress const&, IPacket const&)
virtual bool Dispatch(const CMACAddress& adapter, const IPacket& pkt)
    {
      if(CMACHeader::IsValid(pkt, uEtherType))
      {
        if(ThunderGetVersion::CConfirm::IsValid(pkt))
          OnThunderGetVersionConfirm(adapter, ThunderGetVersion::CConfirm(pkt));
        else if(ThunderReadModuleData::CConfirm::IsValid(pkt))
          OnThunderReadModuleDataConfirm(adapter, ThunderReadModuleData::CConfirm(pkt));
        else if(ThunderNetworkInfo::CConfirm::IsValid(pkt))
          OnThunderNetworkInfoConfirm(adapter, ThunderNetworkInfo::CConfirm(pkt));
        else if(ThunderNetworkInfoV1::CConfirm::IsValid(pkt))
          OnThunderNetworkInfoV1Confirm(adapter, ThunderNetworkInfoV1::CConfirm(pkt));
        else if(ThunderSetKey::CConfirm::IsValid(pkt))
          OnThunderSetKeyConfirm(adapter, ThunderSetKey::CConfirm(pkt));
        else if(ThunderGetManufacturingString::CConfirm::IsValid(pkt))
          OnThunderGetManufacturingStringConfirm(adapter, ThunderGetManufacturingString::CConfirm(pkt));
        else
          OnUnknownMme(adapter, pkt);

        return true;
      }
      else
        return false;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x5f0, %rsp            # imm = 0x5F0
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
movq %rdx, %rdi
movl $0x88e1, %esi           # imm = 0x88E1
callq 0x5b5e
movl %eax, %ebx
testb %al, %al
je 0x54f2
movq %r12, %rdi
callq 0x5ce8
testb %al, %al
je 0x53fc
leaq 0xb(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x5d10
movq (%r15), %rax
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq *0x8(%rax)
jmp 0x54f2
movq %r12, %rdi
callq 0x5d1c
testb %al, %al
je 0x542c
leaq 0xb(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x5d44
movq (%r15), %rax
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq *0x10(%rax)
jmp 0x54f2
movq %r12, %rdi
callq 0x5d52
testb %al, %al
je 0x545c
leaq 0xb(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x5da8
movq (%r15), %rax
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq *0x18(%rax)
jmp 0x54f2
movq %r12, %rdi
callq 0x5db6
testb %al, %al
je 0x5489
leaq 0xb(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x5e0c
movq (%r15), %rax
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq *0x20(%rax)
jmp 0x54f2
movq %r12, %rdi
callq 0x5e1a
testb %al, %al
je 0x54b6
leaq 0xb(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x5e42
movq (%r15), %rax
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq *0x28(%rax)
jmp 0x54f2
movq %r12, %rdi
callq 0x5e4e
testb %al, %al
je 0x54e3
leaq 0xb(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x5e76
movq (%r15), %rax
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq *0x30(%rax)
jmp 0x54f2
movq (%r15), %rax
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq *0x38(%rax)
movl %ebx, %eax
addq $0x5f0, %rsp            # imm = 0x5F0
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/dguglielmi[P]dlan-linux-software/tools/../common/packetdispatcher.h
// Function: CPacketReceiverAndDispatcher::PacketIndication(CMACAddress const&, IPacket const&)
virtual bool PacketIndication(const CMACAddress& adapter, const IPacket& packet)
  {
    std::list<IPacketDispatcher*>::iterator itDispatcher = listDispatchers.begin();
    while((itDispatcher != listDispatchers.end()) && ((*itDispatcher)->Dispatch(adapter, packet) == false))
      ++itDispatcher;

    bool bResult = false;
    std::list<IPacketWaiter*>::iterator itWaiter = listWaiters.begin();
    while((itWaiter != listWaiters.end()) && ((bResult = (*itWaiter)->WaitSatisfied()) == false))
      ++itWaiter;

    return bResult;
  }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x8(%rdi), %r12
movq %r12, %r13
movq (%r13), %r13
cmpq %r12, %r13
je 0x5565
movq 0x10(%r13), %rdi
movq (%rdi), %rax
movq %r15, %rsi
movq %r14, %rdx
callq *(%rax)
testb %al, %al
je 0x5549
addq $0x20, %rbx
movq %rbx, %r14
movq (%r14), %r14
cmpq %rbx, %r14
je 0x5581
movq 0x10(%r14), %rdi
movq (%rdi), %rax
callq *(%rax)
testb %al, %al
je 0x556c
cmpq %rbx, %r14
setne %al
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/dguglielmi[P]dlan-linux-software/tools/../common/hpmmes.h
// Function: HomePlugMMEs::MmeHdr::IsValid(IPacket const&, unsigned char, unsigned char)
static bool IsValid(const IPacket& pkt, uint8_t expectedMmeHdr, uint8_t expectedMmeLen)
    {
      MmeHdr* pHdr = (MmeHdr*)pkt.Data();
      return
        (pkt.Size() >= sizeof(MmeHdr)) &&
        (((pHdr)->cMmeCtrl & 0x7F) >= 1) &&
        ((pHdr)->cMmeHdr == expectedMmeHdr) &&
        ((pHdr)->cMmeLen <= (pkt.Size() - sizeof(MmeHdr)) &&
        ((pHdr)->cMmeLen >= expectedMmeLen));
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r15
movq (%rdi), %rax
callq *(%rax)
movq %rax, %r14
movq (%r15), %rax
movq %r15, %rdi
callq *0x8(%rax)
cmpq $0x11, %rax
jb 0x5c72
testb $0x7f, 0xe(%r14)
je 0x5c72
cmpb %bpl, 0xf(%r14)
jne 0x5c72
movzbl 0x10(%r14), %r12d
movq (%r15), %rax
movq %r15, %rdi
callq *0x8(%rax)
addq $-0x11, %rax
cmpq %r12, %rax
jae 0x5c7d
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpb %bl, 0x10(%r14)
setae %al
jmp 0x5c74