// File: fjamour[P]icentral/src/_bc.cc
// Function: BBFS_RBFS_d1(std::vector<double, std::allocator<double>>&, iter_info_t&, component_t&, unsigned int, std::pair<unsigned int, unsigned int>)
void BBFS_RBFS_d1(
        vector<double>& dBC_vec,    // delta BC of vertices
        iter_info_t&    iter_info,  // iteration info to be computed
        component_t&    comp,       // component
        node_id_t       s,          // source of the iteration
        edge_t          e
        )
{
    subgraph_t& g = comp.subgraph;
    
    vector<vector<node_id_t> >&  P = iter_info.P; 
    vector<int>&                 sigma_vec = iter_info.sigma_vec;
    vector<int>&                 dist_vec = iter_info.dist_vec;
    vector<node_id_t>&           S = iter_info.S;
    vector<int>&                 new_sigma_vec = iter_info.new_sigma_vec;
    vector<double>&              delta_vec = iter_info.delta_vec;
    vector<double>&              Delta_vec = iter_info.Delta_vec;
    vector<double>&              new_delta_vec = iter_info.new_delta_vec;
    vector<double>&              new_Delta_vec = iter_info.new_Delta_vec;
    
    queue<node_id_t>             Q;
    
    // Assumes iter_info is initialized
    
    new_sigma_vec[s] = 1;//NEW
    sigma_vec[s] = 1;
    dist_vec[s] = 0;
    Q.push(s);
    while(!Q.empty()) {
        node_id_t v_i = Q.front(); Q.pop();
        S.push_back(v_i);
        if(v_i == e.second) {//NEW
            new_sigma_vec[v_i] += sigma_vec[e.first];
        }
        for(int i = 0; i < g.nodes_vec[v_i].size(); ++i) {
            node_id_t v_n = g.nodes_vec[v_i][i];
            if(dist_vec[v_n] < 0) {
                Q.push(v_n);
                dist_vec[v_n] = dist_vec[v_i] + 1;
            }
            if(dist_vec[v_n] == dist_vec[v_i] + 1) {
                sigma_vec[v_n] = sigma_vec[v_n] + sigma_vec[v_i];
                new_sigma_vec[v_n] += new_sigma_vec[v_i];//NEW
                P[v_n].push_back(v_i);
            }
        }
    }


    fill_vec<double>(delta_vec, comp.subgraph.size(), 0);
    fill_vec<double>(Delta_vec, comp.subgraph.size(), 0);
    
    fill_vec<double>(new_delta_vec, comp.subgraph.size(), 0);
    fill_vec<double>(new_Delta_vec, comp.subgraph.size(), 0);
    
    if(comp.comp_type == GRAPH) {
        for(int i = S.size()-1; i >= 0; --i) {
            node_id_t w = S[i];
            for (int idx = 0; idx < P[w].size(); ++idx) {
                node_id_t v = P[w][idx];
                delta_vec[v] += (((double) sigma_vec[v] / sigma_vec[w]) * (1 + delta_vec[w]));
                new_delta_vec[v] += (((double) new_sigma_vec[v] / new_sigma_vec[w]) * (1 + new_delta_vec[w]));
            }
            if(w == e.second) {
                node_id_t v_p = e.first;
                double new_sp_sn = ((double)new_delta_vec[v_p]/new_delta_vec[w]);
                new_delta_vec[v_p] = new_delta_vec[v_p] + new_sp_sn*(1+new_delta_vec[w]);
            }
            if (w != s) {
                dBC_vec[w] -= delta_vec[w]/2.0;
                dBC_vec[w] += new_delta_vec[w]/2.0;
            }
        }
    } else if(comp.comp_type == BCC) { //BCC or MUC case: involved case, with external pairs contribution
        component_t::art_pt_map_t& art_pt_map = comp.art_pt_map;
        for(int i = S.size()-1; i >= 0; --i) {
            node_id_t v_n = S[i];
            if(   art_pt_map.find(s) != art_pt_map.end()
               && art_pt_map.find(v_n) != art_pt_map.end()
               ){
                int VG_s, VG_n;
                VG_s = accumulate(art_pt_map[s].begin(), art_pt_map[s].end(), 0);
                VG_n = accumulate(art_pt_map[v_n].begin(), art_pt_map[v_n].end(), 0);
                int c_t = VG_s*VG_n;
                Delta_vec[v_n] =  Delta_vec[v_n] + c_t;
                new_Delta_vec[v_n] =  new_Delta_vec[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)sigma_vec[v_p]/sigma_vec[v_n]);
                delta_vec[v_p] = delta_vec[v_p] + sp_sn*(1+delta_vec[v_n]);
                if(art_pt_map.find(s) != art_pt_map.end()) {
                    Delta_vec[v_p] = Delta_vec[v_p] + Delta_vec[v_n]*sp_sn;
                }
                sp_sn = ((double)new_sigma_vec[v_p]/new_sigma_vec[v_n]);
                new_delta_vec[v_p] = new_delta_vec[v_p] + sp_sn*(1+new_delta_vec[v_n]);
                if(art_pt_map.find(s) != art_pt_map.end()) {
                    new_Delta_vec[v_p] = new_Delta_vec[v_p] + new_Delta_vec[v_n]*sp_sn;
                }
            }
            //IMP: this is the only change that happens to P, @src should be added as parent for dst
            if(v_n == e.second) {
                node_id_t v_p = e.first;
                double new_sp_sn = ((double)new_delta_vec[v_p]/new_delta_vec[v_n]);
                new_delta_vec[v_p] = new_delta_vec[v_p] + new_sp_sn*(1+new_delta_vec[v_n]);
                if(art_pt_map.find(s) != art_pt_map.end()) {
                    new_Delta_vec[v_p] = new_Delta_vec[v_p] + new_Delta_vec[v_n]*new_sp_sn;
                    dBC_vec[v_p] = dBC_vec[v_p] + new_Delta_vec[v_n]*new_sp_sn/2.0;
                }
            }
            if(s != v_n) {
                dBC_vec[v_n] -= delta_vec[v_n]/2.0;
                dBC_vec[v_n] += new_delta_vec[v_n]/2.0;
            }
            if(art_pt_map.find(s) != art_pt_map.end()) {
                int VG_s = accumulate(art_pt_map[s].begin(), art_pt_map[s].end(), 0);
                dBC_vec[v_n] -= delta_vec[v_n]*VG_s;
                dBC_vec[v_n] -= Delta_vec[v_n]/2.0;
                dBC_vec[v_n] += new_delta_vec[v_n]*VG_s;
                dBC_vec[v_n] += new_Delta_vec[v_n]/2.0;
            }
        }
    }
}

