/*
	Programa: mst_cuda_semGB.c  (Versão 1)
	Descrição: Implementa o Algoritmo para árvore geradora mínima.
	Programadora: Jucele Vasconcellos
	Data: 25/08/2017
	Versão 3: sem o atomicAddD em Calcula_num_zerodiff
	Compilacao:	nvcc -arch sm_30 -o mst_cuda_semGB.exe mst_cuda_semGB.cu
	Execucao:	./st_cuda.exe in/grafo/grafo1000a cuda.out
	
	Entrada de dados: Este programa lê os dados de um grafo no formato
	8
	16
	4 5 0.35
	4 7 0.37
	5 7 0.28
	0 7 0.16
	1 5 0.32
	0 4 0.38
	2 3 0.17
	1 7 0.19
	0 2 0.26
	1 2 0.36
	1 3 0.29
	2 7 0.34
	6 2 0.40
	3 6 0.52
	6 0 0.58
	6 4 0.93

	sendo a primeira linha o número de vértices, a segunda linha o número de arestas
	e as linhas subsequentes as arestas v1 v2 custo
		
	Saída de Dados: Este programa produz um arquivo de saída as arestas que compõem a árvore geradora 
*/

#include <stdio.h> // printf
#include<stdbool.h> // true, false
#include <stdlib.h> //malloc
#include <time.h> //clock
#include <cuda.h>
#include <cuda_runtime.h>

// Grafo Original
typedef struct { 
	unsigned int v, u;
	unsigned int grau_st;
} aresta;


typedef struct { 
	int n, m;
	aresta *arestas;
	float *custos;
} grafo;

typedef struct {
	int v1, v2;
} aresta_E;


// Funções e Procedimentos

static void HandleError(cudaError_t err, const char *file, int line)
{
    if (err != cudaSuccess)
    {
        printf("%s in %s at line %d\n", cudaGetErrorString(err), file, line );
        exit(EXIT_FAILURE);
    }
}

#define CHECK_ERROR(err) (HandleError(err, __FILE__, __LINE__))

grafo LeGrafo(char *);
__device__ double atomicAddD(double* address, float val);
__global__ void EncontraMenorAresta1(aresta*, float*, int*, int, int);
__global__ void EncontraMenorAresta2(aresta*, float*, int*, int, int);
__global__ void MarcarArestas_Strut(aresta*, int*, int);
__global__ void Calcula_num_zerodiff(aresta*, float*, int, int*, unsigned int*, unsigned int*, double*);
__global__ void Inicializa_arestasE_C(aresta*, int*, int, int*, aresta_E*, unsigned int*);
__global__ void AtualizaC_1(aresta_E*, int*, int*, int); 
__global__ void DefineNovosVU(int*, int, char *, unsigned int *); 
__global__ void AtualizaC_3(int*, int, char *); 
__global__ void MarcarArestas(aresta *, int*, int, int);



// Função Principal
int main (int argc, char** argv){
	grafo G;
	double tempoTotal, tempo1, tempo2;
	double tempo1p, tempo2p;
	int *SolutionEdgeSet;
	int SolutionSize, i, it;
	double SolutionVal;
	int num_zerodiff;
	FILE *Arq;
		
	int dimBloco, dimGrid;
	aresta *d_arestas;
	float *d_custos;
	int *d_SolutionEdgeSet;
	unsigned int *d_SolutionSize, *d_num_zerodiff;
	double *d_SolutionVal;
	int *d_menorAresta;
	int n;
	
	
	// Passo 1: Verificação de parâmetros
	// Passo 2: Leitura dos dados do grafo 
	// Passo 3: Criação do grafo bipartido correspondente às arestas recebidas
	// Passo 4: Encontra a solução
		// Passo 4.1: Escolher arestas que comporão a strut
		// Passo 4.2: Calcular o num_zerodiff e computar novas componenetes conexas
		// Passo 4.3: Compactar o grafo
	
	
	// ==============================================================================
	// Passo 1: Verificação de parâmetros
	// ==============================================================================
	
	//Verificando os parametros
	if(argc < 3 ){
	   printf( "\nParametros incorretos\n Uso: ./cms_seq.exe <ArqEntrada> <ArqSaida> <dimBloco> <S/N> onde:\n" );
	   printf( "\t <ArqEntrada> (obrigatorio) - Nome do arquivo com as informações do grafo (número de vértices, número de arestas e arestas.\n" );
		printf( "\t <ArqSaida> (obrigatorio) - Nome do arquivo de saida.\n" );
		printf( "\t <S ou N> - Mostrar ou não as arestas da MST.\n" );
		return 0;
	} 	
	//Define a dimensão do bloco fixada em 32 threads
	//dimBloco = 32;
	dimBloco = 64;
	
	// ==============================================================================
	// Passo 2: Leitura dos dados do Grafo G
	// ==============================================================================
	tempo1p = (double) clock( ) / CLOCKS_PER_SEC;
	G = LeGrafo(argv[1]);
	n = G.n;
// 	printf("****************************\n");
// 	printf("****** GRAFO ORIGINAL ******\n");
// 	MostraGrafoOriginal(GO);
	
// 	printf("Grafo de entrada lido\n");
	
	//Alocação de variável para armazenar solução
	SolutionEdgeSet = (int *) malloc((G.n-1)*sizeof(int)); 
	//Aloca memória no device para as arestas da d_SolutionEdgeSet
	CHECK_ERROR(cudaMalloc((void **) &d_SolutionEdgeSet, G.n * sizeof(int)));
	SolutionSize = 0;
	SolutionVal = 0;
	//Aloca memória no device para a variável d_SolutionSize
	CHECK_ERROR(cudaMalloc((void **) &d_SolutionSize, sizeof(unsigned int)));
	//Inicializa d_SolutionSize com 0
 	CHECK_ERROR(cudaMemset(d_SolutionSize, 0, sizeof(unsigned int)));
	//Aloca memória no device para a variável d_SolutionVal
	CHECK_ERROR(cudaMalloc((void **) &d_SolutionVal, sizeof(double)));
	//Inicializa d_SolutionVal com 0
 	CHECK_ERROR(cudaMemset(d_SolutionVal, 0, sizeof(double)));
	//Aloca memória no device para a variável d_num_zerodiff
	CHECK_ERROR(cudaMalloc((void **) &d_num_zerodiff, sizeof(unsigned int)));

	tempo2p = (double) clock( ) / CLOCKS_PER_SEC;
//  	printf("Tempo Passo 2: %lf\n", tempo2p - tempo1p);
	
	// ==============================================================================
	// Passo 3: Tranfere informações para device e inicializa variáveis
	// ==============================================================================
	//Iniciando contagem do tempo
	tempo1 = (double) clock( ) / CLOCKS_PER_SEC;
	tempo1p = (double) clock( ) / CLOCKS_PER_SEC;
	
	//Aloca memória no device para as arestas do grafo
	CHECK_ERROR(cudaMalloc((void **) &d_arestas, G.m * sizeof(aresta)));
	//Copia as arestas do grafo do host para o device
	CHECK_ERROR(cudaMemcpy(d_arestas, G.arestas, G.m * sizeof(aresta), cudaMemcpyHostToDevice));
	
	//Aloca memória no device para as arestas do grafo
	CHECK_ERROR(cudaMalloc((void **) &d_custos, G.m * sizeof(float)));
	//Copia as arestas do grafo do host para o device
	CHECK_ERROR(cudaMemcpy(d_custos, G.custos, G.m * sizeof(float), cudaMemcpyHostToDevice));

	//Aloca memória no device para o vetor d_menorAresta
	CHECK_ERROR(cudaMalloc((void **) &d_menorAresta, G.n * sizeof(int)));
	
	
	tempo2p = (double) clock( ) / CLOCKS_PER_SEC;
//  	printf("Tempo Passo 3: %lf\n", tempo2p - tempo1p);
	
	// ==============================================================================
	// Passo 4: Encontra solução
	// ==============================================================================
	
	it = 0;
	num_zerodiff = 0;
	while(num_zerodiff != 1)
	{
		// ==============================================================================
		// Passo 4.1: Escolher arestas que comporão a strut
		// ==============================================================================
		tempo1p = (double) clock( ) / CLOCKS_PER_SEC;

		//Inicializa d_menorAresta com -1
		CHECK_ERROR(cudaMemset(d_menorAresta, -1, G.n * sizeof(int)));
		
		//Chama kernel para encontrar menorAresta de cada v
		dimGrid = ((G.m-1)/dimBloco)+1;
		EncontraMenorAresta1<<<dimGrid, dimBloco>>>(d_arestas, d_custos, d_menorAresta, G.m, G.n);
// 		if(it >= 0)
// 		{
// 			printf("Após EncontraMenorAresta1\n");
// 			int *h_menorAresta;
// 			h_menorAresta = (int *) malloc(G.n * sizeof(int)); 
// 			CHECK_ERROR(cudaMemcpy(h_menorAresta, d_menorAresta, G.n * sizeof(int), cudaMemcpyDeviceToHost));
// 			for(i = 0; i < n; i++)
// 				printf("MenorAresta[%d] = %d\n", i, h_menorAresta[i]);
// 			free(h_menorAresta);
// 		}
		dimGrid = ((G.m-1)/dimBloco)+1;
		EncontraMenorAresta2<<<dimGrid, dimBloco>>>(d_arestas, d_custos, d_menorAresta, G.m, G.n);
// 		if(it >= 0)
// 		{
// 			printf("Após EncontraMenorAresta2\n");
// 			int *h_menorAresta;
// 			h_menorAresta = (int *) malloc(G.n * sizeof(int)); 
// 			CHECK_ERROR(cudaMemcpy(h_menorAresta, d_menorAresta, G.n * sizeof(int), cudaMemcpyDeviceToHost));
// 			for(i = 0; i < n; i++)
// 				printf("MenorAresta[%d] = %d\n", i, h_menorAresta[i]);
// 			free(h_menorAresta);
// 		}
		
		
		//Chama kernel para marcar arestas da Strut
		dimGrid = ((n-1)/dimBloco)+1;
		MarcarArestas_Strut<<<dimGrid, dimBloco>>>(d_arestas, d_menorAresta, n);
		
		tempo2p = (double) clock( ) / CLOCKS_PER_SEC;
//  		printf("Tempo Passo 4.1: %lf\n", tempo2p - tempo1p);
		
		// ==============================================================================
		// Passo 4.2: Calcular o num_zerodiff
		// ==============================================================================
		tempo1p = (double) clock( ) / CLOCKS_PER_SEC;

		//Inicializa d_num_zerodiff com 0
		CHECK_ERROR(cudaMemset(d_num_zerodiff, 0, sizeof(unsigned int)));
	
		//Chama kernel para calcular num_zerodiff e preencher SolutionEdgeSet
		dimGrid = ((G.m-1)/dimBloco)+1;
		Calcula_num_zerodiff<<<dimGrid, dimBloco>>>(d_arestas, d_custos, G.m, d_SolutionEdgeSet, d_SolutionSize, d_num_zerodiff, d_SolutionVal);
		
		CHECK_ERROR(cudaMemcpy(&num_zerodiff, d_num_zerodiff, sizeof(unsigned int), cudaMemcpyDeviceToHost));
 
		tempo2p = (double) clock( ) / CLOCKS_PER_SEC;
//   		printf("Tempo Passo 4.2: %lf     it = %d     num_zerodiff = %d     SolutionSize = %d\n", tempo2p - tempo1p, it, num_zerodiff, SolutionSize);
		
		// ==============================================================================
		// Passo 4.3: Compactar o grafo
		// ==============================================================================
		if(num_zerodiff != 1)
		{
			// ==============================================================================
			// Passo 4.3.1: Computar componenetes conexas
			// ==============================================================================
			tempo1p = (double) clock( ) / CLOCKS_PER_SEC;

			//Declara variável d_aux
			unsigned int *d_aux;
			//Aloca memória no device para a variável d_aux
			CHECK_ERROR(cudaMalloc((void **) &d_aux, sizeof(unsigned int)));
			//Inicializa d_aux com 0
			CHECK_ERROR(cudaMemset(d_aux, 0, sizeof(unsigned int)));

			//Declara variável d_arestasE
			aresta_E *d_arestasE;
			//Aloca memória no device para a variável d_arestasE
			CHECK_ERROR(cudaMalloc((void **) &d_arestasE, n * sizeof(aresta_E)));

			//Declara variável d_CD
			int *d_C;
			//Aloca memória no device para a variável d_CD
			CHECK_ERROR(cudaMalloc((void **) &d_C, n * sizeof(int)));
			
			//Chama kernel para inicializar d_arestasE e d_C
			dimGrid = ((n-1)/dimBloco)+1;
			Inicializa_arestasE_C<<<dimGrid, dimBloco>>>(d_arestas, d_menorAresta, n, d_C, d_arestasE, d_aux);
			
			int h_fim, *d_fim;
			CHECK_ERROR(cudaMalloc((void**)&d_fim, sizeof(int)));
			dimGrid = ((n-1-num_zerodiff)/dimBloco)+1;
			do
			{
				h_fim = 0;
				CHECK_ERROR(cudaMemcpy(d_fim, &h_fim, sizeof(int), cudaMemcpyHostToDevice));
				AtualizaC_1<<<dimGrid, dimBloco>>>(d_arestasE, d_C, d_fim, n-num_zerodiff);
				CHECK_ERROR(cudaMemcpy(&h_fim, d_fim, sizeof(int), cudaMemcpyDeviceToHost));		
			}while (h_fim == 1);
			
			CHECK_ERROR(cudaDeviceSynchronize());
			
			//Declara variável d_aux2
			char *d_aux2;
			//Aloca memória no device para a variável d_aux2
			CHECK_ERROR(cudaMalloc((void **) &d_aux2, n * sizeof(char)));
			//Inicializa d_aux2 com 0
			CHECK_ERROR(cudaMemset(d_aux2, 0, n * sizeof(char)));
			//Inicializa d_aux com 0
			CHECK_ERROR(cudaMemset(d_aux, 0, sizeof(unsigned int)));
			//Chama kernel para atualizar d_C
			dimGrid = ((n-1)/dimBloco)+1;
// 			printf("Vou chamar DefineNovosVU para dimGrid = %d  e  dimBloco = %d   com n = %d\n", dimGrid, dimBloco, n);
			DefineNovosVU<<<dimGrid, dimBloco>>>(d_C, n, d_aux2, d_aux);
			
			CHECK_ERROR(cudaDeviceSynchronize());
			
			//Chama kernel para atualizar d_C
			dimGrid = ((n-1)/dimBloco)+1;
			AtualizaC_3<<<dimGrid, dimBloco>>>(d_C, n, d_aux2);
			
			//Liberando variáveis
			CHECK_ERROR(cudaFree(d_aux));
			CHECK_ERROR(cudaFree(d_arestasE));
			CHECK_ERROR(cudaFree(d_fim));
			CHECK_ERROR(cudaFree(d_aux2));

			tempo2p = (double) clock( ) / CLOCKS_PER_SEC;
//  			printf("Tempo Passo 4.3.1: %lf\n", tempo2p - tempo1p);
			
			// ==============================================================================
			// Passo 4.3.2: Marcar arestas
			// ==============================================================================
			tempo1p = (double) clock( ) / CLOCKS_PER_SEC;
			
			//Marca as arestas para remoção
			dimGrid = ((G.m-1)/dimBloco)+1;
			MarcarArestas<<<dimGrid, dimBloco>>>(d_arestas, d_C, G.m, G.n);
			
			CHECK_ERROR(cudaDeviceSynchronize());
			
			CHECK_ERROR(cudaFree(d_C));
			
			
// 			aresta *h_arestas;
// 			h_arestas = (aresta *) malloc(G.m * sizeof(aresta)); 
// 			CHECK_ERROR(cudaMemcpy(h_arestas, d_arestas, G.m * sizeof(aresta), cudaMemcpyDeviceToHost));
// 			for(i = 0; i < G.m; i++)
// 				if(h_arestas[i].v != G.n)
// 					printf("Aresta[%d]     v = %d    u = %d\n", i, h_arestas[i].v, h_arestas[i].u);
// 			free(h_arestas);
			
						
			tempo2p = (double) clock( ) / CLOCKS_PER_SEC;
//  			printf("Tempo Passo 4.3.2: %lf\n", tempo2p - tempo1p);		
		}

		it++;
		n = num_zerodiff;
	} // fim while(num_zerodiff != 1)
	
	
	// Copia a Solução para o host
// 	CHECK_ERROR(cudaMemcpy(&SolutionVal, d_SolutionVal, sizeof(double), cudaMemcpyDeviceToHost));
	CHECK_ERROR(cudaMemcpy(&SolutionSize, d_SolutionSize, sizeof(unsigned int), cudaMemcpyDeviceToHost));
	CHECK_ERROR(cudaMemcpy(SolutionEdgeSet, d_SolutionEdgeSet, (G.n-1) * sizeof(int), cudaMemcpyDeviceToHost));
	
	SolutionVal = 0;
	for(i = 0; i < SolutionSize; i++)
		SolutionVal += G.custos[SolutionEdgeSet[i]];
	
	tempo2 = (double) clock( ) / CLOCKS_PER_SEC;
	tempoTotal = tempo2 - tempo1;

	printf("%lf\n", tempoTotal);

	Arq = fopen(argv[2], "a");
	fprintf(Arq, "\n*** Input file: %s\n", argv[1]);
	fprintf(Arq, "Total Time: %lf\n", tempoTotal); 
	fprintf(Arq, "Number of iterations: %d\n", it);
	fprintf(Arq, "SolutionSize: %d\n", SolutionSize);
	fprintf(Arq, "SolutionValue: %f\n", SolutionVal);

  	if((argc == 4) && (argv[3][0] == 'S' || argv[3][0] == 's'))
	{
  		fprintf(Arq, "*** MST formed by %d edges\n", SolutionSize);
  		for(i = 0; i < SolutionSize; i++)
  			fprintf(Arq, "Edge %d - %d\n", G.arestas[SolutionEdgeSet[i]].v, G.arestas[SolutionEdgeSet[i]].u);
  	}
  	fclose(Arq);

	
	// Liberando variávais alocadas no device
	CHECK_ERROR(cudaFree(d_SolutionEdgeSet));
	CHECK_ERROR(cudaFree(d_SolutionSize));
	CHECK_ERROR(cudaFree(d_SolutionVal));
	CHECK_ERROR(cudaFree(d_num_zerodiff));
	CHECK_ERROR(cudaFree(d_arestas));
	CHECK_ERROR(cudaFree(d_custos));
	CHECK_ERROR(cudaFree(d_menorAresta));
	
	// Liberando variávais alocadas no host
	free(G.arestas);
	free(G.custos);
	free(SolutionEdgeSet);
	
	return 0;

}


// ==============================================================================
// Função LeGrafo:  Lê as informações do Grafo de um arquivo e armazena em uma 
//                  estrutura
// ==============================================================================
grafo LeGrafo(char *Arquivo){
	int i, aux;
	grafo G;
	FILE *Arq;
    
   Arq = fopen(Arquivo, "r");

   i = 0;
	fscanf(Arq,"%d",&i);
	G.n = i;
	
	fscanf(Arq,"%d",&i);
	G.m = i;
	
	G.arestas = (aresta *) malloc(G.m*sizeof(aresta)); 
	G.custos = (float *) malloc(G.m*sizeof(float));
	
	for(i = 0; i < G.m; i++){
		fscanf(Arq,"%d",&G.arestas[i].u);
		fscanf(Arq,"%d",&G.arestas[i].v);
		if(G.arestas[i].v > G.arestas[i].u)
		{
			aux = G.arestas[i].v;
			G.arestas[i].v = G.arestas[i].u;
			G.arestas[i].u = aux;
		}
		fscanf(Arq,"%f",&G.custos[i]);
		G.arestas[i].grau_st = 0;
	}
	
	fclose(Arq);
   return G;
}

__device__ double atomicAddD(double* address, float val) 
{
	unsigned long long int* address_as_ull = (unsigned long long int*)address; 
	unsigned long long int old = *address_as_ull, assumed; 
	do { 
		assumed = old; 
		old = atomicCAS(address_as_ull, assumed, __double_as_longlong(val + __longlong_as_double(assumed))); 
	} while (assumed != old); 
	return __longlong_as_double(old); 
}


