// File: /workspace/github_cpp_makefile_star2_O3/ekg[P]sgd2/src/sgd2.hpp
// Function: sgd2::MSSP_weighted(std::vector<std::vector<sgd2::edge, std::allocator<sgd2::edge>>, std::allocator<std::vector<sgd2::edge, std::allocator<sgd2::edge>>>> const&, std::vector<unsigned long, std::allocator<unsigned long>> const&)
std::vector<term_sparse> MSSP_weighted(const std::vector<std::vector<edge>>& graph, const std::vector<uint64_t>& closest_pivots)
{
    uint64_t n = graph.size();

    // get pivots and their regions, but in sets
    std::unordered_map<uint64_t, std::unordered_set<uint64_t>> regions;
    for (uint64_t i = 0; i < n; i++)
    {
        if (regions.find(closest_pivots[i]) == regions.end())
        {
            regions[closest_pivots[i]] = std::unordered_set<uint64_t>();
        }
        regions[closest_pivots[i]].insert(i);
    }

    std::unordered_map<uint64_t, std::unordered_map<uint64_t, term_sparse>> termsDict;
    for (const auto& region : regions)
    {
        uint64_t p = region.first;

        std::vector<bool> visited(n, false);
        std::vector<double> d(n, std::numeric_limits<double>::max()); // init 'tentative' distances to infinity

        // edges are used 'invisibly' in this queue
        std::priority_queue<edge, std::vector<edge>, edge_comp> pq;

        // init initial edges so that pivot-pivot term is avoided
        for (edge e : graph[p])
        {
            // here the edge is not 'invisible'
            uint64_t next = e.target;
            double weight = e.weight;

            d[next] = weight; // init tentative value of d
            pq.push(edge(next, d[next]));
        }
        d[p] = 0;
        visited[p] = true;

        // q2 contains visited vertices' distances for s calculation
        std::queue<double> q2;
        uint64_t s = 1;

        while (!pq.empty())
        {
            uint64_t current = pq.top().target;
            double d_pi = pq.top().weight;
            pq.pop();
            
            if (!visited[current]) // ignore redundant elements in queue
            {
                visited[current] = true;

                // empty the second queue enough to calculate s
                while (!q2.empty() && q2.front() <= d_pi/2)
                {
                    q2.pop();
                    s += 1;
                }
                if (region.second.find(current) != region.second.end())
                {
                    q2.push(d_pi);
                }

                uint64_t i = current;
                if (i < p)
                {
                    if (termsDict.find(i) == termsDict.end())
                        termsDict[i] = std::unordered_map<uint64_t, term_sparse>();
                    if (termsDict[i].find(p) == termsDict[i].end())
                        termsDict[i].insert({ p, term_sparse(i, p, d_pi) });

                    termsDict[i].at(p).w_ij = s / ((double)d_pi * d_pi);
                }
                else
                {
                    if (termsDict.find(p) == termsDict.end())
                        termsDict[p] = std::unordered_map<uint64_t, term_sparse>();
                    if (termsDict[p].find(i) == termsDict[p].end())
                        termsDict[p].insert({ i, term_sparse(p, i, d_pi) });

                    termsDict[p].at(i).w_ji = s / ((double)d_pi * d_pi);
                }

                // update tentative distances
                for (edge e : graph[current])
                {
                    // here the edge is not 'invisible'
                    uint64_t next = e.target;
                    double weight = e.weight;

                    if (d_pi + weight < d[next]) 
                    {
                        d[next] = d_pi + weight; // update tentative value of d
                        pq.push(edge(next, d[next]));
                    }
                }
            }
        }
    }
    // 1-stress
    for (uint64_t i=0; i<n; i++)
    {
        for (edge e : graph[i])
        {
            uint64_t j = e.target;
            double d_ij = e.weight;
            if (i < j)
            {
                if (termsDict.find(i) == termsDict.end())
                    termsDict[i] = std::unordered_map<uint64_t, term_sparse>();
                if (termsDict[i].find(j) == termsDict[i].end())
                    termsDict[i].insert({ j, term_sparse(i, j, d_ij) });
                else
                    termsDict[i].at(j).d = d_ij;

                termsDict[i].at(j).w_ij = termsDict[i].at(j).w_ji = 1/(d_ij*d_ij);
            }
        }
    }
    std::vector<term_sparse> terms;
    for (const auto& i : termsDict)
    {
        for (const auto& j : i.second)
        {
            terms.push_back(j.second);
        }
    }
    return terms;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1e8, %rsp            # imm = 0x1E8
movq %rdx, %r14
movq %rdi, -0x1b8(%rbp)
movq (%rsi), %rdx
movq %rsi, -0xf8(%rbp)
movq 0x8(%rsi), %rsi
movq %rsi, %rax
subq %rdx, %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rcx
movq %rcx, -0xa8(%rbp)
leaq -0x1d8(%rbp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
xorpd %xmm0, %xmm0
movupd %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movupd %xmm0, -0x8(%rax)
movq $0x0, -0x1a0(%rbp)
movq %rdx, -0x1c8(%rbp)
movq %rsi, -0x1c0(%rbp)
cmpq %rdx, %rsi
je 0x58dc
leaq -0x70(%rbp), %rbx
xorl %esi, %esi
leaq -0x208(%rbp), %r15
leaq -0xa0(%rbp), %r12
leaq -0x1a0(%rbp), %r13
shlq $0x3, %rsi
addq (%r14), %rsi
movq %r15, %rdi
callq 0x97d2
testq %rax, %rax
jne 0x588a
movq $0x0, -0x80(%rbp)
movq %rbx, -0xa0(%rbp)
movq $0x1, -0x98(%rbp)
xorpd %xmm0, %xmm0
movupd %xmm0, -0x20(%rbx)
movl $0x3f800000, -0x80(%rbp) # imm = 0x3F800000
movupd %xmm0, -0x8(%rbx)
movq -0x1a0(%rbp), %rsi
shlq $0x3, %rsi
addq (%r14), %rsi
movq %r15, %rdi
callq 0x9834
movq %rax, %rdi
movq %r12, %rsi
callq 0x2270
movq %r12, %rdi
callq 0x7e14
movq -0x1a0(%rbp), %rsi
shlq $0x3, %rsi
addq (%r14), %rsi
movq %r15, %rdi
callq 0x9834
movq %rax, -0xa0(%rbp)
movq %rax, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x83de
movq -0x1a0(%rbp), %rsi
incq %rsi
movq %rsi, -0x1a0(%rbp)
cmpq -0xa8(%rbp), %rsi
jb 0x581e
movq -0x1f8(%rbp), %r14
jmp 0x58df
xorl %r14d, %r14d
leaq -0x170(%rbp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
xorpd %xmm0, %xmm0
movupd %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movupd %xmm0, -0x8(%rax)
testq %r14, %r14
movq -0xa8(%rbp), %rbx
je 0x6051
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
leaq -0xa0(%rbp), %r13
leaq -0xe8(%rbp), %r12
addq $0x3f, %rax
movq %rax, -0x40(%rbp)
leaq -0x150(%rbp), %r15
movq 0x8(%r14), %rax
movq %rax, -0x30(%rbp)
movb $0x0, -0xa0(%rbp)
leaq -0x128(%rbp), %rdi
movq %rbx, %rsi
movq %r13, %rdx
movq %r12, %rcx
callq 0x7766
movq %r14, -0x100(%rbp)
movabsq $0x7fefffffffffffff, %rax # imm = 0x7FEFFFFFFFFFFFFF
movq %rax, -0xa0(%rbp)
leaq -0x168(%rbp), %rdi
movq %rbx, %rsi
movq %r13, %rdx
movq %r12, %rcx
callq 0x77cc
xorpd %xmm0, %xmm0
movapd %xmm0, -0x150(%rbp)
movq $0x0, -0x140(%rbp)
movq -0x30(%rbp), %rcx
movq -0xf8(%rbp), %rax
movq (%rax), %rax
leaq (%rcx,%rcx,2), %rdx
movq (%rax,%rdx,8), %rbx
movq 0x8(%rax,%rdx,8), %r14
cmpq %r14, %rbx
je 0x5a05
movq (%rbx), %rax
movsd 0x8(%rbx), %xmm0
movq -0x168(%rbp), %rcx
movsd %xmm0, (%rcx,%rax,8)
movq %rax, -0xa0(%rbp)
movsd %xmm0, -0x98(%rbp)
movq %r15, %rdi
leaq -0xa0(%rbp), %rsi
callq 0x7858
addq $0x10, %rbx
cmpq %r14, %rbx
jne 0x59c6
movq -0x30(%rbp), %rcx
movq -0x168(%rbp), %rax
movq $0x0, (%rax,%rcx,8)
leaq 0x3f(%rcx), %rax
testq %rcx, %rcx
cmovnsq %rcx, %rax
sarq $0x6, %rax
shlq $0x3, %rax
addq -0x128(%rbp), %rax
movq %rcx, %rdx
andq -0x40(%rbp), %rdx
xorl %esi, %esi
movabsq $-0x8000000000000000, %rbx # imm = 0x8000000000000000
cmpq %rbx, %rdx
setbe %sil
movl $0x1, %edx
shlq %cl, %rdx
orq %rdx, -0x8(%rax,%rsi,8)
xorpd %xmm0, %xmm0
movapd %xmm0, -0x60(%rbp)
movapd %xmm0, -0x70(%rbp)
movapd %xmm0, -0x80(%rbp)
movapd %xmm0, -0x90(%rbp)
movapd %xmm0, -0xa0(%rbp)
leaq -0xa0(%rbp), %rdi
xorl %esi, %esi
callq 0xa4c2
movq -0x150(%rbp), %rax
cmpq -0x148(%rbp), %rax
je 0x5fd3
movq -0x100(%rbp), %rcx
addq $0x10, %rcx
movq %rcx, -0x1d0(%rbp)
movl $0x1, %r14d
movq (%rax), %rcx
movq %rcx, -0xb0(%rbp)
movsd 0x8(%rax), %xmm0
movsd %xmm0, -0x48(%rbp)
movq %r15, %rdi
callq 0x78f8
movq -0xb0(%rbp), %rcx
leaq 0x3f(%rcx), %rax
testq %rcx, %rcx
cmovnsq %rcx, %rax
sarq $0x6, %rax
shlq $0x3, %rax
addq -0x128(%rbp), %rax
movq %rcx, %rsi
andq -0x40(%rbp), %rsi
xorl %edx, %edx
cmpq %rbx, %rsi
setbe %dl
movl $0x1, %esi
shlq %cl, %rsi
movq -0x8(%rax,%rdx,8), %rdi
btq %rcx, %rdi
jb 0x5fbf
leaq -0x8(,%rdx,8), %rcx
orq %rsi, %rdi
movq %rdi, (%rax,%rcx)
movq -0x90(%rbp), %rcx
movq -0x70(%rbp), %rax
cmpq %rcx, %rax
je 0x5b9d
movsd -0x48(%rbp), %xmm0
mulsd 0x54cf(%rip), %xmm0     # 0xb010
ucomisd (%rcx), %xmm0
jb 0x5b9d
movq -0x80(%rbp), %rdx
addq $-0x8, %rdx
cmpq %rdx, %rcx
je 0x5b5a
addq $0x8, %rcx
jmp 0x5b91
movq -0x88(%rbp), %rdi
movl $0x200, %esi            # imm = 0x200
callq 0x2170
movq -0x78(%rbp), %rcx
movq -0x70(%rbp), %rax
leaq 0x8(%rcx), %rdx
movq %rdx, -0x78(%rbp)
movq 0x8(%rcx), %rcx
movq %rcx, -0x88(%rbp)
leaq 0x200(%rcx), %rdx
movq %rdx, -0x80(%rbp)
movq %rcx, -0x90(%rbp)
incq %r14
jmp 0x5b2f
movq -0x1d0(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x9c6a
testq %rax, %rax
je 0x5be9
movq -0x70(%rbp), %rax
movq -0x60(%rbp), %rcx
addq $-0x8, %rcx
cmpq %rcx, %rax
je 0x5bd9
movsd -0x48(%rbp), %xmm0
movsd %xmm0, (%rax)
addq $0x8, %rax
movq %rax, -0x70(%rbp)
jmp 0x5be9
leaq -0xa0(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0xa64a
movq -0xb0(%rbp), %rcx
movq %rcx, -0x38(%rbp)
movq -0x30(%rbp), %rsi
movq -0x1a0(%rbp), %rdi
movq -0x198(%rbp), %r8
cmpq %rsi, %rcx
jae 0x5c5a
movq %rcx, %rax
xorl %edx, %edx
divq %r8
movq (%rdi,%rdx,8), %rax
testq %rax, %rax
leaq -0x1a0(%rbp), %rbx
je 0x5cb1
movq %rdx, %rsi
movq (%rax), %r9
cmpq 0x8(%r9), %rcx
je 0x5d0c
movq (%r9), %r9
testq %r9, %r9
je 0x5cb1
movq 0x8(%r9), %rdi
movq %rdi, %rax
xorl %edx, %edx
divq %r8
cmpq %rsi, %rdx
jne 0x5cb1
cmpq %rdi, %rcx
jne 0x5c37
jmp 0x5d0c
movq %rsi, %rax
xorl %edx, %edx
divq %r8
movq (%rdi,%rdx,8), %rax
testq %rax, %rax
leaq -0x1a0(%rbp), %rbx
je 0x5e02
movq %rdx, %rcx
movq (%rax), %r9
cmpq 0x8(%r9), %rsi
je 0x5e5d
movq (%r9), %r9
testq %r9, %r9
je 0x5e02
movq 0x8(%r9), %rdi
movq %rdi, %rax
xorl %edx, %edx
divq %r8
cmpq %rcx, %rdx
jne 0x5e02
cmpq %rdi, %rsi
jne 0x5c86
jmp 0x5e5d
movq $0x0, -0xc8(%rbp)
leaq -0xb8(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq $0x1, -0xe0(%rbp)
xorpd %xmm0, %xmm0
movupd %xmm0, -0x20(%rax)
movl $0x3f800000, -0xc8(%rbp) # imm = 0x3F800000
movupd %xmm0, -0x8(%rax)
movq %rbx, %rdi
leaq -0x38(%rbp), %rsi
callq 0x9ccc
movq %rax, %rdi
movq %r12, %rsi
callq 0x2334
movq %r12, %rdi
callq 0x7e9c
movq %rbx, %rdi
leaq -0x38(%rbp), %rsi
callq 0x9ccc
movq %rax, %rdi
leaq -0x30(%rbp), %rsi
callq 0x9fe6
movq %rax, %r13
movq %rbx, %rdi
leaq -0x38(%rbp), %rsi
callq 0x9ccc
testq %r13, %r13
jne 0x5d89
movq %rbx, %rdi
leaq -0x38(%rbp), %rsi
callq 0x9ccc
movq -0x38(%rbp), %rcx
movq -0x30(%rbp), %rdx
movsd -0x48(%rbp), %xmm0
leaq -0xb8(%rbp), %rsi
xorpd %xmm1, %xmm1
movupd %xmm1, -0x10(%rsi)
movq %rdx, -0xe8(%rbp)
movq %rcx, -0xe0(%rbp)
movq %rdx, -0xd8(%rbp)
movsd %xmm0, -0xd0(%rbp)
movq %rax, %rdi
movq %r12, %rsi
callq 0xa048
movq %r14, %xmm0
punpckldq 0x52ca(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x52d2(%rip), %xmm0     # 0xb070
movapd %xmm0, -0x1b0(%rbp)
movsd -0x48(%rbp), %xmm0
movsd %xmm0, -0xf0(%rbp)
movq %rbx, %rdi
leaq -0x38(%rbp), %rsi
callq 0x9ccc
movq %rax, %rdi
leaq -0x30(%rbp), %rsi
callq 0x9fe6
testq %rax, %rax
je 0x635e
movapd -0x1b0(%rbp), %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movsd -0xf0(%rbp), %xmm1
mulsd %xmm1, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x28(%rax)
jmp 0x5f4e
movq $0x0, -0xc8(%rbp)
leaq -0xb8(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq $0x1, -0xe0(%rbp)
xorpd %xmm0, %xmm0
movupd %xmm0, -0x20(%rax)
movl $0x3f800000, -0xc8(%rbp) # imm = 0x3F800000
movupd %xmm0, -0x8(%rax)
movq %rbx, %rdi
leaq -0x30(%rbp), %rsi
callq 0x9ccc
movq %rax, %rdi
movq %r12, %rsi
callq 0x2334
movq %r12, %rdi
callq 0x7e9c
movq %rbx, %rdi
leaq -0x30(%rbp), %rsi
callq 0x9ccc
movq %rax, %rdi
leaq -0x38(%rbp), %rsi
callq 0x9fe6
movq %rax, %r13
movq %rbx, %rdi
leaq -0x30(%rbp), %rsi
callq 0x9ccc
testq %r13, %r13
jne 0x5eda
movq %rbx, %rdi
leaq -0x30(%rbp), %rsi
callq 0x9ccc
movq -0x30(%rbp), %rcx
movq -0x38(%rbp), %rdx
movsd -0x48(%rbp), %xmm0
leaq -0xb8(%rbp), %rsi
xorpd %xmm1, %xmm1
movupd %xmm1, -0x10(%rsi)
movq %rdx, -0xe8(%rbp)
movq %rcx, -0xe0(%rbp)
movq %rdx, -0xd8(%rbp)
movsd %xmm0, -0xd0(%rbp)
movq %rax, %rdi
movq %r12, %rsi
callq 0xa048
movq %r14, %xmm0
punpckldq 0x5179(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x5181(%rip), %xmm0     # 0xb070
movapd %xmm0, -0x1b0(%rbp)
movsd -0x48(%rbp), %xmm0
movsd %xmm0, -0xf0(%rbp)
movq %rbx, %rdi
leaq -0x30(%rbp), %rsi
callq 0x9ccc
movq %rax, %rdi
leaq -0x38(%rbp), %rsi
callq 0x9fe6
testq %rax, %rax
je 0x635e
movapd -0x1b0(%rbp), %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movsd -0xf0(%rbp), %xmm1
mulsd %xmm1, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x30(%rax)
movq -0xb0(%rbp), %rax
movq -0xf8(%rbp), %rcx
movq (%rcx), %rcx
leaq (%rax,%rax,2), %rax
movq (%rcx,%rax,8), %rbx
movq 0x8(%rcx,%rax,8), %r13
cmpq %r13, %rbx
je 0x5fb5
movq (%rbx), %rax
movsd 0x8(%rbx), %xmm0
addsd -0x48(%rbp), %xmm0
movq -0x168(%rbp), %rcx
movsd (%rcx,%rax,8), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x5faf
movsd %xmm0, (%rcx,%rax,8)
movq %rax, -0xe8(%rbp)
movsd %xmm0, -0xe0(%rbp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x7858
addq $0x10, %rbx
jmp 0x5f6c
movabsq $-0x8000000000000000, %rbx # imm = 0x8000000000000000
movq -0x150(%rbp), %rax
cmpq -0x148(%rbp), %rax
jne 0x5ab2
leaq -0xa0(%rbp), %rdi
callq 0x8074
movq -0x150(%rbp), %rdi
testq %rdi, %rdi
je 0x5ffa
movq -0x140(%rbp), %rsi
subq %rdi, %rsi
callq 0x2170
movq -0x168(%rbp), %rdi
testq %rdi, %rdi
movq -0xa8(%rbp), %rbx
movq -0x100(%rbp), %r14
je 0x6023
movq -0x158(%rbp), %rsi
subq %rdi, %rsi
callq 0x2170
movq -0x128(%rbp), %rdi
testq %rdi, %rdi
je 0x603e
movq -0x108(%rbp), %rsi
subq %rdi, %rsi
callq 0x2170
movq (%r14), %r14
testq %r14, %r14
leaq -0xa0(%rbp), %r13
jne 0x593e
movq $0x0, -0xe8(%rbp)
movq -0x1c0(%rbp), %rax
cmpq -0x1c8(%rbp), %rax
je 0x62b4
xorl %eax, %eax
leaq -0x1a0(%rbp), %r14
leaq -0xe8(%rbp), %r15
movq -0xf8(%rbp), %rcx
movq (%rcx), %rcx
leaq (%rax,%rax,2), %rdx
movq (%rcx,%rdx,8), %rbx
movq 0x8(%rcx,%rdx,8), %r13
cmpq %r13, %rbx
je 0x629d
movq (%rbx), %rax
movsd 0x8(%rbx), %xmm0
movsd %xmm0, -0x40(%rbp)
movq %rax, -0x128(%rbp)
movq -0xe8(%rbp), %rcx
cmpq %rax, %rcx
jae 0x6289
movq -0x1a0(%rbp), %rdi
movq -0x198(%rbp), %r8
movq %rcx, %rax
xorl %edx, %edx
divq %r8
movq (%rdi,%rdx,8), %rax
testq %rax, %rax
je 0x610f
movq %rdx, %rsi
movq (%rax), %r9
cmpq 0x8(%r9), %rcx
je 0x6167
movq (%r9), %r9
testq %r9, %r9
je 0x610f
movq 0x8(%r9), %rdi
movq %rdi, %rax
xorl %edx, %edx
divq %r8
cmpq %rsi, %rdx
jne 0x610f
cmpq %rdi, %rcx
jne 0x60ef
jmp 0x6167
movq $0x0, -0x80(%rbp)
leaq -0x70(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq $0x1, -0x98(%rbp)
xorpd %xmm0, %xmm0
movupd %xmm0, -0x20(%rax)
movl $0x3f800000, -0x80(%rbp) # imm = 0x3F800000
movupd %xmm0, -0x8(%rax)
movq %r14, %rdi
movq %r15, %rsi
callq 0x9ccc
movq %rax, %rdi
leaq -0xa0(%rbp), %r12
movq %r12, %rsi
callq 0x2334
movq %r12, %rdi
callq 0x7e9c
movq %r14, %rdi
movq %r15, %rsi
callq 0x9ccc
movq %rax, %rdi
leaq -0x128(%rbp), %rsi
callq 0x9fe6
movq %rax, %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x9ccc
testq %r12, %r12
je 0x61c3
movq %r14, %rdi
movq %r15, %rsi
callq 0x9ccc
movq %rax, %rdi
leaq -0x128(%rbp), %rsi
callq 0x9fe6
testq %rax, %rax
je 0x6352
movsd -0x40(%rbp), %xmm0
movsd %xmm0, 0x20(%rax)
jmp 0x621a
movq %r14, %rdi
movq %r15, %rsi
callq 0x9ccc
movq -0xe8(%rbp), %rcx
movq -0x128(%rbp), %rdx
leaq -0x70(%rbp), %rsi
xorpd %xmm0, %xmm0
movupd %xmm0, -0x10(%rsi)
movq %rdx, -0xa0(%rbp)
movq %rcx, -0x98(%rbp)
movq %rdx, -0x90(%rbp)
movsd -0x40(%rbp), %xmm0
movsd %xmm0, -0x88(%rbp)
movq %rax, %rdi
leaq -0xa0(%rbp), %rsi
callq 0xa048
movq %r14, %rdi
movq %r15, %rsi
callq 0x9ccc
movq %rax, %rdi
leaq -0x128(%rbp), %rsi
callq 0x9fe6
testq %rax, %rax
je 0x6352
movsd -0x40(%rbp), %xmm1
mulsd %xmm1, %xmm1
movsd 0x4dba(%rip), %xmm0     # 0xb008
divsd %xmm1, %xmm0
movsd %xmm0, -0x40(%rbp)
movsd %xmm0, 0x30(%rax)
movq %r14, %rdi
movq %r15, %rsi
callq 0x9ccc
movq %rax, %rdi
leaq -0x128(%rbp), %rsi
callq 0x9fe6
testq %rax, %rax
je 0x6352
movsd -0x40(%rbp), %xmm0
movsd %xmm0, 0x28(%rax)
addq $0x10, %rbx
cmpq %r13, %rbx
jne 0x60a0
movq -0xe8(%rbp), %rax
incq %rax
movq %rax, -0xe8(%rbp)
cmpq -0xa8(%rbp), %rax
jb 0x6080
xorpd %xmm0, %xmm0
movq -0x1b8(%rbp), %r15
movupd %xmm0, (%r15)
movq $0x0, 0x10(%r15)
movq -0x190(%rbp), %rbx
testq %rbx, %rbx
je 0x6325
movq 0x20(%rbx), %r14
testq %r14, %r14
je 0x6320
leaq 0x10(%r14), %rdx
movq 0x8(%r15), %rsi
cmpq 0x10(%r15), %rsi
je 0x6313
movq 0x20(%rdx), %rax
movq %rax, 0x20(%rsi)
movupd (%rdx), %xmm0
movupd 0x10(%rdx), %xmm1
movupd %xmm1, 0x10(%rsi)
movupd %xmm0, (%rsi)
addq $0x28, %rsi
movq %rsi, 0x8(%r15)
jmp 0x631b
movq %r15, %rdi
callq 0xa306
movq (%r14), %r14
jmp 0x62dc
movq (%rbx), %rbx
jmp 0x62d3
leaq -0x1a0(%rbp), %rdi
callq 0x7f24
leaq -0x208(%rbp), %rdi
callq 0x7fcc
movq %r15, %rax
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4fa8(%rip), %rdi      # 0xb301
callq 0x21b0
leaq 0x4f9c(%rip), %rdi      # 0xb301
callq 0x21b0
jmp 0x63d1
movq %rax, %r14
leaq -0xa0(%rbp), %rdi
callq 0x7e14
jmp 0x6496
jmp 0x6407
jmp 0x6410
movq %rax, %r14
jmp 0x645a
jmp 0x6398
jmp 0x6415
jmp 0x6415
movq %rax, %r14
jmp 0x6496
jmp 0x63a6
jmp 0x63d1
jmp 0x63d1
movq %rax, %r14
leaq -0xe8(%rbp), %rdi
callq 0x7e9c
jmp 0x6418
jmp 0x6410
jmp 0x6415
jmp 0x6415
movq %rax, %r14
leaq -0xa0(%rbp), %rdi
callq 0x7e9c
jmp 0x648a
movq %rax, %rdi
callq 0x7da0
movq %rax, %r14
movq (%r15), %rdi
testq %rdi, %rdi
je 0x648a
movq 0x10(%r15), %rsi
subq %rdi, %rsi
callq 0x2170
jmp 0x648a
jmp 0x6415
jmp 0x6415
jmp 0x6415
jmp 0x6415
jmp 0x6410
jmp 0x6415
jmp 0x6410
movq %rax, %r14
jmp 0x6424
jmp 0x6415
jmp 0x6410
movq %rax, %r14
jmp 0x648a
movq %rax, %r14
leaq -0xa0(%rbp), %rdi
callq 0x8074
movq -0x150(%rbp), %rdi
testq %rdi, %rdi
je 0x643f
movq -0x140(%rbp), %rsi
subq %rdi, %rsi
callq 0x2170
movq -0x168(%rbp), %rdi
testq %rdi, %rdi
je 0x645a
movq -0x158(%rbp), %rsi
subq %rdi, %rsi
callq 0x2170
movq -0x128(%rbp), %rdi
testq %rdi, %rdi
je 0x648a
movq -0x108(%rbp), %rsi
subq %rdi, %rsi
callq 0x2170
movq $0x0, -0x128(%rbp)
movl $0x0, -0x120(%rbp)
leaq -0x1a0(%rbp), %rdi
callq 0x7f24
leaq -0x208(%rbp), %rdi
callq 0x7fcc
movq %r14, %rdi
callq 0x2230