#include <iostream>
#include <vector>
#include <set>
#include <map>
#include <algorithm>
#include <stdio.h>
#include <stdlib.h>
#include <cuda.h>
#include <sys/time.h>
#include <cmath>

using namespace std;

#define CUDA_SAFE_CALL( err ) (safe_call(err, __LINE__))
#define MAX_THREADS_PER_BLOCK 1024
#define GLOBAL_MAX_EDGES_PER_SHARD 33554432 
#define ERR 0.01

void safe_call(cudaError_t ret, int line)
{
    if(ret!=cudaSuccess)
    {
        printf("Error at line %d : %s\n",line,cudaGetErrorString(ret));
        exit(-1);
    }
}

typedef struct __interval
{
    int start;
    int end;
} interval_t;

typedef struct __edge
{
    int src;
    int dest;
    int val;
} edge_t;

typedef struct __vertex
{
    double val;
    int numInEdges;
    int numOutEdges;
} vertex_t;

typedef struct __shard
{
    int E;
    int Vstart;
    int Vend;
    int * from;
//    int * to;
    int * vmap;
    double * updates;
} shard_t;

__device__ bool d_over;

__global__ void reset()
{
    d_over = false;
}

__device__ int binarySearch(int * arr, int l, int r, int x)
{
    if(x < arr[l])
        return l;
    while (l <= r)
    {
        int m = l+((r-l)/2);
        if (arr[m] == x)
        {
            int t = m;
            while(t<r && arr[t+1] == arr[t])
            {
                t++;
            }
            return t+1;
        }
        if (arr[m] < x) l = m + 1;
        else r = m - 1;
    }
    return l;
}

__global__ void gather_pr_edge(const shard_t * shard, vertex_t * vertices, int num_vertices, int current_depth)
{
    if(current_depth > 0)
    {
        int id = blockDim.x*blockIdx.x + threadIdx.x;
        if(id < shard->E)
        {
            int s = shard->from[id];
            int V = shard->Vend - shard->Vstart + 1;
            int d = shard->Vstart + binarySearch(shard->vmap, 0, V-1, id);
            if(vertices[s].val == current_depth-1 && vertices[d].val == -1) 
            {
                vertices[d].val = current_depth;
                d_over = true;
            }
        }
    }
}

__global__ void apply_pr_edge(const shard_t * shard, vertex_t * vertices, int num_vertices, int current_depth)
{
    int id = blockDim.x*blockIdx.x + threadIdx.x;
    int vid = id + shard->Vstart;
    if(vid <= shard->Vend)
    {
        if(current_depth == 0)
        {
            d_over = true;
            if(vid == 0)
                vertices[vid].val = 0;
            else
                vertices[vid].val = -1;
        }
    }
}

bool cost(const edge_t &a, const edge_t &b)
{
    return ((a.src < b.src) || (a.src == b.src && a.dest < b.dest));
}

int main(int argc, char * argv[])
{
    struct timeval t1,t2;
    static char * filename;
    if(argc!=2)
    {
        printf("./a.out <filename>\n");
        exit(-1);
    }
    else
    {
        filename = argv[1];
    }

    FILE * fp = fopen(filename,"r");
    if(!fp)
    {
        printf("Error reading file.\n");
        exit(-1);
    }

    /* Set cuda device to K40  */
    CUDA_SAFE_CALL(cudaSetDevice(0));

    printf("Begin file reading...\n");

    /* Get graph from file into CPU memory  */
    int num_vertices, num_edges, i, j, k;
    fscanf(fp,"%d %d",&num_vertices,&num_edges);

    //We are always going to have atleast 2 shards to have double bufferring
    int ns = num_edges / GLOBAL_MAX_EDGES_PER_SHARD;
    int MAX_EDGES_PER_SHARD = (ns == 0) ? (num_edges + 1)/2 : (num_edges + 1)/(ns + 1); //We do this to balance the no of edges in the shards

    //Array of vectors. vector i contains the out edges of vertex i
    vector< vector<edge_t> > inEdges(num_vertices);
    int * prefixV = (int *) calloc(num_vertices,sizeof(int));
    int s,d;

    // It will contain the visited status of each vertex
    vertex_t *vertices;
    vertex_t *vertices_host = (vertex_t *) malloc(num_vertices*sizeof(vertex_t));
    CUDA_SAFE_CALL(cudaMalloc((void **)&vertices, num_vertices*sizeof(vertex_t)));

    //Initialise the vertices
    for(i=0; i<num_vertices; i++)
    {
        vertices_host[i].numInEdges = 0;
        vertices_host[i].numOutEdges = 0;
    }
    
    for(i=0; i<num_edges; i++)
    {
        fscanf(fp,"%d",&s);
        fscanf(fp,"%d",&d);
        edge_t e;
        e.src=s;
        e.dest=d;
        inEdges[d].push_back(e);
        vertices_host[s].numOutEdges++;
        vertices_host[d].numInEdges++;
    }
    printf("Finished file reading.\n");

    printf("\nBegin interval construction...\n");

    // Construction of intervals
    gettimeofday(&t1,NULL);
    int num_intervals = 0, add = 1;
    vector<int> startInter;
    prefixV[0] = inEdges[0].size();
    if(prefixV[0] > MAX_EDGES_PER_SHARD)
    {
        startInter.push_back(0);
        num_intervals++;
        add = 0;
    }
    for(i=1; i<num_vertices; i++)
    {
        prefixV[i] = inEdges[i].size();    
        if(add==1)
            prefixV[i] += prefixV[i-1];
        if(prefixV[i] > MAX_EDGES_PER_SHARD)
        {
            startInter.push_back(i);
            num_intervals++;
            add = 0;
        }
        else
            add = 1;
    }
    if(add==1)
    {
        startInter.push_back(i-1);
        num_intervals++;
    }


    interval_t * interval = (interval_t *) malloc(num_intervals*sizeof(interval_t));
    for(i=0; i<num_intervals; i++)
    {
        interval[i].start = (i == 0) ? 0 : (startInter[i-1]+1);
        interval[i].end = startInter[i];
    }
    gettimeofday(&t2,NULL);
    printf("Time to construct intervals : %f sec\n",((t2.tv_sec+t2.tv_usec*1.0e-6)-(t1.tv_sec+t1.tv_usec*1.0e-6)));


    printf("\nBegin shard construction...\n");
    //Construction of shard
    gettimeofday(&t1,NULL);
    shard_t * shard = (shard_t *) malloc(num_intervals*sizeof(shard_t));

    //Finding the max number of edges in a shard
    // We will allocate space for that many edges to each shard to maintain consistency
    int MAX_NUM_EDGES_SHARD = INT_MIN;
    int MAX_NUM_VERTICES_SHARD = INT_MIN;

    for(i=0; i<num_intervals; i++)
    {
        int t = prefixV[interval[i].end];
        if(t > MAX_NUM_EDGES_SHARD)
            MAX_NUM_EDGES_SHARD = t;
        int q = interval[i].end-interval[i].start+1;
        if(q > MAX_NUM_VERTICES_SHARD)
            MAX_NUM_VERTICES_SHARD = q;
    }

    for(i=0; i<num_intervals; i++)
    {
        // first and last vertices in shard
        shard[i].Vstart = interval[i].start;
        shard[i].Vend = interval[i].end;
        shard[i].E = prefixV[interval[i].end]; 

        shard[i].vmap = (int *) malloc(MAX_NUM_VERTICES_SHARD*sizeof(int));
        shard[i].from = (int *) malloc(MAX_NUM_EDGES_SHARD*sizeof(int));
//        shard[i].to = (int *) malloc(MAX_NUM_EDGES_SHARD*sizeof(int));
    shard[i].updates = (double *) malloc(MAX_NUM_EDGES_SHARD*sizeof(double));
    }

    for(i=0; i<num_intervals; i++)
    {
        vector<edge_t> tempEdges;
        for(j=interval[i].start; j<=interval[i].end; j++)
        {
            for(vector<edge_t>::iterator it=inEdges[j].begin(); it!=inEdges[j].end(); ++it)
                tempEdges.push_back(*it);
        }

        //Sorting based on src vertex to align the edges such that the access of vertices[src] is sequential
        sort(tempEdges.begin(),tempEdges.end(),cost);

        vector< vector<edge_t> > bucket(MAX_NUM_VERTICES_SHARD);
        for (vector<edge_t>::iterator it = tempEdges.begin() ; it != tempEdges.end(); ++it)
        {
            bucket[(*it).dest-interval[i].start].push_back(*it);
        }
        for(j=0;j<MAX_NUM_VERTICES_SHARD;j++)
        {
            shard[i].vmap[j] = bucket[j].size();
        }
        for(j=1;j<MAX_NUM_VERTICES_SHARD;j++)
        {
            shard[i].vmap[j] += shard[i].vmap[j-1];
        }
        k=0;
        for(j=0;j<MAX_NUM_VERTICES_SHARD;j++)
        {
            for (vector<edge_t>::iterator it = bucket[j].begin() ; it != bucket[j].end(); ++it)
            {
                shard[i].from[k] = (*it).src;
//                shard[i].to[k] = (*it).dest;
                k++;
            }
        }
    }
    gettimeofday(&t2,NULL);
    printf("Time to construct shards : %f sec\n",((t2.tv_sec+t2.tv_usec*1.0e-6)-(t1.tv_sec+t1.tv_usec*1.0e-6)));

    cudaStream_t * str;
    cudaEvent_t * start;
    cudaEvent_t * stop;
    int num_evts=2;
    str = (cudaStream_t *) malloc(num_evts * sizeof(cudaStream_t));
    start = (cudaEvent_t *) malloc(num_evts * sizeof(cudaEvent_t));
    stop = (cudaEvent_t *) malloc(num_evts * sizeof(cudaEvent_t));
    for(int i = 0; i < num_evts; i++)
    {
        CUDA_SAFE_CALL(cudaStreamCreate(&(str[i])));
        CUDA_SAFE_CALL(cudaEventCreate(&(start[i])));
        CUDA_SAFE_CALL(cudaEventCreate(&(stop[i])));
    }

    
    float * diff = (float *) malloc(num_intervals*sizeof(float));
    double time = 0;

    // For vertex centric algo
    shard_t * shard_dev;
    int * vmap_dev;
    int * from_dev;
//    int * to_dev;
    double * updates_dev;
    CUDA_SAFE_CALL(cudaMalloc((void **)&shard_dev, sizeof(shard_t)));
    CUDA_SAFE_CALL(cudaMalloc((void **)&from_dev, MAX_NUM_EDGES_SHARD*sizeof(int)));
//    CUDA_SAFE_CALL(cudaMalloc((void **)&to_dev, MAX_NUM_EDGES_SHARD*sizeof(int)));
    CUDA_SAFE_CALL(cudaMalloc((void **)&vmap_dev, MAX_NUM_VERTICES_SHARD*sizeof(int)));
    CUDA_SAFE_CALL(cudaMalloc((void **)&updates_dev, MAX_NUM_EDGES_SHARD*sizeof(double)));

    //Extra Buffer for doing double bufferring
    shard_t * shard_dev2;
    int * vmap_dev2;
    int * from_dev2;
//    int * to_dev2;
    double * updates_dev2;
    CUDA_SAFE_CALL(cudaMalloc((void **)&shard_dev2, sizeof(shard_t)));
    CUDA_SAFE_CALL(cudaMalloc((void **)&from_dev2, MAX_NUM_EDGES_SHARD*sizeof(int)));
//    CUDA_SAFE_CALL(cudaMalloc((void **)&to_dev2, MAX_NUM_EDGES_SHARD*sizeof(int)));
    CUDA_SAFE_CALL(cudaMalloc((void **)&vmap_dev2, MAX_NUM_VERTICES_SHARD*sizeof(int)));
    CUDA_SAFE_CALL(cudaMalloc((void **)&updates_dev2, MAX_NUM_EDGES_SHARD*sizeof(double)));

    int num_of_blocks = 1;
    //int MAX_THREADS = MAX_NUM_VERTICES_SHARD;
    int MAX_THREADS = MAX_NUM_EDGES_SHARD;
    int num_of_threads_per_block = MAX_THREADS;

    if(MAX_THREADS>MAX_THREADS_PER_BLOCK)
    {
        num_of_blocks = (int)ceil(MAX_THREADS/(double)MAX_THREADS_PER_BLOCK); 
        num_of_threads_per_block = MAX_THREADS_PER_BLOCK; 
    }

    dim3  grid( num_of_blocks, 1, 1);
    dim3  threads( num_of_threads_per_block, 1, 1);

    printf("Begin kernel\n");

    CUDA_SAFE_CALL(cudaMemcpy(vertices,vertices_host,num_vertices*sizeof(vertex_t),cudaMemcpyHostToDevice));

    int pingpong;
    bool over;
    k=0;

    gettimeofday(&t1,NULL);

    do
    {
        over = false;
        CUDA_SAFE_CALL(cudaMemcpyToSymbol(d_over, &over, sizeof(bool),0, cudaMemcpyHostToDevice));
        CUDA_SAFE_CALL(cudaDeviceSynchronize());

        /*
            GATHER PHASE BEGINS
        */

        pingpong=0;

        for(i=0; i<num_intervals; i++)
        {
            if(pingpong==0)
            {
                //Copy Ping
                CUDA_SAFE_CALL(cudaMemcpyAsync(shard_dev, &shard[i], sizeof(shard_t),cudaMemcpyHostToDevice,str[0]));
                CUDA_SAFE_CALL(cudaMemcpyAsync(from_dev, shard[i].from, MAX_NUM_EDGES_SHARD*sizeof(int),cudaMemcpyHostToDevice,str[0]));
                CUDA_SAFE_CALL(cudaMemcpyAsync(&(shard_dev->from), &from_dev, sizeof(int *),cudaMemcpyHostToDevice,str[0]));
//                CUDA_SAFE_CALL(cudaMemcpyAsync(to_dev, shard[i].to, MAX_NUM_EDGES_SHARD*sizeof(int),cudaMemcpyHostToDevice,str[0]));
//                CUDA_SAFE_CALL(cudaMemcpyAsync(&(shard_dev->to), &to_dev, sizeof(int *),cudaMemcpyHostToDevice,str[0]));
                CUDA_SAFE_CALL(cudaMemcpyAsync(vmap_dev, shard[i].vmap, MAX_NUM_VERTICES_SHARD*sizeof(int),cudaMemcpyHostToDevice,str[0]));
                CUDA_SAFE_CALL(cudaMemcpyAsync(&(shard_dev->vmap), &vmap_dev, sizeof(int *),cudaMemcpyHostToDevice,str[0]));
                CUDA_SAFE_CALL(cudaMemcpyAsync(&(shard_dev->updates), &updates_dev, sizeof(double *),cudaMemcpyHostToDevice,str[0]));

                if(i>0)
                {
                    //Process Pong
                    CUDA_SAFE_CALL(cudaEventRecord(start[1],str[1]));
                    gather_pr_edge<<<grid, threads,0,str[1]>>> (shard_dev2, vertices, num_vertices, k);
                    CUDA_SAFE_CALL(cudaStreamSynchronize(str[1]));
                    CUDA_SAFE_CALL(cudaEventRecord(stop[1],str[1]));
                    CUDA_SAFE_CALL(cudaEventSynchronize(stop[1]));
                    CUDA_SAFE_CALL(cudaEventElapsedTime(&diff[i-1],start[1],stop[1]));

                }

                pingpong=1;
            }
            else
            {
                //Copy Pong
                CUDA_SAFE_CALL(cudaMemcpyAsync(shard_dev2, &shard[i], sizeof(shard_t),cudaMemcpyHostToDevice,str[1]));
                CUDA_SAFE_CALL(cudaMemcpyAsync(from_dev2, shard[i].from, MAX_NUM_EDGES_SHARD*sizeof(int),cudaMemcpyHostToDevice,str[1]));
                CUDA_SAFE_CALL(cudaMemcpyAsync(&(shard_dev2->from), &from_dev2, sizeof(int *),cudaMemcpyHostToDevice,str[1]));
//                CUDA_SAFE_CALL(cudaMemcpyAsync(to_dev2, shard[i].to, MAX_NUM_EDGES_SHARD*sizeof(int),cudaMemcpyHostToDevice,str[1]));
//                CUDA_SAFE_CALL(cudaMemcpyAsync(&(shard_dev2->to), &to_dev2, sizeof(int *),cudaMemcpyHostToDevice,str[1]));
                CUDA_SAFE_CALL(cudaMemcpyAsync(vmap_dev2, shard[i].vmap, MAX_NUM_VERTICES_SHARD*sizeof(int),cudaMemcpyHostToDevice,str[1]));
                CUDA_SAFE_CALL(cudaMemcpyAsync(&(shard_dev2->vmap), &vmap_dev2, sizeof(int *),cudaMemcpyHostToDevice,str[1]));
                CUDA_SAFE_CALL(cudaMemcpyAsync(&(shard_dev2->updates), &updates_dev2, sizeof(double *),cudaMemcpyHostToDevice,str[0]));

                //Process Pong
                CUDA_SAFE_CALL(cudaEventRecord(start[0],str[0]));
                gather_pr_edge<<<grid, threads,0,str[0]>>> (shard_dev, vertices, num_vertices, k);
                CUDA_SAFE_CALL(cudaStreamSynchronize(str[0]));
                CUDA_SAFE_CALL(cudaEventRecord(stop[0],str[0]));
                CUDA_SAFE_CALL(cudaEventSynchronize(stop[0]));
                CUDA_SAFE_CALL(cudaEventElapsedTime(&diff[i-1],start[0],stop[0]));

                pingpong=0;
            }
        }
        if(pingpong==0)
        {
            //Process Pong
            CUDA_SAFE_CALL(cudaEventRecord(start[1],str[1]));
            gather_pr_edge<<<grid, threads,0,str[1]>>> (shard_dev2, vertices, num_vertices, k);
            CUDA_SAFE_CALL(cudaStreamSynchronize(str[1]));
            CUDA_SAFE_CALL(cudaEventRecord(stop[1],str[1]));
            CUDA_SAFE_CALL(cudaEventSynchronize(stop[1]));
            CUDA_SAFE_CALL(cudaEventElapsedTime(&diff[i-1],start[1],stop[1]));
        }
        else
        {
            //Process Pong
            CUDA_SAFE_CALL(cudaEventRecord(start[0],str[0]));
            gather_pr_edge<<<grid, threads,0,str[0]>>> (shard_dev, vertices, num_vertices, k);
            CUDA_SAFE_CALL(cudaStreamSynchronize(str[0]));
            CUDA_SAFE_CALL(cudaEventRecord(stop[0],str[0]));
            CUDA_SAFE_CALL(cudaEventSynchronize(stop[0]));
            CUDA_SAFE_CALL(cudaEventElapsedTime(&diff[i-1],start[1],stop[1]));
        }

        for(i=0;i<num_intervals;i++)
            time += diff[i];

        /*
            GATHER PHASE ENDS
        */

        /*
            APPLY PHASE BEGINS
        */

        pingpong=0;

        for(i=0; i<num_intervals; i++)
        {
            if(pingpong==0)
            {
                //Copy Ping
                CUDA_SAFE_CALL(cudaMemcpyAsync(shard_dev, &shard[i], sizeof(shard_t),cudaMemcpyHostToDevice,str[0]));
                CUDA_SAFE_CALL(cudaMemcpyAsync(from_dev, shard[i].from, MAX_NUM_EDGES_SHARD*sizeof(int),cudaMemcpyHostToDevice,str[0]));
                CUDA_SAFE_CALL(cudaMemcpyAsync(&(shard_dev->from), &from_dev, sizeof(int *),cudaMemcpyHostToDevice,str[0]));
//                CUDA_SAFE_CALL(cudaMemcpyAsync(to_dev, shard[i].to, MAX_NUM_EDGES_SHARD*sizeof(int),cudaMemcpyHostToDevice,str[0]));
//                CUDA_SAFE_CALL(cudaMemcpyAsync(&(shard_dev->to), &to_dev, sizeof(int *),cudaMemcpyHostToDevice,str[0]));
                CUDA_SAFE_CALL(cudaMemcpyAsync(vmap_dev, shard[i].vmap, MAX_NUM_VERTICES_SHARD*sizeof(int),cudaMemcpyHostToDevice,str[0]));
                CUDA_SAFE_CALL(cudaMemcpyAsync(&(shard_dev->vmap), &vmap_dev, sizeof(int *),cudaMemcpyHostToDevice,str[0]));
                CUDA_SAFE_CALL(cudaMemcpyAsync(&(shard_dev->updates), &updates_dev, sizeof(double *),cudaMemcpyHostToDevice,str[0]));


                if(i>0)
                {
                    //Process Pong
                    CUDA_SAFE_CALL(cudaEventRecord(start[1],str[1]));
                    apply_pr_edge<<<grid, threads,0,str[1]>>> (shard_dev2, vertices, num_vertices, k);
                    CUDA_SAFE_CALL(cudaStreamSynchronize(str[1]));
                    CUDA_SAFE_CALL(cudaEventRecord(stop[1],str[1]));
                    CUDA_SAFE_CALL(cudaEventSynchronize(stop[1]));
                    CUDA_SAFE_CALL(cudaEventElapsedTime(&diff[i-1],start[1],stop[1]));

                }

                pingpong=1;
            }
            else
            {
                //Copy Pong
                CUDA_SAFE_CALL(cudaMemcpyAsync(shard_dev2, &shard[i], sizeof(shard_t),cudaMemcpyHostToDevice,str[1]));
                CUDA_SAFE_CALL(cudaMemcpyAsync(from_dev2, shard[i].from, MAX_NUM_EDGES_SHARD*sizeof(int),cudaMemcpyHostToDevice,str[1]));
                CUDA_SAFE_CALL(cudaMemcpyAsync(&(shard_dev2->from), &from_dev2, sizeof(int *),cudaMemcpyHostToDevice,str[1]));
//                CUDA_SAFE_CALL(cudaMemcpyAsync(to_dev2, shard[i].to, MAX_NUM_EDGES_SHARD*sizeof(int),cudaMemcpyHostToDevice,str[1]));
//                CUDA_SAFE_CALL(cudaMemcpyAsync(&(shard_dev2->to), &to_dev2, sizeof(int *),cudaMemcpyHostToDevice,str[1]));
                CUDA_SAFE_CALL(cudaMemcpyAsync(vmap_dev2, shard[i].vmap, MAX_NUM_VERTICES_SHARD*sizeof(int),cudaMemcpyHostToDevice,str[1]));
                CUDA_SAFE_CALL(cudaMemcpyAsync(&(shard_dev2->vmap), &vmap_dev2, sizeof(int *),cudaMemcpyHostToDevice,str[1]));
                CUDA_SAFE_CALL(cudaMemcpyAsync(&(shard_dev2->updates), &updates_dev2, sizeof(double *),cudaMemcpyHostToDevice,str[0]));

                //Process Pong
                CUDA_SAFE_CALL(cudaEventRecord(start[0],str[0]));
                apply_pr_edge<<<grid, threads,0,str[0]>>> (shard_dev, vertices, num_vertices, k);
                CUDA_SAFE_CALL(cudaStreamSynchronize(str[0]));
                CUDA_SAFE_CALL(cudaEventRecord(stop[0],str[0]));
                CUDA_SAFE_CALL(cudaEventSynchronize(stop[0]));
                CUDA_SAFE_CALL(cudaEventElapsedTime(&diff[i-1],start[0],stop[0]));

                pingpong=0;
            }
        }
        if(pingpong==0)
        {
            //Process Pong
            CUDA_SAFE_CALL(cudaEventRecord(start[1],str[1]));
            apply_pr_edge<<<grid, threads,0,str[1]>>> (shard_dev2, vertices, num_vertices, k);
            CUDA_SAFE_CALL(cudaStreamSynchronize(str[1]));
            CUDA_SAFE_CALL(cudaEventRecord(stop[1],str[1]));
            CUDA_SAFE_CALL(cudaEventSynchronize(stop[1]));
            CUDA_SAFE_CALL(cudaEventElapsedTime(&diff[i-1],start[1],stop[1]));
        }
        else
        {
            //Process Pong
            CUDA_SAFE_CALL(cudaEventRecord(start[0],str[0]));
            apply_pr_edge<<<grid, threads,0,str[0]>>> (shard_dev, vertices, num_vertices, k);
            CUDA_SAFE_CALL(cudaStreamSynchronize(str[0]));
            CUDA_SAFE_CALL(cudaEventRecord(stop[0],str[0]));
            CUDA_SAFE_CALL(cudaEventSynchronize(stop[0]));
            CUDA_SAFE_CALL(cudaEventElapsedTime(&diff[i-1],start[1],stop[1]));
        }

        for(i=0;i<num_intervals;i++)
            time += diff[i];

        /*
            APPLY PHASE ENDS
        */

        CUDA_SAFE_CALL(cudaMemcpyFromSymbol(&over, d_over, sizeof(bool),0, cudaMemcpyDeviceToHost));
        k++;
    }while(over);
    
    CUDA_SAFE_CALL(cudaDeviceSynchronize());

    gettimeofday(&t2,NULL);
    printf("Time to Pagerank : %f sec\n",((t2.tv_sec+t2.tv_usec*1.0e-6)-(t1.tv_sec+t1.tv_usec*1.0e-6)));

    printf("Number of iterations : %d\n",k);
/*    CUDA_SAFE_CALL(cudaMemcpy(vertices_host, vertices, num_vertices*sizeof(vertex_t), cudaMemcpyDeviceToHost));
    for(int i = 0; i < num_vertices; i++)
    {
        printf("Vertex %d Distance %d\n",i,(int)vertices_host[i].val);
    }*/

    printf("Time: %f ms\n",time);

    for(int i = 0; i < num_evts; i++)
    {
        CUDA_SAFE_CALL(cudaStreamDestroy(str[i]));
        CUDA_SAFE_CALL(cudaEventDestroy(start[i]));
        CUDA_SAFE_CALL(cudaEventDestroy(stop[i]));
    }

    free(interval);
    for(i=0; i<num_intervals; i++)
    {
        free(shard[i].vmap);
        free(shard[i].from);
//        free(shard[i].to);
        free(shard[i].updates);
    }
    free(shard);
    free(vertices_host);
    CUDA_SAFE_CALL(cudaFree(vertices));
    CUDA_SAFE_CALL(cudaFree(vmap_dev));
    CUDA_SAFE_CALL(cudaFree(from_dev));
//    CUDA_SAFE_CALL(cudaFree(to_dev));
    CUDA_SAFE_CALL(cudaFree(updates_dev));
    CUDA_SAFE_CALL(cudaFree(shard_dev));
    CUDA_SAFE_CALL(cudaFree(vmap_dev2));
    CUDA_SAFE_CALL(cudaFree(from_dev2));
//    CUDA_SAFE_CALL(cudaFree(to_dev2));
    CUDA_SAFE_CALL(cudaFree(updates_dev2));
    CUDA_SAFE_CALL(cudaFree(shard_dev2));

    return 0;
}

	.file	"tmpxft_002aeb25_00000000-6_bfs.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.globl	_Z4costRK6__edgeS1_
	.type	_Z4costRK6__edgeS1_, @function
_Z4costRK6__edgeS1_:
.LFB4802:
	.cfi_startproc
	endbr64
	movl	(%rsi), %edx
	movb	$1, %al
	cmpl	%edx, (%rdi)
	jl	.L1
	movb	$0, %al
	jne	.L1
	movl	4(%rsi), %eax
	cmpl	%eax, 4(%rdi)
	setl	%al
.L1:
	ret
	.cfi_endproc
.LFE4802:
	.size	_Z4costRK6__edgeS1_, .-_Z4costRK6__edgeS1_
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4826:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4826:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbRK6__edgeS4_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESE_EEbT_T0_.isra.0, @function
_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbRK6__edgeS4_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESE_EEbT_T0_.isra.0:
.LFB5744:
	.cfi_startproc
	movq	%rdi, %rax
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	jmp	*%rax
	.cfi_endproc
.LFE5744:
	.size	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbRK6__edgeS4_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESE_EEbT_T0_.isra.0, .-_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbRK6__edgeS4_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESE_EEbT_T0_.isra.0
	.align 2
	.type	_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.isra.0, @function
_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.isra.0:
.LFB5745:
	.cfi_startproc
	testq	%rdi, %rdi
	je	.L9
	movabsq	$2305843009213693951, %rax
	cmpq	%rdi, %rax
	jnb	.L10
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$4611686018427387903, %rax
	cmpq	%rdi, %rax
	jnb	.L11
	call	_ZSt28__throw_bad_array_new_lengthv@PLT
.L11:
	call	_ZSt17__throw_bad_allocv@PLT
.L10:
	.cfi_def_cfa_offset 8
	salq	$2, %rdi
	jmp	_Znwm@PLT
.L9:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE5745:
	.size	_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.isra.0, .-_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.isra.0
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Error at line %d : %s\n"
	.text
	.globl	_Z9safe_call9cudaErrori
	.type	_Z9safe_call9cudaErrori, @function
_Z9safe_call9cudaErrori:
.LFB4800:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	je	.L15
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	%esi, %ebx
	call	cudaGetErrorString@PLT
	movl	$2, %edi
	movl	%ebx, %edx
	leaq	.LC0(%rip), %rsi
	movq	%rax, %rcx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	orl	$-1, %edi
	call	exit@PLT
.L15:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	ret
	.cfi_endproc
.LFE4800:
	.size	_Z9safe_call9cudaErrori, .-_Z9safe_call9cudaErrori
	.globl	_Z12binarySearchPiiii
	.type	_Z12binarySearchPiiii, @function
_Z12binarySearchPiiii:
.LFB4801:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE4801:
	.size	_Z12binarySearchPiiii, .-_Z12binarySearchPiiii
	.globl	_Z23__device_stub__Z5resetvv
	.type	_Z23__device_stub__Z5resetvv, @function
