// File: /workspace/github_cpp_makefile_star2_O3/Luthaf[P]zeopp/cluster.cc
// Function: cluster_partition(ATOM_NETWORK*, float)
vector< vector<XYZ> > cluster_partition(ATOM_NETWORK* atmnet, const float cutoff_dist)
{
    //Algorithm:
    
    // Partition a high accuracy voronoi net into clusters.
    ATOM_NETWORK ha_atmnet = *atmnet;
    string acc_setting = "S30";
    setupHighAccuracyAtomNetwork(&ha_atmnet, acc_setting);

    vector<VOR_CELL> vcell;
    vector<BASIC_VCELL> bvcell;
    VORONOI_NETWORK vornet, ha_vornet;
    performVoronoiDecomp(true, atmnet, &vornet, &vcell, false, &bvcell);
    vcell.clear();
    bvcell.clear();
    performVoronoiDecomp(true, &ha_atmnet, &ha_vornet, &vcell, false, &bvcell);
    DIJKSTRA_NETWORK dnet;
    DIJKSTRA_NETWORK::buildDijkstraNetwork(&ha_vornet, &dnet);

    for (DnIt it = dnet.nodes.begin(); it != dnet.nodes.end(); ++it)
        it->active = false;
    
    for (VnIt it = vornet.nodes.begin(); it != vornet.nodes.end(); ++it)
        cout << it->x << " " << it->y << " " << it->z << endl;

    vector <vector<XYZ> > clusters;
    
    for (VnIt nodeit = vornet.nodes.begin(); nodeit != vornet.nodes.end(); ++nodeit) {
        // Get the first non assigned high accuracy voronoi node within the 
        // cutoff distance to current low accuracy voronoi node
        XYZ low_acc_node_loc(nodeit->x, nodeit->y, nodeit->z);
        pair<DnIt, DnIt> p = get_first_closer_nonassigned_node(   // Highaccuracy dijkstra
                low_acc_node_loc, *atmnet, dnet.nodes, cutoff_dist);

        // Initialize cluster and tovisit_nodes
        vector<XYZ> cluster;
        vector<int> tovisit_ids;
        vector<int> visited_ids;

        // Add the current high accuracy node to tovisit ids
        tovisit_ids.push_back(p.first->id);

        // Populate the cluster
        while (!tovisit_ids.empty()){
            //Work on the current node
            int curr_id = tovisit_ids.back();
            DIJKSTRA_NODE curr_nd = dnet.nodes.at(curr_id);
            cluster.push_back(XYZ(curr_nd.x, curr_nd.y, curr_nd.z));
            visited_ids.push_back(curr_nd.id);
            tovisit_ids.pop_back();

            //If any connected nodes are unvisited and are within cutoff distance,
            //push them to tovisit_ids
            vector<CONN>::iterator connit = curr_nd.connections.begin();
            for (; connit != curr_nd.connections.end(); ++connit){
                int to_nodeid = connit->to;
                DIJKSTRA_NODE to_node = dnet.nodes.at(to_nodeid);
                double dist_to_low_acc_node = atmnet->calcDistanceXYZ(
                        nodeit->x, nodeit->y, nodeit->z,
                        to_node.x, to_node.y, to_node.z);
                if (find(visited_ids.begin(), visited_ids.end(), to_nodeid) == visited_ids.end() 
                        && dist_to_low_acc_node < cutoff_dist)
                    tovisit_ids.push_back(to_nodeid); 
            }
        }
        
        clusters.push_back(cluster);
        tovisit_ids.clear();
        visited_ids.clear();
        cluster.clear();
        
    }
    // assert (clusters.size() == vornet.nodes.size());

    return clusters;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x7b8, %rsp            # imm = 0x7B8
movd %xmm0, 0x4c(%rsp)
movq %rdi, 0x40(%rsp)
leaq 0x358(%rsp), %rdi
movq %rsi, 0xa8(%rsp)
callq 0x9c4e4
leaq 0x60(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xbbd7c(%rip), %rsi     # 0x155d77
leaq 0xbbd78(%rip), %rdx     # 0x155d7a
leaq 0x50(%rsp), %rdi
callq 0x22538
leaq 0x110(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
leaq 0x100(%rsp), %rdi
callq 0xf3ce
leaq 0x358(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x92beb
movq 0x100(%rsp), %rdi
cmpq %r15, %rdi
je 0x9a064
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x4470
pxor %xmm0, %xmm0
movdqa %xmm0, 0xd0(%rsp)
xorl %eax, %eax
movq %rax, 0xe0(%rsp)
movq %rax, 0xc0(%rsp)
movdqa %xmm0, 0xb0(%rsp)
leaq 0x268(%rsp), %rdi
callq 0x55288
leaq 0x2e0(%rsp), %rdi
callq 0x55288
leaq 0x268(%rsp), %rdx
leaq 0xd0(%rsp), %rcx
leaq 0xb0(%rsp), %r9
movl $0x1, %edi
movq 0xa8(%rsp), %rsi
xorl %r8d, %r8d
callq 0x7952
leaq 0xd0(%rsp), %rbx
movq (%rbx), %rsi
movq %rbx, %rdi
callq 0xfad6
leaq 0xb0(%rsp), %r15
movq (%r15), %rsi
movq %r15, %rdi
callq 0xfaa6
leaq 0x358(%rsp), %rsi
leaq 0x2e0(%rsp), %rdx
movl $0x1, %edi
movq %rbx, %rcx
xorl %r8d, %r8d
movq %r15, %r9
callq 0x7952
leaq 0x208(%rsp), %rdi
callq 0x50b12
leaq 0x2e0(%rsp), %rdi
leaq 0x208(%rsp), %rsi
callq 0x50c10
movq 0x208(%rsp), %rcx
movq 0x210(%rsp), %rax
cmpq %rax, %rcx
je 0x9a6cc
subq %rcx, %rax
addq $-0x48, %rax
movabsq $-0x1c71c71c71c71c71, %rdx # imm = 0xE38E38E38E38E38F
mulq %rdx
movq %rdx, %xmm0
shrq $0x6, %rdx
addq $0x10, %rdx
andq $-0x10, %rdx
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
psrlq $0x6, %xmm0
addq $0x478, %rcx            # imm = 0x478
xorl %eax, %eax
movdqa 0xbc339(%rip), %xmm3    # 0x1564d0
movdqa 0xbc341(%rip), %xmm4    # 0x1564e0
movdqa 0xbc349(%rip), %xmm5    # 0x1564f0
movdqa 0xbc351(%rip), %xmm6    # 0x156500
movdqa 0xb7189(%rip), %xmm7    # 0x151340
movdqa 0xb7160(%rip), %xmm8    # 0x151320
movdqa 0xb7167(%rip), %xmm9    # 0x151330
pcmpeqd %xmm10, %xmm10
movq %rax, %xmm11
pshufd $0x44, %xmm11, %xmm11   # xmm11 = xmm11[0,1,0,1]
movdqa %xmm11, %xmm13
por %xmm8, %xmm13
movdqa %xmm0, %xmm12
pxor %xmm9, %xmm12
pxor %xmm9, %xmm13
movdqa %xmm13, %xmm15
pcmpgtd %xmm12, %xmm15
pshufd $0xa0, %xmm15, %xmm14   # xmm14 = xmm15[0,0,2,2]
pshuflw $0xe8, %xmm14, %xmm1    # xmm1 = xmm14[0,2,2,3,4,5,6,7]
pcmpeqd %xmm12, %xmm13
pshufd $0xf5, %xmm13, %xmm13   # xmm13 = xmm13[1,1,3,3]
pshuflw $0xe8, %xmm13, %xmm2    # xmm2 = xmm13[0,2,2,3,4,5,6,7]
pand %xmm1, %xmm2
pshufd $0xf5, %xmm15, %xmm15   # xmm15 = xmm15[1,1,3,3]
pshuflw $0xe8, %xmm15, %xmm1    # xmm1 = xmm15[0,2,2,3,4,5,6,7]
por %xmm2, %xmm1
pxor %xmm10, %xmm1
packssdw %xmm1, %xmm1
movd %xmm1, %esi
testb $0x1, %sil
je 0x9a247
movb $0x0, -0x438(%rcx)
pand %xmm14, %xmm13
por %xmm15, %xmm13
packssdw %xmm13, %xmm13
pxor %xmm10, %xmm13
packssdw %xmm13, %xmm13
packsswb %xmm13, %xmm13
movd %xmm13, %esi
shrl $0x8, %esi
testb $0x1, %sil
je 0x9a27a
movb $0x0, -0x3f0(%rcx)
movdqa %xmm11, %xmm1
por %xmm7, %xmm1
pxor %xmm9, %xmm1
movdqa %xmm1, %xmm2
pcmpgtd %xmm12, %xmm2
pshufd $0xa0, %xmm2, %xmm13    # xmm13 = xmm2[0,0,2,2]
pcmpeqd %xmm12, %xmm1
pshufd $0xf5, %xmm1, %xmm14    # xmm14 = xmm1[1,1,3,3]
movdqa %xmm14, %xmm1
pand %xmm13, %xmm1
pshufd $0xf5, %xmm2, %xmm15    # xmm15 = xmm2[1,1,3,3]
por %xmm15, %xmm1
packssdw %xmm1, %xmm1
pxor %xmm10, %xmm1
packssdw %xmm1, %xmm1
packsswb %xmm1, %xmm1
movd %xmm1, %esi
shrl $0x10, %esi
testb $0x1, %sil
je 0x9a2dc
movb $0x0, -0x3a8(%rcx)
pshufhw $0x84, %xmm13, %xmm1    # xmm1 = xmm13[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm14, %xmm2    # xmm2 = xmm14[0,1,2,3,4,5,4,6]
pand %xmm1, %xmm2
pshufhw $0x84, %xmm15, %xmm1    # xmm1 = xmm15[0,1,2,3,4,5,4,6]
por %xmm2, %xmm1
pxor %xmm10, %xmm1
packssdw %xmm1, %xmm1
packsswb %xmm1, %xmm1
movd %xmm1, %esi
shrl $0x18, %esi
testb $0x1, %sil
je 0x9a317
movb $0x0, -0x360(%rcx)
movdqa %xmm11, %xmm1
por %xmm6, %xmm1
pxor %xmm9, %xmm1
movdqa %xmm1, %xmm2
pcmpgtd %xmm12, %xmm2
pshufd $0xa0, %xmm2, %xmm14    # xmm14 = xmm2[0,0,2,2]
pshuflw $0xe8, %xmm14, %xmm15   # xmm15 = xmm14[0,2,2,3,4,5,6,7]
pcmpeqd %xmm12, %xmm1
pshufd $0xf5, %xmm1, %xmm13    # xmm13 = xmm1[1,1,3,3]
pshuflw $0xe8, %xmm13, %xmm1    # xmm1 = xmm13[0,2,2,3,4,5,6,7]
pand %xmm15, %xmm1
pshufd $0xf5, %xmm2, %xmm15    # xmm15 = xmm2[1,1,3,3]
pshuflw $0xe8, %xmm15, %xmm2    # xmm2 = xmm15[0,2,2,3,4,5,6,7]
por %xmm1, %xmm2
pxor %xmm10, %xmm2
packssdw %xmm2, %xmm1
packsswb %xmm1, %xmm1
pextrw $0x2, %xmm1, %esi
testb $0x1, %sil
je 0x9a37f
movb $0x0, -0x318(%rcx)
pand %xmm14, %xmm13
por %xmm15, %xmm13
packssdw %xmm13, %xmm13
pxor %xmm10, %xmm13
packssdw %xmm13, %xmm1
packsswb %xmm1, %xmm1
pextrw $0x2, %xmm1, %esi
shrl $0x8, %esi
testb $0x1, %sil
je 0x9a3b1
movb $0x0, -0x2d0(%rcx)
movdqa %xmm11, %xmm1
por %xmm5, %xmm1
pxor %xmm9, %xmm1
movdqa %xmm1, %xmm2
pcmpgtd %xmm12, %xmm2
pshufd $0xa0, %xmm2, %xmm13    # xmm13 = xmm2[0,0,2,2]
pcmpeqd %xmm12, %xmm1
pshufd $0xf5, %xmm1, %xmm14    # xmm14 = xmm1[1,1,3,3]
movdqa %xmm14, %xmm1
pand %xmm13, %xmm1
pshufd $0xf5, %xmm2, %xmm15    # xmm15 = xmm2[1,1,3,3]
por %xmm15, %xmm1
packssdw %xmm1, %xmm1
pxor %xmm10, %xmm1
packssdw %xmm1, %xmm1
packsswb %xmm1, %xmm1
pextrw $0x3, %xmm1, %esi
testb $0x1, %sil
je 0x9a411
movb $0x0, -0x288(%rcx)
pshufhw $0x84, %xmm13, %xmm1    # xmm1 = xmm13[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm14, %xmm2    # xmm2 = xmm14[0,1,2,3,4,5,4,6]
pand %xmm1, %xmm2
pshufhw $0x84, %xmm15, %xmm1    # xmm1 = xmm15[0,1,2,3,4,5,4,6]
por %xmm2, %xmm1
pxor %xmm10, %xmm1
packssdw %xmm1, %xmm1
packsswb %xmm1, %xmm1
pextrw $0x3, %xmm1, %esi
shrl $0x8, %esi
testb $0x1, %sil
je 0x9a44d
movb $0x0, -0x240(%rcx)
movdqa %xmm11, %xmm1
por %xmm4, %xmm1
pxor %xmm9, %xmm1
movdqa %xmm1, %xmm2
pcmpgtd %xmm12, %xmm2
pshufd $0xa0, %xmm2, %xmm14    # xmm14 = xmm2[0,0,2,2]
pshuflw $0xe8, %xmm14, %xmm15   # xmm15 = xmm14[0,2,2,3,4,5,6,7]
pcmpeqd %xmm12, %xmm1
pshufd $0xf5, %xmm1, %xmm13    # xmm13 = xmm1[1,1,3,3]
pshuflw $0xe8, %xmm13, %xmm1    # xmm1 = xmm13[0,2,2,3,4,5,6,7]
pand %xmm15, %xmm1
pshufd $0xf5, %xmm2, %xmm15    # xmm15 = xmm2[1,1,3,3]
pshuflw $0xe8, %xmm15, %xmm2    # xmm2 = xmm15[0,2,2,3,4,5,6,7]
por %xmm1, %xmm2
pxor %xmm10, %xmm2
packssdw %xmm2, %xmm2
packsswb %xmm2, %xmm1
pextrw $0x4, %xmm1, %esi
testb $0x1, %sil
je 0x9a4b5
movb $0x0, -0x1f8(%rcx)
pand %xmm14, %xmm13
por %xmm15, %xmm13
packssdw %xmm13, %xmm13
pxor %xmm10, %xmm13
packssdw %xmm13, %xmm13
packsswb %xmm13, %xmm1
pextrw $0x4, %xmm1, %esi
shrl $0x8, %esi
testb $0x1, %sil
je 0x9a4e8
movb $0x0, -0x1b0(%rcx)
movdqa %xmm11, %xmm1
por %xmm3, %xmm1
pxor %xmm9, %xmm1
movdqa %xmm1, %xmm2
pcmpgtd %xmm12, %xmm2
pshufd $0xa0, %xmm2, %xmm13    # xmm13 = xmm2[0,0,2,2]
pcmpeqd %xmm12, %xmm1
pshufd $0xf5, %xmm1, %xmm14    # xmm14 = xmm1[1,1,3,3]
movdqa %xmm14, %xmm1
pand %xmm13, %xmm1
pshufd $0xf5, %xmm2, %xmm15    # xmm15 = xmm2[1,1,3,3]
por %xmm15, %xmm1
packssdw %xmm1, %xmm1
pxor %xmm10, %xmm1
packssdw %xmm1, %xmm1
packsswb %xmm1, %xmm1
pextrw $0x5, %xmm1, %esi
testb $0x1, %sil
je 0x9a548
movb $0x0, -0x168(%rcx)
pshufhw $0x84, %xmm13, %xmm1    # xmm1 = xmm13[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm14, %xmm2    # xmm2 = xmm14[0,1,2,3,4,5,4,6]
pand %xmm1, %xmm2
pshufhw $0x84, %xmm15, %xmm1    # xmm1 = xmm15[0,1,2,3,4,5,4,6]
por %xmm2, %xmm1
pxor %xmm10, %xmm1
packssdw %xmm1, %xmm1
packsswb %xmm1, %xmm1
pextrw $0x5, %xmm1, %esi
shrl $0x8, %esi
testb $0x1, %sil
je 0x9a584
movb $0x0, -0x120(%rcx)
movdqa %xmm11, %xmm1
por 0xbbf2f(%rip), %xmm1    # 0x1564c0
pxor %xmm9, %xmm1
movdqa %xmm1, %xmm2
pcmpgtd %xmm12, %xmm2
pshufd $0xa0, %xmm2, %xmm14    # xmm14 = xmm2[0,0,2,2]
pshuflw $0xe8, %xmm14, %xmm15   # xmm15 = xmm14[0,2,2,3,4,5,6,7]
pcmpeqd %xmm12, %xmm1
pshufd $0xf5, %xmm1, %xmm13    # xmm13 = xmm1[1,1,3,3]
pshuflw $0xe8, %xmm13, %xmm1    # xmm1 = xmm13[0,2,2,3,4,5,6,7]
pand %xmm15, %xmm1
pshufd $0xf5, %xmm2, %xmm15    # xmm15 = xmm2[1,1,3,3]
pshuflw $0xe8, %xmm15, %xmm2    # xmm2 = xmm15[0,2,2,3,4,5,6,7]
por %xmm1, %xmm2
pxor %xmm10, %xmm2
packssdw %xmm2, %xmm1
packsswb %xmm1, %xmm1
pextrw $0x6, %xmm1, %esi
testb $0x1, %sil
je 0x9a5f0
movb $0x0, -0xd8(%rcx)
pand %xmm14, %xmm13
por %xmm15, %xmm13
packssdw %xmm13, %xmm13
pxor %xmm10, %xmm13
packssdw %xmm13, %xmm1
packsswb %xmm1, %xmm1
pextrw $0x6, %xmm1, %esi
shrl $0x8, %esi
testb $0x1, %sil
je 0x9a622
movb $0x0, -0x90(%rcx)
por 0xbbe85(%rip), %xmm11   # 0x1564b0
pxor %xmm9, %xmm11
movdqa %xmm11, %xmm1
pcmpgtd %xmm12, %xmm1
pshufd $0xa0, %xmm1, %xmm13    # xmm13 = xmm1[0,0,2,2]
pcmpeqd %xmm12, %xmm11
pshufd $0xf5, %xmm11, %xmm11   # xmm11 = xmm11[1,1,3,3]
movdqa %xmm11, %xmm2
pand %xmm13, %xmm2
pshufd $0xf5, %xmm1, %xmm12    # xmm12 = xmm1[1,1,3,3]
por %xmm12, %xmm2
packssdw %xmm2, %xmm1
pxor %xmm10, %xmm1
packssdw %xmm1, %xmm1
packsswb %xmm1, %xmm1
pextrw $0x7, %xmm1, %esi
testb $0x1, %sil
je 0x9a680
movb $0x0, -0x48(%rcx)
pshufhw $0x84, %xmm13, %xmm1    # xmm1 = xmm13[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm11, %xmm2    # xmm2 = xmm11[0,1,2,3,4,5,4,6]
pand %xmm1, %xmm2
pshufhw $0x84, %xmm12, %xmm1    # xmm1 = xmm12[0,1,2,3,4,5,4,6]
por %xmm2, %xmm1
pxor %xmm10, %xmm1
packssdw %xmm1, %xmm1
packsswb %xmm1, %xmm1
pextrw $0x7, %xmm1, %esi
shrl $0x8, %esi
testb $0x1, %sil
je 0x9a6b8
movb $0x0, (%rcx)
addq $0x10, %rax
addq $0x480, %rcx            # imm = 0x480
cmpq %rax, %rdx
jne 0x9a1ce
movq 0x2b0(%rsp), %r13
cmpq 0x2b8(%rsp), %r13
je 0x9ac14
movq 0xfa8d7(%rip), %rbx     # 0x194fc0
leaq 0xbaee6(%rip), %r15     # 0x1555d6
movq (%r13), %xmm0
movq %rbx, %rdi
callq 0x46b0
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x44e0
movq 0x8(%r13), %xmm0
movq %r12, %rdi
callq 0x46b0
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x44e0
movq 0x10(%r13), %xmm0
movq %r12, %rdi
callq 0x46b0
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x4420
movsbl %al, %esi
movq %r12, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x42c0
addq $0x40, %r13
cmpq 0x2b8(%rsp), %r13
jne 0x9a6f0
movq 0x2b0(%rsp), %r15
pxor %xmm0, %xmm0
movq 0x40(%rsp), %rax
movdqu %xmm0, (%rax)
movq $0x0, 0x10(%rax)
cmpq %r15, %r13
je 0x9ac29
leaq 0x140(%rsp), %r13
leaq 0x190(%rsp), %r12
xorps %xmm0, %xmm0
cvtss2sd 0x4c(%rsp), %xmm0
movsd %xmm0, 0xf0(%rsp)
leaq 0x1d8(%rsp), %rbx
movsd (%r15), %xmm0
movq 0x8(%r15), %xmm1
movq 0x10(%r15), %xmm2
leaq 0x1f0(%rsp), %rdi
callq 0x84364
movq 0x200(%rsp), %rax
movq %rax, 0x1d0(%rsp)
movupd 0x1f0(%rsp), %xmm0
movapd %xmm0, 0x1c0(%rsp)
movq %rbx, %rdi
leaq 0x208(%rsp), %rsi
callq 0x38b26
movq 0x1d0(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x1c0(%rsp), %xmm0
movups %xmm0, (%rsp)
movq 0xa8(%rsp), %rdi
movq %rbx, %rsi
movss 0x4c(%rsp), %xmm0
callq 0x99f1d
movq %rax, %rbp
movq %rbx, %rdi
callq 0xf10e
xorl %eax, %eax
movq %rax, 0xa0(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x90(%rsp)
movq %rax, 0x30(%rsp)
movapd %xmm0, 0x20(%rsp)
movq %rax, 0x80(%rsp)
movapd %xmm0, 0x70(%rsp)
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0xf864
movq 0x28(%rsp), %rax
cmpq %rax, 0x20(%rsp)
je 0x9ab5e
movslq -0x4(%rax), %rsi
movq 0x208(%rsp), %rbp
movq 0x210(%rsp), %rdx
subq %rbp, %rdx
sarq $0x3, %rdx
movabsq $-0x71c71c71c71c71c7, %rax # imm = 0x8E38E38E38E38E39
imulq %rax, %rdx
cmpq %rsi, %rdx
jbe 0x9acf6
leaq (%rsi,%rsi,8), %r14
leaq 0x20(,%r14,8), %rsi
addq %rbp, %rsi
movupd -0x20(%rsi), %xmm0
movdqu -0x10(%rsi), %xmm1
movdqa %xmm1, 0x130(%rsp)
movapd %xmm0, 0x120(%rsp)
movq %r13, %rdi
callq 0x37e9e
leaq (,%r14,8), %rax
addq %rbp, %rax
movb 0x40(%rax), %cl
movb %cl, 0x20(%r13)
movq 0x38(%rax), %rax
movq %rax, 0x18(%r13)
movsd 0x128(%rsp), %xmm0
movq 0x130(%rsp), %xmm1
movq 0x138(%rsp), %xmm2
leaq 0x170(%rsp), %rdi
callq 0x84364
movq 0x98(%rsp), %rsi
cmpq 0xa0(%rsp), %rsi
je 0x9a982
movq 0x180(%rsp), %rax
movq %rax, 0x10(%rsi)
movupd 0x170(%rsp), %xmm0
movupd %xmm0, (%rsi)
addq $0x18, 0x98(%rsp)
jmp 0x9a997
leaq 0x90(%rsp), %rdi
leaq 0x170(%rsp), %rdx
callq 0x9d006
movq 0x78(%rsp), %rsi
cmpq 0x80(%rsp), %rsi
je 0x9a9ba
movl 0x120(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x78(%rsp)
jmp 0x9a9cc
leaq 0x70(%rsp), %rdi
leaq 0x120(%rsp), %rdx
callq 0xf864
addq $-0x4, 0x28(%rsp)
movq 0x140(%rsp), %rbp
cmpq 0x148(%rsp), %rbp
je 0x9ab3d
movslq 0x4(%rbp), %rsi
movl %esi, 0x1c(%rsp)
movq 0x208(%rsp), %r14
movq 0x210(%rsp), %rdx
subq %r14, %rdx
sarq $0x3, %rdx
movabsq $-0x71c71c71c71c71c7, %rax # imm = 0x8E38E38E38E38E39
imulq %rax, %rdx
cmpq %rsi, %rdx
jbe 0x9ace3
movq %r13, %rbx
leaq (%rsi,%rsi,8), %r13
leaq (%r14,%r13,8), %rsi
addq $0x20, %rsi
movupd -0x20(%rsi), %xmm0
movdqu -0x10(%rsi), %xmm1
movdqa %xmm1, 0x180(%rsp)
movapd %xmm0, 0x170(%rsp)
movq %r12, %rdi
callq 0x37e9e
leaq (%r14,%r13,8), %rax
movb 0x40(%rax), %cl
movb %cl, 0x20(%r12)
movq 0x38(%rax), %rax
movq %rax, 0x18(%r12)
movsd (%r15), %xmm0
movq 0x8(%r15), %xmm1
movq 0x10(%r15), %xmm2
movq 0x178(%rsp), %xmm3
movq 0x180(%rsp), %xmm4
movq 0x188(%rsp), %xmm5
movq 0xa8(%rsp), %rdi
callq 0x5364c
movq %rbx, %r13
movsd %xmm0, 0xf8(%rsp)
movq 0x70(%rsp), %rdi
movq 0x78(%rsp), %rsi
leaq 0x1c(%rsp), %rdx
callq 0x9d124
movsd 0xf0(%rsp), %xmm0
ucomisd 0xf8(%rsp), %xmm0
jbe 0x9ab06
cmpq 0x78(%rsp), %rax
jne 0x9ab06
movq 0x28(%rsp), %rsi
cmpq 0x30(%rsp), %rsi
je 0x9aaf7
movl 0x1c(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x28(%rsp)
jmp 0x9ab06
leaq 0x20(%rsp), %rdi
leaq 0x1c(%rsp), %rdx
callq 0xf864
movq 0x190(%rsp), %rdi
testq %rdi, %rdi
je 0x9ab23
movq 0x1a0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
addq $0x28, %rbp
cmpq 0x148(%rsp), %rbp
jne 0x9a9e8
movq 0x140(%rsp), %rbp
testq %rbp, %rbp
je 0x9a895
movq 0x150(%rsp), %rsi
subq %rbp, %rsi
movq %rbp, %rdi
callq 0x4470
jmp 0x9a895
movq 0x40(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x6793a
movq 0x20(%rsp), %rdi
cmpq %rdi, 0x28(%rsp)
je 0x9ab81
movq %rdi, 0x28(%rsp)
movq 0x70(%rsp), %rax
cmpq %rax, 0x78(%rsp)
leaq 0x1d8(%rsp), %rbx
je 0x9ab9a
movq %rax, 0x78(%rsp)
movq 0x90(%rsp), %rcx
cmpq %rcx, 0x98(%rsp)
je 0x9abb4
movq %rcx, 0x98(%rsp)
testq %rax, %rax
je 0x9abd1
movq 0x80(%rsp), %rsi
subq %rax, %rsi
movq %rax, %rdi
callq 0x4470
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x9abe3
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x9ac00
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
addq $0x40, %r15
cmpq 0x2b8(%rsp), %r15
jne 0x9a7cc
jmp 0x9ac29
pxor %xmm0, %xmm0
movq 0x40(%rsp), %rax
movdqu %xmm0, (%rax)
movq $0x0, 0x10(%rax)
leaq 0x208(%rsp), %rdi
callq 0xf10e
movq 0x340(%rsp), %rdi
testq %rdi, %rdi
je 0x9ac53
movq 0x350(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
leaq 0x2b0(%rsp), %rbx
leaq 0x328(%rsp), %rdi
callq 0xf256
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
leaq 0x60(%rsp), %r14
je 0x9ac86
movq 0x2d8(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq %rbx, %rdi
callq 0xf256
leaq 0xb0(%rsp), %rdi
callq 0xec64
leaq 0xd0(%rsp), %rdi
callq 0xec34
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0x9acbf
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x4470
leaq 0x358(%rsp), %rdi
callq 0xec94
movq 0x40(%rsp), %rax
addq $0x7b8, %rsp            # imm = 0x7B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb2a0b(%rip), %rdi     # 0x14d6f5
xorl %eax, %eax
leaq 0x60(%rsp), %r14
callq 0x4630
leaq 0xb29f8(%rip), %rdi     # 0x14d6f5
xorl %eax, %eax
leaq 0x60(%rsp), %r14
callq 0x4630
movq %rax, %rbx
jmp 0x9ae52
jmp 0x9ad5c
movq %rax, %rbx
jmp 0x9ae89
movq %rax, %rbx
jmp 0x9aeb3
movq %rax, %rbx
movq 0x100(%rsp), %rdi
cmpq %r15, %rdi
je 0x9aecd
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x9aecd
movq %rax, %rbx
jmp 0x9aecd
movq %rax, %rbx
jmp 0x9aee4
movq %rax, %rbx
jmp 0x9ae5f
movq %rax, %rbx
leaq 0x1d8(%rsp), %rdi
callq 0xf10e
jmp 0x9ad7b
jmp 0x9ad78
movq %rax, %rbx
leaq 0x60(%rsp), %r14
jmp 0x9ae48
jmp 0x9ad9b
jmp 0x9adae
movq %rax, %rbx
leaq 0x60(%rsp), %r14
jmp 0x9ae52
movq %rax, %rbx
jmp 0x9adfa
movq %rax, %rbx
leaq 0x60(%rsp), %r14
jmp 0x9adfa
jmp 0x9adae
jmp 0x9adb8
movq %rax, %rbx
jmp 0x9addd
movq %rax, %rbx
leaq 0x60(%rsp), %r14
jmp 0x9addd
movq %rax, %rbx
movq 0x190(%rsp), %rdi
testq %rdi, %rdi
leaq 0x60(%rsp), %r14
je 0x9addd
movq 0x1a0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq 0x140(%rsp), %rdi
testq %rdi, %rdi
je 0x9adfa
movq 0x150(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x9ae14
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x9ae2b
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x9ae48
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq 0x40(%rsp), %rdi
callq 0x67966
leaq 0x208(%rsp), %rdi
callq 0xf10e
movq 0x340(%rsp), %rdi
testq %rdi, %rdi
je 0x9ae7c
movq 0x350(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
leaq 0x328(%rsp), %rdi
callq 0xf256
movq 0x2c8(%rsp), %rdi
testq %rdi, %rdi
je 0x9aea6
movq 0x2d8(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
leaq 0x2b0(%rsp), %rdi
callq 0xf256
leaq 0xb0(%rsp), %rdi
callq 0xec64
leaq 0xd0(%rsp), %rdi
callq 0xec34
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0x9aee4
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x4470
leaq 0x358(%rsp), %rdi
callq 0xec94
movq %rbx, %rdi
callq 0x4780