#include <iostream>
#include <stdlib.h>
#include <math.h>
#include <complex>
#include <string>
#include <fstream>
#include <time.h>
#include <cuda.h>
#include <cuda_runtime.h>

#define Nblock 16
#define NThreadPerBlock 64
#define NTotal Nblock*NThreadPerBlock
#define N_ 200
class RNHQS_ZB
{
    public:
        __device__ RNHQS_ZB();
        __device__ void initial(int,double,double,double,double,double,int,double*,double*,double*,double*,double*,double*,double*);
        __device__ void go(double *);
        __device__ void record(double *);
    private:
        __device__ void onestep();
        __device__ void getMean();
        __device__ void da(double,double*,double*,double*,double*);

        int tN_,numdt_,i_;
//        int N_;
        double h_,sigma_,ri_,omega_,phi_,t_;
        double *a1_,*a2_,*k_[4],*l_[4],*ta1_,*ta2_,*X_;
        double outMo_,outX_;
};

__device__
RNHQS_ZB::RNHQS_ZB()
{
}

__device__
void RNHQS_ZB::initial(int tN,double h,double sigma,double ri,double w,double phi,int numdt,double* X,double* a1,double* a2,double* ta1,double* ta2,double* k,double* l)
{
    tN_=tN;
    h_=h;
    sigma_=sigma;
    ri_=ri;
    omega_=w;
    phi_=phi;
    numdt_=numdt;
//    N_=200;
    i_=0;

    t_=0.0;

//    a1_=(double *)malloc(N_*sizeof(double));
//    a2_=(double *)malloc(N_*sizeof(double));
//    X_=(double *)malloc(N_*sizeof(double));
//    ta1_=(double *)malloc(N_*sizeof(double));
//    ta2_=(double *)malloc(N_*sizeof(double));
    a1_=a1;
    a2_=a2;
    X_=X;
    ta1_=ta1;
    ta2_=ta2;
    int i;
//    for (i=0;i<4;i++)
//    {
//        *(k_+i)=new double [N_];
//        *(l_+i)=new double [N_];
//    }

    for (i=0;i<4;i++)
    {
        *(k_+i)=k+N_*i;
        *(l_+i)=l+N_*i;
    }
    double w_d=6.0;
    for (i=0;i<N_;i++)
    {
        *(X_+i)=-N_/2.0+1.0/2.0+i;
        *(a1_+i)=exp(-pow(*(X_+i)/w_d,2.0))*cos(M_PI**(X_+i)/2.0);
        *(a2_+i)=exp(-pow(*(X_+i)/w_d,2.0))*sin(M_PI**(X_+i)/2.0);
    }
}

__device__ 
void RNHQS_ZB::go(double *_outMo)
{
    int ntime;

    for (ntime=0;ntime<numdt_;ntime++)
    {
        t_+=h_;
        RNHQS_ZB::onestep();
        if (ntime%1==0)
        {
            RNHQS_ZB::record(_outMo);
        }
    }
}

__device__ 
void RNHQS_ZB::onestep()
{
    int i,j;
    for (i=0;i<4;i++)
    {
        if (i==0)
        {
            RNHQS_ZB::da(t_,a1_,a2_,*(k_+i),*(l_+i));
        }
        else if (i==1 || i==2)
        {
            for (j=0;j<N_;j++)
            {
                *(ta1_+j)=*(a1_+j)+h_/2.0**(*(k_+i-1)+j);
                *(ta2_+j)=*(a2_+j)+h_/2.0**(*(l_+i-1)+j);
            }
            RNHQS_ZB::da(t_+h_/2.0,ta1_,ta2_,*(k_+i),*(l_+i));
        }
        else if (i==3)
        {
            for (j=0;j<N_;j++)
            {
                *(ta1_+j)=*(a1_+j)+h_**(*(k_+i-1)+j);
                *(ta2_+j)=*(a2_+j)+h_**(*(l_+i-1)+j);
            }
            RNHQS_ZB::da(t_+h_,ta1_,ta2_,*(k_+i),*(l_+i));
        }
    }
    for (j=0;j<N_;j++)
    {
        *(a1_+j)+=h_/6.0*(*(*k_+j)+2.0**(*(k_+1)+j)+2.0**(*(k_+2)+j)+*(*(k_+3)+j));
        *(a2_+j)+=h_/6.0*(*(*l_+j)+2.0**(*(l_+1)+j)+2.0**(*(l_+2)+j)+*(*(l_+3)+j));
    }
}

__device__ 
void RNHQS_ZB::da(double t,double *a1,double *a2,double *k,double *l)
{
    int i;
    double sigmai;

    sigmai=sigma_*ri_*sin(omega_*t+M_PI*phi_);

    for (i=1;i<N_-1;i++)
    {
        *(k+i)=-(*(a2+i+1)+*(a2+i-1))+pow(-1.0,i)*(sigma_**(a2+i)+sigmai**(a1+i));
        *(l+i)=(*(a1+i+1)+*(a1+i-1))+pow(-1.0,i+1)*(sigma_**(a1+i)-sigmai**(a2+i));
    }

    *(k+0)=-(*(a2+1)+*(a2+N_-1))+pow(-1.0,0)*(sigma_**(a2+0)+sigmai**(a1+0));
    *(l+0)=(*(a1+1)+*(a1+N_-1))+pow(-1.0,0+1)*(sigma_**(a1+0)-sigmai**(a2+0));

    *(k+N_-1)=-(*(a2+0)+*(a2+N_-2))+pow(-1.0,N_-1)*(sigma_**(a2+N_-1)+sigmai**(a1+N_-1));
    *(l+N_-1)=(*(a1+0)+*(a1+N_-2))+pow(-1.0,N_)*(sigma_**(a1+N_-1)-sigmai**(a2+N_-1));
}

__device__ 
void RNHQS_ZB::getMean()
{
    int i;
    outMo_=0.0;
    outX_=0.0;
    for (i=0;i<N_;i++)
    {
        outMo_+=pow(*(a1_+i),2.0)+pow(*(a2_+i),2.0);
        outX_+=*(X_+i)*(pow(*(a1_+i),2.0)+pow(*(a2_+i),2.0));
    }

//    if (wasExecuted_)
//   {
//        return;
//    }
//    else
//    {
//        double rest;
//        for (i=N_-10;i<N_-1;i++)
//        {
//            rest+=pow(*(a1_+i),2.0)+pow(*(a2_+i),2.0);
//        }

//        if (rest/outMo_>0.001)
//        {
 //           std::cout << tN_ << ": waveguide not long enough" << std::endl;
//        }
//        wasExecuted_ = true;
//    }
}

__device__ 
void RNHQS_ZB::record(double *_outMo)
{
    RNHQS_ZB::getMean();
    *(_outMo+i_)=outMo_;
    i_++;
}

__global__ void sRNHQS_ZB(int tN,double h,double sigma,double ri,double* omega,double phi,int numdt,double* _outMo,size_t pitch)
{
    int i=blockIdx.x*blockDim.x+threadIdx.x;

    RNHQS_ZB one;
//    __shared__ double a1[N_];
//    __shared__ double a2[N_];
//    __shared__ double X[N_];
//    __shared__ double ta1[N_];
//    __shared__ double ta2[N_];
//    __shared__ double k[4*N_];
//    __shared__ double l[4*N_];
    double a1[N_];
    double a2[N_];
    double X[N_];
    double ta1[N_];
    double ta2[N_];
    double k[4*N_];
    double l[4*N_];
    one.initial(tN,h,sigma,ri,*(omega+i),phi,numdt,X,a1,a2,ta1,ta2,k,l);
    one.go(_outMo+pitch/sizeof(double)*i);
}

int main (int argc, char *argv[])
{
    int tN,numdt,i,j;
    double h,phi,sigma,ri;
    double *omega;

    omega=new double [NTotal];
    for (i=0;i<NTotal;i++)
    {
        *(omega+i)=10.0/(NTotal-1.0)*i;
    }

//    size_t s1,s2,s3;
//    cudaDeviceSetLimit(cudaLimitStackSize,4*1024*sizeof(double));
    cudaError cE;
    cE=cudaDeviceSetLimit(cudaLimitMallocHeapSize,16*1024*1024*sizeof(double));
    if (cE!=0) std::cout << cE << std::endl;
//    cudaDeviceSetLimit(cudaLimitPrintfFifoSize,1024*1024*sizeof(double));
//    cudaDeviceGetLimit(&s1,cudaLimitStackSize);
//    cudaDeviceGetLimit(&s2,cudaLimitPrintfFifoSize);
//    cudaDeviceGetLimit(&s3,cudaLimitMallocHeapSize);
//    std::cout << s1/sizeof(double)/1024/1024 << "M " << s2/sizeof(double)/1024/1024 << " " << s3/sizeof(double)/1024/1024 << std::endl;
//    std::cout << "Stack size per thread = " << s1/1024 << "Kb" << std::endl;
//    std::cout << "IO in total = " << s2/1024 << "Kb" << std::endl;
//    std::cout << "IO per thread = " << s2/1024/1024 << "Kb" << std::endl;
//    std::cout << "Heap size in total = " << s3/1024 << "Kb" << std::endl;
//    std::cout << "Heap size in total = " << s3/1024/1024 << "Mb" << std::endl;
//    std::cout << "Heap size per thread = " << s3/1024/1024 << "Kb" << std::endl;
//    std::cout << "Total double per thread = " << s3/sizeof(double)/1024  << std::endl;

    if (argc>1)
    {
        
        if (argc==7)
        {
            tN=(int)atof(argv[1]);
            h=(double)atof(argv[2]);
            sigma=(double)atof(argv[3]);
            ri=(double)atof(argv[4]);
            phi=(double)atof(argv[5]);
            numdt=(int)atof(argv[6]);

            double* _omega;
            cE=cudaMalloc(&_omega,1024*sizeof(double));
            if (cE!=0) std::cout << cE << std::endl;
            cE=cudaMemcpy(_omega,omega,1024*sizeof(double),cudaMemcpyHostToDevice);
            if (cE!=0) std::cout << cE << std::endl;

            double *_outMo,*outMo;
            size_t pitch;
            cE=cudaMallocPitch(&_outMo,&pitch,sizeof(double)*numdt,NTotal);
            if (cE!=0) std::cout << cE << std::endl;
            outMo=new double [numdt*NTotal];
            sRNHQS_ZB<<<Nblock,NThreadPerBlock>>>(tN,h,sigma,ri,_omega,phi,numdt,_outMo,pitch);
            cE=cudaDeviceSynchronize();
            if (cE!=0) std::cout << cE << std::endl;
            std::cout << "CUDA computation complete. Start to copy data into host." << std::endl;
            cE=cudaMemcpy2D(outMo,numdt*sizeof(double),_outMo,pitch,numdt*sizeof(double),NTotal,cudaMemcpyDeviceToHost);
            if (cE!=0) std::cout << cE << std::endl;
            std::cout << "Copy finished. Start to write to file." << std::endl;

            char* filename[NTotal];
            std::ofstream out[NTotal];
            for (i=0;i<NTotal;i++)
            {
                filename[i]=new char [20];
                sprintf(filename[i],"ZB%d.txt",i+1);
                out[i].open(filename[i],std::ostream::out);
                for (j=0;j<numdt;j++)
                {
                    out[i] << *((double *)outMo+i*numdt+j) << std::endl;
                }
            }
        }
    }

    std::cout << "time used = " << clock()/CLOCKS_PER_SEC << std::endl;

    return 0;
}

	.file	"tmpxft_002c0a43_00000000-6_cuda_main.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4078:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4078:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSolsEPFRSoS_E.isra.0, @function
_ZNSolsEPFRSoS_E.isra.0:
.LFB4789:
	.cfi_startproc
	jmp	*%rsi
	.cfi_endproc
.LFE4789:
	.size	_ZNSolsEPFRSoS_E.isra.0, .-_ZNSolsEPFRSoS_E.isra.0
	.align 2
	.globl	_ZN8RNHQS_ZBC2Ev
	.type	_ZN8RNHQS_ZBC2Ev, @function
_ZN8RNHQS_ZBC2Ev:
.LFB4067:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
	movq	%rax, -16(%rsp)
	movq	-16(%rsp), %rdi
	jmp	free@PLT
	.cfi_endproc
.LFE4067:
	.size	_ZN8RNHQS_ZBC2Ev, .-_ZN8RNHQS_ZBC2Ev
	.globl	_ZN8RNHQS_ZBC1Ev
	.set	_ZN8RNHQS_ZBC1Ev,_ZN8RNHQS_ZBC2Ev
	.align 2
	.globl	_ZN8RNHQS_ZB7initialEidddddiPdS0_S0_S0_S0_S0_S0_
	.type	_ZN8RNHQS_ZB7initialEidddddiPdS0_S0_S0_S0_S0_S0_, @function
_ZN8RNHQS_ZB7initialEidddddiPdS0_S0_S0_S0_S0_S0_:
.LFB4069:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE4069:
	.size	_ZN8RNHQS_ZB7initialEidddddiPdS0_S0_S0_S0_S0_S0_, .-_ZN8RNHQS_ZB7initialEidddddiPdS0_S0_S0_S0_S0_S0_
	.align 2
	.globl	_ZN8RNHQS_ZB2goEPd
	.type	_ZN8RNHQS_ZB2goEPd, @function
_ZN8RNHQS_ZB2goEPd:
.LFB4070:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE4070:
	.size	_ZN8RNHQS_ZB2goEPd, .-_ZN8RNHQS_ZB2goEPd
	.align 2
	.globl	_ZN8RNHQS_ZB7onestepEv
	.type	_ZN8RNHQS_ZB7onestepEv, @function
_ZN8RNHQS_ZB7onestepEv:
.LFB4071:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE4071:
	.size	_ZN8RNHQS_ZB7onestepEv, .-_ZN8RNHQS_ZB7onestepEv
	.align 2
	.globl	_ZN8RNHQS_ZB2daEdPdS0_S0_S0_
	.type	_ZN8RNHQS_ZB2daEdPdS0_S0_S0_, @function
_ZN8RNHQS_ZB2daEdPdS0_S0_S0_:
.LFB4072:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE4072:
	.size	_ZN8RNHQS_ZB2daEdPdS0_S0_S0_, .-_ZN8RNHQS_ZB2daEdPdS0_S0_S0_
	.align 2
	.globl	_ZN8RNHQS_ZB7getMeanEv
	.type	_ZN8RNHQS_ZB7getMeanEv, @function
_ZN8RNHQS_ZB7getMeanEv:
.LFB4788:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	pushq	%rax
	.cfi_def_cfa_offset 16
	call	_ZN8RNHQS_ZB7onestepEv
	.cfi_endproc
.LFE4788:
	.size	_ZN8RNHQS_ZB7getMeanEv, .-_ZN8RNHQS_ZB7getMeanEv
	.align 2
	.globl	_ZN8RNHQS_ZB6recordEPd
	.type	_ZN8RNHQS_ZB6recordEPd, @function
_ZN8RNHQS_ZB6recordEPd:
.LFB4786:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	pushq	%rax
	.cfi_def_cfa_offset 16
	call	_ZN8RNHQS_ZB2goEPd
	.cfi_endproc
.LFE4786:
	.size	_ZN8RNHQS_ZB6recordEPd, .-_ZN8RNHQS_ZB6recordEPd
	.globl	_Z37__device_stub__Z9sRNHQS_ZBidddPddiS_midddPddiS_m
	.type	_Z37__device_stub__Z9sRNHQS_ZBidddPddiS_midddPddiS_m, @function
