//Three Dimensional Poisson solver using NVIDIA CUDA
//Author: Arkavo Hait, 2021


#include <stdio.h>
#include <iostream>
#include <cmath>
#include <time.h>
#include <chrono>
#include <string>
#include <limits.h>
#include <fstream>

using namespace std;

//Box struct
struct BOX
{
    int X;
    int Y;
    int Z;
};

//X double derivative
__global__ void DDX(double* R, double* C,int X,int Y,int Z,double dx)
{
    int idx = threadIdx.x + blockIdx.x*blockDim.x;
    if(idx<((Y-2)*(Z-2)))
    {
        int idy = idx / (Y-2) ;
        int idz = idx % (Y-2) ;
        int index = idy*X + idz*X*Y + X+X*Y;

        for(int i=1;i<X-1;i++)
        {
            *(R+index+i) = (*(C+index+1+i) + *(C+index-1+i) - 2* *(C+index+i))/(dx*dx);
        }
    }
}

//Y double derivative
__global__ void DDY(double* R, double* C,int X,int Y,int Z, double dy)
{
    int idx = threadIdx.x + blockIdx.x*blockDim.x;
    if(idx<((Y-2)*(Z-2))){
    int idy = idx / (Y-2) ;
    int idz = idx % (Y-2) ;
    int index = idy*X + idz*X*Y + X+X*Y;
    for(int i=1;i<Y-1;i++)
    {
        *(R+index+i*X) = (*(C+index+X*(i+1)) + *(C+index+X*(i-1)) - 2* *(C+index+i*X))/(dy*dy);
    }}
}

//Z double derivative
__global__ void DDZ(double* R, double* C,int X,int Y,int Z, double dz)
{
    int idx = threadIdx.x + blockIdx.x*blockDim.x;
    if(idx<((Y-2)*(Z-2))){
    int idy = idx / (Y-2) ;
    int idz = idx % (Y-2) ;
    int index = idy*X + idz*X*Y + X+X*Y;
    for(int i=0;i<Z-1;i++)
    {
        *(R+index+i*X*Y) = (*(C+index+X*Y*(i+1)) + *(C+index+X*Y*(i-1))- 2* *(C+index+i*X*Y))/(dz*dz);
    }}
}

//parallel function to update matrices
__global__ void ASSIGN(double* R, double* C,int X,int Y,int Z)
{
    int idx = threadIdx.x + blockIdx.x*blockDim.x;
    if(idx<((Y-2)*(Z-2))){
    int idy = idx / (Y-2) ;
    int idz = idx % (Y-2) ;
    int index = idy*X + idz*X*Y + X+X*Y;
    for(int i=1;i<X-1;i++)
    {
        *(R+index+i) = *(C+index+i);
    }}
}

//parallel function to add two matrices
__global__ void ADD(double* R,double* C,double dt,int X,int Y,int Z)
{
    int idx = threadIdx.x + blockIdx.x*blockDim.x;
    if(idx<((Y-2)*(Z-2))){
    int idy = idx / (Y-2) ;
    int idz = idx % (Y-2) ;
    int index = idy*X + idz*X*Y + X+X*Y;
    for(int i=0;i<X;i++)
    {
        *(R+index+i) += (*(C+index+i) * dt);
    }}
}

//parallel function to compare two matrices, outputting a maximum difference bteween elements
__global__ void COMPARE(double* R, double* C, double* OUT_H,int X,int Y,int Z)
{
    int idx = threadIdx.x + blockIdx.x*blockDim.x;
    if(idx<((Y-2)*(Z-2))){
    int idy = idx / (Y-2) ;
    int idz = idx % (Y-2) ;
    int index = idy*X + idz*X*Y + X+X*Y;
    for(int i=1;i<X-1;i++)
    {
        if(abs(*(R+index+i)-*(C+index+i))>= *OUT_H)
        {
            *OUT_H = abs(*(R+index+i) - *(C+index+i));
        }
    }}
}

//reset function, use it to reset any pointer
__global__ void RESET_CTR(double* C)
{
    *C = 0;
}

//display function, use to disaply any array [deprecated for future use]
void display(double* DATA,int X,int Y,int Z)
{
    for(int k=0;k<Z;k++)
        {for(int j=0;j<Y;j++)
            {for(int i=0;i<X;i++)
                {printf("%.2lf ",*(DATA+i+X*j+X*Z*k));}
            printf("\n");}printf("\n");}
}

//main fxn, will fix with args after
int main(int argc, char* argv[])
{
    std::ofstream file;
    file.open("data.csv",ios::app);
    
    //file<<"Threads, X, Y, Z, Total, Time\n";
    
    //DECLARE YOUR VARIABLES HERE
    struct BOX grid;
    int threads;
    //std::cout<<argc<<"\n";
    if(argc==2)
    {
        threads = stoi(argv[1]);
        grid.X=10;
        grid.Y=10;
        grid.Z=10;
    }
    if(argc>2)
    {
        threads = stoi(argv[1]);
        grid.X = stoi(argv[2]);
        grid.Y = stoi(argv[3]);
        grid.Z = stoi(argv[4]);
    }
    std::cout<<"Threads: "<<threads<<"\n";
    const int X = grid.X;
    const int Y = grid.Y;
    const int Z = grid.Z;
    int blocks = 1 + (Y-2) * (Z-2) / threads;
    std::cout<<"Blocks: "<<blocks<<"\n";
    //step for double derivatives
    double step = 0.001;
    //tolerence
    double tol = 0.00001;
    
    std::cout<<"\nX"<<X<<" Y"<<Y<<" Z"<<Z<<" Total Capacity⇒"<<X*Y*Z<<endl;
    unsigned long long SIZE_0 = ((int)sizeof(double))*X*Y*Z;
    double* DATA_H; 
    double* DATA_F;
    DATA_H = (double*)malloc(SIZE_0);
    DATA_F = (double*)malloc(SIZE_0);
    
    //Impose Boundary conditions here
    
    for(int i=0;i<X;i++)
        {for(int j=0;j<Y;j++)
            {for(int k=0;k<Z;k++)
                {
                    if(i==0||i==(X-1)||j==0||j==(Y-1)||k==0||k==(Z-1))
                        *(DATA_H+i+j*X+k*X*Y) = 5;
                    else
                        *(DATA_H+i+j*X+k*X*Y) = 0;
    }}}
    
    
    //error counters
    double* CC;
    double CCD = 0;
    
    //DATA pointer for device state 0
    double* DATA_ORIGINAL;
    //DATA pointer for device state 1
    double* DATA_NEXT;
    //Derivative results pointers
    double* DDX_D;
    double* DDY_D;
    double* DDZ_D;
    
    //array size for device
    
    //allocating space for arrays
    cudaMalloc((void**)&DATA_ORIGINAL,SIZE_0);
    
    cudaMalloc((void**)&DATA_NEXT,SIZE_0);
    
    cudaMalloc((void**)&DDX_D,SIZE_0);
    cudaMalloc((void**)&DDY_D,SIZE_0);
    cudaMalloc((void**)&DDZ_D,SIZE_0);
    
    cudaMalloc(&CC,(int)sizeof(double));
    
    //token counter
    CCD = 10.;
    //copy data state0, state1 
    cudaMemcpy(DATA_ORIGINAL,DATA_H,SIZE_0,cudaMemcpyHostToDevice);
    cudaMemcpy(DATA_NEXT,DATA_H,SIZE_0,cudaMemcpyHostToDevice);
    
    //counter
    int ct = 0;
    
    
    auto hst_st = std::chrono::high_resolution_clock::now();
    //run while tolerence > differences
    while(CCD>tol)
    {
        //reset difference every loop
        RESET_CTR  <<<1,1>>>  (CC);
        //run derivatives
        DDY <<<blocks,threads>>> (DDY_D,DATA_ORIGINAL,X,Y,Z,10.);
        DDZ <<<blocks,threads>>> (DDZ_D,DATA_ORIGINAL,X,Y,Z,10.);
        DDX <<<blocks,threads>>> (DDX_D,DATA_ORIGINAL,X,Y,Z,10.);     //add into state 1
        ADD <<<blocks,threads>>> (DATA_NEXT,DDX_D,step,X,Y,Z);
        ADD <<<blocks,threads>>> (DATA_NEXT,DDY_D,step,X,Y,Z);
        ADD <<<blocks,threads>>> (DATA_NEXT,DDZ_D,step,X,Y,Z);
        //compare state1 state 0
        COMPARE<<<blocks,threads>>>(DATA_ORIGINAL,DATA_NEXT,CC,X,Y,Z);
        //copy back max error
        cudaMemcpy(&CCD,CC,sizeof(double),cudaMemcpyDeviceToHost);
        //make state 1 as state0
        ASSIGN  <<<blocks,threads>>>  (DATA_ORIGINAL,DATA_NEXT,X,Y,Z);
        //update counter
        ct += 1;
        //information every 1000 loops because of visibility
        if(ct%1000==0)
        {
            cudaMemcpy(&CCD,CC,sizeof(double),cudaMemcpyDeviceToHost);
            printf("%d loops %0.6lf max error\r",ct,CCD);
        }
    }

    //copy back final array
    cudaMemcpy(DATA_F,DATA_ORIGINAL,SIZE_0,cudaMemcpyDeviceToHost);
    auto hst_en = std::chrono::high_resolution_clock::now();
    std::chrono::duration<float> duration = hst_en-hst_st;
    std::cout<<"\nDuration: "<<duration.count()<<"\n";
    //final print statement
    std::cout<<"\n\nConverged in "<<ct-1<<" loops\n\n";
    //file<<"Threads, X, Y, Z, Total, Time\n";
    file<<threads<<","<<X<<","<<Y<<","<<Z<<","<<X*Y*Z<<","<<duration.count()<<"\n";
    file.close();
    //display optional
    //display(DATA_F,X,Y,Z);
    
    //free pointers
    cudaFree(DATA_ORIGINAL);
    cudaFree(DATA_NEXT);
    cudaFree(DDX_D);
    cudaFree(DDY_D);
    cudaFree(DDZ_D);
    
    return 0;
}
	.file	"tmpxft_002c1250_00000000-6_poissonCUDA.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3873:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE3873:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%.2lf "
.LC1:
	.string	"\n"
	.text
	.globl	_Z7displayPdiii
	.type	_Z7displayPdiii, @function
_Z7displayPdiii:
.LFB3865:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%ecx, %eax
	xorl	%r15d, %r15d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	imull	%esi, %eax
	xorl	%r14d, %r14d
	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
	movl	%ecx, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%esi, %ebx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%rdi, 16(%rsp)
	movl	%edx, 28(%rsp)
	movl	%eax, 24(%rsp)
.L3:
	cmpl	%ebp, %r15d
	jge	.L2
	movslq	%r14d, %rax
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	movq	%rax, 8(%rsp)
.L8:
	movl	28(%rsp), %eax
	cmpl	%eax, %r12d
	jge	.L5
	movq	8(%rsp), %rdi
	movq	16(%rsp), %rcx
	movslq	%r13d, %rax
	xorl	%edx, %edx
	addq	%rdi, %rax
	leaq	(%rcx,%rax,8), %rcx
