user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  lea    D14(%rip),%rdi
  call   <printf@plt>
  lea    D80(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D15(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D48(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D77(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D99(%rip),%rbp
  lea    D79(%rip),%rbx
  lea    D86(%rip),%r14
  jmp    L115
L153:
  test   %r13d,%r13d
  jle    L115
  lea    0x10(%rsp),%r12
  mov    $0x1,%r15d
  jmp    L147
L62:
  mov    $0x1,%eax
  lea    0xf(%rsp),%rdx
  mov    $0x0,%r13d
  cmpb   $0x0,0x10(%rsp)
  je     L66
L90:
  mov    %eax,%r13d
  add    $0x1,%rax
  cmpb   $0x0,(%rdx,%rax,1)
  jne    L90
L66:
  mov    %r13d,%esi
  lea    D83(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L75:
  cmpl   $0x0,0xc(%rsp)
  je     L177
L115:
  lea    0xc(%rsp),%r12
L193:
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r12,%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    0xc(%rsp),%eax
  cmp    $0x3,%eax
  ja     L193
  cmp    $0x2,%eax
  je     L62
  cmp    $0x3,%eax
  je     L153
  cmp    $0x1,%eax
  jne    L75
  lea    D24(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rsi
  lea    D101(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D18(%rip),%rdi
  call   <puts@plt>
  jmp    L75
L144:
  add    $0x1,%rax
  cmp    %rcx,%rax
  je     L164
L159:
  movzbl 0x1(%rax),%esi
  cmp    %sil,(%rdx)
  jne    L144
  add    $0x1,%edi
  movb   $0x0,0x1(%rax)
  jmp    L144
L64:
  mov    $0x1,%edi
  jmp    L137
L177:
  mov    0x78(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L140
  mov    $0x0,%eax
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L164:
  movzbl (%rdx),%esi
  test   %sil,%sil
  je     L78
L137:
  movsbl %sil,%esi
  mov    %edi,%edx
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L187:
  cmp    %r15d,%r13d
  jle    L75
L78:
  add    $0x1,%r12
  add    $0x1,%r15d
L147:
  mov    %r12,%rdx
  movzbl (%r12),%esi
  test   %sil,%sil
  je     L187
  cmp    %r15d,%r13d
  jle    L64
  lea    -0x1(%r13),%eax
  sub    %r15d,%eax
  lea    0x1(%r12,%rax,1),%rcx
  mov    %r12,%rax
  mov    $0x1,%edi
  jmp    L159
L140:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D14
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D80
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D15
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D48
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D77
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D99
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D79
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D86
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D83
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D24
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D101
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D18
type_guessed: string

tool: D14: 
 CALCOLO OCCORRENZE

tool: D80: 
 1. Inserisci il tuo nome(max 100 caratteri)

tool: D15: 
 2. Calcolo lunghezza

tool: D48: 
 3. Calcolo frequenze

tool: D77: 
 0. EXIT

tool: D99: 
 Inserisci la scelta(0-3): 

tool: D79: %d

tool: D86: 
Il carattere %c si ripete %d volte


tool: D83: 
 Il tuo nome e' lungo: %d 


tool: D24: 
 Inserisci il nome: 

tool: D101: %s

tool: D18: 
 Il tuo nome e' stato inserito 

assistant: ```c
int main() {
  char nome[100];
  int scelta;
  int l;
  int Y;
  int I;
  int cont;
  printf("\n CALCOLO OCCORRENZE");
  printf("\n 1. Inserisci il tuo nome(max 100 caratteri)");
  printf("\n 2. Calcolo lunghezza");
  printf("\n 3. Calcolo frequenze");
  printf("\n 0. EXIT");
  do {
    do {
      printf("\n Inserisci la scelta(0-3): ");
      scanf("%d", &scelta);
    } while ((scelta < 0) || (scelta > 3));
    switch (scelta) {
    case 1:
      printf("\n Inserisci il nome: ");
      scanf("%s", &nome);
      printf("\n Il tuo nome e' stato inserito \n");
      break;
    case 2:
      l = 0;
      while (nome[l] != '\0') {
        l++;
      }
      printf("\n Il tuo nome e' lungo: %d \n", l);
      break;
    case 3:
      for (I = 0; I < l; I++) {
        cont = 1;
        if (nome[I] != 0) {
          for (Y = I + 1; Y < l; Y++) {
            if (nome[I] == nome[Y]) {
              cont++;
              nome[Y] = 0;
            }
          }
        }
        if (nome[I] != 0) {
          printf("\nIl carattere %c si ripete %d volte\n", nome[I], cont);
        }
      }
      break;
    }
  } while (scelta != 0);
}
```