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

```asm
<main>:
  endbr64
  push   %r14
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  pxor   %xmm5,%xmm5
  movsd  %xmm5,0x8(%rsp)
  movq   %xmm5,%r14
  lea    D59(%rip),%rbx
  jmp    L197
L123:
  lea    D115(%rip),%rdi
  call   <printf@plt>
L199:
  movsd  0x8(%rsp),%xmm2
  addsd  (%rsp),%xmm2
  movsd  %xmm2,0x8(%rsp)
  movq   %r14,%xmm3
  addsd  D135(%rip),%xmm3
  movq   %xmm3,%r14
L197:
  lea    0x20(%rsp),%rcx
  lea    0x18(%rsp),%rdx
  lea    0x10(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  test   %rax,%rax
  je     L59
  movsd  0x10(%rsp),%xmm1
  ucomisd D142(%rip),%xmm1
  jp     L96
  jne    L96
  pxor   %xmm6,%xmm6
  ucomisd 0x18(%rsp),%xmm6
  jp     L96
  jne    L96
  ucomisd 0x20(%rsp),%xmm6
  jp     L96
  je     L59
L96:
  movsd  0x20(%rsp),%xmm0
  divsd  D87(%rip),%xmm0
  addsd  D135(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  mulsd  0x18(%rsp),%xmm0
  addsd  %xmm0,%xmm1
  mulsd  D137(%rip),%xmm1
  movsd  %xmm1,(%rsp)
  comisd D161(%rip),%xmm1
  ja     L123
  movsd  (%rsp),%xmm5
  comisd D109(%rip),%xmm5
  jae    L83
  movsd  (%rsp),%xmm7
  comisd D88(%rip),%xmm7
  jae    L42
  movsd  (%rsp),%xmm7
  comisd D96(%rip),%xmm7
  jae    L88
  movsd  (%rsp),%xmm6
  comisd D135(%rip),%xmm6
  jb     L199
  lea    D127(%rip),%rdi
  call   <printf@plt>
  jmp    L199
L83:
  lea    D102(%rip),%rdi
  call   <printf@plt>
  jmp    L199
L42:
  lea    D39(%rip),%rdi
  call   <printf@plt>
  jmp    L199
L88:
  lea    D94(%rip),%rdi
  call   <printf@plt>
  jmp    L199
L59:
  movsd  0x8(%rsp),%xmm0
  movq   %r14,%xmm6
  divsd  %xmm6,%xmm0
  comisd D109(%rip),%xmm0
  ja     L120
L64:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L1
  mov    $0x0,%eax
  add    $0x38,%rsp
  pop    %rbx
  pop    %r14
  ret
L120:
  lea    D145(%rip),%rdi
  call   <printf@plt>
  jmp    L64
L1:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D59
type_infered: string
name: parse_data
arguments: label: D115
type_infered: string
name: parse_data
arguments: label: D135
type_infered: f32[4]
name: parse_data
arguments: label: D142
type_infered: f32[2]
name: parse_data
arguments: label: D87
type_infered: f32[2]
name: parse_data
arguments: label: D137
type_infered: f32[2]
name: parse_data
arguments: label: D161
type_infered: f32[4]
name: parse_data
arguments: label: D109
type_infered: f32[4]
name: parse_data
arguments: label: D88
type_infered: f32[4]
name: parse_data
arguments: label: D96
type_infered: f32
name: parse_data
arguments: label: D127
type_infered: string
name: parse_data
arguments: label: D102
type_infered: string
name: parse_data
arguments: label: D39
type_infered: string
name: parse_data
arguments: label: D94
type_infered: string
name: parse_data
arguments: label: D145
type_infered: string

tool: D59: %lf%lf%lf

tool: D115: AQUI E BODYBUILDER!!


tool: {"D135": [0.0,1.875,0.0,1.75]}

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

tool: {"D87": [0.0,2.96875]}

tool: {"D137": [0.0,1.75]}

tool: {"D161": [0.0,3.21875,0.0,3.0625]}

tool: {"D109": [0.0,3.0625,0.0,2.6875]}

tool: {"D88": [0.0,2.6875,0.0,2.65625]}

tool: D96: 0

tool: D127: Nao vai da nao


tool: D102: Ta saindo da jaula o monstro!


tool: D39: Bora, hora do show! BIIR!


tool: D94: E 13


tool: D145: 
Aqui nois constroi fibra rapaz! Nao e agua com musculo!


assistant: ```c
int main() {
  double w1, w2, r, d = 0, e = 0, total = 0;
  while (scanf("%lf%lf%lf", &w1, &w2, &r)) {
    if (w1 == 0 && w2 == 0 && r == 0) {
      break;
    }
    d = 1 + (r / 30);
    d = (w1 * d) + (w2 * d);
    d = d / 2;
    if (d > 60) {
      printf("AQUI E BODYBUILDER!!\n");
    } else if (d >= 40) {
      printf("Ta saindo da jaula o monstro!\n");
    } else if (d >= 14) {
      printf("Bora, hora do show! BIIR!\n");
    } else if (d >= 13) {
      printf("E 13\n");
    } else if (d >= 1) {
      printf("Nao vai da nao\n");
    }
    total += d;
    e++;
  }
  if ((total / e) > 40) {
    printf("\nAqui nois constroi fibra rapaz! Nao e agua com musculo!\n");
  }
  return 0;
}
```