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

```asm
<main>:
  endbr64
  push   %r15
  xor    %eax,%eax
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  call   <fork@plt>
  test   %rax,%rax
  je     L12
  lea    D101(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L51:
  xor    %eax,%eax
  lea    D80(%rip),%r13
  lea    D33(%rip),%r15
  call   <calculator_operations@plt>
  lea    D12(%rip),%r14
  lea    D3(%rip),%r12
  lea    D41(%rip),%rbp
  lea    D9(%rip),%rbx
  nopl   0x0(%rax)
L3:
  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     L16
  movzbl %al,%eax
  movslq (%rbx,%rax,4),%rax
  add    %rbx,%rax
  notrack jmp *%rax
  nopw   0x0(%rax,%rax,1)
L16:
  mov    %r13,%rdi
  call   <system@plt>
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r14,%rdi
  call   <puts@plt>
  lea    D19(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D20(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <calculator_operations@plt>
  jmp    L3
  nopl   (%rax)
  xor    %edi,%edi
  call   <exit@plt>
  jmp    L3
  nopl   0x0(%rax)
  mov    %r13,%rdi
  call   <system@plt>
  xor    %eax,%eax
  call   <calculator_operations@plt>
  jmp    L3
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <power@plt>
  jmp    L3
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <modulus@plt>
  jmp    L3
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <division@plt>
  jmp    L3
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <subtraction@plt>
  jmp    L3
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <addition@plt>
  jmp    L3
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <multiplication@plt>
  jmp    L3
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <factorial@plt>
  jmp    L3
L12:
  lea    D13(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x1,%edi
  call   <sleep@plt>
  lea    D24(%rip),%rsi
  lea    D69(%rip),%rdi
  call   <execv@plt>
  jmp    L51
```

tool_calls: name: parse_data
arguments: label: D101
type_guessed: string
name: parse_data
arguments: label: D80
type_guessed: string
name: parse_data
arguments: label: D33
type_guessed: string
name: parse_data
arguments: label: D12
type_guessed: string
name: parse_data
arguments: label: D3
type_guessed: string
name: parse_data
arguments: label: D41
type_guessed: string
name: parse_data
arguments: label: D19
type_guessed: string
name: parse_data
arguments: label: D20
type_guessed: string
name: parse_data
arguments: label: D13
type_guessed: string
name: parse_data
arguments: label: D69
type_guessed: string

tool: D101: I'm the Father program.

tool: D80: cls

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

tool: D12: ***********

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

tool: D41: %s : 

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

tool: D20: options****

tool: D13: I'm the Son program.

tool: D69: ./SimpleCalculator

assistant: ```c
int main() {
  int X = 1;
  char Calc_oprn;
  int pid, status;
  if (fork()) {
    printf("I'm the Father program.");
  } else {
    printf("I'm the Son program.");
    sleep(1);
    static char *argv[] = {"SimpleCalculator", ".", NULL};
    execv("./SimpleCalculator", argv);
  }
  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();
    }
  }
}
```