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

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    0x20(%rsp),%rsi
  lea    D166(%rip),%rdi
  call   <scanf@plt>
  movss  0x20(%rsp),%xmm0
  comiss D137(%rip),%xmm0
  jbe    L12
  mov    D137(%rip),%ebx
  mov    %ebx,0xc(%rsp)
  mov    %ebx,0x8(%rsp)
  mov    %ebx,0x4(%rsp)
  lea    0x24(%rsp),%r13
  lea    D166(%rip),%r12
  lea    D106(%rip),%rbp
  jmp    L67
L32:
  movss  0x8(%rsp),%xmm4
  addss  0x24(%rsp),%xmm4
  movss  %xmm4,0x8(%rsp)
L0:
  movss  D58(%rip),%xmm1
  addss  0x4(%rsp),%xmm1
  movss  %xmm1,0x4(%rsp)
  movss  0x20(%rsp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L6
L67:
  mov    %r13,%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    0x1f(%rsp),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movzbl 0x1f(%rsp),%eax
  cmp    $0x43,%al
  je     L32
  cmp    $0x52,%al
  je     L31
  movd   %ebx,%xmm3
  addss  0x24(%rsp),%xmm3
  movd   %xmm3,%ebx
  jmp    L0
L31:
  movss  0xc(%rsp),%xmm7
  addss  0x24(%rsp),%xmm7
  movss  %xmm7,0xc(%rsp)
  jmp    L0
L12:
  mov    D137(%rip),%ebx
  mov    %ebx,0xc(%rsp)
  mov    %ebx,0x8(%rsp)
L6:
  movss  0x8(%rsp),%xmm0
  addss  0xc(%rsp),%xmm0
  movaps %xmm0,%xmm6
  movd   %ebx,%xmm4
  addss  %xmm4,%xmm6
  movss  %xmm6,0x4(%rsp)
  movaps %xmm6,%xmm0
  lea    D151(%rip),%rdi
  call   <printf@plt>
  movss  0x8(%rsp),%xmm0
  lea    D147(%rip),%rdi
  call   <printf@plt>
  movss  0xc(%rsp),%xmm0
  lea    D96(%rip),%rdi
  call   <printf@plt>
  movd   %ebx,%xmm0
  lea    D91(%rip),%rdi
  call   <printf@plt>
  movss  0x8(%rsp),%xmm5
  divss  0x4(%rsp),%xmm5
  movaps %xmm5,%xmm0
  mulss  D46(%rip),%xmm0
  lea    D157(%rip),%rdi
  call   <printf@plt>
  movss  0xc(%rsp),%xmm0
  divss  0x4(%rsp),%xmm0
  mulss  D46(%rip),%xmm0
  lea    D122(%rip),%rdi
  call   <printf@plt>
  movd   %ebx,%xmm0
  divss  0x4(%rsp),%xmm0
  mulss  D46(%rip),%xmm0
  lea    D27(%rip),%rdi
  call   <printf@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L13
  mov    $0x0,%eax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L13:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D166
datatype: string
name: disassemble_data
arguments: tag: D137
datatype: f32
name: disassemble_data
arguments: tag: D106
datatype: string
name: disassemble_data
arguments: tag: D58
datatype: byte[4]
name: disassemble_data
arguments: tag: D151
datatype: string
name: disassemble_data
arguments: tag: D147
datatype: string
name: disassemble_data
arguments: tag: D96
datatype: string
name: disassemble_data
arguments: tag: D91
datatype: string
name: disassemble_data
arguments: tag: D46
datatype: byte[4]
name: disassemble_data
arguments: tag: D157
datatype: string
name: disassemble_data
arguments: tag: D122
datatype: string
name: disassemble_data
arguments: tag: D27
datatype: string

tool: D166: %f

tool: D137: 0

tool: D106:  %c

tool: {"D58": [0x00,0x00,0x80,0x3f]}

tool: D151: Total: %.0f cobaias


tool: D147: Total de coelhos: %.0f


tool: D96: Total de ratos: %.0f


tool: D91: Total de sapos: %.0f


tool: {"D46": [0x00,0x00,0xc8,0x42]}

tool: D157: Percentual de coelhos: %.2f %%


tool: D122: Percentual de ratos: %.2f %%


tool: D27: Percentual de sapos: %.2f %%


assistant: ```c
int main() {
  float a, b, c, e, f, d1 = 0, d2 = 0, d3 = 0;
  char d;
  scanf("%f", &a);
  for (e = 0; e < a; e++) {
    scanf("%f", &b);
    scanf(" %c", &d);
    if (d == 'C') {
      d1 += b;
    } else if (d == 'R') {
      d2 += b;
    } else
      d3 += b;
  }
  f = d1 + d2 + d3;
  printf("Total: %.0f cobaias\n", f);
  printf("Total de coelhos: %.0f\n", d1);
  printf("Total de ratos: %.0f\n", d2);
  printf("Total de sapos: %.0f\n", d3);
  printf("Percentual de coelhos: %.2f %%\n", ((d1 / f) * 100));
  printf("Percentual de ratos: %.2f %%\n", ((d2 / f) * 100));
  printf("Percentual de sapos: %.2f %%\n", ((d3 / f) * 100));
  return 0;
}
```