LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/fjamour[P]icentral/src/qube.cc
// Function: shared_vertex(muc_t&, std::vector<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int>>>&)
bool shared_vertex(muc_t& muc, cycle_t& cycle)
{
    bool res = false;
    for(int i = 0; i < cycle.size(); ++i) {
        if(   muc.muc_subgraph.nodes_map.find(cycle[i].first) != muc.muc_subgraph.nodes_map.end() 
           || muc.muc_subgraph.nodes_map.find(cycle[i].second) != muc.muc_subgraph.nodes_map.end())
            return true;
    }
    return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq (%rsi), %rsi
cmpq %rsi, 0x8(%rbx)
setne %bpl
je 0x26fae
movq %rdi, %r14
leaq 0x60(%rdi), %r15
movq %r15, %rdi
callq 0x2b4fa
movq 0x68(%r14), %rcx
movq 0x70(%r14), %rdx
cmpq (%rcx,%rdx,8), %rax
je 0x26fc3
andb $0x1, %bpl
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x8, %r12d
xorl %r13d, %r13d
movq (%rbx), %rax
leaq (%rax,%r12), %rsi
addq $-0x4, %rsi
movq %r15, %rdi
callq 0x2b4fa
movq 0x68(%r14), %rcx
movq 0x70(%r14), %rdx
cmpq (%rcx,%rdx,8), %rax
jne 0x26fae
incq %r13
movq (%rbx), %rsi
movq 0x8(%rbx), %rax
subq %rsi, %rax
sarq $0x3, %rax
cmpq %r13, %rax
seta %bpl
jbe 0x26fae
addq %r12, %rsi
addq $0x8, %r12
movq %r15, %rdi
callq 0x2b4fa
movq 0x68(%r14), %rcx
movq 0x70(%r14), %rdx
cmpq (%rcx,%rdx,8), %rax
je 0x26fcc
jmp 0x26fae
// File: /workspace/github_cpp_makefile_star2_O1/fjamour[P]icentral/src/qube.cc
// Function: shared_vertex(std::vector<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int>>>&, std::vector<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int>>>&)
bool shared_vertex(cycle_t& c1, cycle_t& c2)
{
   bool res = false;
    for(int i = 0; i < c1.size(); ++i) {
        for(int j = 0; j < c2.size(); ++j) {
            if(   c1[i].first   == c2[j].first
               || c1[i].first   == c2[j].second
               || c1[i].second  == c2[j].first
               || c1[i].second  == c2[j].second) {
                return true;
            }
        }
    }
    return res;    
}

// Assembly:
movq (%rdi), %rcx
movq 0x8(%rdi), %rdx
subq %rcx, %rdx
setne %al
je 0x270ae
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
sarq $0x3, %rdx
movq (%rsi), %rdi
movq 0x8(%rsi), %rsi
movq %rsi, %r8
subq %rdi, %r8
sarq $0x3, %r8
cmpq $0x1, %r8
adcq $0x0, %r8
cmpq $0x1, %rdx
movq %rdx, %r9
adcq $0x0, %r9
xorl %r10d, %r10d
cmpq %rdi, %rsi
je 0x2709a
movl (%rcx,%r10,8), %r11d
xorl %ebx, %ebx
movl (%rdi,%rbx,8), %ebp
cmpl %ebp, %r11d
je 0x270a8
movl 0x4(%rdi,%rbx,8), %r14d
cmpl %r14d, %r11d
je 0x270a8
movl 0x4(%rcx,%r10,8), %r15d
cmpl %ebp, %r15d
je 0x270a8
cmpl %r14d, %r15d
je 0x270a8
incq %rbx
cmpq %rbx, %r8
jne 0x27071
incq %r10
cmpq %r10, %rdx
seta %al
cmpq %r9, %r10
jne 0x27066
popq %rbx
popq %r14
popq %r15
popq %rbp
andb $0x1, %al
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/fjamour[P]icentral/src/qube.cc
// Function: muc_t::insert_conn_vertex(unsigned int, unsigned int)
void muc_t::insert_conn_vertex(node_id_t id, node_id_t nbr) {
    if(conn_vertex_map.find(id) != conn_vertex_map.end()) {
        conn_vertex_map[id].push_back(nbr);
    } else {
        vector<node_id_t> vec;
        vec.push_back(nbr);
        conn_vertex_map.insert(make_pair(id, vec));
    }
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x88, %rsp
movl %edx, %ecx
movq %rdi, %rbx
movl %esi, 0xc(%rsp)
movl %edx, 0x8(%rsp)
movl %esi, %eax
movq 0x8(%rdi), %rdi
movq 0x10(%rbx), %r8
xorl %r9d, %r9d
xorl %edx, %edx
divq %r8
movq (%rdi,%rdx,8), %rax
testq %rax, %rax
je 0x282fb
xorl %r9d, %r9d
cmpl %esi, (%rax)
je 0x282f8
movq 0x20(%rax), %rax
testq %rax, %rax
jne 0x282e9
jmp 0x282fb
movq %rax, %r9
testq %r9, %r9
jne 0x28304
movq (%rdi,%r8,8), %r9
cmpq (%rdi,%r8,8), %r9
je 0x28334
leaq 0xc(%rsp), %rsi
movq %rbx, %rdi
callq 0xd93e
movq 0x8(%rax), %rsi
cmpq 0x10(%rax), %rsi
je 0x2835c
movl 0x8(%rsp), %ecx
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rax)
jmp 0x28415
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x18(%rsp), %rsi
testq %rsi, %rsi
je 0x2836e
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x2837d
leaq 0x8(%rsp), %rdx
movq %rax, %rdi
callq 0x6f98
jmp 0x28415
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x6f98
movl 0xc(%rsp), %eax
leaq 0x38(%rsp), %r14
movl %eax, -0x8(%r14)
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x61a0
movl 0x30(%rsp), %eax
leaq 0x50(%rsp), %rdx
movl %eax, (%rdx)
movups 0x38(%rsp), %xmm0
movups %xmm0, 0x8(%rdx)
movq 0x48(%rsp), %rax
movq %rax, 0x18(%rdx)
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq $0x0, 0x10(%r14)
leaq 0x70(%rsp), %rdi
movq %rbx, %rsi
callq 0x1d628
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x283e7
movq 0x68(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x283fe
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x28415
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
addq $0x88, %rsp
popq %rbx
popq %r14
retq
jmp 0x28455
movq %rax, %rbx
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x2843c
movq 0x68(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x28458
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
jmp 0x28458
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2846f
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq %rbx, %rdi
callq 0x23b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/fjamour[P]icentral/src/qube.cc
// Function: graph_t::get_num_mucs()
size_t graph_t::get_num_mucs()
{
    size_t res = 0;
    for(int i = 0; i < muc_vec.size(); ++i) {
        if(muc_vec[i].valid) {
            ++res;
        }
    }
    return res;
}

// Assembly:
movq 0x60(%rdi), %rcx
movq 0x68(%rdi), %rax
subq %rcx, %rax
je 0x28a0f
sarq $0x3, %rax
movabsq $-0x77dc7c4cf2ae9cdb, %rdx # imm = 0x882383B30D516325
imulq %rax, %rdx
cmpq $0x1, %rdx
adcq $0x0, %rdx
addq $0x30c, %rcx            # imm = 0x30C
xorl %eax, %eax
movzbl (%rcx), %esi
addq %rsi, %rax
addq $0x568, %rcx            # imm = 0x568
decq %rdx
jne 0x289fc
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/fjamour[P]icentral/src/subgraph_t.cc
// Function: subgraph_t::insert_edge(unsigned int, unsigned int)
void subgraph_t::insert_edge(node_id_t src, node_id_t dst)
{
    edge_t e1, e2;
    e1.first   = src;
    e1.second  = dst;
    e2.first   = dst;
    e2.second  = src;
    if(edge_set.find(e1) != edge_set.end() || edge_set.find(e2) != edge_set.end())
        return;
    else
        edge_set.insert(e1);
    nodes_vec[src].push_back(dst);
    nodes_vec[dst].push_back(src);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movl %esi, 0xc(%rsp)
movl %edx, 0x8(%rsp)
leaq 0x18(%rsp), %rax
movq $0x0, (%rax)
movl %esi, (%rax)
movl %edx, 0x4(%rax)
movl %edx, 0x10(%rsp)
movl %esi, 0x14(%rsp)
leaq 0x18(%rdi), %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x1d75a
leaq 0x20(%rbx), %r15
cmpq %r15, %rax
jne 0x2ec42
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x1d75a
cmpq %r15, %rax
jne 0x2ec42
leaq 0x18(%rsp), %rsi
movq %r14, %rdi
callq 0x1d7c2
movl 0xc(%rsp), %eax
movq (%rbx), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x2ec05
movl 0x8(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x2ec0f
leaq 0x8(%rsp), %rdx
callq 0x6f98
movl 0x8(%rsp), %eax
movq (%rbx), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x2ec38
movl 0xc(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x2ec42
leaq 0xc(%rsp), %rdx
callq 0x6f98
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/fjamour[P]icentral/src/subgraph_t.cc
// Function: subgraph_t::remove_edge(unsigned int, unsigned int)
void subgraph_t::remove_edge(node_id_t src, node_id_t dst)
{
    pair<node_id_t, node_id_t> edge = make_pair(src, dst);
    edge_set.erase(edge);
    edge = make_pair(dst, src);
    edge_set.erase(edge);
    
    vector<node_id_t>& v1 = nodes_vec[src];
    vector<node_id_t>& v2 = nodes_vec[dst];
    v1.erase(std::remove(v1.begin(), v1.end(), dst), v1.end());
    v2.erase(std::remove(v2.begin(), v2.end(), src), v2.end());    
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
movl %esi, 0x8(%rsp)
leaq 0xc(%rsp), %rbx
movl %edx, (%rbx)
shlq $0x20, %rdx
movl %esi, %eax
orq %rdx, %rax
leaq 0x10(%rsp), %r15
movq %rax, (%r15)
leaq 0x18(%rdi), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x1d916
movq %r12, %rdi
movq %rax, %rsi
callq 0x1d9f0
movl (%rbx), %eax
movl 0x8(%rsp), %ecx
movl %eax, (%r15)
movl %ecx, 0x4(%r15)
movq %r12, %rdi
movq %r15, %rsi
callq 0x1d916
movq %r12, %rdi
movq %rax, %rsi
callq 0x1d9f0
movl 0x8(%rsp), %eax
movq (%r14), %r15
leaq (%rax,%rax,2), %r12
movl (%rbx), %eax
leaq (%rax,%rax,2), %rax
leaq (%r15,%rax,8), %r14
movq (%r15,%r12,8), %rdi
movq 0x8(%r15,%r12,8), %rsi
movq %rbx, %rdx
callq 0x1da95
movq 0x8(%r15,%r12,8), %rdx
cmpq %rdx, %rax
je 0x2ecfd
leaq (%r15,%r12,8), %rcx
movq 0x8(%rcx), %rsi
movq %rsi, %rdi
subq %rdx, %rdi
addq %rdi, %rax
cmpq %rax, %rsi
je 0x2ecfd
movq %rax, 0x8(%rcx)
movq (%r14), %rdi
movq 0x8(%r14), %rsi
leaq 0x8(%rsp), %rdx
callq 0x1da95
movq 0x8(%r14), %rcx
cmpq %rcx, %rax
je 0x2ed2d
movq 0x8(%r14), %rdx
movq %rdx, %rsi
subq %rcx, %rsi
addq %rsi, %rax
cmpq %rax, %rdx
je 0x2ed2d
movq %rax, 0x8(%r14)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/fjamour[P]icentral/src/subgraph_t.cc
// Function: subgraph_t::print_graph(bool)
void subgraph_t::print_graph(bool with_nodes)
{
    printf("Edges: \n");
    for(set<edge_t >::iterator it = edge_set.begin(); it != edge_set.end(); it++) {
        printf("[%d] === [%d]\n", it->first, it->second);
    }
    if(with_nodes) {
        printf("Nodes with edge lists: \n");
        for(int i = 0; i < nodes_vec.size(); ++i) {
            printf("[%d]\t-- ", i);
            for(int j = 0; j < nodes_vec[i].size(); j++) {
                printf("[%d] ", nodes_vec[i][j]);
            }
            printf("\n");
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x2e44(%rip), %rdi      # 0x31baf
callq 0x2350
movq 0x30(%rbx), %r14
leaq 0x20(%rbx), %r12
cmpq %r12, %r14
je 0x2eda6
leaq 0x2e0d(%rip), %r15      # 0x31b91
movl 0x20(%r14), %esi
movl 0x24(%r14), %edx
movq %r15, %rdi
xorl %eax, %eax
callq 0x2030
movq %r14, %rdi
callq 0x2290
movq %rax, %r14
cmpq %r12, %rax
jne 0x2ed84
testb %bpl, %bpl
je 0x2ee4c
leaq 0x2e01(%rip), %rdi      # 0x31bb7
callq 0x2350
movq 0x8(%rbx), %rax
cmpq (%rbx), %rax
je 0x2ee4c
movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB
leaq 0x2dd0(%rip), %r15      # 0x31ba9
xorl %r12d, %r12d
leaq 0x2dbd(%rip), %rdi      # 0x31ba0
movl %r12d, %esi
xorl %eax, %eax
callq 0x2030
movq (%rbx), %rcx
leaq (%r12,%r12,2), %rbp
movq (%rcx,%rbp,8), %rax
cmpq %rax, 0x8(%rcx,%rbp,8)
je 0x2ee2b
xorl %r14d, %r14d
movl (%rax,%r14,4), %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0x2030
incq %r14
movq (%rbx), %rcx
movq (%rcx,%rbp,8), %rax
movq 0x8(%rcx,%rbp,8), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %r14, %rcx
ja 0x2ee02
movl $0xa, %edi
callq 0x22f0
movq 0x8(%rbx), %rax
subq (%rbx), %rax
incq %r12
sarq $0x3, %rax
imulq %r13, %rax
cmpq %r12, %rax
ja 0x2eddc
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/fjamour[P]icentral/src/subgraph_t.cc
// Function: subgraph_t::find_sssp(unsigned int, std::vector<int, std::allocator<int>>&)
void subgraph_t::find_sssp(node_id_t s, vector<int>& out_vec)
{
    out_vec.clear();
    i_fill_map<int>(out_vec, -1);
    queue<node_id_t> Q;
    Q.push(s);
    out_vec[s] = 0;
    while(!Q.empty()) {
        node_id_t v = Q.front(); Q.pop();
        vector<node_id_t> nbr_vec = get_nbrs(v);
        for(int i = 0; i < nbr_vec.size(); ++i) {
            node_id_t nbr = nbr_vec[i];
            if(out_vec[nbr] == -1) {
                out_vec[nbr] = out_vec[v] + 1;
                Q.push(nbr);
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %rbx
movq %rdi, %r14
movl %esi, (%rsp)
movq (%rdx), %rax
cmpq %rax, 0x8(%rdx)
je 0x2f204
movq %rax, 0x8(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2f7bc
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %r15
movaps %xmm0, 0x40(%r15)
movaps %xmm0, 0x30(%r15)
movaps %xmm0, 0x20(%r15)
movaps %xmm0, 0x10(%r15)
movaps %xmm0, (%r15)
movq %r15, %rdi
xorl %esi, %esi
callq 0x6b50
movq 0x30(%r15), %rax
movq 0x40(%r15), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x2f25f
movl (%rsp), %ecx
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x50(%rsp)
jmp 0x2f26c
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
callq 0x7644
movl (%rsp), %eax
movq (%rbx), %rcx
movl $0x0, (%rcx,%rax,4)
movq 0x30(%rsp), %rax
cmpq %rax, 0x50(%rsp)
je 0x2f38e
leaq 0x20(%rsp), %r12
leaq 0x4(%rsp), %r13
movl (%rax), %ebp
movq 0x40(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x2f2a9
addq $0x4, %rax
jmp 0x2f2db
movq 0x38(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
callq 0x2250
movq 0x48(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x48(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x38(%rsp)
leaq 0x200(%rax), %rcx
movq %rcx, 0x40(%rsp)
movq %rax, 0x30(%rsp)
leaq (,%rbp,2), %rsi
addq %rbp, %rsi
shlq $0x3, %rsi
addq (%r14), %rsi
leaq 0x8(%rsp), %rdi
callq 0x61a0
movq 0x8(%rsp), %rdi
cmpq %rdi, 0x10(%rsp)
je 0x2f36c
xorl %r15d, %r15d
movl (%rdi,%r15,4), %eax
movl %eax, 0x4(%rsp)
movq (%rbx), %rcx
cmpl $-0x1, (%rcx,%rax,4)
jne 0x2f353
movl (%rcx,%rbp,4), %edx
incl %edx
movl %edx, (%rcx,%rax,4)
movq 0x50(%rsp), %rax
movq 0x60(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x2f348
movl 0x4(%rsp), %ecx
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x50(%rsp)
jmp 0x2f353
movq %r12, %rdi
movq %r13, %rsi
callq 0x7644
incq %r15
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rax
subq %rdi, %rax
sarq $0x2, %rax
cmpq %r15, %rax
ja 0x2f30b
testq %rdi, %rdi
je 0x2f37e
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x30(%rsp), %rax
cmpq %rax, 0x50(%rsp)
jne 0x2f293
leaq 0x20(%rsp), %rdi
callq 0x6998
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2f3a9
movq %rax, %rbx
jmp 0x2f3c8
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2f3c8
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
leaq 0x20(%rsp), %rdi
callq 0x6998
movq %rbx, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O1/fjamour[P]icentral/src/subgraph_t.cc
// Function: subgraph_t::find_pruning_counts_exp(unsigned int, unsigned int, int&, int&, int&)
void subgraph_t::find_pruning_counts_exp(node_id_t src,
                                        node_id_t dst,
                                        int& d0_cnt,
                                        int& d1_cnt,
                                        int& d2_cnt)
{
    vector<int> d_src_vec, d_dst_vec;
    find_sssp(src, d_src_vec);
    find_sssp(dst, d_dst_vec);
    d0_cnt = 0;
    d1_cnt = 0;
    d2_cnt = 0;
    for(int i = 0; i < nodes_vec.size(); ++i) {
        node_id_t s = i;
        int diff = d_src_vec[s] - d_dst_vec[s];
        int abs_diff = abs(diff);
        switch(abs_diff) {
            case 0:  d0_cnt++; break;
            case 1:  d1_cnt++; break;
            default: d2_cnt++;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movl %edx, %ebp
movq %rdi, %r12
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rdx
movaps %xmm0, (%rdx)
xorl %eax, %eax
movq %rax, 0x10(%rdx)
movq %rax, 0x10(%rsp)
movaps %xmm0, (%rsp)
callq 0x2f1e0
movq %rsp, %rdx
movq %r12, %rdi
movl %ebp, %esi
callq 0x2f1e0
xorl %eax, %eax
movl %eax, (%r15)
movl %eax, (%r14)
movl %eax, (%rbx)
movq 0x8(%r12), %rcx
subq (%r12), %rcx
je 0x2f488
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
movq 0x20(%rsp), %rcx
movq (%rsp), %rdx
cmpq $0x1, %rax
adcq $0x0, %rax
xorl %esi, %esi
movl (%rcx,%rsi,4), %r8d
subl (%rdx,%rsi,4), %r8d
movl %r8d, %edi
negl %edi
cmovsl %r8d, %edi
movq %r15, %r8
testl %edi, %edi
je 0x2f47d
movq %r14, %r8
cmpl $0x1, %edi
je 0x2f47d
movq %rbx, %r8
incl (%r8)
incq %rsi
cmpq %rsi, %rax
jne 0x2f45a
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x2f49e
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x2f4b5
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x2f4db
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq %rsp, %rdi
leaq 0x20(%rsp), %rsi
callq 0x2f01
movq %rbx, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O1/fjamour[P]icentral/src/subgraph_t.cc
// Function: subgraph_t::fill_graph(graph_hash_t&)
void subgraph_t::fill_graph(graph_hash_t& g)
{       
    nodes_vec.clear();
    edge_set.clear();
    
    inout_label_map.clear(); // maps internal labels to original
    outin_label_map.clear(); // original labels to internal    

    nodes_vec.resize(g.size());
    inout_label_map.resize(g.size());
    int cnt = 0;
    for(graph_hash_t::nodes_map_t::iterator it = g.nodes_map.begin();
            it != g.nodes_map.end();
            ++it) {
        inout_label_map[cnt] = it->first;
        outin_label_map.insert(make_pair(it->first, cnt));
        cnt++;
    }
    for(set<edge_t>::iterator it = g.edge_set.begin();
            it != g.edge_set.end();
            ++it) {
        node_id_t src, dst;
        src = outin_label_map[it->first];
        dst = outin_label_map[it->second];
        insert_edge(src, dst);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rsi
callq 0x71f2
leaq 0x18(%r14), %rdi
callq 0x1da68
leaq 0x48(%r14), %rax
movq %rax, (%rsp)
movq 0x48(%r14), %rax
cmpq %rax, 0x50(%r14)
je 0x2f52b
movq %rax, 0x50(%r14)
leaq 0x60(%r14), %r15
movq 0x68(%r14), %rsi
movq 0x70(%r14), %rdx
movq %r15, %rdi
callq 0x6734
movq $0x0, 0x78(%r14)
movq %rbx, %rdi
callq 0x1c62c
movq %r14, %rdi
movq %rax, %rsi
callq 0x5eac
movq %rbx, %rdi
callq 0x1c62c
movq (%rsp), %rdi
movq %rax, %rsi
callq 0x1537c
movq 0x8(%rbx), %r13
movq (%r13), %rbp
testq %rbp, %rbp
jne 0x2f585
movq 0x8(%r13), %rbp
addq $0x8, %r13
jmp 0x2f576
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
cmpq (%rax,%rcx,8), %rbp
je 0x2f5e6
xorl %r12d, %r12d
movl (%rbp), %eax
movq (%rsp), %rcx
movq (%rcx), %rcx
movl %eax, (%rcx,%r12,4)
movl (%rbp), %eax
movl %eax, 0x8(%rsp)
movl %r12d, 0xc(%rsp)
leaq 0x10(%rsp), %rdi
movq %r15, %rsi
leaq 0x8(%rsp), %rdx
callq 0x2fa7c
movq 0x20(%rbp), %rbp
testq %rbp, %rbp
jne 0x2f5d5
movq 0x8(%r13), %rbp
addq $0x8, %r13
jmp 0x2f5c6
incq %r12
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
cmpq (%rax,%rcx,8), %rbp
jne 0x2f596
movq 0x48(%rbx), %r12
addq $0x38, %rbx
cmpq %rbx, %r12
je 0x2f62b
leaq 0x20(%r12), %rsi
movq %r15, %rdi
callq 0x5d84
movl (%rax), %ebp
leaq 0x24(%r12), %rsi
movq %r15, %rdi
callq 0x5d84
movl (%rax), %edx
movq %r14, %rdi
movl %ebp, %esi
callq 0x2eb74
movq %r12, %rdi
callq 0x2290
movq %rax, %r12
cmpq %rbx, %rax
jne 0x2f5f3
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/fjamour[P]icentral/src/subgraph_t.cc
// Function: subgraph_t::fill_graph(graph_t&)
void subgraph_t::fill_graph(graph_t& g)
{       
    nodes_vec.clear();
    edge_set.clear();
    
    inout_label_map.clear(); // maps internal labels to original
    outin_label_map.clear(); // original labels to internal    

    nodes_vec.resize(g.size());
    for(node_id_t i = 0; i < g.size(); ++i) {
        nodes_vec[i] = g.nodes_vec[i].nbrs_vec;
    } 
    edge_set = g.edge_set;
    
    inout_label_map.resize(size());
    for(node_id_t i = 0; i < size(); ++i) {
        outin_label_map.insert(make_pair(i, i));
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movq (%rdi), %rsi
callq 0x71f2
leaq 0x18(%rbx), %r13
movq %r13, %rdi
callq 0x1da68
movq 0x48(%rbx), %rax
cmpq %rax, 0x50(%rbx)
je 0x2f670
movq %rax, 0x50(%rbx)
leaq 0x48(%rbx), %rax
movq %rax, 0x8(%rsp)
leaq 0x60(%rbx), %r14
movq 0x68(%rbx), %rsi
movq 0x70(%rbx), %rdx
movq %r14, %rdi
callq 0x6734
movq $0x0, 0x78(%rbx)
movq %r15, %rdi
callq 0x1e160
movq %rbx, %rdi
movq %rax, %rsi
callq 0x5eac
movq %r15, %rdi
callq 0x1e160
testq %rax, %rax
je 0x2f6e5
movl $0x1, %ebp
xorl %r12d, %r12d
shlq $0x3, %r12
leaq (%r12,%r12,2), %rdi
movq (%r15), %rsi
addq %rdi, %rsi
addq (%rbx), %rdi
callq 0x5dd6
movl %ebp, %r12d
movq %r15, %rdi
callq 0x1e160
incl %ebp
cmpq %r12, %rax
ja 0x2f6bd
addq $0x30, %r15
movq %r13, %rdi
movq %r15, %rsi
callq 0x2ba2e
movq 0x8(%rbx), %rsi
subq (%rbx), %rsi
sarq $0x3, %rsi
movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB
imulq %r13, %rsi
movq 0x8(%rsp), %rdi
callq 0x1537c
movq 0x8(%rbx), %rax
cmpq (%rbx), %rax
je 0x2f75d
movl $0x1, %ebp
leaq 0x10(%rsp), %r15
movq %rsp, %r12
leal -0x1(%rbp), %eax
movl %eax, (%rsp)
movl %eax, 0x4(%rsp)
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x2fa7c
movl %ebp, %eax
movq 0x8(%rbx), %rcx
subq (%rbx), %rcx
sarq $0x3, %rcx
imulq %r13, %rcx
incl %ebp
cmpq %rax, %rcx
ja 0x2f72d
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/fjamour[P]icentral/src/utility.cc
// Function: simple_stats(std::vector<double, std::allocator<double>>, double&, double&, double&, double&, double&)
void simple_stats(vector<double> vec,
        double& mean,
        double& stddev,
        double& median,
        double& min,
        double& max)
{
    sort(vec.begin(), vec.end());
    min = *(min_element(vec.begin(), vec.end()));
    max = *(max_element(vec.begin(), vec.end()));
    double sum = accumulate(vec.begin(), vec.end(), 0.0);
    mean = sum/vec.size();
    median = vec[vec.size()/2];
    
    double sum_2 = 0;
    for(int i = 0; i < vec.size(); ++i)
        sum_2 += ((vec[i]-mean)*(vec[i]-mean));
    stddev = sqrt(sum_2/vec.size());
    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %r13
movq %rdx, 0x8(%rsp)
movq %rsi, %r12
movq %rdi, %rbp
movq (%rdi), %rbx
movq 0x8(%rdi), %r15
cmpq %r15, %rbx
je 0x2fb49
movq %r15, %rax
subq %rbx, %rax
sarq $0x3, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %rbx, %rdi
movq %r15, %rsi
movq %r9, 0x10(%rsp)
movq %rcx, %r14
callq 0x2fd47
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2fe40
movq %r14, %rcx
movq 0x10(%rsp), %r9
movq (%rbp), %rax
movq 0x8(%rbp), %r10
cmpq %r10, %rax
sete %dil
leaq 0x8(%rax), %rdx
cmpq %r10, %rdx
sete %sil
orb %dil, %sil
je 0x2fb77
movsd (%rax), %xmm0
movsd %xmm0, (%r13)
movq %rax, %rdi
jmp 0x2fbcb
movq %rdx, %rdi
movq %rax, %rbx
movsd (%rbx), %xmm0
ucomisd (%rdi), %xmm0
movq %rdi, %r14
ja 0x2fb8d
movq %rbx, %r14
addq $0x8, %rdi
movq %r14, %rbx
cmpq %r10, %rdi
jne 0x2fb7d
movsd (%r14), %xmm0
movsd %xmm0, (%r13)
movq %rax, %rdi
testb %sil, %sil
jne 0x2fbcb
movq %rax, %rsi
movsd (%rdx), %xmm0
ucomisd (%rsi), %xmm0
movq %rdx, %rdi
ja 0x2fbbf
movq %rsi, %rdi
addq $0x8, %rdx
movq %rdi, %rsi
cmpq %r10, %rdx
jne 0x2fbaf
movsd (%rdi), %xmm0
movsd %xmm0, (%r9)
xorpd %xmm0, %xmm0
xorpd %xmm2, %xmm2
cmpq %r10, %rax
je 0x2fbf1
movq %rax, %rdx
addsd (%rdx), %xmm2
addq $0x8, %rdx
cmpq %r10, %rdx
jne 0x2fbe4
movq %r10, %rsi
subq %rax, %rsi
movq %rsi, %rdx
sarq $0x3, %rdx
sarq %rsi
andq $-0x8, %rsi
movq %rdx, %xmm3
punpckldq 0x160e(%rip), %xmm3 # xmm3 = xmm3[0],mem[0],xmm3[1],mem[1]
subpd 0x1616(%rip), %xmm3     # 0x31230
movapd %xmm3, %xmm1
unpckhpd %xmm3, %xmm1            # xmm1 = xmm1[1],xmm3[1]
addsd %xmm3, %xmm1
divsd %xmm1, %xmm2
movsd %xmm2, (%r12)
movsd (%rax,%rsi), %xmm2
movsd %xmm2, (%rcx)
cmpq %rax, %r10
je 0x2fc6b
movsd (%r12), %xmm2
cmpq $0x1, %rdx
adcq $0x0, %rdx
xorpd %xmm0, %xmm0
xorl %ecx, %ecx
movsd (%rax,%rcx,8), %xmm3
subsd %xmm2, %xmm3
mulsd %xmm3, %xmm3
addsd %xmm3, %xmm0
incq %rcx
cmpq %rcx, %rdx
jne 0x2fc52
divsd %xmm1, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x2fc7f
sqrtsd %xmm0, %xmm0
jmp 0x2fc84
callq 0x21d0
movq 0x8(%rsp), %rax
movsd %xmm0, (%rax)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/fjamour[P]icentral/src/utility.cc
// Function: extract_graph_name(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string extract_graph_name(string path)
{
    string out;
    int pos = path.rfind("/") + 1;
    int length = path.length() - pos + 1;
    out = path.substr(pos, length);
    return out;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq %r15, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
leaq 0x20ff(%rip), %rsi      # 0x31dc4
movl $0x1, %ecx
movq %r14, %rdi
movq $-0x1, %rdx
callq 0x22e0
movl 0x8(%r14), %ecx
incl %eax
movslq %eax, %rdx
subl %edx, %ecx
incl %ecx
movslq %ecx, %rcx
movq %rsp, %rdi
movq %r14, %rsi
callq 0x2260
movq %rsp, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x22d0
movq (%r14), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2fd1c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2250
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x2fd3f
movq (%r15), %rsi
incq %rsi
callq 0x2250
movq %r14, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O1/sidscrazy[P]Paxos/paxos_tester.cpp
// Function: run_paxos(int, int)
std::chrono::duration<double> run_paxos (int n, int p){
	std::chrono::duration<double> total;
	for (int i = 0; i < ATTEMPTS; i++) {
		auto start = std::chrono::system_clock::now();
		PaxosController *pc  = new PaxosController(n, p);
		pc->end_simulation ();
		auto end = std::chrono::system_clock::now();
		std::chrono::duration<double> diff = end-start;
		pc->clear_memory ();
		delete pc;
		total += diff;
		std::cout << "cur avg "  << (total / (i + 1)).count () << " seconds." << std::endl;
	}

	return (total / ATTEMPTS );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, -0x34(%rbp)
movl %edi, %r14d
movl $0x1, %ebx
movq 0x57d3(%rip), %r15      # 0x7fd8
callq 0x2040
movq %rax, %r13
movl $0xc8, %edi
callq 0x2220
movq %rax, %r12
movq %rax, %rdi
movl %r14d, %esi
movl -0x34(%rbp), %edx
callq 0x343c
movq %r12, %rdi
callq 0x37fe
callq 0x2040
subq %r13, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x27c0(%rip), %xmm0     # 0x5008
movsd %xmm0, -0x40(%rbp)
movq %r12, %rdi
callq 0x386c
movq 0x48(%r12), %rdi
testq %rdi, %rdi
je 0x2864
callq 0x21f0
movq %r12, %rdi
addq $0x30, %rdi
callq 0x3a18
movq 0x18(%r12), %rdi
testq %rdi, %rdi
je 0x287f
callq 0x21f0
movq (%r12), %rdi
testq %rdi, %rdi
je 0x288d
callq 0x21f0
movq %r12, %rdi
callq 0x21f0
movsd -0x30(%rbp), %xmm0
addsd -0x40(%rbp), %xmm0
movsd %xmm0, -0x30(%rbp)
movl $0x8, %edx
movq %r15, %rdi
leaq 0x27cd(%rip), %rsi      # 0x5080
callq 0x2240
cvtsi2sd %ebx, %xmm1
movsd -0x30(%rbp), %xmm0
divsd %xmm1, %xmm0
movq %r15, %rdi
callq 0x2300
movq %rax, %r12
movl $0x9, %edx
movq %rax, %rdi
leaq 0x27aa(%rip), %rsi      # 0x5089
callq 0x2240
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2130
incl %ebx
cmpl $0x10, %ebx
jne 0x2805
movsd -0x30(%rbp), %xmm0
divsd 0x26ec(%rip), %xmm0     # 0x5010
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %r12, %rdi
callq 0x21f0
movq %rbx, %rdi
callq 0x2340
// File: /workspace/github_cpp_makefile_star2_O1/sidscrazy[P]Paxos/./paxos_controller.cpp
// Function: PaxosController::end_simulation()
void end_simulation (){
		int status;
		char buf[1024];
		for (int i = 0; i < nodes ; i++){
			threads[i].join ();
			waitpid (children[i], &status, 0);
		}
		log->CloseLogFile ();
		//std::cout << "Simulation Complete" << std::endl;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
cmpl $0x0, 0xb0(%rdi)
jle 0x3853
xorl %r15d, %r15d
leaq -0x24(%rbp), %r14
xorl %r12d, %r12d
movq 0x30(%rbx), %rdi
addq %r15, %rdi
callq 0x2320
movq (%rbx), %rax
movl (%rax,%r12,4), %edi
movq %r14, %rsi
xorl %edx, %edx
callq 0x2180
incq %r12
movslq 0xb0(%rbx), %rax
addq $0x8, %r15
cmpq %rax, %r12
jl 0x3823
movq 0xc0(%rbx), %rdi
callq 0x4526
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/sidscrazy[P]Paxos/./paxos_controller.cpp
// Function: PaxosController::clear_memory()
void clear_memory (){
		children.erase (children.begin (), children.end ());
		sockets.erase (sockets.begin (), sockets.end ());
		threads.erase (threads.begin (), threads.end ());
		mutexes.clear ();
		delete log;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
cmpq %rcx, %rax
je 0x3897
movq 0x8(%rbx), %rdx
movq %rdx, %rsi
subq %rcx, %rsi
addq %rsi, %rax
cmpq %rax, %rdx
je 0x3897
movq %rax, 0x8(%rbx)
movq 0x18(%rbx), %rax
movq 0x20(%rbx), %rcx
cmpq %rcx, %rax
je 0x38ba
movq 0x20(%rbx), %rdx
movq %rdx, %rsi
subq %rcx, %rsi
addq %rsi, %rax
cmpq %rax, %rdx
je 0x38ba
movq %rax, 0x20(%rbx)
leaq 0x30(%rbx), %rdi
movq 0x30(%rbx), %rsi
movq 0x38(%rbx), %rdx
callq 0x3ebe
movq 0x48(%rbx), %rax
cmpq %rax, 0x50(%rbx)
je 0x38d9
movq %rax, 0x50(%rbx)
movq 0xc0(%rbx), %rbx
testq %rbx, %rbx
je 0x38fb
movq %rbx, %rdi
callq 0x446e
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x21f0
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/cdalitz[P]kdtree-cpp/kdtree.cpp
// Function: Kdtree::KdTree::KdTree(std::vector<Kdtree::KdNode, std::allocator<Kdtree::KdNode>> const*, int)
KdTree::KdTree(const KdNodeVector* nodes, int distance_type /*=2*/) {
  size_t i, j;
  double val;
  // copy over input data
  if (!nodes || nodes->empty())
    throw std::invalid_argument(
        "kdtree::KdTree(): argument nodes must not be empty");
  dimension = nodes->begin()->point.size();
  allnodes = *nodes;
  // initialize distance values
  distance = NULL;
  this->distance_type = -1;
  set_distance(distance_type);
  // compute global bounding box
  lobound = nodes->begin()->point;
  upbound = nodes->begin()->point;
  for (i = 1; i < nodes->size(); i++) {
    for (j = 0; j < dimension; j++) {
      val = allnodes[i].point[j];
      if (lobound[j] > val) lobound[j] = val;
      if (upbound[j] < val) upbound[j] = val;
    }
  }
  // build tree recursively
  root = build_tree(0, 0, allnodes.size());
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x18(%rdi), %r14
leaq 0x48(%rdi), %r15
xorpd %xmm0, %xmm0
movupd %xmm0, 0x48(%rdi)
movq $0x0, 0x58(%rdi)
movupd %xmm0, (%rdi)
movupd %xmm0, 0x10(%rdi)
movupd %xmm0, 0x20(%rdi)
testq %rsi, %rsi
je 0x3ab2
movq %rsi, %r12
movq (%rsi), %rax
cmpq 0x8(%rsi), %rax
je 0x3ab2
movl %edx, %ebp
movq 0x8(%rax), %rcx
subq (%rax), %rcx
sarq $0x3, %rcx
movq %rcx, 0x60(%rbx)
movq %r15, %rdi
movq %r12, %rsi
callq 0x46b6
movq $0x0, 0x38(%rbx)
movl $0xffffffff, 0x30(%rbx) # imm = 0xFFFFFFFF
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x3b30
movq (%r12), %rsi
movq %rbx, %rdi
callq 0x339e
movq (%r12), %rsi
movq %r14, %rdi
callq 0x339e
movq 0x8(%r12), %rcx
subq (%r12), %rcx
sarq $0x3, %rcx
movabsq $-0x3333333333333333, %rax # imm = 0xCCCCCCCCCCCCCCCD
imulq %rax, %rcx
cmpq $0x2, %rcx
jb 0x3a83
movq 0x60(%rbx), %rdx
movq 0x48(%rbx), %rsi
movq (%rbx), %rdi
movq 0x18(%rbx), %r8
movl $0x1, %r9d
testq %rdx, %rdx
je 0x3a7b
leaq (%r9,%r9,4), %r10
movq (%rsi,%r10,8), %r10
xorl %r11d, %r11d
movsd (%r10,%r11,8), %xmm0
movsd (%rdi,%r11,8), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x3a65
movsd %xmm0, (%rdi,%r11,8)
ucomisd (%r8,%r11,8), %xmm0
jbe 0x3a73
movsd %xmm0, (%r8,%r11,8)
incq %r11
cmpq %r11, %rdx
jne 0x3a4d
incq %r9
cmpq %rcx, %r9
jne 0x3a3d
movq 0x50(%rbx), %rcx
subq 0x48(%rbx), %rcx
sarq $0x3, %rcx
imulq %rax, %rcx
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3bc0
movq %rax, 0x68(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x2080
movq %rax, %r13
leaq 0x383a(%rip), %rsi      # 0x7300
movq %rax, %rdi
callq 0x21b0
movq 0x650b(%rip), %rsi      # 0x9fe0
movq 0x64f4(%rip), %rdx      # 0x9fd0
movq %r13, %rdi
callq 0x2190
jmp 0x3af5
jmp 0x3af5
movq %rax, %r12
movq %r13, %rdi
callq 0x20d0
jmp 0x3af8
movq %rax, %r12
movq %r15, %rdi
callq 0x3350
movq (%r14), %rdi
testq %rdi, %rdi
je 0x3b14
movq 0x28(%rbx), %rsi
subq %rdi, %rsi
callq 0x2120
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3b28
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x2120
movq %r12, %rdi
callq 0x21a0
// File: /workspace/github_cpp_makefile_star2_O1/cdalitz[P]kdtree-cpp/kdtree.cpp
// Function: Kdtree::KdTree::set_distance(int, std::vector<double, std::allocator<double>> const*)
void KdTree::set_distance(int distance_type,
                          const DoubleVector* weights /*=NULL*/) {
  if (distance) delete distance;
  this->distance_type = distance_type;
  if (distance_type == 0) {
    distance = (DistanceMeasure*)new DistanceL0(weights);
  } else if (distance_type == 1) {
    distance = (DistanceMeasure*)new DistanceL1(weights);
  } else {
    distance = (DistanceMeasure*)new DistanceL2(weights);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %r14
movq 0x38(%rdi), %rdi
testq %rdi, %rdi
je 0x3b4e
movq (%rdi), %rax
callq *0x8(%rax)
movl %ebp, 0x30(%r14)
movl $0x10, %edi
callq 0x2110
movq %rax, %rbx
cmpl $0x1, %ebp
je 0x3b75
testl %ebp, %ebp
jne 0x3b82
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4856
jmp 0x3b8d
movq %rbx, %rdi
movq %r15, %rsi
callq 0x48b0
jmp 0x3b8d
movq %rbx, %rdi
movq %r15, %rsi
callq 0x490a
movq (%rbx), %rax
addq -0x30(%rax), %rbx
movq %rbx, 0x38(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3ba7
jmp 0x3ba7
movq %rax, %r14
movl $0x10, %esi
movq %rbx, %rdi
callq 0x2120
movq %r14, %rdi
callq 0x21a0
nop
// File: /workspace/github_cpp_makefile_star2_O1/cdalitz[P]kdtree-cpp/kdtree.cpp
// Function: Kdtree::KdTree::range_nearest_neighbors(std::vector<double, std::allocator<double>> const&, double, std::vector<Kdtree::KdNode, std::allocator<Kdtree::KdNode>>*)
void KdTree::range_nearest_neighbors(const CoordPoint& point, double r,
                                     KdNodeVector* result) {
  KdNode temp;

  result->clear();
  if (point.size() != dimension)
    throw std::invalid_argument(
        "kdtree::k_nearest_neighbors(): point must be of same dimension as "
        "kdtree");
  if (this->distance_type == 2) {
    // if euclidien distance is used the range must be squared because we
    // get squared distances from this implementation
    r *= r;
  }

  // collect result in range_result
  std::vector<size_t> range_result;
  range_search(point, root, r, &range_result);

  // copy over result
  for (std::vector<size_t>::iterator i = range_result.begin();
       i != range_result.end(); ++i) {
    result->push_back(allnodes[*i]);
  }

  // clear vector
  range_result.clear();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdx, %rbx
movsd %xmm0, 0x18(%rsp)
movq %rsi, %r15
movq %rdi, %r14
movq (%rdx), %rsi
movq %rdx, %rdi
callq 0x5c20
movq 0x8(%r15), %rax
subq (%r15), %rax
sarq $0x3, %rax
cmpq 0x60(%r14), %rax
jne 0x4310
cmpl $0x2, 0x30(%r14)
je 0x4291
movsd 0x18(%rsp), %xmm0
jmp 0x429b
movsd 0x18(%rsp), %xmm0
mulsd %xmm0, %xmm0
xorps %xmm1, %xmm1
movq %rsp, %rcx
movaps %xmm1, (%rcx)
movq $0x0, 0x10(%rcx)
movq 0x68(%r14), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4372
movq (%rsp), %r15
movq 0x8(%rsp), %rax
cmpq %rax, %r15
je 0x42e6
movq (%r15), %rax
leaq (%rax,%rax,4), %rsi
shlq $0x3, %rsi
addq 0x48(%r14), %rsi
movq %rbx, %rdi
callq 0x4a3c
addq $0x8, %r15
jmp 0x42bf
movq (%rsp), %rdi
cmpq %rdi, %rax
je 0x42f4
movq %rdi, 0x8(%rsp)
testq %rdi, %rdi
je 0x4306
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2120
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movl $0x10, %edi
callq 0x2080
movq %rax, %r14
leaq 0x300f(%rip), %rsi      # 0x7333
movq %rax, %rdi
callq 0x21b0
movq 0x5cad(%rip), %rsi      # 0x9fe0
movq 0x5c96(%rip), %rdx      # 0x9fd0
movq %r14, %rdi
callq 0x2190
movq %rax, %rbx
movq %r14, %rdi
callq 0x20d0
jmp 0x436a
jmp 0x4351
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x436a
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2120
movq %rbx, %rdi
callq 0x21a0
// File: /workspace/github_cpp_makefile_star2_O1/cdalitz[P]kdtree-cpp/kdtree.cpp
// Function: Kdtree::KdTree::range_search(std::vector<double, std::allocator<double>> const&, Kdtree::kdtree_node*, double, std::vector<unsigned long, std::allocator<unsigned long>>*)
void KdTree::range_search(const CoordPoint& point, kdtree_node* node,
                          double r, std::vector<size_t>* range_result) {
  double curdist = distance->distance(point, node->point);
  if (curdist <= r) {
    range_result->push_back(node->dataindex);
  }
  if (node->loson != NULL && this->bounds_overlap_ball(point, r, node->loson)) {
    range_search(point, node->loson, r, range_result);
  }
  if (node->hison != NULL && this->bounds_overlap_ball(point, r, node->hison)) {
    range_search(point, node->hison, r, range_result);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movsd %xmm0, (%rsp)
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq 0x38(%r12), %rdi
leaq 0x10(%r14), %rdx
movq (%rdi), %rax
movq %r15, %rsi
callq *0x10(%rax)
movsd (%rsp), %xmm1
ucomisd %xmm0, %xmm1
jb 0x43cd
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x43c2
movq (%r14), %rax
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x43cd
movq %rbx, %rdi
movq %r14, %rdx
callq 0x6054
movq 0x28(%r14), %rdx
testq %rdx, %rdx
je 0x4401
movq %r12, %rdi
movq %r15, %rsi
movsd (%rsp), %xmm0
callq 0x4434
testb %al, %al
je 0x4401
movq 0x28(%r14), %rdx
movq %r12, %rdi
movq %r15, %rsi
movsd (%rsp), %xmm0
movq %rbx, %rcx
callq 0x4372
movq 0x30(%r14), %rdx
testq %rdx, %rdx
je 0x4427
movq %r12, %rdi
movq %r15, %rsi
movsd (%rsp), %xmm0
callq 0x4434
testb %al, %al
je 0x4427
movq 0x30(%r14), %r14
jmp 0x438b
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/cdalitz[P]kdtree-cpp/kdtree.cpp
// Function: Kdtree::KdTree::bounds_overlap_ball(std::vector<double, std::allocator<double>> const&, double, Kdtree::kdtree_node*)
bool KdTree::bounds_overlap_ball(const CoordPoint& point, double dist,
                                 kdtree_node* node) {
  if (distance_type != 0) {
    double distsum = 0.0;
    size_t i;
    for (i = 0; i < dimension; i++) {
      if (point[i] < node->lobound[i]) {  // lower than low boundary
        distsum += distance->coordinate_distance(point[i], node->lobound[i], i);
        if (distsum > dist) return false;
      } else if (point[i] > node->upbound[i]) {  // higher than high boundary
        distsum += distance->coordinate_distance(point[i], node->upbound[i], i);
        if (distsum > dist) return false;
      }
    }
    return true;
  } else { // maximum distance needs different treatment
    double max_dist = 0.0;
    double curr_dist = 0.0;
    size_t i;
    for (i = 0; i < dimension; i++) {
      if (point[i] < node->lobound[i]) {  // lower than low boundary
        curr_dist = distance->coordinate_distance(point[i], node->lobound[i], i);
      } else if (point[i] > node->upbound[i]) {  // higher than high boundary
        curr_dist = distance->coordinate_distance(point[i], node->upbound[i], i);
      }
      if(curr_dist > max_dist) {
        max_dist = curr_dist;
      }
      if (max_dist > dist) return false;
    }
    return true;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movsd %xmm0, 0x10(%rsp)
movq %rsi, %r14
movq %rdi, %r15
cmpl $0x0, 0x30(%rdi)
je 0x44c9
cmpq $0x0, 0x60(%r15)
sete %al
je 0x4548
xorpd %xmm2, %xmm2
xorl %r12d, %r12d
movq (%r14), %rax
movsd (%rax,%r12,8), %xmm0
movq 0x38(%rbx), %rax
movsd (%rax,%r12,8), %xmm1
ucomisd %xmm0, %xmm1
ja 0x4492
movq 0x50(%rbx), %rax
movsd (%rax,%r12,8), %xmm1
ucomisd %xmm1, %xmm0
jbe 0x44bb
movq 0x38(%r15), %rdi
movq (%rdi), %rax
movq %r12, %rsi
movsd %xmm2, 0x8(%rsp)
callq *0x18(%rax)
movsd 0x8(%rsp), %xmm2
addsd %xmm0, %xmm2
ucomisd 0x10(%rsp), %xmm2
ja 0x4546
incq %r12
cmpq 0x60(%r15), %r12
setae %al
jb 0x4469
jmp 0x4548
cmpq $0x0, 0x60(%r15)
sete %al
je 0x4548
xorpd %xmm0, %xmm0
xorl %r12d, %r12d
xorpd %xmm3, %xmm3
movq (%r14), %rax
movsd (%rax,%r12,8), %xmm2
movq 0x38(%rbx), %rax
movsd (%rax,%r12,8), %xmm1
ucomisd %xmm2, %xmm1
ja 0x4507
movq 0x50(%rbx), %rax
movsd (%rax,%r12,8), %xmm1
ucomisd %xmm1, %xmm2
jbe 0x4524
movq 0x38(%r15), %rdi
movq (%rdi), %rax
movapd %xmm2, %xmm0
movq %r12, %rsi
movsd %xmm3, 0x8(%rsp)
callq *0x18(%rax)
movsd 0x8(%rsp), %xmm3
movapd %xmm0, %xmm1
maxsd %xmm3, %xmm1
ucomisd 0x10(%rsp), %xmm1
ja 0x4546
incq %r12
movapd %xmm1, %xmm3
cmpq 0x60(%r15), %r12
setae %al
jb 0x44de
jmp 0x4548
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/cdalitz[P]kdtree-cpp/kdtree.cpp
// Function: Kdtree::KdTree::ball_within_bounds(std::vector<double, std::allocator<double>> const&, double, Kdtree::kdtree_node*)
bool KdTree::ball_within_bounds(const CoordPoint& point, double dist,
                                kdtree_node* node) {
  size_t i;
  for (i = 0; i < dimension; i++)
    if (distance->coordinate_distance(point[i], node->lobound[i], i) <= dist ||
        distance->coordinate_distance(point[i], node->upbound[i], i) <= dist)
      return false;
  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpq $0x0, 0x60(%rdi)
sete %bl
je 0x460f
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq 0x38(%rdi), %rdi
movq (%rsi), %rax
movsd %xmm0, (%rsp)
movsd (%rax), %xmm0
movq 0x38(%rdx), %rax
movsd (%rax), %xmm1
movq (%rdi), %rax
xorl %esi, %esi
callq *0x18(%rax)
movsd (%rsp), %xmm1
ucomisd %xmm0, %xmm1
jae 0x460f
xorl %r13d, %r13d
movq 0x38(%r12), %rdi
movq (%r15), %rax
movsd (%rax,%r13,8), %xmm0
movq 0x50(%r14), %rax
movsd (%rax,%r13,8), %xmm1
movq (%rdi), %rax
movq %r13, %rsi
callq *0x18(%rax)
movsd (%rsp), %xmm1
ucomisd %xmm0, %xmm1
jae 0x460f
leaq 0x1(%r13), %rbp
cmpq 0x60(%r12), %rbp
setae %bl
jae 0x460f
movq 0x38(%r12), %rdi
movq (%r15), %rax
movsd 0x8(%rax,%r13,8), %xmm0
movq 0x38(%r14), %rax
movsd 0x8(%rax,%r13,8), %xmm1
movq (%rdi), %rax
movq %rbp, %rsi
callq *0x18(%rax)
movsd (%rsp), %xmm1
ucomisd %xmm0, %xmm1
movq %rbp, %r13
jb 0x45a4
andb $0x1, %bl
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/cdalitz[P]kdtree-cpp/kdtree.cpp
// Function: Kdtree::DistanceL0::DistanceL0(std::vector<double, std::allocator<double>> const*)
DistanceL0(const DoubleVector* weights = NULL) {
    if (weights)
      w = new DoubleVector(*weights);
    else
      w = (DoubleVector*)NULL;
  }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x53cb(%rip), %rax      # 0x9c30
movq %rax, (%rdi)
testq %rsi, %rsi
je 0x488a
movq %rsi, %r15
movl $0x18, %edi
callq 0x2110
movq %rax, %r14
movq %rax, %rdi
movq %r15, %rsi
callq 0x3256
jmp 0x488d
xorl %r14d, %r14d
movq %r14, 0x8(%rbx)
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movl $0x18, %esi
movq %r14, %rdi
callq 0x2120
movq %rbx, %rdi
callq 0x21a0
nop
// File: /workspace/github_cpp_makefile_star2_O1/cdalitz[P]kdtree-cpp/kdtree.cpp
// Function: Kdtree::DistanceL0::distance(std::vector<double, std::allocator<double>> const&, std::vector<double, std::allocator<double>> const&)
double distance(const CoordPoint& p, const CoordPoint& q) {
    size_t i;
    double dist, test;
    if (w) {
      dist = (*w)[0] * fabs(p[0] - q[0]);
      for (i = 1; i < p.size(); i++) {
        test = (*w)[i] * fabs(p[i] - q[i]);
        if (test > dist) dist = test;
      }
    } else {
      dist = fabs(p[0] - q[0]);
      for (i = 1; i < p.size(); i++) {
        test = fabs(p[i] - q[i]);
        if (test > dist) dist = test;
      }
    }
    return dist;
  }

// Assembly:
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x4b21
movq (%rax), %rax
movq (%rsi), %rcx
movsd (%rcx), %xmm1
movq (%rdx), %rdx
subsd (%rdx), %xmm1
andpd 0x281a(%rip), %xmm1     # 0x72f0
mulsd (%rax), %xmm1
movq 0x8(%rsi), %rsi
subq %rcx, %rsi
sarq $0x3, %rsi
cmpq $0x2, %rsi
jb 0x4b74
movl $0x1, %edi
movapd 0x27f4(%rip), %xmm2     # 0x72f0
movsd (%rcx,%rdi,8), %xmm0
subsd (%rdx,%rdi,8), %xmm0
andpd %xmm2, %xmm0
mulsd (%rax,%rdi,8), %xmm0
maxsd %xmm1, %xmm0
incq %rdi
movapd %xmm0, %xmm1
cmpq %rdi, %rsi
jne 0x4afc
jmp 0x4b73
movq (%rsi), %rax
movsd (%rax), %xmm1
movq (%rdx), %rcx
subsd (%rcx), %xmm1
andpd 0x27b9(%rip), %xmm1     # 0x72f0
movq 0x8(%rsi), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq $0x2, %rdx
jb 0x4b74
movl $0x1, %esi
movapd 0x279b(%rip), %xmm2     # 0x72f0
movsd (%rax,%rsi,8), %xmm0
subsd (%rcx,%rsi,8), %xmm0
andpd %xmm2, %xmm0
maxsd %xmm1, %xmm0
incq %rsi
movapd %xmm0, %xmm1
cmpq %rsi, %rdx
jne 0x4b55
retq
movapd %xmm1, %xmm0
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/cdalitz[P]kdtree-cpp/kdtree.cpp
// Function: Kdtree::DistanceL0::coordinate_distance(double, double, unsigned long)
double coordinate_distance(double x, double y, size_t dim) {
    if (w)
      return (*w)[dim] * fabs(x - y);
    else
      return fabs(x - y);
  }

// Assembly:
movq 0x8(%rdi), %rax
subsd %xmm1, %xmm0
andpd 0x2766(%rip), %xmm0     # 0x72f0
testq %rax, %rax
je 0x4b97
movq (%rax), %rax
mulsd (%rax,%rsi,8), %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O1/cdalitz[P]kdtree-cpp/kdtree.cpp
// Function: Kdtree::DistanceL1::distance(std::vector<double, std::allocator<double>> const&, std::vector<double, std::allocator<double>> const&)
double distance(const CoordPoint& p, const CoordPoint& q) {
    size_t i;
    double dist = 0.0;
    if (w) {
      for (i = 0; i < p.size(); i++) dist += (*w)[i] * fabs(p[i] - q[i]);
    } else {
      for (i = 0; i < p.size(); i++) dist += fabs(p[i] - q[i]);
    }
    return dist;
  }

// Assembly:
movq 0x8(%rdi), %rdi
movq (%rsi), %rax
movq 0x8(%rsi), %rcx
testq %rdi, %rdi
je 0x4c58
subq %rax, %rcx
je 0x4c95
sarq $0x3, %rcx
movq (%rdi), %rsi
cmpq $0x1, %rcx
adcq $0x0, %rcx
movq (%rdx), %rdx
xorpd %xmm0, %xmm0
xorl %edi, %edi
movapd 0x26b9(%rip), %xmm1     # 0x72f0
movsd (%rax,%rdi,8), %xmm2
subsd (%rdx,%rdi,8), %xmm2
andpd %xmm1, %xmm2
mulsd (%rsi,%rdi,8), %xmm2
addsd %xmm2, %xmm0
incq %rdi
cmpq %rdi, %rcx
jne 0x4c37
jmp 0x4c94
subq %rax, %rcx
je 0x4c95
sarq $0x3, %rcx
cmpq $0x1, %rcx
adcq $0x0, %rcx
movq (%rdx), %rdx
xorpd %xmm0, %xmm0
xorl %esi, %esi
movapd 0x2676(%rip), %xmm1     # 0x72f0
movsd (%rax,%rsi,8), %xmm2
subsd (%rdx,%rsi,8), %xmm2
andpd %xmm1, %xmm2
addsd %xmm2, %xmm0
incq %rsi
cmpq %rsi, %rcx
jne 0x4c7a
retq
xorps %xmm0, %xmm0
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/cdalitz[P]kdtree-cpp/kdtree.cpp
// Function: Kdtree::DistanceL2::coordinate_distance(double, double, unsigned long)
double coordinate_distance(double x, double y, size_t dim) {
    if (w)
      return (*w)[dim] * (x - y) * (x - y);
    else
      return (x - y) * (x - y);
  }

// Assembly:
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x4dcd
movq (%rax), %rax
subsd %xmm1, %xmm0
movsd (%rax,%rsi,8), %xmm1
mulsd %xmm0, %xmm1
mulsd %xmm0, %xmm1
jmp 0x4dd9
subsd %xmm1, %xmm0
mulsd %xmm0, %xmm0
movapd %xmm0, %xmm1
movapd %xmm1, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O1/mateuz[P]MTS-LS1/source/Benchmarks.cpp
// Function: Benchmarks::next(int)
int Benchmarks::next(int bits) {
  int64_t s;
  int64_t result;
  m_seed = s = (((m_seed * M) + A) & MASK);
  result = (s >> (L(48 - bits)));
  return((int)result);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0x10(%rdi), %rax
imulq 0x20(%rdi), %rax
addq 0x18(%rdi), %rax
andq 0x28(%rdi), %rax
movq %rax, 0x20(%rdi)
movb $0x30, %cl
subb %sil, %cl
sarq %cl, %rax
popq %rbp
retq
nop