/*******************************************************************************
 * serveral useful gpu functions will be defined in this file to facilitate
 * the set calculus toolbox scheme, i.e., to calculate gradients,normal vectors,
 * curvatures, Heaviside function and Dirac_Delta function 
 ******************************************************************************/

__device__ inline
double max2(double x, double y)
{
	return (x<y) ? y : x;
}

__device__ inline
double min2(double x, double y)
{
	return (x<y) ? x : y;
}

// convert subindex to linear index
__device__ inline
int sub2ind(int row_idx, int col_idx, int pge_idx, int rows, int cols, int pges)
{	
	int row_idxn = min2(rows-1, max2(0, row_idx));
	int col_idxn = min2(cols-1, max2(0, col_idx));
	int pge_idxn = min2(pges-1, max2(0, pge_idx));

	int ind = pge_idxn * rows * cols + col_idxn * rows + row_idxn;

	return ind;
}

__global__ 
void set_calculus_toolbox(double * Fx, double * Fy, double * Fz, double * FGradMag,	double * Nx, double * Ny, double * Nz, double * Fxx, double * Fyy, double * Fzz, double * Fxy, double * Fyz, double * Fzx, double * FLaplacian, double * MeanCurvature, double * GaussianCurvature, double * Heaviside, double * DiracDelta, double const * lsf, double const * HPrimal, int rows, int cols, int pges, double dx, double dy, double dz, double ds, int num_ele)
{
	int row_idx = blockIdx.x * blockDim.x + threadIdx.x;
	int col_idx = blockIdx.y * blockDim.y + threadIdx.y;
	int pge_idx = blockIdx.z * blockDim.z + threadIdx.z;

	if(row_idx >= rows || col_idx >= cols || pge_idx >= pges){
		return;
	}

	int ind = sub2ind(row_idx, col_idx, pge_idx, rows, cols, pges);

	int right 	= sub2ind(row_idx, col_idx+1, pge_idx, rows, cols, pges);
	int left 	= sub2ind(row_idx, col_idx-1, pge_idx, rows, cols, pges);

	int front 	= sub2ind(row_idx+1, col_idx, pge_idx, rows, cols, pges);	
	int back 	= sub2ind(row_idx-1, col_idx, pge_idx, rows, cols, pges);

	int up 		= sub2ind(row_idx, col_idx, pge_idx+1, rows, cols, pges);	
	int down 	= sub2ind(row_idx, col_idx, pge_idx-1, rows, cols, pges);

	double fx = (lsf[right] - lsf[left]) / (2*dx);
	double fy = (lsf[front] - lsf[back]) / (2*dy);
	double fz = (lsf[up] - lsf[down]) / (2*dz);
	double fGradMag = sqrt(fx*fx + fy*fy + fz*fz); 
	fGradMag = max2(fGradMag, 1e-14); // avoid signularity
	
	Fx[ind] = fx;
	Fy[ind] = fy;
	Fz[ind] = fz;
	FGradMag[ind] = fGradMag;

	Nx[ind] = fx / fGradMag;
	Ny[ind] = fy / fGradMag;
	Nz[ind] = fz / fGradMag;

	int front_right = sub2ind(row_idx+1, col_idx+1, pge_idx, rows, cols, pges);
	int back_left 	= sub2ind(row_idx-1, col_idx-1, pge_idx, rows, cols, pges);
	int back_right 	= sub2ind(row_idx-1, col_idx+1, pge_idx, rows, cols, pges);
	int front_left 	= sub2ind(row_idx+1, col_idx-1, pge_idx, rows, cols, pges);

	int front_up 	= sub2ind(row_idx+1, col_idx, pge_idx+1, rows, cols, pges);
	int back_down 	= sub2ind(row_idx-1, col_idx, pge_idx-1, rows, cols, pges);
	int front_down 	= sub2ind(row_idx+1, col_idx, pge_idx-1, rows, cols, pges);
	int back_up 	= sub2ind(row_idx-1, col_idx, pge_idx+1, rows, cols, pges);

	int right_up 	= sub2ind(row_idx, col_idx+1, pge_idx+1, rows, cols, pges);
	int left_down 	= sub2ind(row_idx, col_idx-1, pge_idx-1, rows, cols, pges);
	int right_down 	= sub2ind(row_idx, col_idx+1, pge_idx-1, rows, cols, pges);
	int left_up 	= sub2ind(row_idx, col_idx-1, pge_idx+1, rows, cols, pges);

	double fxx = (lsf[right] - 2*lsf[ind] + lsf[left]) / (dx*dx);
	double fyy = (lsf[front] - 2*lsf[ind] + lsf[back]) / (dy*dy);
	double fzz = (lsf[up] - 2*lsf[ind] + lsf[down]) / (dz*dz);
	double fxy = (lsf[front_right]+lsf[back_left]-lsf[front_left]-lsf[back_right]) / (4*ds*ds);
	double fyz = (lsf[front_up]+lsf[back_down]-lsf[front_down]-lsf[back_up]) / (4*ds*ds);
	double fzx = (lsf[right_up]+lsf[left_down]-lsf[right_down]-lsf[left_up]) / (4*ds*ds);
	double fLaplacian = fxx + fyy + fzz;

	Fxx[ind] = fxx;
	Fyy[ind] = fyy;
	Fzz[ind] = fzz;
	Fxy[ind] = fxy;
	Fyz[ind] = fyz;
	Fzx[ind] = fzx;
	FLaplacian[ind] = fLaplacian;

	// calculate mean curvature
	double col1 = fxx*fx + fxy*fy + fzx*fz;
	double col2 = fxy*fx + fyy*fy + fyz*fz;
	double col3 = fzx*fx + fyz*fy + fzz*fz;
	
	MeanCurvature[ind] = fLaplacian/fGradMag - (fx*col1+fy*col2+fz*col3)/pow(fGradMag,3);

	// calculate Gaussian curvature
	col1 = (fyy*fzz-fyz*fyz)*fx + (fzx*fyz-fxy*fzz)*fy + (fxy*fyz-fzx*fyy)*fz;
	col2 = (fyz*fzx-fxy*fzz)*fx + (fxx*fzz-fzx*fzx)*fy + (fzx*fxy-fxx*fyz)*fz;
	col3 = (fxy*fyz-fyy*fzx)*fx + (fzx*fxy-fxx*fyz)*fy + (fxx*fyy-fxy*fxy)*fz;

	GaussianCurvature[ind] = (fx*col1+fy*col2+fz*col3) / pow(fGradMag,4);

	// calculate Heaviside function
	double px = (HPrimal[right] - HPrimal[left]) / (2*dx);
	double py = (HPrimal[front] - HPrimal[back]) / (2*dy);
	double pz = (HPrimal[up] - HPrimal[down]) / (2*dz);

	double dot_DHPrimal_DF = px*fx + py*fy + pz*fz;

	Heaviside[ind] = dot_DHPrimal_DF / pow(fGradMag,2);

	// calculate DiraDelta function
	double pxx = (HPrimal[right] - 2*HPrimal[ind] +HPrimal[left]) / (dx*dx);
	double pyy = (HPrimal[front] - 2*HPrimal[ind] + HPrimal[back]) / (dy*dy);
	double pzz = (HPrimal[up] - 2*HPrimal[ind] + HPrimal[down]) / (dz*dz);
	double pLaplacian = pxx + pyy + pzz;

	DiracDelta[ind] = pLaplacian/pow(fGradMag,2) - dot_DHPrimal_DF*fLaplacian/pow(fGradMag,4);
}	

	.file	"tmpxft_002bdc83_00000000-6_calculus_toolbox.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2013:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2013:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z88__device_stub__Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddiPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi
	.type	_Z88__device_stub__Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddiPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi, @function
