//19/10/17
//ALOUI Driss
//DO Alexandre
//HPCA

//Source : https://www.cc.gatech.edu/~bader/papers/GPUMergePath-ICS2012.pdf

//Exemple de tests
//N: 5463 GRAIN: 10
//Time GPU : 3.856832 ms
//Time CPU : 6.504000 ms

//N: 100 GRAIN: 10
//Time GPU : 0.141312 ms
//Time CPU : 0.109536 ms

//---------------- INCLUDE ----------------
#include <stdio.h>
#include <time.h>
#include <cuda_runtime.h>
#include <cuda.h>
#include <iostream>
#include <vector>
#include <fstream>
#include <unistd.h>
#include <stdlib.h>
#include <math.h>
#include <string>

//---------------- DEFINE ----------------
#define NB 1024
#define NTPB 1024
#define N NTPB*NB

#define TAILLE 13
#define GRAIN 10

//---------------- FONCTIONS UTILITAIRES ----------------
//Fct test tri
bool is_sorted(int* array, int n) {
  for(int i=0; i<n-1; i++) {
    if(array[i]>array[i+1]) return false;
  }
  return true;
}

//Fct test egale
bool is_equal(int* array1, int* array2, int n) {
  for(int i=0; i<n-1; i++) {
    if(array1[i]!=array2[i]) return false;
  }
  return true;
}


//Fct Pgcd (pour la gestion du nombre de thread)
// Source : https://openclassrooms.com/forum/sujet/algorithme-de-calcul-de-pgcd-20803
int get_pgcd(int a, int b){

  int pgcd = 0;
  while(1){
    pgcd = a % b;
      if(pgcd == 0){
        pgcd = b;
        break;
      }
    a = b;
    b = pgcd;
  }
  return pgcd;
}

//---------------- version CPU ----------------

//Fct Merge CPU.
void MergeCPU(int *A, int *L, int leftCount, int *R, int rightCount) {
  int i = 0, j = 0, k = 0;
  while(i<leftCount && j<rightCount) {
    if(L[i] < R[j]) 
      A[k++] = L[i++];
    else A[k++] = R[j++];
  }
  while(i<leftCount) 
    A[k++] = L[i++];
  while(j<rightCount) 
    A[k++] = R[j++];
}

// Fct Merge and sort pour CPU
void mergeAndSortRecuCPU(int *A,int n) {
  int mid,i, *L, *R;
  if(n < 2) 
    return; // s'il y a moins de deux elements, on ne fait rien

  mid = n/2;

  // creation tableaux de gauche et de droite
  // de 0 à mid - 1 = gauche, il y a mid elements
  // de mid à n-1 = droite, il y a n-mid elements
  L = (int*)malloc(mid*sizeof(int)); 
  R = (int*)malloc((n-mid)*sizeof(int)); 

  for(i = 0;i<mid;i++) 
    L[i] = A[i]; 
  for(i = mid;i<n;i++) 
    R[i-mid] = A[i];

  mergeAndSortRecuCPU(L,mid);  // tri tableau de gauche
  mergeAndSortRecuCPU(R,n-mid);  // tri tableau de droite
  MergeCPU(A,L,mid,R,n-mid);  // fusion des tableaux
  free(L);
  free(R);
}



//---------------- version GPU ----------------

//Fct Merge GPU
__host__ __device__ void mergeGPU(int* A, int na, int aid, int* B, int nb, int bid, int* C, int cid, int T) {

  for(int i=0; i<T; i++) {
    if(aid<na && bid<nb) {
      if(A[aid] < B[bid]) {
        C[cid+i] = A[aid];
        aid++;
      }else {
        C[cid+i] = B[bid];
        bid++;
      }
    }else{ // Pour derniers indices (reste plus q un tableau)
      if(aid<na){
        C[cid+i] = A[aid];
        aid++;
      }else{
        C[cid+i] = B[bid];
        bid++;
      }
    }
  }
}

//Fct GPU partitionning GPU
__global__ void partitionningGPU(int* A, int na, int* B, int nb, int* C){
  int a, b, offset;
  int aid;
  int bid;

  int tid = blockIdx.x*blockDim.x+threadIdx.x;// identifiant de thread
  int index = tid*(na+nb)/(blockDim.x * gridDim.x);// index de debut dans C
  int a_top = (index>na)? na:index;
  int b_top = (index>na)? index-na:0;
  int a_bot = b_top;
  if(tid != 0) {
// binary search for diagonal intersectios
    while(true) {
      offset = (a_top - a_bot) / 2;
      a = a_top - offset;
      b = b_top + offset;

      if(A[a]>B[b-1]){
        if(A[a-1]<=B[b]){
          aid = a;
          bid = b;
          break; //point trouve !
        }else{
          a_top = a-1;
          b_top = b+1;
        }
      }else{
        a_bot = a+1;
      }
    }
  }else{
    aid = 0;
    bid = 0;
  }
// merge
  mergeGPU(A, na, aid, B, nb, bid, C, index, (na+nb)/(blockDim.x * gridDim.x));
}

// Fct Merge and sort pour GPU
void mergeAndSortRecuGPU(int T[], int i_debut, int i_fin)
{
  int n = i_fin - i_debut + 1;
/*
printf("\n ------ i_debut %d i_fin %d blockSize %d \n",i_debut,i_fin, blockSize);
 printf("\n T %d : \n",n);
   for(int i=0;i<n;i++){
  printf("%d\t",T[i]);
    }
  printf("\n");
*/
  if ( n < GRAIN){

    int i_milieu = i_debut + (i_fin - i_debut) / 2;

    int na = 1 + i_milieu - i_debut;
    int nb = i_fin - i_milieu;
    
    mergeAndSortRecuGPU(T, i_debut, i_milieu);
    mergeAndSortRecuGPU(T, i_milieu+1, i_fin);
  
    int *A, *B, *C;
    cudaMalloc(&A, na*sizeof(int));
    cudaMalloc(&B, nb*sizeof(int));
    cudaMalloc(&C, n*sizeof(int));

    if(!A || !B || !C ) {
      printf("[Error] memory alloc error\n");
      return;
    }

  //Cpu vers Gpu
    int error1 = cudaMemcpy(A, T, na*sizeof(int), cudaMemcpyHostToDevice);
    int error2 = cudaMemcpy(B, T+na, nb*sizeof(int), cudaMemcpyHostToDevice);
    if(error1)
      printf("[Error] error1 %d (Cpu vers Gpu)\n",error1);
    if(error2)
      printf("[Error] error2 %d (Cpu vers Gpu)\n",error2);

  //partitionning
printf("\nCall GPUpartitionning NB %d NTPB %d na %d nb %d\n",NB,get_pgcd(na, nb),na,nb);
    partitionningGPU<<<NB,NTPB>>>(A, na, B, nb, C);

  //Gpu vers cpu
    int error3 = cudaMemcpy(T, C, n*sizeof(int), cudaMemcpyDeviceToHost);
    if(error3)
      printf("[Error] error3 %d (Gpu vers cpu)\n",error3);

  //free
    free(T);
    cudaFree(A);
    cudaFree(B);
    cudaFree(C);

  }else{
  //tri
    mergeAndSortRecuCPU(T, n);
  }
}

//---------------- FONCTIONS APP ----------------

// Fct intro
void intro(){
//INTRODUCTION Longue
  system("clear");
  printf("Dans le cadre\n");
  printf("\n");
  sleep(1);
  printf("N9-IPA PARALLELISME AVANCE HPCA\n");
  printf("Projet de fin de module\n");
  printf("\n");
  sleep(1);
  printf("2017 - 2018\n");
  sleep(2);

  system("clear");
  printf("Supervisé par\n");
  printf("\n");
  printf("Lokman ABBAS TURKI\n");
  sleep(2);

  system("clear");
  printf("ALOUI Driss\n");
  printf("DO Alexandre\n");
  printf("\n");
  sleep(1);
  printf("MAIN 5 Polytech Paris UPMC\n");
  sleep(2);

  system("clear");
  printf("Présentent\n");
  sleep(1);

  system("clear");
  printf("MergeAndSortAppInCuda\n");
  printf("\n");
  sleep(1);
  printf("Version finale\n");
  sleep(1);

  system("clear");
  char s;
  printf("Appuyer sur ENTREE pour continuer\n");
  s=getchar();
  putchar(s);
  system("clear");
}


// Fct intro
void introShort(){
//INTRODUCTION courte
  system("clear");
  printf("Dans le cadre\n");
  printf("\n");
  printf("N9-IPA PARALLELISME AVANCE HPCA\n");
  printf("Projet de fin de module\n");
  printf("\n");
  printf("2017 - 2018\n");
  sleep(2);

  system("clear");
  printf("ALOUI Driss\n");
  printf("DO Alexandre\n");
  printf("\n");
  sleep(2);

  system("clear");
  printf("Présentent\n");
  sleep(1);

  system("clear");
  printf("MergeAndSortAppInCuda\n");
  printf("\n");
  printf("Version finale\n");
  sleep(1);

  system("clear");
  char s;
  printf("Appuyer sur ENTREE pour continuer\n");
  s=getchar();
  putchar(s);
  system("clear");
}

//2 Test sur tableau random
void tabRandom(){
  int x;
  int Entree = 0;
  int Erreur = 0;
  while(Entree == 0){
    system("clear");
    std::cout<<"Test sur tableau random"<<std::endl;

    if(Erreur == 1){
      std::cout<<"[Erreur] Entrée non valide ! (entier positif)"<<std::endl;
      Erreur  =  0;
    }
    std::cout<<"Entrer la taille du tableau puis valider avec la touche ENTREE"<<std::endl;
    std::cin>>x;
    while (getchar() != '\n'); //vide le buffer de saisie
    if(x>0){
      Entree = 1;
      char s;
      printf("Vous avez entré %d\n", x);
      printf("Appuyer sur ENTREE pour continuer\n");
      s=getchar();
      putchar(s);
    }else{
      Erreur  =  1;
    }
  }

  int n = x;

// var pour timer
  cudaEvent_t startCPU, stopCPU;
  cudaEventCreate ( &startCPU );
  cudaEventCreate ( &stopCPU );
  cudaEvent_t startGPU, stopGPU;
  cudaEventCreate ( &startGPU );
  cudaEventCreate ( &stopGPU );

//Alloc Array
printf("Alloc Array\n");
  srand(time(NULL));
  int* T_cpu = (int*)malloc(n*sizeof(int));
  int* T_gpu = (int*)malloc(n*sizeof(int));
  int cpt=0;

//init Array
printf("\nInit Array\n");
  while (cpt<n){
    T_gpu[cpt]=(rand()%100);
    T_cpu[cpt] = T_gpu[cpt];
    cpt++;
  }
printf("\n");

//sort CPU
printf("\nCall sort CPU\n");
  cudaEventRecord(startCPU);
  mergeAndSortRecuGPU(T_gpu, 0, n-1);
  cudaEventRecord(stopCPU);
printf("\n");
//sort GPU
printf("\nCall sort GPU\n");
  cudaEventRecord(startGPU);
  mergeAndSortRecuCPU(T_cpu, n);
  cudaEventRecord(stopGPU);
printf("Call cudaDeviceSynchronize\n");
  cudaDeviceSynchronize();

//test tri ok?
printf("\nTest tri\n");
  if(is_sorted(T_cpu, n)){
    printf("OK\n");
  //Fct test egale
printf("Test egale\n");
    if(is_equal(T_cpu, T_gpu, n))
      printf("OK\n");
    else
      printf("[error] T_gpu mal trie");
  }else{
    printf("[error] T_cpu mal trie");   
  }

//Time resuts
printf("\nTime results\n");
  float millisecondsGPU = 0;
  cudaEventElapsedTime(&millisecondsGPU, startGPU, stopGPU);
  printf("\nTime GPU : %f ms\n",millisecondsGPU);
  float millisecondsCPU = 0;
  cudaEventElapsedTime(&millisecondsCPU, startCPU, stopCPU);
  printf("Time CPU : %f ms\n",millisecondsCPU);

printf("\n");
  char s;
  printf("Appuyer sur ENTREE pour continuer\n");
  s=getchar();
  putchar(s);

//free
  free(T_cpu);
  free(T_gpu);

}

//3 Lecture à partir d'un fichier
void tabFile(){
  std::ifstream file;
  std::string x;
  int Entree = 0;
  int Erreur = 0;
  while(Entree == 0){
    system("clear");
    std::cout<<"Lecture à partir d'un fichier"<<std::endl;

    if(Erreur == 1){
      std::cout<<"[Erreur] Entrée non valide ! Le fichier doit se trouver dans le repertoire courant ex : exemple.txt et il doit utiliser des retours à la ligne en séparateur"<<std::endl;
      Erreur  =  0;
    }
    std::cout<<"Entrer le nom du fichier puis valider avec la touche ENTREE"<<std::endl;
    std::cin>>x;
    while (getchar() != '\n'); //vide le buffer de saisie
    x = "../data/" + x;
    file.open(x);
    if(file.is_open()){
      char s;
      std::cout<<"Vous avez entré "<<x<<std::endl;
      printf("Appuyer sur ENTREE pour continuer\n");
      s=getchar();
      putchar(s);
      Entree = 1;
    }else{
      Erreur  =  1;
    }
  }

//ouverture fichier

//lecture fichier
printf("Lecture fichier...\n");
  int num;
  std::vector<int> tab;
  while (file >> num) { tab.push_back(num); }

  int n = tab.size();
printf("%d elements lues\n",n);

// var pour timer
  cudaEvent_t startCPU, stopCPU;
  cudaEventCreate ( &startCPU );
  cudaEventCreate ( &stopCPU );
  cudaEvent_t startGPU, stopGPU;
  cudaEventCreate ( &startGPU );
  cudaEventCreate ( &stopGPU );

//Alloc Array
printf("Alloc Array\n");
  srand(time(NULL));
  int* T_cpu = (int*)malloc(n*sizeof(int));
  int* T_gpu = (int*)malloc(n*sizeof(int));
  int cpt=0;

//init Array
printf("\nInit Array\n");
  while (cpt<n){
    T_gpu[cpt]= tab[cpt];
    T_cpu[cpt] = tab[cpt];
    cpt++;
  }
printf("\n");

//sort CPU
printf("\nCall sort CPU\n");
  cudaEventRecord(startCPU);
  mergeAndSortRecuGPU(T_gpu, 0, n-1);
  cudaEventRecord(stopCPU);
printf("\n");
//sort GPU
printf("\nCall sort GPU\n");
  cudaEventRecord(startGPU);
  mergeAndSortRecuCPU(T_cpu, n);
  cudaEventRecord(stopGPU);
printf("Call cudaDeviceSynchronize\n");
  cudaDeviceSynchronize();

//test tri ok?
printf("\nTest tri\n");
  if(is_sorted(T_cpu, n)){
    printf("OK\n");
  //Fct test egale
printf("Test egale\n");
    if(is_equal(T_cpu, T_gpu, n))
      printf("OK\n");
    else
      printf("[error] T_gpu mal trie");
  }else{
    printf("[error] T_cpu mal trie");   
  }

//Time resuts
printf("\nTime results\n");
  float millisecondsGPU = 0;
  cudaEventElapsedTime(&millisecondsGPU, startGPU, stopGPU);
  printf("\nTime GPU : %f ms\n",millisecondsGPU);
  float millisecondsCPU = 0;
  cudaEventElapsedTime(&millisecondsCPU, startCPU, stopCPU);
  printf("Time CPU : %f ms\n",millisecondsCPU);

printf("\n");
  char s;
  printf("Appuyer sur ENTREE pour continuer\n");
  s=getchar();
  putchar(s);

//free
  free(T_cpu);
  free(T_gpu);
}
//4 Exemple d'application donnee automobile
void tabCars(){
  std::ifstream file;
  int x;
  int Entree = 0;
  int Erreur = 0;
  while(Entree == 0){
    system("clear");
    std::cout<<"Exemple d'application données automobiles"<<std::endl;
    std::cout<<"0\tTop 10 Prix"<<std::endl;
    std::cout<<"1\tTop 10 Km"<<std::endl;
    if(Erreur == 1){
      std::cout<<"[Erreur] Entrée non valide ! choisir une option 1 ou 2"<<std::endl;
      Erreur  =  0;
    }
    if(Erreur == 2){
      std::cout<<"[Erreur] Fichier price.txt manquant! Lancer le script doc.py"<<std::endl;
      Erreur  =  0;
    }
    if(Erreur == 3){
      std::cout<<"[Erreur] Fichier kilometer.txt manquant! Lancer le script doc.py"<<std::endl;
      Erreur  =  0;
    }
    std::cout<<"Entrer votre choix (0 ou 1) puis valider avec la touche ENTREE"<<std::endl;
    std::cin>>x;
    while (getchar() != '\n'); //vide le buffer de saisie
    if(x==0){
      file.open("../data/price.txt");//ouverture fichier
      if(file.is_open()){
        char s;
        std::cout<<"Vous avez entré "<<x<<std::endl;
        printf("Appuyer sur ENTREE pour continuer\n");
        s=getchar();
        putchar(s);
        Entree = 1;
      }else{
        Erreur  =  2;
      }
    }else{
      if(x==1){
        file.open("../data/kilometer.txt");//ouverture fichier
        if(file.is_open()){
          char s;
          std::cout<<"Vous avez entré "<<x<<std::endl;
          printf("Appuyer sur ENTREE pour continuer\n");
          s=getchar();
          putchar(s);
          Entree = 2;
        }else{
          Erreur  =  3;
        }
      }else{
        Erreur  =  1; //mauvais choix
      }
    }
  }


//lecture fichier
printf("Lecture fichier...\n");
  int num;
  std::vector<int> tab;
  while (file >> num) { tab.push_back(num); }

  int n = tab.size();
printf("%d elements lus\n",n);

// var pour timer
  cudaEvent_t startCPU, stopCPU;
  cudaEventCreate ( &startCPU );
  cudaEventCreate ( &stopCPU );
  cudaEvent_t startGPU, stopGPU;
  cudaEventCreate ( &startGPU );
  cudaEventCreate ( &stopGPU );

//Alloc Array
printf("Alloc Array\n");
  srand(time(NULL));
  int* T_cpu = (int*)malloc(n*sizeof(int));
  int* T_gpu = (int*)malloc(n*sizeof(int));
  int cpt=0;

//init Array
printf("\nInit Array\n");
  while (cpt<n){
    T_gpu[cpt]= tab[cpt];
    T_cpu[cpt] = tab[cpt];
    cpt++;
  }
printf("\n");

//sort CPU
printf("\nCall sort CPU\n");
  cudaEventRecord(startCPU);
  mergeAndSortRecuGPU(T_gpu, 0, n-1);
  cudaEventRecord(stopCPU);
printf("\n");
//sort GPU
printf("\nCall sort GPU\n");
  cudaEventRecord(startGPU);
  mergeAndSortRecuCPU(T_cpu, n);
  cudaEventRecord(stopGPU);
printf("Call cudaDeviceSynchronize\n");
  cudaDeviceSynchronize();

//test tri ok?
printf("\nTest tri\n");
  if(is_sorted(T_cpu, n)){
    printf("OK\n");
  //Fct test egale
printf("Test egale\n");
    if(is_equal(T_cpu, T_gpu, n))
      printf("OK\n");
    else
      printf("[error] T_gpu mal trie");
  }else{
    printf("[error] T_cpu mal trie");   
  }

//Time resuts
printf("\nTime results\n");
  float millisecondsGPU = 0;
  cudaEventElapsedTime(&millisecondsGPU, startGPU, stopGPU);
  printf("\nTime GPU : %f ms\n",millisecondsGPU);
  float millisecondsCPU = 0;
  cudaEventElapsedTime(&millisecondsCPU, startCPU, stopCPU);
  printf("Time CPU : %f ms\n",millisecondsCPU);
printf("\n");
  if(Entree == 1){//price
  printf("\nTop 10 des prix les plus élevés des voitures:\n");
    cpt = n;
    while (cpt>n-10){
      printf("[%d] %d Euros\n",n-cpt+1,T_gpu[cpt-1]);
      cpt--;
    }
   printf("\n");
  }
  if(Entree == 2){//kilometer
  printf("\nTop 10 des voitures les plus durables :\n");
    cpt = n;
    while (cpt>n-10){
      printf("[%d] %d Km\n",n-cpt+1,T_gpu[cpt-1]);
      cpt--;
    }
   printf("\n");
  }

printf("\n");
  char s;
  printf("Appuyer sur ENTREE pour continuer\n");
  s=getchar();
  putchar(s);

//free
  free(T_cpu);
  free(T_gpu);
}

int sousMenu(){
  int x;
  int Entree = 0;
  int Erreur = 0;
  while(Entree == 0){
    system("clear");
    std::cout<<"Tester l'algorithme de tri"<<std::endl;
    std::cout<<"0\tQuitter"<<std::endl;
    std::cout<<"1\tHelp"<<std::endl;
    std::cout<<"2\tTest sur tableau random"<<std::endl;
    std::cout<<"3\tLecture à partir d'un fichier"<<std::endl;
    std::cout<<"4\tExemple d'application données automobiles"<<std::endl;
    std::cout<<"5\tRetour menu principal"<<std::endl;

    if(Erreur == 1){
      std::cout<<"[Erreur] Entrée non valide !"<<std::endl;
      Erreur  =  0;
    }
    std::cout<<"Appuyer sur une touche entre 0 et 5  puis valider avec la touche ENTREE"<<std::endl;
    std::cin>>x;
    while (getchar() != '\n'); //vide le buffer de saisie

    switch ( x ){
      case 0: 
        system("clear");
        std::cout<<"Vous avez choisi de quitter"<<std::endl;
        std::cout<<"Etes vous sûr?"<<std::endl;
        std::cout<<"Appuyer sur 1 pour revenir au Menu principal sinon une touche pour quitter puis valider avec la touche ENTREE"<<std::endl;
        std::cin>>x;
        while (getchar() != '\n'); //vide le buffer de saisie
        if(x!=1){
          system("clear");
          std::cout<<"Merci et à bientot"<<std::endl;
          sleep(0.6);
          system("clear");
          std::cout<<"Merci et à bientot"<<std::endl;
          std::cout<<"3"<<std::endl;
           sleep(1);
          system("clear");
          std::cout<<"Merci et à bientot"<<std::endl;
          std::cout<<"  2"<<std::endl;
          sleep(1);
          system("clear");
          std::cout<<"Merci et à bientot"<<std::endl;
          std::cout<<"    1"<<std::endl;
          sleep(1);
          Entree = 2;
          system("clear");
        }
        break; 
      case 1:  
        system("clear");
        std::cout<<"1\tHelp"<<std::endl;
        std::cout<<"Merci d'utiliser exclusivement les CHIFFRES pour les selections dans les menus"<<std::endl;
        std::cout<<""<<std::endl;
        std::cout<<""<<std::endl;
        std::cout<<"Naviguer dans les menus pour tester toutes nos implementations de tri merge and sort sur CPU et GPU."<<std::endl;
        std::cout<<""<<std::endl;
        std::cout<<"Utilisation :"<<std::endl;
        std::cout<<"- Test sur tableau random : génère aléatoirement un tableau d'entier et le tri"<<std::endl;
        std::cout<<"- Lecture à partir d'un fichier : lit à partir d'un fichier un tableau d'entier et le tri."<<std::endl;
        std::cout<<"  Le fichier doit être écrit de la meme manière que data/exemple.txt"<<std::endl;
        std::cout<<"  On peut utiliser script/genere.c pour en créer un nouveau."<<std::endl;
std::cout<<"- Exemple d'application données automobiles : des données automobiles sont lues et triees."<<std::endl;
std::cout<<"  Il est essentiel de lancer le script de pré-traitrement des données script/doc.py avant."<<std::endl;
        std::cout<<""<<std::endl;
        std::cout<<""<<std::endl;
        std::cout<<""<<std::endl;
        sleep(2);
        char sh;
        printf("Appuyer sur ENTREE pour continuer\n");
        sh=getchar();
        putchar(sh);
        break;  
      case 2:  
        // Test sur tableau random
        tabRandom();
        break;
      case 3:  
      // Lecture à partir d'un fichier
        tabFile();
        break;
      case 4:  
      // Exemple d'application donnee automobile
        tabCars();
        break;
      case 5:  
        Entree = 1;
        break;
      default:  
        Erreur = 1;
    } 
  }
  return Entree;
}

void menuPrincipal(){
  int x;
  int Entree = 0;
  int Erreur = 0;
  while(Entree == 0){
    system("clear");
    std::cout<<"Menu principal"<<std::endl;
    std::cout<<"0\tQuitter"<<std::endl;
    std::cout<<"1\tHelp"<<std::endl;
    std::cout<<"2\tTester l'algorithme de tri"<<std::endl;
    std::cout<<"3\tReset"<<std::endl;

    if(Erreur == 1){
      std::cout<<"[Erreur] Entrée non valide !"<<std::endl;
      Erreur  =  0;
    }
    std::cout<<"Appuyer sur une touche entre 0 et 3  puis valider avec la touche ENTREE"<<std::endl;
    std::cin>>x;
    while (getchar() != '\n'); //vide le buffer de saisie
    switch ( x ){
      case 0: 
        system("clear");
        std::cout<<"Vous avez choisi de quitter"<<std::endl;
        std::cout<<"Etes vous sûr?"<<std::endl;
        std::cout<<"Appuyer sur 1 pour revenir au Menu principal sinon une touche pour quitter puis valider avec la touche ENTREE"<<std::endl;
        std::cin>>x;
        while (getchar() != '\n'); //vide le buffer de saisie
        if(x!=1){
          system("clear");
          std::cout<<"Merci et à bientôt"<<std::endl;
          sleep(0.6);
          system("clear");
          std::cout<<"Merci et à bientôt"<<std::endl;
          std::cout<<"3"<<std::endl;
          sleep(1);
          system("clear");
          std::cout<<"Merci et à bientôt"<<std::endl;
          std::cout<<"  2"<<std::endl;
          sleep(1);
          system("clear");
          std::cout<<"Merci et à bientôt"<<std::endl;
          std::cout<<"    1"<<std::endl;
          sleep(1);
          Entree = 1;
          system("clear");
        }
        break; 
      case 1:  
        system("clear");
        std::cout<<"1\tHelp"<<std::endl;
        std::cout<<"Merci d'utiliser exclusivement les CHIFFRES pour les sélections dans les menus"<<std::endl;
        std::cout<<""<<std::endl;
        std::cout<<""<<std::endl;
        std::cout<<"Naviguer dans les menus pour tester toutes nos implémentations de tri merge and sort sur CPU et GPU."<<std::endl;
        std::cout<<""<<std::endl;
        sleep(2);
        char sh;
        printf("Appuyer sur ENTREE pour continuer\n");
        sh=getchar();
        putchar(sh);
        break;  
      case 2:  
        if(sousMenu()==2)
          Entree = 1;
        break;
      case 3:  
        intro();
        break;
      default:  
        Erreur = 1;
    } 
  }
}

// End
void end(){
  system("clear");
  printf("\nBy\n");
  printf("ALOUI Driss\n");
  printf("DO Alexandre\n");
  printf("\nNovembre 2017\n");
}

void prelude(){
  std::cout<<"Naviguer dans les menus pour tester toutes nos implémentations de tri merge and sort sur CPU et GPU."<<std::endl;
  std::cout<<""<<std::endl;
  sleep(2);
  char sh;
  printf("Appuyer sur ENTREE pour continuer\n");
  sh=getchar();
  putchar(sh);
}

