// File: /workspace/github_cpp_makefile_star2_O1/ekg[P]sgd2/src/sgd2.hpp
// Function: sgd2::MSSP_unweighted(std::vector<std::vector<unsigned long, std::allocator<unsigned long>>, std::allocator<std::vector<unsigned long, std::allocator<unsigned long>>>> const&, std::vector<unsigned long, std::allocator<unsigned long>> const&)
std::vector<term_sparse> MSSP_unweighted(const std::vector<std::vector<uint64_t>>& 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)
    {
        // q contains next to visit
        std::queue<uint64_t> q;
        std::vector<uint64_t> d(n, -1);

        uint64_t p = region.first;
        q.push(p);
        d[p] = 0;

        // q2 contains visited vertices' distances for s calculation
        std::queue<uint64_t> q2;
        uint64_t s = 0;
        q2.push(0);

        while (!q.empty())
        {
            uint64_t current = q.front();
            q.pop();

            for (uint64_t next : graph[current])
            {
                if (d[next] == -1)
                {
                    q.push(next);
                    d[next] = d[current] + 1;

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

                    uint64_t i = next;
                    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[next]) });

                        termsDict[i].at(p).w_ij = s / ((double)d[next] * d[next]);
                    }
                    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[next]) });

                        termsDict[p].at(i).w_ji = s / ((double)d[next] * d[next]);
                    }
                }
            }
        }
    }
    // 1-stress
    for (uint64_t i=0; i<n; i++)
    {
        for (uint64_t j : graph[i])
        {
            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, 1) });
                else
                    termsDict[i].at(j).d = 1;

                termsDict[i].at(j).w_ij = termsDict[i].at(j).w_ji = 1;
            }
        }
    }
    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 $0x1d8, %rsp            # imm = 0x1D8
