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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
L28:
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D147(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D137(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D99(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D202(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D158(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D209(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D30(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D130(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D184(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D85(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D215(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D44(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D50(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0xc(%rbp),%rax
  mov    %rax,%rsi
  lea    D33(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D88(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0xc(%rbp),%eax
  cmp    $0xe,%eax
  ja     L155
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  lea    D124(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D124(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  mov    $0x0,%eax
  call   <one@plt>
  jmp    L125
  mov    $0x0,%eax
  call   <two@plt>
  jmp    L125
  mov    $0x0,%eax
  call   <three@plt>
  jmp    L125
  mov    $0x0,%eax
  call   <four@plt>
  jmp    L125
  mov    $0x0,%eax
  call   <five@plt>
  jmp    L125
  mov    $0x0,%eax
  call   <six@plt>
  jmp    L125
  mov    $0x0,%eax
  call   <seven@plt>
  jmp    L125
  mov    $0x0,%eax
  call   <eight@plt>
  jmp    L125
  mov    $0x0,%eax
  call   <nine@plt>
  jmp    L125
  mov    $0x0,%eax
  call   <ten@plt>
  jmp    L125
  mov    $0x0,%eax
  call   <eleven@plt>
  jmp    L125
  mov    $0x0,%eax
  call   <twelve@plt>
  jmp    L125
  mov    $0x0,%eax
  call   <thirteen@plt>
  jmp    L125
  mov    $0x0,%eax
  call   <fourteen@plt>
  jmp    L125
L155:
  lea    D53(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L125
  nop
L125:
  mov    -0xc(%rbp),%eax
  test   %eax,%eax
  jne    L28
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L177
  call   <__stack_chk_fail@plt>
L177:
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D29
data_type: string
name: parse_data
arguments: label: D147
data_type: string
name: parse_data
arguments: label: D137
data_type: string
name: parse_data
arguments: label: D6
data_type: string
name: parse_data
arguments: label: D99
data_type: string
name: parse_data
arguments: label: D7
data_type: string
name: parse_data
arguments: label: D202
data_type: string
name: parse_data
arguments: label: D158
data_type: string
name: parse_data
arguments: label: D209
data_type: string
name: parse_data
arguments: label: D30
data_type: string
name: parse_data
arguments: label: D1
data_type: string
name: parse_data
arguments: label: D130
data_type: string
name: parse_data
arguments: label: D184
data_type: string
name: parse_data
arguments: label: D85
data_type: string
name: parse_data
arguments: label: D215
data_type: string
name: parse_data
arguments: label: D44
data_type: string
name: parse_data
arguments: label: D50
data_type: string
name: parse_data
arguments: label: D33
data_type: string
name: parse_data
arguments: label: D88
data_type: string
name: parse_data
arguments: label: D53
data_type: string

tool: D29: 
MAIN MENU



tool: D147:  0.	exit


tool: D137:  1.	program to generate a mathematical table


tool: D6:  2.	program to generate the roman numeral representation


tool: D99:  3.	program to solve a biquadratic equation


tool: D7:  4.	program to generate the sine curve


tool: D202:  5.	program to generate statistical markers


tool: D158:  6.	program to generate the prime factorisation


tool: D209:  7.	program to generate a formatted date


tool: D30:  8.	program to gauge the accuracy of computation


tool: D1:  9.	program to generate the binary equivalent


tool: D130: 10.	program to generate the sine


tool: D184: 11.	program to demostrate linear search


tool: D85: 12.	program to demostrate insertion sort


tool: D215: 13.	program to manipulate complex numbers


tool: D44: 14.	program to generate terms of a polynomial series


tool: D50: 
select option (int): 

tool: D33: %d

tool: D88: 


tool: D53: invalid input


assistant: ```c
int main() {
  int index;
  do {
    printf("\nMAIN MENU\n\n");
    printf(" 0.\texit\n");
    printf(" 1.\tprogram to generate a mathematical table\n");
    printf(" 2.\tprogram to generate the roman numeral representation\n");
    printf(" 3.\tprogram to solve a biquadratic equation\n");
    printf(" 4.\tprogram to generate the sine curve\n");
    printf(" 5.\tprogram to generate statistical markers\n");
    printf(" 6.\tprogram to generate the prime factorisation\n");
    printf(" 7.\tprogram to generate a formatted date\n");
    printf(" 8.\tprogram to gauge the accuracy of computation\n");
    printf(" 9.\tprogram to generate the binary equivalent\n");
    printf("10.\tprogram to generate the sine\n");
    printf("11.\tprogram to demostrate linear search\n");
    printf("12.\tprogram to demostrate insertion sort\n");
    printf("13.\tprogram to manipulate complex numbers\n");
    printf("14.\tprogram to generate terms of a polynomial series\n");
    printf("\nselect option (int): ");
    scanf("%d", &index);
    printf("\n");
    switch (index) {
    case 0:
      break;
    case 1:
      one();
      break;
    case 2:
      two();
      break;
    case 3:
      three();
      break;
    case 4:
      four();
      break;
    case 5:
      five();
      break;
    case 6:
      six();
      break;
    case 7:
      seven();
      break;
    case 8:
      eight();
      break;
    case 9:
      nine();
      break;
    case 10:
      ten();
      break;
    case 11:
      eleven();
      break;
    case 12:
      twelve();
      break;
    case 13:
      thirteen();
      break;
    case 14:
      fourteen();
      break;
    default:
      printf("invalid input\n");
    }
  } while (index);
  return 0;
}
```