/*
   GPU Kernels for the mesh to particles functions
   @author: Stefan Hegglin, Adrian Oeftiger
*/

extern "C" {

__global__ void mesh_to_particles_2d(
    int nparticles,
    double* particles_quantity, double *mesh_quantity,
    const int nx, const int ny,
    double *wij, double *wi1j, double *wij1, double *wi1j1,
    int *i, int *j)
{
    int pidx = blockIdx.x * blockDim.x * blockDim.y + threadIdx.y* blockDim.x + threadIdx.x;
    int ix = i[pidx];
    int jx = j[pidx];

    if (pidx < nparticles) {
        if (jx >= 0 && jx < nx - 1 && ix >= 0 && ix < ny - 1)
        {
            particles_quantity[pidx] = ( wij[pidx]   * mesh_quantity[jx   + ix*nx]
                                       + wij1[pidx]  * mesh_quantity[jx+1 + ix*nx]
                                       + wi1j[pidx]  * mesh_quantity[jx+  + (ix+1)*nx]
                                       + wi1j1[pidx] * mesh_quantity[jx+1 + (ix+1)*nx]);
        } else {
            particles_quantity[pidx] = 0;
        }
    }
}

__global__ void field_to_particles_2d(
    int nparticles,
    double* forcex, double* forcey, double* fieldx, double* fieldy,
    const int nx, const int ny,
    double *wij, double *wi1j, double *wij1, double *wi1j1, int *i, int *j)
{
    int pidx = blockIdx.x * blockDim.x * blockDim.y + threadIdx.y* blockDim.x + threadIdx.x;
    int jx = j[pidx];
    int ix = i[pidx];
    if (pidx < nparticles) {
        if (jx >= 0 && jx < nx - 1 && ix >= 0 && ix < ny - 1)
        {
            forcex[pidx] =    ( wij[pidx] *  fieldx[jx + ix*nx]
                              + wij1[pidx] * fieldx[jx+1 + ix*nx]
                              + wi1j[pidx] * fieldx[jx + (ix+1)*nx]
                              + wi1j1[pidx] *fieldx[jx+1 + (ix+1)*nx]);
            forcey[pidx] =    ( wij[pidx] *  fieldy[jx + ix*nx]
                              + wij1[pidx] * fieldy[jx+1 + ix*nx]
                              + wi1j[pidx] * fieldy[jx + (ix+1)*nx]
                              + wi1j1[pidx] *fieldy[jx+1 + (ix+1)*nx]);
        } else {
            forcex[pidx] = 0;
            forcey[pidx] = 0;
        }
    }
}

__global__ void field_to_particles_3d(
    int nparticles,
    double* forcex, double* forcey, double* forcez,
    double* fieldx, double* fieldy, double* fieldz,
    const int nx, const int ny, const int nz,
    double *wijk, double *wi1jk, double *wij1k, double *wi1j1k,
    double *wijk1, double *wi1jk1, double* wij1k1, double* wi1j1k1,
    int *i, int *j, int* k)
{
    int pidx = blockIdx.x * blockDim.x * blockDim.y + threadIdx.y* blockDim.x + threadIdx.x;
    int ix = i[pidx];
    int jx = j[pidx];
    int kx = k[pidx];
    if (pidx < nparticles) {
        if (jx >= 0 && jx < nx - 1 && ix >= 0 && ix < ny - 1 && kx >= 0 && kx < nz - 1)
        {
            forcex[pidx] = ( wijk[pidx]   * fieldx[jx   + ix*nx     + kx*nx*ny]
                           + wij1k[pidx]  * fieldx[jx+1 + ix*nx     + kx*nx*ny]
                           + wi1jk[pidx]  * fieldx[jx+  + (ix+1)*nx + kx*nx*ny]
                           + wi1j1k[pidx] * fieldx[jx+1 + (ix+1)*nx + kx*nx*ny]
                           + wijk1[pidx]  * fieldx[jx   + ix*nx     + (kx+1)*nx*ny]
                           + wij1k1[pidx] * fieldx[jx+1 + ix*nx     + (kx+1)*nx*ny]
                           + wi1jk1[pidx] * fieldx[jx+  + (ix+1)*nx + (kx+1)*nx*ny]
                           + wi1j1k1[pidx]* fieldx[jx+1 + (ix+1)*nx + (kx+1)*nx*ny]);

            forcey[pidx] = ( wijk[pidx]   * fieldy[jx   + ix*nx     + kx*nx*ny]
                           + wij1k[pidx]  * fieldy[jx+1 + ix*nx     + kx*nx*ny]
                           + wi1jk[pidx]  * fieldy[jx+  + (ix+1)*nx + kx*nx*ny]
                           + wi1j1k[pidx] * fieldy[jx+1 + (ix+1)*nx + kx*nx*ny]
                           + wijk1[pidx]  * fieldy[jx   + ix*nx     + (kx+1)*nx*ny]
                           + wij1k1[pidx] * fieldy[jx+1 + ix*nx     + (kx+1)*nx*ny]
                           + wi1jk1[pidx] * fieldy[jx+  + (ix+1)*nx + (kx+1)*nx*ny]
                           + wi1j1k1[pidx]* fieldy[jx+1 + (ix+1)*nx + (kx+1)*nx*ny]);

            forcez[pidx] = ( wijk[pidx]   * fieldz[jx   + ix*nx     + kx*nx*ny]
                           + wij1k[pidx]  * fieldz[jx+1 + ix*nx     + kx*nx*ny]
                           + wi1jk[pidx]  * fieldz[jx+  + (ix+1)*nx + kx*nx*ny]
                           + wi1j1k[pidx] * fieldz[jx+1 + (ix+1)*nx + kx*nx*ny]
                           + wijk1[pidx]  * fieldz[jx   + ix*nx     + (kx+1)*nx*ny]
                           + wij1k1[pidx] * fieldz[jx+1 + ix*nx     + (kx+1)*nx*ny]
                           + wi1jk1[pidx] * fieldz[jx+  + (ix+1)*nx + (kx+1)*nx*ny]
                           + wi1j1k1[pidx]* fieldz[jx+1 + (ix+1)*nx + (kx+1)*nx*ny]);
        } else {
            forcex[pidx] = 0;
            forcey[pidx] = 0;
            forcez[pidx] = 0;
        }
    }
}

__global__ void mesh_to_particles_3d(
    int nparticles,
    double* particles_quantity, double *mesh_quantity,
    const int nx, const int ny, const int nz,
    double *wijk, double *wi1jk, double *wij1k, double *wi1j1k,
    double *wijk1, double *wi1jk1, double* wij1k1, double* wi1j1k1,
    int *i, int *j, int* k)
{
    int pidx = blockIdx.x * blockDim.x * blockDim.y + threadIdx.y* blockDim.x + threadIdx.x;
    int ix = i[pidx];
    int jx = j[pidx];
    int kx = k[pidx];
    if (pidx < nparticles) {
        if (jx >= 0 && jx < nx - 1 && ix >= 0 && ix < ny - 1 && kx >= 0 && kx < nz - 1)
        {
            particles_quantity[pidx] = ( wijk[pidx]   * mesh_quantity[jx   + ix*nx     + kx*nx*ny]
                                       + wij1k[pidx]  * mesh_quantity[jx+1 + ix*nx     + kx*nx*ny]
                                       + wi1jk[pidx]  * mesh_quantity[jx+  + (ix+1)*nx + kx*nx*ny]
                                       + wi1j1k[pidx] * mesh_quantity[jx+1 + (ix+1)*nx + kx*nx*ny]
                                       + wijk1[pidx]  * mesh_quantity[jx   + ix*nx     + (kx+1)*nx*ny]
                                       + wij1k1[pidx] * mesh_quantity[jx+1 + ix*nx     + (kx+1)*nx*ny]
                                       + wi1jk1[pidx] * mesh_quantity[jx+  + (ix+1)*nx + (kx+1)*nx*ny]
                                       + wi1j1k1[pidx]* mesh_quantity[jx+1 + (ix+1)*nx + (kx+1)*nx*ny]);
        } else {
            particles_quantity[pidx] = 0;
        }
    }
}

} /* end extern C */

	.file	"tmpxft_00216039_00000000-6_m2p_kernels.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2010:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2010:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z58__device_stub__Z20mesh_to_particles_2diPdS_iiS_S_S_S_PiS0_iPdS_iiS_S_S_S_PiS0_
	.type	_Z58__device_stub__Z20mesh_to_particles_2diPdS_iiS_S_S_S_PiS0_iPdS_iiS_S_S_S_PiS0_, @function