movq %rdx, %r14
movq %rdi, -0x178(%rbp)
movq (%rsi), %rdx
movq %rsi, -0x158(%rbp)
movq 0x8(%rsi), %rsi
movq %rsi, %rax
subq %rdx, %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rcx
movq %rcx, -0x100(%rbp)
leaq -0x1c8(%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, -0x150(%rbp)
movq %rdx, -0x188(%rbp)
movq %rsi, -0x180(%rbp)
cmpq %rdx, %rsi
je 0x48e4
leaq -0xa0(%rbp), %rbx
xorl %r8d, %r8d
leaq -0x1f8(%rbp), %r15
leaq -0xd0(%rbp), %r12
movq (%r14), %r9
movq (%r9,%r8,8), %rcx
movq -0x1f8(%rbp), %rdi
movq -0x1f0(%rbp), %r10
movq %rcx, %rax
xorl %edx, %edx
divq %r10
movq %rdx, %rsi
movq (%rdi,%rdx,8), %rdx
movl $0x0, %eax
testq %rdx, %rdx
je 0x4820
movq (%rdx), %r11
movq %rdx, %rax
cmpq 0x8(%r11), %rcx
je 0x4820
movq %r11, %r13
movq (%r11), %r11
testq %r11, %r11
je 0x481e
movq 0x8(%r11), %rdi
movq %rdi, %rax
xorl %edx, %edx
divq %r10
movl $0x0, %eax
cmpq %rsi, %rdx
jne 0x4820
movq %r13, %rax
cmpq %rdi, %rcx
jne 0x47f3
jmp 0x4820
xorl %eax, %eax
testq %rax, %rax
je 0x482b
cmpq $0x0, (%rax)
jne 0x4897
leaq (%r9,%r8,8), %rsi
xorpd %xmm0, %xmm0
movapd %xmm0, -0xd0(%rbp)
movapd %xmm0, -0xb0(%rbp)
movapd %xmm0, -0xc0(%rbp)
movq $0x0, -0xa0(%rbp)
movq %rbx, -0xd0(%rbp)
movq $0x1, -0xc8(%rbp)
movupd %xmm0, -0x20(%rbx)
movl $0x3f800000, -0xb0(%rbp) # imm = 0x3F800000
movupd %xmm0, -0x8(%rbx)
movq %r15, %rdi
callq 0x9ee6
movq %rax, %rdi
movq %r12, %rsi
callq 0x2280
movq %r12, %rdi
callq 0x8530
movq -0x150(%rbp), %rsi
shlq $0x3, %rsi
addq (%r14), %rsi
movq %r15, %rdi
callq 0x9ee6
movq %rax, -0xd0(%rbp)
movq %rax, %rdi
leaq -0x150(%rbp), %rsi
movq %r12, %rdx
callq 0x8ade
movq -0x150(%rbp), %r8
incq %r8
movq %r8, -0x150(%rbp)
cmpq -0x100(%rbp), %r8
jb 0x47b9
leaq -0x190(%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 -0x1e8(%rbp), %rax
movq %rax, -0xd8(%rbp)
testq %rax, %rax
je 0x51e9
leaq -0xd0(%rbp), %rbx
leaq -0x150(%rbp), %r15
leaq -0x80(%rbp), %r12
leaq -0x1c0(%rbp), %r14
xorpd %xmm0, %xmm0
movapd %xmm0, -0x90(%rbp)
movapd %xmm0, -0xa0(%rbp)
movapd %xmm0, -0xb0(%rbp)
movapd %xmm0, -0xc0(%rbp)
movapd %xmm0, -0xd0(%rbp)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x8eec
movq $-0x1, -0x150(%rbp)
leaq -0xf8(%rbp), %rdi
movq -0x100(%rbp), %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x7c2e
movq -0xd8(%rbp), %rax
movq 0x8(%rax), %rcx
movq %rcx, -0x30(%rbp)
movq -0xa0(%rbp), %rax
movq -0x90(%rbp), %rdx
addq $-0x8, %rdx
cmpq %rdx, %rax
je 0x49cc
movq %rcx, (%rax)
addq $0x8, %rax
movq %rax, -0xa0(%rbp)
jmp 0x49d8
movq %rbx, %rdi
leaq -0x30(%rbp), %rsi
callq 0x9074
movq -0x30(%rbp), %rax
movq -0xf8(%rbp), %rcx
movq $0x0, (%rcx,%rax,8)
xorpd %xmm0, %xmm0
movapd %xmm0, -0x110(%rbp)
movapd %xmm0, -0x120(%rbp)
movapd %xmm0, -0x130(%rbp)
movapd %xmm0, -0x140(%rbp)
movapd %xmm0, -0x150(%rbp)
movq %r15, %rdi
xorl %esi, %esi
callq 0x8eec
movq $0x0, -0x80(%rbp)
movq %r15, %rdi
movq %r12, %rsi
callq 0xa1ee
movq -0xc0(%rbp), %rax
cmpq %rax, -0xa0(%rbp)
je 0x5196
xorl %r15d, %r15d
movq (%rax), %rcx
movq %rcx, -0xe0(%rbp)
movq -0xb0(%rbp), %rcx
addq $-0x8, %rcx
cmpq %rcx, %rax
je 0x4a6b
addq $0x8, %rax
jmp 0x4aa7
movq -0xb8(%rbp), %rdi
movl $0x200, %esi            # imm = 0x200
callq 0x2180
movq -0xa8(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0xa8(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0xb8(%rbp)
leaq 0x200(%rax), %rcx
movq %rcx, -0xb0(%rbp)
movq %rax, -0xc0(%rbp)
movq -0x158(%rbp), %rax
movq (%rax), %rax
movq -0xe0(%rbp), %rcx
leaq (%rcx,%rcx,2), %rcx
movq (%rax,%rcx,8), %r12
movq 0x8(%rax,%rcx,8), %r13
cmpq %r13, %r12
je 0x517e
movq (%r12), %rax
movq %rax, -0x38(%rbp)
movq -0xf8(%rbp), %rcx
cmpq $-0x1, (%rcx,%rax,8)
jne 0x5175
movq -0xa0(%rbp), %rcx
movq -0x90(%rbp), %rdx
addq $-0x8, %rdx
cmpq %rdx, %rcx
je 0x4b16
movq %rax, (%rcx)
addq $0x8, %rcx
movq %rcx, -0xa0(%rbp)
jmp 0x4b26
leaq -0xd0(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x9074
movq -0xf8(%rbp), %rax
movq -0xe0(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
incq %rcx
movq -0x38(%rbp), %rdx
movq %rcx, (%rax,%rdx,8)
movq -0x140(%rbp), %rax
movq -0x120(%rbp), %r8
cmpq %rax, %r8
je 0x4c02
movq -0x38(%rbp), %rcx
movq -0xf8(%rbp), %rdx
movq (%rdx,%rcx,8), %rcx
shrq %rcx
cmpq %rcx, (%rax)
ja 0x4c02
incq %r15
movq %r15, %rcx
movq %rcx, %r15
movq -0x130(%rbp), %rcx
addq $-0x8, %rcx
cmpq %rcx, %rax
je 0x4b94
addq $0x8, %rax
jmp 0x4bd0
movq -0x138(%rbp), %rdi
movl $0x200, %esi            # imm = 0x200
callq 0x2180
movq -0x128(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x128(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x138(%rbp)
leaq 0x200(%rax), %rcx
movq %rcx, -0x130(%rbp)
movq %rax, -0x140(%rbp)
movq -0x120(%rbp), %r8
cmpq %rax, %r8
je 0x4c02
movq -0x38(%rbp), %rcx
movq -0xf8(%rbp), %rdx
movq (%rdx,%rcx,8), %rdx
shrq %rdx
leaq 0x1(%r15), %rcx
cmpq %rdx, (%rax)
jbe 0x4b7b
movq -0x38(%rbp), %rsi
movq -0xd8(%rbp), %rax
movq 0x10(%rax), %rdi
movq 0x18(%rax), %r9
movq %rsi, %rax
xorl %edx, %edx
divq %r9
movq %rdx, %rcx
movq (%rdi,%rdx,8), %rdx
movl $0x0, %eax
testq %rdx, %rdx
je 0x4c67
movq (%rdx), %r10
movq %rdx, %rax
cmpq 0x8(%r10), %rsi
je 0x4c67
movq %r10, %r11
movq (%r10), %r10
testq %r10, %r10
je 0x4c65
movq 0x8(%r10), %rdi
movq %rdi, %rax
xorl %edx, %edx
divq %r9
movl $0x0, %eax
cmpq %rcx, %rdx
jne 0x4c67
movq %r11, %rax
cmpq %rdi, %rsi
jne 0x4c3a
jmp 0x4c67
xorl %eax, %eax
testq %rax, %rax
je 0x4cac
cmpq $0x0, (%rax)
je 0x4cac
shlq $0x3, %rsi
addq -0xf8(%rbp), %rsi
movq -0x110(%rbp), %rax
addq $-0x8, %rax
cmpq %rax, %r8
je 0x4ca0
movq (%rsi), %rax
movq %rax, (%r8)
addq $0x8, %r8
movq %r8, -0x120(%rbp)
jmp 0x4cac
leaq -0x150(%rbp), %rdi
callq 0x9074
movq -0x38(%rbp), %rcx
movq %rcx, -0x40(%rbp)
movq -0x30(%rbp), %rsi
movq -0x1c0(%rbp), %rdi
movq -0x1b8(%rbp), %r8
cmpq %rsi, %rcx
jae 0x4d27
movq %rcx, %rax
xorl %edx, %edx
divq %r8
movq %rdx, %rsi
movq (%rdi,%rdx,8), %rdx
movl $0x0, %eax
testq %rdx, %rdx
je 0x4d8c
movq (%rdx), %r9
movq %rdx, %rax
cmpq 0x8(%r9), %rcx
je 0x4d8c
movq %r9, %r10
movq (%r9), %r9
testq %r9, %r9
je 0x4d8a
movq 0x8(%r9), %rdi
movq %rdi, %rax
xorl %edx, %edx
divq %r8
movl $0x0, %eax
cmpq %rsi, %rdx
jne 0x4d8c
movq %r10, %rax
cmpq %rdi, %rcx
jne 0x4cf8
jmp 0x4d8c
movq %rsi, %rax
xorl %edx, %edx
divq %r8
movq %rdx, %rcx
movq (%rdi,%rdx,8), %rdx
movl $0x0, %eax
testq %rdx, %rdx
je 0x4e72
movq (%rdx), %r9
movq %rdx, %rax
cmpq 0x8(%r9), %rsi
je 0x4e72
movq %r9, %r10
movq (%r9), %r9
testq %r9, %r9
je 0x4e70
movq 0x8(%r9), %rdi
movq %rdi, %rax
xorl %edx, %edx
divq %r8
movl $0x0, %eax
cmpq %rcx, %rdx
jne 0x4e72
movq %r10, %rax
cmpq %rdi, %rsi
jne 0x4d54
jmp 0x4e72
xorl %eax, %eax
testq %rax, %rax
je 0x4d97
cmpq $0x0, (%rax)
jne 0x4df6
xorpd %xmm0, %xmm0
movapd %xmm0, -0x80(%rbp)
movapd %xmm0, -0x60(%rbp)
movapd %xmm0, -0x70(%rbp)
movq $0x0, -0x50(%rbp)
leaq -0x50(%rbp), %rax
movq %rax, -0x80(%rbp)
movq $0x1, -0x78(%rbp)
movupd %xmm0, -0x20(%rax)
movl $0x3f800000, -0x60(%rbp) # imm = 0x3F800000
movupd %xmm0, -0x8(%rax)
movq %r14, %rdi
leaq -0x40(%rbp), %rsi
callq 0xa358
movq %rax, %rdi
leaq -0x80(%rbp), %rbx
movq %rbx, %rsi
callq 0x234a
movq %rbx, %rdi
callq 0x85b8
movq %r14, %rdi
leaq -0x40(%rbp), %rsi
callq 0xa358
movq -0x30(%rbp), %rcx
movq (%rax), %rdi
movq 0x8(%rax), %r8
movq %rcx, %rax
xorl %edx, %edx
divq %r8
movq %rdx, %rsi
movq (%rdi,%rdx,8), %rdx
movl $0x0, %eax
testq %rdx, %rdx
je 0x4f58
movq (%rdx), %r9
movq %rdx, %rax
cmpq 0x8(%r9), %rcx
je 0x4f58
movq %r9, %r10
movq (%r9), %r9
testq %r9, %r9
je 0x4f56
movq 0x8(%r9), %rdi
movq %rdi, %rax
xorl %edx, %edx
divq %r8
movl $0x0, %eax
cmpq %rsi, %rdx
jne 0x4f58
movq %r10, %rax
cmpq %rdi, %rcx
jne 0x4e3a
jmp 0x4f58
xorl %eax, %eax
testq %rax, %rax
je 0x4e7d
cmpq $0x0, (%rax)
jne 0x4edc
xorpd %xmm0, %xmm0
movapd %xmm0, -0x80(%rbp)
movapd %xmm0, -0x60(%rbp)
movapd %xmm0, -0x70(%rbp)
movq $0x0, -0x50(%rbp)
leaq -0x50(%rbp), %rax
movq %rax, -0x80(%rbp)
movq $0x1, -0x78(%rbp)
movupd %xmm0, -0x20(%rax)
movl $0x3f800000, -0x60(%rbp) # imm = 0x3F800000
movupd %xmm0, -0x8(%rax)
movq %r14, %rdi
leaq -0x30(%rbp), %rsi
callq 0xa358
movq %rax, %rdi
leaq -0x80(%rbp), %rbx
movq %rbx, %rsi
callq 0x234a
movq %rbx, %rdi
callq 0x85b8
movq %r14, %rdi
leaq -0x30(%rbp), %rsi
callq 0xa358
movq -0x40(%rbp), %rcx
movq (%rax), %rdi
movq 0x8(%rax), %r8
movq %rcx, %rax
xorl %edx, %edx
divq %r8
movq %rdx, %rsi
movq (%rdi,%rdx,8), %rdx
movl $0x0, %eax
testq %rdx, %rdx
je 0x506a
movq (%rdx), %r9
movq %rdx, %rax
cmpq 0x8(%r9), %rcx
je 0x506a
movq %r9, %r10
movq (%r9), %r9
testq %r9, %r9
je 0x5068
movq 0x8(%r9), %rdi
movq %rdi, %rax
xorl %edx, %edx
divq %r8
movl $0x0, %eax
cmpq %rsi, %rdx
jne 0x506a
movq %r10, %rax
cmpq %rdi, %rcx
jne 0x4f20
jmp 0x506a
xorl %eax, %eax
testq %rax, %rax
je 0x4f66
cmpq $0x0, (%rax)
sete %bl
jmp 0x4f68
movb $0x1, %bl
movq %r14, %rdi
leaq -0x40(%rbp), %rsi
callq 0xa358
testb %bl, %bl
je 0x4fe1
movq %r14, %rdi
leaq -0x40(%rbp), %rsi
callq 0xa358
movq -0x40(%rbp), %rcx
movq -0x30(%rbp), %rdx
movq -0x38(%rbp), %rsi
movq -0xf8(%rbp), %rdi
movsd (%rdi,%rsi,8), %xmm0
unpcklps 0x60bd(%rip), %xmm0     # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x60c5(%rip), %xmm0     # 0xb070
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
leaq -0x50(%rbp), %rsi
xorpd %xmm0, %xmm0
movupd %xmm0, -0x10(%rsi)
movq %rdx, -0x80(%rbp)
movq %rcx, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movsd %xmm1, -0x68(%rbp)
movq %rax, %rdi
leaq -0x80(%rbp), %rsi
callq 0xa6ae
movq -0x38(%rbp), %rax
movq -0xf8(%rbp), %rcx
movsd (%rcx,%rax,8), %xmm0
movapd %xmm0, -0x170(%rbp)
movq %r14, %rdi
leaq -0x40(%rbp), %rsi
callq 0xa358
movq %rax, %rdi
leaq -0x30(%rbp), %rsi
callq 0xa976
movq %r15, %xmm0
movq 0x6042(%rip), %xmm2     # 0xb060
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
movapd 0x6046(%rip), %xmm3     # 0xb070
subpd %xmm3, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movdqa -0x170(%rbp), %xmm4
punpckldq %xmm2, %xmm4    # xmm4 = xmm4[0],xmm2[0],xmm4[1],xmm2[1]
subpd %xmm3, %xmm4
movapd %xmm4, %xmm0
unpckhpd %xmm4, %xmm0            # xmm0 = xmm0[1],xmm4[1]
addsd %xmm4, %xmm0
mulsd %xmm0, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, 0x18(%rax)
jmp 0x5175
xorl %eax, %eax
testq %rax, %rax
je 0x5078
cmpq $0x0, (%rax)
sete %bl
jmp 0x507a
movb $0x1, %bl
movq %r14, %rdi
leaq -0x30(%rbp), %rsi
callq 0xa358
testb %bl, %bl
je 0x50f3
movq %r14, %rdi
leaq -0x30(%rbp), %rsi
callq 0xa358
movq -0x30(%rbp), %rcx
movq -0x40(%rbp), %rdx
movq -0x38(%rbp), %rsi
movq -0xf8(%rbp), %rdi
movsd (%rdi,%rsi,8), %xmm0
unpcklps 0x5fab(%rip), %xmm0     # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x5fb3(%rip), %xmm0     # 0xb070
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
leaq -0x50(%rbp), %rsi
xorpd %xmm0, %xmm0
movupd %xmm0, -0x10(%rsi)
movq %rdx, -0x80(%rbp)
movq %rcx, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movsd %xmm1, -0x68(%rbp)
movq %rax, %rdi
leaq -0x80(%rbp), %rsi
callq 0xa6ae
movq -0x38(%rbp), %rax
movq -0xf8(%rbp), %rcx
movsd (%rcx,%rax,8), %xmm0
movapd %xmm0, -0x170(%rbp)
movq %r14, %rdi
leaq -0x30(%rbp), %rsi
callq 0xa358
movq %rax, %rdi
leaq -0x40(%rbp), %rsi
callq 0xa976
movq %r15, %xmm0
movq 0x5f30(%rip), %xmm2     # 0xb060
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
movapd 0x5f34(%rip), %xmm3     # 0xb070
subpd %xmm3, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movdqa -0x170(%rbp), %xmm4
punpckldq %xmm2, %xmm4    # xmm4 = xmm4[0],xmm2[0],xmm4[1],xmm2[1]
subpd %xmm3, %xmm4
movapd %xmm4, %xmm0
unpckhpd %xmm4, %xmm0            # xmm0 = xmm0[1],xmm4[1]
addsd %xmm4, %xmm0
mulsd %xmm0, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, 0x20(%rax)
addq $0x8, %r12
jmp 0x4acc
movq -0xc0(%rbp), %rax
cmpq %rax, -0xa0(%rbp)
leaq -0x80(%rbp), %r12
jne 0x4a4b
leaq -0x150(%rbp), %r15
movq %r15, %rdi
callq 0x84d6
movq -0xf8(%rbp), %rdi
testq %rdi, %rdi
je 0x51c0
movq -0xe8(%rbp), %rsi
subq %rdi, %rsi
callq 0x2180
leaq -0xd0(%rbp), %rbx
movq %rbx, %rdi
callq 0x84d6
movq -0xd8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xd8(%rbp)
testq %rax, %rax
jne 0x493c
movq $0x0, -0x150(%rbp)
movq -0x180(%rbp), %rax
cmpq -0x188(%rbp), %rax
je 0x54bb
xorl %eax, %eax
leaq -0x1c0(%rbp), %r14
leaq -0x150(%rbp), %r15
leaq -0xd0(%rbp), %r13
movq -0x158(%rbp), %rcx
movq (%rcx), %rcx
leaq (%rax,%rax,2), %rax
movq (%rcx,%rax,8), %rbx
movq 0x8(%rcx,%rax,8), %rax
movq %rax, -0xe0(%rbp)
cmpq %rax, %rbx
je 0x549d
movq (%rbx), %rax
movq %rax, -0x80(%rbp)
movq -0x150(%rbp), %rcx
cmpq %rax, %rcx
jae 0x548c
movq -0x1c0(%rbp), %rdi
movq -0x1b8(%rbp), %r8
movq %rcx, %rax
xorl %edx, %edx
divq %r8
movq %rdx, %rsi
movq (%rdi,%rdx,8), %rdx
movl $0x0, %eax
testq %rdx, %rdx
je 0x52bd
movq (%rdx), %r9
movq %rdx, %rax
cmpq 0x8(%r9), %rcx
je 0x52bd
movq %r9, %r10
movq (%r9), %r9
testq %r9, %r9
je 0x52bb
movq 0x8(%r9), %rdi
movq %rdi, %rax
xorl %edx, %edx
divq %r8
movl $0x0, %eax
cmpq %rsi, %rdx
jne 0x52bd
movq %r10, %rax
cmpq %rdi, %rcx
jne 0x5290
jmp 0x52bd
xorl %eax, %eax
testq %rax, %rax
je 0x52c8
cmpq $0x0, (%rax)
jne 0x533a
xorpd %xmm0, %xmm0
movapd %xmm0, -0xd0(%rbp)
movapd %xmm0, -0xb0(%rbp)
movapd %xmm0, -0xc0(%rbp)
movq $0x0, -0xa0(%rbp)
leaq -0xa0(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq $0x1, -0xc8(%rbp)
movupd %xmm0, -0x20(%rax)
movl $0x3f800000, -0xb0(%rbp) # imm = 0x3F800000
movupd %xmm0, -0x8(%rax)
movq %r14, %rdi
movq %r15, %rsi
callq 0xa358
movq %rax, %rdi
movq %r13, %rsi
callq 0x234a
movq %r13, %rdi
callq 0x85b8
movq %r14, %rdi
movq %r15, %rsi
callq 0xa358
movq -0x80(%rbp), %rcx
movq (%rax), %rdi
movq 0x8(%rax), %r8
movq %rcx, %rax
xorl %edx, %edx
divq %r8
movq %rdx, %rsi
movq (%rdi,%rdx,8), %rdx
movl $0x0, %eax
testq %rdx, %rdx
je 0x53a2
movq (%rdx), %r9
movq %rdx, %rax
cmpq 0x8(%r9), %rcx
je 0x53a2
movq %r9, %r10
movq (%r9), %r9
testq %r9, %r9
je 0x53a0
movq 0x8(%r9), %rdi
movq %rdi, %rax
xorl %edx, %edx
divq %r8
movl $0x0, %eax
cmpq %rsi, %rdx
jne 0x53a2
movq %r10, %rax
cmpq %rdi, %rcx
jne 0x5375
jmp 0x53a2
xorl %eax, %eax
testq %rax, %rax
je 0x53b1
cmpq $0x0, (%rax)
sete %r12b
jmp 0x53b4
movb $0x1, %r12b
movq %r14, %rdi
movq %r15, %rsi
callq 0xa358
testb %r12b, %r12b
je 0x541d
movq %r14, %rdi
movq %r15, %rsi
callq 0xa358
movq -0x150(%rbp), %rcx
movq -0x80(%rbp), %rdx
leaq -0xa0(%rbp), %rsi
xorpd %xmm0, %xmm0
movupd %xmm0, -0x10(%rsi)
movq %rdx, -0xd0(%rbp)
movq %rcx, -0xc8(%rbp)
movq %rdx, -0xc0(%rbp)
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, -0xb8(%rbp)
movq %rax, %rdi
movq %r13, %rsi
callq 0xa6ae
jmp 0x5442
movq %r14, %rdi
movq %r15, %rsi
callq 0xa358
movq %rax, %rdi
leaq -0x80(%rbp), %rsi
callq 0xa976
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, 0x10(%rax)
movq %r14, %rdi
movq %r15, %rsi
callq 0xa358
movq %rax, %rdi
leaq -0x80(%rbp), %rsi
callq 0xa976
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, 0x20(%rax)
movq %r14, %rdi
movq %r15, %rsi
callq 0xa358
movq %rax, %rdi
leaq -0x80(%rbp), %rsi
callq 0xa976
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, 0x18(%rax)
addq $0x8, %rbx
cmpq -0xe0(%rbp), %rbx
jne 0x5246
movq -0x150(%rbp), %rax
incq %rax
movq %rax, -0x150(%rbp)
cmpq -0x100(%rbp), %rax
jb 0x521f
xorpd %xmm0, %xmm0
movq -0x178(%rbp), %r15
movupd %xmm0, (%r15)
movq $0x0, 0x10(%r15)
movq -0x1b0(%rbp), %rbx
testq %rbx, %rbx
je 0x552c
movq 0x20(%rbx), %r14
testq %r14, %r14
je 0x5527
leaq 0x10(%r14), %rdx
movq 0x8(%r15), %rsi
cmpq 0x10(%r15), %rsi
je 0x551a
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 0x5522
movq %r15, %rdi
callq 0xa9c2
movq (%r14), %r14
jmp 0x54e3
movq (%rbx), %rbx
jmp 0x54da
leaq -0x1c0(%rbp), %rdi
callq 0x8640
leaq -0x1f8(%rbp), %rdi
callq 0x86e8
movq %r15, %rax
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5571
movq %rax, %r14
leaq -0xd0(%rbp), %rdi
callq 0x8530
jmp 0x5631
jmp 0x55d8
movq %rax, %r14
jmp 0x55fe
jmp 0x55ef
jmp 0x55e0
movq %rax, %r14
jmp 0x5619
movq %rax, %r14
jmp 0x5631
jmp 0x55e0
jmp 0x55d8
movq %rax, %r14
leaq -0xd0(%rbp), %rdi
callq 0x85b8
jmp 0x5625
movq %rax, %r14
movq (%r15), %rdi
testq %rdi, %rdi
je 0x5625
movq 0x10(%r15), %rsi
subq %rdi, %rsi
callq 0x2180
jmp 0x5625
jmp 0x55e0
jmp 0x55e0
jmp 0x55ef
jmp 0x55ef
jmp 0x55d8
jmp 0x55ca
movq %rax, %r14
leaq -0x80(%rbp), %rdi
callq 0x85b8
jmp 0x55f2
movq %rax, %rdi
callq 0x84c7
movq %rax, %r14
jmp 0x5625
jmp 0x55ef
jmp 0x55ef
jmp 0x55ef
jmp 0x55ef
jmp 0x55ef
movq %rax, %r14
leaq -0x150(%rbp), %rdi
callq 0x84d6
movq -0xf8(%rbp), %rdi
testq %rdi, %rdi
je 0x5619
movq -0xe8(%rbp), %rsi
subq %rdi, %rsi
callq 0x2180
leaq -0xd0(%rbp), %rdi
callq 0x84d6
leaq -0x1c0(%rbp), %rdi
callq 0x8640
leaq -0x1f8(%rbp), %rdi
callq 0x86e8
movq %r14, %rdi
callq 0x2240