#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>

#include <cuda.h>

#include <time.h>

#define THREADSPERBLOCK 64

// graph
struct edge{
	int v;
	int u;
	int weight;
};

struct graph{
	int num_edges;
	int num_vertices;
	struct edge* edges;
};

// bipartite graph
struct b_vertex_a{
	int v;
	int small_edge; // don't know what this is for
};

struct b_vertex_b{
	int e; // edge number
};

struct b_edge{
	int v;
	int u;
	int cv;
	int weight;
};

struct b_graph{
	int num_vertex_a;
	int num_vertex_b;
	int num_bipartite_edges;
	struct b_vertex_a* vertices_a;
	struct b_vertex_b* vertices_b; 
	struct b_edge* edges;
};

// strut
struct strut_edge{
    int v;
    int u; // edge number index
    int cv; // correspondent vertex
};

struct strut_u_vertex{ 
    int degree; // degree in struts
    int v1;
    int v2;
    int weight;
};

struct strut{
    int num_v; // num of bipartite vertices
    int num_u; // num of u vertices adjacent to strut edge
    int num_strut_edges; // same number as num_v
    struct strut_edge* edges; 
    struct strut_u_vertex* vertices_u; // u vertices - 0 value indicates not in strut, value > 0 indicates how many strut edges it is connected to
};

void get_graph(struct graph* og_graph, char* input);
__global__ void get_bipartite_graph(int num_edges, int num_vertices, struct edge* graphEdges, struct b_vertex_a* vetices_a, struct b_vertex_b* vetices_b, struct b_edge* bg_graphEdges) ;


__global__ void get_smallest_edges(int bp_num_edges, int num_smallest_edges, struct b_edge* bg_graphEdges, int* smallest_weights, int* smallest_edges);
__global__ void mst_edges_init(int og_num_edges, bool *mst_edges);
__global__ void get_mst_edges(int num_smallest_edges, int* smallest_edges, struct b_edge* bg_graphEdges, bool *mst_edges);
__global__ void get_num_mst(int og_num_edges, bool *mst_edges, int* num_mst);

// strut stuff
__global__ void get_strut_edges(int bg_num_vertices, int* smallest_edges, struct b_edge* bg_graphEdges, strut_edge* strut_edges);
__global__ void strut_u_init(int bg_num_vertex_b, struct strut_u_vertex* vertices_u);
__global__ void get_strut_u_degree(int num_strut_edges, strut_edge* strut_edges, struct strut_u_vertex* vertices_u);
__global__ void get_strut_u_vertices(int bg_num_edges, struct b_edge* bg_graphEdges, struct strut_u_vertex* vertices_u);
__global__ void get_zero_diff_num(int bg_num_vertex_b, struct strut_u_vertex* vertices_u, int* zero_diff_edges);

__global__ void super_vertices_init(int num_strut_vertices, int* super_vertices);
__global__ void get_new_bg_vertex_b(int num_bg_vertexb, int* super_vertices, struct strut_u_vertex* vertices_u, int* new_vertex_b, int* num_newbg_vertexb);

__global__ void prefixCopy(int prefixNum, int* old_prefix, int *new_prefix);
__global__ void getPrefixSum(int* entries, int* entriesC, int d);
__global__ void get_super_vertices(int num_strut_vertices, strut_edge* strut_edges, struct strut_u_vertex* vertices_u, int* super_vertices);
__global__ void get_new_bg_edges(int num_bg_vertex_b, int* new_bg_edges, int* prefixSum, struct strut_u_vertex* vertices_u, int* super_vertices, struct b_edge* bg_graphEdges, int * max_super_vertex);

__global__ void init_smallest_edges_weights(int num_edges, int *smallest_weights, int* smallest_edges);
/* NOTES: 
    - Remember to free all malloced and cuda malloced variables 
    - Comment out debugging statements
    - Output to file 
    - find sequential algorithm that outputs result in same way
    - compare results with that
    - Time the algorithm - put in output
    - documentation
        - read piazza and term project info for documentation
    - prep for presentation
    - submit on github - ask chonyang and email garg by thursday morning
*/