_Z37__device_stub__Z9sRNHQS_ZBidddPddiS_midddPddiS_m:
.LFB4100:
	.cfi_startproc
	endbr64
	subq	$216, %rsp
	.cfi_def_cfa_offset 224
	movl	%edi, 60(%rsp)
	leaq	80(%rsp), %rdi
	movq	%rsi, 24(%rsp)
	leaq	92(%rsp), %rsi
	movl	%edx, 56(%rsp)
	leaq	64(%rsp), %rdx
	movq	%rcx, 8(%rsp)
	leaq	72(%rsp), %rcx
	movq	%r8, (%rsp)
	movsd	%xmm0, 48(%rsp)
	movsd	%xmm1, 40(%rsp)
	movsd	%xmm2, 32(%rsp)
	movsd	%xmm3, 16(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 200(%rsp)
	xorl	%eax, %eax
	leaq	60(%rsp), %rax
	movl	$1, 88(%rsp)
	movq	%rax, 128(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 184(%rsp)
	movq	%rsp, %rax
	movq	%rax, 192(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 80(%rsp)
	movq	%rax, 92(%rsp)
	movl	$1, 100(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L16
	pushq	72(%rsp)
	.cfi_def_cfa_offset 232
	leaq	_Z9sRNHQS_ZBidddPddiS_m(%rip), %rdi
	pushq	72(%rsp)
	.cfi_def_cfa_offset 240
	movq	108(%rsp), %rcx
	movl	116(%rsp), %r8d
	movq	96(%rsp), %rsi
	movl	104(%rsp), %edx
	leaq	144(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 232
	popq	%rdx
	.cfi_def_cfa_offset 224
.L16:
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	addq	$216, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4100:
	.size	_Z37__device_stub__Z9sRNHQS_ZBidddPddiS_midddPddiS_m, .-_Z37__device_stub__Z9sRNHQS_ZBidddPddiS_midddPddiS_m
	.globl	_Z9sRNHQS_ZBidddPddiS_m
	.type	_Z9sRNHQS_ZBidddPddiS_m, @function
_Z9sRNHQS_ZBidddPddiS_m:
.LFB4101:
	.cfi_startproc
	endbr64
	jmp	_Z37__device_stub__Z9sRNHQS_ZBidddPddiS_midddPddiS_m
	.cfi_endproc
.LFE4101:
	.size	_Z9sRNHQS_ZBidddPddiS_m, .-_Z9sRNHQS_ZBidddPddiS_m
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"CUDA computation complete. Start to copy data into host."
.LC2:
	.string	"Copy finished. Start to write to file."
.LC3:
	.string	"ZB%d.txt"
.LC4:
	.string	"time used = "
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB4075:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4075
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-524288(%rsp), %r11
	.cfi_def_cfa 11, 524344
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$88, %rsp
	.cfi_def_cfa_offset 524432
	movq	%fs:40, %rax
	movq	%rax, 524360(%rsp)
	xorl	%eax, %eax
	movl	%edi, %ebp
	movl	$8192, %edi
	movq	%rsi, %r14
.LEHB0:
	call	_Znam@PLT
	movsd	.LC0(%rip), %xmm1
	movq	%rax, %rbx
	xorl	%eax, %eax
.L23:
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, (%rbx,%rax,8)
	incq	%rax
	cmpq	$1024, %rax
	jne	.L23
	movl	$134217728, %esi
	movl	$2, %edi
	call	cudaDeviceSetLimit@PLT
	movl	%eax, %esi
	testl	%eax, %eax
	je	.L24
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.L24:
	cmpl	$7, %ebp
	jne	.L25
	movq	8(%r14), %rdi
	call	atof@PLT
	movq	16(%r14), %rdi
	movq	%xmm0, %r12
	call	atof@PLT
	movq	24(%r14), %rdi
	movsd	%xmm0, 8(%rsp)
	call	atof@PLT
	movq	32(%r14), %rdi
	movq	%xmm0, %r15
	call	atof@PLT
	movq	40(%r14), %rdi
	movq	%xmm0, %r13
	call	atof@PLT
	movq	48(%r14), %rdi
	movq	%xmm0, %rbp
	call	atof@PLT
	movl	$8192, %esi
	leaq	24(%rsp), %rdi
	cvttsd2sil	%xmm0, %r14d
	call	cudaMalloc@PLT
	movl	%eax, %esi
	testl	%eax, %eax
	je	.L26
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.L26:
	movq	24(%rsp), %rdi
	movq	%rbx, %rsi
	movl	$1, %ecx
	movl	$8192, %edx
	call	cudaMemcpy@PLT
	movl	%eax, %esi
	testl	%eax, %eax
	je	.L27
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.L27:
	movslq	%r14d, %rbx
	leaq	40(%rsp), %rsi
	leaq	32(%rsp), %rdi
	movl	$1024, %ecx
	salq	$3, %rbx
	movq	%rbx, %rdx
	call	cudaMallocPitch@PLT
	movl	%eax, %esi
	testl	%eax, %eax
	je	.L28
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.L28:
	movabsq	$1152921504606846975, %rax
	movl	%r14d, %edi
	sall	$10, %edi
	movslq	%edi, %rdi
	cmpq	%rdi, %rax
	jb	.L29
	salq	$3, %rdi
	call	_Znam@PLT
	movl	$67108865, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$268435457, %edi
	salq	$6, %rdx
	movl	$1, %ecx
	movl	$1, %esi
	salq	$4, %rdi
	movq	%rax, (%rsp)
	movq	%rdx, 60(%rsp)
	movl	$1, 68(%rsp)
	movq	%rdi, 48(%rsp)
	movl	$1, 56(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L30
	movq	%r12, %xmm4
	movq	40(%rsp), %r8
	movq	32(%rsp), %rcx
	movl	%r14d, %edx
	cvttsd2sil	%xmm4, %edi
	movq	24(%rsp), %rsi
	movsd	8(%rsp), %xmm0
	movq	%rbp, %xmm3
	movq	%r13, %xmm2
	movq	%r15, %xmm1
	call	_Z37__device_stub__Z9sRNHQS_ZBidddPddiS_midddPddiS_m
	jmp	.L30
.L29:
	movq	524360(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L86
	call	__cxa_throw_bad_array_new_length@PLT
.L30:
	call	cudaDeviceSynchronize@PLT
	movl	%eax, %esi
	testl	%eax, %eax
	je	.L33
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.L33:
	leaq	.LC1(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%rbx, %rsi
	movl	$1024, %r9d
	movq	%rbx, %r8
	pushq	%rdx
	.cfi_def_cfa_offset 524440
	pushq	$2
	.cfi_def_cfa_offset 524448
	movq	56(%rsp), %rcx
	movq	48(%rsp), %rdx
	movq	16(%rsp), %rdi
	call	cudaMemcpy2D@PLT
	popq	%rcx
	.cfi_def_cfa_offset 524440
	popq	%rdi
	.cfi_def_cfa_offset 524432
	movl	%eax, %esi
	testl	%eax, %eax
	je	.L34
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.L34:
	leaq	.LC2(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	movl	$1023, %r12d
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	leaq	72(%rsp), %rbp
	movq	%rax, %rdi
	movq	%rbp, %rbx
	call	_ZNSolsEPFRSoS_E.isra.0
.LEHE0:
.L35:
	movq	%rbp, %rdi
.LEHB1:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev@PLT
.LEHE1:
	addq	$512, %rbp
	subq	$1, %r12
	jnb	.L35
	xorl	%eax, %eax
	movq	%rbx, %r12
	xorl	%ebp, %ebp
	movl	%eax, 8(%rsp)
.L45:
	movl	$20, %edi
.LEHB2:
	call	_Znam@PLT
.LEHE2:
	incl	%ebp
	movq	%rax, %rdi
	movq	%rax, %r13
	movl	$20, %edx
	movl	$2, %esi
	movl	%ebp, %r8d
	leaq	.LC3(%rip), %rcx
	xorl	%eax, %eax
	call	__sprintf_chk@PLT
	movl	$16, %edx
	movq	%r13, %rsi
	movq	%r12, %rdi
.LEHB3:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode@PLT
.LEHE3:
	movslq	8(%rsp), %rax
	movq	(%rsp), %rcx
	xorl	%r13d, %r13d
	leaq	(%rcx,%rax,8), %r15
	jmp	.L39
.L59:
	endbr64
.L37:
	jmp	.L51
.L44:
	movsd	(%r15,%r13,8), %xmm0
	movq	%r12, %rdi
.LEHB4:
	call	_ZNSo9_M_insertIdEERSoT_@PLT
.LEHE4:
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
.LEHB5:
	call	_ZNSolsEPFRSoS_E.isra.0
.LEHE5:
	incq	%r13
.L39:
	cmpl	%r13d, %r14d
	jg	.L44
	jmp	.L90
.L58:
	endbr64
.L41:
	jmp	.L51
.L56:
	endbr64
.L43:
	jmp	.L51
.L90:
	addl	%r14d, 8(%rsp)
	addq	$512, %r12
	cmpl	$1024, %ebp
	jne	.L45
	leaq	524360(%rsp), %rbp
.L46:
	movq	-512(%rbp), %rax
	subq	$512, %rbp
	movq	%rbp, %rdi
	call	*(%rax)
	cmpq	%rbx, %rbp
	jne	.L46
.L25:
	leaq	.LC4(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
.LEHB6:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rbx
	call	clock@PLT
	movl	$1000000, %ecx
	movq	%rbx, %rdi
	cqto
	idivq	%rcx
	movq	%rax, %rsi
	call	_ZNSo9_M_insertIlEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	524360(%rsp), %rax
	subq	%fs:40, %rax
	je	.L54
	jmp	.L86
.L55:
	endbr64
	movq	%rax, %r13
.L47:
	movl	$1023, %ebp
	subq	%r12, %rbp
	salq	$9, %rbp
	addq	%rbx, %rbp
.L49:
	cmpq	%rbx, %rbp
	je	.L48
	movq	-512(%rbp), %rax
	subq	$512, %rbp
	movq	%rbp, %rdi
	call	*(%rax)
	jmp	.L49
.L48:
	movq	524360(%rsp), %rax
	subq	%fs:40, %rax
	movq	%r13, %rdi
	je	.L89
	jmp	.L86
.L57:
	endbr64
.L51:
	leaq	524360(%rsp), %r12
.L52:
	movq	-512(%r12), %rdx
	subq	$512, %r12
	movq	%rax, (%rsp)
	movq	%r12, %rdi
	call	*(%rdx)
	cmpq	%rbx, %r12
	movq	(%rsp), %rax
	jne	.L52
	movq	524360(%rsp), %rdx
	subq	%fs:40, %rdx
	movq	%rax, %rdi
	jne	.L86
.L89:
	call	_Unwind_Resume@PLT
.LEHE6:
.L86:
	call	__stack_chk_fail@PLT
.L54:
	addq	$524376, %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
.LFE4075:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4075:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4075-.LLSDACSB4075
.LLSDACSB4075:
	.uleb128 .LEHB0-.LFB4075
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB4075
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L55-.LFB4075
	.uleb128 0
	.uleb128 .LEHB2-.LFB4075
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L57-.LFB4075
	.uleb128 0
	.uleb128 .LEHB3-.LFB4075
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L59-.LFB4075
	.uleb128 0
	.uleb128 .LEHB4-.LFB4075
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L58-.LFB4075
	.uleb128 0
	.uleb128 .LEHB5-.LFB4075
	.uleb128 .LEHE5-.LEHB5
	.uleb128 .L56-.LFB4075
	.uleb128 0
	.uleb128 .LEHB6-.LFB4075
	.uleb128 .LEHE6-.LEHB6
	.uleb128 0
	.uleb128 0
.LLSDACSE4075:
	.section	.text.startup
	.size	main, .-main
	.section	.rodata.str1.1
.LC5:
	.string	"_Z9sRNHQS_ZBidddPddiS_m"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4103:
	.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	.LC5(%rip), %rdx
	movq	%rax, %rdi
	leaq	_Z9sRNHQS_ZBidddPddiS_m(%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
.LFE4103:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	1078989829
	.long	1065616641
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <iostream>
#include <stdlib.h>
#include <math.h>
#include <complex>
#include <string>
#include <fstream>
#include <time.h>
#include <hip/hip_runtime.h>


#define Nblock 16
#define NThreadPerBlock 64
#define NTotal Nblock*NThreadPerBlock
#define N_ 200
class RNHQS_ZB
{
    public:
        __device__ RNHQS_ZB();
        __device__ void initial(int,double,double,double,double,double,int,double*,double*,double*,double*,double*,double*,double*);
        __device__ void go(double *);
        __device__ void record(double *);
    private:
        __device__ void onestep();
        __device__ void getMean();
        __device__ void da(double,double*,double*,double*,double*);

        int tN_,numdt_,i_;
//        int N_;
        double h_,sigma_,ri_,omega_,phi_,t_;
        double *a1_,*a2_,*k_[4],*l_[4],*ta1_,*ta2_,*X_;
        double outMo_,outX_;
};

__device__
RNHQS_ZB::RNHQS_ZB()
{
}

__device__
void RNHQS_ZB::initial(int tN,double h,double sigma,double ri,double w,double phi,int numdt,double* X,double* a1,double* a2,double* ta1,double* ta2,double* k,double* l)
{
    tN_=tN;
    h_=h;
    sigma_=sigma;
    ri_=ri;
    omega_=w;
    phi_=phi;
    numdt_=numdt;
//    N_=200;
    i_=0;

    t_=0.0;

//    a1_=(double *)malloc(N_*sizeof(double));
//    a2_=(double *)malloc(N_*sizeof(double));
//    X_=(double *)malloc(N_*sizeof(double));
//    ta1_=(double *)malloc(N_*sizeof(double));
//    ta2_=(double *)malloc(N_*sizeof(double));
    a1_=a1;
    a2_=a2;
    X_=X;
    ta1_=ta1;
    ta2_=ta2;
    int i;
//    for (i=0;i<4;i++)
//    {
//        *(k_+i)=new double [N_];
//        *(l_+i)=new double [N_];
//    }

    for (i=0;i<4;i++)
    {
        *(k_+i)=k+N_*i;
        *(l_+i)=l+N_*i;
    }
    double w_d=6.0;
    for (i=0;i<N_;i++)
    {
        *(X_+i)=-N_/2.0+1.0/2.0+i;
        *(a1_+i)=exp(-pow(*(X_+i)/w_d,2.0))*cos(M_PI**(X_+i)/2.0);
        *(a2_+i)=exp(-pow(*(X_+i)/w_d,2.0))*sin(M_PI**(X_+i)/2.0);
    }
}

__device__ 
void RNHQS_ZB::go(double *_outMo)
{
    int ntime;

    for (ntime=0;ntime<numdt_;ntime++)
    {
        t_+=h_;
        RNHQS_ZB::onestep();
        if (ntime%1==0)
        {
            RNHQS_ZB::record(_outMo);
        }
    }
}

__device__ 
void RNHQS_ZB::onestep()
{
    int i,j;
    for (i=0;i<4;i++)
    {
        if (i==0)
        {
            RNHQS_ZB::da(t_,a1_,a2_,*(k_+i),*(l_+i));
        }
        else if (i==1 || i==2)
        {
            for (j=0;j<N_;j++)
            {
                *(ta1_+j)=*(a1_+j)+h_/2.0**(*(k_+i-1)+j);
                *(ta2_+j)=*(a2_+j)+h_/2.0**(*(l_+i-1)+j);
            }
            RNHQS_ZB::da(t_+h_/2.0,ta1_,ta2_,*(k_+i),*(l_+i));
        }
        else if (i==3)
        {
            for (j=0;j<N_;j++)
            {
                *(ta1_+j)=*(a1_+j)+h_**(*(k_+i-1)+j);
                *(ta2_+j)=*(a2_+j)+h_**(*(l_+i-1)+j);
            }
            RNHQS_ZB::da(t_+h_,ta1_,ta2_,*(k_+i),*(l_+i));
        }
    }
    for (j=0;j<N_;j++)
    {
        *(a1_+j)+=h_/6.0*(*(*k_+j)+2.0**(*(k_+1)+j)+2.0**(*(k_+2)+j)+*(*(k_+3)+j));
        *(a2_+j)+=h_/6.0*(*(*l_+j)+2.0**(*(l_+1)+j)+2.0**(*(l_+2)+j)+*(*(l_+3)+j));
    }
}

__device__ 
void RNHQS_ZB::da(double t,double *a1,double *a2,double *k,double *l)
{
    int i;
    double sigmai;

    sigmai=sigma_*ri_*sin(omega_*t+M_PI*phi_);

    for (i=1;i<N_-1;i++)
    {
        *(k+i)=-(*(a2+i+1)+*(a2+i-1))+pow(-1.0,i)*(sigma_**(a2+i)+sigmai**(a1+i));
        *(l+i)=(*(a1+i+1)+*(a1+i-1))+pow(-1.0,i+1)*(sigma_**(a1+i)-sigmai**(a2+i));
    }

    *(k+0)=-(*(a2+1)+*(a2+N_-1))+pow(-1.0,0)*(sigma_**(a2+0)+sigmai**(a1+0));
    *(l+0)=(*(a1+1)+*(a1+N_-1))+pow(-1.0,0+1)*(sigma_**(a1+0)-sigmai**(a2+0));

    *(k+N_-1)=-(*(a2+0)+*(a2+N_-2))+pow(-1.0,N_-1)*(sigma_**(a2+N_-1)+sigmai**(a1+N_-1));
    *(l+N_-1)=(*(a1+0)+*(a1+N_-2))+pow(-1.0,N_)*(sigma_**(a1+N_-1)-sigmai**(a2+N_-1));
}

__device__ 
void RNHQS_ZB::getMean()
{
    int i;
    outMo_=0.0;
    outX_=0.0;
    for (i=0;i<N_;i++)
    {
        outMo_+=pow(*(a1_+i),2.0)+pow(*(a2_+i),2.0);
        outX_+=*(X_+i)*(pow(*(a1_+i),2.0)+pow(*(a2_+i),2.0));
    }

//    if (wasExecuted_)
//   {
//        return;
//    }
//    else
//    {
//        double rest;
//        for (i=N_-10;i<N_-1;i++)
//        {
//            rest+=pow(*(a1_+i),2.0)+pow(*(a2_+i),2.0);
//        }

//        if (rest/outMo_>0.001)
//        {
 //           std::cout << tN_ << ": waveguide not long enough" << std::endl;
//        }
//        wasExecuted_ = true;
//    }
}

__device__ 
void RNHQS_ZB::record(double *_outMo)
{
    RNHQS_ZB::getMean();
    *(_outMo+i_)=outMo_;
    i_++;
}

__global__ void sRNHQS_ZB(int tN,double h,double sigma,double ri,double* omega,double phi,int numdt,double* _outMo,size_t pitch)
{
    int i=blockIdx.x*blockDim.x+threadIdx.x;

    RNHQS_ZB one;
//    __shared__ double a1[N_];
//    __shared__ double a2[N_];
//    __shared__ double X[N_];
//    __shared__ double ta1[N_];
//    __shared__ double ta2[N_];
//    __shared__ double k[4*N_];
//    __shared__ double l[4*N_];
    double a1[N_];
    double a2[N_];
    double X[N_];
    double ta1[N_];
    double ta2[N_];
    double k[4*N_];
    double l[4*N_];
    one.initial(tN,h,sigma,ri,*(omega+i),phi,numdt,X,a1,a2,ta1,ta2,k,l);
    one.go(_outMo+pitch/sizeof(double)*i);
}

int main (int argc, char *argv[])
{
    int tN,numdt,i,j;
    double h,phi,sigma,ri;
    double *omega;

    omega=new double [NTotal];
    for (i=0;i<NTotal;i++)
    {
        *(omega+i)=10.0/(NTotal-1.0)*i;
    }

//    size_t s1,s2,s3;
//    cudaDeviceSetLimit(cudaLimitStackSize,4*1024*sizeof(double));
    hipError_t cE;
    cE=hipDeviceSetLimit(hipLimitMallocHeapSize,16*1024*1024*sizeof(double));
    if (cE!=0) std::cout << cE << std::endl;
//    cudaDeviceSetLimit(cudaLimitPrintfFifoSize,1024*1024*sizeof(double));
//    cudaDeviceGetLimit(&s1,cudaLimitStackSize);
//    cudaDeviceGetLimit(&s2,cudaLimitPrintfFifoSize);
//    cudaDeviceGetLimit(&s3,cudaLimitMallocHeapSize);
//    std::cout << s1/sizeof(double)/1024/1024 << "M " << s2/sizeof(double)/1024/1024 << " " << s3/sizeof(double)/1024/1024 << std::endl;
//    std::cout << "Stack size per thread = " << s1/1024 << "Kb" << std::endl;
//    std::cout << "IO in total = " << s2/1024 << "Kb" << std::endl;
//    std::cout << "IO per thread = " << s2/1024/1024 << "Kb" << std::endl;
//    std::cout << "Heap size in total = " << s3/1024 << "Kb" << std::endl;
//    std::cout << "Heap size in total = " << s3/1024/1024 << "Mb" << std::endl;
//    std::cout << "Heap size per thread = " << s3/1024/1024 << "Kb" << std::endl;
//    std::cout << "Total double per thread = " << s3/sizeof(double)/1024  << std::endl;

    if (argc>1)
    {
        
        if (argc==7)
        {
            tN=(int)atof(argv[1]);
            h=(double)atof(argv[2]);
            sigma=(double)atof(argv[3]);
            ri=(double)atof(argv[4]);
            phi=(double)atof(argv[5]);
            numdt=(int)atof(argv[6]);

            double* _omega;
            cE=hipMalloc(&_omega,1024*sizeof(double));
            if (cE!=0) std::cout << cE << std::endl;
            cE=hipMemcpy(_omega,omega,1024*sizeof(double),hipMemcpyHostToDevice);
            if (cE!=0) std::cout << cE << std::endl;

            double *_outMo,*outMo;
            size_t pitch;
            cE=hipMallocPitch(&_outMo,&pitch,sizeof(double)*numdt,NTotal);
            if (cE!=0) std::cout << cE << std::endl;
            outMo=new double [numdt*NTotal];
            sRNHQS_ZB<<<Nblock,NThreadPerBlock>>>(tN,h,sigma,ri,_omega,phi,numdt,_outMo,pitch);
            cE=hipDeviceSynchronize();
            if (cE!=0) std::cout << cE << std::endl;
            std::cout << "CUDA computation complete. Start to copy data into host." << std::endl;
            cE=hipMemcpy2D(outMo,numdt*sizeof(double),_outMo,pitch,numdt*sizeof(double),NTotal,hipMemcpyDeviceToHost);
            if (cE!=0) std::cout << cE << std::endl;
            std::cout << "Copy finished. Start to write to file." << std::endl;

            char* filename[NTotal];
            std::ofstream out[NTotal];
            for (i=0;i<NTotal;i++)
            {
                filename[i]=new char [20];
                sprintf(filename[i],"ZB%d.txt",i+1);
                out[i].open(filename[i],std::ostream::out);
                for (j=0;j<numdt;j++)
                {
                    out[i] << *((double *)outMo+i*numdt+j) << std::endl;
                }
            }
        }
    }

    std::cout << "time used = " << clock()/CLOCKS_PER_SEC << std::endl;

    return 0;
}

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

                                        # End of file scope inline assembly
	.globl	_Z24__device_stub__sRNHQS_ZBidddPddiS_m # -- Begin function _Z24__device_stub__sRNHQS_ZBidddPddiS_m
	.type	_Z24__device_stub__sRNHQS_ZBidddPddiS_m,@function
_Z24__device_stub__sRNHQS_ZBidddPddiS_m: # @_Z24__device_stub__sRNHQS_ZBidddPddiS_m
	.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	$192, %rsp
	.cfi_def_cfa_offset 240
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	4(%rsp), %rax
	movl	%edi, (%rax)
	leaq	72(%rsp), %rdi
	movsd	%xmm0, (%rdi)
	leaq	64(%rsp), %r9
	movsd	%xmm1, (%r9)
	leaq	56(%rsp), %r10
	movsd	%xmm2, (%r10)
	leaq	48(%rsp), %r11
	movq	%rsi, (%r11)
	leaq	40(%rsp), %rsi
	movsd	%xmm3, (%rsi)
	movq	%rsp, %r14
	movl	%edx, (%r14)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	24(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	112(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%r9, 16(%rbx)
	movq	%r10, 24(%rbx)
	movq	%r11, 32(%rbx)
	movq	%rsi, 40(%rbx)
	movq	%r14, 48(%rbx)
	movq	%rdx, 56(%rbx)
	movq	%rcx, 64(%rbx)
	leaq	96(%rsp), %r14
	leaq	80(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z9sRNHQS_ZBidddPddiS_m, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$208, %rsp
	.cfi_adjust_cfa_offset -208
	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	_Z24__device_stub__sRNHQS_ZBidddPddiS_m, .Lfunc_end0-_Z24__device_stub__sRNHQS_ZBidddPddiS_m
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI1_0:
	.quad	0x3f84050140501405              # double 0.0097751710654936461
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$524392, %rsp                   # imm = 0x80068
	.cfi_def_cfa_offset 524448
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rsi, %rbx
	movl	%edi, %ebp
	movl	$8192, %edi                     # imm = 0x2000
	callq	_Znam
	movq	%rax, %r14
	xorl	%eax, %eax
	movsd	.LCPI1_0(%rip), %xmm0           # xmm0 = mem[0],zero
.LBB1_1:                                # =>This Inner Loop Header: Depth=1
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	mulsd	%xmm0, %xmm1
	movsd	%xmm1, (%r14,%rax,8)
	incq	%rax
	cmpq	$1024, %rax                     # imm = 0x400
	jne	.LBB1_1
# %bb.2:
	movl	$134217728, %esi                # imm = 0x8000000
	movl	$2, %edi
	callq	hipDeviceSetLimit
	testl	%eax, %eax
	je	.LBB1_4
# %bb.3:
	movl	$_ZSt4cout, %edi
	movl	%eax, %esi
	callq	_ZNSolsEi
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.LBB1_4:
	cmpl	$7, %ebp
	jne	.LBB1_27
# %bb.5:
	movq	8(%rbx), %rdi
	callq	atof
	movsd	%xmm0, 80(%rsp)                 # 8-byte Spill
	movq	16(%rbx), %rdi
	callq	atof
	movsd	%xmm0, 88(%rsp)                 # 8-byte Spill
	movq	24(%rbx), %rdi
	callq	atof
	movsd	%xmm0, 72(%rsp)                 # 8-byte Spill
	movq	32(%rbx), %rdi
	callq	atof
	movsd	%xmm0, 64(%rsp)                 # 8-byte Spill
	movq	40(%rbx), %rdi
	callq	atof
	movsd	%xmm0, 56(%rsp)                 # 8-byte Spill
	movq	48(%rbx), %rdi
	callq	atof
	movsd	%xmm0, 16(%rsp)                 # 8-byte Spill
	leaq	48(%rsp), %rdi
	movl	$8192, %esi                     # imm = 0x2000
	callq	hipMalloc
	testl	%eax, %eax
	je	.LBB1_7
# %bb.6:
	movl	$_ZSt4cout, %edi
	movl	%eax, %esi
	callq	_ZNSolsEi
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.LBB1_7:
	cvttsd2si	16(%rsp), %eax          # 8-byte Folded Reload
	movl	%eax, 16(%rsp)                  # 4-byte Spill
	movq	48(%rsp), %rdi
	movl	$8192, %edx                     # imm = 0x2000
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	je	.LBB1_9
# %bb.8:
	movl	$_ZSt4cout, %edi
	movl	%eax, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.LBB1_9:
	movslq	16(%rsp), %rdx                  # 4-byte Folded Reload
	shlq	$3, %rdx
	leaq	40(%rsp), %rdi
	leaq	32(%rsp), %rsi
	movl	$1024, %ecx                     # imm = 0x400
	movq	%rdx, 24(%rsp)                  # 8-byte Spill
	callq	hipMallocPitch
	testl	%eax, %eax
	je	.LBB1_11
# %bb.10:
	movl	$_ZSt4cout, %edi
	movl	%eax, %esi
	callq	_ZNSolsEi
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.LBB1_11:
	movl	16(%rsp), %ecx                  # 4-byte Reload
	movl	%ecx, %eax
	shll	$10, %eax
	cltq
	shlq	$3, %rax
	testl	%ecx, %ecx
	movq	$-1, %rdi
	cmovnsq	%rax, %rdi
	callq	_Znam
	movq	%rax, %r15
	movabsq	$4294967312, %rdi               # imm = 0x100000010
	leaq	48(%rdi), %rdx
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB1_13
# %bb.12:
	cvttsd2si	80(%rsp), %edi          # 8-byte Folded Reload
	movq	48(%rsp), %rsi
	movq	40(%rsp), %rcx
	movq	32(%rsp), %r8
	movsd	88(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	72(%rsp), %xmm1                 # 8-byte Reload
                                        # xmm1 = mem[0],zero
	movsd	64(%rsp), %xmm2                 # 8-byte Reload
                                        # xmm2 = mem[0],zero
	movsd	56(%rsp), %xmm3                 # 8-byte Reload
                                        # xmm3 = mem[0],zero
	movl	16(%rsp), %edx                  # 4-byte Reload
	callq	_Z24__device_stub__sRNHQS_ZBidddPddiS_m
.LBB1_13:
	callq	hipDeviceSynchronize
	testl	%eax, %eax
	je	.LBB1_15
# %bb.14:
	movl	$_ZSt4cout, %edi
	movl	%eax, %esi
	callq	_ZNSolsEi
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.LBB1_15:
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str, %esi
	movl	$56, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	40(%rsp), %rdx
	movq	32(%rsp), %rcx
	movl	$2, (%rsp)
	movl	$1024, %r9d                     # imm = 0x400
	movq	%r15, %rdi
	movq	24(%rsp), %rsi                  # 8-byte Reload
	movq	%rsi, %r8
	callq	hipMemcpy2D
	testl	%eax, %eax
	je	.LBB1_17
# %bb.16:
	movl	$_ZSt4cout, %edi
	movl	%eax, %esi
	callq	_ZNSolsEi
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.LBB1_17:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.1, %esi
	movl	$38, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	xorl	%r14d, %r14d
.LBB1_18:                               # =>This Inner Loop Header: Depth=1
	leaq	(%rsp,%r14), %rdi
	addq	$96, %rdi
.Ltmp0:
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev
.Ltmp1:
# %bb.19:                               #   in Loop: Header=BB1_18 Depth=1
	addq	$512, %r14                      # imm = 0x200
	cmpq	$524288, %r14                   # imm = 0x80000
	jne	.LBB1_18
# %bb.20:                               # %.preheader86
	movl	16(%rsp), %ebx                  # 4-byte Reload
	xorl	%r12d, %r12d
.LBB1_21:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB1_29 Depth 2
.Ltmp3:
	movq	%r12, %r14
	movl	$20, %edi
	callq	_Znam
.Ltmp4:
# %bb.22:                               #   in Loop: Header=BB1_21 Depth=1
	movq	%rax, %rbp
	leaq	1(%r14), %r12
	movl	$.L.str.2, %esi
	movq	%rax, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	sprintf
	shlq	$9, %r14
	leaq	(%rsp,%r14), %r13
	addq	$96, %r13
.Ltmp5:
	movq	%r13, %rdi
	movq	%rbp, %rsi
	movl	$16, %edx
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode
.Ltmp6:
# %bb.23:                               # %.preheader83
                                        #   in Loop: Header=BB1_21 Depth=1
	cmpl	$0, 16(%rsp)                    # 4-byte Folded Reload
	jle	.LBB1_24
# %bb.28:                               # %.lr.ph
                                        #   in Loop: Header=BB1_21 Depth=1
	xorl	%r14d, %r14d
.LBB1_29:                               #   Parent Loop BB1_21 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	(%r15,%r14,8), %xmm0            # xmm0 = mem[0],zero
.Ltmp8:
	movq	%r13, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp9:
# %bb.30:                               # %_ZNSolsEd.exit
                                        #   in Loop: Header=BB1_29 Depth=2
	movq	%rax, %rbp
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbp, %rdi
.Ltmp10:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp11:
# %bb.31:                               # %.noexc
                                        #   in Loop: Header=BB1_29 Depth=2
.Ltmp12:
	movsbl	%al, %esi
	movq	%rbp, %rdi
	callq	_ZNSo3putEc
.Ltmp13:
# %bb.32:                               # %.noexc78
                                        #   in Loop: Header=BB1_29 Depth=2
.Ltmp14:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp15:
# %bb.33:                               # %_ZNSolsEPFRSoS_E.exit
                                        #   in Loop: Header=BB1_29 Depth=2
	incq	%r14
	cmpq	%r14, %rbx
	jne	.LBB1_29
.LBB1_24:                               # %.loopexit84
                                        #   in Loop: Header=BB1_21 Depth=1
	addq	24(%rsp), %r15                  # 8-byte Folded Reload
	cmpq	$1024, %r12                     # imm = 0x400
	jne	.LBB1_21
# %bb.25:                               # %.preheader
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE(%rip), %r14
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE+24(%rip), %r15
	movq	$-524288, %r12                  # imm = 0xFFF80000
	leaq	524120(%rsp), %rbx
.LBB1_26:                               # =>This Inner Loop Header: Depth=1
	movq	%r14, -248(%rbx)
	movq	-24(%r14), %rax
	movq	%r15, -248(%rbx,%rax)
	leaq	-240(%rbx), %rdi
	callq	_ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev
	movq	%rbx, %rdi
	callq	_ZNSt8ios_baseD2Ev
	addq	$-512, %rbx                     # imm = 0xFE00
	addq	$512, %r12                      # imm = 0x200
	jne	.LBB1_26
.LBB1_27:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.3, %esi
	movl	$12, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	callq	clock
	movabsq	$4835703278458516699, %rcx      # imm = 0x431BDE82D7B634DB
	imulq	%rcx
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$18, %rdx
	addq	%rdx, %rsi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIlEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	xorl	%eax, %eax
	addq	$524392, %rsp                   # imm = 0x80068
	.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
.LBB1_34:
	.cfi_def_cfa_offset 524448
.Ltmp2:
	movq	%rax, %rbx
	testq	%r14, %r14
	je	.LBB1_41
# %bb.35:                               # %.preheader87.preheader
	leaq	-416(%rsp), %r15
.LBB1_36:                               # %.preheader87
                                        # =>This Inner Loop Header: Depth=1
	leaq	(%r15,%r14), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev
	addq	$-512, %r14                     # imm = 0xFE00
	jne	.LBB1_36
	jmp	.LBB1_41
.LBB1_38:                               # %.loopexit.split-lp
.Ltmp7:
	jmp	.LBB1_39
.LBB1_37:                               # %.loopexit85
.Ltmp16:
.LBB1_39:
	movq	%rax, %rbx
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE(%rip), %r15
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE+24(%rip), %r12
	movq	$-524288, %r13                  # imm = 0xFFF80000
	leaq	524120(%rsp), %r14
.LBB1_40:                               # =>This Inner Loop Header: Depth=1
	movq	%r15, -248(%r14)
	movq	-24(%r15), %rax
	movq	%r12, -248(%r14,%rax)
	leaq	-240(%r14), %rdi
	callq	_ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev
	movq	%r14, %rdi
	callq	_ZNSt8ios_baseD2Ev
	addq	$-512, %r14                     # imm = 0xFE00
	addq	$512, %r13                      # imm = 0x200
	jne	.LBB1_40
.LBB1_41:                               # %.loopexit
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end1:
	.size	main, .Lfunc_end1-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table1:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp2-.Lfunc_begin0           #     jumps to .Ltmp2
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp6-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp6
	.uleb128 .Ltmp7-.Lfunc_begin0           #     jumps to .Ltmp7
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp8-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Ltmp15-.Ltmp8                 #   Call between .Ltmp8 and .Ltmp15
	.uleb128 .Ltmp16-.Lfunc_begin0          #     jumps to .Ltmp16
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp15-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Lfunc_end1-.Ltmp15            #   Call between .Ltmp15 and .Lfunc_end1
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- 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	.LBB2_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rdi
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB2_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z9sRNHQS_ZBidddPddiS_m, %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_end2:
	.size	__hip_module_ctor, .Lfunc_end2-__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	.LBB3_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
.LBB3_2:
	retq
.Lfunc_end3:
	.size	__hip_module_dtor, .Lfunc_end3-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z9sRNHQS_ZBidddPddiS_m,@object # @_Z9sRNHQS_ZBidddPddiS_m
	.section	.rodata,"a",@progbits
	.globl	_Z9sRNHQS_ZBidddPddiS_m
	.p2align	3, 0x0
_Z9sRNHQS_ZBidddPddiS_m:
	.quad	_Z24__device_stub__sRNHQS_ZBidddPddiS_m
	.size	_Z9sRNHQS_ZBidddPddiS_m, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"CUDA computation complete. Start to copy data into host."
	.size	.L.str, 57

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"Copy finished. Start to write to file."
	.size	.L.str.1, 39

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"ZB%d.txt"
	.size	.L.str.2, 9

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"time used = "
	.size	.L.str.3, 13

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z9sRNHQS_ZBidddPddiS_m"
	.size	.L__unnamed_1, 24

	.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 _Z24__device_stub__sRNHQS_ZBidddPddiS_m
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _Z9sRNHQS_ZBidddPddiS_m
	.addrsig_sym _ZSt4cout
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.hidden	_ZN8RNHQS_ZBC1Ev                ; -- Begin function _ZN8RNHQS_ZBC1Ev
	.globl	_ZN8RNHQS_ZBC1Ev
	.p2align	2
	.type	_ZN8RNHQS_ZBC1Ev,@function
_ZN8RNHQS_ZBC1Ev:                       ; @_ZN8RNHQS_ZBC1Ev
; %bb.0:
	s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
	s_setpc_b64 s[30:31]
.Lfunc_end0:
	.size	_ZN8RNHQS_ZBC1Ev, .Lfunc_end0-_ZN8RNHQS_ZBC1Ev
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Function info:
; codeLenInByte = 8
; NumSgprs: 32
; NumVgprs: 0
; ScratchSize: 0
; MemoryBound: 0
	.text
	.protected	_Z9sRNHQS_ZBidddPddiS_m ; -- Begin function _Z9sRNHQS_ZBidddPddiS_m
	.globl	_Z9sRNHQS_ZBidddPddiS_m
	.p2align	8
	.type	_Z9sRNHQS_ZBidddPddiS_m,@function
_Z9sRNHQS_ZBidddPddiS_m:                ; @_Z9sRNHQS_ZBidddPddiS_m
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x54
	s_load_b256 s[4:11], s[0:1], 0x8
	v_mov_b32_e32 v6, 0x19c0
	s_mov_b32 s12, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	v_mov_b32_e32 v19, s5
	v_mad_u64_u32 v[16:17], null, s15, s2, v[0:1]
	s_mov_b64 s[2:3], src_private_base
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_dual_mov_b32 v4, 0xd40 :: v_dual_mov_b32 v5, s3
	v_dual_mov_b32 v10, 0 :: v_dual_mov_b32 v13, s3
	v_dual_mov_b32 v18, s4 :: v_dual_mov_b32 v21, s7
	v_ashrrev_i32_e32 v17, 31, v16
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_dual_mov_b32 v12, 0xc0 :: v_dual_mov_b32 v11, v10
	v_dual_mov_b32 v14, 0x700 :: v_dual_mov_b32 v15, s3
	v_lshlrev_b64 v[0:1], 3, v[16:17]
	s_movk_i32 s2, 0x2000
	v_mov_b32_e32 v7, s3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v0, vcc_lo, s10, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s11, v1, vcc_lo
	s_movk_i32 s10, 0x3900
	global_load_b64 v[2:3], v[0:1], off
	s_clause 0x2
	s_load_b32 s11, s[0:1], 0x0
	s_load_b32 s33, s[0:1], 0x30
	s_load_b64 s[14:15], s[0:1], 0x28
	v_mov_b32_e32 v20, s6
	v_dual_mov_b32 v0, s8 :: v_dual_mov_b32 v1, s9
	scratch_store_b64 off, v[4:5], off offset:168
	v_mov_b32_e32 v4, 0x1380
	s_waitcnt lgkmcnt(0)
	v_dual_mov_b32 v8, s11 :: v_dual_mov_b32 v9, s33
	s_clause 0x1
	scratch_store_b128 off, v[18:21], off offset:24
	scratch_store_b96 off, v[8:10], off offset:8
	v_dual_mov_b32 v8, s14 :: v_dual_mov_b32 v9, s15
	s_mov_b32 s11, s3
	s_waitcnt vmcnt(0)
	s_clause 0x3
	scratch_store_b128 off, v[0:3], off offset:40
	scratch_store_b128 off, v[8:11], off offset:56
	scratch_store_b128 off, v[12:15], off offset:72
	scratch_store_b128 off, v[4:7], off offset:152
.LBB1_1:                                ; =>This Inner Loop Header: Depth=1
	v_add_nc_u32_e64 v4, s12, 8
	s_add_i32 s12, s12, 8
	v_dual_mov_b32 v2, s10 :: v_dual_mov_b32 v3, s11
	s_add_u32 s10, s10, 0x640
	v_dual_mov_b32 v0, s2 :: v_dual_mov_b32 v1, s3
	s_addc_u32 s11, s11, 0
	v_add_nc_u32_e32 v5, 0x50, v4
	v_add_nc_u32_e32 v4, 0x70, v4
	s_add_u32 s2, s2, 0x640
	s_addc_u32 s3, s3, 0
	s_cmp_eq_u32 s12, 32
	s_clause 0x1
	scratch_store_b64 v5, v[0:1], off
	scratch_store_b64 v4, v[2:3], off
	s_cbranch_scc0 .LBB1_1
; %bb.2:                                ; %.preheader.i
	scratch_load_b64 v[36:37], off, off offset:168
	v_mov_b32_e32 v0, 0
	v_dual_mov_b32 v1, 0 :: v_dual_mov_b32 v2, 0
	s_mov_b32 s8, 0x54442d18
	s_mov_b32 s14, 0x6dc9c883
	s_mov_b32 s18, 0x33145c00
	s_mov_b32 s20, 0x252049c0
	s_mov_b32 s22, 0x55555555
	s_mov_b32 s24, 0x968915a9
	s_mov_b32 s26, 0x4222de17
	s_mov_b32 s28, 0x3abe935a
	s_mov_b32 s30, 0x47e6c9c2
	s_mov_b32 s34, 0xcfa74449
	s_mov_b32 s36, 0x71bf3c30
	s_mov_b32 s38, 0x1c7792ce
	s_mov_b32 s40, 0x924920da
	s_mov_b32 s42, 0x9999999c
	s_mov_b32 s44, 0xfefa39ef
	s_mov_b32 s46, 0x3b39803f
	s_mov_b32 s50, 0xd5df274d
	s_mov_b32 s52, 0x652b82fe
	s_mov_b32 s58, 0xfca7ab0c
	s_mov_b32 s60, 0x6a5dcb37
	s_mov_b32 s62, 0x623fde64
	s_mov_b32 s64, 0x7c89e6b0
	s_mov_b32 s66, 0x14761f6e
	s_mov_b32 s68, 0x1852b7b0
	s_mov_b32 s70, 0x11122322
	s_mov_b32 s72, 0x555502a1
	s_mov_b32 s74, 0x55555511
	s_mov_b32 s76, 11
	s_mov_b32 s80, 0x9037ab78
	s_mov_b32 s82, 0x46cc5e42
	s_mov_b32 s84, 0xa17f65f6
	s_mov_b32 s86, 0x19f4ec90
	s_mov_b32 s88, 0x16c16967
	s_mov_b32 s90, 0xb42fdfa7
	s_mov_b32 s92, 0xf9a43bb8
	s_mov_b32 s94, 0x796cde01
	s_mov_b32 s96, 0x19e83e5c
	s_mov_b32 s6, 0
	s_mov_b32 s9, 0x400921fb
	s_mov_b32 s5, 0x3ff921fb
	s_mov_b32 s11, 0x3c91a626
	s_mov_b32 s12, 0x33145c07
	s_mov_b32 s15, 0x3fe45f30
	s_mov_b32 s17, 0xbff921fb
	s_mov_b32 s19, 0xbc91a626
	s_mov_b32 s21, 0xb97b839a
	s_mov_b32 s23, 0x3fe55555
	s_mov_b32 s25, 0x3fba6564
	s_mov_b32 s27, 0x3fbdee67
	s_mov_b32 s29, 0x3fbe25e4
	s_mov_b32 s31, 0x3fc110ef
	s_mov_b32 s35, 0x3fc3b13b
	s_mov_b32 s37, 0x3fc745d1
	s_mov_b32 s39, 0x3fcc71c7
	s_mov_b32 s41, 0x3fd24924
	s_mov_b32 s43, 0x3fd99999
	s_mov_b32 s45, 0x3fe62e42
	s_mov_b32 s47, 0x3c7abc9e
	s_mov_b32 s49, 0xbfe55555
	s_mov_b32 s51, 0x3c8543b0
	s_mov_b32 s53, 0x3ff71547
	s_mov_b32 s55, 0xbfe62e42
	s_mov_b32 s57, 0xbc7abc9e
	s_mov_b32 s59, 0x3e928af3
	s_mov_b32 s61, 0x3e5ade15
	s_mov_b32 s63, 0x3ec71dee
	s_mov_b32 s65, 0x3efa0199
	s_mov_b32 s67, 0x3f2a01a0
	s_mov_b32 s69, 0x3f56c16c
	s_mov_b32 s71, 0x3f811111
	s_mov_b32 s73, 0x3fa55555
	s_mov_b32 s75, 0x3fc55555
	s_mov_b32 s77, 0x3fe00000
	s_mov_b32 s79, 0xbff71547
	s_mov_b32 s81, 0x3e21eeb6
	s_mov_b32 s83, 0xbda907db
	s_mov_b32 s85, 0xbe927e4f
	s_mov_b32 s87, 0x3efa01a0
	s_mov_b32 s89, 0xbf56c16c
	s_mov_b32 s91, 0xbe5ae600
	s_mov_b32 s93, 0x3de5e0b2
	s_mov_b32 s95, 0x3ec71de3
	s_mov_b32 s97, 0xbf2a01a0
	s_mov_b32 s98, 0x11110bb3
	s_mov_b32 s101, 0xbfc55555
	s_mov_b32 s102, 0
	s_waitcnt vmcnt(0)
	v_dual_mov_b32 v4, v36 :: v_dual_mov_b32 v5, v37
.LBB1_3:                                ; =>This Inner Loop Header: Depth=1
	v_add_f64 v[12:13], 0xc058e000, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_mul_f64 v[6:7], v[12:13], s[8:9]
	flat_store_b64 v[4:5], v[12:13]
	v_mul_f64 v[6:7], v[6:7], 0.5
	v_cmp_ngt_f64_e64 s2, 0x41d00000, |v[6:7]|
	s_delay_alu instid0(VALU_DEP_1)
	s_and_b32 vcc_lo, exec_lo, s2
	s_cbranch_vccz .LBB1_5
; %bb.4:                                ;   in Loop: Header=BB1_3 Depth=1
	v_ldexp_f64 v[8:9], |v[6:7]|, 0xffffff80
	v_cmp_le_f64_e64 vcc_lo, 0x7b000000, |v[6:7]|
	v_trig_preop_f64 v[10:11], |v[6:7]|, 0
	v_and_b32_e32 v3, 0x7fffffff, v7
	v_trig_preop_f64 v[14:15], |v[6:7]|, 1
	v_trig_preop_f64 v[26:27], |v[6:7]|, 2
	s_mov_b32 s4, s8
	s_mov_b32 s13, s11
	v_dual_cndmask_b32 v8, v6, v8 :: v_dual_cndmask_b32 v9, v3, v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[18:19], v[10:11], v[8:9]
	v_mul_f64 v[20:21], v[14:15], v[8:9]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[10:11], v[10:11], v[8:9], -v[18:19]
	v_fma_f64 v[14:15], v[14:15], v[8:9], -v[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[22:23], v[20:21], v[10:11]
	v_add_f64 v[24:25], v[22:23], -v[20:21]
	v_add_f64 v[30:31], v[18:19], v[22:23]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[28:29], v[22:23], -v[24:25]
	v_add_f64 v[10:11], v[10:11], -v[24:25]
	v_ldexp_f64 v[24:25], v[30:31], -2
	v_add_f64 v[18:19], v[30:31], -v[18:19]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[20:21], v[20:21], -v[28:29]
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[24:25]|
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[18:19], v[22:23], -v[18:19]
	v_add_f64 v[10:11], v[10:11], v[20:21]
	v_fract_f64_e32 v[20:21], v[24:25]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_cndmask_b32_e32 v20, 0, v20, vcc_lo
	v_mul_f64 v[32:33], v[26:27], v[8:9]
	v_cndmask_b32_e32 v21, 0, v21, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ldexp_f64 v[20:21], v[20:21], 2
	v_add_f64 v[28:29], v[32:33], v[14:15]
	v_fma_f64 v[8:9], v[26:27], v[8:9], -v[32:33]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[22:23], v[28:29], v[10:11]
	v_add_f64 v[24:25], v[18:19], v[22:23]
	v_add_f64 v[34:35], v[22:23], -v[28:29]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[30:31], v[24:25], v[20:21]
	v_add_f64 v[42:43], v[22:23], -v[34:35]
	v_add_f64 v[10:11], v[10:11], -v[34:35]
	v_add_f64 v[18:19], v[24:25], -v[18:19]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_cmp_gt_f64_e32 vcc_lo, 0, v[30:31]
	v_add_f64 v[30:31], v[28:29], -v[32:33]
	v_add_f64 v[18:19], v[22:23], -v[18:19]
	s_and_b32 s2, vcc_lo, exec_lo
	s_cselect_b32 s7, 0x40100000, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_add_f64 v[40:41], v[28:29], -v[30:31]
	v_add_f64 v[20:21], v[20:21], s[6:7]
	v_add_f64 v[14:15], v[14:15], -v[30:31]
	v_add_f64 v[28:29], v[28:29], -v[42:43]
	v_add_f64 v[30:31], v[32:33], -v[40:41]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[38:39], v[24:25], v[20:21]
	v_add_f64 v[10:11], v[10:11], v[28:29]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[14:15], v[14:15], v[30:31]
	v_cvt_i32_f64_e32 v3, v[38:39]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[10:11], v[14:15], v[10:11]
	v_cvt_f64_i32_e32 v[34:35], v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[8:9], v[8:9], v[10:11]
	v_add_f64 v[20:21], v[20:21], -v[34:35]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[8:9], v[18:19], v[8:9]
	v_add_f64 v[14:15], v[24:25], v[20:21]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[10:11], v[14:15], -v[20:21]
	v_cmp_le_f64_e32 vcc_lo, 0.5, v[14:15]
	v_add_f64 v[10:11], v[24:25], -v[10:11]
	s_and_b32 s2, vcc_lo, exec_lo
	s_cselect_b32 s7, 0x3ff00000, 0
	v_add_co_ci_u32_e64 v3, s2, 0, v3, vcc_lo
	s_mov_b32 s2, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[8:9], v[8:9], v[10:11]
	v_add_f64 v[10:11], v[14:15], -s[6:7]
	v_add_f64 v[14:15], v[10:11], v[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_f64 v[18:19], v[14:15], s[4:5]
	v_add_f64 v[10:11], v[14:15], -v[10:11]
	v_fma_f64 v[20:21], v[14:15], s[4:5], -v[18:19]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[8:9], v[8:9], -v[10:11]
	v_fma_f64 v[10:11], v[14:15], s[12:13], v[20:21]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[10:11], v[8:9], s[4:5], v[10:11]
	v_add_f64 v[8:9], v[18:19], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[14:15], v[8:9], -v[18:19]
	v_add_f64 v[10:11], v[10:11], -v[14:15]
	s_branch .LBB1_6
.LBB1_5:                                ;   in Loop: Header=BB1_3 Depth=1
	s_mov_b32 s2, -1
                                        ; implicit-def: $vgpr3
                                        ; implicit-def: $vgpr8_vgpr9
                                        ; implicit-def: $vgpr10_vgpr11
.LBB1_6:                                ; %Flow263
                                        ;   in Loop: Header=BB1_3 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s2
	s_cbranch_vccnz .LBB1_8
; %bb.7:                                ;   in Loop: Header=BB1_3 Depth=1
	v_mul_f64 v[8:9], |v[6:7]|, s[14:15]
	s_mov_b32 s16, s8
	s_mov_b32 s10, s18
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rndne_f64_e32 v[14:15], v[8:9]
	v_fma_f64 v[8:9], v[14:15], s[16:17], |v[6:7]|
	v_mul_f64 v[10:11], v[14:15], s[18:19]
	v_cvt_i32_f64_e32 v3, v[14:15]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[20:21], v[14:15], s[18:19], v[8:9]
	v_add_f64 v[18:19], v[8:9], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[8:9], v[8:9], -v[18:19]
	v_add_f64 v[18:19], v[18:19], -v[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[8:9], v[8:9], v[10:11]
	v_fma_f64 v[10:11], v[14:15], s[10:11], v[10:11]
	v_add_f64 v[8:9], v[18:19], v[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[8:9], v[8:9], -v[10:11]
	v_fma_f64 v[10:11], v[14:15], s[20:21], v[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[8:9], v[20:21], v[10:11]
	v_add_f64 v[18:19], v[8:9], -v[20:21]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[10:11], v[10:11], -v[18:19]
.LBB1_8:                                ; %_ZL3cosd.exit.i
                                        ;   in Loop: Header=BB1_3 Depth=1
	v_div_scale_f64 v[14:15], null, 0x40180000, 0x40180000, v[12:13]
	v_div_scale_f64 v[22:23], vcc_lo, v[12:13], 0x40180000, v[12:13]
	s_mov_b32 s48, s22
	s_mov_b32 s54, s44
	s_mov_b32 s56, s46
	s_mov_b32 s99, s71
	s_mov_b32 s100, s22
	s_mov_b32 s78, s52
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[18:19], v[14:15]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[20:21], -v[14:15], v[18:19], 1.0
	v_fma_f64 v[18:19], v[18:19], v[20:21], v[18:19]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[20:21], -v[14:15], v[18:19], 1.0
	v_fma_f64 v[18:19], v[18:19], v[20:21], v[18:19]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[20:21], v[22:23], v[18:19]
	v_fma_f64 v[14:15], -v[14:15], v[20:21], v[22:23]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[14:15], v[14:15], v[18:19], v[20:21]
	v_div_fixup_f64 v[12:13], v[14:15], 0x40180000, v[12:13]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_frexp_mant_f64_e64 v[14:15], |v[12:13]|
	v_cmp_class_f64_e64 s4, v[12:13], 0x204
	v_cmp_gt_f64_e32 vcc_lo, s[22:23], v[14:15]
	v_cndmask_b32_e64 v18, 0, 1, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[14:15], v[14:15], v18
	v_add_f64 v[18:19], v[14:15], 1.0
	v_add_f64 v[24:25], v[14:15], -1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[20:21], v[18:19]
	v_add_f64 v[26:27], v[18:19], -1.0
	v_add_f64 v[14:15], v[14:15], -v[26:27]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[22:23], -v[18:19], v[20:21], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[20:21], v[22:23], v[20:21], v[20:21]
	v_fma_f64 v[22:23], -v[18:19], v[20:21], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[20:21], v[22:23], v[20:21], v[20:21]
	v_mul_f64 v[22:23], v[24:25], v[20:21]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[28:29], v[18:19], v[22:23]
	v_fma_f64 v[18:19], v[22:23], v[18:19], -v[28:29]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[14:15], v[22:23], v[14:15], v[18:19]
	v_add_f64 v[18:19], v[28:29], v[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[26:27], v[24:25], -v[18:19]
	v_add_f64 v[28:29], v[18:19], -v[28:29]
	v_add_f64 v[24:25], v[24:25], -v[26:27]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[14:15], v[28:29], -v[14:15]
	v_add_f64 v[18:19], v[24:25], -v[18:19]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[14:15], v[14:15], v[18:19]
	v_add_f64 v[14:15], v[26:27], v[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[14:15], v[20:21], v[14:15]
	v_add_f64 v[18:19], v[22:23], v[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[20:21], v[18:19], -v[22:23]
	v_mul_f64 v[22:23], v[18:19], v[18:19]
	v_add_f64 v[14:15], v[14:15], -v[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[20:21], v[18:19], v[18:19], -v[22:23]
	v_add_f64 v[24:25], v[14:15], v[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[20:21], v[18:19], v[24:25], v[20:21]
	v_add_f64 v[24:25], v[22:23], v[20:21]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fma_f64 v[26:27], v[24:25], s[26:27], s[24:25]
	v_add_f64 v[22:23], v[24:25], -v[22:23]
	v_mul_f64 v[32:33], v[18:19], v[24:25]
	v_fma_f64 v[26:27], v[24:25], v[26:27], s[28:29]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[20:21], v[20:21], -v[22:23]
	v_fma_f64 v[26:27], v[24:25], v[26:27], s[30:31]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[26:27], v[24:25], v[26:27], s[34:35]
	v_fma_f64 v[26:27], v[24:25], v[26:27], s[36:37]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[26:27], v[24:25], v[26:27], s[38:39]
	v_fma_f64 v[26:27], v[24:25], v[26:27], s[40:41]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[26:27], v[24:25], v[26:27], s[42:43]
	v_mul_f64 v[28:29], v[24:25], v[26:27]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[22:23], v[24:25], v[26:27], -v[28:29]
	v_fma_f64 v[22:23], v[20:21], v[26:27], v[22:23]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[26:27], v[28:29], v[22:23]
	v_add_f64 v[30:31], v[26:27], s[22:23]
	v_add_f64 v[28:29], v[26:27], -v[28:29]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[34:35], v[30:31], s[48:49]
	v_add_f64 v[22:23], v[22:23], -v[28:29]
	v_fma_f64 v[28:29], v[24:25], v[18:19], -v[32:33]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[26:27], v[26:27], -v[34:35]
	v_add_f64 v[22:23], v[22:23], s[50:51]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[24:25], v[24:25], v[14:15], v[28:29]
	v_ldexp_f64 v[14:15], v[14:15], 1
	v_add_f64 v[22:23], v[22:23], v[26:27]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[20:21], v[20:21], v[18:19], v[24:25]
	v_ldexp_f64 v[18:19], v[18:19], 1
	v_add_f64 v[24:25], v[30:31], v[22:23]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[26:27], v[32:33], v[20:21]
	v_add_f64 v[28:29], v[30:31], -v[24:25]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_mul_f64 v[30:31], v[26:27], v[24:25]
	v_add_f64 v[32:33], v[26:27], -v[32:33]
	v_add_f64 v[22:23], v[22:23], v[28:29]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[28:29], v[26:27], v[24:25], -v[30:31]
	v_add_f64 v[20:21], v[20:21], -v[32:33]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[22:23], v[26:27], v[22:23], v[28:29]
	v_fma_f64 v[20:21], v[20:21], v[24:25], v[22:23]
	v_frexp_exp_i32_f64_e32 v24, v[12:13]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[22:23], v[30:31], v[20:21]
	v_subrev_co_ci_u32_e32 v24, vcc_lo, 0, v24, vcc_lo
	v_cmp_eq_f64_e32 vcc_lo, 1.0, v[12:13]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cvt_f64_i32_e32 v[24:25], v24
	v_add_f64 v[26:27], v[18:19], v[22:23]
	v_add_f64 v[28:29], v[22:23], -v[30:31]
	s_and_b32 s2, vcc_lo, exec_lo
	s_cselect_b32 s7, 0x3ff00000, 2.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[30:31], v[24:25], s[44:45]
	v_add_f64 v[18:19], v[26:27], -v[18:19]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[20:21], v[20:21], -v[28:29]
	v_fma_f64 v[28:29], v[24:25], s[44:45], -v[30:31]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[18:19], v[22:23], -v[18:19]
	v_add_f64 v[14:15], v[14:15], v[20:21]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[20:21], v[24:25], s[46:47], v[28:29]
	v_add_f64 v[14:15], v[14:15], v[18:19]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[18:19], v[30:31], v[20:21]
	v_add_f64 v[22:23], v[26:27], v[14:15]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[30:31], v[18:19], -v[30:31]
	v_add_f64 v[24:25], v[18:19], v[22:23]
	v_add_f64 v[26:27], v[22:23], -v[26:27]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[20:21], v[20:21], -v[30:31]
	v_add_f64 v[28:29], v[24:25], -v[18:19]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[14:15], v[14:15], -v[26:27]
	v_add_f64 v[32:33], v[24:25], -v[28:29]
	v_add_f64 v[22:23], v[22:23], -v[28:29]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[26:27], v[20:21], v[14:15]
	v_add_f64 v[18:19], v[18:19], -v[32:33]
	v_mul_f64 v[32:33], v[10:11], 0.5
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[18:19], v[22:23], v[18:19]
	v_add_f64 v[22:23], v[26:27], -v[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[18:19], v[26:27], v[18:19]
	v_add_f64 v[26:27], v[26:27], -v[22:23]
	v_add_f64 v[14:15], v[14:15], -v[22:23]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[28:29], v[24:25], v[18:19]
	v_add_f64 v[20:21], v[20:21], -v[26:27]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[22:23], v[28:29], -v[24:25]
	v_add_f64 v[14:15], v[14:15], v[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[18:19], v[18:19], -v[22:23]
	v_add_f64 v[14:15], v[14:15], v[18:19]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[18:19], v[28:29], v[14:15]
	v_add_f64 v[20:21], v[18:19], -v[28:29]
	v_mul_f64 v[22:23], s[6:7], v[18:19]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[14:15], v[14:15], -v[20:21]
	v_fma_f64 v[18:19], s[6:7], v[18:19], -v[22:23]
	v_cmp_class_f64_e64 vcc_lo, v[22:23], 0x204
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[14:15], s[6:7], v[14:15], v[18:19]
	v_add_f64 v[18:19], v[22:23], v[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_dual_cndmask_b32 v21, v19, v23 :: v_dual_cndmask_b32 v20, v18, v22
	v_add_f64 v[18:19], v[18:19], -v[22:23]
	v_mul_f64 v[24:25], v[20:21], s[52:53]
	v_cmp_nlt_f64_e64 s2, 0x40900000, v[20:21]
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[20:21]|
	v_cmp_ngt_f64_e64 s3, 0xc090cc00, v[20:21]
	v_add_f64 v[14:15], v[14:15], -v[18:19]
	v_mul_f64 v[18:19], s[6:7], 0.5
	v_rndne_f64_e32 v[24:25], v[24:25]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_dual_cndmask_b32 v15, 0, v15 :: v_dual_cndmask_b32 v14, 0, v14
	s_and_b32 vcc_lo, s3, s2
	v_fma_f64 v[26:27], v[24:25], s[54:55], v[20:21]
	v_cvt_i32_f64_e32 v30, v[24:25]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[26:27], v[24:25], s[56:57], v[26:27]
	v_fma_f64 v[28:29], v[26:27], s[60:61], s[58:59]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[28:29], v[26:27], v[28:29], s[62:63]
	v_fma_f64 v[28:29], v[26:27], v[28:29], s[64:65]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[28:29], v[26:27], v[28:29], s[66:67]
	v_fma_f64 v[28:29], v[26:27], v[28:29], s[68:69]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[28:29], v[26:27], v[28:29], s[70:71]
	v_fma_f64 v[28:29], v[26:27], v[28:29], s[72:73]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[28:29], v[26:27], v[28:29], s[74:75]
	v_fma_f64 v[28:29], v[26:27], v[28:29], s[76:77]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[28:29], v[26:27], v[28:29], 1.0
	v_fma_f64 v[24:25], v[26:27], v[28:29], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[22:23], v[24:25], v30
	v_trunc_f64_e32 v[24:25], s[6:7]
	v_cndmask_b32_e64 v23, 0x7ff00000, v23, s2
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v20, 0, v22, vcc_lo
	v_cndmask_b32_e64 v21, 0, v23, s3
	v_trunc_f64_e32 v[22:23], v[18:19]
	v_cmp_eq_f64_e64 s3, s[6:7], v[24:25]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[14:15], v[20:21], v[14:15], v[20:21]
	v_cmp_class_f64_e64 s2, v[20:21], 0x204
	v_cmp_neq_f64_e32 vcc_lo, v[22:23], v[18:19]
	v_mul_f64 v[22:23], v[8:9], v[8:9]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v15, v15, v21, s2
	v_cndmask_b32_e64 v14, v14, v20, s2
	v_cmp_gt_f64_e64 s2, 0, v[12:13]
	v_cndmask_b32_e64 v18, 0, v14, s3
	s_and_b32 vcc_lo, s3, vcc_lo
	v_fma_f64 v[24:25], v[22:23], s[92:93], s[90:91]
	v_mul_f64 v[28:29], v[22:23], 0.5
	v_mul_f64 v[34:35], v[8:9], -v[22:23]
	v_cndmask_b32_e32 v19, 0x3ff00000, v13, vcc_lo
	v_fma_f64 v[26:27], v[22:23], s[82:83], s[80:81]
	v_cndmask_b32_e64 v14, v14, v18, s2
	v_fma_f64 v[24:25], v[22:23], v[24:25], s[94:95]
	v_add_f64 v[30:31], -v[28:29], 1.0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[26:27], v[22:23], v[26:27], s[84:85]
	v_fma_f64 v[24:25], v[22:23], v[24:25], s[96:97]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[38:39], -v[30:31], 1.0
	v_fma_f64 v[26:27], v[22:23], v[26:27], s[86:87]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[24:25], v[22:23], v[24:25], s[98:99]
	v_add_f64 v[28:29], v[38:39], -v[28:29]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[26:27], v[22:23], v[26:27], s[88:89]
	v_fma_f64 v[24:25], v[34:35], v[24:25], v[32:33]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[28:29], v[8:9], -v[10:11], v[28:29]
	v_mul_f64 v[32:33], v[22:23], v[22:23]
	v_fma_f64 v[10:11], v[22:23], v[24:25], -v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[10:11], v[34:35], s[100:101], v[10:11]
	v_add_f64 v[8:9], v[8:9], -v[10:11]
	v_and_b32_e32 v10, 1, v3
	v_bfi_b32 v15, 0x7fffffff, v15, v19
	v_lshlrev_b32_e32 v3, 30, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v19, 0x7ff80000, v15, s3
	v_cmp_eq_f64_e64 s3, 0, v[12:13]
	v_cndmask_b32_e32 v12, 0, v13, vcc_lo
	v_cndmask_b32_e64 v13, v15, v19, s2
	s_delay_alu instid0(VALU_DEP_3)
	s_or_b32 vcc_lo, s3, s4
	s_and_b32 s2, s3, exec_lo
	s_cselect_b32 s2, 0, 0x7ff00000
	s_mov_b32 s3, s73
	v_bfi_b32 v15, 0x7fffffff, s2, v12
	v_cndmask_b32_e64 v12, v14, 0, vcc_lo
	s_mov_b32 s2, s22
	v_cmp_class_f64_e64 s4, v[6:7], 0x1f8
	v_fma_f64 v[26:27], v[22:23], v[26:27], s[2:3]
	v_cndmask_b32_e32 v13, v13, v15, vcc_lo
	v_cmp_eq_u32_e64 s3, 0, v10
	v_xor_b32_e32 v6, 0x80000000, v9
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_mul_f64 v[14:15], v[12:13], s[78:79]
	v_cmp_ngt_f64_e32 vcc_lo, 0xc0900000, v[12:13]
	v_cmp_nlt_f64_e64 s2, 0x4090cc00, v[12:13]
	v_rndne_f64_e32 v[14:15], v[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[18:19], v[14:15], s[54:55], -v[12:13]
	v_cvt_i32_f64_e32 v22, v[14:15]
	v_fma_f64 v[18:19], v[14:15], s[56:57], v[18:19]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[20:21], v[18:19], s[60:61], s[58:59]
	v_fma_f64 v[20:21], v[18:19], v[20:21], s[62:63]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[20:21], v[18:19], v[20:21], s[64:65]
	v_fma_f64 v[20:21], v[18:19], v[20:21], s[66:67]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[20:21], v[18:19], v[20:21], s[68:69]
	v_fma_f64 v[20:21], v[18:19], v[20:21], s[70:71]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[20:21], v[18:19], v[20:21], s[72:73]
	v_fma_f64 v[20:21], v[18:19], v[20:21], s[74:75]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[20:21], v[18:19], v[20:21], s[76:77]
	v_fma_f64 v[20:21], v[18:19], v[20:21], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[14:15], v[18:19], v[20:21], 1.0
	v_fma_f64 v[18:19], v[32:33], v[26:27], v[28:29]
	v_ldexp_f64 v[14:15], v[14:15], v22
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[18:19], v[30:31], v[18:19]
	v_cndmask_b32_e32 v11, 0x7ff00000, v15, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v6, v6, v19, s3
	s_and_b32 vcc_lo, s2, vcc_lo
	v_and_b32_e32 v3, 0x80000000, v3
	v_cndmask_b32_e64 v8, v8, v18, s3
	v_cndmask_b32_e64 v9, 0, v11, s2
	s_add_i32 s2, s102, 0xc0
	s_mov_b32 s3, exec_lo
	v_xor_b32_e32 v3, v6, v3
	v_cndmask_b32_e64 v6, 0, v8, s4
	v_cndmask_b32_e32 v8, 0, v14, vcc_lo
                                        ; implicit-def: $vgpr14
                                        ; implicit-def: $vgpr10_vgpr11
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v7, 0x7ff80000, v3, s4
	v_mul_f64 v[6:7], v[8:9], v[6:7]
                                        ; implicit-def: $vgpr8_vgpr9
	scratch_store_b64 off, v[6:7], s2
	flat_load_b64 v[12:13], v[4:5]
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_mul_f64 v[6:7], v[12:13], s[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[6:7], v[6:7], 0.5
	v_cmpx_ngt_f64_e64 0x41d00000, |v[6:7]|
	s_xor_b32 s3, exec_lo, s3
	s_cbranch_execz .LBB1_10
; %bb.9:                                ;   in Loop: Header=BB1_3 Depth=1
	v_ldexp_f64 v[8:9], |v[6:7]|, 0xffffff80
	v_cmp_le_f64_e64 vcc_lo, 0x7b000000, |v[6:7]|
	v_trig_preop_f64 v[10:11], |v[6:7]|, 0
	v_and_b32_e32 v3, 0x7fffffff, v7
	v_trig_preop_f64 v[14:15], |v[6:7]|, 1
	v_trig_preop_f64 v[26:27], |v[6:7]|, 2
	s_mov_b32 s4, s8
	s_mov_b32 s13, s11
	v_dual_cndmask_b32 v8, v6, v8 :: v_dual_cndmask_b32 v9, v3, v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[18:19], v[10:11], v[8:9]
	v_mul_f64 v[20:21], v[14:15], v[8:9]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[10:11], v[10:11], v[8:9], -v[18:19]
	v_fma_f64 v[14:15], v[14:15], v[8:9], -v[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[22:23], v[20:21], v[10:11]
	v_add_f64 v[24:25], v[22:23], -v[20:21]
	v_add_f64 v[30:31], v[18:19], v[22:23]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[28:29], v[22:23], -v[24:25]
	v_add_f64 v[10:11], v[10:11], -v[24:25]
	v_ldexp_f64 v[24:25], v[30:31], -2
	v_add_f64 v[18:19], v[30:31], -v[18:19]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[20:21], v[20:21], -v[28:29]
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[24:25]|
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[18:19], v[22:23], -v[18:19]
	v_add_f64 v[10:11], v[10:11], v[20:21]
	v_fract_f64_e32 v[20:21], v[24:25]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_cndmask_b32_e32 v20, 0, v20, vcc_lo
	v_mul_f64 v[32:33], v[26:27], v[8:9]
	v_cndmask_b32_e32 v21, 0, v21, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ldexp_f64 v[20:21], v[20:21], 2
	v_add_f64 v[28:29], v[32:33], v[14:15]
	v_fma_f64 v[8:9], v[26:27], v[8:9], -v[32:33]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[22:23], v[28:29], v[10:11]
	v_add_f64 v[24:25], v[18:19], v[22:23]
	v_add_f64 v[34:35], v[22:23], -v[28:29]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[30:31], v[24:25], v[20:21]
	v_add_f64 v[42:43], v[22:23], -v[34:35]
	v_add_f64 v[10:11], v[10:11], -v[34:35]
	v_add_f64 v[18:19], v[24:25], -v[18:19]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_cmp_gt_f64_e32 vcc_lo, 0, v[30:31]
	v_add_f64 v[30:31], v[28:29], -v[32:33]
	v_cndmask_b32_e64 v3, 0, 0x40100000, vcc_lo
	v_add_f64 v[40:41], v[28:29], -v[30:31]
	v_add_f64 v[14:15], v[14:15], -v[30:31]
	v_add_f64 v[28:29], v[28:29], -v[42:43]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[20:21], v[20:21], v[2:3]
	v_add_f64 v[30:31], v[32:33], -v[40:41]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[10:11], v[10:11], v[28:29]
	v_add_f64 v[38:39], v[24:25], v[20:21]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[14:15], v[14:15], v[30:31]
	v_cvt_i32_f64_e32 v3, v[38:39]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[10:11], v[14:15], v[10:11]
	v_add_f64 v[14:15], v[22:23], -v[18:19]
	v_cvt_f64_i32_e32 v[34:35], v3
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[8:9], v[8:9], v[10:11]
	v_add_f64 v[20:21], v[20:21], -v[34:35]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[8:9], v[14:15], v[8:9]
	v_add_f64 v[26:27], v[24:25], v[20:21]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[10:11], v[26:27], -v[20:21]
	v_cmp_le_f64_e32 vcc_lo, 0.5, v[26:27]
	v_add_f64 v[10:11], v[24:25], -v[10:11]
	v_add_co_ci_u32_e64 v14, s2, 0, v3, vcc_lo
	v_cndmask_b32_e64 v3, 0, 0x3ff00000, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[8:9], v[8:9], v[10:11]
	v_add_f64 v[10:11], v[26:27], -v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[18:19], v[10:11], v[8:9]
	v_mul_f64 v[20:21], v[18:19], s[4:5]
	v_add_f64 v[10:11], v[18:19], -v[10:11]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[22:23], v[18:19], s[4:5], -v[20:21]
	v_add_f64 v[8:9], v[8:9], -v[10:11]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[10:11], v[18:19], s[12:13], v[22:23]
	v_fma_f64 v[10:11], v[8:9], s[4:5], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[8:9], v[20:21], v[10:11]
	v_add_f64 v[18:19], v[8:9], -v[20:21]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[10:11], v[10:11], -v[18:19]
.LBB1_10:                               ; %Flow262
                                        ;   in Loop: Header=BB1_3 Depth=1
	s_and_not1_saveexec_b32 s2, s3
	s_cbranch_execz .LBB1_12
; %bb.11:                               ;   in Loop: Header=BB1_3 Depth=1
	v_mul_f64 v[8:9], |v[6:7]|, s[14:15]
	s_mov_b32 s16, s8
	s_mov_b32 s10, s18
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rndne_f64_e32 v[14:15], v[8:9]
	v_fma_f64 v[8:9], v[14:15], s[16:17], |v[6:7]|
	v_mul_f64 v[10:11], v[14:15], s[18:19]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[20:21], v[14:15], s[18:19], v[8:9]
	v_add_f64 v[18:19], v[8:9], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[8:9], v[8:9], -v[18:19]
	v_add_f64 v[18:19], v[18:19], -v[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[8:9], v[8:9], v[10:11]
	v_fma_f64 v[10:11], v[14:15], s[10:11], v[10:11]
	v_add_f64 v[8:9], v[18:19], v[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[8:9], v[8:9], -v[10:11]
	v_fma_f64 v[10:11], v[14:15], s[20:21], v[8:9]
	v_cvt_i32_f64_e32 v14, v[14:15]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[8:9], v[20:21], v[10:11]
	v_add_f64 v[18:19], v[8:9], -v[20:21]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[10:11], v[10:11], -v[18:19]
.LBB1_12:                               ; %_ZL3sind.exit.i
                                        ;   in Loop: Header=BB1_3 Depth=1
	s_or_b32 exec_lo, exec_lo, s2
	v_div_scale_f64 v[18:19], null, 0x40180000, 0x40180000, v[12:13]
	v_div_scale_f64 v[24:25], vcc_lo, v[12:13], 0x40180000, v[12:13]
	s_mov_b32 s48, s22
	s_mov_b32 s54, s44
	s_mov_b32 s56, s46
	s_mov_b32 s78, s52
	s_mov_b32 s99, s71
	s_mov_b32 s100, s22
	v_add_f64 v[0:1], v[0:1], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[20:21], v[18:19]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[22:23], -v[18:19], v[20:21], 1.0
	v_fma_f64 v[20:21], v[20:21], v[22:23], v[20:21]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[22:23], -v[18:19], v[20:21], 1.0
	v_fma_f64 v[20:21], v[20:21], v[22:23], v[20:21]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[22:23], v[24:25], v[20:21]
	v_fma_f64 v[18:19], -v[18:19], v[22:23], v[24:25]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[18:19], v[18:19], v[20:21], v[22:23]
	v_div_fixup_f64 v[12:13], v[18:19], 0x40180000, v[12:13]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_frexp_mant_f64_e64 v[18:19], |v[12:13]|
	v_cmp_class_f64_e64 s4, v[12:13], 0x204
	v_cmp_gt_f64_e32 vcc_lo, s[22:23], v[18:19]
	v_cndmask_b32_e64 v3, 0, 1, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[18:19], v[18:19], v3
	v_frexp_exp_i32_f64_e32 v3, v[12:13]
	v_add_f64 v[20:21], v[18:19], 1.0
	v_add_f64 v[26:27], v[18:19], -1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_subrev_co_ci_u32_e32 v3, vcc_lo, 0, v3, vcc_lo
	v_cmp_eq_f64_e32 vcc_lo, 1.0, v[12:13]
	v_rcp_f64_e32 v[22:23], v[20:21]
	v_add_f64 v[28:29], v[20:21], -1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_add_f64 v[18:19], v[18:19], -v[28:29]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[24:25], -v[20:21], v[22:23], 1.0
	v_fma_f64 v[22:23], v[24:25], v[22:23], v[22:23]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[24:25], -v[20:21], v[22:23], 1.0
	v_fma_f64 v[22:23], v[24:25], v[22:23], v[22:23]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[24:25], v[26:27], v[22:23]
	v_mul_f64 v[30:31], v[20:21], v[24:25]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[20:21], v[24:25], v[20:21], -v[30:31]
	v_fma_f64 v[18:19], v[24:25], v[18:19], v[20:21]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[20:21], v[30:31], v[18:19]
	v_add_f64 v[28:29], v[26:27], -v[20:21]
	v_add_f64 v[30:31], v[20:21], -v[30:31]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[26:27], v[26:27], -v[28:29]
	v_add_f64 v[18:19], v[30:31], -v[18:19]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[20:21], v[26:27], -v[20:21]
	v_add_f64 v[18:19], v[18:19], v[20:21]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[18:19], v[28:29], v[18:19]
	v_mul_f64 v[18:19], v[22:23], v[18:19]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[20:21], v[24:25], v[18:19]
	v_add_f64 v[22:23], v[20:21], -v[24:25]
	v_mul_f64 v[24:25], v[20:21], v[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[18:19], v[18:19], -v[22:23]
	v_fma_f64 v[22:23], v[20:21], v[20:21], -v[24:25]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[26:27], v[18:19], v[18:19]
	v_fma_f64 v[22:23], v[20:21], v[26:27], v[22:23]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[26:27], v[24:25], v[22:23]
	v_fma_f64 v[28:29], v[26:27], s[26:27], s[24:25]
	v_add_f64 v[24:25], v[26:27], -v[24:25]
	v_mul_f64 v[34:35], v[20:21], v[26:27]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[28:29], v[26:27], v[28:29], s[28:29]
	v_add_f64 v[22:23], v[22:23], -v[24:25]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[28:29], v[26:27], v[28:29], s[30:31]
	v_fma_f64 v[28:29], v[26:27], v[28:29], s[34:35]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[28:29], v[26:27], v[28:29], s[36:37]
	v_fma_f64 v[28:29], v[26:27], v[28:29], s[38:39]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[28:29], v[26:27], v[28:29], s[40:41]
	v_fma_f64 v[28:29], v[26:27], v[28:29], s[42:43]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[30:31], v[26:27], v[28:29]
	v_fma_f64 v[24:25], v[26:27], v[28:29], -v[30:31]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[24:25], v[22:23], v[28:29], v[24:25]
	v_add_f64 v[28:29], v[30:31], v[24:25]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[32:33], v[28:29], s[22:23]
	v_add_f64 v[30:31], v[28:29], -v[30:31]
	v_add_f64 v[38:39], v[32:33], s[48:49]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[24:25], v[24:25], -v[30:31]
	v_fma_f64 v[30:31], v[26:27], v[20:21], -v[34:35]
	v_add_f64 v[28:29], v[28:29], -v[38:39]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[24:25], v[24:25], s[50:51]
	v_fma_f64 v[26:27], v[26:27], v[18:19], v[30:31]
	v_ldexp_f64 v[18:19], v[18:19], 1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[24:25], v[24:25], v[28:29]
	v_fma_f64 v[22:23], v[22:23], v[20:21], v[26:27]
	v_ldexp_f64 v[20:21], v[20:21], 1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[26:27], v[32:33], v[24:25]
	v_add_f64 v[28:29], v[34:35], v[22:23]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[30:31], v[32:33], -v[26:27]
	v_mul_f64 v[32:33], v[28:29], v[26:27]
	v_add_f64 v[34:35], v[28:29], -v[34:35]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[24:25], v[24:25], v[30:31]
	v_fma_f64 v[30:31], v[28:29], v[26:27], -v[32:33]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[22:23], v[22:23], -v[34:35]
	v_fma_f64 v[24:25], v[28:29], v[24:25], v[30:31]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fma_f64 v[22:23], v[22:23], v[26:27], v[24:25]
	v_cvt_f64_i32_e32 v[26:27], v3
	v_cndmask_b32_e64 v3, 2.0, 0x3ff00000, vcc_lo
	v_add_f64 v[24:25], v[32:33], v[22:23]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_add_f64 v[28:29], v[20:21], v[24:25]
	v_add_f64 v[30:31], v[24:25], -v[32:33]
	v_mul_f64 v[32:33], v[26:27], s[44:45]
	v_add_f64 v[20:21], v[28:29], -v[20:21]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[22:23], v[22:23], -v[30:31]
	v_fma_f64 v[30:31], v[26:27], s[44:45], -v[32:33]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[20:21], v[24:25], -v[20:21]
	v_add_f64 v[18:19], v[18:19], v[22:23]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[22:23], v[26:27], s[46:47], v[30:31]
	v_add_f64 v[18:19], v[18:19], v[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[20:21], v[32:33], v[22:23]
	v_add_f64 v[24:25], v[28:29], v[18:19]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[32:33], v[20:21], -v[32:33]
	v_add_f64 v[26:27], v[20:21], v[24:25]
	v_add_f64 v[28:29], v[24:25], -v[28:29]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[22:23], v[22:23], -v[32:33]
	v_add_f64 v[30:31], v[26:27], -v[20:21]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[18:19], v[18:19], -v[28:29]
	v_add_f64 v[34:35], v[26:27], -v[30:31]
	v_add_f64 v[24:25], v[24:25], -v[30:31]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[28:29], v[22:23], v[18:19]
	v_add_f64 v[20:21], v[20:21], -v[34:35]
	v_mul_f64 v[34:35], v[10:11], 0.5
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[20:21], v[24:25], v[20:21]
	v_add_f64 v[24:25], v[28:29], -v[22:23]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[20:21], v[28:29], v[20:21]
	v_add_f64 v[28:29], v[28:29], -v[24:25]
	v_add_f64 v[18:19], v[18:19], -v[24:25]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[30:31], v[26:27], v[20:21]
	v_add_f64 v[22:23], v[22:23], -v[28:29]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[24:25], v[30:31], -v[26:27]
	v_add_f64 v[18:19], v[18:19], v[22:23]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[20:21], v[20:21], -v[24:25]
	v_add_f64 v[18:19], v[18:19], v[20:21]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[20:21], v[30:31], v[18:19]
	v_add_f64 v[22:23], v[20:21], -v[30:31]
	v_mul_f64 v[24:25], v[2:3], v[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[18:19], v[18:19], -v[22:23]
	v_fma_f64 v[20:21], v[2:3], v[20:21], -v[24:25]
	v_cmp_class_f64_e64 vcc_lo, v[24:25], 0x204
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[18:19], v[2:3], v[18:19], v[20:21]
	v_add_f64 v[20:21], v[24:25], v[18:19]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_dual_cndmask_b32 v23, v21, v25 :: v_dual_cndmask_b32 v22, v20, v24
	v_add_f64 v[20:21], v[20:21], -v[24:25]
	v_mul_f64 v[26:27], v[22:23], s[52:53]
	v_cmp_nlt_f64_e64 s2, 0x40900000, v[22:23]
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[22:23]|
	v_cmp_ngt_f64_e64 s3, 0xc090cc00, v[22:23]
	v_add_f64 v[18:19], v[18:19], -v[20:21]
	v_trunc_f64_e32 v[20:21], v[2:3]
	v_rndne_f64_e32 v[26:27], v[26:27]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_dual_cndmask_b32 v19, 0, v19 :: v_dual_cndmask_b32 v18, 0, v18
	s_and_b32 vcc_lo, s3, s2
	v_fma_f64 v[28:29], v[26:27], s[54:55], v[22:23]
	v_cvt_i32_f64_e32 v15, v[26:27]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[28:29], v[26:27], s[56:57], v[28:29]
	v_fma_f64 v[30:31], v[28:29], s[60:61], s[58:59]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[30:31], v[28:29], v[30:31], s[62:63]
	v_fma_f64 v[30:31], v[28:29], v[30:31], s[64:65]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[30:31], v[28:29], v[30:31], s[66:67]
	v_fma_f64 v[30:31], v[28:29], v[30:31], s[68:69]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[30:31], v[28:29], v[30:31], s[70:71]
	v_fma_f64 v[30:31], v[28:29], v[30:31], s[72:73]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[30:31], v[28:29], v[30:31], s[74:75]
	v_fma_f64 v[30:31], v[28:29], v[30:31], s[76:77]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[30:31], v[28:29], v[30:31], 1.0
	v_fma_f64 v[26:27], v[28:29], v[30:31], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[24:25], v[26:27], v15
	v_mul_f64 v[26:27], v[2:3], 0.5
	v_cndmask_b32_e64 v15, 0x7ff00000, v25, s2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_trunc_f64_e32 v[22:23], v[26:27]
	v_cndmask_b32_e32 v24, 0, v24, vcc_lo
	v_cmp_eq_f64_e32 vcc_lo, v[20:21], v[2:3]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v25, 0, v15, s3
	v_fma_f64 v[18:19], v[24:25], v[18:19], v[24:25]
	v_cmp_class_f64_e64 s3, v[24:25], 0x204
	v_cmp_neq_f64_e64 s2, v[22:23], v[26:27]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v15, v18, v24, s3
	v_cndmask_b32_e64 v18, v19, v25, s3
	v_cmp_eq_f64_e64 s3, 0, v[12:13]
	v_mul_f64 v[24:25], v[8:9], v[8:9]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_cndmask_b32_e32 v19, 0, v15, vcc_lo
	s_and_b32 s2, vcc_lo, s2
	v_cndmask_b32_e64 v3, 0x3ff00000, v13, s2
	v_cndmask_b32_e64 v21, 0, v13, s2
	s_mov_b32 s2, s22
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_bfi_b32 v3, 0x7fffffff, v18, v3
	v_cndmask_b32_e32 v18, 0x7ff80000, v3, vcc_lo
	v_cmp_gt_f64_e32 vcc_lo, 0, v[12:13]
	v_cndmask_b32_e64 v20, 0x7ff00000, 0, s3
	v_fma_f64 v[26:27], v[24:25], s[92:93], s[90:91]
	v_fma_f64 v[28:29], v[24:25], s[82:83], s[80:81]
	v_mul_f64 v[30:31], v[24:25], 0.5
	v_mul_f64 v[38:39], v[8:9], -v[24:25]
	v_bfi_b32 v20, 0x7fffffff, v20, v21
	v_cndmask_b32_e32 v15, v15, v19, vcc_lo
	v_cndmask_b32_e32 v3, v3, v18, vcc_lo
	s_or_b32 vcc_lo, s3, s4
	v_cmp_class_f64_e64 s4, v[6:7], 0x1f8
	v_lshlrev_b32_e32 v6, 30, v14
	v_cndmask_b32_e64 v15, v15, 0, vcc_lo
	v_fma_f64 v[26:27], v[24:25], v[26:27], s[94:95]
	v_fma_f64 v[28:29], v[24:25], v[28:29], s[84:85]
	v_add_f64 v[32:33], -v[30:31], 1.0
	v_xor_b32_e32 v6, v6, v7
	v_cndmask_b32_e32 v3, v3, v20, vcc_lo
	v_cmp_o_f64_e32 vcc_lo, v[12:13], v[12:13]
	s_mov_b32 s3, s73
	s_delay_alu instid0(VALU_DEP_3)
	v_and_b32_e32 v6, 0x80000000, v6
	v_fma_f64 v[26:27], v[24:25], v[26:27], s[96:97]
	v_fma_f64 v[28:29], v[24:25], v[28:29], s[86:87]
	v_add_f64 v[40:41], -v[32:33], 1.0
	v_cndmask_b32_e32 v12, 0, v15, vcc_lo
	v_cndmask_b32_e32 v13, 0x7ff80000, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f64 v[18:19], v[12:13], s[78:79]
	v_cmp_ngt_f64_e32 vcc_lo, 0xc0900000, v[12:13]
	v_fma_f64 v[26:27], v[24:25], v[26:27], s[98:99]
	v_fma_f64 v[28:29], v[24:25], v[28:29], s[88:89]
	v_add_f64 v[30:31], v[40:41], -v[30:31]
	v_rndne_f64_e32 v[18:19], v[18:19]
	s_delay_alu instid0(VALU_DEP_4)
	v_fma_f64 v[26:27], v[38:39], v[26:27], v[34:35]
	v_mul_f64 v[34:35], v[24:25], v[24:25]
	v_fma_f64 v[28:29], v[24:25], v[28:29], s[2:3]
	v_fma_f64 v[30:31], v[8:9], -v[10:11], v[30:31]
	v_cmp_nlt_f64_e64 s2, 0x4090cc00, v[12:13]
	v_fma_f64 v[20:21], v[18:19], s[54:55], -v[12:13]
	v_cvt_i32_f64_e32 v3, v[18:19]
	v_fma_f64 v[10:11], v[24:25], v[26:27], -v[10:11]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[20:21], v[18:19], s[56:57], v[20:21]
	v_fma_f64 v[10:11], v[38:39], s[100:101], v[10:11]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[22:23], v[20:21], s[60:61], s[58:59]
	v_add_f64 v[8:9], v[8:9], -v[10:11]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[22:23], v[20:21], v[22:23], s[62:63]
	v_fma_f64 v[22:23], v[20:21], v[22:23], s[64:65]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[22:23], v[20:21], v[22:23], s[66:67]
	v_fma_f64 v[22:23], v[20:21], v[22:23], s[68:69]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[22:23], v[20:21], v[22:23], s[70:71]
	v_fma_f64 v[22:23], v[20:21], v[22:23], s[72:73]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[22:23], v[20:21], v[22:23], s[74:75]
	v_fma_f64 v[22:23], v[20:21], v[22:23], s[76:77]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[22:23], v[20:21], v[22:23], 1.0
	v_fma_f64 v[18:19], v[20:21], v[22:23], 1.0
	v_fma_f64 v[20:21], v[34:35], v[28:29], v[30:31]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[18:19], v[18:19], v3
	v_add_f64 v[20:21], v[32:33], v[20:21]
	v_and_b32_e32 v3, 1, v14
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cmp_eq_u32_e64 s3, 0, v3
	v_cndmask_b32_e32 v10, 0x7ff00000, v19, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v7, v21, v9, s3
	v_cndmask_b32_e64 v3, v20, v8, s3
	s_and_b32 vcc_lo, s2, vcc_lo
	v_cndmask_b32_e64 v9, 0, v10, s2
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_xor_b32_e32 v7, v7, v6
	v_cndmask_b32_e64 v6, 0, v3, s4
	v_cndmask_b32_e32 v8, 0, v18, vcc_lo
	v_add_co_u32 v4, vcc_lo, v4, 8
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v7, 0x7ff80000, v7, s4
	v_add_co_ci_u32_e32 v5, vcc_lo, 0, v5, vcc_lo
	s_add_i32 s2, s102, 0x700
	s_add_i32 s102, s102, 8
	v_mul_f64 v[6:7], v[8:9], v[6:7]
	s_cmpk_lg_i32 s102, 0x640
	scratch_store_b64 off, v[6:7], s2
	s_cbranch_scc1 .LBB1_3
; %bb.13:                               ; %_ZN8RNHQS_ZB7initialEidddddiPdS0_S0_S0_S0_S0_S0_.exit
	s_cmp_lt_i32 s33, 1
	s_cbranch_scc1 .LBB1_54
; %bb.14:                               ; %.lr.ph.i
	s_clause 0x4
	scratch_load_b128 v[0:3], off, off offset:104
	scratch_load_b128 v[4:7], off, off offset:120
	scratch_load_b128 v[8:11], off, off offset:136
	scratch_load_b128 v[12:15], off, off offset:88
	scratch_load_b32 v38, off, off offset:16
	s_load_b128 s[0:3], s[0:1], 0x38
	v_mov_b32_e32 v40, 0
	s_mov_b32 s10, 0x54442d18
	s_mov_b32 s16, 0x6dc9c883
	s_mov_b32 s20, 0x33145c00
	s_mov_b32 s22, 0x252049c0
	s_mov_b32 s24, 0x9037ab78
	s_mov_b32 s26, 0x46cc5e42
	s_mov_b32 s28, 0xa17f65f6
	s_mov_b32 s30, 0x19f4ec90
	s_mov_b32 s34, 0x16c16967
	s_mov_b32 s36, 0x555502a1
	s_mov_b32 s38, 0x55555555
	s_mov_b32 s40, 0xb42fdfa7
	s_mov_b32 s42, 0xf9a43bb8
	s_mov_b32 s44, 0x796cde01
	s_mov_b32 s46, 0x19e83e5c
	s_mov_b32 s48, 0x11122322
	s_mov_b32 s54, 0x652b82fe
	s_mov_b32 s56, 0xfefa39ef
	s_waitcnt lgkmcnt(0)
	v_alignbit_b32 v19, s3, s2, 3
	s_lshr_b32 s2, s3, 3
	s_mov_b32 s58, 0x3b39803f
	s_mov_b32 s60, 0xfca7ab0c
	s_mov_b32 s62, 0x6a5dcb37
	v_mul_lo_u32 v20, v19, v17
	v_mad_u64_u32 v[17:18], null, v19, v16, 0
	v_mul_lo_u32 v16, s2, v16
	s_mov_b32 s64, 0x623fde64
	s_mov_b32 s66, 0x7c89e6b0
	s_mov_b32 s68, 0x14761f6e
	s_mov_b32 s70, 0x1852b7b0
	s_mov_b32 s72, 0x55555511
	s_mov_b32 s74, 11
	s_mov_b32 s76, 0x968915a9
	v_add3_u32 v18, v18, v20, v16
	s_mov_b32 s78, 0x4222de17
	s_mov_b32 s80, 0x3abe935a
	s_mov_b32 s82, 0x47e6c9c2
	s_mov_b32 s84, 0xcfa74449
	v_lshlrev_b64 v[16:17], 3, v[17:18]
	v_mov_b32_e32 v18, 8
	s_mov_b32 s86, 0x71bf3c30
	s_mov_b32 s88, 0x1c7792ce
	s_mov_b32 s90, 0x924920da
	s_mov_b32 s92, 0x9999999c
	v_add_co_u32 v52, vcc_lo, s0, v16
	s_movk_i32 s0, 0x50
	v_add_co_ci_u32_e32 v53, vcc_lo, s1, v17, vcc_lo
	v_add_nc_u32_e64 v55, s0, 8
	s_movk_i32 s0, 0x70
	s_movk_i32 s1, 0x68
	v_add_nc_u32_e32 v54, 0x48, v18
	v_add_nc_u32_e64 v56, s0, 8
	v_add_nc_u32_e64 v57, s1, 8
	s_mov_b32 s94, 0xd5df274d
	s_mov_b32 s102, 0
	s_mov_b32 s11, 0x400921fb
	s_mov_b32 s9, 0x3ff921fb
	s_mov_b32 s13, 0x3c91a626
	s_mov_b32 s14, 0x33145c07
	s_mov_b32 s17, 0x3fe45f30
	s_mov_b32 s19, 0xbff921fb
	s_mov_b32 s21, 0xbc91a626
	s_mov_b32 s23, 0xb97b839a
	s_mov_b32 s25, 0x3e21eeb6
	s_mov_b32 s27, 0xbda907db
	s_mov_b32 s29, 0xbe927e4f
	s_mov_b32 s31, 0x3efa01a0
	s_mov_b32 s35, 0xbf56c16c
	s_mov_b32 s37, 0x3fa55555
	s_mov_b32 s39, 0x3fe55555
	s_mov_b32 s41, 0xbe5ae600
	s_mov_b32 s43, 0x3de5e0b2
	s_mov_b32 s45, 0x3ec71de3
	s_mov_b32 s47, 0xbf2a01a0
	s_mov_b32 s49, 0x3f811111
	s_mov_b32 s50, 0x11110bb3
	s_mov_b32 s53, 0xbfc55555
	s_mov_b32 s55, 0x3ff71547
	s_mov_b32 s57, 0xbfe62e42
	s_mov_b32 s59, 0xbc7abc9e
	s_mov_b32 s61, 0x3e928af3
	s_mov_b32 s63, 0x3e5ade15
	s_mov_b32 s65, 0x3ec71dee
	s_mov_b32 s67, 0x3efa0199
	s_mov_b32 s69, 0x3f2a01a0
	s_mov_b32 s71, 0x3f56c16c
	s_mov_b32 s73, 0x3fc55555
	s_mov_b32 s75, 0x3fe00000
	s_mov_b32 s103, 0xbff00000
	s_mov_b32 s77, 0x3fba6564
	s_mov_b32 s79, 0x3fbdee67
	s_mov_b32 s81, 0x3fbe25e4
	s_mov_b32 s83, 0x3fc110ef
	s_mov_b32 s85, 0x3fc3b13b
	s_mov_b32 s87, 0x3fc745d1
	s_mov_b32 s89, 0x3fcc71c7
	s_mov_b32 s91, 0x3fd24924
	s_mov_b32 s93, 0x3fd99999
	s_mov_b32 s95, 0x3c8543b0
	s_mov_b32 s97, 0x3fe62e42
	s_mov_b32 s99, 0x3c7abc9e
	s_mov_b32 s101, 0xbfe55555
.LBB1_15:                               ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB1_16 Depth 2
                                        ;       Child Loop BB1_19 Depth 3
                                        ;       Child Loop BB1_25 Depth 3
                                        ;       Child Loop BB1_32 Depth 3
                                        ;       Child Loop BB1_38 Depth 3
                                        ;       Child Loop BB1_46 Depth 3
                                        ;     Child Loop BB1_50 Depth 2
                                        ;     Child Loop BB1_52 Depth 2
	s_clause 0x6
	scratch_load_b64 v[28:29], off, off offset:24
	scratch_load_b64 v[30:31], off, off offset:64
	scratch_load_b128 v[16:19], off, off offset:104
	scratch_load_b128 v[20:23], off, off offset:136
	scratch_load_b128 v[24:27], off, off offset:152
	scratch_load_b64 v[42:43], off, off offset:88
	scratch_load_b64 v[44:45], off, off offset:120
	s_mov_b32 s4, 0
	s_waitcnt vmcnt(5)
	v_add_f64 v[28:29], v[28:29], v[30:31]
	s_waitcnt vmcnt(4)
	v_add_co_u32 v39, vcc_lo, v18, 8
	v_add_co_ci_u32_e32 v58, vcc_lo, 0, v19, vcc_lo
	s_waitcnt vmcnt(3)
	v_add_co_u32 v59, vcc_lo, v22, 8
	v_add_co_ci_u32_e32 v60, vcc_lo, 0, v23, vcc_lo
	scratch_store_b64 off, v[28:29], off offset:64
.LBB1_16:                               ; %NodeBlock
                                        ;   Parent Loop BB1_15 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB1_19 Depth 3
                                        ;       Child Loop BB1_25 Depth 3
                                        ;       Child Loop BB1_32 Depth 3
                                        ;       Child Loop BB1_38 Depth 3
                                        ;       Child Loop BB1_46 Depth 3
	s_mov_b32 s1, -1
	s_mov_b32 s5, 0
	s_cmp_lt_i32 s4, 3
	s_mov_b32 s0, 0
	s_cbranch_scc1 .LBB1_28
; %bb.17:                               ; %LeafBlock251
                                        ;   in Loop: Header=BB1_16 Depth=2
	s_cmp_eq_u32 s4, 3
	s_mov_b32 s0, -1
	s_cbranch_scc0 .LBB1_27
; %bb.18:                               ; %.preheader47.i.i.preheader
                                        ;   in Loop: Header=BB1_16 Depth=2
	v_mov_b32_e32 v28, 0x700
	v_mov_b32_e32 v29, 0xc0
	s_mov_b64 s[0:1], 0
.LBB1_19:                               ; %.preheader47.i.i
                                        ;   Parent Loop BB1_15 Depth=1
                                        ;     Parent Loop BB1_16 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_delay_alu instid0(SALU_CYCLE_1)
	v_add_co_u32 v30, vcc_lo, v16, s0
	v_add_co_ci_u32_e32 v31, vcc_lo, s1, v17, vcc_lo
	scratch_load_b64 v[32:33], v29, off
	scratch_load_b64 v[34:35], off, off offset:24
	flat_load_b64 v[30:31], v[30:31]
	v_add_nc_u32_e32 v29, 8, v29
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_fma_f64 v[30:31], v[34:35], v[30:31], v[32:33]
	v_add_co_u32 v32, vcc_lo, v24, s0
	v_add_co_ci_u32_e32 v33, vcc_lo, s1, v25, vcc_lo
	v_add_co_u32 v34, vcc_lo, v20, s0
	v_add_co_ci_u32_e32 v35, vcc_lo, s1, v21, vcc_lo
	flat_store_b64 v[32:33], v[30:31]
	scratch_load_b64 v[30:31], v28, off
	scratch_load_b64 v[32:33], off, off offset:24
	flat_load_b64 v[34:35], v[34:35]
	v_add_nc_u32_e32 v28, 8, v28
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_fma_f64 v[30:31], v[32:33], v[34:35], v[30:31]
	v_add_co_u32 v32, vcc_lo, v26, s0
	v_add_co_ci_u32_e32 v33, vcc_lo, s1, v27, vcc_lo
	s_add_u32 s0, s0, 8
	s_addc_u32 s1, s1, 0
	s_cmpk_lg_i32 s0, 0x640
	flat_store_b64 v[32:33], v[30:31]
	s_cbranch_scc1 .LBB1_19
; %bb.20:                               ;   in Loop: Header=BB1_16 Depth=2
	s_clause 0x2
	scratch_load_b128 v[46:49], off, off offset:56
	scratch_load_b128 v[28:31], off, off offset:24
	scratch_load_b128 v[32:35], off, off offset:40
	s_mov_b32 s1, exec_lo
	s_waitcnt vmcnt(2)
	v_mul_f64 v[46:47], v[46:47], s[10:11]
	s_waitcnt vmcnt(1)
	v_add_f64 v[28:29], v[48:49], v[28:29]
                                        ; implicit-def: $vgpr48
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[28:29], v[28:29], v[34:35], v[46:47]
                                        ; implicit-def: $vgpr34_vgpr35
                                        ; implicit-def: $vgpr46_vgpr47
	v_cmpx_ngt_f64_e64 0x41d00000, |v[28:29]|
	s_xor_b32 s1, exec_lo, s1
	s_cbranch_execz .LBB1_22
; %bb.21:                               ;   in Loop: Header=BB1_16 Depth=2
	v_ldexp_f64 v[34:35], |v[28:29]|, 0xffffff80
	v_cmp_le_f64_e64 vcc_lo, 0x7b000000, |v[28:29]|
	v_trig_preop_f64 v[46:47], |v[28:29]|, 0
	v_and_b32_e32 v41, 0x7fffffff, v29
	v_trig_preop_f64 v[48:49], |v[28:29]|, 1
	v_trig_preop_f64 v[67:68], |v[28:29]|, 2
	s_mov_b32 s8, s10
	s_mov_b32 s15, s13
	v_dual_cndmask_b32 v34, v28, v34 :: v_dual_cndmask_b32 v35, v41, v35
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[50:51], v[46:47], v[34:35]
	v_mul_f64 v[61:62], v[48:49], v[34:35]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[46:47], v[46:47], v[34:35], -v[50:51]
	v_fma_f64 v[48:49], v[48:49], v[34:35], -v[61:62]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[63:64], v[61:62], v[46:47]
	v_add_f64 v[65:66], v[63:64], -v[61:62]
	v_add_f64 v[71:72], v[50:51], v[63:64]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[69:70], v[63:64], -v[65:66]
	v_add_f64 v[46:47], v[46:47], -v[65:66]
	v_ldexp_f64 v[65:66], v[71:72], -2
	v_add_f64 v[50:51], v[71:72], -v[50:51]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[61:62], v[61:62], -v[69:70]
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[65:66]|
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[50:51], v[63:64], -v[50:51]
	v_add_f64 v[46:47], v[46:47], v[61:62]
	v_fract_f64_e32 v[61:62], v[65:66]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_cndmask_b32_e32 v62, 0, v62, vcc_lo
	v_mul_f64 v[73:74], v[67:68], v[34:35]
	v_cndmask_b32_e32 v61, 0, v61, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ldexp_f64 v[61:62], v[61:62], 2
	v_add_f64 v[69:70], v[73:74], v[48:49]
	v_fma_f64 v[34:35], v[67:68], v[34:35], -v[73:74]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[63:64], v[69:70], v[46:47]
	v_add_f64 v[65:66], v[50:51], v[63:64]
	v_add_f64 v[75:76], v[63:64], -v[69:70]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[71:72], v[65:66], v[61:62]
	v_add_f64 v[81:82], v[63:64], -v[75:76]
	v_add_f64 v[46:47], v[46:47], -v[75:76]
	v_add_f64 v[50:51], v[65:66], -v[50:51]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_cmp_gt_f64_e32 vcc_lo, 0, v[71:72]
	v_add_f64 v[71:72], v[69:70], -v[73:74]
	v_cndmask_b32_e64 v41, 0, 0x40100000, vcc_lo
	v_add_f64 v[79:80], v[69:70], -v[71:72]
	v_add_f64 v[48:49], v[48:49], -v[71:72]
	v_add_f64 v[69:70], v[69:70], -v[81:82]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[61:62], v[61:62], v[40:41]
	v_add_f64 v[71:72], v[73:74], -v[79:80]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[46:47], v[46:47], v[69:70]
	v_add_f64 v[77:78], v[65:66], v[61:62]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[48:49], v[48:49], v[71:72]
	v_cvt_i32_f64_e32 v41, v[77:78]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[46:47], v[48:49], v[46:47]
	v_add_f64 v[48:49], v[63:64], -v[50:51]
	v_cvt_f64_i32_e32 v[75:76], v41
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[34:35], v[34:35], v[46:47]
	v_add_f64 v[61:62], v[61:62], -v[75:76]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[34:35], v[48:49], v[34:35]
	v_add_f64 v[67:68], v[65:66], v[61:62]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[46:47], v[67:68], -v[61:62]
	v_cmp_le_f64_e32 vcc_lo, 0.5, v[67:68]
	v_add_f64 v[46:47], v[65:66], -v[46:47]
	v_add_co_ci_u32_e64 v48, s0, 0, v41, vcc_lo
	v_cndmask_b32_e64 v41, 0, 0x3ff00000, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[34:35], v[34:35], v[46:47]
	v_add_f64 v[46:47], v[67:68], -v[40:41]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[49:50], v[46:47], v[34:35]
	v_mul_f64 v[61:62], v[49:50], s[8:9]
	v_add_f64 v[46:47], v[49:50], -v[46:47]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[63:64], v[49:50], s[8:9], -v[61:62]
	v_add_f64 v[34:35], v[34:35], -v[46:47]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[46:47], v[49:50], s[14:15], v[63:64]
	v_fma_f64 v[46:47], v[34:35], s[8:9], v[46:47]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[34:35], v[61:62], v[46:47]
	v_add_f64 v[49:50], v[34:35], -v[61:62]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[46:47], v[46:47], -v[49:50]
.LBB1_22:                               ; %Flow
                                        ;   in Loop: Header=BB1_16 Depth=2
	s_and_not1_saveexec_b32 s0, s1
	s_cbranch_execz .LBB1_24
; %bb.23:                               ;   in Loop: Header=BB1_16 Depth=2
	v_mul_f64 v[34:35], |v[28:29]|, s[16:17]
	s_mov_b32 s18, s10
	s_mov_b32 s12, s20
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rndne_f64_e32 v[48:49], v[34:35]
	v_fma_f64 v[34:35], v[48:49], s[18:19], |v[28:29]|
	v_mul_f64 v[46:47], v[48:49], s[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[61:62], v[48:49], s[20:21], v[34:35]
	v_add_f64 v[50:51], v[34:35], v[46:47]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[34:35], v[34:35], -v[50:51]
	v_add_f64 v[50:51], v[50:51], -v[61:62]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[34:35], v[34:35], v[46:47]
	v_fma_f64 v[46:47], v[48:49], s[12:13], v[46:47]
	v_add_f64 v[34:35], v[50:51], v[34:35]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[34:35], v[34:35], -v[46:47]
	v_fma_f64 v[46:47], v[48:49], s[22:23], v[34:35]
	v_cvt_i32_f64_e32 v48, v[48:49]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[34:35], v[61:62], v[46:47]
	v_add_f64 v[50:51], v[34:35], -v[61:62]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[46:47], v[46:47], -v[50:51]
.LBB1_24:                               ; %_ZL3sind.exit.i12
                                        ;   in Loop: Header=BB1_16 Depth=2
	s_or_b32 exec_lo, exec_lo, s0
	v_mul_f64 v[49:50], v[34:35], v[34:35]
	s_mov_b32 s51, s49
	s_delay_alu instid0(VALU_DEP_2)
	v_mul_f64 v[69:70], v[46:47], 0.5
	s_mov_b32 s0, s38
	s_mov_b32 s1, s37
	s_mov_b32 s52, s38
	v_mul_f64 v[30:31], v[30:31], v[32:33]
	s_mov_b64 s[2:3], 0
	s_mov_b32 s6, 2
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_fma_f64 v[61:62], v[49:50], s[42:43], s[40:41]
	v_fma_f64 v[63:64], v[49:50], s[26:27], s[24:25]
	v_mul_f64 v[65:66], v[49:50], 0.5
	v_mul_f64 v[71:72], v[34:35], -v[49:50]
	v_fma_f64 v[61:62], v[49:50], v[61:62], s[44:45]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[63:64], v[49:50], v[63:64], s[28:29]
	v_add_f64 v[67:68], -v[65:66], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[61:62], v[49:50], v[61:62], s[46:47]
	v_fma_f64 v[63:64], v[49:50], v[63:64], s[30:31]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[73:74], -v[67:68], 1.0
	v_fma_f64 v[61:62], v[49:50], v[61:62], s[50:51]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[63:64], v[49:50], v[63:64], s[34:35]
	v_add_f64 v[65:66], v[73:74], -v[65:66]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[61:62], v[71:72], v[61:62], v[69:70]
	v_mul_f64 v[69:70], v[49:50], v[49:50]
	v_fma_f64 v[63:64], v[49:50], v[63:64], s[0:1]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fma_f64 v[65:66], v[34:35], -v[46:47], v[65:66]
	v_cmp_class_f64_e64 s0, v[28:29], 0x1f8
	v_fma_f64 v[46:47], v[49:50], v[61:62], -v[46:47]
	v_fma_f64 v[49:50], v[69:70], v[63:64], v[65:66]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[46:47], v[71:72], s[52:53], v[46:47]
	v_add_f64 v[49:50], v[67:68], v[49:50]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[34:35], v[34:35], -v[46:47]
	v_and_b32_e32 v41, 1, v48
	v_cmp_eq_u32_e32 vcc_lo, 0, v41
	v_lshlrev_b32_e32 v28, 30, v48
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_xor_b32_e32 v28, v28, v29
	v_dual_cndmask_b32 v29, v50, v35 :: v_dual_and_b32 v28, 0x80000000, v28
	v_cndmask_b32_e32 v34, v49, v34, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v29, v29, v28
	v_cndmask_b32_e64 v28, 0, v34, s0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v29, 0x7ff80000, v29, s0
	v_mul_f64 v[28:29], v[30:31], v[28:29]
	v_mov_b32_e32 v30, 0
	v_mov_b32_e32 v31, 0x3ff00000
.LBB1_25:                               ;   Parent Loop BB1_15 Depth=1
                                        ;     Parent Loop BB1_16 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	v_mul_f64 v[46:47], v[30:31], 0
	v_cvt_f64_i32_e32 v[32:33], s6
	s_add_i32 s7, s6, -1
	s_and_b32 s7, s7, 1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[34:35], v[30:31], 0, -v[46:47]
	v_mul_f64 v[48:49], v[32:33], 0
	v_cmp_class_f64_e64 vcc_lo, v[46:47], 0x204
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[50:51], v[30:31], 0, v[34:35]
	v_fma_f64 v[34:35], v[32:33], 0, -v[48:49]
	v_add_f64 v[30:31], v[30:31], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[61:62], v[46:47], v[50:51]
	v_fma_f64 v[63:64], v[32:33], 0, v[34:35]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_cndmask_b32 v66, v62, v47 :: v_dual_cndmask_b32 v65, v61, v46
	v_add_f64 v[67:68], v[48:49], v[63:64]
	v_cmp_class_f64_e64 vcc_lo, v[48:49], 0x204
	v_add_f64 v[46:47], v[61:62], -v[46:47]
	s_delay_alu instid0(VALU_DEP_4)
	v_mul_f64 v[32:33], v[65:66], s[54:55]
	v_cmp_nlt_f64_e64 s0, 0x40900000, v[65:66]
	v_cmp_ngt_f64_e64 s1, 0xc090cc00, v[65:66]
	v_dual_cndmask_b32 v70, v68, v49 :: v_dual_cndmask_b32 v69, v67, v48
	v_add_co_u32 v79, vcc_lo, v24, s2
	v_rndne_f64_e32 v[71:72], v[32:33]
	v_add_co_ci_u32_e32 v80, vcc_lo, s3, v25, vcc_lo
	s_delay_alu instid0(VALU_DEP_4)
	v_mul_f64 v[32:33], v[69:70], s[54:55]
	v_add_co_u32 v87, vcc_lo, v26, s2
	flat_load_b64 v[81:82], v[79:80] offset:8
	v_add_co_ci_u32_e32 v88, vcc_lo, s3, v27, vcc_lo
	v_add_f64 v[46:47], v[50:51], -v[46:47]
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[65:66]|
	v_add_f64 v[48:49], v[67:68], -v[48:49]
	v_fma_f64 v[34:35], v[71:72], s[56:57], v[65:66]
	v_cvt_i32_f64_e32 v41, v[71:72]
	v_rndne_f64_e32 v[73:74], v[32:33]
	v_dual_cndmask_b32 v47, 0, v47 :: v_dual_cndmask_b32 v46, 0, v46
	s_and_b32 vcc_lo, s1, s0
	v_add_f64 v[48:49], v[63:64], -v[48:49]
	v_fma_f64 v[75:76], v[71:72], s[58:59], v[34:35]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[32:33], v[73:74], s[56:57], v[69:70]
	v_fma_f64 v[34:35], v[75:76], s[62:63], s[60:61]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[77:78], v[73:74], s[58:59], v[32:33]
	v_fma_f64 v[32:33], v[75:76], v[34:35], s[64:65]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[34:35], v[77:78], s[62:63], s[60:61]
	v_fma_f64 v[32:33], v[75:76], v[32:33], s[66:67]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[34:35], v[77:78], v[34:35], s[64:65]
	v_fma_f64 v[32:33], v[75:76], v[32:33], s[68:69]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[34:35], v[77:78], v[34:35], s[66:67]
	v_fma_f64 v[83:84], v[75:76], v[32:33], s[70:71]
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[85:86], v[77:78], v[34:35], s[68:69]
	scratch_load_b64 v[89:90], off, off offset:32
	s_clause 0x1
	flat_load_b64 v[91:92], v[87:88] offset:16
	flat_load_b128 v[32:35], v[87:88]
	v_fma_f64 v[83:84], v[75:76], v[83:84], s[48:49]
	v_fma_f64 v[85:86], v[77:78], v[85:86], s[70:71]
	s_waitcnt vmcnt(3) lgkmcnt(2)
	v_mul_f64 v[65:66], v[28:29], v[81:82]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[83:84], v[75:76], v[83:84], s[36:37]
	v_fma_f64 v[85:86], v[77:78], v[85:86], s[48:49]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[83:84], v[75:76], v[83:84], s[72:73]
	v_fma_f64 v[85:86], v[77:78], v[85:86], s[36:37]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[83:84], v[75:76], v[83:84], s[74:75]
	v_fma_f64 v[85:86], v[77:78], v[85:86], s[72:73]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[83:84], v[75:76], v[83:84], 1.0
	v_fma_f64 v[85:86], v[77:78], v[85:86], s[74:75]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[71:72], v[75:76], v[83:84], 1.0
	v_fma_f64 v[75:76], v[77:78], v[85:86], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_ldexp_f64 v[61:62], v[71:72], v41
	v_cvt_i32_f64_e32 v41, v[73:74]
	v_fma_f64 v[71:72], v[77:78], v[75:76], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v62, 0x7ff00000, v62, s0
	v_cmp_ngt_f64_e64 s0, 0xc090cc00, v[69:70]
	v_ldexp_f64 v[50:51], v[71:72], v41
	v_cndmask_b32_e32 v61, 0, v61, vcc_lo
	v_cmp_nlt_f64_e32 vcc_lo, 0x40900000, v[69:70]
	v_cndmask_b32_e64 v62, 0, v62, s1
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[32:33], v[91:92], v[32:33]
	v_fma_f64 v[34:35], v[89:90], v[34:35], v[65:66]
	v_cndmask_b32_e32 v41, 0x7ff00000, v51, vcc_lo
	s_and_b32 vcc_lo, s0, vcc_lo
	s_cmp_eq_u32 s7, 0
	v_cndmask_b32_e32 v50, 0, v50, vcc_lo
	v_fma_f64 v[46:47], v[61:62], v[46:47], v[61:62]
	v_cmp_class_f64_e64 s1, v[61:62], 0x204
	v_cndmask_b32_e64 v51, 0, v41, s0
	s_cselect_b32 s0, 0x3ff00000, s103
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cmp_class_f64_e64 vcc_lo, v[50:51], 0x204
	v_cndmask_b32_e64 v41, v47, v62, s1
	v_cndmask_b32_e64 v46, v46, v61, s1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_bfi_b32 v47, 0x7fffffff, v41, s0
	v_fma_f64 v[32:33], v[34:35], v[46:47], -v[32:33]
	v_add_co_u32 v34, s0, v39, s2
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v35, s0, s3, v58, s0
	v_cmp_neq_f64_e64 s0, 0x7ff00000, |v[69:70]|
	flat_store_b64 v[34:35], v[32:33]
	flat_load_b64 v[46:47], v[87:88] offset:8
	s_clause 0x1
	flat_load_b64 v[61:62], v[79:80] offset:16
	flat_load_b128 v[32:35], v[79:80]
	scratch_load_b64 v[65:66], off, off offset:32
	v_cndmask_b32_e64 v49, 0, v49, s0
	v_cndmask_b32_e64 v48, 0, v48, s0
	s_cselect_b32 s0, s103, 0x3ff00000
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[48:49], v[50:51], v[48:49], v[50:51]
	v_cndmask_b32_e32 v41, v49, v51, vcc_lo
	s_waitcnt vmcnt(3) lgkmcnt(2)
	v_mul_f64 v[46:47], v[28:29], v[46:47]
	s_waitcnt vmcnt(1) lgkmcnt(0)
	v_add_f64 v[32:33], v[61:62], v[32:33]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[34:35], v[65:66], v[34:35], -v[46:47]
	v_cndmask_b32_e32 v46, v48, v50, vcc_lo
	v_bfi_b32 v47, 0x7fffffff, v41, s0
	v_fma_f64 v[32:33], v[34:35], v[46:47], v[32:33]
	v_add_co_u32 v34, vcc_lo, v59, s2
	v_add_co_ci_u32_e32 v35, vcc_lo, s3, v60, vcc_lo
	s_add_u32 s2, s2, 8
	s_addc_u32 s3, s3, 0
	s_add_i32 s6, s6, 1
	s_cmpk_lg_i32 s2, 0x630
	flat_store_b64 v[34:35], v[32:33]
	s_cbranch_scc1 .LBB1_25
; %bb.26:                               ; %_ZN8RNHQS_ZB2daEdPdS0_S0_S0_.exit
                                        ;   in Loop: Header=BB1_16 Depth=2
	flat_load_b64 v[34:35], v[24:25]
	s_clause 0x1
	flat_load_b128 v[30:33], v[26:27]
	flat_load_b64 v[46:47], v[26:27] offset:1592
	scratch_load_b64 v[48:49], off, off offset:32
	s_mov_b32 s0, 0
	s_waitcnt vmcnt(3) lgkmcnt(2)
	v_mul_f64 v[34:35], v[28:29], v[34:35]
	s_waitcnt vmcnt(1) lgkmcnt(0)
	v_add_f64 v[32:33], v[32:33], v[46:47]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[30:31], v[48:49], v[30:31], v[34:35]
	v_add_f64 v[30:31], v[30:31], -v[32:33]
	flat_store_b64 v[18:19], v[30:31]
	flat_load_b64 v[34:35], v[26:27]
	s_clause 0x1
	flat_load_b128 v[30:33], v[24:25]
	flat_load_b64 v[46:47], v[24:25] offset:1592
	scratch_load_b64 v[48:49], off, off offset:32
	s_waitcnt vmcnt(3) lgkmcnt(2)
	v_mul_f64 v[34:35], v[28:29], v[34:35]
	s_waitcnt vmcnt(1) lgkmcnt(0)
	v_add_f64 v[32:33], v[32:33], v[46:47]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[30:31], v[48:49], v[30:31], -v[34:35]
	v_add_f64 v[30:31], v[32:33], -v[30:31]
	flat_store_b64 v[22:23], v[30:31]
	flat_load_b64 v[34:35], v[24:25] offset:1592
	s_clause 0x1
	flat_load_b64 v[46:47], v[26:27]
	flat_load_b128 v[30:33], v[26:27] offset:1584
	scratch_load_b64 v[48:49], off, off offset:32
	s_waitcnt vmcnt(3) lgkmcnt(2)
	v_mul_f64 v[34:35], v[28:29], v[34:35]
	s_waitcnt vmcnt(1) lgkmcnt(0)
	v_add_f64 v[30:31], v[46:47], v[30:31]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[32:33], v[48:49], v[32:33], v[34:35]
	v_add_f64 v[30:31], -v[32:33], -v[30:31]
	flat_store_b64 v[18:19], v[30:31] offset:1592
	flat_load_b64 v[34:35], v[26:27] offset:1592
	s_clause 0x1
	flat_load_b64 v[46:47], v[24:25]
	flat_load_b128 v[30:33], v[24:25] offset:1584
	s_waitcnt vmcnt(2) lgkmcnt(2)
	v_mul_f64 v[28:29], v[28:29], v[34:35]
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[30:31], v[46:47], v[30:31]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[28:29], v[48:49], v[32:33], -v[28:29]
	v_add_f64 v[28:29], v[30:31], v[28:29]
	flat_store_b64 v[22:23], v[28:29] offset:1592
.LBB1_27:                               ; %Flow256
                                        ;   in Loop: Header=BB1_16 Depth=2
	s_mov_b32 s1, 0
.LBB1_28:                               ; %Flow255
                                        ;   in Loop: Header=BB1_16 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_b32 vcc_lo, exec_lo, s1
	s_cbranch_vccz .LBB1_30
; %bb.29:                               ; %LeafBlock
                                        ;   in Loop: Header=BB1_16 Depth=2
	s_cmp_lg_u32 s4, 0
	s_mov_b32 s5, -1
	s_cselect_b32 s0, -1, 0
.LBB1_30:                               ; %Flow257
                                        ;   in Loop: Header=BB1_16 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s0
	s_cbranch_vccnz .LBB1_40
; %bb.31:                               ; %.preheader46.i.i
                                        ;   in Loop: Header=BB1_16 Depth=2
	s_lshl_b32 s2, s4, 3
	v_mov_b32_e32 v32, 0x700
	v_dual_mov_b32 v33, 0xc0 :: v_dual_add_nc_u32 v28, s2, v54
	v_add_nc_u32_e32 v30, s2, v57
	s_mov_b64 s[0:1], 0
	s_clause 0x1
	scratch_load_b64 v[28:29], v28, off
	scratch_load_b64 v[30:31], v30, off
.LBB1_32:                               ;   Parent Loop BB1_15 Depth=1
                                        ;     Parent Loop BB1_16 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	scratch_load_b64 v[34:35], off, off offset:24
	s_waitcnt vmcnt(2)
	v_add_co_u32 v46, vcc_lo, v28, s0
	v_add_co_ci_u32_e32 v47, vcc_lo, s1, v29, vcc_lo
	scratch_load_b64 v[48:49], v33, off
	flat_load_b64 v[46:47], v[46:47]
	v_add_nc_u32_e32 v33, 8, v33
	s_waitcnt vmcnt(2)
	v_mul_f64 v[34:35], v[34:35], 0.5
	s_waitcnt vmcnt(0) lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[34:35], v[34:35], v[46:47], v[48:49]
	v_add_co_u32 v46, vcc_lo, v24, s0
	v_add_co_ci_u32_e32 v47, vcc_lo, s1, v25, vcc_lo
	flat_store_b64 v[46:47], v[34:35]
	scratch_load_b64 v[34:35], off, off offset:24
	v_add_co_u32 v46, vcc_lo, v30, s0
	v_add_co_ci_u32_e32 v47, vcc_lo, s1, v31, vcc_lo
	scratch_load_b64 v[48:49], v32, off
	flat_load_b64 v[46:47], v[46:47]
	v_add_nc_u32_e32 v32, 8, v32
	s_waitcnt vmcnt(2)
	v_mul_f64 v[34:35], v[34:35], 0.5
	s_waitcnt vmcnt(0) lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[34:35], v[34:35], v[46:47], v[48:49]
	v_add_co_u32 v46, vcc_lo, v26, s0
	v_add_co_ci_u32_e32 v47, vcc_lo, s1, v27, vcc_lo
	s_add_u32 s0, s0, 8
	s_addc_u32 s1, s1, 0
	s_cmpk_lg_i32 s0, 0x640
	flat_store_b64 v[46:47], v[34:35]
	s_cbranch_scc1 .LBB1_32
; %bb.33:                               ;   in Loop: Header=BB1_16 Depth=2
	s_clause 0x2
	scratch_load_b128 v[61:64], off, off offset:56
	scratch_load_b128 v[28:31], off, off offset:24
	scratch_load_b128 v[32:35], off, off offset:40
	v_add_nc_u32_e32 v41, s2, v55
	v_add_nc_u32_e32 v46, s2, v56
	s_mov_b32 s1, exec_lo
	s_clause 0x1
	scratch_load_b64 v[48:49], v41, off
	scratch_load_b64 v[46:47], v46, off
	s_waitcnt vmcnt(4)
	v_mul_f64 v[50:51], v[61:62], s[10:11]
	s_waitcnt vmcnt(3)
	v_fma_f64 v[28:29], v[28:29], 0.5, v[63:64]
                                        ; implicit-def: $vgpr61
	s_waitcnt vmcnt(2)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[28:29], v[28:29], v[34:35], v[50:51]
                                        ; implicit-def: $vgpr34_vgpr35
                                        ; implicit-def: $vgpr50_vgpr51
	v_cmpx_ngt_f64_e64 0x41d00000, |v[28:29]|
	s_xor_b32 s1, exec_lo, s1
	s_cbranch_execz .LBB1_35
; %bb.34:                               ;   in Loop: Header=BB1_16 Depth=2
	v_ldexp_f64 v[34:35], |v[28:29]|, 0xffffff80
	v_cmp_le_f64_e64 vcc_lo, 0x7b000000, |v[28:29]|
	v_trig_preop_f64 v[50:51], |v[28:29]|, 0
	v_and_b32_e32 v41, 0x7fffffff, v29
	v_trig_preop_f64 v[61:62], |v[28:29]|, 1
	v_trig_preop_f64 v[71:72], |v[28:29]|, 2
	s_mov_b32 s8, s10
	s_mov_b32 s15, s13
	v_dual_cndmask_b32 v34, v28, v34 :: v_dual_cndmask_b32 v35, v41, v35
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[63:64], v[50:51], v[34:35]
	v_mul_f64 v[65:66], v[61:62], v[34:35]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[50:51], v[50:51], v[34:35], -v[63:64]
	v_fma_f64 v[61:62], v[61:62], v[34:35], -v[65:66]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[67:68], v[65:66], v[50:51]
	v_add_f64 v[69:70], v[67:68], -v[65:66]
	v_add_f64 v[75:76], v[63:64], v[67:68]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[73:74], v[67:68], -v[69:70]
	v_add_f64 v[50:51], v[50:51], -v[69:70]
	v_ldexp_f64 v[69:70], v[75:76], -2
	v_add_f64 v[63:64], v[75:76], -v[63:64]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[65:66], v[65:66], -v[73:74]
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[69:70]|
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[63:64], v[67:68], -v[63:64]
	v_add_f64 v[50:51], v[50:51], v[65:66]
	v_fract_f64_e32 v[65:66], v[69:70]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_cndmask_b32_e32 v66, 0, v66, vcc_lo
	v_mul_f64 v[77:78], v[71:72], v[34:35]
	v_cndmask_b32_e32 v65, 0, v65, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ldexp_f64 v[65:66], v[65:66], 2
	v_add_f64 v[73:74], v[77:78], v[61:62]
	v_fma_f64 v[34:35], v[71:72], v[34:35], -v[77:78]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[67:68], v[73:74], v[50:51]
	v_add_f64 v[69:70], v[63:64], v[67:68]
	v_add_f64 v[79:80], v[67:68], -v[73:74]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[75:76], v[69:70], v[65:66]
	v_add_f64 v[85:86], v[67:68], -v[79:80]
	v_add_f64 v[50:51], v[50:51], -v[79:80]
	v_add_f64 v[63:64], v[69:70], -v[63:64]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_cmp_gt_f64_e32 vcc_lo, 0, v[75:76]
	v_add_f64 v[75:76], v[73:74], -v[77:78]
	v_cndmask_b32_e64 v41, 0, 0x40100000, vcc_lo
	v_add_f64 v[83:84], v[73:74], -v[75:76]
	v_add_f64 v[61:62], v[61:62], -v[75:76]
	v_add_f64 v[73:74], v[73:74], -v[85:86]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[65:66], v[65:66], v[40:41]
	v_add_f64 v[75:76], v[77:78], -v[83:84]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[50:51], v[50:51], v[73:74]
	v_add_f64 v[81:82], v[69:70], v[65:66]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[61:62], v[61:62], v[75:76]
	v_cvt_i32_f64_e32 v41, v[81:82]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[50:51], v[61:62], v[50:51]
	v_add_f64 v[61:62], v[67:68], -v[63:64]
	v_cvt_f64_i32_e32 v[79:80], v41
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[34:35], v[34:35], v[50:51]
	v_add_f64 v[65:66], v[65:66], -v[79:80]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[34:35], v[61:62], v[34:35]
	v_add_f64 v[71:72], v[69:70], v[65:66]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[50:51], v[71:72], -v[65:66]
	v_cmp_le_f64_e32 vcc_lo, 0.5, v[71:72]
	v_add_f64 v[50:51], v[69:70], -v[50:51]
	v_add_co_ci_u32_e64 v61, s0, 0, v41, vcc_lo
	v_cndmask_b32_e64 v41, 0, 0x3ff00000, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[34:35], v[34:35], v[50:51]
	v_add_f64 v[50:51], v[71:72], -v[40:41]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[62:63], v[50:51], v[34:35]
	v_mul_f64 v[64:65], v[62:63], s[8:9]
	v_add_f64 v[50:51], v[62:63], -v[50:51]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[66:67], v[62:63], s[8:9], -v[64:65]
	v_add_f64 v[34:35], v[34:35], -v[50:51]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[50:51], v[62:63], s[14:15], v[66:67]
	v_fma_f64 v[50:51], v[34:35], s[8:9], v[50:51]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[34:35], v[64:65], v[50:51]
	v_add_f64 v[62:63], v[34:35], -v[64:65]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[50:51], v[50:51], -v[62:63]
.LBB1_35:                               ; %Flow253
                                        ;   in Loop: Header=BB1_16 Depth=2
	s_and_not1_saveexec_b32 s0, s1
	s_cbranch_execz .LBB1_37
; %bb.36:                               ;   in Loop: Header=BB1_16 Depth=2
	v_mul_f64 v[34:35], |v[28:29]|, s[16:17]
	s_mov_b32 s18, s10
	s_mov_b32 s12, s20
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rndne_f64_e32 v[61:62], v[34:35]
	v_fma_f64 v[34:35], v[61:62], s[18:19], |v[28:29]|
	v_mul_f64 v[50:51], v[61:62], s[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[65:66], v[61:62], s[20:21], v[34:35]
	v_add_f64 v[63:64], v[34:35], v[50:51]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[34:35], v[34:35], -v[63:64]
	v_add_f64 v[63:64], v[63:64], -v[65:66]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[34:35], v[34:35], v[50:51]
	v_fma_f64 v[50:51], v[61:62], s[12:13], v[50:51]
	v_add_f64 v[34:35], v[63:64], v[34:35]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[34:35], v[34:35], -v[50:51]
	v_fma_f64 v[50:51], v[61:62], s[22:23], v[34:35]
	v_cvt_i32_f64_e32 v61, v[61:62]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[34:35], v[65:66], v[50:51]
	v_add_f64 v[63:64], v[34:35], -v[65:66]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[50:51], v[50:51], -v[63:64]
.LBB1_37:                               ; %_ZL3sind.exit.i18
                                        ;   in Loop: Header=BB1_16 Depth=2
	s_or_b32 exec_lo, exec_lo, s0
	v_mul_f64 v[62:63], v[34:35], v[34:35]
	s_mov_b32 s51, s49
	s_delay_alu instid0(VALU_DEP_2)
	v_mul_f64 v[72:73], v[50:51], 0.5
	s_mov_b32 s0, s38
	s_mov_b32 s1, s37
	s_mov_b32 s52, s38
	v_mul_f64 v[30:31], v[30:31], v[32:33]
	s_mov_b64 s[2:3], 0
	s_mov_b32 s5, 2
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_fma_f64 v[64:65], v[62:63], s[42:43], s[40:41]
	v_fma_f64 v[66:67], v[62:63], s[26:27], s[24:25]
	v_mul_f64 v[68:69], v[62:63], 0.5
	v_mul_f64 v[74:75], v[34:35], -v[62:63]
	v_fma_f64 v[64:65], v[62:63], v[64:65], s[44:45]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[66:67], v[62:63], v[66:67], s[28:29]
	v_add_f64 v[70:71], -v[68:69], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[64:65], v[62:63], v[64:65], s[46:47]
	v_fma_f64 v[66:67], v[62:63], v[66:67], s[30:31]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[76:77], -v[70:71], 1.0
	v_fma_f64 v[64:65], v[62:63], v[64:65], s[50:51]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[66:67], v[62:63], v[66:67], s[34:35]
	v_add_f64 v[68:69], v[76:77], -v[68:69]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[64:65], v[74:75], v[64:65], v[72:73]
	v_mul_f64 v[72:73], v[62:63], v[62:63]
	v_fma_f64 v[66:67], v[62:63], v[66:67], s[0:1]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fma_f64 v[68:69], v[34:35], -v[50:51], v[68:69]
	v_cmp_class_f64_e64 s0, v[28:29], 0x1f8
	v_fma_f64 v[50:51], v[62:63], v[64:65], -v[50:51]
	v_fma_f64 v[62:63], v[72:73], v[66:67], v[68:69]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[50:51], v[74:75], s[52:53], v[50:51]
	v_add_f64 v[62:63], v[70:71], v[62:63]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[34:35], v[34:35], -v[50:51]
	v_and_b32_e32 v41, 1, v61
	v_cmp_eq_u32_e32 vcc_lo, 0, v41
	v_lshlrev_b32_e32 v28, 30, v61
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_xor_b32_e32 v28, v28, v29
	v_dual_cndmask_b32 v29, v63, v35 :: v_dual_and_b32 v28, 0x80000000, v28
	v_cndmask_b32_e32 v34, v62, v34, vcc_lo
	s_waitcnt vmcnt(1)
	v_add_co_u32 v32, vcc_lo, v48, 8
	v_add_co_ci_u32_e32 v33, vcc_lo, 0, v49, vcc_lo
	v_xor_b32_e32 v29, v29, v28
	v_cndmask_b32_e64 v28, 0, v34, s0
	s_waitcnt vmcnt(0)
	v_add_co_u32 v34, vcc_lo, v46, 8
	v_add_co_ci_u32_e32 v35, vcc_lo, 0, v47, vcc_lo
	v_cndmask_b32_e64 v29, 0x7ff80000, v29, s0
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f64 v[28:29], v[30:31], v[28:29]
	v_mov_b32_e32 v30, 0
	v_mov_b32_e32 v31, 0x3ff00000
.LBB1_38:                               ;   Parent Loop BB1_15 Depth=1
                                        ;     Parent Loop BB1_16 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	v_mul_f64 v[50:51], v[30:31], 0
	v_cvt_f64_i32_e32 v[61:62], s5
	s_add_i32 s6, s5, -1
	s_and_b32 s6, s6, 1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[63:64], v[30:31], 0, -v[50:51]
	v_mul_f64 v[65:66], v[61:62], 0
	v_cmp_class_f64_e64 vcc_lo, v[50:51], 0x204
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[67:68], v[30:31], 0, v[63:64]
	v_fma_f64 v[63:64], v[61:62], 0, -v[65:66]
	v_add_f64 v[30:31], v[30:31], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[69:70], v[50:51], v[67:68]
	v_fma_f64 v[71:72], v[61:62], 0, v[63:64]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_cndmask_b32 v74, v70, v51 :: v_dual_cndmask_b32 v73, v69, v50
	v_add_f64 v[75:76], v[65:66], v[71:72]
	v_cmp_class_f64_e64 vcc_lo, v[65:66], 0x204
	v_add_f64 v[50:51], v[69:70], -v[50:51]
	s_delay_alu instid0(VALU_DEP_4)
	v_mul_f64 v[61:62], v[73:74], s[54:55]
	v_cmp_nlt_f64_e64 s0, 0x40900000, v[73:74]
	v_cmp_ngt_f64_e64 s1, 0xc090cc00, v[73:74]
	v_dual_cndmask_b32 v78, v76, v66 :: v_dual_cndmask_b32 v77, v75, v65
	v_add_co_u32 v87, vcc_lo, v24, s2
	v_rndne_f64_e32 v[79:80], v[61:62]
	v_add_co_ci_u32_e32 v88, vcc_lo, s3, v25, vcc_lo
	s_delay_alu instid0(VALU_DEP_4)
	v_mul_f64 v[61:62], v[77:78], s[54:55]
	v_add_co_u32 v95, vcc_lo, v26, s2
	flat_load_b64 v[89:90], v[87:88] offset:8
	v_add_co_ci_u32_e32 v96, vcc_lo, s3, v27, vcc_lo
	v_add_f64 v[50:51], v[67:68], -v[50:51]
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[73:74]|
	v_add_f64 v[65:66], v[75:76], -v[65:66]
	v_fma_f64 v[63:64], v[79:80], s[56:57], v[73:74]
	v_cvt_i32_f64_e32 v41, v[79:80]
	v_rndne_f64_e32 v[81:82], v[61:62]
	v_dual_cndmask_b32 v51, 0, v51 :: v_dual_cndmask_b32 v50, 0, v50
	s_and_b32 vcc_lo, s1, s0
	v_add_f64 v[65:66], v[71:72], -v[65:66]
	v_fma_f64 v[83:84], v[79:80], s[58:59], v[63:64]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[61:62], v[81:82], s[56:57], v[77:78]
	v_fma_f64 v[63:64], v[83:84], s[62:63], s[60:61]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[85:86], v[81:82], s[58:59], v[61:62]
	v_fma_f64 v[61:62], v[83:84], v[63:64], s[64:65]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[63:64], v[85:86], s[62:63], s[60:61]
	v_fma_f64 v[61:62], v[83:84], v[61:62], s[66:67]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[63:64], v[85:86], v[63:64], s[64:65]
	v_fma_f64 v[61:62], v[83:84], v[61:62], s[68:69]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[63:64], v[85:86], v[63:64], s[66:67]
	v_fma_f64 v[91:92], v[83:84], v[61:62], s[70:71]
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[93:94], v[85:86], v[63:64], s[68:69]
	scratch_load_b64 v[97:98], off, off offset:32
	s_clause 0x1
	flat_load_b64 v[99:100], v[95:96] offset:16
	flat_load_b128 v[61:64], v[95:96]
	v_fma_f64 v[91:92], v[83:84], v[91:92], s[48:49]
	v_fma_f64 v[93:94], v[85:86], v[93:94], s[70:71]
	s_waitcnt vmcnt(3) lgkmcnt(2)
	v_mul_f64 v[73:74], v[28:29], v[89:90]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[91:92], v[83:84], v[91:92], s[36:37]
	v_fma_f64 v[93:94], v[85:86], v[93:94], s[48:49]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[91:92], v[83:84], v[91:92], s[72:73]
	v_fma_f64 v[93:94], v[85:86], v[93:94], s[36:37]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[91:92], v[83:84], v[91:92], s[74:75]
	v_fma_f64 v[93:94], v[85:86], v[93:94], s[72:73]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[91:92], v[83:84], v[91:92], 1.0
	v_fma_f64 v[93:94], v[85:86], v[93:94], s[74:75]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[79:80], v[83:84], v[91:92], 1.0
	v_fma_f64 v[83:84], v[85:86], v[93:94], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_ldexp_f64 v[69:70], v[79:80], v41
	v_cvt_i32_f64_e32 v41, v[81:82]
	v_fma_f64 v[79:80], v[85:86], v[83:84], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v70, 0x7ff00000, v70, s0
	v_cndmask_b32_e32 v69, 0, v69, vcc_lo
	v_cmp_nlt_f64_e32 vcc_lo, 0x40900000, v[77:78]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[67:68], v[79:80], v41
	v_cmp_ngt_f64_e64 s0, 0xc090cc00, v[77:78]
	v_cndmask_b32_e64 v70, 0, v70, s1
	v_fma_f64 v[50:51], v[69:70], v[50:51], v[69:70]
	v_cmp_class_f64_e64 s1, v[69:70], 0x204
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[61:62], v[99:100], v[61:62]
	v_fma_f64 v[63:64], v[97:98], v[63:64], v[73:74]
	v_cndmask_b32_e32 v41, 0x7ff00000, v68, vcc_lo
	s_and_b32 vcc_lo, s0, vcc_lo
	s_cmp_eq_u32 s6, 0
	v_cndmask_b32_e32 v67, 0, v67, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v68, 0, v41, s0
	s_cselect_b32 s0, 0x3ff00000, s103
	v_cndmask_b32_e64 v41, v51, v70, s1
	v_cndmask_b32_e64 v50, v50, v69, s1
	v_cmp_class_f64_e64 vcc_lo, v[67:68], 0x204
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_bfi_b32 v51, 0x7fffffff, v41, s0
	v_fma_f64 v[50:51], v[63:64], v[50:51], -v[61:62]
	v_add_co_u32 v61, s0, v32, s2
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v62, s0, s3, v33, s0
	v_cmp_neq_f64_e64 s0, 0x7ff00000, |v[77:78]|
	flat_store_b64 v[61:62], v[50:51]
	flat_load_b64 v[50:51], v[95:96] offset:8
	s_clause 0x1
	flat_load_b64 v[69:70], v[87:88] offset:16
	flat_load_b128 v[61:64], v[87:88]
	scratch_load_b64 v[73:74], off, off offset:32
	v_cndmask_b32_e64 v66, 0, v66, s0
	v_cndmask_b32_e64 v65, 0, v65, s0
	s_cselect_b32 s0, s103, 0x3ff00000
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[65:66], v[67:68], v[65:66], v[67:68]
	v_cndmask_b32_e32 v41, v66, v68, vcc_lo
	s_waitcnt vmcnt(3) lgkmcnt(2)
	v_mul_f64 v[50:51], v[28:29], v[50:51]
	s_waitcnt vmcnt(1) lgkmcnt(0)
	v_add_f64 v[61:62], v[69:70], v[61:62]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[50:51], v[73:74], v[63:64], -v[50:51]
	v_cndmask_b32_e32 v63, v65, v67, vcc_lo
	v_bfi_b32 v64, 0x7fffffff, v41, s0
	v_fma_f64 v[50:51], v[50:51], v[63:64], v[61:62]
	v_add_co_u32 v61, vcc_lo, v34, s2
	v_add_co_ci_u32_e32 v62, vcc_lo, s3, v35, vcc_lo
	s_add_u32 s2, s2, 8
	s_addc_u32 s3, s3, 0
	s_add_i32 s5, s5, 1
	s_cmpk_lg_i32 s2, 0x630
	flat_store_b64 v[61:62], v[50:51]
	s_cbranch_scc1 .LBB1_38
; %bb.39:                               ; %_ZN8RNHQS_ZB2daEdPdS0_S0_S0_.exit25
                                        ;   in Loop: Header=BB1_16 Depth=2
	flat_load_b64 v[34:35], v[24:25]
	s_clause 0x1
	flat_load_b128 v[30:33], v[26:27]
	flat_load_b64 v[50:51], v[26:27] offset:1592
	scratch_load_b64 v[61:62], off, off offset:32
	s_mov_b32 s5, 0
	s_waitcnt vmcnt(3) lgkmcnt(2)
	v_mul_f64 v[34:35], v[28:29], v[34:35]
	s_waitcnt vmcnt(1) lgkmcnt(0)
	v_add_f64 v[32:33], v[32:33], v[50:51]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[30:31], v[61:62], v[30:31], v[34:35]
	v_add_f64 v[30:31], v[30:31], -v[32:33]
	flat_store_b64 v[48:49], v[30:31]
	flat_load_b64 v[34:35], v[26:27]
	s_clause 0x1
	flat_load_b128 v[30:33], v[24:25]
	flat_load_b64 v[50:51], v[24:25] offset:1592
	scratch_load_b64 v[61:62], off, off offset:32
	s_waitcnt vmcnt(3) lgkmcnt(2)
	v_mul_f64 v[34:35], v[28:29], v[34:35]
	s_waitcnt vmcnt(1) lgkmcnt(0)
	v_add_f64 v[32:33], v[32:33], v[50:51]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[30:31], v[61:62], v[30:31], -v[34:35]
	v_add_f64 v[30:31], v[32:33], -v[30:31]
	flat_store_b64 v[46:47], v[30:31]
	flat_load_b64 v[34:35], v[24:25] offset:1592
	s_clause 0x1
	flat_load_b64 v[50:51], v[26:27]
	flat_load_b128 v[30:33], v[26:27] offset:1584
	scratch_load_b64 v[61:62], off, off offset:32
	s_waitcnt vmcnt(3) lgkmcnt(2)
	v_mul_f64 v[34:35], v[28:29], v[34:35]
	s_waitcnt vmcnt(1) lgkmcnt(0)
	v_add_f64 v[30:31], v[50:51], v[30:31]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[32:33], v[61:62], v[32:33], v[34:35]
	v_add_f64 v[30:31], -v[32:33], -v[30:31]
	flat_store_b64 v[48:49], v[30:31] offset:1592
	flat_load_b64 v[34:35], v[26:27] offset:1592
	s_clause 0x1
	flat_load_b64 v[48:49], v[24:25]
	flat_load_b128 v[30:33], v[24:25] offset:1584
	s_waitcnt vmcnt(2) lgkmcnt(2)
	v_mul_f64 v[28:29], v[28:29], v[34:35]
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[30:31], v[48:49], v[30:31]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[28:29], v[61:62], v[32:33], -v[28:29]
	v_add_f64 v[28:29], v[30:31], v[28:29]
	flat_store_b64 v[46:47], v[28:29] offset:1592
.LBB1_40:                               ; %Flow258
                                        ;   in Loop: Header=BB1_16 Depth=2
	s_and_b32 vcc_lo, exec_lo, s5
	s_cbranch_vccz .LBB1_48
; %bb.41:                               ;   in Loop: Header=BB1_16 Depth=2
	s_clause 0x2
	scratch_load_b128 v[32:35], off, off offset:48
	scratch_load_b64 v[46:47], off, off offset:64
	scratch_load_b128 v[28:31], off, off offset:32
	s_mov_b32 s1, exec_lo
                                        ; implicit-def: $vgpr48
	s_waitcnt vmcnt(2)
	v_mul_f64 v[34:35], v[34:35], s[10:11]
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[32:33], v[46:47], v[32:33], v[34:35]
                                        ; implicit-def: $vgpr34_vgpr35
                                        ; implicit-def: $vgpr46_vgpr47
	v_cmpx_ngt_f64_e64 0x41d00000, |v[32:33]|
	s_xor_b32 s1, exec_lo, s1
	s_cbranch_execz .LBB1_43
; %bb.42:                               ;   in Loop: Header=BB1_16 Depth=2
	v_ldexp_f64 v[34:35], |v[32:33]|, 0xffffff80
	v_cmp_le_f64_e64 vcc_lo, 0x7b000000, |v[32:33]|
	v_trig_preop_f64 v[46:47], |v[32:33]|, 0
	v_and_b32_e32 v41, 0x7fffffff, v33
	v_trig_preop_f64 v[48:49], |v[32:33]|, 1
	v_trig_preop_f64 v[67:68], |v[32:33]|, 2
	s_mov_b32 s8, s10
	s_mov_b32 s15, s13
	v_dual_cndmask_b32 v34, v32, v34 :: v_dual_cndmask_b32 v35, v41, v35
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[50:51], v[46:47], v[34:35]
	v_mul_f64 v[61:62], v[48:49], v[34:35]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[46:47], v[46:47], v[34:35], -v[50:51]
	v_fma_f64 v[48:49], v[48:49], v[34:35], -v[61:62]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[63:64], v[61:62], v[46:47]
	v_add_f64 v[65:66], v[63:64], -v[61:62]
	v_add_f64 v[71:72], v[50:51], v[63:64]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[69:70], v[63:64], -v[65:66]
	v_add_f64 v[46:47], v[46:47], -v[65:66]
	v_ldexp_f64 v[65:66], v[71:72], -2
	v_add_f64 v[50:51], v[71:72], -v[50:51]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[61:62], v[61:62], -v[69:70]
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[65:66]|
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[50:51], v[63:64], -v[50:51]
	v_add_f64 v[46:47], v[46:47], v[61:62]
	v_fract_f64_e32 v[61:62], v[65:66]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_cndmask_b32_e32 v62, 0, v62, vcc_lo
	v_mul_f64 v[73:74], v[67:68], v[34:35]
	v_cndmask_b32_e32 v61, 0, v61, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ldexp_f64 v[61:62], v[61:62], 2
	v_add_f64 v[69:70], v[73:74], v[48:49]
	v_fma_f64 v[34:35], v[67:68], v[34:35], -v[73:74]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[63:64], v[69:70], v[46:47]
	v_add_f64 v[65:66], v[50:51], v[63:64]
	v_add_f64 v[75:76], v[63:64], -v[69:70]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[71:72], v[65:66], v[61:62]
	v_add_f64 v[81:82], v[63:64], -v[75:76]
	v_add_f64 v[46:47], v[46:47], -v[75:76]
	v_add_f64 v[50:51], v[65:66], -v[50:51]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_cmp_gt_f64_e32 vcc_lo, 0, v[71:72]
	v_add_f64 v[71:72], v[69:70], -v[73:74]
	v_cndmask_b32_e64 v41, 0, 0x40100000, vcc_lo
	v_add_f64 v[79:80], v[69:70], -v[71:72]
	v_add_f64 v[48:49], v[48:49], -v[71:72]
	v_add_f64 v[69:70], v[69:70], -v[81:82]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[61:62], v[61:62], v[40:41]
	v_add_f64 v[71:72], v[73:74], -v[79:80]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[46:47], v[46:47], v[69:70]
	v_add_f64 v[77:78], v[65:66], v[61:62]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[48:49], v[48:49], v[71:72]
	v_cvt_i32_f64_e32 v41, v[77:78]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[46:47], v[48:49], v[46:47]
	v_add_f64 v[48:49], v[63:64], -v[50:51]
	v_cvt_f64_i32_e32 v[75:76], v41
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[34:35], v[34:35], v[46:47]
	v_add_f64 v[61:62], v[61:62], -v[75:76]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[34:35], v[48:49], v[34:35]
	v_add_f64 v[67:68], v[65:66], v[61:62]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[46:47], v[67:68], -v[61:62]
	v_cmp_le_f64_e32 vcc_lo, 0.5, v[67:68]
	v_add_f64 v[46:47], v[65:66], -v[46:47]
	v_add_co_ci_u32_e64 v48, s0, 0, v41, vcc_lo
	v_cndmask_b32_e64 v41, 0, 0x3ff00000, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[34:35], v[34:35], v[46:47]
	v_add_f64 v[46:47], v[67:68], -v[40:41]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[49:50], v[46:47], v[34:35]
	v_mul_f64 v[61:62], v[49:50], s[8:9]
	v_add_f64 v[46:47], v[49:50], -v[46:47]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[63:64], v[49:50], s[8:9], -v[61:62]
	v_add_f64 v[34:35], v[34:35], -v[46:47]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[46:47], v[49:50], s[14:15], v[63:64]
	v_fma_f64 v[46:47], v[34:35], s[8:9], v[46:47]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[34:35], v[61:62], v[46:47]
	v_add_f64 v[49:50], v[34:35], -v[61:62]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[46:47], v[46:47], -v[49:50]
.LBB1_43:                               ; %Flow254
                                        ;   in Loop: Header=BB1_16 Depth=2
	s_and_not1_saveexec_b32 s0, s1
	s_cbranch_execz .LBB1_45
; %bb.44:                               ;   in Loop: Header=BB1_16 Depth=2
	v_mul_f64 v[34:35], |v[32:33]|, s[16:17]
	s_mov_b32 s18, s10
	s_mov_b32 s12, s20
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rndne_f64_e32 v[48:49], v[34:35]
	v_fma_f64 v[34:35], v[48:49], s[18:19], |v[32:33]|
	v_mul_f64 v[46:47], v[48:49], s[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[61:62], v[48:49], s[20:21], v[34:35]
	v_add_f64 v[50:51], v[34:35], v[46:47]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[34:35], v[34:35], -v[50:51]
	v_add_f64 v[50:51], v[50:51], -v[61:62]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[34:35], v[34:35], v[46:47]
	v_fma_f64 v[46:47], v[48:49], s[12:13], v[46:47]
	v_add_f64 v[34:35], v[50:51], v[34:35]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[34:35], v[34:35], -v[46:47]
	v_fma_f64 v[46:47], v[48:49], s[22:23], v[34:35]
	v_cvt_i32_f64_e32 v48, v[48:49]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[34:35], v[61:62], v[46:47]
	v_add_f64 v[50:51], v[34:35], -v[61:62]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[46:47], v[46:47], -v[50:51]
.LBB1_45:                               ; %_ZL3sind.exit.i26
                                        ;   in Loop: Header=BB1_16 Depth=2
	s_or_b32 exec_lo, exec_lo, s0
	v_mul_f64 v[49:50], v[34:35], v[34:35]
	s_mov_b32 s51, s49
	s_delay_alu instid0(VALU_DEP_2)
	v_mul_f64 v[69:70], v[46:47], 0.5
	s_mov_b32 s0, s38
	s_mov_b32 s1, s37
	s_mov_b32 s52, s38
	s_waitcnt vmcnt(0)
	v_mul_f64 v[28:29], v[28:29], v[30:31]
	s_mov_b32 s5, 0
	s_mov_b32 s6, 2
	s_mov_b64 s[2:3], 8
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_fma_f64 v[61:62], v[49:50], s[42:43], s[40:41]
	v_fma_f64 v[63:64], v[49:50], s[26:27], s[24:25]
	v_mul_f64 v[65:66], v[49:50], 0.5
	v_mul_f64 v[71:72], v[34:35], -v[49:50]
	v_fma_f64 v[61:62], v[49:50], v[61:62], s[44:45]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[63:64], v[49:50], v[63:64], s[28:29]
	v_add_f64 v[67:68], -v[65:66], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[61:62], v[49:50], v[61:62], s[46:47]
	v_fma_f64 v[63:64], v[49:50], v[63:64], s[30:31]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[73:74], -v[67:68], 1.0
	v_fma_f64 v[61:62], v[49:50], v[61:62], s[50:51]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[63:64], v[49:50], v[63:64], s[34:35]
	v_add_f64 v[65:66], v[73:74], -v[65:66]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[61:62], v[71:72], v[61:62], v[69:70]
	v_mul_f64 v[69:70], v[49:50], v[49:50]
	v_fma_f64 v[63:64], v[49:50], v[63:64], s[0:1]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fma_f64 v[65:66], v[34:35], -v[46:47], v[65:66]
	v_cmp_class_f64_e64 s0, v[32:33], 0x1f8
	v_fma_f64 v[46:47], v[49:50], v[61:62], -v[46:47]
	v_fma_f64 v[49:50], v[69:70], v[63:64], v[65:66]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[46:47], v[71:72], s[52:53], v[46:47]
	v_add_f64 v[49:50], v[67:68], v[49:50]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[34:35], v[34:35], -v[46:47]
	v_and_b32_e32 v41, 1, v48
	v_cmp_eq_u32_e32 vcc_lo, 0, v41
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v31, v50, v35 :: v_dual_lshlrev_b32 v30, 30, v48
	v_xor_b32_e32 v30, v30, v33
	v_cndmask_b32_e32 v34, v49, v34, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_and_b32_e32 v30, 0x80000000, v30
	v_xor_b32_e32 v31, v31, v30
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v30, 0, v34, s0
	v_cndmask_b32_e64 v31, 0x7ff80000, v31, s0
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f64 v[28:29], v[28:29], v[30:31]
	v_mov_b32_e32 v30, 0
	v_mov_b32_e32 v31, 0x3ff00000
.LBB1_46:                               ;   Parent Loop BB1_15 Depth=1
                                        ;     Parent Loop BB1_16 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f64 v[46:47], v[30:31], 0
	v_cvt_f64_i32_e32 v[32:33], s6
	v_add_nc_u32_e64 v41, 0xc0, s5
	v_add_nc_u32_e64 v89, 0x700, s5
	s_add_i32 s0, s5, 0x700
	scratch_load_b64 v[85:86], off, off offset:32
	s_add_i32 s7, s6, -1
	s_add_i32 s8, s5, 0xc0
	s_and_b32 s7, s7, 1
	v_fma_f64 v[34:35], v[30:31], 0, -v[46:47]
	v_mul_f64 v[48:49], v[32:33], 0
	v_cmp_class_f64_e64 vcc_lo, v[46:47], 0x204
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[50:51], v[30:31], 0, v[34:35]
	v_fma_f64 v[34:35], v[32:33], 0, -v[48:49]
	v_add_f64 v[30:31], v[30:31], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[61:62], v[46:47], v[50:51]
	v_fma_f64 v[63:64], v[32:33], 0, v[34:35]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_cndmask_b32 v66, v62, v47 :: v_dual_cndmask_b32 v65, v61, v46
	v_add_f64 v[67:68], v[48:49], v[63:64]
	v_cmp_class_f64_e64 vcc_lo, v[48:49], 0x204
	v_add_f64 v[46:47], v[61:62], -v[46:47]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_mul_f64 v[32:33], v[65:66], s[54:55]
	v_cmp_ngt_f64_e64 s1, 0xc090cc00, v[65:66]
	v_dual_cndmask_b32 v70, v68, v49 :: v_dual_cndmask_b32 v69, v67, v48
	v_add_f64 v[46:47], v[50:51], -v[46:47]
	s_delay_alu instid0(VALU_DEP_4)
	v_rndne_f64_e32 v[71:72], v[32:33]
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[65:66]|
	v_add_nc_u32_e32 v79, 8, v41
	v_mul_f64 v[32:33], v[69:70], s[54:55]
	v_add_f64 v[48:49], v[67:68], -v[48:49]
	v_fma_f64 v[34:35], v[71:72], s[56:57], v[65:66]
	v_cndmask_b32_e32 v46, 0, v46, vcc_lo
	v_cvt_i32_f64_e32 v90, v[71:72]
	v_rndne_f64_e32 v[73:74], v[32:33]
	scratch_load_b64 v[79:80], v79, off
	v_cndmask_b32_e32 v47, 0, v47, vcc_lo
	v_add_f64 v[48:49], v[63:64], -v[48:49]
	v_fma_f64 v[75:76], v[71:72], s[58:59], v[34:35]
	v_fma_f64 v[32:33], v[73:74], s[56:57], v[69:70]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[34:35], v[75:76], s[62:63], s[60:61]
	v_fma_f64 v[77:78], v[73:74], s[58:59], v[32:33]
	v_cvt_i32_f64_e32 v73, v[73:74]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[32:33], v[75:76], v[34:35], s[64:65]
	v_fma_f64 v[34:35], v[77:78], s[62:63], s[60:61]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[32:33], v[75:76], v[32:33], s[66:67]
	v_fma_f64 v[34:35], v[77:78], v[34:35], s[64:65]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[32:33], v[75:76], v[32:33], s[68:69]
	v_fma_f64 v[34:35], v[77:78], v[34:35], s[66:67]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[81:82], v[75:76], v[32:33], s[70:71]
	v_fma_f64 v[83:84], v[77:78], v[34:35], s[68:69]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[81:82], v[75:76], v[81:82], s[48:49]
	v_fma_f64 v[83:84], v[77:78], v[83:84], s[70:71]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[81:82], v[75:76], v[81:82], s[36:37]
	v_fma_f64 v[83:84], v[77:78], v[83:84], s[48:49]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[81:82], v[75:76], v[81:82], s[72:73]
	v_fma_f64 v[83:84], v[77:78], v[83:84], s[36:37]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[81:82], v[75:76], v[81:82], s[74:75]
	v_fma_f64 v[83:84], v[77:78], v[83:84], s[72:73]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[81:82], v[75:76], v[81:82], 1.0
	v_fma_f64 v[83:84], v[77:78], v[83:84], s[74:75]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[71:72], v[75:76], v[81:82], 1.0
	v_fma_f64 v[75:76], v[77:78], v[83:84], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[61:62], v[71:72], v90
	v_fma_f64 v[71:72], v[77:78], v[75:76], 1.0
	s_delay_alu instid0(VALU_DEP_1)
	v_ldexp_f64 v[50:51], v[71:72], v73
	v_add_nc_u32_e32 v87, 16, v89
	s_clause 0x1
	scratch_load_b128 v[32:35], off, s0
	scratch_load_b64 v[87:88], v87, off
	v_cmp_nlt_f64_e64 s0, 0x40900000, v[65:66]
	s_waitcnt vmcnt(2)
	v_mul_f64 v[65:66], v[28:29], v[79:80]
	s_delay_alu instid0(VALU_DEP_2)
	v_cndmask_b32_e64 v62, 0x7ff00000, v62, s0
	s_and_b32 vcc_lo, s1, s0
	v_cmp_ngt_f64_e64 s0, 0xc090cc00, v[69:70]
	v_cndmask_b32_e32 v61, 0, v61, vcc_lo
	v_cmp_nlt_f64_e32 vcc_lo, 0x40900000, v[69:70]
	v_cndmask_b32_e64 v62, 0, v62, s1
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[46:47], v[61:62], v[46:47], v[61:62]
	v_cmp_class_f64_e64 s1, v[61:62], 0x204
	v_cndmask_b32_e32 v51, 0x7ff00000, v51, vcc_lo
	s_and_b32 vcc_lo, s0, vcc_lo
	s_cmp_eq_u32 s7, 0
	v_cndmask_b32_e32 v50, 0, v50, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v51, 0, v51, s0
	s_cselect_b32 s0, 0x3ff00000, s103
	v_cndmask_b32_e64 v47, v47, v62, s1
	v_cndmask_b32_e64 v46, v46, v61, s1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cmp_class_f64_e64 vcc_lo, v[50:51], 0x204
	v_bfi_b32 v47, 0x7fffffff, v47, s0
	s_waitcnt vmcnt(1)
	v_fma_f64 v[34:35], v[85:86], v[34:35], v[65:66]
	s_waitcnt vmcnt(0)
	v_add_f64 v[32:33], v[87:88], v[32:33]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[32:33], v[34:35], v[46:47], -v[32:33]
	v_add_co_u32 v34, s0, v42, s2
	v_add_co_ci_u32_e64 v35, s0, s3, v43, s0
	v_add_nc_u32_e32 v46, 8, v89
	v_cmp_neq_f64_e64 s0, 0x7ff00000, |v[69:70]|
	flat_store_b64 v[34:35], v[32:33]
	v_add_nc_u32_e32 v32, 16, v41
	scratch_load_b64 v[46:47], v46, off
	s_clause 0x1
	scratch_load_b64 v[61:62], v32, off
	scratch_load_b128 v[32:35], off, s8
	scratch_load_b64 v[65:66], off, off offset:32
	v_cndmask_b32_e64 v49, 0, v49, s0
	v_cndmask_b32_e64 v48, 0, v48, s0
	s_cselect_b32 s0, s103, 0x3ff00000
	s_add_i32 s5, s5, 8
	s_add_i32 s6, s6, 1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[48:49], v[50:51], v[48:49], v[50:51]
	v_cndmask_b32_e32 v41, v49, v51, vcc_lo
	s_waitcnt vmcnt(3)
	v_mul_f64 v[46:47], v[28:29], v[46:47]
	s_waitcnt vmcnt(1)
	v_add_f64 v[32:33], v[61:62], v[32:33]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[34:35], v[65:66], v[34:35], -v[46:47]
	v_cndmask_b32_e32 v46, v48, v50, vcc_lo
	v_bfi_b32 v47, 0x7fffffff, v41, s0
	v_fma_f64 v[32:33], v[34:35], v[46:47], v[32:33]
	v_add_co_u32 v34, vcc_lo, v44, s2
	v_add_co_ci_u32_e32 v35, vcc_lo, s3, v45, vcc_lo
	s_add_u32 s2, s2, 8
	s_addc_u32 s3, s3, 0
	s_cmpk_lg_i32 s5, 0x630
	flat_store_b64 v[34:35], v[32:33]
	s_cbranch_scc1 .LBB1_46
; %bb.47:                               ; %_ZN8RNHQS_ZB2daEdPdS0_S0_S0_.exit33
                                        ;   in Loop: Header=BB1_16 Depth=2
	s_clause 0x3
	scratch_load_b64 v[34:35], off, off offset:192
	scratch_load_b128 v[30:33], off, off offset:1792
	scratch_load_b64 v[46:47], off, off offset:3384
	scratch_load_b64 v[48:49], off, off offset:32
	s_waitcnt vmcnt(3)
	v_mul_f64 v[34:35], v[28:29], v[34:35]
	s_waitcnt vmcnt(1)
	v_add_f64 v[32:33], v[32:33], v[46:47]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[30:31], v[48:49], v[30:31], v[34:35]
	v_add_f64 v[30:31], v[30:31], -v[32:33]
	flat_store_b64 v[42:43], v[30:31]
	s_clause 0x3
	scratch_load_b64 v[34:35], off, off offset:1792
	scratch_load_b128 v[30:33], off, off offset:192
	scratch_load_b64 v[46:47], off, off offset:1784
	scratch_load_b64 v[48:49], off, off offset:32
	s_waitcnt vmcnt(3)
	v_mul_f64 v[34:35], v[28:29], v[34:35]
	s_waitcnt vmcnt(1)
	v_add_f64 v[32:33], v[32:33], v[46:47]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[30:31], v[48:49], v[30:31], -v[34:35]
	v_add_f64 v[30:31], v[32:33], -v[30:31]
	flat_store_b64 v[44:45], v[30:31]
	s_clause 0x4
	scratch_load_b128 v[30:33], off, off offset:1776
	scratch_load_b64 v[34:35], off, off offset:1792
	scratch_load_b128 v[46:49], off, off offset:3376
	scratch_load_b64 v[50:51], off, off offset:32
	scratch_load_b64 v[61:62], off, off offset:192
	s_waitcnt vmcnt(4)
	v_mul_f64 v[32:33], v[28:29], v[32:33]
	s_waitcnt vmcnt(2)
	v_add_f64 v[34:35], v[34:35], v[46:47]
	s_waitcnt vmcnt(0)
	v_add_f64 v[30:31], v[61:62], v[30:31]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[32:33], v[50:51], v[48:49], v[32:33]
	v_add_f64 v[32:33], -v[32:33], -v[34:35]
	flat_store_b64 v[42:43], v[32:33] offset:1592
	s_clause 0x1
	scratch_load_b64 v[32:33], off, off offset:3384
	scratch_load_b64 v[34:35], off, off offset:1784
	s_waitcnt vmcnt(1)
	v_mul_f64 v[28:29], v[28:29], v[32:33]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[28:29], v[50:51], v[34:35], -v[28:29]
	v_add_f64 v[28:29], v[30:31], v[28:29]
	flat_store_b64 v[44:45], v[28:29] offset:1592
.LBB1_48:                               ;   in Loop: Header=BB1_16 Depth=2
	s_add_i32 s4, s4, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s4, 4
	s_cbranch_scc0 .LBB1_16
; %bb.49:                               ; %.preheader.i.i
                                        ;   in Loop: Header=BB1_15 Depth=1
	scratch_load_b64 v[16:17], off, off offset:24
	s_mov_b64 s[0:1], 0
	s_waitcnt vmcnt(0)
	v_div_scale_f64 v[18:19], null, 0x40180000, 0x40180000, v[16:17]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[20:21], v[18:19]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[22:23], -v[18:19], v[20:21], 1.0
	v_fma_f64 v[20:21], v[20:21], v[22:23], v[20:21]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[22:23], -v[18:19], v[20:21], 1.0
	v_fma_f64 v[20:21], v[20:21], v[22:23], v[20:21]
	v_div_scale_f64 v[22:23], vcc_lo, v[16:17], 0x40180000, v[16:17]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[24:25], v[22:23], v[20:21]
	v_fma_f64 v[18:19], -v[18:19], v[24:25], v[22:23]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[18:19], v[18:19], v[20:21], v[24:25]
	v_div_fixup_f64 v[16:17], v[18:19], 0x40180000, v[16:17]
	v_mov_b32_e32 v18, 0x700
	v_mov_b32_e32 v19, 0xc0
.LBB1_50:                               ;   Parent Loop BB1_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	v_add_co_u32 v20, vcc_lo, v12, s0
	v_add_co_ci_u32_e32 v21, vcc_lo, s1, v13, vcc_lo
	v_add_co_u32 v22, vcc_lo, v14, s0
	v_add_co_ci_u32_e32 v23, vcc_lo, s1, v15, vcc_lo
	v_add_co_u32 v24, vcc_lo, v0, s0
	flat_load_b64 v[20:21], v[20:21]
	flat_load_b64 v[22:23], v[22:23]
	v_add_co_ci_u32_e32 v25, vcc_lo, s1, v1, vcc_lo
	v_add_co_u32 v26, vcc_lo, v2, s0
	v_add_co_ci_u32_e32 v27, vcc_lo, s1, v3, vcc_lo
	flat_load_b64 v[24:25], v[24:25]
	flat_load_b64 v[26:27], v[26:27]
	scratch_load_b64 v[28:29], v19, off
	s_waitcnt vmcnt(3) lgkmcnt(2)
	v_fma_f64 v[20:21], v[22:23], 2.0, v[20:21]
	v_add_co_u32 v22, vcc_lo, v4, s0
	v_add_co_ci_u32_e32 v23, vcc_lo, s1, v5, vcc_lo
	s_waitcnt vmcnt(2) lgkmcnt(1)
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_fma_f64 v[20:21], v[24:25], 2.0, v[20:21]
	v_add_co_u32 v24, vcc_lo, v6, s0
	v_add_co_ci_u32_e32 v25, vcc_lo, s1, v7, vcc_lo
	s_waitcnt vmcnt(1) lgkmcnt(0)
	v_add_f64 v[20:21], v[26:27], v[20:21]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[20:21], v[16:17], v[20:21], v[28:29]
	scratch_store_b64 v19, v[20:21], off
	flat_load_b64 v[20:21], v[22:23]
	flat_load_b64 v[22:23], v[24:25]
	v_add_co_u32 v24, vcc_lo, v8, s0
	v_add_co_ci_u32_e32 v25, vcc_lo, s1, v9, vcc_lo
	v_add_co_u32 v26, vcc_lo, v10, s0
	v_add_co_ci_u32_e32 v27, vcc_lo, s1, v11, vcc_lo
	flat_load_b64 v[24:25], v[24:25]
	flat_load_b64 v[26:27], v[26:27]
	scratch_load_b64 v[28:29], v18, off
	v_add_nc_u32_e32 v19, 8, v19
	s_add_u32 s0, s0, 8
	s_addc_u32 s1, s1, 0
	s_cmpk_lg_i32 s0, 0x640
	s_waitcnt vmcnt(3) lgkmcnt(2)
	v_fma_f64 v[20:21], v[22:23], 2.0, v[20:21]
	s_waitcnt vmcnt(2) lgkmcnt(1)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[20:21], v[24:25], 2.0, v[20:21]
	s_waitcnt vmcnt(1) lgkmcnt(0)
	v_add_f64 v[20:21], v[26:27], v[20:21]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[20:21], v[16:17], v[20:21], v[28:29]
	scratch_store_b64 v18, v[20:21], off
	v_add_nc_u32_e32 v18, 8, v18
	s_cbranch_scc1 .LBB1_50
; %bb.51:                               ; %_ZN8RNHQS_ZB7onestepEv.exit.i
                                        ;   in Loop: Header=BB1_15 Depth=1
	v_dual_mov_b32 v16, 0 :: v_dual_mov_b32 v41, v40
	v_dual_mov_b32 v17, 0 :: v_dual_mov_b32 v18, v36
	v_mov_b32_e32 v19, v37
	s_mov_b32 s12, 0
	scratch_store_b64 off, v[40:41], off offset:184
	v_dual_mov_b32 v21, v17 :: v_dual_mov_b32 v20, v16
.LBB1_52:                               ;   Parent Loop BB1_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_add_i32 s0, s12, 0xc0
	s_add_i32 s1, s12, 0x700
	scratch_load_b64 v[24:25], off, s0
	scratch_load_b64 v[22:23], off, s1
	s_mov_b32 s96, s56
	s_mov_b32 s98, s58
	s_mov_b32 s100, s38
	s_add_i32 s12, s12, 8
	s_waitcnt vmcnt(1)
	v_frexp_mant_f64_e64 v[26:27], |v[24:25]|
	s_waitcnt vmcnt(0)
	v_frexp_mant_f64_e64 v[28:29], |v[22:23]|
	v_frexp_exp_i32_f64_e32 v34, v[24:25]
	v_frexp_exp_i32_f64_e32 v35, v[22:23]
	v_cmp_eq_f64_e32 vcc_lo, 1.0, v[24:25]
	v_cmp_gt_f64_e64 s0, s[38:39], v[26:27]
	v_cmp_gt_f64_e64 s1, s[38:39], v[28:29]
	v_cndmask_b32_e64 v41, 2.0, 0x3ff00000, vcc_lo
	v_cmp_eq_f64_e32 vcc_lo, 1.0, v[22:23]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_trunc_f64_e32 v[30:31], v[40:41]
	v_mul_f64 v[32:33], v[40:41], 0.5
	v_cndmask_b32_e64 v39, 0, 1, s0
	v_cndmask_b32_e64 v42, 0, 1, s1
	v_ldexp_f64 v[26:27], v[26:27], v39
	v_subrev_co_ci_u32_e64 v39, s0, 0, v34, s0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_ldexp_f64 v[28:29], v[28:29], v42
	v_subrev_co_ci_u32_e64 v46, s0, 0, v35, s1
	v_cvt_f64_i32_e32 v[42:43], v39
	v_cmp_eq_f64_e64 s0, v[30:31], v[40:41]
	s_delay_alu instid0(VALU_DEP_3)
	v_cvt_f64_i32_e32 v[46:47], v46
	v_add_f64 v[34:35], v[26:27], 1.0
	v_add_f64 v[48:49], v[26:27], -1.0
	v_add_f64 v[44:45], v[28:29], 1.0
	v_add_f64 v[50:51], v[28:29], -1.0
	v_mul_f64 v[62:63], v[42:43], s[96:97]
	v_mul_f64 v[66:67], v[46:47], s[96:97]
	v_rcp_f64_e32 v[60:61], v[34:35]
	v_add_f64 v[58:59], v[34:35], -1.0
	v_rcp_f64_e32 v[68:69], v[44:45]
	v_add_f64 v[64:65], v[44:45], -1.0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_f64 v[26:27], v[26:27], -v[58:59]
	v_fma_f64 v[58:59], v[42:43], s[96:97], -v[62:63]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[70:71], -v[34:35], v[60:61], 1.0
	v_add_f64 v[28:29], v[28:29], -v[64:65]
	v_fma_f64 v[64:65], v[46:47], s[96:97], -v[66:67]
	v_fma_f64 v[72:73], -v[44:45], v[68:69], 1.0
	v_fma_f64 v[42:43], v[42:43], s[98:99], v[58:59]
	v_fma_f64 v[58:59], v[70:71], v[60:61], v[60:61]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[46:47], v[46:47], s[98:99], v[64:65]
	v_fma_f64 v[60:61], v[72:73], v[68:69], v[68:69]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[64:65], v[62:63], v[42:43]
	v_fma_f64 v[70:71], -v[34:35], v[58:59], 1.0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[68:69], v[66:67], v[46:47]
	v_fma_f64 v[72:73], -v[44:45], v[60:61], 1.0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[62:63], v[64:65], -v[62:63]
	v_fma_f64 v[58:59], v[70:71], v[58:59], v[58:59]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[66:67], v[68:69], -v[66:67]
	v_fma_f64 v[60:61], v[72:73], v[60:61], v[60:61]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[42:43], v[42:43], -v[62:63]
	v_mul_f64 v[62:63], v[48:49], v[58:59]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[46:47], v[46:47], -v[66:67]
	v_mul_f64 v[66:67], v[50:51], v[60:61]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[70:71], v[34:35], v[62:63]
	v_mul_f64 v[72:73], v[44:45], v[66:67]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[34:35], v[62:63], v[34:35], -v[70:71]
	v_fma_f64 v[44:45], v[66:67], v[44:45], -v[72:73]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[26:27], v[62:63], v[26:27], v[34:35]
	v_fma_f64 v[28:29], v[66:67], v[28:29], v[44:45]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[34:35], v[70:71], v[26:27]
	v_add_f64 v[44:45], v[72:73], v[28:29]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[74:75], v[48:49], -v[34:35]
	v_add_f64 v[70:71], v[34:35], -v[70:71]
	v_add_f64 v[76:77], v[50:51], -v[44:45]
	v_add_f64 v[72:73], v[44:45], -v[72:73]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[48:49], v[48:49], -v[74:75]
	v_add_f64 v[26:27], v[70:71], -v[26:27]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[50:51], v[50:51], -v[76:77]
	v_add_f64 v[28:29], v[72:73], -v[28:29]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[34:35], v[48:49], -v[34:35]
	v_add_f64 v[44:45], v[50:51], -v[44:45]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[26:27], v[26:27], v[34:35]
	v_add_f64 v[28:29], v[28:29], v[44:45]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[26:27], v[74:75], v[26:27]
	v_add_f64 v[28:29], v[76:77], v[28:29]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[26:27], v[58:59], v[26:27]
	v_mul_f64 v[28:29], v[60:61], v[28:29]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[34:35], v[62:63], v[26:27]
	v_add_f64 v[44:45], v[66:67], v[28:29]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_add_f64 v[48:49], v[34:35], -v[62:63]
	v_mul_f64 v[50:51], v[34:35], v[34:35]
	v_ldexp_f64 v[58:59], v[34:35], 1
	v_add_f64 v[60:61], v[44:45], -v[66:67]
	v_mul_f64 v[62:63], v[44:45], v[44:45]
	v_ldexp_f64 v[66:67], v[44:45], 1
	v_add_f64 v[26:27], v[26:27], -v[48:49]
	v_fma_f64 v[48:49], v[34:35], v[34:35], -v[50:51]
	v_add_f64 v[28:29], v[28:29], -v[60:61]
	v_fma_f64 v[60:61], v[44:45], v[44:45], -v[62:63]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_f64 v[70:71], v[26:27], v[26:27]
	v_ldexp_f64 v[74:75], v[26:27], 1
	v_add_f64 v[72:73], v[28:29], v[28:29]
	v_ldexp_f64 v[76:77], v[28:29], 1
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[48:49], v[34:35], v[70:71], v[48:49]
	v_fma_f64 v[60:61], v[44:45], v[72:73], v[60:61]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[70:71], v[50:51], v[48:49]
	v_add_f64 v[72:73], v[62:63], v[60:61]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_fma_f64 v[78:79], v[70:71], s[78:79], s[76:77]
	v_add_f64 v[50:51], v[70:71], -v[50:51]
	v_mul_f64 v[80:81], v[34:35], v[70:71]
	v_add_f64 v[62:63], v[72:73], -v[62:63]
	v_fma_f64 v[82:83], v[72:73], s[78:79], s[76:77]
	v_mul_f64 v[84:85], v[44:45], v[72:73]
	v_fma_f64 v[78:79], v[70:71], v[78:79], s[80:81]
	v_add_f64 v[48:49], v[48:49], -v[50:51]
	v_fma_f64 v[50:51], v[70:71], v[34:35], -v[80:81]
	v_add_f64 v[60:61], v[60:61], -v[62:63]
	v_fma_f64 v[62:63], v[72:73], v[82:83], s[80:81]
	v_fma_f64 v[82:83], v[72:73], v[44:45], -v[84:85]
	v_fma_f64 v[78:79], v[70:71], v[78:79], s[82:83]
	v_fma_f64 v[26:27], v[70:71], v[26:27], v[50:51]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[50:51], v[72:73], v[62:63], s[82:83]
	v_fma_f64 v[28:29], v[72:73], v[28:29], v[82:83]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[62:63], v[70:71], v[78:79], s[84:85]
	v_fma_f64 v[26:27], v[48:49], v[34:35], v[26:27]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[34:35], v[72:73], v[50:51], s[84:85]
	v_fma_f64 v[28:29], v[60:61], v[44:45], v[28:29]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[44:45], v[70:71], v[62:63], s[86:87]
	v_add_f64 v[50:51], v[80:81], v[26:27]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[34:35], v[72:73], v[34:35], s[86:87]
	v_add_f64 v[62:63], v[84:85], v[28:29]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[44:45], v[70:71], v[44:45], s[88:89]
	v_add_f64 v[78:79], v[50:51], -v[80:81]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[34:35], v[72:73], v[34:35], s[88:89]
	v_add_f64 v[80:81], v[62:63], -v[84:85]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[44:45], v[70:71], v[44:45], s[90:91]
	v_add_f64 v[26:27], v[26:27], -v[78:79]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[34:35], v[72:73], v[34:35], s[90:91]
	v_add_f64 v[28:29], v[28:29], -v[80:81]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[44:45], v[70:71], v[44:45], s[92:93]
	v_fma_f64 v[34:35], v[72:73], v[34:35], s[92:93]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[78:79], v[70:71], v[44:45]
	v_mul_f64 v[80:81], v[72:73], v[34:35]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[70:71], v[70:71], v[44:45], -v[78:79]
	v_fma_f64 v[72:73], v[72:73], v[34:35], -v[80:81]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[44:45], v[48:49], v[44:45], v[70:71]
	v_fma_f64 v[34:35], v[60:61], v[34:35], v[72:73]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[48:49], v[78:79], v[44:45]
	v_add_f64 v[60:61], v[80:81], v[34:35]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[70:71], v[48:49], s[38:39]
	v_add_f64 v[72:73], v[48:49], -v[78:79]
	v_add_f64 v[78:79], v[60:61], s[38:39]
	v_add_f64 v[80:81], v[60:61], -v[80:81]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[82:83], v[70:71], s[100:101]
	v_add_f64 v[44:45], v[44:45], -v[72:73]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[72:73], v[78:79], s[100:101]
	v_add_f64 v[34:35], v[34:35], -v[80:81]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[48:49], v[48:49], -v[82:83]
	v_add_f64 v[44:45], v[44:45], s[94:95]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[60:61], v[60:61], -v[72:73]
	v_add_f64 v[34:35], v[34:35], s[94:95]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[44:45], v[44:45], v[48:49]
	v_add_f64 v[34:35], v[34:35], v[60:61]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[48:49], v[70:71], v[44:45]
	v_add_f64 v[60:61], v[78:79], v[34:35]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[70:71], v[70:71], -v[48:49]
	v_mul_f64 v[72:73], v[50:51], v[48:49]
	v_add_f64 v[78:79], v[78:79], -v[60:61]
	v_mul_f64 v[80:81], v[62:63], v[60:61]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[44:45], v[44:45], v[70:71]
	v_fma_f64 v[70:71], v[50:51], v[48:49], -v[72:73]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[34:35], v[34:35], v[78:79]
	v_fma_f64 v[78:79], v[62:63], v[60:61], -v[80:81]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[44:45], v[50:51], v[44:45], v[70:71]
	v_fma_f64 v[34:35], v[62:63], v[34:35], v[78:79]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[26:27], v[26:27], v[48:49], v[44:45]
	v_fma_f64 v[28:29], v[28:29], v[60:61], v[34:35]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[34:35], v[72:73], v[26:27]
	v_add_f64 v[44:45], v[80:81], v[28:29]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[48:49], v[58:59], v[34:35]
	v_add_f64 v[50:51], v[34:35], -v[72:73]
	v_add_f64 v[60:61], v[66:67], v[44:45]
	v_add_f64 v[62:63], v[44:45], -v[80:81]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[58:59], v[48:49], -v[58:59]
	v_add_f64 v[26:27], v[26:27], -v[50:51]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[50:51], v[60:61], -v[66:67]
	v_add_f64 v[28:29], v[28:29], -v[62:63]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[34:35], v[34:35], -v[58:59]
	v_add_f64 v[26:27], v[74:75], v[26:27]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[44:45], v[44:45], -v[50:51]
	v_add_f64 v[28:29], v[76:77], v[28:29]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[26:27], v[26:27], v[34:35]
	v_add_f64 v[28:29], v[28:29], v[44:45]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[34:35], v[48:49], v[26:27]
	v_add_f64 v[44:45], v[60:61], v[28:29]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[50:51], v[64:65], v[34:35]
	v_add_f64 v[48:49], v[34:35], -v[48:49]
	v_add_f64 v[58:59], v[44:45], -v[60:61]
	v_add_f64 v[60:61], v[68:69], v[44:45]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[62:63], v[50:51], -v[64:65]
	v_add_f64 v[26:27], v[26:27], -v[48:49]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[28:29], v[28:29], -v[58:59]
	v_add_f64 v[48:49], v[60:61], -v[68:69]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_add_f64 v[58:59], v[50:51], -v[62:63]
	v_add_f64 v[34:35], v[34:35], -v[62:63]
	v_add_f64 v[62:63], v[42:43], v[26:27]
	v_add_f64 v[44:45], v[44:45], -v[48:49]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_add_f64 v[58:59], v[64:65], -v[58:59]
	v_add_f64 v[64:65], v[60:61], -v[48:49]
	v_add_f64 v[48:49], v[46:47], v[28:29]
	v_add_f64 v[34:35], v[34:35], v[58:59]
	v_add_f64 v[58:59], v[62:63], -v[42:43]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[64:65], v[68:69], -v[64:65]
	v_add_f64 v[66:67], v[48:49], -v[46:47]
	v_trunc_f64_e32 v[68:69], v[32:33]
	v_add_f64 v[34:35], v[62:63], v[34:35]
	v_add_f64 v[62:63], v[62:63], -v[58:59]
	v_add_f64 v[44:45], v[44:45], v[64:65]
	v_add_f64 v[26:27], v[26:27], -v[58:59]
	v_add_f64 v[58:59], v[48:49], -v[66:67]
	v_add_f64 v[28:29], v[28:29], -v[66:67]
	v_cmp_neq_f64_e64 s6, v[68:69], v[32:33]
	v_add_f64 v[64:65], v[50:51], v[34:35]
	v_add_f64 v[42:43], v[42:43], -v[62:63]
	v_add_f64 v[44:45], v[48:49], v[44:45]
	v_add_f64 v[46:47], v[46:47], -v[58:59]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[50:51], v[64:65], -v[50:51]
	v_add_f64 v[26:27], v[26:27], v[42:43]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[42:43], v[60:61], v[44:45]
	v_add_f64 v[28:29], v[28:29], v[46:47]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[34:35], v[34:35], -v[50:51]
	v_add_f64 v[26:27], v[26:27], v[34:35]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[34:35], v[42:43], -v[60:61]
	v_add_f64 v[46:47], v[64:65], v[26:27]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[34:35], v[44:45], -v[34:35]
	v_add_f64 v[44:45], v[46:47], -v[64:65]
	v_mul_f64 v[48:49], v[40:41], v[46:47]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[28:29], v[28:29], v[34:35]
	v_add_f64 v[26:27], v[26:27], -v[44:45]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[34:35], v[40:41], v[46:47], -v[48:49]
	v_add_f64 v[44:45], v[42:43], v[28:29]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[26:27], v[40:41], v[26:27], v[34:35]
	v_cndmask_b32_e64 v41, 2.0, 0x3ff00000, vcc_lo
	v_add_f64 v[30:31], v[44:45], -v[42:43]
	v_cmp_class_f64_e64 vcc_lo, v[48:49], 0x204
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[34:35], v[40:41], v[44:45]
	v_add_f64 v[28:29], v[28:29], -v[30:31]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[30:31], v[40:41], v[44:45], -v[34:35]
	v_cmp_class_f64_e64 s1, v[34:35], 0x204
	v_fma_f64 v[28:29], v[40:41], v[28:29], v[30:31]
	v_add_f64 v[30:31], v[48:49], v[26:27]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[42:43], v[34:35], v[28:29]
	v_dual_cndmask_b32 v45, v31, v49 :: v_dual_cndmask_b32 v44, v30, v48
	v_add_f64 v[30:31], v[30:31], -v[48:49]
	v_trunc_f64_e32 v[48:49], v[40:41]
	s_delay_alu instid0(VALU_DEP_3)
	v_mul_f64 v[46:47], v[44:45], s[54:55]
	v_cmp_nlt_f64_e64 s2, 0x40900000, v[44:45]
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[44:45]|
	v_cmp_ngt_f64_e64 s3, 0xc090cc00, v[44:45]
	v_cndmask_b32_e64 v51, v43, v35, s1
	v_cndmask_b32_e64 v50, v42, v34, s1
	v_add_f64 v[34:35], v[42:43], -v[34:35]
	v_add_f64 v[26:27], v[26:27], -v[30:31]
	v_cmp_eq_f64_e64 s7, v[48:49], v[40:41]
	s_delay_alu instid0(VALU_DEP_4)
	v_mul_f64 v[58:59], v[50:51], s[54:55]
	v_rndne_f64_e32 v[46:47], v[46:47]
	v_cmp_nlt_f64_e64 s4, 0x40900000, v[50:51]
	v_cmp_neq_f64_e64 s1, 0x7ff00000, |v[50:51]|
	v_cmp_ngt_f64_e64 s5, 0xc090cc00, v[50:51]
	v_add_f64 v[28:29], v[28:29], -v[34:35]
	v_dual_cndmask_b32 v27, 0, v27 :: v_dual_cndmask_b32 v26, 0, v26
	s_and_b32 vcc_lo, s3, s2
	v_rndne_f64_e32 v[58:59], v[58:59]
	v_fma_f64 v[60:61], v[46:47], s[56:57], v[44:45]
	v_cvt_i32_f64_e32 v39, v[46:47]
	v_cndmask_b32_e64 v29, 0, v29, s1
	v_cndmask_b32_e64 v28, 0, v28, s1
	s_and_b32 s1, s5, s4
	v_fma_f64 v[62:63], v[58:59], s[56:57], v[50:51]
	v_fma_f64 v[60:61], v[46:47], s[58:59], v[60:61]
	v_cvt_i32_f64_e32 v70, v[58:59]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[62:63], v[58:59], s[58:59], v[62:63]
	v_fma_f64 v[64:65], v[60:61], s[62:63], s[60:61]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[66:67], v[62:63], s[62:63], s[60:61]
	v_fma_f64 v[64:65], v[60:61], v[64:65], s[64:65]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[66:67], v[62:63], v[66:67], s[64:65]
	v_fma_f64 v[64:65], v[60:61], v[64:65], s[66:67]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[66:67], v[62:63], v[66:67], s[66:67]
	v_fma_f64 v[64:65], v[60:61], v[64:65], s[68:69]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[66:67], v[62:63], v[66:67], s[68:69]
	v_fma_f64 v[64:65], v[60:61], v[64:65], s[70:71]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[66:67], v[62:63], v[66:67], s[70:71]
	v_fma_f64 v[64:65], v[60:61], v[64:65], s[48:49]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[66:67], v[62:63], v[66:67], s[48:49]
	v_fma_f64 v[64:65], v[60:61], v[64:65], s[36:37]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[66:67], v[62:63], v[66:67], s[36:37]
	v_fma_f64 v[64:65], v[60:61], v[64:65], s[72:73]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[66:67], v[62:63], v[66:67], s[72:73]
	v_fma_f64 v[64:65], v[60:61], v[64:65], s[74:75]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[66:67], v[62:63], v[66:67], s[74:75]
	v_fma_f64 v[64:65], v[60:61], v[64:65], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[66:67], v[62:63], v[66:67], 1.0
	v_fma_f64 v[46:47], v[60:61], v[64:65], 1.0
	v_mul_f64 v[60:61], v[40:41], 0.5
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[58:59], v[62:63], v[66:67], 1.0
	v_ldexp_f64 v[42:43], v[46:47], v39
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_trunc_f64_e32 v[30:31], v[60:61]
	v_ldexp_f64 v[46:47], v[58:59], v70
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v34, 0x7ff00000, v43, s2
	v_cmp_neq_f64_e64 s8, v[30:31], v[60:61]
	v_cmp_eq_f64_e64 s2, 0, v[24:25]
	s_delay_alu instid0(VALU_DEP_3)
	v_cndmask_b32_e64 v31, 0, v34, s3
	v_cndmask_b32_e32 v30, 0, v42, vcc_lo
	s_and_b32 s3, s0, s6
	v_cmp_class_f64_e64 s6, v[22:23], 0x204
	v_cndmask_b32_e64 v34, 0x3ff00000, v25, s3
	v_cndmask_b32_e64 v39, 0, v25, s3
	v_fma_f64 v[26:27], v[30:31], v[26:27], v[30:31]
	v_cmp_class_f64_e64 vcc_lo, v[30:31], 0x204
	v_cndmask_b32_e64 v35, 0x7ff00000, v47, s4
	v_cndmask_b32_e64 v32, 0, v46, s1
	s_and_b32 s4, s7, s8
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v33, 0, v35, s5
	v_cmp_class_f64_e64 s5, v[24:25], 0x204
	v_cndmask_b32_e64 v35, 0x3ff00000, v23, s4
	v_fma_f64 v[28:29], v[32:33], v[28:29], v[32:33]
	v_cmp_class_f64_e64 s1, v[32:33], 0x204
	v_dual_cndmask_b32 v27, v27, v31 :: v_dual_cndmask_b32 v26, v26, v30
	v_cmp_gt_f64_e32 vcc_lo, 0, v[24:25]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_bfi_b32 v27, 0x7fffffff, v27, v34
	v_cndmask_b32_e64 v31, 0, v26, s0
	v_cndmask_b32_e64 v34, 0x7ff00000, 0, s2
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v30, 0x7ff80000, v27, s0
	v_cmp_gt_f64_e64 s0, 0, v[22:23]
	v_bfi_b32 v34, 0x7fffffff, v34, v39
	v_cndmask_b32_e64 v39, 0, v23, s4
	v_cndmask_b32_e64 v28, v28, v32, s1
	v_cndmask_b32_e64 v29, v29, v33, s1
	v_cmp_eq_f64_e64 s1, 0, v[22:23]
	v_dual_cndmask_b32 v26, v26, v31 :: v_dual_cndmask_b32 v27, v27, v30
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_bfi_b32 v29, 0x7fffffff, v29, v35
	v_cndmask_b32_e64 v33, 0, v28, s7
	s_or_b32 vcc_lo, s2, s5
	v_cndmask_b32_e32 v27, v27, v34, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v32, 0x7ff80000, v29, s7
	v_cndmask_b32_e64 v26, v26, 0, vcc_lo
	v_cndmask_b32_e64 v28, v28, v33, s0
	v_cmp_o_f64_e32 vcc_lo, v[24:25], v[24:25]
	v_cndmask_b32_e64 v29, v29, v32, s0
	v_cndmask_b32_e64 v35, 0x7ff00000, 0, s1
	s_or_b32 s0, s1, s6
	s_cmpk_lg_i32 s12, 0x640
	v_cndmask_b32_e64 v24, v28, 0, s0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_bfi_b32 v35, 0x7fffffff, v35, v39
	v_cndmask_b32_e64 v25, v29, v35, s0
	v_cmp_o_f64_e64 s0, v[22:23], v[22:23]
	v_cndmask_b32_e32 v22, 0, v26, vcc_lo
	v_cndmask_b32_e32 v23, 0x7ff80000, v27, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v24, 0, v24, s0
	v_cndmask_b32_e64 v25, 0x7ff80000, v25, s0
	v_add_f64 v[22:23], v[22:23], v[24:25]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[16:17], v[16:17], v[22:23]
	scratch_store_b64 off, v[16:17], off offset:176
	flat_load_b64 v[24:25], v[18:19]
	v_add_co_u32 v18, vcc_lo, v18, 8
	v_add_co_ci_u32_e32 v19, vcc_lo, 0, v19, vcc_lo
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_fma_f64 v[20:21], v[24:25], v[22:23], v[20:21]
	scratch_store_b64 off, v[20:21], off offset:184
	s_cbranch_scc1 .LBB1_52
; %bb.53:                               ; %_ZN8RNHQS_ZB6recordEPd.exit.i
                                        ;   in Loop: Header=BB1_15 Depth=1
	v_ashrrev_i32_e32 v39, 31, v38
	s_add_i32 s102, s102, 1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_cmp_lg_u32 s102, s33
	v_lshlrev_b64 v[18:19], 3, v[38:39]
	v_add_nc_u32_e32 v38, 1, v38
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v18, vcc_lo, v52, v18
	v_add_co_ci_u32_e32 v19, vcc_lo, v53, v19, vcc_lo
	global_store_b64 v[18:19], v[16:17], off
	s_cbranch_scc1 .LBB1_15
.LBB1_54:                               ; %_ZN8RNHQS_ZB2goEPd.exit
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z9sRNHQS_ZBidddPddiS_m
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 20992
		.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 1
		.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 101
		.amdhsa_next_free_sgpr 104
		.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	_Z9sRNHQS_ZBidddPddiS_m, .Lfunc_end1-_Z9sRNHQS_ZBidddPddiS_m
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 21052
; NumSgprs: 106
; NumVgprs: 101
; ScratchSize: 20992
; MemoryBound: 1
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 13
; VGPRBlocks: 12
; NumSGPRsForWavesPerEU: 106
; NumVGPRsForWavesPerEU: 101
; Occupancy: 12
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 1
; 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:         8
        .size:           8
        .value_kind:     by_value
      - .offset:         16
        .size:           8
        .value_kind:     by_value
      - .offset:         24
        .size:           8
        .value_kind:     by_value
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .offset:         40
        .size:           8
        .value_kind:     by_value
      - .offset:         48
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         56
        .size:           8
        .value_kind:     global_buffer
      - .offset:         64
        .size:           8
        .value_kind:     by_value
      - .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:           _Z9sRNHQS_ZBidddPddiS_m
    .private_segment_fixed_size: 20992
    .sgpr_count:     106
    .sgpr_spill_count: 0
    .symbol:         _Z9sRNHQS_ZBidddPddiS_m.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     101
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
