#include<bits/stdc++.h>
using namespace std;

const double pi = 3.14159265358979323846264;
const double L = 550;
const double Diff = 1.;
const int MAX_BLOCK_WIDTH = 32;

// In this method, we use squre cells of threads, but we need to specify the size of the square.

/*
  |   coordinate system:
 -|---------------y
  |   x = i * d_x
  |   y = i * d_x
  |
  x
 */

inline double left(double y) { return 0; }
inline double right(double y) { return 0; }
inline double bottom(double x) { return 0; }
inline double top(double x){ return sinh(pi)*sin(x*pi/L); }
inline double analytical(double x,double y){
    return sinh(y*pi/L)*sin(x*pi/L);
}

__global__ void oneIteration(int N, int cell_size, double *cur, double *old, double delta_x,double delta_t){
    // Run one step of iteration with multiple blocks of threads
    int b_size = blockDim.x, b_id = blockIdx.x, t_id = threadIdx.x, in_cell = cell_size - 2;
    int n_cell = (N + in_cell -2)/in_cell;
    
    assert(N > 1);
    assert(cell_size <= MAX_BLOCK_WIDTH);
    assert(b_size == cell_size*cell_size);  // Here we only use square cells
    
    __shared__ double tmp_arr[MAX_BLOCK_WIDTH][MAX_BLOCK_WIDTH];  // Define a buffer in the shared memory of one block of threads
    int dX[8] = {0, 0, 1, -1, 1, -1, 1, -1};
    int dY[8] = {1, -1, 0, 0, 1, 1, -1, -1};
    
    // Compute indices in the cell and in the original matrix
    int local_i = t_id/cell_size, local_j = t_id%cell_size;
    int global_i = (b_id/n_cell)*in_cell + local_i, global_j = (b_id%n_cell)*in_cell + local_j;
    
    // Copy the old data into the buffer array, then synchronize threads
    if(global_i>=0 && global_i<=N && global_j>=0 && global_j<=N){
        tmp_arr[local_i][local_j] = old[global_i*(N+1) + global_j];
		// Maintain the Dirichlet Type Boundary Conditions.
		if(!global_i || !global_j || global_i==N || global_j==N) cur[global_i*(N+1)+global_j] = tmp_arr[local_i][local_j];
    }
    __syncthreads();
    
    // Compute the updated value and store it into *cur
    if(local_i && local_i<cell_size-1 && local_j && local_j<cell_size-1 && global_i && global_i<N && global_j && global_j<N){
        double nn_diff = 0.;
        for(int k=0;k<8;++k) nn_diff += tmp_arr[local_i+dX[k]][local_j+dY[k]];
        nn_diff -= 8.*tmp_arr[local_i][local_j];
        cur[global_i*(N+1) + global_j] = tmp_arr[local_i][local_j] + Diff*delta_t*nn_diff/3./pow(delta_x, 2.);
    }
    return;
}

__global__ void iterationWithOneBlock(int N,int N_step, int nx_thread, double *cur, double *tmp, double delta_x, double delta_t){
    // Run multiple steps of iterations with one block of threads
    int t_id = threadIdx.x, b_size = blockDim.x, t_width = (N-2+nx_thread)/nx_thread;
    assert(b_size == nx_thread*nx_thread);

	// Define neighbor vectors:
	int dX[8] = {0, 0, 1, -1, 1, -1, 1, -1};
	int dY[8] = {1, -1, 0, 0, 1, 1, -1, -1};
    int global_i = (t_id/nx_thread)*t_width, globel_j = (t_id%nx_thread)*t_width;
    for(int step=0;step<N_step;++step){
        for(int i=global_i;i<global_i+t_width;++i) for(int j=globel_j;j<globel_j+t_width;++j){
            if(i && i<N && j && j<N){
                double nn_sum = 0., coeff = Diff*delta_t/3./pow(delta_x, 2.);
                for(int k=0;k<8;++k) nn_sum += cur[(i+dX[k])*(N+1) + j+dY[k]];
                tmp[i*(N+1) + j] = (1.-8.*coeff)*cur[i*(N+1) + j] + coeff*nn_sum;
            }
        }
        __syncthreads();
        for(int i=global_i;i<global_i+t_width;++i) for(int j=globel_j;j<globel_j+t_width;++j){
            if(i && i<N && j && j<N) cur[i*(N+1) + j] = tmp[i*(N+1) + j];
        }
        __syncthreads();
    }
    return;
}

__global__ void cudaGetError(int N, double *ana, double *cur, double *e_sum){
    // Parallelly compute the error
    int index = blockIdx.x*blockDim.x + threadIdx.x;
    if(index < (N+1)*(N+1)) (*e_sum) += (ana[index] - cur[index])*(ana[index] - cur[index]);
    return;
}

class DiffEqnSolver{
    int n_grid, array_size, in_cell, cell_size, n_cell;
    int t_width, nx_thread;
    double d_x, **val, **ana, *cur, *old, *d_ana, *err_sum;
public:
    DiffEqnSolver(int N):n_grid(N){
        d_x = L/n_grid;
        array_size = (n_grid+1)*(n_grid+1);
        val = new double* [n_grid + 1];
        val[0] = new double [array_size];
        for(int i=1;i<=n_grid;++i) val[i] = val[i-1] + n_grid + 1;
        
        ana = new double* [n_grid + 1];
        ana[0] = new double [array_size];
        for(int i=1;i<=n_grid;++i) ana[i] = ana[i-1] + n_grid + 1;
        
        cudaMalloc((void **)&cur, array_size*sizeof(double));
        cudaMalloc((void **)&old, array_size*sizeof(double));
        cudaMalloc((void **)&d_ana, array_size*sizeof(double));
        cudaMalloc((void **)&err_sum, sizeof(double));
        
        // Setting the boundary conditions
        for(int i=0;i<=n_grid;++i){
            val[0][i] = left(i*d_x);
            val[n_grid][i] = right(i*d_x);
            val[i][0] = bottom(i*d_x);
            val[i][n_grid] = top(i*d_x);
        }
        
        // Get the analytical solution
        for(int i=0;i<=n_grid;++i) for(int j=0;j<=n_grid;++j) ana[i][j] = analytical(i*d_x, j*d_x);
    }
    void init(double init_val){
        for(int i=1;i<n_grid;++i) for(int j=1;j<n_grid;++j) val[i][j] = init_val;
    }
    
    // Compute errors (L2 norm)
    double getError(){
        double sum = 0.;
        for(int i=0;i<=n_grid;++i) for(int j=0;j<=n_grid;++j)
            sum += pow(val[i][j] - ana[i][j],2.);
        return sqrt(sum);
    }
    
    double getErrorUsingCuda(){
        double init_sum = 0.;
        cudaMemcpy(d_ana, ana[0], array_size*sizeof(double), cudaMemcpyHostToDevice);
        cudaMemcpy(cur, val[0], array_size*sizeof(double), cudaMemcpyHostToDevice);
        cudaMemcpy(err_sum, &init_sum, sizeof(double), cudaMemcpyHostToDevice);
        int b_sz = min(MAX_BLOCK_WIDTH * MAX_BLOCK_WIDTH, array_size);
        int n_blk = (array_size + b_sz - 1)/b_sz;
        cudaGetError<<<n_blk, b_sz>>>(n_grid, d_ana, cur, err_sum);
		cudaMemcpy(&init_sum, err_sum, sizeof(double), cudaMemcpyDeviceToHost);
        return sqrt(init_sum);
    }
    
    // Get grid size and block size
    void setUpGrid(int c_size){
        cell_size = c_size;
        assert(cell_size > 2 && cell_size <= MAX_BLOCK_WIDTH);
        in_cell = cell_size - 2;
        n_cell = (n_grid + in_cell - 2)/in_cell;
    }
    // One step of iteration with multiple blocks
    void oneStep(double d_t){
        cudaMemcpy(old, val[0], array_size*sizeof(double), cudaMemcpyHostToDevice);
        oneIteration<<<n_cell*n_cell, cell_size*cell_size>>>(n_grid, cell_size, cur, old, d_x, d_t);
        cudaMemcpy(val[0], cur, array_size*sizeof(double), cudaMemcpyDeviceToHost);
    }
    // Run multiple iterations with multiple blocks
    double runIterations(int N_step, double d_t){
        for(int t=0;t<N_step;++t) oneStep(d_t);
        return getError();
    }
    
    // Get block size if we use only one block of threads
    void setUpBlock(int nx_t){
        nx_thread = nx_t;
        assert(nx_thread > 0 && nx_thread <= MAX_BLOCK_WIDTH);
        t_width = (n_grid-2+nx_thread)/nx_thread;
    }
    // Run multiple iterations with only one block of threads
    double runWithOneBlock(int N_step, double d_t){
        cudaMemcpy(cur, val[0], array_size*sizeof(double), cudaMemcpyHostToDevice);
        iterationWithOneBlock<<<1, nx_thread*nx_thread>>>(n_grid, N_step, nx_thread, cur, old, d_x, d_t);
        cudaMemcpy(val[0], cur, array_size*sizeof(double), cudaMemcpyDeviceToHost);
        return getError();
    }

	void fileOutPut(string filename){
        FILE *fp = fopen(filename.c_str(), "w");
        if (fp == NULL) {
            fprintf(stderr, "Can't open output file %s!\n", filename.c_str());
            exit(1);
        }
        for(int i=0;i<=n_grid;++i) for(int j=0;j<=n_grid;++j){
            fprintf(fp, "%lf %lf %lf\n", i*d_x, j*d_x, val[i][j]);
        }
        fclose(fp);
    }
    
    ~DiffEqnSolver(){
        delete [] val[0];
        delete [] val;
        delete [] ana[0];
        delete [] ana;
        cudaFree(cur);
        cudaFree(old);
        cudaFree(d_ana);
        cudaFree(err_sum);
    }
};

int main(int argc, char *argv[]){
    int block_width = 16;
    if(argc > 1) block_width = stoi(argv[1]);
    int nL = (int)L;
    DiffEqnSolver solver(nL);
    solver.init(1.);
    int n_batch = 21, n_step = 1000;
    double dt = 0.5;
    cout<<setprecision(3);
    cout<<"Start running iterations:"<<endl;
    clock_t start_time = clock(), end_time;
    solver.setUpGrid(block_width);
    for(int i=1;i<=n_batch;++i){
        if(false){
            string filename = "data"+to_string(i/4);
            solver.fileOutPut(filename);
        }
        cout<<"Iteration: "<<i<<"\t error:"<<solver.runIterations(n_step, dt)<<endl;
    }
    //solver.setUpBlock(block_width);
    //for(int i=1;i<=n_batch;++i) cout<<"Iteration: "<<i<<"\t error:"<<solver.runWithOneBlock(n_step, dt)<<endl;
    end_time = clock();
    cout<<"End running iterations!"<<endl<<endl;
    cout<<"Time spent during iterations: "<<double(end_time-start_time)/CLOCKS_PER_SEC<<"s\n\n\n";
	cout<<"================================================================================"<<endl;
    return 0;
}

	.file	"tmpxft_0033cb47_00000000-6_cuda_diff_modi.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB10848:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE10848:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.text._ZN13DiffEqnSolverC2Ei,"axG",@progbits,_ZN13DiffEqnSolverC5Ei,comdat
	.align 2
	.weak	_ZN13DiffEqnSolverC2Ei
	.type	_ZN13DiffEqnSolverC2Ei, @function
_ZN13DiffEqnSolverC2Ei:
.LFB10831:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	cvtsi2sdl	%esi, %xmm1
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movabsq	$1152921504606846975, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movsd	.LC0(%rip), %xmm0
	movl	%esi, (%rdi)
	incl	%esi
	movl	%esi, %eax
	divsd	%xmm1, %xmm0
	imull	%esi, %eax
	movslq	%esi, %rsi
	movl	%eax, 4(%rdi)
	movsd	%xmm0, 32(%rdi)
	cmpq	%rsi, %r12
	jb	.L3
	movq	%rdi, %rbx
	leaq	0(,%rsi,8), %rdi
	call	_Znam@PLT
	movslq	4(%rbx), %rdi
	movq	%rax, 40(%rbx)
	movq	%rax, %rbp
	cmpq	%rdi, %r12
	jnb	.L4
.L3:
	call	__cxa_throw_bad_array_new_length@PLT
.L4:
	salq	$3, %rdi
	call	_Znam@PLT
	xorl	%edx, %edx
	movl	$1, %ecx
	movq	%rax, 0(%rbp)
	movslq	(%rbx), %rax
	movq	%rax, %rsi
	incq	%rax
	leaq	0(,%rax,8), %rdi
.L5:
	leaq	8(%rdx), %r9
	cmpl	%ecx, %esi
	jl	.L17
	movq	40(%rbx), %r8
	incl	%ecx
	movq	(%r8,%rdx), %r10
	addq	%rdi, %r10
	movq	%r10, 8(%r8,%rdx)
	movq	%r9, %rdx
	jmp	.L5
.L17:
	movabsq	$1152921504606846975, %r12
	cmpq	%rax, %r12
	jb	.L3
	call	_Znam@PLT
	movslq	4(%rbx), %rdi
	movq	%rax, 48(%rbx)
	movq	%rax, %rbp
	cmpq	%rdi, %r12
	jb	.L3
	salq	$3, %rdi
	call	_Znam@PLT
	movl	$1, %edx
	movq	%rax, 0(%rbp)
	movslq	(%rbx), %rax
	movq	%rax, %rcx
	leaq	8(,%rax,8), %r8
	xorl	%eax, %eax
.L7:
	leaq	8(%rax), %rdi
	cmpl	%edx, %ecx
	jl	.L18
	movq	48(%rbx), %rsi
	incl	%edx
	movq	(%rsi,%rax), %r9
	addq	%r8, %r9
	movq	%r9, 8(%rsi,%rax)
	movq	%rdi, %rax
	jmp	.L7
.L18:
	movslq	4(%rbx), %rsi
	leaq	56(%rbx), %rdi
	xorl	%r12d, %r12d
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movslq	4(%rbx), %rsi
	leaq	64(%rbx), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movslq	4(%rbx), %rsi
	leaq	72(%rbx), %rdi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	leaq	80(%rbx), %rdi
	movl	$8, %esi
	call	cudaMalloc@PLT
	movslq	(%rbx), %r13
	movq	%r13, %rbp
	salq	$3, %r13
.L9:
	cmpl	%r12d, %ebp
	jl	.L19
	movq	40(%rbx), %rax
	cvtsi2sdl	%r12d, %xmm0
	movq	(%rax), %rdx
	movq	(%rax,%r12,8), %r14
	movq	$0x000000000, (%rdx,%r12,8)
	movq	(%rax,%r13), %rdx
	movq	$0x000000000, (%rdx,%r12,8)
	incq	%r12
	movq	$0x000000000, (%r14)
	mulsd	32(%rbx), %xmm0
	mulsd	.LC2(%rip), %xmm0
	divsd	.LC0(%rip), %xmm0
	call	sin@PLT
	mulsd	.LC3(%rip), %xmm0
	movsd	%xmm0, (%r14,%r13)
	jmp	.L9
.L19:
	xorl	%r13d, %r13d
.L11:
	movl	%r13d, %r12d
	cmpl	%r13d, %ebp
	jl	.L20
	leaq	0(,%r13,8), %rax
	xorl	%r14d, %r14d
.L12:
	cvtsi2sdl	%r14d, %xmm0
	movsd	32(%rbx), %xmm1
	movq	48(%rbx), %rdx
	movq	%rax, 24(%rsp)
	movq	(%rdx,%rax), %rdx
	movsd	%xmm1, 16(%rsp)
	mulsd	%xmm1, %xmm0
	leaq	(%rdx,%r14,8), %r15
	incq	%r14
	mulsd	.LC2(%rip), %xmm0
	divsd	.LC0(%rip), %xmm0
	call	sinh@PLT
	movsd	16(%rsp), %xmm1
	movsd	%xmm0, 8(%rsp)
	cvtsi2sdl	%r12d, %xmm0
	mulsd	%xmm1, %xmm0
	mulsd	.LC2(%rip), %xmm0
	divsd	.LC0(%rip), %xmm0
	call	sin@PLT
	cmpl	%r14d, %ebp
	movq	24(%rsp), %rax
	mulsd	8(%rsp), %xmm0
	movsd	%xmm0, (%r15)
	jge	.L12
	incq	%r13
	jmp	.L11
