user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  push   %r15
  lea    D100(%rip),%rdi
  push   %r14
  lea    D113(%rip),%r14
  push   %r13
  push   %r12
  lea    D129(%rip),%r12
  push   %rbp
  push   %rbx
  sub    $0xb8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xa8(%rsp)
  xor    %eax,%eax
  lea    0x28(%rsp),%r13
  lea    0x30(%rsp),%rbp
  call   <puts@plt>
  lea    D57(%rip),%rdi
  call   <puts@plt>
  lea    D169(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    0x2c(%rsp),%rax
  mov    %rax,0x18(%rsp)
  nopl   0x0(%rax)
L17:
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    D43(%rip),%rdi
  call   <puts@plt>
  lea    D90(%rip),%rdi
  call   <puts@plt>
  jmp    L93
  nopl   0x0(%rax)
L3:
  lea    D163(%rip),%rdi
  call   <puts@plt>
L93:
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r13,%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    0x28(%rsp),%eax
  lea    -0x1(%rax),%edx
  cmp    $0x1,%edx
  ja     L3
  cmp    $0x2,%eax
  je     L34
  lea    D162(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  lea    D132(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  lea    D107(%rip),%rdi
  mov    %eax,%esi
  mov    %eax,%ebx
  xor    %eax,%eax
  call   <printf@plt>
  lea    D126(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  test   %ebx,%ebx
  jle    L135
  lea    -0x1(%rbx),%r15d
  mov    %ebx,%eax
  lea    0x70(%rsp),%rbx
  xor    %edx,%edx
  xchg   %ax,%ax
L39:
  movzbl 0x0(%rbp,%rdx,1),%ecx
  add    $0x1,%ecx
  mov    %cl,(%rbx,%rdx,1)
  add    $0x1,%rdx
  cmp    %rax,%rdx
  jne    L39
  mov    %rbp,%rsi
  lea    D10(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D157(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D271(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x71(%rsp,%r15,1),%rax
  mov    %rbx,0x10(%rsp)
  mov    %rax,0x8(%rsp)
  mov    %rax,%r15
  nopl   0x0(%rax,%rax,1)
L131:
  movsbl (%rbx),%esi
  lea    D253(%rip),%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    %r15,%rbx
  jne    L131
  lea    D157(%rip),%rdi
  xor    %eax,%eax
  mov    0x10(%rsp),%rbx
  call   <printf@plt>
  mov    0x8(%rsp),%r15
  nopw   0x0(%rax,%rax,1)
L96:
  movsbl (%rbx),%edi
  add    $0x1,%rbx
  call   <putchar@plt>
  cmp    %r15,%rbx
  jne    L96
L5:
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    D126(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    D143(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x18(%rsp),%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    0x2c(%rsp),%eax
  test   %eax,%eax
  jne    L17
  mov    0xa8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L83
  add    $0xb8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L34:
  lea    D119(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  lea    D132(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  lea    D107(%rip),%rdi
  mov    %eax,%esi
  mov    %eax,%ebx
  xor    %eax,%eax
  call   <printf@plt>
  lea    D126(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  test   %ebx,%ebx
  jle    L135
  lea    -0x1(%rbx),%r15d
  mov    %ebx,%ecx
  lea    0x70(%rsp),%rbx
  xor    %eax,%eax
  cs nopw 0x0(%rax,%rax,1)
L114:
  movzbl 0x0(%rbp,%rax,1),%esi
  lea    -0x1(%rsi),%edx
  mov    %dl,(%rbx,%rax,1)
  add    $0x1,%rax
  cmp    %rcx,%rax
  jne    L114
  mov    %rbp,%rsi
  lea    D10(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D157(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D271(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x71(%rsp,%r15,1),%rax
  mov    %rbx,0x10(%rsp)
  mov    %rax,0x8(%rsp)
  mov    %rax,%r15
  nopl   0x0(%rax,%rax,1)
L109:
  movsbl (%rbx),%esi
  lea    D253(%rip),%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    %r15,%rbx
  jne    L109
  lea    D157(%rip),%rdi
  xor    %eax,%eax
  mov    0x10(%rsp),%rbx
  call   <printf@plt>
  mov    0x8(%rsp),%r15
  nopw   0x0(%rax,%rax,1)
L136:
  movsbl (%rbx),%edi
  add    $0x1,%rbx
  call   <putchar@plt>
  cmp    %rbx,%r15
  jne    L136
  jmp    L5
  cs nopw 0x0(%rax,%rax,1)
L135:
  mov    %rbp,%rsi
  lea    D10(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D157(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D271(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D157(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L5
L83:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D100
data_type: string
name: extract_symbolic_data
arguments: data_tag: D113
data_type: string
name: extract_symbolic_data
arguments: data_tag: D129
data_type: string
name: extract_symbolic_data
arguments: data_tag: D57
data_type: string
name: extract_symbolic_data
arguments: data_tag: D169
data_type: string
name: extract_symbolic_data
arguments: data_tag: D43
data_type: string
name: extract_symbolic_data
arguments: data_tag: D90
data_type: string
name: extract_symbolic_data
arguments: data_tag: D163
data_type: string
name: extract_symbolic_data
arguments: data_tag: D162
data_type: string
name: extract_symbolic_data
arguments: data_tag: D132
data_type: string
name: extract_symbolic_data
arguments: data_tag: D107
data_type: string
name: extract_symbolic_data
arguments: data_tag: D126
data_type: string
name: extract_symbolic_data
arguments: data_tag: D10
data_type: string
name: extract_symbolic_data
arguments: data_tag: D157
data_type: string
name: extract_symbolic_data
arguments: data_tag: D271
data_type: string
name: extract_symbolic_data
arguments: data_tag: D253
data_type: string
name: extract_symbolic_data
arguments: data_tag: D143
data_type: string
name: extract_symbolic_data
arguments: data_tag: D119
data_type: string

tool: D100:                            ---CriptoVale---    

tool: D113: Make your selection: 

tool: D129: %d

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

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

tool: D43: 1) Encrypt

tool: D90: 2) Decrypt

tool: D163: 
Error: Insert 1 or 2

tool: D162: 
Enter the word to be encrypted: 

tool: D132: %s

tool: D107: 
Word length = %d


tool: D126: _____________________________________________________________________

tool: D10: %s  

tool: D157: ------------>  

tool: D271: ASCII : 

tool: D253: %d 

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

tool: D119: 
Enter the word to decrypt : 
 

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;
}
```