#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<cuda.h>
#include<cuda_runtime.h>


namespace placeholder
{
  
  class Data
  {
  public:

    int InputSize(void)
    {
      FILE *input = NULL;
      input = fopen("input.txt", "r");
  
      char line[30];
      int N = 0;

      while(fgets(line, 30, input) != NULL)
	N++;
  
      fclose(input);
      
      return N;
    }
    
    void ReadFromFile(double *x, double *y, double *z, bool *b, int N)
    {
      FILE *input = NULL;
      input = fopen("input.txt", "r");

      char line[30];
      
      for(int i = 0; i < N; i++)
	{
	  fgets(line, 30, input);
	  sscanf(line, "%lf %lf %lf", &x[i], &y[i], &z[i]);
	  b[i] = true;
	}

      fclose(input);
      
      printf("Data imported from input.txt successfully!\n");
    }

    void WriteToFile(double *x, double *y, double *z, bool *b, int N)
    {
      FILE *output = NULL;
      output = fopen("output.txt", "w");

      for(int i = 0; i < N; i++)
	{
	  if(b[i] == true)
	    fprintf(output, "%.1lf %.1lf %.1lf\n", x[i], y[i], z[i]);
	}

      fclose(output);
      
      printf("Data exported to output.txt successfully!\n");
    }
  };

  class NeighbourSearch
  {
  public:
    
    void CopyFromHostToDevice(double *x1, double *x2, double *y1, double *y2, double *z1, double *z2, bool *b1, bool *b2, int N1, int *N2)
    {
      cudaMemcpy(N2, &N1, sizeof(int), cudaMemcpyHostToDevice);

      cudaMemcpy(x2, x1, sizeof(double)*N1, cudaMemcpyHostToDevice);
      cudaMemcpy(y2, y1, sizeof(double)*N1, cudaMemcpyHostToDevice);
      cudaMemcpy(z2, z1, sizeof(double)*N1, cudaMemcpyHostToDevice);
      cudaMemcpy(b2, b1, sizeof(bool)*N1, cudaMemcpyHostToDevice);
      
    }
    
    void CopyFromDeviceToHost(bool *b1, bool *b2, int N)
    {
      cudaMemcpy(b2, b1, sizeof(bool)*N, cudaMemcpyDeviceToHost);
    }
    

  };
  
  __global__ void search(double *d_xx, double *d_yy, double *d_zz, bool *d_bb, int *d_N, double *x, double *y, double *z, double *r)
  {
    int index = blockIdx.x * blockDim.x + threadIdx.x;

    if(index < *d_N)
      {
	if((pow((*x)-d_xx[index], 2) + pow((*y)-d_yy[index], 2) + pow((*z)-d_zz[index], 2)) > pow(*r, 2))
	  d_bb[index] = false;
      }
  }
  
}

int main()
{
  placeholder::Data f1 = placeholder::Data();
  double x, y, z;
  double r;
  
  double *d_x, *d_y, *d_z;
  double *d_r;

  double *xx, *yy, *zz;
  bool *bb;
  int N = f1.InputSize();

  double *d_xx, *d_yy, *d_zz;
  bool *d_bb;
  int *d_N;

  int grid_size, block_size = 256;

  xx = (double *)malloc(sizeof(double)*N);
  yy = (double *)malloc(sizeof(double)*N);
  zz = (double *)malloc(sizeof(double)*N);
  bb = (bool *)malloc(sizeof(bool)*N);
  
  f1.ReadFromFile(xx, yy, zz, bb, N);

  cudaMalloc((void **)&d_xx, sizeof(double) * N);
  cudaMalloc((void **)&d_yy, sizeof(double) * N);
  cudaMalloc((void **)&d_zz, sizeof(double) * N);
  cudaMalloc((void **)&d_bb, sizeof(bool) * N);
  cudaMalloc((void **)&d_N, sizeof(int));
	     
  cudaMalloc((void **)&d_x, sizeof(double));
  cudaMalloc((void **)&d_y, sizeof(double));
  cudaMalloc((void **)&d_z, sizeof(double));
  cudaMalloc((void **)&d_r, sizeof(double));
	     
  placeholder::NeighbourSearch ns;

  ns.CopyFromHostToDevice(xx, d_xx, yy, d_yy, zz, d_zz, bb, d_bb, N, d_N);
  
  printf("To end the program, type a number which is not positive in the search distance field.\n");
  
  while(1)
    {
      printf("Enter the x, y and z coordinates of the point and the search distance:\t");
      scanf("%lf %lf %lf %lf", &x, &y, &z, &r);

      if(r <= 0)
	break;
      else
	{
	  cudaMemcpy(d_x, &x, sizeof(double), cudaMemcpyHostToDevice);
	  cudaMemcpy(d_y, &y, sizeof(double), cudaMemcpyHostToDevice);
	  cudaMemcpy(d_z, &z, sizeof(double), cudaMemcpyHostToDevice);
	  cudaMemcpy(d_r, &r, sizeof(double), cudaMemcpyHostToDevice);
	  
	  grid_size = (N + block_size) / block_size;
	  placeholder::search<<<grid_size,block_size>>>(d_xx, d_yy, d_zz, d_bb, d_N, d_x, d_y, d_z, d_r);
	  
	  ns.CopyFromDeviceToHost(d_bb, bb, N);

	  f1.WriteToFile(xx, yy, zz, bb, N);
	}
    }
  
  free(xx);
  free(yy);
  free(zz);
  free(bb);
  cudaFree(d_xx);
  cudaFree(d_yy);
  cudaFree(d_zz);
  cudaFree(d_bb);
  cudaFree(d_N);

  cudaFree(d_x);
  cudaFree(d_y);
  cudaFree(d_z);
  cudaFree(d_r);

  printf("Program terminated.\n");
  return 0;
}

	.file	"tmpxft_0037641b_00000000-6_main.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2035:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2035:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z62__device_stub__ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_PdS_S_PbPiS_S_S_S_
	.type	_Z62__device_stub__ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_PdS_S_PbPiS_S_S_S_, @function