// driver
int main(int argc, char** argv){
	if(argc != 3){
		printf("mst: incorrect formatting\n");
		printf("Valid input: mst.out <Input file name> <Output file name>\n");
		return 0;
	}

	//***** ACQUIRE INPUT GRAPH *****//
	struct graph og_graph; // input
	get_graph(&og_graph, argv[1]);

	//debugging
	// printf("Graph:\n");
	// printf("vertices:%d edges:%d\n",og_graph.num_vertices, og_graph.num_edges);
	// for(int i = 0; i < og_graph.num_edges; i++){
	// 	printf("index:%d - %d   %d   %d\n", i, og_graph.edges[i].v, og_graph.edges[i].u, og_graph.edges[i].weight);
	// }

	//***** CREATE BIPARTITE GRAPH *****//
	struct b_graph bg_graph;
	bg_graph.num_vertex_a = og_graph.num_vertices;
	bg_graph.num_vertex_b = og_graph.num_edges;
	bg_graph.num_bipartite_edges = og_graph.num_edges * 2;

	// allocate GPU array
	cudaMalloc((void**) &(bg_graph.vertices_a), bg_graph.num_vertex_a * sizeof(struct b_vertex_a));
	cudaMalloc((void**) &(bg_graph.vertices_b), bg_graph.num_vertex_b * sizeof(struct b_vertex_b));
	cudaMalloc((void**) &(bg_graph.edges), bg_graph.num_bipartite_edges * sizeof(struct b_edge));

	struct edge* d_og_edges = NULL;
	cudaMalloc((void**) &(d_og_edges), og_graph.num_edges * sizeof(struct edge));
	cudaMemcpy(d_og_edges, og_graph.edges, og_graph.num_edges*sizeof(struct edge), cudaMemcpyHostToDevice);

	get_bipartite_graph<<<(og_graph.num_edges + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(og_graph.num_edges, og_graph.num_vertices, d_og_edges, bg_graph.vertices_a, bg_graph.vertices_b, bg_graph.edges);

	//    debugging
	struct b_graph debugging;
	debugging.num_vertex_a = og_graph.num_vertices;
	debugging.num_vertex_b = og_graph.num_edges;
	debugging.num_bipartite_edges = og_graph.num_edges * 2;

	debugging.vertices_a = (struct b_vertex_a*) malloc(debugging.num_vertex_a * sizeof(struct b_vertex_a));
	debugging.vertices_b = (struct b_vertex_b*) malloc(debugging.num_vertex_b * sizeof(struct b_vertex_b));
	debugging.edges = (struct b_edge*) malloc(debugging.num_bipartite_edges * sizeof(struct b_edge));

	cudaMemcpy(debugging.vertices_a, bg_graph.vertices_a, debugging.num_vertex_a * sizeof(struct b_vertex_a), cudaMemcpyDeviceToHost);
	cudaMemcpy(debugging.vertices_b, bg_graph.vertices_b, debugging.num_vertex_b * sizeof(struct b_vertex_b), cudaMemcpyDeviceToHost);
	cudaMemcpy(debugging.edges, bg_graph.edges, debugging.num_bipartite_edges * sizeof(struct b_edge), cudaMemcpyDeviceToHost);

	// printf("Bipartite Graph:\n");
	// printf("verticesA: %d, verticesB: %d, edges: %d\n", debugging.num_vertex_a, debugging.num_vertex_b, debugging.num_bipartite_edges);
	// for(int i = 0; i < debugging.num_bipartite_edges; i++){
	// 	printf("index: %d - %d   %d   %d   %d\n", i, debugging.edges[i].v, debugging.edges[i].u, debugging.edges[i].cv, debugging.edges[i].weight);
	// }
	free(debugging.vertices_a);
	free(debugging.vertices_b);
    free(debugging.edges);
    
	//***** SMALLEST EDGE WEIGHT EDGE FOR EACH VERTEX IN BG_GRAPH *****//
	int* smallest_weights = NULL;
	int* smallest_edges = NULL;

	
    //***** GET SOLUTION *****//
    bool* d_mst_edges = NULL;
    bool* mst_edges = NULL;
    mst_edges = (bool*) malloc(og_graph.num_edges * sizeof(bool));

    // don't malloc again for this variable
    cudaMalloc((void**) &(d_mst_edges), og_graph.num_edges* sizeof(bool));
    
    mst_edges_init<<<(og_graph.num_edges + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(og_graph.num_edges, d_mst_edges);

    int * solution_size = (int*) malloc (sizeof(int));
    *solution_size = 0;
    int* d_solutionSize = NULL;
    cudaMalloc((void**) &(d_solutionSize),sizeof(int));
    cudaMemcpy(d_solutionSize, solution_size, sizeof(int), cudaMemcpyHostToDevice);

    int* max_super_vertex = (int*) malloc (sizeof(int));
    *max_super_vertex = bg_graph.num_vertex_a;
    
    while(*solution_size <  (og_graph.num_vertices - 1)){
        // cudaMalloc((void**) &(smallest_weights), bg_graph.num_vertex_a * sizeof(int));
        // cudaMalloc((void**) &(smallest_edges), bg_graph.num_vertex_a * sizeof(int));
        //get_smallest_edges<<<(bg_graph.num_bipartite_edges + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(bg_graph.num_bipartite_edges, bg_graph.num_vertex_a, bg_graph.edges, smallest_weights, smallest_edges);
        cudaMalloc((void**) &(smallest_weights), *max_super_vertex * sizeof(int));
        cudaMalloc((void**) &(smallest_edges), *max_super_vertex * sizeof(int));
        init_smallest_edges_weights<<<(*max_super_vertex + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(*max_super_vertex, smallest_weights, smallest_edges);
        get_smallest_edges<<<(bg_graph.num_bipartite_edges + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(bg_graph.num_bipartite_edges,*max_super_vertex, bg_graph.edges, smallest_weights, smallest_edges);
    
        // debugging
        int* debug_smallest_weights = NULL;
        debug_smallest_weights = (int*) malloc(*max_super_vertex * sizeof(int));
        cudaMemcpy(debug_smallest_weights, smallest_weights, *max_super_vertex * sizeof(int), cudaMemcpyDeviceToHost);
    
        // for(int i = 0; i < *max_super_vertex; i++){
        //     printf("bg index of smallest weight: %d\n", debug_smallest_weights[i]);
        // }

        int* debug_smallest_edges = NULL;
        debug_smallest_edges = (int*) malloc(*max_super_vertex * sizeof(int));
        cudaMemcpy(debug_smallest_edges, smallest_edges, *max_super_vertex * sizeof(int), cudaMemcpyDeviceToHost);
    
        // for(int i = 0; i < *max_super_vertex; i++){
        //     printf("bg index of smallest edge: %d\n", debug_smallest_edges[i]);
        // }

        get_mst_edges<<<(*max_super_vertex + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(*max_super_vertex , smallest_edges, bg_graph.edges, d_mst_edges);
        
        get_num_mst<<<(og_graph.num_edges  + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(og_graph.num_edges , d_mst_edges, d_solutionSize);

        // debugging
        // printf("MST:\n");
        cudaMemcpy(mst_edges, d_mst_edges, og_graph.num_edges * sizeof(bool), cudaMemcpyDeviceToHost);
        // for(int i = 0; i < og_graph.num_edges; i++){
        //     if(mst_edges[i] == true){
        //         //printf("mst edges index: %d\n", i);
        //         printf("index: %d - %d   %d   %d\n", i, og_graph.edges[i].v, og_graph.edges[i].u, og_graph.edges[i].weight);
        //     }
        // }
        
        cudaMemcpy(solution_size, d_solutionSize,  sizeof(int), cudaMemcpyDeviceToHost);
        // printf("Num MST edges found: %d\n",*solution_size);
        
        if(*solution_size <  (og_graph.num_vertices - 1)){
            //***** GET STRUT *****//
            struct strut new_strut;
            new_strut.num_v = bg_graph.num_vertex_a;
            new_strut.num_u = bg_graph.num_vertex_b;
            new_strut.num_strut_edges = bg_graph.num_vertex_a;

            struct strut_edge* d_strut_edges = NULL; 
            
            cudaMalloc((void**) &(d_strut_edges), new_strut.num_v * sizeof(struct strut_edge));
            get_strut_edges<<<((bg_graph.num_vertex_a) + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(bg_graph.num_vertex_a, smallest_edges, bg_graph.edges, d_strut_edges);

            // debugging
            struct strut_edge* strut_edges = (struct strut_edge* ) malloc(new_strut.num_v * sizeof(struct strut_edge));
            cudaMemcpy(strut_edges, d_strut_edges, new_strut.num_v * sizeof(struct strut_edge), cudaMemcpyDeviceToHost);
            // printf("STRUT EDGES:\n");
            // for(int i = 0; i < new_strut.num_v ; i++){
            //     printf("%d   %d   %d\n", strut_edges[i].v,strut_edges[i].u, strut_edges[i].cv);
            // }

            // getting strut_u
            struct strut_u_vertex* d_vertices_u = NULL;
            cudaMalloc((void**) &(d_vertices_u), new_strut.num_u * sizeof(struct strut_u_vertex));
            strut_u_init<<<((new_strut.num_u) + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(new_strut.num_u, d_vertices_u);
            get_strut_u_degree<<<((new_strut.num_v) + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(new_strut.num_v, d_strut_edges, d_vertices_u);
        
            get_strut_u_vertices<<<((bg_graph.num_bipartite_edges) + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(bg_graph.num_bipartite_edges, bg_graph.edges, d_vertices_u);

            // debugging
            struct strut_u_vertex* vertices_u = (struct strut_u_vertex* ) malloc(new_strut.num_u * sizeof(struct strut_u_vertex));
            cudaMemcpy(vertices_u, d_vertices_u, new_strut.num_u * sizeof(struct strut_u_vertex), cudaMemcpyDeviceToHost);
            // printf("STRUT U VERTICES DEGREE:\n");
            // for(int i = 0; i < new_strut.num_u ; i++){
            //     printf("index: %d degree: %d v1: %d v2: %d\n",i, vertices_u[i].degree,  vertices_u[i].v1,  vertices_u[i].v2);
            // }

            /* ZERO DIFF */
            int* d_zero_diff_edges = NULL;
            cudaMalloc((void**) &(d_zero_diff_edges), new_strut.num_u * sizeof(int));
            get_zero_diff_num<<<((new_strut.num_u) + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(new_strut.num_u, d_vertices_u, d_zero_diff_edges);

            // debugging
            int*zero_diff_edges = (int*) malloc (sizeof(int));
            cudaMemcpy(zero_diff_edges, d_zero_diff_edges, sizeof(int), cudaMemcpyDeviceToHost);
            // printf("zero diff edges: %d\n", *zero_diff_edges);

            // /*SUPER VERTEX*/
            int* d_super_vertices = NULL;
            cudaMalloc((void**) &(d_super_vertices), bg_graph.num_vertex_a* sizeof(int));
            super_vertices_init<<<((bg_graph.num_vertex_a) + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(bg_graph.num_vertex_a, d_super_vertices);

            int* super_vertices = (int*) malloc(bg_graph.num_vertex_a* sizeof(int));
            cudaMemcpy(super_vertices, d_super_vertices,bg_graph.num_vertex_a* sizeof(int), cudaMemcpyDeviceToHost);

            for(int i = 0; i < new_strut.num_u ; i++){
                int super_vertex;
                if(vertices_u[i].degree > 0){ // if incident to strut edge
                    if(super_vertices[vertices_u[i].v1 - 1] < vertices_u[i].v1){
                        super_vertex = super_vertices[vertices_u[i].v1 - 1];
                        super_vertices[vertices_u[i].v1 - 1] = super_vertex;
                        super_vertices[vertices_u[i].v2 - 1] = super_vertex;
                    }
                    else{
                        super_vertex = vertices_u[i].v1;
                        super_vertices[vertices_u[i].v1 - 1] = super_vertex;
                        super_vertices[vertices_u[i].v2 - 1] = super_vertex;
                    }
                }
            }

            cudaMemcpy(d_super_vertices, super_vertices,bg_graph.num_vertex_a* sizeof(int), cudaMemcpyHostToDevice);

            // debugging
            // printf("Supervertices\n:");
            // for(int i = 0; i < bg_graph.num_vertex_a ; i++){
            //     printf("vertex: %d supervertex: %d\n", i+1, super_vertices[i]);
            // }

            /******** CREATING NEW BIPARTITE GRAPH **********/
            struct b_graph new_bg_graph;
            new_bg_graph.num_vertex_a = *zero_diff_edges;
            
            int* new_num_vertex_b = NULL;
            cudaMalloc((void**) &(new_num_vertex_b), sizeof(int));
            int* new_vertex_b = NULL;
            cudaMalloc((void**) &(new_vertex_b), bg_graph.num_vertex_b * sizeof(int));
            get_new_bg_vertex_b<<<((bg_graph.num_vertex_b) + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(bg_graph.num_vertex_b, d_super_vertices,d_vertices_u, new_vertex_b, new_num_vertex_b);

            // num_vertex_b and num_bipartite edges
            cudaMemcpy(&new_bg_graph.num_vertex_b, new_num_vertex_b, sizeof(int), cudaMemcpyDeviceToHost);
            new_bg_graph.num_bipartite_edges = new_bg_graph.num_vertex_b * 2;
            
            // debugging 
            int* new_vertex_b_debug = (int*)malloc( bg_graph.num_vertex_b * sizeof(int));
            cudaMemcpy(new_vertex_b_debug, new_vertex_b,  bg_graph.num_vertex_b * sizeof(int), cudaMemcpyDeviceToHost);
            // printf("New Bipartie edges to choose:\n");
            // for(int i =0 ; i < bg_graph.num_vertex_b ; i++){
            //     printf("index: %d value: %d\n", i, new_vertex_b_debug[i]);
            // }
            // printf("New vertex b num: %d\n", new_bg_graph.num_vertex_b);

            int* prefixSum = NULL;
            cudaMalloc((void**) &(prefixSum), bg_graph.num_vertex_b * sizeof(int));
            prefixCopy<<<((bg_graph.num_vertex_b) + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(bg_graph.num_vertex_b, new_vertex_b, prefixSum);

            //get index of bipartite edges
            int* d_prefix_helper = NULL;
            cudaMalloc((void**) &(d_prefix_helper), bg_graph.num_vertex_b * sizeof(int));
            /* prefix sum belloch scan */
            int d = 1;
            while(d<bg_graph.num_vertex_b){
                getPrefixSum<<<(bg_graph.num_vertex_b + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(prefixSum, d_prefix_helper, d);
                d = 2*d;    
            }

            //debugging
            // printf("prefix sum:\n");
            // int* vertex_b_print = (int*) malloc( bg_graph.num_vertex_b * sizeof(int));
            // cudaMemcpy(vertex_b_print, prefixSum,  bg_graph.num_vertex_b * sizeof(int), cudaMemcpyDeviceToHost);
            // for(int i = 0; i <  bg_graph.num_vertex_b ; i++){
            //     printf("vertex: %d index: %d\n", i, vertex_b_print[i]);
            // }

            cudaMalloc((void**) &(new_bg_graph.edges), new_bg_graph.num_bipartite_edges * sizeof(struct b_edge));

            int* d_max_super_vertex = NULL;
            cudaMalloc((void**) &(d_max_super_vertex),sizeof(int));
            get_new_bg_edges<<<(bg_graph.num_vertex_b + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(bg_graph.num_vertex_b , new_vertex_b, prefixSum, d_vertices_u, d_super_vertices, new_bg_graph.edges, d_max_super_vertex);
            cudaMemcpy(max_super_vertex, d_max_super_vertex, sizeof(int), cudaMemcpyDeviceToHost);

            // debugging
            debugging.num_vertex_a = new_bg_graph.num_vertex_a;
            debugging.num_vertex_b = new_bg_graph.num_vertex_b;
            debugging.num_bipartite_edges = new_bg_graph.num_bipartite_edges ;
            
            debugging.edges = (struct b_edge*) malloc(new_bg_graph.num_bipartite_edges * sizeof(struct b_edge));
            cudaMemcpy(debugging.edges, new_bg_graph.edges, new_bg_graph.num_bipartite_edges * sizeof(struct b_edge), cudaMemcpyDeviceToHost);

            // printf("New Bipartite Graph:\n");
            // printf("verticesA: %d, verticesB: %d, edges: %d\n", debugging.num_vertex_a, debugging.num_vertex_b, debugging.num_bipartite_edges);
            // for(int i = 0; i < debugging.num_bipartite_edges; i++){
            //     printf("index: %d - %d   %d   %d   %d\n", i, debugging.edges[i].v, debugging.edges[i].u, debugging.edges[i].cv, debugging.edges[i].weight);
            // }

            bg_graph.num_vertex_a = new_bg_graph.num_vertex_a;
            bg_graph.num_vertex_b = new_bg_graph.num_vertex_b;
            bg_graph.num_bipartite_edges = new_bg_graph.num_bipartite_edges;

            
            cudaFree(bg_graph.edges);
            cudaMalloc((void**) &(bg_graph.edges), bg_graph.num_bipartite_edges * sizeof(struct b_edge));
            cudaMemcpy(bg_graph.edges, debugging.edges, bg_graph.num_bipartite_edges * sizeof(struct b_edge), cudaMemcpyHostToDevice);

            free(debug_smallest_weights);
            free(debug_smallest_edges);
            free(strut_edges);
            free(vertices_u);
            free(zero_diff_edges);
            free(super_vertices);
            free(new_vertex_b_debug);
            
            cudaFree(d_prefix_helper);
            cudaFree(prefixSum);
            cudaFree(new_vertex_b);
            cudaFree(new_num_vertex_b);
            cudaFree(d_max_super_vertex);
            cudaFree(d_super_vertices);
            cudaFree(d_zero_diff_edges);
            cudaFree(d_vertices_u);
            cudaFree(new_num_vertex_b);
            cudaFree(new_vertex_b);
            cudaFree(d_strut_edges);
            cudaFree(smallest_weights);
            cudaFree(smallest_edges);
        }
    }

    //printf("done with loop\n");
    /*end of while loop*/
    FILE *file;
    file = fopen(argv[argc-1],"w+");
    fprintf(file,"Input Graph\nVertices: %d Edges: %d\n", og_graph.num_vertices, og_graph.num_edges);
    fprintf(file, "MST Edges:\n");
    for(int i = 0; i < og_graph.num_edges; i++){
        if(mst_edges[i] == true){
            fprintf(file, "index: %d - v: %d  u: %d  weight: %d\n", i, og_graph.edges[i].v, og_graph.edges[i].u, og_graph.edges[i].weight);
        }
    }
    fclose(file);

    // malloc frees
    free(max_super_vertex);
    free(og_graph.edges);
    free(mst_edges);
    free(solution_size);
    free(max_super_vertex);
    

    // cuda malloc frees
    cudaFree(d_solutionSize);
    cudaFree(d_mst_edges);
    cudaFree(mst_edges);
	cudaFree(d_og_edges);
	cudaFree(bg_graph.vertices_a);
	cudaFree(bg_graph.vertices_b);
	cudaFree(bg_graph.edges);
}

void get_graph(struct graph* og_graph, char* input){
	FILE *file;
	char buff[255];
	int num_vertices;
	int num_edges;

	file = fopen(input , "r");
    if(file == NULL){
        perror(input);
        exit(1);
    }
    else{
    	fscanf(file, "%s", buff);
    	num_vertices = atoi(buff);

    	fscanf(file, "%s", buff);
    	num_edges = atoi(buff);

    	(*og_graph).num_edges = num_edges;
    	(*og_graph).num_vertices = num_vertices;
    	(*og_graph).edges = (struct edge*) malloc(sizeof(struct edge) * num_edges);

    	for(int i = 0; i < num_edges; i++){
			fscanf(file, "%s", buff);
			(*og_graph).edges[i].v = atoi(buff);

			fscanf(file, "%s", buff);
			(*og_graph).edges[i].u = atoi(buff);

			fscanf(file, "%s", buff);
			(*og_graph).edges[i].weight = atoi(buff);
    	}
    }
    fclose(file);
}


__global__ void get_bipartite_graph(int num_edges, int num_vertices, struct edge* graphEdges, struct b_vertex_a* vertices_a, struct b_vertex_b* vertices_b, struct b_edge* bg_graphEdges) {
    int edge = threadIdx.x + blockIdx.x * blockDim.x;

    if(edge < num_edges){
    	// acquire two bipartite edges for each orginal graph edge
    	bg_graphEdges[2*edge].v = graphEdges[edge].v;
    	bg_graphEdges[2*edge].u = edge;
    	bg_graphEdges[2*edge].cv = 2*edge+1; // corresponding edge/vertex
    	bg_graphEdges[2*edge].weight = graphEdges[edge].weight;

    	bg_graphEdges[2*edge+1].v = graphEdges[edge].u;
    	bg_graphEdges[2*edge+1].u = edge;
    	bg_graphEdges[2*edge+1].cv = 2*edge; // corresponding edge/vertex
    	bg_graphEdges[2*edge+1].weight = graphEdges[edge].weight;

    	vertices_b[edge].e = edge;
    	if(edge < num_vertices)
    		vertices_a[edge].v = edge;
    }
}

__global__ void init_smallest_edges_weights(int num_edges, int *smallest_weights, int* smallest_edges){
    int edge = threadIdx.x + blockIdx.x * blockDim.x;
    if(edge < num_edges){
        smallest_weights[edge] = -1;
        smallest_edges[edge] = -1;
    }
}

// fills in smallest edges array with the index of smallest bipartite edges for each vertex (index of smallest_edges corresponds to vertex number) in graph
__global__ void get_smallest_edges(int bp_num_edges, int num_smallest_edges, struct b_edge* bg_graphEdges, int* smallest_weights, int* smallest_edges){
    int edge = threadIdx.x + blockIdx.x * blockDim.x;
    if(edge< bp_num_edges){
        int index = bg_graphEdges[edge].v - 1;
        // smallest_weights[index] = bg_graphEdges[edge].weight; // filler weight to compare with
        smallest_weights[index] = INT_MAX;
        __syncthreads(); // acquire all smallest weights
        atomicMin(&(smallest_weights[index]), bg_graphEdges[edge].weight); // save actual smallest weight

        __syncthreads(); // acquire all smallest weights

        smallest_edges[index] = bp_num_edges - 1; // filler edge number to comapre with, max edge
        // if(edge < num_smallest_edges){
        //     if(edge != index){
        //         smallest_weights[index] = -1;
        //         smallest_edges[index] = -1;
        //     }
        // }
        __syncthreads(); // acquire all smallest edges

        if(bg_graphEdges[edge].weight == smallest_weights[index]) // save smallest edge if the the bg edge has same weight as smallest weight
			//atomicMin(&(smallest_edges[index]), bg_graphEdges[edge].u);
			atomicMin(&(smallest_edges[index]), edge);
    }
}

// flags all edges to false
__global__ void mst_edges_init(int og_num_edges, bool *mst_edges){
    int edge = threadIdx.x + blockIdx.x * blockDim.x;
    if(edge < og_num_edges){
        mst_edges[edge] = false;
    }
}

// sets which edges go in mst
__global__ void get_mst_edges(int num_smallest_edges, int* smallest_edges, struct b_edge* bg_graphEdges, bool *mst_edges){
    int edge = threadIdx.x + blockIdx.x * blockDim.x;
    int bg_index;
    int vertex;
    if(edge < num_smallest_edges){
        bg_index = smallest_edges[edge];
        if(bg_index != -1){
            vertex = bg_graphEdges[bg_index].u;
            mst_edges[vertex] = true;
        }
    }
}

// gets num of mst edges in solution set
__global__ void get_num_mst(int og_num_edges, bool *mst_edges, int* num_mst){
    int edge = threadIdx.x + blockIdx.x * blockDim.x;
    if(edge < og_num_edges){
        *num_mst = 0; // reset
        __syncthreads();

        if(mst_edges[edge] == true)
            atomicAdd(num_mst, 1);
    }
}

// makes the strut edges
__global__ void get_strut_edges(int bg_num_vertices, int* smallest_edges, struct b_edge* bg_graphEdges, strut_edge* strut_edges){
    int bg_vertex = threadIdx.x + blockIdx.x * blockDim.x;
    
    if(bg_vertex < bg_num_vertices){
        strut_edges[bg_vertex].v = bg_vertex + 1; // vertex
        strut_edges[bg_vertex].u = bg_graphEdges[smallest_edges[bg_vertex]].u; // edge index (u vertex)
        strut_edges[bg_vertex].cv = bg_graphEdges[bg_graphEdges[smallest_edges[bg_vertex]].cv].v; // save vertex that is connected to same edge index (u vertex);
    }
}

// init strut u vertices degree
__global__ void strut_u_init(int bg_num_vertex_b, struct strut_u_vertex* vertices_u){
    int vertex_b = threadIdx.x + blockIdx.x * blockDim.x;
    if(vertex_b < bg_num_vertex_b)
        vertices_u[vertex_b].degree = 0;
}


// fill in degree of strut u vertices
__global__ void get_strut_u_degree(int num_strut_vertices, strut_edge* strut_edges, struct strut_u_vertex* vertices_u){
    int strut_edge = threadIdx.x + blockIdx.x * blockDim.x;

    if(strut_edge < num_strut_vertices){
        atomicAdd(&(vertices_u[strut_edges[strut_edge].u]).degree, 1);
    }
}

// fill in what vertices the vertices_u from the strut is connected
__global__ void get_strut_u_vertices(int bg_num_edges, struct b_edge* bg_graphEdges, struct strut_u_vertex* vertices_u){
    int bg_edge = threadIdx.x + blockIdx.x * blockDim.x;
    if(bg_edge < bg_num_edges){
        if(bg_edge%2 == 0){ // only even edges
            vertices_u[bg_graphEdges[bg_edge].u].v1 = bg_graphEdges[bg_edge].v;
            vertices_u[bg_graphEdges[bg_edge].u].v2 = bg_graphEdges[bg_graphEdges[bg_edge].cv].v;
            vertices_u[bg_graphEdges[bg_edge].u].weight =  bg_graphEdges[bg_edge].weight;
        }
    }

}

// get number of zero difference vertrices u in strut
__global__ void get_zero_diff_num(int bg_num_vertex_b, struct strut_u_vertex* vertices_u, int* zero_diff_edges){
    int vertex_b = threadIdx.x + blockIdx.x * blockDim.x;
    if(vertex_b < bg_num_vertex_b){
        if(vertices_u[vertex_b].degree == 2)
            atomicAdd(zero_diff_edges, 1);
    }
}

// initialize super vertices
__global__ void super_vertices_init(int num_strut_vertices, int* super_vertices){
    int vertex = threadIdx.x + blockIdx.x * blockDim.x; 
    if(vertex < num_strut_vertices){
        super_vertices[vertex] = vertex + 1;
    }
}

// set which verticies_u will be in new bipartitie graph and get how many there are 
__global__ void get_new_bg_vertex_b(int num_bg_vertexb, int* super_vertices, struct strut_u_vertex* vertices_u, int* new_vertex_b, int* num_newbg_vertexb){
    int vertex = threadIdx.x + blockIdx.x * blockDim.x; 
    if(vertex < num_bg_vertexb){
        new_vertex_b[vertex] = 0; // setting all to false
        __syncthreads();
        if(super_vertices[vertices_u[vertex].v1 - 1] != super_vertices[vertices_u[vertex].v2 - 1]){
            new_vertex_b[vertex] = 1; 
        }
        *num_newbg_vertexb = 0;
        __syncthreads();
        if(new_vertex_b[vertex] == 1)
            atomicAdd(num_newbg_vertexb, 1);
    }
}

// copy maker
__global__ void prefixCopy(int prefixNum, int* old_prefix, int *new_prefix){
    int index = threadIdx.x + blockIdx.x * blockDim.x;
    if(index < prefixNum){
        new_prefix[index] = old_prefix[index];
    }
}
__global__ void getPrefixSum(int* entries, int* entriesC, int d) {
    int index = threadIdx.x + blockIdx.x * blockDim.x;

    if(index >= d)
        entriesC[index] = entries[index - d];
    else
        entriesC[index] = 0;

    __syncthreads();

    entries[index] = entries[index] + entriesC[index];
}

// makes new bipartite edges
__global__ void get_new_bg_edges(int num_bg_vertex_b, int* new_bg_edges, int* prefixSum, struct strut_u_vertex* vertices_u, int* super_vertices, struct b_edge* bg_graphEdges, int * max_super_vertex){
    int index = threadIdx.x + blockIdx.x * blockDim.x;
    int edge1;
    int edge2;

    if(index < num_bg_vertex_b){
        if(new_bg_edges[index] == 1){
            edge1 = (prefixSum[index] - 1) * 2;
            edge2 = edge1+1;

            bg_graphEdges[edge1].v = super_vertices[vertices_u[index].v1-1];
            bg_graphEdges[edge1].u = index;
            bg_graphEdges[edge1].cv = edge2;
            bg_graphEdges[edge1].weight = vertices_u[index].weight;

            bg_graphEdges[edge2].v = super_vertices[vertices_u[index].v2-1];
            bg_graphEdges[edge2].u = index;
            bg_graphEdges[edge2].cv = edge1;
            bg_graphEdges[edge2].weight = vertices_u[index].weight;

            atomicMax(max_super_vertex, super_vertices[vertices_u[index].v1-1]);
            atomicMax(max_super_vertex, super_vertices[vertices_u[index].v2-1]);
        }
    }
}

// get what vertex each vertex is compacted to during compression of bipartite graph
__global__ void get_super_vertices(int num_strut_vertices, strut_edge* strut_edges, struct strut_u_vertex* vertices_u, int* super_vertices){
	int strut_edge = threadIdx.x + blockIdx.x * blockDim.x; 
    int cv;
    int min_cv;
    if(strut_edge < num_strut_vertices){
        min_cv = strut_edges[strut_edge].v;
        // cv = strut_edges[strut_edge].cv;
        // while(cv < min_cv){
		// 	min_cv = cv;
        //     cv = strut_edges[cv-1].cv;
        // }
        if(vertices_u[strut_edges[strut_edge].u].v1 == min_cv) 
            cv = vertices_u[strut_edges[strut_edge].u].v2;
        else
            cv = vertices_u[strut_edges[strut_edge].u].v1;
        while(cv < min_cv){
            min_cv = cv;
            if(vertices_u[strut_edges[strut_edge].u].v1 == min_cv)
                cv = vertices_u[strut_edges[cv-1].u].v2;
            else
                cv = vertices_u[strut_edges[cv-1].u].v1;
        }
        super_vertices[strut_edge] = min_cv;
    }
}
	.file	"tmpxft_002dcabf_00000000-6_mst.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2031:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2031:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.type	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0, @function
_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0:
.LFB2204:
	.cfi_startproc
	jmp	cudaLaunchKernel@PLT
	.cfi_endproc
.LFE2204:
	.size	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0, .-_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"r"
.LC1:
	.string	"%s"
	.text
	.globl	_Z9get_graphP5graphPc
	.type	_Z9get_graphP5graphPc, @function
_Z9get_graphP5graphPc:
.LFB2028:
	.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
	movq	%rsi, %r12
	leaq	.LC0(%rip), %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdi, %rbp
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$296, %rsp
	.cfi_def_cfa_offset 352
	movq	%fs:40, %rax
	movq	%rax, 280(%rsp)
	xorl	%eax, %eax
	call	fopen@PLT
	testq	%rax, %rax
	jne	.L4
	movq	%r12, %rdi
	call	perror@PLT
	movl	$1, %edi
	call	exit@PLT
.L4:
	movq	%rax, %rbx
	leaq	25(%rsp), %rax
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdx
	movq	%rax, 8(%rsp)
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc23_fscanf@PLT
	movq	8(%rsp), %rdi
	call	atoi@PLT
	movq	8(%rsp), %rdx
	leaq	.LC1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %r14d
	xorl	%eax, %eax
	call	__isoc23_fscanf@PLT
	movq	8(%rsp), %rdi
	call	atoi@PLT
	movl	%r14d, 4(%rbp)
	xorl	%r14d, %r14d
	movslq	%eax, %rdi
	movl	%edi, 0(%rbp)
	movq	%rdi, %r12
	imulq	$12, %rdi, %rdi
	call	malloc@PLT
	movq	%rax, 8(%rbp)
.L5:
	cmpl	%r14d, %r12d
	jle	.L10
	movq	8(%rsp), %rdx
	imulq	$12, %r14, %r13
	movq	%rbx, %rdi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	incq	%r14
	call	__isoc23_fscanf@PLT
	movq	8(%rbp), %r15
	movq	8(%rsp), %rdi
	call	atoi@PLT
	addq	%r13, %r15
	movq	8(%rsp), %rdx
	movq	%rbx, %rdi
	movl	%eax, (%r15)
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	call	__isoc23_fscanf@PLT
	movq	8(%rbp), %r15
	movq	8(%rsp), %rdi
	call	atoi@PLT
	addq	%r13, %r15
	movq	8(%rsp), %rdx
	movq	%rbx, %rdi
	movl	%eax, 4(%r15)
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	call	__isoc23_fscanf@PLT
	movq	8(%rbp), %r15
	movq	8(%rsp), %rdi
	call	atoi@PLT
	addq	%r13, %r15
	movl	%eax, 8(%r15)
	jmp	.L5
.L10:
	movq	%rbx, %rdi
	call	fclose@PLT
	movq	280(%rsp), %rax
	subq	%fs:40, %rax
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	addq	$296, %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
.LFE2028:
	.size	_Z9get_graphP5graphPc, .-_Z9get_graphP5graphPc
	.globl	_Z79__device_stub__Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edgeiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge
	.type	_Z79__device_stub__Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edgeiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge, @function
_Z79__device_stub__Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edgeiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge:
.LFB2053:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movl	%edi, 44(%rsp)
	leaq	64(%rsp), %rdi
	movl	%esi, 40(%rsp)
	leaq	76(%rsp), %rsi
	movq	%rdx, 32(%rsp)
	leaq	48(%rsp), %rdx
	movq	%rcx, 24(%rsp)
	leaq	56(%rsp), %rcx
	movq	%r8, 16(%rsp)
	movq	%r9, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rax
	movl	$1, 72(%rsp)
	movq	%rax, 88(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 96(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 64(%rsp)
	movq	%rax, 76(%rsp)
	movl	$1, 84(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L11
	pushq	56(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge(%rip), %rdi
	pushq	56(%rsp)
	.cfi_def_cfa_offset 176
	movq	92(%rsp), %rcx
	movl	100(%rsp), %r8d
	movq	80(%rsp), %rsi
	movl	88(%rsp), %edx
	leaq	104(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L11:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2053:
	.size	_Z79__device_stub__Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edgeiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge, .-_Z79__device_stub__Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edgeiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge
	.globl	_Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge
	.type	_Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge, @function
_Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge:
.LFB2054:
	.cfi_startproc
	endbr64
	jmp	_Z79__device_stub__Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edgeiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge
	.cfi_endproc
.LFE2054:
	.size	_Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge, .-_Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge
	.globl	_Z50__device_stub__Z27init_smallest_edges_weightsiPiS_iPiS_
	.type	_Z50__device_stub__Z27init_smallest_edges_weightsiPiS_iPiS_, @function
_Z50__device_stub__Z27init_smallest_edges_weightsiPiS_iPiS_:
.LFB2055:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movl	%edi, 28(%rsp)
	leaq	48(%rsp), %rcx
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	40(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 80(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 88(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L16
	pushq	48(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z27init_smallest_edges_weightsiPiS_(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 144
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	96(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L16:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2055:
	.size	_Z50__device_stub__Z27init_smallest_edges_weightsiPiS_iPiS_, .-_Z50__device_stub__Z27init_smallest_edges_weightsiPiS_iPiS_
	.globl	_Z27init_smallest_edges_weightsiPiS_
	.type	_Z27init_smallest_edges_weightsiPiS_, @function
_Z27init_smallest_edges_weightsiPiS_:
.LFB2056:
	.cfi_startproc
	endbr64
	jmp	_Z50__device_stub__Z27init_smallest_edges_weightsiPiS_iPiS_
	.cfi_endproc
.LFE2056:
	.size	_Z27init_smallest_edges_weightsiPiS_, .-_Z27init_smallest_edges_weightsiPiS_
	.globl	_Z51__device_stub__Z18get_smallest_edgesiiP6b_edgePiS1_iiP6b_edgePiS1_
	.type	_Z51__device_stub__Z18get_smallest_edgesiiP6b_edgePiS1_iiP6b_edgePiS1_, @function
_Z51__device_stub__Z18get_smallest_edgesiiP6b_edgePiS1_iiP6b_edgePiS1_:
.LFB2057:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movl	%edi, 28(%rsp)
	leaq	56(%rsp), %rdi
	movl	%esi, 24(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 16(%rsp)
	leaq	40(%rsp), %rdx
	movq	%rcx, 8(%rsp)
	leaq	48(%rsp), %rcx
	movq	%r8, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 80(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 88(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 96(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 104(%rsp)
	movq	%rsp, %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L21
	pushq	48(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z18get_smallest_edgesiiP6b_edgePiS1_(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 160
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	96(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 152
	popq	%rdx
	.cfi_def_cfa_offset 144
.L21:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2057:
	.size	_Z51__device_stub__Z18get_smallest_edgesiiP6b_edgePiS1_iiP6b_edgePiS1_, .-_Z51__device_stub__Z18get_smallest_edgesiiP6b_edgePiS1_iiP6b_edgePiS1_
	.globl	_Z18get_smallest_edgesiiP6b_edgePiS1_
	.type	_Z18get_smallest_edgesiiP6b_edgePiS1_, @function
_Z18get_smallest_edgesiiP6b_edgePiS1_:
.LFB2058:
	.cfi_startproc
	endbr64
	jmp	_Z51__device_stub__Z18get_smallest_edgesiiP6b_edgePiS1_iiP6b_edgePiS1_
	.cfi_endproc
.LFE2058:
	.size	_Z18get_smallest_edgesiiP6b_edgePiS1_, .-_Z18get_smallest_edgesiiP6b_edgePiS1_
	.globl	_Z35__device_stub__Z14mst_edges_initiPbiPb
	.type	_Z35__device_stub__Z14mst_edges_initiPbiPb, @function
_Z35__device_stub__Z14mst_edges_initiPbiPb:
.LFB2059:
	.cfi_startproc
	endbr64
	subq	$88, %rsp
	.cfi_def_cfa_offset 96
	movl	%edi, 12(%rsp)
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	movq	%rsi, (%rsp)
	leaq	32(%rsp), %rdi
	leaq	44(%rsp), %rsi
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rax
	movl	$1, 40(%rsp)
	movq	%rax, 56(%rsp)
	movq	%rsp, %rax
	movq	%rax, 64(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 32(%rsp)
	movq	%rax, 44(%rsp)
	movl	$1, 52(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L26
	pushq	24(%rsp)
	.cfi_def_cfa_offset 104
	leaq	_Z14mst_edges_initiPb(%rip), %rdi
	pushq	24(%rsp)
	.cfi_def_cfa_offset 112
	movq	60(%rsp), %rcx
	movl	68(%rsp), %r8d
	movq	48(%rsp), %rsi
	movl	56(%rsp), %edx
	leaq	72(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 104
	popq	%rdx
	.cfi_def_cfa_offset 96
.L26:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	addq	$88, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2059:
	.size	_Z35__device_stub__Z14mst_edges_initiPbiPb, .-_Z35__device_stub__Z14mst_edges_initiPbiPb
	.globl	_Z14mst_edges_initiPb
	.type	_Z14mst_edges_initiPb, @function
_Z14mst_edges_initiPb:
.LFB2060:
	.cfi_startproc
	endbr64
	jmp	_Z35__device_stub__Z14mst_edges_initiPbiPb
	.cfi_endproc
.LFE2060:
	.size	_Z14mst_edges_initiPb, .-_Z14mst_edges_initiPb
	.globl	_Z44__device_stub__Z13get_mst_edgesiPiP6b_edgePbiPiP6b_edgePb
	.type	_Z44__device_stub__Z13get_mst_edgesiPiP6b_edgePbiPiP6b_edgePb, @function
_Z44__device_stub__Z13get_mst_edgesiPiP6b_edgePbiPiP6b_edgePb:
.LFB2061:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movl	%edi, 28(%rsp)
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rsp)
	leaq	40(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 72(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 80(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 88(%rsp)
	movq	%rsp, %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L31
	pushq	40(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z13get_mst_edgesiPiP6b_edgePb(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 144
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	88(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L31:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2061:
	.size	_Z44__device_stub__Z13get_mst_edgesiPiP6b_edgePbiPiP6b_edgePb, .-_Z44__device_stub__Z13get_mst_edgesiPiP6b_edgePbiPiP6b_edgePb
	.globl	_Z13get_mst_edgesiPiP6b_edgePb
	.type	_Z13get_mst_edgesiPiP6b_edgePb, @function
_Z13get_mst_edgesiPiP6b_edgePb:
.LFB2062:
	.cfi_startproc
	endbr64
	jmp	_Z44__device_stub__Z13get_mst_edgesiPiP6b_edgePbiPiP6b_edgePb
	.cfi_endproc
.LFE2062:
	.size	_Z13get_mst_edgesiPiP6b_edgePb, .-_Z13get_mst_edgesiPiP6b_edgePb
	.globl	_Z34__device_stub__Z11get_num_mstiPbPiiPbPi
	.type	_Z34__device_stub__Z11get_num_mstiPbPiiPbPi, @function
_Z34__device_stub__Z11get_num_mstiPbPiiPbPi:
.LFB2063:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movl	%edi, 28(%rsp)
	leaq	48(%rsp), %rcx
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	40(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 80(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 88(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L36
	pushq	48(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z11get_num_mstiPbPi(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 144
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	96(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L36:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2063:
	.size	_Z34__device_stub__Z11get_num_mstiPbPiiPbPi, .-_Z34__device_stub__Z11get_num_mstiPbPiiPbPi
	.globl	_Z11get_num_mstiPbPi
	.type	_Z11get_num_mstiPbPi, @function
_Z11get_num_mstiPbPi:
.LFB2064:
	.cfi_startproc
	endbr64
	jmp	_Z34__device_stub__Z11get_num_mstiPbPiiPbPi
	.cfi_endproc
.LFE2064:
	.size	_Z11get_num_mstiPbPi, .-_Z11get_num_mstiPbPi
	.globl	_Z57__device_stub__Z15get_strut_edgesiPiP6b_edgeP10strut_edgeiPiP6b_edgeP10strut_edge
	.type	_Z57__device_stub__Z15get_strut_edgesiPiP6b_edgeP10strut_edgeiPiP6b_edgeP10strut_edge, @function
_Z57__device_stub__Z15get_strut_edgesiPiP6b_edgeP10strut_edgeiPiP6b_edgeP10strut_edge:
.LFB2065:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movl	%edi, 28(%rsp)
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rsp)
	leaq	40(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 72(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 80(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 88(%rsp)
	movq	%rsp, %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L41
	pushq	40(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z15get_strut_edgesiPiP6b_edgeP10strut_edge(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 144
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	88(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L41:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2065:
	.size	_Z57__device_stub__Z15get_strut_edgesiPiP6b_edgeP10strut_edgeiPiP6b_edgeP10strut_edge, .-_Z57__device_stub__Z15get_strut_edgesiPiP6b_edgeP10strut_edgeiPiP6b_edgeP10strut_edge
	.globl	_Z15get_strut_edgesiPiP6b_edgeP10strut_edge
	.type	_Z15get_strut_edgesiPiP6b_edgeP10strut_edge, @function
_Z15get_strut_edgesiPiP6b_edgeP10strut_edge:
.LFB2066:
	.cfi_startproc
	endbr64
	jmp	_Z57__device_stub__Z15get_strut_edgesiPiP6b_edgeP10strut_edgeiPiP6b_edgeP10strut_edge
	.cfi_endproc
.LFE2066:
	.size	_Z15get_strut_edgesiPiP6b_edgeP10strut_edge, .-_Z15get_strut_edgesiPiP6b_edgeP10strut_edge
	.globl	_Z48__device_stub__Z12strut_u_initiP14strut_u_vertexiP14strut_u_vertex
	.type	_Z48__device_stub__Z12strut_u_initiP14strut_u_vertexiP14strut_u_vertex, @function
_Z48__device_stub__Z12strut_u_initiP14strut_u_vertexiP14strut_u_vertex:
.LFB2067:
	.cfi_startproc
	endbr64
	subq	$88, %rsp
	.cfi_def_cfa_offset 96
	movl	%edi, 12(%rsp)
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	movq	%rsi, (%rsp)
	leaq	32(%rsp), %rdi
	leaq	44(%rsp), %rsi
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rax
	movl	$1, 40(%rsp)
	movq	%rax, 56(%rsp)
	movq	%rsp, %rax
	movq	%rax, 64(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 32(%rsp)
	movq	%rax, 44(%rsp)
	movl	$1, 52(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L46
	pushq	24(%rsp)
	.cfi_def_cfa_offset 104
	leaq	_Z12strut_u_initiP14strut_u_vertex(%rip), %rdi
	pushq	24(%rsp)
	.cfi_def_cfa_offset 112
	movq	60(%rsp), %rcx
	movl	68(%rsp), %r8d
	movq	48(%rsp), %rsi
	movl	56(%rsp), %edx
	leaq	72(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 104
	popq	%rdx
	.cfi_def_cfa_offset 96
.L46:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	je	.L48
	call	__stack_chk_fail@PLT
.L48:
	addq	$88, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2067:
	.size	_Z48__device_stub__Z12strut_u_initiP14strut_u_vertexiP14strut_u_vertex, .-_Z48__device_stub__Z12strut_u_initiP14strut_u_vertexiP14strut_u_vertex
	.globl	_Z12strut_u_initiP14strut_u_vertex
	.type	_Z12strut_u_initiP14strut_u_vertex, @function
_Z12strut_u_initiP14strut_u_vertex:
.LFB2068:
	.cfi_startproc
	endbr64
	jmp	_Z48__device_stub__Z12strut_u_initiP14strut_u_vertexiP14strut_u_vertex
	.cfi_endproc
.LFE2068:
	.size	_Z12strut_u_initiP14strut_u_vertex, .-_Z12strut_u_initiP14strut_u_vertex
	.globl	_Z67__device_stub__Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertexiP10strut_edgeP14strut_u_vertex
	.type	_Z67__device_stub__Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertexiP10strut_edgeP14strut_u_vertex, @function
_Z67__device_stub__Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertexiP10strut_edgeP14strut_u_vertex:
.LFB2069:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movl	%edi, 28(%rsp)
	leaq	48(%rsp), %rcx
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	40(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 80(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 88(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L51
	pushq	48(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 144
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	96(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L51:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L53
	call	__stack_chk_fail@PLT
.L53:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2069:
	.size	_Z67__device_stub__Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertexiP10strut_edgeP14strut_u_vertex, .-_Z67__device_stub__Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertexiP10strut_edgeP14strut_u_vertex
	.globl	_Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex
	.type	_Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex, @function
_Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex:
.LFB2070:
	.cfi_startproc
	endbr64
	jmp	_Z67__device_stub__Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertexiP10strut_edgeP14strut_u_vertex
	.cfi_endproc
.LFE2070:
	.size	_Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex, .-_Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex
	.globl	_Z64__device_stub__Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertexiP6b_edgeP14strut_u_vertex
	.type	_Z64__device_stub__Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertexiP6b_edgeP14strut_u_vertex, @function
_Z64__device_stub__Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertexiP6b_edgeP14strut_u_vertex:
.LFB2071:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movl	%edi, 28(%rsp)
	leaq	48(%rsp), %rcx
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	40(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 80(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 88(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L56
	pushq	48(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 144
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	96(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L56:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L58
	call	__stack_chk_fail@PLT
.L58:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2071:
	.size	_Z64__device_stub__Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertexiP6b_edgeP14strut_u_vertex, .-_Z64__device_stub__Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertexiP6b_edgeP14strut_u_vertex
	.globl	_Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex
	.type	_Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex, @function
_Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex:
.LFB2072:
	.cfi_startproc
	endbr64
	jmp	_Z64__device_stub__Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertexiP6b_edgeP14strut_u_vertex
	.cfi_endproc
.LFE2072:
	.size	_Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex, .-_Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex
	.globl	_Z55__device_stub__Z17get_zero_diff_numiP14strut_u_vertexPiiP14strut_u_vertexPi
	.type	_Z55__device_stub__Z17get_zero_diff_numiP14strut_u_vertexPiiP14strut_u_vertexPi, @function
_Z55__device_stub__Z17get_zero_diff_numiP14strut_u_vertexPiiP14strut_u_vertexPi:
.LFB2073:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movl	%edi, 28(%rsp)
	leaq	48(%rsp), %rcx
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	40(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 80(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 88(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L61
	pushq	48(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z17get_zero_diff_numiP14strut_u_vertexPi(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 144
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	96(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L61:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L63
	call	__stack_chk_fail@PLT
.L63:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2073:
	.size	_Z55__device_stub__Z17get_zero_diff_numiP14strut_u_vertexPiiP14strut_u_vertexPi, .-_Z55__device_stub__Z17get_zero_diff_numiP14strut_u_vertexPiiP14strut_u_vertexPi
	.globl	_Z17get_zero_diff_numiP14strut_u_vertexPi
	.type	_Z17get_zero_diff_numiP14strut_u_vertexPi, @function
_Z17get_zero_diff_numiP14strut_u_vertexPi:
.LFB2074:
	.cfi_startproc
	endbr64
	jmp	_Z55__device_stub__Z17get_zero_diff_numiP14strut_u_vertexPiiP14strut_u_vertexPi
	.cfi_endproc
.LFE2074:
	.size	_Z17get_zero_diff_numiP14strut_u_vertexPi, .-_Z17get_zero_diff_numiP14strut_u_vertexPi
	.globl	_Z40__device_stub__Z19super_vertices_initiPiiPi
	.type	_Z40__device_stub__Z19super_vertices_initiPiiPi, @function
_Z40__device_stub__Z19super_vertices_initiPiiPi:
.LFB2075:
	.cfi_startproc
	endbr64
	subq	$88, %rsp
	.cfi_def_cfa_offset 96
	movl	%edi, 12(%rsp)
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	movq	%rsi, (%rsp)
	leaq	32(%rsp), %rdi
	leaq	44(%rsp), %rsi
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rax
	movl	$1, 40(%rsp)
	movq	%rax, 56(%rsp)
	movq	%rsp, %rax
	movq	%rax, 64(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 32(%rsp)
	movq	%rax, 44(%rsp)
	movl	$1, 52(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L66
	pushq	24(%rsp)
	.cfi_def_cfa_offset 104
	leaq	_Z19super_vertices_initiPi(%rip), %rdi
	pushq	24(%rsp)
	.cfi_def_cfa_offset 112
	movq	60(%rsp), %rcx
	movl	68(%rsp), %r8d
	movq	48(%rsp), %rsi
	movl	56(%rsp), %edx
	leaq	72(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 104
	popq	%rdx
	.cfi_def_cfa_offset 96
.L66:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	je	.L68
	call	__stack_chk_fail@PLT
.L68:
	addq	$88, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2075:
	.size	_Z40__device_stub__Z19super_vertices_initiPiiPi, .-_Z40__device_stub__Z19super_vertices_initiPiiPi
	.globl	_Z19super_vertices_initiPi
	.type	_Z19super_vertices_initiPi, @function
_Z19super_vertices_initiPi:
.LFB2076:
	.cfi_startproc
	endbr64
	jmp	_Z40__device_stub__Z19super_vertices_initiPiiPi
	.cfi_endproc
.LFE2076:
	.size	_Z19super_vertices_initiPi, .-_Z19super_vertices_initiPi
	.globl	_Z61__device_stub__Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_iPiP14strut_u_vertexS_S_
	.type	_Z61__device_stub__Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_iPiP14strut_u_vertexS_S_, @function
_Z61__device_stub__Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_iPiP14strut_u_vertexS_S_:
.LFB2077:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movl	%edi, 44(%rsp)
	leaq	72(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	84(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	56(%rsp), %rdx
	movq	%rcx, 16(%rsp)
	leaq	64(%rsp), %rcx
	movq	%r8, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rax
	movl	$1, 80(%rsp)
	movq	%rax, 96(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 72(%rsp)
	movq	%rax, 84(%rsp)
	movl	$1, 92(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L71
	pushq	64(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_(%rip), %rdi
	pushq	64(%rsp)
	.cfi_def_cfa_offset 176
	movq	100(%rsp), %rcx
	movl	108(%rsp), %r8d
	movq	88(%rsp), %rsi
	movl	96(%rsp), %edx
	leaq	112(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L71:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L73
	call	__stack_chk_fail@PLT
.L73:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2077:
	.size	_Z61__device_stub__Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_iPiP14strut_u_vertexS_S_, .-_Z61__device_stub__Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_iPiP14strut_u_vertexS_S_
	.globl	_Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_
	.type	_Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_, @function
_Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_:
.LFB2078:
	.cfi_startproc
	endbr64
	jmp	_Z61__device_stub__Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_iPiP14strut_u_vertexS_S_
	.cfi_endproc
.LFE2078:
	.size	_Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_, .-_Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_
	.globl	_Z33__device_stub__Z10prefixCopyiPiS_iPiS_
	.type	_Z33__device_stub__Z10prefixCopyiPiS_iPiS_, @function
_Z33__device_stub__Z10prefixCopyiPiS_iPiS_:
.LFB2079:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movl	%edi, 28(%rsp)
	leaq	48(%rsp), %rcx
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	40(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 80(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 88(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L76
	pushq	48(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z10prefixCopyiPiS_(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 144
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	96(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L76:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L78
	call	__stack_chk_fail@PLT
.L78:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2079:
	.size	_Z33__device_stub__Z10prefixCopyiPiS_iPiS_, .-_Z33__device_stub__Z10prefixCopyiPiS_iPiS_
	.globl	_Z10prefixCopyiPiS_
	.type	_Z10prefixCopyiPiS_, @function
_Z10prefixCopyiPiS_:
.LFB2080:
	.cfi_startproc
	endbr64
	jmp	_Z33__device_stub__Z10prefixCopyiPiS_iPiS_
	.cfi_endproc
.LFE2080:
	.size	_Z10prefixCopyiPiS_, .-_Z10prefixCopyiPiS_
	.globl	_Z35__device_stub__Z12getPrefixSumPiS_iPiS_i
	.type	_Z35__device_stub__Z12getPrefixSumPiS_iPiS_i, @function
_Z35__device_stub__Z12getPrefixSumPiS_iPiS_i:
.LFB2081:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rcx
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 80(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 88(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L81
	pushq	48(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z12getPrefixSumPiS_i(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 144
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	96(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L81:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L83
	call	__stack_chk_fail@PLT
.L83:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2081:
	.size	_Z35__device_stub__Z12getPrefixSumPiS_iPiS_i, .-_Z35__device_stub__Z12getPrefixSumPiS_iPiS_i
	.globl	_Z12getPrefixSumPiS_i
	.type	_Z12getPrefixSumPiS_i, @function
_Z12getPrefixSumPiS_i:
.LFB2082:
	.cfi_startproc
	endbr64
	jmp	_Z35__device_stub__Z12getPrefixSumPiS_iPiS_i
	.cfi_endproc
.LFE2082:
	.size	_Z12getPrefixSumPiS_i, .-_Z12getPrefixSumPiS_i
	.globl	_Z68__device_stub__Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_iPiS_P14strut_u_vertexS_P6b_edgeS_
	.type	_Z68__device_stub__Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_iPiS_P14strut_u_vertexS_P6b_edgeS_, @function
_Z68__device_stub__Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_iPiS_P14strut_u_vertexS_P6b_edgeS_:
.LFB2083:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movq	192(%rsp), %rax
	movl	%edi, 60(%rsp)
	leaq	88(%rsp), %rdi
	movq	%rsi, 48(%rsp)
	leaq	100(%rsp), %rsi
	movq	%rdx, 40(%rsp)
	leaq	72(%rsp), %rdx
	movq	%rcx, 32(%rsp)
	leaq	80(%rsp), %rcx
	movq	%r8, 24(%rsp)
	movq	%r9, 16(%rsp)
	movq	%rax, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	60(%rsp), %rax
	movl	$1, 96(%rsp)
	movq	%rax, 112(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 88(%rsp)
	movq	%rax, 100(%rsp)
	movl	$1, 108(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L86
	pushq	80(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_(%rip), %rdi
	pushq	80(%rsp)
	.cfi_def_cfa_offset 208
	movq	116(%rsp), %rcx
	movl	124(%rsp), %r8d
	movq	104(%rsp), %rsi
	movl	112(%rsp), %edx
	leaq	128(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L86:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L88
	call	__stack_chk_fail@PLT
.L88:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2083:
	.size	_Z68__device_stub__Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_iPiS_P14strut_u_vertexS_P6b_edgeS_, .-_Z68__device_stub__Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_iPiS_P14strut_u_vertexS_P6b_edgeS_
	.globl	_Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_
	.type	_Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_, @function
_Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_:
.LFB2084:
	.cfi_startproc
	endbr64
	jmp	_Z68__device_stub__Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_iPiS_P14strut_u_vertexS_P6b_edgeS_
	.cfi_endproc
.LFE2084:
	.size	_Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_, .-_Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_
	.section	.rodata.str1.1
.LC2:
	.string	"mst: incorrect formatting\n"
.LC3:
	.string	"Valid input: mst.out <Input file name> <Output file name>\n"
.LC4:
	.string	"w+"
.LC5:
	.string	"Input Graph\nVertices: %d Edges: %d\n"
.LC6:
	.string	"MST Edges:\n"
.LC7:
	.string	"index: %d - v: %d  u: %d  weight: %d\n"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB2027:
	.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	$344, %rsp
	.cfi_def_cfa_offset 400
	movq	%rsi, 88(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 328(%rsp)
	xorl	%eax, %eax
	cmpl	$3, %edi
	je	.L92
	leaq	.LC2(%rip), %rsi
	movl	$2, %edi
	call	__printf_chk@PLT
	leaq	.LC3(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L93
.L92:
	movq	88(%rsp), %rax
	leaq	232(%rsp), %rdi
	movq	8(%rax), %rsi
	call	_Z9get_graphP5graphPc
	movl	236(%rsp), %eax
	leaq	264(%rsp), %rdi
	movl	%eax, 56(%rsp)
	movslq	56(%rsp), %rbp
	movl	%eax, 248(%rsp)
	movl	232(%rsp), %eax
	salq	$3, %rbp
	leal	(%rax,%rax), %ebx
	movq	%rbp, %rsi
	movl	%eax, 4(%rsp)
	movl	%eax, 252(%rsp)
	movl	%ebx, 256(%rsp)
	call	cudaMalloc@PLT
	movslq	252(%rsp), %rsi
	leaq	272(%rsp), %rdi
	salq	$2, %rsi
	call	cudaMalloc@PLT
	movslq	256(%rsp), %rsi
	leaq	280(%rsp), %rdi
	salq	$4, %rsi
	call	cudaMalloc@PLT
	movslq	4(%rsp), %rax
	xorl	%edi, %edi
	movq	%rdi, 96(%rsp)
	leaq	96(%rsp), %rdi
	imulq	$12, %rax, %r12
	movq	%rax, 16(%rsp)
	movq	%r12, %rsi
	call	cudaMalloc@PLT
	movq	240(%rsp), %rax
	movq	96(%rsp), %rdi
	movq	%r12, %rdx
	movl	$1, %ecx
	movq	%rax, %rsi
	movq	%rax, 32(%rsp)
	call	cudaMemcpy@PLT
	movl	4(%rsp), %eax
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$64, %esi
	movl	$67108865, %ecx
	movl	$1, 296(%rsp)
	addl	$63, %eax
	salq	$6, %rcx
	cltd
	movq	%rcx, 288(%rsp)
	idivl	%esi
	movq	%rcx, %rdx
	movl	$1, %ecx
	movl	%eax, 220(%rsp)
	movl	%eax, 60(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 224(%rsp)
	movq	220(%rsp), %rdi
	movl	228(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L94
	movq	280(%rsp), %r9
	movq	272(%rsp), %r8
	movq	264(%rsp), %rcx
	movq	96(%rsp), %rdx
	movl	56(%rsp), %esi
	movl	4(%rsp), %edi
	call	_Z79__device_stub__Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edgeiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge
.L94:
	movq	%rbp, %rdi
	movslq	%ebx, %rbx
	call	malloc@PLT
	salq	$4, %rbx
	movq	%rax, %r14
	movq	16(%rsp), %rax
	leaq	0(,%rax,4), %r15
	movq	%r15, %rdi
	call	malloc@PLT
	movq	%rbx, %rdi
	movq	%rax, %r13
	call	malloc@PLT
	movl	$2, %ecx
	movq	%rbp, %rdx
	movq	%r14, %rdi
	movq	264(%rsp), %rsi
	movq	%rax, %r12
	call	cudaMemcpy@PLT
	movl	$2, %ecx
	movq	%r15, %rdx
	movq	%r13, %rdi
	movq	272(%rsp), %rsi
	call	cudaMemcpy@PLT
	movl	$2, %ecx
	movq	%rbx, %rdx
	movq	%r12, %rdi
	movq	280(%rsp), %rsi
	call	cudaMemcpy@PLT
	movq	%r14, %rdi
	call	free@PLT
	movq	%r13, %rdi
	call	free@PLT
	movq	%r12, %rdi
	call	free@PLT
	movq	16(%rsp), %rdi
	xorl	%esi, %esi
	movq	%rsi, 104(%rsp)
	movq	%rsi, 112(%rsp)
	movq	%rsi, 120(%rsp)
	call	malloc@PLT
	movq	16(%rsp), %rsi
	leaq	120(%rsp), %rdi
	movq	%rax, 24(%rsp)
	call	cudaMalloc@PLT
	movl	60(%rsp), %eax
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$67108865, %edx
	movl	$1, %ecx
	movl	$1, 296(%rsp)
	movl	%eax, 220(%rsp)
	salq	$6, %rdx
	movabsq	$4294967297, %rax
	movq	%rax, 224(%rsp)
	movq	220(%rsp), %rdi
	movl	228(%rsp), %esi
	movq	%rdx, 288(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L95
	movq	120(%rsp), %rsi
	movl	4(%rsp), %edi
	call	_Z35__device_stub__Z14mst_edges_initiPbiPb
.L95:
	movl	$4, %edi
	movl	$67108865, %ebp
	call	malloc@PLT
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$4, %esi
	movl	%edx, (%rax)
	leaq	128(%rsp), %rdi
	salq	$6, %rbp
	movq	%rcx, 128(%rsp)
	movq	%rax, 8(%rsp)
	call	cudaMalloc@PLT
	movq	8(%rsp), %rsi
	movl	$1, %ecx
	movq	128(%rsp), %rdi
	movl	$4, %edx
	call	cudaMemcpy@PLT
	movl	$4, %edi
	call	malloc@PLT
	movq	%rax, %rbx
	movl	248(%rsp), %eax
	movl	%eax, (%rbx)
.L101:
	movl	56(%rsp), %eax
	leal	-1(%rax), %r12d
	movq	8(%rsp), %rax
	cmpl	%r12d, (%rax)
	jge	.L125
	movslq	(%rbx), %rsi
	leaq	104(%rsp), %rdi
	salq	$2, %rsi
	call	cudaMalloc@PLT
	movslq	(%rbx), %rsi
	leaq	112(%rsp), %rdi
	salq	$2, %rsi
	call	cudaMalloc@PLT
	movl	(%rbx), %eax
	movl	$64, %ecx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rbp, 288(%rsp)
	movl	$1, 296(%rsp)
	addl	$63, %eax
	cltd
	idivl	%ecx
	movq	%rbp, %rdx
	movl	$1, %ecx
	movl	%eax, 220(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 224(%rsp)
	movq	220(%rsp), %rdi
	movl	228(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L97
	movq	112(%rsp), %rdx
	movq	104(%rsp), %rsi
	movl	(%rbx), %edi
	call	_Z50__device_stub__Z27init_smallest_edges_weightsiPiS_iPiS_
.L97:
	movl	256(%rsp), %eax
	movl	$64, %ecx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rbp, 288(%rsp)
	movl	$1, 296(%rsp)
	addl	$63, %eax
	cltd
	idivl	%ecx
	movq	%rbp, %rdx
	movl	$1, %ecx
	movl	%eax, 220(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 224(%rsp)
	movq	220(%rsp), %rdi
	movl	228(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L98
	movq	112(%rsp), %r8
	movq	104(%rsp), %rcx
	movq	280(%rsp), %rdx
	movl	(%rbx), %esi
	movl	256(%rsp), %edi
	call	_Z51__device_stub__Z18get_smallest_edgesiiP6b_edgePiS1_iiP6b_edgePiS1_
.L98:
	movslq	(%rbx), %r13
	salq	$2, %r13
	movq	%r13, %rdi
	call	malloc@PLT
	movq	104(%rsp), %rsi
	movq	%r13, %rdx
	movl	$2, %ecx
	movq	%rax, %rdi
	movq	%rax, 64(%rsp)
	call	cudaMemcpy@PLT
	movslq	(%rbx), %r13
	salq	$2, %r13
	movq	%r13, %rdi
	call	malloc@PLT
	movq	112(%rsp), %rsi
	movl	$2, %ecx
	movq	%r13, %rdx
	movq	%rax, %rdi
	movq	%rax, 72(%rsp)
	call	cudaMemcpy@PLT
	movl	(%rbx), %eax
	movl	$64, %ecx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rbp, 288(%rsp)
	movl	$1, 296(%rsp)
	addl	$63, %eax
	cltd
	idivl	%ecx
	movq	%rbp, %rdx
	movl	$1, %ecx
	movl	%eax, 220(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 224(%rsp)
	movq	220(%rsp), %rdi
	movl	228(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L99
	movq	120(%rsp), %rcx
	movq	280(%rsp), %rdx
	movq	112(%rsp), %rsi
	movl	(%rbx), %edi
	call	_Z44__device_stub__Z13get_mst_edgesiPiP6b_edgePbiPiP6b_edgePb
.L99:
	movl	60(%rsp), %eax
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rbp, %rdx
	movl	$1, %ecx
	movq	%rbp, 288(%rsp)
	movl	%eax, 220(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 224(%rsp)
	movq	220(%rsp), %rdi
	movl	228(%rsp), %esi
	movl	$1, 296(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L100
	movq	128(%rsp), %rdx
	movq	120(%rsp), %rsi
	movl	4(%rsp), %edi
	call	_Z34__device_stub__Z11get_num_mstiPbPiiPbPi
.L100:
	movq	16(%rsp), %rdx
	movq	120(%rsp), %rsi
	movl	$2, %ecx
	movq	24(%rsp), %rdi
	call	cudaMemcpy@PLT
	movq	8(%rsp), %rdi
	movl	$2, %ecx
	movq	128(%rsp), %rsi
	movl	$4, %edx
	call	cudaMemcpy@PLT
	movq	8(%rsp), %rax
	cmpl	%r12d, (%rax)
	jge	.L101
	movslq	248(%rsp), %r13
	xorl	%eax, %eax
	leaq	136(%rsp), %rdi
	movl	252(%rsp), %r12d
	movq	%rax, 136(%rsp)
	movq	%r13, %r15
	imulq	$12, %r13, %r13
	movq	%r13, %rsi
	call	cudaMalloc@PLT
	movl	$64, %esi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	248(%rsp), %eax
	movl	$67108865, %ecx
	movl	$1, 296(%rsp)
	salq	$6, %rcx
	addl	$63, %eax
	movq	%rcx, 288(%rsp)
	cltd
	idivl	%esi
	movq	%rcx, %rdx
	movl	$1, %ecx
	movl	%eax, 220(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 224(%rsp)
	movq	220(%rsp), %rdi
	movl	228(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L102
	movq	136(%rsp), %rcx
	movq	280(%rsp), %rdx
	movq	112(%rsp), %rsi
	movl	248(%rsp), %edi
	call	_Z57__device_stub__Z15get_strut_edgesiPiP6b_edgeP10strut_edgeiPiP6b_edgeP10strut_edge
.L102:
	movq	%r13, %rdi
	movslq	%r12d, %r14
	call	malloc@PLT
	movq	136(%rsp), %rsi
	movq	%r13, %rdx
	movl	$2, %ecx
	movq	%rax, %rdi
	movq	%rax, 80(%rsp)
	call	cudaMemcpy@PLT
	xorl	%eax, %eax
	leaq	144(%rsp), %rdi
	movq	%rax, 144(%rsp)
	movq	%r14, %rax
	salq	$4, %rax
	movq	%rax, %rsi
	movq	%rax, 40(%rsp)
	call	cudaMalloc@PLT
	leal	63(%r12), %eax
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$64, %esi
	cltd
	movl	$67108865, %ecx
	movl	$1, 296(%rsp)
	idivl	%esi
	salq	$6, %rcx
	movq	%rcx, 288(%rsp)
	movq	%rcx, %rdx
	movl	$1, %ecx
	movl	%eax, 220(%rsp)
	movl	%eax, %r13d
	movabsq	$4294967297, %rax
	movq	%rax, 224(%rsp)
	movq	220(%rsp), %rdi
	movl	228(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L103
	movq	144(%rsp), %rsi
	movl	%r12d, %edi
	call	_Z48__device_stub__Z12strut_u_initiP14strut_u_vertexiP14strut_u_vertex
.L103:
	leal	63(%r15), %eax
	movl	$64, %esi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	cltd
	movl	$67108865, %ecx
	movl	$1, 296(%rsp)
	idivl	%esi
	salq	$6, %rcx
	movq	%rcx, 288(%rsp)
	movq	%rcx, %rdx
	movl	$1, %ecx
	movl	%eax, 220(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 224(%rsp)
	movq	220(%rsp), %rdi
	movl	228(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L104
	movq	144(%rsp), %rdx
	movq	136(%rsp), %rsi
	movl	%r15d, %edi
	call	_Z67__device_stub__Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertexiP10strut_edgeP14strut_u_vertex
.L104:
	movl	$64, %esi
	movl	$67108865, %ecx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	256(%rsp), %eax
	salq	$6, %rcx
	movl	$1, 296(%rsp)
	movq	%rcx, 288(%rsp)
	addl	$63, %eax
	cltd
	idivl	%esi
	movq	%rcx, %rdx
	movl	$1, %ecx
	movl	%eax, 220(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 224(%rsp)
	movq	220(%rsp), %rdi
	movl	228(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L105
	movq	144(%rsp), %rdx
	movq	280(%rsp), %rsi
	movl	256(%rsp), %edi
	call	_Z64__device_stub__Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertexiP6b_edgeP14strut_u_vertex
.L105:
	movq	40(%rsp), %rdi
	call	malloc@PLT
	movq	40(%rsp), %rdx
	movl	$2, %ecx
	movq	144(%rsp), %rsi
	movq	%rax, %rdi
	movq	%rax, 48(%rsp)
	call	cudaMemcpy@PLT
	xorl	%eax, %eax
	leaq	0(,%r14,4), %rsi
	leaq	152(%rsp), %rdi
	movq	%rax, 152(%rsp)
	call	cudaMalloc@PLT
	movl	$67108865, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movabsq	$4294967297, %rax
	salq	$6, %rdx
	movl	$1, %ecx
	movl	%r13d, 220(%rsp)
	movq	%rax, 224(%rsp)
	movq	220(%rsp), %rdi
	movl	228(%rsp), %esi
	movq	%rdx, 288(%rsp)
	movl	$1, 296(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L106
	movq	152(%rsp), %rdx
	movq	144(%rsp), %rsi
	movl	%r12d, %edi
	call	_Z55__device_stub__Z17get_zero_diff_numiP14strut_u_vertexPiiP14strut_u_vertexPi
.L106:
	movl	$4, %edi
	call	malloc@PLT
	movl	$2, %ecx
	movl	$4, %edx
	movq	152(%rsp), %rsi
	movq	%rax, %rdi
	movq	%rax, %r15
	call	cudaMemcpy@PLT
	movslq	248(%rsp), %rsi
	xorl	%eax, %eax
	leaq	160(%rsp), %rdi
	movq	%rax, 160(%rsp)
	salq	$2, %rsi
	call	cudaMalloc@PLT
	movl	$64, %esi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	248(%rsp), %eax
	movl	$67108865, %ecx
	movl	$1, 296(%rsp)
	salq	$6, %rcx
	addl	$63, %eax
	movq	%rcx, 288(%rsp)
	cltd
	idivl	%esi
	movq	%rcx, %rdx
	movl	$1, %ecx
	movl	%eax, 220(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 224(%rsp)
	movq	220(%rsp), %rdi
	movl	228(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L107
	movq	160(%rsp), %rsi
	movl	248(%rsp), %edi
	call	_Z40__device_stub__Z19super_vertices_initiPiiPi
.L107:
	movslq	248(%rsp), %r14
	salq	$2, %r14
	movq	%r14, %rdi
	call	malloc@PLT
	movq	160(%rsp), %rsi
	movl	$2, %ecx
	movq	%r14, %rdx
	movq	%rax, %rdi
	movq	%rax, %r13
	call	cudaMemcpy@PLT
	movq	48(%rsp), %rax
	xorl	%ecx, %ecx
.L108:
	cmpl	%ecx, %r12d
	jle	.L126
	cmpl	$0, (%rax)
	jle	.L109
	movslq	4(%rax), %rsi
	leaq	-4(%r13,%rsi,4), %rdi
	movq	%rsi, %rdx
	movslq	8(%rax), %rsi
	movl	(%rdi), %r8d
	leaq	-4(%r13,%rsi,4), %rsi
	cmpl	%r8d, %edx
	jle	.L110
	movl	%r8d, (%rsi)
	jmp	.L109
.L110:
	movl	%edx, (%rdi)
	movl	%edx, (%rsi)
.L109:
	incl	%ecx
	addq	$16, %rax
	jmp	.L108
.L126:
	movl	$1, %ecx
	movq	%r13, %rsi
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	movslq	248(%rsp), %rdx
	movq	160(%rsp), %rdi
	salq	$2, %rdx
	call	cudaMemcpy@PLT
	movl	(%r15), %eax
	leaq	168(%rsp), %rdi
	movl	$4, %esi
	movq	%r12, 168(%rsp)
	movl	%eax, 288(%rsp)
	call	cudaMalloc@PLT
	movslq	252(%rsp), %rsi
	leaq	176(%rsp), %rdi
	movq	%r14, 176(%rsp)
	salq	$2, %rsi
	call	cudaMalloc@PLT
	movl	$64, %esi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	252(%rsp), %eax
	movl	$67108865, %ecx
	movl	$1, 228(%rsp)
	salq	$6, %rcx
	addl	$63, %eax
	movq	%rcx, 220(%rsp)
	cltd
	idivl	%esi
	movq	%rcx, %rdx
	movl	$1, %ecx
	movl	%eax, 208(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 212(%rsp)
	movq	208(%rsp), %rdi
	movl	216(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L112
	movq	168(%rsp), %r8
	movq	176(%rsp), %rcx
	movq	144(%rsp), %rdx
	movq	160(%rsp), %rsi
	movl	252(%rsp), %edi
	call	_Z61__device_stub__Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_iPiP14strut_u_vertexS_S_
.L112:
	movq	168(%rsp), %rsi
	movl	$2, %ecx
	movl	$4, %edx
	leaq	292(%rsp), %rdi
	call	cudaMemcpy@PLT
	movslq	252(%rsp), %r12
	movl	292(%rsp), %eax
	salq	$2, %r12
	addl	%eax, %eax
	movq	%r12, %rdi
	movl	%eax, 296(%rsp)
	call	malloc@PLT
	movq	176(%rsp), %rsi
	movl	$2, %ecx
	movq	%r12, %rdx
	movq	%rax, %rdi
	movq	%rax, 40(%rsp)
	call	cudaMemcpy@PLT
	movslq	252(%rsp), %rsi
	xorl	%r11d, %r11d
	leaq	184(%rsp), %rdi
	movq	%r11, 184(%rsp)
	salq	$2, %rsi
	call	cudaMalloc@PLT
	movl	$64, %esi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	252(%rsp), %eax
	movl	$67108865, %ecx
	movl	$1, 228(%rsp)
	salq	$6, %rcx
	addl	$63, %eax
	movq	%rcx, 220(%rsp)
	cltd
	idivl	%esi
	movq	%rcx, %rdx
	movl	$1, %ecx
	movl	%eax, 208(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 212(%rsp)
	movq	208(%rsp), %rdi
	movl	216(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L113
	movq	184(%rsp), %rdx
	movq	176(%rsp), %rsi
	movl	252(%rsp), %edi
	call	_Z33__device_stub__Z10prefixCopyiPiS_iPiS_
.L113:
	movslq	252(%rsp), %rsi
	xorl	%r10d, %r10d
	leaq	192(%rsp), %rdi
	movl	$1, %r12d
	movq	%r10, 192(%rsp)
	movabsq	$4294967360, %r14
	salq	$2, %rsi
	call	cudaMalloc@PLT
.L114:
	movl	252(%rsp), %eax
	cmpl	%r12d, %eax
	jle	.L127
	addl	$63, %eax
	movl	$64, %ecx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	cltd
	movq	%r14, 220(%rsp)
	idivl	%ecx
	movl	$1, 228(%rsp)
	movq	%r14, %rdx
	movl	$1, %ecx
	movl	%eax, 208(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 212(%rsp)
	movq	208(%rsp), %rdi
	movl	216(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L115
	movq	192(%rsp), %rsi
	movq	184(%rsp), %rdi
	movl	%r12d, %edx
	call	_Z35__device_stub__Z12getPrefixSumPiS_iPiS_i
.L115:
	addl	%r12d, %r12d
	jmp	.L114
.L127:
	movslq	296(%rsp), %rsi
	leaq	320(%rsp), %rdi
	salq	$4, %rsi
	call	cudaMalloc@PLT
	xorl	%r9d, %r9d
	movl	$4, %esi
	leaq	200(%rsp), %rdi
	movq	%r9, 200(%rsp)
	call	cudaMalloc@PLT
	movl	$64, %esi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	252(%rsp), %eax
	movl	$67108865, %ecx
	movl	$1, 228(%rsp)
	salq	$6, %rcx
	addl	$63, %eax
	movq	%rcx, 220(%rsp)
	cltd
	idivl	%esi
	movq	%rcx, %rdx
	movl	$1, %ecx
	movl	%eax, 208(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 212(%rsp)
	movq	208(%rsp), %rdi
	movl	216(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L117
	pushq	%rsi
	.cfi_def_cfa_offset 408
	pushq	208(%rsp)
	.cfi_def_cfa_offset 416
	movq	336(%rsp), %r9
	movq	176(%rsp), %r8
	movq	160(%rsp), %rcx
	movq	200(%rsp), %rdx
	movq	192(%rsp), %rsi
	movl	268(%rsp), %edi
	call	_Z68__device_stub__Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_iPiS_P14strut_u_vertexS_P6b_edgeS_
	popq	%rdi
	.cfi_def_cfa_offset 408
	popq	%r8
	.cfi_def_cfa_offset 400
.L117:
	movq	200(%rsp), %rsi
	movl	$2, %ecx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	cudaMemcpy@PLT
	movslq	296(%rsp), %r14
	salq	$4, %r14
	movq	%r14, %rdi
	call	malloc@PLT
	movq	320(%rsp), %rsi
	movq	%r14, %rdx
	movl	$2, %ecx
	movq	%rax, %rdi
	movq	%rax, %r12
	call	cudaMemcpy@PLT
	movq	288(%rsp), %rax
	movq	280(%rsp), %rdi
	movq	%rax, 248(%rsp)
	movl	296(%rsp), %eax
	movl	%eax, 256(%rsp)
	call	cudaFree@PLT
	movslq	256(%rsp), %rsi
	leaq	280(%rsp), %rdi
	salq	$4, %rsi
	call	cudaMalloc@PLT
	movslq	256(%rsp), %rdx
	movl	$1, %ecx
	movq	%r12, %rsi
	movq	280(%rsp), %rdi
	salq	$4, %rdx
	call	cudaMemcpy@PLT
	movq	64(%rsp), %rdi
	call	free@PLT
	movq	72(%rsp), %rdi
	call	free@PLT
	movq	80(%rsp), %rdi
	call	free@PLT
	movq	48(%rsp), %rdi
	call	free@PLT
	movq	%r15, %rdi
	call	free@PLT
	movq	%r13, %rdi
	call	free@PLT
	movq	40(%rsp), %rdi
	call	free@PLT
	movq	192(%rsp), %rdi
	call	cudaFree@PLT
	movq	184(%rsp), %rdi
	call	cudaFree@PLT
	movq	176(%rsp), %rdi
	call	cudaFree@PLT
	movq	168(%rsp), %rdi
	call	cudaFree@PLT
	movq	200(%rsp), %rdi
	call	cudaFree@PLT
	movq	160(%rsp), %rdi
	call	cudaFree@PLT
	movq	152(%rsp), %rdi
	call	cudaFree@PLT
	movq	144(%rsp), %rdi
	call	cudaFree@PLT
	movq	168(%rsp), %rdi
	call	cudaFree@PLT
	movq	176(%rsp), %rdi
	call	cudaFree@PLT
	movq	136(%rsp), %rdi
	call	cudaFree@PLT
	movq	104(%rsp), %rdi
	call	cudaFree@PLT
	movq	112(%rsp), %rdi
	call	cudaFree@PLT
	jmp	.L101
.L125:
	movq	88(%rsp), %rax
	leaq	.LC4(%rip), %rsi
	xorl	%r13d, %r13d
	leaq	.LC7(%rip), %r12
	movq	16(%rax), %rdi
	call	fopen@PLT
	movl	4(%rsp), %r8d
	movl	56(%rsp), %ecx
	leaq	.LC5(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbp
	movl	$2, %esi
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
	movl	$2, %esi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	leaq	.LC6(%rip), %rdx
	call	__fprintf_chk@PLT
	movq	32(%rsp), %r14
.L119:
	cmpl	%r13d, 4(%rsp)
	jle	.L128
	movq	24(%rsp), %rax
	cmpb	$0, (%rax,%r13)
	je	.L120
	movl	4(%r14), %r9d
	pushq	%rax
	.cfi_def_cfa_offset 408
	movl	%r13d, %ecx
	movq	%r12, %rdx
	movl	8(%r14), %eax
	movl	$2, %esi
	movq	%rbp, %rdi
	pushq	%rax
	.cfi_def_cfa_offset 416
	movl	(%r14), %r8d
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
	popq	%rdx
	.cfi_def_cfa_offset 408
	popq	%rcx
	.cfi_def_cfa_offset 400
.L120:
	incq	%r13
	addq	$12, %r14
	jmp	.L119
.L128:
	movq	%rbp, %rdi
	call	fclose@PLT
	movq	%rbx, %rdi
	call	free@PLT
	movq	32(%rsp), %rdi
	call	free@PLT
	movq	24(%rsp), %rdi
	call	free@PLT
	movq	8(%rsp), %rdi
	call	free@PLT
	movq	%rbx, %rdi
	call	free@PLT
	movq	128(%rsp), %rdi
	call	cudaFree@PLT
	movq	120(%rsp), %rdi
	call	cudaFree@PLT
	movq	24(%rsp), %rdi
	call	cudaFree@PLT
	movq	96(%rsp), %rdi
	call	cudaFree@PLT
	movq	264(%rsp), %rdi
	call	cudaFree@PLT
	movq	272(%rsp), %rdi
	call	cudaFree@PLT
	movq	280(%rsp), %rdi
	call	cudaFree@PLT
.L93:
	movq	328(%rsp), %rax
	subq	%fs:40, %rax
	je	.L122
	call	__stack_chk_fail@PLT
.L122:
	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
.LFE2027:
	.size	main, .-main
	.text
	.globl	_Z69__device_stub__Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPiiP10strut_edgeP14strut_u_vertexPi
	.type	_Z69__device_stub__Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPiiP10strut_edgeP14strut_u_vertexPi, @function
_Z69__device_stub__Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPiiP10strut_edgeP14strut_u_vertexPi:
.LFB2085:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movl	%edi, 28(%rsp)
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rsp)
	leaq	40(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 72(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 80(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 88(%rsp)
	movq	%rsp, %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L129
	pushq	40(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 144
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	88(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L129:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L131
	call	__stack_chk_fail@PLT
.L131:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2085:
	.size	_Z69__device_stub__Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPiiP10strut_edgeP14strut_u_vertexPi, .-_Z69__device_stub__Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPiiP10strut_edgeP14strut_u_vertexPi
	.globl	_Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi
	.type	_Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi, @function
_Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi:
.LFB2086:
	.cfi_startproc
	endbr64
	jmp	_Z69__device_stub__Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPiiP10strut_edgeP14strut_u_vertexPi
	.cfi_endproc
.LFE2086:
	.size	_Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi, .-_Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi
	.section	.rodata.str1.1
.LC8:
	.string	"_Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi"
.LC9:
	.string	"_Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_"
.LC10:
	.string	"_Z12getPrefixSumPiS_i"
.LC11:
	.string	"_Z10prefixCopyiPiS_"
.LC12:
	.string	"_Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_"
.LC13:
	.string	"_Z19super_vertices_initiPi"
.LC14:
	.string	"_Z17get_zero_diff_numiP14strut_u_vertexPi"
.LC15:
	.string	"_Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex"
.LC16:
	.string	"_Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex"
.LC17:
	.string	"_Z12strut_u_initiP14strut_u_vertex"
.LC18:
	.string	"_Z15get_strut_edgesiPiP6b_edgeP10strut_edge"
.LC19:
	.string	"_Z11get_num_mstiPbPi"
.LC20:
	.string	"_Z13get_mst_edgesiPiP6b_edgePb"
.LC21:
	.string	"_Z14mst_edges_initiPb"
.LC22:
	.string	"_Z18get_smallest_edgesiiP6b_edgePiS1_"
.LC23:
	.string	"_Z27init_smallest_edges_weightsiPiS_"
.LC24:
	.string	"_Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2088:
	.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	.LC8(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi(%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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC9(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_(%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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC10(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z12getPrefixSumPiS_i(%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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC11(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z10prefixCopyiPiS_(%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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC12(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_(%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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC13(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z19super_vertices_initiPi(%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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC14(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z17get_zero_diff_numiP14strut_u_vertexPi(%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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC15(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex(%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
	leaq	.LC16(%rip), %rdx
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	_Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex(%rip), %rsi
	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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC17(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z12strut_u_initiP14strut_u_vertex(%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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC18(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z15get_strut_edgesiPiP6b_edgeP10strut_edge(%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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC19(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z11get_num_mstiPbPi(%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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC20(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z13get_mst_edgesiPiP6b_edgePb(%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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC21(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z14mst_edges_initiPb(%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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC22(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z18get_smallest_edgesiiP6b_edgePiS1_(%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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC23(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z27init_smallest_edges_weightsiPiS_(%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
	leaq	.LC24(%rip), %rdx
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	_Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.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
.LFE2088:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.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
	.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 <stdio.h>
#include <stdlib.h>
#include <stdbool.h>

#include <hip/hip_runtime.h>

#include <time.h>

#define THREADSPERBLOCK 64

// graph
struct edge{
	int v;
	int u;
	int weight;
};

struct graph{
	int num_edges;
	int num_vertices;
	struct edge* edges;
};

// bipartite graph
struct b_vertex_a{
	int v;
	int small_edge; // don't know what this is for
};

struct b_vertex_b{
	int e; // edge number
};

struct b_edge{
	int v;
	int u;
	int cv;
	int weight;
};

struct b_graph{
	int num_vertex_a;
	int num_vertex_b;
	int num_bipartite_edges;
	struct b_vertex_a* vertices_a;
	struct b_vertex_b* vertices_b; 
	struct b_edge* edges;
};

// strut
struct strut_edge{
    int v;
    int u; // edge number index
    int cv; // correspondent vertex
};

struct strut_u_vertex{ 
    int degree; // degree in struts
    int v1;
    int v2;
    int weight;
};

struct strut{
    int num_v; // num of bipartite vertices
    int num_u; // num of u vertices adjacent to strut edge
    int num_strut_edges; // same number as num_v
    struct strut_edge* edges; 
    struct strut_u_vertex* vertices_u; // u vertices - 0 value indicates not in strut, value > 0 indicates how many strut edges it is connected to
};

void get_graph(struct graph* og_graph, char* input);
__global__ void get_bipartite_graph(int num_edges, int num_vertices, struct edge* graphEdges, struct b_vertex_a* vetices_a, struct b_vertex_b* vetices_b, struct b_edge* bg_graphEdges) ;


__global__ void get_smallest_edges(int bp_num_edges, int num_smallest_edges, struct b_edge* bg_graphEdges, int* smallest_weights, int* smallest_edges);
__global__ void mst_edges_init(int og_num_edges, bool *mst_edges);
__global__ void get_mst_edges(int num_smallest_edges, int* smallest_edges, struct b_edge* bg_graphEdges, bool *mst_edges);
__global__ void get_num_mst(int og_num_edges, bool *mst_edges, int* num_mst);

// strut stuff
__global__ void get_strut_edges(int bg_num_vertices, int* smallest_edges, struct b_edge* bg_graphEdges, strut_edge* strut_edges);
__global__ void strut_u_init(int bg_num_vertex_b, struct strut_u_vertex* vertices_u);
__global__ void get_strut_u_degree(int num_strut_edges, strut_edge* strut_edges, struct strut_u_vertex* vertices_u);
__global__ void get_strut_u_vertices(int bg_num_edges, struct b_edge* bg_graphEdges, struct strut_u_vertex* vertices_u);
__global__ void get_zero_diff_num(int bg_num_vertex_b, struct strut_u_vertex* vertices_u, int* zero_diff_edges);

__global__ void super_vertices_init(int num_strut_vertices, int* super_vertices);
__global__ void get_new_bg_vertex_b(int num_bg_vertexb, int* super_vertices, struct strut_u_vertex* vertices_u, int* new_vertex_b, int* num_newbg_vertexb);

__global__ void prefixCopy(int prefixNum, int* old_prefix, int *new_prefix);
__global__ void getPrefixSum(int* entries, int* entriesC, int d);
__global__ void get_super_vertices(int num_strut_vertices, strut_edge* strut_edges, struct strut_u_vertex* vertices_u, int* super_vertices);
__global__ void get_new_bg_edges(int num_bg_vertex_b, int* new_bg_edges, int* prefixSum, struct strut_u_vertex* vertices_u, int* super_vertices, struct b_edge* bg_graphEdges, int * max_super_vertex);

__global__ void init_smallest_edges_weights(int num_edges, int *smallest_weights, int* smallest_edges);
/* NOTES: 
    - Remember to free all malloced and cuda malloced variables 
    - Comment out debugging statements
    - Output to file 
    - find sequential algorithm that outputs result in same way
    - compare results with that
    - Time the algorithm - put in output
    - documentation
        - read piazza and term project info for documentation
    - prep for presentation
    - submit on github - ask chonyang and email garg by thursday morning
*/

// driver
int main(int argc, char** argv){
	if(argc != 3){
		printf("mst: incorrect formatting\n");
		printf("Valid input: mst.out <Input file name> <Output file name>\n");
		return 0;
	}

	//***** ACQUIRE INPUT GRAPH *****//
	struct graph og_graph; // input
	get_graph(&og_graph, argv[1]);

	//debugging
	// printf("Graph:\n");
	// printf("vertices:%d edges:%d\n",og_graph.num_vertices, og_graph.num_edges);
	// for(int i = 0; i < og_graph.num_edges; i++){
	// 	printf("index:%d - %d   %d   %d\n", i, og_graph.edges[i].v, og_graph.edges[i].u, og_graph.edges[i].weight);
	// }

	//***** CREATE BIPARTITE GRAPH *****//
	struct b_graph bg_graph;
	bg_graph.num_vertex_a = og_graph.num_vertices;
	bg_graph.num_vertex_b = og_graph.num_edges;
	bg_graph.num_bipartite_edges = og_graph.num_edges * 2;

	// allocate GPU array
	hipMalloc((void**) &(bg_graph.vertices_a), bg_graph.num_vertex_a * sizeof(struct b_vertex_a));
	hipMalloc((void**) &(bg_graph.vertices_b), bg_graph.num_vertex_b * sizeof(struct b_vertex_b));
	hipMalloc((void**) &(bg_graph.edges), bg_graph.num_bipartite_edges * sizeof(struct b_edge));

	struct edge* d_og_edges = NULL;
	hipMalloc((void**) &(d_og_edges), og_graph.num_edges * sizeof(struct edge));
	hipMemcpy(d_og_edges, og_graph.edges, og_graph.num_edges*sizeof(struct edge), hipMemcpyHostToDevice);

	get_bipartite_graph<<<(og_graph.num_edges + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(og_graph.num_edges, og_graph.num_vertices, d_og_edges, bg_graph.vertices_a, bg_graph.vertices_b, bg_graph.edges);

	//    debugging
	struct b_graph debugging;
	debugging.num_vertex_a = og_graph.num_vertices;
	debugging.num_vertex_b = og_graph.num_edges;
	debugging.num_bipartite_edges = og_graph.num_edges * 2;

	debugging.vertices_a = (struct b_vertex_a*) malloc(debugging.num_vertex_a * sizeof(struct b_vertex_a));
	debugging.vertices_b = (struct b_vertex_b*) malloc(debugging.num_vertex_b * sizeof(struct b_vertex_b));
	debugging.edges = (struct b_edge*) malloc(debugging.num_bipartite_edges * sizeof(struct b_edge));

	hipMemcpy(debugging.vertices_a, bg_graph.vertices_a, debugging.num_vertex_a * sizeof(struct b_vertex_a), hipMemcpyDeviceToHost);
	hipMemcpy(debugging.vertices_b, bg_graph.vertices_b, debugging.num_vertex_b * sizeof(struct b_vertex_b), hipMemcpyDeviceToHost);
	hipMemcpy(debugging.edges, bg_graph.edges, debugging.num_bipartite_edges * sizeof(struct b_edge), hipMemcpyDeviceToHost);

	// printf("Bipartite Graph:\n");
	// printf("verticesA: %d, verticesB: %d, edges: %d\n", debugging.num_vertex_a, debugging.num_vertex_b, debugging.num_bipartite_edges);
	// for(int i = 0; i < debugging.num_bipartite_edges; i++){
	// 	printf("index: %d - %d   %d   %d   %d\n", i, debugging.edges[i].v, debugging.edges[i].u, debugging.edges[i].cv, debugging.edges[i].weight);
	// }
	free(debugging.vertices_a);
	free(debugging.vertices_b);
    free(debugging.edges);
    
	//***** SMALLEST EDGE WEIGHT EDGE FOR EACH VERTEX IN BG_GRAPH *****//
	int* smallest_weights = NULL;
	int* smallest_edges = NULL;

	
    //***** GET SOLUTION *****//
    bool* d_mst_edges = NULL;
    bool* mst_edges = NULL;
    mst_edges = (bool*) malloc(og_graph.num_edges * sizeof(bool));

    // don't malloc again for this variable
    hipMalloc((void**) &(d_mst_edges), og_graph.num_edges* sizeof(bool));
    
    mst_edges_init<<<(og_graph.num_edges + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(og_graph.num_edges, d_mst_edges);

    int * solution_size = (int*) malloc (sizeof(int));
    *solution_size = 0;
    int* d_solutionSize = NULL;
    hipMalloc((void**) &(d_solutionSize),sizeof(int));
    hipMemcpy(d_solutionSize, solution_size, sizeof(int), hipMemcpyHostToDevice);

    int* max_super_vertex = (int*) malloc (sizeof(int));
    *max_super_vertex = bg_graph.num_vertex_a;
    
    while(*solution_size <  (og_graph.num_vertices - 1)){
        // cudaMalloc((void**) &(smallest_weights), bg_graph.num_vertex_a * sizeof(int));
        // cudaMalloc((void**) &(smallest_edges), bg_graph.num_vertex_a * sizeof(int));
        //get_smallest_edges<<<(bg_graph.num_bipartite_edges + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(bg_graph.num_bipartite_edges, bg_graph.num_vertex_a, bg_graph.edges, smallest_weights, smallest_edges);
        hipMalloc((void**) &(smallest_weights), *max_super_vertex * sizeof(int));
        hipMalloc((void**) &(smallest_edges), *max_super_vertex * sizeof(int));
        init_smallest_edges_weights<<<(*max_super_vertex + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(*max_super_vertex, smallest_weights, smallest_edges);
        get_smallest_edges<<<(bg_graph.num_bipartite_edges + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(bg_graph.num_bipartite_edges,*max_super_vertex, bg_graph.edges, smallest_weights, smallest_edges);
    
        // debugging
        int* debug_smallest_weights = NULL;
        debug_smallest_weights = (int*) malloc(*max_super_vertex * sizeof(int));
        hipMemcpy(debug_smallest_weights, smallest_weights, *max_super_vertex * sizeof(int), hipMemcpyDeviceToHost);
    
        // for(int i = 0; i < *max_super_vertex; i++){
        //     printf("bg index of smallest weight: %d\n", debug_smallest_weights[i]);
        // }

        int* debug_smallest_edges = NULL;
        debug_smallest_edges = (int*) malloc(*max_super_vertex * sizeof(int));
        hipMemcpy(debug_smallest_edges, smallest_edges, *max_super_vertex * sizeof(int), hipMemcpyDeviceToHost);
    
        // for(int i = 0; i < *max_super_vertex; i++){
        //     printf("bg index of smallest edge: %d\n", debug_smallest_edges[i]);
        // }

        get_mst_edges<<<(*max_super_vertex + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(*max_super_vertex , smallest_edges, bg_graph.edges, d_mst_edges);
        
        get_num_mst<<<(og_graph.num_edges  + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(og_graph.num_edges , d_mst_edges, d_solutionSize);

        // debugging
        // printf("MST:\n");
        hipMemcpy(mst_edges, d_mst_edges, og_graph.num_edges * sizeof(bool), hipMemcpyDeviceToHost);
        // for(int i = 0; i < og_graph.num_edges; i++){
        //     if(mst_edges[i] == true){
        //         //printf("mst edges index: %d\n", i);
        //         printf("index: %d - %d   %d   %d\n", i, og_graph.edges[i].v, og_graph.edges[i].u, og_graph.edges[i].weight);
        //     }
        // }
        
        hipMemcpy(solution_size, d_solutionSize,  sizeof(int), hipMemcpyDeviceToHost);
        // printf("Num MST edges found: %d\n",*solution_size);
        
        if(*solution_size <  (og_graph.num_vertices - 1)){
            //***** GET STRUT *****//
            struct strut new_strut;
            new_strut.num_v = bg_graph.num_vertex_a;
            new_strut.num_u = bg_graph.num_vertex_b;
            new_strut.num_strut_edges = bg_graph.num_vertex_a;

            struct strut_edge* d_strut_edges = NULL; 
            
            hipMalloc((void**) &(d_strut_edges), new_strut.num_v * sizeof(struct strut_edge));
            get_strut_edges<<<((bg_graph.num_vertex_a) + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(bg_graph.num_vertex_a, smallest_edges, bg_graph.edges, d_strut_edges);

            // debugging
            struct strut_edge* strut_edges = (struct strut_edge* ) malloc(new_strut.num_v * sizeof(struct strut_edge));
            hipMemcpy(strut_edges, d_strut_edges, new_strut.num_v * sizeof(struct strut_edge), hipMemcpyDeviceToHost);
            // printf("STRUT EDGES:\n");
            // for(int i = 0; i < new_strut.num_v ; i++){
            //     printf("%d   %d   %d\n", strut_edges[i].v,strut_edges[i].u, strut_edges[i].cv);
            // }

            // getting strut_u
            struct strut_u_vertex* d_vertices_u = NULL;
            hipMalloc((void**) &(d_vertices_u), new_strut.num_u * sizeof(struct strut_u_vertex));
            strut_u_init<<<((new_strut.num_u) + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(new_strut.num_u, d_vertices_u);
            get_strut_u_degree<<<((new_strut.num_v) + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(new_strut.num_v, d_strut_edges, d_vertices_u);
        
            get_strut_u_vertices<<<((bg_graph.num_bipartite_edges) + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(bg_graph.num_bipartite_edges, bg_graph.edges, d_vertices_u);

            // debugging
            struct strut_u_vertex* vertices_u = (struct strut_u_vertex* ) malloc(new_strut.num_u * sizeof(struct strut_u_vertex));
            hipMemcpy(vertices_u, d_vertices_u, new_strut.num_u * sizeof(struct strut_u_vertex), hipMemcpyDeviceToHost);
            // printf("STRUT U VERTICES DEGREE:\n");
            // for(int i = 0; i < new_strut.num_u ; i++){
            //     printf("index: %d degree: %d v1: %d v2: %d\n",i, vertices_u[i].degree,  vertices_u[i].v1,  vertices_u[i].v2);
            // }

            /* ZERO DIFF */
            int* d_zero_diff_edges = NULL;
            hipMalloc((void**) &(d_zero_diff_edges), new_strut.num_u * sizeof(int));
            get_zero_diff_num<<<((new_strut.num_u) + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(new_strut.num_u, d_vertices_u, d_zero_diff_edges);

            // debugging
            int*zero_diff_edges = (int*) malloc (sizeof(int));
            hipMemcpy(zero_diff_edges, d_zero_diff_edges, sizeof(int), hipMemcpyDeviceToHost);
            // printf("zero diff edges: %d\n", *zero_diff_edges);

            // /*SUPER VERTEX*/
            int* d_super_vertices = NULL;
            hipMalloc((void**) &(d_super_vertices), bg_graph.num_vertex_a* sizeof(int));
            super_vertices_init<<<((bg_graph.num_vertex_a) + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(bg_graph.num_vertex_a, d_super_vertices);

            int* super_vertices = (int*) malloc(bg_graph.num_vertex_a* sizeof(int));
            hipMemcpy(super_vertices, d_super_vertices,bg_graph.num_vertex_a* sizeof(int), hipMemcpyDeviceToHost);

            for(int i = 0; i < new_strut.num_u ; i++){
                int super_vertex;
                if(vertices_u[i].degree > 0){ // if incident to strut edge
                    if(super_vertices[vertices_u[i].v1 - 1] < vertices_u[i].v1){
                        super_vertex = super_vertices[vertices_u[i].v1 - 1];
                        super_vertices[vertices_u[i].v1 - 1] = super_vertex;
                        super_vertices[vertices_u[i].v2 - 1] = super_vertex;
                    }
                    else{
                        super_vertex = vertices_u[i].v1;
                        super_vertices[vertices_u[i].v1 - 1] = super_vertex;
                        super_vertices[vertices_u[i].v2 - 1] = super_vertex;
                    }
                }
            }

            hipMemcpy(d_super_vertices, super_vertices,bg_graph.num_vertex_a* sizeof(int), hipMemcpyHostToDevice);

            // debugging
            // printf("Supervertices\n:");
            // for(int i = 0; i < bg_graph.num_vertex_a ; i++){
            //     printf("vertex: %d supervertex: %d\n", i+1, super_vertices[i]);
            // }

            /******** CREATING NEW BIPARTITE GRAPH **********/
            struct b_graph new_bg_graph;
            new_bg_graph.num_vertex_a = *zero_diff_edges;
            
            int* new_num_vertex_b = NULL;
            hipMalloc((void**) &(new_num_vertex_b), sizeof(int));
            int* new_vertex_b = NULL;
            hipMalloc((void**) &(new_vertex_b), bg_graph.num_vertex_b * sizeof(int));
            get_new_bg_vertex_b<<<((bg_graph.num_vertex_b) + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(bg_graph.num_vertex_b, d_super_vertices,d_vertices_u, new_vertex_b, new_num_vertex_b);

            // num_vertex_b and num_bipartite edges
            hipMemcpy(&new_bg_graph.num_vertex_b, new_num_vertex_b, sizeof(int), hipMemcpyDeviceToHost);
            new_bg_graph.num_bipartite_edges = new_bg_graph.num_vertex_b * 2;
            
            // debugging 
            int* new_vertex_b_debug = (int*)malloc( bg_graph.num_vertex_b * sizeof(int));
            hipMemcpy(new_vertex_b_debug, new_vertex_b,  bg_graph.num_vertex_b * sizeof(int), hipMemcpyDeviceToHost);
            // printf("New Bipartie edges to choose:\n");
            // for(int i =0 ; i < bg_graph.num_vertex_b ; i++){
            //     printf("index: %d value: %d\n", i, new_vertex_b_debug[i]);
            // }
            // printf("New vertex b num: %d\n", new_bg_graph.num_vertex_b);

            int* prefixSum = NULL;
            hipMalloc((void**) &(prefixSum), bg_graph.num_vertex_b * sizeof(int));
            prefixCopy<<<((bg_graph.num_vertex_b) + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(bg_graph.num_vertex_b, new_vertex_b, prefixSum);

            //get index of bipartite edges
            int* d_prefix_helper = NULL;
            hipMalloc((void**) &(d_prefix_helper), bg_graph.num_vertex_b * sizeof(int));
            /* prefix sum belloch scan */
            int d = 1;
            while(d<bg_graph.num_vertex_b){
                getPrefixSum<<<(bg_graph.num_vertex_b + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(prefixSum, d_prefix_helper, d);
                d = 2*d;    
            }

            //debugging
            // printf("prefix sum:\n");
            // int* vertex_b_print = (int*) malloc( bg_graph.num_vertex_b * sizeof(int));
            // cudaMemcpy(vertex_b_print, prefixSum,  bg_graph.num_vertex_b * sizeof(int), cudaMemcpyDeviceToHost);
            // for(int i = 0; i <  bg_graph.num_vertex_b ; i++){
            //     printf("vertex: %d index: %d\n", i, vertex_b_print[i]);
            // }

            hipMalloc((void**) &(new_bg_graph.edges), new_bg_graph.num_bipartite_edges * sizeof(struct b_edge));

            int* d_max_super_vertex = NULL;
            hipMalloc((void**) &(d_max_super_vertex),sizeof(int));
            get_new_bg_edges<<<(bg_graph.num_vertex_b + THREADSPERBLOCK-1)/THREADSPERBLOCK, THREADSPERBLOCK>>>(bg_graph.num_vertex_b , new_vertex_b, prefixSum, d_vertices_u, d_super_vertices, new_bg_graph.edges, d_max_super_vertex);
            hipMemcpy(max_super_vertex, d_max_super_vertex, sizeof(int), hipMemcpyDeviceToHost);

            // debugging
            debugging.num_vertex_a = new_bg_graph.num_vertex_a;
            debugging.num_vertex_b = new_bg_graph.num_vertex_b;
            debugging.num_bipartite_edges = new_bg_graph.num_bipartite_edges ;
            
            debugging.edges = (struct b_edge*) malloc(new_bg_graph.num_bipartite_edges * sizeof(struct b_edge));
            hipMemcpy(debugging.edges, new_bg_graph.edges, new_bg_graph.num_bipartite_edges * sizeof(struct b_edge), hipMemcpyDeviceToHost);

            // printf("New Bipartite Graph:\n");
            // printf("verticesA: %d, verticesB: %d, edges: %d\n", debugging.num_vertex_a, debugging.num_vertex_b, debugging.num_bipartite_edges);
            // for(int i = 0; i < debugging.num_bipartite_edges; i++){
            //     printf("index: %d - %d   %d   %d   %d\n", i, debugging.edges[i].v, debugging.edges[i].u, debugging.edges[i].cv, debugging.edges[i].weight);
            // }

            bg_graph.num_vertex_a = new_bg_graph.num_vertex_a;
            bg_graph.num_vertex_b = new_bg_graph.num_vertex_b;
            bg_graph.num_bipartite_edges = new_bg_graph.num_bipartite_edges;

            
            hipFree(bg_graph.edges);
            hipMalloc((void**) &(bg_graph.edges), bg_graph.num_bipartite_edges * sizeof(struct b_edge));
            hipMemcpy(bg_graph.edges, debugging.edges, bg_graph.num_bipartite_edges * sizeof(struct b_edge), hipMemcpyHostToDevice);

            free(debug_smallest_weights);
            free(debug_smallest_edges);
            free(strut_edges);
            free(vertices_u);
            free(zero_diff_edges);
            free(super_vertices);
            free(new_vertex_b_debug);
            
            hipFree(d_prefix_helper);
            hipFree(prefixSum);
            hipFree(new_vertex_b);
            hipFree(new_num_vertex_b);
            hipFree(d_max_super_vertex);
            hipFree(d_super_vertices);
            hipFree(d_zero_diff_edges);
            hipFree(d_vertices_u);
            hipFree(new_num_vertex_b);
            hipFree(new_vertex_b);
            hipFree(d_strut_edges);
            hipFree(smallest_weights);
            hipFree(smallest_edges);
        }
    }

    //printf("done with loop\n");
    /*end of while loop*/
    FILE *file;
    file = fopen(argv[argc-1],"w+");
    fprintf(file,"Input Graph\nVertices: %d Edges: %d\n", og_graph.num_vertices, og_graph.num_edges);
    fprintf(file, "MST Edges:\n");
    for(int i = 0; i < og_graph.num_edges; i++){
        if(mst_edges[i] == true){
            fprintf(file, "index: %d - v: %d  u: %d  weight: %d\n", i, og_graph.edges[i].v, og_graph.edges[i].u, og_graph.edges[i].weight);
        }
    }
    fclose(file);

    // malloc frees
    free(max_super_vertex);
    free(og_graph.edges);
    free(mst_edges);
    free(solution_size);
    free(max_super_vertex);
    

    // cuda malloc frees
    hipFree(d_solutionSize);
    hipFree(d_mst_edges);
    hipFree(mst_edges);
	hipFree(d_og_edges);
	hipFree(bg_graph.vertices_a);
	hipFree(bg_graph.vertices_b);
	hipFree(bg_graph.edges);
}

void get_graph(struct graph* og_graph, char* input){
	FILE *file;
	char buff[255];
	int num_vertices;
	int num_edges;

	file = fopen(input , "r");
    if(file == NULL){
        perror(input);
        exit(1);
    }
    else{
    	fscanf(file, "%s", buff);
    	num_vertices = atoi(buff);

    	fscanf(file, "%s", buff);
    	num_edges = atoi(buff);

    	(*og_graph).num_edges = num_edges;
    	(*og_graph).num_vertices = num_vertices;
    	(*og_graph).edges = (struct edge*) malloc(sizeof(struct edge) * num_edges);

    	for(int i = 0; i < num_edges; i++){
			fscanf(file, "%s", buff);
			(*og_graph).edges[i].v = atoi(buff);

			fscanf(file, "%s", buff);
			(*og_graph).edges[i].u = atoi(buff);

			fscanf(file, "%s", buff);
			(*og_graph).edges[i].weight = atoi(buff);
    	}
    }
    fclose(file);
}


__global__ void get_bipartite_graph(int num_edges, int num_vertices, struct edge* graphEdges, struct b_vertex_a* vertices_a, struct b_vertex_b* vertices_b, struct b_edge* bg_graphEdges) {
    int edge = threadIdx.x + blockIdx.x * blockDim.x;

    if(edge < num_edges){
    	// acquire two bipartite edges for each orginal graph edge
    	bg_graphEdges[2*edge].v = graphEdges[edge].v;
    	bg_graphEdges[2*edge].u = edge;
    	bg_graphEdges[2*edge].cv = 2*edge+1; // corresponding edge/vertex
    	bg_graphEdges[2*edge].weight = graphEdges[edge].weight;

    	bg_graphEdges[2*edge+1].v = graphEdges[edge].u;
    	bg_graphEdges[2*edge+1].u = edge;
    	bg_graphEdges[2*edge+1].cv = 2*edge; // corresponding edge/vertex
    	bg_graphEdges[2*edge+1].weight = graphEdges[edge].weight;

    	vertices_b[edge].e = edge;
    	if(edge < num_vertices)
    		vertices_a[edge].v = edge;
    }
}

__global__ void init_smallest_edges_weights(int num_edges, int *smallest_weights, int* smallest_edges){
    int edge = threadIdx.x + blockIdx.x * blockDim.x;
    if(edge < num_edges){
        smallest_weights[edge] = -1;
        smallest_edges[edge] = -1;
    }
}

// fills in smallest edges array with the index of smallest bipartite edges for each vertex (index of smallest_edges corresponds to vertex number) in graph
__global__ void get_smallest_edges(int bp_num_edges, int num_smallest_edges, struct b_edge* bg_graphEdges, int* smallest_weights, int* smallest_edges){
    int edge = threadIdx.x + blockIdx.x * blockDim.x;
    if(edge< bp_num_edges){
        int index = bg_graphEdges[edge].v - 1;
        // smallest_weights[index] = bg_graphEdges[edge].weight; // filler weight to compare with
        smallest_weights[index] = INT_MAX;
        __syncthreads(); // acquire all smallest weights
        atomicMin(&(smallest_weights[index]), bg_graphEdges[edge].weight); // save actual smallest weight

        __syncthreads(); // acquire all smallest weights

        smallest_edges[index] = bp_num_edges - 1; // filler edge number to comapre with, max edge
        // if(edge < num_smallest_edges){
        //     if(edge != index){
        //         smallest_weights[index] = -1;
        //         smallest_edges[index] = -1;
        //     }
        // }
        __syncthreads(); // acquire all smallest edges

        if(bg_graphEdges[edge].weight == smallest_weights[index]) // save smallest edge if the the bg edge has same weight as smallest weight
			//atomicMin(&(smallest_edges[index]), bg_graphEdges[edge].u);
			atomicMin(&(smallest_edges[index]), edge);
    }
}

// flags all edges to false
__global__ void mst_edges_init(int og_num_edges, bool *mst_edges){
    int edge = threadIdx.x + blockIdx.x * blockDim.x;
    if(edge < og_num_edges){
        mst_edges[edge] = false;
    }
}

// sets which edges go in mst
__global__ void get_mst_edges(int num_smallest_edges, int* smallest_edges, struct b_edge* bg_graphEdges, bool *mst_edges){
    int edge = threadIdx.x + blockIdx.x * blockDim.x;
    int bg_index;
    int vertex;
    if(edge < num_smallest_edges){
        bg_index = smallest_edges[edge];
        if(bg_index != -1){
            vertex = bg_graphEdges[bg_index].u;
            mst_edges[vertex] = true;
        }
    }
}

// gets num of mst edges in solution set
__global__ void get_num_mst(int og_num_edges, bool *mst_edges, int* num_mst){
    int edge = threadIdx.x + blockIdx.x * blockDim.x;
    if(edge < og_num_edges){
        *num_mst = 0; // reset
        __syncthreads();

        if(mst_edges[edge] == true)
            atomicAdd(num_mst, 1);
    }
}

// makes the strut edges
__global__ void get_strut_edges(int bg_num_vertices, int* smallest_edges, struct b_edge* bg_graphEdges, strut_edge* strut_edges){
    int bg_vertex = threadIdx.x + blockIdx.x * blockDim.x;
    
    if(bg_vertex < bg_num_vertices){
        strut_edges[bg_vertex].v = bg_vertex + 1; // vertex
        strut_edges[bg_vertex].u = bg_graphEdges[smallest_edges[bg_vertex]].u; // edge index (u vertex)
        strut_edges[bg_vertex].cv = bg_graphEdges[bg_graphEdges[smallest_edges[bg_vertex]].cv].v; // save vertex that is connected to same edge index (u vertex);
    }
}

// init strut u vertices degree
__global__ void strut_u_init(int bg_num_vertex_b, struct strut_u_vertex* vertices_u){
    int vertex_b = threadIdx.x + blockIdx.x * blockDim.x;
    if(vertex_b < bg_num_vertex_b)
        vertices_u[vertex_b].degree = 0;
}


// fill in degree of strut u vertices
__global__ void get_strut_u_degree(int num_strut_vertices, strut_edge* strut_edges, struct strut_u_vertex* vertices_u){
    int strut_edge = threadIdx.x + blockIdx.x * blockDim.x;

    if(strut_edge < num_strut_vertices){
        atomicAdd(&(vertices_u[strut_edges[strut_edge].u]).degree, 1);
    }
}

// fill in what vertices the vertices_u from the strut is connected
__global__ void get_strut_u_vertices(int bg_num_edges, struct b_edge* bg_graphEdges, struct strut_u_vertex* vertices_u){
    int bg_edge = threadIdx.x + blockIdx.x * blockDim.x;
    if(bg_edge < bg_num_edges){
        if(bg_edge%2 == 0){ // only even edges
            vertices_u[bg_graphEdges[bg_edge].u].v1 = bg_graphEdges[bg_edge].v;
            vertices_u[bg_graphEdges[bg_edge].u].v2 = bg_graphEdges[bg_graphEdges[bg_edge].cv].v;
            vertices_u[bg_graphEdges[bg_edge].u].weight =  bg_graphEdges[bg_edge].weight;
        }
    }

}

// get number of zero difference vertrices u in strut
__global__ void get_zero_diff_num(int bg_num_vertex_b, struct strut_u_vertex* vertices_u, int* zero_diff_edges){
    int vertex_b = threadIdx.x + blockIdx.x * blockDim.x;
    if(vertex_b < bg_num_vertex_b){
        if(vertices_u[vertex_b].degree == 2)
            atomicAdd(zero_diff_edges, 1);
    }
}

// initialize super vertices
__global__ void super_vertices_init(int num_strut_vertices, int* super_vertices){
    int vertex = threadIdx.x + blockIdx.x * blockDim.x; 
    if(vertex < num_strut_vertices){
        super_vertices[vertex] = vertex + 1;
    }
}

// set which verticies_u will be in new bipartitie graph and get how many there are 
__global__ void get_new_bg_vertex_b(int num_bg_vertexb, int* super_vertices, struct strut_u_vertex* vertices_u, int* new_vertex_b, int* num_newbg_vertexb){
    int vertex = threadIdx.x + blockIdx.x * blockDim.x; 
    if(vertex < num_bg_vertexb){
        new_vertex_b[vertex] = 0; // setting all to false
        __syncthreads();
        if(super_vertices[vertices_u[vertex].v1 - 1] != super_vertices[vertices_u[vertex].v2 - 1]){
            new_vertex_b[vertex] = 1; 
        }
        *num_newbg_vertexb = 0;
        __syncthreads();
        if(new_vertex_b[vertex] == 1)
            atomicAdd(num_newbg_vertexb, 1);
    }
}

// copy maker
__global__ void prefixCopy(int prefixNum, int* old_prefix, int *new_prefix){
    int index = threadIdx.x + blockIdx.x * blockDim.x;
    if(index < prefixNum){
        new_prefix[index] = old_prefix[index];
    }
}
__global__ void getPrefixSum(int* entries, int* entriesC, int d) {
    int index = threadIdx.x + blockIdx.x * blockDim.x;

    if(index >= d)
        entriesC[index] = entries[index - d];
    else
        entriesC[index] = 0;

    __syncthreads();

    entries[index] = entries[index] + entriesC[index];
}

// makes new bipartite edges
__global__ void get_new_bg_edges(int num_bg_vertex_b, int* new_bg_edges, int* prefixSum, struct strut_u_vertex* vertices_u, int* super_vertices, struct b_edge* bg_graphEdges, int * max_super_vertex){
    int index = threadIdx.x + blockIdx.x * blockDim.x;
    int edge1;
    int edge2;

    if(index < num_bg_vertex_b){
        if(new_bg_edges[index] == 1){
            edge1 = (prefixSum[index] - 1) * 2;
            edge2 = edge1+1;

            bg_graphEdges[edge1].v = super_vertices[vertices_u[index].v1-1];
            bg_graphEdges[edge1].u = index;
            bg_graphEdges[edge1].cv = edge2;
            bg_graphEdges[edge1].weight = vertices_u[index].weight;

            bg_graphEdges[edge2].v = super_vertices[vertices_u[index].v2-1];
            bg_graphEdges[edge2].u = index;
            bg_graphEdges[edge2].cv = edge1;
            bg_graphEdges[edge2].weight = vertices_u[index].weight;

            atomicMax(max_super_vertex, super_vertices[vertices_u[index].v1-1]);
            atomicMax(max_super_vertex, super_vertices[vertices_u[index].v2-1]);
        }
    }
}

// get what vertex each vertex is compacted to during compression of bipartite graph
__global__ void get_super_vertices(int num_strut_vertices, strut_edge* strut_edges, struct strut_u_vertex* vertices_u, int* super_vertices){
	int strut_edge = threadIdx.x + blockIdx.x * blockDim.x; 
    int cv;
    int min_cv;
    if(strut_edge < num_strut_vertices){
        min_cv = strut_edges[strut_edge].v;
        // cv = strut_edges[strut_edge].cv;
        // while(cv < min_cv){
		// 	min_cv = cv;
        //     cv = strut_edges[cv-1].cv;
        // }
        if(vertices_u[strut_edges[strut_edge].u].v1 == min_cv) 
            cv = vertices_u[strut_edges[strut_edge].u].v2;
        else
            cv = vertices_u[strut_edges[strut_edge].u].v1;
        while(cv < min_cv){
            min_cv = cv;
            if(vertices_u[strut_edges[strut_edge].u].v1 == min_cv)
                cv = vertices_u[strut_edges[cv-1].u].v2;
            else
                cv = vertices_u[strut_edges[cv-1].u].v1;
        }
        super_vertices[strut_edge] = min_cv;
    }
}
	.text
	.file	"mst.hip"
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
	.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	$344, %rsp                      # imm = 0x158
	.cfi_def_cfa_offset 400
	.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	$3, %edi
	jne	.LBB0_1
# %bb.2:
	movabsq	$4294967360, %rbp               # imm = 0x100000040
	movq	%rsi, 288(%rsp)                 # 8-byte Spill
	movq	8(%rsi), %rsi
	leaq	328(%rsp), %r12
	movq	%r12, %rdi
	callq	_Z9get_graphP5graphPc
	movslq	4(%r12), %r14
	leaq	40(%rsp), %rdi
	movl	%r14d, -16(%rdi)
	movslq	(%r12), %rbx
	movl	%ebx, %eax
	movq	%rax, 160(%rsp)                 # 8-byte Spill
	movl	%ebx, -12(%rdi)
	leaq	(%rbx,%rbx), %rax
	movq	%rax, 128(%rsp)                 # 8-byte Spill
	movl	%eax, -8(%rdi)
	movq	%r14, 152(%rsp)                 # 8-byte Spill
	shlq	$3, %r14
	movq	%r14, %rsi
	callq	hipMalloc
	leaq	48(%rsp), %rdi
	movslq	-20(%rdi), %rsi
	shlq	$2, %rsi
	callq	hipMalloc
	leaq	56(%rsp), %rdi
	movslq	-24(%rdi), %rsi
	shlq	$4, %rsi
	callq	hipMalloc
	leaq	240(%rsp), %r15
	movq	$0, (%r15)
	leaq	(,%rbx,4), %rax
	movq	%rax, 176(%rsp)                 # 8-byte Spill
	leaq	(%rax,%rax,2), %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	hipMalloc
	movq	(%r15), %rdi
	movq	8(%r12), %rsi
	movq	%rsi, 296(%rsp)                 # 8-byte Spill
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leal	63(%rbx), %eax
	movq	%rbx, 224(%rsp)                 # 8-byte Spill
	leal	126(%rbx), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$6, %ecx
	leaq	(%rcx,%rbp), %rdi
	addq	$-64, %rdi
	movq	%rdi, 216(%rsp)                 # 8-byte Spill
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_4
# %bb.3:
	movq	240(%rsp), %rdx
	movq	40(%rsp), %rcx
	movq	48(%rsp), %r8
	movq	56(%rsp), %r9
	movq	160(%rsp), %rdi                 # 8-byte Reload
                                        # kill: def $edi killed $edi killed $rdi
	movq	152(%rsp), %rsi                 # 8-byte Reload
                                        # kill: def $esi killed $esi killed $rsi
	callq	_Z34__device_stub__get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge
.LBB0_4:
	movq	%r14, %rdi
	callq	malloc
	movq	%rax, %rbx
	movq	176(%rsp), %r13                 # 8-byte Reload
	movq	%r13, %rdi
	callq	malloc
	movq	%rax, 168(%rsp)                 # 8-byte Spill
	movq	%r14, %r12
	movq	128(%rsp), %r14                 # 8-byte Reload
	shlq	$4, %r14
	movq	%r14, %rdi
	callq	malloc
	movq	%rax, %r15
	movq	40(%rsp), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	48(%rsp), %rsi
	movq	168(%rsp), %r12                 # 8-byte Reload
	movq	%r12, %rdi
	movq	%r13, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	56(%rsp), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	%rbx, %rdi
	callq	free
	movq	%r12, %rdi
	callq	free
	movq	%r15, %rdi
	callq	free
	xorl	%eax, %eax
	movq	%rax, 120(%rsp)
	movq	%rax, 80(%rsp)
	leaq	112(%rsp), %r14
	movq	%rax, (%r14)
	movq	224(%rsp), %rbx                 # 8-byte Reload
	movq	%rbx, %rdi
	callq	malloc
	movq	%rax, 232(%rsp)                 # 8-byte Spill
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	hipMalloc
	movq	216(%rsp), %r15                 # 8-byte Reload
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	movq	%rbx, %r14
	jne	.LBB0_6
# %bb.5:
	movq	112(%rsp), %rsi
	movl	%r14d, %edi
	callq	_Z29__device_stub__mst_edges_initiPb
.LBB0_6:
	movl	$4, %edi
	callq	malloc
	movq	%rax, %r12
	movl	$0, (%rax)
	leaq	192(%rsp), %rbx
	movq	$0, (%rbx)
	movl	$4, %esi
	movq	%rbx, %rdi
	callq	hipMalloc
	movq	(%rbx), %rdi
	movl	$4, %edx
	movq	%r12, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movl	$4, %edi
	callq	malloc
	movq	%rax, %r13
	movl	24(%rsp), %eax
	movl	%eax, (%r13)
	movq	152(%rsp), %rax                 # 8-byte Reload
	decl	%eax
	movl	%eax, 128(%rsp)                 # 4-byte Spill
	cmpl	%eax, (%r12)
	movq	%r12, 208(%rsp)                 # 8-byte Spill
	movq	%r13, 200(%rsp)                 # 8-byte Spill
	jge	.LBB0_48
.LBB0_7:                                # =>This Loop Header: Depth=1
                                        #     Child Loop BB0_30 Depth 2
                                        #     Child Loop BB0_41 Depth 2
	movslq	(%r13), %rsi
	shlq	$2, %rsi
	leaq	120(%rsp), %rdi
	callq	hipMalloc
	movslq	(%r13), %rsi
	shlq	$2, %rsi
	leaq	80(%rsp), %rdi
	callq	hipMalloc
	movl	(%r13), %eax
	leal	63(%rax), %ecx
	addl	$126, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$6, %eax
	leaq	(%rax,%rbp), %rdi
	addq	$-64, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_9
# %bb.8:                                #   in Loop: Header=BB0_7 Depth=1
	movl	(%r13), %edi
	movq	120(%rsp), %rsi
	movq	80(%rsp), %rdx
	callq	_Z42__device_stub__init_smallest_edges_weightsiPiS_
.LBB0_9:                                #   in Loop: Header=BB0_7 Depth=1
	movl	32(%rsp), %eax
	leal	63(%rax), %ecx
	addl	$126, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$6, %eax
	leaq	(%rax,%rbp), %rdi
	addq	$-64, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_11
# %bb.10:                               #   in Loop: Header=BB0_7 Depth=1
	movl	32(%rsp), %edi
	movl	(%r13), %esi
	movq	56(%rsp), %rdx
	movq	120(%rsp), %rcx
	movq	80(%rsp), %r8
	callq	_Z33__device_stub__get_smallest_edgesiiP6b_edgePiS1_
.LBB0_11:                               #   in Loop: Header=BB0_7 Depth=1
	movslq	(%r13), %rbx
	shlq	$2, %rbx
	movq	%rbx, %rdi
	callq	malloc
	movq	120(%rsp), %rsi
	movq	%rax, 176(%rsp)                 # 8-byte Spill
	movq	%rax, %rdi
	movq	%rbx, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movslq	(%r13), %rbx
	shlq	$2, %rbx
	movq	%rbx, %rdi
	callq	malloc
	movq	80(%rsp), %rsi
	movq	%rax, 168(%rsp)                 # 8-byte Spill
	movq	%rax, %rdi
	movq	%rbx, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movl	(%r13), %eax
	leal	63(%rax), %ecx
	addl	$126, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$6, %eax
	leaq	(%rax,%rbp), %rdi
	addq	$-64, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_13
# %bb.12:                               #   in Loop: Header=BB0_7 Depth=1
	movl	(%r13), %edi
	movq	80(%rsp), %rsi
	movq	56(%rsp), %rdx
	movq	112(%rsp), %rcx
	callq	_Z28__device_stub__get_mst_edgesiPiP6b_edgePb
.LBB0_13:                               #   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_15
# %bb.14:                               #   in Loop: Header=BB0_7 Depth=1
	movq	112(%rsp), %rsi
	movq	192(%rsp), %rdx
	movq	160(%rsp), %rdi                 # 8-byte Reload
                                        # kill: def $edi killed $edi killed $rdi
	callq	_Z26__device_stub__get_num_mstiPbPi
.LBB0_15:                               #   in Loop: Header=BB0_7 Depth=1
	movq	112(%rsp), %rsi
	movq	232(%rsp), %rdi                 # 8-byte Reload
	movq	%r14, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	192(%rsp), %rsi
	movl	$4, %edx
	movq	%r12, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movl	(%r12), %eax
	cmpl	128(%rsp), %eax                 # 4-byte Folded Reload
	jge	.LBB0_47
# %bb.16:                               #   in Loop: Header=BB0_7 Depth=1
	movslq	24(%rsp), %r14
	movslq	28(%rsp), %rbx
	movq	$0, 104(%rsp)
	leaq	(,%r14,4), %rax
	leaq	(%rax,%rax,2), %r15
	leaq	104(%rsp), %rdi
	movq	%r15, %rsi
	callq	hipMalloc
	movl	24(%rsp), %eax
	leal	63(%rax), %ecx
	addl	$126, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$6, %eax
	leaq	(%rax,%rbp), %rdi
	addq	$-64, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_18
# %bb.17:                               #   in Loop: Header=BB0_7 Depth=1
	movl	24(%rsp), %edi
	movq	80(%rsp), %rsi
	movq	56(%rsp), %rdx
	movq	104(%rsp), %rcx
	callq	_Z30__device_stub__get_strut_edgesiPiP6b_edgeP10strut_edge
.LBB0_18:                               #   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	callq	malloc
	movq	104(%rsp), %rsi
	movq	%rax, 320(%rsp)                 # 8-byte Spill
	movq	%rax, %rdi
	movq	%r15, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	$0, 16(%rsp)
	movq	%rbx, %r13
	shlq	$4, %r13
	leaq	16(%rsp), %rdi
	movq	%r13, %rsi
	callq	hipMalloc
	leal	63(%rbx), %eax
	leal	126(%rbx), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$6, %ecx
	leaq	(%rcx,%rbp), %r15
	addq	$-64, %r15
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_20
# %bb.19:                               #   in Loop: Header=BB0_7 Depth=1
	movq	16(%rsp), %rsi
	movl	%ebx, %edi
	callq	_Z27__device_stub__strut_u_initiP14strut_u_vertex
.LBB0_20:                               #   in Loop: Header=BB0_7 Depth=1
	leal	63(%r14), %eax
	leal	126(%r14), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$6, %ecx
	leaq	(%rcx,%rbp), %rdi
	addq	$-64, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_22
# %bb.21:                               #   in Loop: Header=BB0_7 Depth=1
	movq	104(%rsp), %rsi
	movq	16(%rsp), %rdx
	movl	%r14d, %edi
	callq	_Z33__device_stub__get_strut_u_degreeiP10strut_edgeP14strut_u_vertex
.LBB0_22:                               #   in Loop: Header=BB0_7 Depth=1
	movl	32(%rsp), %eax
	leal	63(%rax), %ecx
	addl	$126, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$6, %eax
	leaq	(%rax,%rbp), %rdi
	addq	$-64, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_24
# %bb.23:                               #   in Loop: Header=BB0_7 Depth=1
	movl	32(%rsp), %edi
	movq	56(%rsp), %rsi
	movq	16(%rsp), %rdx
	callq	_Z35__device_stub__get_strut_u_verticesiP6b_edgeP14strut_u_vertex
.LBB0_24:                               #   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	callq	malloc
	movq	%rax, %r12
	movq	16(%rsp), %rsi
	movq	%rax, %rdi
	movq	%r13, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	$0, 144(%rsp)
	leaq	(,%rbx,4), %rsi
	leaq	144(%rsp), %rdi
	callq	hipMalloc
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_26
# %bb.25:                               #   in Loop: Header=BB0_7 Depth=1
	movq	16(%rsp), %rsi
	movq	144(%rsp), %rdx
	movl	%ebx, %edi
	callq	_Z32__device_stub__get_zero_diff_numiP14strut_u_vertexPi
.LBB0_26:                               #   in Loop: Header=BB0_7 Depth=1
	movl	$4, %edi
	callq	malloc
	movq	%rax, %r14
	movq	144(%rsp), %rsi
	movl	$4, %edx
	movq	%rax, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movq	$0, 72(%rsp)
	movslq	24(%rsp), %rsi
	shlq	$2, %rsi
	leaq	72(%rsp), %rdi
	callq	hipMalloc
	movl	24(%rsp), %eax
	leal	63(%rax), %ecx
	addl	$126, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$6, %eax
	leaq	(%rax,%rbp), %rdi
	addq	$-64, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_28
# %bb.27:                               #   in Loop: Header=BB0_7 Depth=1
	movl	24(%rsp), %edi
	movq	72(%rsp), %rsi
	callq	_Z34__device_stub__super_vertices_initiPi
.LBB0_28:                               #   in Loop: Header=BB0_7 Depth=1
	movslq	24(%rsp), %r15
	shlq	$2, %r15
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, %r13
	movq	72(%rsp), %rsi
	movq	%rax, %rdi
	movq	%r15, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	testl	%ebx, %ebx
	jle	.LBB0_35
# %bb.29:                               # %.lr.ph.preheader
                                        #   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %eax
	shlq	$4, %rax
	xorl	%ecx, %ecx
.LBB0_30:                               # %.lr.ph
                                        #   Parent Loop BB0_7 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	cmpl	$0, (%r12,%rcx)
	jle	.LBB0_34
# %bb.31:                               #   in Loop: Header=BB0_30 Depth=2
	movl	4(%r12,%rcx), %edx
	movslq	%edx, %rdi
	movl	-4(%r13,%rdi,4), %esi
	cmpl	%edi, %esi
	jl	.LBB0_33
# %bb.32:                               #   in Loop: Header=BB0_30 Depth=2
	movl	%edi, -4(%r13,%rdi,4)
	movl	%edx, %esi
.LBB0_33:                               # %.sink.split
                                        #   in Loop: Header=BB0_30 Depth=2
	movslq	8(%r12,%rcx), %rdx
	movl	%esi, -4(%r13,%rdx,4)
.LBB0_34:                               #   in Loop: Header=BB0_30 Depth=2
	addq	$16, %rcx
	cmpq	%rcx, %rax
	jne	.LBB0_30
.LBB0_35:                               # %._crit_edge
                                        #   in Loop: Header=BB0_7 Depth=1
	movq	72(%rsp), %rdi
	movslq	24(%rsp), %rdx
	shlq	$2, %rdx
	movq	%r13, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movl	(%r14), %eax
	movl	%eax, 248(%rsp)
	xorl	%ebx, %ebx
	movq	%rbx, 96(%rsp)
	movl	$4, %esi
	leaq	96(%rsp), %rdi
	callq	hipMalloc
	movq	%rbx, 64(%rsp)
	movslq	28(%rsp), %rsi
	shlq	$2, %rsi
	leaq	64(%rsp), %rdi
	callq	hipMalloc
	movl	28(%rsp), %eax
	leal	63(%rax), %ecx
	addl	$126, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$6, %eax
	leaq	(%rax,%rbp), %rdi
	addq	$-64, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_37
# %bb.36:                               #   in Loop: Header=BB0_7 Depth=1
	movl	28(%rsp), %edi
	movq	72(%rsp), %rsi
	movq	16(%rsp), %rdx
	movq	64(%rsp), %rcx
	movq	96(%rsp), %r8
	callq	_Z34__device_stub__get_new_bg_vertex_biPiP14strut_u_vertexS_S_
.LBB0_37:                               #   in Loop: Header=BB0_7 Depth=1
	movq	96(%rsp), %rsi
	movl	$4, %edx
	leaq	252(%rsp), %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movl	252(%rsp), %eax
	addl	%eax, %eax
	movl	%eax, 256(%rsp)
	movslq	28(%rsp), %r15
	shlq	$2, %r15
	movq	%r15, %rdi
	callq	malloc
	movq	64(%rsp), %rsi
	movq	%rax, 304(%rsp)                 # 8-byte Spill
	movq	%rax, %rdi
	movq	%r15, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	$0, 88(%rsp)
	movslq	28(%rsp), %rsi
	shlq	$2, %rsi
	leaq	88(%rsp), %rdi
	callq	hipMalloc
	movl	28(%rsp), %eax
	leal	63(%rax), %ecx
	addl	$126, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$6, %eax
	leaq	(%rax,%rbp), %rdi
	addq	$-64, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_39
# %bb.38:                               #   in Loop: Header=BB0_7 Depth=1
	movl	28(%rsp), %edi
	movq	64(%rsp), %rsi
	movq	88(%rsp), %rdx
	callq	_Z25__device_stub__prefixCopyiPiS_
.LBB0_39:                               #   in Loop: Header=BB0_7 Depth=1
	movq	$0, 184(%rsp)
	movslq	28(%rsp), %rsi
	shlq	$2, %rsi
	leaq	184(%rsp), %rdi
	callq	hipMalloc
	movl	28(%rsp), %eax
	cmpl	$2, %eax
	jl	.LBB0_44
# %bb.40:                               # %.lr.ph299.preheader
                                        #   in Loop: Header=BB0_7 Depth=1
	movl	$1, %r15d
.LBB0_41:                               # %.lr.ph299
                                        #   Parent Loop BB0_7 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	leal	63(%rax), %ecx
	addl	$126, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$6, %eax
	leaq	(%rax,%rbp), %rdi
	addq	$-64, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_43
# %bb.42:                               #   in Loop: Header=BB0_41 Depth=2
	movq	88(%rsp), %rdi
	movq	184(%rsp), %rsi
	movl	%r15d, %edx
	callq	_Z27__device_stub__getPrefixSumPiS_i
.LBB0_43:                               #   in Loop: Header=BB0_41 Depth=2
	addl	%r15d, %r15d
	movl	28(%rsp), %eax
	cmpl	%eax, %r15d
	jl	.LBB0_41
.LBB0_44:                               # %._crit_edge300
                                        #   in Loop: Header=BB0_7 Depth=1
	movq	%r14, 312(%rsp)                 # 8-byte Spill
	movslq	256(%rsp), %rsi
	shlq	$4, %rsi
	leaq	280(%rsp), %rdi
	callq	hipMalloc
	movq	$0, 136(%rsp)
	movl	$4, %esi
	leaq	136(%rsp), %rdi
	callq	hipMalloc
	movl	28(%rsp), %eax
	leal	63(%rax), %ecx
	addl	$126, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$6, %eax
	leaq	(%rax,%rbp), %rdi
	addq	$-64, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_46
# %bb.45:                               #   in Loop: Header=BB0_7 Depth=1
	movl	28(%rsp), %edi
	movq	64(%rsp), %rsi
	movq	88(%rsp), %rdx
	movq	16(%rsp), %rcx
	movq	72(%rsp), %r8
	movq	280(%rsp), %r9
	movq	136(%rsp), %rax
	movq	%rax, (%rsp)
	callq	_Z31__device_stub__get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_
.LBB0_46:                               #   in Loop: Header=BB0_7 Depth=1
	movq	136(%rsp), %rsi
	movl	$4, %edx
	movq	200(%rsp), %rbx                 # 8-byte Reload
	movq	%rbx, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movslq	256(%rsp), %r14
	shlq	$4, %r14
	movq	%r14, %rdi
	callq	malloc
	movq	%rax, %r15
	movq	280(%rsp), %rsi
	movq	%rax, %rdi
	movq	%r14, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movl	248(%rsp), %eax
	movl	%eax, 24(%rsp)
	movq	252(%rsp), %rax
	movq	%rax, 28(%rsp)
	movq	56(%rsp), %rdi
	callq	hipFree
	movslq	32(%rsp), %rsi
	shlq	$4, %rsi
	leaq	56(%rsp), %rdi
	callq	hipMalloc
	movq	56(%rsp), %rdi
	movslq	32(%rsp), %rdx
	shlq	$4, %rdx
	movq	%r15, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	176(%rsp), %rdi                 # 8-byte Reload
	callq	free
	movq	168(%rsp), %rdi                 # 8-byte Reload
	callq	free
	movq	320(%rsp), %rdi                 # 8-byte Reload
	callq	free
	movq	%r12, %rdi
	callq	free
	movq	312(%rsp), %rdi                 # 8-byte Reload
	callq	free
	movq	%r13, %rdi
	movq	%rbx, %r13
	callq	free
	movq	304(%rsp), %rdi                 # 8-byte Reload
	callq	free
	movq	184(%rsp), %rdi
	callq	hipFree
	movq	88(%rsp), %rdi
	callq	hipFree
	movq	64(%rsp), %rdi
	callq	hipFree
	movq	96(%rsp), %rdi
	callq	hipFree
	movq	136(%rsp), %rdi
	callq	hipFree
	movq	72(%rsp), %rdi
	callq	hipFree
	movq	144(%rsp), %rdi
	callq	hipFree
	movq	16(%rsp), %rdi
	callq	hipFree
	movq	96(%rsp), %rdi
	callq	hipFree
	movq	64(%rsp), %rdi
	callq	hipFree
	movq	104(%rsp), %rdi
	callq	hipFree
	movq	120(%rsp), %rdi
	callq	hipFree
	movq	80(%rsp), %rdi
	callq	hipFree
	movq	208(%rsp), %r12                 # 8-byte Reload
	movl	(%r12), %eax
	movq	224(%rsp), %r14                 # 8-byte Reload
	movq	216(%rsp), %r15                 # 8-byte Reload
.LBB0_47:                               #   in Loop: Header=BB0_7 Depth=1
	cmpl	128(%rsp), %eax                 # 4-byte Folded Reload
	jl	.LBB0_7
.LBB0_48:                               # %._crit_edge303
	movq	288(%rsp), %rax                 # 8-byte Reload
	movq	16(%rax), %rdi
	movl	$.L.str.2, %esi
	callq	fopen
	movq	%rax, %rbx
	movl	$.L.str.3, %esi
	movq	%rax, %rdi
	movq	152(%rsp), %rdx                 # 8-byte Reload
                                        # kill: def $edx killed $edx killed $rdx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	fprintf
	movl	$.L.str.4, %edi
	movl	$11, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	fwrite@PLT
	movq	160(%rsp), %r12                 # 8-byte Reload
	testl	%r12d, %r12d
	movq	296(%rsp), %r13                 # 8-byte Reload
	movq	232(%rsp), %rbp                 # 8-byte Reload
	jle	.LBB0_53
# %bb.49:                               # %.lr.ph306
	leaq	8(%r13), %r15
	xorl	%r14d, %r14d
.LBB0_50:                               # =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rbp,%r14)
	je	.LBB0_52
# %bb.51:                               #   in Loop: Header=BB0_50 Depth=1
	movl	-8(%r15), %ecx
	movl	-4(%r15), %r8d
	movl	(%r15), %r9d
	movl	$.L.str.5, %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	fprintf
.LBB0_52:                               #   in Loop: Header=BB0_50 Depth=1
	incq	%r14
	addq	$12, %r15
	cmpq	%r14, %r12
	jne	.LBB0_50
.LBB0_53:                               # %._crit_edge307
	movq	%rbx, %rdi
	callq	fclose
	movq	200(%rsp), %rbx                 # 8-byte Reload
	movq	%rbx, %rdi
	callq	free
	movq	%r13, %rdi
	callq	free
	movq	%rbp, %rdi
	callq	free
	movq	208(%rsp), %rdi                 # 8-byte Reload
	callq	free
	movq	%rbx, %rdi
	callq	free
	movq	192(%rsp), %rdi
	callq	hipFree
	movq	112(%rsp), %rdi
	callq	hipFree
	movq	%rbp, %rdi
	callq	hipFree
	movq	240(%rsp), %rdi
	callq	hipFree
	movq	40(%rsp), %rdi
	callq	hipFree
	movq	48(%rsp), %rdi
	callq	hipFree
	movq	56(%rsp), %rdi
	callq	hipFree
	jmp	.LBB0_54
.LBB0_1:
	movl	$.Lstr, %edi
	callq	puts@PLT
	movl	$.Lstr.1, %edi
	callq	puts@PLT
.LBB0_54:
	xorl	%eax, %eax
	addq	$344, %rsp                      # imm = 0x158
	.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_end0:
	.size	main, .Lfunc_end0-main
	.cfi_endproc
                                        # -- End function
	.globl	_Z9get_graphP5graphPc           # -- Begin function _Z9get_graphP5graphPc
	.type	_Z9get_graphP5graphPc,@function
_Z9get_graphP5graphPc:                  # @_Z9get_graphP5graphPc
	.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	$264, %rsp                      # imm = 0x108
	.cfi_def_cfa_offset 320
	.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, %r15
	movq	%rdi, %rbx
	movl	$.L.str.6, %esi
	movq	%r15, %rdi
	callq	fopen
	testq	%rax, %rax
	je	.LBB1_5
# %bb.1:
	movq	%rax, %r14
	movq	%rsp, %r15
	movl	$.L.str.7, %esi
	movq	%rax, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movq	%r15, %rdi
	callq	atoi
	movl	%eax, %r12d
	movl	$.L.str.7, %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movq	%r15, %rdi
	callq	atoi
	movl	%eax, %ebp
	movl	%eax, (%rbx)
	movl	%r12d, 4(%rbx)
	movslq	%eax, %r15
	leaq	(,%r15,4), %rax
	leaq	(%rax,%rax,2), %rdi
	callq	malloc
	movq	%rax, 8(%rbx)
	testl	%r15d, %r15d
	jle	.LBB1_4
# %bb.2:                                # %.lr.ph.preheader
	movl	%ebp, %eax
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %r12
	movq	%rsp, %r15
	xorl	%r13d, %r13d
.LBB1_3:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	$.L.str.7, %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movq	%r15, %rdi
	callq	atoi
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx,%r13)
	movl	$.L.str.7, %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movq	%r15, %rdi
	callq	atoi
	movq	8(%rbx), %rcx
	movl	%eax, 4(%rcx,%r13)
	movl	$.L.str.7, %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movq	%r15, %rdi
	callq	atoi
	movq	8(%rbx), %rcx
	movl	%eax, 8(%rcx,%r13)
	addq	$12, %r13
	cmpq	%r13, %r12
	jne	.LBB1_3
.LBB1_4:                                # %._crit_edge
	movq	%r14, %rdi
	callq	fclose
	addq	$264, %rsp                      # imm = 0x108
	.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
.LBB1_5:
	.cfi_def_cfa_offset 320
	movq	%r15, %rdi
	callq	perror
	movl	$1, %edi
	callq	exit
.Lfunc_end1:
	.size	_Z9get_graphP5graphPc, .Lfunc_end1-_Z9get_graphP5graphPc
	.cfi_endproc
                                        # -- End function
	.globl	_Z34__device_stub__get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge # -- Begin function _Z34__device_stub__get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge
	.type	_Z34__device_stub__get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge,@function
_Z34__device_stub__get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge: # @_Z34__device_stub__get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge
	.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	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	8(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	56(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	48(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	40(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	32(%rsp), %r8
	movq	%r9, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%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	$_Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	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	_Z34__device_stub__get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge, .Lfunc_end2-_Z34__device_stub__get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge
	.cfi_endproc
                                        # -- End function
	.globl	_Z29__device_stub__mst_edges_initiPb # -- Begin function _Z29__device_stub__mst_edges_initiPb
	.type	_Z29__device_stub__mst_edges_initiPb,@function
_Z29__device_stub__mst_edges_initiPb:   # @_Z29__device_stub__mst_edges_initiPb
	.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	$80, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	4(%rsp), %rax
	movl	%edi, (%rax)
	leaq	24(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%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	$_Z14mst_edges_initiPb, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$96, %rsp
	.cfi_adjust_cfa_offset -96
	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	_Z29__device_stub__mst_edges_initiPb, .Lfunc_end3-_Z29__device_stub__mst_edges_initiPb
	.cfi_endproc
                                        # -- End function
	.globl	_Z42__device_stub__init_smallest_edges_weightsiPiS_ # -- Begin function _Z42__device_stub__init_smallest_edges_weightsiPiS_
	.type	_Z42__device_stub__init_smallest_edges_weightsiPiS_,@function
_Z42__device_stub__init_smallest_edges_weightsiPiS_: # @_Z42__device_stub__init_smallest_edges_weightsiPiS_
	.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	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	40(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	32(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%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	$_Z27init_smallest_edges_weightsiPiS_, %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_end4:
	.size	_Z42__device_stub__init_smallest_edges_weightsiPiS_, .Lfunc_end4-_Z42__device_stub__init_smallest_edges_weightsiPiS_
	.cfi_endproc
                                        # -- End function
	.globl	_Z33__device_stub__get_smallest_edgesiiP6b_edgePiS1_ # -- Begin function _Z33__device_stub__get_smallest_edgesiiP6b_edgePiS1_
	.type	_Z33__device_stub__get_smallest_edgesiiP6b_edgePiS1_,@function
_Z33__device_stub__get_smallest_edgesiiP6b_edgePiS1_: # @_Z33__device_stub__get_smallest_edgesiiP6b_edgePiS1_
	.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	$128, %rsp
	.cfi_def_cfa_offset 176
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	4(%rsp), %rax
	movl	%edi, (%rax)
	movq	%rsp, %rdi
	movl	%esi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	24(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%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	$_Z18get_smallest_edgesiiP6b_edgePiS1_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$144, %rsp
	.cfi_adjust_cfa_offset -144
	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_end5:
	.size	_Z33__device_stub__get_smallest_edgesiiP6b_edgePiS1_, .Lfunc_end5-_Z33__device_stub__get_smallest_edgesiiP6b_edgePiS1_
	.cfi_endproc
                                        # -- End function
	.globl	_Z28__device_stub__get_mst_edgesiPiP6b_edgePb # -- Begin function _Z28__device_stub__get_mst_edgesiPiP6b_edgePb
	.type	_Z28__device_stub__get_mst_edgesiPiP6b_edgePb,@function
_Z28__device_stub__get_mst_edgesiPiP6b_edgePb: # @_Z28__device_stub__get_mst_edgesiPiP6b_edgePb
	.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	4(%rsp), %rax
	movl	%edi, (%rax)
	leaq	40(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	32(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	24(%rsp), %rdx
	movq	%rcx, (%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	16(%rsp), %r12
	leaq	8(%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	$_Z13get_mst_edgesiPiP6b_edgePb, %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_end6:
	.size	_Z28__device_stub__get_mst_edgesiPiP6b_edgePb, .Lfunc_end6-_Z28__device_stub__get_mst_edgesiPiP6b_edgePb
	.cfi_endproc
                                        # -- End function
	.globl	_Z26__device_stub__get_num_mstiPbPi # -- Begin function _Z26__device_stub__get_num_mstiPbPi
	.type	_Z26__device_stub__get_num_mstiPbPi,@function
_Z26__device_stub__get_num_mstiPbPi:    # @_Z26__device_stub__get_num_mstiPbPi
	.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	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	40(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	32(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%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	$_Z11get_num_mstiPbPi, %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_end7:
	.size	_Z26__device_stub__get_num_mstiPbPi, .Lfunc_end7-_Z26__device_stub__get_num_mstiPbPi
	.cfi_endproc
                                        # -- End function
	.globl	_Z30__device_stub__get_strut_edgesiPiP6b_edgeP10strut_edge # -- Begin function _Z30__device_stub__get_strut_edgesiPiP6b_edgeP10strut_edge
	.type	_Z30__device_stub__get_strut_edgesiPiP6b_edgeP10strut_edge,@function
_Z30__device_stub__get_strut_edgesiPiP6b_edgeP10strut_edge: # @_Z30__device_stub__get_strut_edgesiPiP6b_edgeP10strut_edge
	.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	4(%rsp), %rax
	movl	%edi, (%rax)
	leaq	40(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	32(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	24(%rsp), %rdx
	movq	%rcx, (%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	16(%rsp), %r12
	leaq	8(%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	$_Z15get_strut_edgesiPiP6b_edgeP10strut_edge, %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_end8:
	.size	_Z30__device_stub__get_strut_edgesiPiP6b_edgeP10strut_edge, .Lfunc_end8-_Z30__device_stub__get_strut_edgesiPiP6b_edgeP10strut_edge
	.cfi_endproc
                                        # -- End function
	.globl	_Z27__device_stub__strut_u_initiP14strut_u_vertex # -- Begin function _Z27__device_stub__strut_u_initiP14strut_u_vertex
	.type	_Z27__device_stub__strut_u_initiP14strut_u_vertex,@function
_Z27__device_stub__strut_u_initiP14strut_u_vertex: # @_Z27__device_stub__strut_u_initiP14strut_u_vertex
	.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	$80, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	4(%rsp), %rax
	movl	%edi, (%rax)
	leaq	24(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%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	$_Z12strut_u_initiP14strut_u_vertex, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$96, %rsp
	.cfi_adjust_cfa_offset -96
	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_end9:
	.size	_Z27__device_stub__strut_u_initiP14strut_u_vertex, .Lfunc_end9-_Z27__device_stub__strut_u_initiP14strut_u_vertex
	.cfi_endproc
                                        # -- End function
	.globl	_Z33__device_stub__get_strut_u_degreeiP10strut_edgeP14strut_u_vertex # -- Begin function _Z33__device_stub__get_strut_u_degreeiP10strut_edgeP14strut_u_vertex
	.type	_Z33__device_stub__get_strut_u_degreeiP10strut_edgeP14strut_u_vertex,@function
_Z33__device_stub__get_strut_u_degreeiP10strut_edgeP14strut_u_vertex: # @_Z33__device_stub__get_strut_u_degreeiP10strut_edgeP14strut_u_vertex
	.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	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	40(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	32(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%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	$_Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex, %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_end10:
	.size	_Z33__device_stub__get_strut_u_degreeiP10strut_edgeP14strut_u_vertex, .Lfunc_end10-_Z33__device_stub__get_strut_u_degreeiP10strut_edgeP14strut_u_vertex
	.cfi_endproc
                                        # -- End function
	.globl	_Z35__device_stub__get_strut_u_verticesiP6b_edgeP14strut_u_vertex # -- Begin function _Z35__device_stub__get_strut_u_verticesiP6b_edgeP14strut_u_vertex
	.type	_Z35__device_stub__get_strut_u_verticesiP6b_edgeP14strut_u_vertex,@function
_Z35__device_stub__get_strut_u_verticesiP6b_edgeP14strut_u_vertex: # @_Z35__device_stub__get_strut_u_verticesiP6b_edgeP14strut_u_vertex
	.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	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	40(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	32(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%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	$_Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex, %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_end11:
	.size	_Z35__device_stub__get_strut_u_verticesiP6b_edgeP14strut_u_vertex, .Lfunc_end11-_Z35__device_stub__get_strut_u_verticesiP6b_edgeP14strut_u_vertex
	.cfi_endproc
                                        # -- End function
	.globl	_Z32__device_stub__get_zero_diff_numiP14strut_u_vertexPi # -- Begin function _Z32__device_stub__get_zero_diff_numiP14strut_u_vertexPi
	.type	_Z32__device_stub__get_zero_diff_numiP14strut_u_vertexPi,@function
_Z32__device_stub__get_zero_diff_numiP14strut_u_vertexPi: # @_Z32__device_stub__get_zero_diff_numiP14strut_u_vertexPi
	.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	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	40(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	32(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%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	$_Z17get_zero_diff_numiP14strut_u_vertexPi, %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_end12:
	.size	_Z32__device_stub__get_zero_diff_numiP14strut_u_vertexPi, .Lfunc_end12-_Z32__device_stub__get_zero_diff_numiP14strut_u_vertexPi
	.cfi_endproc
                                        # -- End function
	.globl	_Z34__device_stub__super_vertices_initiPi # -- Begin function _Z34__device_stub__super_vertices_initiPi
	.type	_Z34__device_stub__super_vertices_initiPi,@function
_Z34__device_stub__super_vertices_initiPi: # @_Z34__device_stub__super_vertices_initiPi
	.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	$80, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	4(%rsp), %rax
	movl	%edi, (%rax)
	leaq	24(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%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	$_Z19super_vertices_initiPi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$96, %rsp
	.cfi_adjust_cfa_offset -96
	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_end13:
	.size	_Z34__device_stub__super_vertices_initiPi, .Lfunc_end13-_Z34__device_stub__super_vertices_initiPi
	.cfi_endproc
                                        # -- End function
	.globl	_Z34__device_stub__get_new_bg_vertex_biPiP14strut_u_vertexS_S_ # -- Begin function _Z34__device_stub__get_new_bg_vertex_biPiP14strut_u_vertexS_S_
	.type	_Z34__device_stub__get_new_bg_vertex_biPiP14strut_u_vertexS_S_,@function
_Z34__device_stub__get_new_bg_vertex_biPiP14strut_u_vertexS_S_: # @_Z34__device_stub__get_new_bg_vertex_biPiP14strut_u_vertexS_S_
	.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	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	56(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	48(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	40(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	32(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%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	$_Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	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_end14:
	.size	_Z34__device_stub__get_new_bg_vertex_biPiP14strut_u_vertexS_S_, .Lfunc_end14-_Z34__device_stub__get_new_bg_vertex_biPiP14strut_u_vertexS_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z25__device_stub__prefixCopyiPiS_ # -- Begin function _Z25__device_stub__prefixCopyiPiS_
	.type	_Z25__device_stub__prefixCopyiPiS_,@function
_Z25__device_stub__prefixCopyiPiS_:     # @_Z25__device_stub__prefixCopyiPiS_
	.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	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	40(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	32(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%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	$_Z10prefixCopyiPiS_, %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_end15:
	.size	_Z25__device_stub__prefixCopyiPiS_, .Lfunc_end15-_Z25__device_stub__prefixCopyiPiS_
	.cfi_endproc
                                        # -- End function
	.globl	_Z27__device_stub__getPrefixSumPiS_i # -- Begin function _Z27__device_stub__getPrefixSumPiS_i
	.type	_Z27__device_stub__getPrefixSumPiS_i,@function
_Z27__device_stub__getPrefixSumPiS_i:   # @_Z27__device_stub__getPrefixSumPiS_i
	.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), %rcx
	movq	%rsi, (%rcx)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%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	$_Z12getPrefixSumPiS_i, %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_end16:
	.size	_Z27__device_stub__getPrefixSumPiS_i, .Lfunc_end16-_Z27__device_stub__getPrefixSumPiS_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z31__device_stub__get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_ # -- Begin function _Z31__device_stub__get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_
	.type	_Z31__device_stub__get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_,@function
_Z31__device_stub__get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_: # @_Z31__device_stub__get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_
	.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	$160, %rsp
	.cfi_def_cfa_offset 208
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	4(%rsp), %rax
	movl	%edi, (%rax)
	leaq	56(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	48(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	40(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	32(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	24(%rsp), %r8
	movq	%r9, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	208(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%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	$_Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$176, %rsp
	.cfi_adjust_cfa_offset -176
	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_end17:
	.size	_Z31__device_stub__get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_, .Lfunc_end17-_Z31__device_stub__get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_
	.cfi_endproc
                                        # -- End function
	.globl	_Z33__device_stub__get_super_verticesiP10strut_edgeP14strut_u_vertexPi # -- Begin function _Z33__device_stub__get_super_verticesiP10strut_edgeP14strut_u_vertexPi
	.type	_Z33__device_stub__get_super_verticesiP10strut_edgeP14strut_u_vertexPi,@function
_Z33__device_stub__get_super_verticesiP10strut_edgeP14strut_u_vertexPi: # @_Z33__device_stub__get_super_verticesiP10strut_edgeP14strut_u_vertexPi
	.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	4(%rsp), %rax
	movl	%edi, (%rax)
	leaq	40(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	32(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	24(%rsp), %rdx
	movq	%rcx, (%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	16(%rsp), %r12
	leaq	8(%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	$_Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi, %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_end18:
	.size	_Z33__device_stub__get_super_verticesiP10strut_edgeP14strut_u_vertexPi, .Lfunc_end18-_Z33__device_stub__get_super_verticesiP10strut_edgeP14strut_u_vertexPi
	.cfi_endproc
                                        # -- End function
	.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	.LBB19_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB19_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge, %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	$_Z27init_smallest_edges_weightsiPiS_, %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	$_Z18get_smallest_edgesiiP6b_edgePiS1_, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z14mst_edges_initiPb, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z13get_mst_edgesiPiP6b_edgePb, %esi
	movl	$.L__unnamed_5, %edx
	movl	$.L__unnamed_5, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z11get_num_mstiPbPi, %esi
	movl	$.L__unnamed_6, %edx
	movl	$.L__unnamed_6, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z15get_strut_edgesiPiP6b_edgeP10strut_edge, %esi
	movl	$.L__unnamed_7, %edx
	movl	$.L__unnamed_7, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z12strut_u_initiP14strut_u_vertex, %esi
	movl	$.L__unnamed_8, %edx
	movl	$.L__unnamed_8, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex, %esi
	movl	$.L__unnamed_9, %edx
	movl	$.L__unnamed_9, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex, %esi
	movl	$.L__unnamed_10, %edx
	movl	$.L__unnamed_10, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z17get_zero_diff_numiP14strut_u_vertexPi, %esi
	movl	$.L__unnamed_11, %edx
	movl	$.L__unnamed_11, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z19super_vertices_initiPi, %esi
	movl	$.L__unnamed_12, %edx
	movl	$.L__unnamed_12, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_, %esi
	movl	$.L__unnamed_13, %edx
	movl	$.L__unnamed_13, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z10prefixCopyiPiS_, %esi
	movl	$.L__unnamed_14, %edx
	movl	$.L__unnamed_14, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z12getPrefixSumPiS_i, %esi
	movl	$.L__unnamed_15, %edx
	movl	$.L__unnamed_15, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_, %esi
	movl	$.L__unnamed_16, %edx
	movl	$.L__unnamed_16, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi, %esi
	movl	$.L__unnamed_17, %edx
	movl	$.L__unnamed_17, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end19:
	.size	__hip_module_ctor, .Lfunc_end19-__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	.LBB20_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
.LBB20_2:
	retq
.Lfunc_end20:
	.size	__hip_module_dtor, .Lfunc_end20-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge,@object # @_Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge
	.section	.rodata,"a",@progbits
	.globl	_Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge
	.p2align	3, 0x0
_Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge:
	.quad	_Z34__device_stub__get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge
	.size	_Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge, 8

	.type	_Z14mst_edges_initiPb,@object   # @_Z14mst_edges_initiPb
	.globl	_Z14mst_edges_initiPb
	.p2align	3, 0x0
_Z14mst_edges_initiPb:
	.quad	_Z29__device_stub__mst_edges_initiPb
	.size	_Z14mst_edges_initiPb, 8

	.type	_Z27init_smallest_edges_weightsiPiS_,@object # @_Z27init_smallest_edges_weightsiPiS_
	.globl	_Z27init_smallest_edges_weightsiPiS_
	.p2align	3, 0x0
_Z27init_smallest_edges_weightsiPiS_:
	.quad	_Z42__device_stub__init_smallest_edges_weightsiPiS_
	.size	_Z27init_smallest_edges_weightsiPiS_, 8

	.type	_Z18get_smallest_edgesiiP6b_edgePiS1_,@object # @_Z18get_smallest_edgesiiP6b_edgePiS1_
	.globl	_Z18get_smallest_edgesiiP6b_edgePiS1_
	.p2align	3, 0x0
_Z18get_smallest_edgesiiP6b_edgePiS1_:
	.quad	_Z33__device_stub__get_smallest_edgesiiP6b_edgePiS1_
	.size	_Z18get_smallest_edgesiiP6b_edgePiS1_, 8

	.type	_Z13get_mst_edgesiPiP6b_edgePb,@object # @_Z13get_mst_edgesiPiP6b_edgePb
	.globl	_Z13get_mst_edgesiPiP6b_edgePb
	.p2align	3, 0x0
_Z13get_mst_edgesiPiP6b_edgePb:
	.quad	_Z28__device_stub__get_mst_edgesiPiP6b_edgePb
	.size	_Z13get_mst_edgesiPiP6b_edgePb, 8

	.type	_Z11get_num_mstiPbPi,@object    # @_Z11get_num_mstiPbPi
	.globl	_Z11get_num_mstiPbPi
	.p2align	3, 0x0
_Z11get_num_mstiPbPi:
	.quad	_Z26__device_stub__get_num_mstiPbPi
	.size	_Z11get_num_mstiPbPi, 8

	.type	_Z15get_strut_edgesiPiP6b_edgeP10strut_edge,@object # @_Z15get_strut_edgesiPiP6b_edgeP10strut_edge
	.globl	_Z15get_strut_edgesiPiP6b_edgeP10strut_edge
	.p2align	3, 0x0
_Z15get_strut_edgesiPiP6b_edgeP10strut_edge:
	.quad	_Z30__device_stub__get_strut_edgesiPiP6b_edgeP10strut_edge
	.size	_Z15get_strut_edgesiPiP6b_edgeP10strut_edge, 8

	.type	_Z12strut_u_initiP14strut_u_vertex,@object # @_Z12strut_u_initiP14strut_u_vertex
	.globl	_Z12strut_u_initiP14strut_u_vertex
	.p2align	3, 0x0
_Z12strut_u_initiP14strut_u_vertex:
	.quad	_Z27__device_stub__strut_u_initiP14strut_u_vertex
	.size	_Z12strut_u_initiP14strut_u_vertex, 8

	.type	_Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex,@object # @_Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex
	.globl	_Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex
	.p2align	3, 0x0
_Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex:
	.quad	_Z33__device_stub__get_strut_u_degreeiP10strut_edgeP14strut_u_vertex
	.size	_Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex, 8

	.type	_Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex,@object # @_Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex
	.globl	_Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex
	.p2align	3, 0x0
_Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex:
	.quad	_Z35__device_stub__get_strut_u_verticesiP6b_edgeP14strut_u_vertex
	.size	_Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex, 8

	.type	_Z17get_zero_diff_numiP14strut_u_vertexPi,@object # @_Z17get_zero_diff_numiP14strut_u_vertexPi
	.globl	_Z17get_zero_diff_numiP14strut_u_vertexPi
	.p2align	3, 0x0
_Z17get_zero_diff_numiP14strut_u_vertexPi:
	.quad	_Z32__device_stub__get_zero_diff_numiP14strut_u_vertexPi
	.size	_Z17get_zero_diff_numiP14strut_u_vertexPi, 8

	.type	_Z19super_vertices_initiPi,@object # @_Z19super_vertices_initiPi
	.globl	_Z19super_vertices_initiPi
	.p2align	3, 0x0
_Z19super_vertices_initiPi:
	.quad	_Z34__device_stub__super_vertices_initiPi
	.size	_Z19super_vertices_initiPi, 8

	.type	_Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_,@object # @_Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_
	.globl	_Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_
	.p2align	3, 0x0
_Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_:
	.quad	_Z34__device_stub__get_new_bg_vertex_biPiP14strut_u_vertexS_S_
	.size	_Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_, 8

	.type	_Z10prefixCopyiPiS_,@object     # @_Z10prefixCopyiPiS_
	.globl	_Z10prefixCopyiPiS_
	.p2align	3, 0x0
_Z10prefixCopyiPiS_:
	.quad	_Z25__device_stub__prefixCopyiPiS_
	.size	_Z10prefixCopyiPiS_, 8

	.type	_Z12getPrefixSumPiS_i,@object   # @_Z12getPrefixSumPiS_i
	.globl	_Z12getPrefixSumPiS_i
	.p2align	3, 0x0
_Z12getPrefixSumPiS_i:
	.quad	_Z27__device_stub__getPrefixSumPiS_i
	.size	_Z12getPrefixSumPiS_i, 8

	.type	_Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_,@object # @_Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_
	.globl	_Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_
	.p2align	3, 0x0
_Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_:
	.quad	_Z31__device_stub__get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_
	.size	_Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_, 8

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

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"Input Graph\nVertices: %d Edges: %d\n"
	.size	.L.str.3, 36

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"MST Edges:\n"
	.size	.L.str.4, 12

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"index: %d - v: %d  u: %d  weight: %d\n"
	.size	.L.str.5, 38

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"r"
	.size	.L.str.6, 2

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"%s"
	.size	.L.str.7, 3

	.type	_Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi,@object # @_Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi
	.section	.rodata,"a",@progbits
	.globl	_Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi
	.p2align	3, 0x0
_Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi:
	.quad	_Z33__device_stub__get_super_verticesiP10strut_edgeP14strut_u_vertexPi
	.size	_Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi, 8

	.type	.L__unnamed_1,@object           # @0
	.section	.rodata.str1.1,"aMS",@progbits,1
.L__unnamed_1:
	.asciz	"_Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge"
	.size	.L__unnamed_1, 66

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z27init_smallest_edges_weightsiPiS_"
	.size	.L__unnamed_2, 37

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z18get_smallest_edgesiiP6b_edgePiS1_"
	.size	.L__unnamed_3, 38

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"_Z14mst_edges_initiPb"
	.size	.L__unnamed_4, 22

	.type	.L__unnamed_5,@object           # @4
.L__unnamed_5:
	.asciz	"_Z13get_mst_edgesiPiP6b_edgePb"
	.size	.L__unnamed_5, 31

	.type	.L__unnamed_6,@object           # @5
.L__unnamed_6:
	.asciz	"_Z11get_num_mstiPbPi"
	.size	.L__unnamed_6, 21

	.type	.L__unnamed_7,@object           # @6
.L__unnamed_7:
	.asciz	"_Z15get_strut_edgesiPiP6b_edgeP10strut_edge"
	.size	.L__unnamed_7, 44

	.type	.L__unnamed_8,@object           # @7
.L__unnamed_8:
	.asciz	"_Z12strut_u_initiP14strut_u_vertex"
	.size	.L__unnamed_8, 35

	.type	.L__unnamed_9,@object           # @8
.L__unnamed_9:
	.asciz	"_Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex"
	.size	.L__unnamed_9, 54

	.type	.L__unnamed_10,@object          # @9
.L__unnamed_10:
	.asciz	"_Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex"
	.size	.L__unnamed_10, 51

	.type	.L__unnamed_11,@object          # @10
.L__unnamed_11:
	.asciz	"_Z17get_zero_diff_numiP14strut_u_vertexPi"
	.size	.L__unnamed_11, 42

	.type	.L__unnamed_12,@object          # @11
.L__unnamed_12:
	.asciz	"_Z19super_vertices_initiPi"
	.size	.L__unnamed_12, 27

	.type	.L__unnamed_13,@object          # @12
.L__unnamed_13:
	.asciz	"_Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_"
	.size	.L__unnamed_13, 48

	.type	.L__unnamed_14,@object          # @13
.L__unnamed_14:
	.asciz	"_Z10prefixCopyiPiS_"
	.size	.L__unnamed_14, 20

	.type	.L__unnamed_15,@object          # @14
.L__unnamed_15:
	.asciz	"_Z12getPrefixSumPiS_i"
	.size	.L__unnamed_15, 22

	.type	.L__unnamed_16,@object          # @15
.L__unnamed_16:
	.asciz	"_Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_"
	.size	.L__unnamed_16, 55

	.type	.L__unnamed_17,@object          # @16
.L__unnamed_17:
	.asciz	"_Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi"
	.size	.L__unnamed_17, 56

	.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	"mst: incorrect formatting"
	.size	.Lstr, 26

	.type	.Lstr.1,@object                 # @str.1
.Lstr.1:
	.asciz	"Valid input: mst.out <Input file name> <Output file name>"
	.size	.Lstr.1, 58

	.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 _Z34__device_stub__get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge
	.addrsig_sym _Z29__device_stub__mst_edges_initiPb
	.addrsig_sym _Z42__device_stub__init_smallest_edges_weightsiPiS_
	.addrsig_sym _Z33__device_stub__get_smallest_edgesiiP6b_edgePiS1_
	.addrsig_sym _Z28__device_stub__get_mst_edgesiPiP6b_edgePb
	.addrsig_sym _Z26__device_stub__get_num_mstiPbPi
	.addrsig_sym _Z30__device_stub__get_strut_edgesiPiP6b_edgeP10strut_edge
	.addrsig_sym _Z27__device_stub__strut_u_initiP14strut_u_vertex
	.addrsig_sym _Z33__device_stub__get_strut_u_degreeiP10strut_edgeP14strut_u_vertex
	.addrsig_sym _Z35__device_stub__get_strut_u_verticesiP6b_edgeP14strut_u_vertex
	.addrsig_sym _Z32__device_stub__get_zero_diff_numiP14strut_u_vertexPi
	.addrsig_sym _Z34__device_stub__super_vertices_initiPi
	.addrsig_sym _Z34__device_stub__get_new_bg_vertex_biPiP14strut_u_vertexS_S_
	.addrsig_sym _Z25__device_stub__prefixCopyiPiS_
	.addrsig_sym _Z27__device_stub__getPrefixSumPiS_i
	.addrsig_sym _Z31__device_stub__get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_
	.addrsig_sym _Z33__device_stub__get_super_verticesiP10strut_edgeP14strut_u_vertexPi
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge
	.addrsig_sym _Z14mst_edges_initiPb
	.addrsig_sym _Z27init_smallest_edges_weightsiPiS_
	.addrsig_sym _Z18get_smallest_edgesiiP6b_edgePiS1_
	.addrsig_sym _Z13get_mst_edgesiPiP6b_edgePb
	.addrsig_sym _Z11get_num_mstiPbPi
	.addrsig_sym _Z15get_strut_edgesiPiP6b_edgeP10strut_edge
	.addrsig_sym _Z12strut_u_initiP14strut_u_vertex
	.addrsig_sym _Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex
	.addrsig_sym _Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex
	.addrsig_sym _Z17get_zero_diff_numiP14strut_u_vertexPi
	.addrsig_sym _Z19super_vertices_initiPi
	.addrsig_sym _Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_
	.addrsig_sym _Z10prefixCopyiPiS_
	.addrsig_sym _Z12getPrefixSumPiS_i
	.addrsig_sym _Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_
	.addrsig_sym _Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge ; -- Begin function _Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge
	.globl	_Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge
	.p2align	8
	.type	_Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge,@function
_Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge: ; @_Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x34
	s_load_b64 s[8:9], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s8, v1
	s_cbranch_execz .LBB0_3
; %bb.1:
	s_load_b256 s[0:7], s[0:1], 0x8
	v_dual_mov_b32 v8, v1 :: v_dual_lshlrev_b32 v5, 1, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v6, 31, v5
	v_or_b32_e32 v9, 1, v5
	v_lshlrev_b64 v[6:7], 4, v[5:6]
	s_waitcnt lgkmcnt(0)
	v_mad_i64_i32 v[2:3], null, v1, 12, s[0:1]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v15, vcc_lo, s6, v6
	v_add_co_ci_u32_e32 v16, vcc_lo, s7, v7, vcc_lo
	global_load_b96 v[10:12], v[2:3], off
	v_ashrrev_i32_e32 v2, 31, v1
	v_mov_b32_e32 v4, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[13:14], 2, v[1:2]
	s_waitcnt vmcnt(0)
	v_dual_mov_b32 v7, v10 :: v_dual_mov_b32 v10, v12
	v_mov_b32_e32 v3, v11
	v_add_co_u32 v11, vcc_lo, s4, v13
	v_mov_b32_e32 v6, v12
	v_add_co_ci_u32_e32 v12, vcc_lo, s5, v14, vcc_lo
	v_cmp_gt_i32_e32 vcc_lo, s9, v1
	s_clause 0x1
	global_store_b128 v[15:16], v[7:10], off
	global_store_b128 v[15:16], v[3:6], off offset:16
	global_store_b32 v[11:12], v1, off
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB0_3
; %bb.2:
	v_lshlrev_b64 v[2:3], 3, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s2, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s3, v3, vcc_lo
	global_store_b32 v[2:3], v1, off
.LBB0_3:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.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 17
		.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_end0:
	.size	_Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge, .Lfunc_end0-_Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 268
; NumSgprs: 18
; NumVgprs: 17
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 17
; 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	_Z27init_smallest_edges_weightsiPiS_ ; -- Begin function _Z27init_smallest_edges_weightsiPiS_
	.globl	_Z27init_smallest_edges_weightsiPiS_
	.p2align	8
	.type	_Z27init_smallest_edges_weightsiPiS_,@function
_Z27init_smallest_edges_weightsiPiS_:   ; @_Z27init_smallest_edges_weightsiPiS_
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s3, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB1_2
; %bb.1:
	s_load_b128 s[0:3], s[0:1], 0x8
	v_ashrrev_i32_e32 v2, 31, v1
	v_mov_b32_e32 v4, -1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s1, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s2, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v1, vcc_lo
	global_store_b32 v[2:3], v4, off
	global_store_b32 v[0:1], v4, off
.LBB1_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z27init_smallest_edges_weightsiPiS_
		.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 5
		.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_end1:
	.size	_Z27init_smallest_edges_weightsiPiS_, .Lfunc_end1-_Z27init_smallest_edges_weightsiPiS_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 148
; NumSgprs: 18
; NumVgprs: 5
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 5
; 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	_Z18get_smallest_edgesiiP6b_edgePiS1_ ; -- Begin function _Z18get_smallest_edgesiiP6b_edgePiS1_
	.globl	_Z18get_smallest_edgesiiP6b_edgePiS1_
	.p2align	8
	.type	_Z18get_smallest_edgesiiP6b_edgePiS1_,@function
_Z18get_smallest_edgesiiP6b_edgePiS1_:  ; @_Z18get_smallest_edgesiiP6b_edgePiS1_
; %bb.0:
	s_clause 0x1
	s_load_b32 s3, s[0:1], 0x2c
	s_load_b32 s2, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s3, s3, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s3, v[0:1]
	s_mov_b32 s3, exec_lo
	v_cmpx_gt_i32_e64 s2, v1
	s_cbranch_execz .LBB2_3
; %bb.1:
	s_load_b128 s[4:7], s[0:1], 0x8
	v_ashrrev_i32_e32 v2, 31, v1
	v_bfrev_b32_e32 v0, -2
	s_load_b64 s[0:1], s[0:1], 0x18
	s_add_i32 s2, s2, -1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[2:3], 4, v[1:2]
	v_mov_b32_e32 v8, s2
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v4, vcc_lo, s4, v2
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v3, vcc_lo
	global_load_b32 v2, v[4:5], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[2:3], 2, v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v6, vcc_lo, s6, v2
	v_add_co_ci_u32_e32 v7, vcc_lo, s7, v3, vcc_lo
	v_add_co_u32 v2, vcc_lo, s0, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s1, v3, vcc_lo
	global_store_b32 v[6:7], v0, off offset:-4
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	global_load_b32 v0, v[4:5], off offset:12
	s_waitcnt vmcnt(0)
	global_atomic_min_i32 v[6:7], v0, off offset:-4
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	global_store_b32 v[2:3], v8, off offset:-4
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	global_load_b32 v0, v[4:5], off offset:12
	global_load_b32 v4, v[6:7], off offset:-4
	s_waitcnt vmcnt(0)
	v_cmp_eq_u32_e32 vcc_lo, v0, v4
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB2_3
; %bb.2:
	global_atomic_min_i32 v[2:3], v1, off offset:-4
.LBB2_3:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z18get_smallest_edgesiiP6b_edgePiS1_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.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 9
		.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	_Z18get_smallest_edgesiiP6b_edgePiS1_, .Lfunc_end2-_Z18get_smallest_edgesiiP6b_edgePiS1_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 312
; NumSgprs: 18
; NumVgprs: 9
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 9
; 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	_Z14mst_edges_initiPb   ; -- Begin function _Z14mst_edges_initiPb
	.globl	_Z14mst_edges_initiPb
	.p2align	8
	.type	_Z14mst_edges_initiPb,@function
_Z14mst_edges_initiPb:                  ; @_Z14mst_edges_initiPb
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x1c
	s_load_b32 s3, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB3_2
; %bb.1:
	s_load_b64 s[0:1], s[0:1], 0x8
	v_ashrrev_i32_e32 v2, 31, v1
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v0, vcc_lo, s0, v1
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v2, vcc_lo
	v_mov_b32_e32 v2, 0
	global_store_b8 v[0:1], v2, off
.LBB3_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z14mst_edges_initiPb
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 272
		.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 3
		.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_end3:
	.size	_Z14mst_edges_initiPb, .Lfunc_end3-_Z14mst_edges_initiPb
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 116
; NumSgprs: 18
; NumVgprs: 3
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 3
; 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	_Z13get_mst_edgesiPiP6b_edgePb ; -- Begin function _Z13get_mst_edgesiPiP6b_edgePb
	.globl	_Z13get_mst_edgesiPiP6b_edgePb
	.p2align	8
	.type	_Z13get_mst_edgesiPiP6b_edgePb,@function
_Z13get_mst_edgesiPiP6b_edgePb:         ; @_Z13get_mst_edgesiPiP6b_edgePb
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x2c
	s_load_b32 s3, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB4_3
; %bb.1:
	s_load_b128 s[4:7], s[0:1], 0x8
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v0, vcc_lo, s4, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s5, v1, vcc_lo
	global_load_b32 v0, v[0:1], off
	s_waitcnt vmcnt(0)
	v_cmp_ne_u32_e32 vcc_lo, -1, v0
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB4_3
; %bb.2:
	v_ashrrev_i32_e32 v1, 31, v0
	s_load_b64 s[0:1], s[0:1], 0x18
	v_mov_b32_e32 v2, 1
	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_b32 v0, v[0:1], off offset:4
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v1, 31, v0
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v0, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	global_store_b8 v[0:1], v2, off
.LBB4_3:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z13get_mst_edgesiPiP6b_edgePb
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.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 3
		.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_end4:
	.size	_Z13get_mst_edgesiPiP6b_edgePb, .Lfunc_end4-_Z13get_mst_edgesiPiP6b_edgePb
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 228
; NumSgprs: 18
; NumVgprs: 3
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 3
; 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	_Z11get_num_mstiPbPi    ; -- Begin function _Z11get_num_mstiPbPi
	.globl	_Z11get_num_mstiPbPi
	.p2align	8
	.type	_Z11get_num_mstiPbPi,@function
_Z11get_num_mstiPbPi:                   ; @_Z11get_num_mstiPbPi
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s3, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB5_4
; %bb.1:
	s_load_b128 s[0:3], s[0:1], 0x8
	v_ashrrev_i32_e32 v2, 31, v1
	v_mov_b32_e32 v3, 0
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v0, vcc_lo, s0, v1
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v2, vcc_lo
	global_store_b32 v3, v3, s[2:3]
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	global_load_u8 v0, v[0:1], off
	s_waitcnt vmcnt(0)
	v_cmp_ne_u16_e32 vcc_lo, 0, v0
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB5_4
; %bb.2:
	s_mov_b32 s0, exec_lo
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mbcnt_lo_u32_b32 v0, s0, 0
	v_cmp_eq_u32_e32 vcc_lo, 0, v0
	s_and_b32 s1, exec_lo, vcc_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 exec_lo, s1
	s_cbranch_execz .LBB5_4
; %bb.3:
	s_bcnt1_i32_b32 s0, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	v_dual_mov_b32 v0, 0 :: v_dual_mov_b32 v1, s0
	global_atomic_add_u32 v0, v1, s[2:3]
.LBB5_4:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z11get_num_mstiPbPi
		.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_end5:
	.size	_Z11get_num_mstiPbPi, .Lfunc_end5-_Z11get_num_mstiPbPi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 216
; 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 : 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	_Z15get_strut_edgesiPiP6b_edgeP10strut_edge ; -- Begin function _Z15get_strut_edgesiPiP6b_edgeP10strut_edge
	.globl	_Z15get_strut_edgesiPiP6b_edgeP10strut_edge
	.p2align	8
	.type	_Z15get_strut_edgesiPiP6b_edgeP10strut_edge,@function
_Z15get_strut_edgesiPiP6b_edgeP10strut_edge: ; @_Z15get_strut_edgesiPiP6b_edgeP10strut_edge
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x2c
	s_load_b32 s3, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB6_2
; %bb.1:
	s_clause 0x1
	s_load_b64 s[4:5], s[0:1], 0x18
	s_load_b128 s[0:3], s[0:1], 0x8
	v_ashrrev_i32_e32 v2, 31, v1
	v_add_nc_u32_e32 v6, 1, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[2:3], 2, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_mad_i64_i32 v[4:5], null, v1, 12, s[4:5]
	v_add_co_u32 v0, vcc_lo, s0, v2
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v3, vcc_lo
	global_store_b32 v[4:5], v6, off
	global_load_b32 v2, v[0:1], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[2:3], 4, v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s2, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s3, v3, vcc_lo
	global_load_b32 v2, v[2:3], off offset:4
	s_waitcnt vmcnt(0)
	global_store_b32 v[4:5], v2, off offset:4
	global_load_b32 v0, v[0:1], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 4, v[0:1]
	v_add_co_u32 v0, vcc_lo, s2, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v1, vcc_lo
	global_load_b32 v0, v[0:1], off offset:8
	s_waitcnt vmcnt(0)
	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, s2, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v1, vcc_lo
	global_load_b32 v0, v[0:1], off
	s_waitcnt vmcnt(0)
	global_store_b32 v[4:5], v0, off offset:8
.LBB6_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z15get_strut_edgesiPiP6b_edgeP10strut_edge
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.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 7
		.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_end6:
	.size	_Z15get_strut_edgesiPiP6b_edgeP10strut_edge, .Lfunc_end6-_Z15get_strut_edgesiPiP6b_edgeP10strut_edge
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 312
; NumSgprs: 18
; NumVgprs: 7
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 7
; 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	_Z12strut_u_initiP14strut_u_vertex ; -- Begin function _Z12strut_u_initiP14strut_u_vertex
	.globl	_Z12strut_u_initiP14strut_u_vertex
	.p2align	8
	.type	_Z12strut_u_initiP14strut_u_vertex,@function
_Z12strut_u_initiP14strut_u_vertex:     ; @_Z12strut_u_initiP14strut_u_vertex
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x1c
	s_load_b32 s3, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB7_2
; %bb.1:
	s_load_b64 s[0:1], s[0:1], 0x8
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[0:1], 4, v[1:2]
	v_mov_b32_e32 v2, 0
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v0, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	global_store_b32 v[0:1], v2, off
.LBB7_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z12strut_u_initiP14strut_u_vertex
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 272
		.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 3
		.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_end7:
	.size	_Z12strut_u_initiP14strut_u_vertex, .Lfunc_end7-_Z12strut_u_initiP14strut_u_vertex
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 128
; NumSgprs: 18
; NumVgprs: 3
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 3
; 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	_Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex ; -- Begin function _Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex
	.globl	_Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex
	.p2align	8
	.type	_Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex,@function
_Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex: ; @_Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s3, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB8_2
; %bb.1:
	s_load_b128 s[0:3], s[0:1], 0x8
	s_waitcnt lgkmcnt(0)
	v_mad_i64_i32 v[2:3], null, v1, 12, s[0:1]
	global_load_b32 v0, v[2:3], off offset:4
	v_mov_b32_e32 v2, 1
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 4, v[0:1]
	v_add_co_u32 v0, vcc_lo, s2, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v1, vcc_lo
	global_atomic_add_u32 v[0:1], v2, off
.LBB8_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex
		.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_end8:
	.size	_Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex, .Lfunc_end8-_Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 148
; 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
	.protected	_Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex ; -- Begin function _Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex
	.globl	_Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex
	.p2align	8
	.type	_Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex,@function
_Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex: ; @_Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s3, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	v_and_b32_e32 v0, 1, v1
	v_cmp_gt_i32_e32 vcc_lo, s3, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_eq_u32_e64 s2, 0, v0
	s_and_b32 s2, vcc_lo, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_saveexec_b32 s3, s2
	s_cbranch_execz .LBB9_2
; %bb.1:
	s_load_b128 s[0:3], s[0:1], 0x8
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 4, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v0, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	global_load_b128 v[0:3], v[0:1], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v5, 31, v2
	v_mov_b32_e32 v4, v2
	v_ashrrev_i32_e32 v7, 31, v1
	v_mov_b32_e32 v6, v1
	v_mov_b32_e32 v2, v3
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[4:5], 4, v[4:5]
	v_add_co_u32 v4, vcc_lo, s0, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b32 v1, v[4:5], off
	v_lshlrev_b64 v[4:5], 4, v[6:7]
	v_add_co_u32 v4, vcc_lo, s2, v4
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v5, vcc_lo, s3, v5, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b96 v[4:5], v[0:2], off offset:4
.LBB9_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex
		.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 8
		.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_end9:
	.size	_Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex, .Lfunc_end9-_Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 240
; NumSgprs: 18
; NumVgprs: 8
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 8
; 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	_Z17get_zero_diff_numiP14strut_u_vertexPi ; -- Begin function _Z17get_zero_diff_numiP14strut_u_vertexPi
	.globl	_Z17get_zero_diff_numiP14strut_u_vertexPi
	.p2align	8
	.type	_Z17get_zero_diff_numiP14strut_u_vertexPi,@function
_Z17get_zero_diff_numiP14strut_u_vertexPi: ; @_Z17get_zero_diff_numiP14strut_u_vertexPi
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s3, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB10_4
; %bb.1:
	s_load_b128 s[0:3], s[0:1], 0x8
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 4, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v0, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	global_load_b32 v0, v[0:1], off
	s_waitcnt vmcnt(0)
	v_cmp_eq_u32_e32 vcc_lo, 2, v0
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB10_4
; %bb.2:
	s_mov_b32 s0, exec_lo
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mbcnt_lo_u32_b32 v0, s0, 0
	v_cmp_eq_u32_e32 vcc_lo, 0, v0
	s_and_b32 s1, exec_lo, vcc_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 exec_lo, s1
	s_cbranch_execz .LBB10_4
; %bb.3:
	s_bcnt1_i32_b32 s0, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	v_dual_mov_b32 v0, 0 :: v_dual_mov_b32 v1, s0
	global_atomic_add_u32 v0, v1, s[2:3]
.LBB10_4:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z17get_zero_diff_numiP14strut_u_vertexPi
		.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 3
		.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_end10:
	.size	_Z17get_zero_diff_numiP14strut_u_vertexPi, .Lfunc_end10-_Z17get_zero_diff_numiP14strut_u_vertexPi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 200
; NumSgprs: 18
; NumVgprs: 3
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 3
; 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	_Z19super_vertices_initiPi ; -- Begin function _Z19super_vertices_initiPi
	.globl	_Z19super_vertices_initiPi
	.p2align	8
	.type	_Z19super_vertices_initiPi,@function
_Z19super_vertices_initiPi:             ; @_Z19super_vertices_initiPi
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x1c
	s_load_b32 s3, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB11_2
; %bb.1:
	s_load_b64 s[0:1], s[0:1], 0x8
	v_ashrrev_i32_e32 v2, 31, v1
	v_add_nc_u32_e32 v0, 1, v1
	s_delay_alu instid0(VALU_DEP_2) | 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_store_b32 v[2:3], v0, off
.LBB11_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z19super_vertices_initiPi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 272
		.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_end11:
	.size	_Z19super_vertices_initiPi, .Lfunc_end11-_Z19super_vertices_initiPi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 128
; 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 : 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	_Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_ ; -- Begin function _Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_
	.globl	_Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_
	.p2align	8
	.type	_Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_,@function
_Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_: ; @_Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x34
	s_load_b32 s3, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB12_6
; %bb.1:
	s_load_b256 s[0:7], s[0:1], 0x8
	v_ashrrev_i32_e32 v2, 31, v1
	v_mov_b32_e32 v3, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[4:5], 2, v[1:2]
	v_lshlrev_b64 v[6:7], 4, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v0, vcc_lo, s4, v4
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e32 v1, vcc_lo, s5, v5, vcc_lo
	v_add_co_u32 v4, vcc_lo, s2, v6
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_ci_u32_e32 v5, vcc_lo, s3, v7, vcc_lo
	global_store_b32 v[0:1], v3, off
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	global_load_b64 v[4:5], v[4:5], off offset:4
	s_waitcnt vmcnt(0)
	v_mov_b32_e32 v6, v4
	v_ashrrev_i32_e32 v7, 31, v4
	v_ashrrev_i32_e32 v9, 31, v5
	v_mov_b32_e32 v8, v5
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[4:5], 2, v[6:7]
	v_lshlrev_b64 v[6:7], 2, v[8:9]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v6, vcc_lo, s0, v6
	v_add_co_ci_u32_e32 v7, vcc_lo, s1, v7, vcc_lo
	s_clause 0x1
	global_load_b32 v2, v[4:5], off offset:-4
	global_load_b32 v4, v[6:7], off offset:-4
	s_mov_b32 s0, exec_lo
	s_waitcnt vmcnt(0)
	v_cmpx_ne_u32_e64 v2, v4
	s_cbranch_execz .LBB12_3
; %bb.2:
	v_mov_b32_e32 v2, 1
	global_store_b32 v[0:1], v2, off
.LBB12_3:
	s_or_b32 exec_lo, exec_lo, s0
	global_store_b32 v3, v3, s[6:7]
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	global_load_b32 v0, v[0:1], off
	s_waitcnt vmcnt(0)
	v_cmp_eq_u32_e32 vcc_lo, 1, v0
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB12_6
; %bb.4:
	s_mov_b32 s0, exec_lo
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mbcnt_lo_u32_b32 v0, s0, 0
	v_cmp_eq_u32_e32 vcc_lo, 0, v0
	s_and_b32 s1, exec_lo, vcc_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 exec_lo, s1
	s_cbranch_execz .LBB12_6
; %bb.5:
	s_bcnt1_i32_b32 s0, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	v_dual_mov_b32 v0, 0 :: v_dual_mov_b32 v1, s0
	global_atomic_add_u32 v0, v1, s[6:7]
.LBB12_6:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.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 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_end12:
	.size	_Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_, .Lfunc_end12-_Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 412
; NumSgprs: 18
; NumVgprs: 10
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; 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	_Z10prefixCopyiPiS_     ; -- Begin function _Z10prefixCopyiPiS_
	.globl	_Z10prefixCopyiPiS_
	.p2align	8
	.type	_Z10prefixCopyiPiS_,@function
_Z10prefixCopyiPiS_:                    ; @_Z10prefixCopyiPiS_
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s3, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB13_2
; %bb.1:
	s_load_b128 s[0:3], s[0:1], 0x8
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s1, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s2, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v1, vcc_lo
	global_load_b32 v2, v[2:3], off
	s_waitcnt vmcnt(0)
	global_store_b32 v[0:1], v2, off
.LBB13_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z10prefixCopyiPiS_
		.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_end13:
	.size	_Z10prefixCopyiPiS_, .Lfunc_end13-_Z10prefixCopyiPiS_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 148
; 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 : 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	_Z12getPrefixSumPiS_i   ; -- Begin function _Z12getPrefixSumPiS_i
	.globl	_Z12getPrefixSumPiS_i
	.p2align	8
	.type	_Z12getPrefixSumPiS_i,@function
_Z12getPrefixSumPiS_i:                  ; @_Z12getPrefixSumPiS_i
; %bb.0:
	s_clause 0x2
	s_load_b32 s4, s[0:1], 0x24
	s_load_b32 s5, s[0:1], 0x10
	s_load_b128 s[0:3], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s4, s4, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_mad_u64_u32 v[1:2], null, s15, s4, v[0:1]
	v_mov_b32_e32 v0, 0
	s_mov_b32 s4, exec_lo
	v_cmpx_le_i32_e64 s5, v1
	s_cbranch_execz .LBB14_2
; %bb.1:
	v_subrev_nc_u32_e32 v2, s5, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[2:3], 2, v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s0, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s1, v3, vcc_lo
	global_load_b32 v0, v[2:3], off
.LBB14_2:
	s_or_b32 exec_lo, exec_lo, s4
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[1:2], 2, v[1:2]
	v_add_co_u32 v3, vcc_lo, s2, v1
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v4, vcc_lo, s3, v2, vcc_lo
	v_add_co_u32 v1, vcc_lo, s0, v1
	v_add_co_ci_u32_e32 v2, vcc_lo, s1, v2, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b32 v[3:4], v0, off
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	global_load_b32 v0, v[1:2], off
	global_load_b32 v3, v[3:4], off
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v0, v3, v0
	global_store_b32 v[1:2], v0, off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z12getPrefixSumPiS_i
		.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 5
		.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_end14:
	.size	_Z12getPrefixSumPiS_i, .Lfunc_end14-_Z12getPrefixSumPiS_i
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 236
; NumSgprs: 18
; NumVgprs: 5
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 5
; 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	_Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_ ; -- Begin function _Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_
	.globl	_Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_
	.p2align	8
	.type	_Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_,@function
_Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_: ; @_Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x44
	s_load_b32 s3, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB15_10
; %bb.1:
	s_load_b256 s[4:11], s[0:1], 0x8
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[6:7], 2, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v3, vcc_lo, s4, v6
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v4, vcc_lo, s5, v7, vcc_lo
	global_load_b32 v0, v[3:4], off
	s_waitcnt vmcnt(0)
	v_cmp_eq_u32_e32 vcc_lo, 1, v0
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB15_10
; %bb.2:
	v_lshlrev_b64 v[4:5], 4, v[1:2]
	s_load_b128 s[0:3], s[0:1], 0x28
	s_mov_b32 s4, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s8, v4
	v_add_co_ci_u32_e32 v3, vcc_lo, s9, v5, vcc_lo
	global_load_b96 v[8:10], v[2:3], off offset:4
	v_add_co_u32 v2, vcc_lo, s6, v6
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v7, vcc_lo
	global_load_b32 v11, v[2:3], off
	s_waitcnt vmcnt(1)
	v_ashrrev_i32_e32 v3, 31, v8
	s_waitcnt vmcnt(0)
	v_dual_mov_b32 v2, v8 :: v_dual_lshlrev_b32 v13, 1, v11
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[2:3], 2, v[2:3]
	v_add_nc_u32_e32 v11, -2, v13
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_co_u32 v6, vcc_lo, s10, v2
	v_mov_b32_e32 v2, v9
	v_add_co_ci_u32_e32 v7, vcc_lo, s11, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_4)
	v_ashrrev_i32_e32 v12, 31, v11
	v_ashrrev_i32_e32 v3, 31, v9
	global_load_b32 v0, v[6:7], off offset:-4
	v_lshlrev_b64 v[8:9], 4, v[11:12]
	v_add_nc_u32_e32 v12, -1, v13
	v_lshlrev_b64 v[13:14], 2, v[2:3]
	v_mov_b32_e32 v3, v10
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_co_u32 v8, vcc_lo, s0, v8
	v_add_co_ci_u32_e32 v9, vcc_lo, s1, v9, vcc_lo
	v_add_co_u32 v13, vcc_lo, s10, v13
	v_mov_b32_e32 v2, v12
	v_add_co_ci_u32_e32 v14, vcc_lo, s11, v14, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b128 v[8:9], v[0:3], off
	global_load_b32 v0, v[13:14], off offset:-4
	v_ashrrev_i32_e32 v13, 31, v12
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[2:3], 4, v[12:13]
	v_add_co_u32 v8, vcc_lo, s0, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v9, vcc_lo, s1, v3, vcc_lo
	v_dual_mov_b32 v3, v10 :: v_dual_mov_b32 v2, v11
	s_brev_b32 s0, 1
	s_waitcnt vmcnt(0)
	global_store_b128 v[8:9], v[0:3], off
	global_load_b32 v0, v[6:7], off offset:-4
.LBB15_3:                               ; %ComputeLoop
                                        ; =>This Inner Loop Header: Depth=1
	s_ctz_i32_b32 s1, s4
	s_waitcnt vmcnt(0)
	v_readlane_b32 s5, v0, s1
	s_lshl_b32 s1, 1, s1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_and_not1_b32 s4, s4, s1
	s_max_i32 s0, s0, s5
	s_cmp_lg_u32 s4, 0
	s_cbranch_scc1 .LBB15_3
; %bb.4:                                ; %ComputeEnd
	v_mbcnt_lo_u32_b32 v0, exec_lo, 0
	s_mov_b32 s1, exec_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_eq_u32_e32 0, v0
	s_xor_b32 s1, exec_lo, s1
	s_cbranch_execz .LBB15_6
; %bb.5:
	v_dual_mov_b32 v0, 0 :: v_dual_mov_b32 v1, s0
	global_atomic_max_i32 v0, v1, s[2:3]
.LBB15_6:
	s_or_b32 exec_lo, exec_lo, s1
	v_add_co_u32 v0, vcc_lo, s8, v4
	v_add_co_ci_u32_e32 v1, vcc_lo, s9, v5, vcc_lo
	s_mov_b32 s0, exec_lo
	s_brev_b32 s1, 1
	global_load_b32 v0, v[0:1], off offset:8
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[0:1]
	v_add_co_u32 v0, vcc_lo, s10, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s11, v1, vcc_lo
	global_load_b32 v0, v[0:1], off offset:-4
.LBB15_7:                               ; %ComputeLoop50
                                        ; =>This Inner Loop Header: Depth=1
	s_ctz_i32_b32 s4, s0
	s_waitcnt vmcnt(0)
	v_readlane_b32 s5, v0, s4
	s_lshl_b32 s4, 1, s4
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_and_not1_b32 s0, s0, s4
	s_max_i32 s1, s1, s5
	s_cmp_lg_u32 s0, 0
	s_cbranch_scc1 .LBB15_7
; %bb.8:                                ; %ComputeEnd51
	v_mbcnt_lo_u32_b32 v0, exec_lo, 0
	s_mov_b32 s0, exec_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_eq_u32_e32 0, v0
	s_xor_b32 s0, exec_lo, s0
	s_cbranch_execz .LBB15_10
; %bb.9:
	v_dual_mov_b32 v0, 0 :: v_dual_mov_b32 v1, s1
	global_atomic_max_i32 v0, v1, s[2:3]
.LBB15_10:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 312
		.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 15
		.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_end15:
	.size	_Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_, .Lfunc_end15-_Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 668
; NumSgprs: 18
; NumVgprs: 15
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 15
; 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	_Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi ; -- Begin function _Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi
	.globl	_Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi
	.p2align	8
	.type	_Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi,@function
_Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi: ; @_Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x2c
	s_load_b32 s3, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB16_12
; %bb.1:
	s_clause 0x1
	s_load_b128 s[4:7], s[0:1], 0x8
	s_load_b64 s[0:1], s[0:1], 0x18
	s_mov_b32 s2, exec_lo
	s_waitcnt lgkmcnt(0)
	v_mad_i64_i32 v[2:3], null, v1, 12, s[4:5]
	global_load_b64 v[3:4], v[2:3], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v5, 31, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[4:5], 4, v[4:5]
	v_add_co_u32 v6, vcc_lo, s6, v4
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v7, vcc_lo, s7, v5, vcc_lo
	global_load_b32 v0, v[6:7], off offset:4
	s_waitcnt vmcnt(0)
	v_mov_b32_e32 v6, v0
	v_cmpx_eq_u32_e64 v0, v3
	s_cbranch_execz .LBB16_3
; %bb.2:
	v_add_co_u32 v4, vcc_lo, s6, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s7, v5, vcc_lo
	global_load_b32 v6, v[4:5], off offset:8
.LBB16_3:
	s_or_b32 exec_lo, exec_lo, s2
	v_ashrrev_i32_e32 v2, 31, v1
	s_mov_b32 s8, exec_lo
	s_waitcnt vmcnt(0)
	v_cmpx_lt_i32_e64 v6, v3
	s_cbranch_execz .LBB16_11
; %bb.4:                                ; %.lr.ph.preheader
	v_mad_i64_i32 v[4:5], null, v0, 12, s[4:5]
	s_add_u32 s2, s4, -8
	s_addc_u32 s3, s5, -1
	s_mov_b32 s4, 0
.LBB16_5:                               ; %.lr.ph
                                        ; =>This Inner Loop Header: Depth=1
	v_mov_b32_e32 v3, v6
	s_mov_b32 s5, exec_lo
                                        ; implicit-def: $vgpr6_vgpr7
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_ne_u32_e64 v0, v3
	s_xor_b32 s5, exec_lo, s5
	s_cbranch_execz .LBB16_7
; %bb.6:                                ;   in Loop: Header=BB16_5 Depth=1
	v_mad_i64_i32 v[6:7], null, v3, 12, s[2:3]
	global_load_b32 v6, v[6:7], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v7, 31, v6
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[6:7], 4, v[6:7]
	v_add_co_u32 v6, vcc_lo, s6, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v7, vcc_lo, s7, v7, vcc_lo
	v_add_co_u32 v6, vcc_lo, v6, 4
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v7, vcc_lo, 0, v7, vcc_lo
.LBB16_7:                               ; %Flow
                                        ;   in Loop: Header=BB16_5 Depth=1
	s_and_not1_saveexec_b32 s5, s5
	s_cbranch_execz .LBB16_9
; %bb.8:                                ;   in Loop: Header=BB16_5 Depth=1
	global_load_b32 v6, v[4:5], off offset:-8
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v7, 31, v6
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[6:7], 4, v[6:7]
	v_add_co_u32 v6, vcc_lo, s6, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v7, vcc_lo, s7, v7, vcc_lo
	v_add_co_u32 v6, vcc_lo, v6, 8
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v7, vcc_lo, 0, v7, vcc_lo
.LBB16_9:                               ;   in Loop: Header=BB16_5 Depth=1
	s_or_b32 exec_lo, exec_lo, s5
	global_load_b32 v6, v[6:7], off
	s_waitcnt vmcnt(0)
	v_cmp_ge_i32_e32 vcc_lo, v6, v3
	s_or_b32 s4, vcc_lo, s4
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s4
	s_cbranch_execnz .LBB16_5
; %bb.10:                               ; %Flow48
	s_or_b32 exec_lo, exec_lo, s4
.LBB16_11:                              ; %Flow49
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	s_or_b32 exec_lo, exec_lo, s8
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	v_add_co_u32 v0, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	global_store_b32 v[0:1], v3, off
.LBB16_12:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.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 8
		.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_end16:
	.size	_Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi, .Lfunc_end16-_Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 492
; NumSgprs: 18
; NumVgprs: 8
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 8
; 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
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.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 __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .offset:         4
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         44
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         52
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         54
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         56
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         58
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         60
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         62
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         104
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 296
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z19get_bipartite_graphiiP4edgeP10b_vertex_aP10b_vertex_bP6b_edge.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     17
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .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:           _Z27init_smallest_edges_weightsiPiS_
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z27init_smallest_edges_weightsiPiS_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     5
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .offset:         4
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         36
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         44
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         46
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         48
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         50
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         52
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         54
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         96
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 288
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z18get_smallest_edgesiiP6b_edgePiS1_
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z18get_smallest_edgesiiP6b_edgePiS1_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     9
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         20
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         28
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         30
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         32
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         34
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         36
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         38
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         56
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         80
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 272
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z14mst_edges_initiPb
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z14mst_edges_initiPb.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     3
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         36
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         44
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         46
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         48
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         50
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         52
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         54
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         96
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 288
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z13get_mst_edgesiPiP6b_edgePb
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z13get_mst_edgesiPiP6b_edgePb.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     3
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .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:           _Z11get_num_mstiPbPi
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z11get_num_mstiPbPi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     4
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         36
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         44
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         46
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         48
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         50
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         52
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         54
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         96
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 288
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z15get_strut_edgesiPiP6b_edgeP10strut_edge
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z15get_strut_edgesiPiP6b_edgeP10strut_edge.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     7
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         20
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         28
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         30
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         32
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         34
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         36
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         38
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         56
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         80
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 272
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z12strut_u_initiP14strut_u_vertex
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z12strut_u_initiP14strut_u_vertex.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     3
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .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:           _Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z18get_strut_u_degreeiP10strut_edgeP14strut_u_vertex.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     4
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .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:           _Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z20get_strut_u_verticesiP6b_edgeP14strut_u_vertex.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     8
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .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:           _Z17get_zero_diff_numiP14strut_u_vertexPi
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z17get_zero_diff_numiP14strut_u_vertexPi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     3
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         20
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         28
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         30
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         32
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         34
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         36
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         38
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         56
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         80
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 272
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z19super_vertices_initiPi
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z19super_vertices_initiPi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     4
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         44
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         52
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         54
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         56
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         58
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         60
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         62
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         104
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 296
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z19get_new_bg_vertex_biPiP14strut_u_vertexS_S_.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:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .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:           _Z10prefixCopyiPiS_
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z10prefixCopyiPiS_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     4
    .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:         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:           _Z12getPrefixSumPiS_i
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z12getPrefixSumPiS_i.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     5
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .offset:         56
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         60
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         64
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         68
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         70
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         72
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         74
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         76
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         78
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         104
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         112
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         120
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 312
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z16get_new_bg_edgesiPiS_P14strut_u_vertexS_P6b_edgeS_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     15
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         36
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         44
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         46
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         48
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         50
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         52
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         54
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         96
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 288
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z18get_super_verticesiP10strut_edgeP14strut_u_vertexPi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     8
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
