user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r15
  lea    D71(%rip),%rsi
  lea    D50(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <InitialisationAvecService@plt>
  cmp    $0x1,%eax
  je     L62
  lea    D53(%rip),%rdi
  call   <printf@plt>
  xor    %edi,%edi
  call   <exit@plt>
L62:
  lea    D23(%rip),%r12
  lea    0x4(%rsp),%rbp
  lea    D77(%rip),%rbx
  lea    D58(%rip),%r15
  lea    D33(%rip),%r14
  lea    D62(%rip),%r13
L40:
  mov    %r15,%rdi
  call   <printf@plt>
  mov    %r14,%rdi
  call   <printf@plt>
  mov    %r13,%rdi
  call   <printf@plt>
  mov    %r12,%rdi
  call   <printf@plt>
  jmp    L20
  nopw   0x0(%rax,%rax,1)
L22:
  mov    %r12,%rdi
  call   <printf@plt>
  xor    %eax,%eax
  call   <vider_buffer@plt>
L20:
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  cmp    $0x1,%eax
  jne    L22
  xor    %eax,%eax
  call   <vider_buffer@plt>
  mov    0x4(%rsp),%eax
  cmp    $0x2,%eax
  je     L6
  cmp    $0x3,%eax
  je     L77
  cmp    $0x1,%eax
  je     L38
  lea    D44(%rip),%rdi
  call   <printf@plt>
L42:
  movl   $0x63,0x4(%rsp)
  jmp    L40
  nop
L6:
  xor    %eax,%eax
  call   <menu_enregistrement@plt>
  jmp    L42
  nopl   0x0(%rax)
L38:
  xor    %eax,%eax
  call   <menu_reservation@plt>
  jmp    L42
  nopl   0x0(%rax)
L77:
  xor    %eax,%eax
  movl   $0x63,0x4(%rsp)
  call   <Terminaison@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L2
  add    $0x18,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L2:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D71
type: string
name: disassemble_data
arguments: data_label: D50
type: string
name: disassemble_data
arguments: data_label: D53
type: string
name: disassemble_data
arguments: data_label: D23
type: string
name: disassemble_data
arguments: data_label: D77
type: string
name: disassemble_data
arguments: data_label: D58
type: string
name: disassemble_data
arguments: data_label: D33
type: string
name: disassemble_data
arguments: data_label: D62
type: string
name: disassemble_data
arguments: data_label: D44
type: string

tool: D71: 12321

tool: D50: 127.0.0.1

tool: D53: Erreur d'initialisation


tool: D23: 

 Entrez votre choix: 

tool: D77: %1d

tool: D58: 



		**** MENU ****

tool: D33: 
	------------------------------

tool: D62: 
	1. Reserver une chambre 
	2. S'enregistrer en tant qu'hotel
	3. Quitter


tool: D44: 
Selection invalide ... veuillez reesayer.


assistant: ```c
int main() {
  int choix;
  int fini = 1;
  if (InitialisationAvecService("127.0.0.1", "12321") != 1) {
    printf("Erreur d'initialisation\n");
    exit(0);
  }
  while (fini) {
    printf("\n\n\n\n\t\t**** MENU ****");
    printf("\n\t------------------------------");
    printf("\n\t1. Reserver une chambre \n\t2. S'enregistrer en tant qu'hotel\n\t3. Quitter\n");
    printf("\n\n Entrez votre choix: ");
    while (scanf("%1d", &choix) != 1) {
      printf("\n\n Entrez votre choix: ");
      vider_buffer();
    }
    vider_buffer();
    switch (choix) {
    case 1:
      menu_reservation();
      break;
    case 2:
      menu_enregistrement();
      break;
    case 3:
      fini = 0;
      break;
    default:
      printf("\nSelection invalide ... veuillez reesayer.\n");
    }
    choix = 99;
  }
  Terminaison();
  return 0;
}
```