user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
L68:
  lea    D37(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D39(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D98(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D80(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x10(%rbp),%eax
  cmp    $0x4,%eax
  je     L105
  cmp    $0x4,%eax
  jg     L1
  cmp    $0x3,%eax
  je     L133
  cmp    $0x3,%eax
  jg     L1
  cmp    $0x1,%eax
  je     L112
  cmp    $0x2,%eax
  je     L65
  jmp    L1
L112:
  lea    D50(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0xc(%rbp),%rax
  mov    %rax,%rsi
  lea    D80(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0xc(%rbp),%eax
  mov    %eax,%edi
  call   <insert@plt>
  jmp    L54
L65:
  mov    $0x0,%eax
  call   <delete@plt>
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  cmp    $0xffffffff,%eax
  je     L91
  mov    -0xc(%rbp),%eax
  mov    %eax,%esi
  lea    D83(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L91
L133:
  lea    D20(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  call   <display@plt>
  jmp    L54
L105:
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L54
L1:
  lea    D33(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L54
L91:
  nop
L54:
  mov    -0x10(%rbp),%eax
  cmp    $0x4,%eax
  jne    L68
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L119
  call   <__stack_chk_fail@plt>
L119:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D37
type_guessed: string
name: disassemble_data
arguments: data_tag: D39
type_guessed: string
name: disassemble_data
arguments: data_tag: D98
type_guessed: string
name: disassemble_data
arguments: data_tag: D80
type_guessed: string
name: disassemble_data
arguments: data_tag: D50
type_guessed: string
name: disassemble_data
arguments: data_tag: D83
type_guessed: string
name: disassemble_data
arguments: data_tag: D20
type_guessed: string
name: disassemble_data
arguments: data_tag: D9
type_guessed: string
name: disassemble_data
arguments: data_tag: D33
type_guessed: string

tool: D37: Linked List Implementation of QUEUE Operations ### 


tool: D39: Press 1-Insert, 2-Delete, 3-Display,4-Exit

tool: D98: Your option ? 

tool: D80: %d

tool: D50: Insert value of node: 

tool: D83: Deleted node: %d


tool: D20: Linked List Implementation of Queue: Status:

tool: D9: Terminating.

tool: D33: Invalid option

assistant: ```c
int main(void) {
  int opn, elem;
  do {
    printf("Linked List Implementation of QUEUE Operations ### \n\n");
    printf("Press 1-Insert, 2-Delete, 3-Display,4-Exit\n");
    printf("Your option ? ");
    scanf("%d", &opn);
    switch (opn) {
    case 1:
      printf("Insert value of node: ");
      scanf("%d", &elem);
      insert(elem);
      break;
    case 2:
      elem = delete ();
      if (elem != -1)
        printf("Deleted node: %d\n", elem);
      break;
    case 3:
      printf("Linked List Implementation of Queue: Status:\n");
      display();
      break;
    case 4:
      printf("Terminating.\n");
      break;
    default:
      printf("Invalid option\n");
    }
  } while (opn != 4);
}
```