// Assembly:
subq $0x558, %rsp            # imm = 0x558
movq %r8, 0x550(%rsp)
movq %rdi, 0x548(%rsp)
movq %rsi, 0x540(%rsp)
movq %rdx, 0x538(%rsp)
movl %ecx, 0x534(%rsp)
movq 0x538(%rsp), %rax
movq %rax, 0x528(%rsp)
movq 0x540(%rsp), %rax
movq %rax, 0x520(%rsp)
movq 0x540(%rsp), %rax
addq $0x18, %rax
movq %rax, 0x518(%rsp)
movq 0x540(%rsp), %rax
addq $0x30, %rax
movq %rax, 0x510(%rsp)
movq 0x540(%rsp), %rax
addq $0x100, %rax            # imm = 0x100
movq %rax, 0x508(%rsp)
movq 0x540(%rsp), %rax
addq $0x78, %rax
movq %rax, 0x500(%rsp)
movq 0x540(%rsp), %rax
addq $0x48, %rax
movq %rax, 0x4f8(%rsp)
movq 0x540(%rsp), %rax
addq $0x60, %rax
movq %rax, 0x4f0(%rsp)
movq 0x540(%rsp), %rax
addq $0x90, %rax
movq %rax, 0x4e8(%rsp)
movq 0x540(%rsp), %rax
addq $0xa8, %rax
movq %rax, 0x4e0(%rsp)
leaq 0x490(%rsp), %rdi
movq %rdi, 0x318(%rsp)
callq 0x10580
movq 0x500(%rsp), %rdi
movl 0x534(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movl $0x1, (%rax)
movq 0x518(%rsp), %rdi
movl 0x534(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movl $0x1, (%rax)
movq 0x510(%rsp), %rdi
movl 0x534(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movq 0x318(%rsp), %rdi
movl $0x0, (%rax)
leaq 0x534(%rsp), %rsi
callq 0x105b0
jmp 0xd6e4
jmp 0xd6e6
leaq 0x490(%rsp), %rdi
callq 0x105e0
movb %al, 0x317(%rsp)
jmp 0xd6fc
movb 0x317(%rsp), %al
xorb $-0x1, %al
testb $0x1, %al
jne 0xd70e
jmp 0xda01
leaq 0x490(%rsp), %rdi
callq 0x10600
movq %rax, 0x308(%rsp)
jmp 0xd725
movq 0x308(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x480(%rsp)
leaq 0x490(%rsp), %rdi
callq 0x10610
jmp 0xd745
movq 0x508(%rsp), %rdi
leaq 0x480(%rsp), %rsi
callq 0xfce0
jmp 0xd75c
movl 0x480(%rsp), %eax
cmpl 0x554(%rsp), %eax
jne 0xd7d4
movq 0x518(%rsp), %rdi
movl 0x550(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movl (%rax), %eax
movl %eax, 0x304(%rsp)
movq 0x500(%rsp), %rdi
movl 0x480(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movl 0x304(%rsp), %ecx
addl (%rax), %ecx
movl %ecx, (%rax)
jmp 0xd7d4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x488(%rsp)
movl %eax, 0x484(%rsp)
leaq 0x490(%rsp), %rdi
callq 0x10620
jmp 0xee6e
movl $0x0, 0x47c(%rsp)
movslq 0x47c(%rsp), %rax
movq %rax, 0x2f8(%rsp)
movq 0x528(%rsp), %rdi
movl 0x480(%rsp), %eax
movl %eax, %esi
callq 0x100e0
movq %rax, %rdi
callq 0xfd50
movq %rax, %rcx
movq 0x2f8(%rsp), %rax
cmpq %rcx, %rax
jae 0xd9fc
movq 0x528(%rsp), %rdi
movl 0x480(%rsp), %eax
movl %eax, %esi
callq 0x100e0
movq %rax, %rdi
movslq 0x47c(%rsp), %rsi
callq 0xfbc0
movl (%rax), %eax
movl %eax, 0x478(%rsp)
movq 0x510(%rsp), %rdi
movl 0x478(%rsp), %eax
movl %eax, %esi
callq 0xfc50
cmpl $0x0, (%rax)
jge 0xd8c3
leaq 0x490(%rsp), %rdi
leaq 0x478(%rsp), %rsi
callq 0x105b0
jmp 0xd882
movq 0x510(%rsp), %rdi
movl 0x480(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movl (%rax), %eax
addl $0x1, %eax
movl %eax, 0x2f4(%rsp)
movq 0x510(%rsp), %rdi
movl 0x478(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movl 0x2f4(%rsp), %ecx
movl %ecx, (%rax)
movq 0x510(%rsp), %rdi
movl 0x478(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movl (%rax), %eax
movl %eax, 0x2f0(%rsp)
movq 0x510(%rsp), %rdi
movl 0x480(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movq %rax, %rcx
movl 0x2f0(%rsp), %eax
movl (%rcx), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
jne 0xd9e4
movq 0x518(%rsp), %rdi
movl 0x478(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movl (%rax), %eax
movl %eax, 0x2e4(%rsp)
movq 0x518(%rsp), %rdi
movl 0x480(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movq %rax, %rcx
movl 0x2e4(%rsp), %eax
movl (%rcx), %ecx
addl %ecx, %eax
movl %eax, 0x2e8(%rsp)
movq 0x518(%rsp), %rdi
movl 0x478(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movl 0x2e8(%rsp), %ecx
movl %ecx, (%rax)
movq 0x500(%rsp), %rdi
movl 0x480(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movl (%rax), %eax
movl %eax, 0x2ec(%rsp)
movq 0x500(%rsp), %rdi
movl 0x478(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movl 0x2ec(%rsp), %edx
movl (%rax), %ecx
addl %edx, %ecx
movl %ecx, (%rax)
movq 0x520(%rsp), %rdi
movl 0x478(%rsp), %eax
movl %eax, %esi
callq 0x100e0
movq %rax, %rdi
leaq 0x480(%rsp), %rsi
callq 0xfce0
jmp 0xd9e2
jmp 0xd9e4
jmp 0xd9e6
movl 0x47c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x47c(%rsp)
jmp 0xd7df
jmp 0xd6e6
movq 0x4f8(%rsp), %rax
movq %rax, 0x2d0(%rsp)
movq 0x538(%rsp), %rdi
callq 0x77430
movq %rax, 0x2d8(%rsp)
jmp 0xda28
movq 0x2d8(%rsp), %rsi
movq 0x2d0(%rsp), %rdi
xorps %xmm0, %xmm0
callq 0xfbe0
jmp 0xda42
movq 0x4f0(%rsp), %rax
movq %rax, 0x2c0(%rsp)
movq 0x538(%rsp), %rdi
callq 0x77430
movq %rax, 0x2c8(%rsp)
jmp 0xda69
movq 0x2c8(%rsp), %rsi
movq 0x2c0(%rsp), %rdi
xorps %xmm0, %xmm0
callq 0xfbe0
jmp 0xda83
movq 0x4e8(%rsp), %rax
movq %rax, 0x2b0(%rsp)
movq 0x538(%rsp), %rdi
callq 0x77430
movq %rax, 0x2b8(%rsp)
jmp 0xdaaa
movq 0x2b8(%rsp), %rsi
movq 0x2b0(%rsp), %rdi
xorps %xmm0, %xmm0
callq 0xfbe0
jmp 0xdac4
movq 0x4e0(%rsp), %rax
movq %rax, 0x2a0(%rsp)
movq 0x538(%rsp), %rdi
callq 0x77430
movq %rax, 0x2a8(%rsp)
jmp 0xdaeb
movq 0x2a8(%rsp), %rsi
movq 0x2a0(%rsp), %rdi
xorps %xmm0, %xmm0
callq 0xfbe0
jmp 0xdb05
movq 0x538(%rsp), %rax
cmpl $0x2, 0x228(%rax)
jne 0xdf4b
movq 0x508(%rsp), %rdi
callq 0xfd50
subq $0x1, %rax
movl %eax, 0x474(%rsp)
cmpl $0x0, 0x474(%rsp)
jl 0xdf46
movq 0x508(%rsp), %rdi
movslq 0x474(%rsp), %rsi
callq 0xfbc0
movl (%rax), %eax
movl %eax, 0x470(%rsp)
movl $0x0, 0x46c(%rsp)
movslq 0x46c(%rsp), %rax
movq %rax, 0x298(%rsp)
movq 0x520(%rsp), %rdi
movl 0x470(%rsp), %eax
movl %eax, %esi
callq 0x100e0
movq %rax, %rdi
callq 0xfd50
movq %rax, %rcx
movq 0x298(%rsp), %rax
cmpq %rcx, %rax
jae 0xdd5c
movq 0x520(%rsp), %rdi
movl 0x470(%rsp), %eax
movl %eax, %esi
callq 0x100e0
movq %rax, %rdi
movslq 0x46c(%rsp), %rsi
callq 0xfbc0
movl (%rax), %eax
movl %eax, 0x468(%rsp)
movq 0x518(%rsp), %rdi
movl 0x468(%rsp), %eax
movl %eax, %esi
callq 0xfc50
cvtsi2sdl (%rax), %xmm0
movsd %xmm0, 0x268(%rsp)
movq 0x518(%rsp), %rdi
movl 0x470(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movsd 0x268(%rsp), %xmm0
cvtsi2sdl (%rax), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x270(%rsp)
movq 0x4f8(%rsp), %rdi
movl 0x470(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x6d3c5(%rip), %xmm0    # 0x7b010
addsd (%rax), %xmm0
movsd %xmm0, 0x278(%rsp)
movq 0x4f8(%rsp), %rdi
movl 0x468(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x270(%rsp), %xmm0
movsd 0x278(%rsp), %xmm2
movsd (%rax), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movq 0x500(%rsp), %rdi
movl 0x468(%rsp), %eax
movl %eax, %esi
callq 0xfc50
cvtsi2sdl (%rax), %xmm0
movsd %xmm0, 0x280(%rsp)
movq 0x500(%rsp), %rdi
movl 0x470(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movsd 0x280(%rsp), %xmm0
cvtsi2sdl (%rax), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x288(%rsp)
movq 0x4e8(%rsp), %rdi
movl 0x470(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x6d30f(%rip), %xmm0    # 0x7b010
addsd (%rax), %xmm0
movsd %xmm0, 0x290(%rsp)
movq 0x4e8(%rsp), %rdi
movl 0x468(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x288(%rsp), %xmm0
movsd 0x290(%rsp), %xmm2
movsd (%rax), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movl 0x46c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x46c(%rsp)
jmp 0xdb69
movl 0x470(%rsp), %eax
cmpl 0x554(%rsp), %eax
jne 0xde6a
movl 0x550(%rsp), %eax
movl %eax, 0x464(%rsp)
movq 0x4e8(%rsp), %rdi
movl 0x464(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
movsd %xmm0, 0x248(%rsp)
movq 0x4e8(%rsp), %rdi
movl 0x470(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x248(%rsp), %xmm0
divsd (%rax), %xmm0
movsd %xmm0, 0x458(%rsp)
movq 0x4e8(%rsp), %rdi
movl 0x464(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
movsd %xmm0, 0x258(%rsp)
movsd 0x458(%rsp), %xmm0
movsd %xmm0, 0x250(%rsp)
movq 0x4e8(%rsp), %rdi
movl 0x470(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x250(%rsp), %xmm0
movsd 0x258(%rsp), %xmm1
movsd 0x6d1de(%rip), %xmm2    # 0x7b010
addsd (%rax), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x260(%rsp)
movq 0x4e8(%rsp), %rdi
movl 0x464(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x260(%rsp), %xmm0
movsd %xmm0, (%rax)
movl 0x470(%rsp), %eax
cmpl 0x534(%rsp), %eax
je 0xdf2e
movq 0x4f8(%rsp), %rdi
movl 0x470(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
movsd 0x6d168(%rip), %xmm1    # 0x7b008
divsd %xmm1, %xmm0
movsd %xmm0, 0x238(%rsp)
movq 0x548(%rsp), %rdi
movl 0x470(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x238(%rsp), %xmm1
movsd (%rax), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movq 0x4e8(%rsp), %rdi
movl 0x470(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
movsd 0x6d10e(%rip), %xmm1    # 0x7b008
divsd %xmm1, %xmm0
movsd %xmm0, 0x240(%rsp)
movq 0x548(%rsp), %rdi
movl 0x470(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x240(%rsp), %xmm0
addsd (%rax), %xmm0
movsd %xmm0, (%rax)
jmp 0xdf30
movl 0x474(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0x474(%rsp)
jmp 0xdb32
jmp 0xee59
movq 0x538(%rsp), %rax
cmpl $0x0, 0x228(%rax)
jne 0xee57
movq 0x538(%rsp), %rax
addq $0x1f8, %rax            # imm = 0x1F8
movq %rax, 0x450(%rsp)
movq 0x508(%rsp), %rdi
callq 0xfd50
subq $0x1, %rax
movl %eax, 0x44c(%rsp)
cmpl $0x0, 0x44c(%rsp)
jl 0xee55
movq 0x508(%rsp), %rdi
movslq 0x44c(%rsp), %rsi
callq 0xfbc0
movl (%rax), %eax
movl %eax, 0x448(%rsp)
movq 0x450(%rsp), %rdi
leaq 0x534(%rsp), %rsi
callq 0x10650
movq %rdx, 0x228(%rsp)
movq %rax, 0x230(%rsp)
jmp 0xdfe1
movq 0x228(%rsp), %rax
movq 0x230(%rsp), %rcx
movq %rcx, 0x438(%rsp)
movq %rax, 0x440(%rsp)
movq 0x450(%rsp), %rdi
callq 0x10710
movq %rdx, 0x218(%rsp)
movq %rax, 0x220(%rsp)
jmp 0xe020
movq 0x218(%rsp), %rax
movq 0x220(%rsp), %rcx
movq %rcx, 0x428(%rsp)
movq %rax, 0x430(%rsp)
leaq 0x438(%rsp), %rdi
leaq 0x428(%rsp), %rsi
callq 0x10630
movb %al, 0x217(%rsp)
jmp 0xe05e
movb 0x217(%rsp), %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, 0x216(%rsp)
jne 0xe078
jmp 0xe12c
movq 0x450(%rsp), %rdi
leaq 0x448(%rsp), %rsi
callq 0x10650
movq %rdx, 0x200(%rsp)
movq %rax, 0x208(%rsp)
jmp 0xe09f
movq 0x200(%rsp), %rax
movq 0x208(%rsp), %rcx
movq %rcx, 0x418(%rsp)
movq %rax, 0x420(%rsp)
movq 0x450(%rsp), %rdi
callq 0x10710
movq %rdx, 0x1f0(%rsp)
movq %rax, 0x1f8(%rsp)
jmp 0xe0de
movq 0x1f0(%rsp), %rax
movq 0x1f8(%rsp), %rcx
movq %rcx, 0x408(%rsp)
movq %rax, 0x410(%rsp)
leaq 0x418(%rsp), %rdi
leaq 0x408(%rsp), %rsi
callq 0x10630
movb %al, 0x1ef(%rsp)
jmp 0xe11c
movb 0x1ef(%rsp), %al
movb %al, 0x216(%rsp)
jmp 0xe12c
movb 0x216(%rsp), %al
testb $0x1, %al
jne 0xe13c
jmp 0xe324
movq 0x450(%rsp), %rdi
leaq 0x534(%rsp), %rsi
callq 0x107b0
movq %rax, 0x1e0(%rsp)
jmp 0xe15b
movq 0x1e0(%rsp), %rdi
callq 0x109f0
movq %rax, 0x3f8(%rsp)
movq 0x450(%rsp), %rdi
leaq 0x534(%rsp), %rsi
callq 0x107b0
movq %rax, 0x1d8(%rsp)
jmp 0xe18f
movq 0x1d8(%rsp), %rdi
callq 0x10a20
movq %rax, 0x3f0(%rsp)
movq 0x3f8(%rsp), %rdi
movq 0x3f0(%rsp), %rsi
xorl %edx, %edx
callq 0x10750
movl %eax, 0x1d4(%rsp)
jmp 0xe1c4
movl 0x1d4(%rsp), %eax
movl %eax, 0x404(%rsp)
movq 0x450(%rsp), %rdi
leaq 0x448(%rsp), %rsi
callq 0x107b0
movq %rax, 0x1c8(%rsp)
jmp 0xe1f1
movq 0x1c8(%rsp), %rdi
callq 0x109f0
movq %rax, 0x3e8(%rsp)
movq 0x450(%rsp), %rdi
leaq 0x448(%rsp), %rsi
callq 0x107b0
movq %rax, 0x1c0(%rsp)
jmp 0xe225
movq 0x1c0(%rsp), %rdi
callq 0x10a20
movq %rax, 0x3e0(%rsp)
movq 0x3e8(%rsp), %rdi
movq 0x3e0(%rsp), %rsi
xorl %edx, %edx
callq 0x10750
movl %eax, 0x1bc(%rsp)
jmp 0xe25a
movl 0x1bc(%rsp), %eax
movl %eax, 0x400(%rsp)
movl 0x404(%rsp), %eax
imull 0x400(%rsp), %eax
movl %eax, 0x3dc(%rsp)
movq 0x4f0(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
cvtsi2sdl 0x3dc(%rsp), %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, 0x1a8(%rsp)
movq 0x4f0(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x1a8(%rsp), %xmm0
movsd %xmm0, (%rax)
movq 0x4e0(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
cvtsi2sdl 0x3dc(%rsp), %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, 0x1b0(%rsp)
movq 0x4e0(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x1b0(%rsp), %xmm0
movsd %xmm0, (%rax)
movl $0x0, 0x3d8(%rsp)
movslq 0x3d8(%rsp), %rax
movq %rax, 0x1a0(%rsp)
movq 0x520(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0x100e0
movq %rax, %rdi
callq 0xfd50
movq %rax, %rcx
movq 0x1a0(%rsp), %rax
cmpq %rcx, %rax
jae 0xe80e
movq 0x520(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0x100e0
movq %rax, %rdi
movslq 0x3d8(%rsp), %rsi
callq 0xfbc0
movl (%rax), %eax
movl %eax, 0x3d4(%rsp)
movq 0x518(%rsp), %rdi
movl 0x3d4(%rsp), %eax
movl %eax, %esi
callq 0xfc50
cvtsi2sdl (%rax), %xmm0
movsd %xmm0, 0x170(%rsp)
movq 0x518(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movsd 0x170(%rsp), %xmm0
cvtsi2sdl (%rax), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x3c8(%rsp)
movq 0x4f8(%rsp), %rdi
movl 0x3d4(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
movsd %xmm0, 0x180(%rsp)
movsd 0x3c8(%rsp), %xmm0
movsd %xmm0, 0x178(%rsp)
movq 0x4f8(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x178(%rsp), %xmm0
movsd 0x180(%rsp), %xmm1
movsd (%rax), %xmm2
movsd 0x6cbb4(%rip), %xmm3    # 0x7b010
addsd %xmm3, %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x188(%rsp)
movq 0x4f8(%rsp), %rdi
movl 0x3d4(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x188(%rsp), %xmm0
movsd %xmm0, (%rax)
movq 0x450(%rsp), %rdi
leaq 0x534(%rsp), %rsi
callq 0x10650
movq %rdx, 0x190(%rsp)
movq %rax, 0x198(%rsp)
jmp 0xe4bb
movq 0x190(%rsp), %rax
movq 0x198(%rsp), %rcx
movq %rcx, 0x3b8(%rsp)
movq %rax, 0x3c0(%rsp)
movq 0x450(%rsp), %rdi
callq 0x10710
movq %rdx, 0x160(%rsp)
movq %rax, 0x168(%rsp)
jmp 0xe4fa
movq 0x160(%rsp), %rax
movq 0x168(%rsp), %rcx
movq %rcx, 0x3a8(%rsp)
movq %rax, 0x3b0(%rsp)
leaq 0x3b8(%rsp), %rdi
leaq 0x3a8(%rsp), %rsi
callq 0x10630
movb %al, 0x15f(%rsp)
jmp 0xe538
movb 0x15f(%rsp), %al
testb $0x1, %al
jne 0xe548
jmp 0xe5cb
movq 0x4f0(%rsp), %rdi
movl 0x3d4(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
movsd %xmm0, 0x148(%rsp)
movq 0x4f0(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x148(%rsp), %xmm1
movsd (%rax), %xmm0
movsd 0x3c8(%rsp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x150(%rsp)
movq 0x4f0(%rsp), %rdi
movl 0x3d4(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x150(%rsp), %xmm0
movsd %xmm0, (%rax)
movq 0x500(%rsp), %rdi
movl 0x3d4(%rsp), %eax
movl %eax, %esi
callq 0xfc50
cvtsi2sdl (%rax), %xmm0
movsd %xmm0, 0x118(%rsp)
movq 0x500(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfc50
movsd 0x118(%rsp), %xmm0
cvtsi2sdl (%rax), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x3c8(%rsp)
movq 0x4e8(%rsp), %rdi
movl 0x3d4(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
movsd %xmm0, 0x128(%rsp)
movsd 0x3c8(%rsp), %xmm0
movsd %xmm0, 0x120(%rsp)
movq 0x4e8(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x120(%rsp), %xmm0
movsd 0x128(%rsp), %xmm1
movsd (%rax), %xmm2
movsd 0x6c989(%rip), %xmm3    # 0x7b010
addsd %xmm3, %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x130(%rsp)
movq 0x4e8(%rsp), %rdi
movl 0x3d4(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x130(%rsp), %xmm0
movsd %xmm0, (%rax)
movq 0x450(%rsp), %rdi
leaq 0x534(%rsp), %rsi
callq 0x10650
movq %rdx, 0x138(%rsp)
movq %rax, 0x140(%rsp)
jmp 0xe6e6
movq 0x138(%rsp), %rax
movq 0x140(%rsp), %rcx
movq %rcx, 0x398(%rsp)
movq %rax, 0x3a0(%rsp)
movq 0x450(%rsp), %rdi
callq 0x10710
movq %rdx, 0x108(%rsp)
movq %rax, 0x110(%rsp)
jmp 0xe725
movq 0x108(%rsp), %rax
movq 0x110(%rsp), %rcx
movq %rcx, 0x388(%rsp)
movq %rax, 0x390(%rsp)
leaq 0x398(%rsp), %rdi
leaq 0x388(%rsp), %rsi
callq 0x10630
movb %al, 0x107(%rsp)
jmp 0xe763
movb 0x107(%rsp), %al
testb $0x1, %al
jne 0xe773
jmp 0xe7f6
movq 0x4e0(%rsp), %rdi
movl 0x3d4(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
movsd %xmm0, 0xf0(%rsp)
movq 0x4e0(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0xf0(%rsp), %xmm1
movsd (%rax), %xmm0
movsd 0x3c8(%rsp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0xf8(%rsp)
movq 0x4e0(%rsp), %rdi
movl 0x3d4(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0xf8(%rsp), %xmm0
movsd %xmm0, (%rax)
jmp 0xe7f8
movl 0x3d8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x3d8(%rsp)
jmp 0xe32f
movl 0x448(%rsp), %eax
cmpl 0x554(%rsp), %eax
jne 0xeae8
movl 0x550(%rsp), %eax
movl %eax, 0x384(%rsp)
movq 0x4e8(%rsp), %rdi
movl 0x384(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
movsd %xmm0, 0xc0(%rsp)
movq 0x4e8(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0xc0(%rsp), %xmm0
movsd (%rax), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x378(%rsp)
movq 0x4e8(%rsp), %rdi
movl 0x384(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
movsd %xmm0, 0xd0(%rsp)
movsd 0x378(%rsp), %xmm0
movsd %xmm0, 0xc8(%rsp)
movq 0x4e8(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0xc8(%rsp), %xmm0
movsd 0xd0(%rsp), %xmm1
movsd (%rax), %xmm2
movsd 0x6c724(%rip), %xmm3    # 0x7b010
addsd %xmm3, %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0xd8(%rsp)
movq 0x4e8(%rsp), %rdi
movl 0x384(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0xd8(%rsp), %xmm0
movsd %xmm0, (%rax)
movq 0x450(%rsp), %rdi
leaq 0x534(%rsp), %rsi
callq 0x10650
movq %rdx, 0xe0(%rsp)
movq %rax, 0xe8(%rsp)
jmp 0xe94b
movq 0xe0(%rsp), %rax
movq 0xe8(%rsp), %rcx
movq %rcx, 0x368(%rsp)
movq %rax, 0x370(%rsp)
movq 0x450(%rsp), %rdi
callq 0x10710
movq %rdx, 0xb0(%rsp)
movq %rax, 0xb8(%rsp)
jmp 0xe98a
movq 0xb0(%rsp), %rax
movq 0xb8(%rsp), %rcx
movq %rcx, 0x358(%rsp)
movq %rax, 0x360(%rsp)
leaq 0x368(%rsp), %rdi
leaq 0x358(%rsp), %rsi
callq 0x10630
movb %al, 0xaf(%rsp)
jmp 0xe9c8
movb 0xaf(%rsp), %al
testb $0x1, %al
jne 0xe9d8
jmp 0xeae6
movq 0x4e0(%rsp), %rdi
movl 0x384(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
movsd %xmm0, 0x88(%rsp)
movq 0x4e0(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x88(%rsp), %xmm1
movsd (%rax), %xmm0
movsd 0x378(%rsp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x90(%rsp)
movq 0x4e0(%rsp), %rdi
movl 0x384(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x90(%rsp), %xmm0
movsd %xmm0, (%rax)
movq 0x548(%rsp), %rdi
movl 0x384(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
movsd %xmm0, 0x98(%rsp)
movq 0x4e0(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x98(%rsp), %xmm0
movsd (%rax), %xmm1
mulsd 0x378(%rsp), %xmm1
movsd 0x6c556(%rip), %xmm2    # 0x7b008
divsd %xmm2, %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, 0xa0(%rsp)
movq 0x548(%rsp), %rdi
movl 0x384(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0xa0(%rsp), %xmm0
movsd %xmm0, (%rax)
jmp 0xeae8
movl 0x534(%rsp), %eax
cmpl 0x448(%rsp), %eax
je 0xeba6
movq 0x4f8(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
movsd 0x6c4ea(%rip), %xmm1    # 0x7b008
divsd %xmm1, %xmm0
movsd %xmm0, 0x78(%rsp)
movq 0x548(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x78(%rsp), %xmm1
movsd (%rax), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movq 0x4e8(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
movsd 0x6c496(%rip), %xmm1    # 0x7b008
divsd %xmm1, %xmm0
movsd %xmm0, 0x80(%rsp)
movq 0x548(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x80(%rsp), %xmm0
addsd (%rax), %xmm0
movsd %xmm0, (%rax)
movq 0x450(%rsp), %rdi
leaq 0x534(%rsp), %rsi
callq 0x10650
movq %rdx, 0x68(%rsp)
movq %rax, 0x70(%rsp)
jmp 0xebc7
movq 0x68(%rsp), %rax
movq 0x70(%rsp), %rcx
movq %rcx, 0x348(%rsp)
movq %rax, 0x350(%rsp)
movq 0x450(%rsp), %rdi
callq 0x10710
movq %rdx, 0x58(%rsp)
movq %rax, 0x60(%rsp)
jmp 0xebfa
movq 0x58(%rsp), %rax
movq 0x60(%rsp), %rcx
movq %rcx, 0x338(%rsp)
movq %rax, 0x340(%rsp)
leaq 0x348(%rsp), %rdi
leaq 0x338(%rsp), %rsi
callq 0x10630
movb %al, 0x57(%rsp)
jmp 0xec2f
movb 0x57(%rsp), %al
testb $0x1, %al
jne 0xec3c
jmp 0xee3d
movq 0x450(%rsp), %rdi
leaq 0x534(%rsp), %rsi
callq 0x107b0
movq %rax, 0x48(%rsp)
jmp 0xec58
movq 0x48(%rsp), %rdi
callq 0x109f0
movq %rax, 0x328(%rsp)
movq 0x450(%rsp), %rdi
leaq 0x534(%rsp), %rsi
callq 0x107b0
movq %rax, 0x40(%rsp)
jmp 0xec86
movq 0x40(%rsp), %rdi
callq 0x10a20
movq %rax, 0x320(%rsp)
movq 0x328(%rsp), %rdi
movq 0x320(%rsp), %rsi
xorl %edx, %edx
callq 0x10750
movl %eax, 0x3c(%rsp)
jmp 0xecb5
movl 0x3c(%rsp), %eax
movl %eax, 0x334(%rsp)
movq 0x4f8(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
cvtsi2sdl 0x334(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
movq 0x548(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm2
movsd (%rax), %xmm1
movq %xmm0, %rcx
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
xorq %rdx, %rcx
movq %rcx, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movq 0x4f0(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
movsd 0x6c2ae(%rip), %xmm1    # 0x7b008
divsd %xmm1, %xmm0
movsd %xmm0, 0x18(%rsp)
movq 0x548(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x18(%rsp), %xmm1
movsd (%rax), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movq 0x4e8(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
movsd %xmm0, 0x20(%rsp)
cvtsi2sdl 0x334(%rsp), %xmm0
movsd %xmm0, 0x28(%rsp)
movq 0x548(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x20(%rsp), %xmm0
movsd 0x28(%rsp), %xmm2
movsd (%rax), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movq 0x4e0(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd (%rax), %xmm0
movsd 0x6c1f9(%rip), %xmm1    # 0x7b008
divsd %xmm1, %xmm0
movsd %xmm0, 0x30(%rsp)
movq 0x548(%rsp), %rdi
movl 0x448(%rsp), %eax
movl %eax, %esi
callq 0xfa30
movsd 0x30(%rsp), %xmm0
addsd (%rax), %xmm0
movsd %xmm0, (%rax)
jmp 0xee3f
movl 0x44c(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0x44c(%rsp)
jmp 0xdf8e
jmp 0xee57
jmp 0xee59
leaq 0x490(%rsp), %rdi
callq 0x10620
addq $0x558, %rsp            # imm = 0x558
retq
movq 0x488(%rsp), %rdi
callq 0x9cf0
nopl (%rax,%rax)