_Z88__device_stub__Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddiPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi:
.LFB2035:
	.cfi_startproc
	endbr64
	subq	$504, %rsp
	.cfi_def_cfa_offset 512
	movq	512(%rsp), %rax
	movq	%rdi, 184(%rsp)
	leaq	216(%rsp), %rdi
	movq	%rsi, 176(%rsp)
	leaq	228(%rsp), %rsi
	movq	%rax, 136(%rsp)
	movq	520(%rsp), %rax
	movq	%rdx, 168(%rsp)
	leaq	200(%rsp), %rdx
	movq	%rax, 128(%rsp)
	movq	528(%rsp), %rax
	movq	%rcx, 160(%rsp)
	leaq	208(%rsp), %rcx
	movq	%rax, 120(%rsp)
	movq	536(%rsp), %rax
	movq	%r8, 152(%rsp)
	movq	%rax, 112(%rsp)
	movq	544(%rsp), %rax
	movq	%r9, 144(%rsp)
	movq	%rax, 104(%rsp)
	movq	552(%rsp), %rax
	movsd	%xmm0, 24(%rsp)
	movq	%rax, 96(%rsp)
	movq	560(%rsp), %rax
	movsd	%xmm1, 16(%rsp)
	movq	%rax, 88(%rsp)
	movq	568(%rsp), %rax
	movsd	%xmm2, 8(%rsp)
	movq	%rax, 80(%rsp)
	movq	576(%rsp), %rax
	movsd	%xmm3, (%rsp)
	movq	%rax, 72(%rsp)
	movq	584(%rsp), %rax
	movq	%rax, 64(%rsp)
	movq	592(%rsp), %rax
	movq	%rax, 56(%rsp)
	movq	600(%rsp), %rax
	movq	%rax, 48(%rsp)
	movq	608(%rsp), %rax
	movq	%rax, 40(%rsp)
	movq	616(%rsp), %rax
	movq	%rax, 32(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 488(%rsp)
	xorl	%eax, %eax
	leaq	184(%rsp), %rax
	movq	%rax, 264(%rsp)
	leaq	176(%rsp), %rax
	movq	%rax, 272(%rsp)
	leaq	168(%rsp), %rax
	movq	%rax, 280(%rsp)
	leaq	160(%rsp), %rax
	movq	%rax, 288(%rsp)
	leaq	152(%rsp), %rax
	movq	%rax, 296(%rsp)
	leaq	144(%rsp), %rax
	movq	%rax, 304(%rsp)
	leaq	136(%rsp), %rax
	movq	%rax, 312(%rsp)
	leaq	128(%rsp), %rax
	movq	%rax, 320(%rsp)
	leaq	120(%rsp), %rax
	movq	%rax, 328(%rsp)
	leaq	112(%rsp), %rax
	movq	%rax, 336(%rsp)
	leaq	104(%rsp), %rax
	movq	%rax, 344(%rsp)
	leaq	96(%rsp), %rax
	movq	%rax, 352(%rsp)
	leaq	88(%rsp), %rax
	movq	%rax, 360(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 368(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 376(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 384(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 392(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 400(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 408(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 416(%rsp)
	leaq	624(%rsp), %rax
	movq	%rax, 424(%rsp)
	leaq	632(%rsp), %rax
	movq	%rax, 432(%rsp)
	leaq	640(%rsp), %rax
	movq	%rax, 440(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 448(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 456(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 464(%rsp)
	movq	%rsp, %rax
	movq	%rax, 472(%rsp)
	leaq	648(%rsp), %rax
	movq	%rax, 480(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 216(%rsp)
	movl	$1, 224(%rsp)
	movq	%rax, 228(%rsp)
	movl	$1, 236(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L2
	pushq	208(%rsp)
	.cfi_def_cfa_offset 520
	leaq	_Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi(%rip), %rdi
	pushq	208(%rsp)
	.cfi_def_cfa_offset 528
	movq	244(%rsp), %rcx
	movl	252(%rsp), %r8d
	movq	232(%rsp), %rsi
	movl	240(%rsp), %edx
	leaq	280(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 520
	popq	%rdx
	.cfi_def_cfa_offset 512
.L2:
	movq	488(%rsp), %rax
	subq	%fs:40, %rax
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	addq	$504, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2035:
	.size	_Z88__device_stub__Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddiPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi, .-_Z88__device_stub__Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddiPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi
	.globl	_Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi
	.type	_Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi, @function
_Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi:
.LFB2036:
	.cfi_startproc
	endbr64
	jmp	_Z88__device_stub__Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddiPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi
	.cfi_endproc
.LFE2036:
	.size	_Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi, .-_Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"_Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2038:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdx
	movq	%rax, %rdi
	leaq	_Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE2038:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:


#include <hip/hip_runtime.h>
/*******************************************************************************
 * serveral useful gpu functions will be defined in this file to facilitate
 * the set calculus toolbox scheme, i.e., to calculate gradients,normal vectors,
 * curvatures, Heaviside function and Dirac_Delta function 
 ******************************************************************************/

__device__ inline
double max2(double x, double y)
{
	return (x<y) ? y : x;
}

__device__ inline
double min2(double x, double y)
{
	return (x<y) ? x : y;
}

// convert subindex to linear index
__device__ inline
int sub2ind(int row_idx, int col_idx, int pge_idx, int rows, int cols, int pges)
{	
	int row_idxn = min2(rows-1, max2(0, row_idx));
	int col_idxn = min2(cols-1, max2(0, col_idx));
	int pge_idxn = min2(pges-1, max2(0, pge_idx));

	int ind = pge_idxn * rows * cols + col_idxn * rows + row_idxn;

	return ind;
}

__global__ 
void set_calculus_toolbox(double * Fx, double * Fy, double * Fz, double * FGradMag,	double * Nx, double * Ny, double * Nz, double * Fxx, double * Fyy, double * Fzz, double * Fxy, double * Fyz, double * Fzx, double * FLaplacian, double * MeanCurvature, double * GaussianCurvature, double * Heaviside, double * DiracDelta, double const * lsf, double const * HPrimal, int rows, int cols, int pges, double dx, double dy, double dz, double ds, int num_ele)
{
	int row_idx = blockIdx.x * blockDim.x + threadIdx.x;
	int col_idx = blockIdx.y * blockDim.y + threadIdx.y;
	int pge_idx = blockIdx.z * blockDim.z + threadIdx.z;

	if(row_idx >= rows || col_idx >= cols || pge_idx >= pges){
		return;
	}

	int ind = sub2ind(row_idx, col_idx, pge_idx, rows, cols, pges);

	int right 	= sub2ind(row_idx, col_idx+1, pge_idx, rows, cols, pges);
	int left 	= sub2ind(row_idx, col_idx-1, pge_idx, rows, cols, pges);

	int front 	= sub2ind(row_idx+1, col_idx, pge_idx, rows, cols, pges);	
	int back 	= sub2ind(row_idx-1, col_idx, pge_idx, rows, cols, pges);

	int up 		= sub2ind(row_idx, col_idx, pge_idx+1, rows, cols, pges);	
	int down 	= sub2ind(row_idx, col_idx, pge_idx-1, rows, cols, pges);

	double fx = (lsf[right] - lsf[left]) / (2*dx);
	double fy = (lsf[front] - lsf[back]) / (2*dy);
	double fz = (lsf[up] - lsf[down]) / (2*dz);
	double fGradMag = sqrt(fx*fx + fy*fy + fz*fz); 
	fGradMag = max2(fGradMag, 1e-14); // avoid signularity
	
	Fx[ind] = fx;
	Fy[ind] = fy;
	Fz[ind] = fz;
	FGradMag[ind] = fGradMag;

	Nx[ind] = fx / fGradMag;
	Ny[ind] = fy / fGradMag;
	Nz[ind] = fz / fGradMag;

	int front_right = sub2ind(row_idx+1, col_idx+1, pge_idx, rows, cols, pges);
	int back_left 	= sub2ind(row_idx-1, col_idx-1, pge_idx, rows, cols, pges);
	int back_right 	= sub2ind(row_idx-1, col_idx+1, pge_idx, rows, cols, pges);
	int front_left 	= sub2ind(row_idx+1, col_idx-1, pge_idx, rows, cols, pges);

	int front_up 	= sub2ind(row_idx+1, col_idx, pge_idx+1, rows, cols, pges);
	int back_down 	= sub2ind(row_idx-1, col_idx, pge_idx-1, rows, cols, pges);
	int front_down 	= sub2ind(row_idx+1, col_idx, pge_idx-1, rows, cols, pges);
	int back_up 	= sub2ind(row_idx-1, col_idx, pge_idx+1, rows, cols, pges);

	int right_up 	= sub2ind(row_idx, col_idx+1, pge_idx+1, rows, cols, pges);
	int left_down 	= sub2ind(row_idx, col_idx-1, pge_idx-1, rows, cols, pges);
	int right_down 	= sub2ind(row_idx, col_idx+1, pge_idx-1, rows, cols, pges);
	int left_up 	= sub2ind(row_idx, col_idx-1, pge_idx+1, rows, cols, pges);

	double fxx = (lsf[right] - 2*lsf[ind] + lsf[left]) / (dx*dx);
	double fyy = (lsf[front] - 2*lsf[ind] + lsf[back]) / (dy*dy);
	double fzz = (lsf[up] - 2*lsf[ind] + lsf[down]) / (dz*dz);
	double fxy = (lsf[front_right]+lsf[back_left]-lsf[front_left]-lsf[back_right]) / (4*ds*ds);
	double fyz = (lsf[front_up]+lsf[back_down]-lsf[front_down]-lsf[back_up]) / (4*ds*ds);
	double fzx = (lsf[right_up]+lsf[left_down]-lsf[right_down]-lsf[left_up]) / (4*ds*ds);
	double fLaplacian = fxx + fyy + fzz;

	Fxx[ind] = fxx;
	Fyy[ind] = fyy;
	Fzz[ind] = fzz;
	Fxy[ind] = fxy;
	Fyz[ind] = fyz;
	Fzx[ind] = fzx;
	FLaplacian[ind] = fLaplacian;

	// calculate mean curvature
	double col1 = fxx*fx + fxy*fy + fzx*fz;
	double col2 = fxy*fx + fyy*fy + fyz*fz;
	double col3 = fzx*fx + fyz*fy + fzz*fz;
	
	MeanCurvature[ind] = fLaplacian/fGradMag - (fx*col1+fy*col2+fz*col3)/pow(fGradMag,3);

	// calculate Gaussian curvature
	col1 = (fyy*fzz-fyz*fyz)*fx + (fzx*fyz-fxy*fzz)*fy + (fxy*fyz-fzx*fyy)*fz;
	col2 = (fyz*fzx-fxy*fzz)*fx + (fxx*fzz-fzx*fzx)*fy + (fzx*fxy-fxx*fyz)*fz;
	col3 = (fxy*fyz-fyy*fzx)*fx + (fzx*fxy-fxx*fyz)*fy + (fxx*fyy-fxy*fxy)*fz;

	GaussianCurvature[ind] = (fx*col1+fy*col2+fz*col3) / pow(fGradMag,4);

	// calculate Heaviside function
	double px = (HPrimal[right] - HPrimal[left]) / (2*dx);
	double py = (HPrimal[front] - HPrimal[back]) / (2*dy);
	double pz = (HPrimal[up] - HPrimal[down]) / (2*dz);

	double dot_DHPrimal_DF = px*fx + py*fy + pz*fz;

	Heaviside[ind] = dot_DHPrimal_DF / pow(fGradMag,2);

	// calculate DiraDelta function
	double pxx = (HPrimal[right] - 2*HPrimal[ind] +HPrimal[left]) / (dx*dx);
	double pyy = (HPrimal[front] - 2*HPrimal[ind] + HPrimal[back]) / (dy*dy);
	double pzz = (HPrimal[up] - 2*HPrimal[ind] + HPrimal[down]) / (dz*dz);
	double pLaplacian = pxx + pyy + pzz;

	DiracDelta[ind] = pLaplacian/pow(fGradMag,2) - dot_DHPrimal_DF*fLaplacian/pow(fGradMag,4);
}	

	.text
	.file	"calculus_toolbox.hip"
	.globl	_Z35__device_stub__set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi # -- Begin function _Z35__device_stub__set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi
	.type	_Z35__device_stub__set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi,@function
_Z35__device_stub__set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi: # @_Z35__device_stub__set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi
	.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	$352, %rsp                      # imm = 0x160
	.cfi_def_cfa_offset 400
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	88(%rsp), %r10
	movq	%rdi, (%r10)
	leaq	80(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	72(%rsp), %r11
	movq	%rdx, (%r11)
	leaq	64(%rsp), %r14
	movq	%rcx, (%r14)
	leaq	56(%rsp), %r15
	movq	%r8, (%r15)
	leaq	48(%rsp), %r8
	movq	%r9, (%r8)
	leaq	40(%rsp), %rax
	movsd	%xmm0, (%rax)
	leaq	32(%rsp), %rcx
	movsd	%xmm1, (%rcx)
	leaq	24(%rsp), %rdx
	movsd	%xmm2, (%rdx)
	leaq	16(%rsp), %rsi
	movsd	%xmm3, (%rsi)
	leaq	128(%rsp), %rbx
	movq	%r10, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%r11, 16(%rbx)
	movq	%r14, 24(%rbx)
	movq	%r15, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	400(%rsp), %rdi
	movq	%rdi, 48(%rbx)
	leaq	408(%rsp), %rdi
	movq	%rdi, 56(%rbx)
	leaq	416(%rsp), %rdi
	movq	%rdi, 64(%rbx)
	leaq	424(%rsp), %rdi
	movq	%rdi, 72(%rbx)
	leaq	432(%rsp), %rdi
	movq	%rdi, 80(%rbx)
	leaq	440(%rsp), %rdi
	movq	%rdi, 88(%rbx)
	leaq	448(%rsp), %rdi
	movq	%rdi, 96(%rbx)
	leaq	456(%rsp), %rdi
	movq	%rdi, 104(%rbx)
	leaq	464(%rsp), %rdi
	movq	%rdi, 112(%rbx)
	leaq	472(%rsp), %rdi
	movq	%rdi, 120(%rbx)
	leaq	480(%rsp), %rdi
	movq	%rdi, 128(%rbx)
	leaq	488(%rsp), %rdi
	movq	%rdi, 136(%rbx)
	leaq	496(%rsp), %rdi
	movq	%rdi, 144(%rbx)
	leaq	504(%rsp), %rdi
	movq	%rdi, 152(%rbx)
	leaq	512(%rsp), %rdi
	movq	%rdi, 160(%rbx)
	leaq	520(%rsp), %rdi
	movq	%rdi, 168(%rbx)
	leaq	528(%rsp), %rdi
	movq	%rdi, 176(%rbx)
	movq	%rax, 184(%rbx)
	movq	%rcx, 192(%rbx)
	movq	%rdx, 200(%rbx)
	movq	%rsi, 208(%rbx)
	leaq	536(%rsp), %rax
	movq	%rax, 216(%rbx)
	leaq	112(%rsp), %r14
	leaq	96(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%rsp, %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$368, %rsp                      # imm = 0x170
	.cfi_adjust_cfa_offset -368
	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	_Z35__device_stub__set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi, .Lfunc_end0-_Z35__device_stub__set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	jne	.LBB1_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rdi
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB1_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$40, %rsp
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end1:
	.size	__hip_module_ctor, .Lfunc_end1-__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	.LBB2_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
.LBB2_2:
	retq
.Lfunc_end2:
	.size	__hip_module_dtor, .Lfunc_end2-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi,@object # @_Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi
	.section	.rodata,"a",@progbits
	.globl	_Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi
	.p2align	3, 0x0
_Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi:
	.quad	_Z35__device_stub__set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi
	.size	_Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi, 8

	.type	.L__unnamed_1,@object           # @0
	.section	.rodata.str1.1,"aMS",@progbits,1
.L__unnamed_1:
	.asciz	"_Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi"
	.size	.L__unnamed_1, 75

	.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 _Z35__device_stub__set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi ; -- Begin function _Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi
	.globl	_Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi
	.p2align	8
	.type	_Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi,@function
_Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi: ; @_Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi
; %bb.0:
	s_clause 0x1
	s_load_b64 s[2:3], s[0:1], 0xe4
	s_load_b128 s[28:31], s[0:1], 0xa0
	v_and_b32_e32 v1, 0x3ff, v0
	v_bfe_u32 v5, v0, 10, 10
	v_bfe_u32 v6, v0, 20, 10
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s4, s2, 16
	s_and_b32 s2, s2, 0xffff
	s_and_b32 s3, s3, 0xffff
	v_mad_u64_u32 v[2:3], null, s13, s2, v[1:2]
	v_mad_u64_u32 v[3:4], null, s14, s4, v[5:6]
	v_mad_u64_u32 v[0:1], null, s15, s3, v[6:7]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cmp_gt_i32_e32 vcc_lo, s28, v2
	v_cmp_gt_i32_e64 s2, s29, v3
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_gt_i32_e64 s3, s30, v0
	s_and_b32 s2, vcc_lo, s2
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	s_and_b32 s2, s2, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_saveexec_b32 s3, s2
	s_cbranch_execz .LBB0_2
; %bb.1:
	v_add_nc_u32_e32 v22, 1, v0
	v_cvt_f64_i32_e32 v[4:5], v0
	s_add_i32 s2, s30, -1
	v_cvt_f64_i32_e32 v[10:11], v3
	v_cvt_f64_i32_e32 v[16:17], s2
	v_cvt_f64_i32_e32 v[22:23], v22
	v_add_nc_u32_e32 v1, 1, v3
	v_add_nc_u32_e32 v8, -1, v3
	s_add_i32 s2, s29, -1
	v_add_nc_u32_e32 v0, -1, v0
	v_cvt_f64_i32_e32 v[18:19], s2
	s_add_i32 s2, s28, -1
	s_load_b256 s[20:27], s[0:1], 0x80
	v_cvt_f64_i32_e32 v[20:21], s2
	v_cvt_f64_i32_e32 v[24:25], v0
	s_load_b256 s[36:43], s[0:1], 0xb0
	s_mov_b32 s8, 0x4222de17
	s_mov_b32 s9, 0x3fbdee67
	s_mov_b32 s30, 0x6a5dcb37
	s_mov_b32 s31, 0x3e5ade15
	s_mov_b32 s54, 0x623fde64
	s_mov_b32 s55, 0x3ec71dee
	s_mov_b32 s56, 0x7c89e6b0
	s_mov_b32 s57, 0x3efa0199
	s_mov_b32 s52, 0x14761f6e
	s_mov_b32 s53, 0x3f2a01a0
	s_mov_b32 s34, 0x1852b7b0
	s_mov_b32 s35, 0x3f56c16c
	v_max_f64 v[22:23], v[22:23], 0
	v_add_nc_u32_e32 v3, 1, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_cvt_f64_i32_e32 v[12:13], v3
	v_max_f64 v[3:4], v[4:5], 0
	v_max_f64 v[24:25], v[24:25], 0
	v_cmp_gt_f64_e32 vcc_lo, v[3:4], v[16:17]
	v_cndmask_b32_e32 v4, v4, v17, vcc_lo
	v_cvt_f64_i32_e32 v[6:7], v1
	v_cndmask_b32_e32 v3, v3, v16, vcc_lo
	v_cmp_gt_f64_e32 vcc_lo, v[22:23], v[16:17]
	v_add_nc_u32_e32 v14, -1, v2
	v_cvt_f64_i32_e32 v[1:2], v2
	v_cvt_f64_i32_e32 v[8:9], v8
	v_cvt_i32_f64_e32 v0, v[3:4]
	v_max_f64 v[5:6], v[6:7], 0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_max_f64 v[1:2], v[1:2], 0
	v_max_f64 v[7:8], v[8:9], 0
	s_delay_alu instid0(VALU_DEP_4)
	v_mul_lo_u32 v0, v0, s29
	v_max_f64 v[9:10], v[10:11], 0
	v_max_f64 v[11:12], v[12:13], 0
	v_cmp_gt_f64_e64 s2, v[5:6], v[18:19]
	v_cmp_gt_f64_e64 s5, v[1:2], v[20:21]
	v_cmp_gt_f64_e64 s3, v[7:8], v[18:19]
	v_cmp_gt_f64_e64 s4, v[9:10], v[18:19]
	v_cmp_gt_f64_e64 s6, v[11:12], v[20:21]
	v_cndmask_b32_e64 v6, v6, v19, s2
	v_cndmask_b32_e64 v5, v5, v18, s2
	v_cmp_gt_f64_e64 s2, v[24:25], v[16:17]
	v_cndmask_b32_e64 v2, v2, v21, s5
	v_cndmask_b32_e64 v1, v1, v20, s5
	s_delay_alu instid0(VALU_DEP_4)
	v_cvt_i32_f64_e32 v42, v[5:6]
	v_cndmask_b32_e64 v8, v8, v19, s3
	v_cndmask_b32_e64 v7, v7, v18, s3
	v_cndmask_b32_e64 v4, v10, v19, s4
	v_cvt_i32_f64_e32 v28, v[1:2]
	v_cndmask_b32_e64 v3, v9, v18, s4
	s_mov_b32 s5, 0x3fe55555
	v_cvt_i32_f64_e32 v41, v[7:8]
	s_mov_b32 s4, 0x55555555
	v_add_nc_u32_e32 v1, v0, v42
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v45, v1, s28
	v_cndmask_b32_e32 v1, v23, v17, vcc_lo
	v_cvt_f64_i32_e32 v[14:15], v14
	v_add_nc_u32_e32 v2, v0, v41
	v_mul_lo_u32 v46, v2, s28
	v_cndmask_b32_e64 v2, v24, v16, s2
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_max_f64 v[13:14], v[14:15], 0
	v_cvt_i32_f64_e32 v15, v[3:4]
	v_cndmask_b32_e64 v4, v12, v21, s6
	v_cndmask_b32_e64 v3, v11, v20, s6
	v_cvt_i32_f64_e32 v44, v[3:4]
	v_add_nc_u32_e32 v4, v45, v28
	v_cndmask_b32_e64 v3, v25, v17, s2
	v_cmp_gt_f64_e64 s7, v[13:14], v[20:21]
	v_add_nc_u32_e32 v0, v0, v15
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v26, v0, s28
	v_cndmask_b32_e32 v0, v22, v16, vcc_lo
	v_cvt_i32_f64_e32 v0, v[0:1]
	v_cvt_i32_f64_e32 v1, v[2:3]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v8, v26, v44
	v_ashrrev_i32_e32 v9, 31, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[18:19], 3, v[8:9]
	v_cndmask_b32_e64 v6, v14, v21, s7
	v_cndmask_b32_e64 v5, v13, v20, s7
	s_mov_b32 s6, 0x968915a9
	s_mov_b32 s7, 0x3fba6564
	v_cvt_i32_f64_e32 v43, v[5:6]
	v_add_nc_u32_e32 v6, v46, v28
	v_ashrrev_i32_e32 v5, 31, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v7, 31, v6
	v_lshlrev_b64 v[22:23], 3, v[4:5]
	v_mul_lo_u32 v47, v0, s29
	v_mul_lo_u32 v48, v1, s29
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_lshlrev_b64 v[20:21], 3, v[6:7]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v37, vcc_lo, s24, v22
	v_add_co_ci_u32_e32 v38, vcc_lo, s25, v23, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v33, vcc_lo, s24, v20
	v_add_co_ci_u32_e32 v34, vcc_lo, s25, v21, vcc_lo
	v_add_co_u32 v31, vcc_lo, s24, v18
	v_add_co_ci_u32_e32 v32, vcc_lo, s25, v19, vcc_lo
	v_add_nc_u32_e32 v0, v47, v15
	v_add_nc_u32_e32 v1, v48, v15
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v49, v0, s28
	v_mul_lo_u32 v50, v1, s28
	v_add_nc_u32_e32 v10, v26, v43
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_nc_u32_e32 v0, v49, v28
	v_add_nc_u32_e32 v26, v26, v28
	v_ashrrev_i32_e32 v11, 31, v10
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v1, 31, v0
	v_lshlrev_b64 v[16:17], 3, v[10:11]
	v_add_nc_u32_e32 v10, v50, v28
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_lshlrev_b64 v[12:13], 3, v[0:1]
	v_add_f64 v[0:1], s[36:37], s[36:37]
	v_add_co_u32 v29, vcc_lo, s24, v16
	v_add_co_ci_u32_e32 v30, vcc_lo, s25, v17, vcc_lo
	s_clause 0x3
	global_load_b64 v[2:3], v[37:38], off
	global_load_b64 v[4:5], v[33:34], off
	global_load_b64 v[6:7], v[31:32], off
	global_load_b64 v[8:9], v[29:30], off
	v_ashrrev_i32_e32 v11, 31, v10
	v_add_co_u32 v39, vcc_lo, s24, v12
	v_add_co_ci_u32_e32 v40, vcc_lo, s25, v13, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[14:15], 3, v[10:11]
	v_add_co_u32 v35, vcc_lo, s24, v14
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v36, vcc_lo, s25, v15, vcc_lo
	s_clause 0x1
	global_load_b64 v[10:11], v[39:40], off
	global_load_b64 v[24:25], v[35:36], off
	s_waitcnt vmcnt(4)
	v_add_f64 v[51:52], v[2:3], -v[4:5]
	v_add_f64 v[4:5], s[38:39], s[38:39]
	s_waitcnt vmcnt(2)
	v_add_f64 v[6:7], v[6:7], -v[8:9]
	v_add_f64 v[2:3], s[40:41], s[40:41]
	s_waitcnt vmcnt(0)
	v_add_f64 v[24:25], v[10:11], -v[24:25]
	v_div_scale_f64 v[8:9], null, v[0:1], v[0:1], v[51:52]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_scale_f64 v[53:54], null, v[4:5], v[4:5], v[6:7]
	v_div_scale_f64 v[57:58], null, v[2:3], v[2:3], v[24:25]
	v_div_scale_f64 v[71:72], s3, v[24:25], v[2:3], v[24:25]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_rcp_f64_e32 v[10:11], v[8:9]
	v_rcp_f64_e32 v[55:56], v[53:54]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(TRANS32_DEP_3)
	v_rcp_f64_e32 v[63:64], v[57:58]
	v_fma_f64 v[59:60], -v[8:9], v[10:11], 1.0
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[61:62], -v[53:54], v[55:56], 1.0
	v_fma_f64 v[10:11], v[10:11], v[59:60], v[10:11]
	v_fma_f64 v[59:60], -v[57:58], v[63:64], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[55:56], v[55:56], v[61:62], v[55:56]
	v_fma_f64 v[61:62], -v[8:9], v[10:11], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[59:60], v[63:64], v[59:60], v[63:64]
	v_fma_f64 v[65:66], -v[53:54], v[55:56], 1.0
	v_div_scale_f64 v[63:64], vcc_lo, v[51:52], v[0:1], v[51:52]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[10:11], v[10:11], v[61:62], v[10:11]
	v_div_scale_f64 v[61:62], s2, v[6:7], v[4:5], v[6:7]
	v_fma_f64 v[55:56], v[55:56], v[65:66], v[55:56]
	v_fma_f64 v[65:66], -v[57:58], v[59:60], 1.0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[67:68], v[63:64], v[10:11]
	v_mul_f64 v[69:70], v[61:62], v[55:56]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[59:60], v[59:60], v[65:66], v[59:60]
	v_fma_f64 v[8:9], -v[8:9], v[67:68], v[63:64]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[53:54], -v[53:54], v[69:70], v[61:62]
	v_mul_f64 v[61:62], v[71:72], v[59:60]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_div_fmas_f64 v[8:9], v[8:9], v[10:11], v[67:68]
	s_mov_b32 vcc_lo, s2
	v_div_fmas_f64 v[10:11], v[53:54], v[55:56], v[69:70]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_fma_f64 v[53:54], -v[57:58], v[61:62], v[71:72]
	s_mov_b32 vcc_lo, s3
	s_mov_b32 s2, 0x86a12b9b
	s_mov_b32 s3, 0x3d06849b
	v_div_fixup_f64 v[8:9], v[8:9], v[0:1], v[51:52]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_fixup_f64 v[10:11], v[10:11], v[4:5], v[6:7]
	v_div_fmas_f64 v[6:7], v[53:54], v[59:60], v[61:62]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[51:52], v[10:11], v[10:11]
	v_div_fixup_f64 v[6:7], v[6:7], v[2:3], v[24:25]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[24:25], v[8:9], v[8:9], v[51:52]
	v_fma_f64 v[24:25], v[6:7], v[6:7], v[24:25]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_gt_f64_e32 vcc_lo, 0x10000000, v[24:25]
	v_cndmask_b32_e64 v27, 0, 1, vcc_lo
	v_lshlrev_b32_e32 v27, 8, v27
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[24:25], v[24:25], v27
	v_cndmask_b32_e64 v27, 0, 0xffffff80, vcc_lo
	v_rsq_f64_e32 v[51:52], v[24:25]
	v_cmp_class_f64_e64 vcc_lo, v[24:25], 0x260
	s_waitcnt_depctr 0xfff
	v_mul_f64 v[53:54], v[24:25], v[51:52]
	v_mul_f64 v[51:52], v[51:52], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[55:56], -v[51:52], v[53:54], 0.5
	v_fma_f64 v[53:54], v[53:54], v[55:56], v[53:54]
	v_fma_f64 v[51:52], v[51:52], v[55:56], v[51:52]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[55:56], -v[53:54], v[53:54], v[24:25]
	v_fma_f64 v[53:54], v[55:56], v[51:52], v[53:54]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[55:56], -v[53:54], v[53:54], v[24:25]
	v_fma_f64 v[51:52], v[55:56], v[51:52], v[53:54]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ldexp_f64 v[51:52], v[51:52], v27
	v_dual_cndmask_b32 v25, v52, v25 :: v_dual_cndmask_b32 v24, v51, v24
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_cmp_ngt_f64_e32 vcc_lo, s[2:3], v[24:25]
	v_cndmask_b32_e32 v25, 0x3d06849b, v25, vcc_lo
	v_cndmask_b32_e32 v24, 0x86a12b9b, v24, vcc_lo
	v_frexp_mant_f64_e64 v[51:52], |v[24:25]|
	v_div_scale_f64 v[65:66], null, v[24:25], v[24:25], v[8:9]
	v_div_scale_f64 v[67:68], null, v[24:25], v[24:25], v[6:7]
	v_cmp_class_f64_e64 s33, v[24:25], 0x204
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cmp_gt_f64_e64 s2, s[4:5], v[51:52]
	v_rcp_f64_e32 v[69:70], v[65:66]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[75:76], v[67:68]
	v_cndmask_b32_e64 v27, 0, 1, s2
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[77:78], -v[65:66], v[69:70], 1.0
	v_ldexp_f64 v[51:52], v[51:52], v27
	v_fma_f64 v[85:86], -v[67:68], v[75:76], 1.0
	v_ashrrev_i32_e32 v27, 31, v26
	s_delay_alu instid0(VALU_DEP_1)
	v_lshlrev_b64 v[26:27], 3, v[26:27]
	v_fma_f64 v[69:70], v[69:70], v[77:78], v[69:70]
	v_add_f64 v[53:54], v[51:52], 1.0
	v_add_f64 v[59:60], v[51:52], -1.0
	v_fma_f64 v[75:76], v[75:76], v[85:86], v[75:76]
	v_div_scale_f64 v[85:86], vcc_lo, v[8:9], v[24:25], v[8:9]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[55:56], v[53:54]
	v_add_f64 v[61:62], v[53:54], -1.0
	v_add_f64 v[51:52], v[51:52], -v[61:62]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[57:58], -v[53:54], v[55:56], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[55:56], v[57:58], v[55:56], v[55:56]
	v_fma_f64 v[57:58], -v[53:54], v[55:56], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[55:56], v[57:58], v[55:56], v[55:56]
	v_mul_f64 v[57:58], v[59:60], v[55:56]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[63:64], v[53:54], v[57:58]
	v_fma_f64 v[53:54], v[57:58], v[53:54], -v[63:64]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[51:52], v[57:58], v[51:52], v[53:54]
	v_add_f64 v[53:54], v[63:64], v[51:52]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[61:62], v[59:60], -v[53:54]
	v_add_f64 v[63:64], v[53:54], -v[63:64]
	v_add_f64 v[59:60], v[59:60], -v[61:62]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[51:52], v[63:64], -v[51:52]
	v_add_f64 v[53:54], v[59:60], -v[53:54]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[51:52], v[51:52], v[53:54]
	v_add_f64 v[51:52], v[61:62], v[51:52]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[51:52], v[55:56], v[51:52]
	v_add_f64 v[53:54], v[57:58], v[51:52]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[55:56], v[53:54], -v[57:58]
	v_mul_f64 v[57:58], v[53:54], v[53:54]
	v_add_f64 v[51:52], v[51:52], -v[55:56]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[55:56], v[53:54], v[53:54], -v[57:58]
	v_add_f64 v[59:60], v[51:52], v[51:52]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[55:56], v[53:54], v[59:60], v[55:56]
	v_add_f64 v[59:60], v[57:58], v[55:56]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_3)
	v_fma_f64 v[61:62], v[59:60], s[8:9], s[6:7]
	s_mov_b32 s6, 0x3abe935a
	s_mov_b32 s7, 0x3fbe25e4
	v_add_f64 v[57:58], v[59:60], -v[57:58]
	v_mul_f64 v[81:82], v[53:54], v[59:60]
	v_fma_f64 v[61:62], v[59:60], v[61:62], s[6:7]
	s_mov_b32 s6, 0x47e6c9c2
	s_mov_b32 s7, 0x3fc110ef
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[55:56], v[55:56], -v[57:58]
	v_fma_f64 v[61:62], v[59:60], v[61:62], s[6:7]
	s_mov_b32 s6, 0xcfa74449
	s_mov_b32 s7, 0x3fc3b13b
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[61:62], v[59:60], v[61:62], s[6:7]
	s_mov_b32 s6, 0x71bf3c30
	s_mov_b32 s7, 0x3fc745d1
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[61:62], v[59:60], v[61:62], s[6:7]
	s_mov_b32 s6, 0x1c7792ce
	s_mov_b32 s7, 0x3fcc71c7
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[61:62], v[59:60], v[61:62], s[6:7]
	s_mov_b32 s6, 0x924920da
	s_mov_b32 s7, 0x3fd24924
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[61:62], v[59:60], v[61:62], s[6:7]
	s_mov_b32 s6, 0x9999999c
	s_mov_b32 s7, 0x3fd99999
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_fma_f64 v[61:62], v[59:60], v[61:62], s[6:7]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[63:64], v[59:60], v[61:62]
	v_fma_f64 v[57:58], v[59:60], v[61:62], -v[63:64]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[57:58], v[55:56], v[61:62], v[57:58]
	v_div_scale_f64 v[61:62], null, v[24:25], v[24:25], v[10:11]
	v_add_f64 v[71:72], v[63:64], v[57:58]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[73:74], v[61:62]
	v_add_f64 v[79:80], v[71:72], s[4:5]
	v_add_f64 v[63:64], v[71:72], -v[63:64]
	s_mov_b32 s5, 0xbfe55555
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[83:84], -v[61:62], v[73:74], 1.0
	v_add_f64 v[77:78], v[79:80], s[4:5]
	v_add_f64 v[57:58], v[57:58], -v[63:64]
	v_fma_f64 v[63:64], v[59:60], v[53:54], -v[81:82]
	s_delay_alu instid0(VALU_DEP_4)
	v_fma_f64 v[73:74], v[73:74], v[83:84], v[73:74]
	s_mov_b32 s4, 0xd5df274d
	s_mov_b32 s5, 0x3c8543b0
	v_fma_f64 v[83:84], -v[65:66], v[69:70], 1.0
	v_add_f64 v[71:72], v[71:72], -v[77:78]
	v_add_f64 v[57:58], v[57:58], s[4:5]
	v_fma_f64 v[59:60], v[59:60], v[51:52], v[63:64]
	v_fma_f64 v[63:64], -v[61:62], v[73:74], 1.0
	v_fma_f64 v[77:78], -v[67:68], v[75:76], 1.0
	v_ldexp_f64 v[51:52], v[51:52], 1
	v_fma_f64 v[69:70], v[69:70], v[83:84], v[69:70]
	v_add_f64 v[57:58], v[57:58], v[71:72]
	v_fma_f64 v[55:56], v[55:56], v[53:54], v[59:60]
	v_div_scale_f64 v[59:60], s3, v[10:11], v[24:25], v[10:11]
	v_fma_f64 v[63:64], v[73:74], v[63:64], v[73:74]
	v_div_scale_f64 v[71:72], s4, v[6:7], v[24:25], v[6:7]
	v_fma_f64 v[73:74], v[75:76], v[77:78], v[75:76]
	v_mul_f64 v[75:76], v[85:86], v[69:70]
	v_ldexp_f64 v[53:54], v[53:54], 1
	v_add_f64 v[77:78], v[79:80], v[57:58]
	v_add_f64 v[83:84], v[81:82], v[55:56]
	v_mul_f64 v[87:88], v[59:60], v[63:64]
	v_mul_f64 v[89:90], v[71:72], v[73:74]
	v_fma_f64 v[65:66], -v[65:66], v[75:76], v[85:86]
	v_add_f64 v[79:80], v[79:80], -v[77:78]
	v_mul_f64 v[85:86], v[83:84], v[77:78]
	v_fma_f64 v[59:60], -v[61:62], v[87:88], v[59:60]
	v_fma_f64 v[61:62], -v[67:68], v[89:90], v[71:72]
	v_add_f64 v[67:68], v[83:84], -v[81:82]
	v_div_fmas_f64 v[65:66], v[65:66], v[69:70], v[75:76]
	s_mov_b32 vcc_lo, s3
	v_add_f64 v[57:58], v[57:58], v[79:80]
	v_fma_f64 v[71:72], v[83:84], v[77:78], -v[85:86]
	v_add_nc_u32_e32 v79, v48, v41
	v_add_nc_u32_e32 v41, v47, v41
	v_div_fmas_f64 v[59:60], v[59:60], v[63:64], v[87:88]
	s_mov_b32 vcc_lo, s4
	s_load_b512 s[4:19], s[0:1], 0x0
	v_div_fmas_f64 v[61:62], v[61:62], v[73:74], v[89:90]
	v_add_f64 v[55:56], v[55:56], -v[67:68]
	v_div_fixup_f64 v[63:64], v[65:66], v[24:25], v[8:9]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v65, vcc_lo, s4, v26
	v_add_co_ci_u32_e32 v66, vcc_lo, s5, v27, vcc_lo
	v_add_co_u32 v67, vcc_lo, s6, v26
	v_add_co_ci_u32_e32 v68, vcc_lo, s7, v27, vcc_lo
	s_mov_b32 s7, 0x3fe62e42
	s_mov_b32 s6, 0xfefa39ef
	v_fma_f64 v[57:58], v[83:84], v[57:58], v[71:72]
	v_div_fixup_f64 v[59:60], v[59:60], v[24:25], v[10:11]
	v_div_fixup_f64 v[61:62], v[61:62], v[24:25], v[6:7]
	s_delay_alu instid0(VALU_DEP_3)
	v_fma_f64 v[55:56], v[55:56], v[77:78], v[57:58]
	v_add_co_u32 v57, vcc_lo, s8, v26
	v_add_co_ci_u32_e32 v58, vcc_lo, s9, v27, vcc_lo
	v_add_co_u32 v69, vcc_lo, s10, v26
	v_add_co_ci_u32_e32 v70, vcc_lo, s11, v27, vcc_lo
	v_add_co_u32 v71, vcc_lo, s12, v26
	v_add_co_ci_u32_e32 v72, vcc_lo, s13, v27, vcc_lo
	v_add_co_u32 v73, vcc_lo, s14, v26
	v_add_co_ci_u32_e32 v74, vcc_lo, s15, v27, vcc_lo
	v_add_co_u32 v75, vcc_lo, s16, v26
	v_add_co_ci_u32_e32 v76, vcc_lo, s17, v27, vcc_lo
	v_add_co_u32 v77, vcc_lo, s24, v26
	v_add_co_ci_u32_e32 v78, vcc_lo, s25, v27, vcc_lo
	global_store_b64 v[65:66], v[8:9], off
	global_store_b64 v[67:68], v[10:11], off
	global_store_b64 v[57:58], v[6:7], off
	global_store_b64 v[69:70], v[24:25], off
	global_store_b64 v[71:72], v[63:64], off
	global_store_b64 v[73:74], v[59:60], off
	global_store_b64 v[75:76], v[61:62], off
	s_clause 0x1
	global_load_b64 v[57:58], v[77:78], off
	global_load_b64 v[37:38], v[37:38], off
	v_frexp_exp_i32_f64_e32 v65, v[24:25]
	s_clause 0x1
	global_load_b64 v[33:34], v[33:34], off
	global_load_b64 v[31:32], v[31:32], off
	v_add_nc_u32_e32 v67, v45, v44
	v_add_nc_u32_e32 v69, v46, v43
	v_add_nc_u32_e32 v73, v50, v43
	v_add_nc_u32_e32 v75, v46, v44
	v_add_nc_u32_e32 v46, v47, v42
	v_ashrrev_i32_e32 v68, 31, v67
	v_add_f64 v[59:60], v[85:86], v[55:56]
	v_ashrrev_i32_e32 v70, 31, v69
	v_ashrrev_i32_e32 v74, 31, v73
	v_ashrrev_i32_e32 v76, 31, v75
	s_mov_b32 s9, 0x3c7abc9e
	s_mov_b32 s8, 0x3b39803f
	v_add_nc_u32_e32 v45, v45, v43
	v_lshlrev_b64 v[73:74], 3, v[73:74]
	v_add_nc_u32_e32 v42, v48, v42
	s_mov_b32 s10, 0x652b82fe
	s_mov_b32 s11, 0x3ff71547
	s_mov_b32 s16, 0xfca7ab0c
	s_mov_b32 s17, 0x3e928af3
	s_mov_b32 s14, 0x555502a1
	s_mov_b32 s15, 0x3fa55555
	s_mov_b32 s12, 0x55555511
	s_mov_b32 s13, 0x3fc55555
	v_subrev_co_ci_u32_e64 v61, vcc_lo, 0, v65, s2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_cvt_f64_i32_e32 v[61:62], v61
	v_add_f64 v[63:64], v[53:54], v[59:60]
	v_add_f64 v[65:66], v[59:60], -v[85:86]
	v_mul_f64 v[71:72], v[61:62], s[6:7]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[53:54], v[63:64], -v[53:54]
	v_add_f64 v[55:56], v[55:56], -v[65:66]
	v_lshlrev_b64 v[65:66], 3, v[67:68]
	v_lshlrev_b64 v[67:68], 3, v[69:70]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v65, vcc_lo, s24, v65
	v_add_co_ci_u32_e32 v66, vcc_lo, s25, v66, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v67, vcc_lo, s24, v67
	v_add_co_ci_u32_e32 v68, vcc_lo, s25, v68, vcc_lo
	s_clause 0x3
	global_load_b64 v[39:40], v[39:40], off
	global_load_b64 v[69:70], v[29:30], off
	global_load_b64 v[65:66], v[65:66], off
	global_load_b64 v[67:68], v[67:68], off
	v_add_nc_u32_e32 v29, v49, v44
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v30, 31, v29
	v_lshlrev_b64 v[29:30], 3, v[29:30]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_co_u32 v29, vcc_lo, s24, v29
	v_fma_f64 v[77:78], v[61:62], s[6:7], -v[71:72]
	v_add_co_ci_u32_e32 v30, vcc_lo, s25, v30, vcc_lo
	v_add_f64 v[53:54], v[59:60], -v[53:54]
	v_add_f64 v[51:52], v[51:52], v[55:56]
	v_add_co_u32 v55, vcc_lo, s24, v73
	v_lshlrev_b64 v[59:60], 3, v[75:76]
	v_add_co_ci_u32_e32 v56, vcc_lo, s25, v74, vcc_lo
	v_mad_u64_u32 v[73:74], null, v46, s28, v[28:29]
	s_clause 0x1
	global_load_b64 v[75:76], v[29:30], off
	global_load_b64 v[55:56], v[55:56], off
	v_add_co_u32 v29, vcc_lo, s24, v59
	v_add_co_ci_u32_e32 v30, vcc_lo, s25, v60, vcc_lo
	global_load_b64 v[35:36], v[35:36], off
	v_mad_u64_u32 v[59:60], null, v79, s28, v[28:29]
	global_load_b64 v[79:80], v[29:30], off
	v_ashrrev_i32_e32 v74, 31, v73
	v_add_nc_u32_e32 v29, v50, v44
	v_ashrrev_i32_e32 v46, 31, v45
	s_mov_b32 s7, 0xbfe62e42
	v_ashrrev_i32_e32 v60, 31, v59
	v_lshlrev_b64 v[73:74], 3, v[73:74]
	v_ashrrev_i32_e32 v30, 31, v29
	v_lshlrev_b64 v[44:45], 3, v[45:46]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[59:60], 3, v[59:60]
	v_lshlrev_b64 v[29:30], 3, v[29:30]
	v_add_co_u32 v73, vcc_lo, s24, v73
	v_add_co_ci_u32_e32 v74, vcc_lo, s25, v74, vcc_lo
	v_fma_f64 v[61:62], v[61:62], s[8:9], v[77:78]
	s_mov_b32 s9, 0xbc7abc9e
	v_add_f64 v[50:51], v[51:52], v[53:54]
	v_add_co_u32 v52, vcc_lo, s24, v59
	v_add_co_ci_u32_e32 v53, vcc_lo, s25, v60, vcc_lo
	v_add_co_u32 v29, vcc_lo, s24, v29
	v_add_co_ci_u32_e32 v30, vcc_lo, s25, v30, vcc_lo
	v_add_co_u32 v44, vcc_lo, s24, v44
	v_add_co_ci_u32_e32 v45, vcc_lo, s25, v45, vcc_lo
	s_clause 0x3
	global_load_b64 v[59:60], v[29:30], off
	global_load_b64 v[73:74], v[73:74], off
	global_load_b64 v[52:53], v[52:53], off
	global_load_b64 v[44:45], v[44:45], off
	v_mad_u64_u32 v[29:30], null, v42, s28, v[28:29]
	v_add_nc_u32_e32 v42, v49, v43
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v43, 31, v42
	v_ashrrev_i32_e32 v30, 31, v29
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[42:43], 3, v[42:43]
	v_lshlrev_b64 v[29:30], 3, v[29:30]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_co_u32 v42, vcc_lo, s24, v42
	v_add_f64 v[48:49], v[71:72], v[61:62]
	v_add_co_ci_u32_e32 v43, vcc_lo, s25, v43, vcc_lo
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v29, vcc_lo, s24, v29
	v_add_f64 v[77:78], v[63:64], v[50:51]
	v_add_co_ci_u32_e32 v30, vcc_lo, s25, v30, vcc_lo
	s_clause 0x1
	global_load_b64 v[42:43], v[42:43], off
	global_load_b64 v[81:82], v[29:30], off
	v_mad_u64_u32 v[29:30], null, v41, s28, v[28:29]
	s_mov_b32 s28, 11
	s_mov_b32 s29, 0x3fe00000
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v30, 31, v29
	v_lshlrev_b64 v[28:29], 3, v[29:30]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v28, vcc_lo, s24, v28
	v_add_co_ci_u32_e32 v29, vcc_lo, s25, v29, vcc_lo
	s_mov_b32 s24, 0x11122322
	s_mov_b32 s25, 0x3f811111
	global_load_b64 v[83:84], v[28:29], off
	v_add_f64 v[71:72], v[48:49], -v[71:72]
	v_add_f64 v[46:47], v[48:49], v[77:78]
	v_add_f64 v[63:64], v[77:78], -v[63:64]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[61:62], v[61:62], -v[71:72]
	v_add_f64 v[28:29], v[46:47], -v[48:49]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[50:51], v[50:51], -v[63:64]
	v_add_f64 v[85:86], v[46:47], -v[28:29]
	v_add_f64 v[63:64], v[77:78], -v[28:29]
	v_mul_f64 v[28:29], s[36:37], s[36:37]
	s_waitcnt vmcnt(17)
	v_fma_f64 v[37:38], v[57:58], -2.0, v[37:38]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[48:49], v[48:49], -v[85:86]
	s_waitcnt vmcnt(16)
	v_add_f64 v[71:72], v[33:34], v[37:38]
	s_waitcnt vmcnt(15)
	v_fma_f64 v[32:33], v[57:58], -2.0, v[31:32]
	v_add_f64 v[37:38], v[61:62], v[50:51]
	v_mul_f64 v[30:31], s[38:39], s[38:39]
	v_add_f64 v[48:49], v[63:64], v[48:49]
	v_div_scale_f64 v[63:64], null, v[28:29], v[28:29], v[71:72]
	s_waitcnt vmcnt(14)
	v_fma_f64 v[39:40], v[57:58], -2.0, v[39:40]
	s_waitcnt vmcnt(13)
	v_add_f64 v[57:58], v[32:33], v[69:70]
	v_mul_f64 v[32:33], s[40:41], s[40:41]
	s_waitcnt vmcnt(11)
	v_add_f64 v[65:66], v[65:66], v[67:68]
	v_add_f64 v[67:68], v[37:38], -v[61:62]
	v_add_f64 v[48:49], v[37:38], v[48:49]
	v_rcp_f64_e32 v[69:70], v[63:64]
	s_waitcnt vmcnt(9)
	v_add_f64 v[54:55], v[75:76], v[55:56]
	s_waitcnt vmcnt(8)
	v_add_f64 v[39:40], v[39:40], v[35:36]
	v_mul_f64 v[34:35], s[42:43], 4.0
	v_div_scale_f64 v[75:76], null, v[30:31], v[30:31], v[57:58]
	s_waitcnt vmcnt(7)
	v_add_f64 v[65:66], v[65:66], -v[79:80]
	v_add_f64 v[36:37], v[37:38], -v[67:68]
	v_add_f64 v[50:51], v[50:51], -v[67:68]
	v_div_scale_f64 v[93:94], s2, v[57:58], v[30:31], v[57:58]
	v_add_f64 v[77:78], v[46:47], v[48:49]
	s_delay_alu instid0(TRANS32_DEP_1)
	v_fma_f64 v[79:80], -v[63:64], v[69:70], 1.0
	s_waitcnt vmcnt(6)
	v_add_f64 v[54:55], v[54:55], -v[59:60]
	s_waitcnt vmcnt(4)
	v_add_f64 v[52:53], v[73:74], v[52:53]
	v_div_scale_f64 v[59:60], null, v[32:33], v[32:33], v[39:40]
	v_mul_f64 v[73:74], v[34:35], s[42:43]
	v_rcp_f64_e32 v[34:35], v[75:76]
	s_waitcnt vmcnt(3)
	v_add_f64 v[44:45], v[65:66], -v[44:45]
	v_add_f64 v[36:37], v[61:62], -v[36:37]
	s_load_b512 s[36:51], s[0:1], 0x40
	v_add_f64 v[46:47], v[77:78], -v[46:47]
	v_fma_f64 v[61:62], v[69:70], v[79:80], v[69:70]
	s_waitcnt vmcnt(2)
	v_add_f64 v[41:42], v[54:55], -v[42:43]
	s_waitcnt vmcnt(1)
	v_add_f64 v[52:53], v[52:53], -v[81:82]
	v_rcp_f64_e32 v[54:55], v[59:60]
	v_div_scale_f64 v[65:66], null, v[73:74], v[73:74], v[44:45]
	s_delay_alu instid0(TRANS32_DEP_2)
	v_fma_f64 v[67:68], -v[75:76], v[34:35], 1.0
	v_add_f64 v[36:37], v[50:51], v[36:37]
	v_add_f64 v[46:47], v[48:49], -v[46:47]
	v_fma_f64 v[48:49], -v[63:64], v[61:62], 1.0
	v_div_scale_f64 v[50:51], null, v[73:74], v[73:74], v[41:42]
	s_waitcnt vmcnt(0)
	v_add_f64 v[52:53], v[52:53], -v[83:84]
	s_delay_alu instid0(TRANS32_DEP_1)
	v_fma_f64 v[69:70], -v[59:60], v[54:55], 1.0
	v_rcp_f64_e32 v[79:80], v[65:66]
	v_fma_f64 v[67:68], v[34:35], v[67:68], v[34:35]
	v_add_f64 v[36:37], v[36:37], v[46:47]
	v_div_scale_f64 v[46:47], vcc_lo, v[71:72], v[28:29], v[71:72]
	v_fma_f64 v[48:49], v[61:62], v[48:49], v[61:62]
	v_rcp_f64_e32 v[61:62], v[50:51]
	v_div_scale_f64 v[81:82], null, v[73:74], v[73:74], v[52:53]
	v_fma_f64 v[54:55], v[54:55], v[69:70], v[54:55]
	v_fma_f64 v[69:70], -v[75:76], v[67:68], 1.0
	s_delay_alu instid0(TRANS32_DEP_2) | instskip(SKIP_2) | instid1(TRANS32_DEP_1)
	v_fma_f64 v[83:84], -v[65:66], v[79:80], 1.0
	v_add_f64 v[34:35], v[77:78], v[36:37]
	v_mul_f64 v[85:86], v[46:47], v[48:49]
	v_fma_f64 v[87:88], -v[50:51], v[61:62], 1.0
	v_rcp_f64_e32 v[89:90], v[81:82]
	v_fma_f64 v[91:92], -v[59:60], v[54:55], 1.0
	v_fma_f64 v[67:68], v[67:68], v[69:70], v[67:68]
	v_fma_f64 v[69:70], v[79:80], v[83:84], v[79:80]
	v_add_f64 v[77:78], v[34:35], -v[77:78]
	v_mul_f64 v[79:80], 0x40080000, v[34:35]
	v_fma_f64 v[46:47], -v[63:64], v[85:86], v[46:47]
	v_div_scale_f64 v[63:64], s3, v[39:40], v[32:33], v[39:40]
	v_fma_f64 v[61:62], v[61:62], v[87:88], v[61:62]
	v_fma_f64 v[54:55], v[54:55], v[91:92], v[54:55]
	s_delay_alu instid0(TRANS32_DEP_1)
	v_fma_f64 v[83:84], -v[81:82], v[89:90], 1.0
	v_mul_f64 v[87:88], v[93:94], v[67:68]
	v_fma_f64 v[91:92], -v[65:66], v[69:70], 1.0
	v_add_f64 v[36:37], v[36:37], -v[77:78]
	v_fma_f64 v[77:78], 0x40080000, v[34:35], -v[79:80]
	v_div_fmas_f64 v[46:47], v[46:47], v[48:49], v[85:86]
	v_mul_f64 v[48:49], v[34:35], 4.0
	s_mov_b32 vcc_lo, s2
	v_fma_f64 v[85:86], -v[50:51], v[61:62], 1.0
	v_fma_f64 v[83:84], v[89:90], v[83:84], v[89:90]
	v_mul_f64 v[89:90], v[63:64], v[54:55]
	v_fma_f64 v[75:76], -v[75:76], v[87:88], v[93:94]
	v_div_scale_f64 v[93:94], s4, v[44:45], v[73:74], v[44:45]
	v_fma_f64 v[69:70], v[69:70], v[91:92], v[69:70]
	v_fma_f64 v[77:78], 0x40080000, v[36:37], v[77:78]
	v_div_fixup_f64 v[46:47], v[46:47], v[28:29], v[71:72]
	v_fma_f64 v[91:92], v[34:35], 4.0, -v[48:49]
	v_cmp_class_f64_e64 s2, v[48:49], 0x204
	v_fma_f64 v[61:62], v[61:62], v[85:86], v[61:62]
	v_div_scale_f64 v[85:86], s5, v[41:42], v[73:74], v[41:42]
	v_fma_f64 v[59:60], -v[59:60], v[89:90], v[63:64]
	v_fma_f64 v[63:64], -v[81:82], v[83:84], 1.0
	v_div_fmas_f64 v[67:68], v[75:76], v[67:68], v[87:88]
	v_cmp_class_f64_e64 vcc_lo, v[79:80], 0x204
	v_mul_f64 v[75:76], v[93:94], v[69:70]
	v_add_f64 v[87:88], v[79:80], v[77:78]
	v_fma_f64 v[91:92], v[36:37], 4.0, v[91:92]
	v_fma_f64 v[63:64], v[83:84], v[63:64], v[83:84]
	v_mul_f64 v[83:84], v[85:86], v[61:62]
	v_div_fixup_f64 v[56:57], v[67:68], v[30:31], v[57:58]
	v_fma_f64 v[65:66], -v[65:66], v[75:76], v[93:94]
	v_dual_cndmask_b32 v94, v88, v80 :: v_dual_cndmask_b32 v93, v87, v79
	s_mov_b32 vcc_lo, s3
	v_add_f64 v[79:80], v[87:88], -v[79:80]
	v_div_fmas_f64 v[54:55], v[59:60], v[54:55], v[89:90]
	s_mov_b32 vcc_lo, s4
	v_add_f64 v[59:60], v[48:49], v[91:92]
	v_mul_f64 v[89:90], v[93:94], s[10:11]
	v_fma_f64 v[50:51], -v[50:51], v[83:84], v[85:86]
	v_div_scale_f64 v[85:86], s3, v[52:53], v[73:74], v[52:53]
	v_div_fmas_f64 v[65:66], v[65:66], v[69:70], v[75:76]
	s_mov_b32 vcc_lo, s5
	v_cmp_eq_f64_e64 s5, 0, v[24:25]
	v_div_fixup_f64 v[54:55], v[54:55], v[32:33], v[39:40]
	v_cndmask_b32_e64 v70, v60, v49, s2
	v_cndmask_b32_e64 v69, v59, v48, s2
	v_rndne_f64_e32 v[75:76], v[89:90]
	v_add_f64 v[48:49], v[59:60], -v[48:49]
	v_add_f64 v[58:59], v[77:78], -v[79:80]
	v_cmp_nlt_f64_e64 s2, 0x40900000, v[93:94]
	v_mul_f64 v[89:90], v[69:70], s[10:11]
	v_cmp_neq_f64_e64 s4, 0x7ff00000, |v[69:70]|
	v_div_fmas_f64 v[50:51], v[50:51], v[61:62], v[83:84]
	v_mul_f64 v[61:62], v[85:86], v[63:64]
	s_mov_b32 vcc_lo, s3
	v_div_fixup_f64 v[43:44], v[65:66], v[73:74], v[44:45]
	v_cmp_ngt_f64_e64 s3, 0xc090cc00, v[93:94]
	v_cndmask_b32_e64 v87, 0x7ff00000, 0, s5
	v_fma_f64 v[83:84], v[75:76], s[6:7], v[93:94]
	v_add_f64 v[48:49], v[91:92], -v[48:49]
	v_rndne_f64_e32 v[89:90], v[89:90]
	v_div_fixup_f64 v[50:51], v[50:51], v[73:74], v[41:42]
	v_fma_f64 v[81:82], -v[81:82], v[61:62], v[85:86]
	v_cvt_i32_f64_e32 v42, v[75:76]
	v_mul_f64 v[65:66], v[54:55], v[43:44]
	v_mul_f64 v[40:41], v[10:11], v[43:44]
	v_mul_f64 v[67:68], v[8:9], v[43:44]
	v_fma_f64 v[83:84], v[75:76], s[8:9], v[83:84]
	v_cndmask_b32_e64 v49, 0, v49, s4
	v_cndmask_b32_e64 v48, 0, v48, s4
	v_fma_f64 v[85:86], v[89:90], s[6:7], v[69:70]
	v_mul_f64 v[71:72], v[50:51], v[50:51]
	v_div_fmas_f64 v[61:62], v[81:82], v[63:64], v[61:62]
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[93:94]|
	v_fma_f64 v[40:41], v[8:9], v[46:47], v[40:41]
	v_fma_f64 v[67:68], v[10:11], v[56:57], v[67:68]
	v_fma_f64 v[63:64], v[83:84], s[30:31], s[16:17]
	v_fma_f64 v[81:82], v[89:90], s[8:9], v[85:86]
	v_fma_f64 v[71:72], v[56:57], v[54:55], -v[71:72]
	v_div_fixup_f64 v[52:53], v[61:62], v[73:74], v[52:53]
	v_mul_f64 v[73:74], v[46:47], v[50:51]
	v_fma_f64 v[67:68], v[6:7], v[50:51], v[67:68]
	v_fma_f64 v[63:64], v[83:84], v[63:64], s[54:55]
	v_fma_f64 v[85:86], v[81:82], s[30:31], s[16:17]
	v_mul_f64 v[38:39], v[52:53], v[52:53]
	v_fma_f64 v[65:66], v[50:51], v[52:53], -v[65:66]
	v_fma_f64 v[73:74], v[43:44], v[52:53], -v[73:74]
	v_mul_f64 v[75:76], v[8:9], v[52:53]
	v_fma_f64 v[40:41], v[6:7], v[52:53], v[40:41]
	v_fma_f64 v[63:64], v[83:84], v[63:64], s[56:57]
	v_fma_f64 v[85:86], v[81:82], v[85:86], s[54:55]
	v_fma_f64 v[38:39], v[46:47], v[54:55], -v[38:39]
	v_fma_f64 v[75:76], v[10:11], v[50:51], v[75:76]
	v_mul_f64 v[40:41], v[8:9], v[40:41]
	v_fma_f64 v[63:64], v[83:84], v[63:64], s[52:53]
	v_fma_f64 v[85:86], v[81:82], v[85:86], s[56:57]
	v_mul_f64 v[38:39], v[10:11], v[38:39]
	v_fma_f64 v[75:76], v[6:7], v[54:55], v[75:76]
	v_fma_f64 v[40:41], v[10:11], v[67:68], v[40:41]
	v_fma_f64 v[63:64], v[83:84], v[63:64], s[34:35]
	v_fma_f64 v[85:86], v[81:82], v[85:86], s[52:53]
	v_fma_f64 v[38:39], v[8:9], v[65:66], v[38:39]
	v_mul_f64 v[65:66], v[10:11], v[65:66]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[63:64], v[83:84], v[63:64], s[24:25]
	v_fma_f64 v[85:86], v[81:82], v[85:86], s[34:35]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[38:39], v[6:7], v[73:74], v[38:39]
	v_fma_f64 v[65:66], v[8:9], v[71:72], v[65:66]
	v_add_f64 v[71:72], v[46:47], v[56:57]
	v_fma_f64 v[63:64], v[83:84], v[63:64], s[14:15]
	v_fma_f64 v[85:86], v[81:82], v[85:86], s[24:25]
	v_mul_f64 v[77:78], v[10:11], v[38:39]
	v_dual_cndmask_b32 v39, 0, v59 :: v_dual_cndmask_b32 v38, 0, v58
	s_and_b32 vcc_lo, s3, s2
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[61:62], v[83:84], v[63:64], s[12:13]
	v_fma_f64 v[63:64], v[81:82], v[85:86], s[14:15]
	v_mul_f64 v[85:86], v[10:11], v[73:74]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[61:62], v[83:84], v[61:62], s[28:29]
	v_fma_f64 v[63:64], v[81:82], v[63:64], s[12:13]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[61:62], v[83:84], v[61:62], 1.0
	v_fma_f64 v[63:64], v[81:82], v[63:64], s[28:29]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[61:62], v[83:84], v[61:62], 1.0
	v_mul_f64 v[83:84], v[56:57], v[52:53]
	v_fma_f64 v[63:64], v[81:82], v[63:64], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_ldexp_f64 v[61:62], v[61:62], v42
	v_cvt_i32_f64_e32 v42, v[89:90]
	v_fma_f64 v[83:84], v[43:44], v[50:51], -v[83:84]
	s_delay_alu instid0(VALU_DEP_4)
	v_fma_f64 v[63:64], v[81:82], v[63:64], 1.0
	v_mul_f64 v[81:82], v[43:44], v[43:44]
	v_cndmask_b32_e64 v45, 0x7ff00000, v62, s2
	v_cndmask_b32_e32 v58, 0, v61, vcc_lo
	v_fma_f64 v[67:68], v[8:9], v[83:84], v[85:86]
	v_cmp_nlt_f64_e32 vcc_lo, 0x40900000, v[69:70]
	v_ldexp_f64 v[62:63], v[63:64], v42
	v_fma_f64 v[73:74], v[46:47], v[56:57], -v[81:82]
	v_fma_f64 v[64:65], v[6:7], v[83:84], v[65:66]
	v_cmp_ngt_f64_e64 s2, 0xc090cc00, v[69:70]
	v_cndmask_b32_e64 v59, 0, v45, s3
	v_fma_f64 v[69:70], v[6:7], v[75:76], v[40:41]
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f64 v[60:61], v[58:59], v[38:39], v[58:59]
	v_cmp_class_f64_e64 s3, v[58:59], 0x204
	v_add_f64 v[38:39], v[71:72], v[54:55]
	v_cndmask_b32_e32 v42, 0x7ff00000, v63, vcc_lo
	v_fma_f64 v[40:41], v[6:7], v[73:74], v[67:68]
	v_fma_f64 v[63:64], v[8:9], v[64:65], v[77:78]
	s_and_b32 vcc_lo, s2, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v66, 0, v42, s2
	v_cndmask_b32_e32 v65, 0, v62, vcc_lo
	s_or_b32 s2, s5, s33
	v_cndmask_b32_e64 v45, v61, v59, s3
	v_fma_f64 v[48:49], v[65:66], v[48:49], v[65:66]
	v_cmp_class_f64_e64 vcc_lo, v[65:66], 0x204
	v_cndmask_b32_e64 v42, v60, v58, s3
	v_bfi_b32 v59, 0x7fffffff, v87, v25
	v_bfi_b32 v45, 0x7fffffff, v45, v25
	v_div_scale_f64 v[60:61], null, v[24:25], v[24:25], v[38:39]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v58, v42, 0, s2
	v_cndmask_b32_e64 v59, v45, v59, s2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[67:68], null, v[58:59], v[58:59], v[69:70]
	v_fma_f64 v[62:63], v[6:7], v[40:41], v[63:64]
	v_dual_cndmask_b32 v40, v49, v66 :: v_dual_cndmask_b32 v41, v48, v65
	v_rcp_f64_e32 v[48:49], v[60:61]
	v_and_b32_e32 v42, 0x7fffffff, v40
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v40, v41, 0, s2
	v_cndmask_b32_e64 v41, v42, v87, s2
	v_rcp_f64_e32 v[64:65], v[67:68]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(TRANS32_DEP_2)
	v_div_scale_f64 v[71:72], null, v[40:41], v[40:41], v[62:63]
	v_div_scale_f64 v[85:86], s4, v[62:63], v[40:41], v[62:63]
	v_fma_f64 v[73:74], -v[60:61], v[48:49], 1.0
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[75:76], -v[67:68], v[64:65], 1.0
	v_rcp_f64_e32 v[77:78], v[71:72]
	v_fma_f64 v[48:49], v[48:49], v[73:74], v[48:49]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_3)
	v_fma_f64 v[64:65], v[64:65], v[75:76], v[64:65]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[73:74], -v[71:72], v[77:78], 1.0
	v_fma_f64 v[75:76], -v[60:61], v[48:49], 1.0
	v_fma_f64 v[79:80], -v[67:68], v[64:65], 1.0
	v_fma_f64 v[73:74], v[77:78], v[73:74], v[77:78]
	v_div_scale_f64 v[77:78], vcc_lo, v[38:39], v[24:25], v[38:39]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_fma_f64 v[48:49], v[48:49], v[75:76], v[48:49]
	v_div_scale_f64 v[75:76], s3, v[69:70], v[58:59], v[69:70]
	v_fma_f64 v[64:65], v[64:65], v[79:80], v[64:65]
	v_fma_f64 v[79:80], -v[71:72], v[73:74], 1.0
	v_mul_f64 v[81:82], v[77:78], v[48:49]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[83:84], v[75:76], v[64:65]
	v_fma_f64 v[73:74], v[73:74], v[79:80], v[73:74]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[60:61], -v[60:61], v[81:82], v[77:78]
	v_fma_f64 v[66:67], -v[67:68], v[83:84], v[75:76]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[75:76], v[85:86], v[73:74]
	v_div_fmas_f64 v[48:49], v[60:61], v[48:49], v[81:82]
	s_mov_b32 vcc_lo, s3
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_div_fmas_f64 v[60:61], v[66:67], v[64:65], v[83:84]
	s_mov_b32 vcc_lo, s4
	v_fma_f64 v[64:65], -v[71:72], v[75:76], v[85:86]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_fixup_f64 v[24:25], v[48:49], v[24:25], v[38:39]
	v_div_fixup_f64 v[48:49], v[60:61], v[58:59], v[69:70]
	s_delay_alu instid0(VALU_DEP_3)
	v_div_fmas_f64 v[58:59], v[64:65], v[73:74], v[75:76]
	v_add_co_u32 v60, vcc_lo, s18, v26
	v_add_co_ci_u32_e32 v61, vcc_lo, s19, v27, vcc_lo
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v64, vcc_lo, s36, v26
	v_add_co_ci_u32_e32 v65, vcc_lo, s37, v27, vcc_lo
	v_add_co_u32 v66, vcc_lo, s38, v26
	v_add_co_ci_u32_e32 v67, vcc_lo, s39, v27, vcc_lo
	v_add_co_u32 v68, vcc_lo, s40, v26
	v_add_co_ci_u32_e32 v69, vcc_lo, s41, v27, vcc_lo
	v_add_co_u32 v70, vcc_lo, s42, v26
	v_add_co_ci_u32_e32 v71, vcc_lo, s43, v27, vcc_lo
	v_add_co_u32 v72, vcc_lo, s44, v26
	v_add_f64 v[24:25], v[24:25], -v[48:49]
	v_add_co_ci_u32_e32 v73, vcc_lo, s45, v27, vcc_lo
	global_store_b64 v[60:61], v[46:47], off
	global_store_b64 v[64:65], v[56:57], off
	global_store_b64 v[66:67], v[54:55], off
	global_store_b64 v[68:69], v[43:44], off
	v_add_f64 v[42:43], v[34:35], v[34:35]
	v_div_fixup_f64 v[48:49], v[58:59], v[40:41], v[62:63]
	v_add_co_u32 v58, vcc_lo, s46, v26
	v_add_co_ci_u32_e32 v59, vcc_lo, s47, v27, vcc_lo
	v_add_co_u32 v62, vcc_lo, s48, v26
	v_add_co_ci_u32_e32 v63, vcc_lo, s49, v27, vcc_lo
	v_add_co_u32 v74, vcc_lo, s50, v26
	v_add_co_ci_u32_e32 v75, vcc_lo, s51, v27, vcc_lo
	v_add_co_u32 v22, vcc_lo, s26, v22
	v_add_co_ci_u32_e32 v23, vcc_lo, s27, v23, vcc_lo
	v_add_co_u32 v20, vcc_lo, s26, v20
	v_add_co_ci_u32_e32 v21, vcc_lo, s27, v21, vcc_lo
	v_add_co_u32 v18, vcc_lo, s26, v18
	v_add_co_ci_u32_e32 v19, vcc_lo, s27, v19, vcc_lo
	v_add_co_u32 v16, vcc_lo, s26, v16
	v_add_co_ci_u32_e32 v17, vcc_lo, s27, v17, vcc_lo
	global_store_b64 v[70:71], v[50:51], off
	global_store_b64 v[72:73], v[52:53], off
	global_store_b64 v[58:59], v[38:39], off
	global_store_b64 v[62:63], v[24:25], off
	global_store_b64 v[74:75], v[48:49], off
	s_clause 0x3
	global_load_b64 v[24:25], v[22:23], off
	global_load_b64 v[44:45], v[20:21], off
	global_load_b64 v[46:47], v[18:19], off
	global_load_b64 v[48:49], v[16:17], off
	v_fma_f64 v[34:35], v[34:35], 2.0, -v[42:43]
	v_add_co_u32 v12, vcc_lo, s26, v12
	v_add_co_ci_u32_e32 v13, vcc_lo, s27, v13, vcc_lo
	v_add_co_u32 v14, vcc_lo, s26, v14
	v_add_co_ci_u32_e32 v15, vcc_lo, s27, v15, vcc_lo
	v_cmp_class_f64_e64 vcc_lo, v[42:43], 0x204
	v_fma_f64 v[34:35], v[36:37], 2.0, v[34:35]
	s_clause 0x1
	global_load_b64 v[36:37], v[12:13], off
	global_load_b64 v[50:51], v[14:15], off
	v_add_f64 v[52:53], v[42:43], v[34:35]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_dual_cndmask_b32 v55, v53, v43 :: v_dual_cndmask_b32 v54, v52, v42
	v_add_f64 v[42:43], v[52:53], -v[42:43]
	v_mul_f64 v[56:57], v[54:55], s[10:11]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rndne_f64_e32 v[56:57], v[56:57]
	v_fma_f64 v[58:59], v[56:57], s[6:7], v[54:55]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[58:59], v[56:57], s[8:9], v[58:59]
	v_fma_f64 v[60:61], v[58:59], s[30:31], s[16:17]
	s_waitcnt vmcnt(4)
	v_add_f64 v[24:25], v[24:25], -v[44:45]
	s_waitcnt vmcnt(2)
	v_add_f64 v[44:45], v[46:47], -v[48:49]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[46:47], v[58:59], v[60:61], s[54:55]
	v_div_scale_f64 v[48:49], null, v[0:1], v[0:1], v[24:25]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_div_scale_f64 v[60:61], null, v[4:5], v[4:5], v[44:45]
	s_waitcnt vmcnt(0)
	v_add_f64 v[36:37], v[36:37], -v[50:51]
	v_fma_f64 v[46:47], v[58:59], v[46:47], s[56:57]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_rcp_f64_e32 v[50:51], v[48:49]
	v_rcp_f64_e32 v[62:63], v[60:61]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_div_scale_f64 v[64:65], null, v[2:3], v[2:3], v[36:37]
	v_fma_f64 v[46:47], v[58:59], v[46:47], s[52:53]
	v_div_scale_f64 v[78:79], s1, v[36:37], v[2:3], v[36:37]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[66:67], -v[48:49], v[50:51], 1.0
	v_fma_f64 v[68:69], -v[60:61], v[62:63], 1.0
	v_rcp_f64_e32 v[70:71], v[64:65]
	v_fma_f64 v[46:47], v[58:59], v[46:47], s[34:35]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[50:51], v[50:51], v[66:67], v[50:51]
	v_fma_f64 v[62:63], v[62:63], v[68:69], v[62:63]
	s_delay_alu instid0(VALU_DEP_3)
	v_fma_f64 v[46:47], v[58:59], v[46:47], s[24:25]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[66:67], -v[64:65], v[70:71], 1.0
	v_fma_f64 v[68:69], -v[48:49], v[50:51], 1.0
	v_fma_f64 v[72:73], -v[60:61], v[62:63], 1.0
	v_fma_f64 v[46:47], v[58:59], v[46:47], s[14:15]
	s_delay_alu instid0(VALU_DEP_4)
	v_fma_f64 v[66:67], v[70:71], v[66:67], v[70:71]
	v_div_scale_f64 v[70:71], vcc_lo, v[24:25], v[0:1], v[24:25]
	v_fma_f64 v[50:51], v[50:51], v[68:69], v[50:51]
	v_div_scale_f64 v[68:69], s0, v[44:45], v[4:5], v[44:45]
	v_fma_f64 v[62:63], v[62:63], v[72:73], v[62:63]
	v_fma_f64 v[46:47], v[58:59], v[46:47], s[12:13]
	v_fma_f64 v[72:73], -v[64:65], v[66:67], 1.0
	v_mul_f64 v[74:75], v[70:71], v[50:51]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[76:77], v[68:69], v[62:63]
	v_fma_f64 v[46:47], v[58:59], v[46:47], s[28:29]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[66:67], v[66:67], v[72:73], v[66:67]
	v_fma_f64 v[48:49], -v[48:49], v[74:75], v[70:71]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[60:61], -v[60:61], v[76:77], v[68:69]
	v_fma_f64 v[46:47], v[58:59], v[46:47], 1.0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[68:69], v[78:79], v[66:67]
	v_div_fmas_f64 v[48:49], v[48:49], v[50:51], v[74:75]
	s_mov_b32 vcc_lo, s0
	v_cmp_nlt_f64_e64 s0, 0x40900000, v[54:55]
	v_div_fmas_f64 v[50:51], v[60:61], v[62:63], v[76:77]
	v_cvt_i32_f64_e32 v60, v[56:57]
	v_fma_f64 v[46:47], v[58:59], v[46:47], 1.0
	v_fma_f64 v[56:57], -v[64:65], v[68:69], v[78:79]
	s_mov_b32 vcc_lo, s1
	v_cmp_ngt_f64_e64 s1, 0xc090cc00, v[54:55]
	v_div_fixup_f64 v[0:1], v[48:49], v[0:1], v[24:25]
	v_div_fixup_f64 v[4:5], v[50:51], v[4:5], v[44:45]
	v_ldexp_f64 v[44:45], v[46:47], v60
	v_div_fmas_f64 v[46:47], v[56:57], v[66:67], v[68:69]
	v_cmp_neq_f64_e64 vcc_lo, 0x7ff00000, |v[54:55]|
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_mul_f64 v[4:5], v[10:11], v[4:5]
	v_add_f64 v[10:11], v[34:35], -v[42:43]
	v_cndmask_b32_e64 v24, 0x7ff00000, v45, s0
	v_div_fixup_f64 v[2:3], v[46:47], v[2:3], v[36:37]
	v_fma_f64 v[0:1], v[8:9], v[0:1], v[4:5]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v5, 0, v11 :: v_dual_cndmask_b32 v4, 0, v10
	s_and_b32 vcc_lo, s1, s0
	v_cndmask_b32_e64 v9, 0, v24, s1
	v_cndmask_b32_e32 v8, 0, v44, vcc_lo
	v_fma_f64 v[4:5], v[8:9], v[4:5], v[8:9]
	v_cmp_class_f64_e64 vcc_lo, v[8:9], 0x204
	v_fma_f64 v[0:1], v[6:7], v[2:3], v[0:1]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v2, v5, v9 :: v_dual_cndmask_b32 v3, v4, v8
	v_and_b32_e32 v4, 0x7fffffff, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v2, v3, 0, s2
	v_cndmask_b32_e64 v3, v4, v87, s2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_scale_f64 v[4:5], null, v[2:3], v[2:3], v[0:1]
	v_div_scale_f64 v[10:11], vcc_lo, v[0:1], v[2:3], v[0:1]
	v_rcp_f64_e32 v[6:7], v[4:5]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[8:9], -v[4:5], v[6:7], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[6:7], v[6:7], v[8:9], v[6:7]
	v_fma_f64 v[8:9], -v[4:5], v[6:7], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[6:7], v[6:7], v[8:9], v[6:7]
	v_mul_f64 v[8:9], v[10:11], v[6:7]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[4:5], -v[4:5], v[8:9], v[10:11]
	v_div_fmas_f64 v[4:5], v[4:5], v[6:7], v[8:9]
	v_add_co_u32 v6, vcc_lo, s20, v26
	v_add_co_ci_u32_e32 v7, vcc_lo, s21, v27, vcc_lo
	v_add_co_u32 v8, vcc_lo, s26, v26
	v_add_co_ci_u32_e32 v9, vcc_lo, s27, v27, vcc_lo
	v_div_fixup_f64 v[4:5], v[4:5], v[2:3], v[0:1]
	v_mul_f64 v[0:1], v[38:39], v[0:1]
	global_store_b64 v[6:7], v[4:5], off
	s_clause 0x6
	global_load_b64 v[4:5], v[22:23], off
	global_load_b64 v[6:7], v[8:9], off
	global_load_b64 v[8:9], v[18:19], off
	global_load_b64 v[10:11], v[12:13], off
	global_load_b64 v[12:13], v[20:21], off
	global_load_b64 v[16:17], v[16:17], off
	global_load_b64 v[14:15], v[14:15], off
	s_waitcnt vmcnt(5)
	v_fma_f64 v[4:5], v[6:7], -2.0, v[4:5]
	s_waitcnt vmcnt(4)
	v_fma_f64 v[8:9], v[6:7], -2.0, v[8:9]
	s_waitcnt vmcnt(3)
	v_fma_f64 v[6:7], v[6:7], -2.0, v[10:11]
	s_waitcnt vmcnt(2)
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f64 v[4:5], v[12:13], v[4:5]
	s_waitcnt vmcnt(1)
	v_add_f64 v[8:9], v[8:9], v[16:17]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f64 v[6:7], v[6:7], v[14:15]
	v_div_scale_f64 v[10:11], null, v[28:29], v[28:29], v[4:5]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_scale_f64 v[12:13], null, v[30:31], v[30:31], v[8:9]
	v_div_scale_f64 v[14:15], null, v[32:33], v[32:33], v[6:7]
	v_div_scale_f64 v[36:37], vcc_lo, v[4:5], v[28:29], v[4:5]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_rcp_f64_e32 v[16:17], v[10:11]
	v_rcp_f64_e32 v[18:19], v[12:13]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(TRANS32_DEP_3)
	v_rcp_f64_e32 v[20:21], v[14:15]
	v_fma_f64 v[22:23], -v[10:11], v[16:17], 1.0
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[24:25], -v[12:13], v[18:19], 1.0
	v_fma_f64 v[34:35], -v[14:15], v[20:21], 1.0
	v_fma_f64 v[16:17], v[16:17], v[22:23], v[16:17]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[18:19], v[18:19], v[24:25], v[18:19]
	v_fma_f64 v[20:21], v[20:21], v[34:35], v[20:21]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[22:23], -v[10:11], v[16:17], 1.0
	v_fma_f64 v[24:25], -v[12:13], v[18:19], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[34:35], -v[14:15], v[20:21], 1.0
	v_fma_f64 v[16:17], v[16:17], v[22:23], v[16:17]
	v_div_scale_f64 v[22:23], s0, v[8:9], v[30:31], v[8:9]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[18:19], v[18:19], v[24:25], v[18:19]
	v_fma_f64 v[20:21], v[20:21], v[34:35], v[20:21]
	v_div_scale_f64 v[24:25], s1, v[6:7], v[32:33], v[6:7]
	v_mul_f64 v[34:35], v[36:37], v[16:17]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[42:43], v[22:23], v[18:19]
	v_mul_f64 v[44:45], v[24:25], v[20:21]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[10:11], -v[10:11], v[34:35], v[36:37]
	v_fma_f64 v[12:13], -v[12:13], v[42:43], v[22:23]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[14:15], -v[14:15], v[44:45], v[24:25]
	v_div_fmas_f64 v[10:11], v[10:11], v[16:17], v[34:35]
	s_mov_b32 vcc_lo, s0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_div_fmas_f64 v[12:13], v[12:13], v[18:19], v[42:43]
	s_mov_b32 vcc_lo, s1
	v_div_fmas_f64 v[14:15], v[14:15], v[20:21], v[44:45]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_fixup_f64 v[4:5], v[10:11], v[28:29], v[4:5]
	v_div_fixup_f64 v[8:9], v[12:13], v[30:31], v[8:9]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_div_fixup_f64 v[6:7], v[14:15], v[32:33], v[6:7]
	v_add_f64 v[4:5], v[4:5], v[8:9]
	v_div_scale_f64 v[8:9], null, v[40:41], v[40:41], v[0:1]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[4:5], v[4:5], v[6:7]
	v_rcp_f64_e32 v[12:13], v[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_div_scale_f64 v[6:7], null, v[2:3], v[2:3], v[4:5]
	v_div_scale_f64 v[18:19], vcc_lo, v[4:5], v[2:3], v[4:5]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[16:17], -v[8:9], v[12:13], 1.0
	v_rcp_f64_e32 v[10:11], v[6:7]
	v_fma_f64 v[12:13], v[12:13], v[16:17], v[12:13]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[14:15], -v[6:7], v[10:11], 1.0
	v_fma_f64 v[16:17], -v[8:9], v[12:13], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[10:11], v[10:11], v[14:15], v[10:11]
	v_fma_f64 v[12:13], v[12:13], v[16:17], v[12:13]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[14:15], -v[6:7], v[10:11], 1.0
	v_fma_f64 v[10:11], v[10:11], v[14:15], v[10:11]
	v_div_scale_f64 v[14:15], s0, v[0:1], v[40:41], v[0:1]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[16:17], v[18:19], v[10:11]
	v_mul_f64 v[20:21], v[14:15], v[12:13]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[6:7], -v[6:7], v[16:17], v[18:19]
	v_fma_f64 v[8:9], -v[8:9], v[20:21], v[14:15]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f64 v[6:7], v[6:7], v[10:11], v[16:17]
	s_mov_b32 vcc_lo, s0
	v_div_fmas_f64 v[8:9], v[8:9], v[12:13], v[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_div_fixup_f64 v[2:3], v[6:7], v[2:3], v[4:5]
	v_div_fixup_f64 v[0:1], v[8:9], v[40:41], v[0:1]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[0:1], v[2:3], -v[0:1]
	v_add_co_u32 v2, vcc_lo, s22, v26
	v_add_co_ci_u32_e32 v3, vcc_lo, s23, v27, vcc_lo
	global_store_b64 v[2:3], v[0:1], off
.LBB0_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 472
		.amdhsa_user_sgpr_count 13
		.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 1
		.amdhsa_system_sgpr_workgroup_id_z 1
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 2
		.amdhsa_next_free_vgpr 95
		.amdhsa_next_free_sgpr 58
		.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	_Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi, .Lfunc_end0-_Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 8056
; NumSgprs: 60
; NumVgprs: 95
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 7
; VGPRBlocks: 11
; NumSGPRsForWavesPerEU: 60
; NumVGPRsForWavesPerEU: 95
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 13
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 1
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 2
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         56
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         64
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         72
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         80
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         88
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         96
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         104
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         112
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         120
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         128
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         136
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         144
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         152
        .size:           8
        .value_kind:     global_buffer
      - .offset:         160
        .size:           4
        .value_kind:     by_value
      - .offset:         164
        .size:           4
        .value_kind:     by_value
      - .offset:         168
        .size:           4
        .value_kind:     by_value
      - .offset:         176
        .size:           8
        .value_kind:     by_value
      - .offset:         184
        .size:           8
        .value_kind:     by_value
      - .offset:         192
        .size:           8
        .value_kind:     by_value
      - .offset:         200
        .size:           8
        .value_kind:     by_value
      - .offset:         208
        .size:           4
        .value_kind:     by_value
      - .offset:         216
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         220
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         224
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         228
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         230
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         232
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         234
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         236
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         238
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         256
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         264
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         272
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         280
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 472
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi
    .private_segment_fixed_size: 0
    .sgpr_count:     60
    .sgpr_spill_count: 0
    .symbol:         _Z20set_calculus_toolboxPdS_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_S_PKdS1_iiiddddi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     95
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
