#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include<stdio.h>


// input: radius (1), nsample (1), xyz1 (b,n,3)
// output: idx (b,n,nsample)  
__global__ void query_ball_point_gpu(int b, int n, float radius, int nsample, const float *xyz1, int *idx) {
	int batch_idx = blockIdx.x;
	xyz1 +=batch_idx*n*3;
	idx += batch_idx*n*nsample;
	float judge_radius = radius * radius;
    for (int j=threadIdx.x;j<n;j+=blockDim.x) {
        int cnt = 0;
       	for (int l=0;l<nsample;++l)
         	idx[j*nsample+l] = j;
        float x1=xyz1[j*3+0];
        float y1=xyz1[j*3+1];
        float z1=xyz1[j*3+2]; 
        for (int k=0;k<n;++k) {   
            if (cnt == nsample)  //如果采集够点了
                break; // only pick the FIRST nsample points in the ball
            if (k==j)
            {
            	continue;
            }
            float x2=xyz1[k*3+0];
            float y2=xyz1[k*3+1];
            float z2=xyz1[k*3+2];
    	    float d=(x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)+(z2-z1)*(z2-z1);
            if (d<judge_radius) {
                idx[j*nsample+cnt] = k;
                cnt+=1;
            }
        }
    }
}
/*
__global__ void sampleKernel(int b, int n,const float *inp, float *result)  //<<<1,512>>> //inp:b*2048*8*3  out:(b,2048)
{
	float dot=0;
	int batch_idx = blockIdx.x;     //处理的batch_idx 
	inp +=batch_idx*n*24;
	for(int i=threadIdx.x;i<n;i+=blockDim.x) //每个block处理一个batch 每个thread处理一组点 i:0 512 1024 1536 
	{
        float temp_dot[8];
		result[batch_idx*n+i] = 0;
		for(int j=0;j<8;j++) //处理一个点
		{
            float x =inp[i*24+j*3+0];
            float y =inp[i*24+j*3+1];
            float z =inp[i*24+j*3+2];
            for(int num=j;num>-1;num--)
            {
            float x1=inp[i*24+num*3+0];
            float y1=inp[i*24+num*3+1];
            float z1=inp[i*24+num*3+2];
            dot = (x*x1+y*y1+z*z1);
            temp_dot[j] += dot;
            temp_dot[num] += dot;
            }
		}
        result[batch_idx*n+i] = temp_dot[0];
        for(int num=1;num<8;num++)
        {
            if(result[batch_idx*n+i]<temp_dot[num])
                result[batch_idx*n+i] = temp_dot[num];
        }

	}
}*/

__global__ void sampleKernel(int b, int n,const float *inp, float *result)  //<<<1,512>>> //inp:b*2048*8*3  out:(b,2048)
{
    float dot=0;
    int batch_idx = blockIdx.x;     //处理的batch_idx 
    float temp_dist = 0;
    float temp_dist1 = 0;
    inp +=batch_idx*n*18;
    for(int i=threadIdx.x;i<n;i+=blockDim.x) //每个block处理一个batch 每个thread处理一组点 i:0 512 1024 1536 
    {
        result[batch_idx*n+i] = 0;
        float x=0;
        float y=0;
        float z=0;
        for(int j=0; j<6;j++)
        {
            x +=inp[i*18+j*3+0];
            y +=inp[i*18+j*3+1];
            z +=inp[i*18+j*3+2];
        }
        x =x/6;
        y =y/6;
        z =z/6;
        for(int j=0;j<6;j++) //处理一个点
        {
            float x1=inp[i*18+j*3+0];
            float y1=inp[i*18+j*3+1];
            float z1=inp[i*18+j*3+2];
            temp_dist1 = (x1*x1+y1*y1+z1*z1);
            if(temp_dist1 != 0)
            {
                dot = (x*x1+y*y1+z*z1)/temp_dist1;
                result[batch_idx*n+i] += dot;
            }
        }   
    }

}    

__global__ void knnKernel(int b, int n,const float *xyz, int *idx_out)  //<<<1,512>>> //inp:b*2048*3  out:(b,2048,6)
{
    int batch_idx = blockIdx.x;     //处理的batch_idx 
    xyz +=batch_idx*n*3;
    idx_out +=batch_idx*n*6;
    for(int i=threadIdx.x;i<n;i+=blockDim.x) //每个block处理一个batch 每个thread处理一组点 i:0 512 1024 1536 
    {
        float temp_dist[6]={1e8,1e8,1e8,1e8,1e8,1e8};
        int first_idx = 0;
        float x=xyz[i*3+0];
        float y=xyz[i*3+1];
        float z=xyz[i*3+2];
        for(int j=0;j<n;j++)
        {
            if(i==j) continue;
            float tx = xyz[j * 3];
            float ty = xyz[j * 3 + 1];
            float tz = xyz[j * 3 + 2];
            float dist = (x - tx) * (x - tx) + (y - ty) * (y - ty) + (z - tz) * (z - tz);
            if(dist < temp_dist[first_idx]) 
            {
                idx_out[i*6+first_idx] = j;
                temp_dist[first_idx] = dist;    
                for(int num=0;num<6;num++)
                {
                    if(temp_dist[first_idx]<temp_dist[num])
                        first_idx = num;
                }
            }
        }
    }
}


__global__ void cube_select(int b, int n,float radius, const float* xyz, int* idx_out) {
    int batch_idx = blockIdx.x;     //b:batch_size n:points_num radius: r xyz:(b,n,3) idx_out(b,n,8)
    xyz += batch_idx * n * 3;       //指向指定要处理的批次 每个block处理一个batch 
    idx_out += batch_idx * n * 8;
    float temp_dist[8];     
    float judge_dist = radius * radius;
    for(int i = threadIdx.x; i < n;i += blockDim.x) { //这里处理一个批次，如果有1024个点 则每个线程会重复这个循环两次 
        float x = xyz[i * 3];      //指定点
        float y = xyz[i * 3 + 1];
        float z = xyz[i * 3 + 2];
        for(int j = 0;j < 8;j ++) {
            temp_dist[j] = 1e8; //初始化距离
            idx_out[i * 8 + j] = i; // if not found, just return itself..  //这里先默认把索引点为自己
        }
        for(int j = 0;j < n;j ++) {    //遍历该batch下的所有点
            if(i == j) continue;
            float tx = xyz[j * 3];
            float ty = xyz[j * 3 + 1];
            float tz = xyz[j * 3 + 2];
            float dist = (x - tx) * (x - tx) + (y - ty) * (y - ty) + (z - tz) * (z - tz);
            if(dist > judge_dist) continue; //如果距离超过规定的距离 继续循环
            int _x = (tx > x);              //
            int _y = (ty > y);
            int _z = (tz > z);
            int temp_idx = _x * 4 + _y * 2 + _z; //存放的位置
            if(dist < temp_dist[temp_idx]) {
                idx_out[i * 8 + temp_idx] = j;
                temp_dist[temp_idx] = dist;
            }
        }
    }
}

__global__ void group_point_gpu(int b, int n, int c, int m, int nsample, const float *points, const int *idx, float *out) {
    int batch_index = blockIdx.x;
    points += n*c*batch_index;
    idx += m*nsample*batch_index;
    out += m*nsample*c*batch_index;

    int index = threadIdx.x;
    int stride = blockDim.x;
    
    for (int j=index;j<m;j+=stride) {
        for (int k=0;k<nsample;++k) {
            int ii = idx[j*nsample+k];
            for (int l=0;l<c;++l) {
                out[j*nsample*c+k*c+l] = points[ii*c+l];
            }
        }
    }
}
__global__ void gather_point(int b, int n, int nsamples, const int* idx, const float* xyz, float* result) {   //idx(b,nsamples) xyz(b,n,3) result(b,nasmples,3)
    int batch_index = blockIdx.x;
    idx += batch_index*nsamples;
    xyz += batch_index*n*3;
    result += batch_index*nsamples*3;
    for(int i = threadIdx.x; i<nsamples;i +=blockDim.x)
    {   
        int j = idx[i];
        result[i*3+0] = xyz[j*3];
        result[i*3+1] = xyz[j*3+1];
        result[i*3+2] = xyz[j*3+2];
    }

}

__global__ void gatherpointKernel(int b,int n,int m,const float * __restrict__ inp,const int * __restrict__ idx,float * __restrict__ out){
  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){
      int a=idx[i*m+j];
      out[(i*m+j)*3+0]=inp[(i*n+a)*3+0];
      out[(i*m+j)*3+1]=inp[(i*n+a)*3+1];
      out[(i*m+j)*3+2]=inp[(i*n+a)*3+2];
    }
  }
}

__global__ void farthestpointsamplingKernel(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];
  const int BufferSize=3072;
  __shared__ float buf[BufferSize*3];
  for (int i=blockIdx.x;i<b;i+=gridDim.x){
    int old=0;
    if (threadIdx.x==0)
      idxs[i*m+0]=old;
    for (int j=threadIdx.x;j<n;j+=blockDim.x){
      temp[blockIdx.x*n+j]=1e38;
    }
    for (int j=threadIdx.x;j<min(BufferSize,n)*3;j+=blockDim.x){
      buf[j]=dataset[i*n*3+j];
    }
    __syncthreads();
    for (int j=1;j<m;j++){
      int besti=0;
      float best=-1;
      float x1=dataset[i*n*3+old*3+0];
      float y1=dataset[i*n*3+old*3+1];
      float z1=dataset[i*n*3+old*3+2];
      for (int k=threadIdx.x;k<n;k+=blockDim.x){
        float td=temp[blockIdx.x*n+k];
        float x2,y2,z2;
        if (k<BufferSize){
          x2=buf[k*3+0];
          y2=buf[k*3+1];
          z2=buf[k*3+2];
        }else{
          x2=dataset[i*n*3+k*3+0];
          y2=dataset[i*n*3+k*3+1];
          z2=dataset[i*n*3+k*3+2];
        }
        float d=(x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)+(z2-z1)*(z2-z1);
        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;
    }
  }
}

void sample(int b, int n,const float *inp, float *result)
{
	sampleKernel<<<b,512>>>(b,n, inp,result);
}
void cubeSelectLauncher(int b, int n, float radius, const float* xyz, int* idx_out) {
    cube_select<<<b, 512>>>(b, n, radius, xyz, idx_out);
}

void groupPointLauncher(int b, int n, int c, int m, int nsample, const float *points, const int *idx, float *out){
    group_point_gpu<<<b,256>>>(b,n,c,m,nsample,points,idx,out);
    //cudaDeviceSynchronize();
}
void queryBallPointLauncher(int b, int n, float radius, int nsample, const float *xyz1, int *idx) {
    query_ball_point_gpu<<<b,512>>>(b,n,radius,nsample,xyz1,idx);
    //cudaDeviceSynchronize();
}
void knn(int b, int n,const float *xyz, int *idx_out)  
{
    knnKernel<<<b,512>>>(b,n,xyz,idx_out);
}
void gather_pointLauncher(int b, int n, int nsamples, const int* idx, const float* xyz, float* result)
{
    gather_point<<<b,512>>>(b,n,nsamples,idx,xyz,result);
}
void farthestpointsamplingLauncher(int b,int n,int m,const float * inp,float * temp,int * out){
  farthestpointsamplingKernel<<<32,512>>>(b,n,m,inp,temp,out);
}

void gatherpointLauncher(int b,int n,int m,const float * inp,const int * idx,float * out){
  gatherpointKernel<<<dim3(2,8,1),512>>>(b,n,m,inp,idx,out);
}
	.file	"tmpxft_003525e8_00000000-6_cuda_test.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2037:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2037:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z47__device_stub__Z20query_ball_point_gpuiifiPKfPiiifiPKfPi
	.type	_Z47__device_stub__Z20query_ball_point_gpuiifiPKfPiiifiPKfPi, @function