// ==============================================================================
// Função EncontraMenorAresta1:  Para cada vértice v encontra o id da aresta menor
// ==============================================================================
__global__ void EncontraMenorAresta1(aresta* arestas, float *custos, int* menorAresta, int m, int n)
{
	int id = threadIdx.x + blockDim.x * blockIdx.x;
	int x, aux;
	int old;
	
	if( id < m )
	{
		if(arestas[id].v != n)
		{
			x = arestas[id].v;
// 			printf("1.1 Aresta %d   v = %d   u = %d  custo = %f    menorAresta[%d] = %d\n", id, arestas[id].v, arestas[id].u, custos[id], x, menorAresta[x]);
			if((menorAresta[x] == -1) || 
				(custos[menorAresta[x]] > custos[id]) ||
			   ((custos[menorAresta[x]] == custos[id]) && (menorAresta[x] > id)))
			{
				aux = -1;
				// atomicCAS = atomic Compare And Swap
				// lê o conteúdo endereçado por menorAresta[x] e o armazena em old.  
				// computa (old == aux ? meu_id: old)
				// ou seja se (old == aux) então menorAresta[x] = id
				//         senão menorAresta[x] = old
				// retorna old
				old = atomicCAS(&menorAresta[x], aux, id);		
				if(old != aux)
				{		
					while(((custos[old] > custos[id]) || ((custos[old] == custos[id]) && (old > id))) && (old != aux))
					{
						aux = atomicCAS(&menorAresta[x], old, id);
						if(old != aux)
						{
							old = aux;
							aux = -1;
						}
					}// fim while((old > id) && (old != aux))
				} // fim if(old_id != aux)
// 				printf("1.2 Aresta %d   v = %d   u = %d  custo = %f    menorAresta[%d] = %d\n", id, arestas[id].v, arestas[id].u, custos[id], x, menorAresta[x]);
			} // fim if((menorAresta[x] == -1) || (menorAresta[x] > id))
		} // fim if(arestas[id].v != n)
	} //fim if( id < m )
}

// ==============================================================================
// Função EncontraMenorAresta2:  Para cada vértice v encontra o id da aresta menor
// ==============================================================================
__global__ void EncontraMenorAresta2(aresta* arestas, float *custos, int* menorAresta, int m, int n)
{
	int id = threadIdx.x + blockDim.x * blockIdx.x;
	int x, aux;
	int old;
	
	if( id < m )
	{
		if(arestas[id].v != n)
		{
			x = arestas[id].u;
// 			printf("2.1 Aresta %d   v = %d   u = %d  custo = %f    menorAresta[%d] = %d\n", id, arestas[id].v, arestas[id].u, custos[id], x, menorAresta[x]);
			if((menorAresta[x] == -1) || 
				(custos[menorAresta[x]] > custos[id]) ||
			   ((custos[menorAresta[x]] == custos[id]) && (menorAresta[x] > id)))
			{
				aux = -1;
				// atomicCAS = atomic Compare And Swap
				// lê o conteúdo endereçado por menorAresta[x] e o armazena em old.  
				// computa (old == aux ? meu_id: old)
				// ou seja se (old == aux) então menorAresta[x] = id
				//         senão menorAresta[x] = old
				// retorna old
				old = atomicCAS(&menorAresta[x], aux, id);		
				if(old != aux)
				{
					while(((custos[old] > custos[id]) || ((custos[old] == custos[id]) && (old > id))) && (old != aux))
					{
						aux = atomicCAS(&menorAresta[x], old, id);
						if(old != aux)
						{
							old = aux;
							aux = -1;
						}
					}// fim while((old > id) && (old != aux))
				} // fim if(old_id != aux)
// 				printf("2.2 Aresta %d   v = %d   u = %d  custo = %f    menorAresta[%d] = %d\n", id, arestas[id].v, arestas[id].u, custos[id], x, menorAresta[x]);
			} // if((menorAresta[x] == -1) || (menorAresta[x] > id))
		} // fim if(arestas[id].v != n)
	} //fim if( id < m )
}


// ==============================================================================
// Função MarcarArestas_Strut:  Para cada vértice v marca aresta pertencente a strut
// ==============================================================================
__global__ void MarcarArestas_Strut(aresta* d_arestas, int* d_menorAresta, int n)
{
	int id = threadIdx.x + blockDim.x * blockIdx.x;
	if( id < n )
	{
		atomicInc(&d_arestas[d_menorAresta[id]].grau_st, UINT_MAX);
// 		printf("MenorAresta[%d] = %d\n", id, d_menorAresta[id]);
	}
}


// ==============================================================================
// Função Calcula_num_zerodiff:  Calcula o número de vértices zero diferença e
//                               preenche o vetor d_SolutionEdgeSet
// ==============================================================================
__global__ void Calcula_num_zerodiff(aresta* arestas, float *custos, int m, int* SolutionEdgeSet, unsigned int* SolutionSize, unsigned int* num_zerodiff, double* SolutionVal)
{
	int id = threadIdx.x + blockDim.x * blockIdx.x;
	int pos;
	
	if( id < m )
	{
		if(arestas[id].grau_st > 0)
		{
			pos = atomicInc(&SolutionSize[0], UINT_MAX);
			SolutionEdgeSet[pos] = id;
// 			atomicAddD(&SolutionVal[0], custos[id]);
			if(arestas[id].grau_st == 2)
			{
				pos = atomicInc(&num_zerodiff[0], UINT_MAX);
// 				printf("num_zerodiff = %d\n", num_zerodiff[0]);
			}
		}
	}
}




// ==============================================================================
// Função Inicializa_arestasE_CD:  Inicializa as variáveis CD, arestasE e arestasE_size
// ==============================================================================
__global__ void Inicializa_arestasE_C(aresta *arestas, int *menorAresta, int n, int *C, aresta_E *arestasE, unsigned int *arestasE_size)
{
	int id = threadIdx.x + blockDim.x * blockIdx.x;
	int pos;
	
	if( id < n )
	{
		if((arestas[menorAresta[id]].grau_st == 1) || (((arestas[menorAresta[id]].grau_st == 2)) && (id == arestas[menorAresta[id]].v)))
		{
			pos = atomicInc(&arestasE_size[0], UINT_MAX);
			arestasE[pos].v1 = arestas[menorAresta[id]].v;
			arestasE[pos].v2 = arestas[menorAresta[id]].u;
// 			printf("Thread %d    arestasE[%d]   v1 = %d   v2 = %d\n", id, pos, arestasE[pos].v1, arestasE[pos].v2);
		}
		C[id] = id;
	}
}


// ==============================================================================
// Função AtualizaC_1: Atualiza vetor C para definição das componentes conexas
// ==============================================================================
__global__ void AtualizaC_1(aresta_E *arestasE, int* C, int *m, int n) 
{
	int id = threadIdx.x + blockDim.x * blockIdx.x;
	int c1, c2, v1, v2;
	
	if(id < n)
	{
		v1 = arestasE[id].v1;
		v2 = arestasE[id].v2;
		c1 = C[v1];
		c2 = C[v2];
		if(c1 < c2)
		{
			atomicMin(&C[v2], c1);
			m[0] = 1;
		}
		else if(c2 < c1)
		{
			atomicMin(&C[v1], c2);
			m[0] = 1;
		}
	}
}


// ==============================================================================
// Função DefineNovosVU: Atualiza vetor C
// ==============================================================================
__global__ void DefineNovosVU(int* C, int n, char *marcador, unsigned int *num_comp) 
{
	int id = threadIdx.x + blockDim.x * blockIdx.x;
	int pos;
	
	if(id < n)
	{
		if(C[id] == id)
		{
			pos = atomicInc(&num_comp[0], UINT_MAX);
			C[id] = pos;
			marcador[id] = 1;
			//printf("C2[%d] = %d\n", id, C[id]);
		}
	}	
}


// ==============================================================================
// Função AtualizaC_3: Atualiza vetor C
// ==============================================================================
__global__ void AtualizaC_3(int* C, int n, char *marcador) 
{
	int id = threadIdx.x + blockDim.x * blockIdx.x;
	
	if(id < n)
	{
		if(marcador[id] == 0)
		{
			C[id] = C[C[id]];
 			//printf("C3[%d] = %d\n", id, C[id]);
		}
	}	
}


// ==============================================================================
// Função MarcarArestas:  Marca as arestas do grafo a serem removidas
// ==============================================================================
__global__ void MarcarArestas(aresta *arestas, int* C, int m, int n)
{
	int id = threadIdx.x + blockDim.x * blockIdx.x;
	int x, y;
	
	if( id < m )
	{
		if(arestas[id].v != n)
		{
			x = C[arestas[id].v];
			y = C[arestas[id].u];
		
			if( x !=  y )
			{
				arestas[id].v = x;
				arestas[id].u = y;
			}
			else
			{
				arestas[id].v = n;
				arestas[id].u = n;
			}
			arestas[id].grau_st = 0;
		}
	} //fim if( id < m )
}



	.file	"tmpxft_003308e0_00000000-6_mst_cuda_semGB.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2033:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2033:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/home/ubuntu/Datasets/stackv2/train-structured/jucele/NewMinimumSpanningTree/master/mst_cuda_semGB.cu"
.LC1:
	.string	"%s in %s at line %d\n"
	.text
	.type	_ZL11HandleError9cudaErrorPKci.constprop.0, @function
_ZL11HandleError9cudaErrorPKci.constprop.0:
.LFB2191:
	.cfi_startproc
	testl	%edi, %edi
	je	.L2
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	%esi, 12(%rsp)
	call	cudaGetErrorString@PLT
	movl	12(%rsp), %r8d
	movl	$2, %edi
	leaq	.LC0(%rip), %rcx
	movq	%rax, %rdx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$1, %edi
	call	exit@PLT
.L2:
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2191:
	.size	_ZL11HandleError9cudaErrorPKci.constprop.0, .-_ZL11HandleError9cudaErrorPKci.constprop.0
	.section	.rodata.str1.1
.LC2:
	.string	"r"
.LC3:
	.string	"%d"
.LC4:
	.string	"%f"
	.text
	.globl	_Z7LeGrafoPc
	.type	_Z7LeGrafoPc, @function