//---------------- MAIN ----------------
//main
int main(){
  //int n = TAILLE;

// Gestion de l intro
  FILE* fichier = NULL;
  fichier = fopen("tmp.txt", "r");

  if (fichier == NULL){ // 1ere fois
    intro();
    prelude();
    FILE* fichier2 = NULL;
    fichier2 = fopen("tmp.txt", "w");
    fprintf(fichier2, "1");
    fclose(fichier2);
  }else{ // intro deja faite une fois)
    fclose(fichier);
    introShort();
  }
  
  menuPrincipal();
  end();

  return 0;
}

	.file	"tmpxft_003769ce_00000000-6_main.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4175:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4175:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"basic_string::append"
	.text
	.align 2
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0, @function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0:
.LFB4989:
	.cfi_startproc
	movabsq	$4611686018427387903, %rax
	subq	8(%rdi), %rax
	cmpq	%rdx, %rax
	jnb	.L3
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	.LC0(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L3:
	.cfi_def_cfa_offset 8
	jmp	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm@PLT
	.cfi_endproc
.LFE4989:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0, .-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0
	.align 2
	.type	_ZNSolsEPFRSoS_E.isra.0, @function
_ZNSolsEPFRSoS_E.isra.0:
.LFB4991:
	.cfi_startproc
	jmp	*%rsi
	.cfi_endproc
.LFE4991:
	.size	_ZNSolsEPFRSoS_E.isra.0, .-_ZNSolsEPFRSoS_E.isra.0
	.globl	_Z9is_sortedPii
	.type	_Z9is_sortedPii, @function
_Z9is_sortedPii:
.LFB4142:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
	decl	%esi
.L10:
	cmpl	%eax, %esi
	jle	.L14
	movl	(%rdi,%rax,4), %edx
	incq	%rax
	cmpl	(%rdi,%rax,4), %edx
	jle	.L10
	xorl	%eax, %eax
	ret
.L14:
	movb	$1, %al
	ret
	.cfi_endproc
.LFE4142:
	.size	_Z9is_sortedPii, .-_Z9is_sortedPii
	.globl	_Z8is_equalPiS_i
	.type	_Z8is_equalPiS_i, @function
_Z8is_equalPiS_i:
.LFB4143:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
	decl	%edx
.L16:
	cmpl	%eax, %edx
	jle	.L20
	movl	(%rdi,%rax,4), %ecx
	incq	%rax
	cmpl	-4(%rsi,%rax,4), %ecx
	je	.L16
	xorl	%eax, %eax
	ret
.L20:
	movb	$1, %al
	ret
	.cfi_endproc
.LFE4143:
	.size	_Z8is_equalPiS_i, .-_Z8is_equalPiS_i
	.globl	_Z8get_pgcdii
	.type	_Z8get_pgcdii, @function
_Z8get_pgcdii:
.LFB4144:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	movl	%esi, %edx
.L22:
	movl	%edx, %ecx
	cltd
	idivl	%ecx
	movl	%ecx, %eax
	testl	%edx, %edx
	jne	.L22
	ret
	.cfi_endproc
.LFE4144:
	.size	_Z8get_pgcdii, .-_Z8get_pgcdii
	.globl	_Z8MergeCPUPiS_iS_i
	.type	_Z8MergeCPUPiS_iS_i, @function
_Z8MergeCPUPiS_iS_i:
.LFB4145:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movq	%rsi, %r11
	movq	%rcx, %r10
	movl	%edx, %esi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	xorl	%edx, %edx
	xorl	%eax, %eax
	xorl	%r9d, %r9d
.L25:
	cmpl	%esi, %r9d
	movslq	%r9d, %rcx
	jge	.L34
	cmpl	%r8d, %eax
	jge	.L34
	movslq	%eax, %rbx
	movl	(%r11,%rcx,4), %ecx
	movl	(%r10,%rbx,4), %ebx
	cmpl	%ebx, %ecx
	jge	.L26
	incl	%r9d
	jmp	.L27
.L26:
	incl	%eax
	movl	%ebx, %ecx
.L27:
	movl	%ecx, (%rdi,%rdx,4)
	incq	%rdx
	jmp	.L25
.L34:
	movl	%edx, %ebx
	movslq	%edx, %rdx
.L30:
	cmpl	%ecx, %esi
	jle	.L39
	movl	(%r11,%rcx,4), %r14d
	incq	%rcx
	movl	%r14d, (%rdi,%rdx,4)
	incq	%rdx
	jmp	.L30
.L39:
	movl	%esi, %edx
	xorl	%ecx, %ecx
	cltq
	subl	%r9d, %edx
	cmpl	%esi, %r9d
	cmovg	%ecx, %edx
	addl	%ebx, %edx
	movslq	%edx, %rdx
.L32:
	cmpl	%eax, %r8d
	jle	.L40
	movl	(%r10,%rax,4), %ecx
	incq	%rax
	movl	%ecx, (%rdi,%rdx,4)
	incq	%rdx
	jmp	.L32
.L40:
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4145:
	.size	_Z8MergeCPUPiS_iS_i, .-_Z8MergeCPUPiS_iS_i
	.globl	_Z19mergeAndSortRecuCPUPii
	.type	_Z19mergeAndSortRecuCPUPii, @function
_Z19mergeAndSortRecuCPUPii:
.LFB4146:
	.cfi_startproc
	endbr64
	cmpl	$1, %esi
	jle	.L41
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%esi, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	sarl	%r14d
	movl	%esi, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%r13d, %r15d
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	subl	%r14d, %r15d
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movslq	%r14d, %rbx
	leaq	0(,%rbx,4), %rdi
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	call	malloc@PLT
	movslq	%r15d, %rdi
	salq	$2, %rdi
	movq	%rax, 8(%rsp)
	call	malloc@PLT
	movl	%r14d, %ecx
	movq	8(%rsp), %rdi
	movq	%r12, %rsi
	salq	$2, %rcx
	movq	%rax, %rbp
	rep movsb
.L43:
	cmpl	%ebx, %r13d
	jle	.L48
	movl	(%r12,%rbx,4), %ecx
	addq	$4, %rax
	incq	%rbx
	movl	%ecx, -4(%rax)
	jmp	.L43
.L48:
	movq	8(%rsp), %rdi
	movl	%r14d, %esi
	call	_Z19mergeAndSortRecuCPUPii
	movl	%r15d, %esi
	movq	%rbp, %rdi
	call	_Z19mergeAndSortRecuCPUPii
	movq	8(%rsp), %rsi
	movl	%r15d, %r8d
	movq	%rbp, %rcx
	movl	%r14d, %edx
	movq	%r12, %rdi
	call	_Z8MergeCPUPiS_iS_i
	movq	8(%rsp), %rdi
	call	free@PLT
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	movq	%rbp, %rdi
	popq	%rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_restore 12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_restore 13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_restore 14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_restore 15
	.cfi_def_cfa_offset 8
	jmp	free@PLT
.L41:
	ret
	.cfi_endproc
.LFE4146:
	.size	_Z19mergeAndSortRecuCPUPii, .-_Z19mergeAndSortRecuCPUPii
	.globl	_Z8mergeGPUPiiiS_iiS_ii
	.type	_Z8mergeGPUPiiiS_iiS_ii, @function
_Z8mergeGPUPiiiS_iiS_ii:
.LFB4147:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	%edx, %eax
	movq	%rcx, %r11
	movslq	24(%rsp), %rdx
	movq	16(%rsp), %rcx
	movl	%esi, %r10d
	xorl	%esi, %esi
	leaq	(%rcx,%rdx,4), %rdx
.L50:
	cmpl	%esi, 32(%rsp)
	jle	.L64
	cmpl	%r10d, %eax
	jge	.L54
	cmpl	%r8d, %r9d
	jge	.L51
	movslq	%eax, %rcx
	movl	(%rdi,%rcx,4), %ebx
	movslq	%r9d, %rcx
	movl	(%r11,%rcx,4), %ecx
	cmpl	%ecx, %ebx
	jge	.L63
	incl	%eax
	movl	%ebx, %ecx
	jmp	.L53
.L51:
	cmpl	%r10d, %eax
	jge	.L54
	movslq	%eax, %rcx
	incl	%eax
	movl	(%rdi,%rcx,4), %ecx
	jmp	.L53
.L54:
	movslq	%r9d, %rcx
	movl	(%r11,%rcx,4), %ecx
.L63:
	incl	%r9d
.L53:
	movl	%ecx, (%rdx,%rsi,4)
	incq	%rsi
	jmp	.L50
.L64:
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4147:
	.size	_Z8mergeGPUPiiiS_iiS_ii, .-_Z8mergeGPUPiiiS_iiS_ii
	.section	.rodata.str1.1
.LC1:
	.string	"clear"
.LC2:
	.string	"Dans le cadre\n"
.LC3:
	.string	"\n"
.LC4:
	.string	"N9-IPA PARALLELISME AVANCE HPCA\n"
.LC5:
	.string	"Projet de fin de module\n"
.LC6:
	.string	"2017 - 2018\n"
.LC7:
	.string	"Supervis\303\251 par\n"
.LC8:
	.string	"Lokman ABBAS TURKI\n"
.LC9:
	.string	"ALOUI Driss\n"
.LC10:
	.string	"DO Alexandre\n"
.LC11:
	.string	"MAIN 5 Polytech Paris UPMC\n"
.LC12:
	.string	"Pr\303\251sentent\n"
.LC13:
	.string	"MergeAndSortAppInCuda\n"
.LC14:
	.string	"Version finale\n"
.LC15:
	.string	"Appuyer sur ENTREE pour continuer\n"
	.text
	.globl	_Z5introv
	.type	_Z5introv, @function
_Z5introv:
.LFB4149:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC3(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	.LC1(%rip), %rbx
	pushq	%rax
	.cfi_def_cfa_offset 32
	movq	%rbx, %rdi
	call	system@PLT
	leaq	.LC2(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%rbp, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$1, %edi
	call	sleep@PLT
	leaq	.LC4(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC5(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%rbp, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$1, %edi
	call	sleep@PLT
	leaq	.LC6(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$2, %edi
	call	sleep@PLT
	movq	%rbx, %rdi
	call	system@PLT
	leaq	.LC7(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%rbp, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC8(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$2, %edi
	call	sleep@PLT
	movq	%rbx, %rdi
	call	system@PLT
	leaq	.LC9(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC10(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%rbp, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$1, %edi
	call	sleep@PLT
	xorl	%eax, %eax
	movl	$2, %edi
	leaq	.LC11(%rip), %rsi
	call	__printf_chk@PLT
	movl	$2, %edi
	call	sleep@PLT
	movq	%rbx, %rdi
	call	system@PLT
	leaq	.LC12(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$1, %edi
	call	sleep@PLT
	movq	%rbx, %rdi
	call	system@PLT
	leaq	.LC13(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%rbp, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$1, %edi
	call	sleep@PLT
	leaq	.LC14(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$1, %edi
	call	sleep@PLT
	movq	%rbx, %rdi
	call	system@PLT
	leaq	.LC15(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	call	getchar@PLT
	movsbl	%al, %edi
	call	putchar@PLT
	popq	%rdx
	.cfi_def_cfa_offset 24
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	system@PLT
	.cfi_endproc
.LFE4149:
	.size	_Z5introv, .-_Z5introv
	.globl	_Z10introShortv
	.type	_Z10introShortv, @function
_Z10introShortv:
.LFB4150:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC3(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	.LC1(%rip), %rbx
	pushq	%rax
	.cfi_def_cfa_offset 32
	movq	%rbx, %rdi
	call	system@PLT
	leaq	.LC2(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%rbp, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC4(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC5(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%rbp, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC6(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$2, %edi
	call	sleep@PLT
	movq	%rbx, %rdi
	call	system@PLT
	leaq	.LC9(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC10(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%rbp, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$2, %edi
	call	sleep@PLT
	movq	%rbx, %rdi
	call	system@PLT
	leaq	.LC12(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$1, %edi
	call	sleep@PLT
	movq	%rbx, %rdi
	call	system@PLT
	leaq	.LC13(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%rbp, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC14(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$1, %edi
	call	sleep@PLT
	movq	%rbx, %rdi
	call	system@PLT
	leaq	.LC15(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	call	getchar@PLT
	movsbl	%al, %edi
	call	putchar@PLT
	popq	%rdx
	.cfi_def_cfa_offset 24
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	system@PLT
	.cfi_endproc
.LFE4150:
	.size	_Z10introShortv, .-_Z10introShortv
	.section	.rodata.str1.1
.LC16:
	.string	"\nBy\n"
.LC17:
	.string	"\nNovembre 2017\n"
	.text
	.globl	_Z3endv
	.type	_Z3endv, @function
_Z3endv:
.LFB4170:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	.LC1(%rip), %rdi
	call	system@PLT
	leaq	.LC16(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC9(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC10(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC17(%rip), %rsi
	xorl	%eax, %eax
	popq	%rdx
	.cfi_def_cfa_offset 8
	movl	$2, %edi
	jmp	__printf_chk@PLT
	.cfi_endproc
.LFE4170:
	.size	_Z3endv, .-_Z3endv
	.section	.rodata.str1.1
.LC18:
	.string	"Naviguer dans les menus pour tester toutes nos impl\303\251mentations de tri merge and sort sur CPU et GPU."
.LC19:
	.string	""
	.text
	.globl	_Z7preludev
	.type	_Z7preludev, @function
_Z7preludev:
.LFB4171:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	_ZSt4cout(%rip), %rbx
	leaq	.LC18(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%rbx, %rdi
	leaq	.LC19(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movl	$2, %edi
	call	sleep@PLT
	movl	$2, %edi
	leaq	.LC15(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	call	getchar@PLT
	popq	%rbx
	.cfi_def_cfa_offset 8
	movsbl	%al, %edi
	jmp	putchar@PLT
	.cfi_endproc
.LFE4171:
	.size	_Z7preludev, .-_Z7preludev
	.globl	_Z42__device_stub__Z16partitionningGPUPiiS_iS_PiiS_iS_
	.type	_Z42__device_stub__Z16partitionningGPUPiiS_iS_PiiS_iS_, @function
_Z42__device_stub__Z16partitionningGPUPiiS_iS_PiiS_iS_:
.LFB4197:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rdi
	movl	%esi, 20(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	32(%rsp), %rdx
	movl	%ecx, 16(%rsp)
	leaq	40(%rsp), %rcx
	movq	%r8, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 120(%rsp)
	movq	%rsp, %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L73
	pushq	40(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z16partitionningGPUPiiS_iS_(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 176
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L73:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L75
	call	__stack_chk_fail@PLT
.L75:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4197:
	.size	_Z42__device_stub__Z16partitionningGPUPiiS_iS_PiiS_iS_, .-_Z42__device_stub__Z16partitionningGPUPiiS_iS_PiiS_iS_
	.globl	_Z16partitionningGPUPiiS_iS_
	.type	_Z16partitionningGPUPiiS_iS_, @function
_Z16partitionningGPUPiiS_iS_:
.LFB4198:
	.cfi_startproc
	endbr64
	jmp	_Z42__device_stub__Z16partitionningGPUPiiS_iS_PiiS_iS_
	.cfi_endproc
.LFE4198:
	.size	_Z16partitionningGPUPiiS_iS_, .-_Z16partitionningGPUPiiS_iS_
	.section	.rodata.str1.1
.LC20:
	.string	"[Error] memory alloc error\n"
.LC21:
	.string	"[Error] error1 %d (Cpu vers Gpu)\n"
.LC22:
	.string	"[Error] error2 %d (Cpu vers Gpu)\n"
.LC23:
	.string	"\nCall GPUpartitionning NB %d NTPB %d na %d nb %d\n"
.LC24:
	.string	"[Error] error3 %d (Gpu vers cpu)\n"
	.text
	.globl	_Z19mergeAndSortRecuGPUPiii
	.type	_Z19mergeAndSortRecuGPUPiii, @function
_Z19mergeAndSortRecuGPUPiii:
.LFB4148:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	movq	%rdi, %rbx
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	movl	%edx, %eax
	subl	%esi, %eax
	leal	1(%rax), %r14d
	cmpl	$9, %r14d
	jg	.L79
	movl	$2, %ecx
	movl	%edx, %r15d
	cltd
	movslq	%r14d, %r14
	idivl	%ecx
	movl	%r15d, %r12d
	leal	(%rax,%rsi), %edx
	leal	1(%rdx), %r13d
	subl	%edx, %r12d
	movl	%r13d, %ebp
	subl	%esi, %ebp
	call	_Z19mergeAndSortRecuGPUPiii
	movl	%r13d, %esi
	movslq	%ebp, %r13
	movl	%r15d, %edx
	movq	%rbx, %rdi
	salq	$2, %r13
	movslq	%r12d, %r15
	call	_Z19mergeAndSortRecuGPUPiii
	salq	$2, %r15
	leaq	24(%rsp), %rdi
	movq	%r13, %rsi
	call	cudaMalloc@PLT
	leaq	32(%rsp), %rdi
	movq	%r15, %rsi
	call	cudaMalloc@PLT
	leaq	0(,%r14,4), %rax
	leaq	40(%rsp), %rdi
	movq	%rax, %rsi
	movq	%rax, 8(%rsp)
	call	cudaMalloc@PLT
	movq	24(%rsp), %rdi
	testq	%rdi, %rdi
	je	.L80
	cmpq	$0, 32(%rsp)
	je	.L80
	cmpq	$0, 40(%rsp)
	jne	.L81
.L80:
	leaq	.LC20(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L78
.L81:
	movq	%r13, %rdx
	movl	$1, %ecx
	movq	%rbx, %rsi
	call	cudaMemcpy@PLT
	movq	32(%rsp), %rdi
	leaq	(%rbx,%r13), %rsi
	movq	%r15, %rdx
	movl	$1, %ecx
	movl	%eax, %r14d
	call	cudaMemcpy@PLT
	movl	%eax, %r13d
	testl	%r14d, %r14d
	je	.L83
	movl	%r14d, %edx
	leaq	.LC21(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L83:
	testl	%r13d, %r13d
	je	.L84
	movl	%r13d, %edx
	leaq	.LC22(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L84:
	movl	%r12d, %edx
	movl	%ebp, %eax
.L85:
	movl	%edx, %ecx
	cltd
	idivl	%ecx
	movl	%ecx, %eax
	testl	%edx, %edx
	jne	.L85
	movl	%r12d, %r9d
	movl	%ebp, %r8d
	movl	$1024, %edx
	movl	$2, %edi
	leaq	.LC23(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$4194305, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	salq	$10, %rdi
	movl	$1, %ecx
	movl	$1, %esi
	movq	%rdi, %rdx
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L86
	movq	40(%rsp), %r8
	movq	32(%rsp), %rdx
	movl	%r12d, %ecx
	movl	%ebp, %esi
	movq	24(%rsp), %rdi
	call	_Z42__device_stub__Z16partitionningGPUPiiS_iS_PiiS_iS_
.L86:
	movq	8(%rsp), %rdx
	movq	40(%rsp), %rsi
	movl	$2, %ecx
	movq	%rbx, %rdi
	call	cudaMemcpy@PLT
	movl	%eax, %edx
	testl	%eax, %eax
	je	.L87
	leaq	.LC24(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L87:
	movq	%rbx, %rdi
	call	free@PLT
	movq	24(%rsp), %rdi
	call	cudaFree@PLT
	movq	32(%rsp), %rdi
	call	cudaFree@PLT
	movq	40(%rsp), %rdi
	call	cudaFree@PLT
	jmp	.L78
.L79:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L104
	addq	$88, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r14d, %esi
	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
	jmp	_Z19mergeAndSortRecuCPUPii
.L78:
	.cfi_restore_state
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	je	.L89
.L104:
	call	__stack_chk_fail@PLT
.L89:
	addq	$88, %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
.LFE4148:
	.size	_Z19mergeAndSortRecuGPUPiii, .-_Z19mergeAndSortRecuGPUPiii
	.section	.rodata.str1.1
.LC25:
	.string	"[Erreur] Entr\303\251e non valide ! (entier positif)"
.LC26:
	.string	"Entrer la taille du tableau puis valider avec la touche ENTREE"
.LC27:
	.string	"Vous avez entr\303\251 %d\n"
.LC28:
	.string	"Alloc Array\n"
.LC29:
	.string	"\nInit Array\n"
.LC30:
	.string	"Test sur tableau random"
.LC31:
	.string	"\nCall sort CPU\n"
.LC32:
	.string	"\nCall sort GPU\n"
.LC33:
	.string	"Call cudaDeviceSynchronize\n"
.LC34:
	.string	"\nTest tri\n"
.LC35:
	.string	"OK\n"
.LC36:
	.string	"Test egale\n"
.LC37:
	.string	"[error] T_gpu mal trie"
.LC38:
	.string	"[error] T_cpu mal trie"
.LC39:
	.string	"\nTime results\n"
.LC41:
	.string	"\nTime GPU : %f ms\n"
.LC42:
	.string	"Time CPU : %f ms\n"
	.text
	.globl	_Z9tabRandomv
	.type	_Z9tabRandomv, @function
_Z9tabRandomv:
.LFB4151:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
.L106:
	movq	%rbp, %rdi
	leaq	_ZSt4cout(%rip), %rbx
	call	system@PLT
	leaq	.LC30(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	decl	%r12d
	jne	.L110
	leaq	.LC25(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.L110:
	leaq	.LC26(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	12(%rsp), %rsi
	leaq	_ZSt3cin(%rip), %rdi
	call	_ZNSirsERi@PLT
.L107:
	call	getchar@PLT
	cmpl	$10, %eax
	jne	.L107
	movl	12(%rsp), %edx
	movl	$1, %r12d
	testl	%edx, %edx
	jle	.L106
	movl	$2, %edi
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	movl	$100, %r15d
	leaq	.LC27(%rip), %rsi
	leaq	.LC15(%rip), %r14
	call	__printf_chk@PLT
	movq	%r14, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	call	getchar@PLT
	movsbl	%al, %edi
	call	putchar@PLT
	leaq	24(%rsp), %rdi
	movslq	12(%rsp), %rbp
	call	cudaEventCreate@PLT
	leaq	32(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	40(%rsp), %rdi
	movq	%rbp, %r12
	salq	$2, %rbp
	call	cudaEventCreate@PLT
	leaq	48(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	.LC28(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%edi, %edi
	call	time@PLT
	movl	%eax, %edi
	call	srand@PLT
	movq	%rbp, %rdi
	call	malloc@PLT
	movq	%rbp, %rdi
	movq	%rax, %rbx
	call	malloc@PLT
	leaq	.LC29(%rip), %rsi
	movl	$2, %edi
	movq	%rax, %rbp
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L108:
	cmpl	%r13d, %r12d
	jle	.L121
	call	rand@PLT
	cltd
	idivl	%r15d
	movl	%edx, 0(%rbp,%r13,4)
	movl	%edx, (%rbx,%r13,4)
	incq	%r13
	jmp	.L108
.L121:
	leaq	.LC3(%rip), %r13
	movl	$2, %edi
	xorl	%eax, %eax
	movq	%r13, %rsi
	call	__printf_chk@PLT
	leaq	.LC31(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	leal	-1(%r12), %edx
	xorl	%esi, %esi
	movq	%rbp, %rdi
	call	_Z19mergeAndSortRecuGPUPiii
	movq	32(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movq	%r13, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC32(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	40(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movl	%r12d, %esi
	movq	%rbx, %rdi
	call	_Z19mergeAndSortRecuCPUPii
	movq	48(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	leaq	.LC33(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	call	cudaDeviceSynchronize@PLT
	leaq	.LC34(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%r12d, %esi
	movq	%rbx, %rdi
	call	_Z9is_sortedPii
	leaq	.LC38(%rip), %rsi
	testb	%al, %al
	je	.L120
	leaq	.LC35(%rip), %r15
	movl	$2, %edi
	xorl	%eax, %eax
	movq	%r15, %rsi
	call	__printf_chk@PLT
	leaq	.LC36(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%rbp, %rsi
	movl	%r12d, %edx
	movq	%rbx, %rdi
	call	_Z8is_equalPiS_i
	movq	%r15, %rsi
	testb	%al, %al
	jne	.L120
	leaq	.LC37(%rip), %rsi
.L120:
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC39(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	48(%rsp), %rdx
	movq	40(%rsp), %rsi
	leaq	16(%rsp), %rdi
	movl	$0x00000000, 16(%rsp)
	call	cudaEventElapsedTime@PLT
	leaq	.LC41(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	cvtss2sd	16(%rsp), %xmm0
	call	__printf_chk@PLT
	movq	32(%rsp), %rdx
	movq	24(%rsp), %rsi
	leaq	20(%rsp), %rdi
	movl	$0x00000000, 20(%rsp)
	call	cudaEventElapsedTime@PLT
	leaq	.LC42(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	cvtss2sd	20(%rsp), %xmm0
	call	__printf_chk@PLT
	movq	%r13, %rsi
	xorl	%eax, %eax
	movl	$2, %edi
	call	__printf_chk@PLT
	movq	%r14, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	call	getchar@PLT
	movsbl	%al, %edi
	call	putchar@PLT
	movq	%rbx, %rdi
	call	free@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	je	.L115
	call	__stack_chk_fail@PLT
.L115:
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	movq	%rbp, %rdi
	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
	jmp	free@PLT
	.cfi_endproc
.LFE4151:
	.size	_Z9tabRandomv, .-_Z9tabRandomv
	.section	.rodata.str1.1
.LC43:
	.string	"_Z16partitionningGPUPiiS_iS_"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4200:
	.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	.LC43(%rip), %rdx
	movq	%rax, %rdi
	leaq	_Z16partitionningGPUPiiS_iS_(%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
.LFE4200:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.text._ZNSt6vectorIiSaIiEED2Ev,"axG",@progbits,_ZNSt6vectorIiSaIiEED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIiSaIiEED2Ev
	.type	_ZNSt6vectorIiSaIiEED2Ev, @function
_ZNSt6vectorIiSaIiEED2Ev:
.LFB4545:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L124
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L124:
	ret
	.cfi_endproc
.LFE4545:
	.size	_ZNSt6vectorIiSaIiEED2Ev, .-_ZNSt6vectorIiSaIiEED2Ev
	.weak	_ZNSt6vectorIiSaIiEED1Ev
	.set	_ZNSt6vectorIiSaIiEED1Ev,_ZNSt6vectorIiSaIiEED2Ev
	.section	.rodata._ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_.str1.1,"aMS",@progbits,1
.LC44:
	.string	"vector::_M_realloc_insert"
	.section	.text._ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.type	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_, @function
_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_:
.LFB4744:
	.cfi_startproc
	endbr64
	movabsq	$2305843009213693951, %rcx
	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	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	8(%rdi), %rax
	movq	(%rdi), %r14
	movq	%rax, %rbx
	movq	%rax, (%rsp)
	subq	%r14, %rbx
	sarq	$2, %rbx
	cmpq	%rcx, %rbx
	jne	.L127
	leaq	.LC44(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L127:
	cmpq	%r14, (%rsp)
	movl	$1, %eax
	movq	%rsi, %r15
	movq	%rdi, %r13
	cmovne	%rbx, %rax
	movq	%rsi, %rbp
	addq	%rax, %rbx
	setc	%al
	subq	%r14, %r15
	movzbl	%al, %eax
	testq	%rax, %rax
	jne	.L137
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	.L132
	movabsq	$2305843009213693951, %rax
	cmpq	%rax, %rbx
	cmova	%rax, %rbx
	jmp	.L131
.L137:
	movq	%rcx, %rbx
.L131:
	leaq	0(,%rbx,4), %rdi
	movq	%rdx, 8(%rsp)
	call	_Znwm@PLT
	movq	8(%rsp), %rdx
	movq	%rax, %r12
.L132:
	movl	(%rdx), %eax
	movl	%eax, (%r12,%r15)
	testq	%r15, %r15
	jle	.L133
	movq	%r15, %rdx
	movq	%r14, %rsi
	movq	%r12, %rdi
	call	memmove@PLT
.L133:
	movq	(%rsp), %rax
	leaq	4(%r12,%r15), %rdx
	subq	%rbp, %rax
	testq	%rax, %rax
	jle	.L134
	movq	%rdx, %rdi
	movq	%rbp, %rsi
	movq	%rax, %rcx
	rep movsb
.L134:
	leaq	(%rdx,%rax), %rbp
	testq	%r14, %r14
	je	.L135
	movq	16(%r13), %rsi
	movq	%r14, %rdi
	subq	%r14, %rsi
	call	_ZdlPvm@PLT
.L135:
	leaq	(%r12,%rbx,4), %rax
	movq	%r12, 0(%r13)
	movq	%rbp, 8(%r13)
	movq	%rax, 16(%r13)
	addq	$24, %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
.LFE4744:
	.size	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_, .-_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.section	.text._ZNSt6vectorIiSaIiEE9push_backERKi,"axG",@progbits,_ZNSt6vectorIiSaIiEE9push_backERKi,comdat
	.align 2
	.weak	_ZNSt6vectorIiSaIiEE9push_backERKi
	.type	_ZNSt6vectorIiSaIiEE9push_backERKi, @function
_ZNSt6vectorIiSaIiEE9push_backERKi:
.LFB4548:
	.cfi_startproc
	endbr64
	movq	%rsi, %rdx
	movq	8(%rdi), %rsi
	cmpq	16(%rdi), %rsi
	je	.L145
	movl	(%rdx), %eax
	addq	$4, %rsi
	movl	%eax, -4(%rsi)
	movq	%rsi, 8(%rdi)
	ret
.L145:
	jmp	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.cfi_endproc
.LFE4548:
	.size	_ZNSt6vectorIiSaIiEE9push_backERKi, .-_ZNSt6vectorIiSaIiEE9push_backERKi
	.section	.rodata.str1.1
.LC45:
	.string	"Lecture \303\240 partir d'un fichier"
.LC46:
	.string	"[Erreur] Entr\303\251e non valide ! Le fichier doit se trouver dans le repertoire courant ex : exemple.txt et il doit utiliser des retours \303\240 la ligne en s\303\251parateur"
.LC47:
	.string	"Entrer le nom du fichier puis valider avec la touche ENTREE"
.LC48:
	.string	"../data/"
.LC49:
	.string	"Vous avez entr\303\251 "
.LC50:
	.string	"Lecture fichier...\n"
.LC51:
	.string	"%d elements lues\n"
	.text
	.globl	_Z7tabFilev
	.type	_Z7tabFilev, @function
_Z7tabFilev:
.LFB4152:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4152
	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
	xorl	%ebx, %ebx
	subq	$696, %rsp
	.cfi_def_cfa_offset 752
	movq	%fs:40, %rax
	movq	%rax, 680(%rsp)
	xorl	%eax, %eax
	leaq	160(%rsp), %rbp
	movq	%rbp, %rdi
.LEHB0:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev@PLT
.LEHE0:
	leaq	112(%rsp), %rax
	xorl	%esi, %esi
	movb	$0, 112(%rsp)
	movq	%rax, 96(%rsp)
	movq	%rsi, 104(%rsp)
.L149:
	leaq	96(%rsp), %rax
	leaq	.LC1(%rip), %rdi
	movq	%rax, 8(%rsp)
.LEHB1:
	call	system@PLT
	leaq	.LC45(%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.isra.0
	decl	%ebx
	jne	.L150
	leaq	.LC46(%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.isra.0
.L150:
	leaq	.LC47(%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.isra.0
	movq	8(%rsp), %rsi
	leaq	_ZSt3cin(%rip), %rdi
	call	_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
.L151:
	call	getchar@PLT
.LEHE1:
	cmpl	$10, %eax
	jne	.L151
	movq	104(%rsp), %r13
	leaq	128(%rsp), %rbx
	xorl	%ecx, %ecx
	leaq	144(%rsp), %r12
	movq	%rbx, %rdi
	movq	%r12, 128(%rsp)
	movq	96(%rsp), %r15
	leaq	8(%r13), %rsi
	movq	%rcx, 136(%rsp)
	movb	$0, 144(%rsp)
.LEHB2:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm@PLT
	movl	$8, %edx
	leaq	.LC48(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0
	movq	%r13, %rdx
	movq	%r15, %rsi
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0
.LEHE2:
	jmp	.L194
.L178:
	endbr64
	movq	%rax, %r12
.L153:
	movq	%rbx, %rdi
	movq	%r12, %rbx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L154
.L194:
	movq	%rbx, %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv@PLT
	movq	136(%rsp), %r13
	testb	%al, %al
	je	.L155
	testq	%r13, %r13
	je	.L156
	movq	128(%rsp), %rsi
	movq	96(%rsp), %rdi
	movq	%r13, %rdx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_S_copyEPcPKcm@PLT
.L156:
	movq	136(%rsp), %rax
	movq	96(%rsp), %rdx
	movq	%rax, 104(%rsp)
	movb	$0, (%rdx,%rax)
	jmp	.L157
.L155:
	movq	8(%rsp), %rdi
	call	_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv@PLT
	movl	%eax, %edx
	xorl	%eax, %eax
	testb	%dl, %dl
	jne	.L158
	movq	96(%rsp), %rax
	movq	112(%rsp), %r14
.L158:
	movq	128(%rsp), %rdx
	movq	%r13, 104(%rsp)
	movq	%rdx, 96(%rsp)
	movq	144(%rsp), %rdx
	movq	%rdx, 112(%rsp)
	testq	%rax, %rax
	je	.L159
	movq	%rax, 128(%rsp)
	movq	%r14, 144(%rsp)
	jmp	.L157
.L159:
	movq	%r12, 128(%rsp)
.L157:
	movq	128(%rsp), %rax
	xorl	%edx, %edx
	movq	%rbx, %rdi
	movq	%rdx, 136(%rsp)
	movb	$0, (%rax)
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	96(%rsp), %rsi
	movl	$8, %edx
	leaq	176(%rsp), %rdi
.LEHB3:
	call	_ZNSt13basic_filebufIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode@PLT
	movq	160(%rsp), %rdx
	movq	-24(%rdx), %rdi
	addq	%rbp, %rdi
	testq	%rax, %rax
	jne	.L160
	movl	$4, %esi
	call	_ZNSt9basic_iosIcSt11char_traitsIcEE8setstateESt12_Ios_Iostate@PLT
	jmp	.L161
.L160:
	xorl	%esi, %esi
	call	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate@PLT
.L161:
	leaq	280(%rsp), %rdi
	movl	$1, %ebx
	call	_ZNKSt12__basic_fileIcE7is_openEv@PLT
	testb	%al, %al
	je	.L149
	leaq	.LC49(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	8(%rsp), %rsi
	movq	%rax, %rdi
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC15(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	call	getchar@PLT
	movsbl	%al, %edi
	call	putchar@PLT
	leaq	.LC50(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.LEHE3:
	xorl	%eax, %eax
	leaq	28(%rsp), %rbx
	movq	%rax, 72(%rsp)
	movq	%rax, 80(%rsp)
	movq	%rax, 88(%rsp)
.L164:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
.LEHB4:
	call	_ZNSirsERi@PLT
	movq	(%rax), %rdx
	movq	-24(%rdx), %rdx
	testb	$5, 32(%rax,%rdx)
	jne	.L195
	leaq	72(%rsp), %rdi
	movq	%rbx, %rsi
	call	_ZNSt6vectorIiSaIiEE9push_backERKi
	jmp	.L164
.L195:
	movq	72(%rsp), %r15
	movq	80(%rsp), %rbx
	leaq	.LC51(%rip), %rsi
	xorl	%eax, %eax
	movl	$2, %edi
	subq	%r15, %rbx
	sarq	$2, %rbx
	movl	%ebx, %edx
	movl	%ebx, %r14d
	call	__printf_chk@PLT
	leaq	40(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	48(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	56(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	64(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	.LC28(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%edi, %edi
	movslq	%ebx, %r13
	call	time@PLT
	salq	$2, %r13
	movl	%eax, %edi
	call	srand@PLT
	movq	%r13, %rdi
	call	malloc@PLT
	movq	%r13, %rdi
	movq	%rax, %r12
	call	malloc@PLT
	leaq	.LC29(%rip), %rsi
	movl	$2, %edi
	movq	%rax, %r13
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
.L166:
	cmpl	%eax, %r14d
	jle	.L196
	movl	(%r15,%rax,4), %edx
	movl	%edx, 0(%r13,%rax,4)
	movl	%edx, (%r12,%rax,4)
	incq	%rax
	jmp	.L166
.L196:
	leaq	.LC3(%rip), %r15
	movl	$2, %edi
	xorl	%eax, %eax
	movq	%r15, %rsi
	call	__printf_chk@PLT
	leaq	.LC31(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	40(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	leal	-1(%rbx), %edx
	xorl	%esi, %esi
	movq	%r13, %rdi
	call	_Z19mergeAndSortRecuGPUPiii
	movq	48(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movq	%r15, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC32(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	56(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movl	%r14d, %esi
	movq	%r12, %rdi
	call	_Z19mergeAndSortRecuCPUPii
	movq	64(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	leaq	.LC33(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	call	cudaDeviceSynchronize@PLT
	leaq	.LC34(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%r14d, %esi
	movq	%r12, %rdi
	call	_Z9is_sortedPii
	testb	%al, %al
	je	.L168
	leaq	.LC35(%rip), %rbx
	movl	$2, %edi
	xorl	%eax, %eax
	movq	%rbx, %rsi
	call	__printf_chk@PLT
	leaq	.LC36(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%r13, %rsi
	movl	%r14d, %edx
	movq	%r12, %rdi
	call	_Z8is_equalPiS_i
	movq	%rbx, %rsi
	testb	%al, %al
	jne	.L192
	leaq	.LC37(%rip), %rsi
	jmp	.L192
.L168:
	leaq	.LC38(%rip), %rsi
.L192:
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC39(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	64(%rsp), %rdx
	movq	56(%rsp), %rsi
	leaq	32(%rsp), %rdi
	movl	$0x00000000, 32(%rsp)
	call	cudaEventElapsedTime@PLT
	leaq	.LC41(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	cvtss2sd	32(%rsp), %xmm0
	call	__printf_chk@PLT
	movq	48(%rsp), %rdx
	movq	40(%rsp), %rsi
	leaq	36(%rsp), %rdi
	movl	$0x00000000, 36(%rsp)
	call	cudaEventElapsedTime@PLT
	leaq	.LC42(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	cvtss2sd	36(%rsp), %xmm0
	call	__printf_chk@PLT
	movq	%r15, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC15(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	call	getchar@PLT
	movsbl	%al, %edi
	call	putchar@PLT
.LEHE4:
	movq	%r12, %rdi
	call	free@PLT
	movq	%r13, %rdi
	call	free@PLT
	leaq	72(%rsp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	leaq	96(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	160(%rsp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	680(%rsp), %rax
	subq	%fs:40, %rax
	je	.L173
	jmp	.L189
.L177:
	endbr64
	movq	%rax, %rbx
.L171:
	leaq	72(%rsp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	jmp	.L154
.L176:
	endbr64
	movq	%rax, %rbx
.L154:
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%rbp, %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	680(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L189
	movq	%rbx, %rdi
.LEHB5:
	call	_Unwind_Resume@PLT
.LEHE5:
.L189:
	call	__stack_chk_fail@PLT
.L173:
	addq	$696, %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
.LFE4152:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4152:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4152-.LLSDACSB4152
.LLSDACSB4152:
	.uleb128 .LEHB0-.LFB4152
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB4152
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L176-.LFB4152
	.uleb128 0
	.uleb128 .LEHB2-.LFB4152
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L178-.LFB4152
	.uleb128 0
	.uleb128 .LEHB3-.LFB4152
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L176-.LFB4152
	.uleb128 0
	.uleb128 .LEHB4-.LFB4152
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L177-.LFB4152
	.uleb128 0
	.uleb128 .LEHB5-.LFB4152
	.uleb128 .LEHE5-.LEHB5
	.uleb128 0
	.uleb128 0
.LLSDACSE4152:
	.text
	.size	_Z7tabFilev, .-_Z7tabFilev
	.section	.rodata.str1.1
.LC52:
	.string	"Exemple d'application donn\303\251es automobiles"
.LC53:
	.string	"0\tTop 10 Prix"
.LC54:
	.string	"1\tTop 10 Km"
.LC55:
	.string	"[Erreur] Entr\303\251e non valide ! choisir une option 1 ou 2"
.LC56:
	.string	"Entrer votre choix (0 ou 1) puis valider avec la touche ENTREE"
.LC57:
	.string	"[Erreur] Fichier price.txt manquant! Lancer le script doc.py"
.LC58:
	.string	"[Erreur] Fichier kilometer.txt manquant! Lancer le script doc.py"
.LC59:
	.string	"../data/price.txt"
.LC60:
	.string	"../data/kilometer.txt"
.LC61:
	.string	"%d elements lus\n"
.LC62:
	.string	"\nTop 10 des prix les plus \303\251lev\303\251s des voitures:\n"
.LC63:
	.string	"[%d] %d Euros\n"
.LC64:
	.string	"\nTop 10 des voitures les plus durables :\n"
.LC65:
	.string	"[%d] %d Km\n"
	.text
	.globl	_Z7tabCarsv
	.type	_Z7tabCarsv, @function
_Z7tabCarsv:
.LFB4167:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4167
	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
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$632, %rsp
	.cfi_def_cfa_offset 688
	movq	%fs:40, %rax
	movq	%rax, 616(%rsp)
	xorl	%eax, %eax
	leaq	96(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
.LEHB6:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev@PLT
.LEHE6:
.L198:
	movq	%r12, %rdi
.LEHB7:
	call	system@PLT
	leaq	_ZSt4cout(%rip), %rbx
	leaq	.LC52(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC53(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC54(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	cmpl	$1, %ebp
	jne	.L199
	leaq	.LC55(%rip), %rsi
.L254:
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.L202:
	leaq	.LC56(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	jmp	.L256
.L199:
	leaq	.LC57(%rip), %rsi
	cmpl	$2, %ebp
	je	.L254
	leaq	.LC58(%rip), %rsi
	cmpl	$3, %ebp
	jne	.L202
	jmp	.L254
.L256:
	leaq	24(%rsp), %rsi
	leaq	_ZSt3cin(%rip), %rdi
	call	_ZNSirsERi@PLT
.L203:
	call	getchar@PLT
	cmpl	$10, %eax
	jne	.L203
	movl	24(%rsp), %eax
	testl	%eax, %eax
	jne	.L204
	movq	8(%rsp), %rdi
	movl	$8, %edx
	leaq	.LC59(%rip), %rsi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode@PLT
	leaq	216(%rsp), %rdi
	call	_ZNKSt12__basic_fileIcE7is_openEv@PLT
	testb	%al, %al
	je	.L225
	leaq	.LC49(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	24(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC15(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	call	getchar@PLT
	movsbl	%al, %edi
	call	putchar@PLT
	movl	$1, %r14d
	jmp	.L206
.L204:
	decl	%eax
	movl	$1, %ebp
	jne	.L198
	movq	8(%rsp), %rdi
	movl	$8, %edx
	leaq	.LC60(%rip), %rsi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode@PLT
	leaq	216(%rsp), %rdi
	call	_ZNKSt12__basic_fileIcE7is_openEv@PLT
	testb	%al, %al
	je	.L228
	leaq	.LC49(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	24(%rsp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC15(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	call	getchar@PLT
	movsbl	%al, %edi
	call	putchar@PLT
	movl	$2, %r14d
	jmp	.L206
.L225:
	movl	$2, %ebp
	jmp	.L198
.L228:
	movl	$3, %ebp
	jmp	.L198
.L206:
	leaq	.LC50(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.LEHE7:
	xorl	%eax, %eax
	leaq	28(%rsp), %rbx
	movq	%rax, 72(%rsp)
	movq	%rax, 80(%rsp)
	movq	%rax, 88(%rsp)
.L208:
	movq	8(%rsp), %rdi
	movq	%rbx, %rsi
.LEHB8:
	call	_ZNSirsERi@PLT
	movq	(%rax), %rdx
	movq	-24(%rdx), %rdx
	testb	$5, 32(%rax,%rdx)
	jne	.L257
	leaq	72(%rsp), %rdi
	movq	%rbx, %rsi
	call	_ZNSt6vectorIiSaIiEE9push_backERKi
	jmp	.L208
.L257:
	movq	72(%rsp), %r15
	movq	80(%rsp), %rbp
	leaq	.LC61(%rip), %rsi
	xorl	%eax, %eax
	movl	$2, %edi
	subq	%r15, %rbp
	sarq	$2, %rbp
	movl	%ebp, %edx
	movl	%ebp, 4(%rsp)
	call	__printf_chk@PLT
	leaq	40(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	48(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	56(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	64(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	.LC28(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%edi, %edi
	movslq	%ebp, %rbx
	call	time@PLT
	leaq	0(,%rbx,4), %r12
	movl	%eax, %edi
	call	srand@PLT
	movq	%r12, %rdi
	call	malloc@PLT
	movq	%r12, %rdi
	movq	%rax, %r13
	call	malloc@PLT
	leaq	.LC29(%rip), %rsi
	movl	$2, %edi
	movq	%rax, %r12
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
.L210:
	cmpl	%eax, 4(%rsp)
	jle	.L258
	movl	(%r15,%rax,4), %edx
	movl	%edx, (%r12,%rax,4)
	movl	%edx, 0(%r13,%rax,4)
	incq	%rax
	jmp	.L210
.L258:
	leaq	.LC3(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC31(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	40(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	leal	-1(%rbp), %edx
	xorl	%esi, %esi
	movq	%r12, %rdi
	call	_Z19mergeAndSortRecuGPUPiii
	movq	48(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	leaq	.LC3(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC32(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	56(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movl	4(%rsp), %esi
	movq	%r13, %rdi
	call	_Z19mergeAndSortRecuCPUPii
	movq	64(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	leaq	.LC33(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	call	cudaDeviceSynchronize@PLT
	leaq	.LC34(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	4(%rsp), %esi
	movq	%r13, %rdi
	call	_Z9is_sortedPii
	testb	%al, %al
	je	.L212
	leaq	.LC35(%rip), %r15
	movl	$2, %edi
	xorl	%eax, %eax
	movq	%r15, %rsi
	call	__printf_chk@PLT
	leaq	.LC36(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	4(%rsp), %edx
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	_Z8is_equalPiS_i
	leaq	.LC37(%rip), %rsi
	testb	%al, %al
	je	.L249
	movq	%r15, %rsi
.L249:
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC39(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L259
.L212:
	leaq	.LC38(%rip), %rsi
	jmp	.L249
.L259:
	movq	64(%rsp), %rdx
	movq	56(%rsp), %rsi
	leaq	32(%rsp), %rdi
	movl	$0x00000000, 32(%rsp)
	call	cudaEventElapsedTime@PLT
	leaq	.LC41(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	cvtss2sd	32(%rsp), %xmm0
	call	__printf_chk@PLT
	movq	48(%rsp), %rdx
	movq	40(%rsp), %rsi
	leaq	36(%rsp), %rdi
	movl	$0x00000000, 36(%rsp)
	call	cudaEventElapsedTime@PLT
	leaq	.LC42(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	cvtss2sd	36(%rsp), %xmm0
	call	__printf_chk@PLT
	leaq	.LC3(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	decl	%r14d
	leal	-9(%rbp), %r14d
	leal	1(%rbp), %ebp
	jne	.L216
	leaq	.LC62(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC63(%rip), %r15
.L217:
	movl	%ebp, %edx
	movl	-4(%r12,%rbx,4), %ecx
	movq	%r15, %rsi
	movl	$2, %edi
	subl	%ebx, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	decq	%rbx
	cmpl	%ebx, %r14d
	jle	.L217
.L252:
	leaq	.LC3(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC3(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L260
.L216:
	leaq	.LC64(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC65(%rip), %r15
.L219:
	movl	%ebp, %edx
	movl	-4(%r12,%rbx,4), %ecx
	movq	%r15, %rsi
	movl	$2, %edi
	subl	%ebx, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	decq	%rbx
	cmpl	%ebx, %r14d
	jle	.L219
	jmp	.L252
.L260:
	leaq	.LC15(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	call	getchar@PLT
	movsbl	%al, %edi
	call	putchar@PLT
.LEHE8:
	movq	%r13, %rdi
	call	free@PLT
	movq	%r12, %rdi
	call	free@PLT
	leaq	72(%rsp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	leaq	96(%rsp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	616(%rsp), %rax
	subq	%fs:40, %rax
	je	.L224
	jmp	.L243
.L232:
	endbr64
	movq	%rax, %rbx
.L221:
	leaq	72(%rsp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	jmp	.L222
.L231:
	endbr64
	movq	%rax, %rbx
.L222:
	movq	8(%rsp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	616(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L243
	movq	%rbx, %rdi
.LEHB9:
	call	_Unwind_Resume@PLT
.LEHE9:
.L243:
	call	__stack_chk_fail@PLT
.L224:
	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
.LFE4167:
	.section	.gcc_except_table
.LLSDA4167:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4167-.LLSDACSB4167
.LLSDACSB4167:
	.uleb128 .LEHB6-.LFB4167
	.uleb128 .LEHE6-.LEHB6
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB7-.LFB4167
	.uleb128 .LEHE7-.LEHB7
	.uleb128 .L231-.LFB4167
	.uleb128 0
	.uleb128 .LEHB8-.LFB4167
	.uleb128 .LEHE8-.LEHB8
	.uleb128 .L232-.LFB4167
	.uleb128 0
	.uleb128 .LEHB9-.LFB4167
	.uleb128 .LEHE9-.LEHB9
	.uleb128 0
	.uleb128 0
.LLSDACSE4167:
	.text
	.size	_Z7tabCarsv, .-_Z7tabCarsv
	.section	.rodata.str1.1
.LC66:
	.string	"[Erreur] Entr\303\251e non valide !"
.LC67:
	.string	"Appuyer sur une touche entre 0 et 5  puis valider avec la touche ENTREE"
.LC68:
	.string	"Vous avez choisi de quitter"
.LC69:
	.string	"Etes vous s\303\273r?"
.LC70:
	.string	"Appuyer sur 1 pour revenir au Menu principal sinon une touche pour quitter puis valider avec la touche ENTREE"
.LC71:
	.string	"Merci et \303\240 bientot"
.LC72:
	.string	"3"
.LC73:
	.string	"  2"
.LC74:
	.string	"    1"
.LC75:
	.string	"1\tHelp"
.LC76:
	.string	"Merci d'utiliser exclusivement les CHIFFRES pour les selections dans les menus"
.LC77:
	.string	"Naviguer dans les menus pour tester toutes nos implementations de tri merge and sort sur CPU et GPU."
.LC78:
	.string	"Utilisation :"
.LC79:
	.string	"- Test sur tableau random : g\303\251n\303\250re al\303\251atoirement un tableau d'entier et le tri"
.LC80:
	.string	"- Lecture \303\240 partir d'un fichier : lit \303\240 partir d'un fichier un tableau d'entier et le tri."
.LC81:
	.string	"  Le fichier doit \303\252tre \303\251crit de la meme mani\303\250re que data/exemple.txt"
.LC82:
	.string	"  On peut utiliser script/genere.c pour en cr\303\251er un nouveau."
.LC83:
	.string	"- Exemple d'application donn\303\251es automobiles : des donn\303\251es automobiles sont lues et triees."
.LC84:
	.string	"  Il est essentiel de lancer le script de pr\303\251-traitrement des donn\303\251es script/doc.py avant."
.LC85:
	.string	"Tester l'algorithme de tri"
.LC86:
	.string	"0\tQuitter"
.LC87:
	.string	"2\tTest sur tableau random"
.LC88:
	.string	"3\tLecture \303\240 partir d'un fichier"
.LC89:
	.string	"4\tExemple d'application donn\303\251es automobiles"
.LC90:
	.string	"5\tRetour menu principal"
	.text
	.globl	_Z8sousMenuv
	.type	_Z8sousMenuv, @function
_Z8sousMenuv:
.LFB4168:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
.L262:
	xorl	%r13d, %r13d
.L264:
	leaq	_ZSt4cout(%rip), %rbx
	movq	%rbp, %rdi
	leaq	.LC75(%rip), %r12
	call	system@PLT
	leaq	.LC85(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC86(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%r12, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC87(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC88(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC89(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC90(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	decl	%r13d
	jne	.L275
	leaq	.LC66(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.L275:
	leaq	.LC67(%rip), %rsi
	movq	%rbx, %rdi
	leaq	4(%rsp), %r15
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	leaq	_ZSt3cin(%rip), %r14
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	_ZNSirsERi@PLT
.L263:
	call	getchar@PLT
	cmpl	$10, %eax
	jne	.L263
	cmpl	$5, 4(%rsp)
	movl	$1, %r13d
	ja	.L264
	movl	4(%rsp), %eax
	leaq	.L266(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L266:
	.long	.L271-.L266
	.long	.L270-.L266
	.long	.L269-.L266
	.long	.L268-.L266
	.long	.L267-.L266
	.long	.L277-.L266
	.text
.L271:
	movq	%rbp, %rdi
	call	system@PLT
	leaq	.LC68(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC69(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC70(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	_ZNSirsERi@PLT
.L272:
	call	getchar@PLT
	cmpl	$10, %eax
	jne	.L272
	cmpl	$1, 4(%rsp)
	je	.L262
	leaq	.LC71(%rip), %r12
	movq	%rbp, %rdi
	call	system@PLT
	movq	%r12, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	xorl	%edi, %edi
	call	sleep@PLT
	movq	%rbp, %rdi
	call	system@PLT
	movq	%r12, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC72(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movl	$1, %edi
	call	sleep@PLT
	movq	%rbp, %rdi
	call	system@PLT
	movq	%r12, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC73(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movl	$1, %edi
	call	sleep@PLT
	movq	%rbp, %rdi
	call	system@PLT
	movq	%r12, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC74(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movl	$1, %edi
	call	sleep@PLT
	movq	%rbp, %rdi
	call	system@PLT
	movl	$2, %eax
	jmp	.L261
.L270:
	movq	%rbp, %rdi
	call	system@PLT
	movq	%r12, %rsi
	movq	%rbx, %rdi
	leaq	.LC19(%rip), %r12
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%rbx, %rdi
	leaq	.LC76(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%r12, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%r12, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%rbx, %rdi
	leaq	.LC77(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%r12, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%rbx, %rdi
	leaq	.LC78(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%rbx, %rdi
	leaq	.LC79(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%rbx, %rdi
	leaq	.LC80(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%rbx, %rdi
	leaq	.LC81(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%rbx, %rdi
	leaq	.LC82(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%rbx, %rdi
	leaq	.LC83(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%rbx, %rdi
	leaq	.LC84(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%r12, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%r12, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%r12, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movl	$2, %edi
	call	sleep@PLT
	leaq	.LC15(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	call	getchar@PLT
	movsbl	%al, %edi
	call	putchar@PLT
	jmp	.L262
.L269:
	call	_Z9tabRandomv
	jmp	.L262
.L268:
	call	_Z7tabFilev
	jmp	.L262
.L267:
	call	_Z7tabCarsv
	jmp	.L262
.L277:
	movl	$1, %eax
.L261:
	movq	8(%rsp), %rdx
	subq	%fs:40, %rdx
	je	.L276
	call	__stack_chk_fail@PLT
.L276:
	addq	$24, %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
.LFE4168:
	.size	_Z8sousMenuv, .-_Z8sousMenuv
	.section	.rodata.str1.1
.LC91:
	.string	"Appuyer sur une touche entre 0 et 3  puis valider avec la touche ENTREE"
.LC92:
	.string	"Merci et \303\240 bient\303\264t"
.LC93:
	.string	"Merci d'utiliser exclusivement les CHIFFRES pour les s\303\251lections dans les menus"
.LC94:
	.string	"Menu principal"
.LC95:
	.string	"2\tTester l'algorithme de tri"
.LC96:
	.string	"3\tReset"
	.text
	.globl	_Z13menuPrincipalv
	.type	_Z13menuPrincipalv, @function
_Z13menuPrincipalv:
.LFB4169:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
.L283:
	xorl	%r12d, %r12d
.L296:
	leaq	_ZSt4cout(%rip), %rbx
	movq	%rbp, %rdi
	leaq	.LC75(%rip), %r13
	call	system@PLT
	leaq	.LC94(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC86(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%r13, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC95(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC96(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	decl	%r12d
	jne	.L298
	leaq	.LC66(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.L298:
	leaq	.LC91(%rip), %rsi
	movq	%rbx, %rdi
	leaq	4(%rsp), %r14
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	leaq	_ZSt3cin(%rip), %r12
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%r14, %rsi
	movq	%r12, %rdi
	call	_ZNSirsERi@PLT
.L284:
	call	getchar@PLT
	cmpl	$10, %eax
	jne	.L284
	movl	4(%rsp), %eax
	cmpl	$2, %eax
	je	.L285
	jg	.L286
	testl	%eax, %eax
	je	.L287
	decl	%eax
	je	.L288
	jmp	.L306
.L286:
	cmpl	$3, %eax
	je	.L290
.L306:
	movl	$1, %r12d
	jmp	.L296
.L287:
	movq	%rbp, %rdi
	call	system@PLT
	leaq	.LC68(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC69(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC70(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%r14, %rsi
	movq	%r12, %rdi
	call	_ZNSirsERi@PLT
.L291:
	call	getchar@PLT
	cmpl	$10, %eax
	jne	.L291
	cmpl	$1, 4(%rsp)
	je	.L283
	leaq	.LC92(%rip), %r12
	movq	%rbp, %rdi
	call	system@PLT
	movq	%r12, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	xorl	%edi, %edi
	call	sleep@PLT
	movq	%rbp, %rdi
	call	system@PLT
	movq	%r12, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%rbx, %rdi
	leaq	.LC72(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movl	$1, %edi
	call	sleep@PLT
	movq	%rbp, %rdi
	call	system@PLT
	movq	%r12, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%rbx, %rdi
	leaq	.LC73(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movl	$1, %edi
	call	sleep@PLT
	movq	%rbp, %rdi
	call	system@PLT
	movq	%r12, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%rbx, %rdi
	leaq	.LC74(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movl	$1, %edi
	call	sleep@PLT
	movq	%rbp, %rdi
	call	system@PLT
	jmp	.L282
.L288:
	movq	%rbp, %rdi
	leaq	.LC19(%rip), %r12
	call	system@PLT
	movq	%r13, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%rbx, %rdi
	leaq	.LC93(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%r12, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%r12, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%rbx, %rdi
	leaq	.LC18(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%r12, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movl	$2, %edi
	call	sleep@PLT
	leaq	.LC15(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	call	getchar@PLT
	movsbl	%al, %edi
	call	putchar@PLT
	jmp	.L283
.L285:
	call	_Z8sousMenuv
	cmpl	$2, %eax
	jne	.L283
	jmp	.L282
.L290:
	call	_Z5introv
	jmp	.L283
.L282:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L299
	call	__stack_chk_fail@PLT
.L299:
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4169:
	.size	_Z13menuPrincipalv, .-_Z13menuPrincipalv
	.section	.rodata.str1.1
.LC97:
	.string	"r"
.LC98:
	.string	"tmp.txt"
.LC99:
	.string	"w"
.LC100:
	.string	"1"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4172:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC98(%rip), %rbx
	leaq	.LC97(%rip), %rsi
	movq	%rbx, %rdi
	call	fopen@PLT
	testq	%rax, %rax
	jne	.L308
	call	_Z5introv
	call	_Z7preludev
	movq	%rbx, %rdi
	leaq	.LC99(%rip), %rsi
	call	fopen@PLT
	leaq	.LC100(%rip), %rdx
	movl	$2, %esi
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
	movq	%rbx, %rdi
	call	fclose@PLT
	jmp	.L309
.L308:
	movq	%rax, %rdi
	call	fclose@PLT
	call	_Z10introShortv
.L309:
	call	_Z13menuPrincipalv
	call	_Z3endv
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4172:
	.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
	.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:

//19/10/17
//ALOUI Driss
//DO Alexandre
//HPCA

//Source : https://www.cc.gatech.edu/~bader/papers/GPUMergePath-ICS2012.pdf

//Exemple de tests
//N: 5463 GRAIN: 10
//Time GPU : 3.856832 ms
//Time CPU : 6.504000 ms

//N: 100 GRAIN: 10
//Time GPU : 0.141312 ms
//Time CPU : 0.109536 ms

//---------------- INCLUDE ----------------
#include <stdio.h>
#include <time.h>
#include <hip/hip_runtime.h>

#include <iostream>
#include <vector>
#include <fstream>
#include <unistd.h>
#include <stdlib.h>
#include <math.h>
#include <string>

//---------------- DEFINE ----------------
#define NB 1024
#define NTPB 1024
#define N NTPB*NB

#define TAILLE 13
#define GRAIN 10

//---------------- FONCTIONS UTILITAIRES ----------------
//Fct test tri
bool is_sorted(int* array, int n) {
  for(int i=0; i<n-1; i++) {
    if(array[i]>array[i+1]) return false;
  }
  return true;
}

//Fct test egale
bool is_equal(int* array1, int* array2, int n) {
  for(int i=0; i<n-1; i++) {
    if(array1[i]!=array2[i]) return false;
  }
  return true;
}


//Fct Pgcd (pour la gestion du nombre de thread)
// Source : https://openclassrooms.com/forum/sujet/algorithme-de-calcul-de-pgcd-20803
int get_pgcd(int a, int b){

  int pgcd = 0;
  while(1){
    pgcd = a % b;
      if(pgcd == 0){
        pgcd = b;
        break;
      }
    a = b;
    b = pgcd;
  }
  return pgcd;
}

//---------------- version CPU ----------------

//Fct Merge CPU.
void MergeCPU(int *A, int *L, int leftCount, int *R, int rightCount) {
  int i = 0, j = 0, k = 0;
  while(i<leftCount && j<rightCount) {
    if(L[i] < R[j]) 
      A[k++] = L[i++];
    else A[k++] = R[j++];
  }
  while(i<leftCount) 
    A[k++] = L[i++];
  while(j<rightCount) 
    A[k++] = R[j++];
}

// Fct Merge and sort pour CPU
void mergeAndSortRecuCPU(int *A,int n) {
  int mid,i, *L, *R;
  if(n < 2) 
    return; // s'il y a moins de deux elements, on ne fait rien

  mid = n/2;

  // creation tableaux de gauche et de droite
  // de 0 à mid - 1 = gauche, il y a mid elements
  // de mid à n-1 = droite, il y a n-mid elements
  L = (int*)malloc(mid*sizeof(int)); 
  R = (int*)malloc((n-mid)*sizeof(int)); 

  for(i = 0;i<mid;i++) 
    L[i] = A[i]; 
  for(i = mid;i<n;i++) 
    R[i-mid] = A[i];

  mergeAndSortRecuCPU(L,mid);  // tri tableau de gauche
  mergeAndSortRecuCPU(R,n-mid);  // tri tableau de droite
  MergeCPU(A,L,mid,R,n-mid);  // fusion des tableaux
  free(L);
  free(R);
}



//---------------- version GPU ----------------

//Fct Merge GPU
__host__ __device__ void mergeGPU(int* A, int na, int aid, int* B, int nb, int bid, int* C, int cid, int T) {

  for(int i=0; i<T; i++) {
    if(aid<na && bid<nb) {
      if(A[aid] < B[bid]) {
        C[cid+i] = A[aid];
        aid++;
      }else {
        C[cid+i] = B[bid];
        bid++;
      }
    }else{ // Pour derniers indices (reste plus q un tableau)
      if(aid<na){
        C[cid+i] = A[aid];
        aid++;
      }else{
        C[cid+i] = B[bid];
        bid++;
      }
    }
  }
}

//Fct GPU partitionning GPU
__global__ void partitionningGPU(int* A, int na, int* B, int nb, int* C){
  int a, b, offset;
  int aid;
  int bid;

  int tid = blockIdx.x*blockDim.x+threadIdx.x;// identifiant de thread
  int index = tid*(na+nb)/(blockDim.x * gridDim.x);// index de debut dans C
  int a_top = (index>na)? na:index;
  int b_top = (index>na)? index-na:0;
  int a_bot = b_top;
  if(tid != 0) {
// binary search for diagonal intersectios
    while(true) {
      offset = (a_top - a_bot) / 2;
      a = a_top - offset;
      b = b_top + offset;

      if(A[a]>B[b-1]){
        if(A[a-1]<=B[b]){
          aid = a;
          bid = b;
          break; //point trouve !
        }else{
          a_top = a-1;
          b_top = b+1;
        }
      }else{
        a_bot = a+1;
      }
    }
  }else{
    aid = 0;
    bid = 0;
  }
// merge
  mergeGPU(A, na, aid, B, nb, bid, C, index, (na+nb)/(blockDim.x * gridDim.x));
}

// Fct Merge and sort pour GPU
void mergeAndSortRecuGPU(int T[], int i_debut, int i_fin)
{
  int n = i_fin - i_debut + 1;
/*
printf("\n ------ i_debut %d i_fin %d blockSize %d \n",i_debut,i_fin, blockSize);
 printf("\n T %d : \n",n);
   for(int i=0;i<n;i++){
  printf("%d\t",T[i]);
    }
  printf("\n");
*/
  if ( n < GRAIN){

    int i_milieu = i_debut + (i_fin - i_debut) / 2;

    int na = 1 + i_milieu - i_debut;
    int nb = i_fin - i_milieu;
    
    mergeAndSortRecuGPU(T, i_debut, i_milieu);
    mergeAndSortRecuGPU(T, i_milieu+1, i_fin);
  
    int *A, *B, *C;
    hipMalloc(&A, na*sizeof(int));
    hipMalloc(&B, nb*sizeof(int));
    hipMalloc(&C, n*sizeof(int));

    if(!A || !B || !C ) {
      printf("[Error] memory alloc error\n");
      return;
    }

  //Cpu vers Gpu
    int error1 = hipMemcpy(A, T, na*sizeof(int), hipMemcpyHostToDevice);
    int error2 = hipMemcpy(B, T+na, nb*sizeof(int), hipMemcpyHostToDevice);
    if(error1)
      printf("[Error] error1 %d (Cpu vers Gpu)\n",error1);
    if(error2)
      printf("[Error] error2 %d (Cpu vers Gpu)\n",error2);

  //partitionning
printf("\nCall GPUpartitionning NB %d NTPB %d na %d nb %d\n",NB,get_pgcd(na, nb),na,nb);
    partitionningGPU<<<NB,NTPB>>>(A, na, B, nb, C);

  //Gpu vers cpu
    int error3 = hipMemcpy(T, C, n*sizeof(int), hipMemcpyDeviceToHost);
    if(error3)
      printf("[Error] error3 %d (Gpu vers cpu)\n",error3);

  //free
    free(T);
    hipFree(A);
    hipFree(B);
    hipFree(C);

  }else{
  //tri
    mergeAndSortRecuCPU(T, n);
  }
}

//---------------- FONCTIONS APP ----------------

// Fct intro
void intro(){
//INTRODUCTION Longue
  system("clear");
  printf("Dans le cadre\n");
  printf("\n");
  sleep(1);
  printf("N9-IPA PARALLELISME AVANCE HPCA\n");
  printf("Projet de fin de module\n");
  printf("\n");
  sleep(1);
  printf("2017 - 2018\n");
  sleep(2);

  system("clear");
  printf("Supervisé par\n");
  printf("\n");
  printf("Lokman ABBAS TURKI\n");
  sleep(2);

  system("clear");
  printf("ALOUI Driss\n");
  printf("DO Alexandre\n");
  printf("\n");
  sleep(1);
  printf("MAIN 5 Polytech Paris UPMC\n");
  sleep(2);

  system("clear");
  printf("Présentent\n");
  sleep(1);

  system("clear");
  printf("MergeAndSortAppInCuda\n");
  printf("\n");
  sleep(1);
  printf("Version finale\n");
  sleep(1);

  system("clear");
  char s;
  printf("Appuyer sur ENTREE pour continuer\n");
  s=getchar();
  putchar(s);
  system("clear");
}


// Fct intro
void introShort(){
//INTRODUCTION courte
  system("clear");
  printf("Dans le cadre\n");
  printf("\n");
  printf("N9-IPA PARALLELISME AVANCE HPCA\n");
  printf("Projet de fin de module\n");
  printf("\n");
  printf("2017 - 2018\n");
  sleep(2);

  system("clear");
  printf("ALOUI Driss\n");
  printf("DO Alexandre\n");
  printf("\n");
  sleep(2);

  system("clear");
  printf("Présentent\n");
  sleep(1);

  system("clear");
  printf("MergeAndSortAppInCuda\n");
  printf("\n");
  printf("Version finale\n");
  sleep(1);

  system("clear");
  char s;
  printf("Appuyer sur ENTREE pour continuer\n");
  s=getchar();
  putchar(s);
  system("clear");
}

//2 Test sur tableau random
void tabRandom(){
  int x;
  int Entree = 0;
  int Erreur = 0;
  while(Entree == 0){
    system("clear");
    std::cout<<"Test sur tableau random"<<std::endl;

    if(Erreur == 1){
      std::cout<<"[Erreur] Entrée non valide ! (entier positif)"<<std::endl;
      Erreur  =  0;
    }
    std::cout<<"Entrer la taille du tableau puis valider avec la touche ENTREE"<<std::endl;
    std::cin>>x;
    while (getchar() != '\n'); //vide le buffer de saisie
    if(x>0){
      Entree = 1;
      char s;
      printf("Vous avez entré %d\n", x);
      printf("Appuyer sur ENTREE pour continuer\n");
      s=getchar();
      putchar(s);
    }else{
      Erreur  =  1;
    }
  }

  int n = x;

// var pour timer
  hipEvent_t startCPU, stopCPU;
  hipEventCreate ( &startCPU );
  hipEventCreate ( &stopCPU );
  hipEvent_t startGPU, stopGPU;
  hipEventCreate ( &startGPU );
  hipEventCreate ( &stopGPU );

//Alloc Array
printf("Alloc Array\n");
  srand(time(NULL));
  int* T_cpu = (int*)malloc(n*sizeof(int));
  int* T_gpu = (int*)malloc(n*sizeof(int));
  int cpt=0;

//init Array
printf("\nInit Array\n");
  while (cpt<n){
    T_gpu[cpt]=(rand()%100);
    T_cpu[cpt] = T_gpu[cpt];
    cpt++;
  }
printf("\n");

//sort CPU
printf("\nCall sort CPU\n");
  hipEventRecord(startCPU);
  mergeAndSortRecuGPU(T_gpu, 0, n-1);
  hipEventRecord(stopCPU);
printf("\n");
//sort GPU
printf("\nCall sort GPU\n");
  hipEventRecord(startGPU);
  mergeAndSortRecuCPU(T_cpu, n);
  hipEventRecord(stopGPU);
printf("Call cudaDeviceSynchronize\n");
  hipDeviceSynchronize();

//test tri ok?
printf("\nTest tri\n");
  if(is_sorted(T_cpu, n)){
    printf("OK\n");
  //Fct test egale
printf("Test egale\n");
    if(is_equal(T_cpu, T_gpu, n))
      printf("OK\n");
    else
      printf("[error] T_gpu mal trie");
  }else{
    printf("[error] T_cpu mal trie");   
  }

//Time resuts
printf("\nTime results\n");
  float millisecondsGPU = 0;
  hipEventElapsedTime(&millisecondsGPU, startGPU, stopGPU);
  printf("\nTime GPU : %f ms\n",millisecondsGPU);
  float millisecondsCPU = 0;
  hipEventElapsedTime(&millisecondsCPU, startCPU, stopCPU);
  printf("Time CPU : %f ms\n",millisecondsCPU);

printf("\n");
  char s;
  printf("Appuyer sur ENTREE pour continuer\n");
  s=getchar();
  putchar(s);

//free
  free(T_cpu);
  free(T_gpu);

}

//3 Lecture à partir d'un fichier
void tabFile(){
  std::ifstream file;
  std::string x;
  int Entree = 0;
  int Erreur = 0;
  while(Entree == 0){
    system("clear");
    std::cout<<"Lecture à partir d'un fichier"<<std::endl;

    if(Erreur == 1){
      std::cout<<"[Erreur] Entrée non valide ! Le fichier doit se trouver dans le repertoire courant ex : exemple.txt et il doit utiliser des retours à la ligne en séparateur"<<std::endl;
      Erreur  =  0;
    }
    std::cout<<"Entrer le nom du fichier puis valider avec la touche ENTREE"<<std::endl;
    std::cin>>x;
    while (getchar() != '\n'); //vide le buffer de saisie
    x = "../data/" + x;
    file.open(x);
    if(file.is_open()){
      char s;
      std::cout<<"Vous avez entré "<<x<<std::endl;
      printf("Appuyer sur ENTREE pour continuer\n");
      s=getchar();
      putchar(s);
      Entree = 1;
    }else{
      Erreur  =  1;
    }
  }

//ouverture fichier

//lecture fichier
printf("Lecture fichier...\n");
  int num;
  std::vector<int> tab;
  while (file >> num) { tab.push_back(num); }

  int n = tab.size();
printf("%d elements lues\n",n);

// var pour timer
  hipEvent_t startCPU, stopCPU;
  hipEventCreate ( &startCPU );
  hipEventCreate ( &stopCPU );
  hipEvent_t startGPU, stopGPU;
  hipEventCreate ( &startGPU );
  hipEventCreate ( &stopGPU );

//Alloc Array
printf("Alloc Array\n");
  srand(time(NULL));
  int* T_cpu = (int*)malloc(n*sizeof(int));
  int* T_gpu = (int*)malloc(n*sizeof(int));
  int cpt=0;

//init Array
printf("\nInit Array\n");
  while (cpt<n){
    T_gpu[cpt]= tab[cpt];
    T_cpu[cpt] = tab[cpt];
    cpt++;
  }
printf("\n");

//sort CPU
printf("\nCall sort CPU\n");
  hipEventRecord(startCPU);
  mergeAndSortRecuGPU(T_gpu, 0, n-1);
  hipEventRecord(stopCPU);
printf("\n");
//sort GPU
printf("\nCall sort GPU\n");
  hipEventRecord(startGPU);
  mergeAndSortRecuCPU(T_cpu, n);
  hipEventRecord(stopGPU);
printf("Call cudaDeviceSynchronize\n");
  hipDeviceSynchronize();

//test tri ok?
printf("\nTest tri\n");
  if(is_sorted(T_cpu, n)){
    printf("OK\n");
  //Fct test egale
printf("Test egale\n");
    if(is_equal(T_cpu, T_gpu, n))
      printf("OK\n");
    else
      printf("[error] T_gpu mal trie");
  }else{
    printf("[error] T_cpu mal trie");   
  }

//Time resuts
printf("\nTime results\n");
  float millisecondsGPU = 0;
  hipEventElapsedTime(&millisecondsGPU, startGPU, stopGPU);
  printf("\nTime GPU : %f ms\n",millisecondsGPU);
  float millisecondsCPU = 0;
  hipEventElapsedTime(&millisecondsCPU, startCPU, stopCPU);
  printf("Time CPU : %f ms\n",millisecondsCPU);

printf("\n");
  char s;
  printf("Appuyer sur ENTREE pour continuer\n");
  s=getchar();
  putchar(s);

//free
  free(T_cpu);
  free(T_gpu);
}
//4 Exemple d'application donnee automobile
void tabCars(){
  std::ifstream file;
  int x;
  int Entree = 0;
  int Erreur = 0;
  while(Entree == 0){
    system("clear");
    std::cout<<"Exemple d'application données automobiles"<<std::endl;
    std::cout<<"0\tTop 10 Prix"<<std::endl;
    std::cout<<"1\tTop 10 Km"<<std::endl;
    if(Erreur == 1){
      std::cout<<"[Erreur] Entrée non valide ! choisir une option 1 ou 2"<<std::endl;
      Erreur  =  0;
    }
    if(Erreur == 2){
      std::cout<<"[Erreur] Fichier price.txt manquant! Lancer le script doc.py"<<std::endl;
      Erreur  =  0;
    }
    if(Erreur == 3){
      std::cout<<"[Erreur] Fichier kilometer.txt manquant! Lancer le script doc.py"<<std::endl;
      Erreur  =  0;
    }
    std::cout<<"Entrer votre choix (0 ou 1) puis valider avec la touche ENTREE"<<std::endl;
    std::cin>>x;
    while (getchar() != '\n'); //vide le buffer de saisie
    if(x==0){
      file.open("../data/price.txt");//ouverture fichier
      if(file.is_open()){
        char s;
        std::cout<<"Vous avez entré "<<x<<std::endl;
        printf("Appuyer sur ENTREE pour continuer\n");
        s=getchar();
        putchar(s);
        Entree = 1;
      }else{
        Erreur  =  2;
      }
    }else{
      if(x==1){
        file.open("../data/kilometer.txt");//ouverture fichier
        if(file.is_open()){
          char s;
          std::cout<<"Vous avez entré "<<x<<std::endl;
          printf("Appuyer sur ENTREE pour continuer\n");
          s=getchar();
          putchar(s);
          Entree = 2;
        }else{
          Erreur  =  3;
        }
      }else{
        Erreur  =  1; //mauvais choix
      }
    }
  }


//lecture fichier
printf("Lecture fichier...\n");
  int num;
  std::vector<int> tab;
  while (file >> num) { tab.push_back(num); }

  int n = tab.size();
printf("%d elements lus\n",n);

// var pour timer
  hipEvent_t startCPU, stopCPU;
  hipEventCreate ( &startCPU );
  hipEventCreate ( &stopCPU );
  hipEvent_t startGPU, stopGPU;
  hipEventCreate ( &startGPU );
  hipEventCreate ( &stopGPU );

//Alloc Array
printf("Alloc Array\n");
  srand(time(NULL));
  int* T_cpu = (int*)malloc(n*sizeof(int));
  int* T_gpu = (int*)malloc(n*sizeof(int));
  int cpt=0;

//init Array
printf("\nInit Array\n");
  while (cpt<n){
    T_gpu[cpt]= tab[cpt];
    T_cpu[cpt] = tab[cpt];
    cpt++;
  }
printf("\n");

//sort CPU
printf("\nCall sort CPU\n");
  hipEventRecord(startCPU);
  mergeAndSortRecuGPU(T_gpu, 0, n-1);
  hipEventRecord(stopCPU);
printf("\n");
//sort GPU
printf("\nCall sort GPU\n");
  hipEventRecord(startGPU);
  mergeAndSortRecuCPU(T_cpu, n);
  hipEventRecord(stopGPU);
printf("Call cudaDeviceSynchronize\n");
  hipDeviceSynchronize();

//test tri ok?
printf("\nTest tri\n");
  if(is_sorted(T_cpu, n)){
    printf("OK\n");
  //Fct test egale
printf("Test egale\n");
    if(is_equal(T_cpu, T_gpu, n))
      printf("OK\n");
    else
      printf("[error] T_gpu mal trie");
  }else{
    printf("[error] T_cpu mal trie");   
  }

//Time resuts
printf("\nTime results\n");
  float millisecondsGPU = 0;
  hipEventElapsedTime(&millisecondsGPU, startGPU, stopGPU);
  printf("\nTime GPU : %f ms\n",millisecondsGPU);
  float millisecondsCPU = 0;
  hipEventElapsedTime(&millisecondsCPU, startCPU, stopCPU);
  printf("Time CPU : %f ms\n",millisecondsCPU);
printf("\n");
  if(Entree == 1){//price
  printf("\nTop 10 des prix les plus élevés des voitures:\n");
    cpt = n;
    while (cpt>n-10){
      printf("[%d] %d Euros\n",n-cpt+1,T_gpu[cpt-1]);
      cpt--;
    }
   printf("\n");
  }
  if(Entree == 2){//kilometer
  printf("\nTop 10 des voitures les plus durables :\n");
    cpt = n;
    while (cpt>n-10){
      printf("[%d] %d Km\n",n-cpt+1,T_gpu[cpt-1]);
      cpt--;
    }
   printf("\n");
  }

printf("\n");
  char s;
  printf("Appuyer sur ENTREE pour continuer\n");
  s=getchar();
  putchar(s);

//free
  free(T_cpu);
  free(T_gpu);
}

int sousMenu(){
  int x;
  int Entree = 0;
  int Erreur = 0;
  while(Entree == 0){
    system("clear");
    std::cout<<"Tester l'algorithme de tri"<<std::endl;
    std::cout<<"0\tQuitter"<<std::endl;
    std::cout<<"1\tHelp"<<std::endl;
    std::cout<<"2\tTest sur tableau random"<<std::endl;
    std::cout<<"3\tLecture à partir d'un fichier"<<std::endl;
    std::cout<<"4\tExemple d'application données automobiles"<<std::endl;
    std::cout<<"5\tRetour menu principal"<<std::endl;

    if(Erreur == 1){
      std::cout<<"[Erreur] Entrée non valide !"<<std::endl;
      Erreur  =  0;
    }
    std::cout<<"Appuyer sur une touche entre 0 et 5  puis valider avec la touche ENTREE"<<std::endl;
    std::cin>>x;
    while (getchar() != '\n'); //vide le buffer de saisie

    switch ( x ){
      case 0: 
        system("clear");
        std::cout<<"Vous avez choisi de quitter"<<std::endl;
        std::cout<<"Etes vous sûr?"<<std::endl;
        std::cout<<"Appuyer sur 1 pour revenir au Menu principal sinon une touche pour quitter puis valider avec la touche ENTREE"<<std::endl;
        std::cin>>x;
        while (getchar() != '\n'); //vide le buffer de saisie
        if(x!=1){
          system("clear");
          std::cout<<"Merci et à bientot"<<std::endl;
          sleep(0.6);
          system("clear");
          std::cout<<"Merci et à bientot"<<std::endl;
          std::cout<<"3"<<std::endl;
           sleep(1);
          system("clear");
          std::cout<<"Merci et à bientot"<<std::endl;
          std::cout<<"  2"<<std::endl;
          sleep(1);
          system("clear");
          std::cout<<"Merci et à bientot"<<std::endl;
          std::cout<<"    1"<<std::endl;
          sleep(1);
          Entree = 2;
          system("clear");
        }
        break; 
      case 1:  
        system("clear");
        std::cout<<"1\tHelp"<<std::endl;
        std::cout<<"Merci d'utiliser exclusivement les CHIFFRES pour les selections dans les menus"<<std::endl;
        std::cout<<""<<std::endl;
        std::cout<<""<<std::endl;
        std::cout<<"Naviguer dans les menus pour tester toutes nos implementations de tri merge and sort sur CPU et GPU."<<std::endl;
        std::cout<<""<<std::endl;
        std::cout<<"Utilisation :"<<std::endl;
        std::cout<<"- Test sur tableau random : génère aléatoirement un tableau d'entier et le tri"<<std::endl;
        std::cout<<"- Lecture à partir d'un fichier : lit à partir d'un fichier un tableau d'entier et le tri."<<std::endl;
        std::cout<<"  Le fichier doit être écrit de la meme manière que data/exemple.txt"<<std::endl;
        std::cout<<"  On peut utiliser script/genere.c pour en créer un nouveau."<<std::endl;
std::cout<<"- Exemple d'application données automobiles : des données automobiles sont lues et triees."<<std::endl;
std::cout<<"  Il est essentiel de lancer le script de pré-traitrement des données script/doc.py avant."<<std::endl;
        std::cout<<""<<std::endl;
        std::cout<<""<<std::endl;
        std::cout<<""<<std::endl;
        sleep(2);
        char sh;
        printf("Appuyer sur ENTREE pour continuer\n");
        sh=getchar();
        putchar(sh);
        break;  
      case 2:  
        // Test sur tableau random
        tabRandom();
        break;
      case 3:  
      // Lecture à partir d'un fichier
        tabFile();
        break;
      case 4:  
      // Exemple d'application donnee automobile
        tabCars();
        break;
      case 5:  
        Entree = 1;
        break;
      default:  
        Erreur = 1;
    } 
  }
  return Entree;
}

void menuPrincipal(){
  int x;
  int Entree = 0;
  int Erreur = 0;
  while(Entree == 0){
    system("clear");
    std::cout<<"Menu principal"<<std::endl;
    std::cout<<"0\tQuitter"<<std::endl;
    std::cout<<"1\tHelp"<<std::endl;
    std::cout<<"2\tTester l'algorithme de tri"<<std::endl;
    std::cout<<"3\tReset"<<std::endl;

    if(Erreur == 1){
      std::cout<<"[Erreur] Entrée non valide !"<<std::endl;
      Erreur  =  0;
    }
    std::cout<<"Appuyer sur une touche entre 0 et 3  puis valider avec la touche ENTREE"<<std::endl;
    std::cin>>x;
    while (getchar() != '\n'); //vide le buffer de saisie
    switch ( x ){
      case 0: 
        system("clear");
        std::cout<<"Vous avez choisi de quitter"<<std::endl;
        std::cout<<"Etes vous sûr?"<<std::endl;
        std::cout<<"Appuyer sur 1 pour revenir au Menu principal sinon une touche pour quitter puis valider avec la touche ENTREE"<<std::endl;
        std::cin>>x;
        while (getchar() != '\n'); //vide le buffer de saisie
        if(x!=1){
          system("clear");
          std::cout<<"Merci et à bientôt"<<std::endl;
          sleep(0.6);
          system("clear");
          std::cout<<"Merci et à bientôt"<<std::endl;
          std::cout<<"3"<<std::endl;
          sleep(1);
          system("clear");
          std::cout<<"Merci et à bientôt"<<std::endl;
          std::cout<<"  2"<<std::endl;
          sleep(1);
          system("clear");
          std::cout<<"Merci et à bientôt"<<std::endl;
          std::cout<<"    1"<<std::endl;
          sleep(1);
          Entree = 1;
          system("clear");
        }
        break; 
      case 1:  
        system("clear");
        std::cout<<"1\tHelp"<<std::endl;
        std::cout<<"Merci d'utiliser exclusivement les CHIFFRES pour les sélections dans les menus"<<std::endl;
        std::cout<<""<<std::endl;
        std::cout<<""<<std::endl;
        std::cout<<"Naviguer dans les menus pour tester toutes nos implémentations de tri merge and sort sur CPU et GPU."<<std::endl;
        std::cout<<""<<std::endl;
        sleep(2);
        char sh;
        printf("Appuyer sur ENTREE pour continuer\n");
        sh=getchar();
        putchar(sh);
        break;  
      case 2:  
        if(sousMenu()==2)
          Entree = 1;
        break;
      case 3:  
        intro();
        break;
      default:  
        Erreur = 1;
    } 
  }
}

// End
void end(){
  system("clear");
  printf("\nBy\n");
  printf("ALOUI Driss\n");
  printf("DO Alexandre\n");
  printf("\nNovembre 2017\n");
}

void prelude(){
  std::cout<<"Naviguer dans les menus pour tester toutes nos implémentations de tri merge and sort sur CPU et GPU."<<std::endl;
  std::cout<<""<<std::endl;
  sleep(2);
  char sh;
  printf("Appuyer sur ENTREE pour continuer\n");
  sh=getchar();
  putchar(sh);
}

//---------------- MAIN ----------------
//main
int main(){
  //int n = TAILLE;

// Gestion de l intro
  FILE* fichier = NULL;
  fichier = fopen("tmp.txt", "r");

  if (fichier == NULL){ // 1ere fois
    intro();
    prelude();
    FILE* fichier2 = NULL;
    fichier2 = fopen("tmp.txt", "w");
    fprintf(fichier2, "1");
    fclose(fichier2);
  }else{ // intro deja faite une fois)
    fclose(fichier);
    introShort();
  }
  
  menuPrincipal();
  end();

  return 0;
}

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

                                        # End of file scope inline assembly
	.globl	_Z9is_sortedPii                 # -- Begin function _Z9is_sortedPii
	.type	_Z9is_sortedPii,@function
_Z9is_sortedPii:                        # @_Z9is_sortedPii
	.cfi_startproc
# %bb.0:
	decl	%esi
	xorl	%edx, %edx
	testl	%esi, %esi
	movl	$0, %eax
	cmovgl	%esi, %eax
.LBB0_1:                                # =>This Inner Loop Header: Depth=1
	movq	%rdx, %rcx
	cmpq	%rdx, %rax
	je	.LBB0_3
# %bb.2:                                #   in Loop: Header=BB0_1 Depth=1
	movl	(%rdi,%rcx,4), %r8d
	leaq	1(%rcx), %rdx
	cmpl	4(%rdi,%rcx,4), %r8d
	jle	.LBB0_1
.LBB0_3:
	movslq	%esi, %rax
	cmpq	%rax, %rcx
	setge	%al
	retq
.Lfunc_end0:
	.size	_Z9is_sortedPii, .Lfunc_end0-_Z9is_sortedPii
	.cfi_endproc
                                        # -- End function
	.globl	_Z8is_equalPiS_i                # -- Begin function _Z8is_equalPiS_i
	.type	_Z8is_equalPiS_i,@function
_Z8is_equalPiS_i:                       # @_Z8is_equalPiS_i
	.cfi_startproc
# %bb.0:
                                        # kill: def $edx killed $edx def $rdx
	movb	$1, %al
	cmpl	$2, %edx
	jl	.LBB1_6
# %bb.1:                                # %.lr.ph.preheader
	movl	(%rdi), %eax
	cmpl	(%rsi), %eax
	jne	.LBB1_7
# %bb.2:                                # %.lr.ph15.preheader
	decl	%edx
	movl	$1, %ecx
.LBB1_3:                                # %.lr.ph15
                                        # =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	cmpq	%rcx, %rdx
	je	.LBB1_5
# %bb.4:                                # %.lr.ph
                                        #   in Loop: Header=BB1_3 Depth=1
	movl	(%rdi,%rax,4), %r8d
	leaq	1(%rax), %rcx
	cmpl	(%rsi,%rax,4), %r8d
	je	.LBB1_3
.LBB1_5:                                # %._crit_edge.loopexit
	cmpq	%rdx, %rax
	setae	%al
.LBB1_6:                                # %._crit_edge
                                        # kill: def $al killed $al killed $eax
	retq
.LBB1_7:
	xorl	%eax, %eax
                                        # kill: def $al killed $al killed $eax
	retq
.Lfunc_end1:
	.size	_Z8is_equalPiS_i, .Lfunc_end1-_Z8is_equalPiS_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z8get_pgcdii                   # -- Begin function _Z8get_pgcdii
	.type	_Z8get_pgcdii,@function
_Z8get_pgcdii:                          # @_Z8get_pgcdii
	.cfi_startproc
# %bb.0:
	movl	%esi, %edx
	movl	%edi, %eax
.LBB2_1:                                # =>This Inner Loop Header: Depth=1
	movl	%edx, %ecx
	cltd
	idivl	%ecx
	movl	%ecx, %eax
	testl	%edx, %edx
	jne	.LBB2_1
# %bb.2:
	movl	%ecx, %eax
	retq
.Lfunc_end2:
	.size	_Z8get_pgcdii, .Lfunc_end2-_Z8get_pgcdii
	.cfi_endproc
                                        # -- End function
	.globl	_Z8MergeCPUPiS_iS_i             # -- Begin function _Z8MergeCPUPiS_iS_i
	.type	_Z8MergeCPUPiS_iS_i,@function
_Z8MergeCPUPiS_iS_i:                    # @_Z8MergeCPUPiS_iS_i
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %rbp, -16
	xorl	%r10d, %r10d
	testl	%edx, %edx
	jle	.LBB3_1
# %bb.10:
	movl	$0, %r9d
	movl	$0, %eax
	testl	%r8d, %r8d
	jle	.LBB3_2
# %bb.11:                               # %.lr.ph.preheader
	xorl	%eax, %eax
	xorl	%r9d, %r9d
	xorl	%r10d, %r10d
.LBB3_12:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	%r10d, %r11d
	movl	%r9d, %ebx
	movl	%r10d, %r9d
	movl	(%rsi,%r9,4), %ebp
	movl	%ebx, %r9d
	movl	(%rcx,%r9,4), %r14d
	xorl	%r9d, %r9d
	xorl	%r10d, %r10d
	cmpl	%r14d, %ebp
	setge	%r9b
	setl	%r10b
	cmovll	%ebp, %r14d
	addl	%r11d, %r10d
	addl	%ebx, %r9d
	movl	%r14d, (%rdi,%rax,4)
	incq	%rax
	cmpl	%edx, %r10d
	jge	.LBB3_2
# %bb.13:                               # %.lr.ph
                                        #   in Loop: Header=BB3_12 Depth=1
	cmpl	%r8d, %r9d
	jl	.LBB3_12
	jmp	.LBB3_2
.LBB3_1:
	xorl	%r9d, %r9d
	xorl	%eax, %eax
.LBB3_2:                                # %.preheader35
	cmpl	%edx, %r10d
	jge	.LBB3_6
# %bb.3:                                # %.lr.ph43.preheader
	movl	%eax, %eax
	movslq	%r10d, %r11
	movslq	%edx, %rdx
	leaq	(%rsi,%r11,4), %r10
	subq	%r11, %rdx
	leaq	(%rdi,%rax,4), %r11
	xorl	%esi, %esi
.LBB3_4:                                # %.lr.ph43
                                        # =>This Inner Loop Header: Depth=1
	movl	(%r10,%rsi,4), %ebx
	movl	%ebx, (%r11,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	.LBB3_4
# %bb.5:                                # %.preheader.loopexit
	addl	%esi, %eax
.LBB3_6:                                # %.preheader
	cmpl	%r8d, %r9d
	jge	.LBB3_9
# %bb.7:                                # %.lr.ph47.preheader
	movl	%eax, %edx
	movslq	%r9d, %rsi
	movslq	%r8d, %rax
	leaq	(%rcx,%rsi,4), %rcx
	subq	%rsi, %rax
	leaq	(%rdi,%rdx,4), %rdx
	xorl	%esi, %esi
.LBB3_8:                                # %.lr.ph47
                                        # =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rsi,4), %edi
	movl	%edi, (%rdx,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %rax
	jne	.LBB3_8
.LBB3_9:                                # %._crit_edge
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	_Z8MergeCPUPiS_iS_i, .Lfunc_end3-_Z8MergeCPUPiS_iS_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z19mergeAndSortRecuCPUPii      # -- Begin function _Z19mergeAndSortRecuCPUPii
	.type	_Z19mergeAndSortRecuCPUPii,@function
_Z19mergeAndSortRecuCPUPii:             # @_Z19mergeAndSortRecuCPUPii
	.cfi_startproc
# %bb.0:
	cmpl	$1, %esi
	jg	.LBB4_2
# %bb.1:                                # %common.ret39
	retq
.LBB4_2:                                # %.preheader
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	%esi, %ebp
	movq	%rdi, %rbx
	movl	%esi, %r14d
	shrl	%r14d
	leal	(,%r14,4), %edi
	callq	malloc
	movq	%rax, %r15
	movl	%ebp, %eax
	subl	%r14d, %eax
	movslq	%eax, %r13
	leaq	(,%r13,4), %rdi
	callq	malloc
	movq	%rax, %r12
	leal	-1(%r14), %eax
	leaq	4(,%rax,4), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	memcpy@PLT
	movl	%ebp, %eax
	andl	$2147483646, %eax               # imm = 0x7FFFFFFE
	leaq	(%rbx,%rax,2), %rsi
	movl	%r14d, %eax
	notl	%eax
	addl	%ebp, %eax
	leaq	4(,%rax,4), %rdx
	movq	%r12, %rdi
	callq	memcpy@PLT
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_Z19mergeAndSortRecuCPUPii
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_Z19mergeAndSortRecuCPUPii
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	movq	%r12, %rcx
	movl	%r13d, %r8d
	callq	_Z8MergeCPUPiS_iS_i
	movq	%r15, %rdi
	callq	free
	movq	%r12, %rdi
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	free                            # TAILCALL
.Lfunc_end4:
	.size	_Z19mergeAndSortRecuCPUPii, .Lfunc_end4-_Z19mergeAndSortRecuCPUPii
	.cfi_endproc
                                        # -- End function
	.globl	_Z8mergeGPUPiiiS_iiS_ii         # -- Begin function _Z8mergeGPUPiiiS_iiS_ii
	.type	_Z8mergeGPUPiiiS_iiS_ii,@function
_Z8mergeGPUPiiiS_iiS_ii:                # @_Z8mergeGPUPiiiS_iiS_ii
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %rbp, -16
	movl	48(%rsp), %eax
	testl	%eax, %eax
	jle	.LBB5_12
# %bb.1:                                # %.lr.ph.preheader
	movq	32(%rsp), %r10
	movslq	40(%rsp), %r11
	movl	%eax, %eax
	leaq	(%r10,%r11,4), %r10
	xorl	%r11d, %r11d
.LBB5_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	cmpl	%esi, %edx
	jge	.LBB5_7
# %bb.3:                                # %.lr.ph
                                        #   in Loop: Header=BB5_2 Depth=1
	cmpl	%r8d, %r9d
	jge	.LBB5_7
# %bb.4:                                #   in Loop: Header=BB5_2 Depth=1
	movslq	%edx, %rbx
	movl	(%rdi,%rbx,4), %ebx
	movslq	%r9d, %r14
	movl	(%rcx,%r14,4), %ebp
	cmpl	%ebp, %ebx
	jl	.LBB5_5
# %bb.6:                                #   in Loop: Header=BB5_2 Depth=1
	movl	%ebp, (%r10,%r11,4)
	jmp	.LBB5_10
.LBB5_7:                                #   in Loop: Header=BB5_2 Depth=1
	cmpl	%esi, %edx
	jge	.LBB5_9
# %bb.8:                                #   in Loop: Header=BB5_2 Depth=1
	movslq	%edx, %rbx
	movl	(%rdi,%rbx,4), %ebx
.LBB5_5:                                #   in Loop: Header=BB5_2 Depth=1
	movl	%ebx, (%r10,%r11,4)
	incl	%edx
	jmp	.LBB5_11
.LBB5_9:                                #   in Loop: Header=BB5_2 Depth=1
	movslq	%r9d, %rbx
	movl	(%rcx,%rbx,4), %ebx
	movl	%ebx, (%r10,%r11,4)
.LBB5_10:                               #   in Loop: Header=BB5_2 Depth=1
	incl	%r9d
.LBB5_11:                               #   in Loop: Header=BB5_2 Depth=1
	incq	%r11
	cmpq	%r11, %rax
	jne	.LBB5_2
.LBB5_12:                               # %._crit_edge
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end5:
	.size	_Z8mergeGPUPiiiS_iiS_ii, .Lfunc_end5-_Z8mergeGPUPiiiS_iiS_ii
	.cfi_endproc
                                        # -- End function
	.globl	_Z31__device_stub__partitionningGPUPiiS_iS_ # -- Begin function _Z31__device_stub__partitionningGPUPiiS_iS_
	.type	_Z31__device_stub__partitionningGPUPiiS_iS_,@function
_Z31__device_stub__partitionningGPUPiiS_iS_: # @_Z31__device_stub__partitionningGPUPiiS_iS_
	.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	$128, %rsp
	.cfi_def_cfa_offset 176
	.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	4(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	32(%rsp), %rsi
	movq	%rdx, (%rsi)
	movq	%rsp, %rdx
	movl	%ecx, (%rdx)
	leaq	24(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%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	$_Z16partitionningGPUPiiS_iS_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$144, %rsp
	.cfi_adjust_cfa_offset -144
	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_end6:
	.size	_Z31__device_stub__partitionningGPUPiiS_iS_, .Lfunc_end6-_Z31__device_stub__partitionningGPUPiiS_iS_
	.cfi_endproc
                                        # -- End function
	.globl	_Z19mergeAndSortRecuGPUPiii     # -- Begin function _Z19mergeAndSortRecuGPUPiii
	.type	_Z19mergeAndSortRecuGPUPiii,@function
_Z19mergeAndSortRecuGPUPiii:            # @_Z19mergeAndSortRecuGPUPiii
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
                                        # kill: def $esi killed $esi def $rsi
	movq	%rdi, %rbx
	movl	%edx, %eax
	subl	%esi, %eax
	leal	1(%rax), %r15d
	cmpl	$8, %eax
	jg	.LBB7_17
# %bb.1:
	movl	%edx, %r14d
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	leal	(%rcx,%rsi), %r13d
	incl	%r13d
	movl	%ecx, %edx
	addl	%esi, %edx
	movl	%r13d, %ebp
	subl	%esi, %ebp
	movl	%r14d, %r12d
	subl	%edx, %r12d
	movq	%rbx, %rdi
                                        # kill: def $esi killed $esi killed $rsi
	callq	_Z19mergeAndSortRecuGPUPiii
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	callq	_Z19mergeAndSortRecuGPUPiii
	movl	%ebp, 28(%rsp)                  # 4-byte Spill
	movslq	%ebp, %rbp
	leaq	(,%rbp,4), %r13
	leaq	32(%rsp), %r14
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	hipMalloc
	movl	%r12d, 24(%rsp)                 # 4-byte Spill
	movslq	%r12d, %r12
	shlq	$2, %r12
	leaq	16(%rsp), %rdi
	movq	%r12, %rsi
	callq	hipMalloc
	movslq	%r15d, %r15
	shlq	$2, %r15
	leaq	8(%rsp), %rdi
	movq	%r15, %rsi
	callq	hipMalloc
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	.LBB7_4
# %bb.2:
	cmpq	$0, 16(%rsp)
	je	.LBB7_4
# %bb.3:
	cmpq	$0, 8(%rsp)
	je	.LBB7_4
# %bb.5:
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movl	%eax, %r13d
	movq	16(%rsp), %rdi
	leaq	(%rbx,%rbp,4), %rsi
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movl	%eax, %r12d
	testl	%r13d, %r13d
	je	.LBB7_7
# %bb.6:
	movl	$.L.str.1, %edi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	printf
.LBB7_7:
	testl	%r12d, %r12d
	je	.LBB7_9
# %bb.8:
	movl	$.L.str.2, %edi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	printf
.LBB7_9:                                # %.preheader
	movl	28(%rsp), %ebp                  # 4-byte Reload
	movl	%ebp, %eax
	movl	24(%rsp), %r14d                 # 4-byte Reload
	movl	%r14d, %edx
.LBB7_10:                               # =>This Inner Loop Header: Depth=1
	movl	%edx, %ecx
	cltd
	idivl	%ecx
	movl	%ecx, %eax
	testl	%edx, %edx
	jne	.LBB7_10
# %bb.11:                               # %_Z8get_pgcdii.exit
	movl	$.L.str.3, %edi
	movl	$1024, %esi                     # imm = 0x400
	movl	%ecx, %edx
	movl	%ebp, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	printf
	movabsq	$4294968320, %rdi               # imm = 0x100000400
	movl	$1, %esi
	movq	%rdi, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB7_13
# %bb.12:
	movq	32(%rsp), %rdi
	movq	16(%rsp), %rdx
	movq	8(%rsp), %r8
	movl	%ebp, %esi
	movl	%r14d, %ecx
	callq	_Z31__device_stub__partitionningGPUPiiS_iS_
.LBB7_13:
	movq	8(%rsp), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	je	.LBB7_15
# %bb.14:
	movl	$.L.str.4, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	printf
.LBB7_15:
	movq	%rbx, %rdi
	callq	free
	movq	32(%rsp), %rdi
	callq	hipFree
	movq	16(%rsp), %rdi
	callq	hipFree
	movq	8(%rsp), %rdi
	callq	hipFree
	jmp	.LBB7_16
.LBB7_17:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	_Z19mergeAndSortRecuCPUPii      # TAILCALL
.LBB7_4:
	.cfi_def_cfa_offset 96
	movl	$.Lstr, %edi
	callq	puts@PLT
.LBB7_16:
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end7:
	.size	_Z19mergeAndSortRecuGPUPiii, .Lfunc_end7-_Z19mergeAndSortRecuGPUPiii
	.cfi_endproc
                                        # -- End function
	.globl	_Z5introv                       # -- Begin function _Z5introv
	.type	_Z5introv,@function
_Z5introv:                              # @_Z5introv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movl	$.L.str.5, %edi
	callq	system
	movl	$.Lstr.14, %edi
	callq	puts@PLT
	movl	$10, %edi
	callq	putchar
	movl	$1, %edi
	callq	sleep
	movl	$.Lstr.15, %edi
	callq	puts@PLT
	movl	$.Lstr.16, %edi
	callq	puts@PLT
	movl	$10, %edi
	callq	putchar
	movl	$1, %edi
	callq	sleep
	movl	$.Lstr.17, %edi
	callq	puts@PLT
	movl	$2, %edi
	callq	sleep
	movl	$.L.str.5, %edi
	callq	system
	movl	$.Lstr.5, %edi
	callq	puts@PLT
	movl	$10, %edi
	callq	putchar
	movl	$.Lstr.6, %edi
	callq	puts@PLT
	movl	$2, %edi
	callq	sleep
	movl	$.L.str.5, %edi
	callq	system
	movl	$.Lstr.68, %edi
	callq	puts@PLT
	movl	$.Lstr.69, %edi
	callq	puts@PLT
	movl	$10, %edi
	callq	putchar
	movl	$1, %edi
	callq	sleep
	movl	$.Lstr.9, %edi
	callq	puts@PLT
	movl	$2, %edi
	callq	sleep
	movl	$.L.str.5, %edi
	callq	system
	movl	$.Lstr.20, %edi
	callq	puts@PLT
	movl	$1, %edi
	callq	sleep
	movl	$.L.str.5, %edi
	callq	system
	movl	$.Lstr.21, %edi
	callq	puts@PLT
	movl	$10, %edi
	callq	putchar
	movl	$1, %edi
	callq	sleep
	movl	$.Lstr.22, %edi
	callq	puts@PLT
	movl	$1, %edi
	callq	sleep
	movl	$.L.str.5, %edi
	callq	system
	movl	$.Lstr.71, %edi
	callq	puts@PLT
	callq	getchar
	movsbl	%al, %edi
	callq	putchar
	movl	$.L.str.5, %edi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	system                          # TAILCALL
.Lfunc_end8:
	.size	_Z5introv, .Lfunc_end8-_Z5introv
	.cfi_endproc
                                        # -- End function
	.globl	_Z10introShortv                 # -- Begin function _Z10introShortv
	.type	_Z10introShortv,@function
_Z10introShortv:                        # @_Z10introShortv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movl	$.L.str.5, %edi
	callq	system
	movl	$.Lstr.14, %edi
	callq	puts@PLT
	movl	$10, %edi
	callq	putchar
	movl	$.Lstr.15, %edi
	callq	puts@PLT
	movl	$.Lstr.16, %edi
	callq	puts@PLT
	movl	$10, %edi
	callq	putchar
	movl	$.Lstr.17, %edi
	callq	puts@PLT
	movl	$2, %edi
	callq	sleep
	movl	$.L.str.5, %edi
	callq	system
	movl	$.Lstr.68, %edi
	callq	puts@PLT
	movl	$.Lstr.69, %edi
	callq	puts@PLT
	movl	$10, %edi
	callq	putchar
	movl	$2, %edi
	callq	sleep
	movl	$.L.str.5, %edi
	callq	system
	movl	$.Lstr.20, %edi
	callq	puts@PLT
	movl	$1, %edi
	callq	sleep
	movl	$.L.str.5, %edi
	callq	system
	movl	$.Lstr.21, %edi
	callq	puts@PLT
	movl	$10, %edi
	callq	putchar
	movl	$.Lstr.22, %edi
	callq	puts@PLT
	movl	$1, %edi
	callq	sleep
	movl	$.L.str.5, %edi
	callq	system
	movl	$.Lstr.71, %edi
	callq	puts@PLT
	callq	getchar
	movsbl	%al, %edi
	callq	putchar
	movl	$.L.str.5, %edi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	system                          # TAILCALL
.Lfunc_end9:
	.size	_Z10introShortv, .Lfunc_end9-_Z10introShortv
	.cfi_endproc
                                        # -- End function
	.globl	_Z9tabRandomv                   # -- Begin function _Z9tabRandomv
	.type	_Z9tabRandomv,@function
_Z9tabRandomv:                          # @_Z9tabRandomv
	.cfi_startproc
# %bb.0:                                # %.critedge60
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	$.L.str.5, %edi
	callq	system
	movl	$_ZSt4cout, %r14d
	movl	$_ZSt4cout, %edi
	movl	$.L.str.20, %esi
	movl	$23, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	leaq	12(%rsp), %rbx
.LBB10_2:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB10_3 Depth 2
	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	$_ZSt4cout, %edi
	movl	$.L.str.22, %esi
	movl	$62, %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	$_ZSt3cin, %edi
	movq	%rbx, %rsi
	callq	_ZNSirsERi
.LBB10_3:                               #   Parent Loop BB10_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	callq	getchar
	cmpl	$10, %eax
	jne	.LBB10_3
# %bb.4:                                #   in Loop: Header=BB10_2 Depth=1
	movl	12(%rsp), %esi
	testl	%esi, %esi
	jg	.LBB10_5
# %bb.1:                                #   in Loop: Header=BB10_2 Depth=1
	movl	$.L.str.5, %edi
	callq	system
	movl	$_ZSt4cout, %edi
	movl	$.L.str.20, %esi
	movl	$23, %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	$_ZSt4cout, %edi
	movl	$.L.str.21, %esi
	movl	$46, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	jmp	.LBB10_2
.LBB10_5:
	xorl	%r12d, %r12d
	movl	$.L.str.23, %edi
	xorl	%eax, %eax
	callq	printf
	movl	$.Lstr.71, %edi
	callq	puts@PLT
	callq	getchar
	movsbl	%al, %edi
	callq	putchar
	movslq	12(%rsp), %r15
	leaq	40(%rsp), %rdi
	callq	hipEventCreate
	leaq	32(%rsp), %rdi
	callq	hipEventCreate
	leaq	24(%rsp), %rdi
	callq	hipEventCreate
	leaq	16(%rsp), %rdi
	callq	hipEventCreate
	movl	$.Lstr.50, %edi
	callq	puts@PLT
	xorl	%edi, %edi
	callq	time
	movl	%eax, %edi
	callq	srand
	leaq	(,%r15,4), %r14
	movq	%r14, %rdi
	callq	malloc
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	malloc
	movq	%rax, %r14
	movl	$.Lstr.51, %edi
	callq	puts@PLT
	movl	%r15d, %r13d
	testq	%r15, %r15
	jle	.LBB10_8
# %bb.6:                                # %.lr.ph.preheader
	xorl	%ebp, %ebp
.LBB10_7:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	callq	rand
	cltq
	imulq	$1374389535, %rax, %rcx         # imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$37, %rcx
	addl	%edx, %ecx
	imull	$100, %ecx, %ecx
	subl	%ecx, %eax
	movl	%eax, (%r14,%rbp,4)
	movl	%eax, (%rbx,%rbp,4)
	incq	%rbp
	cmpq	%rbp, %r13
	jne	.LBB10_7
.LBB10_8:                               # %._crit_edge
	movl	%r15d, %ebp
	movl	$10, %edi
	callq	putchar
	movl	$.Lstr.52, %edi
	callq	puts@PLT
	movq	40(%rsp), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	decq	%r15
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_Z19mergeAndSortRecuGPUPiii
	movq	32(%rsp), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	movl	$10, %edi
	callq	putchar
	movl	$.Lstr.53, %edi
	callq	puts@PLT
	movq	24(%rsp), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	movq	%rbx, %rdi
	movl	%ebp, %esi
	callq	_Z19mergeAndSortRecuCPUPii
	movq	16(%rsp), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	movl	$.Lstr.54, %edi
	callq	puts@PLT
	callq	hipDeviceSynchronize
	movl	$.Lstr.55, %edi
	callq	puts@PLT
	testl	%r15d, %r15d
	cmovgl	%r15d, %r12d
	movq	%r12, %rax
	negq	%rax
	movq	$-1, %rcx
.LBB10_9:                               # =>This Inner Loop Header: Depth=1
	leaq	(%rax,%rcx), %rdx
	cmpq	$-1, %rdx
	je	.LBB10_10
# %bb.11:                               #   in Loop: Header=BB10_9 Depth=1
	movl	4(%rbx,%rcx,4), %esi
	leaq	1(%rcx), %rdx
	cmpl	8(%rbx,%rcx,4), %esi
	movq	%rdx, %rcx
	jle	.LBB10_9
	jmp	.LBB10_12
.LBB10_10:
	movq	%r12, %rdx
.LBB10_12:                              # %_Z9is_sortedPii.exit
	cmpq	%r15, %rdx
	jge	.LBB10_13
# %bb.21:
	movl	$.L.str.33, %edi
	jmp	.LBB10_22
.LBB10_13:
	movl	$.Lstr.58, %edi
	callq	puts@PLT
	movl	$.Lstr.57, %edi
	callq	puts@PLT
	cmpl	$2, %r13d
	jge	.LBB10_14
.LBB10_19:                              # %_Z8is_equalPiS_i.exit.thread
	movl	$.Lstr.58, %edi
	callq	puts@PLT
	jmp	.LBB10_23
.LBB10_14:                              # %.lr.ph.preheader.i
	movl	(%rbx), %eax
	cmpl	(%r14), %eax
	jne	.LBB10_20
# %bb.15:                               # %.lr.ph54.preheader
	movl	%r15d, %eax
	movl	$1, %edx
.LBB10_16:                              # %.lr.ph54
                                        # =>This Inner Loop Header: Depth=1
	movq	%rdx, %rcx
	cmpq	%rdx, %rax
	je	.LBB10_18
# %bb.17:                               # %.lr.ph.i
                                        #   in Loop: Header=BB10_16 Depth=1
	movl	(%rbx,%rcx,4), %esi
	leaq	1(%rcx), %rdx
	cmpl	(%r14,%rcx,4), %esi
	je	.LBB10_16
.LBB10_18:                              # %_Z8is_equalPiS_i.exit
	cmpq	%rax, %rcx
	jae	.LBB10_19
.LBB10_20:                              # %.critedge
	movl	$.L.str.32, %edi
.LBB10_22:
	xorl	%eax, %eax
	callq	printf
.LBB10_23:
	movl	$.Lstr.59, %edi
	callq	puts@PLT
	xorl	%ebp, %ebp
	leaq	52(%rsp), %r15
	movl	%ebp, (%r15)
	movq	24(%rsp), %rsi
	movq	16(%rsp), %rdx
	movq	%r15, %rdi
	callq	hipEventElapsedTime
	cvtss2sd	(%r15), %xmm0
	movl	$.L.str.35, %edi
	movb	$1, %al
	callq	printf
	leaq	48(%rsp), %r15
	movl	%ebp, (%r15)
	movq	40(%rsp), %rsi
	movq	32(%rsp), %rdx
	movq	%r15, %rdi
	callq	hipEventElapsedTime
	xorps	%xmm0, %xmm0
	cvtss2sd	(%r15), %xmm0
	movl	$.L.str.36, %edi
	movb	$1, %al
	callq	printf
	movl	$10, %edi
	callq	putchar
	movl	$.Lstr.71, %edi
	callq	puts@PLT
	callq	getchar
	movsbl	%al, %edi
	callq	putchar
	movq	%rbx, %rdi
	callq	free
	movq	%r14, %rdi
	callq	free
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end10:
	.size	_Z9tabRandomv, .Lfunc_end10-_Z9tabRandomv
	.cfi_endproc
                                        # -- End function
	.globl	_Z7tabFilev                     # -- Begin function _Z7tabFilev
	.type	_Z7tabFilev,@function
_Z7tabFilev:                            # @_Z7tabFilev
.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	$632, %rsp                      # imm = 0x278
	.cfi_def_cfa_offset 688
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	leaq	112(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev
	leaq	96(%rsp), %rax
	movq	%rax, -16(%rax)
	movq	$0, -8(%rax)
	movb	$0, (%rax)
	leaq	32(%rsp), %rbx
	xorl	%ebp, %ebp
	movl	$_ZSt4cout, %r14d
	leaq	80(%rsp), %r15
	leaq	16(%rsp), %r12
.LBB11_1:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB11_16 Depth 2
.Ltmp0:
	movl	$.L.str.5, %edi
	callq	system
.Ltmp1:
# %bb.2:                                #   in Loop: Header=BB11_1 Depth=1
.Ltmp2:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.37, %esi
	movl	$30, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp3:
# %bb.3:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
                                        #   in Loop: Header=BB11_1 Depth=1
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
.Ltmp4:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp5:
# %bb.4:                                # %.noexc85
                                        #   in Loop: Header=BB11_1 Depth=1
.Ltmp6:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp7:
# %bb.5:                                # %.noexc86
                                        #   in Loop: Header=BB11_1 Depth=1
.Ltmp8:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp9:
# %bb.6:                                # %_ZNSolsEPFRSoS_E.exit
                                        #   in Loop: Header=BB11_1 Depth=1
	testb	$1, %bpl
	je	.LBB11_11
# %bb.7:                                #   in Loop: Header=BB11_1 Depth=1
.Ltmp10:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.38, %esi
	movl	$159, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp11:
# %bb.8:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit65
                                        #   in Loop: Header=BB11_1 Depth=1
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
.Ltmp12:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp13:
# %bb.9:                                # %.noexc88
                                        #   in Loop: Header=BB11_1 Depth=1
.Ltmp14:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp15:
# %bb.10:                               # %.noexc89
                                        #   in Loop: Header=BB11_1 Depth=1
.Ltmp16:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp17:
.LBB11_11:                              # %_ZNSolsEPFRSoS_E.exit66
                                        #   in Loop: Header=BB11_1 Depth=1
.Ltmp18:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.39, %esi
	movl	$59, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp19:
# %bb.12:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit67
                                        #   in Loop: Header=BB11_1 Depth=1
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
.Ltmp20:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp21:
# %bb.13:                               # %.noexc92
                                        #   in Loop: Header=BB11_1 Depth=1
.Ltmp22:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp23:
# %bb.14:                               # %.noexc93
                                        #   in Loop: Header=BB11_1 Depth=1
.Ltmp24:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp25:
# %bb.15:                               # %_ZNSolsEPFRSoS_E.exit68
                                        #   in Loop: Header=BB11_1 Depth=1
.Ltmp26:
	movl	$_ZSt3cin, %edi
	movq	%r15, %rsi
	callq	_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE
.Ltmp27:
.LBB11_16:                              # %.preheader
                                        #   Parent Loop BB11_1 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	callq	getchar
	cmpl	$10, %eax
	jne	.LBB11_16
# %bb.17:                               #   in Loop: Header=BB11_1 Depth=1
	movq	80(%rsp), %r13
	movq	88(%rsp), %rbp
	movq	%rbx, 16(%rsp)
	movq	$0, 24(%rsp)
	movb	$0, 32(%rsp)
	leaq	8(%rbp), %rsi
.Ltmp28:
	movq	%r12, %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm
.Ltmp29:
# %bb.18:                               #   in Loop: Header=BB11_1 Depth=1
.Ltmp30:
	movl	$.L.str.40, %esi
	movl	$8, %edx
	movq	%r12, %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm
.Ltmp31:
# %bb.19:                               #   in Loop: Header=BB11_1 Depth=1
.Ltmp32:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbp, %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm
.Ltmp33:
# %bb.20:                               # %_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_.exit
                                        #   in Loop: Header=BB11_1 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_
	movq	16(%rsp), %rdi
	cmpq	%rbx, %rdi
	je	.LBB11_22
# %bb.21:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
                                        #   in Loop: Header=BB11_1 Depth=1
	callq	_ZdlPv
.LBB11_22:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
                                        #   in Loop: Header=BB11_1 Depth=1
.Ltmp35:
	leaq	112(%rsp), %rdi
	movq	%r15, %rsi
	movl	$8, %edx
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode
.Ltmp36:
# %bb.23:                               #   in Loop: Header=BB11_1 Depth=1
	leaq	232(%rsp), %rdi
	callq	_ZNKSt12__basic_fileIcE7is_openEv
	movb	$1, %bpl
	testb	%al, %al
	je	.LBB11_1
# %bb.24:
.Ltmp38:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.41, %esi
	movl	$17, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp39:
# %bb.25:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit69
	movq	80(%rsp), %rsi
	movq	88(%rsp), %rdx
.Ltmp40:
	movl	$_ZSt4cout, %edi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp41:
# %bb.26:                               # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp42:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp43:
# %bb.27:                               # %.noexc96
.Ltmp44:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp45:
# %bb.28:                               # %.noexc97
.Ltmp46:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp47:
# %bb.29:
	movl	$.Lstr.71, %edi
	callq	puts@PLT
	callq	getchar
	movsbl	%al, %edi
	callq	putchar
	movl	$.Lstr.49, %edi
	callq	puts@PLT
	xorps	%xmm0, %xmm0
	leaq	16(%rsp), %rbx
	movaps	%xmm0, (%rbx)
	movq	$0, 16(%rbx)
	leaq	112(%rsp), %r15
	leaq	12(%rsp), %r12
.LBB11_30:                              # %_ZNSt6vectorIiSaIiEE9push_backERKi.exit
                                        # =>This Inner Loop Header: Depth=1
.Ltmp49:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ZNSirsERi
.Ltmp50:
# %bb.31:                               #   in Loop: Header=BB11_30 Depth=1
	movq	(%rax), %rcx
	movq	-24(%rcx), %rcx
	testb	$5, 32(%rax,%rcx)
	movq	24(%rsp), %r14
	jne	.LBB11_35
# %bb.32:                               #   in Loop: Header=BB11_30 Depth=1
	cmpq	32(%rsp), %r14
	je	.LBB11_34
# %bb.33:                               #   in Loop: Header=BB11_30 Depth=1
	movl	12(%rsp), %eax
	movl	%eax, (%r14)
	addq	$4, %r14
	movq	%r14, 24(%rsp)
	jmp	.LBB11_30
.LBB11_34:                              #   in Loop: Header=BB11_30 Depth=1
.Ltmp80:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
.Ltmp81:
	jmp	.LBB11_30
.LBB11_35:
	subq	16(%rsp), %r14
	movq	%r14, %r15
	shrq	$2, %r15
	movl	$.L.str.43, %edi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	printf
.Ltmp51:
	leaq	72(%rsp), %rdi
	callq	hipEventCreate
.Ltmp52:
# %bb.36:
.Ltmp53:
	leaq	64(%rsp), %rdi
	callq	hipEventCreate
.Ltmp54:
# %bb.37:
.Ltmp56:
	leaq	56(%rsp), %rdi
	callq	hipEventCreate
.Ltmp57:
# %bb.38:
.Ltmp58:
	leaq	48(%rsp), %rdi
	callq	hipEventCreate
.Ltmp59:
# %bb.39:
	movl	$.Lstr.50, %edi
	callq	puts@PLT
	xorl	%edi, %edi
	callq	time
	movl	%eax, %edi
	callq	srand
	shlq	$30, %r14
	sarq	$30, %r14
	movq	%r14, %rdi
	callq	malloc
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	malloc
	movq	%rax, %r14
	movl	$.Lstr.51, %edi
	callq	puts@PLT
	testl	%r15d, %r15d
	jle	.LBB11_42
# %bb.40:                               # %.lr.ph
	movq	16(%rsp), %rax
	movl	%r15d, %ecx
	xorl	%edx, %edx
.LBB11_41:                              # =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdx,4), %esi
	movl	%esi, (%r14,%rdx,4)
	movl	%esi, (%rbx,%rdx,4)
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	.LBB11_41
.LBB11_42:                              # %._crit_edge
	movl	$10, %edi
	callq	putchar
	movl	$.Lstr.52, %edi
	callq	puts@PLT
	movq	72(%rsp), %rdi
.Ltmp61:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp62:
# %bb.43:
	leal	-1(%r15), %ebp
.Ltmp63:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebp, %edx
	callq	_Z19mergeAndSortRecuGPUPiii
.Ltmp64:
# %bb.44:
	movq	64(%rsp), %rdi
.Ltmp65:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp66:
# %bb.45:
	movl	$10, %edi
	callq	putchar
	movl	$.Lstr.53, %edi
	callq	puts@PLT
	movq	56(%rsp), %rdi
.Ltmp67:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp68:
# %bb.46:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_Z19mergeAndSortRecuCPUPii
	movq	48(%rsp), %rdi
.Ltmp69:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp70:
# %bb.47:
	movl	$.Lstr.54, %edi
	callq	puts@PLT
.Ltmp71:
	callq	hipDeviceSynchronize
.Ltmp72:
# %bb.48:
	movl	$.Lstr.55, %edi
	callq	puts@PLT
	xorl	%eax, %eax
	testl	%ebp, %ebp
	cmovgl	%ebp, %eax
	movq	%rax, %rcx
	negq	%rcx
	movq	$-1, %rdx
.LBB11_49:                              # =>This Inner Loop Header: Depth=1
	leaq	(%rcx,%rdx), %rsi
	cmpq	$-1, %rsi
	je	.LBB11_51
# %bb.50:                               #   in Loop: Header=BB11_49 Depth=1
	movl	4(%rbx,%rdx,4), %edi
	leaq	1(%rdx), %rsi
	cmpl	8(%rbx,%rdx,4), %edi
	movq	%rsi, %rdx
	jle	.LBB11_49
	jmp	.LBB11_52
.LBB11_51:
	movq	%rax, %rsi
.LBB11_52:                              # %_Z9is_sortedPii.exit
	movslq	%ebp, %rax
	cmpq	%rax, %rsi
	jge	.LBB11_54
# %bb.53:
	movl	$.L.str.33, %edi
	jmp	.LBB11_62
.LBB11_54:
	movl	$.Lstr.58, %edi
	callq	puts@PLT
	movl	$.Lstr.57, %edi
	callq	puts@PLT
	cmpl	$2, %r15d
	jge	.LBB11_56
.LBB11_55:                              # %_Z8is_equalPiS_i.exit.thread
	movl	$.Lstr.58, %edi
	callq	puts@PLT
	jmp	.LBB11_63
.LBB11_56:                              # %.lr.ph.preheader.i
	movl	(%rbx), %eax
	cmpl	(%r14), %eax
	jne	.LBB11_61
# %bb.57:                               # %.lr.ph109.preheader
	movl	%ebp, %eax
	movl	$1, %edx
.LBB11_58:                              # %.lr.ph109
                                        # =>This Inner Loop Header: Depth=1
	movq	%rdx, %rcx
	cmpq	%rdx, %rax
	je	.LBB11_60
# %bb.59:                               # %.lr.ph.i
                                        #   in Loop: Header=BB11_58 Depth=1
	movl	(%rbx,%rcx,4), %esi
	leaq	1(%rcx), %rdx
	cmpl	(%r14,%rcx,4), %esi
	je	.LBB11_58
.LBB11_60:                              # %_Z8is_equalPiS_i.exit
	cmpq	%rax, %rcx
	jae	.LBB11_55
.LBB11_61:                              # %.critedge
	movl	$.L.str.32, %edi
.LBB11_62:
	xorl	%eax, %eax
	callq	printf
.LBB11_63:
	movl	$.Lstr.59, %edi
	callq	puts@PLT
	leaq	8(%rsp), %rdi
	movl	$0, (%rdi)
	movq	56(%rsp), %rsi
	movq	48(%rsp), %rdx
.Ltmp74:
	callq	hipEventElapsedTime
.Ltmp75:
# %bb.64:
	cvtss2sd	8(%rsp), %xmm0
	movl	$.L.str.35, %edi
	movb	$1, %al
	callq	printf
	leaq	4(%rsp), %rdi
	movl	$0, (%rdi)
	movq	72(%rsp), %rsi
	movq	64(%rsp), %rdx
.Ltmp77:
	callq	hipEventElapsedTime
.Ltmp78:
# %bb.65:
	xorps	%xmm0, %xmm0
	cvtss2sd	4(%rsp), %xmm0
	movl	$.L.str.36, %edi
	movb	$1, %al
	callq	printf
	movl	$10, %edi
	callq	putchar
	movl	$.Lstr.71, %edi
	callq	puts@PLT
	callq	getchar
	movsbl	%al, %edi
	callq	putchar
	movq	%rbx, %rdi
	callq	free
	movq	%r14, %rdi
	callq	free
	movq	16(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB11_67
# %bb.66:
	callq	_ZdlPv
.LBB11_67:                              # %_ZNSt6vectorIiSaIiEED2Ev.exit
	movq	80(%rsp), %rdi
	leaq	96(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB11_69
# %bb.68:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i77
	callq	_ZdlPv
.LBB11_69:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit79
	leaq	112(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	addq	$632, %rsp                      # imm = 0x278
	.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
.LBB11_70:
	.cfi_def_cfa_offset 688
.Ltmp79:
	jmp	.LBB11_77
.LBB11_71:
.Ltmp76:
	jmp	.LBB11_77
.LBB11_72:
.Ltmp60:
	jmp	.LBB11_77
.LBB11_73:
.Ltmp55:
	jmp	.LBB11_77
.LBB11_74:
.Ltmp48:
	jmp	.LBB11_81
.LBB11_75:
.Ltmp73:
	jmp	.LBB11_77
.LBB11_76:
.Ltmp82:
.LBB11_77:
	movq	%rax, %r14
	movq	16(%rsp), %rdi
	testq	%rdi, %rdi
	jne	.LBB11_79
	jmp	.LBB11_82
.LBB11_78:
.Ltmp34:
	movq	%rax, %r14
	movq	16(%rsp), %rdi
	cmpq	%rbx, %rdi
	je	.LBB11_82
.LBB11_79:
	callq	_ZdlPv
	jmp	.LBB11_82
.LBB11_80:
.Ltmp37:
.LBB11_81:
	movq	%rax, %r14
.LBB11_82:
	movq	80(%rsp), %rdi
	leaq	96(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB11_84
# %bb.83:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i82
	callq	_ZdlPv
.LBB11_84:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit84
	leaq	112(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end11:
	.size	_Z7tabFilev, .Lfunc_end11-_Z7tabFilev
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table11:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp27-.Ltmp0                 #   Call between .Ltmp0 and .Ltmp27
	.uleb128 .Ltmp37-.Lfunc_begin0          #     jumps to .Ltmp37
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp28-.Lfunc_begin0          # >> Call Site 3 <<
	.uleb128 .Ltmp33-.Ltmp28                #   Call between .Ltmp28 and .Ltmp33
	.uleb128 .Ltmp34-.Lfunc_begin0          #     jumps to .Ltmp34
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp35-.Lfunc_begin0          # >> Call Site 4 <<
	.uleb128 .Ltmp36-.Ltmp35                #   Call between .Ltmp35 and .Ltmp36
	.uleb128 .Ltmp37-.Lfunc_begin0          #     jumps to .Ltmp37
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp38-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Ltmp47-.Ltmp38                #   Call between .Ltmp38 and .Ltmp47
	.uleb128 .Ltmp48-.Lfunc_begin0          #     jumps to .Ltmp48
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp49-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp81-.Ltmp49                #   Call between .Ltmp49 and .Ltmp81
	.uleb128 .Ltmp82-.Lfunc_begin0          #     jumps to .Ltmp82
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp51-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp54-.Ltmp51                #   Call between .Ltmp51 and .Ltmp54
	.uleb128 .Ltmp55-.Lfunc_begin0          #     jumps to .Ltmp55
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp56-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp59-.Ltmp56                #   Call between .Ltmp56 and .Ltmp59
	.uleb128 .Ltmp60-.Lfunc_begin0          #     jumps to .Ltmp60
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp61-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp72-.Ltmp61                #   Call between .Ltmp61 and .Ltmp72
	.uleb128 .Ltmp73-.Lfunc_begin0          #     jumps to .Ltmp73
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp74-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Ltmp75-.Ltmp74                #   Call between .Ltmp74 and .Ltmp75
	.uleb128 .Ltmp76-.Lfunc_begin0          #     jumps to .Ltmp76
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp77-.Lfunc_begin0          # >> Call Site 11 <<
	.uleb128 .Ltmp78-.Ltmp77                #   Call between .Ltmp77 and .Ltmp78
	.uleb128 .Ltmp79-.Lfunc_begin0          #     jumps to .Ltmp79
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp78-.Lfunc_begin0          # >> Call Site 12 <<
	.uleb128 .Lfunc_end11-.Ltmp78           #   Call between .Ltmp78 and .Lfunc_end11
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_Z7tabCarsv                     # -- Begin function _Z7tabCarsv
	.type	_Z7tabCarsv,@function
_Z7tabCarsv:                            # @_Z7tabCarsv
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$600, %rsp                      # imm = 0x258
	.cfi_def_cfa_offset 656
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	leaq	80(%rsp), %rbx
	movq	%rbx, %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev
	movq	$-1, %rbp
	leaq	200(%rsp), %r14
	xorl	%r13d, %r13d
	movl	$_ZSt4cout, %r12d
	movq	%rsp, %r15
.LBB12_1:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB12_24 Depth 2
.Ltmp83:
	movl	$.L.str.5, %edi
	callq	system
.Ltmp84:
# %bb.2:                                #   in Loop: Header=BB12_1 Depth=1
.Ltmp85:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.44, %esi
	movl	$42, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp86:
# %bb.3:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
                                        #   in Loop: Header=BB12_1 Depth=1
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
.Ltmp87:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp88:
# %bb.4:                                # %.noexc122
                                        #   in Loop: Header=BB12_1 Depth=1
.Ltmp89:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp90:
# %bb.5:                                # %.noexc123
                                        #   in Loop: Header=BB12_1 Depth=1
.Ltmp91:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp92:
# %bb.6:                                # %_ZNSolsEPFRSoS_E.exit
                                        #   in Loop: Header=BB12_1 Depth=1
.Ltmp93:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.45, %esi
	movl	$13, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp94:
# %bb.7:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit98
                                        #   in Loop: Header=BB12_1 Depth=1
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
.Ltmp95:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp96:
# %bb.8:                                # %.noexc125
                                        #   in Loop: Header=BB12_1 Depth=1
.Ltmp97:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp98:
# %bb.9:                                # %.noexc126
                                        #   in Loop: Header=BB12_1 Depth=1
.Ltmp99:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp100:
# %bb.10:                               # %_ZNSolsEPFRSoS_E.exit99
                                        #   in Loop: Header=BB12_1 Depth=1
.Ltmp101:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.46, %esi
	movl	$11, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp102:
# %bb.11:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit100
                                        #   in Loop: Header=BB12_1 Depth=1
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
.Ltmp103:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp104:
# %bb.12:                               # %.noexc129
                                        #   in Loop: Header=BB12_1 Depth=1
.Ltmp105:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp106:
# %bb.13:                               # %.noexc130
                                        #   in Loop: Header=BB12_1 Depth=1
.Ltmp107:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp108:
# %bb.14:                               # %_ZNSolsEPFRSoS_E.exit101
                                        #   in Loop: Header=BB12_1 Depth=1
	testb	$1, %r13b
	je	.LBB12_19
# %bb.15:                               # %switch.lookup
                                        #   in Loop: Header=BB12_1 Depth=1
	movq	.Lswitch.table._Z7tabCarsv(,%rbp,8), %rsi
	movq	.Lswitch.table._Z7tabCarsv.72(,%rbp,8), %rdx
.Ltmp109:
	movl	$_ZSt4cout, %edi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp110:
# %bb.16:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit106.invoke
                                        #   in Loop: Header=BB12_1 Depth=1
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
.Ltmp111:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp112:
# %bb.17:                               # %.noexc141.invoke
                                        #   in Loop: Header=BB12_1 Depth=1
.Ltmp113:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp114:
# %bb.18:                               # %.noexc142.invoke
                                        #   in Loop: Header=BB12_1 Depth=1
.Ltmp115:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp116:
.LBB12_19:                              # %_ZNSolsEPFRSoS_E.exit107
                                        #   in Loop: Header=BB12_1 Depth=1
.Ltmp117:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.50, %esi
	movl	$62, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp118:
# %bb.20:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit108
                                        #   in Loop: Header=BB12_1 Depth=1
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
.Ltmp119:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp120:
# %bb.21:                               # %.noexc145
                                        #   in Loop: Header=BB12_1 Depth=1
.Ltmp121:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp122:
# %bb.22:                               # %.noexc146
                                        #   in Loop: Header=BB12_1 Depth=1
.Ltmp123:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp124:
# %bb.23:                               # %_ZNSolsEPFRSoS_E.exit109
                                        #   in Loop: Header=BB12_1 Depth=1
.Ltmp125:
	movl	$_ZSt3cin, %edi
	movq	%r15, %rsi
	callq	_ZNSirsERi
.Ltmp126:
.LBB12_24:                              # %.preheader
                                        #   Parent Loop BB12_1 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	callq	getchar
	cmpl	$10, %eax
	jne	.LBB12_24
# %bb.25:                               #   in Loop: Header=BB12_1 Depth=1
	movb	$1, %r13b
	movl	(%rsp), %eax
	cmpl	$1, %eax
	je	.LBB12_29
# %bb.26:                               #   in Loop: Header=BB12_1 Depth=1
	movl	$0, %ebp
	testl	%eax, %eax
	jne	.LBB12_1
# %bb.27:                               #   in Loop: Header=BB12_1 Depth=1
.Ltmp140:
	movl	$.L.str.51, %esi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode
.Ltmp141:
# %bb.28:                               #   in Loop: Header=BB12_1 Depth=1
	movq	%r14, %rdi
	callq	_ZNKSt12__basic_fileIcE7is_openEv
	movl	$1, %ebp
	testb	%al, %al
	je	.LBB12_1
	jmp	.LBB12_36
.LBB12_29:                              #   in Loop: Header=BB12_1 Depth=1
.Ltmp127:
	movl	$.L.str.52, %esi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode
.Ltmp128:
# %bb.30:                               #   in Loop: Header=BB12_1 Depth=1
	movq	%r14, %rdi
	callq	_ZNKSt12__basic_fileIcE7is_openEv
	movl	$2, %ebp
	testb	%al, %al
	je	.LBB12_1
# %bb.31:
.Ltmp129:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.41, %esi
	movl	$17, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp130:
# %bb.32:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit112
	movl	(%rsp), %esi
.Ltmp131:
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
.Ltmp132:
# %bb.33:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp133:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp134:
# %bb.34:                               # %.noexc153
.Ltmp135:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp136:
# %bb.35:                               # %.noexc154
	movl	$2, %r13d
.Ltmp137:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp138:
	jmp	.LBB12_41
.LBB12_36:
.Ltmp143:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.41, %esi
	movl	$17, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp144:
# %bb.37:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit110
	movl	(%rsp), %esi
.Ltmp145:
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
.Ltmp146:
# %bb.38:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp147:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp148:
# %bb.39:                               # %.noexc149
.Ltmp149:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp150:
# %bb.40:                               # %.noexc150
	movl	$1, %r13d
.Ltmp151:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp152:
.LBB12_41:                              # %_ZNSolsEPFRSoS_E.exit111
	movl	$.Lstr.71, %edi
	callq	puts@PLT
	callq	getchar
	movsbl	%al, %edi
	callq	putchar
	movl	$.Lstr.49, %edi
	callq	puts@PLT
	xorps	%xmm0, %xmm0
	leaq	48(%rsp), %r14
	movaps	%xmm0, (%r14)
	movq	$0, 16(%r14)
	leaq	80(%rsp), %r15
	leaq	12(%rsp), %r12
.LBB12_42:                              # %_ZNSt6vectorIiSaIiEE9push_backERKi.exit
                                        # =>This Inner Loop Header: Depth=1
.Ltmp154:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ZNSirsERi
.Ltmp155:
# %bb.43:                               #   in Loop: Header=BB12_42 Depth=1
	movq	(%rax), %rcx
	movq	-24(%rcx), %rcx
	testb	$5, 32(%rax,%rcx)
	movq	56(%rsp), %rbx
	jne	.LBB12_47
# %bb.44:                               #   in Loop: Header=BB12_42 Depth=1
	cmpq	64(%rsp), %rbx
	je	.LBB12_46
# %bb.45:                               #   in Loop: Header=BB12_42 Depth=1
	movl	12(%rsp), %eax
	movl	%eax, (%rbx)
	addq	$4, %rbx
	movq	%rbx, 56(%rsp)
	jmp	.LBB12_42
.LBB12_46:                              #   in Loop: Header=BB12_42 Depth=1
.Ltmp185:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
.Ltmp186:
	jmp	.LBB12_42
.LBB12_47:
	subq	48(%rsp), %rbx
	movq	%rbx, %r14
	shrq	$2, %r14
	movl	$.L.str.53, %edi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	printf
.Ltmp156:
	leaq	40(%rsp), %rdi
	callq	hipEventCreate
.Ltmp157:
# %bb.48:
.Ltmp158:
	leaq	32(%rsp), %rdi
	callq	hipEventCreate
.Ltmp159:
# %bb.49:
.Ltmp161:
	leaq	24(%rsp), %rdi
	callq	hipEventCreate
.Ltmp162:
# %bb.50:
.Ltmp163:
	leaq	16(%rsp), %rdi
	callq	hipEventCreate
.Ltmp164:
# %bb.51:
	movl	$.Lstr.50, %edi
	callq	puts@PLT
	xorl	%edi, %edi
	callq	time
	movl	%eax, %edi
	callq	srand
	shlq	$30, %rbx
	movq	%rbx, %r12
	sarq	$30, %r12
	movq	%r12, %rdi
	callq	malloc
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	malloc
	movq	%rax, %r12
	movl	$.Lstr.51, %edi
	callq	puts@PLT
	testl	%r14d, %r14d
	jle	.LBB12_54
# %bb.52:                               # %.lr.ph
	movq	48(%rsp), %rax
	movl	%r14d, %ecx
	xorl	%edx, %edx
.LBB12_53:                              # =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdx,4), %esi
	movl	%esi, (%r12,%rdx,4)
	movl	%esi, (%r15,%rdx,4)
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	.LBB12_53
.LBB12_54:                              # %._crit_edge
	movl	$10, %edi
	callq	putchar
	movl	$.Lstr.52, %edi
	callq	puts@PLT
	movq	40(%rsp), %rdi
.Ltmp166:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp167:
# %bb.55:
	leal	-1(%r14), %ebp
.Ltmp168:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebp, %edx
	callq	_Z19mergeAndSortRecuGPUPiii
.Ltmp169:
# %bb.56:
	movq	32(%rsp), %rdi
.Ltmp170:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp171:
# %bb.57:
	movl	$10, %edi
	callq	putchar
	movl	$.Lstr.53, %edi
	callq	puts@PLT
	movq	24(%rsp), %rdi
.Ltmp172:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp173:
# %bb.58:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_Z19mergeAndSortRecuCPUPii
	movq	16(%rsp), %rdi
.Ltmp174:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp175:
# %bb.59:
	movl	$.Lstr.54, %edi
	callq	puts@PLT
.Ltmp176:
	callq	hipDeviceSynchronize
.Ltmp177:
# %bb.60:
	movl	$.Lstr.55, %edi
	callq	puts@PLT
	xorl	%eax, %eax
	testl	%ebp, %ebp
	cmovgl	%ebp, %eax
	movq	%rax, %rcx
	negq	%rcx
	movq	$-1, %rdx
.LBB12_61:                              # =>This Inner Loop Header: Depth=1
	leaq	(%rcx,%rdx), %rsi
	cmpq	$-1, %rsi
	je	.LBB12_63
# %bb.62:                               #   in Loop: Header=BB12_61 Depth=1
	movl	4(%r15,%rdx,4), %edi
	leaq	1(%rdx), %rsi
	cmpl	8(%r15,%rdx,4), %edi
	movq	%rsi, %rdx
	jle	.LBB12_61
	jmp	.LBB12_64
.LBB12_63:
	movq	%rax, %rsi
.LBB12_64:                              # %_Z9is_sortedPii.exit
	movslq	%ebp, %rax
	cmpq	%rax, %rsi
	jge	.LBB12_66
# %bb.65:
	movl	$.L.str.33, %edi
	jmp	.LBB12_74
.LBB12_66:
	movl	$.Lstr.58, %edi
	callq	puts@PLT
	movl	$.Lstr.57, %edi
	callq	puts@PLT
	cmpl	$2, %r14d
	jge	.LBB12_68
.LBB12_67:                              # %_Z8is_equalPiS_i.exit.thread
	movl	$.Lstr.58, %edi
	callq	puts@PLT
	jmp	.LBB12_75
.LBB12_68:                              # %.lr.ph.preheader.i
	movl	(%r15), %eax
	cmpl	(%r12), %eax
	jne	.LBB12_73
# %bb.69:                               # %.lr.ph168.preheader
	movl	%ebp, %eax
	movl	$1, %edx
.LBB12_70:                              # %.lr.ph168
                                        # =>This Inner Loop Header: Depth=1
	movq	%rdx, %rcx
	cmpq	%rdx, %rax
	je	.LBB12_72
# %bb.71:                               # %.lr.ph.i
                                        #   in Loop: Header=BB12_70 Depth=1
	movl	(%r15,%rcx,4), %esi
	leaq	1(%rcx), %rdx
	cmpl	(%r12,%rcx,4), %esi
	je	.LBB12_70
.LBB12_72:                              # %_Z8is_equalPiS_i.exit
	cmpq	%rax, %rcx
	jae	.LBB12_67
.LBB12_73:                              # %.critedge
	movl	$.L.str.32, %edi
.LBB12_74:
	xorl	%eax, %eax
	callq	printf
.LBB12_75:
	movl	$.Lstr.59, %edi
	callq	puts@PLT
	leaq	8(%rsp), %rdi
	movl	$0, (%rdi)
	movq	24(%rsp), %rsi
	movq	16(%rsp), %rdx
.Ltmp179:
	callq	hipEventElapsedTime
.Ltmp180:
# %bb.76:
	cvtss2sd	8(%rsp), %xmm0
	movl	$.L.str.35, %edi
	movb	$1, %al
	callq	printf
	leaq	4(%rsp), %rdi
	movl	$0, (%rdi)
	movq	40(%rsp), %rsi
	movq	32(%rsp), %rdx
.Ltmp182:
	callq	hipEventElapsedTime
.Ltmp183:
# %bb.77:
	xorps	%xmm0, %xmm0
	cvtss2sd	4(%rsp), %xmm0
	movl	$.L.str.36, %edi
	movb	$1, %al
	callq	printf
	movl	$10, %edi
	callq	putchar
	cmpl	$2, %r13d
	je	.LBB12_81
# %bb.78:
	cmpl	$1, %r13d
	jne	.LBB12_84
# %bb.79:
	movl	$.Lstr.60, %edi
	callq	puts@PLT
	movslq	%r14d, %rax
	movabsq	$-38654705664, %rcx             # imm = 0xFFFFFFF700000000
	addq	%rcx, %rbx
	sarq	$32, %rbx
	leaq	1(%rax), %r13
	subl	%eax, %r14d
	incl	%r14d
.LBB12_80:                              # =>This Inner Loop Header: Depth=1
	movl	-8(%r12,%r13,4), %edx
	movl	$.L.str.55, %edi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	printf
	decq	%r13
	incl	%r14d
	cmpq	%rbx, %r13
	jg	.LBB12_80
	jmp	.LBB12_83
.LBB12_81:
	movl	$.Lstr.61, %edi
	callq	puts@PLT
	movslq	%r14d, %rax
	movabsq	$-38654705664, %rcx             # imm = 0xFFFFFFF700000000
	addq	%rcx, %rbx
	sarq	$32, %rbx
	leaq	1(%rax), %r13
	subl	%eax, %r14d
	incl	%r14d
.LBB12_82:                              # =>This Inner Loop Header: Depth=1
	movl	-8(%r12,%r13,4), %edx
	movl	$.L.str.57, %edi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	printf
	decq	%r13
	incl	%r14d
	cmpq	%rbx, %r13
	jg	.LBB12_82
.LBB12_83:                              # %.sink.split
	movl	$10, %edi
	callq	putchar
.LBB12_84:
	movl	$10, %edi
	callq	putchar
	movl	$.Lstr.71, %edi
	callq	puts@PLT
	callq	getchar
	movsbl	%al, %edi
	callq	putchar
	movq	%r15, %rdi
	callq	free
	movq	%r12, %rdi
	callq	free
	movq	48(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB12_86
# %bb.85:
	callq	_ZdlPv
.LBB12_86:                              # %_ZNSt6vectorIiSaIiEED2Ev.exit
	leaq	80(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	addq	$600, %rsp                      # imm = 0x258
	.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
.LBB12_87:
	.cfi_def_cfa_offset 656
.Ltmp184:
	jmp	.LBB12_95
.LBB12_88:
.Ltmp181:
	jmp	.LBB12_95
.LBB12_89:
.Ltmp165:
	jmp	.LBB12_95
.LBB12_90:
.Ltmp160:
	jmp	.LBB12_95
.LBB12_91:
.Ltmp153:
	jmp	.LBB12_98
.LBB12_92:
.Ltmp139:
	jmp	.LBB12_98
.LBB12_93:
.Ltmp178:
	jmp	.LBB12_95
.LBB12_94:
.Ltmp187:
.LBB12_95:
	movq	%rax, %rbx
	movq	48(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB12_99
# %bb.96:
	callq	_ZdlPv
	jmp	.LBB12_99
.LBB12_97:
.Ltmp142:
.LBB12_98:
	movq	%rax, %rbx
.LBB12_99:
	leaq	80(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end12:
	.size	_Z7tabCarsv, .Lfunc_end12-_Z7tabCarsv
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table12:
.Lexception1:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end1-.Lcst_begin1
.Lcst_begin1:
	.uleb128 .Lfunc_begin1-.Lfunc_begin1    # >> Call Site 1 <<
	.uleb128 .Ltmp83-.Lfunc_begin1          #   Call between .Lfunc_begin1 and .Ltmp83
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp83-.Lfunc_begin1          # >> Call Site 2 <<
	.uleb128 .Ltmp128-.Ltmp83               #   Call between .Ltmp83 and .Ltmp128
	.uleb128 .Ltmp142-.Lfunc_begin1         #     jumps to .Ltmp142
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp129-.Lfunc_begin1         # >> Call Site 3 <<
	.uleb128 .Ltmp138-.Ltmp129              #   Call between .Ltmp129 and .Ltmp138
	.uleb128 .Ltmp139-.Lfunc_begin1         #     jumps to .Ltmp139
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp143-.Lfunc_begin1         # >> Call Site 4 <<
	.uleb128 .Ltmp152-.Ltmp143              #   Call between .Ltmp143 and .Ltmp152
	.uleb128 .Ltmp153-.Lfunc_begin1         #     jumps to .Ltmp153
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp154-.Lfunc_begin1         # >> Call Site 5 <<
	.uleb128 .Ltmp186-.Ltmp154              #   Call between .Ltmp154 and .Ltmp186
	.uleb128 .Ltmp187-.Lfunc_begin1         #     jumps to .Ltmp187
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp156-.Lfunc_begin1         # >> Call Site 6 <<
	.uleb128 .Ltmp159-.Ltmp156              #   Call between .Ltmp156 and .Ltmp159
	.uleb128 .Ltmp160-.Lfunc_begin1         #     jumps to .Ltmp160
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp161-.Lfunc_begin1         # >> Call Site 7 <<
	.uleb128 .Ltmp164-.Ltmp161              #   Call between .Ltmp161 and .Ltmp164
	.uleb128 .Ltmp165-.Lfunc_begin1         #     jumps to .Ltmp165
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp166-.Lfunc_begin1         # >> Call Site 8 <<
	.uleb128 .Ltmp177-.Ltmp166              #   Call between .Ltmp166 and .Ltmp177
	.uleb128 .Ltmp178-.Lfunc_begin1         #     jumps to .Ltmp178
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp179-.Lfunc_begin1         # >> Call Site 9 <<
	.uleb128 .Ltmp180-.Ltmp179              #   Call between .Ltmp179 and .Ltmp180
	.uleb128 .Ltmp181-.Lfunc_begin1         #     jumps to .Ltmp181
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp182-.Lfunc_begin1         # >> Call Site 10 <<
	.uleb128 .Ltmp183-.Ltmp182              #   Call between .Ltmp182 and .Ltmp183
	.uleb128 .Ltmp184-.Lfunc_begin1         #     jumps to .Ltmp184
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp183-.Lfunc_begin1         # >> Call Site 11 <<
	.uleb128 .Lfunc_end12-.Ltmp183          #   Call between .Ltmp183 and .Lfunc_end12
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_Z8sousMenuv                    # -- Begin function _Z8sousMenuv
	.type	_Z8sousMenuv,@function
_Z8sousMenuv:                           # @_Z8sousMenuv
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	xorl	%r15d, %r15d
	movl	$_ZSt4cout, %r14d
	leaq	12(%rsp), %rbx
.LBB13_1:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB13_4 Depth 2
                                        #     Child Loop BB13_8 Depth 2
	movl	$.L.str.5, %edi
	callq	system
	movl	$_ZSt4cout, %edi
	movl	$.L.str.58, %esi
	movl	$26, %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	$_ZSt4cout, %edi
	movl	$.L.str.59, %esi
	movl	$9, %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	$_ZSt4cout, %edi
	movl	$.L.str.60, %esi
	movl	$6, %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	$_ZSt4cout, %edi
	movl	$.L.str.61, %esi
	movl	$25, %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	$_ZSt4cout, %edi
	movl	$.L.str.62, %esi
	movl	$32, %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	$_ZSt4cout, %edi
	movl	$.L.str.63, %esi
	movl	$44, %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	$_ZSt4cout, %edi
	movl	$.L.str.64, %esi
	movl	$23, %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
	testb	$1, %r15b
	je	.LBB13_3
# %bb.2:                                #   in Loop: Header=BB13_1 Depth=1
	movl	$_ZSt4cout, %edi
	movl	$.L.str.65, %esi
	movl	$29, %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
.LBB13_3:                               #   in Loop: Header=BB13_1 Depth=1
	movl	$_ZSt4cout, %edi
	movl	$.L.str.66, %esi
	movl	$71, %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	$_ZSt3cin, %edi
	movq	%rbx, %rsi
	callq	_ZNSirsERi
.LBB13_4:                               #   Parent Loop BB13_1 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	callq	getchar
	cmpl	$10, %eax
	jne	.LBB13_4
# %bb.5:                                #   in Loop: Header=BB13_1 Depth=1
	movl	12(%rsp), %eax
	movb	$1, %r15b
	cmpq	$5, %rax
	ja	.LBB13_1
# %bb.6:                                #   in Loop: Header=BB13_1 Depth=1
	jmpq	*.LJTI13_0(,%rax,8)
.LBB13_7:                               #   in Loop: Header=BB13_1 Depth=1
	movl	$.L.str.5, %edi
	callq	system
	movl	$_ZSt4cout, %edi
	movl	$.L.str.67, %esi
	movl	$27, %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	$_ZSt4cout, %edi
	movl	$.L.str.68, %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	$_ZSt4cout, %edi
	movl	$.L.str.69, %esi
	movl	$109, %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	$_ZSt3cin, %edi
	movq	%rbx, %rsi
	callq	_ZNSirsERi
.LBB13_8:                               #   Parent Loop BB13_1 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	callq	getchar
	cmpl	$10, %eax
	jne	.LBB13_8
# %bb.9:                                #   in Loop: Header=BB13_1 Depth=1
	xorl	%r15d, %r15d
	cmpl	$1, 12(%rsp)
	je	.LBB13_1
	jmp	.LBB13_10
.LBB13_14:                              #   in Loop: Header=BB13_1 Depth=1
	callq	_Z7tabCarsv
	xorl	%r15d, %r15d
	jmp	.LBB13_1
.LBB13_12:                              #   in Loop: Header=BB13_1 Depth=1
	callq	_Z9tabRandomv
	xorl	%r15d, %r15d
	jmp	.LBB13_1
.LBB13_13:                              #   in Loop: Header=BB13_1 Depth=1
	callq	_Z7tabFilev
	xorl	%r15d, %r15d
	jmp	.LBB13_1
.LBB13_11:                              #   in Loop: Header=BB13_1 Depth=1
	movl	$.L.str.5, %edi
	callq	system
	movl	$_ZSt4cout, %edi
	movl	$.L.str.60, %esi
	movl	$6, %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	$_ZSt4cout, %edi
	movl	$.L.str.74, %esi
	movl	$78, %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
	xorl	%r15d, %r15d
	movl	$_ZSt4cout, %edi
	movl	$.L.str.75, %esi
	xorl	%edx, %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	$_ZSt4cout, %edi
	movl	$.L.str.75, %esi
	xorl	%edx, %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	$_ZSt4cout, %edi
	movl	$.L.str.76, %esi
	movl	$100, %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	$_ZSt4cout, %edi
	movl	$.L.str.75, %esi
	xorl	%edx, %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	$_ZSt4cout, %edi
	movl	$.L.str.77, %esi
	movl	$13, %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	$_ZSt4cout, %edi
	movl	$.L.str.78, %esi
	movl	$81, %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	$_ZSt4cout, %edi
	movl	$.L.str.79, %esi
	movl	$92, %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	$_ZSt4cout, %edi
	movl	$.L.str.80, %esi
	movl	$71, %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	$_ZSt4cout, %edi
	movl	$.L.str.81, %esi
	movl	$61, %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	$_ZSt4cout, %edi
	movl	$.L.str.82, %esi
	movl	$92, %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	$_ZSt4cout, %edi
	movl	$.L.str.83, %esi
	movl	$92, %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	$_ZSt4cout, %edi
	movl	$.L.str.75, %esi
	xorl	%edx, %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	$_ZSt4cout, %edi
	movl	$.L.str.75, %esi
	xorl	%edx, %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	$_ZSt4cout, %edi
	movl	$.L.str.75, %esi
	xorl	%edx, %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	$2, %edi
	callq	sleep
	movl	$.Lstr.71, %edi
	callq	puts@PLT
	callq	getchar
	movsbl	%al, %edi
	callq	putchar
	jmp	.LBB13_1
.LBB13_15:                              # %.loopexit.loopexit
	movl	$1, %eax
	jmp	.LBB13_16
.LBB13_10:
	movl	$.L.str.5, %edi
	callq	system
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str.70, %esi
	movl	$19, %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
	xorl	%edi, %edi
	callq	sleep
	movl	$.L.str.5, %edi
	callq	system
	movl	$_ZSt4cout, %edi
	movl	$.L.str.70, %esi
	movl	$19, %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
	movl	$_ZSt4cout, %edi
	movl	$.L.str.71, %esi
	movl	$1, %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
	movl	$1, %edi
	callq	sleep
	movl	$.L.str.5, %edi
	callq	system
	movl	$_ZSt4cout, %edi
	movl	$.L.str.70, %esi
	movl	$19, %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
	movl	$_ZSt4cout, %edi
	movl	$.L.str.72, %esi
	movl	$3, %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
	movl	$1, %edi
	callq	sleep
	movl	$.L.str.5, %edi
	callq	system
	movl	$_ZSt4cout, %edi
	movl	$.L.str.70, %esi
	movl	$19, %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
	movl	$_ZSt4cout, %edi
	movl	$.L.str.73, %esi
	movl	$5, %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
	movl	$1, %edi
	callq	sleep
	movl	$.L.str.5, %edi
	callq	system
	movl	$2, %eax
.LBB13_16:                              # %.loopexit
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end13:
	.size	_Z8sousMenuv, .Lfunc_end13-_Z8sousMenuv
	.cfi_endproc
	.section	.rodata,"a",@progbits
	.p2align	3, 0x0
.LJTI13_0:
	.quad	.LBB13_7
	.quad	.LBB13_11
	.quad	.LBB13_12
	.quad	.LBB13_13
	.quad	.LBB13_14
	.quad	.LBB13_15
                                        # -- End function
	.text
	.globl	_Z13menuPrincipalv              # -- Begin function _Z13menuPrincipalv
	.type	_Z13menuPrincipalv,@function
_Z13menuPrincipalv:                     # @_Z13menuPrincipalv
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	xorl	%r15d, %r15d
	movl	$_ZSt4cout, %r14d
	leaq	12(%rsp), %rbx
.LBB14_1:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB14_4 Depth 2
                                        #     Child Loop BB14_9 Depth 2
	movl	$.L.str.5, %edi
	callq	system
	movl	$_ZSt4cout, %edi
	movl	$.L.str.84, %esi
	movl	$14, %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	$_ZSt4cout, %edi
	movl	$.L.str.59, %esi
	movl	$9, %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	$_ZSt4cout, %edi
	movl	$.L.str.60, %esi
	movl	$6, %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	$_ZSt4cout, %edi
	movl	$.L.str.85, %esi
	movl	$28, %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	$_ZSt4cout, %edi
	movl	$.L.str.86, %esi
	movl	$7, %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
	cmpl	$1, %r15d
	jne	.LBB14_3
# %bb.2:                                #   in Loop: Header=BB14_1 Depth=1
	movl	$_ZSt4cout, %edi
	movl	$.L.str.65, %esi
	movl	$29, %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
.LBB14_3:                               #   in Loop: Header=BB14_1 Depth=1
	movl	$_ZSt4cout, %edi
	movl	$.L.str.87, %esi
	movl	$71, %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	$_ZSt3cin, %edi
	movq	%rbx, %rsi
	callq	_ZNSirsERi
.LBB14_4:                               #   Parent Loop BB14_1 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	callq	getchar
	cmpl	$10, %eax
	jne	.LBB14_4
# %bb.5:                                #   in Loop: Header=BB14_1 Depth=1
	movl	12(%rsp), %eax
	cmpq	$3, %rax
	ja	.LBB14_6
# %bb.7:                                #   in Loop: Header=BB14_1 Depth=1
	jmpq	*.LJTI14_0(,%rax,8)
.LBB14_8:                               #   in Loop: Header=BB14_1 Depth=1
	movl	$.L.str.5, %edi
	callq	system
	movl	$_ZSt4cout, %edi
	movl	$.L.str.67, %esi
	movl	$27, %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	$_ZSt4cout, %edi
	movl	$.L.str.68, %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	$_ZSt4cout, %edi
	movl	$.L.str.69, %esi
	movl	$109, %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	$_ZSt3cin, %edi
	movq	%rbx, %rsi
	callq	_ZNSirsERi
.LBB14_9:                               #   Parent Loop BB14_1 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	callq	getchar
	cmpl	$10, %eax
	jne	.LBB14_9
# %bb.10:                               #   in Loop: Header=BB14_1 Depth=1
	xorl	%r15d, %r15d
	cmpl	$1, 12(%rsp)
	movl	$0, %ecx
	je	.LBB14_16
	jmp	.LBB14_11
.LBB14_13:                              #   in Loop: Header=BB14_1 Depth=1
	callq	_Z8sousMenuv
	xorl	%ecx, %ecx
	cmpl	$2, %eax
	sete	%cl
	xorl	%r15d, %r15d
	jmp	.LBB14_16
.LBB14_14:                              #   in Loop: Header=BB14_1 Depth=1
	callq	_Z5introv
	xorl	%r15d, %r15d
	jmp	.LBB14_15
.LBB14_12:                              #   in Loop: Header=BB14_1 Depth=1
	movl	$.L.str.5, %edi
	callq	system
	movl	$_ZSt4cout, %edi
	movl	$.L.str.60, %esi
	movl	$6, %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	$_ZSt4cout, %edi
	movl	$.L.str.89, %esi
	movl	$79, %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
	xorl	%r15d, %r15d
	movl	$_ZSt4cout, %edi
	movl	$.L.str.75, %esi
	xorl	%edx, %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	$_ZSt4cout, %edi
	movl	$.L.str.75, %esi
	xorl	%edx, %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	$_ZSt4cout, %edi
	movl	$.L.str.90, %esi
	movl	$101, %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	$_ZSt4cout, %edi
	movl	$.L.str.75, %esi
	xorl	%edx, %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	$2, %edi
	callq	sleep
	movl	$.Lstr.71, %edi
	callq	puts@PLT
	callq	getchar
	movsbl	%al, %edi
	callq	putchar
.LBB14_15:                              #   in Loop: Header=BB14_1 Depth=1
	xorl	%ecx, %ecx
	jmp	.LBB14_16
.LBB14_6:                               #   in Loop: Header=BB14_1 Depth=1
	xorl	%ecx, %ecx
	movl	$1, %r15d
.LBB14_16:                              #   in Loop: Header=BB14_1 Depth=1
	testl	%ecx, %ecx
	je	.LBB14_1
.LBB14_17:                              # %.loopexit
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB14_11:                              # %.thread
	.cfi_def_cfa_offset 48
	movl	$.L.str.5, %edi
	callq	system
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str.88, %esi
	movl	$20, %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
	xorl	%edi, %edi
	callq	sleep
	movl	$.L.str.5, %edi
	callq	system
	movl	$_ZSt4cout, %edi
	movl	$.L.str.88, %esi
	movl	$20, %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
	movl	$_ZSt4cout, %edi
	movl	$.L.str.71, %esi
	movl	$1, %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
	movl	$1, %edi
	callq	sleep
	movl	$.L.str.5, %edi
	callq	system
	movl	$_ZSt4cout, %edi
	movl	$.L.str.88, %esi
	movl	$20, %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
	movl	$_ZSt4cout, %edi
	movl	$.L.str.72, %esi
	movl	$3, %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
	movl	$1, %edi
	callq	sleep
	movl	$.L.str.5, %edi
	callq	system
	movl	$_ZSt4cout, %edi
	movl	$.L.str.88, %esi
	movl	$20, %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
	movl	$_ZSt4cout, %edi
	movl	$.L.str.73, %esi
	movl	$5, %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
	movl	$1, %edi
	callq	sleep
	movl	$.L.str.5, %edi
	callq	system
	jmp	.LBB14_17
.Lfunc_end14:
	.size	_Z13menuPrincipalv, .Lfunc_end14-_Z13menuPrincipalv
	.cfi_endproc
	.section	.rodata,"a",@progbits
	.p2align	3, 0x0
.LJTI14_0:
	.quad	.LBB14_8
	.quad	.LBB14_12
	.quad	.LBB14_13
	.quad	.LBB14_14
                                        # -- End function
	.text
	.globl	_Z3endv                         # -- Begin function _Z3endv
	.type	_Z3endv,@function
_Z3endv:                                # @_Z3endv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movl	$.L.str.5, %edi
	callq	system
	movl	$.Lstr.67, %edi
	callq	puts@PLT
	movl	$.Lstr.68, %edi
	callq	puts@PLT
	movl	$.Lstr.69, %edi
	callq	puts@PLT
	movl	$.Lstr.70, %edi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	puts@PLT                        # TAILCALL
.Lfunc_end15:
	.size	_Z3endv, .Lfunc_end15-_Z3endv
	.cfi_endproc
                                        # -- End function
	.globl	_Z7preludev                     # -- Begin function _Z7preludev
	.type	_Z7preludev,@function
_Z7preludev:                            # @_Z7preludev
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str.90, %esi
	movl	$101, %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
	movl	$_ZSt4cout, %edi
	movl	$.L.str.75, %esi
	xorl	%edx, %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
	movl	$2, %edi
	callq	sleep
	movl	$.Lstr.71, %edi
	callq	puts@PLT
	callq	getchar
	movsbl	%al, %edi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	putchar                         # TAILCALL
.Lfunc_end16:
	.size	_Z7preludev, .Lfunc_end16-_Z7preludev
	.cfi_endproc
                                        # -- End function
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movl	$.L.str.93, %edi
	movl	$.L.str.94, %esi
	callq	fopen
	testq	%rax, %rax
	je	.LBB17_1
# %bb.2:
	movq	%rax, %rdi
	callq	fclose
	callq	_Z10introShortv
	jmp	.LBB17_3
.LBB17_1:
	callq	_Z5introv
	callq	_Z7preludev
	movl	$.L.str.93, %edi
	movl	$.L.str.95, %esi
	callq	fopen
	movq	%rax, %rbx
	movl	$49, %edi
	movq	%rax, %rsi
	callq	fputc@PLT
	movq	%rbx, %rdi
	callq	fclose
.LBB17_3:
	callq	_Z13menuPrincipalv
	callq	_Z3endv
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end17:
	.size	main, .Lfunc_end17-main
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,"axG",@progbits,_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,comdat
	.weak	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_ # -- Begin function _ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_,@function
_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_: # @_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.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	%rdx, (%rsp)                    # 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.98, %edx
	callq	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	movq	(%rbx), %r13
	movq	8(%rbx), %r15
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	subq	%r13, %r12
	movq	%r12, %r14
	sarq	$2, %r14
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB18_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIiE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB18_3
.LBB18_1:
	xorl	%ebp, %ebp
.LBB18_3:                               # %_ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm.exit
	movq	(%rsp), %rax                    # 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, (%rbp,%r14,4)
	testq	%r12, %r12
	jle	.LBB18_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB18_5:                               # %_ZNSt6vectorIiSaIiEE11_S_relocateEPiS2_S2_RS0_.exit
	addq	%rbp, %r12
	addq	$4, %r12
	movq	8(%rsp), %rsi                   # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB18_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB18_7:                               # %_ZNSt6vectorIiSaIiEE11_S_relocateEPiS2_S2_RS0_.exit16
	testq	%r13, %r13
	je	.LBB18_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB18_9:                               # %_ZNSt12_Vector_baseIiSaIiEE13_M_deallocateEPim.exit
	addq	%r15, %r12
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(,%rax,4), %rax
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end18:
	.size	_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_, .Lfunc_end18-_ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc,@function
_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc: # @_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$2305843009213693951, %rcx      # imm = 0x1FFFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$2, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB19_2
# %bb.1:
	cmpq	%rsi, %r8
	cmovaq	%r8, %rsi
	leaq	(%rsi,%r8), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%r8, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB19_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end19:
	.size	_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc, .Lfunc_end19-_ZNKSt6vectorIiSaIiEE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorIiE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorIiE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorIiE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorIiE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorIiE8allocateEmPKv,@function
_ZNSt15__new_allocatorIiE8allocateEmPKv: # @_ZNSt15__new_allocatorIiE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$61, %rax
	jne	.LBB20_1
# %bb.3:
	shlq	$2, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB20_1:
	.cfi_def_cfa_offset 16
	shrq	$62, %rsi
	je	.LBB20_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB20_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end20:
	.size	_ZNSt15__new_allocatorIiE8allocateEmPKv, .Lfunc_end20-_ZNSt15__new_allocatorIiE8allocateEmPKv
	.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	.LBB21_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rdi
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB21_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z16partitionningGPUPiiS_iS_, %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_end21:
	.size	__hip_module_ctor, .Lfunc_end21-__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	.LBB22_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
.LBB22_2:
	retq
.Lfunc_end22:
	.size	__hip_module_dtor, .Lfunc_end22-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z16partitionningGPUPiiS_iS_,@object # @_Z16partitionningGPUPiiS_iS_
	.section	.rodata,"a",@progbits
	.globl	_Z16partitionningGPUPiiS_iS_
	.p2align	3, 0x0
_Z16partitionningGPUPiiS_iS_:
	.quad	_Z31__device_stub__partitionningGPUPiiS_iS_
	.size	_Z16partitionningGPUPiiS_iS_, 8

	.type	.L.str.1,@object                # @.str.1
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.1:
	.asciz	"[Error] error1 %d (Cpu vers Gpu)\n"
	.size	.L.str.1, 34

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"[Error] error2 %d (Cpu vers Gpu)\n"
	.size	.L.str.2, 34

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"\nCall GPUpartitionning NB %d NTPB %d na %d nb %d\n"
	.size	.L.str.3, 50

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"[Error] error3 %d (Gpu vers cpu)\n"
	.size	.L.str.4, 34

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"clear"
	.size	.L.str.5, 6

	.type	.L.str.20,@object               # @.str.20
.L.str.20:
	.asciz	"Test sur tableau random"
	.size	.L.str.20, 24

	.type	.L.str.21,@object               # @.str.21
.L.str.21:
	.asciz	"[Erreur] Entr\303\251e non valide ! (entier positif)"
	.size	.L.str.21, 47

	.type	.L.str.22,@object               # @.str.22
.L.str.22:
	.asciz	"Entrer la taille du tableau puis valider avec la touche ENTREE"
	.size	.L.str.22, 63

	.type	.L.str.23,@object               # @.str.23
.L.str.23:
	.asciz	"Vous avez entr\303\251 %d\n"
	.size	.L.str.23, 21

	.type	.L.str.32,@object               # @.str.32
.L.str.32:
	.asciz	"[error] T_gpu mal trie"
	.size	.L.str.32, 23

	.type	.L.str.33,@object               # @.str.33
.L.str.33:
	.asciz	"[error] T_cpu mal trie"
	.size	.L.str.33, 23

	.type	.L.str.35,@object               # @.str.35
.L.str.35:
	.asciz	"\nTime GPU : %f ms\n"
	.size	.L.str.35, 19

	.type	.L.str.36,@object               # @.str.36
.L.str.36:
	.asciz	"Time CPU : %f ms\n"
	.size	.L.str.36, 18

	.type	.L.str.37,@object               # @.str.37
.L.str.37:
	.asciz	"Lecture \303\240 partir d'un fichier"
	.size	.L.str.37, 31

	.type	.L.str.38,@object               # @.str.38
.L.str.38:
	.asciz	"[Erreur] Entr\303\251e non valide ! Le fichier doit se trouver dans le repertoire courant ex : exemple.txt et il doit utiliser des retours \303\240 la ligne en s\303\251parateur"
	.size	.L.str.38, 160

	.type	.L.str.39,@object               # @.str.39
.L.str.39:
	.asciz	"Entrer le nom du fichier puis valider avec la touche ENTREE"
	.size	.L.str.39, 60

	.type	.L.str.40,@object               # @.str.40
.L.str.40:
	.asciz	"../data/"
	.size	.L.str.40, 9

	.type	.L.str.41,@object               # @.str.41
.L.str.41:
	.asciz	"Vous avez entr\303\251 "
	.size	.L.str.41, 18

	.type	.L.str.43,@object               # @.str.43
.L.str.43:
	.asciz	"%d elements lues\n"
	.size	.L.str.43, 18

	.type	.L.str.44,@object               # @.str.44
.L.str.44:
	.asciz	"Exemple d'application donn\303\251es automobiles"
	.size	.L.str.44, 43

	.type	.L.str.45,@object               # @.str.45
.L.str.45:
	.asciz	"0\tTop 10 Prix"
	.size	.L.str.45, 14

	.type	.L.str.46,@object               # @.str.46
.L.str.46:
	.asciz	"1\tTop 10 Km"
	.size	.L.str.46, 12

	.type	.L.str.47,@object               # @.str.47
.L.str.47:
	.asciz	"[Erreur] Entr\303\251e non valide ! choisir une option 1 ou 2"
	.size	.L.str.47, 56

	.type	.L.str.48,@object               # @.str.48
.L.str.48:
	.asciz	"[Erreur] Fichier price.txt manquant! Lancer le script doc.py"
	.size	.L.str.48, 61

	.type	.L.str.49,@object               # @.str.49
.L.str.49:
	.asciz	"[Erreur] Fichier kilometer.txt manquant! Lancer le script doc.py"
	.size	.L.str.49, 65

	.type	.L.str.50,@object               # @.str.50
.L.str.50:
	.asciz	"Entrer votre choix (0 ou 1) puis valider avec la touche ENTREE"
	.size	.L.str.50, 63

	.type	.L.str.51,@object               # @.str.51
.L.str.51:
	.asciz	"../data/price.txt"
	.size	.L.str.51, 18

	.type	.L.str.52,@object               # @.str.52
.L.str.52:
	.asciz	"../data/kilometer.txt"
	.size	.L.str.52, 22

	.type	.L.str.53,@object               # @.str.53
.L.str.53:
	.asciz	"%d elements lus\n"
	.size	.L.str.53, 17

	.type	.L.str.55,@object               # @.str.55
.L.str.55:
	.asciz	"[%d] %d Euros\n"
	.size	.L.str.55, 15

	.type	.L.str.57,@object               # @.str.57
.L.str.57:
	.asciz	"[%d] %d Km\n"
	.size	.L.str.57, 12

	.type	.L.str.58,@object               # @.str.58
.L.str.58:
	.asciz	"Tester l'algorithme de tri"
	.size	.L.str.58, 27

	.type	.L.str.59,@object               # @.str.59
.L.str.59:
	.asciz	"0\tQuitter"
	.size	.L.str.59, 10

	.type	.L.str.60,@object               # @.str.60
.L.str.60:
	.asciz	"1\tHelp"
	.size	.L.str.60, 7

	.type	.L.str.61,@object               # @.str.61
.L.str.61:
	.asciz	"2\tTest sur tableau random"
	.size	.L.str.61, 26

	.type	.L.str.62,@object               # @.str.62
.L.str.62:
	.asciz	"3\tLecture \303\240 partir d'un fichier"
	.size	.L.str.62, 33

	.type	.L.str.63,@object               # @.str.63
.L.str.63:
	.asciz	"4\tExemple d'application donn\303\251es automobiles"
	.size	.L.str.63, 45

	.type	.L.str.64,@object               # @.str.64
.L.str.64:
	.asciz	"5\tRetour menu principal"
	.size	.L.str.64, 24

	.type	.L.str.65,@object               # @.str.65
.L.str.65:
	.asciz	"[Erreur] Entr\303\251e non valide !"
	.size	.L.str.65, 30

	.type	.L.str.66,@object               # @.str.66
.L.str.66:
	.asciz	"Appuyer sur une touche entre 0 et 5  puis valider avec la touche ENTREE"
	.size	.L.str.66, 72

	.type	.L.str.67,@object               # @.str.67
.L.str.67:
	.asciz	"Vous avez choisi de quitter"
	.size	.L.str.67, 28

	.type	.L.str.68,@object               # @.str.68
.L.str.68:
	.asciz	"Etes vous s\303\273r?"
	.size	.L.str.68, 16

	.type	.L.str.69,@object               # @.str.69
.L.str.69:
	.asciz	"Appuyer sur 1 pour revenir au Menu principal sinon une touche pour quitter puis valider avec la touche ENTREE"
	.size	.L.str.69, 110

	.type	.L.str.70,@object               # @.str.70
.L.str.70:
	.asciz	"Merci et \303\240 bientot"
	.size	.L.str.70, 20

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

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

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

	.type	.L.str.74,@object               # @.str.74
.L.str.74:
	.asciz	"Merci d'utiliser exclusivement les CHIFFRES pour les selections dans les menus"
	.size	.L.str.74, 79

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

	.type	.L.str.76,@object               # @.str.76
.L.str.76:
	.asciz	"Naviguer dans les menus pour tester toutes nos implementations de tri merge and sort sur CPU et GPU."
	.size	.L.str.76, 101

	.type	.L.str.77,@object               # @.str.77
.L.str.77:
	.asciz	"Utilisation :"
	.size	.L.str.77, 14

	.type	.L.str.78,@object               # @.str.78
.L.str.78:
	.asciz	"- Test sur tableau random : g\303\251n\303\250re al\303\251atoirement un tableau d'entier et le tri"
	.size	.L.str.78, 82

	.type	.L.str.79,@object               # @.str.79
.L.str.79:
	.asciz	"- Lecture \303\240 partir d'un fichier : lit \303\240 partir d'un fichier un tableau d'entier et le tri."
	.size	.L.str.79, 93

	.type	.L.str.80,@object               # @.str.80
.L.str.80:
	.asciz	"  Le fichier doit \303\252tre \303\251crit de la meme mani\303\250re que data/exemple.txt"
	.size	.L.str.80, 72

	.type	.L.str.81,@object               # @.str.81
.L.str.81:
	.asciz	"  On peut utiliser script/genere.c pour en cr\303\251er un nouveau."
	.size	.L.str.81, 62

	.type	.L.str.82,@object               # @.str.82
.L.str.82:
	.asciz	"- Exemple d'application donn\303\251es automobiles : des donn\303\251es automobiles sont lues et triees."
	.size	.L.str.82, 93

	.type	.L.str.83,@object               # @.str.83
.L.str.83:
	.asciz	"  Il est essentiel de lancer le script de pr\303\251-traitrement des donn\303\251es script/doc.py avant."
	.size	.L.str.83, 93

	.type	.L.str.84,@object               # @.str.84
.L.str.84:
	.asciz	"Menu principal"
	.size	.L.str.84, 15

	.type	.L.str.85,@object               # @.str.85
.L.str.85:
	.asciz	"2\tTester l'algorithme de tri"
	.size	.L.str.85, 29

	.type	.L.str.86,@object               # @.str.86
.L.str.86:
	.asciz	"3\tReset"
	.size	.L.str.86, 8

	.type	.L.str.87,@object               # @.str.87
.L.str.87:
	.asciz	"Appuyer sur une touche entre 0 et 3  puis valider avec la touche ENTREE"
	.size	.L.str.87, 72

	.type	.L.str.88,@object               # @.str.88
.L.str.88:
	.asciz	"Merci et \303\240 bient\303\264t"
	.size	.L.str.88, 21

	.type	.L.str.89,@object               # @.str.89
.L.str.89:
	.asciz	"Merci d'utiliser exclusivement les CHIFFRES pour les s\303\251lections dans les menus"
	.size	.L.str.89, 80

	.type	.L.str.90,@object               # @.str.90
.L.str.90:
	.asciz	"Naviguer dans les menus pour tester toutes nos impl\303\251mentations de tri merge and sort sur CPU et GPU."
	.size	.L.str.90, 102

	.type	.L.str.93,@object               # @.str.93
.L.str.93:
	.asciz	"tmp.txt"
	.size	.L.str.93, 8

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

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

	.type	.L.str.98,@object               # @.str.98
.L.str.98:
	.asciz	"vector::_M_realloc_insert"
	.size	.L.str.98, 26

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z16partitionningGPUPiiS_iS_"
	.size	.L__unnamed_1, 29

	.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

	.type	.Lstr,@object                   # @str
	.section	.rodata.str1.1,"aMS",@progbits,1
.Lstr:
	.asciz	"[Error] memory alloc error"
	.size	.Lstr, 27

	.type	.Lstr.5,@object                 # @str.5
.Lstr.5:
	.asciz	"Supervis\303\251 par"
	.size	.Lstr.5, 15

	.type	.Lstr.6,@object                 # @str.6
.Lstr.6:
	.asciz	"Lokman ABBAS TURKI"
	.size	.Lstr.6, 19

	.type	.Lstr.9,@object                 # @str.9
.Lstr.9:
	.asciz	"MAIN 5 Polytech Paris UPMC"
	.size	.Lstr.9, 27

	.type	.Lstr.14,@object                # @str.14
.Lstr.14:
	.asciz	"Dans le cadre"
	.size	.Lstr.14, 14

	.type	.Lstr.15,@object                # @str.15
.Lstr.15:
	.asciz	"N9-IPA PARALLELISME AVANCE HPCA"
	.size	.Lstr.15, 32

	.type	.Lstr.16,@object                # @str.16
.Lstr.16:
	.asciz	"Projet de fin de module"
	.size	.Lstr.16, 24

	.type	.Lstr.17,@object                # @str.17
.Lstr.17:
	.asciz	"2017 - 2018"
	.size	.Lstr.17, 12

	.type	.Lstr.20,@object                # @str.20
.Lstr.20:
	.asciz	"Pr\303\251sentent"
	.size	.Lstr.20, 12

	.type	.Lstr.21,@object                # @str.21
.Lstr.21:
	.asciz	"MergeAndSortAppInCuda"
	.size	.Lstr.21, 22

	.type	.Lstr.22,@object                # @str.22
.Lstr.22:
	.asciz	"Version finale"
	.size	.Lstr.22, 15

	.type	.Lstr.49,@object                # @str.49
.Lstr.49:
	.asciz	"Lecture fichier..."
	.size	.Lstr.49, 19

	.type	.Lstr.50,@object                # @str.50
.Lstr.50:
	.asciz	"Alloc Array"
	.size	.Lstr.50, 12

	.type	.Lstr.51,@object                # @str.51
.Lstr.51:
	.asciz	"\nInit Array"
	.size	.Lstr.51, 12

	.type	.Lstr.52,@object                # @str.52
.Lstr.52:
	.asciz	"\nCall sort CPU"
	.size	.Lstr.52, 15

	.type	.Lstr.53,@object                # @str.53
.Lstr.53:
	.asciz	"\nCall sort GPU"
	.size	.Lstr.53, 15

	.type	.Lstr.54,@object                # @str.54
.Lstr.54:
	.asciz	"Call cudaDeviceSynchronize"
	.size	.Lstr.54, 27

	.type	.Lstr.55,@object                # @str.55
.Lstr.55:
	.asciz	"\nTest tri"
	.size	.Lstr.55, 10

	.type	.Lstr.57,@object                # @str.57
.Lstr.57:
	.asciz	"Test egale"
	.size	.Lstr.57, 11

	.type	.Lstr.58,@object                # @str.58
.Lstr.58:
	.asciz	"OK"
	.size	.Lstr.58, 3

	.type	.Lstr.59,@object                # @str.59
.Lstr.59:
	.asciz	"\nTime results"
	.size	.Lstr.59, 14

	.type	.Lstr.60,@object                # @str.60
.Lstr.60:
	.asciz	"\nTop 10 des prix les plus \303\251lev\303\251s des voitures:"
	.size	.Lstr.60, 49

	.type	.Lstr.61,@object                # @str.61
.Lstr.61:
	.asciz	"\nTop 10 des voitures les plus durables :"
	.size	.Lstr.61, 41

	.type	.Lstr.67,@object                # @str.67
.Lstr.67:
	.asciz	"\nBy"
	.size	.Lstr.67, 4

	.type	.Lstr.68,@object                # @str.68
.Lstr.68:
	.asciz	"ALOUI Driss"
	.size	.Lstr.68, 12

	.type	.Lstr.69,@object                # @str.69
.Lstr.69:
	.asciz	"DO Alexandre"
	.size	.Lstr.69, 13

	.type	.Lstr.70,@object                # @str.70
.Lstr.70:
	.asciz	"\nNovembre 2017"
	.size	.Lstr.70, 15

	.type	.Lstr.71,@object                # @str.71
.Lstr.71:
	.asciz	"Appuyer sur ENTREE pour continuer"
	.size	.Lstr.71, 34

	.type	.Lswitch.table._Z7tabCarsv,@object # @switch.table._Z7tabCarsv
	.section	.rodata,"a",@progbits
	.p2align	3, 0x0
.Lswitch.table._Z7tabCarsv:
	.quad	.L.str.47
	.quad	.L.str.48
	.quad	.L.str.49
	.size	.Lswitch.table._Z7tabCarsv, 24

	.type	.Lswitch.table._Z7tabCarsv.72,@object # @switch.table._Z7tabCarsv.72
	.p2align	3, 0x0
.Lswitch.table._Z7tabCarsv.72:
	.quad	55                              # 0x37
	.quad	60                              # 0x3c
	.quad	64                              # 0x40
	.size	.Lswitch.table._Z7tabCarsv.72, 24

	.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 _Z31__device_stub__partitionningGPUPiiS_iS_
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _Z16partitionningGPUPiiS_iS_
	.addrsig_sym _ZSt4cout
	.addrsig_sym _ZSt3cin
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z16partitionningGPUPiiS_iS_ ; -- Begin function _Z16partitionningGPUPiiS_iS_
	.globl	_Z16partitionningGPUPiiS_iS_
	.p2align	8
	.type	_Z16partitionningGPUPiiS_iS_,@function
_Z16partitionningGPUPiiS_iS_:           ; @_Z16partitionningGPUPiiS_iS_
; %bb.0:
	s_clause 0x5
	s_load_b32 s2, s[0:1], 0x34
	s_load_b32 s3, s[0:1], 0x28
	s_load_b32 s8, s[0:1], 0x18
	s_load_b64 s[4:5], s[0:1], 0x10
	s_load_b32 s9, s[0:1], 0x8
	s_load_b64 s[6:7], s[0:1], 0x0
	s_mov_b32 s12, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	s_mul_i32 s3, s3, s2
	s_add_i32 s10, s8, s9
	v_cvt_f32_u32_e32 v1, s3
	v_rcp_iflag_f32_e32 v1, v1
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v3, 0x4f7ffffe, v1
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_sub_i32 s2, 0, s3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cvt_u32_f32_e32 v0, v3
	v_readfirstlane_b32 s11, v0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v0, v1, s10
	s_mul_i32 s2, s2, s11
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_hi_u32 s2, s11, s2
	s_add_i32 s11, s11, s2
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_mul_hi_u32 v2, v0, s11
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v3, v2, s3
	v_sub_nc_u32_e32 v0, v0, v3
	v_add_nc_u32_e32 v3, 1, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v4, s3, v0
	v_cmp_le_u32_e32 vcc_lo, s3, v0
	v_dual_cndmask_b32 v3, v2, v3 :: v_dual_cndmask_b32 v0, v0, v4
	v_mov_b32_e32 v2, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_nc_u32_e32 v4, 1, v3
	v_cmp_le_u32_e64 s2, s3, v0
	s_delay_alu instid0(VALU_DEP_1)
	v_cndmask_b32_e64 v0, v3, v4, s2
	v_mov_b32_e32 v4, 0
	s_mov_b32 s2, exec_lo
	v_cmpx_ne_u32_e32 0, v1
	s_cbranch_execz .LBB0_10
; %bb.1:                                ; %.preheader.preheader
	v_subrev_nc_u32_e32 v1, s9, v0
	v_cmp_lt_i32_e32 vcc_lo, s9, v0
	v_min_i32_e32 v10, s9, v0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v9, 0, v1, vcc_lo
	v_mov_b32_e32 v1, v9
.LBB0_2:                                ; %.preheader.outer
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	s_delay_alu instid0(VALU_DEP_1)
	v_mov_b32_e32 v3, v1
	s_mov_b32 s13, 0
                                        ; implicit-def: $sgpr14
.LBB0_3:                                ; %.preheader
                                        ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mov_b32_e32 v1, v3
	s_or_b32 s14, s14, exec_lo
	v_sub_nc_u32_e32 v2, v10, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshrrev_b32_e32 v3, 31, v2
	v_add_nc_u32_e32 v2, v2, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 1, v2
	v_sub_nc_u32_e32 v2, v10, v3
	v_add_nc_u32_e32 v4, v3, v9
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v3, 31, v2
	v_ashrrev_i32_e32 v5, 31, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[6:7], 2, v[2:3]
	v_lshlrev_b64 v[11:12], 2, v[4:5]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v5, vcc_lo, s6, v6
	v_add_co_ci_u32_e32 v6, vcc_lo, s7, v7, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v7, vcc_lo, s4, v11
	v_add_co_ci_u32_e32 v8, vcc_lo, s5, v12, vcc_lo
	global_load_b32 v3, v[5:6], off
	global_load_b32 v11, v[7:8], off offset:-4
	s_waitcnt vmcnt(0)
	v_cmp_le_i32_e32 vcc_lo, v3, v11
                                        ; implicit-def: $vgpr3
	s_and_saveexec_b32 s15, vcc_lo
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	v_add_nc_u32_e32 v3, 1, v2
	s_and_not1_b32 s14, s14, exec_lo
; %bb.5:                                ; %Flow81
                                        ;   in Loop: Header=BB0_3 Depth=2
	s_or_b32 exec_lo, exec_lo, s15
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s15, exec_lo, s14
	s_or_b32 s13, s15, s13
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s13
	s_cbranch_execnz .LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s13
	global_load_b32 v3, v[5:6], off offset:-4
	global_load_b32 v5, v[7:8], off
	s_mov_b32 s13, -1
	s_mov_b32 s14, exec_lo
                                        ; implicit-def: $vgpr9
                                        ; implicit-def: $vgpr10
	s_waitcnt vmcnt(0)
	v_cmpx_gt_i32_e64 v3, v5
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	v_add_nc_u32_e32 v10, -1, v2
	v_add_nc_u32_e32 v9, 1, v4
	s_xor_b32 s13, exec_lo, -1
                                        ; implicit-def: $vgpr2
                                        ; implicit-def: $vgpr4
; %bb.8:                                ; %Flow82
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s14
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s13, exec_lo, s13
	s_or_b32 s12, s13, s12
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s12
	s_cbranch_execnz .LBB0_2
; %bb.9:                                ; %Flow83
	s_or_b32 exec_lo, exec_lo, s12
.LBB0_10:                               ; %Flow84
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s2
	s_mul_hi_u32 s2, s10, s11
	s_mul_i32 s11, s2, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_sub_i32 s10, s10, s11
	s_add_i32 s11, s2, 1
	s_sub_i32 s12, s10, s3
	s_cmp_ge_u32 s10, s3
	s_cselect_b32 s2, s11, s2
	s_cselect_b32 s10, s12, s10
	s_add_i32 s11, s2, 1
	s_cmp_ge_u32 s10, s3
	s_cselect_b32 s10, s11, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_lt_i32 s10, 1
	s_cbranch_scc1 .LBB0_25
; %bb.11:                               ; %.lr.ph.i.preheader
	s_load_b64 s[2:3], s[0:1], 0x20
.LBB0_12:                               ; %.lr.ph.i
                                        ; =>This Inner Loop Header: Depth=1
	v_cmp_le_i32_e32 vcc_lo, s9, v2
	v_cmp_le_i32_e64 s0, s8, v4
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 s0, vcc_lo, s0
	s_and_saveexec_b32 s1, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_xor_b32 s1, exec_lo, s1
	s_cbranch_execz .LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	v_lshlrev_b64 v[6:7], 2, v[0:1]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v6, s0, s2, v6
	v_add_co_ci_u32_e64 v7, s0, s3, v7, s0
	s_and_saveexec_b32 s0, vcc_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_xor_b32 s0, exec_lo, s0
	s_cbranch_execz .LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	v_ashrrev_i32_e32 v5, 31, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[8:9], 2, v[4:5]
	v_add_nc_u32_e32 v4, 1, v4
	v_add_co_u32 v8, vcc_lo, s4, v8
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v9, vcc_lo, s5, v9, vcc_lo
	global_load_b32 v1, v[8:9], off
	s_waitcnt vmcnt(0)
	global_store_b32 v[6:7], v1, off
                                        ; implicit-def: $vgpr6_vgpr7
.LBB0_15:                               ; %Flow
                                        ;   in Loop: Header=BB0_12 Depth=1
	s_and_not1_saveexec_b32 s0, s0
	s_cbranch_execz .LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	v_ashrrev_i32_e32 v3, 31, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[8:9], 2, v[2:3]
	v_add_nc_u32_e32 v2, 1, v2
	v_add_co_u32 v8, vcc_lo, s6, v8
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v9, vcc_lo, s7, v9, vcc_lo
	global_load_b32 v1, v[8:9], off
	s_waitcnt vmcnt(0)
	global_store_b32 v[6:7], v1, off
.LBB0_17:                               ; %Flow73
                                        ;   in Loop: Header=BB0_12 Depth=1
	s_or_b32 exec_lo, exec_lo, s0
.LBB0_18:                               ; %Flow77
                                        ;   in Loop: Header=BB0_12 Depth=1
	s_and_not1_saveexec_b32 s1, s1
	s_cbranch_execz .LBB0_24
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
	v_ashrrev_i32_e32 v3, 31, v2
	v_ashrrev_i32_e32 v5, 31, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[6:7], 2, v[2:3]
	v_lshlrev_b64 v[8:9], 2, v[4:5]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v5, vcc_lo, s6, v6
	v_add_co_ci_u32_e32 v6, vcc_lo, s7, v7, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v7, vcc_lo, s4, v8
	v_add_co_ci_u32_e32 v8, vcc_lo, s5, v9, vcc_lo
	global_load_b32 v3, v[5:6], off
	global_load_b32 v7, v[7:8], off
	v_lshlrev_b64 v[5:6], 2, v[0:1]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v5, s0, s2, v5
	v_add_co_ci_u32_e64 v6, s0, s3, v6, s0
	s_mov_b32 s0, exec_lo
	s_waitcnt vmcnt(0)
	v_cmpx_ge_i32_e64 v3, v7
	s_xor_b32 s0, exec_lo, s0
	s_cbranch_execz .LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_12 Depth=1
	v_add_nc_u32_e32 v4, 1, v4
	global_store_b32 v[5:6], v7, off
                                        ; implicit-def: $vgpr5_vgpr6
                                        ; implicit-def: $vgpr3
.LBB0_21:                               ; %Flow75
                                        ;   in Loop: Header=BB0_12 Depth=1
	s_and_not1_saveexec_b32 s0, s0
	s_cbranch_execz .LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_12 Depth=1
	v_add_nc_u32_e32 v2, 1, v2
	global_store_b32 v[5:6], v3, off
.LBB0_23:                               ; %Flow76
                                        ;   in Loop: Header=BB0_12 Depth=1
	s_or_b32 exec_lo, exec_lo, s0
.LBB0_24:                               ;   in Loop: Header=BB0_12 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s1
	v_add_nc_u32_e32 v0, 1, v0
	s_add_i32 s10, s10, -1
	s_cmp_lg_u32 s10, 0
	s_cbranch_scc1 .LBB0_12
.LBB0_25:                               ; %_Z8mergeGPUPiiiS_iiS_ii.exit
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z16partitionningGPUPiiS_iS_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 13
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z16partitionningGPUPiiS_iS_, .Lfunc_end0-_Z16partitionningGPUPiiS_iS_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1044
; NumSgprs: 18
; NumVgprs: 13
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 13
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 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
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         44
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         52
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         54
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         56
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         58
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         60
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         62
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         104
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 296
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z16partitionningGPUPiiS_iS_
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z16partitionningGPUPiiS_iS_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     13
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
