// File: /workspace/github_cpp_makefile_star2_O1/fjamour[P]icentral/src/qube.cc
// Function: muc_t::i_iteration_2(unsigned int, unsigned int, unsigned int, int, int, 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>>>&)
void muc_t::i_iteration_2(node_id_t s,
                        node_id_t src,
                        node_id_t dst,
                        int d_src,
                        int d_dst,
                        tr1_map_t(double)& bc_map)
{
        vector<vector<node_id_t> >&  P = muc_fast_subgraph.P; 
        vector<int>&                 path_cnt_map = muc_fast_subgraph.path_cnt_vec;
        vector<int>&                 path_cnt_inc_map = muc_fast_subgraph.path_cnt_inc_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;
        vector<bool>&                visited_vec = muc_fast_subgraph.visited_vec;
        queue<node_id_t>&            Q = muc_fast_subgraph.Q;
        vector<node_id_t>            S;
        
        muc_fast_subgraph.init_maps();           

        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_back(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);
                }
            }
        }
        
        /*
         * steps:
         * 1. do the reverse BFS and subtract the olds
         * 2. compute the new counts
         * 3. fix the order of S
         * 4. add the new increments
         */
        //RBFS to subtract old pair dependency
        for(int i = S.size()-1; i >= 0; --i) {
            node_id_t v_n = S[i];
            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;
                /*this guy must not change!*/
                //bc_map[v_n] = bc_map[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/2.0;
                }
            }
            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]/2.0;
            }
            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;
            }
        }
                
        //Compute new path counts and paths
        Q.push(dst);
        dist_map[dst] = dist_map[src] + 1;
        P[dst].clear();
        P[dst].push_back(src);
        path_cnt_inc_map[dst] = path_cnt_map[src];
        path_cnt_map[dst] = path_cnt_inc_map[dst];
        visited_vec[dst] = true;
        
        while (!Q.empty()) {
            node_id_t v = Q.front();
            Q.pop();
            vector<node_id_t> nbr_vec = muc_fast_subgraph.get_nbrs(v);
            for (int nbr_idx = 0; nbr_idx < nbr_vec.size(); ++nbr_idx) {
                node_id_t w = nbr_vec[nbr_idx];
                if (dist_map[w] > (dist_map[v] + 1)) {
                    dist_map[w] = dist_map[v] + 1;
                    P[w].clear();
                    P[w].push_back(v);
                    path_cnt_map[w] = 0;
                    path_cnt_inc_map[w] = path_cnt_inc_map[v];
                    path_cnt_map[w] += path_cnt_inc_map[w];
                    if(!visited_vec[w]) {
                        visited_vec[w] = true;
                        Q.push(w);
                    }
                } else if (dist_map[w] == (dist_map[v] + 1)) {
                    path_cnt_inc_map[w] += path_cnt_inc_map[v];
                    path_cnt_map[w] += path_cnt_inc_map[v];
                    if(find(P[w].begin(), P[w].end(), v) == P[w].end()) {
                        P[w].push_back(v);
                    }
                    if(!visited_vec[w]) {
                        visited_vec[w] = true;
                        Q.push(w);
                    }
                }
            }
        }
        
    
        //fix order of S
        //IMP::THIS CAN BE MADE MUCH BETTER!
        //HEAP FOR EXAMPLE
        //EVEN THE SWAPPING CAN BE DONE MORE EFFICIENTLY
        //for now it's not a bottleneck
        for(int i = 1; i < S.size(); ++i) {
            if(dist_map[S[i-1]] > dist_map[S[i]]) {
                int j = i;
                while(dist_map[S[j-1]] > dist_map[S[j]]) {
                    node_id_t tmp = S[j-1];
                    S[j-1] = S[j];
                    S[j] = tmp;
                    --j;
                }
            }
        }
        
        muc_fast_subgraph.i_fill_map<double>(pair_dep_map, 0);
        muc_fast_subgraph.i_fill_map<double>(sigma_t_map, 0);
        //RBFS to add the new pair dependencies
        for(int i = S.size()-1; i >= 0; --i) {
            node_id_t v_n = S[i];
            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;
                /*this guy must not change!*/
                //bc_map[v_n] = bc_map[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/2.0;
                }
            }
            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]/2.0;
            }
            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;
            }
        }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
