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

```asm
<menu>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x14(%rbp)
L17:
  lea    D49(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D30(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0x18(%rbp),%rax
  mov    %rax,%rsi
  lea    D56(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x18(%rbp),%eax
  cmp    $0x4,%eax
  je     L19
  cmp    $0x4,%eax
  jg     L97
  cmp    $0x3,%eax
  je     L70
  cmp    $0x3,%eax
  jg     L97
  cmp    $0x1,%eax
  je     L96
  cmp    $0x2,%eax
  je     L57
  jmp    L97
L96:
  movl   $0x0,-0x14(%rbp)
  mov    $0x0,%eax
  call   <getInsertPosition@plt>
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  mov    %eax,%edi
  call   <saveOneEntry@plt>
  jmp    L1
L57:
  movl   $0x0,-0x14(%rbp)
  mov    $0x0,%eax
  call   <getInsertPosition@plt>
  mov    %eax,-0x10(%rbp)
  mov    $0x0,%eax
  call   <getInsertQuantity@plt>
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%edx
  mov    -0x10(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <saveMultipleEntries@plt>
  jmp    L1
L70:
  movl   $0x0,-0x14(%rbp)
  mov    $0x0,%eax
  call   <getInsertPosition@plt>
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  mov    %eax,%edi
  call   <getOneEntry@plt>
  mov    $0x1,%esi
  mov    %eax,%edi
  call   <printEntries@plt>
  jmp    L1
L19:
  movl   $0x0,-0x14(%rbp)
  mov    $0x0,%eax
  call   <getInsertPosition@plt>
  mov    %eax,-0x10(%rbp)
  mov    $0x0,%eax
  call   <getInsertQuantity@plt>
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%edx
  mov    -0x10(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <getMultipleEntries@plt>
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  mov    %eax,%esi
  mov    %edx,%edi
  call   <printEntries@plt>
  jmp    L1
L97:
  movl   $0x1,-0x14(%rbp)
  lea    D38(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  nop
L1:
  cmpl   $0x1,-0x14(%rbp)
  je     L17
  nop
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L120
  call   <__stack_chk_fail@plt>
L120:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D49
type: string
name: retrieve_data
arguments: data_label: D30
type: string
name: retrieve_data
arguments: data_label: D8
type: string
name: retrieve_data
arguments: data_label: D27
type: string
name: retrieve_data
arguments: data_label: D56
type: string
name: retrieve_data
arguments: data_label: D38
type: string

tool: D49: 
[1] Create and insert one entry

tool: D30: 
[2] Create and insert multiple entries

tool: D8: 
[3] Find and print one entry

tool: D27: 
[4] Find and print multiple entries

tool: D56: %d

tool: D38: 
Please, select a valid option!!!

assistant: ```c
int menu() {
  int menu, status = 0, position, quantity;
  do {
    printf("\n[1] Create and insert one entry");
    printf("\n[2] Create and insert multiple entries");
    printf("\n[3] Find and print one entry");
    printf("\n[4] Find and print multiple entries");
    scanf("%d", &menu);
    switch (menu) {
    case 1:
      status = 0;
      position = getInsertPosition();
      saveOneEntry(position);
      break;
    case 2:
      status = 0;
      position = getInsertPosition();
      quantity = getInsertQuantity();
      saveMultipleEntries(position, quantity);
      break;
    case 3:
      status = 0;
      position = getInsertPosition();
      printEntries(getOneEntry(position), 1);
      break;
    case 4:
      status = 0;
      position = getInsertPosition();
      quantity = getInsertQuantity();
      printEntries(getMultipleEntries(position, quantity), quantity);
      break;
    default:
      status = 1;
      printf("\nPlease, select a valid option!!!");
      break;
    }
  } while (status == 1);
}
```