_Z58__device_stub__Z20mesh_to_particles_2diPdS_iiS_S_S_S_PiS0_iPdS_iiS_S_S_S_PiS0_:
.LFB2032:
	.cfi_startproc
	endbr64
	subq	$248, %rsp
	.cfi_def_cfa_offset 256
	movq	256(%rsp), %rax
	movl	%edi, 76(%rsp)
	leaq	96(%rsp), %rdi
	movq	%rsi, 64(%rsp)
	leaq	108(%rsp), %rsi
	movq	%rax, 32(%rsp)
	movq	264(%rsp), %rax
	movq	%rdx, 56(%rsp)
	leaq	80(%rsp), %rdx
	movq	%rax, 24(%rsp)
	movq	272(%rsp), %rax
	movl	%ecx, 72(%rsp)
	leaq	88(%rsp), %rcx
	movq	%rax, 16(%rsp)
	movq	280(%rsp), %rax
	movl	%r8d, 52(%rsp)
	movq	%rax, 8(%rsp)
	movq	288(%rsp), %rax
	movq	%r9, 40(%rsp)
	movq	%rax, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	76(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	52(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 208(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 216(%rsp)
	movq	%rsp, %rax
	movq	%rax, 224(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 96(%rsp)
	movl	$1, 104(%rsp)
	movq	%rax, 108(%rsp)
	movl	$1, 116(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L2
	pushq	88(%rsp)
	.cfi_def_cfa_offset 264
	leaq	mesh_to_particles_2d(%rip), %rdi
	pushq	88(%rsp)
	.cfi_def_cfa_offset 272
	movq	124(%rsp), %rcx
	movl	132(%rsp), %r8d
	movq	112(%rsp), %rsi
	movl	120(%rsp), %edx
	leaq	160(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 264
	popq	%rdx
	.cfi_def_cfa_offset 256
.L2:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	addq	$248, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2032:
	.size	_Z58__device_stub__Z20mesh_to_particles_2diPdS_iiS_S_S_S_PiS0_iPdS_iiS_S_S_S_PiS0_, .-_Z58__device_stub__Z20mesh_to_particles_2diPdS_iiS_S_S_S_PiS0_iPdS_iiS_S_S_S_PiS0_
	.globl	mesh_to_particles_2d
	.type	mesh_to_particles_2d, @function
mesh_to_particles_2d:
.LFB2033:
	.cfi_startproc
	endbr64
	jmp	_Z58__device_stub__Z20mesh_to_particles_2diPdS_iiS_S_S_S_PiS0_iPdS_iiS_S_S_S_PiS0_
	.cfi_endproc
.LFE2033:
	.size	mesh_to_particles_2d, .-mesh_to_particles_2d
	.globl	_Z63__device_stub__Z21field_to_particles_2diPdS_S_S_iiS_S_S_S_PiS0_iPdS_S_S_iiS_S_S_S_PiS0_
	.type	_Z63__device_stub__Z21field_to_particles_2diPdS_S_S_iiS_S_S_S_PiS0_iPdS_S_S_iiS_S_S_S_PiS0_, @function
_Z63__device_stub__Z21field_to_particles_2diPdS_S_S_iiS_S_S_S_PiS0_iPdS_S_S_iiS_S_S_S_PiS0_:
.LFB2034:
	.cfi_startproc
	endbr64
	subq	$280, %rsp
	.cfi_def_cfa_offset 288
	movq	296(%rsp), %rax
	movl	%edi, 92(%rsp)
	leaq	112(%rsp), %rdi
	movq	%rsi, 80(%rsp)
	leaq	124(%rsp), %rsi
	movq	%rax, 48(%rsp)
	movq	304(%rsp), %rax
	movq	%rdx, 72(%rsp)
	leaq	96(%rsp), %rdx
	movq	%rax, 40(%rsp)
	movq	312(%rsp), %rax
	movq	%rcx, 64(%rsp)
	leaq	104(%rsp), %rcx
	movq	%rax, 32(%rsp)
	movq	320(%rsp), %rax
	movq	%r8, 56(%rsp)
	movq	%rax, 24(%rsp)
	movq	328(%rsp), %rax
	movl	%r9d, 88(%rsp)
	movq	%rax, 16(%rsp)
	movq	336(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 264(%rsp)
	xorl	%eax, %eax
	leaq	92(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	88(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	288(%rsp), %rax
	movq	%rax, 208(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 216(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 224(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 232(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 240(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 248(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 256(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 112(%rsp)
	movl	$1, 120(%rsp)
	movq	%rax, 124(%rsp)
	movl	$1, 132(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L8
	pushq	104(%rsp)
	.cfi_def_cfa_offset 296
	leaq	field_to_particles_2d(%rip), %rdi
	pushq	104(%rsp)
	.cfi_def_cfa_offset 304
	movq	140(%rsp), %rcx
	movl	148(%rsp), %r8d
	movq	128(%rsp), %rsi
	movl	136(%rsp), %edx
	leaq	176(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 296
	popq	%rdx
	.cfi_def_cfa_offset 288
.L8:
	movq	264(%rsp), %rax
	subq	%fs:40, %rax
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	addq	$280, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2034:
	.size	_Z63__device_stub__Z21field_to_particles_2diPdS_S_S_iiS_S_S_S_PiS0_iPdS_S_S_iiS_S_S_S_PiS0_, .-_Z63__device_stub__Z21field_to_particles_2diPdS_S_S_iiS_S_S_S_PiS0_iPdS_S_S_iiS_S_S_S_PiS0_
	.globl	field_to_particles_2d
	.type	field_to_particles_2d, @function
field_to_particles_2d:
.LFB2035:
	.cfi_startproc
	endbr64
	jmp	_Z63__device_stub__Z21field_to_particles_2diPdS_S_S_iiS_S_S_S_PiS0_iPdS_S_S_iiS_S_S_S_PiS0_
	.cfi_endproc
.LFE2035:
	.size	field_to_particles_2d, .-field_to_particles_2d
	.globl	_Z79__device_stub__Z21field_to_particles_3diPdS_S_S_S_S_iiiS_S_S_S_S_S_S_S_PiS0_S0_iPdS_S_S_S_S_iiiS_S_S_S_S_S_S_S_PiS0_S0_
	.type	_Z79__device_stub__Z21field_to_particles_3diPdS_S_S_S_S_iiiS_S_S_S_S_S_S_S_PiS0_S0_iPdS_S_S_S_S_iiiS_S_S_S_S_S_S_S_PiS0_S0_, @function
_Z79__device_stub__Z21field_to_particles_3diPdS_S_S_S_S_iiiS_S_S_S_S_S_S_S_PiS0_S0_iPdS_S_S_S_S_iiiS_S_S_S_S_S_S_S_PiS0_S0_:
.LFB2036:
	.cfi_startproc
	endbr64
	subq	$392, %rsp
	.cfi_def_cfa_offset 400
	movq	400(%rsp), %rax
	movl	%edi, 140(%rsp)
	leaq	160(%rsp), %rdi
	movq	%rsi, 128(%rsp)
	leaq	172(%rsp), %rsi
	movq	%rax, 88(%rsp)
	movq	432(%rsp), %rax
	movq	%rdx, 120(%rsp)
	leaq	144(%rsp), %rdx
	movq	%rax, 80(%rsp)
	movq	440(%rsp), %rax
	movq	%rcx, 112(%rsp)
	leaq	152(%rsp), %rcx
	movq	%rax, 72(%rsp)
	movq	448(%rsp), %rax
	movq	%r8, 104(%rsp)
	movq	%rax, 64(%rsp)
	movq	456(%rsp), %rax
	movq	%r9, 96(%rsp)
	movq	%rax, 56(%rsp)
	movq	464(%rsp), %rax
	movq	%rax, 48(%rsp)
	movq	472(%rsp), %rax
	movq	%rax, 40(%rsp)
	movq	480(%rsp), %rax
	movq	%rax, 32(%rsp)
	movq	488(%rsp), %rax
	movq	%rax, 24(%rsp)
	movq	496(%rsp), %rax
	movq	%rax, 16(%rsp)
	movq	504(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	512(%rsp), %rax
	movq	%rax, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 376(%rsp)
	xorl	%eax, %eax
	leaq	140(%rsp), %rax
	movl	$1, 168(%rsp)
	movq	%rax, 208(%rsp)
	leaq	128(%rsp), %rax
	movq	%rax, 216(%rsp)
	leaq	120(%rsp), %rax
	movq	%rax, 224(%rsp)
	leaq	112(%rsp), %rax
	movq	%rax, 232(%rsp)
	leaq	104(%rsp), %rax
	movq	%rax, 240(%rsp)
	leaq	96(%rsp), %rax
	movq	%rax, 248(%rsp)
	leaq	88(%rsp), %rax
	movq	%rax, 256(%rsp)
	leaq	408(%rsp), %rax
	movq	%rax, 264(%rsp)
	leaq	416(%rsp), %rax
	movq	%rax, 272(%rsp)
	leaq	424(%rsp), %rax
	movq	%rax, 280(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 288(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 296(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 304(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 312(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 320(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 328(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 336(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 344(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 352(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 360(%rsp)
	movq	%rsp, %rax
	movq	%rax, 368(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 160(%rsp)
	movq	%rax, 172(%rsp)
	movl	$1, 180(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L13
	pushq	152(%rsp)
	.cfi_def_cfa_offset 408
	leaq	field_to_particles_3d(%rip), %rdi
	pushq	152(%rsp)
	.cfi_def_cfa_offset 416
	movq	188(%rsp), %rcx
	movl	196(%rsp), %r8d
	movq	176(%rsp), %rsi
	movl	184(%rsp), %edx
	leaq	224(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 408
	popq	%rdx
	.cfi_def_cfa_offset 400
.L13:
	movq	376(%rsp), %rax
	subq	%fs:40, %rax
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	addq	$392, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2036:
	.size	_Z79__device_stub__Z21field_to_particles_3diPdS_S_S_S_S_iiiS_S_S_S_S_S_S_S_PiS0_S0_iPdS_S_S_S_S_iiiS_S_S_S_S_S_S_S_PiS0_S0_, .-_Z79__device_stub__Z21field_to_particles_3diPdS_S_S_S_S_iiiS_S_S_S_S_S_S_S_PiS0_S0_iPdS_S_S_S_S_iiiS_S_S_S_S_S_S_S_PiS0_S0_
	.globl	field_to_particles_3d
	.type	field_to_particles_3d, @function
field_to_particles_3d:
.LFB2037:
	.cfi_startproc
	endbr64
	jmp	_Z79__device_stub__Z21field_to_particles_3diPdS_S_S_S_S_iiiS_S_S_S_S_S_S_S_PiS0_S0_iPdS_S_S_S_S_iiiS_S_S_S_S_S_S_S_PiS0_S0_
	.cfi_endproc
.LFE2037:
	.size	field_to_particles_3d, .-field_to_particles_3d
	.globl	_Z70__device_stub__Z20mesh_to_particles_3diPdS_iiiS_S_S_S_S_S_S_S_PiS0_S0_iPdS_iiiS_S_S_S_S_S_S_S_PiS0_S0_
	.type	_Z70__device_stub__Z20mesh_to_particles_3diPdS_iiiS_S_S_S_S_S_S_S_PiS0_S0_iPdS_iiiS_S_S_S_S_S_S_S_PiS0_S0_, @function
_Z70__device_stub__Z20mesh_to_particles_3diPdS_iiiS_S_S_S_S_S_S_S_PiS0_S0_iPdS_iiiS_S_S_S_S_S_S_S_PiS0_S0_:
.LFB2038:
	.cfi_startproc
	endbr64
	subq	$344, %rsp
	.cfi_def_cfa_offset 352
	movq	352(%rsp), %rax
	movl	%edi, 124(%rsp)
	leaq	144(%rsp), %rdi
	movq	%rsi, 112(%rsp)
	leaq	156(%rsp), %rsi
	movq	%rax, 88(%rsp)
	movq	360(%rsp), %rax
	movq	%rdx, 104(%rsp)
	leaq	128(%rsp), %rdx
	movq	%rax, 80(%rsp)
	movq	368(%rsp), %rax
	movl	%ecx, 120(%rsp)
	leaq	136(%rsp), %rcx
	movq	%rax, 72(%rsp)
	movq	376(%rsp), %rax
	movl	%r8d, 100(%rsp)
	movq	%rax, 64(%rsp)
	movq	384(%rsp), %rax
	movl	%r9d, 96(%rsp)
	movq	%rax, 56(%rsp)
	movq	392(%rsp), %rax
	movq	%rax, 48(%rsp)
	movq	400(%rsp), %rax
	movq	%rax, 40(%rsp)
	movq	408(%rsp), %rax
	movq	%rax, 32(%rsp)
	movq	416(%rsp), %rax
	movq	%rax, 24(%rsp)
	movq	424(%rsp), %rax
	movq	%rax, 16(%rsp)
	movq	432(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 328(%rsp)
	xorl	%eax, %eax
	leaq	124(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	112(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	104(%rsp), %rax
	movq	%rax, 208(%rsp)
	leaq	120(%rsp), %rax
	movq	%rax, 216(%rsp)
	leaq	100(%rsp), %rax
	movq	%rax, 224(%rsp)
	leaq	96(%rsp), %rax
	movq	%rax, 232(%rsp)
	leaq	88(%rsp), %rax
	movq	%rax, 240(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 248(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 256(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 264(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 272(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 280(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 288(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 296(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 304(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 312(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 320(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 144(%rsp)
	movl	$1, 152(%rsp)
	movq	%rax, 156(%rsp)
	movl	$1, 164(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L18
	pushq	136(%rsp)
	.cfi_def_cfa_offset 360
	leaq	mesh_to_particles_3d(%rip), %rdi
	pushq	136(%rsp)
	.cfi_def_cfa_offset 368
	movq	172(%rsp), %rcx
	movl	180(%rsp), %r8d
	movq	160(%rsp), %rsi
	movl	168(%rsp), %edx
	leaq	208(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 360
	popq	%rdx
	.cfi_def_cfa_offset 352
.L18:
	movq	328(%rsp), %rax
	subq	%fs:40, %rax
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	addq	$344, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2038:
	.size	_Z70__device_stub__Z20mesh_to_particles_3diPdS_iiiS_S_S_S_S_S_S_S_PiS0_S0_iPdS_iiiS_S_S_S_S_S_S_S_PiS0_S0_, .-_Z70__device_stub__Z20mesh_to_particles_3diPdS_iiiS_S_S_S_S_S_S_S_PiS0_S0_iPdS_iiiS_S_S_S_S_S_S_S_PiS0_S0_
	.globl	mesh_to_particles_3d
	.type	mesh_to_particles_3d, @function
mesh_to_particles_3d:
.LFB2039:
	.cfi_startproc
	endbr64
	jmp	_Z70__device_stub__Z20mesh_to_particles_3diPdS_iiiS_S_S_S_S_S_S_S_PiS0_S0_iPdS_iiiS_S_S_S_S_S_S_S_PiS0_S0_
	.cfi_endproc
.LFE2039:
	.size	mesh_to_particles_3d, .-mesh_to_particles_3d
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"mesh_to_particles_3d"
.LC1:
	.string	"field_to_particles_3d"
.LC2:
	.string	"field_to_particles_2d"
.LC3:
	.string	"mesh_to_particles_2d"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2041:
	.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	.LC0(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	mesh_to_particles_3d(%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	.LC1(%rip), %rdx
	orl	$-1, %r8d
	leaq	field_to_particles_3d(%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	.LC2(%rip), %rdx
	orl	$-1, %r8d
	leaq	field_to_particles_2d(%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	.LC3(%rip), %rdx
	orl	$-1, %r8d
	leaq	mesh_to_particles_2d(%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
.LFE2041:
	.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>
/*
   GPU Kernels for the mesh to particles functions
   @author: Stefan Hegglin, Adrian Oeftiger
*/

extern "C" {

__global__ void mesh_to_particles_2d(
    int nparticles,
    double* particles_quantity, double *mesh_quantity,
    const int nx, const int ny,
    double *wij, double *wi1j, double *wij1, double *wi1j1,
    int *i, int *j)
{
    int pidx = blockIdx.x * blockDim.x * blockDim.y + threadIdx.y* blockDim.x + threadIdx.x;
    int ix = i[pidx];
    int jx = j[pidx];

    if (pidx < nparticles) {
        if (jx >= 0 && jx < nx - 1 && ix >= 0 && ix < ny - 1)
        {
            particles_quantity[pidx] = ( wij[pidx]   * mesh_quantity[jx   + ix*nx]
                                       + wij1[pidx]  * mesh_quantity[jx+1 + ix*nx]
                                       + wi1j[pidx]  * mesh_quantity[jx+  + (ix+1)*nx]
                                       + wi1j1[pidx] * mesh_quantity[jx+1 + (ix+1)*nx]);
        } else {
            particles_quantity[pidx] = 0;
        }
    }
}

__global__ void field_to_particles_2d(
    int nparticles,
    double* forcex, double* forcey, double* fieldx, double* fieldy,
    const int nx, const int ny,
    double *wij, double *wi1j, double *wij1, double *wi1j1, int *i, int *j)
{
    int pidx = blockIdx.x * blockDim.x * blockDim.y + threadIdx.y* blockDim.x + threadIdx.x;
    int jx = j[pidx];
    int ix = i[pidx];
    if (pidx < nparticles) {
        if (jx >= 0 && jx < nx - 1 && ix >= 0 && ix < ny - 1)
        {
            forcex[pidx] =    ( wij[pidx] *  fieldx[jx + ix*nx]
                              + wij1[pidx] * fieldx[jx+1 + ix*nx]
                              + wi1j[pidx] * fieldx[jx + (ix+1)*nx]
                              + wi1j1[pidx] *fieldx[jx+1 + (ix+1)*nx]);
            forcey[pidx] =    ( wij[pidx] *  fieldy[jx + ix*nx]
                              + wij1[pidx] * fieldy[jx+1 + ix*nx]
                              + wi1j[pidx] * fieldy[jx + (ix+1)*nx]
                              + wi1j1[pidx] *fieldy[jx+1 + (ix+1)*nx]);
        } else {
            forcex[pidx] = 0;
            forcey[pidx] = 0;
        }
    }
}

__global__ void field_to_particles_3d(
    int nparticles,
    double* forcex, double* forcey, double* forcez,
    double* fieldx, double* fieldy, double* fieldz,
    const int nx, const int ny, const int nz,
    double *wijk, double *wi1jk, double *wij1k, double *wi1j1k,
    double *wijk1, double *wi1jk1, double* wij1k1, double* wi1j1k1,
    int *i, int *j, int* k)
{
    int pidx = blockIdx.x * blockDim.x * blockDim.y + threadIdx.y* blockDim.x + threadIdx.x;
    int ix = i[pidx];
    int jx = j[pidx];
    int kx = k[pidx];
    if (pidx < nparticles) {
        if (jx >= 0 && jx < nx - 1 && ix >= 0 && ix < ny - 1 && kx >= 0 && kx < nz - 1)
        {
            forcex[pidx] = ( wijk[pidx]   * fieldx[jx   + ix*nx     + kx*nx*ny]
                           + wij1k[pidx]  * fieldx[jx+1 + ix*nx     + kx*nx*ny]
                           + wi1jk[pidx]  * fieldx[jx+  + (ix+1)*nx + kx*nx*ny]
                           + wi1j1k[pidx] * fieldx[jx+1 + (ix+1)*nx + kx*nx*ny]
                           + wijk1[pidx]  * fieldx[jx   + ix*nx     + (kx+1)*nx*ny]
                           + wij1k1[pidx] * fieldx[jx+1 + ix*nx     + (kx+1)*nx*ny]
                           + wi1jk1[pidx] * fieldx[jx+  + (ix+1)*nx + (kx+1)*nx*ny]
                           + wi1j1k1[pidx]* fieldx[jx+1 + (ix+1)*nx + (kx+1)*nx*ny]);

            forcey[pidx] = ( wijk[pidx]   * fieldy[jx   + ix*nx     + kx*nx*ny]
                           + wij1k[pidx]  * fieldy[jx+1 + ix*nx     + kx*nx*ny]
                           + wi1jk[pidx]  * fieldy[jx+  + (ix+1)*nx + kx*nx*ny]
                           + wi1j1k[pidx] * fieldy[jx+1 + (ix+1)*nx + kx*nx*ny]
                           + wijk1[pidx]  * fieldy[jx   + ix*nx     + (kx+1)*nx*ny]
                           + wij1k1[pidx] * fieldy[jx+1 + ix*nx     + (kx+1)*nx*ny]
                           + wi1jk1[pidx] * fieldy[jx+  + (ix+1)*nx + (kx+1)*nx*ny]
                           + wi1j1k1[pidx]* fieldy[jx+1 + (ix+1)*nx + (kx+1)*nx*ny]);

            forcez[pidx] = ( wijk[pidx]   * fieldz[jx   + ix*nx     + kx*nx*ny]
                           + wij1k[pidx]  * fieldz[jx+1 + ix*nx     + kx*nx*ny]
                           + wi1jk[pidx]  * fieldz[jx+  + (ix+1)*nx + kx*nx*ny]
                           + wi1j1k[pidx] * fieldz[jx+1 + (ix+1)*nx + kx*nx*ny]
                           + wijk1[pidx]  * fieldz[jx   + ix*nx     + (kx+1)*nx*ny]
                           + wij1k1[pidx] * fieldz[jx+1 + ix*nx     + (kx+1)*nx*ny]
                           + wi1jk1[pidx] * fieldz[jx+  + (ix+1)*nx + (kx+1)*nx*ny]
                           + wi1j1k1[pidx]* fieldz[jx+1 + (ix+1)*nx + (kx+1)*nx*ny]);
        } else {
            forcex[pidx] = 0;
            forcey[pidx] = 0;
            forcez[pidx] = 0;
        }
    }
}

__global__ void mesh_to_particles_3d(
    int nparticles,
    double* particles_quantity, double *mesh_quantity,
    const int nx, const int ny, const int nz,
    double *wijk, double *wi1jk, double *wij1k, double *wi1j1k,
    double *wijk1, double *wi1jk1, double* wij1k1, double* wi1j1k1,
    int *i, int *j, int* k)
{
    int pidx = blockIdx.x * blockDim.x * blockDim.y + threadIdx.y* blockDim.x + threadIdx.x;
    int ix = i[pidx];
    int jx = j[pidx];
    int kx = k[pidx];
    if (pidx < nparticles) {
        if (jx >= 0 && jx < nx - 1 && ix >= 0 && ix < ny - 1 && kx >= 0 && kx < nz - 1)
        {
            particles_quantity[pidx] = ( wijk[pidx]   * mesh_quantity[jx   + ix*nx     + kx*nx*ny]
                                       + wij1k[pidx]  * mesh_quantity[jx+1 + ix*nx     + kx*nx*ny]
                                       + wi1jk[pidx]  * mesh_quantity[jx+  + (ix+1)*nx + kx*nx*ny]
                                       + wi1j1k[pidx] * mesh_quantity[jx+1 + (ix+1)*nx + kx*nx*ny]
                                       + wijk1[pidx]  * mesh_quantity[jx   + ix*nx     + (kx+1)*nx*ny]
                                       + wij1k1[pidx] * mesh_quantity[jx+1 + ix*nx     + (kx+1)*nx*ny]
                                       + wi1jk1[pidx] * mesh_quantity[jx+  + (ix+1)*nx + (kx+1)*nx*ny]
                                       + wi1j1k1[pidx]* mesh_quantity[jx+1 + (ix+1)*nx + (kx+1)*nx*ny]);
        } else {
            particles_quantity[pidx] = 0;
        }
    }
}

} /* end extern C */

	.text
	.file	"m2p_kernels.hip"
	.globl	__device_stub__mesh_to_particles_2d # -- Begin function __device_stub__mesh_to_particles_2d
	.type	__device_stub__mesh_to_particles_2d,@function
__device_stub__mesh_to_particles_2d:    # @__device_stub__mesh_to_particles_2d
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$192, %rsp
	.cfi_def_cfa_offset 240
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	20(%rsp), %rax
	movl	%edi, (%rax)
	leaq	56(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	48(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	16(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	12(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	40(%rsp), %r8
	movq	%r9, (%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	240(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	248(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	256(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	264(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	272(%rsp), %rax
	movq	%rax, 80(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	32(%rsp), %r12
	leaq	24(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$mesh_to_particles_2d, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$208, %rsp
	.cfi_adjust_cfa_offset -208
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	__device_stub__mesh_to_particles_2d, .Lfunc_end0-__device_stub__mesh_to_particles_2d
	.cfi_endproc
                                        # -- End function
	.globl	__device_stub__field_to_particles_2d # -- Begin function __device_stub__field_to_particles_2d
	.type	__device_stub__field_to_particles_2d,@function
__device_stub__field_to_particles_2d:   # @__device_stub__field_to_particles_2d
	.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	$208, %rsp
	.cfi_def_cfa_offset 256
	.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	56(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	48(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	40(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	32(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	8(%rsp), %r8
	movl	%r9d, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	256(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	264(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	272(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	280(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	288(%rsp), %rax
	movq	%rax, 80(%rbx)
	leaq	296(%rsp), %rax
	movq	%rax, 88(%rbx)
	leaq	304(%rsp), %rax
	movq	%rax, 96(%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	$field_to_particles_2d, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$224, %rsp
	.cfi_adjust_cfa_offset -224
	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	__device_stub__field_to_particles_2d, .Lfunc_end1-__device_stub__field_to_particles_2d
	.cfi_endproc
                                        # -- End function
	.globl	__device_stub__field_to_particles_3d # -- Begin function __device_stub__field_to_particles_3d
	.type	__device_stub__field_to_particles_3d,@function
__device_stub__field_to_particles_3d:   # @__device_stub__field_to_particles_3d
	.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	$272, %rsp                      # imm = 0x110
	.cfi_def_cfa_offset 320
	.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	56(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	48(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	40(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	32(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	24(%rsp), %r8
	movq	%r9, (%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	320(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	328(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	336(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	344(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	352(%rsp), %rax
	movq	%rax, 80(%rbx)
	leaq	360(%rsp), %rax
	movq	%rax, 88(%rbx)
	leaq	368(%rsp), %rax
	movq	%rax, 96(%rbx)
	leaq	376(%rsp), %rax
	movq	%rax, 104(%rbx)
	leaq	384(%rsp), %rax
	movq	%rax, 112(%rbx)
	leaq	392(%rsp), %rax
	movq	%rax, 120(%rbx)
	leaq	400(%rsp), %rax
	movq	%rax, 128(%rbx)
	leaq	408(%rsp), %rax
	movq	%rax, 136(%rbx)
	leaq	416(%rsp), %rax
	movq	%rax, 144(%rbx)
	leaq	424(%rsp), %rax
	movq	%rax, 152(%rbx)
	leaq	432(%rsp), %rax
	movq	%rax, 160(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%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	$field_to_particles_3d, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$288, %rsp                      # imm = 0x120
	.cfi_adjust_cfa_offset -288
	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	__device_stub__field_to_particles_3d, .Lfunc_end2-__device_stub__field_to_particles_3d
	.cfi_endproc
                                        # -- End function
	.globl	__device_stub__mesh_to_particles_3d # -- Begin function __device_stub__mesh_to_particles_3d
	.type	__device_stub__mesh_to_particles_3d,@function
__device_stub__mesh_to_particles_3d:    # @__device_stub__mesh_to_particles_3d
	.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	$224, %rsp
	.cfi_def_cfa_offset 272
	.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	40(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	32(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	8(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	4(%rsp), %rcx
	movl	%r8d, (%rcx)
	movq	%rsp, %r8
	movl	%r9d, (%r8)
	leaq	80(%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	272(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	280(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	288(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	296(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	304(%rsp), %rax
	movq	%rax, 80(%rbx)
	leaq	312(%rsp), %rax
	movq	%rax, 88(%rbx)
	leaq	320(%rsp), %rax
	movq	%rax, 96(%rbx)
	leaq	328(%rsp), %rax
	movq	%rax, 104(%rbx)
	leaq	336(%rsp), %rax
	movq	%rax, 112(%rbx)
	leaq	344(%rsp), %rax
	movq	%rax, 120(%rbx)
	leaq	352(%rsp), %rax
	movq	%rax, 128(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$mesh_to_particles_3d, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$240, %rsp
	.cfi_adjust_cfa_offset -240
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	__device_stub__mesh_to_particles_3d, .Lfunc_end3-__device_stub__mesh_to_particles_3d
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB4_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB4_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$mesh_to_particles_2d, %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	$field_to_particles_2d, %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	$field_to_particles_3d, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$mesh_to_particles_3d, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %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_end4:
	.size	__hip_module_ctor, .Lfunc_end4-__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	.LBB5_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
.LBB5_2:
	retq
.Lfunc_end5:
	.size	__hip_module_dtor, .Lfunc_end5-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	mesh_to_particles_2d,@object    # @mesh_to_particles_2d
	.section	.rodata,"a",@progbits
	.globl	mesh_to_particles_2d
	.p2align	3, 0x0
mesh_to_particles_2d:
	.quad	__device_stub__mesh_to_particles_2d
	.size	mesh_to_particles_2d, 8

	.type	field_to_particles_2d,@object   # @field_to_particles_2d
	.globl	field_to_particles_2d
	.p2align	3, 0x0
field_to_particles_2d:
	.quad	__device_stub__field_to_particles_2d
	.size	field_to_particles_2d, 8

	.type	field_to_particles_3d,@object   # @field_to_particles_3d
	.globl	field_to_particles_3d
	.p2align	3, 0x0
field_to_particles_3d:
	.quad	__device_stub__field_to_particles_3d
	.size	field_to_particles_3d, 8

	.type	mesh_to_particles_3d,@object    # @mesh_to_particles_3d
	.globl	mesh_to_particles_3d
	.p2align	3, 0x0
mesh_to_particles_3d:
	.quad	__device_stub__mesh_to_particles_3d
	.size	mesh_to_particles_3d, 8

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

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"field_to_particles_2d"
	.size	.L__unnamed_2, 22

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"field_to_particles_3d"
	.size	.L__unnamed_3, 22

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"mesh_to_particles_3d"
	.size	.L__unnamed_4, 21

	.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 __device_stub__mesh_to_particles_2d
	.addrsig_sym __device_stub__field_to_particles_2d
	.addrsig_sym __device_stub__field_to_particles_3d
	.addrsig_sym __device_stub__mesh_to_particles_3d
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym mesh_to_particles_2d
	.addrsig_sym field_to_particles_2d
	.addrsig_sym field_to_particles_3d
	.addrsig_sym mesh_to_particles_3d
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	mesh_to_particles_2d    ; -- Begin function mesh_to_particles_2d
	.globl	mesh_to_particles_2d
	.p2align	8
	.type	mesh_to_particles_2d,@function
mesh_to_particles_2d:                   ; @mesh_to_particles_2d
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x5c
	s_load_b32 s3, s[0:1], 0x0
	v_bfe_u32 v1, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s4, s2, 16
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[2:3], null, s15, s4, v[1:2]
	v_and_b32_e32 v3, 0x3ff, v0
	v_mad_u64_u32 v[0:1], null, v2, s2, v[3:4]
	s_mov_b32 s2, exec_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_gt_i32_e64 s3, v0
	s_cbranch_execz .LBB0_6
; %bb.1:
	s_clause 0x1
	s_load_b128 s[4:7], s[0:1], 0x40
	s_load_b128 s[12:15], s[0:1], 0x8
	v_ashrrev_i32_e32 v1, 31, v0
	s_mov_b32 s16, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[5:6], 2, v[0:1]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s6, v5
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v6, vcc_lo
	global_load_b32 v2, v[2:3], off
	v_mov_b32_e32 v3, 0
	v_mov_b32_e32 v4, 0
	s_waitcnt vmcnt(0)
	v_cmpx_lt_i32_e32 -1, v2
	s_cbranch_execz .LBB0_5
; %bb.2:
	v_add_co_u32 v3, vcc_lo, s4, v5
	v_add_co_ci_u32_e32 v4, vcc_lo, s5, v6, vcc_lo
	global_load_b32 v5, v[3:4], off
	s_clause 0x1
	s_load_b64 s[2:3], s[0:1], 0x18
	s_load_b256 s[4:11], s[0:1], 0x20
	v_mov_b32_e32 v3, 0
	v_mov_b32_e32 v4, 0
	s_waitcnt lgkmcnt(0)
	s_add_i32 s0, s2, -1
	s_add_i32 s1, s3, -1
	v_cmp_gt_i32_e32 vcc_lo, s0, v2
	s_waitcnt vmcnt(0)
	v_cmp_gt_i32_e64 s0, s1, v5
	v_cmp_lt_i32_e64 s1, -1, v5
	s_delay_alu instid0(VALU_DEP_2)
	s_and_b32 s0, vcc_lo, s0
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	s_and_b32 s1, s0, s1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_saveexec_b32 s0, s1
	s_cbranch_execz .LBB0_4
; %bb.3:
	v_mad_u64_u32 v[6:7], null, v5, s2, v[2:3]
	v_lshlrev_b64 v[10:11], 3, v[0:1]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v7, 31, v6
	v_lshlrev_b64 v[2:3], 3, v[6:7]
	v_add_nc_u32_e32 v6, s2, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v2, vcc_lo, s14, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s15, v3, vcc_lo
	v_add_co_u32 v7, vcc_lo, s8, v10
	v_add_co_ci_u32_e32 v8, vcc_lo, s9, v11, vcc_lo
	global_load_b128 v[2:5], v[2:3], off
	global_load_b64 v[12:13], v[7:8], off
	v_add_co_u32 v7, vcc_lo, s4, v10
	v_add_co_ci_u32_e32 v8, vcc_lo, s5, v11, vcc_lo
	global_load_b64 v[14:15], v[7:8], off
	v_ashrrev_i32_e32 v7, 31, v6
	v_add_co_u32 v8, vcc_lo, s6, v10
	v_add_co_ci_u32_e32 v9, vcc_lo, s7, v11, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[6:7], 3, v[6:7]
	v_add_co_u32 v6, vcc_lo, s14, v6
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v7, vcc_lo, s15, v7, vcc_lo
	global_load_b64 v[16:17], v[8:9], off
	global_load_b128 v[6:9], v[6:7], off
	v_add_co_u32 v10, vcc_lo, s10, v10
	v_add_co_ci_u32_e32 v11, vcc_lo, s11, v11, vcc_lo
	global_load_b64 v[10:11], v[10:11], off
	s_waitcnt vmcnt(4)
	v_mul_f64 v[4:5], v[12:13], v[4:5]
	s_waitcnt vmcnt(3)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[2:3], v[14:15], v[2:3], v[4:5]
	s_waitcnt vmcnt(1)
	v_fma_f64 v[2:3], v[16:17], v[6:7], v[2:3]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[3:4], v[10:11], v[8:9], v[2:3]
.LBB0_4:                                ; %Flow
	s_or_b32 exec_lo, exec_lo, s0
.LBB0_5:                                ; %.sink.split
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	s_or_b32 exec_lo, exec_lo, s16
	v_lshlrev_b64 v[0:1], 3, v[0:1]
	v_add_co_u32 v0, vcc_lo, s12, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s13, v1, vcc_lo
	global_store_b64 v[0:1], v[3:4], off
.LBB0_6:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel mesh_to_particles_2d
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 336
		.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 1
		.amdhsa_next_free_vgpr 18
		.amdhsa_next_free_sgpr 17
		.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	mesh_to_particles_2d, .Lfunc_end0-mesh_to_particles_2d
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 584
; NumSgprs: 19
; NumVgprs: 18
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 19
; NumVGPRsForWavesPerEU: 18
; Occupancy: 16
; WaveLimiterHint : 1
; 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: 1
	.text
	.protected	field_to_particles_2d   ; -- Begin function field_to_particles_2d
	.globl	field_to_particles_2d
	.p2align	8
	.type	field_to_particles_2d,@function
field_to_particles_2d:                  ; @field_to_particles_2d
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x6c
	s_load_b32 s3, s[0:1], 0x0
	v_bfe_u32 v1, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s4, s2, 16
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[2:3], null, s15, s4, v[1:2]
	v_and_b32_e32 v3, 0x3ff, v0
	v_mad_u64_u32 v[0:1], null, v2, s2, v[3:4]
	s_mov_b32 s2, exec_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_gt_i32_e64 s3, v0
	s_cbranch_execz .LBB1_8
; %bb.1:
	s_load_b128 s[20:23], s[0:1], 0x50
	v_ashrrev_i32_e32 v1, 31, v0
	s_mov_b32 s24, exec_lo
                                        ; implicit-def: $sgpr2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[3:4], 2, v[0:1]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v5, vcc_lo, s22, v3
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v6, vcc_lo, s23, v4, vcc_lo
	s_mov_b32 s22, 0
	global_load_b32 v2, v[5:6], off
	s_clause 0x1
	s_load_b256 s[4:11], s[0:1], 0x8
	s_load_b256 s[12:19], s[0:1], 0x30
                                        ; implicit-def: $vgpr5
	s_waitcnt vmcnt(0)
	v_cmp_gt_i32_e64 s23, 0, v2
	v_cmpx_lt_i32_e32 -1, v2
	s_cbranch_execz .LBB1_3
; %bb.2:
	v_add_co_u32 v3, vcc_lo, s20, v3
	v_add_co_ci_u32_e32 v4, vcc_lo, s21, v4, vcc_lo
	s_load_b64 s[2:3], s[0:1], 0x28
	s_mov_b32 s22, exec_lo
	global_load_b32 v5, v[3:4], off
	s_waitcnt lgkmcnt(0)
	s_add_i32 s0, s2, -1
	s_add_i32 s1, s3, -1
	v_cmp_le_i32_e32 vcc_lo, s0, v2
	s_waitcnt vmcnt(0)
	v_cmp_le_i32_e64 s0, s1, v5
	v_cmp_gt_i32_e64 s1, 0, v5
	s_delay_alu instid0(VALU_DEP_2)
	s_or_b32 s0, vcc_lo, s0
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	s_or_b32 s0, s0, s1
	s_and_not1_b32 s1, s23, exec_lo
	s_and_b32 s0, s0, exec_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 s23, s1, s0
.LBB1_3:                                ; %Flow
	s_or_b32 exec_lo, exec_lo, s24
	v_lshlrev_b64 v[0:1], 3, v[0:1]
                                        ; implicit-def: $sgpr0_sgpr1
	s_and_saveexec_b32 s3, s23
	s_delay_alu instid0(SALU_CYCLE_1)
	s_xor_b32 s3, exec_lo, s3
	s_cbranch_execz .LBB1_5
; %bb.4:
	v_mov_b32_e32 v3, 0
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v6, vcc_lo, s4, v0
	v_add_co_ci_u32_e32 v7, vcc_lo, s5, v1, vcc_lo
	s_delay_alu instid0(VALU_DEP_3)
	v_mov_b32_e32 v4, v3
	s_mov_b64 s[0:1], 0
	s_and_not1_b32 s22, s22, exec_lo
	global_store_b64 v[6:7], v[3:4], off
.LBB1_5:                                ; %Flow123
	s_or_b32 exec_lo, exec_lo, s3
	v_dual_mov_b32 v4, s1 :: v_dual_mov_b32 v3, s0
	s_and_saveexec_b32 s0, s22
	s_cbranch_execz .LBB1_7
; %bb.6:
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_mad_u64_u32 v[6:7], null, v5, s2, v[2:3]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v12, vcc_lo, s16, v0
	v_add_co_ci_u32_e32 v13, vcc_lo, s17, v1, vcc_lo
	v_ashrrev_i32_e32 v7, 31, v6
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[10:11], 3, v[6:7]
	v_add_nc_u32_e32 v6, s2, v6
	v_ashrrev_i32_e32 v7, 31, v6
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v2, vcc_lo, s8, v10
	v_add_co_ci_u32_e32 v3, vcc_lo, s9, v11, vcc_lo
	v_add_co_u32 v16, vcc_lo, s12, v0
	global_load_b64 v[14:15], v[12:13], off
	global_load_b128 v[2:5], v[2:3], off
	v_add_co_ci_u32_e32 v17, vcc_lo, s13, v1, vcc_lo
	v_lshlrev_b64 v[20:21], 3, v[6:7]
	v_add_co_u32 v22, vcc_lo, s14, v0
	global_load_b64 v[18:19], v[16:17], off
	v_add_co_ci_u32_e32 v23, vcc_lo, s15, v1, vcc_lo
	v_add_co_u32 v6, vcc_lo, s8, v20
	v_add_co_ci_u32_e32 v7, vcc_lo, s9, v21, vcc_lo
	global_load_b64 v[24:25], v[22:23], off
	global_load_b128 v[6:9], v[6:7], off
	v_add_co_u32 v26, vcc_lo, s18, v0
	v_add_co_ci_u32_e32 v27, vcc_lo, s19, v1, vcc_lo
	global_load_b64 v[28:29], v[26:27], off
	s_waitcnt vmcnt(4)
	v_mul_f64 v[4:5], v[14:15], v[4:5]
	s_waitcnt vmcnt(3)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_fma_f64 v[2:3], v[18:19], v[2:3], v[4:5]
	v_add_co_u32 v4, vcc_lo, s4, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v1, vcc_lo
	s_waitcnt vmcnt(1)
	v_fma_f64 v[2:3], v[24:25], v[6:7], v[2:3]
	v_add_co_u32 v6, vcc_lo, s10, v10
	v_add_co_ci_u32_e32 v7, vcc_lo, s11, v11, vcc_lo
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_3)
	v_fma_f64 v[2:3], v[28:29], v[8:9], v[2:3]
	global_store_b64 v[4:5], v[2:3], off
	global_load_b128 v[2:5], v[6:7], off
	global_load_b64 v[10:11], v[12:13], off
	global_load_b64 v[12:13], v[16:17], off
	v_add_co_u32 v6, vcc_lo, s10, v20
	v_add_co_ci_u32_e32 v7, vcc_lo, s11, v21, vcc_lo
	global_load_b64 v[14:15], v[22:23], off
	global_load_b128 v[6:9], v[6:7], off
	global_load_b64 v[16:17], v[26:27], off
	s_waitcnt vmcnt(4)
	v_mul_f64 v[4:5], v[10:11], v[4:5]
	s_waitcnt vmcnt(3)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[2:3], v[12:13], v[2:3], v[4:5]
	s_waitcnt vmcnt(1)
	v_fma_f64 v[2:3], v[14:15], v[6:7], v[2:3]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[3:4], v[16:17], v[8:9], v[2:3]
.LBB1_7:                                ; %.sink.split
	s_or_b32 exec_lo, exec_lo, s0
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v0, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s7, v1, vcc_lo
	global_store_b64 v[0:1], v[3:4], off
.LBB1_8:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel field_to_particles_2d
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 352
		.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 1
		.amdhsa_next_free_vgpr 30
		.amdhsa_next_free_sgpr 25
		.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	field_to_particles_2d, .Lfunc_end1-field_to_particles_2d
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 800
; NumSgprs: 27
; NumVgprs: 30
; ScratchSize: 0
; MemoryBound: 1
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 3
; VGPRBlocks: 3
; NumSGPRsForWavesPerEU: 27
; NumVGPRsForWavesPerEU: 30
; Occupancy: 16
; WaveLimiterHint : 1
; 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: 1
	.text
	.protected	field_to_particles_3d   ; -- Begin function field_to_particles_3d
	.globl	field_to_particles_3d
	.p2align	8
	.type	field_to_particles_3d,@function
field_to_particles_3d:                  ; @field_to_particles_3d
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0xac
	s_load_b32 s3, s[0:1], 0x0
	v_bfe_u32 v1, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s4, s2, 16
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[2:3], null, s15, s4, v[1:2]
	v_and_b32_e32 v3, 0x3ff, v0
	v_mad_u64_u32 v[0:1], null, v2, s2, v[3:4]
	s_mov_b32 s2, exec_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_gt_i32_e64 s3, v0
	s_cbranch_execz .LBB2_10
; %bb.1:
	s_load_b128 s[4:7], s[0:1], 0x88
	v_ashrrev_i32_e32 v1, 31, v0
	s_mov_b32 s8, 0
                                        ; implicit-def: $sgpr29
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[3:4], 2, v[0:1]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v5, vcc_lo, s6, v3
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v6, vcc_lo, s7, v4, vcc_lo
	s_mov_b32 s7, exec_lo
	global_load_b32 v2, v[5:6], off
	s_clause 0x1
	s_load_b128 s[24:27], s[0:1], 0x28
	s_load_b256 s[16:23], s[0:1], 0x8
                                        ; implicit-def: $vgpr6
                                        ; implicit-def: $vgpr5
	s_waitcnt vmcnt(0)
	v_cmp_gt_i32_e64 s6, 0, v2
	v_cmpx_lt_i32_e32 -1, v2
	s_cbranch_execz .LBB2_5
; %bb.2:
	v_add_co_u32 v5, vcc_lo, s4, v3
	v_add_co_ci_u32_e32 v6, vcc_lo, s5, v4, vcc_lo
	global_load_b32 v5, v[5:6], off
	s_clause 0x1
	s_load_b128 s[28:31], s[0:1], 0x38
	s_load_b64 s[4:5], s[0:1], 0x98
                                        ; implicit-def: $vgpr6
	s_waitcnt lgkmcnt(0)
	s_add_i32 s2, s28, -1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_cmp_gt_i32_e32 vcc_lo, s2, v2
	s_waitcnt vmcnt(0)
	v_cmp_lt_i32_e64 s2, -1, v5
	s_and_b32 s2, vcc_lo, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_xor_b32 s9, s2, -1
	s_and_saveexec_b32 s10, s2
	s_cbranch_execz .LBB2_4
; %bb.3:
	v_add_co_u32 v3, vcc_lo, s4, v3
	v_add_co_ci_u32_e32 v4, vcc_lo, s5, v4, vcc_lo
	s_add_i32 s2, s29, -1
	s_add_i32 s3, s30, -1
	v_cmp_le_i32_e32 vcc_lo, s2, v5
	global_load_b32 v6, v[3:4], off
	s_mov_b32 s8, exec_lo
	s_waitcnt vmcnt(0)
	v_cmp_le_i32_e64 s2, s3, v6
	v_cmp_gt_i32_e64 s3, 0, v6
	s_delay_alu instid0(VALU_DEP_2)
	s_or_b32 s2, vcc_lo, s2
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	s_or_b32 s2, s2, s3
	s_and_not1_b32 s3, s9, exec_lo
	s_and_b32 s2, s2, exec_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 s9, s3, s2
.LBB2_4:                                ; %Flow334
	s_or_b32 exec_lo, exec_lo, s10
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 s2, s6, exec_lo
	s_and_b32 s3, s9, exec_lo
	s_and_b32 s8, s8, exec_lo
	s_or_b32 s6, s2, s3
.LBB2_5:                                ; %Flow
	s_or_b32 exec_lo, exec_lo, s7
	v_lshlrev_b64 v[0:1], 3, v[0:1]
                                        ; implicit-def: $sgpr2_sgpr3
	s_and_saveexec_b32 s4, s6
	s_cbranch_execz .LBB2_7
; %bb.6:
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_u32 v3, vcc_lo, s16, v0
	s_mov_b32 s2, 0
	v_add_co_ci_u32_e32 v4, vcc_lo, s17, v1, vcc_lo
	s_mov_b32 s3, s2
	v_add_co_u32 v9, vcc_lo, s18, v0
	v_dual_mov_b32 v8, s3 :: v_dual_mov_b32 v7, s2
	v_add_co_ci_u32_e32 v10, vcc_lo, s19, v1, vcc_lo
	s_mov_b64 s[2:3], 0
	s_and_not1_b32 s8, s8, exec_lo
	global_store_b64 v[3:4], v[7:8], off
	global_store_b64 v[9:10], v[7:8], off
.LBB2_7:                                ; %Flow335
	s_or_b32 exec_lo, exec_lo, s4
	v_dual_mov_b32 v4, s3 :: v_dual_mov_b32 v3, s2
	s_and_saveexec_b32 s30, s8
	s_cbranch_execz .LBB2_9
; %bb.8:
	s_mul_i32 s29, s29, s28
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_mad_u64_u32 v[10:11], null, v5, s28, v[2:3]
	v_mul_lo_u32 v11, s29, v6
	s_load_b512 s[0:15], s[0:1], 0x48
	v_add_nc_u32_e32 v14, s28, v10
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_nc_u32_e32 v2, v11, v10
	v_add_nc_u32_e32 v15, s29, v11
	v_add_nc_u32_e32 v6, v11, v14
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v3, 31, v2
	v_add_nc_u32_e32 v10, v15, v10
	v_add_nc_u32_e32 v14, v15, v14
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_ashrrev_i32_e32 v7, 31, v6
	v_lshlrev_b64 v[18:19], 3, v[2:3]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_ashrrev_i32_e32 v11, 31, v10
	v_ashrrev_i32_e32 v15, 31, v14
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v20, vcc_lo, s4, v0
	v_add_co_ci_u32_e32 v21, vcc_lo, s5, v1, vcc_lo
	v_add_co_u32 v2, vcc_lo, s22, v18
	v_add_co_ci_u32_e32 v3, vcc_lo, s23, v19, vcc_lo
	global_load_b64 v[22:23], v[20:21], off
	global_load_b128 v[2:5], v[2:3], off
	v_add_co_u32 v24, vcc_lo, s0, v0
	v_add_co_ci_u32_e32 v25, vcc_lo, s1, v1, vcc_lo
	v_lshlrev_b64 v[28:29], 3, v[6:7]
	v_add_co_u32 v30, vcc_lo, s2, v0
	global_load_b64 v[26:27], v[24:25], off
	v_add_co_ci_u32_e32 v31, vcc_lo, s3, v1, vcc_lo
	v_add_co_u32 v6, vcc_lo, s22, v28
	v_add_co_ci_u32_e32 v7, vcc_lo, s23, v29, vcc_lo
	global_load_b64 v[32:33], v[30:31], off
	global_load_b128 v[6:9], v[6:7], off
	v_add_co_u32 v34, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v35, vcc_lo, s7, v1, vcc_lo
	v_lshlrev_b64 v[38:39], 3, v[10:11]
	v_add_co_u32 v40, vcc_lo, s8, v0
	global_load_b64 v[36:37], v[34:35], off
	v_add_co_ci_u32_e32 v41, vcc_lo, s9, v1, vcc_lo
	v_add_co_u32 v10, vcc_lo, s22, v38
	v_add_co_ci_u32_e32 v11, vcc_lo, s23, v39, vcc_lo
	global_load_b64 v[42:43], v[40:41], off
	global_load_b128 v[10:13], v[10:11], off
	v_add_co_u32 v44, vcc_lo, s12, v0
	v_add_co_ci_u32_e32 v45, vcc_lo, s13, v1, vcc_lo
	v_lshlrev_b64 v[48:49], 3, v[14:15]
	v_add_co_u32 v50, vcc_lo, s10, v0
	global_load_b64 v[46:47], v[44:45], off
	v_add_co_ci_u32_e32 v51, vcc_lo, s11, v1, vcc_lo
	v_add_co_u32 v14, vcc_lo, s22, v48
	v_add_co_ci_u32_e32 v15, vcc_lo, s23, v49, vcc_lo
	global_load_b64 v[52:53], v[50:51], off
	global_load_b128 v[14:17], v[14:15], off
	v_add_co_u32 v54, vcc_lo, s14, v0
	v_add_co_ci_u32_e32 v55, vcc_lo, s15, v1, vcc_lo
	global_load_b64 v[56:57], v[54:55], off
	s_waitcnt vmcnt(10)
	v_mul_f64 v[4:5], v[22:23], v[4:5]
	s_waitcnt vmcnt(9)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_fma_f64 v[2:3], v[26:27], v[2:3], v[4:5]
	v_add_co_u32 v4, vcc_lo, s16, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s17, v1, vcc_lo
	s_waitcnt vmcnt(7)
	v_fma_f64 v[2:3], v[32:33], v[6:7], v[2:3]
	v_add_co_u32 v6, vcc_lo, s24, v18
	v_add_co_ci_u32_e32 v7, vcc_lo, s25, v19, vcc_lo
	s_waitcnt vmcnt(6)
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[2:3], v[36:37], v[8:9], v[2:3]
	s_waitcnt vmcnt(4)
	v_fma_f64 v[2:3], v[42:43], v[10:11], v[2:3]
	s_waitcnt vmcnt(3)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[2:3], v[46:47], v[12:13], v[2:3]
	s_waitcnt vmcnt(1)
	v_fma_f64 v[2:3], v[52:53], v[14:15], v[2:3]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[2:3], v[56:57], v[16:17], v[2:3]
	global_store_b64 v[4:5], v[2:3], off
	global_load_b128 v[2:5], v[6:7], off
	global_load_b64 v[22:23], v[20:21], off
	global_load_b64 v[26:27], v[24:25], off
	v_add_co_u32 v6, vcc_lo, s24, v28
	v_add_co_ci_u32_e32 v7, vcc_lo, s25, v29, vcc_lo
	global_load_b64 v[32:33], v[30:31], off
	global_load_b128 v[6:9], v[6:7], off
	global_load_b64 v[36:37], v[34:35], off
	v_add_co_u32 v10, vcc_lo, s24, v38
	v_add_co_ci_u32_e32 v11, vcc_lo, s25, v39, vcc_lo
	global_load_b64 v[42:43], v[40:41], off
	global_load_b128 v[10:13], v[10:11], off
	global_load_b64 v[46:47], v[44:45], off
	v_add_co_u32 v14, vcc_lo, s24, v48
	v_add_co_ci_u32_e32 v15, vcc_lo, s25, v49, vcc_lo
	global_load_b64 v[52:53], v[50:51], off
	global_load_b128 v[14:17], v[14:15], off
	global_load_b64 v[56:57], v[54:55], off
	s_waitcnt vmcnt(10)
	v_mul_f64 v[4:5], v[22:23], v[4:5]
	s_waitcnt vmcnt(9)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_fma_f64 v[2:3], v[26:27], v[2:3], v[4:5]
	v_add_co_u32 v4, vcc_lo, s18, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s19, v1, vcc_lo
	s_waitcnt vmcnt(7)
	v_fma_f64 v[2:3], v[32:33], v[6:7], v[2:3]
	v_add_co_u32 v6, vcc_lo, s26, v18
	v_add_co_ci_u32_e32 v7, vcc_lo, s27, v19, vcc_lo
	s_waitcnt vmcnt(6)
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[2:3], v[36:37], v[8:9], v[2:3]
	s_waitcnt vmcnt(4)
	v_fma_f64 v[2:3], v[42:43], v[10:11], v[2:3]
	s_waitcnt vmcnt(3)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[2:3], v[46:47], v[12:13], v[2:3]
	s_waitcnt vmcnt(1)
	v_fma_f64 v[2:3], v[52:53], v[14:15], v[2:3]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[2:3], v[56:57], v[16:17], v[2:3]
	global_store_b64 v[4:5], v[2:3], off
	global_load_b128 v[2:5], v[6:7], off
	global_load_b64 v[18:19], v[20:21], off
	global_load_b64 v[20:21], v[24:25], off
	v_add_co_u32 v6, vcc_lo, s26, v28
	v_add_co_ci_u32_e32 v7, vcc_lo, s27, v29, vcc_lo
	global_load_b64 v[22:23], v[30:31], off
	global_load_b128 v[6:9], v[6:7], off
	global_load_b64 v[24:25], v[34:35], off
	v_add_co_u32 v10, vcc_lo, s26, v38
	v_add_co_ci_u32_e32 v11, vcc_lo, s27, v39, vcc_lo
	global_load_b64 v[26:27], v[40:41], off
	global_load_b128 v[10:13], v[10:11], off
	global_load_b64 v[28:29], v[44:45], off
	v_add_co_u32 v14, vcc_lo, s26, v48
	v_add_co_ci_u32_e32 v15, vcc_lo, s27, v49, vcc_lo
	global_load_b64 v[30:31], v[50:51], off
	global_load_b128 v[14:17], v[14:15], off
	global_load_b64 v[32:33], v[54:55], off
	s_waitcnt vmcnt(10)
	v_mul_f64 v[4:5], v[18:19], v[4:5]
	s_waitcnt vmcnt(9)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[2:3], v[20:21], v[2:3], v[4:5]
	s_waitcnt vmcnt(7)
	v_fma_f64 v[2:3], v[22:23], v[6:7], v[2:3]
	s_waitcnt vmcnt(6)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[2:3], v[24:25], v[8:9], v[2:3]
	s_waitcnt vmcnt(4)
	v_fma_f64 v[2:3], v[26:27], v[10:11], v[2:3]
	s_waitcnt vmcnt(3)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[2:3], v[28:29], v[12:13], v[2:3]
	s_waitcnt vmcnt(1)
	v_fma_f64 v[2:3], v[30:31], v[14:15], v[2:3]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[3:4], v[32:33], v[16:17], v[2:3]
.LBB2_9:                                ; %.sink.split
	s_or_b32 exec_lo, exec_lo, s30
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v0, vcc_lo, s20, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s21, v1, vcc_lo
	global_store_b64 v[0:1], v[3:4], off
.LBB2_10:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel field_to_particles_3d
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 416
		.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 1
		.amdhsa_next_free_vgpr 58
		.amdhsa_next_free_sgpr 32
		.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	field_to_particles_3d, .Lfunc_end2-field_to_particles_3d
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1572
; NumSgprs: 34
; NumVgprs: 58
; ScratchSize: 0
; MemoryBound: 1
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 4
; VGPRBlocks: 7
; NumSGPRsForWavesPerEU: 34
; NumVGPRsForWavesPerEU: 58
; Occupancy: 16
; WaveLimiterHint : 1
; 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: 1
	.text
	.protected	mesh_to_particles_3d    ; -- Begin function mesh_to_particles_3d
	.globl	mesh_to_particles_3d
	.p2align	8
	.type	mesh_to_particles_3d,@function
mesh_to_particles_3d:                   ; @mesh_to_particles_3d
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x8c
	s_load_b32 s3, s[0:1], 0x0
	v_bfe_u32 v1, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s4, s2, 16
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[2:3], null, s15, s4, v[1:2]
	v_and_b32_e32 v3, 0x3ff, v0
	v_mad_u64_u32 v[0:1], null, v2, s2, v[3:4]
	s_mov_b32 s2, exec_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_gt_i32_e64 s3, v0
	s_cbranch_execz .LBB3_8
; %bb.1:
	s_clause 0x1
	s_load_b128 s[4:7], s[0:1], 0x68
	s_load_b128 s[16:19], s[0:1], 0x8
	v_ashrrev_i32_e32 v1, 31, v0
	s_mov_b32 s24, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[5:6], 2, v[0:1]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s6, v5
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v6, vcc_lo
	global_load_b32 v2, v[2:3], off
	v_mov_b32_e32 v3, 0
	v_mov_b32_e32 v4, 0
	s_waitcnt vmcnt(0)
	v_cmpx_lt_i32_e32 -1, v2
	s_cbranch_execz .LBB3_7
; %bb.2:
	v_add_co_u32 v3, vcc_lo, s4, v5
	v_add_co_ci_u32_e32 v4, vcc_lo, s5, v6, vcc_lo
	global_load_b32 v7, v[3:4], off
	s_clause 0x1
	s_load_b128 s[20:23], s[0:1], 0x18
	s_load_b64 s[4:5], s[0:1], 0x78
	v_mov_b32_e32 v3, 0
	v_mov_b32_e32 v4, 0
	s_waitcnt lgkmcnt(0)
	s_add_i32 s2, s20, -1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_cmp_gt_i32_e32 vcc_lo, s2, v2
	s_waitcnt vmcnt(0)
	v_cmp_lt_i32_e64 s2, -1, v7
	s_and_b32 s2, vcc_lo, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_saveexec_b32 s23, s2
	s_cbranch_execz .LBB3_6
; %bb.3:
	v_add_co_u32 v3, vcc_lo, s4, v5
	v_add_co_ci_u32_e32 v4, vcc_lo, s5, v6, vcc_lo
	s_add_i32 s2, s21, -1
	s_add_i32 s3, s22, -1
	v_cmp_gt_i32_e32 vcc_lo, s2, v7
	global_load_b32 v5, v[3:4], off
	v_mov_b32_e32 v3, 0
	v_mov_b32_e32 v4, 0
	s_waitcnt vmcnt(0)
	v_cmp_gt_i32_e64 s2, s3, v5
	v_cmp_lt_i32_e64 s3, -1, v5
	s_delay_alu instid0(VALU_DEP_2)
	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 s22, s2
	s_cbranch_execz .LBB3_5
; %bb.4:
	s_mul_i32 s21, s21, s20
	v_mad_u64_u32 v[10:11], null, v7, s20, v[2:3]
	v_mul_lo_u32 v13, s21, v5
	s_load_b512 s[0:15], s[0:1], 0x28
	v_lshlrev_b64 v[18:19], 3, v[0:1]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_nc_u32_e32 v16, s20, v10
	v_add_nc_u32_e32 v2, v13, v10
	v_add_nc_u32_e32 v17, s21, v13
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v3, 31, v2
	v_add_nc_u32_e32 v10, v17, v10
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[2:3], 3, v[2:3]
	v_add_co_u32 v2, vcc_lo, s18, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s19, v3, vcc_lo
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v6, vcc_lo, s4, v18
	v_add_co_ci_u32_e32 v7, vcc_lo, s5, v19, vcc_lo
	global_load_b128 v[2:5], v[2:3], off
	global_load_b64 v[20:21], v[6:7], off
	v_add_co_u32 v6, vcc_lo, s0, v18
	v_add_co_ci_u32_e32 v7, vcc_lo, s1, v19, vcc_lo
	v_add_co_u32 v8, vcc_lo, s2, v18
	v_add_co_ci_u32_e32 v9, vcc_lo, s3, v19, vcc_lo
	global_load_b64 v[22:23], v[6:7], off
	v_add_nc_u32_e32 v6, v13, v16
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v7, 31, v6
	v_lshlrev_b64 v[6:7], 3, v[6:7]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v6, vcc_lo, s18, v6
	v_add_co_ci_u32_e32 v7, vcc_lo, s19, v7, vcc_lo
	global_load_b64 v[24:25], v[8:9], off
	global_load_b128 v[6:9], v[6:7], off
	v_add_co_u32 v11, vcc_lo, s6, v18
	v_add_co_ci_u32_e32 v12, vcc_lo, s7, v19, vcc_lo
	global_load_b64 v[26:27], v[11:12], off
	v_ashrrev_i32_e32 v11, 31, v10
	v_add_co_u32 v12, vcc_lo, s8, v18
	v_add_co_ci_u32_e32 v13, vcc_lo, s9, v19, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[10:11], 3, v[10:11]
	v_add_co_u32 v10, vcc_lo, s18, v10
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v11, vcc_lo, s19, v11, vcc_lo
	global_load_b64 v[28:29], v[12:13], off
	global_load_b128 v[10:13], v[10:11], off
	v_add_co_u32 v14, vcc_lo, s12, v18
	v_add_co_ci_u32_e32 v15, vcc_lo, s13, v19, vcc_lo
	global_load_b64 v[30:31], v[14:15], off
	v_add_nc_u32_e32 v14, v17, v16
	v_add_co_u32 v16, vcc_lo, s10, v18
	v_add_co_ci_u32_e32 v17, vcc_lo, s11, v19, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v15, 31, v14
	v_lshlrev_b64 v[14:15], 3, v[14:15]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v14, vcc_lo, s18, v14
	v_add_co_ci_u32_e32 v15, vcc_lo, s19, v15, vcc_lo
	global_load_b64 v[32:33], v[16:17], off
	global_load_b128 v[14:17], v[14:15], off
	v_add_co_u32 v18, vcc_lo, s14, v18
	v_add_co_ci_u32_e32 v19, vcc_lo, s15, v19, vcc_lo
	global_load_b64 v[18:19], v[18:19], off
	s_waitcnt vmcnt(10)
	v_mul_f64 v[4:5], v[20:21], v[4:5]
	s_waitcnt vmcnt(9)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[2:3], v[22:23], v[2:3], v[4:5]
	s_waitcnt vmcnt(7)
	v_fma_f64 v[2:3], v[24:25], v[6:7], v[2:3]
	s_waitcnt vmcnt(6)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[2:3], v[26:27], v[8:9], v[2:3]
	s_waitcnt vmcnt(4)
	v_fma_f64 v[2:3], v[28:29], v[10:11], v[2:3]
	s_waitcnt vmcnt(3)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f64 v[2:3], v[30:31], v[12:13], v[2:3]
	s_waitcnt vmcnt(1)
	v_fma_f64 v[2:3], v[32:33], v[14:15], v[2:3]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[3:4], v[18:19], v[16:17], v[2:3]
.LBB3_5:                                ; %Flow
	s_or_b32 exec_lo, exec_lo, s22
.LBB3_6:                                ; %Flow166
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s23
.LBB3_7:                                ; %.sink.split
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	s_or_b32 exec_lo, exec_lo, s24
	v_lshlrev_b64 v[0:1], 3, v[0:1]
	v_add_co_u32 v0, vcc_lo, s16, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s17, v1, vcc_lo
	global_store_b64 v[0:1], v[3:4], off
.LBB3_8:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel mesh_to_particles_3d
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 384
		.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 1
		.amdhsa_next_free_vgpr 34
		.amdhsa_next_free_sgpr 25
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end3:
	.size	mesh_to_particles_3d, .Lfunc_end3-mesh_to_particles_3d
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 928
; NumSgprs: 27
; NumVgprs: 34
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 3
; VGPRBlocks: 4
; NumSGPRsForWavesPerEU: 27
; NumVGPRsForWavesPerEU: 34
; Occupancy: 16
; WaveLimiterHint : 1
; 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: 1
	.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
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           4
        .value_kind:     by_value
      - .offset:         28
        .size:           4
        .value_kind:     by_value
      - .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
      - .offset:         80
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         84
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         88
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         92
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         94
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         96
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         98
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         100
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         102
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         120
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         128
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         136
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         144
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 336
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           mesh_to_particles_2d
    .private_segment_fixed_size: 0
    .sgpr_count:     19
    .sgpr_spill_count: 0
    .symbol:         mesh_to_particles_2d.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     18
    .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
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .offset:         40
        .size:           4
        .value_kind:     by_value
      - .offset:         44
        .size:           4
        .value_kind:     by_value
      - .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
      - .offset:         96
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         100
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         104
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         108
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         110
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         112
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         114
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         116
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         118
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         136
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         144
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         152
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         160
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 352
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           field_to_particles_2d
    .private_segment_fixed_size: 0
    .sgpr_count:     27
    .sgpr_spill_count: 0
    .symbol:         field_to_particles_2d.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
      - .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
      - .offset:         56
        .size:           4
        .value_kind:     by_value
      - .offset:         60
        .size:           4
        .value_kind:     by_value
      - .offset:         64
        .size:           4
        .value_kind:     by_value
      - .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:     hidden_block_count_x
      - .offset:         164
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         168
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         172
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         174
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         176
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         178
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         180
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         182
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         200
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         208
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         216
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         224
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 416
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           field_to_particles_3d
    .private_segment_fixed_size: 0
    .sgpr_count:     34
    .sgpr_spill_count: 0
    .symbol:         field_to_particles_3d.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     58
    .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
      - .offset:         24
        .size:           4
        .value_kind:     by_value
      - .offset:         28
        .size:           4
        .value_kind:     by_value
      - .offset:         32
        .size:           4
        .value_kind:     by_value
      - .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
      - .offset:         128
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         132
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         136
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         140
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         142
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         144
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         146
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         148
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         150
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         168
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         176
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         184
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         192
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 384
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           mesh_to_particles_3d
    .private_segment_fixed_size: 0
    .sgpr_count:     27
    .sgpr_spill_count: 0
    .symbol:         mesh_to_particles_3d.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     34
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