_Z7LeGrafoPc:
.LFB2029:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC4(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC3(%rip), %r13
	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
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	leaq	.LC2(%rip), %rsi
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rbp
	call	fopen@PLT
	xorl	%esi, %esi
	movq	%rbp, %rdx
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movl	%esi, 20(%rsp)
	movq	%r13, %rsi
	call	__isoc23_fscanf@PLT
	movl	20(%rsp), %eax
	movq	%rbp, %rdx
	movq	%r13, %rsi
	movq	8(%rsp), %rdi
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	call	__isoc23_fscanf@PLT
	movslq	20(%rsp), %r12
	imulq	$12, %r12, %rdi
	movl	%r12d, 4(%rbx)
	movq	%r12, %r14
	call	malloc@PLT
	leaq	0(,%r12,4), %rdi
	movq	%rax, 8(%rbx)
	movq	%rax, %rbp
	call	malloc@PLT
	movq	%rax, 16(%rbx)
	movq	%rax, %r12
	xorl	%eax, %eax
.L9:
	movl	%eax, 20(%rsp)
	cmpl	%eax, %r14d
	jle	.L14
	cltq
	movq	8(%rsp), %rdi
	movq	%r13, %rsi
	imulq	$12, %rax, %rax
	leaq	4(%rbp,%rax), %rdx
	xorl	%eax, %eax
	call	__isoc23_fscanf@PLT
	movslq	20(%rsp), %rdx
	movq	%r13, %rsi
	xorl	%eax, %eax
	movq	8(%rsp), %rdi
	imulq	$12, %rdx, %rdx
	addq	%rbp, %rdx
	call	__isoc23_fscanf@PLT
	movslq	20(%rsp), %rdx
	imulq	$12, %rdx, %rax
	addq	%rbp, %rax
	movl	(%rax), %ecx
	movl	4(%rax), %esi
	cmpl	%ecx, %esi
	jnb	.L10
	movl	%esi, (%rax)
	movl	%ecx, 4(%rax)
.L10:
	movq	8(%rsp), %rdi
	leaq	(%r12,%rdx,4), %rdx
	movq	%r15, %rsi
	xorl	%eax, %eax
	call	__isoc23_fscanf@PLT
	movslq	20(%rsp), %rdx
	xorl	%ecx, %ecx
	movq	%rdx, %rax
	imulq	$12, %rdx, %rdx
	incl	%eax
	movl	%ecx, 8(%rbp,%rdx)
	jmp	.L9
.L14:
	movq	8(%rsp), %rdi
	call	fclose@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	movq	%rbx, %rax
	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
.LFE2029:
	.size	_Z7LeGrafoPc, .-_Z7LeGrafoPc
	.globl	_Z10atomicAddDPdf
	.type	_Z10atomicAddDPdf, @function
_Z10atomicAddDPdf:
.LFB2030:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE2030:
	.size	_Z10atomicAddDPdf, .-_Z10atomicAddDPdf
	.globl	_Z52__device_stub__Z20EncontraMenorAresta1P6arestaPfPiiiP6arestaPfPiii
	.type	_Z52__device_stub__Z20EncontraMenorAresta1P6arestaPfPiiiP6arestaPfPiii, @function
_Z52__device_stub__Z20EncontraMenorAresta1P6arestaPfPiiiP6arestaPfPiii:
.LFB2055:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	32(%rsp), %rdx
	movl	%ecx, 4(%rsp)
	leaq	40(%rsp), %rcx
	movl	%r8d, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 120(%rsp)
	movq	%rsp, %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L17
	pushq	40(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z20EncontraMenorAresta1P6arestaPfPiii(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 176
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L17:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2055:
	.size	_Z52__device_stub__Z20EncontraMenorAresta1P6arestaPfPiiiP6arestaPfPiii, .-_Z52__device_stub__Z20EncontraMenorAresta1P6arestaPfPiiiP6arestaPfPiii
	.globl	_Z20EncontraMenorAresta1P6arestaPfPiii
	.type	_Z20EncontraMenorAresta1P6arestaPfPiii, @function
_Z20EncontraMenorAresta1P6arestaPfPiii:
.LFB2056:
	.cfi_startproc
	endbr64
	jmp	_Z52__device_stub__Z20EncontraMenorAresta1P6arestaPfPiiiP6arestaPfPiii
	.cfi_endproc
.LFE2056:
	.size	_Z20EncontraMenorAresta1P6arestaPfPiii, .-_Z20EncontraMenorAresta1P6arestaPfPiii
	.globl	_Z52__device_stub__Z20EncontraMenorAresta2P6arestaPfPiiiP6arestaPfPiii
	.type	_Z52__device_stub__Z20EncontraMenorAresta2P6arestaPfPiiiP6arestaPfPiii, @function
_Z52__device_stub__Z20EncontraMenorAresta2P6arestaPfPiiiP6arestaPfPiii:
.LFB2057:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	32(%rsp), %rdx
	movl	%ecx, 4(%rsp)
	leaq	40(%rsp), %rcx
	movl	%r8d, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 120(%rsp)
	movq	%rsp, %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L22
	pushq	40(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z20EncontraMenorAresta2P6arestaPfPiii(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 176
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L22:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2057:
	.size	_Z52__device_stub__Z20EncontraMenorAresta2P6arestaPfPiiiP6arestaPfPiii, .-_Z52__device_stub__Z20EncontraMenorAresta2P6arestaPfPiiiP6arestaPfPiii
	.globl	_Z20EncontraMenorAresta2P6arestaPfPiii
	.type	_Z20EncontraMenorAresta2P6arestaPfPiii, @function
_Z20EncontraMenorAresta2P6arestaPfPiii:
.LFB2058:
	.cfi_startproc
	endbr64
	jmp	_Z52__device_stub__Z20EncontraMenorAresta2P6arestaPfPiiiP6arestaPfPiii
	.cfi_endproc
.LFE2058:
	.size	_Z20EncontraMenorAresta2P6arestaPfPiii, .-_Z20EncontraMenorAresta2P6arestaPfPiii
	.globl	_Z48__device_stub__Z19MarcarArestas_StrutP6arestaPiiP6arestaPii
	.type	_Z48__device_stub__Z19MarcarArestas_StrutP6arestaPiiP6arestaPii, @function
_Z48__device_stub__Z19MarcarArestas_StrutP6arestaPiiP6arestaPii:
.LFB2059:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	32(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L27
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z19MarcarArestas_StrutP6arestaPii(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 160
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 152
	popq	%rdx
	.cfi_def_cfa_offset 144
.L27:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2059:
	.size	_Z48__device_stub__Z19MarcarArestas_StrutP6arestaPiiP6arestaPii, .-_Z48__device_stub__Z19MarcarArestas_StrutP6arestaPiiP6arestaPii
	.globl	_Z19MarcarArestas_StrutP6arestaPii
	.type	_Z19MarcarArestas_StrutP6arestaPii, @function
_Z19MarcarArestas_StrutP6arestaPii:
.LFB2060:
	.cfi_startproc
	endbr64
	jmp	_Z48__device_stub__Z19MarcarArestas_StrutP6arestaPiiP6arestaPii
	.cfi_endproc
.LFE2060:
	.size	_Z19MarcarArestas_StrutP6arestaPii, .-_Z19MarcarArestas_StrutP6arestaPii
	.globl	_Z58__device_stub__Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_PdP6arestaPfiPiPjS3_Pd
	.type	_Z58__device_stub__Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_PdP6arestaPfiPiPjS3_Pd, @function
_Z58__device_stub__Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_PdP6arestaPfiPiPjS3_Pd:
.LFB2061:
	.cfi_startproc
	endbr64
	subq	$200, %rsp
	.cfi_def_cfa_offset 208
	movq	208(%rsp), %rax
	movq	%rdi, 56(%rsp)
	leaq	80(%rsp), %rdi
	movq	%rsi, 48(%rsp)
	leaq	92(%rsp), %rsi
	movl	%edx, 44(%rsp)
	leaq	64(%rsp), %rdx
	movq	%rcx, 32(%rsp)
	leaq	72(%rsp), %rcx
	movq	%r8, 24(%rsp)
	movq	%r9, 16(%rsp)
	movq	%rax, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 184(%rsp)
	xorl	%eax, %eax
	leaq	56(%rsp), %rax
	movl	$1, 88(%rsp)
	movq	%rax, 128(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	44(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 176(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 80(%rsp)
	movq	%rax, 92(%rsp)
	movl	$1, 100(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L32
	pushq	72(%rsp)
	.cfi_def_cfa_offset 216
	leaq	_Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd(%rip), %rdi
	pushq	72(%rsp)
	.cfi_def_cfa_offset 224
	movq	108(%rsp), %rcx
	movl	116(%rsp), %r8d
	movq	96(%rsp), %rsi
	movl	104(%rsp), %edx
	leaq	144(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 216
	popq	%rdx
	.cfi_def_cfa_offset 208
.L32:
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	addq	$200, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2061:
	.size	_Z58__device_stub__Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_PdP6arestaPfiPiPjS3_Pd, .-_Z58__device_stub__Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_PdP6arestaPfiPiPjS3_Pd
	.globl	_Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd
	.type	_Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd, @function
_Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd:
.LFB2062:
	.cfi_startproc
	endbr64
	jmp	_Z58__device_stub__Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_PdP6arestaPfiPiPjS3_Pd
	.cfi_endproc
.LFE2062:
	.size	_Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd, .-_Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd
	.globl	_Z65__device_stub__Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPjP6arestaPiiS1_P8aresta_EPj
	.type	_Z65__device_stub__Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPjP6arestaPiiS1_P8aresta_EPj, @function
_Z65__device_stub__Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPjP6arestaPiiS1_P8aresta_EPj:
.LFB2063:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movq	%rdi, 40(%rsp)
	leaq	72(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	84(%rsp), %rsi
	movl	%edx, 28(%rsp)
	leaq	56(%rsp), %rdx
	movq	%rcx, 16(%rsp)
	leaq	64(%rsp), %rcx
	movq	%r8, 8(%rsp)
	movq	%r9, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 80(%rsp)
	movq	%rax, 120(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	28(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 152(%rsp)
	movq	%rsp, %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 72(%rsp)
	movq	%rax, 84(%rsp)
	movl	$1, 92(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L37
	pushq	64(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj(%rip), %rdi
	pushq	64(%rsp)
	.cfi_def_cfa_offset 208
	movq	100(%rsp), %rcx
	movl	108(%rsp), %r8d
	movq	88(%rsp), %rsi
	movl	96(%rsp), %edx
	leaq	136(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L37:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2063:
	.size	_Z65__device_stub__Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPjP6arestaPiiS1_P8aresta_EPj, .-_Z65__device_stub__Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPjP6arestaPiiS1_P8aresta_EPj
	.globl	_Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj
	.type	_Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj, @function
_Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj:
.LFB2064:
	.cfi_startproc
	endbr64
	jmp	_Z65__device_stub__Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPjP6arestaPiiS1_P8aresta_EPj
	.cfi_endproc
.LFE2064:
	.size	_Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj, .-_Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj
	.globl	_Z45__device_stub__Z11AtualizaC_1P8aresta_EPiS1_iP8aresta_EPiS1_i
	.type	_Z45__device_stub__Z11AtualizaC_1P8aresta_EPiS1_iP8aresta_EPiS1_i, @function
_Z45__device_stub__Z11AtualizaC_1P8aresta_EPiS1_iP8aresta_EPiS1_i:
.LFB2065:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	40(%rsp), %rdx
	movl	%ecx, 4(%rsp)
	leaq	48(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L42
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z11AtualizaC_1P8aresta_EPiS1_i(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 176
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	120(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L42:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2065:
	.size	_Z45__device_stub__Z11AtualizaC_1P8aresta_EPiS1_iP8aresta_EPiS1_i, .-_Z45__device_stub__Z11AtualizaC_1P8aresta_EPiS1_iP8aresta_EPiS1_i
	.globl	_Z11AtualizaC_1P8aresta_EPiS1_i
	.type	_Z11AtualizaC_1P8aresta_EPiS1_i, @function
_Z11AtualizaC_1P8aresta_EPiS1_i:
.LFB2066:
	.cfi_startproc
	endbr64
	jmp	_Z45__device_stub__Z11AtualizaC_1P8aresta_EPiS1_iP8aresta_EPiS1_i
	.cfi_endproc
.LFE2066:
	.size	_Z11AtualizaC_1P8aresta_EPiS1_i, .-_Z11AtualizaC_1P8aresta_EPiS1_i
	.globl	_Z38__device_stub__Z13DefineNovosVUPiiPcPjPiiPcPj
	.type	_Z38__device_stub__Z13DefineNovosVUPiiPcPjPiiPcPj, @function
_Z38__device_stub__Z13DefineNovosVUPiiPcPjPiiPcPj:
.LFB2067:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movl	%esi, 20(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	40(%rsp), %rdx
	movq	%rcx, (%rsp)
	leaq	48(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 120(%rsp)
	movq	%rsp, %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L47
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z13DefineNovosVUPiiPcPj(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 176
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	120(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L47:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2067:
	.size	_Z38__device_stub__Z13DefineNovosVUPiiPcPjPiiPcPj, .-_Z38__device_stub__Z13DefineNovosVUPiiPcPjPiiPcPj
	.globl	_Z13DefineNovosVUPiiPcPj
	.type	_Z13DefineNovosVUPiiPcPj, @function
_Z13DefineNovosVUPiiPcPj:
.LFB2068:
	.cfi_startproc
	endbr64
	jmp	_Z38__device_stub__Z13DefineNovosVUPiiPcPjPiiPcPj
	.cfi_endproc
.LFE2068:
	.size	_Z13DefineNovosVUPiiPcPj, .-_Z13DefineNovosVUPiiPcPj
	.globl	_Z34__device_stub__Z11AtualizaC_3PiiPcPiiPc
	.type	_Z34__device_stub__Z11AtualizaC_3PiiPcPiiPc, @function
_Z34__device_stub__Z11AtualizaC_3PiiPcPiiPc:
.LFB2069:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	48(%rsp), %rdi
	movl	%esi, 20(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	32(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L52
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z11AtualizaC_3PiiPc(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 160
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 152
	popq	%rdx
	.cfi_def_cfa_offset 144
.L52:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L54
	call	__stack_chk_fail@PLT
.L54:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2069:
	.size	_Z34__device_stub__Z11AtualizaC_3PiiPcPiiPc, .-_Z34__device_stub__Z11AtualizaC_3PiiPcPiiPc
	.globl	_Z11AtualizaC_3PiiPc
	.type	_Z11AtualizaC_3PiiPc, @function
_Z11AtualizaC_3PiiPc:
.LFB2070:
	.cfi_startproc
	endbr64
	jmp	_Z34__device_stub__Z11AtualizaC_3PiiPcPiiPc
	.cfi_endproc
.LFE2070:
	.size	_Z11AtualizaC_3PiiPc, .-_Z11AtualizaC_3PiiPc
	.globl	_Z43__device_stub__Z13MarcarArestasP6arestaPiiiP6arestaPiii
	.type	_Z43__device_stub__Z13MarcarArestasP6arestaPiiiP6arestaPiii, @function
_Z43__device_stub__Z13MarcarArestasP6arestaPiiiP6arestaPiii:
.LFB2071:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rdx
	movl	%ecx, 8(%rsp)
	leaq	48(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L57
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z13MarcarArestasP6arestaPiii(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 176
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	120(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L57:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L59
	call	__stack_chk_fail@PLT
.L59:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2071:
	.size	_Z43__device_stub__Z13MarcarArestasP6arestaPiiiP6arestaPiii, .-_Z43__device_stub__Z13MarcarArestasP6arestaPiiiP6arestaPiii
	.globl	_Z13MarcarArestasP6arestaPiii
	.type	_Z13MarcarArestasP6arestaPiii, @function
_Z13MarcarArestasP6arestaPiii:
.LFB2072:
	.cfi_startproc
	endbr64
	jmp	_Z43__device_stub__Z13MarcarArestasP6arestaPiiiP6arestaPiii
	.cfi_endproc
.LFE2072:
	.size	_Z13MarcarArestasP6arestaPiii, .-_Z13MarcarArestasP6arestaPiii
	.section	.rodata.str1.1
.LC6:
	.string	"\nParametros incorretos\n Uso: ./cms_seq.exe <ArqEntrada> <ArqSaida> <dimBloco> <S/N> onde:\n"
.LC7:
	.string	"\t <ArqEntrada> (obrigatorio) - Nome do arquivo com as informa\303\247\303\265es do grafo (n\303\272mero de v\303\251rtices, n\303\272mero de arestas e arestas.\n"
.LC8:
	.string	"\t <ArqSaida> (obrigatorio) - Nome do arquivo de saida.\n"
.LC9:
	.string	"\t <S ou N> - Mostrar ou n\303\243o as arestas da MST.\n"
.LC11:
	.string	"%lf\n"
.LC12:
	.string	"a"
.LC13:
	.string	"\n*** Input file: %s\n"
.LC14:
	.string	"Total Time: %lf\n"
.LC15:
	.string	"Number of iterations: %d\n"
.LC16:
	.string	"SolutionSize: %d\n"
.LC17:
	.string	"SolutionValue: %f\n"
.LC18:
	.string	"*** MST formed by %d edges\n"
.LC19:
	.string	"Edge %d - %d\n"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$280, %rsp
	.cfi_def_cfa_offset 336
	movl	%edi, 76(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 264(%rsp)
	xorl	%eax, %eax
	cmpl	$2, %edi
	jg	.L63
	leaq	.LC6(%rip), %rsi
	movl	$2, %edi
	call	__printf_chk@PLT
	leaq	.LC7(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC8(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC9(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L64
.L63:
	movq	%rsi, %r13
	call	clock@PLT
	movq	8(%r13), %rsi
	leaq	240(%rsp), %rdi
	call	_Z7LeGrafoPc
	movl	240(%rsp), %eax
	movl	%eax, 16(%rsp)
	movl	244(%rsp), %eax
	movl	%eax, 8(%rsp)
	movq	248(%rsp), %rax
	movq	%rax, 56(%rsp)
	movq	256(%rsp), %rax
	movq	%rax, 48(%rsp)
	movl	16(%rsp), %eax
	decl	%eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdi
	movq	%rax, 32(%rsp)
	call	malloc@PLT
	leaq	136(%rsp), %rdi
	movq	%rax, 24(%rsp)
	movq	32(%rsp), %rax
	addq	$4, %rax
	movq	%rax, %rsi
	movq	%rax, 40(%rsp)
	call	cudaMalloc@PLT
	movl	$149, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	xorl	%edi, %edi
	movl	$4, %esi
	movl	%edi, 108(%rsp)
	leaq	144(%rsp), %rdi
	call	cudaMalloc@PLT
	movl	$153, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	144(%rsp), %rdi
	movl	$4, %edx
	xorl	%esi, %esi
	call	cudaMemset@PLT
	movl	$155, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	leaq	160(%rsp), %rdi
	movl	$8, %esi
	call	cudaMalloc@PLT
	movl	$157, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	160(%rsp), %rdi
	movl	$8, %edx
	xorl	%esi, %esi
	call	cudaMemset@PLT
	movl	$159, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	leaq	152(%rsp), %rdi
	movl	$4, %esi
	call	cudaMalloc@PLT
	movl	$161, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	call	clock@PLT
	call	clock@PLT
	cvtsi2sdq	%rax, %xmm0
	divsd	.LC10(%rip), %xmm0
	movsd	%xmm0, 88(%rsp)
	call	clock@PLT
	movslq	8(%rsp), %rbx
	leaq	120(%rsp), %rdi
	imulq	$12, %rbx, %rbp
	salq	$2, %rbx
	movq	%rbp, %rsi
	call	cudaMalloc@PLT
	movl	$174, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	56(%rsp), %rsi
	movq	120(%rsp), %rdi
	movq	%rbp, %rdx
	movl	$1, %ecx
	call	cudaMemcpy@PLT
	movl	$176, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	%rbx, %rsi
	leaq	128(%rsp), %rdi
	call	cudaMalloc@PLT
	movl	$179, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	48(%rsp), %rsi
	movq	%rbx, %rdx
	movq	128(%rsp), %rdi
	movl	$1, %ecx
	movl	$67108865, %ebx
	call	cudaMemcpy@PLT
	movl	$181, %esi
	salq	$6, %rbx
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	40(%rsp), %rsi
	leaq	168(%rsp), %rdi
	call	cudaMalloc@PLT
	movl	$184, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	call	clock@PLT
	movl	8(%rsp), %eax
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	movl	$64, %ecx
	movl	%r8d, 112(%rsp)
	movl	16(%rsp), %r12d
	decl	%eax
	movl	%r9d, 72(%rsp)
	cltd
	idivl	%ecx
	leal	1(%rax), %r15d
.L65:
	cmpl	$1, 112(%rsp)
	je	.L87
	call	clock@PLT
	movq	40(%rsp), %rdx
	movq	168(%rsp), %rdi
	orl	$-1, %esi
	call	cudaMemset@PLT
	movl	$204, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rbx, %rdx
	movabsq	$4294967297, %rax
	movl	%r15d, 216(%rsp)
	movl	$1, %ecx
	movq	%rax, 220(%rsp)
	movq	216(%rsp), %rdi
	movl	224(%rsp), %esi
	movq	%rbx, 228(%rsp)
	movl	$1, 236(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L66
	movl	16(%rsp), %r8d
	movl	8(%rsp), %ecx
	movq	168(%rsp), %rdx
	movq	128(%rsp), %rsi
	movq	120(%rsp), %rdi
	call	_Z52__device_stub__Z20EncontraMenorAresta1P6arestaPfPiiiP6arestaPfPiii
.L66:
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rbx, %rdx
	movl	$1, %ecx
	movabsq	$4294967297, %rax
	movl	%r15d, 216(%rsp)
	movq	%rax, 220(%rsp)
	movq	216(%rsp), %rdi
	movl	224(%rsp), %esi
	movq	%rbx, 228(%rsp)
	movl	$1, 236(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L67
	movl	16(%rsp), %r8d
	movl	8(%rsp), %ecx
	movq	168(%rsp), %rdx
	movq	128(%rsp), %rsi
	movq	120(%rsp), %rdi
	call	_Z52__device_stub__Z20EncontraMenorAresta2P6arestaPfPiiiP6arestaPfPiii
.L67:
	leal	-1(%r12), %ebp
	movl	$64, %ecx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	%ebp, %eax
	movq	%rbx, 228(%rsp)
	movl	$1, 236(%rsp)
	cltd
	idivl	%ecx
	movq	%rbx, %rdx
	movl	$1, %ecx
	leal	1(%rax), %r14d
	movabsq	$4294967297, %rax
	movq	%rax, 220(%rsp)
	movl	224(%rsp), %esi
	movl	%r14d, 216(%rsp)
	movq	216(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L68
	movq	168(%rsp), %rsi
	movq	120(%rsp), %rdi
	movl	%r12d, %edx
	call	_Z48__device_stub__Z19MarcarArestas_StrutP6arestaPiiP6arestaPii
.L68:
	call	clock@PLT
	call	clock@PLT
	movq	152(%rsp), %rdi
	movl	$4, %edx
	xorl	%esi, %esi
	call	cudaMemset@PLT
	movl	$246, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rbx, %rdx
	movabsq	$4294967297, %rax
	movl	%r15d, 216(%rsp)
	movl	$1, %ecx
	movq	%rax, 220(%rsp)
	movq	216(%rsp), %rdi
	movl	224(%rsp), %esi
	movq	%rbx, 228(%rsp)
	movl	$1, 236(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L69
	pushq	%rdx
	.cfi_def_cfa_offset 344
	pushq	168(%rsp)
	.cfi_def_cfa_offset 352
	movq	168(%rsp), %r9
	movq	160(%rsp), %r8
	movq	152(%rsp), %rcx
	movl	24(%rsp), %edx
	movq	144(%rsp), %rsi
	movq	136(%rsp), %rdi
	call	_Z58__device_stub__Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_PdP6arestaPfiPiPjS3_Pd
	popq	%rcx
	.cfi_def_cfa_offset 344
	popq	%rsi
	.cfi_def_cfa_offset 336
.L69:
	movl	$2, %ecx
	movl	$4, %edx
	leaq	112(%rsp), %rdi
	movq	152(%rsp), %rsi
	call	cudaMemcpy@PLT
	movl	$252, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	call	clock@PLT
	cmpl	$1, 112(%rsp)
	je	.L70
	call	clock@PLT
	leaq	176(%rsp), %rdi
	movl	$4, %esi
	call	cudaMalloc@PLT
	movl	$270, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	176(%rsp), %rdi
	movl	$4, %edx
	xorl	%esi, %esi
	call	cudaMemset@PLT
	movl	$272, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movslq	%r12d, %rax
	leaq	184(%rsp), %rdi
	leaq	0(,%rax,8), %rsi
	movq	%rax, 64(%rsp)
	call	cudaMalloc@PLT
	movl	$277, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movslq	%r12d, %rax
	leaq	192(%rsp), %rdi
	leaq	0(,%rax,4), %rsi
	call	cudaMalloc@PLT
	movl	$282, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rbx, %rdx
	movabsq	$4294967297, %rax
	movl	%r14d, 216(%rsp)
	movl	$1, %ecx
	movq	%rax, 220(%rsp)
	movq	216(%rsp), %rdi
	movl	224(%rsp), %esi
	movq	%rbx, 228(%rsp)
	movl	$1, 236(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L71
	movq	176(%rsp), %r9
	movq	120(%rsp), %rdi
	movl	%r12d, %edx
	movq	184(%rsp), %r8
	movq	192(%rsp), %rcx
	movq	168(%rsp), %rsi
	call	_Z65__device_stub__Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPjP6arestaPiiS1_P8aresta_EPj
.L71:
	leaq	200(%rsp), %rdi
	movl	$4, %esi
	call	cudaMalloc@PLT
	movl	$289, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movl	%ebp, %eax
	subl	112(%rsp), %eax
	movl	$64, %ecx
	cltd
	idivl	%ecx
	leal	1(%rax), %ebp
	leaq	116(%rsp), %rax
	movq	%rax, 80(%rsp)
.L73:
	movq	80(%rsp), %rsi
	movq	200(%rsp), %rdi
	xorl	%eax, %eax
	movl	$1, %ecx
	movl	$4, %edx
	movl	%eax, 116(%rsp)
	call	cudaMemcpy@PLT
	movl	$294, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rbx, %rdx
	movabsq	$4294967297, %rax
	movl	%ebp, 216(%rsp)
	movl	$1, %ecx
	movq	%rax, 220(%rsp)
	movq	216(%rsp), %rdi
	movl	224(%rsp), %esi
	movq	%rbx, 228(%rsp)
	movl	$1, 236(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L72
	movq	200(%rsp), %rdx
	movq	192(%rsp), %rsi
	movl	%r12d, %ecx
	movq	184(%rsp), %rdi
	subl	112(%rsp), %ecx
	call	_Z45__device_stub__Z11AtualizaC_1P8aresta_EPiS1_iP8aresta_EPiS1_i
.L72:
	movq	80(%rsp), %rdi
	movl	$2, %ecx
	movl	$4, %edx
	movq	200(%rsp), %rsi
	call	cudaMemcpy@PLT
	movl	$296, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	cmpl	$1, 116(%rsp)
	je	.L73
	call	cudaDeviceSynchronize@PLT
	movl	$299, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	64(%rsp), %rsi
	leaq	208(%rsp), %rdi
	call	cudaMalloc@PLT
	movl	$304, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	64(%rsp), %rdx
	movq	208(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaMemset@PLT
	movl	$306, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	176(%rsp), %rdi
	movl	$4, %edx
	xorl	%esi, %esi
	call	cudaMemset@PLT
	movl	$308, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rbx, %rdx
	movabsq	$4294967297, %rax
	movl	%r14d, 216(%rsp)
	movl	$1, %ecx
	movq	%rax, 220(%rsp)
	movq	216(%rsp), %rdi
	movl	224(%rsp), %esi
	movq	%rbx, 228(%rsp)
	movl	$1, 236(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L74
	movq	176(%rsp), %rcx
	movq	208(%rsp), %rdx
	movl	%r12d, %esi
	movq	192(%rsp), %rdi
	call	_Z38__device_stub__Z13DefineNovosVUPiiPcPjPiiPcPj
.L74:
	call	cudaDeviceSynchronize@PLT
	movl	$314, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rbx, %rdx
	movabsq	$4294967297, %rax
	movl	%r14d, 216(%rsp)
	movl	$1, %ecx
	movq	%rax, 220(%rsp)
	movq	216(%rsp), %rdi
	movl	224(%rsp), %esi
	movq	%rbx, 228(%rsp)
	movl	$1, 236(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L75
	movq	208(%rsp), %rdx
	movq	192(%rsp), %rdi
	movl	%r12d, %esi
	call	_Z34__device_stub__Z11AtualizaC_3PiiPcPiiPc
.L75:
	movq	176(%rsp), %rdi
	call	cudaFree@PLT
	movl	$321, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	184(%rsp), %rdi
	call	cudaFree@PLT
	movl	$322, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	200(%rsp), %rdi
	call	cudaFree@PLT
	movl	$323, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	208(%rsp), %rdi
	call	cudaFree@PLT
	movl	$324, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	call	clock@PLT
	call	clock@PLT
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rbx, %rdx
	movabsq	$4294967297, %rax
	movl	%r15d, 216(%rsp)
	movl	$1, %ecx
	movq	%rax, 220(%rsp)
	movq	216(%rsp), %rdi
	movl	224(%rsp), %esi
	movq	%rbx, 228(%rsp)
	movl	$1, 236(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L76
	movl	16(%rsp), %ecx
	movl	8(%rsp), %edx
	movq	192(%rsp), %rsi
	movq	120(%rsp), %rdi
	call	_Z43__device_stub__Z13MarcarArestasP6arestaPiiiP6arestaPiii
.L76:
	call	cudaDeviceSynchronize@PLT
	movl	$338, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	192(%rsp), %rdi
	call	cudaFree@PLT
	movl	$340, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	call	clock@PLT
.L70:
	incl	72(%rsp)
	movl	112(%rsp), %r12d
	jmp	.L65
.L87:
	movl	$2, %ecx
	movl	$4, %edx
	leaq	108(%rsp), %rdi
	movq	144(%rsp), %rsi
	call	cudaMemcpy@PLT
	movl	$363, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	32(%rsp), %rdx
	movq	24(%rsp), %rdi
	movl	$2, %ecx
	movq	136(%rsp), %rsi
	call	cudaMemcpy@PLT
	movl	$364, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movl	108(%rsp), %edx
	xorl	%eax, %eax
	xorps	%xmm1, %xmm1
.L78:
	cmpl	%eax, %edx
	jle	.L88
	movq	24(%rsp), %rbx
	movslq	(%rbx,%rax,4), %rcx
	movq	48(%rsp), %rbx
	incq	%rax
	cvtss2sd	(%rbx,%rcx,4), %xmm0
	addsd	%xmm0, %xmm1
	jmp	.L78
.L88:
	movsd	%xmm1, 16(%rsp)
	call	clock@PLT
	leaq	.LC11(%rip), %rsi
	movl	$2, %edi
	cvtsi2sdq	%rax, %xmm0
	divsd	.LC10(%rip), %xmm0
	movb	$1, %al
	subsd	88(%rsp), %xmm0
	movsd	%xmm0, 8(%rsp)
	call	__printf_chk@PLT
	movq	16(%r13), %rdi
	leaq	.LC12(%rip), %rsi
	call	fopen@PLT
	movq	8(%r13), %rcx
	movl	$2, %esi
	leaq	.LC13(%rip), %rdx
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
	movsd	8(%rsp), %xmm0
	movq	%rbx, %rdi
	movb	$1, %al
	leaq	.LC14(%rip), %rdx
	movl	$2, %esi
	call	__fprintf_chk@PLT
	movl	72(%rsp), %ecx
	movl	$2, %esi
	xorl	%eax, %eax
	leaq	.LC15(%rip), %rdx
	movq	%rbx, %rdi
	call	__fprintf_chk@PLT
	movl	108(%rsp), %ecx
	movl	$2, %esi
	xorl	%eax, %eax
	leaq	.LC16(%rip), %rdx
	movq	%rbx, %rdi
	call	__fprintf_chk@PLT
	movsd	16(%rsp), %xmm1
	movq	%rbx, %rdi
	movb	$1, %al
	leaq	.LC17(%rip), %rdx
	movl	$2, %esi
	movaps	%xmm1, %xmm0
	call	__fprintf_chk@PLT
	cmpl	$4, 76(%rsp)
	je	.L80
.L81:
	movq	%rbx, %rdi
	call	fclose@PLT
	movq	136(%rsp), %rdi
	call	cudaFree@PLT
	movl	$392, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	144(%rsp), %rdi
	call	cudaFree@PLT
	movl	$393, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	160(%rsp), %rdi
	call	cudaFree@PLT
	movl	$394, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	152(%rsp), %rdi
	call	cudaFree@PLT
	movl	$395, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	120(%rsp), %rdi
	call	cudaFree@PLT
	movl	$396, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	128(%rsp), %rdi
	call	cudaFree@PLT
	movl	$397, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	168(%rsp), %rdi
	call	cudaFree@PLT
	movl	$398, %esi
	movl	%eax, %edi
	call	_ZL11HandleError9cudaErrorPKci.constprop.0
	movq	56(%rsp), %rdi
	call	free@PLT
	movq	48(%rsp), %rdi
	call	free@PLT
	movq	24(%rsp), %rdi
	call	free@PLT
	jmp	.L64
.L80:
	movq	24(%r13), %rax
	movb	(%rax), %al
	andl	$-33, %eax
	cmpb	$83, %al
	jne	.L81
	movl	108(%rsp), %ecx
	leaq	.LC18(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movl	$2, %esi
	xorl	%r12d, %r12d
	leaq	.LC19(%rip), %rbp
	call	__fprintf_chk@PLT
.L82:
	cmpl	%r12d, 108(%rsp)
	jle	.L81
	movq	24(%rsp), %rax
	movq	56(%rsp), %rcx
	movq	%rbp, %rdx
	movq	%rbx, %rdi
	movl	$2, %esi
	movslq	(%rax,%r12,4), %rax
	incq	%r12
	imulq	$12, %rax, %rax
	addq	%rcx, %rax
	movl	4(%rax), %r8d
	movl	(%rax), %ecx
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
	jmp	.L82
.L64:
	movq	264(%rsp), %rax
	subq	%fs:40, %rax
	je	.L84
	call	__stack_chk_fail@PLT
.L84:
	addq	$280, %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
.LFE2028:
	.size	main, .-main
	.section	.rodata.str1.1
.LC20:
	.string	"_Z13MarcarArestasP6arestaPiii"
.LC21:
	.string	"_Z11AtualizaC_3PiiPc"
.LC22:
	.string	"_Z13DefineNovosVUPiiPcPj"
.LC23:
	.string	"_Z11AtualizaC_1P8aresta_EPiS1_i"
.LC24:
	.string	"_Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj"
.LC25:
	.string	"_Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd"
.LC26:
	.string	"_Z19MarcarArestas_StrutP6arestaPii"
.LC27:
	.string	"_Z20EncontraMenorAresta2P6arestaPfPiii"
.LC28:
	.string	"_Z20EncontraMenorAresta1P6arestaPfPiii"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2074:
	.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	.LC20(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z13MarcarArestasP6arestaPiii(%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	.LC21(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z11AtualizaC_3PiiPc(%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	_Z13DefineNovosVUPiiPcPj(%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	_Z11AtualizaC_1P8aresta_EPiS1_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	.LC24(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj(%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	.LC25(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd(%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	.LC26(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z19MarcarArestas_StrutP6arestaPii(%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	.LC27(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z20EncontraMenorAresta2P6arestaPfPiii(%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	.LC28(%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	_Z20EncontraMenorAresta1P6arestaPfPiii(%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
.LFE2074:
	.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
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC10:
	.long	0
	.long	1093567616
	.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:

/*
	Programa: mst_cuda_semGB.c  (Versão 1)
	Descrição: Implementa o Algoritmo para árvore geradora mínima.
	Programadora: Jucele Vasconcellos
	Data: 25/08/2017
	Versão 3: sem o atomicAddD em Calcula_num_zerodiff
	Compilacao:	nvcc -arch sm_30 -o mst_cuda_semGB.exe mst_cuda_semGB.cu
	Execucao:	./st_cuda.exe in/grafo/grafo1000a cuda.out
	
	Entrada de dados: Este programa lê os dados de um grafo no formato
	8
	16
	4 5 0.35
	4 7 0.37
	5 7 0.28
	0 7 0.16
	1 5 0.32
	0 4 0.38
	2 3 0.17
	1 7 0.19
	0 2 0.26
	1 2 0.36
	1 3 0.29
	2 7 0.34
	6 2 0.40
	3 6 0.52
	6 0 0.58
	6 4 0.93

	sendo a primeira linha o número de vértices, a segunda linha o número de arestas
	e as linhas subsequentes as arestas v1 v2 custo
		
	Saída de Dados: Este programa produz um arquivo de saída as arestas que compõem a árvore geradora 
*/

#include <stdio.h> // printf
#include<stdbool.h> // true, false
#include <stdlib.h> //malloc
#include <time.h> //clock
#include <hip/hip_runtime.h>


// Grafo Original
typedef struct { 
	unsigned int v, u;
	unsigned int grau_st;
} aresta;


typedef struct { 
	int n, m;
	aresta *arestas;
	float *custos;
} grafo;

typedef struct {
	int v1, v2;
} aresta_E;


// Funções e Procedimentos

static void HandleError(hipError_t err, const char *file, int line)
{
    if (err != hipSuccess)
    {
        printf("%s in %s at line %d\n", hipGetErrorString(err), file, line );
        exit(EXIT_FAILURE);
    }
}

#define CHECK_ERROR(err) (HandleError(err, __FILE__, __LINE__))

grafo LeGrafo(char *);
__device__ double atomicAddD(double* address, float val);
__global__ void EncontraMenorAresta1(aresta*, float*, int*, int, int);
__global__ void EncontraMenorAresta2(aresta*, float*, int*, int, int);
__global__ void MarcarArestas_Strut(aresta*, int*, int);
__global__ void Calcula_num_zerodiff(aresta*, float*, int, int*, unsigned int*, unsigned int*, double*);
__global__ void Inicializa_arestasE_C(aresta*, int*, int, int*, aresta_E*, unsigned int*);
__global__ void AtualizaC_1(aresta_E*, int*, int*, int); 
__global__ void DefineNovosVU(int*, int, char *, unsigned int *); 
__global__ void AtualizaC_3(int*, int, char *); 
__global__ void MarcarArestas(aresta *, int*, int, int);



// Função Principal
int main (int argc, char** argv){
	grafo G;
	double tempoTotal, tempo1, tempo2;
	double tempo1p, tempo2p;
	int *SolutionEdgeSet;
	int SolutionSize, i, it;
	double SolutionVal;
	int num_zerodiff;
	FILE *Arq;
		
	int dimBloco, dimGrid;
	aresta *d_arestas;
	float *d_custos;
	int *d_SolutionEdgeSet;
	unsigned int *d_SolutionSize, *d_num_zerodiff;
	double *d_SolutionVal;
	int *d_menorAresta;
	int n;
	
	
	// Passo 1: Verificação de parâmetros
	// Passo 2: Leitura dos dados do grafo 
	// Passo 3: Criação do grafo bipartido correspondente às arestas recebidas
	// Passo 4: Encontra a solução
		// Passo 4.1: Escolher arestas que comporão a strut
		// Passo 4.2: Calcular o num_zerodiff e computar novas componenetes conexas
		// Passo 4.3: Compactar o grafo
	
	
	// ==============================================================================
	// Passo 1: Verificação de parâmetros
	// ==============================================================================
	
	//Verificando os parametros
	if(argc < 3 ){
	   printf( "\nParametros incorretos\n Uso: ./cms_seq.exe <ArqEntrada> <ArqSaida> <dimBloco> <S/N> onde:\n" );
	   printf( "\t <ArqEntrada> (obrigatorio) - Nome do arquivo com as informações do grafo (número de vértices, número de arestas e arestas.\n" );
		printf( "\t <ArqSaida> (obrigatorio) - Nome do arquivo de saida.\n" );
		printf( "\t <S ou N> - Mostrar ou não as arestas da MST.\n" );
		return 0;
	} 	
	//Define a dimensão do bloco fixada em 32 threads
	//dimBloco = 32;
	dimBloco = 64;
	
	// ==============================================================================
	// Passo 2: Leitura dos dados do Grafo G
	// ==============================================================================
	tempo1p = (double) clock( ) / CLOCKS_PER_SEC;
	G = LeGrafo(argv[1]);
	n = G.n;
// 	printf("****************************\n");
// 	printf("****** GRAFO ORIGINAL ******\n");
// 	MostraGrafoOriginal(GO);
	
// 	printf("Grafo de entrada lido\n");
	
	//Alocação de variável para armazenar solução
	SolutionEdgeSet = (int *) malloc((G.n-1)*sizeof(int)); 
	//Aloca memória no device para as arestas da d_SolutionEdgeSet
	CHECK_ERROR(hipMalloc((void **) &d_SolutionEdgeSet, G.n * sizeof(int)));
	SolutionSize = 0;
	SolutionVal = 0;
	//Aloca memória no device para a variável d_SolutionSize
	CHECK_ERROR(hipMalloc((void **) &d_SolutionSize, sizeof(unsigned int)));
	//Inicializa d_SolutionSize com 0
 	CHECK_ERROR(hipMemset(d_SolutionSize, 0, sizeof(unsigned int)));
	//Aloca memória no device para a variável d_SolutionVal
	CHECK_ERROR(hipMalloc((void **) &d_SolutionVal, sizeof(double)));
	//Inicializa d_SolutionVal com 0
 	CHECK_ERROR(hipMemset(d_SolutionVal, 0, sizeof(double)));
	//Aloca memória no device para a variável d_num_zerodiff
	CHECK_ERROR(hipMalloc((void **) &d_num_zerodiff, sizeof(unsigned int)));

	tempo2p = (double) clock( ) / CLOCKS_PER_SEC;
//  	printf("Tempo Passo 2: %lf\n", tempo2p - tempo1p);
	
	// ==============================================================================
	// Passo 3: Tranfere informações para device e inicializa variáveis
	// ==============================================================================
	//Iniciando contagem do tempo
	tempo1 = (double) clock( ) / CLOCKS_PER_SEC;
	tempo1p = (double) clock( ) / CLOCKS_PER_SEC;
	
	//Aloca memória no device para as arestas do grafo
	CHECK_ERROR(hipMalloc((void **) &d_arestas, G.m * sizeof(aresta)));
	//Copia as arestas do grafo do host para o device
	CHECK_ERROR(hipMemcpy(d_arestas, G.arestas, G.m * sizeof(aresta), hipMemcpyHostToDevice));
	
	//Aloca memória no device para as arestas do grafo
	CHECK_ERROR(hipMalloc((void **) &d_custos, G.m * sizeof(float)));
	//Copia as arestas do grafo do host para o device
	CHECK_ERROR(hipMemcpy(d_custos, G.custos, G.m * sizeof(float), hipMemcpyHostToDevice));

	//Aloca memória no device para o vetor d_menorAresta
	CHECK_ERROR(hipMalloc((void **) &d_menorAresta, G.n * sizeof(int)));
	
	
	tempo2p = (double) clock( ) / CLOCKS_PER_SEC;
//  	printf("Tempo Passo 3: %lf\n", tempo2p - tempo1p);
	
	// ==============================================================================
	// Passo 4: Encontra solução
	// ==============================================================================
	
	it = 0;
	num_zerodiff = 0;
	while(num_zerodiff != 1)
	{
		// ==============================================================================
		// Passo 4.1: Escolher arestas que comporão a strut
		// ==============================================================================
		tempo1p = (double) clock( ) / CLOCKS_PER_SEC;

		//Inicializa d_menorAresta com -1
		CHECK_ERROR(hipMemset(d_menorAresta, -1, G.n * sizeof(int)));
		
		//Chama kernel para encontrar menorAresta de cada v
		dimGrid = ((G.m-1)/dimBloco)+1;
		EncontraMenorAresta1<<<dimGrid, dimBloco>>>(d_arestas, d_custos, d_menorAresta, G.m, G.n);
// 		if(it >= 0)
// 		{
// 			printf("Após EncontraMenorAresta1\n");
// 			int *h_menorAresta;
// 			h_menorAresta = (int *) malloc(G.n * sizeof(int)); 
// 			CHECK_ERROR(cudaMemcpy(h_menorAresta, d_menorAresta, G.n * sizeof(int), cudaMemcpyDeviceToHost));
// 			for(i = 0; i < n; i++)
// 				printf("MenorAresta[%d] = %d\n", i, h_menorAresta[i]);
// 			free(h_menorAresta);
// 		}
		dimGrid = ((G.m-1)/dimBloco)+1;
		EncontraMenorAresta2<<<dimGrid, dimBloco>>>(d_arestas, d_custos, d_menorAresta, G.m, G.n);
// 		if(it >= 0)
// 		{
// 			printf("Após EncontraMenorAresta2\n");
// 			int *h_menorAresta;
// 			h_menorAresta = (int *) malloc(G.n * sizeof(int)); 
// 			CHECK_ERROR(cudaMemcpy(h_menorAresta, d_menorAresta, G.n * sizeof(int), cudaMemcpyDeviceToHost));
// 			for(i = 0; i < n; i++)
// 				printf("MenorAresta[%d] = %d\n", i, h_menorAresta[i]);
// 			free(h_menorAresta);
// 		}
		
		
		//Chama kernel para marcar arestas da Strut
		dimGrid = ((n-1)/dimBloco)+1;
		MarcarArestas_Strut<<<dimGrid, dimBloco>>>(d_arestas, d_menorAresta, n);
		
		tempo2p = (double) clock( ) / CLOCKS_PER_SEC;
//  		printf("Tempo Passo 4.1: %lf\n", tempo2p - tempo1p);
		
		// ==============================================================================
		// Passo 4.2: Calcular o num_zerodiff
		// ==============================================================================
		tempo1p = (double) clock( ) / CLOCKS_PER_SEC;

		//Inicializa d_num_zerodiff com 0
		CHECK_ERROR(hipMemset(d_num_zerodiff, 0, sizeof(unsigned int)));
	
		//Chama kernel para calcular num_zerodiff e preencher SolutionEdgeSet
		dimGrid = ((G.m-1)/dimBloco)+1;
		Calcula_num_zerodiff<<<dimGrid, dimBloco>>>(d_arestas, d_custos, G.m, d_SolutionEdgeSet, d_SolutionSize, d_num_zerodiff, d_SolutionVal);
		
		CHECK_ERROR(hipMemcpy(&num_zerodiff, d_num_zerodiff, sizeof(unsigned int), hipMemcpyDeviceToHost));
 
		tempo2p = (double) clock( ) / CLOCKS_PER_SEC;
//   		printf("Tempo Passo 4.2: %lf     it = %d     num_zerodiff = %d     SolutionSize = %d\n", tempo2p - tempo1p, it, num_zerodiff, SolutionSize);
		
		// ==============================================================================
		// Passo 4.3: Compactar o grafo
		// ==============================================================================
		if(num_zerodiff != 1)
		{
			// ==============================================================================
			// Passo 4.3.1: Computar componenetes conexas
			// ==============================================================================
			tempo1p = (double) clock( ) / CLOCKS_PER_SEC;

			//Declara variável d_aux
			unsigned int *d_aux;
			//Aloca memória no device para a variável d_aux
			CHECK_ERROR(hipMalloc((void **) &d_aux, sizeof(unsigned int)));
			//Inicializa d_aux com 0
			CHECK_ERROR(hipMemset(d_aux, 0, sizeof(unsigned int)));

			//Declara variável d_arestasE
			aresta_E *d_arestasE;
			//Aloca memória no device para a variável d_arestasE
			CHECK_ERROR(hipMalloc((void **) &d_arestasE, n * sizeof(aresta_E)));

			//Declara variável d_CD
			int *d_C;
			//Aloca memória no device para a variável d_CD
			CHECK_ERROR(hipMalloc((void **) &d_C, n * sizeof(int)));
			
			//Chama kernel para inicializar d_arestasE e d_C
			dimGrid = ((n-1)/dimBloco)+1;
			Inicializa_arestasE_C<<<dimGrid, dimBloco>>>(d_arestas, d_menorAresta, n, d_C, d_arestasE, d_aux);
			
			int h_fim, *d_fim;
			CHECK_ERROR(hipMalloc((void**)&d_fim, sizeof(int)));
			dimGrid = ((n-1-num_zerodiff)/dimBloco)+1;
			do
			{
				h_fim = 0;
				CHECK_ERROR(hipMemcpy(d_fim, &h_fim, sizeof(int), hipMemcpyHostToDevice));
				AtualizaC_1<<<dimGrid, dimBloco>>>(d_arestasE, d_C, d_fim, n-num_zerodiff);
				CHECK_ERROR(hipMemcpy(&h_fim, d_fim, sizeof(int), hipMemcpyDeviceToHost));		
			}while (h_fim == 1);
			
			CHECK_ERROR(hipDeviceSynchronize());
			
			//Declara variável d_aux2
			char *d_aux2;
			//Aloca memória no device para a variável d_aux2
			CHECK_ERROR(hipMalloc((void **) &d_aux2, n * sizeof(char)));
			//Inicializa d_aux2 com 0
			CHECK_ERROR(hipMemset(d_aux2, 0, n * sizeof(char)));
			//Inicializa d_aux com 0
			CHECK_ERROR(hipMemset(d_aux, 0, sizeof(unsigned int)));
			//Chama kernel para atualizar d_C
			dimGrid = ((n-1)/dimBloco)+1;
// 			printf("Vou chamar DefineNovosVU para dimGrid = %d  e  dimBloco = %d   com n = %d\n", dimGrid, dimBloco, n);
			DefineNovosVU<<<dimGrid, dimBloco>>>(d_C, n, d_aux2, d_aux);
			
			CHECK_ERROR(hipDeviceSynchronize());
			
			//Chama kernel para atualizar d_C
			dimGrid = ((n-1)/dimBloco)+1;
			AtualizaC_3<<<dimGrid, dimBloco>>>(d_C, n, d_aux2);
			
			//Liberando variáveis
			CHECK_ERROR(hipFree(d_aux));
			CHECK_ERROR(hipFree(d_arestasE));
			CHECK_ERROR(hipFree(d_fim));
			CHECK_ERROR(hipFree(d_aux2));

			tempo2p = (double) clock( ) / CLOCKS_PER_SEC;
//  			printf("Tempo Passo 4.3.1: %lf\n", tempo2p - tempo1p);
			
			// ==============================================================================
			// Passo 4.3.2: Marcar arestas
			// ==============================================================================
			tempo1p = (double) clock( ) / CLOCKS_PER_SEC;
			
			//Marca as arestas para remoção
			dimGrid = ((G.m-1)/dimBloco)+1;
			MarcarArestas<<<dimGrid, dimBloco>>>(d_arestas, d_C, G.m, G.n);
			
			CHECK_ERROR(hipDeviceSynchronize());
			
			CHECK_ERROR(hipFree(d_C));
			
			
// 			aresta *h_arestas;
// 			h_arestas = (aresta *) malloc(G.m * sizeof(aresta)); 
// 			CHECK_ERROR(cudaMemcpy(h_arestas, d_arestas, G.m * sizeof(aresta), cudaMemcpyDeviceToHost));
// 			for(i = 0; i < G.m; i++)
// 				if(h_arestas[i].v != G.n)
// 					printf("Aresta[%d]     v = %d    u = %d\n", i, h_arestas[i].v, h_arestas[i].u);
// 			free(h_arestas);
			
						
			tempo2p = (double) clock( ) / CLOCKS_PER_SEC;
//  			printf("Tempo Passo 4.3.2: %lf\n", tempo2p - tempo1p);		
		}

		it++;
		n = num_zerodiff;
	} // fim while(num_zerodiff != 1)
	
	
	// Copia a Solução para o host
// 	CHECK_ERROR(cudaMemcpy(&SolutionVal, d_SolutionVal, sizeof(double), cudaMemcpyDeviceToHost));
	CHECK_ERROR(hipMemcpy(&SolutionSize, d_SolutionSize, sizeof(unsigned int), hipMemcpyDeviceToHost));
	CHECK_ERROR(hipMemcpy(SolutionEdgeSet, d_SolutionEdgeSet, (G.n-1) * sizeof(int), hipMemcpyDeviceToHost));
	
	SolutionVal = 0;
	for(i = 0; i < SolutionSize; i++)
		SolutionVal += G.custos[SolutionEdgeSet[i]];
	
	tempo2 = (double) clock( ) / CLOCKS_PER_SEC;
	tempoTotal = tempo2 - tempo1;

	printf("%lf\n", tempoTotal);

	Arq = fopen(argv[2], "a");
	fprintf(Arq, "\n*** Input file: %s\n", argv[1]);
	fprintf(Arq, "Total Time: %lf\n", tempoTotal); 
	fprintf(Arq, "Number of iterations: %d\n", it);
	fprintf(Arq, "SolutionSize: %d\n", SolutionSize);
	fprintf(Arq, "SolutionValue: %f\n", SolutionVal);

  	if((argc == 4) && (argv[3][0] == 'S' || argv[3][0] == 's'))
	{
  		fprintf(Arq, "*** MST formed by %d edges\n", SolutionSize);
  		for(i = 0; i < SolutionSize; i++)
  			fprintf(Arq, "Edge %d - %d\n", G.arestas[SolutionEdgeSet[i]].v, G.arestas[SolutionEdgeSet[i]].u);
  	}
  	fclose(Arq);

	
	// Liberando variávais alocadas no device
	CHECK_ERROR(hipFree(d_SolutionEdgeSet));
	CHECK_ERROR(hipFree(d_SolutionSize));
	CHECK_ERROR(hipFree(d_SolutionVal));
	CHECK_ERROR(hipFree(d_num_zerodiff));
	CHECK_ERROR(hipFree(d_arestas));
	CHECK_ERROR(hipFree(d_custos));
	CHECK_ERROR(hipFree(d_menorAresta));
	
	// Liberando variávais alocadas no host
	free(G.arestas);
	free(G.custos);
	free(SolutionEdgeSet);
	
	return 0;

}


// ==============================================================================
// Função LeGrafo:  Lê as informações do Grafo de um arquivo e armazena em uma 
//                  estrutura
// ==============================================================================
grafo LeGrafo(char *Arquivo){
	int i, aux;
	grafo G;
	FILE *Arq;
    
   Arq = fopen(Arquivo, "r");

   i = 0;
	fscanf(Arq,"%d",&i);
	G.n = i;
	
	fscanf(Arq,"%d",&i);
	G.m = i;
	
	G.arestas = (aresta *) malloc(G.m*sizeof(aresta)); 
	G.custos = (float *) malloc(G.m*sizeof(float));
	
	for(i = 0; i < G.m; i++){
		fscanf(Arq,"%d",&G.arestas[i].u);
		fscanf(Arq,"%d",&G.arestas[i].v);
		if(G.arestas[i].v > G.arestas[i].u)
		{
			aux = G.arestas[i].v;
			G.arestas[i].v = G.arestas[i].u;
			G.arestas[i].u = aux;
		}
		fscanf(Arq,"%f",&G.custos[i]);
		G.arestas[i].grau_st = 0;
	}
	
	fclose(Arq);
   return G;
}

__device__ double atomicAddD(double* address, float val) 
{
	unsigned long long int* address_as_ull = (unsigned long long int*)address; 
	unsigned long long int old = *address_as_ull, assumed; 
	do { 
		assumed = old; 
		old = atomicCAS(address_as_ull, assumed, __double_as_longlong(val + __longlong_as_double(assumed))); 
	} while (assumed != old); 
	return __longlong_as_double(old); 
}


// ==============================================================================
// Função EncontraMenorAresta1:  Para cada vértice v encontra o id da aresta menor
// ==============================================================================
__global__ void EncontraMenorAresta1(aresta* arestas, float *custos, int* menorAresta, int m, int n)
{
	int id = threadIdx.x + blockDim.x * blockIdx.x;
	int x, aux;
	int old;
	
	if( id < m )
	{
		if(arestas[id].v != n)
		{
			x = arestas[id].v;
// 			printf("1.1 Aresta %d   v = %d   u = %d  custo = %f    menorAresta[%d] = %d\n", id, arestas[id].v, arestas[id].u, custos[id], x, menorAresta[x]);
			if((menorAresta[x] == -1) || 
				(custos[menorAresta[x]] > custos[id]) ||
			   ((custos[menorAresta[x]] == custos[id]) && (menorAresta[x] > id)))
			{
				aux = -1;
				// atomicCAS = atomic Compare And Swap
				// lê o conteúdo endereçado por menorAresta[x] e o armazena em old.  
				// computa (old == aux ? meu_id: old)
				// ou seja se (old == aux) então menorAresta[x] = id
				//         senão menorAresta[x] = old
				// retorna old
				old = atomicCAS(&menorAresta[x], aux, id);		
				if(old != aux)
				{		
					while(((custos[old] > custos[id]) || ((custos[old] == custos[id]) && (old > id))) && (old != aux))
					{
						aux = atomicCAS(&menorAresta[x], old, id);
						if(old != aux)
						{
							old = aux;
							aux = -1;
						}
					}// fim while((old > id) && (old != aux))
				} // fim if(old_id != aux)
// 				printf("1.2 Aresta %d   v = %d   u = %d  custo = %f    menorAresta[%d] = %d\n", id, arestas[id].v, arestas[id].u, custos[id], x, menorAresta[x]);
			} // fim if((menorAresta[x] == -1) || (menorAresta[x] > id))
		} // fim if(arestas[id].v != n)
	} //fim if( id < m )
}

// ==============================================================================
// Função EncontraMenorAresta2:  Para cada vértice v encontra o id da aresta menor
// ==============================================================================
__global__ void EncontraMenorAresta2(aresta* arestas, float *custos, int* menorAresta, int m, int n)
{
	int id = threadIdx.x + blockDim.x * blockIdx.x;
	int x, aux;
	int old;
	
	if( id < m )
	{
		if(arestas[id].v != n)
		{
			x = arestas[id].u;
// 			printf("2.1 Aresta %d   v = %d   u = %d  custo = %f    menorAresta[%d] = %d\n", id, arestas[id].v, arestas[id].u, custos[id], x, menorAresta[x]);
			if((menorAresta[x] == -1) || 
				(custos[menorAresta[x]] > custos[id]) ||
			   ((custos[menorAresta[x]] == custos[id]) && (menorAresta[x] > id)))
			{
				aux = -1;
				// atomicCAS = atomic Compare And Swap
				// lê o conteúdo endereçado por menorAresta[x] e o armazena em old.  
				// computa (old == aux ? meu_id: old)
				// ou seja se (old == aux) então menorAresta[x] = id
				//         senão menorAresta[x] = old
				// retorna old
				old = atomicCAS(&menorAresta[x], aux, id);		
				if(old != aux)
				{
					while(((custos[old] > custos[id]) || ((custos[old] == custos[id]) && (old > id))) && (old != aux))
					{
						aux = atomicCAS(&menorAresta[x], old, id);
						if(old != aux)
						{
							old = aux;
							aux = -1;
						}
					}// fim while((old > id) && (old != aux))
				} // fim if(old_id != aux)
// 				printf("2.2 Aresta %d   v = %d   u = %d  custo = %f    menorAresta[%d] = %d\n", id, arestas[id].v, arestas[id].u, custos[id], x, menorAresta[x]);
			} // if((menorAresta[x] == -1) || (menorAresta[x] > id))
		} // fim if(arestas[id].v != n)
	} //fim if( id < m )
}


// ==============================================================================
// Função MarcarArestas_Strut:  Para cada vértice v marca aresta pertencente a strut
// ==============================================================================
__global__ void MarcarArestas_Strut(aresta* d_arestas, int* d_menorAresta, int n)
{
	int id = threadIdx.x + blockDim.x * blockIdx.x;
	if( id < n )
	{
		atomicInc(&d_arestas[d_menorAresta[id]].grau_st, UINT_MAX);
// 		printf("MenorAresta[%d] = %d\n", id, d_menorAresta[id]);
	}
}


// ==============================================================================
// Função Calcula_num_zerodiff:  Calcula o número de vértices zero diferença e
//                               preenche o vetor d_SolutionEdgeSet
// ==============================================================================
__global__ void Calcula_num_zerodiff(aresta* arestas, float *custos, int m, int* SolutionEdgeSet, unsigned int* SolutionSize, unsigned int* num_zerodiff, double* SolutionVal)
{
	int id = threadIdx.x + blockDim.x * blockIdx.x;
	int pos;
	
	if( id < m )
	{
		if(arestas[id].grau_st > 0)
		{
			pos = atomicInc(&SolutionSize[0], UINT_MAX);
			SolutionEdgeSet[pos] = id;
// 			atomicAddD(&SolutionVal[0], custos[id]);
			if(arestas[id].grau_st == 2)
			{
				pos = atomicInc(&num_zerodiff[0], UINT_MAX);
// 				printf("num_zerodiff = %d\n", num_zerodiff[0]);
			}
		}
	}
}




// ==============================================================================
// Função Inicializa_arestasE_CD:  Inicializa as variáveis CD, arestasE e arestasE_size
// ==============================================================================
__global__ void Inicializa_arestasE_C(aresta *arestas, int *menorAresta, int n, int *C, aresta_E *arestasE, unsigned int *arestasE_size)
{
	int id = threadIdx.x + blockDim.x * blockIdx.x;
	int pos;
	
	if( id < n )
	{
		if((arestas[menorAresta[id]].grau_st == 1) || (((arestas[menorAresta[id]].grau_st == 2)) && (id == arestas[menorAresta[id]].v)))
		{
			pos = atomicInc(&arestasE_size[0], UINT_MAX);
			arestasE[pos].v1 = arestas[menorAresta[id]].v;
			arestasE[pos].v2 = arestas[menorAresta[id]].u;
// 			printf("Thread %d    arestasE[%d]   v1 = %d   v2 = %d\n", id, pos, arestasE[pos].v1, arestasE[pos].v2);
		}
		C[id] = id;
	}
}


// ==============================================================================
// Função AtualizaC_1: Atualiza vetor C para definição das componentes conexas
// ==============================================================================
__global__ void AtualizaC_1(aresta_E *arestasE, int* C, int *m, int n) 
{
	int id = threadIdx.x + blockDim.x * blockIdx.x;
	int c1, c2, v1, v2;
	
	if(id < n)
	{
		v1 = arestasE[id].v1;
		v2 = arestasE[id].v2;
		c1 = C[v1];
		c2 = C[v2];
		if(c1 < c2)
		{
			atomicMin(&C[v2], c1);
			m[0] = 1;
		}
		else if(c2 < c1)
		{
			atomicMin(&C[v1], c2);
			m[0] = 1;
		}
	}
}


// ==============================================================================
// Função DefineNovosVU: Atualiza vetor C
// ==============================================================================
__global__ void DefineNovosVU(int* C, int n, char *marcador, unsigned int *num_comp) 
{
	int id = threadIdx.x + blockDim.x * blockIdx.x;
	int pos;
	
	if(id < n)
	{
		if(C[id] == id)
		{
			pos = atomicInc(&num_comp[0], UINT_MAX);
			C[id] = pos;
			marcador[id] = 1;
			//printf("C2[%d] = %d\n", id, C[id]);
		}
	}	
}


// ==============================================================================
// Função AtualizaC_3: Atualiza vetor C
// ==============================================================================
__global__ void AtualizaC_3(int* C, int n, char *marcador) 
{
	int id = threadIdx.x + blockDim.x * blockIdx.x;
	
	if(id < n)
	{
		if(marcador[id] == 0)
		{
			C[id] = C[C[id]];
 			//printf("C3[%d] = %d\n", id, C[id]);
		}
	}	
}


// ==============================================================================
// Função MarcarArestas:  Marca as arestas do grafo a serem removidas
// ==============================================================================
__global__ void MarcarArestas(aresta *arestas, int* C, int m, int n)
{
	int id = threadIdx.x + blockDim.x * blockIdx.x;
	int x, y;
	
	if( id < m )
	{
		if(arestas[id].v != n)
		{
			x = C[arestas[id].v];
			y = C[arestas[id].u];
		
			if( x !=  y )
			{
				arestas[id].v = x;
				arestas[id].u = y;
			}
			else
			{
				arestas[id].v = n;
				arestas[id].u = n;
			}
			arestas[id].grau_st = 0;
		}
	} //fim if( id < m )
}



	.text
	.file	"mst_cuda_semGB.hip"
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI0_0:
	.quad	0x412e848000000000              # double 1.0E+6
	.text
	.globl	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	$232, %rsp
	.cfi_def_cfa_offset 288
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	cmpl	$2, %edi
	jg	.LBB0_2
# %bb.1:
	movl	$.Lstr, %edi
	callq	puts@PLT
	movl	$.Lstr.1, %edi
	callq	puts@PLT
	movl	$.Lstr.2, %edi
	callq	puts@PLT
	movl	$.Lstr.3, %edi
	callq	puts@PLT
	jmp	.LBB0_36
.LBB0_2:
	movq	%rsi, %rbx
	movl	%edi, 164(%rsp)                 # 4-byte Spill
	movabsq	$4294967360, %rbp               # imm = 0x100000040
	callq	clock
	movq	%rbx, 168(%rsp)                 # 8-byte Spill
	movq	8(%rbx), %rsi
	leaq	176(%rsp), %rbx
	movq	%rbx, %rdi
	callq	_Z7LeGrafoPc
	movslq	(%rbx), %r13
	movq	%r13, 48(%rsp)                  # 8-byte Spill
	movslq	4(%rbx), %r12
	movq	8(%rbx), %rax
	movq	%rax, 104(%rsp)                 # 8-byte Spill
	movq	16(%rbx), %rax
	movq	%rax, 112(%rsp)                 # 8-byte Spill
	leaq	-4(,%r13,4), %rdi
	movq	%rdi, 208(%rsp)                 # 8-byte Spill
	callq	malloc
	movq	%rax, 216(%rsp)                 # 8-byte Spill
	shlq	$2, %r13
	leaq	152(%rsp), %rdi
	movq	%r13, %rsi
	callq	hipMalloc
	movl	%eax, %edi
	movl	$149, %esi
	callq	_ZL11HandleError10hipError_tPKci
	xorl	%eax, %eax
	movl	%eax, 12(%rsp)
	leaq	144(%rsp), %rbx
	movl	$4, %esi
	movq	%rbx, %rdi
	callq	hipMalloc
	movl	%eax, %edi
	movl	$153, %esi
	callq	_ZL11HandleError10hipError_tPKci
	movq	(%rbx), %rdi
	movl	$4, %edx
	xorl	%esi, %esi
	callq	hipMemset
	movl	%eax, %edi
	movl	$155, %esi
	callq	_ZL11HandleError10hipError_tPKci
	leaq	200(%rsp), %rbx
	movl	$8, %esi
	movq	%rbx, %rdi
	callq	hipMalloc
	movl	%eax, %edi
	movl	$157, %esi
	callq	_ZL11HandleError10hipError_tPKci
	movq	(%rbx), %rdi
	movl	$8, %edx
	xorl	%esi, %esi
	callq	hipMemset
	movl	%eax, %edi
	movl	$159, %esi
	callq	_ZL11HandleError10hipError_tPKci
	leaq	88(%rsp), %rdi
	movl	$4, %esi
	callq	hipMalloc
	movl	%eax, %edi
	movl	$161, %esi
	callq	_ZL11HandleError10hipError_tPKci
	callq	clock
	callq	clock
	cvtsi2sd	%rax, %xmm0
	movsd	%xmm0, 120(%rsp)                # 8-byte Spill
	callq	clock
	movq	%r12, %rbx
	shlq	$2, %rbx
	leaq	(%rbx,%rbx,2), %r14
	leaq	176(%rsp), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	hipMalloc
	movl	%eax, %edi
	movl	$174, %esi
	callq	_ZL11HandleError10hipError_tPKci
	movq	(%r15), %rdi
	movq	104(%rsp), %rsi                 # 8-byte Reload
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movl	%eax, %edi
	movl	$176, %esi
	callq	_ZL11HandleError10hipError_tPKci
	leaq	96(%rsp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	hipMalloc
	movl	%eax, %edi
	movl	$179, %esi
	callq	_ZL11HandleError10hipError_tPKci
	movq	(%r14), %rdi
	movq	112(%rsp), %rsi                 # 8-byte Reload
	movq	%rbx, %rdx
	xorl	%ebx, %ebx
	movl	$1, %ecx
	callq	hipMemcpy
	movl	%eax, %edi
	movl	$181, %esi
	callq	_ZL11HandleError10hipError_tPKci
	leaq	24(%rsp), %rdi
	movq	%r13, 224(%rsp)                 # 8-byte Spill
	movq	%r13, %rsi
	callq	hipMalloc
	movl	%eax, %edi
	movl	$184, %esi
	callq	_ZL11HandleError10hipError_tPKci
	callq	clock
	leaq	8(%rsp), %rax
	movl	%ebx, (%rax)
	leal	-1(%r12), %eax
	movq	%r12, 56(%rsp)                  # 8-byte Spill
	leal	62(%r12), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$6, %ecx
	incl	%ecx
	leaq	(%rcx,%rbp), %r15
	addq	$-64, %r15
	leaq	44(%rsp), %r12
	movq	48(%rsp), %r14                  # 8-byte Reload
                                        # kill: def $r14d killed $r14d killed $r14 def $r14
	movq	%r15, 64(%rsp)                  # 8-byte Spill
.LBB0_3:                                # =>This Loop Header: Depth=1
                                        #     Child Loop BB0_16 Depth 2
	callq	clock
	movq	24(%rsp), %rdi
	movl	$-1, %esi
	movq	224(%rsp), %rdx                 # 8-byte Reload
	callq	hipMemset
	movl	%eax, %edi
	movl	$204, %esi
	callq	_ZL11HandleError10hipError_tPKci
	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_5
# %bb.4:                                #   in Loop: Header=BB0_3 Depth=1
	movq	176(%rsp), %rdi
	movq	96(%rsp), %rsi
	movq	24(%rsp), %rdx
	movq	56(%rsp), %rcx                  # 8-byte Reload
                                        # kill: def $ecx killed $ecx killed $rcx
	movq	48(%rsp), %r8                   # 8-byte Reload
                                        # kill: def $r8d killed $r8d killed $r8
	callq	_Z35__device_stub__EncontraMenorAresta1P6arestaPfPiii
.LBB0_5:                                #   in Loop: Header=BB0_3 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_7
# %bb.6:                                #   in Loop: Header=BB0_3 Depth=1
	movq	176(%rsp), %rdi
	movq	96(%rsp), %rsi
	movq	24(%rsp), %rdx
	movq	56(%rsp), %rcx                  # 8-byte Reload
                                        # kill: def $ecx killed $ecx killed $rcx
	movq	48(%rsp), %r8                   # 8-byte Reload
                                        # kill: def $r8d killed $r8d killed $r8
	callq	_Z35__device_stub__EncontraMenorAresta2P6arestaPfPiii
.LBB0_7:                                #   in Loop: Header=BB0_3 Depth=1
	leal	-1(%r14), %r13d
	leal	62(%r14), %eax
	testl	%r13d, %r13d
	cmovnsl	%r13d, %eax
	sarl	$6, %eax
	incl	%eax
	leaq	(%rax,%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_9
# %bb.8:                                #   in Loop: Header=BB0_3 Depth=1
	movq	176(%rsp), %rdi
	movq	24(%rsp), %rsi
	movl	%r14d, %edx
	callq	_Z34__device_stub__MarcarArestas_StrutP6arestaPii
.LBB0_9:                                #   in Loop: Header=BB0_3 Depth=1
	callq	clock
	callq	clock
	movq	88(%rsp), %rdi
	movl	$4, %edx
	xorl	%esi, %esi
	callq	hipMemset
	movl	%eax, %edi
	movl	$246, %esi
	callq	_ZL11HandleError10hipError_tPKci
	movq	64(%rsp), %rdi                  # 8-byte Reload
	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_3 Depth=1
	movq	176(%rsp), %rdi
	movq	96(%rsp), %rsi
	movq	152(%rsp), %rcx
	movq	144(%rsp), %r8
	movq	88(%rsp), %r9
	movq	200(%rsp), %rax
	movq	%rax, (%rsp)
	movq	56(%rsp), %rdx                  # 8-byte Reload
                                        # kill: def $edx killed $edx killed $rdx
	callq	_Z35__device_stub__Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd
.LBB0_11:                               #   in Loop: Header=BB0_3 Depth=1
	movq	88(%rsp), %rsi
	movl	$4, %edx
	leaq	8(%rsp), %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movl	%eax, %edi
	movl	$252, %esi
	callq	_ZL11HandleError10hipError_tPKci
	callq	clock
	cmpl	$1, 8(%rsp)
	je	.LBB0_12
# %bb.13:                               #   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, 128(%rsp)                 # 8-byte Spill
	callq	clock
	movl	$4, %esi
	leaq	32(%rsp), %rdi
	callq	hipMalloc
	movl	%eax, %edi
	movl	$270, %esi                      # imm = 0x10E
	callq	_ZL11HandleError10hipError_tPKci
	movq	32(%rsp), %rdi
	movl	$4, %edx
	xorl	%esi, %esi
	callq	hipMemset
	movl	%eax, %edi
	movl	$272, %esi                      # imm = 0x110
	callq	_ZL11HandleError10hipError_tPKci
	movslq	%r14d, %rbx
	leaq	(,%rbx,8), %rsi
	leaq	136(%rsp), %rdi
	callq	hipMalloc
	movl	%eax, %edi
	movl	$277, %esi                      # imm = 0x115
	callq	_ZL11HandleError10hipError_tPKci
	leaq	(,%rbx,4), %rsi
	leaq	16(%rsp), %rdi
	callq	hipMalloc
	movl	%eax, %edi
	movl	$282, %esi                      # imm = 0x11A
	callq	_ZL11HandleError10hipError_tPKci
	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_3 Depth=1
	movq	176(%rsp), %rdi
	movq	24(%rsp), %rsi
	movq	16(%rsp), %rcx
	movq	136(%rsp), %r8
	movq	32(%rsp), %r9
	movl	%r14d, %edx
	callq	_Z36__device_stub__Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj
.LBB0_15:                               #   in Loop: Header=BB0_3 Depth=1
	movl	$4, %esi
	leaq	80(%rsp), %rdi
	callq	hipMalloc
	movl	%eax, %edi
	movl	$289, %esi                      # imm = 0x121
	callq	_ZL11HandleError10hipError_tPKci
	subl	8(%rsp), %r13d
	leal	63(%r13), %eax
	testl	%r13d, %r13d
	cmovnsl	%r13d, %eax
	sarl	$6, %eax
	incl	%eax
	leaq	(%rax,%rbp), %r13
	addq	$-64, %r13
.LBB0_16:                               #   Parent Loop BB0_3 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	$0, 44(%rsp)
	movq	80(%rsp), %rdi
	movl	$4, %edx
	movq	%r12, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movl	%eax, %edi
	movl	$294, %esi                      # imm = 0x126
	callq	_ZL11HandleError10hipError_tPKci
	movq	%r13, %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_16 Depth=2
	movq	136(%rsp), %rdi
	movq	16(%rsp), %rsi
	movq	80(%rsp), %rdx
	movl	%r14d, %ecx
	subl	8(%rsp), %ecx
	callq	_Z26__device_stub__AtualizaC_1P8aresta_EPiS1_i
.LBB0_18:                               #   in Loop: Header=BB0_16 Depth=2
	movq	80(%rsp), %rsi
	movl	$4, %edx
	movq	%r12, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movl	%eax, %edi
	movl	$296, %esi                      # imm = 0x128
	callq	_ZL11HandleError10hipError_tPKci
	cmpl	$1, 44(%rsp)
	je	.LBB0_16
# %bb.19:                               #   in Loop: Header=BB0_3 Depth=1
	callq	hipDeviceSynchronize
	movl	%eax, %edi
	movl	$299, %esi                      # imm = 0x12B
	callq	_ZL11HandleError10hipError_tPKci
	leaq	72(%rsp), %rdi
	movq	%rbx, %rsi
	callq	hipMalloc
	movl	%eax, %edi
	movl	$304, %esi                      # imm = 0x130
	callq	_ZL11HandleError10hipError_tPKci
	movq	72(%rsp), %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	hipMemset
	movl	%eax, %edi
	movl	$306, %esi                      # imm = 0x132
	callq	_ZL11HandleError10hipError_tPKci
	movq	32(%rsp), %rdi
	movl	$4, %edx
	xorl	%esi, %esi
	callq	hipMemset
	movl	%eax, %edi
	movl	$308, %esi                      # imm = 0x134
	callq	_ZL11HandleError10hipError_tPKci
	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_21
# %bb.20:                               #   in Loop: Header=BB0_3 Depth=1
	movq	16(%rsp), %rdi
	movq	72(%rsp), %rdx
	movq	32(%rsp), %rcx
	movl	%r14d, %esi
	callq	_Z28__device_stub__DefineNovosVUPiiPcPj
.LBB0_21:                               #   in Loop: Header=BB0_3 Depth=1
	callq	hipDeviceSynchronize
	movl	%eax, %edi
	movl	$314, %esi                      # imm = 0x13A
	callq	_ZL11HandleError10hipError_tPKci
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	movq	128(%rsp), %rbx                 # 8-byte Reload
	jne	.LBB0_23
# %bb.22:                               #   in Loop: Header=BB0_3 Depth=1
	movq	16(%rsp), %rdi
	movq	72(%rsp), %rdx
	movl	%r14d, %esi
	callq	_Z26__device_stub__AtualizaC_3PiiPc
.LBB0_23:                               #   in Loop: Header=BB0_3 Depth=1
	movq	32(%rsp), %rdi
	callq	hipFree
	movl	%eax, %edi
	movl	$321, %esi                      # imm = 0x141
	callq	_ZL11HandleError10hipError_tPKci
	movq	136(%rsp), %rdi
	callq	hipFree
	movl	%eax, %edi
	movl	$322, %esi                      # imm = 0x142
	callq	_ZL11HandleError10hipError_tPKci
	movq	80(%rsp), %rdi
	callq	hipFree
	movl	%eax, %edi
	movl	$323, %esi                      # imm = 0x143
	callq	_ZL11HandleError10hipError_tPKci
	movq	72(%rsp), %rdi
	callq	hipFree
	movl	%eax, %edi
	movl	$324, %esi                      # imm = 0x144
	callq	_ZL11HandleError10hipError_tPKci
	callq	clock
	callq	clock
	movq	64(%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
	jne	.LBB0_25
# %bb.24:                               #   in Loop: Header=BB0_3 Depth=1
	movq	176(%rsp), %rdi
	movq	16(%rsp), %rsi
	movq	56(%rsp), %rdx                  # 8-byte Reload
                                        # kill: def $edx killed $edx killed $rdx
	movq	48(%rsp), %rcx                  # 8-byte Reload
                                        # kill: def $ecx killed $ecx killed $rcx
	callq	_Z28__device_stub__MarcarArestasP6arestaPiii
.LBB0_25:                               #   in Loop: Header=BB0_3 Depth=1
	callq	hipDeviceSynchronize
	movl	%eax, %edi
	movl	$338, %esi                      # imm = 0x152
	callq	_ZL11HandleError10hipError_tPKci
	movq	16(%rsp), %rdi
	callq	hipFree
	movl	%eax, %edi
	movl	$340, %esi                      # imm = 0x154
	callq	_ZL11HandleError10hipError_tPKci
	callq	clock
	movl	8(%rsp), %r14d
	incl	%ebx
	cmpl	$1, %r14d
	jne	.LBB0_3
	jmp	.LBB0_26
.LBB0_12:                               # %.thread
	incl	%ebx
.LBB0_26:                               # %.loopexit219
	movq	%rbx, %rbp
	movsd	120(%rsp), %xmm0                # 8-byte Reload
                                        # xmm0 = mem[0],zero
	divsd	.LCPI0_0(%rip), %xmm0
	movsd	%xmm0, 120(%rsp)                # 8-byte Spill
	movq	144(%rsp), %rsi
	leaq	12(%rsp), %rbx
	movl	$4, %edx
	movq	%rbx, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movl	%eax, %edi
	movl	$363, %esi                      # imm = 0x16B
	callq	_ZL11HandleError10hipError_tPKci
	movq	152(%rsp), %rsi
	movq	216(%rsp), %r12                 # 8-byte Reload
	movq	%r12, %rdi
	movq	208(%rsp), %rdx                 # 8-byte Reload
	movl	$2, %ecx
	callq	hipMemcpy
	movl	%eax, %edi
	movl	$364, %esi                      # imm = 0x16C
	callq	_ZL11HandleError10hipError_tPKci
	movl	(%rbx), %eax
	xorpd	%xmm1, %xmm1
	testl	%eax, %eax
	jle	.LBB0_27
# %bb.28:                               # %.lr.ph.preheader
	xorl	%ecx, %ecx
	movq	112(%rsp), %r15                 # 8-byte Reload
	movq	104(%rsp), %r13                 # 8-byte Reload
	movq	168(%rsp), %r14                 # 8-byte Reload
.LBB0_29:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movslq	(%r12,%rcx,4), %rdx
	xorps	%xmm0, %xmm0
	cvtss2sd	(%r15,%rdx,4), %xmm0
	addsd	%xmm0, %xmm1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	.LBB0_29
	jmp	.LBB0_30
.LBB0_27:
	movq	112(%rsp), %r15                 # 8-byte Reload
	movq	104(%rsp), %r13                 # 8-byte Reload
	movq	168(%rsp), %r14                 # 8-byte Reload
.LBB0_30:                               # %._crit_edge
	movsd	%xmm1, 64(%rsp)                 # 8-byte Spill
	callq	clock
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	divsd	.LCPI0_0(%rip), %xmm0
	subsd	120(%rsp), %xmm0                # 8-byte Folded Reload
	movsd	%xmm0, 128(%rsp)                # 8-byte Spill
	movl	$.L.str.5, %edi
	movb	$1, %al
	callq	printf
	movq	16(%r14), %rdi
	movl	$.L.str.6, %esi
	callq	fopen
	movq	%rax, %rbx
	movq	8(%r14), %rdx
	movl	$.L.str.7, %esi
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	fprintf
	movl	$.L.str.8, %esi
	movq	%rbx, %rdi
	movsd	128(%rsp), %xmm0                # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movb	$1, %al
	callq	fprintf
	movl	$.L.str.9, %esi
	movq	%rbx, %rdi
	movl	%ebp, %edx
	xorl	%eax, %eax
	callq	fprintf
	movl	12(%rsp), %edx
	movl	$.L.str.10, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	fprintf
	movl	$.L.str.11, %esi
	movq	%rbx, %rdi
	movsd	64(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movb	$1, %al
	callq	fprintf
	cmpl	$4, 164(%rsp)                   # 4-byte Folded Reload
	jne	.LBB0_35
# %bb.31:
	movq	24(%r14), %rax
	movzbl	(%rax), %eax
	orl	$32, %eax
	cmpl	$115, %eax
	jne	.LBB0_35
# %bb.32:
	movl	12(%rsp), %edx
	movl	$.L.str.12, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	fprintf
	cmpl	$0, 12(%rsp)
	jle	.LBB0_35
# %bb.33:                               # %.lr.ph212.preheader
	xorl	%r14d, %r14d
.LBB0_34:                               # %.lr.ph212
                                        # =>This Inner Loop Header: Depth=1
	movslq	(%r12,%r14,4), %rax
	leaq	(%rax,%rax,2), %rax
	movl	(%r13,%rax,4), %edx
	movl	4(%r13,%rax,4), %ecx
	movl	$.L.str.13, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	fprintf
	incq	%r14
	movslq	12(%rsp), %rax
	cmpq	%rax, %r14
	jl	.LBB0_34
.LBB0_35:                               # %.loopexit
	movq	%rbx, %rdi
	callq	fclose
	movq	152(%rsp), %rdi
	callq	hipFree
	movl	%eax, %edi
	movl	$392, %esi                      # imm = 0x188
	callq	_ZL11HandleError10hipError_tPKci
	movq	144(%rsp), %rdi
	callq	hipFree
	movl	%eax, %edi
	movl	$393, %esi                      # imm = 0x189
	callq	_ZL11HandleError10hipError_tPKci
	movq	200(%rsp), %rdi
	callq	hipFree
	movl	%eax, %edi
	movl	$394, %esi                      # imm = 0x18A
	callq	_ZL11HandleError10hipError_tPKci
	movq	88(%rsp), %rdi
	callq	hipFree
	movl	%eax, %edi
	movl	$395, %esi                      # imm = 0x18B
	callq	_ZL11HandleError10hipError_tPKci
	movq	176(%rsp), %rdi
	callq	hipFree
	movl	%eax, %edi
	movl	$396, %esi                      # imm = 0x18C
	callq	_ZL11HandleError10hipError_tPKci
	movq	96(%rsp), %rdi
	callq	hipFree
	movl	%eax, %edi
	movl	$397, %esi                      # imm = 0x18D
	callq	_ZL11HandleError10hipError_tPKci
	movq	24(%rsp), %rdi
	callq	hipFree
	movl	%eax, %edi
	movl	$398, %esi                      # imm = 0x18E
	callq	_ZL11HandleError10hipError_tPKci
	movq	%r13, %rdi
	callq	free
	movq	%r15, %rdi
	callq	free
	movq	%r12, %rdi
	callq	free
.LBB0_36:
	xorl	%eax, %eax
	addq	$232, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	main, .Lfunc_end0-main
	.cfi_endproc
                                        # -- End function
	.globl	_Z7LeGrafoPc                    # -- Begin function _Z7LeGrafoPc
	.type	_Z7LeGrafoPc,@function
_Z7LeGrafoPc:                           # @_Z7LeGrafoPc
	.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
	pushq	%rax
	.cfi_def_cfa_offset 64
	.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, %rax
	movq	%rdi, %rbx
	movl	$.L.str.14, %esi
	movq	%rax, %rdi
	callq	fopen
	movq	%rax, %r14
	xorl	%eax, %eax
	leaq	4(%rsp), %r13
	movl	%eax, (%r13)
	movl	$.L.str.15, %esi
	movq	%r14, %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movl	(%r13), %eax
	movl	%eax, (%rbx)
	movl	$.L.str.15, %esi
	movq	%r14, %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movslq	(%r13), %rbp
	movl	%ebp, 4(%rbx)
	leaq	(,%rbp,4), %r12
	leaq	(%r12,%r12,2), %rdi
	callq	malloc
	movq	%rax, %r15
	movq	%rax, 8(%rbx)
	movq	%r12, %rdi
	callq	malloc
	movq	%rax, %r12
	movq	%rax, 16(%rbx)
	xorl	%eax, %eax
	movl	%eax, (%r13)
	testq	%rbp, %rbp
	jle	.LBB1_5
# %bb.1:                                # %.lr.ph.preheader
	xorl	%eax, %eax
.LBB1_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	cltq
	leaq	(%rax,%rax,2), %rax
	leaq	(%r15,%rax,4), %rdx
	addq	$4, %rdx
	movl	$.L.str.15, %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movslq	4(%rsp), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%r15,%rax,4), %rdx
	movl	$.L.str.15, %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movslq	4(%rsp), %rax
	leaq	(%rax,%rax,2), %rdx
	movl	(%r15,%rdx,4), %ecx
	movl	4(%r15,%rdx,4), %esi
	cmpl	%esi, %ecx
	jbe	.LBB1_4
# %bb.3:                                #   in Loop: Header=BB1_2 Depth=1
	leaq	(%r15,%rdx,4), %rdx
	movl	%esi, (%rdx)
	movl	%ecx, 4(%rdx)
.LBB1_4:                                #   in Loop: Header=BB1_2 Depth=1
	leaq	(%r12,%rax,4), %rdx
	movl	$.L.str.16, %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movslq	4(%rsp), %rax
	leaq	(%rax,%rax,2), %rcx
	movl	$0, 8(%r15,%rcx,4)
	incl	%eax
	movl	%eax, 4(%rsp)
	cmpl	%ebp, %eax
	jl	.LBB1_2
.LBB1_5:                                # %._crit_edge
	movq	%r14, %rdi
	callq	fclose
	movq	%rbx, %rax
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z7LeGrafoPc, .Lfunc_end1-_Z7LeGrafoPc
	.cfi_endproc
                                        # -- End function
	.type	_ZL11HandleError10hipError_tPKci,@function # -- Begin function _ZL11HandleError10hipError_tPKci
_ZL11HandleError10hipError_tPKci:       # @_ZL11HandleError10hipError_tPKci
	.cfi_startproc
# %bb.0:
	testl	%edi, %edi
	jne	.LBB2_2
# %bb.1:
	retq
.LBB2_2:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movl	%esi, %ebx
	callq	hipGetErrorString
	movl	$.L.str.17, %edi
	movl	$.L.str.4, %edx
	movq	%rax, %rsi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	printf
	movl	$1, %edi
	callq	exit
.Lfunc_end2:
	.size	_ZL11HandleError10hipError_tPKci, .Lfunc_end2-_ZL11HandleError10hipError_tPKci
	.cfi_endproc
                                        # -- End function
	.globl	_Z35__device_stub__EncontraMenorAresta1P6arestaPfPiii # -- Begin function _Z35__device_stub__EncontraMenorAresta1P6arestaPfPiii
	.type	_Z35__device_stub__EncontraMenorAresta1P6arestaPfPiii,@function
_Z35__device_stub__EncontraMenorAresta1P6arestaPfPiii: # @_Z35__device_stub__EncontraMenorAresta1P6arestaPfPiii
	.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	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	4(%rsp), %rdx
	movl	%ecx, (%rdx)
	movq	%rsp, %rcx
	movl	%r8d, (%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	$_Z20EncontraMenorAresta1P6arestaPfPiii, %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_end3:
	.size	_Z35__device_stub__EncontraMenorAresta1P6arestaPfPiii, .Lfunc_end3-_Z35__device_stub__EncontraMenorAresta1P6arestaPfPiii
	.cfi_endproc
                                        # -- End function
	.globl	_Z35__device_stub__EncontraMenorAresta2P6arestaPfPiii # -- Begin function _Z35__device_stub__EncontraMenorAresta2P6arestaPfPiii
	.type	_Z35__device_stub__EncontraMenorAresta2P6arestaPfPiii,@function
_Z35__device_stub__EncontraMenorAresta2P6arestaPfPiii: # @_Z35__device_stub__EncontraMenorAresta2P6arestaPfPiii
	.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	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	4(%rsp), %rdx
	movl	%ecx, (%rdx)
	movq	%rsp, %rcx
	movl	%r8d, (%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	$_Z20EncontraMenorAresta2P6arestaPfPiii, %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_end4:
	.size	_Z35__device_stub__EncontraMenorAresta2P6arestaPfPiii, .Lfunc_end4-_Z35__device_stub__EncontraMenorAresta2P6arestaPfPiii
	.cfi_endproc
                                        # -- End function
	.globl	_Z34__device_stub__MarcarArestas_StrutP6arestaPii # -- Begin function _Z34__device_stub__MarcarArestas_StrutP6arestaPii
	.type	_Z34__device_stub__MarcarArestas_StrutP6arestaPii,@function
_Z34__device_stub__MarcarArestas_StrutP6arestaPii: # @_Z34__device_stub__MarcarArestas_StrutP6arestaPii
	.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	$_Z19MarcarArestas_StrutP6arestaPii, %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_end5:
	.size	_Z34__device_stub__MarcarArestas_StrutP6arestaPii, .Lfunc_end5-_Z34__device_stub__MarcarArestas_StrutP6arestaPii
	.cfi_endproc
                                        # -- End function
	.globl	_Z35__device_stub__Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd # -- Begin function _Z35__device_stub__Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd
	.type	_Z35__device_stub__Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd,@function
_Z35__device_stub__Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd: # @_Z35__device_stub__Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd
	.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	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	4(%rsp), %rsi
	movl	%edx, (%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	$_Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd, %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_end6:
	.size	_Z35__device_stub__Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd, .Lfunc_end6-_Z35__device_stub__Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd
	.cfi_endproc
                                        # -- End function
	.globl	_Z36__device_stub__Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj # -- Begin function _Z36__device_stub__Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj
	.type	_Z36__device_stub__Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj,@function
_Z36__device_stub__Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj: # @_Z36__device_stub__Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj
	.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	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	4(%rsp), %rsi
	movl	%edx, (%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	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	$_Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj, %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_end7:
	.size	_Z36__device_stub__Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj, .Lfunc_end7-_Z36__device_stub__Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj
	.cfi_endproc
                                        # -- End function
	.globl	_Z26__device_stub__AtualizaC_1P8aresta_EPiS1_i # -- Begin function _Z26__device_stub__AtualizaC_1P8aresta_EPiS1_i
	.type	_Z26__device_stub__AtualizaC_1P8aresta_EPiS1_i,@function
_Z26__device_stub__AtualizaC_1P8aresta_EPiS1_i: # @_Z26__device_stub__AtualizaC_1P8aresta_EPiS1_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), %rdi
	movq	%rsi, (%rdi)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	4(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	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	$_Z11AtualizaC_1P8aresta_EPiS1_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_end8:
	.size	_Z26__device_stub__AtualizaC_1P8aresta_EPiS1_i, .Lfunc_end8-_Z26__device_stub__AtualizaC_1P8aresta_EPiS1_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z28__device_stub__DefineNovosVUPiiPcPj # -- Begin function _Z28__device_stub__DefineNovosVUPiiPcPj
	.type	_Z28__device_stub__DefineNovosVUPiiPcPj,@function
_Z28__device_stub__DefineNovosVUPiiPcPj: # @_Z28__device_stub__DefineNovosVUPiiPcPj
	.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	4(%rsp), %rdi
	movl	%esi, (%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	$_Z13DefineNovosVUPiiPcPj, %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_end9:
	.size	_Z28__device_stub__DefineNovosVUPiiPcPj, .Lfunc_end9-_Z28__device_stub__DefineNovosVUPiiPcPj
	.cfi_endproc
                                        # -- End function
	.globl	_Z26__device_stub__AtualizaC_3PiiPc # -- Begin function _Z26__device_stub__AtualizaC_3PiiPc
	.type	_Z26__device_stub__AtualizaC_3PiiPc,@function
_Z26__device_stub__AtualizaC_3PiiPc:    # @_Z26__device_stub__AtualizaC_3PiiPc
	.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	12(%rsp), %rcx
	movl	%esi, (%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	$_Z11AtualizaC_3PiiPc, %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	_Z26__device_stub__AtualizaC_3PiiPc, .Lfunc_end10-_Z26__device_stub__AtualizaC_3PiiPc
	.cfi_endproc
                                        # -- End function
	.globl	_Z28__device_stub__MarcarArestasP6arestaPiii # -- Begin function _Z28__device_stub__MarcarArestasP6arestaPiii
	.type	_Z28__device_stub__MarcarArestasP6arestaPiii,@function
_Z28__device_stub__MarcarArestasP6arestaPiii: # @_Z28__device_stub__MarcarArestasP6arestaPiii
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	8(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z13MarcarArestasP6arestaPiii, %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	_Z28__device_stub__MarcarArestasP6arestaPiii, .Lfunc_end11-_Z28__device_stub__MarcarArestasP6arestaPiii
	.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	.LBB12_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB12_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z20EncontraMenorAresta1P6arestaPfPiii, %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	$_Z20EncontraMenorAresta2P6arestaPfPiii, %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	$_Z19MarcarArestas_StrutP6arestaPii, %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	$_Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd, %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	$_Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj, %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	$_Z11AtualizaC_1P8aresta_EPiS1_i, %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	$_Z13DefineNovosVUPiiPcPj, %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	$_Z11AtualizaC_3PiiPc, %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	$_Z13MarcarArestasP6arestaPiii, %esi
	movl	$.L__unnamed_9, %edx
	movl	$.L__unnamed_9, %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_end12:
	.size	__hip_module_ctor, .Lfunc_end12-__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	.LBB13_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
.LBB13_2:
	retq
.Lfunc_end13:
	.size	__hip_module_dtor, .Lfunc_end13-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	.L.str.4,@object                # @.str.4
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.4:
	.asciz	"/home/ubuntu/Datasets/stackv2/train-structured-repos-hip-sm89/jucele/NewMinimumSpanningTree/master/mst_cuda_semGB.hip"
	.size	.L.str.4, 118

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

	.type	_Z20EncontraMenorAresta2P6arestaPfPiii,@object # @_Z20EncontraMenorAresta2P6arestaPfPiii
	.globl	_Z20EncontraMenorAresta2P6arestaPfPiii
	.p2align	3, 0x0
_Z20EncontraMenorAresta2P6arestaPfPiii:
	.quad	_Z35__device_stub__EncontraMenorAresta2P6arestaPfPiii
	.size	_Z20EncontraMenorAresta2P6arestaPfPiii, 8

	.type	_Z19MarcarArestas_StrutP6arestaPii,@object # @_Z19MarcarArestas_StrutP6arestaPii
	.globl	_Z19MarcarArestas_StrutP6arestaPii
	.p2align	3, 0x0
_Z19MarcarArestas_StrutP6arestaPii:
	.quad	_Z34__device_stub__MarcarArestas_StrutP6arestaPii
	.size	_Z19MarcarArestas_StrutP6arestaPii, 8

	.type	_Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd,@object # @_Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd
	.globl	_Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd
	.p2align	3, 0x0
_Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd:
	.quad	_Z35__device_stub__Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd
	.size	_Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd, 8

	.type	_Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj,@object # @_Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj
	.globl	_Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj
	.p2align	3, 0x0
_Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj:
	.quad	_Z36__device_stub__Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj
	.size	_Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj, 8

	.type	_Z11AtualizaC_1P8aresta_EPiS1_i,@object # @_Z11AtualizaC_1P8aresta_EPiS1_i
	.globl	_Z11AtualizaC_1P8aresta_EPiS1_i
	.p2align	3, 0x0
_Z11AtualizaC_1P8aresta_EPiS1_i:
	.quad	_Z26__device_stub__AtualizaC_1P8aresta_EPiS1_i
	.size	_Z11AtualizaC_1P8aresta_EPiS1_i, 8

	.type	_Z13DefineNovosVUPiiPcPj,@object # @_Z13DefineNovosVUPiiPcPj
	.globl	_Z13DefineNovosVUPiiPcPj
	.p2align	3, 0x0
_Z13DefineNovosVUPiiPcPj:
	.quad	_Z28__device_stub__DefineNovosVUPiiPcPj
	.size	_Z13DefineNovosVUPiiPcPj, 8

	.type	_Z11AtualizaC_3PiiPc,@object    # @_Z11AtualizaC_3PiiPc
	.globl	_Z11AtualizaC_3PiiPc
	.p2align	3, 0x0
_Z11AtualizaC_3PiiPc:
	.quad	_Z26__device_stub__AtualizaC_3PiiPc
	.size	_Z11AtualizaC_3PiiPc, 8

	.type	_Z13MarcarArestasP6arestaPiii,@object # @_Z13MarcarArestasP6arestaPiii
	.globl	_Z13MarcarArestasP6arestaPiii
	.p2align	3, 0x0
_Z13MarcarArestasP6arestaPiii:
	.quad	_Z28__device_stub__MarcarArestasP6arestaPiii
	.size	_Z13MarcarArestasP6arestaPiii, 8

	.type	.L.str.5,@object                # @.str.5
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.5:
	.asciz	"%lf\n"
	.size	.L.str.5, 5

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

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"\n*** Input file: %s\n"
	.size	.L.str.7, 21

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"Total Time: %lf\n"
	.size	.L.str.8, 17

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

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"SolutionSize: %d\n"
	.size	.L.str.10, 18

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	"SolutionValue: %f\n"
	.size	.L.str.11, 19

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	"*** MST formed by %d edges\n"
	.size	.L.str.12, 28

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	"Edge %d - %d\n"
	.size	.L.str.13, 14

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

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

	.type	.L.str.16,@object               # @.str.16
.L.str.16:
	.asciz	"%f"
	.size	.L.str.16, 3

	.type	.L.str.17,@object               # @.str.17
.L.str.17:
	.asciz	"%s in %s at line %d\n"
	.size	.L.str.17, 21

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z20EncontraMenorAresta1P6arestaPfPiii"
	.size	.L__unnamed_1, 39

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z20EncontraMenorAresta2P6arestaPfPiii"
	.size	.L__unnamed_2, 39

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z19MarcarArestas_StrutP6arestaPii"
	.size	.L__unnamed_3, 35

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"_Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd"
	.size	.L__unnamed_4, 45

	.type	.L__unnamed_5,@object           # @4
.L__unnamed_5:
	.asciz	"_Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj"
	.size	.L__unnamed_5, 52

	.type	.L__unnamed_6,@object           # @5
.L__unnamed_6:
	.asciz	"_Z11AtualizaC_1P8aresta_EPiS1_i"
	.size	.L__unnamed_6, 32

	.type	.L__unnamed_7,@object           # @6
.L__unnamed_7:
	.asciz	"_Z13DefineNovosVUPiiPcPj"
	.size	.L__unnamed_7, 25

	.type	.L__unnamed_8,@object           # @7
.L__unnamed_8:
	.asciz	"_Z11AtualizaC_3PiiPc"
	.size	.L__unnamed_8, 21

	.type	.L__unnamed_9,@object           # @8
.L__unnamed_9:
	.asciz	"_Z13MarcarArestasP6arestaPiii"
	.size	.L__unnamed_9, 30

	.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	"\nParametros incorretos\n Uso: ./cms_seq.exe <ArqEntrada> <ArqSaida> <dimBloco> <S/N> onde:"
	.size	.Lstr, 90

	.type	.Lstr.1,@object                 # @str.1
.Lstr.1:
	.asciz	"\t <ArqEntrada> (obrigatorio) - Nome do arquivo com as informa\303\247\303\265es do grafo (n\303\272mero de v\303\251rtices, n\303\272mero de arestas e arestas."
	.size	.Lstr.1, 130

	.type	.Lstr.2,@object                 # @str.2
.Lstr.2:
	.asciz	"\t <ArqSaida> (obrigatorio) - Nome do arquivo de saida."
	.size	.Lstr.2, 55

	.type	.Lstr.3,@object                 # @str.3
.Lstr.3:
	.asciz	"\t <S ou N> - Mostrar ou n\303\243o as arestas da MST."
	.size	.Lstr.3, 48

	.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 _Z35__device_stub__EncontraMenorAresta1P6arestaPfPiii
	.addrsig_sym _Z35__device_stub__EncontraMenorAresta2P6arestaPfPiii
	.addrsig_sym _Z34__device_stub__MarcarArestas_StrutP6arestaPii
	.addrsig_sym _Z35__device_stub__Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd
	.addrsig_sym _Z36__device_stub__Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj
	.addrsig_sym _Z26__device_stub__AtualizaC_1P8aresta_EPiS1_i
	.addrsig_sym _Z28__device_stub__DefineNovosVUPiiPcPj
	.addrsig_sym _Z26__device_stub__AtualizaC_3PiiPc
	.addrsig_sym _Z28__device_stub__MarcarArestasP6arestaPiii
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Z20EncontraMenorAresta1P6arestaPfPiii
	.addrsig_sym _Z20EncontraMenorAresta2P6arestaPfPiii
	.addrsig_sym _Z19MarcarArestas_StrutP6arestaPii
	.addrsig_sym _Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd
	.addrsig_sym _Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj
	.addrsig_sym _Z11AtualizaC_1P8aresta_EPiS1_i
	.addrsig_sym _Z13DefineNovosVUPiiPcPj
	.addrsig_sym _Z11AtualizaC_3PiiPc
	.addrsig_sym _Z13MarcarArestasP6arestaPiii
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z20EncontraMenorAresta1P6arestaPfPiii ; -- Begin function _Z20EncontraMenorAresta1P6arestaPfPiii
	.globl	_Z20EncontraMenorAresta1P6arestaPfPiii
	.p2align	8
	.type	_Z20EncontraMenorAresta1P6arestaPfPiii,@function
_Z20EncontraMenorAresta1P6arestaPfPiii: ; @_Z20EncontraMenorAresta1P6arestaPfPiii
; %bb.0:
	s_clause 0x1
	s_load_b32 s4, s[0:1], 0x2c
	s_load_b64 s[2:3], s[0:1], 0x18
	s_waitcnt lgkmcnt(0)
	s_and_b32 s4, s4, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s4, v[0:1]
	v_cmp_gt_i32_e32 vcc_lo, s2, v1
	s_and_saveexec_b32 s2, vcc_lo
	s_cbranch_execz .LBB0_16
; %bb.1:
	s_load_b128 s[4:7], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	v_mad_i64_i32 v[2:3], null, v1, 12, s[4:5]
	global_load_b32 v2, v[2:3], off
	s_waitcnt vmcnt(0)
	v_cmp_ne_u32_e32 vcc_lo, s3, v2
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB0_16
; %bb.2:
	s_load_b64 s[0:1], s[0:1], 0x10
	v_ashrrev_i32_e32 v3, 31, v2
	s_mov_b32 s2, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[3:4], 2, v[2:3]
	v_ashrrev_i32_e32 v2, 31, v1
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v3, vcc_lo, s0, v3
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v4, vcc_lo
	global_load_b32 v5, v[3:4], off
	s_waitcnt vmcnt(0)
	v_cmp_eq_u32_e64 s1, -1, v5
	v_cmpx_ne_u32_e32 -1, v5
	s_cbranch_execz .LBB0_6
; %bb.3:
	v_ashrrev_i32_e32 v6, 31, v5
	v_lshlrev_b64 v[8:9], 2, v[1:2]
	s_mov_b32 s4, exec_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[6:7], 2, v[5:6]
	v_add_co_u32 v6, vcc_lo, s6, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_ci_u32_e32 v7, vcc_lo, s7, v7, vcc_lo
	v_add_co_u32 v8, vcc_lo, s6, v8
	v_add_co_ci_u32_e32 v9, vcc_lo, s7, v9, vcc_lo
	s_clause 0x1
	global_load_b32 v0, v[6:7], off
	global_load_b32 v6, v[8:9], off
	s_waitcnt vmcnt(0)
	v_cmp_gt_f32_e64 s3, v0, v6
	v_cmpx_ngt_f32_e32 v0, v6
; %bb.4:
	v_cmp_eq_f32_e32 vcc_lo, v0, v6
	v_cmp_gt_i32_e64 s0, v5, v1
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_and_not1_b32 s3, s3, exec_lo
	s_and_b32 s0, s0, vcc_lo
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s0, s0, exec_lo
	s_or_b32 s3, s3, s0
; %bb.5:                                ; %Flow90
	s_or_b32 exec_lo, exec_lo, s4
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	s_and_not1_b32 s0, s1, exec_lo
	s_and_b32 s1, s3, exec_lo
	s_or_b32 s1, s0, s1
.LBB0_6:                                ; %Flow89
	s_or_b32 exec_lo, exec_lo, s2
	s_delay_alu instid0(VALU_DEP_2) | instid1(SALU_CYCLE_1)
	s_and_b32 exec_lo, exec_lo, s1
	s_cbranch_execz .LBB0_16
; %bb.7:
	v_dual_mov_b32 v9, -1 :: v_dual_mov_b32 v8, v1
	global_atomic_cmpswap_b32 v5, v[3:4], v[8:9], off glc
	s_waitcnt vmcnt(0)
	v_cmp_ne_u32_e32 vcc_lo, -1, v5
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB0_16
; %bb.8:                                ; %.preheader
	v_lshlrev_b64 v[7:8], 2, v[1:2]
	s_mov_b32 s2, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v7, vcc_lo, s6, v7
	v_add_co_ci_u32_e32 v8, vcc_lo, s7, v8, vcc_lo
.LBB0_9:                                ; =>This Inner Loop Header: Depth=1
	v_ashrrev_i32_e32 v6, 31, v5
	s_mov_b32 s0, 0
	s_mov_b32 s1, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[10:11], 2, v[5:6]
	v_add_co_u32 v10, vcc_lo, s6, v10
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v11, vcc_lo, s7, v11, vcc_lo
	s_clause 0x1
	global_load_b32 v0, v[10:11], off
	global_load_b32 v2, v[7:8], off
	s_waitcnt vmcnt(0)
	v_cmpx_ngt_f32_e32 v0, v2
	s_xor_b32 s3, exec_lo, s1
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	v_cmp_eq_f32_e32 vcc_lo, v0, v2
	v_cmp_gt_i32_e64 s0, v5, v1
	v_cmp_ne_u32_e64 s1, v5, v9
                                        ; implicit-def: $vgpr9
	s_delay_alu instid0(VALU_DEP_2)
	s_and_b32 s0, s0, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	s_and_b32 s0, s1, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_b32 s0, s0, exec_lo
; %bb.11:                               ; %Flow
                                        ;   in Loop: Header=BB0_9 Depth=1
	s_and_not1_saveexec_b32 s1, s3
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	v_cmp_ne_u32_e32 vcc_lo, v5, v9
	s_and_not1_b32 s0, s0, exec_lo
	s_and_b32 s3, vcc_lo, exec_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 s0, s0, s3
; %bb.13:                               ; %Flow84
                                        ;   in Loop: Header=BB0_9 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	s_mov_b32 s3, -1
                                        ; implicit-def: $vgpr9
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	v_mov_b32_e32 v2, v5
	s_xor_b32 s3, exec_lo, -1
	global_atomic_cmpswap_b32 v0, v[3:4], v[1:2], off glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u32_e32 vcc_lo, v5, v0
	v_mov_b32_e32 v5, v0
	v_cndmask_b32_e32 v9, -1, v0, vcc_lo
.LBB0_15:                               ; %Flow85
                                        ;   in Loop: Header=BB0_9 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s0, exec_lo, s3
	s_or_b32 s2, s0, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s2
	s_cbranch_execnz .LBB0_9
.LBB0_16:                               ; %.critedge
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z20EncontraMenorAresta1P6arestaPfPiii
		.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 12
		.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	_Z20EncontraMenorAresta1P6arestaPfPiii, .Lfunc_end0-_Z20EncontraMenorAresta1P6arestaPfPiii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 624
; NumSgprs: 18
; NumVgprs: 12
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 12
; 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	_Z20EncontraMenorAresta2P6arestaPfPiii ; -- Begin function _Z20EncontraMenorAresta2P6arestaPfPiii
	.globl	_Z20EncontraMenorAresta2P6arestaPfPiii
	.p2align	8
	.type	_Z20EncontraMenorAresta2P6arestaPfPiii,@function
_Z20EncontraMenorAresta2P6arestaPfPiii: ; @_Z20EncontraMenorAresta2P6arestaPfPiii
; %bb.0:
	s_clause 0x1
	s_load_b32 s4, s[0:1], 0x2c
	s_load_b64 s[2:3], s[0:1], 0x18
	s_waitcnt lgkmcnt(0)
	s_and_b32 s4, s4, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s4, v[0:1]
	v_cmp_gt_i32_e32 vcc_lo, s2, v1
	s_and_saveexec_b32 s2, vcc_lo
	s_cbranch_execz .LBB1_16
; %bb.1:
	s_load_b128 s[4:7], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	v_mad_i64_i32 v[2:3], null, v1, 12, s[4:5]
	global_load_b32 v0, v[2:3], off
	s_waitcnt vmcnt(0)
	v_cmp_ne_u32_e32 vcc_lo, s3, v0
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB1_16
; %bb.2:
	v_mad_i64_i32 v[2:3], null, v1, 12, s[4:5]
	s_load_b64 s[0:1], s[0:1], 0x10
	s_mov_b32 s2, exec_lo
	global_load_b32 v2, v[2:3], off offset:4
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v3, 31, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[3:4], 2, v[2:3]
	v_ashrrev_i32_e32 v2, 31, v1
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v3, vcc_lo, s0, v3
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v4, vcc_lo
	global_load_b32 v5, v[3:4], off
	s_waitcnt vmcnt(0)
	v_cmp_eq_u32_e64 s1, -1, v5
	v_cmpx_ne_u32_e32 -1, v5
	s_cbranch_execz .LBB1_6
; %bb.3:
	v_ashrrev_i32_e32 v6, 31, v5
	v_lshlrev_b64 v[8:9], 2, v[1:2]
	s_mov_b32 s4, exec_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[6:7], 2, v[5:6]
	v_add_co_u32 v6, vcc_lo, s6, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_ci_u32_e32 v7, vcc_lo, s7, v7, vcc_lo
	v_add_co_u32 v8, vcc_lo, s6, v8
	v_add_co_ci_u32_e32 v9, vcc_lo, s7, v9, vcc_lo
	s_clause 0x1
	global_load_b32 v0, v[6:7], off
	global_load_b32 v6, v[8:9], off
	s_waitcnt vmcnt(0)
	v_cmp_gt_f32_e64 s3, v0, v6
	v_cmpx_ngt_f32_e32 v0, v6
; %bb.4:
	v_cmp_eq_f32_e32 vcc_lo, v0, v6
	v_cmp_gt_i32_e64 s0, v5, v1
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_and_not1_b32 s3, s3, exec_lo
	s_and_b32 s0, s0, vcc_lo
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s0, s0, exec_lo
	s_or_b32 s3, s3, s0
; %bb.5:                                ; %Flow89
	s_or_b32 exec_lo, exec_lo, s4
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	s_and_not1_b32 s0, s1, exec_lo
	s_and_b32 s1, s3, exec_lo
	s_or_b32 s1, s0, s1
.LBB1_6:                                ; %Flow88
	s_or_b32 exec_lo, exec_lo, s2
	s_delay_alu instid0(VALU_DEP_2) | instid1(SALU_CYCLE_1)
	s_and_b32 exec_lo, exec_lo, s1
	s_cbranch_execz .LBB1_16
; %bb.7:
	v_dual_mov_b32 v9, -1 :: v_dual_mov_b32 v8, v1
	global_atomic_cmpswap_b32 v5, v[3:4], v[8:9], off glc
	s_waitcnt vmcnt(0)
	v_cmp_ne_u32_e32 vcc_lo, -1, v5
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB1_16
; %bb.8:                                ; %.preheader
	v_lshlrev_b64 v[7:8], 2, v[1:2]
	s_mov_b32 s2, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v7, vcc_lo, s6, v7
	v_add_co_ci_u32_e32 v8, vcc_lo, s7, v8, vcc_lo
.LBB1_9:                                ; =>This Inner Loop Header: Depth=1
	v_ashrrev_i32_e32 v6, 31, v5
	s_mov_b32 s0, 0
	s_mov_b32 s1, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[10:11], 2, v[5:6]
	v_add_co_u32 v10, vcc_lo, s6, v10
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v11, vcc_lo, s7, v11, vcc_lo
	s_clause 0x1
	global_load_b32 v0, v[10:11], off
	global_load_b32 v2, v[7:8], off
	s_waitcnt vmcnt(0)
	v_cmpx_ngt_f32_e32 v0, v2
	s_xor_b32 s3, exec_lo, s1
; %bb.10:                               ;   in Loop: Header=BB1_9 Depth=1
	v_cmp_eq_f32_e32 vcc_lo, v0, v2
	v_cmp_gt_i32_e64 s0, v5, v1
	v_cmp_ne_u32_e64 s1, v5, v9
                                        ; implicit-def: $vgpr9
	s_delay_alu instid0(VALU_DEP_2)
	s_and_b32 s0, s0, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	s_and_b32 s0, s1, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_b32 s0, s0, exec_lo
; %bb.11:                               ; %Flow
                                        ;   in Loop: Header=BB1_9 Depth=1
	s_and_not1_saveexec_b32 s1, s3
; %bb.12:                               ;   in Loop: Header=BB1_9 Depth=1
	v_cmp_ne_u32_e32 vcc_lo, v5, v9
	s_and_not1_b32 s0, s0, exec_lo
	s_and_b32 s3, vcc_lo, exec_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 s0, s0, s3
; %bb.13:                               ; %Flow83
                                        ;   in Loop: Header=BB1_9 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	s_mov_b32 s3, -1
                                        ; implicit-def: $vgpr9
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_15
; %bb.14:                               ;   in Loop: Header=BB1_9 Depth=1
	v_mov_b32_e32 v2, v5
	s_xor_b32 s3, exec_lo, -1
	global_atomic_cmpswap_b32 v0, v[3:4], v[1:2], off glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u32_e32 vcc_lo, v5, v0
	v_mov_b32_e32 v5, v0
	v_cndmask_b32_e32 v9, -1, v0, vcc_lo
.LBB1_15:                               ; %Flow84
                                        ;   in Loop: Header=BB1_9 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s0, exec_lo, s3
	s_or_b32 s2, s0, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s2
	s_cbranch_execnz .LBB1_9
.LBB1_16:                               ; %.critedge
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z20EncontraMenorAresta2P6arestaPfPiii
		.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 12
		.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	_Z20EncontraMenorAresta2P6arestaPfPiii, .Lfunc_end1-_Z20EncontraMenorAresta2P6arestaPfPiii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 644
; NumSgprs: 18
; NumVgprs: 12
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 12
; 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	_Z19MarcarArestas_StrutP6arestaPii ; -- Begin function _Z19MarcarArestas_StrutP6arestaPii
	.globl	_Z19MarcarArestas_StrutP6arestaPii
	.p2align	8
	.type	_Z19MarcarArestas_StrutP6arestaPii,@function
_Z19MarcarArestas_StrutP6arestaPii:     ; @_Z19MarcarArestas_StrutP6arestaPii
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s3, s[0:1], 0x10
	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 .LBB2_2
; %bb.1:
	s_load_b128 s[0:3], s[0:1], 0x0
	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, s2, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v1, vcc_lo
	global_load_b32 v2, v[0:1], off
	s_waitcnt vmcnt(0)
	v_mad_i64_i32 v[0:1], null, v2, 12, s[0:1]
	v_mov_b32_e32 v2, -1
	global_atomic_inc_u32 v[0:1], v2, off offset:8
.LBB2_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z19MarcarArestas_StrutP6arestaPii
		.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_end2:
	.size	_Z19MarcarArestas_StrutP6arestaPii, .Lfunc_end2-_Z19MarcarArestas_StrutP6arestaPii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 148
; 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	_Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd ; -- Begin function _Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd
	.globl	_Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd
	.p2align	8
	.type	_Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd,@function
_Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd: ; @_Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x44
	s_load_b32 s3, s[0:1], 0x10
	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_4
; %bb.1:
	s_load_b64 s[2:3], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	v_mad_i64_i32 v[2:3], null, v1, 12, s[2:3]
	global_load_b32 v0, v[2:3], off offset:8
	s_waitcnt vmcnt(0)
	v_cmp_ne_u32_e32 vcc_lo, 0, v0
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB3_4
; %bb.2:
	s_load_b128 s[4:7], s[0:1], 0x18
	v_mov_b32_e32 v0, 0
	v_mov_b32_e32 v4, -1
	s_waitcnt lgkmcnt(0)
	global_atomic_inc_u32 v5, v0, v4, s[6:7] glc
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v6, 31, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[5:6], 2, v[5:6]
	v_add_co_u32 v5, vcc_lo, s4, v5
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v6, vcc_lo, s5, v6, vcc_lo
	v_add_co_u32 v2, vcc_lo, v2, 8
	v_add_co_ci_u32_e32 v3, vcc_lo, 0, v3, vcc_lo
	global_store_b32 v[5:6], v1, off
	global_load_b32 v1, v[2:3], off
	s_waitcnt vmcnt(0)
	v_cmp_eq_u32_e32 vcc_lo, 2, v1
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB3_4
; %bb.3:
	s_load_b64 s[0:1], s[0:1], 0x28
	s_waitcnt lgkmcnt(0)
	global_atomic_inc_u32 v0, v4, s[0:1]
.LBB3_4:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd
		.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 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_end3:
	.size	_Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd, .Lfunc_end3-_Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 244
; 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 : 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	_Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj ; -- Begin function _Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj
	.globl	_Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj
	.p2align	8
	.type	_Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj,@function
_Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj: ; @_Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x3c
	s_load_b32 s3, s[0:1], 0x10
	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_10
; %bb.1:                                ; %NodeBlock
	s_clause 0x1
	s_load_b128 s[4:7], s[0:1], 0x0
	s_load_b128 s[8:11], s[0:1], 0x18
	v_ashrrev_i32_e32 v2, 31, v1
	s_load_b64 s[0:1], s[0:1], 0x28
	s_mov_b32 s2, 0
	s_mov_b32 s3, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[2:3], 2, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v4, vcc_lo, s6, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v5, vcc_lo, s7, v3, vcc_lo
	global_load_b32 v0, v[4:5], off
	s_waitcnt vmcnt(0)
	v_mad_i64_i32 v[6:7], null, v0, 12, s[4:5]
	global_load_b32 v0, v[6:7], off offset:8
	s_waitcnt vmcnt(0)
	v_cmpx_lt_i32_e32 1, v0
	s_xor_b32 s3, exec_lo, s3
	s_cbranch_execz .LBB4_5
; %bb.2:                                ; %LeafBlock47
	s_mov_b32 s6, exec_lo
	v_cmpx_eq_u32_e32 2, v0
	s_cbranch_execz .LBB4_4
; %bb.3:
	global_load_b32 v0, v[6:7], off
	s_waitcnt vmcnt(0)
	v_cmp_eq_u32_e32 vcc_lo, v1, v0
	s_and_b32 s2, vcc_lo, exec_lo
.LBB4_4:                                ; %Flow49
	s_or_b32 exec_lo, exec_lo, s6
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_b32 s2, s2, exec_lo
                                        ; implicit-def: $vgpr0
.LBB4_5:                                ; %Flow
	s_and_not1_saveexec_b32 s3, s3
; %bb.6:                                ; %LeafBlock
	v_cmp_eq_u32_e32 vcc_lo, 1, v0
	s_and_not1_b32 s2, s2, exec_lo
	s_and_b32 s6, vcc_lo, exec_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 s2, s2, s6
; %bb.7:                                ; %Flow50
	s_or_b32 exec_lo, exec_lo, s3
	s_and_saveexec_b32 s3, s2
	s_cbranch_execz .LBB4_9
; %bb.8:
	v_mov_b32_e32 v0, 0
	v_mov_b32_e32 v6, -1
	global_atomic_inc_u32 v6, v0, v6, s[0:1] glc
	global_load_b32 v0, v[4:5], off
	s_waitcnt vmcnt(0)
	v_mad_i64_i32 v[7:8], null, v0, 12, s[4:5]
	global_load_b32 v0, v[7:8], off
	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], 3, v[6:7]
	v_add_co_u32 v6, vcc_lo, s10, v6
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v7, vcc_lo, s11, v7, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b32 v[6:7], v0, off
	global_load_b32 v0, v[4:5], off
	s_waitcnt vmcnt(0)
	v_mad_i64_i32 v[4:5], null, v0, 12, s[4:5]
	global_load_b32 v0, v[4:5], off offset:4
	s_waitcnt vmcnt(0)
	global_store_b32 v[6:7], v0, off offset:4
.LBB4_9:
	s_or_b32 exec_lo, exec_lo, s3
	v_add_co_u32 v2, vcc_lo, s8, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s9, v3, vcc_lo
	global_store_b32 v[2:3], v1, off
.LBB4_10:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 304
		.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_end4:
	.size	_Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj, .Lfunc_end4-_Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 420
; 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	_Z11AtualizaC_1P8aresta_EPiS1_i ; -- Begin function _Z11AtualizaC_1P8aresta_EPiS1_i
	.globl	_Z11AtualizaC_1P8aresta_EPiS1_i
	.p2align	8
	.type	_Z11AtualizaC_1P8aresta_EPiS1_i,@function
_Z11AtualizaC_1P8aresta_EPiS1_i:        ; @_Z11AtualizaC_1P8aresta_EPiS1_i
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x2c
	s_load_b32 s3, s[0:1], 0x18
	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_9
; %bb.1:
	s_load_b128 s[4:7], s[0:1], 0x0
	v_ashrrev_i32_e32 v2, 31, v1
	s_mov_b32 s2, 0
	s_mov_b32 s3, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 3, 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_b64 v[0:1], v[0:1], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v3, 31, v0
	v_mov_b32_e32 v2, v0
	v_ashrrev_i32_e32 v5, 31, v1
	v_mov_b32_e32 v4, v1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[0:1], 2, v[2:3]
	v_lshlrev_b64 v[2:3], 2, v[4:5]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v0, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s7, v1, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v2, vcc_lo, s6, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v3, vcc_lo
	s_clause 0x1
	global_load_b32 v4, v[0:1], off
	global_load_b32 v5, v[2:3], off
	s_waitcnt vmcnt(0)
	v_cmpx_ge_i32_e64 v4, v5
	s_xor_b32 s3, exec_lo, s3
	s_cbranch_execz .LBB5_5
; %bb.2:
	s_mov_b32 s4, exec_lo
	v_cmpx_lt_i32_e64 v5, v4
	s_xor_b32 s4, exec_lo, s4
	s_cbranch_execz .LBB5_4
; %bb.3:
	global_atomic_min_i32 v[0:1], v5, off
	s_mov_b32 s2, exec_lo
.LBB5_4:                                ; %Flow36
	s_or_b32 exec_lo, exec_lo, s4
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_b32 s2, s2, exec_lo
                                        ; implicit-def: $vgpr2_vgpr3
                                        ; implicit-def: $vgpr4
.LBB5_5:                                ; %Flow
	s_and_not1_saveexec_b32 s3, s3
	s_cbranch_execz .LBB5_7
; %bb.6:
	global_atomic_min_i32 v[2:3], v4, off
	s_or_b32 s2, s2, exec_lo
.LBB5_7:                                ; %Flow37
	s_or_b32 exec_lo, exec_lo, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_b32 exec_lo, exec_lo, s2
	s_cbranch_execz .LBB5_9
; %bb.8:                                ; %.sink.split
	s_load_b64 s[0:1], s[0:1], 0x10
	v_dual_mov_b32 v0, 0 :: v_dual_mov_b32 v1, 1
	s_waitcnt lgkmcnt(0)
	global_store_b32 v0, v1, s[0:1]
.LBB5_9:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z11AtualizaC_1P8aresta_EPiS1_i
		.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 6
		.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	_Z11AtualizaC_1P8aresta_EPiS1_i, .Lfunc_end5-_Z11AtualizaC_1P8aresta_EPiS1_i
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 352
; NumSgprs: 18
; NumVgprs: 6
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 6
; 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	_Z13DefineNovosVUPiiPcPj ; -- Begin function _Z13DefineNovosVUPiiPcPj
	.globl	_Z13DefineNovosVUPiiPcPj
	.p2align	8
	.type	_Z13DefineNovosVUPiiPcPj,@function
_Z13DefineNovosVUPiiPcPj:               ; @_Z13DefineNovosVUPiiPcPj
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x2c
	s_load_b32 s3, s[0:1], 0x8
	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_3
; %bb.1:
	s_load_b64 s[2:3], s[0:1], 0x0
	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[3:4], 2, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v3, vcc_lo, s2, v3
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v4, vcc_lo, s3, v4, vcc_lo
	global_load_b32 v0, v[3:4], off
	s_waitcnt vmcnt(0)
	v_cmp_eq_u32_e32 vcc_lo, v0, v1
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB6_3
; %bb.2:
	s_load_b128 s[0:3], s[0:1], 0x10
	v_dual_mov_b32 v0, 0 :: v_dual_mov_b32 v5, -1
	v_mov_b32_e32 v6, 1
	s_waitcnt lgkmcnt(0)
	global_atomic_inc_u32 v5, v0, v5, s[2:3] glc
	v_add_co_u32 v0, vcc_lo, s0, v1
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v2, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b32 v[3:4], v5, off
	global_store_b8 v[0:1], v6, off
.LBB6_3:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z13DefineNovosVUPiiPcPj
		.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	_Z13DefineNovosVUPiiPcPj, .Lfunc_end6-_Z13DefineNovosVUPiiPcPj
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 204
; 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 : 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	_Z11AtualizaC_3PiiPc    ; -- Begin function _Z11AtualizaC_3PiiPc
	.globl	_Z11AtualizaC_3PiiPc
	.p2align	8
	.type	_Z11AtualizaC_3PiiPc,@function
_Z11AtualizaC_3PiiPc:                   ; @_Z11AtualizaC_3PiiPc
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s3, s[0:1], 0x8
	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_3
; %bb.1:
	s_load_b64 s[2:3], s[0:1], 0x10
	v_ashrrev_i32_e32 v2, 31, v1
	s_waitcnt lgkmcnt(0)
	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
	global_load_u8 v0, v[3:4], off
	s_waitcnt vmcnt(0)
	v_cmp_eq_u16_e32 vcc_lo, 0, v0
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB7_3
; %bb.2:
	s_load_b64 s[0:1], s[0:1], 0x0
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, s0, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	global_load_b32 v2, v[0:1], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v3, 31, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[2:3], 2, v[2:3]
	v_add_co_u32 v2, vcc_lo, s0, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s1, v3, vcc_lo
	global_load_b32 v2, v[2:3], off
	s_waitcnt vmcnt(0)
	global_store_b32 v[0:1], v2, off
.LBB7_3:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z11AtualizaC_3PiiPc
		.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_end7:
	.size	_Z11AtualizaC_3PiiPc, .Lfunc_end7-_Z11AtualizaC_3PiiPc
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 228
; 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 : 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	_Z13MarcarArestasP6arestaPiii ; -- Begin function _Z13MarcarArestasP6arestaPiii
	.globl	_Z13MarcarArestasP6arestaPiii
	.p2align	8
	.type	_Z13MarcarArestasP6arestaPiii,@function
_Z13MarcarArestasP6arestaPiii:          ; @_Z13MarcarArestasP6arestaPiii
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b64 s[4:5], s[0:1], 0x10
	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[2:3], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s4, v2
	s_cbranch_execz .LBB8_3
; %bb.1:
	s_load_b128 s[0:3], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	v_mad_i64_i32 v[3:4], null, v2, 12, s[0:1]
	global_load_b32 v1, v[3:4], off
	s_waitcnt vmcnt(0)
	v_cmp_ne_u32_e32 vcc_lo, s5, v1
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB8_3
; %bb.2:
	v_mad_i64_i32 v[5:6], null, v2, 12, s[0:1]
	v_mov_b32_e32 v2, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_lshlrev_b64 v[7:8], 2, v[1:2]
	global_load_b32 v1, v[5:6], off offset:4
	v_add_co_u32 v5, vcc_lo, s2, v7
	v_add_co_ci_u32_e32 v6, vcc_lo, s3, v8, vcc_lo
	s_waitcnt vmcnt(0)
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	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
	s_clause 0x1
	global_load_b32 v5, v[5:6], off
	global_load_b32 v1, v[0:1], off
	s_waitcnt vmcnt(0)
	v_cmp_eq_u32_e32 vcc_lo, v5, v1
	v_cndmask_b32_e64 v0, v5, s5, vcc_lo
	v_cndmask_b32_e64 v1, v1, s5, vcc_lo
	global_store_b96 v[3:4], v[0:2], off
.LBB8_3:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z13MarcarArestasP6arestaPiii
		.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 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_end8:
	.size	_Z13MarcarArestasP6arestaPiii, .Lfunc_end8-_Z13MarcarArestasP6arestaPiii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 240
; 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
	.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:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .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:     by_value
      - .offset:         28
        .size:           4
        .value_kind:     by_value
      - .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:           _Z20EncontraMenorAresta1P6arestaPfPiii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z20EncontraMenorAresta1P6arestaPfPiii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     12
    .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
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           4
        .value_kind:     by_value
      - .offset:         28
        .size:           4
        .value_kind:     by_value
      - .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:           _Z20EncontraMenorAresta2P6arestaPfPiii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z20EncontraMenorAresta2P6arestaPfPiii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     12
    .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:           _Z19MarcarArestas_StrutP6arestaPii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z19MarcarArestas_StrutP6arestaPii.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:
      - .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
      - .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:           _Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z20Calcula_num_zerodiffP6arestaPfiPiPjS3_Pd.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:
      - .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
      - .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
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         52
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         56
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         60
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         62
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         64
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         66
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         68
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         70
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         104
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         112
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 304
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z21Inicializa_arestasE_CP6arestaPiiS1_P8aresta_EPj.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:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .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:     by_value
      - .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:           _Z11AtualizaC_1P8aresta_EPiS1_i
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z11AtualizaC_1P8aresta_EPiS1_i.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     6
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .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:           _Z13DefineNovosVUPiiPcPj
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z13DefineNovosVUPiiPcPj.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:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .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:           _Z11AtualizaC_3PiiPc
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z11AtualizaC_3PiiPc.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:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         20
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z13MarcarArestasP6arestaPiii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z13MarcarArestasP6arestaPiii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     9
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
