LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/nachogoro[P]wordcrack-herminia/src/Dictionary.cpp
// Function: Dictionary::Dictionary(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
Dictionary::Dictionary(const std::string& fileName)
{
    std::ifstream infile(fileName);

    std::string line;
    while (std::getline(infile, line))
    {
        mDict.insert(line);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
movq %rsi, %r14
movq %rdi, %rbx
callq 0x2180
movq %rbx, %rdi
callq 0x4886
leaq -0x240(%rbp), %rdi
pushq $0x8
popq %rdx
movq %r14, %rsi
callq 0x22c0
leaq -0x28(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x240(%rbp), %r14
leaq -0x38(%rbp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x2060
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x46ba
movq %rbx, %rdi
movq %r15, %rsi
callq 0x492a
jmp 0x4694
leaq -0x38(%rbp), %rdi
callq 0x20f0
leaq -0x240(%rbp), %rdi
callq 0x2070
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x46fa
movq %rax, %r14
leaq -0x38(%rbp), %rdi
callq 0x20f0
leaq -0x240(%rbp), %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x474e
movq %r14, %rdi
callq 0x2330
// File: /workspace/github_cpp_makefile_star2_O2/nachogoro[P]wordcrack-herminia/src/Trie.cpp
// Function: Trie::recursiveInsertion(TrieNode*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void Trie::recursiveInsertion(TrieNode* parent, const std::string& word)
{
    if (parent->word == word)
    {
        parent->isValidWord = true;
        return;
    }

    size_t parentLength = parent->word.size();
    std::string prefix = word.substr(0, parentLength+1);

    auto node = findNodeInSetStartingWith(parent->childrenWords, prefix);
    TrieNode* newParent = NULL;
    if (node == parent->childrenWords.end())
    {
        std::unique_ptr<TrieNode> newNode(new TrieNode(prefix, false));
        parent->childrenWords.push_back(std::move(newNode));
        newParent = parent->childrenWords.back().get();
    }
    else if (prefix != (*node)->word)
    {
        // Since the trie optimises space by not creating intermediate nodes
        // with just one child, it is possible that some reorganising of the
        // trie is necessary at this point.
        std::unique_ptr<TrieNode> newNode(new TrieNode(prefix, false));
        newNode->childrenWords.push_back(std::move(*node));
        parent->childrenWords.erase(node);
        parent->childrenWords.push_back(std::move(newNode));
        newParent = parent->childrenWords.back().get();
    }
    else
    {
        newParent = node->get();
    }


    recursiveInsertion(newParent, word);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
callq 0x2180
movq %r15, %rdi
movq %rbx, %rsi
callq 0x4def
testb %al, %al
je 0x4986
movb $0x1, 0x20(%r15)
jmp 0x4a6b
movq %r14, -0x38(%rbp)
movq 0x8(%r15), %rcx
incq %rcx
leaq -0x58(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x21f0
leaq 0x28(%r15), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x4ab3
movq %rax, %r13
cmpq 0x30(%r15), %rax
je 0x4a14
movq (%r13), %rsi
leaq -0x58(%rbp), %rdi
callq 0x4e24
testb %al, %al
je 0x4a4f
pushq $0x40
popq %rdi
callq 0x21e0
movq %rax, %r14
leaq -0x58(%rbp), %rsi
movq %rax, %rdi
xorl %edx, %edx
callq 0x4848
movq %r14, -0x30(%rbp)
addq $0x28, %r14
movq %r14, %rdi
movq %r13, %rsi
callq 0x4f04
movq %r12, %rdi
movq %r13, %rsi
callq 0x4e48
leaq -0x30(%rbp), %rsi
movq %r12, %rdi
callq 0x4f04
jmp 0x4a3c
pushq $0x40
popq %rdi
callq 0x21e0
movq %rax, %r14
leaq -0x58(%rbp), %rsi
movq %rax, %rdi
xorl %edx, %edx
callq 0x4848
leaq -0x30(%rbp), %rsi
movq %r14, (%rsi)
movq %r12, %rdi
callq 0x4f04
movq 0x30(%r15), %rax
movq -0x8(%rax), %r14
leaq -0x30(%rbp), %rdi
callq 0x474e
jmp 0x4a53
movq (%r13), %r14
movq -0x38(%rbp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x494e
leaq -0x58(%rbp), %rdi
callq 0x20f0
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4a80
jmp 0x4a9f
jmp 0x4a8f
movq %rax, %rbx
movq %r14, %rdi
callq 0x21b0
jmp 0x4aa2
jmp 0x4a9f
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0x474e
jmp 0x4aa2
jmp 0x4a9f
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x20f0
movq %rbx, %rdi
callq 0x2330
// File: /workspace/github_cpp_makefile_star2_O2/nachogoro[P]wordcrack-herminia/src/Trie.cpp
// Function: Trie::recursiveFindNode(TrieNode*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
TrieNode* Trie::recursiveFindNode(TrieNode* parent, const std::string& word) const
{
    if (parent->word == word)
    {
        return parent;
    }

    size_t parentLength = parent->word.size();
    std::string prefix = word.substr(0, parentLength+1);

    auto nextNode = findNodeInSetStartingWith(parent->childrenWords, prefix);

    if (nextNode != parent->childrenWords.end())
    {
        return recursiveFindNode(nextNode->get(), word);
    }
    else
    {
        return NULL;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
callq 0x2180
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4def
testb %al, %al
jne 0x4d12
movq 0x8(%rbx), %rcx
incq %rcx
leaq -0x40(%rbp), %r12
movq %r12, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x21f0
leaq 0x28(%rbx), %rdi
movq %r12, %rsi
callq 0x4ab3
cmpq 0x30(%rbx), %rax
je 0x4d07
movq (%rax), %rsi
movq %r15, %rdi
movq %r14, %rdx
callq 0x4c9e
movq %rax, %rbx
jmp 0x4d09
xorl %ebx, %ebx
leaq -0x40(%rbp), %rdi
callq 0x20f0
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x20f0
movq %rbx, %rdi
callq 0x2330
// File: /workspace/github_cpp_makefile_star2_O2/nachogoro[P]wordcrack-herminia/src/main.cpp
// Function: printUsage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void printUsage(const std::string& programName)
{
    std::cerr << "Usage: " << programName << " --dict <dictionary> --board <board> --outwords <words> --outcoords <coords>" << std::endl;
    std::cerr << std::endl;
    std::cerr << "Where: " << std::endl;
    std::cerr << "<dictionary>: text file containing all the valid words in the desired language" << std::endl;
    std::cerr << std::endl;
    std::cerr << "<board>: text file containing the board to solve, including values of letters and modifiers" << std::endl;
    std::cerr << "         in the form of <letter><value><modifier_if_any>" << std::endl;
    std::cerr << "\t Example contents:" << std::endl;
    std::cerr << "\t I1 R1TW B3 N1" << std::endl;
    std::cerr << "\t O1 L1TL S1 C3" << std::endl;
    std::cerr << "\t T1 O1TL E1 V4" << std::endl;
    std::cerr << "\t A1 C3 A1 V4" << std::endl;
    std::cerr << std::endl;
    std::cerr << "<words>: output file to store the possible words and their score" << std::endl;
    std::cerr << std::endl;
    std::cerr << "<coords>: output file to store the coordinates in the screen of the possible words" << std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
callq 0x2180
movq 0x7a02(%rip), %rbx      # 0xcfe8
leaq 0x2bec(%rip), %rsi      # 0x81d9
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
movq %r14, %rsi
callq 0x21a0
leaq 0x2bda(%rip), %rsi      # 0x81e1
movq %rax, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x2100
movq %rbx, %rdi
callq 0x2100
leaq 0x2c08(%rip), %rsi      # 0x822e
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x2100
leaq 0x2bf9(%rip), %rsi      # 0x8236
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x2100
movq %rbx, %rdi
callq 0x2100
leaq 0x2c29(%rip), %rsi      # 0x8285
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x2100
leaq 0x2c6e(%rip), %rsi      # 0x82e1
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x2100
leaq 0x2c90(%rip), %rsi      # 0x831a
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x2100
leaq 0x2c8d(%rip), %rsi      # 0x832e
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x2100
leaq 0x2c86(%rip), %rsi      # 0x833e
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x2100
leaq 0x2c7f(%rip), %rsi      # 0x834e
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x2100
leaq 0x2c78(%rip), %rsi      # 0x835e
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x2100
movq %rbx, %rdi
callq 0x2100
leaq 0x2c67(%rip), %rsi      # 0x836c
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x2100
movq %rbx, %rdi
callq 0x2100
leaq 0x2c89(%rip), %rsi      # 0x83ad
movq %rbx, %rdi
callq 0x21d0
movq %rax, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x2100
// File: /workspace/github_cpp_makefile_star2_O2/nachogoro[P]wordcrack-herminia/src/main.cpp
// Function: findAllWords(Board, Dictionary const&, std::map<Word, int, std::less<Word>, std::allocator<std::pair<Word const, int>>>&)
void findAllWords(
        Board board, const Dictionary& dict,
        std::map<Word, int>& results)
{
    for (int row = 0; row < VERTICAL_SIZE; ++row)
    {
        for (int col = 0; col < HORIZONTAL_SIZE; ++col)
        {
            Coordinate coord(col, row);
            Word word;
            word.addLetter(board.letterAt(coord));
            processNewWord(board, dict, results, coord, word);
            word.removeLastLetter();
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rdx, -0x40(%rbp)
movq %rsi, -0x38(%rbp)
movq %rdi, %r15
callq 0x2180
xorl %r14d, %r14d
leaq -0x1e0(%rbp), %r12
leaq -0x110(%rbp), %rbx
cmpl $0x4, %r14d
je 0x5a55
xorl %r13d, %r13d
cmpl $0x4, %r13d
je 0x5a50
movl %r13d, -0x30(%rbp)
movl %r14d, -0x2c(%rbp)
movq %r12, %rdi
callq 0x2860
movq %r15, %rdi
leaq -0x30(%rbp), %rsi
callq 0x3004
movq %r12, %rdi
movq %rax, %rsi
callq 0x28d8
movq %rbx, %rdi
movq %r12, %rsi
callq 0x6832
movq %r15, %rdi
movq -0x38(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0x30(%rbp), %rcx
movq %rbx, %r8
callq 0x5cc9
movq %rbx, %rdi
callq 0x68b2
movq %r12, %rdi
callq 0x2944
movq %r12, %rdi
callq 0x68b2
incl %r13d
jmp 0x59e4
incl %r14d
jmp 0x59db
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x110(%rbp), %rdi
callq 0x68b2
jmp 0x5a7b
movq %rax, %rbx
leaq -0x1e0(%rbp), %rdi
callq 0x68b2
movq %rbx, %rdi
callq 0x2330
// File: /workspace/github_cpp_makefile_star2_O2/nachogoro[P]wordcrack-herminia/src/main.cpp
// Function: resultFound(std::map<Word, int, std::less<Word>, std::allocator<std::pair<Word const, int>>>&, Word&)
void resultFound(std::map<Word, int>& results, Word& word)
{
    auto wordInMap = results.begin();
    for (wordInMap = results.begin(); wordInMap != results.end(); ++wordInMap)
    {
        if (wordInMap->first.currentWord() == word.currentWord())
            break;
    }

    if ((wordInMap == results.end()) || (wordInMap->second < word.score())) {
        if (wordInMap != results.end()) {
            // Make sure we delete the entry so that the new one gets inserted
            results.erase(wordInMap);
        }
        results.insert(std::make_pair(word, word.score()));
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rsi, %r14
movq %rdi, %rbx
callq 0x2180
movq 0x18(%rbx), %r15
movq %rbx, -0x30(%rbp)
leaq 0x8(%rbx), %r12
movq %r14, -0x38(%rbp)
leaq 0x8(%r14), %rax
movq %rax, -0x40(%rbp)
leaq -0x138(%rbp), %r13
leaq -0x60(%rbp), %rbx
cmpq %r12, %r15
je 0x6038
leaq 0x28(%r15), %rsi
movq %r13, %rdi
callq 0x2260
movq %rbx, %rdi
movq -0x40(%rbp), %rsi
callq 0x2260
movq %r13, %rdi
movq %rbx, %rsi
callq 0x4def
movl %eax, %r14d
movq %rbx, %rdi
callq 0x20f0
movq %r13, %rdi
callq 0x20f0
testb %r14b, %r14b
jne 0x6018
movq %r15, %rdi
callq 0x2140
movq %rax, %r15
jmp 0x5fcb
movl 0xf0(%r15), %ebx
movq -0x38(%rbp), %rdi
callq 0x29e6
cmpl %eax, %ebx
jge 0x6077
movq -0x30(%rbp), %rdi
movq %r15, %rsi
callq 0x6fb0
movq -0x38(%rbp), %r15
movq %r15, %rdi
callq 0x29e6
movl %eax, %ebx
leaq -0x138(%rbp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x6832
movl %ebx, 0xd0(%r14)
movq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0x701c
leaq -0x138(%rbp), %rdi
callq 0x68b2
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x138(%rbp), %rdi
callq 0x68b2
jmp 0x60a9
movq %rax, %rbx
leaq -0x138(%rbp), %rdi
callq 0x20f0
movq %rbx, %rdi
callq 0x2330
// File: /workspace/github_cpp_makefile_star2_O2/nachogoro[P]wordcrack-herminia/src/main.cpp
// Function: verifyWord(Board&, Dictionary const&, std::map<Word, int, std::less<Word>, std::allocator<std::pair<Word const, int>>>&, Coordinate const&, Word)
void verifyWord(Board& board, const Dictionary& dict, std::map<Word, int>& results, const Coordinate& coord, Word word)
{
    if (coord.isValid() && board.isAvailable(coord)) {
        word.addLetter(board.letterAt(coord));
        if (dict.wordExists(word.currentWord())) {
            resultFound(results, word);
        }

        if (dict.moreWordsBeginningWith(word.currentWord())) {
            processNewWord(board, dict, results, coord, word);
        }
        word.removeLastLetter();
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
callq 0x2180
cmpl $0x3, (%r14)
ja 0x61be
cmpl $0x3, 0x4(%r14)
ja 0x61be
movq %r13, %rdi
movq %r14, %rsi
callq 0x3034
testb %al, %al
je 0x61be
movq %r15, -0x30(%rbp)
movq %r13, %rdi
movq %r14, %rsi
callq 0x3004
movq %rbx, %rdi
movq %rax, %rsi
callq 0x28d8
leaq 0x8(%rbx), %rsi
leaq -0x58(%rbp), %r15
movq %r15, %rdi
movq %rsi, -0x38(%rbp)
callq 0x2260
movq %r12, %rdi
movq %r15, %rsi
callq 0x470a
movl %eax, %r15d
leaq -0x58(%rbp), %rdi
callq 0x20f0
testb %r15b, %r15b
je 0x6157
movq -0x30(%rbp), %rdi
movq %rbx, %rsi
callq 0x5f89
leaq -0x58(%rbp), %r15
movq %r15, %rdi
movq -0x38(%rbp), %rsi
callq 0x2260
movq %r12, %rdi
movq %r15, %rsi
callq 0x472c
movl %eax, %r15d
leaq -0x58(%rbp), %rdi
callq 0x20f0
testb %r15b, %r15b
je 0x61b6
leaq -0x128(%rbp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x6832
movq %r13, %rdi
movq %r12, %rsi
movq -0x30(%rbp), %rdx
movq %r14, %rcx
movq %r15, %r8
callq 0x5cc9
leaq -0x128(%rbp), %rdi
callq 0x68b2
movq %rbx, %rdi
callq 0x2944
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x128(%rbp), %rdi
callq 0x68b2
jmp 0x61ef
jmp 0x61e3
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x20f0
movq %rbx, %rdi
callq 0x2330
// File: /workspace/github_cpp_makefile_star2_O2/kdungs[P]codecon/src/matching.cc
// Function: distance(std::vector<double, std::allocator<double>> const&, std::vector<double, std::allocator<double>> const&)
double distance(const Row& lhs, const Row& rhs) {
  assert(lhs.size() == rhs.size());

  auto sqdists = Row{};
  sqdists.reserve(lhs.size());
  std::transform(
      std::begin(lhs), std::end(lhs), std::begin(rhs),
      std::back_inserter(sqdists),
      [](const double l, const double r) { return std::pow(l - r, 2); });
  return std::accumulate(std::begin(sqdists), std::end(sqdists), 0.0);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq 0x8(%rdi), %rsi
subq (%rdi), %rsi
movq 0x8(%rbx), %rax
subq (%rbx), %rax
cmpq %rax, %rsi
jne 0x23ce
movq %rdi, %r14
sarq $0x3, %rsi
xorpd %xmm0, %xmm0
movq %rsp, %rdi
movapd %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
callq 0x2d4c
movq (%r14), %r15
movq 0x8(%r14), %r12
movq (%rbx), %r13
movq %rsp, %rbx
leaq 0x28(%rsp), %r14
cmpq %r12, %r15
je 0x2390
movsd (%r15), %xmm0
subsd (%r13), %xmm0
mulsd %xmm0, %xmm0
movsd %xmm0, 0x28(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3270
addq $0x8, %r15
addq $0x8, %r13
jmp 0x2361
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
xorpd %xmm0, %xmm0
cmpq %rcx, %rax
je 0x23ac
addsd (%rax), %xmm0
addq $0x8, %rax
jmp 0x239d
movq %rsp, %rdi
movsd %xmm0, 0x20(%rsp)
callq 0x3200
movsd 0x20(%rsp), %xmm0
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x1c2f(%rip), %rdi      # 0x4004
leaq 0x1c41(%rip), %rsi      # 0x401d
leaq 0x1c4a(%rip), %rcx      # 0x402d
pushq $0xf
popq %rdx
callq 0x20a0
jmp 0x23ed
movq %rax, %rbx
movq %rsp, %rdi
callq 0x3200
movq %rbx, %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O2/kdungs[P]codecon/src/matching.cc
// Function: parseRow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
Row parseRow(const std::string& str) {
  auto row = Row{};
  std::stringstream ss{str};
  std::string tmp;
  while (getline(ss, tmp, ',')) {
    row.push_back(std::stod(tmp));
  }
  return row;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1b0, %rsp            # imm = 0x1B0
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
leaq 0x28(%rsp), %rdi
pushq $0x18
popq %rdx
callq 0x2180
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x28(%rsp), %r14
leaq 0x8(%rsp), %r15
pushq $0x2c
popq %rbp
movq %rsp, %r12
movq %r14, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x21d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2482
movq %r15, %rdi
xorl %esi, %esi
callq 0x2de2
movsd %xmm0, (%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3270
jmp 0x244b
leaq 0x8(%rsp), %rdi
callq 0x2070
leaq 0x28(%rsp), %rdi
callq 0x20c0
movq %rbx, %rax
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x24c7
jmp 0x24b0
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x2070
leaq 0x28(%rsp), %rdi
callq 0x20c0
movq %rbx, %rdi
callq 0x3200
movq %r14, %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O2/iZhangHui[P]CppPrimer/CH16_TemplatesAndGenericProgramming/examples/variadic3.cc
// Function: main
int main()
{
	// no braces, so calls variadic version of min_elem
	cout << min_elem(1.0,2,3,4.5,0.0,5,6,7,8,9) << endl;
	// calls min_element that takes a single argument
	// of type initializer_list<int>
	cout << min_elem({1,2,3,4,0,5,6,7,8,9}) << endl;

	int i = 5;
	cout << bigger(i, {1,2,3,4,0,5,6,7,8,9}) << endl;

	string s = "how now brown cow";
	print(cout, i, s, 42);  // two parameters in the pack
	print(cout, i, s);      // one parameter in the pack
	print(cout, i);         // no parameters in the pack
	cout << endl;

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq 0x2cc4(%rip), %rbx      # 0x3fd8
xorps %xmm0, %xmm0
movq %rbx, %rdi
callq 0x1130
movq %rax, %rdi
callq 0x1080
movups 0xce6(%rip), %xmm0      # 0x2014
leaq -0x60(%rbp), %r15
movaps %xmm0, 0x10(%r15)
movups 0xcc6(%rip), %xmm0      # 0x2004
movaps %xmm0, (%r15)
movabsq $0x900000008, %r13      # imm = 0x900000008
movq %r13, 0x20(%r15)
pushq $0xa
popq %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x1448
movq %rbx, %rdi
movl %eax, %esi
callq 0x1160
movq %rax, %rdi
callq 0x1080
leaq -0x2c(%rbp), %r14
movl $0x5, (%r14)
movups 0xc91(%rip), %xmm0      # 0x2014
movaps %xmm0, 0x10(%r15)
movups 0xc75(%rip), %xmm0      # 0x2004
movaps %xmm0, (%r15)
movq %r13, 0x20(%r15)
leaq -0x60(%rbp), %rsi
movq %r14, %rdi
movq %r12, %rdx
callq 0x14ac
movzbl %al, %esi
movq %rbx, %rdi
callq 0x1140
movq %rax, %rdi
callq 0x1080
leaq 0xc6c(%rip), %rsi       # 0x202c
leaq -0x30(%rbp), %r12
movq %r15, %rdi
movq %r12, %rdx
callq 0x1050
movl $0x2a, (%r12)
leaq -0x30(%rbp), %rcx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x14d7
movq 0x2be8(%rip), %rdi      # 0x3fd8
leaq -0x2c(%rbp), %rsi
leaq -0x60(%rbp), %rdx
callq 0x1518
movl -0x2c(%rbp), %esi
movq 0x2bd1(%rip), %rdi      # 0x3fd8
callq 0x1160
movq 0x2bc5(%rip), %rdi      # 0x3fd8
callq 0x1080
leaq -0x60(%rbp), %rdi
callq 0x1070
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1434
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x1070
movq %rbx, %rdi
callq 0x1180
// File: /workspace/github_cpp_makefile_star2_O2/iZhangHui[P]CppPrimer/CH16_TemplatesAndGenericProgramming/examples/variadic3.cc
// Function: int min_elem<int>(std::initializer_list<int>)
T min_elem(initializer_list<T> il)
{
	if (il.size() == 0)
		throw "empty";
	auto b = il.begin();      // we know there's at least one element in the list
	T ret(*b++);              // start off with the first element as the ``smallest''
	while (b != il.end())     // till we run out of elements
		ret = min(ret, *b++); // update ret if we find a smaller value
	return ret;               // return the value we found
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
testq %rsi, %rsi
je 0x1489
leaq 0x4(%rdi), %rcx
leaq -0x4(,%rsi,4), %rdx
leaq -0x4(%rbp), %rsi
movl (%rdi), %eax
movl %eax, -0x4(%rbp)
testq %rdx, %rdx
je 0x1483
movq %rcx, %rdi
cmpl %eax, (%rcx)
jl 0x1479
movq %rsi, %rdi
addq $0x4, %rcx
addq $-0x4, %rdx
jmp 0x1465
addq $0x10, %rsp
popq %rbp
retq
pushq $0x8
popq %rdi
callq 0x1090
leaq 0xba6(%rip), %rcx       # 0x203e
movq %rcx, (%rax)
movq 0x2b26(%rip), %rsi      # 0x3fc8
movq %rax, %rdi
xorl %edx, %edx
callq 0x1150
// File: /workspace/github_cpp_makefile_star2_O2/iZhangHui[P]CppPrimer/CH16_TemplatesAndGenericProgramming/examples/variadic3.cc
// Function: bool bigger<int>(int const&, std::initializer_list<int>)
bool bigger(const T& t, initializer_list<T> il)
{
	if (il.size() == 0)
		return false;
	auto b = il.begin();
	while (b != il.end())
		if (t < *b)
			return true;
		else
			++b;
	return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testq %rdx, %rdx
je 0x14d3
movl (%rdi), %ecx
shlq $0x2, %rdx
xorl %edi, %edi
cmpq %rdi, %rdx
setne %al
je 0x14d5
leaq 0x4(%rdi), %r8
cmpl (%rsi,%rdi), %ecx
movq %r8, %rdi
jge 0x14bd
jmp 0x14d5
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/ArashPartow[P]exprtk/exprtk_simple_example_14.cpp
// Function: void stddev_example<double>()
void stddev_example()
{
   typedef exprtk::expression<T> expression_t;
   typedef exprtk::parser<T>     parser_t;

   const std::string stddev_program =
      " var x[25] := {                     "
      "                 1,  2,  3,  4,  5, "
      "                 6,  7,  8,  9, 10, "
      "                11, 12, 13, 14, 15, "
      "                16, 17, 18, 19, 20, "
      "                21, 22, 23, 24, 25  "
      "              };                    "
      "                                    "
      " sqrt(sum([x - avg(x)]^2) / x[])    ";

   expression_t expression;

   parser_t parser;
   parser.compile(stddev_program,expression);

   const T stddev = expression.value();

   printf("stddev(1..25) = %10.6f\n",stddev);
}

// Assembly:
pushq %rbx
subq $0xac0, %rsp            # imm = 0xAC0
leaq 0x129e03(%rip), %rsi    # 0x23a105
leaq 0x28(%rsp), %rdi
leaq 0x198(%rsp), %rdx
callq 0x1102b8
leaq 0x8(%rsp), %rdi
callq 0x11048e
leaq 0x48(%rsp), %rdi
pushq $0x7f
popq %rsi
callq 0x1104ee
leaq 0x198(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x1105fe
leaq 0x48(%rsp), %rdi
callq 0x110c16
leaq 0x198(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x110c5e
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x129ed6(%rip), %rdi    # 0x23a24a
movb $0x1, %al
callq 0x10e060
leaq 0x198(%rsp), %rdi
callq 0x1110e0
leaq 0x8(%rsp), %rdi
callq 0x11121a
leaq 0x28(%rsp), %rdi
callq 0x10e5b8
addq $0xac0, %rsp            # imm = 0xAC0
popq %rbx
retq
jmp 0x1103a7
movq %rax, %rbx
leaq 0x198(%rsp), %rdi
callq 0x1110e0
jmp 0x1103cb
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x110c16
jmp 0x1103cb
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x11121a
jmp 0x1103da
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x10e5b8
movq %rbx, %rdi
callq 0x10e310
// File: /workspace/github_cpp_makefile_star2_O2/bonetblai[P]mdp-engine/wet/./wet.h
// Function: problem_t::problem_t(unsigned long, float, state_t const&, state_t const&)
problem_t(size_t size, float p, const state_t &init = state_t(0,0), const state_t &goal = state_t(0,0))
     : size_(size), init_(init), goal_(goal), p_(p) {
        state_t::size_ = size_;
        water_ = new char[size_ * size_];
        for( size_t x = 0; x < size_; ++x )
            for( size_t y = 0; y < size_; ++y )
                if( Random::real() < p_ )
                    water_[(x * size_) + y] = 1 + (lrand48() % (XVER ? 2 : 3));
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movsd 0x16075(%rip), %xmm1    # 0x1c020
movsd %xmm1, 0x8(%rdi)
andq $0x0, 0x10(%rdi)
movq %rsi, %r14
leaq 0x25ff9(%rip), %rax     # 0x2bfb8
movq %rax, (%rdi)
movq %rsi, 0x18(%rdi)
movl (%rdx), %eax
movl %eax, 0x20(%rdi)
movl (%rcx), %eax
movl %eax, 0x24(%rdi)
movss %xmm0, 0x30(%rdi)
movq %rsi, 0x2727c(%rip)     # 0x2d258
movq %rsi, %rdi
imulq %rsi, %rdi
callq 0x5030
movq %rax, 0x28(%rbx)
xorl %r15d, %r15d
cmpq %r14, %r15
jae 0x603e
xorl %r12d, %r12d
cmpq %r14, %r12
jae 0x6039
callq 0x7d2e
ucomiss 0x30(%rbx), %xmm0
jae 0x6030
callq 0x51a0
movl 0x27242(%rip), %ecx     # 0x2d254
andl $0x1, %ecx
xorq $0x3, %rcx
cqto
idivq %rcx
incb %dl
movq 0x18(%rbx), %rax
imulq %r15, %rax
addq 0x28(%rbx), %rax
movb %dl, (%r12,%rax)
incq %r12
movq 0x18(%rbx), %r14
jmp 0x5ff7
incq %r15
jmp 0x5fef
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/bonetblai[P]mdp-engine/wet/./wet.h
// Function: problem_t::print(std::ostream&) const
virtual void print(std::ostream &os) const {
        os << "size = " << size_ << std::endl
           << "init = " << init_ << std::endl
           << "goal = " << goal_ << std::endl;
        for( size_t x = 0; x < size_; ++x ) os << "--";
        os << "---" << std::endl;
        for( size_t y = 0; y < size_; ++y ) {
            os << "|";
            for( size_t x = 0; x < size_; ++x ) {
                os << " " << water(x,y);
            }
            os << " |" << std::endl;
        }
        for( size_t x = 0; x < size_; ++x ) os << "--";
        os << "---" << std::endl;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x1476d(%rip), %rsi     # 0x1c33f
movq %rbx, %rdi
callq 0x5230
movq 0x18(%r14), %rsi
movq %rax, %rdi
callq 0x5160
movq %rax, %rdi
callq 0x50f0
leaq 0x14752(%rip), %rsi     # 0x1c347
movq %rax, %rdi
callq 0x5230
movq %rax, %r15
leaq 0x20(%r14), %rdi
movq %rax, %rsi
callq 0x7fd6
movq %r15, %rdi
callq 0x50f0
leaq 0x14734(%rip), %rsi     # 0x1c34f
movq %rax, %rdi
callq 0x5230
movq %rax, %r15
leaq 0x24(%r14), %rdi
movq %rax, %rsi
callq 0x7fd6
movq %r15, %rdi
callq 0x50f0
xorl %r12d, %r12d
leaq 0x14714(%rip), %r15     # 0x1c358
cmpq 0x18(%r14), %r12
jae 0x7c5a
movq %rbx, %rdi
movq %r15, %rsi
callq 0x5230
incq %r12
jmp 0x7c44
leaq 0x146f6(%rip), %rsi     # 0x1c357
movq %rbx, %rdi
callq 0x5230
movq %rax, %rdi
callq 0x50f0
xorl %ebp, %ebp
leaq 0x146e5(%rip), %r12     # 0x1c35f
leaq 0x146da(%rip), %r13     # 0x1c35b
movq 0x18(%r14), %rax
cmpq %rax, %rbp
jae 0x7ce6
movq %rbx, %rdi
leaq 0x146c8(%rip), %rsi     # 0x1c35c
callq 0x5230
xorl %r15d, %r15d
cmpq 0x18(%r14), %r15
jae 0x7cce
movq %rbx, %rdi
movq %r12, %rsi
callq 0x5230
movq 0x18(%r14), %rcx
imulq %r15, %rcx
addq 0x28(%r14), %rcx
movsbq (%rbp,%rcx), %rcx
movl %ecx, %esi
movq %rax, %rdi
callq 0x5160
incq %r15
jmp 0x7c9c
movq %rbx, %rdi
movq %r13, %rsi
callq 0x5230
movq %rax, %rdi
callq 0x50f0
incq %rbp
jmp 0x7c81
xorl %r12d, %r12d
leaq 0x14668(%rip), %r15     # 0x1c358
cmpq %rax, %r12
jae 0x7d09
movq %rbx, %rdi
movq %r15, %rsi
callq 0x5230
incq %r12
movq 0x18(%r14), %rax
jmp 0x7cf0
leaq 0x14647(%rip), %rsi     # 0x1c357
movq %rbx, %rdi
callq 0x5230
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x50f0
// File: /workspace/github_cpp_makefile_star2_O2/bonetblai[P]mdp-engine/wet/./wet.h
// Function: state_t::move(int) const
state_t move(Problem::action_t a) const {
        switch( a ) {
            case 1:
                if( y() == 0 ) return s();
                return state_t(x(), y() - 1);
                break;
            case 2:
                if( x() == size_ - 1 ) return s();
                return state_t(x() + 1, y());
                break;
            case 3:
                if( y() == size_ - 1 ) return s();
                return state_t(x(), y() + 1);
                break;
            case 4:
                if( x() == 0 ) return s();
                return state_t(x() - 1, y());
                break;
        }
        return s_;
    }

// Assembly:
movl (%rsi), %ecx
decl %edx
cmpl $0x3, %edx
ja 0x7e69
leaq 0x142d6(%rip), %rax     # 0x1c0b8
movslq (%rax,%rdx,4), %rdx
addq %rax, %rdx
jmpq *%rdx
movq 0x25466(%rip), %rsi     # 0x2d258
movq %rcx, %rax
xorl %edx, %edx
divq %rsi
testq %rdx, %rdx
je 0x7e69
imull %eax, %esi
leal (%rdx,%rsi), %ecx
decl %ecx
jmp 0x7e69
movq 0x25448(%rip), %rsi     # 0x2d258
movq %rcx, %rax
xorl %edx, %edx
divq %rsi
leaq -0x1(%rsi), %r8
cmpq %rdx, %r8
je 0x7e69
imull %eax, %esi
leal (%rdx,%rsi), %ecx
incl %ecx
jmp 0x7e69
movq 0x25426(%rip), %rsi     # 0x2d258
cmpq %rcx, %rsi
ja 0x7e69
movl %ecx, %eax
xorl %edx, %edx
divl %esi
movl %eax, %ecx
decl %ecx
imull %esi, %ecx
addl %edx, %ecx
jmp 0x7e69
movq 0x25409(%rip), %rsi     # 0x2d258
movq %rcx, %rax
xorl %edx, %edx
divq %rsi
leaq -0x1(%rsi), %r8
cmpq %rax, %r8
je 0x7e69
incl %eax
imull %eax, %esi
addl %edx, %esi
movl %esi, %ecx
movl %ecx, (%rdi)
movq %rdi, %rax
retq
// File: /workspace/github_cpp_makefile_star2_O2/dragazo[P]cpp-gc/GarbageCollection.cpp
// Function: GC::aligned_malloc(unsigned long, unsigned long)
void *GC::aligned_malloc(std::size_t size, std::size_t align)
{
	// calling with 0 yields nullptr
	if (size == 0) return nullptr;

	// allocate enough space for a void*, padding, and the array
	size += sizeof(void*) + align - 1;

	// grab that much space - if that fails, return null
	void *raw = std::malloc(size);
	if (!raw) return nullptr;

	// get the pointer to return (before alignment)
	void *ret = (char*)raw + sizeof(void*);

	// align the return pointer
	ret = (char*)ret + (-(std::intptr_t)ret & (align - 1));

	// store the raw pointer before start of ret array
	*(void**)((char*)ret - sizeof(void*)) = raw;

	// return ret pointer
	return ret;
}

// Assembly:
testq %rdi, %rdi
je 0x56e0
pushq %rbx
movq %rsi, %rbx
addq %rsi, %rdi
addq $0x7, %rdi
callq 0x5350
testq %rax, %rax
je 0x56e4
pushq $-0x8
popq %rcx
subq %rax, %rcx
decq %rbx
andq %rcx, %rbx
leaq (%rax,%rbx), %rcx
addq $0x8, %rcx
movq %rax, (%rax,%rbx)
jmp 0x56e6
xorl %ecx, %ecx
jmp 0x56e7
xorl %ecx, %ecx
popq %rbx
movq %rcx, %rax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/dragazo[P]cpp-gc/GarbageCollection.cpp
// Function: GC::obj_list::remove(GC::info*)
void GC::obj_list::remove(info *obj)
{
	// not using first == last for the first case because in the (illegal) case where
	// handle is not in the gc database this would unlink an unrelated object.
	if (obj == first && obj == last) first = last = nullptr;
	else if (obj == first) (first = first->next)->prev = nullptr;
	else if (obj == last) (last = last->prev)->next = nullptr;
	else
	{
		obj->prev->next = obj->next;
		obj->next->prev = obj->prev;
	}
}

// Assembly:
movq (%rdi), %rcx
movq 0x8(%rdi), %rax
cmpq %rsi, %rcx
je 0x5746
cmpq %rsi, %rax
je 0x5758
movq 0x30(%rsi), %rax
movq 0x38(%rsi), %rcx
movq %rcx, 0x38(%rax)
movq %rax, 0x30(%rcx)
retq
cmpq %rsi, %rax
je 0x5766
movq 0x38(%rcx), %rax
movq %rax, (%rdi)
andq $0x0, 0x30(%rax)
retq
movq 0x30(%rax), %rax
movq %rax, 0x8(%rdi)
andq $0x0, 0x38(%rax)
retq
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/dragazo[P]cpp-gc/GarbageCollection.cpp
// Function: GC::disjoint_module::~disjoint_module()
GC::disjoint_module::~disjoint_module()
{
	// getting here means there's no longer any owning handles for this disjoint module.
	// that means we're about to release control of all our stuff - the only thing that can leak is objects.
	// however we can't perform a collection because this thread no longer as living handle to this module.
	// so all we can do is enforce the fact that there should not be any memory leaks.

	// if we still have objects, bad news - the user probably violated a disjunction barrier
	if (!objs.empty())
	{
		std::cerr << "\n\nYOU MADE A USAGE VIOLATION!!\ndestruction of a disjoint gc module had leftover objects\n\n";
		std::cerr << objs.front() << ' ' << objs.front()->next << '\n' << roots.size() << '\n';
		std::abort();
	}
	// same thing for roots - less important cause this can't leak, but we don't want dangling pointers floating around out there.
	if (!roots.empty())
	{
		std::cerr << "\n\nYOU MADE A USAGE VIOLATION!!\ndestruction of a disjoint gc module had leftover roots\n\n";
		std::cerr << roots.size() << '\n' << *roots.begin() << '\n';
		std::abort();
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, 0x38(%rdi)
jne 0x582e
cmpq $0x0, 0x60(%rbx)
jne 0x5890
leaq 0x48(%rbx), %r14
leaq 0x1b0(%rbx), %rdi
callq 0x7326
leaq 0x178(%rbx), %rdi
callq 0x73ce
leaq 0x140(%rbx), %rdi
callq 0x73ce
leaq 0x108(%rbx), %rdi
callq 0x7476
leaq 0xd0(%rbx), %rdi
callq 0x7476
subq $-0x80, %rbx
movq %rbx, %rdi
callq 0x7476
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x73ce
movq 0x2e7bb(%rip), %rdi     # 0x33ff0
leaq 0x18851(%rip), %rsi     # 0x1e08d
callq 0x52b0
movq 0x38(%rbx), %rsi
movq 0x2e7a4(%rip), %rdi     # 0x33ff0
callq 0x5230
pushq $0x20
popq %rsi
movq %rax, %rdi
callq 0x5310
movq 0x38(%rbx), %rcx
movq 0x38(%rcx), %rsi
movq %rax, %rdi
callq 0x5230
pushq $0xa
popq %rsi
movq %rax, %rdi
callq 0x5310
movq 0x60(%rbx), %rsi
movq %rax, %rdi
callq 0x51d0
pushq $0xa
popq %rsi
movq %rax, %rdi
callq 0x5310
jmp 0x58d9
movq 0x2e759(%rip), %rdi     # 0x33ff0
leaq 0x18849(%rip), %rsi     # 0x1e0e7
callq 0x52b0
movq 0x60(%rbx), %rsi
movq 0x2e742(%rip), %rdi     # 0x33ff0
callq 0x51d0
pushq $0xa
popq %rsi
movq %rax, %rdi
callq 0x5310
movq 0x58(%rbx), %rcx
movq 0x8(%rcx), %rsi
movq %rax, %rdi
callq 0x5230
pushq $0xa
popq %rsi
movq %rax, %rdi
callq 0x5310
callq 0x5180
movq %rax, %rdi
callq 0x70ea
// File: /workspace/github_cpp_makefile_star2_O2/dragazo[P]cpp-gc/GarbageCollection.cpp
// Function: GC::disjoint_module::schedule_handle_create_null(GC::smart_handle&)
void GC::disjoint_module::schedule_handle_create_null(smart_handle &handle)
{
	std::lock_guard<std::mutex> internal_lock(internal_mutex);

	// point it at null
	handle.raw = nullptr;
	
	// root it
	__schedule_handle_root(handle);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
callq 0x7694
andq $0x0, (%r14)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5f04
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5220
movq %rax, %r14
movq %rbx, %rdi
callq 0x5220
movq %r14, %rdi
callq 0x5450
// File: /workspace/github_cpp_makefile_star2_O2/dragazo[P]cpp-gc/GarbageCollection.cpp
// Function: GC::disjoint_module::__schedule_handle_root(GC::smart_handle const&)
void GC::disjoint_module::__schedule_handle_root(const smart_handle &handle)
{
	// if there's no collector thread, we MUST apply the change immediately
	if (collector_thread == std::thread::id())
	{
		// if this branch was selected, the caches should be empty
		assert(roots_add_cache.empty());
		assert(roots_remove_cache.empty());

		roots.insert(&handle.raw_handle());
	}
	// otherwise we need to cache the request
	else
	{
		roots_add_cache.insert(&handle.raw);
		roots_remove_cache.erase(&handle.raw); // ensure the sets are disjoint
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
cmpq $0x0, 0x28(%rdi)
je 0x5f4a
leaq 0x140(%rbx), %rdi
leaq 0x8(%rsp), %r15
movq %r14, (%r15)
movq %r15, %rsi
callq 0x80de
addq $0x178, %rbx            # imm = 0x178
movq %r14, (%r15)
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x76a8
jmp 0x5f72
cmpq $0x0, 0x158(%rbx)
jne 0x5f7c
cmpq $0x0, 0x190(%rbx)
jne 0x5f9b
addq $0x48, %rbx
leaq 0x8(%rsp), %rsi
movq %r14, (%rsi)
movq %rbx, %rdi
callq 0x80de
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x1820d(%rip), %rdi     # 0x1e190
leaq 0x181cc(%rip), %rsi     # 0x1e156
leaq 0x18359(%rip), %rcx     # 0x1e2ea
movl $0x274, %edx            # imm = 0x274
callq 0x51b0
leaq 0x18206(%rip), %rdi     # 0x1e1a8
leaq 0x181ad(%rip), %rsi     # 0x1e156
leaq 0x1833a(%rip), %rcx     # 0x1e2ea
movl $0x275, %edx            # imm = 0x275
callq 0x51b0
// File: /workspace/github_cpp_makefile_star2_O2/dragazo[P]cpp-gc/GarbageCollection.cpp
// Function: GC::disjoint_module::schedule_handle_create_bind_new_obj(GC::smart_handle&, GC::info*)
void GC::disjoint_module::schedule_handle_create_bind_new_obj(smart_handle &handle, info *new_obj)
{
	std::lock_guard<std::mutex> internal_lock(internal_mutex);

	// point it at the object
	handle.raw = new_obj;

	// root it
	__schedule_handle_root(handle);

	// -- add the object -- //

	// set its reference count to 1
	new_obj->ref_count = 1;

	// if there's no collector thread, we MUST apply the change immediately
	if (collector_thread == std::thread::id())
	{
		// if this branch was selected, the caches should be empty
		assert(objs_add_cache.empty());

		objs.add(new_obj);
	}
	// otherwise we need to cache the request
	else objs_add_cache.insert(new_obj);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %rdx, 0x8(%rsp)
callq 0x7694
movq %r14, (%r15)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x5f04
movq $0x1, 0x20(%r14)
cmpq $0x0, 0x28(%rbx)
je 0x6006
leaq 0x108(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0x7b20
jmp 0x602c
cmpq $0x0, 0x120(%rbx)
jne 0x603e
movq 0x40(%rbx), %rax
movq %rax, 0x30(%r14)
andq $0x0, 0x38(%r14)
testq %rax, %rax
cmoveq %rbx, %rax
movq %r14, 0x38(%rax)
movq %r14, 0x40(%rbx)
movq %rbx, %rdi
callq 0x5220
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x180fa(%rip), %rdi     # 0x1e13f
leaq 0x1810a(%rip), %rsi     # 0x1e156
leaq 0x181ba(%rip), %rcx     # 0x1e20d
movl $0x1dd, %edx            # imm = 0x1DD
callq 0x51b0
movq %rax, %r14
movq %rbx, %rdi
callq 0x5220
movq %r14, %rdi
callq 0x5450
// File: /workspace/github_cpp_makefile_star2_O2/dragazo[P]cpp-gc/GarbageCollection.cpp
// Function: GC::disjoint_module::schedule_handle_create_alias(GC::smart_handle&, GC::smart_handle const&)
void GC::disjoint_module::schedule_handle_create_alias(smart_handle &handle, const smart_handle &src_handle)
{
	std::lock_guard<std::mutex> internal_lock(internal_mutex);

	// get the target
	info *target = __get_current_target(src_handle);

	#if DRAGAZO_GARBAGE_COLLECT_DISJUNCTION_SAFETY_CHECKS

	// if we're going to repoint outside the disjunction of the handle, that's a disjunction violation
	if (target && handle.disjunction != target->disjunction)
	{
		throw GC::disjunction_error("attempt to repoint GC::ptr outside of the current disjunction");
	}

	#endif

	// point it at the source handle's current target
	handle.raw = target;

	// increment the target reference count
	if (handle.raw) ++handle.raw->ref_count;

	// root it
	__schedule_handle_root(handle);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
callq 0x7694
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6112
testq %rax, %rax
je 0x60a6
movq 0x8(%r14), %rcx
cmpq 0x18(%rax), %rcx
jne 0x60c2
movq %rax, (%r14)
incq 0x20(%rax)
jmp 0x60aa
andq $0x0, (%r14)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5f04
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x5220
pushq $0x10
popq %rdi
callq 0x5140
movq %rax, %r14
leaq 0x1818f(%rip), %rsi     # 0x1e263
movq %rax, %rdi
callq 0x70f6
leaq 0x2d1d5(%rip), %rsi     # 0x332b8
movq 0x2deb6(%rip), %rdx     # 0x33fa0
movq %r14, %rdi
callq 0x5410
movq %rax, %r15
movq %r14, %rdi
callq 0x5210
jmp 0x6102
movq %rax, %r15
movq %rbx, %rdi
callq 0x5220
movq %r15, %rdi
callq 0x5450
// File: /workspace/github_cpp_makefile_star2_O2/dragazo[P]cpp-gc/GarbageCollection.cpp
// Function: GC::disjoint_module::__get_current_target(GC::smart_handle const&)
GC::info *GC::disjoint_module::__get_current_target(const smart_handle &handle)
{
	// find new_value's repoint target from the cache.
	// const cast is safe because we won't be modifying it (just for lookup in the repoint cache).
	auto new_value_iter = handle_repoint_cache.find(const_cast<info**>(&handle.raw));

	// get the target - if it's in the repoint cache, get the repoint target, otherwise use it raw.
	// this works regardless of if we're in a collect action or not (if we're in a collect action the cache is empty).
	return new_value_iter != handle_repoint_cache.end() ? new_value_iter->second : handle.raw;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
addq $0x1b0, %rdi            # imm = 0x1B0
leaq 0x8(%rsp), %rsi
movq %rbx, (%rsi)
callq 0x84b8
leaq 0x10(%rax), %rcx
testq %rax, %rax
cmoveq %rbx, %rcx
movq (%rcx), %rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/dragazo[P]cpp-gc/GarbageCollection.cpp
// Function: GC::disjoint_module::schedule_handle_destroy(GC::smart_handle const&)
void GC::disjoint_module::schedule_handle_destroy(const smart_handle &handle)
{
	std::unique_lock<std::mutex> internal_lock(internal_mutex);

	// get the old target
	info *old_target = __get_current_target(handle);

	// unroot the handle
	__schedule_handle_unroot(handle);

	// purge the handle from the repoint cache so we don't dereference undefined memory.
	// the const cast is ok because we won't be modifying it - just for lookup.
	handle_repoint_cache.erase(const_cast<info**>(&handle.raw));

	// dec the reference count
	__MUST_BE_LAST_ref_count_dec(old_target, std::move(internal_lock));
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x710c
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6112
movq %rax, %r14
movq %rbx, %rdi
movq %r15, %rsi
callq 0x61fa
leaq 0x1b0(%rbx), %rdi
leaq 0x28(%rsp), %rsi
movq %r15, (%rsi)
callq 0x7f92
movq 0x8(%rsp), %rax
leaq 0x18(%rsp), %rdx
movq %rax, (%rdx)
movb 0x10(%rsp), %al
movb %al, 0x8(%rdx)
andq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x62a8
leaq 0x18(%rsp), %rdi
callq 0x7122
leaq 0x8(%rsp), %rdi
callq 0x7122
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x7122
jmp 0x61e7
jmp 0x61e4
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x7122
movq %rbx, %rdi
callq 0x5450
nop
// File: /workspace/github_cpp_makefile_star2_O2/dragazo[P]cpp-gc/GarbageCollection.cpp
// Function: GC::disjoint_module::__schedule_handle_unroot(GC::smart_handle const&)
void GC::disjoint_module::__schedule_handle_unroot(const smart_handle &handle)
{
	// if there's no collector thread, we MUST apply the change immediately
	if (collector_thread == std::thread::id())
	{
		// if this branch was selected, the caches should be empty
		assert(roots_add_cache.empty());
		assert(roots_remove_cache.empty());

		roots.erase(&handle.raw);
	}
	// otherwise we need to cache the request
	else
	{
		roots_remove_cache.insert(&handle.raw);
		roots_add_cache.erase(&handle.raw); // ensure the sets are disjoint
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
cmpq $0x0, 0x28(%rdi)
je 0x6238
leaq 0x178(%rbx), %rdi
leaq 0x8(%rsp), %r15
movq %r14, (%r15)
movq %r15, %rsi
callq 0x80de
addq $0x140, %rbx            # imm = 0x140
movq %r14, (%r15)
leaq 0x8(%rsp), %rsi
jmp 0x6258
cmpq $0x0, 0x158(%rbx)
jne 0x626a
cmpq $0x0, 0x190(%rbx)
jne 0x6289
addq $0x48, %rbx
leaq 0x8(%rsp), %rsi
movq %r14, (%rsi)
movq %rbx, %rdi
callq 0x76a8
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x17f1f(%rip), %rdi     # 0x1e190
leaq 0x17ede(%rip), %rsi     # 0x1e156
leaq 0x180b2(%rip), %rcx     # 0x1e331
movl $0x286, %edx            # imm = 0x286
callq 0x51b0
leaq 0x17f18(%rip), %rdi     # 0x1e1a8
leaq 0x17ebf(%rip), %rsi     # 0x1e156
leaq 0x18093(%rip), %rcx     # 0x1e331
movl $0x287, %edx            # imm = 0x287
callq 0x51b0
// File: /workspace/github_cpp_makefile_star2_O2/dragazo[P]cpp-gc/GarbageCollection.cpp
// Function: GC::disjoint_module::__MUST_BE_LAST_ref_count_dec(GC::info*, std::unique_lock<std::mutex>)
void GC::disjoint_module::__MUST_BE_LAST_ref_count_dec(info *target, std::unique_lock<std::mutex> internal_lock)
{
	// decrement the reference count
	// if it falls to zero we need to perform ref count deletion logic
	if (target && --target->ref_count == 0)
	{
		// if it's in the obj add cache we can delete it immediately regardless of what's going on.
		// this is because it being in the obj add cache means it's not in the obj list, and is thus not under gc consideration.
		if (objs_add_cache.find(target) != objs_add_cache.end())
		{
			// remove it from the obj add cache
			objs_add_cache.erase(target);

			// unlock the mutex so we can call arbitrary code
			internal_lock.unlock();

			target->destroy();
			target->dealloc();
		}
		// otherwise we know it exists and isn't in the add cache, therefore it's in the obj list.
		// if we're not suppoed to cache ref count deletions, handle it immediately
		else if (!cache_ref_count_del_actions)
		{
			// remove it from the obj list
			objs.remove(target);
			
			// unlock the mutex so we can call arbitrary code
			internal_lock.unlock();

			target->destroy();
			target->dealloc();
		}
		// otherwise we're supposed to cache the ref count deletion action.
		// this also implies we're in a collection action.
		else
		{
			assert(collector_thread != std::thread::id());

			ref_count_del_cache.insert(target);
		}
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, 0x8(%rsp)
testq %rsi, %rsi
je 0x6365
decq 0x20(%rsi)
jne 0x6365
movq %rdx, %rbx
movq %rdi, %r14
leaq 0x108(%rdi), %r15
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x84d6
testq %rax, %rax
je 0x630e
leaq 0x8(%rsp), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x7e66
movq %rbx, %rdi
callq 0x7138
movq (%r14), %rdi
movq 0x10(%rdi), %rax
callq *(%rax)
movq (%r14), %rdi
jmp 0x635e
cmpb $0x0, 0xc8(%r14)
je 0x6335
cmpq $0x0, 0x28(%r14)
je 0x636f
addq $0xd0, %r14
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x7b20
jmp 0x6365
addq $0x38, %r14
movq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x5724
movq %rbx, %rdi
callq 0x7138
movq 0x8(%rsp), %rdi
movq 0x10(%rdi), %rax
callq *(%rax)
movq 0x8(%rsp), %rdi
movq 0x10(%rdi), %rax
callq *0x8(%rax)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x18054(%rip), %rdi     # 0x1e3ca
leaq 0x17dd9(%rip), %rsi     # 0x1e156
leaq 0x1806c(%rip), %rcx     # 0x1e3f0
movl $0x2d1, %edx            # imm = 0x2D1
callq 0x51b0
// File: /workspace/github_cpp_makefile_star2_O2/dragazo[P]cpp-gc/GarbageCollection.cpp
// Function: GC::disjoint_module::schedule_handle_repoint_null(GC::smart_handle&)
void GC::disjoint_module::schedule_handle_repoint_null(smart_handle &handle)
{
	std::unique_lock<std::mutex> internal_lock(internal_mutex);

	// get the old target
	info *old_target = __get_current_target(handle);

	// repoint handle to null
	__raw_schedule_handle_repoint(handle, nullptr);

	// decrement old target reference count
	__MUST_BE_LAST_ref_count_dec(old_target, std::move(internal_lock));
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x710c
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6112
movq %rax, %r14
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x6466
movq (%rsp), %rax
leaq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movb 0x8(%rsp), %al
movb %al, 0x8(%rdx)
andq $0x0, (%rsp)
movb $0x0, 0x8(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x62a8
leaq 0x10(%rsp), %rdi
callq 0x7122
movq %rsp, %rdi
callq 0x7122
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x7122
jmp 0x6455
movq %rax, %rbx
movq %rsp, %rdi
callq 0x7122
movq %rbx, %rdi
callq 0x5450
nop