// File: /workspace/github_cpp_makefile_star2_O3/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 0xda0e
movq $0x0, 0x18(%rbx)
cmpb $0x1, 0x30c(%r14)
jne 0x2955e
movl %ebp, 0xb0(%rsp)
leaq 0x310(%r14), %r15
leaq 0x60(%r14), %rsi
movq %r15, %rdi
callq 0x2f16c
leaq 0x508(%r14), %rdi
movq 0x510(%r14), %rsi
movq 0x518(%r14), %rdx
movq %rdi, 0x18(%rsp)
callq 0x15b96
xorl %r12d, %r12d
movq %r12, 0x520(%r14)
leaq 0x538(%r14), %rdi
movq 0x540(%r14), %rsi
movq 0x548(%r14), %rdx
movq %rdi, 0x28(%rsp)
callq 0x24590
movq %r12, 0x550(%r14)
movq 0x8(%r14), %rax
movq (%rax), %r13
movq %rax, %rbp
testq %r13, %r13
jne 0x28837
movq %rax, %rbp
movq 0x8(%rbp), %r13
addq $0x8, %rbp
testq %r13, %r13
je 0x2882a
movq 0x10(%r14), %rcx
cmpq (%rax,%rcx,8), %r13
je 0x28937
leaq 0x370(%r14), %rax
movq %rax, 0x20(%rsp)
leaq 0x3b8(%rsp), %r12
movq 0x20(%rsp), %rdi
movq %r13, %rsi
callq 0x5d14
movl (%rax), %eax
leaq 0x8(%r13), %rsi
movl %eax, 0x3b0(%rsp)
movq %r12, %rdi
callq 0x6112
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 0x1d500
movq 0x108(%rsp), %rdi
testq %rdi, %rdi
je 0x288f5
movq 0x118(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x3b8(%rsp), %rdi
testq %rdi, %rdi
je 0x28912
movq 0x3c8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x20(%r13), %r13
testq %r13, %r13
jne 0x28925
movq 0x8(%rbp), %r13
addq $0x8, %rbp
jmp 0x28916
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
cmpq (%rax,%rcx,8), %r13
jne 0x28859
movq 0x38(%r14), %rax
movq (%rax), %r12
movq %rax, %rbp
testq %r12, %r12
jne 0x28956
movq %rax, %rbp
movq 0x8(%rbp), %r12
addq $0x8, %rbp
testq %r12, %r12
je 0x28949
movq 0x40(%r14), %rcx
cmpq (%rax,%rcx,8), %r12
je 0x28a11
leaq 0x370(%r14), %rax
movq %rax, 0x18(%rsp)
leaq 0x3b8(%rsp), %r13
movq 0x18(%rsp), %rdi
movq %r12, %rsi
callq 0x5d14
movl (%rax), %eax
leaq 0x8(%r12), %rsi
movl %eax, 0x3b0(%rsp)
movq %r13, %rdi
callq 0x16312
movl 0x3b0(%rsp), %eax
movl %eax, 0x100(%rsp)
leaq 0x108(%rsp), %rdi
movq %r13, %rsi
callq 0x2d1b2
leaq 0xc0(%rsp), %rdi
movq 0x28(%rsp), %rsi
leaq 0x100(%rsp), %rdx
callq 0x2e402
leaq 0x108(%rsp), %rdi
callq 0x15650
movq %r13, %rdi
callq 0x15650
movq 0x2b0(%r12), %r12
testq %r12, %r12
jne 0x289ff
movq 0x8(%rbp), %r12
addq $0x8, %rbp
jmp 0x289f0
movq 0x38(%r14), %rax
movq 0x40(%r14), %rcx
cmpq (%rax,%rcx,8), %r12
jne 0x28978
movq 0x68(%r14), %rax
movq (%rax), %r12
movq %rax, %rbp
testq %r12, %r12
jne 0x28a30
movq %rax, %rbp
movq 0x8(%rbp), %r12
addq $0x8, %rbp
testq %r12, %r12
je 0x28a23
movq 0x70(%r14), %rcx
cmpq (%rax,%rcx,8), %r12
je 0x28a8e
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 0xdf0c
movq 0x20(%r12), %r12
testq %r12, %r12
jne 0x28a80
movq 0x8(%rbp), %r12
addq $0x8, %rbp
jmp 0x28a71
movq 0x68(%r14), %rax
movq 0x70(%r14), %rcx
cmpq (%rax,%rcx,8), %r12
jne 0x28a42
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 0x293a8
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 0x6ad0
xorl %eax, %eax
movq %rax, 0xd0(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0xc0(%rsp)
movq %rax, 0xa0(%rsp)
movapd %xmm0, 0x90(%rsp)
movq %rax, 0x80(%rsp)
movapd %xmm0, 0x70(%rsp)
movq %rax, 0x60(%rsp)
movapd %xmm0, 0x50(%rsp)
movq %rax, 0x40(%rsp)
movapd %xmm0, 0x30(%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 0x6ad0
movq %r15, %rdi
callq 0x2e9da
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 0x8c01
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0x28c01
movq 0xf0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
leaq 0x90(%rsp), %rdi
movq %rbp, %rsi
callq 0xd848
movq 0x90(%rsp), %rdi
movq 0x98(%rsp), %rdx
cmpq %rdx, %rdi
je 0x28c3c
subq %rdi, %rdx
addq $-0x4, %rdx
andq $-0x4, %rdx
addq $0x4, %rdx
xorl %esi, %esi
callq 0x2110
leaq 0x70(%rsp), %rdi
movq %rbp, %rsi
callq 0xd848
movq 0x70(%rsp), %rdi
movq 0x78(%rsp), %rdx
cmpq %rdx, %rdi
je 0x28c71
subq %rdi, %rdx
addq $-0x4, %rdx
andq $-0x4, %rdx
addq $0x4, %rdx
movl $0xff, %esi
callq 0x2110
leaq 0x50(%rsp), %rdi
movq %rbp, %rsi
callq 0x5be8
movq 0x50(%rsp), %rdi
movq 0x58(%rsp), %rdx
cmpq %rdx, %rdi
je 0x28ca3
subq %rdi, %rdx
addq $-0x8, %rdx
andq $-0x8, %rdx
addq $0x8, %rdx
xorl %esi, %esi
callq 0x2110
leaq 0x30(%rsp), %rdi
movq %rbp, %rsi
callq 0x5be8
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rdx
cmpq %rdx, %rdi
je 0x28cd5
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 0x70(%rsp), %rcx
movl $0x0, (%rcx,%rax,4)
movq 0x3e0(%rsp), %rcx
movq 0x3f0(%rsp), %rax
addq $-0x4, %rax
cmpq %rax, %rcx
je 0x28d25
movl 0x10(%rsp), %eax
movl %eax, (%rcx)
addq $0x4, %rcx
movq %rcx, 0x3e0(%rsp)
jmp 0x28d3f
leaq 0x3b0(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x75be
movq 0x3e0(%rsp), %rcx
movq 0x3c0(%rsp), %rax
cmpq %rax, %rcx
je 0x292ea
movl (%rax), %ecx
movl %ecx, 0xc(%rsp)
movq 0x3d0(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x28d6d
addq $0x4, %rax
jmp 0x28dae
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), %rcx
movq 0x140(%rsp), %rax
addq $-0x4, %rax
cmpq %rax, %rcx
je 0x28de3
movl 0xc(%rsp), %eax
movl %eax, (%rcx)
addq $0x4, %rcx
movq %rcx, 0x130(%rsp)
jmp 0x28df7
leaq 0x100(%rsp), %rdi
movq %r12, %rsi
callq 0x75be
movl 0xc(%rsp), %eax
movl %eax, %ecx
movq (%r15), %rdx
leaq (%rcx,%rcx,2), %rsi
movq (%rdx,%rsi,8), %rcx
cmpq %rcx, 0x8(%rdx,%rsi,8)
je 0x28ef5
xorl %ebp, %ebp
movl (%rcx,%rbp,4), %ecx
movl %ecx, 0x14(%rsp)
movq 0x70(%rsp), %rdx
movl (%rdx,%rcx,4), %esi
testl %esi, %esi
jns 0x28e7d
movq 0x3e0(%rsp), %rax
movq 0x3f0(%rsp), %rdx
addq $-0x4, %rdx
cmpq %rdx, %rax
je 0x28e4d
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x3e0(%rsp)
jmp 0x28e5d
leaq 0x3b0(%rsp), %rdi
movq %r13, %rsi
callq 0x75be
movl 0xc(%rsp), %eax
movq 0x70(%rsp), %rdx
movl (%rdx,%rax,4), %eax
incl %eax
movl 0x14(%rsp), %ecx
movl %eax, (%rdx,%rcx,4)
movl 0x14(%rsp), %ecx
movl (%rdx,%rcx,4), %esi
movl 0xc(%rsp), %eax
movl %eax, %edi
movl (%rdx,%rdi,4), %edx
incl %edx
cmpl %edx, %esi
jne 0x28ed0
movq 0x90(%rsp), %rax
movl (%rax,%rdi,4), %edx
addl %edx, (%rax,%rcx,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 0x28ec4
movl 0xc(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x28ed0
movq %r12, %rdx
callq 0x6f14
movl 0xc(%rsp), %eax
incq %rbp
movl %eax, %ecx
movq (%r15), %rdx
leaq (%rcx,%rcx,2), %rsi
movq (%rdx,%rsi,8), %rcx
movq 0x8(%rdx,%rsi,8), %rdx
subq %rcx, %rdx
sarq $0x2, %rdx
cmpq %rbp, %rdx
ja 0x28e11
movq 0x3c0(%rsp), %rax
cmpq %rax, 0x3e0(%rsp)
jne 0x28d50
jmp 0x292ea
movq 0x138(%rsp), %rdi
cmpq %rdi, %rax
je 0x28f2a
movl -0x4(%rax), %ecx
addq $-0x4, %rax
movl %ecx, 0xc(%rsp)
jmp 0x28f81
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), %esi
movq 0x510(%r14), %rdi
movq 0x518(%r14), %r8
movq %rsi, %rax
xorl %edx, %edx
divq %r8
movq (%rdi,%rdx,8), %rax
testq %rax, %rax
je 0x2908f
cmpl (%rax), %esi
je 0x28fba
movq 0x20(%rax), %rax
jmp 0x28fa7
movq (%rdi,%r8,8), %r9
movl 0xc(%rsp), %ecx
cmpq %r9, %rax
je 0x29093
movq %rcx, %rax
xorl %edx, %edx
divq %r8
movq (%rdi,%rdx,8), %rax
testq %rax, %rax
je 0x29093
cmpl (%rax), %ecx
je 0x28fea
movq 0x20(%rax), %rax
jmp 0x28fd7
cmpl %ecx, %esi
je 0x29093
cmpq %r9, %rax
je 0x29093
movq 0x28(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x2b312
movq %rax, %rdi
callq 0x1c4e0
movq %rax, %rbp
movq 0x28(%rsp), %rdi
movq %r12, %rsi
callq 0x2b312
movq %rax, %rdi
callq 0x1c4e0
imull %ebp, %eax
movl 0xc(%rsp), %ecx
movq 0x30(%rsp), %rdx
xorps %xmm1, %xmm1
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 0xd8ce
movsd (%rax), %xmm0
movsd %xmm0, 0x20(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0xd8ce
movsd 0x20(%rsp), %xmm0
addsd 0x18(%rsp), %xmm0
movsd %xmm0, (%rax)
movl 0xc(%rsp), %ecx
movl %ecx, %edi
movq 0xc0(%rsp), %r8
leaq (%rdi,%rdi,2), %rdx
movq (%r8,%rdx,8), %rax
cmpq %rax, 0x8(%r8,%rdx,8)
je 0x291dd
xorl %ebp, %ebp
movl (%rax,%rbp,4), %r9d
movq 0x90(%rsp), %rax
xorps %xmm1, %xmm1
cvtsi2sdl (%rax,%r9,4), %xmm1
xorps %xmm0, %xmm0
cvtsi2sdl (%rax,%rdi,4), %xmm0
divsd %xmm0, %xmm1
movq 0x50(%rsp), %rax
movsd (%rax,%rdi,8), %xmm0
addsd 0x6f4b(%rip), %xmm0     # 0x30030
mulsd %xmm1, %xmm0
addsd (%rax,%r9,8), %xmm0
movsd %xmm0, (%rax,%r9,8)
movl 0x10(%rsp), %esi
movq 0x510(%r14), %r10
movq 0x518(%r14), %r11
movq %rsi, %rax
xorl %edx, %edx
divq %r11
movq (%r10,%rdx,8), %rax
testq %rax, %rax
je 0x291bb
cmpl (%rax), %esi
je 0x29126
movq 0x20(%rax), %rax
jmp 0x29113
cmpq (%r10,%r11,8), %rax
je 0x291bb
movq 0x30(%rsp), %rax
movsd (%rax,%rdi,8), %xmm0
movsd %xmm1, 0x18(%rsp)
mulsd %xmm1, %xmm0
addsd (%rax,%r9,8), %xmm0
movsd %xmm0, (%rax,%r9,8)
movq 0x358(%r14), %rax
movl (%rax,%r9,4), %eax
movl %eax, 0x14(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0xd8ce
movsd (%rax), %xmm0
movsd %xmm0, 0x20(%rsp)
movl 0xc(%rsp), %eax
movq 0x30(%rsp), %rcx
movsd (%rcx,%rax,8), %xmm0
movsd %xmm0, 0xb0(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0xd8ce
movsd 0xb0(%rsp), %xmm0
mulsd 0x18(%rsp), %xmm0
addsd 0x20(%rsp), %xmm0
movsd %xmm0, (%rax)
movl 0xc(%rsp), %ecx
movq 0xc0(%rsp), %r8
incq %rbp
movl %ecx, %edi
leaq (%rdi,%rdi,2), %rdx
movq (%r8,%rdx,8), %rax
movq 0x8(%r8,%rdx,8), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
cmpq %rbp, %rdx
ja 0x290b2
cmpl %ecx, 0x10(%rsp)
je 0x29239
movq 0x358(%r14), %rax
movl (%rax,%rdi,4), %eax
movl %eax, 0x14(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0xd8ce
movsd (%rax), %xmm0
movsd %xmm0, 0x18(%rsp)
movl 0xc(%rsp), %eax
movq 0x50(%rsp), %rcx
movsd (%rcx,%rax,8), %xmm0
movsd %xmm0, 0x20(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0xd8ce
movsd 0x18(%rsp), %xmm0
addsd 0x20(%rsp), %xmm0
movsd %xmm0, (%rax)
movl 0x10(%rsp), %ecx
movl %ecx, %eax
movq 0x510(%r14), %rsi
movq 0x518(%r14), %rdi
xorl %edx, %edx
divq %rdi
movq (%rsi,%rdx,8), %rax
testq %rax, %rax
je 0x292ea
cmpl (%rax), %ecx
je 0x29265
movq 0x20(%rax), %rax
jmp 0x29252
cmpq (%rsi,%rdi,8), %rax
je 0x292ea
movq 0x28(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x2b312
movq %rax, %rdi
callq 0x1c4e0
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 0xd8ce
movsd (%rax), %xmm0
movsd %xmm0, 0x18(%rsp)
movl 0xc(%rsp), %eax
movq 0x50(%rsp), %rcx
movsd (%rcx,%rax,8), %xmm0
movsd %xmm0, 0x20(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0xd8ce
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 0x28f10
leaq 0x3b0(%rsp), %rdi
callq 0x690a
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x29324
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x2933b
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x29355
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x29372
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
leaq 0xc0(%rsp), %rdi
callq 0x6034
leaq 0x100(%rsp), %rbp
movq %rbp, %rdi
callq 0x690a
movq %rbp, %rdi
movl 0xbc(%rsp), %eax
incl %eax
cmpl 0xb8(%rsp), %eax
jne 0x28add
movq 0x540(%r14), %rax
movq (%rax), %r15
movq %rax, %rbp
testq %r15, %r15
jne 0x293ca
movq %rax, %rbp
movq 0x8(%rbp), %r15
addq $0x8, %rbp
testq %r15, %r15
je 0x293bd
movq 0x548(%r14), %rcx
cmpq (%rax,%rcx,8), %r15
je 0x29504
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 0x1c656
movq 0x100(%rsp), %rdi
movq 0x108(%rsp), %rax
subq %rdi, %rax
sarq $0x2, %rax
cmpq $0x2, %rax
jb 0x294c1
xorl %ecx, %ecx
xorl %r12d, %r12d
movl (%rdi,%rcx,4), %edx
imull %edx, %edx
addl %edx, %r12d
incq %rcx
cmpq %rcx, %rax
jne 0x29431
movq %r13, %rdi
callq 0x1c4e0
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 0xd8ce
movsd (%rax), %xmm0
movsd %xmm0, 0x20(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0xd8ce
movq 0x18(%rsp), %rcx
imull %ecx, %ecx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
cvtsi2sd %r12d, %xmm1
movsd 0x20(%rsp), %xmm2
addsd %xmm0, %xmm2
subsd %xmm1, %xmm2
movsd %xmm2, (%rax)
movq 0x100(%rsp), %rdi
leaq 0x100(%rsp), %r12
testq %rdi, %rdi
je 0x294d6
movq 0x110(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x2b0(%r15), %r15
testq %r15, %r15
jne 0x294ec
movq 0x8(%rbp), %r15
addq $0x8, %rbp
jmp 0x294dd
movq 0x540(%r14), %rax
movq 0x548(%r14), %rcx
cmpq (%rax,%rcx,8), %r15
jne 0x293e3
movq 0x8(%rbx), %rdx
movq (%rdx), %rcx
movq %rdx, %rax
testq %rcx, %rcx
jne 0x29523
movq %rdx, %rax
movq 0x8(%rax), %rcx
addq $0x8, %rax
testq %rcx, %rcx
je 0x29516
movq 0x10(%rbx), %rsi
movq (%rdx,%rsi,8), %rdx
cmpq %rdx, %rcx
je 0x2955e
movsd 0x6b00(%rip), %xmm0     # 0x30038
movsd 0x8(%rcx), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rcx)
movq 0x10(%rcx), %rcx
testq %rcx, %rcx
jne 0x29559
movq 0x8(%rax), %rcx
addq $0x8, %rax
jmp 0x2954a
cmpq %rdx, %rcx
jne 0x29538
addq $0x668, %rsp            # imm = 0x668
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x295a5
movq %rax, %rbx
jmp 0x2964b
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0x2963e
movq 0xf0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
jmp 0x2963e
jmp 0x295a5
movq %rax, %rbx
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0x296ca
movq 0x110(%rsp), %rsi
jmp 0x2961e
movq %rax, %rbx
leaq 0x108(%rsp), %rdi
callq 0x15650
jmp 0x295d8
movq %rax, %rbx
movq %r13, %rdi
callq 0x15650
jmp 0x296ca
movq %rax, %rbx
movq 0x108(%rsp), %rdi
testq %rdi, %rdi
je 0x29605
movq 0x118(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x3b8(%rsp), %rdi
testq %rdi, %rdi
je 0x296ca
movq 0x3c8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
jmp 0x296ca
jmp 0x2963b
jmp 0x2963b
jmp 0x2963b
jmp 0x2963b
jmp 0x2963b
jmp 0x2963b
jmp 0x2963b
jmp 0x2963b
movq %rax, %rbx
leaq 0x3b0(%rsp), %rdi
callq 0x690a
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x29662
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x29679
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x29693
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x296b0
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
leaq 0xc0(%rsp), %rdi
callq 0x6034
leaq 0x100(%rsp), %rdi
callq 0x690a
movq %rbx, %rdi
callq 0x23b0