.L20:
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE10831:
	.size	_ZN13DiffEqnSolverC2Ei, .-_ZN13DiffEqnSolverC2Ei
	.weak	_ZN13DiffEqnSolverC1Ei
	.set	_ZN13DiffEqnSolverC1Ei,_ZN13DiffEqnSolverC2Ei
	.section	.text._ZN13DiffEqnSolverD2Ev,"axG",@progbits,_ZN13DiffEqnSolverD5Ev,comdat
	.align 2
	.weak	_ZN13DiffEqnSolverD2Ev
	.type	_ZN13DiffEqnSolverD2Ev, @function
_ZN13DiffEqnSolverD2Ev:
.LFB10843:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA10843
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	40(%rdi), %rax
	movq	%rdi, %rbx
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	.L22
	call	_ZdaPv@PLT
.L22:
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	.L23
	call	_ZdaPv@PLT
.L23:
	movq	48(%rbx), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	.L24
	call	_ZdaPv@PLT
.L24:
	movq	48(%rbx), %rdi
	testq	%rdi, %rdi
	je	.L25
	call	_ZdaPv@PLT
.L25:
	movq	56(%rbx), %rdi
	call	cudaFree@PLT
	movq	64(%rbx), %rdi
	call	cudaFree@PLT
	movq	72(%rbx), %rdi
	call	cudaFree@PLT
	movq	80(%rbx), %rdi
	call	cudaFree@PLT
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE10843:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table._ZN13DiffEqnSolverD2Ev,"aG",@progbits,_ZN13DiffEqnSolverD5Ev,comdat
.LLSDA10843:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE10843-.LLSDACSB10843
.LLSDACSB10843:
.LLSDACSE10843:
	.section	.text._ZN13DiffEqnSolverD2Ev,"axG",@progbits,_ZN13DiffEqnSolverD5Ev,comdat
	.size	_ZN13DiffEqnSolverD2Ev, .-_ZN13DiffEqnSolverD2Ev
	.weak	_ZN13DiffEqnSolverD1Ev
	.set	_ZN13DiffEqnSolverD1Ev,_ZN13DiffEqnSolverD2Ev
	.text
	.globl	_Z38__device_stub__Z12oneIterationiiPdS_ddiiPdS_dd
	.type	_Z38__device_stub__Z12oneIterationiiPdS_ddiiPdS_dd, @function
