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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x98,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  lea    D347(%rip),%rdi
  call   <puts@plt>
  lea    D226(%rip),%rdi
  call   <puts@plt>
  lea    D266(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    D186(%rip),%r12
  lea    D27(%rip),%r13
  jmp    L150
L69:
  mov    %r13,%rdi
  call   <puts@plt>
L165:
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbx,%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    0x8(%rsp),%eax
  lea    -0x1(%rax),%edx
  cmp    $0x1,%edx
  ja     L69
  cmp    $0x1,%eax
  je     L85
  lea    D260(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rbx
  mov    %rbx,%rsi
  lea    D160(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
  mov    %eax,%esi
  lea    D162(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D139(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  test   %ebx,%ebx
  jle    L58
  lea    -0x1(%rbx),%ebp
  mov    %ebx,%ecx
  mov    $0x0,%eax
L143:
  movzbl 0x10(%rsp,%rax,1),%esi
  lea    -0x1(%rsi),%edx
  mov    %dl,0x50(%rsp,%rax,1)
  add    $0x1,%rax
  cmp    %rcx,%rax
  jne    L143
  lea    0x10(%rsp),%rsi
  lea    D76(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D309(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D155(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x50(%rsp),%rbx
  lea    0x51(%rsp,%rbp,1),%r14
  mov    %rbx,%rbp
  lea    D98(%rip),%r15
L41:
  movsbl 0x0(%rbp),%esi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%rbp
  cmp    %r14,%rbp
  jne    L41
  lea    D309(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L84:
  movsbl (%rbx),%edi
  call   <putchar@plt>
  add    $0x1,%rbx
  cmp    %r14,%rbx
  jne    L84
L151:
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    D139(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L155
L85:
  lea    D85(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rbx
  mov    %rbx,%rsi
  lea    D160(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
  mov    %eax,%esi
  lea    D162(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D139(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  test   %ebx,%ebx
  jle    L144
  lea    -0x1(%rbx),%ebp
  mov    %ebx,%ecx
  mov    $0x0,%eax
L148:
  movzbl 0x10(%rsp,%rax,1),%edx
  add    $0x1,%edx
  mov    %dl,0x50(%rsp,%rax,1)
  add    $0x1,%rax
  cmp    %rax,%rcx
  jne    L148
  lea    0x10(%rsp),%rsi
  lea    D76(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D309(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D155(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x50(%rsp),%rbx
  lea    0x51(%rsp,%rbp,1),%r14
  mov    %rbx,%rbp
  lea    D98(%rip),%r15
L141:
  movsbl 0x0(%rbp),%esi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%rbp
  cmp    %rbp,%r14
  jne    L141
  lea    D309(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L0:
  movsbl (%rbx),%edi
  call   <putchar@plt>
  add    $0x1,%rbx
  cmp    %r14,%rbx
  jne    L0
L120:
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    D139(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
L155:
  lea    D183(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  cmpl   $0x0,0xc(%rsp)
  je     L106
L150:
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    D64(%rip),%rdi
  call   <puts@plt>
  lea    D333(%rip),%rdi
  call   <puts@plt>
  lea    D167(%rip),%rbp
  lea    0x8(%rsp),%rbx
  jmp    L165
L106:
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L23
  mov    $0x0,%eax
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L144:
  lea    0x10(%rsp),%rsi
  lea    D76(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D309(%rip),%rbx
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D155(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L120
L58:
  lea    0x10(%rsp),%rsi
  lea    D76(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D309(%rip),%rbx
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D155(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L151
L23:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D347
type_infered: string
name: retrieve_data
arguments: tag: D226
type_infered: string
name: retrieve_data
arguments: tag: D266
type_infered: string
name: retrieve_data
arguments: tag: D186
type_infered: string
name: retrieve_data
arguments: tag: D27
type_infered: string
name: retrieve_data
arguments: tag: D260
type_infered: string
name: retrieve_data
arguments: tag: D160
type_infered: string
name: retrieve_data
arguments: tag: D162
type_infered: string
name: retrieve_data
arguments: tag: D139
type_infered: string
name: retrieve_data
arguments: tag: D76
type_infered: string
name: retrieve_data
arguments: tag: D309
type_infered: string
name: retrieve_data
arguments: tag: D155
type_infered: string
name: retrieve_data
arguments: tag: D98
type_infered: string
name: retrieve_data
arguments: tag: D85
type_infered: string
name: retrieve_data
arguments: tag: D183
type_infered: string
name: retrieve_data
arguments: tag: D64
type_infered: string
name: retrieve_data
arguments: tag: D333
type_infered: string
name: retrieve_data
arguments: tag: D167
type_infered: string

tool: D347:                            ---CriptoVale---    

tool: D226:        A simple encryption and decryption software based on caesar cipher                   

tool: D266:                    Copyright(C) 2014 - 2016 Valerio Besozzi    

tool: D186: %d

tool: D27: 
Error: Insert 1 or 2

tool: D260: 
Enter the word to decrypt : 
 

tool: D160: %s

tool: D162: 
Word length = %d


tool: D139: _____________________________________________________________________

tool: D76: %s  

tool: D309: ------------>  

tool: D155: ASCII : 

tool: D98: %d 

tool: D85: 
Enter the word to be encrypted: 

tool: D183: Exit? (Yes = 0 | No = 1): 

tool: D64: 1) Encrypt

tool: D333: 2) Decrypt

tool: D167: Make your selection: 

assistant: ```c
int main() {
  int count;
  int x;
  int ex;
  char parola[50];
  int i;
  int lunghezza;
  char risultato[50];
  printf("                           ---CriptoVale---    \n");
  printf("       A simple encryption and decryption software based on caesar cipher                   \n");
  printf("                   Copyright(C) 2014 - 2016 Valerio Besozzi    ");
  printf("\n");
  printf("\n");
  while (1) {
    printf("\n");
    printf("1) Encrypt\n");
    printf("2) Decrypt\n");
    while (1) {
      printf("Make your selection: ");
      scanf("%d", &x);
      if ((x == 1) || (x == 2)) {
        break;
      } else {
        printf("\nError: Insert 1 or 2\n");
      }
    }
    switch (x) {
    case 1:
      printf("\nEnter the word to be encrypted: ");
      scanf("%s", parola);
      lunghezza = strlen(parola);
      printf("\nWord length = %d\n", lunghezza);
      printf("_____________________________________________________________________");
      printf("\n");
      for (i = 0; i < lunghezza; i++) {
        risultato[i] = parola[i] + 1;
      }
      printf("%s  ", parola);
      printf("------------>  ");
      printf("ASCII : ");
      for (count = 0; count < lunghezza; count++)
        printf("%d ", risultato[count]);
      printf("------------>  ");
      for (count = 0; count < lunghezza; count++)
        printf("%c", risultato[count]);
      printf("\n");
      printf("_____________________________________________________________________");
      printf("\n");
      break;
    case 2:
      printf("\nEnter the word to decrypt : \n ");
      scanf("%s", parola);
      lunghezza = strlen(parola);
      printf("\nWord length = %d\n", lunghezza);
      printf("_____________________________________________________________________");
      printf("\n");
      for (i = 0; i < lunghezza; i++) {
        risultato[i] = parola[i] - 1;
      }
      printf("%s  ", parola);
      printf("------------>  ");
      printf("ASCII : ");
      for (count = 0; count < lunghezza; count++)
        printf("%d ", risultato[count]);
      printf("------------>  ");
      for (count = 0; count < lunghezza; count++)
        printf("%c", risultato[count]);
      printf("\n");
      printf("_____________________________________________________________________");
      printf("\n");
      break;
    }
    printf("Exit? (Yes = 0 | No = 1): ");
    scanf("%d", &ex);
    if (ex == 0) {
      break;
    }
  }
  return 0;
}
```