// File: /workspace/github_cpp_makefile_star2_O3/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, %rbx
movq %rdi, -0x178(%rbp)
movq (%rsi), %rdx
movq %rsi, -0x150(%rbp)
movq 0x8(%rsi), %rsi
movq %rsi, %rax
subq %rdx, %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rcx
movq %rcx, -0xf0(%rbp)
leaq -0x1d0(%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, -0x140(%rbp)
movq %rdx, -0x188(%rbp)
movq %rsi, -0x180(%rbp)
cmpq %rdx, %rsi
je 0x46db
leaq -0xa0(%rbp), %r13
xorl %esi, %esi
leaq -0x200(%rbp), %r14
leaq -0xd0(%rbp), %r15
leaq -0x140(%rbp), %r12
shlq $0x3, %rsi
addq (%rbx), %rsi
movq %r14, %rdi
callq 0x97d2
testq %rax, %rax
jne 0x4689
movq $0x0, -0xb0(%rbp)
movq %r13, -0xd0(%rbp)
movq $0x1, -0xc8(%rbp)
xorpd %xmm0, %xmm0
movupd %xmm0, -0x20(%r13)
movl $0x3f800000, -0xb0(%rbp) # imm = 0x3F800000
movupd %xmm0, -0x8(%r13)
movq -0x140(%rbp), %rsi
shlq $0x3, %rsi
addq (%rbx), %rsi
movq %r14, %rdi
callq 0x9834
movq %rax, %rdi
movq %r15, %rsi
callq 0x2270
movq %r15, %rdi
callq 0x7e14
movq -0x140(%rbp), %rsi
shlq $0x3, %rsi
addq (%rbx), %rsi
movq %r14, %rdi
callq 0x9834
movq %rax, -0xd0(%rbp)
movq %rax, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x83de
movq -0x140(%rbp), %rsi
incq %rsi
movq %rsi, -0x140(%rbp)
cmpq -0xf0(%rbp), %rsi
jb 0x4615
movq -0x1f0(%rbp), %rbx
jmp 0x46dd
xorl %ebx, %ebx
leaq -0x198(%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 %rbx, %rbx
je 0x4e38
leaq -0xd0(%rbp), %r14
leaq -0x140(%rbp), %r15
leaq -0x78(%rbp), %r13
leaq -0x1c8(%rbp), %r12
xorpd %xmm0, %xmm0
movapd %xmm0, -0x90(%rbp)
movapd %xmm0, -0xa0(%rbp)
movapd %xmm0, -0xb0(%rbp)
movapd %xmm0, -0xc0(%rbp)
movapd %xmm0, -0xd0(%rbp)
movq %r14, %rdi
xorl %esi, %esi
callq 0x8802
movq $-0x1, -0x140(%rbp)
leaq -0xe8(%rbp), %rdi
movq -0xf0(%rbp), %rsi
movq %r15, %rdx
movq %r13, %rcx
callq 0x7508
movq 0x8(%rbx), %rcx
movq %rcx, -0x30(%rbp)
movq -0xa0(%rbp), %rax
movq -0x90(%rbp), %rdx
addq $-0x8, %rdx
cmpq %rdx, %rax
je 0x47b0
movq %rcx, (%rax)
addq $0x8, %rax
movq %rax, -0xa0(%rbp)
jmp 0x47bc
movq %r14, %rdi
leaq -0x30(%rbp), %rsi
callq 0x898a
movq -0x30(%rbp), %rax
movq -0xe8(%rbp), %rcx
movq $0x0, (%rcx,%rax,8)
xorpd %xmm0, %xmm0
movapd %xmm0, -0x100(%rbp)
movapd %xmm0, -0x110(%rbp)
movapd %xmm0, -0x120(%rbp)
movapd %xmm0, -0x130(%rbp)
movapd %xmm0, -0x140(%rbp)
movq %r15, %rdi
xorl %esi, %esi
callq 0x8802
movq %rbx, -0x148(%rbp)
movq $0x0, -0x78(%rbp)
movq %r15, %rdi
movq %r13, %rsi
callq 0x9b4e
movq -0xc0(%rbp), %rax
cmpq %rax, -0xa0(%rbp)
je 0x4de8
movq -0x148(%rbp), %rcx
addq $0x10, %rcx
movq %rcx, -0x190(%rbp)
xorl %r13d, %r13d
movq (%rax), %rcx
movq %rcx, -0x158(%rbp)
movq -0xb0(%rbp), %rcx
addq $-0x8, %rcx
cmpq %rcx, %rax
je 0x4868
addq $0x8, %rax
jmp 0x48a4
movq -0xb8(%rbp), %rdi
movl $0x200, %esi            # imm = 0x200
callq 0x2170
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 -0x150(%rbp), %rcx
movq (%rcx), %rcx
movq -0x158(%rbp), %rdx
leaq (%rdx,%rdx,2), %rdx
movq (%rcx,%rdx,8), %rbx
movq 0x8(%rcx,%rdx,8), %r14
cmpq %r14, %rbx
je 0x4ddb
movq (%rbx), %rcx
movq %rcx, -0x38(%rbp)
movq -0xe8(%rbp), %rax
cmpq $-0x1, (%rax,%rcx,8)
jne 0x4dc7
movq -0xa0(%rbp), %rdx
movq -0x90(%rbp), %rsi
addq $-0x8, %rsi
cmpq %rsi, %rdx
je 0x4912
movq %rcx, (%rdx)
addq $0x8, %rdx
movq %rdx, -0xa0(%rbp)
jmp 0x4929
leaq -0xd0(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x898a
movq -0xe8(%rbp), %rax
movq -0x158(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
incq %rcx
movq -0x38(%rbp), %rdx
movq %rcx, (%rax,%rdx,8)
movq -0x130(%rbp), %rcx
movq -0x110(%rbp), %rax
cmpq %rcx, %rax
je 0x49d1
movq -0x38(%rbp), %rdx
movq -0xe8(%rbp), %rsi
movq (%rsi,%rdx,8), %rdx
shrq %rdx
cmpq %rdx, (%rcx)
ja 0x49d1
movq -0x120(%rbp), %rdx
addq $-0x8, %rdx
cmpq %rdx, %rcx
je 0x497f
addq $0x8, %rcx
jmp 0x49c2
movq -0x128(%rbp), %rdi
movl $0x200, %esi            # imm = 0x200
callq 0x2170
movq -0x118(%rbp), %rcx
movq -0x110(%rbp), %rax
leaq 0x8(%rcx), %rdx
movq %rdx, -0x118(%rbp)
movq 0x8(%rcx), %rcx
movq %rcx, -0x128(%rbp)
leaq 0x200(%rcx), %rdx
movq %rdx, -0x120(%rbp)
movq %rcx, -0x130(%rbp)
incq %r13
jmp 0x494d
movq -0x190(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x9c6a
testq %rax, %rax
je 0x4a2b
movq -0x38(%rbp), %rsi
shlq $0x3, %rsi
addq -0xe8(%rbp), %rsi
movq -0x110(%rbp), %rax
movq -0x100(%rbp), %rcx
addq $-0x8, %rcx
cmpq %rcx, %rax
je 0x4a1f
movq (%rsi), %rcx
movq %rcx, (%rax)
addq $0x8, %rax
movq %rax, -0x110(%rbp)
jmp 0x4a2b
leaq -0x140(%rbp), %rdi
callq 0x898a
movq -0x38(%rbp), %rcx
movq %rcx, -0x40(%rbp)
movq -0x30(%rbp), %rsi
movq -0x1c8(%rbp), %rdi
movq -0x1c0(%rbp), %r8
cmpq %rsi, %rcx
jae 0x4a92
movq %rcx, %rax
xorl %edx, %edx
divq %r8
movq (%rdi,%rdx,8), %rax
testq %rax, %rax
je 0x4ae2
movq %rdx, %rsi
movq (%rax), %r9
cmpq 0x8(%r9), %rcx
je 0x4b32
movq (%r9), %r9
testq %r9, %r9
je 0x4ae2
movq 0x8(%r9), %rdi
movq %rdi, %rax
xorl %edx, %edx
divq %r8
cmpq %rsi, %rdx
jne 0x4ae2
cmpq %rdi, %rcx
jne 0x4a6f
jmp 0x4b32
movq %rsi, %rax
xorl %edx, %edx
divq %r8
movq (%rdi,%rdx,8), %rax
testq %rax, %rax
je 0x4c57
movq %rdx, %rcx
movq (%rax), %r9
cmpq 0x8(%r9), %rsi
je 0x4ca7
movq (%r9), %r9
testq %r9, %r9
je 0x4c57
movq 0x8(%r9), %rdi
movq %rdi, %rax
xorl %edx, %edx
divq %r8
cmpq %rcx, %rdx
jne 0x4c57
cmpq %rdi, %rsi
jne 0x4ab7
jmp 0x4ca7
movq $0x0, -0x58(%rbp)
leaq -0x48(%rbp), %rax
movq %rax, -0x78(%rbp)
movq $0x1, -0x70(%rbp)
xorpd %xmm0, %xmm0
movupd %xmm0, -0x20(%rax)
movl $0x3f800000, -0x58(%rbp) # imm = 0x3F800000
movupd %xmm0, -0x8(%rax)
movq %r12, %rdi
leaq -0x40(%rbp), %rsi
callq 0x9ccc
movq %rax, %rdi
leaq -0x78(%rbp), %r15
movq %r15, %rsi
callq 0x2334
movq %r15, %rdi
callq 0x7e9c
movq %r12, %rdi
leaq -0x40(%rbp), %rsi
callq 0x9ccc
movq %rax, %rdi
leaq -0x30(%rbp), %rsi
callq 0x9fe6
movq %rax, %r15
movq %r12, %rdi
leaq -0x40(%rbp), %rsi
callq 0x9ccc
testq %r15, %r15
jne 0x4bc7
movq %r12, %rdi
leaq -0x40(%rbp), %rsi
callq 0x9ccc
movq -0x40(%rbp), %rcx
movq -0x30(%rbp), %rdx
movq -0x38(%rbp), %rsi
movq -0xe8(%rbp), %rdi
movsd (%rdi,%rsi,8), %xmm0
unpcklps 0x64d7(%rip), %xmm0     # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x64df(%rip), %xmm0     # 0xb070
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
leaq -0x48(%rbp), %rsi
xorpd %xmm0, %xmm0
movupd %xmm0, -0x10(%rsi)
movq %rdx, -0x78(%rbp)
movq %rcx, -0x70(%rbp)
movq %rdx, -0x68(%rbp)
movsd %xmm1, -0x60(%rbp)
movq %rax, %rdi
leaq -0x78(%rbp), %rsi
callq 0xa048
movq -0x38(%rbp), %rax
movq -0xe8(%rbp), %rcx
movsd (%rcx,%rax,8), %xmm0
movapd %xmm0, -0x170(%rbp)
movq %r12, %rdi
leaq -0x40(%rbp), %rsi
callq 0x9ccc
movq %rax, %rdi
leaq -0x30(%rbp), %rsi
callq 0x9fe6
testq %rax, %rax
je 0x5128
movq %r13, %xmm0
movq 0x6453(%rip), %xmm2     # 0xb060
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
movapd 0x6457(%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, 0x28(%rax)
jmp 0x4dc7
movq $0x0, -0x58(%rbp)
leaq -0x48(%rbp), %rax
movq %rax, -0x78(%rbp)
movq $0x1, -0x70(%rbp)
xorpd %xmm0, %xmm0
movupd %xmm0, -0x20(%rax)
movl $0x3f800000, -0x58(%rbp) # imm = 0x3F800000
movupd %xmm0, -0x8(%rax)
movq %r12, %rdi
leaq -0x30(%rbp), %rsi
callq 0x9ccc
movq %rax, %rdi
leaq -0x78(%rbp), %r15
movq %r15, %rsi
callq 0x2334
movq %r15, %rdi
callq 0x7e9c
movq %r12, %rdi
leaq -0x30(%rbp), %rsi
callq 0x9ccc
movq %rax, %rdi
leaq -0x40(%rbp), %rsi
callq 0x9fe6
movq %rax, %r15
movq %r12, %rdi
leaq -0x30(%rbp), %rsi
callq 0x9ccc
testq %r15, %r15
jne 0x4d3c
movq %r12, %rdi
leaq -0x30(%rbp), %rsi
callq 0x9ccc
movq -0x30(%rbp), %rcx
movq -0x40(%rbp), %rdx
movq -0x38(%rbp), %rsi
movq -0xe8(%rbp), %rdi
movsd (%rdi,%rsi,8), %xmm0
unpcklps 0x6362(%rip), %xmm0     # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x636a(%rip), %xmm0     # 0xb070
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
leaq -0x48(%rbp), %rsi
xorpd %xmm0, %xmm0
movupd %xmm0, -0x10(%rsi)
movq %rdx, -0x78(%rbp)
movq %rcx, -0x70(%rbp)
movq %rdx, -0x68(%rbp)
movsd %xmm1, -0x60(%rbp)
movq %rax, %rdi
leaq -0x78(%rbp), %rsi
callq 0xa048
movq -0x38(%rbp), %rax
movq -0xe8(%rbp), %rcx
movsd (%rcx,%rax,8), %xmm0
movapd %xmm0, -0x170(%rbp)
movq %r12, %rdi
leaq -0x30(%rbp), %rsi
callq 0x9ccc
movq %rax, %rdi
leaq -0x40(%rbp), %rsi
callq 0x9fe6
testq %rax, %rax
je 0x5128
movq %r13, %xmm0
movq 0x62de(%rip), %xmm2     # 0xb060
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
movapd 0x62e2(%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, 0x30(%rax)
addq $0x8, %rbx
cmpq %r14, %rbx
jne 0x48d2
movq -0xc0(%rbp), %rax
cmpq %rax, -0xa0(%rbp)
jne 0x4848
leaq -0x140(%rbp), %r15
movq %r15, %rdi
callq 0x7dae
movq -0xe8(%rbp), %rdi
testq %rdi, %rdi
je 0x4e12
movq -0xd8(%rbp), %rsi
subq %rdi, %rsi
callq 0x2170
leaq -0xd0(%rbp), %r14
movq %r14, %rdi
callq 0x7dae
movq -0x148(%rbp), %rbx
movq (%rbx), %rbx
testq %rbx, %rbx
leaq -0x78(%rbp), %r13
jne 0x4727
movq $0x0, -0x140(%rbp)
movq -0x180(%rbp), %rax
cmpq -0x188(%rbp), %rax
je 0x508a
xorl %eax, %eax
leaq -0x1c8(%rbp), %rbx
leaq -0x140(%rbp), %r14
movq -0x150(%rbp), %rcx
movq (%rcx), %rcx
leaq (%rax,%rax,2), %rdx
movq (%rcx,%rdx,8), %r15
movq 0x8(%rcx,%rdx,8), %r12
cmpq %r12, %r15
je 0x5073
movq (%r15), %rax
movq %rax, -0x78(%rbp)
movq -0x140(%rbp), %rcx
cmpq %rax, %rcx
jae 0x505f
movq -0x1c8(%rbp), %rdi
movq -0x1c0(%rbp), %r8
movq %rcx, %rax
xorl %edx, %edx
divq %r8
movq (%rdi,%rdx,8), %rax
testq %rax, %rax
je 0x4eed
movq %rdx, %rsi
movq (%rax), %r9
cmpq 0x8(%r9), %rcx
je 0x4f4e
movq (%r9), %r9
testq %r9, %r9
je 0x4eed
movq 0x8(%r9), %rdi
movq %rdi, %rax
xorl %edx, %edx
divq %r8
cmpq %rsi, %rdx
jne 0x4eed
cmpq %rdi, %rcx
jne 0x4ecd
jmp 0x4f4e
movq $0x0, -0xb0(%rbp)
leaq -0xa0(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq $0x1, -0xc8(%rbp)
xorpd %xmm0, %xmm0
movupd %xmm0, -0x20(%rax)
movl $0x3f800000, -0xb0(%rbp) # imm = 0x3F800000
movupd %xmm0, -0x8(%rax)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9ccc
movq %rax, %rdi
leaq -0xd0(%rbp), %r13
movq %r13, %rsi
callq 0x2334
movq %r13, %rdi
callq 0x7e9c
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9ccc
movq %rax, %rdi
leaq -0x78(%rbp), %rsi
callq 0x9fe6
movq %rax, %r13
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9ccc
testq %r13, %r13
je 0x4fa8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9ccc
movq %rax, %rdi
leaq -0x78(%rbp), %rsi
callq 0x9fe6
testq %rax, %rax
je 0x5134
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, 0x20(%rax)
jmp 0x5003
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9ccc
movq -0x140(%rbp), %rcx
movq -0x78(%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
leaq -0xd0(%rbp), %rsi
callq 0xa048
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9ccc
movq %rax, %rdi
leaq -0x78(%rbp), %rsi
callq 0x9fe6
testq %rax, %rax
je 0x5134
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, 0x30(%rax)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9ccc
movq %rax, %rdi
leaq -0x78(%rbp), %rsi
callq 0x9fe6
testq %rax, %rax
je 0x5134
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, 0x28(%rax)
addq $0x8, %r15
cmpq %r12, %r15
jne 0x4e87
movq -0x140(%rbp), %rax
incq %rax
movq %rax, -0x140(%rbp)
cmpq -0xf0(%rbp), %rax
jb 0x4e67
xorpd %xmm0, %xmm0
movq -0x178(%rbp), %r15
movupd %xmm0, (%r15)
movq $0x0, 0x10(%r15)
movq -0x1b8(%rbp), %rbx
testq %rbx, %rbx
je 0x50fb
movq 0x20(%rbx), %r14
testq %r14, %r14
je 0x50f6
leaq 0x10(%r14), %rdx
movq 0x8(%r15), %rsi
cmpq 0x10(%r15), %rsi
je 0x50e9
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 0x50f1
movq %r15, %rdi
callq 0xa306
movq (%r14), %r14
jmp 0x50b2
movq (%rbx), %rbx
jmp 0x50a9
leaq -0x1c8(%rbp), %rdi
callq 0x7f24
leaq -0x200(%rbp), %rdi
callq 0x7fcc
movq %r15, %rax
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x61d2(%rip), %rdi      # 0xb301
callq 0x21b0
leaq 0x61c6(%rip), %rdi      # 0xb301
callq 0x21b0
jmp 0x5158
jmp 0x51b5
movq %rax, %rbx
leaq -0xd0(%rbp), %rdi
callq 0x7e14
jmp 0x5220
movq %rax, %rbx
jmp 0x51ed
jmp 0x51de
jmp 0x51cb
movq %rax, %rbx
jmp 0x5208
jmp 0x516e
movq %rax, %rbx
jmp 0x5220
jmp 0x51cb
movq %rax, %rbx
leaq -0xd0(%rbp), %rdi
callq 0x7e9c
jmp 0x5214
jmp 0x51b5
movq %rax, %rbx
movq (%r15), %rdi
testq %rdi, %rdi
je 0x5214
movq 0x10(%r15), %rsi
subq %rdi, %rsi
callq 0x2170
jmp 0x5214
jmp 0x51cb
jmp 0x51cb
jmp 0x51cb
jmp 0x51de
jmp 0x51de
jmp 0x51b5
jmp 0x51bd
movq %rax, %rdi
callq 0x7da0
movq %rax, %rbx
leaq -0x78(%rbp), %rdi
callq 0x7e9c
jmp 0x51e1
movq %rax, %rbx
jmp 0x5214
jmp 0x51de
jmp 0x51de
jmp 0x51de
jmp 0x51de
jmp 0x51de
jmp 0x51de
jmp 0x51de
movq %rax, %rbx
leaq -0x140(%rbp), %rdi
callq 0x7dae
movq -0xe8(%rbp), %rdi
testq %rdi, %rdi
je 0x5208
movq -0xd8(%rbp), %rsi
subq %rdi, %rsi
callq 0x2170
leaq -0xd0(%rbp), %rdi
callq 0x7dae
leaq -0x1c8(%rbp), %rdi
callq 0x7f24
leaq -0x200(%rbp), %rdi
callq 0x7fcc
movq %rbx, %rdi
callq 0x2230