user: What would the C source look like for the assembly code provided here?

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x3a0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x3a0(%rbp)
  movl   $0x0,-0x39c(%rbp)
  movl   $0x0,-0x398(%rbp)
  movl   $0x0,-0x394(%rbp)
  lea    -0x390(%rbp),%rdx
  mov    $0x0,%eax
  mov    $0x64,%ecx
  mov    %rdx,%rdi
  rep stos %rax,%es:(%rdi)
  movq   $0x0,-0x70(%rbp)
  movq   $0x0,-0x68(%rbp)
  movq   $0x0,-0x60(%rbp)
  movq   $0x0,-0x58(%rbp)
  movq   $0x0,-0x50(%rbp)
  movq   $0x0,-0x48(%rbp)
  movq   $0x0,-0x40(%rbp)
  movq   $0x0,-0x38(%rbp)
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  movl   $0x0,-0x10(%rbp)
L278:
  movl   $0x0,-0x398(%rbp)
  jmp    L53
L139:
  addl   $0x1,-0x398(%rbp)
L53:
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    %eax,%edx
  mov    -0x398(%rbp),%eax
  cltq
  mov    %dl,-0x70(%rbp,%rax,1)
  mov    -0x398(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%eax
  cmp    $0x20,%al
  je     L47
  mov    -0x398(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%eax
  cmp    $0xa,%al
  jne    L139
L47:
  movl   $0x0,-0x3a0(%rbp)
  jmp    L59
L29:
  mov    -0x3a0(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%eax
  cmp    $0x21,%al
  jne    L60
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L218
  jmp    L176
L60:
  mov    -0x3a0(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%eax
  movsbl %al,%eax
  cmp    $0x2f,%eax
  je     L50
  cmp    $0x2f,%eax
  jg     L231
  cmp    $0x2d,%eax
  je     L119
  cmp    $0x2d,%eax
  jg     L231
  cmp    $0x2a,%eax
  je     L91
  cmp    $0x2b,%eax
  jne    L231
  cmpl   $0x1,-0x39c(%rbp)
  jle    L101
  mov    -0x39c(%rbp),%eax
  sub    $0x2,%eax
  cltq
  movsd  -0x390(%rbp,%rax,8),%xmm1
  mov    -0x39c(%rbp),%eax
  sub    $0x1,%eax
  cltq
  movsd  -0x390(%rbp,%rax,8),%xmm0
  addsd  %xmm1,%xmm0
  mov    -0x39c(%rbp),%eax
  cltq
  movsd  %xmm0,-0x390(%rbp,%rax,8)
  jmp    L49
L119:
  cmpl   $0x1,-0x39c(%rbp)
  jle    L68
  mov    -0x39c(%rbp),%eax
  sub    $0x2,%eax
  cltq
  movsd  -0x390(%rbp,%rax,8),%xmm0
  mov    -0x39c(%rbp),%eax
  sub    $0x1,%eax
  cltq
  movsd  -0x390(%rbp,%rax,8),%xmm1
  subsd  %xmm1,%xmm0
  mov    -0x39c(%rbp),%eax
  cltq
  movsd  %xmm0,-0x390(%rbp,%rax,8)
  jmp    L49
L91:
  cmpl   $0x1,-0x39c(%rbp)
  jle    L227
  mov    -0x39c(%rbp),%eax
  sub    $0x2,%eax
  cltq
  movsd  -0x390(%rbp,%rax,8),%xmm1
  mov    -0x39c(%rbp),%eax
  sub    $0x1,%eax
  cltq
  movsd  -0x390(%rbp,%rax,8),%xmm0
  mulsd  %xmm1,%xmm0
  mov    -0x39c(%rbp),%eax
  cltq
  movsd  %xmm0,-0x390(%rbp,%rax,8)
  jmp    L49
L50:
  cmpl   $0x1,-0x39c(%rbp)
  jle    L237
  mov    -0x39c(%rbp),%eax
  sub    $0x2,%eax
  cltq
  movsd  -0x390(%rbp,%rax,8),%xmm0
  mov    -0x39c(%rbp),%eax
  sub    $0x1,%eax
  cltq
  movsd  -0x390(%rbp,%rax,8),%xmm1
  divsd  %xmm1,%xmm0
  mov    -0x39c(%rbp),%eax
  cltq
  movsd  %xmm0,-0x390(%rbp,%rax,8)
  jmp    L49
L231:
  mov    -0x3a0(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%eax
  cmp    $0x2f,%al
  jle    L27
  mov    -0x3a0(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%eax
  cmp    $0x39,%al
  jg     L27
  mov    -0x39c(%rbp),%eax
  cltq
  movsd  -0x390(%rbp,%rax,8),%xmm1
  movsd  D3(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x3a0(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  addsd  %xmm1,%xmm0
  mov    -0x39c(%rbp),%eax
  cltq
  movsd  %xmm0,-0x390(%rbp,%rax,8)
  jmp    L27
L101:
  nop
  jmp    L49
L68:
  nop
  jmp    L49
L227:
  nop
  jmp    L49
L237:
  nop
  jmp    L49
L27:
  nop
L49:
  addl   $0x1,-0x3a0(%rbp)
L59:
  mov    -0x3a0(%rbp),%eax
  cmp    -0x398(%rbp),%eax
  jl     L29
  mov    -0x39c(%rbp),%eax
  cltq
  mov    -0x390(%rbp,%rax,8),%rax
  movq   %rax,%xmm0
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  addl   $0x1,-0x39c(%rbp)
  jmp    L278
L176:
  call   <__stack_chk_fail@plt>
L218:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: tag: D3
type: f64
name: unpack_data
arguments: tag: D4
type: string

tool: D3: 10

tool: D4: = %lf


assistant: ```c
int main(void) {
  int i = 0, countNum = 0, countBuff = 0, didMean = 0;
  double num[100] = {0.0};
  char buff[100] = "";
  while (1) {
    countBuff = 0;
    while ((buff[countBuff] = getchar()) != ' ' && buff[countBuff] != '\n') {
      countBuff++;
    }
    for (i = 0; i < countBuff; i++) {
      if (buff[i] == '!') {
        return 0;
      }
      switch (buff[i]) {
      case '+':
        if (countNum < 2) {
          break;
        }
        num[countNum] = num[countNum - 2] + num[countNum - 1];
        break;
      case '-':
        if (countNum < 2) {
          break;
        }
        num[countNum] = num[countNum - 2] - num[countNum - 1];
        break;
      case '*':
        if (countNum < 2) {
          break;
        }
        num[countNum] = num[countNum - 2] * num[countNum - 1];
        break;
      case '/':
        if (countNum < 2) {
          break;
        }
        num[countNum] = num[countNum - 2] / num[countNum - 1];
        break;
      default:
        if ('0' <= buff[i] && buff[i] <= '9') {
          num[countNum] = num[countNum] * 10.0 + ((buff[i]) - ('0'));
        }
        break;
      }
    }
    printf("= %lf\n", num[countNum]);
    countNum++;
  }
}
```