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

```asm
<main>:
  endbr64
  push   %r15
  xor    %eax,%eax
  lea    D51(%rip),%r15
  push   %r14
  lea    D0(%rip),%r14
  push   %r13
  lea    D22(%rip),%r13
  push   %r12
  lea    D71(%rip),%r12
  push   %rbp
  lea    D38(%rip),%rbp
  push   %rbx
  lea    D5(%rip),%rbx
  sub    $0x8,%rsp
  call   <calculator_operations@plt>
  nopl   0x0(%rax,%rax,1)
L42:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <getch@plt>
  sub    $0x21,%eax
  cmp    $0x50,%al
  ja     L71
  movzbl %al,%eax
  movslq (%rbx,%rax,4),%rax
  add    %rbx,%rax
  notrack jmp *%rax
  nopw   0x0(%rax,%rax,1)
L71:
  mov    %r13,%rdi
  call   <system@plt>
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r14,%rdi
  call   <puts@plt>
  lea    D33(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D9(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <calculator_operations@plt>
  jmp    L42
  nopl   (%rax)
  mov    %r13,%rdi
  call   <system@plt>
  xor    %eax,%eax
  call   <calculator_operations@plt>
  jmp    L42
  nopl   0x0(%rax)
  xor    %edi,%edi
  call   <exit@plt>
  jmp    L42
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <power@plt>
  jmp    L42
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <modulus@plt>
  jmp    L42
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <division@plt>
  jmp    L42
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <subtraction@plt>
  jmp    L42
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <addition@plt>
  jmp    L42
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <multiplication@plt>
  jmp    L42
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <factorial@plt>
  jmp    L42
```

tool_calls: name: unpack_data
arguments: label: D51
datatype: string
name: unpack_data
arguments: label: D0
datatype: string
name: unpack_data
arguments: label: D22
datatype: string
name: unpack_data
arguments: label: D71
datatype: string
name: unpack_data
arguments: label: D38
datatype: string
name: unpack_data
arguments: label: D33
datatype: string
name: unpack_data
arguments: label: D9
datatype: string

tool: D51: 
**********You have entered unavailable option

tool: D0: ***********

tool: D22: cls

tool: D71: Enter the calculator Operation you want to do:

tool: D38: %s : 

tool: D33: 
*****Please Enter any one of below available 

tool: D9: options****

assistant: ```c
int main() {
  int X = 1;
  char Calc_oprn;
  int pid = calculator_operations();
  while (X) {
    printf("\n");
    printf("%s : ", "Enter the calculator Operation you want to do:");
    Calc_oprn = getch();
    switch (Calc_oprn) {
    case '+':
      addition();
      break;
    case '-':
      subtraction();
      break;
    case '*':
      multiplication();
      break;
    case '/':
      division();
      break;
    case '?':
      modulus();
      break;
    case '!':
      factorial();
      break;
    case '^':
      power();
      break;
    case 'H':
    case 'h':
      calculator_operations();
      break;
    case 'Q':
    case 'q':
      exit(0);
      break;
    case 'c':
    case 'C':
      system("cls");
      calculator_operations();
      break;
    default:
      system("cls");
      printf("\n**********You have entered unavailable option");
      printf("***********\n");
      printf("\n*****Please Enter any one of below available ");
      printf("options****\n");
      calculator_operations();
    }
  }
}
```