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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D58(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x10(%rbp),%rcx
  lea    -0x15(%rbp),%rdx
  lea    -0x14(%rbp),%rax
  mov    %rax,%rsi
  lea    D46(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  movzbl -0x15(%rbp),%eax
  cmp    $0x2a,%al
  jne    L81
  movss  -0x14(%rbp),%xmm1
  movss  -0x10(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  jmp    L128
L81:
  movzbl -0x15(%rbp),%eax
  cmp    $0x2b,%al
  jne    L0
  movss  -0x14(%rbp),%xmm1
  movss  -0x10(%rbp),%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  jmp    L128
L0:
  movzbl -0x15(%rbp),%eax
  cmp    $0x2d,%al
  jne    L73
  movss  -0x14(%rbp),%xmm0
  movss  -0x10(%rbp),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  jmp    L128
L73:
  movzbl -0x15(%rbp),%eax
  cmp    $0x2f,%al
  jne    L74
  movss  -0x10(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  ucomiss %xmm1,%xmm0
  jp     L83
  pxor   %xmm1,%xmm1
  ucomiss %xmm1,%xmm0
  je     L86
L83:
  movss  -0x14(%rbp),%xmm0
  movss  -0x10(%rbp),%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  jmp    L128
L86:
  lea    D24(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  jmp    L9
L74:
  lea    D53(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  jmp    L9
L128:
  pxor   %xmm1,%xmm1
  cvtss2sd -0xc(%rbp),%xmm1
  movss  -0x10(%rbp),%xmm0
  cvtss2sd %xmm0,%xmm0
  movzbl -0x15(%rbp),%eax
  movsbl %al,%edx
  movss  -0x14(%rbp),%xmm2
  pxor   %xmm3,%xmm3
  cvtss2sd %xmm2,%xmm3
  movq   %xmm3,%rax
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  mov    %edx,%esi
  movq   %rax,%xmm0
  lea    D18(%rip),%rax
  mov    %rax,%rdi
  mov    $0x3,%eax
  call   <printf@plt>
  mov    $0x0,%eax
L9:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L124
  call   <__stack_chk_fail@plt>
L124:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: label: D58
type_guessed: string
name: disassemble_data
arguments: label: D8
type_guessed: string
name: disassemble_data
arguments: label: D46
type_guessed: string
name: disassemble_data
arguments: label: D24
type_guessed: string
name: disassemble_data
arguments: label: D53
type_guessed: string
name: disassemble_data
arguments: label: D18
type_guessed: string

tool: D58: Enter two numbers and operator in format

tool: D8:  num1 operator num2

tool: D46: %f %c %f

tool: D24: Division by 0!

tool: D53: Invalid operator!

tool: D18: %f %c %f = %f


assistant: ```c
int main() {
  char op;
  float num1, num2, result;
  printf("Enter two numbers and operator in format\n");
  printf(" num1 operator num2\n");
  scanf("%f %c %f", &num1, &op, &num2);
  if (op == '*') {
    result = num1 * num2;
  } else if (op == '+') {
    result = num1 + num2;
  } else if (op == '-') {
    result = num1 - num2;
  } else if (op == '/') {
    if (num2) {
      result = num1 / num2;
    } else {
      printf("Division by 0!\n");
      return 0;
    }
  } else {
    printf("Invalid operator!\n");
    return 0;
  }
  printf("%f %c %f = %f\n", num1, op, num2, result);
  return 0;
}
```