#include <iostream>
#include <complex>
#include <cmath>
#include <iomanip>
#include <string>
#include <fstream>


using namespace std;


__global__ 
void z_funct(double * d_mat_re, double * d_mat_im, int *d_img, int nb_ite)
{
  int i = blockDim.x * blockIdx.x + threadIdx.x;
  double c_re = d_mat_re[i];
  double c_im = d_mat_im[i];
  double z_re = 0, z_im =0;
  double z_re_tmp = 0;
  int t=0;

  while ((z_re*z_re+z_im*z_im <= 4) && (t<nb_ite)) 
  {
    z_re_tmp = z_re*z_re - z_im*z_im + c_re;
    z_im = 2*z_im*z_re + c_im;
    z_re = z_re_tmp;
    t++;
  }
  d_img[i] = t;
}


int main(int argc, char * argv[])
{
  
  if (argc == 1)
  {
    cout << "Help" << endl 
      << " 8 args :" << endl << endl
      << "arg1 = min real part  |  arg2 = min imaginary part " << endl
      << "arg3 = max real part  |  arg4 = max imaginary part " << endl
      << "arg5 = number of points on the real axe  |  arg6 = number of points on the imaginary axe " << endl
      << "arg7 = nb of iterations  |  arg8 = limit convergence" 
      << endl << endl 
      << " 4 args :" << endl << endl
      << "arg1 = number of points on the real axe  |  arg2 = number of points on the imaginary axe " << endl
      << "arg3 = nb of iterations " 
      << endl << endl ;
    return 1;
  }

  double max_re, max_im, min_re, min_im;
  int nb_pts_re, nb_pts_im, nb_ite;

  if (argc == 8)
  {
    try 
    {
      min_re = stod(argv[1]);
      min_im = stod(argv[2]);
      max_re = stod(argv[3]);
      max_im = stod(argv[4]);
      nb_pts_re = stoi(argv[5]);
      nb_pts_im = stoi(argv[6]);
      nb_ite = stoi(argv[7]);
    }
    catch (...)
    { 
      cout << "Bad Args : see help (type nameofprogram without args)" << endl << endl;
      return 1;
    }
  }
  if (argc == 4 ) 
  {
    min_re = -2;
    min_im = -1;
    max_re = 1;
    max_im = 1;

    try 
    {
      nb_pts_re = stoi(argv[1]);
      nb_pts_im = stoi(argv[2]);
      nb_ite = stoi(argv[3]);
    }
    catch (...)
    { 
      cout << "Bad Args : see help (type nameofprogram without args)" << endl << endl;
      return 1;
    }
  }

  cout << "Initializing..." << endl;

  int size_d = sizeof(double)*nb_pts_re*nb_pts_im;
  int size_i = sizeof(int)*nb_pts_re*nb_pts_im;
  
  double * mat_re = (double *)malloc(size_d);
  double * mat_im = (double *)malloc(size_d);

  double re, im;

  for (int i=0; i<nb_pts_im; i++)
  {
    im = max_im - (max_im-min_im)/nb_pts_im*i;

    for (int j=0; j<nb_pts_re; j++)
    {
      re = max_re - (max_re-min_re)/nb_pts_re*j;
      mat_re[i*nb_pts_re+j] = re;
      mat_im[i*nb_pts_re+j] = im;
    }
  }

  double *d_mat_re, *d_mat_im;
  int *d_img;
  cudaMalloc(&d_mat_re,size_d);
  cudaMalloc(&d_mat_im,size_d);
  cudaMalloc(&d_img,size_i);
  
  cudaMemcpy(d_mat_re, mat_re, size_d, cudaMemcpyHostToDevice);
  cudaMemcpy(d_mat_im, mat_im, size_d, cudaMemcpyHostToDevice);

  cout << "Running on GPU..." << endl;
  dim3 blockDim = 1024;
  dim3 gridDim = (nb_pts_re*nb_pts_im)/1024 + 1;
  z_funct<<<gridDim,blockDim>>>(d_mat_re, d_mat_im, d_img, nb_ite);
  
  cout << "Fetching datas..." << endl; 
  int * img = (int*) malloc(size_i);

  cudaMemcpy(mat_re, d_mat_re, size_d, cudaMemcpyDeviceToHost);
  cudaMemcpy(mat_im, d_mat_im, size_d, cudaMemcpyDeviceToHost);
  cudaMemcpy(img, d_img, size_i, cudaMemcpyDeviceToHost);


  cout << "Writing on the disk..." << endl;
  ofstream file; file.open("conv");
  for (int i=0; i<nb_pts_im; i++)
  {
    for (int j=0; j<nb_pts_re; j++)
    {
      file << setw(15) << img[i*nb_pts_re+j] ;
    }
    file << endl ;
  }

  file.close();
/*
  file.open("val");
  for (int i=0; i<nb_pts_im; i++)
  {
    for (int j=0; j<nb_pts_re; j++)
    {
      file << setw(15) << pow(mat_re[i*nb_pts_re+j],2) + pow(mat_im[i*nb_pts_re+j],2) ;
    }
    file << endl ;
  }

  file.close();
*/
  cout << "Done !" << endl;
  return 0;
}


	.file	"tmpxft_0029c254_00000000-6_cu_mandelbrot.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4251:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4251:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z31__device_stub__Z7z_functPdS_PiiPdS_Pii
	.type	_Z31__device_stub__Z7z_functPdS_PiiPdS_Pii, @function