movl %esi, 0xc(%rsp)
movl %edx, 0x4c(%rsp)
movl %ecx, 0x14(%rsp)
leaq 0x310(%rdi), %r13
xorpd %xmm0, %xmm0
movapd %xmm0, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
movq %r13, %rdi
callq 0x2ea72
leaq 0x4b8(%rbx), %rdi
movl 0xc(%rsp), %eax
movq 0x3b8(%rbx), %rcx
movl $0x1, (%rcx,%rax,4)
movl 0xc(%rsp), %eax
movq 0x3e8(%rbx), %rcx
movl $0x0, (%rcx,%rax,4)
movq 0x4e8(%rbx), %rax
movq 0x4f8(%rbx), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
movq %rdi, 0x40(%rsp)
je 0x2a7de
movl 0xc(%rsp), %ecx
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x4e8(%rbx)
jmp 0x2a7e8
leaq 0xc(%rsp), %rsi
callq 0x7644
movq 0x4c8(%rbx), %rax
cmpq %rax, 0x4e8(%rbx)
je 0x2a955
leaq 0x50(%rsp), %r14
leaq 0x28(%rsp), %r15
leaq 0x8(%rsp), %r12
movl (%rax), %eax
movl %eax, 0x28(%rsp)
movq 0x40(%rsp), %rdi
callq 0xdd72
movq 0x58(%rsp), %rsi
cmpq 0x60(%rsp), %rsi
je 0x2a838
movl 0x28(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x58(%rsp)
jmp 0x2a843
movq %r14, %rdi
movq %r15, %rdx
callq 0x6f98
movl 0x28(%rsp), %eax
movq (%r13), %rcx
leaq (%rax,%rax,2), %rdx
movq (%rcx,%rdx,8), %rax
cmpq %rax, 0x8(%rcx,%rdx,8)
je 0x2a941
xorl %ebp, %ebp
movl (%rax,%rbp,4), %eax
movl %eax, 0x8(%rsp)
movq 0x3e8(%rbx), %rcx
cmpl $0x0, (%rcx,%rax,4)
jns 0x2a8be
movq 0x4e8(%rbx), %rcx
movq 0x4f8(%rbx), %rdx
addq $-0x4, %rdx
cmpq %rdx, %rcx
je 0x2a89a
movl %eax, (%rcx)
addq $0x4, %rcx
movq %rcx, 0x4e8(%rbx)
jmp 0x2a8a7
movq 0x40(%rsp), %rdi
movq %r12, %rsi
callq 0x7644
movl 0x28(%rsp), %eax
movq 0x3e8(%rbx), %rcx
movl (%rcx,%rax,4), %eax
incl %eax
movl 0x8(%rsp), %edx
movl %eax, (%rcx,%rdx,4)
movl 0x8(%rsp), %eax
movq 0x3e8(%rbx), %rdx
movl 0x28(%rsp), %ecx
movl (%rdx,%rcx,4), %esi
incl %esi
cmpl %esi, (%rdx,%rax,4)
jne 0x2a919
movq 0x3b8(%rbx), %rdx
movl (%rdx,%rcx,4), %ecx
addl %ecx, (%rdx,%rax,4)
movl 0x8(%rsp), %eax
movq 0x3a0(%rbx), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x2a911
movl 0x28(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x2a919
movq %r15, %rdx
callq 0x6f98
incq %rbp
movl 0x28(%rsp), %eax
movq (%r13), %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 0x2a860
movq 0x4c8(%rbx), %rax
cmpq %rax, 0x4e8(%rbx)
jne 0x2a80b
movq 0xc0(%rsp), %r14
leaq 0x400(%rbx), %rax
movq %rax, 0x68(%rsp)
leaq 0x448(%rbx), %r12
movq 0x58(%rsp), %rax
subq 0x50(%rsp), %rax
shrq $0x2, %rax
decl %eax
js 0x2ad31
leaq 0x538(%rbx), %rcx
movq %rcx, 0x70(%rsp)
movl %eax, %ecx
leaq 0x8(%rsp), %r15
movq 0x50(%rsp), %rax
movq %rcx, 0x80(%rsp)
movl (%rax,%rcx,4), %ecx
movl %ecx, 0x28(%rsp)
movl 0xc(%rsp), %esi
movq 0x510(%rbx), %rdi
movq 0x518(%rbx), %r8
movq %rsi, %rax
xorl %edx, %edx
divq %r8
movq (%rdi,%rdx,8), %rax
movl $0x0, %edx
testq %rax, %rax
je 0x2a9e9
cmpl (%rax), %esi
je 0x2a9e6
movq 0x20(%rax), %rax
testq %rax, %rax
jne 0x2a9d5
xorl %edx, %edx
jmp 0x2a9e9
movq %rax, %rdx
testq %rdx, %rdx
jne 0x2a9f2
movq (%rdi,%r8,8), %rdx
movq (%rdi,%r8,8), %r9
cmpq %r9, %rdx
je 0x2aa84
movq %rcx, %rax
xorl %edx, %edx
divq %r8
movq (%rdi,%rdx,8), %rax
movl $0x0, %edx
testq %rax, %rax
je 0x2aa29
cmpl (%rax), %ecx
je 0x2aa26
movq 0x20(%rax), %rax
testq %rax, %rax
jne 0x2aa15
xorl %edx, %edx
jmp 0x2aa29
movq %rax, %rdx
testq %rdx, %rdx
je 0x2aa84
cmpq %r9, %rdx
je 0x2aa84
cmpl %ecx, %esi
je 0x2aa84
movq 0x70(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x2b6a8
movq %rax, %rdi
callq 0x1c62c
movq %rax, %rbp
movq 0x70(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x2b6a8
movq %rax, %rdi
callq 0x1c62c
imull %ebp, %eax
movl 0x28(%rsp), %ecx
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movq (%r12), %rax
addsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
movl 0x28(%rsp), %esi
movq 0x3a0(%rbx), %rcx
leaq (%rsi,%rsi,2), %rdx
movq (%rcx,%rdx,8), %rax
cmpq %rax, 0x8(%rcx,%rdx,8)
je 0x2abe1
xorl %ebp, %ebp
movl (%rax,%rbp,4), %edi
movq 0x3b8(%rbx), %rax
movq 0x400(%rbx), %rcx
xorps %xmm1, %xmm1
cvtsi2sdl (%rax,%rdi,4), %xmm1
xorps %xmm0, %xmm0
cvtsi2sdl (%rax,%rsi,4), %xmm0
divsd %xmm0, %xmm1
movsd (%rcx,%rsi,8), %xmm0
addsd 0x655a(%rip), %xmm0     # 0x31030
mulsd %xmm1, %xmm0
addsd (%rcx,%rdi,8), %xmm0
movsd %xmm0, (%rcx,%rdi,8)
movl 0xc(%rsp), %ecx
movq 0x510(%rbx), %r8
movq 0x518(%rbx), %r9
movq %rcx, %rax
xorl %edx, %edx
divq %r9
movq (%r8,%rdx,8), %rax
movl $0x0, %edx
testq %rax, %rax
je 0x2ab20
cmpl (%rax), %ecx
je 0x2ab1d
movq 0x20(%rax), %rax
testq %rax, %rax
jne 0x2ab0c
xorl %edx, %edx
jmp 0x2ab20
movq %rax, %rdx
testq %rdx, %rdx
jne 0x2ab29
movq (%r8,%r9,8), %rdx
cmpq (%r8,%r9,8), %rdx
je 0x2abb6
movq 0x448(%rbx), %rax
movsd (%rax,%rsi,8), %xmm0
movsd %xmm1, 0x20(%rsp)
mulsd %xmm1, %xmm0
addsd (%rax,%rdi,8), %xmm0
movsd %xmm0, (%rax,%rdi,8)
movq 0x358(%rbx), %rax
movl (%rax,%rdi,4), %eax
movl %eax, 0x8(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0xd85a
movsd (%rax), %xmm0
movsd %xmm0, 0x18(%rsp)
movl 0x28(%rsp), %eax
movq (%r12), %rcx
movsd (%rcx,%rax,8), %xmm0
movsd %xmm0, 0x78(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0xd85a
movsd 0x20(%rsp), %xmm0
mulsd 0x78(%rsp), %xmm0
mulsd 0x6498(%rip), %xmm0     # 0x31040
movsd 0x18(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%rax)
incq %rbp
movl 0x28(%rsp), %esi
movq 0x3a0(%rbx), %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 0x2aaa4
cmpl %esi, 0xc(%rsp)
je 0x2ac48
movq 0x358(%rbx), %rax
movl (%rax,%rsi,4), %eax
movl %eax, 0x8(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0xd85a
movsd (%rax), %xmm0
movsd %xmm0, 0x20(%rsp)
movl 0x28(%rsp), %eax
movq 0x68(%rsp), %rcx
movq (%rcx), %rcx
movsd (%rcx,%rax,8), %xmm0
movsd %xmm0, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0xd85a
movsd 0x18(%rsp), %xmm1
mulsd 0x6406(%rip), %xmm1     # 0x31040
movsd 0x20(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movl 0xc(%rsp), %ecx
movq 0x510(%rbx), %rsi
movq 0x518(%rbx), %rdi
movq %rcx, %rax
xorl %edx, %edx
divq %rdi
movq (%rsi,%rdx,8), %rax
movl $0x0, %edx
testq %rax, %rax
je 0x2ac84
cmpl (%rax), %ecx
je 0x2ac81
movq 0x20(%rax), %rax
testq %rax, %rax
jne 0x2ac70
xorl %edx, %edx
jmp 0x2ac84
movq %rax, %rdx
testq %rdx, %rdx
jne 0x2ac8d
movq (%rsi,%rdi,8), %rdx
cmpq (%rsi,%rdi,8), %rdx
je 0x2ad19
movq 0x70(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x2b6a8
movq %rax, %rdi
callq 0x1c62c
movq %rax, %rbp
movl 0x28(%rsp), %eax
movq 0x358(%rbx), %rcx
movl (%rcx,%rax,4), %eax
movl %eax, 0x8(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0xd85a
movsd (%rax), %xmm0
movsd %xmm0, 0x20(%rsp)
movl 0x28(%rsp), %eax
movq 0x68(%rsp), %rcx
movq (%rcx), %rcx
movsd (%rcx,%rax,8), %xmm0
movsd %xmm0, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0xd85a
xorps %xmm0, %xmm0
cvtsi2sd %ebp, %xmm0
movsd 0x18(%rsp), %xmm1
mulsd %xmm0, %xmm1
movsd 0x20(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movq 0x80(%rsp), %rcx
leaq -0x1(%rcx), %rax
testq %rcx, %rcx
movq %rax, %rcx
jg 0x2a999
movq 0x4e8(%rbx), %rax
movq 0x4f8(%rbx), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x2ad5b
movl 0x14(%rsp), %ecx
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x4e8(%rbx)
jmp 0x2ad6a
leaq 0x14(%rsp), %rsi
movq 0x40(%rsp), %rdi
callq 0x7644
movl 0x4c(%rsp), %eax
movq 0x3e8(%rbx), %rcx
movl (%rcx,%rax,4), %eax
incl %eax
movl 0x14(%rsp), %edx
movl %eax, (%rcx,%rdx,4)
movl 0x14(%rsp), %eax
movq 0x3a0(%rbx), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rdi
movq (%rdi), %rax
cmpq %rax, 0x8(%rdi)
je 0x2ada1
movq %rax, 0x8(%rdi)
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x2adbb
movl 0x4c(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x2adc5
leaq 0x4c(%rsp), %rdx
callq 0x6f98
movl 0x4c(%rsp), %eax
movq 0x3b8(%rbx), %rcx
movq 0x430(%rbx), %rdx
movl (%rcx,%rax,4), %eax
movl 0x14(%rsp), %esi
movl %eax, (%rdx,%rsi,4)
movl 0x14(%rsp), %eax
movl (%rdx,%rax,4), %edx
movl %edx, (%rcx,%rax,4)
movl 0x14(%rsp), %ecx
movq 0x478(%rbx), %rax
movl %ecx, %edx
movl $0x1, %esi
shlq %cl, %rsi
shrl $0x6, %edx
orq %rsi, (%rax,%rdx,8)
movq 0x4c8(%rbx), %rax
cmpq %rax, 0x4e8(%rbx)
je 0x2b023
leaq 0x8(%rsp), %r15
movl (%rax), %eax
movl %eax, 0x8(%rsp)
movq 0x40(%rsp), %rdi
callq 0xdd72
movl 0x8(%rsp), %esi
movq %r13, %rdi
callq 0x2ea64
leaq 0x28(%rsp), %rdi
movq %rax, %rsi
callq 0x61a0
movq 0x28(%rsp), %rdi
cmpq %rdi, 0x30(%rsp)
je 0x2affd
xorl %ebp, %ebp
movl (%rdi,%rbp,4), %eax
movl %eax, 0x10(%rsp)
movq 0x3e8(%rbx), %rdx
movl 0x8(%rsp), %ecx
movl (%rdx,%rcx,4), %esi
incl %esi
cmpl %esi, (%rdx,%rax,4)
jle 0x2aebb
movl %esi, (%rdx,%rax,4)
movl 0x10(%rsp), %eax
movq 0x3a0(%rbx), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rdi
movq (%rdi), %rax
cmpq %rax, 0x8(%rdi)
je 0x2ae9a
movq %rax, 0x8(%rdi)
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x2af3a
movl 0x8(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x2af42
jne 0x2afd1
movq 0x430(%rbx), %rdx
movl (%rdx,%rcx,4), %ecx
addl %ecx, (%rdx,%rax,4)
movl 0x8(%rsp), %eax
movl (%rdx,%rax,4), %eax
movl 0x10(%rsp), %ecx
movq 0x3b8(%rbx), %rdx
addl %eax, (%rdx,%rcx,4)
movl 0x10(%rsp), %eax
movq 0x3a0(%rbx), %rcx
leaq (%rax,%rax,2), %rax
movq (%rcx,%rax,8), %rdi
movq 0x8(%rcx,%rax,8), %rsi
movq %r15, %rdx
callq 0x7bff
movl 0x10(%rsp), %edx
movq 0x3a0(%rbx), %rcx
leaq (%rdx,%rdx,2), %rdx
movq 0x8(%rcx,%rdx,8), %rsi
cmpq %rsi, %rax
jne 0x2af73
leaq (%rcx,%rdx,8), %rdi
cmpq 0x10(%rdi), %rsi
je 0x2aff0
movl 0x8(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x2af73
movq %r15, %rdx
callq 0x6f98
movl 0x10(%rsp), %eax
movq 0x3b8(%rbx), %rcx
movl $0x0, (%rcx,%rax,4)
movl 0x8(%rsp), %eax
movq 0x430(%rbx), %rdx
movl (%rdx,%rax,4), %eax
movl 0x10(%rsp), %esi
movl %eax, (%rdx,%rsi,4)
movl 0x10(%rsp), %eax
movl (%rdx,%rax,4), %edx
addl %edx, (%rcx,%rax,4)
movl 0x10(%rsp), %ecx
movq 0x478(%rbx), %rax
movl $0x1, %edx
shlq %cl, %rdx
movl %ecx, %esi
shrl $0x6, %esi
movq (%rax,%rsi,8), %rdi
btq %rcx, %rdi
jb 0x2afd1
orq %rdi, %rdx
movq %rdx, (%rax,%rsi,8)
movq 0x4e8(%rbx), %rax
movq 0x4f8(%rbx), %rdx
addq $-0x4, %rdx
cmpq %rdx, %rax
je 0x2afc2
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x4e8(%rbx)
jmp 0x2afd1
movq 0x40(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x7644
incq %rbp
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rax
subq %rdi, %rax
sarq $0x2, %rax
cmpq %rbp, %rax
ja 0x2ae5b
jmp 0x2affd
movq %r15, %rdx
callq 0x6f98
jmp 0x2af73
testq %rdi, %rdi
je 0x2b00f
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x4c8(%rbx), %rax
cmpq %rax, 0x4e8(%rbx)
jne 0x2ae20
movq 0x50(%rsp), %rax
movq 0x58(%rsp), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq $0x2, %rcx
jb 0x2b0a8
movq 0x3e8(%rbx), %rdx
addq $-0x2, %rcx
movl $0x1, %esi
xorl %r8d, %r8d
movq %rax, %rdi
movl -0x4(%rax,%rsi,4), %r9d
movl (%rax,%rsi,4), %r10d
movl (%rdx,%r9,4), %r9d
cmpl (%rdx,%r10,4), %r9d
jle 0x2b095
movl -0x4(%rax,%rsi,4), %r10d
movl (%rax,%rsi,4), %r9d
movl (%rdx,%r10,4), %r11d
cmpl (%rdx,%r9,4), %r11d
jle 0x2b095
movl %r9d, %r11d
movq %rdi, %r15
movl %r9d, (%r15)
movl %r10d, 0x4(%r15)
movl -0x4(%r15), %r10d
addq $-0x4, %r15
movl (%rdx,%r10,4), %ebp
cmpl (%rdx,%r11,4), %ebp
jg 0x2b07c
incq %rsi
leaq 0x1(%r8), %r9
addq $0x4, %rdi
cmpq %rcx, %r8
movq %r9, %r8
jne 0x2b050
xorpd %xmm0, %xmm0
movq %r13, %rdi
movq 0x68(%rsp), %rsi
callq 0x2f8f0
xorpd %xmm0, %xmm0
movq %r13, %rdi
movq %r12, %rsi
callq 0x2f8f0
movq 0x58(%rsp), %rax
subq 0x50(%rsp), %rax
shrq $0x2, %rax
decl %eax
js 0x2b477
leaq 0x538(%rbx), %rcx
movq %rcx, 0x40(%rsp)
movl %eax, %r15d
leaq 0x8(%rsp), %rbp
movq 0x50(%rsp), %rax
movl (%rax,%r15,4), %ecx
movl %ecx, 0x28(%rsp)
movl 0xc(%rsp), %esi
movq 0x510(%rbx), %rdi
movq 0x518(%rbx), %r8
movq %rsi, %rax
xorl %edx, %edx
divq %r8
movq (%rdi,%rdx,8), %rax
movl $0x0, %edx
testq %rax, %rax
je 0x2b13b
cmpl (%rax), %esi
je 0x2b138
movq 0x20(%rax), %rax
testq %rax, %rax
jne 0x2b127
xorl %edx, %edx
jmp 0x2b13b
movq %rax, %rdx
testq %rdx, %rdx
jne 0x2b144
movq (%rdi,%r8,8), %rdx
movq (%rdi,%r8,8), %r9
cmpq %r9, %rdx
je 0x2b1d7
movq %rcx, %rax
xorl %edx, %edx
divq %r8
movq (%rdi,%rdx,8), %rax
movl $0x0, %edx
testq %rax, %rax
je 0x2b17b
cmpl (%rax), %ecx
je 0x2b178
movq 0x20(%rax), %rax
testq %rax, %rax
jne 0x2b167
xorl %edx, %edx
jmp 0x2b17b
movq %rax, %rdx
testq %rdx, %rdx
je 0x2b1d7
cmpq %r9, %rdx
je 0x2b1d7
cmpl %ecx, %esi
je 0x2b1d7
movq 0x40(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x2b6a8
movq %rax, %rdi
callq 0x1c62c
movq %rax, %r13
movq 0x40(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x2b6a8
movq %rax, %rdi
callq 0x1c62c
imull %r13d, %eax
movl 0x28(%rsp), %ecx
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movq (%r12), %rax
addsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
movl 0x28(%rsp), %esi
movq 0x3a0(%rbx), %rcx
leaq (%rsi,%rsi,2), %rdx
movq (%rcx,%rdx,8), %rax
cmpq %rax, 0x8(%rcx,%rdx,8)
je 0x2b336
xorl %r13d, %r13d
movl (%rax,%r13,4), %edi
movq 0x3b8(%rbx), %rax
movq 0x400(%rbx), %rcx
xorps %xmm1, %xmm1
cvtsi2sdl (%rax,%rdi,4), %xmm1
xorps %xmm0, %xmm0
cvtsi2sdl (%rax,%rsi,4), %xmm0
divsd %xmm0, %xmm1
movsd (%rcx,%rsi,8), %xmm0
addsd 0x5e05(%rip), %xmm0     # 0x31030
mulsd %xmm1, %xmm0
addsd (%rcx,%rdi,8), %xmm0
movsd %xmm0, (%rcx,%rdi,8)
movl 0xc(%rsp), %ecx
movq 0x510(%rbx), %r8
movq 0x518(%rbx), %r9
movq %rcx, %rax
xorl %edx, %edx
divq %r9
movq (%r8,%rdx,8), %rax
movl $0x0, %edx
testq %rax, %rax
je 0x2b275
cmpl (%rax), %ecx
je 0x2b272
movq 0x20(%rax), %rax
testq %rax, %rax
jne 0x2b261
xorl %edx, %edx
jmp 0x2b275
movq %rax, %rdx
testq %rdx, %rdx
jne 0x2b27e
movq (%r8,%r9,8), %rdx
cmpq (%r8,%r9,8), %rdx
je 0x2b30b
movq 0x448(%rbx), %rax
movsd (%rax,%rsi,8), %xmm0
movsd %xmm1, 0x20(%rsp)
mulsd %xmm1, %xmm0
addsd (%rax,%rdi,8), %xmm0
movsd %xmm0, (%rax,%rdi,8)
movq 0x358(%rbx), %rax
movl (%rax,%rdi,4), %eax
movl %eax, 0x8(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
callq 0xd85a
movsd (%rax), %xmm0
movsd %xmm0, 0x18(%rsp)
movl 0x28(%rsp), %eax
movq (%r12), %rcx
movsd (%rcx,%rax,8), %xmm0
movsd %xmm0, 0x78(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
callq 0xd85a
movsd 0x20(%rsp), %xmm0
mulsd 0x78(%rsp), %xmm0
mulsd 0x5d3b(%rip), %xmm0     # 0x31038
movsd 0x18(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%rax)
incq %r13
movl 0x28(%rsp), %esi
movq 0x3a0(%rbx), %rcx
leaq (%rsi,%rsi,2), %rdx
movq (%rcx,%rdx,8), %rax
movq 0x8(%rcx,%rdx,8), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %r13, %rcx
ja 0x2b1f8
cmpl %esi, 0xc(%rsp)
je 0x2b39d
movq 0x358(%rbx), %rax
movl (%rax,%rsi,4), %eax
movl %eax, 0x8(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
callq 0xd85a
movsd (%rax), %xmm0
movsd %xmm0, 0x20(%rsp)
movl 0x28(%rsp), %eax
movq 0x68(%rsp), %rcx
movq (%rcx), %rcx
movsd (%rcx,%rax,8), %xmm0
movsd %xmm0, 0x18(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
callq 0xd85a
movsd 0x18(%rsp), %xmm1
mulsd 0x5ca9(%rip), %xmm1     # 0x31038
movsd 0x20(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movl 0xc(%rsp), %ecx
movq 0x510(%rbx), %rsi
movq 0x518(%rbx), %rdi
movq %rcx, %rax
xorl %edx, %edx
divq %rdi
movq (%rsi,%rdx,8), %rax
movl $0x0, %edx
testq %rax, %rax
je 0x2b3d9
cmpl (%rax), %ecx
je 0x2b3d6
movq 0x20(%rax), %rax
testq %rax, %rax
jne 0x2b3c5
xorl %edx, %edx
jmp 0x2b3d9
movq %rax, %rdx
testq %rdx, %rdx
jne 0x2b3e2
movq (%rsi,%rdi,8), %rdx
cmpq (%rsi,%rdi,8), %rdx
je 0x2b467
movq 0x40(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x2b6a8
movq %rax, %rdi
callq 0x1c62c
movq %rax, %r13
movl 0x28(%rsp), %eax
movq 0x358(%rbx), %rcx
movl (%rcx,%rax,4), %eax
movl %eax, 0x8(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
callq 0xd85a
movsd (%rax), %xmm0
movsd %xmm0, 0x20(%rsp)
movl 0x28(%rsp), %eax
movq 0x68(%rsp), %rcx
movq (%rcx), %rcx
movsd (%rcx,%rax,8), %xmm0
movsd %xmm0, 0x18(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
callq 0xd85a
xorps %xmm0, %xmm0
cvtsi2sd %r13d, %xmm0
movsd 0x18(%rsp), %xmm1
mulsd %xmm0, %xmm1
addsd 0x20(%rsp), %xmm1
movsd %xmm1, (%rax)
leaq -0x1(%r15), %rax
testq %r15, %r15
movq %rax, %r15
jg 0x2b0f2
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x2b48e
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2b4d8
jmp 0x2b4d8
jmp 0x2b4d8
jmp 0x2b4d8
jmp 0x2b4d8
jmp 0x2b4d8
jmp 0x2b4d8
jmp 0x2b4d8
jmp 0x2b4d8
jmp 0x2b4d8
jmp 0x2b4d8
jmp 0x2b4b8
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2b4db
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
jmp 0x2b4db
jmp 0x2b4d8
jmp 0x2b4d8
movq %rax, %rbx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x2b4f2
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq %rbx, %rdi
callq 0x23b0