_Z23__device_stub__Z5resetvv:
.LFB4848:
	.cfi_startproc
	endbr64
	subq	$88, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	movabsq	$4294967297, %rax
	leaq	8(%rsp), %rcx
	movq	%rsp, %rdx
	leaq	28(%rsp), %rsi
	leaq	16(%rsp), %rdi
	movl	$1, 24(%rsp)
	movl	$1, 36(%rsp)
	movq	%rax, 16(%rsp)
	movq	%rax, 28(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L22
	pushq	8(%rsp)
	.cfi_def_cfa_offset 104
	leaq	_Z5resetv(%rip), %rdi
	pushq	8(%rsp)
	.cfi_def_cfa_offset 112
	movq	44(%rsp), %rcx
	movl	52(%rsp), %r8d
	movq	32(%rsp), %rsi
	movl	40(%rsp), %edx
	leaq	80(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 104
	popq	%rdx
	.cfi_def_cfa_offset 96
.L22:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	addq	$88, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4848:
	.size	_Z23__device_stub__Z5resetvv, .-_Z23__device_stub__Z5resetvv
	.globl	_Z5resetv
	.type	_Z5resetv, @function
_Z5resetv:
.LFB4849:
	.cfi_startproc
	endbr64
	jmp	_Z23__device_stub__Z5resetvv
	.cfi_endproc
.LFE4849:
	.size	_Z5resetv, .-_Z5resetv
	.globl	_Z54__device_stub__Z14gather_pr_edgePK7__shardP8__vertexiiPK7__shardP8__vertexii
	.type	_Z54__device_stub__Z14gather_pr_edgePK7__shardP8__vertexiiPK7__shardP8__vertexii, @function
_Z54__device_stub__Z14gather_pr_edgePK7__shardP8__vertexiiPK7__shardP8__vertexii:
.LFB4850:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rdx
	movl	%ecx, 8(%rsp)
	leaq	48(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L27
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z14gather_pr_edgePK7__shardP8__vertexii(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 176
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	120(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L27:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4850:
	.size	_Z54__device_stub__Z14gather_pr_edgePK7__shardP8__vertexiiPK7__shardP8__vertexii, .-_Z54__device_stub__Z14gather_pr_edgePK7__shardP8__vertexiiPK7__shardP8__vertexii
	.globl	_Z14gather_pr_edgePK7__shardP8__vertexii
	.type	_Z14gather_pr_edgePK7__shardP8__vertexii, @function
_Z14gather_pr_edgePK7__shardP8__vertexii:
.LFB4851:
	.cfi_startproc
	endbr64
	jmp	_Z54__device_stub__Z14gather_pr_edgePK7__shardP8__vertexiiPK7__shardP8__vertexii
	.cfi_endproc
.LFE4851:
	.size	_Z14gather_pr_edgePK7__shardP8__vertexii, .-_Z14gather_pr_edgePK7__shardP8__vertexii
	.globl	_Z53__device_stub__Z13apply_pr_edgePK7__shardP8__vertexiiPK7__shardP8__vertexii
	.type	_Z53__device_stub__Z13apply_pr_edgePK7__shardP8__vertexiiPK7__shardP8__vertexii, @function
_Z53__device_stub__Z13apply_pr_edgePK7__shardP8__vertexiiPK7__shardP8__vertexii:
.LFB4852:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rdx
	movl	%ecx, 8(%rsp)
	leaq	48(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L32
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z13apply_pr_edgePK7__shardP8__vertexii(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 176
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	120(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L32:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4852:
	.size	_Z53__device_stub__Z13apply_pr_edgePK7__shardP8__vertexiiPK7__shardP8__vertexii, .-_Z53__device_stub__Z13apply_pr_edgePK7__shardP8__vertexiiPK7__shardP8__vertexii
	.globl	_Z13apply_pr_edgePK7__shardP8__vertexii
	.type	_Z13apply_pr_edgePK7__shardP8__vertexii, @function
_Z13apply_pr_edgePK7__shardP8__vertexii:
.LFB4853:
	.cfi_startproc
	endbr64
	jmp	_Z53__device_stub__Z13apply_pr_edgePK7__shardP8__vertexiiPK7__shardP8__vertexii
	.cfi_endproc
.LFE4853:
	.size	_Z13apply_pr_edgePK7__shardP8__vertexii, .-_Z13apply_pr_edgePK7__shardP8__vertexii
	.section	.rodata.str1.1
.LC1:
	.string	"_Z13apply_pr_edgePK7__shardP8__vertexii"
.LC2:
	.string	"_Z14gather_pr_edgePK7__shardP8__vertexii"
.LC3:
	.string	"_Z5resetv"
.LC4:
	.string	"d_over"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4855:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC1(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z13apply_pr_edgePK7__shardP8__vertexii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC2(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z14gather_pr_edgePK7__shardP8__vertexii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC3(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z5resetv(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC4(%rip), %rdx
	movl	$1, %r9d
	leaq	_ZL6d_over(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	call	__cudaRegisterVar@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rdx
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE4855:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.rodata._ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EEC2EmRKS3_.str1.1,"aMS",@progbits,1
.LC5:
	.string	"cannot create std::vector larger than max_size()"
	.section	.text._ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EEC2EmRKS3_,"axG",@progbits,_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EEC5EmRKS3_,comdat
	.align 2
	.weak	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EEC2EmRKS3_
	.type	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EEC2EmRKS3_, @function
_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EEC2EmRKS3_:
.LFB5162:
	.cfi_startproc
	endbr64
	movabsq	$384307168202282325, %rax
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	cmpq	%rsi, %rax
	jnb	.L40
	leaq	.LC5(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L40:
	xorl	%ecx, %ecx
	imulq	$24, %rsi, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rbp
	movq	%rcx, (%rdi)
	xorl	%eax, %eax
	movq	%rcx, 8(%rdi)
	movq	%rcx, 16(%rdi)
	testq	%rsi, %rsi
	je	.L41
	movq	%r12, %rdi
	call	_Znwm@PLT
.L41:
	addq	%rax, %r12
	movq	%rax, (%rbx)
	movq	%r12, 16(%rbx)
.L42:
	testq	%rbp, %rbp
	je	.L47
	xorl	%edx, %edx
	decq	%rbp
	addq	$24, %rax
	movq	%rdx, -24(%rax)
	movq	%rdx, -16(%rax)
	movq	%rdx, -8(%rax)
	jmp	.L42
.L47:
	movq	%r12, 8(%rbx)
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5162:
	.size	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EEC2EmRKS3_, .-_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EEC2EmRKS3_
	.weak	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EEC1EmRKS3_
	.set	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EEC1EmRKS3_,_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EEC2EmRKS3_
	.section	.text._ZNSt6vectorIiSaIiEED2Ev,"axG",@progbits,_ZNSt6vectorIiSaIiEED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIiSaIiEED2Ev
	.type	_ZNSt6vectorIiSaIiEED2Ev, @function
_ZNSt6vectorIiSaIiEED2Ev:
.LFB5180:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L48
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L48:
	ret
	.cfi_endproc
.LFE5180:
	.size	_ZNSt6vectorIiSaIiEED2Ev, .-_ZNSt6vectorIiSaIiEED2Ev
	.weak	_ZNSt6vectorIiSaIiEED1Ev
	.set	_ZNSt6vectorIiSaIiEED1Ev,_ZNSt6vectorIiSaIiEED2Ev
	.section	.text._ZNSt6vectorI6__edgeSaIS0_EED2Ev,"axG",@progbits,_ZNSt6vectorI6__edgeSaIS0_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorI6__edgeSaIS0_EED2Ev
	.type	_ZNSt6vectorI6__edgeSaIS0_EED2Ev, @function
_ZNSt6vectorI6__edgeSaIS0_EED2Ev:
.LFB5197:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L50
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L50:
	ret
	.cfi_endproc
.LFE5197:
	.size	_ZNSt6vectorI6__edgeSaIS0_EED2Ev, .-_ZNSt6vectorI6__edgeSaIS0_EED2Ev
	.weak	_ZNSt6vectorI6__edgeSaIS0_EED1Ev
	.set	_ZNSt6vectorI6__edgeSaIS0_EED1Ev,_ZNSt6vectorI6__edgeSaIS0_EED2Ev
	.section	.text._ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED2Ev,"axG",@progbits,_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED2Ev
	.type	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED2Ev, @function
_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED2Ev:
.LFB5165:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	8(%rdi), %r12
	movq	%rdi, %rbx
	movq	(%rdi), %rbp
.L53:
	cmpq	%rbp, %r12
	je	.L57
	movq	%rbp, %rdi
	addq	$24, %rbp
	call	_ZNSt6vectorI6__edgeSaIS0_EED1Ev
	jmp	.L53
.L57:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.L52
	movq	16(%rbx), %rsi
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	subq	%rdi, %rsi
	jmp	_ZdlPvm@PLT
.L52:
	.cfi_restore_state
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5165:
	.size	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED2Ev, .-_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED2Ev
	.weak	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED1Ev
	.set	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED1Ev,_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED2Ev
	.section	.rodata._ZNSt6vectorI6__edgeSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_.str1.1,"aMS",@progbits,1
.LC6:
	.string	"vector::_M_realloc_insert"
	.section	.text._ZNSt6vectorI6__edgeSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,"axG",@progbits,_ZNSt6vectorI6__edgeSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorI6__edgeSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.type	_ZNSt6vectorI6__edgeSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_, @function
_ZNSt6vectorI6__edgeSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_:
.LFB5367:
	.cfi_startproc
	endbr64
	movabsq	$-6148914691236517205, %rax
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	8(%rdi), %rbp
	movq	(%rdi), %r15
	movq	%rsi, (%rsp)
	movabsq	$768614336404564650, %rsi
	movq	%rbp, %rbx
	subq	%r15, %rbx
	sarq	$2, %rbx
	imulq	%rax, %rbx
	cmpq	%rsi, %rbx
	jne	.L59
	leaq	.LC6(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L59:
	cmpq	%r15, %rbp
	movl	$1, %eax
	movq	(%rsp), %r12
	movq	%rdi, %r13
	cmovne	%rbx, %rax
	addq	%rax, %rbx
	setc	%al
	subq	%r15, %r12
	movzbl	%al, %eax
	testq	%rax, %rax
	jne	.L69
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	je	.L64
	movabsq	$768614336404564650, %rax
	cmpq	%rax, %rbx
	cmova	%rax, %rbx
	jmp	.L63
.L69:
	movq	%rsi, %rbx
.L63:
	imulq	$12, %rbx, %rdi
	movq	%rdx, 8(%rsp)
	call	_Znwm@PLT
	movq	8(%rsp), %rdx
	movq	%rax, %r14
.L64:
	movq	(%rdx), %rax
	movq	%rax, (%r14,%r12)
	movl	8(%rdx), %eax
	movl	%eax, 8(%r14,%r12)
	testq	%r12, %r12
	jle	.L65
	movq	%r12, %rdx
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	memmove@PLT
.L65:
	movq	(%rsp), %rcx
	leaq	12(%r14,%r12), %rax
	subq	%rcx, %rbp
	testq	%rbp, %rbp
	jle	.L66
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movq	%rbp, %rcx
	rep movsb
.L66:
	addq	%rax, %rbp
	testq	%r15, %r15
	je	.L67
	movq	16(%r13), %rsi
	movq	%r15, %rdi
	subq	%r15, %rsi
	call	_ZdlPvm@PLT
.L67:
	imulq	$12, %rbx, %rax
	movq	%r14, 0(%r13)
	movq	%rbp, 8(%r13)
	leaq	(%r14,%rax), %rbx
	movq	%rbx, 16(%r13)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5367:
	.size	_ZNSt6vectorI6__edgeSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_, .-_ZNSt6vectorI6__edgeSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.section	.text._ZNSt6vectorI6__edgeSaIS0_EE9push_backERKS0_,"axG",@progbits,_ZNSt6vectorI6__edgeSaIS0_EE9push_backERKS0_,comdat
	.align 2
	.weak	_ZNSt6vectorI6__edgeSaIS0_EE9push_backERKS0_
	.type	_ZNSt6vectorI6__edgeSaIS0_EE9push_backERKS0_, @function
_ZNSt6vectorI6__edgeSaIS0_EE9push_backERKS0_:
.LFB5168:
	.cfi_startproc
	endbr64
	movq	%rsi, %rdx
	movq	8(%rdi), %rsi
	cmpq	16(%rdi), %rsi
	je	.L77
	movq	(%rdx), %rax
	addq	$12, %rsi
	movq	%rax, -12(%rsi)
	movl	8(%rdx), %eax
	movl	%eax, -4(%rsi)
	movq	%rsi, 8(%rdi)
	ret
.L77:
	jmp	_ZNSt6vectorI6__edgeSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.cfi_endproc
.LFE5168:
	.size	_ZNSt6vectorI6__edgeSaIS0_EE9push_backERKS0_, .-_ZNSt6vectorI6__edgeSaIS0_EE9push_backERKS0_
	.section	.text._ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,comdat
	.align 2
	.weak	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.type	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc, @function
_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc:
.LFB5531:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rdx, %rdi
	movq	8(%rax), %rcx
	subq	(%rax), %rcx
	movabsq	$2305843009213693951, %rax
	sarq	$2, %rcx
	movq	%rax, %rdx
	subq	%rcx, %rdx
	cmpq	%rsi, %rdx
	jnb	.L81
	pushq	%rax
	.cfi_def_cfa_offset 16
	call	_ZSt20__throw_length_errorPKc@PLT
.L81:
	.cfi_def_cfa_offset 8
	cmpq	%rcx, %rsi
	cmovb	%rcx, %rsi
	addq	%rsi, %rcx
	jc	.L80
	movabsq	$2305843009213693951, %rax
	cmpq	%rax, %rcx
	cmovbe	%rcx, %rax
.L80:
	ret
	.cfi_endproc
.LFE5531:
	.size	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc, .-_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.text
	.align 2
	.type	_ZNSt6vectorIiSaIiEE12emplace_backIJiEEERiDpOT_.isra.0, @function
_ZNSt6vectorIiSaIiEE12emplace_backIJiEEERiDpOT_.isra.0:
.LFB5764:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	8(%rdi), %rbx
	cmpq	16(%rdi), %rbx
	je	.L90
	movl	(%rsi), %eax
	addq	$4, %rbx
	movl	%eax, -4(%rbx)
	movq	%rbx, 8(%rdi)
	jmp	.L89
.L90:
	movq	%rsi, 8(%rsp)
	leaq	.LC6(%rip), %rdx
	movl	$1, %esi
	movq	%rbx, %r15
	call	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	movq	(%r14), %r12
	movq	8(%r14), %r13
	movq	%rax, %rdi
	movq	%rax, (%rsp)
	call	_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.isra.0
	movq	8(%rsp), %r8
	subq	%r12, %r15
	movq	%rax, %rbp
	movl	(%r8), %eax
	movl	%eax, 0(%rbp,%r15)
	testq	%r15, %r15
	jle	.L92
	movq	%r15, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	memmove@PLT
.L92:
	subq	%rbx, %r13
	leaq	4(%rbp,%r15), %rdi
	testq	%r13, %r13
	jle	.L93
	movq	%r13, %rdx
	movq	%rbx, %rsi
	call	memmove@PLT
	movq	%rax, %rdi
.L93:
	addq	%rdi, %r13
	testq	%r12, %r12
	je	.L94
	movq	16(%r14), %rsi
	movq	%r12, %rdi
	subq	%r12, %rsi
	call	_ZdlPvm@PLT
.L94:
	movq	(%rsp), %rax
	movq	%rbp, (%r14)
	movq	%r13, 8(%r14)
	leaq	0(%rbp,%rax,4), %rax
	movq	%rax, 16(%r14)
.L89:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5764:
	.size	_ZNSt6vectorIiSaIiEE12emplace_backIJiEEERiDpOT_.isra.0, .-_ZNSt6vectorIiSaIiEE12emplace_backIJiEEERiDpOT_.isra.0
	.section	.text._ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbRKS2_SB_EEEEvT_T0_,"axG",@progbits,_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbRKS2_SB_EEEEvT_T0_,comdat
	.weak	_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbRKS2_SB_EEEEvT_T0_
	.type	_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbRKS2_SB_EEEEvT_T0_, @function
_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbRKS2_SB_EEEEvT_T0_:
.LFB5689:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-12(%rdi), %rbx
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	movq	(%rdi), %rax
	leaq	12(%rsp), %r12
	movq	%rax, 12(%rsp)
	movl	8(%rdi), %eax
	movl	%eax, 20(%rsp)
.L100:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	*%rbp
	testb	%al, %al
	je	.L104
	movq	(%rbx), %rax
	subq	$12, %rbx
	movq	%rax, 24(%rbx)
	movl	20(%rbx), %eax
	movl	%eax, 32(%rbx)
	jmp	.L100
.L104:
	movq	12(%rsp), %rax
	movq	%rax, 12(%rbx)
	movl	20(%rsp), %eax
	movl	%eax, 20(%rbx)
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	je	.L102
	call	__stack_chk_fail@PLT
.L102:
	addq	$32, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5689:
	.size	_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbRKS2_SB_EEEEvT_T0_, .-_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbRKS2_SB_EEEEvT_T0_
	.section	.text._ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_,"axG",@progbits,_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_,comdat
	.weak	_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_
	.type	_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_, @function
_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_:
.LFB5640:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%rdx, 8(%rsp)
	cmpq	%rdi, %rsi
	je	.L105
	movq	%rdi, %rbp
	movq	%rsi, %r12
	leaq	12(%rdi), %rbx
.L107:
	cmpq	%rbx, %r12
	je	.L105
	movq	8(%rsp), %rdi
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbRK6__edgeS4_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESE_EEbT_T0_.isra.0
	testb	%al, %al
	je	.L108
	movq	%rbx, %rdx
	movl	(%rbx), %r14d
	movl	4(%rbx), %r13d
	subq	%rbp, %rdx
	movl	8(%rbx), %r15d
	cmpq	$12, %rdx
	jle	.L109
	movl	$12, %edi
	movq	%rbp, %rsi
	subq	%rdx, %rdi
	addq	%rbx, %rdi
	call	memmove@PLT
	jmp	.L110
.L109:
	jne	.L110
	movq	0(%rbp), %rax
	movq	%rax, (%rbx)
	movl	8(%rbp), %eax
	movl	%eax, 8(%rbx)
.L110:
	movl	%r14d, 0(%rbp)
	movl	%r13d, 4(%rbp)
	movl	%r15d, 8(%rbp)
	jmp	.L111
.L108:
	movq	8(%rsp), %rsi
	movq	%rbx, %rdi
	call	_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbRKS2_SB_EEEEvT_T0_
.L111:
	addq	$12, %rbx
	jmp	.L107
.L105:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5640:
	.size	_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_, .-_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_
	.section	.text._ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_T0_SG_T1_T2_,"axG",@progbits,_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_T0_SG_T1_T2_,comdat
	.weak	_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_T0_SG_T1_T2_
	.type	_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_T0_SG_T1_T2_, @function
_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_T0_SG_T1_T2_:
.LFB5724:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%r9, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rsi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rdx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rsi, %rbx
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%rcx, 16(%rsp)
	movl	$2, %ecx
	movl	%r8d, 24(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	-1(%rdx), %rax
	cqto
	idivq	%rcx
	movq	%rax, (%rsp)
.L118:
	cmpq	%rbx, (%rsp)
	jle	.L129
	leaq	1(%rbx), %rcx
	movq	%r14, %rdi
	addq	%rcx, %rcx
	imulq	$12, %rcx, %rsi
	leaq	-1(%rcx), %r15
	movq	%rcx, 8(%rsp)
	imulq	$12, %r15, %rdx
	addq	%rbp, %rsi
	addq	%rbp, %rdx
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbRK6__edgeS4_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESE_EEbT_T0_.isra.0
	movq	8(%rsp), %rcx
	testb	%al, %al
	cmove	%rcx, %r15
	imulq	$12, %rbx, %rbx
	imulq	$12, %r15, %rax
	addq	%rbp, %rbx
	addq	%rbp, %rax
	movq	(%rax), %rdx
	movq	%rdx, (%rbx)
	movl	8(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r15, %rbx
	jmp	.L118
.L129:
	testl	$1, %r12d
	jne	.L121
	leaq	-2(%r12), %rax
	movl	$2, %ecx
	cqto
	idivq	%rcx
	cmpq	%rbx, %rax
	jne	.L121
	leaq	1(%rbx,%rbx), %rdx
	imulq	$12, %rdx, %rax
	imulq	$12, %rbx, %rbx
	addq	%rbp, %rax
	movq	(%rax), %rcx
	addq	%rbp, %rbx
	movq	%rcx, (%rbx)
	movl	8(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rdx, %rbx
.L121:
	movq	16(%rsp), %rax
	movl	$2, %ecx
	movq	%rax, 44(%rsp)
	movl	24(%rsp), %eax
	movl	%eax, 52(%rsp)
	leaq	-1(%rbx), %rax
	cqto
	idivq	%rcx
	movq	%rax, %r12
	leaq	44(%rsp), %rax
	movq	%rax, (%rsp)
.L123:
	imulq	$12, %rbx, %rdx
	leaq	0(%rbp,%rdx), %r15
	cmpq	%rbx, %r13
	jge	.L122
	imulq	$12, %r12, %rbx
	movq	(%rsp), %rsi
	addq	%rbp, %rbx
	movq	%rbx, %rdi
	call	*%r14
	testb	%al, %al
	je	.L122
	movq	(%rbx), %rax
	movl	$2, %ecx
	movq	%rax, (%r15)
	movl	8(%rbx), %eax
	movq	%r12, %rbx
	movl	%eax, 8(%r15)
	leaq	-1(%r12), %rax
	cqto
	idivq	%rcx
	movq	%rax, %r12
	jmp	.L123
.L122:
	movq	44(%rsp), %rax
	movq	%rax, (%r15)
	movl	52(%rsp), %eax
	movl	%eax, 8(%r15)
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	je	.L124
	call	__stack_chk_fail@PLT
.L124:
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5724:
	.size	_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_T0_SG_T1_T2_, .-_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_T0_SG_T1_T2_
	.section	.text._ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_T1_,"axG",@progbits,_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_T1_,comdat
	.weak	_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_T1_
	.type	_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_T1_, @function
_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_T1_:
.LFB5548:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rdx, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdi, %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%rcx, 8(%rsp)
.L131:
	movq	%rbp, %r12
	subq	%rbx, %r12
	cmpq	$192, %r12
	jle	.L130
	movabsq	$-6148914691236517205, %rax
	sarq	$2, %r12
	imulq	%rax, %r12
	testq	%r13, %r13
	jne	.L132
	leaq	-2(%r12), %r13
	sarq	%r13
.L135:
	imulq	$12, %r13, %rax
	movq	8(%rsp), %r9
	movq	%r12, %rdx
	movq	%r13, %rsi
	movq	%rbx, %rdi
	movq	(%rbx,%rax), %rcx
	movl	8(%rbx,%rax), %r8d
	movq	%rcx, 20(%rsp)
	movl	%r8d, 28(%rsp)
	call	_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_T0_SG_T1_T2_
	testq	%r13, %r13
	jne	.L133
	movabsq	$-6148914691236517205, %r13
	jmp	.L134
.L133:
	decq	%r13
	jmp	.L135
.L134:
	movq	%rbp, %rax
	subq	$12, %rbp
	subq	%rbx, %rax
	cmpq	$12, %rax
	jle	.L130
	movq	(%rbx), %rax
	movq	%rbp, %rdx
	movq	0(%rbp), %rcx
	xorl	%esi, %esi
	subq	%rbx, %rdx
	movl	8(%rbp), %r8d
	movq	8(%rsp), %r9
	movq	%rbx, %rdi
	movq	%rax, 0(%rbp)
	movl	8(%rbx), %eax
	sarq	$2, %rdx
	imulq	%r13, %rdx
	movq	%rcx, 20(%rsp)
	movl	%eax, 8(%rbp)
	movl	%r8d, 28(%rsp)
	call	_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_T0_SG_T1_T2_
	jmp	.L134
.L132:
	sarq	%r12
	movq	8(%rsp), %rdi
	leaq	-12(%rbp), %r14
	imulq	$12, %r12, %rcx
	leaq	12(%rbx), %r12
	movq	%r12, %rsi
	leaq	(%rbx,%rcx), %r15
	movq	%r15, %rdx
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbRK6__edgeS4_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESE_EEbT_T0_.isra.0
	movq	%r14, %rdx
	testb	%al, %al
	je	.L138
	movq	8(%rsp), %rdi
	movq	%r15, %rsi
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbRK6__edgeS4_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESE_EEbT_T0_.isra.0
	testb	%al, %al
	je	.L139
	movl	8(%rbx), %eax
	jmp	.L143
.L139:
	movq	8(%rsp), %rdi
	movq	%r14, %rdx
	movq	%r12, %rsi
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbRK6__edgeS4_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESE_EEbT_T0_.isra.0
	testb	%al, %al
	movl	8(%rbx), %eax
	je	.L153
	jmp	.L152
.L138:
	movq	8(%rsp), %rdi
	movq	%r12, %rsi
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbRK6__edgeS4_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESE_EEbT_T0_.isra.0
	testb	%al, %al
	je	.L142
	movl	8(%rbx), %eax
.L153:
	movq	12(%rbx), %rcx
	movq	(%rbx), %rdx
	movq	%rcx, (%rbx)
	movl	20(%rbx), %ecx
	movq	%rdx, 12(%rbx)
	movl	%ecx, 8(%rbx)
	movl	%eax, 20(%rbx)
	jmp	.L140
.L142:
	movq	8(%rsp), %rdi
	movq	%r14, %rdx
	movq	%r15, %rsi
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbRK6__edgeS4_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESE_EEbT_T0_.isra.0
	testb	%al, %al
	movl	8(%rbx), %eax
	je	.L143
.L152:
	movq	-12(%rbp), %rsi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movq	%rsi, (%rbx)
	movl	-4(%rbp), %esi
	movl	%esi, 8(%rbx)
	movl	%ecx, -12(%rbp)
	movl	%edx, -8(%rbp)
	movl	%eax, -4(%rbp)
	jmp	.L140
.L143:
	movq	(%r15), %rsi
	movq	(%rbx), %rdx
	movq	%rsi, (%rbx)
	movl	8(%r15), %esi
	movl	%esi, 8(%rbx)
	movq	%rdx, (%r15)
	movl	%eax, 8(%r15)
.L140:
	movq	%rbp, %r15
.L144:
	movq	8(%rsp), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r12, %r14
	leaq	12(%r12), %r12
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbRK6__edgeS4_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESE_EEbT_T0_.isra.0
	testb	%al, %al
	jne	.L144
	leaq	-12(%r15), %r12
.L145:
	movq	8(%rsp), %rdi
	movq	%r12, %rdx
	movq	%rbx, %rsi
	movq	%r12, %r15
	subq	$12, %r12
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFbRK6__edgeS4_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESE_EEbT_T0_.isra.0
	testb	%al, %al
	jne	.L145
	cmpq	%r15, %r14
	jb	.L146
	movq	8(%rsp), %rcx
	decq	%r13
	movq	%rbp, %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	movq	%r14, %rbp
	call	_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_T1_
	jmp	.L131
.L146:
	movq	(%r15), %rsi
	movl	8(%r14), %eax
	leaq	12(%r14), %r12
	movq	(%r14), %rdx
	movq	%rsi, (%r14)
	movl	8(%r15), %esi
	movl	%esi, 8(%r14)
	movq	%rdx, (%r15)
	movl	%eax, 8(%r15)
	jmp	.L144
.L130:
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5548:
	.size	_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_T1_, .-_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_T1_
	.section	.rodata.str1.1
.LC8:
	.string	"./a.out <filename>\n"
.LC9:
	.string	"r"
.LC10:
	.string	"Error reading file.\n"
.LC11:
	.string	"Begin file reading...\n"
.LC12:
	.string	"%d %d"
.LC13:
	.string	"%d"
.LC14:
	.string	"Finished file reading.\n"
.LC15:
	.string	"\nBegin interval construction...\n"
.LC17:
	.string	"Time to construct intervals : %f sec\n"
.LC18:
	.string	"\nBegin shard construction...\n"
.LC19:
	.string	"Time to construct shards : %f sec\n"
.LC21:
	.string	"Begin kernel\n"
.LC22:
	.string	"Time to Pagerank : %f sec\n"
.LC23:
	.string	"Number of iterations : %d\n"
.LC24:
	.string	"Time: %f ms\n"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4803:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4803
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$344, %rsp
	.cfi_def_cfa_offset 400
	movq	%fs:40, %rax
	movq	%rax, 328(%rsp)
	xorl	%eax, %eax
	cmpl	$2, %edi
	je	.L155
	leaq	.LC8(%rip), %rsi
	movl	$2, %edi
	jmp	.L273
.L155:
	movl	%edi, %ebp
	movq	8(%rsi), %rdi
	leaq	.LC9(%rip), %rsi
.LEHB0:
	call	fopen@PLT
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	.L156
	leaq	.LC10(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
.L273:
	call	__printf_chk@PLT
	orl	$-1, %edi
	call	exit@PLT
.L156:
	xorl	%edi, %edi
	call	cudaSetDevice@PLT
	movl	$151, %esi
	movl	%eax, %edi
	call	_Z9safe_call9cudaErrori
	leaq	.LC11(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	116(%rsp), %rcx
	xorl	%eax, %eax
	movq	%rbx, %rdi
	leaq	112(%rsp), %rdx
	leaq	.LC12(%rip), %rsi
	call	__isoc23_fscanf@PLT
	movl	116(%rsp), %esi
	movl	$33554432, %ecx
	movl	%esi, %eax
	cltd
	idivl	%ecx
	testl	%eax, %eax
	movl	%eax, %ecx
	leal	1(%rsi), %eax
	jne	.L157
	cltd
	idivl	%ebp
	jmp	.L268
.L157:
	incl	%ecx
	cltd
	idivl	%ecx
.L268:
	movl	%eax, 8(%rsp)
	movslq	112(%rsp), %rsi
	leaq	304(%rsp), %rax
	leaq	232(%rsp), %rdi
	movq	%rax, %rdx
	movq	%rax, (%rsp)
	call	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EEC1EmRKS3_
.LEHE0:
	movslq	112(%rsp), %r12
	movl	$4, %esi
	movq	%r12, %rdi
	salq	$4, %r12
	call	calloc@PLT
	movq	%r12, %rdi
	movq	%rax, %rbp
	call	malloc@PLT
	leaq	128(%rsp), %rdi
	movq	%r12, %rsi
	movq	%rax, 48(%rsp)
.LEHB1:
	call	cudaMalloc@PLT
	movl	%eax, %edi
	movl	$171, %esi
	call	_Z9safe_call9cudaErrori
	movq	48(%rsp), %rax
	movl	112(%rsp), %ecx
	xorl	%edx, %edx
	addq	$8, %rax
.L159:
	cmpl	%edx, %ecx
	jle	.L274
	xorl	%r9d, %r9d
	incl	%edx
	addq	$16, %rax
	movl	%r9d, -16(%rax)
	movl	%r9d, -12(%rax)
	jmp	.L159
.L274:
	xorl	%r12d, %r12d
	leaq	.LC13(%rip), %r13
.L161:
	cmpl	%r12d, 116(%rsp)
	jle	.L275
	leaq	120(%rsp), %rdx
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc23_fscanf@PLT
	leaq	124(%rsp), %rdx
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc23_fscanf@PLT
	movslq	124(%rsp), %rdi
	movl	120(%rsp), %eax
	movq	(%rsp), %rsi
	movl	%edi, 308(%rsp)
	imulq	$24, %rdi, %rdi
	addq	232(%rsp), %rdi
	movl	%eax, 304(%rsp)
	call	_ZNSt6vectorI6__edgeSaIS0_EE9push_backERKS0_
	movslq	120(%rsp), %rax
	movq	48(%rsp), %rcx
	incl	%r12d
	salq	$4, %rax
	incl	12(%rcx,%rax)
	movslq	124(%rsp), %rax
	salq	$4, %rax
	incl	8(%rcx,%rax)
	jmp	.L161
.L275:
	leaq	.LC14(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC15(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.LEHE1:
	leaq	200(%rsp), %rax
	xorl	%esi, %esi
	movq	%rax, %rdi
	movq	%rax, 64(%rsp)
	call	gettimeofday@PLT
	movq	232(%rsp), %rax
	xorl	%r8d, %r8d
	movabsq	$-6148914691236517205, %rdx
	movq	%r8, 256(%rsp)
	movq	%rax, 24(%rsp)
	movq	24(%rsp), %rcx
	movq	8(%rax), %rax
	movq	%r8, 264(%rsp)
	subq	(%rcx), %rax
	movl	8(%rsp), %ecx
	movq	%r8, 272(%rsp)
	sarq	$2, %rax
	imulq	%rdx, %rax
	movl	%eax, 0(%rbp)
	cmpl	%ecx, %eax
	jle	.L240
	xorl	%edi, %edi
	movq	(%rsp), %rsi
	movl	%edi, 304(%rsp)
	leaq	256(%rsp), %rdi
.LEHB2:
	call	_ZNSt6vectorIiSaIiEE12emplace_backIJiEEERiDpOT_.isra.0
	movl	$1, 80(%rsp)
	xorl	%edx, %edx
	jmp	.L163
.L240:
	xorl	%esi, %esi
	movl	$1, %edx
	movl	%esi, 80(%rsp)
.L163:
	movq	24(%rsp), %rax
	movl	$1, %r12d
	leaq	24(%rax), %r15
.L164:
	movl	%r12d, 16(%rsp)
	cmpl	%r12d, 112(%rsp)
	jle	.L276
	movabsq	$-6148914691236517205, %rcx
	movq	8(%r15), %rax
	subq	(%r15), %rax
	sarq	$2, %rax
	imulq	%rcx, %rax
	decl	%edx
	movl	%eax, 0(%rbp,%r12,4)
	jne	.L165
	addl	-4(%rbp,%r12,4), %eax
	movl	%eax, 0(%rbp,%r12,4)
.L165:
	movl	8(%rsp), %eax
	movl	$1, %edx
	cmpl	%eax, 0(%rbp,%r12,4)
	jle	.L166
	movq	272(%rsp), %rax
	movq	264(%rsp), %rbx
	movq	%rax, 32(%rsp)
	cmpq	%rax, %rbx
	je	.L167
	movl	16(%rsp), %eax
	addq	$4, %rbx
	movl	%eax, -4(%rbx)
	movq	%rbx, 264(%rsp)
	jmp	.L168
.L167:
	leaq	256(%rsp), %rdi
	leaq	.LC6(%rip), %rdx
	movl	$1, %esi
	call	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	movq	256(%rsp), %r14
	movq	%rax, %rdi
	movq	%rax, 40(%rsp)
	subq	%r14, %rbx
	call	_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.isra.0
	movq	%rax, %r13
	movl	16(%rsp), %eax
	movl	%eax, 0(%r13,%rbx)
	testq	%rbx, %rbx
	jle	.L169
	movq	%rbx, %rdx
	movq	%r14, %rsi
	movq	%r13, %rdi
	call	memmove@PLT
.L169:
	leaq	4(%r13,%rbx), %rbx
	testq	%r14, %r14
	je	.L170
	movq	32(%rsp), %rsi
	movq	%r14, %rdi
	subq	%r14, %rsi
	call	_ZdlPvm@PLT
.L170:
	movq	40(%rsp), %rax
	movq	%r13, 256(%rsp)
	movq	%rbx, 264(%rsp)
	leaq	0(%r13,%rax,4), %rax
	movq	%rax, 272(%rsp)
.L168:
	incl	80(%rsp)
	xorl	%edx, %edx
.L166:
	incq	%r12
	addq	$24, %r15
	jmp	.L164
.L276:
	decl	%edx
	jne	.L172
	movl	%r12d, %r13d
	movq	(%rsp), %rsi
	leaq	256(%rsp), %rdi
	decl	%r13d
	movl	%r13d, 304(%rsp)
	call	_ZNSt6vectorIiSaIiEE12emplace_backIJiEEERiDpOT_.isra.0
	incl	80(%rsp)
.L172:
	movslq	80(%rsp), %rax
	leaq	0(,%rax,8), %rdi
	movq	%rax, 56(%rsp)
	call	malloc@PLT
	movq	256(%rsp), %rcx
	movq	%rax, %r15
	xorl	%eax, %eax
.L173:
	cmpl	%eax, 80(%rsp)
	jle	.L277
	xorl	%edx, %edx
	testq	%rax, %rax
	je	.L174
	movl	-4(%rcx,%rax,4), %ebx
	leal	1(%rbx), %edx
.L174:
	movl	%edx, (%r15,%rax,8)
	movl	(%rcx,%rax,4), %edx
	movl	%edx, 4(%r15,%rax,8)
	incq	%rax
	jmp	.L173
.L277:
	leaq	216(%rsp), %rdi
	xorl	%esi, %esi
	call	gettimeofday@PLT
	leaq	.LC17(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	cvtsi2sdq	224(%rsp), %xmm0
	mulsd	.LC16(%rip), %xmm0
	cvtsi2sdq	216(%rsp), %xmm1
	cvtsi2sdq	200(%rsp), %xmm2
	addsd	%xmm1, %xmm0
	cvtsi2sdq	208(%rsp), %xmm1
	mulsd	.LC16(%rip), %xmm1
	addsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	call	__printf_chk@PLT
	leaq	.LC18(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.LEHE2:
	movq	64(%rsp), %rdi
	xorl	%esi, %esi
	movl	$-2147483648, %r12d
	call	gettimeofday@PLT
	imulq	$40, 56(%rsp), %rdi
	call	malloc@PLT
	movl	$-2147483648, (%rsp)
	xorl	%edx, %edx
	movq	%rax, 32(%rsp)
.L176:
	cmpl	%edx, 80(%rsp)
	jle	.L278
	movslq	4(%r15,%rdx,8), %rcx
	movq	%rcx, %rax
	movl	0(%rbp,%rcx,4), %ecx
	cmpl	%ecx, %r12d
	cmovl	%ecx, %r12d
	subl	(%r15,%rdx,8), %eax
	incl	%eax
	cmpl	%eax, (%rsp)
	cmovge	(%rsp), %eax
	incq	%rdx
	movl	%eax, (%rsp)
	jmp	.L176
.L278:
	movslq	(%rsp), %rax
	movq	32(%rsp), %rbx
	xorl	%r13d, %r13d
	movq	%rax, 72(%rsp)
	salq	$2, %rax
	movq	%rax, 8(%rsp)
	movslq	%r12d, %rax
	leaq	0(,%rax,4), %rcx
	salq	$3, %rax
	movq	%rcx, 16(%rsp)
	movq	%rax, 64(%rsp)
.L178:
	cmpl	%r13d, 80(%rsp)
	jle	.L279
	movl	(%r15,%r13,8), %eax
	movq	8(%rsp), %rdi
	addq	$40, %rbx
	movl	%eax, -36(%rbx)
	movslq	4(%r15,%r13,8), %rax
	incq	%r13
	movl	%eax, -32(%rbx)
	movl	0(%rbp,%rax,4), %eax
	movl	%eax, -40(%rbx)
	call	malloc@PLT
	movq	16(%rsp), %rdi
	movq	%rax, -16(%rbx)
	call	malloc@PLT
	movq	64(%rsp), %rdi
	movq	%rax, -24(%rbx)
	call	malloc@PLT
	movq	%rax, -8(%rbx)
	jmp	.L178
.L279:
	xorl	%ecx, %ecx
	movq	32(%rsp), %rax
	movq	%rcx, 40(%rsp)
	leaq	24(%rax), %r14
.L180:
	movl	40(%rsp), %ecx
	cmpl	%ecx, 80(%rsp)
	jle	.L280
	movq	40(%rsp), %rax
	xorl	%edx, %edx
	movq	%rdx, 280(%rsp)
	movslq	(%r15,%rax,8), %rbx
	leaq	280(%rsp), %rax
	movq	%rdx, 288(%rsp)
	movq	%rdx, 296(%rsp)
	movl	%ebx, 84(%rsp)
	movq	%rax, 88(%rsp)
.L181:
	movq	40(%rsp), %rax
	cmpl	%ebx, 4(%r15,%rax,8)
	jl	.L281
	imulq	$24, %rbx, %r13
	movq	24(%rsp), %rax
	movq	(%rax,%r13), %rbp
.L182:
	movq	24(%rsp), %rax
	cmpq	%rbp, 8(%rax,%r13)
	je	.L282
	movq	88(%rsp), %rdi
	movq	%rbp, %rsi
.LEHB3:
	call	_ZNSt6vectorI6__edgeSaIS0_EE9push_backERKS0_
	addq	$12, %rbp
	jmp	.L182
.L282:
	incq	%rbx
	jmp	.L181
.L281:
	movq	288(%rsp), %r13
	movq	280(%rsp), %rbx
	cmpq	%r13, %rbx
	je	.L185
	movq	%r13, %rbp
	movq	%r13, %rsi
	movq	%rbx, %rdi
	movabsq	$-6148914691236517205, %rcx
	subq	%rbx, %rbp
	movq	%rbp, %rax
	sarq	$2, %rax
	imulq	%rcx, %rax
	leaq	_Z4costRK6__edgeS1_(%rip), %rcx
	bsrq	%rax, %rdx
	xorq	$63, %rdx
	testq	%rax, %rax
	movl	$64, %eax
	cmovne	%edx, %eax
	movl	$63, %edx
	subl	%eax, %edx
	movslq	%edx, %rdx
	addq	%rdx, %rdx
	call	_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_T1_
	cmpq	$192, %rbp
	jle	.L187
	leaq	192(%rbx), %rbp
	leaq	_Z4costRK6__edgeS1_(%rip), %rdx
	movq	%rbx, %rdi
	movq	%rbp, %rsi
	call	_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_
.L188:
	cmpq	%rbp, %r13
	je	.L185
	leaq	_Z4costRK6__edgeS1_(%rip), %rsi
	movq	%rbp, %rdi
	call	_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbRKS2_SB_EEEEvT_T0_
	addq	$12, %rbp
	jmp	.L188
.L187:
	leaq	_Z4costRK6__edgeS1_(%rip), %rdx
	movq	%r13, %rsi
	movq	%rbx, %rdi
	call	_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_
.L185:
	movq	72(%rsp), %rsi
	leaq	192(%rsp), %rdx
	leaq	304(%rsp), %rdi
	call	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EEC1EmRKS3_
.LEHE3:
.L191:
	movq	304(%rsp), %rdi
	cmpq	%r13, %rbx
	je	.L283
	movl	4(%rbx), %eax
	movl	84(%rsp), %ecx
	movq	%rbx, %rsi
	subl	%ecx, %eax
	cltq
	imulq	$24, %rax, %rax
	addq	%rax, %rdi
.LEHB4:
	call	_ZNSt6vectorI6__edgeSaIS0_EE9push_backERKS0_
.LEHE4:
	addq	$12, %rbx
	jmp	.L191
.L283:
	movq	%rdi, %rcx
	xorl	%edx, %edx
.L193:
	cmpl	%edx, (%rsp)
	jle	.L284
	movq	8(%rcx), %rax
	subq	(%rcx), %rax
	addq	$24, %rcx
	movabsq	$-6148914691236517205, %rbx
	sarq	$2, %rax
	movq	(%r14), %rsi
	imulq	%rbx, %rax
	movl	%eax, (%rsi,%rdx,4)
	incq	%rdx
	jmp	.L193
.L284:
	movl	$4, %eax
	movl	$1, %edx
.L195:
	movl	(%rsp), %ecx
	cmpl	%ecx, %edx
	jge	.L285
	movq	(%r14), %rcx
	incl	%edx
	movl	-4(%rcx,%rax), %esi
	addl	%esi, (%rcx,%rax)
	addq	$4, %rax
	jmp	.L195
.L285:
	xorl	%esi, %esi
	xorl	%ecx, %ecx
.L197:
	movl	(%rsp), %eax
	cmpl	%eax, %ecx
	jge	.L286
	movq	(%rdi), %r9
	movslq	%esi, %rdx
	movq	8(%rdi), %rax
	salq	$2, %rdx
	movq	%r9, %r8
.L198:
	cmpq	%r8, %rax
	je	.L287
	movl	(%r8), %r11d
	movq	-8(%r14), %r10
	addq	$12, %r8
	movl	%r11d, (%r10,%rdx)
	addq	$4, %rdx
	jmp	.L198
.L287:
	subq	%r9, %rax
	incl	%ecx
	addq	$24, %rdi
	shrq	$2, %rax
	imull	$-1431655765, %eax, %eax
	addl	%eax, %esi
	jmp	.L197
.L286:
	leaq	304(%rsp), %rdi
	addq	$40, %r14
	call	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED1Ev
	leaq	280(%rsp), %rdi
	call	_ZNSt6vectorI6__edgeSaIS0_EED1Ev
	incq	40(%rsp)
	jmp	.L180
.L280:
	leaq	216(%rsp), %rdi
	xorl	%esi, %esi
	call	gettimeofday@PLT
	leaq	.LC19(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	cvtsi2sdq	224(%rsp), %xmm0
	mulsd	.LC16(%rip), %xmm0
	cvtsi2sdq	216(%rsp), %xmm1
	cvtsi2sdq	200(%rsp), %xmm2
	addsd	%xmm1, %xmm0
	cvtsi2sdq	208(%rsp), %xmm1
	mulsd	.LC16(%rip), %xmm1
	addsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
.LEHB5:
	call	__printf_chk@PLT
	movl	$16, %edi
	xorl	%r14d, %r14d
	call	malloc@PLT
	movl	$16, %edi
	movq	%rax, %rbx
	call	malloc@PLT
	movl	$16, %edi
	movq	%rax, %r13
	call	malloc@PLT
	movq	%rax, %rbp
.L202:
	leaq	(%rbx,%r14), %rdi
	call	cudaStreamCreate@PLT
	movl	%eax, %edi
	movl	$318, %esi
	call	_Z9safe_call9cudaErrori
	leaq	0(%r13,%r14), %rdi
	call	cudaEventCreate@PLT
	movl	%eax, %edi
	movl	$319, %esi
	call	_Z9safe_call9cudaErrori
	leaq	0(%rbp,%r14), %rdi
	call	cudaEventCreate@PLT
	movl	%eax, %edi
	movl	$320, %esi
	call	_Z9safe_call9cudaErrori
	addq	$8, %r14
	cmpq	$16, %r14
	jne	.L202
	movq	56(%rsp), %rdi
	salq	$2, %rdi
	call	malloc@PLT
	leaq	136(%rsp), %rdi
	movl	$40, %esi
	movq	%rax, 24(%rsp)
	call	cudaMalloc@PLT
	movl	%eax, %edi
	movl	$333, %esi
	call	_Z9safe_call9cudaErrori
	movq	16(%rsp), %rsi
	leaq	152(%rsp), %rdi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	movl	$334, %esi
	call	_Z9safe_call9cudaErrori
	movq	8(%rsp), %rsi
	leaq	144(%rsp), %rdi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	movl	$336, %esi
	call	_Z9safe_call9cudaErrori
	movq	64(%rsp), %rsi
	leaq	160(%rsp), %rdi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	movl	$337, %esi
	call	_Z9safe_call9cudaErrori
	leaq	168(%rsp), %rdi
	movl	$40, %esi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	movl	$345, %esi
	call	_Z9safe_call9cudaErrori
	movq	16(%rsp), %rsi
	leaq	184(%rsp), %rdi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	movl	$346, %esi
	call	_Z9safe_call9cudaErrori
	movq	8(%rsp), %rsi
	leaq	176(%rsp), %rdi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	movl	$348, %esi
	call	_Z9safe_call9cudaErrori
	movq	64(%rsp), %rsi
	leaq	192(%rsp), %rdi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	movl	$349, %esi
	call	_Z9safe_call9cudaErrori
	movl	$1, %eax
	cmpl	$1024, %r12d
	jle	.L203
	cvtsi2sdl	%r12d, %xmm0
	mulsd	.LC20(%rip), %xmm0
	movl	$1024, %r12d
	call	ceil@PLT
	cvttsd2sil	%xmm0, %eax
.L203:
	movl	%eax, 280(%rsp)
	leaq	.LC21(%rip), %rsi
	movabsq	$4294967297, %rax
	movl	$2, %edi
	movq	%rax, 284(%rsp)
	movq	%rax, 308(%rsp)
	xorl	%eax, %eax
	movl	%r12d, 304(%rsp)
	call	__printf_chk@PLT
	movslq	112(%rsp), %rdx
	movq	48(%rsp), %rsi
	movl	$1, %ecx
	movq	128(%rsp), %rdi
	salq	$4, %rdx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	movl	$367, %esi
	call	_Z9safe_call9cudaErrori
	leaq	200(%rsp), %rdi
	xorl	%esi, %esi
	call	gettimeofday@PLT
	xorl	%eax, %eax
	movq	$0x000000000, 40(%rsp)
	movl	%eax, (%rsp)
.L230:
	leaq	111(%rsp), %rsi
	movl	$1, %r8d
	xorl	%ecx, %ecx
	movl	$1, %edx
	leaq	_ZL6d_over(%rip), %rdi
	movb	$0, 111(%rsp)
	call	cudaMemcpyToSymbol@PLT
	movl	%eax, %edi
	movl	$378, %esi
	call	_Z9safe_call9cudaErrori
	call	cudaDeviceSynchronize@PLT
	movl	%eax, %edi
	movl	$379, %esi
	call	_Z9safe_call9cudaErrori
	movq	24(%rsp), %rax
	leaq	184(%rsp), %rcx
	movq	32(%rsp), %r14
	xorl	%r12d, %r12d
	movq	%rcx, 72(%rsp)
	subq	$4, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 64(%rsp)
	xorl	%eax, %eax
.L204:
	cmpl	%r12d, 80(%rsp)
	jle	.L288
	testl	%eax, %eax
	jne	.L205
	movq	(%rbx), %r8
	movl	$1, %ecx
	movl	$40, %edx
	movq	%r14, %rsi
	movq	136(%rsp), %rdi
	call	cudaMemcpyAsync@PLT
	movl	%eax, %edi
	movl	$392, %esi
	call	_Z9safe_call9cudaErrori
	movq	16(%r14), %rsi
	movq	(%rbx), %r8
	movl	$1, %ecx
	movq	16(%rsp), %rdx
	movq	152(%rsp), %rdi
	call	cudaMemcpyAsync@PLT
	movl	%eax, %edi
	movl	$393, %esi
	call	_Z9safe_call9cudaErrori
	movq	136(%rsp), %rax
	movq	(%rbx), %r8
	movl	$1, %ecx
	leaq	152(%rsp), %rsi
	movl	$8, %edx
	leaq	16(%rax), %rdi
	call	cudaMemcpyAsync@PLT
	movl	%eax, %edi
	movl	$394, %esi
	call	_Z9safe_call9cudaErrori
	movq	24(%r14), %rsi
	movq	(%rbx), %r8
	movl	$1, %ecx
	movq	8(%rsp), %rdx
	movq	144(%rsp), %rdi
	call	cudaMemcpyAsync@PLT
	movl	%eax, %edi
	movl	$397, %esi
	call	_Z9safe_call9cudaErrori
	movq	136(%rsp), %rax
	movq	(%rbx), %r8
	movl	$1, %ecx
	leaq	144(%rsp), %rsi
	movl	$8, %edx
	leaq	24(%rax), %rdi
	call	cudaMemcpyAsync@PLT
	movl	%eax, %edi
	movl	$398, %esi
	call	_Z9safe_call9cudaErrori
	movq	136(%rsp), %rax
	movq	(%rbx), %r8
	movl	$1, %ecx
	leaq	160(%rsp), %rsi
	movl	$8, %edx
	leaq	32(%rax), %rdi
	call	cudaMemcpyAsync@PLT
	movl	%eax, %edi
	movl	$399, %esi
	call	_Z9safe_call9cudaErrori
	testl	%r12d, %r12d
	je	.L206
	movq	8(%rbx), %rsi
	movq	8(%r13), %rdi
	call	cudaEventRecord@PLT
	movl	%eax, %edi
	movl	$404, %esi
	call	_Z9safe_call9cudaErrori
	movl	312(%rsp), %ecx
	movq	8(%rbx), %r9
	xorl	%r8d, %r8d
	movq	304(%rsp), %rdx
	movq	280(%rsp), %rdi
	movl	288(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L207
	movl	(%rsp), %ecx
	movl	112(%rsp), %edx
	movq	128(%rsp), %rsi
	movq	168(%rsp), %rdi
	call	_Z54__device_stub__Z14gather_pr_edgePK7__shardP8__vertexiiPK7__shardP8__vertexii
.L207:
	movq	8(%rbx), %rdi
	call	cudaStreamSynchronize@PLT
	movl	%eax, %edi
	movl	$406, %esi
	call	_Z9safe_call9cudaErrori
	movq	8(%rbx), %rsi
	movq	8(%rbp), %rdi
	call	cudaEventRecord@PLT
	movl	%eax, %edi
	movl	$407, %esi
	call	_Z9safe_call9cudaErrori
	movq	8(%rbp), %rdi
	call	cudaEventSynchronize@PLT
	movl	%eax, %edi
	movl	$408, %esi
	call	_Z9safe_call9cudaErrori
	movq	8(%rbp), %rdx
	movq	8(%r13), %rsi
	movq	64(%rsp), %rdi
	call	cudaEventElapsedTime@PLT
	movl	%eax, %edi
	movl	$409, %esi
	call	_Z9safe_call9cudaErrori
	jmp	.L206
.L205:
	movq	8(%rbx), %r8
	movq	168(%rsp), %rdi
	movl	$1, %ecx
	movq	%r14, %rsi
	movl	$40, %edx
	call	cudaMemcpyAsync@PLT
	movl	%eax, %edi
	movl	$418, %esi
	call	_Z9safe_call9cudaErrori
	movq	16(%r14), %rsi
	movq	8(%rbx), %r8
	movl	$1, %ecx
	movq	16(%rsp), %rdx
	movq	184(%rsp), %rdi
	call	cudaMemcpyAsync@PLT
	movl	%eax, %edi
	movl	$419, %esi
	call	_Z9safe_call9cudaErrori
	movq	8(%rbx), %r8
	movq	72(%rsp), %rsi
	movl	$1, %ecx
	movl	$8, %edx
	movq	168(%rsp), %rax
	leaq	16(%rax), %rdi
	call	cudaMemcpyAsync@PLT
	movl	%eax, %edi
	movl	$420, %esi
	call	_Z9safe_call9cudaErrori
	movq	24(%r14), %rsi
	movq	8(%rbx), %r8
	movl	$1, %ecx
	movq	8(%rsp), %rdx
	movq	176(%rsp), %rdi
	call	cudaMemcpyAsync@PLT
	movl	%eax, %edi
	movl	$423, %esi
	call	_Z9safe_call9cudaErrori
	movq	8(%rbx), %r8
	movl	$1, %ecx
	movl	$8, %edx
	movq	168(%rsp), %rax
	leaq	176(%rsp), %rsi
	leaq	24(%rax), %rdi
	call	cudaMemcpyAsync@PLT
	movl	%eax, %edi
	movl	$424, %esi
	call	_Z9safe_call9cudaErrori
	movq	168(%rsp), %rax
	movq	(%rbx), %r8
	movl	$1, %ecx
	leaq	192(%rsp), %rsi
	movl	$8, %edx
	leaq	32(%rax), %rdi
	call	cudaMemcpyAsync@PLT
	movl	%eax, %edi
	movl	$425, %esi
	call	_Z9safe_call9cudaErrori
	movq	(%rbx), %rsi
	movq	0(%r13), %rdi
	call	cudaEventRecord@PLT
	movl	%eax, %edi
	movl	$428, %esi
	call	_Z9safe_call9cudaErrori
	movl	312(%rsp), %ecx
	movq	(%rbx), %r9
	xorl	%r8d, %r8d
	movq	304(%rsp), %rdx
	movq	280(%rsp), %rdi
	movl	288(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L208
	movl	(%rsp), %ecx
	movl	112(%rsp), %edx
	movq	128(%rsp), %rsi
	movq	136(%rsp), %rdi
	call	_Z54__device_stub__Z14gather_pr_edgePK7__shardP8__vertexiiPK7__shardP8__vertexii
.L208:
	movq	(%rbx), %rdi
	call	cudaStreamSynchronize@PLT
	movl	%eax, %edi
	movl	$430, %esi
	call	_Z9safe_call9cudaErrori
	movq	(%rbx), %rsi
	movq	0(%rbp), %rdi
	call	cudaEventRecord@PLT
	movl	%eax, %edi
	movl	$431, %esi
	call	_Z9safe_call9cudaErrori
	movq	0(%rbp), %rdi
	call	cudaEventSynchronize@PLT
	movl	%eax, %edi
	movl	$432, %esi
	call	_Z9safe_call9cudaErrori
	movq	0(%rbp), %rdx
	movq	0(%r13), %rsi
	movq	64(%rsp), %rdi
	call	cudaEventElapsedTime@PLT
	movl	%eax, %edi
	movl	$433, %esi
	call	_Z9safe_call9cudaErrori
	xorl	%eax, %eax
	jmp	.L209
.L206:
	movl	$1, %eax
.L209:
	addq	$4, 64(%rsp)
	incl	%r12d
	addq	$40, %r14
	jmp	.L204
.L288:
	testl	%eax, %eax
	jne	.L211
	movq	8(%rbx), %rsi
	movq	8(%r13), %rdi
	call	cudaEventRecord@PLT
	movl	%eax, %edi
	movl	$441, %esi
	call	_Z9safe_call9cudaErrori
	movl	312(%rsp), %ecx
	movq	8(%rbx), %r9
	xorl	%r8d, %r8d
	movq	304(%rsp), %rdx
	movq	280(%rsp), %rdi
	movl	288(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L212
	movl	(%rsp), %ecx
	movl	112(%rsp), %edx
	movq	128(%rsp), %rsi
	movq	168(%rsp), %rdi
	call	_Z54__device_stub__Z14gather_pr_edgePK7__shardP8__vertexiiPK7__shardP8__vertexii
.L212:
	movq	8(%rbx), %rdi
	call	cudaStreamSynchronize@PLT
	movl	%eax, %edi
	movl	$443, %esi
	call	_Z9safe_call9cudaErrori
	movq	8(%rbx), %rsi
	movq	8(%rbp), %rdi
	call	cudaEventRecord@PLT
	movl	%eax, %edi
	movl	$444, %esi
	call	_Z9safe_call9cudaErrori
	movq	8(%rbp), %rdi
	call	cudaEventSynchronize@PLT
	movl	%eax, %edi
	movl	$445, %esi
	call	_Z9safe_call9cudaErrori
	movq	24(%rsp), %rax
	movslq	%r12d, %r12
	movq	8(%rbp), %rdx
	movq	8(%r13), %rsi
	leaq	-4(%rax,%r12,4), %rdi
	call	cudaEventElapsedTime@PLT
	movl	%eax, %edi
	movl	$446, %esi
.L270:
	call	_Z9safe_call9cudaErrori
	xorl	%eax, %eax
	jmp	.L213
.L211:
	movq	(%rbx), %rsi
	movq	0(%r13), %rdi
	call	cudaEventRecord@PLT
	movl	%eax, %edi
	movl	$451, %esi
	call	_Z9safe_call9cudaErrori
	movl	312(%rsp), %ecx
	movq	(%rbx), %r9
	xorl	%r8d, %r8d
	movq	304(%rsp), %rdx
	movq	280(%rsp), %rdi
	movl	288(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L214
	movl	(%rsp), %ecx
	movl	112(%rsp), %edx
	movq	128(%rsp), %rsi
	movq	136(%rsp), %rdi
	call	_Z54__device_stub__Z14gather_pr_edgePK7__shardP8__vertexiiPK7__shardP8__vertexii
.L214:
	movq	(%rbx), %rdi
	call	cudaStreamSynchronize@PLT
	movl	%eax, %edi
	movl	$453, %esi
	call	_Z9safe_call9cudaErrori
	movq	(%rbx), %rsi
	movq	0(%rbp), %rdi
	call	cudaEventRecord@PLT
	movl	%eax, %edi
	movl	$454, %esi
	call	_Z9safe_call9cudaErrori
	movq	0(%rbp), %rdi
	call	cudaEventSynchronize@PLT
	movl	%eax, %edi
	movl	$455, %esi
	call	_Z9safe_call9cudaErrori
	movq	24(%rsp), %rax
	movslq	%r12d, %r12
	movq	8(%rbp), %rdx
	movq	8(%r13), %rsi
	leaq	-4(%rax,%r12,4), %rdi
	call	cudaEventElapsedTime@PLT
	movl	%eax, %edi
	movl	$456, %esi
	jmp	.L270
.L213:
	cmpl	%eax, 80(%rsp)
	jle	.L289
	movq	24(%rsp), %rcx
	cvtss2sd	(%rcx,%rax,4), %xmm0
	addsd	40(%rsp), %xmm0
	incq	%rax
	movsd	%xmm0, 40(%rsp)
	jmp	.L213
.L289:
	leaq	184(%rsp), %rcx
	movq	32(%rsp), %r14
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rcx, 64(%rsp)
.L217:
	cmpl	%r12d, 80(%rsp)
	jle	.L290
	testl	%eax, %eax
	jne	.L218
	movq	(%rbx), %r8
	movl	$1, %ecx
	movl	$40, %edx
	movq	%r14, %rsi
	movq	136(%rsp), %rdi
	call	cudaMemcpyAsync@PLT
	movl	%eax, %edi
	movl	$477, %esi
	call	_Z9safe_call9cudaErrori
	movq	16(%r14), %rsi
	movq	(%rbx), %r8
	movl	$1, %ecx
	movq	16(%rsp), %rdx
	movq	152(%rsp), %rdi
	call	cudaMemcpyAsync@PLT
	movl	%eax, %edi
	movl	$478, %esi
	call	_Z9safe_call9cudaErrori
	movq	136(%rsp), %rax
	movq	(%rbx), %r8
	movl	$1, %ecx
	leaq	152(%rsp), %rsi
	movl	$8, %edx
	leaq	16(%rax), %rdi
	call	cudaMemcpyAsync@PLT
	movl	%eax, %edi
	movl	$479, %esi
	call	_Z9safe_call9cudaErrori
	movq	24(%r14), %rsi
	movq	(%rbx), %r8
	movl	$1, %ecx
	movq	8(%rsp), %rdx
	movq	144(%rsp), %rdi
	call	cudaMemcpyAsync@PLT
	movl	%eax, %edi
	movl	$482, %esi
	call	_Z9safe_call9cudaErrori
	movq	136(%rsp), %rax
	movq	(%rbx), %r8
	movl	$1, %ecx
	leaq	144(%rsp), %rsi
	movl	$8, %edx
	leaq	24(%rax), %rdi
	call	cudaMemcpyAsync@PLT
	movl	%eax, %edi
	movl	$483, %esi
	call	_Z9safe_call9cudaErrori
	movq	136(%rsp), %rax
	movq	(%rbx), %r8
	movl	$1, %ecx
	leaq	160(%rsp), %rsi
	movl	$8, %edx
	leaq	32(%rax), %rdi
	call	cudaMemcpyAsync@PLT
	movl	%eax, %edi
	movl	$484, %esi
	call	_Z9safe_call9cudaErrori
	testl	%r12d, %r12d
	je	.L219
	movq	8(%rbx), %rsi
	movq	8(%r13), %rdi
	call	cudaEventRecord@PLT
	movl	%eax, %edi
	movl	$490, %esi
	call	_Z9safe_call9cudaErrori
	movl	312(%rsp), %ecx
	movq	8(%rbx), %r9
	xorl	%r8d, %r8d
	movq	304(%rsp), %rdx
	movq	280(%rsp), %rdi
	movl	288(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L220
	movl	(%rsp), %ecx
	movl	112(%rsp), %edx
	movq	128(%rsp), %rsi
	movq	168(%rsp), %rdi
	call	_Z53__device_stub__Z13apply_pr_edgePK7__shardP8__vertexiiPK7__shardP8__vertexii
.L220:
	movq	8(%rbx), %rdi
	call	cudaStreamSynchronize@PLT
	movl	%eax, %edi
	movl	$492, %esi
	call	_Z9safe_call9cudaErrori
	movq	8(%rbx), %rsi
	movq	8(%rbp), %rdi
	call	cudaEventRecord@PLT
	movl	%eax, %edi
	movl	$493, %esi
	call	_Z9safe_call9cudaErrori
	movq	8(%rbp), %rdi
	call	cudaEventSynchronize@PLT
	movl	%eax, %edi
	movl	$494, %esi
	call	_Z9safe_call9cudaErrori
	movq	8(%rbp), %rdx
	movq	8(%r13), %rsi
	movq	56(%rsp), %rdi
	call	cudaEventElapsedTime@PLT
	movl	%eax, %edi
	movl	$495, %esi
	call	_Z9safe_call9cudaErrori
	jmp	.L219
.L218:
	movq	8(%rbx), %r8
	movq	168(%rsp), %rdi
	movl	$1, %ecx
	movq	%r14, %rsi
	movl	$40, %edx
	call	cudaMemcpyAsync@PLT
	movl	%eax, %edi
	movl	$504, %esi
	call	_Z9safe_call9cudaErrori
	movq	16(%r14), %rsi
	movq	8(%rbx), %r8
	movl	$1, %ecx
	movq	16(%rsp), %rdx
	movq	184(%rsp), %rdi
	call	cudaMemcpyAsync@PLT
	movl	%eax, %edi
	movl	$505, %esi
	call	_Z9safe_call9cudaErrori
	movq	8(%rbx), %r8
	movq	64(%rsp), %rsi
	movl	$1, %ecx
	movl	$8, %edx
	movq	168(%rsp), %rax
	leaq	16(%rax), %rdi
	call	cudaMemcpyAsync@PLT
	movl	%eax, %edi
	movl	$506, %esi
	call	_Z9safe_call9cudaErrori
	movq	24(%r14), %rsi
	movq	8(%rbx), %r8
	movl	$1, %ecx
	movq	8(%rsp), %rdx
	movq	176(%rsp), %rdi
	call	cudaMemcpyAsync@PLT
	movl	%eax, %edi
	movl	$509, %esi
	call	_Z9safe_call9cudaErrori
	movq	8(%rbx), %r8
	movl	$1, %ecx
	movl	$8, %edx
	movq	168(%rsp), %rax
	leaq	176(%rsp), %rsi
	leaq	24(%rax), %rdi
	call	cudaMemcpyAsync@PLT
	movl	%eax, %edi
	movl	$510, %esi
	call	_Z9safe_call9cudaErrori
	movq	168(%rsp), %rax
	movq	(%rbx), %r8
	movl	$1, %ecx
	leaq	192(%rsp), %rsi
	movl	$8, %edx
	leaq	32(%rax), %rdi
	call	cudaMemcpyAsync@PLT
	movl	%eax, %edi
	movl	$511, %esi
	call	_Z9safe_call9cudaErrori
	movq	(%rbx), %rsi
	movq	0(%r13), %rdi
	call	cudaEventRecord@PLT
	movl	%eax, %edi
	movl	$514, %esi
	call	_Z9safe_call9cudaErrori
	movl	312(%rsp), %ecx
	movq	(%rbx), %r9
	xorl	%r8d, %r8d
	movq	304(%rsp), %rdx
	movq	280(%rsp), %rdi
	movl	288(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L221
	movl	(%rsp), %ecx
	movl	112(%rsp), %edx
	movq	128(%rsp), %rsi
	movq	136(%rsp), %rdi
	call	_Z53__device_stub__Z13apply_pr_edgePK7__shardP8__vertexiiPK7__shardP8__vertexii
.L221:
	movq	(%rbx), %rdi
	call	cudaStreamSynchronize@PLT
	movl	%eax, %edi
	movl	$516, %esi
	call	_Z9safe_call9cudaErrori
	movq	(%rbx), %rsi
	movq	0(%rbp), %rdi
	call	cudaEventRecord@PLT
	movl	%eax, %edi
	movl	$517, %esi
	call	_Z9safe_call9cudaErrori
	movq	0(%rbp), %rdi
	call	cudaEventSynchronize@PLT
	movl	%eax, %edi
	movl	$518, %esi
	call	_Z9safe_call9cudaErrori
	movq	0(%rbp), %rdx
	movq	0(%r13), %rsi
	movq	56(%rsp), %rdi
	call	cudaEventElapsedTime@PLT
	movl	%eax, %edi
	movl	$519, %esi
	call	_Z9safe_call9cudaErrori
	xorl	%eax, %eax
	jmp	.L222
.L219:
	movl	$1, %eax
.L222:
	addq	$4, 56(%rsp)
	incl	%r12d
	addq	$40, %r14
	jmp	.L217
.L290:
	testl	%eax, %eax
	movslq	%r12d, %r12
	jne	.L224
	movq	8(%rbx), %rsi
	movq	8(%r13), %rdi
	call	cudaEventRecord@PLT
	movl	%eax, %edi
	movl	$527, %esi
	call	_Z9safe_call9cudaErrori
	movl	312(%rsp), %ecx
	movq	8(%rbx), %r9
	xorl	%r8d, %r8d
	movq	304(%rsp), %rdx
	movq	280(%rsp), %rdi
	movl	288(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L225
	movl	(%rsp), %ecx
	movl	112(%rsp), %edx
	movq	128(%rsp), %rsi
	movq	168(%rsp), %rdi
	call	_Z53__device_stub__Z13apply_pr_edgePK7__shardP8__vertexiiPK7__shardP8__vertexii
.L225:
	movq	8(%rbx), %rdi
	call	cudaStreamSynchronize@PLT
	movl	%eax, %edi
	movl	$529, %esi
	call	_Z9safe_call9cudaErrori
	movq	8(%rbx), %rsi
	movq	8(%rbp), %rdi
	call	cudaEventRecord@PLT
	movl	%eax, %edi
	movl	$530, %esi
	call	_Z9safe_call9cudaErrori
	movq	8(%rbp), %rdi
	call	cudaEventSynchronize@PLT
	movl	%eax, %edi
	movl	$531, %esi
	call	_Z9safe_call9cudaErrori
	movq	24(%rsp), %rax
	movq	8(%rbp), %rdx
	movq	8(%r13), %rsi
	leaq	-4(%rax,%r12,4), %rdi
	call	cudaEventElapsedTime@PLT
	movl	%eax, %edi
	movl	$532, %esi
.L272:
	call	_Z9safe_call9cudaErrori
	xorl	%eax, %eax
	jmp	.L226
.L224:
	movq	(%rbx), %rsi
	movq	0(%r13), %rdi
	call	cudaEventRecord@PLT
	movl	%eax, %edi
	movl	$537, %esi
	call	_Z9safe_call9cudaErrori
	movl	312(%rsp), %ecx
	movq	(%rbx), %r9
	xorl	%r8d, %r8d
	movq	304(%rsp), %rdx
	movq	280(%rsp), %rdi
	movl	288(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L227
	movl	(%rsp), %ecx
	movl	112(%rsp), %edx
	movq	128(%rsp), %rsi
	movq	136(%rsp), %rdi
	call	_Z53__device_stub__Z13apply_pr_edgePK7__shardP8__vertexiiPK7__shardP8__vertexii
.L227:
	movq	(%rbx), %rdi
	call	cudaStreamSynchronize@PLT
	movl	%eax, %edi
	movl	$539, %esi
	call	_Z9safe_call9cudaErrori
	movq	(%rbx), %rsi
	movq	0(%rbp), %rdi
	call	cudaEventRecord@PLT
	movl	%eax, %edi
	movl	$540, %esi
	call	_Z9safe_call9cudaErrori
	movq	0(%rbp), %rdi
	call	cudaEventSynchronize@PLT
	movl	%eax, %edi
	movl	$541, %esi
	call	_Z9safe_call9cudaErrori
	movq	24(%rsp), %rax
	movq	8(%rbp), %rdx
	movq	8(%r13), %rsi
	leaq	-4(%rax,%r12,4), %rdi
	call	cudaEventElapsedTime@PLT
	movl	%eax, %edi
	movl	$542, %esi
	jmp	.L272
.L226:
	cmpl	%eax, 80(%rsp)
	jle	.L291
	movq	24(%rsp), %rcx
	cvtss2sd	(%rcx,%rax,4), %xmm0
	addsd	40(%rsp), %xmm0
	incq	%rax
	movsd	%xmm0, 40(%rsp)
	jmp	.L226
.L291:
	leaq	111(%rsp), %rdi
	movl	$2, %r8d
	xorl	%ecx, %ecx
	movl	$1, %edx
	leaq	_ZL6d_over(%rip), %rsi
	call	cudaMemcpyFromSymbol@PLT
	movl	%eax, %edi
	movl	$552, %esi
	call	_Z9safe_call9cudaErrori
	incl	(%rsp)
	cmpb	$0, 111(%rsp)
	jne	.L230
	call	cudaDeviceSynchronize@PLT
	movl	%eax, %edi
	movl	$556, %esi
	call	_Z9safe_call9cudaErrori
	leaq	216(%rsp), %rdi
	xorl	%esi, %esi
	call	gettimeofday@PLT
	movsd	.LC16(%rip), %xmm2
	leaq	.LC22(%rip), %rsi
	movb	$1, %al
	cvtsi2sdq	224(%rsp), %xmm0
	movl	$2, %edi
	cvtsi2sdq	216(%rsp), %xmm1
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	cvtsi2sdq	208(%rsp), %xmm1
	mulsd	%xmm2, %xmm1
	cvtsi2sdq	200(%rsp), %xmm2
	addsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	call	__printf_chk@PLT
	movl	(%rsp), %edx
	leaq	.LC23(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movsd	40(%rsp), %xmm0
	leaq	.LC24(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	call	__printf_chk@PLT
	xorl	%r12d, %r12d
.L231:
	movq	(%rbx,%r12), %rdi
	call	cudaStreamDestroy@PLT
	movl	%eax, %edi
	movl	$572, %esi
	call	_Z9safe_call9cudaErrori
	movq	0(%r13,%r12), %rdi
	call	cudaEventDestroy@PLT
	movl	%eax, %edi
	movl	$573, %esi
	call	_Z9safe_call9cudaErrori
	movq	0(%rbp,%r12), %rdi
	call	cudaEventDestroy@PLT
	movl	%eax, %edi
	movl	$574, %esi
	call	_Z9safe_call9cudaErrori
	cmpq	$8, %r12
	je	.L292
	movl	$8, %r12d
	jmp	.L231
.L292:
	movq	%r15, %rdi
	xorl	%ebp, %ebp
	call	free@PLT
	movq	32(%rsp), %rax
	leaq	16(%rax), %rbx
.L232:
	cmpl	%ebp, 80(%rsp)
	jle	.L293
	movq	8(%rbx), %rdi
	incl	%ebp
	addq	$40, %rbx
	call	free@PLT
	movq	-40(%rbx), %rdi
	call	free@PLT
	movq	-24(%rbx), %rdi
	call	free@PLT
	jmp	.L232
.L293:
	movq	32(%rsp), %rdi
	call	free@PLT
	movq	48(%rsp), %rdi
	call	free@PLT
	movq	128(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %edi
	movl	$587, %esi
	call	_Z9safe_call9cudaErrori
	movq	144(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %edi
	movl	$588, %esi
	call	_Z9safe_call9cudaErrori
	movq	152(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %edi
	movl	$589, %esi
	call	_Z9safe_call9cudaErrori
	movq	160(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %edi
	movl	$591, %esi
	call	_Z9safe_call9cudaErrori
	movq	136(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %edi
	movl	$592, %esi
	call	_Z9safe_call9cudaErrori
	movq	176(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %edi
	movl	$593, %esi
	call	_Z9safe_call9cudaErrori
	movq	184(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %edi
	movl	$594, %esi
	call	_Z9safe_call9cudaErrori
	movq	192(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %edi
	movl	$596, %esi
	call	_Z9safe_call9cudaErrori
	movq	168(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %edi
	movl	$597, %esi
	call	_Z9safe_call9cudaErrori
.LEHE5:
	leaq	256(%rsp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	leaq	232(%rsp), %rdi
	call	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED1Ev
	movq	328(%rsp), %rax
	subq	%fs:40, %rax
	je	.L239
	jmp	.L266
.L251:
	endbr64
	movq	%rax, %rbx
.L234:
	leaq	304(%rsp), %rdi
	call	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED1Ev
	jmp	.L235
.L250:
	endbr64
	movq	%rax, %rbx
.L235:
	leaq	280(%rsp), %rdi
	call	_ZNSt6vectorI6__edgeSaIS0_EED1Ev
	jmp	.L236
.L249:
	endbr64
	movq	%rax, %rbx
.L236:
	leaq	256(%rsp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	jmp	.L237
.L248:
	endbr64
	movq	%rax, %rbx
.L237:
	leaq	232(%rsp), %rdi
	call	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED1Ev
	movq	328(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L266
	movq	%rbx, %rdi
.LEHB6:
	call	_Unwind_Resume@PLT
.LEHE6:
.L266:
	call	__stack_chk_fail@PLT
.L239:
	addq	$344, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4803:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4803:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4803-.LLSDACSB4803
.LLSDACSB4803:
	.uleb128 .LEHB0-.LFB4803
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB4803
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L248-.LFB4803
	.uleb128 0
	.uleb128 .LEHB2-.LFB4803
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L249-.LFB4803
	.uleb128 0
	.uleb128 .LEHB3-.LFB4803
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L250-.LFB4803
	.uleb128 0
	.uleb128 .LEHB4-.LFB4803
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L251-.LFB4803
	.uleb128 0
	.uleb128 .LEHB5-.LFB4803
	.uleb128 .LEHE5-.LEHB5
	.uleb128 .L249-.LFB4803
	.uleb128 0
	.uleb128 .LEHB6-.LFB4803
	.uleb128 .LEHE6-.LEHB6
	.uleb128 0
	.uleb128 0
.LLSDACSE4803:
	.section	.text.startup
	.size	main, .-main
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.local	_ZL6d_over
	.comm	_ZL6d_over,1,1
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC16:
	.long	-1598689907
	.long	1051772663
	.align 8
.LC20:
	.long	0
	.long	1062207488
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <iostream>
#include <vector>
#include <set>
#include <map>
#include <algorithm>
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <sys/time.h>
#include <cmath>

using namespace std;

#define CUDA_SAFE_CALL( err ) (safe_call(err, __LINE__))
#define MAX_THREADS_PER_BLOCK 1024
#define GLOBAL_MAX_EDGES_PER_SHARD 33554432 
#define ERR 0.01

void safe_call(hipError_t ret, int line)
{
    if(ret!=hipSuccess)
    {
        printf("Error at line %d : %s\n",line,hipGetErrorString(ret));
        exit(-1);
    }
}

typedef struct __interval
{
    int start;
    int end;
} interval_t;

typedef struct __edge
{
    int src;
    int dest;
    int val;
} edge_t;

typedef struct __vertex
{
    double val;
    int numInEdges;
    int numOutEdges;
} vertex_t;

typedef struct __shard
{
    int E;
    int Vstart;
    int Vend;
    int * from;
//    int * to;
    int * vmap;
    double * updates;
} shard_t;

__device__ bool d_over;

__global__ void reset()
{
    d_over = false;
}

__device__ int binarySearch(int * arr, int l, int r, int x)
{
    if(x < arr[l])
        return l;
    while (l <= r)
    {
        int m = l+((r-l)/2);
        if (arr[m] == x)
        {
            int t = m;
            while(t<r && arr[t+1] == arr[t])
            {
                t++;
            }
            return t+1;
        }
        if (arr[m] < x) l = m + 1;
        else r = m - 1;
    }
    return l;
}

__global__ void gather_pr_edge(const shard_t * shard, vertex_t * vertices, int num_vertices, int current_depth)
{
    if(current_depth > 0)
    {
        int id = blockDim.x*blockIdx.x + threadIdx.x;
        if(id < shard->E)
        {
            int s = shard->from[id];
            int V = shard->Vend - shard->Vstart + 1;
            int d = shard->Vstart + binarySearch(shard->vmap, 0, V-1, id);
            if(vertices[s].val == current_depth-1 && vertices[d].val == -1) 
            {
                vertices[d].val = current_depth;
                d_over = true;
            }
        }
    }
}

__global__ void apply_pr_edge(const shard_t * shard, vertex_t * vertices, int num_vertices, int current_depth)
{
    int id = blockDim.x*blockIdx.x + threadIdx.x;
    int vid = id + shard->Vstart;
    if(vid <= shard->Vend)
    {
        if(current_depth == 0)
        {
            d_over = true;
            if(vid == 0)
                vertices[vid].val = 0;
            else
                vertices[vid].val = -1;
        }
    }
}

bool cost(const edge_t &a, const edge_t &b)
{
    return ((a.src < b.src) || (a.src == b.src && a.dest < b.dest));
}

int main(int argc, char * argv[])
{
    struct timeval t1,t2;
    static char * filename;
    if(argc!=2)
    {
        printf("./a.out <filename>\n");
        exit(-1);
    }
    else
    {
        filename = argv[1];
    }

    FILE * fp = fopen(filename,"r");
    if(!fp)
    {
        printf("Error reading file.\n");
        exit(-1);
    }

    /* Set cuda device to K40  */
    CUDA_SAFE_CALL(hipSetDevice(0));

    printf("Begin file reading...\n");

    /* Get graph from file into CPU memory  */
    int num_vertices, num_edges, i, j, k;
    fscanf(fp,"%d %d",&num_vertices,&num_edges);

    //We are always going to have atleast 2 shards to have double bufferring
    int ns = num_edges / GLOBAL_MAX_EDGES_PER_SHARD;
    int MAX_EDGES_PER_SHARD = (ns == 0) ? (num_edges + 1)/2 : (num_edges + 1)/(ns + 1); //We do this to balance the no of edges in the shards

    //Array of vectors. vector i contains the out edges of vertex i
    vector< vector<edge_t> > inEdges(num_vertices);
    int * prefixV = (int *) calloc(num_vertices,sizeof(int));
    int s,d;

    // It will contain the visited status of each vertex
    vertex_t *vertices;
    vertex_t *vertices_host = (vertex_t *) malloc(num_vertices*sizeof(vertex_t));
    CUDA_SAFE_CALL(hipMalloc((void **)&vertices, num_vertices*sizeof(vertex_t)));

    //Initialise the vertices
    for(i=0; i<num_vertices; i++)
    {
        vertices_host[i].numInEdges = 0;
        vertices_host[i].numOutEdges = 0;
    }
    
    for(i=0; i<num_edges; i++)
    {
        fscanf(fp,"%d",&s);
        fscanf(fp,"%d",&d);
        edge_t e;
        e.src=s;
        e.dest=d;
        inEdges[d].push_back(e);
        vertices_host[s].numOutEdges++;
        vertices_host[d].numInEdges++;
    }
    printf("Finished file reading.\n");

    printf("\nBegin interval construction...\n");

    // Construction of intervals
    gettimeofday(&t1,NULL);
    int num_intervals = 0, add = 1;
    vector<int> startInter;
    prefixV[0] = inEdges[0].size();
    if(prefixV[0] > MAX_EDGES_PER_SHARD)
    {
        startInter.push_back(0);
        num_intervals++;
        add = 0;
    }
    for(i=1; i<num_vertices; i++)
    {
        prefixV[i] = inEdges[i].size();    
        if(add==1)
            prefixV[i] += prefixV[i-1];
        if(prefixV[i] > MAX_EDGES_PER_SHARD)
        {
            startInter.push_back(i);
            num_intervals++;
            add = 0;
        }
        else
            add = 1;
    }
    if(add==1)
    {
        startInter.push_back(i-1);
        num_intervals++;
    }


    interval_t * interval = (interval_t *) malloc(num_intervals*sizeof(interval_t));
    for(i=0; i<num_intervals; i++)
    {
        interval[i].start = (i == 0) ? 0 : (startInter[i-1]+1);
        interval[i].end = startInter[i];
    }
    gettimeofday(&t2,NULL);
    printf("Time to construct intervals : %f sec\n",((t2.tv_sec+t2.tv_usec*1.0e-6)-(t1.tv_sec+t1.tv_usec*1.0e-6)));


    printf("\nBegin shard construction...\n");
    //Construction of shard
    gettimeofday(&t1,NULL);
    shard_t * shard = (shard_t *) malloc(num_intervals*sizeof(shard_t));

    //Finding the max number of edges in a shard
    // We will allocate space for that many edges to each shard to maintain consistency
    int MAX_NUM_EDGES_SHARD = INT_MIN;
    int MAX_NUM_VERTICES_SHARD = INT_MIN;

    for(i=0; i<num_intervals; i++)
    {
        int t = prefixV[interval[i].end];
        if(t > MAX_NUM_EDGES_SHARD)
            MAX_NUM_EDGES_SHARD = t;
        int q = interval[i].end-interval[i].start+1;
        if(q > MAX_NUM_VERTICES_SHARD)
            MAX_NUM_VERTICES_SHARD = q;
    }

    for(i=0; i<num_intervals; i++)
    {
        // first and last vertices in shard
        shard[i].Vstart = interval[i].start;
        shard[i].Vend = interval[i].end;
        shard[i].E = prefixV[interval[i].end]; 

        shard[i].vmap = (int *) malloc(MAX_NUM_VERTICES_SHARD*sizeof(int));
        shard[i].from = (int *) malloc(MAX_NUM_EDGES_SHARD*sizeof(int));
//        shard[i].to = (int *) malloc(MAX_NUM_EDGES_SHARD*sizeof(int));
    shard[i].updates = (double *) malloc(MAX_NUM_EDGES_SHARD*sizeof(double));
    }

    for(i=0; i<num_intervals; i++)
    {
        vector<edge_t> tempEdges;
        for(j=interval[i].start; j<=interval[i].end; j++)
        {
            for(vector<edge_t>::iterator it=inEdges[j].begin(); it!=inEdges[j].end(); ++it)
                tempEdges.push_back(*it);
        }

        //Sorting based on src vertex to align the edges such that the access of vertices[src] is sequential
        sort(tempEdges.begin(),tempEdges.end(),cost);

        vector< vector<edge_t> > bucket(MAX_NUM_VERTICES_SHARD);
        for (vector<edge_t>::iterator it = tempEdges.begin() ; it != tempEdges.end(); ++it)
        {
            bucket[(*it).dest-interval[i].start].push_back(*it);
        }
        for(j=0;j<MAX_NUM_VERTICES_SHARD;j++)
        {
            shard[i].vmap[j] = bucket[j].size();
        }
        for(j=1;j<MAX_NUM_VERTICES_SHARD;j++)
        {
            shard[i].vmap[j] += shard[i].vmap[j-1];
        }
        k=0;
        for(j=0;j<MAX_NUM_VERTICES_SHARD;j++)
        {
            for (vector<edge_t>::iterator it = bucket[j].begin() ; it != bucket[j].end(); ++it)
            {
                shard[i].from[k] = (*it).src;
//                shard[i].to[k] = (*it).dest;
                k++;
            }
        }
    }
    gettimeofday(&t2,NULL);
    printf("Time to construct shards : %f sec\n",((t2.tv_sec+t2.tv_usec*1.0e-6)-(t1.tv_sec+t1.tv_usec*1.0e-6)));

    hipStream_t * str;
    hipEvent_t * start;
    hipEvent_t * stop;
    int num_evts=2;
    str = (hipStream_t *) malloc(num_evts * sizeof(hipStream_t));
    start = (hipEvent_t *) malloc(num_evts * sizeof(hipEvent_t));
    stop = (hipEvent_t *) malloc(num_evts * sizeof(hipEvent_t));
    for(int i = 0; i < num_evts; i++)
    {
        CUDA_SAFE_CALL(hipStreamCreate(&(str[i])));
        CUDA_SAFE_CALL(hipEventCreate(&(start[i])));
        CUDA_SAFE_CALL(hipEventCreate(&(stop[i])));
    }

    
    float * diff = (float *) malloc(num_intervals*sizeof(float));
    double time = 0;

    // For vertex centric algo
    shard_t * shard_dev;
    int * vmap_dev;
    int * from_dev;
//    int * to_dev;
    double * updates_dev;
    CUDA_SAFE_CALL(hipMalloc((void **)&shard_dev, sizeof(shard_t)));
    CUDA_SAFE_CALL(hipMalloc((void **)&from_dev, MAX_NUM_EDGES_SHARD*sizeof(int)));
//    CUDA_SAFE_CALL(cudaMalloc((void **)&to_dev, MAX_NUM_EDGES_SHARD*sizeof(int)));
    CUDA_SAFE_CALL(hipMalloc((void **)&vmap_dev, MAX_NUM_VERTICES_SHARD*sizeof(int)));
    CUDA_SAFE_CALL(hipMalloc((void **)&updates_dev, MAX_NUM_EDGES_SHARD*sizeof(double)));

    //Extra Buffer for doing double bufferring
    shard_t * shard_dev2;
    int * vmap_dev2;
    int * from_dev2;
//    int * to_dev2;
    double * updates_dev2;
    CUDA_SAFE_CALL(hipMalloc((void **)&shard_dev2, sizeof(shard_t)));
    CUDA_SAFE_CALL(hipMalloc((void **)&from_dev2, MAX_NUM_EDGES_SHARD*sizeof(int)));
//    CUDA_SAFE_CALL(cudaMalloc((void **)&to_dev2, MAX_NUM_EDGES_SHARD*sizeof(int)));
    CUDA_SAFE_CALL(hipMalloc((void **)&vmap_dev2, MAX_NUM_VERTICES_SHARD*sizeof(int)));
    CUDA_SAFE_CALL(hipMalloc((void **)&updates_dev2, MAX_NUM_EDGES_SHARD*sizeof(double)));

    int num_of_blocks = 1;
    //int MAX_THREADS = MAX_NUM_VERTICES_SHARD;
    int MAX_THREADS = MAX_NUM_EDGES_SHARD;
    int num_of_threads_per_block = MAX_THREADS;

    if(MAX_THREADS>MAX_THREADS_PER_BLOCK)
    {
        num_of_blocks = (int)ceil(MAX_THREADS/(double)MAX_THREADS_PER_BLOCK); 
        num_of_threads_per_block = MAX_THREADS_PER_BLOCK; 
    }

    dim3  grid( num_of_blocks, 1, 1);
    dim3  threads( num_of_threads_per_block, 1, 1);

    printf("Begin kernel\n");

    CUDA_SAFE_CALL(hipMemcpy(vertices,vertices_host,num_vertices*sizeof(vertex_t),hipMemcpyHostToDevice));

    int pingpong;
    bool over;
    k=0;

    gettimeofday(&t1,NULL);

    do
    {
        over = false;
        CUDA_SAFE_CALL(hipMemcpyToSymbol(HIP_SYMBOL(d_over), &over, sizeof(bool),0, hipMemcpyHostToDevice));
        CUDA_SAFE_CALL(hipDeviceSynchronize());

        /*
            GATHER PHASE BEGINS
        */

        pingpong=0;

        for(i=0; i<num_intervals; i++)
        {
            if(pingpong==0)
            {
                //Copy Ping
                CUDA_SAFE_CALL(hipMemcpyAsync(shard_dev, &shard[i], sizeof(shard_t),hipMemcpyHostToDevice,str[0]));
                CUDA_SAFE_CALL(hipMemcpyAsync(from_dev, shard[i].from, MAX_NUM_EDGES_SHARD*sizeof(int),hipMemcpyHostToDevice,str[0]));
                CUDA_SAFE_CALL(hipMemcpyAsync(&(shard_dev->from), &from_dev, sizeof(int *),hipMemcpyHostToDevice,str[0]));
//                CUDA_SAFE_CALL(cudaMemcpyAsync(to_dev, shard[i].to, MAX_NUM_EDGES_SHARD*sizeof(int),cudaMemcpyHostToDevice,str[0]));
//                CUDA_SAFE_CALL(cudaMemcpyAsync(&(shard_dev->to), &to_dev, sizeof(int *),cudaMemcpyHostToDevice,str[0]));
                CUDA_SAFE_CALL(hipMemcpyAsync(vmap_dev, shard[i].vmap, MAX_NUM_VERTICES_SHARD*sizeof(int),hipMemcpyHostToDevice,str[0]));
                CUDA_SAFE_CALL(hipMemcpyAsync(&(shard_dev->vmap), &vmap_dev, sizeof(int *),hipMemcpyHostToDevice,str[0]));
                CUDA_SAFE_CALL(hipMemcpyAsync(&(shard_dev->updates), &updates_dev, sizeof(double *),hipMemcpyHostToDevice,str[0]));

                if(i>0)
                {
                    //Process Pong
                    CUDA_SAFE_CALL(hipEventRecord(start[1],str[1]));
                    gather_pr_edge<<<grid, threads,0,str[1]>>> (shard_dev2, vertices, num_vertices, k);
                    CUDA_SAFE_CALL(hipStreamSynchronize(str[1]));
                    CUDA_SAFE_CALL(hipEventRecord(stop[1],str[1]));
                    CUDA_SAFE_CALL(hipEventSynchronize(stop[1]));
                    CUDA_SAFE_CALL(hipEventElapsedTime(&diff[i-1],start[1],stop[1]));

                }

                pingpong=1;
            }
            else
            {
                //Copy Pong
                CUDA_SAFE_CALL(hipMemcpyAsync(shard_dev2, &shard[i], sizeof(shard_t),hipMemcpyHostToDevice,str[1]));
                CUDA_SAFE_CALL(hipMemcpyAsync(from_dev2, shard[i].from, MAX_NUM_EDGES_SHARD*sizeof(int),hipMemcpyHostToDevice,str[1]));
                CUDA_SAFE_CALL(hipMemcpyAsync(&(shard_dev2->from), &from_dev2, sizeof(int *),hipMemcpyHostToDevice,str[1]));
//                CUDA_SAFE_CALL(cudaMemcpyAsync(to_dev2, shard[i].to, MAX_NUM_EDGES_SHARD*sizeof(int),cudaMemcpyHostToDevice,str[1]));
//                CUDA_SAFE_CALL(cudaMemcpyAsync(&(shard_dev2->to), &to_dev2, sizeof(int *),cudaMemcpyHostToDevice,str[1]));
                CUDA_SAFE_CALL(hipMemcpyAsync(vmap_dev2, shard[i].vmap, MAX_NUM_VERTICES_SHARD*sizeof(int),hipMemcpyHostToDevice,str[1]));
                CUDA_SAFE_CALL(hipMemcpyAsync(&(shard_dev2->vmap), &vmap_dev2, sizeof(int *),hipMemcpyHostToDevice,str[1]));
                CUDA_SAFE_CALL(hipMemcpyAsync(&(shard_dev2->updates), &updates_dev2, sizeof(double *),hipMemcpyHostToDevice,str[0]));

                //Process Pong
                CUDA_SAFE_CALL(hipEventRecord(start[0],str[0]));
                gather_pr_edge<<<grid, threads,0,str[0]>>> (shard_dev, vertices, num_vertices, k);
                CUDA_SAFE_CALL(hipStreamSynchronize(str[0]));
                CUDA_SAFE_CALL(hipEventRecord(stop[0],str[0]));
                CUDA_SAFE_CALL(hipEventSynchronize(stop[0]));
                CUDA_SAFE_CALL(hipEventElapsedTime(&diff[i-1],start[0],stop[0]));

                pingpong=0;
            }
        }
        if(pingpong==0)
        {
            //Process Pong
            CUDA_SAFE_CALL(hipEventRecord(start[1],str[1]));
            gather_pr_edge<<<grid, threads,0,str[1]>>> (shard_dev2, vertices, num_vertices, k);
            CUDA_SAFE_CALL(hipStreamSynchronize(str[1]));
            CUDA_SAFE_CALL(hipEventRecord(stop[1],str[1]));
            CUDA_SAFE_CALL(hipEventSynchronize(stop[1]));
            CUDA_SAFE_CALL(hipEventElapsedTime(&diff[i-1],start[1],stop[1]));
        }
        else
        {
            //Process Pong
            CUDA_SAFE_CALL(hipEventRecord(start[0],str[0]));
            gather_pr_edge<<<grid, threads,0,str[0]>>> (shard_dev, vertices, num_vertices, k);
            CUDA_SAFE_CALL(hipStreamSynchronize(str[0]));
            CUDA_SAFE_CALL(hipEventRecord(stop[0],str[0]));
            CUDA_SAFE_CALL(hipEventSynchronize(stop[0]));
            CUDA_SAFE_CALL(hipEventElapsedTime(&diff[i-1],start[1],stop[1]));
        }

        for(i=0;i<num_intervals;i++)
            time += diff[i];

        /*
            GATHER PHASE ENDS
        */

        /*
            APPLY PHASE BEGINS
        */

        pingpong=0;

        for(i=0; i<num_intervals; i++)
        {
            if(pingpong==0)
            {
                //Copy Ping
                CUDA_SAFE_CALL(hipMemcpyAsync(shard_dev, &shard[i], sizeof(shard_t),hipMemcpyHostToDevice,str[0]));
                CUDA_SAFE_CALL(hipMemcpyAsync(from_dev, shard[i].from, MAX_NUM_EDGES_SHARD*sizeof(int),hipMemcpyHostToDevice,str[0]));
                CUDA_SAFE_CALL(hipMemcpyAsync(&(shard_dev->from), &from_dev, sizeof(int *),hipMemcpyHostToDevice,str[0]));
//                CUDA_SAFE_CALL(cudaMemcpyAsync(to_dev, shard[i].to, MAX_NUM_EDGES_SHARD*sizeof(int),cudaMemcpyHostToDevice,str[0]));
//                CUDA_SAFE_CALL(cudaMemcpyAsync(&(shard_dev->to), &to_dev, sizeof(int *),cudaMemcpyHostToDevice,str[0]));
                CUDA_SAFE_CALL(hipMemcpyAsync(vmap_dev, shard[i].vmap, MAX_NUM_VERTICES_SHARD*sizeof(int),hipMemcpyHostToDevice,str[0]));
                CUDA_SAFE_CALL(hipMemcpyAsync(&(shard_dev->vmap), &vmap_dev, sizeof(int *),hipMemcpyHostToDevice,str[0]));
                CUDA_SAFE_CALL(hipMemcpyAsync(&(shard_dev->updates), &updates_dev, sizeof(double *),hipMemcpyHostToDevice,str[0]));


                if(i>0)
                {
                    //Process Pong
                    CUDA_SAFE_CALL(hipEventRecord(start[1],str[1]));
                    apply_pr_edge<<<grid, threads,0,str[1]>>> (shard_dev2, vertices, num_vertices, k);
                    CUDA_SAFE_CALL(hipStreamSynchronize(str[1]));
                    CUDA_SAFE_CALL(hipEventRecord(stop[1],str[1]));
                    CUDA_SAFE_CALL(hipEventSynchronize(stop[1]));
                    CUDA_SAFE_CALL(hipEventElapsedTime(&diff[i-1],start[1],stop[1]));

                }

                pingpong=1;
            }
            else
            {
                //Copy Pong
                CUDA_SAFE_CALL(hipMemcpyAsync(shard_dev2, &shard[i], sizeof(shard_t),hipMemcpyHostToDevice,str[1]));
                CUDA_SAFE_CALL(hipMemcpyAsync(from_dev2, shard[i].from, MAX_NUM_EDGES_SHARD*sizeof(int),hipMemcpyHostToDevice,str[1]));
                CUDA_SAFE_CALL(hipMemcpyAsync(&(shard_dev2->from), &from_dev2, sizeof(int *),hipMemcpyHostToDevice,str[1]));
//                CUDA_SAFE_CALL(cudaMemcpyAsync(to_dev2, shard[i].to, MAX_NUM_EDGES_SHARD*sizeof(int),cudaMemcpyHostToDevice,str[1]));
//                CUDA_SAFE_CALL(cudaMemcpyAsync(&(shard_dev2->to), &to_dev2, sizeof(int *),cudaMemcpyHostToDevice,str[1]));
                CUDA_SAFE_CALL(hipMemcpyAsync(vmap_dev2, shard[i].vmap, MAX_NUM_VERTICES_SHARD*sizeof(int),hipMemcpyHostToDevice,str[1]));
                CUDA_SAFE_CALL(hipMemcpyAsync(&(shard_dev2->vmap), &vmap_dev2, sizeof(int *),hipMemcpyHostToDevice,str[1]));
                CUDA_SAFE_CALL(hipMemcpyAsync(&(shard_dev2->updates), &updates_dev2, sizeof(double *),hipMemcpyHostToDevice,str[0]));

                //Process Pong
                CUDA_SAFE_CALL(hipEventRecord(start[0],str[0]));
                apply_pr_edge<<<grid, threads,0,str[0]>>> (shard_dev, vertices, num_vertices, k);
                CUDA_SAFE_CALL(hipStreamSynchronize(str[0]));
                CUDA_SAFE_CALL(hipEventRecord(stop[0],str[0]));
                CUDA_SAFE_CALL(hipEventSynchronize(stop[0]));
                CUDA_SAFE_CALL(hipEventElapsedTime(&diff[i-1],start[0],stop[0]));

                pingpong=0;
            }
        }
        if(pingpong==0)
        {
            //Process Pong
            CUDA_SAFE_CALL(hipEventRecord(start[1],str[1]));
            apply_pr_edge<<<grid, threads,0,str[1]>>> (shard_dev2, vertices, num_vertices, k);
            CUDA_SAFE_CALL(hipStreamSynchronize(str[1]));
            CUDA_SAFE_CALL(hipEventRecord(stop[1],str[1]));
            CUDA_SAFE_CALL(hipEventSynchronize(stop[1]));
            CUDA_SAFE_CALL(hipEventElapsedTime(&diff[i-1],start[1],stop[1]));
        }
        else
        {
            //Process Pong
            CUDA_SAFE_CALL(hipEventRecord(start[0],str[0]));
            apply_pr_edge<<<grid, threads,0,str[0]>>> (shard_dev, vertices, num_vertices, k);
            CUDA_SAFE_CALL(hipStreamSynchronize(str[0]));
            CUDA_SAFE_CALL(hipEventRecord(stop[0],str[0]));
            CUDA_SAFE_CALL(hipEventSynchronize(stop[0]));
            CUDA_SAFE_CALL(hipEventElapsedTime(&diff[i-1],start[1],stop[1]));
        }

        for(i=0;i<num_intervals;i++)
            time += diff[i];

        /*
            APPLY PHASE ENDS
        */

        CUDA_SAFE_CALL(hipMemcpyFromSymbol(&over, HIP_SYMBOL(d_over), sizeof(bool),0, hipMemcpyDeviceToHost));
        k++;
    }while(over);
    
    CUDA_SAFE_CALL(hipDeviceSynchronize());

    gettimeofday(&t2,NULL);
    printf("Time to Pagerank : %f sec\n",((t2.tv_sec+t2.tv_usec*1.0e-6)-(t1.tv_sec+t1.tv_usec*1.0e-6)));

    printf("Number of iterations : %d\n",k);
/*    CUDA_SAFE_CALL(cudaMemcpy(vertices_host, vertices, num_vertices*sizeof(vertex_t), cudaMemcpyDeviceToHost));
    for(int i = 0; i < num_vertices; i++)
    {
        printf("Vertex %d Distance %d\n",i,(int)vertices_host[i].val);
    }*/

    printf("Time: %f ms\n",time);

    for(int i = 0; i < num_evts; i++)
    {
        CUDA_SAFE_CALL(hipStreamDestroy(str[i]));
        CUDA_SAFE_CALL(hipEventDestroy(start[i]));
        CUDA_SAFE_CALL(hipEventDestroy(stop[i]));
    }

    free(interval);
    for(i=0; i<num_intervals; i++)
    {
        free(shard[i].vmap);
        free(shard[i].from);
//        free(shard[i].to);
        free(shard[i].updates);
    }
    free(shard);
    free(vertices_host);
    CUDA_SAFE_CALL(hipFree(vertices));
    CUDA_SAFE_CALL(hipFree(vmap_dev));
    CUDA_SAFE_CALL(hipFree(from_dev));
//    CUDA_SAFE_CALL(cudaFree(to_dev));
    CUDA_SAFE_CALL(hipFree(updates_dev));
    CUDA_SAFE_CALL(hipFree(shard_dev));
    CUDA_SAFE_CALL(hipFree(vmap_dev2));
    CUDA_SAFE_CALL(hipFree(from_dev2));
//    CUDA_SAFE_CALL(cudaFree(to_dev2));
    CUDA_SAFE_CALL(hipFree(updates_dev2));
    CUDA_SAFE_CALL(hipFree(shard_dev2));

    return 0;
}

	.text
	.file	"bfs.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.globl	_Z9safe_call10hipError_ti       # -- Begin function _Z9safe_call10hipError_ti
	.type	_Z9safe_call10hipError_ti,@function
_Z9safe_call10hipError_ti:              # @_Z9safe_call10hipError_ti
	.cfi_startproc
# %bb.0:
	testl	%edi, %edi
	jne	.LBB0_2
# %bb.1:
	retq
.LBB0_2:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movl	%esi, %ebx
	callq	hipGetErrorString
	movl	$.L.str, %edi
	movl	%ebx, %esi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	printf
	movl	$-1, %edi
	callq	exit
.Lfunc_end0:
	.size	_Z9safe_call10hipError_ti, .Lfunc_end0-_Z9safe_call10hipError_ti
	.cfi_endproc
                                        # -- End function
	.globl	_Z20__device_stub__resetv       # -- Begin function _Z20__device_stub__resetv
	.type	_Z20__device_stub__resetv,@function
_Z20__device_stub__resetv:              # @_Z20__device_stub__resetv
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	subq	$56, %rsp
	.cfi_def_cfa_offset 96
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rbx
	leaq	24(%rsp), %r14
	leaq	16(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	__hipPopCallConfiguration
	movq	(%rbx), %rsi
	movl	8(%rbx), %edx
	movq	(%r14), %rcx
	movl	8(%r14), %r8d
	movq	%rsp, %r9
	movl	$_Z5resetv, %edi
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	pushq	(%r15)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$72, %rsp
	.cfi_adjust_cfa_offset -72
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z20__device_stub__resetv, .Lfunc_end1-_Z20__device_stub__resetv
	.cfi_endproc
                                        # -- End function
	.globl	_Z29__device_stub__gather_pr_edgePK7__shardP8__vertexii # -- Begin function _Z29__device_stub__gather_pr_edgePK7__shardP8__vertexii
	.type	_Z29__device_stub__gather_pr_edgePK7__shardP8__vertexii,@function
_Z29__device_stub__gather_pr_edgePK7__shardP8__vertexii: # @_Z29__device_stub__gather_pr_edgePK7__shardP8__vertexii
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	8(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z14gather_pr_edgePK7__shardP8__vertexii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_Z29__device_stub__gather_pr_edgePK7__shardP8__vertexii, .Lfunc_end2-_Z29__device_stub__gather_pr_edgePK7__shardP8__vertexii
	.cfi_endproc
                                        # -- End function
	.globl	_Z28__device_stub__apply_pr_edgePK7__shardP8__vertexii # -- Begin function _Z28__device_stub__apply_pr_edgePK7__shardP8__vertexii
	.type	_Z28__device_stub__apply_pr_edgePK7__shardP8__vertexii,@function
_Z28__device_stub__apply_pr_edgePK7__shardP8__vertexii: # @_Z28__device_stub__apply_pr_edgePK7__shardP8__vertexii
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	8(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z13apply_pr_edgePK7__shardP8__vertexii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	_Z28__device_stub__apply_pr_edgePK7__shardP8__vertexii, .Lfunc_end3-_Z28__device_stub__apply_pr_edgePK7__shardP8__vertexii
	.cfi_endproc
                                        # -- End function
	.globl	_Z4costRK6__edgeS1_             # -- Begin function _Z4costRK6__edgeS1_
	.type	_Z4costRK6__edgeS1_,@function
_Z4costRK6__edgeS1_:                    # @_Z4costRK6__edgeS1_
	.cfi_startproc
# %bb.0:
	movl	(%rdi), %ecx
	movl	(%rsi), %edx
	movb	$1, %al
	cmpl	%edx, %ecx
	jl	.LBB4_3
# %bb.1:
	jne	.LBB4_4
# %bb.2:
	movl	4(%rdi), %eax
	cmpl	4(%rsi), %eax
	setl	%al
.LBB4_3:
                                        # kill: def $al killed $al killed $eax
	retq
.LBB4_4:
	xorl	%eax, %eax
                                        # kill: def $al killed $al killed $eax
	retq
.Lfunc_end4:
	.size	_Z4costRK6__edgeS1_, .Lfunc_end4-_Z4costRK6__edgeS1_
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI5_0:
	.quad	0x3eb0c6f7a0b5ed8d              # double 9.9999999999999995E-7
.LCPI5_1:
	.quad	0x3f50000000000000              # double 9.765625E-4
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0
.LCPI5_2:
	.zero	16
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$312, %rsp                      # imm = 0x138
	.cfi_def_cfa_offset 368
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	cmpl	$2, %edi
	jne	.LBB5_333
# %bb.1:
	movq	8(%rsi), %rdi
	movl	$.L.str.2, %esi
	callq	fopen
	testq	%rax, %rax
	je	.LBB5_334
# %bb.2:
	movq	%rax, %r15
	xorl	%edi, %edi
	callq	hipSetDevice
	movl	%eax, %edi
	movl	$151, %esi
	callq	_Z9safe_call10hipError_ti
	movl	$.Lstr.1, %edi
	callq	puts@PLT
	leaq	16(%rsp), %rdx
	leaq	188(%rsp), %rbx
	movl	$.L.str.5, %esi
	movq	%r15, %rdi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movl	(%rbx), %eax
	leal	33554431(%rax), %ecx
	movl	$2, %esi
	cmpl	$67108863, %ecx                 # imm = 0x3FFFFFF
	jb	.LBB5_4
# %bb.3:
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$25, %ecx
	incl	%ecx
	movl	%ecx, %esi
.LBB5_4:
	incl	%eax
                                        # kill: def $eax killed $eax killed $rax
	cltd
	idivl	%esi
	movl	%eax, 20(%rsp)                  # 4-byte Spill
	movslq	16(%rsp), %rsi
	leaq	272(%rsp), %rdi
	leaq	128(%rsp), %rdx
	callq	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EEC2EmRKS3_
	movslq	16(%rsp), %r12
	movl	$4, %esi
	movq	%r12, %rdi
	callq	calloc
	movq	%rax, %rbx
	shlq	$4, %r12
	movq	%r12, %rdi
	callq	malloc
	movq	%rax, %r14
.Ltmp0:
	leaq	72(%rsp), %rdi
	movq	%r12, %rsi
	callq	hipMalloc
.Ltmp1:
# %bb.5:
.Ltmp2:
	movl	%eax, %edi
	movl	$171, %esi
	callq	_Z9safe_call10hipError_ti
.Ltmp3:
# %bb.6:                                # %.preheader524
	movl	16(%rsp), %eax
	testl	%eax, %eax
	jle	.LBB5_9
# %bb.7:                                # %.lr.ph.preheader
	shlq	$4, %rax
	xorl	%ecx, %ecx
.LBB5_8:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	$0, 8(%r14,%rcx)
	addq	$16, %rcx
	cmpq	%rcx, %rax
	jne	.LBB5_8
.LBB5_9:                                # %.preheader518
	movq	%r14, 200(%rsp)                 # 8-byte Spill
	movl	$0, 8(%rsp)
	cmpl	$0, 188(%rsp)
	jle	.LBB5_18
# %bb.10:
	leaq	184(%rsp), %r12
	leaq	180(%rsp), %r13
	leaq	128(%rsp), %rbp
.LBB5_11:                               # =>This Inner Loop Header: Depth=1
.Ltmp5:
	movl	$.L.str.6, %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
.Ltmp6:
# %bb.12:                               #   in Loop: Header=BB5_11 Depth=1
.Ltmp7:
	movl	$.L.str.6, %esi
	movq	%r15, %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
.Ltmp8:
# %bb.13:                               #   in Loop: Header=BB5_11 Depth=1
	movl	184(%rsp), %ecx
	movl	%ecx, 128(%rsp)
	movslq	180(%rsp), %rax
	movl	%eax, 132(%rsp)
	movq	272(%rsp), %rdx
	leaq	(%rax,%rax,2), %rsi
	leaq	(%rdx,%rsi,8), %rdi
	movq	8(%rdi), %rsi
	cmpq	16(%rdi), %rsi
	je	.LBB5_15
# %bb.14:                               #   in Loop: Header=BB5_11 Depth=1
	movl	136(%rsp), %edx
	movl	%edx, 8(%rsi)
	movq	128(%rsp), %rdx
	movq	%rdx, (%rsi)
	addq	$12, 8(%rdi)
	jmp	.LBB5_17
.LBB5_15:                               #   in Loop: Header=BB5_11 Depth=1
.Ltmp10:
	movq	%rbp, %rdx
	callq	_ZNSt6vectorI6__edgeSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
.Ltmp11:
# %bb.16:                               # %._ZNSt6vectorI6__edgeSaIS0_EE9push_backERKS0_.exit_crit_edge
                                        #   in Loop: Header=BB5_11 Depth=1
	movl	184(%rsp), %ecx
	movslq	180(%rsp), %rax
.LBB5_17:                               # %_ZNSt6vectorI6__edgeSaIS0_EE9push_backERKS0_.exit
                                        #   in Loop: Header=BB5_11 Depth=1
	movslq	%ecx, %rcx
	shlq	$4, %rcx
	movq	200(%rsp), %rdx                 # 8-byte Reload
	incl	12(%rdx,%rcx)
	shlq	$4, %rax
	incl	8(%rdx,%rax)
	movl	8(%rsp), %eax
	incl	%eax
	movl	%eax, 8(%rsp)
	cmpl	188(%rsp), %eax
	jl	.LBB5_11
.LBB5_18:                               # %._crit_edge
	movl	$.Lstr.2, %edi
	callq	puts@PLT
	movl	$.Lstr.3, %edi
	callq	puts@PLT
	xorl	%r13d, %r13d
	leaq	256(%rsp), %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	xorpd	%xmm0, %xmm0
	movapd	%xmm0, 128(%rsp)
	movq	$0, 144(%rsp)
	movq	272(%rsp), %rax
	movq	8(%rax), %rcx
	subq	(%rax), %rcx
	shrq	$2, %rcx
	imull	$-1431655765, %ecx, %eax        # imm = 0xAAAAAAAB
	movl	%eax, (%rbx)
	movl	$1, %r14d
	movl	$0, %ebp
	cmpl	%eax, 20(%rsp)                  # 4-byte Folded Reload
	jge	.LBB5_21
# %bb.19:
	leaq	80(%rsp), %rdx
	movl	$0, (%rdx)
.Ltmp13:
	xorl	%r14d, %r14d
	leaq	128(%rsp), %rdi
	xorl	%esi, %esi
	callq	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
.Ltmp14:
# %bb.20:                               # %_ZNSt6vectorIiSaIiEE9push_backEOi.exit
	movl	$1, %ebp
.LBB5_21:
	movl	$1, 8(%rsp)
	movl	16(%rsp), %ecx
	cmpl	$2, %ecx
	jl	.LBB5_31
# %bb.22:                               # %.lr.ph536
	movl	$1, %eax
	leaq	128(%rsp), %r15
	leaq	8(%rsp), %r12
.LBB5_23:                               # =>This Inner Loop Header: Depth=1
	movslq	%eax, %rdx
	movq	272(%rsp), %rsi
	leaq	(%rdx,%rdx,2), %rdi
	movq	8(%rsi,%rdi,8), %r8
	subq	(%rsi,%rdi,8), %r8
	shrq	$2, %r8
	imull	$-1431655765, %r8d, %esi        # imm = 0xAAAAAAAB
	movl	%esi, (%rbx,%rdx,4)
	cmpl	$1, %r14d
	jne	.LBB5_25
# %bb.24:                               #   in Loop: Header=BB5_23 Depth=1
	movq	%rbx, %rdi
	addl	-4(%rbx,%rdx,4), %esi
	movl	%esi, (%rbx,%rdx,4)
.LBB5_25:                               #   in Loop: Header=BB5_23 Depth=1
	movl	$1, %r14d
	cmpl	20(%rsp), %esi                  # 4-byte Folded Reload
	jle	.LBB5_30
# %bb.26:                               #   in Loop: Header=BB5_23 Depth=1
	movq	136(%rsp), %rsi
	cmpq	144(%rsp), %rsi
	je	.LBB5_28
# %bb.27:                               #   in Loop: Header=BB5_23 Depth=1
	movl	%eax, (%rsi)
	addq	$4, %rsi
	movq	%rsi, 136(%rsp)
	jmp	.LBB5_29
.LBB5_28:                               #   in Loop: Header=BB5_23 Depth=1
.Ltmp16:
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
.Ltmp17:
.LBB5_29:                               # %_ZNSt6vectorIiSaIiEE9push_backERKi.exit
                                        #   in Loop: Header=BB5_23 Depth=1
	incl	%ebp
	movl	8(%rsp), %eax
	xorl	%r14d, %r14d
	movl	16(%rsp), %ecx
.LBB5_30:                               #   in Loop: Header=BB5_23 Depth=1
	movl	%eax, %r13d
	leal	1(%r13), %eax
	movl	%eax, 8(%rsp)
	cmpl	%ecx, %eax
	jl	.LBB5_23
.LBB5_31:                               # %._crit_edge537
	testl	%r14d, %r14d
	je	.LBB5_34
# %bb.32:
	movl	%r13d, 80(%rsp)
	movq	136(%rsp), %rsi
	cmpq	144(%rsp), %rsi
	je	.LBB5_35
# %bb.33:
	movl	%r13d, (%rsi)
	addq	$4, %rsi
	movq	%rsi, 136(%rsp)
	movq	%rbx, %r13
	jmp	.LBB5_36
.LBB5_34:
	movq	%rbx, %r13
	jmp	.LBB5_37
.LBB5_35:
.Ltmp19:
	leaq	128(%rsp), %rdi
	leaq	80(%rsp), %rdx
	callq	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
.Ltmp20:
	movq	%rbx, %r13
.LBB5_36:                               # %_ZNSt6vectorIiSaIiEE9push_backEOi.exit444
	incl	%ebp
.LBB5_37:
	movslq	%ebp, %r14
	leaq	(,%r14,8), %r15
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, %r12
	movl	$0, 8(%rsp)
	movl	%ebp, %esi
	testl	%r14d, %r14d
	jle	.LBB5_42
# %bb.38:                               # %.lr.ph543
	movq	128(%rsp), %rax
	xorl	%ecx, %ecx
.LBB5_39:                               # =>This Inner Loop Header: Depth=1
	movl	$0, %edx
	testq	%rcx, %rcx
	je	.LBB5_41
# %bb.40:                               #   in Loop: Header=BB5_39 Depth=1
	movl	-4(%rax,%rcx,4), %edx
	incl	%edx
.LBB5_41:                               #   in Loop: Header=BB5_39 Depth=1
	movl	%edx, (%r12,%rcx,8)
	movl	(%rax,%rcx,4), %edx
	movl	%edx, 4(%r12,%rcx,8)
	incq	%rcx
	movl	%ecx, 8(%rsp)
	cmpq	%rcx, %rsi
	jne	.LBB5_39
.LBB5_42:                               # %._crit_edge544
	movq	%rsi, 152(%rsp)                 # 8-byte Spill
	leaq	296(%rsp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	cvtsi2sdq	(%rbx), %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sdq	8(%rbx), %xmm0
	movsd	.LCPI5_0(%rip), %xmm4           # xmm4 = mem[0],zero
	mulsd	%xmm4, %xmm0
	leaq	256(%rsp), %rbx
	cvtsi2sdq	(%rbx), %xmm2
	cvtsi2sdq	8(%rbx), %xmm3
	addsd	%xmm1, %xmm0
	mulsd	%xmm4, %xmm3
	addsd	%xmm2, %xmm3
	subsd	%xmm3, %xmm0
	movl	$.L.str.9, %edi
	movb	$1, %al
	callq	printf
	movl	$.Lstr.4, %edi
	callq	puts@PLT
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	leaq	(%r15,%r15,4), %rdi
	callq	malloc
	movq	%rax, %r15
	testl	%ebp, %ebp
	movl	%ebp, 20(%rsp)                  # 4-byte Spill
	movq	%r12, 192(%rsp)                 # 8-byte Spill
	movq	%r14, 104(%rsp)                 # 8-byte Spill
	movl	$-2147483648, %r8d              # imm = 0x80000000
	jle	.LBB5_86
# %bb.43:                               # %.lr.ph549.preheader
	xorl	%eax, %eax
	movl	$-2147483648, %esi              # imm = 0x80000000
	movq	152(%rsp), %rdi                 # 8-byte Reload
.LBB5_44:                               # %.lr.ph549
                                        # =>This Inner Loop Header: Depth=1
	movl	%esi, %ecx
	movslq	4(%r12,%rax,8), %rdx
	movl	(%r13,%rdx,4), %esi
	cmpl	%r8d, %esi
	cmovgl	%esi, %r8d
	movl	(%r12,%rax,8), %esi
	subl	%esi, %edx
	leal	1(%rdx), %esi
	cmpl	%ecx, %edx
	cmovll	%ecx, %esi
	incq	%rax
	cmpq	%rax, %rdi
	jne	.LBB5_44
# %bb.45:                               # %.preheader517
	movl	%esi, 32(%rsp)                  # 4-byte Spill
	testl	%ebp, %ebp
	jle	.LBB5_87
# %bb.46:                               # %.lr.ph554
	movslq	32(%rsp), %rax                  # 4-byte Folded Reload
	movq	%rax, 48(%rsp)                  # 8-byte Spill
	leaq	(,%rax,4), %rax
	movq	%rax, 112(%rsp)                 # 8-byte Spill
	movl	%r8d, 24(%rsp)                  # 4-byte Spill
	movq	%r13, 64(%rsp)                  # 8-byte Spill
	movslq	%r8d, %r13
	leaq	(,%r13,4), %rax
	movq	%rax, 56(%rsp)                  # 8-byte Spill
	shlq	$3, %r13
	leaq	32(%r15), %r14
	movq	%rdi, %rbp
	movq	%r12, %rbx
	xorl	%r12d, %r12d
.LBB5_47:                               # =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r12,8), %eax
	movl	%eax, -28(%r14)
	movslq	4(%rbx,%r12,8), %rax
	movl	%eax, -24(%r14)
	movq	64(%rsp), %rcx                  # 8-byte Reload
	movl	(%rcx,%rax,4), %eax
	movl	%eax, -32(%r14)
	movq	112(%rsp), %rdi                 # 8-byte Reload
	callq	malloc
	movq	%rax, -8(%r14)
	movq	56(%rsp), %rdi                  # 8-byte Reload
	callq	malloc
	movq	%rax, -16(%r14)
	movq	%r13, %rdi
	callq	malloc
	movq	%rax, (%r14)
	incq	%r12
	addq	$40, %r14
	cmpq	%r12, %rbp
	jne	.LBB5_47
# %bb.48:                               # %.preheader516
	movl	$0, 8(%rsp)
	cmpl	$0, 20(%rsp)                    # 4-byte Folded Reload
	jle	.LBB5_88
# %bb.49:                               # %.lr.ph586
	movl	32(%rsp), %r12d                 # 4-byte Reload
	xorl	%eax, %eax
	leaq	80(%rsp), %rbp
.LBB5_50:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB5_52 Depth 2
                                        #       Child Loop BB5_53 Depth 3
                                        #     Child Loop BB5_67 Depth 2
                                        #     Child Loop BB5_73 Depth 2
                                        #     Child Loop BB5_76 Depth 2
                                        #     Child Loop BB5_79 Depth 2
                                        #       Child Loop BB5_81 Depth 3
	xorpd	%xmm0, %xmm0
	movapd	%xmm0, 80(%rsp)
	movq	$0, 96(%rsp)
	movslq	%eax, %rcx
	movq	192(%rsp), %rdx                 # 8-byte Reload
	movslq	(%rdx,%rcx,8), %r14
	cmpl	4(%rdx,%rcx,8), %r14d
	jg	.LBB5_65
# %bb.51:                               # %.lr.ph564.preheader
                                        #   in Loop: Header=BB5_50 Depth=1
	movq	272(%rsp), %rcx
.LBB5_52:                               # %.lr.ph564
                                        #   Parent Loop BB5_50 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB5_53 Depth 3
	leaq	(%r14,%r14,2), %r13
	movq	(%rcx,%r13,8), %rbx
	cmpq	8(%rcx,%r13,8), %rbx
	je	.LBB5_58
.LBB5_53:                               # %.lr.ph559
                                        #   Parent Loop BB5_50 Depth=1
                                        #     Parent Loop BB5_52 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movq	88(%rsp), %rsi
	cmpq	96(%rsp), %rsi
	je	.LBB5_55
# %bb.54:                               #   in Loop: Header=BB5_53 Depth=3
	movl	8(%rbx), %eax
	movl	%eax, 8(%rsi)
	movq	(%rbx), %rax
	movq	%rax, (%rsi)
	addq	$12, 88(%rsp)
	jmp	.LBB5_56
.LBB5_55:                               #   in Loop: Header=BB5_53 Depth=3
.Ltmp22:
	movq	%rbp, %rdi
	movq	%rbx, %rdx
	callq	_ZNSt6vectorI6__edgeSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
.Ltmp23:
.LBB5_56:                               # %_ZNSt6vectorI6__edgeSaIS0_EE9push_backERKS0_.exit447
                                        #   in Loop: Header=BB5_53 Depth=3
	addq	$12, %rbx
	movq	272(%rsp), %rcx
	cmpq	8(%rcx,%r13,8), %rbx
	jne	.LBB5_53
# %bb.57:                               # %._crit_edge560.loopexit
                                        #   in Loop: Header=BB5_52 Depth=2
	movl	8(%rsp), %eax
.LBB5_58:                               # %._crit_edge560
                                        #   in Loop: Header=BB5_52 Depth=2
	leaq	1(%r14), %rdx
	movslq	%eax, %rsi
	movq	192(%rsp), %rdi                 # 8-byte Reload
	movslq	4(%rdi,%rsi,8), %rsi
	cmpq	%rsi, %r14
	movq	%rdx, %r14
	jl	.LBB5_52
# %bb.59:                               # %._crit_edge565
                                        #   in Loop: Header=BB5_50 Depth=1
	movq	80(%rsp), %rbx
	movq	88(%rsp), %r13
	cmpq	%r13, %rbx
	je	.LBB5_65
# %bb.60:                               #   in Loop: Header=BB5_50 Depth=1
	movq	%r13, %rax
	subq	%rbx, %rax
	sarq	$2, %rax
	movabsq	$-6148914691236517205, %rcx     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rcx, %rax
	testq	%rax, %rax
	je	.LBB5_62
# %bb.61:                               # %cond.false
                                        #   in Loop: Header=BB5_50 Depth=1
	bsrq	%rax, %rax
	xorq	$63, %rax
	jmp	.LBB5_63
.LBB5_62:                               #   in Loop: Header=BB5_50 Depth=1
	movl	$64, %eax
.LBB5_63:                               # %cond.end
                                        #   in Loop: Header=BB5_50 Depth=1
	addq	%rax, %rax
	movl	$126, %edx
	subq	%rax, %rdx
.Ltmp25:
	movl	$_Z4costRK6__edgeS1_, %ecx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_T1_
.Ltmp26:
# %bb.64:                               # %.noexc449
                                        #   in Loop: Header=BB5_50 Depth=1
.Ltmp27:
	movl	$_Z4costRK6__edgeS1_, %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ZSt22__final_insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_
.Ltmp28:
.LBB5_65:                               # %_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEEPFbRKS2_S9_EEvT_SC_T0_.exit
                                        #   in Loop: Header=BB5_50 Depth=1
.Ltmp30:
	leaq	232(%rsp), %rdi
	movq	48(%rsp), %rsi                  # 8-byte Reload
	leaq	120(%rsp), %rdx
	callq	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EEC2EmRKS3_
.Ltmp31:
# %bb.66:                               #   in Loop: Header=BB5_50 Depth=1
	movq	80(%rsp), %rbx
	cmpq	88(%rsp), %rbx
	movl	20(%rsp), %r14d                 # 4-byte Reload
	je	.LBB5_71
.LBB5_67:                               # %.lr.ph569
                                        #   Parent Loop BB5_50 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movslq	4(%rbx), %rax
	movslq	8(%rsp), %rcx
	movq	192(%rsp), %rdx                 # 8-byte Reload
	movslq	(%rdx,%rcx,8), %rcx
	subq	%rcx, %rax
	movq	232(%rsp), %rcx
	leaq	(%rax,%rax,2), %rax
	leaq	(%rcx,%rax,8), %rdi
	movq	8(%rdi), %rsi
	cmpq	16(%rdi), %rsi
	je	.LBB5_69
# %bb.68:                               #   in Loop: Header=BB5_67 Depth=2
	movl	8(%rbx), %eax
	movl	%eax, 8(%rsi)
	movq	(%rbx), %rax
	movq	%rax, (%rsi)
	addq	$12, 8(%rdi)
	jmp	.LBB5_70
.LBB5_69:                               #   in Loop: Header=BB5_67 Depth=2
.Ltmp33:
	movq	%rbx, %rdx
	callq	_ZNSt6vectorI6__edgeSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
.Ltmp34:
.LBB5_70:                               # %_ZNSt6vectorI6__edgeSaIS0_EE9push_backERKS0_.exit453
                                        #   in Loop: Header=BB5_67 Depth=2
	addq	$12, %rbx
	cmpq	88(%rsp), %rbx
	jne	.LBB5_67
.LBB5_71:                               # %.preheader515
                                        #   in Loop: Header=BB5_50 Depth=1
	cmpl	$0, 32(%rsp)                    # 4-byte Folded Reload
	jle	.LBB5_83
# %bb.72:                               # %.lr.ph571
                                        #   in Loop: Header=BB5_50 Depth=1
	movq	232(%rsp), %rax
	addq	$8, %rax
	xorl	%ecx, %ecx
.LBB5_73:                               #   Parent Loop BB5_50 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	(%rax), %rdx
	subq	-8(%rax), %rdx
	shrq	$2, %rdx
	imull	$-1431655765, %edx, %edx        # imm = 0xAAAAAAAB
	movslq	8(%rsp), %rsi
	leaq	(%rsi,%rsi,4), %rsi
	movq	24(%r15,%rsi,8), %rsi
	movl	%edx, (%rsi,%rcx,4)
	incq	%rcx
	addq	$24, %rax
	cmpq	%rcx, %r12
	jne	.LBB5_73
# %bb.74:                               # %.preheader514
                                        #   in Loop: Header=BB5_50 Depth=1
	cmpl	$2, 32(%rsp)                    # 4-byte Folded Reload
	jl	.LBB5_77
# %bb.75:                               # %.lr.ph573.preheader
                                        #   in Loop: Header=BB5_50 Depth=1
	movl	$1, %eax
.LBB5_76:                               # %.lr.ph573
                                        #   Parent Loop BB5_50 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movslq	8(%rsp), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	movq	24(%r15,%rcx,8), %rcx
	movl	-4(%rcx,%rax,4), %edx
	addl	%edx, (%rcx,%rax,4)
	incq	%rax
	cmpq	%rax, %r12
	jne	.LBB5_76
.LBB5_77:                               # %.preheader513
                                        #   in Loop: Header=BB5_50 Depth=1
	cmpl	$0, 32(%rsp)                    # 4-byte Folded Reload
	jle	.LBB5_83
# %bb.78:                               # %.lr.ph583
                                        #   in Loop: Header=BB5_50 Depth=1
	xorl	%eax, %eax
	movq	232(%rsp), %rcx
	xorl	%edx, %edx
.LBB5_79:                               #   Parent Loop BB5_50 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB5_81 Depth 3
	leaq	(%rax,%rax,2), %rdi
	movq	(%rcx,%rdi,8), %rsi
	movq	8(%rcx,%rdi,8), %rdi
	cmpq	%rdi, %rsi
	je	.LBB5_82
# %bb.80:                               # %.lr.ph578.preheader
                                        #   in Loop: Header=BB5_79 Depth=2
	movslq	%edx, %rdx
.LBB5_81:                               # %.lr.ph578
                                        #   Parent Loop BB5_50 Depth=1
                                        #     Parent Loop BB5_79 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movl	(%rsi), %r8d
	movslq	8(%rsp), %r9
	leaq	(%r9,%r9,4), %r9
	movq	16(%r15,%r9,8), %r9
	movl	%r8d, (%r9,%rdx,4)
	incq	%rdx
	addq	$12, %rsi
	cmpq	%rdi, %rsi
	jne	.LBB5_81
.LBB5_82:                               # %._crit_edge579
                                        #   in Loop: Header=BB5_79 Depth=2
	incq	%rax
	cmpq	%r12, %rax
	jne	.LBB5_79
.LBB5_83:                               # %._crit_edge584
                                        #   in Loop: Header=BB5_50 Depth=1
	leaq	232(%rsp), %rdi
	callq	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED2Ev
	movq	80(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB5_85
# %bb.84:                               #   in Loop: Header=BB5_50 Depth=1
	callq	_ZdlPv
.LBB5_85:                               # %_ZNSt6vectorI6__edgeSaIS0_EED2Ev.exit
                                        #   in Loop: Header=BB5_50 Depth=1
	movl	8(%rsp), %eax
	incl	%eax
	movl	%eax, 8(%rsp)
	cmpl	%r14d, %eax
	jl	.LBB5_50
	jmp	.LBB5_88
.LBB5_86:
	movl	$-2147483648, 32(%rsp)          # 4-byte Folded Spill
                                        # imm = 0x80000000
.LBB5_87:                               # %.preheader516.thread
	movl	%r8d, 24(%rsp)                  # 4-byte Spill
	movl	$0, 8(%rsp)
.LBB5_88:                               # %._crit_edge587
	xorl	%ebx, %ebx
	leaq	296(%rsp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	xorps	%xmm1, %xmm1
	cvtsi2sdq	(%r12), %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sdq	8(%r12), %xmm0
	movsd	.LCPI5_0(%rip), %xmm4           # xmm4 = mem[0],zero
	mulsd	%xmm4, %xmm0
	xorps	%xmm2, %xmm2
	cvtsi2sdq	256(%rsp), %xmm2
	xorps	%xmm3, %xmm3
	cvtsi2sdq	264(%rsp), %xmm3
	addsd	%xmm1, %xmm0
	mulsd	%xmm4, %xmm3
	addsd	%xmm2, %xmm3
	subsd	%xmm3, %xmm0
	movb	$1, %r14b
	movl	$.L.str.11, %edi
	movb	$1, %al
	callq	printf
	movl	$16, %edi
	callq	malloc
	movq	%rax, %r12
	movl	$16, %edi
	callq	malloc
	movq	%rax, %r13
	movl	$16, %edi
	callq	malloc
	movq	%rax, %rbp
.LBB5_89:                               # =>This Inner Loop Header: Depth=1
	leaq	(%r12,%rbx,8), %rdi
.Ltmp36:
	callq	hipStreamCreate
.Ltmp37:
# %bb.90:                               #   in Loop: Header=BB5_89 Depth=1
.Ltmp38:
	movl	%eax, %edi
	movl	$318, %esi                      # imm = 0x13E
	callq	_Z9safe_call10hipError_ti
.Ltmp39:
# %bb.91:                               #   in Loop: Header=BB5_89 Depth=1
	leaq	(,%rbx,8), %rdi
	addq	%r13, %rdi
.Ltmp40:
	callq	hipEventCreate
.Ltmp41:
# %bb.92:                               #   in Loop: Header=BB5_89 Depth=1
.Ltmp42:
	movl	%eax, %edi
	movl	$319, %esi                      # imm = 0x13F
	callq	_Z9safe_call10hipError_ti
.Ltmp43:
# %bb.93:                               #   in Loop: Header=BB5_89 Depth=1
	leaq	(,%rbx,8), %rdi
	addq	%rbp, %rdi
.Ltmp44:
	callq	hipEventCreate
.Ltmp45:
# %bb.94:                               #   in Loop: Header=BB5_89 Depth=1
.Ltmp46:
	movl	%eax, %edi
	movl	$320, %esi                      # imm = 0x140
	callq	_Z9safe_call10hipError_ti
.Ltmp47:
# %bb.95:                               #   in Loop: Header=BB5_89 Depth=1
	movl	$1, %ebx
	testb	$1, %r14b
	movl	$0, %r14d
	jne	.LBB5_89
# %bb.96:
	movq	104(%rsp), %rdi                 # 8-byte Reload
	shlq	$2, %rdi
	callq	malloc
	movq	%rax, %r14
.Ltmp49:
	leaq	80(%rsp), %rdi
	movl	$40, %esi
	callq	hipMalloc
.Ltmp50:
# %bb.97:
.Ltmp51:
	movl	%eax, %edi
	movl	$333, %esi                      # imm = 0x14D
	callq	_Z9safe_call10hipError_ti
.Ltmp52:
# %bb.98:
	movslq	24(%rsp), %rax                  # 4-byte Folded Reload
	movq	%rax, %rbx
	leaq	(,%rax,4), %rsi
.Ltmp53:
	leaq	120(%rsp), %rdi
	movq	%rsi, 112(%rsp)                 # 8-byte Spill
	callq	hipMalloc
.Ltmp54:
# %bb.99:
.Ltmp55:
	movl	%eax, %edi
	movl	$334, %esi                      # imm = 0x14E
	callq	_Z9safe_call10hipError_ti
.Ltmp56:
# %bb.100:
	movslq	32(%rsp), %rsi                  # 4-byte Folded Reload
	shlq	$2, %rsi
.Ltmp57:
	leaq	232(%rsp), %rdi
	movq	%rsi, 32(%rsp)                  # 8-byte Spill
	callq	hipMalloc
.Ltmp58:
# %bb.101:
.Ltmp59:
	movl	%eax, %edi
	movl	$336, %esi                      # imm = 0x150
	callq	_Z9safe_call10hipError_ti
.Ltmp60:
# %bb.102:
	movq	%rbx, %rsi
	shlq	$3, %rsi
.Ltmp61:
	leaq	224(%rsp), %rdi
	movq	%rsi, %rbx
	callq	hipMalloc
.Ltmp62:
# %bb.103:
.Ltmp63:
	movl	%eax, %edi
	movl	$337, %esi                      # imm = 0x151
	callq	_Z9safe_call10hipError_ti
.Ltmp64:
# %bb.104:
.Ltmp66:
	movq	%r14, 208(%rsp)                 # 8-byte Spill
	leaq	40(%rsp), %rdi
	movl	$40, %esi
	callq	hipMalloc
.Ltmp67:
	movl	20(%rsp), %r14d                 # 4-byte Reload
# %bb.105:
.Ltmp68:
	movl	%eax, %edi
	movl	$345, %esi                      # imm = 0x159
	callq	_Z9safe_call10hipError_ti
.Ltmp69:
# %bb.106:
.Ltmp70:
	leaq	160(%rsp), %rdi
	movq	112(%rsp), %rsi                 # 8-byte Reload
	callq	hipMalloc
.Ltmp71:
# %bb.107:
.Ltmp72:
	movl	%eax, %edi
	movl	$346, %esi                      # imm = 0x15A
	callq	_Z9safe_call10hipError_ti
.Ltmp73:
# %bb.108:
.Ltmp74:
	leaq	168(%rsp), %rdi
	movq	32(%rsp), %rsi                  # 8-byte Reload
	callq	hipMalloc
.Ltmp75:
# %bb.109:
.Ltmp76:
	movl	%eax, %edi
	movl	$348, %esi                      # imm = 0x15C
	callq	_Z9safe_call10hipError_ti
.Ltmp77:
# %bb.110:
.Ltmp78:
	leaq	216(%rsp), %rdi
	movq	%rbx, %rsi
	callq	hipMalloc
.Ltmp79:
# %bb.111:
.Ltmp80:
	movl	%eax, %edi
	movl	$349, %esi                      # imm = 0x15D
	callq	_Z9safe_call10hipError_ti
.Ltmp81:
# %bb.112:
	movl	$1, %ebx
	movl	24(%rsp), %eax                  # 4-byte Reload
	cmpl	$1025, %eax                     # imm = 0x401
	jl	.LBB5_114
# %bb.113:
	cvtsi2sd	%eax, %xmm0
	mulsd	.LCPI5_1(%rip), %xmm0
	callq	ceil@PLT
	cvttsd2si	%xmm0, %ebx
	movl	$1024, 24(%rsp)                 # 4-byte Folded Spill
                                        # imm = 0x400
.LBB5_114:
	movl	$.Lstr.5, %edi
	callq	puts@PLT
	movq	72(%rsp), %rdi
	movslq	16(%rsp), %rdx
	shlq	$4, %rdx
.Ltmp83:
	movq	200(%rsp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp84:
# %bb.115:
.Ltmp85:
	movl	%eax, %edi
	movl	$367, %esi                      # imm = 0x16F
	callq	_Z9safe_call10hipError_ti
.Ltmp86:
# %bb.116:
	movl	%ebx, %eax
	btsq	$32, %rax
	movq	%rax, 64(%rsp)                  # 8-byte Spill
	movl	24(%rsp), %eax                  # 4-byte Reload
	btsq	$32, %rax
	movq	%rax, 56(%rsp)                  # 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	leaq	256(%rsp), %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	movq	208(%rsp), %rax                 # 8-byte Reload
	addq	$-4, %rax
	movq	%rax, 48(%rsp)                  # 8-byte Spill
	xorpd	%xmm0, %xmm0
	movsd	%xmm0, 104(%rsp)                # 8-byte Spill
	movq	152(%rsp), %rbx                 # 8-byte Reload
.LBB5_117:                              # =>This Loop Header: Depth=1
                                        #     Child Loop BB5_123 Depth 2
                                        #     Child Loop BB5_206 Depth 2
                                        #     Child Loop BB5_209 Depth 2
                                        #     Child Loop BB5_280 Depth 2
	movb	$0, 15(%rsp)
.Ltmp88:
	movl	$d_over, %edi
	movl	$1, %edx
	leaq	15(%rsp), %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	hipMemcpyToSymbol
.Ltmp89:
# %bb.118:                              # %_Z17hipMemcpyToSymbolIbE10hipError_tRKT_PKvmm13hipMemcpyKind.exit
                                        #   in Loop: Header=BB5_117 Depth=1
.Ltmp90:
	movl	%eax, %edi
	movl	$378, %esi                      # imm = 0x17A
	callq	_Z9safe_call10hipError_ti
.Ltmp91:
# %bb.119:                              #   in Loop: Header=BB5_117 Depth=1
.Ltmp92:
	callq	hipDeviceSynchronize
.Ltmp93:
# %bb.120:                              #   in Loop: Header=BB5_117 Depth=1
.Ltmp94:
	movl	%eax, %edi
	movl	$379, %esi                      # imm = 0x17B
	callq	_Z9safe_call10hipError_ti
.Ltmp95:
# %bb.121:                              # %.preheader507
                                        #   in Loop: Header=BB5_117 Depth=1
	movl	$0, 8(%rsp)
	testl	%r14d, %r14d
	jle	.LBB5_177
# %bb.122:                              # %.lr.ph595.preheader
                                        #   in Loop: Header=BB5_117 Depth=1
	xorl	%ebx, %ebx
	xorl	%eax, %eax
.LBB5_123:                              # %.lr.ph595
                                        #   Parent Loop BB5_117 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	%ebx, %r14d
	cltq
	leaq	(%rax,%rax,4), %rax
	leaq	(%r15,%rax,8), %rsi
	testl	%ebx, %ebx
	je	.LBB5_149
# %bb.124:                              #   in Loop: Header=BB5_123 Depth=2
	movq	40(%rsp), %rdi
	movq	8(%r12), %r8
.Ltmp96:
	movl	$40, %edx
	movl	$1, %ecx
	callq	hipMemcpyAsync
.Ltmp97:
# %bb.125:                              #   in Loop: Header=BB5_123 Depth=2
.Ltmp98:
	movl	%eax, %edi
	movl	$418, %esi                      # imm = 0x1A2
	callq	_Z9safe_call10hipError_ti
.Ltmp99:
# %bb.126:                              #   in Loop: Header=BB5_123 Depth=2
	movq	160(%rsp), %rdi
	movslq	8(%rsp), %rax
	leaq	(%rax,%rax,4), %rax
	movq	16(%r15,%rax,8), %rsi
	movq	8(%r12), %r8
.Ltmp100:
	movq	112(%rsp), %rdx                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpyAsync
.Ltmp101:
# %bb.127:                              #   in Loop: Header=BB5_123 Depth=2
.Ltmp102:
	movl	%eax, %edi
	movl	$419, %esi                      # imm = 0x1A3
	callq	_Z9safe_call10hipError_ti
.Ltmp103:
# %bb.128:                              #   in Loop: Header=BB5_123 Depth=2
	movq	40(%rsp), %rdi
	addq	$16, %rdi
	movq	8(%r12), %r8
.Ltmp104:
	movl	$8, %edx
	leaq	160(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpyAsync
.Ltmp105:
# %bb.129:                              #   in Loop: Header=BB5_123 Depth=2
.Ltmp106:
	movl	%eax, %edi
	movl	$420, %esi                      # imm = 0x1A4
	callq	_Z9safe_call10hipError_ti
.Ltmp107:
# %bb.130:                              #   in Loop: Header=BB5_123 Depth=2
	movq	168(%rsp), %rdi
	movslq	8(%rsp), %rax
	leaq	(%rax,%rax,4), %rax
	movq	24(%r15,%rax,8), %rsi
	movq	8(%r12), %r8
.Ltmp108:
	movq	32(%rsp), %rdx                  # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpyAsync
.Ltmp109:
# %bb.131:                              #   in Loop: Header=BB5_123 Depth=2
.Ltmp110:
	movl	%eax, %edi
	movl	$423, %esi                      # imm = 0x1A7
	callq	_Z9safe_call10hipError_ti
.Ltmp111:
# %bb.132:                              #   in Loop: Header=BB5_123 Depth=2
	movq	40(%rsp), %rdi
	addq	$24, %rdi
	movq	8(%r12), %r8
.Ltmp112:
	movl	$8, %edx
	leaq	168(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpyAsync
.Ltmp113:
# %bb.133:                              #   in Loop: Header=BB5_123 Depth=2
.Ltmp114:
	movl	%eax, %edi
	movl	$424, %esi                      # imm = 0x1A8
	callq	_Z9safe_call10hipError_ti
.Ltmp115:
# %bb.134:                              #   in Loop: Header=BB5_123 Depth=2
	movq	40(%rsp), %rdi
	addq	$32, %rdi
	movq	(%r12), %r8
.Ltmp116:
	movl	$8, %edx
	leaq	216(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpyAsync
.Ltmp117:
# %bb.135:                              #   in Loop: Header=BB5_123 Depth=2
.Ltmp118:
	movl	%eax, %edi
	movl	$425, %esi                      # imm = 0x1A9
	callq	_Z9safe_call10hipError_ti
.Ltmp119:
# %bb.136:                              #   in Loop: Header=BB5_123 Depth=2
	movq	(%r13), %rdi
	movq	(%r12), %rsi
.Ltmp120:
	callq	hipEventRecord
.Ltmp121:
# %bb.137:                              #   in Loop: Header=BB5_123 Depth=2
.Ltmp122:
	movl	%eax, %edi
	movl	$428, %esi                      # imm = 0x1AC
	callq	_Z9safe_call10hipError_ti
.Ltmp123:
# %bb.138:                              #   in Loop: Header=BB5_123 Depth=2
	movq	(%r12), %r9
.Ltmp124:
	movq	64(%rsp), %rdi                  # 8-byte Reload
	movl	$1, %esi
	movq	56(%rsp), %rdx                  # 8-byte Reload
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	__hipPushCallConfiguration
.Ltmp125:
# %bb.139:                              #   in Loop: Header=BB5_123 Depth=2
	testl	%eax, %eax
	jne	.LBB5_141
# %bb.140:                              #   in Loop: Header=BB5_123 Depth=2
	movq	80(%rsp), %rdi
	movq	72(%rsp), %rsi
	movl	16(%rsp), %edx
.Ltmp126:
	movq	24(%rsp), %rcx                  # 8-byte Reload
                                        # kill: def $ecx killed $ecx killed $rcx
	callq	_Z29__device_stub__gather_pr_edgePK7__shardP8__vertexii
.Ltmp127:
.LBB5_141:                              #   in Loop: Header=BB5_123 Depth=2
	movq	(%r12), %rdi
.Ltmp128:
	callq	hipStreamSynchronize
.Ltmp129:
# %bb.142:                              #   in Loop: Header=BB5_123 Depth=2
.Ltmp130:
	movl	%eax, %edi
	movl	$430, %esi                      # imm = 0x1AE
	callq	_Z9safe_call10hipError_ti
.Ltmp131:
# %bb.143:                              #   in Loop: Header=BB5_123 Depth=2
	movq	(%rbp), %rdi
	movq	(%r12), %rsi
.Ltmp132:
	callq	hipEventRecord
.Ltmp133:
# %bb.144:                              #   in Loop: Header=BB5_123 Depth=2
.Ltmp134:
	movl	%eax, %edi
	movl	$431, %esi                      # imm = 0x1AF
	callq	_Z9safe_call10hipError_ti
.Ltmp135:
# %bb.145:                              #   in Loop: Header=BB5_123 Depth=2
	movq	(%rbp), %rdi
.Ltmp136:
	callq	hipEventSynchronize
.Ltmp137:
# %bb.146:                              #   in Loop: Header=BB5_123 Depth=2
.Ltmp138:
	movl	%eax, %edi
	movl	$432, %esi                      # imm = 0x1B0
	callq	_Z9safe_call10hipError_ti
.Ltmp139:
# %bb.147:                              #   in Loop: Header=BB5_123 Depth=2
	movslq	8(%rsp), %rax
	movq	48(%rsp), %rcx                  # 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	movq	(%r13), %rsi
	movq	(%rbp), %rdx
.Ltmp140:
	callq	hipEventElapsedTime
.Ltmp141:
# %bb.148:                              #   in Loop: Header=BB5_123 Depth=2
	xorl	%ebx, %ebx
.Ltmp142:
	movl	%eax, %edi
	movl	$433, %esi                      # imm = 0x1B1
	callq	_Z9safe_call10hipError_ti
.Ltmp143:
	jmp	.LBB5_175
.LBB5_149:                              #   in Loop: Header=BB5_123 Depth=2
	movq	80(%rsp), %rdi
	movq	(%r12), %r8
.Ltmp144:
	movl	$40, %edx
	movl	$1, %ecx
	callq	hipMemcpyAsync
.Ltmp145:
# %bb.150:                              #   in Loop: Header=BB5_123 Depth=2
.Ltmp146:
	movl	%eax, %edi
	movl	$392, %esi                      # imm = 0x188
	callq	_Z9safe_call10hipError_ti
.Ltmp147:
# %bb.151:                              #   in Loop: Header=BB5_123 Depth=2
	movq	120(%rsp), %rdi
	movslq	8(%rsp), %rax
	leaq	(%rax,%rax,4), %rax
	movq	16(%r15,%rax,8), %rsi
	movq	(%r12), %r8
.Ltmp148:
	movq	112(%rsp), %rdx                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpyAsync
.Ltmp149:
# %bb.152:                              #   in Loop: Header=BB5_123 Depth=2
.Ltmp150:
	movl	%eax, %edi
	movl	$393, %esi                      # imm = 0x189
	callq	_Z9safe_call10hipError_ti
.Ltmp151:
# %bb.153:                              #   in Loop: Header=BB5_123 Depth=2
	movq	80(%rsp), %rdi
	addq	$16, %rdi
	movq	(%r12), %r8
.Ltmp152:
	movl	$8, %edx
	leaq	120(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpyAsync
.Ltmp153:
# %bb.154:                              #   in Loop: Header=BB5_123 Depth=2
.Ltmp154:
	movl	%eax, %edi
	movl	$394, %esi                      # imm = 0x18A
	callq	_Z9safe_call10hipError_ti
.Ltmp155:
# %bb.155:                              #   in Loop: Header=BB5_123 Depth=2
	movq	232(%rsp), %rdi
	movslq	8(%rsp), %rax
	leaq	(%rax,%rax,4), %rax
	movq	24(%r15,%rax,8), %rsi
	movq	(%r12), %r8
.Ltmp156:
	movq	32(%rsp), %rdx                  # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpyAsync
.Ltmp157:
# %bb.156:                              #   in Loop: Header=BB5_123 Depth=2
.Ltmp158:
	movl	%eax, %edi
	movl	$397, %esi                      # imm = 0x18D
	callq	_Z9safe_call10hipError_ti
.Ltmp159:
# %bb.157:                              #   in Loop: Header=BB5_123 Depth=2
	movq	80(%rsp), %rdi
	addq	$24, %rdi
	movq	(%r12), %r8
.Ltmp160:
	movl	$8, %edx
	leaq	232(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpyAsync
.Ltmp161:
# %bb.158:                              #   in Loop: Header=BB5_123 Depth=2
.Ltmp162:
	movl	%eax, %edi
	movl	$398, %esi                      # imm = 0x18E
	callq	_Z9safe_call10hipError_ti
.Ltmp163:
# %bb.159:                              #   in Loop: Header=BB5_123 Depth=2
	movq	80(%rsp), %rdi
	addq	$32, %rdi
	movq	(%r12), %r8
.Ltmp164:
	movl	$8, %edx
	leaq	224(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpyAsync
.Ltmp165:
# %bb.160:                              #   in Loop: Header=BB5_123 Depth=2
.Ltmp166:
	movl	%eax, %edi
	movl	$399, %esi                      # imm = 0x18F
	callq	_Z9safe_call10hipError_ti
.Ltmp167:
# %bb.161:                              #   in Loop: Header=BB5_123 Depth=2
	movl	$1, %ebx
	cmpl	$0, 8(%rsp)
	jle	.LBB5_175
# %bb.162:                              #   in Loop: Header=BB5_123 Depth=2
	movq	8(%r13), %rdi
	movq	8(%r12), %rsi
.Ltmp168:
	callq	hipEventRecord
.Ltmp169:
# %bb.163:                              #   in Loop: Header=BB5_123 Depth=2
.Ltmp170:
	movl	%eax, %edi
	movl	$404, %esi                      # imm = 0x194
	callq	_Z9safe_call10hipError_ti
.Ltmp171:
# %bb.164:                              #   in Loop: Header=BB5_123 Depth=2
	movq	8(%r12), %r9
.Ltmp172:
	movq	64(%rsp), %rdi                  # 8-byte Reload
	movl	$1, %esi
	movq	56(%rsp), %rdx                  # 8-byte Reload
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	__hipPushCallConfiguration
.Ltmp173:
# %bb.165:                              #   in Loop: Header=BB5_123 Depth=2
	testl	%eax, %eax
	jne	.LBB5_167
# %bb.166:                              #   in Loop: Header=BB5_123 Depth=2
	movq	40(%rsp), %rdi
	movq	72(%rsp), %rsi
	movl	16(%rsp), %edx
.Ltmp174:
	movq	24(%rsp), %rcx                  # 8-byte Reload
                                        # kill: def $ecx killed $ecx killed $rcx
	callq	_Z29__device_stub__gather_pr_edgePK7__shardP8__vertexii
.Ltmp175:
.LBB5_167:                              #   in Loop: Header=BB5_123 Depth=2
	movq	8(%r12), %rdi
.Ltmp176:
	callq	hipStreamSynchronize
.Ltmp177:
# %bb.168:                              #   in Loop: Header=BB5_123 Depth=2
.Ltmp178:
	movl	%eax, %edi
	movl	$406, %esi                      # imm = 0x196
	callq	_Z9safe_call10hipError_ti
.Ltmp179:
# %bb.169:                              #   in Loop: Header=BB5_123 Depth=2
	movq	8(%rbp), %rdi
	movq	8(%r12), %rsi
.Ltmp180:
	callq	hipEventRecord
.Ltmp181:
# %bb.170:                              #   in Loop: Header=BB5_123 Depth=2
.Ltmp182:
	movl	%eax, %edi
	movl	$407, %esi                      # imm = 0x197
	callq	_Z9safe_call10hipError_ti
.Ltmp183:
# %bb.171:                              #   in Loop: Header=BB5_123 Depth=2
	movq	8(%rbp), %rdi
.Ltmp184:
	callq	hipEventSynchronize
.Ltmp185:
# %bb.172:                              #   in Loop: Header=BB5_123 Depth=2
.Ltmp186:
	movl	%eax, %edi
	movl	$408, %esi                      # imm = 0x198
	callq	_Z9safe_call10hipError_ti
.Ltmp187:
# %bb.173:                              #   in Loop: Header=BB5_123 Depth=2
	movslq	8(%rsp), %rax
	movq	48(%rsp), %rcx                  # 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	movq	8(%r13), %rsi
	movq	8(%rbp), %rdx
.Ltmp188:
	callq	hipEventElapsedTime
.Ltmp189:
# %bb.174:                              #   in Loop: Header=BB5_123 Depth=2
.Ltmp190:
	movl	%eax, %edi
	movl	$409, %esi                      # imm = 0x199
	callq	_Z9safe_call10hipError_ti
.Ltmp191:
.LBB5_175:                              #   in Loop: Header=BB5_123 Depth=2
	movl	8(%rsp), %eax
	incl	%eax
	movl	%eax, 8(%rsp)
	cmpl	20(%rsp), %eax                  # 4-byte Folded Reload
	jl	.LBB5_123
# %bb.176:                              # %._crit_edge596
                                        #   in Loop: Header=BB5_117 Depth=1
	testl	%r14d, %r14d
	movl	20(%rsp), %r14d                 # 4-byte Reload
	movq	152(%rsp), %rbx                 # 8-byte Reload
	je	.LBB5_190
.LBB5_177:                              # %._crit_edge596.thread
                                        #   in Loop: Header=BB5_117 Depth=1
	movq	8(%r13), %rdi
	movq	8(%r12), %rsi
.Ltmp193:
	callq	hipEventRecord
.Ltmp194:
# %bb.178:                              #   in Loop: Header=BB5_117 Depth=1
.Ltmp195:
	movl	%eax, %edi
	movl	$441, %esi                      # imm = 0x1B9
	callq	_Z9safe_call10hipError_ti
.Ltmp196:
# %bb.179:                              #   in Loop: Header=BB5_117 Depth=1
	movq	8(%r12), %r9
.Ltmp197:
	movq	64(%rsp), %rdi                  # 8-byte Reload
	movl	$1, %esi
	movq	56(%rsp), %rdx                  # 8-byte Reload
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	__hipPushCallConfiguration
.Ltmp198:
# %bb.180:                              #   in Loop: Header=BB5_117 Depth=1
	testl	%eax, %eax
	jne	.LBB5_182
# %bb.181:                              #   in Loop: Header=BB5_117 Depth=1
	movq	40(%rsp), %rdi
	movq	72(%rsp), %rsi
	movl	16(%rsp), %edx
.Ltmp199:
	movq	24(%rsp), %rcx                  # 8-byte Reload
                                        # kill: def $ecx killed $ecx killed $rcx
	callq	_Z29__device_stub__gather_pr_edgePK7__shardP8__vertexii
.Ltmp200:
.LBB5_182:                              #   in Loop: Header=BB5_117 Depth=1
	movq	8(%r12), %rdi
.Ltmp201:
	callq	hipStreamSynchronize
.Ltmp202:
# %bb.183:                              #   in Loop: Header=BB5_117 Depth=1
.Ltmp203:
	movl	%eax, %edi
	movl	$443, %esi                      # imm = 0x1BB
	callq	_Z9safe_call10hipError_ti
.Ltmp204:
# %bb.184:                              #   in Loop: Header=BB5_117 Depth=1
	movq	8(%rbp), %rdi
	movq	8(%r12), %rsi
.Ltmp205:
	callq	hipEventRecord
.Ltmp206:
# %bb.185:                              #   in Loop: Header=BB5_117 Depth=1
.Ltmp207:
	movl	%eax, %edi
	movl	$444, %esi                      # imm = 0x1BC
	callq	_Z9safe_call10hipError_ti
.Ltmp208:
# %bb.186:                              #   in Loop: Header=BB5_117 Depth=1
	movq	8(%rbp), %rdi
.Ltmp209:
	callq	hipEventSynchronize
.Ltmp210:
# %bb.187:                              #   in Loop: Header=BB5_117 Depth=1
.Ltmp211:
	movl	%eax, %edi
	movl	$445, %esi                      # imm = 0x1BD
	callq	_Z9safe_call10hipError_ti
.Ltmp212:
# %bb.188:                              #   in Loop: Header=BB5_117 Depth=1
	movslq	8(%rsp), %rax
	movq	48(%rsp), %rcx                  # 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	movq	8(%r13), %rsi
	movq	8(%rbp), %rdx
.Ltmp213:
	callq	hipEventElapsedTime
.Ltmp214:
# %bb.189:                              #   in Loop: Header=BB5_117 Depth=1
	movl	$446, %esi                      # imm = 0x1BE
	jmp	.LBB5_203
.LBB5_190:                              #   in Loop: Header=BB5_117 Depth=1
	movq	(%r13), %rdi
	movq	(%r12), %rsi
.Ltmp215:
	callq	hipEventRecord
.Ltmp216:
# %bb.191:                              #   in Loop: Header=BB5_117 Depth=1
.Ltmp217:
	movl	%eax, %edi
	movl	$451, %esi                      # imm = 0x1C3
	callq	_Z9safe_call10hipError_ti
.Ltmp218:
# %bb.192:                              #   in Loop: Header=BB5_117 Depth=1
	movq	(%r12), %r9
.Ltmp219:
	movq	64(%rsp), %rdi                  # 8-byte Reload
	movl	$1, %esi
	movq	56(%rsp), %rdx                  # 8-byte Reload
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	__hipPushCallConfiguration
.Ltmp220:
# %bb.193:                              #   in Loop: Header=BB5_117 Depth=1
	testl	%eax, %eax
	jne	.LBB5_195
# %bb.194:                              #   in Loop: Header=BB5_117 Depth=1
	movq	80(%rsp), %rdi
	movq	72(%rsp), %rsi
	movl	16(%rsp), %edx
.Ltmp221:
	movq	24(%rsp), %rcx                  # 8-byte Reload
                                        # kill: def $ecx killed $ecx killed $rcx
	callq	_Z29__device_stub__gather_pr_edgePK7__shardP8__vertexii
.Ltmp222:
.LBB5_195:                              #   in Loop: Header=BB5_117 Depth=1
	movq	(%r12), %rdi
.Ltmp223:
	callq	hipStreamSynchronize
.Ltmp224:
# %bb.196:                              #   in Loop: Header=BB5_117 Depth=1
.Ltmp225:
	movl	%eax, %edi
	movl	$453, %esi                      # imm = 0x1C5
	callq	_Z9safe_call10hipError_ti
.Ltmp226:
# %bb.197:                              #   in Loop: Header=BB5_117 Depth=1
	movq	(%rbp), %rdi
	movq	(%r12), %rsi
.Ltmp227:
	callq	hipEventRecord
.Ltmp228:
# %bb.198:                              #   in Loop: Header=BB5_117 Depth=1
.Ltmp229:
	movl	%eax, %edi
	movl	$454, %esi                      # imm = 0x1C6
	callq	_Z9safe_call10hipError_ti
.Ltmp230:
# %bb.199:                              #   in Loop: Header=BB5_117 Depth=1
	movq	(%rbp), %rdi
.Ltmp231:
	callq	hipEventSynchronize
.Ltmp232:
# %bb.200:                              #   in Loop: Header=BB5_117 Depth=1
.Ltmp233:
	movl	%eax, %edi
	movl	$455, %esi                      # imm = 0x1C7
	callq	_Z9safe_call10hipError_ti
.Ltmp234:
# %bb.201:                              #   in Loop: Header=BB5_117 Depth=1
	movslq	8(%rsp), %rax
	movq	48(%rsp), %rcx                  # 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	movq	8(%r13), %rsi
	movq	8(%rbp), %rdx
.Ltmp235:
	callq	hipEventElapsedTime
.Ltmp236:
# %bb.202:                              #   in Loop: Header=BB5_117 Depth=1
	movl	$456, %esi                      # imm = 0x1C8
.LBB5_203:                              # %.invoke
                                        #   in Loop: Header=BB5_117 Depth=1
.Ltmp237:
	movl	%eax, %edi
	callq	_Z9safe_call10hipError_ti
.Ltmp238:
# %bb.204:                              #   in Loop: Header=BB5_117 Depth=1
	testl	%r14d, %r14d
	jle	.LBB5_264
# %bb.205:                              # %.lr.ph601.preheader
                                        #   in Loop: Header=BB5_117 Depth=1
	xorl	%eax, %eax
	movq	208(%rsp), %rcx                 # 8-byte Reload
	movsd	104(%rsp), %xmm1                # 8-byte Reload
                                        # xmm1 = mem[0],zero
.LBB5_206:                              # %.lr.ph601
                                        #   Parent Loop BB5_117 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rcx,%rax,4), %xmm0
	addsd	%xmm0, %xmm1
	incq	%rax
	cmpq	%rax, %rbx
	jne	.LBB5_206
# %bb.207:                              # %.preheader
                                        #   in Loop: Header=BB5_117 Depth=1
	movsd	%xmm1, 104(%rsp)                # 8-byte Spill
	movl	$0, 8(%rsp)
	testl	%r14d, %r14d
	jle	.LBB5_265
# %bb.208:                              # %.lr.ph610.preheader
                                        #   in Loop: Header=BB5_117 Depth=1
	xorl	%r14d, %r14d
	xorl	%eax, %eax
.LBB5_209:                              # %.lr.ph610
                                        #   Parent Loop BB5_117 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	%r14d, %ebx
	cltq
	leaq	(%rax,%rax,4), %rax
	leaq	(%r15,%rax,8), %rsi
	testl	%r14d, %r14d
	je	.LBB5_235
# %bb.210:                              #   in Loop: Header=BB5_209 Depth=2
	movq	40(%rsp), %rdi
	movq	8(%r12), %r8
.Ltmp239:
	movl	$40, %edx
	movl	$1, %ecx
	callq	hipMemcpyAsync
.Ltmp240:
# %bb.211:                              #   in Loop: Header=BB5_209 Depth=2
.Ltmp241:
	movl	%eax, %edi
	movl	$504, %esi                      # imm = 0x1F8
	callq	_Z9safe_call10hipError_ti
.Ltmp242:
# %bb.212:                              #   in Loop: Header=BB5_209 Depth=2
	movq	160(%rsp), %rdi
	movslq	8(%rsp), %rax
	leaq	(%rax,%rax,4), %rax
	movq	16(%r15,%rax,8), %rsi
	movq	8(%r12), %r8
.Ltmp243:
	movq	112(%rsp), %rdx                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpyAsync
.Ltmp244:
# %bb.213:                              #   in Loop: Header=BB5_209 Depth=2
.Ltmp245:
	movl	%eax, %edi
	movl	$505, %esi                      # imm = 0x1F9
	callq	_Z9safe_call10hipError_ti
.Ltmp246:
# %bb.214:                              #   in Loop: Header=BB5_209 Depth=2
	movq	40(%rsp), %rdi
	addq	$16, %rdi
	movq	8(%r12), %r8
.Ltmp247:
	movl	$8, %edx
	leaq	160(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpyAsync
.Ltmp248:
# %bb.215:                              #   in Loop: Header=BB5_209 Depth=2
.Ltmp249:
	movl	%eax, %edi
	movl	$506, %esi                      # imm = 0x1FA
	callq	_Z9safe_call10hipError_ti
.Ltmp250:
# %bb.216:                              #   in Loop: Header=BB5_209 Depth=2
	movq	168(%rsp), %rdi
	movslq	8(%rsp), %rax
	leaq	(%rax,%rax,4), %rax
	movq	24(%r15,%rax,8), %rsi
	movq	8(%r12), %r8
.Ltmp251:
	movq	32(%rsp), %rdx                  # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpyAsync
.Ltmp252:
# %bb.217:                              #   in Loop: Header=BB5_209 Depth=2
.Ltmp253:
	movl	%eax, %edi
	movl	$509, %esi                      # imm = 0x1FD
	callq	_Z9safe_call10hipError_ti
.Ltmp254:
# %bb.218:                              #   in Loop: Header=BB5_209 Depth=2
	movq	40(%rsp), %rdi
	addq	$24, %rdi
	movq	8(%r12), %r8
.Ltmp255:
	movl	$8, %edx
	leaq	168(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpyAsync
.Ltmp256:
# %bb.219:                              #   in Loop: Header=BB5_209 Depth=2
.Ltmp257:
	movl	%eax, %edi
	movl	$510, %esi                      # imm = 0x1FE
	callq	_Z9safe_call10hipError_ti
.Ltmp258:
# %bb.220:                              #   in Loop: Header=BB5_209 Depth=2
	movq	40(%rsp), %rdi
	addq	$32, %rdi
	movq	(%r12), %r8
.Ltmp259:
	movl	$8, %edx
	leaq	216(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpyAsync
.Ltmp260:
# %bb.221:                              #   in Loop: Header=BB5_209 Depth=2
.Ltmp261:
	movl	%eax, %edi
	movl	$511, %esi                      # imm = 0x1FF
	callq	_Z9safe_call10hipError_ti
.Ltmp262:
# %bb.222:                              #   in Loop: Header=BB5_209 Depth=2
	movq	(%r13), %rdi
	movq	(%r12), %rsi
.Ltmp263:
	callq	hipEventRecord
.Ltmp264:
# %bb.223:                              #   in Loop: Header=BB5_209 Depth=2
.Ltmp265:
	movl	%eax, %edi
	movl	$514, %esi                      # imm = 0x202
	callq	_Z9safe_call10hipError_ti
.Ltmp266:
# %bb.224:                              #   in Loop: Header=BB5_209 Depth=2
	movq	(%r12), %r9
.Ltmp267:
	movq	64(%rsp), %rdi                  # 8-byte Reload
	movl	$1, %esi
	movq	56(%rsp), %rdx                  # 8-byte Reload
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	__hipPushCallConfiguration
.Ltmp268:
# %bb.225:                              #   in Loop: Header=BB5_209 Depth=2
	testl	%eax, %eax
	jne	.LBB5_227
# %bb.226:                              #   in Loop: Header=BB5_209 Depth=2
	movq	80(%rsp), %rdi
	movq	72(%rsp), %rsi
	movl	16(%rsp), %edx
.Ltmp269:
	movq	24(%rsp), %rcx                  # 8-byte Reload
                                        # kill: def $ecx killed $ecx killed $rcx
	callq	_Z28__device_stub__apply_pr_edgePK7__shardP8__vertexii
.Ltmp270:
.LBB5_227:                              #   in Loop: Header=BB5_209 Depth=2
	movq	(%r12), %rdi
.Ltmp271:
	callq	hipStreamSynchronize
.Ltmp272:
# %bb.228:                              #   in Loop: Header=BB5_209 Depth=2
.Ltmp273:
	movl	%eax, %edi
	movl	$516, %esi                      # imm = 0x204
	callq	_Z9safe_call10hipError_ti
.Ltmp274:
# %bb.229:                              #   in Loop: Header=BB5_209 Depth=2
	movq	(%rbp), %rdi
	movq	(%r12), %rsi
.Ltmp275:
	callq	hipEventRecord
.Ltmp276:
# %bb.230:                              #   in Loop: Header=BB5_209 Depth=2
.Ltmp277:
	movl	%eax, %edi
	movl	$517, %esi                      # imm = 0x205
	callq	_Z9safe_call10hipError_ti
.Ltmp278:
# %bb.231:                              #   in Loop: Header=BB5_209 Depth=2
	movq	(%rbp), %rdi
.Ltmp279:
	callq	hipEventSynchronize
.Ltmp280:
# %bb.232:                              #   in Loop: Header=BB5_209 Depth=2
.Ltmp281:
	movl	%eax, %edi
	movl	$518, %esi                      # imm = 0x206
	callq	_Z9safe_call10hipError_ti
.Ltmp282:
# %bb.233:                              #   in Loop: Header=BB5_209 Depth=2
	movslq	8(%rsp), %rax
	movq	48(%rsp), %rcx                  # 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	movq	(%r13), %rsi
	movq	(%rbp), %rdx
.Ltmp283:
	callq	hipEventElapsedTime
.Ltmp284:
# %bb.234:                              #   in Loop: Header=BB5_209 Depth=2
	xorl	%r14d, %r14d
.Ltmp285:
	movl	%eax, %edi
	movl	$519, %esi                      # imm = 0x207
	callq	_Z9safe_call10hipError_ti
.Ltmp286:
	jmp	.LBB5_261
.LBB5_235:                              #   in Loop: Header=BB5_209 Depth=2
	movq	80(%rsp), %rdi
	movq	(%r12), %r8
.Ltmp287:
	movl	$40, %edx
	movl	$1, %ecx
	callq	hipMemcpyAsync
.Ltmp288:
# %bb.236:                              #   in Loop: Header=BB5_209 Depth=2
.Ltmp289:
	movl	%eax, %edi
	movl	$477, %esi                      # imm = 0x1DD
	callq	_Z9safe_call10hipError_ti
.Ltmp290:
# %bb.237:                              #   in Loop: Header=BB5_209 Depth=2
	movq	120(%rsp), %rdi
	movslq	8(%rsp), %rax
	leaq	(%rax,%rax,4), %rax
	movq	16(%r15,%rax,8), %rsi
	movq	(%r12), %r8
.Ltmp291:
	movq	112(%rsp), %rdx                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpyAsync
.Ltmp292:
# %bb.238:                              #   in Loop: Header=BB5_209 Depth=2
.Ltmp293:
	movl	%eax, %edi
	movl	$478, %esi                      # imm = 0x1DE
	callq	_Z9safe_call10hipError_ti
.Ltmp294:
# %bb.239:                              #   in Loop: Header=BB5_209 Depth=2
	movq	80(%rsp), %rdi
	addq	$16, %rdi
	movq	(%r12), %r8
.Ltmp295:
	movl	$8, %edx
	leaq	120(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpyAsync
.Ltmp296:
# %bb.240:                              #   in Loop: Header=BB5_209 Depth=2
.Ltmp297:
	movl	%eax, %edi
	movl	$479, %esi                      # imm = 0x1DF
	callq	_Z9safe_call10hipError_ti
.Ltmp298:
# %bb.241:                              #   in Loop: Header=BB5_209 Depth=2
	movq	232(%rsp), %rdi
	movslq	8(%rsp), %rax
	leaq	(%rax,%rax,4), %rax
	movq	24(%r15,%rax,8), %rsi
	movq	(%r12), %r8
.Ltmp299:
	movq	32(%rsp), %rdx                  # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpyAsync
.Ltmp300:
# %bb.242:                              #   in Loop: Header=BB5_209 Depth=2
.Ltmp301:
	movl	%eax, %edi
	movl	$482, %esi                      # imm = 0x1E2
	callq	_Z9safe_call10hipError_ti
.Ltmp302:
# %bb.243:                              #   in Loop: Header=BB5_209 Depth=2
	movq	80(%rsp), %rdi
	addq	$24, %rdi
	movq	(%r12), %r8
.Ltmp303:
	movl	$8, %edx
	leaq	232(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpyAsync
.Ltmp304:
# %bb.244:                              #   in Loop: Header=BB5_209 Depth=2
.Ltmp305:
	movl	%eax, %edi
	movl	$483, %esi                      # imm = 0x1E3
	callq	_Z9safe_call10hipError_ti
.Ltmp306:
# %bb.245:                              #   in Loop: Header=BB5_209 Depth=2
	movq	80(%rsp), %rdi
	addq	$32, %rdi
	movq	(%r12), %r8
.Ltmp307:
	movl	$8, %edx
	leaq	224(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpyAsync
.Ltmp308:
# %bb.246:                              #   in Loop: Header=BB5_209 Depth=2
.Ltmp309:
	movl	%eax, %edi
	movl	$484, %esi                      # imm = 0x1E4
	callq	_Z9safe_call10hipError_ti
.Ltmp310:
# %bb.247:                              #   in Loop: Header=BB5_209 Depth=2
	movl	$1, %r14d
	cmpl	$0, 8(%rsp)
	jle	.LBB5_261
# %bb.248:                              #   in Loop: Header=BB5_209 Depth=2
	movq	8(%r13), %rdi
	movq	8(%r12), %rsi
.Ltmp311:
	callq	hipEventRecord
.Ltmp312:
# %bb.249:                              #   in Loop: Header=BB5_209 Depth=2
.Ltmp313:
	movl	%eax, %edi
	movl	$490, %esi                      # imm = 0x1EA
	callq	_Z9safe_call10hipError_ti
.Ltmp314:
# %bb.250:                              #   in Loop: Header=BB5_209 Depth=2
	movq	8(%r12), %r9
.Ltmp315:
	movq	64(%rsp), %rdi                  # 8-byte Reload
	movl	$1, %esi
	movq	56(%rsp), %rdx                  # 8-byte Reload
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	__hipPushCallConfiguration
.Ltmp316:
# %bb.251:                              #   in Loop: Header=BB5_209 Depth=2
	testl	%eax, %eax
	jne	.LBB5_253
# %bb.252:                              #   in Loop: Header=BB5_209 Depth=2
	movq	40(%rsp), %rdi
	movq	72(%rsp), %rsi
	movl	16(%rsp), %edx
.Ltmp317:
	movq	24(%rsp), %rcx                  # 8-byte Reload
                                        # kill: def $ecx killed $ecx killed $rcx
	callq	_Z28__device_stub__apply_pr_edgePK7__shardP8__vertexii
.Ltmp318:
.LBB5_253:                              #   in Loop: Header=BB5_209 Depth=2
	movq	8(%r12), %rdi
.Ltmp319:
	callq	hipStreamSynchronize
.Ltmp320:
# %bb.254:                              #   in Loop: Header=BB5_209 Depth=2
.Ltmp321:
	movl	%eax, %edi
	movl	$492, %esi                      # imm = 0x1EC
	callq	_Z9safe_call10hipError_ti
.Ltmp322:
# %bb.255:                              #   in Loop: Header=BB5_209 Depth=2
	movq	8(%rbp), %rdi
	movq	8(%r12), %rsi
.Ltmp323:
	callq	hipEventRecord
.Ltmp324:
# %bb.256:                              #   in Loop: Header=BB5_209 Depth=2
.Ltmp325:
	movl	%eax, %edi
	movl	$493, %esi                      # imm = 0x1ED
	callq	_Z9safe_call10hipError_ti
.Ltmp326:
# %bb.257:                              #   in Loop: Header=BB5_209 Depth=2
	movq	8(%rbp), %rdi
.Ltmp327:
	callq	hipEventSynchronize
.Ltmp328:
# %bb.258:                              #   in Loop: Header=BB5_209 Depth=2
.Ltmp329:
	movl	%eax, %edi
	movl	$494, %esi                      # imm = 0x1EE
	callq	_Z9safe_call10hipError_ti
.Ltmp330:
# %bb.259:                              #   in Loop: Header=BB5_209 Depth=2
	movslq	8(%rsp), %rax
	movq	48(%rsp), %rcx                  # 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	movq	8(%r13), %rsi
	movq	8(%rbp), %rdx
.Ltmp331:
	callq	hipEventElapsedTime
.Ltmp332:
# %bb.260:                              #   in Loop: Header=BB5_209 Depth=2
.Ltmp333:
	movl	%eax, %edi
	movl	$495, %esi                      # imm = 0x1EF
	callq	_Z9safe_call10hipError_ti
.Ltmp334:
.LBB5_261:                              #   in Loop: Header=BB5_209 Depth=2
	movl	8(%rsp), %eax
	incl	%eax
	movl	%eax, 8(%rsp)
	cmpl	20(%rsp), %eax                  # 4-byte Folded Reload
	jl	.LBB5_209
# %bb.262:                              # %._crit_edge611
                                        #   in Loop: Header=BB5_117 Depth=1
	testl	%ebx, %ebx
	je	.LBB5_286
# %bb.263:                              #   in Loop: Header=BB5_117 Depth=1
	movl	20(%rsp), %r14d                 # 4-byte Reload
	movq	152(%rsp), %rbx                 # 8-byte Reload
	jmp	.LBB5_265
.LBB5_264:                              # %.preheader.thread
                                        #   in Loop: Header=BB5_117 Depth=1
	movl	$0, 8(%rsp)
.LBB5_265:                              # %._crit_edge611.thread
                                        #   in Loop: Header=BB5_117 Depth=1
	movq	8(%r13), %rdi
	movq	8(%r12), %rsi
.Ltmp336:
	callq	hipEventRecord
.Ltmp337:
# %bb.266:                              #   in Loop: Header=BB5_117 Depth=1
.Ltmp338:
	movl	%eax, %edi
	movl	$527, %esi                      # imm = 0x20F
	callq	_Z9safe_call10hipError_ti
.Ltmp339:
# %bb.267:                              #   in Loop: Header=BB5_117 Depth=1
	movq	8(%r12), %r9
.Ltmp340:
	movq	64(%rsp), %rdi                  # 8-byte Reload
	movl	$1, %esi
	movq	56(%rsp), %rdx                  # 8-byte Reload
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	__hipPushCallConfiguration
.Ltmp341:
# %bb.268:                              #   in Loop: Header=BB5_117 Depth=1
	testl	%eax, %eax
	jne	.LBB5_270
# %bb.269:                              #   in Loop: Header=BB5_117 Depth=1
	movq	40(%rsp), %rdi
	movq	72(%rsp), %rsi
	movl	16(%rsp), %edx
.Ltmp342:
	movq	24(%rsp), %rcx                  # 8-byte Reload
                                        # kill: def $ecx killed $ecx killed $rcx
	callq	_Z28__device_stub__apply_pr_edgePK7__shardP8__vertexii
.Ltmp343:
.LBB5_270:                              #   in Loop: Header=BB5_117 Depth=1
	movq	8(%r12), %rdi
.Ltmp344:
	callq	hipStreamSynchronize
.Ltmp345:
# %bb.271:                              #   in Loop: Header=BB5_117 Depth=1
.Ltmp346:
	movl	%eax, %edi
	movl	$529, %esi                      # imm = 0x211
	callq	_Z9safe_call10hipError_ti
.Ltmp347:
# %bb.272:                              #   in Loop: Header=BB5_117 Depth=1
	movq	8(%rbp), %rdi
	movq	8(%r12), %rsi
.Ltmp348:
	callq	hipEventRecord
.Ltmp349:
# %bb.273:                              #   in Loop: Header=BB5_117 Depth=1
.Ltmp350:
	movl	%eax, %edi
	movl	$530, %esi                      # imm = 0x212
	callq	_Z9safe_call10hipError_ti
.Ltmp351:
# %bb.274:                              #   in Loop: Header=BB5_117 Depth=1
	movq	8(%rbp), %rdi
.Ltmp352:
	callq	hipEventSynchronize
.Ltmp353:
# %bb.275:                              #   in Loop: Header=BB5_117 Depth=1
.Ltmp354:
	movl	%eax, %edi
	movl	$531, %esi                      # imm = 0x213
	callq	_Z9safe_call10hipError_ti
.Ltmp355:
# %bb.276:                              #   in Loop: Header=BB5_117 Depth=1
	movslq	8(%rsp), %rax
	movq	48(%rsp), %rcx                  # 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	movq	8(%r13), %rsi
	movq	8(%rbp), %rdx
.Ltmp356:
	callq	hipEventElapsedTime
.Ltmp357:
# %bb.277:                              #   in Loop: Header=BB5_117 Depth=1
.Ltmp358:
	movl	%eax, %edi
	movl	$532, %esi                      # imm = 0x214
	callq	_Z9safe_call10hipError_ti
.Ltmp359:
.LBB5_278:                              #   in Loop: Header=BB5_117 Depth=1
	testl	%r14d, %r14d
	jle	.LBB5_282
# %bb.279:                              # %.lr.ph616.preheader
                                        #   in Loop: Header=BB5_117 Depth=1
	xorl	%eax, %eax
	movq	208(%rsp), %rcx                 # 8-byte Reload
	movsd	104(%rsp), %xmm1                # 8-byte Reload
                                        # xmm1 = mem[0],zero
.LBB5_280:                              # %.lr.ph616
                                        #   Parent Loop BB5_117 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rcx,%rax,4), %xmm0
	addsd	%xmm0, %xmm1
	incq	%rax
	cmpq	%rax, %rbx
	jne	.LBB5_280
# %bb.281:                              #   in Loop: Header=BB5_117 Depth=1
	movsd	%xmm1, 104(%rsp)                # 8-byte Spill
	movl	%r14d, %eax
	jmp	.LBB5_283
.LBB5_282:                              #   in Loop: Header=BB5_117 Depth=1
	xorl	%eax, %eax
.LBB5_283:                              # %._crit_edge617
                                        #   in Loop: Header=BB5_117 Depth=1
	movl	%eax, 8(%rsp)
.Ltmp384:
	movl	$d_over, %esi
	movl	$1, %edx
	leaq	15(%rsp), %rdi
	xorl	%ecx, %ecx
	movl	$2, %r8d
	callq	hipMemcpyFromSymbol
.Ltmp385:
# %bb.284:                              # %_Z19hipMemcpyFromSymbolIbE10hipError_tPvRKT_mm13hipMemcpyKind.exit
                                        #   in Loop: Header=BB5_117 Depth=1
.Ltmp386:
	movl	%eax, %edi
	movl	$552, %esi                      # imm = 0x228
	callq	_Z9safe_call10hipError_ti
.Ltmp387:
# %bb.285:                              #   in Loop: Header=BB5_117 Depth=1
	movq	24(%rsp), %rax                  # 8-byte Reload
	incl	%eax
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	cmpb	$0, 15(%rsp)
	jne	.LBB5_117
	jmp	.LBB5_299
.LBB5_286:                              #   in Loop: Header=BB5_117 Depth=1
	movq	(%r13), %rdi
	movq	(%r12), %rsi
.Ltmp360:
	callq	hipEventRecord
.Ltmp361:
	movl	20(%rsp), %r14d                 # 4-byte Reload
	movq	152(%rsp), %rbx                 # 8-byte Reload
# %bb.287:                              #   in Loop: Header=BB5_117 Depth=1
.Ltmp362:
	movl	%eax, %edi
	movl	$537, %esi                      # imm = 0x219
	callq	_Z9safe_call10hipError_ti
.Ltmp363:
# %bb.288:                              #   in Loop: Header=BB5_117 Depth=1
	movq	(%r12), %r9
.Ltmp364:
	movq	64(%rsp), %rdi                  # 8-byte Reload
	movl	$1, %esi
	movq	56(%rsp), %rdx                  # 8-byte Reload
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	__hipPushCallConfiguration
.Ltmp365:
# %bb.289:                              #   in Loop: Header=BB5_117 Depth=1
	testl	%eax, %eax
	jne	.LBB5_291
# %bb.290:                              #   in Loop: Header=BB5_117 Depth=1
	movq	80(%rsp), %rdi
	movq	72(%rsp), %rsi
	movl	16(%rsp), %edx
.Ltmp366:
	movq	24(%rsp), %rcx                  # 8-byte Reload
                                        # kill: def $ecx killed $ecx killed $rcx
	callq	_Z28__device_stub__apply_pr_edgePK7__shardP8__vertexii
.Ltmp367:
.LBB5_291:                              #   in Loop: Header=BB5_117 Depth=1
	movq	(%r12), %rdi
.Ltmp368:
	callq	hipStreamSynchronize
.Ltmp369:
# %bb.292:                              #   in Loop: Header=BB5_117 Depth=1
.Ltmp370:
	movl	%eax, %edi
	movl	$539, %esi                      # imm = 0x21B
	callq	_Z9safe_call10hipError_ti
.Ltmp371:
# %bb.293:                              #   in Loop: Header=BB5_117 Depth=1
	movq	(%rbp), %rdi
	movq	(%r12), %rsi
.Ltmp372:
	callq	hipEventRecord
.Ltmp373:
# %bb.294:                              #   in Loop: Header=BB5_117 Depth=1
.Ltmp374:
	movl	%eax, %edi
	movl	$540, %esi                      # imm = 0x21C
	callq	_Z9safe_call10hipError_ti
.Ltmp375:
# %bb.295:                              #   in Loop: Header=BB5_117 Depth=1
	movq	(%rbp), %rdi
.Ltmp376:
	callq	hipEventSynchronize
.Ltmp377:
# %bb.296:                              #   in Loop: Header=BB5_117 Depth=1
.Ltmp378:
	movl	%eax, %edi
	movl	$541, %esi                      # imm = 0x21D
	callq	_Z9safe_call10hipError_ti
.Ltmp379:
# %bb.297:                              #   in Loop: Header=BB5_117 Depth=1
	movslq	8(%rsp), %rax
	movq	48(%rsp), %rcx                  # 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	movq	8(%r13), %rsi
	movq	8(%rbp), %rdx
.Ltmp380:
	callq	hipEventElapsedTime
.Ltmp381:
# %bb.298:                              #   in Loop: Header=BB5_117 Depth=1
.Ltmp382:
	movl	%eax, %edi
	movl	$542, %esi                      # imm = 0x21E
	callq	_Z9safe_call10hipError_ti
.Ltmp383:
	jmp	.LBB5_278
.LBB5_299:
.Ltmp389:
	callq	hipDeviceSynchronize
.Ltmp390:
# %bb.300:
.Ltmp391:
	movl	%eax, %edi
	movl	$556, %esi                      # imm = 0x22C
	callq	_Z9safe_call10hipError_ti
.Ltmp392:
# %bb.301:
	xorl	%r14d, %r14d
	leaq	296(%rsp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	xorps	%xmm1, %xmm1
	cvtsi2sdq	(%rbx), %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sdq	8(%rbx), %xmm0
	movsd	.LCPI5_0(%rip), %xmm4           # xmm4 = mem[0],zero
	mulsd	%xmm4, %xmm0
	cvtsi2sdq	256(%rsp), %xmm2
	cvtsi2sdq	264(%rsp), %xmm3
	addsd	%xmm1, %xmm0
	mulsd	%xmm4, %xmm3
	addsd	%xmm2, %xmm3
	subsd	%xmm3, %xmm0
	movb	$1, %bl
	movl	$.L.str.13, %edi
	movb	$1, %al
	callq	printf
	movl	$.L.str.14, %edi
	movq	24(%rsp), %rsi                  # 8-byte Reload
                                        # kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.15, %edi
	movsd	104(%rsp), %xmm0                # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movb	$1, %al
	callq	printf
.LBB5_302:                              # =>This Inner Loop Header: Depth=1
	movq	(%r12,%r14,8), %rdi
.Ltmp393:
	callq	hipStreamDestroy
.Ltmp394:
# %bb.303:                              #   in Loop: Header=BB5_302 Depth=1
.Ltmp395:
	movl	%eax, %edi
	movl	$572, %esi                      # imm = 0x23C
	callq	_Z9safe_call10hipError_ti
.Ltmp396:
# %bb.304:                              #   in Loop: Header=BB5_302 Depth=1
	movq	(%r13,%r14,8), %rdi
.Ltmp397:
	callq	hipEventDestroy
.Ltmp398:
# %bb.305:                              #   in Loop: Header=BB5_302 Depth=1
.Ltmp399:
	movl	%eax, %edi
	movl	$573, %esi                      # imm = 0x23D
	callq	_Z9safe_call10hipError_ti
.Ltmp400:
# %bb.306:                              #   in Loop: Header=BB5_302 Depth=1
	movq	(%rbp,%r14,8), %rdi
.Ltmp401:
	callq	hipEventDestroy
.Ltmp402:
# %bb.307:                              #   in Loop: Header=BB5_302 Depth=1
.Ltmp403:
	movl	%eax, %edi
	movl	$574, %esi                      # imm = 0x23E
	callq	_Z9safe_call10hipError_ti
.Ltmp404:
# %bb.308:                              #   in Loop: Header=BB5_302 Depth=1
	movl	$1, %r14d
	testb	$1, %bl
	movl	$0, %ebx
	jne	.LBB5_302
# %bb.309:
	movq	192(%rsp), %rdi                 # 8-byte Reload
	callq	free
	movl	$0, 8(%rsp)
	movl	20(%rsp), %ebx                  # 4-byte Reload
	testl	%ebx, %ebx
	jle	.LBB5_312
# %bb.310:                              # %.lr.ph631.preheader
	xorl	%eax, %eax
.LBB5_311:                              # %.lr.ph631
                                        # =>This Inner Loop Header: Depth=1
	cltq
	leaq	(%rax,%rax,4), %rax
	movq	24(%r15,%rax,8), %rdi
	callq	free
	movslq	8(%rsp), %rax
	leaq	(%rax,%rax,4), %rax
	movq	16(%r15,%rax,8), %rdi
	callq	free
	movslq	8(%rsp), %rax
	leaq	(%rax,%rax,4), %rax
	movq	32(%r15,%rax,8), %rdi
	callq	free
	movl	8(%rsp), %eax
	incl	%eax
	movl	%eax, 8(%rsp)
	cmpl	%ebx, %eax
	jl	.LBB5_311
.LBB5_312:                              # %._crit_edge632
	movq	%r15, %rdi
	callq	free
	movq	200(%rsp), %rdi                 # 8-byte Reload
	callq	free
	movq	72(%rsp), %rdi
.Ltmp406:
	callq	hipFree
.Ltmp407:
# %bb.313:
.Ltmp408:
	movl	%eax, %edi
	movl	$587, %esi                      # imm = 0x24B
	callq	_Z9safe_call10hipError_ti
.Ltmp409:
# %bb.314:
	movq	232(%rsp), %rdi
.Ltmp410:
	callq	hipFree
.Ltmp411:
# %bb.315:
.Ltmp412:
	movl	%eax, %edi
	movl	$588, %esi                      # imm = 0x24C
	callq	_Z9safe_call10hipError_ti
.Ltmp413:
# %bb.316:
	movq	120(%rsp), %rdi
.Ltmp414:
	callq	hipFree
.Ltmp415:
# %bb.317:
.Ltmp416:
	movl	%eax, %edi
	movl	$589, %esi                      # imm = 0x24D
	callq	_Z9safe_call10hipError_ti
.Ltmp417:
# %bb.318:
	movq	224(%rsp), %rdi
.Ltmp418:
	callq	hipFree
.Ltmp419:
# %bb.319:
.Ltmp420:
	movl	%eax, %edi
	movl	$591, %esi                      # imm = 0x24F
	callq	_Z9safe_call10hipError_ti
.Ltmp421:
# %bb.320:
	movq	80(%rsp), %rdi
.Ltmp422:
	callq	hipFree
.Ltmp423:
# %bb.321:
.Ltmp424:
	movl	%eax, %edi
	movl	$592, %esi                      # imm = 0x250
	callq	_Z9safe_call10hipError_ti
.Ltmp425:
# %bb.322:
	movq	168(%rsp), %rdi
.Ltmp426:
	callq	hipFree
.Ltmp427:
# %bb.323:
.Ltmp428:
	movl	%eax, %edi
	movl	$593, %esi                      # imm = 0x251
	callq	_Z9safe_call10hipError_ti
.Ltmp429:
# %bb.324:
	movq	160(%rsp), %rdi
.Ltmp430:
	callq	hipFree
.Ltmp431:
# %bb.325:
.Ltmp432:
	movl	%eax, %edi
	movl	$594, %esi                      # imm = 0x252
	callq	_Z9safe_call10hipError_ti
.Ltmp433:
# %bb.326:
	movq	216(%rsp), %rdi
.Ltmp434:
	callq	hipFree
.Ltmp435:
# %bb.327:
.Ltmp436:
	movl	%eax, %edi
	movl	$596, %esi                      # imm = 0x254
	callq	_Z9safe_call10hipError_ti
.Ltmp437:
# %bb.328:
	movq	40(%rsp), %rdi
.Ltmp438:
	callq	hipFree
.Ltmp439:
# %bb.329:
.Ltmp440:
	movl	%eax, %edi
	movl	$597, %esi                      # imm = 0x255
	callq	_Z9safe_call10hipError_ti
.Ltmp441:
# %bb.330:
	movq	128(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB5_332
# %bb.331:
	callq	_ZdlPv
.LBB5_332:                              # %_ZNSt6vectorIiSaIiEED2Ev.exit
	leaq	272(%rsp), %rdi
	callq	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED2Ev
	xorl	%eax, %eax
	addq	$312, %rsp                      # imm = 0x138
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB5_333:
	.cfi_def_cfa_offset 368
	movl	$.Lstr.6, %edi
	jmp	.LBB5_335
.LBB5_334:
	movl	$.Lstr, %edi
.LBB5_335:
	callq	puts@PLT
	movl	$-1, %edi
	callq	exit
.LBB5_336:
.Ltmp21:
	jmp	.LBB5_359
.LBB5_337:
.Ltmp15:
	jmp	.LBB5_359
.LBB5_338:
.Ltmp87:
	jmp	.LBB5_359
.LBB5_339:                              # %.loopexit.split-lp520
.Ltmp4:
	jmp	.LBB5_348
.LBB5_340:
.Ltmp18:
	jmp	.LBB5_359
.LBB5_341:
.Ltmp29:
	jmp	.LBB5_354
.LBB5_342:
.Ltmp12:
	jmp	.LBB5_348
.LBB5_343:
.Ltmp32:
	jmp	.LBB5_354
.LBB5_344:
.Ltmp82:
	jmp	.LBB5_359
.LBB5_345:
.Ltmp65:
	jmp	.LBB5_359
.LBB5_346:                              # %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp
.Ltmp442:
	jmp	.LBB5_359
.LBB5_347:                              # %.loopexit519
.Ltmp9:
.LBB5_348:
	movq	%rax, %rbx
	jmp	.LBB5_362
.LBB5_349:
.Ltmp35:
	movq	%rax, %rbx
	leaq	232(%rsp), %rdi
	callq	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED2Ev
	jmp	.LBB5_355
.LBB5_350:
.Ltmp405:
	jmp	.LBB5_359
.LBB5_351:
.Ltmp48:
	jmp	.LBB5_359
.LBB5_352:                              # %.loopexit.split-lp.loopexit.split-lp.loopexit
.Ltmp388:
	jmp	.LBB5_359
.LBB5_353:
.Ltmp24:
.LBB5_354:
	movq	%rax, %rbx
.LBB5_355:
	movq	80(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB5_360
# %bb.356:
	callq	_ZdlPv
	jmp	.LBB5_360
.LBB5_357:                              # %.loopexit
.Ltmp335:
	jmp	.LBB5_359
.LBB5_358:                              # %.loopexit.split-lp.loopexit
.Ltmp192:
.LBB5_359:
	movq	%rax, %rbx
.LBB5_360:
	movq	128(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB5_362
# %bb.361:
	callq	_ZdlPv
.LBB5_362:
	leaq	272(%rsp), %rdi
	callq	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED2Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end5:
	.size	main, .Lfunc_end5-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table5:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp3-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp3
	.uleb128 .Ltmp4-.Lfunc_begin0           #     jumps to .Ltmp4
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp5-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp8-.Ltmp5                  #   Call between .Ltmp5 and .Ltmp8
	.uleb128 .Ltmp9-.Lfunc_begin0           #     jumps to .Ltmp9
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp10-.Lfunc_begin0          # >> Call Site 4 <<
	.uleb128 .Ltmp11-.Ltmp10                #   Call between .Ltmp10 and .Ltmp11
	.uleb128 .Ltmp12-.Lfunc_begin0          #     jumps to .Ltmp12
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp13-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Ltmp14-.Ltmp13                #   Call between .Ltmp13 and .Ltmp14
	.uleb128 .Ltmp15-.Lfunc_begin0          #     jumps to .Ltmp15
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp16-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp17-.Ltmp16                #   Call between .Ltmp16 and .Ltmp17
	.uleb128 .Ltmp18-.Lfunc_begin0          #     jumps to .Ltmp18
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp19-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp20-.Ltmp19                #   Call between .Ltmp19 and .Ltmp20
	.uleb128 .Ltmp21-.Lfunc_begin0          #     jumps to .Ltmp21
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp22-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp23-.Ltmp22                #   Call between .Ltmp22 and .Ltmp23
	.uleb128 .Ltmp24-.Lfunc_begin0          #     jumps to .Ltmp24
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp25-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp28-.Ltmp25                #   Call between .Ltmp25 and .Ltmp28
	.uleb128 .Ltmp29-.Lfunc_begin0          #     jumps to .Ltmp29
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp30-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Ltmp31-.Ltmp30                #   Call between .Ltmp30 and .Ltmp31
	.uleb128 .Ltmp32-.Lfunc_begin0          #     jumps to .Ltmp32
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp33-.Lfunc_begin0          # >> Call Site 11 <<
	.uleb128 .Ltmp34-.Ltmp33                #   Call between .Ltmp33 and .Ltmp34
	.uleb128 .Ltmp35-.Lfunc_begin0          #     jumps to .Ltmp35
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp36-.Lfunc_begin0          # >> Call Site 12 <<
	.uleb128 .Ltmp47-.Ltmp36                #   Call between .Ltmp36 and .Ltmp47
	.uleb128 .Ltmp48-.Lfunc_begin0          #     jumps to .Ltmp48
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp49-.Lfunc_begin0          # >> Call Site 13 <<
	.uleb128 .Ltmp64-.Ltmp49                #   Call between .Ltmp49 and .Ltmp64
	.uleb128 .Ltmp65-.Lfunc_begin0          #     jumps to .Ltmp65
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp66-.Lfunc_begin0          # >> Call Site 14 <<
	.uleb128 .Ltmp81-.Ltmp66                #   Call between .Ltmp66 and .Ltmp81
	.uleb128 .Ltmp82-.Lfunc_begin0          #     jumps to .Ltmp82
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp81-.Lfunc_begin0          # >> Call Site 15 <<
	.uleb128 .Ltmp83-.Ltmp81                #   Call between .Ltmp81 and .Ltmp83
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp83-.Lfunc_begin0          # >> Call Site 16 <<
	.uleb128 .Ltmp86-.Ltmp83                #   Call between .Ltmp83 and .Ltmp86
	.uleb128 .Ltmp87-.Lfunc_begin0          #     jumps to .Ltmp87
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp88-.Lfunc_begin0          # >> Call Site 17 <<
	.uleb128 .Ltmp95-.Ltmp88                #   Call between .Ltmp88 and .Ltmp95
	.uleb128 .Ltmp388-.Lfunc_begin0         #     jumps to .Ltmp388
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp96-.Lfunc_begin0          # >> Call Site 18 <<
	.uleb128 .Ltmp191-.Ltmp96               #   Call between .Ltmp96 and .Ltmp191
	.uleb128 .Ltmp192-.Lfunc_begin0         #     jumps to .Ltmp192
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp193-.Lfunc_begin0         # >> Call Site 19 <<
	.uleb128 .Ltmp238-.Ltmp193              #   Call between .Ltmp193 and .Ltmp238
	.uleb128 .Ltmp388-.Lfunc_begin0         #     jumps to .Ltmp388
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp239-.Lfunc_begin0         # >> Call Site 20 <<
	.uleb128 .Ltmp334-.Ltmp239              #   Call between .Ltmp239 and .Ltmp334
	.uleb128 .Ltmp335-.Lfunc_begin0         #     jumps to .Ltmp335
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp336-.Lfunc_begin0         # >> Call Site 21 <<
	.uleb128 .Ltmp383-.Ltmp336              #   Call between .Ltmp336 and .Ltmp383
	.uleb128 .Ltmp388-.Lfunc_begin0         #     jumps to .Ltmp388
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp389-.Lfunc_begin0         # >> Call Site 22 <<
	.uleb128 .Ltmp392-.Ltmp389              #   Call between .Ltmp389 and .Ltmp392
	.uleb128 .Ltmp442-.Lfunc_begin0         #     jumps to .Ltmp442
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp393-.Lfunc_begin0         # >> Call Site 23 <<
	.uleb128 .Ltmp404-.Ltmp393              #   Call between .Ltmp393 and .Ltmp404
	.uleb128 .Ltmp405-.Lfunc_begin0         #     jumps to .Ltmp405
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp406-.Lfunc_begin0         # >> Call Site 24 <<
	.uleb128 .Ltmp441-.Ltmp406              #   Call between .Ltmp406 and .Ltmp441
	.uleb128 .Ltmp442-.Lfunc_begin0         #     jumps to .Ltmp442
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp441-.Lfunc_begin0         # >> Call Site 25 <<
	.uleb128 .Lfunc_end5-.Ltmp441           #   Call between .Ltmp441 and .Lfunc_end5
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EEC2EmRKS3_,"axG",@progbits,_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EEC2EmRKS3_,comdat
	.weak	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EEC2EmRKS3_ # -- Begin function _ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EEC2EmRKS3_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EEC2EmRKS3_,@function
_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EEC2EmRKS3_: # @_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EEC2EmRKS3_
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movabsq	$384307168202282326, %rax       # imm = 0x555555555555556
	cmpq	%rax, %rsi
	jae	.LBB6_5
# %bb.1:                                # %_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EE17_S_check_init_lenEmRKS3_.exit
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	testq	%rsi, %rsi
	je	.LBB6_2
# %bb.3:                                # %.lr.ph.preheader.i.i.i.i
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorISt6vectorI6__edgeSaIS1_EEE8allocateEmPKv
	movq	%rax, (%rbx)
	shlq	$3, %r14
	leaq	(%r14,%r14,2), %rdx
	leaq	(%rax,%rdx), %r14
	movq	%r14, 16(%rbx)
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	jmp	.LBB6_4
.LBB6_2:                                # %_ZNSt12_Vector_baseISt6vectorI6__edgeSaIS1_EESaIS3_EEC2EmRKS4_.exit.thread
	movups	%xmm0, (%rbx)
	movq	$0, 16(%rbx)
	xorl	%r14d, %r14d
.LBB6_4:
	movq	%r14, 8(%rbx)
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.LBB6_5:
	.cfi_def_cfa_offset 32
	movl	$.L.str.16, %edi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end6:
	.size	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EEC2EmRKS3_, .Lfunc_end6-_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EEC2EmRKS3_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED2Ev,"axG",@progbits,_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED2Ev,comdat
	.weak	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED2Ev # -- Begin function _ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED2Ev
	.p2align	1, 0x90
	.type	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED2Ev,@function
_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED2Ev: # @_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED2Ev
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	(%rdi), %rbx
	movq	8(%rdi), %r15
	cmpq	%r15, %rbx
	je	.LBB7_6
# %bb.1:                                # %.lr.ph.i.i.i.preheader
	movq	%rdi, %r14
.LBB7_2:                                # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB7_4
# %bb.3:                                #   in Loop: Header=BB7_2 Depth=1
	callq	_ZdlPv
.LBB7_4:                                # %_ZSt8_DestroyISt6vectorI6__edgeSaIS1_EEEvPT_.exit.i.i.i
                                        #   in Loop: Header=BB7_2 Depth=1
	addq	$24, %rbx
	cmpq	%r15, %rbx
	jne	.LBB7_2
# %bb.5:                                # %_ZSt8_DestroyIPSt6vectorI6__edgeSaIS1_EES3_EvT_S5_RSaIT0_E.exitthread-pre-split
	movq	(%r14), %rbx
.LBB7_6:                                # %_ZSt8_DestroyIPSt6vectorI6__edgeSaIS1_EES3_EvT_S5_RSaIT0_E.exit
	testq	%rbx, %rbx
	je	.LBB7_7
# %bb.8:
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	_ZdlPv                          # TAILCALL
.LBB7_7:                                # %_ZNSt12_Vector_baseISt6vectorI6__edgeSaIS1_EESaIS3_EED2Ev.exit
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end7:
	.size	_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED2Ev, .Lfunc_end7-_ZNSt6vectorIS_I6__edgeSaIS0_EESaIS2_EED2Ev
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorISt6vectorI6__edgeSaIS1_EEE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorISt6vectorI6__edgeSaIS1_EEE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorISt6vectorI6__edgeSaIS1_EEE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorISt6vectorI6__edgeSaIS1_EEE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorISt6vectorI6__edgeSaIS1_EEE8allocateEmPKv,@function
_ZNSt15__new_allocatorISt6vectorI6__edgeSaIS1_EEE8allocateEmPKv: # @_ZNSt15__new_allocatorISt6vectorI6__edgeSaIS1_EEE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$384307168202282326, %rax       # imm = 0x555555555555556
	cmpq	%rax, %rsi
	jae	.LBB8_1
# %bb.3:
	shlq	$3, %rsi
	leaq	(%rsi,%rsi,2), %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB8_1:
	.cfi_def_cfa_offset 16
	movabsq	$768614336404564651, %rax       # imm = 0xAAAAAAAAAAAAAAB
	cmpq	%rax, %rsi
	jb	.LBB8_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB8_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end8:
	.size	_ZNSt15__new_allocatorISt6vectorI6__edgeSaIS1_EEE8allocateEmPKv, .Lfunc_end8-_ZNSt15__new_allocatorISt6vectorI6__edgeSaIS1_EEE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorI6__edgeSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,"axG",@progbits,_ZNSt6vectorI6__edgeSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,comdat
	.weak	_ZNSt6vectorI6__edgeSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_ # -- Begin function _ZNSt6vectorI6__edgeSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorI6__edgeSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,@function
_ZNSt6vectorI6__edgeSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_: # @_ZNSt6vectorI6__edgeSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, (%rsp)                    # 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.17, %edx
	callq	_ZNKSt6vectorI6__edgeSaIS0_EE12_M_check_lenEmPKc
	movq	%rax, %rsi
	movq	(%rbx), %r13
	movq	8(%rbx), %r15
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	subq	%r13, %r12
	movq	%r12, %rax
	sarq	$2, %rax
	movabsq	$-6148914691236517205, %r14     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rax, %r14
	testq	%rsi, %rsi
	movq	%rsi, 16(%rsp)                  # 8-byte Spill
	je	.LBB9_1
# %bb.2:
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorI6__edgeE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB9_3
.LBB9_1:
	xorl	%ebp, %ebp
.LBB9_3:                                # %_ZNSt12_Vector_baseI6__edgeSaIS0_EE11_M_allocateEm.exit
	leaq	(%r14,%r14,2), %rax
	movq	(%rsp), %rdx                    # 8-byte Reload
	movl	8(%rdx), %ecx
	movl	%ecx, 8(%rbp,%rax,4)
	movq	(%rdx), %rcx
	movq	%rcx, (%rbp,%rax,4)
	testq	%r12, %r12
	jle	.LBB9_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB9_5:                                # %_ZNSt6vectorI6__edgeSaIS0_EE11_S_relocateEPS0_S3_S3_RS1_.exit
	leaq	(%r12,%rbp), %r14
	addq	$12, %r14
	movq	8(%rsp), %rsi                   # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB9_7
# %bb.6:
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB9_7:                                # %_ZNSt6vectorI6__edgeSaIS0_EE11_S_relocateEPS0_S3_S3_RS1_.exit16
	testq	%r13, %r13
	je	.LBB9_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB9_9:                                # %_ZNSt12_Vector_baseI6__edgeSaIS0_EE13_M_deallocateEPS0_m.exit
	addq	%r15, %r14
	movq	%rbp, (%rbx)
	movq	%r14, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(%rax,%rax,2), %rax
	leaq	(,%rax,4), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end9:
	.size	_ZNSt6vectorI6__edgeSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_, .Lfunc_end9-_ZNSt6vectorI6__edgeSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorI6__edgeSaIS0_EE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorI6__edgeSaIS0_EE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorI6__edgeSaIS0_EE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorI6__edgeSaIS0_EE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorI6__edgeSaIS0_EE12_M_check_lenEmPKc,@function
_ZNKSt6vectorI6__edgeSaIS0_EE12_M_check_lenEmPKc: # @_ZNKSt6vectorI6__edgeSaIS0_EE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$768614336404564650, %rcx       # imm = 0xAAAAAAAAAAAAAAA
	movq	8(%rdi), %rax
	subq	(%rdi), %rax
	sarq	$2, %rax
	movabsq	$-6148914691236517205, %rdi     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rax, %rdi
	movq	%rcx, %rax
	subq	%rdi, %rax
	cmpq	%rsi, %rax
	jb	.LBB10_2
# %bb.1:
	cmpq	%rsi, %rdi
	cmovaq	%rdi, %rsi
	leaq	(%rsi,%rdi), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%rdi, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB10_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end10:
	.size	_ZNKSt6vectorI6__edgeSaIS0_EE12_M_check_lenEmPKc, .Lfunc_end10-_ZNKSt6vectorI6__edgeSaIS0_EE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorI6__edgeE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorI6__edgeE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorI6__edgeE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorI6__edgeE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorI6__edgeE8allocateEmPKv,@function
_ZNSt15__new_allocatorI6__edgeE8allocateEmPKv: # @_ZNSt15__new_allocatorI6__edgeE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$768614336404564651, %rax       # imm = 0xAAAAAAAAAAAAAAB
	cmpq	%rax, %rsi
	jae	.LBB11_1
# %bb.3:
	shlq	$2, %rsi
	leaq	(%rsi,%rsi,2), %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB11_1:
	.cfi_def_cfa_offset 16
	movabsq	$1537228672809129302, %rax      # imm = 0x1555555555555556
	cmpq	%rax, %rsi
	jb	.LBB11_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB11_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end11:
	.size	_ZNSt15__new_allocatorI6__edgeE8allocateEmPKv, .Lfunc_end11-_ZNSt15__new_allocatorI6__edgeE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,comdat
	.weak	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_ # -- Begin function _ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,@function
_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_: # @_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, (%rsp)                    # 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.17, %edx
	callq	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	movq	(%rbx), %r13
	movq	8(%rbx), %r15
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	subq	%r13, %r12
	movq	%r12, %r14
	sarq	$2, %r14
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB12_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIiE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB12_3
.LBB12_1:
	xorl	%ebp, %ebp
.LBB12_3:                               # %_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.exit
	movq	(%rsp), %rax                    # 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, (%rbp,%r14,4)
	testq	%r12, %r12
	jle	.LBB12_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB12_5:                               # %_ZNSt6vectorIiSaIiEE11_S_relocateEPiS2_S2_RS0_.exit
	addq	%rbp, %r12
	addq	$4, %r12
	movq	8(%rsp), %rsi                   # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB12_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB12_7:                               # %_ZNSt6vectorIiSaIiEE11_S_relocateEPiS2_S2_RS0_.exit16
	testq	%r13, %r13
	je	.LBB12_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB12_9:                               # %_ZNSt12_Vector_baseIiSaIiEE13_M_deallocateEPim.exit
	addq	%r15, %r12
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(,%rax,4), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end12:
	.size	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_, .Lfunc_end12-_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,@function
_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc: # @_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$2305843009213693951, %rcx      # imm = 0x1FFFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$2, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB13_2
# %bb.1:
	cmpq	%rsi, %r8
	cmovaq	%r8, %rsi
	leaq	(%rsi,%r8), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%r8, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB13_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end13:
	.size	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc, .Lfunc_end13-_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorIiE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorIiE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorIiE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorIiE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorIiE8allocateEmPKv,@function
_ZNSt15__new_allocatorIiE8allocateEmPKv: # @_ZNSt15__new_allocatorIiE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$61, %rax
	jne	.LBB14_1
# %bb.3:
	shlq	$2, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB14_1:
	.cfi_def_cfa_offset 16
	shrq	$62, %rsi
	je	.LBB14_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB14_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end14:
	.size	_ZNSt15__new_allocatorIiE8allocateEmPKv, .Lfunc_end14-_ZNSt15__new_allocatorIiE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,comdat
	.weak	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_ # -- Begin function _ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,@function
_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_: # @_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, (%rsp)                    # 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.17, %edx
	callq	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	movq	(%rbx), %r13
	movq	8(%rbx), %r15
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	subq	%r13, %r12
	movq	%r12, %r14
	sarq	$2, %r14
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB15_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIiE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB15_3
.LBB15_1:
	xorl	%ebp, %ebp
.LBB15_3:                               # %_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.exit
	movq	(%rsp), %rax                    # 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, (%rbp,%r14,4)
	testq	%r12, %r12
	jle	.LBB15_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB15_5:                               # %_ZNSt6vectorIiSaIiEE11_S_relocateEPiS2_S2_RS0_.exit
	addq	%rbp, %r12
	addq	$4, %r12
	movq	8(%rsp), %rsi                   # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB15_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB15_7:                               # %_ZNSt6vectorIiSaIiEE11_S_relocateEPiS2_S2_RS0_.exit16
	testq	%r13, %r13
	je	.LBB15_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB15_9:                               # %_ZNSt12_Vector_baseIiSaIiEE13_M_deallocateEPim.exit
	addq	%r15, %r12
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(,%rax,4), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end15:
	.size	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_, .Lfunc_end15-_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_T1_,"axG",@progbits,_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_T1_,comdat
	.weak	_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_T1_ # -- Begin function _ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_T1_
	.type	_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_T1_,@function
_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_T1_: # @_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_T1_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rsi, %rbp
	subq	%rdi, %rbp
	cmpq	$193, %rbp
	jl	.LBB16_12
# %bb.1:                                # %.lr.ph
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	leaq	12(%rdi), %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movq	$-12, %rax
	subq	%rdi, %rax
	movq	%rax, 40(%rsp)                  # 8-byte Spill
.LBB16_2:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB16_5 Depth 2
                                        #       Child Loop BB16_6 Depth 3
                                        #       Child Loop BB16_8 Depth 3
	subq	$1, %r15
	jb	.LBB16_3
# %bb.4:                                #   in Loop: Header=BB16_2 Depth=1
	movq	%r15, 24(%rsp)                  # 8-byte Spill
	movq	%rbp, %rax
	movabsq	$-6148914691236517205, %rcx     # imm = 0xAAAAAAAAAAAAAAAB
	mulq	%rcx
	shrq	$4, %rdx
	leaq	(%rdx,%rdx,2), %rax
	leaq	(%rbx,%rax,4), %rdx
	leaq	-12(%r13), %rcx
	movq	%rbx, %rdi
	movq	16(%rsp), %r12                  # 8-byte Reload
	movq	%r12, %rsi
	movq	%r14, %r8
	callq	_ZSt22__move_median_to_firstIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_SF_SF_T0_
	movq	%r13, 32(%rsp)                  # 8-byte Spill
	movq	%r13, %r15
.LBB16_5:                               #   Parent Loop BB16_2 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB16_6 Depth 3
                                        #       Child Loop BB16_8 Depth 3
	movq	40(%rsp), %rax                  # 8-byte Reload
	leaq	(%rax,%r12), %rbp
	addq	$-12, %r12
	movq	%r12, %r13
.LBB16_6:                               #   Parent Loop BB16_2 Depth=1
                                        #     Parent Loop BB16_5 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	addq	$12, %r13
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	*%r14
	addq	$12, %rbp
	testb	%al, %al
	jne	.LBB16_6
# %bb.7:                                # %.preheader.i.i.preheader
                                        #   in Loop: Header=BB16_5 Depth=2
	leaq	12(%r13), %r12
.LBB16_8:                               # %.preheader.i.i
                                        #   Parent Loop BB16_2 Depth=1
                                        #     Parent Loop BB16_5 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	addq	$-12, %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*%r14
	testb	%al, %al
	jne	.LBB16_8
# %bb.9:                                #   in Loop: Header=BB16_5 Depth=2
	cmpq	%r15, %r13
	jae	.LBB16_11
# %bb.10:                               #   in Loop: Header=BB16_5 Depth=2
	movl	8(%r13), %eax
	movl	%eax, 8(%rsp)
	movq	(%r13), %rax
	movq	%rax, (%rsp)
	movl	8(%r15), %eax
	movl	%eax, 8(%r13)
	movq	(%r15), %rax
	movq	%rax, (%r13)
	movl	8(%rsp), %eax
	movl	%eax, 8(%r15)
	movq	(%rsp), %rax
	movq	%rax, (%r15)
	jmp	.LBB16_5
.LBB16_11:                              # %_ZSt27__unguarded_partition_pivotIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEET_SF_SF_T0_.exit
                                        #   in Loop: Header=BB16_2 Depth=1
	movq	%r13, %rdi
	movq	32(%rsp), %rsi                  # 8-byte Reload
	movq	24(%rsp), %r15                  # 8-byte Reload
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_T1_
	cmpq	$192, %rbp
	jg	.LBB16_2
	jmp	.LBB16_12
.LBB16_3:
	leaq	48(%rsp), %r15
	movq	%r14, (%r15)
	movq	%rsp, %rdx
	movq	%r14, (%rdx)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ZSt11__make_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_RT0_
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_ZSt11__sort_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_RT0_
.LBB16_12:                              # %.loopexit
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end16:
	.size	_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_T1_, .Lfunc_end16-_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_T1_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt22__final_insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_,"axG",@progbits,_ZSt22__final_insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_,comdat
	.weak	_ZSt22__final_insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_ # -- Begin function _ZSt22__final_insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_
	.type	_ZSt22__final_insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_,@function
_ZSt22__final_insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_: # @_ZSt22__final_insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rsi, %rax
	subq	%rdi, %rax
	cmpq	$193, %rax
	jl	.LBB17_8
# %bb.1:
	leaq	192(%rdi), %r15
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_
	cmpq	%r14, %r15
	je	.LBB17_7
# %bb.2:                                # %.lr.ph.i.preheader
	movq	%rsp, %r12
.LBB17_3:                               # %.lr.ph.i
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB17_5 Depth 2
	movl	8(%r15), %eax
	movl	%eax, 8(%rsp)
	movq	(%r15), %rax
	movq	%rax, (%rsp)
	leaq	-12(%r15), %rsi
	movq	%r12, %rdi
	callq	*%rbx
	movq	%r15, %r13
	testb	%al, %al
	je	.LBB17_6
# %bb.4:                                # %.lr.ph.i.i.preheader
                                        #   in Loop: Header=BB17_3 Depth=1
	movq	%r15, %rsi
.LBB17_5:                               # %.lr.ph.i.i
                                        #   Parent Loop BB17_3 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	leaq	-12(%rsi), %r13
	movl	-4(%rsi), %eax
	movl	%eax, 8(%rsi)
	movq	-12(%rsi), %rax
	movq	%rax, (%rsi)
	addq	$-24, %rsi
	movq	%r12, %rdi
	callq	*%rbx
	movq	%r13, %rsi
	testb	%al, %al
	jne	.LBB17_5
.LBB17_6:                               # %_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbRKS2_SB_EEEEvT_T0_.exit.i
                                        #   in Loop: Header=BB17_3 Depth=1
	movl	8(%rsp), %eax
	movl	%eax, 8(%r13)
	movq	(%rsp), %rax
	movq	%rax, (%r13)
	addq	$12, %r15
	cmpq	%r14, %r15
	jne	.LBB17_3
.LBB17_7:                               # %_ZSt26__unguarded_insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_.exit
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB17_8:
	.cfi_def_cfa_offset 64
	movq	%r14, %rsi
	movq	%rbx, %rdx
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_ # TAILCALL
.Lfunc_end17:
	.size	_ZSt22__final_insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_, .Lfunc_end17-_ZSt22__final_insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt11__sort_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_RT0_,"axG",@progbits,_ZSt11__sort_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_RT0_,comdat
	.weak	_ZSt11__sort_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_RT0_ # -- Begin function _ZSt11__sort_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_RT0_
	.type	_ZSt11__sort_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_RT0_,@function
_ZSt11__sort_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_RT0_: # @_ZSt11__sort_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_RT0_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %r12
	subq	%rdi, %r12
	cmpq	$13, %r12
	jl	.LBB18_3
# %bb.1:                                # %.lr.ph.preheader
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	addq	$-12, %r14
	movabsq	$-6148914691236517205, %r13     # imm = 0xAAAAAAAAAAAAAAAB
.LBB18_2:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	(%r14), %rcx
	movl	8(%r14), %r8d
	movq	(%r15), %rax
	movq	%rax, (%r14)
	movl	8(%r15), %eax
	movl	%eax, 8(%r14)
	addq	$-12, %r12
	movq	%r12, %rdx
	sarq	$2, %rdx
	imulq	%r13, %rdx
	movq	(%rbx), %r9
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_T0_SG_T1_T2_
	addq	$-12, %r14
	cmpq	$12, %r12
	jg	.LBB18_2
.LBB18_3:                               # %._crit_edge
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end18:
	.size	_ZSt11__sort_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_RT0_, .Lfunc_end18-_ZSt11__sort_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_RT0_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt11__make_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_RT0_,"axG",@progbits,_ZSt11__make_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_RT0_,comdat
	.weak	_ZSt11__make_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_RT0_ # -- Begin function _ZSt11__make_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_RT0_
	.type	_ZSt11__make_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_RT0_,@function
_ZSt11__make_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_RT0_: # @_ZSt11__make_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_RT0_
	.cfi_startproc
# %bb.0:
	subq	%rdi, %rsi
	cmpq	$24, %rsi
	jl	.LBB19_4
# %bb.1:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %rbx
	movq	%rdi, %r14
	sarq	$2, %rsi
	movabsq	$-6148914691236517205, %r15     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rsi, %r15
	leaq	-2(%r15), %r12
	shrq	%r12
	leaq	(%r12,%r12,2), %rax
	leaq	(%rdi,%rax,4), %r13
	addq	$8, %r13
.LBB19_2:                               # =>This Inner Loop Header: Depth=1
	movq	-8(%r13), %rcx
	movl	(%r13), %r8d
	movq	(%rbx), %r9
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_T0_SG_T1_T2_
	addq	$-12, %r13
	addq	$-1, %r12
	jb	.LBB19_2
# %bb.3:
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	.cfi_restore %r12
	.cfi_restore %r13
	.cfi_restore %r14
	.cfi_restore %r15
.LBB19_4:                               # %.loopexit
	retq
.Lfunc_end19:
	.size	_ZSt11__make_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_RT0_, .Lfunc_end19-_ZSt11__make_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_RT0_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_T0_SG_T1_T2_,"axG",@progbits,_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_T0_SG_T1_T2_,comdat
	.weak	_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_T0_SG_T1_T2_ # -- Begin function _ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_T0_SG_T1_T2_
	.type	_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_T0_SG_T1_T2_,@function
_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_T0_SG_T1_T2_: # @_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_T0_SG_T1_T2_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%r9, %r14
	movl	%r8d, 20(%rsp)                  # 4-byte Spill
	movq	%rcx, 48(%rsp)                  # 8-byte Spill
	movq	%rdi, %rbx
	leaq	-1(%rdx), %rax
	shrq	$63, %rax
	movq	%rdx, 40(%rsp)                  # 8-byte Spill
	leaq	(%rdx,%rax), %r12
	decq	%r12
	sarq	%r12
	movq	%rsi, %rbp
	movq	%rsi, 8(%rsp)                   # 8-byte Spill
	cmpq	%rsi, %r12
	jle	.LBB20_5
# %bb.1:                                # %.lr.ph.preheader
	movq	8(%rsp), %r15                   # 8-byte Reload
.LBB20_2:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	leaq	2(,%r15,2), %r13
	leaq	(,%r13,2), %rax
	addq	%r13, %rax
	leaq	(%rbx,%rax,4), %rdi
	leaq	1(,%r15,2), %rbp
	leaq	(,%rbp,2), %rax
	addq	%rbp, %rax
	leaq	(%rbx,%rax,4), %rsi
	callq	*%r14
	testb	%al, %al
	jne	.LBB20_4
# %bb.3:                                # %.lr.ph
                                        #   in Loop: Header=BB20_2 Depth=1
	movq	%r13, %rbp
.LBB20_4:                               # %.lr.ph
                                        #   in Loop: Header=BB20_2 Depth=1
	leaq	(,%rbp,2), %rax
	addq	%rbp, %rax
	leaq	(%r15,%r15,2), %rcx
	movq	(%rbx,%rax,4), %rdx
	movq	%rdx, (%rbx,%rcx,4)
	movl	8(%rbx,%rax,4), %eax
	movl	%eax, 8(%rbx,%rcx,4)
	movq	%rbp, %r15
	cmpq	%r12, %rbp
	jl	.LBB20_2
.LBB20_5:                               # %._crit_edge
	movq	40(%rsp), %rax                  # 8-byte Reload
	testb	$1, %al
	jne	.LBB20_8
# %bb.6:
	addq	$-2, %rax
	sarq	%rax
	cmpq	%rax, %rbp
	jne	.LBB20_8
# %bb.7:
	leaq	(,%rbp,2), %rax
	addq	%rbp, %rax
	leaq	1(%rbp,%rbp), %rbp
	leaq	(%rbp,%rbp,2), %rcx
	movl	8(%rbx,%rcx,4), %edx
	movl	%edx, 8(%rbx,%rax,4)
	movq	(%rbx,%rcx,4), %rcx
	movq	%rcx, (%rbx,%rax,4)
.LBB20_8:
	movq	48(%rsp), %rax                  # 8-byte Reload
	movq	%rax, 24(%rsp)
	movl	20(%rsp), %eax                  # 4-byte Reload
	movl	%eax, 32(%rsp)
	cmpq	8(%rsp), %rbp                   # 8-byte Folded Reload
	jle	.LBB20_9
# %bb.10:                               # %.lr.ph.i.preheader
	leaq	24(%rsp), %r12
.LBB20_11:                              # %.lr.ph.i
                                        # =>This Inner Loop Header: Depth=1
	leaq	-1(%rbp), %rax
	shrq	$63, %rax
	leaq	(%rax,%rbp), %r15
	decq	%r15
	sarq	%r15
	leaq	(%r15,%r15,2), %rax
	leaq	(%rbx,%rax,4), %r13
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	*%r14
	testb	%al, %al
	je	.LBB20_9
# %bb.12:                               #   in Loop: Header=BB20_11 Depth=1
	leaq	(,%rbp,2), %rax
	addq	%rbp, %rax
	movl	8(%r13), %ecx
	movl	%ecx, 8(%rbx,%rax,4)
	movq	(%r13), %rcx
	movq	%rcx, (%rbx,%rax,4)
	movq	%r15, %rbp
	cmpq	8(%rsp), %r15                   # 8-byte Folded Reload
	jg	.LBB20_11
	jmp	.LBB20_13
.LBB20_9:
	movq	%rbp, %r15
.LBB20_13:                              # %_ZSt11__push_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops14_Iter_comp_valIPFbRKS2_SB_EEEEvT_T0_SG_T1_RT2_.exit
	leaq	(%r15,%r15,2), %rax
	movl	32(%rsp), %ecx
	movl	%ecx, 8(%rbx,%rax,4)
	movq	24(%rsp), %rcx
	movq	%rcx, (%rbx,%rax,4)
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end20:
	.size	_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_T0_SG_T1_T2_, .Lfunc_end20-_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_T0_SG_T1_T2_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt22__move_median_to_firstIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_SF_SF_T0_,"axG",@progbits,_ZSt22__move_median_to_firstIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_SF_SF_T0_,comdat
	.weak	_ZSt22__move_median_to_firstIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_SF_SF_T0_ # -- Begin function _ZSt22__move_median_to_firstIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_SF_SF_T0_
	.type	_ZSt22__move_median_to_firstIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_SF_SF_T0_,@function
_ZSt22__move_median_to_firstIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_SF_SF_T0_: # @_ZSt22__move_median_to_firstIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_SF_SF_T0_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%r8, %r13
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	*%r8
	testb	%al, %al
	je	.LBB21_4
# %bb.1:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	*%r13
	testb	%al, %al
	jne	.LBB21_7
# %bb.2:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	*%r13
	testb	%al, %al
	je	.LBB21_5
	jmp	.LBB21_3
.LBB21_4:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	*%r13
	testb	%al, %al
	je	.LBB21_6
.LBB21_5:
	movl	8(%rbx), %eax
	movl	%eax, 8(%rsp)
	movq	(%rbx), %rax
	movq	%rax, (%rsp)
	movl	8(%r12), %eax
	movl	%eax, 8(%rbx)
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	movl	8(%rsp), %eax
	movl	%eax, 8(%r12)
	movq	(%rsp), %rax
	movq	%rax, (%r12)
	jmp	.LBB21_8
.LBB21_6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	*%r13
	testb	%al, %al
	je	.LBB21_7
.LBB21_3:
	movl	8(%rbx), %eax
	movl	%eax, 8(%rsp)
	movq	(%rbx), %rax
	movq	%rax, (%rsp)
	movl	8(%r14), %eax
	movl	%eax, 8(%rbx)
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movl	8(%rsp), %eax
	movl	%eax, 8(%r14)
	movq	(%rsp), %rax
	movq	%rax, (%r14)
	jmp	.LBB21_8
.LBB21_7:
	movl	8(%rbx), %eax
	movl	%eax, 8(%rsp)
	movq	(%rbx), %rax
	movq	%rax, (%rsp)
	movl	8(%r15), %eax
	movl	%eax, 8(%rbx)
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	movl	8(%rsp), %eax
	movl	%eax, 8(%r15)
	movq	(%rsp), %rax
	movq	%rax, (%r15)
.LBB21_8:
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end21:
	.size	_ZSt22__move_median_to_firstIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_SF_SF_T0_, .Lfunc_end21-_ZSt22__move_median_to_firstIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_SF_SF_T0_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_,"axG",@progbits,_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_,comdat
	.weak	_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_ # -- Begin function _ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_
	.type	_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_,@function
_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_: # @_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_
	.cfi_startproc
# %bb.0:
	cmpq	%rsi, %rdi
	je	.LBB22_15
# %bb.1:                                # %.preheader
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	12(%rdi), %rax
	cmpq	%rsi, %rax
	je	.LBB22_14
# %bb.2:                                # %.lr.ph
	movq	%rdx, %rbx
	leaq	8(%rsp), %r12
	movq	%r15, %rbp
.LBB22_3:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB22_11 Depth 2
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	*%rbx
	testb	%al, %al
	je	.LBB22_9
# %bb.4:                                #   in Loop: Header=BB22_3 Depth=1
	movl	8(%r13), %eax
	movl	%eax, 16(%rsp)
	movq	(%r13), %rax
	movq	%rax, 8(%rsp)
	movq	%r13, %rcx
	subq	%r15, %rcx
	cmpq	$13, %rcx
	jl	.LBB22_6
# %bb.5:                                #   in Loop: Header=BB22_3 Depth=1
	movq	%rcx, %rax
	movabsq	$-6148914691236517205, %rdx     # imm = 0xAAAAAAAAAAAAAAAB
	mulq	%rdx
	shrq	$3, %rdx
	negq	%rdx
	leaq	(%rdx,%rdx,2), %rax
	leaq	24(,%rax,4), %rdi
	addq	%rbp, %rdi
	movq	%r15, %rsi
	movq	%rcx, %rdx
	callq	memmove@PLT
.LBB22_8:                               # %_ZSt13move_backwardIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEES7_ET0_T_S9_S8_.exit
                                        #   in Loop: Header=BB22_3 Depth=1
	movl	16(%rsp), %eax
	movl	%eax, 8(%r15)
	movq	8(%rsp), %rax
	movq	%rax, (%r15)
	jmp	.LBB22_13
.LBB22_9:                               #   in Loop: Header=BB22_3 Depth=1
	movl	8(%r13), %eax
	movl	%eax, 16(%rsp)
	movq	(%r13), %rax
	movq	%rax, 8(%rsp)
	movq	%r12, %rdi
	movq	%rbp, %rsi
	callq	*%rbx
	movq	%r13, %rbp
	testb	%al, %al
	je	.LBB22_12
# %bb.10:                               # %.lr.ph.i.preheader
                                        #   in Loop: Header=BB22_3 Depth=1
	movq	%r13, %rsi
.LBB22_11:                              # %.lr.ph.i
                                        #   Parent Loop BB22_3 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	leaq	-12(%rsi), %rbp
	movl	-4(%rsi), %eax
	movl	%eax, 8(%rsi)
	movq	-12(%rsi), %rax
	movq	%rax, (%rsi)
	addq	$-24, %rsi
	movq	%r12, %rdi
	callq	*%rbx
	movq	%rbp, %rsi
	testb	%al, %al
	jne	.LBB22_11
.LBB22_12:                              # %_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbRKS2_SB_EEEEvT_T0_.exit
                                        #   in Loop: Header=BB22_3 Depth=1
	movl	16(%rsp), %eax
	movl	%eax, 8(%rbp)
	movq	8(%rsp), %rax
	movq	%rax, (%rbp)
.LBB22_13:                              #   in Loop: Header=BB22_3 Depth=1
	leaq	12(%r13), %rax
	movq	%r13, %rbp
	cmpq	%r14, %rax
	jne	.LBB22_3
	jmp	.LBB22_14
.LBB22_6:                               #   in Loop: Header=BB22_3 Depth=1
	cmpq	$12, %rcx
	jne	.LBB22_8
# %bb.7:                                #   in Loop: Header=BB22_3 Depth=1
	movl	8(%r15), %eax
	movl	%eax, 20(%rbp)
	movq	(%r15), %rax
	movq	%rax, 12(%rbp)
	jmp	.LBB22_8
.LBB22_14:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	.cfi_restore %r12
	.cfi_restore %r13
	.cfi_restore %r14
	.cfi_restore %r15
	.cfi_restore %rbp
.LBB22_15:                              # %.loopexit
	retq
.Lfunc_end22:
	.size	_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_, .Lfunc_end22-_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP6__edgeSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbRKS2_SB_EEEEvT_SF_T0_
	.cfi_endproc
                                        # -- End function
	.text
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB23_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB23_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z5resetv, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z14gather_pr_edgePK7__shardP8__vertexii, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z13apply_pr_edgePK7__shardP8__vertexii, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$0, 8(%rsp)
	movl	$0, (%rsp)
	movl	$d_over, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movl	$1, %r9d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	__hipRegisterVar
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end23:
	.size	__hip_module_ctor, .Lfunc_end23-__hip_module_ctor
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_dtor
	.type	__hip_module_dtor,@function
__hip_module_dtor:                      # @__hip_module_dtor
	.cfi_startproc
# %bb.0:
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB24_2
# %bb.1:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__hipUnregisterFatBinary
	movq	$0, __hip_gpubin_handle(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
.LBB24_2:
	retq
.Lfunc_end24:
	.size	__hip_module_dtor, .Lfunc_end24-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"Error at line %d : %s\n"
	.size	.L.str, 23

	.type	d_over,@object                  # @d_over
	.local	d_over
	.comm	d_over,1,1
	.type	_Z5resetv,@object               # @_Z5resetv
	.section	.rodata,"a",@progbits
	.globl	_Z5resetv
	.p2align	3, 0x0
_Z5resetv:
	.quad	_Z20__device_stub__resetv
	.size	_Z5resetv, 8

	.type	_Z14gather_pr_edgePK7__shardP8__vertexii,@object # @_Z14gather_pr_edgePK7__shardP8__vertexii
	.globl	_Z14gather_pr_edgePK7__shardP8__vertexii
	.p2align	3, 0x0
_Z14gather_pr_edgePK7__shardP8__vertexii:
	.quad	_Z29__device_stub__gather_pr_edgePK7__shardP8__vertexii
	.size	_Z14gather_pr_edgePK7__shardP8__vertexii, 8

	.type	_Z13apply_pr_edgePK7__shardP8__vertexii,@object # @_Z13apply_pr_edgePK7__shardP8__vertexii
	.globl	_Z13apply_pr_edgePK7__shardP8__vertexii
	.p2align	3, 0x0
_Z13apply_pr_edgePK7__shardP8__vertexii:
	.quad	_Z28__device_stub__apply_pr_edgePK7__shardP8__vertexii
	.size	_Z13apply_pr_edgePK7__shardP8__vertexii, 8

	.type	.L.str.2,@object                # @.str.2
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.2:
	.asciz	"r"
	.size	.L.str.2, 2

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"%d %d"
	.size	.L.str.5, 6

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"%d"
	.size	.L.str.6, 3

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"Time to construct intervals : %f sec\n"
	.size	.L.str.9, 38

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	"Time to construct shards : %f sec\n"
	.size	.L.str.11, 35

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	"Time to Pagerank : %f sec\n"
	.size	.L.str.13, 27

	.type	.L.str.14,@object               # @.str.14
.L.str.14:
	.asciz	"Number of iterations : %d\n"
	.size	.L.str.14, 27

	.type	.L.str.15,@object               # @.str.15
.L.str.15:
	.asciz	"Time: %f ms\n"
	.size	.L.str.15, 13

	.type	.L.str.16,@object               # @.str.16
.L.str.16:
	.asciz	"cannot create std::vector larger than max_size()"
	.size	.L.str.16, 49

	.type	.L.str.17,@object               # @.str.17
.L.str.17:
	.asciz	"vector::_M_realloc_insert"
	.size	.L.str.17, 26

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z5resetv"
	.size	.L__unnamed_1, 10

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z14gather_pr_edgePK7__shardP8__vertexii"
	.size	.L__unnamed_2, 41

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z13apply_pr_edgePK7__shardP8__vertexii"
	.size	.L__unnamed_3, 40

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"d_over"
	.size	.L__unnamed_4, 7

	.type	__hip_fatbin_wrapper,@object    # @__hip_fatbin_wrapper
	.section	.hipFatBinSegment,"a",@progbits
	.p2align	3, 0x0
__hip_fatbin_wrapper:
	.long	1212764230                      # 0x48495046
	.long	1                               # 0x1
	.quad	__hip_fatbin
	.quad	0
	.size	__hip_fatbin_wrapper, 24

	.type	__hip_gpubin_handle,@object     # @__hip_gpubin_handle
	.local	__hip_gpubin_handle
	.comm	__hip_gpubin_handle,8,8
	.section	.init_array,"aw",@init_array
	.p2align	3, 0x0
	.quad	__hip_module_ctor
	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.type	.Lstr,@object                   # @str
	.section	.rodata.str1.1,"aMS",@progbits,1
.Lstr:
	.asciz	"Error reading file."
	.size	.Lstr, 20

	.type	.Lstr.1,@object                 # @str.1
.Lstr.1:
	.asciz	"Begin file reading..."
	.size	.Lstr.1, 22

	.type	.Lstr.2,@object                 # @str.2
.Lstr.2:
	.asciz	"Finished file reading."
	.size	.Lstr.2, 23

	.type	.Lstr.3,@object                 # @str.3
.Lstr.3:
	.asciz	"\nBegin interval construction..."
	.size	.Lstr.3, 32

	.type	.Lstr.4,@object                 # @str.4
.Lstr.4:
	.asciz	"\nBegin shard construction..."
	.size	.Lstr.4, 29

	.type	.Lstr.5,@object                 # @str.5
.Lstr.5:
	.asciz	"Begin kernel"
	.size	.Lstr.5, 13

	.type	.Lstr.6,@object                 # @str.6
.Lstr.6:
	.asciz	"./a.out <filename>"
	.size	.Lstr.6, 19

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym _Z20__device_stub__resetv
	.addrsig_sym _Z29__device_stub__gather_pr_edgePK7__shardP8__vertexii
	.addrsig_sym _Z28__device_stub__apply_pr_edgePK7__shardP8__vertexii
	.addrsig_sym _Z4costRK6__edgeS1_
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym d_over
	.addrsig_sym _Z5resetv
	.addrsig_sym _Z14gather_pr_edgePK7__shardP8__vertexii
	.addrsig_sym _Z13apply_pr_edgePK7__shardP8__vertexii
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z5resetv               ; -- Begin function _Z5resetv
	.globl	_Z5resetv
	.p2align	8
	.type	_Z5resetv,@function
_Z5resetv:                              ; @_Z5resetv
; %bb.0:
	v_mov_b32_e32 v0, 0
	s_getpc_b64 s[0:1]
	s_add_u32 s0, s0, d_over@rel32@lo+4
	s_addc_u32 s1, s1, d_over@rel32@hi+12
	global_store_b8 v0, v0, s[0:1]
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z5resetv
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 0
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 0
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 1
		.amdhsa_next_free_sgpr 2
		.amdhsa_reserve_vcc 0
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z5resetv, .Lfunc_end0-_Z5resetv
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 44
; NumSgprs: 2
; NumVgprs: 1
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 0
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 2
; NumVGPRsForWavesPerEU: 1
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z14gather_pr_edgePK7__shardP8__vertexii ; -- Begin function _Z14gather_pr_edgePK7__shardP8__vertexii
	.globl	_Z14gather_pr_edgePK7__shardP8__vertexii
	.p2align	8
	.type	_Z14gather_pr_edgePK7__shardP8__vertexii,@function
_Z14gather_pr_edgePK7__shardP8__vertexii: ; @_Z14gather_pr_edgePK7__shardP8__vertexii
; %bb.0:
	s_load_b32 s8, s[0:1], 0x14
	s_waitcnt lgkmcnt(0)
	s_cmp_lt_i32 s8, 1
	s_cbranch_scc1 .LBB1_21
; %bb.1:
	s_clause 0x1
	s_load_b128 s[4:7], s[0:1], 0x0
	s_load_b32 s0, s[0:1], 0x24
	s_waitcnt lgkmcnt(0)
	s_load_b32 s1, s[4:5], 0x0
	s_and_b32 s0, s0, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s0, v[0:1]
	s_mov_b32 s0, exec_lo
	s_waitcnt lgkmcnt(0)
	v_cmpx_gt_i32_e64 s1, v1
	s_cbranch_execz .LBB1_21
; %bb.2:
	s_load_b128 s[0:3], s[4:5], 0x10
	v_ashrrev_i32_e32 v2, 31, v1
	s_mov_b32 s10, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[2:3], 2, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s0, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s1, v3, vcc_lo
	global_load_b32 v0, v[2:3], off
	s_load_b32 s0, s[2:3], 0x0
	s_load_b32 s9, s[4:5], 0x4
	v_mov_b32_e32 v2, 0
	s_waitcnt lgkmcnt(0)
	v_cmpx_le_i32_e64 s0, v1
	s_cbranch_execz .LBB1_18
; %bb.3:                                ; %.preheader39.i.preheader
	s_load_b32 s0, s[4:5], 0x8
	s_mov_b32 s5, 0
                                        ; implicit-def: $sgpr12
                                        ; implicit-def: $vgpr7
	v_mov_b32_e32 v6, 0
	s_waitcnt lgkmcnt(0)
	s_sub_i32 s0, s0, s9
	s_add_u32 s4, s2, 4
	v_mov_b32_e32 v5, s0
	s_addc_u32 s11, s3, 0
.LBB1_4:                                ; %.preheader39.i
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB1_9 Depth 2
	s_or_b32 s12, s12, exec_lo
	s_mov_b32 s13, exec_lo
                                        ; implicit-def: $vgpr3
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_ge_i32_e64 v5, v6
	s_cbranch_execz .LBB1_16
; %bb.5:                                ;   in Loop: Header=BB1_4 Depth=1
	v_sub_nc_u32_e32 v2, v5, v6
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshrrev_b32_e32 v3, 31, v2
	v_add_nc_u32_e32 v2, v2, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v4, 1, v2
	v_add_nc_u32_e32 v2, v4, v6
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[8:9], 2, v[2:3]
                                        ; implicit-def: $vgpr3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v8, vcc_lo, s2, v8
	v_add_co_ci_u32_e32 v9, vcc_lo, s3, v9, vcc_lo
	global_load_b32 v8, v[8:9], off
	s_waitcnt vmcnt(0)
	v_cmp_eq_u32_e32 vcc_lo, v8, v1
	v_cmp_ne_u32_e64 s0, v8, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_saveexec_b32 s1, s0
	s_xor_b32 s1, exec_lo, s1
; %bb.6:                                ;   in Loop: Header=BB1_4 Depth=1
	v_add_nc_u32_e32 v3, 1, v2
	v_add_nc_u32_e32 v2, -1, v2
	v_cmp_lt_i32_e64 s0, v8, v1
                                        ; implicit-def: $vgpr4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v5, v2, v5, s0
	v_cndmask_b32_e64 v3, v6, v3, s0
                                        ; implicit-def: $vgpr6
                                        ; implicit-def: $vgpr2
; %bb.7:                                ; %Flow35
                                        ;   in Loop: Header=BB1_4 Depth=1
	s_and_not1_saveexec_b32 s14, s1
	s_cbranch_execz .LBB1_15
; %bb.8:                                ; %.preheader.preheader.i
                                        ;   in Loop: Header=BB1_4 Depth=1
	v_ashrrev_i32_e32 v7, 31, v6
	v_ashrrev_i32_e32 v8, 31, v4
	v_add_co_u32 v3, s0, v6, v4
	s_mov_b32 s16, 0
                                        ; implicit-def: $sgpr15
                                        ; implicit-def: $sgpr18
                                        ; implicit-def: $sgpr17
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e64 v4, s0, v7, v8, s0
	v_mov_b32_e32 v7, v2
	v_lshlrev_b64 v[3:4], 2, v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v3, s0, s4, v3
	v_add_co_ci_u32_e64 v4, s0, s11, v4, s0
.LBB1_9:                                ; %.preheader.i
                                        ;   Parent Loop BB1_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_cmp_lt_i32_e64 s0, v7, v5
	s_or_b32 s17, s17, exec_lo
	s_or_b32 s18, s18, exec_lo
	s_and_saveexec_b32 s19, s0
	s_cbranch_execz .LBB1_11
; %bb.10:                               ;   in Loop: Header=BB1_9 Depth=2
	global_load_b32 v8, v[3:4], off
	v_add_co_u32 v3, s1, v3, 4
	v_add_nc_u32_e32 v7, 1, v7
	v_add_co_ci_u32_e64 v4, s1, 0, v4, s1
	s_and_not1_b32 s1, s18, exec_lo
	s_and_not1_b32 s17, s17, exec_lo
	s_waitcnt vmcnt(0)
	v_cmp_ne_u32_e64 s0, v8, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s0, s0, exec_lo
	s_or_b32 s18, s1, s0
.LBB1_11:                               ; %Flow34
                                        ;   in Loop: Header=BB1_9 Depth=2
	s_or_b32 exec_lo, exec_lo, s19
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s0, exec_lo, s18
	s_or_b32 s16, s0, s16
	s_and_not1_b32 s0, s15, exec_lo
	s_and_b32 s1, s17, exec_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 s15, s0, s1
	s_and_not1_b32 exec_lo, exec_lo, s16
	s_cbranch_execnz .LBB1_9
; %bb.12:                               ; %loop.exit.guard
                                        ;   in Loop: Header=BB1_4 Depth=1
	s_or_b32 exec_lo, exec_lo, s16
	s_and_saveexec_b32 s0, s15
	s_delay_alu instid0(SALU_CYCLE_1)
	s_xor_b32 s0, exec_lo, s0
; %bb.13:                               ; %.preheader..critedge_crit_edge.i
                                        ;   in Loop: Header=BB1_4 Depth=1
	v_max_i32_e32 v2, v5, v2
	s_delay_alu instid0(VALU_DEP_1)
	v_add_nc_u32_e32 v7, 1, v2
; %bb.14:                               ; %Flow33
                                        ;   in Loop: Header=BB1_4 Depth=1
	s_or_b32 exec_lo, exec_lo, s0
	v_mov_b32_e32 v3, v6
.LBB1_15:                               ; %Flow36
                                        ;   in Loop: Header=BB1_4 Depth=1
	s_or_b32 exec_lo, exec_lo, s14
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	v_mov_b32_e32 v6, v7
	s_and_not1_b32 s0, s12, exec_lo
	s_and_b32 s1, vcc_lo, exec_lo
	s_or_b32 s12, s0, s1
.LBB1_16:                               ; %Flow37
                                        ;   in Loop: Header=BB1_4 Depth=1
	s_or_b32 exec_lo, exec_lo, s13
	v_mov_b32_e32 v2, v6
	v_mov_b32_e32 v6, v3
	s_and_b32 s0, exec_lo, s12
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 s5, s0, s5
	s_and_not1_b32 exec_lo, exec_lo, s5
	s_cbranch_execnz .LBB1_4
; %bb.17:                               ; %Flow38
	s_or_b32 exec_lo, exec_lo, s5
.LBB1_18:                               ; %Flow39
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_3) | instid1(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s10
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v1, 31, v0
	s_add_i32 s0, s8, -1
	v_cvt_f64_i32_e32 v[3:4], s0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 4, v[0:1]
	v_add_co_u32 v0, vcc_lo, s6, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s7, v1, vcc_lo
	global_load_b64 v[0:1], v[0:1], off
	s_waitcnt vmcnt(0)
	v_cmp_eq_f64_e32 vcc_lo, v[0:1], v[3:4]
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB1_21
; %bb.19:
	v_add_nc_u32_e32 v0, s9, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v1, 31, v0
	v_lshlrev_b64 v[0:1], 4, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s7, v1, vcc_lo
	global_load_b64 v[2:3], v[0:1], off
	s_waitcnt vmcnt(0)
	v_cmp_eq_f64_e32 vcc_lo, -1.0, v[2:3]
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB1_21
; %bb.20:
	v_cvt_f64_i32_e32 v[2:3], s8
	v_dual_mov_b32 v4, 0 :: v_dual_mov_b32 v5, 1
	s_getpc_b64 s[0:1]
	s_add_u32 s0, s0, d_over@rel32@lo+4
	s_addc_u32 s1, s1, d_over@rel32@hi+12
	global_store_b64 v[0:1], v[2:3], off
	global_store_b8 v4, v5, s[0:1]
.LBB1_21:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z14gather_pr_edgePK7__shardP8__vertexii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 10
		.amdhsa_next_free_sgpr 20
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end1:
	.size	_Z14gather_pr_edgePK7__shardP8__vertexii, .Lfunc_end1-_Z14gather_pr_edgePK7__shardP8__vertexii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 868
; NumSgprs: 22
; NumVgprs: 10
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 22
; NumVGPRsForWavesPerEU: 10
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z13apply_pr_edgePK7__shardP8__vertexii ; -- Begin function _Z13apply_pr_edgePK7__shardP8__vertexii
	.globl	_Z13apply_pr_edgePK7__shardP8__vertexii
	.p2align	8
	.type	_Z13apply_pr_edgePK7__shardP8__vertexii,@function
_Z13apply_pr_edgePK7__shardP8__vertexii: ; @_Z13apply_pr_edgePK7__shardP8__vertexii
; %bb.0:
	s_clause 0x2
	s_load_b128 s[4:7], s[0:1], 0x0
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s3, s[0:1], 0x14
	s_waitcnt lgkmcnt(0)
	s_load_b64 s[0:1], s[4:5], 0x4
	s_and_b32 s2, s2, 0xffff
	s_cmp_eq_u32 s3, 0
	s_mul_i32 s15, s15, s2
	s_waitcnt lgkmcnt(0)
	v_add3_u32 v0, s15, s0, v0
	s_cselect_b32 s0, -1, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_cmp_ge_i32_e32 vcc_lo, s1, v0
	s_and_b32 s0, s0, vcc_lo
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB2_5
; %bb.1:
	v_dual_mov_b32 v2, 0 :: v_dual_mov_b32 v1, 1
	s_getpc_b64 s[0:1]
	s_add_u32 s0, s0, d_over@rel32@lo+4
	s_addc_u32 s1, s1, d_over@rel32@hi+12
	global_store_b8 v2, v1, s[0:1]
	s_mov_b32 s0, exec_lo
	v_cmpx_ne_u32_e32 0, v0
	s_xor_b32 s0, exec_lo, s0
	s_cbranch_execz .LBB2_3
; %bb.2:
	v_ashrrev_i32_e32 v1, 31, v0
	v_mov_b32_e32 v3, 0xbff00000
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 4, v[0:1]
	v_add_co_u32 v0, vcc_lo, s6, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s7, v1, vcc_lo
	global_store_b64 v[0:1], v[2:3], off
.LBB2_3:                                ; %Flow
	s_and_not1_saveexec_b32 s0, s0
	s_cbranch_execz .LBB2_5
; %bb.4:
	v_mov_b32_e32 v0, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_mov_b32_e32 v1, v0
	global_store_b64 v0, v[0:1], s[6:7]
.LBB2_5:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z13apply_pr_edgePK7__shardP8__vertexii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 4
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end2:
	.size	_Z13apply_pr_edgePK7__shardP8__vertexii, .Lfunc_end2-_Z13apply_pr_edgePK7__shardP8__vertexii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 232
; NumSgprs: 18
; NumVgprs: 4
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 4
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.protected	d_over                  ; @d_over
	.type	d_over,@object
	.section	.bss,"aw",@nobits
	.globl	d_over
d_over:
	.byte	0                               ; 0x0
	.size	d_over, 1

	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym d_over
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:           []
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 4
    .kernarg_segment_size: 0
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z5resetv
    .private_segment_fixed_size: 0
    .sgpr_count:     2
    .sgpr_spill_count: 0
    .symbol:         _Z5resetv.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     1
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         20
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z14gather_pr_edgePK7__shardP8__vertexii
    .private_segment_fixed_size: 0
    .sgpr_count:     22
    .sgpr_spill_count: 0
    .symbol:         _Z14gather_pr_edgePK7__shardP8__vertexii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     10
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         20
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z13apply_pr_edgePK7__shardP8__vertexii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z13apply_pr_edgePK7__shardP8__vertexii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     4
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
