LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/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 %r12
pushq %rbx
subq $0x230, %rsp            # imm = 0x230
movq %rsi, %r15
movq %rdi, %rbx
callq 0x21a0
movq %rbx, %rdi
callq 0x49ec
leaq -0x248(%rbp), %r14
movq %r14, %rdi
movq %r15, %rsi
movl $0x8, %edx
callq 0x2300
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
leaq -0x40(%rbp), %r15
movq -0x248(%rbp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2390
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x486c
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4af2
jmp 0x482b
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x487a
callq 0x21e0
leaq -0x248(%rbp), %rdi
callq 0x2070
addq $0x230, %rsp            # imm = 0x230
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x48b8
movq %rax, %r14
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x48ac
callq 0x21e0
leaq -0x248(%rbp), %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x490c
movq %r14, %rdi
callq 0x2360
// File: /workspace/github_cpp_makefile_star2_O1/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 %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
callq 0x21a0
movq 0x8(%rbx), %r12
cmpq 0x8(%r14), %r12
jne 0x4fda
testq %r12, %r12
je 0x502a
movq (%r14), %rsi
movq (%rbx), %rdi
movq %r12, %rdx
callq 0x2220
testl %eax, %eax
je 0x502a
incq %r12
leaq -0x48(%rbp), %r13
movq %r13, %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %r12, %rcx
callq 0x2230
leaq 0x28(%rbx), %rdi
movq %r13, %rsi
callq 0x4d1f
cmpq 0x30(%rbx), %rax
je 0x5016
movq (%rax), %rsi
movq %r15, %rdi
movq %r14, %rdx
callq 0x4f9a
movq %rax, %rbx
jmp 0x5018
xorl %ebx, %ebx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x502a
callq 0x21e0
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5051
callq 0x21e0
movq %rbx, %rdi
callq 0x2360
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x21a0
xorl %ebx, %ebx
leaq -0x1e0(%rbp), %r12
leaq -0x30(%rbp), %r13
xorl %r14d, %r14d
movl %r14d, -0x30(%rbp)
movl %ebx, -0x2c(%rbp)
movq %r12, %rdi
callq 0x2a22
movq %r15, %rdi
movq %r13, %rsi
callq 0x35f8
movq %r12, %rdi
movq %rax, %rsi
callq 0x2af0
movl -0x1e0(%rbp), %eax
movl %eax, -0x110(%rbp)
leaq -0xf8(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x1d8(%rbp), %rsi
movq -0x1d0(%rbp), %rdx
addq %rsi, %rdx
leaq -0x108(%rbp), %rdi
callq 0x3da6
leaq -0xe8(%rbp), %rdi
leaq -0x1b8(%rbp), %rsi
callq 0x7a14
leaq -0x98(%rbp), %rdi
leaq -0x168(%rbp), %rsi
callq 0x3a40
movl -0x118(%rbp), %eax
movl %eax, -0x48(%rbp)
movq %r15, %rdi
movq -0x38(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r13, %rcx
leaq -0x110(%rbp), %r8
callq 0x655c
leaq -0x98(%rbp), %rdi
callq 0x42f0
leaq -0xe8(%rbp), %rdi
callq 0x3cb8
movq -0x108(%rbp), %rdi
leaq -0xf8(%rbp), %rax
cmpq %rax, %rdi
je 0x6168
callq 0x21e0
movq %r12, %rdi
callq 0x2ba0
leaq -0x168(%rbp), %rdi
callq 0x42f0
leaq -0x1b8(%rbp), %rdi
callq 0x3cb8
movq -0x1d8(%rbp), %rdi
leaq -0x1c8(%rbp), %rax
cmpq %rax, %rdi
je 0x61a0
callq 0x21e0
incl %r14d
cmpl $0x4, %r14d
jne 0x6093
incl %ebx
cmpl $0x4, %ebx
jne 0x6090
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0xe8(%rbp), %rdi
callq 0x3cb8
jmp 0x61de
movq %rax, %rbx
movq -0x108(%rbp), %rdi
leaq -0xf8(%rbp), %rax
cmpq %rax, %rdi
je 0x620c
callq 0x21e0
jmp 0x620c
movq %rax, %rbx
leaq -0x110(%rbp), %rdi
callq 0x7800
jmp 0x620c
movq %rax, %rbx
leaq -0x1e0(%rbp), %rdi
callq 0x7800
movq %rbx, %rdi
callq 0x2360
// File: /workspace/github_cpp_makefile_star2_O1/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 $0x108, %rsp            # imm = 0x108
movq %rsi, %r14
movq %rdi, %rbx
callq 0x21a0
movq 0x18(%rbx), %r15
movq %rbx, -0x30(%rbp)
leaq 0x8(%rbx), %r12
cmpq %r12, %r15
sete %bl
je 0x6db5
leaq -0x118(%rbp), %rax
movq %rax, -0x128(%rbp)
movq 0x28(%r15), %rsi
movq 0x30(%r15), %rdx
addq %rsi, %rdx
leaq -0x128(%rbp), %rdi
callq 0x3da6
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
leaq -0x50(%rbp), %rdi
callq 0x3da6
movq -0x120(%rbp), %rdx
cmpq -0x48(%rbp), %rdx
jne 0x6d6b
testq %rdx, %rdx
je 0x6d70
movq -0x50(%rbp), %rsi
movq -0x128(%rbp), %rdi
callq 0x2220
testl %eax, %eax
sete %r13b
jmp 0x6d73
xorl %r13d, %r13d
jmp 0x6d73
movb $0x1, %r13b
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x6d85
callq 0x21e0
movq -0x128(%rbp), %rdi
leaq -0x118(%rbp), %rax
cmpq %rax, %rdi
je 0x6d9d
callq 0x21e0
testb %r13b, %r13b
jne 0x6db5
movq %r15, %rdi
callq 0x2150
movq %rax, %r15
cmpq %r12, %rax
jmp 0x6cf7
cmpq %r12, %r15
je 0x6dce
movl 0xf0(%r15), %r12d
movq %r14, %rdi
callq 0x2c4a
cmpl %eax, %r12d
jge 0x6e3d
testb $0x1, %bl
movq -0x30(%rbp), %rbx
jne 0x6de2
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7ee2
movq %r14, %rdi
callq 0x2c4a
leaq -0x50(%rbp), %rdx
movl %eax, (%rdx)
leaq -0x128(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x7e2c
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7f20
leaq -0xb0(%rbp), %rdi
callq 0x42f0
leaq -0x100(%rbp), %rbx
movq %rbx, %rdi
callq 0x3cb8
movq -0x20(%rbx), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
je 0x6e3d
callq 0x21e0
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 0x783c
jmp 0x6e7b
movq %rax, %rbx
movq -0x128(%rbp), %rdi
leaq -0x118(%rbp), %rax
cmpq %rax, %rdi
je 0x6e7b
callq 0x21e0
movq %rbx, %rdi
callq 0x2360
// File: /workspace/github_cpp_makefile_star2_O1/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 0x21a0
cmpl $0x3, (%r14)
ja 0x7029
cmpl $0x3, 0x4(%r14)
ja 0x7029
movq %r13, %rdi
movq %r14, %rsi
callq 0x3628
testb %al, %al
je 0x7029
movq %r15, -0x30(%rbp)
movq %r13, %rdi
movq %r14, %rsi
callq 0x35f8
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2af0
leaq -0x48(%rbp), %rax
movq %rax, -0x10(%rax)
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
addq %rsi, %rdx
leaq -0x58(%rbp), %r15
movq %r15, %rdi
callq 0x3da6
movq %r12, -0x38(%rbp)
movq %r12, %rdi
movq %r15, %rsi
callq 0x48c8
movl %eax, %r15d
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %r12
cmpq %r12, %rdi
je 0x6f30
callq 0x21e0
testb %r15b, %r15b
je 0x6f41
movq -0x30(%rbp), %rdi
movq %rbx, %rsi
callq 0x6cc9
leaq -0x58(%rbp), %r15
movq %r12, (%r15)
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x3da6
movq -0x38(%rbp), %rdi
movq %r15, %rsi
callq 0x48ea
movl %eax, %r15d
movq -0x58(%rbp), %rdi
cmpq %r12, %rdi
je 0x6f78
callq 0x21e0
testb %r15b, %r15b
movq -0x38(%rbp), %r12
je 0x7021
movl (%rbx), %eax
leaq -0x120(%rbp), %rdi
movl %eax, -0x8(%rdi)
leaq -0x110(%rbp), %rax
movq %rax, -0x10(%rax)
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
addq %rsi, %rdx
callq 0x3da6
leaq -0x100(%rbp), %rdi
leaq 0x28(%rbx), %rsi
callq 0x7a14
leaq -0xb0(%rbp), %rdi
leaq 0x78(%rbx), %rsi
movq %rdi, %r15
callq 0x3a40
movl 0xc8(%rbx), %eax
leaq -0x128(%rbp), %r8
movl %eax, 0xc8(%r8)
movq %r13, %rdi
movq %r12, %rsi
movq -0x30(%rbp), %rdx
movq %r14, %rcx
callq 0x655c
movq %r15, %rdi
callq 0x42f0
leaq -0x100(%rbp), %rdi
callq 0x3cb8
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
je 0x7021
callq 0x21e0
movq %rbx, %rdi
callq 0x2ba0
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 0x7800
jmp 0x7093
movq %rax, %rbx
leaq -0x100(%rbp), %rdi
callq 0x3cb8
jmp 0x7060
movq %rax, %rbx
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
jmp 0x7089
movq %rax, %rbx
movq -0x58(%rbp), %rdi
cmpq %r12, %rdi
jne 0x708e
jmp 0x7093
movq %rax, %rbx
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x7093
callq 0x21e0
movq %rbx, %rdi
callq 0x2360
// File: /workspace/github_cpp_makefile_star2_O1/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 0x247f
movq %rdi, %r14
sarq $0x3, %rsi
xorpd %xmm0, %xmm0
movq %rsp, %rdi
movapd %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
callq 0x32de
movq (%r14), %r15
movq 0x8(%r14), %r12
cmpq %r12, %r15
je 0x2431
movq (%rbx), %r13
movq %rsp, %rbx
leaq 0x28(%rsp), %r14
movsd (%r15), %xmm0
subsd (%r13), %xmm0
mulsd %xmm0, %xmm0
movsd %xmm0, 0x28(%rsp)
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x2419
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rsp)
jmp 0x2424
movq %rbx, %rdi
movq %r14, %rdx
callq 0x388a
addq $0x8, %r15
addq $0x8, %r13
cmpq %r12, %r15
jne 0x23e9
movq (%rsp), %rdi
movq 0x8(%rsp), %rax
xorpd %xmm0, %xmm0
cmpq %rax, %rdi
je 0x2453
movq %rdi, %rcx
addsd (%rcx), %xmm0
addq $0x8, %rcx
cmpq %rax, %rcx
jne 0x2446
testq %rdi, %rdi
je 0x2471
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
movsd %xmm0, 0x20(%rsp)
callq 0x2140
movsd 0x20(%rsp), %xmm0
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x2b7e(%rip), %rdi      # 0x5004
leaq 0x2b90(%rip), %rsi      # 0x501d
leaq 0x2b99(%rip), %rcx      # 0x502d
movl $0xf, %edx
callq 0x20b0
jmp 0x24a0
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x24b9
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2140
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O1/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 %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x30(%rsp), %rdi
movl $0x18, %edx
callq 0x21a0
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x30(%rsp), %r14
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
movl $0x2c, %edx
callq 0x2200
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x259e
movq (%rsp), %r13
callq 0x2030
movq %rax, %rbp
movl (%rax), %r12d
movl $0x0, (%rax)
movq %r13, %rdi
leaq 0x28(%rsp), %rsi
callq 0x20f0
cmpq %r13, 0x28(%rsp)
je 0x25ec
movl (%rbp), %eax
testl %eax, %eax
je 0x256a
cmpl $0x22, %eax
jne 0x256e
jmp 0x25f8
movl %r12d, (%rbp)
movsd %xmm0, 0x20(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x258c
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x250e
movq %rbx, %rdi
leaq 0x20(%rsp), %rdx
callq 0x388a
jmp 0x250e
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x25b9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
movq 0x49f8(%rip), %rsi      # 0x6fb8
leaq 0x30(%rsp), %rdi
callq 0x20e0
leaq 0xb0(%rsp), %rdi
callq 0x2050
movq %rbx, %rax
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2ace(%rip), %rdi      # 0x50c1
callq 0x20a0
leaq 0x2ac2(%rip), %rdi      # 0x50c1
callq 0x2170
movq %rax, %r14
jmp 0x2656
jmp 0x260b
movq %rax, %r14
jmp 0x261d
movq %rax, %r14
cmpl $0x0, (%rbp)
jne 0x261d
movl %r12d, (%rbp)
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2638
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
movq 0x4979(%rip), %rsi      # 0x6fb8
leaq 0x30(%rsp), %rdi
callq 0x20e0
leaq 0xb0(%rsp), %rdi
callq 0x2050
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x266a
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x2140
movq %r14, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O1/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 %r12
pushq %rbx
subq $0x30, %rsp
movq 0x2cc6(%rip), %rbx      # 0x3fd8
xorps %xmm0, %xmm0
movq %rbx, %rdi
callq 0x1130
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x10d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1090
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1150
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x10d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1090
leaq -0x24(%rbp), %r14
movl $0x5, (%r14)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x1140
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x10d0
movsbl %al, %esi
movq %r15, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1090
leaq -0x38(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0xc37(%rip), %rsi       # 0x2004
leaq 0xc41(%rip), %rdx       # 0x2015
leaq -0x48(%rbp), %r15
movq %r15, %rdi
callq 0x1510
leaq -0x28(%rbp), %rcx
movl $0x2a, (%rcx)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x148f
movq 0x2bd9(%rip), %rdi      # 0x3fd8
leaq -0x24(%rbp), %rsi
leaq -0x48(%rbp), %rdx
callq 0x14d5
movl -0x24(%rbp), %esi
movq 0x2bc2(%rip), %rbx      # 0x3fd8
movq %rbx, %rdi
callq 0x1150
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x10d0
movsbl %al, %esi
movq 0x2b9c(%rip), %rdi      # 0x3fd8
callq 0x1030
movq %rax, %rdi
callq 0x1090
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x145e
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x10e0
xorl %eax, %eax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x146f
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x1487
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x10e0
movq %rbx, %rdi
callq 0x1170
// File: /workspace/github_cpp_makefile_star2_O1/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 %rbx
movq %rdi, %rbx
movsd 0x1e936(%rip), %xmm1    # 0x25030
movsd %xmm1, 0x8(%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x2c57a(%rip), %rax     # 0x32c88
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, 0x2db2d(%rip)     # 0x34258
imulq %rsi, %rsi
movq %rsi, %rdi
callq 0x5030
movq %rax, 0x28(%rbx)
cmpq $0x0, 0x18(%rbx)
je 0x6799
xorl %r14d, %r14d
cmpq $0x0, 0x18(%rbx)
je 0x6790
xorl %r15d, %r15d
callq 0x51f0
cvtsd2ss %xmm0, %xmm0
ucomiss 0x30(%rbx), %xmm0
jae 0x6787
callq 0x51a0
movl 0x2daeb(%rip), %ecx     # 0x34254
andl $0x1, %ecx
xorq $0x3, %rcx
cqto
idivq %rcx
incb %dl
movq 0x18(%rbx), %rax
imulq %r14, %rax
addq 0x28(%rbx), %rax
movb %dl, (%r15,%rax)
incq %r15
cmpq 0x18(%rbx), %r15
jb 0x674f
incq %r14
cmpq 0x18(%rbx), %r14
jb 0x6745
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x9602
leaq 0x1bb58(%rip), %rax     # 0x250d8
movslq (%rax,%rdx,4), %rdx
addq %rax, %rdx
jmpq *%rdx
movq 0x2acc8(%rip), %rsi     # 0x34258
movq %rcx, %rax
xorl %edx, %edx
divq %rsi
testq %rdx, %rdx
je 0x9602
imull %eax, %esi
leal (%rdx,%rsi), %ecx
decl %ecx
jmp 0x9602
movq 0x2acaa(%rip), %rsi     # 0x34258
movq %rcx, %rax
xorl %edx, %edx
divq %rsi
leaq -0x1(%rsi), %r8
cmpq %rdx, %r8
je 0x9602
imull %eax, %esi
leal (%rdx,%rsi), %ecx
incl %ecx
jmp 0x9602
movq 0x2ac88(%rip), %rsi     # 0x34258
cmpq %rcx, %rsi
ja 0x9602
movq %rcx, %rax
xorl %edx, %edx
divq %rsi
decl %eax
jmp 0x95fb
movq 0x2ac70(%rip), %rsi     # 0x34258
movq %rcx, %rax
xorl %edx, %edx
divq %rsi
leaq -0x1(%rsi), %r8
cmpq %rax, %r8
je 0x9602
incl %eax
imull %eax, %esi
addl %edx, %esi
movl %esi, %ecx
movl %ecx, (%rdi)
movq %rdi, %rax
retq
// File: /workspace/github_cpp_makefile_star2_O1/bonetblai[P]mdp-engine/wet/../engine/hash.h
// Function: Hash::hash_map_t<state_t, Hash::hash_function_t<state_t>>::scc_low(state_t const&) const
size_t scc_low(const T &s) const {
        const_iterator di = lookup(s);
        if( di == end() )
            return std::numeric_limits<unsigned>::max();
        else
            return (*di).second->scc_low();
    }

// Assembly:
pushq %rbx
movq %rsi, %rcx
leaq 0x8(%rdi), %rsi
movl (%rcx), %r8d
xorl %ebx, %ebx
movq %r8, %rax
xorl %edx, %edx
divq 0x10(%rdi)
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
movq %r8, %rcx
callq 0xb44c
testq %rax, %rax
je 0xb823
movq (%rax), %rbx
testq %rbx, %rbx
je 0xb832
movq 0x10(%rbx), %rax
movq 0x18(%rax), %rax
jmp 0xb837
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/statgen[P]statgen/lib/samtools-0.1.7a-hybrid/misc/wgsim.c
// Function: ran_normal
double ran_normal()
{ 
	static int iset = 0; 
	static double gset; 
	double fac, rsq, v1, v2; 
	if (iset == 0) {
		do { 
			v1 = 2.0 * drand48() - 1.0;
			v2 = 2.0 * drand48() - 1.0; 
			rsq = v1 * v1 + v2 * v2;
		} while (rsq >= 1.0 || rsq == 0.0);
		fac = sqrt(-2.0 * log(rsq) / rsq); 
		gset = v1 * fac; 
		iset = 1;
		return v2 * fac;
	} else {
		iset = 0;
		return gset;
	}
}

// Assembly:
cmpb $0x0, 0x3bcd(%rip)      # 0x6140
je 0x2589
movb $0x0, 0x3bc4(%rip)      # 0x6140
movsd 0x3bc4(%rip), %xmm1     # 0x6148
jmp 0x2645
subq $0x18, %rsp
callq 0x11f0
movapd %xmm0, %xmm1
addsd %xmm0, %xmm1
movsd 0x1a66(%rip), %xmm0     # 0x4008
addsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
callq 0x11f0
addsd %xmm0, %xmm0
addsd 0x1a4c(%rip), %xmm0     # 0x4008
movapd %xmm0, %xmm1
mulsd %xmm0, %xmm1
movsd (%rsp), %xmm2
mulsd %xmm2, %xmm2
addsd %xmm1, %xmm2
ucomisd 0x1a37(%rip), %xmm2     # 0x4010
jae 0x258d
ucomisd 0x1a3d(%rip), %xmm2     # 0x4020
jne 0x25e7
jnp 0x258d
movsd %xmm0, 0x10(%rsp)
movapd %xmm2, %xmm0
movsd %xmm2, 0x8(%rsp)
callq 0x10f0
mulsd 0x1a14(%rip), %xmm0     # 0x4018
divsd 0x8(%rsp), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x261a
sqrtsd %xmm0, %xmm0
jmp 0x261f
callq 0x11d0
movsd (%rsp), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x3b18(%rip)     # 0x6148
movb $0x1, 0x3b09(%rip)      # 0x6140
movsd 0x10(%rsp), %xmm1
mulsd %xmm0, %xmm1
addq $0x18, %rsp
movapd %xmm1, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O1/statgen[P]statgen/lib/samtools-0.1.7a-hybrid/misc/wgsim.c
// Function: err_xopen_core
FILE *err_xopen_core(const char *func, const char *fn, const char *mode)
{
	FILE *fp = 0;
	if (strcmp(fn, "-") == 0)
		return (strstr(mode, "r"))? stdin : stdout;
	if ((fp = fopen(fn, mode)) == 0) {
		fprintf(stderr, "[%s] fail to open file '%s'. Abort!\n", func, fn);
		abort();
	}
	return fp;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x1e96(%rip), %rsi      # 0x46f3
movq %rbx, %rdi
callq 0x1120
testl %eax, %eax
je 0x289c
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1150
testq %rax, %rax
jne 0x28c1
movq 0x3778(%rip), %rax      # 0x5ff8
movq (%rax), %rdi
leaq 0x1948(%rip), %rsi      # 0x41d2
movq %r14, %rdx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x1130
callq 0x1050
movq %r15, %rdi
movl $0x72, %esi
callq 0x1090
testq %rax, %rax
jne 0x28b7
movq 0x370b(%rip), %rax      # 0x5fc0
jmp 0x28be
movq 0x370a(%rip), %rax      # 0x5fc8
movq (%rax), %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x7314
pushq %rbx
movq %rsi, %rbx
addq %rsi, %rdi
addq $0x7, %rdi
callq 0x5340
testq %rax, %rax
je 0x7318
movq $-0x8, %rcx
subq %rax, %rcx
decq %rbx
andq %rcx, %rbx
leaq (%rax,%rbx), %rcx
addq $0x8, %rcx
movq %rax, (%rax,%rbx)
jmp 0x731a
xorl %ecx, %ecx
jmp 0x731b
xorl %ecx, %ecx
popq %rbx
movq %rcx, %rax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/dragazo[P]cpp-gc/GarbageCollection.cpp
// Function: GC::obj_list::add(GC::info*)
void GC::obj_list::add(info *obj)
{
	// put it at the end of the list
	obj->prev = last;
	obj->next = nullptr;

	// link the other way as well - account for edge cases
	if (last) last = last->next = obj;
	else first = last = obj;
}

// Assembly:
leaq 0x8(%rdi), %rax
movq 0x8(%rdi), %rcx
leaq 0x38(%rcx), %rdx
xorl %r8d, %r8d
testq %rcx, %rcx
setne %r8b
movq %rcx, 0x30(%rsi)
movq $0x0, 0x38(%rsi)
cmoveq %rax, %rdx
movq %rsi, (%rdx)
movq %rsi, (%rdi,%r8,8)
retq
// File: /workspace/github_cpp_makefile_star2_O1/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), %rax
cmpq %rsi, %rax
je 0x738c
movq 0x8(%rdi), %rax
cmpq %rsi, %rax
je 0x73a7
movq 0x30(%rsi), %rax
movq 0x38(%rsi), %rcx
movq %rcx, 0x38(%rax)
movq 0x38(%rsi), %rcx
movq %rax, 0x30(%rcx)
retq
cmpq %rsi, 0x8(%rdi)
je 0x73b8
cmpq %rsi, %rax
jne 0x736e
movq 0x38(%rax), %rax
movq %rax, (%rdi)
movq $0x0, 0x30(%rax)
retq
movq 0x30(%rax), %rax
movq %rax, 0x8(%rdi)
movq $0x0, 0x38(%rax)
retq
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x7480
cmpq $0x0, 0x60(%rbx)
jne 0x74fd
leaq 0x48(%rbx), %r14
leaq 0x1b0(%rbx), %rdi
callq 0x9274
leaq 0x178(%rbx), %rdi
callq 0x92e4
leaq 0x140(%rbx), %rdi
callq 0x92e4
leaq 0x108(%rbx), %rdi
callq 0x9354
leaq 0xd0(%rbx), %rdi
callq 0x9354
subq $-0x80, %rbx
movq %rbx, %rdi
callq 0x9354
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x92e4
movq 0x2bb69(%rip), %rdi     # 0x32ff0
leaq 0x18bff(%rip), %rsi     # 0x2008d
movl $0x59, %edx
callq 0x52e0
movq 0x38(%rbx), %rsi
movq 0x2bb4d(%rip), %rdi     # 0x32ff0
callq 0x5210
leaq 0x5(%rsp), %rsi
movb $0x20, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x52e0
movq 0x38(%rbx), %rcx
movq 0x38(%rcx), %rsi
movq %rax, %rdi
callq 0x5210
leaq 0x6(%rsp), %rsi
movb $0xa, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x52e0
movq 0x60(%rbx), %rsi
movq %rax, %rdi
callq 0x51b0
movq %rax, %rdi
movl $0xa, %esi
callq 0x5300
jmp 0x7557
movq 0x2baec(%rip), %rdi     # 0x32ff0
leaq 0x18bdc(%rip), %rsi     # 0x200e7
movl $0x57, %edx
callq 0x52e0
movq 0x60(%rbx), %rsi
movq 0x2bad0(%rip), %rdi     # 0x32ff0
callq 0x51b0
leaq 0x7(%rsp), %rsi
movb $0xa, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x52e0
movq 0x58(%rbx), %rcx
movq 0x8(%rcx), %rsi
movq %rax, %rdi
callq 0x5210
movq %rax, %rdi
movl $0xa, %esi
callq 0x5300
callq 0x5160
movq %rax, %rdi
callq 0x90ea
// File: /workspace/github_cpp_makefile_star2_O1/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 0x5380
testl %eax, %eax
jne 0x7c06
movq $0x0, (%r14)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7c20
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5200
movl %eax, %edi
callq 0x51a0
movq %rax, %r14
movq %rbx, %rdi
callq 0x5200
movq %r14, %rdi
callq 0x5430
// File: /workspace/github_cpp_makefile_star2_O1/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 0x7c6a
leaq 0x140(%rbx), %rdi
leaq 0x8(%rsp), %rsi
movq %r14, (%rsi)
movq %rsp, %r15
movq %rdi, (%r15)
movq %r15, %rdx
callq 0x9d2c
addq $0x178, %rbx            # imm = 0x178
movq %r14, (%r15)
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x944e
jmp 0x7c98
cmpq $0x0, 0x158(%rbx)
jne 0x7ca2
cmpq $0x0, 0x190(%rbx)
jne 0x7cc1
addq $0x48, %rbx
leaq 0x8(%rsp), %rsi
movq %r14, (%rsi)
movq %rsp, %rdx
movq %rbx, (%rdx)
movq %rbx, %rdi
callq 0x9d2c
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x184e7(%rip), %rdi     # 0x20190
leaq 0x184a6(%rip), %rsi     # 0x20156
leaq 0x18633(%rip), %rcx     # 0x202ea
movl $0x274, %edx            # imm = 0x274
callq 0x5190
leaq 0x184e0(%rip), %rdi     # 0x201a8
leaq 0x18487(%rip), %rsi     # 0x20156
leaq 0x18614(%rip), %rcx     # 0x202ea
movl $0x275, %edx            # imm = 0x275
callq 0x5190
// File: /workspace/github_cpp_makefile_star2_O1/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 %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rdx, 0x8(%rsp)
callq 0x5380
testl %eax, %eax
jne 0x7d82
movq 0x8(%rsp), %rax
movq %rax, (%r14)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7c20
movq 0x8(%rsp), %rax
movq $0x1, 0x20(%rax)
cmpq $0x0, 0x28(%rbx)
je 0x7d41
leaq 0x108(%rbx), %rdi
leaq 0x10(%rsp), %rdx
movq %rdi, (%rdx)
leaq 0x8(%rsp), %rsi
callq 0x9816
jmp 0x7d72
cmpq $0x0, 0x120(%rbx)
jne 0x7d89
movq 0x40(%rbx), %rcx
movq %rcx, 0x30(%rax)
movq $0x0, 0x38(%rax)
testq %rcx, %rcx
je 0x7d6a
movq %rax, 0x38(%rcx)
movq %rax, 0x40(%rbx)
jmp 0x7d72
movq %rax, 0x40(%rbx)
movq %rax, 0x38(%rbx)
movq %rbx, %rdi
callq 0x5200
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movl %eax, %edi
callq 0x51a0
leaq 0x183af(%rip), %rdi     # 0x2013f
leaq 0x183bf(%rip), %rsi     # 0x20156
leaq 0x1846f(%rip), %rcx     # 0x2020d
movl $0x1dd, %edx            # imm = 0x1DD
callq 0x5190
movq %rax, %r14
movq %rbx, %rdi
callq 0x5200
movq %r14, %rdi
callq 0x5430
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x5380
testl %eax, %eax
jne 0x7e11
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7e74
testq %rax, %rax
je 0x7df6
movq 0x8(%r14), %rcx
cmpq 0x18(%rax), %rcx
jne 0x7e18
movq %rax, (%r14)
incq 0x20(%rax)
jmp 0x7df9
movq %rax, (%r14)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7c20
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x5200
movl %eax, %edi
callq 0x51a0
movl $0x10, %edi
callq 0x5110
movq %rax, %r14
leaq 0x18437(%rip), %rsi     # 0x20263
movq %rax, %rdi
callq 0x5460
leaq 0x2a4b5(%rip), %rax     # 0x322f0
movq %rax, (%r14)
leaq 0x2a483(%rip), %rsi     # 0x322c8
movq 0x2b154(%rip), %rdx     # 0x32fa0
movq %r14, %rdi
callq 0x53f0
movq %rax, %r15
movq %r14, %rdi
callq 0x51f0
jmp 0x7e64
movq %rax, %r15
movq %rbx, %rdi
callq 0x5200
movq %r15, %rdi
callq 0x5430
// File: /workspace/github_cpp_makefile_star2_O1/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), %r14
movq %rdi, (%r14)
movb $0x0, 0x8(%r14)
movq %r14, %rdi
callq 0x9bc2
movb $0x1, 0x8(%r14)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7e74
movq %rax, %r14
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7fb8
leaq 0x1b0(%rbx), %rdi
leaq 0x28(%rsp), %rsi
movq %r15, (%rsi)
callq 0x9bfe
movq 0x8(%rsp), %rax
leaq 0x18(%rsp), %rdx
movq %rax, (%rdx)
movb 0x10(%rsp), %al
movb %al, 0x8(%rdx)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8068
leaq 0x18(%rsp), %rdi
callq 0x90f6
leaq 0x8(%rsp), %rdi
callq 0x90f6
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x90f6
jmp 0x7fa5
jmp 0x7fa2
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x90f6
movq %rbx, %rdi
callq 0x5430
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x7ffa
leaq 0x178(%rbx), %rdi
leaq 0x8(%rsp), %rsi
movq %r14, (%rsi)
movq %rsp, %r15
movq %rdi, (%r15)
movq %r15, %rdx
callq 0x9d2c
addq $0x140, %rbx            # imm = 0x140
movq %r14, (%r15)
movq %rsp, %rsi
jmp 0x8018
cmpq $0x0, 0x158(%rbx)
jne 0x802a
cmpq $0x0, 0x190(%rbx)
jne 0x8049
addq $0x48, %rbx
movq %rsp, %rsi
movq %r14, (%rsi)
movq %rbx, %rdi
callq 0x944e
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x1815f(%rip), %rdi     # 0x20190
leaq 0x1811e(%rip), %rsi     # 0x20156
leaq 0x182f2(%rip), %rcx     # 0x20331
movl $0x286, %edx            # imm = 0x286
callq 0x5190
leaq 0x18158(%rip), %rdi     # 0x201a8
leaq 0x180ff(%rip), %rsi     # 0x20156
leaq 0x182d3(%rip), %rcx     # 0x20331
movl $0x287, %edx            # imm = 0x287
callq 0x5190
// File: /workspace/github_cpp_makefile_star2_O1/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 %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, 0x8(%rsp)
testq %rsi, %rsi
je 0x807f
decq 0x20(%rsi)
je 0x8087
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movq %rdx, %rbx
movq 0x108(%rdi), %r8
movq 0x110(%rdi), %r9
xorl %r11d, %r11d
movq %rsi, %rax
xorl %edx, %edx
divq %r9
movq (%r8,%rdx,8), %rax
testq %rax, %rax
je 0x80ea
movq (%rax), %r10
movq %rax, %r11
cmpq %rsi, 0x8(%r10)
je 0x80ea
movq %rdx, %rcx
movq %r10, %r14
movq (%r10), %r10
testq %r10, %r10
je 0x80e7
movq 0x8(%r10), %r8
movq %r8, %rax
xorl %edx, %edx
divq %r9
movl $0x0, %r11d
cmpq %rcx, %rdx
jne 0x80ea
movq %r14, %r11
cmpq %rsi, %r8
jne 0x80bb
jmp 0x80ea
xorl %r11d, %r11d
testq %r11, %r11
je 0x8129
cmpq $0x0, (%r11)
je 0x8129
addq $0x108, %rdi            # imm = 0x108
leaq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0x9adc
movq %rbx, %rdi
callq 0x910c
movq (%r14), %rdi
movq 0x10(%rdi), %rax
callq *(%rax)
movq (%r14), %rdi
movq 0x10(%rdi), %rax
callq *0x8(%rax)
jmp 0x807f
cmpb $0x0, 0xc8(%rdi)
je 0x8157
cmpq $0x0, 0x28(%rdi)
je 0x8186
addq $0xd0, %rdi
leaq 0x10(%rsp), %rdx
movq %rdi, (%rdx)
leaq 0x8(%rsp), %rsi
callq 0x9816
jmp 0x807f
addq $0x38, %rdi
callq 0x7366
movq %rbx, %rdi
callq 0x910c
movq 0x8(%rsp), %rdi
movq 0x10(%rdi), %rax
callq *(%rax)
movq 0x8(%rsp), %rdi
movq 0x10(%rdi), %rax
addq $0x18, %rsp
popq %rbx
popq %r14
jmpq *0x8(%rax)
leaq 0x1823d(%rip), %rdi     # 0x203ca
leaq 0x17fc2(%rip), %rsi     # 0x20156
leaq 0x18255(%rip), %rcx     # 0x203f0
movl $0x2d1, %edx            # imm = 0x2D1
callq 0x5190
nop
// File: /workspace/github_cpp_makefile_star2_O1/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, %r14
movq %rdi, (%r14)
movb $0x0, 0x8(%r14)
movq %r14, %rdi
callq 0x9bc2
movb $0x1, 0x8(%r14)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7e74
movq %rax, %r14
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x829a
movq (%rsp), %rax
leaq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movb 0x8(%rsp), %al
movb %al, 0x8(%rdx)
movq $0x0, (%rsp)
movb $0x0, 0x8(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8068
leaq 0x10(%rsp), %rdi
callq 0x90f6
movq %rsp, %rdi
callq 0x90f6
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x90f6
jmp 0x8289
movq %rax, %rbx
movq %rsp, %rdi
callq 0x90f6
movq %rbx, %rdi
callq 0x5430
nop
// File: /workspace/github_cpp_makefile_star2_O1/dragazo[P]cpp-gc/GarbageCollection.cpp
// Function: GC::disjoint_module::__raw_schedule_handle_repoint(GC::smart_handle&, GC::info*)
void GC::disjoint_module::__raw_schedule_handle_repoint(smart_handle &handle, info *target)
{
	// 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(handle_repoint_cache.empty());

		// immediately repoint handle to target
		handle.raw = target;
	}
	// otherwise we need to cache the request
	else handle_repoint_cache[&handle.raw] = target;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
cmpq $0x0, 0x28(%rdi)
je 0x82c5
addq $0x1b0, %rdi            # imm = 0x1B0
leaq 0x8(%rsp), %rax
movq %rsi, (%rax)
movq %rax, %rsi
callq 0x9dd0
movq %rbx, (%rax)
jmp 0x82d2
cmpq $0x0, 0x1c8(%rdi)
jne 0x82d8
movq %rbx, (%rsi)
addq $0x10, %rsp
popq %rbx
retq
leaq 0x17ee4(%rip), %rdi     # 0x201c3
leaq 0x17e70(%rip), %rsi     # 0x20156
leaq 0x1808d(%rip), %rcx     # 0x2037a
movl $0x299, %edx            # imm = 0x299
callq 0x5190
nop
// File: /workspace/github_cpp_makefile_star2_O1/dragazo[P]cpp-gc/GarbageCollection.cpp
// Function: GC::disjoint_module::schedule_handle_repoint(GC::smart_handle&, GC::smart_handle const&)
void GC::disjoint_module::schedule_handle_repoint(smart_handle &handle, const smart_handle &new_value)
{
	std::unique_lock<std::mutex> internal_lock(internal_mutex);
	
	// get the old/new targets
	info *old_target = __get_current_target(handle);
	info *new_target = __get_current_target(new_value);

	#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 (new_target && handle.disjunction != new_target->disjunction)
	{
		throw GC::disjunction_error("attempt to repoint GC::ptr outside of the current disjunction");
	}

	#endif

	// only do the remaining logic if it's an actual repoint
	if (old_target != new_target)
	{
		// repoint handle to the new target
		__raw_schedule_handle_repoint(handle, new_target);

		// increment new target reference count
		if (new_target) ++new_target->ref_count;

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

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %rdi, (%r14)
movb $0x0, 0x8(%r14)
movq %r14, %rdi
callq 0x9bc2
movb $0x1, 0x8(%r14)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7e74
movq %rax, %r14
movq %rbx, %rdi
movq %r12, %rsi
callq 0x7e74
movq %rax, %r12
testq %rax, %rax
je 0x8352
movq 0x8(%r15), %rax
cmpq 0x18(%r12), %rax
jne 0x83bc
cmpq %r12, %r14
je 0x83a6
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x829a
testq %r12, %r12
je 0x836f
incq 0x20(%r12)
movq 0x8(%rsp), %rax
leaq 0x18(%rsp), %rdx
movq %rax, (%rdx)
movb 0x10(%rsp), %al
movb %al, 0x8(%rdx)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8068
leaq 0x18(%rsp), %rdi
callq 0x90f6
leaq 0x8(%rsp), %rdi
callq 0x90f6
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl $0x10, %edi
callq 0x5110
movq %rax, %r14
leaq 0x17e93(%rip), %rsi     # 0x20263
movq %rax, %rdi
callq 0x5460
leaq 0x29f11(%rip), %rax     # 0x322f0
movq %rax, (%r14)
leaq 0x29edf(%rip), %rsi     # 0x322c8
movq 0x2abb0(%rip), %rdx     # 0x32fa0
movq %r14, %rdi
callq 0x53f0
movq %rax, %rbx
movq %r14, %rdi
callq 0x51f0
jmp 0x8417
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x90f6
jmp 0x8417
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x90f6
movq %rbx, %rdi
callq 0x5430
nop