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

```asm
<main>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  mov    D48(%rip),%rax
  mov    %rax,0x20(%rsp)
  mov    D64(%rip),%r12
  mov    %r12,0x10(%rsp)
  mov    %r12,0x8(%rsp)
  mov    %r12,%rbx
  lea    D74(%rip),%rbp
  jmp    L27
L6:
  movq   %rbx,%xmm2
  addsd  D69(%rip),%xmm2
  movq   %xmm2,%rbx
  ucomisd D147(%rip),%xmm0
  jp     L7
  jne    L7
  movsd  0x8(%rsp),%xmm3
  addsd  D69(%rip),%xmm3
  movsd  %xmm3,0x8(%rsp)
L27:
  lea    0x20(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  movsd  0x20(%rsp),%xmm0
  ucomisd D85(%rip),%xmm0
  jp     L6
  jne    L6
  movsd  0x8(%rsp),%xmm4
  movapd %xmm4,%xmm0
  movsd  0x10(%rsp),%xmm5
  addsd  %xmm5,%xmm0
  movapd %xmm0,%xmm6
  movq   %r12,%xmm1
  addsd  %xmm1,%xmm6
  movsd  %xmm6,0x18(%rsp)
  movq   %rbx,%xmm0
  subsd  %xmm6,%xmm0
  cvttsd2si %xmm1,%ecx
  cvttsd2si %xmm5,%edx
  cvttsd2si %xmm4,%esi
  cvttsd2si %xmm0,%r8d
  lea    D152(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movsd  0x10(%rsp),%xmm5
  comisd 0x8(%rsp),%xmm5
  jae    L135
  lea    D8(%rip),%rdi
  call   <puts@plt>
  jmp    L12
L7:
  ucomisd D37(%rip),%xmm0
  jp     L66
  jne    L66
  movsd  0x10(%rsp),%xmm7
  addsd  D69(%rip),%xmm7
  movsd  %xmm7,0x10(%rsp)
  jmp    L27
L66:
  ucomisd D64(%rip),%xmm0
  jp     L27
  jne    L27
  movq   %r12,%xmm4
  addsd  D69(%rip),%xmm4
  movq   %xmm4,%r12
  jmp    L27
L135:
  lea    D108(%rip),%rdi
  call   <puts@plt>
L12:
  movsd  D61(%rip),%xmm0
  movsd  0x10(%rsp),%xmm1
  mulsd  %xmm0,%xmm1
  mulsd  0x8(%rsp),%xmm0
  movsd  0x18(%rsp),%xmm7
  divsd  %xmm7,%xmm0
  divsd  %xmm7,%xmm1
  lea    D148(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L37
  mov    $0x0,%eax
  add    $0x30,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L37:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D48
type: f32[2]
name: unpack_data
arguments: tag: D64
type: f32[2]
name: unpack_data
arguments: tag: D74
type: string
name: unpack_data
arguments: tag: D69
type: f32[2]
name: unpack_data
arguments: tag: D147
type: f32[2]
name: unpack_data
arguments: tag: D85
type: f32[2]
name: unpack_data
arguments: tag: D152
type: string
name: unpack_data
arguments: tag: D8
type: string
name: unpack_data
arguments: tag: D37
type: f32[2]
name: unpack_data
arguments: tag: D108
type: string
name: unpack_data
arguments: tag: D61
type: f32[2]
name: unpack_data
arguments: tag: D148
type: string

tool: {"D48": [0.0,-3.38671875]}

tool: {"D64": [0.0,0.0]}

tool: D74: %lf

tool: {"D69": [0.0,1.875]}

tool: {"D147": [0.0,3.32421875]}

tool: {"D85": [0.0,-1.875]}

tool: D152: %d
%d
%d
%d


tool: D8: 83

tool: {"D37": [0.0,3.36328125]}

tool: D108: 93

tool: {"D61": [0.0,3.390625]}

tool: D148: %.2lf
%.2lf


assistant: ```c
int main(int argc, char const *argv[]) {
  double a = -99, v = 0, x = 0, y = 0, z = 0, w = 0;
  do {
    scanf("%lf", &a);
    if (a != -1) {
      v++;
      if (a == 83) {
        x++;
      } else if (a == 93) {
        y++;
      } else if (a == 0) {
        z++;
      }
    }
  } while (a != -1);
  printf("%d\n%d\n%d\n%d\n", (int)x, (int)y, (int)z, (int)(v - (x + y + z)));
  y >= x ? printf("93\n") : printf("83\n");
  printf("%.2lf\n%.2lf\n", (x * 100) / (x + y + z), (y * 100) / (x + y + z));
  return 0;
}
```