_Z38__device_stub__Z12oneIterationiiPdS_ddiiPdS_dd:
.LFB10870:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movl	%edi, 44(%rsp)
	leaq	72(%rsp), %rdi
	movl	%esi, 40(%rsp)
	leaq	84(%rsp), %rsi
	movq	%rdx, 32(%rsp)
	leaq	56(%rsp), %rdx
	movq	%rcx, 24(%rsp)
	leaq	64(%rsp), %rcx
	movsd	%xmm0, 16(%rsp)
	movsd	%xmm1, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rax
	movl	$1, 80(%rsp)
	movq	%rax, 120(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 72(%rsp)
	movq	%rax, 84(%rsp)
	movl	$1, 92(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L39
	pushq	64(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z12oneIterationiiPdS_dd(%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
.L39:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE10870:
	.size	_Z38__device_stub__Z12oneIterationiiPdS_ddiiPdS_dd, .-_Z38__device_stub__Z12oneIterationiiPdS_ddiiPdS_dd
	.globl	_Z12oneIterationiiPdS_dd
	.type	_Z12oneIterationiiPdS_dd, @function
_Z12oneIterationiiPdS_dd:
.LFB10871:
	.cfi_startproc
	endbr64
	jmp	_Z38__device_stub__Z12oneIterationiiPdS_ddiiPdS_dd
	.cfi_endproc
.LFE10871:
	.size	_Z12oneIterationiiPdS_dd, .-_Z12oneIterationiiPdS_dd
	.globl	_Z48__device_stub__Z21iterationWithOneBlockiiiPdS_ddiiiPdS_dd
	.type	_Z48__device_stub__Z21iterationWithOneBlockiiiPdS_ddiiiPdS_dd, @function
_Z48__device_stub__Z21iterationWithOneBlockiiiPdS_ddiiiPdS_dd:
.LFB10872:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movl	%edi, 44(%rsp)
	leaq	64(%rsp), %rdi
	movl	%esi, 40(%rsp)
	leaq	76(%rsp), %rsi
	movl	%edx, 36(%rsp)
	leaq	48(%rsp), %rdx
	movq	%rcx, 24(%rsp)
	leaq	56(%rsp), %rcx
	movq	%r8, 16(%rsp)
	movsd	%xmm0, 8(%rsp)
	movsd	%xmm1, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rax
	movl	$1, 72(%rsp)
	movq	%rax, 112(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	36(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 152(%rsp)
	movq	%rsp, %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 64(%rsp)
	movq	%rax, 76(%rsp)
	movl	$1, 84(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L44
	pushq	56(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z21iterationWithOneBlockiiiPdS_dd(%rip), %rdi
	pushq	56(%rsp)
	.cfi_def_cfa_offset 208
	movq	92(%rsp), %rcx
	movl	100(%rsp), %r8d
	movq	80(%rsp), %rsi
	movl	88(%rsp), %edx
	leaq	128(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L44:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L46
	call	__stack_chk_fail@PLT
.L46:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE10872:
	.size	_Z48__device_stub__Z21iterationWithOneBlockiiiPdS_ddiiiPdS_dd, .-_Z48__device_stub__Z21iterationWithOneBlockiiiPdS_ddiiiPdS_dd
	.globl	_Z21iterationWithOneBlockiiiPdS_dd
	.type	_Z21iterationWithOneBlockiiiPdS_dd, @function
_Z21iterationWithOneBlockiiiPdS_dd:
.LFB10873:
	.cfi_startproc
	endbr64
	jmp	_Z48__device_stub__Z21iterationWithOneBlockiiiPdS_ddiiiPdS_dd
	.cfi_endproc
.LFE10873:
	.size	_Z21iterationWithOneBlockiiiPdS_dd, .-_Z21iterationWithOneBlockiiiPdS_dd
	.globl	_Z37__device_stub__Z12cudaGetErroriPdS_S_iPdS_S_
	.type	_Z37__device_stub__Z12cudaGetErroriPdS_S_iPdS_S_, @function
_Z37__device_stub__Z12cudaGetErroriPdS_S_iPdS_S_:
.LFB10874:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movl	%edi, 28(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	40(%rsp), %rdx
	movq	%rcx, (%rsp)
	leaq	48(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 120(%rsp)
	movq	%rsp, %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L49
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z12cudaGetErroriPdS_S_(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 176
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	120(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L49:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L51
	call	__stack_chk_fail@PLT
.L51:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE10874:
	.size	_Z37__device_stub__Z12cudaGetErroriPdS_S_iPdS_S_, .-_Z37__device_stub__Z12cudaGetErroriPdS_S_iPdS_S_
	.globl	_Z12cudaGetErroriPdS_S_
	.type	_Z12cudaGetErroriPdS_S_, @function
_Z12cudaGetErroriPdS_S_:
.LFB10875:
	.cfi_startproc
	endbr64
	jmp	_Z37__device_stub__Z12cudaGetErroriPdS_S_iPdS_S_
	.cfi_endproc
.LFE10875:
	.size	_Z12cudaGetErroriPdS_S_, .-_Z12cudaGetErroriPdS_S_
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC4:
	.string	"_Z12cudaGetErroriPdS_S_"
.LC5:
	.string	"_Z21iterationWithOneBlockiiiPdS_dd"
.LC6:
	.string	"_Z12oneIterationiiPdS_dd"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB10877:
	.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	.LC4(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z12cudaGetErroriPdS_S_(%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	.LC5(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z21iterationWithOneBlockiiiPdS_dd(%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	_Z12oneIterationiiPdS_dd(%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
.LFE10877:
	.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:
.LFB10956:
	.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	.L56
	movl	(%rbx), %edx
	movl	%edx, (%rax)
.L56:
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE10956:
	.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
.LC7:
	.string	"basic_string: construction from null is not valid"
.LC8:
	.string	"stoi"
.LC10:
	.string	"Start running iterations:"
.LC11:
	.string	"Iteration: "
.LC12:
	.string	"\t error:"
.LC14:
	.string	"End running iterations!"
.LC15:
	.string	"Time spent during iterations: "
.LC17:
	.string	"s\n\n\n"
.LC18:
	.string	"================================================================================"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB10845:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA10845
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$184, %rsp
	.cfi_def_cfa_offset 240
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rax
	decl	%edi
	movq	%rax, 8(%rsp)
	jle	.L83
	movq	8(%rsi), %rbx
	leaq	152(%rsp), %rax
	leaq	136(%rsp), %r12
	movq	%rax, 136(%rsp)
	testq	%rbx, %rbx
	jne	.L61
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L90
	leaq	.LC7(%rip), %rdi
.LEHB0:
	call	_ZSt19__throw_logic_errorPKc@PLT
.L61:
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rax, 48(%rsp)
	leaq	(%rbx,%rax), %rbp
	cmpq	$15, %rax
	jbe	.L63
	movq	8(%rsp), %rsi
	xorl	%edx, %edx
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm@PLT
.LEHE0:
	movq	%rax, 136(%rsp)
	movq	48(%rsp), %rax
	movq	%rax, 152(%rsp)
.L63:
	movq	136(%rsp), %rdi
	movq	%rbx, %rsi
	movq	%rbp, %rdx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcPKcS7_@PLT
	movq	48(%rsp), %rax
	movq	136(%rsp), %rdx
	movq	%rax, 144(%rsp)
	movb	$0, (%rdx,%rax)
	movq	136(%rsp), %r13
	call	__errno_location@PLT
	movq	8(%rsp), %rsi
	movq	%r13, %rdi
	movl	$10, %edx
	movq	%rax, %rbx
	movl	(%rax), %eax
	movl	%eax, 36(%rsp)
	xorl	%eax, %eax
	movl	%eax, (%rbx)
	call	__isoc23_strtol@PLT
	cmpq	48(%rsp), %r13
	leaq	36(%rsp), %r13
	movq	%rax, %rcx
	jne	.L64
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L90
	leaq	.LC8(%rip), %rdi
.LEHB1:
	call	_ZSt24__throw_invalid_argumentPKc@PLT
.L64:
	cmpl	$34, (%rbx)
	je	.L66
	movl	$2147483648, %eax
	movl	$4294967295, %edx
	addq	%rcx, %rax
	cmpq	%rax, %rdx
	jnb	.L67
.L66:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L90
	leaq	.LC8(%rip), %rdi
	call	_ZSt20__throw_out_of_rangePKc@PLT
.LEHE1:
.L67:
	movq	%r13, %rdi
	movl	%ecx, %ebp
	call	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L60
.L85:
	endbr64
	movq	%rax, %rbx
.L69:
	movq	%r13, %rdi
	call	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L93
.L83:
	movl	$16, %ebp
.L60:
	movq	8(%rsp), %rdi
	movl	$550, %esi
.LEHB2:
	call	_ZN13DiffEqnSolverC1Ei
.LEHE2:
	movl	48(%rsp), %ecx
	movq	88(%rsp), %rsi
	movl	$1, %eax
	movsd	.LC9(%rip), %xmm0
.L71:
	cmpl	%eax, %ecx
	jle	.L94
	movq	(%rsi,%rax,8), %rdi
	movl	$1, %edx
.L72:
	movsd	%xmm0, (%rdi,%rdx,8)
	incq	%rdx
	cmpl	%edx, %ecx
	jg	.L72
	incq	%rax
	jmp	.L71
.L94:
	movq	_ZSt4cout(%rip), %rax
	leaq	_ZSt4cout(%rip), %rbx
	leaq	.LC10(%rip), %rsi
	movq	%rbx, %rdi
	movq	-24(%rax), %rax
	movq	$3, 8(%rbx,%rax)
.LEHB3:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	call	clock@PLT
	leal	-2(%rbp), %ecx
	movl	%ebp, 60(%rsp)
	movl	$1, %ebp
	movq	%rax, %r12
	movl	48(%rsp), %eax
	movl	%ecx, 56(%rsp)
	addl	%ecx, %eax
	subl	$2, %eax
	cltd
	idivl	%ecx
	movl	%eax, 64(%rsp)
.L79:
	leaq	.LC11(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%ebp, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC12(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %r13
	movl	$1000, %r14d
	movabsq	$4294967297, %r15
.L75:
	movq	88(%rsp), %rax
	movslq	52(%rsp), %rdx
	movl	$1, %ecx
	movq	112(%rsp), %rdi
	movq	(%rax), %rsi
	salq	$3, %rdx
	call	cudaMemcpy@PLT
	movl	60(%rsp), %eax
	movq	%r15, 40(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%r15, 28(%rsp)
	movl	44(%rsp), %ecx
	imull	%eax, %eax
	movl	32(%rsp), %esi
	movl	%eax, 36(%rsp)
	movl	64(%rsp), %eax
	movq	36(%rsp), %rdx
	imull	%eax, %eax
	movl	%eax, 24(%rsp)
	movq	24(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	movq	104(%rsp), %rdx
	testl	%eax, %eax
	jne	.L74
	movsd	.LC13(%rip), %xmm1
	movsd	80(%rsp), %xmm0
	movq	112(%rsp), %rcx
	movl	60(%rsp), %esi
	movl	48(%rsp), %edi
	call	_Z38__device_stub__Z12oneIterationiiPdS_ddiiPdS_dd
.L74:
	movq	88(%rsp), %rax
	movslq	52(%rsp), %rdx
	movl	$2, %ecx
	movq	104(%rsp), %rsi
	movq	(%rax), %rdi
	salq	$3, %rdx
	call	cudaMemcpy@PLT
	decl	%r14d
	jne	.L75
	movl	48(%rsp), %ecx
	movq	88(%rsp), %r9
	xorl	%edx, %edx
	xorps	%xmm1, %xmm1
	movq	96(%rsp), %rdi
.L76:
	cmpl	%edx, %ecx
	jl	.L78
	movq	(%r9,%rdx,8), %r8
	movq	(%rdi,%rdx,8), %rsi
	xorl	%eax, %eax
.L77:
	movsd	(%r8,%rax,8), %xmm0
	subsd	(%rsi,%rax,8), %xmm0
	incq	%rax
	mulsd	%xmm0, %xmm0
	addsd	%xmm0, %xmm1
	cmpl	%eax, %ecx
	jge	.L77
	incq	%rdx
	jmp	.L76
.L78:
	movaps	%xmm1, %xmm0
	call	sqrt@PLT
	movq	%r13, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	incl	%ebp
	cmpl	$22, %ebp
	jne	.L79
	call	clock@PLT
	leaq	.LC14(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rbp
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC15(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	subq	%r12, %rbp
	movq	%rax, %rdi
	cvtsi2sdq	%rbp, %xmm0
	divsd	.LC16(%rip), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC17(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC18(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
.LEHE3:
	movq	8(%rsp), %rdi
	call	_ZN13DiffEqnSolverD1Ev
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L82
	jmp	.L90
.L84:
	endbr64
	movq	%rax, %rbx
.L80:
	movq	8(%rsp), %rdi
	call	_ZN13DiffEqnSolverD1Ev
.L93:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L90
	movq	%rbx, %rdi
.LEHB4:
	call	_Unwind_Resume@PLT
.LEHE4:
.L90:
	call	__stack_chk_fail@PLT
.L82:
	addq	$184, %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
.LFE10845:
	.section	.gcc_except_table,"a",@progbits
.LLSDA10845:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE10845-.LLSDACSB10845
.LLSDACSB10845:
	.uleb128 .LEHB0-.LFB10845
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB10845
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L85-.LFB10845
	.uleb128 0
	.uleb128 .LEHB2-.LFB10845
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB3-.LFB10845
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L84-.LFB10845
	.uleb128 0
	.uleb128 .LEHB4-.LFB10845
	.uleb128 .LEHE4-.LEHB4
	.uleb128 0
	.uleb128 0
.LLSDACSE10845:
	.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
.LC0:
	.long	0
	.long	1082208256
	.align 8
.LC2:
	.long	1413754136
	.long	1074340347
	.align 8
.LC3:
	.long	1567811185
	.long	1076304116
	.align 8
.LC9:
	.long	0
	.long	1072693248
	.align 8
.LC13:
	.long	0
	.long	1071644672
	.align 8
.LC16:
	.long	0
	.long	1093567616
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:


#include <hip/hip_runtime.h>
#include<bits/stdc++.h>
using namespace std;

const double pi = 3.14159265358979323846264;
const double L = 550;
const double Diff = 1.;
const int MAX_BLOCK_WIDTH = 32;

// In this method, we use squre cells of threads, but we need to specify the size of the square.

/*
  |   coordinate system:
 -|---------------y
  |   x = i * d_x
  |   y = i * d_x
  |
  x
 */

inline double left(double y) { return 0; }
inline double right(double y) { return 0; }
inline double bottom(double x) { return 0; }
inline double top(double x){ return sinh(pi)*sin(x*pi/L); }
inline double analytical(double x,double y){
    return sinh(y*pi/L)*sin(x*pi/L);
}

__global__ void oneIteration(int N, int cell_size, double *cur, double *old, double delta_x,double delta_t){
    // Run one step of iteration with multiple blocks of threads
    int b_size = blockDim.x, b_id = blockIdx.x, t_id = threadIdx.x, in_cell = cell_size - 2;
    int n_cell = (N + in_cell -2)/in_cell;
    
    assert(N > 1);
    assert(cell_size <= MAX_BLOCK_WIDTH);
    assert(b_size == cell_size*cell_size);  // Here we only use square cells
    
    __shared__ double tmp_arr[MAX_BLOCK_WIDTH][MAX_BLOCK_WIDTH];  // Define a buffer in the shared memory of one block of threads
    int dX[8] = {0, 0, 1, -1, 1, -1, 1, -1};
    int dY[8] = {1, -1, 0, 0, 1, 1, -1, -1};
    
    // Compute indices in the cell and in the original matrix
    int local_i = t_id/cell_size, local_j = t_id%cell_size;
    int global_i = (b_id/n_cell)*in_cell + local_i, global_j = (b_id%n_cell)*in_cell + local_j;
    
    // Copy the old data into the buffer array, then synchronize threads
    if(global_i>=0 && global_i<=N && global_j>=0 && global_j<=N){
        tmp_arr[local_i][local_j] = old[global_i*(N+1) + global_j];
		// Maintain the Dirichlet Type Boundary Conditions.
		if(!global_i || !global_j || global_i==N || global_j==N) cur[global_i*(N+1)+global_j] = tmp_arr[local_i][local_j];
    }
    __syncthreads();
    
    // Compute the updated value and store it into *cur
    if(local_i && local_i<cell_size-1 && local_j && local_j<cell_size-1 && global_i && global_i<N && global_j && global_j<N){
        double nn_diff = 0.;
        for(int k=0;k<8;++k) nn_diff += tmp_arr[local_i+dX[k]][local_j+dY[k]];
        nn_diff -= 8.*tmp_arr[local_i][local_j];
        cur[global_i*(N+1) + global_j] = tmp_arr[local_i][local_j] + Diff*delta_t*nn_diff/3./pow(delta_x, 2.);
    }
    return;
}

__global__ void iterationWithOneBlock(int N,int N_step, int nx_thread, double *cur, double *tmp, double delta_x, double delta_t){
    // Run multiple steps of iterations with one block of threads
    int t_id = threadIdx.x, b_size = blockDim.x, t_width = (N-2+nx_thread)/nx_thread;
    assert(b_size == nx_thread*nx_thread);

	// Define neighbor vectors:
	int dX[8] = {0, 0, 1, -1, 1, -1, 1, -1};
	int dY[8] = {1, -1, 0, 0, 1, 1, -1, -1};
    int global_i = (t_id/nx_thread)*t_width, globel_j = (t_id%nx_thread)*t_width;
    for(int step=0;step<N_step;++step){
        for(int i=global_i;i<global_i+t_width;++i) for(int j=globel_j;j<globel_j+t_width;++j){
            if(i && i<N && j && j<N){
                double nn_sum = 0., coeff = Diff*delta_t/3./pow(delta_x, 2.);
                for(int k=0;k<8;++k) nn_sum += cur[(i+dX[k])*(N+1) + j+dY[k]];
                tmp[i*(N+1) + j] = (1.-8.*coeff)*cur[i*(N+1) + j] + coeff*nn_sum;
            }
        }
        __syncthreads();
        for(int i=global_i;i<global_i+t_width;++i) for(int j=globel_j;j<globel_j+t_width;++j){
            if(i && i<N && j && j<N) cur[i*(N+1) + j] = tmp[i*(N+1) + j];
        }
        __syncthreads();
    }
    return;
}

__global__ void cudaGetError(int N, double *ana, double *cur, double *e_sum){
    // Parallelly compute the error
    int index = blockIdx.x*blockDim.x + threadIdx.x;
    if(index < (N+1)*(N+1)) (*e_sum) += (ana[index] - cur[index])*(ana[index] - cur[index]);
    return;
}

class DiffEqnSolver{
    int n_grid, array_size, in_cell, cell_size, n_cell;
    int t_width, nx_thread;
    double d_x, **val, **ana, *cur, *old, *d_ana, *err_sum;
public:
    DiffEqnSolver(int N):n_grid(N){
        d_x = L/n_grid;
        array_size = (n_grid+1)*(n_grid+1);
        val = new double* [n_grid + 1];
        val[0] = new double [array_size];
        for(int i=1;i<=n_grid;++i) val[i] = val[i-1] + n_grid + 1;
        
        ana = new double* [n_grid + 1];
        ana[0] = new double [array_size];
        for(int i=1;i<=n_grid;++i) ana[i] = ana[i-1] + n_grid + 1;
        
        hipMalloc((void **)&cur, array_size*sizeof(double));
        hipMalloc((void **)&old, array_size*sizeof(double));
        hipMalloc((void **)&d_ana, array_size*sizeof(double));
        hipMalloc((void **)&err_sum, sizeof(double));
        
        // Setting the boundary conditions
        for(int i=0;i<=n_grid;++i){
            val[0][i] = left(i*d_x);
            val[n_grid][i] = right(i*d_x);
            val[i][0] = bottom(i*d_x);
            val[i][n_grid] = top(i*d_x);
        }
        
        // Get the analytical solution
        for(int i=0;i<=n_grid;++i) for(int j=0;j<=n_grid;++j) ana[i][j] = analytical(i*d_x, j*d_x);
    }
    void init(double init_val){
        for(int i=1;i<n_grid;++i) for(int j=1;j<n_grid;++j) val[i][j] = init_val;
    }
    
    // Compute errors (L2 norm)
    double getError(){
        double sum = 0.;
        for(int i=0;i<=n_grid;++i) for(int j=0;j<=n_grid;++j)
            sum += pow(val[i][j] - ana[i][j],2.);
        return sqrt(sum);
    }
    
    double getErrorUsingCuda(){
        double init_sum = 0.;
        hipMemcpy(d_ana, ana[0], array_size*sizeof(double), hipMemcpyHostToDevice);
        hipMemcpy(cur, val[0], array_size*sizeof(double), hipMemcpyHostToDevice);
        hipMemcpy(err_sum, &init_sum, sizeof(double), hipMemcpyHostToDevice);
        int b_sz = min(MAX_BLOCK_WIDTH * MAX_BLOCK_WIDTH, array_size);
        int n_blk = (array_size + b_sz - 1)/b_sz;
        cudaGetError<<<n_blk, b_sz>>>(n_grid, d_ana, cur, err_sum);
		hipMemcpy(&init_sum, err_sum, sizeof(double), hipMemcpyDeviceToHost);
        return sqrt(init_sum);
    }
    
    // Get grid size and block size
    void setUpGrid(int c_size){
        cell_size = c_size;
        assert(cell_size > 2 && cell_size <= MAX_BLOCK_WIDTH);
        in_cell = cell_size - 2;
        n_cell = (n_grid + in_cell - 2)/in_cell;
    }
    // One step of iteration with multiple blocks
    void oneStep(double d_t){
        hipMemcpy(old, val[0], array_size*sizeof(double), hipMemcpyHostToDevice);
        oneIteration<<<n_cell*n_cell, cell_size*cell_size>>>(n_grid, cell_size, cur, old, d_x, d_t);
        hipMemcpy(val[0], cur, array_size*sizeof(double), hipMemcpyDeviceToHost);
    }
    // Run multiple iterations with multiple blocks
    double runIterations(int N_step, double d_t){
        for(int t=0;t<N_step;++t) oneStep(d_t);
        return getError();
    }
    
    // Get block size if we use only one block of threads
    void setUpBlock(int nx_t){
        nx_thread = nx_t;
        assert(nx_thread > 0 && nx_thread <= MAX_BLOCK_WIDTH);
        t_width = (n_grid-2+nx_thread)/nx_thread;
    }
    // Run multiple iterations with only one block of threads
    double runWithOneBlock(int N_step, double d_t){
        hipMemcpy(cur, val[0], array_size*sizeof(double), hipMemcpyHostToDevice);
        iterationWithOneBlock<<<1, nx_thread*nx_thread>>>(n_grid, N_step, nx_thread, cur, old, d_x, d_t);
        hipMemcpy(val[0], cur, array_size*sizeof(double), hipMemcpyDeviceToHost);
        return getError();
    }

	void fileOutPut(string filename){
        FILE *fp = fopen(filename.c_str(), "w");
        if (fp == NULL) {
            fprintf(stderr, "Can't open output file %s!\n", filename.c_str());
            exit(1);
        }
        for(int i=0;i<=n_grid;++i) for(int j=0;j<=n_grid;++j){
            fprintf(fp, "%lf %lf %lf\n", i*d_x, j*d_x, val[i][j]);
        }
        fclose(fp);
    }
    
    ~DiffEqnSolver(){
        delete [] val[0];
        delete [] val;
        delete [] ana[0];
        delete [] ana;
        hipFree(cur);
        hipFree(old);
        hipFree(d_ana);
        hipFree(err_sum);
    }
};

int main(int argc, char *argv[]){
    int block_width = 16;
    if(argc > 1) block_width = stoi(argv[1]);
    int nL = (int)L;
    DiffEqnSolver solver(nL);
    solver.init(1.);
    int n_batch = 21, n_step = 1000;
    double dt = 0.5;
    cout<<setprecision(3);
    cout<<"Start running iterations:"<<endl;
    clock_t start_time = clock(), end_time;
    solver.setUpGrid(block_width);
    for(int i=1;i<=n_batch;++i){
        if(false){
            string filename = "data"+to_string(i/4);
            solver.fileOutPut(filename);
        }
        cout<<"Iteration: "<<i<<"\t error:"<<solver.runIterations(n_step, dt)<<endl;
    }
    //solver.setUpBlock(block_width);
    //for(int i=1;i<=n_batch;++i) cout<<"Iteration: "<<i<<"\t error:"<<solver.runWithOneBlock(n_step, dt)<<endl;
    end_time = clock();
    cout<<"End running iterations!"<<endl<<endl;
    cout<<"Time spent during iterations: "<<double(end_time-start_time)/CLOCKS_PER_SEC<<"s\n\n\n";
	cout<<"================================================================================"<<endl;
    return 0;
}

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

                                        # End of file scope inline assembly
	.globl	_Z27__device_stub__oneIterationiiPdS_dd # -- Begin function _Z27__device_stub__oneIterationiiPdS_dd
	.type	_Z27__device_stub__oneIterationiiPdS_dd,@function
_Z27__device_stub__oneIterationiiPdS_dd: # @_Z27__device_stub__oneIterationiiPdS_dd
	.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	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	8(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	56(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	48(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	40(%rsp), %rcx
	movsd	%xmm0, (%rcx)
	leaq	32(%rsp), %r8
	movsd	%xmm1, (%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	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	$_Z12oneIterationiiPdS_dd, %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	_Z27__device_stub__oneIterationiiPdS_dd, .Lfunc_end0-_Z27__device_stub__oneIterationiiPdS_dd
	.cfi_endproc
                                        # -- End function
	.globl	_Z36__device_stub__iterationWithOneBlockiiiPdS_dd # -- Begin function _Z36__device_stub__iterationWithOneBlockiiiPdS_dd
	.type	_Z36__device_stub__iterationWithOneBlockiiiPdS_dd,@function
_Z36__device_stub__iterationWithOneBlockiiiPdS_dd: # @_Z36__device_stub__iterationWithOneBlockiiiPdS_dd
	.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	$160, %rsp
	.cfi_def_cfa_offset 208
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	8(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	4(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	56(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	48(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	40(%rsp), %r8
	movsd	%xmm0, (%r8)
	leaq	32(%rsp), %r9
	movsd	%xmm1, (%r9)
	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)
	movq	%r9, 48(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%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	$_Z21iterationWithOneBlockiiiPdS_dd, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$176, %rsp
	.cfi_adjust_cfa_offset -176
	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	_Z36__device_stub__iterationWithOneBlockiiiPdS_dd, .Lfunc_end1-_Z36__device_stub__iterationWithOneBlockiiiPdS_dd
	.cfi_endproc
                                        # -- End function
	.globl	_Z27__device_stub__cudaGetErroriPdS_S_ # -- Begin function _Z27__device_stub__cudaGetErroriPdS_S_
	.type	_Z27__device_stub__cudaGetErroriPdS_S_,@function
_Z27__device_stub__cudaGetErroriPdS_S_: # @_Z27__device_stub__cudaGetErroriPdS_S_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	4(%rsp), %rax
	movl	%edi, (%rax)
	leaq	40(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	32(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	24(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	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	$_Z12cudaGetErroriPdS_S_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_Z27__device_stub__cudaGetErroriPdS_S_, .Lfunc_end2-_Z27__device_stub__cudaGetErroriPdS_S_
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI3_0:
	.quad	0x3fe0000000000000              # double 0.5
.LCPI3_1:
	.quad	0x412e848000000000              # double 1.0E+6
	.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	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	$16, %r14d
	cmpl	$2, %edi
	jl	.LBB3_17
# %bb.1:
	movq	8(%rsi), %rsi
.Ltmp0:
	leaq	24(%rsp), %rdi
	leaq	15(%rsp), %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
.Ltmp1:
# %bb.2:
	movq	24(%rsp), %r15
	callq	__errno_location
	movq	%rax, %rbx
	movl	(%rax), %ebp
	movl	$0, (%rax)
	leaq	16(%rsp), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$10, %edx
	callq	__isoc23_strtol
	cmpq	%r15, (%r12)
	je	.LBB3_3
# %bb.9:
	movq	%rax, %r14
	movslq	%r14d, %rax
	cmpq	%r14, %rax
	jne	.LBB3_11
# %bb.10:
	movl	(%rbx), %eax
	cmpl	$34, %eax
	je	.LBB3_11
# %bb.13:
	testl	%eax, %eax
	jne	.LBB3_15
# %bb.14:
	movl	%ebp, (%rbx)
.LBB3_15:
	leaq	40(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB3_17
# %bb.16:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
.LBB3_17:
	leaq	24(%rsp), %rbx
	movq	%rbx, %rdi
	movl	$550, %esi                      # imm = 0x226
	callq	_ZN13DiffEqnSolverC2Ei
	movl	(%rbx), %eax
	cmpl	$2, %eax
	jl	.LBB3_22
# %bb.18:                               # %.preheader.lr.ph.i
	movl	$1, %ecx
	movq	64(%rsp), %rdx
	movabsq	$4607182418800017408, %rsi      # imm = 0x3FF0000000000000
.LBB3_19:                               # %.lr.ph.i
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB3_20 Depth 2
	movq	(%rdx,%rcx,8), %rdi
	movl	$1, %r8d
.LBB3_20:                               #   Parent Loop BB3_19 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	%rsi, (%rdi,%r8,8)
	incq	%r8
	cmpq	%r8, %rax
	jne	.LBB3_20
# %bb.21:                               # %._crit_edge.i
                                        #   in Loop: Header=BB3_19 Depth=1
	incq	%rcx
	cmpq	%rax, %rcx
	jne	.LBB3_19
.LBB3_22:                               # %.loopexit70
	movl	$_ZSt4cout, %ebx
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rax
	movq	$3, _ZSt4cout+8(%rax)
.Ltmp3:
	movl	$_ZSt4cout, %edi
	movl	$.L.str, %esi
	movl	$25, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp4:
# %bb.23:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
	movq	_ZSt4cout(%rip), %rax
	addq	-24(%rax), %rbx
.Ltmp5:
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp6:
# %bb.24:                               # %.noexc51
.Ltmp7:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp8:
# %bb.25:                               # %.noexc52
.Ltmp9:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp10:
# %bb.26:                               # %_ZNSolsEPFRSoS_E.exit
	callq	clock
	movq	%rax, %rbx
	leaq	24(%rsp), %r15
	movl	%r14d, 12(%r15)
	leal	-2(%r14), %ecx
	movl	%ecx, 8(%r15)
	movl	(%r15), %eax
	addl	%r14d, %eax
	addl	$-4, %eax
	cltd
	idivl	%ecx
	movl	%eax, 16(%r15)
	movl	$1, %ebp
.LBB3_27:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB3_31 Depth 2
.Ltmp12:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.1, %esi
	movl	$11, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp13:
# %bb.28:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit29
                                        #   in Loop: Header=BB3_27 Depth=1
.Ltmp14:
	movl	$_ZSt4cout, %edi
	movl	%ebp, %esi
	callq	_ZNSolsEi
.Ltmp15:
# %bb.29:                               #   in Loop: Header=BB3_27 Depth=1
.Ltmp16:
	movq	%rax, %r14
	movl	$.L.str.2, %esi
	movl	$8, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp17:
# %bb.30:                               # %.lr.ph.i31.preheader
                                        #   in Loop: Header=BB3_27 Depth=1
	movl	$1000, %r12d                    # imm = 0x3E8
.LBB3_31:                               # %.lr.ph.i31
                                        #   Parent Loop BB3_27 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
.Ltmp18:
	movq	%r15, %rdi
	movsd	.LCPI3_0(%rip), %xmm0           # xmm0 = mem[0],zero
	callq	_ZN13DiffEqnSolver7oneStepEd
.Ltmp19:
# %bb.32:                               # %.noexc
                                        #   in Loop: Header=BB3_31 Depth=2
	decl	%r12d
	jne	.LBB3_31
# %bb.33:                               #   in Loop: Header=BB3_27 Depth=1
	movq	%r15, %rdi
	callq	_ZN13DiffEqnSolver8getErrorEv
.Ltmp21:
	movq	%r14, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp22:
# %bb.34:                               # %_ZNSolsEd.exit
                                        #   in Loop: Header=BB3_27 Depth=1
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
.Ltmp23:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp24:
# %bb.35:                               # %.noexc54
                                        #   in Loop: Header=BB3_27 Depth=1
.Ltmp25:
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
.Ltmp26:
# %bb.36:                               # %.noexc55
                                        #   in Loop: Header=BB3_27 Depth=1
.Ltmp27:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp28:
# %bb.37:                               # %_ZNSolsEPFRSoS_E.exit36
                                        #   in Loop: Header=BB3_27 Depth=1
	incl	%ebp
	cmpl	$22, %ebp
	jne	.LBB3_27
# %bb.38:
	callq	clock
	movq	%rax, %r14
.Ltmp30:
	movl	$_ZSt4cout, %r15d
	movl	$_ZSt4cout, %edi
	movl	$.L.str.3, %esi
	movl	$23, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp31:
# %bb.39:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit28
	movq	_ZSt4cout(%rip), %rax
	addq	-24(%rax), %r15
.Ltmp32:
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp33:
# %bb.40:                               # %.noexc58
.Ltmp34:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp35:
# %bb.41:                               # %.noexc59
.Ltmp36:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp37:
# %bb.42:                               # %_ZNSolsEPFRSoS_E.exit38
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
.Ltmp38:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp39:
# %bb.43:                               # %.noexc62
.Ltmp40:
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_ZNSo3putEc
.Ltmp41:
# %bb.44:                               # %.noexc63
.Ltmp42:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp43:
# %bb.45:                               # %_ZNSolsEPFRSoS_E.exit40
.Ltmp44:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.4, %esi
	movl	$30, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp45:
# %bb.46:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit42
	subq	%rbx, %r14
	cvtsi2sd	%r14, %xmm0
	divsd	.LCPI3_1(%rip), %xmm0
.Ltmp46:
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp47:
# %bb.47:                               # %_ZNSolsEd.exit44
.Ltmp48:
	movl	$.L.str.5, %esi
	movl	$4, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp49:
# %bb.48:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit46
.Ltmp50:
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str.6, %esi
	movl	$80, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp51:
# %bb.49:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit48
	movq	_ZSt4cout(%rip), %rax
	addq	-24(%rax), %rbx
.Ltmp52:
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp53:
# %bb.50:                               # %.noexc66
.Ltmp54:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp55:
# %bb.51:                               # %.noexc67
.Ltmp56:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp57:
# %bb.52:                               # %_ZNSolsEPFRSoS_E.exit50
	leaq	24(%rsp), %rdi
	callq	_ZN13DiffEqnSolverD2Ev
	xorl	%eax, %eax
	addq	$112, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB3_3:
	.cfi_def_cfa_offset 160
.Ltmp61:
	movl	$.L.str.7, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp62:
# %bb.4:
.LBB3_11:                               # %.critedge.i.i
.Ltmp59:
	movl	$.L.str.7, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp60:
# %bb.12:
.LBB3_59:
.Ltmp2:
	movq	%rax, %r14
	jmp	.LBB3_57
.LBB3_5:
.Ltmp63:
	movq	%rax, %r14
	cmpl	$0, (%rbx)
	jne	.LBB3_7
# %bb.6:
	movl	%ebp, (%rbx)
.LBB3_7:                                # %_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev.exit.i.i
	leaq	40(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB3_57
# %bb.8:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i25
	callq	_ZdlPv
	jmp	.LBB3_57
.LBB3_55:
.Ltmp11:
	jmp	.LBB3_56
.LBB3_58:
.Ltmp58:
	jmp	.LBB3_56
.LBB3_54:                               # %.loopexit.split-lp
.Ltmp29:
	jmp	.LBB3_56
.LBB3_53:                               # %.loopexit
.Ltmp20:
.LBB3_56:
	movq	%rax, %r14
	leaq	24(%rsp), %rdi
	callq	_ZN13DiffEqnSolverD2Ev
.LBB3_57:
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end3:
	.size	main, .Lfunc_end3-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table3:
.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 .Ltmp0-.Lfunc_begin0           # >> Call Site 1 <<
	.uleb128 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp2-.Lfunc_begin0           #     jumps to .Ltmp2
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp1-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp3-.Ltmp1                  #   Call between .Ltmp1 and .Ltmp3
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp10-.Ltmp3                 #   Call between .Ltmp3 and .Ltmp10
	.uleb128 .Ltmp11-.Lfunc_begin0          #     jumps to .Ltmp11
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp12-.Lfunc_begin0          # >> Call Site 4 <<
	.uleb128 .Ltmp17-.Ltmp12                #   Call between .Ltmp12 and .Ltmp17
	.uleb128 .Ltmp29-.Lfunc_begin0          #     jumps to .Ltmp29
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp18-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Ltmp19-.Ltmp18                #   Call between .Ltmp18 and .Ltmp19
	.uleb128 .Ltmp20-.Lfunc_begin0          #     jumps to .Ltmp20
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp21-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp28-.Ltmp21                #   Call between .Ltmp21 and .Ltmp28
	.uleb128 .Ltmp29-.Lfunc_begin0          #     jumps to .Ltmp29
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp30-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp57-.Ltmp30                #   Call between .Ltmp30 and .Ltmp57
	.uleb128 .Ltmp58-.Lfunc_begin0          #     jumps to .Ltmp58
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp61-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp60-.Ltmp61                #   Call between .Ltmp61 and .Ltmp60
	.uleb128 .Ltmp63-.Lfunc_begin0          #     jumps to .Ltmp63
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp60-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Lfunc_end3-.Ltmp60            #   Call between .Ltmp60 and .Lfunc_end3
	.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	.LBB4_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
.LBB4_1:
	.cfi_def_cfa_offset 32
	movl	$.L.str.8, %edi
	callq	_ZSt19__throw_logic_errorPKc
.Lfunc_end4:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, .Lfunc_end4-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _ZN13DiffEqnSolverC2Ei
.LCPI5_0:
	.quad	0x4081300000000000              # double 550
.LCPI5_1:
	.quad	0x400921fb54442d18              # double 3.1415926535897931
.LCPI5_2:
	.quad	0x402718f45d72e672              # double 11.548739357257748
	.section	.text._ZN13DiffEqnSolverC2Ei,"axG",@progbits,_ZN13DiffEqnSolverC2Ei,comdat
	.weak	_ZN13DiffEqnSolverC2Ei
	.p2align	1, 0x90
	.type	_ZN13DiffEqnSolverC2Ei,@function
_ZN13DiffEqnSolverC2Ei:                 # @_ZN13DiffEqnSolverC2Ei
	.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	$24, %rsp
	.cfi_def_cfa_offset 80
	.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	%esi, %r15d
	movq	%rdi, %rbx
	movl	%esi, (%rdi)
	cvtsi2sd	%esi, %xmm0
	movsd	.LCPI5_0(%rip), %xmm1           # xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	movsd	%xmm1, 32(%rdi)
	leal	1(%r15), %ebp
	movl	%ebp, %r14d
	imull	%r14d, %r14d
	movl	%r14d, 4(%rdi)
	leaq	(,%rbp,8), %rax
	cmpl	$-1, %esi
	movq	$-1, %r12
	cmovgeq	%rax, %r12
	movq	%r12, %rdi
	callq	_Znam
	movq	%rax, %r13
	movq	%rax, 40(%rbx)
	shlq	$3, %r14
	movq	%r14, %rdi
	callq	_Znam
	movq	%rax, (%r13)
	movl	%r15d, %r13d
	testl	%r15d, %r15d
	jle	.LBB5_3
# %bb.1:                                # %.lr.ph
	movl	$1, %eax
.LBB5_2:                                # =>This Inner Loop Header: Depth=1
	movq	40(%rbx), %rcx
	movq	-8(%rcx,%rax,8), %rdx
	leaq	(%rdx,%r13,8), %rdx
	addq	$8, %rdx
	movq	%rdx, (%rcx,%rax,8)
	incq	%rax
	cmpq	%rax, %rbp
	jne	.LBB5_2
.LBB5_3:                                # %._crit_edge
	movq	%r12, %rdi
	callq	_Znam
	movq	%rax, %r12
	movq	%rax, 48(%rbx)
	movq	%r14, %rdi
	callq	_Znam
	movq	%rax, (%r12)
	testl	%r15d, %r15d
	jle	.LBB5_6
# %bb.4:                                # %.lr.ph43
	movl	$1, %eax
.LBB5_5:                                # =>This Inner Loop Header: Depth=1
	movq	48(%rbx), %rcx
	movq	-8(%rcx,%rax,8), %rdx
	leaq	(%rdx,%r13,8), %rdx
	addq	$8, %rdx
	movq	%rdx, (%rcx,%rax,8)
	incq	%rax
	cmpq	%rax, %rbp
	jne	.LBB5_5
.LBB5_6:                                # %._crit_edge44
	leaq	56(%rbx), %rdi
	movq	%r14, %rsi
	callq	hipMalloc
	leaq	64(%rbx), %rdi
	movslq	4(%rbx), %rsi
	shlq	$3, %rsi
	callq	hipMalloc
	leaq	72(%rbx), %rdi
	movslq	4(%rbx), %rsi
	shlq	$3, %rsi
	callq	hipMalloc
	leaq	80(%rbx), %rdi
	movl	$8, %esi
	callq	hipMalloc
	movl	(%rbx), %eax
	testl	%eax, %eax
	js	.LBB5_14
# %bb.7:                                # %.lr.ph48.preheader
	movq	40(%rbx), %rcx
	xorl	%r14d, %r14d
	movsd	.LCPI5_1(%rip), %xmm2           # xmm2 = mem[0],zero
	xorl	%r15d, %r15d
.LBB5_8:                                # %.lr.ph48
                                        # =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r15d, %xmm0
	movq	(%rcx), %rdx
	movq	%r14, (%rdx,%r15,8)
	cltq
	movq	(%rcx,%rax,8), %rax
	movq	%r14, (%rax,%r15,8)
	movq	(%rcx,%r15,8), %rax
	movq	%r14, (%rax)
	mulsd	32(%rbx), %xmm0
	mulsd	%xmm2, %xmm0
	divsd	.LCPI5_0(%rip), %xmm0
	callq	sin
	movsd	.LCPI5_1(%rip), %xmm2           # xmm2 = mem[0],zero
	mulsd	.LCPI5_2(%rip), %xmm0
	movq	40(%rbx), %rcx
	movq	(%rcx,%r15,8), %rdx
	movslq	(%rbx), %rax
	movsd	%xmm0, (%rdx,%rax,8)
	leaq	1(%r15), %rdx
	cmpq	%rax, %r15
	movq	%rdx, %r15
	jl	.LBB5_8
# %bb.9:                                # %.preheader37
	testl	%eax, %eax
	js	.LBB5_14
# %bb.10:                               # %.preheader.preheader
	xorl	%r14d, %r14d
.LBB5_11:                               # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB5_16 Depth 2
	testl	%eax, %eax
	js	.LBB5_12
# %bb.15:                               # %.lr.ph51
                                        #   in Loop: Header=BB5_11 Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r14d, %xmm0
	movsd	%xmm0, (%rsp)                   # 8-byte Spill
	xorl	%r15d, %r15d
.LBB5_16:                               #   Parent Loop BB5_11 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	32(%rbx), %xmm1                 # xmm1 = mem[0],zero
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r15d, %xmm0
	mulsd	%xmm1, %xmm0
	mulsd	(%rsp), %xmm1                   # 8-byte Folded Reload
	movsd	%xmm1, 8(%rsp)                  # 8-byte Spill
	mulsd	%xmm2, %xmm0
	movsd	.LCPI5_0(%rip), %xmm1           # xmm1 = mem[0],zero
	divsd	%xmm1, %xmm0
	callq	sinh
	movsd	%xmm0, 16(%rsp)                 # 8-byte Spill
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	mulsd	.LCPI5_1(%rip), %xmm0
	divsd	.LCPI5_0(%rip), %xmm0
	callq	sin
	movsd	.LCPI5_1(%rip), %xmm2           # xmm2 = mem[0],zero
	mulsd	16(%rsp), %xmm0                 # 8-byte Folded Reload
	movq	48(%rbx), %rax
	movq	(%rax,%r14,8), %rax
	movsd	%xmm0, (%rax,%r15,8)
	leaq	1(%r15), %rdx
	movl	(%rbx), %eax
	movslq	%eax, %rcx
	cmpq	%rcx, %r15
	movq	%rdx, %r15
	jl	.LBB5_16
	jmp	.LBB5_13
.LBB5_12:                               # %.preheader.._crit_edge52_crit_edge
                                        #   in Loop: Header=BB5_11 Depth=1
	movslq	%eax, %rcx
.LBB5_13:                               # %._crit_edge52
                                        #   in Loop: Header=BB5_11 Depth=1
	leaq	1(%r14), %rdx
	cmpq	%rcx, %r14
	movq	%rdx, %r14
	jl	.LBB5_11
.LBB5_14:                               # %._crit_edge55
	addq	$24, %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_end5:
	.size	_ZN13DiffEqnSolverC2Ei, .Lfunc_end5-_ZN13DiffEqnSolverC2Ei
	.cfi_endproc
                                        # -- End function
	.section	.text._ZN13DiffEqnSolverD2Ev,"axG",@progbits,_ZN13DiffEqnSolverD2Ev,comdat
	.weak	_ZN13DiffEqnSolverD2Ev          # -- Begin function _ZN13DiffEqnSolverD2Ev
	.p2align	1, 0x90
	.type	_ZN13DiffEqnSolverD2Ev,@function
_ZN13DiffEqnSolverD2Ev:                 # @_ZN13DiffEqnSolverD2Ev
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	%rdi, %rbx
	movq	40(%rdi), %rdi
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.LBB6_2
# %bb.1:
	movq	%rax, %rdi
	callq	_ZdaPv
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB6_3
.LBB6_2:                                # %.thread
	callq	_ZdaPv
.LBB6_3:
	movq	48(%rbx), %rdi
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.LBB6_5
# %bb.4:
	movq	%rax, %rdi
	callq	_ZdaPv
	movq	48(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB6_6
.LBB6_5:                                # %.thread5
	callq	_ZdaPv
.LBB6_6:
	movq	56(%rbx), %rdi
.Ltmp64:
	callq	hipFree
.Ltmp65:
# %bb.7:
	movq	64(%rbx), %rdi
.Ltmp66:
	callq	hipFree
.Ltmp67:
# %bb.8:
	movq	72(%rbx), %rdi
.Ltmp68:
	callq	hipFree
.Ltmp69:
# %bb.9:
	movq	80(%rbx), %rdi
.Ltmp70:
	callq	hipFree
.Ltmp71:
# %bb.10:
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.LBB6_11:
	.cfi_def_cfa_offset 16
.Ltmp72:
	movq	%rax, %rdi
	callq	__clang_call_terminate
.Lfunc_end6:
	.size	_ZN13DiffEqnSolverD2Ev, .Lfunc_end6-_ZN13DiffEqnSolverD2Ev
	.cfi_endproc
	.section	.gcc_except_table._ZN13DiffEqnSolverD2Ev,"aG",@progbits,_ZN13DiffEqnSolverD2Ev,comdat
	.p2align	2, 0x0
GCC_except_table6:
.Lexception1:
	.byte	255                             # @LPStart Encoding = omit
	.byte	3                               # @TType Encoding = udata4
	.uleb128 .Lttbase0-.Lttbaseref0
.Lttbaseref0:
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end1-.Lcst_begin1
.Lcst_begin1:
	.uleb128 .Ltmp64-.Lfunc_begin1          # >> Call Site 1 <<
	.uleb128 .Ltmp71-.Ltmp64                #   Call between .Ltmp64 and .Ltmp71
	.uleb128 .Ltmp72-.Lfunc_begin1          #     jumps to .Ltmp72
	.byte	1                               #   On action: 1
.Lcst_end1:
	.byte	1                               # >> Action Record 1 <<
                                        #   Catch TypeInfo 1
	.byte	0                               #   No further actions
	.p2align	2, 0x0
                                        # >> Catch TypeInfos <<
	.long	0                               # TypeInfo 1
.Lttbase0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text.__clang_call_terminate,"axG",@progbits,__clang_call_terminate,comdat
	.hidden	__clang_call_terminate          # -- Begin function __clang_call_terminate
	.weak	__clang_call_terminate
	.type	__clang_call_terminate,@function
__clang_call_terminate:                 # @__clang_call_terminate
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__cxa_begin_catch
	callq	_ZSt9terminatev
.Lfunc_end7:
	.size	__clang_call_terminate, .Lfunc_end7-__clang_call_terminate
	.cfi_endproc
                                        # -- End function
	.section	.text._ZN13DiffEqnSolver7oneStepEd,"axG",@progbits,_ZN13DiffEqnSolver7oneStepEd,comdat
	.weak	_ZN13DiffEqnSolver7oneStepEd    # -- Begin function _ZN13DiffEqnSolver7oneStepEd
	.p2align	1, 0x90
	.type	_ZN13DiffEqnSolver7oneStepEd,@function
_ZN13DiffEqnSolver7oneStepEd:           # @_ZN13DiffEqnSolver7oneStepEd
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -16
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movq	%rdi, %rbx
	movq	40(%rdi), %rax
	movq	64(%rdi), %rdi
	movq	(%rax), %rsi
	movslq	4(%rbx), %rdx
	shlq	$3, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movl	12(%rbx), %edx
	movl	16(%rbx), %edi
	imull	%edi, %edi
	imull	%edx, %edx
	btsq	$32, %rdi
	btsq	$32, %rdx
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB8_2
# %bb.1:
	movl	(%rbx), %edi
	movl	12(%rbx), %esi
	movq	56(%rbx), %rdx
	movq	64(%rbx), %rcx
	movsd	32(%rbx), %xmm0                 # xmm0 = mem[0],zero
	movsd	8(%rsp), %xmm1                  # 8-byte Reload
                                        # xmm1 = mem[0],zero
	callq	_Z27__device_stub__oneIterationiiPdS_dd
.LBB8_2:
	movq	40(%rbx), %rax
	movq	56(%rbx), %rsi
	movq	(%rax), %rdi
	movslq	4(%rbx), %rdx
	shlq	$3, %rdx
	movl	$2, %ecx
	addq	$16, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	hipMemcpy                       # TAILCALL
.Lfunc_end8:
	.size	_ZN13DiffEqnSolver7oneStepEd, .Lfunc_end8-_ZN13DiffEqnSolver7oneStepEd
	.cfi_endproc
                                        # -- End function
	.section	.text._ZN13DiffEqnSolver8getErrorEv,"axG",@progbits,_ZN13DiffEqnSolver8getErrorEv,comdat
	.weak	_ZN13DiffEqnSolver8getErrorEv   # -- Begin function _ZN13DiffEqnSolver8getErrorEv
	.p2align	1, 0x90
	.type	_ZN13DiffEqnSolver8getErrorEv,@function
_ZN13DiffEqnSolver8getErrorEv:          # @_ZN13DiffEqnSolver8getErrorEv
	.cfi_startproc
# %bb.0:
	movl	(%rdi), %eax
	xorpd	%xmm1, %xmm1
	xorpd	%xmm0, %xmm0
	testl	%eax, %eax
	js	.LBB9_5
# %bb.1:                                # %.preheader.lr.ph
	movq	40(%rdi), %rcx
	movq	48(%rdi), %rdx
	incq	%rax
	xorl	%esi, %esi
.LBB9_2:                                # %.lr.ph
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB9_3 Depth 2
	movq	(%rcx,%rsi,8), %rdi
	movq	(%rdx,%rsi,8), %r8
	xorl	%r9d, %r9d
.LBB9_3:                                #   Parent Loop BB9_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	(%rdi,%r9,8), %xmm2             # xmm2 = mem[0],zero
	subsd	(%r8,%r9,8), %xmm2
	mulsd	%xmm2, %xmm2
	addsd	%xmm2, %xmm0
	incq	%r9
	cmpq	%r9, %rax
	jne	.LBB9_3
# %bb.4:                                # %._crit_edge
                                        #   in Loop: Header=BB9_2 Depth=1
	incq	%rsi
	cmpq	%rax, %rsi
	jne	.LBB9_2
.LBB9_5:                                # %._crit_edge19
	ucomisd	%xmm1, %xmm0
	jb	sqrt                            # TAILCALL
# %bb.6:                                # %._crit_edge19.split
	sqrtsd	%xmm0, %xmm0
	retq
.Lfunc_end9:
	.size	_ZN13DiffEqnSolver8getErrorEv, .Lfunc_end9-_ZN13DiffEqnSolver8getErrorEv
	.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	$_Z12oneIterationiiPdS_dd, %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	$_Z21iterationWithOneBlockiiiPdS_dd, %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	$_Z12cudaGetErroriPdS_S_, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %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	_Z12oneIterationiiPdS_dd,@object # @_Z12oneIterationiiPdS_dd
	.section	.rodata,"a",@progbits
	.globl	_Z12oneIterationiiPdS_dd
	.p2align	3, 0x0
_Z12oneIterationiiPdS_dd:
	.quad	_Z27__device_stub__oneIterationiiPdS_dd
	.size	_Z12oneIterationiiPdS_dd, 8

	.type	_Z21iterationWithOneBlockiiiPdS_dd,@object # @_Z21iterationWithOneBlockiiiPdS_dd
	.globl	_Z21iterationWithOneBlockiiiPdS_dd
	.p2align	3, 0x0
_Z21iterationWithOneBlockiiiPdS_dd:
	.quad	_Z36__device_stub__iterationWithOneBlockiiiPdS_dd
	.size	_Z21iterationWithOneBlockiiiPdS_dd, 8

	.type	_Z12cudaGetErroriPdS_S_,@object # @_Z12cudaGetErroriPdS_S_
	.globl	_Z12cudaGetErroriPdS_S_
	.p2align	3, 0x0
_Z12cudaGetErroriPdS_S_:
	.quad	_Z27__device_stub__cudaGetErroriPdS_S_
	.size	_Z12cudaGetErroriPdS_S_, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"Start running iterations:"
	.size	.L.str, 26

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

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"\t error:"
	.size	.L.str.2, 9

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"End running iterations!"
	.size	.L.str.3, 24

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"Time spent during iterations: "
	.size	.L.str.4, 31

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"s\n\n\n"
	.size	.L.str.5, 5

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"================================================================================"
	.size	.L.str.6, 81

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

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

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z12oneIterationiiPdS_dd"
	.size	.L__unnamed_1, 25

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z21iterationWithOneBlockiiiPdS_dd"
	.size	.L__unnamed_2, 35

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z12cudaGetErroriPdS_S_"
	.size	.L__unnamed_3, 24

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

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

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym _Z27__device_stub__oneIterationiiPdS_dd
	.addrsig_sym _Z36__device_stub__iterationWithOneBlockiiiPdS_dd
	.addrsig_sym _Z27__device_stub__cudaGetErroriPdS_S_
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _Z12oneIterationiiPdS_dd
	.addrsig_sym _Z21iterationWithOneBlockiiiPdS_dd
	.addrsig_sym _Z12cudaGetErroriPdS_S_
	.addrsig_sym _ZSt4cout
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z12oneIterationiiPdS_dd ; -- Begin function _Z12oneIterationiiPdS_dd
	.globl	_Z12oneIterationiiPdS_dd
	.p2align	8
	.type	_Z12oneIterationiiPdS_dd,@function
_Z12oneIterationiiPdS_dd:               ; @_Z12oneIterationiiPdS_dd
; %bb.0:
	s_load_b64 s[12:13], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_add_i32 s2, s13, -2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_ashr_i32 s3, s2, 31
	s_add_i32 s5, s12, s2
	s_add_i32 s4, s2, s3
	s_add_i32 s5, s5, -2
	s_xor_b32 s4, s4, s3
	s_ashr_i32 s8, s5, 31
	v_cvt_f32_u32_e32 v1, s4
	s_sub_i32 s7, 0, s4
	s_add_i32 s5, s5, s8
	s_xor_b32 s3, s8, s3
	s_xor_b32 s5, s5, s8
	v_rcp_iflag_f32_e32 v1, v1
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v1, 0x4f7ffffe, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cvt_u32_f32_e32 v1, v1
	v_readfirstlane_b32 s6, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_i32 s7, s7, s6
	s_mul_hi_u32 s7, s6, s7
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_add_i32 s6, s6, s7
	s_mul_hi_u32 s6, s5, s6
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_i32 s7, s6, s4
	s_sub_i32 s5, s5, s7
	s_add_i32 s7, s6, 1
	s_sub_i32 s8, s5, s4
	s_cmp_ge_u32 s5, s4
	s_cselect_b32 s6, s7, s6
	s_cselect_b32 s5, s8, s5
	s_add_i32 s7, s6, 1
	s_cmp_ge_u32 s5, s4
	s_cselect_b32 s4, s7, s6
	s_ashr_i32 s5, s13, 31
	s_xor_b32 s4, s4, s3
	s_add_i32 s6, s13, s5
	s_sub_i32 s3, s4, s3
	s_xor_b32 s6, s6, s5
	s_ashr_i32 s4, s3, 31
	v_cvt_f32_u32_e32 v1, s6
	s_sub_i32 s7, 0, s6
	s_ashr_i32 s8, s15, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_add_i32 s11, s15, s8
	v_rcp_iflag_f32_e32 v1, v1
	s_xor_b32 s11, s11, s8
	s_xor_b32 s14, s8, s4
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v1, 0x4f7ffffe, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cvt_u32_f32_e32 v1, v1
	v_mul_lo_u32 v2, s7, v1
	s_add_i32 s7, s3, s4
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_xor_b32 s7, s7, s4
	s_sub_i32 s10, 0, s7
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v2, v1, v2
	v_add_nc_u32_e32 v1, v1, v2
	v_cvt_f32_u32_e32 v2, s7
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_hi_u32 v1, v0, v1
	v_rcp_iflag_f32_e32 v2, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v3, v1, s6
	v_add_nc_u32_e32 v4, 1, v1
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v2, 0x4f7ffffe, v2
	v_cvt_u32_f32_e32 v2, v2
	v_sub_nc_u32_e32 v3, v0, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_readfirstlane_b32 s9, v2
	v_subrev_nc_u32_e32 v2, s6, v3
	v_cmp_le_u32_e32 vcc_lo, s6, v3
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	s_mul_i32 s10, s10, s9
	v_dual_cndmask_b32 v1, v1, v4 :: v_dual_cndmask_b32 v2, v3, v2
	s_mul_hi_u32 s10, s9, s10
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_add_i32 s9, s9, s10
	v_add_nc_u32_e32 v3, 1, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_cmp_le_u32_e32 vcc_lo, s6, v2
	s_mul_hi_u32 s6, s11, s9
	s_mul_i32 s4, s6, s7
	s_add_i32 s8, s6, 1
	v_cndmask_b32_e32 v1, v1, v3, vcc_lo
	s_sub_i32 s4, s11, s4
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	s_sub_i32 s9, s4, s7
	s_cmp_ge_u32 s4, s7
	v_xor_b32_e32 v1, s5, v1
	s_cselect_b32 s16, s8, s6
	s_cselect_b32 s4, s9, s4
	s_add_i32 s17, s16, 1
	s_cmp_ge_u32 s4, s7
	v_subrev_nc_u32_e32 v11, s5, v1
	s_load_b256 s[4:11], s[0:1], 0x8
	s_cselect_b32 s0, s17, s16
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_xor_b32 s0, s0, s14
	v_mul_lo_u32 v1, v11, s13
	s_sub_i32 s0, s0, s14
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v12, v0, v1
	v_mad_u64_u32 v[8:9], null, s0, s2, v[11:12]
	s_mul_i32 s0, s0, s3
	s_mov_b32 s3, exec_lo
	s_sub_i32 s0, s15, s0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mad_u64_u32 v[9:10], null, s0, s2, v[12:13]
	v_cmpx_lt_i32_e32 -1, v8
	s_cbranch_execz .LBB0_4
; %bb.1:
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_max_i32_e32 v0, v8, v9
	v_cmp_lt_i32_e32 vcc_lo, -1, v9
	v_cmp_ge_i32_e64 s0, s12, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s0, s0, vcc_lo
	s_and_b32 exec_lo, exec_lo, s0
	s_cbranch_execz .LBB0_4
; %bb.2:
	v_mul_lo_u32 v0, v8, s12
	v_cmp_eq_u32_e64 s0, 0, v9
	v_lshlrev_b32_e32 v4, 3, v12
	v_cmp_eq_u32_e64 s1, s12, v8
	v_cmp_eq_u32_e64 s2, s12, v9
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshl_add_u32 v4, v11, 8, v4
	v_add3_u32 v0, v0, v8, v9
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 3, v[0:1]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s6, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(SALU_CYCLE_1)
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v1, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, 0, v8
	global_load_b64 v[2:3], v[2:3], off
	s_or_b32 s0, vcc_lo, s0
	s_or_b32 s0, s1, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 s0, s0, s2
	s_waitcnt vmcnt(0)
	ds_store_b64 v4, v[2:3]
	s_and_b32 exec_lo, exec_lo, s0
	s_cbranch_execz .LBB0_4
; %bb.3:
	v_add_co_u32 v0, vcc_lo, s4, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s5, v1, vcc_lo
	global_store_b64 v[0:1], v[2:3], off
.LBB0_4:
	s_or_b32 exec_lo, exec_lo, s3
	s_waitcnt lgkmcnt(0)
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_mov_b32 s0, exec_lo
	v_cmpx_ne_u32_e32 0, v11
	s_cbranch_execz .LBB0_11
; %bb.5:
	s_add_i32 s1, s13, -1
	v_cmp_ne_u32_e64 s0, 0, v12
	v_cmp_gt_i32_e32 vcc_lo, s1, v11
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s0, vcc_lo, s0
	s_and_b32 exec_lo, exec_lo, s0
	s_cbranch_execz .LBB0_11
; %bb.6:
	v_cmp_gt_i32_e32 vcc_lo, s1, v12
	v_cmp_ne_u32_e64 s0, 0, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s0, vcc_lo, s0
	s_and_b32 exec_lo, exec_lo, s0
	s_cbranch_execz .LBB0_11
; %bb.7:
	v_max_i32_e32 v0, v8, v9
	v_cmp_ne_u32_e32 vcc_lo, 0, v9
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_gt_i32_e64 s0, s12, v0
	s_and_b32 s0, s0, vcc_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_b32 exec_lo, exec_lo, s0
	s_cbranch_execz .LBB0_11
; %bb.8:                                ; %.preheader.preheader
	v_dual_mov_b32 v13, 0 :: v_dual_mov_b32 v0, 0
	v_dual_mov_b32 v14, 0 :: v_dual_mov_b32 v3, -1
	v_mov_b32_e32 v2, 1
	s_mov_b64 s[0:1], 0
.LBB0_9:                                ; %.preheader
                                        ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_mov_b32 v15, v2 :: v_dual_mov_b32 v16, v3
	s_mov_b32 m0, s0
	v_dual_mov_b32 v1, v0 :: v_dual_mov_b32 v4, v2
	v_dual_mov_b32 v5, v3 :: v_dual_mov_b32 v6, v2
	v_dual_mov_b32 v7, v3 :: v_dual_mov_b32 v18, v0
	v_dual_mov_b32 v17, v0 :: v_dual_mov_b32 v20, v2
	v_dual_mov_b32 v19, v2 :: v_dual_mov_b32 v22, v3
	v_mov_b32_e32 v21, v3
	v_movrels_b32_e32 v1, v0
	v_movrels_b32_e32 v4, v15
	s_add_u32 s0, s0, 1
	s_addc_u32 s1, s1, 0
	s_cmp_eq_u32 s0, 8
	v_add_nc_u32_e32 v1, v1, v11
	v_add_lshl_u32 v4, v4, v12, 3
	s_delay_alu instid0(VALU_DEP_1)
	v_lshl_add_u32 v1, v1, 8, v4
	ds_load_b64 v[4:5], v1
	s_waitcnt lgkmcnt(0)
	v_add_f64 v[13:14], v[13:14], v[4:5]
	s_cbranch_scc0 .LBB0_9
; %bb.10:
	v_frexp_mant_f64_e64 v[0:1], |s[8:9]|
	s_mov_b32 s1, 0x3fe55555
	s_mov_b32 s0, 0x55555555
	s_mov_b32 s2, 0x968915a9
	s_mov_b32 s6, 0x4222de17
	s_mov_b32 s3, 0x3fba6564
	s_mov_b32 s7, 0x3fbdee67
	v_frexp_exp_i32_f64_e32 v10, s[8:9]
	s_mov_b32 s14, 0x652b82fe
	s_mov_b32 s15, 0x3ff71547
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_cmp_gt_f64_e32 vcc_lo, s[0:1], v[0:1]
	v_cndmask_b32_e64 v2, 0, 1, vcc_lo
	v_subrev_co_ci_u32_e32 v10, vcc_lo, 0, v10, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[0:1], v[0:1], v2
	v_add_f64 v[2:3], v[0:1], 1.0
	v_add_f64 v[15:16], v[0:1], -1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[4:5], v[2:3]
	v_add_f64 v[17:18], v[2:3], -1.0
	v_add_f64 v[0:1], v[0:1], -v[17:18]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[6:7], -v[2:3], v[4:5], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[4:5], v[6:7], v[4:5], v[4:5]
	v_fma_f64 v[6:7], -v[2:3], v[4:5], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[4:5], v[6:7], v[4:5], v[4:5]
	v_mul_f64 v[6:7], v[15:16], v[4:5]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[19:20], v[2:3], v[6:7]
	v_fma_f64 v[2:3], v[6:7], v[2:3], -v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[0:1], v[6:7], v[0:1], v[2:3]
	v_add_f64 v[2:3], v[19:20], v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[17:18], v[15:16], -v[2:3]
	v_add_f64 v[19:20], v[2:3], -v[19:20]
	v_add_f64 v[15:16], v[15:16], -v[17:18]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[0:1], v[19:20], -v[0:1]
	v_add_f64 v[2:3], v[15:16], -v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[0:1], v[0:1], v[2:3]
	v_add_f64 v[0:1], v[17:18], v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[0:1], v[4:5], v[0:1]
	v_add_f64 v[2:3], v[6:7], v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[4:5], v[2:3], -v[6:7]
	v_mul_f64 v[6:7], v[2:3], v[2:3]
	v_add_f64 v[0:1], v[0:1], -v[4:5]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[4:5], v[2:3], v[2:3], -v[6:7]
	v_add_f64 v[15:16], v[0:1], v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[4:5], v[2:3], v[15:16], v[4:5]
	v_add_f64 v[15:16], v[6:7], v[4:5]
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[17:18], v[15:16], s[6:7], s[2:3]
	s_mov_b32 s2, 0x3abe935a
	s_mov_b32 s3, 0x3fbe25e4
	v_add_f64 v[6:7], v[15:16], -v[6:7]
	v_mul_f64 v[23:24], v[2:3], v[15:16]
	s_mov_b32 s6, 0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fma_f64 v[17:18], v[15:16], v[17:18], s[2:3]
	s_mov_b32 s2, 0x47e6c9c2
	s_mov_b32 s3, 0x3fc110ef
	v_add_f64 v[4:5], v[4:5], -v[6:7]
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[17:18], v[15:16], v[17:18], s[2:3]
	s_mov_b32 s2, 0xcfa74449
	s_mov_b32 s3, 0x3fc3b13b
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[17:18], v[15:16], v[17:18], s[2:3]
	s_mov_b32 s2, 0x71bf3c30
	s_mov_b32 s3, 0x3fc745d1
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[17:18], v[15:16], v[17:18], s[2:3]
	s_mov_b32 s2, 0x1c7792ce
	s_mov_b32 s3, 0x3fcc71c7
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[17:18], v[15:16], v[17:18], s[2:3]
	s_mov_b32 s2, 0x924920da
	s_mov_b32 s3, 0x3fd24924
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[17:18], v[15:16], v[17:18], s[2:3]
	s_mov_b32 s2, 0x9999999c
	s_mov_b32 s3, 0x3fd99999
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[17:18], v[15:16], v[17:18], s[2:3]
	s_mov_b32 s3, 0x3c7abc9e
	s_mov_b32 s2, 0x3b39803f
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[19:20], v[15:16], v[17:18]
	v_fma_f64 v[6:7], v[15:16], v[17:18], -v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[6:7], v[4:5], v[17:18], v[6:7]
	v_add_f64 v[17:18], v[19:20], v[6:7]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[21:22], v[17:18], s[0:1]
	v_add_f64 v[19:20], v[17:18], -v[19:20]
	s_mov_b32 s1, 0xbfe55555
	s_delay_alu instid0(VALU_DEP_2) | instid1(SALU_CYCLE_1)
	v_add_f64 v[25:26], v[21:22], s[0:1]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_add_f64 v[6:7], v[6:7], -v[19:20]
	v_fma_f64 v[19:20], v[15:16], v[2:3], -v[23:24]
	s_mov_b32 s0, 0xd5df274d
	s_mov_b32 s1, 0x3c8543b0
	v_add_f64 v[17:18], v[17:18], -v[25:26]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[6:7], v[6:7], s[0:1]
	v_fma_f64 v[15:16], v[15:16], v[0:1], v[19:20]
	s_mov_b32 s1, 0x3fe62e42
	s_mov_b32 s0, 0xfefa39ef
	v_ldexp_f64 v[0:1], v[0:1], 1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[6:7], v[6:7], v[17:18]
	v_fma_f64 v[4:5], v[4:5], v[2:3], v[15:16]
	v_ldexp_f64 v[2:3], v[2:3], 1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[15:16], v[21:22], v[6:7]
	v_add_f64 v[17:18], v[23:24], v[4:5]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[19:20], v[21:22], -v[15:16]
	v_mul_f64 v[21:22], v[17:18], v[15:16]
	v_add_f64 v[23:24], v[17:18], -v[23:24]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[6:7], v[6:7], v[19:20]
	v_fma_f64 v[19:20], v[17:18], v[15:16], -v[21:22]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[4:5], v[4:5], -v[23:24]
	v_fma_f64 v[6:7], v[17:18], v[6:7], v[19:20]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fma_f64 v[4:5], v[4:5], v[15:16], v[6:7]
	v_cvt_f64_i32_e32 v[15:16], v10
	v_lshlrev_b32_e32 v10, 3, v12
	v_lshl_add_u32 v10, v11, 8, v10
	ds_load_b64 v[10:11], v10
	s_waitcnt lgkmcnt(0)
	v_fma_f64 v[12:13], 0xc0200000, v[10:11], v[13:14]
	v_add_f64 v[6:7], v[21:22], v[4:5]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_mul_f64 v[12:13], v[12:13], s[10:11]
	v_cmp_eq_f64_e64 s10, s[8:9], 0
	v_add_f64 v[17:18], v[2:3], v[6:7]
	v_add_f64 v[19:20], v[6:7], -v[21:22]
	v_mul_f64 v[21:22], v[15:16], s[0:1]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[2:3], v[17:18], -v[2:3]
	v_add_f64 v[4:5], v[4:5], -v[19:20]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[19:20], v[15:16], s[0:1], -v[21:22]
	v_cmp_eq_f64_e64 s1, s[8:9], 1.0
	v_add_f64 v[2:3], v[6:7], -v[2:3]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[0:1], v[0:1], v[4:5]
	v_fma_f64 v[4:5], v[15:16], s[2:3], v[19:20]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	s_and_b32 s1, s1, exec_lo
	s_cselect_b32 s7, 0x3ff00000, 2.0
	s_mov_b32 s1, 0xbfe62e42
	s_mov_b32 s3, 0xbc7abc9e
	v_add_f64 v[0:1], v[0:1], v[2:3]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[2:3], v[21:22], v[4:5]
	v_add_f64 v[6:7], v[17:18], v[0:1]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[21:22], v[2:3], -v[21:22]
	v_add_f64 v[15:16], v[2:3], v[6:7]
	v_add_f64 v[17:18], v[6:7], -v[17:18]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_f64 v[4:5], v[4:5], -v[21:22]
	v_div_scale_f64 v[21:22], null, 0x40080000, 0x40080000, v[12:13]
	v_add_f64 v[19:20], v[15:16], -v[2:3]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[0:1], v[0:1], -v[17:18]
	v_add_f64 v[23:24], v[15:16], -v[19:20]
	v_add_f64 v[6:7], v[6:7], -v[19:20]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[17:18], v[4:5], v[0:1]
	v_add_f64 v[2:3], v[2:3], -v[23:24]
	v_rcp_f64_e32 v[23:24], v[21:22]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[2:3], v[6:7], v[2:3]
	v_add_f64 v[6:7], v[17:18], -v[4:5]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[25:26], -v[21:22], v[23:24], 1.0
	v_add_f64 v[2:3], v[17:18], v[2:3]
	v_add_f64 v[17:18], v[17:18], -v[6:7]
	v_add_f64 v[0:1], v[0:1], -v[6:7]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[19:20], v[15:16], v[2:3]
	v_add_f64 v[4:5], v[4:5], -v[17:18]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[6:7], v[19:20], -v[15:16]
	v_add_f64 v[0:1], v[0:1], v[4:5]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[2:3], v[2:3], -v[6:7]
	v_add_f64 v[0:1], v[0:1], v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[2:3], v[19:20], v[0:1]
	v_add_f64 v[4:5], v[2:3], -v[19:20]
	v_mul_f64 v[6:7], s[6:7], v[2:3]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[0:1], v[0:1], -v[4:5]
	v_fma_f64 v[2:3], s[6:7], v[2:3], -v[6:7]
	v_cmp_class_f64_e64 vcc_lo, v[6:7], 0x204
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[0:1], s[6:7], v[0:1], v[2:3]
	v_add_f64 v[2:3], v[6:7], v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_dual_cndmask_b32 v5, v3, v7 :: v_dual_cndmask_b32 v4, v2, v6
	v_add_f64 v[2:3], v[2:3], -v[6:7]
	v_mul_f64 v[15:16], v[4:5], s[14:15]
	v_cmp_nlt_f64_e32 vcc_lo, 0x40900000, v[4:5]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[0:1], v[0:1], -v[2:3]
	v_rndne_f64_e32 v[15:16], v[15:16]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_fma_f64 v[17:18], v[15:16], s[0:1], v[4:5]
	s_mov_b32 s0, 0xfca7ab0c
	s_mov_b32 s1, 0x3e928af3
	v_cvt_i32_f64_e32 v27, v[15:16]
	v_fma_f64 v[17:18], v[15:16], s[2:3], v[17:18]
	s_mov_b32 s2, 0x6a5dcb37
	s_mov_b32 s3, 0x3e5ade15
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[19:20], v[17:18], s[2:3], s[0:1]
	s_mov_b32 s0, 0x623fde64
	s_mov_b32 s1, 0x3ec71dee
	v_div_scale_f64 v[2:3], s2, v[12:13], 0x40080000, v[12:13]
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[19:20], v[17:18], v[19:20], s[0:1]
	s_mov_b32 s0, 0x7c89e6b0
	s_mov_b32 s1, 0x3efa0199
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[19:20], v[17:18], v[19:20], s[0:1]
	s_mov_b32 s0, 0x14761f6e
	s_mov_b32 s1, 0x3f2a01a0
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[19:20], v[17:18], v[19:20], s[0:1]
	s_mov_b32 s0, 0x1852b7b0
	s_mov_b32 s1, 0x3f56c16c
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[19:20], v[17:18], v[19:20], s[0:1]
	s_mov_b32 s0, 0x11122322
	s_mov_b32 s1, 0x3f811111
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[19:20], v[17:18], v[19:20], s[0:1]
	s_mov_b32 s0, 0x555502a1
	s_mov_b32 s1, 0x3fa55555
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[19:20], v[17:18], v[19:20], s[0:1]
	s_mov_b32 s0, 0x55555511
	s_mov_b32 s1, 0x3fc55555
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[19:20], v[17:18], v[19:20], s[0:1]
	s_mov_b32 s0, 11
	s_mov_b32 s1, 0x3fe00000
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[19:20], v[17:18], v[19:20], s[0:1]
	v_cmp_ngt_f64_e64 s0, 0xc090cc00, v[4:5]
	v_cmp_neq_f64_e64 s1, 0x7ff00000, |v[4:5]|
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[19:20], v[17:18], v[19:20], 1.0
	v_cndmask_b32_e64 v1, 0, v1, s1
	v_cndmask_b32_e64 v0, 0, v0, s1
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fma_f64 v[14:15], v[17:18], v[19:20], 1.0
	v_fma_f64 v[16:17], v[23:24], v[25:26], v[23:24]
	v_mul_f64 v[18:19], s[6:7], 0.5
	v_ldexp_f64 v[14:15], v[14:15], v27
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[6:7], -v[21:22], v[16:17], 1.0
	v_cndmask_b32_e32 v20, 0x7ff00000, v15, vcc_lo
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[4:5], v[16:17], v[6:7], v[16:17]
	v_trunc_f64_e32 v[6:7], s[6:7]
	v_trunc_f64_e32 v[15:16], v[18:19]
	v_readfirstlane_b32 s3, v14
	v_cndmask_b32_e64 v24, 0, v20, s0
	s_and_b32 s0, s0, vcc_lo
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	s_and_b32 s0, s0, exec_lo
	s_cselect_b32 s3, s3, 0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mov_b32_e32 v23, s3
	v_fma_f64 v[0:1], v[23:24], v[0:1], v[23:24]
	v_cmp_class_f64_e64 vcc_lo, v[23:24], 0x204
	v_mul_f64 v[25:26], v[2:3], v[4:5]
	v_cmp_eq_f64_e64 s0, s[6:7], v[6:7]
	v_cmp_neq_f64_e64 s1, v[15:16], v[18:19]
	v_readfirstlane_b32 s6, v0
	s_and_b32 s7, vcc_lo, exec_lo
	v_cndmask_b32_e32 v0, v1, v24, vcc_lo
	v_cmp_class_f64_e64 s7, s[8:9], 0x204
	s_mov_b32 vcc_lo, s2
	s_cselect_b32 s3, s3, s6
	v_fma_f64 v[2:3], -v[21:22], v[25:26], v[2:3]
	s_and_b32 s6, s0, s1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	s_and_b32 s1, s6, exec_lo
	s_cselect_b32 s1, s9, 0x3ff00000
	v_bfi_b32 v6, 0x7fffffff, v0, s1
	v_cmp_lt_f64_e64 s1, s[8:9], 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v7, 0x7ff80000, v6, s0
	s_and_b32 s0, s0, exec_lo
	s_cselect_b32 s0, s3, 0
	v_div_fmas_f64 v[0:1], v[2:3], v[4:5], v[25:26]
	s_delay_alu instid0(VALU_DEP_2)
	v_cndmask_b32_e64 v2, v6, v7, s1
	s_and_b32 s1, s1, exec_lo
	s_cselect_b32 s1, s0, s3
	s_or_b32 vcc_lo, s10, s7
	s_and_b32 s0, s10, exec_lo
	s_cselect_b32 s0, 0, 0x7ff00000
	s_and_b32 s2, s6, exec_lo
	s_cselect_b32 s2, s9, 0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_mov_b32_e32 v3, s2
	s_and_b32 s2, vcc_lo, exec_lo
	s_cselect_b32 s1, 0, s1
	v_bfi_b32 v3, 0x7fffffff, s0, v3
	v_cmp_o_f64_e64 s0, s[8:9], s[8:9]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v2, v2, v3, vcc_lo
	v_div_fixup_f64 v[0:1], v[0:1], 0x40080000, v[12:13]
	v_cndmask_b32_e64 v3, 0x7ff80000, v2, s0
	s_and_b32 s0, s0, exec_lo
	s_cselect_b32 s0, s1, 0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mov_b32_e32 v2, s0
	v_div_scale_f64 v[4:5], null, v[2:3], v[2:3], v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[6:7], v[4:5]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[12:13], -v[4:5], v[6:7], 1.0
	v_fma_f64 v[6:7], v[6:7], v[12:13], v[6:7]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[12:13], -v[4:5], v[6:7], 1.0
	v_fma_f64 v[6:7], v[6:7], v[12:13], v[6:7]
	v_div_scale_f64 v[12:13], vcc_lo, v[0:1], v[2:3], v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[14:15], v[12:13], v[6:7]
	v_fma_f64 v[4:5], -v[4:5], v[14:15], v[12:13]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[4:5], v[4:5], v[6:7], v[14:15]
	v_div_fixup_f64 v[0:1], v[4:5], v[2:3], v[0:1]
	v_mul_lo_u32 v2, v8, s12
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add3_u32 v2, v2, v8, v9
	v_ashrrev_i32_e32 v3, 31, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[2:3], 3, v[2:3]
	v_add_co_u32 v2, vcc_lo, s4, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v3, vcc_lo
	v_add_f64 v[0:1], v[10:11], v[0:1]
	global_store_b64 v[2:3], v[0:1], off
.LBB0_11:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z12oneIterationiiPdS_dd
		.amdhsa_group_segment_fixed_size 8192
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 40
		.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 28
		.amdhsa_next_free_sgpr 18
		.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	_Z12oneIterationiiPdS_dd, .Lfunc_end0-_Z12oneIterationiiPdS_dd
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 3460
; NumSgprs: 20
; NumVgprs: 28
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 8192 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 3
; NumSGPRsForWavesPerEU: 20
; NumVGPRsForWavesPerEU: 28
; 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	_Z21iterationWithOneBlockiiiPdS_dd ; -- Begin function _Z21iterationWithOneBlockiiiPdS_dd
	.globl	_Z21iterationWithOneBlockiiiPdS_dd
	.p2align	8
	.type	_Z21iterationWithOneBlockiiiPdS_dd,@function
_Z21iterationWithOneBlockiiiPdS_dd:     ; @_Z21iterationWithOneBlockiiiPdS_dd
; %bb.0:
	s_load_b128 s[12:15], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_cmp_lt_i32 s13, 1
	s_cbranch_scc1 .LBB1_23
; %bb.1:                                ; %.preheader90.lr.ph
	s_load_b256 s[4:11], s[0:1], 0x10
	s_mov_b32 s1, 0x3fe55555
	s_mov_b32 s0, 0x55555555
	s_mov_b32 s2, 0x968915a9
	s_mov_b32 s16, 0x4222de17
	s_mov_b32 s3, 0x3fba6564
	s_mov_b32 s17, 0x3fbdee67
	s_ashr_i32 s18, s14, 31
	s_mov_b32 s22, 0x652b82fe
	s_mov_b32 s23, 0x3ff71547
	s_waitcnt lgkmcnt(0)
	v_frexp_mant_f64_e64 v[1:2], |s[8:9]|
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_gt_f64_e32 vcc_lo, s[0:1], v[1:2]
	v_cndmask_b32_e64 v3, 0, 1, vcc_lo
	v_ldexp_f64 v[1:2], v[1:2], v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[3:4], v[1:2], 1.0
	v_add_f64 v[9:10], v[1:2], -1.0
	v_rcp_f64_e32 v[5:6], v[3:4]
	v_add_f64 v[11:12], v[3:4], -1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_add_f64 v[1:2], v[1:2], -v[11:12]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[7:8], -v[3:4], v[5:6], 1.0
	v_fma_f64 v[5:6], v[7:8], v[5:6], v[5:6]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[7:8], -v[3:4], v[5:6], 1.0
	v_fma_f64 v[5:6], v[7:8], v[5:6], v[5:6]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[7:8], v[9:10], v[5:6]
	v_mul_f64 v[13:14], v[3:4], v[7:8]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[3:4], v[7:8], v[3:4], -v[13:14]
	v_fma_f64 v[1:2], v[7:8], v[1:2], v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[3:4], v[13:14], v[1:2]
	v_add_f64 v[11:12], v[9:10], -v[3:4]
	v_add_f64 v[13:14], v[3:4], -v[13:14]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[9:10], v[9:10], -v[11:12]
	v_add_f64 v[1:2], v[13:14], -v[1:2]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[3:4], v[9:10], -v[3:4]
	v_add_f64 v[1:2], v[1:2], v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[1:2], v[11:12], v[1:2]
	v_mul_f64 v[1:2], v[5:6], v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[3:4], v[7:8], v[1:2]
	v_add_f64 v[5:6], v[3:4], -v[7:8]
	v_mul_f64 v[7:8], v[3:4], v[3:4]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[1:2], v[1:2], -v[5:6]
	v_fma_f64 v[5:6], v[3:4], v[3:4], -v[7:8]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[9:10], v[1:2], v[1:2]
	v_fma_f64 v[5:6], v[3:4], v[9:10], v[5:6]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[9:10], v[7:8], v[5:6]
	v_fma_f64 v[11:12], v[9:10], s[16:17], s[2:3]
	s_mov_b32 s2, 0x3abe935a
	s_mov_b32 s3, 0x3fbe25e4
	v_add_f64 v[7:8], v[9:10], -v[7:8]
	v_mul_f64 v[17:18], v[3:4], v[9:10]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fma_f64 v[11:12], v[9:10], v[11:12], s[2:3]
	s_mov_b32 s2, 0x47e6c9c2
	s_mov_b32 s3, 0x3fc110ef
	v_add_f64 v[5:6], v[5:6], -v[7:8]
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[11:12], v[9:10], v[11:12], s[2:3]
	s_mov_b32 s2, 0xcfa74449
	s_mov_b32 s3, 0x3fc3b13b
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[11:12], v[9:10], v[11:12], s[2:3]
	s_mov_b32 s2, 0x71bf3c30
	s_mov_b32 s3, 0x3fc745d1
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[11:12], v[9:10], v[11:12], s[2:3]
	s_mov_b32 s2, 0x1c7792ce
	s_mov_b32 s3, 0x3fcc71c7
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[11:12], v[9:10], v[11:12], s[2:3]
	s_mov_b32 s2, 0x924920da
	s_mov_b32 s3, 0x3fd24924
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[11:12], v[9:10], v[11:12], s[2:3]
	s_mov_b32 s2, 0x9999999c
	s_mov_b32 s3, 0x3fd99999
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[11:12], v[9:10], v[11:12], s[2:3]
	s_mov_b32 s3, 0x3c7abc9e
	s_mov_b32 s2, 0x3b39803f
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[13:14], v[9:10], v[11:12]
	v_fma_f64 v[7:8], v[9:10], v[11:12], -v[13:14]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[7:8], v[5:6], v[11:12], v[7:8]
	v_add_f64 v[11:12], v[13:14], v[7:8]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[15:16], v[11:12], s[0:1]
	v_add_f64 v[13:14], v[11:12], -v[13:14]
	s_mov_b32 s1, 0xbfe55555
	s_delay_alu instid0(VALU_DEP_2) | instid1(SALU_CYCLE_1)
	v_add_f64 v[19:20], v[15:16], s[0:1]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_add_f64 v[7:8], v[7:8], -v[13:14]
	v_fma_f64 v[13:14], v[9:10], v[3:4], -v[17:18]
	s_mov_b32 s0, 0xd5df274d
	s_mov_b32 s1, 0x3c8543b0
	v_add_f64 v[11:12], v[11:12], -v[19:20]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[7:8], v[7:8], s[0:1]
	v_fma_f64 v[9:10], v[9:10], v[1:2], v[13:14]
	s_mov_b32 s1, 0x3fe62e42
	s_mov_b32 s0, 0xfefa39ef
	v_ldexp_f64 v[1:2], v[1:2], 1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[7:8], v[7:8], v[11:12]
	v_fma_f64 v[5:6], v[5:6], v[3:4], v[9:10]
	v_ldexp_f64 v[3:4], v[3:4], 1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[9:10], v[15:16], v[7:8]
	v_add_f64 v[11:12], v[17:18], v[5:6]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[13:14], v[15:16], -v[9:10]
	v_mul_f64 v[15:16], v[11:12], v[9:10]
	v_add_f64 v[17:18], v[11:12], -v[17:18]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[7:8], v[7:8], v[13:14]
	v_fma_f64 v[13:14], v[11:12], v[9:10], -v[15:16]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[5:6], v[5:6], -v[17:18]
	v_fma_f64 v[7:8], v[11:12], v[7:8], v[13:14]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[5:6], v[5:6], v[9:10], v[7:8]
	v_frexp_exp_i32_f64_e32 v9, s[8:9]
	v_add_f64 v[7:8], v[15:16], v[5:6]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_subrev_co_ci_u32_e32 v9, vcc_lo, 0, v9, vcc_lo
	v_cvt_f64_i32_e32 v[9:10], v9
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[11:12], v[3:4], v[7:8]
	v_add_f64 v[13:14], v[7:8], -v[15:16]
	v_mul_f64 v[15:16], v[9:10], s[0:1]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[3:4], v[11:12], -v[3:4]
	v_add_f64 v[5:6], v[5:6], -v[13:14]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[13:14], v[9:10], s[0:1], -v[15:16]
	s_add_i32 s1, s14, s18
	s_xor_b32 s19, s1, s18
	v_cmp_eq_f64_e64 s1, s[8:9], 1.0
	s_sub_i32 s15, 0, s19
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f64 v[3:4], v[7:8], -v[3:4]
	v_add_f64 v[1:2], v[1:2], v[5:6]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[5:6], v[9:10], s[2:3], v[13:14]
	s_add_i32 s3, s12, s14
	s_add_i32 s3, s3, -2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_ashr_i32 s16, s3, 31
	s_add_i32 s3, s3, s16
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	s_xor_b32 s3, s3, s16
	s_xor_b32 s16, s16, s18
	v_add_f64 v[1:2], v[1:2], v[3:4]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[3:4], v[15:16], v[5:6]
	v_add_f64 v[7:8], v[11:12], v[1:2]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[15:16], v[3:4], -v[15:16]
	v_add_f64 v[9:10], v[3:4], v[7:8]
	v_add_f64 v[11:12], v[7:8], -v[11:12]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[5:6], v[5:6], -v[15:16]
	v_add_f64 v[13:14], v[9:10], -v[3:4]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[1:2], v[1:2], -v[11:12]
	v_add_f64 v[17:18], v[9:10], -v[13:14]
	v_add_f64 v[7:8], v[7:8], -v[13:14]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[11:12], v[5:6], v[1:2]
	v_add_f64 v[3:4], v[3:4], -v[17:18]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[3:4], v[7:8], v[3:4]
	v_add_f64 v[7:8], v[11:12], -v[5:6]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[3:4], v[11:12], v[3:4]
	v_add_f64 v[11:12], v[11:12], -v[7:8]
	v_add_f64 v[1:2], v[1:2], -v[7:8]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[13:14], v[9:10], v[3:4]
	v_add_f64 v[5:6], v[5:6], -v[11:12]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[7:8], v[13:14], -v[9:10]
	v_add_f64 v[1:2], v[1:2], v[5:6]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[3:4], v[3:4], -v[7:8]
	v_add_f64 v[1:2], v[1:2], v[3:4]
	v_cvt_f32_u32_e32 v3, s19
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_iflag_f32_e32 v3, v3
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v3, 0x4f7ffffe, v3
	v_cvt_u32_f32_e32 v5, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_readfirstlane_b32 s21, v5
	s_mul_i32 s15, s15, s21
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_hi_u32 s15, s21, s15
	s_add_i32 s21, s21, s15
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	s_mul_hi_u32 s15, s3, s21
	v_add_f64 v[3:4], v[13:14], v[1:2]
	s_mul_i32 s17, s15, s19
	s_sub_i32 s3, s3, s17
	s_add_i32 s17, s15, 1
	s_sub_i32 s20, s3, s19
	s_cmp_ge_u32 s3, s19
	s_cselect_b32 s15, s17, s15
	s_cselect_b32 s3, s20, s3
	s_add_i32 s17, s15, 1
	s_cmp_ge_u32 s3, s19
	s_cselect_b32 s3, s17, s15
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_xor_b32 s3, s3, s16
	s_sub_i32 s20, s3, s16
	s_mov_b32 s16, 0
	s_cmp_gt_i32 s20, 0
	s_mov_b32 s3, 0xbc7abc9e
	s_cselect_b32 s15, -1, 0
	s_and_b32 s1, s1, exec_lo
	s_cselect_b32 s17, 0x3ff00000, 2.0
	s_mov_b32 s1, 0xbfe62e42
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[5:6], v[3:4], -v[13:14]
	v_mul_f64 v[7:8], s[16:17], v[3:4]
	v_add_f64 v[1:2], v[1:2], -v[5:6]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[3:4], s[16:17], v[3:4], -v[7:8]
	v_cmp_class_f64_e64 vcc_lo, v[7:8], 0x204
	v_fma_f64 v[1:2], s[16:17], v[1:2], v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[3:4], v[7:8], v[1:2]
	v_dual_cndmask_b32 v6, v4, v8 :: v_dual_cndmask_b32 v5, v3, v7
	v_add_f64 v[3:4], v[3:4], -v[7:8]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_mul_f64 v[9:10], v[5:6], s[22:23]
	v_cmp_nlt_f64_e32 vcc_lo, 0x40900000, v[5:6]
	v_cmp_eq_f64_e64 s23, s[8:9], 0
	v_add_f64 v[1:2], v[1:2], -v[3:4]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rndne_f64_e32 v[9:10], v[9:10]
	v_fma_f64 v[11:12], v[9:10], s[0:1], v[5:6]
	s_mov_b32 s0, 0xfca7ab0c
	s_mov_b32 s1, 0x3e928af3
	v_cvt_i32_f64_e32 v21, v[9:10]
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[11:12], v[9:10], s[2:3], v[11:12]
	s_mov_b32 s2, 0x6a5dcb37
	s_mov_b32 s3, 0x3e5ade15
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[13:14], v[11:12], s[2:3], s[0:1]
	s_mov_b32 s0, 0x623fde64
	s_mov_b32 s1, 0x3ec71dee
	v_div_scale_f64 v[3:4], s2, s[10:11], 0x40080000, s[10:11]
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[13:14], v[11:12], v[13:14], s[0:1]
	s_mov_b32 s0, 0x7c89e6b0
	s_mov_b32 s1, 0x3efa0199
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[13:14], v[11:12], v[13:14], s[0:1]
	s_mov_b32 s0, 0x14761f6e
	s_mov_b32 s1, 0x3f2a01a0
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[13:14], v[11:12], v[13:14], s[0:1]
	s_mov_b32 s0, 0x1852b7b0
	s_mov_b32 s1, 0x3f56c16c
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[13:14], v[11:12], v[13:14], s[0:1]
	s_mov_b32 s0, 0x11122322
	s_mov_b32 s1, 0x3f811111
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[13:14], v[11:12], v[13:14], s[0:1]
	s_mov_b32 s0, 0x555502a1
	s_mov_b32 s1, 0x3fa55555
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[13:14], v[11:12], v[13:14], s[0:1]
	s_mov_b32 s0, 0x55555511
	s_mov_b32 s1, 0x3fc55555
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[13:14], v[11:12], v[13:14], s[0:1]
	s_mov_b32 s0, 0
	s_mov_b32 s1, 0x40080000
	s_delay_alu instid0(SALU_CYCLE_1)
	v_div_scale_f64 v[15:16], null, s[0:1], s[0:1], s[10:11]
	s_mov_b32 s0, 11
	s_mov_b32 s1, 0x3fe00000
	s_delay_alu instid0(VALU_DEP_2) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[13:14], v[11:12], v[13:14], s[0:1]
	v_cmp_ngt_f64_e64 s0, 0xc090cc00, v[5:6]
	v_cmp_neq_f64_e64 s1, 0x7ff00000, |v[5:6]|
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_rcp_f64_e32 v[17:18], v[15:16]
	v_fma_f64 v[13:14], v[11:12], v[13:14], 1.0
	s_delay_alu instid0(VALU_DEP_2)
	v_cndmask_b32_e64 v2, 0, v2, s1
	v_cndmask_b32_e64 v1, 0, v1, s1
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[19:20], -v[15:16], v[17:18], 1.0
	v_fma_f64 v[9:10], v[11:12], v[13:14], 1.0
	v_mul_f64 v[13:14], s[16:17], 0.5
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[11:12], v[17:18], v[19:20], v[17:18]
	v_ldexp_f64 v[9:10], v[9:10], v21
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[7:8], -v[15:16], v[11:12], 1.0
	v_cndmask_b32_e32 v17, 0x7ff00000, v10, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_readfirstlane_b32 s3, v9
	v_cndmask_b32_e64 v18, 0, v17, s0
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_3) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[5:6], v[11:12], v[7:8], v[11:12]
	v_trunc_f64_e32 v[7:8], s[16:17]
	v_trunc_f64_e32 v[10:11], v[13:14]
	s_and_b32 s0, s0, vcc_lo
	s_and_b32 s0, s0, exec_lo
	s_cselect_b32 s3, s3, 0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mov_b32_e32 v17, s3
	v_fma_f64 v[1:2], v[17:18], v[1:2], v[17:18]
	v_cmp_class_f64_e64 vcc_lo, v[17:18], 0x204
	v_mul_f64 v[19:20], v[3:4], v[5:6]
	v_cmp_eq_f64_e64 s0, s[16:17], v[7:8]
	v_cmp_neq_f64_e64 s1, v[10:11], v[13:14]
	v_readfirstlane_b32 s17, v1
	s_and_b32 s22, vcc_lo, exec_lo
	v_cndmask_b32_e32 v1, v2, v18, vcc_lo
	v_cmp_class_f64_e64 s22, s[8:9], 0x204
	s_mov_b32 vcc_lo, s2
	s_cselect_b32 s3, s3, s17
	v_fma_f64 v[3:4], -v[15:16], v[19:20], v[3:4]
	s_and_b32 s17, s0, s1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	s_and_b32 s1, s17, exec_lo
	s_cselect_b32 s1, s9, 0x3ff00000
	v_bfi_b32 v7, 0x7fffffff, v1, s1
	v_cmp_lt_f64_e64 s1, s[8:9], 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v8, 0x7ff80000, v7, s0
	s_and_b32 s0, s0, exec_lo
	s_cselect_b32 s0, s3, 0
	v_div_fmas_f64 v[1:2], v[3:4], v[5:6], v[19:20]
	s_delay_alu instid0(VALU_DEP_2)
	v_cndmask_b32_e64 v3, v7, v8, s1
	s_and_b32 s1, s1, exec_lo
	s_cselect_b32 s1, s0, s3
	s_or_b32 vcc_lo, s23, s22
	s_and_b32 s0, s23, exec_lo
	s_cselect_b32 s0, 0, 0x7ff00000
	s_and_b32 s2, s17, exec_lo
	s_cselect_b32 s2, s9, 0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_mov_b32_e32 v4, s2
	s_and_b32 s2, vcc_lo, exec_lo
	s_cselect_b32 s1, 0, s1
	v_bfi_b32 v4, 0x7fffffff, s0, v4
	v_cmp_o_f64_e64 s0, s[8:9], s[8:9]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v3, v3, v4, vcc_lo
	v_div_fixup_f64 v[1:2], v[1:2], 0x40080000, s[10:11]
	v_cndmask_b32_e64 v4, 0x7ff80000, v3, s0
	s_and_b32 s0, s0, exec_lo
	s_cselect_b32 s0, s1, 0
	s_add_i32 s8, s12, 1
	v_mov_b32_e32 v3, s0
	s_sub_i32 s0, s8, s14
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[5:6], null, v[3:4], v[3:4], v[1:2]
	v_rcp_f64_e32 v[7:8], v[5:6]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[9:10], -v[5:6], v[7:8], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[7:8], v[7:8], v[9:10], v[7:8]
	v_fma_f64 v[9:10], -v[5:6], v[7:8], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[7:8], v[7:8], v[9:10], v[7:8]
	v_div_scale_f64 v[9:10], vcc_lo, v[1:2], v[3:4], v[1:2]
	v_mul_f64 v[11:12], v[9:10], v[7:8]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[5:6], -v[5:6], v[11:12], v[9:10]
	v_div_fmas_f64 v[5:6], v[5:6], v[7:8], v[11:12]
	v_mul_hi_u32 v7, v0, s21
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_div_fixup_f64 v[8:9], v[5:6], v[3:4], v[1:2]
	v_mul_lo_u32 v1, v7, s19
	v_add_nc_u32_e32 v2, 1, v7
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v1, v0, v1
	v_subrev_nc_u32_e32 v3, s19, v1
	v_cmp_le_u32_e32 vcc_lo, s19, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v2, v7, v2 :: v_dual_cndmask_b32 v1, v1, v3
	v_add_nc_u32_e32 v3, 1, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_le_u32_e32 vcc_lo, s19, v1
	v_cndmask_b32_e32 v1, v2, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v1, s18, v1
	v_fma_f64 v[10:11], 0xc0200000, v[8:9], 1.0
	v_subrev_nc_u32_e32 v3, s18, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v1, v3, s14
	v_mul_lo_u32 v14, v3, s20
	v_sub_nc_u32_e32 v1, v0, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v16, s20, v14
	v_mul_lo_u32 v15, v1, s20
	v_mad_u64_u32 v[1:2], null, s0, v3, v[0:1]
	v_mov_b32_e32 v2, 1
	v_dual_mov_b32 v0, 0 :: v_dual_mov_b32 v3, -1
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_nc_u32_e32 v17, s20, v15
	v_mul_lo_u32 v18, v1, s20
.LBB1_2:                                ; %.preheader90
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB1_4 Depth 2
                                        ;       Child Loop BB1_5 Depth 3
                                        ;         Child Loop BB1_8 Depth 4
                                        ;     Child Loop BB1_15 Depth 2
                                        ;       Child Loop BB1_16 Depth 3
	s_and_not1_b32 vcc_lo, exec_lo, s15
	s_cbranch_vccnz .LBB1_13
; %bb.3:                                ; %.preheader89.preheader
                                        ;   in Loop: Header=BB1_2 Depth=1
	v_mov_b32_e32 v19, v14
	s_mov_b32 s9, 0
.LBB1_4:                                ; %.preheader89
                                        ;   Parent Loop BB1_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB1_5 Depth 3
                                        ;         Child Loop BB1_8 Depth 4
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_lo_u32 v20, v19, s8
	v_cmp_ne_u32_e32 vcc_lo, 0, v19
	v_cmp_gt_i32_e64 s0, s12, v19
	v_mov_b32_e32 v21, v15
	s_mov_b32 s10, 0
.LBB1_5:                                ;   Parent Loop BB1_2 Depth=1
                                        ;     Parent Loop BB1_4 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB1_8 Depth 4
	s_and_saveexec_b32 s11, vcc_lo
	s_cbranch_execz .LBB1_10
; %bb.6:                                ;   in Loop: Header=BB1_5 Depth=3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cmp_ne_u32_e64 s1, 0, v21
	v_cmp_gt_i32_e64 s2, s12, v21
	s_and_b32 s1, s0, s1
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	s_and_b32 s1, s2, s1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_b32 exec_lo, exec_lo, s1
	s_cbranch_execz .LBB1_10
; %bb.7:                                ; %.preheader103.preheader
                                        ;   in Loop: Header=BB1_5 Depth=3
	v_mov_b32_e32 v12, 0
	v_mov_b32_e32 v13, 0
	s_mov_b64 s[2:3], 0
.LBB1_8:                                ; %.preheader103
                                        ;   Parent Loop BB1_2 Depth=1
                                        ;     Parent Loop BB1_4 Depth=2
                                        ;       Parent Loop BB1_5 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 m0, s2
	v_dual_mov_b32 v1, v0 :: v_dual_mov_b32 v4, v2
	v_dual_mov_b32 v5, v3 :: v_dual_mov_b32 v6, v2
	v_dual_mov_b32 v7, v3 :: v_dual_mov_b32 v22, v2
	v_movrels_b32_e32 v1, v0
	v_dual_mov_b32 v23, v3 :: v_dual_mov_b32 v24, v0
	v_dual_mov_b32 v25, v0 :: v_dual_mov_b32 v26, v2
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_add_nc_u32_e32 v1, v1, v19
	v_dual_mov_b32 v27, v2 :: v_dual_mov_b32 v28, v3
	v_mov_b32_e32 v29, v3
	v_movrels_b32_e32 v4, v22
	v_mul_lo_u32 v1, v1, s8
	s_add_u32 s2, s2, 1
	s_addc_u32 s3, s3, 0
	s_cmp_eq_u32 s2, 8
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add3_u32 v4, v4, v21, v1
	v_ashrrev_i32_e32 v5, 31, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[4:5], 3, v[4:5]
	v_add_co_u32 v4, s1, s4, v4
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v5, s1, s5, v5, s1
	global_load_b64 v[4:5], v[4:5], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[12:13], v[12:13], v[4:5]
	s_cbranch_scc0 .LBB1_8
; %bb.9:                                ;   in Loop: Header=BB1_5 Depth=3
	v_add_nc_u32_e32 v4, v21, v20
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v5, 31, v4
	v_lshlrev_b64 v[4:5], 3, v[4:5]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v6, s1, s4, v4
	v_add_co_ci_u32_e64 v7, s1, s5, v5, s1
	v_add_co_u32 v4, s1, s6, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v5, s1, s7, v5, s1
	global_load_b64 v[6:7], v[6:7], off
	s_waitcnt vmcnt(0)
	v_mul_f64 v[6:7], v[10:11], v[6:7]
	v_fma_f64 v[6:7], v[8:9], v[12:13], v[6:7]
	global_store_b64 v[4:5], v[6:7], off
.LBB1_10:                               ;   in Loop: Header=BB1_5 Depth=3
	s_or_b32 exec_lo, exec_lo, s11
	v_add_nc_u32_e32 v21, 1, v21
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_ge_i32_e64 s1, v21, v17
	s_or_b32 s10, s1, s10
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s10
	s_cbranch_execnz .LBB1_5
; %bb.11:                               ; %._crit_edge
                                        ;   in Loop: Header=BB1_4 Depth=2
	s_or_b32 exec_lo, exec_lo, s10
	v_add_nc_u32_e32 v19, 1, v19
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_cmp_ge_i32_e32 vcc_lo, v19, v16
	s_or_b32 s9, vcc_lo, s9
	s_and_not1_b32 exec_lo, exec_lo, s9
	s_cbranch_execnz .LBB1_4
; %bb.12:                               ; %Flow132
                                        ;   in Loop: Header=BB1_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s9
.LBB1_13:                               ; %._crit_edge95
                                        ;   in Loop: Header=BB1_2 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s15
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_cbranch_vccnz .LBB1_22
; %bb.14:                               ; %.preheader.preheader
                                        ;   in Loop: Header=BB1_2 Depth=1
	v_mov_b32_e32 v1, v18
	v_mov_b32_e32 v6, v14
	s_mov_b32 s3, 0
.LBB1_15:                               ; %.preheader
                                        ;   Parent Loop BB1_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB1_16 Depth 3
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_ne_u32_e32 vcc_lo, 0, v6
	v_cmp_gt_i32_e64 s0, s12, v6
	v_dual_mov_b32 v4, v1 :: v_dual_mov_b32 v7, v15
	s_mov_b32 s9, 0
.LBB1_16:                               ;   Parent Loop BB1_2 Depth=1
                                        ;     Parent Loop BB1_15 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_and_saveexec_b32 s10, vcc_lo
	s_cbranch_execz .LBB1_19
; %bb.17:                               ;   in Loop: Header=BB1_16 Depth=3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cmp_ne_u32_e64 s1, 0, v7
	v_cmp_gt_i32_e64 s2, s12, v7
	s_and_b32 s1, s0, s1
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	s_and_b32 s1, s2, s1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_b32 exec_lo, exec_lo, s1
	s_cbranch_execz .LBB1_19
; %bb.18:                               ;   in Loop: Header=BB1_16 Depth=3
	v_ashrrev_i32_e32 v5, 31, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[12:13], 3, v[4:5]
	v_add_co_u32 v19, s1, s6, v12
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v20, s1, s7, v13, s1
	v_add_co_u32 v12, s1, s4, v12
	v_add_co_ci_u32_e64 v13, s1, s5, v13, s1
	global_load_b64 v[19:20], v[19:20], off
	s_waitcnt vmcnt(0)
	global_store_b64 v[12:13], v[19:20], off
.LBB1_19:                               ;   in Loop: Header=BB1_16 Depth=3
	s_or_b32 exec_lo, exec_lo, s10
	v_add_nc_u32_e32 v7, 1, v7
	v_add_nc_u32_e32 v4, 1, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_ge_i32_e64 s1, v7, v17
	s_or_b32 s9, s1, s9
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s9
	s_cbranch_execnz .LBB1_16
; %bb.20:                               ; %._crit_edge98
                                        ;   in Loop: Header=BB1_15 Depth=2
	s_or_b32 exec_lo, exec_lo, s9
	v_add_nc_u32_e32 v6, 1, v6
	v_add_nc_u32_e32 v1, s8, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_cmp_ge_i32_e32 vcc_lo, v6, v16
	s_or_b32 s3, vcc_lo, s3
	s_and_not1_b32 exec_lo, exec_lo, s3
	s_cbranch_execnz .LBB1_15
; %bb.21:                               ; %Flow129
                                        ;   in Loop: Header=BB1_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s3
.LBB1_22:                               ; %._crit_edge100
                                        ;   in Loop: Header=BB1_2 Depth=1
	s_add_i32 s16, s16, 1
	s_waitcnt_vscnt null, 0x0
	s_cmp_eq_u32 s16, s13
	s_barrier
	buffer_gl0_inv
	s_cbranch_scc0 .LBB1_2
.LBB1_23:                               ; %._crit_edge102
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z21iterationWithOneBlockiiiPdS_dd
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 48
		.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 30
		.amdhsa_next_free_sgpr 24
		.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	_Z21iterationWithOneBlockiiiPdS_dd, .Lfunc_end1-_Z21iterationWithOneBlockiiiPdS_dd
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 3468
; NumSgprs: 26
; NumVgprs: 30
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 3
; VGPRBlocks: 3
; NumSGPRsForWavesPerEU: 26
; NumVGPRsForWavesPerEU: 30
; 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	_Z12cudaGetErroriPdS_S_ ; -- Begin function _Z12cudaGetErroriPdS_S_
	.globl	_Z12cudaGetErroriPdS_S_
	.p2align	8
	.type	_Z12cudaGetErroriPdS_S_,@function
_Z12cudaGetErroriPdS_S_:                ; @_Z12cudaGetErroriPdS_S_
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x2c
	s_load_b32 s3, s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_add_i32 s2, s3, 1
	s_mul_i32 s2, s2, s2
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_cmp_gt_i32_e32 vcc_lo, s2, v1
	s_and_saveexec_b32 s2, vcc_lo
	s_cbranch_execz .LBB2_2
; %bb.1:
	s_load_b128 s[4:7], s[0:1], 0x8
	v_ashrrev_i32_e32 v2, 31, v1
	s_load_b64 s[0:1], s[0:1], 0x18
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 3, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s4, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s7, v1, vcc_lo
	global_load_b64 v[2:3], v[2:3], off
	global_load_b64 v[0:1], v[0:1], off
	s_load_b64 s[2:3], s[0:1], 0x0
	s_waitcnt vmcnt(0)
	v_add_f64 v[0:1], v[2:3], -v[0:1]
	v_mov_b32_e32 v2, 0
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[0:1], v[0:1], v[0:1], s[2:3]
	global_store_b64 v2, v[0:1], s[0:1]
.LBB2_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z12cudaGetErroriPdS_S_
		.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 4
		.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	_Z12cudaGetErroriPdS_S_, .Lfunc_end2-_Z12cudaGetErroriPdS_S_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 208
; NumSgprs: 18
; NumVgprs: 4
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 4
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .offset:         4
        .size:           4
        .value_kind:     by_value
      - .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:           8
        .value_kind:     by_value
      - .offset:         32
        .size:           8
        .value_kind:     by_value
    .group_segment_fixed_size: 8192
    .kernarg_segment_align: 8
    .kernarg_segment_size: 40
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z12oneIterationiiPdS_dd
    .private_segment_fixed_size: 0
    .sgpr_count:     20
    .sgpr_spill_count: 0
    .symbol:         _Z12oneIterationiiPdS_dd.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     28
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .offset:         4
        .size:           4
        .value_kind:     by_value
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .offset:         32
        .size:           8
        .value_kind:     by_value
      - .offset:         40
        .size:           8
        .value_kind:     by_value
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 48
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z21iterationWithOneBlockiiiPdS_dd
    .private_segment_fixed_size: 0
    .sgpr_count:     26
    .sgpr_spill_count: 0
    .symbol:         _Z21iterationWithOneBlockiiiPdS_dd.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     30
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         36
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         44
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         46
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         48
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         50
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         52
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         54
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         96
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 288
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z12cudaGetErroriPdS_S_
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z12cudaGetErroriPdS_S_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     4
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
