/**
 * Copyright 1993-2012 NVIDIA Corporation.  All rights reserved.
 *
 * Please refer to the NVIDIA end user license agreement (EULA) associated
 * with this source code for terms and conditions that govern your use of
 * this software. Any use, reproduction, disclosure, or distribution of
 * this software and related documentation outside the terms of the EULA
 * is strictly prohibited.
 */
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <math.h>
#include <time.h>
#include <fstream>
#include <vector>
#include <fstream>
#include <curand_kernel.h>
#include <cufft.h>

float L,LL; int N, C,itera;

using namespace std;

// función Maxwelliana de la distribución de las partículas.
__device__ float distribution (float vb, float aleatorio, curandState *states)     //generador de distribución maxwelliana para la velocidad
{

  // Genera un valor random v
   float fmax = 0.5 * (1.0 + exp (-2.0 * vb * vb));
   float vmin = - 5.0 * vb;
   float vmax = + 5.0 * vb;
   float v;
   float f;
   float x;
   int Idx = blockIdx.x*blockDim.x + threadIdx.x;

   while(true){
	   v = vmin + ((vmax - vmin) * aleatorio);
	   f = 0.5 * (exp (-(v - vb) * (v - vb) / 2.0) +
			    exp (-(v + vb) * (v + vb) / 2.0));
	   x = fmax * aleatorio;
	   if(x > f) aleatorio = curand_uniform(states + Idx);
	   else return v;
   }

}
//Distribución aleatoria de las partículas.
__global__ void distribucionParticulas(float *rx,float *ry,float *vx,float *vy,int N,curandState *states,float vb,float L){
	int Idx = blockIdx.x*blockDim.x + threadIdx.x;

	unsigned int seed = (unsigned int) (clock() * Idx);
	curand_init(seed, 0, 0, states + Idx);

	if(Idx < N){
		 rx[Idx] = L*curand_uniform(states + Idx);    //inicializando la posicion aleatoria en x
		 ry[Idx] = L*curand_uniform(states + Idx);
		 vx[Idx] = distribution(vb,curand_uniform(states + Idx),states);//;L*curand_uniform_float(states + Idx);//distribution(vb,states);                          //inicializa la velocidad con una distribucion maxwelliana
		 vy[Idx] = distribution(vb,curand_uniform(states + Idx),states);//L*curand_uniform_float(states + Idx);//distribution(vb,states);                          //inicializa la velocidad con una distribucion maxwelliana

	}


}
// inicialización de la densidad.
__global__ void inicializacionDensidad(float *ne,int C){
	int Id=blockIdx.x*blockDim.x + threadIdx.x;
		if(Id<(C*C)){
			ne[Id]=0.0;
		}
 }


//Calculo de la densidad en cada celda.

__global__ void calculoDensidad(float *rx, float *ry, float *ne, int N, int C,float L){
	int Id=blockIdx.x*blockDim.x + threadIdx.x;
	 float dx = L / float (C);
	 float dxx=L/float(C*C);
	if(Id<N){

				int jx = int(rx[Id]/dx); //posicion en x de la particula
			    int jy = int(ry[Id]/dx); //posicion en y de la particula
			    float yx = (rx[Id]/dx) - (float)jx; //posicion exacta de la particula en x de la celda "j"
			    //float yy = (ry[Id]/dx) - (float)jy; //posicion exacta de la particula en y de la celda "j"
			    ne[(jy*C)+jx] += (1. - yx)/dxx;
			    if(jx+1==C) ne[(jy*C)] += yx/dxx;
			    else ne[(jy*C)+jx+1] += yx/dxx;

    }

}
//pasar de reales a complejos.

__global__ void real2complex (float *ne, cufftComplex *u, int C)
{
	int idx = blockIdx.x*blockDim.x+threadIdx.x;
	int idy = blockIdx.y*blockDim.y+threadIdx.y;
	int index =idy*C+idx;

	if ( idx < C && idy <C)
	 {
		u[index].x = ne[index];
		u[index].y = 0.0f;
	}

}
//__global__ void prueba (cufftComplex *vf, float *vr, int C){
//	int idx = blockIdx.x*blockDim.x+threadIdx.x;
//	int idy = blockIdx.y*blockDim.y+threadIdx.y;
//	int index =idy*C+idx;
//
//	if(idx<C && idy<C){
//
//		vr[index]= (vf[index].x)/((float)C*(float)C*(float)C*(float)C);
//		vr[index]= (vf[index].y)/((float)C*(float)C*(float)C*(float)C);
//
//	}
//}

__global__ void solve_Poisson(cufftComplex *vf, cufftComplex *v, int C,float L){

	int idx = blockIdx.x*blockDim.x+threadIdx.x;
	int idy = blockIdx.y*blockDim.y+threadIdx.y;
	float dx = L / float (C);
	float i,W,Wm,Wn;
	i = (0.0,L);
	W = exp(2.0 * M_PI * i / float(C));
	Wm = L;
	Wn = L;
	if(idx<C && idy<C){
		int index = idy*C+idx;
		float denom;
		denom = 4.0;
		denom -= (Wm + (L / Wm) + Wn +( L / Wn));
		if (denom != 0.0){
				vf[index].x *= dx*dx/denom;
				vf[index].y *= dx*dx/denom;
				}
				Wn *= W;//se multiplica por la constante W
			}
			Wm *= W;
			if(idx<C && idy<C){
			int index = idx*C+idy;
			v[index].x=vf[index].x;
			v[index].y=vf[index].y;
			}

	}



__global__ void complex2real(cufftComplex *v, float *vr, int C){
	/* compute idx and idy, the location of the element in the original CxC array */
	int idx = blockIdx.x*blockDim.x+threadIdx.x;
	int idy = blockIdx.y*blockDim.y+threadIdx.y;
	if ( idx < C && idy <C)
		 {
		 int index = idy*C+idx;
		 vr[index] = v[index].x /((float)C*(float)C);
		 }
}



////////////////////////////////////////////////////////////////////////////////////////////////////
int main(){
	// Parametros
	L = 64.0;            // dominio de la solucion 0 <= x <= L (en longitudes de debye)
	//L=LL*LL;
	N = 10000;            // Numero de particulas
	C = 64;            // Número de celdas.
	float vb = 3.0;    // velocidad promedio de los electrones
	//float kappa = 2. * M_PI / (L);
	//float dt=0.1;    // delta tiempo (en frecuencias inversas del plasma)
	//float tmax=10000;  // cantidad de iteraciones. deben ser 100 mil segun el material
	//int skip = int (tmax / dt) / 10; //saltos del algoritmo para reportar datos
	//int itera=0;
	float salida=0.;
	 //float dx = L / float (C);

/////////////////////////////////////////////////////////////////////////////////////////////////////
//Inicializacion de la posición de las particulas en x, y y velocidad en vx,vy del host y dispositivo.
	float *rx_h,*ry_h,*vx_h,*vy_h;
	float *rx_d,*ry_d, *vx_d,*vy_d;
////////////////////////////////////////////////////////////////////////////////////////////////////
	// inicialización de las variables de densidad del host y dispositivo.
	float *ne_h;
	float *ne_d;
	float *vr_h;
	float *vr_d;
////////////////////////////////////////////////////////////////////////////////////////////////////
	//inicializacion tipo complex a real.

	cufftComplex *u_complex_d,*vf_complex_d,*v_complex_d ;
	cudaMalloc((void**)&u_complex_d,sizeof(cufftComplex)*C*C);
	cudaMalloc((void**)&vf_complex_d,sizeof(cufftComplex)*C*C);
	cudaMalloc((void**)&v_complex_d,sizeof(cufftComplex)*C*C);

////////////////////////////////////////////////////////////////////////////////////////////////////
	int size = N*sizeof(float);
	int size_ne=C*C*sizeof(float);

//////////////////////////////////////////////////////////////////////////////////////////////////////
	//reserva en memoria al host
	rx_h = (float *)malloc(size);
	ry_h = (float *)malloc(size);
	vx_h = (float *)malloc(size);
	vy_h = (float *)malloc(size);
	ne_h = (float *)malloc(size_ne);
	vr_h = (float *)malloc(size_ne);

//////////////////////////////////////////////////////////////////////////////////////////////////////
	//reserva de memoria del dispositivo.
	cudaMalloc((void **)&rx_d,size);
	cudaMalloc((void **)&ry_d,size);
	cudaMalloc((void **)&vx_d,size);
	cudaMalloc((void **)&vy_d,size);
	cudaMalloc((void **)&ne_d,size_ne);
	cudaMalloc((void **)&vr_d,size_ne);

////////////////////////////////////////////////////////////////////////////////////////////////////

	//valores aleatorios y tamaños de los vectores.
	curandState *devStates;
	cudaMalloc((void **) &devStates, N * sizeof(curandState));


	float blockSize = 1024;
	dim3 dimBlock (ceil(N/blockSize), 1, 1);
	dim3 dimBlock2 (ceil((C*C)/blockSize), 1, 1);
	dim3 dimGrid (blockSize, 1, 1);


	distribucionParticulas<<<blockSize,dimBlock>>>(rx_d,ry_d,vx_d,vy_d,N,devStates,vb,L);
	cudaDeviceSynchronize();

	inicializacionDensidad<<<blockSize,dimBlock2>>>(ne_d,C);
	cudaDeviceSynchronize();

	calculoDensidad<<<blockSize,dimBlock>>>(rx_d,ry_d,ne_d,N,C,L);
	cudaDeviceSynchronize();

	cufftHandle plan;
	cufftPlan2d(&plan, C, C, CUFFT_C2C);

	real2complex<<<blockSize,dimBlock2>>>(ne_d,u_complex_d,C);
	cudaDeviceSynchronize();

	cufftExecC2C (plan, u_complex_d, vf_complex_d, CUFFT_FORWARD);
	// dividir el resultado por C4
	//prueba<<<dimGrid, dimBlock2>>> (vf_complex_d,vr_d,C);

	v_complex_d[0].x=0.0;
	v_complex_d[0].y=0.0;


	solve_Poisson<<<dimGrid, dimBlock2>>> (vf_complex_d,v_complex_d,C,L);
	cudaDeviceSynchronize();

	cufftExecC2C (plan, v_complex_d, v_complex_d, CUFFT_INVERSE);

	complex2real<<<dimGrid, dimBlock2>>> (v_complex_d,vr_d,C);


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

	//posición en x.
	cudaMemcpy(rx_h, rx_d, size, cudaMemcpyDeviceToHost);

	// posición en y.
	cudaMemcpy(ry_h, ry_d, size, cudaMemcpyDeviceToHost);

	// velocidad en x.
	cudaMemcpy(vx_h, vx_d, size, cudaMemcpyDeviceToHost);

	//velocidad en y.
	cudaMemcpy(vy_h, vy_d, size, cudaMemcpyDeviceToHost);
	//inicializacion densidades
	cudaMemcpy(ne_h, ne_d, size_ne, cudaMemcpyDeviceToHost);
	//calculo poisson
	cudaMemcpy (vr_h , vr_d, size_ne, cudaMemcpyDeviceToHost);

	///////////////////Imprimir los resultados en archivos//////////////////////
	ofstream init;
		init.open("distribucionInicial.txt");
		  		    for (int i = 0; i < N; i++){
		  		    	init<<rx_h[i]<<" "<<ry_h[i]<<" "<<vx_h[i]<<" "<<vy_h[i]<<endl;

		  		    }

		  		    init.close();


		init.open("salida_densidad3.txt");
					for (int i = 0; i < C*C; i++){
						init<<ne_h[i]<<endl;
						salida+=ne_h[i];
					}

					init.close();
					cout<<salida<<" "<<endl;

		init.open("entrada_poisson");
					for (int i = 0; i < C; i++){
						for (int j = 0; j < C; j++){
								init<<ne_h[(C*i)+j]<<" ";
						}
						init<<endl;
					}
					init.close();

		init.open("poisson");
				for (int i = 0; i < C; i++){
					for (int j = 0; j < C; j++){
						init<< vr_h[(C*j)+i]<<" ";
							}
							init<<endl;
						}
						init.close();

////////////////////Liberar memoria//////////////////////////
	free(rx_h);
	free(ry_h);
	free(vx_h);
	free(vy_h);
	free(ne_h);
	free(vr_h);
	cufftDestroy(plan);
	cudaFree(rx_d);
	cudaFree(ry_d);
	cudaFree(vx_d);
	cudaFree(vy_d);
	cudaFree(ne_d);
	cudaFree(vr_d);
	cudaFree(u_complex_d);
	cudaFree(vf_complex_d);
	cudaFree(v_complex_d);
	return (0);

}

	.file	"tmpxft_0029e2ab_00000000-6_parallel2DPIC.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4370:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4370:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSolsEPFRSoS_E.isra.0, @function
_ZNSolsEPFRSoS_E.isra.0:
.LFB5086:
	.cfi_startproc
	jmp	*%rsi
	.cfi_endproc
.LFE5086:
	.size	_ZNSolsEPFRSoS_E.isra.0, .-_ZNSolsEPFRSoS_E.isra.0
	.globl	_Z12distributionffP17curandStateXORWOW
	.type	_Z12distributionffP17curandStateXORWOW, @function
_Z12distributionffP17curandStateXORWOW:
.LFB4366:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE4366:
	.size	_Z12distributionffP17curandStateXORWOW, .-_Z12distributionffP17curandStateXORWOW
	.globl	_Z71__device_stub__Z22distribucionParticulasPfS_S_S_iP17curandStateXORWOWffPfS_S_S_iP17curandStateXORWOWff
	.type	_Z71__device_stub__Z22distribucionParticulasPfS_S_S_iP17curandStateXORWOWffPfS_S_S_iP17curandStateXORWOWff, @function
