// File: fjamour[P]icentral/src/qube.cc
// Function: muc_t::i_iteration_1(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_1(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>&                 new_path_cnt_map = muc_fast_subgraph.new_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>&              new_pair_dep_map = muc_fast_subgraph.new_pair_dep_vec;
        vector<double>&              sigma_t_map = muc_fast_subgraph.sigma_t_map;
        vector<double>&              new_sigma_t_map = muc_fast_subgraph.new_sigma_t_map; 
        queue<node_id_t>&            Q = muc_fast_subgraph.Q;
        stack<node_id_t>             S;
        
        muc_fast_subgraph.init_maps();           

        path_cnt_map[s] = 1;
        new_path_cnt_map[s] = 1;//NEW
        dist_map[s] = 0;
        
        Q.push(s);
        while(!Q.empty()) {
            node_id_t v_i = Q.front(); Q.pop();
            S.push(v_i);
            if(v_i == dst) {//NEW
                new_path_cnt_map[v_i] += path_cnt_map[src];
            }
            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];
                    new_path_cnt_map[v_n] += new_path_cnt_map[v_i];//NEW
                    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;
                new_sigma_t_map[v_n] = new_sigma_t_map[v_n] + c_t;//NEW
                /*this guy must not change!*/
                //bc_map[v_n] = bc_map[v_n] - c_t;
                //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]);
                double new_sp_sn = ((double)new_path_cnt_map[v_p]/new_path_cnt_map[v_n]);
                new_pair_dep_map[v_p] = new_pair_dep_map[v_p] + new_sp_sn*(1+new_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;
                    new_sigma_t_map[v_p] = new_sigma_t_map[v_p] + new_sigma_t_map[v_n]*new_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;
                    bc_map[new_v_p] = bc_map[new_v_p] + new_sigma_t_map[v_n]*new_sp_sn/2.0;
                }
            }
            //IMP: this is the only change that happens to P, @src should be added as parent for dst
            if(v_n == dst) {
                node_id_t v_p = src;
                double new_sp_sn = ((double)new_path_cnt_map[v_p]/new_path_cnt_map[v_n]);
                new_pair_dep_map[v_p] = new_pair_dep_map[v_p] + new_sp_sn*(1+new_pair_dep_map[v_n]);
                if(tmp_conn_vertex_map.find(s) != tmp_conn_vertex_map.end()) {
                    new_sigma_t_map[v_p] = new_sigma_t_map[v_p] + new_sigma_t_map[v_n]*new_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] + new_sigma_t_map[v_n]*new_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;
                bc_map[new_v_n] = bc_map[new_v_n] + new_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;
                bc_map[new_v_n] = bc_map[new_v_n] + new_pair_dep_map[v_n]*VG_s;
            }
        }
}

