#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <math.h>
#include <string>
#include <locale>

using namespace std;

/*****************************************************************************/

__global__ void calcularC (const float * A, const float * B, float * C, const int size) {
  uint block_start = blockIdx.x * blockDim.x;
  uint block_end = block_start + blockDim.x;
  uint i = block_start + threadIdx.x;

  if (i < size) {
    C[i]=0;

    for(int j=block_start; j<block_end; j++) {
      float a = A[j]*i;
      if((int) ceil(a) % 2 == 0)
        C[i] += a + B[j];
      else
        C[i] += a - B[j];
    }
  }
}

/*****************************************************************************/

__global__ void calcularC_shared (const float * A, const float * B, float * C, const int size) {
  extern __shared__ float sdata[];
  uint block_start = blockIdx.x * blockDim.x;
  uint i = block_start + threadIdx.x;
  uint tid = threadIdx.x;

  if (i < size) {
    C[i]=0;
    sdata[tid] = A[i];
    sdata[tid+blockDim.x] = B[i];
    __syncthreads();

    for(int j=0; j<blockDim.x; j++) {
      float a = sdata[j]*i;
      if((int) ceil(a) % 2 == 0)
        C[i] += a + sdata[j+blockDim.x];
      else
        C[i] += a - sdata[j+blockDim.x];
      // __syncthreads();
    }
  }
}

/*****************************************************************************/


// https://github.com/mark-poscablo/gpu-sum-reduction/blob/master/sum_reduction/reduce.cu
__global__ void calcularD(const float *C, float *D, const uint size) {
	extern __shared__ float sdata[];

	uint tid = threadIdx.x;
	uint i = blockIdx.x * (blockDim.x*2) + threadIdx.x;

	// Cada hebra carga un elemento desde memoria global a memoria compartida
	sdata[tid] = 0;
	if (i < size)
		sdata[tid] = C[i] + C[i+blockDim.x];

	__syncthreads();

	// Reducir en memoria compartida
	for(uint s = blockDim.x>>1; s > 0; s >>= 1) {
		if(tid < s)
			sdata[tid] += sdata[tid+s];

		// Esperar al resto de hebras para comenzar la nueva etapa
		__syncthreads();
	}

	// Escribir resultado de este bloque en memoria global
	if (tid == 0)
		D[blockIdx.x] = sdata[0];
}

//**************************************************************************//

/*****************************************************************************/

__global__ void calcularMax (const float *g_idata, float *g_odata, const int size) {
  extern __shared__ float sdata[];

	uint tid = threadIdx.x;
	uint i = blockIdx.x * blockDim.x*2 + threadIdx.x;

	// Cada hebra carga un elemento desde memoria global a memoria compartida
	if (i < size)
		sdata[tid] = (g_idata[i] > g_idata[i+blockDim.x]) ? g_idata[i] : g_idata[i+blockDim.x];

	__syncthreads();

	// Reducir en memoria compartida
	// s = blockDim.x >> 1
	// s >>=1
	// Ambas dividen el tamaño de bloque por 2.
	for(uint s = blockDim.x>>1; s > 0; s >>= 1) {
		if(tid < s)
			if(sdata[tid] < sdata[tid+s])
				sdata[tid] = sdata[tid+s];

		// Esperar al resto de hebras para comenzar la nueva etapa
		__syncthreads();
	}

	// Escribir resultado de este bloque en memoria global
	if (tid == 0)
		g_odata[blockIdx.x] = sdata[0];
}

/*****************************************************************************/

string comprobarIntegridad(float *vec1, float *vec2, int len) {
  for (int i=0; i<len; i++)
    if ((floor(vec1[i])-floor(vec2[i]))>0.9)
      return "fallo " + to_string(vec1[i]) + " : " + to_string(vec2[i]);

  return "OK";
}

/*****************************************************************************/


void imprimir(float *v, int len, char letra) {
  cout << "................................." << endl;
  for (int i=0; i<len;i++)
    cout << letra << "[" << i << "]=" << v[i] << endl;
}

/*****************************************************************************/

int main(int argc, char *argv[]) {
  int Bsize, NBlocks;

  locale mylocale("");
	cout.imbue(mylocale);

  if (argc != 3) {
    cout << "Uso: transformacion Num_bloques Tam_bloque  " << endl;
    return(0);
  }
  else {
    NBlocks = atoi(argv[1]);
    Bsize = atoi(argv[2]);
  }

  const int N = Bsize*NBlocks;
  cout << endl << "N=" << N << "= " << Bsize << "*" << NBlocks << endl << endl;

  //* pointers to host memory */
  float *A, *B, *C, *D;

  //* Allocate arrays a, b and c on host*/
  A = new float[N];
  B = new float[N];
  C = new float[N];
  D = new float[NBlocks];
  float mx; // maximum of C

  /* Initialize arrays */
  for (int i=0; i<N; i++) {
    A[i] = (float) (1  -(i%100)*0.001);
    B[i] = (float) (0.5+(i%10) *0.1  );
    C[i] = 0;
  }

  /**************************************************************************/
  /*	GPU PHASE
  /*
  /**************************************************************************/

  // Pointers to device memory
  float *d_A = NULL, *d_B = NULL, *d_C = NULL, *d_D = NULL, *d_max = NULL;
  // Allocate device memory
  cudaMalloc ((void **) &d_A, sizeof(float)*N);
  cudaMalloc ((void **) &d_B, sizeof(float)*N);
  cudaMalloc ((void **) &d_C, sizeof(float)*N);
  cudaMalloc ((void **) &d_D, sizeof(float)*NBlocks);
  cudaMalloc ((void **) &d_max, sizeof(float));
  // Copy data from host to device
  cudaMemcpy(d_A, A, sizeof(float)*N, cudaMemcpyHostToDevice);
  cudaMemcpy(d_B, B, sizeof(float)*N, cudaMemcpyHostToDevice);
  cudaMemcpy(d_C, C, sizeof(float)*N, cudaMemcpyHostToDevice);
  // Local device storage
  float *gpu_C = new float[N];
  float *gpu_D = new float[NBlocks];
  float *gpu_max = new float;

  // Time measurement
  double t1=clock();

  /**
  * Calcular C
  */
  // Kernel call with NBlocks of Bsize threads each.
  calcularC <<<NBlocks, Bsize>>> (d_A, d_B, d_C, N);
  // calcularC_shared <<<NBlocks, Bsize, 2*Bsize*sizeof(float)>>> (d_A, d_B, d_C, N);
  // Copy data from device to host
  cudaMemcpy(gpu_C, d_C, N*sizeof(float), cudaMemcpyDeviceToHost);
  cudaDeviceSynchronize();

  /**
  * Calcular D
  */
  // Kernel call
  calcularD <<<NBlocks, ceil(Bsize>>1), Bsize*sizeof(float)>>> (d_C, d_D, N);
  cudaMemcpy(gpu_D, d_D, NBlocks*sizeof(float), cudaMemcpyDeviceToHost);
  cudaDeviceSynchronize();

  /**
  * Calcular Max
  */
  // Calcular máximos locales a cada bloque
  calcularMax <<<NBlocks, ceil(Bsize>>1), Bsize*sizeof(float)>>> (d_C, d_D, N);
  // cudaMemcpy(gpu_D, d_D, NBlocks*sizeof(float), cudaMemcpyDeviceToHost);
  cudaDeviceSynchronize();

  // Calcular máximo global
  calcularMax<<<1, ceil((int)NBlocks>>1), NBlocks*sizeof(float)>>> (d_D, d_max, NBlocks);
  cudaMemcpy(gpu_max, d_max, sizeof(float), cudaMemcpyDeviceToHost);
  cudaDeviceSynchronize();

  double t2=clock();
  t2=(t2-t1)/CLOCKS_PER_SEC;

  cout << "[GPU] tiempo -> " << t2 << endl << endl;

  // Free device memory
  cudaFree(d_A);    cudaFree(d_B);    cudaFree(d_C);    cudaFree(d_D);    cudaFree(d_max);

  /**************************************************************************/
  /*	CPU PHASE
  /*
  /**************************************************************************/

  // Compute C[i], d[K] and mx
  for (int k=0; k<NBlocks; k++) {
    int istart=k*Bsize;
    int iend = istart+Bsize;
    D[k]=0.0;
    for (int i=istart; i<iend; i++) {
      C[i]=0.0;
      for (int j=istart; j<iend; j++) {
        float a = A[j]*i;
        if ((int)ceil(a) % 2 ==0)
          C[i] += a + B[j];
        else
          C[i] += a - B[j];
      }
      D[k] += C[i];
      mx = (i==1) ? C[0] : max(C[i],mx);
     }
  }

  t2=clock();
  t2=(t2-t1)/CLOCKS_PER_SEC;

  cout << "[CPU] tiempo -> " << t2 << endl << endl;

  /**************************************************************************/
  /*	CHECK PHASE
  /*
  /**************************************************************************/
  cout << "................................." << endl;
  cout << "Comprobando integridad de cálculos...\n";
  cout << "\t[CHECK] Comprobando C...  " << comprobarIntegridad(C, gpu_C, N) << endl;
  cout << "\t[CHECK] Comprobando D...  " << comprobarIntegridad(D, gpu_D, NBlocks) << endl;
  cout << "\t[CHECK] Comprobando Max...  ";
  (mx==*gpu_max) ? cout << "OK\n" : cout << "fallo " << to_string(*gpu_max) << endl;

  // imprimir(A, N, 'A');
  // imprimir(B, N, 'B');
  // imprimir(C, N, 'C');
  // imprimir(D, NBlocks, 'D');
  // imprimir(gpu_C, N, 'C');
  // imprimir(gpu_D, NBlocks, 'D');
  // imprimir(gpu_max, 1, 'M');

  cout << "................................." << endl;
  cout << "El valor máximo en C es:  " << to_string(mx) << endl;


  /* Free the memory */
  delete(A);        delete(B);        delete(C);        delete(D);
  delete(gpu_C);    delete(gpu_D);

  return 0;
}

	.file	"tmpxft_0034e408_00000000-6_transformacion.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3827:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE3827:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"................................."
.LC1:
	.string	"["
.LC2:
	.string	"]="
	.text
	.globl	_Z8imprimirPfic
	.type	_Z8imprimirPfic, @function
