#include <iostream> 
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <thread>
#include <fstream>
#include <string>
#include <chrono>
#include <ctime>
#include <cmath>
#include <cuda.h>
#include <sstream>



#define M_PI 3.14159265358979323846 // Pi constant with double precision

using namespace std;

#define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LINE__); }
const float PI = 3.14159265358979323846;
//////////////////////////////////////////////////////////////////////////////////////////////
class Complex_cuda{
public:
    __device__ __host__ Complex_cuda();
    __device__ __host__ Complex_cuda(float r, float i);
    __device__ __host__ Complex_cuda(float r);
    __device__ __host__ Complex_cuda operator+(const Complex_cuda& b) const;
    __device__ __host__ Complex_cuda operator-(const Complex_cuda& b) const;
    __device__ __host__ Complex_cuda operator*(const Complex_cuda& b) const;

    __device__ __host__ Complex_cuda mag() const;
    __device__ __host__ Complex_cuda angle() const;
    __device__ __host__ Complex_cuda conj() const;

    float real;
    float imag;
};

//std::ostream& operator<<(std::ostream& os, const Complex_cuda& rhs);

__device__ __host__ Complex_cuda::Complex_cuda() : real(0.0f), imag(0.0f) {}

__device__ __host__ Complex_cuda::Complex_cuda(float r) : real(r), imag(0.0f) {}

__device__ __host__ Complex_cuda::Complex_cuda(float r, float i) : real(r), imag(i) {}

__device__ __host__ Complex_cuda Complex_cuda::operator+(const Complex_cuda &b) const {
	return Complex_cuda(this->real + b.real, this->imag + b.imag);
}

__device__ __host__ Complex_cuda Complex_cuda::operator-(const Complex_cuda &b) const {
	return Complex_cuda(this->real - b.real, this->imag - b.imag);
}

__device__ __host__ Complex_cuda Complex_cuda::operator*(const Complex_cuda &b) const {
	return Complex_cuda(this->real * b.real - this->imag * b.imag, this->real * b.imag + this->imag * b.real);
}

__device__ __host__ Complex_cuda Complex_cuda::mag() const {
	return Complex_cuda(sqrt(pow(this->real, 2.0) + pow(this->imag, 2.0)));
}

__device__ __host__ Complex_cuda Complex_cuda::angle() const {
	if (this->imag > 0) return Complex_cuda(acos(this->real / this->mag().real));
	if (this->imag < 0) return Complex_cuda(-acos(this->real / this->mag().real));
	if (this->real > 0 && this->imag == 0) return Complex_cuda(0);
	return Complex_cuda(PI);
}

__device__ __host__ Complex_cuda Complex_cuda::conj() const {
	return Complex_cuda(this->real, -this->imag);
}

std::ostream& operator<< (std::ostream& os, const Complex_cuda& rhs) {
    Complex_cuda c(rhs);
    if(fabsf(rhs.imag) < 1e-5) c.imag = 0.0f;
    if(fabsf(rhs.real) < 1e-5) c.real = 0.0f;

    if(c.imag == 0) {
        os << c.real;
    }
    else {
        os << "(" << c.real << "," << c.imag << ")";
    }
    return os;
}

/////////////////////////////////////////////////////////////////////////////////////////////
class InputImage {
public:

    InputImage(const char* filename);
    int get_width() const;
    int get_height() const;

    //returns a pointer to the image data.  Note the return is a 1D
    //array which represents a 2D image.  The data for row 1 is
    //immediately following the data for row 0 in the 1D array
    Complex_cuda* get_image_data() const;

    //use this to save output from forward DFT
    void save_image_data(const char* filename, Complex_cuda* d, int w, int h);
    //use this to save output from reverse DFT
    void save_image_data_real(const char* filename, Complex_cuda* d, int w, int h);

private:
    int w;
    int h;
    Complex_cuda* data;
};


InputImage::InputImage(const char* filename) {
    std::ifstream ifs(filename);
    if(!ifs) {
        std::cout << "Can't open image file " << filename << std::endl;
        exit(1);
    }

    ifs >> w >> h;
    data = new Complex_cuda[w * h];
    for(int r = 0; r < h; ++r) {
        for(int c = 0; c < w; ++c) {
            float real;
            ifs >> real;
            data[r * w + c] = Complex_cuda(real);
        }

    }
}

int InputImage::get_width() const {
    return w;
}

int InputImage::get_height() const {
    return h;
}

Complex_cuda* InputImage::get_image_data() const {
    return data;
}

void InputImage::save_image_data(const char *filename, Complex_cuda *d, int w, int h) {
    std::ofstream ofs(filename);
    if(!ofs) {
        std::cout << "Can't create output image " << filename << std::endl;
        return;
    }

    ofs << w << " " << h << std::endl;

    for(int r = 0; r < h; ++r) {
        for(int c = 0; c < w; ++c) {
            ofs << d[r * w + c] << " ";
        }
        ofs << std::endl;
    }
}

void InputImage::save_image_data_real(const char* filename, Complex_cuda* d, int w, int h) {
    std::ofstream ofs(filename);
    if(!ofs) {
        std::cout << "Can't create output image " << filename << std::endl;
        return;
    }

    ofs << w << " " << h << std::endl;

    for (int r = 0; r < h; ++r) {
        for (int c = 0; c < w; ++c) {
            ofs << d[r * w + c].real << " ";
        }
        ofs << std::endl;
    }
}
/////////////////////////////////////////////////////////////////////////////////////////////




inline void gpuAssert(cudaError_t code, char *file, int line, bool abort=true)
{
    if (code != cudaSuccess) 
    {
        fprintf(stderr,"GPUassert: %s %s %d\n", cudaGetErrorString(code), file, line);
        if (abort) getchar();
    }
}


int Divup(int a, int b)
{

    if (a % b)
    {
        return a / b + 1; /* add in additional block */
    }
    else
    {
        return a / b; /* divides cleanly */
    }
}


__global__ void fft(Complex_cuda *a, int num_col);
__global__ void ifft(Complex_cuda *a, int num_col);
__device__ void transpose(Complex_cuda *Matrix, int num_col);

__global__ void fft(Complex_cuda *a, Complex_cuda *omega, int num_col)
{
    int x = blockIdx.x * blockDim.x + threadIdx.x;

    for(int i=0; i<num_col; i++)  
    {
        //printf("0: i=%d, x=%d, num_col=%d\n", i, x, num_col);
        omega[i] = Complex_cuda(cos(2*M_PI/(float)num_col*i), -sin(2*M_PI/(float)num_col*i));
    }

    //printf("1: x=%d\n", x);
    for(int i=0, j=0; i<num_col; ++i)  
    {
        if (i>j)  
        {
            Complex_cuda tmp = a[x*num_col+i];
            a[x*num_col+i] = a[x*num_col+j];
            a[x*num_col+j] = tmp;
        }
		for(int l=num_col>>1; (j^=l)<l; l>>=1);
	}

    //printf("2: x=%d\n", x);
    for(int l=2; l<=num_col; l<<=1)  
    {
        int m = l/2;
        for(Complex_cuda *p=a; p!=a+num_col; p=p+l)  
        {
            for(int i=0; i<m; ++i)  
            {
                Complex_cuda t = omega[num_col/l*i] * p[x*num_col+m+i];
                p[x*num_col+m+i] = p[x*num_col+i] - t ;
                p[x*num_col+i] = p[x*num_col+i] + t ;
            }
        }
    }
    //printf("3: x=%d\n", x);
    __syncthreads();
    transpose(a, num_col); /* get transpose result and do fft again == do fft on another axis*/
    __syncthreads();

    //printf("4: x=%d\n", x);
    for(int i=0, j=0 ; i<num_col ; ++i)  
    {
        if (i>j)  
        {
            Complex_cuda tmp = a[x*num_col+i];
            a[x*num_col+i] = a[x*num_col+j];
            a[x*num_col+j] = tmp;
        }
		for(int l=num_col>>1; (j^=l)<l; l>>=1);
	}
    //printf("5: x=%d\n", x);
    for(int l=2; l<=num_col; l<<=1)  
    {
        int m = l/2;
        for(Complex_cuda *p=a; p!=a+num_col; p=p+l)  
        {
            for(int i=0; i<m; ++i)  
            {
                Complex_cuda t = omega[num_col/l*i] * p[x*num_col+m+i];
                p[x*num_col+m+i] = p[x*num_col+i] - t ;
                p[x*num_col+i] = p[x*num_col+i] + t ;
            }
        }
    }
    //printf("6: x=%d\n", x);
    transpose(a, num_col);
    __syncthreads();
}

__global__ void ifft(Complex_cuda *a, Complex_cuda *omega_inverse, int num_col)
{
    int x = blockIdx.x * blockDim.x + threadIdx.x;

    for(int i=0; i<num_col; ++ i)  {
        omega_inverse[i] = Complex_cuda(cos(2*M_PI/num_col*i), -sin(2*M_PI/num_col*i)).conj();
    }

    for(int i=0, j=0; i<num_col ; ++i)  
    {
        if (i>j)  
        {
            Complex_cuda tmp = a[x*num_col+i];
            a[x*num_col+i] = a[x*num_col+j];
            a[x*num_col+j] = tmp;
        }
		for(int l=num_col>>1; (j^=l)<l; l>>=1);
	}

    for(int l=2; l<=num_col; l<<=1)  
    {
        int m = l/2;
        for(Complex_cuda *p=a; p!=a+num_col; p=p+l)  
        {
            for(int i=0; i<m; ++i)  
            {
                Complex_cuda t = omega_inverse[num_col/l*i] * p[x*num_col+m+i];
                p[x*num_col+m+i] = p[x*num_col+i] - t ;
                p[x*num_col+i] = p[x*num_col+i] + t ;
            }
        }
    }

    __syncthreads();
    transpose(a, num_col); /* get transpose result and do ifft again == do ifft on another axis*/
    __syncthreads();

    for(int i=0, j=0; i<num_col ; ++i)  
    {
        if (i>j)  
        {
            Complex_cuda tmp = a[x*num_col+i];
            a[x*num_col+i] = a[x*num_col+j];
            a[x*num_col+j] = tmp;
        }
		for(int l=num_col>>1; (j^=l)<l; l>>=1);
	}

    for(int l=2; l<=num_col; l<<=1)  
    {
        int m = l/2;
        for(Complex_cuda *p=a; p!=a+num_col; p=p+l)  
        {
            for(int i=0; i<m; ++i)  
            {
                Complex_cuda t = omega_inverse[num_col/l*i] * p[x*num_col+m+i];
                p[x*num_col+m+i] = p[x*num_col+i] - t ;
                p[x*num_col+i] = p[x*num_col+i] + t ;
            }
        }
    }
    transpose(a, num_col);
    __syncthreads();

}

__device__ void transpose(Complex_cuda *Matrix, int num_col)
{    
    const int x = blockIdx.x * blockDim.x + threadIdx.x ;  
    for(int i=x+1; i<num_col; i++)
    {
        Complex_cuda tmp = Matrix[x*num_col+i];        
        Matrix[x*num_col+i]=Matrix[i*num_col+x];        
        Matrix[i*num_col+x]=tmp;
    }   
}



int main(int argc, char* argv[]) {
	int dir = (strcmp(argv[1], "forward") == 0) ? 1 : -1;
	char *inputFile = argv[2];
	char *outputFile = argv[3];
	InputImage inImage(inputFile);
	int width = inImage.get_width();
    int height = inImage.get_height();
    
	cout << "width = " << width << ", height = " << height << '\n';

	if (dir == 1) { // forward
        Complex_cuda *h = inImage.get_image_data();
		Complex_cuda *X = (Complex_cuda*)malloc(width * height * sizeof(Complex_cuda));
        Complex_cuda *h_cuda;
        cudaMalloc((void **)&h_cuda, width * height * sizeof(Complex_cuda));
        Complex_cuda* omega = (Complex_cuda *)malloc(width*sizeof(Complex_cuda));
        Complex_cuda* omega_cuda;
        cudaMalloc((void **)&omega_cuda, width * sizeof(Complex_cuda));
		
		for (int i = 0; i < width * height; ++i) {
			X[i] = 0;
		}
		cout << "Start clokcing...\n";
		chrono::steady_clock::time_point tStart = chrono::steady_clock::now();

        int block_size = (height>512)?(512):(height);
        dim3 grid(Divup(height,block_size),1);    
        dim3 block(block_size,1);
        cudaMemcpy(h_cuda, h, width*height*sizeof(Complex_cuda), cudaMemcpyHostToDevice);
        cudaMemcpy(omega_cuda, omega, width*sizeof(Complex_cuda), cudaMemcpyHostToDevice);

        fft <<<grid, block>>>(h_cuda, omega_cuda, width);
        gpuErrchk(cudaPeekAtLastError());
        gpuErrchk(cudaDeviceSynchronize());
        cudaMemcpy(X, h_cuda, width*height*sizeof(Complex_cuda), cudaMemcpyDeviceToHost);


		chrono::steady_clock::time_point tEnd = chrono::steady_clock::now();
		chrono::duration<double> time_span = chrono::duration_cast<chrono::duration<double>>(tEnd - tStart);
		cout << "Time ellipsed: " << time_span.count() << " seconds... \n";
		cout << "Printing results...\n";
		inImage.save_image_data(outputFile, X, width, height);
        free(h); 
        free(X);
        cudaFree(h_cuda);
	}
	else { // reverse DFT
		Complex_cuda *H = inImage.get_image_data();
        Complex_cuda *h = (Complex_cuda *)malloc(width*height*sizeof(Complex_cuda));
        Complex_cuda *H_cuda;
        Complex_cuda* omega_inverse = (Complex_cuda *)malloc(width*sizeof(Complex_cuda));
        Complex_cuda* omega_inverse_cuda;
        cudaMalloc((void **)&H_cuda, width * height * sizeof(Complex_cuda));
        cudaMalloc((void **)&omega_inverse_cuda, width * sizeof(Complex_cuda));
        
		cout << "Start clokcing...\n";
        chrono::steady_clock::time_point tStart = chrono::steady_clock::now();
        
        int block_size = (height>512)?(512):(height);
        dim3 grid(Divup(height,block_size),1);    
        dim3 block(block_size,1);
        cudaMemcpy(H_cuda, H, width*height*sizeof(Complex_cuda), cudaMemcpyHostToDevice);
        cudaMemcpy(omega_inverse_cuda, omega_inverse, width*sizeof(Complex_cuda), cudaMemcpyHostToDevice);
        
        ifft<<<grid, block>>>(H_cuda, omega_inverse_cuda, width);
      
		cudaMemcpy(h, H_cuda, width*height*sizeof(Complex_cuda), cudaMemcpyDeviceToHost);

		chrono::steady_clock::time_point tEnd = chrono::steady_clock::now();
		chrono::duration<double> time_span = chrono::duration_cast<chrono::duration<double>>(tEnd - tStart);
		cout << "Time ellipsed: " << time_span.count() << " seconds... \n";
		cout << "Printing results...\n";
        inImage.save_image_data_real(outputFile, h, width, height);
        free(H); 
        free(h);
        cudaFree(H_cuda); 
	}

	cout << "finished...\n";
	return 0;
}

	.file	"tmpxft_00209c12_00000000-6_Source.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4429:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4429:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSolsEPFRSoS_E.isra.0, @function
_ZNSolsEPFRSoS_E.isra.0:
.LFB5212:
	.cfi_startproc
	jmp	*%rsi
	.cfi_endproc
.LFE5212:
	.size	_ZNSolsEPFRSoS_E.isra.0, .-_ZNSolsEPFRSoS_E.isra.0
	.align 2
	.globl	_ZN12Complex_cudaC2Ev
	.type	_ZN12Complex_cudaC2Ev, @function
_ZN12Complex_cudaC2Ev:
.LFB4397:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
	movq	%rax, (%rdi)
	ret
	.cfi_endproc
.LFE4397:
	.size	_ZN12Complex_cudaC2Ev, .-_ZN12Complex_cudaC2Ev
	.globl	_ZN12Complex_cudaC1Ev
	.set	_ZN12Complex_cudaC1Ev,_ZN12Complex_cudaC2Ev
	.align 2
	.globl	_ZN12Complex_cudaC2Ef
	.type	_ZN12Complex_cudaC2Ef, @function
_ZN12Complex_cudaC2Ef:
.LFB4400:
	.cfi_startproc
	endbr64
	movl	$0x00000000, 4(%rdi)
	movss	%xmm0, (%rdi)
	ret
	.cfi_endproc
.LFE4400:
	.size	_ZN12Complex_cudaC2Ef, .-_ZN12Complex_cudaC2Ef
	.globl	_ZN12Complex_cudaC1Ef
	.set	_ZN12Complex_cudaC1Ef,_ZN12Complex_cudaC2Ef
	.align 2
	.globl	_ZN12Complex_cudaC2Eff
	.type	_ZN12Complex_cudaC2Eff, @function
_ZN12Complex_cudaC2Eff:
.LFB4403:
	.cfi_startproc
	endbr64
	movss	%xmm0, (%rdi)
	movss	%xmm1, 4(%rdi)
	ret
	.cfi_endproc
.LFE4403:
	.size	_ZN12Complex_cudaC2Eff, .-_ZN12Complex_cudaC2Eff
	.globl	_ZN12Complex_cudaC1Eff
	.set	_ZN12Complex_cudaC1Eff,_ZN12Complex_cudaC2Eff
	.align 2
	.globl	_ZNK12Complex_cudaplERKS_
	.type	_ZNK12Complex_cudaplERKS_, @function
_ZNK12Complex_cudaplERKS_:
.LFB4405:
	.cfi_startproc
	endbr64
	movss	4(%rdi), %xmm1
	addss	4(%rsi), %xmm1
	movss	(%rdi), %xmm0
	addss	(%rsi), %xmm0
	movd	%xmm1, %edx
	salq	$32, %rdx
	movd	%xmm0, %eax
	orq	%rdx, %rax
	movq	%rax, %xmm0
	ret
	.cfi_endproc
.LFE4405:
	.size	_ZNK12Complex_cudaplERKS_, .-_ZNK12Complex_cudaplERKS_
	.align 2
	.globl	_ZNK12Complex_cudamiERKS_
	.type	_ZNK12Complex_cudamiERKS_, @function
_ZNK12Complex_cudamiERKS_:
.LFB4406:
	.cfi_startproc
	endbr64
	movss	4(%rdi), %xmm1
	subss	4(%rsi), %xmm1
	movss	(%rdi), %xmm0
	subss	(%rsi), %xmm0
	movd	%xmm1, %edx
	salq	$32, %rdx
	movd	%xmm0, %eax
	orq	%rdx, %rax
	movq	%rax, %xmm0
	ret
	.cfi_endproc
.LFE4406:
	.size	_ZNK12Complex_cudamiERKS_, .-_ZNK12Complex_cudamiERKS_
	.align 2
	.globl	_ZNK12Complex_cudamlERKS_
	.type	_ZNK12Complex_cudamlERKS_, @function
_ZNK12Complex_cudamlERKS_:
.LFB4407:
	.cfi_startproc
	endbr64
	movss	4(%rsi), %xmm4
	movss	(%rdi), %xmm0
	movss	4(%rdi), %xmm2
	movss	(%rsi), %xmm3
	movaps	%xmm4, %xmm5
	movaps	%xmm0, %xmm1
	mulss	%xmm2, %xmm5
	mulss	%xmm4, %xmm0
	mulss	%xmm3, %xmm2
	mulss	%xmm3, %xmm1
	addss	%xmm2, %xmm0
	subss	%xmm5, %xmm1
	movq	%xmm0, %rax
	salq	$32, %rax
	movd	%xmm1, %edx
	orq	%rax, %rdx
	movq	%rdx, %xmm0
	ret
	.cfi_endproc
.LFE4407:
	.size	_ZNK12Complex_cudamlERKS_, .-_ZNK12Complex_cudamlERKS_
	.align 2
	.globl	_ZNK12Complex_cuda3magEv
	.type	_ZNK12Complex_cuda3magEv, @function
_ZNK12Complex_cuda3magEv:
.LFB4408:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	cvtss2sd	(%rdi), %xmm0
	cvtss2sd	4(%rdi), %xmm1
	mulsd	%xmm0, %xmm0
	mulsd	%xmm1, %xmm1
	addsd	%xmm1, %xmm0
	call	sqrt@PLT
	popq	%rdx
	.cfi_def_cfa_offset 8
	cvtsd2ss	%xmm0, %xmm0
	movd	%xmm0, %eax
	movd	%eax, %xmm0
	ret
	.cfi_endproc
.LFE4408:
	.size	_ZNK12Complex_cuda3magEv, .-_ZNK12Complex_cuda3magEv
	.align 2
	.globl	_ZNK12Complex_cuda5angleEv
	.type	_ZNK12Complex_cuda5angleEv, @function
_ZNK12Complex_cuda5angleEv:
.LFB4409:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movss	4(%rdi), %xmm0
	xorps	%xmm2, %xmm2
	movss	(%rdi), %xmm1
	comiss	%xmm2, %xmm0
	jbe	.L25
	movss	%xmm1, 12(%rsp)
	call	_ZNK12Complex_cuda3magEv
	movss	12(%rsp), %xmm1
	divss	%xmm0, %xmm1
	movaps	%xmm1, %xmm0
	call	acosf@PLT
	jmp	.L14
.L25:
	comiss	%xmm0, %xmm2
	jbe	.L26
	movss	%xmm1, 12(%rsp)
	call	_ZNK12Complex_cuda3magEv
	movss	12(%rsp), %xmm1
	divss	%xmm0, %xmm1
	movaps	%xmm1, %xmm0
	call	acosf@PLT
	xorps	.LC2(%rip), %xmm0
	jmp	.L14
.L26:
	ucomiss	%xmm2, %xmm0
	movb	$0, %dl
	setnp	%al
	cmovne	%edx, %eax
	testb	%al, %al
	je	.L21
	comiss	%xmm2, %xmm1
	xorps	%xmm0, %xmm0
	ja	.L14
.L21:
	movss	.LC1(%rip), %xmm0
.L14:
	movd	%xmm0, %eax
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	movd	%eax, %xmm0
	ret
	.cfi_endproc
.LFE4409:
	.size	_ZNK12Complex_cuda5angleEv, .-_ZNK12Complex_cuda5angleEv
	.align 2
	.globl	_ZNK12Complex_cuda4conjEv
	.type	_ZNK12Complex_cuda4conjEv, @function
_ZNK12Complex_cuda4conjEv:
.LFB4410:
	.cfi_startproc
	endbr64
	movss	4(%rdi), %xmm0
	xorps	.LC2(%rip), %xmm0
	movl	(%rdi), %edx
	movd	%xmm0, %eax
	salq	$32, %rax
	orq	%rax, %rdx
	movq	%rdx, %xmm0
	ret
	.cfi_endproc
.LFE4410:
	.size	_ZNK12Complex_cuda4conjEv, .-_ZNK12Complex_cuda4conjEv
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC5:
	.string	"("
.LC6:
	.string	","
.LC7:
	.string	")"
	.text
	.globl	_ZlsRSoRK12Complex_cuda
	.type	_ZlsRSoRK12Complex_cuda, @function
_ZlsRSoRK12Complex_cuda:
.LFB4411:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movss	4(%rsi), %xmm1
	movsd	.LC4(%rip), %xmm4
	movss	.LC3(%rip), %xmm2
	movss	(%rsi), %xmm0
	movaps	%xmm1, %xmm3
	andps	%xmm2, %xmm3
	cvtss2sd	%xmm3, %xmm3
	comisd	%xmm3, %xmm4
	jbe	.L31
	xorps	%xmm1, %xmm1
.L31:
	andps	%xmm0, %xmm2
	cvtss2sd	%xmm2, %xmm2
	comisd	%xmm2, %xmm4
	jbe	.L32
	xorps	%xmm0, %xmm0
.L32:
	xorps	%xmm2, %xmm2
	cvtss2sd	%xmm0, %xmm0
	ucomiss	%xmm2, %xmm1
	jp	.L33
	jne	.L33
	movq	%rbx, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	jmp	.L35
