user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    D29(%rip),%rdi
  call   <printf@plt>
  lea    0x7(%rsp),%rsi
  lea    D50(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D85(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rdx
  lea    0x8(%rsp),%rsi
  lea    D79(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movzbl 0x7(%rsp),%eax
  cmp    $0x2d,%al
  je     L56
  jg     L26
  cmp    $0x2a,%al
  je     L13
  cmp    $0x2b,%al
  jne    L62
  movsd  0x8(%rsp),%xmm0
  movsd  0x10(%rsp),%xmm1
  movapd %xmm0,%xmm2
  addsd  %xmm1,%xmm2
  lea    D9(%rip),%rdi
  mov    $0x3,%eax
  call   <printf@plt>
L12:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L75
  mov    $0x0,%eax
  add    $0x28,%rsp
  ret
L26:
  cmp    $0x2f,%al
  jne    L62
  movsd  0x8(%rsp),%xmm0
  movsd  0x10(%rsp),%xmm1
  movapd %xmm0,%xmm2
  divsd  %xmm1,%xmm2
  lea    D82(%rip),%rdi
  mov    $0x3,%eax
  call   <printf@plt>
  jmp    L12
L56:
  movsd  0x8(%rsp),%xmm0
  movsd  0x10(%rsp),%xmm1
  movapd %xmm0,%xmm2
  subsd  %xmm1,%xmm2
  lea    D32(%rip),%rdi
  mov    $0x3,%eax
  call   <printf@plt>
  jmp    L12
L13:
  movsd  0x8(%rsp),%xmm0
  movsd  0x10(%rsp),%xmm1
  movapd %xmm0,%xmm2
  mulsd  %xmm1,%xmm2
  lea    D2(%rip),%rdi
  mov    $0x3,%eax
  call   <printf@plt>
  jmp    L12
L62:
  lea    D75(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L12
L75:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D29
type_infered: string
name: disassemble_data
arguments: data_tag: D50
type_infered: string
name: disassemble_data
arguments: data_tag: D85
type_infered: string
name: disassemble_data
arguments: data_tag: D79
type_infered: string
name: disassemble_data
arguments: data_tag: D9
type_infered: string
name: disassemble_data
arguments: data_tag: D82
type_infered: string
name: disassemble_data
arguments: data_tag: D32
type_infered: string
name: disassemble_data
arguments: data_tag: D2
type_infered: string
name: disassemble_data
arguments: data_tag: D75
type_infered: string

tool: D29: Enter an operator (+, -, *,/): 

tool: D50: %c

tool: D85: Enter two numbers: 

tool: D79: %lf %lf

tool: D9: The result of the operation %.1lf + %.1lf = %.1lf

tool: D82: The result of the operation %.1lf / %.1lf = %.1lf

tool: D32: The result of the operation %.1lf - %.1lf = %.1lf

tool: D2: The result of the operation %.1lf * %.1lf = %.1lf

tool: D75: Error! The entered operator is invalid

assistant: ```c
int main() {
  char op;
  double num1, num2;
  printf("Enter an operator (+, -, *,/): ");
  scanf("%c", &op);
  printf("Enter two numbers: ");
  scanf("%lf %lf", &num1, &num2);
  switch (op) {
  case '+':
    printf("The result of the operation %.1lf + %.1lf = %.1lf", num1, num2, num1 + num2);
    break;
  case '-':
    printf("The result of the operation %.1lf - %.1lf = %.1lf", num1, num2, num1 - num2);
    break;
  case '*':
    printf("The result of the operation %.1lf * %.1lf = %.1lf", num1, num2, num1 * num2);
    break;
  case '/':
    printf("The result of the operation %.1lf / %.1lf = %.1lf", num1, num2, num1 / num2);
    break;
  default:
    printf("Error! The entered operator is invalid");
  }
  return 0;
}
```