LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/ChaohuiYu[P]BPlusTree/SlottedPageStructure.cpp
// Function: SlottedPageStructure::queryRecord[abi:cxx11](int)
string SlottedPageStructure::queryRecord(int rid) {
    int spaceId = rid2spaceId(rid);
    if (spaceId >= _records.size()) {
        cerr << "error: in queryRecord, spaceId out of range\n";
        return "";
    }
    if (_recordsExist[spaceId] == false) {
        cerr << "error: in queryRecord, record has been deleted\n";
        return "";
    }
    return _records[spaceId];
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %eax
movb 0x4(%rsi), %cl
shlb $0x3, %cl
movl %edx, %r8d
sarl %cl, %r8d
imull 0x1c(%rsi), %r8d
movl $0x1, %r9d
shll %cl, %r9d
movq %rdi, %rbx
cltd
idivl %r9d
addl %r8d, %edx
movslq %edx, %rax
movq 0x28(%rsi), %rdx
movq 0x20(%rsi), %rcx
subq %rcx, %rdx
sarq $0x5, %rdx
cmpq %rax, %rdx
jbe 0x77a9
leaq 0x3f(%rax), %rdx
testq %rax, %rax
cmovnsq %rax, %rdx
sarq $0x6, %rdx
shlq $0x3, %rdx
addq 0x38(%rsi), %rdx
movabsq $-0x8000000000000000, %rsi # imm = 0x8000000000000000
leaq 0x3f(%rsi), %rdi
andq %rax, %rdi
xorl %r8d, %r8d
cmpq %rsi, %rdi
setbe %r8b
movq -0x8(%rdx,%r8,8), %rdx
leaq 0x10(%rbx), %r14
btq %rax, %rdx
jae 0x77ca
shlq $0x5, %rax
movq %r14, (%rbx)
movq (%rcx,%rax), %rsi
movq 0x8(%rcx,%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x42ae
jmp 0x77f7
movq 0x8840(%rip), %rdi      # 0xfff0
leaq 0x3e68(%rip), %rsi      # 0xb61f
movl $0x2c, %edx
callq 0x2220
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
jmp 0x77e5
movq 0x881f(%rip), %rdi      # 0xfff0
leaq 0x3e74(%rip), %rsi      # 0xb64c
movl $0x2f, %edx
callq 0x2220
movq %r14, (%rbx)
leaq 0x3a00(%rip), %rdx      # 0xb1ec
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x2692
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/ChaohuiYu[P]BPlusTree/SlottedPageStructure.cpp
// Function: SlottedPageStructure::print()
void SlottedPageStructure::print() {
    cout << "slot num per page: " << _slotNum << endl;
    cout << "filled slot num: " << _records.size() - _freeSpaces.size() << endl;
    for (int spaceId = 0; spaceId < _records.size(); ++spaceId) {
        if (_recordsExist[spaceId]) {
            cout << "pageId: " << spaceId2pageId(spaceId);
            cout << ", slotId: " << spaceId2slotId(spaceId);
            // cout << ", rid: " << spaceId2rid(spaceId);
            cout << ", record: \"" << _records[spaceId] << "\"" << endl;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x87b9(%rip), %r14      # 0xffd0
leaq 0x3e5e(%rip), %rsi      # 0xb67c
movl $0x13, %edx
movq %r14, %rdi
callq 0x2220
movl 0x1c(%rbx), %esi
movq %r14, %rdi
callq 0x22c0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
leaq 0x3e29(%rip), %rsi      # 0xb690
movl $0x11, %edx
movq %r14, %rdi
callq 0x2220
movq 0x28(%rbx), %rsi
movq 0x68(%rbx), %rax
subq 0x20(%rbx), %rsi
sarq $0x5, %rsi
subq 0x60(%rbx), %rax
sarq $0x2, %rax
subq %rax, %rsi
movq %r14, %rdi
callq 0x2130
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq 0x28(%rbx), %rax
cmpq 0x20(%rbx), %rax
je 0x79c8
movl $0x8, %ebp
xorl %r14d, %r14d
movq 0x86f2(%rip), %r15      # 0xffd0
leaq 0x3ddb(%rip), %r12      # 0xb6c0
movq 0x38(%rbx), %rax
movq %r14, %rcx
shrq $0x6, %rcx
movq (%rax,%rcx,8), %rax
btq %r14, %rax
jae 0x79ac
movl $0x8, %edx
movq %r15, %rdi
leaq 0x3d95(%rip), %rsi      # 0xb6a2
callq 0x2220
movl %r14d, %eax
cltd
idivl 0x1c(%rbx)
movq %r15, %rdi
movl %eax, %esi
callq 0x22c0
movl $0xa, %edx
movq %r15, %rdi
leaq 0x3d79(%rip), %rsi      # 0xb6ab
callq 0x2220
movl %r14d, %eax
cltd
idivl 0x1c(%rbx)
movq %r15, %rdi
movl %edx, %esi
callq 0x22c0
movl $0xb, %edx
movq %r15, %rdi
leaq 0x3d5f(%rip), %rsi      # 0xb6b6
callq 0x2220
movq 0x20(%rbx), %rax
movq -0x8(%rax,%rbp), %rsi
movq (%rax,%rbp), %rdx
movq %r15, %rdi
callq 0x2220
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2220
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %r13, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq 0x28(%rbx), %rax
subq 0x20(%rbx), %rax
incq %r14
sarq $0x5, %rax
addq $0x20, %rbp
cmpq %r14, %rax
ja 0x78e5
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/ChaohuiYu[P]BPlusTree/SlottedPageStructure.cpp
// Function: SlottedPageStructure::printPage(int)
void SlottedPageStructure::printPage(int pageId) {
    cout << "Records in page " << pageId << ":" << endl;
    int pageNum = getPageNum();
    if (pageId >= pageNum) {
        cout << "    error: page " << pageId << " doesn't exist." << endl;
        return;
    }
    for (int spaceId = pageId * _slotNum; spaceId < (pageId+1) * _slotNum; ++spaceId) {
        cout << "    slot " << spaceId2slotId(spaceId) << ": ";
        if (_recordsExist[spaceId]) {
            cout << _records[spaceId];
        }
        cout << endl;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movq 0x85cf(%rip), %r14      # 0xffd0
leaq 0x3cba(%rip), %rsi      # 0xb6c2
movl $0x10, %edx
movq %r14, %rdi
callq 0x2220
movq %r14, %rdi
movl %ebp, %esi
callq 0x22c0
movq %rax, %r15
leaq 0x3b2b(%rip), %rsi      # 0xb554
movl $0x1, %edx
movq %rax, %rdi
callq 0x2220
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq 0x28(%rbx), %rax
subq 0x20(%rbx), %rax
sarq $0x5, %rax
decq %rax
movslq 0x1c(%rbx), %r15
xorl %edx, %edx
divq %r15
incl %eax
cmpl %ebp, %eax
jle 0x7b87
movslq %ebp, %rbp
imulq %rbp, %r15
incq %rbp
movl 0x1c(%rbx), %eax
imull %ebp, %eax
cmpl %eax, %r15d
jge 0x7b78
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %r15, %r12
shlq $0x5, %r12
orq $0x8, %r12
leaq 0x3f(%rax), %r13
movl $0x9, %edx
movq %r14, %rdi
leaq 0x3c34(%rip), %rsi      # 0xb6f4
callq 0x2220
movl %r15d, %eax
cltd
idivl 0x1c(%rbx)
movq %r14, %rdi
movl %edx, %esi
callq 0x22c0
movl $0x2, %edx
movq %rax, %rdi
leaq 0x3a1f(%rip), %rsi      # 0xb504
callq 0x2220
leaq 0x3f(%r15), %rax
testq %r15, %r15
cmovnsq %r15, %rax
sarq $0x6, %rax
shlq $0x3, %rax
addq 0x38(%rbx), %rax
movq %r15, %rcx
andq %r13, %rcx
xorl %edx, %edx
movabsq $-0x8000000000000000, %rsi # imm = 0x8000000000000000
cmpq %rsi, %rcx
setbe %dl
movq -0x8(%rax,%rdx,8), %rax
btq %r15, %rax
jae 0x7b39
movq 0x20(%rbx), %rax
movq -0x8(%rax,%r12), %rsi
movq (%rax,%r12), %rdx
movq %r14, %rdi
callq 0x2220
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
incq %r15
movslq 0x1c(%rbx), %rax
imulq %rbp, %rax
addq $0x20, %r12
cmpq %rax, %r15
jl 0x7ab1
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8442(%rip), %rbx      # 0xffd0
leaq 0x3b3e(%rip), %rsi      # 0xb6d3
movl $0x10, %edx
movq %rbx, %rdi
callq 0x2220
movq %rbx, %rdi
movl %ebp, %esi
callq 0x22c0
movq %rax, %rbx
leaq 0x3b2e(%rip), %rsi      # 0xb6e4
movl $0xf, %edx
movq %rax, %rdi
callq 0x2220
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2140
// File: /workspace/github_cpp_makefile_star2_O1/ChaohuiYu[P]BPlusTree/BPlusTree.cpp
// Function: BPlusTree<int>::BPlusTree(int)
BPT<T>::BPT(int maxKeyCount) {
    _maxKeyCount = maxKeyCount;
    _root = new BPT_NODE(true, true, _maxKeyCount);
    _nodeCount = 1;
    _leafCount = 1;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movl %esi, 0x8(%rdi)
movl $0x38, %edi
callq 0x21d0
movq %rax, %r14
movq %rax, %rdi
movl $0x1, %esi
movl $0x1, %edx
movl %ebp, %ecx
callq 0x8d18
movq %r14, (%rbx)
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, 0xc(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movl $0x38, %esi
movq %r14, %rdi
callq 0x21e0
movq %rbx, %rdi
callq 0x22e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/ChaohuiYu[P]BPlusTree/BPlusTree.cpp
// Function: BPlusTree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::checkKeyExist(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool BPT<T>::checkKeyExist(T key) {
    BPT_NODE* leaf = findLeaf(key);

    // if key in leaf->_keys, don't insert
    FOR(i, 0, leaf->_keyCount)
        if (key == leaf->_keys[i])
            return true;

    return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rax
movq %rdi, %r14
leaq 0x18(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rsi), %rsi
movq %rax, (%rsp)
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x42ae
movq %r14, %rdi
movq %r15, %rsi
callq 0x93fc
movq %rax, %r14
movq (%r15), %rdi
cmpq %rbx, %rdi
je 0x9381
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21e0
movslq 0x4(%r14), %r15
testq %r15, %r15
setg %bpl
jle 0x93e7
movq 0x10(%r14), %r12
movq (%rsp), %rax
movq 0x8(%rax), %r14
addq $0x8, %r12
movq %r15, %r13
negq %r13
movl $0x1, %ebx
cmpq (%r12), %r14
jne 0x93cc
testq %r14, %r14
je 0x93e7
movq -0x8(%r12), %rsi
movq (%rsp), %rax
movq (%rax), %rdi
movq %r14, %rdx
callq 0x21f0
testl %eax, %eax
je 0x93e7
cmpq %r15, %rbx
setb %bpl
addq $0x20, %r12
leaq (%rbx,%r13), %rax
incq %rax
incq %rbx
cmpq $0x1, %rax
jne 0x93a9
andb $0x1, %bpl
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/ChaohuiYu[P]BPlusTree/BPlusTree.cpp
// Function: BPlusTree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::findLeaf(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
typename BPT_NODE* BPT<T>::findLeaf(T key) {
    BPT_NODE* node = _root;
    while (!node->_isLeaf) {
        FOR(i, 0, node->_keyCount + 1) {
            if (i == node->_keyCount || key < node->_keys[i]) {
                node = (BPT_NODE*)node->_pointers[i];
                break;
            }
        }
    }
    return node;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq (%rdi), %rbx
cmpb $0x0, 0x8(%rbx)
jne 0x945c
movq %rsi, %r14
movl 0x4(%rbx), %eax
testl %eax, %eax
js 0x9456
xorl %r15d, %r15d
xorl %r12d, %r12d
movl %eax, %eax
cmpq %rax, %r12
je 0x944e
movq 0x10(%rbx), %rsi
addq %r15, %rsi
movq %r14, %rdi
callq 0x2050
testl %eax, %eax
js 0x944e
leaq 0x1(%r12), %rcx
movslq 0x4(%rbx), %rax
addq $0x20, %r15
cmpq %rax, %r12
movq %rcx, %r12
jl 0x941d
jmp 0x9456
movq 0x18(%rbx), %rax
movq (%rax,%r12,8), %rbx
cmpb $0x1, 0x8(%rbx)
jne 0x9410
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rdi
callq 0x42a3
nop
// File: /workspace/github_cpp_makefile_star2_O1/ChaohuiYu[P]BPlusTree/BPlusTree.cpp
// Function: BPlusTree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::insertValue(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int)
bool BPT<T>::insertValue(T key, int value) {
    // find the leaf page that the key may be in.
    BPT_NODE* leaf = findLeaf(key);

    // if key in leaf->_keys, don't insert
    FOR(i, 0, leaf->_keyCount)
        if (key == leaf->_keys[i])
            return false;

    insertInNode(leaf, key, (void *)value);
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %edx, 0x14(%rsp)
movq %rsi, %rax
movq %rdi, %r15
leaq 0x58(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rsi), %rsi
movq %rax, 0x8(%rsp)
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0x42ae
movq %r15, 0x20(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0x93fc
movq %rax, %r15
movq (%r14), %rdi
cmpq %rbx, %rdi
je 0x94d9
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21e0
movslq 0x4(%r15), %r12
testq %r12, %r12
setle %r14b
movq %r15, 0x18(%rsp)
jle 0x9549
movq 0x10(%r15), %rbx
movq 0x8(%rsp), %rax
movq 0x8(%rax), %r13
addq $0x8, %rbx
movq %r12, %rbp
negq %rbp
movl $0x1, %r15d
cmpq (%rbx), %r13
jne 0x952e
testq %r13, %r13
je 0x959d
movq -0x8(%rbx), %rsi
movq 0x8(%rsp), %rax
movq (%rax), %rdi
movq %r13, %rdx
callq 0x21f0
testl %eax, %eax
je 0x959d
cmpq %r12, %r15
setae %r14b
addq $0x20, %rbx
leaq (%r15,%rbp), %rax
incq %rax
incq %r15
cmpq $0x1, %rax
jne 0x9508
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x42ae
movslq 0x14(%rsp), %rcx
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %r15, %rdx
callq 0x95d6
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x959d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21e0
andb $0x1, %r14b
movl %r14d, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x95cd
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21e0
movq %rbx, %rdi
callq 0x22e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/ChaohuiYu[P]BPlusTree/BPlusTree.cpp
// Function: BPlusTree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::insertInNode(BPlusTree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::BPlusTreeNode*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, void*)
void BPT<T>::insertInNode(BPT_NODE* node, T key, void* value) {
    // cout << "node: " << node << ", key: " << key << ", value: " << value << endl;
    // find position to insert
    int insertIdx = 0;
    while (insertIdx < node->_keyCount && node->_keys[insertIdx] < key) insertIdx++;

    // move the key and values after the position right
    for (int i = node->_keyCount; i > insertIdx; i--)
        node->_keys[i] = node->_keys[i-1];
    for (int i = node->_keyCount + 1; i > insertIdx + 1; i--)
        node->_pointers[i] = node->_pointers[i-1];

    // insert key and value
    node->_keys[insertIdx] = key;
    node->_pointers[insertIdx + 1] = value;
    node->_keyCount++;

    // check if this node need to split
    if (node->_keyCount == node->_maxKeyCount) {
        splitNode(node);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, 0x8(%rsp)
cmpl $0x0, 0x4(%rsi)
movq %rcx, 0x10(%rsp)
jle 0x9624
xorl %ebp, %ebp
xorl %r13d, %r13d
movq 0x10(%rbx), %rdi
addq %rbp, %rdi
movq %r12, %rsi
callq 0x2050
testl %eax, %eax
jns 0x9627
incq %r13
movslq 0x4(%rbx), %rax
addq $0x20, %rbp
cmpq %rax, %r13
jl 0x95ff
jmp 0x9627
xorl %r13d, %r13d
movslq 0x4(%rbx), %r15
cmpl %r13d, %r15d
jle 0x965a
movslq %r13d, %r14
movq %r15, %rbp
shlq $0x5, %rbp
movq 0x10(%rbx), %rdi
leaq (%rdi,%rbp), %rsi
addq $-0x20, %rsi
addq %rbp, %rdi
callq 0x2110
decq %r15
addq $-0x20, %rbp
cmpq %r14, %r15
jg 0x963a
movl 0x4(%rbx), %eax
leal 0x1(%r13), %ebp
cmpl %r13d, %eax
jle 0x9682
incl %eax
cltq
movslq %ebp, %rcx
movq 0x18(%rbx), %rdx
movq -0x8(%rdx,%rax,8), %rsi
movq %rsi, (%rdx,%rax,8)
decq %rax
cmpq %rcx, %rax
jg 0x966d
movl %r13d, %edi
shlq $0x5, %rdi
addq 0x10(%rbx), %rdi
movq %r12, %rsi
callq 0x2110
movq 0x18(%rbx), %rax
movl %ebp, %ecx
movq 0x10(%rsp), %rdx
movq %rdx, (%rax,%rcx,8)
movl 0x4(%rbx), %eax
incl %eax
movl %eax, 0x4(%rbx)
cmpl (%rbx), %eax
jne 0x96cb
movq 0x8(%rsp), %rdi
movq %rbx, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xa024
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rdi
callq 0x42a3
// File: /workspace/github_cpp_makefile_star2_O1/ChaohuiYu[P]BPlusTree/BPlusTree.cpp
// Function: BPlusTree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::deleteValue(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool BPT<T>::deleteValue(T key) {
    // find the leaf page that the key may be in.
    BPT_NODE* leaf = findLeaf(key);

    // if key in leaf->_keys, delete it
    FOR(i, 0, leaf->_keyCount) {
        if (key == leaf->_keys[i]) {
            deleteInNode(leaf, key);
            return true;
        }
    }

    // if key doesn't exist
    // cout << "error: key " << key << " doesn't exist.\n";
    return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %rax
movq %rdi, %r14
leaq 0x48(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rsi), %rsi
movq %rax, (%rsp)
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x38(%rsp), %r12
movq %r12, %rdi
callq 0x42ae
movq %r14, %rdi
movq %r12, %rsi
callq 0x93fc
movq %rax, %r13
movq (%r12), %rdi
cmpq %rbx, %rdi
je 0x973e
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x21e0
movslq 0x4(%r13), %r15
testq %r15, %r15
setg %bpl
jle 0x97ff
movq %r14, 0x10(%rsp)
movq %r13, 0x8(%rsp)
movq 0x10(%r13), %rbx
movq (%rsp), %rax
movq 0x8(%rax), %r12
addq $0x8, %rbx
movq %r15, %r13
negq %r13
movl $0x1, %r14d
cmpq (%rbx), %r12
jne 0x9796
testq %r12, %r12
je 0x97b3
movq -0x8(%rbx), %rsi
movq (%rsp), %rax
movq (%rax), %rdi
movq %r12, %rdx
callq 0x21f0
testl %eax, %eax
je 0x97b3
cmpq %r15, %r14
setb %bpl
addq $0x20, %rbx
leaq (%r14,%r13), %rax
incq %rax
incq %r14
cmpq $0x1, %rax
jne 0x9775
jmp 0x97ff
leaq 0x28(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsp), %rax
movq (%rax), %rsi
addq %rsi, %r12
leaq 0x18(%rsp), %r14
movq %r14, %rdi
movq %r12, %rdx
callq 0x42ae
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %r14, %rdx
callq 0x9836
movq 0x18(%rsp), %rdi
cmpq %r15, %rdi
je 0x97ff
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x21e0
andb $0x1, %bpl
movl %ebp, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r15, %rdi
je 0x982e
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x21e0
movq %rbx, %rdi
callq 0x22e0
// File: /workspace/github_cpp_makefile_star2_O1/ChaohuiYu[P]BPlusTree/BPlusTree.cpp
// Function: BPlusTree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::deleteInNode(BPlusTree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::BPlusTreeNode*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void BPT<T>::deleteInNode(BPT_NODE* node, T key) {
    int deleteIdx = 0 ;
    while (key != node->_keys[deleteIdx]) deleteIdx++ ;
    for (int i = deleteIdx; i < node->_keyCount - 1; i++)
        node->_keys[i] = node->_keys[i+1];
    for (int i = deleteIdx + 1; i < node->_keyCount; i++)
        node->_pointers[i] = node->_pointers[i+1];
    node->_keyCount--;

    // if the number of elements in a node < _maxKeyCount/2
    // redistribute the keys and values in siblings
    if (node->_keyCount < (_maxKeyCount+1)/2) {
        redistributeNode(node);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, 0x8(%rsp)
movq 0x10(%rsi), %r15
movq %rdx, 0x10(%rsp)
movq 0x8(%rdx), %r12
movl $0x1, %r13d
xorl %ebp, %ebp
xorl %r14d, %r14d
cmpq 0x8(%r15,%r14), %r12
jne 0x9888
testq %r12, %r12
je 0x9893
movq (%r15,%r14), %rsi
movq 0x10(%rsp), %rax
movq (%rax), %rdi
movq %r12, %rdx
callq 0x21f0
testl %eax, %eax
je 0x9893
incq %r13
addq $0x20, %r14
incl %ebp
jmp 0x9864
movl 0x4(%rbx), %eax
leal -0x1(%rax), %ecx
cmpl %ebp, %ecx
jle 0x98bf
movq 0x10(%rbx), %rdi
leaq (%rdi,%r14), %rsi
addq $0x20, %rsi
addq %r14, %rdi
callq 0x2110
movl 0x4(%rbx), %eax
leal -0x1(%rax), %ecx
addq $0x20, %r14
incl %ebp
jmp 0x9899
cmpl %eax, %r13d
jge 0x98df
movl %eax, %edx
movq 0x18(%rbx), %rsi
movq 0x8(%rsi,%r13,8), %rdi
movq %rdi, (%rsi,%r13,8)
leaq 0x1(%r13), %rsi
movq %rsi, %r13
cmpq %rsi, %rdx
jne 0x98c6
movl %ecx, 0x4(%rbx)
movq 0x8(%rsp), %rdi
movl 0x8(%rdi), %ecx
movl %ecx, %edx
incl %edx
shrl $0x1f, %edx
addl %edx, %ecx
incl %ecx
sarl %ecx
cmpl %ecx, %eax
jle 0x990a
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xa27a
// File: /workspace/github_cpp_makefile_star2_O1/ChaohuiYu[P]BPlusTree/BPlusTree.cpp
// Function: BPlusTree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::queryValue(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int BPT<T>::queryValue(T key) {
    // find the leaf page that the key may be in.
    BPT_NODE* leaf = findLeaf(key);

    // if key in leaf->_keys, return it
    FOR(i, 0, leaf->_keyCount)
        if (key == leaf->_keys[i])
            return (int)(long long)(leaf->_pointers[i+1]);

    // if key doesn't exist
    // cout << "    error: key " << key << " doesn't exist.\n";
    return -1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rsi), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x42ae
movq %r14, %rdi
movq %r15, %rsi
callq 0x93fc
movq %rax, %r14
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x9978
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21e0
movslq 0x4(%r14), %r12
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %r12, %r12
jle 0x99cc
movq 0x10(%r14), %r13
movq 0x8(%rbx), %r15
shlq $0x3, %r12
xorl %ebp, %ebp
cmpq 0x8(%r13,%rbp,4), %r15
jne 0x99b4
testq %r15, %r15
je 0x99c4
movq (%r13,%rbp,4), %rsi
movq (%rbx), %rdi
movq %r15, %rdx
callq 0x21f0
testl %eax, %eax
je 0x99c4
addq $0x8, %rbp
cmpq %rbp, %r12
jne 0x9994
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x99cc
movq 0x18(%r14), %rax
movl 0x8(%rax,%rbp), %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/ChaohuiYu[P]BPlusTree/BPlusTree.cpp
// Function: BPlusTree<int>::printTree()
void BPT<T>::printTree() {
    int level = 0;
    BPT_NODE* node;
    vector<BPT_NODE*> nodeStack {_root};
    vector<int> levelStack {0};

    while(!nodeStack.empty()) {
        node = nodeStack.back();
        nodeStack.pop_back();
        level = levelStack.back();
        levelStack.pop_back();

        FOR(i, 0, level) {
            cout << "  ";
        }
        node->printNode();

        if (!node->_isLeaf) {
            for (int i = node->_keyCount; i >= 0; i--) {
                if (node->_pointers[i] != NULL) {
                    nodeStack.push_back((BPT_NODE*)node->_pointers[i]);
                    levelStack.push_back(level+1);
                }
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq (%rdi), %rax
leaq 0x18(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rbx
movl $0x1, %edx
movq %rbx, %rcx
callq 0x8954
movl $0x0, (%rbx)
leaq 0x18(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0xf(%rsp), %rcx
movl $0x1, %edx
callq 0x899a
movq 0x38(%rsp), %rax
cmpq %rax, 0x30(%rsp)
je 0x88d3
movq 0x77c6(%rip), %rbx      # 0xffd0
leaq 0x2d47(%rip), %r14      # 0xb558
leaq 0x10(%rsp), %r12
movq -0x8(%rax), %rbp
addq $-0x8, %rax
movq %rax, 0x38(%rsp)
movq 0x20(%rsp), %rax
movl -0x4(%rax), %r13d
addq $-0x4, %rax
movq %rax, 0x20(%rsp)
movl %r13d, %r15d
testl %r13d, %r13d
jle 0x8852
movl $0x2, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2220
decl %r15d
jne 0x883d
movq %rbp, %rdi
callq 0x89e0
cmpb $0x0, 0x8(%rbp)
jne 0x88c3
movslq 0x4(%rbp), %r15
testq %r15, %r15
js 0x88c3
incl %r13d
incq %r15
movq 0x18(%rbp), %rax
cmpq $0x0, -0x8(%rax,%r15,8)
je 0x88be
movq -0x8(%rax,%r15,8), %rax
movq %rax, 0x10(%rsp)
leaq 0x30(%rsp), %rdi
movq %r12, %rsi
callq 0xa80a
movl %r13d, 0x10(%rsp)
movq 0x20(%rsp), %rsi
cmpq 0x28(%rsp), %rsi
je 0x88b1
movl %r13d, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x20(%rsp)
jmp 0x88be
leaq 0x18(%rsp), %rdi
movq %r12, %rdx
callq 0xa95a
decq %r15
jg 0x886f
movq 0x38(%rsp), %rax
cmpq %rax, 0x30(%rsp)
jne 0x8816
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x88ea
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x21e0
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x8901
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x21e0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x8935
jmp 0x891b
jmp 0x891b
jmp 0x891b
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x8935
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x21e0
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x894c
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x21e0
movq %rbx, %rdi
callq 0x22e0
// File: /workspace/github_cpp_makefile_star2_O1/ChaohuiYu[P]BPlusTree/BPlusTree.cpp
// Function: BPlusTree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::BPlusTreeNode::printNode()
void BPT_NODE::printNode() {
    if (_isLeaf) {
        FOR(i, 0, _keyCount) {
            cout << _keys[i] << ":" << (int)(long long)_pointers[i+1] << " | ";
        }
        cout << endl;
    }
    else {
        FOR(i, 0, _keyCount) {
            cout << _pointers[i] << " | ";
            cout << _keys[i] << ":";
        }
        cout << _pointers[_keyCount] << endl;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x4(%rdi), %eax
cmpb $0x0, 0x8(%rdi)
je 0x9c6d
testl %eax, %eax
jle 0x9cfe
movl $0x8, %ebp
xorl %r15d, %r15d
movq 0x63cc(%rip), %r14      # 0xffd0
leaq 0x1b46(%rip), %r12      # 0xb751
movq 0x10(%rbx), %rax
movq -0x8(%rax,%rbp), %rsi
movq (%rax,%rbp), %rdx
movq %r14, %rdi
callq 0x2220
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
leaq 0x1922(%rip), %rsi      # 0xb554
callq 0x2220
movq 0x18(%rbx), %rax
movl 0x8(%rax,%r15,8), %esi
incq %r15
movq %r13, %rdi
callq 0x22c0
movl $0x3, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2220
movslq 0x4(%rbx), %rax
addq $0x20, %rbp
cmpq %rax, %r15
jl 0x9c0b
jmp 0x9d05
testl %eax, %eax
jle 0x9ce3
movl $0x8, %r13d
xorl %ebp, %ebp
movq 0x6350(%rip), %r14      # 0xffd0
leaq 0x1aca(%rip), %r15      # 0xb751
leaq 0x18c6(%rip), %r12      # 0xb554
movq 0x18(%rbx), %rax
movq (%rax,%rbp,8), %rsi
movq %r14, %rdi
callq 0x2180
movl $0x3, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2220
movq 0x10(%rbx), %rax
movq -0x8(%rax,%r13), %rsi
movq (%rax,%r13), %rdx
movq %r14, %rdi
callq 0x2220
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2220
incq %rbp
movslq 0x4(%rbx), %rax
addq $0x20, %r13
cmpq %rax, %rbp
jl 0x9c8e
movq 0x18(%rbx), %rcx
cltq
movq (%rcx,%rax,8), %rsi
movq 0x62dc(%rip), %rdi      # 0xffd0
callq 0x2180
movq %rax, %r14
jmp 0x9d05
movq 0x62cb(%rip), %r14      # 0xffd0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2140
// File: /workspace/github_cpp_makefile_star2_O1/ChaohuiYu[P]BPlusTree/BPlusTree.cpp
// Function: BPlusTree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::BPlusTreeNode::BPlusTreeNode(bool, bool, int)
BPT_NODE::BPlusTreeNode(bool isLeaf, bool isRoot, int maxKeyCount) {
    _maxKeyCount = maxKeyCount;
    _keyCount = 0;
    _isLeaf = isLeaf;
    _isRoot = isRoot;
    // _keys = vector<T>();
    // _pointers = vector<void*>();
    _keys = new T[_maxKeyCount];
    _pointers = new void*[_maxKeyCount+1];
    _pointers[0] = NULL;
    _father = NULL;
    _prev = NULL;
    _next = NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl %ecx, (%rdi)
movl $0x0, 0x4(%rdi)
movb %sil, 0x8(%rdi)
movb %dl, 0x9(%rdi)
movslq %ecx, %r14
movq %r14, %r12
shlq $0x5, %r12
leaq 0x8(%r12), %rdi
testl %r14d, %r14d
movq $-0x1, %r15
cmovsq %r15, %rdi
callq 0x2030
leaq 0x8(%rax), %rcx
movq %r14, (%rax)
testl %r14d, %r14d
je 0x9fea
addq $0x18, %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
addq $0x20, %rax
addq $-0x20, %r12
jne 0x9fd1
movq %rcx, 0x10(%rbx)
leaq 0x8(,%r14,8), %rdi
cmpl $-0x1, %r14d
cmovlq %r15, %rdi
callq 0x2030
movq %rax, 0x18(%rbx)
xorl %ecx, %ecx
movq %rcx, (%rax)
movq %rcx, 0x30(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/BGI-Qingdao[P]ExtractNGSReads/./utils/argsparser.h
// Function: BGIQD::ARGS::args_union::args_union(BGIQD::ARGS::args_union::type, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
args_union(type ty
                    ,const  std::string & n
                    ,bool o
                    ,const std::string & df
                    ,const std::string & exp) 
                : optional(o)
                , setted(false)
                , explain(exp)
                , name(n)
                , default_value(df)
                , t(ty) 

            {
                if(! optional )
                {
                    d.s = NULL;
                }
                if ( t != is_string && t != is_vector_string )
                    d.l = 0 ;
                if ( t == is_float )
                    d.f = 0.0f ;
                if ( t == is_string )
                    d.s = new std::string("");
                if ( t == is_vector_string )
                    d.vs = new std::vector<std::string>();
            }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %rbx
movq %rdx, %r12
movl %esi, %r13d
movq %rdi, %r15
movb %cl, (%rdi)
movb $0x0, 0x1(%rdi)
addq $0x8, %rdi
leaq 0x18(%r15), %rax
movq %rax, -0x40(%rbp)
movq %rax, 0x8(%r15)
movq (%r9), %rsi
movq 0x8(%r9), %rdx
addq %rsi, %rdx
movq %rdi, -0x48(%rbp)
callq 0x6e4c
leaq 0x28(%r15), %rdi
leaq 0x38(%r15), %rax
movq %rax, -0x30(%rbp)
movq %rax, 0x28(%r15)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
movq %rdi, -0x38(%rbp)
callq 0x6e4c
leaq 0x48(%r15), %r12
leaq 0x58(%r15), %r14
movq %r14, 0x48(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x6e4c
movl %r13d, 0x68(%r15)
cmpb $0x0, (%r15)
jne 0x608b
movq $0x0, 0x70(%r15)
cmpl $0x1, %r13d
je 0x60af
cmpl $0x5, %r13d
je 0x60d9
movq $0x0, 0x70(%r15)
cmpl $0x4, %r13d
jne 0x60d9
movl $0x0, 0x70(%r15)
jmp 0x60d9
movl $0x20, %edi
callq 0x4270
movq %rax, %rbx
addq $0x10, %rax
movq %rax, (%rbx)
leaq 0x5024(%rip), %rdx      # 0xb0ee
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x7576
movq %rbx, 0x70(%r15)
cmpl $0x5, 0x68(%r15)
jne 0x60fc
movl $0x18, %edi
callq 0x4270
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rax, 0x70(%r15)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq %rbx, %rdi
callq 0x4240
jmp 0x611b
movq %rax, %r15
movq (%r12), %rdi
cmpq %r14, %rdi
je 0x612e
callq 0x4240
jmp 0x612e
movq %rax, %r15
movq -0x38(%rbp), %rax
movq (%rax), %rdi
cmpq -0x30(%rbp), %rdi
je 0x6145
callq 0x4240
jmp 0x6145
movq %rax, %r15
movq -0x48(%rbp), %rax
movq (%rax), %rdi
cmpq -0x40(%rbp), %rdi
je 0x6157
callq 0x4240
movq %r15, %rdi
callq 0x4450
nop
// File: /workspace/github_cpp_makefile_star2_O1/BGI-Qingdao[P]ExtractNGSReads/./utils/argsparser.h
// Function: BGIQD::ARGS::args_union::get_type[abi:cxx11](BGIQD::ARGS::args_union::type)
static std::string get_type( type t)
            {
                if( t == is_bool )
                    return "[ no arg ]";
                if( t == is_int)
                    return "[ int arg ]";
                if( t == is_long)
                    return "[ long arg ]";
                if( t == is_float)
                    return "[ float arg ]";
                if( t == is_string)
                    return "[ string arg ]";
                if( t == is_vector_string)
                    return "[ vector_string arg ] ";
                return "";
            }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
cmpl $0x5, %esi
ja 0x6263
movl %esi, %eax
leaq 0x4e1a(%rip), %rcx      # 0xb004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x5095(%rip), %rsi      # 0xb28f
leaq 0x5098(%rip), %rdx      # 0xb299
jmp 0x6251
leaq 0x50a9(%rip), %rsi      # 0xb2b3
leaq 0x50af(%rip), %rdx      # 0xb2c0
jmp 0x6251
leaq 0x5080(%rip), %rsi      # 0xb29a
leaq 0x5084(%rip), %rdx      # 0xb2a5
jmp 0x6251
leaq 0x507c(%rip), %rsi      # 0xb2a6
leaq 0x5081(%rip), %rdx      # 0xb2b2
jmp 0x6251
leaq 0x5087(%rip), %rsi      # 0xb2c1
leaq 0x508e(%rip), %rdx      # 0xb2cf
jmp 0x6251
leaq 0x5086(%rip), %rsi      # 0xb2d0
leaq 0x5095(%rip), %rdx      # 0xb2e6
movq %rbx, %rdi
callq 0x7576
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x4e84(%rip), %rdx      # 0xb0ee
movq %rbx, %rdi
movq %rdx, %rsi
jmp 0x6254
// File: /workspace/github_cpp_makefile_star2_O1/BGI-Qingdao[P]ExtractNGSReads/./utils/argsparser.h
// Function: BGIQD::ARGS::args_union::~args_union()
~args_union()
            {
                if( t == is_string && d.s )
                    delete d.s ;
                if ( t== is_vector_string && d.vs )
                    delete d.vs ;
            }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpl $0x1, 0x68(%rdi)
jne 0x6c1c
movq 0x70(%rbx), %r14
testq %r14, %r14
je 0x6c1c
movq (%r14), %rdi
leaq 0x10(%r14), %rax
cmpq %rax, %rdi
je 0x6c14
callq 0x4240
movq %r14, %rdi
callq 0x4240
cmpl $0x5, 0x68(%rbx)
jne 0x6c3b
movq 0x70(%rbx), %r14
testq %r14, %r14
je 0x6c3b
movq %r14, %rdi
callq 0x7196
movq %r14, %rdi
callq 0x4240
movq 0x48(%rbx), %rdi
leaq 0x58(%rbx), %rax
cmpq %rax, %rdi
je 0x6c4d
callq 0x4240
movq 0x28(%rbx), %rdi
leaq 0x38(%rbx), %rax
cmpq %rax, %rdi
je 0x6c5f
callq 0x4240
movq 0x8(%rbx), %rdi
addq $0x18, %rbx
cmpq %rbx, %rdi
je 0x6c75
popq %rbx
popq %r14
popq %rbp
jmp 0x4240
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/BGI-Qingdao[P]ExtractNGSReads/./utils/fastq.h
// Function: BGIQD::FASTQ::stLFRHeader::operator=(BGIQD::FASTQ::stLFRHeader const&)
stLFRHeader & operator = ( const stLFRHeader & a ) {
                if( &a != this )
                {
                    type = a.type ;
                    readIndex  = a.readIndex ;
                    barcode_num = a.barcode_num ;
                    barcode_str = a.barcode_str ;
                    readName = a.readName ;
                }
                return *this ;
            }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpq %rdi, %rsi
je 0x7503
movq %rsi, %r14
movl (%rsi), %eax
movl %eax, (%rbx)
movl 0x4(%rsi), %eax
movl %eax, 0x4(%rbx)
movl 0x8(%rsi), %eax
movl %eax, 0x8(%rbx)
addq $0x10, %rsi
leaq 0x10(%rbx), %rdi
callq 0x4160
addq $0x30, %r14
leaq 0x30(%rbx), %rdi
movq %r14, %rsi
callq 0x4160
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/BGI-Qingdao[P]ExtractNGSReads/./utils/fastq.h
// Function: BGIQD::FASTQ::stLFRHeader::Reset()
void Reset()
            {
                type = Unknow ;
                readName ="";
                barcode_str = "" ;
                readIndex = 0 ;
                barcode_num = 0 ;
            }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl $0x0, (%rdi)
addq $0x30, %rdi
movq 0x38(%rbx), %rdx
leaq 0x36d5(%rip), %r14      # 0xb0ee
xorl %esi, %esi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x43c0
leaq 0x10(%rbx), %rdi
movq 0x18(%rbx), %rdx
xorl %esi, %esi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x43c0
movq $0x0, 0x4(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/BGI-Qingdao[P]ExtractNGSReads/./utils/fastq.h
// Function: BGIQD::FASTQ::stLFRHeader::stLFRHeader(BGIQD::FASTQ::stLFRHeader const&)
stLFRHeader(const stLFRHeader & a) {
                type = a.type ;
                readIndex  = a.readIndex ;
                barcode_num = a.barcode_num ;
                barcode_str = a.barcode_str ;
                readName = a.readName ;
            }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
leaq 0x10(%rdi), %rbx
leaq 0x20(%rdi), %r12
movq %r12, 0x10(%rdi)
xorl %eax, %eax
movq %rax, 0x18(%rdi)
movb %al, 0x20(%rdi)
leaq 0x30(%rdi), %r15
leaq 0x40(%rdi), %r13
movq %r13, 0x30(%rdi)
movq %rax, 0x38(%rdi)
movb %al, 0x40(%rdi)
movl (%rsi), %eax
movl %eax, (%rdi)
movl 0x4(%rsi), %eax
movl %eax, 0x4(%rdi)
movl 0x8(%rsi), %eax
movl %eax, 0x8(%rdi)
addq $0x10, %rsi
movq %rbx, %rdi
callq 0x4160
addq $0x30, %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x4160
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%r15), %rdi
cmpq %r13, %rdi
je 0x7cbd
callq 0x4240
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x7cca
callq 0x4240
movq %r14, %rdi
callq 0x4450
// File: /workspace/github_cpp_makefile_star2_O1/BGI-Qingdao[P]ExtractNGSReads/utils/fastq.cpp
// Function: BGIQD::FASTQ::stLFRHeader::Head[abi:cxx11]() const
std::string stLFRHeader::Head() const 
        {
            assert(type != Unknow );
            std::ostringstream ost ;
            ost<<'@'<<readName<<'#'<<barcode_str;
            if( type == readName_barcodeStr_index )
                ost<<'/'<<readIndex;
            if( type == readName_barcodeStr_index_barcodeNum )
                ost<<'/'<<readIndex<<'\t'<<barcode_num;
            return ost.str();
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
cmpl $0x0, (%rsi)
je 0x89cd
movq %rsi, %r14
movq %rdi, %rbx
leaq -0x198(%rbp), %r15
movq %r15, %rdi
callq 0x4330
leaq -0x19(%rbp), %rsi
movb $0x40, (%rsi)
movl $0x1, %edx
movq %r15, %rdi
callq 0x42d0
movq 0x30(%r14), %rsi
movq 0x38(%r14), %rdx
movq %rax, %rdi
callq 0x42d0
leaq -0x19(%rbp), %rsi
movb $0x23, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x42d0
movq 0x10(%r14), %rsi
movq 0x18(%r14), %rdx
movq %rax, %rdi
callq 0x42d0
cmpl $0x2, (%r14)
jne 0x8944
leaq -0x19(%rbp), %rsi
movb $0x2f, (%rsi)
leaq -0x198(%rbp), %rdi
movl $0x1, %edx
callq 0x42d0
movl 0x4(%r14), %esi
movq %rax, %rdi
callq 0x4430
cmpl $0x3, (%r14)
jne 0x898e
leaq -0x19(%rbp), %rsi
movb $0x2f, (%rsi)
leaq -0x198(%rbp), %rdi
movl $0x1, %edx
callq 0x42d0
movl 0x4(%r14), %esi
movq %rax, %rdi
callq 0x4430
leaq -0x19(%rbp), %rsi
movb $0x9, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x42d0
movl 0x8(%r14), %esi
movq %rax, %rdi
callq 0x4430
leaq -0x190(%rbp), %rsi
movq %rbx, %rdi
callq 0x43d0
movq 0x762c(%rip), %rsi      # 0xffd0
leaq -0x198(%rbp), %rdi
callq 0x4150
leaq -0x128(%rbp), %rdi
callq 0x40d0
movq %rbx, %rax
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2ec5(%rip), %rdi      # 0xb899
leaq 0x2e3e(%rip), %rsi      # 0xb819
leaq 0x2ec6(%rip), %rcx      # 0xb8a8
movl $0x34, %edx
callq 0x4190
movq %rax, %rbx
movq 0x75da(%rip), %rsi      # 0xffd0
leaq -0x198(%rbp), %rdi
callq 0x4150
leaq -0x128(%rbp), %rdi
callq 0x40d0
movq %rbx, %rdi
callq 0x4450
// File: /workspace/github_cpp_makefile_star2_O1/BGI-Qingdao[P]ExtractNGSReads/utils/fastq.cpp
// Function: BGIQD::FASTQ::Id_Desc_Head::Init(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void Id_Desc_Head::Init( const std::string &line )
        {
            Reset() ;
            bool turn = false ;
            assert(line.size() > 1);
            assert(line[0] == '@');
            for( int i = 1 ; i < (int)line.size() ; i++ )
            {
                if( !turn  )
                {
                    if( ! std::isblank(line[i]) )
                        Id += line[i] ;
                    else 
                        turn = true ;
                }
                if( turn )
                    Desc += line[i] ;
            }
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
xorl %eax, %eax
movq %rax, 0x8(%rdi)
movq (%rdi), %rcx
movb %al, (%rcx)
movq %rax, 0x28(%rdi)
movq %rdi, -0x30(%rbp)
movq 0x20(%rdi), %rcx
movb %al, (%rcx)
cmpq $0x1, 0x8(%rsi)
jbe 0x8ad6
movq %rsi, %rbx
movq (%rsi), %rax
cmpb $0x40, (%rax)
jne 0x8af5
cmpl $0x2, 0x8(%rbx)
jl 0x8ac7
movq -0x30(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x38(%rbp)
movl $0x1, %r13d
xorl %r14d, %r14d
testb $0x1, %r14b
jne 0x8a9e
movq (%rbx), %rax
movsbl (%rax,%r13), %r12d
movl %r12d, %edi
callq 0x4280
movb $0x1, %r15b
testl %eax, %eax
jne 0x8aa1
movq -0x30(%rbp), %rdi
movl %r12d, %esi
callq 0x4220
movl %r14d, %r15d
testb $0x1, %r15b
je 0x8ab8
movq (%rbx), %rax
movsbl (%rax,%r13), %esi
movq -0x38(%rbp), %rdi
callq 0x4220
incq %r13
movslq 0x8(%rbx), %rax
movl %r15d, %r14d
cmpq %rax, %r13
jl 0x8a75
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2dff(%rip), %rdi      # 0xb8dc
leaq 0x2d35(%rip), %rsi      # 0xb819
leaq 0x2e01(%rip), %rcx      # 0xb8ec
movl $0x42, %edx
callq 0x4190
leaq 0x2e2b(%rip), %rdi      # 0xb927
leaq 0x2d16(%rip), %rsi      # 0xb819
leaq 0x2de2(%rip), %rcx      # 0xb8ec
movl $0x43, %edx
callq 0x4190
// File: /workspace/github_cpp_makefile_star2_O1/BGI-Qingdao[P]ExtractNGSReads/utils/file_reader.cpp
// Function: BGIQD::FILES::FileReaderFactory::GenerateReaderFromFileName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::istream * FileReaderFactory::GenerateReaderFromFileName(const std::string & file_name )
    {
        std::istream * ret = NULL;
        if( file_name.rfind(".gz") == file_name.length() - 3 )
        {// gzip file
            ret = (new igzstream(file_name.c_str()));
        }
        else
        { // treat as txt file now //TODO
            ret = (new std::ifstream(file_name.c_str()));
        }
        if (ret && ! ret->good() )
        {
            delete ret ;
            ret = NULL;
        }
        return ret;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
leaq 0x2e11(%rip), %rsi      # 0xb936
movl $0x3, %ecx
movq $-0x1, %rdx
callq 0x4340
movq 0x8(%r14), %rcx
addq $-0x3, %rcx
cmpq %rcx, %rax
jne 0x8b69
movl $0x2a0, %edi            # imm = 0x2A0
callq 0x4270
movq %rax, %rbx
movq (%r14), %rsi
movq %rax, %rdi
movl $0x8, %edx
callq 0x8ccc
addq $0x188, %rbx            # imm = 0x188
jmp 0x8b86
movl $0x208, %edi            # imm = 0x208
callq 0x4270
movq %rax, %rbx
movq (%r14), %rsi
movq %rax, %rdi
movl $0x8, %edx
callq 0x4470
movq (%rbx), %rax
movq -0x18(%rax), %rcx
cmpl $0x0, 0x20(%rbx,%rcx)
je 0x8b9c
movq %rbx, %rdi
callq *0x8(%rax)
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x8ba6
movq %rax, %r14
movq %rbx, %rdi
callq 0x4240
movq %r14, %rdi
callq 0x4450
nop
// File: /workspace/github_cpp_makefile_star2_O1/BGI-Qingdao[P]ExtractNGSReads/utils/file_reader.cpp
// Function: BGIQD::FILES::FileReaderFactory::ResizeBuff(std::istream&, unsigned long)
void FileReaderFactory::ResizeBuff( std::istream & ist, size_t size )
    {
        char * buffer = (char *) calloc( sizeof(char) , size );
        if( buffer == 0 )
        {
            std::cerr<<"Fatal buffer calloc failed . System has no more memory ."<<std::endl;
            exit(1);
        }
        (ist.rdbuf())->pubsetbuf(buffer,size);
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl $0x1, %edi
callq 0x41a0
testq %rax, %rax
je 0x8bf8
movq (%r14), %rcx
movq -0x18(%rcx), %rcx
movq 0xe8(%r14,%rcx), %rdi
movq (%rdi), %rcx
movq 0x18(%rcx), %rcx
movq %rax, %rsi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %rbp
jmpq *%rcx
movq 0x73f1(%rip), %rdi      # 0xfff0
leaq 0x2d34(%rip), %rsi      # 0xb93a
callq 0x4260
movq %rax, %rdi
callq 0x4130
movl $0x1, %edi
callq 0x42f0
nop
// File: /workspace/github_cpp_makefile_star2_O1/BGI-Qingdao[P]ExtractNGSReads/utils/file_writer.cpp
// Function: BGIQD::FILES::FileWriterFactory::GenerateWriterFromFileName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::ostream * FileWriterFactory::GenerateWriterFromFileName( const std::string & file_name )
    {
        std::ostream * ret = NULL;
        if( file_name.rfind(".gz") == file_name.length() - 3 )
        {// gzip file
            ret = (new ogzstream(file_name.c_str()));
        }
        else
        { // treat as txt file now //TODO
            ret = (new std::ofstream(file_name.c_str()));
        }
        if (ret && ! ret->good() )
        {
            delete ret ;
            ret = NULL;
        }
        return ret;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
leaq 0x2969(%rip), %rsi      # 0xb936
movl $0x3, %ecx
movq $-0x1, %rdx
callq 0x4340
movq 0x8(%r14), %rcx
addq $-0x3, %rcx
cmpq %rcx, %rax
jne 0x9011
movl $0x298, %edi            # imm = 0x298
callq 0x4270
movq %rax, %rbx
movq (%r14), %rsi
movq %rax, %rdi
movl $0x10, %edx
callq 0x90c6
addq $0x188, %rbx            # imm = 0x188
jmp 0x902e
movl $0x200, %edi            # imm = 0x200
callq 0x4270
movq %rax, %rbx
movq (%r14), %rsi
movq %rax, %rdi
movl $0x10, %edx
callq 0x42b0
movq (%rbx), %rax
movq -0x18(%rax), %rcx
cmpl $0x0, 0x20(%rbx,%rcx)
je 0x9044
movq %rbx, %rdi
callq *0x8(%rax)
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x904e
movq %rax, %r14
movq %rbx, %rdi
callq 0x4240
movq %r14, %rdi
callq 0x4450
nop
// File: /workspace/github_cpp_makefile_star2_O1/BGI-Qingdao[P]ExtractNGSReads/utils/file_writer.cpp
// Function: BGIQD::FILES::FileWriterFactory::ResizeBuff(std::ostream&, unsigned long)
void FileWriterFactory::ResizeBuff( std::ostream & ist, size_t size )
    {
        char * buffer = (char *) calloc( sizeof(char) , size );
        if( buffer == 0 )
        {
            std::cerr<<"Fatal buffer calloc failed . System has no more memory ."<<std::endl;
            exit(1);
        }
        (ist.rdbuf())->pubsetbuf(buffer,size);
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl $0x1, %edi
callq 0x41a0
testq %rax, %rax
je 0x90a0
movq (%r14), %rcx
movq -0x18(%rcx), %rcx
movq 0xe8(%r14,%rcx), %rdi
movq (%rdi), %rcx
movq 0x18(%rcx), %rcx
movq %rax, %rsi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %rbp
jmpq *%rcx
movq 0x6f49(%rip), %rdi      # 0xfff0
leaq 0x288c(%rip), %rsi      # 0xb93a
callq 0x4260
movq %rax, %rdi
callq 0x4130
movl $0x1, %edi
callq 0x42f0
nop