_Z71__device_stub__Z22distribucionParticulasPfS_S_S_iP17curandStateXORWOWffPfS_S_S_iP17curandStateXORWOWff:
.LFB4392:
	.cfi_startproc
	endbr64
	subq	$216, %rsp
	.cfi_def_cfa_offset 224
	movq	%rdi, 56(%rsp)
	leaq	88(%rsp), %rdi
	movq	%rsi, 48(%rsp)
	leaq	100(%rsp), %rsi
	movq	%rdx, 40(%rsp)
	leaq	72(%rsp), %rdx
	movq	%rcx, 32(%rsp)
	leaq	80(%rsp), %rcx
	movl	%r8d, 28(%rsp)
	movq	%r9, 16(%rsp)
	movss	%xmm0, 24(%rsp)
	movss	%xmm1, 12(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 200(%rsp)
	xorl	%eax, %eax
	leaq	56(%rsp), %rax
	movl	$1, 96(%rsp)
	movq	%rax, 136(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	28(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 192(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 88(%rsp)
	movq	%rax, 100(%rsp)
	movl	$1, 108(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L5
	pushq	80(%rsp)
	.cfi_def_cfa_offset 232
	leaq	_Z22distribucionParticulasPfS_S_S_iP17curandStateXORWOWff(%rip), %rdi
	pushq	80(%rsp)
	.cfi_def_cfa_offset 240
	movq	116(%rsp), %rcx
	movl	124(%rsp), %r8d
	movq	104(%rsp), %rsi
	movl	112(%rsp), %edx
	leaq	152(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 232
	popq	%rdx
	.cfi_def_cfa_offset 224
.L5:
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	addq	$216, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4392:
	.size	_Z71__device_stub__Z22distribucionParticulasPfS_S_S_iP17curandStateXORWOWffPfS_S_S_iP17curandStateXORWOWff, .-_Z71__device_stub__Z22distribucionParticulasPfS_S_S_iP17curandStateXORWOWffPfS_S_S_iP17curandStateXORWOWff
	.globl	_Z22distribucionParticulasPfS_S_S_iP17curandStateXORWOWff
	.type	_Z22distribucionParticulasPfS_S_S_iP17curandStateXORWOWff, @function
_Z22distribucionParticulasPfS_S_S_iP17curandStateXORWOWff:
.LFB4393:
	.cfi_startproc
	endbr64
	jmp	_Z71__device_stub__Z22distribucionParticulasPfS_S_S_iP17curandStateXORWOWffPfS_S_S_iP17curandStateXORWOWff
	.cfi_endproc
.LFE4393:
	.size	_Z22distribucionParticulasPfS_S_S_iP17curandStateXORWOWff, .-_Z22distribucionParticulasPfS_S_S_iP17curandStateXORWOWff
	.globl	_Z43__device_stub__Z22inicializacionDensidadPfiPfi
	.type	_Z43__device_stub__Z22inicializacionDensidadPfiPfi, @function
_Z43__device_stub__Z22inicializacionDensidadPfiPfi:
.LFB4394:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 8(%rsp)
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rdx
	movl	%esi, 4(%rsp)
	leaq	40(%rsp), %rdi
	leaq	52(%rsp), %rsi
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 48(%rsp)
	movq	%rax, 88(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 40(%rsp)
	movq	%rax, 52(%rsp)
	movl	$1, 60(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L11
	pushq	32(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z22inicializacionDensidadPfi(%rip), %rdi
	pushq	32(%rsp)
	.cfi_def_cfa_offset 144
	movq	68(%rsp), %rcx
	movl	76(%rsp), %r8d
	movq	56(%rsp), %rsi
	movl	64(%rsp), %edx
	leaq	104(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L11:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4394:
	.size	_Z43__device_stub__Z22inicializacionDensidadPfiPfi, .-_Z43__device_stub__Z22inicializacionDensidadPfiPfi
	.globl	_Z22inicializacionDensidadPfi
	.type	_Z22inicializacionDensidadPfi, @function
_Z22inicializacionDensidadPfi:
.LFB4395:
	.cfi_startproc
	endbr64
	jmp	_Z43__device_stub__Z22inicializacionDensidadPfiPfi
	.cfi_endproc
.LFE4395:
	.size	_Z22inicializacionDensidadPfi, .-_Z22inicializacionDensidadPfi
	.globl	_Z42__device_stub__Z15calculoDensidadPfS_S_iifPfS_S_iif
	.type	_Z42__device_stub__Z15calculoDensidadPfS_S_iifPfS_S_iif, @function
_Z42__device_stub__Z15calculoDensidadPfS_S_iifPfS_S_iif:
.LFB4396:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movq	%rdi, 40(%rsp)
	leaq	72(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	84(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	56(%rsp), %rdx
	movl	%ecx, 20(%rsp)
	leaq	64(%rsp), %rcx
	movl	%r8d, 16(%rsp)
	movss	%xmm0, 12(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 80(%rsp)
	movq	%rax, 120(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 72(%rsp)
	movq	%rax, 84(%rsp)
	movl	$1, 92(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L16
	pushq	64(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z15calculoDensidadPfS_S_iif(%rip), %rdi
	pushq	64(%rsp)
	.cfi_def_cfa_offset 208
	movq	100(%rsp), %rcx
	movl	108(%rsp), %r8d
	movq	88(%rsp), %rsi
	movl	96(%rsp), %edx
	leaq	136(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L16:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4396:
	.size	_Z42__device_stub__Z15calculoDensidadPfS_S_iifPfS_S_iif, .-_Z42__device_stub__Z15calculoDensidadPfS_S_iifPfS_S_iif
	.globl	_Z15calculoDensidadPfS_S_iif
	.type	_Z15calculoDensidadPfS_S_iif, @function
_Z15calculoDensidadPfS_S_iif:
.LFB4397:
	.cfi_startproc
	endbr64
	jmp	_Z42__device_stub__Z15calculoDensidadPfS_S_iifPfS_S_iif
	.cfi_endproc
.LFE4397:
	.size	_Z15calculoDensidadPfS_S_iif, .-_Z15calculoDensidadPfS_S_iif
	.globl	_Z41__device_stub__Z12real2complexPfP6float2iPfP6float2i
	.type	_Z41__device_stub__Z12real2complexPfP6float2iPfP6float2i, @function
_Z41__device_stub__Z12real2complexPfP6float2iPfP6float2i:
.LFB4398:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	32(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L21
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z12real2complexPfP6float2i(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 160
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 152
	popq	%rdx
	.cfi_def_cfa_offset 144
.L21:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4398:
	.size	_Z41__device_stub__Z12real2complexPfP6float2iPfP6float2i, .-_Z41__device_stub__Z12real2complexPfP6float2iPfP6float2i
	.globl	_Z12real2complexPfP6float2i
	.type	_Z12real2complexPfP6float2i, @function
_Z12real2complexPfP6float2i:
.LFB4399:
	.cfi_startproc
	endbr64
	jmp	_Z41__device_stub__Z12real2complexPfP6float2iPfP6float2i
	.cfi_endproc
.LFE4399:
	.size	_Z12real2complexPfP6float2i, .-_Z12real2complexPfP6float2i
	.globl	_Z44__device_stub__Z13solve_PoissonP6float2S0_ifP6float2S0_if
	.type	_Z44__device_stub__Z13solve_PoissonP6float2S0_ifP6float2S0_if, @function
_Z44__device_stub__Z13solve_PoissonP6float2S0_ifP6float2S0_if:
.LFB4400:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rcx
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rdx
	movss	%xmm0, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L26
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z13solve_PoissonP6float2S0_if(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 176
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	120(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L26:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4400:
	.size	_Z44__device_stub__Z13solve_PoissonP6float2S0_ifP6float2S0_if, .-_Z44__device_stub__Z13solve_PoissonP6float2S0_ifP6float2S0_if
	.globl	_Z13solve_PoissonP6float2S0_if
	.type	_Z13solve_PoissonP6float2S0_if, @function
_Z13solve_PoissonP6float2S0_if:
.LFB4401:
	.cfi_startproc
	endbr64
	jmp	_Z44__device_stub__Z13solve_PoissonP6float2S0_ifP6float2S0_if
	.cfi_endproc
.LFE4401:
	.size	_Z13solve_PoissonP6float2S0_if, .-_Z13solve_PoissonP6float2S0_if
	.globl	_Z41__device_stub__Z12complex2realP6float2PfiP6float2Pfi
	.type	_Z41__device_stub__Z12complex2realP6float2PfiP6float2Pfi, @function
_Z41__device_stub__Z12complex2realP6float2PfiP6float2Pfi:
.LFB4402:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	32(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L31
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z12complex2realP6float2Pfi(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 160
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 152
	popq	%rdx
	.cfi_def_cfa_offset 144
.L31:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4402:
	.size	_Z41__device_stub__Z12complex2realP6float2PfiP6float2Pfi, .-_Z41__device_stub__Z12complex2realP6float2PfiP6float2Pfi
	.globl	_Z12complex2realP6float2Pfi
	.type	_Z12complex2realP6float2Pfi, @function
_Z12complex2realP6float2Pfi:
.LFB4403:
	.cfi_startproc
	endbr64
	jmp	_Z41__device_stub__Z12complex2realP6float2PfiP6float2Pfi
	.cfi_endproc
.LFE4403:
	.size	_Z12complex2realP6float2Pfi, .-_Z12complex2realP6float2Pfi
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"_Z12complex2realP6float2Pfi"
.LC1:
	.string	"_Z13solve_PoissonP6float2S0_if"
.LC2:
	.string	"_Z12real2complexPfP6float2i"
.LC3:
	.string	"_Z15calculoDensidadPfS_S_iif"
.LC4:
	.string	"_Z22inicializacionDensidadPfi"
.LC5:
	.string	"_Z22distribucionParticulasPfS_S_S_iP17curandStateXORWOWff"
.LC6:
	.string	"precalc_xorwow_matrix"
.LC7:
	.string	"precalc_xorwow_offset_matrix"
.LC8:
	.string	"mrg32k3aM1"
.LC9:
	.string	"mrg32k3aM2"
.LC10:
	.string	"mrg32k3aM1SubSeq"
.LC11:
	.string	"mrg32k3aM2SubSeq"
.LC12:
	.string	"mrg32k3aM1Seq"
.LC13:
	.string	"mrg32k3aM2Seq"
.LC14:
	.string	"__cr_lgamma_table"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4405:
	.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	_Z12complex2realP6float2Pfi(%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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC1(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z13solve_PoissonP6float2S0_if(%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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC2(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z12real2complexPfP6float2i(%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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC3(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z15calculoDensidadPfS_S_iif(%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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC4(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z22inicializacionDensidadPfi(%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
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC5(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z22distribucionParticulasPfS_S_S_iP17curandStateXORWOWff(%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
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC6(%rip), %rdx
	movl	$102400, %r9d
	leaq	_ZL21precalc_xorwow_matrix(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	call	__cudaRegisterVar@PLT
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rdx
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC7(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$102400, %r9d
	leaq	_ZL28precalc_xorwow_offset_matrix(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rcx
	.cfi_def_cfa_offset 24
	popq	%rsi
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC8(%rip), %rdx
	xorl	%r8d, %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rcx
	movl	$2304, %r9d
	leaq	_ZL10mrg32k3aM1(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rdi
	.cfi_def_cfa_offset 24
	popq	%r8
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC9(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movq	%rdx, %rcx
	movl	$2304, %r9d
	leaq	_ZL10mrg32k3aM2(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%r9
	.cfi_def_cfa_offset 24
	popq	%r10
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC10(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movq	%rdx, %rcx
	movl	$2016, %r9d
	leaq	_ZL16mrg32k3aM1SubSeq(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%r11
	.cfi_def_cfa_offset 24
	popq	%rax
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC11(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movq	%rdx, %rcx
	movl	$2016, %r9d
	leaq	_ZL16mrg32k3aM2SubSeq(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rdx
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC12(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movq	%rdx, %rcx
	movl	$2304, %r9d
	leaq	_ZL13mrg32k3aM1Seq(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rcx
	.cfi_def_cfa_offset 24
	popq	%rsi
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC13(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movq	%rdx, %rcx
	movl	$2304, %r9d
	leaq	_ZL13mrg32k3aM2Seq(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rdi
	.cfi_def_cfa_offset 24
	popq	%r8
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$1
	.cfi_def_cfa_offset 32
	leaq	.LC14(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movl	$72, %r9d
	movq	%rdx, %rcx
	leaq	_ZL17__cr_lgamma_table(%rip), %rsi
	call	__cudaRegisterVar@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	popq	%r9
	.cfi_def_cfa_offset 24
	popq	%r10
	.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
.LFE4405:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.rodata.str1.1
.LC19:
	.string	"distribucionInicial.txt"
.LC20:
	.string	" "
.LC21:
	.string	"salida_densidad3.txt"
.LC22:
	.string	"entrada_poisson"
.LC23:
	.string	"poisson"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4367:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4367
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$32768, %esi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movabsq	$4294967297, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$696, %rsp
	.cfi_def_cfa_offset 752
	movq	%fs:40, %rax
	movq	%rax, 680(%rsp)
	xorl	%eax, %eax
	leaq	88(%rsp), %rdi
	movl	$0x42800000, L(%rip)
	movl	$10000, N(%rip)
	movl	$64, C(%rip)
.LEHB0:
	call	cudaMalloc@PLT
	movslq	C(%rip), %rsi
	leaq	96(%rsp), %rdi
	imulq	%rsi, %rsi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movslq	C(%rip), %rsi
	leaq	104(%rsp), %rdi
	imulq	%rsi, %rsi
	salq	$3, %rsi
	call	cudaMalloc@PLT
	movl	N(%rip), %eax
	movl	C(%rip), %ebx
	sall	$2, %eax
	imull	%ebx, %ebx
	cltq
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %rdi
	sall	$2, %ebx
	movq	%rax, %r13
	movslq	%ebx, %r15
	call	malloc@PLT
	movq	8(%rsp), %rdi
	movq	%rax, %r12
	call	malloc@PLT
	movq	8(%rsp), %rdi
	movq	%rax, %rbp
	call	malloc@PLT
	movq	%r15, %rdi
	movq	%rax, 16(%rsp)
	call	malloc@PLT
	movq	%r15, %rdi
	movq	%rax, %rbx
	call	malloc@PLT
	movq	8(%rsp), %rsi
	leaq	40(%rsp), %rdi
	movq	%rax, 24(%rsp)
	call	cudaMalloc@PLT
	movq	8(%rsp), %rsi
	leaq	48(%rsp), %rdi
	call	cudaMalloc@PLT
	movq	8(%rsp), %rsi
	leaq	56(%rsp), %rdi
	call	cudaMalloc@PLT
	movq	8(%rsp), %rsi
	leaq	64(%rsp), %rdi
	call	cudaMalloc@PLT
	leaq	72(%rsp), %rdi
	movq	%r15, %rsi
	call	cudaMalloc@PLT
	leaq	80(%rsp), %rdi
	movq	%r15, %rsi
	call	cudaMalloc@PLT
	movslq	N(%rip), %rsi
	leaq	112(%rsp), %rdi
	imulq	$48, %rsi, %rsi
	call	cudaMalloc@PLT
	cvtsi2ssl	N(%rip), %xmm0
	mulss	.LC17(%rip), %xmm0
	call	ceilf@PLT
	movq	%r14, 124(%rsp)
	cvttss2siq	%xmm0, %rax
	movl	%eax, 120(%rsp)
	movl	C(%rip), %eax
	imull	%eax, %eax
	cvtsi2ssl	%eax, %xmm0
	mulss	.LC17(%rip), %xmm0
	call	ceilf@PLT
	movl	$4194305, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	cvttss2siq	%xmm0, %rax
	movl	128(%rsp), %ecx
	movq	120(%rsp), %rdx
	salq	$10, %rdi
	movl	$1, %esi
	movq	%r14, 136(%rsp)
	movq	%rdi, 144(%rsp)
	movl	$1, 152(%rsp)
	movl	%eax, 132(%rsp)
	movq	%rdi, 156(%rsp)
	movl	$1, 164(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L39
	movss	L(%rip), %xmm1
	movss	.LC18(%rip), %xmm0
	movq	112(%rsp), %r9
	movl	N(%rip), %r8d
	movq	64(%rsp), %rcx
	movq	56(%rsp), %rdx
	movq	48(%rsp), %rsi
	movq	40(%rsp), %rdi
	call	_Z71__device_stub__Z22distribucionParticulasPfS_S_S_iP17curandStateXORWOWffPfS_S_S_iP17curandStateXORWOWff
.L39:
	call	cudaDeviceSynchronize@PLT
	movl	$4194305, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	140(%rsp), %ecx
	salq	$10, %rdi
	movl	$1, %esi
	movq	132(%rsp), %rdx
	movq	%rdi, 156(%rsp)
	movl	$1, 164(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L40
	movl	C(%rip), %esi
	movq	72(%rsp), %rdi
	call	_Z43__device_stub__Z22inicializacionDensidadPfiPfi
.L40:
	call	cudaDeviceSynchronize@PLT
	movl	$4194305, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	128(%rsp), %ecx
	movq	120(%rsp), %rdx
	salq	$10, %rdi
	movl	$1, %esi
	movq	%rdi, 156(%rsp)
	movl	$1, 164(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L41
	movss	L(%rip), %xmm0
	movl	C(%rip), %r8d
	movl	N(%rip), %ecx
	movq	72(%rsp), %rdx
	movq	48(%rsp), %rsi
	movq	40(%rsp), %rdi
	call	_Z42__device_stub__Z15calculoDensidadPfS_S_iifPfS_S_iif
.L41:
	call	cudaDeviceSynchronize@PLT
	movl	C(%rip), %esi
	leaq	36(%rsp), %rdi
	movl	$41, %ecx
	movl	%esi, %edx
	call	cufftPlan2d@PLT
	movl	$4194305, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	140(%rsp), %ecx
	salq	$10, %rdi
	movl	$1, %esi
	movq	132(%rsp), %rdx
	movq	%rdi, 156(%rsp)
	movl	$1, 164(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L42
	movl	C(%rip), %edx
	movq	88(%rsp), %rsi
	movq	72(%rsp), %rdi
	call	_Z41__device_stub__Z12real2complexPfP6float2iPfP6float2i
.L42:
	call	cudaDeviceSynchronize@PLT
	movq	96(%rsp), %rdx
	movq	88(%rsp), %rsi
	orl	$-1, %ecx
	movl	36(%rsp), %edi
	call	cufftExecC2C@PLT
	movq	104(%rsp), %rax
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	movl	140(%rsp), %ecx
	movq	144(%rsp), %rdi
	xorl	%r8d, %r8d
	movq	%rdx, (%rax)
	movl	152(%rsp), %esi
	movq	132(%rsp), %rdx
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L43
	movss	L(%rip), %xmm0
	movl	C(%rip), %edx
	movq	104(%rsp), %rsi
	movq	96(%rsp), %rdi
	call	_Z44__device_stub__Z13solve_PoissonP6float2S0_ifP6float2S0_if
.L43:
	call	cudaDeviceSynchronize@PLT
	movq	104(%rsp), %rsi
	movl	36(%rsp), %edi
	movl	$1, %ecx
	movq	%rsi, %rdx
	call	cufftExecC2C@PLT
	movl	140(%rsp), %ecx
	xorl	%r9d, %r9d
	movq	132(%rsp), %rdx
	movq	144(%rsp), %rdi
	movl	152(%rsp), %esi
	xorl	%r8d, %r8d
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L44
	movl	C(%rip), %edx
	movq	80(%rsp), %rsi
	movq	104(%rsp), %rdi
	call	_Z41__device_stub__Z12complex2realP6float2PfiP6float2Pfi
.L44:
	movq	8(%rsp), %rdx
	movq	40(%rsp), %rsi
	movl	$2, %ecx
	movq	%r13, %rdi
	call	cudaMemcpy@PLT
	movq	8(%rsp), %rdx
	movq	48(%rsp), %rsi
	movq	%r12, %rdi
	movl	$2, %ecx
	call	cudaMemcpy@PLT
	movq	8(%rsp), %rdx
	movq	56(%rsp), %rsi
	movq	%rbp, %rdi
	movl	$2, %ecx
	call	cudaMemcpy@PLT
	movq	8(%rsp), %rdx
	movq	64(%rsp), %rsi
	movl	$2, %ecx
	movq	16(%rsp), %rdi
	call	cudaMemcpy@PLT
	movq	72(%rsp), %rsi
	movq	%r15, %rdx
	movq	%rbx, %rdi
	movl	$2, %ecx
	call	cudaMemcpy@PLT
	movq	80(%rsp), %rsi
	movq	24(%rsp), %rdi
	movq	%r15, %rdx
	movl	$2, %ecx
	call	cudaMemcpy@PLT
	leaq	168(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev@PLT
.LEHE0:
	movq	8(%rsp), %rdi
	movl	$16, %edx
	leaq	.LC19(%rip), %rsi
.LEHB1:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode@PLT
	xorl	%r14d, %r14d
	leaq	.LC20(%rip), %r15
.L45:
	cmpl	%r14d, N(%rip)
	jle	.L71
	movq	8(%rsp), %rdi
	cvtss2sd	0(%r13,%r14,4), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	movq	%r15, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	cvtss2sd	(%r12,%r14,4), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	movq	%r15, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	cvtss2sd	0(%rbp,%r14,4), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	movq	%r15, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	16(%rsp), %rax
	cvtss2sd	(%rax,%r14,4), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	incq	%r14
	jmp	.L45
.L71:
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv@PLT
	movq	8(%rsp), %rdi
	movl	$16, %edx
	leaq	.LC21(%rip), %rsi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode@PLT
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
.L47:
	movl	C(%rip), %eax
	imull	%eax, %eax
	cmpl	%r14d, %eax
	jle	.L72
	movq	8(%rsp), %rdi
	cvtss2sd	(%rbx,%r14,4), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movd	%r15d, %xmm2
	addss	(%rbx,%r14,4), %xmm2
	incq	%r14
	movd	%xmm2, %r15d
	jmp	.L47
.L72:
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv@PLT
	movd	%r15d, %xmm3
	leaq	_ZSt4cout(%rip), %rdi
	cvtss2sd	%xmm3, %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC20(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	8(%rsp), %rdi
	movl	$16, %edx
	leaq	.LC22(%rip), %rsi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode@PLT
	xorl	%r14d, %r14d
.L49:
	cmpl	%r14d, C(%rip)
	jle	.L73
	xorl	%r15d, %r15d
.L51:
	movl	C(%rip), %eax
	cmpl	%r15d, %eax
	jle	.L74
	imull	%r14d, %eax
	movq	8(%rsp), %rdi
	addl	%r15d, %eax
	cltq
	cvtss2sd	(%rbx,%rax,4), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC20(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	incl	%r15d
	jmp	.L51
.L74:
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	8(%rsp), %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	incl	%r14d
	jmp	.L49
.L73:
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv@PLT
	movq	8(%rsp), %rdi
	movl	$16, %edx
	leaq	.LC23(%rip), %rsi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode@PLT
	xorl	%r14d, %r14d
.L52:
	cmpl	%r14d, C(%rip)
	jle	.L75
	xorl	%r15d, %r15d
.L54:
	movl	C(%rip), %eax
	cmpl	%r15d, %eax
	jle	.L76
	imull	%r15d, %eax
	movq	24(%rsp), %rdx
	movq	8(%rsp), %rdi
	addl	%r14d, %eax
	cltq
	cvtss2sd	(%rdx,%rax,4), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC20(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	incl	%r15d
	jmp	.L54
.L76:
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	8(%rsp), %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	incl	%r14d
	jmp	.L52
.L75:
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv@PLT
	movq	%r13, %rdi
	call	free@PLT
	movq	%r12, %rdi
	call	free@PLT
	movq	%rbp, %rdi
	call	free@PLT
	movq	16(%rsp), %rdi
	call	free@PLT
	movq	%rbx, %rdi
	call	free@PLT
	movq	24(%rsp), %rdi
	call	free@PLT
	movl	36(%rsp), %edi
	call	cufftDestroy@PLT
	movq	40(%rsp), %rdi
	call	cudaFree@PLT
	movq	48(%rsp), %rdi
	call	cudaFree@PLT
	movq	56(%rsp), %rdi
	call	cudaFree@PLT
	movq	64(%rsp), %rdi
	call	cudaFree@PLT
	movq	72(%rsp), %rdi
	call	cudaFree@PLT
	movq	80(%rsp), %rdi
	call	cudaFree@PLT
	movq	88(%rsp), %rdi
	call	cudaFree@PLT
	movq	96(%rsp), %rdi
	call	cudaFree@PLT
	movq	104(%rsp), %rdi
	call	cudaFree@PLT
.LEHE1:
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	680(%rsp), %rax
	subq	%fs:40, %rax
	je	.L57
	jmp	.L69
.L64:
	endbr64
	movq	%rax, %rbx
.L55:
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	680(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L69
	movq	%rbx, %rdi
.LEHB2:
	call	_Unwind_Resume@PLT
.LEHE2:
.L69:
	call	__stack_chk_fail@PLT
.L57:
	addq	$696, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4367:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4367:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4367-.LLSDACSB4367
.LLSDACSB4367:
	.uleb128 .LEHB0-.LFB4367
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB4367
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L64-.LFB4367
	.uleb128 0
	.uleb128 .LEHB2-.LFB4367
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
.LLSDACSE4367:
	.section	.text.startup
	.size	main, .-main
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.globl	itera
	.bss
	.align 4
	.type	itera, @object
	.size	itera, 4
itera:
	.zero	4
	.globl	C
	.align 4
	.type	C, @object
	.size	C, 4
C:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	LL
	.align 4
	.type	LL, @object
	.size	LL, 4
LL:
	.zero	4
	.globl	L
	.align 4
	.type	L, @object
	.size	L, 4
L:
	.zero	4
	.local	_ZL17__cr_lgamma_table
	.comm	_ZL17__cr_lgamma_table,72,32
	.local	_ZL13mrg32k3aM2Seq
	.comm	_ZL13mrg32k3aM2Seq,2304,32
	.local	_ZL13mrg32k3aM1Seq
	.comm	_ZL13mrg32k3aM1Seq,2304,32
	.local	_ZL16mrg32k3aM2SubSeq
	.comm	_ZL16mrg32k3aM2SubSeq,2016,32
	.local	_ZL16mrg32k3aM1SubSeq
	.comm	_ZL16mrg32k3aM1SubSeq,2016,32
	.local	_ZL10mrg32k3aM2
	.comm	_ZL10mrg32k3aM2,2304,32
	.local	_ZL10mrg32k3aM1
	.comm	_ZL10mrg32k3aM1,2304,32
	.local	_ZL28precalc_xorwow_offset_matrix
	.comm	_ZL28precalc_xorwow_offset_matrix,102400,32
	.local	_ZL21precalc_xorwow_matrix
	.comm	_ZL21precalc_xorwow_matrix,102400,32
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC17:
	.long	981467136
	.align 4
.LC18:
	.long	1077936128
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

/**
 * Copyright 1993-2012 NVIDIA Corporation.  All rights reserved.
 *
 * Please refer to the NVIDIA end user license agreement (EULA) associated
 * with this source code for terms and conditions that govern your use of
 * this software. Any use, reproduction, disclosure, or distribution of
 * this software and related documentation outside the terms of the EULA
 * is strictly prohibited.
 */

#include <hip/hip_runtime.h>
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <math.h>
#include <time.h>
#include <fstream>
#include <vector>
#include <fstream>
#include <hiprand/hiprand_kernel.h>
#include <hipfft/hipfft.h>

float L,LL; int N, C,itera;

using namespace std;

// función Maxwelliana de la distribución de las partículas.
__device__ float distribution (float vb, float aleatorio, hiprandState *states)     //generador de distribución maxwelliana para la velocidad
{

  // Genera un valor random v
   float fmax = 0.5 * (1.0 + exp (-2.0 * vb * vb));
   float vmin = - 5.0 * vb;
   float vmax = + 5.0 * vb;
   float v;
   float f;
   float x;
   int Idx = blockIdx.x*blockDim.x + threadIdx.x;

   while(true){
	   v = vmin + ((vmax - vmin) * aleatorio);
	   f = 0.5 * (exp (-(v - vb) * (v - vb) / 2.0) +
			    exp (-(v + vb) * (v + vb) / 2.0));
	   x = fmax * aleatorio;
	   if(x > f) aleatorio = hiprand_uniform(states + Idx);
	   else return v;
   }

}
//Distribución aleatoria de las partículas.
__global__ void distribucionParticulas(float *rx,float *ry,float *vx,float *vy,int N,hiprandState *states,float vb,float L){
	int Idx = blockIdx.x*blockDim.x + threadIdx.x;

	unsigned int seed = (unsigned int) (clock() * Idx);
	hiprand_init(seed, 0, 0, states + Idx);

	if(Idx < N){
		 rx[Idx] = L*hiprand_uniform(states + Idx);    //inicializando la posicion aleatoria en x
		 ry[Idx] = L*hiprand_uniform(states + Idx);
		 vx[Idx] = distribution(vb,hiprand_uniform(states + Idx),states);//;L*curand_uniform_float(states + Idx);//distribution(vb,states);                          //inicializa la velocidad con una distribucion maxwelliana
		 vy[Idx] = distribution(vb,hiprand_uniform(states + Idx),states);//L*curand_uniform_float(states + Idx);//distribution(vb,states);                          //inicializa la velocidad con una distribucion maxwelliana

	}


}
// inicialización de la densidad.
__global__ void inicializacionDensidad(float *ne,int C){
	int Id=blockIdx.x*blockDim.x + threadIdx.x;
		if(Id<(C*C)){
			ne[Id]=0.0;
		}
 }


//Calculo de la densidad en cada celda.

__global__ void calculoDensidad(float *rx, float *ry, float *ne, int N, int C,float L){
	int Id=blockIdx.x*blockDim.x + threadIdx.x;
	 float dx = L / float (C);
	 float dxx=L/float(C*C);
	if(Id<N){

				int jx = int(rx[Id]/dx); //posicion en x de la particula
			    int jy = int(ry[Id]/dx); //posicion en y de la particula
			    float yx = (rx[Id]/dx) - (float)jx; //posicion exacta de la particula en x de la celda "j"
			    //float yy = (ry[Id]/dx) - (float)jy; //posicion exacta de la particula en y de la celda "j"
			    ne[(jy*C)+jx] += (1. - yx)/dxx;
			    if(jx+1==C) ne[(jy*C)] += yx/dxx;
			    else ne[(jy*C)+jx+1] += yx/dxx;

    }

}
//pasar de reales a complejos.

__global__ void real2complex (float *ne, hipfftComplex *u, int C)
{
	int idx = blockIdx.x*blockDim.x+threadIdx.x;
	int idy = blockIdx.y*blockDim.y+threadIdx.y;
	int index =idy*C+idx;

	if ( idx < C && idy <C)
	 {
		u[index].x = ne[index];
		u[index].y = 0.0f;
	}

}
//__global__ void prueba (cufftComplex *vf, float *vr, int C){
//	int idx = blockIdx.x*blockDim.x+threadIdx.x;
//	int idy = blockIdx.y*blockDim.y+threadIdx.y;
//	int index =idy*C+idx;
//
//	if(idx<C && idy<C){
//
//		vr[index]= (vf[index].x)/((float)C*(float)C*(float)C*(float)C);
//		vr[index]= (vf[index].y)/((float)C*(float)C*(float)C*(float)C);
//
//	}
//}

__global__ void solve_Poisson(hipfftComplex *vf, hipfftComplex *v, int C,float L){

	int idx = blockIdx.x*blockDim.x+threadIdx.x;
	int idy = blockIdx.y*blockDim.y+threadIdx.y;
	float dx = L / float (C);
	float i,W,Wm,Wn;
	i = (0.0,L);
	W = exp(2.0 * M_PI * i / float(C));
	Wm = L;
	Wn = L;
	if(idx<C && idy<C){
		int index = idy*C+idx;
		float denom;
		denom = 4.0;
		denom -= (Wm + (L / Wm) + Wn +( L / Wn));
		if (denom != 0.0){
				vf[index].x *= dx*dx/denom;
				vf[index].y *= dx*dx/denom;
				}
				Wn *= W;//se multiplica por la constante W
			}
			Wm *= W;
			if(idx<C && idy<C){
			int index = idx*C+idy;
			v[index].x=vf[index].x;
			v[index].y=vf[index].y;
			}

	}



__global__ void complex2real(hipfftComplex *v, float *vr, int C){
	/* compute idx and idy, the location of the element in the original CxC array */
	int idx = blockIdx.x*blockDim.x+threadIdx.x;
	int idy = blockIdx.y*blockDim.y+threadIdx.y;
	if ( idx < C && idy <C)
		 {
		 int index = idy*C+idx;
		 vr[index] = v[index].x /((float)C*(float)C);
		 }
}



////////////////////////////////////////////////////////////////////////////////////////////////////
int main(){
	// Parametros
	L = 64.0;            // dominio de la solucion 0 <= x <= L (en longitudes de debye)
	//L=LL*LL;
	N = 10000;            // Numero de particulas
	C = 64;            // Número de celdas.
	float vb = 3.0;    // velocidad promedio de los electrones
	//float kappa = 2. * M_PI / (L);
	//float dt=0.1;    // delta tiempo (en frecuencias inversas del plasma)
	//float tmax=10000;  // cantidad de iteraciones. deben ser 100 mil segun el material
	//int skip = int (tmax / dt) / 10; //saltos del algoritmo para reportar datos
	//int itera=0;
	float salida=0.;
	 //float dx = L / float (C);

/////////////////////////////////////////////////////////////////////////////////////////////////////
//Inicializacion de la posición de las particulas en x, y y velocidad en vx,vy del host y dispositivo.
	float *rx_h,*ry_h,*vx_h,*vy_h;
	float *rx_d,*ry_d, *vx_d,*vy_d;
////////////////////////////////////////////////////////////////////////////////////////////////////
	// inicialización de las variables de densidad del host y dispositivo.
	float *ne_h;
	float *ne_d;
	float *vr_h;
	float *vr_d;
////////////////////////////////////////////////////////////////////////////////////////////////////
	//inicializacion tipo complex a real.

	hipfftComplex *u_complex_d,*vf_complex_d,*v_complex_d ;
	hipMalloc((void**)&u_complex_d,sizeof(hipfftComplex)*C*C);
	hipMalloc((void**)&vf_complex_d,sizeof(hipfftComplex)*C*C);
	hipMalloc((void**)&v_complex_d,sizeof(hipfftComplex)*C*C);

////////////////////////////////////////////////////////////////////////////////////////////////////
	int size = N*sizeof(float);
	int size_ne=C*C*sizeof(float);

//////////////////////////////////////////////////////////////////////////////////////////////////////
	//reserva en memoria al host
	rx_h = (float *)malloc(size);
	ry_h = (float *)malloc(size);
	vx_h = (float *)malloc(size);
	vy_h = (float *)malloc(size);
	ne_h = (float *)malloc(size_ne);
	vr_h = (float *)malloc(size_ne);

//////////////////////////////////////////////////////////////////////////////////////////////////////
	//reserva de memoria del dispositivo.
	hipMalloc((void **)&rx_d,size);
	hipMalloc((void **)&ry_d,size);
	hipMalloc((void **)&vx_d,size);
	hipMalloc((void **)&vy_d,size);
	hipMalloc((void **)&ne_d,size_ne);
	hipMalloc((void **)&vr_d,size_ne);

////////////////////////////////////////////////////////////////////////////////////////////////////

	//valores aleatorios y tamaños de los vectores.
	hiprandState *devStates;
	hipMalloc((void **) &devStates, N * sizeof(hiprandState));


	float blockSize = 1024;
	dim3 dimBlock (ceil(N/blockSize), 1, 1);
	dim3 dimBlock2 (ceil((C*C)/blockSize), 1, 1);
	dim3 dimGrid (blockSize, 1, 1);


	distribucionParticulas<<<blockSize,dimBlock>>>(rx_d,ry_d,vx_d,vy_d,N,devStates,vb,L);
	hipDeviceSynchronize();

	inicializacionDensidad<<<blockSize,dimBlock2>>>(ne_d,C);
	hipDeviceSynchronize();

	calculoDensidad<<<blockSize,dimBlock>>>(rx_d,ry_d,ne_d,N,C,L);
	hipDeviceSynchronize();

	hipfftHandle plan;
	hipfftPlan2d(&plan, C, C, HIPFFT_C2C);

	real2complex<<<blockSize,dimBlock2>>>(ne_d,u_complex_d,C);
	hipDeviceSynchronize();

	hipfftExecC2C (plan, u_complex_d, vf_complex_d, HIPFFT_FORWARD);
	// dividir el resultado por C4
	//prueba<<<dimGrid, dimBlock2>>> (vf_complex_d,vr_d,C);

	v_complex_d[0].x=0.0;
	v_complex_d[0].y=0.0;


	solve_Poisson<<<dimGrid, dimBlock2>>> (vf_complex_d,v_complex_d,C,L);
	hipDeviceSynchronize();

	hipfftExecC2C (plan, v_complex_d, v_complex_d, HIPFFT_BACKWARD);

	complex2real<<<dimGrid, dimBlock2>>> (v_complex_d,vr_d,C);


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

	//posición en x.
	hipMemcpy(rx_h, rx_d, size, hipMemcpyDeviceToHost);

	// posición en y.
	hipMemcpy(ry_h, ry_d, size, hipMemcpyDeviceToHost);

	// velocidad en x.
	hipMemcpy(vx_h, vx_d, size, hipMemcpyDeviceToHost);

	//velocidad en y.
	hipMemcpy(vy_h, vy_d, size, hipMemcpyDeviceToHost);
	//inicializacion densidades
	hipMemcpy(ne_h, ne_d, size_ne, hipMemcpyDeviceToHost);
	//calculo poisson
	hipMemcpy (vr_h , vr_d, size_ne, hipMemcpyDeviceToHost);

	///////////////////Imprimir los resultados en archivos//////////////////////
	ofstream init;
		init.open("distribucionInicial.txt");
		  		    for (int i = 0; i < N; i++){
		  		    	init<<rx_h[i]<<" "<<ry_h[i]<<" "<<vx_h[i]<<" "<<vy_h[i]<<endl;

		  		    }

		  		    init.close();


		init.open("salida_densidad3.txt");
					for (int i = 0; i < C*C; i++){
						init<<ne_h[i]<<endl;
						salida+=ne_h[i];
					}

					init.close();
					cout<<salida<<" "<<endl;

		init.open("entrada_poisson");
					for (int i = 0; i < C; i++){
						for (int j = 0; j < C; j++){
								init<<ne_h[(C*i)+j]<<" ";
						}
						init<<endl;
					}
					init.close();

		init.open("poisson");
				for (int i = 0; i < C; i++){
					for (int j = 0; j < C; j++){
						init<< vr_h[(C*j)+i]<<" ";
							}
							init<<endl;
						}
						init.close();

////////////////////Liberar memoria//////////////////////////
	free(rx_h);
	free(ry_h);
	free(vx_h);
	free(vy_h);
	free(ne_h);
	free(vr_h);
	hipfftDestroy(plan);
	hipFree(rx_d);
	hipFree(ry_d);
	hipFree(vx_d);
	hipFree(vy_d);
	hipFree(ne_d);
	hipFree(vr_d);
	hipFree(u_complex_d);
	hipFree(vf_complex_d);
	hipFree(v_complex_d);
	return (0);

}

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

                                        # End of file scope inline assembly
	.globl	_Z37__device_stub__distribucionParticulasPfS_S_S_iP12hiprandStateff # -- Begin function _Z37__device_stub__distribucionParticulasPfS_S_S_iP12hiprandStateff
	.type	_Z37__device_stub__distribucionParticulasPfS_S_S_iP12hiprandStateff,@function
_Z37__device_stub__distribucionParticulasPfS_S_S_iP12hiprandStateff: # @_Z37__device_stub__distribucionParticulasPfS_S_S_iP12hiprandStateff
	.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	$176, %rsp
	.cfi_def_cfa_offset 224
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	72(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	64(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	56(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	48(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	20(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	40(%rsp), %r8
	movq	%r9, (%r8)
	leaq	16(%rsp), %r9
	movss	%xmm0, (%r9)
	leaq	12(%rsp), %r10
	movss	%xmm1, (%r10)
	leaq	112(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	movq	%r9, 48(%rbx)
	movq	%r10, 56(%rbx)
	leaq	96(%rsp), %r14
	leaq	80(%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	$_Z22distribucionParticulasPfS_S_S_iP12hiprandStateff, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$192, %rsp
	.cfi_adjust_cfa_offset -192
	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	_Z37__device_stub__distribucionParticulasPfS_S_S_iP12hiprandStateff, .Lfunc_end0-_Z37__device_stub__distribucionParticulasPfS_S_S_iP12hiprandStateff
	.cfi_endproc
                                        # -- End function
	.globl	_Z37__device_stub__inicializacionDensidadPfi # -- Begin function _Z37__device_stub__inicializacionDensidadPfi
	.type	_Z37__device_stub__inicializacionDensidadPfi,@function
_Z37__device_stub__inicializacionDensidadPfi: # @_Z37__device_stub__inicializacionDensidadPfi
	.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	$80, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	4(%rsp), %rcx
	movl	%esi, (%rcx)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z22inicializacionDensidadPfi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$96, %rsp
	.cfi_adjust_cfa_offset -96
	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	_Z37__device_stub__inicializacionDensidadPfi, .Lfunc_end1-_Z37__device_stub__inicializacionDensidadPfi
	.cfi_endproc
                                        # -- End function
	.globl	_Z30__device_stub__calculoDensidadPfS_S_iif # -- Begin function _Z30__device_stub__calculoDensidadPfS_S_iif
	.type	_Z30__device_stub__calculoDensidadPfS_S_iif,@function
_Z30__device_stub__calculoDensidadPfS_S_iif: # @_Z30__device_stub__calculoDensidadPfS_S_iif
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	20(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	16(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	12(%rsp), %r8
	movss	%xmm0, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	32(%rsp), %r12
	leaq	24(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z15calculoDensidadPfS_S_iif, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_Z30__device_stub__calculoDensidadPfS_S_iif, .Lfunc_end2-_Z30__device_stub__calculoDensidadPfS_S_iif
	.cfi_endproc
                                        # -- End function
	.globl	_Z27__device_stub__real2complexPfP15HIP_vector_typeIfLj2EEi # -- Begin function _Z27__device_stub__real2complexPfP15HIP_vector_typeIfLj2EEi
	.type	_Z27__device_stub__real2complexPfP15HIP_vector_typeIfLj2EEi,@function
_Z27__device_stub__real2complexPfP15HIP_vector_typeIfLj2EEi: # @_Z27__device_stub__real2complexPfP15HIP_vector_typeIfLj2EEi
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z12real2complexPfP15HIP_vector_typeIfLj2EEi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	_Z27__device_stub__real2complexPfP15HIP_vector_typeIfLj2EEi, .Lfunc_end3-_Z27__device_stub__real2complexPfP15HIP_vector_typeIfLj2EEi
	.cfi_endproc
                                        # -- End function
	.globl	_Z28__device_stub__solve_PoissonP15HIP_vector_typeIfLj2EES1_if # -- Begin function _Z28__device_stub__solve_PoissonP15HIP_vector_typeIfLj2EES1_if
	.type	_Z28__device_stub__solve_PoissonP15HIP_vector_typeIfLj2EES1_if,@function
_Z28__device_stub__solve_PoissonP15HIP_vector_typeIfLj2EES1_if: # @_Z28__device_stub__solve_PoissonP15HIP_vector_typeIfLj2EES1_if
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	8(%rsp), %rdx
	movss	%xmm0, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%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	$_Z13solve_PoissonP15HIP_vector_typeIfLj2EES1_if, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end4:
	.size	_Z28__device_stub__solve_PoissonP15HIP_vector_typeIfLj2EES1_if, .Lfunc_end4-_Z28__device_stub__solve_PoissonP15HIP_vector_typeIfLj2EES1_if
	.cfi_endproc
                                        # -- End function
	.globl	_Z27__device_stub__complex2realP15HIP_vector_typeIfLj2EEPfi # -- Begin function _Z27__device_stub__complex2realP15HIP_vector_typeIfLj2EEPfi
	.type	_Z27__device_stub__complex2realP15HIP_vector_typeIfLj2EEPfi,@function
_Z27__device_stub__complex2realP15HIP_vector_typeIfLj2EEPfi: # @_Z27__device_stub__complex2realP15HIP_vector_typeIfLj2EEPfi
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z12complex2realP15HIP_vector_typeIfLj2EEPfi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end5:
	.size	_Z27__device_stub__complex2realP15HIP_vector_typeIfLj2EEPfi, .Lfunc_end5-_Z27__device_stub__complex2realP15HIP_vector_typeIfLj2EEPfi
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function main
.LCPI6_0:
	.long	0x3a800000                      # float 9.765625E-4
.LCPI6_1:
	.long	0x40400000                      # float 3
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$648, %rsp                      # imm = 0x288
	.cfi_def_cfa_offset 704
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movabsq	$4294968320, %r15               # imm = 0x100000400
	movl	$1115684864, L(%rip)            # imm = 0x42800000
	movl	$10000, N(%rip)                 # imm = 0x2710
	movl	$64, C(%rip)
	leaq	88(%rsp), %rdi
	movl	$32768, %esi                    # imm = 0x8000
	callq	hipMalloc
	movslq	C(%rip), %rsi
	imulq	%rsi, %rsi
	shlq	$3, %rsi
	leaq	80(%rsp), %rdi
	callq	hipMalloc
	movslq	C(%rip), %rsi
	imulq	%rsi, %rsi
	shlq	$3, %rsi
	leaq	16(%rsp), %rdi
	callq	hipMalloc
	movl	N(%rip), %eax
	shll	$2, %eax
	movl	C(%rip), %ebp
	imull	%ebp, %ebp
	shll	$2, %ebp
	movslq	%eax, %rbx
	movq	%rbx, %rdi
	callq	malloc
	movq	%rax, 64(%rsp)                  # 8-byte Spill
	movq	%rbx, %rdi
	callq	malloc
	movq	%rax, 56(%rsp)                  # 8-byte Spill
	movq	%rbx, %rdi
	callq	malloc
	movq	%rax, 48(%rsp)                  # 8-byte Spill
	movq	%rbx, %rdi
	callq	malloc
	movq	%rax, %r12
	movslq	%ebp, %r14
	movq	%r14, %rdi
	callq	malloc
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	malloc
	movq	%rax, %rbp
	leaq	40(%rsp), %rdi
	movq	%rbx, %rsi
	callq	hipMalloc
	leaq	32(%rsp), %rdi
	movq	%rbx, %rsi
	callq	hipMalloc
	leaq	112(%rsp), %rdi
	movq	%rbx, %rsi
	callq	hipMalloc
	leaq	104(%rsp), %rdi
	movq	%rbx, %rsi
	callq	hipMalloc
	leaq	24(%rsp), %rdi
	movq	%r14, %rsi
	callq	hipMalloc
	leaq	96(%rsp), %rdi
	movq	%r14, 120(%rsp)                 # 8-byte Spill
	movq	%r14, %rsi
	callq	hipMalloc
	movslq	N(%rip), %rax
	shlq	$4, %rax
	leaq	(%rax,%rax,2), %rsi
	leaq	128(%rsp), %rdi
	callq	hipMalloc
	cvtsi2ssl	N(%rip), %xmm0
	mulss	.LCPI6_0(%rip), %xmm0
	callq	ceilf@PLT
	cvttss2si	%xmm0, %rax
	movl	%eax, %eax
	leaq	(%rax,%r15), %r14
	addq	$-1024, %r14                    # imm = 0xFC00
	movl	C(%rip), %eax
	imull	%eax, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	mulss	.LCPI6_0(%rip), %xmm0
	callq	ceilf@PLT
	cvttss2si	%xmm0, %rax
	movl	%eax, %eax
	movq	%r15, %rdi
	addq	%rax, %r15
	addq	$-1024, %r15                    # imm = 0xFC00
	movl	$1, %esi
	movq	%r14, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB6_2
# %bb.1:
	movq	40(%rsp), %rdi
	movq	32(%rsp), %rsi
	movq	112(%rsp), %rdx
	movq	104(%rsp), %rcx
	movl	N(%rip), %r8d
	movq	128(%rsp), %r9
	movss	L(%rip), %xmm1                  # xmm1 = mem[0],zero,zero,zero
	movss	.LCPI6_1(%rip), %xmm0           # xmm0 = mem[0],zero,zero,zero
	callq	_Z37__device_stub__distribucionParticulasPfS_S_S_iP12hiprandStateff
.LBB6_2:
	callq	hipDeviceSynchronize
	movabsq	$4294968320, %rdi               # imm = 0x100000400
	movl	$1, %esi
	movq	%r15, 8(%rsp)                   # 8-byte Spill
	movq	%r15, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB6_4
# %bb.3:
	movq	24(%rsp), %rdi
	movl	C(%rip), %esi
	callq	_Z37__device_stub__inicializacionDensidadPfi
.LBB6_4:
	callq	hipDeviceSynchronize
	movabsq	$4294968320, %rdi               # imm = 0x100000400
	movl	$1, %esi
	movq	%r14, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB6_6
# %bb.5:
	movq	40(%rsp), %rdi
	movq	32(%rsp), %rsi
	movq	24(%rsp), %rdx
	movl	N(%rip), %ecx
	movl	C(%rip), %r8d
	movss	L(%rip), %xmm0                  # xmm0 = mem[0],zero,zero,zero
	callq	_Z30__device_stub__calculoDensidadPfS_S_iif
.LBB6_6:
	callq	hipDeviceSynchronize
	movl	C(%rip), %edx
	leaq	72(%rsp), %rdi
	movl	%edx, %esi
	movl	$41, %ecx
	callq	hipfftPlan2d
	xorl	%r14d, %r14d
	movabsq	$4294968320, %rdi               # imm = 0x100000400
	movl	$1, %esi
	movq	8(%rsp), %r15                   # 8-byte Reload
	movq	%r15, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB6_8
# %bb.7:
	movq	24(%rsp), %rdi
	movq	88(%rsp), %rsi
	movl	C(%rip), %edx
	callq	_Z27__device_stub__real2complexPfP15HIP_vector_typeIfLj2EEi
.LBB6_8:
	callq	hipDeviceSynchronize
	movq	72(%rsp), %rdi
	movq	88(%rsp), %rsi
	movq	80(%rsp), %rdx
	movl	$-1, %ecx
	callq	hipfftExecC2C
	movq	16(%rsp), %rax
	movl	%r14d, (%rax)
	movq	16(%rsp), %rax
	movl	%r14d, 4(%rax)
	movabsq	$4294968320, %r14               # imm = 0x100000400
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB6_10
# %bb.9:
	movq	80(%rsp), %rdi
	movq	16(%rsp), %rsi
	movl	C(%rip), %edx
	movss	L(%rip), %xmm0                  # xmm0 = mem[0],zero,zero,zero
	callq	_Z28__device_stub__solve_PoissonP15HIP_vector_typeIfLj2EES1_if
.LBB6_10:
	callq	hipDeviceSynchronize
	movq	72(%rsp), %rdi
	movq	16(%rsp), %rdx
	movq	%rdx, %rsi
	movl	$1, %ecx
	callq	hipfftExecC2C
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB6_12
# %bb.11:
	movq	16(%rsp), %rdi
	movq	96(%rsp), %rsi
	movl	C(%rip), %edx
	callq	_Z27__device_stub__complex2realP15HIP_vector_typeIfLj2EEPfi
.LBB6_12:
	movq	40(%rsp), %rsi
	movq	64(%rsp), %rdi                  # 8-byte Reload
	movq	%rbx, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	32(%rsp), %rsi
	movq	56(%rsp), %rdi                  # 8-byte Reload
	movq	%rbx, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	112(%rsp), %rsi
	movq	48(%rsp), %rdi                  # 8-byte Reload
	movq	%rbx, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	104(%rsp), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	24(%rsp), %rsi
	movq	%r13, %rdi
	movq	120(%rsp), %rbx                 # 8-byte Reload
	movq	%rbx, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	96(%rsp), %rsi
	movq	%rbp, %rdi
	movq	%rbx, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	leaq	136(%rsp), %rbx
	movq	%rbx, %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev
.Ltmp0:
	movl	$.L.str, %esi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode
.Ltmp1:
# %bb.13:                               # %.preheader193
	cmpl	$0, N(%rip)
	jle	.LBB6_26
# %bb.14:                               # %.lr.ph.preheader
	xorl	%r15d, %r15d
	leaq	136(%rsp), %rbx
.LBB6_15:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	64(%rsp), %rax                  # 8-byte Reload
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rax,%r15,4), %xmm0
.Ltmp2:
	movq	%rbx, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp3:
# %bb.16:                               # %_ZNSolsEf.exit
                                        #   in Loop: Header=BB6_15 Depth=1
.Ltmp4:
	movq	%rax, %r14
	movl	$.L.str.1, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp5:
# %bb.17:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
                                        #   in Loop: Header=BB6_15 Depth=1
	movq	56(%rsp), %rax                  # 8-byte Reload
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rax,%r15,4), %xmm0
.Ltmp6:
	movq	%r14, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp7:
# %bb.18:                               # %_ZNSolsEf.exit132
                                        #   in Loop: Header=BB6_15 Depth=1
.Ltmp8:
	movq	%rax, %r14
	movl	$.L.str.1, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp9:
# %bb.19:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit133
                                        #   in Loop: Header=BB6_15 Depth=1
	movq	48(%rsp), %rax                  # 8-byte Reload
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rax,%r15,4), %xmm0
.Ltmp10:
	movq	%r14, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp11:
# %bb.20:                               # %_ZNSolsEf.exit134
                                        #   in Loop: Header=BB6_15 Depth=1
.Ltmp12:
	movq	%rax, %r14
	movl	$.L.str.1, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp13:
# %bb.21:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit135
                                        #   in Loop: Header=BB6_15 Depth=1
	xorps	%xmm0, %xmm0
	cvtss2sd	(%r12,%r15,4), %xmm0
.Ltmp14:
	movq	%r14, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp15:
# %bb.22:                               # %_ZNSolsEf.exit136
                                        #   in Loop: Header=BB6_15 Depth=1
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
.Ltmp16:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp17:
# %bb.23:                               # %.noexc
                                        #   in Loop: Header=BB6_15 Depth=1
.Ltmp18:
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
.Ltmp19:
# %bb.24:                               # %.noexc148
                                        #   in Loop: Header=BB6_15 Depth=1
.Ltmp20:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp21:
# %bb.25:                               # %_ZNSolsEPFRSoS_E.exit
                                        #   in Loop: Header=BB6_15 Depth=1
	incq	%r15
	movslq	N(%rip), %rax
	cmpq	%rax, %r15
	jl	.LBB6_15
.LBB6_26:                               # %._crit_edge
.Ltmp23:
	leaq	136(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv
.Ltmp24:
# %bb.27:
.Ltmp25:
	leaq	136(%rsp), %rdi
	movl	$.L.str.2, %esi
	movl	$16, %edx
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode
.Ltmp26:
# %bb.28:                               # %.preheader192
	cmpl	$0, C(%rip)
	je	.LBB6_29
# %bb.73:                               # %.lr.ph198.preheader
	xorps	%xmm0, %xmm0
	movss	%xmm0, 8(%rsp)                  # 4-byte Spill
	xorl	%r15d, %r15d
	leaq	136(%rsp), %rbx
.LBB6_74:                               # %.lr.ph198
                                        # =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtss2sd	(%r13,%r15,4), %xmm0
.Ltmp27:
	movq	%rbx, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp28:
# %bb.75:                               # %_ZNSolsEf.exit137
                                        #   in Loop: Header=BB6_74 Depth=1
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
.Ltmp29:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp30:
# %bb.76:                               # %.noexc150
                                        #   in Loop: Header=BB6_74 Depth=1
.Ltmp31:
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
.Ltmp32:
# %bb.77:                               # %.noexc151
                                        #   in Loop: Header=BB6_74 Depth=1
.Ltmp33:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp34:
# %bb.78:                               # %_ZNSolsEPFRSoS_E.exit138
                                        #   in Loop: Header=BB6_74 Depth=1
	movss	8(%rsp), %xmm0                  # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	addss	(%r13,%r15,4), %xmm0
	movss	%xmm0, 8(%rsp)                  # 4-byte Spill
	incq	%r15
	movl	C(%rip), %eax
	imull	%eax, %eax
	cmpq	%rax, %r15
	jb	.LBB6_74
	jmp	.LBB6_30
.LBB6_29:
	xorps	%xmm0, %xmm0
	movss	%xmm0, 8(%rsp)                  # 4-byte Spill
.LBB6_30:                               # %._crit_edge199
.Ltmp36:
	leaq	136(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv
.Ltmp37:
# %bb.31:
	xorps	%xmm0, %xmm0
	cvtss2sd	8(%rsp), %xmm0                  # 4-byte Folded Reload
.Ltmp38:
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp39:
# %bb.32:                               # %_ZNSolsEf.exit139
.Ltmp40:
	movq	%rax, %rbx
	movl	$.L.str.1, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp41:
# %bb.33:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit140
	movq	(%rbx), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp42:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp43:
# %bb.34:                               # %.noexc154
.Ltmp44:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp45:
# %bb.35:                               # %.noexc155
.Ltmp46:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp47:
# %bb.36:                               # %_ZNSolsEPFRSoS_E.exit141
.Ltmp48:
	leaq	136(%rsp), %rbx
	movl	$.L.str.3, %esi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode
.Ltmp49:
# %bb.37:                               # %.preheader191
	movl	C(%rip), %eax
	testl	%eax, %eax
	jle	.LBB6_48
# %bb.38:                               # %.preheader190.preheader
	xorl	%r14d, %r14d
.LBB6_39:                               # %.preheader190
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB6_41 Depth 2
	testl	%eax, %eax
	jle	.LBB6_44
# %bb.40:                               # %.lr.ph201.preheader
                                        #   in Loop: Header=BB6_39 Depth=1
	xorl	%r15d, %r15d
.LBB6_41:                               # %.lr.ph201
                                        #   Parent Loop BB6_39 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	imull	%r14d, %eax
	cltq
	addq	%r15, %rax
	xorps	%xmm0, %xmm0
	cvtss2sd	(%r13,%rax,4), %xmm0
.Ltmp50:
	movq	%rbx, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp51:
# %bb.42:                               # %_ZNSolsEf.exit143
                                        #   in Loop: Header=BB6_41 Depth=2
.Ltmp52:
	movl	$.L.str.1, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp53:
# %bb.43:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit144
                                        #   in Loop: Header=BB6_41 Depth=2
	movl	C(%rip), %eax
	incq	%r15
	cmpl	%eax, %r15d
	jl	.LBB6_41
.LBB6_44:                               # %._crit_edge202
                                        #   in Loop: Header=BB6_39 Depth=1
	movq	136(%rsp), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp55:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp56:
# %bb.45:                               # %.noexc158
                                        #   in Loop: Header=BB6_39 Depth=1
.Ltmp57:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp58:
# %bb.46:                               # %.noexc159
                                        #   in Loop: Header=BB6_39 Depth=1
.Ltmp59:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp60:
# %bb.47:                               # %_ZNSolsEPFRSoS_E.exit142
                                        #   in Loop: Header=BB6_39 Depth=1
	incl	%r14d
	movl	C(%rip), %eax
	cmpl	%eax, %r14d
	jl	.LBB6_39
.LBB6_48:                               # %._crit_edge204
.Ltmp62:
	leaq	136(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv
.Ltmp63:
# %bb.49:
.Ltmp64:
	leaq	136(%rsp), %rbx
	movl	$.L.str.4, %esi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode
.Ltmp65:
# %bb.50:                               # %.preheader189
	movl	C(%rip), %eax
	testl	%eax, %eax
	jle	.LBB6_61
# %bb.51:                               # %.preheader.preheader
	xorl	%r14d, %r14d
.LBB6_52:                               # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB6_54 Depth 2
	testl	%eax, %eax
	jle	.LBB6_57
# %bb.53:                               # %.lr.ph206.preheader
                                        #   in Loop: Header=BB6_52 Depth=1
	xorl	%r15d, %r15d
.LBB6_54:                               # %.lr.ph206
                                        #   Parent Loop BB6_52 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	imull	%r15d, %eax
	addl	%r14d, %eax
	cltq
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rbp,%rax,4), %xmm0
.Ltmp66:
	movq	%rbx, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp67:
# %bb.55:                               # %_ZNSolsEf.exit146
                                        #   in Loop: Header=BB6_54 Depth=2
.Ltmp68:
	movl	$.L.str.1, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp69:
# %bb.56:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit147
                                        #   in Loop: Header=BB6_54 Depth=2
	incl	%r15d
	movl	C(%rip), %eax
	cmpl	%eax, %r15d
	jl	.LBB6_54
.LBB6_57:                               # %._crit_edge207
                                        #   in Loop: Header=BB6_52 Depth=1
	movq	136(%rsp), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp71:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp72:
# %bb.58:                               # %.noexc162
                                        #   in Loop: Header=BB6_52 Depth=1
.Ltmp73:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp74:
# %bb.59:                               # %.noexc163
                                        #   in Loop: Header=BB6_52 Depth=1
.Ltmp75:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp76:
# %bb.60:                               # %_ZNSolsEPFRSoS_E.exit145
                                        #   in Loop: Header=BB6_52 Depth=1
	incl	%r14d
	movl	C(%rip), %eax
	cmpl	%eax, %r14d
	jl	.LBB6_52
.LBB6_61:                               # %._crit_edge209
.Ltmp78:
	leaq	136(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv
.Ltmp79:
# %bb.62:
	movq	64(%rsp), %rdi                  # 8-byte Reload
	callq	free
	movq	56(%rsp), %rdi                  # 8-byte Reload
	callq	free
	movq	48(%rsp), %rdi                  # 8-byte Reload
	callq	free
	movq	%r12, %rdi
	callq	free
	movq	%r13, %rdi
	callq	free
	movq	%rbp, %rdi
	callq	free
	movq	72(%rsp), %rdi
.Ltmp80:
	callq	hipfftDestroy
.Ltmp81:
# %bb.63:
	movq	40(%rsp), %rdi
.Ltmp82:
	callq	hipFree
.Ltmp83:
# %bb.64:
	movq	32(%rsp), %rdi
.Ltmp84:
	callq	hipFree
.Ltmp85:
# %bb.65:
	movq	112(%rsp), %rdi
.Ltmp86:
	callq	hipFree
.Ltmp87:
# %bb.66:
	movq	104(%rsp), %rdi
.Ltmp88:
	callq	hipFree
.Ltmp89:
# %bb.67:
	movq	24(%rsp), %rdi
.Ltmp90:
	callq	hipFree
.Ltmp91:
# %bb.68:
	movq	96(%rsp), %rdi
.Ltmp92:
	callq	hipFree
.Ltmp93:
# %bb.69:
	movq	88(%rsp), %rdi
.Ltmp94:
	callq	hipFree
.Ltmp95:
# %bb.70:
	movq	80(%rsp), %rdi
.Ltmp96:
	callq	hipFree
.Ltmp97:
# %bb.71:
	movq	16(%rsp), %rdi
.Ltmp98:
	callq	hipFree
.Ltmp99:
# %bb.72:
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE(%rip), %rax
	leaq	144(%rsp), %rdi
	movq	%rax, -8(%rdi)
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE+24(%rip), %rcx
	movq	-24(%rax), %rax
	movq	%rcx, 136(%rsp,%rax)
	callq	_ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev
	leaq	384(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	xorl	%eax, %eax
	addq	$648, %rsp                      # imm = 0x288
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB6_80:
	.cfi_def_cfa_offset 704
.Ltmp100:
	jmp	.LBB6_81
.LBB6_86:
.Ltmp77:
	jmp	.LBB6_81
.LBB6_84:
.Ltmp61:
	jmp	.LBB6_81
.LBB6_79:
.Ltmp35:
	jmp	.LBB6_81
.LBB6_82:
.Ltmp22:
	jmp	.LBB6_81
.LBB6_85:
.Ltmp70:
	jmp	.LBB6_81
.LBB6_83:
.Ltmp54:
.LBB6_81:
	movq	%rax, %rbx
	leaq	136(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end6:
	.size	main, .Lfunc_end6-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table6:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp100-.Lfunc_begin0         #     jumps to .Ltmp100
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp2-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp21-.Ltmp2                 #   Call between .Ltmp2 and .Ltmp21
	.uleb128 .Ltmp22-.Lfunc_begin0          #     jumps to .Ltmp22
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp23-.Lfunc_begin0          # >> Call Site 4 <<
	.uleb128 .Ltmp26-.Ltmp23                #   Call between .Ltmp23 and .Ltmp26
	.uleb128 .Ltmp100-.Lfunc_begin0         #     jumps to .Ltmp100
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp27-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Ltmp34-.Ltmp27                #   Call between .Ltmp27 and .Ltmp34
	.uleb128 .Ltmp35-.Lfunc_begin0          #     jumps to .Ltmp35
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp36-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp49-.Ltmp36                #   Call between .Ltmp36 and .Ltmp49
	.uleb128 .Ltmp100-.Lfunc_begin0         #     jumps to .Ltmp100
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp50-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp53-.Ltmp50                #   Call between .Ltmp50 and .Ltmp53
	.uleb128 .Ltmp54-.Lfunc_begin0          #     jumps to .Ltmp54
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp55-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp60-.Ltmp55                #   Call between .Ltmp55 and .Ltmp60
	.uleb128 .Ltmp61-.Lfunc_begin0          #     jumps to .Ltmp61
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp62-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp65-.Ltmp62                #   Call between .Ltmp62 and .Ltmp65
	.uleb128 .Ltmp100-.Lfunc_begin0         #     jumps to .Ltmp100
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp66-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Ltmp69-.Ltmp66                #   Call between .Ltmp66 and .Ltmp69
	.uleb128 .Ltmp70-.Lfunc_begin0          #     jumps to .Ltmp70
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp71-.Lfunc_begin0          # >> Call Site 11 <<
	.uleb128 .Ltmp76-.Ltmp71                #   Call between .Ltmp71 and .Ltmp76
	.uleb128 .Ltmp77-.Lfunc_begin0          #     jumps to .Ltmp77
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp78-.Lfunc_begin0          # >> Call Site 12 <<
	.uleb128 .Ltmp99-.Ltmp78                #   Call between .Ltmp78 and .Ltmp99
	.uleb128 .Ltmp100-.Lfunc_begin0         #     jumps to .Ltmp100
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp99-.Lfunc_begin0          # >> Call Site 13 <<
	.uleb128 .Lfunc_end6-.Ltmp99            #   Call between .Ltmp99 and .Lfunc_end6
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB7_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB7_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z22distribucionParticulasPfS_S_S_iP12hiprandStateff, %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	$_Z22inicializacionDensidadPfi, %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	$_Z15calculoDensidadPfS_S_iif, %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	$_Z12real2complexPfP15HIP_vector_typeIfLj2EEi, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z13solve_PoissonP15HIP_vector_typeIfLj2EES1_if, %esi
	movl	$.L__unnamed_5, %edx
	movl	$.L__unnamed_5, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z12complex2realP15HIP_vector_typeIfLj2EEPfi, %esi
	movl	$.L__unnamed_6, %edx
	movl	$.L__unnamed_6, %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_end7:
	.size	__hip_module_ctor, .Lfunc_end7-__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	.LBB8_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
.LBB8_2:
	retq
.Lfunc_end8:
	.size	__hip_module_dtor, .Lfunc_end8-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	L,@object                       # @L
	.bss
	.globl	L
	.p2align	2, 0x0
L:
	.long	0x00000000                      # float 0
	.size	L, 4

	.type	LL,@object                      # @LL
	.globl	LL
	.p2align	2, 0x0
LL:
	.long	0x00000000                      # float 0
	.size	LL, 4

	.type	N,@object                       # @N
	.globl	N
	.p2align	2, 0x0
N:
	.long	0                               # 0x0
	.size	N, 4

	.type	C,@object                       # @C
	.globl	C
	.p2align	2, 0x0
C:
	.long	0                               # 0x0
	.size	C, 4

	.type	itera,@object                   # @itera
	.globl	itera
	.p2align	2, 0x0
itera:
	.long	0                               # 0x0
	.size	itera, 4

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

	.type	_Z22inicializacionDensidadPfi,@object # @_Z22inicializacionDensidadPfi
	.globl	_Z22inicializacionDensidadPfi
	.p2align	3, 0x0
_Z22inicializacionDensidadPfi:
	.quad	_Z37__device_stub__inicializacionDensidadPfi
	.size	_Z22inicializacionDensidadPfi, 8

	.type	_Z15calculoDensidadPfS_S_iif,@object # @_Z15calculoDensidadPfS_S_iif
	.globl	_Z15calculoDensidadPfS_S_iif
	.p2align	3, 0x0
_Z15calculoDensidadPfS_S_iif:
	.quad	_Z30__device_stub__calculoDensidadPfS_S_iif
	.size	_Z15calculoDensidadPfS_S_iif, 8

	.type	_Z12real2complexPfP15HIP_vector_typeIfLj2EEi,@object # @_Z12real2complexPfP15HIP_vector_typeIfLj2EEi
	.globl	_Z12real2complexPfP15HIP_vector_typeIfLj2EEi
	.p2align	3, 0x0
_Z12real2complexPfP15HIP_vector_typeIfLj2EEi:
	.quad	_Z27__device_stub__real2complexPfP15HIP_vector_typeIfLj2EEi
	.size	_Z12real2complexPfP15HIP_vector_typeIfLj2EEi, 8

	.type	_Z13solve_PoissonP15HIP_vector_typeIfLj2EES1_if,@object # @_Z13solve_PoissonP15HIP_vector_typeIfLj2EES1_if
	.globl	_Z13solve_PoissonP15HIP_vector_typeIfLj2EES1_if
	.p2align	3, 0x0
_Z13solve_PoissonP15HIP_vector_typeIfLj2EES1_if:
	.quad	_Z28__device_stub__solve_PoissonP15HIP_vector_typeIfLj2EES1_if
	.size	_Z13solve_PoissonP15HIP_vector_typeIfLj2EES1_if, 8

	.type	_Z12complex2realP15HIP_vector_typeIfLj2EEPfi,@object # @_Z12complex2realP15HIP_vector_typeIfLj2EEPfi
	.globl	_Z12complex2realP15HIP_vector_typeIfLj2EEPfi
	.p2align	3, 0x0
_Z12complex2realP15HIP_vector_typeIfLj2EEPfi:
	.quad	_Z27__device_stub__complex2realP15HIP_vector_typeIfLj2EEPfi
	.size	_Z12complex2realP15HIP_vector_typeIfLj2EEPfi, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"distribucionInicial.txt"
	.size	.L.str, 24

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

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"salida_densidad3.txt"
	.size	.L.str.2, 21

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"entrada_poisson"
	.size	.L.str.3, 16

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"poisson"
	.size	.L.str.4, 8

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z22distribucionParticulasPfS_S_S_iP12hiprandStateff"
	.size	.L__unnamed_1, 53

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z22inicializacionDensidadPfi"
	.size	.L__unnamed_2, 30

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z15calculoDensidadPfS_S_iif"
	.size	.L__unnamed_3, 29

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"_Z12real2complexPfP15HIP_vector_typeIfLj2EEi"
	.size	.L__unnamed_4, 45

	.type	.L__unnamed_5,@object           # @4
.L__unnamed_5:
	.asciz	"_Z13solve_PoissonP15HIP_vector_typeIfLj2EES1_if"
	.size	.L__unnamed_5, 48

	.type	.L__unnamed_6,@object           # @5
.L__unnamed_6:
	.asciz	"_Z12complex2realP15HIP_vector_typeIfLj2EEPfi"
	.size	.L__unnamed_6, 45

	.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 _Z37__device_stub__distribucionParticulasPfS_S_S_iP12hiprandStateff
	.addrsig_sym _Z37__device_stub__inicializacionDensidadPfi
	.addrsig_sym _Z30__device_stub__calculoDensidadPfS_S_iif
	.addrsig_sym _Z27__device_stub__real2complexPfP15HIP_vector_typeIfLj2EEi
	.addrsig_sym _Z28__device_stub__solve_PoissonP15HIP_vector_typeIfLj2EES1_if
	.addrsig_sym _Z27__device_stub__complex2realP15HIP_vector_typeIfLj2EEPfi
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _Z22distribucionParticulasPfS_S_S_iP12hiprandStateff
	.addrsig_sym _Z22inicializacionDensidadPfi
	.addrsig_sym _Z15calculoDensidadPfS_S_iif
	.addrsig_sym _Z12real2complexPfP15HIP_vector_typeIfLj2EEi
	.addrsig_sym _Z13solve_PoissonP15HIP_vector_typeIfLj2EES1_if
	.addrsig_sym _Z12complex2realP15HIP_vector_typeIfLj2EEPfi
	.addrsig_sym _ZSt4cout
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.p2align	2                               ; -- Begin function _Z12distributionffP12hiprandState
	.type	_Z12distributionffP12hiprandState,@function
_Z12distributionffP12hiprandState:      ; @_Z12distributionffP12hiprandState
; %bb.0:
	s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
	s_xor_saveexec_b32 s0, -1
	scratch_store_b32 off, v25, s32         ; 4-byte Folded Spill
	s_mov_b32 exec_lo, s0
	v_writelane_b32 v25, s34, 0
	v_writelane_b32 v25, s35, 1
	v_writelane_b32 v25, s30, 2
	v_writelane_b32 v25, s31, 3
	v_cvt_f64_f32_e32 v[4:5], v0
	s_mov_b32 s4, 0x652b82fe
	s_mov_b32 s5, 0x3ff71547
	s_mov_b32 s6, 0xfefa39ef
	s_mov_b32 s7, 0xbfe62e42
	s_mov_b32 s10, 0x3b39803f
	s_mov_b32 s11, 0xbc7abc9e
	s_mov_b32 s14, 0xfca7ab0c
	s_mov_b32 s16, 0x6a5dcb37
	s_mov_b32 s15, 0x3e928af3
	s_mov_b32 s17, 0x3e5ade15
	s_mov_b32 s18, 0x623fde64
	s_mov_b32 s19, 0x3ec71dee
	s_mov_b32 s20, 0x7c89e6b0
	s_mov_b32 s21, 0x3efa0199
	s_mov_b32 s22, 0x14761f6e
	s_mov_b32 s23, 0x3f2a01a0
	s_mov_b32 s24, 0x1852b7b0
	s_mov_b32 s25, 0x3f56c16c
	s_mov_b32 s26, 0x11122322
	s_mov_b32 s27, 0x3f811111
	s_mov_b32 s28, 0x555502a1
	s_mov_b32 s29, 0x3fa55555
	s_mov_b32 s30, 0x55555511
	s_mov_b32 s31, 0x3fc55555
	s_mov_b32 s34, 11
	s_mov_b32 s35, 0x3fe00000
	s_load_b32 s1, s[8:9], 0x0
	s_mov_b32 s3, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[6:7], v[4:5], -2.0
	v_mul_f64 v[4:5], v[6:7], v[4:5]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_mul_f64 v[6:7], v[4:5], s[4:5]
	v_cmp_nlt_f64_e32 vcc_lo, 0x40900000, v[4:5]
	v_cmp_ngt_f64_e64 s0, 0xc090cc00, v[4:5]
	v_rndne_f64_e32 v[6:7], v[6:7]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f64 v[8:9], v[6:7], s[6:7], v[4:5]
	v_cvt_i32_f64_e32 v12, v[6:7]
	v_fma_f64 v[8:9], v[6:7], s[10:11], v[8:9]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[10:11], v[8:9], s[16:17], s[14:15]
	v_fma_f64 v[10:11], v[8:9], v[10:11], s[18:19]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[10:11], v[8:9], v[10:11], s[20:21]
	v_fma_f64 v[10:11], v[8:9], v[10:11], s[22:23]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[10:11], v[8:9], v[10:11], s[24:25]
	v_fma_f64 v[10:11], v[8:9], v[10:11], s[26:27]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[10:11], v[8:9], v[10:11], s[28:29]
	v_fma_f64 v[10:11], v[8:9], v[10:11], s[30:31]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[10:11], v[8:9], v[10:11], s[34:35]
	v_fma_f64 v[10:11], v[8:9], v[10:11], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[6:7], v[8:9], v[10:11], 1.0
	v_ldexp_f64 v[6:7], v[6:7], v12
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[6:7], v[6:7], 1.0
	v_mul_f64 v[6:7], v[6:7], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v7, 0x7ff00000, v7, vcc_lo
	s_and_b32 vcc_lo, s0, vcc_lo
	s_waitcnt lgkmcnt(0)
	s_cmp_lt_u32 s12, s1
	v_cndmask_b32_e64 v5, 0x3fe00000, v7, s0
	s_cselect_b32 s0, 12, 18
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_mov_b32_e32 v4, s0
	global_load_u16 v7, v4, s[8:9]
	v_cndmask_b32_e32 v4, 0, v6, vcc_lo
                                        ; implicit-def: $sgpr8
	v_cvt_f32_f64_e32 v6, v[4:5]
	v_and_b32_e32 v4, 0x3ff, v31
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mad_u64_u32 v[8:9], null, s12, v7, v[4:5]
	v_mul_f32_e32 v7, 0xc0a00000, v0
	v_mad_i64_i32 v[4:5], null, v8, 48, v[2:3]
	s_delay_alu instid0(VALU_DEP_2)
	v_fma_f32 v3, 0x40a00000, v0, -v7
.LBB0_1:                                ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fma_f32 v2, v3, v1, v7
	s_or_b32 s8, s8, exec_lo
	v_dual_mul_f32 v1, v1, v6 :: v_dual_sub_f32 v8, v2, v0
	v_add_f32_e32 v9, v2, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f32_e64 v8, v8, -v8
	v_mul_f32_e64 v10, v9, -v9
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cvt_f64_f32_e32 v[8:9], v8
	v_cvt_f64_f32_e32 v[10:11], v10
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[8:9], v[8:9], 0.5
	v_mul_f64 v[10:11], v[10:11], 0.5
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[12:13], v[8:9], s[4:5]
	v_mul_f64 v[14:15], v[10:11], s[4:5]
	v_cmp_nlt_f64_e64 s1, 0x40900000, v[10:11]
	v_cmp_nlt_f64_e32 vcc_lo, 0x40900000, v[8:9]
	v_cmp_ngt_f64_e64 s0, 0xc090cc00, v[8:9]
	v_cmp_ngt_f64_e64 s2, 0xc090cc00, v[10:11]
	v_rndne_f64_e32 v[12:13], v[12:13]
	v_rndne_f64_e32 v[14:15], v[14:15]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[16:17], v[12:13], s[6:7], v[8:9]
	v_fma_f64 v[18:19], v[14:15], s[6:7], v[10:11]
	v_cvt_i32_f64_e32 v24, v[12:13]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[16:17], v[12:13], s[10:11], v[16:17]
	v_fma_f64 v[18:19], v[14:15], s[10:11], v[18:19]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[20:21], v[16:17], s[16:17], s[14:15]
	v_fma_f64 v[22:23], v[18:19], s[16:17], s[14:15]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[20:21], v[16:17], v[20:21], s[18:19]
	v_fma_f64 v[22:23], v[18:19], v[22:23], s[18:19]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[20:21], v[16:17], v[20:21], s[20:21]
	v_fma_f64 v[22:23], v[18:19], v[22:23], s[20:21]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[20:21], v[16:17], v[20:21], s[22:23]
	v_fma_f64 v[22:23], v[18:19], v[22:23], s[22:23]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[20:21], v[16:17], v[20:21], s[24:25]
	v_fma_f64 v[22:23], v[18:19], v[22:23], s[24:25]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[20:21], v[16:17], v[20:21], s[26:27]
	v_fma_f64 v[22:23], v[18:19], v[22:23], s[26:27]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[20:21], v[16:17], v[20:21], s[28:29]
	v_fma_f64 v[22:23], v[18:19], v[22:23], s[28:29]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[20:21], v[16:17], v[20:21], s[30:31]
	v_fma_f64 v[22:23], v[18:19], v[22:23], s[30:31]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[20:21], v[16:17], v[20:21], s[34:35]
	v_fma_f64 v[22:23], v[18:19], v[22:23], s[34:35]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[20:21], v[16:17], v[20:21], 1.0
	v_fma_f64 v[22:23], v[18:19], v[22:23], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[12:13], v[16:17], v[20:21], 1.0
	v_cvt_i32_f64_e32 v16, v[14:15]
	v_fma_f64 v[14:15], v[18:19], v[22:23], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ldexp_f64 v[12:13], v[12:13], v24
	v_ldexp_f64 v[14:15], v[14:15], v16
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v13, 0x7ff00000, v13, vcc_lo
	s_and_b32 vcc_lo, s0, vcc_lo
	v_cndmask_b32_e64 v8, 0x7ff00000, v15, s1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v9, 0, v13, s0
	v_cndmask_b32_e64 v11, 0, v8, s2
	v_cndmask_b32_e32 v8, 0, v12, vcc_lo
	s_and_b32 vcc_lo, s2, s1
	v_cndmask_b32_e32 v10, 0, v14, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f64 v[8:9], v[8:9], v[10:11]
	v_mul_f64 v[8:9], v[8:9], 0.5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cvt_f32_f64_e32 v8, v[8:9]
	v_cmp_gt_f32_e32 vcc_lo, v1, v8
                                        ; implicit-def: $vgpr1
	s_and_saveexec_b32 s0, vcc_lo
	s_cbranch_execz .LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	s_clause 0x2
	flat_load_b128 v[8:11], v[4:5] offset:24
	flat_load_b32 v12, v[4:5] offset:40
	flat_load_b32 v1, v[4:5]
	s_and_not1_b32 s8, s8, exec_lo
	s_waitcnt vmcnt(2) lgkmcnt(2)
	v_lshrrev_b32_e32 v13, 2, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v8, v13, v8
	s_waitcnt vmcnt(1) lgkmcnt(1)
	v_lshlrev_b32_e32 v13, 4, v12
	v_lshlrev_b32_e32 v14, 1, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_xor_b32_e32 v13, v14, v13
	v_xor3_b32 v8, v13, v8, v12
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_nc_u32_e32 v13, 0x587c5, v1
	flat_store_b32 v[4:5], v8 offset:40
	v_add_nc_u32_e32 v1, v13, v8
	s_clause 0x1
	flat_store_b128 v[4:5], v[9:12] offset:24
	flat_store_b32 v[4:5], v13
	v_cvt_f32_u32_e32 v1, v1
	s_delay_alu instid0(VALU_DEP_1)
	v_fmaak_f32 v1, 0x2f800000, v1, 0x2f800000
.LBB0_3:                                ; %Flow
                                        ;   in Loop: Header=BB0_1 Depth=1
	s_or_b32 exec_lo, exec_lo, s0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s0, exec_lo, s8
	s_or_b32 s3, s0, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s3
	s_cbranch_execnz .LBB0_1
; %bb.4:
	s_or_b32 exec_lo, exec_lo, s3
	v_readlane_b32 s30, v25, 2
	v_mov_b32_e32 v0, v2
	v_readlane_b32 s31, v25, 3
	v_readlane_b32 s35, v25, 1
	v_readlane_b32 s34, v25, 0
	s_xor_saveexec_b32 s0, -1
	scratch_load_b32 v25, off, s32          ; 4-byte Folded Reload
	s_mov_b32 exec_lo, s0
	s_waitcnt vmcnt(0) lgkmcnt(0)
	s_setpc_b64 s[30:31]
.Lfunc_end0:
	.size	_Z12distributionffP12hiprandState, .Lfunc_end0-_Z12distributionffP12hiprandState
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Function info:
; codeLenInByte = 1380
; NumSgprs: 38
; NumVgprs: 32
; ScratchSize: 8
; MemoryBound: 0
	.text
	.protected	_Z22distribucionParticulasPfS_S_S_iP12hiprandStateff ; -- Begin function _Z22distribucionParticulasPfS_S_S_iP12hiprandStateff
	.globl	_Z22distribucionParticulasPfS_S_S_iP12hiprandStateff
	.p2align	8
	.type	_Z22distribucionParticulasPfS_S_S_iP12hiprandStateff,@function
_Z22distribucionParticulasPfS_S_S_iP12hiprandStateff: ; @_Z22distribucionParticulasPfS_S_S_iP12hiprandStateff
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x44
	s_load_b64 s[38:39], s[0:1], 0x28
	v_dual_mov_b32 v31, v0 :: v_dual_mov_b32 v10, 0
	s_mov_b32 s12, s15
	v_mov_b32_e32 v4, 0xa96f9d04
	v_mov_b32_e32 v5, 0x8f14727c
	s_mov_b32 s32, 0
	v_mov_b32_e32 v11, v10
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1)
	v_mad_u64_u32 v[6:7], null, s12, s2, v[31:32]
	s_getreg_b32 s2, hwreg(HW_REG_SHADER_CYCLES, 0, 20)
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_mul_lo_u32 v0, v6, s2
	s_load_b32 s2, s[0:1], 0x20
	v_mad_i64_i32 v[26:27], null, v6, 48, s[38:39]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_xor_b32_e32 v0, 0x2c7f967f, v0
	v_mul_lo_u32 v8, 0x493c4aa1, v0
	s_waitcnt lgkmcnt(0)
	v_cmp_gt_i32_e32 vcc_lo, s2, v6
	s_delay_alu instid0(VALU_DEP_2)
	v_add_nc_u32_e32 v2, 0x75bcd15, v8
	v_add_nc_u32_e32 v9, 0x8ac25218, v8
	v_xor_b32_e32 v3, 0x159a55e5, v8
	v_add_nc_u32_e32 v1, 0x583f19, v8
	s_clause 0x2
	global_store_b96 v[26:27], v[9:11], off
	global_store_b128 v[26:27], v[2:5], off offset:24
	global_store_b32 v[26:27], v1, off offset:40
	s_and_saveexec_b32 s2, vcc_lo
	s_cbranch_execz .LBB1_2
; %bb.1:
	v_lshrrev_b32_e32 v0, 2, v2
	v_lshrrev_b32_e32 v7, 2, v3
	s_clause 0x1
	s_load_b256 s[40:47], s[0:1], 0x0
	s_load_b64 s[48:49], s[0:1], 0x30
	s_add_u32 s36, s0, 56
	v_xor_b32_e32 v0, v0, v2
	v_lshlrev_b32_e32 v2, 4, v1
	v_xor_b32_e32 v3, v7, v3
	v_ashrrev_i32_e32 v7, 31, v6
	s_addc_u32 s37, s1, 0
	v_lshlrev_b32_e32 v4, 1, v0
	s_mov_b64 s[8:9], s[36:37]
	s_getpc_b64 s[50:51]
	s_add_u32 s50, s50, _Z12distributionffP12hiprandState@rel32@lo+4
	s_addc_u32 s51, s51, _Z12distributionffP12hiprandState@rel32@hi+12
	v_lshlrev_b64 v[28:29], 2, v[6:7]
	v_add_nc_u32_e32 v9, 0x8ad2e967, v8
	v_xor_b32_e32 v2, v2, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_xor3_b32 v2, v2, v1, v0
	v_lshlrev_b32_e32 v0, 1, v3
	v_lshlrev_b32_e32 v4, 4, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_xor_b32_e32 v4, v0, v4
	v_mov_b32_e32 v0, v5
	v_add3_u32 v5, v8, v2, 0x8ac7d9dd
	v_xor3_b32 v3, v4, v3, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cvt_f32_u32_e32 v4, v5
	v_add3_u32 v5, v8, v3, 0x8acd61a2
	v_lshlrev_b32_e32 v8, 4, v3
	s_delay_alu instid0(VALU_DEP_3)
	v_fmaak_f32 v6, 0x2f800000, v4, 0x2f800000
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v4, vcc_lo, s40, v28
	v_cvt_f32_u32_e32 v7, v5
	v_xor3_b32 v8, v3, v8, 0x855c8ecf
	v_add_co_ci_u32_e32 v5, vcc_lo, s41, v29, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_dual_mul_f32 v10, s49, v6 :: v_dual_fmaak_f32 v11, 0x2f800000, v7, 0x2f800000
	v_add_nc_u32_e32 v12, v8, v9
	v_add_co_u32 v6, vcc_lo, s42, v28
	global_store_b32 v[4:5], v10, off
	v_add_co_ci_u32_e32 v7, vcc_lo, s43, v29, vcc_lo
	v_cvt_f32_u32_e32 v5, v12
	v_mul_f32_e32 v4, s49, v11
	s_clause 0x2
	global_store_b32 v[26:27], v9, off
	global_store_b128 v[26:27], v[0:3], off offset:24
	global_store_b32 v[26:27], v8, off offset:40
	global_store_b32 v[6:7], v4, off
	v_dual_mov_b32 v2, s38 :: v_dual_fmaak_f32 v1, 0x2f800000, v5, 0x2f800000
	v_dual_mov_b32 v0, s48 :: v_dual_mov_b32 v3, s39
	s_swappc_b64 s[30:31], s[50:51]
	v_add_co_u32 v1, vcc_lo, s44, v28
	v_add_co_ci_u32_e32 v2, vcc_lo, s45, v29, vcc_lo
	s_mov_b64 s[8:9], s[36:37]
	global_store_b32 v[1:2], v0, off
	s_clause 0x2
	global_load_b128 v[0:3], v[26:27], off offset:24
	global_load_b32 v4, v[26:27], off offset:40
	global_load_b32 v5, v[26:27], off
	s_waitcnt vmcnt(2)
	v_lshrrev_b32_e32 v6, 2, v0
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v5, 0x587c5, v5
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v0, v6, v0
	v_lshlrev_b32_e32 v6, 4, v4
	v_lshlrev_b32_e32 v7, 1, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_xor_b32_e32 v6, v7, v6
	v_xor3_b32 v0, v6, v0, v4
	s_clause 0x2
	global_store_b32 v[26:27], v5, off
	global_store_b128 v[26:27], v[1:4], off offset:24
	global_store_b32 v[26:27], v0, off offset:40
	v_mov_b32_e32 v2, s38
	v_add_nc_u32_e32 v6, v5, v0
	v_dual_mov_b32 v0, s48 :: v_dual_mov_b32 v3, s39
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cvt_f32_u32_e32 v6, v6
	v_fmaak_f32 v1, 0x2f800000, v6, 0x2f800000
	s_swappc_b64 s[30:31], s[50:51]
	v_add_co_u32 v1, vcc_lo, s46, v28
	v_add_co_ci_u32_e32 v2, vcc_lo, s47, v29, vcc_lo
	global_store_b32 v[1:2], v0, off
.LBB1_2:
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z22distribucionParticulasPfS_S_S_iP12hiprandStateff
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 8
		.amdhsa_kernarg_size 312
		.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 1
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 33
		.amdhsa_next_free_sgpr 52
		.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	_Z22distribucionParticulasPfS_S_S_iP12hiprandStateff, .Lfunc_end1-_Z22distribucionParticulasPfS_S_S_iP12hiprandStateff
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 736
; NumSgprs: 54
; NumVgprs: 33
; ScratchSize: 8
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 6
; VGPRBlocks: 4
; NumSGPRsForWavesPerEU: 54
; NumVGPRsForWavesPerEU: 33
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 1
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z22inicializacionDensidadPfi ; -- Begin function _Z22inicializacionDensidadPfi
	.globl	_Z22inicializacionDensidadPfi
	.p2align	8
	.type	_Z22inicializacionDensidadPfi,@function
_Z22inicializacionDensidadPfi:          ; @_Z22inicializacionDensidadPfi
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x1c
	s_load_b32 s3, s[0:1], 0x8
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_mul_i32 s3, s3, s3
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB2_2
; %bb.1:
	s_load_b64 s[0:1], s[0:1], 0x0
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	v_mov_b32_e32 v2, 0
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v0, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	global_store_b32 v[0:1], v2, off
.LBB2_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z22inicializacionDensidadPfi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 272
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 3
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end2:
	.size	_Z22inicializacionDensidadPfi, .Lfunc_end2-_Z22inicializacionDensidadPfi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 132
; NumSgprs: 18
; NumVgprs: 3
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 3
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z15calculoDensidadPfS_S_iif ; -- Begin function _Z15calculoDensidadPfS_S_iif
	.globl	_Z15calculoDensidadPfS_S_iif
	.p2align	8
	.type	_Z15calculoDensidadPfS_S_iif,@function
_Z15calculoDensidadPfS_S_iif:           ; @_Z15calculoDensidadPfS_S_iif
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x34
	s_load_b128 s[4:7], s[0:1], 0x18
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s4, v1
	s_cbranch_execz .LBB3_2
; %bb.1:                                ; %.sink.split
	s_clause 0x1
	s_load_b128 s[8:11], s[0:1], 0x0
	s_load_b64 s[2:3], s[0:1], 0x10
	v_ashrrev_i32_e32 v2, 31, v1
	s_mul_i32 s0, s5, s5
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s8, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s9, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s10, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s11, v1, vcc_lo
	global_load_b32 v2, v[2:3], off
	v_cvt_f32_i32_e32 v3, s0
	global_load_b32 v4, v[0:1], off
	v_cvt_f32_i32_e32 v0, s5
	v_div_scale_f32 v1, null, v3, v3, s6
	v_div_scale_f32 v10, vcc_lo, s6, v3, s6
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_scale_f32 v5, null, v0, v0, s6
	v_rcp_f32_e32 v6, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_rcp_f32_e32 v7, v5
	s_waitcnt_depctr 0xfff
	v_fma_f32 v8, -v1, v6, 1.0
	v_fma_f32 v9, -v5, v7, 1.0
	v_fmac_f32_e32 v6, v8, v6
	v_div_scale_f32 v8, s0, s6, v0, s6
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fmac_f32_e32 v7, v9, v7
	v_mul_f32_e32 v9, v10, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f32_e32 v11, v8, v7
	v_fma_f32 v12, -v1, v9, v10
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v13, -v5, v11, v8
	v_fmac_f32_e32 v9, v12, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v11, v13, v7
	v_fma_f32 v1, -v1, v9, v10
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v5, -v5, v11, v8
	v_div_fmas_f32 v6, v1, v6, v9
	s_mov_b32 vcc_lo, s0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_div_fmas_f32 v1, v5, v7, v11
	v_div_fixup_f32 v17, v6, v3, s6
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_div_fixup_f32 v5, v1, v0, s6
	s_waitcnt vmcnt(1)
	v_div_scale_f32 v0, null, v5, v5, v2
	v_div_scale_f32 v8, vcc_lo, v2, v5, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v1, v0
	s_waitcnt_depctr 0xfff
	v_fma_f32 v7, -v0, v1, 1.0
	v_fmac_f32_e32 v1, v7, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v7, v8, v1
	v_fma_f32 v9, -v0, v7, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v7, v9, v1
	v_fma_f32 v0, -v0, v7, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_div_fmas_f32 v0, v0, v1, v7
	s_waitcnt vmcnt(0)
	v_div_scale_f32 v7, null, v5, v5, v4
	v_div_scale_f32 v9, vcc_lo, v4, v5, v4
	v_div_fixup_f32 v0, v0, v5, v2
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v8, v7
	v_cvt_i32_f32_e32 v15, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_cvt_f32_i32_e32 v1, v15
	s_waitcnt_depctr 0xfff
	v_fma_f32 v2, -v7, v8, 1.0
	v_sub_f32_e32 v16, v0, v1
	v_fmac_f32_e32 v8, v2, v8
	v_cvt_f64_f32_e32 v[2:3], v17
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cvt_f64_f32_e32 v[0:1], v16
	v_mul_f32_e32 v6, v9, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f32 v10, -v7, v6, v9
	v_fmac_f32_e32 v6, v10, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f32 v7, -v7, v6, v9
	v_div_fmas_f32 v6, v7, v8, v6
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f32 v4, v6, v5, v4
	v_cvt_i32_f32_e32 v4, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v4, v4, s5
	v_add_f64 v[0:1], -v[0:1], 1.0
	v_add_nc_u32_e32 v7, v4, v15
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v8, 31, v7
	v_lshlrev_b64 v[7:8], 2, v[7:8]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v7, vcc_lo, s2, v7
	v_add_co_ci_u32_e32 v8, vcc_lo, s3, v8, vcc_lo
	global_load_b32 v18, v[7:8], off
	v_div_scale_f64 v[5:6], null, v[2:3], v[2:3], v[0:1]
	v_div_scale_f64 v[13:14], vcc_lo, v[0:1], v[2:3], v[0:1]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[9:10], v[5:6]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[11:12], -v[5:6], v[9:10], 1.0
	v_fma_f64 v[9:10], v[9:10], v[11:12], v[9:10]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[11:12], -v[5:6], v[9:10], 1.0
	v_fma_f64 v[9:10], v[9:10], v[11:12], v[9:10]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[11:12], v[13:14], v[9:10]
	v_fma_f64 v[5:6], -v[5:6], v[11:12], v[13:14]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[5:6], v[5:6], v[9:10], v[11:12]
	v_div_fixup_f64 v[0:1], v[5:6], v[2:3], v[0:1]
	s_waitcnt vmcnt(0)
	v_cvt_f64_f32_e32 v[2:3], v18
	v_ashrrev_i32_e32 v5, 31, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_f64 v[0:1], v[0:1], v[2:3]
	v_add_nc_u32_e32 v3, 1, v15
	v_cvt_f32_f64_e32 v2, v[0:1]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[4:5]
	v_add_co_u32 v0, vcc_lo, s2, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v1, vcc_lo
	v_add_co_u32 v4, vcc_lo, v7, 4
	v_add_co_ci_u32_e32 v5, vcc_lo, 0, v8, vcc_lo
	v_cmp_eq_u32_e32 vcc_lo, s5, v3
	v_div_scale_f32 v3, null, v17, v17, v16
	v_dual_cndmask_b32 v1, v5, v1 :: v_dual_cndmask_b32 v0, v4, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v4, v3
	s_waitcnt_depctr 0xfff
	v_fma_f32 v5, -v3, v4, 1.0
	v_fmac_f32_e32 v4, v5, v4
	global_store_b32 v[7:8], v2, off
	global_load_b32 v2, v[0:1], off
	v_div_scale_f32 v5, vcc_lo, v16, v17, v16
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v6, v5, v4
	v_fma_f32 v7, -v3, v6, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v6, v7, v4
	v_fma_f32 v3, -v3, v6, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f32 v3, v3, v4, v6
	v_div_fixup_f32 v3, v3, v17, v16
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f32_e32 v2, v3, v2
	global_store_b32 v[0:1], v2, off
.LBB3_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z15calculoDensidadPfS_S_iif
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 19
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end3:
	.size	_Z15calculoDensidadPfS_S_iif, .Lfunc_end3-_Z15calculoDensidadPfS_S_iif
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 960
; NumSgprs: 18
; NumVgprs: 19
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 19
; 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: 0
	.text
	.protected	_Z12real2complexPfP15HIP_vector_typeIfLj2EEi ; -- Begin function _Z12real2complexPfP15HIP_vector_typeIfLj2EEi
	.globl	_Z12real2complexPfP15HIP_vector_typeIfLj2EEi
	.p2align	8
	.type	_Z12real2complexPfP15HIP_vector_typeIfLj2EEi,@function
_Z12real2complexPfP15HIP_vector_typeIfLj2EEi: ; @_Z12real2complexPfP15HIP_vector_typeIfLj2EEi
; %bb.0:
	s_clause 0x1
	s_load_b32 s3, s[0:1], 0x24
	s_load_b32 s2, s[0:1], 0x10
	v_and_b32_e32 v2, 0x3ff, v0
	v_bfe_u32 v3, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s4, s3, 16
	s_and_b32 s3, s3, 0xffff
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_mad_u64_u32 v[0:1], null, s14, s3, v[2:3]
	v_mad_u64_u32 v[1:2], null, s15, s4, v[3:4]
	s_mov_b32 s3, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_max_i32_e32 v2, v0, v1
	v_cmpx_gt_i32_e64 s2, v2
	s_cbranch_execz .LBB4_2
; %bb.1:
	s_load_b128 s[4:7], s[0:1], 0x0
	v_mad_u64_u32 v[2:3], null, v1, s2, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[0:1], 2, v[2:3]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, s4, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s5, v1, vcc_lo
	global_load_b32 v0, v[0:1], off
	v_lshlrev_b64 v[1:2], 3, v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v3, vcc_lo, s6, v1
	v_add_co_ci_u32_e32 v4, vcc_lo, s7, v2, vcc_lo
	v_mov_b32_e32 v1, 0
	s_waitcnt vmcnt(0)
	global_store_b64 v[3:4], v[0:1], off
.LBB4_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z12real2complexPfP15HIP_vector_typeIfLj2EEi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 14
		.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 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 5
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end4:
	.size	_Z12real2complexPfP15HIP_vector_typeIfLj2EEi, .Lfunc_end4-_Z12real2complexPfP15HIP_vector_typeIfLj2EEi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 208
; NumSgprs: 18
; NumVgprs: 5
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 5
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; 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: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.protected	_Z13solve_PoissonP15HIP_vector_typeIfLj2EES1_if ; -- Begin function _Z13solve_PoissonP15HIP_vector_typeIfLj2EES1_if
	.globl	_Z13solve_PoissonP15HIP_vector_typeIfLj2EES1_if
	.p2align	8
	.type	_Z13solve_PoissonP15HIP_vector_typeIfLj2EES1_if,@function
_Z13solve_PoissonP15HIP_vector_typeIfLj2EES1_if: ; @_Z13solve_PoissonP15HIP_vector_typeIfLj2EES1_if
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b64 s[4:5], s[0:1], 0x10
	v_and_b32_e32 v2, 0x3ff, v0
	v_bfe_u32 v3, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s3, s2, 16
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_mad_u64_u32 v[0:1], null, s14, s2, v[2:3]
	v_mad_u64_u32 v[1:2], null, s15, s3, v[3:4]
	s_mov_b32 s2, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_max_i32_e32 v2, v0, v1
	v_cmpx_gt_i32_e64 s4, v2
	s_cbranch_execz .LBB5_4
; %bb.1:
	v_div_scale_f32 v2, vcc_lo, s5, s5, s5
	s_load_b128 s[0:3], s[0:1], 0x0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v3, v2
	s_waitcnt_depctr 0xfff
	v_fma_f32 v4, -v2, v3, 1.0
	v_fmac_f32_e32 v3, v4, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v4, v2, v3
	v_fma_f32 v5, -v2, v4, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v4, v5, v3
	v_fma_f32 v2, -v2, v4, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f32 v2, v2, v3, v4
	v_div_fixup_f32 v2, v2, s5, s5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f32_e32 v3, s5, v2
	v_add_f32_e32 v3, s5, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f32_e32 v2, v2, v3
	v_sub_f32_e32 v2, 4.0, v2
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_eq_f32_e32 vcc_lo, 0, v2
	s_cbranch_vccnz .LBB5_3
; %bb.2:
	v_mad_u64_u32 v[3:4], null, v1, s4, v[0:1]
	v_cvt_f32_i32_e32 v7, s4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_scale_f32 v8, null, v7, v7, s5
	v_ashrrev_i32_e32 v4, 31, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v9, v8
	v_lshlrev_b64 v[3:4], 3, v[3:4]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v3, vcc_lo, s0, v3
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v4, vcc_lo
	s_waitcnt_depctr 0xfff
	v_fma_f32 v10, -v8, v9, 1.0
	v_div_scale_f32 v11, vcc_lo, s5, v7, s5
	global_load_b64 v[5:6], v[3:4], off
	v_fmac_f32_e32 v9, v10, v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v10, v11, v9
	v_fma_f32 v12, -v8, v10, v11
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v10, v12, v9
	v_fma_f32 v8, -v8, v10, v11
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f32 v8, v8, v9, v10
	v_div_fixup_f32 v7, v8, v7, s5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v7, v7, v7
	v_div_scale_f32 v8, null, v2, v2, v7
	v_div_scale_f32 v11, vcc_lo, v7, v2, v7
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v9, v8
	s_waitcnt_depctr 0xfff
	v_fma_f32 v10, -v8, v9, 1.0
	v_fmac_f32_e32 v9, v10, v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v10, v11, v9
	v_fma_f32 v12, -v8, v10, v11
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v10, v12, v9
	v_fma_f32 v8, -v8, v10, v11
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f32 v8, v8, v9, v10
	v_div_fixup_f32 v2, v8, v2, v7
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f32_e32 v5, v2, v5
	v_mul_f32_e32 v6, v2, v6
	global_store_b64 v[3:4], v[5:6], off
.LBB5_3:
	v_mad_u64_u32 v[2:3], null, v0, s4, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[0:1], 3, v[2:3]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s0, v0
	v_add_co_ci_u32_e32 v3, vcc_lo, s1, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s2, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v1, vcc_lo
	global_load_b32 v4, v[2:3], off
	s_waitcnt vmcnt(0)
	global_store_b32 v[0:1], v4, off
	global_load_b32 v2, v[2:3], off offset:4
	s_waitcnt vmcnt(0)
	global_store_b32 v[0:1], v2, off offset:4
.LBB5_4:                                ; %.critedge
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z13solve_PoissonP15HIP_vector_typeIfLj2EES1_if
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 14
		.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 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 13
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end5:
	.size	_Z13solve_PoissonP15HIP_vector_typeIfLj2EES1_if, .Lfunc_end5-_Z13solve_PoissonP15HIP_vector_typeIfLj2EES1_if
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 604
; NumSgprs: 18
; NumVgprs: 13
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 13
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; 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: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.protected	_Z12complex2realP15HIP_vector_typeIfLj2EEPfi ; -- Begin function _Z12complex2realP15HIP_vector_typeIfLj2EEPfi
	.globl	_Z12complex2realP15HIP_vector_typeIfLj2EEPfi
	.p2align	8
	.type	_Z12complex2realP15HIP_vector_typeIfLj2EEPfi,@function
_Z12complex2realP15HIP_vector_typeIfLj2EEPfi: ; @_Z12complex2realP15HIP_vector_typeIfLj2EEPfi
; %bb.0:
	s_clause 0x1
	s_load_b32 s3, s[0:1], 0x24
	s_load_b32 s2, s[0:1], 0x10
	v_and_b32_e32 v2, 0x3ff, v0
	v_bfe_u32 v3, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s4, s3, 16
	s_and_b32 s3, s3, 0xffff
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_mad_u64_u32 v[0:1], null, s14, s3, v[2:3]
	v_mad_u64_u32 v[1:2], null, s15, s4, v[3:4]
	s_mov_b32 s3, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_max_i32_e32 v2, v0, v1
	v_cmpx_gt_i32_e64 s2, v2
	s_cbranch_execz .LBB6_2
; %bb.1:
	s_load_b128 s[4:7], s[0:1], 0x0
	v_mad_u64_u32 v[2:3], null, v1, s2, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[0:1], 3, v[2:3]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, s4, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s5, v1, vcc_lo
	global_load_b32 v4, v[0:1], off
	v_cvt_f32_i32_e32 v0, s2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v5, v0, v0
	s_waitcnt vmcnt(0)
	v_div_scale_f32 v0, null, v5, v5, v4
	v_div_scale_f32 v7, vcc_lo, v4, v5, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v1, v0
	s_waitcnt_depctr 0xfff
	v_fma_f32 v6, -v0, v1, 1.0
	v_fmac_f32_e32 v1, v6, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v6, v7, v1
	v_fma_f32 v8, -v0, v6, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v6, v8, v1
	v_fma_f32 v0, -v0, v6, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f32 v6, v0, v1, v6
	v_lshlrev_b64 v[0:1], 2, v[2:3]
	v_div_fixup_f32 v2, v6, v5, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v0, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s7, v1, vcc_lo
	global_store_b32 v[0:1], v2, off
.LBB6_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z12complex2realP15HIP_vector_typeIfLj2EEPfi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 14
		.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 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 9
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end6:
	.size	_Z12complex2realP15HIP_vector_typeIfLj2EEPfi, .Lfunc_end6-_Z12complex2realP15HIP_vector_typeIfLj2EEPfi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 308
; NumSgprs: 18
; NumVgprs: 9
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 9
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; 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: 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:
      - .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
      - .offset:         32
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .offset:         48
        .size:           4
        .value_kind:     by_value
      - .offset:         52
        .size:           4
        .value_kind:     by_value
      - .offset:         56
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         60
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         64
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         68
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         70
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         72
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         74
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         76
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         78
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         104
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         112
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         120
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 312
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z22distribucionParticulasPfS_S_S_iP12hiprandStateff
    .private_segment_fixed_size: 8
    .sgpr_count:     54
    .sgpr_spill_count: 0
    .symbol:         _Z22distribucionParticulasPfS_S_S_iP12hiprandStateff.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     33
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         16
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         20
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         28
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         30
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         32
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         34
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         36
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         38
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         56
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         80
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 272
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z22inicializacionDensidadPfi
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z22inicializacionDensidadPfi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     3
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           4
        .value_kind:     by_value
      - .offset:         28
        .size:           4
        .value_kind:     by_value
      - .offset:         32
        .size:           4
        .value_kind:     by_value
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         44
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         52
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         54
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         56
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         58
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         60
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         62
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         104
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 296
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z15calculoDensidadPfS_S_iif
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z15calculoDensidadPfS_S_iif.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     19
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z12real2complexPfP15HIP_vector_typeIfLj2EEi
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z12real2complexPfP15HIP_vector_typeIfLj2EEi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     5
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         20
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z13solve_PoissonP15HIP_vector_typeIfLj2EES1_if
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z13solve_PoissonP15HIP_vector_typeIfLj2EES1_if.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     13
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z12complex2realP15HIP_vector_typeIfLj2EEPfi
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z12complex2realP15HIP_vector_typeIfLj2EEPfi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     9
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
