//%%cu
#include <iostream>
#include <cuda.h>
#include<bits/stdc++.h>
using namespace std;

float device_time_taken;

struct edgepairs{
  int x;
  int y;
  int wt;
};

bool compareTwoEdgePairs(edgepairs a, edgepairs b)
{
    if (a.x != b.x)
        return a.x < b.x;

    if (a.y != b.y)
        return a.y < b.y;
 
  return true;
}

struct Graph{
    int nodes ;
    int edges;
    int *OA ;
    int *CA ;
    int *weight ;
    Graph(int n,int e){
        nodes = n ;
        edges = e ;
        OA = new int[nodes +1];
        CA = new int[2 * edges +1];
        weight = new int[2 * edges];
    }
};



__device__ void print(float* bcW,int node_count)
{
    for(int i=0;i<node_count;i++)
    {
        printf("%f ",bcW[i]) ;
    }
    printf("\n");
}
__global__ void cal_delta(Graph *graph , int *delta)
{
    int idx = threadIdx.x ;
    int min_wt = INT_MAX ;
    for(int i = graph->OA[idx] ; i < graph->OA[idx+1] ; i++)
    {
        min_wt = min(min_wt,graph->weight[i]);
    }
    delta[idx] = min_wt ;
}



__global__ void kernel(Graph *graph , float *BC , int *delta_node , int node_count) 
{
    int idx = threadIdx.x;
    extern __shared__ int array[];
    int *U = (int*)array ;
    int *F = (int*)&U[node_count] ;
    int *d = (int*)&F[node_count] ;
    int *sigma = (int*)&d[node_count] ;
    float *dependency = (float*)&sigma[ node_count ];
    int *lock = (int*)&dependency[node_count] ;
    int *ends = (int*)&lock[node_count] ;
    int *S = (int*)&ends[node_count] ;

    
    int v = threadIdx.x;  
    
    __shared__ int s;
    __shared__ int ends_len ;
    __shared__ int s_len ;
    __shared__ int delta ;

    s =  blockIdx.x ;   // Source vertex
    __syncthreads();


    // Initialisation
    if(v == s)
    {
        d[v] = 0 ;
        sigma[v] = 1 ;
        U[v] = 0 ;
        F[v] = 1 ;
        S[0] = s ;
        s_len = 1 ;
        ends[0] = 0 ;
        ends[1]  = 1 ;
        ends_len = 2 ;
    }
    else
    {
        U[v] = 1 ;
        F[v] = 0 ;
        d[v] = INT_MAX ;
        sigma[v] = 0 ;
    }
    dependency[v] = 0.0;
    lock[v] = 0 ;
    delta = 0 ;
    
 
    __syncthreads();
        
    // shortest path algorithm   
    while(delta < INT_MAX)
    {
        
        __syncthreads();
        if(F[v] == 1)
        {
            
            for(int r = graph->OA[v]; r < graph->OA[v + 1]; r++)
            {
                int w = graph->CA[r];
                int wt_vw = graph->weight[r] ;
                bool needlock = true ;
                while(needlock)
                {
                    if(atomicCAS(&lock[w],0,1) == 0)
                    {
                        if( U[w]== 1 && d[v] + wt_vw < d[w])
                        {
                            d[w] = d[v] + wt_vw ;
                            sigma[w] = 0 ;
                        }
                        if ( d[w] == d[v] + wt_vw )
                        {
                            sigma[w] = sigma[w] + sigma[v] ;
                        }
                        atomicExch(&lock[w] , 0 );
                        needlock = false ;
                    }
                }     
            }    
        }
      
        if(idx == 0)
        {
            atomicExch(&delta,INT_MAX);
        }
        __syncthreads() ;
        if( U[v] == 1 && d[v] < INT_MAX )
        {
            atomicMin( &delta , d[v] + delta_node[v] ) ;
        }
        __shared__ int count ;
        if(idx == 0)
        {
            atomicExch(&count,0);
        }
        F[v] = 0 ;
        __syncthreads() ;

            
        if(U[v] == 1 && d[v] < delta)
        {
            U[v] = 0;
            F[v] = 1;
            int t = atomicAdd(&s_len,1);
            S[t] = v ;
            atomicAdd(&count,1);
        }
        
        __syncthreads();
        
        if(idx == 0 )
        {
            if(count > 0) 
            {

                ends[ends_len] = ends[ends_len - 1] + count ;
                ends_len = ends_len + 1 ;
            }
        }
        
        __syncthreads();
    }
    __shared__ int depth ;
    __shared__ int start ;
    __shared__ int end ;
            
    if(idx == 0)
    {
        depth = ends_len - 1 ;
    }
    __syncthreads();
    while (depth > 0)
    {
        __syncthreads();
        if(idx==0)
        {
            start = ends[depth - 1 ] ;
            end = ends[depth] - 1 ;
        }
        __syncthreads();      
        if ( idx >= 0 && idx <= (end-start))
        {
            int w = S[start+idx] ;
            for(int r = graph->OA[w] ; r < graph->OA[w+1] ; r++)
            {
                int u = graph->CA[r] ;
                int wt_wu = graph->weight[r] ;
                if ( d[u] == d[w] + wt_wu )
                {
                    if (sigma[u] != 0)
                    {
                        atomicAdd(dependency + w, (sigma[w] * 1.0 / sigma[u]) * (1 + dependency[u]));
                    }
                }
            }
            if(w!=s)
            {
                atomicAdd(&BC[w],dependency[w]/2) ;
            }
        }
        if(idx == 0)
        {
            depth--;
        }
         __syncthreads() ;
    }
}

float *fun(Graph* h_graph)
{
    int node_count = h_graph->nodes;
    int edge_count = h_graph->edges;

    Graph *d_graph;  //DEVICE Graph

    cudaMalloc((void **)&d_graph, sizeof(Graph));

    //Copying graph from host to device but pointers have to be updated separately 
    //because pointers will contain address of host memory
    cudaMemcpy(d_graph, h_graph, sizeof(Graph), cudaMemcpyHostToDevice);  
 
    // Updating the address of OA(offset array) on the device graph
    int *d_OA;
    cudaMalloc((void **)&d_OA, sizeof(int) * (node_count + 1));
    cudaMemcpy(d_OA , h_graph->OA, sizeof(int) * (node_count + 1), cudaMemcpyHostToDevice);
    cudaMemcpy(&(d_graph->OA), &d_OA, sizeof(int *), cudaMemcpyHostToDevice);

    // Updating the address of CA(Coordinates array) on the device graph
    int *d_CA;
    cudaMalloc((void **)&d_CA, sizeof(int) * (2 * edge_count + 1));
    cudaMemcpy(d_CA, h_graph->CA, sizeof(int) * (2 * edge_count + 1), cudaMemcpyHostToDevice);
    cudaMemcpy(&(d_graph->CA), &d_CA, sizeof(int *), cudaMemcpyHostToDevice);


    // Updating the address of weight array on the device graph
    int *d_wt;
    cudaMalloc((void **)&d_wt, sizeof(int) * (2 * edge_count));
    cudaMemcpy(d_wt, h_graph->weight, sizeof(int) * (2 * edge_count), cudaMemcpyHostToDevice);
    cudaMemcpy(&(d_graph->weight), &d_wt, sizeof(int *), cudaMemcpyHostToDevice);
    
    float *bwCentrality = new float[node_count]();

    float *device_bwCentrality;
    cudaMalloc((void **)&device_bwCentrality, sizeof(float) * node_count);
    cudaMemcpy(device_bwCentrality, bwCentrality, sizeof(float) * node_count, cudaMemcpyHostToDevice);

    //TIMER
    cudaEvent_t device_start, device_end;
    cudaEventCreate(&device_start);
    cudaEventCreate(&device_end);
    cudaEventRecord(device_start);


    int *delta_v ;
    cudaMalloc((void **)&delta_v, sizeof(int) * node_count);
    cal_delta<<<1,node_count>>>(d_graph,delta_v);
    cudaDeviceSynchronize();

    kernel<<< node_count,node_count, 7*node_count*sizeof(int)+node_count*sizeof(float) >>> (d_graph ,device_bwCentrality ,delta_v , h_graph->nodes) ;
    cudaDeviceSynchronize();
    cudaMemcpy(bwCentrality,device_bwCentrality, sizeof(float) * node_count, cudaMemcpyDeviceToHost);


    cudaEventRecord(device_end);
    cudaEventSynchronize(device_end);
    cudaEventElapsedTime(&device_time_taken, device_start, device_end);

    

    cudaFree(device_bwCentrality);
    cudaFree(delta_v);
    return bwCentrality;
}
int main(int argc, char *argv[])
{
    int m,n;
    int num1,num2;
    FILE *filePointer;
    char *filename = argv[1]; 
    //const char *filename = "ip1000.txt";
    filePointer = fopen( filename , "r") ; 
      
    //checking if file ptr is NULL
    if ( filePointer == NULL ) 
    {
        printf( "input.txt file failed to open." ) ; 
        return 0;
    }

    fscanf(filePointer, "%d", &n );     //scaning the number of vertices
    fscanf(filePointer, "%d", &m );     //scaning the number of edges

    Graph *graph = new Graph(n,m);   //HOST GRAPH

    vector <edgepairs> COO(2*m);
    int it=0;
    int wt ;
    for(int i=0 ; i<m ; i++ )  //scanning the edges
    {
        fscanf(filePointer, "%d", &num1) ;
        fscanf(filePointer, "%d", &num2) ;
        fscanf(filePointer, "%d", &wt) ;
        COO[it].x = num1 ;
        COO[it].y = num2 ;
        COO[it].wt = wt ;
        it++;
        COO[it].x = num2 ;
        COO[it].y = num1 ;
        COO[it].wt = wt ;
        it++;

    }
    // COO done...
    
    // sort the COO 
    sort(COO.begin(),COO.end(),compareTwoEdgePairs);
    
    for(int i=0;i<n+1;i++)
    {
        graph->OA[i] = 0;
    }
    graph->OA[0]=0;
    //initialize the Coordinates Array
    for(int i=0;i<2*m;i++)
    {
        graph->CA[i] = COO[i].y ;
        graph->weight[i] = COO[i].wt ;
    }
    //initialize the Offsets Array
    for(int i=0;i<2*m;i++)
    {
        graph->OA[COO[i].x + 1]++;     //store the frequency..
    }
    for(int i=0;i<n;i++)
    {
        graph->OA[i+1] += graph->OA[i];   // do cumulative sum..
    }
   
    float *bwC =  fun(graph);

    float maxBetweenness = -1;
    vector<int>indices;
    cout<<"Betweeness Centrality of all the nodes(vertices)\n";
    
    for (int i = 0; i < n; i++)
    {
        maxBetweenness = max(maxBetweenness, bwC[i]);
        cout<<"Node "<<i<<" : "<< bwC[i]<<endl;
    }
    for (int i = 0; i < n; i++)
    {
        if(maxBetweenness == bwC[i])
            indices.push_back(i);
    }

    cout << endl;

    cout<<"\nMaximum Betweenness Centrality = " << maxBetweenness<<endl;
    cout<<"Vertices with Maximum Betweenness Centrality: [";
    for(int i=0;i<indices.size();i++)
    {
        if(i != indices.size()-1)
            cout<<indices[i]<<" , ";
        else
            cout<<indices[i] ;
    }
    cout<<"]"<<endl;
    cout<<"Total device time taken : ";
    cout<<device_time_taken<<endl;
    delete[] bwC;
    delete graph ;
    
}

	.file	"tmpxft_00282a94_00000000-6_Version2.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.globl	_Z19compareTwoEdgePairs9edgepairsS_
	.type	_Z19compareTwoEdgePairs9edgepairsS_, @function
_Z19compareTwoEdgePairs9edgepairsS_:
.LFB10825:
	.cfi_startproc
	endbr64
	movq	%rdi, -16(%rsp)
	movq	%rdx, -32(%rsp)
	cmpl	%edx, %edi
	jne	.L5
	movl	-28(%rsp), %ecx
	movb	$1, %al
	cmpl	%ecx, -12(%rsp)
	je	.L1
.L5:
	setl	%al
.L1:
	ret
	.cfi_endproc
.LFE10825:
	.size	_Z19compareTwoEdgePairs9edgepairsS_, .-_Z19compareTwoEdgePairs9edgepairsS_
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB10843:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE10843:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFb9edgepairsS2_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESC_EEbT_T0_.isra.0, @function
_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFb9edgepairsS2_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESC_EEbT_T0_.isra.0:
.LFB12771:
	.cfi_startproc
	movq	(%rdx), %r8
	movl	8(%rdx), %ecx
	movq	%rdi, %rax
	movq	(%rsi), %rdi
	movl	8(%rsi), %esi
	movq	%r8, %rdx
	jmp	*%rax
	.cfi_endproc
.LFE12771:
	.size	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFb9edgepairsS2_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESC_EEbT_T0_.isra.0, .-_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFb9edgepairsS2_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESC_EEbT_T0_.isra.0
	.align 2
	.type	_ZNSolsEPFRSoS_E.isra.0, @function
_ZNSolsEPFRSoS_E.isra.0:
.LFB12772:
	.cfi_startproc
	jmp	*%rsi
	.cfi_endproc
.LFE12772:
	.size	_ZNSolsEPFRSoS_E.isra.0, .-_ZNSolsEPFRSoS_E.isra.0
	.globl	_Z5printPfi
	.type	_Z5printPfi, @function
_Z5printPfi:
.LFB10829:
	.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
.LFE10829:
	.size	_Z5printPfi, .-_Z5printPfi
	.globl	_Z35__device_stub__Z9cal_deltaP5GraphPiP5GraphPi
	.type	_Z35__device_stub__Z9cal_deltaP5GraphPiP5GraphPi, @function
