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

```asm
<menu>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x138,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x128(%rsp)
  xor    %eax,%eax
  lea    D121(%rip),%rdi
  call   <printf@plt>
  lea    D112(%rip),%rdi
  call   <printf@plt>
  lea    D25(%rip),%rdi
  call   <printf@plt>
  lea    D98(%rip),%rdi
  call   <printf@plt>
  lea    D132(%rip),%rdi
  call   <printf@plt>
  lea    D145(%rip),%rdi
  call   <printf@plt>
  lea    0x50(%rsp),%rax
  mov    %rax,0x10(%rsp)
  lea    0x82(%rsp),%rax
  mov    %rax,0x18(%rsp)
  lea    0xb4(%rsp),%rax
  mov    %rax,0x20(%rsp)
  lea    D103(%rip),%r13
  lea    D187(%rip),%rbx
  lea    D163(%rip),%rbp
  jmp    L75
  lea    D1(%rip),%rdi
  call   <printf@plt>
  lea    0x50(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  lea    D184(%rip),%rdi
  call   <printf@plt>
  lea    0x82(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  lea    D109(%rip),%rdi
  call   <printf@plt>
  lea    0xb4(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    %rsp,%rsi
  mov    $0x5,%edi
  call   <add@plt>
L75:
  lea    0xf0(%rsp),%r12
  cmpb   $0x35,0xf0(%rsp)
  je     L10
  mov    %r13,%rdi
  call   <printf@plt>
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  movzbl 0xf0(%rsp),%eax
  sub    $0x31,%eax
  cmp    $0x4,%al
  ja     L76
  movzbl %al,%eax
  movslq 0x0(%rbp,%rax,4),%rax
  add    %rbp,%rax
  notrack jmp *%rax
  lea    D169(%rip),%rdi
  call   <printf@plt>
  lea    0x50(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    %rsp,%rsi
  mov    $0x3,%edi
  call   <del@plt>
  jmp    L75
  lea    D1(%rip),%rdi
  call   <printf@plt>
  lea    0x50(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  lea    D64(%rip),%rdi
  call   <printf@plt>
  lea    0x82(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  lea    D58(%rip),%rdi
  call   <printf@plt>
  lea    0xb4(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    %rsp,%rsi
  mov    $0x5,%edi
  call   <edit@plt>
  jmp    L75
  lea    D1(%rip),%rdi
  call   <printf@plt>
  lea    0x50(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  lea    D184(%rip),%rdi
  call   <printf@plt>
  lea    0x82(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    %rsp,%rsi
  mov    $0x1,%edx
  mov    $0x4,%edi
  call   <verify@plt>
  jmp    L75
L76:
  lea    D152(%rip),%rdi
  call   <printf@plt>
  jmp    L75
L10:
  mov    0x128(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L2
  add    $0x138,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L2:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D121
datatype: string
name: parse_data
arguments: data_label: D112
datatype: string
name: parse_data
arguments: data_label: D25
datatype: string
name: parse_data
arguments: data_label: D98
datatype: string
name: parse_data
arguments: data_label: D132
datatype: string
name: parse_data
arguments: data_label: D145
datatype: string
name: parse_data
arguments: data_label: D103
datatype: string
name: parse_data
arguments: data_label: D187
datatype: string
name: parse_data
arguments: data_label: D1
datatype: string
name: parse_data
arguments: data_label: D184
datatype: string
name: parse_data
arguments: data_label: D109
datatype: string
name: parse_data
arguments: data_label: D169
datatype: string
name: parse_data
arguments: data_label: D64
datatype: string
name: parse_data
arguments: data_label: D58
datatype: string
name: parse_data
arguments: data_label: D152
datatype: string

tool: D121: Password database control


tool: D112: 1. Add a user


tool: D25: 2. Delete a user


tool: D98: 3. Edit a user


tool: D132: 4. Verify a user


tool: D145: 5. Quit


tool: D103: Input an option: 

tool: D187: %s

tool: D1: Input username: 

tool: D184: Input password: 

tool: D109: Input type: 

tool: D169: Input username to delete: 

tool: D64: Input new password: 

tool: D58: Input new type: 

tool: D152: Error: Invalid option


assistant: ```c
void menu() {
  printf("Password database control\n");
  printf("1. Add a user\n");
  printf("2. Delete a user\n");
  printf("3. Edit a user\n");
  printf("4. Verify a user\n");
  printf("5. Quit\n");
  char option[50];
  char array[3][50];
  char *input[10];
  input[2] = array[0];
  input[3] = array[1];
  input[4] = array[2];
  char buffer;
  while (option[0] != '5') {
    printf("Input an option: ");
    scanf("%s", option);
    getchar();
    switch (option[0]) {
    case '1':
      printf("Input username: ");
      scanf("%s", array[0]);
      getchar();
      printf("Input password: ");
      scanf("%s", array[1]);
      getchar();
      printf("Input type: ");
      scanf("%s", array[2]);
      getchar();
      add(5, input);
      continue;
    case '2':
      printf("Input username to delete: ");
      scanf("%s", array[0]);
      getchar();
      del(3, input);
      continue;
    case '3':
      printf("Input username: ");
      scanf("%s", array[0]);
      getchar();
      printf("Input new password: ");
      scanf("%s", array[1]);
      getchar();
      printf("Input new type: ");
      scanf("%s", array[2]);
      getchar();
      edit(5, input);
      continue;
    case '4':
      printf("Input username: ");
      scanf("%s", array[0]);
      getchar();
      printf("Input password: ");
      scanf("%s", array[1]);
      getchar();
      verify(4, input, 1);
      continue;
    case '5':
      break;
    default:
      printf("Error: Invalid option\n");
    }
  }
}
```