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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
L130:
  lea    D105(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x15(%rbp),%rax
  mov    %rax,%rsi
  lea    D12(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movzbl -0x15(%rbp),%eax
  cmp    $0x32,%al
  jne    L21
  lea    D94(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L94
L21:
  lea    D109(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D107(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x10(%rbp),%rcx
  lea    -0x16(%rbp),%rdx
  lea    -0x14(%rbp),%rax
  mov    %rax,%rsi
  lea    D34(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movzbl -0x16(%rbp),%eax
  cmp    $0x2f,%al
  jne    L79
  movss  -0x10(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  ucomiss %xmm1,%xmm0
  jp     L79
  pxor   %xmm1,%xmm1
  ucomiss %xmm1,%xmm0
  jne    L79
  lea    D82(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  jmp    L48
L79:
  movzbl -0x16(%rbp),%eax
  movsbl %al,%eax
  sub    $0x25,%eax
  cmp    $0xa,%eax
  ja     L98
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  lea    D21(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D21(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  movss  -0x14(%rbp),%xmm1
  movss  -0x10(%rbp),%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  jmp    L22
  movss  -0x14(%rbp),%xmm0
  movss  -0x10(%rbp),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  jmp    L22
  movss  -0x14(%rbp),%xmm1
  movss  -0x10(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  jmp    L22
  movss  -0x14(%rbp),%xmm0
  movss  -0x10(%rbp),%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  jmp    L22
  movss  -0x14(%rbp),%xmm0
  cvttss2si %xmm0,%eax
  movss  -0x10(%rbp),%xmm0
  cvttss2si %xmm0,%ecx
  cltd
  idiv   %ecx
  mov    %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  %xmm0,-0xc(%rbp)
  jmp    L22
L98:
  lea    D103(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L22:
  pxor   %xmm2,%xmm2
  cvtss2sd -0xc(%rbp),%xmm2
  movq   %xmm2,%rax
  movq   %rax,%xmm0
  lea    D48(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  movzbl -0x15(%rbp),%eax
  cmp    $0x31,%al
  je     L130
L94:
  mov    $0x0,%eax
L48:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L117
  call   <__stack_chk_fail@plt>
L117:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D105
type_guessed: string
name: retrieve_data
arguments: label: D25
type_guessed: string
name: retrieve_data
arguments: label: D12
type_guessed: string
name: retrieve_data
arguments: label: D94
type_guessed: string
name: retrieve_data
arguments: label: D109
type_guessed: string
name: retrieve_data
arguments: label: D107
type_guessed: string
name: retrieve_data
arguments: label: D34
type_guessed: string
name: retrieve_data
arguments: label: D82
type_guessed: string
name: retrieve_data
arguments: label: D103
type_guessed: string
name: retrieve_data
arguments: label: D48
type_guessed: string

tool: D105: (1) Calcular

tool: D25: (2) Sair

tool: D12:  %c

tool: D94: SAINDO

tool: D109: Escreva o numero na seguinte forma 	 N1 * N2

tool: D107: Digite aqui o numero

tool: D34: %f %c %f

tool: D82: Operacao nao permitida, SAINDO

tool: D103: SINAL ERRADO

tool: D48: %f


assistant: ```c
int main() {
  float result;
  char sinal, continuar;
  float n1, n2;
  do {
    printf("(1) Calcular\n");
    printf("(2) Sair\n");
    scanf(" %c", &continuar);
    if (continuar == '2') {
      printf("SAINDO\n");
      break;
    }
    printf("Escreva o numero na seguinte forma \t N1 * N2\n");
    printf("Digite aqui o numero\n");
    scanf("%f %c %f", &n1, &sinal, &n2);
    if ((sinal == '/') && (n2 == 0)) {
      printf("Operacao nao permitida, SAINDO\n");
      return 0;
    } else {
      switch (sinal) {
      case '+':
        result = n1 + n2;
        break;
      case '-':
        result = n1 - n2;
        break;
      case '*':
        result = n1 * n2;
        break;
      case '/':
        result = n1 / n2;
        break;
      case '%':
        result = (int)n1 % (int)n2;
        break;
      default:
        printf("SINAL ERRADO\n");
      }
      printf("%f\n", result);
    }
  } while (continuar == '1');
  return 0;
}
```