_Z31__device_stub__Z7z_functPdS_PiiPdS_Pii:
.LFB4273:
	.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	.L2
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z7z_functPdS_Pii(%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
.L2:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4273:
	.size	_Z31__device_stub__Z7z_functPdS_PiiPdS_Pii, .-_Z31__device_stub__Z7z_functPdS_PiiPdS_Pii
	.globl	_Z7z_functPdS_Pii
	.type	_Z7z_functPdS_Pii, @function
_Z7z_functPdS_Pii:
.LFB4274:
	.cfi_startproc
	endbr64
	jmp	_Z31__device_stub__Z7z_functPdS_PiiPdS_Pii
	.cfi_endproc
.LFE4274:
	.size	_Z7z_functPdS_Pii, .-_Z7z_functPdS_Pii
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"_Z7z_functPdS_Pii"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4276:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdx
	movq	%rax, %rdi
	leaq	_Z7z_functPdS_Pii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE4276:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.text._ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev,"axG",@progbits,_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD5Ev,comdat
	.align 2
	.weak	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.type	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev, @function
_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev:
.LFB4355:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	call	__errno_location@PLT
	cmpl	$0, (%rax)
	jne	.L10
	movl	(%rbx), %edx
	movl	%edx, (%rax)
.L10:
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4355:
	.size	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev, .-_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.weak	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	.set	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev,_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.section	.rodata.str1.1
.LC1:
	.string	"stoi"
	.text
	.type	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0, @function
_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0:
.LFB4965:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4965
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdi, %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 96
	movl	%edx, 12(%rsp)
	leaq	28(%rsp), %r13
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	call	__errno_location@PLT
	movl	12(%rsp), %edx
	leaq	32(%rsp), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rbp
	movl	(%rax), %eax
	movl	%eax, 28(%rsp)
	xorl	%eax, %eax
	movl	%eax, 0(%rbp)
	call	__isoc23_strtol@PLT
	movq	32(%rsp), %rdx
	cmpq	%rdx, %rbx
	jne	.L14
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	leaq	.LC1(%rip), %rdi
.LEHB0:
	call	_ZSt24__throw_invalid_argumentPKc@PLT
.L14:
	cmpl	$34, 0(%rbp)
	je	.L16
	movl	$2147483648, %ecx
	movl	$4294967295, %esi
	addq	%rax, %rcx
	cmpq	%rcx, %rsi
	jnb	.L17
.L16:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	leaq	.LC1(%rip), %rdi
	call	_ZSt20__throw_out_of_rangePKc@PLT
.LEHE0:
.L17:
	testq	%r12, %r12
	je	.L19
	subq	%rbx, %rdx
	movq	%rdx, (%r12)
.L19:
	movq	%r13, %rdi
	movl	%eax, 12(%rsp)
	call	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	movl	12(%rsp), %eax
	movq	40(%rsp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	jmp	.L27
.L23:
	endbr64
	movq	%rax, %rbx
.L20:
	movq	%r13, %rdi
	call	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	movq	%rbx, %rdi
.LEHB1:
	call	_Unwind_Resume@PLT
.LEHE1:
.L27:
	call	__stack_chk_fail@PLT
.L22:
	addq	$56, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4965:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4965:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4965-.LLSDACSB4965
.LLSDACSB4965:
	.uleb128 .LEHB0-.LFB4965
	.uleb128 .LEHE0-.LEHB0
	.uleb128 .L23-.LFB4965
	.uleb128 0
	.uleb128 .LEHB1-.LFB4965
	.uleb128 .LEHE1-.LEHB1
	.uleb128 0
	.uleb128 0
.LLSDACSE4965:
	.text
	.size	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0, .-_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0
	.section	.text._ZZN9__gnu_cxx6__stoaIddcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev,"axG",@progbits,_ZZN9__gnu_cxx6__stoaIddcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD5Ev,comdat
	.align 2
	.weak	_ZZN9__gnu_cxx6__stoaIddcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.type	_ZZN9__gnu_cxx6__stoaIddcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev, @function
_ZZN9__gnu_cxx6__stoaIddcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev:
.LFB4409:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	call	__errno_location@PLT
	cmpl	$0, (%rax)
	jne	.L30
	movl	(%rbx), %edx
	movl	%edx, (%rax)
.L30:
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4409:
	.size	_ZZN9__gnu_cxx6__stoaIddcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev, .-_ZZN9__gnu_cxx6__stoaIddcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.weak	_ZZN9__gnu_cxx6__stoaIddcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	.set	_ZZN9__gnu_cxx6__stoaIddcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev,_ZZN9__gnu_cxx6__stoaIddcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.section	.rodata.str1.1
.LC2:
	.string	"stod"
	.text
	.type	_ZNSt7__cxx114stodERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm.isra.0, @function
_ZNSt7__cxx114stodERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm.isra.0:
.LFB4966:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4966
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdi, %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %r13
	call	__errno_location@PLT
	leaq	32(%rsp), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rbp
	movl	(%rax), %eax
	movl	%eax, 28(%rsp)
	xorl	%eax, %eax
	movl	%eax, 0(%rbp)
	call	strtod@PLT
	movq	32(%rsp), %rax
	cmpq	%rax, %rbx
	jne	.L34
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L46
	leaq	.LC2(%rip), %rdi
.LEHB2:
	call	_ZSt24__throw_invalid_argumentPKc@PLT
.L34:
	cmpl	$34, 0(%rbp)
	jne	.L36
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L46
	leaq	.LC2(%rip), %rdi
	call	_ZSt20__throw_out_of_rangePKc@PLT
.LEHE2:
.L36:
	testq	%r12, %r12
	je	.L38
	subq	%rbx, %rax
	movq	%rax, (%r12)
.L38:
	movq	%r13, %rdi
	movsd	%xmm0, 8(%rsp)
	call	_ZZN9__gnu_cxx6__stoaIddcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	movsd	8(%rsp), %xmm0
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	je	.L41
	jmp	.L46
.L42:
	endbr64
	movq	%rax, %rbx
.L39:
	movq	%r13, %rdi
	call	_ZZN9__gnu_cxx6__stoaIddcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L46
	movq	%rbx, %rdi
.LEHB3:
	call	_Unwind_Resume@PLT
.LEHE3:
.L46:
	call	__stack_chk_fail@PLT
.L41:
	addq	$56, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4966:
	.section	.gcc_except_table
.LLSDA4966:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4966-.LLSDACSB4966
.LLSDACSB4966:
	.uleb128 .LEHB2-.LFB4966
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L42-.LFB4966
	.uleb128 0
	.uleb128 .LEHB3-.LFB4966
	.uleb128 .LEHE3-.LEHB3
	.uleb128 0
	.uleb128 0
.LLSDACSE4966:
	.text
	.size	_ZNSt7__cxx114stodERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm.isra.0, .-_ZNSt7__cxx114stodERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm.isra.0
	.section	.rodata._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.str1.1,"aMS",@progbits,1
.LC3:
	.string	"basic_string: construction from null is not valid"
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC5IS3_EEPKcRKS3_,comdat
	.align 2
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, @function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_:
.LFB4596:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	16(%rdi), %rax
	movq	%rax, (%rdi)
	testq	%rsi, %rsi
	jne	.L50
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L55
	leaq	.LC3(%rip), %rdi
	call	_ZSt19__throw_logic_errorPKc@PLT
.L50:
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	movq	%rsi, %rbp
	call	strlen@PLT
	movq	%rax, (%rsp)
	leaq	0(%rbp,%rax), %r12
	cmpq	$15, %rax
	jbe	.L52
	movq	%rsp, %rsi
	xorl	%edx, %edx
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm@PLT
	movq	%rax, (%rbx)
	movq	(%rsp), %rax
	movq	%rax, 16(%rbx)
.L52:
	movq	(%rbx), %rdi
	movq	%r12, %rdx
	movq	%rbp, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcPKcS7_@PLT
	movq	(%rsp), %rax
	movq	(%rbx), %rdx
	movq	%rax, 8(%rbx)
	movb	$0, (%rdx,%rax)
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L53
.L55:
	call	__stack_chk_fail@PLT
.L53:
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4596:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, .-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
	.set	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.section	.rodata.str1.1
.LC7:
	.string	"Help"
.LC8:
	.string	" 8 args :"
.LC9:
	.string	"arg1 = min real part  |  arg2 = min imaginary part "
.LC10:
	.string	"arg3 = max real part  |  arg4 = max imaginary part "
.LC11:
	.string	"arg5 = number of points on the real axe  |  arg6 = number of points on the imaginary axe "
.LC12:
	.string	"arg7 = nb of iterations  |  arg8 = limit convergence"
.LC13:
	.string	" 4 args :"
.LC14:
	.string	"arg1 = number of points on the real axe  |  arg2 = number of points on the imaginary axe "
.LC15:
	.string	"arg3 = nb of iterations "
.LC16:
	.string	"Initializing..."
.LC17:
	.string	"Running on GPU..."
.LC18:
	.string	"Fetching datas..."
.LC19:
	.string	"Writing on the disk..."
.LC20:
	.string	"conv"
.LC21:
	.string	"Done !"
.LC22:
	.string	"Bad Args : see help (type nameofprogram without args)"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4248:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4248
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$632, %rsp
	.cfi_def_cfa_offset 688
	movq	%fs:40, %rax
	movq	%rax, 616(%rsp)
	xorl	%eax, %eax
	cmpl	$1, %edi
	jne	.L57
	leaq	.LC7(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
.LEHB4:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC8(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC9(%rip), %rsi
	movq	%rax, %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	.LC10(%rip), %rsi
	movq	%rax, %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	.LC11(%rip), %rsi
	movq	%rax, %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	.LC12(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC13(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	leaq	.LC14(%rip), %rsi
	movq	%rax, %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	.LC15(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
.LEHE4:
	jmp	.L58
.L57:
	movq	%rsi, %r13
	cmpl	$8, %edi
	jne	.L59
	leaq	92(%rsp), %rbp
	leaq	104(%rsp), %r14
	movq	8(%rsi), %rsi
	movq	%rbp, %rdx
	movq	%r14, %rdi
.LEHB5:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE5:
	movq	104(%rsp), %rdi
	xorl	%esi, %esi
.LEHB6:
	call	_ZNSt7__cxx114stodERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm.isra.0
.LEHE6:
	movq	%r14, %rdi
	movsd	%xmm0, 32(%rsp)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	16(%r13), %rsi
	movq	%rbp, %rdx
	movq	%r14, %rdi
.LEHB7:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE7:
	movq	104(%rsp), %rdi
	xorl	%esi, %esi
.LEHB8:
	call	_ZNSt7__cxx114stodERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm.isra.0
.LEHE8:
	movq	%r14, %rdi
	movsd	%xmm0, 40(%rsp)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	24(%r13), %rsi
	movq	%rbp, %rdx
	movq	%r14, %rdi
.LEHB9:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE9:
	movq	104(%rsp), %rdi
	xorl	%esi, %esi
.LEHB10:
	call	_ZNSt7__cxx114stodERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm.isra.0
.LEHE10:
	movq	%r14, %rdi
	movsd	%xmm0, 16(%rsp)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	32(%r13), %rsi
	movq	%rbp, %rdx
	movq	%r14, %rdi
.LEHB11:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE11:
	movq	104(%rsp), %rdi
	xorl	%esi, %esi
.LEHB12:
	call	_ZNSt7__cxx114stodERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm.isra.0
.LEHE12:
	movq	%r14, %rdi
	movsd	%xmm0, 8(%rsp)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	40(%r13), %rsi
	movq	%rbp, %rdx
	movq	%r14, %rdi
.LEHB13:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE13:
	movq	104(%rsp), %rdi
	movl	$10, %edx
	xorl	%esi, %esi
.LEHB14:
	call	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0
.LEHE14:
	movq	%r14, %rdi
	movl	%eax, %ebx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	48(%r13), %rsi
	movq	%rbp, %rdx
	movq	%r14, %rdi
.LEHB15:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE15:
	movq	104(%rsp), %rdi
	movl	$10, %edx
	xorl	%esi, %esi
.LEHB16:
	call	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0
.LEHE16:
	movq	%r14, %rdi
	movl	%eax, %r12d
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	56(%r13), %rsi
	movq	%rbp, %rdx
	movq	%r14, %rdi
.LEHB17:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE17:
	movq	104(%rsp), %rdi
	movl	$10, %edx
	xorl	%esi, %esi
.LEHB18:
	call	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0
.LEHE18:
	movq	%r14, %rdi
	movl	%eax, %ebp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L60
.L59:
	cmpl	$4, %edi
	jne	.L60
	leaq	92(%rsp), %rbp
	leaq	104(%rsp), %r14
	movq	8(%rsi), %rsi
	movq	%rbp, %rdx
	movq	%r14, %rdi
.LEHB19:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE19:
	movq	104(%rsp), %rdi
	movl	$10, %edx
	xorl	%esi, %esi
.LEHB20:
	call	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0
.LEHE20:
	movq	%r14, %rdi
	movl	%eax, %ebx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	16(%r13), %rsi
	movq	%rbp, %rdx
	movq	%r14, %rdi
.LEHB21:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE21:
	movq	104(%rsp), %rdi
	movl	$10, %edx
	xorl	%esi, %esi
.LEHB22:
	call	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0
.LEHE22:
	movq	%r14, %rdi
	movl	%eax, %r12d
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	24(%r13), %rsi
	movq	%rbp, %rdx
	movq	%r14, %rdi
.LEHB23:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
.LEHE23:
	movq	104(%rsp), %rdi
	movl	$10, %edx
	xorl	%esi, %esi
.LEHB24:
	call	_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.isra.0
.LEHE24:
	movq	%r14, %rdi
	movl	%eax, %ebp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movsd	.LC6(%rip), %xmm5
	movsd	.LC4(%rip), %xmm3
	movsd	.LC5(%rip), %xmm4
	movsd	%xmm3, 40(%rsp)
	movsd	%xmm4, 32(%rsp)
	movsd	%xmm5, 8(%rsp)
	movsd	%xmm5, 16(%rsp)
.L60:
	leaq	.LC16(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	movslq	%ebx, %r13
.LEHB25:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movl	%ebx, %eax
	imull	%r12d, %eax
	leal	0(,%rax,4), %r14d
	sall	$3, %eax
	cltq
	movq	%rax, %rdi
	movq	%rax, (%rsp)
	call	malloc@PLT
	movq	(%rsp), %rdi
	movq	%rax, 24(%rsp)
	call	malloc@PLT
	leaq	0(,%r13,8), %rdi
	xorl	%esi, %esi
	movq	%rax, %r15
	xorl	%eax, %eax
.L61:
	cmpl	%eax, %r12d
	jle	.L112
	cvtsi2sdl	%r12d, %xmm1
	movsd	8(%rsp), %xmm0
	movq	%rsi, %rcx
	xorl	%edx, %edx
	subsd	40(%rsp), %xmm0
	divsd	%xmm1, %xmm0
	cvtsi2sdl	%eax, %xmm1
	mulsd	%xmm1, %xmm0
	movsd	8(%rsp), %xmm1
	subsd	%xmm0, %xmm1
.L62:
	cmpl	%edx, %ebx
	jle	.L113
	cvtsi2sdl	%ebx, %xmm2
	movsd	16(%rsp), %xmm0
	subsd	32(%rsp), %xmm0
	movsd	%xmm1, (%r15,%rcx)
	movq	24(%rsp), %r10
	divsd	%xmm2, %xmm0
	cvtsi2sdl	%edx, %xmm2
	incl	%edx
	mulsd	%xmm2, %xmm0
	movsd	16(%rsp), %xmm2
	subsd	%xmm0, %xmm2
	movsd	%xmm2, (%r10,%rcx)
	addq	$8, %rcx
	jmp	.L62
.L113:
	incl	%eax
	addq	%rdi, %rsi
	jmp	.L61
.L112:
	movq	(%rsp), %rsi
	leaq	56(%rsp), %rdi
	movslq	%r14d, %r14
	call	cudaMalloc@PLT
	movq	(%rsp), %rsi
	leaq	64(%rsp), %rdi
	call	cudaMalloc@PLT
	leaq	72(%rsp), %rdi
	movq	%r14, %rsi
	call	cudaMalloc@PLT
	movq	(%rsp), %rdx
	movq	24(%rsp), %rsi
	movl	$1, %ecx
	movq	56(%rsp), %rdi
	call	cudaMemcpy@PLT
	movq	(%rsp), %rdx
	movq	64(%rsp), %rdi
	movq	%r15, %rsi
	movl	$1, %ecx
	call	cudaMemcpy@PLT
	leaq	.LC17(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movl	%ebx, %eax
	movl	$1024, %esi
	xorl	%r9d, %r9d
	imull	%r12d, %eax
	movl	$4194305, %ecx
	xorl	%r8d, %r8d
	movl	$1, 88(%rsp)
	salq	$10, %rcx
	movq	%rcx, 80(%rsp)
	cltd
	idivl	%esi
	movq	%rcx, %rdx
	movl	$1, %ecx
	incl	%eax
	movl	%eax, 92(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 96(%rsp)
	movq	92(%rsp), %rdi
	movl	100(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L65
	movq	72(%rsp), %rdx
	movq	64(%rsp), %rsi
	movl	%ebp, %ecx
	movq	56(%rsp), %rdi
	call	_Z31__device_stub__Z7z_functPdS_PiiPdS_Pii
.L65:
	leaq	.LC18(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	%r14, %rdi
	call	malloc@PLT
	movq	(%rsp), %rdx
	movq	56(%rsp), %rsi
	movl	$2, %ecx
	movq	24(%rsp), %rdi
	movq	%rax, %rbp
	call	cudaMemcpy@PLT
	movq	(%rsp), %rdx
	movq	64(%rsp), %rsi
	movq	%r15, %rdi
	movl	$2, %ecx
	call	cudaMemcpy@PLT
	movq	72(%rsp), %rsi
	movq	%r14, %rdx
	movq	%rbp, %rdi
	movl	$2, %ecx
	call	cudaMemcpy@PLT
	leaq	.LC19(%rip), %rsi
	leaq	_ZSt4cout(%rip), %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	104(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, (%rsp)
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev@PLT
.LEHE25:
	movq	(%rsp), %rdi
	movl	$16, %edx
	leaq	.LC20(%rip), %rsi
.LEHB26:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode@PLT
	salq	$2, %r13
	xorl	%r15d, %r15d
.L66:
	cmpl	%r15d, %r12d
	jle	.L114
	xorl	%r14d, %r14d
.L68:
	cmpl	%r14d, %ebx
	jle	.L115
	movq	104(%rsp), %rax
	movl	0(%rbp,%r14,4), %esi
	movq	(%rsp), %rdi
	movq	-24(%rax), %rax
	movq	$15, 120(%rsp,%rax)
	call	_ZNSolsEi@PLT
	incq	%r14
	jmp	.L68
.L115:
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	(%rsp), %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	incl	%r15d
	addq	%r13, %rbp
	jmp	.L66
.L114:
	movq	(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv@PLT
	leaq	.LC21(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
.LEHE26:
	movq	(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	xorl	%eax, %eax
	jmp	.L56
.L91:
	endbr64
	jmp	.L109
.L93:
	endbr64
	jmp	.L109
.L94:
	endbr64
	jmp	.L109
.L95:
	endbr64
	jmp	.L109
.L96:
	endbr64
	jmp	.L109
.L97:
	endbr64
	jmp	.L109
.L98:
	endbr64
.L109:
	movq	%rax, %rbx
.L76:
	movq	%r14, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L70
.L92:
	endbr64
	movq	%rax, %rbx
.L70:
	movq	%rbx, %rdi
	call	__cxa_begin_catch@PLT
	leaq	.LC22(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
.LEHB27:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
.LEHE27:
.L84:
.LEHB28:
	call	__cxa_end_catch@PLT
.LEHE28:
.L58:
	movl	$1, %eax
	jmp	.L56
.L99:
	endbr64
	movq	%rax, %rbx
.L78:
	call	__cxa_end_catch@PLT
	jmp	.L111
.L100:
	endbr64
	jmp	.L110
.L102:
	endbr64
	jmp	.L110
.L103:
	endbr64
.L110:
	movq	%rax, %rbx
.L83:
	movq	%r14, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L81
.L101:
	endbr64
	movq	%rax, %rbx
.L81:
	movq	%rbx, %rdi
	call	__cxa_begin_catch@PLT
	leaq	.LC22(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
.LEHB29:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E@PLT
.LEHE29:
	jmp	.L84
.L104:
	endbr64
	movq	%rax, %rbx
.L85:
	call	__cxa_end_catch@PLT
	jmp	.L111
.L105:
	endbr64
	movq	%rax, %rbx
.L87:
	movq	(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
.L111:
	movq	616(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L108
	movq	%rbx, %rdi
.LEHB30:
	call	_Unwind_Resume@PLT
.LEHE30:
.L56:
	movq	616(%rsp), %rdx
	subq	%fs:40, %rdx
	je	.L89
.L108:
	call	__stack_chk_fail@PLT
.L89:
	addq	$632, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4248:
	.section	.gcc_except_table
	.align 4
.LLSDA4248:
	.byte	0xff
	.byte	0x9b
	.uleb128 .LLSDATT4248-.LLSDATTD4248
.LLSDATTD4248:
	.byte	0x1
	.uleb128 .LLSDACSE4248-.LLSDACSB4248
.LLSDACSB4248:
	.uleb128 .LEHB4-.LFB4248
	.uleb128 .LEHE4-.LEHB4
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB5-.LFB4248
	.uleb128 .LEHE5-.LEHB5
	.uleb128 .L92-.LFB4248
	.uleb128 0x1
	.uleb128 .LEHB6-.LFB4248
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L91-.LFB4248
	.uleb128 0x3
	.uleb128 .LEHB7-.LFB4248
	.uleb128 .LEHE7-.LEHB7
	.uleb128 .L92-.LFB4248
	.uleb128 0x1
	.uleb128 .LEHB8-.LFB4248
	.uleb128 .LEHE8-.LEHB8
	.uleb128 .L93-.LFB4248
	.uleb128 0x3
	.uleb128 .LEHB9-.LFB4248
	.uleb128 .LEHE9-.LEHB9
	.uleb128 .L92-.LFB4248
	.uleb128 0x1
	.uleb128 .LEHB10-.LFB4248
	.uleb128 .LEHE10-.LEHB10
	.uleb128 .L94-.LFB4248
	.uleb128 0x3
	.uleb128 .LEHB11-.LFB4248
	.uleb128 .LEHE11-.LEHB11
	.uleb128 .L92-.LFB4248
	.uleb128 0x1
	.uleb128 .LEHB12-.LFB4248
	.uleb128 .LEHE12-.LEHB12
	.uleb128 .L95-.LFB4248
	.uleb128 0x3
	.uleb128 .LEHB13-.LFB4248
	.uleb128 .LEHE13-.LEHB13
	.uleb128 .L92-.LFB4248
	.uleb128 0x1
	.uleb128 .LEHB14-.LFB4248
	.uleb128 .LEHE14-.LEHB14
	.uleb128 .L96-.LFB4248
	.uleb128 0x3
	.uleb128 .LEHB15-.LFB4248
	.uleb128 .LEHE15-.LEHB15
	.uleb128 .L92-.LFB4248
	.uleb128 0x1
	.uleb128 .LEHB16-.LFB4248
	.uleb128 .LEHE16-.LEHB16
	.uleb128 .L97-.LFB4248
	.uleb128 0x3
	.uleb128 .LEHB17-.LFB4248
	.uleb128 .LEHE17-.LEHB17
	.uleb128 .L92-.LFB4248
	.uleb128 0x1
	.uleb128 .LEHB18-.LFB4248
	.uleb128 .LEHE18-.LEHB18
	.uleb128 .L98-.LFB4248
	.uleb128 0x3
	.uleb128 .LEHB19-.LFB4248
	.uleb128 .LEHE19-.LEHB19
	.uleb128 .L101-.LFB4248
	.uleb128 0x1
	.uleb128 .LEHB20-.LFB4248
	.uleb128 .LEHE20-.LEHB20
	.uleb128 .L100-.LFB4248
	.uleb128 0x3
	.uleb128 .LEHB21-.LFB4248
	.uleb128 .LEHE21-.LEHB21
	.uleb128 .L101-.LFB4248
	.uleb128 0x1
	.uleb128 .LEHB22-.LFB4248
	.uleb128 .LEHE22-.LEHB22
	.uleb128 .L102-.LFB4248
	.uleb128 0x3
	.uleb128 .LEHB23-.LFB4248
	.uleb128 .LEHE23-.LEHB23
	.uleb128 .L101-.LFB4248
	.uleb128 0x1
	.uleb128 .LEHB24-.LFB4248
	.uleb128 .LEHE24-.LEHB24
	.uleb128 .L103-.LFB4248
	.uleb128 0x3
	.uleb128 .LEHB25-.LFB4248
	.uleb128 .LEHE25-.LEHB25
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB26-.LFB4248
	.uleb128 .LEHE26-.LEHB26
	.uleb128 .L105-.LFB4248
	.uleb128 0
	.uleb128 .LEHB27-.LFB4248
	.uleb128 .LEHE27-.LEHB27
	.uleb128 .L99-.LFB4248
	.uleb128 0
	.uleb128 .LEHB28-.LFB4248
	.uleb128 .LEHE28-.LEHB28
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB29-.LFB4248
	.uleb128 .LEHE29-.LEHB29
	.uleb128 .L104-.LFB4248
	.uleb128 0
	.uleb128 .LEHB30-.LFB4248
	.uleb128 .LEHE30-.LEHB30
	.uleb128 0
	.uleb128 0
.LLSDACSE4248:
	.byte	0x1
	.byte	0
	.byte	0
	.byte	0x7d
	.align 4
	.long	0

.LLSDATT4248:
	.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
.LC4:
	.long	0
	.long	-1074790400
	.align 8
.LC5:
	.long	0
	.long	-1073741824
	.align 8
.LC6:
	.long	0
	.long	1072693248
	.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 <iostream>
#include <complex>
#include <cmath>
#include <iomanip>
#include <string>
#include <fstream>


using namespace std;


__global__ 
void z_funct(double * d_mat_re, double * d_mat_im, int *d_img, int nb_ite)
{
  int i = blockDim.x * blockIdx.x + threadIdx.x;
  double c_re = d_mat_re[i];
  double c_im = d_mat_im[i];
  double z_re = 0, z_im =0;
  double z_re_tmp = 0;
  int t=0;

  while ((z_re*z_re+z_im*z_im <= 4) && (t<nb_ite)) 
  {
    z_re_tmp = z_re*z_re - z_im*z_im + c_re;
    z_im = 2*z_im*z_re + c_im;
    z_re = z_re_tmp;
    t++;
  }
  d_img[i] = t;
}


int main(int argc, char * argv[])
{
  
  if (argc == 1)
  {
    cout << "Help" << endl 
      << " 8 args :" << endl << endl
      << "arg1 = min real part  |  arg2 = min imaginary part " << endl
      << "arg3 = max real part  |  arg4 = max imaginary part " << endl
      << "arg5 = number of points on the real axe  |  arg6 = number of points on the imaginary axe " << endl
      << "arg7 = nb of iterations  |  arg8 = limit convergence" 
      << endl << endl 
      << " 4 args :" << endl << endl
      << "arg1 = number of points on the real axe  |  arg2 = number of points on the imaginary axe " << endl
      << "arg3 = nb of iterations " 
      << endl << endl ;
    return 1;
  }

  double max_re, max_im, min_re, min_im;
  int nb_pts_re, nb_pts_im, nb_ite;

  if (argc == 8)
  {
    try 
    {
      min_re = stod(argv[1]);
      min_im = stod(argv[2]);
      max_re = stod(argv[3]);
      max_im = stod(argv[4]);
      nb_pts_re = stoi(argv[5]);
      nb_pts_im = stoi(argv[6]);
      nb_ite = stoi(argv[7]);
    }
    catch (...)
    { 
      cout << "Bad Args : see help (type nameofprogram without args)" << endl << endl;
      return 1;
    }
  }
  if (argc == 4 ) 
  {
    min_re = -2;
    min_im = -1;
    max_re = 1;
    max_im = 1;

    try 
    {
      nb_pts_re = stoi(argv[1]);
      nb_pts_im = stoi(argv[2]);
      nb_ite = stoi(argv[3]);
    }
    catch (...)
    { 
      cout << "Bad Args : see help (type nameofprogram without args)" << endl << endl;
      return 1;
    }
  }

  cout << "Initializing..." << endl;

  int size_d = sizeof(double)*nb_pts_re*nb_pts_im;
  int size_i = sizeof(int)*nb_pts_re*nb_pts_im;
  
  double * mat_re = (double *)malloc(size_d);
  double * mat_im = (double *)malloc(size_d);

  double re, im;

  for (int i=0; i<nb_pts_im; i++)
  {
    im = max_im - (max_im-min_im)/nb_pts_im*i;

    for (int j=0; j<nb_pts_re; j++)
    {
      re = max_re - (max_re-min_re)/nb_pts_re*j;
      mat_re[i*nb_pts_re+j] = re;
      mat_im[i*nb_pts_re+j] = im;
    }
  }

  double *d_mat_re, *d_mat_im;
  int *d_img;
  hipMalloc(&d_mat_re,size_d);
  hipMalloc(&d_mat_im,size_d);
  hipMalloc(&d_img,size_i);
  
  hipMemcpy(d_mat_re, mat_re, size_d, hipMemcpyHostToDevice);
  hipMemcpy(d_mat_im, mat_im, size_d, hipMemcpyHostToDevice);

  cout << "Running on GPU..." << endl;
  dim3 blockDim = 1024;
  dim3 gridDim = (nb_pts_re*nb_pts_im)/1024 + 1;
  z_funct<<<gridDim,blockDim>>>(d_mat_re, d_mat_im, d_img, nb_ite);
  
  cout << "Fetching datas..." << endl; 
  int * img = (int*) malloc(size_i);

  hipMemcpy(mat_re, d_mat_re, size_d, hipMemcpyDeviceToHost);
  hipMemcpy(mat_im, d_mat_im, size_d, hipMemcpyDeviceToHost);
  hipMemcpy(img, d_img, size_i, hipMemcpyDeviceToHost);


  cout << "Writing on the disk..." << endl;
  ofstream file; file.open("conv");
  for (int i=0; i<nb_pts_im; i++)
  {
    for (int j=0; j<nb_pts_re; j++)
    {
      file << setw(15) << img[i*nb_pts_re+j] ;
    }
    file << endl ;
  }

  file.close();
/*
  file.open("val");
  for (int i=0; i<nb_pts_im; i++)
  {
    for (int j=0; j<nb_pts_re; j++)
    {
      file << setw(15) << pow(mat_re[i*nb_pts_re+j],2) + pow(mat_im[i*nb_pts_re+j],2) ;
    }
    file << endl ;
  }

  file.close();
*/
  cout << "Done !" << endl;
  return 0;
}


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

                                        # End of file scope inline assembly
	.globl	_Z22__device_stub__z_functPdS_Pii # -- Begin function _Z22__device_stub__z_functPdS_Pii
	.type	_Z22__device_stub__z_functPdS_Pii,@function
_Z22__device_stub__z_functPdS_Pii:      # @_Z22__device_stub__z_functPdS_Pii
	.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	$_Z7z_functPdS_Pii, %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	_Z22__device_stub__z_functPdS_Pii, .Lfunc_end0-_Z22__device_stub__z_functPdS_Pii
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI1_0:
	.quad	0x3ff0000000000000              # double 1
.LCPI1_1:
	.quad	0xc000000000000000              # double -2
.LCPI1_2:
	.quad	0xbff0000000000000              # double -1
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$616, %rsp                      # imm = 0x268
	.cfi_def_cfa_offset 672
	.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, %r12
	cmpl	$8, %edi
	je	.LBB1_4
# %bb.1:
	cmpl	$4, %edi
	je	.LBB1_139
# %bb.2:
	cmpl	$1, %edi
	jne	.LBB1_3
# %bb.197:
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str, %esi
	movl	$4, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	%rax, %rbx
	movl	$.L.str.1, %esi
	movl	$9, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%rbx), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	%rax, %rbx
	movl	$.L.str.2, %esi
	movl	$51, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%rbx), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	%rax, %rbx
	movl	$.L.str.3, %esi
	movl	$51, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%rbx), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	%rax, %rbx
	movl	$.L.str.4, %esi
	movl	$89, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%rbx), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	%rax, %rbx
	movl	$.L.str.5, %esi
	movl	$52, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%rbx), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	%rax, %rbx
	movl	$.L.str.6, %esi
	movl	$9, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%rbx), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	%rax, %rbx
	movl	$.L.str.7, %esi
	movl	$89, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%rbx), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	%rax, %rbx
	movl	$.L.str.8, %esi
	movl	$24, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%rbx), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.LBB1_198:
	movl	$1, %eax
	jmp	.LBB1_199
.LBB1_139:
	movq	8(%r12), %rsi
.Ltmp0:
	leaq	104(%rsp), %rdi
	movq	%rsp, %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
.Ltmp1:
# %bb.140:
	movq	104(%rsp), %r14
	callq	__errno_location
	movq	%rax, %r15
	movl	(%rax), %ebp
	movl	$0, (%rax)
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	$10, %edx
	callq	__isoc23_strtol
	cmpq	%r14, (%r13)
	je	.LBB1_141
# %bb.148:
	movq	%rax, %rbx
	movslq	%ebx, %rax
	cmpq	%rbx, %rax
	jne	.LBB1_150
# %bb.149:
	movl	(%r15), %eax
	cmpl	$34, %eax
	je	.LBB1_150
# %bb.152:
	testl	%eax, %eax
	jne	.LBB1_154
# %bb.153:
	movl	%ebp, (%r15)
.LBB1_154:
	leaq	120(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB1_156
# %bb.155:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i196
	callq	_ZdlPv
.LBB1_156:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit198
	movq	16(%r12), %rsi
.Ltmp3:
	leaq	104(%rsp), %rdi
	movq	%rsp, %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
.Ltmp4:
# %bb.157:
	movq	104(%rsp), %r14
	movl	(%r15), %eax
	movl	%eax, 16(%rsp)                  # 4-byte Spill
	movl	$0, (%r15)
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	$10, %edx
	callq	__isoc23_strtol
	cmpq	%r14, (%r13)
	je	.LBB1_158
# %bb.163:
	movabsq	$-4294967296, %rbp              # imm = 0xFFFFFFFF00000000
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	addq	$-2147483648, %rax              # imm = 0x80000000
	cmpq	%rbp, %rax
	jb	.LBB1_165
# %bb.164:
	movl	(%r15), %eax
	cmpl	$34, %eax
	je	.LBB1_165
# %bb.167:
	testl	%eax, %eax
	jne	.LBB1_169
# %bb.168:
	movl	16(%rsp), %eax                  # 4-byte Reload
	movl	%eax, (%r15)
.LBB1_169:
	movq	104(%rsp), %rdi
	leaq	120(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB1_171
# %bb.170:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i205
	callq	_ZdlPv
.LBB1_171:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit207
	movq	24(%r12), %rsi
.Ltmp6:
	leaq	104(%rsp), %rdi
	movq	%rsp, %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
.Ltmp7:
# %bb.172:
	movq	104(%rsp), %r14
	movl	(%r15), %r12d
	movl	$0, (%r15)
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	$10, %edx
	callq	__isoc23_strtol
	cmpq	%r14, (%r13)
	je	.LBB1_173
# %bb.177:
	leaq	-2147483648(%rax), %rcx
	cmpq	%rbp, %rcx
	jb	.LBB1_179
# %bb.178:
	movl	(%r15), %ecx
	cmpl	$34, %ecx
	je	.LBB1_179
# %bb.181:
	movq	%rax, 40(%rsp)                  # 8-byte Spill
	testl	%ecx, %ecx
	jne	.LBB1_183
# %bb.182:
	movl	%r12d, (%r15)
.LBB1_183:
	movq	104(%rsp), %rdi
	leaq	120(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB1_185
# %bb.184:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i214
	callq	_ZdlPv
.LBB1_185:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit216
	movsd	.LCPI1_0(%rip), %xmm1           # xmm1 = mem[0],zero
	movsd	.LCPI1_1(%rip), %xmm0           # xmm0 = mem[0],zero
	movsd	%xmm0, 64(%rsp)                 # 8-byte Spill
	movsd	.LCPI1_2(%rip), %xmm0           # xmm0 = mem[0],zero
	movsd	%xmm0, 56(%rsp)                 # 8-byte Spill
	movsd	%xmm1, 72(%rsp)                 # 8-byte Spill
	movsd	%xmm1, 80(%rsp)                 # 8-byte Spill
	jmp	.LBB1_100
.LBB1_4:
	movq	8(%r12), %rsi
.Ltmp33:
	leaq	104(%rsp), %rdi
	movq	%rsp, %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
.Ltmp34:
# %bb.5:
	movq	104(%rsp), %rbx
	callq	__errno_location
	movq	%rax, %r15
	movl	(%rax), %ebp
	movl	$0, (%rax)
	leaq	8(%rsp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	strtod
	cmpq	%rbx, (%r14)
	je	.LBB1_6
# %bb.13:
	movl	(%r15), %eax
	testl	%eax, %eax
	movsd	%xmm0, 64(%rsp)                 # 8-byte Spill
	je	.LBB1_17
# %bb.14:
	cmpl	$34, %eax
	jne	.LBB1_18
# %bb.15:                               # %.critedge.i.i
.Ltmp36:
	movl	$.L.str.16, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp37:
# %bb.16:
.LBB1_3:
                                        # implicit-def: $eax
	movq	%rax, 40(%rsp)                  # 8-byte Spill
                                        # implicit-def: $r12d
                                        # implicit-def: $ebx
                                        # implicit-def: $xmm0
                                        # kill: killed $xmm0
                                        # implicit-def: $xmm0
                                        # kill: killed $xmm0
                                        # implicit-def: $xmm0
                                        # kill: killed $xmm0
                                        # implicit-def: $xmm0
                                        # kill: killed $xmm0
	jmp	.LBB1_101
.LBB1_17:
	movl	%ebp, (%r15)
.LBB1_18:
	leaq	120(%rsp), %r13
	movq	-16(%r13), %rdi
	cmpq	%r13, %rdi
	je	.LBB1_20
# %bb.19:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
.LBB1_20:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	movq	16(%r12), %rsi
.Ltmp38:
	leaq	104(%rsp), %rdi
	movq	%rsp, %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
.Ltmp39:
# %bb.21:
	movq	104(%rsp), %rbx
	movl	(%r15), %ebp
	movl	$0, (%r15)
	leaq	8(%rsp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	strtod
	cmpq	%rbx, (%r14)
	je	.LBB1_22
# %bb.28:
	movl	(%r15), %eax
	testl	%eax, %eax
	movsd	%xmm0, 56(%rsp)                 # 8-byte Spill
	je	.LBB1_32
# %bb.29:
	cmpl	$34, %eax
	jne	.LBB1_33
# %bb.30:                               # %.critedge.i.i120
.Ltmp41:
	movl	$.L.str.16, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp42:
# %bb.31:
.LBB1_32:
	movl	%ebp, (%r15)
.LBB1_33:
	movq	104(%rsp), %rdi
	cmpq	%r13, %rdi
	je	.LBB1_35
# %bb.34:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i125
	callq	_ZdlPv
.LBB1_35:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit127
	movq	24(%r12), %rsi
.Ltmp43:
	leaq	104(%rsp), %rdi
	movq	%rsp, %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
.Ltmp44:
# %bb.36:
	movq	104(%rsp), %rbx
	movl	(%r15), %ebp
	movl	$0, (%r15)
	leaq	8(%rsp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	strtod
	cmpq	%rbx, (%r14)
	je	.LBB1_37
# %bb.40:
	movl	(%r15), %eax
	testl	%eax, %eax
	movsd	%xmm0, 80(%rsp)                 # 8-byte Spill
	je	.LBB1_44
# %bb.41:
	cmpl	$34, %eax
	jne	.LBB1_45
# %bb.42:                               # %.critedge.i.i128
.Ltmp46:
	movl	$.L.str.16, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp47:
# %bb.43:
.LBB1_44:
	movl	%ebp, (%r15)
.LBB1_45:
	movq	104(%rsp), %rdi
	cmpq	%r13, %rdi
	je	.LBB1_47
# %bb.46:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i133
	callq	_ZdlPv
.LBB1_47:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit135
	movq	32(%r12), %rsi
.Ltmp48:
	leaq	104(%rsp), %rdi
	movq	%rsp, %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
.Ltmp49:
# %bb.48:
	movq	104(%rsp), %rbx
	movl	(%r15), %ebp
	movl	$0, (%r15)
	leaq	8(%rsp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	strtod
	cmpq	%rbx, (%r14)
	je	.LBB1_49
# %bb.52:
	movl	(%r15), %eax
	testl	%eax, %eax
	movsd	%xmm0, 72(%rsp)                 # 8-byte Spill
	je	.LBB1_56
# %bb.53:
	cmpl	$34, %eax
	jne	.LBB1_57
# %bb.54:                               # %.critedge.i.i136
.Ltmp51:
	movl	$.L.str.16, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp52:
# %bb.55:
.LBB1_56:
	movl	%ebp, (%r15)
.LBB1_57:
	movq	104(%rsp), %rdi
	cmpq	%r13, %rdi
	je	.LBB1_59
# %bb.58:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i141
	callq	_ZdlPv
.LBB1_59:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit143
	movq	40(%r12), %rsi
.Ltmp53:
	leaq	104(%rsp), %rdi
	movq	%rsp, %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
.Ltmp54:
# %bb.60:
	movq	104(%rsp), %r14
	movl	(%r15), %ebp
	movl	$0, (%r15)
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	$10, %edx
	callq	__isoc23_strtol
	cmpq	%r14, (%r13)
	je	.LBB1_61
# %bb.64:
	movq	%rax, %rbx
	movslq	%ebx, %rax
	cmpq	%rbx, %rax
	leaq	120(%rsp), %rcx
	jne	.LBB1_66
# %bb.65:
	movl	(%r15), %eax
	cmpl	$34, %eax
	je	.LBB1_66
# %bb.68:
	testl	%eax, %eax
	jne	.LBB1_70
# %bb.69:
	movl	%ebp, (%r15)
.LBB1_70:
	movq	104(%rsp), %rdi
	cmpq	%rcx, %rdi
	je	.LBB1_72
# %bb.71:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i147
	callq	_ZdlPv
.LBB1_72:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit149
	movq	48(%r12), %rsi
.Ltmp56:
	leaq	104(%rsp), %rdi
	movq	%rsp, %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
.Ltmp57:
# %bb.73:
	movq	104(%rsp), %r14
	movl	(%r15), %eax
	movl	%eax, 16(%rsp)                  # 4-byte Spill
	movl	$0, (%r15)
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	$10, %edx
	callq	__isoc23_strtol
	cmpq	%r14, (%r13)
	je	.LBB1_74
# %bb.78:
	movabsq	$-4294967296, %rbp              # imm = 0xFFFFFFFF00000000
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	addq	$-2147483648, %rax              # imm = 0x80000000
	cmpq	%rbp, %rax
	leaq	120(%rsp), %rcx
	jb	.LBB1_80
# %bb.79:
	movl	(%r15), %eax
	cmpl	$34, %eax
	je	.LBB1_80
# %bb.82:
	testl	%eax, %eax
	jne	.LBB1_84
# %bb.83:
	movl	16(%rsp), %eax                  # 4-byte Reload
	movl	%eax, (%r15)
.LBB1_84:
	movq	104(%rsp), %rdi
	cmpq	%rcx, %rdi
	je	.LBB1_86
# %bb.85:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i156
	callq	_ZdlPv
.LBB1_86:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit158
	movq	56(%r12), %rsi
.Ltmp59:
	leaq	104(%rsp), %rdi
	movq	%rsp, %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
.Ltmp60:
# %bb.87:
	movq	104(%rsp), %r14
	movl	(%r15), %r12d
	movl	$0, (%r15)
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	$10, %edx
	callq	__isoc23_strtol
	cmpq	%r14, (%r13)
	je	.LBB1_88
# %bb.92:
	leaq	-2147483648(%rax), %rcx
	cmpq	%rbp, %rcx
	leaq	120(%rsp), %rcx
	jb	.LBB1_94
# %bb.93:
	movl	(%r15), %edx
	cmpl	$34, %edx
	je	.LBB1_94
# %bb.96:
	movq	%rax, 40(%rsp)                  # 8-byte Spill
	testl	%edx, %edx
	jne	.LBB1_98
# %bb.97:
	movl	%r12d, (%r15)
.LBB1_98:
	movq	104(%rsp), %rdi
	cmpq	%rcx, %rdi
	je	.LBB1_100
# %bb.99:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i165
	callq	_ZdlPv
.LBB1_100:                              # %.thread
	movq	24(%rsp), %r12                  # 8-byte Reload
.LBB1_101:
	movl	$_ZSt4cout, %r14d
	movl	$_ZSt4cout, %edi
	movl	$.L.str.10, %esi
	movl	$15, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	%r12d, %r15d
	imull	%ebx, %r15d
	leal	(,%r15,8), %eax
	leal	(,%r15,4), %ecx
	movl	%ecx, 48(%rsp)                  # 4-byte Spill
	movslq	%eax, %r14
	movq	%r14, %rdi
	callq	malloc
	movq	%rax, %rbp
	movq	%r14, 32(%rsp)                  # 8-byte Spill
	movq	%r14, %rdi
	callq	malloc
	movq	%rax, %r14
	movl	%r12d, %eax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movl	%ebx, %r13d
	movq	%r12, 24(%rsp)                  # 8-byte Spill
	testl	%r12d, %r12d
	movsd	80(%rsp), %xmm5                 # 8-byte Reload
                                        # xmm5 = mem[0],zero
	movsd	72(%rsp), %xmm6                 # 8-byte Reload
                                        # xmm6 = mem[0],zero
	jle	.LBB1_107
# %bb.102:                              # %.lr.ph251
	movapd	%xmm6, %xmm0
	subsd	56(%rsp), %xmm0                 # 8-byte Folded Reload
	xorps	%xmm1, %xmm1
	cvtsi2sdl	24(%rsp), %xmm1         # 4-byte Folded Reload
	divsd	%xmm1, %xmm0
	movapd	%xmm5, %xmm1
	cvtsi2sd	%ebx, %xmm2
	subsd	64(%rsp), %xmm1                 # 8-byte Folded Reload
	divsd	%xmm2, %xmm1
	xorl	%eax, %eax
	xorl	%ecx, %ecx
.LBB1_103:                              # =>This Loop Header: Depth=1
                                        #     Child Loop BB1_105 Depth 2
	testl	%ebx, %ebx
	jle	.LBB1_106
# %bb.104:                              # %.lr.ph
                                        #   in Loop: Header=BB1_103 Depth=1
	movl	%eax, %esi
	leaq	(%r14,%rsi,8), %rdx
	leaq	(,%rsi,8), %rsi
	addq	%rbp, %rsi
	xorps	%xmm3, %xmm3
	cvtsi2sd	%ecx, %xmm3
	mulsd	%xmm0, %xmm3
	movapd	%xmm6, %xmm2
	subsd	%xmm3, %xmm2
	xorl	%edi, %edi
.LBB1_105:                              #   Parent Loop BB1_103 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	xorps	%xmm3, %xmm3
	cvtsi2sd	%edi, %xmm3
	mulsd	%xmm1, %xmm3
	movapd	%xmm5, %xmm4
	subsd	%xmm3, %xmm4
	movsd	%xmm4, (%rsi,%rdi,8)
	movsd	%xmm2, (%rdx,%rdi,8)
	incq	%rdi
	cmpq	%rdi, %r13
	jne	.LBB1_105
.LBB1_106:                              # %._crit_edge
                                        #   in Loop: Header=BB1_103 Depth=1
	incq	%rcx
	addl	%ebx, %eax
	cmpq	16(%rsp), %rcx                  # 8-byte Folded Reload
	jne	.LBB1_103
.LBB1_107:                              # %._crit_edge252
	leaq	8(%rsp), %rdi
	movq	32(%rsp), %r12                  # 8-byte Reload
	movq	%r12, %rsi
	callq	hipMalloc
	movq	%rsp, %rdi
	movq	%r12, %rsi
	callq	hipMalloc
	movslq	48(%rsp), %rsi                  # 4-byte Folded Reload
	leaq	88(%rsp), %rdi
	movq	%rsi, 48(%rsp)                  # 8-byte Spill
	callq	hipMalloc
	leaq	8(%rsp), %rax
	movq	(%rax), %rdi
	movq	%rbp, %rsi
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movq	%rsp, %rax
	movq	(%rax), %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movl	$_ZSt4cout, %edi
	movl	$.L.str.11, %esi
	movl	$17, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	movl	$_ZSt4cout, %eax
	addq	%rax, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	leal	1023(%r15), %edi
	testl	%r15d, %r15d
	cmovnsl	%r15d, %edi
	sarl	$10, %edi
	incl	%edi
	btsq	$32, %rdi
	movabsq	$4294967296, %rdx               # imm = 0x100000000
	orq	$1024, %rdx                     # imm = 0x400
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB1_109
# %bb.108:
	movq	8(%rsp), %rdi
	movq	(%rsp), %rsi
	movq	88(%rsp), %rdx
	movq	40(%rsp), %rcx                  # 8-byte Reload
                                        # kill: def $ecx killed $ecx killed $rcx
	callq	_Z22__device_stub__z_functPdS_Pii
.LBB1_109:
	movl	$_ZSt4cout, %r15d
	movl	$_ZSt4cout, %edi
	movl	$.L.str.12, %esi
	movl	$17, %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
	movq	48(%rsp), %r12                  # 8-byte Reload
	movq	%r12, %rdi
	callq	malloc
	movq	%rax, %r15
	movq	8(%rsp), %rsi
	movq	%rbp, %rdi
	movq	32(%rsp), %rbp                  # 8-byte Reload
	movq	%rbp, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	(%rsp), %rsi
	movq	%r14, %rdi
	movq	%rbp, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	88(%rsp), %rsi
	movq	%r15, 32(%rsp)                  # 8-byte Spill
	movq	%r15, %rdi
	movq	%r12, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movl	$_ZSt4cout, %edi
	movl	$.L.str.13, %esi
	movl	$22, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	movl	$_ZSt4cout, %eax
	addq	%rax, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	leaq	104(%rsp), %r14
	movq	%r14, %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev
.Ltmp99:
	movl	$.L.str.14, %esi
	movq	%r14, %rdi
	movl	$16, %edx
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode
.Ltmp100:
# %bb.110:                              # %.preheader247
	cmpl	$0, 24(%rsp)                    # 4-byte Folded Reload
	jle	.LBB1_120
# %bb.111:                              # %.preheader.lr.ph
	xorl	%ebp, %ebp
	xorl	%r12d, %r12d
	movq	%rbx, 96(%rsp)                  # 8-byte Spill
.LBB1_112:                              # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB1_114 Depth 2
	testl	%ebx, %ebx
	jle	.LBB1_116
# %bb.113:                              # %.lr.ph254
                                        #   in Loop: Header=BB1_112 Depth=1
	movl	%ebp, %eax
	movq	32(%rsp), %rcx                  # 8-byte Reload
	leaq	(%rcx,%rax,4), %r15
	xorl	%ebx, %ebx
.LBB1_114:                              #   Parent Loop BB1_112 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	104(%rsp), %rax
	movq	-24(%rax), %rax
	movq	$15, 120(%rsp,%rax)
	movl	(%r15,%rbx,4), %esi
.Ltmp101:
	movq	%r14, %rdi
	callq	_ZNSolsEi
.Ltmp102:
# %bb.115:                              #   in Loop: Header=BB1_114 Depth=2
	incq	%rbx
	cmpq	%rbx, %r13
	jne	.LBB1_114
.LBB1_116:                              # %._crit_edge255
                                        #   in Loop: Header=BB1_112 Depth=1
	movq	104(%rsp), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
.Ltmp104:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp105:
# %bb.117:                              # %.noexc
                                        #   in Loop: Header=BB1_112 Depth=1
.Ltmp106:
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
.Ltmp107:
# %bb.118:                              # %.noexc232
                                        #   in Loop: Header=BB1_112 Depth=1
.Ltmp108:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp109:
# %bb.119:                              # %_ZNSolsEPFRSoS_E.exit229
                                        #   in Loop: Header=BB1_112 Depth=1
	incq	%r12
	movq	96(%rsp), %rbx                  # 8-byte Reload
	addl	%ebx, %ebp
	cmpq	16(%rsp), %r12                  # 8-byte Folded Reload
	jne	.LBB1_112
.LBB1_120:                              # %._crit_edge257
.Ltmp111:
	leaq	104(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv
.Ltmp112:
# %bb.121:
.Ltmp113:
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str.15, %esi
	movl	$6, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp114:
# %bb.122:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit230
	movq	_ZSt4cout(%rip), %rax
	addq	-24(%rax), %rbx
.Ltmp115:
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp116:
# %bb.123:                              # %.noexc234
.Ltmp117:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp118:
# %bb.124:                              # %.noexc235
.Ltmp119:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp120:
# %bb.125:                              # %_ZNSolsEPFRSoS_E.exit231
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE(%rip), %rax
	leaq	112(%rsp), %rdi
	movq	%rax, -8(%rdi)
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE+24(%rip), %rcx
	movq	-24(%rax), %rax
	movq	%rcx, 104(%rsp,%rax)
	callq	_ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev
	leaq	352(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	xorl	%eax, %eax
.LBB1_199:
	addq	$616, %rsp                      # imm = 0x268
	.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
.LBB1_141:
	.cfi_def_cfa_offset 672
.Ltmp21:
	movl	$.L.str.17, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp22:
# %bb.142:
.LBB1_6:
.Ltmp86:
	movl	$.L.str.16, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp87:
# %bb.7:
.LBB1_150:                              # %.critedge.i.i191
.Ltmp19:
	movl	$.L.str.17, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp20:
# %bb.151:
.LBB1_22:
.Ltmp83:
	movl	$.L.str.16, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp84:
# %bb.23:
.LBB1_158:
.Ltmp16:
	movl	$.L.str.17, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp17:
# %bb.159:
.LBB1_165:                              # %.critedge.i.i200
.Ltmp14:
	movl	$.L.str.17, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp15:
# %bb.166:
.LBB1_37:
.Ltmp80:
	movl	$.L.str.16, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp81:
# %bb.38:
.LBB1_173:
.Ltmp11:
	movl	$.L.str.17, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp12:
# %bb.174:
.LBB1_179:                              # %.critedge.i.i209
.Ltmp9:
	movl	$.L.str.17, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp10:
# %bb.180:
.LBB1_49:
.Ltmp77:
	movl	$.L.str.16, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp78:
# %bb.50:
.LBB1_61:
.Ltmp74:
	movl	$.L.str.17, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp75:
# %bb.62:
.LBB1_66:                               # %.critedge.i.i144
.Ltmp72:
	movl	$.L.str.17, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp73:
# %bb.67:
.LBB1_74:
.Ltmp69:
	movl	$.L.str.17, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp70:
# %bb.75:
.LBB1_80:                               # %.critedge.i.i151
.Ltmp67:
	movl	$.L.str.17, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp68:
# %bb.81:
.LBB1_88:
.Ltmp64:
	movl	$.L.str.17, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp65:
# %bb.89:
.LBB1_94:                               # %.critedge.i.i160
.Ltmp62:
	movl	$.L.str.17, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp63:
# %bb.95:
.LBB1_132:
.Ltmp61:
	jmp	.LBB1_133
.LBB1_131:
.Ltmp58:
	jmp	.LBB1_133
.LBB1_130:
.Ltmp55:
	jmp	.LBB1_133
.LBB1_129:
.Ltmp50:
	jmp	.LBB1_133
.LBB1_188:
.Ltmp8:
	jmp	.LBB1_189
.LBB1_128:
.Ltmp45:
	jmp	.LBB1_133
.LBB1_187:
.Ltmp5:
	jmp	.LBB1_189
.LBB1_127:
.Ltmp40:
	jmp	.LBB1_133
.LBB1_126:
.Ltmp35:
.LBB1_133:
	movq	%rax, %rbx
	jmp	.LBB1_134
.LBB1_186:
.Ltmp2:
.LBB1_189:
	movq	%rax, %rbx
	jmp	.LBB1_190
.LBB1_51:
.Ltmp79:
	jmp	.LBB1_25
.LBB1_39:
.Ltmp82:
	jmp	.LBB1_25
.LBB1_24:
.Ltmp85:
	jmp	.LBB1_25
.LBB1_8:
.Ltmp88:
	movq	%rax, %rbx
	cmpl	$0, (%r15)
	jne	.LBB1_10
# %bb.9:
	movl	%ebp, (%r15)
.LBB1_10:                               # %_ZZN9__gnu_cxx6__stoaIddcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev.exit.i.i
	leaq	120(%rsp), %rax
	movq	-16(%rax), %rdi
	jmp	.LBB1_11
.LBB1_90:
.Ltmp66:
	movq	%rax, %rbx
	cmpl	$0, (%r15)
	jne	.LBB1_27
# %bb.91:
	movl	%r12d, (%r15)
	jmp	.LBB1_27
.LBB1_76:
.Ltmp71:
	movq	%rax, %rbx
	cmpl	$0, (%r15)
	jne	.LBB1_27
# %bb.77:
	movl	16(%rsp), %eax                  # 4-byte Reload
	movl	%eax, (%r15)
	jmp	.LBB1_27
.LBB1_63:
.Ltmp76:
.LBB1_25:
	movq	%rax, %rbx
	cmpl	$0, (%r15)
	jne	.LBB1_27
# %bb.26:
	movl	%ebp, (%r15)
.LBB1_27:                               # %_ZZN9__gnu_cxx6__stoaIddcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev.exit.i.i121
	movq	104(%rsp), %rdi
	leaq	120(%rsp), %rax
.LBB1_11:                               # %_ZZN9__gnu_cxx6__stoaIddcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev.exit.i.i
	cmpq	%rax, %rdi
	je	.LBB1_134
# %bb.12:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i168
	callq	_ZdlPv
.LBB1_134:
	movq	%rbx, %rdi
	callq	__cxa_begin_catch
.Ltmp89:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.9, %esi
	movl	$53, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp90:
# %bb.135:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
.Ltmp91:
	movl	$_ZSt4cout, %edi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp92:
# %bb.136:                              # %_ZNSolsEPFRSoS_E.exit
.Ltmp93:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp94:
	jmp	.LBB1_137
.LBB1_138:
.Ltmp95:
	movq	%rax, %rbx
.Ltmp96:
	callq	__cxa_end_catch
.Ltmp97:
	jmp	.LBB1_196
.LBB1_175:
.Ltmp13:
	movq	%rax, %rbx
	cmpl	$0, (%r15)
	jne	.LBB1_162
# %bb.176:
	movl	%r12d, (%r15)
	jmp	.LBB1_162
.LBB1_160:
.Ltmp18:
	movq	%rax, %rbx
	cmpl	$0, (%r15)
	jne	.LBB1_162
# %bb.161:
	movl	16(%rsp), %eax                  # 4-byte Reload
	movl	%eax, (%r15)
.LBB1_162:                              # %_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev.exit.i.i201
	movq	104(%rsp), %rdi
	leaq	120(%rsp), %rax
	jmp	.LBB1_146
.LBB1_143:
.Ltmp23:
	movq	%rax, %rbx
	cmpl	$0, (%r15)
	jne	.LBB1_145
# %bb.144:
	movl	%ebp, (%r15)
.LBB1_145:                              # %_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev.exit.i.i192
	leaq	120(%rsp), %rax
	movq	-16(%rax), %rdi
.LBB1_146:                              # %_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev.exit.i.i192
	cmpq	%rax, %rdi
	je	.LBB1_190
# %bb.147:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i217
	callq	_ZdlPv
.LBB1_190:
	movq	%rbx, %rdi
	callq	__cxa_begin_catch
.Ltmp24:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.9, %esi
	movl	$53, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp25:
# %bb.191:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit226
.Ltmp26:
	movl	$_ZSt4cout, %edi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp27:
# %bb.192:                              # %_ZNSolsEPFRSoS_E.exit227
.Ltmp28:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp29:
.LBB1_137:                              # %_ZNSolsEPFRSoS_E.exit189
	callq	__cxa_end_catch
	jmp	.LBB1_198
.LBB1_193:
.Ltmp30:
	movq	%rax, %rbx
.Ltmp31:
	callq	__cxa_end_catch
.Ltmp32:
	jmp	.LBB1_196
.LBB1_200:
.Ltmp98:
	movq	%rax, %rdi
	callq	__clang_call_terminate
.LBB1_194:
.Ltmp121:
	jmp	.LBB1_195
.LBB1_202:
.Ltmp110:
	jmp	.LBB1_195
.LBB1_201:
.Ltmp103:
.LBB1_195:
	movq	%rax, %rbx
	leaq	104(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev
.LBB1_196:
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end1:
	.size	main, .Lfunc_end1-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table1:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	3                               # @TType Encoding = udata4
	.uleb128 .Lttbase0-.Lttbaseref0
.Lttbaseref0:
	.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	1                               #   On action: 1
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp4-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp4
	.uleb128 .Ltmp5-.Lfunc_begin0           #     jumps to .Ltmp5
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp6-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Ltmp7-.Ltmp6                  #   Call between .Ltmp6 and .Ltmp7
	.uleb128 .Ltmp8-.Lfunc_begin0           #     jumps to .Ltmp8
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp33-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Ltmp34-.Ltmp33                #   Call between .Ltmp33 and .Ltmp34
	.uleb128 .Ltmp35-.Lfunc_begin0          #     jumps to .Ltmp35
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp36-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp37-.Ltmp36                #   Call between .Ltmp36 and .Ltmp37
	.uleb128 .Ltmp88-.Lfunc_begin0          #     jumps to .Ltmp88
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp38-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp39-.Ltmp38                #   Call between .Ltmp38 and .Ltmp39
	.uleb128 .Ltmp40-.Lfunc_begin0          #     jumps to .Ltmp40
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp41-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp42-.Ltmp41                #   Call between .Ltmp41 and .Ltmp42
	.uleb128 .Ltmp85-.Lfunc_begin0          #     jumps to .Ltmp85
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp43-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp44-.Ltmp43                #   Call between .Ltmp43 and .Ltmp44
	.uleb128 .Ltmp45-.Lfunc_begin0          #     jumps to .Ltmp45
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp46-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Ltmp47-.Ltmp46                #   Call between .Ltmp46 and .Ltmp47
	.uleb128 .Ltmp82-.Lfunc_begin0          #     jumps to .Ltmp82
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp48-.Lfunc_begin0          # >> Call Site 11 <<
	.uleb128 .Ltmp49-.Ltmp48                #   Call between .Ltmp48 and .Ltmp49
	.uleb128 .Ltmp50-.Lfunc_begin0          #     jumps to .Ltmp50
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp51-.Lfunc_begin0          # >> Call Site 12 <<
	.uleb128 .Ltmp52-.Ltmp51                #   Call between .Ltmp51 and .Ltmp52
	.uleb128 .Ltmp79-.Lfunc_begin0          #     jumps to .Ltmp79
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp53-.Lfunc_begin0          # >> Call Site 13 <<
	.uleb128 .Ltmp54-.Ltmp53                #   Call between .Ltmp53 and .Ltmp54
	.uleb128 .Ltmp55-.Lfunc_begin0          #     jumps to .Ltmp55
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp56-.Lfunc_begin0          # >> Call Site 14 <<
	.uleb128 .Ltmp57-.Ltmp56                #   Call between .Ltmp56 and .Ltmp57
	.uleb128 .Ltmp58-.Lfunc_begin0          #     jumps to .Ltmp58
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp59-.Lfunc_begin0          # >> Call Site 15 <<
	.uleb128 .Ltmp60-.Ltmp59                #   Call between .Ltmp59 and .Ltmp60
	.uleb128 .Ltmp61-.Lfunc_begin0          #     jumps to .Ltmp61
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp60-.Lfunc_begin0          # >> Call Site 16 <<
	.uleb128 .Ltmp99-.Ltmp60                #   Call between .Ltmp60 and .Ltmp99
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp99-.Lfunc_begin0          # >> Call Site 17 <<
	.uleb128 .Ltmp100-.Ltmp99               #   Call between .Ltmp99 and .Ltmp100
	.uleb128 .Ltmp121-.Lfunc_begin0         #     jumps to .Ltmp121
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp101-.Lfunc_begin0         # >> Call Site 18 <<
	.uleb128 .Ltmp102-.Ltmp101              #   Call between .Ltmp101 and .Ltmp102
	.uleb128 .Ltmp103-.Lfunc_begin0         #     jumps to .Ltmp103
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp104-.Lfunc_begin0         # >> Call Site 19 <<
	.uleb128 .Ltmp109-.Ltmp104              #   Call between .Ltmp104 and .Ltmp109
	.uleb128 .Ltmp110-.Lfunc_begin0         #     jumps to .Ltmp110
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp111-.Lfunc_begin0         # >> Call Site 20 <<
	.uleb128 .Ltmp120-.Ltmp111              #   Call between .Ltmp111 and .Ltmp120
	.uleb128 .Ltmp121-.Lfunc_begin0         #     jumps to .Ltmp121
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp21-.Lfunc_begin0          # >> Call Site 21 <<
	.uleb128 .Ltmp22-.Ltmp21                #   Call between .Ltmp21 and .Ltmp22
	.uleb128 .Ltmp23-.Lfunc_begin0          #     jumps to .Ltmp23
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp86-.Lfunc_begin0          # >> Call Site 22 <<
	.uleb128 .Ltmp87-.Ltmp86                #   Call between .Ltmp86 and .Ltmp87
	.uleb128 .Ltmp88-.Lfunc_begin0          #     jumps to .Ltmp88
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp19-.Lfunc_begin0          # >> Call Site 23 <<
	.uleb128 .Ltmp20-.Ltmp19                #   Call between .Ltmp19 and .Ltmp20
	.uleb128 .Ltmp23-.Lfunc_begin0          #     jumps to .Ltmp23
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp83-.Lfunc_begin0          # >> Call Site 24 <<
	.uleb128 .Ltmp84-.Ltmp83                #   Call between .Ltmp83 and .Ltmp84
	.uleb128 .Ltmp85-.Lfunc_begin0          #     jumps to .Ltmp85
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp16-.Lfunc_begin0          # >> Call Site 25 <<
	.uleb128 .Ltmp15-.Ltmp16                #   Call between .Ltmp16 and .Ltmp15
	.uleb128 .Ltmp18-.Lfunc_begin0          #     jumps to .Ltmp18
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp80-.Lfunc_begin0          # >> Call Site 26 <<
	.uleb128 .Ltmp81-.Ltmp80                #   Call between .Ltmp80 and .Ltmp81
	.uleb128 .Ltmp82-.Lfunc_begin0          #     jumps to .Ltmp82
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp11-.Lfunc_begin0          # >> Call Site 27 <<
	.uleb128 .Ltmp10-.Ltmp11                #   Call between .Ltmp11 and .Ltmp10
	.uleb128 .Ltmp13-.Lfunc_begin0          #     jumps to .Ltmp13
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp77-.Lfunc_begin0          # >> Call Site 28 <<
	.uleb128 .Ltmp78-.Ltmp77                #   Call between .Ltmp77 and .Ltmp78
	.uleb128 .Ltmp79-.Lfunc_begin0          #     jumps to .Ltmp79
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp74-.Lfunc_begin0          # >> Call Site 29 <<
	.uleb128 .Ltmp73-.Ltmp74                #   Call between .Ltmp74 and .Ltmp73
	.uleb128 .Ltmp76-.Lfunc_begin0          #     jumps to .Ltmp76
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp69-.Lfunc_begin0          # >> Call Site 30 <<
	.uleb128 .Ltmp68-.Ltmp69                #   Call between .Ltmp69 and .Ltmp68
	.uleb128 .Ltmp71-.Lfunc_begin0          #     jumps to .Ltmp71
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp64-.Lfunc_begin0          # >> Call Site 31 <<
	.uleb128 .Ltmp63-.Ltmp64                #   Call between .Ltmp64 and .Ltmp63
	.uleb128 .Ltmp66-.Lfunc_begin0          #     jumps to .Ltmp66
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp63-.Lfunc_begin0          # >> Call Site 32 <<
	.uleb128 .Ltmp89-.Ltmp63                #   Call between .Ltmp63 and .Ltmp89
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp89-.Lfunc_begin0          # >> Call Site 33 <<
	.uleb128 .Ltmp94-.Ltmp89                #   Call between .Ltmp89 and .Ltmp94
	.uleb128 .Ltmp95-.Lfunc_begin0          #     jumps to .Ltmp95
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp96-.Lfunc_begin0          # >> Call Site 34 <<
	.uleb128 .Ltmp97-.Ltmp96                #   Call between .Ltmp96 and .Ltmp97
	.uleb128 .Ltmp98-.Lfunc_begin0          #     jumps to .Ltmp98
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp97-.Lfunc_begin0          # >> Call Site 35 <<
	.uleb128 .Ltmp24-.Ltmp97                #   Call between .Ltmp97 and .Ltmp24
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp24-.Lfunc_begin0          # >> Call Site 36 <<
	.uleb128 .Ltmp29-.Ltmp24                #   Call between .Ltmp24 and .Ltmp29
	.uleb128 .Ltmp30-.Lfunc_begin0          #     jumps to .Ltmp30
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp29-.Lfunc_begin0          # >> Call Site 37 <<
	.uleb128 .Ltmp31-.Ltmp29                #   Call between .Ltmp29 and .Ltmp31
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp31-.Lfunc_begin0          # >> Call Site 38 <<
	.uleb128 .Ltmp32-.Ltmp31                #   Call between .Ltmp31 and .Ltmp32
	.uleb128 .Ltmp98-.Lfunc_begin0          #     jumps to .Ltmp98
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp32-.Lfunc_begin0          # >> Call Site 39 <<
	.uleb128 .Lfunc_end1-.Ltmp32            #   Call between .Ltmp32 and .Lfunc_end1
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.byte	1                               # >> Action Record 1 <<
                                        #   Catch TypeInfo 1
	.byte	0                               #   No further actions
	.p2align	2, 0x0
                                        # >> Catch TypeInfos <<
	.long	0                               # TypeInfo 1
.Lttbase0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_ # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	leaq	16(%rdi), %rax
	movq	%rax, (%rdi)
	testq	%rsi, %rsi
	je	.LBB2_1
# %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	strlen
	leaq	(%rax,%rbx), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	jmp	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag # TAILCALL
.LBB2_1:
	.cfi_def_cfa_offset 32
	movl	$.L.str.18, %edi
	callq	_ZSt19__throw_logic_errorPKc
.Lfunc_end2:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, .Lfunc_end2-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.cfi_endproc
                                        # -- End function
	.section	.text.__clang_call_terminate,"axG",@progbits,__clang_call_terminate,comdat
	.hidden	__clang_call_terminate          # -- Begin function __clang_call_terminate
	.weak	__clang_call_terminate
	.type	__clang_call_terminate,@function
__clang_call_terminate:                 # @__clang_call_terminate
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__cxa_begin_catch
	callq	_ZSt9terminatev
.Lfunc_end3:
	.size	__clang_call_terminate, .Lfunc_end3-__clang_call_terminate
	.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	.LBB4_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	.LBB4_3
.LBB4_1:                                # %._crit_edge
	movq	(%rbx), %rax
.LBB4_3:
	testq	%r14, %r14
	je	.LBB4_7
# %bb.4:
	cmpq	$1, %r14
	jne	.LBB4_6
# %bb.5:
	movb	(%r15), %cl
	movb	%cl, (%rax)
	jmp	.LBB4_7
.LBB4_6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memcpy@PLT
.LBB4_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_end4:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag, .Lfunc_end4-_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:
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	jne	.LBB5_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rdi
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB5_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z7z_functPdS_Pii, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$40, %rsp
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end5:
	.size	__hip_module_ctor, .Lfunc_end5-__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	.LBB6_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
.LBB6_2:
	retq
.Lfunc_end6:
	.size	__hip_module_dtor, .Lfunc_end6-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z7z_functPdS_Pii,@object       # @_Z7z_functPdS_Pii
	.section	.rodata,"a",@progbits
	.globl	_Z7z_functPdS_Pii
	.p2align	3, 0x0
_Z7z_functPdS_Pii:
	.quad	_Z22__device_stub__z_functPdS_Pii
	.size	_Z7z_functPdS_Pii, 8

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

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	" 8 args :"
	.size	.L.str.1, 10

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"arg1 = min real part  |  arg2 = min imaginary part "
	.size	.L.str.2, 52

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"arg3 = max real part  |  arg4 = max imaginary part "
	.size	.L.str.3, 52

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"arg5 = number of points on the real axe  |  arg6 = number of points on the imaginary axe "
	.size	.L.str.4, 90

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"arg7 = nb of iterations  |  arg8 = limit convergence"
	.size	.L.str.5, 53

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	" 4 args :"
	.size	.L.str.6, 10

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"arg1 = number of points on the real axe  |  arg2 = number of points on the imaginary axe "
	.size	.L.str.7, 90

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"arg3 = nb of iterations "
	.size	.L.str.8, 25

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"Bad Args : see help (type nameofprogram without args)"
	.size	.L.str.9, 54

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"Initializing..."
	.size	.L.str.10, 16

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	"Running on GPU..."
	.size	.L.str.11, 18

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	"Fetching datas..."
	.size	.L.str.12, 18

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	"Writing on the disk..."
	.size	.L.str.13, 23

	.type	.L.str.14,@object               # @.str.14
.L.str.14:
	.asciz	"conv"
	.size	.L.str.14, 5

	.type	.L.str.15,@object               # @.str.15
.L.str.15:
	.asciz	"Done !"
	.size	.L.str.15, 7

	.type	.L.str.16,@object               # @.str.16
.L.str.16:
	.asciz	"stod"
	.size	.L.str.16, 5

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

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

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z7z_functPdS_Pii"
	.size	.L__unnamed_1, 18

	.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 _Z22__device_stub__z_functPdS_Pii
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _Z7z_functPdS_Pii
	.addrsig_sym _ZSt4cout
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z7z_functPdS_Pii       ; -- Begin function _Z7z_functPdS_Pii
	.globl	_Z7z_functPdS_Pii
	.p2align	8
	.type	_Z7z_functPdS_Pii,@function
_Z7z_functPdS_Pii:                      ; @_Z7z_functPdS_Pii
; %bb.0:
	s_clause 0x3
	s_load_b32 s3, s[0:1], 0x2c
	s_load_b32 s2, s[0:1], 0x18
	s_load_b128 s[4:7], s[0:1], 0x0
	s_load_b64 s[0:1], s[0:1], 0x10
	s_waitcnt lgkmcnt(0)
	s_and_b32 s3, s3, 0xffff
	s_cmp_lt_i32 s2, 1
	v_mad_u64_u32 v[1:2], null, s15, s3, v[0:1]
	s_delay_alu instid0(VALU_DEP_1)
	v_ashrrev_i32_e32 v2, 31, v1
	s_cbranch_scc1 .LBB0_4
; %bb.1:                                ; %.lr.ph.preheader
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[3:4], 3, v[1:2]
	s_mov_b32 s3, 0
	v_add_co_u32 v5, vcc_lo, s4, v3
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v6, vcc_lo, s5, v4, vcc_lo
	v_add_co_u32 v7, vcc_lo, s6, v3
	v_add_co_ci_u32_e32 v8, vcc_lo, s7, v4, vcc_lo
	s_mov_b32 s4, 0
	global_load_b64 v[3:4], v[5:6], off
	global_load_b64 v[5:6], v[7:8], off
	v_mov_b32_e32 v7, 0
	v_mov_b32_e32 v8, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_mov_b32 v12, v8 :: v_dual_mov_b32 v11, v7
	v_dual_mov_b32 v10, v8 :: v_dual_mov_b32 v9, v7
	v_dual_mov_b32 v14, v8 :: v_dual_mov_b32 v13, v7
.LBB0_2:                                ; %.lr.ph
                                        ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[9:10], v[9:10], v[9:10]
	v_add_f64 v[7:8], v[11:12], -v[7:8]
	s_add_i32 s4, s4, 1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	s_cmp_ge_i32 s4, s2
	v_mov_b32_e32 v0, s4
	s_cselect_b32 s5, -1, 0
	s_waitcnt vmcnt(0)
	v_fma_f64 v[9:10], v[13:14], v[9:10], v[5:6]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_f64 v[13:14], v[3:4], v[7:8]
	v_mul_f64 v[7:8], v[9:10], v[9:10]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[11:12], v[13:14], v[13:14], v[7:8]
	v_cmp_nge_f64_e32 vcc_lo, 4.0, v[11:12]
	v_mul_f64 v[11:12], v[13:14], v[13:14]
	s_or_b32 s5, vcc_lo, s5
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s5, exec_lo, s5
	s_or_b32 s3, s5, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s3
	s_cbranch_execnz .LBB0_2
; %bb.3:                                ; %Flow
	s_or_b32 exec_lo, exec_lo, s3
	s_branch .LBB0_5
.LBB0_4:
	v_mov_b32_e32 v0, 0
.LBB0_5:                                ; %._crit_edge
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[1:2], 2, v[1:2]
	v_add_co_u32 v1, vcc_lo, s0, v1
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v2, vcc_lo, s1, v2, vcc_lo
	global_store_b32 v[1:2], v0, off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z7z_functPdS_Pii
		.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 15
		.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	_Z7z_functPdS_Pii, .Lfunc_end0-_Z7z_functPdS_Pii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 356
; NumSgprs: 18
; NumVgprs: 15
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 15
; 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:           _Z7z_functPdS_Pii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z7z_functPdS_Pii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     15
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