_Z8imprimirPfic:
.LFB3823:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	_ZSt4cout(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rdi, %r13
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%esi, %r12d
	leaq	.LC0(%rip), %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movsbl	%dl, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	pushq	%rcx
	.cfi_def_cfa_offset 64
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
.L3:
	movl	%ebx, %r15d
	cmpl	%ebx, %r12d
	jle	.L7
	movl	%ebp, %esi
	movq	%r14, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c@PLT
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%r15d, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	leaq	.LC2(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	cvtss2sd	0(%r13,%rbx,4), %xmm0
	incq	%rbx
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	jmp	.L3
.L7:
	popq	%rax
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3823:
	.size	_Z8imprimirPfic, .-_Z8imprimirPfic
	.globl	_Z35__device_stub__Z9calcularCPKfS0_PfiPKfS0_Pfi
	.type	_Z35__device_stub__Z9calcularCPKfS0_PfiPKfS0_Pfi, @function
_Z35__device_stub__Z9calcularCPKfS0_PfiPKfS0_Pfi:
.LFB3849:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	40(%rsp), %rdx
	movl	%ecx, 4(%rsp)
	leaq	48(%rsp), %rcx
	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	8(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	4(%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	.L8
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z9calcularCPKfS0_Pfi(%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
.L8:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3849:
	.size	_Z35__device_stub__Z9calcularCPKfS0_PfiPKfS0_Pfi, .-_Z35__device_stub__Z9calcularCPKfS0_PfiPKfS0_Pfi
	.globl	_Z9calcularCPKfS0_Pfi
	.type	_Z9calcularCPKfS0_Pfi, @function
_Z9calcularCPKfS0_Pfi:
.LFB3850:
	.cfi_startproc
	endbr64
	jmp	_Z35__device_stub__Z9calcularCPKfS0_PfiPKfS0_Pfi
	.cfi_endproc
.LFE3850:
	.size	_Z9calcularCPKfS0_Pfi, .-_Z9calcularCPKfS0_Pfi
	.globl	_Z43__device_stub__Z16calcularC_sharedPKfS0_PfiPKfS0_Pfi
	.type	_Z43__device_stub__Z16calcularC_sharedPKfS0_PfiPKfS0_Pfi, @function
_Z43__device_stub__Z16calcularC_sharedPKfS0_PfiPKfS0_Pfi:
.LFB3851:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	40(%rsp), %rdx
	movl	%ecx, 4(%rsp)
	leaq	48(%rsp), %rcx
	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	8(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	4(%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	.L13
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z16calcularC_sharedPKfS0_Pfi(%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
.L13:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3851:
	.size	_Z43__device_stub__Z16calcularC_sharedPKfS0_PfiPKfS0_Pfi, .-_Z43__device_stub__Z16calcularC_sharedPKfS0_PfiPKfS0_Pfi
	.globl	_Z16calcularC_sharedPKfS0_Pfi
	.type	_Z16calcularC_sharedPKfS0_Pfi, @function
_Z16calcularC_sharedPKfS0_Pfi:
.LFB3852:
	.cfi_startproc
	endbr64
	jmp	_Z43__device_stub__Z16calcularC_sharedPKfS0_PfiPKfS0_Pfi
	.cfi_endproc
.LFE3852:
	.size	_Z16calcularC_sharedPKfS0_Pfi, .-_Z16calcularC_sharedPKfS0_Pfi
	.globl	_Z32__device_stub__Z9calcularDPKfPfjPKfPfj
	.type	_Z32__device_stub__Z9calcularDPKfPfjPKfPfj, @function
_Z32__device_stub__Z9calcularDPKfPfjPKfPfj:
.LFB3853:
	.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	.L18
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z9calcularDPKfPfj(%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
.L18:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3853:
	.size	_Z32__device_stub__Z9calcularDPKfPfjPKfPfj, .-_Z32__device_stub__Z9calcularDPKfPfjPKfPfj
	.globl	_Z9calcularDPKfPfj
	.type	_Z9calcularDPKfPfj, @function
_Z9calcularDPKfPfj:
.LFB3854:
	.cfi_startproc
	endbr64
	jmp	_Z32__device_stub__Z9calcularDPKfPfjPKfPfj
	.cfi_endproc
.LFE3854:
	.size	_Z9calcularDPKfPfj, .-_Z9calcularDPKfPfj
	.globl	_Z35__device_stub__Z11calcularMaxPKfPfiPKfPfi
	.type	_Z35__device_stub__Z11calcularMaxPKfPfiPKfPfi, @function
_Z35__device_stub__Z11calcularMaxPKfPfiPKfPfi:
.LFB3855:
	.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	.L23
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z11calcularMaxPKfPfi(%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
.L23:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3855:
	.size	_Z35__device_stub__Z11calcularMaxPKfPfiPKfPfi, .-_Z35__device_stub__Z11calcularMaxPKfPfiPKfPfi
	.globl	_Z11calcularMaxPKfPfi
	.type	_Z11calcularMaxPKfPfi, @function
_Z11calcularMaxPKfPfi:
.LFB3856:
	.cfi_startproc
	endbr64
	jmp	_Z35__device_stub__Z11calcularMaxPKfPfiPKfPfi
	.cfi_endproc
.LFE3856:
	.size	_Z11calcularMaxPKfPfi, .-_Z11calcularMaxPKfPfi
	.section	.rodata.str1.1
.LC3:
	.string	"_Z11calcularMaxPKfPfi"
.LC4:
	.string	"_Z9calcularDPKfPfj"
.LC5:
	.string	"_Z16calcularC_sharedPKfS0_Pfi"
.LC6:
	.string	"_Z9calcularCPKfS0_Pfi"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB3858:
	.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	.LC3(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z11calcularMaxPKfPfi(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC4(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z9calcularDPKfPfj(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC5(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z16calcularC_sharedPKfS0_Pfi(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC6(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z9calcularCPKfS0_Pfi(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE3858:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.text._ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_P13__va_list_tagEmSB_z,"axG",@progbits,_ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_P13__va_list_tagEmSB_z,comdat
	.weak	_ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_P13__va_list_tagEmSB_z
	.type	_ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_P13__va_list_tagEmSB_z, @function
_ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_P13__va_list_tagEmSB_z:
.LFB4030:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsi, %r10
	movq	%rdx, %rsi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	movq	%rdi, %rbx
	movq	%rcx, %rdi
	subq	$232, %rsp
	movq	%r8, -176(%rbp)
	movq	%r9, -168(%rbp)
	testb	%al, %al
	je	.L31
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm1, -144(%rbp)
	movaps	%xmm2, -128(%rbp)
	movaps	%xmm3, -112(%rbp)
	movaps	%xmm4, -96(%rbp)
	movaps	%xmm5, -80(%rbp)
	movaps	%xmm6, -64(%rbp)
	movaps	%xmm7, -48(%rbp)
.L31:
	movq	%fs:40, %rax
	movq	%rax, -216(%rbp)
	xorl	%eax, %eax
	leaq	23(%rsi), %rdx
	movq	%rsp, %rcx
	movq	%rdx, %rax
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rcx
.L32:
	cmpq	%rcx, %rsp
	je	.L33
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L32
.L33:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L34
	orq	$0, -8(%rsp,%rax)
.L34:
	leaq	16(%rbp), %rax
	leaq	15(%rsp), %r12
	movq	%rdi, %rdx
	movl	$32, -240(%rbp)
	movq	%rax, -232(%rbp)
	andq	$-16, %r12
	leaq	-208(%rbp), %rax
	leaq	-240(%rbp), %rcx
	movl	$48, -236(%rbp)
	movq	%r12, %rdi
	movq	%rax, -224(%rbp)
	call	*%r10
	leaq	16(%rbx), %rdx
	cltq
	movq	%rdx, (%rbx)
	xorl	%edx, %edx
	movq	%rdx, 8(%rbx)
	leaq	(%r12,%rax), %r13
	movq	%rax, -248(%rbp)
	cmpq	$15, %rax
	jbe	.L35
	leaq	-248(%rbp), %rsi
	xorl	%edx, %edx
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm@PLT
	movq	%rax, (%rbx)
	movq	-248(%rbp), %rax
	movq	%rax, 16(%rbx)
.L35:
	movq	(%rbx), %rdi
	movq	%r13, %rdx
	movq	%r12, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcS5_S5_@PLT
	movq	-248(%rbp), %rax
	movq	(%rbx), %rdx
	movq	%rax, 8(%rbx)
	movb	$0, (%rdx,%rax)
	movq	-216(%rbp), %rax
	subq	%fs:40, %rax
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leaq	-24(%rbp), %rsp
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4030:
	.size	_ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_P13__va_list_tagEmSB_z, .-_ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_P13__va_list_tagEmSB_z
	.section	.rodata._ZNSt7__cxx119to_stringEf.str1.1,"aMS",@progbits,1
.LC7:
	.string	"%f"
	.section	.text._ZNSt7__cxx119to_stringEf,"axG",@progbits,_ZNSt7__cxx119to_stringEf,comdat
	.weak	_ZNSt7__cxx119to_stringEf
	.type	_ZNSt7__cxx119to_stringEf, @function
_ZNSt7__cxx119to_stringEf:
.LFB2832:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	$58, %edx
	movq	%rdi, %rbx
	cvtss2sd	%xmm0, %xmm0
	leaq	.LC7(%rip), %rcx
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movq	vsnprintf@GOTPCREL(%rip), %rsi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movb	$1, %al
	call	_ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_P13__va_list_tagEmSB_z
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L42
	call	__stack_chk_fail@PLT
.L42:
	addq	$16, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2832:
	.size	_ZNSt7__cxx119to_stringEf, .-_ZNSt7__cxx119to_stringEf
	.section	.rodata.str1.1
.LC9:
	.string	"fallo "
.LC10:
	.string	" : "
.LC11:
	.string	"OK"
	.text
	.globl	_Z19comprobarIntegridadB5cxx11PfS_i
	.type	_Z19comprobarIntegridadB5cxx11PfS_i, @function
_Z19comprobarIntegridadB5cxx11PfS_i:
.LFB3822:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA3822
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdx, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rsi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%ecx, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdi, %rbx
	subq	$168, %rsp
	.cfi_def_cfa_offset 224
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
.L45:
	cmpl	%ebp, %r12d
	jle	.L65
	movss	(%r14), %xmm0
	movq	%r14, %r13
	addq	$4, %r14
	call	floorf@PLT
	movss	(%r15,%rbp,4), %xmm3
	incq	%rbp
	movss	%xmm0, 12(%rsp)
	movaps	%xmm3, %xmm0
	movss	%xmm3, 8(%rsp)
	call	floorf@PLT
	movss	12(%rsp), %xmm2
	subss	%xmm0, %xmm2
	cvtss2sd	%xmm2, %xmm0
	comisd	.LC8(%rip), %xmm0
	jbe	.L45
	movss	8(%rsp), %xmm0
	leaq	120(%rsp), %rbp
	leaq	24(%rsp), %r12
	movq	%rbp, %rdi
.LEHB0:
	call	_ZNSt7__cxx119to_stringEf
.LEHE0:
	movss	0(%r13), %xmm0
	movq	%r12, %rdi
.LEHB1:
	call	_ZNSt7__cxx119to_stringEf
.LEHE1:
	leaq	.LC9(%rip), %rdx
	xorl	%esi, %esi
	movq	%r12, %rdi
.LEHB2:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6insertEmPKc@PLT
.LEHE2:
	leaq	56(%rsp), %r13
	movq	%rax, %rsi
	movq	%r13, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EOS4_@PLT
	leaq	.LC10(%rip), %rsi
	movq	%r13, %rdi
.LEHB3:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc@PLT
.LEHE3:
	leaq	88(%rsp), %r14
	movq	%rax, %rsi
	movq	%r14, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EOS4_@PLT
	movq	%r14, %rdi
	movq	128(%rsp), %r15
	addq	96(%rsp), %r15
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8capacityEv@PLT
	cmpq	%r15, %rax
	jnb	.L47
	movq	%rbp, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8capacityEv@PLT
	cmpq	%r15, %rax
	jb	.L47
	movq	%r14, %rdx
	xorl	%esi, %esi
	movq	%rbp, %rdi
.LEHB4:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6insertEmRKS4_@PLT
	jmp	.L63
.L47:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_@PLT
.LEHE4:
.L63:
	movq	%rax, %rsi
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EOS4_@PLT
	movq	%r14, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%r13, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L44
.L65:
	leaq	16(%rbx), %rdi
	leaq	2+.LC11(%rip), %rdx
	movq	%rdi, (%rbx)
	leaq	-2(%rdx), %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcPKcS7_@PLT
	movq	(%rbx), %rax
	movq	$2, 8(%rbx)
	movb	$0, 2(%rax)
	jmp	.L44
.L60:
	endbr64
	movq	%rax, %rbx
.L51:
	movq	%r14, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L52
.L59:
	endbr64
	movq	%rax, %rbx
.L52:
	movq	%r13, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L53
.L58:
	endbr64
	movq	%rax, %rbx
.L53:
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L54
.L57:
	endbr64
	movq	%rax, %rbx
.L54:
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L64
	movq	%rbx, %rdi
.LEHB5:
	call	_Unwind_Resume@PLT
.LEHE5:
.L44:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L56
.L64:
	call	__stack_chk_fail@PLT
.L56:
	addq	$168, %rsp
	.cfi_def_cfa_offset 56
	movq	%rbx, %rax
	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
.LFE3822:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA3822:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE3822-.LLSDACSB3822
.LLSDACSB3822:
	.uleb128 .LEHB0-.LFB3822
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB3822
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L57-.LFB3822
	.uleb128 0
	.uleb128 .LEHB2-.LFB3822
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L58-.LFB3822
	.uleb128 0
	.uleb128 .LEHB3-.LFB3822
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L59-.LFB3822
	.uleb128 0
	.uleb128 .LEHB4-.LFB3822
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L60-.LFB3822
	.uleb128 0
	.uleb128 .LEHB5-.LFB3822
	.uleb128 .LEHE5-.LEHB5
	.uleb128 0
	.uleb128 0
.LLSDACSE3822:
	.text
	.size	_Z19comprobarIntegridadB5cxx11PfS_i, .-_Z19comprobarIntegridadB5cxx11PfS_i
	.section	.rodata.str1.1
.LC13:
	.string	""
.LC14:
	.string	"Uso: transformacion Num_bloques Tam_bloque  "
.LC15:
	.string	"N="
.LC16:
	.string	"= "
.LC17:
	.string	"*"
.LC23:
	.string	"[GPU] tiempo -> "
.LC24:
	.string	"[CPU] tiempo -> "
.LC25:
	.string	"Comprobando integridad de c\303\241lculos...\n"
.LC26:
	.string	"\t[CHECK] Comprobando C...  "
.LC27:
	.string	"\t[CHECK] Comprobando D...  "
.LC28:
	.string	"\t[CHECK] Comprobando Max...  "
.LC29:
	.string	"OK\n"
.LC30:
	.string	"El valor m\303\241ximo en C es:  "
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB3824:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA3824
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rsi, %rbp
	leaq	.LC13(%rip), %rsi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%edi, %ebx
	subq	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	120(%rsp), %r13
	leaq	184(%rsp), %r12
	movq	%r13, %rdi
.LEHB6:
	call	_ZNSt6localeC1EPKc@PLT
.LEHE6:
	movq	%r13, %rdx
	leaq	8+_ZSt4cout(%rip), %rsi
	movq	%r12, %rdi
.LEHB7:
	call	_ZNSt9basic_iosIcSt11char_traitsIcEE5imbueERKSt6locale@PLT
	movq	%r12, %rdi
	leaq	_ZSt4cout(%rip), %r13
	call	_ZNSt6localeD1Ev@PLT
	cmpl	$3, %ebx
	je	.L67
	leaq	.LC14(%rip), %rsi
	movq	%r13, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	jmp	.L68
.L67:
	movq	8(%rbp), %rdi
	call	atoi@PLT
	movq	16(%rbp), %rdi
	movl	%eax, %ebx
	call	atoi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %r12d
	movl	%ebx, %eax
	imull	%r12d, %eax
	movl	%eax, 16(%rsp)
	call	_ZNSolsEPFRSoS_E@PLT
	movq	%rax, %rdi
	leaq	.LC15(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	16(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC16(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%r12d, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC17(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%ebx, %esi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movabsq	$2305843009213693950, %rax
	movslq	16(%rsp), %r14
	cmpq	%r14, %rax
	jb	.L69
	salq	$2, %r14
	movq	%r14, %rdi
	call	_Znam@PLT
	movq	%r14, %rdi
	movq	%rax, 24(%rsp)
	call	_Znam@PLT
	jmp	.L115
.L69:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L110
	call	__cxa_throw_bad_array_new_length@PLT
.L115:
	movq	%r14, %rdi
	movq	%rax, 32(%rsp)
	call	_Znam@PLT
	movq	%rax, %rbp
	movslq	%ebx, %r13
	movabsq	$2305843009213693950, %rax
	cmpq	%r13, %rax
	jb	.L72
	salq	$2, %r13
	movq	%r13, %rdi
	call	_Znam@PLT
	movq	%rax, 8(%rsp)
	movsd	.LC18(%rip), %xmm2
	xorl	%ecx, %ecx
	movl	$100, %esi
	movsd	.LC19(%rip), %xmm3
	movsd	.LC20(%rip), %xmm4
	movl	$10, %edi
	movsd	.LC21(%rip), %xmm5
	jmp	.L73
.L72:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L110
	call	__cxa_throw_bad_array_new_length@PLT
.L73:
	movl	%ecx, %r8d
	cmpl	%ecx, 16(%rsp)
	jle	.L116
	movl	%r8d, %eax
	movaps	%xmm3, %xmm0
	movl	$0x00000000, 0(%rbp,%rcx,4)
	cltd
	idivl	%esi
	movq	24(%rsp), %rax
	cvtsi2sdl	%edx, %xmm1
	mulsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, (%rax,%rcx,4)
	movl	%r8d, %eax
	cltd
	idivl	%edi
	movq	32(%rsp), %rax
	cvtsi2sdl	%edx, %xmm0
	mulsd	%xmm4, %xmm0
	addsd	%xmm5, %xmm0
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, (%rax,%rcx,4)
	incq	%rcx
	jmp	.L73
.L116:
	xorl	%edx, %edx
	leaq	128(%rsp), %rdi
	movq	%r14, %rsi
	movq	%rdx, 128(%rsp)
	movq	%rdx, 136(%rsp)
	movq	%rdx, 144(%rsp)
	movq	%rdx, 152(%rsp)
	movq	%rdx, 160(%rsp)
	call	cudaMalloc@PLT
	leaq	136(%rsp), %rdi
	movq	%r14, %rsi
	call	cudaMalloc@PLT
	leaq	144(%rsp), %rdi
	movq	%r14, %rsi
	call	cudaMalloc@PLT
	leaq	152(%rsp), %rdi
	movq	%r13, %rsi
	call	cudaMalloc@PLT
	leaq	160(%rsp), %rdi
	movl	$4, %esi
	call	cudaMalloc@PLT
	movq	24(%rsp), %rsi
	movq	128(%rsp), %rdi
	movl	$1, %ecx
	movq	%r14, %rdx
	call	cudaMemcpy@PLT
	movq	32(%rsp), %rsi
	movq	136(%rsp), %rdi
	movl	$1, %ecx
	movq	%r14, %rdx
	call	cudaMemcpy@PLT
	movq	144(%rsp), %rdi
	movl	$1, %ecx
	movq	%r14, %rdx
	movq	%rbp, %rsi
	call	cudaMemcpy@PLT
	movq	%r14, %rdi
	call	_Znam@PLT
	movq	%r13, %rdi
	movq	%rax, 40(%rsp)
	call	_Znam@PLT
	movl	$4, %edi
	movq	%rax, 48(%rsp)
	call	_Znwm@PLT
	movq	%rax, 56(%rsp)
	call	clock@PLT
	movl	%r12d, 184(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	cvtsi2sdq	%rax, %xmm6
	movl	%ebx, 172(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 188(%rsp)
	movl	192(%rsp), %ecx
	movq	%rax, 176(%rsp)
	movq	184(%rsp), %rdx
	movq	172(%rsp), %rdi
	movl	180(%rsp), %esi
	movsd	%xmm6, 72(%rsp)
	call	__cudaPushCallConfiguration@PLT
	movq	144(%rsp), %rdx
	testl	%eax, %eax
	jne	.L76
	movl	16(%rsp), %ecx
	movq	136(%rsp), %rsi
	movq	128(%rsp), %rdi
	call	_Z35__device_stub__Z9calcularCPKfS0_PfiPKfS0_Pfi
.L76:
	movq	144(%rsp), %rsi
	movq	40(%rsp), %rdi
	movl	$2, %ecx
	movq	%r14, %rdx
	call	cudaMemcpy@PLT
	call	cudaDeviceSynchronize@PLT
	movslq	%r12d, %rax
	movl	%r12d, %r15d
	movl	%ebx, 172(%rsp)
	xorl	%r9d, %r9d
	leaq	0(,%rax,4), %r14
	movq	%rax, 80(%rsp)
	sarl	%r15d
	movabsq	$4294967297, %rax
	movq	%rax, 188(%rsp)
	movl	192(%rsp), %ecx
	movq	%r14, %r8
	movq	%rax, 176(%rsp)
	movq	172(%rsp), %rdi
	movl	%r15d, 184(%rsp)
	movl	180(%rsp), %esi
	movq	184(%rsp), %rdx
	call	__cudaPushCallConfiguration@PLT
	movq	152(%rsp), %rsi
	testl	%eax, %eax
	jne	.L77
	movl	16(%rsp), %edx
	movq	144(%rsp), %rdi
	call	_Z32__device_stub__Z9calcularDPKfPfjPKfPfj
.L77:
	movq	152(%rsp), %rsi
	movq	48(%rsp), %rdi
	movl	$2, %ecx
	movq	%r13, %rdx
	call	cudaMemcpy@PLT
	call	cudaDeviceSynchronize@PLT
	movabsq	$4294967297, %rax
	movl	%ebx, 172(%rsp)
	xorl	%r9d, %r9d
	movq	%r14, %r8
	movq	%rax, 188(%rsp)
	movl	192(%rsp), %ecx
	movq	%rax, 176(%rsp)
	movq	172(%rsp), %rdi
	movl	%r15d, 184(%rsp)
	movl	180(%rsp), %esi
	movq	184(%rsp), %rdx
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L78
	movl	16(%rsp), %edx
	movq	152(%rsp), %rsi
	movq	144(%rsp), %rdi
	call	_Z35__device_stub__Z11calcularMaxPKfPfiPKfPfi
.L78:
	call	cudaDeviceSynchronize@PLT
	movl	%ebx, %eax
	xorl	%r9d, %r9d
	movq	%r13, %r8
	movl	$1, %esi
	movabsq	$4294967297, %rdi
	sarl	%eax
	movl	$1, 180(%rsp)
	movq	%rdi, 188(%rsp)
	movl	192(%rsp), %ecx
	movl	%eax, 184(%rsp)
	movq	184(%rsp), %rdx
	movq	%rdi, 172(%rsp)
	call	__cudaPushCallConfiguration@PLT
	movq	160(%rsp), %rsi
	testl	%eax, %eax
	jne	.L79
	movq	152(%rsp), %rdi
	movl	%ebx, %edx
	call	_Z35__device_stub__Z11calcularMaxPKfPfiPKfPfi
.L79:
	movq	56(%rsp), %rdi
	movl	$2, %ecx
	movl	$4, %edx
	movq	160(%rsp), %rsi
	call	cudaMemcpy@PLT
	call	cudaDeviceSynchronize@PLT
	call	clock@PLT
	leaq	.LC23(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	cvtsi2sdq	%rax, %xmm0
	subsd	72(%rsp), %xmm0
	divsd	.LC22(%rip), %xmm0
	movq	%xmm0, %r13
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	%r13, %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	128(%rsp), %rdi
	call	cudaFree@PLT
	movq	136(%rsp), %rdi
	call	cudaFree@PLT
	movq	144(%rsp), %rdi
	call	cudaFree@PLT
	movq	152(%rsp), %rdi
	call	cudaFree@PLT
	movq	160(%rsp), %rdi
	call	cudaFree@PLT
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	movq	%rax, 64(%rsp)
.L80:
	cmpl	%r15d, %ebx
	jle	.L117
	movq	8(%rsp), %rax
	movq	64(%rsp), %r14
	addl	%r12d, %r13d
	movl	$0x00000000, (%rax,%r15,4)
.L81:
	movl	%r14d, 88(%rsp)
	movl	%r14d, %esi
	cmpl	%r13d, %r14d
	jge	.L118
	movq	64(%rsp), %rcx
	xorps	%xmm1, %xmm1
.L87:
	cmpl	%ecx, %r13d
	jle	.L119
	movq	24(%rsp), %rax
	cvtsi2ssl	%esi, %xmm2
	movl	%esi, 104(%rsp)
	movq	%rcx, 96(%rsp)
	mulss	(%rax,%rcx,4), %xmm2
	movss	%xmm1, 108(%rsp)
	movaps	%xmm2, %xmm0
	movss	%xmm2, 92(%rsp)
	call	ceilf@PLT
	movq	32(%rsp), %rax
	movq	96(%rsp), %rcx
	movaps	%xmm0, %xmm3
	movss	92(%rsp), %xmm2
	movl	104(%rsp), %esi
	cvttss2sil	%xmm3, %edi
	movss	(%rax,%rcx,4), %xmm0
	movss	108(%rsp), %xmm1
	andl	$1, %edi
	jne	.L82
	addss	%xmm0, %xmm2
	jmp	.L112
.L82:
	subss	%xmm0, %xmm2
.L112:
	addss	%xmm2, %xmm1
	incq	%rcx
	jmp	.L87
.L119:
	movq	8(%rsp), %rax
	cmpl	$1, 88(%rsp)
	movss	%xmm1, 0(%rbp,%r14,4)
	movss	(%rax,%r15,4), %xmm0
	addss	%xmm1, %xmm0
	movss	%xmm0, (%rax,%r15,4)
	jne	.L85
	movss	0(%rbp), %xmm4
	movss	%xmm4, 20(%rsp)
	jmp	.L86
.L85:
	movss	20(%rsp), %xmm0
	call	fmaxf@PLT
	movss	%xmm0, 20(%rsp)
.L86:
	incq	%r14
	jmp	.L81
.L118:
	movq	80(%rsp), %rdx
	incq	%r15
	addq	%rdx, 64(%rsp)
	jmp	.L80
.L117:
	call	clock@PLT
	leaq	_ZSt4cout(%rip), %r13
	leaq	.LC24(%rip), %rsi
	movq	%r13, %rdi
	cvtsi2sdq	%rax, %xmm0
	subsd	72(%rsp), %xmm0
	divsd	.LC22(%rip), %xmm0
	movq	%xmm0, %r12
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	%r12, %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC0(%rip), %rsi
	movq	%r13, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC25(%rip), %rsi
	movq	%r13, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC26(%rip), %rsi
	movq	%r13, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	16(%rsp), %ecx
	movq	40(%rsp), %rdx
	movq	%rbp, %rsi
	movq	%rax, %r14
	leaq	200(%rsp), %r12
	movq	%r12, %rdi
	call	_Z19comprobarIntegridadB5cxx11PfS_i
.LEHE7:
	movq	%r12, %rsi
	movq	%r14, %rdi
.LEHB8:
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
.LEHE8:
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	.LC27(%rip), %rsi
	movq	%r13, %rdi
.LEHB9:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	48(%rsp), %rdx
	movq	8(%rsp), %rsi
	movl	%ebx, %ecx
	movq	%r12, %rdi
	movq	%rax, %r14
	call	_Z19comprobarIntegridadB5cxx11PfS_i
.LEHE9:
	movq	%r12, %rsi
	movq	%r14, %rdi
.LEHB10:
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
.LEHE10:
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	.LC28(%rip), %rsi
	movq	%r13, %rdi
.LEHB11:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	56(%rsp), %rax
	movss	20(%rsp), %xmm6
	ucomiss	(%rax), %xmm6
	jp	.L89
	jne	.L89
	leaq	.LC29(%rip), %rsi
	movq	%r13, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	jmp	.L91
.L89:
	leaq	.LC9(%rip), %rsi
	movq	%r13, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rbx
	movq	56(%rsp), %rax
	movq	%r12, %rdi
	movss	(%rax), %xmm0
	call	_ZNSt7__cxx119to_stringEf
.LEHE11:
	movq	%r12, %rsi
	movq	%rbx, %rdi
.LEHB12:
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
.LEHE12:
	leaq	200(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
.L91:
	leaq	.LC0(%rip), %rsi
	movq	%r13, %rdi
.LEHB13:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC30(%rip), %rsi
	movq	%r13, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movss	20(%rsp), %xmm0
	movq	%r12, %rdi
	movq	%rax, %rbx
	call	_ZNSt7__cxx119to_stringEf
.LEHE13:
	movq	%r12, %rsi
	movq	%rbx, %rdi
.LEHB14:
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
.LEHE14:
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	24(%rsp), %rdi
	movl	$4, %esi
	call	_ZdlPvm@PLT
	movq	32(%rsp), %rdi
	movl	$4, %esi
	call	_ZdlPvm@PLT
	movl	$4, %esi
	movq	%rbp, %rdi
	call	_ZdlPvm@PLT
	movq	8(%rsp), %rdi
	movl	$4, %esi
	call	_ZdlPvm@PLT
	movq	40(%rsp), %rdi
	movl	$4, %esi
	call	_ZdlPvm@PLT
	movq	48(%rsp), %rdi
	movl	$4, %esi
	call	_ZdlPvm@PLT
.L68:
	leaq	120(%rsp), %rdi
	call	_ZNSt6localeD1Ev@PLT
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	je	.L98
	jmp	.L110
.L103:
	endbr64
	jmp	.L114
.L104:
	endbr64
	jmp	.L114
.L106:
	endbr64
	jmp	.L114
.L105:
	endbr64
.L114:
	movq	%rax, %rbx
.L96:
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L93
.L102:
	endbr64
	movq	%rax, %rbx
.L93:
	leaq	120(%rsp), %rdi
	call	_ZNSt6localeD1Ev@PLT
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L110
	movq	%rbx, %rdi
.LEHB15:
	call	_Unwind_Resume@PLT
.LEHE15:
.L110:
	call	__stack_chk_fail@PLT
.L98:
	addq	$248, %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
.LFE3824:
	.section	.gcc_except_table
.LLSDA3824:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE3824-.LLSDACSB3824
.LLSDACSB3824:
	.uleb128 .LEHB6-.LFB3824
	.uleb128 .LEHE6-.LEHB6
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB7-.LFB3824
	.uleb128 .LEHE7-.LEHB7
	.uleb128 .L102-.LFB3824
	.uleb128 0
	.uleb128 .LEHB8-.LFB3824
	.uleb128 .LEHE8-.LEHB8
	.uleb128 .L103-.LFB3824
	.uleb128 0
	.uleb128 .LEHB9-.LFB3824
	.uleb128 .LEHE9-.LEHB9
	.uleb128 .L102-.LFB3824
	.uleb128 0
	.uleb128 .LEHB10-.LFB3824
	.uleb128 .LEHE10-.LEHB10
	.uleb128 .L104-.LFB3824
	.uleb128 0
	.uleb128 .LEHB11-.LFB3824
	.uleb128 .LEHE11-.LEHB11
	.uleb128 .L102-.LFB3824
	.uleb128 0
	.uleb128 .LEHB12-.LFB3824
	.uleb128 .LEHE12-.LEHB12
	.uleb128 .L106-.LFB3824
	.uleb128 0
	.uleb128 .LEHB13-.LFB3824
	.uleb128 .LEHE13-.LEHB13
	.uleb128 .L102-.LFB3824
	.uleb128 0
	.uleb128 .LEHB14-.LFB3824
	.uleb128 .LEHE14-.LEHB14
	.uleb128 .L105-.LFB3824
	.uleb128 0
	.uleb128 .LEHB15-.LFB3824
	.uleb128 .LEHE15-.LEHB15
	.uleb128 0
	.uleb128 0
.LLSDACSE3824:
	.section	.text.startup
	.size	main, .-main
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC8:
	.long	-858993459
	.long	1072483532
	.align 8
.LC18:
	.long	-755914244
	.long	1062232653
	.align 8
.LC19:
	.long	0
	.long	1072693248
	.align 8
.LC20:
	.long	-1717986918
	.long	1069128089
	.align 8
.LC21:
	.long	0
	.long	1071644672
	.align 8
.LC22:
	.long	0
	.long	1093567616
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:


#include <hip/hip_runtime.h>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <math.h>
#include <string>
#include <locale>

using namespace std;

/*****************************************************************************/

__global__ void calcularC (const float * A, const float * B, float * C, const int size) {
  uint block_start = blockIdx.x * blockDim.x;
  uint block_end = block_start + blockDim.x;
  uint i = block_start + threadIdx.x;

  if (i < size) {
    C[i]=0;

    for(int j=block_start; j<block_end; j++) {
      float a = A[j]*i;
      if((int) ceil(a) % 2 == 0)
        C[i] += a + B[j];
      else
        C[i] += a - B[j];
    }
  }
}

/*****************************************************************************/

__global__ void calcularC_shared (const float * A, const float * B, float * C, const int size) {
  extern __shared__ float sdata[];
  uint block_start = blockIdx.x * blockDim.x;
  uint i = block_start + threadIdx.x;
  uint tid = threadIdx.x;

  if (i < size) {
    C[i]=0;
    sdata[tid] = A[i];
    sdata[tid+blockDim.x] = B[i];
    __syncthreads();

    for(int j=0; j<blockDim.x; j++) {
      float a = sdata[j]*i;
      if((int) ceil(a) % 2 == 0)
        C[i] += a + sdata[j+blockDim.x];
      else
        C[i] += a - sdata[j+blockDim.x];
      // __syncthreads();
    }
  }
}

/*****************************************************************************/


// https://github.com/mark-poscablo/gpu-sum-reduction/blob/master/sum_reduction/reduce.cu
__global__ void calcularD(const float *C, float *D, const uint size) {
	extern __shared__ float sdata[];

	uint tid = threadIdx.x;
	uint i = blockIdx.x * (blockDim.x*2) + threadIdx.x;

	// Cada hebra carga un elemento desde memoria global a memoria compartida
	sdata[tid] = 0;
	if (i < size)
		sdata[tid] = C[i] + C[i+blockDim.x];

	__syncthreads();

	// Reducir en memoria compartida
	for(uint s = blockDim.x>>1; s > 0; s >>= 1) {
		if(tid < s)
			sdata[tid] += sdata[tid+s];

		// Esperar al resto de hebras para comenzar la nueva etapa
		__syncthreads();
	}

	// Escribir resultado de este bloque en memoria global
	if (tid == 0)
		D[blockIdx.x] = sdata[0];
}

//**************************************************************************//

/*****************************************************************************/

__global__ void calcularMax (const float *g_idata, float *g_odata, const int size) {
  extern __shared__ float sdata[];

	uint tid = threadIdx.x;
	uint i = blockIdx.x * blockDim.x*2 + threadIdx.x;

	// Cada hebra carga un elemento desde memoria global a memoria compartida
	if (i < size)
		sdata[tid] = (g_idata[i] > g_idata[i+blockDim.x]) ? g_idata[i] : g_idata[i+blockDim.x];

	__syncthreads();

	// Reducir en memoria compartida
	// s = blockDim.x >> 1
	// s >>=1
	// Ambas dividen el tamaño de bloque por 2.
	for(uint s = blockDim.x>>1; s > 0; s >>= 1) {
		if(tid < s)
			if(sdata[tid] < sdata[tid+s])
				sdata[tid] = sdata[tid+s];

		// Esperar al resto de hebras para comenzar la nueva etapa
		__syncthreads();
	}

	// Escribir resultado de este bloque en memoria global
	if (tid == 0)
		g_odata[blockIdx.x] = sdata[0];
}

/*****************************************************************************/

string comprobarIntegridad(float *vec1, float *vec2, int len) {
  for (int i=0; i<len; i++)
    if ((floor(vec1[i])-floor(vec2[i]))>0.9)
      return "fallo " + to_string(vec1[i]) + " : " + to_string(vec2[i]);

  return "OK";
}

/*****************************************************************************/


void imprimir(float *v, int len, char letra) {
  cout << "................................." << endl;
  for (int i=0; i<len;i++)
    cout << letra << "[" << i << "]=" << v[i] << endl;
}

/*****************************************************************************/

int main(int argc, char *argv[]) {
  int Bsize, NBlocks;

  locale mylocale("");
	cout.imbue(mylocale);

  if (argc != 3) {
    cout << "Uso: transformacion Num_bloques Tam_bloque  " << endl;
    return(0);
  }
  else {
    NBlocks = atoi(argv[1]);
    Bsize = atoi(argv[2]);
  }

  const int N = Bsize*NBlocks;
  cout << endl << "N=" << N << "= " << Bsize << "*" << NBlocks << endl << endl;

  //* pointers to host memory */
  float *A, *B, *C, *D;

  //* Allocate arrays a, b and c on host*/
  A = new float[N];
  B = new float[N];
  C = new float[N];
  D = new float[NBlocks];
  float mx; // maximum of C

  /* Initialize arrays */
  for (int i=0; i<N; i++) {
    A[i] = (float) (1  -(i%100)*0.001);
    B[i] = (float) (0.5+(i%10) *0.1  );
    C[i] = 0;
  }

  /**************************************************************************/
  /*	GPU PHASE
  /*
  /**************************************************************************/

  // Pointers to device memory
  float *d_A = NULL, *d_B = NULL, *d_C = NULL, *d_D = NULL, *d_max = NULL;
  // Allocate device memory
  hipMalloc ((void **) &d_A, sizeof(float)*N);
  hipMalloc ((void **) &d_B, sizeof(float)*N);
  hipMalloc ((void **) &d_C, sizeof(float)*N);
  hipMalloc ((void **) &d_D, sizeof(float)*NBlocks);
  hipMalloc ((void **) &d_max, sizeof(float));
  // Copy data from host to device
  hipMemcpy(d_A, A, sizeof(float)*N, hipMemcpyHostToDevice);
  hipMemcpy(d_B, B, sizeof(float)*N, hipMemcpyHostToDevice);
  hipMemcpy(d_C, C, sizeof(float)*N, hipMemcpyHostToDevice);
  // Local device storage
  float *gpu_C = new float[N];
  float *gpu_D = new float[NBlocks];
  float *gpu_max = new float;

  // Time measurement
  double t1=clock();

  /**
  * Calcular C
  */
  // Kernel call with NBlocks of Bsize threads each.
  calcularC <<<NBlocks, Bsize>>> (d_A, d_B, d_C, N);
  // calcularC_shared <<<NBlocks, Bsize, 2*Bsize*sizeof(float)>>> (d_A, d_B, d_C, N);
  // Copy data from device to host
  hipMemcpy(gpu_C, d_C, N*sizeof(float), hipMemcpyDeviceToHost);
  hipDeviceSynchronize();

  /**
  * Calcular D
  */
  // Kernel call
  calcularD <<<NBlocks, ceil(Bsize>>1), Bsize*sizeof(float)>>> (d_C, d_D, N);
  hipMemcpy(gpu_D, d_D, NBlocks*sizeof(float), hipMemcpyDeviceToHost);
  hipDeviceSynchronize();

  /**
  * Calcular Max
  */
  // Calcular máximos locales a cada bloque
  calcularMax <<<NBlocks, ceil(Bsize>>1), Bsize*sizeof(float)>>> (d_C, d_D, N);
  // cudaMemcpy(gpu_D, d_D, NBlocks*sizeof(float), cudaMemcpyDeviceToHost);
  hipDeviceSynchronize();

  // Calcular máximo global
  calcularMax<<<1, ceil((int)NBlocks>>1), NBlocks*sizeof(float)>>> (d_D, d_max, NBlocks);
  hipMemcpy(gpu_max, d_max, sizeof(float), hipMemcpyDeviceToHost);
  hipDeviceSynchronize();

  double t2=clock();
  t2=(t2-t1)/CLOCKS_PER_SEC;

  cout << "[GPU] tiempo -> " << t2 << endl << endl;

  // Free device memory
  hipFree(d_A);    hipFree(d_B);    hipFree(d_C);    hipFree(d_D);    hipFree(d_max);

  /**************************************************************************/
  /*	CPU PHASE
  /*
  /**************************************************************************/

  // Compute C[i], d[K] and mx
  for (int k=0; k<NBlocks; k++) {
    int istart=k*Bsize;
    int iend = istart+Bsize;
    D[k]=0.0;
    for (int i=istart; i<iend; i++) {
      C[i]=0.0;
      for (int j=istart; j<iend; j++) {
        float a = A[j]*i;
        if ((int)ceil(a) % 2 ==0)
          C[i] += a + B[j];
        else
          C[i] += a - B[j];
      }
      D[k] += C[i];
      mx = (i==1) ? C[0] : max(C[i],mx);
     }
  }

  t2=clock();
  t2=(t2-t1)/CLOCKS_PER_SEC;

  cout << "[CPU] tiempo -> " << t2 << endl << endl;

  /**************************************************************************/
  /*	CHECK PHASE
  /*
  /**************************************************************************/
  cout << "................................." << endl;
  cout << "Comprobando integridad de cálculos...\n";
  cout << "\t[CHECK] Comprobando C...  " << comprobarIntegridad(C, gpu_C, N) << endl;
  cout << "\t[CHECK] Comprobando D...  " << comprobarIntegridad(D, gpu_D, NBlocks) << endl;
  cout << "\t[CHECK] Comprobando Max...  ";
  (mx==*gpu_max) ? cout << "OK\n" : cout << "fallo " << to_string(*gpu_max) << endl;

  // imprimir(A, N, 'A');
  // imprimir(B, N, 'B');
  // imprimir(C, N, 'C');
  // imprimir(D, NBlocks, 'D');
  // imprimir(gpu_C, N, 'C');
  // imprimir(gpu_D, NBlocks, 'D');
  // imprimir(gpu_max, 1, 'M');

  cout << "................................." << endl;
  cout << "El valor máximo en C es:  " << to_string(mx) << endl;


  /* Free the memory */
  delete(A);        delete(B);        delete(C);        delete(D);
  delete(gpu_C);    delete(gpu_D);

  return 0;
}

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

                                        # End of file scope inline assembly
	.globl	_Z24__device_stub__calcularCPKfS0_Pfi # -- Begin function _Z24__device_stub__calcularCPKfS0_Pfi
	.type	_Z24__device_stub__calcularCPKfS0_Pfi,@function
_Z24__device_stub__calcularCPKfS0_Pfi:  # @_Z24__device_stub__calcularCPKfS0_Pfi
	.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), %rdi
	movq	%rsi, (%rdi)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	4(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z9calcularCPKfS0_Pfi, %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_end0:
	.size	_Z24__device_stub__calcularCPKfS0_Pfi, .Lfunc_end0-_Z24__device_stub__calcularCPKfS0_Pfi
	.cfi_endproc
                                        # -- End function
	.globl	_Z31__device_stub__calcularC_sharedPKfS0_Pfi # -- Begin function _Z31__device_stub__calcularC_sharedPKfS0_Pfi
	.type	_Z31__device_stub__calcularC_sharedPKfS0_Pfi,@function
_Z31__device_stub__calcularC_sharedPKfS0_Pfi: # @_Z31__device_stub__calcularC_sharedPKfS0_Pfi
	.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), %rdi
	movq	%rsi, (%rdi)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	4(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z16calcularC_sharedPKfS0_Pfi, %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_end1:
	.size	_Z31__device_stub__calcularC_sharedPKfS0_Pfi, .Lfunc_end1-_Z31__device_stub__calcularC_sharedPKfS0_Pfi
	.cfi_endproc
                                        # -- End function
	.globl	_Z24__device_stub__calcularDPKfPfj # -- Begin function _Z24__device_stub__calcularDPKfPfj
	.type	_Z24__device_stub__calcularDPKfPfj,@function
_Z24__device_stub__calcularDPKfPfj:     # @_Z24__device_stub__calcularDPKfPfj
	.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	$_Z9calcularDPKfPfj, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_Z24__device_stub__calcularDPKfPfj, .Lfunc_end2-_Z24__device_stub__calcularDPKfPfj
	.cfi_endproc
                                        # -- End function
	.globl	_Z26__device_stub__calcularMaxPKfPfi # -- Begin function _Z26__device_stub__calcularMaxPKfPfi
	.type	_Z26__device_stub__calcularMaxPKfPfi,@function
_Z26__device_stub__calcularMaxPKfPfi:   # @_Z26__device_stub__calcularMaxPKfPfi
	.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	$_Z11calcularMaxPKfPfi, %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	_Z26__device_stub__calcularMaxPKfPfi, .Lfunc_end3-_Z26__device_stub__calcularMaxPKfPfi
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z19comprobarIntegridadB5cxx11PfS_i
.LCPI4_0:
	.quad	0x3feccccccccccccd              # double 0.90000000000000002
	.text
	.globl	_Z19comprobarIntegridadB5cxx11PfS_i
	.type	_Z19comprobarIntegridadB5cxx11PfS_i,@function
_Z19comprobarIntegridadB5cxx11PfS_i:    # @_Z19comprobarIntegridadB5cxx11PfS_i
.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	$136, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdi, %rbx
	testl	%ecx, %ecx
	jle	.LBB4_45
# %bb.1:                                # %.lr.ph.preheader
	movq	%rdx, %r12
	movq	%rsi, %r14
	movl	%ecx, %r15d
	xorl	%ebp, %ebp
.LBB4_3:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movss	(%r14,%rbp,4), %xmm0            # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rsp)                   # 4-byte Spill
	callq	floorf@PLT
	movss	%xmm0, 4(%rsp)                  # 4-byte Spill
	movss	(%r12,%rbp,4), %xmm0            # xmm0 = mem[0],zero,zero,zero
	callq	floorf@PLT
	movss	4(%rsp), %xmm1                  # 4-byte Reload
                                        # xmm1 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
	cvtss2sd	%xmm1, %xmm0
	ucomisd	.LCPI4_0(%rip), %xmm0
	ja	.LBB4_4
# %bb.2:                                #   in Loop: Header=BB4_3 Depth=1
	incq	%rbp
	cmpq	%rbp, %r15
	jne	.LBB4_3
.LBB4_45:                               # %._crit_edge
	leaq	16(%rbx), %rax
	movq	%rax, (%rbx)
	movl	$.L.str.2, %esi
	movl	$.L.str.2+2, %edx
	movq	%rbx, %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	jmp	.LBB4_32
.LBB4_4:
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rsp), %xmm0                   # 4-byte Folded Reload
	leaq	104(%rsp), %r14
	movl	$vsnprintf, %esi
	movl	$58, %edx
	movl	$.L.str.19, %ecx
	movq	%r14, %rdi
	movb	$1, %al
	callq	_ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_P13__va_list_tagEmSB_z
.Ltmp0:
	movl	$.L.str, %ecx
	movl	$6, %r8d
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm
.Ltmp1:
# %bb.5:                                # %.noexc
	movq	%rax, %r15
	leaq	88(%rsp), %rdi
	movq	%rdi, -16(%rdi)
	movq	(%rax), %rsi
	movq	%rax, %r13
	addq	$16, %r13
	cmpq	%r13, %rsi
	je	.LBB4_6
# %bb.7:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	movq	%rsi, 72(%rsp)
	movq	16(%r15), %rax
	movq	%rax, 88(%rsp)
	movq	8(%r15), %r14
	jmp	.LBB4_8
.LBB4_6:
	movq	8(%r15), %r14
	leaq	1(%r14), %rdx
	callq	memcpy@PLT
.LBB4_8:
	leaq	72(%rsp), %rdi
	movq	%r14, 8(%rdi)
	movq	%r13, (%r15)
	movq	$0, 8(%r15)
	movb	$0, 16(%r15)
.Ltmp3:
	movl	$.L.str.1, %esi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc
.Ltmp4:
# %bb.9:                                # %.noexc27
	movq	%rax, %r13
	leaq	24(%rsp), %rdi
	movq	%rdi, -16(%rdi)
	movq	(%rax), %rsi
	movq	%rax, %r14
	addq	$16, %r14
	cmpq	%r14, %rsi
	je	.LBB4_10
# %bb.11:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i24
	movq	%rsi, 8(%rsp)
	movq	16(%r13), %rax
	movq	%rax, 24(%rsp)
	movq	8(%r13), %r15
	jmp	.LBB4_12
.LBB4_10:
	movq	8(%r13), %r15
	leaq	1(%r15), %rdx
	callq	memcpy@PLT
.LBB4_12:
	movq	%r15, 16(%rsp)
	movq	%r14, (%r13)
	movq	$0, 8(%r13)
	movb	$0, 16(%r13)
	xorps	%xmm0, %xmm0
	cvtss2sd	(%r12,%rbp,4), %xmm0
.Ltmp6:
	leaq	40(%rsp), %rdi
	movl	$vsnprintf, %esi
	movl	$58, %edx
	movl	$.L.str.19, %ecx
	movb	$1, %al
	callq	_ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_P13__va_list_tagEmSB_z
.Ltmp7:
# %bb.13:                               # %_ZNSt7__cxx119to_stringEf.exit
	movq	8(%rsp), %rcx
	movq	16(%rsp), %r8
	movq	48(%rsp), %rdx
	leaq	(%rdx,%r8), %rax
	movl	$15, %edi
	leaq	24(%rsp), %r14
	cmpq	%r14, %rcx
	je	.LBB4_15
# %bb.14:                               # %_ZNSt7__cxx119to_stringEf.exit
	movq	24(%rsp), %rdi
.LBB4_15:                               # %_ZNSt7__cxx119to_stringEf.exit
	movq	40(%rsp), %rsi
	cmpq	%rdi, %rax
	jbe	.LBB4_22
# %bb.16:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8capacityEv.exit12.i
	leaq	56(%rsp), %r9
	movl	$15, %edi
	cmpq	%r9, %rsi
	je	.LBB4_18
# %bb.17:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8capacityEv.exit12.i
	movq	56(%rsp), %rdi
.LBB4_18:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8capacityEv.exit12.i
	cmpq	%rdi, %rax
	jbe	.LBB4_19
.LBB4_22:
.Ltmp11:
	leaq	8(%rsp), %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm
.Ltmp12:
	jmp	.LBB4_20
.LBB4_19:                               # %.critedge.i
.Ltmp9:
	leaq	40(%rsp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm
.Ltmp10:
.LBB4_20:                               # %.noexc31
	movq	%rax, %r12
	leaq	16(%rbx), %rdi
	movq	%rdi, (%rbx)
	movq	(%rax), %rsi
	leaq	16(%rax), %r13
	cmpq	%r13, %rsi
	je	.LBB4_21
# %bb.23:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i13.i
	movq	%rsi, (%rbx)
	movq	(%r13), %rax
	movq	%rax, 16(%rbx)
	jmp	.LBB4_24
.LBB4_21:
	movq	8(%r12), %rdx
	incq	%rdx
	callq	memcpy@PLT
.LBB4_24:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EOS4_.exit14.i
	movq	%r12, %rax
	addq	$8, %rax
	movq	8(%r12), %rcx
	movq	%rcx, 8(%rbx)
	movq	%r13, (%r12)
	movq	$0, (%rax)
	movb	$0, (%r13)
	leaq	56(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB4_26
# %bb.25:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i33
	callq	_ZdlPv
.LBB4_26:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	movq	8(%rsp), %rdi
	cmpq	%r14, %rdi
	je	.LBB4_28
# %bb.27:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i34
	callq	_ZdlPv
.LBB4_28:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit36
	movq	72(%rsp), %rdi
	leaq	88(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB4_30
# %bb.29:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i37
	callq	_ZdlPv
.LBB4_30:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit39
	leaq	120(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB4_32
# %bb.31:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i40
	callq	_ZdlPv
.LBB4_32:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit
	movq	%rbx, %rax
	addq	$136, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB4_36:
	.cfi_def_cfa_offset 192
.Ltmp13:
	movq	%rax, %rbx
	leaq	56(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB4_38
# %bb.37:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i43
	callq	_ZdlPv
	jmp	.LBB4_38
.LBB4_35:
.Ltmp8:
	movq	%rax, %rbx
.LBB4_38:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit45
	movq	8(%rsp), %rdi
	leaq	24(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB4_40
# %bb.39:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i46
	callq	_ZdlPv
	jmp	.LBB4_40
.LBB4_34:
.Ltmp5:
	movq	%rax, %rbx
.LBB4_40:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit48
	movq	72(%rsp), %rdi
	leaq	88(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB4_42
# %bb.41:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i49
	callq	_ZdlPv
	jmp	.LBB4_42
.LBB4_33:
.Ltmp2:
	movq	%rax, %rbx
.LBB4_42:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit51
	leaq	120(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB4_44
# %bb.43:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i52
	callq	_ZdlPv
.LBB4_44:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit54
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end4:
	.size	_Z19comprobarIntegridadB5cxx11PfS_i, .Lfunc_end4-_Z19comprobarIntegridadB5cxx11PfS_i
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table4:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp2-.Lfunc_begin0           #     jumps to .Ltmp2
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp1-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp3-.Ltmp1                  #   Call between .Ltmp1 and .Ltmp3
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Ltmp4-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp4
	.uleb128 .Ltmp5-.Lfunc_begin0           #     jumps to .Ltmp5
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp4-.Lfunc_begin0           # >> Call Site 5 <<
	.uleb128 .Ltmp6-.Ltmp4                  #   Call between .Ltmp4 and .Ltmp6
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp6-.Lfunc_begin0           # >> Call Site 6 <<
	.uleb128 .Ltmp7-.Ltmp6                  #   Call between .Ltmp6 and .Ltmp7
	.uleb128 .Ltmp8-.Lfunc_begin0           #     jumps to .Ltmp8
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp11-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp10-.Ltmp11                #   Call between .Ltmp11 and .Ltmp10
	.uleb128 .Ltmp13-.Lfunc_begin0          #     jumps to .Ltmp13
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp10-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Lfunc_end4-.Ltmp10            #   Call between .Ltmp10 and .Lfunc_end4
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_Z8imprimirPfic                 # -- Begin function _Z8imprimirPfic
	.type	_Z8imprimirPfic,@function
_Z8imprimirPfic:                        # @_Z8imprimirPfic
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	%edx, %ebx
	movl	%esi, %ebp
	movq	%rdi, %r14
	movl	$_ZSt4cout, %r15d
	movl	$_ZSt4cout, %edi
	movl	$.L.str.3, %esi
	movl	$33, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	testl	%ebp, %ebp
	jle	.LBB5_6
# %bb.1:                                # %.lr.ph.preheader
	movl	%ebp, %r12d
	xorl	%r15d, %r15d
	movsbl	%bl, %ebp
.LBB5_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movb	%bl, 7(%rsp)
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rax
	cmpq	$0, _ZSt4cout+16(%rax)
	je	.LBB5_4
# %bb.3:                                #   in Loop: Header=BB5_2 Depth=1
	movl	$_ZSt4cout, %edi
	movl	$1, %edx
	leaq	7(%rsp), %rsi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%rax, %r13
	jmp	.LBB5_5
.LBB5_4:                                #   in Loop: Header=BB5_2 Depth=1
	movl	$_ZSt4cout, %r13d
	movl	$_ZSt4cout, %edi
	movl	%ebp, %esi
	callq	_ZNSo3putEc
.LBB5_5:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c.exit
                                        #   in Loop: Header=BB5_2 Depth=1
	movl	$.L.str.4, %esi
	movl	$1, %edx
	movq	%r13, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r13
	movl	$.L.str.5, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	xorps	%xmm0, %xmm0
	cvtss2sd	(%r14,%r15,4), %xmm0
	movq	%r13, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r13, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	incq	%r15
	cmpq	%r15, %r12
	jne	.LBB5_2
.LBB5_6:                                # %._crit_edge
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end5:
	.size	_Z8imprimirPfic, .Lfunc_end5-_Z8imprimirPfic
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI6_0:
	.quad	0xbf50624dd2f1a9fc              # double -0.001
.LCPI6_1:
	.quad	0x3ff0000000000000              # double 1
.LCPI6_2:
	.quad	0x3fb999999999999a              # double 0.10000000000000001
.LCPI6_3:
	.quad	0x3fe0000000000000              # double 0.5
.LCPI6_4:
	.quad	0x412e848000000000              # double 1.0E+6
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0
.LCPI6_5:
	.long	0x80000000                      # float -0
	.long	0x80000000                      # float -0
	.long	0x80000000                      # float -0
	.long	0x80000000                      # float -0
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %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	$264, %rsp                      # imm = 0x108
	.cfi_def_cfa_offset 320
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rsi, %rbx
	movl	%edi, %ebp
	leaq	176(%rsp), %r14
	movl	$.L.str.6, %esi
	movq	%r14, %rdi
	callq	_ZNSt6localeC1EPKc
	movl	$_ZSt4cout, %esi
	movq	_ZSt4cout(%rip), %rax
	addq	-24(%rax), %rsi
.Ltmp14:
	leaq	256(%rsp), %rdi
	movq	%r14, %rdx
	callq	_ZNSt9basic_iosIcSt11char_traitsIcEE5imbueERKSt6locale
.Ltmp15:
# %bb.1:
	leaq	256(%rsp), %rdi
	callq	_ZNSt6localeD1Ev
	cmpl	$3, %ebp
	jne	.LBB6_2
# %bb.7:
	movq	8(%rbx), %rdi
	callq	atoi
	movl	%eax, 12(%rsp)                  # 4-byte Spill
	movq	16(%rbx), %rdi
	callq	atoi
	movl	%eax, %ebp
	movl	$_ZSt4cout, %edi
	movq	_ZSt4cout(%rip), %rax
	addq	-24(%rax), %rdi
.Ltmp25:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp26:
# %bb.8:                                # %.noexc234
.Ltmp27:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp28:
# %bb.9:                                # %.noexc235
.Ltmp29:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp30:
# %bb.10:                               # %_ZNSolsEPFRSoS_E.exit179
.Ltmp31:
	movq	%rax, %rbx
	movl	$.L.str.8, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp32:
# %bb.11:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit180
.Ltmp33:
	movl	%ebp, %r15d
	imull	12(%rsp), %r15d                 # 4-byte Folded Reload
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_ZNSolsEi
.Ltmp34:
# %bb.12:
.Ltmp35:
	movq	%rax, %rbx
	movl	$.L.str.9, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp36:
# %bb.13:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit181
.Ltmp37:
	movq	%rbx, %rdi
	movl	%ebp, %esi
	callq	_ZNSolsEi
.Ltmp38:
# %bb.14:
.Ltmp39:
	movq	%rax, %rbx
	movl	$.L.str.10, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp40:
# %bb.15:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit182
.Ltmp41:
	movq	%rbx, %rdi
	movl	12(%rsp), %esi                  # 4-byte Reload
	callq	_ZNSolsEi
.Ltmp42:
# %bb.16:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp43:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp44:
# %bb.17:                               # %.noexc238
.Ltmp45:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp46:
# %bb.18:                               # %.noexc239
.Ltmp47:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp48:
# %bb.19:                               # %_ZNSolsEPFRSoS_E.exit183
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp49:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp50:
# %bb.20:                               # %.noexc242
.Ltmp51:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp52:
# %bb.21:                               # %.noexc243
.Ltmp53:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp54:
# %bb.22:                               # %_ZNSolsEPFRSoS_E.exit184
	movl	%ebp, 20(%rsp)                  # 4-byte Spill
	movslq	%r15d, %rbp
	shlq	$2, %rbp
	testl	%r15d, %r15d
	movq	$-1, %r12
	cmovnsq	%rbp, %r12
.Ltmp56:
	movq	%r12, %rdi
	callq	_Znam
.Ltmp57:
# %bb.23:
.Ltmp58:
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_Znam
.Ltmp59:
# %bb.24:
.Ltmp60:
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_Znam
	movq	%rax, 40(%rsp)                  # 8-byte Spill
.Ltmp61:
# %bb.25:
	movl	12(%rsp), %eax                  # 4-byte Reload
	movslq	%eax, %rcx
	shlq	$2, %rcx
	testl	%eax, %eax
	movq	$-1, %rdi
	movq	%rcx, 48(%rsp)                  # 8-byte Spill
	cmovnsq	%rcx, %rdi
.Ltmp62:
	movq	%rdi, 64(%rsp)                  # 8-byte Spill
	callq	_Znam
	movq	%rax, 168(%rsp)                 # 8-byte Spill
.Ltmp63:
# %bb.26:
	movl	%r15d, 16(%rsp)                 # 4-byte Spill
	testl	%r15d, %r15d
	jle	.LBB6_29
# %bb.27:                               # %.lr.ph.preheader
	movl	16(%rsp), %r15d                 # 4-byte Reload
	leaq	(,%r15,4), %rdx
	xorl	%r13d, %r13d
	movq	40(%rsp), %rdi                  # 8-byte Reload
	xorl	%esi, %esi
	callq	memset@PLT
	movl	$3435973837, %eax               # imm = 0xCCCCCCCD
	movsd	.LCPI6_0(%rip), %xmm0           # xmm0 = mem[0],zero
	movsd	.LCPI6_1(%rip), %xmm1           # xmm1 = mem[0],zero
	movsd	.LCPI6_2(%rip), %xmm2           # xmm2 = mem[0],zero
	movsd	.LCPI6_3(%rip), %xmm3           # xmm3 = mem[0],zero
.LBB6_28:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	%r13d, %ecx
	imulq	$1374389535, %rcx, %rdx         # imm = 0x51EB851F
	imulq	%rax, %rcx
	shrq	$35, %rcx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	movl	%r13d, %esi
	subl	%ecx, %esi
	shrq	$37, %rdx
	imull	$100, %edx, %ecx
	movl	%r13d, %edx
	subl	%ecx, %edx
	xorps	%xmm4, %xmm4
	cvtsi2sd	%edx, %xmm4
	mulsd	%xmm0, %xmm4
	addsd	%xmm1, %xmm4
	cvtsd2ss	%xmm4, %xmm4
	xorps	%xmm5, %xmm5
	cvtsi2sd	%esi, %xmm5
	mulsd	%xmm2, %xmm5
	addsd	%xmm3, %xmm5
	cvtsd2ss	%xmm5, %xmm5
	movss	%xmm4, (%rbx,%r13,4)
	movss	%xmm5, (%r14,%r13,4)
	incq	%r13
	cmpq	%r13, %r15
	jne	.LBB6_28
.LBB6_29:                               # %._crit_edge
	xorl	%eax, %eax
	leaq	144(%rsp), %rdi
	movq	%rax, (%rdi)
	movq	%rax, 112(%rsp)
	movq	%rax, 24(%rsp)
	movq	%rax, 56(%rsp)
	movq	%rax, 104(%rsp)
.Ltmp65:
	movq	%rbp, %rsi
	callq	hipMalloc
.Ltmp66:
# %bb.30:
.Ltmp67:
	leaq	112(%rsp), %rdi
	movq	%rbp, %rsi
	callq	hipMalloc
.Ltmp68:
# %bb.31:
.Ltmp69:
	leaq	24(%rsp), %rdi
	movq	%rbp, %rsi
	callq	hipMalloc
.Ltmp70:
# %bb.32:
.Ltmp71:
	leaq	56(%rsp), %rdi
	movq	48(%rsp), %rsi                  # 8-byte Reload
	callq	hipMalloc
.Ltmp72:
# %bb.33:
.Ltmp73:
	leaq	104(%rsp), %rdi
	movl	$4, %esi
	callq	hipMalloc
.Ltmp74:
# %bb.34:
	movq	144(%rsp), %rdi
.Ltmp75:
	movq	%rbx, %rsi
	movq	%rbp, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp76:
# %bb.35:
	movq	112(%rsp), %rdi
.Ltmp77:
	movq	%r14, %rsi
	movq	%rbp, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp78:
# %bb.36:
	movq	24(%rsp), %rdi
.Ltmp79:
	movq	40(%rsp), %rsi                  # 8-byte Reload
	movq	%rbp, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp80:
# %bb.37:
.Ltmp82:
	movq	%r12, %rdi
	callq	_Znam
	movq	%rax, 136(%rsp)                 # 8-byte Spill
.Ltmp83:
# %bb.38:
.Ltmp85:
	movq	64(%rsp), %rdi                  # 8-byte Reload
	callq	_Znam
	movq	%rax, 128(%rsp)                 # 8-byte Spill
.Ltmp86:
# %bb.39:
.Ltmp88:
	movl	$4, %edi
	callq	_Znwm
	movq	%rax, 120(%rsp)                 # 8-byte Spill
.Ltmp89:
	movq	168(%rsp), %r15                 # 8-byte Reload
# %bb.40:
	callq	clock
	movq	%rax, 64(%rsp)                  # 8-byte Spill
	movl	12(%rsp), %r12d                 # 4-byte Reload
	movq	%r12, 200(%rsp)                 # 8-byte Spill
	btsq	$32, %r12
	movl	20(%rsp), %edx                  # 4-byte Reload
	btsq	$32, %rdx
.Ltmp91:
	movq	%r12, %rdi
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp92:
# %bb.41:
	testl	%eax, %eax
	jne	.LBB6_43
# %bb.42:
	movq	144(%rsp), %rdi
	movq	112(%rsp), %rsi
	movq	24(%rsp), %rdx
.Ltmp93:
	movl	16(%rsp), %ecx                  # 4-byte Reload
	callq	_Z24__device_stub__calcularCPKfS0_Pfi
.Ltmp94:
.LBB6_43:
	movq	24(%rsp), %rsi
.Ltmp95:
	movq	136(%rsp), %rdi                 # 8-byte Reload
	movq	%rbp, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp96:
# %bb.44:
.Ltmp97:
	callq	hipDeviceSynchronize
.Ltmp98:
# %bb.45:
	movabsq	$4294967296, %rcx               # imm = 0x100000000
	movl	20(%rsp), %eax                  # 4-byte Reload
	movl	%eax, %ebp
	sarl	%ebp
	cltq
	movq	%rax, 192(%rsp)                 # 8-byte Spill
	leaq	(,%rax,4), %r8
	orq	%rcx, %rbp
.Ltmp99:
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	movq	%r8, %r13
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp100:
# %bb.46:
	testl	%eax, %eax
	jne	.LBB6_48
# %bb.47:
	movq	24(%rsp), %rdi
	movq	56(%rsp), %rsi
.Ltmp101:
	movl	16(%rsp), %edx                  # 4-byte Reload
	callq	_Z24__device_stub__calcularDPKfPfj
.Ltmp102:
.LBB6_48:
	movq	56(%rsp), %rsi
.Ltmp103:
	movq	128(%rsp), %rdi                 # 8-byte Reload
	movq	48(%rsp), %rdx                  # 8-byte Reload
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp104:
# %bb.49:
.Ltmp105:
	callq	hipDeviceSynchronize
.Ltmp106:
# %bb.50:
.Ltmp107:
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%rbp, %rdx
	movl	$1, %ecx
	movq	%r13, %r8
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp108:
# %bb.51:
	testl	%eax, %eax
	jne	.LBB6_53
# %bb.52:
	movq	24(%rsp), %rdi
	movq	56(%rsp), %rsi
.Ltmp109:
	movl	16(%rsp), %edx                  # 4-byte Reload
	callq	_Z26__device_stub__calcularMaxPKfPfi
.Ltmp110:
.LBB6_53:
.Ltmp111:
	callq	hipDeviceSynchronize
.Ltmp112:
# %bb.54:
	movl	12(%rsp), %eax                  # 4-byte Reload
	movl	%eax, %edx
	sarl	%edx
	movabsq	$4294967296, %rax               # imm = 0x100000000
	orq	%rax, %rdx
.Ltmp113:
	movabsq	$4294967297, %rdi               # imm = 0x100000001
	movl	$1, %esi
	movl	$1, %ecx
	movq	48(%rsp), %r8                   # 8-byte Reload
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp114:
# %bb.55:
	testl	%eax, %eax
	jne	.LBB6_57
# %bb.56:
	movq	56(%rsp), %rdi
	movq	104(%rsp), %rsi
.Ltmp115:
	movl	12(%rsp), %edx                  # 4-byte Reload
	callq	_Z26__device_stub__calcularMaxPKfPfi
.Ltmp116:
.LBB6_57:
	movq	104(%rsp), %rsi
.Ltmp117:
	movl	$4, %edx
	movq	120(%rsp), %rdi                 # 8-byte Reload
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp118:
# %bb.58:
.Ltmp119:
	callq	hipDeviceSynchronize
.Ltmp120:
# %bb.59:
	callq	clock
	movq	%rax, %r12
.Ltmp122:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.11, %esi
	movl	$16, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp123:
# %bb.60:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit185
	cvtsi2sdq	64(%rsp), %xmm1         # 8-byte Folded Reload
	cvtsi2sd	%r12, %xmm0
	movsd	%xmm1, 184(%rsp)                # 8-byte Spill
	subsd	%xmm1, %xmm0
	divsd	.LCPI6_4(%rip), %xmm0
.Ltmp124:
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp125:
# %bb.61:                               # %_ZNSolsEd.exit
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
.Ltmp126:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp127:
# %bb.62:                               # %.noexc246
.Ltmp128:
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_ZNSo3putEc
.Ltmp129:
# %bb.63:                               # %.noexc247
.Ltmp130:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp131:
# %bb.64:                               # %_ZNSolsEPFRSoS_E.exit186
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
.Ltmp132:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp133:
# %bb.65:                               # %.noexc250
.Ltmp134:
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_ZNSo3putEc
.Ltmp135:
# %bb.66:                               # %.noexc251
.Ltmp136:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp137:
# %bb.67:                               # %_ZNSolsEPFRSoS_E.exit187
	movq	144(%rsp), %rdi
.Ltmp138:
	callq	hipFree
.Ltmp139:
# %bb.68:
	movq	112(%rsp), %rdi
.Ltmp140:
	callq	hipFree
.Ltmp141:
# %bb.69:
	movq	24(%rsp), %rdi
.Ltmp142:
	callq	hipFree
.Ltmp143:
# %bb.70:
	movq	56(%rsp), %rdi
.Ltmp144:
	callq	hipFree
.Ltmp145:
# %bb.71:
	movq	104(%rsp), %rdi
.Ltmp146:
	callq	hipFree
.Ltmp147:
# %bb.72:                               # %.preheader
	cmpl	$0, 12(%rsp)                    # 4-byte Folded Reload
	movl	20(%rsp), %eax                  # 4-byte Reload
	jle	.LBB6_73
# %bb.82:                               # %.lr.ph329.preheader
	xorl	%esi, %esi
	xorl	%edx, %edx
                                        # implicit-def: $xmm0
                                        # kill: killed $xmm0
	movq	40(%rsp), %rcx                  # 8-byte Reload
.LBB6_83:                               # %.lr.ph329
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB6_85 Depth 2
                                        #       Child Loop BB6_86 Depth 3
	movl	%edx, %edx
	leaq	1(%rsi), %r12
	movl	$0, (%r15,%rsi,4)
	testl	%eax, %eax
	jle	.LBB6_91
# %bb.84:                               # %.lr.ph312.preheader
                                        #   in Loop: Header=BB6_83 Depth=1
	movq	%rsi, 216(%rsp)                 # 8-byte Spill
	movq	%r14, %rbp
	movq	%rbx, %r13
	leaq	(,%rdx,4), %rax
	movq	%rax, 240(%rsp)                 # 8-byte Spill
	movq	%rdx, %rsi
	shlq	$32, %rsi
	movabsq	$4294967296, %rax               # imm = 0x100000000
	addq	%rax, %rsi
	movq	%rsi, 232(%rsp)                 # 8-byte Spill
	movq	%r12, 208(%rsp)                 # 8-byte Spill
	imulq	192(%rsp), %r12                 # 8-byte Folded Reload
	xorpd	%xmm1, %xmm1
	movq	%rdx, 224(%rsp)                 # 8-byte Spill
	movq	%rdx, %r15
.LBB6_85:                               # %.lr.ph312
                                        #   Parent Loop BB6_83 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB6_86 Depth 3
	movss	%xmm1, 156(%rsp)                # 4-byte Spill
	leaq	(%rcx,%r15,4), %rax
	movq	%rax, 248(%rsp)                 # 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r15d, %xmm0
	movss	%xmm0, 160(%rsp)                # 4-byte Spill
	movl	$0, (%rcx,%r15,4)
	movq	232(%rsp), %rbx                 # 8-byte Reload
	movq	240(%rsp), %r14                 # 8-byte Reload
	xorpd	%xmm2, %xmm2
.LBB6_86:                               #   Parent Loop BB6_83 Depth=1
                                        #     Parent Loop BB6_85 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movss	%xmm2, 48(%rsp)                 # 4-byte Spill
	movss	(%r13,%r14), %xmm0              # xmm0 = mem[0],zero,zero,zero
	mulss	160(%rsp), %xmm0                # 4-byte Folded Reload
	movss	%xmm0, 64(%rsp)                 # 4-byte Spill
	callq	ceilf@PLT
	cvttss2si	%xmm0, %eax
	movss	(%rbp,%r14), %xmm0              # xmm0 = mem[0],zero,zero,zero
	testb	$1, %al
	je	.LBB6_88
# %bb.87:                               #   in Loop: Header=BB6_86 Depth=3
	xorps	.LCPI6_5(%rip), %xmm0
.LBB6_88:                               #   in Loop: Header=BB6_86 Depth=3
	movss	48(%rsp), %xmm2                 # 4-byte Reload
                                        # xmm2 = mem[0],zero,zero,zero
	movss	64(%rsp), %xmm1                 # 4-byte Reload
                                        # xmm1 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm1
	addss	%xmm1, %xmm2
	movq	%rbx, %rax
	sarq	$32, %rax
	addq	$4, %r14
	movabsq	$4294967296, %rcx               # imm = 0x100000000
	addq	%rcx, %rbx
	cmpq	%r12, %rax
	jl	.LBB6_86
# %bb.89:                               # %._crit_edge313
                                        #   in Loop: Header=BB6_85 Depth=2
	movq	40(%rsp), %rcx                  # 8-byte Reload
	movss	%xmm2, (%rcx,%r15,4)
	movss	36(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm2, %xmm0
	movss	156(%rsp), %xmm1                # 4-byte Reload
                                        # xmm1 = mem[0],zero,zero,zero
	addss	%xmm2, %xmm1
	leaq	164(%rsp), %rax
	movq	248(%rsp), %rdx                 # 8-byte Reload
	cmovaq	%rax, %rdx
	cmpq	$1, %r15
	cmoveq	%rcx, %rdx
	movss	(%rdx), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 36(%rsp)                 # 4-byte Spill
	movss	%xmm0, 164(%rsp)
	incq	%r15
	movslq	%r15d, %rax
	cmpq	%r12, %rax
	jl	.LBB6_85
# %bb.90:                               # %._crit_edge321
                                        #   in Loop: Header=BB6_83 Depth=1
	movq	168(%rsp), %r15                 # 8-byte Reload
	movq	216(%rsp), %rax                 # 8-byte Reload
	movss	%xmm1, (%r15,%rax,4)
	movq	%r13, %rbx
	movq	%rbp, %r14
	movl	20(%rsp), %eax                  # 4-byte Reload
	movq	224(%rsp), %rdx                 # 8-byte Reload
	movq	208(%rsp), %r12                 # 8-byte Reload
.LBB6_91:                               #   in Loop: Header=BB6_83 Depth=1
	addl	%eax, %edx
	movq	%r12, %rsi
	cmpq	200(%rsp), %r12                 # 8-byte Folded Reload
	jne	.LBB6_83
	jmp	.LBB6_92
.LBB6_2:
.Ltmp16:
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$44, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp17:
# %bb.3:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
	movq	_ZSt4cout(%rip), %rax
	addq	-24(%rax), %rbx
.Ltmp18:
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp19:
# %bb.4:                                # %.noexc
.Ltmp20:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp21:
# %bb.5:                                # %.noexc232
.Ltmp22:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp23:
	jmp	.LBB6_6
.LBB6_73:
                                        # implicit-def: $xmm0
                                        # kill: killed $xmm0
.LBB6_92:                               # %._crit_edge330
	callq	clock
	movq	%rax, %r12
.Ltmp148:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.12, %esi
	movl	$16, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp149:
# %bb.93:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit188
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r12, %xmm0
	subsd	184(%rsp), %xmm0                # 8-byte Folded Reload
	divsd	.LCPI6_4(%rip), %xmm0
.Ltmp150:
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp151:
# %bb.94:                               # %_ZNSolsEd.exit189
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
.Ltmp152:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp153:
# %bb.95:                               # %.noexc254
.Ltmp154:
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_ZNSo3putEc
.Ltmp155:
# %bb.96:                               # %.noexc255
.Ltmp156:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp157:
# %bb.97:                               # %_ZNSolsEPFRSoS_E.exit190
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
.Ltmp158:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp159:
# %bb.98:                               # %.noexc258
.Ltmp160:
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_ZNSo3putEc
.Ltmp161:
# %bb.99:                               # %.noexc259
.Ltmp162:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp163:
# %bb.100:                              # %_ZNSolsEPFRSoS_E.exit191
.Ltmp164:
	movl	$_ZSt4cout, %r12d
	movl	$_ZSt4cout, %edi
	movl	$.L.str.3, %esi
	movl	$33, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp165:
# %bb.101:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit192
	movq	_ZSt4cout(%rip), %rax
	addq	-24(%rax), %r12
.Ltmp166:
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp167:
# %bb.102:                              # %.noexc262
.Ltmp168:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp169:
# %bb.103:                              # %.noexc263
.Ltmp170:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp171:
# %bb.104:                              # %_ZNSolsEPFRSoS_E.exit193
.Ltmp172:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.13, %esi
	movl	$39, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp173:
# %bb.105:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit194
.Ltmp174:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.14, %esi
	movl	$27, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp175:
# %bb.106:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit195
.Ltmp176:
	leaq	72(%rsp), %rdi
	movq	40(%rsp), %rsi                  # 8-byte Reload
	movq	136(%rsp), %rdx                 # 8-byte Reload
	movl	16(%rsp), %ecx                  # 4-byte Reload
	callq	_Z19comprobarIntegridadB5cxx11PfS_i
.Ltmp177:
# %bb.107:
	movq	72(%rsp), %rsi
	movq	80(%rsp), %rdx
.Ltmp179:
	movl	$_ZSt4cout, %edi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp180:
# %bb.108:                              # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
.Ltmp181:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp182:
# %bb.109:                              # %.noexc266
.Ltmp183:
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_ZNSo3putEc
.Ltmp184:
# %bb.110:                              # %.noexc267
.Ltmp185:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp186:
# %bb.111:                              # %_ZNSolsEPFRSoS_E.exit196
	leaq	88(%rsp), %r13
	movq	-16(%r13), %rdi
	cmpq	%r13, %rdi
	je	.LBB6_113
# %bb.112:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
.LBB6_113:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
.Ltmp188:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.15, %esi
	movl	$27, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp189:
# %bb.114:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit197
.Ltmp190:
	leaq	72(%rsp), %rdi
	movq	%r15, %rsi
	movq	128(%rsp), %rdx                 # 8-byte Reload
	movl	12(%rsp), %ecx                  # 4-byte Reload
	callq	_Z19comprobarIntegridadB5cxx11PfS_i
.Ltmp191:
# %bb.115:
	movq	72(%rsp), %rsi
	movq	80(%rsp), %rdx
.Ltmp193:
	movl	$_ZSt4cout, %edi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp194:
# %bb.116:                              # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit198
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
.Ltmp195:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp196:
# %bb.117:                              # %.noexc270
.Ltmp197:
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_ZNSo3putEc
.Ltmp198:
# %bb.118:                              # %.noexc271
.Ltmp199:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp200:
# %bb.119:                              # %_ZNSolsEPFRSoS_E.exit199
	movq	72(%rsp), %rdi
	cmpq	%r13, %rdi
	je	.LBB6_121
# %bb.120:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i200
	callq	_ZdlPv
.LBB6_121:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit202
.Ltmp202:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.16, %esi
	movl	$29, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp203:
# %bb.122:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit203
	movq	120(%rsp), %rax                 # 8-byte Reload
	movss	36(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	ucomiss	(%rax), %xmm0
	jne	.LBB6_124
	jnp	.LBB6_123
.LBB6_124:
.Ltmp206:
	movl	$_ZSt4cout, %edi
	movl	$.L.str, %esi
	movl	$6, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp207:
# %bb.125:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit205
	movq	120(%rsp), %rax                 # 8-byte Reload
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rax), %xmm0
.Ltmp208:
	leaq	72(%rsp), %rdi
	movl	$vsnprintf, %esi
	movl	$58, %edx
	movl	$.L.str.19, %ecx
	movb	$1, %al
	callq	_ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_P13__va_list_tagEmSB_z
.Ltmp209:
# %bb.126:                              # %_ZNSt7__cxx119to_stringEf.exit
	movq	72(%rsp), %rsi
	movq	80(%rsp), %rdx
.Ltmp211:
	movl	$_ZSt4cout, %edi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp212:
# %bb.127:                              # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit206
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
.Ltmp213:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp214:
# %bb.128:                              # %.noexc274
.Ltmp215:
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_ZNSo3putEc
.Ltmp216:
# %bb.129:                              # %.noexc275
.Ltmp217:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp218:
# %bb.130:
	movq	72(%rsp), %rdi
	cmpq	%r13, %rdi
	je	.LBB6_132
# %bb.131:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i208
	callq	_ZdlPv
	jmp	.LBB6_132
.LBB6_123:
.Ltmp204:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.17, %esi
	movl	$3, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp205:
.LBB6_132:                              # %.critedge
.Ltmp220:
	movl	$_ZSt4cout, %r12d
	movl	$_ZSt4cout, %edi
	movl	$.L.str.3, %esi
	movl	$33, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp221:
# %bb.133:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit211
	movq	_ZSt4cout(%rip), %rax
	addq	-24(%rax), %r12
.Ltmp222:
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp223:
# %bb.134:                              # %.noexc278
.Ltmp224:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp225:
# %bb.135:                              # %.noexc279
.Ltmp226:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp227:
# %bb.136:                              # %_ZNSolsEPFRSoS_E.exit212
.Ltmp228:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.18, %esi
	movl	$27, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp229:
# %bb.137:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit213
	xorps	%xmm0, %xmm0
	cvtss2sd	36(%rsp), %xmm0                 # 4-byte Folded Reload
.Ltmp231:
	leaq	72(%rsp), %rdi
	movl	$vsnprintf, %esi
	movl	$58, %edx
	movl	$.L.str.19, %ecx
	movb	$1, %al
	callq	_ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_P13__va_list_tagEmSB_z
.Ltmp232:
# %bb.138:                              # %_ZNSt7__cxx119to_stringEf.exit214
	movq	72(%rsp), %rsi
	movq	80(%rsp), %rdx
.Ltmp234:
	movl	$_ZSt4cout, %edi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp235:
# %bb.139:                              # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit215
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
.Ltmp236:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp237:
# %bb.140:                              # %.noexc282
.Ltmp238:
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_ZNSo3putEc
.Ltmp239:
# %bb.141:                              # %.noexc283
.Ltmp240:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp241:
# %bb.142:                              # %_ZNSolsEPFRSoS_E.exit216
	movq	72(%rsp), %rdi
	cmpq	%r13, %rdi
	je	.LBB6_144
# %bb.143:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i217
	callq	_ZdlPv
.LBB6_144:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit219
	movq	%rbx, %rdi
	callq	_ZdlPv
	movq	%r14, %rdi
	callq	_ZdlPv
	movq	40(%rsp), %rdi                  # 8-byte Reload
	callq	_ZdlPv
	movq	%r15, %rdi
	callq	_ZdlPv
	movq	136(%rsp), %rdi                 # 8-byte Reload
	callq	_ZdlPv
	movq	128(%rsp), %rdi                 # 8-byte Reload
	callq	_ZdlPv
.LBB6_6:                                # %_ZNSolsEPFRSoS_E.exit
	leaq	176(%rsp), %rdi
	callq	_ZNSt6localeD1Ev
	xorl	%eax, %eax
	addq	$264, %rsp                      # imm = 0x108
	.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_151:
	.cfi_def_cfa_offset 320
.Ltmp210:
	jmp	.LBB6_156
.LBB6_153:
.Ltmp233:
	jmp	.LBB6_156
.LBB6_148:
.Ltmp192:
	jmp	.LBB6_156
.LBB6_145:
.Ltmp178:
	jmp	.LBB6_156
.LBB6_79:
.Ltmp90:
	jmp	.LBB6_156
.LBB6_78:
.Ltmp87:
	jmp	.LBB6_156
.LBB6_77:
.Ltmp84:
	jmp	.LBB6_156
.LBB6_152:
.Ltmp219:
	jmp	.LBB6_150
.LBB6_154:
.Ltmp242:
	jmp	.LBB6_150
.LBB6_149:
.Ltmp201:
.LBB6_150:
	movq	%rax, %rbx
	movq	72(%rsp), %rdi
	cmpq	%r13, %rdi
	jne	.LBB6_147
	jmp	.LBB6_157
.LBB6_146:
.Ltmp187:
	movq	%rax, %rbx
	leaq	88(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB6_157
.LBB6_147:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i220
	callq	_ZdlPv
	jmp	.LBB6_157
.LBB6_75:
.Ltmp64:
	jmp	.LBB6_156
.LBB6_155:
.Ltmp24:
	jmp	.LBB6_156
.LBB6_76:
.Ltmp81:
	jmp	.LBB6_156
.LBB6_80:
.Ltmp121:
	jmp	.LBB6_156
.LBB6_74:
.Ltmp55:
	jmp	.LBB6_156
.LBB6_81:
.Ltmp230:
.LBB6_156:
	movq	%rax, %rbx
.LBB6_157:
	leaq	176(%rsp), %rdi
	callq	_ZNSt6localeD1Ev
	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:
.Lexception1:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end1-.Lcst_begin1
.Lcst_begin1:
	.uleb128 .Lfunc_begin1-.Lfunc_begin1    # >> Call Site 1 <<
	.uleb128 .Ltmp14-.Lfunc_begin1          #   Call between .Lfunc_begin1 and .Ltmp14
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp14-.Lfunc_begin1          # >> Call Site 2 <<
	.uleb128 .Ltmp15-.Ltmp14                #   Call between .Ltmp14 and .Ltmp15
	.uleb128 .Ltmp24-.Lfunc_begin1          #     jumps to .Ltmp24
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp25-.Lfunc_begin1          # >> Call Site 3 <<
	.uleb128 .Ltmp54-.Ltmp25                #   Call between .Ltmp25 and .Ltmp54
	.uleb128 .Ltmp55-.Lfunc_begin1          #     jumps to .Ltmp55
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp56-.Lfunc_begin1          # >> Call Site 4 <<
	.uleb128 .Ltmp63-.Ltmp56                #   Call between .Ltmp56 and .Ltmp63
	.uleb128 .Ltmp64-.Lfunc_begin1          #     jumps to .Ltmp64
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp63-.Lfunc_begin1          # >> Call Site 5 <<
	.uleb128 .Ltmp65-.Ltmp63                #   Call between .Ltmp63 and .Ltmp65
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp65-.Lfunc_begin1          # >> Call Site 6 <<
	.uleb128 .Ltmp80-.Ltmp65                #   Call between .Ltmp65 and .Ltmp80
	.uleb128 .Ltmp81-.Lfunc_begin1          #     jumps to .Ltmp81
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp82-.Lfunc_begin1          # >> Call Site 7 <<
	.uleb128 .Ltmp83-.Ltmp82                #   Call between .Ltmp82 and .Ltmp83
	.uleb128 .Ltmp84-.Lfunc_begin1          #     jumps to .Ltmp84
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp85-.Lfunc_begin1          # >> Call Site 8 <<
	.uleb128 .Ltmp86-.Ltmp85                #   Call between .Ltmp85 and .Ltmp86
	.uleb128 .Ltmp87-.Lfunc_begin1          #     jumps to .Ltmp87
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp88-.Lfunc_begin1          # >> Call Site 9 <<
	.uleb128 .Ltmp89-.Ltmp88                #   Call between .Ltmp88 and .Ltmp89
	.uleb128 .Ltmp90-.Lfunc_begin1          #     jumps to .Ltmp90
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp91-.Lfunc_begin1          # >> Call Site 10 <<
	.uleb128 .Ltmp120-.Ltmp91               #   Call between .Ltmp91 and .Ltmp120
	.uleb128 .Ltmp121-.Lfunc_begin1         #     jumps to .Ltmp121
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp122-.Lfunc_begin1         # >> Call Site 11 <<
	.uleb128 .Ltmp147-.Ltmp122              #   Call between .Ltmp122 and .Ltmp147
	.uleb128 .Ltmp230-.Lfunc_begin1         #     jumps to .Ltmp230
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp147-.Lfunc_begin1         # >> Call Site 12 <<
	.uleb128 .Ltmp16-.Ltmp147               #   Call between .Ltmp147 and .Ltmp16
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp16-.Lfunc_begin1          # >> Call Site 13 <<
	.uleb128 .Ltmp23-.Ltmp16                #   Call between .Ltmp16 and .Ltmp23
	.uleb128 .Ltmp24-.Lfunc_begin1          #     jumps to .Ltmp24
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp148-.Lfunc_begin1         # >> Call Site 14 <<
	.uleb128 .Ltmp175-.Ltmp148              #   Call between .Ltmp148 and .Ltmp175
	.uleb128 .Ltmp230-.Lfunc_begin1         #     jumps to .Ltmp230
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp176-.Lfunc_begin1         # >> Call Site 15 <<
	.uleb128 .Ltmp177-.Ltmp176              #   Call between .Ltmp176 and .Ltmp177
	.uleb128 .Ltmp178-.Lfunc_begin1         #     jumps to .Ltmp178
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp179-.Lfunc_begin1         # >> Call Site 16 <<
	.uleb128 .Ltmp186-.Ltmp179              #   Call between .Ltmp179 and .Ltmp186
	.uleb128 .Ltmp187-.Lfunc_begin1         #     jumps to .Ltmp187
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp188-.Lfunc_begin1         # >> Call Site 17 <<
	.uleb128 .Ltmp189-.Ltmp188              #   Call between .Ltmp188 and .Ltmp189
	.uleb128 .Ltmp230-.Lfunc_begin1         #     jumps to .Ltmp230
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp190-.Lfunc_begin1         # >> Call Site 18 <<
	.uleb128 .Ltmp191-.Ltmp190              #   Call between .Ltmp190 and .Ltmp191
	.uleb128 .Ltmp192-.Lfunc_begin1         #     jumps to .Ltmp192
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp193-.Lfunc_begin1         # >> Call Site 19 <<
	.uleb128 .Ltmp200-.Ltmp193              #   Call between .Ltmp193 and .Ltmp200
	.uleb128 .Ltmp201-.Lfunc_begin1         #     jumps to .Ltmp201
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp202-.Lfunc_begin1         # >> Call Site 20 <<
	.uleb128 .Ltmp207-.Ltmp202              #   Call between .Ltmp202 and .Ltmp207
	.uleb128 .Ltmp230-.Lfunc_begin1         #     jumps to .Ltmp230
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp208-.Lfunc_begin1         # >> Call Site 21 <<
	.uleb128 .Ltmp209-.Ltmp208              #   Call between .Ltmp208 and .Ltmp209
	.uleb128 .Ltmp210-.Lfunc_begin1         #     jumps to .Ltmp210
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp211-.Lfunc_begin1         # >> Call Site 22 <<
	.uleb128 .Ltmp218-.Ltmp211              #   Call between .Ltmp211 and .Ltmp218
	.uleb128 .Ltmp219-.Lfunc_begin1         #     jumps to .Ltmp219
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp204-.Lfunc_begin1         # >> Call Site 23 <<
	.uleb128 .Ltmp229-.Ltmp204              #   Call between .Ltmp204 and .Ltmp229
	.uleb128 .Ltmp230-.Lfunc_begin1         #     jumps to .Ltmp230
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp231-.Lfunc_begin1         # >> Call Site 24 <<
	.uleb128 .Ltmp232-.Ltmp231              #   Call between .Ltmp231 and .Ltmp232
	.uleb128 .Ltmp233-.Lfunc_begin1         #     jumps to .Ltmp233
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp234-.Lfunc_begin1         # >> Call Site 25 <<
	.uleb128 .Ltmp241-.Ltmp234              #   Call between .Ltmp234 and .Ltmp241
	.uleb128 .Ltmp242-.Lfunc_begin1         #     jumps to .Ltmp242
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp241-.Lfunc_begin1         # >> Call Site 26 <<
	.uleb128 .Lfunc_end6-.Ltmp241           #   Call between .Ltmp241 and .Lfunc_end6
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_P13__va_list_tagEmSB_z,"axG",@progbits,_ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_P13__va_list_tagEmSB_z,comdat
	.weak	_ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_P13__va_list_tagEmSB_z # -- Begin function _ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_P13__va_list_tagEmSB_z
	.type	_ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_P13__va_list_tagEmSB_z,@function
_ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_P13__va_list_tagEmSB_z: # @_ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_P13__va_list_tagEmSB_z
	.cfi_startproc
# %bb.0:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IPcvEET_S7_RKS3_.exit
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$208, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r10
	movq	%rdi, %rbx
	leaq	-224(%rbp), %rsi
	movq	%r8, 32(%rsi)
	movq	%r9, 40(%rsi)
	testb	%al, %al
	je	.LBB7_2
# %bb.1:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IPcvEET_S7_RKS3_.exit
	movaps	%xmm0, -176(%rbp)
	movaps	%xmm1, -160(%rbp)
	movaps	%xmm2, -144(%rbp)
	movaps	%xmm3, -128(%rbp)
	movaps	%xmm4, -112(%rbp)
	movaps	%xmm5, -96(%rbp)
	movaps	%xmm6, -80(%rbp)
	movaps	%xmm7, -64(%rbp)
.LBB7_2:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IPcvEET_S7_RKS3_.exit
	movq	%rsp, %r14
	leaq	15(%rdx), %rax
	andq	$-16, %rax
	subq	%rax, %r14
	movq	%r14, %rsp
	leaq	-48(%rbp), %rax
	movq	%rsi, 16(%rax)
	leaq	16(%rbp), %rsi
	movq	%rsi, 8(%rax)
	movabsq	$206158430240, %rsi             # imm = 0x3000000020
	movq	%rsi, (%rax)
	movq	%r14, %rdi
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	movq	%rax, %rcx
	callq	*%r10
	movslq	%eax, %rdx
	addq	%r14, %rdx
	leaq	16(%rbx), %rax
	movq	%rax, (%rbx)
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	movq	%rbx, %rax
	leaq	-16(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	.cfi_def_cfa %rsp, 8
	retq
.Lfunc_end7:
	.size	_ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_P13__va_list_tagEmSB_z, .Lfunc_end7-_ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_mPKS8_P13__va_list_tagEmSB_z
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	subq	%rsi, %r14
	movq	%r14, (%rsp)
	cmpq	$15, %r14
	jbe	.LBB8_1
# %bb.2:
	movq	%rsp, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm
	movq	%rax, (%rbx)
	movq	(%r12), %rcx
	movq	%rcx, 16(%rbx)
	jmp	.LBB8_3
.LBB8_1:                                # %._crit_edge
	movq	(%rbx), %rax
.LBB8_3:
	testq	%r14, %r14
	je	.LBB8_7
# %bb.4:
	cmpq	$1, %r14
	jne	.LBB8_6
# %bb.5:
	movb	(%r15), %cl
	movb	%cl, (%rax)
	jmp	.LBB8_7
.LBB8_6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memcpy@PLT
.LBB8_7:                                # %_ZZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tagEN6_GuardD2Ev.exit
	movq	(%rsp), %rax
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rcx
	movb	$0, (%rcx,%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end8:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag, .Lfunc_end8-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	subq	%rsi, %r14
	movq	%r14, (%rsp)
	cmpq	$15, %r14
	jbe	.LBB9_1
# %bb.2:
	movq	%rsp, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm
	movq	%rax, (%rbx)
	movq	(%r12), %rcx
	movq	%rcx, 16(%rbx)
	jmp	.LBB9_3
.LBB9_1:                                # %._crit_edge
	movq	(%rbx), %rax
.LBB9_3:
	testq	%r14, %r14
	je	.LBB9_7
# %bb.4:
	cmpq	$1, %r14
	jne	.LBB9_6
# %bb.5:
	movb	(%r15), %cl
	movb	%cl, (%rax)
	jmp	.LBB9_7
.LBB9_6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memcpy@PLT
.LBB9_7:                                # %_ZZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tagEN6_GuardD2Ev.exit
	movq	(%rsp), %rax
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rcx
	movb	$0, (%rcx,%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end9:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag, .Lfunc_end9-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.text
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB10_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB10_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z9calcularCPKfS0_Pfi, %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	$_Z16calcularC_sharedPKfS0_Pfi, %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	$_Z9calcularDPKfPfj, %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	$_Z11calcularMaxPKfPfi, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end10:
	.size	__hip_module_ctor, .Lfunc_end10-__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	.LBB11_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
.LBB11_2:
	retq
.Lfunc_end11:
	.size	__hip_module_dtor, .Lfunc_end11-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z9calcularCPKfS0_Pfi,@object   # @_Z9calcularCPKfS0_Pfi
	.section	.rodata,"a",@progbits
	.globl	_Z9calcularCPKfS0_Pfi
	.p2align	3, 0x0
_Z9calcularCPKfS0_Pfi:
	.quad	_Z24__device_stub__calcularCPKfS0_Pfi
	.size	_Z9calcularCPKfS0_Pfi, 8

	.type	_Z16calcularC_sharedPKfS0_Pfi,@object # @_Z16calcularC_sharedPKfS0_Pfi
	.globl	_Z16calcularC_sharedPKfS0_Pfi
	.p2align	3, 0x0
_Z16calcularC_sharedPKfS0_Pfi:
	.quad	_Z31__device_stub__calcularC_sharedPKfS0_Pfi
	.size	_Z16calcularC_sharedPKfS0_Pfi, 8

	.type	_Z9calcularDPKfPfj,@object      # @_Z9calcularDPKfPfj
	.globl	_Z9calcularDPKfPfj
	.p2align	3, 0x0
_Z9calcularDPKfPfj:
	.quad	_Z24__device_stub__calcularDPKfPfj
	.size	_Z9calcularDPKfPfj, 8

	.type	_Z11calcularMaxPKfPfi,@object   # @_Z11calcularMaxPKfPfi
	.globl	_Z11calcularMaxPKfPfi
	.p2align	3, 0x0
_Z11calcularMaxPKfPfi:
	.quad	_Z26__device_stub__calcularMaxPKfPfi
	.size	_Z11calcularMaxPKfPfi, 8

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

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

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

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

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

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"]="
	.size	.L.str.5, 3

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.zero	1
	.size	.L.str.6, 1

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"Uso: transformacion Num_bloques Tam_bloque  "
	.size	.L.str.7, 45

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"N="
	.size	.L.str.8, 3

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"= "
	.size	.L.str.9, 3

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

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	"[GPU] tiempo -> "
	.size	.L.str.11, 17

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	"[CPU] tiempo -> "
	.size	.L.str.12, 17

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	"Comprobando integridad de c\303\241lculos...\n"
	.size	.L.str.13, 40

	.type	.L.str.14,@object               # @.str.14
.L.str.14:
	.asciz	"\t[CHECK] Comprobando C...  "
	.size	.L.str.14, 28

	.type	.L.str.15,@object               # @.str.15
.L.str.15:
	.asciz	"\t[CHECK] Comprobando D...  "
	.size	.L.str.15, 28

	.type	.L.str.16,@object               # @.str.16
.L.str.16:
	.asciz	"\t[CHECK] Comprobando Max...  "
	.size	.L.str.16, 30

	.type	.L.str.17,@object               # @.str.17
.L.str.17:
	.asciz	"OK\n"
	.size	.L.str.17, 4

	.type	.L.str.18,@object               # @.str.18
.L.str.18:
	.asciz	"El valor m\303\241ximo en C es:  "
	.size	.L.str.18, 28

	.type	.L.str.19,@object               # @.str.19
.L.str.19:
	.asciz	"%f"
	.size	.L.str.19, 3

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z9calcularCPKfS0_Pfi"
	.size	.L__unnamed_1, 22

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

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z9calcularDPKfPfj"
	.size	.L__unnamed_3, 19

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"_Z11calcularMaxPKfPfi"
	.size	.L__unnamed_4, 22

	.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 _Z24__device_stub__calcularCPKfS0_Pfi
	.addrsig_sym _Z31__device_stub__calcularC_sharedPKfS0_Pfi
	.addrsig_sym _Z24__device_stub__calcularDPKfPfj
	.addrsig_sym _Z26__device_stub__calcularMaxPKfPfi
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym vsnprintf
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _Z9calcularCPKfS0_Pfi
	.addrsig_sym _Z16calcularC_sharedPKfS0_Pfi
	.addrsig_sym _Z9calcularDPKfPfj
	.addrsig_sym _Z11calcularMaxPKfPfi
	.addrsig_sym _ZSt4cout
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z9calcularCPKfS0_Pfi   ; -- Begin function _Z9calcularCPKfS0_Pfi
	.globl	_Z9calcularCPKfS0_Pfi
	.p2align	8
	.type	_Z9calcularCPKfS0_Pfi,@function
_Z9calcularCPKfS0_Pfi:                  ; @_Z9calcularCPKfS0_Pfi
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x2c
	s_load_b32 s3, s[0:1], 0x18
	s_waitcnt lgkmcnt(0)
	s_and_b32 s4, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_i32 s2, s15, s4
	v_add_nc_u32_e32 v0, s2, v0
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_gt_u32_e32 vcc_lo, s3, v0
	s_and_saveexec_b32 s3, vcc_lo
	s_cbranch_execz .LBB0_4
; %bb.1:
	s_load_b64 s[6:7], s[0:1], 0x10
	v_mov_b32_e32 v1, 0
	s_add_i32 s3, s2, s4
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_cmp_ge_u32 s2, s3
	v_lshlrev_b64 v[2:3], 2, v[0:1]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s6, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v3, vcc_lo
	global_store_b32 v[2:3], v1, off
	s_cbranch_scc1 .LBB0_4
; %bb.2:                                ; %.lr.ph
	s_load_b128 s[8:11], s[0:1], 0x0
	s_ashr_i32 s3, s2, 31
	v_cvt_f32_u32_e32 v0, v0
	s_lshl_b64 s[2:3], s[2:3], 2
	v_mov_b32_e32 v4, 0
	s_waitcnt lgkmcnt(0)
	s_add_u32 s0, s8, s2
	s_addc_u32 s1, s9, s3
	s_add_u32 s2, s10, s2
	s_addc_u32 s3, s11, s3
.LBB0_3:                                ; =>This Inner Loop Header: Depth=1
	s_clause 0x1
	global_load_b32 v5, v1, s[0:1]
	global_load_b32 v6, v1, s[2:3]
	s_add_i32 s4, s4, -1
	s_add_u32 s0, s0, 4
	s_addc_u32 s1, s1, 0
	s_add_u32 s2, s2, 4
	s_addc_u32 s3, s3, 0
	s_cmp_lg_u32 s4, 0
	s_waitcnt vmcnt(1)
	v_mul_f32_e32 v7, v5, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ceil_f32_e32 v7, v7
	v_cvt_i32_f32_e32 v7, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_and_b32_e32 v7, 1, v7
	v_cmp_eq_u32_e32 vcc_lo, 0, v7
	s_waitcnt vmcnt(0)
	v_cndmask_b32_e64 v6, -v6, v6, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v6, v5, v0
	v_add_f32_e32 v4, v4, v6
	global_store_b32 v[2:3], v4, off
	s_cbranch_scc1 .LBB0_3
.LBB0_4:                                ; %.loopexit
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z9calcularCPKfS0_Pfi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 8
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z9calcularCPKfS0_Pfi, .Lfunc_end0-_Z9calcularCPKfS0_Pfi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 292
; NumSgprs: 18
; NumVgprs: 8
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 8
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z16calcularC_sharedPKfS0_Pfi ; -- Begin function _Z16calcularC_sharedPKfS0_Pfi
	.globl	_Z16calcularC_sharedPKfS0_Pfi
	.p2align	8
	.type	_Z16calcularC_sharedPKfS0_Pfi,@function
_Z16calcularC_sharedPKfS0_Pfi:          ; @_Z16calcularC_sharedPKfS0_Pfi
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x2c
	s_load_b32 s3, s[0:1], 0x18
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[3:4], null, s15, s2, v[0:1]
	v_cmp_gt_u32_e32 vcc_lo, s3, v3
	s_and_saveexec_b32 s3, vcc_lo
	s_cbranch_execz .LBB1_5
; %bb.1:
	s_clause 0x1
	s_load_b64 s[8:9], s[0:1], 0x10
	s_load_b128 s[4:7], s[0:1], 0x0
	v_mov_b32_e32 v4, 0
	v_lshl_add_u32 v0, v0, 2, 0
	s_mov_b32 s0, 0
	s_cmp_eq_u32 s2, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[5:6], 2, v[3:4]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v1, vcc_lo, s8, v5
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v2, vcc_lo, s9, v6, vcc_lo
	v_add_co_u32 v7, vcc_lo, s4, v5
	v_add_co_ci_u32_e32 v8, vcc_lo, s5, v6, vcc_lo
	v_add_co_u32 v5, vcc_lo, s6, v5
	v_add_co_ci_u32_e32 v6, vcc_lo, s7, v6, vcc_lo
	global_store_b32 v[1:2], v4, off
	global_load_b32 v4, v[7:8], off
	global_load_b32 v5, v[5:6], off
	v_lshl_add_u32 v6, s2, 2, v0
	s_waitcnt vmcnt(1)
	ds_store_b32 v0, v4
	s_waitcnt vmcnt(0)
	ds_store_b32 v6, v5
	s_waitcnt lgkmcnt(0)
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_cbranch_scc1 .LBB1_5
; %bb.2:                                ; %.lr.ph
	global_load_b32 v0, v[1:2], off
	v_cvt_f32_u32_e32 v3, v3
	s_lshl_b32 s1, s2, 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_i32 s2, s1, 0
.LBB1_3:                                ; =>This Inner Loop Header: Depth=1
	s_add_i32 s3, s0, 0
	s_delay_alu instid0(SALU_CYCLE_1)
	v_mov_b32_e32 v4, s3
	s_add_i32 s3, s2, s0
	s_add_i32 s0, s0, 4
	v_mov_b32_e32 v5, s3
	s_cmp_lg_u32 s1, s0
	ds_load_b32 v4, v4
	ds_load_b32 v5, v5
	s_waitcnt lgkmcnt(1)
	v_mul_f32_e32 v6, v4, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ceil_f32_e32 v6, v6
	v_cvt_i32_f32_e32 v6, v6
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_and_b32_e32 v6, 1, v6
	v_cmp_eq_u32_e32 vcc_lo, 0, v6
	s_waitcnt lgkmcnt(0)
	v_cndmask_b32_e64 v5, -v5, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v5, v4, v3
	s_waitcnt vmcnt(0)
	v_add_f32_e32 v0, v0, v5
	s_cbranch_scc1 .LBB1_3
; %bb.4:                                ; %..loopexit_crit_edge
	global_store_b32 v[1:2], v0, off
.LBB1_5:                                ; %.loopexit
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z16calcularC_sharedPKfS0_Pfi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 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_end1:
	.size	_Z16calcularC_sharedPKfS0_Pfi, .Lfunc_end1-_Z16calcularC_sharedPKfS0_Pfi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 384
; 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: 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	_Z9calcularDPKfPfj      ; -- Begin function _Z9calcularDPKfPfj
	.globl	_Z9calcularDPKfPfj
	.p2align	8
	.type	_Z9calcularDPKfPfj,@function
_Z9calcularDPKfPfj:                     ; @_Z9calcularDPKfPfj
; %bb.0:
	s_clause 0x2
	s_load_b32 s5, s[0:1], 0x24
	s_load_b32 s6, s[0:1], 0x10
	s_load_b128 s[0:3], s[0:1], 0x0
	v_lshl_add_u32 v5, v0, 2, 0
	v_mov_b32_e32 v4, 0
	s_mov_b32 s4, s15
	ds_store_b32 v5, v4
	s_waitcnt lgkmcnt(0)
	s_and_b32 s5, s5, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_i32 s7, s15, s5
	v_lshl_add_u32 v1, s7, 1, v0
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_gt_u32_e32 vcc_lo, s6, v1
	s_and_saveexec_b32 s6, vcc_lo
	s_cbranch_execz .LBB2_2
; %bb.1:
	v_dual_mov_b32 v2, v4 :: v_dual_add_nc_u32 v3, s5, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[1:2], 2, v[1:2]
	v_lshlrev_b64 v[3:4], 2, v[3:4]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v1, vcc_lo, s0, v1
	v_add_co_ci_u32_e32 v2, vcc_lo, s1, v2, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v3, vcc_lo, s0, v3
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v4, vcc_lo
	s_clause 0x1
	global_load_b32 v1, v[1:2], off
	global_load_b32 v2, v[3:4], off
	s_waitcnt vmcnt(0)
	v_add_f32_e32 v1, v1, v2
	ds_store_b32 v5, v1
.LBB2_2:
	s_or_b32 exec_lo, exec_lo, s6
	s_cmp_lt_u32 s5, 2
	s_waitcnt lgkmcnt(0)
	s_barrier
.LBB2_3:                                ; =>This Inner Loop Header: Depth=1
	buffer_gl0_inv
	s_cbranch_scc1 .LBB2_7
; %bb.4:                                ; %.lr.ph
                                        ;   in Loop: Header=BB2_3 Depth=1
	s_lshr_b32 s0, s5, 1
	s_mov_b32 s1, exec_lo
	v_cmpx_gt_u32_e64 s0, v0
	s_cbranch_execz .LBB2_6
; %bb.5:                                ;   in Loop: Header=BB2_3 Depth=1
	v_lshl_add_u32 v1, s0, 2, v5
	ds_load_b32 v1, v1
	ds_load_b32 v2, v5
	s_waitcnt lgkmcnt(0)
	v_add_f32_e32 v1, v1, v2
	ds_store_b32 v5, v1
.LBB2_6:                                ;   in Loop: Header=BB2_3 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	s_waitcnt lgkmcnt(0)
	s_barrier
	s_cmp_lt_u32 s5, 4
	s_mov_b32 s5, s0
	s_branch .LBB2_3
.LBB2_7:                                ; %._crit_edge
	s_mov_b32 s5, 0
	s_mov_b32 s0, exec_lo
	v_cmpx_eq_u32_e32 0, v0
	s_cbranch_execz .LBB2_9
; %bb.8:
	v_mov_b32_e32 v0, 0
	s_lshl_b64 s[0:1], s[4:5], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s0, s2, s0
	s_addc_u32 s1, s3, s1
	ds_load_b32 v1, v0
	s_waitcnt lgkmcnt(0)
	global_store_b32 v0, v1, s[0:1]
.LBB2_9:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z9calcularDPKfPfj
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 6
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end2:
	.size	_Z9calcularDPKfPfj, .Lfunc_end2-_Z9calcularDPKfPfj
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 372
; NumSgprs: 18
; NumVgprs: 6
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 6
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z11calcularMaxPKfPfi   ; -- Begin function _Z11calcularMaxPKfPfi
	.globl	_Z11calcularMaxPKfPfi
	.p2align	8
	.type	_Z11calcularMaxPKfPfi,@function
_Z11calcularMaxPKfPfi:                  ; @_Z11calcularMaxPKfPfi
; %bb.0:
	s_clause 0x2
	s_load_b32 s5, s[0:1], 0x24
	s_load_b32 s6, s[0:1], 0x10
	s_load_b128 s[0:3], s[0:1], 0x0
	v_lshl_add_u32 v3, v0, 2, 0
	s_mov_b32 s4, s15
	s_waitcnt lgkmcnt(0)
	s_and_b32 s5, s5, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_i32 s7, s15, s5
	v_lshl_add_u32 v1, s7, 1, v0
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_gt_u32_e32 vcc_lo, s6, v1
	s_and_saveexec_b32 s6, vcc_lo
	s_cbranch_execz .LBB3_2
; %bb.1:
	v_mov_b32_e32 v2, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[4:5], 2, v[1:2]
	v_add_nc_u32_e32 v1, s5, v1
	v_lshlrev_b64 v[1:2], 2, v[1:2]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v1, vcc_lo, s0, v1
	v_add_co_ci_u32_e32 v2, vcc_lo, s1, v2, vcc_lo
	s_clause 0x1
	global_load_b32 v4, v[4:5], off
	global_load_b32 v1, v[1:2], off
	s_waitcnt vmcnt(0)
	v_cmp_gt_f32_e32 vcc_lo, v4, v1
	v_cndmask_b32_e32 v1, v1, v4, vcc_lo
	ds_store_b32 v3, v1
.LBB3_2:
	s_or_b32 exec_lo, exec_lo, s6
	s_cmp_lt_u32 s5, 2
	s_waitcnt vmcnt(0) lgkmcnt(0)
	s_waitcnt_vscnt null, 0x0
.LBB3_3:                                ; =>This Inner Loop Header: Depth=1
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	s_cbranch_scc1 .LBB3_8
; %bb.4:                                ;   in Loop: Header=BB3_3 Depth=1
	s_mov_b32 s0, s5
	s_lshr_b32 s5, s5, 1
	s_mov_b32 s1, exec_lo
	v_cmpx_gt_u32_e64 s5, v0
	s_cbranch_execz .LBB3_7
; %bb.5:                                ;   in Loop: Header=BB3_3 Depth=1
	v_lshl_add_u32 v1, s5, 2, v3
	ds_load_b32 v2, v3
	ds_load_b32 v1, v1
	s_waitcnt lgkmcnt(0)
	v_cmp_lt_f32_e32 vcc_lo, v2, v1
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB3_7
; %bb.6:                                ;   in Loop: Header=BB3_3 Depth=1
	ds_store_b32 v3, v1
.LBB3_7:                                ;   in Loop: Header=BB3_3 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	s_waitcnt lgkmcnt(0)
	s_cmp_lt_u32 s0, 4
	s_branch .LBB3_3
.LBB3_8:                                ; %._crit_edge
	s_mov_b32 s5, 0
	s_mov_b32 s0, exec_lo
	v_cmpx_eq_u32_e32 0, v0
	s_cbranch_execz .LBB3_10
; %bb.9:
	v_mov_b32_e32 v0, 0
	s_lshl_b64 s[0:1], s[4:5], 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s0, s2, s0
	s_addc_u32 s1, s3, s1
	ds_load_b32 v1, v0
	s_waitcnt lgkmcnt(0)
	global_store_b32 v0, v1, s[0:1]
.LBB3_10:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z11calcularMaxPKfPfi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 6
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end3:
	.size	_Z11calcularMaxPKfPfi, .Lfunc_end3-_Z11calcularMaxPKfPfi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 376
; NumSgprs: 18
; NumVgprs: 6
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 6
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.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
      - .offset:         24
        .size:           4
        .value_kind:     by_value
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         36
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         44
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         46
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         48
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         50
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         52
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         54
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         96
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 288
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z9calcularCPKfS0_Pfi
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z9calcularCPKfS0_Pfi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     8
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           4
        .value_kind:     by_value
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         36
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         44
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         46
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         48
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         50
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         52
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         54
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         96
        .size:           2
        .value_kind:     hidden_grid_dims
      - .offset:         152
        .size:           4
        .value_kind:     hidden_dynamic_lds_size
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 288
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z16calcularC_sharedPKfS0_Pfi
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z16calcularC_sharedPKfS0_Pfi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     9
    .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
      - .offset:         144
        .size:           4
        .value_kind:     hidden_dynamic_lds_size
    .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:           _Z9calcularDPKfPfj
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z9calcularDPKfPfj.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     6
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           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
      - .offset:         144
        .size:           4
        .value_kind:     hidden_dynamic_lds_size
    .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:           _Z11calcularMaxPKfPfi
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z11calcularMaxPKfPfi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     6
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
