// File: /workspace/github_cpp_makefile_star2_O1/fjamour[P]icentral/src/qube.cc
// Function: muc_t::compute_bc(std::tr1::unordered_map<unsigned int, double, std::tr1::hash<unsigned int>, std::equal_to<unsigned int>, std::allocator<std::pair<unsigned int const, double>>>&, int)
void muc_t::compute_bc(tr1::unordered_map<node_id_t, double>& bc_map,
        int max_iter)
{

    //bc_map will have for each vertex in the muc it's betweenness centrality
    //init bc of all nodes to zero
    bc_map.clear();
    if(!valid)
        return;
    
    muc_fast_subgraph.fill_graph(muc_subgraph);
    tmp_conn_vertex_map.clear();
    tmp_subgraph_map.clear();
    for(conn_vert_map_t::iterator it = conn_vertex_map.begin();
            it != conn_vertex_map.end();
            ++it) {
        node_id_t new_v = muc_fast_subgraph.outin_label_map[it->first];
        tmp_conn_vertex_map.insert(make_pair(new_v, it->second));
    }
    for(subgraph_map_t::iterator it = subgraph_map.begin();
            it != subgraph_map.end();
            ++it) {
        node_id_t new_v = muc_fast_subgraph.outin_label_map[it->first];
        tmp_subgraph_map.insert(make_pair(new_v, it->second));
    }
 
    
    for(graph_hash_t::nodes_map_t::iterator
                        it =  muc_subgraph.nodes_map.begin();
                        it != muc_subgraph.nodes_map.end();
                        ++it) {
        bc_map.insert(make_pair(it->first, 0));
    }
    

    //do BFS's from the nodes in the muc
    if(max_iter == -1)
        max_iter = muc_fast_subgraph.nodes_vec.size();
    else
        max_iter = min(max_iter, (int)muc_fast_subgraph.nodes_vec.size());
    for(int i = 0; i < max_iter; ++i) {
        node_id_t s = i;
        
#ifdef USE_OPTIMIZED_BRANDES_QUBE
        stack<node_id_t>                    S;
        vector<vector<node_id_t> >&         P = muc_fast_subgraph.P; 
        vector<int>&                        path_cnt_map = muc_fast_subgraph.path_cnt_vec;
        vector<int>&                        dist_map = muc_fast_subgraph.dist_vec;
        vector<double>&                     pair_dep_map = muc_fast_subgraph.pair_dep_vec;
        vector<double>&                     sigma_t_map = muc_fast_subgraph.sigma_t_map; 
        queue<node_id_t>&                   Q = muc_fast_subgraph.Q;
        muc_fast_subgraph.init_maps();
#else
        stack<node_id_t>                   S;
        vector<vector<node_id_t> >         P;
        vector<int>                        path_cnt_map;
        vector<int>                        dist_map;
        vector<double>                     pair_dep_map;
        vector<double>                     sigma_t_map;
        queue<node_id_t>                   Q;
        int N = muc_fast_subgraph.size();
        fill_vec<vector<node_id_t> >(P, N, vector<node_id_t>());
        fill_vec<int>(path_cnt_map, N, 0);
        fill_vec<int>(dist_map, N, -1);
        fill_vec<double>(pair_dep_map, N, 0);
        fill_vec<double>(sigma_t_map, N, 0);
#endif
        
        path_cnt_map[s] = 1;
        dist_map[s] = 0;
        
        Q.push(s);
        while(!Q.empty()) {
            node_id_t v_i = Q.front(); Q.pop();
            S.push(v_i);
            for(int i = 0; i < muc_fast_subgraph.nodes_vec[v_i].size(); ++i) {
                node_id_t v_n = muc_fast_subgraph.nodes_vec[v_i][i];
                if(dist_map[v_n] < 0) {
                    Q.push(v_n);
                    dist_map[v_n] = dist_map[v_i] + 1;
                }
                if(dist_map[v_n] == dist_map[v_i] + 1) {
                    path_cnt_map[v_n] = path_cnt_map[v_n] + path_cnt_map[v_i];
                    P[v_n].push_back(v_i);
                }
            }
        }
        while(!S.empty()) {
            node_id_t v_n = S.top(); S.pop();
            if(   tmp_conn_vertex_map.find(s) != tmp_conn_vertex_map.end()
               && tmp_conn_vertex_map.find(v_n) != tmp_conn_vertex_map.end()
               && s != v_n) {
                int VG_s, VG_n;
                VG_s = tmp_subgraph_map[s].size();
                VG_n = tmp_subgraph_map[v_n].size();
                int c_t = VG_s*VG_n;
                sigma_t_map[v_n] =  sigma_t_map[v_n] + c_t;
                
                node_id_t new_v_n = muc_fast_subgraph.inout_label_map[v_n];
                bc_map[new_v_n] = bc_map[new_v_n] + c_t;
            }
            for(int i = 0; i < P[v_n].size(); ++i) {
                node_id_t v_p = P[v_n][i];
                double sp_sn = ((double)path_cnt_map[v_p]/path_cnt_map[v_n]);
                pair_dep_map[v_p] = pair_dep_map[v_p] + sp_sn*(1+pair_dep_map[v_n]);
                if(tmp_conn_vertex_map.find(s) != tmp_conn_vertex_map.end()) {
                    sigma_t_map[v_p] = sigma_t_map[v_p] + sigma_t_map[v_n]*sp_sn;
                    
                    node_id_t new_v_p = muc_fast_subgraph.inout_label_map[v_p];
                    bc_map[new_v_p] = bc_map[new_v_p] + sigma_t_map[v_n]*sp_sn;
                }
            }
            if(s != v_n) {
                node_id_t new_v_n = muc_fast_subgraph.inout_label_map[v_n];
                bc_map[new_v_n] = bc_map[new_v_n] + pair_dep_map[v_n];
            }
            if(tmp_conn_vertex_map.find(s) != tmp_conn_vertex_map.end()) {
                int VG_s = tmp_subgraph_map[s].size();
                node_id_t new_v_n = muc_fast_subgraph.inout_label_map[v_n];
                bc_map[new_v_n] = bc_map[new_v_n] + pair_dep_map[v_n]*VG_s*2;
            }
        }
    }
    for(subgraph_map_t::iterator
        it =  tmp_subgraph_map.begin();
        it != tmp_subgraph_map.end();
        ++it) {
        vector<int> size_vec;
        it->second.conn_comp_sizes(size_vec);
        if(size_vec.size() > 1) {
            int sub = 0;
            for(int i = 0; i < size_vec.size(); ++i) {
                sub += size_vec[i]*size_vec[i];
            }
            int VG_i = it->second.size();
            
            node_id_t new_node_id = muc_fast_subgraph.inout_label_map[it->first];
            bc_map[new_node_id] = bc_map[new_node_id] + VG_i*VG_i - sub;
        }
    }
    
    for(tr1::unordered_map<node_id_t, double>::iterator
            it =  bc_map.begin();
            it != bc_map.end();
            ++it) {
        it->second = it->second/2;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x668, %rsp            # imm = 0x668
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rsi), %rsi
movq 0x10(%rbx), %rdx
movq %rbx, %rdi
callq 0xd9d8
movq $0x0, 0x18(%rbx)
cmpb $0x1, 0x30c(%r14)
jne 0x29820
movl %ebp, 0xb0(%rsp)
leaq 0x310(%r14), %r15
leaq 0x60(%r14), %rsi
movq %r15, %rdi
callq 0x2f4f0
leaq 0x508(%r14), %rdi
movq 0x510(%r14), %rsi
movq 0x518(%r14), %rdx
movq %rdi, 0x18(%rsp)
callq 0x15c88
xorl %r12d, %r12d
movq %r12, 0x520(%r14)
leaq 0x538(%r14), %rdi
movq 0x540(%r14), %rsi
movq 0x548(%r14), %rdx
movq %rdi, 0x28(%rsp)
callq 0x2472e
movq %r12, 0x550(%r14)
movq 0x8(%r14), %rbp
movq (%rbp), %r13
testq %r13, %r13
jne 0x28ad1
movq 0x8(%rbp), %r13
addq $0x8, %rbp
jmp 0x28ac2
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
cmpq (%rax,%rcx,8), %r13
je 0x28bd5
leaq 0x370(%r14), %rax
movq %rax, 0x20(%rsp)
leaq 0x3b8(%rsp), %r12
movq 0x20(%rsp), %rdi
movq %r13, %rsi
callq 0x5d84
movl (%rax), %eax
leaq 0x8(%r13), %rsi
movl %eax, 0x3b0(%rsp)
movq %r12, %rdi
callq 0x61a0
movl 0x3b0(%rsp), %eax
movl %eax, 0x100(%rsp)
movupd 0x3b8(%rsp), %xmm0
movupd %xmm0, 0x108(%rsp)
movq 0x3c8(%rsp), %rax
movq %rax, 0x118(%rsp)
xorpd %xmm0, %xmm0
movupd %xmm0, (%r12)
movq $0x0, 0x10(%r12)
leaq 0xc0(%rsp), %rdi
movq 0x18(%rsp), %rsi
leaq 0x100(%rsp), %rdx
callq 0x1d628
movq 0x108(%rsp), %rdi
testq %rdi, %rdi
je 0x28b93
movq 0x118(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x3b8(%rsp), %rdi
testq %rdi, %rdi
je 0x28bb0
movq 0x3c8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x20(%r13), %r13
testq %r13, %r13
jne 0x28bc3
movq 0x8(%rbp), %r13
addq $0x8, %rbp
jmp 0x28bb4
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
cmpq (%rax,%rcx,8), %r13
jne 0x28af7
movq 0x38(%r14), %rbp
movq (%rbp), %r12
testq %r12, %r12
jne 0x28bec
movq 0x8(%rbp), %r12
addq $0x8, %rbp
jmp 0x28bdd
movq 0x38(%r14), %rax
movq 0x40(%r14), %rcx
cmpq (%rax,%rcx,8), %r12
je 0x28cab
leaq 0x370(%r14), %rax
movq %rax, 0x18(%rsp)
leaq 0x3b8(%rsp), %r13
movq 0x18(%rsp), %rdi
movq %r12, %rsi
callq 0x5d84
movl (%rax), %eax
leaq 0x8(%r12), %rsi
movl %eax, 0x3b0(%rsp)
movq %r13, %rdi
callq 0x163e6
movl 0x3b0(%rsp), %eax
movl %eax, 0x100(%rsp)
leaq 0x108(%rsp), %rdi
movq %r13, %rsi
callq 0x2d504
leaq 0xc0(%rsp), %rdi
movq 0x28(%rsp), %rsi
leaq 0x100(%rsp), %rdx
callq 0x2e744
leaq 0x108(%rsp), %rdi
callq 0x15750
movq %r13, %rdi
callq 0x15750
movq 0x2b0(%r12), %r12
testq %r12, %r12
jne 0x28c99
movq 0x8(%rbp), %r12
addq $0x8, %rbp
jmp 0x28c8a
movq 0x38(%r14), %rax
movq 0x40(%r14), %rcx
cmpq (%rax,%rcx,8), %r12
jne 0x28c12
movq 0x68(%r14), %rbp
movq (%rbp), %r12
testq %r12, %r12
jne 0x28cc2
movq 0x8(%rbp), %r12
addq $0x8, %rbp
jmp 0x28cb3
movq 0x68(%r14), %rax
movq 0x70(%r14), %rcx
cmpq (%rax,%rcx,8), %r12
je 0x28d24
leaq 0x3b0(%rsp), %r13
movl (%r12), %eax
movl %eax, 0x3b0(%rsp)
movq $0x0, 0x3b8(%rsp)
leaq 0x100(%rsp), %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0xded0
movq 0x20(%r12), %r12
testq %r12, %r12
jne 0x28d16
movq 0x8(%rbp), %r12
addq $0x8, %rbp
jmp 0x28d07
movq 0x68(%r14), %rax
movq 0x70(%r14), %rcx
cmpq (%rax,%rcx,8), %r12
jne 0x28cd8
movq 0x318(%r14), %rax
subq 0x310(%r14), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
movl 0xb0(%rsp), %edx
cmpl %edx, %eax
movl %edx, %ecx
cmovll %eax, %ecx
cmpl $-0x1, %edx
cmovel %eax, %ecx
movl %ecx, 0xb8(%rsp)
testl %ecx, %ecx
jle 0x29668
leaq 0x100(%rsp), %rdi
leaq 0x14(%rsp), %r13
leaq 0xc(%rsp), %r12
xorl %eax, %eax
movl %eax, 0xbc(%rsp)
movl %eax, 0x10(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x140(%rsp)
movapd %xmm0, 0x130(%rsp)
movapd %xmm0, 0x120(%rsp)
movapd %xmm0, 0x110(%rsp)
movapd %xmm0, 0x100(%rsp)
xorl %esi, %esi
callq 0x6b50
xorl %eax, %eax
movq %rax, 0xd0(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0xc0(%rsp)
movq %rax, 0xa0(%rsp)
movapd %xmm0, 0x90(%rsp)
movq %rax, 0x40(%rsp)
movapd %xmm0, 0x30(%rsp)
movq %rax, 0x80(%rsp)
movapd %xmm0, 0x70(%rsp)
movq %rax, 0x60(%rsp)
movapd %xmm0, 0x50(%rsp)
movapd %xmm0, 0x3f0(%rsp)
movapd %xmm0, 0x3e0(%rsp)
movapd %xmm0, 0x3d0(%rsp)
movapd %xmm0, 0x3c0(%rsp)
movapd %xmm0, 0x3b0(%rsp)
leaq 0x3b0(%rsp), %rdi
xorl %esi, %esi
callq 0x6b50
movq %r15, %rdi
callq 0x2ed3a
movslq %eax, %rbp
xorpd %xmm0, %xmm0
movapd %xmm0, 0xe0(%rsp)
movq $0x0, 0xf0(%rsp)
leaq 0xc0(%rsp), %rdi
movq %rbp, %rsi
leaq 0xe0(%rsp), %rdx
callq 0x8c41
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0x28e97
movq 0xf0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
leaq 0x90(%rsp), %rdi
movq %rbp, %rsi
callq 0xd7da
movq 0x90(%rsp), %rdi
movq 0x98(%rsp), %rdx
cmpq %rdx, %rdi
je 0x28ed2
subq %rdi, %rdx
addq $-0x4, %rdx
andq $-0x4, %rdx
addq $0x4, %rdx
xorl %esi, %esi
callq 0x2110
leaq 0x30(%rsp), %rdi
movq %rbp, %rsi
callq 0xd7da
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rdx
cmpq %rdx, %rdi
je 0x28f07
subq %rdi, %rdx
addq $-0x4, %rdx
andq $-0x4, %rdx
addq $0x4, %rdx
movl $0xff, %esi
callq 0x2110
leaq 0x70(%rsp), %rdi
movq %rbp, %rsi
callq 0x5c58
movq 0x70(%rsp), %rdi
movq 0x78(%rsp), %rdx
cmpq %rdx, %rdi
je 0x28f39
subq %rdi, %rdx
addq $-0x8, %rdx
andq $-0x8, %rdx
addq $0x8, %rdx
xorl %esi, %esi
callq 0x2110
leaq 0x50(%rsp), %rdi
movq %rbp, %rsi
callq 0x5c58
movq 0x50(%rsp), %rdi
movq 0x58(%rsp), %rdx
cmpq %rdx, %rdi
je 0x28f6b
subq %rdi, %rdx
addq $-0x8, %rdx
andq $-0x8, %rdx
addq $0x8, %rdx
xorl %esi, %esi
callq 0x2110
movl 0x10(%rsp), %eax
movq 0x90(%rsp), %rcx
movl $0x1, (%rcx,%rax,4)
movl 0x10(%rsp), %eax
movq 0x30(%rsp), %rcx
movl $0x0, (%rcx,%rax,4)
movq 0x3e0(%rsp), %rax
movq 0x3f0(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x28fbe
movl 0x10(%rsp), %ecx
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x3e0(%rsp)
jmp 0x29176
leaq 0x3b0(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x7644
jmp 0x29176
movl (%rax), %ecx
movl %ecx, 0xc(%rsp)
movq 0x3d0(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x28ff2
addq $0x4, %rax
jmp 0x29033
movq 0x3c8(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
callq 0x2250
movq 0x3d8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x3d8(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x3c8(%rsp)
leaq 0x200(%rax), %rcx
movq %rcx, 0x3d0(%rsp)
movq %rax, 0x3c0(%rsp)
movq 0x130(%rsp), %rax
movq 0x140(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x29068
movl 0xc(%rsp), %ecx
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x130(%rsp)
jmp 0x29078
leaq 0x100(%rsp), %rdi
movq %r12, %rsi
callq 0x7644
movl 0xc(%rsp), %eax
movq (%r15), %rcx
leaq (%rax,%rax,2), %rdx
movq (%rcx,%rdx,8), %rax
cmpq %rax, 0x8(%rcx,%rdx,8)
je 0x29176
xorl %ebp, %ebp
movl (%rax,%rbp,4), %eax
movl %eax, 0x14(%rsp)
movq 0x30(%rsp), %rcx
cmpl $0x0, (%rcx,%rax,4)
jns 0x290f4
movq 0x3e0(%rsp), %rcx
movq 0x3f0(%rsp), %rdx
addq $-0x4, %rdx
cmpq %rdx, %rcx
je 0x290cf
movl %eax, (%rcx)
addq $0x4, %rcx
movq %rcx, 0x3e0(%rsp)
jmp 0x290df
leaq 0x3b0(%rsp), %rdi
movq %r13, %rsi
callq 0x7644
movl 0xc(%rsp), %eax
movq 0x30(%rsp), %rcx
movl (%rcx,%rax,4), %eax
incl %eax
movl 0x14(%rsp), %edx
movl %eax, (%rcx,%rdx,4)
movl 0x14(%rsp), %eax
movq 0x30(%rsp), %rdx
movl 0xc(%rsp), %ecx
movl (%rdx,%rcx,4), %esi
incl %esi
cmpl %esi, (%rdx,%rax,4)
jne 0x2914f
movq 0x90(%rsp), %rdx
movl (%rdx,%rcx,4), %ecx
addl %ecx, (%rdx,%rax,4)
movl 0x14(%rsp), %eax
movq 0xc0(%rsp), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x29147
movl 0xc(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x2914f
movq %r12, %rdx
callq 0x6f98
incq %rbp
movl 0xc(%rsp), %eax
movq (%r15), %rcx
leaq (%rax,%rax,2), %rdx
movq (%rcx,%rdx,8), %rax
movq 0x8(%rcx,%rdx,8), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %rbp, %rcx
ja 0x29094
movq 0x3c0(%rsp), %rax
cmpq %rax, 0x3e0(%rsp)
jne 0x28fd5
jmp 0x295aa
movq 0x138(%rsp), %rdi
cmpq %rdi, %rax
je 0x291ab
movl -0x4(%rax), %ecx
addq $-0x4, %rax
movl %ecx, 0xc(%rsp)
jmp 0x29202
movq 0x148(%rsp), %rax
movq -0x8(%rax), %rax
movl 0x1fc(%rax), %eax
movl %eax, 0xc(%rsp)
movl $0x200, %esi            # imm = 0x200
callq 0x2250
movq 0x148(%rsp), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x148(%rsp)
movq -0x8(%rax), %rax
movq %rax, 0x138(%rsp)
leaq 0x200(%rax), %rcx
movq %rcx, 0x140(%rsp)
movl $0x1fc, %ecx            # imm = 0x1FC
addq %rcx, %rax
movq %rax, 0x130(%rsp)
movl 0x10(%rsp), %ecx
movq 0x510(%r14), %rdi
movq 0x518(%r14), %r8
movq %rcx, %rax
xorl %edx, %edx
divq %r8
movq (%rdi,%rdx,8), %rax
movl $0x0, %edx
testq %rax, %rax
je 0x29246
cmpl (%rax), %ecx
je 0x29243
movq 0x20(%rax), %rax
testq %rax, %rax
jne 0x29232
xorl %edx, %edx
jmp 0x29246
movq %rax, %rdx
testq %rdx, %rdx
jne 0x2924f
movq (%rdi,%r8,8), %rdx
movq (%rdi,%r8,8), %r9
cmpq %r9, %rdx
je 0x29335
movl 0xc(%rsp), %esi
movq %rsi, %rax
xorl %edx, %edx
divq %r8
movq (%rdi,%rdx,8), %rax
movl $0x0, %edx
testq %rax, %rax
je 0x2928a
cmpl (%rax), %esi
je 0x29287
movq 0x20(%rax), %rax
testq %rax, %rax
jne 0x29276
xorl %edx, %edx
jmp 0x2928a
movq %rax, %rdx
cmpl %esi, %ecx
je 0x29335
testq %rdx, %rdx
je 0x29335
cmpq %r9, %rdx
je 0x29335
movq 0x28(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x2b6a8
movq %rax, %rdi
callq 0x1c62c
movq %rax, %rbp
movq 0x28(%rsp), %rdi
movq %r12, %rsi
callq 0x2b6a8
movq %rax, %rdi
callq 0x1c62c
imull %ebp, %eax
movl 0xc(%rsp), %ecx
movq 0x50(%rsp), %rdx
cvtsi2sd %eax, %xmm1
movsd (%rdx,%rcx,8), %xmm0
movsd %xmm1, 0x18(%rsp)
addsd %xmm1, %xmm0
movsd %xmm0, (%rdx,%rcx,8)
movq 0x358(%r14), %rax
movl (%rax,%rcx,4), %eax
movl %eax, 0x14(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0xd85a
movsd (%rax), %xmm0
movsd %xmm0, 0x20(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0xd85a
movsd 0x20(%rsp), %xmm0
addsd 0x18(%rsp), %xmm0
movsd %xmm0, (%rax)
movl 0xc(%rsp), %esi
movq 0xc0(%rsp), %rcx
leaq (%rsi,%rsi,2), %rdx
movq (%rcx,%rdx,8), %rax
cmpq %rax, 0x8(%rcx,%rdx,8)
je 0x29488
xorl %ebp, %ebp
movl (%rax,%rbp,4), %edi
movq 0x90(%rsp), %rax
xorps %xmm1, %xmm1
cvtsi2sdl (%rax,%rdi,4), %xmm1
xorps %xmm0, %xmm0
cvtsi2sdl (%rax,%rsi,4), %xmm0
divsd %xmm0, %xmm1
movq 0x70(%rsp), %rax
movsd (%rax,%rsi,8), %xmm0
addsd 0x7ca9(%rip), %xmm0     # 0x31030
mulsd %xmm1, %xmm0
addsd (%rax,%rdi,8), %xmm0
movsd %xmm0, (%rax,%rdi,8)
movl 0x10(%rsp), %ecx
movq 0x510(%r14), %r8
movq 0x518(%r14), %r9
movq %rcx, %rax
xorl %edx, %edx
divq %r9
movq (%r8,%rdx,8), %rax
movl $0x0, %edx
testq %rax, %rax
je 0x293d1
cmpl (%rax), %ecx
je 0x293ce
movq 0x20(%rax), %rax
testq %rax, %rax
jne 0x293bd
xorl %edx, %edx
jmp 0x293d1
movq %rax, %rdx
testq %rdx, %rdx
jne 0x293da
movq (%r8,%r9,8), %rdx
cmpq (%r8,%r9,8), %rdx
je 0x2945c
movq 0x50(%rsp), %rax
movsd (%rax,%rsi,8), %xmm0
movsd %xmm1, 0x18(%rsp)
mulsd %xmm1, %xmm0
addsd (%rax,%rdi,8), %xmm0
movsd %xmm0, (%rax,%rdi,8)
movq 0x358(%r14), %rax
movl (%rax,%rdi,4), %eax
movl %eax, 0x14(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0xd85a
movsd (%rax), %xmm0
movsd %xmm0, 0x20(%rsp)
movl 0xc(%rsp), %eax
movq 0x50(%rsp), %rcx
movsd (%rcx,%rax,8), %xmm0
movsd %xmm0, 0xb0(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0xd85a
movsd 0xb0(%rsp), %xmm0
mulsd 0x18(%rsp), %xmm0
addsd 0x20(%rsp), %xmm0
movsd %xmm0, (%rax)
incq %rbp
movl 0xc(%rsp), %esi
movq 0xc0(%rsp), %rcx
leaq (%rsi,%rsi,2), %rdx
movq (%rcx,%rdx,8), %rax
movq 0x8(%rcx,%rdx,8), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %rbp, %rcx
ja 0x29356
cmpl %esi, 0x10(%rsp)
je 0x294e0
movq 0x358(%r14), %rax
movl (%rax,%rsi,4), %eax
movl %eax, 0x14(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0xd85a
movsd (%rax), %xmm0
movsd %xmm0, 0x18(%rsp)
movl 0xc(%rsp), %eax
movq 0x70(%rsp), %rcx
movsd (%rcx,%rax,8), %xmm0
movsd %xmm0, 0x20(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0xd85a
movsd 0x18(%rsp), %xmm0
addsd 0x20(%rsp), %xmm0
movsd %xmm0, (%rax)
movl 0x10(%rsp), %ecx
movq 0x510(%r14), %rsi
movq 0x518(%r14), %rdi
movq %rcx, %rax
xorl %edx, %edx
divq %rdi
movq (%rsi,%rdx,8), %rax
movl $0x0, %edx
testq %rax, %rax
je 0x2951c
cmpl (%rax), %ecx
je 0x29519
movq 0x20(%rax), %rax
testq %rax, %rax
jne 0x29508
xorl %edx, %edx
jmp 0x2951c
movq %rax, %rdx
testq %rdx, %rdx
jne 0x29525
movq (%rsi,%rdi,8), %rdx
cmpq (%rsi,%rdi,8), %rdx
je 0x295aa
movq 0x28(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x2b6a8
movq %rax, %rdi
callq 0x1c62c
movq %rax, %rbp
movl 0xc(%rsp), %eax
movq 0x358(%r14), %rcx
movl (%rcx,%rax,4), %eax
movl %eax, 0x14(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0xd85a
movsd (%rax), %xmm0
movsd %xmm0, 0x18(%rsp)
movl 0xc(%rsp), %eax
movq 0x70(%rsp), %rcx
movsd (%rcx,%rax,8), %xmm0
movsd %xmm0, 0x20(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0xd85a
xorps %xmm0, %xmm0
cvtsi2sd %ebp, %xmm0
movsd 0x20(%rsp), %xmm1
mulsd %xmm0, %xmm1
addsd %xmm1, %xmm1
addsd 0x18(%rsp), %xmm1
movsd %xmm1, (%rax)
movq 0x130(%rsp), %rax
cmpq 0x110(%rsp), %rax
jne 0x29191
leaq 0x3b0(%rsp), %rdi
callq 0x6998
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x295e4
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x295fe
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x29615
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x29632
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
leaq 0xc0(%rsp), %rdi
callq 0x60b8
leaq 0x100(%rsp), %rbp
movq %rbp, %rdi
callq 0x6998
movq %rbp, %rdi
movl 0xbc(%rsp), %eax
incl %eax
cmpl 0xb8(%rsp), %eax
jne 0x28d73
movq 0x540(%r14), %rbp
movq (%rbp), %r15
testq %r15, %r15
jne 0x29682
movq 0x8(%rbp), %r15
addq $0x8, %rbp
jmp 0x29673
movq 0x540(%r14), %rax
movq 0x548(%r14), %rcx
cmpq (%rax,%rcx,8), %r15
je 0x297c6
leaq 0x100(%rsp), %r12
xorpd %xmm0, %xmm0
movapd %xmm0, 0x100(%rsp)
movq $0x0, 0x110(%rsp)
leaq 0x8(%r15), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x1c7a2
movq 0x100(%rsp), %rax
movq 0x108(%rsp), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq $0x2, %rcx
jb 0x2977b
xorl %edx, %edx
xorl %r12d, %r12d
movl (%rax,%rdx,4), %esi
imull %esi, %esi
addl %esi, %r12d
incq %rdx
cmpq %rdx, %rcx
jne 0x296f0
movq %r13, %rdi
callq 0x1c62c
movq %rax, 0x18(%rsp)
movl (%r15), %eax
movq 0x358(%r14), %rcx
movl (%rcx,%rax,4), %eax
movl %eax, 0x3b0(%rsp)
movq %rbx, %rdi
leaq 0x3b0(%rsp), %r13
movq %r13, %rsi
callq 0xd85a
movsd (%rax), %xmm0
movsd %xmm0, 0x20(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0xd85a
movq 0x18(%rsp), %rcx
imull %ecx, %ecx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
movsd 0x20(%rsp), %xmm1
addsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %r12d, %xmm0
subsd %xmm0, %xmm1
movsd %xmm1, (%rax)
leaq 0x100(%rsp), %r12
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0x29798
movq 0x110(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x2b0(%r15), %r15
testq %r15, %r15
jne 0x297ae
movq 0x8(%rbp), %r15
addq $0x8, %rbp
jmp 0x2979f
movq 0x540(%r14), %rax
movq 0x548(%r14), %rcx
cmpq (%rax,%rcx,8), %r15
jne 0x296a2
movq 0x8(%rbx), %rdx
movq (%rdx), %rcx
movq %rdx, %rax
testq %rcx, %rcx
jne 0x297e5
movq %rdx, %rax
movq 0x8(%rax), %rcx
addq $0x8, %rax
testq %rcx, %rcx
je 0x297d8
movq 0x10(%rbx), %rsi
movq (%rdx,%rsi,8), %rdx
cmpq %rdx, %rcx
je 0x29820
movsd 0x783e(%rip), %xmm0     # 0x31038
movsd 0x8(%rcx), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rcx)
movq 0x10(%rcx), %rcx
testq %rcx, %rcx
jne 0x2981b
movq 0x8(%rax), %rcx
addq $0x8, %rax
jmp 0x2980c
cmpq %rdx, %rcx
jne 0x297fa
addq $0x668, %rsp            # imm = 0x668
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x29867
movq %rax, %rbx
jmp 0x2990d
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0x29900
movq 0xf0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
jmp 0x29900
jmp 0x29867
movq %rax, %rbx
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0x2998c
movq 0x110(%rsp), %rsi
jmp 0x298e0
movq %rax, %rbx
leaq 0x108(%rsp), %rdi
callq 0x15750
jmp 0x2989a
movq %rax, %rbx
movq %r13, %rdi
callq 0x15750
jmp 0x2998c
movq %rax, %rbx
movq 0x108(%rsp), %rdi
testq %rdi, %rdi
je 0x298c7
movq 0x118(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x3b8(%rsp), %rdi
testq %rdi, %rdi
je 0x2998c
movq 0x3c8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
jmp 0x2998c
jmp 0x298fd
jmp 0x298fd
jmp 0x298fd
jmp 0x298fd
jmp 0x298fd
jmp 0x298fd
jmp 0x298fd
jmp 0x298fd
movq %rax, %rbx
leaq 0x3b0(%rsp), %rdi
callq 0x6998
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x29924
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x2993e
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x29955
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x29972
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
leaq 0xc0(%rsp), %rdi
callq 0x60b8
leaq 0x100(%rsp), %rdi
callq 0x6998
movq %rbx, %rdi
callq 0x23b0