user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %r15
  lea    D89(%rip),%r15
  push   %r14
  lea    D58(%rip),%r14
  push   %r13
  lea    D71(%rip),%r13
  push   %r12
  lea    D7(%rip),%r12
  push   %rbp
  push   %rbx
  lea    D78(%rip),%rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  movl   $0x0,0xc(%rsp)
  lea    0x1f(%rsp),%rbp
  nopw   0x0(%rax,%rax,1)
L46:
  mov    %r13,%rdi
  call   <puts@plt>
  mov    %r12,%rdi
  call   <puts@plt>
  xor    %eax,%eax
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  cmpb   $0x32,0x1f(%rsp)
  je     L137
  mov    %r15,%rdi
  call   <puts@plt>
  lea    0x24(%rsp),%rcx
  mov    %r14,%rdi
  xor    %eax,%eax
  lea    0x1e(%rsp),%rdx
  lea    0x20(%rsp),%rsi
  call   <scanf@plt>
  movzbl 0x1e(%rsp),%eax
  cmp    $0x2f,%al
  je     L100
  sub    $0x25,%eax
  cmp    $0x8,%al
  ja     L15
  lea    D74(%rip),%rdx
  movzbl %al,%eax
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  nopl   0x0(%rax)
L15:
  lea    D10(%rip),%rdi
  call   <puts@plt>
  nopl   0x0(%rax)
L78:
  pxor   %xmm0,%xmm0
  lea    D75(%rip),%rdi
  mov    $0x1,%eax
  cvtss2sd 0xc(%rsp),%xmm0
  call   <printf@plt>
  cmpb   $0x31,0x1f(%rsp)
  je     L46
L56:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L49
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
  movss  0x20(%rsp),%xmm0
  subss  0x24(%rsp),%xmm0
  movss  %xmm0,0xc(%rsp)
  jmp    L78
  nopl   0x0(%rax)
  movss  0x20(%rsp),%xmm0
  mulss  0x24(%rsp),%xmm0
  movss  %xmm0,0xc(%rsp)
  jmp    L78
  nopl   0x0(%rax)
  cvttss2si 0x20(%rsp),%eax
  pxor   %xmm3,%xmm3
  cvttss2si 0x24(%rsp),%ecx
  cltd
  idiv   %ecx
  cvtsi2ss %edx,%xmm3
  movss  %xmm3,0xc(%rsp)
  jmp    L78
  nopw   0x0(%rax,%rax,1)
  movss  0x20(%rsp),%xmm0
  addss  0x24(%rsp),%xmm0
  movss  %xmm0,0xc(%rsp)
  jmp    L78
  nop
L100:
  movss  0x24(%rsp),%xmm0
  pxor   %xmm2,%xmm2
  ucomiss %xmm2,%xmm0
  jp     L121
  je     L72
L121:
  movss  0x20(%rsp),%xmm1
  divss  %xmm0,%xmm1
  movss  %xmm1,0xc(%rsp)
  jmp    L78
L137:
  lea    D98(%rip),%rdi
  call   <puts@plt>
  jmp    L56
L72:
  lea    D19(%rip),%rdi
  call   <puts@plt>
  jmp    L56
L49:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D89
type_infered: string
name: parse_data
arguments: label: D58
type_infered: string
name: parse_data
arguments: label: D71
type_infered: string
name: parse_data
arguments: label: D7
type_infered: string
name: parse_data
arguments: label: D78
type_infered: string
name: parse_data
arguments: label: D10
type_infered: string
name: parse_data
arguments: label: D75
type_infered: string
name: parse_data
arguments: label: D98
type_infered: string
name: parse_data
arguments: label: D19
type_infered: string

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

tool: D58: %f %c %f

tool: D71: (1) Calcular

tool: D7: (2) Sair

tool: D78:  %c

tool: D10: SINAL ERRADO

tool: D75: %.2f


tool: D98: SAINDO

tool: D19: Operacao nao permitida, SAINDO

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;
}
```