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

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x40,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  cmp    $0x1,%edi
  jle    L10
  mov    %rsi,%rbx
  lea    -0x2(%rdi),%eax
  lea    0x8(%rsi,%rax,8),%r12
  lea    D42(%rip),%rbp
  lea    D26(%rip),%r13
  jmp    L45
L41:
  test   %eax,%eax
  je     L56
  cmp    $0x2b,%eax
  jne    L58
  mov    $0x0,%eax
  call   <pop@plt>
  movq   %xmm0,%r14
  mov    $0x0,%eax
  call   <pop@plt>
  movq   %r14,%xmm1
  addsd  %xmm1,%xmm0
  call   <push@plt>
  jmp    L90
L56:
  mov    %rsp,%rdi
  call   <atof@plt>
  call   <push@plt>
L90:
  cmp    %rbx,%r12
  je     L10
L45:
  mov    %rbp,%rdi
  call   <ungets@plt>
  add    $0x8,%rbx
  mov    (%rbx),%rdi
  call   <ungets@plt>
  mov    %rsp,%rdi
  call   <getop@plt>
  cmp    $0x2d,%eax
  je     L23
  jle    L41
  cmp    $0x64,%eax
  je     L147
  cmp    $0x6d,%eax
  jne    L58
  mov    $0x0,%eax
  call   <pop@plt>
  movq   %xmm0,%r14
  mov    $0x0,%eax
  call   <pop@plt>
  movq   %r14,%xmm3
  mulsd  %xmm3,%xmm0
  call   <push@plt>
  jmp    L90
L23:
  mov    $0x0,%eax
  call   <pop@plt>
  movq   %xmm0,%r14
  mov    $0x0,%eax
  call   <pop@plt>
  movq   %r14,%xmm2
  subsd  %xmm2,%xmm0
  call   <push@plt>
  jmp    L90
L147:
  mov    $0x0,%eax
  call   <pop@plt>
  movq   %xmm0,%r14
  ucomisd D5(%rip),%xmm0
  jp     L18
  jne    L18
  mov    %r13,%rdi
  call   <puts@plt>
  jmp    L90
L18:
  mov    $0x0,%eax
  call   <pop@plt>
  movq   %r14,%xmm6
  divsd  %xmm6,%xmm0
  call   <push@plt>
  jmp    L90
L58:
  mov    %rsp,%rsi
  lea    D37(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L10:
  mov    $0x0,%eax
  call   <pop@plt>
  lea    D21(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L55
  mov    $0x0,%eax
  add    $0x40,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L55:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D42
datatype: string
name: extract_symbolic_data
arguments: data_tag: D26
datatype: string
name: extract_symbolic_data
arguments: data_tag: D5
datatype: f64
name: extract_symbolic_data
arguments: data_tag: D37
datatype: string
name: extract_symbolic_data
arguments: data_tag: D21
datatype: string

tool: D42:  

tool: D26: math error: divide by 0

tool: D5: 0

tool: D37: error: unindentified character %s


tool: D21: result is %f


assistant: ```c
int main(int argc, char *argv[]) {
  double op2;
  char s[50];
  while (--argc > 0) {
    ungets(" ");
    ungets(*++argv);
    switch (getop(s)) {
    case 0:
      push(atof(s));
      break;
    case '+':
      push(pop() + pop());
      break;
    case '-':
      op2 = pop();
      push(pop() - op2);
      break;
    case 'm':
      push(pop() * pop());
      break;
    case 'd':
      op2 = pop();
      if (op2 != 0.0)
        push(pop() / op2);
      else
        printf("math error: divide by 0\n");
      break;
    default:
      printf("error: unindentified character %s\n", s);
      argc = 1;
      break;
    }
  }
  printf("result is %f\n", pop());
  return 0;
}
```