.L33:
	leaq	.LC5(%rip), %rsi
	movq	%rbx, %rdi
	movss	%xmm1, 4(%rsp)
	movsd	%xmm0, 8(%rsp)
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	8(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC6(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movss	4(%rsp), %xmm1
	movq	%rax, %rdi
	cvtss2sd	%xmm1, %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC7(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.L35:
	addq	$16, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4411:
	.size	_ZlsRSoRK12Complex_cuda, .-_ZlsRSoRK12Complex_cuda
	.align 2
	.globl	_ZNK10InputImage9get_widthEv
	.type	_ZNK10InputImage9get_widthEv, @function
_ZNK10InputImage9get_widthEv:
.LFB4415:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE4415:
	.size	_ZNK10InputImage9get_widthEv, .-_ZNK10InputImage9get_widthEv
	.align 2
	.globl	_ZNK10InputImage10get_heightEv
	.type	_ZNK10InputImage10get_heightEv, @function
_ZNK10InputImage10get_heightEv:
.LFB4416:
	.cfi_startproc
	endbr64
	movl	4(%rdi), %eax
	ret
	.cfi_endproc
.LFE4416:
	.size	_ZNK10InputImage10get_heightEv, .-_ZNK10InputImage10get_heightEv
	.align 2
	.globl	_ZNK10InputImage14get_image_dataEv
	.type	_ZNK10InputImage14get_image_dataEv, @function
_ZNK10InputImage14get_image_dataEv:
.LFB4417:
	.cfi_startproc
	endbr64
	movq	8(%rdi), %rax
	ret
	.cfi_endproc
.LFE4417:
	.size	_ZNK10InputImage14get_image_dataEv, .-_ZNK10InputImage14get_image_dataEv
	.section	.rodata._Z9gpuAssert9cudaErrorPcib.str1.1,"aMS",@progbits,1
.LC8:
	.string	"GPUassert: %s %s %d\n"
	.section	.text._Z9gpuAssert9cudaErrorPcib,"axG",@progbits,_Z9gpuAssert9cudaErrorPcib,comdat
	.weak	_Z9gpuAssert9cudaErrorPcib
	.type	_Z9gpuAssert9cudaErrorPcib, @function
_Z9gpuAssert9cudaErrorPcib:
.LFB4420:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	je	.L48
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	%ecx, %ebx
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movl	%edx, 12(%rsp)
	movq	%rsi, (%rsp)
	call	cudaGetErrorString@PLT
	movl	12(%rsp), %r9d
	movq	(%rsp), %r8
	leaq	.LC8(%rip), %rdx
	movq	stderr(%rip), %rdi
	movq	%rax, %rcx
	movl	$2, %esi
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
	testb	%bl, %bl
	je	.L43
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 8
	jmp	getchar@PLT
.L43:
	.cfi_restore_state
	addq	$16, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L48:
	.cfi_restore 3
	ret
	.cfi_endproc
.LFE4420:
	.size	_Z9gpuAssert9cudaErrorPcib, .-_Z9gpuAssert9cudaErrorPcib
	.text
	.globl	_Z5Divupii
	.type	_Z5Divupii, @function
_Z5Divupii:
.LFB4421:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	cltd
	idivl	%esi
	cmpl	$1, %edx
	sbbl	$-1, %eax
	ret
	.cfi_endproc
.LFE4421:
	.size	_Z5Divupii, .-_Z5Divupii
	.globl	_Z9transposeP12Complex_cudai
	.type	_Z9transposeP12Complex_cudai, @function
_Z9transposeP12Complex_cudai:
.LFB4422:
	.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
.LFE4422:
	.size	_Z9transposeP12Complex_cudai, .-_Z9transposeP12Complex_cudai
	.globl	_Z39__device_stub__Z3fftP12Complex_cudaS0_iP12Complex_cudaS0_i
	.type	_Z39__device_stub__Z3fftP12Complex_cudaS0_iP12Complex_cudaS0_i, @function
_Z39__device_stub__Z3fftP12Complex_cudaS0_iP12Complex_cudaS0_i:
.LFB4451:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	32(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L57
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z3fftP12Complex_cudaS0_i(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 160
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 152
	popq	%rdx
	.cfi_def_cfa_offset 144
.L57:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L59
	call	__stack_chk_fail@PLT
.L59:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4451:
	.size	_Z39__device_stub__Z3fftP12Complex_cudaS0_iP12Complex_cudaS0_i, .-_Z39__device_stub__Z3fftP12Complex_cudaS0_iP12Complex_cudaS0_i
	.globl	_Z3fftP12Complex_cudaS0_i
	.type	_Z3fftP12Complex_cudaS0_i, @function
_Z3fftP12Complex_cudaS0_i:
.LFB4452:
	.cfi_startproc
	endbr64
	jmp	_Z39__device_stub__Z3fftP12Complex_cudaS0_iP12Complex_cudaS0_i
	.cfi_endproc
.LFE4452:
	.size	_Z3fftP12Complex_cudaS0_i, .-_Z3fftP12Complex_cudaS0_i
	.globl	_Z40__device_stub__Z4ifftP12Complex_cudaS0_iP12Complex_cudaS0_i
	.type	_Z40__device_stub__Z4ifftP12Complex_cudaS0_iP12Complex_cudaS0_i, @function
_Z40__device_stub__Z4ifftP12Complex_cudaS0_iP12Complex_cudaS0_i:
.LFB4453:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	32(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L62
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z4ifftP12Complex_cudaS0_i(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 160
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 152
	popq	%rdx
	.cfi_def_cfa_offset 144
.L62:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L64
	call	__stack_chk_fail@PLT
.L64:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4453:
	.size	_Z40__device_stub__Z4ifftP12Complex_cudaS0_iP12Complex_cudaS0_i, .-_Z40__device_stub__Z4ifftP12Complex_cudaS0_iP12Complex_cudaS0_i
	.globl	_Z4ifftP12Complex_cudaS0_i
	.type	_Z4ifftP12Complex_cudaS0_i, @function
_Z4ifftP12Complex_cudaS0_i:
.LFB4454:
	.cfi_startproc
	endbr64
	jmp	_Z40__device_stub__Z4ifftP12Complex_cudaS0_iP12Complex_cudaS0_i
	.cfi_endproc
.LFE4454:
	.size	_Z4ifftP12Complex_cudaS0_i, .-_Z4ifftP12Complex_cudaS0_i
	.section	.rodata.str1.1
.LC9:
	.string	"_Z4ifftP12Complex_cudaS0_i"
.LC10:
	.string	"_Z3fftP12Complex_cudaS0_i"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4456:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC9(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z4ifftP12Complex_cudaS0_i(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC10(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z3fftP12Complex_cudaS0_i(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE4456:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.rodata.str1.1
.LC11:
	.string	"Can't open image file "
	.text
	.align 2
	.globl	_ZN10InputImageC2EPKc
	.type	_ZN10InputImageC2EPKc, @function
_ZN10InputImageC2EPKc:
.LFB4413:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4413
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$8, %edx
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rdi, %rbx
	subq	$544, %rsp
	.cfi_def_cfa_offset 592
	movq	%fs:40, %rax
	movq	%rax, 536(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r12
	movq	%r12, %rdi
.LEHB0:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode@PLT
.LEHE0:
	testb	$5, 304(%rsp)
	je	.L70
	leaq	.LC11(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
.LEHB1:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	%rbp, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movl	$1, %edi
	call	exit@PLT
.L70:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	_ZNSirsERi@PLT
	movq	%rax, %rdi
	leaq	4(%rbx), %rsi
	call	_ZNSirsERi@PLT
	movabsq	$1152921504606846975, %rax
	movl	(%rbx), %ebp
	imull	4(%rbx), %ebp
	movslq	%ebp, %rbp
	cmpq	%rbp, %rax
	jb	.L71
	salq	$3, %rbp
	movq	%rbp, %rdi
	call	_Znam@PLT
	addq	%rax, %rbp
	movq	%rax, %rdx
	jmp	.L74
.L71:
	movq	536(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L84
	call	__cxa_throw_bad_array_new_length@PLT
.L74:
	cmpq	%rbp, %rdx
	je	.L87
	movl	$0x00000000, (%rdx)
	addq	$8, %rdx
	movl	$0x00000000, -4(%rdx)
	jmp	.L74
.L87:
	movq	%rax, 8(%rbx)
	xorl	%ebp, %ebp
	leaq	12(%rsp), %r14
.L76:
	cmpl	%ebp, 4(%rbx)
	jle	.L88
	xorl	%r13d, %r13d
.L78:
	cmpl	%r13d, (%rbx)
	jle	.L89
	movq	%r14, %rsi
	movq	%r12, %rdi
	call	_ZNSi10_M_extractIfEERSiRT_@PLT
.LEHE1:
	movl	(%rbx), %eax
	movq	8(%rbx), %rdx
	movss	12(%rsp), %xmm0
	imull	%ebp, %eax
	addl	%r13d, %eax
	incl	%r13d
	cltq
	leaq	(%rdx,%rax,8), %rax
	movl	$0x00000000, 4(%rax)
	movss	%xmm0, (%rax)
	jmp	.L78
.L89:
	incl	%ebp
	jmp	.L76
.L88:
	movq	%r12, %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	536(%rsp), %rax
	subq	%fs:40, %rax
	je	.L81
	jmp	.L84
.L83:
	endbr64
	movq	%rax, %rbx
.L79:
	movq	%r12, %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	536(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L84
	movq	%rbx, %rdi
.LEHB2:
	call	_Unwind_Resume@PLT
.LEHE2:
.L84:
	call	__stack_chk_fail@PLT
.L81:
	addq	$544, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4413:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4413:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4413-.LLSDACSB4413
.LLSDACSB4413:
	.uleb128 .LEHB0-.LFB4413
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB4413
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L83-.LFB4413
	.uleb128 0
	.uleb128 .LEHB2-.LFB4413
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
.LLSDACSE4413:
	.text
	.size	_ZN10InputImageC2EPKc, .-_ZN10InputImageC2EPKc
	.globl	_ZN10InputImageC1EPKc
	.set	_ZN10InputImageC1EPKc,_ZN10InputImageC2EPKc
	.section	.rodata.str1.1
.LC12:
	.string	"Can't create output image "
.LC13:
	.string	" "
	.text
	.align 2
	.globl	_ZN10InputImage15save_image_dataEPKcP12Complex_cudaii
	.type	_ZN10InputImage15save_image_dataEPKcP12Complex_cudaii, @function
_ZN10InputImage15save_image_dataEPKcP12Complex_cudaii:
.LFB4418:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4418
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rdx, %r13
	movl	$16, %edx
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%r8d, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%ecx, %ebx
	subq	$552, %rsp
	.cfi_def_cfa_offset 608
	movq	%fs:40, %rax
	movq	%rax, 536(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, (%rsp)
.LEHB3:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode@PLT
.LEHE3:
	testb	$5, 304(%rsp)
	je	.L91
	leaq	.LC12(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
.LEHB4:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	%r12, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.L94:
	movq	(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	536(%rsp), %rax
	subq	%fs:40, %rax
	je	.L98
	jmp	.L100
.L91:
	movq	(%rsp), %rdi
	movl	%ebx, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC13(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%ebp, %esi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
.L92:
	cmpl	%ebp, %r15d
	jge	.L94
	movslq	%r14d, %rax
	xorl	%r12d, %r12d
	leaq	0(%r13,%rax,8), %rax
	movq	%rax, 8(%rsp)
.L95:
	cmpl	%ebx, %r12d
	jge	.L102
	movq	8(%rsp), %rsi
	movq	(%rsp), %rdi
	call	_ZlsRSoRK12Complex_cuda
	movq	%rax, %rdi
	leaq	.LC13(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	addq	$8, 8(%rsp)
	incl	%r12d
	jmp	.L95
.L102:
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	(%rsp), %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.LEHE4:
	incl	%r15d
	addl	%ebx, %r14d
	jmp	.L92
.L99:
	endbr64
	movq	%rax, %rbx
.L96:
	movq	(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	536(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L100
	movq	%rbx, %rdi
.LEHB5:
	call	_Unwind_Resume@PLT
.LEHE5:
.L100:
	call	__stack_chk_fail@PLT
.L98:
	addq	$552, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4418:
	.section	.gcc_except_table
.LLSDA4418:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4418-.LLSDACSB4418
.LLSDACSB4418:
	.uleb128 .LEHB3-.LFB4418
	.uleb128 .LEHE3-.LEHB3
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB4-.LFB4418
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L99-.LFB4418
	.uleb128 0
	.uleb128 .LEHB5-.LFB4418
	.uleb128 .LEHE5-.LEHB5
	.uleb128 0
	.uleb128 0
.LLSDACSE4418:
	.text
	.size	_ZN10InputImage15save_image_dataEPKcP12Complex_cudaii, .-_ZN10InputImage15save_image_dataEPKcP12Complex_cudaii
	.align 2
	.globl	_ZN10InputImage20save_image_data_realEPKcP12Complex_cudaii
	.type	_ZN10InputImage20save_image_data_realEPKcP12Complex_cudaii, @function
_ZN10InputImage20save_image_data_realEPKcP12Complex_cudaii:
.LFB4419:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4419
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdx, %r14
	movl	$16, %edx
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%r8d, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%ecx, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$552, %rsp
	.cfi_def_cfa_offset 608
	movq	%fs:40, %rax
	movq	%rax, 536(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, (%rsp)
.LEHB6:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode@PLT
.LEHE6:
	movl	304(%rsp), %ebx
	andl	$5, %ebx
	je	.L104
	leaq	.LC12(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
.LEHB7:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	%r12, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.L107:
	movq	(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	536(%rsp), %rax
	subq	%fs:40, %rax
	je	.L111
	jmp	.L113
.L104:
	movq	(%rsp), %rdi
	movl	%ebp, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC13(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%r13d, %esi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	xorl	%r15d, %r15d
.L105:
	cmpl	%r13d, %ebx
	jge	.L107
	movslq	%r15d, %rax
	xorl	%r12d, %r12d
	leaq	(%r14,%rax,8), %rax
	movq	%rax, 8(%rsp)
.L108:
	cmpl	%r12d, %ebp
	jle	.L115
	movq	8(%rsp), %rax
	movq	(%rsp), %rdi
	cvtss2sd	(%rax,%r12,8), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC13(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	incq	%r12
	jmp	.L108
.L115:
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	(%rsp), %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.LEHE7:
	incl	%ebx
	addl	%ebp, %r15d
	jmp	.L105
.L112:
	endbr64
	movq	%rax, %rbx
.L109:
	movq	(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	536(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L113
	movq	%rbx, %rdi
.LEHB8:
	call	_Unwind_Resume@PLT
.LEHE8:
.L113:
	call	__stack_chk_fail@PLT
.L111:
	addq	$552, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4419:
	.section	.gcc_except_table
.LLSDA4419:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4419-.LLSDACSB4419
.LLSDACSB4419:
	.uleb128 .LEHB6-.LFB4419
	.uleb128 .LEHE6-.LEHB6
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB7-.LFB4419
	.uleb128 .LEHE7-.LEHB7
	.uleb128 .L112-.LFB4419
	.uleb128 0
	.uleb128 .LEHB8-.LFB4419
	.uleb128 .LEHE8-.LEHB8
	.uleb128 0
	.uleb128 0
.LLSDACSE4419:
	.text
	.size	_ZN10InputImage20save_image_data_realEPKcP12Complex_cudaii, .-_ZN10InputImage20save_image_data_realEPKcP12Complex_cudaii
	.section	.rodata.str1.1
.LC14:
	.string	"forward"
.LC15:
	.string	"width = "
.LC16:
	.string	", height = "
.LC17:
	.string	"Start clokcing...\n"
.LC18:
	.string	"/home/ubuntu/Datasets/stackv2/train-structured/jionie/Two-Dimensional-Discrete-Fourier-Transform-on-CPU-and-GPU/master/Source.cu"
.LC20:
	.string	"Time ellipsed: "
.LC21:
	.string	" seconds... \n"
.LC22:
	.string	"Printing results...\n"
.LC23:
	.string	"finished...\n"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4423:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rsi, %rbx
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	8(%rsi), %rdi
	leaq	.LC14(%rip), %rsi
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	call	strcmp@PLT
	movq	16(%rbx), %rsi
	negl	%eax
	movq	24(%rbx), %rax
	sbbl	%r13d, %r13d
	movq	%rax, 40(%rsp)
	leaq	88(%rsp), %rax
	orl	$1, %r13d
	movq	%rax, %rdi
	movq	%rax, 32(%rsp)
	call	_ZN10InputImageC1EPKc
	movl	88(%rsp), %ebp
	leaq	.LC15(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	movl	92(%rsp), %ebx
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebp, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC16(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebx, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movb	$10, 76(%rsp)
	movq	%rax, %rdi
	movq	(%rax), %rax
	movq	-24(%rax), %rax
	cmpq	$0, 16(%rdi,%rax)
	je	.L118
	leaq	76(%rsp), %rsi
	movl	$1, %edx
	call	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT
	jmp	.L119
.L118:
	movl	$10, %esi
	call	_ZNSo3putEc@PLT
.L119:
	movl	%ebp, %r14d
	movl	$512, %r12d
	imull	%ebx, %r14d
	movslq	%r14d, %rax
	salq	$3, %rax
	movq	%rax, 8(%rsp)
	movslq	%ebp, %rax
	movq	8(%rsp), %rdi
	salq	$3, %rax
	cmpl	%r12d, %ebx
	movq	%rax, 16(%rsp)
	movq	96(%rsp), %rax
	cmovle	%ebx, %r12d
	decl	%r13d
	movq	%rax, 24(%rsp)
	jne	.L120
	call	malloc@PLT
	movq	8(%rsp), %rsi
	leaq	48(%rsp), %rdi
	movq	%rax, %r13
	call	cudaMalloc@PLT
	movq	16(%rsp), %rdi
	call	malloc@PLT
	movq	16(%rsp), %rsi
	leaq	56(%rsp), %rdi
	movq	%rax, %r15
	call	cudaMalloc@PLT
	xorl	%eax, %eax
.L121:
	cmpl	%eax, %r14d
	jle	.L130
	movl	$0x00000000, 0(%r13,%rax,8)
	movl	$0x00000000, 4(%r13,%rax,8)
	incq	%rax
	jmp	.L121
.L130:
	leaq	.LC17(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	call	_ZNSt6chrono3_V212steady_clock3nowEv@PLT
	movl	%r12d, %esi
	movl	%ebx, %edi
	movl	$1, %ecx
	movq	%rax, %r14
	call	_Z5Divupii
	movq	8(%rsp), %rdx
	movq	24(%rsp), %rsi
	movl	%r12d, 76(%rsp)
	movq	48(%rsp), %rdi
	movl	%eax, 64(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 68(%rsp)
	movq	%rax, 80(%rsp)
	call	cudaMemcpy@PLT
	movq	16(%rsp), %rdx
	movq	56(%rsp), %rdi
	movq	%r15, %rsi
	movl	$1, %ecx
	call	cudaMemcpy@PLT
	movl	84(%rsp), %ecx
	movl	72(%rsp), %esi
	xorl	%r9d, %r9d
	movq	76(%rsp), %rdx
	movq	64(%rsp), %rdi
	xorl	%r8d, %r8d
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L123
	movq	56(%rsp), %rsi
	movq	48(%rsp), %rdi
	movl	%ebp, %edx
	call	_Z39__device_stub__Z3fftP12Complex_cudaS0_iP12Complex_cudaS0_i
.L123:
	call	cudaPeekAtLastError@PLT
	movl	$1, %ecx
	movl	$393, %edx
	leaq	.LC18(%rip), %r12
	movl	%eax, %edi
	movq	%r12, %rsi
	call	_Z9gpuAssert9cudaErrorPcib
	call	cudaDeviceSynchronize@PLT
	movl	$1, %ecx
	movl	$394, %edx
	movq	%r12, %rsi
	movl	%eax, %edi
	call	_Z9gpuAssert9cudaErrorPcib
	movq	8(%rsp), %rdx
	movq	48(%rsp), %rsi
	movq	%r13, %rdi
	movl	$2, %ecx
	call	cudaMemcpy@PLT
	call	_ZNSt6chrono3_V212steady_clock3nowEv@PLT
	leaq	.LC20(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	subq	%r14, %rax
	cvtsi2sdq	%rax, %xmm0
	divsd	.LC19(%rip), %xmm0
	movsd	%xmm0, 8(%rsp)
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	8(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC21(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC22(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	40(%rsp), %rsi
	movl	%ebx, %r8d
	movl	%ebp, %ecx
	movq	32(%rsp), %rdi
	movq	%r13, %rdx
	call	_ZN10InputImage15save_image_dataEPKcP12Complex_cudaii
	movq	24(%rsp), %rdi
	call	free@PLT
	movq	%r13, %rdi
	jmp	.L129
.L120:
	call	malloc@PLT
	movq	16(%rsp), %rdi
	movq	%rax, %r15
	call	malloc@PLT
	movq	8(%rsp), %rsi
	leaq	48(%rsp), %rdi
	movq	%rax, %r14
	call	cudaMalloc@PLT
	movq	16(%rsp), %rsi
	leaq	56(%rsp), %rdi
	call	cudaMalloc@PLT
	leaq	.LC17(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	call	_ZNSt6chrono3_V212steady_clock3nowEv@PLT
	movl	%r12d, %esi
	movl	%ebx, %edi
	movl	$1, %ecx
	movq	%rax, %r13
	call	_Z5Divupii
	movq	8(%rsp), %rdx
	movq	24(%rsp), %rsi
	movl	%r12d, 76(%rsp)
	movq	48(%rsp), %rdi
	movl	%eax, 64(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 68(%rsp)
	movq	%rax, 80(%rsp)
	call	cudaMemcpy@PLT
	movq	16(%rsp), %rdx
	movq	56(%rsp), %rdi
	movq	%r14, %rsi
	movl	$1, %ecx
	call	cudaMemcpy@PLT
	movl	84(%rsp), %ecx
	movl	72(%rsp), %esi
	xorl	%r9d, %r9d
	movq	76(%rsp), %rdx
	movq	64(%rsp), %rdi
	xorl	%r8d, %r8d
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L125
	movq	56(%rsp), %rsi
	movq	48(%rsp), %rdi
	movl	%ebp, %edx
	call	_Z40__device_stub__Z4ifftP12Complex_cudaS0_iP12Complex_cudaS0_i
.L125:
	movq	8(%rsp), %rdx
	movq	48(%rsp), %rsi
	movl	$2, %ecx
	movq	%r15, %rdi
	call	cudaMemcpy@PLT
	call	_ZNSt6chrono3_V212steady_clock3nowEv@PLT
	leaq	.LC20(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	subq	%r13, %rax
	cvtsi2sdq	%rax, %xmm0
	divsd	.LC19(%rip), %xmm0
	movsd	%xmm0, 8(%rsp)
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	8(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC21(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC22(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	40(%rsp), %rsi
	movl	%ebx, %r8d
	movl	%ebp, %ecx
	movq	32(%rsp), %rdi
	movq	%r15, %rdx
	call	_ZN10InputImage20save_image_data_realEPKcP12Complex_cudaii
	movq	24(%rsp), %rdi
	call	free@PLT
	movq	%r15, %rdi
.L129:
	call	free@PLT
	movq	48(%rsp), %rdi
	call	cudaFree@PLT
	leaq	.LC23(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L126
	call	__stack_chk_fail@PLT
.L126:
	addq	$120, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4423:
	.size	main, .-main
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC1:
	.long	1078530011
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	-2147483648
	.long	0
	.long	0
	.long	0
	.align 16
.LC3:
	.long	2147483647
	.long	0
	.long	0
	.long	0
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC4:
	.long	-1998362383
	.long	1055193269
	.align 8
.LC19:
	.long	0
	.long	1104006501
	.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 <stdio.h>
#include <stdlib.h>
#include <vector>
#include <thread>
#include <fstream>
#include <string>
#include <chrono>
#include <ctime>
#include <cmath>
#include <hip/hip_runtime.h>
#include <sstream>



#define M_PI 3.14159265358979323846 // Pi constant with double precision

using namespace std;

#define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LINE__); }
const float PI = 3.14159265358979323846;
//////////////////////////////////////////////////////////////////////////////////////////////
class Complex_cuda{
public:
    __device__ __host__ Complex_cuda();
    __device__ __host__ Complex_cuda(float r, float i);
    __device__ __host__ Complex_cuda(float r);
    __device__ __host__ Complex_cuda operator+(const Complex_cuda& b) const;
    __device__ __host__ Complex_cuda operator-(const Complex_cuda& b) const;
    __device__ __host__ Complex_cuda operator*(const Complex_cuda& b) const;

    __device__ __host__ Complex_cuda mag() const;
    __device__ __host__ Complex_cuda angle() const;
    __device__ __host__ Complex_cuda conj() const;

    float real;
    float imag;
};

//std::ostream& operator<<(std::ostream& os, const Complex_cuda& rhs);

__device__ __host__ Complex_cuda::Complex_cuda() : real(0.0f), imag(0.0f) {}

__device__ __host__ Complex_cuda::Complex_cuda(float r) : real(r), imag(0.0f) {}

__device__ __host__ Complex_cuda::Complex_cuda(float r, float i) : real(r), imag(i) {}

__device__ __host__ Complex_cuda Complex_cuda::operator+(const Complex_cuda &b) const {
	return Complex_cuda(this->real + b.real, this->imag + b.imag);
}

__device__ __host__ Complex_cuda Complex_cuda::operator-(const Complex_cuda &b) const {
	return Complex_cuda(this->real - b.real, this->imag - b.imag);
}

__device__ __host__ Complex_cuda Complex_cuda::operator*(const Complex_cuda &b) const {
	return Complex_cuda(this->real * b.real - this->imag * b.imag, this->real * b.imag + this->imag * b.real);
}

__device__ __host__ Complex_cuda Complex_cuda::mag() const {
	return Complex_cuda(sqrt(pow(this->real, 2.0) + pow(this->imag, 2.0)));
}

__device__ __host__ Complex_cuda Complex_cuda::angle() const {
	if (this->imag > 0) return Complex_cuda(acos(this->real / this->mag().real));
	if (this->imag < 0) return Complex_cuda(-acos(this->real / this->mag().real));
	if (this->real > 0 && this->imag == 0) return Complex_cuda(0);
	return Complex_cuda(PI);
}

__device__ __host__ Complex_cuda Complex_cuda::conj() const {
	return Complex_cuda(this->real, -this->imag);
}

std::ostream& operator<< (std::ostream& os, const Complex_cuda& rhs) {
    Complex_cuda c(rhs);
    if(fabsf(rhs.imag) < 1e-5) c.imag = 0.0f;
    if(fabsf(rhs.real) < 1e-5) c.real = 0.0f;

    if(c.imag == 0) {
        os << c.real;
    }
    else {
        os << "(" << c.real << "," << c.imag << ")";
    }
    return os;
}

/////////////////////////////////////////////////////////////////////////////////////////////
class InputImage {
public:

    InputImage(const char* filename);
    int get_width() const;
    int get_height() const;

    //returns a pointer to the image data.  Note the return is a 1D
    //array which represents a 2D image.  The data for row 1 is
    //immediately following the data for row 0 in the 1D array
    Complex_cuda* get_image_data() const;

    //use this to save output from forward DFT
    void save_image_data(const char* filename, Complex_cuda* d, int w, int h);
    //use this to save output from reverse DFT
    void save_image_data_real(const char* filename, Complex_cuda* d, int w, int h);

private:
    int w;
    int h;
    Complex_cuda* data;
};


InputImage::InputImage(const char* filename) {
    std::ifstream ifs(filename);
    if(!ifs) {
        std::cout << "Can't open image file " << filename << std::endl;
        exit(1);
    }

    ifs >> w >> h;
    data = new Complex_cuda[w * h];
    for(int r = 0; r < h; ++r) {
        for(int c = 0; c < w; ++c) {
            float real;
            ifs >> real;
            data[r * w + c] = Complex_cuda(real);
        }

    }
}

int InputImage::get_width() const {
    return w;
}

int InputImage::get_height() const {
    return h;
}

Complex_cuda* InputImage::get_image_data() const {
    return data;
}

void InputImage::save_image_data(const char *filename, Complex_cuda *d, int w, int h) {
    std::ofstream ofs(filename);
    if(!ofs) {
        std::cout << "Can't create output image " << filename << std::endl;
        return;
    }

    ofs << w << " " << h << std::endl;

    for(int r = 0; r < h; ++r) {
        for(int c = 0; c < w; ++c) {
            ofs << d[r * w + c] << " ";
        }
        ofs << std::endl;
    }
}

void InputImage::save_image_data_real(const char* filename, Complex_cuda* d, int w, int h) {
    std::ofstream ofs(filename);
    if(!ofs) {
        std::cout << "Can't create output image " << filename << std::endl;
        return;
    }

    ofs << w << " " << h << std::endl;

    for (int r = 0; r < h; ++r) {
        for (int c = 0; c < w; ++c) {
            ofs << d[r * w + c].real << " ";
        }
        ofs << std::endl;
    }
}
/////////////////////////////////////////////////////////////////////////////////////////////




inline void gpuAssert(hipError_t code, char *file, int line, bool abort=true)
{
    if (code != hipSuccess) 
    {
        fprintf(stderr,"GPUassert: %s %s %d\n", hipGetErrorString(code), file, line);
        if (abort) getchar();
    }
}


int Divup(int a, int b)
{

    if (a % b)
    {
        return a / b + 1; /* add in additional block */
    }
    else
    {
        return a / b; /* divides cleanly */
    }
}


__global__ void fft(Complex_cuda *a, int num_col);
__global__ void ifft(Complex_cuda *a, int num_col);
__device__ void transpose(Complex_cuda *Matrix, int num_col);

__global__ void fft(Complex_cuda *a, Complex_cuda *omega, int num_col)
{
    int x = blockIdx.x * blockDim.x + threadIdx.x;

    for(int i=0; i<num_col; i++)  
    {
        //printf("0: i=%d, x=%d, num_col=%d\n", i, x, num_col);
        omega[i] = Complex_cuda(cos(2*M_PI/(float)num_col*i), -sin(2*M_PI/(float)num_col*i));
    }

    //printf("1: x=%d\n", x);
    for(int i=0, j=0; i<num_col; ++i)  
    {
        if (i>j)  
        {
            Complex_cuda tmp = a[x*num_col+i];
            a[x*num_col+i] = a[x*num_col+j];
            a[x*num_col+j] = tmp;
        }
		for(int l=num_col>>1; (j^=l)<l; l>>=1);
	}

    //printf("2: x=%d\n", x);
    for(int l=2; l<=num_col; l<<=1)  
    {
        int m = l/2;
        for(Complex_cuda *p=a; p!=a+num_col; p=p+l)  
        {
            for(int i=0; i<m; ++i)  
            {
                Complex_cuda t = omega[num_col/l*i] * p[x*num_col+m+i];
                p[x*num_col+m+i] = p[x*num_col+i] - t ;
                p[x*num_col+i] = p[x*num_col+i] + t ;
            }
        }
    }
    //printf("3: x=%d\n", x);
    __syncthreads();
    transpose(a, num_col); /* get transpose result and do fft again == do fft on another axis*/
    __syncthreads();

    //printf("4: x=%d\n", x);
    for(int i=0, j=0 ; i<num_col ; ++i)  
    {
        if (i>j)  
        {
            Complex_cuda tmp = a[x*num_col+i];
            a[x*num_col+i] = a[x*num_col+j];
            a[x*num_col+j] = tmp;
        }
		for(int l=num_col>>1; (j^=l)<l; l>>=1);
	}
    //printf("5: x=%d\n", x);
    for(int l=2; l<=num_col; l<<=1)  
    {
        int m = l/2;
        for(Complex_cuda *p=a; p!=a+num_col; p=p+l)  
        {
            for(int i=0; i<m; ++i)  
            {
                Complex_cuda t = omega[num_col/l*i] * p[x*num_col+m+i];
                p[x*num_col+m+i] = p[x*num_col+i] - t ;
                p[x*num_col+i] = p[x*num_col+i] + t ;
            }
        }
    }
    //printf("6: x=%d\n", x);
    transpose(a, num_col);
    __syncthreads();
}

__global__ void ifft(Complex_cuda *a, Complex_cuda *omega_inverse, int num_col)
{
    int x = blockIdx.x * blockDim.x + threadIdx.x;

    for(int i=0; i<num_col; ++ i)  {
        omega_inverse[i] = Complex_cuda(cos(2*M_PI/num_col*i), -sin(2*M_PI/num_col*i)).conj();
    }

    for(int i=0, j=0; i<num_col ; ++i)  
    {
        if (i>j)  
        {
            Complex_cuda tmp = a[x*num_col+i];
            a[x*num_col+i] = a[x*num_col+j];
            a[x*num_col+j] = tmp;
        }
		for(int l=num_col>>1; (j^=l)<l; l>>=1);
	}

    for(int l=2; l<=num_col; l<<=1)  
    {
        int m = l/2;
        for(Complex_cuda *p=a; p!=a+num_col; p=p+l)  
        {
            for(int i=0; i<m; ++i)  
            {
                Complex_cuda t = omega_inverse[num_col/l*i] * p[x*num_col+m+i];
                p[x*num_col+m+i] = p[x*num_col+i] - t ;
                p[x*num_col+i] = p[x*num_col+i] + t ;
            }
        }
    }

    __syncthreads();
    transpose(a, num_col); /* get transpose result and do ifft again == do ifft on another axis*/
    __syncthreads();

    for(int i=0, j=0; i<num_col ; ++i)  
    {
        if (i>j)  
        {
            Complex_cuda tmp = a[x*num_col+i];
            a[x*num_col+i] = a[x*num_col+j];
            a[x*num_col+j] = tmp;
        }
		for(int l=num_col>>1; (j^=l)<l; l>>=1);
	}

    for(int l=2; l<=num_col; l<<=1)  
    {
        int m = l/2;
        for(Complex_cuda *p=a; p!=a+num_col; p=p+l)  
        {
            for(int i=0; i<m; ++i)  
            {
                Complex_cuda t = omega_inverse[num_col/l*i] * p[x*num_col+m+i];
                p[x*num_col+m+i] = p[x*num_col+i] - t ;
                p[x*num_col+i] = p[x*num_col+i] + t ;
            }
        }
    }
    transpose(a, num_col);
    __syncthreads();

}

__device__ void transpose(Complex_cuda *Matrix, int num_col)
{    
    const int x = blockIdx.x * blockDim.x + threadIdx.x ;  
    for(int i=x+1; i<num_col; i++)
    {
        Complex_cuda tmp = Matrix[x*num_col+i];        
        Matrix[x*num_col+i]=Matrix[i*num_col+x];        
        Matrix[i*num_col+x]=tmp;
    }   
}



int main(int argc, char* argv[]) {
	int dir = (strcmp(argv[1], "forward") == 0) ? 1 : -1;
	char *inputFile = argv[2];
	char *outputFile = argv[3];
	InputImage inImage(inputFile);
	int width = inImage.get_width();
    int height = inImage.get_height();
    
	cout << "width = " << width << ", height = " << height << '\n';

	if (dir == 1) { // forward
        Complex_cuda *h = inImage.get_image_data();
		Complex_cuda *X = (Complex_cuda*)malloc(width * height * sizeof(Complex_cuda));
        Complex_cuda *h_cuda;
        hipMalloc((void **)&h_cuda, width * height * sizeof(Complex_cuda));
        Complex_cuda* omega = (Complex_cuda *)malloc(width*sizeof(Complex_cuda));
        Complex_cuda* omega_cuda;
        hipMalloc((void **)&omega_cuda, width * sizeof(Complex_cuda));
		
		for (int i = 0; i < width * height; ++i) {
			X[i] = 0;
		}
		cout << "Start clokcing...\n";
		chrono::steady_clock::time_point tStart = chrono::steady_clock::now();

        int block_size = (height>512)?(512):(height);
        dim3 grid(Divup(height,block_size),1);    
        dim3 block(block_size,1);
        hipMemcpy(h_cuda, h, width*height*sizeof(Complex_cuda), hipMemcpyHostToDevice);
        hipMemcpy(omega_cuda, omega, width*sizeof(Complex_cuda), hipMemcpyHostToDevice);

        fft <<<grid, block>>>(h_cuda, omega_cuda, width);
        gpuErrchk(hipPeekAtLastError());
        gpuErrchk(hipDeviceSynchronize());
        hipMemcpy(X, h_cuda, width*height*sizeof(Complex_cuda), hipMemcpyDeviceToHost);


		chrono::steady_clock::time_point tEnd = chrono::steady_clock::now();
		chrono::duration<double> time_span = chrono::duration_cast<chrono::duration<double>>(tEnd - tStart);
		cout << "Time ellipsed: " << time_span.count() << " seconds... \n";
		cout << "Printing results...\n";
		inImage.save_image_data(outputFile, X, width, height);
        free(h); 
        free(X);
        hipFree(h_cuda);
	}
	else { // reverse DFT
		Complex_cuda *H = inImage.get_image_data();
        Complex_cuda *h = (Complex_cuda *)malloc(width*height*sizeof(Complex_cuda));
        Complex_cuda *H_cuda;
        Complex_cuda* omega_inverse = (Complex_cuda *)malloc(width*sizeof(Complex_cuda));
        Complex_cuda* omega_inverse_cuda;
        hipMalloc((void **)&H_cuda, width * height * sizeof(Complex_cuda));
        hipMalloc((void **)&omega_inverse_cuda, width * sizeof(Complex_cuda));
        
		cout << "Start clokcing...\n";
        chrono::steady_clock::time_point tStart = chrono::steady_clock::now();
        
        int block_size = (height>512)?(512):(height);
        dim3 grid(Divup(height,block_size),1);    
        dim3 block(block_size,1);
        hipMemcpy(H_cuda, H, width*height*sizeof(Complex_cuda), hipMemcpyHostToDevice);
        hipMemcpy(omega_inverse_cuda, omega_inverse, width*sizeof(Complex_cuda), hipMemcpyHostToDevice);
        
        ifft<<<grid, block>>>(H_cuda, omega_inverse_cuda, width);
      
		hipMemcpy(h, H_cuda, width*height*sizeof(Complex_cuda), hipMemcpyDeviceToHost);

		chrono::steady_clock::time_point tEnd = chrono::steady_clock::now();
		chrono::duration<double> time_span = chrono::duration_cast<chrono::duration<double>>(tEnd - tStart);
		cout << "Time ellipsed: " << time_span.count() << " seconds... \n";
		cout << "Printing results...\n";
        inImage.save_image_data_real(outputFile, h, width, height);
        free(H); 
        free(h);
        hipFree(H_cuda); 
	}

	cout << "finished...\n";
	return 0;
}

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

                                        # End of file scope inline assembly
	.globl	_ZN12Complex_cudaC2Ev           # -- Begin function _ZN12Complex_cudaC2Ev
	.p2align	1, 0x90
	.type	_ZN12Complex_cudaC2Ev,@function
_ZN12Complex_cudaC2Ev:                  # @_ZN12Complex_cudaC2Ev
	.cfi_startproc
# %bb.0:
	movq	$0, (%rdi)
	retq
.Lfunc_end0:
	.size	_ZN12Complex_cudaC2Ev, .Lfunc_end0-_ZN12Complex_cudaC2Ev
	.cfi_endproc
                                        # -- End function
	.globl	_ZN12Complex_cudaC2Ef           # -- Begin function _ZN12Complex_cudaC2Ef
	.p2align	1, 0x90
	.type	_ZN12Complex_cudaC2Ef,@function
_ZN12Complex_cudaC2Ef:                  # @_ZN12Complex_cudaC2Ef
	.cfi_startproc
# %bb.0:
	movss	%xmm0, (%rdi)
	movl	$0, 4(%rdi)
	retq
.Lfunc_end1:
	.size	_ZN12Complex_cudaC2Ef, .Lfunc_end1-_ZN12Complex_cudaC2Ef
	.cfi_endproc
                                        # -- End function
	.globl	_ZN12Complex_cudaC2Eff          # -- Begin function _ZN12Complex_cudaC2Eff
	.p2align	1, 0x90
	.type	_ZN12Complex_cudaC2Eff,@function
_ZN12Complex_cudaC2Eff:                 # @_ZN12Complex_cudaC2Eff
	.cfi_startproc
# %bb.0:
	movss	%xmm0, (%rdi)
	movss	%xmm1, 4(%rdi)
	retq
.Lfunc_end2:
	.size	_ZN12Complex_cudaC2Eff, .Lfunc_end2-_ZN12Complex_cudaC2Eff
	.cfi_endproc
                                        # -- End function
	.globl	_ZNK12Complex_cudaplERKS_       # -- Begin function _ZNK12Complex_cudaplERKS_
	.p2align	1, 0x90
	.type	_ZNK12Complex_cudaplERKS_,@function
_ZNK12Complex_cudaplERKS_:              # @_ZNK12Complex_cudaplERKS_
	.cfi_startproc
# %bb.0:
	movss	(%rdi), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	4(%rdi), %xmm1                  # xmm1 = mem[0],zero,zero,zero
	addss	(%rsi), %xmm0
	addss	4(%rsi), %xmm1
	unpcklps	%xmm1, %xmm0                    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
	retq
.Lfunc_end3:
	.size	_ZNK12Complex_cudaplERKS_, .Lfunc_end3-_ZNK12Complex_cudaplERKS_
	.cfi_endproc
                                        # -- End function
	.globl	_ZNK12Complex_cudamiERKS_       # -- Begin function _ZNK12Complex_cudamiERKS_
	.p2align	1, 0x90
	.type	_ZNK12Complex_cudamiERKS_,@function
_ZNK12Complex_cudamiERKS_:              # @_ZNK12Complex_cudamiERKS_
	.cfi_startproc
# %bb.0:
	movss	(%rdi), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	4(%rdi), %xmm1                  # xmm1 = mem[0],zero,zero,zero
	subss	(%rsi), %xmm0
	subss	4(%rsi), %xmm1
	unpcklps	%xmm1, %xmm0                    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
	retq
.Lfunc_end4:
	.size	_ZNK12Complex_cudamiERKS_, .Lfunc_end4-_ZNK12Complex_cudamiERKS_
	.cfi_endproc
                                        # -- End function
	.globl	_ZNK12Complex_cudamlERKS_       # -- Begin function _ZNK12Complex_cudamlERKS_
	.p2align	1, 0x90
	.type	_ZNK12Complex_cudamlERKS_,@function
_ZNK12Complex_cudamlERKS_:              # @_ZNK12Complex_cudamlERKS_
	.cfi_startproc
# %bb.0:
	movss	(%rdi), %xmm1                   # xmm1 = mem[0],zero,zero,zero
	movss	4(%rdi), %xmm2                  # xmm2 = mem[0],zero,zero,zero
	movss	(%rsi), %xmm3                   # xmm3 = mem[0],zero,zero,zero
	movss	4(%rsi), %xmm4                  # xmm4 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm0
	mulss	%xmm3, %xmm0
	mulss	%xmm2, %xmm3
	mulss	%xmm4, %xmm2
	subss	%xmm2, %xmm0
	mulss	%xmm4, %xmm1
	addss	%xmm3, %xmm1
	unpcklps	%xmm1, %xmm0                    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
	retq
.Lfunc_end5:
	.size	_ZNK12Complex_cudamlERKS_, .Lfunc_end5-_ZNK12Complex_cudamlERKS_
	.cfi_endproc
                                        # -- End function
	.globl	_ZNK12Complex_cuda3magEv        # -- Begin function _ZNK12Complex_cuda3magEv
	.p2align	1, 0x90
	.type	_ZNK12Complex_cuda3magEv,@function
_ZNK12Complex_cuda3magEv:               # @_ZNK12Complex_cuda3magEv
	.cfi_startproc
# %bb.0:
	cvtss2sd	(%rdi), %xmm0
	mulsd	%xmm0, %xmm0
	cvtss2sd	4(%rdi), %xmm1
	mulsd	%xmm1, %xmm1
	addsd	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
	sqrtsd	%xmm1, %xmm0
	xorps	%xmm1, %xmm1
	cvtsd2ss	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
	movss	%xmm1, %xmm0                    # xmm0 = xmm1[0],xmm0[1,2,3]
	retq
.Lfunc_end6:
	.size	_ZNK12Complex_cuda3magEv, .Lfunc_end6-_ZNK12Complex_cuda3magEv
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function _ZNK12Complex_cuda5angleEv
.LCPI7_0:
	.long	0x40490fdb                      # float 3.14159274
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0
.LCPI7_1:
	.long	0x80000000                      # float -0
	.long	0x80000000                      # float -0
	.long	0x80000000                      # float -0
	.long	0x80000000                      # float -0
	.text
	.globl	_ZNK12Complex_cuda5angleEv
	.p2align	1, 0x90
	.type	_ZNK12Complex_cuda5angleEv,@function
_ZNK12Complex_cuda5angleEv:             # @_ZNK12Complex_cuda5angleEv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movss	4(%rdi), %xmm1                  # xmm1 = mem[0],zero,zero,zero
	xorps	%xmm0, %xmm0
	ucomiss	%xmm0, %xmm1
	jbe	.LBB7_3
# %bb.1:
	movss	(%rdi), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	cvtss2sd	%xmm0, %xmm2
	mulsd	%xmm2, %xmm2
	cvtss2sd	%xmm1, %xmm1
	mulsd	%xmm1, %xmm1
	addsd	%xmm2, %xmm1
	sqrtsd	%xmm1, %xmm1
	cvtsd2ss	%xmm1, %xmm1
	divss	%xmm1, %xmm0
	callq	acosf
	jmp	.LBB7_2
.LBB7_3:
	ucomiss	%xmm1, %xmm0
	movss	(%rdi), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	jbe	.LBB7_5
# %bb.4:
	cvtss2sd	%xmm0, %xmm2
	mulsd	%xmm2, %xmm2
	cvtss2sd	%xmm1, %xmm1
	mulsd	%xmm1, %xmm1
	addsd	%xmm2, %xmm1
	sqrtsd	%xmm1, %xmm1
	cvtsd2ss	%xmm1, %xmm1
	divss	%xmm1, %xmm0
	callq	acosf
	xorps	.LCPI7_1(%rip), %xmm0
.LBB7_2:
	xorps	%xmm1, %xmm1
	movss	%xmm0, %xmm1                    # xmm1 = xmm0[0],xmm1[1,2,3]
.LBB7_8:
	movaps	%xmm1, %xmm0
	popq	%rax
	.cfi_def_cfa_offset 8
	retq
.LBB7_5:
	.cfi_def_cfa_offset 16
	xorps	%xmm2, %xmm2
	ucomiss	%xmm2, %xmm1
	jne	.LBB7_7
	jp	.LBB7_7
# %bb.6:
	xorps	%xmm1, %xmm1
	ucomiss	%xmm2, %xmm0
	ja	.LBB7_8
.LBB7_7:
	movss	.LCPI7_0(%rip), %xmm1           # xmm1 = mem[0],zero,zero,zero
	jmp	.LBB7_8
.Lfunc_end7:
	.size	_ZNK12Complex_cuda5angleEv, .Lfunc_end7-_ZNK12Complex_cuda5angleEv
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function _ZNK12Complex_cuda4conjEv
.LCPI8_0:
	.long	0x80000000                      # float -0
	.long	0x80000000                      # float -0
	.long	0x80000000                      # float -0
	.long	0x80000000                      # float -0
	.text
	.globl	_ZNK12Complex_cuda4conjEv
	.p2align	1, 0x90
	.type	_ZNK12Complex_cuda4conjEv,@function
_ZNK12Complex_cuda4conjEv:              # @_ZNK12Complex_cuda4conjEv
	.cfi_startproc
# %bb.0:
	movss	(%rdi), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	4(%rdi), %xmm1                  # xmm1 = mem[0],zero,zero,zero
	xorps	.LCPI8_0(%rip), %xmm1
	unpcklps	%xmm1, %xmm0                    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
	retq
.Lfunc_end8:
	.size	_ZNK12Complex_cuda4conjEv, .Lfunc_end8-_ZNK12Complex_cuda4conjEv
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function _ZlsRSoRK12Complex_cuda
.LCPI9_0:
	.long	0x7fffffff                      # float NaN
	.long	0x7fffffff                      # float NaN
	.long	0x7fffffff                      # float NaN
	.long	0x7fffffff                      # float NaN
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0
.LCPI9_1:
	.quad	0x3ee4f8b588e368f1              # double 1.0000000000000001E-5
	.text
	.globl	_ZlsRSoRK12Complex_cuda
	.type	_ZlsRSoRK12Complex_cuda,@function
_ZlsRSoRK12Complex_cuda:                # @_ZlsRSoRK12Complex_cuda
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movq	%rdi, %rbx
	movss	(%rsi), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	4(%rsi), %xmm4                  # xmm4 = mem[0],zero,zero,zero
	movaps	.LCPI9_0(%rip), %xmm2           # xmm2 = [NaN,NaN,NaN,NaN]
	movaps	%xmm4, %xmm1
	andps	%xmm2, %xmm1
	cvtss2sd	%xmm1, %xmm1
	movsd	.LCPI9_1(%rip), %xmm3           # xmm3 = mem[0],zero
	ucomisd	%xmm1, %xmm3
	xorps	%xmm1, %xmm1
	xorps	%xmm5, %xmm5
	ja	.LBB9_2
# %bb.1:
	movaps	%xmm4, %xmm5
.LBB9_2:
	andps	%xmm0, %xmm2
	cvtss2sd	%xmm2, %xmm2
	ucomisd	%xmm2, %xmm3
	xorps	%xmm2, %xmm2
	ja	.LBB9_4
# %bb.3:
	movaps	%xmm0, %xmm2
.LBB9_4:
	ucomiss	%xmm1, %xmm5
	jne	.LBB9_6
	jp	.LBB9_6
# %bb.5:
	xorps	%xmm0, %xmm0
	cvtss2sd	%xmm2, %xmm0
	movq	%rbx, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
	jmp	.LBB9_7
.LBB9_6:
	movl	$.L.str, %esi
	movl	$1, %edx
	movq	%rbx, %rdi
	movss	%xmm5, 4(%rsp)                  # 4-byte Spill
	movss	%xmm2, (%rsp)                   # 4-byte Spill
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rsp), %xmm0                   # 4-byte Folded Reload
	movq	%rbx, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %r14
	movl	$.L.str.1, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	xorps	%xmm0, %xmm0
	cvtss2sd	4(%rsp), %xmm0                  # 4-byte Folded Reload
	movq	%r14, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
	movl	$.L.str.2, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.LBB9_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end9:
	.size	_ZlsRSoRK12Complex_cuda, .Lfunc_end9-_ZlsRSoRK12Complex_cuda
	.cfi_endproc
                                        # -- End function
	.globl	_ZN10InputImageC2EPKc           # -- Begin function _ZN10InputImageC2EPKc
	.p2align	1, 0x90
	.type	_ZN10InputImageC2EPKc,@function
_ZN10InputImageC2EPKc:                  # @_ZN10InputImageC2EPKc
.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	$552, %rsp                      # imm = 0x228
	.cfi_def_cfa_offset 608
	.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, %r14
	movq	%rdi, %rbx
	leaq	32(%rsp), %r15
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
	movq	(%r15), %rax
	movq	-24(%rax), %rax
	testb	$5, 64(%rsp,%rax)
	jne	.LBB10_1
# %bb.6:
.Ltmp6:
	leaq	32(%rsp), %rdi
	movq	%rbx, %rsi
	callq	_ZNSirsERi
.Ltmp7:
# %bb.7:
	leaq	4(%rbx), %rsi
.Ltmp8:
	movq	%rax, %rdi
	movq	%rsi, 16(%rsp)                  # 8-byte Spill
	callq	_ZNSirsERi
.Ltmp9:
# %bb.8:
	movl	(%rbx), %ebp
	movl	4(%rbx), %r13d
	movl	%r13d, %r14d
	imull	%ebp, %r14d
	movslq	%r14d, %rax
	leaq	(,%rax,8), %r15
	testl	%eax, %eax
	movq	$-1, %rdi
	cmovnsq	%r15, %rdi
.Ltmp10:
	callq	_Znam
.Ltmp11:
# %bb.9:
	movq	%rax, %r12
	testl	%r14d, %r14d
	je	.LBB10_11
# %bb.10:                               # %.loopexit.loopexit
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	memset@PLT
.LBB10_11:                              # %.loopexit
	movq	%r12, 8(%rbx)
	testl	%r13d, %r13d
	jle	.LBB10_19
# %bb.12:                               # %.preheader.preheader
	xorl	%eax, %eax
	leaq	32(%rsp), %r15
	leaq	12(%rsp), %r12
.LBB10_13:                              # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB10_15 Depth 2
	testl	%ebp, %ebp
	jle	.LBB10_18
# %bb.14:                               # %.lr.ph.preheader
                                        #   in Loop: Header=BB10_13 Depth=1
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	movslq	%eax, %r13
	xorl	%r14d, %r14d
.LBB10_15:                              # %.lr.ph
                                        #   Parent Loop BB10_13 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
.Ltmp13:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ZNSi10_M_extractIfEERSiRT_
.Ltmp14:
# %bb.16:                               # %_ZNSirsERf.exit
                                        #   in Loop: Header=BB10_15 Depth=2
	movl	12(%rsp), %eax
	movq	8(%rbx), %rcx
	movslq	(%rbx), %rdx
	imulq	%r13, %rdx
	addq	%r14, %rdx
	movl	%eax, (%rcx,%rdx,8)
	movl	$0, 4(%rcx,%rdx,8)
	movl	(%rbx), %ebp
	incq	%r14
	cmpl	%ebp, %r14d
	jl	.LBB10_15
# %bb.17:                               # %._crit_edge.loopexit
                                        #   in Loop: Header=BB10_13 Depth=1
	movq	16(%rsp), %rax                  # 8-byte Reload
	movl	(%rax), %r13d
	movq	24(%rsp), %rax                  # 8-byte Reload
.LBB10_18:                              # %._crit_edge
                                        #   in Loop: Header=BB10_13 Depth=1
	incl	%eax
	cmpl	%r13d, %eax
	jl	.LBB10_13
.LBB10_19:                              # %._crit_edge20
	leaq	32(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	addq	$552, %rsp                      # imm = 0x228
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB10_1:
	.cfi_def_cfa_offset 608
.Ltmp0:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.3, %esi
	movl	$22, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp1:
# %bb.2:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
.Ltmp2:
	movl	$_ZSt4cout, %edi
	movq	%r14, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp3:
# %bb.3:
.Ltmp4:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp5:
# %bb.4:                                # %_ZNSolsEPFRSoS_E.exit
	movl	$1, %edi
	callq	exit
.LBB10_5:
.Ltmp12:
	jmp	.LBB10_21
.LBB10_20:
.Ltmp15:
.LBB10_21:
	movq	%rax, %rbx
	leaq	32(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end10:
	.size	_ZN10InputImageC2EPKc, .Lfunc_end10-_ZN10InputImageC2EPKc
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table10:
.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 .Ltmp6-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp6
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp6-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp11-.Ltmp6                 #   Call between .Ltmp6 and .Ltmp11
	.uleb128 .Ltmp12-.Lfunc_begin0          #     jumps to .Ltmp12
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp11-.Lfunc_begin0          # >> Call Site 3 <<
	.uleb128 .Ltmp13-.Ltmp11                #   Call between .Ltmp11 and .Ltmp13
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp13-.Lfunc_begin0          # >> Call Site 4 <<
	.uleb128 .Ltmp14-.Ltmp13                #   Call between .Ltmp13 and .Ltmp14
	.uleb128 .Ltmp15-.Lfunc_begin0          #     jumps to .Ltmp15
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 5 <<
	.uleb128 .Ltmp5-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp5
	.uleb128 .Ltmp12-.Lfunc_begin0          #     jumps to .Ltmp12
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp5-.Lfunc_begin0           # >> Call Site 6 <<
	.uleb128 .Lfunc_end10-.Ltmp5            #   Call between .Ltmp5 and .Lfunc_end10
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_ZNK10InputImage9get_widthEv    # -- Begin function _ZNK10InputImage9get_widthEv
	.p2align	1, 0x90
	.type	_ZNK10InputImage9get_widthEv,@function
_ZNK10InputImage9get_widthEv:           # @_ZNK10InputImage9get_widthEv
	.cfi_startproc
# %bb.0:
	movl	(%rdi), %eax
	retq
.Lfunc_end11:
	.size	_ZNK10InputImage9get_widthEv, .Lfunc_end11-_ZNK10InputImage9get_widthEv
	.cfi_endproc
                                        # -- End function
	.globl	_ZNK10InputImage10get_heightEv  # -- Begin function _ZNK10InputImage10get_heightEv
	.p2align	1, 0x90
	.type	_ZNK10InputImage10get_heightEv,@function
_ZNK10InputImage10get_heightEv:         # @_ZNK10InputImage10get_heightEv
	.cfi_startproc
# %bb.0:
	movl	4(%rdi), %eax
	retq
.Lfunc_end12:
	.size	_ZNK10InputImage10get_heightEv, .Lfunc_end12-_ZNK10InputImage10get_heightEv
	.cfi_endproc
                                        # -- End function
	.globl	_ZNK10InputImage14get_image_dataEv # -- Begin function _ZNK10InputImage14get_image_dataEv
	.p2align	1, 0x90
	.type	_ZNK10InputImage14get_image_dataEv,@function
_ZNK10InputImage14get_image_dataEv:     # @_ZNK10InputImage14get_image_dataEv
	.cfi_startproc
# %bb.0:
	movq	8(%rdi), %rax
	retq
.Lfunc_end13:
	.size	_ZNK10InputImage14get_image_dataEv, .Lfunc_end13-_ZNK10InputImage14get_image_dataEv
	.cfi_endproc
                                        # -- End function
	.globl	_ZN10InputImage15save_image_dataEPKcP12Complex_cudaii # -- Begin function _ZN10InputImage15save_image_dataEPKcP12Complex_cudaii
	.p2align	1, 0x90
	.type	_ZN10InputImage15save_image_dataEPKcP12Complex_cudaii,@function
_ZN10InputImage15save_image_dataEPKcP12Complex_cudaii: # @_ZN10InputImage15save_image_dataEPKcP12Complex_cudaii
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %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	$536, %rsp                      # imm = 0x218
	.cfi_def_cfa_offset 592
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	%r8d, %ebp
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rsi, %r15
	leaq	24(%rsp), %r12
	movq	%r12, %rdi
	movl	$16, %edx
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
	movq	(%r12), %rax
	movq	-24(%rax), %rax
	testb	$5, 56(%rsp,%rax)
	je	.LBB14_8
# %bb.1:
.Ltmp16:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.4, %esi
	movl	$26, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp17:
# %bb.2:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
	testq	%r15, %r15
	je	.LBB14_3
# %bb.4:
	movq	%r15, %rdi
	callq	strlen
.Ltmp18:
	movl	$_ZSt4cout, %edi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp19:
	jmp	.LBB14_5
.LBB14_8:
.Ltmp28:
	movq	%r14, 8(%rsp)                   # 8-byte Spill
	leaq	24(%rsp), %r15
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ZNSolsEi
.Ltmp29:
# %bb.9:
.Ltmp30:
	movq	%rax, %r12
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp31:
# %bb.10:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit28
.Ltmp32:
	movq	%r12, %rdi
	movl	%ebp, %esi
	callq	_ZNSolsEi
.Ltmp33:
# %bb.11:
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
.Ltmp34:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp35:
# %bb.12:                               # %.noexc38
.Ltmp36:
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_ZNSo3putEc
.Ltmp37:
# %bb.13:                               # %.noexc39
.Ltmp38:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp39:
# %bb.14:                               # %_ZNSolsEPFRSoS_E.exit30.preheader
	testl	%ebp, %ebp
	jle	.LBB14_25
# %bb.15:                               # %.preheader.lr.ph
	movl	%ebp, %eax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movl	%ebx, %eax
	movq	%rax, (%rsp)                    # 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%ebp, %ebp
.LBB14_16:                              # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB14_18 Depth 2
	testl	%ebx, %ebx
	jle	.LBB14_21
# %bb.17:                               #   in Loop: Header=BB14_16 Depth=1
	movl	%r14d, %eax
	movq	8(%rsp), %rcx                   # 8-byte Reload
	leaq	(%rcx,%rax,8), %r12
	movq	(%rsp), %r13                    # 8-byte Reload
.LBB14_18:                              #   Parent Loop BB14_16 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
.Ltmp41:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ZlsRSoRK12Complex_cuda
.Ltmp42:
# %bb.19:                               #   in Loop: Header=BB14_18 Depth=2
.Ltmp43:
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%r15, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp44:
# %bb.20:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit34
                                        #   in Loop: Header=BB14_18 Depth=2
	addq	$8, %r12
	decq	%r13
	jne	.LBB14_18
.LBB14_21:                              # %._crit_edge
                                        #   in Loop: Header=BB14_16 Depth=1
	movq	24(%rsp), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
.Ltmp46:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp47:
# %bb.22:                               # %.noexc42
                                        #   in Loop: Header=BB14_16 Depth=1
.Ltmp48:
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_ZNSo3putEc
.Ltmp49:
# %bb.23:                               # %.noexc43
                                        #   in Loop: Header=BB14_16 Depth=1
.Ltmp50:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp51:
# %bb.24:                               # %_ZNSolsEPFRSoS_E.exit32
                                        #   in Loop: Header=BB14_16 Depth=1
	incq	%rbp
	addl	%ebx, %r14d
	cmpq	16(%rsp), %rbp                  # 8-byte Folded Reload
	jne	.LBB14_16
	jmp	.LBB14_25
.LBB14_3:
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rax
	leaq	_ZSt4cout(%rax), %rdi
	movl	32(%rdi), %esi
	orl	$1, %esi
.Ltmp20:
	callq	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate
.Ltmp21:
.LBB14_5:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit25
	movq	_ZSt4cout(%rip), %rax
	movl	$_ZSt4cout, %edi
	addq	-24(%rax), %rdi
.Ltmp22:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp23:
# %bb.6:                                # %.noexc35
.Ltmp24:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp25:
# %bb.7:                                # %.noexc36
.Ltmp26:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp27:
.LBB14_25:                              # %_ZNSolsEPFRSoS_E.exit
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE(%rip), %rax
	leaq	32(%rsp), %rdi
	movq	%rax, -8(%rdi)
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE+24(%rip), %rcx
	movq	-24(%rax), %rax
	movq	%rcx, 24(%rsp,%rax)
	callq	_ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev
	leaq	272(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	addq	$536, %rsp                      # imm = 0x218
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB14_26:
	.cfi_def_cfa_offset 592
.Ltmp40:
	jmp	.LBB14_27
.LBB14_29:
.Ltmp52:
	jmp	.LBB14_27
.LBB14_28:
.Ltmp45:
.LBB14_27:
	movq	%rax, %rbx
	leaq	24(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end14:
	.size	_ZN10InputImage15save_image_dataEPKcP12Complex_cudaii, .Lfunc_end14-_ZN10InputImage15save_image_dataEPKcP12Complex_cudaii
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table14:
.Lexception1:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end1-.Lcst_begin1
.Lcst_begin1:
	.uleb128 .Lfunc_begin1-.Lfunc_begin1    # >> Call Site 1 <<
	.uleb128 .Ltmp16-.Lfunc_begin1          #   Call between .Lfunc_begin1 and .Ltmp16
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp16-.Lfunc_begin1          # >> Call Site 2 <<
	.uleb128 .Ltmp39-.Ltmp16                #   Call between .Ltmp16 and .Ltmp39
	.uleb128 .Ltmp40-.Lfunc_begin1          #     jumps to .Ltmp40
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp41-.Lfunc_begin1          # >> Call Site 3 <<
	.uleb128 .Ltmp44-.Ltmp41                #   Call between .Ltmp41 and .Ltmp44
	.uleb128 .Ltmp45-.Lfunc_begin1          #     jumps to .Ltmp45
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp46-.Lfunc_begin1          # >> Call Site 4 <<
	.uleb128 .Ltmp51-.Ltmp46                #   Call between .Ltmp46 and .Ltmp51
	.uleb128 .Ltmp52-.Lfunc_begin1          #     jumps to .Ltmp52
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp20-.Lfunc_begin1          # >> Call Site 5 <<
	.uleb128 .Ltmp27-.Ltmp20                #   Call between .Ltmp20 and .Ltmp27
	.uleb128 .Ltmp40-.Lfunc_begin1          #     jumps to .Ltmp40
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp27-.Lfunc_begin1          # >> Call Site 6 <<
	.uleb128 .Lfunc_end14-.Ltmp27           #   Call between .Ltmp27 and .Lfunc_end14
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_ZN10InputImage20save_image_data_realEPKcP12Complex_cudaii # -- Begin function _ZN10InputImage20save_image_data_realEPKcP12Complex_cudaii
	.p2align	1, 0x90
	.type	_ZN10InputImage20save_image_data_realEPKcP12Complex_cudaii,@function
_ZN10InputImage20save_image_data_realEPKcP12Complex_cudaii: # @_ZN10InputImage20save_image_data_realEPKcP12Complex_cudaii
.Lfunc_begin2:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception2
# %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	$536, %rsp                      # imm = 0x218
	.cfi_def_cfa_offset 592
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	%r8d, %ebp
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rsi, %r15
	leaq	24(%rsp), %r12
	movq	%r12, %rdi
	movl	$16, %edx
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
	movq	(%r12), %rax
	movq	-24(%rax), %rax
	testb	$5, 56(%rsp,%rax)
	je	.LBB15_8
# %bb.1:
.Ltmp53:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.4, %esi
	movl	$26, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp54:
# %bb.2:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
	testq	%r15, %r15
	je	.LBB15_3
# %bb.4:
	movq	%r15, %rdi
	callq	strlen
.Ltmp55:
	movl	$_ZSt4cout, %edi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp56:
	jmp	.LBB15_5
.LBB15_8:
.Ltmp65:
	movq	%r14, 8(%rsp)                   # 8-byte Spill
	leaq	24(%rsp), %r15
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ZNSolsEi
.Ltmp66:
# %bb.9:
.Ltmp67:
	movq	%rax, %r12
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp68:
# %bb.10:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit28
.Ltmp69:
	movq	%r12, %rdi
	movl	%ebp, %esi
	callq	_ZNSolsEi
.Ltmp70:
# %bb.11:
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
.Ltmp71:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp72:
# %bb.12:                               # %.noexc39
.Ltmp73:
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_ZNSo3putEc
.Ltmp74:
# %bb.13:                               # %.noexc40
.Ltmp75:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp76:
# %bb.14:                               # %_ZNSolsEPFRSoS_E.exit30.preheader
	testl	%ebp, %ebp
	jle	.LBB15_25
# %bb.15:                               # %.preheader.lr.ph
	movl	%ebp, %eax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movl	%ebx, %r13d
	xorl	%ebp, %ebp
	xorl	%r14d, %r14d
	movl	%ebx, 4(%rsp)                   # 4-byte Spill
.LBB15_16:                              # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB15_18 Depth 2
	testl	%ebx, %ebx
	jle	.LBB15_21
# %bb.17:                               # %.lr.ph
                                        #   in Loop: Header=BB15_16 Depth=1
	movl	%ebp, %eax
	movq	8(%rsp), %rcx                   # 8-byte Reload
	leaq	(%rcx,%rax,8), %r12
	xorl	%ebx, %ebx
.LBB15_18:                              #   Parent Loop BB15_16 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	xorps	%xmm0, %xmm0
	cvtss2sd	(%r12,%rbx,8), %xmm0
.Ltmp78:
	movq	%r15, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp79:
# %bb.19:                               # %_ZNSolsEf.exit
                                        #   in Loop: Header=BB15_18 Depth=2
.Ltmp80:
	movl	$.L.str.5, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp81:
# %bb.20:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit35
                                        #   in Loop: Header=BB15_18 Depth=2
	incq	%rbx
	cmpq	%rbx, %r13
	jne	.LBB15_18
.LBB15_21:                              # %._crit_edge
                                        #   in Loop: Header=BB15_16 Depth=1
	movq	24(%rsp), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
.Ltmp83:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp84:
# %bb.22:                               # %.noexc43
                                        #   in Loop: Header=BB15_16 Depth=1
.Ltmp85:
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_ZNSo3putEc
.Ltmp86:
# %bb.23:                               # %.noexc44
                                        #   in Loop: Header=BB15_16 Depth=1
.Ltmp87:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp88:
# %bb.24:                               # %_ZNSolsEPFRSoS_E.exit32
                                        #   in Loop: Header=BB15_16 Depth=1
	incq	%r14
	movl	4(%rsp), %ebx                   # 4-byte Reload
	addl	%ebx, %ebp
	cmpq	16(%rsp), %r14                  # 8-byte Folded Reload
	jne	.LBB15_16
	jmp	.LBB15_25
.LBB15_3:
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rax
	leaq	_ZSt4cout(%rax), %rdi
	movl	32(%rdi), %esi
	orl	$1, %esi
.Ltmp57:
	callq	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate
.Ltmp58:
.LBB15_5:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit25
	movq	_ZSt4cout(%rip), %rax
	movl	$_ZSt4cout, %edi
	addq	-24(%rax), %rdi
.Ltmp59:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp60:
# %bb.6:                                # %.noexc36
.Ltmp61:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp62:
# %bb.7:                                # %.noexc37
.Ltmp63:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp64:
.LBB15_25:                              # %_ZNSolsEPFRSoS_E.exit
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE(%rip), %rax
	leaq	32(%rsp), %rdi
	movq	%rax, -8(%rdi)
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE+24(%rip), %rcx
	movq	-24(%rax), %rax
	movq	%rcx, 24(%rsp,%rax)
	callq	_ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev
	leaq	272(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	addq	$536, %rsp                      # imm = 0x218
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB15_26:
	.cfi_def_cfa_offset 592
.Ltmp77:
	jmp	.LBB15_27
.LBB15_29:
.Ltmp89:
	jmp	.LBB15_27
.LBB15_28:
.Ltmp82:
.LBB15_27:
	movq	%rax, %rbx
	leaq	24(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end15:
	.size	_ZN10InputImage20save_image_data_realEPKcP12Complex_cudaii, .Lfunc_end15-_ZN10InputImage20save_image_data_realEPKcP12Complex_cudaii
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table15:
.Lexception2:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end2-.Lcst_begin2
.Lcst_begin2:
	.uleb128 .Lfunc_begin2-.Lfunc_begin2    # >> Call Site 1 <<
	.uleb128 .Ltmp53-.Lfunc_begin2          #   Call between .Lfunc_begin2 and .Ltmp53
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp53-.Lfunc_begin2          # >> Call Site 2 <<
	.uleb128 .Ltmp76-.Ltmp53                #   Call between .Ltmp53 and .Ltmp76
	.uleb128 .Ltmp77-.Lfunc_begin2          #     jumps to .Ltmp77
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp78-.Lfunc_begin2          # >> Call Site 3 <<
	.uleb128 .Ltmp81-.Ltmp78                #   Call between .Ltmp78 and .Ltmp81
	.uleb128 .Ltmp82-.Lfunc_begin2          #     jumps to .Ltmp82
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp83-.Lfunc_begin2          # >> Call Site 4 <<
	.uleb128 .Ltmp88-.Ltmp83                #   Call between .Ltmp83 and .Ltmp88
	.uleb128 .Ltmp89-.Lfunc_begin2          #     jumps to .Ltmp89
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp57-.Lfunc_begin2          # >> Call Site 5 <<
	.uleb128 .Ltmp64-.Ltmp57                #   Call between .Ltmp57 and .Ltmp64
	.uleb128 .Ltmp77-.Lfunc_begin2          #     jumps to .Ltmp77
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp64-.Lfunc_begin2          # >> Call Site 6 <<
	.uleb128 .Lfunc_end15-.Ltmp64           #   Call between .Ltmp64 and .Lfunc_end15
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end2:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_Z5Divupii                      # -- Begin function _Z5Divupii
	.type	_Z5Divupii,@function
_Z5Divupii:                             # @_Z5Divupii
	.cfi_startproc
# %bb.0:
	movl	%edi, %eax
	cltd
	idivl	%esi
	cmpl	$1, %edx
	sbbl	$-1, %eax
	retq
.Lfunc_end16:
	.size	_Z5Divupii, .Lfunc_end16-_Z5Divupii
	.cfi_endproc
                                        # -- End function
	.globl	_Z18__device_stub__fftP12Complex_cudaS0_i # -- Begin function _Z18__device_stub__fftP12Complex_cudaS0_i
	.type	_Z18__device_stub__fftP12Complex_cudaS0_i,@function
_Z18__device_stub__fftP12Complex_cudaS0_i: # @_Z18__device_stub__fftP12Complex_cudaS0_i
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z3fftP12Complex_cudaS0_i, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end17:
	.size	_Z18__device_stub__fftP12Complex_cudaS0_i, .Lfunc_end17-_Z18__device_stub__fftP12Complex_cudaS0_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z19__device_stub__ifftP12Complex_cudaS0_i # -- Begin function _Z19__device_stub__ifftP12Complex_cudaS0_i
	.type	_Z19__device_stub__ifftP12Complex_cudaS0_i,@function
_Z19__device_stub__ifftP12Complex_cudaS0_i: # @_Z19__device_stub__ifftP12Complex_cudaS0_i
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z4ifftP12Complex_cudaS0_i, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end18:
	.size	_Z19__device_stub__ifftP12Complex_cudaS0_i, .Lfunc_end18-_Z19__device_stub__ifftP12Complex_cudaS0_i
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI19_0:
	.quad	0x41cdcd6500000000              # double 1.0E+9
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	.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
	movq	8(%rsi), %rdi
	movl	$.L.str.6, %esi
	callq	strcmp
	movl	%eax, %r14d
	movq	16(%rbx), %rsi
	movq	24(%rbx), %rax
	movq	%rax, 56(%rsp)                  # 8-byte Spill
	leaq	72(%rsp), %rbx
	movq	%rbx, %rdi
	callq	_ZN10InputImageC2EPKc
	movl	(%rbx), %r12d
	movl	4(%rbx), %ebp
	movslq	%r12d, %rbx
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$8, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movq	%rbx, %r13
	movl	%ebx, %esi
	callq	_ZNSolsEi
	movq	%rax, %rbx
	movl	$.L.str.8, %esi
	movl	$11, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%rbx, %rdi
	movl	%ebp, %esi
	callq	_ZNSolsEi
	movb	$10, 8(%rsp)
	movq	(%rax), %rcx
	movq	-24(%rcx), %rcx
	cmpq	$0, 16(%rax,%rcx)
	je	.LBB19_2
# %bb.1:
	leaq	8(%rsp), %rsi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	jmp	.LBB19_3
.LBB19_2:
	movq	%rax, %rdi
	movl	$10, %esi
	callq	_ZNSo3putEc
.LBB19_3:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c.exit
	movq	80(%rsp), %rax
	movq	%rax, 40(%rsp)                  # 8-byte Spill
	movl	%ebp, %r15d
	imull	%r12d, %r15d
	movslq	%r15d, %rbx
	shlq	$3, %rbx
	movq	%rbx, %rdi
	callq	malloc
	testl	%r14d, %r14d
	movq	%rax, 48(%rsp)                  # 8-byte Spill
	je	.LBB19_4
# %bb.13:
	movq	%r13, %r15
	shlq	$3, %r13
	movq	%r13, %rdi
	callq	malloc
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	leaq	8(%rsp), %rdi
	movq	%rbx, %rsi
	callq	hipMalloc
	leaq	32(%rsp), %rdi
	movq	%r13, %rsi
	callq	hipMalloc
	movl	$_ZSt4cout, %edi
	movl	$.L.str.9, %esi
	movl	$18, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	callq	_ZNSt6chrono3_V212steady_clock3nowEv
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	movl	$512, %r12d                     # imm = 0x200
	cmpl	%r12d, %ebp
	cmovll	%ebp, %r12d
	movl	%ebp, %eax
	cltd
	idivl	%r12d
	movl	%eax, %r14d
	cmpl	$1, %edx
	sbbl	$-1, %r14d
	movabsq	$4294967296, %rax               # imm = 0x100000000
	orq	%rax, %r14
	orq	%rax, %r12
	leaq	8(%rsp), %rax
	movq	(%rax), %rdi
	movq	40(%rsp), %rsi                  # 8-byte Reload
	movq	%rbx, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	32(%rsp), %rax
	movq	(%rax), %rdi
	movq	16(%rsp), %rsi                  # 8-byte Reload
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB19_15
# %bb.14:
	movq	8(%rsp), %rdi
	movq	32(%rsp), %rsi
	movl	%r15d, %edx
	callq	_Z19__device_stub__ifftP12Complex_cudaS0_i
.LBB19_15:
	movq	8(%rsp), %rsi
	movq	48(%rsp), %r14                  # 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	callq	_ZNSt6chrono3_V212steady_clock3nowEv
	subq	24(%rsp), %rax                  # 8-byte Folded Reload
	cvtsi2sd	%rax, %xmm0
	divsd	.LCPI19_0(%rip), %xmm0
	movsd	%xmm0, 24(%rsp)                 # 8-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str.11, %esi
	movl	$15, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	24(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movl	$.L.str.12, %esi
	movl	$13, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movl	$.L.str.13, %esi
	movl	$20, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	56(%rsp), %rsi                  # 8-byte Reload
	movq	%r14, %rdx
	movl	%r15d, %ecx
	movl	%ebp, %r8d
	callq	_ZN10InputImage20save_image_data_realEPKcP12Complex_cudaii
	movq	40(%rsp), %rdi                  # 8-byte Reload
	callq	free
	movq	%r14, %rdi
	jmp	.LBB19_16
.LBB19_4:
	movl	%r12d, %ecx
	movq	%rax, %r12
	movl	%ecx, 24(%rsp)                  # 4-byte Spill
	leaq	8(%rsp), %rdi
	movq	%rbx, %rsi
	callq	hipMalloc
	movq	%r13, %r14
	shlq	$3, %r14
	movq	%r14, %rdi
	callq	malloc
	movq	%rax, 64(%rsp)                  # 8-byte Spill
	leaq	32(%rsp), %rdi
	movq	%r14, %rsi
	callq	hipMalloc
	testl	%r15d, %r15d
	jle	.LBB19_6
# %bb.5:                                # %.lr.ph.preheader
	movl	%r15d, %edx
	shlq	$3, %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
.LBB19_6:                               # %._crit_edge
	movl	$_ZSt4cout, %edi
	movl	$.L.str.9, %esi
	movl	$18, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	callq	_ZNSt6chrono3_V212steady_clock3nowEv
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movl	$512, %r15d                     # imm = 0x200
	cmpl	%r15d, %ebp
	cmovll	%ebp, %r15d
	movl	%ebp, %eax
	cltd
	idivl	%r15d
	movl	%eax, %r12d
	cmpl	$1, %edx
	sbbl	$-1, %r12d
	movabsq	$4294967296, %rax               # imm = 0x100000000
	orq	%rax, %r12
	orq	%rax, %r15
	movq	8(%rsp), %rdi
	movq	40(%rsp), %rsi                  # 8-byte Reload
	movq	%rbx, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movq	32(%rsp), %rdi
	movq	64(%rsp), %rsi                  # 8-byte Reload
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB19_8
# %bb.7:
	movq	8(%rsp), %rdi
	movq	32(%rsp), %rsi
	movl	%r13d, %edx
	callq	_Z18__device_stub__fftP12Complex_cudaS0_i
.LBB19_8:
	callq	hipPeekAtLastError
	testl	%eax, %eax
	jne	.LBB19_9
.LBB19_10:                              # %_Z9gpuAssert10hipError_tPcib.exit
	callq	hipDeviceSynchronize
	testl	%eax, %eax
	movq	40(%rsp), %r15                  # 8-byte Reload
	movq	48(%rsp), %r12                  # 8-byte Reload
	jne	.LBB19_11
.LBB19_12:                              # %_Z9gpuAssert10hipError_tPcib.exit83
	movq	8(%rsp), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	callq	_ZNSt6chrono3_V212steady_clock3nowEv
	subq	16(%rsp), %rax                  # 8-byte Folded Reload
	cvtsi2sd	%rax, %xmm0
	divsd	.LCPI19_0(%rip), %xmm0
	movsd	%xmm0, 16(%rsp)                 # 8-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str.11, %esi
	movl	$15, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	16(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movl	$.L.str.12, %esi
	movl	$13, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movl	$.L.str.13, %esi
	movl	$20, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	56(%rsp), %rsi                  # 8-byte Reload
	movq	%r12, %rdx
	movl	24(%rsp), %ecx                  # 4-byte Reload
	movl	%ebp, %r8d
	callq	_ZN10InputImage15save_image_dataEPKcP12Complex_cudaii
	movq	%r15, %rdi
	callq	free
	movq	%r12, %rdi
.LBB19_16:
	callq	free
	movq	8(%rsp), %rdi
	callq	hipFree
	movl	$_ZSt4cout, %edi
	movl	$.L.str.14, %esi
	movl	$12, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	xorl	%eax, %eax
	addq	$88, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB19_9:
	.cfi_def_cfa_offset 144
	movq	stderr(%rip), %r14
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.15, %esi
	movl	$.L.str.10, %ecx
	movq	%r14, %rdi
	movq	%rax, %rdx
	movl	$393, %r8d                      # imm = 0x189
	xorl	%eax, %eax
	callq	fprintf
	callq	getchar
	jmp	.LBB19_10
.LBB19_11:
	movq	stderr(%rip), %r14
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.15, %esi
	movl	$.L.str.10, %ecx
	movq	%r14, %rdi
	movq	%rax, %rdx
	movl	$394, %r8d                      # imm = 0x18A
	xorl	%eax, %eax
	callq	fprintf
	callq	getchar
	jmp	.LBB19_12
.Lfunc_end19:
	.size	main, .Lfunc_end19-main
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB20_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB20_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z3fftP12Complex_cudaS0_i, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z4ifftP12Complex_cudaS0_i, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end20:
	.size	__hip_module_ctor, .Lfunc_end20-__hip_module_ctor
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_dtor
	.type	__hip_module_dtor,@function
__hip_module_dtor:                      # @__hip_module_dtor
	.cfi_startproc
# %bb.0:
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB21_2
# %bb.1:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__hipUnregisterFatBinary
	movq	$0, __hip_gpubin_handle(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
.LBB21_2:
	retq
.Lfunc_end21:
	.size	__hip_module_dtor, .Lfunc_end21-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"("
	.size	.L.str, 2

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

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

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"Can't open image file "
	.size	.L.str.3, 23

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"Can't create output image "
	.size	.L.str.4, 27

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

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

	.type	_Z4ifftP12Complex_cudaS0_i,@object # @_Z4ifftP12Complex_cudaS0_i
	.globl	_Z4ifftP12Complex_cudaS0_i
	.p2align	3, 0x0
_Z4ifftP12Complex_cudaS0_i:
	.quad	_Z19__device_stub__ifftP12Complex_cudaS0_i
	.size	_Z4ifftP12Complex_cudaS0_i, 8

	.type	.L.str.6,@object                # @.str.6
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.6:
	.asciz	"forward"
	.size	.L.str.6, 8

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"width = "
	.size	.L.str.7, 9

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	", height = "
	.size	.L.str.8, 12

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"Start clokcing...\n"
	.size	.L.str.9, 19

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"/home/ubuntu/Datasets/stackv2/train-structured-repos-hip-sm89/jionie/Two-Dimensional-Discrete-Fourier-Transform-on-CPU-and-GPU/master/Source.hip"
	.size	.L.str.10, 145

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	"Time ellipsed: "
	.size	.L.str.11, 16

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	" seconds... \n"
	.size	.L.str.12, 14

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	"Printing results...\n"
	.size	.L.str.13, 21

	.type	.L.str.14,@object               # @.str.14
.L.str.14:
	.asciz	"finished...\n"
	.size	.L.str.14, 13

	.type	.L.str.15,@object               # @.str.15
.L.str.15:
	.asciz	"GPUassert: %s %s %d\n"
	.size	.L.str.15, 21

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z3fftP12Complex_cudaS0_i"
	.size	.L__unnamed_1, 26

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z4ifftP12Complex_cudaS0_i"
	.size	.L__unnamed_2, 27

	.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

	.globl	_ZN12Complex_cudaC1Ev
	.type	_ZN12Complex_cudaC1Ev,@function
.set _ZN12Complex_cudaC1Ev, _ZN12Complex_cudaC2Ev
	.globl	_ZN12Complex_cudaC1Ef
	.type	_ZN12Complex_cudaC1Ef,@function
.set _ZN12Complex_cudaC1Ef, _ZN12Complex_cudaC2Ef
	.globl	_ZN12Complex_cudaC1Eff
	.type	_ZN12Complex_cudaC1Eff,@function
.set _ZN12Complex_cudaC1Eff, _ZN12Complex_cudaC2Eff
	.globl	_ZN10InputImageC1EPKc
	.type	_ZN10InputImageC1EPKc,@function
.set _ZN10InputImageC1EPKc, _ZN10InputImageC2EPKc
	.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 __gxx_personality_v0
	.addrsig_sym _Z18__device_stub__fftP12Complex_cudaS0_i
	.addrsig_sym _Z19__device_stub__ifftP12Complex_cudaS0_i
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _ZSt4cout
	.addrsig_sym _Z3fftP12Complex_cudaS0_i
	.addrsig_sym _Z4ifftP12Complex_cudaS0_i
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.hidden	_ZN12Complex_cudaC1Ef           ; -- Begin function _ZN12Complex_cudaC1Ef
	.globl	_ZN12Complex_cudaC1Ef
	.p2align	2
	.type	_ZN12Complex_cudaC1Ef,@function
_ZN12Complex_cudaC1Ef:                  ; @_ZN12Complex_cudaC1Ef
; %bb.0:
	s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
	v_mov_b32_e32 v3, 0
	flat_store_b64 v[0:1], v[2:3]
	s_waitcnt lgkmcnt(0)
	s_setpc_b64 s[30:31]
.Lfunc_end0:
	.size	_ZN12Complex_cudaC1Ef, .Lfunc_end0-_ZN12Complex_cudaC1Ef
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Function info:
; codeLenInByte = 24
; NumSgprs: 32
; NumVgprs: 4
; ScratchSize: 0
; MemoryBound: 0
	.text
	.hidden	_ZN12Complex_cudaC1Eff          ; -- Begin function _ZN12Complex_cudaC1Eff
	.globl	_ZN12Complex_cudaC1Eff
	.p2align	2
	.type	_ZN12Complex_cudaC1Eff,@function
_ZN12Complex_cudaC1Eff:                 ; @_ZN12Complex_cudaC1Eff
; %bb.0:
	s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
	flat_store_b64 v[0:1], v[2:3]
	s_waitcnt lgkmcnt(0)
	s_setpc_b64 s[30:31]
.Lfunc_end1:
	.size	_ZN12Complex_cudaC1Eff, .Lfunc_end1-_ZN12Complex_cudaC1Eff
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Function info:
; codeLenInByte = 20
; NumSgprs: 32
; NumVgprs: 4
; ScratchSize: 0
; MemoryBound: 0
	.text
	.protected	_Z3fftP12Complex_cudaS0_i ; -- Begin function _Z3fftP12Complex_cudaS0_i
	.globl	_Z3fftP12Complex_cudaS0_i
	.p2align	8
	.type	_Z3fftP12Complex_cudaS0_i,@function
_Z3fftP12Complex_cudaS0_i:              ; @_Z3fftP12Complex_cudaS0_i
; %bb.0:
	s_clause 0x2
	s_load_b32 s3, s[0:1], 0x24
	s_load_b32 s2, s[0:1], 0x10
	s_load_b128 s[4:7], s[0:1], 0x0
	s_mov_b32 s8, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s0, s3, 0xffff
	s_cmp_gt_i32 s2, 0
	s_mul_i32 s33, s15, s0
	s_cselect_b32 s52, -1, 0
	v_add_nc_u32_e32 v19, s33, v0
	s_cmp_lt_i32 s2, 1
	s_cbranch_scc1 .LBB2_19
; %bb.1:                                ; %.lr.ph
	v_cvt_f32_i32_e32 v1, s2
	s_mov_b32 s11, 0x401921fb
	s_mov_b32 s10, 0x54442d18
	s_add_u32 s12, s6, 4
	s_mov_b32 s20, 0x6dc9c883
	v_cvt_f64_f32_e32 v[1:2], v1
	s_mov_b32 s22, 0x33145c00
	s_mov_b32 s24, 0x252049c0
	s_mov_b32 s26, 0x9037ab78
	s_mov_b32 s28, 0x46cc5e42
	s_mov_b32 s30, 0xa17f65f6
	s_mov_b32 s34, 0x19f4ec90
	s_mov_b32 s36, 0x16c16967
	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, 0x11110bb3
	s_addc_u32 s13, s7, 0
	s_mov_b32 s15, 0x3ff921fb
	s_mov_b32 s17, 0x3c91a626
	s_mov_b32 s18, 0x33145c07
	s_mov_b32 s21, 0x3fe45f30
	s_mov_b32 s23, 0xbc91a626
	s_mov_b32 s25, 0xb97b839a
	s_mov_b32 s27, 0x3e21eeb6
	s_mov_b32 s29, 0xbda907db
	s_mov_b32 s31, 0xbe927e4f
	s_mov_b32 s35, 0x3efa01a0
	s_mov_b32 s37, 0xbf56c16c
	s_mov_b32 s39, 0x3fa55555
	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 s51, 0xbfc55555
	s_mov_b32 s3, s2
	v_mov_b32_e32 v20, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_scale_f64 v[3:4], null, v[1:2], v[1:2], s[10:11]
	v_div_scale_f64 v[9:10], vcc_lo, s[10:11], v[1:2], s[10:11]
	v_rcp_f64_e32 v[5:6], v[3:4]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[7:8], -v[3:4], v[5:6], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[5:6], v[5:6], v[7:8], v[5:6]
	v_fma_f64 v[7:8], -v[3:4], v[5:6], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[5:6], v[5:6], v[7:8], v[5:6]
	v_mul_f64 v[7:8], v[9:10], v[5:6]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[3:4], -v[3:4], v[7:8], v[9:10]
	v_div_fmas_f64 v[3:4], v[3:4], v[5:6], v[7:8]
	s_delay_alu instid0(VALU_DEP_1)
	v_div_fixup_f64 v[1:2], v[3:4], v[1:2], s[10:11]
	v_mov_b32_e32 v3, 0
	v_mov_b32_e32 v4, 0
	s_mov_b32 s11, 0xbff921fb
.LBB2_2:                                ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[5:6], v[1:2], v[3:4]
	v_cmp_ngt_f64_e64 s1, 0x41d00000, |v[5:6]|
	v_trig_preop_f64 v[15:16], |v[5:6]|, 0
	v_trig_preop_f64 v[13:14], |v[5:6]|, 1
	v_cmp_le_f64_e64 s0, 0x7b000000, |v[5:6]|
	v_ldexp_f64 v[17:18], |v[5:6]|, 0xffffff80
	v_trig_preop_f64 v[11:12], |v[5:6]|, 2
	v_and_b32_e32 v22, 0x7fffffff, v6
	s_and_b32 vcc_lo, exec_lo, s1
	s_cbranch_vccz .LBB2_4
; %bb.3:                                ;   in Loop: Header=BB2_2 Depth=1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v8, v22, v18, s0
	v_cndmask_b32_e64 v7, v5, v17, s0
	s_mov_b32 s14, s10
	s_mov_b32 s19, s17
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_mul_f64 v[9:10], v[15:16], v[7:8]
	v_mul_f64 v[23:24], v[13:14], v[7:8]
	v_mul_f64 v[35:36], v[11:12], v[7:8]
	v_fma_f64 v[25:26], v[15:16], v[7:8], -v[9:10]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[37:38], v[13:14], v[7:8], -v[23:24]
	v_fma_f64 v[7:8], v[11:12], v[7:8], -v[35:36]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[27:28], v[23:24], v[25:26]
	v_add_f64 v[29:30], v[27:28], -v[23:24]
	v_add_f64 v[33:34], v[9:10], v[27:28]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[31:32], v[27:28], -v[29:30]
	v_add_f64 v[25:26], v[25:26], -v[29:30]
	v_ldexp_f64 v[29:30], v[33:34], -2
	v_add_f64 v[9:10], v[33:34], -v[9:10]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_f64 v[23:24], v[23:24], -v[31:32]
	v_add_f64 v[31:32], v[35:36], v[37:38]
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[29:30]|
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[9:10], v[27:28], -v[9:10]
	v_add_f64 v[23:24], v[25:26], v[23:24]
	v_fract_f64_e32 v[25:26], v[29:30]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[27:28], v[31:32], v[23:24]
	v_dual_cndmask_b32 v26, 0, v26 :: v_dual_cndmask_b32 v25, 0, v25
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ldexp_f64 v[25:26], v[25:26], 2
	v_add_f64 v[29:30], v[9:10], v[27:28]
	v_add_f64 v[39:40], v[27:28], -v[31:32]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[33:34], v[29:30], v[25:26]
	v_add_f64 v[45:46], v[27:28], -v[39:40]
	v_add_f64 v[23:24], v[23:24], -v[39:40]
	v_add_f64 v[9:10], v[29:30], -v[9:10]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_cmp_gt_f64_e32 vcc_lo, 0, v[33:34]
	v_add_f64 v[33:34], v[31:32], -v[35:36]
	v_add_f64 v[9:10], v[27:28], -v[9:10]
	s_and_b32 s0, vcc_lo, exec_lo
	s_cselect_b32 s9, 0x40100000, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_add_f64 v[43:44], v[31:32], -v[33:34]
	v_add_f64 v[25:26], v[25:26], s[8:9]
	v_add_f64 v[33:34], v[37:38], -v[33:34]
	v_add_f64 v[31:32], v[31:32], -v[45:46]
	v_add_f64 v[37:38], v[35:36], -v[43:44]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[41:42], v[29:30], v[25:26]
	v_add_f64 v[23:24], v[23:24], v[31:32]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[33:34], v[33:34], v[37:38]
	v_cvt_i32_f64_e32 v21, v[41:42]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[23:24], v[33:34], v[23:24]
	v_cvt_f64_i32_e32 v[39:40], v21
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[7:8], v[7:8], v[23:24]
	v_add_f64 v[25:26], v[25:26], -v[39:40]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[7:8], v[9:10], v[7:8]
	v_add_f64 v[31:32], v[29:30], v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[23:24], v[31:32], -v[25:26]
	v_cmp_le_f64_e32 vcc_lo, 0.5, v[31:32]
	v_add_f64 v[9:10], v[29:30], -v[23:24]
	s_and_b32 s0, vcc_lo, exec_lo
	s_cselect_b32 s9, 0x3ff00000, 0
	v_add_co_ci_u32_e64 v21, s0, 0, v21, vcc_lo
	s_mov_b32 s0, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[7:8], v[7:8], v[9:10]
	v_add_f64 v[9:10], v[31:32], -s[8:9]
	v_add_f64 v[23:24], v[9:10], v[7:8]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_f64 v[25:26], v[23:24], s[14:15]
	v_add_f64 v[9:10], v[23:24], -v[9:10]
	v_fma_f64 v[27:28], v[23:24], s[14:15], -v[25:26]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[7:8], v[7:8], -v[9:10]
	v_fma_f64 v[9:10], v[23:24], s[18:19], v[27:28]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[9:10], v[7:8], s[14:15], v[9:10]
	v_add_f64 v[7:8], v[25:26], v[9:10]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[23:24], v[7:8], -v[25:26]
	v_add_f64 v[9:10], v[9:10], -v[23:24]
	s_branch .LBB2_5
.LBB2_4:                                ;   in Loop: Header=BB2_2 Depth=1
	s_mov_b32 s0, -1
                                        ; implicit-def: $vgpr21
                                        ; implicit-def: $vgpr7_vgpr8
                                        ; implicit-def: $vgpr9_vgpr10
.LBB2_5:                                ; %Flow321
                                        ;   in Loop: Header=BB2_2 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s0
	s_cbranch_vccnz .LBB2_7
; %bb.6:                                ;   in Loop: Header=BB2_2 Depth=1
	v_mul_f64 v[7:8], |v[5:6]|, s[20:21]
	s_mov_b32 s16, s22
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rndne_f64_e32 v[23:24], v[7:8]
	v_fma_f64 v[7:8], v[23:24], s[10:11], |v[5:6]|
	v_mul_f64 v[9:10], v[23:24], s[22:23]
	v_cvt_i32_f64_e32 v21, v[23:24]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[27:28], v[23:24], s[22:23], v[7:8]
	v_add_f64 v[25:26], v[7:8], v[9:10]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[7:8], v[7:8], -v[25:26]
	v_add_f64 v[25:26], v[25:26], -v[27:28]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[7:8], v[7:8], v[9:10]
	v_fma_f64 v[9:10], v[23:24], s[16:17], v[9:10]
	v_add_f64 v[7:8], v[25:26], v[7:8]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[7:8], v[7:8], -v[9:10]
	v_fma_f64 v[9:10], v[23:24], s[24:25], v[7:8]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[7:8], v[27:28], v[9:10]
	v_add_f64 v[25:26], v[7:8], -v[27:28]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[9:10], v[9:10], -v[25:26]
.LBB2_7:                                ; %_ZL3cosd.exit
                                        ;   in Loop: Header=BB2_2 Depth=1
	s_and_b32 vcc_lo, exec_lo, s1
	s_cbranch_vccz .LBB2_9
; %bb.8:                                ;   in Loop: Header=BB2_2 Depth=1
	v_cmp_le_f64_e64 vcc_lo, 0x7b000000, |v[5:6]|
	s_mov_b32 s14, s10
	s_mov_b32 s19, s17
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v18, v22, v18 :: v_dual_cndmask_b32 v17, v5, v17
	v_mul_f64 v[22:23], v[15:16], v[17:18]
	v_mul_f64 v[24:25], v[13:14], v[17:18]
	v_mul_f64 v[34:35], v[11:12], v[17:18]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[15:16], v[15:16], v[17:18], -v[22:23]
	v_fma_f64 v[13:14], v[13:14], v[17:18], -v[24:25]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[11:12], v[11:12], v[17:18], -v[34:35]
	v_add_f64 v[26:27], v[24:25], v[15:16]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[28:29], v[26:27], -v[24:25]
	v_add_f64 v[32:33], v[22:23], v[26:27]
	v_add_f64 v[30:31], v[26:27], -v[28:29]
	v_add_f64 v[15:16], v[15:16], -v[28:29]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_ldexp_f64 v[28:29], v[32:33], -2
	v_add_f64 v[22:23], v[32:33], -v[22:23]
	v_add_f64 v[24:25], v[24:25], -v[30:31]
	v_add_f64 v[30:31], v[34:35], v[13:14]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[28:29]|
	v_add_f64 v[22:23], v[26:27], -v[22:23]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[15:16], v[15:16], v[24:25]
	v_fract_f64_e32 v[24:25], v[28:29]
	v_add_f64 v[26:27], v[30:31], v[15:16]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v25, 0, v25 :: v_dual_cndmask_b32 v24, 0, v24
	v_ldexp_f64 v[24:25], v[24:25], 2
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[28:29], v[22:23], v[26:27]
	v_add_f64 v[36:37], v[26:27], -v[30:31]
	v_add_f64 v[32:33], v[28:29], v[24:25]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_add_f64 v[42:43], v[26:27], -v[36:37]
	v_add_f64 v[15:16], v[15:16], -v[36:37]
	v_add_f64 v[17:18], v[28:29], -v[22:23]
	v_cmp_gt_f64_e32 vcc_lo, 0, v[32:33]
	v_add_f64 v[32:33], v[30:31], -v[34:35]
	s_and_b32 s0, vcc_lo, exec_lo
	s_cselect_b32 s9, 0x40100000, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_add_f64 v[40:41], v[30:31], -v[32:33]
	v_add_f64 v[24:25], v[24:25], s[8:9]
	v_add_f64 v[13:14], v[13:14], -v[32:33]
	v_add_f64 v[30:31], v[30:31], -v[42:43]
	v_add_f64 v[32:33], v[34:35], -v[40:41]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[38:39], v[28:29], v[24:25]
	v_add_f64 v[15:16], v[15:16], v[30:31]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[13:14], v[13:14], v[32:33]
	v_cvt_i32_f64_e32 v38, v[38:39]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[13:14], v[13:14], v[15:16]
	v_cvt_f64_i32_e32 v[36:37], v38
	v_add_f64 v[15:16], v[26:27], -v[17:18]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[11:12], v[11:12], v[13:14]
	v_add_f64 v[24:25], v[24:25], -v[36:37]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[11:12], v[15:16], v[11:12]
	v_add_f64 v[22:23], v[28:29], v[24:25]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[13:14], v[22:23], -v[24:25]
	v_cmp_le_f64_e32 vcc_lo, 0.5, v[22:23]
	v_add_f64 v[13:14], v[28:29], -v[13:14]
	s_and_b32 s0, vcc_lo, exec_lo
	s_cselect_b32 s9, 0x3ff00000, 0
	v_add_co_ci_u32_e64 v15, s0, 0, v38, vcc_lo
	s_mov_b32 s0, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[11:12], v[11:12], v[13:14]
	v_add_f64 v[13:14], v[22:23], -s[8:9]
	v_add_f64 v[16:17], v[13:14], v[11:12]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_f64 v[22:23], v[16:17], s[14:15]
	v_add_f64 v[13:14], v[16:17], -v[13:14]
	v_fma_f64 v[24:25], v[16:17], s[14:15], -v[22:23]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[11:12], v[11:12], -v[13:14]
	v_fma_f64 v[13:14], v[16:17], s[18:19], v[24:25]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[13:14], v[11:12], s[14:15], v[13:14]
	v_add_f64 v[11:12], v[22:23], v[13:14]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[16:17], v[11:12], -v[22:23]
	v_add_f64 v[13:14], v[13:14], -v[16:17]
	s_branch .LBB2_10
.LBB2_9:                                ;   in Loop: Header=BB2_2 Depth=1
	s_mov_b32 s0, -1
                                        ; implicit-def: $vgpr15
                                        ; implicit-def: $vgpr11_vgpr12
                                        ; implicit-def: $vgpr13_vgpr14
.LBB2_10:                               ; %Flow320
                                        ;   in Loop: Header=BB2_2 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s0
	s_cbranch_vccnz .LBB2_12
; %bb.11:                               ;   in Loop: Header=BB2_2 Depth=1
	v_mul_f64 v[11:12], |v[5:6]|, s[20:21]
	s_mov_b32 s16, s22
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rndne_f64_e32 v[15:16], v[11:12]
	v_fma_f64 v[11:12], v[15:16], s[10:11], |v[5:6]|
	v_mul_f64 v[13:14], v[15:16], s[22:23]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[22:23], v[15:16], s[22:23], v[11:12]
	v_add_f64 v[17:18], v[11:12], v[13:14]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[11:12], v[11:12], -v[17:18]
	v_add_f64 v[17:18], v[17:18], -v[22:23]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[11:12], v[11:12], v[13:14]
	v_fma_f64 v[13:14], v[15:16], s[16:17], v[13:14]
	v_add_f64 v[11:12], v[17:18], v[11:12]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[11:12], v[11:12], -v[13:14]
	v_fma_f64 v[13:14], v[15:16], s[24:25], v[11:12]
	v_cvt_i32_f64_e32 v15, v[15:16]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[11:12], v[22:23], v[13:14]
	v_add_f64 v[17:18], v[11:12], -v[22:23]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[13:14], v[13:14], -v[17:18]
.LBB2_12:                               ; %_ZL3sind.exit
                                        ;   in Loop: Header=BB2_2 Depth=1
	v_mul_f64 v[16:17], v[7:8], v[7:8]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[22:23], v[11:12], v[11:12]
	v_mul_f64 v[40:41], v[9:10], 0.5
	s_delay_alu instid0(VALU_DEP_4)
	v_mul_f64 v[46:47], v[13:14], 0.5
	s_mov_b32 s50, s38
	v_cmp_class_f64_e64 s0, v[5:6], 0x1f8
	v_lshlrev_b32_e32 v5, 30, v15
	v_add_f64 v[3:4], v[3:4], 1.0
	s_add_i32 s3, s3, -1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_xor_b32_e32 v5, v5, v6
	v_and_b32_e32 v5, 0x80000000, v5
	v_fma_f64 v[24:25], v[16:17], s[42:43], s[40:41]
	v_fma_f64 v[26:27], v[22:23], s[42:43], s[40:41]
	v_mul_f64 v[30:31], v[16:17], 0.5
	v_fma_f64 v[28:29], v[16:17], s[28:29], s[26:27]
	v_fma_f64 v[32:33], v[22:23], s[28:29], s[26:27]
	v_mul_f64 v[34:35], v[22:23], 0.5
	v_mul_f64 v[42:43], v[7:8], -v[16:17]
	v_mul_f64 v[48:49], v[11:12], -v[22:23]
	v_fma_f64 v[24:25], v[16:17], v[24:25], s[44:45]
	v_fma_f64 v[26:27], v[22:23], v[26:27], s[44:45]
	v_add_f64 v[36:37], -v[30:31], 1.0
	v_fma_f64 v[28:29], v[16:17], v[28:29], s[30:31]
	v_fma_f64 v[32:33], v[22:23], v[32:33], s[30:31]
	v_add_f64 v[38:39], -v[34:35], 1.0
	v_fma_f64 v[24:25], v[16:17], v[24:25], s[46:47]
	v_fma_f64 v[26:27], v[22:23], v[26:27], s[46:47]
	v_add_f64 v[44:45], -v[36:37], 1.0
	v_fma_f64 v[28:29], v[16:17], v[28:29], s[34:35]
	v_fma_f64 v[32:33], v[22:23], v[32:33], s[34:35]
	v_add_f64 v[50:51], -v[38:39], 1.0
	v_fma_f64 v[24:25], v[16:17], v[24:25], s[48:49]
	v_fma_f64 v[26:27], v[22:23], v[26:27], s[48:49]
	v_add_f64 v[30:31], v[44:45], -v[30:31]
	v_fma_f64 v[28:29], v[16:17], v[28:29], s[36:37]
	v_fma_f64 v[32:33], v[22:23], v[32:33], s[36:37]
	v_add_f64 v[34:35], v[50:51], -v[34:35]
	v_fma_f64 v[24:25], v[42:43], v[24:25], v[40:41]
	v_fma_f64 v[26:27], v[48:49], v[26:27], v[46:47]
	v_fma_f64 v[30:31], v[7:8], -v[9:10], v[30:31]
	v_mul_f64 v[40:41], v[16:17], v[16:17]
	v_fma_f64 v[28:29], v[16:17], v[28:29], s[38:39]
	v_fma_f64 v[9:10], v[16:17], v[24:25], -v[9:10]
	v_mul_f64 v[16:17], v[22:23], v[22:23]
	v_fma_f64 v[24:25], v[22:23], v[32:33], s[38:39]
	v_fma_f64 v[32:33], v[11:12], -v[13:14], v[34:35]
	v_fma_f64 v[13:14], v[22:23], v[26:27], -v[13:14]
	v_fma_f64 v[22:23], v[40:41], v[28:29], v[30:31]
	v_fma_f64 v[9:10], v[42:43], s[50:51], v[9:10]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[16:17], v[16:17], v[24:25], v[32:33]
	v_fma_f64 v[13:14], v[48:49], s[50:51], v[13:14]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[22:23], v[36:37], v[22:23]
	v_add_f64 v[7:8], v[7:8], -v[9:10]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[9:10], v[38:39], v[16:17]
	v_add_f64 v[11:12], v[11:12], -v[13:14]
	v_lshlrev_b32_e32 v14, 30, v21
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_xor_b32_e32 v6, 0x80000000, v8
	v_and_b32_e32 v13, 1, v21
	v_and_b32_e32 v8, 0x80000000, v14
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_cmp_eq_u32_e32 vcc_lo, 0, v13
	v_and_b32_e32 v13, 1, v15
	v_dual_cndmask_b32 v6, v6, v23 :: v_dual_cndmask_b32 v7, v7, v22
	v_cmp_eq_u32_e64 s1, 0, v13
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v6, v6, v8
	v_cndmask_b32_e64 v10, v10, v12, s1
	v_cndmask_b32_e64 v9, v9, v11, s1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v6, 0x7ff80000, v6, s0
	v_xor_b32_e32 v8, v10, v5
	v_cndmask_b32_e64 v5, 0, v7, s0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v7, 0, v9, s0
	v_cndmask_b32_e64 v8, 0x7ff80000, v8, s0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cvt_f32_f64_e32 v5, v[5:6]
	v_cvt_f32_f64_e64 v6, -v[7:8]
	global_store_b64 v20, v[5:6], s[12:13] offset:-4
	s_add_u32 s12, s12, 8
	s_addc_u32 s13, s13, 0
	s_cmp_eq_u32 s3, 0
	s_cbranch_scc0 .LBB2_2
; %bb.13:                               ; %.preheader222
	v_mul_lo_u32 v1, v19, s2
	s_mov_b32 s0, 0
	s_mov_b32 s1, 0
.LBB2_14:                               ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB2_17 Depth 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_le_i32 s0, s1
	s_cbranch_scc1 .LBB2_16
; %bb.15:                               ;   in Loop: Header=BB2_14 Depth=1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v2, s1, v1
	v_add_nc_u32_e32 v4, s0, v1
	v_ashrrev_i32_e32 v3, 31, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v5, 31, v4
	v_lshlrev_b64 v[2:3], 3, v[2:3]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[4:5], 3, v[4:5]
	v_add_co_u32 v2, vcc_lo, s4, v2
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v3, vcc_lo
	v_add_co_u32 v4, vcc_lo, s4, v4
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v5, vcc_lo
	s_clause 0x1
	global_load_b64 v[6:7], v[2:3], off
	global_load_b64 v[8:9], v[4:5], off
	s_waitcnt vmcnt(1)
	global_store_b64 v[4:5], v[6:7], off
	s_waitcnt vmcnt(0)
	global_store_b64 v[2:3], v[8:9], off
.LBB2_16:                               ; %.preheader258
                                        ;   in Loop: Header=BB2_14 Depth=1
	s_mov_b32 s3, s2
.LBB2_17:                               ;   Parent Loop BB2_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshr_b32 s3, s3, 1
	s_xor_b32 s1, s1, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_lt_i32 s1, s3
	s_cbranch_scc1 .LBB2_17
; %bb.18:                               ;   in Loop: Header=BB2_14 Depth=1
	s_add_i32 s0, s0, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s0, s2
	s_cbranch_scc0 .LBB2_14
.LBB2_19:                               ; %.preheader221
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_lo_u32 v1, v19, s2
	s_cmp_gt_i32 s2, 1
	s_mov_b32 s0, 2
	s_cselect_b32 s16, -1, 0
	s_cmp_lt_i32 s2, 2
	s_cbranch_scc1 .LBB2_27
; %bb.20:                               ; %.lr.ph235
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(SALU_CYCLE_1)
	v_ashrrev_i32_e32 v2, 31, v1
	s_mov_b32 s9, 0
	v_mov_b32_e32 v10, 0
	s_mov_b32 s3, s9
	s_lshl_b64 s[10:11], s[2:3], 3
	v_lshlrev_b64 v[2:3], 3, v[1:2]
	s_add_u32 s10, s4, s10
	s_addc_u32 s11, s5, s11
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, v2, s4
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, v2, 4
	v_add_co_ci_u32_e32 v3, vcc_lo, 0, v3, vcc_lo
.LBB2_21:                               ; %.preheader220.lr.ph
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB2_22 Depth 2
                                        ;       Child Loop BB2_24 Depth 3
	v_cvt_f32_u32_e32 v4, s0
	s_ashr_i32 s3, s0, 1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	s_cmp_gt_i32 s3, 0
	v_add_nc_u32_e32 v11, s3, v1
	v_rcp_iflag_f32_e32 v4, v4
	s_cselect_b32 s17, -1, 0
	s_sub_i32 s8, 0, s0
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v4, 0x4f7ffffe, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cvt_u32_f32_e32 v4, v4
	v_readfirstlane_b32 s1, v4
	v_dual_mov_b32 v5, v3 :: v_dual_mov_b32 v4, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_i32 s8, s8, s1
	s_mul_hi_u32 s8, s1, s8
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_add_i32 s1, s1, s8
	s_mul_hi_u32 s8, s2, s1
	s_ashr_i32 s1, s0, 31
	s_mul_i32 s12, s8, s0
	s_add_i32 s13, s8, 1
	s_sub_i32 s12, s2, s12
	s_delay_alu instid0(SALU_CYCLE_1)
	s_sub_i32 s14, s12, s0
	s_cmp_ge_u32 s12, s0
	s_cselect_b32 s8, s13, s8
	s_cselect_b32 s12, s14, s12
	s_add_i32 s13, s8, 1
	s_cmp_ge_u32 s12, s0
	s_mov_b64 s[14:15], s[4:5]
	s_cselect_b32 s18, s13, s8
	s_lshl_b64 s[12:13], s[0:1], 3
.LBB2_22:                               ; %.preheader220
                                        ;   Parent Loop BB2_21 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB2_24 Depth 3
	s_and_not1_b32 vcc_lo, exec_lo, s17
	s_cbranch_vccnz .LBB2_25
; %bb.23:                               ; %.lr.ph229
                                        ;   in Loop: Header=BB2_22 Depth=2
	v_dual_mov_b32 v6, v11 :: v_dual_mov_b32 v9, v5
	v_mov_b32_e32 v8, v4
	s_mov_b32 s8, 0
	s_mov_b32 s1, s3
.LBB2_24:                               ;   Parent Loop BB2_21 Depth=1
                                        ;     Parent Loop BB2_22 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_ashrrev_i32_e32 v7, 31, v6
	s_lshl_b64 s[20:21], s[8:9], 3
	s_add_u32 s20, s6, s20
	s_addc_u32 s21, s7, s21
	s_delay_alu instid0(VALU_DEP_1)
	v_lshlrev_b64 v[12:13], 3, v[6:7]
	global_load_b64 v[14:15], v10, s[20:21]
	s_add_i32 s1, s1, -1
	s_add_i32 s8, s8, s18
	s_cmp_eq_u32 s1, 0
	v_add_co_u32 v12, vcc_lo, s14, v12
	v_add_co_ci_u32_e32 v13, vcc_lo, s15, v13, vcc_lo
	global_load_b64 v[16:17], v[12:13], off
	global_load_b64 v[20:21], v[8:9], off offset:-4
	s_waitcnt vmcnt(1)
	v_dual_mul_f32 v7, v15, v17 :: v_dual_add_nc_u32 v6, 1, v6
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f32 v7, v14, v16, -v7
	s_waitcnt vmcnt(0)
	v_dual_mul_f32 v17, v14, v17 :: v_dual_sub_f32 v14, v20, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v17, v16, v15
	v_dual_add_f32 v16, v20, v7 :: v_dual_sub_f32 v15, v21, v17
	v_add_f32_e32 v17, v21, v17
	global_store_b64 v[12:13], v[14:15], off
	global_store_b64 v[8:9], v[16:17], off offset:-4
	v_add_co_u32 v8, vcc_lo, v8, 8
	v_add_co_ci_u32_e32 v9, vcc_lo, 0, v9, vcc_lo
	s_cbranch_scc0 .LBB2_24
.LBB2_25:                               ; %._crit_edge
                                        ;   in Loop: Header=BB2_22 Depth=2
	v_add_co_u32 v4, vcc_lo, v4, s12
	s_add_u32 s14, s14, s12
	v_add_co_ci_u32_e32 v5, vcc_lo, s13, v5, vcc_lo
	s_addc_u32 s15, s15, s13
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u64 s[14:15], s[10:11]
	s_cbranch_scc0 .LBB2_22
; %bb.26:                               ; %._crit_edge232
                                        ;   in Loop: Header=BB2_21 Depth=1
	s_lshl_b32 s0, s0, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_gt_i32 s0, s2
	s_cbranch_scc0 .LBB2_21
.LBB2_27:                               ; %._crit_edge236
	v_add_nc_u32_e32 v10, 1, v19
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	v_cmp_gt_i32_e64 s0, s2, v10
	s_delay_alu instid0(VALU_DEP_1)
	s_and_saveexec_b32 s3, s0
	s_cbranch_execz .LBB2_30
; %bb.28:                               ; %.lr.ph.i
	v_mad_u64_u32 v[2:3], null, v19, s2, v[0:1]
	v_mul_lo_u32 v6, s2, v10
	s_mov_b32 s8, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add3_u32 v2, v2, s33, 1
	v_ashrrev_i32_e32 v3, 31, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_lshlrev_b64 v[4:5], 3, v[2:3]
	v_add3_u32 v2, v0, v6, s33
	v_mov_b32_e32 v6, v10
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v4, vcc_lo, s4, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v5, vcc_lo
.LBB2_29:                               ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_ashrrev_i32_e32 v3, 31, v2
	v_add_nc_u32_e32 v6, 1, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[7:8], 3, v[2:3]
	v_add_nc_u32_e32 v2, s2, v2
	v_add_co_u32 v7, vcc_lo, s4, v7
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v8, vcc_lo, s5, v8, vcc_lo
	v_cmp_le_i32_e32 vcc_lo, s2, v6
	global_load_b64 v[11:12], v[7:8], off
	global_load_b64 v[13:14], v[4:5], off
	s_or_b32 s8, vcc_lo, s8
	s_waitcnt vmcnt(1)
	global_store_b64 v[4:5], v[11:12], off
	v_add_co_u32 v4, s1, v4, 8
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v5, s1, 0, v5, s1
	s_waitcnt vmcnt(0)
	global_store_b64 v[7:8], v[13:14], off
	s_and_not1_b32 exec_lo, exec_lo, s8
	s_cbranch_execnz .LBB2_29
.LBB2_30:                               ; %Flow314
	s_or_b32 exec_lo, exec_lo, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s52
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_cbranch_vccnz .LBB2_37
; %bb.31:                               ; %.lr.ph239
	s_mov_b32 s1, 0
	s_mov_b32 s3, 0
.LBB2_32:                               ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB2_35 Depth 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_le_i32 s3, s1
	s_cbranch_scc1 .LBB2_34
; %bb.33:                               ;   in Loop: Header=BB2_32 Depth=1
	v_add_nc_u32_e32 v2, s1, v1
	v_add_nc_u32_e32 v4, s3, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v3, 31, v2
	v_ashrrev_i32_e32 v5, 31, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[2:3], 3, v[2:3]
	v_lshlrev_b64 v[4:5], 3, v[4:5]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v2, vcc_lo, s4, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v4, vcc_lo, s4, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v5, vcc_lo
	s_clause 0x1
	global_load_b64 v[6:7], v[2:3], off
	global_load_b64 v[8:9], v[4:5], off
	s_waitcnt vmcnt(1)
	global_store_b64 v[4:5], v[6:7], off
	s_waitcnt vmcnt(0)
	global_store_b64 v[2:3], v[8:9], off
.LBB2_34:                               ; %.preheader257
                                        ;   in Loop: Header=BB2_32 Depth=1
	s_mov_b32 s8, s2
.LBB2_35:                               ;   Parent Loop BB2_32 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshr_b32 s8, s8, 1
	s_xor_b32 s1, s8, s1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_lt_i32 s1, s8
	s_cbranch_scc1 .LBB2_35
; %bb.36:                               ;   in Loop: Header=BB2_32 Depth=1
	s_add_i32 s3, s3, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s3, s2
	s_cbranch_scc0 .LBB2_32
.LBB2_37:                               ; %.preheader219
	s_and_not1_b32 vcc_lo, exec_lo, s16
	s_cbranch_vccnz .LBB2_45
; %bb.38:                               ; %.lr.ph248
	v_ashrrev_i32_e32 v2, 31, v1
	s_mov_b32 s9, 0
	v_mov_b32_e32 v11, 0
	s_mov_b32 s3, s9
	s_mov_b32 s12, 2
	v_lshlrev_b64 v[2:3], 3, v[1:2]
	s_lshl_b64 s[10:11], s[2:3], 3
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	s_add_u32 s10, s4, s10
	s_addc_u32 s11, s5, s11
	v_add_co_u32 v2, vcc_lo, v2, s4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v3, vcc_lo
	v_add_co_u32 v2, vcc_lo, v2, 4
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, 0, v3, vcc_lo
.LBB2_39:                               ; %.preheader.lr.ph
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB2_40 Depth 2
                                        ;       Child Loop BB2_42 Depth 3
	v_cvt_f32_u32_e32 v4, s12
	s_ashr_i32 s1, s12, 1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	s_cmp_gt_i32 s1, 0
	v_add_nc_u32_e32 v12, s1, v1
	v_rcp_iflag_f32_e32 v4, v4
	s_cselect_b32 s3, -1, 0
	s_sub_i32 s13, 0, s12
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v4, 0x4f7ffffe, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cvt_u32_f32_e32 v4, v4
	v_readfirstlane_b32 s8, v4
	v_dual_mov_b32 v5, v3 :: v_dual_mov_b32 v4, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_i32 s13, s13, s8
	s_mul_hi_u32 s13, s8, s13
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	s_add_i32 s8, s8, s13
	s_ashr_i32 s13, s12, 31
	s_mul_hi_u32 s8, s2, s8
	s_mul_i32 s14, s8, s12
	s_add_i32 s15, s8, 1
	s_sub_i32 s14, s2, s14
	s_delay_alu instid0(SALU_CYCLE_1)
	s_sub_i32 s16, s14, s12
	s_cmp_ge_u32 s14, s12
	s_cselect_b32 s8, s15, s8
	s_cselect_b32 s14, s16, s14
	s_add_i32 s15, s8, 1
	s_cmp_ge_u32 s14, s12
	s_mov_b64 s[16:17], s[4:5]
	s_cselect_b32 s18, s15, s8
	s_lshl_b64 s[14:15], s[12:13], 3
.LBB2_40:                               ; %.preheader
                                        ;   Parent Loop BB2_39 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB2_42 Depth 3
	s_and_not1_b32 vcc_lo, exec_lo, s3
	s_cbranch_vccnz .LBB2_43
; %bb.41:                               ; %.lr.ph241
                                        ;   in Loop: Header=BB2_40 Depth=2
	v_dual_mov_b32 v6, v12 :: v_dual_mov_b32 v9, v5
	v_mov_b32_e32 v8, v4
	s_mov_b32 s8, 0
	s_mov_b32 s13, s1
.LBB2_42:                               ;   Parent Loop BB2_39 Depth=1
                                        ;     Parent Loop BB2_40 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_ashrrev_i32_e32 v7, 31, v6
	s_lshl_b64 s[20:21], s[8:9], 3
	s_add_u32 s20, s6, s20
	s_addc_u32 s21, s7, s21
	s_delay_alu instid0(VALU_DEP_1)
	v_lshlrev_b64 v[13:14], 3, v[6:7]
	global_load_b64 v[15:16], v11, s[20:21]
	s_add_i32 s13, s13, -1
	s_add_i32 s8, s8, s18
	s_cmp_eq_u32 s13, 0
	v_add_co_u32 v13, vcc_lo, s16, v13
	v_add_co_ci_u32_e32 v14, vcc_lo, s17, v14, vcc_lo
	global_load_b64 v[17:18], v[13:14], off
	global_load_b64 v[20:21], v[8:9], off offset:-4
	s_waitcnt vmcnt(1)
	v_mul_f32_e32 v7, v16, v18
	v_mul_f32_e32 v18, v15, v18
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fmac_f32_e32 v18, v17, v16
	v_fma_f32 v7, v15, v17, -v7
	v_add_nc_u32_e32 v6, 1, v6
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2)
	v_dual_sub_f32 v16, v21, v18 :: v_dual_sub_f32 v15, v20, v7
	v_dual_add_f32 v17, v20, v7 :: v_dual_add_f32 v18, v21, v18
	global_store_b64 v[13:14], v[15:16], off
	global_store_b64 v[8:9], v[17:18], off offset:-4
	v_add_co_u32 v8, vcc_lo, v8, 8
	v_add_co_ci_u32_e32 v9, vcc_lo, 0, v9, vcc_lo
	s_cbranch_scc0 .LBB2_42
.LBB2_43:                               ; %._crit_edge242
                                        ;   in Loop: Header=BB2_40 Depth=2
	v_add_co_u32 v4, vcc_lo, v4, s14
	s_add_u32 s16, s16, s14
	v_add_co_ci_u32_e32 v5, vcc_lo, s15, v5, vcc_lo
	s_addc_u32 s17, s17, s15
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u64 s[16:17], s[10:11]
	s_cbranch_scc0 .LBB2_40
; %bb.44:                               ; %._crit_edge245
                                        ;   in Loop: Header=BB2_39 Depth=1
	s_lshl_b32 s12, s12, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_gt_i32 s12, s2
	s_cbranch_scc0 .LBB2_39
.LBB2_45:                               ; %._crit_edge249
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB2_48
; %bb.46:                               ; %.lr.ph.i199
	v_mad_u64_u32 v[1:2], null, v19, s2, v[0:1]
	v_mul_lo_u32 v4, s2, v10
	s_mov_b32 s3, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add3_u32 v1, v1, s33, 1
	v_add3_u32 v0, v0, v4, s33
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v2, 31, v1
	v_lshlrev_b64 v[2:3], 3, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s4, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v3, vcc_lo
.LBB2_47:                               ; =>This Inner Loop Header: Depth=1
	v_ashrrev_i32_e32 v1, 31, v0
	v_add_nc_u32_e32 v10, 1, v10
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[4:5], 3, v[0:1]
	v_add_nc_u32_e32 v0, s2, v0
	v_add_co_u32 v4, vcc_lo, s4, v4
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v5, vcc_lo
	v_cmp_le_i32_e32 vcc_lo, s2, v10
	global_load_b64 v[6:7], v[4:5], off
	global_load_b64 v[8:9], v[2:3], off
	s_or_b32 s3, vcc_lo, s3
	s_waitcnt vmcnt(1)
	global_store_b64 v[2:3], v[6:7], off
	v_add_co_u32 v2, s0, v2, 8
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v3, s0, 0, v3, s0
	s_waitcnt vmcnt(0)
	global_store_b64 v[4:5], v[8:9], off
	s_and_not1_b32 exec_lo, exec_lo, s3
	s_cbranch_execnz .LBB2_47
.LBB2_48:                               ; %Flow306
	s_or_b32 exec_lo, exec_lo, s1
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z3fftP12Complex_cudaS0_i
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 52
		.amdhsa_next_free_sgpr 53
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end2:
	.size	_Z3fftP12Complex_cudaS0_i, .Lfunc_end2-_Z3fftP12Complex_cudaS0_i
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 4640
; NumSgprs: 55
; NumVgprs: 52
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 6
; VGPRBlocks: 6
; NumSGPRsForWavesPerEU: 55
; NumVGPRsForWavesPerEU: 52
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z4ifftP12Complex_cudaS0_i ; -- Begin function _Z4ifftP12Complex_cudaS0_i
	.globl	_Z4ifftP12Complex_cudaS0_i
	.p2align	8
	.type	_Z4ifftP12Complex_cudaS0_i,@function
_Z4ifftP12Complex_cudaS0_i:             ; @_Z4ifftP12Complex_cudaS0_i
; %bb.0:
	s_clause 0x2
	s_load_b32 s3, s[0:1], 0x24
	s_load_b32 s2, s[0:1], 0x10
	s_load_b128 s[4:7], s[0:1], 0x0
	s_mov_b32 s8, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s0, s3, 0xffff
	s_cmp_gt_i32 s2, 0
	s_mul_i32 s33, s15, s0
	s_cselect_b32 s52, -1, 0
	v_add_nc_u32_e32 v19, s33, v0
	s_cmp_lt_i32 s2, 1
	s_cbranch_scc1 .LBB3_19
; %bb.1:                                ; %.lr.ph
	v_cvt_f64_i32_e32 v[1:2], s2
	s_mov_b32 s11, 0x401921fb
	s_mov_b32 s10, 0x54442d18
	s_add_u32 s12, s6, 4
	s_mov_b32 s20, 0x6dc9c883
	s_mov_b32 s22, 0x33145c00
	s_mov_b32 s24, 0x252049c0
	s_mov_b32 s26, 0x9037ab78
	s_mov_b32 s28, 0x46cc5e42
	s_mov_b32 s30, 0xa17f65f6
	s_mov_b32 s34, 0x19f4ec90
	s_mov_b32 s36, 0x16c16967
	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, 0x11110bb3
	s_addc_u32 s13, s7, 0
	s_mov_b32 s15, 0x3ff921fb
	s_mov_b32 s17, 0x3c91a626
	s_mov_b32 s18, 0x33145c07
	s_mov_b32 s21, 0x3fe45f30
	s_mov_b32 s23, 0xbc91a626
	s_mov_b32 s25, 0xb97b839a
	s_mov_b32 s27, 0x3e21eeb6
	s_mov_b32 s29, 0xbda907db
	s_mov_b32 s31, 0xbe927e4f
	s_mov_b32 s35, 0x3efa01a0
	s_mov_b32 s37, 0xbf56c16c
	s_mov_b32 s39, 0x3fa55555
	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 s51, 0xbfc55555
	s_mov_b32 s3, s2
	v_div_scale_f64 v[3:4], null, v[1:2], v[1:2], s[10:11]
	v_div_scale_f64 v[9:10], vcc_lo, s[10:11], v[1:2], s[10:11]
	v_mov_b32_e32 v20, 0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[5:6], v[3:4]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[7:8], -v[3:4], v[5:6], 1.0
	v_fma_f64 v[5:6], v[5:6], v[7:8], v[5:6]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[7:8], -v[3:4], v[5:6], 1.0
	v_fma_f64 v[5:6], v[5:6], v[7:8], v[5:6]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[7:8], v[9:10], v[5:6]
	v_fma_f64 v[3:4], -v[3:4], v[7:8], v[9:10]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[3:4], v[3:4], v[5:6], v[7:8]
	v_div_fixup_f64 v[1:2], v[3:4], v[1:2], s[10:11]
	v_mov_b32_e32 v3, 0
	v_mov_b32_e32 v4, 0
	s_mov_b32 s11, 0xbff921fb
.LBB3_2:                                ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[5:6], v[1:2], v[3:4]
	v_cmp_ngt_f64_e64 s1, 0x41d00000, |v[5:6]|
	v_trig_preop_f64 v[15:16], |v[5:6]|, 0
	v_trig_preop_f64 v[13:14], |v[5:6]|, 1
	v_cmp_le_f64_e64 s0, 0x7b000000, |v[5:6]|
	v_ldexp_f64 v[17:18], |v[5:6]|, 0xffffff80
	v_trig_preop_f64 v[11:12], |v[5:6]|, 2
	v_and_b32_e32 v22, 0x7fffffff, v6
	s_and_b32 vcc_lo, exec_lo, s1
	s_cbranch_vccz .LBB3_4
; %bb.3:                                ;   in Loop: Header=BB3_2 Depth=1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v8, v22, v18, s0
	v_cndmask_b32_e64 v7, v5, v17, s0
	s_mov_b32 s14, s10
	s_mov_b32 s19, s17
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_mul_f64 v[9:10], v[15:16], v[7:8]
	v_mul_f64 v[23:24], v[13:14], v[7:8]
	v_mul_f64 v[35:36], v[11:12], v[7:8]
	v_fma_f64 v[25:26], v[15:16], v[7:8], -v[9:10]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[37:38], v[13:14], v[7:8], -v[23:24]
	v_fma_f64 v[7:8], v[11:12], v[7:8], -v[35:36]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[27:28], v[23:24], v[25:26]
	v_add_f64 v[29:30], v[27:28], -v[23:24]
	v_add_f64 v[33:34], v[9:10], v[27:28]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[31:32], v[27:28], -v[29:30]
	v_add_f64 v[25:26], v[25:26], -v[29:30]
	v_ldexp_f64 v[29:30], v[33:34], -2
	v_add_f64 v[9:10], v[33:34], -v[9:10]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_f64 v[23:24], v[23:24], -v[31:32]
	v_add_f64 v[31:32], v[35:36], v[37:38]
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[29:30]|
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[9:10], v[27:28], -v[9:10]
	v_add_f64 v[23:24], v[25:26], v[23:24]
	v_fract_f64_e32 v[25:26], v[29:30]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[27:28], v[31:32], v[23:24]
	v_dual_cndmask_b32 v26, 0, v26 :: v_dual_cndmask_b32 v25, 0, v25
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ldexp_f64 v[25:26], v[25:26], 2
	v_add_f64 v[29:30], v[9:10], v[27:28]
	v_add_f64 v[39:40], v[27:28], -v[31:32]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[33:34], v[29:30], v[25:26]
	v_add_f64 v[45:46], v[27:28], -v[39:40]
	v_add_f64 v[23:24], v[23:24], -v[39:40]
	v_add_f64 v[9:10], v[29:30], -v[9:10]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_cmp_gt_f64_e32 vcc_lo, 0, v[33:34]
	v_add_f64 v[33:34], v[31:32], -v[35:36]
	v_add_f64 v[9:10], v[27:28], -v[9:10]
	s_and_b32 s0, vcc_lo, exec_lo
	s_cselect_b32 s9, 0x40100000, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_add_f64 v[43:44], v[31:32], -v[33:34]
	v_add_f64 v[25:26], v[25:26], s[8:9]
	v_add_f64 v[33:34], v[37:38], -v[33:34]
	v_add_f64 v[31:32], v[31:32], -v[45:46]
	v_add_f64 v[37:38], v[35:36], -v[43:44]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[41:42], v[29:30], v[25:26]
	v_add_f64 v[23:24], v[23:24], v[31:32]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[33:34], v[33:34], v[37:38]
	v_cvt_i32_f64_e32 v21, v[41:42]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[23:24], v[33:34], v[23:24]
	v_cvt_f64_i32_e32 v[39:40], v21
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[7:8], v[7:8], v[23:24]
	v_add_f64 v[25:26], v[25:26], -v[39:40]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[7:8], v[9:10], v[7:8]
	v_add_f64 v[31:32], v[29:30], v[25:26]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[23:24], v[31:32], -v[25:26]
	v_cmp_le_f64_e32 vcc_lo, 0.5, v[31:32]
	v_add_f64 v[9:10], v[29:30], -v[23:24]
	s_and_b32 s0, vcc_lo, exec_lo
	s_cselect_b32 s9, 0x3ff00000, 0
	v_add_co_ci_u32_e64 v21, s0, 0, v21, vcc_lo
	s_mov_b32 s0, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[7:8], v[7:8], v[9:10]
	v_add_f64 v[9:10], v[31:32], -s[8:9]
	v_add_f64 v[23:24], v[9:10], v[7:8]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_f64 v[25:26], v[23:24], s[14:15]
	v_add_f64 v[9:10], v[23:24], -v[9:10]
	v_fma_f64 v[27:28], v[23:24], s[14:15], -v[25:26]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[7:8], v[7:8], -v[9:10]
	v_fma_f64 v[9:10], v[23:24], s[18:19], v[27:28]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[9:10], v[7:8], s[14:15], v[9:10]
	v_add_f64 v[7:8], v[25:26], v[9:10]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[23:24], v[7:8], -v[25:26]
	v_add_f64 v[9:10], v[9:10], -v[23:24]
	s_branch .LBB3_5
.LBB3_4:                                ;   in Loop: Header=BB3_2 Depth=1
	s_mov_b32 s0, -1
                                        ; implicit-def: $vgpr21
                                        ; implicit-def: $vgpr7_vgpr8
                                        ; implicit-def: $vgpr9_vgpr10
.LBB3_5:                                ; %Flow328
                                        ;   in Loop: Header=BB3_2 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s0
	s_cbranch_vccnz .LBB3_7
; %bb.6:                                ;   in Loop: Header=BB3_2 Depth=1
	v_mul_f64 v[7:8], |v[5:6]|, s[20:21]
	s_mov_b32 s16, s22
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rndne_f64_e32 v[23:24], v[7:8]
	v_fma_f64 v[7:8], v[23:24], s[10:11], |v[5:6]|
	v_mul_f64 v[9:10], v[23:24], s[22:23]
	v_cvt_i32_f64_e32 v21, v[23:24]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[27:28], v[23:24], s[22:23], v[7:8]
	v_add_f64 v[25:26], v[7:8], v[9:10]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[7:8], v[7:8], -v[25:26]
	v_add_f64 v[25:26], v[25:26], -v[27:28]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[7:8], v[7:8], v[9:10]
	v_fma_f64 v[9:10], v[23:24], s[16:17], v[9:10]
	v_add_f64 v[7:8], v[25:26], v[7:8]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[7:8], v[7:8], -v[9:10]
	v_fma_f64 v[9:10], v[23:24], s[24:25], v[7:8]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[7:8], v[27:28], v[9:10]
	v_add_f64 v[25:26], v[7:8], -v[27:28]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[9:10], v[9:10], -v[25:26]
.LBB3_7:                                ; %_ZL3cosd.exit
                                        ;   in Loop: Header=BB3_2 Depth=1
	s_and_b32 vcc_lo, exec_lo, s1
	s_cbranch_vccz .LBB3_9
; %bb.8:                                ;   in Loop: Header=BB3_2 Depth=1
	v_cmp_le_f64_e64 vcc_lo, 0x7b000000, |v[5:6]|
	s_mov_b32 s14, s10
	s_mov_b32 s19, s17
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v18, v22, v18 :: v_dual_cndmask_b32 v17, v5, v17
	v_mul_f64 v[22:23], v[15:16], v[17:18]
	v_mul_f64 v[24:25], v[13:14], v[17:18]
	v_mul_f64 v[34:35], v[11:12], v[17:18]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[15:16], v[15:16], v[17:18], -v[22:23]
	v_fma_f64 v[13:14], v[13:14], v[17:18], -v[24:25]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[11:12], v[11:12], v[17:18], -v[34:35]
	v_add_f64 v[26:27], v[24:25], v[15:16]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[28:29], v[26:27], -v[24:25]
	v_add_f64 v[32:33], v[22:23], v[26:27]
	v_add_f64 v[30:31], v[26:27], -v[28:29]
	v_add_f64 v[15:16], v[15:16], -v[28:29]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_ldexp_f64 v[28:29], v[32:33], -2
	v_add_f64 v[22:23], v[32:33], -v[22:23]
	v_add_f64 v[24:25], v[24:25], -v[30:31]
	v_add_f64 v[30:31], v[34:35], v[13:14]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[28:29]|
	v_add_f64 v[22:23], v[26:27], -v[22:23]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[15:16], v[15:16], v[24:25]
	v_fract_f64_e32 v[24:25], v[28:29]
	v_add_f64 v[26:27], v[30:31], v[15:16]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v25, 0, v25 :: v_dual_cndmask_b32 v24, 0, v24
	v_ldexp_f64 v[24:25], v[24:25], 2
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[28:29], v[22:23], v[26:27]
	v_add_f64 v[36:37], v[26:27], -v[30:31]
	v_add_f64 v[32:33], v[28:29], v[24:25]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_add_f64 v[42:43], v[26:27], -v[36:37]
	v_add_f64 v[15:16], v[15:16], -v[36:37]
	v_add_f64 v[17:18], v[28:29], -v[22:23]
	v_cmp_gt_f64_e32 vcc_lo, 0, v[32:33]
	v_add_f64 v[32:33], v[30:31], -v[34:35]
	s_and_b32 s0, vcc_lo, exec_lo
	s_cselect_b32 s9, 0x40100000, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_add_f64 v[40:41], v[30:31], -v[32:33]
	v_add_f64 v[24:25], v[24:25], s[8:9]
	v_add_f64 v[13:14], v[13:14], -v[32:33]
	v_add_f64 v[30:31], v[30:31], -v[42:43]
	v_add_f64 v[32:33], v[34:35], -v[40:41]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[38:39], v[28:29], v[24:25]
	v_add_f64 v[15:16], v[15:16], v[30:31]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[13:14], v[13:14], v[32:33]
	v_cvt_i32_f64_e32 v38, v[38:39]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[13:14], v[13:14], v[15:16]
	v_cvt_f64_i32_e32 v[36:37], v38
	v_add_f64 v[15:16], v[26:27], -v[17:18]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[11:12], v[11:12], v[13:14]
	v_add_f64 v[24:25], v[24:25], -v[36:37]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[11:12], v[15:16], v[11:12]
	v_add_f64 v[22:23], v[28:29], v[24:25]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[13:14], v[22:23], -v[24:25]
	v_cmp_le_f64_e32 vcc_lo, 0.5, v[22:23]
	v_add_f64 v[13:14], v[28:29], -v[13:14]
	s_and_b32 s0, vcc_lo, exec_lo
	s_cselect_b32 s9, 0x3ff00000, 0
	v_add_co_ci_u32_e64 v15, s0, 0, v38, vcc_lo
	s_mov_b32 s0, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[11:12], v[11:12], v[13:14]
	v_add_f64 v[13:14], v[22:23], -s[8:9]
	v_add_f64 v[16:17], v[13:14], v[11:12]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_f64 v[22:23], v[16:17], s[14:15]
	v_add_f64 v[13:14], v[16:17], -v[13:14]
	v_fma_f64 v[24:25], v[16:17], s[14:15], -v[22:23]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[11:12], v[11:12], -v[13:14]
	v_fma_f64 v[13:14], v[16:17], s[18:19], v[24:25]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[13:14], v[11:12], s[14:15], v[13:14]
	v_add_f64 v[11:12], v[22:23], v[13:14]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[16:17], v[11:12], -v[22:23]
	v_add_f64 v[13:14], v[13:14], -v[16:17]
	s_branch .LBB3_10
.LBB3_9:                                ;   in Loop: Header=BB3_2 Depth=1
	s_mov_b32 s0, -1
                                        ; implicit-def: $vgpr15
                                        ; implicit-def: $vgpr11_vgpr12
                                        ; implicit-def: $vgpr13_vgpr14
.LBB3_10:                               ; %Flow327
                                        ;   in Loop: Header=BB3_2 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s0
	s_cbranch_vccnz .LBB3_12
; %bb.11:                               ;   in Loop: Header=BB3_2 Depth=1
	v_mul_f64 v[11:12], |v[5:6]|, s[20:21]
	s_mov_b32 s16, s22
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rndne_f64_e32 v[15:16], v[11:12]
	v_fma_f64 v[11:12], v[15:16], s[10:11], |v[5:6]|
	v_mul_f64 v[13:14], v[15:16], s[22:23]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[22:23], v[15:16], s[22:23], v[11:12]
	v_add_f64 v[17:18], v[11:12], v[13:14]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[11:12], v[11:12], -v[17:18]
	v_add_f64 v[17:18], v[17:18], -v[22:23]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[11:12], v[11:12], v[13:14]
	v_fma_f64 v[13:14], v[15:16], s[16:17], v[13:14]
	v_add_f64 v[11:12], v[17:18], v[11:12]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[11:12], v[11:12], -v[13:14]
	v_fma_f64 v[13:14], v[15:16], s[24:25], v[11:12]
	v_cvt_i32_f64_e32 v15, v[15:16]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[11:12], v[22:23], v[13:14]
	v_add_f64 v[17:18], v[11:12], -v[22:23]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[13:14], v[13:14], -v[17:18]
.LBB3_12:                               ; %_ZL3sind.exit
                                        ;   in Loop: Header=BB3_2 Depth=1
	v_mul_f64 v[16:17], v[7:8], v[7:8]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[22:23], v[11:12], v[11:12]
	v_mul_f64 v[40:41], v[9:10], 0.5
	s_delay_alu instid0(VALU_DEP_4)
	v_mul_f64 v[46:47], v[13:14], 0.5
	s_mov_b32 s50, s38
	v_cmp_class_f64_e64 s0, v[5:6], 0x1f8
	v_lshlrev_b32_e32 v5, 30, v15
	v_add_f64 v[3:4], v[3:4], 1.0
	s_add_i32 s3, s3, -1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_xor_b32_e32 v5, v5, v6
	v_and_b32_e32 v5, 0x80000000, v5
	v_fma_f64 v[24:25], v[16:17], s[42:43], s[40:41]
	v_fma_f64 v[26:27], v[22:23], s[42:43], s[40:41]
	v_mul_f64 v[30:31], v[16:17], 0.5
	v_fma_f64 v[28:29], v[16:17], s[28:29], s[26:27]
	v_fma_f64 v[32:33], v[22:23], s[28:29], s[26:27]
	v_mul_f64 v[34:35], v[22:23], 0.5
	v_mul_f64 v[42:43], v[7:8], -v[16:17]
	v_mul_f64 v[48:49], v[11:12], -v[22:23]
	v_fma_f64 v[24:25], v[16:17], v[24:25], s[44:45]
	v_fma_f64 v[26:27], v[22:23], v[26:27], s[44:45]
	v_add_f64 v[36:37], -v[30:31], 1.0
	v_fma_f64 v[28:29], v[16:17], v[28:29], s[30:31]
	v_fma_f64 v[32:33], v[22:23], v[32:33], s[30:31]
	v_add_f64 v[38:39], -v[34:35], 1.0
	v_fma_f64 v[24:25], v[16:17], v[24:25], s[46:47]
	v_fma_f64 v[26:27], v[22:23], v[26:27], s[46:47]
	v_add_f64 v[44:45], -v[36:37], 1.0
	v_fma_f64 v[28:29], v[16:17], v[28:29], s[34:35]
	v_fma_f64 v[32:33], v[22:23], v[32:33], s[34:35]
	v_add_f64 v[50:51], -v[38:39], 1.0
	v_fma_f64 v[24:25], v[16:17], v[24:25], s[48:49]
	v_fma_f64 v[26:27], v[22:23], v[26:27], s[48:49]
	v_add_f64 v[30:31], v[44:45], -v[30:31]
	v_fma_f64 v[28:29], v[16:17], v[28:29], s[36:37]
	v_fma_f64 v[32:33], v[22:23], v[32:33], s[36:37]
	v_add_f64 v[34:35], v[50:51], -v[34:35]
	v_fma_f64 v[24:25], v[42:43], v[24:25], v[40:41]
	v_fma_f64 v[26:27], v[48:49], v[26:27], v[46:47]
	v_fma_f64 v[30:31], v[7:8], -v[9:10], v[30:31]
	v_mul_f64 v[40:41], v[16:17], v[16:17]
	v_fma_f64 v[28:29], v[16:17], v[28:29], s[38:39]
	v_fma_f64 v[9:10], v[16:17], v[24:25], -v[9:10]
	v_mul_f64 v[16:17], v[22:23], v[22:23]
	v_fma_f64 v[24:25], v[22:23], v[32:33], s[38:39]
	v_fma_f64 v[32:33], v[11:12], -v[13:14], v[34:35]
	v_fma_f64 v[13:14], v[22:23], v[26:27], -v[13:14]
	v_fma_f64 v[22:23], v[40:41], v[28:29], v[30:31]
	v_fma_f64 v[9:10], v[42:43], s[50:51], v[9:10]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[16:17], v[16:17], v[24:25], v[32:33]
	v_fma_f64 v[13:14], v[48:49], s[50:51], v[13:14]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[22:23], v[36:37], v[22:23]
	v_add_f64 v[7:8], v[7:8], -v[9:10]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[9:10], v[38:39], v[16:17]
	v_add_f64 v[11:12], v[11:12], -v[13:14]
	v_lshlrev_b32_e32 v14, 30, v21
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_xor_b32_e32 v6, 0x80000000, v8
	v_and_b32_e32 v13, 1, v21
	v_and_b32_e32 v8, 0x80000000, v14
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_cmp_eq_u32_e32 vcc_lo, 0, v13
	v_and_b32_e32 v13, 1, v15
	v_dual_cndmask_b32 v6, v6, v23 :: v_dual_cndmask_b32 v7, v7, v22
	v_cmp_eq_u32_e64 s1, 0, v13
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v6, v6, v8
	v_cndmask_b32_e64 v10, v10, v12, s1
	v_cndmask_b32_e64 v9, v9, v11, s1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v6, 0x7ff80000, v6, s0
	v_xor_b32_e32 v8, v10, v5
	v_cndmask_b32_e64 v5, 0, v7, s0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v7, 0, v9, s0
	v_cndmask_b32_e64 v8, 0x7ff80000, v8, s0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cvt_f32_f64_e32 v5, v[5:6]
	v_cvt_f32_f64_e32 v6, v[7:8]
	global_store_b64 v20, v[5:6], s[12:13] offset:-4
	s_add_u32 s12, s12, 8
	s_addc_u32 s13, s13, 0
	s_cmp_eq_u32 s3, 0
	s_cbranch_scc0 .LBB3_2
; %bb.13:                               ; %.preheader229
	v_mul_lo_u32 v1, v19, s2
	s_mov_b32 s0, 0
	s_mov_b32 s1, 0
.LBB3_14:                               ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB3_17 Depth 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_le_i32 s0, s1
	s_cbranch_scc1 .LBB3_16
; %bb.15:                               ;   in Loop: Header=BB3_14 Depth=1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v2, s1, v1
	v_add_nc_u32_e32 v4, s0, v1
	v_ashrrev_i32_e32 v3, 31, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v5, 31, v4
	v_lshlrev_b64 v[2:3], 3, v[2:3]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[4:5], 3, v[4:5]
	v_add_co_u32 v2, vcc_lo, s4, v2
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v3, vcc_lo
	v_add_co_u32 v4, vcc_lo, s4, v4
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v5, vcc_lo
	s_clause 0x1
	global_load_b64 v[6:7], v[2:3], off
	global_load_b64 v[8:9], v[4:5], off
	s_waitcnt vmcnt(1)
	global_store_b64 v[4:5], v[6:7], off
	s_waitcnt vmcnt(0)
	global_store_b64 v[2:3], v[8:9], off
.LBB3_16:                               ; %.preheader265
                                        ;   in Loop: Header=BB3_14 Depth=1
	s_mov_b32 s3, s2
.LBB3_17:                               ;   Parent Loop BB3_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshr_b32 s3, s3, 1
	s_xor_b32 s1, s1, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_lt_i32 s1, s3
	s_cbranch_scc1 .LBB3_17
; %bb.18:                               ;   in Loop: Header=BB3_14 Depth=1
	s_add_i32 s0, s0, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s0, s2
	s_cbranch_scc0 .LBB3_14
.LBB3_19:                               ; %.preheader228
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_lo_u32 v1, v19, s2
	s_cmp_gt_i32 s2, 1
	s_mov_b32 s0, 2
	s_cselect_b32 s16, -1, 0
	s_cmp_lt_i32 s2, 2
	s_cbranch_scc1 .LBB3_27
; %bb.20:                               ; %.lr.ph242
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(SALU_CYCLE_1)
	v_ashrrev_i32_e32 v2, 31, v1
	s_mov_b32 s9, 0
	v_mov_b32_e32 v10, 0
	s_mov_b32 s3, s9
	s_lshl_b64 s[10:11], s[2:3], 3
	v_lshlrev_b64 v[2:3], 3, v[1:2]
	s_add_u32 s10, s4, s10
	s_addc_u32 s11, s5, s11
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, v2, s4
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, v2, 4
	v_add_co_ci_u32_e32 v3, vcc_lo, 0, v3, vcc_lo
.LBB3_21:                               ; %.preheader227.lr.ph
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB3_22 Depth 2
                                        ;       Child Loop BB3_24 Depth 3
	v_cvt_f32_u32_e32 v4, s0
	s_ashr_i32 s3, s0, 1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	s_cmp_gt_i32 s3, 0
	v_add_nc_u32_e32 v11, s3, v1
	v_rcp_iflag_f32_e32 v4, v4
	s_cselect_b32 s17, -1, 0
	s_sub_i32 s8, 0, s0
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v4, 0x4f7ffffe, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cvt_u32_f32_e32 v4, v4
	v_readfirstlane_b32 s1, v4
	v_dual_mov_b32 v5, v3 :: v_dual_mov_b32 v4, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_i32 s8, s8, s1
	s_mul_hi_u32 s8, s1, s8
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_add_i32 s1, s1, s8
	s_mul_hi_u32 s8, s2, s1
	s_ashr_i32 s1, s0, 31
	s_mul_i32 s12, s8, s0
	s_add_i32 s13, s8, 1
	s_sub_i32 s12, s2, s12
	s_delay_alu instid0(SALU_CYCLE_1)
	s_sub_i32 s14, s12, s0
	s_cmp_ge_u32 s12, s0
	s_cselect_b32 s8, s13, s8
	s_cselect_b32 s12, s14, s12
	s_add_i32 s13, s8, 1
	s_cmp_ge_u32 s12, s0
	s_mov_b64 s[14:15], s[4:5]
	s_cselect_b32 s18, s13, s8
	s_lshl_b64 s[12:13], s[0:1], 3
.LBB3_22:                               ; %.preheader227
                                        ;   Parent Loop BB3_21 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB3_24 Depth 3
	s_and_not1_b32 vcc_lo, exec_lo, s17
	s_cbranch_vccnz .LBB3_25
; %bb.23:                               ; %.lr.ph236
                                        ;   in Loop: Header=BB3_22 Depth=2
	v_dual_mov_b32 v6, v11 :: v_dual_mov_b32 v9, v5
	v_mov_b32_e32 v8, v4
	s_mov_b32 s8, 0
	s_mov_b32 s1, s3
.LBB3_24:                               ;   Parent Loop BB3_21 Depth=1
                                        ;     Parent Loop BB3_22 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_ashrrev_i32_e32 v7, 31, v6
	s_lshl_b64 s[20:21], s[8:9], 3
	s_add_u32 s20, s6, s20
	s_addc_u32 s21, s7, s21
	s_delay_alu instid0(VALU_DEP_1)
	v_lshlrev_b64 v[12:13], 3, v[6:7]
	global_load_b64 v[14:15], v10, s[20:21]
	s_add_i32 s1, s1, -1
	s_add_i32 s8, s8, s18
	s_cmp_eq_u32 s1, 0
	v_add_co_u32 v12, vcc_lo, s14, v12
	v_add_co_ci_u32_e32 v13, vcc_lo, s15, v13, vcc_lo
	global_load_b64 v[16:17], v[12:13], off
	global_load_b64 v[20:21], v[8:9], off offset:-4
	s_waitcnt vmcnt(1)
	v_dual_mul_f32 v7, v15, v17 :: v_dual_add_nc_u32 v6, 1, v6
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f32 v7, v14, v16, -v7
	s_waitcnt vmcnt(0)
	v_dual_mul_f32 v17, v14, v17 :: v_dual_sub_f32 v14, v20, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v17, v16, v15
	v_dual_add_f32 v16, v20, v7 :: v_dual_sub_f32 v15, v21, v17
	v_add_f32_e32 v17, v21, v17
	global_store_b64 v[12:13], v[14:15], off
	global_store_b64 v[8:9], v[16:17], off offset:-4
	v_add_co_u32 v8, vcc_lo, v8, 8
	v_add_co_ci_u32_e32 v9, vcc_lo, 0, v9, vcc_lo
	s_cbranch_scc0 .LBB3_24
.LBB3_25:                               ; %._crit_edge
                                        ;   in Loop: Header=BB3_22 Depth=2
	v_add_co_u32 v4, vcc_lo, v4, s12
	s_add_u32 s14, s14, s12
	v_add_co_ci_u32_e32 v5, vcc_lo, s13, v5, vcc_lo
	s_addc_u32 s15, s15, s13
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u64 s[14:15], s[10:11]
	s_cbranch_scc0 .LBB3_22
; %bb.26:                               ; %._crit_edge239
                                        ;   in Loop: Header=BB3_21 Depth=1
	s_lshl_b32 s0, s0, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_gt_i32 s0, s2
	s_cbranch_scc0 .LBB3_21
.LBB3_27:                               ; %._crit_edge243
	v_add_nc_u32_e32 v10, 1, v19
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	v_cmp_gt_i32_e64 s0, s2, v10
	s_delay_alu instid0(VALU_DEP_1)
	s_and_saveexec_b32 s3, s0
	s_cbranch_execz .LBB3_30
; %bb.28:                               ; %.lr.ph.i
	v_mad_u64_u32 v[2:3], null, v19, s2, v[0:1]
	v_mul_lo_u32 v6, s2, v10
	s_mov_b32 s8, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add3_u32 v2, v2, s33, 1
	v_ashrrev_i32_e32 v3, 31, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_lshlrev_b64 v[4:5], 3, v[2:3]
	v_add3_u32 v2, v0, v6, s33
	v_mov_b32_e32 v6, v10
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v4, vcc_lo, s4, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v5, vcc_lo
.LBB3_29:                               ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_ashrrev_i32_e32 v3, 31, v2
	v_add_nc_u32_e32 v6, 1, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[7:8], 3, v[2:3]
	v_add_nc_u32_e32 v2, s2, v2
	v_add_co_u32 v7, vcc_lo, s4, v7
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v8, vcc_lo, s5, v8, vcc_lo
	v_cmp_le_i32_e32 vcc_lo, s2, v6
	global_load_b64 v[11:12], v[7:8], off
	global_load_b64 v[13:14], v[4:5], off
	s_or_b32 s8, vcc_lo, s8
	s_waitcnt vmcnt(1)
	global_store_b64 v[4:5], v[11:12], off
	v_add_co_u32 v4, s1, v4, 8
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v5, s1, 0, v5, s1
	s_waitcnt vmcnt(0)
	global_store_b64 v[7:8], v[13:14], off
	s_and_not1_b32 exec_lo, exec_lo, s8
	s_cbranch_execnz .LBB3_29
.LBB3_30:                               ; %Flow321
	s_or_b32 exec_lo, exec_lo, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s52
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_cbranch_vccnz .LBB3_37
; %bb.31:                               ; %.lr.ph246
	s_mov_b32 s1, 0
	s_mov_b32 s3, 0
.LBB3_32:                               ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB3_35 Depth 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_le_i32 s3, s1
	s_cbranch_scc1 .LBB3_34
; %bb.33:                               ;   in Loop: Header=BB3_32 Depth=1
	v_add_nc_u32_e32 v2, s1, v1
	v_add_nc_u32_e32 v4, s3, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v3, 31, v2
	v_ashrrev_i32_e32 v5, 31, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[2:3], 3, v[2:3]
	v_lshlrev_b64 v[4:5], 3, v[4:5]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v2, vcc_lo, s4, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v4, vcc_lo, s4, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v5, vcc_lo
	s_clause 0x1
	global_load_b64 v[6:7], v[2:3], off
	global_load_b64 v[8:9], v[4:5], off
	s_waitcnt vmcnt(1)
	global_store_b64 v[4:5], v[6:7], off
	s_waitcnt vmcnt(0)
	global_store_b64 v[2:3], v[8:9], off
.LBB3_34:                               ; %.preheader264
                                        ;   in Loop: Header=BB3_32 Depth=1
	s_mov_b32 s8, s2
.LBB3_35:                               ;   Parent Loop BB3_32 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshr_b32 s8, s8, 1
	s_xor_b32 s1, s8, s1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_lt_i32 s1, s8
	s_cbranch_scc1 .LBB3_35
; %bb.36:                               ;   in Loop: Header=BB3_32 Depth=1
	s_add_i32 s3, s3, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s3, s2
	s_cbranch_scc0 .LBB3_32
.LBB3_37:                               ; %.preheader226
	s_and_not1_b32 vcc_lo, exec_lo, s16
	s_cbranch_vccnz .LBB3_45
; %bb.38:                               ; %.lr.ph255
	v_ashrrev_i32_e32 v2, 31, v1
	s_mov_b32 s9, 0
	v_mov_b32_e32 v11, 0
	s_mov_b32 s3, s9
	s_mov_b32 s12, 2
	v_lshlrev_b64 v[2:3], 3, v[1:2]
	s_lshl_b64 s[10:11], s[2:3], 3
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	s_add_u32 s10, s4, s10
	s_addc_u32 s11, s5, s11
	v_add_co_u32 v2, vcc_lo, v2, s4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v3, vcc_lo
	v_add_co_u32 v2, vcc_lo, v2, 4
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, 0, v3, vcc_lo
.LBB3_39:                               ; %.preheader.lr.ph
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB3_40 Depth 2
                                        ;       Child Loop BB3_42 Depth 3
	v_cvt_f32_u32_e32 v4, s12
	s_ashr_i32 s1, s12, 1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	s_cmp_gt_i32 s1, 0
	v_add_nc_u32_e32 v12, s1, v1
	v_rcp_iflag_f32_e32 v4, v4
	s_cselect_b32 s3, -1, 0
	s_sub_i32 s13, 0, s12
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v4, 0x4f7ffffe, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cvt_u32_f32_e32 v4, v4
	v_readfirstlane_b32 s8, v4
	v_dual_mov_b32 v5, v3 :: v_dual_mov_b32 v4, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_i32 s13, s13, s8
	s_mul_hi_u32 s13, s8, s13
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	s_add_i32 s8, s8, s13
	s_ashr_i32 s13, s12, 31
	s_mul_hi_u32 s8, s2, s8
	s_mul_i32 s14, s8, s12
	s_add_i32 s15, s8, 1
	s_sub_i32 s14, s2, s14
	s_delay_alu instid0(SALU_CYCLE_1)
	s_sub_i32 s16, s14, s12
	s_cmp_ge_u32 s14, s12
	s_cselect_b32 s8, s15, s8
	s_cselect_b32 s14, s16, s14
	s_add_i32 s15, s8, 1
	s_cmp_ge_u32 s14, s12
	s_mov_b64 s[16:17], s[4:5]
	s_cselect_b32 s18, s15, s8
	s_lshl_b64 s[14:15], s[12:13], 3
.LBB3_40:                               ; %.preheader
                                        ;   Parent Loop BB3_39 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB3_42 Depth 3
	s_and_not1_b32 vcc_lo, exec_lo, s3
	s_cbranch_vccnz .LBB3_43
; %bb.41:                               ; %.lr.ph248
                                        ;   in Loop: Header=BB3_40 Depth=2
	v_dual_mov_b32 v6, v12 :: v_dual_mov_b32 v9, v5
	v_mov_b32_e32 v8, v4
	s_mov_b32 s8, 0
	s_mov_b32 s13, s1
.LBB3_42:                               ;   Parent Loop BB3_39 Depth=1
                                        ;     Parent Loop BB3_40 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_ashrrev_i32_e32 v7, 31, v6
	s_lshl_b64 s[20:21], s[8:9], 3
	s_add_u32 s20, s6, s20
	s_addc_u32 s21, s7, s21
	s_delay_alu instid0(VALU_DEP_1)
	v_lshlrev_b64 v[13:14], 3, v[6:7]
	global_load_b64 v[15:16], v11, s[20:21]
	s_add_i32 s13, s13, -1
	s_add_i32 s8, s8, s18
	s_cmp_eq_u32 s13, 0
	v_add_co_u32 v13, vcc_lo, s16, v13
	v_add_co_ci_u32_e32 v14, vcc_lo, s17, v14, vcc_lo
	global_load_b64 v[17:18], v[13:14], off
	global_load_b64 v[20:21], v[8:9], off offset:-4
	s_waitcnt vmcnt(1)
	v_mul_f32_e32 v7, v16, v18
	v_mul_f32_e32 v18, v15, v18
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fmac_f32_e32 v18, v17, v16
	v_fma_f32 v7, v15, v17, -v7
	v_add_nc_u32_e32 v6, 1, v6
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2)
	v_dual_sub_f32 v16, v21, v18 :: v_dual_sub_f32 v15, v20, v7
	v_dual_add_f32 v17, v20, v7 :: v_dual_add_f32 v18, v21, v18
	global_store_b64 v[13:14], v[15:16], off
	global_store_b64 v[8:9], v[17:18], off offset:-4
	v_add_co_u32 v8, vcc_lo, v8, 8
	v_add_co_ci_u32_e32 v9, vcc_lo, 0, v9, vcc_lo
	s_cbranch_scc0 .LBB3_42
.LBB3_43:                               ; %._crit_edge249
                                        ;   in Loop: Header=BB3_40 Depth=2
	v_add_co_u32 v4, vcc_lo, v4, s14
	s_add_u32 s16, s16, s14
	v_add_co_ci_u32_e32 v5, vcc_lo, s15, v5, vcc_lo
	s_addc_u32 s17, s17, s15
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u64 s[16:17], s[10:11]
	s_cbranch_scc0 .LBB3_40
; %bb.44:                               ; %._crit_edge252
                                        ;   in Loop: Header=BB3_39 Depth=1
	s_lshl_b32 s12, s12, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_gt_i32 s12, s2
	s_cbranch_scc0 .LBB3_39
.LBB3_45:                               ; %._crit_edge256
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB3_48
; %bb.46:                               ; %.lr.ph.i207
	v_mad_u64_u32 v[1:2], null, v19, s2, v[0:1]
	v_mul_lo_u32 v4, s2, v10
	s_mov_b32 s3, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add3_u32 v1, v1, s33, 1
	v_add3_u32 v0, v0, v4, s33
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v2, 31, v1
	v_lshlrev_b64 v[2:3], 3, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s4, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v3, vcc_lo
.LBB3_47:                               ; =>This Inner Loop Header: Depth=1
	v_ashrrev_i32_e32 v1, 31, v0
	v_add_nc_u32_e32 v10, 1, v10
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[4:5], 3, v[0:1]
	v_add_nc_u32_e32 v0, s2, v0
	v_add_co_u32 v4, vcc_lo, s4, v4
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v5, vcc_lo
	v_cmp_le_i32_e32 vcc_lo, s2, v10
	global_load_b64 v[6:7], v[4:5], off
	global_load_b64 v[8:9], v[2:3], off
	s_or_b32 s3, vcc_lo, s3
	s_waitcnt vmcnt(1)
	global_store_b64 v[2:3], v[6:7], off
	v_add_co_u32 v2, s0, v2, 8
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v3, s0, 0, v3, s0
	s_waitcnt vmcnt(0)
	global_store_b64 v[4:5], v[8:9], off
	s_and_not1_b32 exec_lo, exec_lo, s3
	s_cbranch_execnz .LBB3_47
.LBB3_48:                               ; %Flow313
	s_or_b32 exec_lo, exec_lo, s1
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z4ifftP12Complex_cudaS0_i
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 52
		.amdhsa_next_free_sgpr 53
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end3:
	.size	_Z4ifftP12Complex_cudaS0_i, .Lfunc_end3-_Z4ifftP12Complex_cudaS0_i
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 4628
; NumSgprs: 55
; NumVgprs: 52
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 6
; VGPRBlocks: 6
; NumSGPRsForWavesPerEU: 55
; NumVGPRsForWavesPerEU: 52
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z3fftP12Complex_cudaS0_i
    .private_segment_fixed_size: 0
    .sgpr_count:     55
    .sgpr_spill_count: 0
    .symbol:         _Z3fftP12Complex_cudaS0_i.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     52
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z4ifftP12Complex_cudaS0_i
    .private_segment_fixed_size: 0
    .sgpr_count:     55
    .sgpr_spill_count: 0
    .symbol:         _Z4ifftP12Complex_cudaS0_i.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     52
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
