// File: /workspace/github_cpp_makefile_star2_O3/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %r8, 0x10(%rsp)
movl %ecx, %ebx
movq %rdx, 0x18(%rsp)
movq %rsi, %r14
movq %rdi, 0x28(%rsp)
movl %ecx, 0x8(%rsp)
xorpd %xmm0, %xmm0
leaq 0x70(%rsp), %r12
movapd %xmm0, 0x40(%r12)
movapd %xmm0, 0x30(%r12)
movapd %xmm0, 0x20(%r12)
movapd %xmm0, 0x10(%r12)
movapd %xmm0, (%r12)
movq %r12, %rdi
xorl %esi, %esi
callq 0x6ad0
movl %ebx, %eax
movq 0x78(%r14), %rcx
movl $0x1, %edx
movl %edx, (%rcx,%rax,4)
movq 0x18(%r14), %rcx
movl %edx, (%rcx,%rax,4)
movq 0x30(%r14), %rcx
movl $0x0, (%rcx,%rax,4)
movq 0x30(%r12), %rcx
movq 0x40(%r12), %rax
addq $-0x4, %rax
cmpq %rax, %rcx
je 0x515b
movl %ebx, (%rcx)
addq $0x4, %rcx
movq %rcx, 0xa0(%rsp)
jmp 0x5172
leaq 0x70(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x75be
movq 0xa0(%rsp), %rcx
movq 0x10(%rsp), %r15
shrq $0x20, %r15
leaq 0x100(%r14), %rax
movq %rax, 0x68(%rsp)
movq 0x80(%rsp), %rax
cmpq %rax, %rcx
je 0x5389
movl 0x10(%rsp), %ecx
movq %rcx, 0x40(%rsp)
leaq 0x4(%rsp), %rbx
leaq 0x70(%rsp), %r13
leaq 0xc(%rsp), %rbp
movl (%rax), %ecx
movl %ecx, 0x4(%rsp)
movq 0x90(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x51cd
addq $0x4, %rax
jmp 0x520e
movq 0x88(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
callq 0x2250
movq 0x98(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x98(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x88(%rsp)
leaq 0x200(%rax), %rcx
movq %rcx, 0x90(%rsp)
movq %rax, 0x80(%rsp)
movq 0x108(%r14), %rsi
cmpq 0x110(%r14), %rsi
je 0x5239
movl 0x4(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x108(%r14)
jmp 0x524a
movq 0x68(%rsp), %rdi
movq %rbx, %rdx
callq 0x6f14
movl 0x4(%rsp), %eax
cmpl %r15d, %eax
jne 0x5267
movq 0x18(%r14), %rax
movq 0x78(%r14), %rcx
movq 0x40(%rsp), %rdx
movl (%rax,%rdx,4), %eax
addl %eax, (%rcx,%r15,4)
movl 0x4(%rsp), %eax
movl %eax, %ecx
movq 0x18(%rsp), %rdx
movq (%rdx), %rdx
leaq (%rcx,%rcx,2), %rsi
movq (%rdx,%rsi,8), %rcx
cmpq %rcx, 0x8(%rdx,%rsi,8)
je 0x5373
xorl %r12d, %r12d
movl (%rcx,%r12,4), %edx
movl %edx, 0xc(%rsp)
movq 0x30(%r14), %rcx
movl (%rcx,%rdx,4), %esi
testl %esi, %esi
jns 0x52ed
movq 0xa0(%rsp), %rax
movq 0xb0(%rsp), %rsi
addq $-0x4, %rsi
cmpq %rsi, %rax
je 0x52c3
movl %edx, (%rax)
addq $0x4, %rax
movq %rax, 0xa0(%rsp)
jmp 0x52d2
movq %r13, %rdi
movq %rbp, %rsi
callq 0x75be
movq 0x30(%r14), %rcx
movl 0x4(%rsp), %eax
movl (%rcx,%rax,4), %eax
incl %eax
movl 0xc(%rsp), %edx
movl %eax, (%rcx,%rdx,4)
movl 0xc(%rsp), %edx
movl (%rcx,%rdx,4), %esi
movl 0x4(%rsp), %eax
movl %eax, %edi
movl (%rcx,%rdi,4), %ecx
incl %ecx
cmpl %ecx, %esi
jne 0x5349
movq 0x18(%r14), %rax
movl (%rax,%rdi,4), %ecx
addl %ecx, (%rax,%rdx,4)
movl 0x4(%rsp), %eax
movq 0x78(%r14), %rcx
movl (%rcx,%rax,4), %eax
movl 0xc(%rsp), %edx
addl %eax, (%rcx,%rdx,4)
movl 0xc(%rsp), %eax
movq (%r14), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x533d
movl 0x4(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x5349
movq %rbx, %rdx
callq 0x6f14
movl 0x4(%rsp), %eax
incq %r12
movl %eax, %ecx
movq 0x18(%rsp), %rdx
movq (%rdx), %rdx
leaq (%rcx,%rcx,2), %rsi
movq (%rdx,%rsi,8), %rcx
movq 0x8(%rdx,%rsi,8), %rdx
subq %rcx, %rdx
sarq $0x2, %rdx
cmpq %r12, %rdx
ja 0x5287
movq 0x80(%rsp), %rax
cmpq %rax, 0xa0(%rsp)
jne 0x51b0
movq 0x18(%rsp), %r12
movq %r12, %rdi
callq 0x2e9da
leaq 0x48(%r14), %rdi
movq %rdi, 0x58(%rsp)
movq %rax, %rsi
callq 0x5be8
movq 0x48(%r14), %rdi
movq 0x50(%r14), %rdx
cmpq %rdx, %rdi
je 0x53ca
subq %rdi, %rdx
addq $-0x8, %rdx
andq $-0x8, %rdx
addq $0x8, %rdx
xorl %esi, %esi
callq 0x2110
movq %r12, %rdi
callq 0x2e9da
leaq 0x60(%r14), %rdi
movq %rdi, 0x48(%rsp)
movq %rax, %rsi
callq 0x5be8
movq 0x60(%r14), %rdi
movq 0x68(%r14), %rdx
cmpq %rdx, %rdi
je 0x5406
subq %rdi, %rdx
addq $-0x8, %rdx
andq $-0x8, %rdx
addq $0x8, %rdx
xorl %esi, %esi
callq 0x2110
movq %r12, %rdi
callq 0x2e9da
leaq 0x90(%r14), %rdi
movq %rdi, 0x38(%rsp)
movq %rax, %rsi
callq 0x5be8
movq 0x90(%r14), %rdi
movq 0x98(%r14), %rdx
cmpq %rdx, %rdi
je 0x544b
subq %rdi, %rdx
addq $-0x8, %rdx
andq $-0x8, %rdx
addq $0x8, %rdx
xorl %esi, %esi
callq 0x2110
movq %r12, %rdi
callq 0x2e9da
leaq 0xa8(%r14), %rdi
movq %rdi, 0x30(%rsp)
movq %rax, %rsi
callq 0x5be8
movq 0xa8(%r14), %rdi
movq 0xb0(%r14), %rdx
cmpq %rdx, %rdi
je 0x5490
subq %rdi, %rdx
addq $-0x8, %rdx
andq $-0x8, %rdx
addq $0x8, %rdx
xorl %esi, %esi
callq 0x2110
movl 0x228(%r12), %eax
testl %eax, %eax
movq %r15, 0x60(%rsp)
je 0x5607
cmpl $0x2, %eax
jne 0x5ad1
movq 0x100(%r14), %rax
movq 0x108(%r14), %rbx
subq %rax, %rbx
shrq $0x2, %rbx
decl %ebx
js 0x5ad1
movq (%r14), %rcx
movq 0x18(%r14), %rdx
movq 0x48(%r14), %rsi
movq 0x78(%r14), %rdi
movq 0x90(%r14), %r8
movl 0x10(%rsp), %r9d
movl 0x8(%rsp), %r10d
movq 0x28(%rsp), %r11
movq (%r11), %r11
movl %ebx, %ebx
movsd 0x2ab33(%rip), %xmm0    # 0x30030
movsd 0x2ab33(%rip), %xmm1    # 0x30038
movl (%rax,%rbx,4), %r14d
leaq (%r14,%r14,2), %r12
movq (%rcx,%r12,8), %r15
movq 0x8(%rcx,%r12,8), %r12
subq %r15, %r12
je 0x5592
sarq $0x2, %r12
xorps %xmm2, %xmm2
cvtsi2sdl (%rdx,%r14,4), %xmm2
xorps %xmm3, %xmm3
cvtsi2sdl (%rdi,%r14,4), %xmm3
cmpq $0x1, %r12
adcq $0x0, %r12
xorl %r13d, %r13d
movl (%r15,%r13,4), %ebp
xorps %xmm4, %xmm4
cvtsi2sdl (%rdx,%rbp,4), %xmm4
divsd %xmm2, %xmm4
movsd (%rsi,%r14,8), %xmm5
addsd %xmm0, %xmm5
mulsd %xmm4, %xmm5
addsd (%rsi,%rbp,8), %xmm5
movsd %xmm5, (%rsi,%rbp,8)
xorps %xmm4, %xmm4
cvtsi2sdl (%rdi,%rbp,4), %xmm4
divsd %xmm3, %xmm4
movsd (%r8,%r14,8), %xmm5
addsd %xmm0, %xmm5
mulsd %xmm4, %xmm5
addsd (%r8,%rbp,8), %xmm5
movsd %xmm5, (%r8,%rbp,8)
incq %r13
cmpq %r13, %r12
jne 0x553c
cmpl 0x60(%rsp), %r14d
jne 0x55bf
movsd (%r8,%r9,8), %xmm2
movsd (%r8,%r14,8), %xmm3
movapd %xmm2, %xmm4
divsd %xmm3, %xmm4
addsd %xmm0, %xmm3
mulsd %xmm4, %xmm3
addsd %xmm2, %xmm3
movsd %xmm3, (%r8,%r9,8)
cmpl %r10d, %r14d
je 0x55f2
movsd (%rsi,%r14,8), %xmm2
mulsd %xmm1, %xmm2
movsd (%r11,%r14,8), %xmm3
subsd %xmm2, %xmm3
movsd %xmm3, (%r11,%r14,8)
movsd (%r8,%r14,8), %xmm2
mulsd %xmm1, %xmm2
addsd %xmm3, %xmm2
movsd %xmm2, (%r11,%r14,8)
leaq -0x1(%rbx), %r14
testq %rbx, %rbx
movq %r14, %rbx
jg 0x5505
jmp 0x5ad1
movq 0x108(%r14), %rax
subq 0x100(%r14), %rax
shrq $0x2, %rax
decl %eax
js 0x5ad1
leaq 0x1f8(%r12), %rcx
movq %rcx, 0x20(%rsp)
movl 0x10(%rsp), %ecx
movq %rcx, 0x50(%rsp)
movl %eax, %r13d
leaq 0x8(%rsp), %rbp
movq 0x68(%rsp), %rax
movq (%rax), %rax
movl (%rax,%r13,4), %esi
movl %esi, 0x4(%rsp)
movl 0x8(%rsp), %ecx
movq 0x200(%r12), %rdi
movq 0x208(%r12), %r8
movq %rcx, %rax
xorl %edx, %edx
divq %r8
movq (%rdi,%rdx,8), %rax
testq %rax, %rax
je 0x5760
cmpl (%rax), %ecx
je 0x5682
movq 0x20(%rax), %rax
jmp 0x566f
movq (%rdi,%r8,8), %r9
cmpq %r9, %rax
je 0x5760
movq %rsi, %rax
xorl %edx, %edx
divq %r8
movq (%rdi,%rdx,8), %rax
testq %rax, %rax
je 0x5760
cmpl (%rax), %esi
je 0x56ae
movq 0x20(%rax), %rax
jmp 0x569b
cmpq %r9, %rax
je 0x5760
movq 0x20(%rsp), %rbx
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x6088
movq (%rax), %r15
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x6088
movq 0x8(%rax), %rax
xorl %ebx, %ebx
cmpq %rax, %r15
je 0x56f3
movq 0x20(%rsp), %r12
addl (%r15), %ebx
addq $0x4, %r15
cmpq %rax, %r15
jne 0x56e5
jmp 0x56f8
movq 0x20(%rsp), %r12
movq %r12, %rdi
leaq 0x4(%rsp), %rsi
callq 0x6088
movq (%rax), %r15
movq %r12, %rdi
leaq 0x4(%rsp), %rsi
callq 0x6088
movq 0x8(%rax), %rcx
xorl %eax, %eax
cmpq %rcx, %r15
je 0x5729
addl (%r15), %eax
addq $0x4, %r15
jmp 0x571b
imull %ebx, %eax
movl 0x4(%rsp), %esi
movq 0x48(%rsp), %rcx
movq (%rcx), %rcx
cvtsi2sd %eax, %xmm0
movsd (%rcx,%rsi,8), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%rcx,%rsi,8)
movq 0x30(%rsp), %rax
movq (%rax), %rax
addsd (%rax,%rsi,8), %xmm0
movsd %xmm0, (%rax,%rsi,8)
movl 0x8(%rsp), %ecx
movq %r13, 0xc0(%rsp)
movq (%r14), %rax
leaq (%rsi,%rsi,2), %rdx
movq (%rax,%rdx,8), %r8
movq 0x8(%rax,%rdx,8), %r9
movl %ecx, %eax
movq %rax, 0x10(%rsp)
subq %r8, %r9
je 0x58b9
sarq $0x2, %r9
movq 0x18(%r14), %r10
movq 0x48(%r14), %r11
xorps %xmm0, %xmm0
cvtsi2sdl (%r10,%rsi,4), %xmm0
movq 0x18(%rsp), %rax
movq 0x200(%rax), %rdi
movq 0x208(%rax), %rbx
movq 0x10(%rsp), %rax
xorl %edx, %edx
divq %rbx
movq (%rdi,%rdx,8), %r12
movq (%rdi,%rbx,8), %rdx
movq 0x60(%r14), %rax
movq %rax, 0x40(%rsp)
movq 0x78(%r14), %rbp
xorps %xmm1, %xmm1
cvtsi2sdl (%rbp,%rsi,4), %xmm1
movq 0x90(%r14), %rbx
movq 0xa8(%r14), %r13
cmpq $0x1, %r9
adcq $0x0, %r9
xorl %edi, %edi
movl (%r8,%rdi,4), %r15d
xorps %xmm2, %xmm2
cvtsi2sdl (%r10,%r15,4), %xmm2
divsd %xmm0, %xmm2
movsd (%r11,%rsi,8), %xmm3
addsd 0x2a821(%rip), %xmm3    # 0x30030
mulsd %xmm2, %xmm3
addsd (%r11,%r15,8), %xmm3
movsd %xmm3, (%r11,%r15,8)
testq %r12, %r12
je 0x5851
movq %r12, %rax
cmpl (%rax), %ecx
je 0x5836
movq 0x20(%rax), %rax
testq %rax, %rax
jne 0x5827
jmp 0x5851
cmpq %rdx, %rax
je 0x5851
movq 0x40(%rsp), %rax
mulsd (%rax,%rsi,8), %xmm2
addsd (%rax,%r15,8), %xmm2
movsd %xmm2, (%rax,%r15,8)
xorps %xmm2, %xmm2
cvtsi2sdl (%rbp,%r15,4), %xmm2
divsd %xmm1, %xmm2
movsd (%rbx,%rsi,8), %xmm3
addsd 0x2a7c4(%rip), %xmm3    # 0x30030
mulsd %xmm2, %xmm3
addsd (%rbx,%r15,8), %xmm3
movsd %xmm3, (%rbx,%r15,8)
testq %r12, %r12
je 0x58ad
movq %r12, %rax
cmpl (%rax), %ecx
je 0x5893
movq 0x20(%rax), %rax
testq %rax, %rax
jne 0x5884
jmp 0x58ad
cmpq %rdx, %rax
je 0x58ad
mulsd (%r13,%rsi,8), %xmm2
addsd (%r13,%r15,8), %xmm2
movsd %xmm2, (%r13,%r15,8)
incq %rdi
cmpq %r9, %rdi
jne 0x57f0
cmpl 0x60(%rsp), %esi
movq 0x18(%rsp), %r12
movq 0xc0(%rsp), %r13
jne 0x5976
movq 0x38(%rsp), %rax
movq (%rax), %rax
movq 0x50(%rsp), %rdx
movsd (%rax,%rdx,8), %xmm1
movsd (%rax,%rsi,8), %xmm2
movapd %xmm1, %xmm0
divsd %xmm2, %xmm0
addsd 0x2a739(%rip), %xmm2    # 0x30030
mulsd %xmm0, %xmm2
addsd %xmm1, %xmm2
movsd %xmm2, (%rax,%rdx,8)
movq 0x200(%r12), %rdi
movq 0x208(%r12), %r8
movq 0x10(%rsp), %rax
xorl %edx, %edx
divq %r8
movq (%rdi,%rdx,8), %rax
testq %rax, %rax
je 0x5976
cmpl (%rax), %ecx
je 0x5931
movq 0x20(%rax), %rax
jmp 0x5922
cmpq (%rdi,%r8,8), %rax
je 0x5976
movq 0x30(%rsp), %rax
movq (%rax), %rax
movsd (%rax,%rsi,8), %xmm1
mulsd %xmm0, %xmm1
movq 0x50(%rsp), %rdi
addsd (%rax,%rdi,8), %xmm1
movsd %xmm1, (%rax,%rdi,8)
movq 0x28(%rsp), %rdx
movq (%rdx), %rdx
mulsd (%rax,%rsi,8), %xmm0
mulsd 0x2a6cc(%rip), %xmm0    # 0x30038
addsd (%rdx,%rdi,8), %xmm0
movsd %xmm0, (%rdx,%rdi,8)
cmpl %esi, %ecx
leaq 0x8(%rsp), %rbp
je 0x59c8
movq 0x58(%rsp), %rax
movq (%rax), %rax
movsd (%rax,%rsi,8), %xmm0
movsd 0x2a6a4(%rip), %xmm2    # 0x30038
mulsd %xmm2, %xmm0
movq 0x28(%rsp), %rax
movq (%rax), %rax
movsd (%rax,%rsi,8), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, (%rax,%rsi,8)
movq 0x38(%rsp), %rdx
movq (%rdx), %rdx
movsd (%rdx,%rsi,8), %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax,%rsi,8)
movq 0x200(%r12), %rsi
movq 0x208(%r12), %rdi
movq 0x10(%rsp), %rax
xorl %edx, %edx
divq %rdi
movq (%rsi,%rdx,8), %rax
testq %rax, %rax
je 0x5ac1
cmpl (%rax), %ecx
je 0x59f9
movq 0x20(%rax), %rax
jmp 0x59e6
cmpq (%rsi,%rdi,8), %rax
je 0x5ac1
movq 0x20(%rsp), %r15
movq %r15, %rdi
movq %rbp, %rsi
callq 0x6088
movq (%rax), %rbx
movq %r15, %rdi
movq %rbp, %rsi
callq 0x6088
movq 0x8(%rax), %rax
cmpq %rax, %rbx
je 0x5a40
xorl %ecx, %ecx
addl (%rbx), %ecx
addq $0x4, %rbx
cmpq %rax, %rbx
jne 0x5a2c
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
jmp 0x5a44
xorpd %xmm0, %xmm0
movl 0x4(%rsp), %eax
movq 0x58(%rsp), %rcx
movq (%rcx), %rcx
movq 0x28(%rsp), %rdx
movq (%rdx), %rdx
movsd (%rdx,%rax,8), %xmm1
movsd (%rcx,%rax,8), %xmm2
mulsd %xmm0, %xmm2
subsd %xmm2, %xmm1
movsd %xmm1, (%rdx,%rax,8)
movq 0x48(%rsp), %rcx
movq (%rcx), %rcx
movsd (%rcx,%rax,8), %xmm2
movsd 0x2a5b4(%rip), %xmm3    # 0x30038
mulsd %xmm3, %xmm2
subsd %xmm2, %xmm1
movsd %xmm1, (%rdx,%rax,8)
movq 0x38(%rsp), %rcx
movq (%rcx), %rcx
mulsd (%rcx,%rax,8), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rdx,%rax,8)
movq 0x30(%rsp), %rcx
movq (%rcx), %rcx
movsd (%rcx,%rax,8), %xmm1
mulsd %xmm3, %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%rdx,%rax,8)
leaq -0x1(%r13), %rax
testq %r13, %r13
movq %rax, %r13
jg 0x563f
leaq 0x70(%rsp), %rdi
callq 0x690a
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5af5
jmp 0x5af5
jmp 0x5af5
jmp 0x5af5
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x690a
movq %rbx, %rdi
callq 0x23b0