LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/devinsmith[P]qvdreader/QvdField.cpp
// Function: QvdField::ParseNumberFormat(_xmlNode const*)
void QvdField::ParseNumberFormat(const xmlNode *node)
{
  for (const xmlNode *child = node->children; child; child = child->next) {
    if (child->type == XML_ELEMENT_NODE) {
      xmlChar *nodeContent = xmlNodeGetContent(child);
      if (nodeContent == NULL)
        continue;

      if (strlen((char *)nodeContent) == 0) {
        xmlFree(nodeContent);
        continue;
      }

      if (strcmp((char *)child->name, "Type") == 0) {
        Type = (char *)nodeContent;
      } else if (strcmp((char *)child->name, "Dec") == 0) {
        Dec = (char *)nodeContent;
      } else if (strcmp((char *)child->name, "Thou") == 0) {
        Thou = (char *)nodeContent;
      } else if (strcmp((char *)child->name, "nDec") == 0) {
        nDec = atoi((char *)nodeContent);
      } else if (strcmp((char *)child->name, "UseThou") == 0) {
        UseThou = atoi((char *)nodeContent);
      } else {
        printf("Unprocessed NumberFormat tag: %s\n", child->name);
      }
      xmlFree(nodeContent);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0x18(%rsi), %r14
testq %r14, %r14
je 0x4e49
movq %rdi, %rbx
leaq 0x78(%rdi), %rax
movq %rax, (%rsp)
leaq 0x58(%rdi), %rax
movq %rax, 0x8(%rsp)
leaq 0x30(%rdi), %rax
movq %rax, 0x10(%rsp)
movq 0x82b5(%rip), %r13      # 0xcfe0
leaq 0x5342(%rip), %rbp      # 0xa074
cmpl $0x1, 0x8(%r14)
jne 0x4e20
movq %r14, %rdi
callq 0x43a0
testq %rax, %rax
je 0x4e20
movq %rax, %r12
cmpb $0x0, (%rax)
je 0x4e19
movq 0x10(%r14), %r15
movq %r15, %rdi
movq %rbp, %rsi
callq 0x4460
testl %eax, %eax
je 0x4dd0
movq %r15, %rdi
leaq 0x5303(%rip), %rsi      # 0xa07a
callq 0x4460
testl %eax, %eax
je 0x4de3
movq %r15, %rdi
leaq 0x52f7(%rip), %rsi      # 0xa081
callq 0x4460
testl %eax, %eax
je 0x4df6
movq %r15, %rdi
leaq 0x52dc(%rip), %rsi      # 0xa079
callq 0x4460
testl %eax, %eax
je 0x4e2f
movq %r15, %rdi
leaq 0x52ca(%rip), %rsi      # 0xa07e
callq 0x4460
testl %eax, %eax
je 0x4e3c
leaq 0x52c2(%rip), %rdi      # 0xa086
movq %r15, %rsi
xorl %eax, %eax
callq 0x4030
jmp 0x4e19
movq 0x38(%rbx), %r15
movq %r12, %rdi
callq 0x4120
movq 0x10(%rsp), %rdi
jmp 0x4e09
movq 0x60(%rbx), %r15
movq %r12, %rdi
callq 0x4120
movq 0x8(%rsp), %rdi
jmp 0x4e09
movq 0x80(%rbx), %r15
movq %r12, %rdi
callq 0x4120
movq (%rsp), %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %r12, %rcx
movq %rax, %r8
callq 0x44e0
movq %r12, %rdi
callq *(%r13)
movq 0x30(%r14), %r14
testq %r14, %r14
jne 0x4d32
jmp 0x4e49
movq %r12, %rdi
callq 0x44f0
movl %eax, 0x50(%rbx)
jmp 0x4e19
movq %r12, %rdi
callq 0x44f0
movl %eax, 0x54(%rbx)
jmp 0x4e19
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/devinsmith[P]qvdreader/QvdFile.cpp
// Function: QvdFile::Load(char const*)
bool QvdFile::Load(const char *filename)
{
  _fp = fopen(filename, "rb");
  if (_fp == NULL) {
    return false;
  }

  if (!parseXmlHeader(filename)) {
    return false;
  }

  if (_eof && _bufLen == 0) {
    // XML header parsed but missing symbol table and data.
    return false;
  }

  // The start of the dataPtr might have the ending \r and \n from
  // the XML portion, if so skip past that.
  char c;
  while (_bufLen > 0) {
    c = peekByte();
    if (c == '\r' || c == '\n' || c == '\0') {
      advanceBytes(1);
      continue;
    }
    break;
  }

  if (_eof && _bufLen == 0) {
    // XML header parsed but missing symbol table and data.
    return false;
  }

  DEBUG(fprintf(stdout, "%zu bytes left\n", _bufLen););

  parseSymbolAndData();

  // First 2 bytes seem to store a type:
  // 00 01 - INT
  // 00 04 - Text
  // 00 05 - Dual INT


  //dump_hex(0, _dataPtrStart, _bufLen);

  // Read rest of file.
  while (!_eof) {
    size_t len = readBytes();

    DEBUG(printf("Read %zu bytes.\n", len););
  }

  fclose(_fp);

  return true;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x4fcb(%rip), %rsi      # 0xa150
movq %r14, %rdi
callq 0x43e0
movq %rax, 0x128(%rbx)
testq %rax, %rax
je 0x5210
movq %rbx, %rdi
movq %r14, %rsi
callq 0x40c0
testb %al, %al
je 0x5210
movb 0x2140(%rbx), %al
movq 0x2138(%rbx), %rcx
testq %rcx, %rcx
sete %dl
testb %dl, %al
jne 0x5210
testq %rcx, %rcx
je 0x520c
movl $0x2401, %ebp           # imm = 0x2401
movq %rbx, %rdi
callq 0x4310
cmpb $0xd, %al
ja 0x51f8
movzbl %al, %eax
btl %eax, %ebp
jae 0x51f8
movl $0x1, %esi
movq %rbx, %rdi
callq 0x4640
cmpq $0x0, 0x2138(%rbx)
jne 0x51c9
movb $0x1, %al
jmp 0x5203
cmpq $0x0, 0x2138(%rbx)
sete %al
testb $0x1, 0x2140(%rbx)
je 0x5217
testb %al, %al
je 0x5217
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
movq %rbx, %rdi
callq 0x44a0
cmpb $0x0, 0x2140(%rbx)
jne 0x527e
leaq 0x130(%rbx), %r14
movq 0x128(%rbx), %rcx
movl $0x1, %esi
movl $0x2000, %edx           # imm = 0x2000
movq %r14, %rdi
callq 0x44b0
cmpq $0x1fff, %rax           # imm = 0x1FFF
jbe 0x5269
movq %r14, 0x2130(%rbx)
movq %rax, 0x2138(%rbx)
testb $0x1, 0x2140(%rbx)
je 0x522f
jmp 0x527e
movb $0x1, 0x2140(%rbx)
movq %r14, 0x2130(%rbx)
movq %rax, 0x2138(%rbx)
movq 0x128(%rbx), %rdi
callq 0x4320
movb $0x1, %al
jmp 0x5212
// File: /workspace/github_cpp_makefile_star2_O3/devinsmith[P]qvdreader/QvdFile.cpp
// Function: QvdFile::peekByte()
char QvdFile::peekByte()
{
  char c;

  if (_bufLen == 0) {
    if (!_eof) {
      readBytes();
    } else {
      return 0; // throw an error.
    }
  }

  c = *_dataPtrStart;

  return c;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, 0x2138(%rdi)
je 0x53f4
movq 0x2130(%rbx), %r14
jmp 0x543e
cmpb $0x0, 0x2140(%rbx)
je 0x5401
xorl %eax, %eax
jmp 0x5441
leaq 0x130(%rbx), %r14
movq 0x128(%rbx), %rcx
movl $0x1, %esi
movl $0x2000, %edx           # imm = 0x2000
movq %r14, %rdi
callq 0x44b0
cmpq $0x1fff, %rax           # imm = 0x1FFF
ja 0x5430
movb $0x1, 0x2140(%rbx)
movq %r14, 0x2130(%rbx)
movq %rax, 0x2138(%rbx)
movb (%r14), %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/devinsmith[P]qvdreader/QvdFile.cpp
// Function: QvdFile::advanceBytes(unsigned long)
void QvdFile::advanceBytes(size_t nBytes)
{
  if (_bufLen < nBytes) {
    if (!_eof) {
      readBytes();
    } else {
      return; // throw an error.
    }
  }

  if (_bufLen < nBytes) {
    return; // throw an error.
  }

  _bufLen -= nBytes;
  _dataPtrStart += nBytes;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x2138(%rdi), %rax
cmpq %rsi, %rax
jae 0x54a9
cmpb $0x0, 0x2140(%r14)
jne 0x54bc
leaq 0x130(%r14), %r15
movq 0x128(%r14), %rcx
movl $0x1, %esi
movl $0x2000, %edx           # imm = 0x2000
movq %r15, %rdi
callq 0x44b0
cmpq $0x1fff, %rax           # imm = 0x1FFF
ja 0x549b
movb $0x1, 0x2140(%r14)
movq %r15, 0x2130(%r14)
movq %rax, 0x2138(%r14)
subq %rbx, %rax
jb 0x54bc
movq %rax, 0x2138(%r14)
addq %rbx, 0x2130(%r14)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/devinsmith[P]qvdreader/QvdFile.cpp
// Function: QvdFile::readBytes()
size_t QvdFile::readBytes()
{
  size_t len = fread(_buf, 1, sizeof(_buf), _fp);
  if (len < sizeof(_buf)) {
    _eof = true;
  }
  _dataPtrStart = _buf;
  _bufLen = len;
  return len;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x130(%rdi), %r14
movq 0x128(%rdi), %rcx
movl $0x1, %esi
movl $0x2000, %edx           # imm = 0x2000
movq %r14, %rdi
callq 0x44b0
cmpq $0x1fff, %rax           # imm = 0x1FFF
ja 0x581c
movb $0x1, 0x2140(%rbx)
movq %r14, 0x2130(%rbx)
movq %rax, 0x2138(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/devinsmith[P]qvdreader/QvdFile.cpp
// Function: QvdFile::readByte()
char QvdFile::readByte()
{
  char c;

  if (_bufLen == 0) {
    if (!_eof) {
      readBytes();
    } else {
      return 0; // throw an error.
    }
  }

  _bufLen--;
  c = *_dataPtrStart++;

  return c;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x2138(%rdi), %rax
testq %rax, %rax
je 0x586c
movq 0x2130(%rbx), %r14
decq %rax
movq %rax, 0x2138(%rbx)
leaq 0x1(%r14), %rax
movq %rax, 0x2130(%rbx)
movb (%r14), %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
cmpb $0x0, 0x2140(%rbx)
je 0x5879
xorl %eax, %eax
jmp 0x5864
leaq 0x130(%rbx), %r14
movq 0x128(%rbx), %rcx
movl $0x1, %esi
movl $0x2000, %edx           # imm = 0x2000
movq %r14, %rdi
callq 0x44b0
cmpq $0x1fff, %rax           # imm = 0x1FFF
ja 0x584c
movb $0x1, 0x2140(%rbx)
jmp 0x584c
// File: /workspace/github_cpp_makefile_star2_O3/devinsmith[P]qvdreader/QvdFile.cpp
// Function: QvdFile::readInt32()
int QvdFile::readInt32()
{
  return static_cast<int>(static_cast<unsigned char>(readByte())       |
                          static_cast<unsigned char>(readByte()) <<  8 |
                          static_cast<unsigned char>(readByte()) << 16 |
                          static_cast<unsigned char>(readByte()) << 24);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x42a0
movzbl %al, %ebp
movq %rbx, %rdi
callq 0x42a0
movzbl %al, %r14d
shll $0x8, %r14d
orl %ebp, %r14d
movq %rbx, %rdi
callq 0x42a0
movzbl %al, %ebp
shll $0x10, %ebp
orl %r14d, %ebp
movq %rbx, %rdi
callq 0x42a0
movzbl %al, %eax
shll $0x18, %eax
orl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/devinsmith[P]qvdreader/QvdFile.cpp
// Function: QvdFile::readDouble()
double QvdFile::readDouble()
{
  double d;
  unsigned char c[8];

  for (int i=0; i<8; i++) {
    c[i] = static_cast<unsigned char>(readByte());
  }
  d = *reinterpret_cast<double*>(c);
  return d;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r14d, %r14d
movq %rbx, %rdi
callq 0x42a0
movb %al, (%rsp,%r14)
incq %r14
cmpq $0x8, %r14
jne 0x58fc
movsd (%rsp), %xmm0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/devinsmith[P]qvdreader/QvdFile.cpp
// Function: QvdFile::get_bits_index(unsigned long)
int QvdFile::get_bits_index(size_t nBits)
{
  int i = 0;

  while (nBits > _bitBufferSz) {
    unsigned int byte = (unsigned char)readByte();
    //DEBUG(printf("Requesting %zu bits, but only have %d bits\n", nBits, _bitBufferSz););
    //DEBUG(printf("Read byte 0x%02x\n", byte););
    byte = byte << _bitBufferSz;
    _bitBufferSz += 8;
    _bitBuffer += byte;
  }
  //DEBUG(printf("_bitBufferSz: %d\n", _bitBufferSz););
  int mask = ((1 << nBits) - 1);
  i = (_bitBuffer) & mask;
  _bitBuffer = _bitBuffer >> nBits;
  _bitBufferSz -= nBits;

  return i;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl 0x2148(%rdi), %edx
cmpq %rsi, %rdx
jae 0x5964
movq %rbx, %rdi
callq 0x42a0
movzbl %al, %esi
movl 0x2148(%rbx), %edx
movl %edx, %ecx
shll %cl, %esi
addl $0x8, %edx
movl %edx, 0x2148(%rbx)
addl 0x2144(%rbx), %esi
movl %esi, 0x2144(%rbx)
cmpq %r14, %rdx
jb 0x5933
jmp 0x596a
movl 0x2144(%rbx), %esi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %r14d, %ecx
shll %cl, %eax
notl %eax
andl %esi, %eax
shrl %cl, %esi
movl %esi, 0x2144(%rbx)
subl %r14d, %edx
movl %edx, 0x2148(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/devinsmith[P]qvdreader/QvdTableHeader.cpp
// Function: QvdTableHeader::ParseFields(_xmlNode const*)
void QvdTableHeader::ParseFields(const xmlNode *node)
{
  for (const xmlNode *child = node->children; child; child = child->next) {
    if (child->type == XML_ELEMENT_NODE) {
      xmlChar *nodeContent = xmlNodeGetContent(child);
      if (nodeContent == NULL)
        continue;

      if (strlen((char *)nodeContent) == 0) {
        xmlFree(nodeContent);
        continue;
      }

      if (strcmp((char *)child->name, "QvdFieldHeader") == 0) {
        QvdField field;
        field.ParseXml(child);

        Fields.push_back(field);
      } else {
        printf("Unprocessed Fields tag: %s\n", child->name);
      }
      xmlFree(nodeContent);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq 0x18(%rsi), %r14
testq %r14, %r14
je 0x80bb
movq %rdi, %rbx
addq $0x98, %rbx
xorl %r15d, %r15d
leaq 0x8(%rsp), %r12
cmpl $0x1, 0x8(%r14)
jne 0x80ae
movq %r14, %rdi
callq 0x43a0
testq %rax, %rax
je 0x80ae
movq %rax, %rbp
cmpb $0x0, (%rax)
je 0x80a2
movq 0x10(%r14), %r13
movq %r13, %rdi
leaq 0x2297(%rip), %rsi      # 0xa1f1
callq 0x4460
testl %eax, %eax
je 0x7f79
leaq 0x2296(%rip), %rdi      # 0xa200
movq %r13, %rsi
xorl %eax, %eax
callq 0x4030
jmp 0x80a2
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %r15, 0x10(%rsp)
movb %r15b, 0x18(%rsp)
movq %r15, 0x28(%rsp)
movl %r15d, 0x30(%rsp)
leaq 0x48(%rsp), %rax
movq %rax, 0x38(%rsp)
movq %r15, 0x40(%rsp)
movb %r15b, 0x48(%rsp)
movq %r15, 0x58(%rsp)
leaq 0x70(%rsp), %rax
movq %rax, 0x60(%rsp)
movq %r15, 0x68(%rsp)
movb %r15b, 0x70(%rsp)
leaq 0x90(%rsp), %rax
movq %rax, 0x80(%rsp)
movq %r15, 0x88(%rsp)
movb %r15b, 0x90(%rsp)
movq %r15, 0xa0(%rsp)
movl %r15d, 0xa8(%rsp)
leaq 0xb0(%rsp), %rax
movq %r15, 0x10(%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq %r12, %rdi
movq %r14, %rsi
callq 0x4130
movq %rbx, %rdi
movq %r12, %rsi
callq 0x40a0
leaq 0xb0(%rsp), %rdi
callq 0x4220
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x804e
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x4360
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x806a
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x4360
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x8086
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x4360
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x80a2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4360
movq %rbp, %rdi
movq 0x4f34(%rip), %rax      # 0xcfe0
callq *(%rax)
movq 0x30(%r14), %r14
testq %r14, %r14
jne 0x7f24
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4060
movq %rbx, %rdi
callq 0x45b0
// File: /workspace/github_cpp_makefile_star2_O3/devinsmith[P]qvdreader/QvdTableHeader.cpp
// Function: QvdTableHeader::ParseLineage(_xmlNode const*)
void QvdTableHeader::ParseLineage(const xmlNode *node)
{
  for (const xmlNode *child = node->children; child; child = child->next) {
    if (child->type == XML_ELEMENT_NODE) {
      xmlChar *nodeContent = xmlNodeGetContent(child);
      if (nodeContent == NULL)
        continue;

      if (strlen((char *)nodeContent) == 0) {
        xmlFree(nodeContent);
        continue;
      }

      if (strcmp((char *)child->name, "LineageInfo") == 0) {
        QvdLineageInfo lin;
        lin.ParseXml(child);

        Lineages.push_back(lin);
      } else {
        printf("Unprocessed Lineage tag: %s\n", child->name);
      }
      xmlFree(nodeContent);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq 0x18(%rsi), %r14
testq %r14, %r14
je 0x81ef
movq %rdi, %rbx
addq $0xb0, %rbx
movq 0x4ed2(%rip), %r12      # 0xcfe0
leaq 0x8(%rsp), %r15
cmpl $0x1, 0x8(%r14)
jne 0x81e2
movq %r14, %rdi
callq 0x43a0
testq %rax, %rax
je 0x81e2
movq %rax, %rbp
cmpb $0x0, (%rax)
je 0x81db
movq 0x10(%r14), %r13
movq %r13, %rdi
leaq 0x20d3(%rip), %rsi      # 0xa21c
callq 0x4460
testl %eax, %eax
je 0x8165
leaq 0x20cf(%rip), %rdi      # 0xa228
movq %r13, %rsi
xorl %eax, %eax
callq 0x4030
jmp 0x81db
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
xorl %ecx, %ecx
movq %rcx, 0x10(%rsp)
movb %cl, 0x18(%rsp)
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq %rcx, 0x30(%rsp)
movb %cl, 0x38(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0x4080
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4350
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x81bf
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4360
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x81db
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4360
movq %rbp, %rdi
callq *(%r12)
movq 0x30(%r14), %r14
testq %r14, %r14
jne 0x8113
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4650
movq %rbx, %rdi
callq 0x45b0
nop
// File: /workspace/github_cpp_makefile_star2_O3/devinsmith[P]qvdreader/utils/conversions.cpp
// Function: utils::mem_to_uint(char const*, unsigned long)
unsigned int mem_to_uint(const char *buf, size_t len)
{
  unsigned int n = 0;

  while (len--) {
    n = n * 10 + *buf++ - '0';
  }

  return n;
}

// Assembly:
testq %rsi, %rsi
je 0x8ebb
xorl %ecx, %ecx
xorl %eax, %eax
leal (%rax,%rax,4), %eax
movsbl (%rdi,%rcx), %edx
leal (%rdx,%rax,2), %eax
addl $-0x30, %eax
incq %rcx
cmpq %rcx, %rsi
jne 0x8ea5
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/devinsmith[P]qvdreader/utils/conversions.cpp
// Function: utils::mem_to_int(char const*, unsigned long)
int mem_to_int(const char *buf, size_t len)
{
  bool neg = false;
  int n = 0;

  if (*buf == '-')
    neg = true;

  while (len--) {
    n = n * 10 + *buf++ - '0';
  }

  return neg ? -n : n;
}

// Assembly:
movb (%rdi), %cl
testq %rsi, %rsi
je 0x8ee2
xorl %eax, %eax
xorl %edx, %edx
leal (%rdx,%rdx,4), %edx
movsbl (%rdi,%rax), %r8d
leal (%r8,%rdx,2), %edx
addl $-0x30, %edx
incq %rax
cmpq %rax, %rsi
jne 0x8ec9
jmp 0x8ee4
xorl %edx, %edx
movl %edx, %eax
negl %eax
cmpb $0x2d, %cl
cmovnel %edx, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/devinsmith[P]qvdreader/utils/dumphex.cpp
// Function: dump_hex(int, void*, unsigned long)
void
dump_hex(int lvl, void *vp, size_t len)
{
	char linebuf[80];
	size_t i;
	int linebuf_dirty = 0;
	unsigned char *p = (unsigned char *)vp;

	memset(linebuf, ' ', sizeof(linebuf));
	linebuf[70] = '\0';

	for (i = 0; i < len; i++) {
		int x = i % 16;
		int ch = (unsigned)p[i];
		char hex[20];

		if (x >= 8)
			x = x * 3 + 1;
		else
			x = x * 3;
		snprintf(hex, sizeof(hex), "%02x", ch);
		linebuf[x] = hex[0];
		linebuf[x + 1] = hex[1];

		if (isprint(ch))
			linebuf[52 + (i % 16)] = ch;
		else
			linebuf[52 + (i % 16)] = '.';

		linebuf_dirty = 1;
		if (!((i + 1) % 16)) {
			fprintf(stderr, "%s\n", linebuf);
			memset(linebuf, ' ', sizeof(linebuf));
			linebuf[70] = '\0';
			linebuf_dirty = 0;
		}
	}
	if (linebuf_dirty == 1)
		fprintf(stderr, "%s\n", linebuf);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movaps 0x13cb(%rip), %xmm0     # 0xa2d0
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
movb $0x0, 0x46(%rsp)
testq %rdx, %rdx
je 0x8fe1
movq %rdx, %rbx
movq %rsi, %r14
xorl %r12d, %r12d
movl %r12d, %r15d
andl $0xf, %r15d
movzbl (%r14,%r12), %ebp
cmpq $0x8, %r15
leal (%r15,%r15,2), %r13d
sbbq $-0x1, %r13
movl $0x14, %esi
leaq 0x50(%rsp), %rdi
leaq 0x1383(%rip), %rdx      # 0xa2e0
movl %ebp, %ecx
xorl %eax, %eax
callq 0x4520
movzwl 0x50(%rsp), %eax
movw %ax, (%rsp,%r13)
movl %ebp, %edi
callq 0x45c0
movl $0x2e, %ecx
testl %eax, %eax
je 0x8f82
movl %ebp, %ecx
movq %rsp, %rax
movb %cl, 0x34(%r15,%rax)
incq %r12
testb $0xf, %r12b
je 0x8f9a
cmpq %r12, %rbx
jne 0x8f34
jmp 0x8fdb
movq 0x4037(%rip), %rax      # 0xcfd8
movq (%rax), %rdi
leaq 0x1296(%rip), %rsi      # 0xa241
movq %rsp, %rdx
xorl %eax, %eax
callq 0x4470
movaps 0x1314(%rip), %xmm0     # 0xa2d0
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, (%rsp)
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x30(%rsp)
movb $0x0, 0x46(%rsp)
jmp 0x8f93
testb $0xf, %r12b
jne 0x8ff0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3fe1(%rip), %rax      # 0xcfd8
movq (%rax), %rdi
leaq 0x1240(%rip), %rsi      # 0xa241
movq %rsp, %rdx
xorl %eax, %eax
callq 0x4470
jmp 0x8fe1
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/test-1.c
// Function: test_int
uint32_t test_int(uint32_t n, uint32_t x0)
{
	uint32_t i, x, z = 0;
	tommy_allocator alloc;
	tommy_trie h;
	 tommy_allocator_init(&alloc, TOMMY_TRIE_BLOCK_SIZE, TOMMY_TRIE_BLOCK_SIZE);
	tommy_trie_init(&h, &alloc);
	for (i = 0, x = x0; i < n; ++i) {
		uint32_t key;
		intcell_t *p;
		x = hash32(x);
		key = get_key(n, x);
		p = tommy_trie_search(&h, key);
		if (!p) {
			p = malloc(sizeof(intcell_t));
			p->key = key, p->cnt = 1;
			tommy_trie_insert(&h, &p->node, p, p->key);
			++z;
		} else z += ++p->cnt;
	}
	fprintf(stderr, "# unique keys: %d; checksum: %u\n", tommy_trie_count(&h), z);
	x = tommy_trie_count(&h);
	tommy_allocator_done(&alloc);
	return x;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movl %esi, %r14d
movl %edi, %ebx
movq %rsp, %r15
pushq $0x40
popq %rdx
movq %r15, %rdi
movq %rdx, %rsi
callq 0x1a6f
leaq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0x2812
xorl %ebp, %ebp
testl %ebx, %ebx
je 0x14df
movl %ebx, %r12d
shrl $0x2, %r12d
xorl %ebp, %ebp
leaq 0x28(%rsp), %r15
movl %r14d, %eax
shll $0xf, %eax
notl %eax
addl %r14d, %eax
movl %eax, %ecx
shrl $0xa, %ecx
xorl %eax, %ecx
leal (%rcx,%rcx,8), %eax
movl %eax, %ecx
shrl $0x6, %ecx
xorl %eax, %ecx
movl %ecx, %eax
shll $0xb, %eax
notl %eax
addl %ecx, %eax
movl %eax, %r14d
shrl $0x10, %r14d
xorl %eax, %r14d
movl %r14d, %eax
xorl %edx, %edx
divl %r12d
movl %edx, %eax
shll $0xf, %eax
notl %eax
addl %edx, %eax
movl %eax, %ecx
shrl $0xa, %ecx
xorl %eax, %ecx
leal (%rcx,%rcx,8), %eax
movl %eax, %ecx
shrl $0x6, %ecx
xorl %eax, %ecx
movl %ecx, %eax
shll $0xb, %eax
notl %eax
addl %ecx, %eax
movl %eax, %r13d
shrl $0x10, %r13d
xorl %eax, %r13d
movq %r15, %rdi
movl %r13d, %esi
callq 0x2b6c
testq %rax, %rax
je 0x14ae
movq 0x10(%rax), %rcx
testq %rcx, %rcx
je 0x14ae
movl 0x4(%rcx), %eax
incl %eax
movl %eax, 0x4(%rcx)
jmp 0x14d5
pushq $0x28
popq %rdi
callq 0x1090
movl %r13d, (%rax)
movl $0x1, 0x4(%rax)
leaq 0x8(%rax), %rsi
movq %r15, %rdi
movq %rax, %rdx
movl %r13d, %ecx
callq 0x2837
pushq $0x1
popq %rax
addl %eax, %ebp
decl %ebx
jne 0x1427
movq 0x5b12(%rip), %rax      # 0x6ff8
movq (%rax), %rdi
movl 0x128(%rsp), %edx
leaq 0x2b7e(%rip), %rsi      # 0x4075
movl %ebp, %ecx
xorl %eax, %eax
callq 0x1080
movl 0x128(%rsp), %ebx
movq %rsp, %rdi
callq 0x1aaa
movl %ebx, %eax
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyarray.c
// Function: tommy_array_init
void tommy_array_init(tommy_array* array)
{
	tommy_uint_t i;

	/* fixed initial size */
	array->bucket_bit = TOMMY_ARRAY_BIT;
	array->bucket_max = 1 << array->bucket_bit;
	array->bucket[0] = tommy_cast(void**, tommy_calloc(array->bucket_max, sizeof(void*)));
	for (i = 1; i < TOMMY_ARRAY_BIT; ++i)
		array->bucket[i] = array->bucket[0];

	array->count = 0;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movabsq $0x4000000006, %rax     # imm = 0x4000000006
movq %rax, 0x100(%rdi)
movl $0x40, %edi
movl $0x8, %esi
callq 0x1070
movq %rax, (%rbx)
xorl %ecx, %ecx
movdqa 0x2543(%rip), %xmm0     # 0x4100
movdqa 0x254b(%rip), %xmm1     # 0x4110
movdqa 0x2553(%rip), %xmm2     # 0x4120
pshufd $0xf5, %xmm2, %xmm3     # xmm3 = xmm2[1,1,3,3]
movq %rcx, %xmm4
pshufd $0x44, %xmm4, %xmm4     # xmm4 = xmm4[0,1,0,1]
por %xmm0, %xmm4
pxor %xmm1, %xmm4
movdqa %xmm2, %xmm5
pcmpgtd %xmm4, %xmm5
pshufd $0xf5, %xmm4, %xmm4     # xmm4 = xmm4[1,1,3,3]
pcmpeqd %xmm3, %xmm4
pand %xmm5, %xmm4
movd %xmm4, %edx
testb $0x1, %dl
je 0x1c07
movq %rax, 0x8(%rbx,%rcx,8)
pextrw $0x4, %xmm4, %edx
testb $0x1, %dl
je 0x1c16
movq %rax, 0x10(%rbx,%rcx,8)
addq $0x2, %rcx
cmpq $0x6, %rcx
jne 0x1bd2
movl $0x0, 0x108(%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyarray.c
// Function: tommy_array_done
void tommy_array_done(tommy_array* array)
{
	tommy_uint_t i;

	tommy_free(array->bucket[0]);
	for (i = TOMMY_ARRAY_BIT; i < array->bucket_bit; ++i) {
		void** segment = array->bucket[i];
		tommy_free(&segment[((tommy_ptrdiff_t)1) << i]);
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x1030
cmpl $0x7, 0x100(%rbx)
jb 0x1c70
movl $0x6, %r14d
movl $0x1, %edi
movl %r14d, %ecx
shlq %cl, %rdi
shlq $0x3, %rdi
addq (%rbx,%r14,8), %rdi
callq 0x1030
incq %r14
movl 0x100(%rbx), %eax
cmpq %rax, %r14
jb 0x1c4a
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyarray.c
// Function: tommy_array_grow
void tommy_array_grow(tommy_array* array, tommy_count_t count)
{
	if (array->count >= count)
		return;
	array->count = count;

	while (count > array->bucket_max) {
		void** segment;

		/* allocate one more segment */
		segment = tommy_cast(void**, tommy_calloc(array->bucket_max, sizeof(void*)));

		/* store it adjusting the offset */
		/* cast to ptrdiff_t to ensure to get a negative value */
		array->bucket[array->bucket_bit] = &segment[-(tommy_ptrdiff_t)array->bucket_max];

		++array->bucket_bit;
		array->bucket_max = 1 << array->bucket_bit;
	}
}

// Assembly:
cmpl %esi, 0x108(%rdi)
jae 0x1ce9
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movl %esi, 0x108(%rdi)
movl 0x104(%rdi), %eax
cmpl %esi, %eax
jae 0x1cdf
movl 0x100(%rbx), %r14d
movl %eax, %r15d
movl $0x8, %esi
movq %r15, %rdi
callq 0x1070
shlq $0x3, %r15
subq %r15, %rax
movl %r14d, %ecx
movq %rax, (%rbx,%rcx,8)
incl %r14d
movl $0x1, %eax
movl %r14d, %ecx
shll %cl, %eax
cmpl %ebp, %eax
jb 0x1ca3
movl %r14d, 0x100(%rbx)
movl %eax, 0x104(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyarrayof.c
// Function: tommy_arrayof_init
void tommy_arrayof_init(tommy_arrayof* array, tommy_size_t element_size)
{
	tommy_uint_t i;

	/* fixed initial size */
	array->element_size = element_size;
	array->bucket_bit = TOMMY_ARRAYOF_BIT;
	array->bucket_max = 1 << array->bucket_bit;
	array->bucket[0] = tommy_calloc(array->bucket_max, array->element_size);
	for (i = 1; i < TOMMY_ARRAYOF_BIT; ++i)
		array->bucket[i] = array->bucket[0];

	array->count = 0;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq %rsi, 0x100(%rdi)
movabsq $0x4000000006, %rax     # imm = 0x4000000006
movq %rax, 0x108(%rdi)
movl $0x40, %edi
callq 0x1070
movq %rax, (%rbx)
xorl %ecx, %ecx
movdqa 0x23d8(%rip), %xmm0     # 0x4100
movdqa 0x23e0(%rip), %xmm1     # 0x4110
movdqa 0x23e8(%rip), %xmm2     # 0x4120
pshufd $0xf5, %xmm2, %xmm3     # xmm3 = xmm2[1,1,3,3]
movq %rcx, %xmm4
pshufd $0x44, %xmm4, %xmm4     # xmm4 = xmm4[0,1,0,1]
por %xmm0, %xmm4
pxor %xmm1, %xmm4
movdqa %xmm2, %xmm5
pcmpgtd %xmm4, %xmm5
pshufd $0xf5, %xmm4, %xmm4     # xmm4 = xmm4[1,1,3,3]
pcmpeqd %xmm3, %xmm4
pand %xmm5, %xmm4
movd %xmm4, %edx
testb $0x1, %dl
je 0x1d72
movq %rax, 0x8(%rbx,%rcx,8)
pextrw $0x4, %xmm4, %edx
testb $0x1, %dl
je 0x1d81
movq %rax, 0x10(%rbx,%rcx,8)
addq $0x2, %rcx
cmpq $0x6, %rcx
jne 0x1d3d
movl $0x0, 0x110(%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyarrayof.c
// Function: tommy_arrayof_done
void tommy_arrayof_done(tommy_arrayof* array)
{
	tommy_uint_t i;

	tommy_free(array->bucket[0]);
	for (i = TOMMY_ARRAYOF_BIT; i < array->bucket_bit; ++i) {
		unsigned char* segment = tommy_cast(unsigned char*, array->bucket[i]);
		tommy_free(segment + (((tommy_ptrdiff_t)1) << i) * array->element_size);
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x1030
cmpl $0x7, 0x108(%rbx)
jb 0x1dd9
movl $0x6, %r14d
movq 0x100(%rbx), %rdi
movl %r14d, %ecx
shlq %cl, %rdi
addq (%rbx,%r14,8), %rdi
callq 0x1030
incq %r14
movl 0x108(%rbx), %eax
cmpq %rax, %r14
jb 0x1db5
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyarrayof.c
// Function: tommy_arrayof_grow
void tommy_arrayof_grow(tommy_arrayof* array, tommy_count_t count)
{
	if (array->count >= count)
		return;
	array->count = count;

	while (count > array->bucket_max) {
		unsigned char* segment;

		/* allocate one more segment */
		segment = tommy_cast(unsigned char*, tommy_calloc(array->bucket_max, array->element_size));

		/* store it adjusting the offset */
		/* cast to ptrdiff_t to ensure to get a negative value */
		array->bucket[array->bucket_bit] = segment - (tommy_ptrdiff_t)array->bucket_max * array->element_size;

		++array->bucket_bit;
		array->bucket_max = 1 << array->bucket_bit;
	}
}

// Assembly:
cmpl %esi, 0x110(%rdi)
jae 0x1e56
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movl %esi, 0x110(%rdi)
movl 0x10c(%rdi), %eax
cmpl %esi, %eax
jae 0x1e4e
movq 0x100(%rbx), %r15
movl 0x108(%rbx), %r14d
movl %eax, %r12d
movq %r12, %rdi
movq %r15, %rsi
callq 0x1070
imulq %r15, %r12
subq %r12, %rax
movl %r14d, %ecx
movq %rax, (%rbx,%rcx,8)
incl %r14d
movl $0x1, %eax
movl %r14d, %ecx
shll %cl, %eax
cmpl %ebp, %eax
jb 0x1e14
movl %r14d, 0x108(%rbx)
movl %eax, 0x10c(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyarrayblk.c
// Function: tommy_arrayblk_done
void tommy_arrayblk_done(tommy_arrayblk* array)
{
	tommy_count_t i;

	for (i = 0; i < tommy_array_size(&array->block); ++i)
		tommy_free(tommy_array_get(&array->block, i));

	tommy_array_done(&array->block);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, 0x108(%rdi)
je 0x1f41
xorl %r14d, %r14d
movl %r14d, %eax
orl $0x1, %eax
bsrl %eax, %eax
movq (%rbx,%rax,8), %rax
movq (%rax,%r14,8), %rdi
callq 0x1030
incq %r14
movl 0x108(%rbx), %eax
cmpq %rax, %r14
jb 0x1f1d
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1c2c
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyarrayblk.c
// Function: tommy_arrayblk_grow
void tommy_arrayblk_grow(tommy_arrayblk* array, tommy_count_t count)
{
	tommy_count_t block_max;
	tommy_count_t block_mac;

	if (array->count >= count)
		return;
	array->count = count;

	block_max = (count + TOMMY_ARRAYBLK_SIZE - 1) / TOMMY_ARRAYBLK_SIZE;
	block_mac = tommy_array_size(&array->block);

	if (block_mac < block_max) {
		/* grow the block array */
		tommy_array_grow(&array->block, block_max);

		/* allocate new blocks */
		while (block_mac < block_max) {
			void** ptr = tommy_cast(void**, tommy_calloc(TOMMY_ARRAYBLK_SIZE, sizeof(void*)));

			/* set the new block */
			tommy_array_set(&array->block, block_mac, ptr);

			++block_mac;
		}
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
cmpl %esi, 0x110(%rdi)
jae 0x1fc7
movl %esi, %ebx
movq %rdi, %r14
movl %esi, 0x110(%rdi)
addl $0xfff, %ebx            # imm = 0xFFF
shrl $0xc, %ebx
movl 0x108(%rdi), %r15d
cmpl %r15d, %ebx
jbe 0x1fc7
movq %r14, %rdi
movl %ebx, %esi
callq 0x1c78
movl 0x108(%r14), %r12d
cmpl %r12d, %r15d
cmoval %r15d, %r12d
subl %r15d, %ebx
movl $0x1000, %edi           # imm = 0x1000
movl $0x8, %esi
callq 0x1070
cmpq %r15, %r12
je 0x1fd3
movl %r15d, %ecx
orl $0x1, %ecx
bsrl %ecx, %ecx
movq (%r14,%rcx,8), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
decl %ebx
jne 0x1f9b
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x2297(%rip), %rdi      # 0x4271
leaq 0x22a3(%rip), %rsi      # 0x4284
leaq 0x22ab(%rip), %rcx      # 0x4293
movl $0x61, %edx
callq 0x1050
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyarrayblkof.c
// Function: tommy_arrayblkof_done
void tommy_arrayblkof_done(tommy_arrayblkof* array)
{
	tommy_count_t i;

	for (i = 0; i < tommy_array_size(&array->block); ++i)
		tommy_free(tommy_array_get(&array->block, i));

	tommy_array_done(&array->block);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, 0x108(%rdi)
je 0x20f7
xorl %r14d, %r14d
movl %r14d, %eax
orl $0x1, %eax
bsrl %eax, %eax
movq (%rbx,%rax,8), %rax
movq (%rax,%r14,8), %rdi
callq 0x1030
incq %r14
movl 0x108(%rbx), %eax
cmpq %rax, %r14
jb 0x20d3
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1c2c
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyarrayblkof.c
// Function: tommy_arrayblkof_grow
void tommy_arrayblkof_grow(tommy_arrayblkof* array, tommy_count_t count)
{
	tommy_count_t block_max;
	tommy_count_t block_mac;

	if (array->count >= count)
		return;
	array->count = count;

	block_max = (count + TOMMY_ARRAYBLKOF_SIZE - 1) / TOMMY_ARRAYBLKOF_SIZE;
	block_mac = tommy_array_size(&array->block);

	if (block_mac < block_max) {
		/* grow the block array */
		tommy_array_grow(&array->block, block_max);

		/* allocate new blocks */
		while (block_mac < block_max) {
			void** ptr = tommy_cast(void**, tommy_calloc(TOMMY_ARRAYBLKOF_SIZE, array->element_size));

			/* set the new block */
			tommy_array_set(&array->block, block_mac, ptr);

			++block_mac;
		}
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
cmpl %esi, 0x118(%rdi)
jae 0x2183
movl %esi, %ebx
movq %rdi, %r14
movl %esi, 0x118(%rdi)
addl $0xfff, %ebx            # imm = 0xFFF
shrl $0xc, %ebx
movl 0x108(%rdi), %r12d
cmpl %r12d, %ebx
jbe 0x2183
movq %r14, %rdi
movl %ebx, %esi
callq 0x1c78
movq 0x110(%r14), %r15
movl 0x108(%r14), %r13d
cmpl %r13d, %r12d
cmoval %r12d, %r13d
subl %r12d, %ebx
movl $0x1000, %edi           # imm = 0x1000
movq %r15, %rsi
callq 0x1070
cmpq %r12, %r13
je 0x218d
movl %r12d, %ecx
orl $0x1, %ecx
bsrl %ecx, %ecx
movq (%r14,%rcx,8), %rcx
movq %rax, (%rcx,%r12,8)
incq %r12
decl %ebx
jne 0x2159
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x20dd(%rip), %rdi      # 0x4271
leaq 0x20e9(%rip), %rsi      # 0x4284
leaq 0x20f1(%rip), %rcx      # 0x4293
movl $0x61, %edx
callq 0x1050
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommytree.c
// Function: tommy_tree_insert
void* tommy_tree_insert(tommy_tree* tree, tommy_tree_node* node, void* data)
{
	tommy_tree_node* insert = node;

	insert->data = data;
	insert->prev = 0;
	insert->next = 0;
	insert->key = 0;

	tree->root = tommy_tree_insert_node(tree->cmp, tree->root, &insert);

	if (insert == node)
		++tree->count;

	return insert->data;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %r15
movq %rsi, (%r15)
movq %rdx, 0x10(%rsi)
movl $0x0, 0x18(%rsi)
xorps %xmm0, %xmm0
movups %xmm0, (%rsi)
movq (%rdi), %rsi
movq 0x10(%rdi), %rdi
movq %r15, %rdx
callq 0x2579
movq %rax, (%rbx)
movq (%r15), %rax
cmpq %r14, %rax
jne 0x256b
incl 0x8(%rbx)
movq 0x10(%rax), %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommytree.c
// Function: tommy_tree_insert_node
static tommy_tree_node* tommy_tree_insert_node(tommy_compare_func* cmp, tommy_tree_node* root, tommy_tree_node** let)
{
	int c;

	if (!root)
		return *let;

	c = cmp((*let)->data, root->data);

	if (c < 0) {
		root->prev = tommy_tree_insert_node(cmp, root->prev, let);
		return tommy_tree_balance(root);
	}

	if (c > 0) {
		root->next = tommy_tree_insert_node(cmp, root->next, let);
		return tommy_tree_balance(root);
	}

	/* already present, set the return pointer */
	*let = root;

	return root;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq (%rdx), %rax
testq %rsi, %rsi
je 0x25b3
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq 0x10(%rax), %rdi
movq 0x10(%rsi), %rsi
callq *%r15
testl %eax, %eax
js 0x25b8
je 0x25d8
movq (%rbx), %rsi
movq %r15, %rdi
movq %r14, %rdx
callq 0x2579
movq %rax, (%rbx)
jmp 0x25cb
movq %rax, %rbx
jmp 0x25db
movq 0x8(%rbx), %rsi
movq %r15, %rdi
movq %r14, %rdx
callq 0x2579
movq %rax, 0x8(%rbx)
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x381d
movq %rbx, (%r14)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommytree.c
// Function: tommy_tree_remove
void* tommy_tree_remove(tommy_tree* tree, void* data)
{
	tommy_tree_node* node = 0;

	tree->root = tommy_tree_remove_node(tree->cmp, tree->root, data, &node);

	if (!node)
		return 0;

	--tree->count;

	return node->data;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rdx
movq %rdi, %rbx
movq %rsp, %r14
movq $0x0, (%r14)
movq (%rdi), %rsi
movq 0x10(%rdi), %rdi
movq %r14, %rcx
callq 0x2625
movq %rax, (%rbx)
movq (%r14), %rax
testq %rax, %rax
je 0x261b
decl 0x8(%rbx)
movq 0x10(%rax), %rax
jmp 0x261d
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommytree.c
// Function: tommy_tree_remove_node
static tommy_tree_node* tommy_tree_remove_node(tommy_compare_func* cmp, tommy_tree_node* root, void* data, tommy_tree_node** let)
{
	int c;

	if (!root)
		return 0;

	c = cmp(data, root->data);

	if (c < 0) {
		root->prev = tommy_tree_remove_node(cmp, root->prev, data, let);
		return tommy_tree_balance(root);
	}

	if (c > 0) {
		root->next = tommy_tree_remove_node(cmp, root->next, data, let);
		return tommy_tree_balance(root);
	}

	/* found */
	*let = root;

	return tommy_tree_move_right(root->prev, root->next);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x2664
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r12
movq 0x10(%rsi), %rsi
movq %rdx, %rdi
callq *%r12
testl %eax, %eax
js 0x2672
je 0x269b
movq (%rbx), %rsi
movq %r12, %rdi
movq %r15, %rdx
movq %r14, %rcx
callq 0x2625
movq %rax, (%rbx)
jmp 0x2688
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x8(%rbx), %rsi
movq %r12, %rdi
movq %r15, %rdx
movq %r14, %rcx
callq 0x2625
movq %rax, 0x8(%rbx)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x381d
movq %rbx, (%r14)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x3943
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommytree.c
// Function: tommy_tree_search
void* tommy_tree_search(tommy_tree* tree, void* data)
{
	tommy_tree_node* node = tommy_tree_search_node(tree->cmp, tree->root, data);

	if (!node)
		return 0;

	return node->data;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq (%rdi), %r15
testq %r15, %r15
je 0x26ee
movq %rsi, %r14
movq 0x10(%rdi), %r12
xorl %ebx, %ebx
movq 0x10(%r15), %rsi
movq %r14, %rdi
callq *%r12
testl %eax, %eax
js 0x26e0
jne 0x26e4
jmp 0x26f2
addq $0x8, %r15
movq (%r15), %r15
testq %r15, %r15
jne 0x26ce
jmp 0x26f6
xorl %ebx, %ebx
jmp 0x26f6
movq 0x10(%r15), %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommytree.c
// Function: tommy_tree_search_compare
void* tommy_tree_search_compare(tommy_tree* tree, tommy_compare_func* cmp, void* cmp_arg)
{
	tommy_tree_node* node = tommy_tree_search_node(cmp, tree->root, cmp_arg);

	if (!node)
		return 0;

	return node->data;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq (%rdi), %r12
testq %r12, %r12
je 0x273f
movq %rdx, %r14
movq %rsi, %r15
xorl %ebx, %ebx
movq 0x10(%r12), %rsi
movq %r14, %rdi
callq *%r15
testl %eax, %eax
js 0x2730
jne 0x2734
jmp 0x2743
addq $0x8, %r12
movq (%r12), %r12
testq %r12, %r12
jne 0x271d
jmp 0x2748
xorl %ebx, %ebx
jmp 0x2748
movq 0x10(%r12), %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommytree.c
// Function: tommy_tree_foreach_node
static void tommy_tree_foreach_node(tommy_tree_node* root, tommy_foreach_func* func)
{
	tommy_tree_node* next;

	if (!root)
		return;

	tommy_tree_foreach_node(root->prev, func);

	/* make a copy in case func is free() */
	next = root->next;

	func(root->data);

	tommy_tree_foreach_node(next, func);
}

// Assembly:
testq %rdi, %rdi
je 0x27be
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%r14), %rdi
movq %rbx, %rsi
callq 0x278c
movq (%r14), %r15
movq 0x10(%r14), %rdi
callq *%rbx
movq %r15, %r14
testq %r15, %r15
jne 0x279c
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommytree.c
// Function: tommy_tree_foreach_arg_node
static void tommy_tree_foreach_arg_node(tommy_tree_node* root, tommy_foreach_arg_func* func, void* arg)
{
	tommy_tree_node* next;

	if (!root)
		return;

	tommy_tree_foreach_arg_node(root->prev, func, arg);

	/* make a copy in case func is free() */
	next = root->next;

	func(arg, root->data);

	tommy_tree_foreach_arg_node(next, func, arg);
}

// Assembly:
testq %rdi, %rdi
je 0x2809
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x8(%r15), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x27c4
movq (%r15), %r12
movq 0x10(%r15), %rsi
movq %rbx, %rdi
callq *%r14
movq %r12, %r15
testq %r12, %r12
jne 0x27da
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommytrie.c
// Function: tommy_trie_insert
void tommy_trie_insert(tommy_trie* trie, tommy_trie_node* node, void* data, tommy_key_t key)
{
	tommy_trie_node** let_ptr;

	node->data = data;
	node->key = key;

	let_ptr = &trie->bucket[key >> TOMMY_TRIE_BUCKET_SHIFT];

	trie_bucket_insert(trie, TOMMY_TRIE_BUCKET_SHIFT, let_ptr, node, key);

	++trie->count;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rdx, 0x10(%rsi)
movl %ecx, 0x18(%rsi)
movl %ecx, %eax
shrl $0x1b, %eax
leaq (%rdi,%rax,8), %r14
movq (%r14), %r13
testq %r13, %r13
je 0x297f
movl %ecx, %ebp
movl $0x1b, %r15d
testb $0x1, %r13b
je 0x28a1
movq %r13, %rdx
movl %ebp, %eax
movl %r15d, %ecx
shrl %cl, %eax
andl $0x7, %eax
movq -0x1(%rdx,%rax,8), %r13
movq %rdx, %rcx
decq %rcx
testq %r13, %r13
je 0x2966
addl $-0x3, %r15d
movq %r13, %rdx
testb $0x1, %r13b
jne 0x2872
leaq (%rcx,%rax,8), %r14
cmpl %ebp, 0x18(%r13)
jne 0x28c3
movq 0x8(%r13), %rax
movq %rax, 0x8(%rsi)
movq %rsi, 0x8(%r13)
movq $0x0, (%rsi)
movq 0x8(%rsi), %r14
jmp 0x298a
movq %rsi, (%rsp)
movq 0x108(%rbx), %rdi
callq 0x1adf
movq %rax, %r12
incl 0x104(%rbx)
incq %rax
movq %rax, (%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%r12)
movups %xmm0, 0x20(%r12)
movups %xmm0, 0x10(%r12)
movups %xmm0, (%r12)
movl 0x18(%r13), %edx
movl %r15d, %ecx
shrl %cl, %edx
movl %ebp, %esi
shrl %cl, %esi
andl $0x7, %edx
andl $0x7, %esi
cmpl %esi, %edx
jne 0x296c
addl $-0x3, %r15d
movl %edx, %r14d
movq 0x108(%rbx), %rdi
callq 0x1adf
xorps %xmm0, %xmm0
incl 0x104(%rbx)
leaq 0x1(%rax), %rcx
movq %rcx, (%r12,%r14,8)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
movl 0x18(%r13), %edx
movl %r15d, %ecx
shrl %cl, %edx
andl $0x7, %edx
movl %ebp, %esi
shrl %cl, %esi
andl $0x7, %esi
addl $-0x3, %r15d
movq %rax, %r12
cmpl %esi, %edx
je 0x2917
jmp 0x296f
leaq (%rcx,%rax,8), %r14
jmp 0x297f
movq %r12, %rax
movl %edx, %ecx
movq %r13, (%rax,%rcx,8)
movl %esi, %ecx
leaq (%rax,%rcx,8), %r14
movq (%rsp), %rsi
movq %rsi, 0x8(%rsi)
movq $0x0, (%rsi)
movq %rsi, (%r14)
incl 0x100(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommytrie.c
// Function: tommy_trie_remove
void* tommy_trie_remove(tommy_trie* trie, tommy_key_t key)
{
	tommy_trie_node* ret;
	tommy_trie_node** let_ptr;

	let_ptr = &trie->bucket[key >> TOMMY_TRIE_BUCKET_SHIFT];

	ret = trie_bucket_remove_existing(trie, TOMMY_TRIE_BUCKET_SHIFT, let_ptr, 0, key);

	if (!ret)
		return 0;

	--trie->count;

	return ret->data;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ecx
movq %rdi, %rbx
movl %esi, %eax
shrl $0x1b, %eax
leaq (%rdi,%rax,8), %rsi
xorl %r14d, %r14d
xorl %edx, %edx
callq 0x29d8
testq %rax, %rax
je 0x29cd
decl 0x100(%rbx)
movq 0x10(%rax), %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommytrie.c
// Function: tommy_trie_remove_existing
void* tommy_trie_remove_existing(tommy_trie* trie, tommy_trie_node* node)
{
	tommy_trie_node* ret;
	tommy_key_t key = node->key;
	tommy_trie_node** let_ptr;

	let_ptr = &trie->bucket[key >> TOMMY_TRIE_BUCKET_SHIFT];

	ret = trie_bucket_remove_existing(trie, TOMMY_TRIE_BUCKET_SHIFT, let_ptr, node, key);

	/* the element removed must match the one passed */
	assert(ret == node);

	--trie->count;

	return ret->data;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl 0x18(%rsi), %ecx
movl %ecx, %eax
shrl $0x1b, %eax
leaq (%rdi,%rax,8), %rsi
movq %r14, %rdx
callq 0x29d8
cmpq %r14, %rax
jne 0x2b4d
decl 0x100(%rbx)
movq 0x10(%rax), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x1656(%rip), %rdi      # 0x41aa
leaq 0x165b(%rip), %rsi      # 0x41b6
leaq 0x1662(%rip), %rcx      # 0x41c4
movl $0x118, %edx            # imm = 0x118
callq 0x1050
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommytrieinp.c
// Function: tommy_trie_inplace_insert
void tommy_trie_inplace_insert(tommy_trie_inplace* trie_inplace, tommy_trie_inplace_node* node, void* data, tommy_key_t key)
{
	tommy_trie_inplace_node** let_ptr;
	tommy_uint_t i;

	node->data = data;
	node->key = key;
	/* clear the child pointers */
	for (i = 0; i < TOMMY_TRIE_INPLACE_TREE_MAX; ++i)
		node->map[i] = 0;

	let_ptr = &trie_inplace->bucket[key >> TOMMY_TRIE_INPLACE_BUCKET_SHIFT];

	trie_inplace_bucket_insert(TOMMY_TRIE_INPLACE_BUCKET_SHIFT, let_ptr, node, key);

	++trie_inplace->count;
}

// Assembly:
movl %ecx, %eax
movq %rdx, 0x10(%rsi)
movl %ecx, 0x18(%rsi)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rsi)
movups %xmm0, 0x30(%rsi)
shrl $0x1a, %ecx
movq (%rdi,%rcx,8), %r9
testq %r9, %r9
je 0x2c1b
movl $0x1a, %ecx
movq %r9, %rdx
cmpl %eax, 0x18(%r9)
je 0x2c2c
movl %eax, %r8d
shrl %cl, %r8d
andl $0x3, %r8d
addl $-0x2, %ecx
movq 0x20(%rdx,%r8,8), %r9
testq %r9, %r9
jne 0x2bf1
addq $0x20, %rdx
leaq (%rdx,%r8,8), %rax
jmp 0x2c1f
leaq (%rdi,%rcx,8), %rax
movq %rsi, 0x8(%rsi)
movq $0x0, (%rsi)
jmp 0x2c43
movq 0x8(%rdx), %rax
movq %rax, 0x8(%rsi)
movq %rsi, 0x8(%rdx)
movq $0x0, (%rsi)
movq 0x8(%rsi), %rax
movq %rsi, (%rax)
incl 0x200(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommytrieinp.c
// Function: tommy_trie_inplace_remove
void* tommy_trie_inplace_remove(tommy_trie_inplace* trie_inplace, tommy_key_t key)
{
	tommy_trie_inplace_node* ret;
	tommy_trie_inplace_node** let_ptr;

	let_ptr = &trie_inplace->bucket[key >> TOMMY_TRIE_INPLACE_BUCKET_SHIFT];

	ret = trie_inplace_bucket_remove(TOMMY_TRIE_INPLACE_BUCKET_SHIFT, let_ptr, 0, key);

	if (!ret)
		return 0;

	--trie_inplace->count;

	return ret->data;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %edx
movq %rdi, %rbx
movl %esi, %eax
shrl $0x1a, %eax
leaq (%rdi,%rax,8), %rdi
xorl %r14d, %r14d
xorl %esi, %esi
callq 0x2c83
testq %rax, %rax
je 0x2c78
decl 0x200(%rbx)
movq 0x10(%rax), %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq