user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x24(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  lea    D100(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x10(%rbp),%rcx
  lea    -0x19(%rbp),%rdx
  lea    -0x18(%rbp),%rax
  mov    %rax,%rsi
  lea    D42(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  movzbl -0x19(%rbp),%eax
  movsbl %al,%eax
  sub    $0x25,%eax
  cmp    $0xa,%eax
  ja     L39
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  lea    D108(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D108(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  movsd  -0x18(%rbp),%xmm1
  movsd  -0x10(%rbp),%xmm0
  addsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  lea    D92(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L102
  movsd  -0x18(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  lea    D92(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L102
  movsd  -0x18(%rbp),%xmm1
  movsd  -0x10(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  lea    D92(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L102
  movsd  -0x10(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jp     L85
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jne    L85
  lea    D77(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L102
L85:
  movsd  -0x18(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  lea    D92(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L102
  movsd  -0x10(%rbp),%xmm0
  cvttsd2si %xmm0,%rax
  test   %rax,%rax
  jne    L48
  lea    D77(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L102
L48:
  movsd  -0x18(%rbp),%xmm0
  cvttsd2si %xmm0,%rax
  movsd  -0x10(%rbp),%xmm0
  cvttsd2si %xmm0,%rcx
  cqto
  idiv   %rcx
  mov    %rdx,%rax
  mov    %rax,%rsi
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L102
L39:
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  nop
L102:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L56
  call   <__stack_chk_fail@plt>
L56:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D100
type: string
name: retrieve_data
arguments: tag: D42
type: string
name: retrieve_data
arguments: tag: D92
type: string
name: retrieve_data
arguments: tag: D77
type: string
name: retrieve_data
arguments: tag: D31
type: string
name: retrieve_data
arguments: tag: D2
type: string

tool: D100: 
Please input the calc:

tool: D42: %lf %c %lf

tool: D92: = %lf


tool: D77: 
Devision by zero error!!

tool: D31: = %ld


tool: D2: Invalid operation type!

assistant: ```c
int main(int argc, char *argv[]) {
  double num1 = 0.0;
  double num2 = 0.0;
  char opera;
  printf("\nPlease input the calc:\n");
  scanf("%lf %c %lf", &num1, &opera, &num2);
  switch (opera) {
  case '+':
    printf("= %lf\n", num1 + num2);
    break;
  case '-':
    printf("= %lf\n", num1 - num2);
    break;
  case '*':
    printf("= %lf\n", num1 * num2);
    break;
  case '/':
    if (num2 == 0) {
      printf("\nDevision by zero error!!\n");
    } else {
      printf("= %lf\n", num1 - num2);
    }
    break;
  case '%':
    if ((long)num2 == 0) {
      printf("\nDevision by zero error!!\n");
    } else {
      printf("= %ld\n", (long)num1 % (long)num2);
    }
    break;
  default:
    printf("Invalid operation type!\n");
    break;
  }
  return 0;
}
```