_Z47__device_stub__Z20query_ball_point_gpuiifiPKfPiiifiPKfPi:
.LFB2059:
	.cfi_startproc
	endbr64
	subq	$168, %rsp
	.cfi_def_cfa_offset 176
	movl	%edi, 28(%rsp)
	leaq	56(%rsp), %rdi
	movl	%esi, 24(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 16(%rsp)
	leaq	40(%rsp), %rdx
	movq	%rcx, 8(%rsp)
	leaq	48(%rsp), %rcx
	movq	%r8, (%rsp)
	movss	%xmm0, 20(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 136(%rsp)
	movq	%rsp, %rax
	movq	%rax, 144(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L2
	pushq	48(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_Z20query_ball_point_gpuiifiPKfPi(%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
.L2:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2059:
	.size	_Z47__device_stub__Z20query_ball_point_gpuiifiPKfPiiifiPKfPi, .-_Z47__device_stub__Z20query_ball_point_gpuiifiPKfPiiifiPKfPi
	.globl	_Z20query_ball_point_gpuiifiPKfPi
	.type	_Z20query_ball_point_gpuiifiPKfPi, @function
_Z20query_ball_point_gpuiifiPKfPi:
.LFB2060:
	.cfi_startproc
	endbr64
	jmp	_Z47__device_stub__Z20query_ball_point_gpuiifiPKfPiiifiPKfPi
	.cfi_endproc
.LFE2060:
	.size	_Z20query_ball_point_gpuiifiPKfPi, .-_Z20query_ball_point_gpuiifiPKfPi
	.globl	_Z22queryBallPointLauncheriifiPKfPi
	.type	_Z22queryBallPointLauncheriifiPKfPi, @function
_Z22queryBallPointLauncheriifiPKfPi:
.LFB2030:
	.cfi_startproc
	endbr64
	movabsq	$4294967297, %rax
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xorl	%r9d, %r9d
	movq	%r8, %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	xorl	%r8d, %r8d
	movq	%rcx, %r13
	movl	$1, %ecx
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movl	%edx, %r12d
	movl	$8388609, %edx
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movl	%esi, %ebp
	salq	$9, %rdx
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movl	%edi, %ebx
	subq	$48, %rsp
	.cfi_def_cfa_offset 96
	movq	%rax, 28(%rsp)
	movl	32(%rsp), %esi
	movl	%edi, 24(%rsp)
	movq	24(%rsp), %rdi
	movss	%xmm0, 12(%rsp)
	call	__cudaPushCallConfiguration@PLT
	movss	12(%rsp), %xmm0
	testl	%eax, %eax
	jne	.L8
	addq	$48, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	movq	%r14, %r8
	movq	%r13, %rcx
	movl	%r12d, %edx
	movl	%ebp, %esi
	movl	%ebx, %edi
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	jmp	_Z47__device_stub__Z20query_ball_point_gpuiifiPKfPiiifiPKfPi
.L8:
	.cfi_restore_state
	addq	$48, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2030:
	.size	_Z22queryBallPointLauncheriifiPKfPi, .-_Z22queryBallPointLauncheriifiPKfPi
	.globl	_Z37__device_stub__Z12sampleKerneliiPKfPfiiPKfPf
	.type	_Z37__device_stub__Z12sampleKerneliiPKfPfiiPKfPf, @function
_Z37__device_stub__Z12sampleKerneliiPKfPfiiPKfPf:
.LFB2061:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movl	%edi, 28(%rsp)
	leaq	56(%rsp), %rdi
	movl	%esi, 24(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 16(%rsp)
	leaq	40(%rsp), %rdx
	movq	%rcx, 8(%rsp)
	leaq	48(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L11
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z12sampleKerneliiPKfPf(%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
.L11:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2061:
	.size	_Z37__device_stub__Z12sampleKerneliiPKfPfiiPKfPf, .-_Z37__device_stub__Z12sampleKerneliiPKfPfiiPKfPf
	.globl	_Z12sampleKerneliiPKfPf
	.type	_Z12sampleKerneliiPKfPf, @function
_Z12sampleKerneliiPKfPf:
.LFB2062:
	.cfi_startproc
	endbr64
	jmp	_Z37__device_stub__Z12sampleKerneliiPKfPfiiPKfPf
	.cfi_endproc
.LFE2062:
	.size	_Z12sampleKerneliiPKfPf, .-_Z12sampleKerneliiPKfPf
	.globl	_Z6sampleiiPKfPf
	.type	_Z6sampleiiPKfPf, @function
_Z6sampleiiPKfPf:
.LFB2027:
	.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
	movabsq	$4294967297, %rax
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movl	%esi, %ebp
	salq	$9, %rdx
	movl	$1, %ecx
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movl	%edi, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 80
	movq	%rax, 12(%rsp)
	movl	16(%rsp), %esi
	movl	%edi, 8(%rsp)
	movq	8(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L16
	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__Z12sampleKerneliiPKfPfiiPKfPf
.L16:
	.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
.LFE2027:
	.size	_Z6sampleiiPKfPf, .-_Z6sampleiiPKfPf
	.globl	_Z33__device_stub__Z9knnKerneliiPKfPiiiPKfPi
	.type	_Z33__device_stub__Z9knnKerneliiPKfPiiiPKfPi, @function
_Z33__device_stub__Z9knnKerneliiPKfPiiiPKfPi:
.LFB2063:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movl	%edi, 28(%rsp)
	leaq	56(%rsp), %rdi
	movl	%esi, 24(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 16(%rsp)
	leaq	40(%rsp), %rdx
	movq	%rcx, 8(%rsp)
	leaq	48(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L19
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z9knnKerneliiPKfPi(%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
.L19:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2063:
	.size	_Z33__device_stub__Z9knnKerneliiPKfPiiiPKfPi, .-_Z33__device_stub__Z9knnKerneliiPKfPiiiPKfPi
	.globl	_Z9knnKerneliiPKfPi
	.type	_Z9knnKerneliiPKfPi, @function
_Z9knnKerneliiPKfPi:
.LFB2064:
	.cfi_startproc
	endbr64
	jmp	_Z33__device_stub__Z9knnKerneliiPKfPiiiPKfPi
	.cfi_endproc
.LFE2064:
	.size	_Z9knnKerneliiPKfPi, .-_Z9knnKerneliiPKfPi
	.globl	_Z3knniiPKfPi
	.type	_Z3knniiPKfPi, @function
_Z3knniiPKfPi:
.LFB2031:
	.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
	movabsq	$4294967297, %rax
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movl	%esi, %ebp
	salq	$9, %rdx
	movl	$1, %ecx
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movl	%edi, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 80
	movq	%rax, 12(%rsp)
	movl	16(%rsp), %esi
	movl	%edi, 8(%rsp)
	movq	8(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L24
	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	_Z33__device_stub__Z9knnKerneliiPKfPiiiPKfPi
.L24:
	.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
.LFE2031:
	.size	_Z3knniiPKfPi, .-_Z3knniiPKfPi
	.globl	_Z37__device_stub__Z11cube_selectiifPKfPiiifPKfPi
	.type	_Z37__device_stub__Z11cube_selectiifPKfPiiifPKfPi, @function
_Z37__device_stub__Z11cube_selectiifPKfPiiifPKfPi:
.LFB2065:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movl	%edi, 28(%rsp)
	leaq	48(%rsp), %rdi
	movl	%esi, 24(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rsp)
	leaq	40(%rsp), %rcx
	movss	%xmm0, 20(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 120(%rsp)
	movq	%rsp, %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L27
	pushq	40(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z11cube_selectiifPKfPi(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 176
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.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
.LFE2065:
	.size	_Z37__device_stub__Z11cube_selectiifPKfPiiifPKfPi, .-_Z37__device_stub__Z11cube_selectiifPKfPiiifPKfPi
	.globl	_Z11cube_selectiifPKfPi
	.type	_Z11cube_selectiifPKfPi, @function
_Z11cube_selectiifPKfPi:
.LFB2066:
	.cfi_startproc
	endbr64
	jmp	_Z37__device_stub__Z11cube_selectiifPKfPiiifPKfPi
	.cfi_endproc
.LFE2066:
	.size	_Z11cube_selectiifPKfPi, .-_Z11cube_selectiifPKfPi
	.globl	_Z18cubeSelectLauncheriifPKfPi
	.type	_Z18cubeSelectLauncheriifPKfPi, @function
_Z18cubeSelectLauncheriifPKfPi:
.LFB2028:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rcx, %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rdx, %r12
	movl	$8388609, %edx
	movabsq	$4294967297, %rax
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movl	%esi, %ebp
	salq	$9, %rdx
	movl	$1, %ecx
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movl	%edi, %ebx
	subq	$56, %rsp
	.cfi_def_cfa_offset 96
	movq	%rax, 28(%rsp)
	movl	32(%rsp), %esi
	movl	%edi, 24(%rsp)
	movq	24(%rsp), %rdi
	movss	%xmm0, 12(%rsp)
	call	__cudaPushCallConfiguration@PLT
	movss	12(%rsp), %xmm0
	testl	%eax, %eax
	jne	.L32
	addq	$56, %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__Z11cube_selectiifPKfPiiifPKfPi
.L32:
	.cfi_restore_state
	addq	$56, %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
.LFE2028:
	.size	_Z18cubeSelectLauncheriifPKfPi, .-_Z18cubeSelectLauncheriifPKfPi
	.globl	_Z46__device_stub__Z15group_point_gpuiiiiiPKfPKiPfiiiiiPKfPKiPf
	.type	_Z46__device_stub__Z15group_point_gpuiiiiiPKfPKiPfiiiiiPKfPKiPf, @function
_Z46__device_stub__Z15group_point_gpuiiiiiPKfPKiPfiiiiiPKfPKiPf:
.LFB2067:
	.cfi_startproc
	endbr64
	subq	$200, %rsp
	.cfi_def_cfa_offset 208
	movq	208(%rsp), %rax
	movl	%edi, 44(%rsp)
	leaq	72(%rsp), %rdi
	movl	%esi, 40(%rsp)
	leaq	84(%rsp), %rsi
	movq	%rax, 8(%rsp)
	movq	216(%rsp), %rax
	movl	%edx, 36(%rsp)
	leaq	56(%rsp), %rdx
	movl	%ecx, 32(%rsp)
	leaq	64(%rsp), %rcx
	movl	%r8d, 28(%rsp)
	movq	%r9, 16(%rsp)
	movq	%rax, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 184(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rax
	movl	$1, 80(%rsp)
	movq	%rax, 120(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	36(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	28(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 168(%rsp)
	movq	%rsp, %rax
	movq	%rax, 176(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 72(%rsp)
	movq	%rax, 84(%rsp)
	movl	$1, 92(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L35
	pushq	64(%rsp)
	.cfi_def_cfa_offset 216
	leaq	_Z15group_point_gpuiiiiiPKfPKiPf(%rip), %rdi
	pushq	64(%rsp)
	.cfi_def_cfa_offset 224
	movq	100(%rsp), %rcx
	movl	108(%rsp), %r8d
	movq	88(%rsp), %rsi
	movl	96(%rsp), %edx
	leaq	136(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 216
	popq	%rdx
	.cfi_def_cfa_offset 208
.L35:
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	addq	$200, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2067:
	.size	_Z46__device_stub__Z15group_point_gpuiiiiiPKfPKiPfiiiiiPKfPKiPf, .-_Z46__device_stub__Z15group_point_gpuiiiiiPKfPKiPfiiiiiPKfPKiPf
	.globl	_Z15group_point_gpuiiiiiPKfPKiPf
	.type	_Z15group_point_gpuiiiiiPKfPKiPf, @function
_Z15group_point_gpuiiiiiPKfPKiPf:
.LFB2068:
	.cfi_startproc
	endbr64
	jmp	_Z46__device_stub__Z15group_point_gpuiiiiiPKfPKiPfiiiiiPKfPKiPf
	.cfi_endproc
.LFE2068:
	.size	_Z15group_point_gpuiiiiiPKfPKiPf, .-_Z15group_point_gpuiiiiiPKfPKiPf
	.globl	_Z18groupPointLauncheriiiiiPKfPKiPf
	.type	_Z18groupPointLauncheriiiiiPKfPKiPf, @function
_Z18groupPointLauncheriiiiiPKfPKiPf:
.LFB2029:
	.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
	movl	%r8d, %r14d
	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
	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), %rbp
	movl	%esi, 8(%rsp)
	movl	32(%rsp), %esi
	movl	%edx, 12(%rsp)
	movl	$16777217, %edx
	movq	120(%rsp), %r12
	movl	%edi, 24(%rsp)
	movq	24(%rsp), %rdi
	salq	$8, %rdx
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L40
	movq	%r12, 120(%rsp)
	movl	12(%rsp), %edx
	movq	%r15, %r9
	movl	%r14d, %r8d
	movq	%rbp, 112(%rsp)
	movl	8(%rsp), %esi
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r13d, %ecx
	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	_Z46__device_stub__Z15group_point_gpuiiiiiPKfPKiPfiiiiiPKfPKiPf
.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
.LFE2029:
	.size	_Z18groupPointLauncheriiiiiPKfPKiPf, .-_Z18groupPointLauncheriiiiiPKfPKiPf
	.globl	_Z41__device_stub__Z12gather_pointiiiPKiPKfPfiiiPKiPKfPf
	.type	_Z41__device_stub__Z12gather_pointiiiPKiPKfPfiiiPKiPKfPf, @function
_Z41__device_stub__Z12gather_pointiiiPKiPKfPfiiiPKiPKfPf:
.LFB2069:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movl	%edi, 44(%rsp)
	leaq	72(%rsp), %rdi
	movl	%esi, 40(%rsp)
	leaq	84(%rsp), %rsi
	movl	%edx, 36(%rsp)
	leaq	56(%rsp), %rdx
	movq	%rcx, 24(%rsp)
	leaq	64(%rsp), %rcx
	movq	%r8, 16(%rsp)
	movq	%r9, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rax
	movl	$1, 80(%rsp)
	movq	%rax, 120(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	36(%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, 72(%rsp)
	movq	%rax, 84(%rsp)
	movl	$1, 92(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L43
	pushq	64(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z12gather_pointiiiPKiPKfPf(%rip), %rdi
	pushq	64(%rsp)
	.cfi_def_cfa_offset 208
	movq	100(%rsp), %rcx
	movl	108(%rsp), %r8d
	movq	88(%rsp), %rsi
	movl	96(%rsp), %edx
	leaq	136(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L43:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2069:
	.size	_Z41__device_stub__Z12gather_pointiiiPKiPKfPfiiiPKiPKfPf, .-_Z41__device_stub__Z12gather_pointiiiPKiPKfPfiiiPKiPKfPf
	.globl	_Z12gather_pointiiiPKiPKfPf
	.type	_Z12gather_pointiiiPKiPKfPf, @function
_Z12gather_pointiiiPKiPKfPf:
.LFB2070:
	.cfi_startproc
	endbr64
	jmp	_Z41__device_stub__Z12gather_pointiiiPKiPKfPfiiiPKiPKfPf
	.cfi_endproc
.LFE2070:
	.size	_Z12gather_pointiiiPKiPKfPf, .-_Z12gather_pointiiiPKiPKfPf
	.globl	_Z20gather_pointLauncheriiiPKiPKfPf
	.type	_Z20gather_pointLauncheriiiPKiPKfPf, @function
_Z20gather_pointLauncheriiiPKiPKfPf:
.LFB2032:
	.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	$8388609, %edx
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%esi, %ebp
	salq	$9, %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	.L48
	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	_Z41__device_stub__Z12gather_pointiiiPKiPKfPfiiiPKiPKfPf
.L48:
	.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
.LFE2032:
	.size	_Z20gather_pointLauncheriiiPKiPKfPf, .-_Z20gather_pointLauncheriiiPKiPKfPf
	.globl	_Z46__device_stub__Z17gatherpointKerneliiiPKfPKiPfiiiPKfPKiPf
	.type	_Z46__device_stub__Z17gatherpointKerneliiiPKfPKiPfiiiPKfPKiPf, @function
_Z46__device_stub__Z17gatherpointKerneliiiPKfPKiPfiiiPKfPKiPf:
.LFB2071:
	.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	.L51
	pushq	48(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_Z17gatherpointKerneliiiPKfPKiPf(%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
.L51:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L53
	call	__stack_chk_fail@PLT
.L53:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2071:
	.size	_Z46__device_stub__Z17gatherpointKerneliiiPKfPKiPfiiiPKfPKiPf, .-_Z46__device_stub__Z17gatherpointKerneliiiPKfPKiPfiiiPKfPKiPf
	.globl	_Z17gatherpointKerneliiiPKfPKiPf
	.type	_Z17gatherpointKerneliiiPKfPKiPf, @function
_Z17gatherpointKerneliiiPKfPKiPf:
.LFB2072:
	.cfi_startproc
	endbr64
	jmp	_Z46__device_stub__Z17gatherpointKerneliiiPKfPKiPfiiiPKfPKiPf
	.cfi_endproc
.LFE2072:
	.size	_Z17gatherpointKerneliiiPKfPKiPf, .-_Z17gatherpointKerneliiiPKfPKiPf
	.globl	_Z19gatherpointLauncheriiiPKfPKiPf
	.type	_Z19gatherpointLauncheriiiPKfPKiPf, @function
_Z19gatherpointLauncheriiiPKfPKiPf:
.LFB2034:
	.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
	movq	%rcx, %r13
	movl	$1, %ecx
	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
	movl	%esi, %ebp
	movl	$1, %esi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%edi, %ebx
	movabsq	$34359738370, %rdi
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L56
	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	_Z46__device_stub__Z17gatherpointKerneliiiPKfPKiPfiiiPKfPKiPf
.L56:
	.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
.LFE2034:
	.size	_Z19gatherpointLauncheriiiPKfPKiPf, .-_Z19gatherpointLauncheriiiPKfPKiPf
	.globl	_Z55__device_stub__Z27farthestpointsamplingKerneliiiPKfPfPiiiiPKfPfPi
	.type	_Z55__device_stub__Z27farthestpointsamplingKerneliiiPKfPfPiiiiPKfPfPi, @function
_Z55__device_stub__Z27farthestpointsamplingKerneliiiPKfPfPiiiiPKfPfPi:
.LFB2073:
	.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	.L59
	pushq	48(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_Z27farthestpointsamplingKerneliiiPKfPfPi(%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
.L59:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2073:
	.size	_Z55__device_stub__Z27farthestpointsamplingKerneliiiPKfPfPiiiiPKfPfPi, .-_Z55__device_stub__Z27farthestpointsamplingKerneliiiPKfPfPiiiiPKfPfPi
	.globl	_Z27farthestpointsamplingKerneliiiPKfPfPi
	.type	_Z27farthestpointsamplingKerneliiiPKfPfPi, @function
_Z27farthestpointsamplingKerneliiiPKfPfPi:
.LFB2074:
	.cfi_startproc
	endbr64
	jmp	_Z55__device_stub__Z27farthestpointsamplingKerneliiiPKfPfPiiiiPKfPfPi
	.cfi_endproc
.LFE2074:
	.size	_Z27farthestpointsamplingKerneliiiPKfPfPi, .-_Z27farthestpointsamplingKerneliiiPKfPfPi
	.globl	_Z29farthestpointsamplingLauncheriiiPKfPfPi
	.type	_Z29farthestpointsamplingLauncheriiiPKfPfPi, @function
_Z29farthestpointsamplingLauncheriiiPKfPfPi:
.LFB2033:
	.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
	movq	%rcx, %r13
	movl	$1, %ecx
	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
	movl	%esi, %ebp
	movl	$1, %esi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%edi, %ebx
	movl	$134217729, %edi
	salq	$5, %rdi
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L64
	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	_Z55__device_stub__Z27farthestpointsamplingKerneliiiPKfPfPiiiiPKfPfPi
.L64:
	.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
.LFE2033:
	.size	_Z29farthestpointsamplingLauncheriiiPKfPfPi, .-_Z29farthestpointsamplingLauncheriiiPKfPfPi
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"_Z27farthestpointsamplingKerneliiiPKfPfPi"
.LC1:
	.string	"_Z17gatherpointKerneliiiPKfPKiPf"
.LC2:
	.string	"_Z12gather_pointiiiPKiPKfPf"
.LC3:
	.string	"_Z15group_point_gpuiiiiiPKfPKiPf"
.LC4:
	.string	"_Z11cube_selectiifPKfPi"
.LC5:
	.string	"_Z9knnKerneliiPKfPi"
.LC6:
	.string	"_Z12sampleKerneliiPKfPf"
.LC7:
	.string	"_Z20query_ball_point_gpuiifiPKfPi"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2076:
	.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	_Z27farthestpointsamplingKerneliiiPKfPfPi(%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	_Z17gatherpointKerneliiiPKfPKiPf(%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	_Z12gather_pointiiiPKiPKfPf(%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	_Z15group_point_gpuiiiiiPKfPKiPf(%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	_Z11cube_selectiifPKfPi(%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	_Z9knnKerneliiPKfPi(%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	_Z12sampleKerneliiPKfPf(%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	_Z20query_ball_point_gpuiifiPKfPi(%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
.LFE2076:
	.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>


// input: radius (1), nsample (1), xyz1 (b,n,3)
// output: idx (b,n,nsample)  
__global__ void query_ball_point_gpu(int b, int n, float radius, int nsample, const float *xyz1, int *idx) {
	int batch_idx = blockIdx.x;
	xyz1 +=batch_idx*n*3;
	idx += batch_idx*n*nsample;
	float judge_radius = radius * radius;
    for (int j=threadIdx.x;j<n;j+=blockDim.x) {
        int cnt = 0;
       	for (int l=0;l<nsample;++l)
         	idx[j*nsample+l] = j;
        float x1=xyz1[j*3+0];
        float y1=xyz1[j*3+1];
        float z1=xyz1[j*3+2]; 
        for (int k=0;k<n;++k) {   
            if (cnt == nsample)  //如果采集够点了
                break; // only pick the FIRST nsample points in the ball
            if (k==j)
            {
            	continue;
            }
            float x2=xyz1[k*3+0];
            float y2=xyz1[k*3+1];
            float z2=xyz1[k*3+2];
    	    float d=(x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)+(z2-z1)*(z2-z1);
            if (d<judge_radius) {
                idx[j*nsample+cnt] = k;
                cnt+=1;
            }
        }
    }
}
/*
__global__ void sampleKernel(int b, int n,const float *inp, float *result)  //<<<1,512>>> //inp:b*2048*8*3  out:(b,2048)
{
	float dot=0;
	int batch_idx = blockIdx.x;     //处理的batch_idx 
	inp +=batch_idx*n*24;
	for(int i=threadIdx.x;i<n;i+=blockDim.x) //每个block处理一个batch 每个thread处理一组点 i:0 512 1024 1536 
	{
        float temp_dot[8];
		result[batch_idx*n+i] = 0;
		for(int j=0;j<8;j++) //处理一个点
		{
            float x =inp[i*24+j*3+0];
            float y =inp[i*24+j*3+1];
            float z =inp[i*24+j*3+2];
            for(int num=j;num>-1;num--)
            {
            float x1=inp[i*24+num*3+0];
            float y1=inp[i*24+num*3+1];
            float z1=inp[i*24+num*3+2];
            dot = (x*x1+y*y1+z*z1);
            temp_dot[j] += dot;
            temp_dot[num] += dot;
            }
		}
        result[batch_idx*n+i] = temp_dot[0];
        for(int num=1;num<8;num++)
        {
            if(result[batch_idx*n+i]<temp_dot[num])
                result[batch_idx*n+i] = temp_dot[num];
        }

	}
}*/

__global__ void sampleKernel(int b, int n,const float *inp, float *result)  //<<<1,512>>> //inp:b*2048*8*3  out:(b,2048)
{
    float dot=0;
    int batch_idx = blockIdx.x;     //处理的batch_idx 
    float temp_dist = 0;
    float temp_dist1 = 0;
    inp +=batch_idx*n*18;
    for(int i=threadIdx.x;i<n;i+=blockDim.x) //每个block处理一个batch 每个thread处理一组点 i:0 512 1024 1536 
    {
        result[batch_idx*n+i] = 0;
        float x=0;
        float y=0;
        float z=0;
        for(int j=0; j<6;j++)
        {
            x +=inp[i*18+j*3+0];
            y +=inp[i*18+j*3+1];
            z +=inp[i*18+j*3+2];
        }
        x =x/6;
        y =y/6;
        z =z/6;
        for(int j=0;j<6;j++) //处理一个点
        {
            float x1=inp[i*18+j*3+0];
            float y1=inp[i*18+j*3+1];
            float z1=inp[i*18+j*3+2];
            temp_dist1 = (x1*x1+y1*y1+z1*z1);
            if(temp_dist1 != 0)
            {
                dot = (x*x1+y*y1+z*z1)/temp_dist1;
                result[batch_idx*n+i] += dot;
            }
        }   
    }

}    

__global__ void knnKernel(int b, int n,const float *xyz, int *idx_out)  //<<<1,512>>> //inp:b*2048*3  out:(b,2048,6)
{
    int batch_idx = blockIdx.x;     //处理的batch_idx 
    xyz +=batch_idx*n*3;
    idx_out +=batch_idx*n*6;
    for(int i=threadIdx.x;i<n;i+=blockDim.x) //每个block处理一个batch 每个thread处理一组点 i:0 512 1024 1536 
    {
        float temp_dist[6]={1e8,1e8,1e8,1e8,1e8,1e8};
        int first_idx = 0;
        float x=xyz[i*3+0];
        float y=xyz[i*3+1];
        float z=xyz[i*3+2];
        for(int j=0;j<n;j++)
        {
            if(i==j) continue;
            float tx = xyz[j * 3];
            float ty = xyz[j * 3 + 1];
            float tz = xyz[j * 3 + 2];
            float dist = (x - tx) * (x - tx) + (y - ty) * (y - ty) + (z - tz) * (z - tz);
            if(dist < temp_dist[first_idx]) 
            {
                idx_out[i*6+first_idx] = j;
                temp_dist[first_idx] = dist;    
                for(int num=0;num<6;num++)
                {
                    if(temp_dist[first_idx]<temp_dist[num])
                        first_idx = num;
                }
            }
        }
    }
}


__global__ void cube_select(int b, int n,float radius, const float* xyz, int* idx_out) {
    int batch_idx = blockIdx.x;     //b:batch_size n:points_num radius: r xyz:(b,n,3) idx_out(b,n,8)
    xyz += batch_idx * n * 3;       //指向指定要处理的批次 每个block处理一个batch 
    idx_out += batch_idx * n * 8;
    float temp_dist[8];     
    float judge_dist = radius * radius;
    for(int i = threadIdx.x; i < n;i += blockDim.x) { //这里处理一个批次，如果有1024个点 则每个线程会重复这个循环两次 
        float x = xyz[i * 3];      //指定点
        float y = xyz[i * 3 + 1];
        float z = xyz[i * 3 + 2];
        for(int j = 0;j < 8;j ++) {
            temp_dist[j] = 1e8; //初始化距离
            idx_out[i * 8 + j] = i; // if not found, just return itself..  //这里先默认把索引点为自己
        }
        for(int j = 0;j < n;j ++) {    //遍历该batch下的所有点
            if(i == j) continue;
            float tx = xyz[j * 3];
            float ty = xyz[j * 3 + 1];
            float tz = xyz[j * 3 + 2];
            float dist = (x - tx) * (x - tx) + (y - ty) * (y - ty) + (z - tz) * (z - tz);
            if(dist > judge_dist) continue; //如果距离超过规定的距离 继续循环
            int _x = (tx > x);              //
            int _y = (ty > y);
            int _z = (tz > z);
            int temp_idx = _x * 4 + _y * 2 + _z; //存放的位置
            if(dist < temp_dist[temp_idx]) {
                idx_out[i * 8 + temp_idx] = j;
                temp_dist[temp_idx] = dist;
            }
        }
    }
}

__global__ void group_point_gpu(int b, int n, int c, int m, int nsample, const float *points, const int *idx, float *out) {
    int batch_index = blockIdx.x;
    points += n*c*batch_index;
    idx += m*nsample*batch_index;
    out += m*nsample*c*batch_index;

    int index = threadIdx.x;
    int stride = blockDim.x;
    
    for (int j=index;j<m;j+=stride) {
        for (int k=0;k<nsample;++k) {
            int ii = idx[j*nsample+k];
            for (int l=0;l<c;++l) {
                out[j*nsample*c+k*c+l] = points[ii*c+l];
            }
        }
    }
}
__global__ void gather_point(int b, int n, int nsamples, const int* idx, const float* xyz, float* result) {   //idx(b,nsamples) xyz(b,n,3) result(b,nasmples,3)
    int batch_index = blockIdx.x;
    idx += batch_index*nsamples;
    xyz += batch_index*n*3;
    result += batch_index*nsamples*3;
    for(int i = threadIdx.x; i<nsamples;i +=blockDim.x)
    {   
        int j = idx[i];
        result[i*3+0] = xyz[j*3];
        result[i*3+1] = xyz[j*3+1];
        result[i*3+2] = xyz[j*3+2];
    }

}

__global__ void gatherpointKernel(int b,int n,int m,const float * __restrict__ inp,const int * __restrict__ idx,float * __restrict__ out){
  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){
      int a=idx[i*m+j];
      out[(i*m+j)*3+0]=inp[(i*n+a)*3+0];
      out[(i*m+j)*3+1]=inp[(i*n+a)*3+1];
      out[(i*m+j)*3+2]=inp[(i*n+a)*3+2];
    }
  }
}

__global__ void farthestpointsamplingKernel(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];
  const int BufferSize=3072;
  __shared__ float buf[BufferSize*3];
  for (int i=blockIdx.x;i<b;i+=gridDim.x){
    int old=0;
    if (threadIdx.x==0)
      idxs[i*m+0]=old;
    for (int j=threadIdx.x;j<n;j+=blockDim.x){
      temp[blockIdx.x*n+j]=1e38;
    }
    for (int j=threadIdx.x;j<min(BufferSize,n)*3;j+=blockDim.x){
      buf[j]=dataset[i*n*3+j];
    }
    __syncthreads();
    for (int j=1;j<m;j++){
      int besti=0;
      float best=-1;
      float x1=dataset[i*n*3+old*3+0];
      float y1=dataset[i*n*3+old*3+1];
      float z1=dataset[i*n*3+old*3+2];
      for (int k=threadIdx.x;k<n;k+=blockDim.x){
        float td=temp[blockIdx.x*n+k];
        float x2,y2,z2;
        if (k<BufferSize){
          x2=buf[k*3+0];
          y2=buf[k*3+1];
          z2=buf[k*3+2];
        }else{
          x2=dataset[i*n*3+k*3+0];
          y2=dataset[i*n*3+k*3+1];
          z2=dataset[i*n*3+k*3+2];
        }
        float d=(x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)+(z2-z1)*(z2-z1);
        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;
    }
  }
}

void sample(int b, int n,const float *inp, float *result)
{
	sampleKernel<<<b,512>>>(b,n, inp,result);
}
void cubeSelectLauncher(int b, int n, float radius, const float* xyz, int* idx_out) {
    cube_select<<<b, 512>>>(b, n, radius, xyz, idx_out);
}

void groupPointLauncher(int b, int n, int c, int m, int nsample, const float *points, const int *idx, float *out){
    group_point_gpu<<<b,256>>>(b,n,c,m,nsample,points,idx,out);
    //cudaDeviceSynchronize();
}
void queryBallPointLauncher(int b, int n, float radius, int nsample, const float *xyz1, int *idx) {
    query_ball_point_gpu<<<b,512>>>(b,n,radius,nsample,xyz1,idx);
    //cudaDeviceSynchronize();
}
void knn(int b, int n,const float *xyz, int *idx_out)  
{
    knnKernel<<<b,512>>>(b,n,xyz,idx_out);
}
void gather_pointLauncher(int b, int n, int nsamples, const int* idx, const float* xyz, float* result)
{
    gather_point<<<b,512>>>(b,n,nsamples,idx,xyz,result);
}
void farthestpointsamplingLauncher(int b,int n,int m,const float * inp,float * temp,int * out){
  farthestpointsamplingKernel<<<32,512>>>(b,n,m,inp,temp,out);
}

void gatherpointLauncher(int b,int n,int m,const float * inp,const int * idx,float * out){
  gatherpointKernel<<<dim3(2,8,1),512>>>(b,n,m,inp,idx,out);
}
	.text
	.file	"cuda_test.hip"
	.globl	_Z35__device_stub__query_ball_point_gpuiifiPKfPi # -- Begin function _Z35__device_stub__query_ball_point_gpuiifiPKfPi
	.type	_Z35__device_stub__query_ball_point_gpuiifiPKfPi,@function
_Z35__device_stub__query_ball_point_gpuiifiPKfPi: # @_Z35__device_stub__query_ball_point_gpuiifiPKfPi
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$128, %rsp
	.cfi_def_cfa_offset 176
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	8(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	4(%rsp), %rsi
	movss	%xmm0, (%rsi)
	movq	%rsp, %r9
	movl	%edx, (%r9)
	leaq	40(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	32(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%r9, 24(%rbx)
	movq	%rdx, 32(%rbx)
	movq	%rcx, 40(%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	$_Z20query_ball_point_gpuiifiPKfPi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$144, %rsp
	.cfi_adjust_cfa_offset -144
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	_Z35__device_stub__query_ball_point_gpuiifiPKfPi, .Lfunc_end0-_Z35__device_stub__query_ball_point_gpuiifiPKfPi
	.cfi_endproc
                                        # -- End function
	.globl	_Z27__device_stub__sampleKerneliiPKfPf # -- Begin function _Z27__device_stub__sampleKerneliiPKfPf
	.type	_Z27__device_stub__sampleKerneliiPKfPf,@function
_Z27__device_stub__sampleKerneliiPKfPf: # @_Z27__device_stub__sampleKerneliiPKfPf
	.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	$_Z12sampleKerneliiPKfPf, %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_end1:
	.size	_Z27__device_stub__sampleKerneliiPKfPf, .Lfunc_end1-_Z27__device_stub__sampleKerneliiPKfPf
	.cfi_endproc
                                        # -- End function
	.globl	_Z24__device_stub__knnKerneliiPKfPi # -- Begin function _Z24__device_stub__knnKerneliiPKfPi
	.type	_Z24__device_stub__knnKerneliiPKfPi,@function
_Z24__device_stub__knnKerneliiPKfPi:    # @_Z24__device_stub__knnKerneliiPKfPi
	.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	$_Z9knnKerneliiPKfPi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_Z24__device_stub__knnKerneliiPKfPi, .Lfunc_end2-_Z24__device_stub__knnKerneliiPKfPi
	.cfi_endproc
                                        # -- End function
	.globl	_Z26__device_stub__cube_selectiifPKfPi # -- Begin function _Z26__device_stub__cube_selectiifPKfPi
	.type	_Z26__device_stub__cube_selectiifPKfPi,@function
_Z26__device_stub__cube_selectiifPKfPi: # @_Z26__device_stub__cube_selectiifPKfPi
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$128, %rsp
	.cfi_def_cfa_offset 176
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	8(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	4(%rsp), %rsi
	movss	%xmm0, (%rsi)
	leaq	40(%rsp), %r8
	movq	%rdx, (%r8)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%r8, 24(%rbx)
	movq	%rdx, 32(%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	$_Z11cube_selectiifPKfPi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$144, %rsp
	.cfi_adjust_cfa_offset -144
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	_Z26__device_stub__cube_selectiifPKfPi, .Lfunc_end3-_Z26__device_stub__cube_selectiifPKfPi
	.cfi_endproc
                                        # -- End function
	.globl	_Z30__device_stub__group_point_gpuiiiiiPKfPKiPf # -- Begin function _Z30__device_stub__group_point_gpuiiiiiPKfPKiPf
	.type	_Z30__device_stub__group_point_gpuiiiiiPKfPKiPf,@function
_Z30__device_stub__group_point_gpuiiiiiPKfPKiPf: # @_Z30__device_stub__group_point_gpuiiiiiPKfPKiPf
	.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	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	192(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	200(%rsp), %rax
	movq	%rax, 56(%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	$_Z15group_point_gpuiiiiiPKfPKiPf, %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	_Z30__device_stub__group_point_gpuiiiiiPKfPKiPf, .Lfunc_end4-_Z30__device_stub__group_point_gpuiiiiiPKfPKiPf
	.cfi_endproc
                                        # -- End function
	.globl	_Z27__device_stub__gather_pointiiiPKiPKfPf # -- Begin function _Z27__device_stub__gather_pointiiiPKiPKfPf
	.type	_Z27__device_stub__gather_pointiiiPKiPKfPf,@function
_Z27__device_stub__gather_pointiiiPKiPKfPf: # @_Z27__device_stub__gather_pointiiiPKiPKfPf
	.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	$_Z12gather_pointiiiPKiPKfPf, %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_end5:
	.size	_Z27__device_stub__gather_pointiiiPKiPKfPf, .Lfunc_end5-_Z27__device_stub__gather_pointiiiPKiPKfPf
	.cfi_endproc
                                        # -- End function
	.globl	_Z32__device_stub__gatherpointKerneliiiPKfPKiPf # -- Begin function _Z32__device_stub__gatherpointKerneliiiPKfPKiPf
	.type	_Z32__device_stub__gatherpointKerneliiiPKfPKiPf,@function
_Z32__device_stub__gatherpointKerneliiiPKfPKiPf: # @_Z32__device_stub__gatherpointKerneliiiPKfPKiPf
	.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	$_Z17gatherpointKerneliiiPKfPKiPf, %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_end6:
	.size	_Z32__device_stub__gatherpointKerneliiiPKfPKiPf, .Lfunc_end6-_Z32__device_stub__gatherpointKerneliiiPKfPKiPf
	.cfi_endproc
                                        # -- End function
	.globl	_Z42__device_stub__farthestpointsamplingKerneliiiPKfPfPi # -- Begin function _Z42__device_stub__farthestpointsamplingKerneliiiPKfPfPi
	.type	_Z42__device_stub__farthestpointsamplingKerneliiiPKfPfPi,@function
_Z42__device_stub__farthestpointsamplingKerneliiiPKfPfPi: # @_Z42__device_stub__farthestpointsamplingKerneliiiPKfPfPi
	.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	$_Z27farthestpointsamplingKerneliiiPKfPfPi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end7:
	.size	_Z42__device_stub__farthestpointsamplingKerneliiiPKfPfPi, .Lfunc_end7-_Z42__device_stub__farthestpointsamplingKerneliiiPKfPfPi
	.cfi_endproc
                                        # -- End function
	.globl	_Z6sampleiiPKfPf                # -- Begin function _Z6sampleiiPKfPf
	.type	_Z6sampleiiPKfPf,@function
_Z6sampleiiPKfPf:                       # @_Z6sampleiiPKfPf
	.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
	movl	%edi, %edi
	btsq	$32, %rdi
	movabsq	$4294967296, %rdx               # imm = 0x100000000
	orq	$512, %rdx                      # imm = 0x200
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	je	.LBB8_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
.LBB8_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__sampleKerneliiPKfPf # TAILCALL
.Lfunc_end8:
	.size	_Z6sampleiiPKfPf, .Lfunc_end8-_Z6sampleiiPKfPf
	.cfi_endproc
                                        # -- End function
	.globl	_Z18cubeSelectLauncheriifPKfPi  # -- Begin function _Z18cubeSelectLauncheriifPKfPi
	.type	_Z18cubeSelectLauncheriifPKfPi,@function
_Z18cubeSelectLauncheriifPKfPi:         # @_Z18cubeSelectLauncheriifPKfPi
	.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
	movss	%xmm0, 4(%rsp)                  # 4-byte Spill
	movl	%esi, %ebp
	movl	%edi, %r15d
	movl	%edi, %edi
	btsq	$32, %rdi
	movabsq	$4294967296, %rdx               # imm = 0x100000000
	orq	$512, %rdx                      # imm = 0x200
	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 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
.LBB9_2:
	.cfi_def_cfa_offset 48
	movl	%r15d, %edi
	movl	%ebp, %esi
	movss	4(%rsp), %xmm0                  # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	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	_Z26__device_stub__cube_selectiifPKfPi # TAILCALL
.Lfunc_end9:
	.size	_Z18cubeSelectLauncheriifPKfPi, .Lfunc_end9-_Z18cubeSelectLauncheriifPKfPi
	.cfi_endproc
                                        # -- End function
	.globl	_Z18groupPointLauncheriiiiiPKfPKiPf # -- Begin function _Z18groupPointLauncheriiiiiPKfPKiPf
	.type	_Z18groupPointLauncheriiiiiPKfPKiPf,@function
_Z18groupPointLauncheriiiiiPKfPKiPf:    # @_Z18groupPointLauncheriiiiiPKfPKiPf
	.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	$256, %rdx                      # imm = 0x100
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	je	.LBB10_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
.LBB10_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	_Z30__device_stub__group_point_gpuiiiiiPKfPKiPf # TAILCALL
.Lfunc_end10:
	.size	_Z18groupPointLauncheriiiiiPKfPKiPf, .Lfunc_end10-_Z18groupPointLauncheriiiiiPKfPKiPf
	.cfi_endproc
                                        # -- End function
	.globl	_Z22queryBallPointLauncheriifiPKfPi # -- Begin function _Z22queryBallPointLauncheriifiPKfPi
	.type	_Z22queryBallPointLauncheriifiPKfPi,@function
_Z22queryBallPointLauncheriifiPKfPi:    # @_Z22queryBallPointLauncheriifiPKfPi
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%r8, %rbx
	movq	%rcx, %r14
	movl	%edx, %ebp
	movss	%xmm0, 12(%rsp)                 # 4-byte Spill
	movl	%esi, %r15d
	movl	%edi, %r12d
	movl	%edi, %edi
	btsq	$32, %rdi
	movabsq	$4294967296, %rdx               # imm = 0x100000000
	orq	$512, %rdx                      # imm = 0x200
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	je	.LBB11_2
# %bb.1:
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB11_2:
	.cfi_def_cfa_offset 64
	movl	%r12d, %edi
	movl	%r15d, %esi
	movss	12(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	movl	%ebp, %edx
	movq	%r14, %rcx
	movq	%rbx, %r8
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	_Z35__device_stub__query_ball_point_gpuiifiPKfPi # TAILCALL
.Lfunc_end11:
	.size	_Z22queryBallPointLauncheriifiPKfPi, .Lfunc_end11-_Z22queryBallPointLauncheriifiPKfPi
	.cfi_endproc
                                        # -- End function
	.globl	_Z3knniiPKfPi                   # -- Begin function _Z3knniiPKfPi
	.type	_Z3knniiPKfPi,@function
_Z3knniiPKfPi:                          # @_Z3knniiPKfPi
	.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
	movl	%edi, %edi
	btsq	$32, %rdi
	movabsq	$4294967296, %rdx               # imm = 0x100000000
	orq	$512, %rdx                      # imm = 0x200
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	je	.LBB12_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
.LBB12_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	_Z24__device_stub__knnKerneliiPKfPi # TAILCALL
.Lfunc_end12:
	.size	_Z3knniiPKfPi, .Lfunc_end12-_Z3knniiPKfPi
	.cfi_endproc
                                        # -- End function
	.globl	_Z20gather_pointLauncheriiiPKiPKfPf # -- Begin function _Z20gather_pointLauncheriiiPKiPKfPf
	.type	_Z20gather_pointLauncheriiiPKiPKfPf,@function
_Z20gather_pointLauncheriiiPKiPKfPf:    # @_Z20gather_pointLauncheriiiPKiPKfPf
	.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	$512, %rdx                      # imm = 0x200
	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	%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	_Z27__device_stub__gather_pointiiiPKiPKfPf # TAILCALL
.Lfunc_end13:
	.size	_Z20gather_pointLauncheriiiPKiPKfPf, .Lfunc_end13-_Z20gather_pointLauncheriiiPKiPKfPf
	.cfi_endproc
                                        # -- End function
	.globl	_Z29farthestpointsamplingLauncheriiiPKfPfPi # -- Begin function _Z29farthestpointsamplingLauncheriiiPKfPfPi
	.type	_Z29farthestpointsamplingLauncheriiiPKfPfPi,@function
_Z29farthestpointsamplingLauncheriiiPKfPfPi: # @_Z29farthestpointsamplingLauncheriiiPKfPfPi
	.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
	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	.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	%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	_Z42__device_stub__farthestpointsamplingKerneliiiPKfPfPi # TAILCALL
.Lfunc_end14:
	.size	_Z29farthestpointsamplingLauncheriiiPKfPfPi, .Lfunc_end14-_Z29farthestpointsamplingLauncheriiiPKfPfPi
	.cfi_endproc
                                        # -- End function
	.globl	_Z19gatherpointLauncheriiiPKfPKiPf # -- Begin function _Z19gatherpointLauncheriiiPKfPKiPf
	.type	_Z19gatherpointLauncheriiiPKfPKiPf,@function
_Z19gatherpointLauncheriiiPKfPKiPf:     # @_Z19gatherpointLauncheriiiPKfPKiPf
	.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
	movabsq	$34359738370, %rdi              # imm = 0x800000002
	movabsq	$4294967808, %rdx               # imm = 0x100000200
	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	%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	_Z32__device_stub__gatherpointKerneliiiPKfPKiPf # TAILCALL
.Lfunc_end15:
	.size	_Z19gatherpointLauncheriiiPKfPKiPf, .Lfunc_end15-_Z19gatherpointLauncheriiiPKfPKiPf
	.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	$_Z20query_ball_point_gpuiifiPKfPi, %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	$_Z12sampleKerneliiPKfPf, %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	$_Z9knnKerneliiPKfPi, %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	$_Z11cube_selectiifPKfPi, %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	$_Z15group_point_gpuiiiiiPKfPKiPf, %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	$_Z12gather_pointiiiPKiPKfPf, %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	$_Z17gatherpointKerneliiiPKfPKiPf, %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	$_Z27farthestpointsamplingKerneliiiPKfPfPi, %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	_Z20query_ball_point_gpuiifiPKfPi,@object # @_Z20query_ball_point_gpuiifiPKfPi
	.section	.rodata,"a",@progbits
	.globl	_Z20query_ball_point_gpuiifiPKfPi
	.p2align	3, 0x0
_Z20query_ball_point_gpuiifiPKfPi:
	.quad	_Z35__device_stub__query_ball_point_gpuiifiPKfPi
	.size	_Z20query_ball_point_gpuiifiPKfPi, 8

	.type	_Z12sampleKerneliiPKfPf,@object # @_Z12sampleKerneliiPKfPf
	.globl	_Z12sampleKerneliiPKfPf
	.p2align	3, 0x0
_Z12sampleKerneliiPKfPf:
	.quad	_Z27__device_stub__sampleKerneliiPKfPf
	.size	_Z12sampleKerneliiPKfPf, 8

	.type	_Z9knnKerneliiPKfPi,@object     # @_Z9knnKerneliiPKfPi
	.globl	_Z9knnKerneliiPKfPi
	.p2align	3, 0x0
_Z9knnKerneliiPKfPi:
	.quad	_Z24__device_stub__knnKerneliiPKfPi
	.size	_Z9knnKerneliiPKfPi, 8

	.type	_Z11cube_selectiifPKfPi,@object # @_Z11cube_selectiifPKfPi
	.globl	_Z11cube_selectiifPKfPi
	.p2align	3, 0x0
_Z11cube_selectiifPKfPi:
	.quad	_Z26__device_stub__cube_selectiifPKfPi
	.size	_Z11cube_selectiifPKfPi, 8

	.type	_Z15group_point_gpuiiiiiPKfPKiPf,@object # @_Z15group_point_gpuiiiiiPKfPKiPf
	.globl	_Z15group_point_gpuiiiiiPKfPKiPf
	.p2align	3, 0x0
_Z15group_point_gpuiiiiiPKfPKiPf:
	.quad	_Z30__device_stub__group_point_gpuiiiiiPKfPKiPf
	.size	_Z15group_point_gpuiiiiiPKfPKiPf, 8

	.type	_Z12gather_pointiiiPKiPKfPf,@object # @_Z12gather_pointiiiPKiPKfPf
	.globl	_Z12gather_pointiiiPKiPKfPf
	.p2align	3, 0x0
_Z12gather_pointiiiPKiPKfPf:
	.quad	_Z27__device_stub__gather_pointiiiPKiPKfPf
	.size	_Z12gather_pointiiiPKiPKfPf, 8

	.type	_Z17gatherpointKerneliiiPKfPKiPf,@object # @_Z17gatherpointKerneliiiPKfPKiPf
	.globl	_Z17gatherpointKerneliiiPKfPKiPf
	.p2align	3, 0x0
_Z17gatherpointKerneliiiPKfPKiPf:
	.quad	_Z32__device_stub__gatherpointKerneliiiPKfPKiPf
	.size	_Z17gatherpointKerneliiiPKfPKiPf, 8

	.type	_Z27farthestpointsamplingKerneliiiPKfPfPi,@object # @_Z27farthestpointsamplingKerneliiiPKfPfPi
	.globl	_Z27farthestpointsamplingKerneliiiPKfPfPi
	.p2align	3, 0x0
_Z27farthestpointsamplingKerneliiiPKfPfPi:
	.quad	_Z42__device_stub__farthestpointsamplingKerneliiiPKfPfPi
	.size	_Z27farthestpointsamplingKerneliiiPKfPfPi, 8

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

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z12sampleKerneliiPKfPf"
	.size	.L__unnamed_2, 24

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z9knnKerneliiPKfPi"
	.size	.L__unnamed_3, 20

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"_Z11cube_selectiifPKfPi"
	.size	.L__unnamed_4, 24

	.type	.L__unnamed_5,@object           # @4
.L__unnamed_5:
	.asciz	"_Z15group_point_gpuiiiiiPKfPKiPf"
	.size	.L__unnamed_5, 33

	.type	.L__unnamed_6,@object           # @5
.L__unnamed_6:
	.asciz	"_Z12gather_pointiiiPKiPKfPf"
	.size	.L__unnamed_6, 28

	.type	.L__unnamed_7,@object           # @6
.L__unnamed_7:
	.asciz	"_Z17gatherpointKerneliiiPKfPKiPf"
	.size	.L__unnamed_7, 33

	.type	.L__unnamed_8,@object           # @7
.L__unnamed_8:
	.asciz	"_Z27farthestpointsamplingKerneliiiPKfPfPi"
	.size	.L__unnamed_8, 42

	.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 _Z35__device_stub__query_ball_point_gpuiifiPKfPi
	.addrsig_sym _Z27__device_stub__sampleKerneliiPKfPf
	.addrsig_sym _Z24__device_stub__knnKerneliiPKfPi
	.addrsig_sym _Z26__device_stub__cube_selectiifPKfPi
	.addrsig_sym _Z30__device_stub__group_point_gpuiiiiiPKfPKiPf
	.addrsig_sym _Z27__device_stub__gather_pointiiiPKiPKfPf
	.addrsig_sym _Z32__device_stub__gatherpointKerneliiiPKfPKiPf
	.addrsig_sym _Z42__device_stub__farthestpointsamplingKerneliiiPKfPfPi
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Z20query_ball_point_gpuiifiPKfPi
	.addrsig_sym _Z12sampleKerneliiPKfPf
	.addrsig_sym _Z9knnKerneliiPKfPi
	.addrsig_sym _Z11cube_selectiifPKfPi
	.addrsig_sym _Z15group_point_gpuiiiiiPKfPKiPf
	.addrsig_sym _Z12gather_pointiiiPKiPKfPf
	.addrsig_sym _Z17gatherpointKerneliiiPKfPKiPf
	.addrsig_sym _Z27farthestpointsamplingKerneliiiPKfPfPi
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z20query_ball_point_gpuiifiPKfPi ; -- Begin function _Z20query_ball_point_gpuiifiPKfPi
	.globl	_Z20query_ball_point_gpuiifiPKfPi
	.p2align	8
	.type	_Z20query_ball_point_gpuiifiPKfPi,@function
_Z20query_ball_point_gpuiifiPKfPi:      ; @_Z20query_ball_point_gpuiifiPKfPi
; %bb.0:
	s_load_b128 s[4:7], s[0:1], 0x4
	s_mov_b32 s2, exec_lo
	s_waitcnt lgkmcnt(0)
	v_cmpx_gt_i32_e64 s4, v0
	s_cbranch_execz .LBB0_14
; %bb.1:                                ; %.preheader.lr.ph
	s_clause 0x1
	s_load_b128 s[8:11], s[0:1], 0x10
	s_load_b32 s14, s[0:1], 0x2c
	s_mul_i32 s2, s15, s4
	v_mul_f32_e64 v6, s5, s5
	s_mul_i32 s0, s2, 3
	s_mul_i32 s12, s2, s6
	s_ashr_i32 s1, s0, 31
	v_mul_lo_u32 v4, v0, s6
	s_lshl_b64 s[0:1], s[0:1], 2
	s_waitcnt lgkmcnt(0)
	s_add_u32 s2, s8, s0
	s_addc_u32 s3, s9, s1
	s_ashr_i32 s13, s12, 31
	s_delay_alu instid0(SALU_CYCLE_1)
	s_lshl_b64 s[0:1], s[12:13], 2
	s_mov_b32 s12, 0
	s_add_u32 s5, s10, s0
	s_addc_u32 s7, s11, s1
	s_cmp_gt_i32 s6, 0
	s_mov_b32 s1, 0
	s_cselect_b32 s8, -1, 0
	s_cmp_lg_u32 s6, 0
	s_cselect_b32 s9, -1, 0
	s_and_b32 s10, s14, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mul_i32 s11, s6, s10
.LBB0_2:                                ; %.preheader
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_7 Depth 2
	s_and_not1_b32 vcc_lo, exec_lo, s8
	s_cbranch_vccnz .LBB0_5
; %bb.3:                                ; %.lr.ph
                                        ;   in Loop: Header=BB0_2 Depth=1
	v_ashrrev_i32_e32 v5, 31, v4
	s_mov_b32 s0, s6
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[1:2], 2, v[4:5]
	v_add_co_u32 v1, vcc_lo, s5, v1
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v2, vcc_lo, s7, v2, vcc_lo
.LBB0_4:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	global_store_b32 v[1:2], v0, off
	v_add_co_u32 v1, vcc_lo, v1, 4
	v_add_co_ci_u32_e32 v2, vcc_lo, 0, v2, vcc_lo
	s_add_i32 s0, s0, -1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s0, 0
	s_cbranch_scc0 .LBB0_4
.LBB0_5:                                ; %._crit_edge
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_and_not1_b32 vcc_lo, exec_lo, s9
	s_cbranch_vccnz .LBB0_13
; %bb.6:                                ; %.lr.ph71
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_waitcnt vmcnt(0)
	v_lshl_add_u32 v1, v0, 1, v0
	v_mul_lo_u32 v5, v0, s6
	v_mov_b32_e32 v7, 0
	s_mov_b32 s13, 0
	s_mov_b32 s14, 0
	v_ashrrev_i32_e32 v2, 31, v1
	s_mov_b32 s0, s13
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[1:2], 2, v[1:2]
	v_add_co_u32 v1, vcc_lo, s2, v1
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v2, vcc_lo, s3, v2, vcc_lo
	global_load_b96 v[1:3], v[1:2], off
.LBB0_7:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_mov_b32 s15, exec_lo
	v_cmpx_ne_u32_e64 s14, v0
	s_cbranch_execz .LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	s_lshl_b64 s[16:17], s[0:1], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s16, s2, s16
	s_addc_u32 s17, s3, s17
	s_clause 0x1
	s_load_b64 s[18:19], s[16:17], 0x0
	s_load_b32 s16, s[16:17], 0x8
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_dual_sub_f32 v8, s19, v2 :: v_dual_sub_f32 v9, s18, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v8, v8, v8
	v_dual_fmac_f32 v8, v9, v9 :: v_dual_sub_f32 v9, s16, v3
	s_mov_b32 s16, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v8, v9, v9
	v_cmpx_lt_f32_e32 v8, v6
	s_cbranch_execz .LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	v_add_nc_u32_e32 v8, v7, v5
	v_dual_mov_b32 v10, s14 :: v_dual_add_nc_u32 v7, 1, v7
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v9, 31, v8
	v_lshlrev_b64 v[8:9], 2, v[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v8, vcc_lo, s5, v8
	v_add_co_ci_u32_e32 v9, vcc_lo, s7, v9, vcc_lo
	global_store_b32 v[8:9], v10, off
.LBB0_10:                               ; %Flow
                                        ;   in Loop: Header=BB0_7 Depth=2
	s_or_b32 exec_lo, exec_lo, s16
.LBB0_11:                               ;   in Loop: Header=BB0_7 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s15
	s_add_i32 s14, s14, 1
	v_cmp_eq_u32_e32 vcc_lo, s6, v7
	s_cmp_ge_i32 s14, s4
	s_cselect_b32 s15, -1, 0
	s_add_i32 s0, s0, 3
	s_or_b32 s15, s15, vcc_lo
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s15, exec_lo, s15
	s_or_b32 s13, s15, s13
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s13
	s_cbranch_execnz .LBB0_7
; %bb.12:                               ; %Flow95
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s13
.LBB0_13:                               ; %._crit_edge72
                                        ;   in Loop: Header=BB0_2 Depth=1
	v_add_nc_u32_e32 v0, s10, v0
	v_add_nc_u32_e32 v4, s11, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_cmp_le_i32_e32 vcc_lo, s4, v0
	s_or_b32 s12, vcc_lo, s12
	s_and_not1_b32 exec_lo, exec_lo, s12
	s_cbranch_execnz .LBB0_2
.LBB0_14:                               ; %._crit_edge74
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z20query_ball_point_gpuiifiPKfPi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 11
		.amdhsa_next_free_sgpr 20
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z20query_ball_point_gpuiifiPKfPi, .Lfunc_end0-_Z20query_ball_point_gpuiifiPKfPi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 580
; NumSgprs: 22
; NumVgprs: 11
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 22
; NumVGPRsForWavesPerEU: 11
; 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	_Z12sampleKerneliiPKfPf ; -- Begin function _Z12sampleKerneliiPKfPf
	.globl	_Z12sampleKerneliiPKfPf
	.p2align	8
	.type	_Z12sampleKerneliiPKfPf,@function
_Z12sampleKerneliiPKfPf:                ; @_Z12sampleKerneliiPKfPf
; %bb.0:
	s_load_b32 s4, s[0:1], 0x4
	s_mov_b32 s2, exec_lo
	s_waitcnt lgkmcnt(0)
	v_cmpx_gt_i32_e64 s4, v0
	s_cbranch_execz .LBB1_9
; %bb.1:                                ; %.lr.ph
	s_clause 0x1
	s_load_b32 s10, s[0:1], 0x24
	s_load_b128 s[0:3], s[0:1], 0x8
	s_mul_i32 s5, s15, s4
	v_mul_u32_u24_e32 v4, 18, v0
	s_mul_i32 s6, s5, 18
	v_mov_b32_e32 v7, 0
	s_ashr_i32 s7, s6, 31
	s_delay_alu instid0(SALU_CYCLE_1)
	s_lshl_b64 s[8:9], s[6:7], 2
	s_waitcnt lgkmcnt(0)
	s_and_b32 s6, s10, 0xffff
	s_add_u32 s7, s0, s8
	s_addc_u32 s8, s1, s9
	s_mul_i32 s9, s6, 18
	s_mov_b32 s10, 0
.LBB1_2:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB1_3 Depth 2
                                        ;     Child Loop BB1_5 Depth 2
	v_dual_mov_b32 v1, 0 :: v_dual_add_nc_u32 v2, s5, v0
	v_ashrrev_i32_e32 v5, 31, v4
	s_mov_b64 s[0:1], 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[5:6], 2, v[4:5]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[2:3], 2, v[2:3]
	v_add_co_u32 v8, vcc_lo, s7, v5
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e32 v9, vcc_lo, s8, v6, vcc_lo
	v_add_co_u32 v5, vcc_lo, s2, v2
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_ci_u32_e32 v6, vcc_lo, s3, v3, vcc_lo
	v_dual_mov_b32 v2, 0 :: v_dual_mov_b32 v3, 0
	global_store_b32 v[5:6], v7, off
.LBB1_3:                                ;   Parent Loop BB1_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	v_add_co_u32 v10, vcc_lo, v8, s0
	v_add_co_ci_u32_e32 v11, vcc_lo, s1, v9, vcc_lo
	s_add_u32 s0, s0, 12
	s_addc_u32 s1, s1, 0
	s_cmpk_eq_i32 s0, 0x48
	global_load_b96 v[10:12], v[10:11], off
	s_waitcnt vmcnt(0)
	v_dual_add_f32 v3, v3, v10 :: v_dual_add_f32 v2, v2, v11
	v_add_f32_e32 v1, v1, v12
	s_cbranch_scc0 .LBB1_3
; %bb.4:                                ;   in Loop: Header=BB1_2 Depth=1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_scale_f32 v10, null, 0x40c00000, 0x40c00000, v3
	v_div_scale_f32 v11, null, 0x40c00000, 0x40c00000, v2
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_scale_f32 v12, null, 0x40c00000, 0x40c00000, v1
	v_rcp_f32_e32 v13, v10
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_rcp_f32_e32 v14, v11
	v_div_scale_f32 v16, vcc_lo, v3, 0x40c00000, v3
	v_rcp_f32_e32 v15, v12
	v_div_scale_f32 v17, s0, v2, 0x40c00000, v2
	v_div_scale_f32 v21, s1, v1, 0x40c00000, v1
	s_delay_alu instid0(TRANS32_DEP_3) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_fma_f32 v18, -v10, v13, 1.0
	s_waitcnt_depctr 0xfff
	v_fma_f32 v19, -v11, v14, 1.0
	v_fma_f32 v20, -v12, v15, 1.0
	v_dual_fmac_f32 v13, v18, v13 :: v_dual_fmac_f32 v14, v19, v14
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_mul_f32 v18, v16, v13 :: v_dual_mul_f32 v19, v17, v14
	v_fma_f32 v22, -v10, v18, v16
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fmac_f32_e32 v15, v20, v15
	v_fma_f32 v23, -v11, v19, v17
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v18, v22, v13
	v_dual_mul_f32 v20, v21, v15 :: v_dual_fmac_f32 v19, v23, v14
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v10, -v10, v18, v16
	v_fma_f32 v24, -v12, v20, v21
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f32 v11, -v11, v19, v17
	v_div_fmas_f32 v10, v10, v13, v18
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_dual_fmac_f32 v20, v24, v15 :: v_dual_mov_b32 v13, 0
	s_mov_b32 vcc_lo, s0
	v_div_fmas_f32 v11, v11, v14, v19
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f32 v12, -v12, v20, v21
	s_mov_b32 vcc_lo, s1
	v_div_fixup_f32 v10, v10, 0x40c00000, v3
	s_mov_b64 s[0:1], 0
	v_div_fixup_f32 v11, v11, 0x40c00000, v2
	v_div_fmas_f32 v12, v12, v15, v20
	s_delay_alu instid0(VALU_DEP_1)
	v_div_fixup_f32 v12, v12, 0x40c00000, v1
.LBB1_5:                                ;   Parent Loop BB1_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	v_add_co_u32 v1, vcc_lo, v8, s0
	v_add_co_ci_u32_e32 v2, vcc_lo, s1, v9, vcc_lo
	s_mov_b32 s11, exec_lo
	global_load_b96 v[1:3], v[1:2], off
	s_waitcnt vmcnt(0)
	v_mul_f32_e32 v14, v2, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v14, v1, v1
	v_fmac_f32_e32 v14, v3, v3
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_neq_f32_e32 0, v14
	s_cbranch_execz .LBB1_7
; %bb.6:                                ;   in Loop: Header=BB1_5 Depth=2
	v_mul_f32_e32 v2, v11, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v2, v10, v1
	v_fmac_f32_e32 v2, v12, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f32 v1, null, v14, v14, v2
	v_rcp_f32_e32 v3, v1
	s_waitcnt_depctr 0xfff
	v_fma_f32 v15, -v1, v3, 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v3, v15, v3
	v_div_scale_f32 v15, vcc_lo, v2, v14, v2
	v_mul_f32_e32 v16, v15, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f32 v17, -v1, v16, v15
	v_fmac_f32_e32 v16, v17, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f32 v1, -v1, v16, v15
	v_div_fmas_f32 v1, v1, v3, v16
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f32 v1, v1, v14, v2
	v_add_f32_e32 v13, v1, v13
	global_store_b32 v[5:6], v13, off
.LBB1_7:                                ;   in Loop: Header=BB1_5 Depth=2
	s_or_b32 exec_lo, exec_lo, s11
	s_add_u32 s0, s0, 12
	s_addc_u32 s1, s1, 0
	s_cmpk_eq_i32 s0, 0x48
	s_cbranch_scc0 .LBB1_5
; %bb.8:                                ;   in Loop: Header=BB1_2 Depth=1
	v_add_nc_u32_e32 v0, s6, v0
	v_add_nc_u32_e32 v4, s9, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_cmp_le_i32_e32 vcc_lo, s4, v0
	s_or_b32 s10, vcc_lo, s10
	s_and_not1_b32 exec_lo, exec_lo, s10
	s_cbranch_execnz .LBB1_2
.LBB1_9:                                ; %Flow104
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z12sampleKerneliiPKfPf
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 25
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end1:
	.size	_Z12sampleKerneliiPKfPf, .Lfunc_end1-_Z12sampleKerneliiPKfPf
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 808
; NumSgprs: 18
; NumVgprs: 25
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 3
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 25
; 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	_Z9knnKerneliiPKfPi     ; -- Begin function _Z9knnKerneliiPKfPi
	.globl	_Z9knnKerneliiPKfPi
	.p2align	8
	.type	_Z9knnKerneliiPKfPi,@function
_Z9knnKerneliiPKfPi:                    ; @_Z9knnKerneliiPKfPi
; %bb.0:
	s_load_b32 s10, s[0:1], 0x4
	s_mov_b32 s2, exec_lo
	s_waitcnt lgkmcnt(0)
	v_cmpx_gt_i32_e64 s10, v0
	s_cbranch_execz .LBB2_10
; %bb.1:                                ; %.lr.ph67
	s_clause 0x1
	s_load_b128 s[4:7], s[0:1], 0x8
	s_load_b32 s8, s[0:1], 0x24
	s_mul_i32 s2, s15, s10
	s_mov_b32 s16, 0
	s_mul_i32 s0, s2, 3
	s_mul_i32 s2, s2, 6
	s_ashr_i32 s1, s0, 31
	s_delay_alu instid0(SALU_CYCLE_1)
	s_lshl_b64 s[0:1], s[0:1], 2
	s_waitcnt lgkmcnt(0)
	s_add_u32 s11, s4, s0
	s_addc_u32 s12, s5, s1
	s_ashr_i32 s3, s2, 31
	s_mov_b32 s1, 0
	s_lshl_b64 s[2:3], s[2:3], 2
	s_mov_b32 s4, 0x4cbebc20
	s_add_u32 s13, s6, s2
	s_addc_u32 s14, s7, s3
	s_and_b32 s15, s8, 0xffff
.LBB2_2:                                ; %.lr.ph
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB2_3 Depth 2
                                        ;       Child Loop BB2_6 Depth 3
	v_lshl_add_u32 v1, v0, 1, v0
	v_mul_lo_u32 v10, v0, 6
	s_mov_b32 s5, s4
	s_mov_b32 s6, s4
	s_mov_b32 s7, s4
	v_ashrrev_i32_e32 v2, 31, v1
	s_mov_b32 s8, s4
	s_mov_b32 s9, s4
	v_mov_b32_e32 v11, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[1:2], 2, v[1:2]
	v_add_co_u32 v1, vcc_lo, s11, v1
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v2, vcc_lo, s12, v2, vcc_lo
	global_load_b96 v[7:9], v[1:2], off
	v_dual_mov_b32 v1, s4 :: v_dual_mov_b32 v4, s7
	v_dual_mov_b32 v2, s5 :: v_dual_mov_b32 v3, s6
	v_dual_mov_b32 v6, s9 :: v_dual_mov_b32 v5, s8
	s_mov_b32 s5, s1
.LBB2_3:                                ;   Parent Loop BB2_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB2_6 Depth 3
	s_mov_b32 s6, exec_lo
	v_cmpx_ne_u32_e64 s5, v0
	s_cbranch_execz .LBB2_8
; %bb.4:                                ;   in Loop: Header=BB2_3 Depth=2
	s_mul_i32 s0, s5, 3
	v_cmp_eq_u32_e32 vcc_lo, 1, v11
	s_lshl_b64 s[2:3], s[0:1], 2
	s_mov_b32 s7, exec_lo
	s_add_u32 s2, s11, s2
	s_addc_u32 s3, s12, s3
	s_clause 0x1
	s_load_b64 s[8:9], s[2:3], 0x0
	s_load_b32 s0, s[2:3], 0x8
	v_cndmask_b32_e32 v12, v1, v2, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, 2, v11
	s_waitcnt vmcnt(0) lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_dual_subrev_f32 v13, s9, v8 :: v_dual_cndmask_b32 v14, v12, v3
	v_cmp_eq_u32_e32 vcc_lo, 3, v11
	v_dual_subrev_f32 v15, s8, v7 :: v_dual_mul_f32 v12, v13, v13
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_dual_cndmask_b32 v13, v14, v4 :: v_dual_subrev_f32 v14, s0, v9
	v_cmp_eq_u32_e32 vcc_lo, 4, v11
	v_cndmask_b32_e32 v13, v13, v5, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, 5, v11
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_fmac_f32 v12, v15, v15 :: v_dual_cndmask_b32 v13, v13, v6
	v_fmac_f32_e32 v12, v14, v14
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_lt_f32_e32 v12, v13
	s_cbranch_execz .LBB2_7
; %bb.5:                                ;   in Loop: Header=BB2_3 Depth=2
	v_cmp_eq_u32_e32 vcc_lo, 5, v11
	v_add_nc_u32_e32 v13, v11, v10
	s_mov_b64 s[2:3], 0
	v_cndmask_b32_e32 v6, v6, v12, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, 4, v11
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v14, 31, v13
	v_cndmask_b32_e32 v5, v5, v12, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, 3, v11
	v_lshlrev_b64 v[13:14], 2, v[13:14]
	v_dual_mov_b32 v15, s5 :: v_dual_cndmask_b32 v4, v4, v12
	v_cmp_eq_u32_e32 vcc_lo, 2, v11
	v_cndmask_b32_e32 v3, v3, v12, vcc_lo
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v13, vcc_lo, s13, v13
	v_add_co_ci_u32_e32 v14, vcc_lo, s14, v14, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, 1, v11
	global_store_b32 v[13:14], v15, off
	v_cndmask_b32_e32 v2, v2, v12, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, 0, v11
	v_cndmask_b32_e32 v1, v1, v12, vcc_lo
.LBB2_6:                                ;   Parent Loop BB2_2 Depth=1
                                        ;     Parent Loop BB2_3 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	v_cmp_eq_u32_e32 vcc_lo, 1, v11
	s_cmp_eq_u32 s2, 1
	s_cselect_b32 s0, -1, 0
	s_cmp_eq_u32 s2, 2
	v_cndmask_b32_e32 v12, v1, v2, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, 2, v11
	v_cndmask_b32_e64 v13, v1, v2, s0
	s_cselect_b32 s0, -1, 0
	s_cmp_eq_u32 s2, 3
	v_cndmask_b32_e32 v12, v12, v3, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, 3, v11
	v_cndmask_b32_e64 v13, v13, v3, s0
	s_cselect_b32 s0, -1, 0
	s_cmp_eq_u32 s2, 4
	v_cndmask_b32_e32 v12, v12, v4, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, 4, v11
	v_cndmask_b32_e64 v13, v13, v4, s0
	s_cselect_b32 s0, -1, 0
	s_cmp_eq_u32 s2, 5
	v_cndmask_b32_e32 v12, v12, v5, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, 5, v11
	v_cndmask_b32_e64 v13, v13, v5, s0
	s_cselect_b32 s0, -1, 0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v12, v12, v6, vcc_lo
	v_cndmask_b32_e64 v13, v13, v6, s0
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_lt_f32_e32 vcc_lo, v12, v13
	v_cndmask_b32_e64 v11, v11, s2, vcc_lo
	s_add_u32 s2, s2, 1
	s_addc_u32 s3, s3, 0
	s_cmp_lg_u32 s2, 6
	s_cbranch_scc1 .LBB2_6
.LBB2_7:                                ; %Flow77
                                        ;   in Loop: Header=BB2_3 Depth=2
	s_or_b32 exec_lo, exec_lo, s7
.LBB2_8:                                ; %.loopexit
                                        ;   in Loop: Header=BB2_3 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s6
	s_add_i32 s5, s5, 1
	s_cmp_eq_u32 s5, s10
	s_cbranch_scc0 .LBB2_3
; %bb.9:                                ; %._crit_edge
                                        ;   in Loop: Header=BB2_2 Depth=1
	v_add_nc_u32_e32 v0, s15, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_cmp_le_i32_e32 vcc_lo, s10, v0
	s_or_b32 s16, vcc_lo, s16
	s_and_not1_b32 exec_lo, exec_lo, s16
	s_cbranch_execnz .LBB2_2
.LBB2_10:                               ; %Flow79
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z9knnKerneliiPKfPi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 16
		.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	_Z9knnKerneliiPKfPi, .Lfunc_end2-_Z9knnKerneliiPKfPi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 696
; NumSgprs: 19
; NumVgprs: 16
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 19
; NumVGPRsForWavesPerEU: 16
; 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	_Z11cube_selectiifPKfPi ; -- Begin function _Z11cube_selectiifPKfPi
	.globl	_Z11cube_selectiifPKfPi
	.p2align	8
	.type	_Z11cube_selectiifPKfPi,@function
_Z11cube_selectiifPKfPi:                ; @_Z11cube_selectiifPKfPi
; %bb.0:
	s_load_b64 s[2:3], s[0:1], 0x4
	s_mov_b32 s4, exec_lo
	s_waitcnt lgkmcnt(0)
	v_cmpx_gt_i32_e64 s2, v0
	s_cbranch_execz .LBB3_13
; %bb.1:                                ; %.lr.ph82
	s_clause 0x1
	s_load_b128 s[8:11], s[0:1], 0x10
	s_load_b32 s4, s[0:1], 0x2c
	s_mul_i32 s5, s15, s2
	v_mul_f32_e64 v15, s3, s3
	s_mul_i32 s0, s5, 3
	v_lshlrev_b32_e32 v12, 3, v0
	s_ashr_i32 s1, s0, 31
                                        ; implicit-def: $vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_4) | instid1(SALU_CYCLE_1)
	s_lshl_b64 s[0:1], s[0:1], 2
	s_waitcnt lgkmcnt(0)
	s_add_u32 s6, s8, s0
	s_addc_u32 s7, s9, s1
	s_lshl_b32 s0, s5, 3
	s_ashr_i32 s1, s0, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b64 s[0:1], s[0:1], 2
	s_add_u32 s3, s10, s0
	s_addc_u32 s8, s11, s1
	s_and_b32 s9, s4, 0xffff
	s_mov_b32 s1, 0
	s_lshl_b32 s10, s9, 3
	s_mov_b32 s11, 0
.LBB3_2:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB3_3 Depth 2
                                        ;     Child Loop BB3_5 Depth 2
	s_waitcnt vmcnt(0)
	v_lshl_add_u32 v9, v0, 1, v0
	v_ashrrev_i32_e32 v13, 31, v12
	s_mov_b64 s[4:5], 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v10, 31, v9
	v_lshlrev_b64 v[13:14], 2, v[12:13]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[9:10], 2, v[9:10]
	v_add_co_u32 v9, vcc_lo, s6, v9
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_ci_u32_e32 v10, vcc_lo, s7, v10, vcc_lo
	v_add_co_u32 v13, vcc_lo, s3, v13
	v_add_co_ci_u32_e32 v14, vcc_lo, s8, v14, vcc_lo
	global_load_b96 v[9:11], v[9:10], off
.LBB3_3:                                ;   Parent Loop BB3_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	global_store_b32 v[13:14], v0, off
	v_add_co_u32 v13, vcc_lo, v13, 4
	v_add_co_ci_u32_e32 v14, vcc_lo, 0, v14, vcc_lo
	s_mov_b32 m0, s4
	s_add_u32 s4, s4, 1
	s_addc_u32 s5, s5, 0
	s_cmp_lg_u32 s4, 8
	v_movreld_b32_e32 v1, 0x4cbebc20
	s_cbranch_scc1 .LBB3_3
; %bb.4:                                ; %.lr.ph.preheader
                                        ;   in Loop: Header=BB3_2 Depth=1
	v_lshlrev_b32_e32 v13, 3, v0
	s_mov_b32 s0, 0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s12, s0
.LBB3_5:                                ; %.lr.ph
                                        ;   Parent Loop BB3_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_mov_b32 s13, exec_lo
	v_cmpx_ne_u32_e64 s12, v0
	s_cbranch_execz .LBB3_11
; %bb.6:                                ;   in Loop: Header=BB3_5 Depth=2
	s_lshl_b64 s[4:5], s[0:1], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s14, s6, s4
	s_addc_u32 s15, s7, s5
	s_clause 0x1
	s_load_b64 s[4:5], s[14:15], 0x0
	s_load_b32 s15, s[14:15], 0x8
	s_mov_b32 s14, exec_lo
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_subrev_f32_e32 v14, s5, v10
	v_subrev_f32_e32 v16, s4, v9
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v14, v14, v14
	v_fmac_f32_e32 v14, v16, v16
	v_subrev_f32_e32 v16, s15, v11
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v14, v16, v16
	v_cmpx_ngt_f32_e32 v14, v15
	s_cbranch_execz .LBB3_10
; %bb.7:                                ;   in Loop: Header=BB3_5 Depth=2
	v_cmp_gt_f32_e32 vcc_lo, s4, v9
	s_mov_b32 s4, exec_lo
	v_cndmask_b32_e64 v16, 0, 1, vcc_lo
	v_cmp_gt_f32_e32 vcc_lo, s5, v10
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_lshlrev_b32_e32 v16, 2, v16
	v_cndmask_b32_e64 v17, 0, 1, vcc_lo
	v_cmp_gt_f32_e32 vcc_lo, s15, v11
	v_lshlrev_b32_e32 v17, 1, v17
	v_cndmask_b32_e64 v18, 0, 1, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_or3_b32 v16, v17, v16, v18
	v_cmp_eq_u32_e32 vcc_lo, 1, v16
	v_cndmask_b32_e32 v17, v1, v2, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, 2, v16
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v17, v17, v3, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, 3, v16
	v_cndmask_b32_e32 v17, v17, v4, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, 4, v16
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v17, v17, v5, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, 5, v16
	v_cndmask_b32_e32 v17, v17, v6, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, 6, v16
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v17, v17, v7, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, 7, v16
	v_cndmask_b32_e32 v17, v17, v8, vcc_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_lt_f32_e32 v14, v17
	s_cbranch_execz .LBB3_9
; %bb.8:                                ;   in Loop: Header=BB3_5 Depth=2
	v_cmp_eq_u32_e32 vcc_lo, 7, v16
	v_or_b32_e32 v17, v16, v13
	v_dual_mov_b32 v19, s12 :: v_dual_cndmask_b32 v8, v8, v14
	v_cmp_eq_u32_e32 vcc_lo, 6, v16
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v18, 31, v17
	v_cndmask_b32_e32 v7, v7, v14, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, 5, v16
	v_lshlrev_b64 v[17:18], 2, v[17:18]
	v_cndmask_b32_e32 v6, v6, v14, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, 4, v16
	v_cndmask_b32_e32 v5, v5, v14, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, 3, v16
	v_cndmask_b32_e32 v4, v4, v14, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, 2, v16
	v_cndmask_b32_e32 v3, v3, v14, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, 1, v16
	v_cndmask_b32_e32 v2, v2, v14, vcc_lo
	v_add_co_u32 v17, vcc_lo, s3, v17
	v_add_co_ci_u32_e32 v18, vcc_lo, s8, v18, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, 0, v16
	global_store_b32 v[17:18], v19, off
	v_cndmask_b32_e32 v1, v1, v14, vcc_lo
.LBB3_9:                                ; %Flow
                                        ;   in Loop: Header=BB3_5 Depth=2
	s_or_b32 exec_lo, exec_lo, s4
.LBB3_10:                               ; %Flow102
                                        ;   in Loop: Header=BB3_5 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s14
.LBB3_11:                               ;   in Loop: Header=BB3_5 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s13
	s_add_i32 s12, s12, 1
	s_add_i32 s0, s0, 3
	s_cmp_eq_u32 s2, s12
	s_cbranch_scc0 .LBB3_5
; %bb.12:                               ; %._crit_edge
                                        ;   in Loop: Header=BB3_2 Depth=1
	v_add_nc_u32_e32 v0, s9, v0
	v_add_nc_u32_e32 v12, s10, v12
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_cmp_le_i32_e32 vcc_lo, s2, v0
	s_or_b32 s11, vcc_lo, s11
	s_and_not1_b32 exec_lo, exec_lo, s11
	s_cbranch_execnz .LBB3_2
.LBB3_13:                               ; %Flow104
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z11cube_selectiifPKfPi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 20
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end3:
	.size	_Z11cube_selectiifPKfPi, .Lfunc_end3-_Z11cube_selectiifPKfPi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 712
; NumSgprs: 18
; NumVgprs: 20
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 20
; 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	_Z15group_point_gpuiiiiiPKfPKiPf ; -- Begin function _Z15group_point_gpuiiiiiPKfPKiPf
	.globl	_Z15group_point_gpuiiiiiPKfPKiPf
	.p2align	8
	.type	_Z15group_point_gpuiiiiiPKfPKiPf,@function
_Z15group_point_gpuiiiiiPKfPKiPf:       ; @_Z15group_point_gpuiiiiiPKfPKiPf
; %bb.0:
	s_load_b128 s[4:7], s[0:1], 0x4
	s_mov_b32 s2, exec_lo
	s_waitcnt lgkmcnt(0)
	v_cmpx_gt_i32_e64 s6, v0
	s_cbranch_execz .LBB4_9
; %bb.1:                                ; %.preheader.lr.ph
	s_clause 0x2
	s_load_b128 s[8:11], s[0:1], 0x18
	s_load_b32 s18, s[0:1], 0x3c
	s_load_b64 s[12:13], s[0:1], 0x28
	s_mul_i32 s16, s7, s6
	s_mul_i32 s1, s15, s5
	s_mul_i32 s2, s16, s15
	s_mul_i32 s14, s1, s4
	s_ashr_i32 s3, s2, 31
	s_mul_i32 s16, s1, s16
	s_lshl_b64 s[2:3], s[2:3], 2
	s_ashr_i32 s15, s14, 31
	s_mul_i32 s19, s7, s5
	v_mov_b32_e32 v2, 0
	v_mul_lo_u32 v8, s19, v0
	s_mov_b32 s0, 0
	s_waitcnt lgkmcnt(0)
	s_add_u32 s1, s10, s2
	s_addc_u32 s2, s11, s3
	s_ashr_i32 s17, s16, 31
	s_and_b32 s3, s18, 0xffff
	s_cmp_gt_i32 s7, 0
	s_cselect_b32 s4, -1, 0
	s_cmp_gt_i32 s5, 0
	s_cselect_b32 s10, -1, 0
	s_lshl_b64 s[16:17], s[16:17], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s11, s12, s16
	s_addc_u32 s12, s13, s17
	s_lshl_b64 s[14:15], s[14:15], 2
	s_mul_i32 s13, s19, s3
	s_add_u32 s8, s8, s14
	s_addc_u32 s9, s9, s15
.LBB4_2:                                ; %.preheader
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB4_4 Depth 2
                                        ;       Child Loop BB4_6 Depth 3
	s_and_not1_b32 vcc_lo, exec_lo, s4
	s_cbranch_vccnz .LBB4_8
; %bb.3:                                ; %.lr.ph47
                                        ;   in Loop: Header=BB4_2 Depth=1
	v_mul_lo_u32 v9, v0, s7
	v_mov_b32_e32 v3, v8
	s_mov_b32 s14, 0
.LBB4_4:                                ;   Parent Loop BB4_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB4_6 Depth 3
	s_and_not1_b32 vcc_lo, exec_lo, s10
	s_cbranch_vccnz .LBB4_7
; %bb.5:                                ; %.lr.ph
                                        ;   in Loop: Header=BB4_4 Depth=2
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v1, s14, v9
	s_mov_b32 s15, s5
	v_lshlrev_b64 v[4:5], 2, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, s1, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s2, v5, vcc_lo
	global_load_b32 v1, v[4:5], off
	v_ashrrev_i32_e32 v4, 31, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[10:11], 2, v[3:4]
	v_add_co_u32 v4, vcc_lo, s11, v10
	s_waitcnt vmcnt(0)
	v_mul_lo_u32 v5, v1, s5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v6, 31, v5
	v_lshlrev_b64 v[6:7], 2, v[5:6]
	v_add_co_ci_u32_e32 v5, vcc_lo, s12, v11, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v6, vcc_lo, s8, v6
	v_add_co_ci_u32_e32 v7, vcc_lo, s9, v7, vcc_lo
.LBB4_6:                                ;   Parent Loop BB4_2 Depth=1
                                        ;     Parent Loop BB4_4 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	global_load_b32 v1, v[6:7], off
	v_add_co_u32 v6, vcc_lo, v6, 4
	v_add_co_ci_u32_e32 v7, vcc_lo, 0, v7, vcc_lo
	s_add_i32 s15, s15, -1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s15, 0
	s_waitcnt vmcnt(0)
	global_store_b32 v[4:5], v1, off
	v_add_co_u32 v4, vcc_lo, v4, 4
	v_add_co_ci_u32_e32 v5, vcc_lo, 0, v5, vcc_lo
	s_cbranch_scc0 .LBB4_6
.LBB4_7:                                ; %._crit_edge
                                        ;   in Loop: Header=BB4_4 Depth=2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_add_nc_u32_e32 v3, s5, v3
	s_add_i32 s14, s14, 1
	s_cmp_eq_u32 s14, s7
	s_cbranch_scc0 .LBB4_4
.LBB4_8:                                ; %._crit_edge48
                                        ;   in Loop: Header=BB4_2 Depth=1
	v_add_nc_u32_e32 v0, s3, v0
	v_add_nc_u32_e32 v8, s13, v8
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_cmp_le_i32_e32 vcc_lo, s6, v0
	s_or_b32 s0, vcc_lo, s0
	s_and_not1_b32 exec_lo, exec_lo, s0
	s_cbranch_execnz .LBB4_2
.LBB4_9:                                ; %._crit_edge50
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z15group_point_gpuiiiiiPKfPKiPf
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 304
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 12
		.amdhsa_next_free_sgpr 20
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end4:
	.size	_Z15group_point_gpuiiiiiPKfPKiPf, .Lfunc_end4-_Z15group_point_gpuiiiiiPKfPKiPf
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 448
; NumSgprs: 22
; NumVgprs: 12
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 22
; NumVGPRsForWavesPerEU: 12
; 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	_Z12gather_pointiiiPKiPKfPf ; -- Begin function _Z12gather_pointiiiPKiPKfPf
	.globl	_Z12gather_pointiiiPKiPKfPf
	.p2align	8
	.type	_Z12gather_pointiiiPKiPKfPf,@function
_Z12gather_pointiiiPKiPKfPf:            ; @_Z12gather_pointiiiPKiPKfPf
; %bb.0:
	s_load_b64 s[2:3], s[0:1], 0x4
	s_mov_b32 s4, exec_lo
	s_waitcnt lgkmcnt(0)
	v_cmpx_gt_i32_e64 s3, v0
	s_cbranch_execz .LBB5_3
; %bb.1:                                ; %.lr.ph
	s_clause 0x2
	s_load_b128 s[4:7], s[0:1], 0x10
	s_load_b64 s[8:9], s[0:1], 0x20
	s_load_b32 s14, s[0:1], 0x34
	s_mul_i32 s10, s15, s3
	s_mul_i32 s2, s15, s2
	s_ashr_i32 s11, s10, 31
	s_mul_i32 s12, s2, 3
	s_lshl_b64 s[0:1], s[10:11], 2
	s_mul_i32 s10, s10, 3
	v_mul_u32_u24_e32 v2, 3, v0
	s_waitcnt lgkmcnt(0)
	s_add_u32 s0, s4, s0
	s_addc_u32 s1, s5, s1
	s_ashr_i32 s13, s12, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b64 s[4:5], s[12:13], 2
	s_add_u32 s2, s6, s4
	s_addc_u32 s4, s7, s5
	s_ashr_i32 s11, s10, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b64 s[6:7], s[10:11], 2
	s_add_u32 s5, s8, s6
	s_addc_u32 s6, s9, s7
	s_and_b32 s7, s14, 0xffff
	s_mov_b32 s9, 0
	s_mul_i32 s8, s7, 3
.LBB5_2:                                ; =>This Inner Loop Header: Depth=1
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[3:4], 2, v[0:1]
	v_add_nc_u32_e32 v0, s7, v0
	v_add_co_u32 v3, vcc_lo, s0, v3
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v4, vcc_lo
	global_load_b32 v1, v[3:4], off
	s_waitcnt vmcnt(0)
	v_lshl_add_u32 v3, v1, 1, v1
	v_ashrrev_i32_e32 v4, 31, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[3:4], 2, v[3:4]
	v_add_co_u32 v5, vcc_lo, s2, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v6, vcc_lo, s4, v4, vcc_lo
	v_ashrrev_i32_e32 v3, 31, v2
	global_load_b32 v1, v[5:6], off
	v_lshlrev_b64 v[3:4], 2, v[2:3]
	v_add_nc_u32_e32 v2, s8, v2
	v_add_co_u32 v3, vcc_lo, s5, v3
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v4, vcc_lo, s6, v4, vcc_lo
	v_cmp_le_i32_e32 vcc_lo, s3, v0
	s_or_b32 s9, vcc_lo, s9
	s_waitcnt vmcnt(0)
	global_store_b32 v[3:4], v1, off
	global_load_b32 v1, v[5:6], off offset:4
	s_waitcnt vmcnt(0)
	global_store_b32 v[3:4], v1, off offset:4
	global_load_b32 v1, v[5:6], off offset:8
	s_waitcnt vmcnt(0)
	global_store_b32 v[3:4], v1, off offset:8
	s_and_not1_b32 exec_lo, exec_lo, s9
	s_cbranch_execnz .LBB5_2
.LBB5_3:                                ; %Flow42
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z12gather_pointiiiPKiPKfPf
		.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 7
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end5:
	.size	_Z12gather_pointiiiPKiPKfPf, .Lfunc_end5-_Z12gather_pointiiiPKiPKfPf
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 360
; NumSgprs: 18
; NumVgprs: 7
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 7
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z17gatherpointKerneliiiPKfPKiPf ; -- Begin function _Z17gatherpointKerneliiiPKfPKiPf
	.globl	_Z17gatherpointKerneliiiPKfPKiPf
	.p2align	8
	.type	_Z17gatherpointKerneliiiPKfPKiPf,@function
_Z17gatherpointKerneliiiPKfPKiPf:       ; @_Z17gatherpointKerneliiiPKfPKiPf
; %bb.0:
	s_load_b128 s[4:7], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_cmp_ge_i32 s14, s4
	s_cbranch_scc1 .LBB6_6
; %bb.1:                                ; %.lr.ph43
	s_clause 0x3
	s_load_b32 s16, s[0:1], 0x34
	s_load_b32 s7, s[0:1], 0x28
	s_load_b128 s[8:11], s[0:1], 0x10
	s_load_b64 s[2:3], s[0:1], 0x20
	s_add_u32 s12, s0, 40
	s_addc_u32 s13, s1, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s16, s16, 0xffff
	s_mul_i32 s17, s7, s6
	s_mul_i32 s0, s15, s16
	s_mul_i32 s15, s14, s6
	v_add_nc_u32_e32 v2, s0, v0
	v_add3_u32 v0, s0, s15, v0
	s_mul_i32 s18, s17, 3
	s_mul_i32 s19, s16, 3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_gt_i32_e32 vcc_lo, s6, v2
	v_lshl_add_u32 v3, v0, 1, v0
.LBB6_2:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB6_4 Depth 2
	s_and_saveexec_b32 s20, vcc_lo
	s_cbranch_execz .LBB6_5
; %bb.3:                                ; %.lr.ph
                                        ;   in Loop: Header=BB6_2 Depth=1
	s_load_b32 s0, s[12:13], 0x4
	s_delay_alu instid0(VALU_DEP_1)
	v_mov_b32_e32 v0, v3
	v_mov_b32_e32 v4, v2
	s_mul_i32 s21, s14, s5
	s_mov_b32 s24, 0
	s_waitcnt lgkmcnt(0)
	s_mul_i32 s22, s0, s16
	s_mul_i32 s23, s19, s0
.LBB6_4:                                ;   Parent Loop BB6_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	v_add_nc_u32_e32 v5, s15, v4
	v_add_nc_u32_e32 v4, s22, v4
	s_delay_alu instid0(VALU_DEP_2) | 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_1)
	v_add_co_u32 v5, s0, s10, v5
	v_add_co_ci_u32_e64 v6, s0, s11, v6, s0
	global_load_b32 v1, v[5:6], off
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v1, s21, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_lshl_add_u32 v5, v1, 1, v1
	v_ashrrev_i32_e32 v1, 31, v0
	v_ashrrev_i32_e32 v6, 31, v5
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[8:9], 2, v[0:1]
	v_add_nc_u32_e32 v0, s23, v0
	v_lshlrev_b64 v[5:6], 2, v[5:6]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v8, s1, s2, v8
	v_add_co_ci_u32_e64 v9, s1, s3, v9, s1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v5, s0, s8, v5
	v_add_co_ci_u32_e64 v6, s0, s9, v6, s0
	v_cmp_le_i32_e64 s0, s6, v4
	global_load_b96 v[5:7], v[5:6], off
	s_or_b32 s24, s0, s24
	s_waitcnt vmcnt(0)
	global_store_b96 v[8:9], v[5:7], off
	s_and_not1_b32 exec_lo, exec_lo, s24
	s_cbranch_execnz .LBB6_4
.LBB6_5:                                ; %Flow59
                                        ;   in Loop: Header=BB6_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s20
	s_delay_alu instid0(VALU_DEP_1)
	v_add_nc_u32_e32 v3, s18, v3
	s_add_i32 s14, s7, s14
	s_add_i32 s15, s15, s17
	s_cmp_ge_i32 s14, s4
	s_cbranch_scc0 .LBB6_2
.LBB6_6:                                ; %._crit_edge44
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z17gatherpointKerneliiiPKfPKiPf
		.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 10
		.amdhsa_next_free_sgpr 25
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end6:
	.size	_Z17gatherpointKerneliiiPKfPKiPf, .Lfunc_end6-_Z17gatherpointKerneliiiPKfPKiPf
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 396
; NumSgprs: 27
; NumVgprs: 10
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 3
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 27
; NumVGPRsForWavesPerEU: 10
; Occupancy: 16
; WaveLimiterHint : 1
; 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	_Z27farthestpointsamplingKerneliiiPKfPfPi ; -- Begin function _Z27farthestpointsamplingKerneliiiPKfPfPi
	.globl	_Z27farthestpointsamplingKerneliiiPKfPfPi
	.p2align	8
	.type	_Z27farthestpointsamplingKerneliiiPKfPfPi,@function
_Z27farthestpointsamplingKerneliiiPKfPfPi: ; @_Z27farthestpointsamplingKerneliiiPKfPfPi
; %bb.0:
	s_load_b128 s[8:11], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_cmp_lt_i32 s10, 1
	s_cbranch_scc1 .LBB7_33
; %bb.1:
	s_cmp_ge_i32 s15, s8
	s_cbranch_scc1 .LBB7_33
; %bb.2:                                ; %.lr.ph142
	s_clause 0x2
	s_load_b32 s11, s[0:1], 0x28
	s_load_b128 s[16:19], s[0:1], 0x10
	s_load_b64 s[6:7], s[0:1], 0x20
	s_mul_i32 s14, s15, s9
	s_add_u32 s12, s0, 40
	v_dual_mov_b32 v2, 0 :: v_dual_lshlrev_b32 v13, 2, v0
	v_lshlrev_b32_e32 v14, 1, v0
	v_dual_mov_b32 v20, 0x7e967699 :: v_dual_add_nc_u32 v1, s14, v0
	s_addc_u32 s13, s1, 0
	s_min_i32 s24, s9, 0xc00
	v_cmp_eq_u32_e64 s2, 0, v0
	s_mul_i32 s24, s24, 3
	v_cmp_gt_i32_e64 s3, s9, v0
	v_mul_u32_u24_e32 v15, 12, v0
	v_cmp_gt_i32_e64 s0, s24, v0
	v_or_b32_e32 v16, 0x9000, v13
	v_add_nc_u32_e32 v17, 0x9800, v13
	v_or_b32_e32 v18, 1, v14
	v_lshl_add_u32 v19, v1, 1, v1
	s_cmp_lg_u32 s10, 1
	s_waitcnt lgkmcnt(0)
	s_mul_i32 s27, s11, s9
	s_cselect_b32 s25, -1, 0
	s_mul_i32 s26, s14, 3
	s_mul_i32 s27, s27, 3
	s_mov_b64 s[4:5], src_shared_base
.LBB7_3:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB7_7 Depth 2
                                        ;     Child Loop BB7_10 Depth 2
                                        ;     Child Loop BB7_13 Depth 2
                                        ;       Child Loop BB7_15 Depth 3
                                        ;       Child Loop BB7_25 Depth 3
	s_mul_i32 s20, s15, s10
	s_and_saveexec_b32 s1, s2
	s_cbranch_execz .LBB7_5
; %bb.4:                                ;   in Loop: Header=BB7_3 Depth=1
	s_ashr_i32 s21, s20, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b64 s[22:23], s[20:21], 2
	s_add_u32 s22, s6, s22
	s_addc_u32 s23, s7, s23
	global_store_b32 v2, v2, s[22:23]
.LBB7_5:                                ;   in Loop: Header=BB7_3 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	s_and_saveexec_b32 s4, s3
	s_cbranch_execz .LBB7_8
; %bb.6:                                ; %.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 s21, s1, 0xffff
.LBB7_7:                                ;   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, s14, v3
	v_add_nc_u32_e32 v3, s21, 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, s9, v3
	s_or_b32 s22, vcc_lo, s22
	v_add_co_u32 v4, s1, s18, v4
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v5, s1, s19, v5, s1
	global_store_b32 v[4:5], v20, off
	s_and_not1_b32 exec_lo, exec_lo, s22
	s_cbranch_execnz .LBB7_7
.LBB7_8:                                ; %Flow174
                                        ;   in Loop: Header=BB7_3 Depth=1
	s_or_b32 exec_lo, exec_lo, s4
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB7_11
; %bb.9:                                ; %.lr.ph123
                                        ;   in Loop: Header=BB7_3 Depth=1
	s_load_b32 s4, s[12:13], 0xc
	v_mov_b32_e32 v1, v13
	v_mov_b32_e32 v3, v0
	s_mov_b32 s22, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s4, s4, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1)
	s_lshl_b32 s21, s4, 2
.LBB7_10:                               ;   Parent Loop BB7_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	v_add_nc_u32_e32 v4, s26, v3
	v_add_nc_u32_e32 v3, s4, v3
	s_delay_alu instid0(VALU_DEP_2) | 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, s16, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s17, v5, vcc_lo
	v_cmp_le_i32_e32 vcc_lo, s24, v3
	global_load_b32 v4, v[4:5], off
	s_or_b32 s22, vcc_lo, s22
	s_waitcnt vmcnt(0)
	ds_store_b32 v1, v4
	v_add_nc_u32_e32 v1, s21, v1
	s_and_not1_b32 exec_lo, exec_lo, s22
	s_cbranch_execnz .LBB7_10
.LBB7_11:                               ; %Flow172
                                        ;   in Loop: Header=BB7_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, s25
	s_waitcnt lgkmcnt(0)
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_cbranch_vccnz .LBB7_32
; %bb.12:                               ; %.lr.ph138
                                        ;   in Loop: Header=BB7_3 Depth=1
	s_load_b32 s1, s[12:13], 0xc
	s_mul_i32 s28, s15, s9
	s_mov_b32 s29, 1
	s_waitcnt lgkmcnt(0)
	s_and_b32 s21, s1, 0xffff
	s_mov_b32 s1, 0
	s_cmp_gt_u32 s21, 1
	s_mul_i32 s31, s21, 12
	s_cselect_b32 s30, -1, 0
	s_mul_i32 s33, s21, 3
.LBB7_13:                               ;   Parent Loop BB7_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB7_15 Depth 3
                                        ;       Child Loop BB7_25 Depth 3
	v_dual_mov_b32 v21, 0 :: v_dual_mov_b32 v22, -1.0
	s_and_saveexec_b32 s34, s3
	s_cbranch_execz .LBB7_23
; %bb.14:                               ; %.lr.ph128.preheader
                                        ;   in Loop: Header=BB7_13 Depth=2
	s_add_i32 s1, s1, s28
	v_dual_mov_b32 v21, 0 :: v_dual_mov_b32 v22, -1.0
	s_mul_i32 s22, s1, 3
	v_dual_mov_b32 v3, v19 :: v_dual_mov_b32 v24, v0
	s_ashr_i32 s23, s22, 31
	v_mov_b32_e32 v23, v15
	s_lshl_b64 s[22:23], s[22:23], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s36, s16, s22
	s_addc_u32 s37, s17, s23
	s_clause 0x1
	s_load_b64 s[22:23], s[36:37], 0x0
	s_load_b32 s35, s[36:37], 0x8
	s_mov_b32 s36, 0
.LBB7_15:                               ; %.lr.ph128
                                        ;   Parent Loop BB7_3 Depth=1
                                        ;     Parent Loop BB7_13 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	v_add_nc_u32_e32 v1, s14, v24
	s_mov_b32 s1, exec_lo
                                        ; implicit-def: $vgpr11_vgpr12
                                        ; implicit-def: $vgpr9_vgpr10
                                        ; implicit-def: $vgpr7_vgpr8
	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, s18, v5
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v6, vcc_lo, s19, v6, vcc_lo
	global_load_b32 v1, v[5:6], off
	v_cmpx_lt_i32_e32 0xbff, v24
	s_xor_b32 s1, exec_lo, s1
; %bb.16:                               ;   in Loop: Header=BB7_15 Depth=3
	v_ashrrev_i32_e32 v4, 31, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[7:8], 2, v[3:4]
	v_add_co_u32 v7, vcc_lo, s16, v7
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v8, vcc_lo, s17, v8, vcc_lo
	v_add_co_u32 v9, vcc_lo, v7, 4
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v10, vcc_lo, 0, v8, vcc_lo
	v_add_co_u32 v11, vcc_lo, v7, 8
	v_add_co_ci_u32_e32 v12, vcc_lo, 0, v8, vcc_lo
; %bb.17:                               ; %Flow166
                                        ;   in Loop: Header=BB7_15 Depth=3
	s_and_not1_saveexec_b32 s37, s1
; %bb.18:                               ;   in Loop: Header=BB7_15 Depth=3
	v_add_nc_u32_e32 v4, 4, v23
	v_add_nc_u32_e32 v10, 8, v23
	v_cmp_ne_u32_e32 vcc_lo, -1, v23
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cmp_ne_u32_e64 s1, -1, v4
	v_cmp_ne_u32_e64 s4, -1, v10
	v_cndmask_b32_e64 v8, 0, s5, vcc_lo
	v_cndmask_b32_e32 v7, 0, v23, vcc_lo
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v9, 0, v4, s1
	v_cndmask_b32_e64 v11, 0, v10, s4
	v_cndmask_b32_e64 v10, 0, s5, s1
	v_cndmask_b32_e64 v12, 0, s5, s4
; %bb.19:                               ;   in Loop: Header=BB7_15 Depth=3
	s_or_b32 exec_lo, exec_lo, s37
	flat_load_b32 v4, v[7:8]
	flat_load_b32 v7, v[9:10]
	flat_load_b32 v8, v[11:12]
	s_mov_b32 s1, exec_lo
	s_waitcnt vmcnt(1) lgkmcnt(0)
	v_dual_subrev_f32 v4, s22, v4 :: v_dual_subrev_f32 v7, s23, v7
	s_waitcnt vmcnt(0)
	v_subrev_f32_e32 v8, s35, v8
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v4, v4, v4
	v_dual_fmac_f32 v4, v7, v7 :: v_dual_max_f32 v7, v1, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v4, v8, v8
	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_21
; %bb.20:                               ;   in Loop: Header=BB7_15 Depth=3
	global_store_b32 v[5:6], v4, off
.LBB7_21:                               ;   in Loop: Header=BB7_15 Depth=3
	s_or_b32 exec_lo, exec_lo, s1
	v_cmp_gt_f32_e32 vcc_lo, v4, v22
	v_add_nc_u32_e32 v3, s33, v3
	v_add_nc_u32_e32 v23, s31, v23
	v_cndmask_b32_e32 v21, v21, v24, vcc_lo
	v_add_nc_u32_e32 v24, s21, v24
	v_cndmask_b32_e32 v22, v22, v4, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_cmp_le_i32_e32 vcc_lo, s9, v24
	s_or_b32 s36, vcc_lo, s36
	s_and_not1_b32 exec_lo, exec_lo, s36
	s_cbranch_execnz .LBB7_15
; %bb.22:                               ; %Flow167
                                        ;   in Loop: Header=BB7_13 Depth=2
	s_or_b32 exec_lo, exec_lo, s36
.LBB7_23:                               ; %Flow168
                                        ;   in Loop: Header=BB7_13 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s34
	s_and_not1_b32 vcc_lo, exec_lo, s30
	ds_store_b32 v16, v22
	ds_store_b32 v17, v21
	s_cbranch_vccnz .LBB7_29
; %bb.24:                               ; %.lr.ph133.preheader
                                        ;   in Loop: Header=BB7_13 Depth=2
	s_mov_b32 s1, 0
.LBB7_25:                               ; %.lr.ph133
                                        ;   Parent Loop BB7_3 Depth=1
                                        ;     Parent Loop BB7_13 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s4, s1
	s_add_i32 s1, s1, 1
	s_waitcnt lgkmcnt(0)
	s_waitcnt_vscnt null, 0x0
	s_lshr_b32 s22, s21, s1
	s_barrier
	v_cmp_gt_u32_e32 vcc_lo, s22, v0
	buffer_gl0_inv
	s_and_saveexec_b32 s22, vcc_lo
	s_cbranch_execz .LBB7_28
; %bb.26:                               ;   in Loop: Header=BB7_25 Depth=3
	v_lshlrev_b32_e32 v1, s4, v14
	v_lshlrev_b32_e32 v3, s4, v18
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b32_e32 v1, 2, v1
	v_lshlrev_b32_e32 v4, 2, v3
	ds_load_b32 v5, v1 offset:36864
	ds_load_b32 v3, v4 offset:36864
	s_waitcnt lgkmcnt(0)
	v_cmp_lt_f32_e32 vcc_lo, v5, v3
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB7_28
; %bb.27:                               ;   in Loop: Header=BB7_25 Depth=3
	ds_load_b32 v4, v4 offset:38912
	v_add_nc_u32_e32 v5, 0x9000, v1
	ds_store_b32 v5, v3
	s_waitcnt lgkmcnt(1)
	ds_store_b32 v1, v4 offset:38912
.LBB7_28:                               ;   in Loop: Header=BB7_25 Depth=3
	s_or_b32 exec_lo, exec_lo, s22
	s_lshl_b32 s4, 2, s4
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_ge_u32 s4, s21
	s_cbranch_scc0 .LBB7_25
.LBB7_29:                               ; %._crit_edge134
                                        ;   in Loop: Header=BB7_13 Depth=2
	s_waitcnt lgkmcnt(0)
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	ds_load_b32 v1, v2 offset:38912
	s_waitcnt lgkmcnt(0)
	v_readfirstlane_b32 s1, v1
	s_and_saveexec_b32 s4, s2
	s_cbranch_execz .LBB7_31
; %bb.30:                               ;   in Loop: Header=BB7_13 Depth=2
	s_add_i32 s22, s29, s20
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_mov_b32_e32 v1, s1
	s_ashr_i32 s23, s22, 31
	s_lshl_b64 s[22:23], s[22:23], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s22, s6, s22
	s_addc_u32 s23, s7, s23
	global_store_b32 v2, v1, s[22:23]
.LBB7_31:                               ;   in Loop: Header=BB7_13 Depth=2
	s_or_b32 exec_lo, exec_lo, s4
	s_add_i32 s29, s29, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s29, s10
	s_cbranch_scc0 .LBB7_13
.LBB7_32:                               ; %._crit_edge139
                                        ;   in Loop: Header=BB7_3 Depth=1
	v_add_nc_u32_e32 v19, s27, v19
	s_add_i32 s15, s11, s15
	s_add_i32 s26, s26, s27
	s_cmp_ge_i32 s15, s8
	s_cbranch_scc0 .LBB7_3
.LBB7_33:                               ; %.loopexit
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z27farthestpointsamplingKerneliiiPKfPfPi
		.amdhsa_group_segment_fixed_size 40960
		.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 25
		.amdhsa_next_free_sgpr 38
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end7:
	.size	_Z27farthestpointsamplingKerneliiiPKfPfPi, .Lfunc_end7-_Z27farthestpointsamplingKerneliiiPKfPfPi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1320
; NumSgprs: 40
; NumVgprs: 25
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 40960 bytes/workgroup (compile time only)
; SGPRBlocks: 4
; VGPRBlocks: 3
; NumSGPRsForWavesPerEU: 40
; NumVGPRsForWavesPerEU: 25
; 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
      - .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
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         36
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         44
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         46
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         48
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         50
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         52
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         54
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         96
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 288
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z20query_ball_point_gpuiifiPKfPi
    .private_segment_fixed_size: 0
    .sgpr_count:     22
    .sgpr_spill_count: 0
    .symbol:         _Z20query_ball_point_gpuiifiPKfPi.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
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z12sampleKerneliiPKfPf
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z12sampleKerneliiPKfPf.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     25
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .offset:         4
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z9knnKerneliiPKfPi
    .private_segment_fixed_size: 0
    .sgpr_count:     19
    .sgpr_spill_count: 0
    .symbol:         _Z9knnKerneliiPKfPi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     16
    .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
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         36
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         44
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         46
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         48
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         50
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         52
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         54
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         96
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 288
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z11cube_selectiifPKfPi
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z11cube_selectiifPKfPi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     20
    .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
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         52
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         56
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         60
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         62
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         64
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         66
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         68
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         70
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         104
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         112
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 304
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z15group_point_gpuiiiiiPKfPKiPf
    .private_segment_fixed_size: 0
    .sgpr_count:     22
    .sgpr_spill_count: 0
    .symbol:         _Z15group_point_gpuiiiiiPKfPKiPf.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     12
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .offset:         4
        .size:           4
        .value_kind:     by_value
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .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:           _Z12gather_pointiiiPKiPKfPf
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z12gather_pointiiiPKiPKfPf.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     7
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .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:           _Z17gatherpointKerneliiiPKfPKiPf
    .private_segment_fixed_size: 0
    .sgpr_count:     27
    .sgpr_spill_count: 0
    .symbol:         _Z17gatherpointKerneliiiPKfPKiPf.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
      - .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: 40960
    .kernarg_segment_align: 8
    .kernarg_segment_size: 296
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z27farthestpointsamplingKerneliiiPKfPfPi
    .private_segment_fixed_size: 0
    .sgpr_count:     40
    .sgpr_spill_count: 0
    .symbol:         _Z27farthestpointsamplingKerneliiiPKfPfPi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     25
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
