#include <stdio.h>
#include <iostream>
#include <vector>


#define CUDA_CHECK(condition) \
  /* Code block avoids redefinition of cudaError_t error */ \
  do { \
    cudaError_t error = condition; \
    if (error != cudaSuccess) { \
      std::cout << cudaGetErrorString(error) << std::endl; \
    } \
  } while (0)

#define CUDA_1D_KERNEL_LOOP(i, n)                            \
    for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < n; \
            i += blockDim.x * gridDim.x)

const int block_num = 512;
#define DIVUP(m,n) ((m) / (n) + ((m) % (n) > 0))
const int threadsPerBlock = sizeof(unsigned long long) * 8;


__global__ void cumsumKernel(int b,int n,const float * __restrict__ inp,float * __restrict__ out){
  const int BlockSize=2048;
  const int paddingLevel=5;
  __shared__ float buffer4[BlockSize*4];
  __shared__ float buffer[BlockSize+(BlockSize>>paddingLevel)];
  for (int i=blockIdx.x;i<b;i+=gridDim.x){
    float runningsum=0,runningsum2=0;
    for (int j=0;j<n;j+=BlockSize*4){
      int n24_i=min(n-j,BlockSize*4);
      int n24=(n24_i+3)&~3;
      int n2=n24>>2;
      for (int k=threadIdx.x*4;k<n24_i;k+=blockDim.x*4){
        if (k+3<n24_i){
          float v1=inp[i*n+j+k];
          float v2=inp[i*n+j+k+1];
          v2+=v1;
          float v3=inp[i*n+j+k+2];
          float v4=inp[i*n+j+k+3];
          v4+=v3;
          v3+=v2;
          v4+=v2;
          buffer4[k]=v1;
          buffer4[k+1]=v2;
          buffer4[k+2]=v3;
          buffer4[k+3]=v4;
          buffer[(k>>2)+(k>>(2+paddingLevel))]=v4;
        }else{
          float v=0;
          for (int k2=k;k2<n24_i;k2++){
            v+=inp[i*n+j+k2];
            buffer4[k2]=v;
          }
          for (int k2=n24_i;k2<n24;k2++){
            buffer4[k2]=v;
          }
          buffer[(k>>2)+(k>>(2+paddingLevel))]=v;
        }
      }
      int u=0;
      for (;(2<<u)<=n2;u++){
        __syncthreads();
        for (int k=threadIdx.x;k<int(n2>>(u+1));k+=blockDim.x){
          int i1=(((k<<1)+2)<<u)-1;
          int i2=(((k<<1)+1)<<u)-1;
          i1+=i1>>paddingLevel;
          i2+=i2>>paddingLevel;
          buffer[i1]+=buffer[i2];
        }
      }
      u--;
      for (;u>=0;u--){
        __syncthreads();
        for (int k=threadIdx.x;k<int((n2-(1<<u))>>(u+1));k+=blockDim.x){
          int i1=(((k<<1)+3)<<u)-1;
          int i2=(((k<<1)+2)<<u)-1;
          i1+=i1>>paddingLevel;
          i2+=i2>>paddingLevel;
          buffer[i1]+=buffer[i2];
        }
      }
      __syncthreads();
      for (int k=threadIdx.x*4;k<n24;k+=blockDim.x*4){
        if (k!=0){
          int k2=((k>>2)-1)+(((k>>2)-1)>>paddingLevel);
          buffer4[k]+=buffer[k2];
          buffer4[k+1]+=buffer[k2];
          buffer4[k+2]+=buffer[k2];
          buffer4[k+3]+=buffer[k2];
        }
      }
      __syncthreads();
      for (int k=threadIdx.x;k<n24_i;k+=blockDim.x){
        out[i*n+j+k]=buffer4[k]+runningsum;
      }
      float t=buffer[(n2-1)+((n2-1)>>paddingLevel)]+runningsum2;
      float r2=runningsum+t;
      runningsum2=t-(r2-runningsum);
      runningsum=r2;
      __syncthreads();
    }
  }
}

__global__ void binarysearchKernel(int b,int n,int m,const float * __restrict__ dataset,const float * __restrict__ query, int * __restrict__ result){
  int base=1;
  while (base<n)
    base<<=1;
  for (int i=blockIdx.x;i<b;i+=gridDim.x){
    for (int j=blockIdx.y*blockDim.x+threadIdx.x;j<m;j+=blockDim.x*gridDim.y){
      float q=query[i*m+j]*dataset[i*n+n-1];
      int r=n-1;
      for (int k=base;k>=1;k>>=1)
        if (r>=k && dataset[i*n+r-k]>=q)
          r-=k;
      result[i*m+j]=r;
    }
  }
}

template <unsigned int BlockSize>
__global__ void farthestpointsamplingKernel(int b,int n,int c,int m,const float * __restrict__ dataset,float * __restrict__ temp,int * __restrict__ idxs){
  if (m<=0)
    return;
  // const int BlockSize=512;
  __shared__ float dists[BlockSize];
  __shared__ int dists_i[BlockSize];
  for (int i=blockIdx.x;i<b;i+=gridDim.x){
    int old=0;
    if (threadIdx.x==0)
      idxs[i*m+0]=old;
    //initialize temp
    for (int j=threadIdx.x;j<n;j+=blockDim.x){
      temp[blockIdx.x*n+j]=1e38;
    }
    __syncthreads();
    for (int j=1;j<m;j++){
      int besti=0;
      float best=-1;
      for (int k=threadIdx.x;k<n;k+=blockDim.x){
        float td=temp[blockIdx.x*n+k];
        float d = 0;
        float p1, p2;
        for (int l=0;l<c;l++){
          p1 = dataset[i*n*c+old*c+l];
          p2 = dataset[i*n*c+k*c+l];
          d += (p2-p1) * (p2-p1);
        }
        float d2=min(d,td);
        if (d2!=td)
          temp[blockIdx.x*n+k]=d2;
        if (d2>best){
          best=d2;
          besti=k;
        }
      }
      dists[threadIdx.x]=best;
      dists_i[threadIdx.x]=besti;
      for (int u=0;(1<<u)<blockDim.x;u++){
        __syncthreads();
        if (threadIdx.x<(blockDim.x>>(u+1))){
          int i1=(threadIdx.x*2)<<u;
          int i2=(threadIdx.x*2+1)<<u;
          if (dists[i1]<dists[i2]){
            dists[i1]=dists[i2];
            dists_i[i1]=dists_i[i2];
          }
        }
      }
      __syncthreads();
      old=dists_i[0];
      if (threadIdx.x==0)
        idxs[i*m+j]=old;
    }
  }
}

template <unsigned int BlockSize>
__global__ void farthestpointsamplingwithdistKernel(int b,int n,int m,const float * __restrict__ dataset,float * __restrict__ temp,int * __restrict__ idxs){
  if (m<=0)
    return;
  // const int BlockSize=512;
  __shared__ float dists[BlockSize];
  __shared__ int dists_i[BlockSize];
  for (int i=blockIdx.x;i<b;i+=gridDim.x){
    int old=0;
    if (threadIdx.x==0)
      idxs[i*m+0]=old;
    //initialize temp
    for (int j=threadIdx.x;j<n;j+=blockDim.x){
      temp[blockIdx.x*n+j]=1e38;
    }
    __syncthreads();
    for (int j=1;j<m;j++){
      int besti=0;
      float best=-1;
      for (int k=threadIdx.x;k<n;k+=blockDim.x){
        float td=temp[blockIdx.x*n+k];
        float d = 0;
        d = dataset[i * n * n + old * n + k];
        float d2=min(d,td);
        if (d2!=td)
          temp[blockIdx.x*n+k]=d2;
        if (d2>best){
          best=d2;
          besti=k;
        }
      }
      dists[threadIdx.x]=best;
      dists_i[threadIdx.x]=besti;
      for (int u=0;(1<<u)<blockDim.x;u++){
        __syncthreads();
        if (threadIdx.x<(blockDim.x>>(u+1))){
          int i1=(threadIdx.x*2)<<u;
          int i2=(threadIdx.x*2+1)<<u;
          if (dists[i1]<dists[i2]){
            dists[i1]=dists[i2];
            dists_i[i1]=dists_i[i2];
          }
        }
      }
      __syncthreads();
      old=dists_i[0];
      if (threadIdx.x==0)
        idxs[i*m+j]=old;
    }
  }
}


template <unsigned int BlockSize>
__global__ void farthestpointsamplingwithpreidxKernel(int b,int n,int c,int m,int m1,const float * __restrict__ dataset,const int * __restrict__ preidx,float * __restrict__ temp,int * __restrict__ idxs){
  // b: batch_size, n: ndataset, c: channel_num, m: points_num after fps, m1: preidx number
  // dataset: [b, n, c] preidx: [b, m1], temp: [b, n], idxs: [b, m] 
  if (m<=0)
    return;
  // const int BlockSize=512;
  __shared__ float dists[BlockSize];
  __shared__ int dists_i[BlockSize];
  for (int i=blockIdx.x;i<b;i+=gridDim.x){
    for (int j=threadIdx.x;j<n;j+=blockDim.x){
      temp[blockIdx.x*n+j]=1e38;
    }
    int pre_idx;
    for (int j=threadIdx.x;j<n;j+=blockDim.x){
      // update temp metrics
      float pre_best = 1e38;
      float pre_p1, pre_p2;
      for (int k=0; k<m1; k++){
        pre_idx = preidx[i * m1 + k];
        float pre_d = 0;
        for (int l=0; l < c; l++){
          pre_p1 = dataset[i * n * c + pre_idx * c + l];
          pre_p2 = dataset[i * n * c + j * c + l];
          pre_d += (pre_p2 - pre_p1) * (pre_p2 - pre_p1);
        } 
        pre_best = min(pre_best, pre_d);
      }
      temp[blockIdx.x*n+j] = pre_best;
    }
    // then find current smallest distance as current old
    __syncthreads();
    int old=0;
    float pre_best = -1; 
    for (int j=0; j<n; j++){
      if (pre_best < temp[blockIdx.x*n+j]){
        pre_best = temp[blockIdx.x*n+j];
        old = j;
      } 
    }
    if (threadIdx.x==0)
      idxs[i*m+0]=old;
    //initialize temp
    __syncthreads();
    for (int j=1;j<m;j++){
      int besti=0;
      float best=-1;
      for (int k=threadIdx.x;k<n;k+=blockDim.x){
        float td=temp[blockIdx.x*n+k];
        float d = 0;
        float p1, p2;
        for (int l=0;l<c;l++){
          p1 = dataset[i*n*c+old*c+l];
          p2 = dataset[i*n*c+k*c+l];
          d += (p2-p1) * (p2-p1);
        }
        float d2=min(d,td);
        if (d2!=td)
          temp[blockIdx.x*n+k]=d2;
        if (d2>best){
          best=d2;
          besti=k;
        }
      }
      dists[threadIdx.x]=best;
      dists_i[threadIdx.x]=besti;
      for (int u=0;(1<<u)<blockDim.x;u++){
        __syncthreads();
        if (threadIdx.x<(blockDim.x>>(u+1))){
          int i1=(threadIdx.x*2)<<u;
          int i2=(threadIdx.x*2+1)<<u;
          if (dists[i1]<dists[i2]){
            dists[i1]=dists[i2];
            dists_i[i1]=dists_i[i2];
          }
        }
      }
      __syncthreads();
      old=dists_i[0];
      if (threadIdx.x==0)
        idxs[i*m+j]=old;
    }
  }
}

// inp: [b, n, c] idx: [b, m]
// out: [b, m, c]
__global__ void gatherpointKernel(int b,int n,int m,int c,const float * __restrict__ inp,const int * __restrict__ idx,float * __restrict__ out){
  int loop_time = b * m * c;
  CUDA_1D_KERNEL_LOOP(index, loop_time){
    int cur_batch_size = index / (m * c);
    int cur_point_idx = index / c;
    int cur_channel = index % c;

    int a=idx[cur_point_idx];
    int current_idx = cur_batch_size * (n * c) + a * c + cur_channel;
    out[index] = inp[current_idx];
  }
}

// out_g: [b, m, c] idx: [b, m]
// inp_g: [b, n, c]
__global__ void scatteraddpointKernel(int b,int n,int m,int c,const float * __restrict__ out_g,const int * __restrict__ idx,float * __restrict__ inp_g){
  int loop_time = b * m * c;
  CUDA_1D_KERNEL_LOOP(index, loop_time){
    int cur_batch_size = index / (m * c);
    int cur_point_idx = index / c;
    int cur_channel = index % c;

    int a = idx[cur_point_idx];
    int current_idx = cur_batch_size * n * c + a * c + cur_channel;
    atomicAdd(&inp_g[current_idx],out_g[index]);
  }
}


// inp: [b, n, c] mask: [b, n]
// out: [b, proposal_num, c]
__global__ void GatherByMaskKernel(int b,int n,int c,int proposal_num,const float *inp,const float *mask,float *out){
  for (int cur_batch=blockIdx.x; cur_batch<b; cur_batch+=gridDim.x){
    const float *cur_inp = inp + cur_batch * n * c; 
    const float *cur_mask = mask + cur_batch * n;
    float* cur_out = out + cur_batch * proposal_num * c;

    int proposal_cnt = 0;
    int loop_time, tmp_channel_idx;
    for (int cur_pts=0; cur_pts<n; cur_pts++){
        if(int(cur_mask[cur_pts]) == 0) continue;
        if(proposal_cnt == proposal_num) break;
        // a valid proposal
        if (proposal_cnt == 0){
            loop_time = proposal_num * c;
            for (int i=threadIdx.x; i<loop_time; i+=blockDim.x){
                tmp_channel_idx = i % c;
                cur_out[i] = cur_inp[cur_pts * c + tmp_channel_idx];
            }
            __syncthreads();
        } 
        else {
            loop_time = c;
            for (int i=threadIdx.x; i<loop_time; i+=blockDim.x){
                cur_out[proposal_cnt * c + i] = cur_inp[cur_pts * c + i];
            }
            __syncthreads();
        }
        proposal_cnt += 1;
    }
  }
}

void cumsumLauncher(int b,int n,const float * inp,float * out){
  cumsumKernel<<<32,512>>>(b,n,inp,out);
}
//require b*n working space
void probsampleLauncher(int b,int n,int m,const float * inp_p,const float * inp_r,float * temp,int * out){
  cumsumKernel<<<32,512>>>(b,n,inp_p,temp);
  binarysearchKernel<<<dim3(32,8,1),512>>>(b,n,m,temp,inp_r,out);
}
//require 32*n working space
void farthestpointsamplingLauncher(int b,int n,int c,int m,const float * inp,float * temp,int * out){
  farthestpointsamplingKernel<1024><<<b,1024>>>(b,n,c,m,inp,temp,out);
}
//require 32*n working space
void farthestpointsamplingwithdistLauncher(int b,int n,int m,const float * inp,float * temp,int * out){
  farthestpointsamplingwithdistKernel<1024><<<b,1024>>>(b,n,m,inp,temp,out);
}
//require 32*n working space
void farthestpointsamplingwithpreidxLauncher(int b,int n,int c,int m,int m1,const float * inp, const int* preidx,float * temp,int * out){
  farthestpointsamplingwithpreidxKernel<1024><<<b,1024>>>(b,n,c,m,m1,inp,preidx,temp,out);
}
void gatherpointLauncher(int b,int n,int m,int c,const float * inp,const int * idx,float * out){
  gatherpointKernel<<<block_num,threadsPerBlock>>>(b,n,m,c,inp,idx,out);
  //int thread_num = 512 / b;
  // gatherpointKernel<<<dim3(256,8,1),512>>>(b,n,m,inp,idx,out);
}
void scatteraddpointLauncher(int b,int n,int m,int c,const float * out_g,const int * idx,float * inp_g){
  scatteraddpointKernel<<<block_num,threadsPerBlock>>>(b,n,m,c,out_g,idx,inp_g);
}

void GatherByMaskLauncher(int b,int n,int c,int proposal_num,const float *inp,const float *mask,float *out){
  GatherByMaskKernel<<<block_num,threadsPerBlock>>>(b,n,c,proposal_num,inp,mask,out);
}


	.file	"tmpxft_0031b302_00000000-6_tf_sampling_g.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4014:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4014:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.type	_ZL66__device_stub__Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPiiiiiPKfPfPi, @function
_ZL66__device_stub__Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPiiiiiPKfPfPi:
.LFB4046:
	.cfi_startproc
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movl	%edi, 12(%rsp)
	leaq	64(%rsp), %rdi
	movl	%esi, 8(%rsp)
	leaq	76(%rsp), %rsi
	movl	%edx, 4(%rsp)
	leaq	48(%rsp), %rdx
	movl	%ecx, (%rsp)
	leaq	56(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rax
	movq	%r8, 24(%rsp)
	movq	%rax, 112(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 128(%rsp)
	movq	%rsp, %rax
	movq	%rax, 136(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 152(%rsp)
	movq	192(%rsp), %rax
	movq	%r9, 32(%rsp)
	movq	%rax, 40(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 64(%rsp)
	movl	$1, 72(%rsp)
	movq	%rax, 76(%rsp)
	movl	$1, 84(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L2
	pushq	56(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi(%rip), %rdi
	pushq	56(%rsp)
	.cfi_def_cfa_offset 208
	movq	92(%rsp), %rcx
	movl	100(%rsp), %r8d
	movq	80(%rsp), %rsi
	movl	88(%rsp), %edx
	leaq	128(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L2:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4046:
	.size	_ZL66__device_stub__Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPiiiiiPKfPfPi, .-_ZL66__device_stub__Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPiiiiiPKfPfPi
	.section	.text._Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi,"axG",@progbits,_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi,comdat
	.weak	_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi
	.type	_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi, @function
_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi:
.LFB4353:
	.cfi_startproc
	endbr64
	jmp	_ZL66__device_stub__Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPiiiiiPKfPfPi
	.cfi_endproc
.LFE4353:
	.size	_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi, .-_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi
	.text
	.type	_ZL73__device_stub__Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPiiiiPKfPfPi, @function
_ZL73__device_stub__Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPiiiiPKfPfPi:
.LFB4048:
	.cfi_startproc
	subq	$168, %rsp
	.cfi_def_cfa_offset 176
	movl	%edi, 12(%rsp)
	leaq	56(%rsp), %rdi
	movl	%esi, 8(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 4(%rsp)
	leaq	40(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rax
	movq	%rcx, 16(%rsp)
	leaq	48(%rsp), %rcx
	movq	%rax, 104(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 144(%rsp)
	movabsq	$4294967297, %rax
	movq	%r8, 24(%rsp)
	movq	%r9, 32(%rsp)
	movq	%rax, 56(%rsp)
	movl	$1, 64(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L8
	pushq	48(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 192
	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 184
	popq	%rdx
	.cfi_def_cfa_offset 176
.L8:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4048:
	.size	_ZL73__device_stub__Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPiiiiPKfPfPi, .-_ZL73__device_stub__Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPiiiiPKfPfPi
	.section	.text._Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi,"axG",@progbits,_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi,comdat
	.weak	_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi
	.type	_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi, @function
_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi:
.LFB4354:
	.cfi_startproc
	endbr64
	jmp	_ZL73__device_stub__Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPiiiiPKfPfPi
	.cfi_endproc
.LFE4354:
	.size	_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi, .-_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi
	.text
	.type	_ZL80__device_stub__Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPiiiiiiPKfPKiPfPi, @function
_ZL80__device_stub__Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPiiiiiiPKfPKiPfPi:
.LFB4050:
	.cfi_startproc
	subq	$216, %rsp
	.cfi_def_cfa_offset 224
	movl	%edi, 28(%rsp)
	leaq	80(%rsp), %rdi
	movl	%esi, 24(%rsp)
	leaq	92(%rsp), %rsi
	movl	%edx, 20(%rsp)
	leaq	64(%rsp), %rdx
	movl	%ecx, 16(%rsp)
	leaq	72(%rsp), %rcx
	movl	%r8d, 12(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 200(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%r9, 32(%rsp)
	movq	%rax, 128(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 168(%rsp)
	movq	224(%rsp), %rax
	movl	$1, 88(%rsp)
	movq	%rax, 40(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 176(%rsp)
	movq	232(%rsp), %rax
	movl	$1, 100(%rsp)
	movq	%rax, 48(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 184(%rsp)
	movq	240(%rsp), %rax
	movq	%rax, 56(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 192(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 80(%rsp)
	movq	%rax, 92(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L13
	pushq	72(%rsp)
	.cfi_def_cfa_offset 232
	leaq	_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi(%rip), %rdi
	pushq	72(%rsp)
	.cfi_def_cfa_offset 240
	movq	108(%rsp), %rcx
	movl	116(%rsp), %r8d
	movq	96(%rsp), %rsi
	movl	104(%rsp), %edx
	leaq	144(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 232
	popq	%rdx
	.cfi_def_cfa_offset 224
.L13:
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	addq	$216, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4050:
	.size	_ZL80__device_stub__Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPiiiiiiPKfPKiPfPi, .-_ZL80__device_stub__Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPiiiiiiPKfPKiPfPi
	.section	.text._Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi,"axG",@progbits,_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi,comdat
	.weak	_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi
	.type	_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi, @function
_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi:
.LFB4355:
	.cfi_startproc
	endbr64
	jmp	_ZL80__device_stub__Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPiiiiiiPKfPKiPfPi
	.cfi_endproc
.LFE4355:
	.size	_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi, .-_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi
	.text
	.globl	_Z29farthestpointsamplingLauncheriiiiPKfPfPi
	.type	_Z29farthestpointsamplingLauncheriiiiPKfPfPi, @function
_Z29farthestpointsamplingLauncheriiiiPKfPfPi:
.LFB4006:
	.cfi_startproc
	endbr64
	movabsq	$4294967297, %rax
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%r9, %r15
	xorl	%r9d, %r9d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%r8, %r14
	xorl	%r8d, %r8d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%ecx, %r13d
	movl	$1, %ecx
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%edx, %r12d
	movl	$4194305, %edx
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	salq	$10, %rdx
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%edi, %ebx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%rax, 28(%rsp)
	movq	112(%rsp), %rbp
	movl	%esi, 12(%rsp)
	movl	32(%rsp), %esi
	movl	%edi, 24(%rsp)
	movq	24(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L18
	movq	%rbp, 112(%rsp)
	movl	12(%rsp), %esi
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r15, %r9
	movq	%r14, %r8
	movl	%r13d, %ecx
	movl	%r12d, %edx
	movl	%ebx, %edi
	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
	jmp	_ZL66__device_stub__Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPiiiiiPKfPfPi
.L18:
	.cfi_restore_state
	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
.LFE4006:
	.size	_Z29farthestpointsamplingLauncheriiiiPKfPfPi, .-_Z29farthestpointsamplingLauncheriiiiPKfPfPi
	.globl	_Z37farthestpointsamplingwithdistLauncheriiiPKfPfPi
	.type	_Z37farthestpointsamplingwithdistLauncheriiiPKfPfPi, @function
_Z37farthestpointsamplingwithdistLauncheriiiPKfPfPi:
.LFB4007:
	.cfi_startproc
	endbr64
	movabsq	$4294967297, %rax
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%r9, %r15
	xorl	%r9d, %r9d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%r8, %r14
	xorl	%r8d, %r8d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rcx, %r13
	movl	$1, %ecx
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%edx, %r12d
	movl	$4194305, %edx
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%esi, %ebp
	salq	$10, %rdx
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%edi, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%rax, 12(%rsp)
	movl	16(%rsp), %esi
	movl	%edi, 8(%rsp)
	movq	8(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L21
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r15, %r9
	movq	%r14, %r8
	movq	%r13, %rcx
	movl	%r12d, %edx
	movl	%ebp, %esi
	movl	%ebx, %edi
	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
	jmp	_ZL73__device_stub__Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPiiiiPKfPfPi
.L21:
	.cfi_restore_state
	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
.LFE4007:
	.size	_Z37farthestpointsamplingwithdistLauncheriiiPKfPfPi, .-_Z37farthestpointsamplingwithdistLauncheriiiPKfPfPi
	.globl	_Z39farthestpointsamplingwithpreidxLauncheriiiiiPKfPKiPfPi
	.type	_Z39farthestpointsamplingwithpreidxLauncheriiiiiPKfPKiPfPi, @function
_Z39farthestpointsamplingwithpreidxLauncheriiiiiPKfPKiPfPi:
.LFB4008:
	.cfi_startproc
	endbr64
	movabsq	$4294967297, %rax
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%r9, %r14
	xorl	%r9d, %r9d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%r8d, %r13d
	xorl	%r8d, %r8d
	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
	movl	%edi, %ebx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%rax, 28(%rsp)
	movq	112(%rsp), %r15
	movl	%esi, 4(%rsp)
	movl	32(%rsp), %esi
	movl	%edx, 8(%rsp)
	movl	$4194305, %edx
	movq	120(%rsp), %rbp
	movl	%edi, 24(%rsp)
	movq	24(%rsp), %rdi
	salq	$10, %rdx
	movl	%ecx, 12(%rsp)
	movl	$1, %ecx
	movq	128(%rsp), %r12
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L24
	movq	%r12, 128(%rsp)
	movq	%r14, %r9
	movl	%r13d, %r8d
	movl	%ebx, %edi
	movl	12(%rsp), %ecx
	movl	8(%rsp), %edx
	movq	%rbp, 120(%rsp)
	movq	%r15, 112(%rsp)
	movl	4(%rsp), %esi
	addq	$56, %rsp
	.cfi_remember_state
	.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
	jmp	_ZL80__device_stub__Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPiiiiiiPKfPKiPfPi
.L24:
	.cfi_restore_state
	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
.LFE4008:
	.size	_Z39farthestpointsamplingwithpreidxLauncheriiiiiPKfPKiPfPi, .-_Z39farthestpointsamplingwithpreidxLauncheriiiiiPKfPKiPfPi
	.globl	_Z37__device_stub__Z12cumsumKerneliiPKfPfiiPKfPf
	.type	_Z37__device_stub__Z12cumsumKerneliiPKfPfiiPKfPf, @function
_Z37__device_stub__Z12cumsumKerneliiPKfPfiiPKfPf:
.LFB4036:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movl	%edi, 12(%rsp)
	leaq	56(%rsp), %rdi
	movl	%esi, 8(%rsp)
	leaq	68(%rsp), %rsi
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rax
	movq	%rdx, 24(%rsp)
	leaq	40(%rsp), %rdx
	movq	%rax, 104(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	32(%rsp), %rax
	movq	%rcx, 32(%rsp)
	leaq	48(%rsp), %rcx
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movl	$1, 64(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L27
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z12cumsumKerneliiPKfPf(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 176
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	120(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L27:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4036:
	.size	_Z37__device_stub__Z12cumsumKerneliiPKfPfiiPKfPf, .-_Z37__device_stub__Z12cumsumKerneliiPKfPfiiPKfPf
	.globl	_Z12cumsumKerneliiPKfPf
	.type	_Z12cumsumKerneliiPKfPf, @function
_Z12cumsumKerneliiPKfPf:
.LFB4037:
	.cfi_startproc
	endbr64
	jmp	_Z37__device_stub__Z12cumsumKerneliiPKfPfiiPKfPf
	.cfi_endproc
.LFE4037:
	.size	_Z12cumsumKerneliiPKfPf, .-_Z12cumsumKerneliiPKfPf
	.globl	_Z14cumsumLauncheriiPKfPf
	.type	_Z14cumsumLauncheriiPKfPf, @function
_Z14cumsumLauncheriiPKfPf:
.LFB4004:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%r9d, %r9d
	movq	%rcx, %r13
	xorl	%r8d, %r8d
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rdx, %r12
	movl	$8388609, %edx
	movl	$1, %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	salq	$9, %rdx
	movl	%esi, %ebp
	movl	$1, %esi
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movl	%edi, %ebx
	movl	$134217729, %edi
	salq	$5, %rdi
	subq	$40, %rsp
	.cfi_def_cfa_offset 80
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L32
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movq	%r13, %rcx
	movq	%r12, %rdx
	movl	%ebp, %esi
	movl	%ebx, %edi
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	jmp	_Z37__device_stub__Z12cumsumKerneliiPKfPfiiPKfPf
.L32:
	.cfi_restore_state
	addq	$40, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4004:
	.size	_Z14cumsumLauncheriiPKfPf, .-_Z14cumsumLauncheriiPKfPf
	.globl	_Z47__device_stub__Z18binarysearchKerneliiiPKfS0_PiiiiPKfS0_Pi
	.type	_Z47__device_stub__Z18binarysearchKerneliiiPKfS0_PiiiiPKfS0_Pi, @function
_Z47__device_stub__Z18binarysearchKerneliiiPKfS0_PiiiiPKfS0_Pi:
.LFB4038:
	.cfi_startproc
	endbr64
	subq	$168, %rsp
	.cfi_def_cfa_offset 176
	movl	%edi, 12(%rsp)
	leaq	56(%rsp), %rdi
	movl	%esi, 8(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 4(%rsp)
	leaq	40(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rax
	movq	%rcx, 16(%rsp)
	leaq	48(%rsp), %rcx
	movq	%rax, 104(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 144(%rsp)
	movabsq	$4294967297, %rax
	movq	%r8, 24(%rsp)
	movq	%r9, 32(%rsp)
	movq	%rax, 56(%rsp)
	movl	$1, 64(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L35
	pushq	48(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_Z18binarysearchKerneliiiPKfS0_Pi(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 192
	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 184
	popq	%rdx
	.cfi_def_cfa_offset 176
.L35:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4038:
	.size	_Z47__device_stub__Z18binarysearchKerneliiiPKfS0_PiiiiPKfS0_Pi, .-_Z47__device_stub__Z18binarysearchKerneliiiPKfS0_PiiiiPKfS0_Pi
	.globl	_Z18binarysearchKerneliiiPKfS0_Pi
	.type	_Z18binarysearchKerneliiiPKfS0_Pi, @function
_Z18binarysearchKerneliiiPKfS0_Pi:
.LFB4039:
	.cfi_startproc
	endbr64
	jmp	_Z47__device_stub__Z18binarysearchKerneliiiPKfS0_PiiiiPKfS0_Pi
	.cfi_endproc
.LFE4039:
	.size	_Z18binarysearchKerneliiiPKfS0_Pi, .-_Z18binarysearchKerneliiiPKfS0_Pi
	.globl	_Z18probsampleLauncheriiiPKfS0_PfPi
	.type	_Z18probsampleLauncheriiiPKfS0_PfPi, @function
_Z18probsampleLauncheriiiPKfS0_PfPi:
.LFB4005:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rcx, %r14
	movl	$1, %ecx
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r8, %r13
	xorl	%r8d, %r8d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%edx, %r12d
	movl	$8388609, %edx
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	salq	$9, %rdx
	movq	%r9, %rbp
	xorl	%r9d, %r9d
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%esi, %ebx
	movl	$1, %esi
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movl	%edi, 12(%rsp)
	movl	$134217729, %edi
	movq	112(%rsp), %r15
	salq	$5, %rdi
	movq	%rdx, 36(%rsp)
	movl	$1, 44(%rsp)
	movq	%rdi, 24(%rsp)
	movl	$1, 32(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L41
	movl	12(%rsp), %edi
	movq	%rbp, %rcx
	movq	%r14, %rdx
	movl	%ebx, %esi
	call	_Z37__device_stub__Z12cumsumKerneliiPKfPfiiPKfPf
.L41:
	movl	$8388609, %edx
	movl	$1073741825, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	salq	$9, %rdx
	salq	$5, %rdi
	movl	$1, %ecx
	movl	$1, %esi
	movq	%rdx, 36(%rsp)
	movl	$1, 44(%rsp)
	movq	%rdi, 24(%rsp)
	movl	$1, 32(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L40
	movl	12(%rsp), %edi
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r15, %r9
	movq	%r13, %r8
	movq	%rbp, %rcx
	movl	%r12d, %edx
	movl	%ebx, %esi
	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
	jmp	_Z47__device_stub__Z18binarysearchKerneliiiPKfS0_PiiiiPKfS0_Pi
.L40:
	.cfi_restore_state
	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
.LFE4005:
	.size	_Z18probsampleLauncheriiiPKfS0_PfPi, .-_Z18probsampleLauncheriiiPKfS0_PfPi
	.globl	_Z47__device_stub__Z17gatherpointKerneliiiiPKfPKiPfiiiiPKfPKiPf
	.type	_Z47__device_stub__Z17gatherpointKerneliiiiPKfPKiPfiiiiPKfPKiPf, @function
_Z47__device_stub__Z17gatherpointKerneliiiiPKfPKiPfiiiiPKfPKiPf:
.LFB4040:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movl	%edi, 12(%rsp)
	leaq	64(%rsp), %rdi
	movl	%esi, 8(%rsp)
	leaq	76(%rsp), %rsi
	movl	%edx, 4(%rsp)
	leaq	48(%rsp), %rdx
	movl	%ecx, (%rsp)
	leaq	56(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rax
	movq	%r8, 24(%rsp)
	movq	%rax, 112(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 128(%rsp)
	movq	%rsp, %rax
	movq	%rax, 136(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 152(%rsp)
	movq	192(%rsp), %rax
	movq	%r9, 32(%rsp)
	movq	%rax, 40(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 64(%rsp)
	movl	$1, 72(%rsp)
	movq	%rax, 76(%rsp)
	movl	$1, 84(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L44
	pushq	56(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z17gatherpointKerneliiiiPKfPKiPf(%rip), %rdi
	pushq	56(%rsp)
	.cfi_def_cfa_offset 208
	movq	92(%rsp), %rcx
	movl	100(%rsp), %r8d
	movq	80(%rsp), %rsi
	movl	88(%rsp), %edx
	leaq	128(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L44:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L46
	call	__stack_chk_fail@PLT
.L46:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4040:
	.size	_Z47__device_stub__Z17gatherpointKerneliiiiPKfPKiPfiiiiPKfPKiPf, .-_Z47__device_stub__Z17gatherpointKerneliiiiPKfPKiPfiiiiPKfPKiPf
	.globl	_Z17gatherpointKerneliiiiPKfPKiPf
	.type	_Z17gatherpointKerneliiiiPKfPKiPf, @function
_Z17gatherpointKerneliiiiPKfPKiPf:
.LFB4041:
	.cfi_startproc
	endbr64
	jmp	_Z47__device_stub__Z17gatherpointKerneliiiiPKfPKiPfiiiiPKfPKiPf
	.cfi_endproc
.LFE4041:
	.size	_Z17gatherpointKerneliiiiPKfPKiPf, .-_Z17gatherpointKerneliiiiPKfPKiPf
	.globl	_Z19gatherpointLauncheriiiiPKfPKiPf
	.type	_Z19gatherpointLauncheriiiiPKfPKiPf, @function
_Z19gatherpointLauncheriiiiPKfPKiPf:
.LFB4009:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%r9, %r15
	xorl	%r9d, %r9d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%r8, %r14
	xorl	%r8d, %r8d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%ecx, %r13d
	movl	$1, %ecx
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%edx, %r12d
	movl	$67108865, %edx
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	salq	$6, %rdx
	movl	%esi, %ebp
	movl	$1, %esi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movl	%edi, 12(%rsp)
	movl	$8388609, %edi
	movq	112(%rsp), %rbx
	salq	$9, %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L49
	movq	%rbx, 112(%rsp)
	movl	12(%rsp), %edi
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r15, %r9
	popq	%rbx
	.cfi_def_cfa_offset 48
	movq	%r14, %r8
	movl	%r13d, %ecx
	movl	%r12d, %edx
	movl	%ebp, %esi
	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
	jmp	_Z47__device_stub__Z17gatherpointKerneliiiiPKfPKiPfiiiiPKfPKiPf
.L49:
	.cfi_restore_state
	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
.LFE4009:
	.size	_Z19gatherpointLauncheriiiiPKfPKiPf, .-_Z19gatherpointLauncheriiiiPKfPKiPf
	.globl	_Z51__device_stub__Z21scatteraddpointKerneliiiiPKfPKiPfiiiiPKfPKiPf
	.type	_Z51__device_stub__Z21scatteraddpointKerneliiiiPKfPKiPfiiiiPKfPKiPf, @function
_Z51__device_stub__Z21scatteraddpointKerneliiiiPKfPKiPfiiiiPKfPKiPf:
.LFB4042:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movl	%edi, 12(%rsp)
	leaq	64(%rsp), %rdi
	movl	%esi, 8(%rsp)
	leaq	76(%rsp), %rsi
	movl	%edx, 4(%rsp)
	leaq	48(%rsp), %rdx
	movl	%ecx, (%rsp)
	leaq	56(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rax
	movq	%r8, 24(%rsp)
	movq	%rax, 112(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 128(%rsp)
	movq	%rsp, %rax
	movq	%rax, 136(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 152(%rsp)
	movq	192(%rsp), %rax
	movq	%r9, 32(%rsp)
	movq	%rax, 40(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 64(%rsp)
	movl	$1, 72(%rsp)
	movq	%rax, 76(%rsp)
	movl	$1, 84(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L52
	pushq	56(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z21scatteraddpointKerneliiiiPKfPKiPf(%rip), %rdi
	pushq	56(%rsp)
	.cfi_def_cfa_offset 208
	movq	92(%rsp), %rcx
	movl	100(%rsp), %r8d
	movq	80(%rsp), %rsi
	movl	88(%rsp), %edx
	leaq	128(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L52:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L54
	call	__stack_chk_fail@PLT
.L54:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4042:
	.size	_Z51__device_stub__Z21scatteraddpointKerneliiiiPKfPKiPfiiiiPKfPKiPf, .-_Z51__device_stub__Z21scatteraddpointKerneliiiiPKfPKiPfiiiiPKfPKiPf
	.globl	_Z21scatteraddpointKerneliiiiPKfPKiPf
	.type	_Z21scatteraddpointKerneliiiiPKfPKiPf, @function
_Z21scatteraddpointKerneliiiiPKfPKiPf:
.LFB4043:
	.cfi_startproc
	endbr64
	jmp	_Z51__device_stub__Z21scatteraddpointKerneliiiiPKfPKiPfiiiiPKfPKiPf
	.cfi_endproc
.LFE4043:
	.size	_Z21scatteraddpointKerneliiiiPKfPKiPf, .-_Z21scatteraddpointKerneliiiiPKfPKiPf
	.globl	_Z23scatteraddpointLauncheriiiiPKfPKiPf
	.type	_Z23scatteraddpointLauncheriiiiPKfPKiPf, @function
_Z23scatteraddpointLauncheriiiiPKfPKiPf:
.LFB4010:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%r9, %r15
	xorl	%r9d, %r9d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%r8, %r14
	xorl	%r8d, %r8d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%ecx, %r13d
	movl	$1, %ecx
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%edx, %r12d
	movl	$67108865, %edx
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	salq	$6, %rdx
	movl	%esi, %ebp
	movl	$1, %esi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movl	%edi, 12(%rsp)
	movl	$8388609, %edi
	movq	112(%rsp), %rbx
	salq	$9, %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L57
	movq	%rbx, 112(%rsp)
	movl	12(%rsp), %edi
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r15, %r9
	popq	%rbx
	.cfi_def_cfa_offset 48
	movq	%r14, %r8
	movl	%r13d, %ecx
	movl	%r12d, %edx
	movl	%ebp, %esi
	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
	jmp	_Z51__device_stub__Z21scatteraddpointKerneliiiiPKfPKiPfiiiiPKfPKiPf
.L57:
	.cfi_restore_state
	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
.LFE4010:
	.size	_Z23scatteraddpointLauncheriiiiPKfPKiPf, .-_Z23scatteraddpointLauncheriiiiPKfPKiPf
	.globl	_Z48__device_stub__Z18GatherByMaskKerneliiiiPKfS0_PfiiiiPKfS0_Pf
	.type	_Z48__device_stub__Z18GatherByMaskKerneliiiiPKfS0_PfiiiiPKfS0_Pf, @function
_Z48__device_stub__Z18GatherByMaskKerneliiiiPKfS0_PfiiiiPKfS0_Pf:
.LFB4044:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movq	192(%rsp), %rax
	movl	%edi, 44(%rsp)
	leaq	64(%rsp), %rdi
	movl	%esi, 40(%rsp)
	leaq	76(%rsp), %rsi
	movl	%edx, 36(%rsp)
	leaq	48(%rsp), %rdx
	movl	%ecx, 32(%rsp)
	leaq	56(%rsp), %rcx
	movq	%r8, 24(%rsp)
	movq	%r9, 16(%rsp)
	movq	%rax, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rax
	movl	$1, 72(%rsp)
	movq	%rax, 112(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	36(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 64(%rsp)
	movq	%rax, 76(%rsp)
	movl	$1, 84(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L60
	pushq	56(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z18GatherByMaskKerneliiiiPKfS0_Pf(%rip), %rdi
	pushq	56(%rsp)
	.cfi_def_cfa_offset 208
	movq	92(%rsp), %rcx
	movl	100(%rsp), %r8d
	movq	80(%rsp), %rsi
	movl	88(%rsp), %edx
	leaq	128(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L60:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L62
	call	__stack_chk_fail@PLT
.L62:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4044:
	.size	_Z48__device_stub__Z18GatherByMaskKerneliiiiPKfS0_PfiiiiPKfS0_Pf, .-_Z48__device_stub__Z18GatherByMaskKerneliiiiPKfS0_PfiiiiPKfS0_Pf
	.globl	_Z18GatherByMaskKerneliiiiPKfS0_Pf
	.type	_Z18GatherByMaskKerneliiiiPKfS0_Pf, @function
_Z18GatherByMaskKerneliiiiPKfS0_Pf:
.LFB4045:
	.cfi_startproc
	endbr64
	jmp	_Z48__device_stub__Z18GatherByMaskKerneliiiiPKfS0_PfiiiiPKfS0_Pf
	.cfi_endproc
.LFE4045:
	.size	_Z18GatherByMaskKerneliiiiPKfS0_Pf, .-_Z18GatherByMaskKerneliiiiPKfS0_Pf
	.globl	_Z20GatherByMaskLauncheriiiiPKfS0_Pf
	.type	_Z20GatherByMaskLauncheriiiiPKfS0_Pf, @function
_Z20GatherByMaskLauncheriiiiPKfS0_Pf:
.LFB4011:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%r9, %r15
	xorl	%r9d, %r9d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%r8, %r14
	xorl	%r8d, %r8d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%ecx, %r13d
	movl	$1, %ecx
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%edx, %r12d
	movl	$67108865, %edx
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	salq	$6, %rdx
	movl	%esi, %ebp
	movl	$1, %esi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movl	%edi, 12(%rsp)
	movl	$8388609, %edi
	movq	112(%rsp), %rbx
	salq	$9, %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L65
	movq	%rbx, 112(%rsp)
	movl	12(%rsp), %edi
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r15, %r9
	popq	%rbx
	.cfi_def_cfa_offset 48
	movq	%r14, %r8
	movl	%r13d, %ecx
	movl	%r12d, %edx
	movl	%ebp, %esi
	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
	jmp	_Z48__device_stub__Z18GatherByMaskKerneliiiiPKfS0_PfiiiiPKfS0_Pf
.L65:
	.cfi_restore_state
	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
.LFE4011:
	.size	_Z20GatherByMaskLauncheriiiiPKfS0_Pf, .-_Z20GatherByMaskLauncheriiiiPKfS0_Pf
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi"
.LC1:
	.string	"_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi"
.LC2:
	.string	"_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi"
.LC3:
	.string	"_Z18GatherByMaskKerneliiiiPKfS0_Pf"
.LC4:
	.string	"_Z21scatteraddpointKerneliiiiPKfPKiPf"
.LC5:
	.string	"_Z17gatherpointKerneliiiiPKfPKiPf"
.LC6:
	.string	"_Z18binarysearchKerneliiiPKfS0_Pi"
.LC7:
	.string	"_Z12cumsumKerneliiPKfPf"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4053:
	.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	.LC0(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC1(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC2(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC3(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z18GatherByMaskKerneliiiiPKfS0_Pf(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC4(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z21scatteraddpointKerneliiiiPKfPKiPf(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC5(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z17gatherpointKerneliiiiPKfPKiPf(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC6(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z18binarysearchKerneliiiPKfS0_Pi(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC7(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z12cumsumKerneliiPKfPf(%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
.LFE4053:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:


#include <hip/hip_runtime.h>
#include <stdio.h>
#include <iostream>
#include <vector>


#define CUDA_CHECK(condition) \
  /* Code block avoids redefinition of cudaError_t error */ \
  do { \
    hipError_t error = condition; \
    if (error != hipSuccess) { \
      std::cout << hipGetErrorString(error) << std::endl; \
    } \
  } while (0)

#define CUDA_1D_KERNEL_LOOP(i, n)                            \
    for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < n; \
            i += blockDim.x * gridDim.x)

const int block_num = 512;
#define DIVUP(m,n) ((m) / (n) + ((m) % (n) > 0))
const int threadsPerBlock = sizeof(unsigned long long) * 8;


__global__ void cumsumKernel(int b,int n,const float * __restrict__ inp,float * __restrict__ out){
  const int BlockSize=2048;
  const int paddingLevel=5;
  __shared__ float buffer4[BlockSize*4];
  __shared__ float buffer[BlockSize+(BlockSize>>paddingLevel)];
  for (int i=blockIdx.x;i<b;i+=gridDim.x){
    float runningsum=0,runningsum2=0;
    for (int j=0;j<n;j+=BlockSize*4){
      int n24_i=min(n-j,BlockSize*4);
      int n24=(n24_i+3)&~3;
      int n2=n24>>2;
      for (int k=threadIdx.x*4;k<n24_i;k+=blockDim.x*4){
        if (k+3<n24_i){
          float v1=inp[i*n+j+k];
          float v2=inp[i*n+j+k+1];
          v2+=v1;
          float v3=inp[i*n+j+k+2];
          float v4=inp[i*n+j+k+3];
          v4+=v3;
          v3+=v2;
          v4+=v2;
          buffer4[k]=v1;
          buffer4[k+1]=v2;
          buffer4[k+2]=v3;
          buffer4[k+3]=v4;
          buffer[(k>>2)+(k>>(2+paddingLevel))]=v4;
        }else{
          float v=0;
          for (int k2=k;k2<n24_i;k2++){
            v+=inp[i*n+j+k2];
            buffer4[k2]=v;
          }
          for (int k2=n24_i;k2<n24;k2++){
            buffer4[k2]=v;
          }
          buffer[(k>>2)+(k>>(2+paddingLevel))]=v;
        }
      }
      int u=0;
      for (;(2<<u)<=n2;u++){
        __syncthreads();
        for (int k=threadIdx.x;k<int(n2>>(u+1));k+=blockDim.x){
          int i1=(((k<<1)+2)<<u)-1;
          int i2=(((k<<1)+1)<<u)-1;
          i1+=i1>>paddingLevel;
          i2+=i2>>paddingLevel;
          buffer[i1]+=buffer[i2];
        }
      }
      u--;
      for (;u>=0;u--){
        __syncthreads();
        for (int k=threadIdx.x;k<int((n2-(1<<u))>>(u+1));k+=blockDim.x){
          int i1=(((k<<1)+3)<<u)-1;
          int i2=(((k<<1)+2)<<u)-1;
          i1+=i1>>paddingLevel;
          i2+=i2>>paddingLevel;
          buffer[i1]+=buffer[i2];
        }
      }
      __syncthreads();
      for (int k=threadIdx.x*4;k<n24;k+=blockDim.x*4){
        if (k!=0){
          int k2=((k>>2)-1)+(((k>>2)-1)>>paddingLevel);
          buffer4[k]+=buffer[k2];
          buffer4[k+1]+=buffer[k2];
          buffer4[k+2]+=buffer[k2];
          buffer4[k+3]+=buffer[k2];
        }
      }
      __syncthreads();
      for (int k=threadIdx.x;k<n24_i;k+=blockDim.x){
        out[i*n+j+k]=buffer4[k]+runningsum;
      }
      float t=buffer[(n2-1)+((n2-1)>>paddingLevel)]+runningsum2;
      float r2=runningsum+t;
      runningsum2=t-(r2-runningsum);
      runningsum=r2;
      __syncthreads();
    }
  }
}

__global__ void binarysearchKernel(int b,int n,int m,const float * __restrict__ dataset,const float * __restrict__ query, int * __restrict__ result){
  int base=1;
  while (base<n)
    base<<=1;
  for (int i=blockIdx.x;i<b;i+=gridDim.x){
    for (int j=blockIdx.y*blockDim.x+threadIdx.x;j<m;j+=blockDim.x*gridDim.y){
      float q=query[i*m+j]*dataset[i*n+n-1];
      int r=n-1;
      for (int k=base;k>=1;k>>=1)
        if (r>=k && dataset[i*n+r-k]>=q)
          r-=k;
      result[i*m+j]=r;
    }
  }
}

template <unsigned int BlockSize>
__global__ void farthestpointsamplingKernel(int b,int n,int c,int m,const float * __restrict__ dataset,float * __restrict__ temp,int * __restrict__ idxs){
  if (m<=0)
    return;
  // const int BlockSize=512;
  __shared__ float dists[BlockSize];
  __shared__ int dists_i[BlockSize];
  for (int i=blockIdx.x;i<b;i+=gridDim.x){
    int old=0;
    if (threadIdx.x==0)
      idxs[i*m+0]=old;
    //initialize temp
    for (int j=threadIdx.x;j<n;j+=blockDim.x){
      temp[blockIdx.x*n+j]=1e38;
    }
    __syncthreads();
    for (int j=1;j<m;j++){
      int besti=0;
      float best=-1;
      for (int k=threadIdx.x;k<n;k+=blockDim.x){
        float td=temp[blockIdx.x*n+k];
        float d = 0;
        float p1, p2;
        for (int l=0;l<c;l++){
          p1 = dataset[i*n*c+old*c+l];
          p2 = dataset[i*n*c+k*c+l];
          d += (p2-p1) * (p2-p1);
        }
        float d2=min(d,td);
        if (d2!=td)
          temp[blockIdx.x*n+k]=d2;
        if (d2>best){
          best=d2;
          besti=k;
        }
      }
      dists[threadIdx.x]=best;
      dists_i[threadIdx.x]=besti;
      for (int u=0;(1<<u)<blockDim.x;u++){
        __syncthreads();
        if (threadIdx.x<(blockDim.x>>(u+1))){
          int i1=(threadIdx.x*2)<<u;
          int i2=(threadIdx.x*2+1)<<u;
          if (dists[i1]<dists[i2]){
            dists[i1]=dists[i2];
            dists_i[i1]=dists_i[i2];
          }
        }
      }
      __syncthreads();
      old=dists_i[0];
      if (threadIdx.x==0)
        idxs[i*m+j]=old;
    }
  }
}

template <unsigned int BlockSize>
__global__ void farthestpointsamplingwithdistKernel(int b,int n,int m,const float * __restrict__ dataset,float * __restrict__ temp,int * __restrict__ idxs){
  if (m<=0)
    return;
  // const int BlockSize=512;
  __shared__ float dists[BlockSize];
  __shared__ int dists_i[BlockSize];
  for (int i=blockIdx.x;i<b;i+=gridDim.x){
    int old=0;
    if (threadIdx.x==0)
      idxs[i*m+0]=old;
    //initialize temp
    for (int j=threadIdx.x;j<n;j+=blockDim.x){
      temp[blockIdx.x*n+j]=1e38;
    }
    __syncthreads();
    for (int j=1;j<m;j++){
      int besti=0;
      float best=-1;
      for (int k=threadIdx.x;k<n;k+=blockDim.x){
        float td=temp[blockIdx.x*n+k];
        float d = 0;
        d = dataset[i * n * n + old * n + k];
        float d2=min(d,td);
        if (d2!=td)
          temp[blockIdx.x*n+k]=d2;
        if (d2>best){
          best=d2;
          besti=k;
        }
      }
      dists[threadIdx.x]=best;
      dists_i[threadIdx.x]=besti;
      for (int u=0;(1<<u)<blockDim.x;u++){
        __syncthreads();
        if (threadIdx.x<(blockDim.x>>(u+1))){
          int i1=(threadIdx.x*2)<<u;
          int i2=(threadIdx.x*2+1)<<u;
          if (dists[i1]<dists[i2]){
            dists[i1]=dists[i2];
            dists_i[i1]=dists_i[i2];
          }
        }
      }
      __syncthreads();
      old=dists_i[0];
      if (threadIdx.x==0)
        idxs[i*m+j]=old;
    }
  }
}


template <unsigned int BlockSize>
__global__ void farthestpointsamplingwithpreidxKernel(int b,int n,int c,int m,int m1,const float * __restrict__ dataset,const int * __restrict__ preidx,float * __restrict__ temp,int * __restrict__ idxs){
  // b: batch_size, n: ndataset, c: channel_num, m: points_num after fps, m1: preidx number
  // dataset: [b, n, c] preidx: [b, m1], temp: [b, n], idxs: [b, m] 
  if (m<=0)
    return;
  // const int BlockSize=512;
  __shared__ float dists[BlockSize];
  __shared__ int dists_i[BlockSize];
  for (int i=blockIdx.x;i<b;i+=gridDim.x){
    for (int j=threadIdx.x;j<n;j+=blockDim.x){
      temp[blockIdx.x*n+j]=1e38;
    }
    int pre_idx;
    for (int j=threadIdx.x;j<n;j+=blockDim.x){
      // update temp metrics
      float pre_best = 1e38;
      float pre_p1, pre_p2;
      for (int k=0; k<m1; k++){
        pre_idx = preidx[i * m1 + k];
        float pre_d = 0;
        for (int l=0; l < c; l++){
          pre_p1 = dataset[i * n * c + pre_idx * c + l];
          pre_p2 = dataset[i * n * c + j * c + l];
          pre_d += (pre_p2 - pre_p1) * (pre_p2 - pre_p1);
        } 
        pre_best = min(pre_best, pre_d);
      }
      temp[blockIdx.x*n+j] = pre_best;
    }
    // then find current smallest distance as current old
    __syncthreads();
    int old=0;
    float pre_best = -1; 
    for (int j=0; j<n; j++){
      if (pre_best < temp[blockIdx.x*n+j]){
        pre_best = temp[blockIdx.x*n+j];
        old = j;
      } 
    }
    if (threadIdx.x==0)
      idxs[i*m+0]=old;
    //initialize temp
    __syncthreads();
    for (int j=1;j<m;j++){
      int besti=0;
      float best=-1;
      for (int k=threadIdx.x;k<n;k+=blockDim.x){
        float td=temp[blockIdx.x*n+k];
        float d = 0;
        float p1, p2;
        for (int l=0;l<c;l++){
          p1 = dataset[i*n*c+old*c+l];
          p2 = dataset[i*n*c+k*c+l];
          d += (p2-p1) * (p2-p1);
        }
        float d2=min(d,td);
        if (d2!=td)
          temp[blockIdx.x*n+k]=d2;
        if (d2>best){
          best=d2;
          besti=k;
        }
      }
      dists[threadIdx.x]=best;
      dists_i[threadIdx.x]=besti;
      for (int u=0;(1<<u)<blockDim.x;u++){
        __syncthreads();
        if (threadIdx.x<(blockDim.x>>(u+1))){
          int i1=(threadIdx.x*2)<<u;
          int i2=(threadIdx.x*2+1)<<u;
          if (dists[i1]<dists[i2]){
            dists[i1]=dists[i2];
            dists_i[i1]=dists_i[i2];
          }
        }
      }
      __syncthreads();
      old=dists_i[0];
      if (threadIdx.x==0)
        idxs[i*m+j]=old;
    }
  }
}

// inp: [b, n, c] idx: [b, m]
// out: [b, m, c]
__global__ void gatherpointKernel(int b,int n,int m,int c,const float * __restrict__ inp,const int * __restrict__ idx,float * __restrict__ out){
  int loop_time = b * m * c;
  CUDA_1D_KERNEL_LOOP(index, loop_time){
    int cur_batch_size = index / (m * c);
    int cur_point_idx = index / c;
    int cur_channel = index % c;

    int a=idx[cur_point_idx];
    int current_idx = cur_batch_size * (n * c) + a * c + cur_channel;
    out[index] = inp[current_idx];
  }
}

// out_g: [b, m, c] idx: [b, m]
// inp_g: [b, n, c]
__global__ void scatteraddpointKernel(int b,int n,int m,int c,const float * __restrict__ out_g,const int * __restrict__ idx,float * __restrict__ inp_g){
  int loop_time = b * m * c;
  CUDA_1D_KERNEL_LOOP(index, loop_time){
    int cur_batch_size = index / (m * c);
    int cur_point_idx = index / c;
    int cur_channel = index % c;

    int a = idx[cur_point_idx];
    int current_idx = cur_batch_size * n * c + a * c + cur_channel;
    atomicAdd(&inp_g[current_idx],out_g[index]);
  }
}


// inp: [b, n, c] mask: [b, n]
// out: [b, proposal_num, c]
__global__ void GatherByMaskKernel(int b,int n,int c,int proposal_num,const float *inp,const float *mask,float *out){
  for (int cur_batch=blockIdx.x; cur_batch<b; cur_batch+=gridDim.x){
    const float *cur_inp = inp + cur_batch * n * c; 
    const float *cur_mask = mask + cur_batch * n;
    float* cur_out = out + cur_batch * proposal_num * c;

    int proposal_cnt = 0;
    int loop_time, tmp_channel_idx;
    for (int cur_pts=0; cur_pts<n; cur_pts++){
        if(int(cur_mask[cur_pts]) == 0) continue;
        if(proposal_cnt == proposal_num) break;
        // a valid proposal
        if (proposal_cnt == 0){
            loop_time = proposal_num * c;
            for (int i=threadIdx.x; i<loop_time; i+=blockDim.x){
                tmp_channel_idx = i % c;
                cur_out[i] = cur_inp[cur_pts * c + tmp_channel_idx];
            }
            __syncthreads();
        } 
        else {
            loop_time = c;
            for (int i=threadIdx.x; i<loop_time; i+=blockDim.x){
                cur_out[proposal_cnt * c + i] = cur_inp[cur_pts * c + i];
            }
            __syncthreads();
        }
        proposal_cnt += 1;
    }
  }
}

void cumsumLauncher(int b,int n,const float * inp,float * out){
  cumsumKernel<<<32,512>>>(b,n,inp,out);
}
//require b*n working space
void probsampleLauncher(int b,int n,int m,const float * inp_p,const float * inp_r,float * temp,int * out){
  cumsumKernel<<<32,512>>>(b,n,inp_p,temp);
  binarysearchKernel<<<dim3(32,8,1),512>>>(b,n,m,temp,inp_r,out);
}
//require 32*n working space
void farthestpointsamplingLauncher(int b,int n,int c,int m,const float * inp,float * temp,int * out){
  farthestpointsamplingKernel<1024><<<b,1024>>>(b,n,c,m,inp,temp,out);
}
//require 32*n working space
void farthestpointsamplingwithdistLauncher(int b,int n,int m,const float * inp,float * temp,int * out){
  farthestpointsamplingwithdistKernel<1024><<<b,1024>>>(b,n,m,inp,temp,out);
}
//require 32*n working space
void farthestpointsamplingwithpreidxLauncher(int b,int n,int c,int m,int m1,const float * inp, const int* preidx,float * temp,int * out){
  farthestpointsamplingwithpreidxKernel<1024><<<b,1024>>>(b,n,c,m,m1,inp,preidx,temp,out);
}
void gatherpointLauncher(int b,int n,int m,int c,const float * inp,const int * idx,float * out){
  gatherpointKernel<<<block_num,threadsPerBlock>>>(b,n,m,c,inp,idx,out);
  //int thread_num = 512 / b;
  // gatherpointKernel<<<dim3(256,8,1),512>>>(b,n,m,inp,idx,out);
}
void scatteraddpointLauncher(int b,int n,int m,int c,const float * out_g,const int * idx,float * inp_g){
  scatteraddpointKernel<<<block_num,threadsPerBlock>>>(b,n,m,c,out_g,idx,inp_g);
}

void GatherByMaskLauncher(int b,int n,int c,int proposal_num,const float *inp,const float *mask,float *out){
  GatherByMaskKernel<<<block_num,threadsPerBlock>>>(b,n,c,proposal_num,inp,mask,out);
}


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

                                        # End of file scope inline assembly
	.globl	_Z27__device_stub__cumsumKerneliiPKfPf # -- Begin function _Z27__device_stub__cumsumKerneliiPKfPf
	.type	_Z27__device_stub__cumsumKerneliiPKfPf,@function
_Z27__device_stub__cumsumKerneliiPKfPf: # @_Z27__device_stub__cumsumKerneliiPKfPf
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	8(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z12cumsumKerneliiPKfPf, %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_end0:
	.size	_Z27__device_stub__cumsumKerneliiPKfPf, .Lfunc_end0-_Z27__device_stub__cumsumKerneliiPKfPf
	.cfi_endproc
                                        # -- End function
	.globl	_Z33__device_stub__binarysearchKerneliiiPKfS0_Pi # -- Begin function _Z33__device_stub__binarysearchKerneliiiPKfS0_Pi
	.type	_Z33__device_stub__binarysearchKerneliiiPKfS0_Pi,@function
_Z33__device_stub__binarysearchKerneliiiPKfS0_Pi: # @_Z33__device_stub__binarysearchKerneliiiPKfS0_Pi
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	20(%rsp), %rax
	movl	%edi, (%rax)
	leaq	16(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	56(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	48(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	40(%rsp), %r8
	movq	%r9, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	32(%rsp), %r12
	leaq	24(%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	$_Z18binarysearchKerneliiiPKfS0_Pi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z33__device_stub__binarysearchKerneliiiPKfS0_Pi, .Lfunc_end1-_Z33__device_stub__binarysearchKerneliiiPKfS0_Pi
	.cfi_endproc
                                        # -- End function
	.globl	_Z32__device_stub__gatherpointKerneliiiiPKfPKiPf # -- Begin function _Z32__device_stub__gatherpointKerneliiiiPKfPKiPf
	.type	_Z32__device_stub__gatherpointKerneliiiiPKfPKiPf,@function
_Z32__device_stub__gatherpointKerneliiiiPKfPKiPf: # @_Z32__device_stub__gatherpointKerneliiiiPKfPKiPf
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	8(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	4(%rsp), %rsi
	movl	%edx, (%rsi)
	movq	%rsp, %rdx
	movl	%ecx, (%rdx)
	leaq	40(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	32(%rsp), %r8
	movq	%r9, (%r8)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	192(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z17gatherpointKerneliiiiPKfPKiPf, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_Z32__device_stub__gatherpointKerneliiiiPKfPKiPf, .Lfunc_end2-_Z32__device_stub__gatherpointKerneliiiiPKfPKiPf
	.cfi_endproc
                                        # -- End function
	.globl	_Z36__device_stub__scatteraddpointKerneliiiiPKfPKiPf # -- Begin function _Z36__device_stub__scatteraddpointKerneliiiiPKfPKiPf
	.type	_Z36__device_stub__scatteraddpointKerneliiiiPKfPKiPf,@function
_Z36__device_stub__scatteraddpointKerneliiiiPKfPKiPf: # @_Z36__device_stub__scatteraddpointKerneliiiiPKfPKiPf
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	8(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	4(%rsp), %rsi
	movl	%edx, (%rsi)
	movq	%rsp, %rdx
	movl	%ecx, (%rdx)
	leaq	40(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	32(%rsp), %r8
	movq	%r9, (%r8)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	192(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z21scatteraddpointKerneliiiiPKfPKiPf, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	_Z36__device_stub__scatteraddpointKerneliiiiPKfPKiPf, .Lfunc_end3-_Z36__device_stub__scatteraddpointKerneliiiiPKfPKiPf
	.cfi_endproc
                                        # -- End function
	.globl	_Z33__device_stub__GatherByMaskKerneliiiiPKfS0_Pf # -- Begin function _Z33__device_stub__GatherByMaskKerneliiiiPKfS0_Pf
	.type	_Z33__device_stub__GatherByMaskKerneliiiiPKfS0_Pf,@function
_Z33__device_stub__GatherByMaskKerneliiiiPKfS0_Pf: # @_Z33__device_stub__GatherByMaskKerneliiiiPKfS0_Pf
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	8(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	4(%rsp), %rsi
	movl	%edx, (%rsi)
	movq	%rsp, %rdx
	movl	%ecx, (%rdx)
	leaq	40(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	32(%rsp), %r8
	movq	%r9, (%r8)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	192(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z18GatherByMaskKerneliiiiPKfS0_Pf, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end4:
	.size	_Z33__device_stub__GatherByMaskKerneliiiiPKfS0_Pf, .Lfunc_end4-_Z33__device_stub__GatherByMaskKerneliiiiPKfS0_Pf
	.cfi_endproc
                                        # -- End function
	.globl	_Z14cumsumLauncheriiPKfPf       # -- Begin function _Z14cumsumLauncheriiPKfPf
	.type	_Z14cumsumLauncheriiPKfPf,@function
_Z14cumsumLauncheriiPKfPf:              # @_Z14cumsumLauncheriiPKfPf
	.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	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movl	%esi, %ebp
	movl	%edi, %r15d
	movabsq	$4294967328, %rdi               # imm = 0x100000020
	leaq	480(%rdi), %rdx
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	je	.LBB5_2
# %bb.1:
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB5_2:
	.cfi_def_cfa_offset 48
	movl	%r15d, %edi
	movl	%ebp, %esi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.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
	jmp	_Z27__device_stub__cumsumKerneliiPKfPf # TAILCALL
.Lfunc_end5:
	.size	_Z14cumsumLauncheriiPKfPf, .Lfunc_end5-_Z14cumsumLauncheriiPKfPf
	.cfi_endproc
                                        # -- End function
	.globl	_Z18probsampleLauncheriiiPKfS0_PfPi # -- Begin function _Z18probsampleLauncheriiiPKfS0_PfPi
	.type	_Z18probsampleLauncheriiiPKfS0_PfPi,@function
_Z18probsampleLauncheriiiPKfS0_PfPi:    # @_Z18probsampleLauncheriiiPKfS0_PfPi
	.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	%r9, %r14
	movq	%r8, 16(%rsp)                   # 8-byte Spill
	movq	%rcx, %r15
	movl	%edx, %ebp
	movl	%esi, %r12d
	movl	%edi, %r13d
	movq	80(%rsp), %rax
	movq	%rax, 8(%rsp)                   # 8-byte Spill
	movabsq	$4294967808, %rbx               # imm = 0x100000200
	leaq	-480(%rbx), %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB6_2
# %bb.1:
	movl	%r13d, %edi
	movl	%r12d, %esi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_Z27__device_stub__cumsumKerneliiPKfPf
.LBB6_2:
	movabsq	$34359738400, %rdi              # imm = 0x800000020
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	je	.LBB6_4
# %bb.3:
	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
.LBB6_4:
	.cfi_def_cfa_offset 80
	movl	%r13d, %edi
	movl	%r12d, %esi
	movl	%ebp, %edx
	movq	%r14, %rcx
	movq	16(%rsp), %r8                   # 8-byte Reload
	movq	8(%rsp), %r9                    # 8-byte Reload
	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
	jmp	_Z33__device_stub__binarysearchKerneliiiPKfS0_Pi # TAILCALL
.Lfunc_end6:
	.size	_Z18probsampleLauncheriiiPKfS0_PfPi, .Lfunc_end6-_Z18probsampleLauncheriiiPKfS0_PfPi
	.cfi_endproc
                                        # -- End function
	.globl	_Z29farthestpointsamplingLauncheriiiiPKfPfPi # -- Begin function _Z29farthestpointsamplingLauncheriiiiPKfPfPi
	.type	_Z29farthestpointsamplingLauncheriiiiPKfPfPi,@function
_Z29farthestpointsamplingLauncheriiiiPKfPfPi: # @_Z29farthestpointsamplingLauncheriiiiPKfPfPi
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%r9, %rbx
	movq	%r8, %r14
	movl	%ecx, %ebp
	movl	%edx, %r15d
	movl	%esi, %r12d
	movl	%edi, %r13d
	movl	%edi, %edi
	btsq	$32, %rdi
	movabsq	$4294967296, %rdx               # imm = 0x100000000
	orq	$1024, %rdx                     # imm = 0x400
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	je	.LBB7_2
# %bb.1:
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB7_2:
	.cfi_def_cfa_offset 64
	movl	%r13d, %edi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%ebp, %ecx
	movq	%r14, %r8
	movq	%rbx, %r9
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	_Z42__device_stub__farthestpointsamplingKernelILj1024EEviiiiPKfPfPi # TAILCALL
.Lfunc_end7:
	.size	_Z29farthestpointsamplingLauncheriiiiPKfPfPi, .Lfunc_end7-_Z29farthestpointsamplingLauncheriiiiPKfPfPi
	.cfi_endproc
                                        # -- End function
	.section	.text._Z42__device_stub__farthestpointsamplingKernelILj1024EEviiiiPKfPfPi,"axG",@progbits,_Z42__device_stub__farthestpointsamplingKernelILj1024EEviiiiPKfPfPi,comdat
	.weak	_Z42__device_stub__farthestpointsamplingKernelILj1024EEviiiiPKfPfPi # -- Begin function _Z42__device_stub__farthestpointsamplingKernelILj1024EEviiiiPKfPfPi
	.type	_Z42__device_stub__farthestpointsamplingKernelILj1024EEviiiiPKfPfPi,@function
_Z42__device_stub__farthestpointsamplingKernelILj1024EEviiiiPKfPfPi: # @_Z42__device_stub__farthestpointsamplingKernelILj1024EEviiiiPKfPfPi
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	8(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	4(%rsp), %rsi
	movl	%edx, (%rsi)
	movq	%rsp, %rdx
	movl	%ecx, (%rdx)
	leaq	40(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	32(%rsp), %r8
	movq	%r9, (%r8)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	192(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end8:
	.size	_Z42__device_stub__farthestpointsamplingKernelILj1024EEviiiiPKfPfPi, .Lfunc_end8-_Z42__device_stub__farthestpointsamplingKernelILj1024EEviiiiPKfPfPi
	.cfi_endproc
                                        # -- End function
	.text
	.globl	_Z37farthestpointsamplingwithdistLauncheriiiPKfPfPi # -- Begin function _Z37farthestpointsamplingwithdistLauncheriiiPKfPfPi
	.type	_Z37farthestpointsamplingwithdistLauncheriiiPKfPfPi,@function
_Z37farthestpointsamplingwithdistLauncheriiiPKfPfPi: # @_Z37farthestpointsamplingwithdistLauncheriiiPKfPfPi
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%r9, %rbx
	movq	%r8, %r14
	movq	%rcx, %r15
	movl	%edx, %ebp
	movl	%esi, %r12d
	movl	%edi, %r13d
	movl	%edi, %edi
	btsq	$32, %rdi
	movabsq	$4294967296, %rdx               # imm = 0x100000000
	orq	$1024, %rdx                     # imm = 0x400
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	je	.LBB9_2
# %bb.1:
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB9_2:
	.cfi_def_cfa_offset 64
	movl	%r13d, %edi
	movl	%r12d, %esi
	movl	%ebp, %edx
	movq	%r15, %rcx
	movq	%r14, %r8
	movq	%rbx, %r9
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	_Z50__device_stub__farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi # TAILCALL
.Lfunc_end9:
	.size	_Z37farthestpointsamplingwithdistLauncheriiiPKfPfPi, .Lfunc_end9-_Z37farthestpointsamplingwithdistLauncheriiiPKfPfPi
	.cfi_endproc
                                        # -- End function
	.section	.text._Z50__device_stub__farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi,"axG",@progbits,_Z50__device_stub__farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi,comdat
	.weak	_Z50__device_stub__farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi # -- Begin function _Z50__device_stub__farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi
	.type	_Z50__device_stub__farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi,@function
_Z50__device_stub__farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi: # @_Z50__device_stub__farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	20(%rsp), %rax
	movl	%edi, (%rax)
	leaq	16(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	56(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	48(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	40(%rsp), %r8
	movq	%r9, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	32(%rsp), %r12
	leaq	24(%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	$_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end10:
	.size	_Z50__device_stub__farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi, .Lfunc_end10-_Z50__device_stub__farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi
	.cfi_endproc
                                        # -- End function
	.text
	.globl	_Z39farthestpointsamplingwithpreidxLauncheriiiiiPKfPKiPfPi # -- Begin function _Z39farthestpointsamplingwithpreidxLauncheriiiiiPKfPKiPfPi
	.type	_Z39farthestpointsamplingwithpreidxLauncheriiiiiPKfPKiPfPi,@function
_Z39farthestpointsamplingwithpreidxLauncheriiiiiPKfPKiPfPi: # @_Z39farthestpointsamplingwithpreidxLauncheriiiiiPKfPKiPfPi
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%r9, %rbx
	movl	%r8d, %ebp
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movl	%edi, %r13d
	movl	%edi, %edi
	btsq	$32, %rdi
	movabsq	$4294967296, %rdx               # imm = 0x100000000
	orq	$1024, %rdx                     # imm = 0x400
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	je	.LBB11_2
# %bb.1:
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB11_2:
	.cfi_def_cfa_offset 64
	movl	%r13d, %edi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%ebp, %r8d
	movq	%rbx, %r9
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	_Z52__device_stub__farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi # TAILCALL
.Lfunc_end11:
	.size	_Z39farthestpointsamplingwithpreidxLauncheriiiiiPKfPKiPfPi, .Lfunc_end11-_Z39farthestpointsamplingwithpreidxLauncheriiiiiPKfPKiPfPi
	.cfi_endproc
                                        # -- End function
	.section	.text._Z52__device_stub__farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi,"axG",@progbits,_Z52__device_stub__farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi,comdat
	.weak	_Z52__device_stub__farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi # -- Begin function _Z52__device_stub__farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi
	.type	_Z52__device_stub__farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi,@function
_Z52__device_stub__farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi: # @_Z52__device_stub__farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$160, %rsp
	.cfi_def_cfa_offset 208
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	20(%rsp), %rax
	movl	%edi, (%rax)
	leaq	16(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	8(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	4(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	40(%rsp), %r8
	movq	%r9, (%r8)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	208(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	216(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	224(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	32(%rsp), %r12
	leaq	24(%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	$_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$176, %rsp
	.cfi_adjust_cfa_offset -176
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end12:
	.size	_Z52__device_stub__farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi, .Lfunc_end12-_Z52__device_stub__farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi
	.cfi_endproc
                                        # -- End function
	.text
	.globl	_Z19gatherpointLauncheriiiiPKfPKiPf # -- Begin function _Z19gatherpointLauncheriiiiPKfPKiPf
	.type	_Z19gatherpointLauncheriiiiPKfPKiPf,@function
_Z19gatherpointLauncheriiiiPKfPKiPf:    # @_Z19gatherpointLauncheriiiiPKfPKiPf
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%r9, %rbx
	movq	%r8, %r14
	movl	%ecx, %ebp
	movl	%edx, %r15d
	movl	%esi, %r12d
	movl	%edi, %r13d
	movabsq	$4294967360, %rdx               # imm = 0x100000040
	leaq	448(%rdx), %rdi
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	je	.LBB13_2
# %bb.1:
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB13_2:
	.cfi_def_cfa_offset 64
	movl	%r13d, %edi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%ebp, %ecx
	movq	%r14, %r8
	movq	%rbx, %r9
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	_Z32__device_stub__gatherpointKerneliiiiPKfPKiPf # TAILCALL
.Lfunc_end13:
	.size	_Z19gatherpointLauncheriiiiPKfPKiPf, .Lfunc_end13-_Z19gatherpointLauncheriiiiPKfPKiPf
	.cfi_endproc
                                        # -- End function
	.globl	_Z23scatteraddpointLauncheriiiiPKfPKiPf # -- Begin function _Z23scatteraddpointLauncheriiiiPKfPKiPf
	.type	_Z23scatteraddpointLauncheriiiiPKfPKiPf,@function
_Z23scatteraddpointLauncheriiiiPKfPKiPf: # @_Z23scatteraddpointLauncheriiiiPKfPKiPf
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%r9, %rbx
	movq	%r8, %r14
	movl	%ecx, %ebp
	movl	%edx, %r15d
	movl	%esi, %r12d
	movl	%edi, %r13d
	movabsq	$4294967360, %rdx               # imm = 0x100000040
	leaq	448(%rdx), %rdi
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	je	.LBB14_2
# %bb.1:
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB14_2:
	.cfi_def_cfa_offset 64
	movl	%r13d, %edi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%ebp, %ecx
	movq	%r14, %r8
	movq	%rbx, %r9
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	_Z36__device_stub__scatteraddpointKerneliiiiPKfPKiPf # TAILCALL
.Lfunc_end14:
	.size	_Z23scatteraddpointLauncheriiiiPKfPKiPf, .Lfunc_end14-_Z23scatteraddpointLauncheriiiiPKfPKiPf
	.cfi_endproc
                                        # -- End function
	.globl	_Z20GatherByMaskLauncheriiiiPKfS0_Pf # -- Begin function _Z20GatherByMaskLauncheriiiiPKfS0_Pf
	.type	_Z20GatherByMaskLauncheriiiiPKfS0_Pf,@function
_Z20GatherByMaskLauncheriiiiPKfS0_Pf:   # @_Z20GatherByMaskLauncheriiiiPKfS0_Pf
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%r9, %rbx
	movq	%r8, %r14
	movl	%ecx, %ebp
	movl	%edx, %r15d
	movl	%esi, %r12d
	movl	%edi, %r13d
	movabsq	$4294967360, %rdx               # imm = 0x100000040
	leaq	448(%rdx), %rdi
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	je	.LBB15_2
# %bb.1:
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB15_2:
	.cfi_def_cfa_offset 64
	movl	%r13d, %edi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%ebp, %ecx
	movq	%r14, %r8
	movq	%rbx, %r9
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	_Z33__device_stub__GatherByMaskKerneliiiiPKfS0_Pf # TAILCALL
.Lfunc_end15:
	.size	_Z20GatherByMaskLauncheriiiiPKfS0_Pf, .Lfunc_end15-_Z20GatherByMaskLauncheriiiiPKfS0_Pf
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB16_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB16_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z12cumsumKerneliiPKfPf, %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	$_Z18binarysearchKerneliiiPKfS0_Pi, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z17gatherpointKerneliiiiPKfPKiPf, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z21scatteraddpointKerneliiiiPKfPKiPf, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z18GatherByMaskKerneliiiiPKfS0_Pf, %esi
	movl	$.L__unnamed_5, %edx
	movl	$.L__unnamed_5, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi, %esi
	movl	$.L__unnamed_6, %edx
	movl	$.L__unnamed_6, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi, %esi
	movl	$.L__unnamed_7, %edx
	movl	$.L__unnamed_7, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi, %esi
	movl	$.L__unnamed_8, %edx
	movl	$.L__unnamed_8, %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_end16:
	.size	__hip_module_ctor, .Lfunc_end16-__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	.LBB17_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
.LBB17_2:
	retq
.Lfunc_end17:
	.size	__hip_module_dtor, .Lfunc_end17-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z12cumsumKerneliiPKfPf,@object # @_Z12cumsumKerneliiPKfPf
	.section	.rodata,"a",@progbits
	.globl	_Z12cumsumKerneliiPKfPf
	.p2align	3, 0x0
_Z12cumsumKerneliiPKfPf:
	.quad	_Z27__device_stub__cumsumKerneliiPKfPf
	.size	_Z12cumsumKerneliiPKfPf, 8

	.type	_Z18binarysearchKerneliiiPKfS0_Pi,@object # @_Z18binarysearchKerneliiiPKfS0_Pi
	.globl	_Z18binarysearchKerneliiiPKfS0_Pi
	.p2align	3, 0x0
_Z18binarysearchKerneliiiPKfS0_Pi:
	.quad	_Z33__device_stub__binarysearchKerneliiiPKfS0_Pi
	.size	_Z18binarysearchKerneliiiPKfS0_Pi, 8

	.type	_Z17gatherpointKerneliiiiPKfPKiPf,@object # @_Z17gatherpointKerneliiiiPKfPKiPf
	.globl	_Z17gatherpointKerneliiiiPKfPKiPf
	.p2align	3, 0x0
_Z17gatherpointKerneliiiiPKfPKiPf:
	.quad	_Z32__device_stub__gatherpointKerneliiiiPKfPKiPf
	.size	_Z17gatherpointKerneliiiiPKfPKiPf, 8

	.type	_Z21scatteraddpointKerneliiiiPKfPKiPf,@object # @_Z21scatteraddpointKerneliiiiPKfPKiPf
	.globl	_Z21scatteraddpointKerneliiiiPKfPKiPf
	.p2align	3, 0x0
_Z21scatteraddpointKerneliiiiPKfPKiPf:
	.quad	_Z36__device_stub__scatteraddpointKerneliiiiPKfPKiPf
	.size	_Z21scatteraddpointKerneliiiiPKfPKiPf, 8

	.type	_Z18GatherByMaskKerneliiiiPKfS0_Pf,@object # @_Z18GatherByMaskKerneliiiiPKfS0_Pf
	.globl	_Z18GatherByMaskKerneliiiiPKfS0_Pf
	.p2align	3, 0x0
_Z18GatherByMaskKerneliiiiPKfS0_Pf:
	.quad	_Z33__device_stub__GatherByMaskKerneliiiiPKfS0_Pf
	.size	_Z18GatherByMaskKerneliiiiPKfS0_Pf, 8

	.type	_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi,@object # @_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi
	.section	.rodata._Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi,"aG",@progbits,_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi,comdat
	.weak	_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi
	.p2align	3, 0x0
_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi:
	.quad	_Z42__device_stub__farthestpointsamplingKernelILj1024EEviiiiPKfPfPi
	.size	_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi, 8

	.type	_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi,@object # @_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi
	.section	.rodata._Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi,"aG",@progbits,_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi,comdat
	.weak	_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi
	.p2align	3, 0x0
_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi:
	.quad	_Z50__device_stub__farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi
	.size	_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi, 8

	.type	_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi,@object # @_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi
	.section	.rodata._Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi,"aG",@progbits,_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi,comdat
	.weak	_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi
	.p2align	3, 0x0
_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi:
	.quad	_Z52__device_stub__farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi
	.size	_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi, 8

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

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z18binarysearchKerneliiiPKfS0_Pi"
	.size	.L__unnamed_2, 34

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z17gatherpointKerneliiiiPKfPKiPf"
	.size	.L__unnamed_3, 34

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"_Z21scatteraddpointKerneliiiiPKfPKiPf"
	.size	.L__unnamed_4, 38

	.type	.L__unnamed_5,@object           # @4
.L__unnamed_5:
	.asciz	"_Z18GatherByMaskKerneliiiiPKfS0_Pf"
	.size	.L__unnamed_5, 35

	.type	.L__unnamed_6,@object           # @5
.L__unnamed_6:
	.asciz	"_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi"
	.size	.L__unnamed_6, 53

	.type	.L__unnamed_7,@object           # @6
.L__unnamed_7:
	.asciz	"_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi"
	.size	.L__unnamed_7, 60

	.type	.L__unnamed_8,@object           # @7
.L__unnamed_8:
	.asciz	"_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi"
	.size	.L__unnamed_8, 67

	.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 _Z27__device_stub__cumsumKerneliiPKfPf
	.addrsig_sym _Z33__device_stub__binarysearchKerneliiiPKfS0_Pi
	.addrsig_sym _Z32__device_stub__gatherpointKerneliiiiPKfPKiPf
	.addrsig_sym _Z36__device_stub__scatteraddpointKerneliiiiPKfPKiPf
	.addrsig_sym _Z33__device_stub__GatherByMaskKerneliiiiPKfS0_Pf
	.addrsig_sym _Z42__device_stub__farthestpointsamplingKernelILj1024EEviiiiPKfPfPi
	.addrsig_sym _Z50__device_stub__farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi
	.addrsig_sym _Z52__device_stub__farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Z12cumsumKerneliiPKfPf
	.addrsig_sym _Z18binarysearchKerneliiiPKfS0_Pi
	.addrsig_sym _Z17gatherpointKerneliiiiPKfPKiPf
	.addrsig_sym _Z21scatteraddpointKerneliiiiPKfPKiPf
	.addrsig_sym _Z18GatherByMaskKerneliiiiPKfS0_Pf
	.addrsig_sym _Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi
	.addrsig_sym _Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi
	.addrsig_sym _Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z12cumsumKerneliiPKfPf ; -- Begin function _Z12cumsumKerneliiPKfPf
	.globl	_Z12cumsumKerneliiPKfPf
	.p2align	8
	.type	_Z12cumsumKerneliiPKfPf,@function
_Z12cumsumKerneliiPKfPf:                ; @_Z12cumsumKerneliiPKfPf
; %bb.0:
	s_load_b64 s[2:3], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_cmp_ge_i32 s15, s2
	s_cbranch_scc1 .LBB0_39
; %bb.1:                                ; %.preheader166.lr.ph
	s_clause 0x1
	s_load_b32 s10, s[0:1], 0x18
	s_load_b128 s[4:7], s[0:1], 0x8
	v_lshlrev_b32_e32 v7, 2, v0
	v_lshlrev_b32_e32 v1, 1, v0
	s_mul_i32 s11, s15, s3
	s_cmp_gt_i32 s3, 0
	v_lshlrev_b32_e32 v9, 4, v0
	v_add_nc_u32_e32 v8, s11, v7
	v_or_b32_e32 v10, 1, v1
	v_add_nc_u32_e32 v11, 2, v1
	s_cselect_b32 s12, -1, 0
	s_add_u32 s8, s0, 24
	s_addc_u32 s9, s1, 0
	s_waitcnt lgkmcnt(0)
	s_mul_i32 s1, s10, s3
.LBB0_2:                                ; %.preheader166
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;       Child Loop BB0_6 Depth 3
                                        ;         Child Loop BB0_8 Depth 4
                                        ;         Child Loop BB0_10 Depth 4
                                        ;       Child Loop BB0_16 Depth 3
                                        ;         Child Loop BB0_18 Depth 4
                                        ;       Child Loop BB0_23 Depth 3
                                        ;         Child Loop BB0_25 Depth 4
                                        ;       Child Loop BB0_30 Depth 3
                                        ;       Child Loop BB0_36 Depth 3
	s_and_not1_b32 vcc_lo, exec_lo, s12
	s_cbranch_vccnz .LBB0_38
; %bb.3:                                ; %.lr.ph202
                                        ;   in Loop: Header=BB0_2 Depth=1
	v_dual_mov_b32 v13, 0 :: v_dual_mov_b32 v12, v8
	v_mov_b32_e32 v14, 0
	s_mul_i32 s13, s15, s3
	s_mov_b32 s14, 0
	s_mov_b32 s16, s11
	s_mov_b32 s17, s3
.LBB0_4:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_6 Depth 3
                                        ;         Child Loop BB0_8 Depth 4
                                        ;         Child Loop BB0_10 Depth 4
                                        ;       Child Loop BB0_16 Depth 3
                                        ;         Child Loop BB0_18 Depth 4
                                        ;       Child Loop BB0_23 Depth 3
                                        ;         Child Loop BB0_25 Depth 4
                                        ;       Child Loop BB0_30 Depth 3
                                        ;       Child Loop BB0_36 Depth 3
	s_sub_i32 s19, s3, s14
	s_mov_b32 s22, exec_lo
	s_min_i32 s18, s19, 0x2000
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_add_i32 s21, s18, 3
	s_and_b32 s20, s21, -4
	v_cmpx_gt_i32_e64 s18, v7
	s_cbranch_execz .LBB0_14
; %bb.5:                                ; %.lr.ph174
                                        ;   in Loop: Header=BB0_4 Depth=2
	s_load_b32 s0, s[8:9], 0xc
	s_min_i32 s24, s17, 0x2000
	s_add_i32 s23, s14, s13
	s_lshl_b32 s24, s24, 2
	s_cmp_lt_i32 s18, s20
	v_dual_mov_b32 v15, v9 :: v_dual_mov_b32 v16, v7
	v_mov_b32_e32 v5, v12
	s_cselect_b32 s25, -1, 0
	s_mov_b32 s28, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s0, s0, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1)
	s_lshl_b32 s26, s0, 2
	s_lshl_b32 s27, s0, 4
.LBB0_6:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_8 Depth 4
                                        ;         Child Loop BB0_10 Depth 4
	v_or_b32_e32 v1, 3, v16
                                        ; implicit-def: $vgpr4
	s_mov_b32 s0, exec_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_le_i32_e64 s18, v1
	s_xor_b32 s29, exec_lo, s0
	s_cbranch_execz .LBB0_11
; %bb.7:                                ; %.lr.ph.preheader
                                        ;   in Loop: Header=BB0_6 Depth=3
	v_ashrrev_i32_e32 v6, 31, v5
	v_dual_mov_b32 v4, 0 :: v_dual_mov_b32 v3, v15
	s_mov_b32 s30, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[1:2], 2, v[5:6]
	v_mov_b32_e32 v6, v16
	v_add_co_u32 v1, vcc_lo, s4, v1
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v2, vcc_lo, s5, v2, vcc_lo
.LBB0_8:                                ; %.lr.ph
                                        ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ;       Parent Loop BB0_6 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	global_load_b32 v17, v[1:2], off
	v_add_nc_u32_e32 v6, 1, v6
	v_add_co_u32 v1, vcc_lo, v1, 4
	v_add_co_ci_u32_e32 v2, vcc_lo, 0, v2, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_le_i32_e64 s0, s18, v6
	s_or_b32 s30, s0, s30
	s_waitcnt vmcnt(0)
	v_add_f32_e32 v4, v4, v17
	ds_store_b32 v3, v4
	v_add_nc_u32_e32 v3, 4, v3
	s_and_not1_b32 exec_lo, exec_lo, s30
	s_cbranch_execnz .LBB0_8
; %bb.9:                                ; %.preheader
                                        ;   in Loop: Header=BB0_6 Depth=3
	s_or_b32 exec_lo, exec_lo, s30
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s25
	s_mov_b32 s0, s24
	s_mov_b32 s30, s18
	s_cbranch_vccnz .LBB0_11
.LBB0_10:                               ; %.lr.ph170
                                        ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ;       Parent Loop BB0_6 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	v_mov_b32_e32 v1, s0
	s_add_i32 s30, s30, 1
	s_add_i32 s0, s0, 4
	s_cmp_lt_i32 s30, s20
	ds_store_b32 v1, v4
	s_cbranch_scc1 .LBB0_10
.LBB0_11:                               ; %Flow272
                                        ;   in Loop: Header=BB0_6 Depth=3
	s_and_not1_saveexec_b32 s0, s29
	s_cbranch_execz .LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=3
	v_add_nc_u32_e32 v1, s23, v16
	v_lshlrev_b32_e32 v6, 2, v16
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v2, 31, v1
	v_lshlrev_b64 v[1:2], 2, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v1, vcc_lo, s4, v1
	v_add_co_ci_u32_e32 v2, vcc_lo, s5, v2, vcc_lo
	global_load_b128 v[1:4], v[1:2], off
	s_waitcnt vmcnt(0)
	v_add_f32_e32 v2, v1, v2
	v_add_f32_e32 v4, v3, v4
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_add_f32 v3, v3, v2 :: v_dual_add_f32 v4, v2, v4
	ds_store_b128 v6, v[1:4]
.LBB0_13:                               ; %._crit_edge
                                        ;   in Loop: Header=BB0_6 Depth=3
	s_or_b32 exec_lo, exec_lo, s0
	v_lshrrev_b32_e32 v1, 2, v16
	v_ashrrev_i32_e32 v2, 7, v16
	v_add_nc_u32_e32 v16, s26, v16
	v_add_nc_u32_e32 v5, s26, v5
	v_add_nc_u32_e32 v15, s27, v15
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_lshl_u32 v1, v1, v2, 2
	v_cmp_le_i32_e32 vcc_lo, s18, v16
	ds_store_b32 v1, v4 offset:32768
	s_or_b32 s28, vcc_lo, s28
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s28
	s_cbranch_execnz .LBB0_6
.LBB0_14:                               ; %Flow274
                                        ;   in Loop: Header=BB0_4 Depth=2
	s_or_b32 exec_lo, exec_lo, s22
	s_ashr_i32 s21, s21, 2
	s_mov_b32 s0, 0
	s_cmp_lt_i32 s21, 2
	s_cbranch_scc1 .LBB0_22
; %bb.15:                               ; %.lr.ph181.preheader
                                        ;   in Loop: Header=BB0_4 Depth=2
	s_mov_b32 s22, 0
.LBB0_16:                               ; %.lr.ph181
                                        ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_18 Depth 4
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_i32 s0, s22, 1
	s_mov_b32 s24, exec_lo
	s_lshr_b32 s23, s21, s0
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_i32_e64 s23, v0
	s_cbranch_execz .LBB0_19
; %bb.17:                               ; %.lr.ph177
                                        ;   in Loop: Header=BB0_16 Depth=3
	s_load_b32 s25, s[8:9], 0xc
	v_dual_mov_b32 v1, v10 :: v_dual_mov_b32 v2, v0
	s_mov_b32 s27, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s25, s25, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1)
	s_lshl_b32 s26, s25, 1
.LBB0_18:                               ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ;       Parent Loop BB0_16 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	v_add_nc_u32_e32 v3, 1, v1
	v_lshl_add_u32 v4, v1, s22, -1
	v_add_nc_u32_e32 v2, s25, v2
	v_add_nc_u32_e32 v1, s26, v1
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_lshl_add_u32 v3, v3, s22, -1
	v_ashrrev_i32_e32 v5, 5, v4
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cmp_le_i32_e32 vcc_lo, s23, v2
	v_ashrrev_i32_e32 v6, 5, v3
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_lshl_u32 v4, v5, v4, 2
	s_or_b32 s27, vcc_lo, s27
	v_add_lshl_u32 v3, v6, v3, 2
	ds_load_b32 v4, v4 offset:32768
	ds_load_b32 v5, v3 offset:32768
	s_waitcnt lgkmcnt(0)
	v_add_f32_e32 v4, v4, v5
	ds_store_b32 v3, v4 offset:32768
	s_and_not1_b32 exec_lo, exec_lo, s27
	s_cbranch_execnz .LBB0_18
.LBB0_19:                               ; %Flow267
                                        ;   in Loop: Header=BB0_16 Depth=3
	s_or_b32 exec_lo, exec_lo, s24
; %bb.20:                               ; %.loopexit162
                                        ;   in Loop: Header=BB0_16 Depth=3
	s_lshl_b32 s22, 4, s22
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_le_i32 s22, s21
	s_cbranch_scc0 .LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_16 Depth=3
	s_mov_b32 s22, s0
	s_branch .LBB0_16
.LBB0_22:                               ; %Flow269
                                        ;   in Loop: Header=BB0_4 Depth=2
	s_cmp_lt_i32 s0, 1
	s_cbranch_scc1 .LBB0_28
.LBB0_23:                               ; %.lr.ph189
                                        ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_25 Depth 4
	s_add_i32 s22, s0, -1
	s_mov_b32 s24, exec_lo
	s_lshl_b32 s23, -1, s22
	s_waitcnt lgkmcnt(0)
	s_add_i32 s23, s23, s21
	s_barrier
	s_ashr_i32 s23, s23, s0
	buffer_gl0_inv
	v_cmpx_gt_i32_e64 s23, v0
	s_cbranch_execz .LBB0_26
; %bb.24:                               ; %.lr.ph185
                                        ;   in Loop: Header=BB0_23 Depth=3
	s_load_b32 s25, s[8:9], 0xc
	v_dual_mov_b32 v1, v11 :: v_dual_mov_b32 v2, v0
	s_mov_b32 s27, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s25, s25, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1)
	s_lshl_b32 s26, s25, 1
.LBB0_25:                               ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ;       Parent Loop BB0_23 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	v_add_nc_u32_e32 v3, 1, v1
	v_lshl_add_u32 v4, v1, s22, -1
	v_add_nc_u32_e32 v2, s25, v2
	v_add_nc_u32_e32 v1, s26, v1
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_lshl_add_u32 v3, v3, s22, -1
	v_ashrrev_i32_e32 v5, 5, v4
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cmp_le_i32_e32 vcc_lo, s23, v2
	v_ashrrev_i32_e32 v6, 5, v3
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_lshl_u32 v4, v5, v4, 2
	s_or_b32 s27, vcc_lo, s27
	v_add_lshl_u32 v3, v6, v3, 2
	ds_load_b32 v4, v4 offset:32768
	ds_load_b32 v5, v3 offset:32768
	s_waitcnt lgkmcnt(0)
	v_add_f32_e32 v4, v4, v5
	ds_store_b32 v3, v4 offset:32768
	s_and_not1_b32 exec_lo, exec_lo, s27
	s_cbranch_execnz .LBB0_25
.LBB0_26:                               ; %Flow263
                                        ;   in Loop: Header=BB0_23 Depth=3
	s_or_b32 exec_lo, exec_lo, s24
; %bb.27:                               ; %.loopexit
                                        ;   in Loop: Header=BB0_23 Depth=3
	s_cmp_lt_i32 s0, 2
	s_mov_b32 s0, s22
	s_cbranch_scc0 .LBB0_23
.LBB0_28:                               ; %._crit_edge190
                                        ;   in Loop: Header=BB0_4 Depth=2
	s_mov_b32 s0, exec_lo
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_i32_e64 s20, v7
	s_cbranch_execz .LBB0_33
; %bb.29:                               ; %.lr.ph193
                                        ;   in Loop: Header=BB0_4 Depth=2
	s_load_b32 s22, s[8:9], 0xc
	v_dual_mov_b32 v1, v9 :: v_dual_mov_b32 v2, v7
	s_mov_b32 s24, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s23, s22, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1)
	s_lshl_b32 s22, s23, 2
	s_lshl_b32 s23, s23, 4
.LBB0_30:                               ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_mov_b32 s25, exec_lo
	v_cmpx_ne_u32_e32 0, v2
	s_cbranch_execz .LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=3
	v_ashrrev_i32_e32 v3, 2, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v3, -1, v3
	v_ashrrev_i32_e32 v4, 5, v3
	s_delay_alu instid0(VALU_DEP_1)
	v_add_lshl_u32 v15, v4, v3, 2
	ds_load_b128 v[3:6], v1
	ds_load_b32 v15, v15 offset:32768
	s_waitcnt lgkmcnt(0)
	v_add_f32_e32 v4, v15, v4
	v_add_f32_e32 v3, v15, v3
	v_add_f32_e32 v5, v15, v5
	v_add_f32_e32 v6, v15, v6
	ds_store_b128 v1, v[3:6]
.LBB0_32:                               ;   in Loop: Header=BB0_30 Depth=3
	s_or_b32 exec_lo, exec_lo, s25
	v_add_nc_u32_e32 v2, s22, v2
	v_add_nc_u32_e32 v1, s23, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_cmp_le_i32_e32 vcc_lo, s20, v2
	s_or_b32 s24, vcc_lo, s24
	s_and_not1_b32 exec_lo, exec_lo, s24
	s_cbranch_execnz .LBB0_30
.LBB0_33:                               ; %Flow261
                                        ;   in Loop: Header=BB0_4 Depth=2
	s_or_b32 exec_lo, exec_lo, s0
; %bb.34:                               ; %._crit_edge194
                                        ;   in Loop: Header=BB0_4 Depth=2
	v_cmp_gt_i32_e32 vcc_lo, s19, v0
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	s_and_saveexec_b32 s19, vcc_lo
	s_cbranch_execz .LBB0_37
; %bb.35:                               ; %.lr.ph197
                                        ;   in Loop: Header=BB0_4 Depth=2
	s_load_b32 s0, s[8:9], 0xc
	v_dual_mov_b32 v1, v7 :: v_dual_mov_b32 v2, v0
	s_mov_b32 s23, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s20, s0, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1)
	s_lshl_b32 s22, s20, 2
.LBB0_36:                               ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ds_load_b32 v5, v1
	v_add_nc_u32_e32 v3, s16, v2
	v_add_nc_u32_e32 v2, s20, v2
	v_add_nc_u32_e32 v1, s22, v1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v4, 31, v3
	v_lshlrev_b64 v[3:4], 2, v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v3, s0, s6, v3
	v_add_co_ci_u32_e64 v4, s0, s7, v4, s0
	s_waitcnt lgkmcnt(0)
	v_add_f32_e32 v5, v13, v5
	v_cmp_le_i32_e32 vcc_lo, s18, v2
	global_store_b32 v[3:4], v5, off
	s_or_b32 s23, vcc_lo, s23
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s23
	s_cbranch_execnz .LBB0_36
.LBB0_37:                               ; %Flow259
                                        ;   in Loop: Header=BB0_4 Depth=2
	s_or_b32 exec_lo, exec_lo, s19
	s_add_i32 s21, s21, -1
	s_addk_i32 s14, 0x2000
	s_ashr_i32 s0, s21, 5
	s_addk_i32 s17, 0xe000
	s_add_i32 s0, s0, s21
	s_addk_i32 s16, 0x2000
	s_lshl_b32 s0, s0, 2
	s_cmp_ge_i32 s14, s3
	v_dual_mov_b32 v1, s0 :: v_dual_add_nc_u32 v12, 0x2000, v12
	ds_load_b32 v1, v1 offset:32768
	s_waitcnt lgkmcnt(0)
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	v_add_f32_e32 v1, v14, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f32_e32 v2, v13, v1
	v_sub_f32_e32 v3, v2, v13
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_mov_b32 v13, v2 :: v_dual_sub_f32 v14, v1, v3
	s_cbranch_scc0 .LBB0_4
.LBB0_38:                               ; %._crit_edge203
                                        ;   in Loop: Header=BB0_2 Depth=1
	v_add_nc_u32_e32 v8, s1, v8
	s_add_i32 s15, s10, s15
	s_add_i32 s11, s11, s1
	s_cmp_ge_i32 s15, s2
	s_cbranch_scc0 .LBB0_2
.LBB0_39:                               ; %._crit_edge205
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z12cumsumKerneliiPKfPf
		.amdhsa_group_segment_fixed_size 41216
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 18
		.amdhsa_next_free_sgpr 31
		.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	_Z12cumsumKerneliiPKfPf, .Lfunc_end0-_Z12cumsumKerneliiPKfPf
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1548
; NumSgprs: 33
; NumVgprs: 18
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 41216 bytes/workgroup (compile time only)
; SGPRBlocks: 4
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 33
; NumVGPRsForWavesPerEU: 18
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z18binarysearchKerneliiiPKfS0_Pi ; -- Begin function _Z18binarysearchKerneliiiPKfS0_Pi
	.globl	_Z18binarysearchKerneliiiPKfS0_Pi
	.p2align	8
	.type	_Z18binarysearchKerneliiiPKfS0_Pi,@function
_Z18binarysearchKerneliiiPKfS0_Pi:      ; @_Z18binarysearchKerneliiiPKfS0_Pi
; %bb.0:
	s_clause 0x1
	s_load_b256 s[4:11], s[0:1], 0x0
	s_load_b64 s[2:3], s[0:1], 0x20
	s_mov_b32 s12, 1
.LBB1_1:                                ; =>This Inner Loop Header: Depth=1
	s_waitcnt lgkmcnt(0)
	s_mov_b32 s7, s12
	s_lshl_b32 s12, s12, 1
	s_cmp_lt_i32 s7, s5
	s_cbranch_scc1 .LBB1_1
; %bb.2:
	s_cmp_ge_i32 s14, s4
	s_cbranch_scc1 .LBB1_17
; %bb.3:                                ; %.lr.ph54
	s_clause 0x1
	s_load_b32 s17, s[0:1], 0x34
	s_load_b32 s16, s[0:1], 0x28
	s_add_u32 s12, s0, 40
	s_addc_u32 s13, s1, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s17, s17, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1)
	v_mad_u64_u32 v[1:2], null, s15, s17, v[0:1]
	s_add_i32 s15, s5, -1
	s_cmp_gt_i32 s7, 0
	s_cselect_b32 s18, -1, 0
	s_add_u32 s19, s8, -4
	s_addc_u32 s20, s9, -1
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_gt_i32_e64 s0, s6, v1
.LBB1_4:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB1_6 Depth 2
                                        ;       Child Loop BB1_8 Depth 3
	s_delay_alu instid0(VALU_DEP_1)
	s_and_saveexec_b32 s21, s0
	s_cbranch_execz .LBB1_15
; %bb.5:                                ; %.lr.ph50
                                        ;   in Loop: Header=BB1_4 Depth=1
	s_mul_i32 s22, s14, s5
	s_load_b32 s1, s[12:13], 0x4
	s_add_i32 s24, s22, s5
	v_mov_b32_e32 v0, v1
	s_ashr_i32 s25, s24, 31
	s_mov_b32 s26, 0
	s_lshl_b64 s[24:25], s[24:25], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s24, s19, s24
	s_addc_u32 s25, s20, s25
	s_load_b32 s23, s[24:25], 0x0
	s_mul_i32 s24, s14, s6
	s_waitcnt lgkmcnt(0)
	s_mul_i32 s25, s1, s17
.LBB1_6:                                ;   Parent Loop BB1_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB1_8 Depth 3
	v_add_nc_u32_e32 v2, s24, v0
	v_mov_b32_e32 v4, s15
	s_and_not1_b32 vcc_lo, exec_lo, s18
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[2:3], 2, v[2:3]
	s_cbranch_vccnz .LBB1_14
; %bb.7:                                ; %.lr.ph.preheader
                                        ;   in Loop: Header=BB1_6 Depth=2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, s10, v2
	v_add_co_ci_u32_e32 v5, vcc_lo, s11, v3, vcc_lo
	s_mov_b32 s1, s7
	global_load_b32 v4, v[4:5], off
	s_waitcnt vmcnt(0)
	v_dual_mul_f32 v5, s23, v4 :: v_dual_mov_b32 v4, s15
.LBB1_8:                                ; %.lr.ph
                                        ;   Parent Loop BB1_4 Depth=1
                                        ;     Parent Loop BB1_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_mov_b32 s27, exec_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_le_i32_e64 s1, v4
	s_cbranch_execz .LBB1_12
; %bb.9:                                ;   in Loop: Header=BB1_8 Depth=3
	v_add_nc_u32_e32 v6, s22, v4
	s_mov_b32 s28, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_subrev_nc_u32_e32 v6, s1, v6
	v_ashrrev_i32_e32 v7, 31, v6
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[6:7], 2, v[6:7]
	v_add_co_u32 v6, vcc_lo, s8, v6
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v7, vcc_lo, s9, v7, vcc_lo
	global_load_b32 v6, v[6:7], off
	s_waitcnt vmcnt(0)
	v_cmpx_ge_f32_e32 v6, v5
; %bb.10:                               ;   in Loop: Header=BB1_8 Depth=3
	v_subrev_nc_u32_e32 v4, s1, v4
; %bb.11:                               ; %Flow
                                        ;   in Loop: Header=BB1_8 Depth=3
	s_or_b32 exec_lo, exec_lo, s28
.LBB1_12:                               ;   in Loop: Header=BB1_8 Depth=3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s27
	s_lshr_b32 s27, s1, 1
	s_cmp_lt_u32 s1, 2
	s_cbranch_scc1 .LBB1_14
; %bb.13:                               ;   in Loop: Header=BB1_8 Depth=3
	s_mov_b32 s1, s27
	s_branch .LBB1_8
.LBB1_14:                               ; %._crit_edge
                                        ;   in Loop: Header=BB1_6 Depth=2
	v_add_nc_u32_e32 v0, s25, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v2, s1, s2, v2
	v_add_co_ci_u32_e64 v3, s1, s3, v3, s1
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	v_cmp_le_i32_e32 vcc_lo, s6, v0
	global_store_b32 v[2:3], v4, off
	s_or_b32 s26, vcc_lo, s26
	s_and_not1_b32 exec_lo, exec_lo, s26
	s_cbranch_execnz .LBB1_6
.LBB1_15:                               ; %Flow68
                                        ;   in Loop: Header=BB1_4 Depth=1
	s_or_b32 exec_lo, exec_lo, s21
; %bb.16:                               ; %._crit_edge51
                                        ;   in Loop: Header=BB1_4 Depth=1
	s_add_i32 s14, s16, s14
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_ge_i32 s14, s4
	s_cbranch_scc0 .LBB1_4
.LBB1_17:                               ; %._crit_edge55
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z18binarysearchKerneliiiPKfS0_Pi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.amdhsa_user_sgpr_count 14
		.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 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 8
		.amdhsa_next_free_sgpr 29
		.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	_Z18binarysearchKerneliiiPKfS0_Pi, .Lfunc_end1-_Z18binarysearchKerneliiiPKfS0_Pi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 488
; NumSgprs: 31
; NumVgprs: 8
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 3
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 31
; NumVGPRsForWavesPerEU: 8
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z17gatherpointKerneliiiiPKfPKiPf ; -- Begin function _Z17gatherpointKerneliiiiPKfPKiPf
	.globl	_Z17gatherpointKerneliiiiPKfPKiPf
	.p2align	8
	.type	_Z17gatherpointKerneliiiiPKfPKiPf,@function
_Z17gatherpointKerneliiiiPKfPKiPf:      ; @_Z17gatherpointKerneliiiiPKfPKiPf
; %bb.0:
	s_clause 0x1
	s_load_b32 s8, s[0:1], 0x34
	s_load_b128 s[4:7], s[0:1], 0x0
	s_add_u32 s2, s0, 40
	s_addc_u32 s3, s1, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s16, s8, 0xffff
	s_mul_i32 s8, s7, s6
	v_mad_u64_u32 v[1:2], null, s15, s16, v[0:1]
	s_mul_i32 s4, s8, s4
	s_mov_b32 s6, exec_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_gt_i32_e64 s4, v1
	s_cbranch_execz .LBB2_3
; %bb.1:                                ; %.lr.ph
	s_ashr_i32 s6, s8, 31
	s_ashr_i32 s12, s7, 31
	s_add_i32 s8, s8, s6
	s_add_i32 s9, s7, s12
	s_xor_b32 s13, s8, s6
	s_xor_b32 s14, s9, s12
	v_cvt_f32_u32_e32 v0, s13
	v_cvt_f32_u32_e32 v2, s14
	s_load_b32 s15, s[2:3], 0x0
	s_sub_i32 s2, 0, s13
	s_sub_i32 s3, 0, s14
	v_rcp_iflag_f32_e32 v0, v0
	v_rcp_iflag_f32_e32 v2, v2
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v0, 0x4f7ffffe, v0
	v_mul_f32_e32 v2, 0x4f7ffffe, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cvt_u32_f32_e32 v0, v0
	v_cvt_u32_f32_e32 v2, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v3, s2, v0
	v_mul_lo_u32 v4, s3, v2
	s_clause 0x1
	s_load_b128 s[8:11], s[0:1], 0x10
	s_load_b64 s[2:3], s[0:1], 0x20
	s_waitcnt lgkmcnt(0)
	s_mul_i32 s1, s15, s16
	s_mov_b32 s15, 0
	v_mul_hi_u32 v3, v0, v3
	v_mul_hi_u32 v4, v2, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v0, v0, v3
	v_add_nc_u32_e32 v3, v2, v4
.LBB2_2:                                ; =>This Inner Loop Header: Depth=1
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v4, v1, v2
	v_xor_b32_e32 v6, v4, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v4, v6, v3
	v_mul_lo_u32 v5, v4, s14
	v_add_nc_u32_e32 v7, 1, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v5, v6, v5
	v_subrev_nc_u32_e32 v8, s14, v5
	v_cmp_le_u32_e32 vcc_lo, s14, v5
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_dual_cndmask_b32 v4, v4, v7 :: v_dual_cndmask_b32 v5, v5, v8
	v_xor_b32_e32 v8, s12, v2
	v_add_nc_u32_e32 v7, 1, v4
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_le_u32_e32 vcc_lo, s14, v5
	v_cndmask_b32_e32 v4, v4, v7, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_xor_b32_e32 v7, v4, v8
	v_sub_nc_u32_e32 v4, v7, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v5, 31, v4
	v_lshlrev_b64 v[4:5], 2, v[4:5]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, s10, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s11, v5, vcc_lo
	global_load_b32 v4, v[4:5], off
	v_mul_hi_u32 v5, v6, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v9, v5, s13
	v_sub_nc_u32_e32 v6, v6, v9
	v_add_nc_u32_e32 v9, 1, v5
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v10, s13, v6
	v_cmp_le_u32_e32 vcc_lo, s13, v6
	v_dual_cndmask_b32 v5, v5, v9 :: v_dual_cndmask_b32 v6, v6, v10
	v_xor_b32_e32 v10, s6, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_nc_u32_e32 v9, 1, v5
	v_cmp_le_u32_e32 vcc_lo, s13, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v5, v5, v9, vcc_lo
	v_xor_b32_e32 v5, v5, v10
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v5, v5, v10
	v_mul_lo_u32 v5, v5, s5
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add3_u32 v4, v4, v8, v5
	v_sub_nc_u32_e32 v6, v4, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[4:5], null, s7, v6, v[1:2]
	v_ashrrev_i32_e32 v5, 31, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[4:5], 2, v[4:5]
	v_add_co_u32 v4, vcc_lo, s8, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v5, vcc_lo, s9, v5, vcc_lo
	global_load_b32 v6, v[4:5], off
	v_lshlrev_b64 v[4:5], 2, v[1:2]
	v_add_nc_u32_e32 v1, s1, v1
	v_cmp_le_i32_e32 vcc_lo, s4, v1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v4, s0, s2, v4
	v_add_co_ci_u32_e64 v5, s0, s3, v5, s0
	s_or_b32 s15, vcc_lo, s15
	s_waitcnt vmcnt(0)
	global_store_b32 v[4:5], v6, off
	s_and_not1_b32 exec_lo, exec_lo, s15
	s_cbranch_execnz .LBB2_2
.LBB2_3:                                ; %Flow40
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z17gatherpointKerneliiiiPKfPKiPf
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 11
		.amdhsa_next_free_sgpr 17
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end2:
	.size	_Z17gatherpointKerneliiiiPKfPKiPf, .Lfunc_end2-_Z17gatherpointKerneliiiiPKfPKiPf
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 620
; NumSgprs: 19
; NumVgprs: 11
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 19
; NumVGPRsForWavesPerEU: 11
; 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	_Z21scatteraddpointKerneliiiiPKfPKiPf ; -- Begin function _Z21scatteraddpointKerneliiiiPKfPKiPf
	.globl	_Z21scatteraddpointKerneliiiiPKfPKiPf
	.p2align	8
	.type	_Z21scatteraddpointKerneliiiiPKfPKiPf,@function
_Z21scatteraddpointKerneliiiiPKfPKiPf:  ; @_Z21scatteraddpointKerneliiiiPKfPKiPf
; %bb.0:
	s_clause 0x1
	s_load_b32 s8, s[0:1], 0x34
	s_load_b128 s[4:7], s[0:1], 0x0
	s_add_u32 s2, s0, 40
	s_addc_u32 s3, s1, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s16, s8, 0xffff
	s_mul_i32 s8, s7, s6
	v_mad_u64_u32 v[1:2], null, s15, s16, v[0:1]
	s_mul_i32 s4, s8, s4
	s_mov_b32 s6, exec_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_gt_i32_e64 s4, v1
	s_cbranch_execz .LBB3_5
; %bb.1:                                ; %.lr.ph
	s_ashr_i32 s6, s8, 31
	s_ashr_i32 s12, s7, 31
	s_add_i32 s8, s8, s6
	s_add_i32 s9, s7, s12
	s_xor_b32 s13, s8, s6
	s_xor_b32 s14, s9, s12
	v_cvt_f32_u32_e32 v0, s13
	v_cvt_f32_u32_e32 v2, s14
	s_load_b32 s2, s[2:3], 0x0
	s_sub_i32 s3, 0, s13
	s_sub_i32 s8, 0, s14
	v_rcp_iflag_f32_e32 v0, v0
	v_rcp_iflag_f32_e32 v2, v2
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v0, 0x4f7ffffe, v0
	v_mul_f32_e32 v2, 0x4f7ffffe, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cvt_u32_f32_e32 v0, v0
	v_cvt_u32_f32_e32 v2, v2
	s_waitcnt lgkmcnt(0)
	s_mul_i32 s2, s2, s16
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v3, s3, v0
	v_mul_lo_u32 v4, s8, v2
	s_clause 0x1
	s_load_b128 s[8:11], s[0:1], 0x10
	s_load_b64 s[0:1], s[0:1], 0x20
	s_mov_b32 s3, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_hi_u32 v3, v0, v3
	v_mul_hi_u32 v4, v2, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v0, v0, v3
	v_add_nc_u32_e32 v6, v2, v4
.LBB3_2:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB3_3 Depth 2
	v_ashrrev_i32_e32 v2, 31, v1
	s_mov_b32 s15, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v3, v1, v2
	v_xor_b32_e32 v7, v3, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v3, v7, v6
	v_mul_lo_u32 v4, v3, s14
	v_add_nc_u32_e32 v5, 1, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v4, v7, v4
	v_subrev_nc_u32_e32 v8, s14, v4
	v_cmp_le_u32_e32 vcc_lo, s14, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_dual_cndmask_b32 v4, v4, v8 :: v_dual_cndmask_b32 v3, v3, v5
	v_xor_b32_e32 v8, s12, v2
	v_cmp_le_u32_e32 vcc_lo, s14, v4
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v5, 1, v3
	v_cndmask_b32_e32 v3, v3, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_xor_b32_e32 v3, v3, v8
	v_sub_nc_u32_e32 v3, v3, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v4, 31, v3
	v_lshlrev_b64 v[4:5], 2, v[3:4]
	v_mul_lo_u32 v3, v3, s7
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s10, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s11, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v3, v1, v3
	global_load_b32 v4, v[4:5], off
	v_mul_hi_u32 v5, v7, v0
	v_mul_lo_u32 v8, v5, s13
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_sub_nc_u32_e32 v7, v7, v8
	v_add_nc_u32_e32 v8, 1, v5
	v_subrev_nc_u32_e32 v9, s13, v7
	v_cmp_le_u32_e32 vcc_lo, s13, v7
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e32 v5, v5, v8, vcc_lo
	v_cndmask_b32_e32 v7, v7, v9, vcc_lo
	v_xor_b32_e32 v9, s6, v2
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_nc_u32_e32 v8, 1, v5
	v_cmp_le_u32_e32 vcc_lo, s13, v7
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v5, v5, v8, vcc_lo
	v_xor_b32_e32 v5, v5, v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v5, v5, v9
	s_waitcnt vmcnt(0)
	v_mad_u64_u32 v[7:8], null, v5, s5, v[4:5]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[4:5], null, v7, s7, v[3:4]
	v_lshlrev_b64 v[2:3], 2, v[1:2]
	v_add_co_u32 v7, vcc_lo, s8, v2
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v5, 31, v4
	v_add_co_ci_u32_e32 v8, vcc_lo, s9, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[4:5], 2, v[4:5]
	v_add_co_u32 v2, vcc_lo, s0, v4
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s1, v5, vcc_lo
	global_load_b32 v7, v[7:8], off
	global_load_b32 v5, v[2:3], off
.LBB3_3:                                ; %atomicrmw.start
                                        ;   Parent Loop BB3_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_waitcnt vmcnt(0)
	v_add_f32_e32 v4, v5, v7
	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 s15, vcc_lo, s15
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s15
	s_cbranch_execnz .LBB3_3
; %bb.4:                                ; %atomicrmw.end
                                        ;   in Loop: Header=BB3_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s15
	v_add_nc_u32_e32 v1, s2, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_cmp_le_i32_e32 vcc_lo, s4, v1
	s_or_b32 s3, vcc_lo, s3
	s_and_not1_b32 exec_lo, exec_lo, s3
	s_cbranch_execnz .LBB3_2
.LBB3_5:                                ; %Flow40
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z21scatteraddpointKerneliiiiPKfPKiPf
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 10
		.amdhsa_next_free_sgpr 17
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end3:
	.size	_Z21scatteraddpointKerneliiiiPKfPKiPf, .Lfunc_end3-_Z21scatteraddpointKerneliiiiPKfPKiPf
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 668
; NumSgprs: 19
; NumVgprs: 10
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 19
; NumVGPRsForWavesPerEU: 10
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z18GatherByMaskKerneliiiiPKfS0_Pf ; -- Begin function _Z18GatherByMaskKerneliiiiPKfS0_Pf
	.globl	_Z18GatherByMaskKerneliiiiPKfS0_Pf
	.p2align	8
	.type	_Z18GatherByMaskKerneliiiiPKfS0_Pf,@function
_Z18GatherByMaskKerneliiiiPKfS0_Pf:     ; @_Z18GatherByMaskKerneliiiiPKfS0_Pf
; %bb.0:
	s_load_b128 s[4:7], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_cmp_ge_i32 s15, s4
	s_cbranch_scc1 .LBB4_23
; %bb.1:                                ; %.lr.ph70
	s_cmp_gt_i32 s5, 0
	s_mul_i32 s21, s7, s6
	s_cselect_b32 s3, -1, 0
	s_add_u32 s12, s0, 40
	s_addc_u32 s13, s1, 0
	s_ashr_i32 s2, s6, 31
	s_mov_b32 s19, 0
	s_add_i32 s8, s6, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_xor_b32 s14, s8, s2
	s_clause 0x2
	s_load_b128 s[8:11], s[0:1], 0x10
	s_load_b64 s[16:17], s[0:1], 0x20
	s_load_b32 s20, s[0:1], 0x28
	v_cvt_f32_u32_e32 v1, s14
	s_sub_i32 s2, 0, s14
	v_cmp_gt_i32_e64 s0, s6, v0
	v_cmp_gt_i32_e64 s1, s21, v0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_iflag_f32_e32 v1, v1
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v1, 0x4f7ffffe, v1
	v_cvt_u32_f32_e32 v1, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v2, s2, v1
	v_mul_hi_u32 v2, v1, v2
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_mov_b32 v3, 0 :: v_dual_add_nc_u32 v4, v1, v2
.LBB4_2:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB4_4 Depth 2
                                        ;       Child Loop BB4_9 Depth 3
                                        ;       Child Loop BB4_16 Depth 3
	s_and_not1_b32 vcc_lo, exec_lo, s3
	s_cbranch_vccnz .LBB4_22
; %bb.3:                                ; %.lr.ph65.preheader
                                        ;   in Loop: Header=BB4_2 Depth=1
	s_mul_i32 s24, s15, s5
	s_mul_i32 s28, s21, s15
	s_mul_i32 s22, s24, s6
	s_mov_b32 s26, 0
	s_ashr_i32 s23, s22, 31
	s_mov_b32 s18, s26
	s_lshl_b64 s[22:23], s[22:23], 2
	s_waitcnt lgkmcnt(0)
	s_add_u32 s22, s8, s22
	s_addc_u32 s23, s9, s23
	s_ashr_i32 s25, s24, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b64 s[24:25], s[24:25], 2
	s_add_u32 s24, s10, s24
	s_addc_u32 s25, s11, s25
	s_ashr_i32 s29, s28, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b64 s[28:29], s[28:29], 2
	s_add_u32 s27, s16, s28
	s_addc_u32 s28, s17, s29
	s_mov_b32 s29, 0
.LBB4_4:                                ; %.lr.ph65
                                        ;   Parent Loop BB4_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB4_9 Depth 3
                                        ;       Child Loop BB4_16 Depth 3
	s_lshl_b64 s[30:31], s[18:19], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s30, s24, s30
	s_addc_u32 s31, s25, s31
	global_load_b32 v1, v3, s[30:31]
	s_mov_b32 s30, -1
	s_waitcnt vmcnt(0)
	v_cvt_i32_f32_e32 v1, v1
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_eq_u32_e32 vcc_lo, 0, v1
	s_cbranch_vccnz .LBB4_11
; %bb.5:                                ;   in Loop: Header=BB4_4 Depth=2
	s_cmp_lg_u32 s29, s7
	s_mov_b32 s2, 0
	s_cbranch_scc0 .LBB4_19
; %bb.6:                                ;   in Loop: Header=BB4_4 Depth=2
	s_cmp_lg_u32 s29, 0
	s_cbranch_scc0 .LBB4_12
; %bb.7:                                ;   in Loop: Header=BB4_4 Depth=2
	s_and_saveexec_b32 s31, s0
	s_cbranch_execz .LBB4_10
; %bb.8:                                ; %.lr.ph
                                        ;   in Loop: Header=BB4_4 Depth=2
	s_load_b32 s2, s[12:13], 0xc
	v_mov_b32_e32 v1, v0
	s_mul_i32 s33, s29, s6
	s_mov_b32 s35, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s34, s2, 0xffff
.LBB4_9:                                ;   Parent Loop BB4_2 Depth=1
                                        ;     Parent Loop BB4_4 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	v_add_nc_u32_e32 v5, s26, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v6, 31, v5
	v_lshlrev_b64 v[5:6], 2, v[5:6]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v5, vcc_lo, s22, v5
	v_add_co_ci_u32_e32 v6, vcc_lo, s23, v6, vcc_lo
	global_load_b32 v2, v[5:6], off
	v_add_nc_u32_e32 v5, s33, v1
	v_add_nc_u32_e32 v1, s34, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v6, 31, v5
	v_cmp_le_i32_e32 vcc_lo, s6, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[5:6], 2, v[5:6]
	s_or_b32 s35, vcc_lo, s35
	v_add_co_u32 v5, s2, s27, v5
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v6, s2, s28, v6, s2
	s_waitcnt vmcnt(0)
	global_store_b32 v[5:6], v2, off
	s_and_not1_b32 exec_lo, exec_lo, s35
	s_cbranch_execnz .LBB4_9
.LBB4_10:                               ; %Flow93
                                        ;   in Loop: Header=BB4_4 Depth=2
	s_or_b32 exec_lo, exec_lo, s31
	s_mov_b32 s2, 0
	s_waitcnt_vscnt null, 0x0
	s_barrier
	s_branch .LBB4_13
.LBB4_11:                               ;   in Loop: Header=BB4_4 Depth=2
	s_mov_b32 s2, -1
	s_branch .LBB4_19
.LBB4_12:                               ;   in Loop: Header=BB4_4 Depth=2
	s_mov_b32 s2, -1
.LBB4_13:                               ; %Flow96
                                        ;   in Loop: Header=BB4_4 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_b32 vcc_lo, exec_lo, s2
	s_cbranch_vccz .LBB4_18
; %bb.14:                               ;   in Loop: Header=BB4_4 Depth=2
	s_and_saveexec_b32 s31, s1
	s_cbranch_execz .LBB4_17
; %bb.15:                               ; %.lr.ph59
                                        ;   in Loop: Header=BB4_4 Depth=2
	s_load_b32 s2, s[12:13], 0xc
	v_mov_b32_e32 v1, v0
	s_mul_i32 s33, s18, s6
	s_mov_b32 s35, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s34, s2, 0xffff
.LBB4_16:                               ;   Parent Loop BB4_2 Depth=1
                                        ;     Parent Loop BB4_4 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v5, v1, v2
	v_xor_b32_e32 v5, v5, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v6, v5, v4
	v_mul_lo_u32 v6, v6, s14
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v5, v5, v6
	v_subrev_nc_u32_e32 v6, s14, v5
	v_cmp_le_u32_e32 vcc_lo, s14, v5
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v5, v5, v6, vcc_lo
	v_subrev_nc_u32_e32 v6, s14, v5
	v_cmp_le_u32_e32 vcc_lo, s14, v5
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v5, v5, v6, vcc_lo
	v_xor_b32_e32 v5, v5, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v5, v5, v2
	v_add_nc_u32_e32 v5, s33, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v6, 31, v5
	v_lshlrev_b64 v[5:6], 2, v[5:6]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v5, vcc_lo, s22, v5
	v_add_co_ci_u32_e32 v6, vcc_lo, s23, v6, vcc_lo
	global_load_b32 v7, v[5:6], off
	v_lshlrev_b64 v[5:6], 2, v[1:2]
	v_add_nc_u32_e32 v1, s34, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cmp_le_i32_e32 vcc_lo, s21, v1
	v_add_co_u32 v5, s2, s27, v5
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v6, s2, s28, v6, s2
	s_or_b32 s35, vcc_lo, s35
	s_waitcnt vmcnt(0)
	global_store_b32 v[5:6], v7, off
	s_and_not1_b32 exec_lo, exec_lo, s35
	s_cbranch_execnz .LBB4_16
.LBB4_17:                               ; %Flow95
                                        ;   in Loop: Header=BB4_4 Depth=2
	s_or_b32 exec_lo, exec_lo, s31
	s_waitcnt_vscnt null, 0x0
	s_barrier
.LBB4_18:                               ;   in Loop: Header=BB4_4 Depth=2
	s_add_i32 s29, s29, 1
	s_mov_b32 s2, -1
	buffer_gl0_inv
.LBB4_19:                               ; %Flow99
                                        ;   in Loop: Header=BB4_4 Depth=2
	s_and_b32 vcc_lo, exec_lo, s2
	s_cbranch_vccz .LBB4_21
; %bb.20:                               ;   in Loop: Header=BB4_4 Depth=2
	s_add_i32 s18, s18, 1
	s_add_i32 s26, s26, s6
	s_cmp_eq_u32 s18, s5
	s_cselect_b32 s30, -1, 0
.LBB4_21:                               ; %Flow101
                                        ;   in Loop: Header=BB4_4 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s30
	s_cbranch_vccnz .LBB4_4
.LBB4_22:                               ; %._crit_edge66
                                        ;   in Loop: Header=BB4_2 Depth=1
	s_waitcnt lgkmcnt(0)
	s_add_i32 s15, s20, s15
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_ge_i32 s15, s4
	s_cbranch_scc0 .LBB4_2
.LBB4_23:                               ; %._crit_edge71
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z18GatherByMaskKerneliiiiPKfS0_Pf
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 8
		.amdhsa_next_free_sgpr 36
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end4:
	.size	_Z18GatherByMaskKerneliiiiPKfS0_Pf, .Lfunc_end4-_Z18GatherByMaskKerneliiiiPKfS0_Pf
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 856
; NumSgprs: 38
; NumVgprs: 8
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 4
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 38
; NumVGPRsForWavesPerEU: 8
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.section	.text._Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi,"axG",@progbits,_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi,comdat
	.protected	_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi ; -- Begin function _Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi
	.globl	_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi
	.p2align	8
	.type	_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi,@function
_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi: ; @_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi
; %bb.0:
	s_load_b128 s[4:7], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_cmp_lt_i32 s7, 1
	s_cbranch_scc1 .LBB5_30
; %bb.1:
	s_cmp_ge_i32 s15, s4
	s_cbranch_scc1 .LBB5_30
; %bb.2:                                ; %.lr.ph116
	s_clause 0x2
	s_load_b32 s14, s[0:1], 0x28
	s_load_b128 s[8:11], s[0:1], 0x10
	s_load_b64 s[12:13], s[0:1], 0x20
	s_mul_i32 s20, s15, s5
	v_dual_mov_b32 v2, 0 :: v_dual_lshlrev_b32 v9, 2, v0
	v_add_nc_u32_e32 v1, s20, v0
	v_dual_mov_b32 v11, 0x7e967699 :: v_dual_lshlrev_b32 v10, 1, v0
	s_add_u32 s16, s0, 40
	s_addc_u32 s17, s1, 0
	s_delay_alu instid0(VALU_DEP_2)
	v_mul_lo_u32 v14, s6, v1
	s_cmp_lg_u32 s7, 1
	v_cmp_eq_u32_e64 s2, 0, v0
	v_cmp_gt_i32_e64 s3, s5, v0
	v_or_b32_e32 v12, 0x1000, v9
	v_or_b32_e32 v13, 1, v10
	s_cselect_b32 s21, -1, 0
	s_cmp_gt_i32 s6, 0
	s_mov_b32 s25, s20
	s_waitcnt lgkmcnt(0)
	s_mul_i32 s22, s14, s5
	s_cselect_b32 s23, -1, 0
	s_mul_i32 s24, s22, s6
.LBB5_3:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB5_7 Depth 2
                                        ;     Child Loop BB5_10 Depth 2
                                        ;       Child Loop BB5_12 Depth 3
                                        ;         Child Loop BB5_14 Depth 4
                                        ;       Child Loop BB5_22 Depth 3
	s_and_saveexec_b32 s0, s2
	s_cbranch_execz .LBB5_5
; %bb.4:                                ;   in Loop: Header=BB5_3 Depth=1
	s_mul_i32 s18, s15, s7
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_ashr_i32 s19, s18, 31
	s_lshl_b64 s[18:19], s[18:19], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s18, s12, s18
	s_addc_u32 s19, s13, s19
	global_store_b32 v2, v2, s[18:19]
.LBB5_5:                                ;   in Loop: Header=BB5_3 Depth=1
	s_or_b32 exec_lo, exec_lo, s0
	s_and_saveexec_b32 s1, s3
	s_cbranch_execz .LBB5_8
; %bb.6:                                ; %.lr.ph
                                        ;   in Loop: Header=BB5_3 Depth=1
	s_load_b32 s0, s[16:17], 0xc
	v_mov_b32_e32 v3, v0
	s_mov_b32 s19, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s18, s0, 0xffff
.LBB5_7:                                ;   Parent Loop BB5_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v1, s20, v3
	v_add_nc_u32_e32 v3, s18, v3
	v_lshlrev_b64 v[4:5], 2, v[1:2]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cmp_le_i32_e32 vcc_lo, s5, v3
	s_or_b32 s19, vcc_lo, s19
	v_add_co_u32 v4, s0, s10, v4
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v5, s0, s11, v5, s0
	global_store_b32 v[4:5], v11, off
	s_and_not1_b32 exec_lo, exec_lo, s19
	s_cbranch_execnz .LBB5_7
.LBB5_8:                                ; %Flow150
                                        ;   in Loop: Header=BB5_3 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s21
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_cbranch_vccnz .LBB5_29
; %bb.9:                                ; %.preheader.lr.ph
                                        ;   in Loop: Header=BB5_3 Depth=1
	s_load_b32 s0, s[16:17], 0xc
	s_mov_b32 s27, 1
	s_mul_i32 s29, s15, s7
	s_waitcnt lgkmcnt(0)
	s_and_b32 s26, s0, 0xffff
	s_mov_b32 s0, 0
	s_cmp_gt_u32 s26, 1
	s_mul_i32 s30, s6, s26
	s_cselect_b32 s28, -1, 0
.LBB5_10:                               ; %.preheader
                                        ;   Parent Loop BB5_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB5_12 Depth 3
                                        ;         Child Loop BB5_14 Depth 4
                                        ;       Child Loop BB5_22 Depth 3
	v_dual_mov_b32 v15, 0 :: v_dual_mov_b32 v16, -1.0
	s_and_saveexec_b32 s31, s3
	s_cbranch_execz .LBB5_20
; %bb.11:                               ; %.lr.ph103
                                        ;   in Loop: Header=BB5_10 Depth=2
	s_add_i32 s0, s25, s0
	v_dual_mov_b32 v15, 0 :: v_dual_mov_b32 v16, -1.0
	s_mul_i32 s0, s6, s0
	v_mov_b32_e32 v3, v14
	s_ashr_i32 s1, s0, 31
	v_mov_b32_e32 v17, v0
	s_lshl_b64 s[0:1], s[0:1], 2
	s_mov_b32 s33, 0
	s_add_u32 s0, s8, s0
	s_addc_u32 s1, s9, s1
.LBB5_12:                               ;   Parent Loop BB5_3 Depth=1
                                        ;     Parent Loop BB5_10 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB5_14 Depth 4
	v_add_nc_u32_e32 v1, s20, v17
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[5:6], 2, v[1:2]
	v_add_co_u32 v5, vcc_lo, s10, v5
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v6, vcc_lo, s11, v6, vcc_lo
	s_and_not1_b32 vcc_lo, exec_lo, s23
	global_load_b32 v1, v[5:6], off
	s_cbranch_vccnz .LBB5_15
; %bb.13:                               ; %.lr.ph98
                                        ;   in Loop: Header=BB5_12 Depth=3
	v_ashrrev_i32_e32 v4, 31, v3
	s_mov_b64 s[18:19], s[0:1]
	s_mov_b32 s34, s6
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[7:8], 2, v[3:4]
	v_mov_b32_e32 v4, 0
	v_add_co_u32 v7, vcc_lo, s8, v7
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v8, vcc_lo, s9, v8, vcc_lo
.LBB5_14:                               ;   Parent Loop BB5_3 Depth=1
                                        ;     Parent Loop BB5_10 Depth=2
                                        ;       Parent Loop BB5_12 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	global_load_b32 v18, v[7:8], off
	s_load_b32 s35, s[18:19], 0x0
	v_add_co_u32 v7, vcc_lo, v7, 4
	s_add_i32 s34, s34, -1
	v_add_co_ci_u32_e32 v8, vcc_lo, 0, v8, vcc_lo
	s_add_u32 s18, s18, 4
	s_addc_u32 s19, s19, 0
	s_cmp_eq_u32 s34, 0
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_subrev_f32_e32 v18, s35, v18
	s_delay_alu instid0(VALU_DEP_1)
	v_fmac_f32_e32 v4, v18, v18
	s_cbranch_scc0 .LBB5_14
	s_branch .LBB5_16
.LBB5_15:                               ;   in Loop: Header=BB5_12 Depth=3
	v_mov_b32_e32 v4, 0
.LBB5_16:                               ; %Flow144
                                        ;   in Loop: Header=BB5_12 Depth=3
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_dual_max_f32 v7, v1, v1 :: v_dual_max_f32 v4, v4, v4
	s_mov_b32 s18, exec_lo
	v_min_f32_e32 v4, v4, v7
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_neq_f32_e32 v4, v1
	s_cbranch_execz .LBB5_18
; %bb.17:                               ;   in Loop: Header=BB5_12 Depth=3
	global_store_b32 v[5:6], v4, off
.LBB5_18:                               ;   in Loop: Header=BB5_12 Depth=3
	s_or_b32 exec_lo, exec_lo, s18
	v_cmp_gt_f32_e32 vcc_lo, v4, v16
	v_dual_cndmask_b32 v16, v16, v4 :: v_dual_add_nc_u32 v3, s30, v3
	v_cndmask_b32_e32 v15, v15, v17, vcc_lo
	v_add_nc_u32_e32 v17, s26, v17
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_cmp_le_i32_e32 vcc_lo, s5, v17
	s_or_b32 s33, vcc_lo, s33
	s_and_not1_b32 exec_lo, exec_lo, s33
	s_cbranch_execnz .LBB5_12
; %bb.19:                               ; %Flow145
                                        ;   in Loop: Header=BB5_10 Depth=2
	s_or_b32 exec_lo, exec_lo, s33
.LBB5_20:                               ; %Flow146
                                        ;   in Loop: Header=BB5_10 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s31
	s_and_not1_b32 vcc_lo, exec_lo, s28
	ds_store_b32 v9, v16
	ds_store_b32 v12, v15
	s_cbranch_vccnz .LBB5_26
; %bb.21:                               ; %.lr.ph109.preheader
                                        ;   in Loop: Header=BB5_10 Depth=2
	s_mov_b32 s0, 0
.LBB5_22:                               ; %.lr.ph109
                                        ;   Parent Loop BB5_3 Depth=1
                                        ;     Parent Loop BB5_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s1, s0
	s_add_i32 s0, s0, 1
	s_waitcnt lgkmcnt(0)
	s_waitcnt_vscnt null, 0x0
	s_lshr_b32 s18, s26, s0
	s_barrier
	v_cmp_gt_u32_e32 vcc_lo, s18, v0
	buffer_gl0_inv
	s_and_saveexec_b32 s18, vcc_lo
	s_cbranch_execz .LBB5_25
; %bb.23:                               ;   in Loop: Header=BB5_22 Depth=3
	v_lshlrev_b32_e32 v1, s1, v10
	v_lshlrev_b32_e32 v3, s1, v13
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b32_e32 v1, 2, v1
	v_lshlrev_b32_e32 v3, 2, v3
	ds_load_b32 v5, v1
	ds_load_b32 v4, v3
	s_waitcnt lgkmcnt(0)
	v_cmp_lt_f32_e32 vcc_lo, v5, v4
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB5_25
; %bb.24:                               ;   in Loop: Header=BB5_22 Depth=3
	ds_load_b32 v3, v3 offset:4096
	s_waitcnt lgkmcnt(0)
	ds_store_2addr_stride64_b32 v1, v4, v3 offset1:16
.LBB5_25:                               ;   in Loop: Header=BB5_22 Depth=3
	s_or_b32 exec_lo, exec_lo, s18
	s_lshl_b32 s1, 2, s1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_ge_u32 s1, s26
	s_cbranch_scc0 .LBB5_22
.LBB5_26:                               ; %._crit_edge110
                                        ;   in Loop: Header=BB5_10 Depth=2
	s_waitcnt lgkmcnt(0)
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	ds_load_b32 v1, v2 offset:4096
	s_waitcnt lgkmcnt(0)
	v_readfirstlane_b32 s0, v1
	s_and_saveexec_b32 s1, s2
	s_cbranch_execz .LBB5_28
; %bb.27:                               ;   in Loop: Header=BB5_10 Depth=2
	s_add_i32 s18, s27, s29
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_mov_b32_e32 v1, s0
	s_ashr_i32 s19, s18, 31
	s_lshl_b64 s[18:19], s[18:19], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s18, s12, s18
	s_addc_u32 s19, s13, s19
	global_store_b32 v2, v1, s[18:19]
.LBB5_28:                               ;   in Loop: Header=BB5_10 Depth=2
	s_or_b32 exec_lo, exec_lo, s1
	s_add_i32 s27, s27, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s27, s7
	s_cbranch_scc0 .LBB5_10
.LBB5_29:                               ; %._crit_edge113
                                        ;   in Loop: Header=BB5_3 Depth=1
	v_add_nc_u32_e32 v14, s24, v14
	s_add_i32 s15, s14, s15
	s_add_i32 s25, s25, s22
	s_cmp_ge_i32 s15, s4
	s_cbranch_scc0 .LBB5_3
.LBB5_30:                               ; %.loopexit
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi
		.amdhsa_group_segment_fixed_size 8192
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 19
		.amdhsa_next_free_sgpr 36
		.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
	.section	.text._Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi,"axG",@progbits,_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi,comdat
.Lfunc_end5:
	.size	_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi, .Lfunc_end5-_Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1020
; NumSgprs: 38
; NumVgprs: 19
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 8192 bytes/workgroup (compile time only)
; SGPRBlocks: 4
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 38
; NumVGPRsForWavesPerEU: 19
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.section	.text._Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi,"axG",@progbits,_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi,comdat
	.protected	_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi ; -- Begin function _Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi
	.globl	_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi
	.p2align	8
	.type	_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi,@function
_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi: ; @_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi
; %bb.0:
	s_load_b128 s[4:7], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_cmp_lt_i32 s6, 1
	s_cbranch_scc1 .LBB6_26
; %bb.1:
	s_cmp_ge_i32 s15, s4
	s_cbranch_scc1 .LBB6_26
; %bb.2:                                ; %.lr.ph92
	s_clause 0x2
	s_load_b32 s7, s[0:1], 0x28
	s_load_b128 s[8:11], s[0:1], 0x10
	s_load_b64 s[12:13], s[0:1], 0x20
	v_dual_mov_b32 v2, 0 :: v_dual_lshlrev_b32 v5, 2, v0
	v_dual_mov_b32 v7, 0x7e967699 :: v_dual_lshlrev_b32 v6, 1, v0
	s_add_u32 s16, s0, 40
	v_cmp_eq_u32_e64 s2, 0, v0
	v_cmp_gt_i32_e64 s3, s5, v0
	s_addc_u32 s17, s1, 0
	v_or_b32_e32 v8, 0x1000, v5
	v_or_b32_e32 v9, 1, v6
	s_cmp_lg_u32 s6, 1
	s_mul_i32 s14, s15, s5
	s_cselect_b32 s1, -1, 0
	s_mov_b32 s21, s14
	s_waitcnt lgkmcnt(0)
	s_mul_i32 s20, s7, s5
.LBB6_3:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB6_7 Depth 2
                                        ;     Child Loop BB6_10 Depth 2
                                        ;       Child Loop BB6_12 Depth 3
                                        ;       Child Loop BB6_18 Depth 3
	s_mul_i32 s18, s15, s6
	s_and_saveexec_b32 s0, s2
	s_cbranch_execz .LBB6_5
; %bb.4:                                ;   in Loop: Header=BB6_3 Depth=1
	s_ashr_i32 s19, s18, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b64 s[22:23], s[18:19], 2
	s_add_u32 s22, s12, s22
	s_addc_u32 s23, s13, s23
	global_store_b32 v2, v2, s[22:23]
.LBB6_5:                                ;   in Loop: Header=BB6_3 Depth=1
	s_or_b32 exec_lo, exec_lo, s0
	s_and_saveexec_b32 s19, s3
	s_cbranch_execz .LBB6_8
; %bb.6:                                ; %.lr.ph
                                        ;   in Loop: Header=BB6_3 Depth=1
	s_load_b32 s0, s[16:17], 0xc
	v_mov_b32_e32 v3, v0
	s_mov_b32 s23, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s22, s0, 0xffff
.LBB6_7:                                ;   Parent Loop BB6_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v1, s14, v3
	v_add_nc_u32_e32 v3, s22, v3
	v_lshlrev_b64 v[10:11], 2, v[1:2]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cmp_le_i32_e32 vcc_lo, s5, v3
	s_or_b32 s23, vcc_lo, s23
	v_add_co_u32 v10, s0, s10, v10
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v11, s0, s11, v11, s0
	global_store_b32 v[10:11], v7, off
	s_and_not1_b32 exec_lo, exec_lo, s23
	s_cbranch_execnz .LBB6_7
.LBB6_8:                                ; %Flow109
                                        ;   in Loop: Header=BB6_3 Depth=1
	s_or_b32 exec_lo, exec_lo, s19
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s1
	s_waitcnt_vscnt null, 0x0
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	s_cbranch_vccnz .LBB6_25
; %bb.9:                                ; %.preheader.lr.ph
                                        ;   in Loop: Header=BB6_3 Depth=1
	s_load_b32 s0, s[16:17], 0xc
	v_mov_b32_e32 v1, 0
	s_mov_b32 s23, 1
	s_waitcnt lgkmcnt(0)
	s_and_b32 s19, s0, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_gt_u32 s19, 1
	s_cselect_b32 s22, -1, 0
.LBB6_10:                               ; %.preheader
                                        ;   Parent Loop BB6_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB6_12 Depth 3
                                        ;       Child Loop BB6_18 Depth 3
	v_dual_mov_b32 v10, -1.0 :: v_dual_mov_b32 v11, 0
	s_and_saveexec_b32 s24, s3
	s_cbranch_execz .LBB6_16
; %bb.11:                               ; %.lr.ph80
                                        ;   in Loop: Header=BB6_10 Depth=2
	s_waitcnt lgkmcnt(0)
	v_dual_mov_b32 v10, -1.0 :: v_dual_add_nc_u32 v1, s21, v1
	v_mov_b32_e32 v11, 0
	v_mov_b32_e32 v13, v0
	s_mov_b32 s25, 0
	s_delay_alu instid0(VALU_DEP_3)
	v_mul_lo_u32 v12, s5, v1
.LBB6_12:                               ;   Parent Loop BB6_3 Depth=1
                                        ;     Parent Loop BB6_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v3, v12, v13
	v_add_nc_u32_e32 v1, s14, v13
	s_mov_b32 s0, exec_lo
	v_ashrrev_i32_e32 v4, 31, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[14:15], 2, v[1:2]
	v_lshlrev_b64 v[3:4], 2, v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v16, vcc_lo, s8, v3
	v_add_co_ci_u32_e32 v17, vcc_lo, s9, v4, vcc_lo
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v3, vcc_lo, s10, v14
	v_add_co_ci_u32_e32 v4, vcc_lo, s11, v15, vcc_lo
	global_load_b32 v1, v[16:17], off
	global_load_b32 v14, v[3:4], off
	s_waitcnt vmcnt(1)
	v_max_f32_e32 v1, v1, v1
	s_waitcnt vmcnt(0)
	v_max_f32_e32 v15, v14, v14
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_min_f32_e32 v1, v1, v15
	v_cmpx_neq_f32_e32 v1, v14
	s_cbranch_execz .LBB6_14
; %bb.13:                               ;   in Loop: Header=BB6_12 Depth=3
	global_store_b32 v[3:4], v1, off
.LBB6_14:                               ;   in Loop: Header=BB6_12 Depth=3
	s_or_b32 exec_lo, exec_lo, s0
	v_cmp_gt_f32_e32 vcc_lo, v1, v10
	v_cndmask_b32_e32 v11, v11, v13, vcc_lo
	v_add_nc_u32_e32 v13, s19, v13
	v_cndmask_b32_e32 v10, v10, v1, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_le_i32_e64 s0, s5, v13
	s_or_b32 s25, s0, s25
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s25
	s_cbranch_execnz .LBB6_12
; %bb.15:                               ; %Flow104
                                        ;   in Loop: Header=BB6_10 Depth=2
	s_or_b32 exec_lo, exec_lo, s25
.LBB6_16:                               ; %Flow105
                                        ;   in Loop: Header=BB6_10 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s24
	s_and_not1_b32 vcc_lo, exec_lo, s22
	ds_store_b32 v5, v10
	ds_store_b32 v8, v11
	s_cbranch_vccnz .LBB6_22
; %bb.17:                               ; %.lr.ph85.preheader
                                        ;   in Loop: Header=BB6_10 Depth=2
	s_mov_b32 s0, 0
.LBB6_18:                               ; %.lr.ph85
                                        ;   Parent Loop BB6_3 Depth=1
                                        ;     Parent Loop BB6_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s24, s0
	s_add_i32 s0, s0, 1
	s_waitcnt lgkmcnt(0)
	s_waitcnt_vscnt null, 0x0
	s_lshr_b32 s25, s19, s0
	s_barrier
	v_cmp_gt_u32_e32 vcc_lo, s25, v0
	buffer_gl0_inv
	s_and_saveexec_b32 s25, vcc_lo
	s_cbranch_execz .LBB6_21
; %bb.19:                               ;   in Loop: Header=BB6_18 Depth=3
	v_lshlrev_b32_e32 v1, s24, v6
	v_lshlrev_b32_e32 v3, s24, v9
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b32_e32 v1, 2, v1
	v_lshlrev_b32_e32 v3, 2, v3
	ds_load_b32 v10, v1
	ds_load_b32 v4, v3
	s_waitcnt lgkmcnt(0)
	v_cmp_lt_f32_e32 vcc_lo, v10, v4
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB6_21
; %bb.20:                               ;   in Loop: Header=BB6_18 Depth=3
	ds_load_b32 v3, v3 offset:4096
	s_waitcnt lgkmcnt(0)
	ds_store_2addr_stride64_b32 v1, v4, v3 offset1:16
.LBB6_21:                               ;   in Loop: Header=BB6_18 Depth=3
	s_or_b32 exec_lo, exec_lo, s25
	s_lshl_b32 s24, 2, s24
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_ge_u32 s24, s19
	s_cbranch_scc0 .LBB6_18
.LBB6_22:                               ; %._crit_edge86
                                        ;   in Loop: Header=BB6_10 Depth=2
	s_waitcnt lgkmcnt(0)
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	ds_load_b32 v1, v2 offset:4096
	s_and_saveexec_b32 s0, s2
	s_cbranch_execz .LBB6_24
; %bb.23:                               ;   in Loop: Header=BB6_10 Depth=2
	s_add_i32 s24, s23, s18
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_ashr_i32 s25, s24, 31
	s_lshl_b64 s[24:25], s[24:25], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s24, s12, s24
	s_addc_u32 s25, s13, s25
	s_waitcnt lgkmcnt(0)
	global_store_b32 v2, v1, s[24:25]
.LBB6_24:                               ;   in Loop: Header=BB6_10 Depth=2
	s_or_b32 exec_lo, exec_lo, s0
	s_add_i32 s23, s23, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s23, s6
	s_cbranch_scc0 .LBB6_10
.LBB6_25:                               ; %._crit_edge89
                                        ;   in Loop: Header=BB6_3 Depth=1
	s_add_i32 s15, s7, s15
	s_add_i32 s21, s21, s20
	s_cmp_ge_i32 s15, s4
	s_cbranch_scc0 .LBB6_3
.LBB6_26:                               ; %.loopexit
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi
		.amdhsa_group_segment_fixed_size 8192
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 18
		.amdhsa_next_free_sgpr 26
		.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
	.section	.text._Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi,"axG",@progbits,_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi,comdat
.Lfunc_end6:
	.size	_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi, .Lfunc_end6-_Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 892
; NumSgprs: 28
; NumVgprs: 18
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 8192 bytes/workgroup (compile time only)
; SGPRBlocks: 3
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 28
; NumVGPRsForWavesPerEU: 18
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.section	.text._Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi,"axG",@progbits,_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi,comdat
	.protected	_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi ; -- Begin function _Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi
	.globl	_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi
	.p2align	8
	.type	_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi,@function
_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi: ; @_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi
; %bb.0:
	s_load_b128 s[16:19], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_cmp_lt_i32 s19, 1
	s_cbranch_scc1 .LBB7_44
; %bb.1:
	s_load_b32 s3, s[0:1], 0x10
	s_cmp_ge_i32 s15, s16
	s_cbranch_scc1 .LBB7_44
; %bb.2:                                ; %.lr.ph197
	s_clause 0x1
	s_load_b32 s14, s[0:1], 0x38
	s_load_b256 s[4:11], s[0:1], 0x18
	s_mul_i32 s28, s15, s17
	s_add_u32 s12, s0, 56
	v_dual_mov_b32 v14, 0x7e967699 :: v_dual_add_nc_u32 v1, s28, v0
	s_addc_u32 s13, s1, 0
	v_dual_mov_b32 v2, 0 :: v_dual_lshlrev_b32 v9, 2, v0
	v_lshlrev_b32_e32 v10, 1, v0
	s_waitcnt lgkmcnt(0)
	s_cmp_gt_i32 s3, 0
	v_mul_lo_u32 v13, s18, v1
	s_cselect_b32 s29, -1, 0
	s_cmp_gt_i32 s18, 0
	v_cmp_gt_i32_e64 s2, s17, v0
	s_cselect_b32 s30, -1, 0
	s_cmp_gt_i32 s17, 0
	v_cmp_eq_u32_e64 s0, 0, v0
	v_or_b32_e32 v11, 0x1000, v9
	v_or_b32_e32 v12, 1, v10
	s_cselect_b32 s31, -1, 0
	s_cmp_lg_u32 s19, 1
	s_mul_i32 s33, s14, s17
	s_cselect_b32 s34, -1, 0
	s_mov_b32 s21, 0
	s_mul_i32 s35, s33, s18
	s_mov_b32 s36, s28
.LBB7_3:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB7_5 Depth 2
                                        ;     Child Loop BB7_7 Depth 2
                                        ;       Child Loop BB7_9 Depth 3
                                        ;         Child Loop BB7_11 Depth 4
                                        ;     Child Loop BB7_18 Depth 2
                                        ;     Child Loop BB7_24 Depth 2
                                        ;       Child Loop BB7_26 Depth 3
                                        ;         Child Loop BB7_28 Depth 4
                                        ;       Child Loop BB7_36 Depth 3
	s_and_saveexec_b32 s20, s2
	s_cbranch_execz .LBB7_16
; %bb.4:                                ; %.lr.ph
                                        ;   in Loop: Header=BB7_3 Depth=1
	s_load_b32 s1, s[12:13], 0xc
	v_mov_b32_e32 v3, v0
	s_mov_b32 s22, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s23, s1, 0xffff
.LBB7_5:                                ;   Parent Loop BB7_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v1, s28, v3
	v_add_nc_u32_e32 v3, s23, v3
	v_lshlrev_b64 v[4:5], 2, v[1:2]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cmp_le_i32_e32 vcc_lo, s17, v3
	s_or_b32 s22, vcc_lo, s22
	v_add_co_u32 v4, s1, s8, v4
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v5, s1, s9, v5, s1
	global_store_b32 v[4:5], v14, off
	s_and_not1_b32 exec_lo, exec_lo, s22
	s_cbranch_execnz .LBB7_5
; %bb.6:                                ; %.preheader156
                                        ;   in Loop: Header=BB7_3 Depth=1
	s_or_b32 exec_lo, exec_lo, s22
	s_load_b32 s1, s[12:13], 0xc
	v_dual_mov_b32 v3, v13 :: v_dual_mov_b32 v8, v0
	s_mul_i32 s25, s15, s3
	s_mov_b32 s27, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s24, s1, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mul_i32 s26, s18, s24
.LBB7_7:                                ; %.preheader155
                                        ;   Parent Loop BB7_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB7_9 Depth 3
                                        ;         Child Loop BB7_11 Depth 4
	s_and_not1_b32 vcc_lo, exec_lo, s29
	s_cbranch_vccnz .LBB7_14
; %bb.8:                                ; %.lr.ph163
                                        ;   in Loop: Header=BB7_7 Depth=2
	v_ashrrev_i32_e32 v4, 31, v3
	v_mov_b32_e32 v15, 0x7e967699
	s_mov_b32 s1, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[4:5], 2, v[3:4]
	v_add_co_u32 v4, vcc_lo, s4, v4
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v5, vcc_lo
.LBB7_9:                                ;   Parent Loop BB7_3 Depth=1
                                        ;     Parent Loop BB7_7 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB7_11 Depth 4
	s_and_not1_b32 vcc_lo, exec_lo, s30
	s_cbranch_vccnz .LBB7_12
; %bb.10:                               ; %.lr.ph160
                                        ;   in Loop: Header=BB7_9 Depth=3
	s_add_i32 s22, s1, s25
	s_delay_alu instid0(VALU_DEP_1)
	v_mov_b32_e32 v7, v5
	s_ashr_i32 s23, s22, 31
	v_dual_mov_b32 v1, 0 :: v_dual_mov_b32 v6, v4
	s_lshl_b64 s[22:23], s[22:23], 2
	s_mov_b32 s37, s18
	s_add_u32 s22, s6, s22
	s_addc_u32 s23, s7, s23
	s_load_b32 s22, s[22:23], 0x0
	s_waitcnt lgkmcnt(0)
	s_add_i32 s22, s36, s22
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_i32 s22, s18, s22
	s_ashr_i32 s23, s22, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b64 s[22:23], s[22:23], 2
	s_add_u32 s22, s4, s22
	s_addc_u32 s23, s5, s23
.LBB7_11:                               ;   Parent Loop BB7_3 Depth=1
                                        ;     Parent Loop BB7_7 Depth=2
                                        ;       Parent Loop BB7_9 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	global_load_b32 v16, v[6:7], off
	s_load_b32 s38, s[22:23], 0x0
	v_add_co_u32 v6, vcc_lo, v6, 4
	s_add_i32 s37, s37, -1
	v_add_co_ci_u32_e32 v7, vcc_lo, 0, v7, vcc_lo
	s_add_u32 s22, s22, 4
	s_addc_u32 s23, s23, 0
	s_cmp_eq_u32 s37, 0
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_subrev_f32_e32 v16, s38, v16
	s_delay_alu instid0(VALU_DEP_1)
	v_fmac_f32_e32 v1, v16, v16
	s_cbranch_scc0 .LBB7_11
	s_branch .LBB7_13
.LBB7_12:                               ;   in Loop: Header=BB7_9 Depth=3
	v_mov_b32_e32 v1, 0
.LBB7_13:                               ; %._crit_edge
                                        ;   in Loop: Header=BB7_9 Depth=3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_dual_max_f32 v1, v1, v1 :: v_dual_max_f32 v6, v15, v15
	s_add_i32 s1, s1, 1
	s_cmp_eq_u32 s1, s3
	s_delay_alu instid0(VALU_DEP_1)
	v_min_f32_e32 v15, v6, v1
	s_cbranch_scc0 .LBB7_9
	s_branch .LBB7_15
.LBB7_14:                               ;   in Loop: Header=BB7_7 Depth=2
	v_mov_b32_e32 v15, 0x7e967699
.LBB7_15:                               ; %._crit_edge164
                                        ;   in Loop: Header=BB7_7 Depth=2
	v_add_nc_u32_e32 v1, s28, v8
	v_add_nc_u32_e32 v8, s24, v8
	v_add_nc_u32_e32 v3, s26, v3
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[4:5], 2, v[1:2]
	v_cmp_le_i32_e32 vcc_lo, s17, v8
	s_or_b32 s27, vcc_lo, s27
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v4, s1, s8, v4
	v_add_co_ci_u32_e64 v5, s1, s9, v5, s1
	global_store_b32 v[4:5], v15, off
	s_and_not1_b32 exec_lo, exec_lo, s27
	s_cbranch_execnz .LBB7_7
.LBB7_16:                               ; %Flow266
                                        ;   in Loop: Header=BB7_3 Depth=1
	s_or_b32 exec_lo, exec_lo, s20
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s31
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_cbranch_vccnz .LBB7_19
; %bb.17:                               ; %.lr.ph172.preheader
                                        ;   in Loop: Header=BB7_3 Depth=1
	v_mov_b32_e32 v1, -1.0
	s_mov_b32 s22, 0
	s_mov_b32 s1, 0
.LBB7_18:                               ; %.lr.ph172
                                        ;   Parent Loop BB7_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_add_i32 s20, s28, s22
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b64 s[24:25], s[20:21], 2
	s_add_u32 s24, s8, s24
	s_addc_u32 s25, s9, s25
	global_load_b32 v3, v2, s[24:25]
	s_waitcnt vmcnt(0)
	v_cmp_lt_f32_e32 vcc_lo, v1, v3
	v_cndmask_b32_e32 v1, v1, v3, vcc_lo
	s_and_b32 s20, vcc_lo, exec_lo
	s_cselect_b32 s1, s22, s1
	s_add_i32 s22, s22, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s17, s22
	s_cbranch_scc0 .LBB7_18
	s_branch .LBB7_20
.LBB7_19:                               ;   in Loop: Header=BB7_3 Depth=1
	s_mov_b32 s1, 0
.LBB7_20:                               ; %Flow260
                                        ;   in Loop: Header=BB7_3 Depth=1
	s_mul_i32 s22, s15, s19
	s_and_saveexec_b32 s20, s0
	s_cbranch_execz .LBB7_22
; %bb.21:                               ;   in Loop: Header=BB7_3 Depth=1
	s_ashr_i32 s23, s22, 31
	v_mov_b32_e32 v1, s1
	s_lshl_b64 s[24:25], s[22:23], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s24, s10, s24
	s_addc_u32 s25, s11, s25
	global_store_b32 v2, v1, s[24:25]
.LBB7_22:                               ;   in Loop: Header=BB7_3 Depth=1
	s_or_b32 exec_lo, exec_lo, s20
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s34
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_cbranch_vccnz .LBB7_43
; %bb.23:                               ; %.preheader.lr.ph
                                        ;   in Loop: Header=BB7_3 Depth=1
	s_load_b32 s20, s[12:13], 0xc
	s_mov_b32 s37, 1
	s_waitcnt lgkmcnt(0)
	s_and_b32 s20, s20, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_gt_u32 s20, 1
	s_mul_i32 s38, s18, s20
	s_cselect_b32 s23, -1, 0
.LBB7_24:                               ; %.preheader
                                        ;   Parent Loop BB7_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB7_26 Depth 3
                                        ;         Child Loop BB7_28 Depth 4
                                        ;       Child Loop BB7_36 Depth 3
	v_dual_mov_b32 v15, -1.0 :: v_dual_mov_b32 v16, 0
	s_and_saveexec_b32 s39, s2
	s_cbranch_execz .LBB7_34
; %bb.25:                               ; %.lr.ph184
                                        ;   in Loop: Header=BB7_24 Depth=2
	s_add_i32 s1, s36, s1
	v_dual_mov_b32 v15, -1.0 :: v_dual_mov_b32 v16, 0
	s_mul_i32 s24, s18, s1
	v_mov_b32_e32 v3, v13
	s_ashr_i32 s25, s24, 31
	v_mov_b32_e32 v17, v0
	s_lshl_b64 s[24:25], s[24:25], 2
	s_mov_b32 s40, 0
	s_add_u32 s24, s4, s24
	s_addc_u32 s25, s5, s25
.LBB7_26:                               ;   Parent Loop BB7_3 Depth=1
                                        ;     Parent Loop BB7_24 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB7_28 Depth 4
	v_add_nc_u32_e32 v1, s28, v17
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[5:6], 2, v[1:2]
	v_add_co_u32 v5, vcc_lo, s8, v5
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v6, vcc_lo, s9, v6, vcc_lo
	s_and_not1_b32 vcc_lo, exec_lo, s30
	global_load_b32 v1, v[5:6], off
	s_cbranch_vccnz .LBB7_29
; %bb.27:                               ; %.lr.ph178
                                        ;   in Loop: Header=BB7_26 Depth=3
	v_ashrrev_i32_e32 v4, 31, v3
	s_mov_b64 s[26:27], s[24:25]
	s_mov_b32 s1, s18
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[7:8], 2, v[3:4]
	v_mov_b32_e32 v4, 0
	v_add_co_u32 v7, vcc_lo, s4, v7
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v8, vcc_lo, s5, v8, vcc_lo
.LBB7_28:                               ;   Parent Loop BB7_3 Depth=1
                                        ;     Parent Loop BB7_24 Depth=2
                                        ;       Parent Loop BB7_26 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	global_load_b32 v18, v[7:8], off
	s_load_b32 s41, s[26:27], 0x0
	v_add_co_u32 v7, vcc_lo, v7, 4
	s_add_i32 s1, s1, -1
	v_add_co_ci_u32_e32 v8, vcc_lo, 0, v8, vcc_lo
	s_add_u32 s26, s26, 4
	s_addc_u32 s27, s27, 0
	s_cmp_eq_u32 s1, 0
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_subrev_f32_e32 v18, s41, v18
	s_delay_alu instid0(VALU_DEP_1)
	v_fmac_f32_e32 v4, v18, v18
	s_cbranch_scc0 .LBB7_28
	s_branch .LBB7_30
.LBB7_29:                               ;   in Loop: Header=BB7_26 Depth=3
	v_mov_b32_e32 v4, 0
.LBB7_30:                               ; %Flow254
                                        ;   in Loop: Header=BB7_26 Depth=3
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_dual_max_f32 v7, v1, v1 :: v_dual_max_f32 v4, v4, v4
	s_mov_b32 s1, exec_lo
	v_min_f32_e32 v4, v4, v7
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_neq_f32_e32 v4, v1
	s_cbranch_execz .LBB7_32
; %bb.31:                               ;   in Loop: Header=BB7_26 Depth=3
	global_store_b32 v[5:6], v4, off
.LBB7_32:                               ;   in Loop: Header=BB7_26 Depth=3
	s_or_b32 exec_lo, exec_lo, s1
	v_cmp_gt_f32_e32 vcc_lo, v4, v15
	v_dual_cndmask_b32 v16, v16, v17 :: v_dual_add_nc_u32 v3, s38, v3
	v_cndmask_b32_e32 v15, v15, v4, vcc_lo
	v_add_nc_u32_e32 v17, s20, v17
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_le_i32_e64 s1, s17, v17
	s_or_b32 s40, s1, s40
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s40
	s_cbranch_execnz .LBB7_26
; %bb.33:                               ; %Flow255
                                        ;   in Loop: Header=BB7_24 Depth=2
	s_or_b32 exec_lo, exec_lo, s40
.LBB7_34:                               ; %Flow256
                                        ;   in Loop: Header=BB7_24 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s39
	s_and_not1_b32 vcc_lo, exec_lo, s23
	ds_store_b32 v9, v15
	ds_store_b32 v11, v16
	s_cbranch_vccnz .LBB7_40
; %bb.35:                               ; %.lr.ph190.preheader
                                        ;   in Loop: Header=BB7_24 Depth=2
	s_mov_b32 s1, 0
.LBB7_36:                               ; %.lr.ph190
                                        ;   Parent Loop BB7_3 Depth=1
                                        ;     Parent Loop BB7_24 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s24, s1
	s_add_i32 s1, s1, 1
	s_waitcnt lgkmcnt(0)
	s_waitcnt_vscnt null, 0x0
	s_lshr_b32 s25, s20, s1
	s_barrier
	v_cmp_gt_u32_e32 vcc_lo, s25, v0
	buffer_gl0_inv
	s_and_saveexec_b32 s25, vcc_lo
	s_cbranch_execz .LBB7_39
; %bb.37:                               ;   in Loop: Header=BB7_36 Depth=3
	v_lshlrev_b32_e32 v1, s24, v10
	v_lshlrev_b32_e32 v3, s24, v12
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b32_e32 v1, 2, v1
	v_lshlrev_b32_e32 v3, 2, v3
	ds_load_b32 v5, v1
	ds_load_b32 v4, v3
	s_waitcnt lgkmcnt(0)
	v_cmp_lt_f32_e32 vcc_lo, v5, v4
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB7_39
; %bb.38:                               ;   in Loop: Header=BB7_36 Depth=3
	ds_load_b32 v3, v3 offset:4096
	s_waitcnt lgkmcnt(0)
	ds_store_2addr_stride64_b32 v1, v4, v3 offset1:16
.LBB7_39:                               ;   in Loop: Header=BB7_36 Depth=3
	s_or_b32 exec_lo, exec_lo, s25
	s_lshl_b32 s24, 2, s24
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_ge_u32 s24, s20
	s_cbranch_scc0 .LBB7_36
.LBB7_40:                               ; %._crit_edge191
                                        ;   in Loop: Header=BB7_24 Depth=2
	s_waitcnt lgkmcnt(0)
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	ds_load_b32 v1, v2 offset:4096
	s_waitcnt lgkmcnt(0)
	v_readfirstlane_b32 s1, v1
	s_and_saveexec_b32 s24, s0
	s_cbranch_execz .LBB7_42
; %bb.41:                               ;   in Loop: Header=BB7_24 Depth=2
	s_add_i32 s26, s37, s22
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_mov_b32_e32 v1, s1
	s_ashr_i32 s27, s26, 31
	s_lshl_b64 s[26:27], s[26:27], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s26, s10, s26
	s_addc_u32 s27, s11, s27
	global_store_b32 v2, v1, s[26:27]
.LBB7_42:                               ;   in Loop: Header=BB7_24 Depth=2
	s_or_b32 exec_lo, exec_lo, s24
	s_add_i32 s37, s37, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s37, s19
	s_cbranch_scc0 .LBB7_24
.LBB7_43:                               ; %._crit_edge194
                                        ;   in Loop: Header=BB7_3 Depth=1
	v_add_nc_u32_e32 v13, s35, v13
	s_add_i32 s15, s14, s15
	s_add_i32 s36, s36, s33
	s_cmp_ge_i32 s15, s16
	s_cbranch_scc0 .LBB7_3
.LBB7_44:                               ; %.loopexit
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi
		.amdhsa_group_segment_fixed_size 8192
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 312
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 19
		.amdhsa_next_free_sgpr 42
		.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
	.section	.text._Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi,"axG",@progbits,_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi,comdat
.Lfunc_end7:
	.size	_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi, .Lfunc_end7-_Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1528
; NumSgprs: 44
; NumVgprs: 19
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 8192 bytes/workgroup (compile time only)
; SGPRBlocks: 5
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 44
; NumVGPRsForWavesPerEU: 19
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .offset:         4
        .size:           4
        .value_kind:     by_value
      - .actual_access:  read_only
        .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .actual_access:  write_only
        .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 41216
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z12cumsumKerneliiPKfPf
    .private_segment_fixed_size: 0
    .sgpr_count:     33
    .sgpr_spill_count: 0
    .symbol:         _Z12cumsumKerneliiPKfPf.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     18
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .offset:         4
        .size:           4
        .value_kind:     by_value
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .actual_access:  read_only
        .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .actual_access:  read_only
        .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .actual_access:  write_only
        .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         44
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         52
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         54
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         56
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         58
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         60
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         62
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         104
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 296
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z18binarysearchKerneliiiPKfS0_Pi
    .private_segment_fixed_size: 0
    .sgpr_count:     31
    .sgpr_spill_count: 0
    .symbol:         _Z18binarysearchKerneliiiPKfS0_Pi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     8
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .offset:         4
        .size:           4
        .value_kind:     by_value
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .actual_access:  read_only
        .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .actual_access:  read_only
        .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .actual_access:  write_only
        .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         44
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         52
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         54
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         56
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         58
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         60
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         62
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         104
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 296
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z17gatherpointKerneliiiiPKfPKiPf
    .private_segment_fixed_size: 0
    .sgpr_count:     19
    .sgpr_spill_count: 0
    .symbol:         _Z17gatherpointKerneliiiiPKfPKiPf.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     11
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .offset:         4
        .size:           4
        .value_kind:     by_value
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .actual_access:  read_only
        .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .actual_access:  read_only
        .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         44
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         52
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         54
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         56
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         58
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         60
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         62
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         104
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 296
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z21scatteraddpointKerneliiiiPKfPKiPf
    .private_segment_fixed_size: 0
    .sgpr_count:     19
    .sgpr_spill_count: 0
    .symbol:         _Z21scatteraddpointKerneliiiiPKfPKiPf.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     10
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .offset:         4
        .size:           4
        .value_kind:     by_value
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         44
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         52
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         54
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         56
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         58
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         60
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         62
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         104
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 296
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z18GatherByMaskKerneliiiiPKfS0_Pf
    .private_segment_fixed_size: 0
    .sgpr_count:     38
    .sgpr_spill_count: 0
    .symbol:         _Z18GatherByMaskKerneliiiiPKfS0_Pf.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     8
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .offset:         4
        .size:           4
        .value_kind:     by_value
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .actual_access:  read_only
        .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .actual_access:  write_only
        .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         44
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         52
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         54
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         56
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         58
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         60
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         62
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         104
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 8192
    .kernarg_segment_align: 8
    .kernarg_segment_size: 296
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi
    .private_segment_fixed_size: 0
    .sgpr_count:     38
    .sgpr_spill_count: 0
    .symbol:         _Z27farthestpointsamplingKernelILj1024EEviiiiPKfPfPi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     19
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .offset:         4
        .size:           4
        .value_kind:     by_value
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .actual_access:  read_only
        .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .actual_access:  write_only
        .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         44
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         52
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         54
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         56
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         58
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         60
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         62
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         104
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 8192
    .kernarg_segment_align: 8
    .kernarg_segment_size: 296
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi
    .private_segment_fixed_size: 0
    .sgpr_count:     28
    .sgpr_spill_count: 0
    .symbol:         _Z35farthestpointsamplingwithdistKernelILj1024EEviiiPKfPfPi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     18
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .offset:         4
        .size:           4
        .value_kind:     by_value
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .actual_access:  read_only
        .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .actual_access:  read_only
        .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .actual_access:  write_only
        .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .offset:         56
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         60
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         64
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         68
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         70
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         72
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         74
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         76
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         78
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         104
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         112
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         120
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 8192
    .kernarg_segment_align: 8
    .kernarg_segment_size: 312
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi
    .private_segment_fixed_size: 0
    .sgpr_count:     44
    .sgpr_spill_count: 0
    .symbol:         _Z37farthestpointsamplingwithpreidxKernelILj1024EEviiiiiPKfPKiPfPi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     19
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
