user: What is the c source code of the assembly code below:

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x50,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  cmp    $0x1,%edi
  jle    L151
  lea    -0x2(%rdi),%eax
  mov    %rsi,%rbx
  lea    D31(%rip),%r12
  lea    0x8(%rsi,%rax,8),%r13
  lea    0x10(%rsp),%rbp
  lea    D19(%rip),%r14
  jmp    L133
  nopl   0x0(%rax)
L51:
  test   %eax,%eax
  je     L83
  cmp    $0x2b,%eax
  jne    L97
  xor    %eax,%eax
  call   <pop@plt>
  xor    %eax,%eax
  movsd  %xmm0,0x8(%rsp)
  call   <pop@plt>
  addsd  0x8(%rsp),%xmm0
  call   <push@plt>
L35:
  cmp    %r13,%rbx
  je     L151
L133:
  mov    %r12,%rdi
  add    $0x8,%rbx
  call   <ungets@plt>
  mov    (%rbx),%rdi
  call   <ungets@plt>
  mov    %rbp,%rdi
  call   <getop@plt>
  cmp    $0x2d,%eax
  je     L156
  jle    L51
  cmp    $0x64,%eax
  je     L60
  cmp    $0x6d,%eax
  jne    L97
  xor    %eax,%eax
  call   <pop@plt>
  xor    %eax,%eax
  movsd  %xmm0,0x8(%rsp)
  call   <pop@plt>
  mulsd  0x8(%rsp),%xmm0
  call   <push@plt>
  jmp    L35
  nopl   0x0(%rax,%rax,1)
L156:
  xor    %eax,%eax
  call   <pop@plt>
  xor    %eax,%eax
  movsd  %xmm0,0x8(%rsp)
  call   <pop@plt>
  subsd  0x8(%rsp),%xmm0
  call   <push@plt>
  jmp    L35
L97:
  mov    %rbp,%rsi
  lea    D18(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L151:
  xor    %eax,%eax
  call   <pop@plt>
  lea    D8(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L72
  add    $0x50,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax)
L60:
  xor    %eax,%eax
  call   <pop@plt>
  pxor   %xmm5,%xmm5
  ucomisd %xmm5,%xmm0
  movapd %xmm0,%xmm1
  jp     L14
  je     L152
L14:
  xor    %eax,%eax
  movsd  %xmm1,0x8(%rsp)
  call   <pop@plt>
  movsd  0x8(%rsp),%xmm1
  divsd  %xmm1,%xmm0
  call   <push@plt>
  jmp    L35
  nopl   0x0(%rax,%rax,1)
L83:
  mov    %rbp,%rdi
  call   <atof@plt>
  call   <push@plt>
  jmp    L35
  nopw   0x0(%rax,%rax,1)
L152:
  mov    %r14,%rdi
  call   <puts@plt>
  jmp    L35
L72:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D31
type_infered: string
name: parse_data
arguments: label: D19
type_infered: string
name: parse_data
arguments: label: D18
type_infered: string
name: parse_data
arguments: label: D8
type_infered: string

tool: D31:  

tool: D19: math error: divide by 0

tool: D18: error: unindentified character %s


tool: D8: 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;
}
```