_Z62__device_stub__ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_PdS_S_PbPiS_S_S_S_:
.LFB2057:
	.cfi_startproc
	endbr64
	subq	$232, %rsp
	.cfi_def_cfa_offset 240
	movq	240(%rsp), %rax
	movq	%rdi, 72(%rsp)
	leaq	96(%rsp), %rdi
	movq	%rsi, 64(%rsp)
	leaq	108(%rsp), %rsi
	movq	%rax, 24(%rsp)
	movq	248(%rsp), %rax
	movq	%rdx, 56(%rsp)
	leaq	80(%rsp), %rdx
	movq	%rax, 16(%rsp)
	movq	256(%rsp), %rax
	movq	%rcx, 48(%rsp)
	leaq	88(%rsp), %rcx
	movq	%r8, 40(%rsp)
	movq	%r9, 32(%rsp)
	movq	%rax, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	72(%rsp), %rax
	movl	$1, 104(%rsp)
	movq	%rax, 144(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 208(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 96(%rsp)
	movq	%rax, 108(%rsp)
	movl	$1, 116(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L2
	pushq	88(%rsp)
	.cfi_def_cfa_offset 248
	leaq	_ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_(%rip), %rdi
	pushq	88(%rsp)
	.cfi_def_cfa_offset 256
	movq	124(%rsp), %rcx
	movl	132(%rsp), %r8d
	movq	112(%rsp), %rsi
	movl	120(%rsp), %edx
	leaq	160(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 248
	popq	%rdx
	.cfi_def_cfa_offset 240
.L2:
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	addq	$232, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2057:
	.size	_Z62__device_stub__ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_PdS_S_PbPiS_S_S_S_, .-_Z62__device_stub__ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_PdS_S_PbPiS_S_S_S_
	.globl	_ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_
	.type	_ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_, @function
_ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_:
.LFB2058:
	.cfi_startproc
	endbr64
	jmp	_Z62__device_stub__ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_PdS_S_PbPiS_S_S_S_
	.cfi_endproc
.LFE2058:
	.size	_ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_, .-_ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"r"
.LC1:
	.string	"input.txt"
.LC2:
	.string	"%lf %lf %lf"
.LC3:
	.string	"Data imported from input.txt successfully!\n"
.LC4:
	.string	"To end the program, type a number which is not positive in the search distance field.\n"
.LC5:
	.string	"Enter the x, y and z coordinates of the point and the search distance:\t"
.LC6:
	.string	"%lf %lf %lf %lf"
.LC8:
	.string	"w"
.LC9:
	.string	"output.txt"
.LC10:
	.string	"%.1lf %.1lf %.1lf\n"
.LC11:
	.string	"Data exported to output.txt successfully!\n"
.LC12:
	.string	"Program terminated.\n"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB2032:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC1(%rip), %r12
	movq	%r13, %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	202(%rsp), %r14
	call	fopen@PLT
	movq	%rax, %rbx
.L9:
	movq	%rbx, %rcx
	movl	$30, %edx
	movl	$30, %esi
	movq	%r14, %rdi
	call	__fgets_chk@PLT
	testq	%rax, %rax
	je	.L21
	incl	%ebp
	jmp	.L9
.L21:
	movq	%rbx, %rdi
	call	fclose@PLT
	movslq	%ebp, %rax
	movq	%rax, 32(%rsp)
	salq	$3, %rax
	movq	%rax, %rdi
	movq	%rax, (%rsp)
	call	malloc@PLT
	movq	(%rsp), %rdi
	movq	%rax, %rbx
	call	malloc@PLT
	movq	(%rsp), %rdi
	movq	%rax, 16(%rsp)
	call	malloc@PLT
	movslq	%ebp, %rdi
	movq	%rax, 24(%rsp)
	call	malloc@PLT
	movq	%r13, %rsi
	movq	%r12, %rdi
	movq	%rbx, %r12
	movq	%rax, 8(%rsp)
	call	fopen@PLT
	movq	8(%rsp), %r9
	movq	16(%rsp), %r13
	movq	%rax, 40(%rsp)
	movq	24(%rsp), %r14
	movslq	%ebp, %rax
	leaq	(%rax,%r9), %r15
.L11:
	cmpq	%r15, %r9
	je	.L22
	movq	40(%rsp), %rcx
	movl	$30, %edx
	movl	$30, %esi
	leaq	202(%rsp), %rdi
	movq	%r9, 56(%rsp)
	movq	%rdi, 48(%rsp)
	call	__fgets_chk@PLT
	movq	48(%rsp), %rdi
	movq	%r14, %r8
	movq	%r13, %rcx
	movq	%r12, %rdx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	addq	$8, %r12
	call	__isoc23_sscanf@PLT
	movq	56(%rsp), %r9
	addq	$8, %r13
	addq	$8, %r14
	movb	$1, (%r9)
	incq	%r9
	jmp	.L11
.L22:
	movq	40(%rsp), %rdi
	call	fclose@PLT
	leaq	.LC3(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	(%rsp), %rsi
	leaq	136(%rsp), %rdi
	call	cudaMalloc@PLT
	movq	(%rsp), %rsi
	leaq	144(%rsp), %rdi
	call	cudaMalloc@PLT
	movq	(%rsp), %rsi
	leaq	152(%rsp), %rdi
	call	cudaMalloc@PLT
	movq	32(%rsp), %rsi
	leaq	160(%rsp), %rdi
	call	cudaMalloc@PLT
	leaq	168(%rsp), %rdi
	movl	$4, %esi
	call	cudaMalloc@PLT
	leaq	104(%rsp), %rdi
	movl	$8, %esi
	call	cudaMalloc@PLT
	leaq	112(%rsp), %rdi
	movl	$8, %esi
	call	cudaMalloc@PLT
	leaq	120(%rsp), %rdi
	movl	$8, %esi
	call	cudaMalloc@PLT
	leaq	128(%rsp), %rdi
	movl	$8, %esi
	call	cudaMalloc@PLT
	movl	$1, %ecx
	movl	$4, %edx
	movq	168(%rsp), %rdi
	leaq	188(%rsp), %rsi
	movq	160(%rsp), %r12
	movq	152(%rsp), %r13
	movl	%ebp, 188(%rsp)
	movq	144(%rsp), %r14
	movq	136(%rsp), %r15
	call	cudaMemcpy@PLT
	movslq	188(%rsp), %rdx
	movl	$1, %ecx
	movq	%rbx, %rsi
	movq	%r15, %rdi
	salq	$3, %rdx
	call	cudaMemcpy@PLT
	movslq	188(%rsp), %rdx
	movq	16(%rsp), %rsi
	movq	%r14, %rdi
	movl	$1, %ecx
	salq	$3, %rdx
	call	cudaMemcpy@PLT
	movslq	188(%rsp), %rdx
	movq	24(%rsp), %rsi
	movq	%r13, %rdi
	movl	$1, %ecx
	salq	$3, %rdx
	call	cudaMemcpy@PLT
	movslq	188(%rsp), %rdx
	movq	8(%rsp), %rsi
	movq	%r12, %rdi
	movl	$1, %ecx
	leal	256(%rbp), %r12d
	call	cudaMemcpy@PLT
	movl	$2, %edi
	xorl	%eax, %eax
	sarl	$8, %r12d
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
.L18:
	leaq	.LC5(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	96(%rsp), %r15
	leaq	88(%rsp), %r13
	xorl	%eax, %eax
	leaq	80(%rsp), %r14
	leaq	72(%rsp), %rsi
	movq	%r15, %r8
	movq	%r13, %rcx
	movq	%r14, %rdx
	leaq	.LC6(%rip), %rdi
	movq	%rsi, (%rsp)
	call	__isoc23_scanf@PLT
	xorps	%xmm0, %xmm0
	comisd	96(%rsp), %xmm0
	jnb	.L13
	movq	(%rsp), %rsi
	movq	104(%rsp), %rdi
	movl	$1, %ecx
	movl	$8, %edx
	call	cudaMemcpy@PLT
	movq	112(%rsp), %rdi
	movl	$1, %ecx
	movq	%r14, %rsi
	movl	$8, %edx
	call	cudaMemcpy@PLT
	movq	120(%rsp), %rdi
	movl	$1, %ecx
	movq	%r13, %rsi
	movl	$8, %edx
	call	cudaMemcpy@PLT
	movq	128(%rsp), %rdi
	movl	$1, %ecx
	movq	%r15, %rsi
	movl	$8, %edx
	call	cudaMemcpy@PLT
	movl	$16777217, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movabsq	$4294967297, %rax
	salq	$8, %rdx
	movl	$1, %ecx
	movl	%r12d, 176(%rsp)
	movq	%rax, 180(%rsp)
	movq	176(%rsp), %rdi
	movl	184(%rsp), %esi
	movq	%rdx, 188(%rsp)
	movl	$1, 196(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L14
	pushq	%rax
	.cfi_def_cfa_offset 312
	pushq	136(%rsp)
	.cfi_def_cfa_offset 320
	pushq	136(%rsp)
	.cfi_def_cfa_offset 328
	pushq	136(%rsp)
	.cfi_def_cfa_offset 336
	movq	136(%rsp), %r9
	movq	200(%rsp), %r8
	movq	192(%rsp), %rcx
	movq	184(%rsp), %rdx
	movq	176(%rsp), %rsi
	movq	168(%rsp), %rdi
	call	_Z62__device_stub__ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_PdS_S_PbPiS_S_S_S_
	addq	$32, %rsp
	.cfi_def_cfa_offset 304
.L14:
	movq	32(%rsp), %rdx
	movq	160(%rsp), %rsi
	movl	$2, %ecx
	xorl	%r15d, %r15d
	movq	8(%rsp), %rdi
	leaq	.LC10(%rip), %r13
	call	cudaMemcpy@PLT
	leaq	.LC8(%rip), %rsi
	leaq	.LC9(%rip), %rdi
	call	fopen@PLT
	movq	%rax, %r14
.L15:
	cmpl	%r15d, %ebp
	jle	.L23
	movq	8(%rsp), %rax
	cmpb	$0, (%rax,%r15)
	je	.L16
	movq	24(%rsp), %rax
	movq	%r13, %rdx
	movl	$2, %esi
	movq	%r14, %rdi
	movsd	(%rbx,%r15,8), %xmm0
	movsd	(%rax,%r15,8), %xmm2
	movq	16(%rsp), %rax
	movsd	(%rax,%r15,8), %xmm1
	movb	$3, %al
	call	__fprintf_chk@PLT
.L16:
	incq	%r15
	jmp	.L15
.L23:
	movq	%r14, %rdi
	call	fclose@PLT
	leaq	.LC11(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L18
.L13:
	movq	%rbx, %rdi
	call	free@PLT
	movq	16(%rsp), %rdi
	call	free@PLT
	movq	24(%rsp), %rdi
	call	free@PLT
	movq	8(%rsp), %rdi
	call	free@PLT
	movq	136(%rsp), %rdi
	call	cudaFree@PLT
	movq	144(%rsp), %rdi
	call	cudaFree@PLT
	movq	152(%rsp), %rdi
	call	cudaFree@PLT
	movq	160(%rsp), %rdi
	call	cudaFree@PLT
	movq	168(%rsp), %rdi
	call	cudaFree@PLT
	movq	104(%rsp), %rdi
	call	cudaFree@PLT
	movq	112(%rsp), %rdi
	call	cudaFree@PLT
	movq	120(%rsp), %rdi
	call	cudaFree@PLT
	movq	128(%rsp), %rdi
	call	cudaFree@PLT
	xorl	%eax, %eax
	movl	$2, %edi
	leaq	.LC12(%rip), %rsi
	call	__printf_chk@PLT
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	addq	$248, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2032:
	.size	main, .-main
	.section	.rodata.str1.1
.LC13:
	.string	"_ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2060:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 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	.LC13(%rip), %rdx
	movq	%rax, %rdi
	leaq	_ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	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	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE2060:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<hip/hip_runtime.h>



namespace placeholder
{
  
  class Data
  {
  public:

    int InputSize(void)
    {
      FILE *input = NULL;
      input = fopen("input.txt", "r");
  
      char line[30];
      int N = 0;

      while(fgets(line, 30, input) != NULL)
	N++;
  
      fclose(input);
      
      return N;
    }
    
    void ReadFromFile(double *x, double *y, double *z, bool *b, int N)
    {
      FILE *input = NULL;
      input = fopen("input.txt", "r");

      char line[30];
      
      for(int i = 0; i < N; i++)
	{
	  fgets(line, 30, input);
	  sscanf(line, "%lf %lf %lf", &x[i], &y[i], &z[i]);
	  b[i] = true;
	}

      fclose(input);
      
      printf("Data imported from input.txt successfully!\n");
    }

    void WriteToFile(double *x, double *y, double *z, bool *b, int N)
    {
      FILE *output = NULL;
      output = fopen("output.txt", "w");

      for(int i = 0; i < N; i++)
	{
	  if(b[i] == true)
	    fprintf(output, "%.1lf %.1lf %.1lf\n", x[i], y[i], z[i]);
	}

      fclose(output);
      
      printf("Data exported to output.txt successfully!\n");
    }
  };

  class NeighbourSearch
  {
  public:
    
    void CopyFromHostToDevice(double *x1, double *x2, double *y1, double *y2, double *z1, double *z2, bool *b1, bool *b2, int N1, int *N2)
    {
      hipMemcpy(N2, &N1, sizeof(int), hipMemcpyHostToDevice);

      hipMemcpy(x2, x1, sizeof(double)*N1, hipMemcpyHostToDevice);
      hipMemcpy(y2, y1, sizeof(double)*N1, hipMemcpyHostToDevice);
      hipMemcpy(z2, z1, sizeof(double)*N1, hipMemcpyHostToDevice);
      hipMemcpy(b2, b1, sizeof(bool)*N1, hipMemcpyHostToDevice);
      
    }
    
    void CopyFromDeviceToHost(bool *b1, bool *b2, int N)
    {
      hipMemcpy(b2, b1, sizeof(bool)*N, hipMemcpyDeviceToHost);
    }
    

  };
  
  __global__ void search(double *d_xx, double *d_yy, double *d_zz, bool *d_bb, int *d_N, double *x, double *y, double *z, double *r)
  {
    int index = blockIdx.x * blockDim.x + threadIdx.x;

    if(index < *d_N)
      {
	if((pow((*x)-d_xx[index], 2) + pow((*y)-d_yy[index], 2) + pow((*z)-d_zz[index], 2)) > pow(*r, 2))
	  d_bb[index] = false;
      }
  }
  
}

int main()
{
  placeholder::Data f1 = placeholder::Data();
  double x, y, z;
  double r;
  
  double *d_x, *d_y, *d_z;
  double *d_r;

  double *xx, *yy, *zz;
  bool *bb;
  int N = f1.InputSize();

  double *d_xx, *d_yy, *d_zz;
  bool *d_bb;
  int *d_N;

  int grid_size, block_size = 256;

  xx = (double *)malloc(sizeof(double)*N);
  yy = (double *)malloc(sizeof(double)*N);
  zz = (double *)malloc(sizeof(double)*N);
  bb = (bool *)malloc(sizeof(bool)*N);
  
  f1.ReadFromFile(xx, yy, zz, bb, N);

  hipMalloc((void **)&d_xx, sizeof(double) * N);
  hipMalloc((void **)&d_yy, sizeof(double) * N);
  hipMalloc((void **)&d_zz, sizeof(double) * N);
  hipMalloc((void **)&d_bb, sizeof(bool) * N);
  hipMalloc((void **)&d_N, sizeof(int));
	     
  hipMalloc((void **)&d_x, sizeof(double));
  hipMalloc((void **)&d_y, sizeof(double));
  hipMalloc((void **)&d_z, sizeof(double));
  hipMalloc((void **)&d_r, sizeof(double));
	     
  placeholder::NeighbourSearch ns;

  ns.CopyFromHostToDevice(xx, d_xx, yy, d_yy, zz, d_zz, bb, d_bb, N, d_N);
  
  printf("To end the program, type a number which is not positive in the search distance field.\n");
  
  while(1)
    {
      printf("Enter the x, y and z coordinates of the point and the search distance:\t");
      scanf("%lf %lf %lf %lf", &x, &y, &z, &r);

      if(r <= 0)
	break;
      else
	{
	  hipMemcpy(d_x, &x, sizeof(double), hipMemcpyHostToDevice);
	  hipMemcpy(d_y, &y, sizeof(double), hipMemcpyHostToDevice);
	  hipMemcpy(d_z, &z, sizeof(double), hipMemcpyHostToDevice);
	  hipMemcpy(d_r, &r, sizeof(double), hipMemcpyHostToDevice);
	  
	  grid_size = (N + block_size) / block_size;
	  placeholder::search<<<grid_size,block_size>>>(d_xx, d_yy, d_zz, d_bb, d_N, d_x, d_y, d_z, d_r);
	  
	  ns.CopyFromDeviceToHost(d_bb, bb, N);

	  f1.WriteToFile(xx, yy, zz, bb, N);
	}
    }
  
  free(xx);
  free(yy);
  free(zz);
  free(bb);
  hipFree(d_xx);
  hipFree(d_yy);
  hipFree(d_zz);
  hipFree(d_bb);
  hipFree(d_N);

  hipFree(d_x);
  hipFree(d_y);
  hipFree(d_z);
  hipFree(d_r);

  printf("Program terminated.\n");
  return 0;
}

	.text
	.file	"main.hip"
	.globl	_ZN11placeholder21__device_stub__searchEPdS0_S0_PbPiS0_S0_S0_S0_ # -- Begin function _ZN11placeholder21__device_stub__searchEPdS0_S0_PbPiS0_S0_S0_S0_
	.type	_ZN11placeholder21__device_stub__searchEPdS0_S0_PbPiS0_S0_S0_S0_,@function
_ZN11placeholder21__device_stub__searchEPdS0_S0_PbPiS0_S0_S0_S0_: # @_ZN11placeholder21__device_stub__searchEPdS0_S0_PbPiS0_S0_S0_S0_
	.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	$176, %rsp
	.cfi_def_cfa_offset 224
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	24(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	16(%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	224(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	232(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	240(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%rsp, %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$192, %rsp
	.cfi_adjust_cfa_offset -192
	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	_ZN11placeholder21__device_stub__searchEPdS0_S0_PbPiS0_S0_S0_S0_, .Lfunc_end0-_ZN11placeholder21__device_stub__searchEPdS0_S0_PbPiS0_S0_S0_S0_
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI1_0:
	.quad	0x0000000000000000              # double 0
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$152, %rsp
	.cfi_def_cfa_offset 208
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	leaq	6(%rsp), %rdi
	movb	$0, (%rdi)
	callq	_ZN11placeholder4Data9InputSizeEv
                                        # kill: def $eax killed $eax def $rax
	movq	%rax, 72(%rsp)                  # 8-byte Spill
	movslq	%eax, %r14
	leaq	(,%r14,8), %r15
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	malloc
	movq	%rax, %rbp
	leaq	6(%rsp), %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	movq	%rax, %r8
	movl	%r14d, %r9d
	callq	_ZN11placeholder4Data12ReadFromFileEPdS1_S1_Pbi
	leaq	32(%rsp), %rdi
	movq	%r15, %rsi
	callq	hipMalloc
	leaq	24(%rsp), %rdi
	movq	%r15, %rsi
	callq	hipMalloc
	leaq	16(%rsp), %rdi
	movq	%r15, %rsi
	callq	hipMalloc
	leaq	8(%rsp), %rdi
	movq	%r14, %rsi
	callq	hipMalloc
	leaq	104(%rsp), %r15
	movl	$4, %esi
	movq	%r15, %rdi
	callq	hipMalloc
	leaq	64(%rsp), %rdi
	movl	$8, %esi
	callq	hipMalloc
	leaq	56(%rsp), %rdi
	movl	$8, %esi
	callq	hipMalloc
	leaq	48(%rsp), %rdi
	movl	$8, %esi
	callq	hipMalloc
	leaq	40(%rsp), %rdi
	movl	$8, %esi
	callq	hipMalloc
	leaq	32(%rsp), %rax
	movq	(%rax), %rdx
	leaq	24(%rsp), %rax
	movq	(%rax), %r8
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	leaq	15(%rsp), %rdi
	movq	%rbx, 104(%rsp)                 # 8-byte Spill
	movq	%rbx, %rsi
	movq	%r13, 96(%rsp)                  # 8-byte Spill
	movq	%r13, %rcx
	movq	%r12, 88(%rsp)                  # 8-byte Spill
	movq	%r12, %r9
	pushq	(%r15)
	.cfi_adjust_cfa_offset 8
	movq	%r14, 144(%rsp)                 # 8-byte Spill
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	leaq	32(%rsp), %rax
	pushq	(%rax)
	.cfi_adjust_cfa_offset 8
	pushq	%rbp
	.cfi_adjust_cfa_offset 8
	leaq	56(%rsp), %rax
	pushq	(%rax)
	.cfi_adjust_cfa_offset 8
	callq	_ZN11placeholder15NeighbourSearch20CopyFromHostToDeviceEPdS1_S1_S1_S1_S1_PbS2_iPi
	addq	$48, %rsp
	.cfi_adjust_cfa_offset -48
	movl	$.Lstr, %edi
	callq	puts@PLT
	movl	$.L.str.1, %edi
	xorl	%eax, %eax
	callq	printf
	leaq	144(%rsp), %rsi
	leaq	120(%rsp), %rdx
	leaq	136(%rsp), %rcx
	leaq	112(%rsp), %rbx
	movl	$.L.str.2, %edi
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	__isoc23_scanf
	xorpd	%xmm0, %xmm0
	ucomisd	(%rbx), %xmm0
	jae	.LBB1_5
# %bb.1:                                # %.lr.ph
	movabsq	$4294967296, %r12               # imm = 0x100000000
	movq	72(%rsp), %r15                  # 8-byte Reload
	leal	256(%r15), %eax
                                        # kill: def $r15d killed $r15d killed $r15 def $r15
	addl	$511, %r15d                     # imm = 0x1FF
	testl	%eax, %eax
	cmovnsl	%eax, %r15d
	sarl	$8, %r15d
	btsq	$32, %r15
	leaq	144(%rsp), %r13
	leaq	136(%rsp), %r14
	leaq	112(%rsp), %rbx
	addq	$256, %r12                      # imm = 0x100
.LBB1_2:                                # =>This Inner Loop Header: Depth=1
	movq	64(%rsp), %rdi
	movl	$8, %edx
	movq	%r13, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	56(%rsp), %rdi
	movl	$8, %edx
	leaq	120(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	48(%rsp), %rdi
	movl	$8, %edx
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	40(%rsp), %rdi
	movl	$8, %edx
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB1_4
# %bb.3:                                #   in Loop: Header=BB1_2 Depth=1
	movq	32(%rsp), %rdi
	movq	24(%rsp), %rsi
	movq	16(%rsp), %rdx
	movq	8(%rsp), %rcx
	movq	104(%rsp), %r8
	movq	64(%rsp), %r9
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	pushq	48(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	64(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	80(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	_ZN11placeholder21__device_stub__searchEPdS0_S0_PbPiS0_S0_S0_S0_
	addq	$32, %rsp
	.cfi_adjust_cfa_offset -32
.LBB1_4:                                #   in Loop: Header=BB1_2 Depth=1
	movq	8(%rsp), %rsi
	movq	%rbp, %rdi
	movq	128(%rsp), %rdx                 # 8-byte Reload
	movl	$2, %ecx
	callq	hipMemcpy
	leaq	6(%rsp), %rdi
	movq	96(%rsp), %rsi                  # 8-byte Reload
	movq	88(%rsp), %rdx                  # 8-byte Reload
	movq	80(%rsp), %rcx                  # 8-byte Reload
	movq	%rbp, %r8
	movq	72(%rsp), %r9                   # 8-byte Reload
                                        # kill: def $r9d killed $r9d killed $r9
	callq	_ZN11placeholder4Data11WriteToFileEPdS1_S1_Pbi
	movl	$.L.str.1, %edi
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.2, %edi
	movq	%r13, %rsi
	leaq	120(%rsp), %rdx
	movq	%r14, %rcx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	__isoc23_scanf
	xorpd	%xmm0, %xmm0
	ucomisd	112(%rsp), %xmm0
	jb	.LBB1_2
.LBB1_5:                                # %._crit_edge
	movq	96(%rsp), %rdi                  # 8-byte Reload
	callq	free
	movq	88(%rsp), %rdi                  # 8-byte Reload
	callq	free
	movq	80(%rsp), %rdi                  # 8-byte Reload
	callq	free
	movq	%rbp, %rdi
	callq	free
	movq	32(%rsp), %rdi
	callq	hipFree
	movq	24(%rsp), %rdi
	callq	hipFree
	movq	16(%rsp), %rdi
	callq	hipFree
	movq	8(%rsp), %rdi
	callq	hipFree
	movq	104(%rsp), %rdi
	callq	hipFree
	movq	64(%rsp), %rdi
	callq	hipFree
	movq	56(%rsp), %rdi
	callq	hipFree
	movq	48(%rsp), %rdi
	callq	hipFree
	movq	40(%rsp), %rdi
	callq	hipFree
	movl	$.Lstr.1, %edi
	callq	puts@PLT
	xorl	%eax, %eax
	addq	$152, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	main, .Lfunc_end1-main
	.cfi_endproc
                                        # -- End function
	.section	.text._ZN11placeholder4Data9InputSizeEv,"axG",@progbits,_ZN11placeholder4Data9InputSizeEv,comdat
	.weak	_ZN11placeholder4Data9InputSizeEv # -- Begin function _ZN11placeholder4Data9InputSizeEv
	.p2align	1, 0x90
	.type	_ZN11placeholder4Data9InputSizeEv,@function
_ZN11placeholder4Data9InputSizeEv:      # @_ZN11placeholder4Data9InputSizeEv
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movl	$.L.str.4, %edi
	movl	$.L.str.5, %esi
	callq	fopen
	movq	%rax, %r14
	movl	$-1, %ebx
	movq	%rsp, %r15
.LBB2_1:                                # =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$30, %esi
	movq	%r14, %rdx
	callq	fgets
	incl	%ebx
	testq	%rax, %rax
	jne	.LBB2_1
# %bb.2:
	movq	%r14, %rdi
	callq	fclose
	movl	%ebx, %eax
	addq	$32, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_ZN11placeholder4Data9InputSizeEv, .Lfunc_end2-_ZN11placeholder4Data9InputSizeEv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZN11placeholder4Data12ReadFromFileEPdS1_S1_Pbi,"axG",@progbits,_ZN11placeholder4Data12ReadFromFileEPdS1_S1_Pbi,comdat
	.weak	_ZN11placeholder4Data12ReadFromFileEPdS1_S1_Pbi # -- Begin function _ZN11placeholder4Data12ReadFromFileEPdS1_S1_Pbi
	.p2align	1, 0x90
	.type	_ZN11placeholder4Data12ReadFromFileEPdS1_S1_Pbi,@function
_ZN11placeholder4Data12ReadFromFileEPdS1_S1_Pbi: # @_ZN11placeholder4Data12ReadFromFileEPdS1_S1_Pbi
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	%r9d, %ebp
	movq	%r8, 8(%rsp)                    # 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movl	$.L.str.4, %edi
	movl	$.L.str.5, %esi
	callq	fopen
	movq	%rax, %rbx
	testl	%ebp, %ebp
	jle	.LBB3_3
# %bb.1:                                # %.lr.ph.preheader
	movl	%ebp, %eax
	movq	%rax, (%rsp)                    # 8-byte Spill
	leaq	16(%rsp), %rbp
	xorl	%r13d, %r13d
.LBB3_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	%rbp, %rdi
	movl	$30, %esi
	movq	%rbx, %rdx
	callq	fgets
	movl	$.L.str.6, %esi
	movq	%rbp, %rdi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	__isoc23_sscanf
	movq	8(%rsp), %rax                   # 8-byte Reload
	movb	$1, (%rax,%r13)
	incq	%r13
	addq	$8, %r14
	addq	$8, %r15
	addq	$8, %r12
	cmpq	%r13, (%rsp)                    # 8-byte Folded Reload
	jne	.LBB3_2
.LBB3_3:                                # %._crit_edge
	movq	%rbx, %rdi
	callq	fclose
	movl	$.Lstr.2, %edi
	callq	puts@PLT
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	_ZN11placeholder4Data12ReadFromFileEPdS1_S1_Pbi, .Lfunc_end3-_ZN11placeholder4Data12ReadFromFileEPdS1_S1_Pbi
	.cfi_endproc
                                        # -- End function
	.section	.text._ZN11placeholder15NeighbourSearch20CopyFromHostToDeviceEPdS1_S1_S1_S1_S1_PbS2_iPi,"axG",@progbits,_ZN11placeholder15NeighbourSearch20CopyFromHostToDeviceEPdS1_S1_S1_S1_S1_PbS2_iPi,comdat
	.weak	_ZN11placeholder15NeighbourSearch20CopyFromHostToDeviceEPdS1_S1_S1_S1_S1_PbS2_iPi # -- Begin function _ZN11placeholder15NeighbourSearch20CopyFromHostToDeviceEPdS1_S1_S1_S1_S1_PbS2_iPi
	.p2align	1, 0x90
	.type	_ZN11placeholder15NeighbourSearch20CopyFromHostToDeviceEPdS1_S1_S1_S1_S1_PbS2_iPi,@function
_ZN11placeholder15NeighbourSearch20CopyFromHostToDeviceEPdS1_S1_S1_S1_S1_PbS2_iPi: # @_ZN11placeholder15NeighbourSearch20CopyFromHostToDeviceEPdS1_S1_S1_S1_S1_PbS2_iPi
	.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, %r15
	movq	%r8, %rbx
	movq	%rcx, %rbp
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	96(%rsp), %rdi
	leaq	88(%rsp), %r12
	movl	$4, %edx
	movq	%r12, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movslq	(%r12), %rdx
	shlq	$3, %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movslq	(%r12), %rdx
	shlq	$3, %rdx
	movq	%rbx, %rdi
	movq	%rbp, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movslq	(%r12), %rdx
	shlq	$3, %rdx
	movq	64(%rsp), %rdi
	movq	%r15, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movslq	(%r12), %rdx
	movq	80(%rsp), %rdi
	movq	72(%rsp), %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end4:
	.size	_ZN11placeholder15NeighbourSearch20CopyFromHostToDeviceEPdS1_S1_S1_S1_S1_PbS2_iPi, .Lfunc_end4-_ZN11placeholder15NeighbourSearch20CopyFromHostToDeviceEPdS1_S1_S1_S1_S1_PbS2_iPi
	.cfi_endproc
                                        # -- End function
	.section	.text._ZN11placeholder4Data11WriteToFileEPdS1_S1_Pbi,"axG",@progbits,_ZN11placeholder4Data11WriteToFileEPdS1_S1_Pbi,comdat
	.weak	_ZN11placeholder4Data11WriteToFileEPdS1_S1_Pbi # -- Begin function _ZN11placeholder4Data11WriteToFileEPdS1_S1_Pbi
	.p2align	1, 0x90
	.type	_ZN11placeholder4Data11WriteToFileEPdS1_S1_Pbi,@function
_ZN11placeholder4Data11WriteToFileEPdS1_S1_Pbi: # @_ZN11placeholder4Data11WriteToFileEPdS1_S1_Pbi
	.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
	movl	%r9d, %ebp
	movq	%r8, %rbx
	movq	%rcx, (%rsp)                    # 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r12
	movl	$.L.str.8, %edi
	movl	$.L.str.9, %esi
	callq	fopen
	movq	%rax, %r13
	testl	%ebp, %ebp
	jle	.LBB5_5
# %bb.1:                                # %.lr.ph.preheader
	movl	%ebp, %ebp
	xorl	%r14d, %r14d
.LBB5_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rbx,%r14)
	je	.LBB5_4
# %bb.3:                                #   in Loop: Header=BB5_2 Depth=1
	movsd	(%r12,%r14,8), %xmm0            # xmm0 = mem[0],zero
	movsd	(%r15,%r14,8), %xmm1            # xmm1 = mem[0],zero
	movq	(%rsp), %rax                    # 8-byte Reload
	movsd	(%rax,%r14,8), %xmm2            # xmm2 = mem[0],zero
	movl	$.L.str.10, %esi
	movq	%r13, %rdi
	movb	$3, %al
	callq	fprintf
.LBB5_4:                                #   in Loop: Header=BB5_2 Depth=1
	incq	%r14
	cmpq	%r14, %rbp
	jne	.LBB5_2
.LBB5_5:                                # %._crit_edge
	movq	%r13, %rdi
	callq	fclose
	movl	$.Lstr.3, %edi
	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	puts@PLT                        # TAILCALL
.Lfunc_end5:
	.size	_ZN11placeholder4Data11WriteToFileEPdS1_S1_Pbi, .Lfunc_end5-_ZN11placeholder4Data11WriteToFileEPdS1_S1_Pbi
	.cfi_endproc
                                        # -- End function
	.text
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	jne	.LBB6_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rdi
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB6_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$40, %rsp
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end6:
	.size	__hip_module_ctor, .Lfunc_end6-__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	.LBB7_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
.LBB7_2:
	retq
.Lfunc_end7:
	.size	__hip_module_dtor, .Lfunc_end7-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_,@object # @_ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_
	.section	.rodata,"a",@progbits
	.globl	_ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_
	.p2align	3, 0x0
_ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_:
	.quad	_ZN11placeholder21__device_stub__searchEPdS0_S0_PbPiS0_S0_S0_S0_
	.size	_ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_, 8

	.type	.L.str.1,@object                # @.str.1
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.1:
	.asciz	"Enter the x, y and z coordinates of the point and the search distance:\t"
	.size	.L.str.1, 72

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"%lf %lf %lf %lf"
	.size	.L.str.2, 16

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"input.txt"
	.size	.L.str.4, 10

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

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"%lf %lf %lf"
	.size	.L.str.6, 12

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"output.txt"
	.size	.L.str.8, 11

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

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"%.1lf %.1lf %.1lf\n"
	.size	.L.str.10, 19

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_"
	.size	.L__unnamed_1, 49

	.type	__hip_fatbin_wrapper,@object    # @__hip_fatbin_wrapper
	.section	.hipFatBinSegment,"a",@progbits
	.p2align	3, 0x0
__hip_fatbin_wrapper:
	.long	1212764230                      # 0x48495046
	.long	1                               # 0x1
	.quad	__hip_fatbin
	.quad	0
	.size	__hip_fatbin_wrapper, 24

	.type	__hip_gpubin_handle,@object     # @__hip_gpubin_handle
	.local	__hip_gpubin_handle
	.comm	__hip_gpubin_handle,8,8
	.section	.init_array,"aw",@init_array
	.p2align	3, 0x0
	.quad	__hip_module_ctor
	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.type	.Lstr,@object                   # @str
	.section	.rodata.str1.1,"aMS",@progbits,1
.Lstr:
	.asciz	"To end the program, type a number which is not positive in the search distance field."
	.size	.Lstr, 86

	.type	.Lstr.1,@object                 # @str.1
.Lstr.1:
	.asciz	"Program terminated."
	.size	.Lstr.1, 20

	.type	.Lstr.2,@object                 # @str.2
.Lstr.2:
	.asciz	"Data imported from input.txt successfully!"
	.size	.Lstr.2, 43

	.type	.Lstr.3,@object                 # @str.3
.Lstr.3:
	.asciz	"Data exported to output.txt successfully!"
	.size	.Lstr.3, 42

	.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 _ZN11placeholder21__device_stub__searchEPdS0_S0_PbPiS0_S0_S0_S0_
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_ ; -- Begin function _ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_
	.globl	_ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_
	.p2align	8
	.type	_ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_,@function
_ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_: ; @_ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_
; %bb.0:
	s_clause 0x1
	s_load_b512 s[16:31], s[0:1], 0x0
	s_load_b32 s2, s[0:1], 0x54
	s_waitcnt lgkmcnt(0)
	s_load_b32 s3, s[24:25], 0x0
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	s_waitcnt lgkmcnt(0)
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB0_3
; %bb.1:
	v_ashrrev_i32_e32 v2, 31, v1
	s_mov_b32 s6, 0x968915a9
	s_mov_b32 s10, 0x4222de17
	s_mov_b32 s7, 0x3fba6564
	s_mov_b32 s11, 0x3fbdee67
	v_lshlrev_b64 v[3:4], 3, v[1:2]
	s_mov_b32 s12, 0x3abe935a
	s_mov_b32 s13, 0x3fbe25e4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v5, vcc_lo, s16, v3
	v_add_co_ci_u32_e32 v6, vcc_lo, s17, v4, vcc_lo
	v_add_co_u32 v7, vcc_lo, s18, v3
	v_add_co_ci_u32_e32 v8, vcc_lo, s19, v4, vcc_lo
	v_add_co_u32 v3, vcc_lo, s20, v3
	global_load_b64 v[5:6], v[5:6], off
	global_load_b64 v[9:10], v[7:8], off
	v_add_co_ci_u32_e32 v4, vcc_lo, s21, v4, vcc_lo
	global_load_b64 v[3:4], v[3:4], off
	s_load_b64 s[2:3], s[26:27], 0x0
	s_load_b64 s[4:5], s[28:29], 0x0
	s_waitcnt vmcnt(2) lgkmcnt(0)
	v_add_f64 v[7:8], s[2:3], -v[5:6]
	s_waitcnt vmcnt(1)
	v_add_f64 v[5:6], s[4:5], -v[9:10]
	s_load_b64 s[2:3], s[30:31], 0x0
	s_mov_b32 s4, 0x55555555
	s_mov_b32 s5, 0x3fe55555
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[3:4], s[2:3], -v[3:4]
	s_load_b64 s[2:3], s[0:1], 0x40
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_frexp_mant_f64_e64 v[9:10], |v[7:8]|
	v_frexp_mant_f64_e64 v[11:12], |v[5:6]|
	s_waitcnt lgkmcnt(0)
	s_load_b64 s[8:9], s[2:3], 0x0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_frexp_mant_f64_e64 v[13:14], |v[3:4]|
	v_cmp_gt_f64_e64 s0, s[4:5], v[9:10]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cmp_gt_f64_e32 vcc_lo, s[4:5], v[11:12]
	v_cmp_gt_f64_e64 s2, s[4:5], v[13:14]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v0, 0, 1, s0
	v_cndmask_b32_e64 v15, 0, 1, vcc_lo
	v_ldexp_f64 v[9:10], v[9:10], v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[11:12], v[11:12], v15
	s_waitcnt lgkmcnt(0)
	v_frexp_mant_f64_e64 v[15:16], |s[8:9]|
	v_cndmask_b32_e64 v0, 0, 1, s2
	v_ldexp_f64 v[13:14], v[13:14], v0
	v_add_f64 v[17:18], v[9:10], 1.0
	v_add_f64 v[19:20], v[11:12], 1.0
	v_cmp_gt_f64_e64 s1, s[4:5], v[15:16]
	v_add_f64 v[39:40], v[9:10], -1.0
	v_add_f64 v[21:22], v[13:14], 1.0
	v_add_f64 v[41:42], v[13:14], -1.0
	v_rcp_f64_e32 v[23:24], v[17:18]
	v_rcp_f64_e32 v[25:26], v[19:20]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v0, 0, 1, s1
	v_add_f64 v[47:48], v[17:18], -1.0
	v_add_f64 v[51:52], v[19:20], -1.0
	v_ldexp_f64 v[15:16], v[15:16], v0
	v_frexp_exp_i32_f64_e32 v0, v[7:8]
	v_rcp_f64_e32 v[29:30], v[21:22]
	v_add_f64 v[57:58], v[21:22], -1.0
	s_delay_alu instid0(TRANS32_DEP_3) | instskip(NEXT) | instid1(TRANS32_DEP_2)
	v_fma_f64 v[31:32], -v[17:18], v[23:24], 1.0
	v_fma_f64 v[33:34], -v[19:20], v[25:26], 1.0
	v_add_f64 v[9:10], v[9:10], -v[47:48]
	v_add_f64 v[27:28], v[15:16], 1.0
	v_add_f64 v[45:46], v[15:16], -1.0
	v_subrev_co_ci_u32_e64 v0, s0, 0, v0, s0
	v_add_f64 v[13:14], v[13:14], -v[57:58]
	s_delay_alu instid0(TRANS32_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_4)
	v_fma_f64 v[37:38], -v[21:22], v[29:30], 1.0
	v_fma_f64 v[23:24], v[31:32], v[23:24], v[23:24]
	v_fma_f64 v[25:26], v[33:34], v[25:26], v[25:26]
	v_rcp_f64_e32 v[35:36], v[27:28]
	v_add_f64 v[47:48], v[27:28], -1.0
	v_fma_f64 v[29:30], v[37:38], v[29:30], v[29:30]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[33:34], -v[17:18], v[23:24], 1.0
	v_fma_f64 v[37:38], -v[19:20], v[25:26], 1.0
	s_delay_alu instid0(VALU_DEP_4)
	v_add_f64 v[15:16], v[15:16], -v[47:48]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[31:32], -v[27:28], v[35:36], 1.0
	v_fma_f64 v[23:24], v[33:34], v[23:24], v[23:24]
	v_add_f64 v[33:34], v[11:12], -1.0
	v_fma_f64 v[25:26], v[37:38], v[25:26], v[25:26]
	v_add_f64 v[11:12], v[11:12], -v[51:52]
	v_fma_f64 v[31:32], v[31:32], v[35:36], v[35:36]
	v_fma_f64 v[35:36], -v[21:22], v[29:30], 1.0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[43:44], v[33:34], v[25:26]
	v_fma_f64 v[37:38], -v[27:28], v[31:32], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[29:30], v[35:36], v[29:30], v[29:30]
	v_mul_f64 v[35:36], v[39:40], v[23:24]
	v_mul_f64 v[53:54], v[19:20], v[43:44]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[31:32], v[37:38], v[31:32], v[31:32]
	v_mul_f64 v[37:38], v[41:42], v[29:30]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[49:50], v[17:18], v[35:36]
	v_fma_f64 v[19:20], v[43:44], v[19:20], -v[53:54]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[55:56], v[45:46], v[31:32]
	v_mul_f64 v[59:60], v[21:22], v[37:38]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[17:18], v[35:36], v[17:18], -v[49:50]
	v_fma_f64 v[11:12], v[43:44], v[11:12], v[19:20]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[51:52], v[27:28], v[55:56]
	v_fma_f64 v[21:22], v[37:38], v[21:22], -v[59:60]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[9:10], v[35:36], v[9:10], v[17:18]
	v_fma_f64 v[17:18], v[55:56], v[27:28], -v[51:52]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[13:14], v[37:38], v[13:14], v[21:22]
	v_add_f64 v[19:20], v[49:50], v[9:10]
	v_add_f64 v[21:22], v[53:54], v[11:12]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[15:16], v[55:56], v[15:16], v[17:18]
	v_add_f64 v[17:18], v[59:60], v[13:14]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[27:28], v[39:40], -v[19:20]
	v_add_f64 v[47:48], v[33:34], -v[21:22]
	v_add_f64 v[49:50], v[19:20], -v[49:50]
	v_add_f64 v[53:54], v[21:22], -v[53:54]
	v_add_f64 v[57:58], v[51:52], v[15:16]
	v_add_f64 v[61:62], v[41:42], -v[17:18]
	v_add_f64 v[39:40], v[39:40], -v[27:28]
	v_add_f64 v[33:34], v[33:34], -v[47:48]
	v_add_f64 v[59:60], v[17:18], -v[59:60]
	v_add_f64 v[9:10], v[49:50], -v[9:10]
	v_add_f64 v[11:12], v[53:54], -v[11:12]
	v_add_f64 v[63:64], v[45:46], -v[57:58]
	v_add_f64 v[41:42], v[41:42], -v[61:62]
	v_add_f64 v[19:20], v[39:40], -v[19:20]
	v_add_f64 v[21:22], v[33:34], -v[21:22]
	v_add_f64 v[33:34], v[57:58], -v[51:52]
	v_add_f64 v[13:14], v[59:60], -v[13:14]
	v_add_f64 v[39:40], v[45:46], -v[63:64]
	v_add_f64 v[17:18], v[41:42], -v[17:18]
	v_add_f64 v[9:10], v[9:10], v[19:20]
	v_add_f64 v[11:12], v[11:12], v[21:22]
	v_add_f64 v[15:16], v[33:34], -v[15:16]
	v_add_f64 v[19:20], v[39:40], -v[57:58]
	v_add_f64 v[13:14], v[13:14], v[17:18]
	v_add_f64 v[9:10], v[27:28], v[9:10]
	v_add_f64 v[11:12], v[47:48], v[11:12]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[15:16], v[15:16], v[19:20]
	v_add_f64 v[13:14], v[61:62], v[13:14]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[9:10], v[23:24], v[9:10]
	v_mul_f64 v[11:12], v[25:26], v[11:12]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[15:16], v[63:64], v[15:16]
	v_mul_f64 v[13:14], v[29:30], v[13:14]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[17:18], v[35:36], v[9:10]
	v_add_f64 v[19:20], v[43:44], v[11:12]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[15:16], v[31:32], v[15:16]
	v_add_f64 v[21:22], v[37:38], v[13:14]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[23:24], v[17:18], -v[35:36]
	v_add_f64 v[25:26], v[19:20], -v[43:44]
	v_mul_f64 v[31:32], v[17:18], v[17:18]
	v_add_f64 v[27:28], v[55:56], v[15:16]
	v_add_f64 v[29:30], v[21:22], -v[37:38]
	v_add_f64 v[9:10], v[9:10], -v[23:24]
	v_mul_f64 v[23:24], v[19:20], v[19:20]
	v_add_f64 v[11:12], v[11:12], -v[25:26]
	v_mul_f64 v[33:34], v[21:22], v[21:22]
	v_add_f64 v[25:26], v[27:28], -v[55:56]
	v_add_f64 v[13:14], v[13:14], -v[29:30]
	v_fma_f64 v[29:30], v[17:18], v[17:18], -v[31:32]
	v_add_f64 v[35:36], v[9:10], v[9:10]
	v_fma_f64 v[37:38], v[19:20], v[19:20], -v[23:24]
	v_add_f64 v[39:40], v[11:12], v[11:12]
	v_mul_f64 v[41:42], v[27:28], v[27:28]
	v_add_f64 v[15:16], v[15:16], -v[25:26]
	v_fma_f64 v[25:26], v[21:22], v[21:22], -v[33:34]
	v_add_f64 v[43:44], v[13:14], v[13:14]
	v_fma_f64 v[29:30], v[17:18], v[35:36], v[29:30]
	v_fma_f64 v[35:36], v[19:20], v[39:40], v[37:38]
	v_fma_f64 v[37:38], v[27:28], v[27:28], -v[41:42]
	v_add_f64 v[39:40], v[15:16], v[15:16]
	v_fma_f64 v[25:26], v[21:22], v[43:44], v[25:26]
	v_add_f64 v[43:44], v[31:32], v[29:30]
	v_add_f64 v[45:46], v[23:24], v[35:36]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[37:38], v[27:28], v[39:40], v[37:38]
	v_add_f64 v[39:40], v[33:34], v[25:26]
	s_delay_alu instid0(VALU_DEP_4)
	v_fma_f64 v[47:48], v[43:44], s[10:11], s[6:7]
	v_add_f64 v[31:32], v[43:44], -v[31:32]
	v_fma_f64 v[49:50], v[45:46], s[10:11], s[6:7]
	v_add_f64 v[23:24], v[45:46], -v[23:24]
	v_mul_f64 v[65:66], v[17:18], v[43:44]
	v_mul_f64 v[69:70], v[19:20], v[45:46]
	v_add_f64 v[51:52], v[41:42], v[37:38]
	v_fma_f64 v[53:54], v[39:40], s[10:11], s[6:7]
	v_fma_f64 v[47:48], v[43:44], v[47:48], s[12:13]
	v_add_f64 v[33:34], v[39:40], -v[33:34]
	v_fma_f64 v[49:50], v[45:46], v[49:50], s[12:13]
	v_add_f64 v[29:30], v[29:30], -v[31:32]
	v_add_f64 v[23:24], v[35:36], -v[23:24]
	v_mul_f64 v[73:74], v[21:22], v[39:40]
	v_fma_f64 v[55:56], v[51:52], s[10:11], s[6:7]
	s_mov_b32 s6, 0x47e6c9c2
	v_fma_f64 v[53:54], v[39:40], v[53:54], s[12:13]
	s_mov_b32 s7, 0x3fc110ef
	s_mov_b32 s10, 0xcfa74449
	v_fma_f64 v[47:48], v[43:44], v[47:48], s[6:7]
	v_fma_f64 v[49:50], v[45:46], v[49:50], s[6:7]
	s_mov_b32 s11, 0x3fc3b13b
	v_add_f64 v[41:42], v[51:52], -v[41:42]
	v_add_f64 v[25:26], v[25:26], -v[33:34]
	v_mul_f64 v[83:84], v[27:28], v[51:52]
	v_fma_f64 v[85:86], v[39:40], v[21:22], -v[73:74]
	v_fma_f64 v[55:56], v[51:52], v[55:56], s[12:13]
	v_fma_f64 v[53:54], v[39:40], v[53:54], s[6:7]
	v_fma_f64 v[47:48], v[43:44], v[47:48], s[10:11]
	v_fma_f64 v[49:50], v[45:46], v[49:50], s[10:11]
	v_add_f64 v[37:38], v[37:38], -v[41:42]
	v_fma_f64 v[55:56], v[51:52], v[55:56], s[6:7]
	s_mov_b32 s6, 0x71bf3c30
	v_fma_f64 v[53:54], v[39:40], v[53:54], s[10:11]
	s_mov_b32 s7, 0x3fc745d1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[47:48], v[43:44], v[47:48], s[6:7]
	v_fma_f64 v[49:50], v[45:46], v[49:50], s[6:7]
	v_fma_f64 v[55:56], v[51:52], v[55:56], s[10:11]
	s_mov_b32 s10, 0x1c7792ce
	s_delay_alu instid0(VALU_DEP_4)
	v_fma_f64 v[53:54], v[39:40], v[53:54], s[6:7]
	s_mov_b32 s11, 0x3fcc71c7
	s_delay_alu instid0(VALU_DEP_4) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[47:48], v[43:44], v[47:48], s[10:11]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[49:50], v[45:46], v[49:50], s[10:11]
	v_fma_f64 v[55:56], v[51:52], v[55:56], s[6:7]
	s_mov_b32 s6, 0x924920da
	s_delay_alu instid0(VALU_DEP_4)
	v_fma_f64 v[53:54], v[39:40], v[53:54], s[10:11]
	s_mov_b32 s7, 0x3fd24924
	s_delay_alu instid0(VALU_DEP_4) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[47:48], v[43:44], v[47:48], s[6:7]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[49:50], v[45:46], v[49:50], s[6:7]
	v_fma_f64 v[55:56], v[51:52], v[55:56], s[10:11]
	s_mov_b32 s10, 0x9999999c
	s_delay_alu instid0(VALU_DEP_4)
	v_fma_f64 v[53:54], v[39:40], v[53:54], s[6:7]
	s_mov_b32 s11, 0x3fd99999
	s_delay_alu instid0(VALU_DEP_4) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[47:48], v[43:44], v[47:48], s[10:11]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[49:50], v[45:46], v[49:50], s[10:11]
	v_fma_f64 v[55:56], v[51:52], v[55:56], s[6:7]
	s_mov_b32 s7, 0xbfe55555
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[53:54], v[39:40], v[53:54], s[10:11]
	s_mov_b32 s6, s4
	v_mul_f64 v[57:58], v[43:44], v[47:48]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[59:60], v[45:46], v[49:50]
	v_fma_f64 v[55:56], v[51:52], v[55:56], s[10:11]
	s_mov_b32 s10, 0xd5df274d
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_mul_f64 v[61:62], v[39:40], v[53:54]
	s_mov_b32 s11, 0x3c8543b0
	v_fma_f64 v[31:32], v[43:44], v[47:48], -v[57:58]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[35:36], v[45:46], v[49:50], -v[59:60]
	v_mul_f64 v[63:64], v[51:52], v[55:56]
	s_delay_alu instid0(VALU_DEP_4)
	v_fma_f64 v[33:34], v[39:40], v[53:54], -v[61:62]
	v_fma_f64 v[39:40], v[39:40], v[13:14], v[85:86]
	v_ldexp_f64 v[13:14], v[13:14], 1
	v_fma_f64 v[31:32], v[29:30], v[47:48], v[31:32]
	v_fma_f64 v[35:36], v[23:24], v[49:50], v[35:36]
	v_fma_f64 v[41:42], v[51:52], v[55:56], -v[63:64]
	v_fma_f64 v[33:34], v[25:26], v[53:54], v[33:34]
	v_fma_f64 v[25:26], v[25:26], v[21:22], v[39:40]
	v_ldexp_f64 v[21:22], v[21:22], 1
	v_add_f64 v[47:48], v[57:58], v[31:32]
	v_add_f64 v[49:50], v[59:60], v[35:36]
	v_fma_f64 v[41:42], v[37:38], v[55:56], v[41:42]
	v_add_f64 v[53:54], v[61:62], v[33:34]
	s_delay_alu instid0(VALU_DEP_4)
	v_add_f64 v[55:56], v[47:48], s[4:5]
	v_add_f64 v[57:58], v[47:48], -v[57:58]
	v_add_f64 v[67:68], v[49:50], s[4:5]
	v_add_f64 v[59:60], v[49:50], -v[59:60]
	v_add_f64 v[71:72], v[63:64], v[41:42]
	v_add_f64 v[75:76], v[53:54], s[4:5]
	v_add_f64 v[61:62], v[53:54], -v[61:62]
	v_add_f64 v[77:78], v[55:56], s[6:7]
	v_add_f64 v[31:32], v[31:32], -v[57:58]
	v_fma_f64 v[57:58], v[43:44], v[17:18], -v[65:66]
	v_add_f64 v[79:80], v[67:68], s[6:7]
	v_add_f64 v[35:36], v[35:36], -v[59:60]
	v_fma_f64 v[59:60], v[45:46], v[19:20], -v[69:70]
	v_add_f64 v[81:82], v[71:72], s[4:5]
	v_add_f64 v[63:64], v[71:72], -v[63:64]
	v_add_f64 v[87:88], v[75:76], s[6:7]
	v_add_f64 v[33:34], v[33:34], -v[61:62]
	s_mov_b32 s4, 0x3b39803f
	v_add_f64 v[47:48], v[47:48], -v[77:78]
	v_add_f64 v[31:32], v[31:32], s[10:11]
	v_fma_f64 v[43:44], v[43:44], v[9:10], v[57:58]
	v_add_f64 v[49:50], v[49:50], -v[79:80]
	v_add_f64 v[35:36], v[35:36], s[10:11]
	v_fma_f64 v[45:46], v[45:46], v[11:12], v[59:60]
	v_fma_f64 v[59:60], v[51:52], v[27:28], -v[83:84]
	v_ldexp_f64 v[9:10], v[9:10], 1
	v_ldexp_f64 v[11:12], v[11:12], 1
	s_mov_b32 s5, 0x3c7abc9e
	v_add_f64 v[57:58], v[81:82], s[6:7]
	v_add_f64 v[41:42], v[41:42], -v[63:64]
	v_add_f64 v[53:54], v[53:54], -v[87:88]
	v_add_f64 v[33:34], v[33:34], s[10:11]
	s_mov_b32 s6, 0x652b82fe
	s_mov_b32 s7, 0x3ff71547
	v_add_f64 v[31:32], v[31:32], v[47:48]
	v_fma_f64 v[29:30], v[29:30], v[17:18], v[43:44]
	v_ldexp_f64 v[17:18], v[17:18], 1
	v_add_f64 v[35:36], v[35:36], v[49:50]
	v_fma_f64 v[23:24], v[23:24], v[19:20], v[45:46]
	v_fma_f64 v[45:46], v[51:52], v[15:16], v[59:60]
	v_ldexp_f64 v[19:20], v[19:20], 1
	v_ldexp_f64 v[15:16], v[15:16], 1
	v_add_f64 v[43:44], v[71:72], -v[57:58]
	v_add_f64 v[41:42], v[41:42], s[10:11]
	v_add_f64 v[33:34], v[33:34], v[53:54]
	v_add_f64 v[39:40], v[55:56], v[31:32]
	v_add_f64 v[47:48], v[65:66], v[29:30]
	v_add_f64 v[49:50], v[67:68], v[35:36]
	v_add_f64 v[51:52], v[69:70], v[23:24]
	v_fma_f64 v[37:38], v[37:38], v[27:28], v[45:46]
	v_add_f64 v[45:46], v[73:74], v[25:26]
	v_ldexp_f64 v[27:28], v[27:28], 1
	v_add_f64 v[41:42], v[41:42], v[43:44]
	v_add_f64 v[43:44], v[75:76], v[33:34]
	v_add_f64 v[53:54], v[55:56], -v[39:40]
	v_mul_f64 v[55:56], v[47:48], v[39:40]
	v_add_f64 v[65:66], v[47:48], -v[65:66]
	v_add_f64 v[57:58], v[67:68], -v[49:50]
	v_mul_f64 v[59:60], v[51:52], v[49:50]
	v_add_f64 v[63:64], v[83:84], v[37:38]
	v_add_f64 v[69:70], v[51:52], -v[69:70]
	v_add_f64 v[73:74], v[45:46], -v[73:74]
	v_add_f64 v[61:62], v[81:82], v[41:42]
	v_add_f64 v[67:68], v[75:76], -v[43:44]
	v_mul_f64 v[71:72], v[45:46], v[43:44]
	v_add_f64 v[31:32], v[31:32], v[53:54]
	v_fma_f64 v[53:54], v[47:48], v[39:40], -v[55:56]
	v_add_f64 v[29:30], v[29:30], -v[65:66]
	v_add_f64 v[35:36], v[35:36], v[57:58]
	v_fma_f64 v[57:58], v[51:52], v[49:50], -v[59:60]
	v_add_f64 v[23:24], v[23:24], -v[69:70]
	v_add_f64 v[25:26], v[25:26], -v[73:74]
	v_add_f64 v[75:76], v[81:82], -v[61:62]
	v_mul_f64 v[77:78], v[63:64], v[61:62]
	v_add_f64 v[33:34], v[33:34], v[67:68]
	v_fma_f64 v[67:68], v[45:46], v[43:44], -v[71:72]
	v_fma_f64 v[31:32], v[47:48], v[31:32], v[53:54]
	v_add_f64 v[47:48], v[63:64], -v[83:84]
	v_fma_f64 v[35:36], v[51:52], v[35:36], v[57:58]
	v_add_f64 v[41:42], v[41:42], v[75:76]
	v_fma_f64 v[51:52], v[63:64], v[61:62], -v[77:78]
	v_fma_f64 v[33:34], v[45:46], v[33:34], v[67:68]
	v_fma_f64 v[29:30], v[29:30], v[39:40], v[31:32]
	v_add_f64 v[31:32], v[37:38], -v[47:48]
	v_cvt_f64_i32_e32 v[39:40], v0
	v_fma_f64 v[23:24], v[23:24], v[49:50], v[35:36]
	v_fma_f64 v[35:36], v[63:64], v[41:42], v[51:52]
	v_frexp_exp_i32_f64_e32 v41, v[5:6]
	v_fma_f64 v[25:26], v[25:26], v[43:44], v[33:34]
	v_frexp_exp_i32_f64_e32 v51, v[3:4]
	v_add_f64 v[33:34], v[55:56], v[29:30]
	v_add_f64 v[37:38], v[59:60], v[23:24]
	v_fma_f64 v[31:32], v[31:32], v[61:62], v[35:36]
	v_subrev_co_ci_u32_e32 v0, vcc_lo, 0, v41, vcc_lo
	v_add_f64 v[35:36], v[71:72], v[25:26]
	v_subrev_co_ci_u32_e64 v51, vcc_lo, 0, v51, s2
	v_add_f64 v[41:42], v[17:18], v[33:34]
	v_add_f64 v[43:44], v[33:34], -v[55:56]
	v_cvt_f64_i32_e32 v[45:46], v0
	v_frexp_exp_i32_f64_e32 v0, s[8:9]
	v_add_f64 v[47:48], v[19:20], v[37:38]
	v_add_f64 v[49:50], v[37:38], -v[59:60]
	v_cvt_f64_i32_e32 v[51:52], v51
	s_mov_b32 s2, 0xfefa39ef
	s_mov_b32 s3, 0x3fe62e42
	s_delay_alu instid0(SALU_CYCLE_1)
	v_mul_f64 v[53:54], v[39:40], s[2:3]
	v_add_f64 v[55:56], v[77:78], v[31:32]
	v_add_f64 v[57:58], v[21:22], v[35:36]
	v_add_f64 v[59:60], v[35:36], -v[71:72]
	v_add_f64 v[17:18], v[41:42], -v[17:18]
	v_add_f64 v[29:30], v[29:30], -v[43:44]
	v_mul_f64 v[43:44], v[45:46], s[2:3]
	v_subrev_co_ci_u32_e64 v0, vcc_lo, 0, v0, s1
	v_add_f64 v[19:20], v[47:48], -v[19:20]
	v_add_f64 v[23:24], v[23:24], -v[49:50]
	v_mul_f64 v[61:62], v[51:52], s[2:3]
	s_delay_alu instid0(VALU_DEP_4)
	v_cvt_f64_i32_e32 v[49:50], v0
	v_fma_f64 v[63:64], v[39:40], s[2:3], -v[53:54]
	v_add_f64 v[65:66], v[27:28], v[55:56]
	v_add_f64 v[67:68], v[55:56], -v[77:78]
	v_add_f64 v[21:22], v[57:58], -v[21:22]
	v_add_f64 v[25:26], v[25:26], -v[59:60]
	v_add_f64 v[17:18], v[33:34], -v[17:18]
	v_add_f64 v[9:10], v[9:10], v[29:30]
	v_fma_f64 v[29:30], v[45:46], s[2:3], -v[43:44]
	v_add_f64 v[19:20], v[37:38], -v[19:20]
	v_add_f64 v[11:12], v[11:12], v[23:24]
	v_fma_f64 v[33:34], v[51:52], s[2:3], -v[61:62]
	v_mul_f64 v[23:24], v[49:50], s[2:3]
	v_add_f64 v[27:28], v[65:66], -v[27:28]
	v_add_f64 v[31:32], v[31:32], -v[67:68]
	v_add_f64 v[21:22], v[35:36], -v[21:22]
	v_add_f64 v[13:14], v[13:14], v[25:26]
	v_fma_f64 v[25:26], v[39:40], s[4:5], v[63:64]
	v_add_f64 v[9:10], v[9:10], v[17:18]
	v_fma_f64 v[17:18], v[45:46], s[4:5], v[29:30]
	v_add_f64 v[11:12], v[11:12], v[19:20]
	v_fma_f64 v[29:30], v[51:52], s[4:5], v[33:34]
	v_fma_f64 v[19:20], v[49:50], s[2:3], -v[23:24]
	s_mov_b32 s3, 0xbfe62e42
	v_add_f64 v[27:28], v[55:56], -v[27:28]
	v_add_f64 v[15:16], v[15:16], v[31:32]
	v_add_f64 v[13:14], v[13:14], v[21:22]
	v_add_f64 v[21:22], v[53:54], v[25:26]
	v_add_f64 v[31:32], v[41:42], v[9:10]
	v_add_f64 v[33:34], v[43:44], v[17:18]
	v_add_f64 v[35:36], v[47:48], v[11:12]
	v_fma_f64 v[19:20], v[49:50], s[4:5], v[19:20]
	s_mov_b32 s5, 0xbc7abc9e
	v_add_f64 v[15:16], v[15:16], v[27:28]
	v_add_f64 v[27:28], v[61:62], v[29:30]
	v_add_f64 v[37:38], v[57:58], v[13:14]
	v_add_f64 v[53:54], v[21:22], -v[53:54]
	v_add_f64 v[39:40], v[21:22], v[31:32]
	v_add_f64 v[41:42], v[31:32], -v[41:42]
	v_add_f64 v[43:44], v[33:34], -v[43:44]
	v_add_f64 v[45:46], v[33:34], v[35:36]
	v_add_f64 v[47:48], v[35:36], -v[47:48]
	v_add_f64 v[49:50], v[23:24], v[19:20]
	v_add_f64 v[51:52], v[65:66], v[15:16]
	v_add_f64 v[61:62], v[27:28], -v[61:62]
	v_add_f64 v[55:56], v[27:28], v[37:38]
	v_add_f64 v[25:26], v[25:26], -v[53:54]
	v_add_f64 v[57:58], v[37:38], -v[57:58]
	v_add_f64 v[59:60], v[39:40], -v[21:22]
	v_add_f64 v[9:10], v[9:10], -v[41:42]
	v_add_f64 v[17:18], v[17:18], -v[43:44]
	v_add_f64 v[63:64], v[45:46], -v[33:34]
	v_add_f64 v[11:12], v[11:12], -v[47:48]
	v_add_f64 v[23:24], v[49:50], -v[23:24]
	v_add_f64 v[67:68], v[49:50], v[51:52]
	v_add_f64 v[43:44], v[51:52], -v[65:66]
	v_add_f64 v[29:30], v[29:30], -v[61:62]
	v_add_f64 v[69:70], v[55:56], -v[27:28]
	v_add_f64 v[13:14], v[13:14], -v[57:58]
	v_add_f64 v[71:72], v[39:40], -v[59:60]
	v_add_f64 v[31:32], v[31:32], -v[59:60]
	v_add_f64 v[73:74], v[45:46], -v[63:64]
	v_add_f64 v[35:36], v[35:36], -v[63:64]
	v_add_f64 v[19:20], v[19:20], -v[23:24]
	v_add_f64 v[53:54], v[67:68], -v[49:50]
	v_add_f64 v[15:16], v[15:16], -v[43:44]
	v_add_f64 v[41:42], v[55:56], -v[69:70]
	v_add_f64 v[37:38], v[37:38], -v[69:70]
	v_add_f64 v[43:44], v[29:30], v[13:14]
	v_add_f64 v[21:22], v[21:22], -v[71:72]
	v_add_f64 v[33:34], v[33:34], -v[73:74]
	v_add_f64 v[47:48], v[67:68], -v[53:54]
	v_add_f64 v[23:24], v[51:52], -v[53:54]
	v_add_f64 v[27:28], v[27:28], -v[41:42]
	v_add_f64 v[41:42], v[25:26], v[9:10]
	v_add_f64 v[21:22], v[31:32], v[21:22]
	v_add_f64 v[31:32], v[17:18], v[11:12]
	v_add_f64 v[33:34], v[35:36], v[33:34]
	v_add_f64 v[35:36], v[49:50], -v[47:48]
	v_add_f64 v[49:50], v[19:20], v[15:16]
	v_add_f64 v[27:28], v[37:38], v[27:28]
	v_add_f64 v[37:38], v[41:42], -v[25:26]
	v_add_f64 v[21:22], v[41:42], v[21:22]
	v_add_f64 v[47:48], v[31:32], -v[17:18]
	v_add_f64 v[33:34], v[31:32], v[33:34]
	v_add_f64 v[23:24], v[23:24], v[35:36]
	v_add_f64 v[35:36], v[43:44], -v[29:30]
	v_add_f64 v[57:58], v[49:50], -v[19:20]
	v_add_f64 v[27:28], v[43:44], v[27:28]
	v_add_f64 v[41:42], v[41:42], -v[37:38]
	v_add_f64 v[9:10], v[9:10], -v[37:38]
	v_add_f64 v[51:52], v[39:40], v[21:22]
	v_add_f64 v[31:32], v[31:32], -v[47:48]
	v_add_f64 v[11:12], v[11:12], -v[47:48]
	v_add_f64 v[53:54], v[45:46], v[33:34]
	v_add_f64 v[23:24], v[49:50], v[23:24]
	v_add_f64 v[37:38], v[43:44], -v[35:36]
	v_add_f64 v[13:14], v[13:14], -v[35:36]
	v_add_f64 v[43:44], v[55:56], v[27:28]
	v_add_f64 v[25:26], v[25:26], -v[41:42]
	v_add_f64 v[41:42], v[49:50], -v[57:58]
	v_add_f64 v[39:40], v[51:52], -v[39:40]
	v_add_f64 v[17:18], v[17:18], -v[31:32]
	v_add_f64 v[15:16], v[15:16], -v[57:58]
	v_add_f64 v[31:32], v[53:54], -v[45:46]
	v_add_f64 v[45:46], v[67:68], v[23:24]
	v_add_f64 v[29:30], v[29:30], -v[37:38]
	v_add_f64 v[35:36], v[43:44], -v[55:56]
	v_add_f64 v[9:10], v[9:10], v[25:26]
	v_add_f64 v[19:20], v[19:20], -v[41:42]
	v_add_f64 v[21:22], v[21:22], -v[39:40]
	v_add_f64 v[11:12], v[11:12], v[17:18]
	v_add_f64 v[17:18], v[33:34], -v[31:32]
	v_add_f64 v[25:26], v[45:46], -v[67:68]
	v_add_f64 v[13:14], v[13:14], v[29:30]
	v_add_f64 v[27:28], v[27:28], -v[35:36]
	v_add_f64 v[15:16], v[15:16], v[19:20]
	v_add_f64 v[9:10], v[9:10], v[21:22]
	v_add_f64 v[11:12], v[11:12], v[17:18]
	v_add_f64 v[17:18], v[23:24], -v[25:26]
	v_add_f64 v[13:14], v[13:14], v[27:28]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[19:20], v[51:52], v[9:10]
	v_add_f64 v[21:22], v[53:54], v[11:12]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[15:16], v[15:16], v[17:18]
	v_add_f64 v[17:18], v[43:44], v[13:14]
	s_delay_alu instid0(VALU_DEP_4)
	v_add_f64 v[23:24], v[19:20], -v[51:52]
	v_add_f64 v[25:26], v[19:20], v[19:20]
	v_add_f64 v[27:28], v[21:22], -v[53:54]
	v_add_f64 v[29:30], v[21:22], v[21:22]
	v_add_f64 v[31:32], v[45:46], v[15:16]
	v_add_f64 v[33:34], v[17:18], -v[43:44]
	v_add_f64 v[35:36], v[17:18], v[17:18]
	v_add_f64 v[9:10], v[9:10], -v[23:24]
	v_fma_f64 v[19:20], v[19:20], 2.0, -v[25:26]
	v_cmp_class_f64_e64 vcc_lo, v[25:26], 0x204
	v_add_f64 v[11:12], v[11:12], -v[27:28]
	v_fma_f64 v[21:22], v[21:22], 2.0, -v[29:30]
	v_cmp_class_f64_e64 s0, v[29:30], 0x204
	v_add_f64 v[23:24], v[31:32], -v[45:46]
	v_add_f64 v[27:28], v[31:32], v[31:32]
	v_add_f64 v[13:14], v[13:14], -v[33:34]
	v_fma_f64 v[17:18], v[17:18], 2.0, -v[35:36]
	v_cmp_class_f64_e64 s1, v[35:36], 0x204
	v_fma_f64 v[9:10], v[9:10], 2.0, v[19:20]
	v_fma_f64 v[11:12], v[11:12], 2.0, v[21:22]
	v_add_f64 v[15:16], v[15:16], -v[23:24]
	v_fma_f64 v[19:20], v[31:32], 2.0, -v[27:28]
	v_fma_f64 v[13:14], v[13:14], 2.0, v[17:18]
	v_add_f64 v[17:18], v[25:26], v[9:10]
	v_add_f64 v[21:22], v[29:30], v[11:12]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[15:16], v[15:16], 2.0, v[19:20]
	v_add_f64 v[19:20], v[35:36], v[13:14]
	s_delay_alu instid0(VALU_DEP_4)
	v_dual_cndmask_b32 v24, v18, v26 :: v_dual_cndmask_b32 v23, v17, v25
	v_cmp_class_f64_e64 vcc_lo, v[27:28], 0x204
	v_add_f64 v[17:18], v[17:18], -v[25:26]
	v_cndmask_b32_e64 v32, v22, v30, s0
	v_cndmask_b32_e64 v31, v21, v29, s0
	v_mul_f64 v[33:34], v[23:24], s[6:7]
	v_add_f64 v[21:22], v[21:22], -v[29:30]
	s_delay_alu instid0(VALU_DEP_3)
	v_mul_f64 v[37:38], v[31:32], s[6:7]
	v_add_f64 v[39:40], v[27:28], v[15:16]
	v_cndmask_b32_e64 v42, v20, v36, s1
	v_cndmask_b32_e64 v41, v19, v35, s1
	s_mov_b32 s0, 0xfca7ab0c
	s_mov_b32 s1, 0x3e928af3
	v_add_f64 v[19:20], v[19:20], -v[35:36]
	s_delay_alu instid0(VALU_DEP_2)
	v_mul_f64 v[43:44], v[41:42], s[6:7]
	v_add_f64 v[9:10], v[9:10], -v[17:18]
	v_rndne_f64_e32 v[33:34], v[33:34]
	v_add_f64 v[11:12], v[11:12], -v[21:22]
	v_rndne_f64_e32 v[37:38], v[37:38]
	v_dual_cndmask_b32 v46, v40, v28 :: v_dual_cndmask_b32 v45, v39, v27
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[23:24]|
	s_delay_alu instid0(VALU_DEP_2)
	v_mul_f64 v[47:48], v[45:46], s[6:7]
	s_mov_b32 s6, 0x6a5dcb37
	s_mov_b32 s7, 0x3e5ade15
	v_rndne_f64_e32 v[43:44], v[43:44]
	v_add_f64 v[13:14], v[13:14], -v[19:20]
	v_fma_f64 v[49:50], v[33:34], s[2:3], v[23:24]
	v_cvt_i32_f64_e32 v0, v[33:34]
	v_fma_f64 v[51:52], v[37:38], s[2:3], v[31:32]
	v_dual_cndmask_b32 v10, 0, v10 :: v_dual_cndmask_b32 v9, 0, v9
	v_cmp_nlt_f64_e32 vcc_lo, 0x40900000, v[41:42]
	v_rndne_f64_e32 v[47:48], v[47:48]
	v_fma_f64 v[53:54], v[43:44], s[2:3], v[41:42]
	v_fma_f64 v[49:50], v[33:34], s[4:5], v[49:50]
	v_fma_f64 v[51:52], v[37:38], s[4:5], v[51:52]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_fma_f64 v[55:56], v[47:48], s[2:3], v[45:46]
	s_mov_b32 s2, 0x623fde64
	s_mov_b32 s3, 0x3ec71dee
	v_fma_f64 v[53:54], v[43:44], s[4:5], v[53:54]
	v_cvt_i32_f64_e32 v43, v[43:44]
	v_fma_f64 v[57:58], v[49:50], s[6:7], s[0:1]
	v_fma_f64 v[59:60], v[51:52], s[6:7], s[0:1]
	v_fma_f64 v[55:56], v[47:48], s[4:5], v[55:56]
	s_mov_b32 s4, 0x7c89e6b0
	s_mov_b32 s5, 0x3efa0199
	v_fma_f64 v[61:62], v[53:54], s[6:7], s[0:1]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[57:58], v[49:50], v[57:58], s[2:3]
	v_fma_f64 v[59:60], v[51:52], v[59:60], s[2:3]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_fma_f64 v[63:64], v[55:56], s[6:7], s[0:1]
	s_mov_b32 s0, 0x14761f6e
	s_mov_b32 s1, 0x3f2a01a0
	v_fma_f64 v[61:62], v[53:54], v[61:62], s[2:3]
	v_cmp_neq_f64_e64 s6, 0x7ff00000, |v[5:6]|
	v_cmp_neq_f64_e64 s7, 0, v[5:6]
	v_fma_f64 v[57:58], v[49:50], v[57:58], s[4:5]
	v_fma_f64 v[59:60], v[51:52], v[59:60], s[4:5]
	v_fma_f64 v[63:64], v[55:56], v[63:64], s[2:3]
	s_mov_b32 s2, 0x1852b7b0
	s_mov_b32 s3, 0x3f56c16c
	v_fma_f64 v[61:62], v[53:54], v[61:62], s[4:5]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[57:58], v[49:50], v[57:58], s[0:1]
	v_fma_f64 v[59:60], v[51:52], v[59:60], s[0:1]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_fma_f64 v[63:64], v[55:56], v[63:64], s[4:5]
	s_mov_b32 s4, 0x11122322
	s_mov_b32 s5, 0x3f811111
	v_fma_f64 v[61:62], v[53:54], v[61:62], s[0:1]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[57:58], v[49:50], v[57:58], s[2:3]
	v_fma_f64 v[59:60], v[51:52], v[59:60], s[2:3]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_fma_f64 v[63:64], v[55:56], v[63:64], s[0:1]
	s_mov_b32 s0, 0x555502a1
	s_mov_b32 s1, 0x3fa55555
	v_fma_f64 v[61:62], v[53:54], v[61:62], s[2:3]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[57:58], v[49:50], v[57:58], s[4:5]
	v_fma_f64 v[59:60], v[51:52], v[59:60], s[4:5]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_fma_f64 v[63:64], v[55:56], v[63:64], s[2:3]
	s_mov_b32 s2, 0x55555511
	s_mov_b32 s3, 0x3fc55555
	v_fma_f64 v[61:62], v[53:54], v[61:62], s[4:5]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[57:58], v[49:50], v[57:58], s[0:1]
	v_fma_f64 v[59:60], v[51:52], v[59:60], s[0:1]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_fma_f64 v[63:64], v[55:56], v[63:64], s[4:5]
	s_mov_b32 s4, 11
	s_mov_b32 s5, 0x3fe00000
	v_fma_f64 v[61:62], v[53:54], v[61:62], s[0:1]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[57:58], v[49:50], v[57:58], s[2:3]
	v_fma_f64 v[59:60], v[51:52], v[59:60], s[2:3]
	s_delay_alu instid0(VALU_DEP_4)
	v_fma_f64 v[63:64], v[55:56], v[63:64], s[0:1]
	v_cmp_neq_f64_e64 s0, 0x7ff00000, |v[31:32]|
	v_cmp_nlt_f64_e64 s1, 0x40900000, v[23:24]
	v_fma_f64 v[61:62], v[53:54], v[61:62], s[2:3]
	v_fma_f64 v[57:58], v[49:50], v[57:58], s[4:5]
	v_fma_f64 v[59:60], v[51:52], v[59:60], s[4:5]
	v_fma_f64 v[63:64], v[55:56], v[63:64], s[2:3]
	v_cmp_nlt_f64_e64 s3, 0x40900000, v[31:32]
	v_cmp_ngt_f64_e64 s2, 0xc090cc00, v[23:24]
	v_fma_f64 v[61:62], v[53:54], v[61:62], s[4:5]
	v_cndmask_b32_e64 v12, 0, v12, s0
	v_cndmask_b32_e64 v11, 0, v11, s0
	v_cmp_ngt_f64_e64 s0, 0xc090cc00, v[41:42]
	v_fma_f64 v[57:58], v[49:50], v[57:58], 1.0
	v_add_f64 v[23:24], v[39:40], -v[27:28]
	v_fma_f64 v[59:60], v[51:52], v[59:60], 1.0
	v_fma_f64 v[63:64], v[55:56], v[63:64], s[4:5]
	v_cmp_ngt_f64_e64 s4, 0xc090cc00, v[31:32]
	v_cmp_neq_f64_e64 s5, 0x7ff00000, |v[41:42]|
	v_fma_f64 v[61:62], v[53:54], v[61:62], 1.0
	v_fma_f64 v[33:34], v[49:50], v[57:58], 1.0
	v_cvt_i32_f64_e32 v49, v[37:38]
	v_add_f64 v[15:16], v[15:16], -v[23:24]
	v_fma_f64 v[37:38], v[51:52], v[59:60], 1.0
	v_fma_f64 v[29:30], v[55:56], v[63:64], 1.0
	v_cndmask_b32_e64 v14, 0, v14, s5
	v_fma_f64 v[25:26], v[53:54], v[61:62], 1.0
	v_cndmask_b32_e64 v13, 0, v13, s5
	v_cmp_neq_f64_e64 s5, 0, v[7:8]
	v_ldexp_f64 v[33:34], v[33:34], v0
	v_cvt_i32_f64_e32 v0, v[47:48]
	v_ldexp_f64 v[37:38], v[37:38], v49
	v_fma_f64 v[21:22], v[55:56], v[29:30], 1.0
	v_ldexp_f64 v[17:18], v[25:26], v43
	v_cndmask_b32_e64 v25, 0x7ff00000, v34, s1
	s_and_b32 s1, s2, s1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v20, 0, v33, s1
	v_cndmask_b32_e64 v26, 0x7ff00000, v38, s3
	s_and_b32 s1, s4, s3
	v_cndmask_b32_e64 v26, 0, v26, s4
	v_cmp_neq_f64_e64 s4, 0x7ff00000, |v[7:8]|
	v_cndmask_b32_e32 v27, 0x7ff00000, v18, vcc_lo
	v_ldexp_f64 v[18:19], v[21:22], v0
	v_cndmask_b32_e64 v21, 0, v25, s2
	s_and_b32 vcc_lo, s0, vcc_lo
	v_cndmask_b32_e64 v25, 0, v37, s1
	v_cndmask_b32_e32 v22, 0, v17, vcc_lo
	v_cmp_nlt_f64_e32 vcc_lo, 0x40900000, v[45:46]
	v_fma_f64 v[9:10], v[20:21], v[9:10], v[20:21]
	v_cndmask_b32_e64 v23, 0, v27, s0
	v_cmp_ngt_f64_e64 s0, 0xc090cc00, v[45:46]
	v_cmp_class_f64_e64 s2, v[20:21], 0x204
	v_fma_f64 v[11:12], v[25:26], v[11:12], v[25:26]
	v_cmp_neq_f64_e64 s1, 0x7ff00000, |v[45:46]|
	v_cmp_class_f64_e64 s3, v[25:26], 0x204
	v_cndmask_b32_e32 v0, 0x7ff00000, v19, vcc_lo
	s_and_b32 vcc_lo, s0, vcc_lo
	v_cndmask_b32_e64 v9, v9, v20, s2
	v_cndmask_b32_e32 v7, 0, v18, vcc_lo
	v_cndmask_b32_e64 v6, 0, v16, s1
	v_cndmask_b32_e64 v5, 0, v15, s1
	v_cndmask_b32_e64 v8, 0, v0, s0
	v_cndmask_b32_e64 v11, v11, v25, s3
	v_cndmask_b32_e64 v10, v10, v21, s2
	s_and_b32 s2, s5, s4
	v_cmp_neq_f64_e64 s0, 0x7ff00000, |v[3:4]|
	v_cmp_neq_f64_e64 s1, 0, v[3:4]
	v_cndmask_b32_e64 v3, 0, v9, s2
	s_and_b32 s2, s7, s6
	v_fma_f64 v[5:6], v[7:8], v[5:6], v[7:8]
	v_cndmask_b32_e64 v9, 0, v11, s2
	v_cmp_class_f64_e64 s2, v[7:8], 0x204
	v_fma_f64 v[13:14], v[22:23], v[13:14], v[22:23]
	v_cndmask_b32_e64 v12, v12, v26, s3
	v_cmp_class_f64_e64 vcc_lo, v[22:23], 0x204
	v_cmp_neq_f64_e64 s3, s[8:9], 0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_and_b32_e32 v12, 0x7fffffff, v12
	v_cndmask_b32_e64 v12, 0x7ff00000, v12, s6
	v_cndmask_b32_e64 v5, v5, v7, s2
	v_and_b32_e32 v10, 0x7fffffff, v10
	v_cndmask_b32_e64 v6, v6, v8, s2
	v_cndmask_b32_e32 v0, v14, v23, vcc_lo
	v_cndmask_b32_e32 v8, v13, v22, vcc_lo
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |s[8:9]|
	v_cndmask_b32_e64 v10, 0x7ff00000, v10, s4
	v_and_b32_e32 v6, 0x7fffffff, v6
	v_and_b32_e32 v0, 0x7fffffff, v0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v4, 0, v10, s5
	v_cndmask_b32_e64 v10, 0, v12, s7
	v_cndmask_b32_e64 v0, 0x7ff00000, v0, s0
	s_and_b32 s0, s1, s0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v8, 0, v8, s0
	v_add_f64 v[3:4], v[3:4], v[9:10]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v9, 0, v0, s1
	v_cndmask_b32_e32 v0, 0x7ff00000, v6, vcc_lo
	s_and_b32 vcc_lo, s3, vcc_lo
	v_cndmask_b32_e32 v5, 0, v5, vcc_lo
	v_cndmask_b32_e64 v6, 0, v0, s3
	v_add_f64 v[3:4], v[3:4], v[8:9]
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_gt_f64_e32 vcc_lo, v[3:4], v[5:6]
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB0_3
; %bb.2:
	v_add_co_u32 v0, vcc_lo, s22, v1
	v_add_co_ci_u32_e32 v1, vcc_lo, s23, v2, vcc_lo
	v_mov_b32_e32 v2, 0
	global_store_b8 v[0:1], v2, off
.LBB0_3:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 328
		.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 89
		.amdhsa_next_free_sgpr 32
		.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	_ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_, .Lfunc_end0-_ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 5972
; NumSgprs: 34
; NumVgprs: 89
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 4
; VGPRBlocks: 11
; NumSGPRsForWavesPerEU: 34
; NumVGPRsForWavesPerEU: 89
; 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:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         56
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         64
        .size:           8
        .value_kind:     global_buffer
      - .offset:         72
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         76
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         80
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         84
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         86
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         88
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         90
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         92
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         94
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         112
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         120
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         128
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         136
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 328
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_
    .private_segment_fixed_size: 0
    .sgpr_count:     34
    .sgpr_spill_count: 0
    .symbol:         _ZN11placeholder6searchEPdS0_S0_PbPiS0_S0_S0_S0_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     89
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
