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

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    D149(%rip),%rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0x30(%rsp),%r13
  lea    0x28(%rsp),%r12
  movq   $0x0,0x10(%rsp)
  movq   $0x0,0x8(%rsp)
  lea    0x20(%rsp),%rbp
  jmp    L99
  nopl   0x0(%rax,%rax,1)
L116:
  comisd D91(%rip),%xmm0
  jae    L15
  comisd D10(%rip),%xmm0
  jae    L104
  comisd D165(%rip),%xmm0
  jae    L163
  comisd D84(%rip),%xmm0
  jb     L88
  lea    D50(%rip),%rdi
  movsd  %xmm0,0x18(%rsp)
  call   <printf@plt>
  movsd  0x18(%rsp),%xmm0
  nopl   0x0(%rax)
L88:
  addsd  0x10(%rsp),%xmm0
  movsd  D84(%rip),%xmm3
  addsd  0x8(%rsp),%xmm3
  movsd  %xmm0,0x10(%rsp)
  movsd  %xmm3,0x8(%rsp)
L99:
  mov    %r13,%rcx
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  test   %rax,%rax
  je     L166
  movsd  0x20(%rsp),%xmm0
  pxor   %xmm4,%xmm4
  movsd  0x28(%rsp),%xmm2
  movsd  0x30(%rsp),%xmm1
  ucomisd %xmm4,%xmm0
  jp     L74
  jne    L74
  ucomisd %xmm4,%xmm2
  jp     L74
  jne    L74
  ucomisd %xmm4,%xmm1
  jp     L74
  je     L166
L74:
  divsd  D53(%rip),%xmm1
  addsd  D84(%rip),%xmm1
  mulsd  %xmm1,%xmm0
  mulsd  %xmm2,%xmm1
  addsd  %xmm1,%xmm0
  mulsd  D121(%rip),%xmm0
  comisd D139(%rip),%xmm0
  jbe    L116
  lea    D76(%rip),%rdi
  movsd  %xmm0,0x18(%rsp)
  call   <printf@plt>
  movsd  0x18(%rsp),%xmm0
  jmp    L88
  nopl   0x0(%rax,%rax,1)
L15:
  lea    D48(%rip),%rdi
  movsd  %xmm0,0x18(%rsp)
  call   <printf@plt>
  movsd  0x18(%rsp),%xmm0
  jmp    L88
  nopl   (%rax)
L104:
  lea    D92(%rip),%rdi
  movsd  %xmm0,0x18(%rsp)
  call   <printf@plt>
  movsd  0x18(%rsp),%xmm0
  jmp    L88
  nopl   (%rax)
L163:
  lea    D17(%rip),%rdi
  movsd  %xmm0,0x18(%rsp)
  call   <printf@plt>
  movsd  0x18(%rsp),%xmm0
  jmp    L88
  nopl   (%rax)
L166:
  movsd  0x10(%rsp),%xmm0
  divsd  0x8(%rsp),%xmm0
  comisd D91(%rip),%xmm0
  ja     L18
L128:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L31
  add    $0x48,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L18:
  lea    D90(%rip),%rdi
  call   <printf@plt>
  jmp    L128
L31:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D149
type_guessed: string
name: retrieve_data
arguments: label: D91
type_guessed: f32[4]
name: retrieve_data
arguments: label: D10
type_guessed: f32[4]
name: retrieve_data
arguments: label: D165
type_guessed: f32
name: retrieve_data
arguments: label: D84
type_guessed: f32[4]
name: retrieve_data
arguments: label: D50
type_guessed: string
name: retrieve_data
arguments: label: D53
type_guessed: f32[2]
name: retrieve_data
arguments: label: D121
type_guessed: f32[2]
name: retrieve_data
arguments: label: D139
type_guessed: f32[4]
name: retrieve_data
arguments: label: D76
type_guessed: string
name: retrieve_data
arguments: label: D48
type_guessed: string
name: retrieve_data
arguments: label: D92
type_guessed: string
name: retrieve_data
arguments: label: D17
type_guessed: string
name: retrieve_data
arguments: label: D90
type_guessed: string

tool: D149: %lf%lf%lf

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

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

tool: D165: 0

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

tool: D50: Nao vai da nao


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

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

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

tool: D76: AQUI E BODYBUILDER!!


tool: D48: Ta saindo da jaula o monstro!


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


tool: D17: E 13


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