user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xc(%rbp)
L96:
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D43(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x15(%rbp),%rax
  mov    %rax,%rsi
  lea    D45(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movzbl -0x15(%rbp),%eax
  cmp    $0x32,%al
  jne    L8
  lea    D35(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L14
L8:
  lea    D63(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x10(%rbp),%rcx
  lea    -0x16(%rbp),%rdx
  lea    -0x14(%rbp),%rax
  mov    %rax,%rsi
  lea    D46(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movzbl -0x16(%rbp),%eax
  cmp    $0x2f,%al
  jne    L23
  movss  -0x10(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  ucomiss %xmm1,%xmm0
  jp     L23
  pxor   %xmm1,%xmm1
  ucomiss %xmm1,%xmm0
  jne    L23
  lea    D78(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  jmp    L99
L23:
  movzbl -0x16(%rbp),%eax
  movsbl %al,%eax
  sub    $0x25,%eax
  cmp    $0xa,%eax
  ja     L108
  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    L100
  movss  -0x14(%rbp),%xmm0
  movss  -0x10(%rbp),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  jmp    L100
  movss  -0x14(%rbp),%xmm1
  movss  -0x10(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  jmp    L100
  movss  -0x14(%rbp),%xmm0
  movss  -0x10(%rbp),%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  jmp    L100
  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    L100
L108:
  lea    D75(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  nop
L100:
  pxor   %xmm2,%xmm2
  cvtss2sd -0xc(%rbp),%xmm2
  movq   %xmm2,%rax
  movq   %rax,%xmm0
  lea    D107(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  movzbl -0x15(%rbp),%eax
  cmp    $0x31,%al
  je     L96
L14:
  mov    $0x0,%eax
L99:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L101
  call   <__stack_chk_fail@plt>
L101:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: label: D2
type_infered: string
name: disassemble_data
arguments: label: D43
type_infered: string
name: disassemble_data
arguments: label: D45
type_infered: string
name: disassemble_data
arguments: label: D35
type_infered: string
name: disassemble_data
arguments: label: D63
type_infered: string
name: disassemble_data
arguments: label: D46
type_infered: string
name: disassemble_data
arguments: label: D78
type_infered: string
name: disassemble_data
arguments: label: D75
type_infered: string
name: disassemble_data
arguments: label: D107
type_infered: string

tool: D2: (1) Calcular

tool: D43: (2) Sair

tool: D45:  %c

tool: D35: SAINDO

tool: D63: Escreva expressao na seguinte forma: N1 [sinal] N2

tool: D46: %f %c %f

tool: D78: Operacao nao permitida, SAINDO

tool: D75: SINAL ERRADO

tool: D107: %.2f


assistant: ```c
int main() {
  float result = 0;
  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 expressao na seguinte forma: N1 [sinal] N2\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");
        break;
      }
      printf("%.2f\n", result);
    }
  } while (continuar == '1');
  return 0;
}
```