_Z35__device_stub__Z9cal_deltaP5GraphPiP5GraphPi:
.LFB10865:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 8(%rsp)
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rdx
	movq	%rsi, (%rsp)
	leaq	40(%rsp), %rdi
	leaq	52(%rsp), %rsi
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 48(%rsp)
	movq	%rax, 88(%rsp)
	movq	%rsp, %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 40(%rsp)
	movq	%rax, 52(%rsp)
	movl	$1, 60(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L12
	pushq	32(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z9cal_deltaP5GraphPi(%rip), %rdi
	pushq	32(%rsp)
	.cfi_def_cfa_offset 144
	movq	68(%rsp), %rcx
	movl	76(%rsp), %r8d
	movq	56(%rsp), %rsi
	movl	64(%rsp), %edx
	leaq	104(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L12:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE10865:
	.size	_Z35__device_stub__Z9cal_deltaP5GraphPiP5GraphPi, .-_Z35__device_stub__Z9cal_deltaP5GraphPiP5GraphPi
	.globl	_Z9cal_deltaP5GraphPi
	.type	_Z9cal_deltaP5GraphPi, @function
_Z9cal_deltaP5GraphPi:
.LFB10866:
	.cfi_startproc
	endbr64
	jmp	_Z35__device_stub__Z9cal_deltaP5GraphPiP5GraphPi
	.cfi_endproc
.LFE10866:
	.size	_Z9cal_deltaP5GraphPi, .-_Z9cal_deltaP5GraphPi
	.globl	_Z35__device_stub__Z6kernelP5GraphPfPiiP5GraphPfPii
	.type	_Z35__device_stub__Z6kernelP5GraphPfPiiP5GraphPfPii, @function
_Z35__device_stub__Z6kernelP5GraphPfPiiP5GraphPfPii:
.LFB10867:
	.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	.L17
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z6kernelP5GraphPfPii(%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
.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
.LFE10867:
	.size	_Z35__device_stub__Z6kernelP5GraphPfPiiP5GraphPfPii, .-_Z35__device_stub__Z6kernelP5GraphPfPiiP5GraphPfPii
	.globl	_Z6kernelP5GraphPfPii
	.type	_Z6kernelP5GraphPfPii, @function
_Z6kernelP5GraphPfPii:
.LFB10868:
	.cfi_startproc
	endbr64
	jmp	_Z35__device_stub__Z6kernelP5GraphPfPiiP5GraphPfPii
	.cfi_endproc
.LFE10868:
	.size	_Z6kernelP5GraphPfPii, .-_Z6kernelP5GraphPfPii
	.globl	_Z3funP5Graph
	.type	_Z3funP5Graph, @function
_Z3funP5Graph:
.LFB10830:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$32, %esi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movl	(%rdi), %ebp
	movl	4(%rdi), %r13d
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rdi
	leaq	8(%rsp), %r14
	leaq	16(%rsp), %r15
	call	cudaMalloc@PLT
	leal	1(%rbp), %ebx
	movq	(%rsp), %rdi
	movq	%r12, %rsi
	movslq	%ebx, %rbx
	movl	$1, %ecx
	movl	$32, %edx
	addl	%r13d, %r13d
	call	cudaMemcpy@PLT
	salq	$2, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	call	cudaMalloc@PLT
	movq	8(%r12), %rsi
	movq	8(%rsp), %rdi
	movq	%rbx, %rdx
	movl	$1, %ecx
	call	cudaMemcpy@PLT
	movq	%r14, %rsi
	movq	(%rsp), %rax
	leal	1(%r13), %r14d
	movslq	%r14d, %r14
	movl	$1, %ecx
	movl	$8, %edx
	movslq	%r13d, %r13
	salq	$2, %r14
	leaq	8(%rax), %rdi
	salq	$2, %r13
	call	cudaMemcpy@PLT
	movq	%r14, %rsi
	movq	%r15, %rdi
	call	cudaMalloc@PLT
	movq	16(%r12), %rsi
	movq	16(%rsp), %rdi
	movq	%r14, %rdx
	movl	$1, %ecx
	leaq	24(%rsp), %r14
	call	cudaMemcpy@PLT
	movq	(%rsp), %rax
	movl	$1, %ecx
	movq	%r15, %rsi
	movl	$8, %edx
	leaq	16(%rax), %rdi
	call	cudaMemcpy@PLT
	movq	%r14, %rdi
	movq	%r13, %rsi
	call	cudaMalloc@PLT
	movq	24(%r12), %rsi
	movq	24(%rsp), %rdi
	movq	%r13, %rdx
	movl	$1, %ecx
	call	cudaMemcpy@PLT
	movq	(%rsp), %rax
	movq	%r14, %rsi
	movl	$1, %ecx
	movl	$8, %edx
	movslq	%ebp, %r14
	leaq	24(%rax), %rdi
	call	cudaMemcpy@PLT
	movabsq	$2305843009213693950, %rax
	cmpq	%r14, %rax
	jb	.L23
	subq	$4, %rbx
	movq	%rbx, %rdi
	call	_Znam@PLT
	movq	%rax, %r13
	xorl	%eax, %eax
	jmp	.L24
.L23:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	call	__cxa_throw_bad_array_new_length@PLT
.L24:
	cmpq	%rax, %r14
	je	.L32
	movl	$0x00000000, 0(%r13,%rax,4)
	incq	%rax
	jmp	.L24
.L32:
	leaq	32(%rsp), %rdi
	movq	%rbx, %rsi
	call	cudaMalloc@PLT
	movq	32(%rsp), %rdi
	movq	%rbx, %rdx
	movq	%r13, %rsi
	movl	$1, %ecx
	call	cudaMemcpy@PLT
	leaq	40(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	48(%rsp), %rdi
	call	cudaEventCreate@PLT
	movq	40(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	leaq	56(%rsp), %rdi
	movq	%rbx, %rsi
	call	cudaMalloc@PLT
	movl	%ebp, 76(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movabsq	$4294967297, %rdi
	movl	$1, %esi
	movl	$1, 72(%rsp)
	movq	%rdi, 80(%rsp)
	movl	84(%rsp), %ecx
	movq	76(%rsp), %rdx
	movq	%rdi, 64(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L27
	movq	56(%rsp), %rsi
	movq	(%rsp), %rdi
	call	_Z35__device_stub__Z9cal_deltaP5GraphPiP5GraphPi
.L27:
	call	cudaDeviceSynchronize@PLT
	movl	%ebp, 76(%rsp)
	xorl	%r9d, %r9d
	movabsq	$4294967297, %rax
	movl	%ebp, 64(%rsp)
	imull	$7, %ebp, %ebp
	movq	%rax, 80(%rsp)
	movl	84(%rsp), %ecx
	movq	%rax, 68(%rsp)
	movq	76(%rsp), %rdx
	movslq	%ebp, %rbp
	movq	64(%rsp), %rdi
	movl	72(%rsp), %esi
	addq	%r14, %rbp
	leaq	0(,%rbp,4), %r8
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L28
	movl	(%r12), %ecx
	movq	56(%rsp), %rdx
	movq	32(%rsp), %rsi
	movq	(%rsp), %rdi
	call	_Z35__device_stub__Z6kernelP5GraphPfPiiP5GraphPfPii
.L28:
	call	cudaDeviceSynchronize@PLT
	movq	32(%rsp), %rsi
	movq	%rbx, %rdx
	movq	%r13, %rdi
	movl	$2, %ecx
	call	cudaMemcpy@PLT
	movq	48(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movq	48(%rsp), %rdi
	call	cudaEventSynchronize@PLT
	movq	48(%rsp), %rdx
	movq	40(%rsp), %rsi
	leaq	device_time_taken(%rip), %rdi
	call	cudaEventElapsedTime@PLT
	movq	32(%rsp), %rdi
	call	cudaFree@PLT
	movq	56(%rsp), %rdi
	call	cudaFree@PLT
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L29
.L31:
	call	__stack_chk_fail@PLT
.L29:
	addq	$104, %rsp
	.cfi_def_cfa_offset 56
	movq	%r13, %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
.LFE10830:
	.size	_Z3funP5Graph, .-_Z3funP5Graph
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"_Z6kernelP5GraphPfPii"
.LC2:
	.string	"_Z9cal_deltaP5GraphPi"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB10870:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC1(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z6kernelP5GraphPfPii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC2(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z9cal_deltaP5GraphPi(%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
	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
.LFE10870:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.rodata._ZNSt6vectorI9edgepairsSaIS0_EEC2EmRKS1_.str1.1,"aMS",@progbits,1
.LC3:
	.string	"cannot create std::vector larger than max_size()"
	.section	.text._ZNSt6vectorI9edgepairsSaIS0_EEC2EmRKS1_,"axG",@progbits,_ZNSt6vectorI9edgepairsSaIS0_EEC5EmRKS1_,comdat
	.align 2
	.weak	_ZNSt6vectorI9edgepairsSaIS0_EEC2EmRKS1_
	.type	_ZNSt6vectorI9edgepairsSaIS0_EEC2EmRKS1_, @function
_ZNSt6vectorI9edgepairsSaIS0_EEC2EmRKS1_:
.LFB11556:
	.cfi_startproc
	endbr64
	movabsq	$768614336404564650, %rax
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	cmpq	%rsi, %rax
	jnb	.L36
	leaq	.LC3(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L36:
	movq	%rsi, %r12
	xorl	%esi, %esi
	movq	%rdi, %rbp
	xorl	%eax, %eax
	movq	%rsi, (%rdi)
	imulq	$12, %r12, %rbx
	movq	%rsi, 8(%rdi)
	movq	%rsi, 16(%rdi)
	testq	%r12, %r12
	je	.L37
	movq	%rbx, %rdi
	call	_Znwm@PLT
.L37:
	leaq	(%rax,%rbx), %rsi
	movq	%rax, 0(%rbp)
	movq	%rax, 8(%rbp)
	movq	%rsi, 16(%rbp)
	testq	%r12, %r12
	je	.L38
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	decq	%r12
	movl	%ecx, 8(%rax)
	leaq	12(%rax), %rcx
	movq	%rdx, (%rax)
	movq	%rcx, %rdx
	je	.L48
.L39:
	cmpq	%rdx, %rsi
	je	.L49
	movq	(%rax), %rdi
	addq	$12, %rdx
	movq	%rdi, -12(%rdx)
	movl	8(%rax), %edi
	movl	%edi, -4(%rdx)
	jmp	.L39
.L49:
	movabsq	$3074457345618258603, %rdx
	leaq	-12(%rbx), %rax
	shrq	$2, %rax
	imulq	%rdx, %rax
	movabsq	$4611686018427387903, %rdx
	andq	%rdx, %rax
	imulq	$12, %rax, %rax
	addq	%rcx, %rax
	jmp	.L38
.L48:
	movq	%rcx, %rax
.L38:
	movq	%rax, 8(%rbp)
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE11556:
	.size	_ZNSt6vectorI9edgepairsSaIS0_EEC2EmRKS1_, .-_ZNSt6vectorI9edgepairsSaIS0_EEC2EmRKS1_
	.weak	_ZNSt6vectorI9edgepairsSaIS0_EEC1EmRKS1_
	.set	_ZNSt6vectorI9edgepairsSaIS0_EEC1EmRKS1_,_ZNSt6vectorI9edgepairsSaIS0_EEC2EmRKS1_
	.section	.text._ZNSt6vectorI9edgepairsSaIS0_EED2Ev,"axG",@progbits,_ZNSt6vectorI9edgepairsSaIS0_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorI9edgepairsSaIS0_EED2Ev
	.type	_ZNSt6vectorI9edgepairsSaIS0_EED2Ev, @function
_ZNSt6vectorI9edgepairsSaIS0_EED2Ev:
.LFB11559:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L50
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L50:
	ret
	.cfi_endproc
.LFE11559:
	.size	_ZNSt6vectorI9edgepairsSaIS0_EED2Ev, .-_ZNSt6vectorI9edgepairsSaIS0_EED2Ev
	.weak	_ZNSt6vectorI9edgepairsSaIS0_EED1Ev
	.set	_ZNSt6vectorI9edgepairsSaIS0_EED1Ev,_ZNSt6vectorI9edgepairsSaIS0_EED2Ev
	.section	.text._ZNSt6vectorIiSaIiEED2Ev,"axG",@progbits,_ZNSt6vectorIiSaIiEED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIiSaIiEED2Ev
	.type	_ZNSt6vectorIiSaIiEED2Ev, @function
_ZNSt6vectorIiSaIiEED2Ev:
.LFB11575:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L52
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L52:
	ret
	.cfi_endproc
.LFE11575:
	.size	_ZNSt6vectorIiSaIiEED2Ev, .-_ZNSt6vectorIiSaIiEED2Ev
	.weak	_ZNSt6vectorIiSaIiEED1Ev
	.set	_ZNSt6vectorIiSaIiEED1Ev,_ZNSt6vectorIiSaIiEED2Ev
	.section	.rodata._ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_.str1.1,"aMS",@progbits,1
.LC4:
	.string	"vector::_M_realloc_insert"
	.section	.text._ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.type	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_, @function
_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_:
.LFB12032:
	.cfi_startproc
	endbr64
	movabsq	$2305843009213693951, %rcx
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	8(%rdi), %rax
	movq	(%rdi), %r14
	movq	%rax, %rbx
	movq	%rax, (%rsp)
	subq	%r14, %rbx
	sarq	$2, %rbx
	cmpq	%rcx, %rbx
	jne	.L55
	leaq	.LC4(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L55:
	cmpq	%r14, (%rsp)
	movl	$1, %eax
	movq	%rsi, %r15
	movq	%rdi, %r13
	cmovne	%rbx, %rax
	movq	%rsi, %rbp
	addq	%rax, %rbx
	setc	%al
	subq	%r14, %r15
	movzbl	%al, %eax
	testq	%rax, %rax
	jne	.L65
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	.L60
	movabsq	$2305843009213693951, %rax
	cmpq	%rax, %rbx
	cmova	%rax, %rbx
	jmp	.L59
.L65:
	movq	%rcx, %rbx
.L59:
	leaq	0(,%rbx,4), %rdi
	movq	%rdx, 8(%rsp)
	call	_Znwm@PLT
	movq	8(%rsp), %rdx
	movq	%rax, %r12
.L60:
	movl	(%rdx), %eax
	movl	%eax, (%r12,%r15)
	testq	%r15, %r15
	jle	.L61
	movq	%r15, %rdx
	movq	%r14, %rsi
	movq	%r12, %rdi
	call	memmove@PLT
.L61:
	movq	(%rsp), %rax
	leaq	4(%r12,%r15), %rdx
	subq	%rbp, %rax
	testq	%rax, %rax
	jle	.L62
	movq	%rdx, %rdi
	movq	%rbp, %rsi
	movq	%rax, %rcx
	rep movsb
.L62:
	leaq	(%rdx,%rax), %rbp
	testq	%r14, %r14
	je	.L63
	movq	16(%r13), %rsi
	movq	%r14, %rdi
	subq	%r14, %rsi
	call	_ZdlPvm@PLT
.L63:
	leaq	(%r12,%rbx,4), %rax
	movq	%r12, 0(%r13)
	movq	%rbp, 8(%r13)
	movq	%rax, 16(%r13)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE12032:
	.size	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_, .-_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.section	.text._ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbS2_S2_EEEEvT_T0_,"axG",@progbits,_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbS2_S2_EEEEvT_T0_,comdat
	.weak	_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbS2_S2_EEEEvT_T0_
	.type	_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbS2_S2_EEEEvT_T0_, @function
_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbS2_S2_EEEEvT_T0_:
.LFB12552:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	-12(%rdi), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movq	(%rdi), %rax
	movq	%rax, 4(%rsp)
	movl	8(%rdi), %eax
	movl	%eax, 12(%rsp)
.L73:
	movq	(%rbx), %rdx
	movl	8(%rbx), %ecx
	movq	4(%rsp), %rdi
	movl	12(%rsp), %esi
	call	*%rbp
	testb	%al, %al
	je	.L76
	movq	(%rbx), %rax
	subq	$12, %rbx
	movq	%rax, 24(%rbx)
	movl	20(%rbx), %eax
	movl	%eax, 32(%rbx)
	jmp	.L73
.L76:
	movq	4(%rsp), %rax
	movq	%rax, 12(%rbx)
	movl	12(%rsp), %eax
	movl	%eax, 20(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE12552:
	.size	_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbS2_S2_EEEEvT_T0_, .-_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbS2_S2_EEEEvT_T0_
	.section	.text._ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_,"axG",@progbits,_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_,comdat
	.weak	_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_
	.type	_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_, @function
_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_:
.LFB12431:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%rdx, 8(%rsp)
	cmpq	%rdi, %rsi
	je	.L77
	movq	%rdi, %rbp
	movq	%rsi, %r12
	leaq	12(%rdi), %rbx
.L79:
	cmpq	%rbx, %r12
	je	.L77
	movq	8(%rsp), %rdi
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFb9edgepairsS2_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESC_EEbT_T0_.isra.0
	testb	%al, %al
	je	.L80
	movq	%rbx, %rdx
	movl	(%rbx), %r14d
	movl	4(%rbx), %r13d
	subq	%rbp, %rdx
	movl	8(%rbx), %r15d
	cmpq	$12, %rdx
	jle	.L81
	movl	$12, %edi
	movq	%rbp, %rsi
	subq	%rdx, %rdi
	addq	%rbx, %rdi
	call	memmove@PLT
	jmp	.L82
.L81:
	jne	.L82
	movq	0(%rbp), %rax
	movq	%rax, (%rbx)
	movl	8(%rbp), %eax
	movl	%eax, 8(%rbx)
.L82:
	movl	%r14d, 0(%rbp)
	movl	%r13d, 4(%rbp)
	movl	%r15d, 8(%rbp)
	jmp	.L83
.L80:
	movq	8(%rsp), %rsi
	movq	%rbx, %rdi
	call	_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbS2_S2_EEEEvT_T0_
.L83:
	addq	$12, %rbx
	jmp	.L79
.L77:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE12431:
	.size	_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_, .-_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_
	.section	.text._ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_T0_SE_T1_T2_,"axG",@progbits,_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_T0_SE_T1_T2_,comdat
	.weak	_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_T0_SE_T1_T2_
	.type	_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_T0_SE_T1_T2_, @function
_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_T0_SE_T1_T2_:
.LFB12700:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	-1(%rdx), %rax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%r9, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rsi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rdx, %r12
	cqto
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rsi, %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%rcx, 16(%rsp)
	movl	$2, %ecx
	idivq	%rcx
	movl	%r8d, 24(%rsp)
	movq	%rax, (%rsp)
.L90:
	cmpq	%rbx, (%rsp)
	jle	.L101
	leaq	1(%rbx), %rcx
	movq	%r14, %rdi
	addq	%rcx, %rcx
	imulq	$12, %rcx, %rsi
	leaq	-1(%rcx), %r15
	movq	%rcx, 8(%rsp)
	imulq	$12, %r15, %rdx
	addq	%rbp, %rsi
	addq	%rbp, %rdx
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFb9edgepairsS2_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESC_EEbT_T0_.isra.0
	movq	8(%rsp), %rcx
	testb	%al, %al
	cmove	%rcx, %r15
	imulq	$12, %rbx, %rbx
	imulq	$12, %r15, %rax
	addq	%rbp, %rbx
	addq	%rbp, %rax
	movq	(%rax), %rdx
	movq	%rdx, (%rbx)
	movl	8(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r15, %rbx
	jmp	.L90
.L101:
	testl	$1, %r12d
	jne	.L93
	leaq	-2(%r12), %rax
	movl	$2, %ecx
	cqto
	idivq	%rcx
	cmpq	%rbx, %rax
	jne	.L93
	leaq	1(%rbx,%rbx), %rdx
	imulq	$12, %rdx, %rax
	imulq	$12, %rbx, %rbx
	addq	%rbp, %rax
	movq	(%rax), %rcx
	addq	%rbp, %rbx
	movq	%rcx, (%rbx)
	movl	8(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rdx, %rbx
.L93:
	movq	16(%rsp), %rax
	movl	$2, %ecx
	movq	%rax, 36(%rsp)
	movl	24(%rsp), %eax
	movl	%eax, 44(%rsp)
	leaq	-1(%rbx), %rax
	cqto
	idivq	%rcx
.L100:
	imulq	$12, %rbx, %r8
	movq	%rax, %r12
	leaq	0(%rbp,%r8), %r15
	cmpq	%rbx, %r13
	jge	.L94
	imulq	$12, %rax, %rbx
	movl	44(%rsp), %ecx
	movq	36(%rsp), %rdx
	addq	%rbp, %rbx
	movq	(%rbx), %rdi
	movl	8(%rbx), %esi
	call	*%r14
	testb	%al, %al
	je	.L94
	movq	(%rbx), %rax
	movl	$2, %edi
	movq	%rax, (%r15)
	movl	8(%rbx), %eax
	movq	%r12, %rbx
	movl	%eax, 8(%r15)
	leaq	-1(%r12), %rax
	cqto
	idivq	%rdi
	jmp	.L100
.L94:
	movq	36(%rsp), %rax
	movq	%rax, (%r15)
	movl	44(%rsp), %eax
	movl	%eax, 8(%r15)
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE12700:
	.size	_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_T0_SE_T1_T2_, .-_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_T0_SE_T1_T2_
	.section	.text._ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_T1_,"axG",@progbits,_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_T1_,comdat
	.weak	_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_T1_
	.type	_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_T1_, @function
_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_T1_:
.LFB12258:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rdx, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdi, %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%rcx, 8(%rsp)
.L103:
	movq	%rbp, %r12
	subq	%rbx, %r12
	cmpq	$192, %r12
	jle	.L102
	movabsq	$-6148914691236517205, %rax
	sarq	$2, %r12
	imulq	%rax, %r12
	testq	%r13, %r13
	jne	.L104
	leaq	-2(%r12), %r13
	sarq	%r13
.L107:
	imulq	$12, %r13, %rax
	movq	8(%rsp), %r9
	movq	%r12, %rdx
	movq	%r13, %rsi
	movq	%rbx, %rdi
	movq	(%rbx,%rax), %rcx
	movl	8(%rbx,%rax), %r8d
	movq	%rcx, 20(%rsp)
	movl	%r8d, 28(%rsp)
	call	_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_T0_SE_T1_T2_
	testq	%r13, %r13
	jne	.L105
	movabsq	$-6148914691236517205, %r13
	jmp	.L106
.L105:
	decq	%r13
	jmp	.L107
.L106:
	movq	%rbp, %rax
	subq	$12, %rbp
	subq	%rbx, %rax
	cmpq	$12, %rax
	jle	.L102
	movq	(%rbx), %rax
	movq	%rbp, %rdx
	movq	0(%rbp), %rcx
	xorl	%esi, %esi
	subq	%rbx, %rdx
	movl	8(%rbp), %r8d
	movq	8(%rsp), %r9
	movq	%rbx, %rdi
	movq	%rax, 0(%rbp)
	movl	8(%rbx), %eax
	sarq	$2, %rdx
	imulq	%r13, %rdx
	movq	%rcx, 20(%rsp)
	movl	%eax, 8(%rbp)
	movl	%r8d, 28(%rsp)
	call	_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_T0_SE_T1_T2_
	jmp	.L106
.L104:
	sarq	%r12
	movq	8(%rsp), %rdi
	leaq	-12(%rbp), %r14
	imulq	$12, %r12, %rcx
	leaq	12(%rbx), %r12
	movq	%r12, %rsi
	leaq	(%rbx,%rcx), %r15
	movq	%r15, %rdx
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFb9edgepairsS2_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESC_EEbT_T0_.isra.0
	movq	%r14, %rdx
	testb	%al, %al
	je	.L110
	movq	8(%rsp), %rdi
	movq	%r15, %rsi
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFb9edgepairsS2_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESC_EEbT_T0_.isra.0
	testb	%al, %al
	je	.L111
	movl	8(%rbx), %eax
	jmp	.L115
.L111:
	movq	8(%rsp), %rdi
	movq	%r14, %rdx
	movq	%r12, %rsi
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFb9edgepairsS2_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESC_EEbT_T0_.isra.0
	testb	%al, %al
	movl	8(%rbx), %eax
	je	.L125
	jmp	.L124
.L110:
	movq	8(%rsp), %rdi
	movq	%r12, %rsi
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFb9edgepairsS2_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESC_EEbT_T0_.isra.0
	testb	%al, %al
	je	.L114
	movl	8(%rbx), %eax
.L125:
	movq	12(%rbx), %rcx
	movq	(%rbx), %rdx
	movq	%rcx, (%rbx)
	movl	20(%rbx), %ecx
	movq	%rdx, 12(%rbx)
	movl	%ecx, 8(%rbx)
	movl	%eax, 20(%rbx)
	jmp	.L112
.L114:
	movq	8(%rsp), %rdi
	movq	%r14, %rdx
	movq	%r15, %rsi
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFb9edgepairsS2_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESC_EEbT_T0_.isra.0
	testb	%al, %al
	movl	8(%rbx), %eax
	je	.L115
.L124:
	movq	-12(%rbp), %rsi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movq	%rsi, (%rbx)
	movl	-4(%rbp), %esi
	movl	%esi, 8(%rbx)
	movl	%ecx, -12(%rbp)
	movl	%edx, -8(%rbp)
	movl	%eax, -4(%rbp)
	jmp	.L112
.L115:
	movq	(%r15), %rsi
	movq	(%rbx), %rdx
	movq	%rsi, (%rbx)
	movl	8(%r15), %esi
	movl	%esi, 8(%rbx)
	movq	%rdx, (%r15)
	movl	%eax, 8(%r15)
.L112:
	movq	%rbp, %r15
.L116:
	movq	8(%rsp), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r12, %r14
	leaq	12(%r12), %r12
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFb9edgepairsS2_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESC_EEbT_T0_.isra.0
	testb	%al, %al
	jne	.L116
	leaq	-12(%r15), %r12
.L117:
	movq	8(%rsp), %rdi
	movq	%r12, %rdx
	movq	%rbx, %rsi
	movq	%r12, %r15
	subq	$12, %r12
	call	_ZN9__gnu_cxx5__ops15_Iter_comp_iterIPFb9edgepairsS2_EEclINS_17__normal_iteratorIPS2_St6vectorIS2_SaIS2_EEEESC_EEbT_T0_.isra.0
	testb	%al, %al
	jne	.L117
	cmpq	%r15, %r14
	jb	.L118
	movq	8(%rsp), %rcx
	decq	%r13
	movq	%rbp, %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	movq	%r14, %rbp
	call	_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_T1_
	jmp	.L103
.L118:
	movq	(%r15), %rsi
	movl	8(%r14), %eax
	leaq	12(%r14), %r12
	movq	(%r14), %rdx
	movq	%rsi, (%r14)
	movl	8(%r15), %esi
	movl	%esi, 8(%r14)
	movq	%rdx, (%r15)
	movl	%eax, 8(%r15)
	jmp	.L116
.L102:
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE12258:
	.size	_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_T1_, .-_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_T1_
	.section	.rodata.str1.1
.LC6:
	.string	"r"
.LC7:
	.string	"input.txt file failed to open."
.LC8:
	.string	"%d"
.LC9:
	.string	"Betweeness Centrality of all the nodes(vertices)\n"
.LC10:
	.string	"Node "
.LC11:
	.string	" : "
.LC12:
	.string	"\nMaximum Betweenness Centrality = "
.LC13:
	.string	"Vertices with Maximum Betweenness Centrality: ["
.LC14:
	.string	" , "
.LC15:
	.string	"]"
.LC16:
	.string	"Total device time taken : "
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB10831:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA10831
	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	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	8(%rsi), %rdi
	leaq	.LC6(%rip), %rsi
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
.LEHB0:
	call	fopen@PLT
	testq	%rax, %rax
	jne	.L127
	leaq	.LC7(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L128
.L127:
	leaq	.LC8(%rip), %r12
	movq	%rax, %rdi
	leaq	36(%rsp), %rdx
	movq	%rax, %rbp
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc23_fscanf@PLT
	leaq	32(%rsp), %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc23_fscanf@PLT
	movl	$32, %edi
	call	_Znwm@PLT
.LEHE0:
	movl	36(%rsp), %edi
	movq	%rax, %rbx
	movl	%edi, (%rax)
	movl	32(%rsp), %eax
	incl	%edi
	movslq	%edi, %rdi
	movl	%eax, 4(%rbx)
	movabsq	$2305843009213693950, %rax
	cmpq	%rdi, %rax
	jb	.L129
	salq	$2, %rdi
.LEHB1:
	call	_Znam@PLT
	movq	%rax, 8(%rbx)
	movl	4(%rbx), %eax
	leal	1(%rax,%rax), %edi
	movabsq	$2305843009213693950, %rax
	movslq	%edi, %rdi
	cmpq	%rdi, %rax
	jnb	.L130
	jmp	.L190
.L129:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L186
	call	__cxa_throw_bad_array_new_length@PLT
.L130:
	salq	$2, %rdi
	call	_Znam@PLT
	movq	%rax, 16(%rbx)
	movl	4(%rbx), %eax
	leal	(%rax,%rax), %edi
	movabsq	$2305843009213693950, %rax
	movslq	%edi, %rdi
	cmpq	%rdi, %rax
	jnb	.L133
	jmp	.L191
.L190:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L186
	call	__cxa_throw_bad_array_new_length@PLT
.L133:
	salq	$2, %rdi
	call	_Znam@PLT
.LEHE1:
	movq	%rax, 24(%rbx)
	leaq	80(%rsp), %rax
	xorl	%r13d, %r13d
	leaq	40(%rsp), %r14
	movq	%rax, 16(%rsp)
	movl	32(%rsp), %eax
	movq	16(%rsp), %rdx
	leal	(%rax,%rax), %esi
	leaq	56(%rsp), %rax
	movslq	%esi, %rsi
	movq	%rax, %rdi
	movq	%rax, 24(%rsp)
.LEHB2:
	call	_ZNSt6vectorI9edgepairsSaIS0_EEC1EmRKS1_
.LEHE2:
	jmp	.L136
.L191:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L186
.LEHB3:
	call	__cxa_throw_bad_array_new_length@PLT
.LEHE3:
.L138:
	movq	%r14, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
.LEHB4:
	call	__isoc23_fscanf@PLT
	leaq	44(%rsp), %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc23_fscanf@PLT
	leaq	48(%rsp), %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc23_fscanf@PLT
	imulq	$24, %r13, %rdi
	movq	56(%rsp), %r8
	movl	40(%rsp), %ecx
	incq	%r13
	movl	48(%rsp), %edx
	movl	44(%rsp), %esi
	leaq	(%r8,%rdi), %rax
	movl	%ecx, (%rax)
	movl	%esi, 4(%rax)
	movl	%edx, 8(%rax)
	leaq	12(%r8,%rdi), %rax
	movl	%esi, (%rax)
	movl	%ecx, 4(%rax)
	movl	%edx, 8(%rax)
.L136:
	cmpl	%r13d, 32(%rsp)
	jg	.L138
	movq	64(%rsp), %r13
	movq	56(%rsp), %rbp
	cmpq	%r13, %rbp
	je	.L139
	movq	%r13, %r12
	leaq	_Z19compareTwoEdgePairs9edgepairsS_(%rip), %r14
	movq	%r13, %rsi
	movq	%rbp, %rdi
	movabsq	$-6148914691236517205, %rdx
	subq	%rbp, %r12
	movq	%r14, %rcx
	movq	%r12, %rax
	sarq	$2, %rax
	imulq	%rdx, %rax
	bsrq	%rax, %rdx
	xorq	$63, %rdx
	testq	%rax, %rax
	movl	$64, %eax
	cmovne	%edx, %eax
	movl	$63, %edx
	subl	%eax, %edx
	movslq	%edx, %rdx
	addq	%rdx, %rdx
	call	_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_T1_
	cmpq	$192, %r12
	jle	.L141
	leaq	192(%rbp), %r12
	movq	%r14, %rdx
	movq	%rbp, %rdi
	movq	%r12, %rsi
	call	_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_
.L142:
	cmpq	%r12, %r13
	je	.L139
	movq	%r14, %rsi
	movq	%r12, %rdi
	call	_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbS2_S2_EEEEvT_T0_
	addq	$12, %r12
	jmp	.L142
.L141:
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%rbp, %rdi
	call	_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_
.L139:
	movq	8(%rbx), %rax
	xorl	%edx, %edx
.L145:
	cmpl	%edx, 36(%rsp)
	jl	.L192
	xorl	%ecx, %ecx
	movl	%ecx, (%rax,%rdx,4)
	incq	%rdx
	jmp	.L145
.L192:
	xorl	%edx, %edx
	leaq	4(%rbp), %rcx
	movl	%edx, (%rax)
	xorl	%edx, %edx
.L147:
	movl	32(%rsp), %esi
	addl	%esi, %esi
	cmpl	%edx, %esi
	jle	.L193
	movl	(%rcx), %edi
	movq	16(%rbx), %rsi
	addq	$12, %rcx
	movl	%edi, (%rsi,%rdx,4)
	movq	24(%rbx), %rsi
	movl	-8(%rcx), %edi
	movl	%edi, (%rsi,%rdx,4)
	incq	%rdx
	jmp	.L147
.L193:
	xorl	%edx, %edx
.L149:
	movl	32(%rsp), %ecx
	addl	%ecx, %ecx
	cmpl	%edx, %ecx
	jle	.L194
	imulq	$12, %rdx, %rcx
	incq	%rdx
	movslq	0(%rbp,%rcx), %rcx
	incl	4(%rax,%rcx,4)
	jmp	.L149
.L194:
	xorl	%edx, %edx
.L151:
	cmpl	%edx, 36(%rsp)
	jle	.L195
	movl	(%rax,%rdx,4), %ecx
	addl	%ecx, 4(%rax,%rdx,4)
	incq	%rdx
	jmp	.L151
.L195:
	movq	%rbx, %rdi
	call	_Z3funP5Graph
.LEHE4:
	leaq	_ZSt4cout(%rip), %r15
	movq	%rax, %rbp
	xorl	%eax, %eax
	leaq	.LC9(%rip), %rsi
	movq	%r15, %rdi
	movq	%rax, 80(%rsp)
	movq	%rax, 88(%rsp)
	movq	%rax, 96(%rsp)
.LEHB5:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movss	.LC5(%rip), %xmm2
	xorl	%r12d, %r12d
	leaq	.LC10(%rip), %r14
	movss	%xmm2, 12(%rsp)
.L153:
	movl	%r12d, %r13d
	cmpl	%r12d, 36(%rsp)
	jle	.L196
	movss	12(%rsp), %xmm1
	movss	0(%rbp,%r12,4), %xmm0
	call	fmaxf@PLT
	movq	%r14, %rsi
	movq	%r15, %rdi
	movss	%xmm0, 12(%rsp)
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%r13d, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC11(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	cvtss2sd	0(%rbp,%r12,4), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	incq	%r12
	jmp	.L153
.L196:
	xorl	%r12d, %r12d
.L155:
	movl	%r12d, 52(%rsp)
	cmpl	%r12d, 36(%rsp)
	jle	.L197
	movslq	%r12d, %rax
	movss	12(%rsp), %xmm3
	ucomiss	0(%rbp,%rax,4), %xmm3
	jp	.L159
	jne	.L159
	movq	88(%rsp), %rsi
	cmpq	96(%rsp), %rsi
	je	.L158
	movl	%r12d, (%rsi)
	addq	$4, %rsi
	movq	%rsi, 88(%rsp)
	jmp	.L159
.L158:
	movq	16(%rsp), %rdi
	leaq	52(%rsp), %rdx
	call	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
.L159:
	incl	%r12d
	jmp	.L155
.L197:
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC12(%rip), %rsi
	movq	%r15, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	cvtss2sd	12(%rsp), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC13(%rip), %rsi
	movq	%r15, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	xorl	%r12d, %r12d
	leaq	.LC14(%rip), %r13
.L161:
	movq	80(%rsp), %rdx
	movq	88(%rsp), %rax
	subq	%rdx, %rax
	sarq	$2, %rax
	cmpq	%rax, %r12
	jnb	.L198
	decq	%rax
	movl	(%rdx,%r12,4), %esi
	movq	%r15, %rdi
	cmpq	%r12, %rax
	je	.L162
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	movq	%r13, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	jmp	.L163
.L162:
	call	_ZNSolsEi@PLT
.L163:
	incq	%r12
	jmp	.L161
.L198:
	leaq	.LC15(%rip), %rsi
	movq	%r15, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC16(%rip), %rsi
	movq	%r15, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%r15, %rdi
	cvtss2sd	device_time_taken(%rip), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.LEHE5:
	testq	%rbp, %rbp
	je	.L165
	movq	%rbp, %rdi
	call	_ZdaPv@PLT
.L165:
	movl	$32, %esi
	movq	%rbx, %rdi
	call	_ZdlPvm@PLT
	movq	16(%rsp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	movq	24(%rsp), %rdi
	call	_ZNSt6vectorI9edgepairsSaIS0_EED1Ev
.L128:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L171
	jmp	.L186
.L175:
	endbr64
	movq	%rax, %rbp
.L166:
	movq	%rbx, %rdi
	movl	$32, %esi
	call	_ZdlPvm@PLT
	movq	%rbp, %rdi
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L189
	jmp	.L186
.L177:
	endbr64
	movq	%rax, %rbx
.L168:
	movq	16(%rsp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	jmp	.L169
.L176:
	endbr64
	movq	%rax, %rbx
.L169:
	movq	24(%rsp), %rdi
	call	_ZNSt6vectorI9edgepairsSaIS0_EED1Ev
	movq	%rbx, %rdi
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L186
.L189:
.LEHB6:
	call	_Unwind_Resume@PLT
.LEHE6:
.L186:
	call	__stack_chk_fail@PLT
.L171:
	addq	$120, %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
.LFE10831:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA10831:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE10831-.LLSDACSB10831
.LLSDACSB10831:
	.uleb128 .LEHB0-.LFB10831
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB10831
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L175-.LFB10831
	.uleb128 0
	.uleb128 .LEHB2-.LFB10831
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB3-.LFB10831
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L175-.LFB10831
	.uleb128 0
	.uleb128 .LEHB4-.LFB10831
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L176-.LFB10831
	.uleb128 0
	.uleb128 .LEHB5-.LFB10831
	.uleb128 .LEHE5-.LEHB5
	.uleb128 .L177-.LFB10831
	.uleb128 0
	.uleb128 .LEHB6-.LFB10831
	.uleb128 .LEHE6-.LEHB6
	.uleb128 0
	.uleb128 0
.LLSDACSE10831:
	.section	.text.startup
	.size	main, .-main
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.globl	device_time_taken
	.bss
	.align 4
	.type	device_time_taken, @object
	.size	device_time_taken, 4
device_time_taken:
	.zero	4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC5:
	.long	-1082130432
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

//%%cu
#include <iostream>
#include <hip/hip_runtime.h>
#include<bits/stdc++.h>
using namespace std;

float device_time_taken;

struct edgepairs{
  int x;
  int y;
  int wt;
};

bool compareTwoEdgePairs(edgepairs a, edgepairs b)
{
    if (a.x != b.x)
        return a.x < b.x;

    if (a.y != b.y)
        return a.y < b.y;
 
  return true;
}

struct Graph{
    int nodes ;
    int edges;
    int *OA ;
    int *CA ;
    int *weight ;
    Graph(int n,int e){
        nodes = n ;
        edges = e ;
        OA = new int[nodes +1];
        CA = new int[2 * edges +1];
        weight = new int[2 * edges];
    }
};



__device__ void print(float* bcW,int node_count)
{
    for(int i=0;i<node_count;i++)
    {
        printf("%f ",bcW[i]) ;
    }
    printf("\n");
}
__global__ void cal_delta(Graph *graph , int *delta)
{
    int idx = threadIdx.x ;
    int min_wt = INT_MAX ;
    for(int i = graph->OA[idx] ; i < graph->OA[idx+1] ; i++)
    {
        min_wt = min(min_wt,graph->weight[i]);
    }
    delta[idx] = min_wt ;
}



__global__ void kernel(Graph *graph , float *BC , int *delta_node , int node_count) 
{
    int idx = threadIdx.x;
    extern __shared__ int array[];
    int *U = (int*)array ;
    int *F = (int*)&U[node_count] ;
    int *d = (int*)&F[node_count] ;
    int *sigma = (int*)&d[node_count] ;
    float *dependency = (float*)&sigma[ node_count ];
    int *lock = (int*)&dependency[node_count] ;
    int *ends = (int*)&lock[node_count] ;
    int *S = (int*)&ends[node_count] ;

    
    int v = threadIdx.x;  
    
    __shared__ int s;
    __shared__ int ends_len ;
    __shared__ int s_len ;
    __shared__ int delta ;

    s =  blockIdx.x ;   // Source vertex
    __syncthreads();


    // Initialisation
    if(v == s)
    {
        d[v] = 0 ;
        sigma[v] = 1 ;
        U[v] = 0 ;
        F[v] = 1 ;
        S[0] = s ;
        s_len = 1 ;
        ends[0] = 0 ;
        ends[1]  = 1 ;
        ends_len = 2 ;
    }
    else
    {
        U[v] = 1 ;
        F[v] = 0 ;
        d[v] = INT_MAX ;
        sigma[v] = 0 ;
    }
    dependency[v] = 0.0;
    lock[v] = 0 ;
    delta = 0 ;
    
 
    __syncthreads();
        
    // shortest path algorithm   
    while(delta < INT_MAX)
    {
        
        __syncthreads();
        if(F[v] == 1)
        {
            
            for(int r = graph->OA[v]; r < graph->OA[v + 1]; r++)
            {
                int w = graph->CA[r];
                int wt_vw = graph->weight[r] ;
                bool needlock = true ;
                while(needlock)
                {
                    if(atomicCAS(&lock[w],0,1) == 0)
                    {
                        if( U[w]== 1 && d[v] + wt_vw < d[w])
                        {
                            d[w] = d[v] + wt_vw ;
                            sigma[w] = 0 ;
                        }
                        if ( d[w] == d[v] + wt_vw )
                        {
                            sigma[w] = sigma[w] + sigma[v] ;
                        }
                        atomicExch(&lock[w] , 0 );
                        needlock = false ;
                    }
                }     
            }    
        }
      
        if(idx == 0)
        {
            atomicExch(&delta,INT_MAX);
        }
        __syncthreads() ;
        if( U[v] == 1 && d[v] < INT_MAX )
        {
            atomicMin( &delta , d[v] + delta_node[v] ) ;
        }
        __shared__ int count ;
        if(idx == 0)
        {
            atomicExch(&count,0);
        }
        F[v] = 0 ;
        __syncthreads() ;

            
        if(U[v] == 1 && d[v] < delta)
        {
            U[v] = 0;
            F[v] = 1;
            int t = atomicAdd(&s_len,1);
            S[t] = v ;
            atomicAdd(&count,1);
        }
        
        __syncthreads();
        
        if(idx == 0 )
        {
            if(count > 0) 
            {

                ends[ends_len] = ends[ends_len - 1] + count ;
                ends_len = ends_len + 1 ;
            }
        }
        
        __syncthreads();
    }
    __shared__ int depth ;
    __shared__ int start ;
    __shared__ int end ;
            
    if(idx == 0)
    {
        depth = ends_len - 1 ;
    }
    __syncthreads();
    while (depth > 0)
    {
        __syncthreads();
        if(idx==0)
        {
            start = ends[depth - 1 ] ;
            end = ends[depth] - 1 ;
        }
        __syncthreads();      
        if ( idx >= 0 && idx <= (end-start))
        {
            int w = S[start+idx] ;
            for(int r = graph->OA[w] ; r < graph->OA[w+1] ; r++)
            {
                int u = graph->CA[r] ;
                int wt_wu = graph->weight[r] ;
                if ( d[u] == d[w] + wt_wu )
                {
                    if (sigma[u] != 0)
                    {
                        atomicAdd(dependency + w, (sigma[w] * 1.0 / sigma[u]) * (1 + dependency[u]));
                    }
                }
            }
            if(w!=s)
            {
                atomicAdd(&BC[w],dependency[w]/2) ;
            }
        }
        if(idx == 0)
        {
            depth--;
        }
         __syncthreads() ;
    }
}

float *fun(Graph* h_graph)
{
    int node_count = h_graph->nodes;
    int edge_count = h_graph->edges;

    Graph *d_graph;  //DEVICE Graph

    hipMalloc((void **)&d_graph, sizeof(Graph));

    //Copying graph from host to device but pointers have to be updated separately 
    //because pointers will contain address of host memory
    hipMemcpy(d_graph, h_graph, sizeof(Graph), hipMemcpyHostToDevice);  
 
    // Updating the address of OA(offset array) on the device graph
    int *d_OA;
    hipMalloc((void **)&d_OA, sizeof(int) * (node_count + 1));
    hipMemcpy(d_OA , h_graph->OA, sizeof(int) * (node_count + 1), hipMemcpyHostToDevice);
    hipMemcpy(&(d_graph->OA), &d_OA, sizeof(int *), hipMemcpyHostToDevice);

    // Updating the address of CA(Coordinates array) on the device graph
    int *d_CA;
    hipMalloc((void **)&d_CA, sizeof(int) * (2 * edge_count + 1));
    hipMemcpy(d_CA, h_graph->CA, sizeof(int) * (2 * edge_count + 1), hipMemcpyHostToDevice);
    hipMemcpy(&(d_graph->CA), &d_CA, sizeof(int *), hipMemcpyHostToDevice);


    // Updating the address of weight array on the device graph
    int *d_wt;
    hipMalloc((void **)&d_wt, sizeof(int) * (2 * edge_count));
    hipMemcpy(d_wt, h_graph->weight, sizeof(int) * (2 * edge_count), hipMemcpyHostToDevice);
    hipMemcpy(&(d_graph->weight), &d_wt, sizeof(int *), hipMemcpyHostToDevice);
    
    float *bwCentrality = new float[node_count]();

    float *device_bwCentrality;
    hipMalloc((void **)&device_bwCentrality, sizeof(float) * node_count);
    hipMemcpy(device_bwCentrality, bwCentrality, sizeof(float) * node_count, hipMemcpyHostToDevice);

    //TIMER
    hipEvent_t device_start, device_end;
    hipEventCreate(&device_start);
    hipEventCreate(&device_end);
    hipEventRecord(device_start);


    int *delta_v ;
    hipMalloc((void **)&delta_v, sizeof(int) * node_count);
    cal_delta<<<1,node_count>>>(d_graph,delta_v);
    hipDeviceSynchronize();

    kernel<<< node_count,node_count, 7*node_count*sizeof(int)+node_count*sizeof(float) >>> (d_graph ,device_bwCentrality ,delta_v , h_graph->nodes) ;
    hipDeviceSynchronize();
    hipMemcpy(bwCentrality,device_bwCentrality, sizeof(float) * node_count, hipMemcpyDeviceToHost);


    hipEventRecord(device_end);
    hipEventSynchronize(device_end);
    hipEventElapsedTime(&device_time_taken, device_start, device_end);

    

    hipFree(device_bwCentrality);
    hipFree(delta_v);
    return bwCentrality;
}
int main(int argc, char *argv[])
{
    int m,n;
    int num1,num2;
    FILE *filePointer;
    char *filename = argv[1]; 
    //const char *filename = "ip1000.txt";
    filePointer = fopen( filename , "r") ; 
      
    //checking if file ptr is NULL
    if ( filePointer == NULL ) 
    {
        printf( "input.txt file failed to open." ) ; 
        return 0;
    }

    fscanf(filePointer, "%d", &n );     //scaning the number of vertices
    fscanf(filePointer, "%d", &m );     //scaning the number of edges

    Graph *graph = new Graph(n,m);   //HOST GRAPH

    vector <edgepairs> COO(2*m);
    int it=0;
    int wt ;
    for(int i=0 ; i<m ; i++ )  //scanning the edges
    {
        fscanf(filePointer, "%d", &num1) ;
        fscanf(filePointer, "%d", &num2) ;
        fscanf(filePointer, "%d", &wt) ;
        COO[it].x = num1 ;
        COO[it].y = num2 ;
        COO[it].wt = wt ;
        it++;
        COO[it].x = num2 ;
        COO[it].y = num1 ;
        COO[it].wt = wt ;
        it++;

    }
    // COO done...
    
    // sort the COO 
    sort(COO.begin(),COO.end(),compareTwoEdgePairs);
    
    for(int i=0;i<n+1;i++)
    {
        graph->OA[i] = 0;
    }
    graph->OA[0]=0;
    //initialize the Coordinates Array
    for(int i=0;i<2*m;i++)
    {
        graph->CA[i] = COO[i].y ;
        graph->weight[i] = COO[i].wt ;
    }
    //initialize the Offsets Array
    for(int i=0;i<2*m;i++)
    {
        graph->OA[COO[i].x + 1]++;     //store the frequency..
    }
    for(int i=0;i<n;i++)
    {
        graph->OA[i+1] += graph->OA[i];   // do cumulative sum..
    }
   
    float *bwC =  fun(graph);

    float maxBetweenness = -1;
    vector<int>indices;
    cout<<"Betweeness Centrality of all the nodes(vertices)\n";
    
    for (int i = 0; i < n; i++)
    {
        maxBetweenness = max(maxBetweenness, bwC[i]);
        cout<<"Node "<<i<<" : "<< bwC[i]<<endl;
    }
    for (int i = 0; i < n; i++)
    {
        if(maxBetweenness == bwC[i])
            indices.push_back(i);
    }

    cout << endl;

    cout<<"\nMaximum Betweenness Centrality = " << maxBetweenness<<endl;
    cout<<"Vertices with Maximum Betweenness Centrality: [";
    for(int i=0;i<indices.size();i++)
    {
        if(i != indices.size()-1)
            cout<<indices[i]<<" , ";
        else
            cout<<indices[i] ;
    }
    cout<<"]"<<endl;
    cout<<"Total device time taken : ";
    cout<<device_time_taken<<endl;
    delete[] bwC;
    delete graph ;
    
}

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

                                        # End of file scope inline assembly
	.globl	_Z19compareTwoEdgePairs9edgepairsS_ # -- Begin function _Z19compareTwoEdgePairs9edgepairsS_
	.type	_Z19compareTwoEdgePairs9edgepairsS_,@function
_Z19compareTwoEdgePairs9edgepairsS_:    # @_Z19compareTwoEdgePairs9edgepairsS_
	.cfi_startproc
# %bb.0:
	cmpl	%edx, %edi
	jne	.LBB0_1
# %bb.2:
	shrq	$32, %rdx
	shrq	$32, %rdi
	cmpq	%rdx, %rdi
	sete	%cl
	cmpl	%edx, %edi
	setl	%al
	orb	%cl, %al
	retq
.LBB0_1:
	setl	%al
	retq
.Lfunc_end0:
	.size	_Z19compareTwoEdgePairs9edgepairsS_, .Lfunc_end0-_Z19compareTwoEdgePairs9edgepairsS_
	.cfi_endproc
                                        # -- End function
	.globl	_Z24__device_stub__cal_deltaP5GraphPi # -- Begin function _Z24__device_stub__cal_deltaP5GraphPi
	.type	_Z24__device_stub__cal_deltaP5GraphPi,@function
_Z24__device_stub__cal_deltaP5GraphPi:  # @_Z24__device_stub__cal_deltaP5GraphPi
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$80, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	16(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%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	$_Z9cal_deltaP5GraphPi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$96, %rsp
	.cfi_adjust_cfa_offset -96
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z24__device_stub__cal_deltaP5GraphPi, .Lfunc_end1-_Z24__device_stub__cal_deltaP5GraphPi
	.cfi_endproc
                                        # -- End function
	.globl	_Z21__device_stub__kernelP5GraphPfPii # -- Begin function _Z21__device_stub__kernelP5GraphPfPii
	.type	_Z21__device_stub__kernelP5GraphPfPii,@function
_Z21__device_stub__kernelP5GraphPfPii:  # @_Z21__device_stub__kernelP5GraphPfPii
	.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	$_Z6kernelP5GraphPfPii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_Z21__device_stub__kernelP5GraphPfPii, .Lfunc_end2-_Z21__device_stub__kernelP5GraphPfPii
	.cfi_endproc
                                        # -- End function
	.globl	_Z3funP5Graph                   # -- Begin function _Z3funP5Graph
	.type	_Z3funP5Graph,@function
_Z3funP5Graph:                          # @_Z3funP5Graph
	.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	$72, %rsp
	.cfi_def_cfa_offset 128
	.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	%rdi, %rbx
	movslq	(%rdi), %r13
	movslq	4(%rdi), %rbp
	leaq	8(%rsp), %r14
	movl	$32, %esi
	movq	%r14, %rdi
	callq	hipMalloc
	movq	(%r14), %rdi
	movl	$32, %edx
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	4(,%r13,4), %r15
	leaq	64(%rsp), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	hipMalloc
	movq	(%r12), %rdi
	movq	8(%rbx), %rsi
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movq	(%r14), %rdi
	addq	$8, %rdi
	movl	$8, %edx
	movq	%r12, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	leal	(,%rbp,2), %r14d
	leaq	4(,%rbp,8), %r15
	leaq	56(%rsp), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	hipMalloc
	movq	(%r12), %rdi
	movq	16(%rbx), %rsi
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	8(%rsp), %rax
	movq	(%rax), %rdi
	addq	$16, %rdi
	movl	$8, %edx
	movq	%r12, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movslq	%r14d, %r15
	shlq	$2, %r15
	leaq	48(%rsp), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	hipMalloc
	movq	(%r12), %rdi
	movq	24(%rbx), %rsi
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	8(%rsp), %rax
	movq	(%rax), %rdi
	addq	$24, %rdi
	movl	$8, %edx
	movq	%r12, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	(,%r13,4), %r15
	testq	%r13, %r13
	movq	$-1, %r12
	cmovnsq	%r15, %r12
	movq	%r12, %rdi
	callq	_Znam
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	memset@PLT
	leaq	32(%rsp), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	hipMalloc
	movq	(%r12), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	40(%rsp), %r12
	movq	%r12, %rdi
	callq	hipEventCreate
	leaq	24(%rsp), %rdi
	callq	hipEventCreate
	movq	(%r12), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	leaq	16(%rsp), %rdi
	movq	%r15, %rsi
	callq	hipMalloc
	movl	%r13d, %r12d
	btsq	$32, %r12
	movabsq	$4294967296, %rdi               # imm = 0x100000000
	orq	$1, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB3_2
# %bb.1:
	movq	8(%rsp), %rdi
	movq	16(%rsp), %rsi
	callq	_Z24__device_stub__cal_deltaP5GraphPi
.LBB3_2:
	callq	hipDeviceSynchronize
	leal	(,%r13,8), %eax
	subl	%r13d, %eax
	movslq	%eax, %r8
	addq	%r13, %r8
	shlq	$2, %r8
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB3_4
# %bb.3:
	movq	8(%rsp), %rdi
	movq	32(%rsp), %rsi
	movq	16(%rsp), %rdx
	movl	(%rbx), %ecx
	callq	_Z21__device_stub__kernelP5GraphPfPii
.LBB3_4:
	callq	hipDeviceSynchronize
	movq	32(%rsp), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	24(%rsp), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	movq	24(%rsp), %rdi
	callq	hipEventSynchronize
	movq	40(%rsp), %rsi
	movq	24(%rsp), %rdx
	movl	$device_time_taken, %edi
	callq	hipEventElapsedTime
	movq	32(%rsp), %rdi
	callq	hipFree
	movq	16(%rsp), %rdi
	callq	hipFree
	movq	%r14, %rax
	addq	$72, %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_end3:
	.size	_Z3funP5Graph, .Lfunc_end3-_Z3funP5Graph
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function main
.LCPI4_0:
	.long	0xbf800000                      # float -1
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	.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	8(%rsi), %rdi
	movl	$.L.str, %esi
	callq	fopen
	testq	%rax, %rax
	je	.LBB4_12
# %bb.1:
	movq	%rax, %r14
	leaq	8(%rsp), %r15
	movl	$.L.str.2, %esi
	movq	%rax, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	leaq	12(%rsp), %r12
	movl	$.L.str.2, %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movl	$32, %edi
	callq	_Znwm
	movl	(%r15), %esi
	movl	(%r12), %edx
.Ltmp0:
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	movq	%rax, %rdi
	callq	_ZN5GraphC2Eii
.Ltmp1:
# %bb.2:
	movslq	12(%rsp), %rsi
	addq	%rsi, %rsi
.Ltmp3:
	leaq	80(%rsp), %rdi
	leaq	48(%rsp), %rdx
	callq	_ZNSt6vectorI9edgepairsSaIS0_EEC2EmRKS1_
.Ltmp4:
# %bb.3:
	cmpl	$0, 12(%rsp)
	jle	.LBB4_9
# %bb.4:                                # %.lr.ph.preheader
	movl	$20, %ebp
	leaq	44(%rsp), %r15
	leaq	40(%rsp), %r12
	leaq	36(%rsp), %r13
	xorl	%ebx, %ebx
.LBB4_5:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
.Ltmp6:
	movl	$.L.str.2, %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
.Ltmp7:
# %bb.6:                                #   in Loop: Header=BB4_5 Depth=1
.Ltmp8:
	movl	$.L.str.2, %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
.Ltmp9:
# %bb.7:                                #   in Loop: Header=BB4_5 Depth=1
.Ltmp10:
	movl	$.L.str.2, %esi
	movq	%r14, %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
.Ltmp11:
# %bb.8:                                #   in Loop: Header=BB4_5 Depth=1
	movl	44(%rsp), %eax
	movq	80(%rsp), %rcx
	movl	%eax, -20(%rcx,%rbp)
	movl	40(%rsp), %eax
	movl	%eax, -16(%rcx,%rbp)
	movl	36(%rsp), %eax
	movl	%eax, -12(%rcx,%rbp)
	movl	40(%rsp), %eax
	movl	%eax, -8(%rcx,%rbp)
	movl	44(%rsp), %eax
	movl	%eax, -4(%rcx,%rbp)
	movl	36(%rsp), %eax
	movl	%eax, (%rcx,%rbp)
	incl	%ebx
	addq	$24, %rbp
	cmpl	12(%rsp), %ebx
	jl	.LBB4_5
.LBB4_9:                                # %._crit_edge
	movq	80(%rsp), %r14
	movq	88(%rsp), %r15
	cmpq	%r15, %r14
	je	.LBB4_16
# %bb.10:
	movq	%r15, %rcx
	subq	%r14, %rcx
	sarq	$2, %rcx
	movabsq	$-6148914691236517205, %rax     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rcx, %rax
	testq	%rax, %rax
	je	.LBB4_13
# %bb.11:                               # %cond.false
	bsrq	%rax, %rax
	xorq	$63, %rax
	jmp	.LBB4_14
.LBB4_12:
	movl	$.L.str.1, %edi
	xorl	%eax, %eax
	callq	printf
	jmp	.LBB4_77
.LBB4_13:
	movl	$64, %eax
.LBB4_14:                               # %cond.end
	addq	%rax, %rax
	movl	$126, %edx
	subq	%rax, %rdx
.Ltmp13:
	movl	$_Z19compareTwoEdgePairs9edgepairsS_, %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_T1_
.Ltmp14:
# %bb.15:                               # %.noexc
.Ltmp15:
	movl	$_Z19compareTwoEdgePairs9edgepairsS_, %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ZSt22__final_insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_
.Ltmp16:
.LBB4_16:                               # %_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEEPFbS2_S2_EEvT_SA_T0_.exit
	cmpl	$0, 8(%rsp)
	movq	24(%rsp), %rax                  # 8-byte Reload
	movq	8(%rax), %rax
	js	.LBB4_19
# %bb.17:                               # %.lr.ph149.preheader
	movq	$-1, %rcx
.LBB4_18:                               # %.lr.ph149
                                        # =>This Inner Loop Header: Depth=1
	movl	$0, 4(%rax,%rcx,4)
	movslq	8(%rsp), %rdx
	incq	%rcx
	cmpq	%rdx, %rcx
	jl	.LBB4_18
.LBB4_19:                               # %._crit_edge150
	movl	$0, (%rax)
	cmpl	$0, 12(%rsp)
	jle	.LBB4_25
# %bb.20:                               # %.lr.ph153
	movq	80(%rsp), %rcx
	movq	24(%rsp), %rsi                  # 8-byte Reload
	movq	16(%rsi), %rdx
	movq	24(%rsi), %rsi
	addq	$8, %rcx
	xorl	%edi, %edi
.LBB4_21:                               # =>This Inner Loop Header: Depth=1
	movl	-4(%rcx), %r8d
	movl	%r8d, (%rdx,%rdi,4)
	movl	(%rcx), %r8d
	movl	%r8d, (%rsi,%rdi,4)
	incq	%rdi
	movslq	12(%rsp), %r8
	leaq	(%r8,%r8), %r9
	addq	$12, %rcx
	cmpq	%r9, %rdi
	jl	.LBB4_21
# %bb.22:                               # %.preheader143
	testl	%r8d, %r8d
	jle	.LBB4_25
# %bb.23:                               # %.lr.ph155
	movq	80(%rsp), %rcx
	xorl	%edx, %edx
.LBB4_24:                               # =>This Inner Loop Header: Depth=1
	movslq	(%rcx), %rsi
	incl	4(%rax,%rsi,4)
	incq	%rdx
	movslq	12(%rsp), %rsi
	addq	%rsi, %rsi
	addq	$12, %rcx
	cmpq	%rsi, %rdx
	jl	.LBB4_24
.LBB4_25:                               # %.preheader
	cmpl	$0, 8(%rsp)
	jle	.LBB4_28
# %bb.26:                               # %.lr.ph157.preheader
	movl	(%rax), %ecx
	xorl	%edx, %edx
.LBB4_27:                               # %.lr.ph157
                                        # =>This Inner Loop Header: Depth=1
	addl	4(%rax,%rdx,4), %ecx
	movl	%ecx, 4(%rax,%rdx,4)
	leaq	1(%rdx), %rsi
	movslq	8(%rsp), %rdi
	movq	%rsi, %rdx
	cmpq	%rdi, %rsi
	jl	.LBB4_27
.LBB4_28:                               # %._crit_edge158
.Ltmp18:
	movq	24(%rsp), %rdi                  # 8-byte Reload
	callq	_Z3funP5Graph
.Ltmp19:
# %bb.29:
	movq	%rax, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, 48(%rsp)
	movq	$0, 64(%rsp)
.Ltmp21:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.3, %esi
	movl	$49, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp22:
# %bb.30:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit.preheader
	cmpl	$0, 8(%rsp)
	jle	.LBB4_47
# %bb.31:                               # %.lr.ph161.preheader
	movss	.LCPI4_0(%rip), %xmm0           # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 32(%rsp)                 # 4-byte Spill
	xorl	%r15d, %r15d
.LBB4_32:                               # %.lr.ph161
                                        # =>This Inner Loop Header: Depth=1
	movss	(%r14,%r15,4), %xmm0            # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 16(%rsp)                 # 4-byte Spill
.Ltmp23:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.4, %esi
	movl	$5, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp24:
# %bb.33:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit88
                                        #   in Loop: Header=BB4_32 Depth=1
.Ltmp25:
	movl	$_ZSt4cout, %edi
	movl	%r15d, %esi
	callq	_ZNSolsEi
.Ltmp26:
# %bb.34:                               #   in Loop: Header=BB4_32 Depth=1
.Ltmp27:
	movq	%rax, %r12
	movl	$.L.str.5, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp28:
# %bb.35:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit90
                                        #   in Loop: Header=BB4_32 Depth=1
	xorps	%xmm0, %xmm0
	cvtss2sd	(%r14,%r15,4), %xmm0
.Ltmp29:
	movq	%r12, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp30:
# %bb.36:                               # %_ZNSolsEf.exit
                                        #   in Loop: Header=BB4_32 Depth=1
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
.Ltmp31:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp32:
# %bb.37:                               # %.noexc121
                                        #   in Loop: Header=BB4_32 Depth=1
.Ltmp33:
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_ZNSo3putEc
.Ltmp34:
# %bb.38:                               # %.noexc122
                                        #   in Loop: Header=BB4_32 Depth=1
.Ltmp35:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp36:
# %bb.39:                               # %_ZNSolsEPFRSoS_E.exit
                                        #   in Loop: Header=BB4_32 Depth=1
	movss	16(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	maxss	32(%rsp), %xmm0                 # 4-byte Folded Reload
	incq	%r15
	movslq	8(%rsp), %rax
	movss	%xmm0, 32(%rsp)                 # 4-byte Spill
	cmpq	%rax, %r15
	jl	.LBB4_32
# %bb.40:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit._crit_edge
	movss	%xmm0, 16(%rsp)                 # 4-byte Spill
	movl	$0, 20(%rsp)
	testl	%eax, %eax
	jle	.LBB4_48
# %bb.41:                               # %.lr.ph164
	xorl	%eax, %eax
	leaq	48(%rsp), %r15
	leaq	20(%rsp), %r12
.LBB4_42:                               # =>This Inner Loop Header: Depth=1
	movslq	%eax, %rcx
	movss	16(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	ucomiss	(%r14,%rcx,4), %xmm0
	jne	.LBB4_46
	jp	.LBB4_46
# %bb.43:                               #   in Loop: Header=BB4_42 Depth=1
	movq	56(%rsp), %rsi
	cmpq	64(%rsp), %rsi
	je	.LBB4_45
# %bb.44:                               #   in Loop: Header=BB4_42 Depth=1
	movl	%eax, (%rsi)
	addq	$4, %rsi
	movq	%rsi, 56(%rsp)
	jmp	.LBB4_46
.LBB4_45:                               #   in Loop: Header=BB4_42 Depth=1
.Ltmp38:
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
.Ltmp39:
.LBB4_46:                               # %_ZNSt6vectorIiSaIiEE9push_backERKi.exit
                                        #   in Loop: Header=BB4_42 Depth=1
	movl	20(%rsp), %eax
	incl	%eax
	movl	%eax, 20(%rsp)
	cmpl	8(%rsp), %eax
	jl	.LBB4_42
	jmp	.LBB4_48
.LBB4_47:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit._crit_edge.thread
	movss	.LCPI4_0(%rip), %xmm0           # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 16(%rsp)                 # 4-byte Spill
.LBB4_48:                               # %._crit_edge165
	movq	_ZSt4cout(%rip), %rax
	movl	$_ZSt4cout, %edi
	addq	-24(%rax), %rdi
.Ltmp41:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp42:
# %bb.49:                               # %.noexc124
.Ltmp43:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp44:
# %bb.50:                               # %.noexc125
.Ltmp45:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp46:
# %bb.51:                               # %_ZNSolsEPFRSoS_E.exit94
.Ltmp47:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.6, %esi
	movl	$34, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp48:
# %bb.52:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit97
	xorps	%xmm0, %xmm0
	cvtss2sd	16(%rsp), %xmm0                 # 4-byte Folded Reload
.Ltmp49:
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp50:
# %bb.53:                               # %_ZNSolsEf.exit99
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
.Ltmp51:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp52:
# %bb.54:                               # %.noexc128
.Ltmp53:
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_ZNSo3putEc
.Ltmp54:
# %bb.55:                               # %.noexc129
.Ltmp55:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp56:
# %bb.56:                               # %_ZNSolsEPFRSoS_E.exit101
.Ltmp57:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$47, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp58:
# %bb.57:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit103.preheader
	movq	48(%rsp), %rax
	movq	56(%rsp), %rcx
	subq	%rax, %rcx
	je	.LBB4_64
# %bb.58:                               # %.lr.ph167.preheader
	sarq	$2, %rcx
	xorl	%r15d, %r15d
.LBB4_59:                               # %.lr.ph167
                                        # =>This Inner Loop Header: Depth=1
	decq	%rcx
	movl	(%rax,%r15,4), %esi
	cmpq	%rcx, %r15
	jne	.LBB4_61
# %bb.60:                               #   in Loop: Header=BB4_59 Depth=1
.Ltmp63:
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
.Ltmp64:
	jmp	.LBB4_63
.LBB4_61:                               #   in Loop: Header=BB4_59 Depth=1
.Ltmp59:
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
.Ltmp60:
# %bb.62:                               #   in Loop: Header=BB4_59 Depth=1
.Ltmp61:
	movl	$.L.str.8, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp62:
.LBB4_63:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit107
                                        #   in Loop: Header=BB4_59 Depth=1
	incq	%r15
	movq	48(%rsp), %rax
	movq	56(%rsp), %rcx
	subq	%rax, %rcx
	sarq	$2, %rcx
	cmpq	%r15, %rcx
	ja	.LBB4_59
.LBB4_64:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit103._crit_edge
.Ltmp66:
	movl	$_ZSt4cout, %r15d
	movl	$_ZSt4cout, %edi
	movl	$.L.str.9, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp67:
# %bb.65:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit105
	movq	_ZSt4cout(%rip), %rax
	addq	-24(%rax), %r15
.Ltmp68:
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp69:
# %bb.66:                               # %.noexc132
.Ltmp70:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp71:
# %bb.67:                               # %.noexc133
.Ltmp72:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp73:
# %bb.68:                               # %_ZNSolsEPFRSoS_E.exit109
.Ltmp74:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.10, %esi
	movl	$26, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp75:
# %bb.69:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit111
	xorps	%xmm0, %xmm0
	cvtss2sd	device_time_taken(%rip), %xmm0
.Ltmp76:
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp77:
# %bb.70:                               # %_ZNSolsEf.exit113
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
.Ltmp78:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp79:
# %bb.71:                               # %.noexc136
.Ltmp80:
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_ZNSo3putEc
.Ltmp81:
# %bb.72:                               # %.noexc137
.Ltmp82:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp83:
# %bb.73:
	movq	%r14, %rdi
	callq	_ZdaPv
	movq	24(%rsp), %rdi                  # 8-byte Reload
	callq	_ZdlPv
	movq	48(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_75
# %bb.74:
	callq	_ZdlPv
.LBB4_75:                               # %_ZNSt6vectorIiSaIiEED2Ev.exit
	movq	80(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_77
# %bb.76:
	callq	_ZdlPv
.LBB4_77:
	xorl	%eax, %eax
	addq	$104, %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
.LBB4_78:
	.cfi_def_cfa_offset 160
.Ltmp20:
	jmp	.LBB4_86
.LBB4_79:
.Ltmp5:
	movq	%rax, %r14
	jmp	.LBB4_92
.LBB4_80:
.Ltmp2:
	movq	%rax, %r14
	movq	24(%rsp), %rdi                  # 8-byte Reload
	jmp	.LBB4_91
.LBB4_81:
.Ltmp17:
	jmp	.LBB4_86
.LBB4_82:
.Ltmp40:
	jmp	.LBB4_88
.LBB4_83:
.Ltmp84:
	jmp	.LBB4_88
.LBB4_84:
.Ltmp65:
	jmp	.LBB4_88
.LBB4_85:
.Ltmp12:
.LBB4_86:
	movq	%rax, %r14
	jmp	.LBB4_90
.LBB4_87:
.Ltmp37:
.LBB4_88:
	movq	%rax, %r14
	movq	48(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_90
# %bb.89:
	callq	_ZdlPv
.LBB4_90:
	movq	80(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_92
.LBB4_91:
	callq	_ZdlPv
.LBB4_92:
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end4:
	.size	main, .Lfunc_end4-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table4:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp2-.Lfunc_begin0           #     jumps to .Ltmp2
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp4-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp4
	.uleb128 .Ltmp5-.Lfunc_begin0           #     jumps to .Ltmp5
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp6-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Ltmp11-.Ltmp6                 #   Call between .Ltmp6 and .Ltmp11
	.uleb128 .Ltmp12-.Lfunc_begin0          #     jumps to .Ltmp12
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp13-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Ltmp16-.Ltmp13                #   Call between .Ltmp13 and .Ltmp16
	.uleb128 .Ltmp17-.Lfunc_begin0          #     jumps to .Ltmp17
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp18-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp19-.Ltmp18                #   Call between .Ltmp18 and .Ltmp19
	.uleb128 .Ltmp20-.Lfunc_begin0          #     jumps to .Ltmp20
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp21-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp22-.Ltmp21                #   Call between .Ltmp21 and .Ltmp22
	.uleb128 .Ltmp84-.Lfunc_begin0          #     jumps to .Ltmp84
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp23-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp36-.Ltmp23                #   Call between .Ltmp23 and .Ltmp36
	.uleb128 .Ltmp37-.Lfunc_begin0          #     jumps to .Ltmp37
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp38-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp39-.Ltmp38                #   Call between .Ltmp38 and .Ltmp39
	.uleb128 .Ltmp40-.Lfunc_begin0          #     jumps to .Ltmp40
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp41-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Ltmp58-.Ltmp41                #   Call between .Ltmp41 and .Ltmp58
	.uleb128 .Ltmp84-.Lfunc_begin0          #     jumps to .Ltmp84
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp63-.Lfunc_begin0          # >> Call Site 11 <<
	.uleb128 .Ltmp62-.Ltmp63                #   Call between .Ltmp63 and .Ltmp62
	.uleb128 .Ltmp65-.Lfunc_begin0          #     jumps to .Ltmp65
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp66-.Lfunc_begin0          # >> Call Site 12 <<
	.uleb128 .Ltmp83-.Ltmp66                #   Call between .Ltmp66 and .Ltmp83
	.uleb128 .Ltmp84-.Lfunc_begin0          #     jumps to .Ltmp84
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp83-.Lfunc_begin0          # >> Call Site 13 <<
	.uleb128 .Lfunc_end4-.Ltmp83            #   Call between .Ltmp83 and .Lfunc_end4
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZN5GraphC2Eii,"axG",@progbits,_ZN5GraphC2Eii,comdat
	.weak	_ZN5GraphC2Eii                  # -- Begin function _ZN5GraphC2Eii
	.p2align	1, 0x90
	.type	_ZN5GraphC2Eii,@function
_ZN5GraphC2Eii:                         # @_ZN5GraphC2Eii
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movl	%edx, %r14d
                                        # kill: def $esi killed $esi def $rsi
	movq	%rdi, %rbx
	movl	%esi, (%rdi)
	movl	%edx, 4(%rdi)
	leal	1(%rsi), %edi
	shlq	$2, %rdi
	cmpl	$-1, %esi
	movq	$-1, %r12
	cmovlq	%r12, %rdi
	callq	_Znam
	movq	%rax, 8(%rbx)
	leal	(%r14,%r14), %eax
	leal	1(,%r14,2), %ecx
	movslq	%ecx, %rdi
	shlq	$2, %rdi
	movslq	%eax, %r15
	shlq	$2, %r15
	testl	%r14d, %r14d
	cmovsq	%r12, %rdi
	cmovsq	%r12, %r15
	callq	_Znam
	movq	%rax, 16(%rbx)
	movq	%r15, %rdi
	callq	_Znam
	movq	%rax, 24(%rbx)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end5:
	.size	_ZN5GraphC2Eii, .Lfunc_end5-_ZN5GraphC2Eii
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorI9edgepairsSaIS0_EEC2EmRKS1_,"axG",@progbits,_ZNSt6vectorI9edgepairsSaIS0_EEC2EmRKS1_,comdat
	.weak	_ZNSt6vectorI9edgepairsSaIS0_EEC2EmRKS1_ # -- Begin function _ZNSt6vectorI9edgepairsSaIS0_EEC2EmRKS1_
	.p2align	1, 0x90
	.type	_ZNSt6vectorI9edgepairsSaIS0_EEC2EmRKS1_,@function
_ZNSt6vectorI9edgepairsSaIS0_EEC2EmRKS1_: # @_ZNSt6vectorI9edgepairsSaIS0_EEC2EmRKS1_
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movabsq	$768614336404564651, %rax       # imm = 0xAAAAAAAAAAAAAAB
	cmpq	%rax, %rsi
	jae	.LBB6_8
# %bb.1:                                # %_ZNSt6vectorI9edgepairsSaIS0_EE17_S_check_init_lenEmRKS1_.exit
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	testq	%rsi, %rsi
	je	.LBB6_2
# %bb.3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorI9edgepairsE8allocateEmPKv
	movq	%rax, (%r14)
	leaq	8(%r14), %rcx
	movq	%rax, 8(%r14)
	leaq	(%rbx,%rbx,2), %rdx
	leaq	(%rax,%rdx,4), %rdx
	movq	%rdx, 16(%r14)
	movq	$0, (%rax)
	movl	$0, 8(%rax)
	cmpq	$1, %rbx
	jne	.LBB6_5
# %bb.4:
	addq	$12, %rax
	movq	%rax, %rdx
	jmp	.LBB6_7
.LBB6_2:                                # %_ZNSt12_Vector_baseI9edgepairsSaIS0_EEC2EmRKS1_.exit.thread
	leaq	8(%r14), %rcx
	movups	%xmm0, (%r14)
	movq	$0, 16(%r14)
	xorl	%edx, %edx
	jmp	.LBB6_7
.LBB6_5:                                # %.lr.ph.i.i.i.i.i.i.i.i.preheader
	shlq	$2, %rbx
	leaq	(%rbx,%rbx,2), %rsi
	movl	$12, %edi
.LBB6_6:                                # %.lr.ph.i.i.i.i.i.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movl	8(%rax), %r8d
	movl	%r8d, 8(%rax,%rdi)
	movq	(%rax), %r8
	movq	%r8, (%rax,%rdi)
	addq	$12, %rdi
	cmpq	%rdi, %rsi
	jne	.LBB6_6
.LBB6_7:                                # %.loopexit
	movq	%rdx, (%rcx)
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.LBB6_8:
	.cfi_def_cfa_offset 32
	movl	$.L.str.11, %edi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end6:
	.size	_ZNSt6vectorI9edgepairsSaIS0_EEC2EmRKS1_, .Lfunc_end6-_ZNSt6vectorI9edgepairsSaIS0_EEC2EmRKS1_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorI9edgepairsE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorI9edgepairsE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorI9edgepairsE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorI9edgepairsE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorI9edgepairsE8allocateEmPKv,@function
_ZNSt15__new_allocatorI9edgepairsE8allocateEmPKv: # @_ZNSt15__new_allocatorI9edgepairsE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$768614336404564651, %rax       # imm = 0xAAAAAAAAAAAAAAB
	cmpq	%rax, %rsi
	jae	.LBB7_1
# %bb.3:
	shlq	$2, %rsi
	leaq	(%rsi,%rsi,2), %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB7_1:
	.cfi_def_cfa_offset 16
	movabsq	$1537228672809129302, %rax      # imm = 0x1555555555555556
	cmpq	%rax, %rsi
	jb	.LBB7_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB7_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end7:
	.size	_ZNSt15__new_allocatorI9edgepairsE8allocateEmPKv, .Lfunc_end7-_ZNSt15__new_allocatorI9edgepairsE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_T1_,"axG",@progbits,_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_T1_,comdat
	.weak	_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_T1_ # -- Begin function _ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_T1_
	.type	_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_T1_,@function
_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_T1_: # @_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_T1_
	.cfi_startproc
# %bb.0:
	movq	%rsi, %rax
	subq	%rdi, %rax
	cmpq	$193, %rax
	jl	.LBB8_6
# %bb.1:                                # %.lr.ph
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	12(%rdi), %r13
	decq	%r12
.LBB8_2:                                # =>This Inner Loop Header: Depth=1
	cmpq	$-1, %r12
	je	.LBB8_3
# %bb.4:                                #   in Loop: Header=BB8_2 Depth=1
	movabsq	$-6148914691236517205, %rcx     # imm = 0xAAAAAAAAAAAAAAAB
	mulq	%rcx
	shrq	$4, %rdx
	leaq	(%rdx,%rdx,2), %rax
	leaq	(%rbx,%rax,4), %rdx
	leaq	-12(%r15), %rcx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %r8
	callq	_ZSt22__move_median_to_firstIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_SD_SD_T0_
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_ZSt21__unguarded_partitionIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEET_SD_SD_SD_T0_
	movq	%rax, %rbp
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	callq	_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_T1_
	movq	%rbp, %rax
	subq	%rbx, %rax
	decq	%r12
	movq	%rbp, %r15
	cmpq	$192, %rax
	jg	.LBB8_2
	jmp	.LBB8_5
.LBB8_3:
	leaq	8(%rsp), %r12
	movq	%r14, (%r12)
	leaq	16(%rsp), %rdx
	movq	%r14, (%rdx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ZSt11__make_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_RT0_
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_ZSt11__sort_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_RT0_
.LBB8_5:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	.cfi_restore %r12
	.cfi_restore %r13
	.cfi_restore %r14
	.cfi_restore %r15
	.cfi_restore %rbp
.LBB8_6:                                # %.loopexit
	retq
.Lfunc_end8:
	.size	_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_T1_, .Lfunc_end8-_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElNS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_T1_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt22__final_insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_,"axG",@progbits,_ZSt22__final_insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_,comdat
	.weak	_ZSt22__final_insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_ # -- Begin function _ZSt22__final_insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_
	.type	_ZSt22__final_insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_,@function
_ZSt22__final_insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_: # @_ZSt22__final_insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rsi, %rax
	subq	%rdi, %rax
	cmpq	$193, %rax
	jl	.LBB9_5
# %bb.1:
	leaq	192(%rdi), %r15
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_
.LBB9_3:                                # %.lr.ph.i
                                        # =>This Inner Loop Header: Depth=1
	cmpq	%r14, %r15
	je	.LBB9_4
# %bb.2:                                # %.lr.ph.i
                                        #   in Loop: Header=BB9_3 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbS2_S2_EEEEvT_T0_
	addq	$12, %r15
	jmp	.LBB9_3
.LBB9_5:
	movq	%r14, %rsi
	movq	%rbx, %rdx
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_ # TAILCALL
.LBB9_4:                                # %_ZSt26__unguarded_insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_.exit
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end9:
	.size	_ZSt22__final_insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_, .Lfunc_end9-_ZSt22__final_insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt11__sort_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_RT0_,"axG",@progbits,_ZSt11__sort_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_RT0_,comdat
	.weak	_ZSt11__sort_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_RT0_ # -- Begin function _ZSt11__sort_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_RT0_
	.type	_ZSt11__sort_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_RT0_,@function
_ZSt11__sort_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_RT0_: # @_ZSt11__sort_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_RT0_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %r12
	subq	%rdi, %r12
	cmpq	$13, %r12
	jl	.LBB10_3
# %bb.1:                                # %.lr.ph.preheader
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	addq	$-12, %r14
	movabsq	$-6148914691236517205, %r13     # imm = 0xAAAAAAAAAAAAAAAB
.LBB10_2:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	(%r14), %rcx
	movl	8(%r14), %r8d
	movq	(%r15), %rax
	movq	%rax, (%r14)
	movl	8(%r15), %eax
	movl	%eax, 8(%r14)
	addq	$-12, %r12
	movq	%r12, %rdx
	sarq	$2, %rdx
	imulq	%r13, %rdx
	movq	(%rbx), %r9
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_T0_SE_T1_T2_
	addq	$-12, %r14
	cmpq	$12, %r12
	jg	.LBB10_2
.LBB10_3:                               # %._crit_edge
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end10:
	.size	_ZSt11__sort_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_RT0_, .Lfunc_end10-_ZSt11__sort_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_RT0_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt11__make_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_RT0_,"axG",@progbits,_ZSt11__make_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_RT0_,comdat
	.weak	_ZSt11__make_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_RT0_ # -- Begin function _ZSt11__make_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_RT0_
	.type	_ZSt11__make_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_RT0_,@function
_ZSt11__make_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_RT0_: # @_ZSt11__make_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_RT0_
	.cfi_startproc
# %bb.0:
	subq	%rdi, %rsi
	cmpq	$24, %rsi
	jl	.LBB11_4
# %bb.1:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %rbx
	movq	%rdi, %r14
	sarq	$2, %rsi
	movabsq	$-6148914691236517205, %r15     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rsi, %r15
	leaq	-2(%r15), %r12
	shrq	%r12
	leaq	(%r12,%r12,2), %rax
	leaq	(%rdi,%rax,4), %r13
	addq	$8, %r13
.LBB11_2:                               # =>This Inner Loop Header: Depth=1
	movq	-8(%r13), %rcx
	movl	(%r13), %r8d
	movq	(%rbx), %r9
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_T0_SE_T1_T2_
	addq	$-12, %r13
	addq	$-1, %r12
	jb	.LBB11_2
# %bb.3:
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	.cfi_restore %r12
	.cfi_restore %r13
	.cfi_restore %r14
	.cfi_restore %r15
.LBB11_4:                               # %.loopexit
	retq
.Lfunc_end11:
	.size	_ZSt11__make_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_RT0_, .Lfunc_end11-_ZSt11__make_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_RT0_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_T0_SE_T1_T2_,"axG",@progbits,_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_T0_SE_T1_T2_,comdat
	.weak	_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_T0_SE_T1_T2_ # -- Begin function _ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_T0_SE_T1_T2_
	.type	_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_T0_SE_T1_T2_,@function
_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_T0_SE_T1_T2_: # @_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_T0_SE_T1_T2_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%r9, %r12
	movl	%r8d, 20(%rsp)                  # 4-byte Spill
	movq	%rcx, 24(%rsp)                  # 8-byte Spill
	movq	%rdi, %r15
	leaq	-1(%rdx), %rax
	shrq	$63, %rax
	movq	%rdx, 32(%rsp)                  # 8-byte Spill
	leaq	(%rdx,%rax), %r14
	decq	%r14
	sarq	%r14
	movq	%rsi, %rbx
	movq	%rsi, 8(%rsp)                   # 8-byte Spill
	cmpq	%rsi, %r14
	jle	.LBB12_5
# %bb.1:                                # %.lr.ph.preheader
	movq	8(%rsp), %r13                   # 8-byte Reload
.LBB12_2:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	leaq	2(,%r13,2), %rbp
	leaq	(,%rbp,2), %rax
	addq	%rbp, %rax
	leaq	1(%r13,%r13), %rbx
	leaq	(%rbx,%rbx,2), %rcx
	movq	(%r15,%rax,4), %rdi
	movl	8(%r15,%rax,4), %esi
	movq	(%r15,%rcx,4), %rdx
	movl	8(%r15,%rcx,4), %ecx
	callq	*%r12
	testb	%al, %al
	jne	.LBB12_4
# %bb.3:                                # %.lr.ph
                                        #   in Loop: Header=BB12_2 Depth=1
	movq	%rbp, %rbx
.LBB12_4:                               # %.lr.ph
                                        #   in Loop: Header=BB12_2 Depth=1
	leaq	(%rbx,%rbx,2), %rax
	leaq	(,%r13,2), %rcx
	addq	%r13, %rcx
	movq	(%r15,%rax,4), %rdx
	movq	%rdx, (%r15,%rcx,4)
	movl	8(%r15,%rax,4), %eax
	movl	%eax, 8(%r15,%rcx,4)
	movq	%rbx, %r13
	cmpq	%r14, %rbx
	jl	.LBB12_2
.LBB12_5:                               # %._crit_edge
	movq	32(%rsp), %rax                  # 8-byte Reload
	testb	$1, %al
	jne	.LBB12_8
# %bb.6:
	addq	$-2, %rax
	sarq	%rax
	cmpq	%rax, %rbx
	jne	.LBB12_8
# %bb.7:
	leaq	(%rbx,%rbx,2), %rax
	leaq	1(,%rbx,2), %rbx
	leaq	(%rbx,%rbx,2), %rcx
	movl	8(%r15,%rcx,4), %edx
	movl	%edx, 8(%r15,%rax,4)
	movq	(%r15,%rcx,4), %rcx
	movq	%rcx, (%r15,%rax,4)
.LBB12_8:
	cmpq	8(%rsp), %rbx                   # 8-byte Folded Reload
	movl	20(%rsp), %ebp                  # 4-byte Reload
	jle	.LBB12_9
.LBB12_10:                              # %.lr.ph.i
                                        # =>This Inner Loop Header: Depth=1
	leaq	-1(%rbx), %rax
	shrq	$63, %rax
	leaq	(%rbx,%rax), %r14
	decq	%r14
	sarq	%r14
	leaq	(%r14,%r14,2), %r13
	movq	(%r15,%r13,4), %rdi
	movl	8(%r15,%r13,4), %esi
	movq	24(%rsp), %rdx                  # 8-byte Reload
	movl	%ebp, %ecx
	callq	*%r12
	testb	%al, %al
	je	.LBB12_9
# %bb.11:                               #   in Loop: Header=BB12_10 Depth=1
	leaq	(%r15,%r13,4), %rax
	leaq	(%rbx,%rbx,2), %rcx
	movl	8(%rax), %edx
	movl	%edx, 8(%r15,%rcx,4)
	movq	(%rax), %rax
	movq	%rax, (%r15,%rcx,4)
	movq	%r14, %rbx
	cmpq	8(%rsp), %r14                   # 8-byte Folded Reload
	jg	.LBB12_10
	jmp	.LBB12_12
.LBB12_9:
	movq	%rbx, %r14
.LBB12_12:                              # %_ZSt11__push_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops14_Iter_comp_valIPFbS2_S2_EEEEvT_T0_SE_T1_RT2_.exit
	leaq	(%r14,%r14,2), %rax
	movq	24(%rsp), %rcx                  # 8-byte Reload
	movq	%rcx, (%r15,%rax,4)
	movl	%ebp, 8(%r15,%rax,4)
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end12:
	.size	_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_T0_SE_T1_T2_, .Lfunc_end12-_ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEElS2_NS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_T0_SE_T1_T2_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt22__move_median_to_firstIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_SD_SD_T0_,"axG",@progbits,_ZSt22__move_median_to_firstIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_SD_SD_T0_,comdat
	.weak	_ZSt22__move_median_to_firstIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_SD_SD_T0_ # -- Begin function _ZSt22__move_median_to_firstIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_SD_SD_T0_
	.type	_ZSt22__move_median_to_firstIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_SD_SD_T0_,@function
_ZSt22__move_median_to_firstIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_SD_SD_T0_: # @_ZSt22__move_median_to_firstIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_SD_SD_T0_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%r8, %r13
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	(%rsi), %rdi
	movl	8(%rsi), %esi
	movq	(%rdx), %rdx
	movl	8(%r15), %ecx
	callq	*%r8
	movq	(%r14), %rdx
	movl	8(%r14), %ecx
	testb	%al, %al
	je	.LBB13_4
# %bb.1:
	movq	(%r15), %rdi
	movl	8(%r15), %esi
	callq	*%r13
	testb	%al, %al
	jne	.LBB13_7
# %bb.2:
	movq	(%r12), %rdi
	movl	8(%r12), %esi
	movq	(%r14), %rdx
	movl	8(%r14), %ecx
	callq	*%r13
	testb	%al, %al
	je	.LBB13_5
	jmp	.LBB13_3
.LBB13_4:
	movq	(%r12), %rdi
	movl	8(%r12), %esi
	callq	*%r13
	testb	%al, %al
	je	.LBB13_6
.LBB13_5:
	movl	8(%rbx), %eax
	movl	%eax, 8(%rsp)
	movq	(%rbx), %rax
	movq	%rax, (%rsp)
	movl	8(%r12), %eax
	movl	%eax, 8(%rbx)
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	movl	8(%rsp), %eax
	movl	%eax, 8(%r12)
	movq	(%rsp), %rax
	movq	%rax, (%r12)
	jmp	.LBB13_8
.LBB13_6:
	movq	(%r15), %rdi
	movl	8(%r15), %esi
	movq	(%r14), %rdx
	movl	8(%r14), %ecx
	callq	*%r13
	testb	%al, %al
	je	.LBB13_7
.LBB13_3:
	movl	8(%rbx), %eax
	movl	%eax, 8(%rsp)
	movq	(%rbx), %rax
	movq	%rax, (%rsp)
	movl	8(%r14), %eax
	movl	%eax, 8(%rbx)
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movl	8(%rsp), %eax
	movl	%eax, 8(%r14)
	movq	(%rsp), %rax
	movq	%rax, (%r14)
	jmp	.LBB13_8
.LBB13_7:
	movl	8(%rbx), %eax
	movl	%eax, 8(%rsp)
	movq	(%rbx), %rax
	movq	%rax, (%rsp)
	movl	8(%r15), %eax
	movl	%eax, 8(%rbx)
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	movl	8(%rsp), %eax
	movl	%eax, 8(%r15)
	movq	(%rsp), %rax
	movq	%rax, (%r15)
.LBB13_8:
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end13:
	.size	_ZSt22__move_median_to_firstIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_SD_SD_T0_, .Lfunc_end13-_ZSt22__move_median_to_firstIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_SD_SD_T0_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt21__unguarded_partitionIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEET_SD_SD_SD_T0_,"axG",@progbits,_ZSt21__unguarded_partitionIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEET_SD_SD_SD_T0_,comdat
	.weak	_ZSt21__unguarded_partitionIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEET_SD_SD_SD_T0_ # -- Begin function _ZSt21__unguarded_partitionIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEET_SD_SD_SD_T0_
	.type	_ZSt21__unguarded_partitionIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEET_SD_SD_SD_T0_,@function
_ZSt21__unguarded_partitionIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEET_SD_SD_SD_T0_: # @_ZSt21__unguarded_partitionIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEET_SD_SD_SD_T0_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
.LBB14_1:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB14_2 Depth 2
                                        #     Child Loop BB14_4 Depth 2
	addq	$-12, %r13
	movq	%r13, %r12
.LBB14_2:                               #   Parent Loop BB14_1 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	12(%r12), %rdi
	movl	20(%r12), %esi
	addq	$12, %r12
	movq	(%r14), %rdx
	movl	8(%r14), %ecx
	callq	*%rbx
	testb	%al, %al
	jne	.LBB14_2
# %bb.3:                                # %.preheader.preheader
                                        #   in Loop: Header=BB14_1 Depth=1
	leaq	12(%r12), %r13
.LBB14_4:                               # %.preheader
                                        #   Parent Loop BB14_1 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	-12(%r15), %rdx
	movl	-4(%r15), %ecx
	addq	$-12, %r15
	movq	(%r14), %rdi
	movl	8(%r14), %esi
	callq	*%rbx
	testb	%al, %al
	jne	.LBB14_4
# %bb.5:                                #   in Loop: Header=BB14_1 Depth=1
	cmpq	%r15, %r12
	jae	.LBB14_6
# %bb.7:                                #   in Loop: Header=BB14_1 Depth=1
	movl	8(%r12), %eax
	movl	%eax, 8(%rsp)
	movq	(%r12), %rax
	movq	%rax, (%rsp)
	movl	8(%r15), %eax
	movl	%eax, 8(%r12)
	movq	(%r15), %rax
	movq	%rax, (%r12)
	movl	8(%rsp), %eax
	movl	%eax, 8(%r15)
	movq	(%rsp), %rax
	movq	%rax, (%r15)
	jmp	.LBB14_1
.LBB14_6:
	movq	%r12, %rax
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end14:
	.size	_ZSt21__unguarded_partitionIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEET_SD_SD_SD_T0_, .Lfunc_end14-_ZSt21__unguarded_partitionIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEET_SD_SD_SD_T0_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_,"axG",@progbits,_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_,comdat
	.weak	_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_ # -- Begin function _ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_
	.type	_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_,@function
_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_: # @_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rsi, (%rsp)                    # 8-byte Spill
	cmpq	%rsi, %rdi
	je	.LBB15_11
# %bb.1:                                # %.preheader
	movq	%rdi, %r15
	leaq	12(%rdi), %rax
	cmpq	(%rsp), %rax                    # 8-byte Folded Reload
	je	.LBB15_11
# %bb.2:                                # %.lr.ph
	movq	%rdx, %rbx
	movl	$12, %r12d
	movl	$24, %r14d
.LBB15_3:                               # =>This Inner Loop Header: Depth=1
	leaq	(%r15,%r12), %rbp
	movq	%r12, %rax
	movabsq	$-6148914691236517205, %rcx     # imm = 0xAAAAAAAAAAAAAAAB
	mulq	%rcx
	movq	%rdx, %r13
	movq	(%r15,%r12), %rdi
	movl	8(%r15,%r12), %esi
	movq	(%r15), %rdx
	movl	8(%r15), %ecx
	callq	*%rbx
	testb	%al, %al
	je	.LBB15_9
# %bb.4:                                #   in Loop: Header=BB15_3 Depth=1
	movl	8(%rbp), %eax
	movl	%eax, 16(%rsp)
	movq	(%rbp), %rax
	movq	%rax, 8(%rsp)
	cmpq	$13, %r12
	jl	.LBB15_6
# %bb.5:                                #   in Loop: Header=BB15_3 Depth=1
	shrq	%r13
	andq	$-4, %r13
	leaq	(,%r13,2), %rax
	addq	%r13, %rax
	movq	%r14, %rdi
	subq	%rax, %rdi
	addq	%r15, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB15_8:                               # %_ZSt13move_backwardIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEES7_ET0_T_S9_S8_.exit
                                        #   in Loop: Header=BB15_3 Depth=1
	movl	16(%rsp), %eax
	movl	%eax, 8(%r15)
	movq	8(%rsp), %rax
	movq	%rax, (%r15)
	jmp	.LBB15_10
.LBB15_9:                               #   in Loop: Header=BB15_3 Depth=1
	movq	%rbp, %rdi
	movq	%rbx, %rsi
	callq	_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbS2_S2_EEEEvT_T0_
.LBB15_10:                              #   in Loop: Header=BB15_3 Depth=1
	leaq	(%r15,%r12), %rax
	addq	$12, %rax
	addq	$12, %r12
	addq	$12, %r14
	cmpq	(%rsp), %rax                    # 8-byte Folded Reload
	jne	.LBB15_3
	jmp	.LBB15_11
.LBB15_6:                               #   in Loop: Header=BB15_3 Depth=1
	cmpq	$12, %r12
	jne	.LBB15_8
# %bb.7:                                #   in Loop: Header=BB15_3 Depth=1
	movl	8(%r15), %eax
	movl	%eax, 8(%r15,%r12)
	movq	(%r15), %rax
	movq	%rax, (%r15,%r12)
	jmp	.LBB15_8
.LBB15_11:                              # %.loopexit
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end15:
	.size	_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_, .Lfunc_end15-_ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops15_Iter_comp_iterIPFbS2_S2_EEEEvT_SD_T0_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbS2_S2_EEEEvT_T0_,"axG",@progbits,_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbS2_S2_EEEEvT_T0_,comdat
	.weak	_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbS2_S2_EEEEvT_T0_ # -- Begin function _ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbS2_S2_EEEEvT_T0_
	.type	_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbS2_S2_EEEEvT_T0_,@function
_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbS2_S2_EEEEvT_T0_: # @_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbS2_S2_EEEEvT_T0_
	.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	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movl	8(%rdi), %ebp
	movq	-12(%rdi), %rdx
	movl	-4(%rdi), %ecx
	movq	%rbx, %rdi
	movl	%ebp, %esi
	callq	*%r14
	testb	%al, %al
	je	.LBB16_1
.LBB16_2:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	leaq	-12(%r15), %r12
	movl	-4(%r15), %eax
	movl	%eax, 8(%r15)
	movq	-12(%r15), %rax
	movq	%rax, (%r15)
	movq	-24(%r15), %rdx
	movl	-16(%r15), %ecx
	movq	%rbx, %rdi
	movl	%ebp, %esi
	callq	*%r14
	movq	%r12, %r15
	testb	%al, %al
	jne	.LBB16_2
	jmp	.LBB16_3
.LBB16_1:
	movq	%r15, %r12
.LBB16_3:                               # %._crit_edge
	movq	%rbx, (%r12)
	movl	%ebp, 8(%r12)
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end16:
	.size	_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbS2_S2_EEEEvT_T0_, .Lfunc_end16-_ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIP9edgepairsSt6vectorIS2_SaIS2_EEEENS0_5__ops14_Val_comp_iterIPFbS2_S2_EEEEvT_T0_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,comdat
	.weak	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_ # -- Begin function _ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,@function
_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_: # @_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, (%rsp)                    # 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.12, %edx
	callq	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	movq	(%rbx), %r13
	movq	8(%rbx), %r15
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	subq	%r13, %r12
	movq	%r12, %r14
	sarq	$2, %r14
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB17_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIiE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB17_3
.LBB17_1:
	xorl	%ebp, %ebp
.LBB17_3:                               # %_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.exit
	movq	(%rsp), %rax                    # 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, (%rbp,%r14,4)
	testq	%r12, %r12
	jle	.LBB17_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB17_5:                               # %_ZNSt6vectorIiSaIiEE11_S_relocateEPiS2_S2_RS0_.exit
	addq	%rbp, %r12
	addq	$4, %r12
	movq	8(%rsp), %rsi                   # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB17_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB17_7:                               # %_ZNSt6vectorIiSaIiEE11_S_relocateEPiS2_S2_RS0_.exit16
	testq	%r13, %r13
	je	.LBB17_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB17_9:                               # %_ZNSt12_Vector_baseIiSaIiEE13_M_deallocateEPim.exit
	addq	%r15, %r12
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(,%rax,4), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end17:
	.size	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_, .Lfunc_end17-_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,@function
_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc: # @_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$2305843009213693951, %rcx      # imm = 0x1FFFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$2, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB18_2
# %bb.1:
	cmpq	%rsi, %r8
	cmovaq	%r8, %rsi
	leaq	(%rsi,%r8), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%r8, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB18_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end18:
	.size	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc, .Lfunc_end18-_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorIiE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorIiE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorIiE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorIiE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorIiE8allocateEmPKv,@function
_ZNSt15__new_allocatorIiE8allocateEmPKv: # @_ZNSt15__new_allocatorIiE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$61, %rax
	jne	.LBB19_1
# %bb.3:
	shlq	$2, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB19_1:
	.cfi_def_cfa_offset 16
	shrq	$62, %rsi
	je	.LBB19_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB19_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end19:
	.size	_ZNSt15__new_allocatorIiE8allocateEmPKv, .Lfunc_end19-_ZNSt15__new_allocatorIiE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.text
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB20_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB20_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z9cal_deltaP5GraphPi, %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	$_Z6kernelP5GraphPfPii, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %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_end20:
	.size	__hip_module_ctor, .Lfunc_end20-__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	.LBB21_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
.LBB21_2:
	retq
.Lfunc_end21:
	.size	__hip_module_dtor, .Lfunc_end21-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	device_time_taken,@object       # @device_time_taken
	.bss
	.globl	device_time_taken
	.p2align	2, 0x0
device_time_taken:
	.long	0x00000000                      # float 0
	.size	device_time_taken, 4

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

	.type	_Z6kernelP5GraphPfPii,@object   # @_Z6kernelP5GraphPfPii
	.globl	_Z6kernelP5GraphPfPii
	.p2align	3, 0x0
_Z6kernelP5GraphPfPii:
	.quad	_Z21__device_stub__kernelP5GraphPfPii
	.size	_Z6kernelP5GraphPfPii, 8

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

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"input.txt file failed to open."
	.size	.L.str.1, 31

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

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"Betweeness Centrality of all the nodes(vertices)\n"
	.size	.L.str.3, 50

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"Node "
	.size	.L.str.4, 6

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	" : "
	.size	.L.str.5, 4

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"\nMaximum Betweenness Centrality = "
	.size	.L.str.6, 35

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"Vertices with Maximum Betweenness Centrality: ["
	.size	.L.str.7, 48

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	" , "
	.size	.L.str.8, 4

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"]"
	.size	.L.str.9, 2

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"Total device time taken : "
	.size	.L.str.10, 27

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

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

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z9cal_deltaP5GraphPi"
	.size	.L__unnamed_1, 22

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z6kernelP5GraphPfPii"
	.size	.L__unnamed_2, 22

	.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

	.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 _Z19compareTwoEdgePairs9edgepairsS_
	.addrsig_sym _Z24__device_stub__cal_deltaP5GraphPi
	.addrsig_sym _Z21__device_stub__kernelP5GraphPfPii
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym device_time_taken
	.addrsig_sym _Z9cal_deltaP5GraphPi
	.addrsig_sym _Z6kernelP5GraphPfPii
	.addrsig_sym _ZSt4cout
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z9cal_deltaP5GraphPi   ; -- Begin function _Z9cal_deltaP5GraphPi
	.globl	_Z9cal_deltaP5GraphPi
	.p2align	8
	.type	_Z9cal_deltaP5GraphPi,@function
_Z9cal_deltaP5GraphPi:                  ; @_Z9cal_deltaP5GraphPi
; %bb.0:
	s_load_b128 s[0:3], s[0:1], 0x0
	v_lshlrev_b32_e32 v4, 2, v0
	v_bfrev_b32_e32 v5, -2
	s_waitcnt lgkmcnt(0)
	s_load_b64 s[4:5], s[0:1], 0x8
	s_waitcnt lgkmcnt(0)
	global_load_b64 v[0:1], v4, s[4:5]
	s_mov_b32 s4, exec_lo
	s_waitcnt vmcnt(0)
	v_cmpx_lt_i32_e64 v0, v1
	s_cbranch_execz .LBB0_4
; %bb.1:                                ; %.lr.ph
	s_load_b64 s[0:1], s[0:1], 0x18
	v_ashrrev_i32_e32 v3, 31, v0
	v_mov_b32_e32 v2, v0
	v_bfrev_b32_e32 v5, -2
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[2:3], 2, v[2:3]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s0, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s1, v3, vcc_lo
	s_mov_b32 s1, 0
.LBB0_2:                                ; =>This Inner Loop Header: Depth=1
	global_load_b32 v6, v[2:3], off
	v_add_nc_u32_e32 v0, 1, v0
	v_add_co_u32 v2, vcc_lo, v2, 4
	v_add_co_ci_u32_e32 v3, vcc_lo, 0, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_ge_i32_e64 s0, v0, v1
	s_or_b32 s1, s0, s1
	s_waitcnt vmcnt(0)
	v_min_i32_e32 v5, v5, v6
	s_and_not1_b32 exec_lo, exec_lo, s1
	s_cbranch_execnz .LBB0_2
; %bb.3:                                ; %Flow
	s_or_b32 exec_lo, exec_lo, s1
.LBB0_4:                                ; %Flow26
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s4
	global_store_b32 v4, v5, s[2:3]
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z9cal_deltaP5GraphPi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 16
		.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 6
		.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	_Z9cal_deltaP5GraphPi, .Lfunc_end0-_Z9cal_deltaP5GraphPi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 204
; NumSgprs: 8
; NumVgprs: 7
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 0
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 8
; NumVGPRsForWavesPerEU: 7
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z6kernelP5GraphPfPii   ; -- Begin function _Z6kernelP5GraphPfPii
	.globl	_Z6kernelP5GraphPfPii
	.p2align	8
	.type	_Z6kernelP5GraphPfPii,@function
_Z6kernelP5GraphPfPii:                  ; @_Z6kernelP5GraphPfPii
; %bb.0:
	s_load_b32 s2, s[0:1], 0x18
	v_dual_mov_b32 v2, 0 :: v_dual_mov_b32 v1, s15
	ds_store_b32 v2, v1
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	ds_load_b32 v1, v2
	s_lshl_b32 s3, s2, 2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_add_i32 s8, s3, 32
	s_add_i32 s12, s8, s3
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_add_i32 s13, s12, s3
	s_add_i32 s14, s13, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_i32 s17, s14, s3
	s_waitcnt lgkmcnt(0)
	v_cmp_ne_u32_e32 vcc_lo, v0, v1
	v_lshlrev_b32_e32 v1, 2, v0
	s_add_i32 s15, s17, s3
	s_and_saveexec_b32 s2, vcc_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_xor_b32 s2, exec_lo, s2
	s_cbranch_execz .LBB1_2
; %bb.1:
	v_dual_mov_b32 v4, 1 :: v_dual_add_nc_u32 v3, 32, v1
	v_add_nc_u32_e32 v5, s8, v1
	v_add_nc_u32_e32 v6, s12, v1
	v_bfrev_b32_e32 v7, -2
	v_add_nc_u32_e32 v8, s13, v1
	ds_store_b32 v3, v4
	ds_store_b32 v5, v2
	ds_store_b32 v6, v7
	ds_store_b32 v8, v2
.LBB1_2:                                ; %Flow212
	s_or_saveexec_b32 s2, s2
	s_add_i32 s16, s15, s3
	s_xor_b32 exec_lo, exec_lo, s2
	s_cbranch_execz .LBB1_4
; %bb.3:
	v_dual_mov_b32 v3, 0 :: v_dual_add_nc_u32 v2, s12, v1
	v_dual_mov_b32 v4, 2 :: v_dual_add_nc_u32 v5, s13, v1
	v_dual_mov_b32 v6, 1 :: v_dual_add_nc_u32 v7, s8, v1
	ds_store_b32 v2, v3
	v_add_nc_u32_e32 v2, 32, v1
	v_mov_b32_e32 v8, s16
	ds_store_b32 v5, v6
	v_mov_b32_e32 v5, s15
	ds_store_b32 v2, v3
	ds_store_b32 v7, v6
	ds_store_b32 v8, v0
	ds_store_b32 v3, v6 offset:20
	ds_store_2addr_b32 v5, v3, v6 offset1:1
	ds_store_b32 v3, v4 offset:28
.LBB1_4:
	s_or_b32 exec_lo, exec_lo, s2
	v_dual_mov_b32 v7, 0 :: v_dual_add_nc_u32 v2, s14, v1
	v_add_nc_u32_e32 v3, s17, v1
	ds_store_b32 v2, v7
	ds_store_b32 v3, v7
	ds_store_b32 v7, v7 offset:12
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	ds_load_b32 v2, v7 offset:12
	s_clause 0x1
	s_load_b128 s[4:7], s[0:1], 0x0
	s_load_b64 s[2:3], s[0:1], 0x10
	v_cmp_eq_u32_e64 s0, 0, v0
	s_waitcnt lgkmcnt(0)
	v_cmp_eq_u32_e32 vcc_lo, 0x7fffffff, v2
	s_cbranch_vccnz .LBB1_37
; %bb.5:                                ; %.lr.ph
	v_dual_mov_b32 v13, 1 :: v_dual_add_nc_u32 v8, s8, v1
	v_add_nc_u32_e32 v9, s12, v1
	v_add_nc_u32_e32 v10, s13, v1
	v_add_nc_u32_e32 v11, 32, v1
	v_add_co_u32 v1, s1, s2, v1
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v2, null, s3, 0, s1
	v_lshlrev_b32_e32 v12, 2, v0
	v_bfrev_b32_e32 v14, -2
.LBB1_6:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB1_9 Depth 2
                                        ;       Child Loop BB1_10 Depth 3
                                        ;     Child Loop BB1_23 Depth 2
	s_barrier
	buffer_gl0_inv
	ds_load_b32 v3, v8
	s_mov_b32 s1, exec_lo
	s_waitcnt lgkmcnt(0)
	v_cmpx_eq_u32_e32 1, v3
	s_cbranch_execz .LBB1_18
; %bb.7:                                ;   in Loop: Header=BB1_6 Depth=1
	s_load_b64 s[2:3], s[4:5], 0x8
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v3, s2, s2, v12
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v4, null, s3, 0, s2
	flat_load_b64 v[5:6], v[3:4]
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_cmp_lt_i32_e32 vcc_lo, v5, v6
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB1_18
; %bb.8:                                ; %.critedge.lr.ph
                                        ;   in Loop: Header=BB1_6 Depth=1
	s_load_b128 s[8:11], s[4:5], 0x10
	s_mov_b32 s2, 0
.LBB1_9:                                ; %.critedge
                                        ;   Parent Loop BB1_6 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB1_10 Depth 3
	v_ashrrev_i32_e32 v6, 31, v5
	s_mov_b32 s3, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[16:17], 2, v[5:6]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v18, vcc_lo, s8, v16
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v19, vcc_lo, s9, v17, vcc_lo
	v_add_co_u32 v16, vcc_lo, s10, v16
	v_add_co_ci_u32_e32 v17, vcc_lo, s11, v17, vcc_lo
	flat_load_b32 v15, v[18:19]
	flat_load_b32 v16, v[16:17]
	s_waitcnt vmcnt(1) lgkmcnt(1)
	v_lshl_add_u32 v6, v15, 2, s17
.LBB1_10:                               ;   Parent Loop BB1_6 Depth=1
                                        ;     Parent Loop BB1_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ds_cmpstore_rtn_b32 v17, v6, v13, v7
	s_waitcnt lgkmcnt(0)
	v_cmp_eq_u32_e32 vcc_lo, 0, v17
	s_or_b32 s3, vcc_lo, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s3
	s_cbranch_execnz .LBB1_10
; %bb.11:                               ;   in Loop: Header=BB1_9 Depth=2
	s_or_b32 exec_lo, exec_lo, s3
	v_lshl_add_u32 v17, v15, 2, 32
	ds_load_b32 v17, v17
	ds_load_b32 v18, v9
	s_waitcnt lgkmcnt(1)
	v_cmp_eq_u32_e32 vcc_lo, 1, v17
	v_lshl_add_u32 v17, v15, 2, s12
	s_and_saveexec_b32 s3, vcc_lo
	s_cbranch_execz .LBB1_15
; %bb.12:                               ;   in Loop: Header=BB1_9 Depth=2
	ds_load_b32 v20, v17
	s_waitcnt vmcnt(0) lgkmcnt(1)
	v_add_nc_u32_e32 v19, v18, v16
	s_mov_b32 s18, exec_lo
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_lt_i32_e64 v19, v20
	s_cbranch_execz .LBB1_14
; %bb.13:                               ;   in Loop: Header=BB1_9 Depth=2
	v_lshl_add_u32 v18, v15, 2, s13
	ds_store_b32 v17, v19
	ds_store_b32 v18, v7
	ds_load_b32 v18, v9
.LBB1_14:                               ; %Flow207
                                        ;   in Loop: Header=BB1_9 Depth=2
	s_or_b32 exec_lo, exec_lo, s18
.LBB1_15:                               ;   in Loop: Header=BB1_9 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s3
	ds_load_b32 v17, v17
	s_waitcnt vmcnt(0) lgkmcnt(1)
	v_add_nc_u32_e32 v16, v18, v16
	s_mov_b32 s3, exec_lo
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_eq_u32_e64 v17, v16
	s_cbranch_execz .LBB1_17
; %bb.16:                               ;   in Loop: Header=BB1_9 Depth=2
	v_lshl_add_u32 v15, v15, 2, s13
	ds_load_b32 v16, v15
	ds_load_b32 v17, v10
	s_waitcnt lgkmcnt(0)
	v_add_nc_u32_e32 v16, v17, v16
	ds_store_b32 v15, v16
.LBB1_17:                               ; %.critedge163
                                        ;   in Loop: Header=BB1_9 Depth=2
	s_or_b32 exec_lo, exec_lo, s3
	ds_storexchg_rtn_b32 v6, v6, v7
	s_waitcnt lgkmcnt(0)
	flat_load_b32 v6, v[3:4] offset:4
	v_add_nc_u32_e32 v5, 1, v5
	s_waitcnt vmcnt(0) lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_cmp_ge_i32_e32 vcc_lo, v5, v6
	s_or_b32 s2, vcc_lo, s2
	s_and_not1_b32 exec_lo, exec_lo, s2
	s_cbranch_execnz .LBB1_9
.LBB1_18:                               ; %.loopexit
                                        ;   in Loop: Header=BB1_6 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_20
; %bb.19:                               ;   in Loop: Header=BB1_6 Depth=1
	ds_storexchg_rtn_b32 v3, v7, v14 offset:12
.LBB1_20:                               ;   in Loop: Header=BB1_6 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	ds_load_b32 v3, v11
	s_mov_b32 s1, exec_lo
	s_waitcnt lgkmcnt(0)
	v_cmpx_eq_u32_e32 1, v3
	s_cbranch_execz .LBB1_26
; %bb.21:                               ;   in Loop: Header=BB1_6 Depth=1
	ds_load_b32 v3, v9
	s_waitcnt lgkmcnt(0)
	v_cmp_ne_u32_e32 vcc_lo, 0x7fffffff, v3
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB1_26
; %bb.22:                               ;   in Loop: Header=BB1_6 Depth=1
	global_load_b32 v4, v[1:2], off
	s_mov_b32 s3, exec_lo
	s_brev_b32 s2, -2
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v3, v4, v3
.LBB1_23:                               ; %ComputeLoop
                                        ;   Parent Loop BB1_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_ctz_i32_b32 s8, s3
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_readlane_b32 s9, v3, s8
	s_lshl_b32 s8, 1, s8
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_and_not1_b32 s3, s3, s8
	s_min_i32 s2, s2, s9
	s_cmp_lg_u32 s3, 0
	s_cbranch_scc1 .LBB1_23
; %bb.24:                               ; %ComputeEnd
                                        ;   in Loop: Header=BB1_6 Depth=1
	v_mbcnt_lo_u32_b32 v3, exec_lo, 0
	s_mov_b32 s3, exec_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_eq_u32_e32 0, v3
	s_xor_b32 s3, exec_lo, s3
	s_cbranch_execz .LBB1_26
; %bb.25:                               ;   in Loop: Header=BB1_6 Depth=1
	v_mov_b32_e32 v3, s2
	ds_min_i32 v7, v3 offset:12
.LBB1_26:                               ;   in Loop: Header=BB1_6 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_28
; %bb.27:                               ;   in Loop: Header=BB1_6 Depth=1
	ds_storexchg_rtn_b32 v3, v7, v7 offset:8
.LBB1_28:                               ;   in Loop: Header=BB1_6 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	ds_store_b32 v8, v7
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	ds_load_b32 v3, v11
	s_mov_b32 s1, exec_lo
	s_waitcnt lgkmcnt(0)
	v_cmpx_eq_u32_e32 1, v3
	s_cbranch_execz .LBB1_34
; %bb.29:                               ;   in Loop: Header=BB1_6 Depth=1
	ds_load_b32 v3, v9
	ds_load_b32 v4, v7 offset:12
	s_waitcnt lgkmcnt(0)
	v_cmp_lt_i32_e32 vcc_lo, v3, v4
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB1_34
; %bb.30:                               ;   in Loop: Header=BB1_6 Depth=1
	s_mov_b32 s2, exec_lo
	s_mov_b32 s3, exec_lo
	v_mbcnt_lo_u32_b32 v3, s2, 0
	ds_store_b32 v11, v7
	ds_store_b32 v8, v13
                                        ; implicit-def: $vgpr4
	v_cmpx_eq_u32_e32 0, v3
	s_cbranch_execz .LBB1_32
; %bb.31:                               ;   in Loop: Header=BB1_6 Depth=1
	s_bcnt1_i32_b32 s2, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	v_mov_b32_e32 v4, s2
	ds_add_rtn_u32 v4, v7, v4 offset:20
.LBB1_32:                               ;   in Loop: Header=BB1_6 Depth=1
	s_or_b32 exec_lo, exec_lo, s3
	s_waitcnt lgkmcnt(0)
	v_readfirstlane_b32 s3, v4
	s_mov_b32 s2, exec_lo
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mbcnt_lo_u32_b32 v4, s2, 0
	v_add_nc_u32_e32 v3, s3, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_eq_u32_e32 vcc_lo, 0, v4
	v_lshl_add_u32 v3, v3, 2, s16
	s_and_b32 s3, exec_lo, vcc_lo
	ds_store_b32 v3, v0
	s_mov_b32 exec_lo, s3
	s_cbranch_execz .LBB1_34
; %bb.33:                               ;   in Loop: Header=BB1_6 Depth=1
	s_bcnt1_i32_b32 s2, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	v_mov_b32_e32 v3, s2
	ds_add_u32 v7, v3 offset:8
.LBB1_34:                               ;   in Loop: Header=BB1_6 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	ds_load_b32 v3, v7 offset:8
	s_waitcnt lgkmcnt(0)
	v_readfirstlane_b32 s1, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	s_cmp_gt_i32 s1, 0
	s_cselect_b32 s1, -1, 0
	s_and_b32 s2, s0, s1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_saveexec_b32 s1, s2
	s_cbranch_execz .LBB1_36
; %bb.35:                               ;   in Loop: Header=BB1_6 Depth=1
	ds_load_b32 v4, v7 offset:28
	s_waitcnt lgkmcnt(0)
	v_lshlrev_b32_e32 v5, 2, v4
	v_add_nc_u32_e32 v4, 1, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v5, s15, v5
	v_add_nc_u32_e32 v6, -4, v5
	ds_load_b32 v6, v6
	s_waitcnt lgkmcnt(0)
	v_add_nc_u32_e32 v3, v6, v3
	ds_store_b32 v5, v3
	ds_store_b32 v7, v4 offset:28
.LBB1_36:                               ;   in Loop: Header=BB1_6 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	ds_load_b32 v3, v7 offset:12
	s_waitcnt lgkmcnt(0)
	v_cmp_ne_u32_e32 vcc_lo, 0x7fffffff, v3
	s_cbranch_vccnz .LBB1_6
.LBB1_37:                               ; %._crit_edge
	v_cmp_eq_u32_e64 s0, 0, v0
	s_delay_alu instid0(VALU_DEP_1)
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_39
; %bb.38:
	v_mov_b32_e32 v1, 0
	ds_load_b32 v2, v1 offset:28
	s_waitcnt lgkmcnt(0)
	v_add_nc_u32_e32 v2, -1, v2
	ds_store_b32 v1, v2 offset:16
.LBB1_39:
	s_or_b32 exec_lo, exec_lo, s1
	v_mov_b32_e32 v12, 0
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	ds_load_b32 v1, v12 offset:16
	s_waitcnt lgkmcnt(0)
	v_cmp_gt_i32_e32 vcc_lo, 1, v1
	s_cbranch_vccnz .LBB1_57
; %bb.40:                               ; %.lr.ph171
	v_lshl_add_u32 v13, v0, 2, s16
.LBB1_41:                               ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB1_46 Depth 2
                                        ;     Child Loop BB1_53 Depth 2
	s_barrier
	buffer_gl0_inv
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_43
; %bb.42:                               ;   in Loop: Header=BB1_41 Depth=1
	ds_load_b32 v1, v12 offset:16
	s_waitcnt lgkmcnt(0)
	v_lshlrev_b32_e32 v1, 2, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v1, s15, v1
	v_add_nc_u32_e32 v2, -4, v1
	ds_load_b32 v1, v1
	ds_load_b32 v2, v2
	s_waitcnt lgkmcnt(1)
	v_add_nc_u32_e32 v1, -1, v1
	s_waitcnt lgkmcnt(0)
	ds_store_2addr_b32 v12, v1, v2 offset0:1 offset1:6
.LBB1_43:                               ;   in Loop: Header=BB1_41 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	ds_load_2addr_b32 v[1:2], v12 offset0:1 offset1:6
	s_mov_b32 s2, exec_lo
	s_waitcnt lgkmcnt(0)
	v_sub_nc_u32_e32 v1, v1, v2
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_le_i32_e64 v0, v1
	s_cbranch_execz .LBB1_54
; %bb.44:                               ;   in Loop: Header=BB1_41 Depth=1
	global_load_b64 v[4:5], v12, s[4:5] offset:8
	v_lshl_add_u32 v1, v2, 2, v13
	s_mov_b32 s3, exec_lo
	ds_load_b32 v1, v1
	s_waitcnt lgkmcnt(0)
	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[2:3], 2, v[1:2]
	s_waitcnt vmcnt(0)
	v_add_co_u32 v4, vcc_lo, v4, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v5, vcc_lo, v5, v3, vcc_lo
	flat_load_b64 v[6:7], v[4:5]
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_cmpx_lt_i32_e64 v6, v7
	s_cbranch_execz .LBB1_51
; %bb.45:                               ; %.lr.ph168
                                        ;   in Loop: Header=BB1_41 Depth=1
	global_load_b128 v[17:20], v12, s[4:5] offset:16
	v_ashrrev_i32_e32 v9, 31, v6
	v_lshlrev_b32_e32 v16, 2, v1
	v_mov_b32_e32 v8, v6
	s_mov_b32 s8, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v15, s14, v16
	v_lshlrev_b64 v[10:11], 2, v[8:9]
	v_add_nc_u32_e32 v14, s12, v16
	v_add_nc_u32_e32 v16, s13, v16
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v8, vcc_lo, v19, v10
	v_add_co_ci_u32_e32 v9, vcc_lo, v20, v11, vcc_lo
	v_add_co_u32 v10, vcc_lo, v17, v10
	v_add_co_ci_u32_e32 v11, vcc_lo, v18, v11, vcc_lo
.LBB1_46:                               ;   Parent Loop BB1_41 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	flat_load_b32 v17, v[10:11]
	flat_load_b32 v18, v[8:9]
	s_mov_b32 s1, exec_lo
	s_waitcnt vmcnt(1) lgkmcnt(1)
	v_lshl_add_u32 v19, v17, 2, s12
	ds_load_b32 v20, v14
	ds_load_b32 v19, v19
	s_waitcnt vmcnt(0) lgkmcnt(1)
	v_add_nc_u32_e32 v18, v20, v18
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_eq_u32_e64 v19, v18
	s_cbranch_execz .LBB1_50
; %bb.47:                               ;   in Loop: Header=BB1_46 Depth=2
	v_lshl_add_u32 v18, v17, 2, s13
	s_mov_b32 s9, exec_lo
	ds_load_b32 v18, v18
	s_waitcnt lgkmcnt(0)
	v_cmpx_ne_u32_e32 0, v18
	s_cbranch_execz .LBB1_49
; %bb.48:                               ;   in Loop: Header=BB1_46 Depth=2
	ds_load_b32 v7, v16
	v_lshl_add_u32 v19, v17, 2, s14
	v_cvt_f64_i32_e32 v[17:18], v18
	ds_load_b32 v29, v19
	s_waitcnt lgkmcnt(1)
	v_cvt_f64_i32_e32 v[19:20], v7
	s_waitcnt lgkmcnt(0)
	v_add_f32_e32 v7, 1.0, v29
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_scale_f64 v[21:22], null, v[17:18], v[17:18], v[19:20]
	v_div_scale_f64 v[27:28], vcc_lo, v[19:20], v[17:18], v[19:20]
	v_rcp_f64_e32 v[23:24], v[21:22]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[25:26], -v[21:22], v[23:24], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[23:24], v[23:24], v[25:26], v[23:24]
	v_fma_f64 v[25:26], -v[21:22], v[23:24], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[23:24], v[23:24], v[25:26], v[23:24]
	v_mul_f64 v[25:26], v[27:28], v[23:24]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[21:22], -v[21:22], v[25:26], v[27:28]
	v_div_fmas_f64 v[21:22], v[21:22], v[23:24], v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[17:18], v[21:22], v[17:18], v[19:20]
	v_cvt_f64_f32_e32 v[19:20], v7
	v_mul_f64 v[17:18], v[17:18], v[19:20]
	s_delay_alu instid0(VALU_DEP_1)
	v_cvt_f32_f64_e32 v7, v[17:18]
	ds_add_f32 v15, v7
	flat_load_b32 v7, v[4:5] offset:4
.LBB1_49:                               ; %Flow197
                                        ;   in Loop: Header=BB1_46 Depth=2
	s_or_b32 exec_lo, exec_lo, s9
.LBB1_50:                               ;   in Loop: Header=BB1_46 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_4) | instid1(VALU_DEP_3)
	s_or_b32 exec_lo, exec_lo, s1
	v_add_nc_u32_e32 v6, 1, v6
	v_add_co_u32 v8, vcc_lo, v8, 4
	v_add_co_ci_u32_e32 v9, vcc_lo, 0, v9, vcc_lo
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_cmp_ge_i32_e32 vcc_lo, v6, v7
	v_add_co_u32 v10, s1, v10, 4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_add_co_ci_u32_e64 v11, s1, 0, v11, s1
	s_or_b32 s8, vcc_lo, s8
	s_and_not1_b32 exec_lo, exec_lo, s8
	s_cbranch_execnz .LBB1_46
.LBB1_51:                               ; %Flow199
                                        ;   in Loop: Header=BB1_41 Depth=1
	s_or_b32 exec_lo, exec_lo, s3
	ds_load_b32 v4, v12
	s_waitcnt lgkmcnt(0)
	v_cmp_ne_u32_e32 vcc_lo, v1, v4
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB1_54
; %bb.52:                               ;   in Loop: Header=BB1_41 Depth=1
	v_add_co_u32 v2, vcc_lo, s6, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v3, vcc_lo
	v_lshl_add_u32 v1, v1, 2, s14
	s_mov_b32 s1, 0
	global_load_b32 v5, v[2:3], off
	ds_load_b32 v1, v1
	s_waitcnt lgkmcnt(0)
	v_mul_f32_e32 v1, 0.5, v1
.LBB1_53:                               ; %atomicrmw.start
                                        ;   Parent Loop BB1_41 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f32_e32 v4, v5, v1
	global_atomic_cmpswap_b32 v4, v[2:3], v[4:5], off glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u32_e32 vcc_lo, v4, v5
	v_mov_b32_e32 v5, v4
	s_or_b32 s1, vcc_lo, s1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s1
	s_cbranch_execnz .LBB1_53
.LBB1_54:                               ; %Flow200
                                        ;   in Loop: Header=BB1_41 Depth=1
	s_or_b32 exec_lo, exec_lo, s2
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_56
; %bb.55:                               ;   in Loop: Header=BB1_41 Depth=1
	ds_load_b32 v1, v12 offset:16
	s_waitcnt lgkmcnt(0)
	v_add_nc_u32_e32 v1, -1, v1
	ds_store_b32 v12, v1 offset:16
.LBB1_56:                               ;   in Loop: Header=BB1_41 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	ds_load_b32 v1, v12 offset:16
	s_waitcnt lgkmcnt(0)
	v_cmp_lt_i32_e32 vcc_lo, 0, v1
	s_cbranch_vccnz .LBB1_41
.LBB1_57:                               ; %._crit_edge172
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z6kernelP5GraphPfPii
		.amdhsa_group_segment_fixed_size 32
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 28
		.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 30
		.amdhsa_next_free_sgpr 19
		.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	_Z6kernelP5GraphPfPii, .Lfunc_end1-_Z6kernelP5GraphPfPii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 2528
; NumSgprs: 21
; NumVgprs: 30
; ScratchSize: 0
; MemoryBound: 1
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 32 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 3
; NumSGPRsForWavesPerEU: 21
; NumVGPRsForWavesPerEU: 30
; 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 array
	.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
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 16
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z9cal_deltaP5GraphPi
    .private_segment_fixed_size: 0
    .sgpr_count:     8
    .sgpr_spill_count: 0
    .symbol:         _Z9cal_deltaP5GraphPi.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
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           4
        .value_kind:     by_value
    .group_segment_fixed_size: 32
    .kernarg_segment_align: 8
    .kernarg_segment_size: 28
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z6kernelP5GraphPfPii
    .private_segment_fixed_size: 0
    .sgpr_count:     21
    .sgpr_spill_count: 0
    .symbol:         _Z6kernelP5GraphPfPii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     30
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
