user: 请从给定的汇编指令推导出C源代码:

```asm
<main>:
  endbr64
  push   %r13
  lea    D35(%rip),%rdi
  push   %r12
  push   %rbp
  lea    D78(%rip),%rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%r12
  call   <printf@plt>
  lea    D53(%rip),%rdi
  call   <printf@plt>
  lea    D120(%rip),%rdi
  call   <printf@plt>
  lea    D50(%rip),%rdi
  call   <printf@plt>
  lea    D13(%rip),%rdi
  call   <printf@plt>
  lea    D23(%rip),%rdi
  call   <printf@plt>
  lea    D54(%rip),%rdi
  call   <printf@plt>
  lea    D32(%rip),%rdi
  call   <printf@plt>
  lea    D28(%rip),%rdi
  call   <printf@plt>
  lea    D101(%rip),%rdi
  call   <printf@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  mov    0x4(%rsp),%eax
  cmp    $0x9,%eax
  jg     L112
  lea    D12(%rip),%r13
  lea    D58(%rip),%rbx
  nopl   0x0(%rax)
L20:
  cmp    $0x9,%eax
  ja     L43
  movslq (%rbx,%rax,4),%rax
  add    %rbx,%rax
  notrack jmp *%rax
  nopw   0x0(%rax,%rax,1)
  xor    %eax,%eax
  call   <insert_node@plt>
  nopw   0x0(%rax,%rax,1)
L43:
  mov    %r13,%rdi
  call   <printf@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  mov    0x4(%rsp),%eax
  cmp    $0x9,%eax
  jle    L20
L112:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L45
  add    $0x18,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   (%rax)
  xor    %eax,%eax
  call   <sort@plt>
  jmp    L43
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <display@plt>
  jmp    L43
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <insert_pos@plt>
  jmp    L43
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <insert_info@plt>
  jmp    L43
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <insert_last@plt>
  jmp    L43
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <insert_first@plt>
  jmp    L43
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <delete_last@plt>
  jmp    L43
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <delete_first@plt>
  jmp    L43
L45:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D35
datatype: string
name: extract_symbolic_data
arguments: tag: D78
datatype: string
name: extract_symbolic_data
arguments: tag: D53
datatype: string
name: extract_symbolic_data
arguments: tag: D120
datatype: string
name: extract_symbolic_data
arguments: tag: D50
datatype: string
name: extract_symbolic_data
arguments: tag: D13
datatype: string
name: extract_symbolic_data
arguments: tag: D23
datatype: string
name: extract_symbolic_data
arguments: tag: D54
datatype: string
name: extract_symbolic_data
arguments: tag: D32
datatype: string
name: extract_symbolic_data
arguments: tag: D28
datatype: string
name: extract_symbolic_data
arguments: tag: D101
datatype: string
name: extract_symbolic_data
arguments: tag: D12
datatype: string

tool: D35: MAIN MENU 


tool: D78: %d

tool: D53: 1.INSERT AT BEGINING 


tool: D120: 2.INSERT AT LAST 


tool: D50: 3.DELETE AT BEGINING 


tool: D13: 4.DELETE AT LAST 


tool: D23: 5.SEARCH INFO


tool: D54: 6.SEARCH POSITION 


tool: D32: 7.DISPLAY 


tool: D28: 8.SORT 


tool: D101: ENTER YOUR CHOICE 


tool: D12: 
 ENTER YOUR CHOICE 


assistant: ```c
int main() {
  char ch;
  int choice;
  printf("MAIN MENU \n");
  printf("1.INSERT AT BEGINING \n");
  printf("2.INSERT AT LAST \n");
  printf("3.DELETE AT BEGINING \n");
  printf("4.DELETE AT LAST \n");
  printf("5.SEARCH INFO\n");
  printf("6.SEARCH POSITION \n");
  printf("7.DISPLAY \n");
  printf("8.SORT \n");
  printf("ENTER YOUR CHOICE \n");
  scanf("%d", &choice);
  while (choice < 10) {
    switch (choice) {
    case 1:
      insert_first();
      break;
    case 2:
      insert_last();
      break;
    case 3:
      delete_first();
      break;
    case 4:
      delete_last();
      break;
    case 5:
      insert_info();
      break;
    case 6:
      insert_pos();
      break;
    case 7:
      display();
      break;
    case 8:
      sort();
      break;
    case 9:
      insert_node();
      break;
    }
    printf("\n ENTER YOUR CHOICE \n");
    scanf("%d", &choice);
  }
  return 0;
}
```