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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D39(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0xc(%rbp),%rcx
  lea    -0x11(%rbp),%rdx
  lea    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D5(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  movzbl -0x11(%rbp),%eax
  movsbl %al,%eax
  cmp    $0x2f,%eax
  je     L26
  cmp    $0x2f,%eax
  jg     L21
  cmp    $0x2d,%eax
  je     L3
  cmp    $0x2d,%eax
  jg     L21
  cmp    $0x2a,%eax
  je     L37
  cmp    $0x2b,%eax
  jne    L21
  movss  -0x10(%rbp),%xmm1
  movss  -0xc(%rbp),%xmm0
  addss  %xmm1,%xmm0
  pxor   %xmm2,%xmm2
  cvtss2sd %xmm0,%xmm2
  movq   %xmm2,%rax
  movq   %rax,%xmm0
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L104
L3:
  movss  -0x10(%rbp),%xmm0
  movss  -0xc(%rbp),%xmm1
  subss  %xmm1,%xmm0
  pxor   %xmm3,%xmm3
  cvtss2sd %xmm0,%xmm3
  movq   %xmm3,%rax
  movq   %rax,%xmm0
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L104
L37:
  movss  -0x10(%rbp),%xmm1
  movss  -0xc(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  pxor   %xmm4,%xmm4
  cvtss2sd %xmm0,%xmm4
  movq   %xmm4,%rax
  movq   %rax,%xmm0
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L104
L26:
  movss  -0xc(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  ucomiss %xmm1,%xmm0
  jp     L62
  pxor   %xmm1,%xmm1
  ucomiss %xmm1,%xmm0
  jne    L62
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L104
L62:
  movss  -0x10(%rbp),%xmm0
  movss  -0xc(%rbp),%xmm1
  divss  %xmm1,%xmm0
  pxor   %xmm5,%xmm5
  cvtss2sd %xmm0,%xmm5
  movq   %xmm5,%rax
  movq   %rax,%xmm0
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L104
L21:
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  nop
L104:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L7
  call   <__stack_chk_fail@plt>
L7:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D39
type_infered: string
name: retrieve_data
arguments: data_tag: D5
type_infered: string
name: retrieve_data
arguments: data_tag: D7
type_infered: string
name: retrieve_data
arguments: data_tag: D6
type_infered: string
name: retrieve_data
arguments: data_tag: D17
type_infered: string

tool: D39: Type in your expression.

tool: D5: %f %c %f

tool: D7: %.2f


tool: D6: Division by zero.

tool: D17: Unknown operator.

assistant: ```c
int main(void) {
  float value1, value2;
  char operator;
  printf("Type in your expression.\n");
  scanf("%f %c %f", &value1, &operator, & value2);
  switch (operator) {
  case '+':
    printf("%.2f\n", value1 + value2);
    break;
  case '-':
    printf("%.2f\n", value1 - value2);
    break;
  case '*':
    printf("%.2f\n", value1 * value2);
    break;
  case '/':
    if (value2 == 0)
      printf("Division by zero.");
    else
      printf("%.2f\n", value1 / value2);
    break;
  default:
    printf("Unknown operator.\n");
    break;
  }
  return 0;
}
```