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

```asm
<main>:
  endbr64
  push   %r15
  lea    D6(%rip),%rdi
  lea    D59(%rip),%r15
  push   %r14
  lea    D31(%rip),%r14
  push   %r13
  push   %r12
  push   %rbp
  lea    D9(%rip),%rbp
  push   %rbx
  lea    D34(%rip),%rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    0x1f(%rsp),%r13
  lea    0x20(%rsp),%r12
  call   <puts@plt>
  movq   $0x0,0x8(%rsp)
  nopl   (%rax)
L57:
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  movzbl 0x1f(%rsp),%eax
  sub    $0x2a,%eax
  cmp    $0x29,%al
  ja     L41
  movzbl %al,%eax
  movslq (%rbx,%rax,4),%rax
  add    %rbx,%rax
  notrack jmp *%rax
  nopw   0x0(%rax,%rax,1)
L41:
  mov    %r15,%rdi
  call   <puts@plt>
  movsd  0x8(%rsp),%xmm0
  xchg   %ax,%ax
L37:
  mov    %r14,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L57
  nop
  movsd  0x20(%rsp),%xmm6
  movsd  %xmm6,0x8(%rsp)
  movapd %xmm6,%xmm0
  jmp    L37
  nopw   0x0(%rax,%rax,1)
  movsd  0x8(%rsp),%xmm0
  mov    %r14,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  xor    %eax,%eax
  lea    D16(%rip),%rdi
  call   <printf@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L66
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
  movsd  0x20(%rsp),%xmm0
  pxor   %xmm5,%xmm5
  ucomisd %xmm5,%xmm0
  jp     L53
  je     L107
L53:
  movsd  0x8(%rsp),%xmm4
  divsd  %xmm0,%xmm4
  movsd  %xmm4,0x8(%rsp)
  movapd %xmm4,%xmm0
  jmp    L37
  nopl   0x0(%rax,%rax,1)
  movsd  0x8(%rsp),%xmm2
  subsd  0x20(%rsp),%xmm2
  movsd  %xmm2,0x8(%rsp)
  movapd %xmm2,%xmm0
  jmp    L37
  nopl   0x0(%rax,%rax,1)
  movsd  0x8(%rsp),%xmm1
  addsd  0x20(%rsp),%xmm1
  movsd  %xmm1,0x8(%rsp)
  movapd %xmm1,%xmm0
  jmp    L37
  nopl   0x0(%rax,%rax,1)
  movsd  0x8(%rsp),%xmm3
  mulsd  0x20(%rsp),%xmm3
  movsd  %xmm3,0x8(%rsp)
  movapd %xmm3,%xmm0
  jmp    L37
L107:
  lea    D48(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  movsd  0x8(%rsp),%xmm0
  jmp    L37
L66:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D6
datatype: string
name: extract_symbolic_data
arguments: tag: D59
datatype: string
name: extract_symbolic_data
arguments: tag: D31
datatype: string
name: extract_symbolic_data
arguments: tag: D9
datatype: string
name: extract_symbolic_data
arguments: tag: D16
datatype: string
name: extract_symbolic_data
arguments: tag: D48
datatype: string

tool: D6: Begin Calculations

tool: D59: ERROR: Unknown operator!

tool: D31: = %f


tool: D9: %lf %c

tool: D16: End of Calculations

tool: D48: ERROR: Division by 0 is not allowed!

assistant: ```c
int main(void) {
  double accumulator;
  double number;
  char operator;
  bool isCalculating;
  accumulator = 0.0;
  isCalculating = true;
  printf("Begin Calculations\n");
  while (isCalculating) {
    scanf("%lf %c", &number, &operator);
    switch (operator) {
    case '+':
      accumulator += number;
      break;
    case '-':
      accumulator -= number;
      break;
    case '*':
      accumulator *= number;
      break;
    case '/':
      if (number == 0)
        printf("ERROR: Division by 0 is not allowed!");
      else
        accumulator /= number;
      break;
    case 'S':
      accumulator = number;
      break;
    case 'E':
      isCalculating = false;
      break;
    default:
      printf("ERROR: Unknown operator!\n");
      break;
    }
    printf("= %f\n", accumulator);
  }
  printf("End of Calculations");
  return 0;
}
```