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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x10(%rbp)
L23:
  lea    D72(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D76(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D74(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x1c(%rbp),%rax
  mov    %rax,%rsi
  lea    D54(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x1c(%rbp),%eax
  cmp    $0x3,%eax
  je     L82
  cmp    $0x3,%eax
  jg     L70
  cmp    $0x1,%eax
  je     L21
  cmp    $0x2,%eax
  je     L72
  jmp    L70
L21:
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x18(%rbp),%rax
  mov    %rax,%rsi
  lea    D54(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x18(%rbp),%edx
  mov    -0x10(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <insertAtEnd@plt>
  mov    %rax,-0x10(%rbp)
  jmp    L93
L72:
  lea    D89(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x14(%rbp),%rax
  mov    %rax,%rsi
  lea    D54(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x14(%rbp),%edx
  mov    -0x10(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <getNth@plt>
  mov    %eax,-0x18(%rbp)
  mov    -0x18(%rbp),%edx
  mov    -0x14(%rbp),%eax
  mov    %eax,%esi
  lea    D92(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L93
L70:
  lea    D68(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L93
L82:
  nop
L93:
  mov    -0x1c(%rbp),%eax
  cmp    $0x3,%eax
  jne    L23
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L28
  call   <__stack_chk_fail@plt>
L28:
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D72
data_type: string
name: parse_data
arguments: label: D76
data_type: string
name: parse_data
arguments: label: D74
data_type: string
name: parse_data
arguments: label: D54
data_type: string
name: parse_data
arguments: label: D0
data_type: string
name: parse_data
arguments: label: D89
data_type: string
name: parse_data
arguments: label: D92
data_type: string
name: parse_data
arguments: label: D68
data_type: string

tool: D72: 1. Insert element into a linked list

tool: D76: 2. Find nth element in the linked list

tool: D74: Enter choice

tool: D54: %d

tool: D0: Enter the number to be inserted

tool: D89: Enter the value of n

tool: D92: The %dth element in the linked list is %d


tool: D68: Invalid choice

assistant: ```c
int main(void) {
  struct item *start = NULL;
  int choice, number, n;
  do {
    printf("1. Insert element into a linked list\n");
    printf("2. Find nth element in the linked list\n");
    printf("Enter choice\n");
    scanf("%d", &choice);
    switch (choice) {
    case 1:
      printf("Enter the number to be inserted\n");
      scanf("%d", &number);
      start = insertAtEnd(start, number);
      break;
    case 2:
      printf("Enter the value of n\n");
      scanf("%d", &n);
      number = getNth(start, n);
      printf("The %dth element in the linked list is %d\n", n, number);
      break;
    case 3:
      break;
    default:
      printf("Invalid choice\n");
    }
  } while (choice != 3);
  return 0;
}
```