// Assembly:
subq $0x498, %rsp            # imm = 0x498
movq 0x4a0(%rsp), %rax
movq %rdi, 0x490(%rsp)
movl %esi, 0x48c(%rsp)
movl %edx, 0x488(%rsp)
movl %ecx, 0x484(%rsp)
movl %r8d, 0x480(%rsp)
movl %r9d, 0x47c(%rsp)
movq 0x490(%rsp), %rax
movq %rax, 0x2c8(%rsp)
movq %rax, %rcx
addq $0x310, %rcx            # imm = 0x310
movq %rcx, 0x2d0(%rsp)
movq %rax, %rcx
addq $0x3a0, %rcx            # imm = 0x3A0
movq %rcx, 0x470(%rsp)
movq %rax, %rcx
addq $0x3b8, %rcx            # imm = 0x3B8
movq %rcx, 0x468(%rsp)
movq %rax, %rcx
addq $0x3d0, %rcx            # imm = 0x3D0
movq %rcx, 0x460(%rsp)
movq %rax, %rcx
addq $0x3e8, %rcx            # imm = 0x3E8
movq %rcx, 0x458(%rsp)
movq %rax, %rcx
addq $0x400, %rcx            # imm = 0x400
movq %rcx, 0x450(%rsp)
movq %rax, %rcx
addq $0x418, %rcx            # imm = 0x418
movq %rcx, 0x448(%rsp)
movq %rax, %rcx
addq $0x448, %rcx            # imm = 0x448
movq %rcx, 0x440(%rsp)
movq %rax, %rcx
addq $0x460, %rcx            # imm = 0x460
movq %rcx, 0x438(%rsp)
addq $0x4b8, %rax            # imm = 0x4B8
movq %rax, 0x430(%rsp)
leaq 0x3e0(%rsp), %rdi
callq 0x21da0
movq 0x2d0(%rsp), %rdi
callq 0x76f80
jmp 0x6ab88
movq 0x468(%rsp), %rdi
movl 0x48c(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movl $0x1, (%rax)
movq 0x460(%rsp), %rdi
movl 0x48c(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movl $0x1, (%rax)
movq 0x458(%rsp), %rdi
movl 0x48c(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movl $0x0, (%rax)
movq 0x430(%rsp), %rdi
leaq 0x48c(%rsp), %rsi
callq 0x105b0
jmp 0x6abf3
jmp 0x6abf5
movq 0x430(%rsp), %rdi
callq 0x105e0
movb %al, 0x2c7(%rsp)
jmp 0x6ac0b
movb 0x2c7(%rsp), %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x6ac1d
jmp 0x6af1e
movq 0x430(%rsp), %rdi
callq 0x10600
movq %rax, 0x2b8(%rsp)
jmp 0x6ac34
movq 0x2b8(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x3d0(%rsp)
movq 0x430(%rsp), %rdi
callq 0x10610
jmp 0x6ac54
leaq 0x3e0(%rsp), %rdi
leaq 0x3d0(%rsp), %rsi
callq 0x21d50
jmp 0x6ac6b
movl 0x3d0(%rsp), %eax
cmpl 0x484(%rsp), %eax
jne 0x6ace3
movq 0x468(%rsp), %rdi
movl 0x488(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movl (%rax), %eax
movl %eax, 0x2b4(%rsp)
movq 0x460(%rsp), %rdi
movl 0x3d0(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movl 0x2b4(%rsp), %ecx
addl (%rax), %ecx
movl %ecx, (%rax)
jmp 0x6ace3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x3d8(%rsp)
movl %eax, 0x3d4(%rsp)
leaq 0x3e0(%rsp), %rdi
callq 0x21e40
jmp 0x6bf52
movl $0x0, 0x3cc(%rsp)
movq 0x2c8(%rsp), %rdi
movslq 0x3cc(%rsp), %rax
movq %rax, 0x2a8(%rsp)
addq $0x310, %rdi            # imm = 0x310
movl 0x3d0(%rsp), %eax
movl %eax, %esi
callq 0x100e0
movq %rax, %rdi
callq 0xfd50
movq %rax, %rcx
movq 0x2a8(%rsp), %rax
cmpq %rcx, %rax
jae 0x6af19
movq 0x2c8(%rsp), %rdi
addq $0x310, %rdi            # imm = 0x310
movl 0x3d0(%rsp), %eax
movl %eax, %esi
callq 0x100e0
movq %rax, %rdi
movslq 0x3cc(%rsp), %rsi
callq 0xfbc0
movl (%rax), %eax
movl %eax, 0x3c8(%rsp)
movq 0x458(%rsp), %rdi
movl 0x3c8(%rsp), %eax
movl %eax, %esi
callq 0xfc50
cmpl $0x0, (%rax)
jge 0x6ade0
movq 0x430(%rsp), %rdi
leaq 0x3c8(%rsp), %rsi
callq 0x105b0
jmp 0x6ad9f
movq 0x458(%rsp), %rdi
movl 0x3d0(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movl (%rax), %eax
addl $0x1, %eax
movl %eax, 0x2a4(%rsp)
movq 0x458(%rsp), %rdi
movl 0x3c8(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movl 0x2a4(%rsp), %ecx
movl %ecx, (%rax)
movq 0x458(%rsp), %rdi
movl 0x3c8(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movl (%rax), %eax
movl %eax, 0x2a0(%rsp)
movq 0x458(%rsp), %rdi
movl 0x3d0(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movq %rax, %rcx
movl 0x2a0(%rsp), %eax
movl (%rcx), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
jne 0x6af01
movq 0x468(%rsp), %rdi
movl 0x3c8(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movl (%rax), %eax
movl %eax, 0x294(%rsp)
movq 0x468(%rsp), %rdi
movl 0x3d0(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movq %rax, %rcx
movl 0x294(%rsp), %eax
movl (%rcx), %ecx
addl %ecx, %eax
movl %eax, 0x298(%rsp)
movq 0x468(%rsp), %rdi
movl 0x3c8(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movl 0x298(%rsp), %ecx
movl %ecx, (%rax)
movq 0x460(%rsp), %rdi
movl 0x3d0(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movl (%rax), %eax
movl %eax, 0x29c(%rsp)
movq 0x460(%rsp), %rdi
movl 0x3c8(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movl 0x29c(%rsp), %edx
movl (%rax), %ecx
addl %edx, %ecx
movl %ecx, (%rax)
movq 0x470(%rsp), %rdi
movl 0x3c8(%rsp), %eax
movl %eax, %esi
callq 0x100e0
movq %rax, %rdi
leaq 0x3d0(%rsp), %rsi
callq 0xfce0
jmp 0x6aeff
jmp 0x6af01
jmp 0x6af03
movl 0x3cc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x3cc(%rsp)
jmp 0x6acee
jmp 0x6abf5
jmp 0x6af20
leaq 0x3e0(%rsp), %rdi
callq 0x21ee0
movb %al, 0x293(%rsp)
jmp 0x6af36
movb 0x293(%rsp), %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x6af48
jmp 0x6bf3d
leaq 0x3e0(%rsp), %rdi
callq 0x21f00
movq %rax, 0x288(%rsp)
jmp 0x6af5f
movq 0x288(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x3c4(%rsp)
leaq 0x3e0(%rsp), %rdi
callq 0x21f10
jmp 0x6af7f
movq 0x2c8(%rsp), %rdi
addq $0x508, %rdi            # imm = 0x508
leaq 0x48c(%rsp), %rsi
callq 0x6e740
movq %rdx, 0x278(%rsp)
movq %rax, 0x280(%rsp)
jmp 0x6afad
movq 0x2c8(%rsp), %rdi
movq 0x278(%rsp), %rax
movq 0x280(%rsp), %rcx
movq %rcx, 0x3b0(%rsp)
movq %rax, 0x3b8(%rsp)
addq $0x508, %rdi            # imm = 0x508
callq 0x6e3c0
movq %rdx, 0x268(%rsp)
movq %rax, 0x270(%rsp)
jmp 0x6aff3
movq 0x268(%rsp), %rax
movq 0x270(%rsp), %rcx
movq %rcx, 0x3a0(%rsp)
movq %rax, 0x3a8(%rsp)
leaq 0x3b0(%rsp), %rdi
leaq 0x3a0(%rsp), %rsi
callq 0x6e3a0
movb %al, 0x267(%rsp)
jmp 0x6b031
movb 0x267(%rsp), %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, 0x266(%rsp)
jne 0x6b04b
jmp 0x6b12c
movq 0x2c8(%rsp), %rdi
addq $0x508, %rdi            # imm = 0x508
leaq 0x3c4(%rsp), %rsi
callq 0x6e740
movq %rdx, 0x250(%rsp)
movq %rax, 0x258(%rsp)
jmp 0x6b079
movq 0x2c8(%rsp), %rdi
movq 0x250(%rsp), %rax
movq 0x258(%rsp), %rcx
movq %rcx, 0x390(%rsp)
movq %rax, 0x398(%rsp)
addq $0x508, %rdi            # imm = 0x508
callq 0x6e3c0
movq %rdx, 0x240(%rsp)
movq %rax, 0x248(%rsp)
jmp 0x6b0bf
movq 0x240(%rsp), %rax
movq 0x248(%rsp), %rcx
movq %rcx, 0x380(%rsp)
movq %rax, 0x388(%rsp)
leaq 0x390(%rsp), %rdi
leaq 0x380(%rsp), %rsi
callq 0x6e3a0
movb %al, 0x23f(%rsp)
jmp 0x6b0fd
movb 0x23f(%rsp), %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, 0x266(%rsp)
jne 0x6b114
jmp 0x6b12c
movl 0x48c(%rsp), %eax
cmpl 0x3c4(%rsp), %eax
setne %al
movb %al, 0x266(%rsp)
movb 0x266(%rsp), %al
testb $0x1, %al
jne 0x6b13c
jmp 0x6b290
movq 0x2c8(%rsp), %rdi
addq $0x538, %rdi            # imm = 0x538
leaq 0x48c(%rsp), %rsi
callq 0x6e500
movq %rax, 0x230(%rsp)
jmp 0x6b162
movq 0x230(%rsp), %rdi
callq 0x52790
movq %rax, 0x228(%rsp)
jmp 0x6b179
movq 0x2c8(%rsp), %rdi
movq 0x228(%rsp), %rax
movl %eax, 0x37c(%rsp)
addq $0x538, %rdi            # imm = 0x538
leaq 0x3c4(%rsp), %rsi
callq 0x6e500
movq %rax, 0x220(%rsp)
jmp 0x6b1ae
movq 0x220(%rsp), %rdi
callq 0x52790
movq %rax, 0x218(%rsp)
jmp 0x6b1c5
movq 0x218(%rsp), %rax
movl %eax, 0x378(%rsp)
movl 0x37c(%rsp), %eax
imull 0x378(%rsp), %eax
movl %eax, 0x374(%rsp)
movq 0x440(%rsp), %rdi
movl 0x3c4(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
cvtsi2sdl 0x374(%rsp), %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, 0x208(%rsp)
movq 0x440(%rsp), %rdi
movl 0x3c4(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x208(%rsp), %xmm0
movsd %xmm0, (%rax)
movq 0x438(%rsp), %rdi
movl 0x3c4(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
cvtsi2sdl 0x374(%rsp), %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, 0x210(%rsp)
movq 0x438(%rsp), %rdi
movl 0x3c4(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x210(%rsp), %xmm0
movsd %xmm0, (%rax)
movl $0x0, 0x370(%rsp)
movslq 0x370(%rsp), %rax
movq %rax, 0x200(%rsp)
movq 0x470(%rsp), %rdi
movl 0x3c4(%rsp), %eax
movl %eax, %esi
callq 0x100e0
movq %rax, %rdi
callq 0xfd50
movq %rax, %rcx
movq 0x200(%rsp), %rax
cmpq %rcx, %rax
jae 0x6b866
movq 0x470(%rsp), %rdi
movl 0x3c4(%rsp), %eax
movl %eax, %esi
callq 0x100e0
movq %rax, %rdi
movslq 0x370(%rsp), %rsi
callq 0xfbc0
movl (%rax), %eax
movl %eax, 0x36c(%rsp)
movq 0x468(%rsp), %rdi
movl 0x36c(%rsp), %eax
movl %eax, %esi
callq 0xfc50
cvtsi2sdl (%rax), %xmm0
movsd %xmm0, 0x1a8(%rsp)
movq 0x468(%rsp), %rdi
movl 0x3c4(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movsd 0x1a8(%rsp), %xmm0
cvtsi2sdl (%rax), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x360(%rsp)
movq 0x450(%rsp), %rdi
movl 0x36c(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
movsd %xmm0, 0x1b8(%rsp)
movsd 0x360(%rsp), %xmm0
movsd %xmm0, 0x1b0(%rsp)
movq 0x450(%rsp), %rdi
movl 0x3c4(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x1b0(%rsp), %xmm0
movsd 0x1b8(%rsp), %xmm1
movsd (%rax), %xmm2
movsd 0xfc48(%rip), %xmm3     # 0x7b010
movsd %xmm3, 0x1d0(%rsp)
addsd %xmm3, %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x1c0(%rsp)
movq 0x450(%rsp), %rdi
movl 0x36c(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x1c0(%rsp), %xmm0
movsd %xmm0, (%rax)
movq 0x460(%rsp), %rdi
movl 0x36c(%rsp), %eax
movl %eax, %esi
callq 0xfc50
cvtsi2sdl (%rax), %xmm0
movsd %xmm0, 0x1c8(%rsp)
movq 0x460(%rsp), %rdi
movl 0x3c4(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movsd 0x1c8(%rsp), %xmm0
cvtsi2sdl (%rax), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x358(%rsp)
movq 0x448(%rsp), %rdi
movl 0x36c(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
movsd %xmm0, 0x1e0(%rsp)
movsd 0x358(%rsp), %xmm0
movsd %xmm0, 0x1d8(%rsp)
movq 0x448(%rsp), %rdi
movl 0x3c4(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x1d0(%rsp), %xmm3
movsd 0x1d8(%rsp), %xmm0
movsd 0x1e0(%rsp), %xmm1
movsd (%rax), %xmm2
addsd %xmm3, %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x1e8(%rsp)
movq 0x448(%rsp), %rdi
movl 0x36c(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x1e8(%rsp), %xmm0
movq 0x2c8(%rsp), %rdi
movsd %xmm0, (%rax)
addq $0x508, %rdi            # imm = 0x508
leaq 0x48c(%rsp), %rsi
callq 0x6e740
movq %rdx, 0x1f0(%rsp)
movq %rax, 0x1f8(%rsp)
jmp 0x6b52c
movq 0x2c8(%rsp), %rdi
movq 0x1f0(%rsp), %rax
movq 0x1f8(%rsp), %rcx
movq %rcx, 0x348(%rsp)
movq %rax, 0x350(%rsp)
addq $0x508, %rdi            # imm = 0x508
callq 0x6e3c0
movq %rdx, 0x198(%rsp)
movq %rax, 0x1a0(%rsp)
jmp 0x6b572
movq 0x198(%rsp), %rax
movq 0x1a0(%rsp), %rcx
movq %rcx, 0x338(%rsp)
movq %rax, 0x340(%rsp)
leaq 0x348(%rsp), %rdi
leaq 0x338(%rsp), %rsi
callq 0x6e3a0
movb %al, 0x197(%rsp)
jmp 0x6b5b0
movb 0x197(%rsp), %al
testb $0x1, %al
jne 0x6b5c0
jmp 0x6b84e
movq 0x440(%rsp), %rdi
movl 0x36c(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
movsd %xmm0, 0x168(%rsp)
movq 0x440(%rsp), %rdi
movl 0x3c4(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x168(%rsp), %xmm1
movsd (%rax), %xmm0
movsd 0x360(%rsp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x170(%rsp)
movq 0x440(%rsp), %rdi
movl 0x36c(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x170(%rsp), %xmm0
movsd %xmm0, (%rax)
movq 0x438(%rsp), %rdi
movl 0x36c(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
movsd %xmm0, 0x178(%rsp)
movq 0x438(%rsp), %rdi
movl 0x3c4(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x178(%rsp), %xmm1
movsd (%rax), %xmm0
movsd 0x358(%rsp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x180(%rsp)
movq 0x438(%rsp), %rdi
movl 0x36c(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x180(%rsp), %xmm0
movq 0x2c8(%rsp), %rdi
movsd %xmm0, (%rax)
addq $0x358, %rdi            # imm = 0x358
movl 0x36c(%rsp), %eax
movl %eax, %esi
callq 0xfbc0
movl (%rax), %eax
movl %eax, 0x334(%rsp)
movq 0x4a0(%rsp), %rdi
leaq 0x334(%rsp), %rsi
callq 0x2d310
movq %rax, 0x188(%rsp)
jmp 0x6b70b
movq 0x188(%rsp), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x150(%rsp)
movq 0x440(%rsp), %rdi
movl 0x3c4(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x150(%rsp), %xmm0
movsd (%rax), %xmm1
movsd 0x360(%rsp), %xmm2
mulsd %xmm2, %xmm1
movsd 0xfb10(%rip), %xmm2     # 0x7b268
mulsd %xmm2, %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, 0x158(%rsp)
movq 0x4a0(%rsp), %rdi
leaq 0x334(%rsp), %rsi
callq 0x2d310
movq %rax, 0x160(%rsp)
jmp 0x6b788
movq 0x160(%rsp), %rax
movsd 0x158(%rsp), %xmm0
movsd %xmm0, (%rax)
movq 0x4a0(%rsp), %rdi
leaq 0x334(%rsp), %rsi
callq 0x2d310
movq %rax, 0x148(%rsp)
jmp 0x6b7bc
movq 0x148(%rsp), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x130(%rsp)
movq 0x438(%rsp), %rdi
movl 0x3c4(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x130(%rsp), %xmm0
movsd (%rax), %xmm1
movsd 0x358(%rsp), %xmm2
mulsd %xmm2, %xmm1
movsd 0xfa37(%rip), %xmm2     # 0x7b240
mulsd %xmm2, %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, 0x138(%rsp)
movq 0x4a0(%rsp), %rdi
leaq 0x334(%rsp), %rsi
callq 0x2d310
movq %rax, 0x140(%rsp)
jmp 0x6b839
movq 0x140(%rsp), %rax
movsd 0x138(%rsp), %xmm0
movsd %xmm0, (%rax)
jmp 0x6b850
movl 0x370(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x370(%rsp)
jmp 0x6b29b
movl 0x3c4(%rsp), %eax
cmpl 0x484(%rsp), %eax
jne 0x6bb9a
movl 0x488(%rsp), %eax
movl %eax, 0x330(%rsp)
movq 0x460(%rsp), %rdi
movl 0x330(%rsp), %eax
movl %eax, %esi
callq 0xfc50
cvtsi2sdl (%rax), %xmm0
movsd %xmm0, 0x100(%rsp)
movq 0x460(%rsp), %rdi
movl 0x3c4(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movsd 0x100(%rsp), %xmm0
cvtsi2sdl (%rax), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x328(%rsp)
movq 0x448(%rsp), %rdi
movl 0x330(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
movsd %xmm0, 0x110(%rsp)
movsd 0x328(%rsp), %xmm0
movsd %xmm0, 0x108(%rsp)
movq 0x448(%rsp), %rdi
movl 0x3c4(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x108(%rsp), %xmm0
movsd 0x110(%rsp), %xmm1
movsd (%rax), %xmm2
movsd 0xf6cc(%rip), %xmm3     # 0x7b010
addsd %xmm3, %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x118(%rsp)
movq 0x448(%rsp), %rdi
movl 0x330(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x118(%rsp), %xmm0
movq 0x2c8(%rsp), %rdi
movsd %xmm0, (%rax)
addq $0x508, %rdi            # imm = 0x508
leaq 0x48c(%rsp), %rsi
callq 0x6e740
movq %rdx, 0x120(%rsp)
movq %rax, 0x128(%rsp)
jmp 0x6b9aa
movq 0x2c8(%rsp), %rdi
movq 0x120(%rsp), %rax
movq 0x128(%rsp), %rcx
movq %rcx, 0x318(%rsp)
movq %rax, 0x320(%rsp)
addq $0x508, %rdi            # imm = 0x508
callq 0x6e3c0
movq %rdx, 0xf0(%rsp)
movq %rax, 0xf8(%rsp)
jmp 0x6b9f0
movq 0xf0(%rsp), %rax
movq 0xf8(%rsp), %rcx
movq %rcx, 0x308(%rsp)
movq %rax, 0x310(%rsp)
leaq 0x318(%rsp), %rdi
leaq 0x308(%rsp), %rsi
callq 0x6e3a0
movb %al, 0xef(%rsp)
jmp 0x6ba2e
movb 0xef(%rsp), %al
testb $0x1, %al
jne 0x6ba3e
jmp 0x6bb98
movq 0x438(%rsp), %rdi
movl 0x330(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
movsd %xmm0, 0xd0(%rsp)
movq 0x438(%rsp), %rdi
movl 0x3c4(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0xd0(%rsp), %xmm1
movsd (%rax), %xmm0
movsd 0x328(%rsp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0xd8(%rsp)
movq 0x438(%rsp), %rdi
movl 0x330(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0xd8(%rsp), %xmm0
movq 0x2c8(%rsp), %rdi
movsd %xmm0, (%rax)
addq $0x358, %rdi            # imm = 0x358
movl 0x330(%rsp), %eax
movl %eax, %esi
callq 0xfbc0
movl (%rax), %eax
movl %eax, 0x304(%rsp)
movq 0x4a0(%rsp), %rdi
leaq 0x304(%rsp), %rsi
callq 0x2d310
movq %rax, 0xe0(%rsp)
jmp 0x6bb06
movq 0xe0(%rsp), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0xb8(%rsp)
movq 0x438(%rsp), %rdi
movl 0x3c4(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0xb8(%rsp), %xmm0
movsd (%rax), %xmm1
movsd 0x328(%rsp), %xmm2
mulsd %xmm2, %xmm1
movsd 0xf6ed(%rip), %xmm2     # 0x7b240
mulsd %xmm2, %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, 0xc0(%rsp)
movq 0x4a0(%rsp), %rdi
leaq 0x304(%rsp), %rsi
callq 0x2d310
movq %rax, 0xc8(%rsp)
jmp 0x6bb83
movq 0xc8(%rsp), %rax
movsd 0xc0(%rsp), %xmm0
movsd %xmm0, (%rax)
jmp 0x6bb9a
movl 0x48c(%rsp), %eax
cmpl 0x3c4(%rsp), %eax
je 0x6bd16
movq 0x2c8(%rsp), %rdi
addq $0x358, %rdi            # imm = 0x358
movl 0x3c4(%rsp), %eax
movl %eax, %esi
callq 0xfbc0
movl (%rax), %eax
movl %eax, 0x300(%rsp)
movq 0x4a0(%rsp), %rdi
leaq 0x300(%rsp), %rsi
callq 0x2d310
movq %rax, 0xb0(%rsp)
jmp 0x6bbf3
movq 0xb0(%rsp), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x98(%rsp)
movq 0x450(%rsp), %rdi
movl 0x3c4(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x98(%rsp), %xmm0
movsd (%rax), %xmm1
movsd 0xf635(%rip), %xmm2     # 0x7b268
mulsd %xmm2, %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, 0xa0(%rsp)
movq 0x4a0(%rsp), %rdi
leaq 0x300(%rsp), %rsi
callq 0x2d310
movq %rax, 0xa8(%rsp)
jmp 0x6bc63
movq 0xa8(%rsp), %rax
movsd 0xa0(%rsp), %xmm0
movsd %xmm0, (%rax)
movq 0x4a0(%rsp), %rdi
leaq 0x300(%rsp), %rsi
callq 0x2d310
movq %rax, 0x90(%rsp)
jmp 0x6bc97
movq 0x90(%rsp), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x78(%rsp)
movq 0x448(%rsp), %rdi
movl 0x3c4(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x78(%rsp), %xmm0
movsd (%rax), %xmm1
movsd 0xf56f(%rip), %xmm2     # 0x7b240
mulsd %xmm2, %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, 0x80(%rsp)
movq 0x4a0(%rsp), %rdi
leaq 0x300(%rsp), %rsi
callq 0x2d310
movq %rax, 0x88(%rsp)
jmp 0x6bd01
movq 0x88(%rsp), %rax
movsd 0x80(%rsp), %xmm0
movsd %xmm0, (%rax)
movq 0x2c8(%rsp), %rdi
addq $0x508, %rdi            # imm = 0x508
leaq 0x48c(%rsp), %rsi
callq 0x6e740
movq %rdx, 0x68(%rsp)
movq %rax, 0x70(%rsp)
jmp 0x6bd3e
movq 0x2c8(%rsp), %rdi
movq 0x68(%rsp), %rax
movq 0x70(%rsp), %rcx
movq %rcx, 0x2f0(%rsp)
movq %rax, 0x2f8(%rsp)
addq $0x508, %rdi            # imm = 0x508
callq 0x6e3c0
movq %rdx, 0x58(%rsp)
movq %rax, 0x60(%rsp)
jmp 0x6bd78
movq 0x58(%rsp), %rax
movq 0x60(%rsp), %rcx
movq %rcx, 0x2e0(%rsp)
movq %rax, 0x2e8(%rsp)
leaq 0x2f0(%rsp), %rdi
leaq 0x2e0(%rsp), %rsi
callq 0x6e3a0
movb %al, 0x57(%rsp)
jmp 0x6bdad
movb 0x57(%rsp), %al
testb $0x1, %al
jne 0x6bdba
jmp 0x6bf38
movq 0x2c8(%rsp), %rdi
addq $0x538, %rdi            # imm = 0x538
leaq 0x48c(%rsp), %rsi
callq 0x6e500
movq %rax, 0x48(%rsp)
jmp 0x6bddd
movq 0x48(%rsp), %rdi
callq 0x52790
movq %rax, 0x40(%rsp)
jmp 0x6bdee
movq 0x2c8(%rsp), %rdi
movq 0x40(%rsp), %rax
movl %eax, 0x2dc(%rsp)
addq $0x358, %rdi            # imm = 0x358
movl 0x3c4(%rsp), %eax
movl %eax, %esi
callq 0xfbc0
movl (%rax), %eax
movl %eax, 0x2d8(%rsp)
movq 0x4a0(%rsp), %rdi
leaq 0x2d8(%rsp), %rsi
callq 0x2d310
movq %rax, 0x38(%rsp)
jmp 0x6be3c
movq 0x38(%rsp), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x20(%rsp)
movq 0x450(%rsp), %rdi
movl 0x3c4(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x20(%rsp), %xmm0
movsd (%rax), %xmm1
cvtsi2sdl 0x2dc(%rsp), %xmm2
mulsd %xmm2, %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, 0x28(%rsp)
movq 0x4a0(%rsp), %rdi
leaq 0x2d8(%rsp), %rsi
callq 0x2d310
movq %rax, 0x30(%rsp)
jmp 0x6be9e
movq 0x30(%rsp), %rax
movsd 0x28(%rsp), %xmm0
movsd %xmm0, (%rax)
movq 0x4a0(%rsp), %rdi
leaq 0x2d8(%rsp), %rsi
callq 0x2d310
movq %rax, 0x18(%rsp)
jmp 0x6bec9
movq 0x18(%rsp), %rax
movsd (%rax), %xmm0
movsd %xmm0, (%rsp)
movq 0x448(%rsp), %rdi
movl 0x3c4(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rsp), %xmm1
movsd (%rax), %xmm0
cvtsi2sdl 0x2dc(%rsp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x4a0(%rsp), %rdi
leaq 0x2d8(%rsp), %rsi
callq 0x2d310
movq %rax, 0x10(%rsp)
jmp 0x6bf29
movq 0x10(%rsp), %rax
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rax)
jmp 0x6af20
leaq 0x3e0(%rsp), %rdi
callq 0x21e40
addq $0x498, %rsp            # imm = 0x498
retq
movq 0x3d8(%rsp), %rdi
callq 0x9cf0
nop