.L6:
	cmpl	%edx, %ebx
	jle	.L11
	movsd	(%rcx,%rdx,8), %xmm0
	leaq	.LC0(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	movq	%rcx, 40(%rsp)
	movq	%rdx, 32(%rsp)
	call	__printf_chk@PLT
	movq	32(%rsp), %rdx
	movq	40(%rsp), %rcx
	incq	%rdx
	jmp	.L6
.L11:
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	incl	%r12d
	addl	%ebx, %r13d
	movl	$2, %edi
	call	__printf_chk@PLT
	jmp	.L8
.L5:
	leaq	.LC1(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	incl	%r15d
	call	__printf_chk@PLT
	movl	24(%rsp), %eax
	addl	%eax, %r14d
	jmp	.L3
.L2:
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3865:
	.size	_Z7displayPdiii, .-_Z7displayPdiii
	.globl	_Z28__device_stub__Z3DDXPdS_iiidPdS_iiid
	.type	_Z28__device_stub__Z3DDXPdS_iiidPdS_iiid, @function
_Z28__device_stub__Z3DDXPdS_iiidPdS_iiid:
.LFB3895:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movq	%rdi, 40(%rsp)
	leaq	72(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	84(%rsp), %rsi
	movl	%edx, 28(%rsp)
	leaq	56(%rsp), %rdx
	movl	%ecx, 24(%rsp)
	leaq	64(%rsp), %rcx
	movl	%r8d, 20(%rsp)
	movsd	%xmm0, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 80(%rsp)
	movq	%rax, 120(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	28(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 72(%rsp)
	movq	%rax, 84(%rsp)
	movl	$1, 92(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L12
	pushq	64(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z3DDXPdS_iiid(%rip), %rdi
	pushq	64(%rsp)
	.cfi_def_cfa_offset 208
	movq	100(%rsp), %rcx
	movl	108(%rsp), %r8d
	movq	88(%rsp), %rsi
	movl	96(%rsp), %edx
	leaq	136(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L12:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3895:
	.size	_Z28__device_stub__Z3DDXPdS_iiidPdS_iiid, .-_Z28__device_stub__Z3DDXPdS_iiidPdS_iiid
	.globl	_Z3DDXPdS_iiid
	.type	_Z3DDXPdS_iiid, @function
_Z3DDXPdS_iiid:
.LFB3896:
	.cfi_startproc
	endbr64
	jmp	_Z28__device_stub__Z3DDXPdS_iiidPdS_iiid
	.cfi_endproc
.LFE3896:
	.size	_Z3DDXPdS_iiid, .-_Z3DDXPdS_iiid
	.globl	_Z28__device_stub__Z3DDYPdS_iiidPdS_iiid
	.type	_Z28__device_stub__Z3DDYPdS_iiidPdS_iiid, @function
_Z28__device_stub__Z3DDYPdS_iiidPdS_iiid:
.LFB3897:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movq	%rdi, 40(%rsp)
	leaq	72(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	84(%rsp), %rsi
	movl	%edx, 28(%rsp)
	leaq	56(%rsp), %rdx
	movl	%ecx, 24(%rsp)
	leaq	64(%rsp), %rcx
	movl	%r8d, 20(%rsp)
	movsd	%xmm0, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 80(%rsp)
	movq	%rax, 120(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	28(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 72(%rsp)
	movq	%rax, 84(%rsp)
	movl	$1, 92(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L17
	pushq	64(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z3DDYPdS_iiid(%rip), %rdi
	pushq	64(%rsp)
	.cfi_def_cfa_offset 208
	movq	100(%rsp), %rcx
	movl	108(%rsp), %r8d
	movq	88(%rsp), %rsi
	movl	96(%rsp), %edx
	leaq	136(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L17:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3897:
	.size	_Z28__device_stub__Z3DDYPdS_iiidPdS_iiid, .-_Z28__device_stub__Z3DDYPdS_iiidPdS_iiid
	.globl	_Z3DDYPdS_iiid
	.type	_Z3DDYPdS_iiid, @function
_Z3DDYPdS_iiid:
.LFB3898:
	.cfi_startproc
	endbr64
	jmp	_Z28__device_stub__Z3DDYPdS_iiidPdS_iiid
	.cfi_endproc
.LFE3898:
	.size	_Z3DDYPdS_iiid, .-_Z3DDYPdS_iiid
	.globl	_Z28__device_stub__Z3DDZPdS_iiidPdS_iiid
	.type	_Z28__device_stub__Z3DDZPdS_iiidPdS_iiid, @function
_Z28__device_stub__Z3DDZPdS_iiidPdS_iiid:
.LFB3899:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movq	%rdi, 40(%rsp)
	leaq	72(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	84(%rsp), %rsi
	movl	%edx, 28(%rsp)
	leaq	56(%rsp), %rdx
	movl	%ecx, 24(%rsp)
	leaq	64(%rsp), %rcx
	movl	%r8d, 20(%rsp)
	movsd	%xmm0, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 80(%rsp)
	movq	%rax, 120(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	28(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 72(%rsp)
	movq	%rax, 84(%rsp)
	movl	$1, 92(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L22
	pushq	64(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z3DDZPdS_iiid(%rip), %rdi
	pushq	64(%rsp)
	.cfi_def_cfa_offset 208
	movq	100(%rsp), %rcx
	movl	108(%rsp), %r8d
	movq	88(%rsp), %rsi
	movl	96(%rsp), %edx
	leaq	136(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L22:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3899:
	.size	_Z28__device_stub__Z3DDZPdS_iiidPdS_iiid, .-_Z28__device_stub__Z3DDZPdS_iiidPdS_iiid
	.globl	_Z3DDZPdS_iiid
	.type	_Z3DDZPdS_iiid, @function
_Z3DDZPdS_iiid:
.LFB3900:
	.cfi_startproc
	endbr64
	jmp	_Z28__device_stub__Z3DDZPdS_iiidPdS_iiid
	.cfi_endproc
.LFE3900:
	.size	_Z3DDZPdS_iiid, .-_Z3DDZPdS_iiid
	.globl	_Z30__device_stub__Z6ASSIGNPdS_iiiPdS_iii
	.type	_Z30__device_stub__Z6ASSIGNPdS_iiiPdS_iii, @function
_Z30__device_stub__Z6ASSIGNPdS_iiiPdS_iii:
.LFB3901:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	32(%rsp), %rdx
	movl	%ecx, 8(%rsp)
	leaq	40(%rsp), %rcx
	movl	%r8d, 4(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 136(%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)
	leaq	8(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L27
	pushq	40(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z6ASSIGNPdS_iii(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 176
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L27:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3901:
	.size	_Z30__device_stub__Z6ASSIGNPdS_iiiPdS_iii, .-_Z30__device_stub__Z6ASSIGNPdS_iiiPdS_iii
	.globl	_Z6ASSIGNPdS_iii
	.type	_Z6ASSIGNPdS_iii, @function
_Z6ASSIGNPdS_iii:
.LFB3902:
	.cfi_startproc
	endbr64
	jmp	_Z30__device_stub__Z6ASSIGNPdS_iiiPdS_iii
	.cfi_endproc
.LFE3902:
	.size	_Z6ASSIGNPdS_iii, .-_Z6ASSIGNPdS_iii
	.globl	_Z28__device_stub__Z3ADDPdS_diiiPdS_diii
	.type	_Z28__device_stub__Z3ADDPdS_diiiPdS_diii, @function
_Z28__device_stub__Z3ADDPdS_diiiPdS_diii:
.LFB3903:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movq	%rdi, 40(%rsp)
	leaq	72(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	84(%rsp), %rsi
	movl	%edx, 20(%rsp)
	leaq	56(%rsp), %rdx
	movl	%ecx, 16(%rsp)
	leaq	64(%rsp), %rcx
	movl	%r8d, 12(%rsp)
	movsd	%xmm0, 24(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 80(%rsp)
	movq	%rax, 120(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 72(%rsp)
	movq	%rax, 84(%rsp)
	movl	$1, 92(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L32
	pushq	64(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z3ADDPdS_diii(%rip), %rdi
	pushq	64(%rsp)
	.cfi_def_cfa_offset 208
	movq	100(%rsp), %rcx
	movl	108(%rsp), %r8d
	movq	88(%rsp), %rsi
	movl	96(%rsp), %edx
	leaq	136(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L32:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3903:
	.size	_Z28__device_stub__Z3ADDPdS_diiiPdS_diii, .-_Z28__device_stub__Z3ADDPdS_diiiPdS_diii
	.globl	_Z3ADDPdS_diii
	.type	_Z3ADDPdS_diii, @function
_Z3ADDPdS_diii:
.LFB3904:
	.cfi_startproc
	endbr64
	jmp	_Z28__device_stub__Z3ADDPdS_diiiPdS_diii
	.cfi_endproc
.LFE3904:
	.size	_Z3ADDPdS_diii, .-_Z3ADDPdS_diii
	.globl	_Z33__device_stub__Z7COMPAREPdS_S_iiiPdS_S_iii
	.type	_Z33__device_stub__Z7COMPAREPdS_S_iiiPdS_S_iii, @function
_Z33__device_stub__Z7COMPAREPdS_S_iiiPdS_S_iii:
.LFB3905:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movq	%rdi, 40(%rsp)
	leaq	72(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	84(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	56(%rsp), %rdx
	movl	%ecx, 20(%rsp)
	leaq	64(%rsp), %rcx
	movl	%r8d, 16(%rsp)
	movl	%r9d, 12(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 80(%rsp)
	movq	%rax, 120(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 72(%rsp)
	movq	%rax, 84(%rsp)
	movl	$1, 92(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L37
	pushq	64(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z7COMPAREPdS_S_iii(%rip), %rdi
	pushq	64(%rsp)
	.cfi_def_cfa_offset 208
	movq	100(%rsp), %rcx
	movl	108(%rsp), %r8d
	movq	88(%rsp), %rsi
	movl	96(%rsp), %edx
	leaq	136(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L37:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3905:
	.size	_Z33__device_stub__Z7COMPAREPdS_S_iiiPdS_S_iii, .-_Z33__device_stub__Z7COMPAREPdS_S_iiiPdS_S_iii
	.globl	_Z7COMPAREPdS_S_iii
	.type	_Z7COMPAREPdS_S_iii, @function
_Z7COMPAREPdS_S_iii:
.LFB3906:
	.cfi_startproc
	endbr64
	jmp	_Z33__device_stub__Z7COMPAREPdS_S_iiiPdS_S_iii
	.cfi_endproc
.LFE3906:
	.size	_Z7COMPAREPdS_S_iii, .-_Z7COMPAREPdS_S_iii
	.globl	_Z28__device_stub__Z9RESET_CTRPdPd
	.type	_Z28__device_stub__Z9RESET_CTRPdPd, @function
_Z28__device_stub__Z9RESET_CTRPdPd:
.LFB3907:
	.cfi_startproc
	endbr64
	subq	$104, %rsp
	.cfi_def_cfa_offset 112
	movq	%rdi, 8(%rsp)
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	44(%rsp), %rsi
	leaq	32(%rsp), %rdi
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 40(%rsp)
	movq	%rax, 80(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 32(%rsp)
	movq	%rax, 44(%rsp)
	movl	$1, 52(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L42
	pushq	24(%rsp)
	.cfi_def_cfa_offset 120
	leaq	_Z9RESET_CTRPd(%rip), %rdi
	pushq	24(%rsp)
	.cfi_def_cfa_offset 128
	movq	60(%rsp), %rcx
	movl	68(%rsp), %r8d
	movq	48(%rsp), %rsi
	movl	56(%rsp), %edx
	leaq	96(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 120
	popq	%rdx
	.cfi_def_cfa_offset 112
.L42:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	addq	$104, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3907:
	.size	_Z28__device_stub__Z9RESET_CTRPdPd, .-_Z28__device_stub__Z9RESET_CTRPdPd
	.globl	_Z9RESET_CTRPd
	.type	_Z9RESET_CTRPd, @function
_Z9RESET_CTRPd:
.LFB3908:
	.cfi_startproc
	endbr64
	jmp	_Z28__device_stub__Z9RESET_CTRPdPd
	.cfi_endproc
.LFE3908:
	.size	_Z9RESET_CTRPd, .-_Z9RESET_CTRPd
	.section	.rodata.str1.1
.LC2:
	.string	"_Z9RESET_CTRPd"
.LC3:
	.string	"_Z7COMPAREPdS_S_iii"
.LC4:
	.string	"_Z3ADDPdS_diii"
.LC5:
	.string	"_Z6ASSIGNPdS_iii"
.LC6:
	.string	"_Z3DDZPdS_iiid"
.LC7:
	.string	"_Z3DDYPdS_iiid"
.LC8:
	.string	"_Z3DDXPdS_iiid"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB3910:
	.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	.LC2(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z9RESET_CTRPd(%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	.LC3(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z7COMPAREPdS_S_iii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC4(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z3ADDPdS_diii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC5(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z6ASSIGNPdS_iii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC6(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z3DDZPdS_iiid(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC7(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z3DDYPdS_iiid(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC8(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z3DDXPdS_iiid(%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
.LFE3910:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.text._ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev,"axG",@progbits,_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD5Ev,comdat
	.align 2
	.weak	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.type	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev, @function
_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev:
.LFB3989:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	call	__errno_location@PLT
	cmpl	$0, (%rax)
	jne	.L49
	movl	(%rbx), %edx
	movl	%edx, (%rax)
.L49:
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3989:
	.size	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev, .-_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.weak	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	.set	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev,_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.section	.rodata.str1.1
.LC9:
	.string	"stoi"
	.text
	.type	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0, @function
_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0:
.LFB4650:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4650
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdi, %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 96
	movl	%edx, 12(%rsp)
	leaq	28(%rsp), %r13
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	call	__errno_location@PLT
	movl	12(%rsp), %edx
	leaq	32(%rsp), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rbp
	movl	(%rax), %eax
	movl	%eax, 28(%rsp)
	xorl	%eax, %eax
	movl	%eax, 0(%rbp)
	call	__isoc23_strtol@PLT
	movq	32(%rsp), %rdx
	cmpq	%rdx, %rbx
	jne	.L53
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L66
	leaq	.LC9(%rip), %rdi
.LEHB0:
	call	_ZSt24__throw_invalid_argumentPKc@PLT
.L53:
	cmpl	$34, 0(%rbp)
	je	.L55
	movl	$2147483648, %ecx
	movl	$4294967295, %esi
	addq	%rax, %rcx
	cmpq	%rcx, %rsi
	jnb	.L56
.L55:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L66
	leaq	.LC9(%rip), %rdi
	call	_ZSt20__throw_out_of_rangePKc@PLT
.LEHE0:
.L56:
	testq	%r12, %r12
	je	.L58
	subq	%rbx, %rdx
	movq	%rdx, (%r12)
.L58:
	movq	%r13, %rdi
	movl	%eax, 12(%rsp)
	call	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	movl	12(%rsp), %eax
	movq	40(%rsp), %rdx
	subq	%fs:40, %rdx
	je	.L61
	jmp	.L66
.L62:
	endbr64
	movq	%rax, %rbx
.L59:
	movq	%r13, %rdi
	call	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L66
	movq	%rbx, %rdi
.LEHB1:
	call	_Unwind_Resume@PLT
.LEHE1:
.L66:
	call	__stack_chk_fail@PLT
.L61:
	addq	$56, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4650:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4650:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4650-.LLSDACSB4650
.LLSDACSB4650:
	.uleb128 .LEHB0-.LFB4650
	.uleb128 .LEHE0-.LEHB0
	.uleb128 .L62-.LFB4650
	.uleb128 0
	.uleb128 .LEHB1-.LFB4650
	.uleb128 .LEHE1-.LEHB1
	.uleb128 0
	.uleb128 0
.LLSDACSE4650:
	.text
	.size	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0, .-_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0
	.section	.rodata._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.str1.1,"aMS",@progbits,1
.LC10:
	.string	"basic_string: construction from null is not valid"
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC5IS3_EEPKcRKS3_,comdat
	.align 2
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, @function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_:
.LFB4262:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	16(%rdi), %rax
	movq	%rax, (%rdi)
	testq	%rsi, %rsi
	jne	.L70
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L75
	leaq	.LC10(%rip), %rdi
	call	_ZSt19__throw_logic_errorPKc@PLT
.L70:
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	movq	%rsi, %rbp
	call	strlen@PLT
	movq	%rax, (%rsp)
	leaq	0(%rbp,%rax), %r12
	cmpq	$15, %rax
	jbe	.L72
	movq	%rsp, %rsi
	xorl	%edx, %edx
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm@PLT
	movq	%rax, (%rbx)
	movq	(%rsp), %rax
	movq	%rax, 16(%rbx)
.L72:
	movq	(%rbx), %rdi
	movq	%r12, %rdx
	movq	%rbp, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcPKcS7_@PLT
	movq	(%rsp), %rax
	movq	(%rbx), %rdx
	movq	%rax, 8(%rbx)
	movb	$0, (%rdx,%rax)
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L73
.L75:
	call	__stack_chk_fail@PLT
.L73:
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4262:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, .-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
	.set	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.section	.rodata.str1.1
.LC11:
	.string	"data.csv"
.LC12:
	.string	"Threads: "
.LC13:
	.string	"Blocks: "
.LC14:
	.string	"\nX"
.LC15:
	.string	" Y"
.LC16:
	.string	" Z"
.LC17:
	.string	" Total Capacity\342\207\222"
.LC22:
	.string	"%d loops %0.6lf max error\r"
.LC25:
	.string	"\nDuration: "
.LC26:
	.string	"\n\nConverged in "
.LC27:
	.string	" loops\n\n"
.LC28:
	.string	","
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB3866:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA3866
	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	%rsi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%edi, %ebx
	subq	$696, %rsp
	.cfi_def_cfa_offset 752
	movq	%fs:40, %rax
	movq	%rax, 680(%rsp)
	xorl	%eax, %eax
	leaq	168(%rsp), %r12
	movq	%r12, %rdi
.LEHB2:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev@PLT
.LEHE2:
	movl	$1, %edx
	leaq	.LC11(%rip), %rsi
	movq	%r12, %rdi
.LEHB3:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode@PLT
	cmpl	$2, %ebx
	jne	.L77
	leaq	136(%rsp), %r12
	movq	8(%r13), %rsi
	leaq	124(%rsp), %rdx
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE3:
	movq	136(%rsp), %rdi
	movl	$10, %edx
	xorl	%esi, %esi
.LEHB4:
	call	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0
.LEHE4:
	movq	%r12, %rdi
	movl	%eax, %ebp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L107
.L77:
	jle	.L107
	leaq	124(%rsp), %r14
	leaq	136(%rsp), %r12
	movq	8(%r13), %rsi
	movq	%r14, %rdx
	movq	%r12, %rdi
.LEHB5:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE5:
	movq	136(%rsp), %rdi
	movl	$10, %edx
	xorl	%esi, %esi
.LEHB6:
	call	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0
.LEHE6:
	movq	%r12, %rdi
	movl	%eax, %ebp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	16(%r13), %rsi
	movq	%r14, %rdx
	movq	%r12, %rdi
.LEHB7:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE7:
	movq	136(%rsp), %rdi
	movl	$10, %edx
	xorl	%esi, %esi
.LEHB8:
	call	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0
.LEHE8:
	movq	%r12, %rdi
	movl	%eax, %ebx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	24(%r13), %rsi
	movq	%r14, %rdx
	movq	%r12, %rdi
.LEHB9:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE9:
	movq	136(%rsp), %rdi
	movl	$10, %edx
	xorl	%esi, %esi
.LEHB10:
	call	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0
.LEHE10:
	movq	%r12, %rdi
	movl	%eax, %r15d
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	32(%r13), %rsi
	movq	%r14, %rdx
	movq	%r12, %rdi
.LEHB11:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE11:
	movq	136(%rsp), %rdi
	movl	$10, %edx
	xorl	%esi, %esi
.LEHB12:
	call	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0
.LEHE12:
	movq	%r12, %rdi
	movl	%eax, %r14d
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L78
.L107:
	movl	$10, %r14d
	movl	$10, %r15d
	movl	$10, %ebx
.L78:
	leaq	_ZSt4cout(%rip), %r12
	leaq	.LC12(%rip), %rsi
	movq	%r12, %rdi
.LEHB13:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%ebp, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC1(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leal	-2(%r14), %edx
	leal	-2(%r15), %eax
	movq	%r12, %rdi
	imull	%edx, %eax
	leaq	.LC13(%rip), %rsi
	cltd
	idivl	%ebp
	leal	1(%rax), %r13d
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%r13d, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC1(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC14(%rip), %rsi
	movq	%r12, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%ebx, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC15(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%r15d, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC16(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%r14d, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC17(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%r15d, %eax
	imull	%ebx, %eax
	imull	%r14d, %eax
	movl	%eax, %esi
	movl	%eax, 20(%rsp)
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
	movl	20(%rsp), %eax
	sall	$3, %eax
	cltq
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %rdi
	movq	%rax, %r12
	call	malloc@PLT
	leal	-1(%rbx), %ecx
	movl	%r15d, %r11d
	leal	-1(%r14), %edx
	movl	%ecx, 32(%rsp)
	imull	%ebx, %r11d
	leal	-1(%r15), %ecx
	movsd	.LC18(%rip), %xmm0
	movl	%ecx, 40(%rsp)
	movl	%edx, 44(%rsp)
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
.L79:
	movl	%eax, %r10d
	cmpl	%eax, %ebx
	jle	.L121
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
.L86:
	cmpl	%ecx, %r15d
	jle	.L84
	movslq	%r8d, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	addq	%rax, %rdi
.L85:
	cmpl	%r14d, %edx
	jge	.L122
	testq	%rax, %rax
	je	.L80
	cmpl	%r10d, 32(%rsp)
	je	.L80
	testl	%ecx, %ecx
	je	.L80
	cmpl	%ecx, 40(%rsp)
	je	.L80
	testl	%edx, %edx
	je	.L80
	cmpl	%edx, 44(%rsp)
	jne	.L81
.L80:
	movslq	%esi, %r9
	addq	%rdi, %r9
	movsd	%xmm0, (%r12,%r9,8)
	jmp	.L82
.L81:
	movslq	%esi, %r9
	addq	%rdi, %r9
	movq	$0x000000000, (%r12,%r9,8)
.L82:
	incl	%edx
	addl	%r11d, %esi
	jmp	.L85
.L122:
	incl	%ecx
	addl	%ebx, %r8d
	jmp	.L86
.L84:
	incq	%rax
	jmp	.L79
.L121:
	movq	8(%rsp), %rsi
	leaq	72(%rsp), %rdi
	movq	$0x000000000, 64(%rsp)
	call	cudaMalloc@PLT
	movq	8(%rsp), %rsi
	leaq	80(%rsp), %rdi
	call	cudaMalloc@PLT
	movq	8(%rsp), %rsi
	leaq	88(%rsp), %rdi
	call	cudaMalloc@PLT
	movq	8(%rsp), %rsi
	leaq	96(%rsp), %rdi
	call	cudaMalloc@PLT
	movq	8(%rsp), %rsi
	leaq	104(%rsp), %rdi
	call	cudaMalloc@PLT
	leaq	56(%rsp), %rdi
	movl	$8, %esi
	call	cudaMalloc@PLT
	movq	.LC20(%rip), %rax
	movq	8(%rsp), %rdx
	movl	$1, %ecx
	movq	%r12, %rsi
	movq	72(%rsp), %rdi
	movq	%rax, 64(%rsp)
	call	cudaMemcpy@PLT
	movq	8(%rsp), %rdx
	movq	80(%rsp), %rdi
	movl	$1, %ecx
	movq	%r12, %rsi
	call	cudaMemcpy@PLT
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	xorl	%r12d, %r12d
	movq	%rax, 32(%rsp)
.L87:
	movsd	64(%rsp), %xmm0
	comisd	.LC23(%rip), %xmm0
	jbe	.L123
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movl	$1, %esi
	movabsq	$4294967297, %rdi
	movl	$1, 120(%rsp)
	movq	%rdi, %rdx
	movq	%rdi, 124(%rsp)
	movl	$1, 132(%rsp)
	movq	%rdi, 112(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L88
	movq	56(%rsp), %rdi
	call	_Z28__device_stub__Z9RESET_CTRPdPd
.L88:
	movabsq	$4294967297, %rax
	movl	%ebp, 124(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rax, 128(%rsp)
	movl	132(%rsp), %ecx
	movq	%rax, 116(%rsp)
	movq	124(%rsp), %rdx
	movl	%r13d, 112(%rsp)
	movl	120(%rsp), %esi
	movq	112(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L89
	movsd	.LC20(%rip), %xmm0
	movl	%r14d, %r8d
	movl	%r15d, %ecx
	movl	%ebx, %edx
	movq	72(%rsp), %rsi
	movq	96(%rsp), %rdi
	call	_Z28__device_stub__Z3DDYPdS_iiidPdS_iiid
.L89:
	movabsq	$4294967297, %rax
	movl	%ebp, 124(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rax, 128(%rsp)
	movl	132(%rsp), %ecx
	movq	%rax, 116(%rsp)
	movq	124(%rsp), %rdx
	movl	%r13d, 112(%rsp)
	movl	120(%rsp), %esi
	movq	112(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L90
	movsd	.LC20(%rip), %xmm0
	movl	%r14d, %r8d
	movl	%r15d, %ecx
	movl	%ebx, %edx
	movq	72(%rsp), %rsi
	movq	104(%rsp), %rdi
	call	_Z28__device_stub__Z3DDZPdS_iiidPdS_iiid
.L90:
	movabsq	$4294967297, %rax
	movl	%ebp, 124(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rax, 128(%rsp)
	movl	132(%rsp), %ecx
	movq	%rax, 116(%rsp)
	movq	124(%rsp), %rdx
	movl	%r13d, 112(%rsp)
	movl	120(%rsp), %esi
	movq	112(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L91
	movsd	.LC20(%rip), %xmm0
	movl	%r14d, %r8d
	movl	%r15d, %ecx
	movl	%ebx, %edx
	movq	72(%rsp), %rsi
	movq	88(%rsp), %rdi
	call	_Z28__device_stub__Z3DDXPdS_iiidPdS_iiid
.L91:
	movabsq	$4294967297, %rax
	movl	%ebp, 124(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rax, 128(%rsp)
	movl	132(%rsp), %ecx
	movq	%rax, 116(%rsp)
	movq	124(%rsp), %rdx
	movl	%r13d, 112(%rsp)
	movl	120(%rsp), %esi
	movq	112(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L92
	movsd	.LC21(%rip), %xmm0
	movl	%r14d, %r8d
	movl	%r15d, %ecx
	movl	%ebx, %edx
	movq	88(%rsp), %rsi
	movq	80(%rsp), %rdi
	call	_Z28__device_stub__Z3ADDPdS_diiiPdS_diii
.L92:
	movabsq	$4294967297, %rax
	movl	%ebp, 124(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rax, 128(%rsp)
	movl	132(%rsp), %ecx
	movq	%rax, 116(%rsp)
	movq	124(%rsp), %rdx
	movl	%r13d, 112(%rsp)
	movl	120(%rsp), %esi
	movq	112(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L93
	movsd	.LC21(%rip), %xmm0
	movl	%r14d, %r8d
	movl	%r15d, %ecx
	movl	%ebx, %edx
	movq	96(%rsp), %rsi
	movq	80(%rsp), %rdi
	call	_Z28__device_stub__Z3ADDPdS_diiiPdS_diii
.L93:
	movabsq	$4294967297, %rax
	movl	%ebp, 124(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rax, 128(%rsp)
	movl	132(%rsp), %ecx
	movq	%rax, 116(%rsp)
	movq	124(%rsp), %rdx
	movl	%r13d, 112(%rsp)
	movl	120(%rsp), %esi
	movq	112(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L94
	movsd	.LC21(%rip), %xmm0
	movl	%r14d, %r8d
	movl	%r15d, %ecx
	movl	%ebx, %edx
	movq	104(%rsp), %rsi
	movq	80(%rsp), %rdi
	call	_Z28__device_stub__Z3ADDPdS_diiiPdS_diii
.L94:
	movabsq	$4294967297, %rax
	movl	%ebp, 124(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rax, 128(%rsp)
	movl	132(%rsp), %ecx
	movq	%rax, 116(%rsp)
	movq	124(%rsp), %rdx
	movl	%r13d, 112(%rsp)
	movl	120(%rsp), %esi
	movq	112(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	movq	56(%rsp), %rdx
	testl	%eax, %eax
	jne	.L95
	movq	80(%rsp), %rsi
	movq	72(%rsp), %rdi
	movl	%r14d, %r9d
	movl	%r15d, %r8d
	movl	%ebx, %ecx
	call	_Z33__device_stub__Z7COMPAREPdS_S_iiiPdS_S_iii
.L95:
	movq	56(%rsp), %rsi
	leaq	64(%rsp), %rdi
	movl	$2, %ecx
	movl	$8, %edx
	call	cudaMemcpy@PLT
	movabsq	$4294967297, %rax
	movl	%ebp, 124(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rax, 128(%rsp)
	movl	132(%rsp), %ecx
	movq	%rax, 116(%rsp)
	movq	124(%rsp), %rdx
	movl	%r13d, 112(%rsp)
	movl	120(%rsp), %esi
	movq	112(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L96
	movq	80(%rsp), %rsi
	movq	72(%rsp), %rdi
	movl	%r14d, %r8d
	movl	%r15d, %ecx
	movl	%ebx, %edx
	call	_Z30__device_stub__Z6ASSIGNPdS_iiiPdS_iii
.L96:
	incl	%r12d
	movl	$1000, %ecx
	movl	%r12d, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L87
	movq	56(%rsp), %rsi
	leaq	64(%rsp), %rdi
	movl	$2, %ecx
	movl	$8, %edx
	call	cudaMemcpy@PLT
	movsd	64(%rsp), %xmm0
	movl	%r12d, %edx
	movl	$2, %edi
	movb	$1, %al
	leaq	.LC22(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L87
.L123:
	movq	8(%rsp), %rdx
	movq	72(%rsp), %rsi
	movl	$2, %ecx
	movq	24(%rsp), %rdi
	call	cudaMemcpy@PLT
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movq	32(%rsp), %rcx
	leaq	.LC25(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	subq	%rcx, %rax
	cvtsi2ssq	%rax, %xmm0
	divss	.LC24(%rip), %xmm0
	movd	%xmm0, %r13d
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movd	%r13d, %xmm2
	movq	%rax, %rdi
	cvtss2sd	%xmm2, %xmm1
	movaps	%xmm1, %xmm0
	movsd	%xmm1, 8(%rsp)
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC1(%rip), %r13
	movq	%rax, %rdi
	movq	%r13, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC26(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leal	-1(%r12), %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC27(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	168(%rsp), %r12
	movl	%ebp, %esi
	movq	%r12, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC28(%rip), %rbp
	movq	%rax, %rdi
	movq	%rbp, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%ebx, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	movq	%rbp, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%r15d, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	movq	%rbp, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%r14d, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	movq	%rbp, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	20(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	movq	%rbp, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	8(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	movq	%r13, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%r12, %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv@PLT
	movq	72(%rsp), %rdi
	call	cudaFree@PLT
	movq	80(%rsp), %rdi
	call	cudaFree@PLT
	movq	88(%rsp), %rdi
	call	cudaFree@PLT
	movq	96(%rsp), %rdi
	call	cudaFree@PLT
	movq	104(%rsp), %rdi
	call	cudaFree@PLT
.LEHE13:
	movq	%r12, %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	680(%rsp), %rax
	subq	%fs:40, %rax
	je	.L106
	jmp	.L118
.L110:
	endbr64
	jmp	.L120
.L111:
	endbr64
	jmp	.L120
.L112:
	endbr64
	jmp	.L120
.L113:
	endbr64
	jmp	.L120
.L114:
	endbr64
.L120:
	movq	%rax, %rbx
.L104:
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L100
.L109:
	endbr64
	movq	%rax, %rbx
.L100:
	leaq	168(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	680(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L118
	movq	%rbx, %rdi
.LEHB14:
	call	_Unwind_Resume@PLT
.LEHE14:
.L118:
	call	__stack_chk_fail@PLT
.L106:
	addq	$696, %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
.LFE3866:
	.section	.gcc_except_table
.LLSDA3866:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE3866-.LLSDACSB3866
.LLSDACSB3866:
	.uleb128 .LEHB2-.LFB3866
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB3-.LFB3866
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L109-.LFB3866
	.uleb128 0
	.uleb128 .LEHB4-.LFB3866
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L110-.LFB3866
	.uleb128 0
	.uleb128 .LEHB5-.LFB3866
	.uleb128 .LEHE5-.LEHB5
	.uleb128 .L109-.LFB3866
	.uleb128 0
	.uleb128 .LEHB6-.LFB3866
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L111-.LFB3866
	.uleb128 0
	.uleb128 .LEHB7-.LFB3866
	.uleb128 .LEHE7-.LEHB7
	.uleb128 .L109-.LFB3866
	.uleb128 0
	.uleb128 .LEHB8-.LFB3866
	.uleb128 .LEHE8-.LEHB8
	.uleb128 .L112-.LFB3866
	.uleb128 0
	.uleb128 .LEHB9-.LFB3866
	.uleb128 .LEHE9-.LEHB9
	.uleb128 .L109-.LFB3866
	.uleb128 0
	.uleb128 .LEHB10-.LFB3866
	.uleb128 .LEHE10-.LEHB10
	.uleb128 .L113-.LFB3866
	.uleb128 0
	.uleb128 .LEHB11-.LFB3866
	.uleb128 .LEHE11-.LEHB11
	.uleb128 .L109-.LFB3866
	.uleb128 0
	.uleb128 .LEHB12-.LFB3866
	.uleb128 .LEHE12-.LEHB12
	.uleb128 .L114-.LFB3866
	.uleb128 0
	.uleb128 .LEHB13-.LFB3866
	.uleb128 .LEHE13-.LEHB13
	.uleb128 .L109-.LFB3866
	.uleb128 0
	.uleb128 .LEHB14-.LFB3866
	.uleb128 .LEHE14-.LEHB14
	.uleb128 0
	.uleb128 0
.LLSDACSE3866:
	.section	.text.startup
	.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.cst8,"aM",@progbits,8
	.align 8
.LC18:
	.long	0
	.long	1075052544
	.align 8
.LC20:
	.long	0
	.long	1076101120
	.align 8
.LC21:
	.long	-755914244
	.long	1062232653
	.align 8
.LC23:
	.long	-1998362383
	.long	1055193269
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC24:
	.long	1315859240
	.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:

//Three Dimensional Poisson solver using NVIDIA CUDA
//Author: Arkavo Hait, 2021



#include <hip/hip_runtime.h>
#include <stdio.h>
#include <iostream>
#include <cmath>
#include <time.h>
#include <chrono>
#include <string>
#include <limits.h>
#include <fstream>

using namespace std;

//Box struct
struct BOX
{
    int X;
    int Y;
    int Z;
};

//X double derivative
__global__ void DDX(double* R, double* C,int X,int Y,int Z,double dx)
{
    int idx = threadIdx.x + blockIdx.x*blockDim.x;
    if(idx<((Y-2)*(Z-2)))
    {
        int idy = idx / (Y-2) ;
        int idz = idx % (Y-2) ;
        int index = idy*X + idz*X*Y + X+X*Y;

        for(int i=1;i<X-1;i++)
        {
            *(R+index+i) = (*(C+index+1+i) + *(C+index-1+i) - 2* *(C+index+i))/(dx*dx);
        }
    }
}

//Y double derivative
__global__ void DDY(double* R, double* C,int X,int Y,int Z, double dy)
{
    int idx = threadIdx.x + blockIdx.x*blockDim.x;
    if(idx<((Y-2)*(Z-2))){
    int idy = idx / (Y-2) ;
    int idz = idx % (Y-2) ;
    int index = idy*X + idz*X*Y + X+X*Y;
    for(int i=1;i<Y-1;i++)
    {
        *(R+index+i*X) = (*(C+index+X*(i+1)) + *(C+index+X*(i-1)) - 2* *(C+index+i*X))/(dy*dy);
    }}
}

//Z double derivative
__global__ void DDZ(double* R, double* C,int X,int Y,int Z, double dz)
{
    int idx = threadIdx.x + blockIdx.x*blockDim.x;
    if(idx<((Y-2)*(Z-2))){
    int idy = idx / (Y-2) ;
    int idz = idx % (Y-2) ;
    int index = idy*X + idz*X*Y + X+X*Y;
    for(int i=0;i<Z-1;i++)
    {
        *(R+index+i*X*Y) = (*(C+index+X*Y*(i+1)) + *(C+index+X*Y*(i-1))- 2* *(C+index+i*X*Y))/(dz*dz);
    }}
}

//parallel function to update matrices
__global__ void ASSIGN(double* R, double* C,int X,int Y,int Z)
{
    int idx = threadIdx.x + blockIdx.x*blockDim.x;
    if(idx<((Y-2)*(Z-2))){
    int idy = idx / (Y-2) ;
    int idz = idx % (Y-2) ;
    int index = idy*X + idz*X*Y + X+X*Y;
    for(int i=1;i<X-1;i++)
    {
        *(R+index+i) = *(C+index+i);
    }}
}

//parallel function to add two matrices
__global__ void ADD(double* R,double* C,double dt,int X,int Y,int Z)
{
    int idx = threadIdx.x + blockIdx.x*blockDim.x;
    if(idx<((Y-2)*(Z-2))){
    int idy = idx / (Y-2) ;
    int idz = idx % (Y-2) ;
    int index = idy*X + idz*X*Y + X+X*Y;
    for(int i=0;i<X;i++)
    {
        *(R+index+i) += (*(C+index+i) * dt);
    }}
}

//parallel function to compare two matrices, outputting a maximum difference bteween elements
__global__ void COMPARE(double* R, double* C, double* OUT_H,int X,int Y,int Z)
{
    int idx = threadIdx.x + blockIdx.x*blockDim.x;
    if(idx<((Y-2)*(Z-2))){
    int idy = idx / (Y-2) ;
    int idz = idx % (Y-2) ;
    int index = idy*X + idz*X*Y + X+X*Y;
    for(int i=1;i<X-1;i++)
    {
        if(abs(*(R+index+i)-*(C+index+i))>= *OUT_H)
        {
            *OUT_H = abs(*(R+index+i) - *(C+index+i));
        }
    }}
}

//reset function, use it to reset any pointer
__global__ void RESET_CTR(double* C)
{
    *C = 0;
}

//display function, use to disaply any array [deprecated for future use]
void display(double* DATA,int X,int Y,int Z)
{
    for(int k=0;k<Z;k++)
        {for(int j=0;j<Y;j++)
            {for(int i=0;i<X;i++)
                {printf("%.2lf ",*(DATA+i+X*j+X*Z*k));}
            printf("\n");}printf("\n");}
}

//main fxn, will fix with args after
int main(int argc, char* argv[])
{
    std::ofstream file;
    file.open("data.csv",ios::app);
    
    //file<<"Threads, X, Y, Z, Total, Time\n";
    
    //DECLARE YOUR VARIABLES HERE
    struct BOX grid;
    int threads;
    //std::cout<<argc<<"\n";
    if(argc==2)
    {
        threads = stoi(argv[1]);
        grid.X=10;
        grid.Y=10;
        grid.Z=10;
    }
    if(argc>2)
    {
        threads = stoi(argv[1]);
        grid.X = stoi(argv[2]);
        grid.Y = stoi(argv[3]);
        grid.Z = stoi(argv[4]);
    }
    std::cout<<"Threads: "<<threads<<"\n";
    const int X = grid.X;
    const int Y = grid.Y;
    const int Z = grid.Z;
    int blocks = 1 + (Y-2) * (Z-2) / threads;
    std::cout<<"Blocks: "<<blocks<<"\n";
    //step for double derivatives
    double step = 0.001;
    //tolerence
    double tol = 0.00001;
    
    std::cout<<"\nX"<<X<<" Y"<<Y<<" Z"<<Z<<" Total Capacity⇒"<<X*Y*Z<<endl;
    unsigned long long SIZE_0 = ((int)sizeof(double))*X*Y*Z;
    double* DATA_H; 
    double* DATA_F;
    DATA_H = (double*)malloc(SIZE_0);
    DATA_F = (double*)malloc(SIZE_0);
    
    //Impose Boundary conditions here
    
    for(int i=0;i<X;i++)
        {for(int j=0;j<Y;j++)
            {for(int k=0;k<Z;k++)
                {
                    if(i==0||i==(X-1)||j==0||j==(Y-1)||k==0||k==(Z-1))
                        *(DATA_H+i+j*X+k*X*Y) = 5;
                    else
                        *(DATA_H+i+j*X+k*X*Y) = 0;
    }}}
    
    
    //error counters
    double* CC;
    double CCD = 0;
    
    //DATA pointer for device state 0
    double* DATA_ORIGINAL;
    //DATA pointer for device state 1
    double* DATA_NEXT;
    //Derivative results pointers
    double* DDX_D;
    double* DDY_D;
    double* DDZ_D;
    
    //array size for device
    
    //allocating space for arrays
    hipMalloc((void**)&DATA_ORIGINAL,SIZE_0);
    
    hipMalloc((void**)&DATA_NEXT,SIZE_0);
    
    hipMalloc((void**)&DDX_D,SIZE_0);
    hipMalloc((void**)&DDY_D,SIZE_0);
    hipMalloc((void**)&DDZ_D,SIZE_0);
    
    hipMalloc(&CC,(int)sizeof(double));
    
    //token counter
    CCD = 10.;
    //copy data state0, state1 
    hipMemcpy(DATA_ORIGINAL,DATA_H,SIZE_0,hipMemcpyHostToDevice);
    hipMemcpy(DATA_NEXT,DATA_H,SIZE_0,hipMemcpyHostToDevice);
    
    //counter
    int ct = 0;
    
    
    auto hst_st = std::chrono::high_resolution_clock::now();
    //run while tolerence > differences
    while(CCD>tol)
    {
        //reset difference every loop
        RESET_CTR  <<<1,1>>>  (CC);
        //run derivatives
        DDY <<<blocks,threads>>> (DDY_D,DATA_ORIGINAL,X,Y,Z,10.);
        DDZ <<<blocks,threads>>> (DDZ_D,DATA_ORIGINAL,X,Y,Z,10.);
        DDX <<<blocks,threads>>> (DDX_D,DATA_ORIGINAL,X,Y,Z,10.);     //add into state 1
        ADD <<<blocks,threads>>> (DATA_NEXT,DDX_D,step,X,Y,Z);
        ADD <<<blocks,threads>>> (DATA_NEXT,DDY_D,step,X,Y,Z);
        ADD <<<blocks,threads>>> (DATA_NEXT,DDZ_D,step,X,Y,Z);
        //compare state1 state 0
        COMPARE<<<blocks,threads>>>(DATA_ORIGINAL,DATA_NEXT,CC,X,Y,Z);
        //copy back max error
        hipMemcpy(&CCD,CC,sizeof(double),hipMemcpyDeviceToHost);
        //make state 1 as state0
        ASSIGN  <<<blocks,threads>>>  (DATA_ORIGINAL,DATA_NEXT,X,Y,Z);
        //update counter
        ct += 1;
        //information every 1000 loops because of visibility
        if(ct%1000==0)
        {
            hipMemcpy(&CCD,CC,sizeof(double),hipMemcpyDeviceToHost);
            printf("%d loops %0.6lf max error\r",ct,CCD);
        }
    }

    //copy back final array
    hipMemcpy(DATA_F,DATA_ORIGINAL,SIZE_0,hipMemcpyDeviceToHost);
    auto hst_en = std::chrono::high_resolution_clock::now();
    std::chrono::duration<float> duration = hst_en-hst_st;
    std::cout<<"\nDuration: "<<duration.count()<<"\n";
    //final print statement
    std::cout<<"\n\nConverged in "<<ct-1<<" loops\n\n";
    //file<<"Threads, X, Y, Z, Total, Time\n";
    file<<threads<<","<<X<<","<<Y<<","<<Z<<","<<X*Y*Z<<","<<duration.count()<<"\n";
    file.close();
    //display optional
    //display(DATA_F,X,Y,Z);
    
    //free pointers
    hipFree(DATA_ORIGINAL);
    hipFree(DATA_NEXT);
    hipFree(DDX_D);
    hipFree(DDY_D);
    hipFree(DDZ_D);
    
    return 0;
}
	.text
	.file	"poissonCUDA.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.globl	_Z18__device_stub__DDXPdS_iiid  # -- Begin function _Z18__device_stub__DDXPdS_iiid
	.type	_Z18__device_stub__DDXPdS_iiid,@function
_Z18__device_stub__DDXPdS_iiid:         # @_Z18__device_stub__DDXPdS_iiid
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	20(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	16(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	12(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	40(%rsp), %r8
	movsd	%xmm0, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	32(%rsp), %r12
	leaq	24(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z3DDXPdS_iiid, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	_Z18__device_stub__DDXPdS_iiid, .Lfunc_end0-_Z18__device_stub__DDXPdS_iiid
	.cfi_endproc
                                        # -- End function
	.globl	_Z18__device_stub__DDYPdS_iiid  # -- Begin function _Z18__device_stub__DDYPdS_iiid
	.type	_Z18__device_stub__DDYPdS_iiid,@function
_Z18__device_stub__DDYPdS_iiid:         # @_Z18__device_stub__DDYPdS_iiid
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	20(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	16(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	12(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	40(%rsp), %r8
	movsd	%xmm0, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	32(%rsp), %r12
	leaq	24(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z3DDYPdS_iiid, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z18__device_stub__DDYPdS_iiid, .Lfunc_end1-_Z18__device_stub__DDYPdS_iiid
	.cfi_endproc
                                        # -- End function
	.globl	_Z18__device_stub__DDZPdS_iiid  # -- Begin function _Z18__device_stub__DDZPdS_iiid
	.type	_Z18__device_stub__DDZPdS_iiid,@function
_Z18__device_stub__DDZPdS_iiid:         # @_Z18__device_stub__DDZPdS_iiid
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	20(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	16(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	12(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	40(%rsp), %r8
	movsd	%xmm0, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	32(%rsp), %r12
	leaq	24(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z3DDZPdS_iiid, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_Z18__device_stub__DDZPdS_iiid, .Lfunc_end2-_Z18__device_stub__DDZPdS_iiid
	.cfi_endproc
                                        # -- End function
	.globl	_Z21__device_stub__ASSIGNPdS_iii # -- Begin function _Z21__device_stub__ASSIGNPdS_iii
	.type	_Z21__device_stub__ASSIGNPdS_iii,@function
_Z21__device_stub__ASSIGNPdS_iii:       # @_Z21__device_stub__ASSIGNPdS_iii
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$128, %rsp
	.cfi_def_cfa_offset 176
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	8(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	4(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z6ASSIGNPdS_iii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$144, %rsp
	.cfi_adjust_cfa_offset -144
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	_Z21__device_stub__ASSIGNPdS_iii, .Lfunc_end3-_Z21__device_stub__ASSIGNPdS_iii
	.cfi_endproc
                                        # -- End function
	.globl	_Z18__device_stub__ADDPdS_diii  # -- Begin function _Z18__device_stub__ADDPdS_diii
	.type	_Z18__device_stub__ADDPdS_diii,@function
_Z18__device_stub__ADDPdS_diii:         # @_Z18__device_stub__ADDPdS_diii
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movsd	%xmm0, (%rsi)
	leaq	20(%rsp), %r9
	movl	%edx, (%r9)
	leaq	16(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	12(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%r9, 24(%rbx)
	movq	%rdx, 32(%rbx)
	movq	%rcx, 40(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	32(%rsp), %r12
	leaq	24(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z3ADDPdS_diii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end4:
	.size	_Z18__device_stub__ADDPdS_diii, .Lfunc_end4-_Z18__device_stub__ADDPdS_diii
	.cfi_endproc
                                        # -- End function
	.globl	_Z22__device_stub__COMPAREPdS_S_iii # -- Begin function _Z22__device_stub__COMPAREPdS_S_iii
	.type	_Z22__device_stub__COMPAREPdS_S_iii,@function
_Z22__device_stub__COMPAREPdS_S_iii:    # @_Z22__device_stub__COMPAREPdS_S_iii
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	20(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	16(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	12(%rsp), %r8
	movl	%r9d, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	32(%rsp), %r12
	leaq	24(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z7COMPAREPdS_S_iii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end5:
	.size	_Z22__device_stub__COMPAREPdS_S_iii, .Lfunc_end5-_Z22__device_stub__COMPAREPdS_S_iii
	.cfi_endproc
                                        # -- End function
	.globl	_Z24__device_stub__RESET_CTRPd  # -- Begin function _Z24__device_stub__RESET_CTRPd
	.type	_Z24__device_stub__RESET_CTRPd,@function
_Z24__device_stub__RESET_CTRPd:         # @_Z24__device_stub__RESET_CTRPd
	.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	$64, %rsp
	.cfi_def_cfa_offset 112
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	movq	%rsp, %rbx
	movq	%rax, (%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z9RESET_CTRPd, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$80, %rsp
	.cfi_adjust_cfa_offset -80
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end6:
	.size	_Z24__device_stub__RESET_CTRPd, .Lfunc_end6-_Z24__device_stub__RESET_CTRPd
	.cfi_endproc
                                        # -- End function
	.globl	_Z7displayPdiii                 # -- Begin function _Z7displayPdiii
	.type	_Z7displayPdiii,@function
_Z7displayPdiii:                        # @_Z7displayPdiii
	.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	$40, %rsp
	.cfi_def_cfa_offset 96
	.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	%edx, (%rsp)                    # 4-byte Spill
	movl	%esi, 4(%rsp)                   # 4-byte Spill
	movq	%rdi, 8(%rsp)                   # 8-byte Spill
	testl	%ecx, %ecx
	jle	.LBB7_9
# %bb.1:                                # %.preheader20.lr.ph
	movl	%ecx, %eax
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	movl	4(%rsp), %eax                   # 4-byte Reload
	imull	%eax, %ecx
	movslq	%eax, %r12
	movslq	%ecx, %rax
	movl	(%rsp), %ebx                    # 4-byte Reload
	movl	%r12d, %r15d
	shlq	$3, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	shlq	$3, %r12
	xorl	%ecx, %ecx
.LBB7_2:                                # %.preheader20
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB7_4 Depth 2
                                        #       Child Loop BB7_6 Depth 3
	movq	%rcx, 32(%rsp)                  # 8-byte Spill
	cmpl	$0, (%rsp)                      # 4-byte Folded Reload
	jle	.LBB7_8
# %bb.3:                                # %.preheader.lr.ph
                                        #   in Loop: Header=BB7_2 Depth=1
	movq	8(%rsp), %r14                   # 8-byte Reload
	xorl	%r13d, %r13d
.LBB7_4:                                # %.preheader
                                        #   Parent Loop BB7_2 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB7_6 Depth 3
	cmpl	$0, 4(%rsp)                     # 4-byte Folded Reload
	jle	.LBB7_7
# %bb.5:                                # %.lr.ph
                                        #   in Loop: Header=BB7_4 Depth=2
	xorl	%ebp, %ebp
.LBB7_6:                                #   Parent Loop BB7_2 Depth=1
                                        #     Parent Loop BB7_4 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movsd	(%r14,%rbp,8), %xmm0            # xmm0 = mem[0],zero
	movl	$.L.str, %edi
	movb	$1, %al
	callq	printf
	incq	%rbp
	cmpq	%rbp, %r15
	jne	.LBB7_6
.LBB7_7:                                # %._crit_edge
                                        #   in Loop: Header=BB7_4 Depth=2
	movl	$10, %edi
	callq	putchar@PLT
	incq	%r13
	addq	%r12, %r14
	cmpq	%rbx, %r13
	jne	.LBB7_4
.LBB7_8:                                # %._crit_edge25
                                        #   in Loop: Header=BB7_2 Depth=1
	movl	$10, %edi
	callq	putchar@PLT
	movq	32(%rsp), %rcx                  # 8-byte Reload
	incq	%rcx
	movq	16(%rsp), %rax                  # 8-byte Reload
	addq	%rax, 8(%rsp)                   # 8-byte Folded Spill
	cmpq	24(%rsp), %rcx                  # 8-byte Folded Reload
	jne	.LBB7_2
.LBB7_9:                                # %._crit_edge28
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end7:
	.size	_Z7displayPdiii, .Lfunc_end7-_Z7displayPdiii
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI8_0:
	.quad	0x4014000000000000              # double 5
.LCPI8_1:
	.quad	0x3ee4f8b588e368f1              # double 1.0000000000000001E-5
.LCPI8_2:
	.quad	0x4024000000000000              # double 10
.LCPI8_3:
	.quad	0x3f50624dd2f1a9fc              # double 0.001
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0
.LCPI8_4:
	.long	0x4e6e6b28                      # float 1.0E+9
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$664, %rsp                      # imm = 0x298
	.cfi_def_cfa_offset 720
	.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, %r12
	movl	%edi, %ebx
	leaq	152(%rsp), %r14
	movq	%r14, %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev
.Ltmp0:
	movl	$.L.str.2, %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode
.Ltmp1:
# %bb.1:
	cmpl	$2, %ebx
	jne	.LBB8_124
# %bb.2:
	movq	8(%r12), %rsi
.Ltmp35:
	leaq	48(%rsp), %rdi
	leaq	8(%rsp), %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
.Ltmp36:
# %bb.3:
	movq	48(%rsp), %r14
	callq	__errno_location
	movq	%rax, %rbx
	movl	(%rax), %ebp
	movl	$0, (%rax)
	leaq	24(%rsp), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$10, %edx
	callq	__isoc23_strtol
	cmpq	%r14, (%r15)
	je	.LBB8_4
# %bb.12:
	movq	%rax, %r13
	movslq	%r13d, %rax
	cmpq	%r13, %rax
	jne	.LBB8_14
# %bb.13:
	movl	(%rbx), %eax
	cmpl	$34, %eax
	je	.LBB8_14
# %bb.16:
	testl	%eax, %eax
	jne	.LBB8_18
# %bb.17:
	movl	%ebp, (%rbx)
.LBB8_18:
	leaq	64(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB8_20
# %bb.19:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
.LBB8_20:                               # %.thread
	movl	$10, %r15d
	jmp	.LBB8_21
.LBB8_124:
	jle	.LBB8_125
# %bb.126:
	movq	8(%r12), %rsi
.Ltmp3:
	leaq	48(%rsp), %rdi
	leaq	8(%rsp), %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
.Ltmp4:
# %bb.127:
	movq	48(%rsp), %r14
	callq	__errno_location
	movq	%rax, %rbx
	movl	(%rax), %ebp
	movl	$0, (%rax)
	leaq	24(%rsp), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$10, %edx
	callq	__isoc23_strtol
	cmpq	%r14, (%r15)
	je	.LBB8_128
# %bb.131:
	movq	%rax, %r13
	movslq	%r13d, %rax
	cmpq	%r13, %rax
	jne	.LBB8_133
# %bb.132:
	movl	(%rbx), %eax
	cmpl	$34, %eax
	je	.LBB8_133
# %bb.135:
	testl	%eax, %eax
	jne	.LBB8_137
# %bb.136:
	movl	%ebp, (%rbx)
.LBB8_137:
	leaq	64(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB8_139
# %bb.138:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i216
	callq	_ZdlPv
.LBB8_139:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit218
	movq	%r13, %r14
	movq	16(%r12), %rsi
.Ltmp6:
	leaq	48(%rsp), %rdi
	leaq	8(%rsp), %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
.Ltmp7:
# %bb.140:
	movq	48(%rsp), %r15
	movl	(%rbx), %ebp
	movl	$0, (%rbx)
	leaq	24(%rsp), %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$10, %edx
	callq	__isoc23_strtol
	cmpq	%r15, (%r13)
	je	.LBB8_141
# %bb.146:
	movabsq	$-4294967296, %rdx              # imm = 0xFFFFFFFF00000000
	leaq	-2147483648(%rax), %rcx
	cmpq	%rdx, %rcx
	jb	.LBB8_148
# %bb.147:
	movq	%rax, %r15
	movl	(%rbx), %eax
	cmpl	$34, %eax
	je	.LBB8_148
# %bb.150:
	testl	%eax, %eax
	jne	.LBB8_152
# %bb.151:
	movl	%ebp, (%rbx)
.LBB8_152:
	movq	48(%rsp), %rdi
	leaq	64(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB8_154
# %bb.153:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i225
	callq	_ZdlPv
.LBB8_154:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit227
	movq	24(%r12), %rsi
.Ltmp9:
	leaq	48(%rsp), %rdi
	leaq	8(%rsp), %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
.Ltmp10:
# %bb.155:
	movq	48(%rsp), %r13
	movl	(%rbx), %eax
	movl	%eax, 32(%rsp)                  # 4-byte Spill
	movl	$0, (%rbx)
	leaq	24(%rsp), %rbp
	movq	%r13, %rdi
	movq	%rbp, %rsi
	movl	$10, %edx
	callq	__isoc23_strtol
	cmpq	%r13, (%rbp)
	je	.LBB8_156
# %bb.161:
	movq	%rax, %rcx
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	addq	$-2147483648, %rax              # imm = 0x80000000
	movabsq	$-4294967296, %rcx              # imm = 0xFFFFFFFF00000000
	cmpq	%rcx, %rax
	jb	.LBB8_163
# %bb.162:
	movl	(%rbx), %eax
	cmpl	$34, %eax
	je	.LBB8_163
# %bb.165:
	testl	%eax, %eax
	jne	.LBB8_167
# %bb.166:
	movl	32(%rsp), %eax                  # 4-byte Reload
	movl	%eax, (%rbx)
.LBB8_167:
	movq	48(%rsp), %rdi
	leaq	64(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB8_169
# %bb.168:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i234
	callq	_ZdlPv
.LBB8_169:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit236
	movq	32(%r12), %rsi
.Ltmp12:
	leaq	48(%rsp), %rdi
	leaq	8(%rsp), %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
.Ltmp13:
# %bb.170:
	movq	48(%rsp), %r13
	movl	(%rbx), %eax
	movl	%eax, 32(%rsp)                  # 4-byte Spill
	movl	$0, (%rbx)
	leaq	24(%rsp), %rbp
	movq	%r13, %rdi
	movq	%rbp, %rsi
	movl	$10, %edx
	callq	__isoc23_strtol
	cmpq	%r13, (%rbp)
	je	.LBB8_171
# %bb.174:
	movq	%rax, %r12
	addq	$-2147483648, %rax              # imm = 0x80000000
	movabsq	$-4294967296, %rcx              # imm = 0xFFFFFFFF00000000
	cmpq	%rcx, %rax
	jb	.LBB8_176
# %bb.175:
	movl	(%rbx), %eax
	cmpl	$34, %eax
	je	.LBB8_176
# %bb.178:
	movq	%r14, %r13
	testl	%eax, %eax
	jne	.LBB8_180
# %bb.179:
	movl	32(%rsp), %eax                  # 4-byte Reload
	movl	%eax, (%rbx)
.LBB8_180:
	movq	48(%rsp), %rdi
	leaq	64(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB8_22
# %bb.181:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i243
	callq	_ZdlPv
	jmp	.LBB8_22
.LBB8_125:
	movl	$10, %r15d
                                        # implicit-def: $r13d
.LBB8_21:
	movl	$10, %eax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movl	$10, %r12d
.LBB8_22:
.Ltmp38:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.3, %esi
	movl	$9, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp39:
# %bb.23:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
.Ltmp40:
	movl	$_ZSt4cout, %edi
	movl	%r13d, %esi
	callq	_ZNSolsEi
.Ltmp41:
# %bb.24:
.Ltmp42:
	movl	$.L.str.1, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp43:
# %bb.25:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit258
	movq	16(%rsp), %rax                  # 8-byte Reload
	leal	-2(%rax), %ecx
	leal	-2(%r12), %eax
	imull	%ecx, %eax
	cltd
	idivl	%r13d
	movl	%eax, %ebx
.Ltmp45:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.4, %esi
	movl	$8, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp46:
# %bb.26:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit259
.Ltmp47:
	incl	%ebx
	movl	$_ZSt4cout, %edi
	movl	%ebx, 108(%rsp)                 # 4-byte Spill
	movl	%ebx, %esi
	callq	_ZNSolsEi
.Ltmp48:
# %bb.27:
.Ltmp49:
	movl	$.L.str.1, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp50:
# %bb.28:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit260
.Ltmp52:
	movq	%r13, 112(%rsp)                 # 8-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str.5, %esi
	movl	$2, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp53:
# %bb.29:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit261
.Ltmp54:
	movl	$_ZSt4cout, %edi
	movl	%r15d, %esi
	callq	_ZNSolsEi
.Ltmp55:
# %bb.30:
.Ltmp56:
	movq	%rax, %rbx
	movl	$.L.str.6, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp57:
# %bb.31:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit262
.Ltmp58:
	movq	%rbx, %rdi
	movq	16(%rsp), %rsi                  # 8-byte Reload
                                        # kill: def $esi killed $esi killed $rsi
	callq	_ZNSolsEi
.Ltmp59:
# %bb.32:
.Ltmp60:
	movq	%rax, %rbx
	movl	$.L.str.7, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp61:
# %bb.33:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit263
.Ltmp62:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_ZNSolsEi
.Ltmp63:
# %bb.34:
.Ltmp64:
	movq	%rax, %rbx
	movl	$.L.str.8, %esi
	movl	$18, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp65:
# %bb.35:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit264
	movq	16(%rsp), %rax                  # 8-byte Reload
	movl	%eax, %ebp
	imull	%r15d, %ebp
	movl	%ebp, %r14d
	imull	%r12d, %r14d
.Ltmp66:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ZNSolsEi
.Ltmp67:
# %bb.36:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp68:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp69:
# %bb.37:                               # %.noexc
.Ltmp70:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp71:
# %bb.38:                               # %.noexc276
.Ltmp72:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp73:
# %bb.39:                               # %_ZNSolsEPFRSoS_E.exit
	movq	%r14, 136(%rsp)                 # 8-byte Spill
	leal	(,%r14,8), %eax
	movslq	%eax, %rbx
	movq	%rbx, %rdi
	callq	malloc
	movq	%rax, 32(%rsp)                  # 8-byte Spill
	movq	%rbx, 120(%rsp)                 # 8-byte Spill
	movq	%rbx, %rdi
	callq	malloc
	movq	%rax, 144(%rsp)                 # 8-byte Spill
	movq	%r15, 128(%rsp)                 # 8-byte Spill
	testl	%r15d, %r15d
	movq	16(%rsp), %r15                  # 8-byte Reload
	jle	.LBB8_53
# %bb.40:                               # %.preheader335.lr.ph
	movq	128(%rsp), %rsi                 # 8-byte Reload
	leal	-1(%rsi), %eax
	leal	-1(%r15), %ecx
	leal	-1(%r12), %edx
	movl	%esi, %esi
	movl	%r15d, %edi
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
	movsd	.LCPI8_0(%rip), %xmm0           # xmm0 = mem[0],zero
.LBB8_41:                               # %.preheader335
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB8_43 Depth 2
                                        #       Child Loop BB8_45 Depth 3
	testl	%r15d, %r15d
	jle	.LBB8_52
# %bb.42:                               # %.preheader.lr.ph
                                        #   in Loop: Header=BB8_41 Depth=1
	movq	32(%rsp), %r10                  # 8-byte Reload
	leaq	(%r10,%r9,8), %r10
	xorl	%r11d, %r11d
.LBB8_43:                               # %.preheader
                                        #   Parent Loop BB8_41 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB8_45 Depth 3
	testl	%r12d, %r12d
	jle	.LBB8_51
# %bb.44:                               # %.lr.ph
                                        #   in Loop: Header=BB8_43 Depth=2
	cmpq	%rax, %r9
	sete	%bl
	testq	%r9, %r9
	sete	%r14b
	testq	%r11, %r11
	sete	%r13b
	orb	%bl, %r13b
	orb	%r14b, %r13b
	movq	%r11, %rbx
	imulq	%rsi, %rbx
	leaq	(%r10,%rbx,8), %r14
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
.LBB8_45:                               #   Parent Loop BB8_41 Depth=1
                                        #     Parent Loop BB8_43 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movapd	%xmm0, %xmm1
	testb	%r13b, %r13b
	jne	.LBB8_50
# %bb.46:                               #   in Loop: Header=BB8_45 Depth=3
	movapd	%xmm0, %xmm1
	cmpq	%rcx, %r11
	je	.LBB8_50
# %bb.47:                               #   in Loop: Header=BB8_45 Depth=3
	movapd	%xmm0, %xmm1
	testq	%rbx, %rbx
	je	.LBB8_50
# %bb.48:                               #   in Loop: Header=BB8_45 Depth=3
	movapd	%xmm0, %xmm1
	cmpq	%rbx, %rdx
	je	.LBB8_50
# %bb.49:                               #   in Loop: Header=BB8_45 Depth=3
	xorpd	%xmm1, %xmm1
.LBB8_50:                               #   in Loop: Header=BB8_45 Depth=3
	movslq	%r15d, %r15
	movsd	%xmm1, (%r14,%r15,8)
	incq	%rbx
	addl	%ebp, %r15d
	cmpq	%rbx, %r8
	jne	.LBB8_45
.LBB8_51:                               # %._crit_edge
                                        #   in Loop: Header=BB8_43 Depth=2
	incq	%r11
	cmpq	%rdi, %r11
	jne	.LBB8_43
.LBB8_52:                               # %._crit_edge339
                                        #   in Loop: Header=BB8_41 Depth=1
	incq	%r9
	cmpq	%rsi, %r9
	movq	16(%rsp), %r15                  # 8-byte Reload
	jne	.LBB8_41
.LBB8_53:                               # %._crit_edge341
	movq	$0, 24(%rsp)
.Ltmp75:
	leaq	8(%rsp), %rdi
	movq	120(%rsp), %r13                 # 8-byte Reload
	movq	%r13, %rsi
	callq	hipMalloc
.Ltmp76:
# %bb.54:
.Ltmp77:
	leaq	40(%rsp), %rdi
	movq	%r13, %rsi
	callq	hipMalloc
.Ltmp78:
# %bb.55:
.Ltmp79:
	leaq	96(%rsp), %rdi
	movq	%r13, %rsi
	callq	hipMalloc
.Ltmp80:
# %bb.56:
.Ltmp81:
	leaq	88(%rsp), %rdi
	movq	%r13, %rsi
	callq	hipMalloc
.Ltmp82:
# %bb.57:
.Ltmp83:
	leaq	80(%rsp), %rdi
	movq	%r13, %rsi
	callq	hipMalloc
.Ltmp84:
# %bb.58:
.Ltmp85:
	leaq	48(%rsp), %rdi
	movl	$8, %esi
	callq	hipMalloc
.Ltmp86:
# %bb.59:                               # %_ZL9hipMallocIdE10hipError_tPPT_m.exit
	movabsq	$4621819117588971520, %rax      # imm = 0x4024000000000000
	movq	%rax, 24(%rsp)
	movq	8(%rsp), %rdi
.Ltmp87:
	movq	32(%rsp), %rsi                  # 8-byte Reload
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp88:
# %bb.60:
	movq	40(%rsp), %rdi
.Ltmp89:
	movq	32(%rsp), %rsi                  # 8-byte Reload
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp90:
# %bb.61:
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, %rbp
	movsd	24(%rsp), %xmm0                 # xmm0 = mem[0],zero
	movl	$-1, %ebx
	ucomisd	.LCPI8_1(%rip), %xmm0
	movq	128(%rsp), %r14                 # 8-byte Reload
	jbe	.LBB8_96
# %bb.62:                               # %.lr.ph344
	movq	%rbp, 16(%rsp)                  # 8-byte Spill
	movl	108(%rsp), %r13d                # 4-byte Reload
	btsq	$32, %r13
	movl	112(%rsp), %ebp                 # 4-byte Reload
	btsq	$32, %rbp
	movl	$1, %ebx
.LBB8_63:                               # =>This Inner Loop Header: Depth=1
.Ltmp92:
	movabsq	$4294967297, %rdi               # imm = 0x100000001
	movl	$1, %esi
	movq	%rdi, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp93:
# %bb.64:                               #   in Loop: Header=BB8_63 Depth=1
	testl	%eax, %eax
	jne	.LBB8_66
# %bb.65:                               #   in Loop: Header=BB8_63 Depth=1
	movq	48(%rsp), %rdi
.Ltmp94:
	callq	_Z24__device_stub__RESET_CTRPd
.Ltmp95:
.LBB8_66:                               #   in Loop: Header=BB8_63 Depth=1
.Ltmp96:
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp97:
# %bb.67:                               #   in Loop: Header=BB8_63 Depth=1
	testl	%eax, %eax
	jne	.LBB8_69
# %bb.68:                               #   in Loop: Header=BB8_63 Depth=1
	movq	88(%rsp), %rdi
	movq	8(%rsp), %rsi
.Ltmp98:
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	movsd	.LCPI8_2(%rip), %xmm0           # xmm0 = mem[0],zero
	callq	_Z18__device_stub__DDYPdS_iiid
.Ltmp99:
.LBB8_69:                               #   in Loop: Header=BB8_63 Depth=1
.Ltmp100:
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp101:
# %bb.70:                               #   in Loop: Header=BB8_63 Depth=1
	testl	%eax, %eax
	jne	.LBB8_72
# %bb.71:                               #   in Loop: Header=BB8_63 Depth=1
	movq	80(%rsp), %rdi
	movq	8(%rsp), %rsi
.Ltmp102:
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	movsd	.LCPI8_2(%rip), %xmm0           # xmm0 = mem[0],zero
	callq	_Z18__device_stub__DDZPdS_iiid
.Ltmp103:
.LBB8_72:                               #   in Loop: Header=BB8_63 Depth=1
.Ltmp104:
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp105:
# %bb.73:                               #   in Loop: Header=BB8_63 Depth=1
	testl	%eax, %eax
	jne	.LBB8_75
# %bb.74:                               #   in Loop: Header=BB8_63 Depth=1
	movq	96(%rsp), %rdi
	movq	8(%rsp), %rsi
.Ltmp106:
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	movsd	.LCPI8_2(%rip), %xmm0           # xmm0 = mem[0],zero
	callq	_Z18__device_stub__DDXPdS_iiid
.Ltmp107:
.LBB8_75:                               #   in Loop: Header=BB8_63 Depth=1
.Ltmp108:
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp109:
# %bb.76:                               #   in Loop: Header=BB8_63 Depth=1
	testl	%eax, %eax
	jne	.LBB8_78
# %bb.77:                               #   in Loop: Header=BB8_63 Depth=1
	movq	40(%rsp), %rdi
	movq	96(%rsp), %rsi
.Ltmp110:
	movsd	.LCPI8_3(%rip), %xmm0           # xmm0 = mem[0],zero
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	callq	_Z18__device_stub__ADDPdS_diii
.Ltmp111:
.LBB8_78:                               #   in Loop: Header=BB8_63 Depth=1
.Ltmp112:
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp113:
# %bb.79:                               #   in Loop: Header=BB8_63 Depth=1
	testl	%eax, %eax
	jne	.LBB8_81
# %bb.80:                               #   in Loop: Header=BB8_63 Depth=1
	movq	40(%rsp), %rdi
	movq	88(%rsp), %rsi
.Ltmp114:
	movsd	.LCPI8_3(%rip), %xmm0           # xmm0 = mem[0],zero
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	callq	_Z18__device_stub__ADDPdS_diii
.Ltmp115:
.LBB8_81:                               #   in Loop: Header=BB8_63 Depth=1
.Ltmp116:
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp117:
# %bb.82:                               #   in Loop: Header=BB8_63 Depth=1
	testl	%eax, %eax
	jne	.LBB8_84
# %bb.83:                               #   in Loop: Header=BB8_63 Depth=1
	movq	40(%rsp), %rdi
	movq	80(%rsp), %rsi
.Ltmp118:
	movsd	.LCPI8_3(%rip), %xmm0           # xmm0 = mem[0],zero
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	callq	_Z18__device_stub__ADDPdS_diii
.Ltmp119:
.LBB8_84:                               #   in Loop: Header=BB8_63 Depth=1
.Ltmp120:
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp121:
# %bb.85:                               #   in Loop: Header=BB8_63 Depth=1
	testl	%eax, %eax
	jne	.LBB8_87
# %bb.86:                               #   in Loop: Header=BB8_63 Depth=1
	movq	8(%rsp), %rdi
	movq	40(%rsp), %rsi
	movq	48(%rsp), %rdx
.Ltmp122:
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	movl	%r12d, %r9d
	callq	_Z22__device_stub__COMPAREPdS_S_iii
.Ltmp123:
.LBB8_87:                               #   in Loop: Header=BB8_63 Depth=1
	movq	48(%rsp), %rsi
.Ltmp124:
	movl	$8, %edx
	leaq	24(%rsp), %rdi
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp125:
# %bb.88:                               #   in Loop: Header=BB8_63 Depth=1
.Ltmp126:
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp127:
# %bb.89:                               #   in Loop: Header=BB8_63 Depth=1
	testl	%eax, %eax
	jne	.LBB8_91
# %bb.90:                               #   in Loop: Header=BB8_63 Depth=1
	movq	8(%rsp), %rdi
	movq	40(%rsp), %rsi
.Ltmp128:
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	callq	_Z21__device_stub__ASSIGNPdS_iii
.Ltmp129:
.LBB8_91:                               #   in Loop: Header=BB8_63 Depth=1
	movl	%ebx, %eax
	imulq	$274877907, %rax, %rax          # imm = 0x10624DD3
	shrq	$38, %rax
	imull	$1000, %eax, %eax               # imm = 0x3E8
	movl	$1, %ecx
	subl	%eax, %ecx
	addl	%ebx, %ecx
	cmpl	$1, %ecx
	jne	.LBB8_94
# %bb.92:                               #   in Loop: Header=BB8_63 Depth=1
	movq	48(%rsp), %rsi
.Ltmp130:
	movl	$8, %edx
	leaq	24(%rsp), %rdi
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp131:
# %bb.93:                               #   in Loop: Header=BB8_63 Depth=1
	movsd	24(%rsp), %xmm0                 # xmm0 = mem[0],zero
	movl	$.L.str.9, %edi
	movl	%ebx, %esi
	movb	$1, %al
	callq	printf
.LBB8_94:                               #   in Loop: Header=BB8_63 Depth=1
	movsd	24(%rsp), %xmm0                 # xmm0 = mem[0],zero
	incl	%ebx
	ucomisd	.LCPI8_1(%rip), %xmm0
	ja	.LBB8_63
# %bb.95:                               # %._crit_edge345.loopexit
	addl	$-2, %ebx
	movq	120(%rsp), %r13                 # 8-byte Reload
	movq	16(%rsp), %rbp                  # 8-byte Reload
.LBB8_96:                               # %._crit_edge345
	movq	8(%rsp), %rsi
.Ltmp133:
	movq	144(%rsp), %rdi                 # 8-byte Reload
	movq	%r13, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp134:
# %bb.97:
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, %r13
.Ltmp136:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.10, %esi
	movl	$11, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp137:
# %bb.98:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit265
	subq	%rbp, %r13
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r13, %xmm0
	divss	.LCPI8_4(%rip), %xmm0
	cvtss2sd	%xmm0, %xmm0
.Ltmp138:
	movl	$_ZSt4cout, %edi
	movsd	%xmm0, 16(%rsp)                 # 8-byte Spill
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp139:
# %bb.99:                               # %_ZNSolsEf.exit
.Ltmp140:
	movl	$.L.str.1, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp141:
# %bb.100:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit266
.Ltmp142:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.11, %esi
	movl	$15, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp143:
# %bb.101:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit267
.Ltmp144:
	movl	$_ZSt4cout, %edi
	movl	%ebx, %esi
	callq	_ZNSolsEi
.Ltmp145:
# %bb.102:
.Ltmp146:
	movl	$.L.str.12, %esi
	movl	$8, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp147:
# %bb.103:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit268
.Ltmp148:
	leaq	152(%rsp), %rdi
	movq	112(%rsp), %rsi                 # 8-byte Reload
                                        # kill: def $esi killed $esi killed $rsi
	callq	_ZNSolsEi
.Ltmp149:
# %bb.104:
.Ltmp150:
	movq	%rax, %rbx
	movl	$.L.str.13, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp151:
# %bb.105:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit269
.Ltmp152:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ZNSolsEi
.Ltmp153:
# %bb.106:
.Ltmp154:
	movq	%rax, %rbx
	movl	$.L.str.13, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp155:
# %bb.107:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit270
.Ltmp156:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_ZNSolsEi
.Ltmp157:
# %bb.108:
.Ltmp158:
	movq	%rax, %rbx
	movl	$.L.str.13, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp159:
# %bb.109:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit271
.Ltmp160:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_ZNSolsEi
.Ltmp161:
# %bb.110:
.Ltmp162:
	movq	%rax, %rbx
	movl	$.L.str.13, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp163:
# %bb.111:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit272
.Ltmp164:
	movq	%rbx, %rdi
	movq	136(%rsp), %rsi                 # 8-byte Reload
                                        # kill: def $esi killed $esi killed $rsi
	callq	_ZNSolsEi
.Ltmp165:
# %bb.112:
.Ltmp166:
	movq	%rax, %rbx
	movl	$.L.str.13, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp167:
# %bb.113:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit273
.Ltmp168:
	movq	%rbx, %rdi
	movsd	16(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp169:
# %bb.114:                              # %_ZNSolsEf.exit274
.Ltmp170:
	movl	$.L.str.1, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp171:
# %bb.115:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit275
.Ltmp172:
	leaq	152(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv
.Ltmp173:
# %bb.116:
	movq	8(%rsp), %rdi
.Ltmp174:
	callq	hipFree
.Ltmp175:
# %bb.117:
	movq	40(%rsp), %rdi
.Ltmp176:
	callq	hipFree
.Ltmp177:
# %bb.118:
	movq	96(%rsp), %rdi
.Ltmp178:
	callq	hipFree
.Ltmp179:
# %bb.119:
	movq	88(%rsp), %rdi
.Ltmp180:
	callq	hipFree
.Ltmp181:
# %bb.120:
	movq	80(%rsp), %rdi
.Ltmp182:
	callq	hipFree
.Ltmp183:
# %bb.121:
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE(%rip), %rax
	leaq	160(%rsp), %rdi
	movq	%rax, -8(%rdi)
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE+24(%rip), %rcx
	movq	-24(%rax), %rax
	movq	%rcx, 152(%rsp,%rax)
	callq	_ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev
	leaq	400(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	xorl	%eax, %eax
	addq	$664, %rsp                      # imm = 0x298
	.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
.LBB8_4:
	.cfi_def_cfa_offset 720
.Ltmp187:
	movl	$.L.str.14, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp188:
# %bb.5:
.LBB8_14:                               # %.critedge.i.i
.Ltmp185:
	movl	$.L.str.14, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp186:
# %bb.15:
.LBB8_128:
.Ltmp32:
	movl	$.L.str.14, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp33:
# %bb.129:
.LBB8_133:                              # %.critedge.i.i211
.Ltmp30:
	movl	$.L.str.14, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp31:
# %bb.134:
.LBB8_141:
.Ltmp27:
	movl	$.L.str.14, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp28:
# %bb.142:
.LBB8_148:                              # %.critedge.i.i220
.Ltmp25:
	movl	$.L.str.14, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp26:
# %bb.149:
.LBB8_156:
.Ltmp22:
	movl	$.L.str.14, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp23:
# %bb.157:
.LBB8_163:                              # %.critedge.i.i229
.Ltmp20:
	movl	$.L.str.14, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp21:
# %bb.164:
.LBB8_171:
.Ltmp17:
	movl	$.L.str.14, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp18:
# %bb.172:
.LBB8_176:                              # %.critedge.i.i238
.Ltmp15:
	movl	$.L.str.14, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp16:
# %bb.177:
.LBB8_185:
.Ltmp14:
	jmp	.LBB8_193
.LBB8_184:
.Ltmp11:
	jmp	.LBB8_193
.LBB8_183:
.Ltmp8:
	jmp	.LBB8_193
.LBB8_182:
.Ltmp5:
	jmp	.LBB8_193
.LBB8_173:
.Ltmp19:
	jmp	.LBB8_159
.LBB8_158:
.Ltmp24:
.LBB8_159:
	movq	%rax, %r14
	cmpl	$0, (%rbx)
	jne	.LBB8_145
# %bb.160:
	movl	32(%rsp), %eax                  # 4-byte Reload
	movl	%eax, (%rbx)
	jmp	.LBB8_145
.LBB8_143:
.Ltmp29:
	movq	%rax, %r14
	cmpl	$0, (%rbx)
	jne	.LBB8_145
# %bb.144:
	movl	%ebp, (%rbx)
.LBB8_145:                              # %_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev.exit.i.i221
	movq	48(%rsp), %rdi
	leaq	64(%rsp), %rax
	jmp	.LBB8_10
.LBB8_130:
.Ltmp34:
	jmp	.LBB8_7
.LBB8_123:
.Ltmp37:
	jmp	.LBB8_193
.LBB8_191:                              # %.loopexit.split-lp
.Ltmp135:
	jmp	.LBB8_193
.LBB8_6:
.Ltmp189:
.LBB8_7:
	movq	%rax, %r14
	cmpl	$0, (%rbx)
	jne	.LBB8_9
# %bb.8:
	movl	%ebp, (%rbx)
.LBB8_9:                                # %_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev.exit.i.i
	leaq	64(%rsp), %rax
	movq	-16(%rax), %rdi
.LBB8_10:                               # %_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev.exit.i.i
	cmpq	%rax, %rdi
	je	.LBB8_194
# %bb.11:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i207
	callq	_ZdlPv
	jmp	.LBB8_194
.LBB8_122:
.Ltmp2:
	jmp	.LBB8_193
.LBB8_187:
.Ltmp51:
	jmp	.LBB8_193
.LBB8_186:
.Ltmp44:
	jmp	.LBB8_193
.LBB8_189:
.Ltmp91:
	jmp	.LBB8_193
.LBB8_188:
.Ltmp74:
	jmp	.LBB8_193
.LBB8_192:
.Ltmp184:
	jmp	.LBB8_193
.LBB8_190:                              # %.loopexit
.Ltmp132:
.LBB8_193:
	movq	%rax, %r14
.LBB8_194:
	leaq	152(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end8:
	.size	main, .Lfunc_end8-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table8:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp2-.Lfunc_begin0           #     jumps to .Ltmp2
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp35-.Lfunc_begin0          # >> Call Site 3 <<
	.uleb128 .Ltmp36-.Ltmp35                #   Call between .Ltmp35 and .Ltmp36
	.uleb128 .Ltmp37-.Lfunc_begin0          #     jumps to .Ltmp37
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Ltmp4-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp4
	.uleb128 .Ltmp5-.Lfunc_begin0           #     jumps to .Ltmp5
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp6-.Lfunc_begin0           # >> Call Site 5 <<
	.uleb128 .Ltmp7-.Ltmp6                  #   Call between .Ltmp6 and .Ltmp7
	.uleb128 .Ltmp8-.Lfunc_begin0           #     jumps to .Ltmp8
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp9-.Lfunc_begin0           # >> Call Site 6 <<
	.uleb128 .Ltmp10-.Ltmp9                 #   Call between .Ltmp9 and .Ltmp10
	.uleb128 .Ltmp11-.Lfunc_begin0          #     jumps to .Ltmp11
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp12-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp13-.Ltmp12                #   Call between .Ltmp12 and .Ltmp13
	.uleb128 .Ltmp14-.Lfunc_begin0          #     jumps to .Ltmp14
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp38-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp43-.Ltmp38                #   Call between .Ltmp38 and .Ltmp43
	.uleb128 .Ltmp44-.Lfunc_begin0          #     jumps to .Ltmp44
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp45-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp50-.Ltmp45                #   Call between .Ltmp45 and .Ltmp50
	.uleb128 .Ltmp51-.Lfunc_begin0          #     jumps to .Ltmp51
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp52-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Ltmp73-.Ltmp52                #   Call between .Ltmp52 and .Ltmp73
	.uleb128 .Ltmp74-.Lfunc_begin0          #     jumps to .Ltmp74
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp75-.Lfunc_begin0          # >> Call Site 11 <<
	.uleb128 .Ltmp90-.Ltmp75                #   Call between .Ltmp75 and .Ltmp90
	.uleb128 .Ltmp91-.Lfunc_begin0          #     jumps to .Ltmp91
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp92-.Lfunc_begin0          # >> Call Site 12 <<
	.uleb128 .Ltmp131-.Ltmp92               #   Call between .Ltmp92 and .Ltmp131
	.uleb128 .Ltmp132-.Lfunc_begin0         #     jumps to .Ltmp132
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp133-.Lfunc_begin0         # >> Call Site 13 <<
	.uleb128 .Ltmp134-.Ltmp133              #   Call between .Ltmp133 and .Ltmp134
	.uleb128 .Ltmp135-.Lfunc_begin0         #     jumps to .Ltmp135
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp136-.Lfunc_begin0         # >> Call Site 14 <<
	.uleb128 .Ltmp183-.Ltmp136              #   Call between .Ltmp136 and .Ltmp183
	.uleb128 .Ltmp184-.Lfunc_begin0         #     jumps to .Ltmp184
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp187-.Lfunc_begin0         # >> Call Site 15 <<
	.uleb128 .Ltmp186-.Ltmp187              #   Call between .Ltmp187 and .Ltmp186
	.uleb128 .Ltmp189-.Lfunc_begin0         #     jumps to .Ltmp189
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp32-.Lfunc_begin0          # >> Call Site 16 <<
	.uleb128 .Ltmp31-.Ltmp32                #   Call between .Ltmp32 and .Ltmp31
	.uleb128 .Ltmp34-.Lfunc_begin0          #     jumps to .Ltmp34
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp27-.Lfunc_begin0          # >> Call Site 17 <<
	.uleb128 .Ltmp26-.Ltmp27                #   Call between .Ltmp27 and .Ltmp26
	.uleb128 .Ltmp29-.Lfunc_begin0          #     jumps to .Ltmp29
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp22-.Lfunc_begin0          # >> Call Site 18 <<
	.uleb128 .Ltmp21-.Ltmp22                #   Call between .Ltmp22 and .Ltmp21
	.uleb128 .Ltmp24-.Lfunc_begin0          #     jumps to .Ltmp24
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp17-.Lfunc_begin0          # >> Call Site 19 <<
	.uleb128 .Ltmp16-.Ltmp17                #   Call between .Ltmp17 and .Ltmp16
	.uleb128 .Ltmp19-.Lfunc_begin0          #     jumps to .Ltmp19
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp16-.Lfunc_begin0          # >> Call Site 20 <<
	.uleb128 .Lfunc_end8-.Ltmp16            #   Call between .Ltmp16 and .Lfunc_end8
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_ # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.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
	leaq	16(%rdi), %rax
	movq	%rax, (%rdi)
	testq	%rsi, %rsi
	je	.LBB9_1
# %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	strlen
	leaq	(%rax,%rbx), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	jmp	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag # TAILCALL
.LBB9_1:
	.cfi_def_cfa_offset 32
	movl	$.L.str.15, %edi
	callq	_ZSt19__throw_logic_errorPKc
.Lfunc_end9:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, .Lfunc_end9-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	subq	%rsi, %r14
	movq	%r14, (%rsp)
	cmpq	$15, %r14
	jbe	.LBB10_1
# %bb.2:
	movq	%rsp, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm
	movq	%rax, (%rbx)
	movq	(%r12), %rcx
	movq	%rcx, 16(%rbx)
	jmp	.LBB10_3
.LBB10_1:                               # %._crit_edge
	movq	(%rbx), %rax
.LBB10_3:
	testq	%r14, %r14
	je	.LBB10_7
# %bb.4:
	cmpq	$1, %r14
	jne	.LBB10_6
# %bb.5:
	movb	(%r15), %cl
	movb	%cl, (%rax)
	jmp	.LBB10_7
.LBB10_6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memcpy@PLT
.LBB10_7:                               # %_ZZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tagEN6_GuardD2Ev.exit
	movq	(%rsp), %rax
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rcx
	movb	$0, (%rcx,%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end10:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag, .Lfunc_end10-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.text
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	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	.LBB11_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB11_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z3DDXPdS_iiid, %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	$_Z3DDYPdS_iiid, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z3DDZPdS_iiid, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z6ASSIGNPdS_iii, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z3ADDPdS_diii, %esi
	movl	$.L__unnamed_5, %edx
	movl	$.L__unnamed_5, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z7COMPAREPdS_S_iii, %esi
	movl	$.L__unnamed_6, %edx
	movl	$.L__unnamed_6, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z9RESET_CTRPd, %esi
	movl	$.L__unnamed_7, %edx
	movl	$.L__unnamed_7, %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_end11:
	.size	__hip_module_ctor, .Lfunc_end11-__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	.LBB12_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
.LBB12_2:
	retq
.Lfunc_end12:
	.size	__hip_module_dtor, .Lfunc_end12-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z3DDXPdS_iiid,@object          # @_Z3DDXPdS_iiid
	.section	.rodata,"a",@progbits
	.globl	_Z3DDXPdS_iiid
	.p2align	3, 0x0
_Z3DDXPdS_iiid:
	.quad	_Z18__device_stub__DDXPdS_iiid
	.size	_Z3DDXPdS_iiid, 8

	.type	_Z3DDYPdS_iiid,@object          # @_Z3DDYPdS_iiid
	.globl	_Z3DDYPdS_iiid
	.p2align	3, 0x0
_Z3DDYPdS_iiid:
	.quad	_Z18__device_stub__DDYPdS_iiid
	.size	_Z3DDYPdS_iiid, 8

	.type	_Z3DDZPdS_iiid,@object          # @_Z3DDZPdS_iiid
	.globl	_Z3DDZPdS_iiid
	.p2align	3, 0x0
_Z3DDZPdS_iiid:
	.quad	_Z18__device_stub__DDZPdS_iiid
	.size	_Z3DDZPdS_iiid, 8

	.type	_Z6ASSIGNPdS_iii,@object        # @_Z6ASSIGNPdS_iii
	.globl	_Z6ASSIGNPdS_iii
	.p2align	3, 0x0
_Z6ASSIGNPdS_iii:
	.quad	_Z21__device_stub__ASSIGNPdS_iii
	.size	_Z6ASSIGNPdS_iii, 8

	.type	_Z3ADDPdS_diii,@object          # @_Z3ADDPdS_diii
	.globl	_Z3ADDPdS_diii
	.p2align	3, 0x0
_Z3ADDPdS_diii:
	.quad	_Z18__device_stub__ADDPdS_diii
	.size	_Z3ADDPdS_diii, 8

	.type	_Z7COMPAREPdS_S_iii,@object     # @_Z7COMPAREPdS_S_iii
	.globl	_Z7COMPAREPdS_S_iii
	.p2align	3, 0x0
_Z7COMPAREPdS_S_iii:
	.quad	_Z22__device_stub__COMPAREPdS_S_iii
	.size	_Z7COMPAREPdS_S_iii, 8

	.type	_Z9RESET_CTRPd,@object          # @_Z9RESET_CTRPd
	.globl	_Z9RESET_CTRPd
	.p2align	3, 0x0
_Z9RESET_CTRPd:
	.quad	_Z24__device_stub__RESET_CTRPd
	.size	_Z9RESET_CTRPd, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"%.2lf "
	.size	.L.str, 7

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

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

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"Threads: "
	.size	.L.str.3, 10

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"Blocks: "
	.size	.L.str.4, 9

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"\nX"
	.size	.L.str.5, 3

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	" Y"
	.size	.L.str.6, 3

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	" Z"
	.size	.L.str.7, 3

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	" Total Capacity\342\207\222"
	.size	.L.str.8, 19

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"%d loops %0.6lf max error\r"
	.size	.L.str.9, 27

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"\nDuration: "
	.size	.L.str.10, 12

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	"\n\nConverged in "
	.size	.L.str.11, 16

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	" loops\n\n"
	.size	.L.str.12, 9

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

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

	.type	.L.str.15,@object               # @.str.15
.L.str.15:
	.asciz	"basic_string: construction from null is not valid"
	.size	.L.str.15, 50

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z3DDXPdS_iiid"
	.size	.L__unnamed_1, 15

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z3DDYPdS_iiid"
	.size	.L__unnamed_2, 15

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z3DDZPdS_iiid"
	.size	.L__unnamed_3, 15

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"_Z6ASSIGNPdS_iii"
	.size	.L__unnamed_4, 17

	.type	.L__unnamed_5,@object           # @4
.L__unnamed_5:
	.asciz	"_Z3ADDPdS_diii"
	.size	.L__unnamed_5, 15

	.type	.L__unnamed_6,@object           # @5
.L__unnamed_6:
	.asciz	"_Z7COMPAREPdS_S_iii"
	.size	.L__unnamed_6, 20

	.type	.L__unnamed_7,@object           # @6
.L__unnamed_7:
	.asciz	"_Z9RESET_CTRPd"
	.size	.L__unnamed_7, 15

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

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

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym _Z18__device_stub__DDXPdS_iiid
	.addrsig_sym _Z18__device_stub__DDYPdS_iiid
	.addrsig_sym _Z18__device_stub__DDZPdS_iiid
	.addrsig_sym _Z21__device_stub__ASSIGNPdS_iii
	.addrsig_sym _Z18__device_stub__ADDPdS_diii
	.addrsig_sym _Z22__device_stub__COMPAREPdS_S_iii
	.addrsig_sym _Z24__device_stub__RESET_CTRPd
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _Z3DDXPdS_iiid
	.addrsig_sym _Z3DDYPdS_iiid
	.addrsig_sym _Z3DDZPdS_iiid
	.addrsig_sym _Z6ASSIGNPdS_iii
	.addrsig_sym _Z3ADDPdS_diii
	.addrsig_sym _Z7COMPAREPdS_S_iii
	.addrsig_sym _Z9RESET_CTRPd
	.addrsig_sym _ZSt4cout
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z3DDXPdS_iiid          ; -- Begin function _Z3DDXPdS_iiid
	.globl	_Z3DDXPdS_iiid
	.p2align	8
	.type	_Z3DDXPdS_iiid,@function
_Z3DDXPdS_iiid:                         ; @_Z3DDXPdS_iiid
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x34
	s_load_b128 s[4:7], s[0:1], 0x10
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_add_i32 s3, s6, -2
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_add_i32 s2, s5, -2
	s_cmp_gt_i32 s4, 2
	s_mul_i32 s3, s3, s2
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_cmp_gt_i32_e32 vcc_lo, s3, v1
	s_cselect_b32 s3, -1, 0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s3, vcc_lo, s3
	s_and_saveexec_b32 s6, s3
	s_cbranch_execz .LBB0_3
; %bb.1:                                ; %.lr.ph
	s_ashr_i32 s3, s2, 31
	v_ashrrev_i32_e32 v3, 31, v1
	s_add_i32 s6, s2, s3
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_xor_b32 s6, s6, s3
	v_add_nc_u32_e32 v4, v1, v3
	v_cvt_f32_u32_e32 v0, s6
	s_sub_i32 s7, 0, s6
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v4, v4, v3
	v_rcp_iflag_f32_e32 v0, v0
	v_xor_b32_e32 v3, s3, v3
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v0, 0x4f7ffffe, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cvt_u32_f32_e32 v0, v0
	v_mul_lo_u32 v2, s7, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v2, v0, v2
	v_add_nc_u32_e32 v0, v0, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v0, v4, v0
	v_mul_lo_u32 v2, v0, s6
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_sub_nc_u32_e32 v2, v4, v2
	v_add_nc_u32_e32 v4, 1, v0
	v_subrev_nc_u32_e32 v5, s6, v2
	v_cmp_le_u32_e32 vcc_lo, s6, v2
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e32 v0, v0, v4, vcc_lo
	v_cndmask_b32_e32 v2, v2, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v4, 1, v0
	v_cmp_le_u32_e32 vcc_lo, s6, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v0, v0, v4, vcc_lo
	v_xor_b32_e32 v0, v0, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v0, v0, v3
	v_mul_lo_u32 v2, v0, s2
	s_load_b64 s[2:3], s[0:1], 0x20
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v1, v1, v2
	v_mul_lo_u32 v1, v1, s5
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_add3_u32 v4, v0, s5, v1
	s_waitcnt lgkmcnt(0)
	v_mul_f64 v[0:1], s[2:3], s[2:3]
	s_load_b128 s[0:3], s[0:1], 0x0
	v_mad_u64_u32 v[2:3], null, s4, v4, s[4:5]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[2:3], 3, v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, v2, 8
	v_add_co_ci_u32_e32 v3, vcc_lo, 0, v3, vcc_lo
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, s2, v2
	v_add_co_ci_u32_e32 v5, vcc_lo, s3, v3, vcc_lo
	v_add_co_u32 v2, vcc_lo, s0, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s1, v3, vcc_lo
	s_add_i32 s0, s4, -2
.LBB0_2:                                ; =>This Inner Loop Header: Depth=1
	s_clause 0x1
	global_load_b64 v[10:11], v[4:5], off offset:8
	global_load_b128 v[6:9], v[4:5], off offset:-8
	s_add_i32 s0, s0, -1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	s_cmp_lg_u32 s0, 0
	s_waitcnt vmcnt(0)
	v_add_f64 v[6:7], v[10:11], v[6:7]
	v_fma_f64 v[6:7], v[8:9], -2.0, v[6:7]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_scale_f64 v[8:9], null, v[0:1], v[0:1], v[6:7]
	v_div_scale_f64 v[14:15], vcc_lo, v[6:7], v[0:1], v[6:7]
	v_rcp_f64_e32 v[10:11], v[8:9]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[12:13], -v[8:9], v[10:11], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[10:11], v[10:11], v[12:13], v[10:11]
	v_fma_f64 v[12:13], -v[8:9], v[10:11], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[10:11], v[10:11], v[12:13], v[10:11]
	v_mul_f64 v[12:13], v[14:15], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[8:9], -v[8:9], v[12:13], v[14:15]
	v_div_fmas_f64 v[8:9], v[8:9], v[10:11], v[12:13]
	v_add_co_u32 v4, vcc_lo, v4, 8
	v_add_co_ci_u32_e32 v5, vcc_lo, 0, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_3)
	v_div_fixup_f64 v[6:7], v[8:9], v[0:1], v[6:7]
	global_store_b64 v[2:3], v[6:7], off
	v_add_co_u32 v2, vcc_lo, v2, 8
	v_add_co_ci_u32_e32 v3, vcc_lo, 0, v3, vcc_lo
	s_cbranch_scc1 .LBB0_2
.LBB0_3:                                ; %.loopexit
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z3DDXPdS_iiid
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 16
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z3DDXPdS_iiid, .Lfunc_end0-_Z3DDXPdS_iiid
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 608
; NumSgprs: 18
; NumVgprs: 16
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 16
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z3DDYPdS_iiid          ; -- Begin function _Z3DDYPdS_iiid
	.globl	_Z3DDYPdS_iiid
	.p2align	8
	.type	_Z3DDYPdS_iiid,@function
_Z3DDYPdS_iiid:                         ; @_Z3DDYPdS_iiid
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x34
	s_load_b128 s[4:7], s[0:1], 0x10
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_add_i32 s10, s5, -2
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_add_i32 s2, s6, -2
	s_cmp_gt_i32 s5, 2
	s_mul_i32 s2, s2, s10
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_cmp_gt_i32_e32 vcc_lo, s2, v1
	s_cselect_b32 s2, -1, 0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s2, vcc_lo, s2
	s_and_saveexec_b32 s3, s2
	s_cbranch_execz .LBB1_3
; %bb.1:                                ; %.lr.ph
	s_ashr_i32 s2, s10, 31
	v_ashrrev_i32_e32 v3, 31, v1
	s_add_i32 s3, s10, s2
	s_mov_b32 s8, 0
	s_xor_b32 s3, s3, s2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v4, v1, v3
	v_cvt_f32_u32_e32 v0, s3
	s_sub_i32 s6, 0, s3
	v_xor_b32_e32 v4, v4, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_rcp_iflag_f32_e32 v0, v0
	v_xor_b32_e32 v3, s2, v3
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v0, 0x4f7ffffe, v0
	v_cvt_u32_f32_e32 v0, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v2, s6, v0
	v_mul_hi_u32 v2, v0, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v0, v0, v2
	v_mul_hi_u32 v0, v4, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v2, v0, s3
	v_sub_nc_u32_e32 v2, v4, v2
	v_add_nc_u32_e32 v4, 1, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_subrev_nc_u32_e32 v5, s3, v2
	v_cmp_le_u32_e32 vcc_lo, s3, v2
	v_cndmask_b32_e32 v0, v0, v4, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v2, v2, v5, vcc_lo
	v_add_nc_u32_e32 v4, 1, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cmp_le_u32_e32 vcc_lo, s3, v2
	s_load_b64 s[2:3], s[0:1], 0x20
	v_cndmask_b32_e32 v0, v0, v4, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_xor_b32_e32 v0, v0, v3
	v_sub_nc_u32_e32 v2, v0, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v0, v2, s10
	v_sub_nc_u32_e32 v0, v1, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v3, v0, s5
	s_waitcnt lgkmcnt(0)
	v_mul_f64 v[0:1], s[2:3], s[2:3]
	s_load_b128 s[0:3], s[0:1], 0x0
	v_add3_u32 v4, v2, s5, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_mad_u64_u32 v[2:3], null, s4, v4, s[4:5]
	s_ashr_i32 s5, s4, 31
	s_lshl_b64 s[6:7], s[4:5], 3
	s_lshl_b32 s5, s4, 1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[4:5], 3, v[2:3]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s2, v4
	v_add_co_ci_u32_e32 v3, vcc_lo, s3, v5, vcc_lo
	v_add_co_u32 v4, vcc_lo, s6, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s7, v5, vcc_lo
.LBB1_2:                                ; =>This Inner Loop Header: Depth=1
	s_ashr_i32 s9, s8, 31
	s_add_i32 s12, s5, s8
	s_lshl_b64 s[14:15], s[8:9], 3
	s_ashr_i32 s13, s12, 31
	v_add_co_u32 v6, vcc_lo, v2, s14
	s_lshl_b64 s[12:13], s[12:13], 3
	v_add_co_ci_u32_e32 v7, vcc_lo, s15, v3, vcc_lo
	v_add_co_u32 v8, vcc_lo, v2, s12
	v_add_co_ci_u32_e32 v9, vcc_lo, s13, v3, vcc_lo
	v_add_co_u32 v10, vcc_lo, s2, v4
	s_clause 0x1
	global_load_b64 v[8:9], v[8:9], off
	global_load_b64 v[6:7], v[6:7], off
	v_add_co_ci_u32_e32 v11, vcc_lo, s3, v5, vcc_lo
	s_add_i32 s10, s10, -1
	s_add_i32 s8, s8, s4
	s_cmp_lg_u32 s10, 0
	global_load_b64 v[10:11], v[10:11], off
	s_waitcnt vmcnt(1)
	v_add_f64 v[6:7], v[8:9], v[6:7]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[6:7], v[10:11], -2.0, v[6:7]
	v_div_scale_f64 v[8:9], null, v[0:1], v[0:1], v[6:7]
	v_div_scale_f64 v[14:15], vcc_lo, v[6:7], v[0:1], v[6:7]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[10:11], v[8:9]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[12:13], -v[8:9], v[10:11], 1.0
	v_fma_f64 v[10:11], v[10:11], v[12:13], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[12:13], -v[8:9], v[10:11], 1.0
	v_fma_f64 v[10:11], v[10:11], v[12:13], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[12:13], v[14:15], v[10:11]
	v_fma_f64 v[8:9], -v[8:9], v[12:13], v[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[8:9], v[8:9], v[10:11], v[12:13]
	v_div_fixup_f64 v[6:7], v[8:9], v[0:1], v[6:7]
	v_add_co_u32 v8, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v9, vcc_lo, s1, v5, vcc_lo
	v_add_co_u32 v4, vcc_lo, v4, s6
	v_add_co_ci_u32_e32 v5, vcc_lo, s7, v5, vcc_lo
	global_store_b64 v[8:9], v[6:7], off
	s_cbranch_scc1 .LBB1_2
.LBB1_3:                                ; %.loopexit
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z3DDYPdS_iiid
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 16
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end1:
	.size	_Z3DDYPdS_iiid, .Lfunc_end1-_Z3DDYPdS_iiid
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 672
; NumSgprs: 18
; NumVgprs: 16
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 16
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z3DDZPdS_iiid          ; -- Begin function _Z3DDZPdS_iiid
	.globl	_Z3DDZPdS_iiid
	.p2align	8
	.type	_Z3DDZPdS_iiid,@function
_Z3DDZPdS_iiid:                         ; @_Z3DDZPdS_iiid
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x34
	s_load_b128 s[4:7], s[0:1], 0x10
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_add_i32 s3, s6, -2
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_add_i32 s2, s5, -2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mul_i32 s3, s3, s2
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_cmp_gt_i32_e32 vcc_lo, s3, v1
	s_and_saveexec_b32 s3, vcc_lo
	s_cbranch_execz .LBB2_4
; %bb.1:
	s_cmp_lt_i32 s6, 2
	s_cbranch_scc1 .LBB2_4
; %bb.2:                                ; %.lr.ph
	s_ashr_i32 s3, s2, 31
	v_ashrrev_i32_e32 v3, 31, v1
	s_add_i32 s7, s2, s3
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_xor_b32 s7, s7, s3
	v_add_nc_u32_e32 v4, v1, v3
	v_cvt_f32_u32_e32 v0, s7
	s_sub_i32 s8, 0, s7
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v4, v4, v3
	v_rcp_iflag_f32_e32 v0, v0
	v_xor_b32_e32 v3, s3, v3
	s_add_i32 s3, s6, -1
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v0, 0x4f7ffffe, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cvt_u32_f32_e32 v0, v0
	v_mul_lo_u32 v2, s8, v0
	s_load_b64 s[8:9], s[0:1], 0x20
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v2, v0, v2
	v_add_nc_u32_e32 v0, v0, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v0, v4, v0
	v_mul_lo_u32 v2, v0, s7
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_sub_nc_u32_e32 v2, v4, v2
	v_add_nc_u32_e32 v4, 1, v0
	v_subrev_nc_u32_e32 v5, s7, v2
	v_cmp_le_u32_e32 vcc_lo, s7, v2
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e32 v0, v0, v4, vcc_lo
	v_cndmask_b32_e32 v2, v2, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v4, 1, v0
	v_cmp_le_u32_e32 vcc_lo, s7, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v0, v0, v4, vcc_lo
	v_xor_b32_e32 v0, v0, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v0, v0, v3
	v_mul_lo_u32 v2, v0, s2
	s_mul_i32 s2, s5, s4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v1, v1, v2
	v_mad_u64_u32 v[2:3], null, v1, s5, v[0:1]
	s_waitcnt lgkmcnt(0)
	v_mul_f64 v[0:1], s[8:9], s[8:9]
	s_load_b128 s[8:11], s[0:1], 0x0
	s_mov_b32 s0, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v2, v2, s4
	v_add3_u32 v2, s2, s4, v2
	s_sub_i32 s4, 0, s2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[4:5], 3, v[2:3]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s10, v4
	v_add_co_ci_u32_e32 v3, vcc_lo, s11, v5, vcc_lo
	v_add_co_u32 v4, vcc_lo, s8, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s9, v5, vcc_lo
.LBB2_3:                                ; =>This Inner Loop Header: Depth=1
	s_add_i32 s6, s2, s0
	s_add_i32 s8, s4, s0
	s_ashr_i32 s7, s6, 31
	s_ashr_i32 s9, s8, 31
	s_lshl_b64 s[10:11], s[6:7], 3
	s_lshl_b64 s[8:9], s[8:9], 3
	v_add_co_u32 v6, vcc_lo, v2, s10
	v_add_co_ci_u32_e32 v7, vcc_lo, s11, v3, vcc_lo
	v_add_co_u32 v8, vcc_lo, v2, s8
	v_add_co_ci_u32_e32 v9, vcc_lo, s9, v3, vcc_lo
	s_ashr_i32 s1, s0, 31
	s_clause 0x1
	global_load_b64 v[6:7], v[6:7], off
	global_load_b64 v[8:9], v[8:9], off
	s_lshl_b64 s[0:1], s[0:1], 3
	s_add_i32 s3, s3, -1
	v_add_co_u32 v10, vcc_lo, v2, s0
	v_add_co_ci_u32_e32 v11, vcc_lo, s1, v3, vcc_lo
	s_cmp_lg_u32 s3, 0
	global_load_b64 v[10:11], v[10:11], off
	s_waitcnt vmcnt(1)
	v_add_f64 v[6:7], v[6:7], v[8:9]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[6:7], v[10:11], -2.0, v[6:7]
	v_div_scale_f64 v[8:9], null, v[0:1], v[0:1], v[6:7]
	v_div_scale_f64 v[14:15], vcc_lo, v[6:7], v[0:1], v[6:7]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[10:11], v[8:9]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[12:13], -v[8:9], v[10:11], 1.0
	v_fma_f64 v[10:11], v[10:11], v[12:13], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[12:13], -v[8:9], v[10:11], 1.0
	v_fma_f64 v[10:11], v[10:11], v[12:13], v[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[12:13], v[14:15], v[10:11]
	v_fma_f64 v[8:9], -v[8:9], v[12:13], v[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[8:9], v[8:9], v[10:11], v[12:13]
	v_div_fixup_f64 v[6:7], v[8:9], v[0:1], v[6:7]
	v_add_co_u32 v8, vcc_lo, v4, s0
	v_add_co_ci_u32_e32 v9, vcc_lo, s1, v5, vcc_lo
	s_mov_b32 s0, s6
	global_store_b64 v[8:9], v[6:7], off
	s_cbranch_scc1 .LBB2_3
.LBB2_4:                                ; %.loopexit
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z3DDZPdS_iiid
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 16
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end2:
	.size	_Z3DDZPdS_iiid, .Lfunc_end2-_Z3DDZPdS_iiid
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 668
; NumSgprs: 18
; NumVgprs: 16
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 16
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z6ASSIGNPdS_iii        ; -- Begin function _Z6ASSIGNPdS_iii
	.globl	_Z6ASSIGNPdS_iii
	.p2align	8
	.type	_Z6ASSIGNPdS_iii,@function
_Z6ASSIGNPdS_iii:                       ; @_Z6ASSIGNPdS_iii
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x2c
	s_load_b128 s[4:7], s[0:1], 0x10
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_add_i32 s3, s6, -2
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_add_i32 s2, s5, -2
	s_cmp_gt_i32 s4, 2
	s_mul_i32 s3, s3, s2
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_cmp_gt_i32_e32 vcc_lo, s3, v1
	s_cselect_b32 s3, -1, 0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s3, vcc_lo, s3
	s_and_saveexec_b32 s6, s3
	s_cbranch_execz .LBB3_3
; %bb.1:                                ; %.lr.ph
	s_ashr_i32 s3, s2, 31
	v_ashrrev_i32_e32 v3, 31, v1
	s_add_i32 s6, s2, s3
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_xor_b32 s6, s6, s3
	v_add_nc_u32_e32 v4, v1, v3
	v_cvt_f32_u32_e32 v0, s6
	s_sub_i32 s7, 0, s6
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v4, v4, v3
	v_rcp_iflag_f32_e32 v0, v0
	v_xor_b32_e32 v3, s3, v3
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v0, 0x4f7ffffe, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cvt_u32_f32_e32 v0, v0
	v_mul_lo_u32 v2, s7, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v2, v0, v2
	v_add_nc_u32_e32 v0, v0, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v0, v4, v0
	v_mul_lo_u32 v2, v0, s6
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_sub_nc_u32_e32 v2, v4, v2
	v_add_nc_u32_e32 v4, 1, v0
	v_subrev_nc_u32_e32 v5, s6, v2
	v_cmp_le_u32_e32 vcc_lo, s6, v2
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e32 v0, v0, v4, vcc_lo
	v_cndmask_b32_e32 v2, v2, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v4, 1, v0
	v_cmp_le_u32_e32 vcc_lo, s6, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v0, v0, v4, vcc_lo
	v_xor_b32_e32 v0, v0, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v0, v0, v3
	v_mul_lo_u32 v2, v0, s2
	s_load_b128 s[0:3], s[0:1], 0x0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v1, v1, v2
	v_mul_lo_u32 v1, v1, s5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add3_u32 v2, v0, s5, v1
	v_mad_u64_u32 v[0:1], null, s4, v2, s[4:5]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v1, 31, v0
	v_lshlrev_b64 v[0:1], 3, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, v0, 8
	v_add_co_ci_u32_e32 v3, vcc_lo, 0, v1, vcc_lo
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, s2, v2
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v3, vcc_lo
	v_add_co_u32 v2, vcc_lo, s0, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s1, v3, vcc_lo
	s_add_i32 s0, s4, -2
.LBB3_2:                                ; =>This Inner Loop Header: Depth=1
	global_load_b64 v[4:5], v[0:1], off
	v_add_co_u32 v0, vcc_lo, v0, 8
	v_add_co_ci_u32_e32 v1, vcc_lo, 0, v1, vcc_lo
	s_add_i32 s0, s0, -1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_lg_u32 s0, 0
	s_waitcnt vmcnt(0)
	global_store_b64 v[2:3], v[4:5], off
	v_add_co_u32 v2, vcc_lo, v2, 8
	v_add_co_ci_u32_e32 v3, vcc_lo, 0, v3, vcc_lo
	s_cbranch_scc1 .LBB3_2
.LBB3_3:                                ; %.loopexit
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z6ASSIGNPdS_iii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 6
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end3:
	.size	_Z6ASSIGNPdS_iii, .Lfunc_end3-_Z6ASSIGNPdS_iii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 452
; NumSgprs: 18
; NumVgprs: 6
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 6
; 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	_Z3ADDPdS_diii          ; -- Begin function _Z3ADDPdS_diii
	.globl	_Z3ADDPdS_diii
	.p2align	8
	.type	_Z3ADDPdS_diii,@function
_Z3ADDPdS_diii:                         ; @_Z3ADDPdS_diii
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x34
	s_load_b128 s[4:7], s[0:1], 0x18
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_add_i32 s3, s6, -2
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_add_i32 s2, s5, -2
	s_cmp_gt_i32 s4, 0
	s_mul_i32 s3, s3, s2
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_cmp_gt_i32_e32 vcc_lo, s3, v1
	s_cselect_b32 s3, -1, 0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s3, vcc_lo, s3
	s_and_saveexec_b32 s6, s3
	s_cbranch_execz .LBB4_3
; %bb.1:                                ; %.lr.ph
	s_ashr_i32 s3, s2, 31
	v_ashrrev_i32_e32 v3, 31, v1
	s_add_i32 s6, s2, s3
	s_load_b128 s[8:11], s[0:1], 0x0
	s_xor_b32 s6, s6, s3
	s_load_b64 s[0:1], s[0:1], 0x10
	v_cvt_f32_u32_e32 v0, s6
	s_sub_i32 s7, 0, s6
	v_add_nc_u32_e32 v4, v1, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_iflag_f32_e32 v0, v0
	v_xor_b32_e32 v4, v4, v3
	v_xor_b32_e32 v3, s3, v3
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v0, 0x4f7ffffe, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cvt_u32_f32_e32 v0, v0
	v_mul_lo_u32 v2, s7, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v2, v0, v2
	v_add_nc_u32_e32 v0, v0, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v0, v4, v0
	v_mul_lo_u32 v2, v0, s6
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_sub_nc_u32_e32 v2, v4, v2
	v_add_nc_u32_e32 v4, 1, v0
	v_subrev_nc_u32_e32 v5, s6, v2
	v_cmp_le_u32_e32 vcc_lo, s6, v2
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e32 v0, v0, v4, vcc_lo
	v_cndmask_b32_e32 v2, v2, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v4, 1, v0
	v_cmp_le_u32_e32 vcc_lo, s6, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v0, v0, v4, vcc_lo
	v_xor_b32_e32 v0, v0, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v0, v0, v3
	v_mul_lo_u32 v2, v0, s2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v1, v1, v2
	v_mul_lo_u32 v1, v1, s5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add3_u32 v2, v0, s5, v1
	v_mad_u64_u32 v[0:1], null, s4, v2, s[4:5]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v1, 31, v0
	v_lshlrev_b64 v[2:3], 3, v[0:1]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, s10, v2
	v_add_co_ci_u32_e32 v1, vcc_lo, s11, v3, vcc_lo
	v_add_co_u32 v2, vcc_lo, s8, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s9, v3, vcc_lo
.LBB4_2:                                ; =>This Inner Loop Header: Depth=1
	global_load_b64 v[4:5], v[0:1], off
	global_load_b64 v[6:7], v[2:3], off
	v_add_co_u32 v0, vcc_lo, v0, 8
	v_add_co_ci_u32_e32 v1, vcc_lo, 0, v1, vcc_lo
	s_add_i32 s4, s4, -1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_lg_u32 s4, 0
	s_waitcnt vmcnt(0)
	v_fma_f64 v[4:5], v[4:5], s[0:1], v[6:7]
	global_store_b64 v[2:3], v[4:5], off
	v_add_co_u32 v2, vcc_lo, v2, 8
	v_add_co_ci_u32_e32 v3, vcc_lo, 0, v3, vcc_lo
	s_cbranch_scc1 .LBB4_2
.LBB4_3:                                ; %.loopexit
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z3ADDPdS_diii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 8
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end4:
	.size	_Z3ADDPdS_diii, .Lfunc_end4-_Z3ADDPdS_diii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 452
; NumSgprs: 18
; NumVgprs: 8
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 8
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z7COMPAREPdS_S_iii     ; -- Begin function _Z7COMPAREPdS_S_iii
	.globl	_Z7COMPAREPdS_S_iii
	.p2align	8
	.type	_Z7COMPAREPdS_S_iii,@function
_Z7COMPAREPdS_S_iii:                    ; @_Z7COMPAREPdS_S_iii
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x34
	s_load_b128 s[4:7], s[0:1], 0x18
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_add_i32 s3, s6, -2
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_add_i32 s2, s5, -2
	s_cmp_gt_i32 s4, 2
	s_mul_i32 s3, s3, s2
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_cmp_gt_i32_e32 vcc_lo, s3, v1
	s_cselect_b32 s3, -1, 0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s3, vcc_lo, s3
	s_and_saveexec_b32 s6, s3
	s_cbranch_execz .LBB5_5
; %bb.1:                                ; %.lr.ph
	s_ashr_i32 s3, s2, 31
	v_ashrrev_i32_e32 v3, 31, v1
	s_add_i32 s6, s2, s3
	v_mov_b32_e32 v8, 0
	s_xor_b32 s6, s6, s3
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v4, v1, v3
	v_cvt_f32_u32_e32 v0, s6
	s_sub_i32 s7, 0, s6
	v_xor_b32_e32 v4, v4, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_rcp_iflag_f32_e32 v0, v0
	v_xor_b32_e32 v3, s3, v3
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v0, 0x4f7ffffe, v0
	v_cvt_u32_f32_e32 v0, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v2, s7, v0
	v_mul_hi_u32 v2, v0, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v0, v0, v2
	v_mul_hi_u32 v0, v4, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v2, v0, s6
	v_sub_nc_u32_e32 v2, v4, v2
	v_add_nc_u32_e32 v4, 1, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_subrev_nc_u32_e32 v5, s6, v2
	v_cmp_le_u32_e32 vcc_lo, s6, v2
	v_cndmask_b32_e32 v0, v0, v4, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v2, v2, v5, vcc_lo
	v_add_nc_u32_e32 v4, 1, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_le_u32_e32 vcc_lo, s6, v2
	v_cndmask_b32_e32 v0, v0, v4, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_xor_b32_e32 v0, v0, v3
	v_sub_nc_u32_e32 v0, v0, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v2, v0, s2
	s_load_b64 s[2:3], s[0:1], 0x10
	s_waitcnt lgkmcnt(0)
	s_load_b64 s[6:7], s[2:3], 0x0
	s_load_b128 s[8:11], s[0:1], 0x0
	v_sub_nc_u32_e32 v1, v1, v2
	s_add_i32 s0, s4, -2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v1, v1, s5
	v_add3_u32 v2, v0, s5, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_mad_u64_u32 v[0:1], null, s4, v2, s[4:5]
	s_waitcnt lgkmcnt(0)
	v_dual_mov_b32 v4, s6 :: v_dual_mov_b32 v5, s7
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 3, v[0:1]
	v_add_co_u32 v2, vcc_lo, v0, 8
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, 0, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s8, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s9, v3, vcc_lo
	v_add_co_u32 v2, vcc_lo, s10, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s11, v3, vcc_lo
.LBB5_2:                                ; =>This Inner Loop Header: Depth=1
	global_load_b64 v[6:7], v[0:1], off
	global_load_b64 v[9:10], v[2:3], off
	s_mov_b32 s1, exec_lo
	s_waitcnt vmcnt(0)
	v_add_f64 v[6:7], v[6:7], -v[9:10]
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_ge_f64_e64 |v[6:7]|, v[4:5]
	s_cbranch_execz .LBB5_4
; %bb.3:                                ;   in Loop: Header=BB5_2 Depth=1
	v_and_b32_e32 v7, 0x7fffffff, v7
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_mov_b32 v4, v6 :: v_dual_mov_b32 v5, v7
	global_store_b64 v8, v[6:7], s[2:3]
.LBB5_4:                                ;   in Loop: Header=BB5_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	v_add_co_u32 v0, vcc_lo, v0, 8
	v_add_co_ci_u32_e32 v1, vcc_lo, 0, v1, vcc_lo
	v_add_co_u32 v2, vcc_lo, v2, 8
	v_add_co_ci_u32_e32 v3, vcc_lo, 0, v3, vcc_lo
	s_add_i32 s0, s0, -1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_lg_u32 s0, 0
	s_cbranch_scc1 .LBB5_2
.LBB5_5:                                ; %.loopexit
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z7COMPAREPdS_S_iii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 11
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end5:
	.size	_Z7COMPAREPdS_S_iii, .Lfunc_end5-_Z7COMPAREPdS_S_iii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 544
; NumSgprs: 18
; NumVgprs: 11
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 11
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z9RESET_CTRPd          ; -- Begin function _Z9RESET_CTRPd
	.globl	_Z9RESET_CTRPd
	.p2align	8
	.type	_Z9RESET_CTRPd,@function
_Z9RESET_CTRPd:                         ; @_Z9RESET_CTRPd
; %bb.0:
	s_load_b64 s[0:1], s[0:1], 0x0
	v_mov_b32_e32 v0, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_mov_b32_e32 v1, v0
	s_waitcnt lgkmcnt(0)
	global_store_b64 v0, v[0:1], s[0:1]
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z9RESET_CTRPd
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 8
		.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 2
		.amdhsa_next_free_sgpr 2
		.amdhsa_reserve_vcc 0
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end6:
	.size	_Z9RESET_CTRPd, .Lfunc_end6-_Z9RESET_CTRPd
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 44
; NumSgprs: 2
; NumVgprs: 2
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 0
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 2
; NumVGPRsForWavesPerEU: 2
; 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:         20
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     by_value
      - .offset:         32
        .size:           8
        .value_kind:     by_value
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         44
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         52
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         54
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         56
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         58
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         60
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         62
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         104
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 296
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z3DDXPdS_iiid
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z3DDXPdS_iiid.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     16
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .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:         20
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     by_value
      - .offset:         32
        .size:           8
        .value_kind:     by_value
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         44
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         52
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         54
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         56
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         58
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         60
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         62
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         104
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 296
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z3DDYPdS_iiid
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z3DDYPdS_iiid.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     16
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .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:         20
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     by_value
      - .offset:         32
        .size:           8
        .value_kind:     by_value
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         44
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         52
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         54
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         56
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         58
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         60
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         62
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         104
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 296
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z3DDZPdS_iiid
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z3DDZPdS_iiid.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     16
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .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:         20
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     by_value
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         36
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         44
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         46
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         48
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         50
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         52
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         54
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         96
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 288
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z6ASSIGNPdS_iii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z6ASSIGNPdS_iii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     6
    .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:           8
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     by_value
      - .offset:         28
        .size:           4
        .value_kind:     by_value
      - .offset:         32
        .size:           4
        .value_kind:     by_value
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         44
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         52
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         54
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         56
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         58
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         60
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         62
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         104
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 296
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z3ADDPdS_diii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z3ADDPdS_diii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     8
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           4
        .value_kind:     by_value
      - .offset:         28
        .size:           4
        .value_kind:     by_value
      - .offset:         32
        .size:           4
        .value_kind:     by_value
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         44
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         52
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         54
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         56
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         58
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         60
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         62
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         104
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 296
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z7COMPAREPdS_S_iii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z7COMPAREPdS_S_iii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     11
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 8
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z9RESET_CTRPd
    .private_segment_fixed_size: 0
    .sgpr_count:     2
    .sgpr_spill_count: 0
    .symbol:         _Z9RESET_CTRPd.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     2
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
