user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    D59(%rip),%rbx
  mov    %rbx,%rdi
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    0x20(%rsp),%rsi
  call   <scanf@plt>
  movss  0x20(%rsp),%xmm0
  pxor   %xmm4,%xmm4
  comiss %xmm4,%xmm0
  jbe    L47
  pxor   %xmm0,%xmm0
  lea    0x24(%rsp),%r13
  lea    0x1f(%rsp),%r12
  movss  %xmm0,0x4(%rsp)
  lea    D52(%rip),%rbp
  movss  %xmm0,0xc(%rsp)
  movss  %xmm0,0x8(%rsp)
  jmp    L12
  xchg   %ax,%ax
L37:
  movss  0x24(%rsp),%xmm1
  cmp    $0x52,%al
  je     L57
  addss  0x4(%rsp),%xmm1
  movss  %xmm1,0x4(%rsp)
L23:
  addss  D61(%rip),%xmm0
  movss  0x20(%rsp),%xmm1
  comiss %xmm0,%xmm1
  jbe    L52
L12:
  mov    %r13,%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  movss  %xmm0,(%rsp)
  call   <scanf@plt>
  xor    %eax,%eax
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  movzbl 0x1f(%rsp),%eax
  movss  (%rsp),%xmm0
  cmp    $0x43,%al
  jne    L37
  movss  0x8(%rsp),%xmm2
  addss  0x24(%rsp),%xmm2
  movss  %xmm2,0x8(%rsp)
  jmp    L23
  nopw   0x0(%rax,%rax,1)
L57:
  addss  0xc(%rsp),%xmm1
  movss  %xmm1,0xc(%rsp)
  jmp    L23
L47:
  pxor   %xmm4,%xmm4
  movss  %xmm4,0x4(%rsp)
  movss  %xmm4,0xc(%rsp)
  movss  %xmm4,0x8(%rsp)
  nopl   0x0(%rax)
L52:
  movss  0x8(%rsp),%xmm0
  addss  0xc(%rsp),%xmm0
  lea    D82(%rip),%rdi
  movss  0x4(%rsp),%xmm5
  addss  %xmm0,%xmm5
  movaps %xmm5,%xmm0
  movss  %xmm5,(%rsp)
  call   <printf@plt>
  movss  0x8(%rsp),%xmm0
  lea    D41(%rip),%rdi
  call   <printf@plt>
  movss  0xc(%rsp),%xmm0
  lea    D76(%rip),%rdi
  call   <printf@plt>
  movss  0x4(%rsp),%xmm0
  lea    D51(%rip),%rdi
  call   <printf@plt>
  movss  D10(%rip),%xmm0
  movss  0x8(%rsp),%xmm4
  divss  (%rsp),%xmm4
  lea    D2(%rip),%rdi
  mulss  %xmm4,%xmm0
  call   <printf@plt>
  movss  D10(%rip),%xmm0
  movss  0xc(%rsp),%xmm6
  divss  (%rsp),%xmm6
  lea    D16(%rip),%rdi
  mulss  %xmm6,%xmm0
  call   <printf@plt>
  movss  0x4(%rsp),%xmm0
  divss  (%rsp),%xmm0
  mulss  D10(%rip),%xmm0
  lea    D79(%rip),%rdi
  call   <printf@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L49
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L49:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D59
type_guessed: string
name: retrieve_data
arguments: label: D52
type_guessed: string
name: retrieve_data
arguments: label: D61
type_guessed: byte[4]
name: retrieve_data
arguments: label: D82
type_guessed: string
name: retrieve_data
arguments: label: D41
type_guessed: string
name: retrieve_data
arguments: label: D76
type_guessed: string
name: retrieve_data
arguments: label: D51
type_guessed: string
name: retrieve_data
arguments: label: D10
type_guessed: byte[4]
name: retrieve_data
arguments: label: D2
type_guessed: string
name: retrieve_data
arguments: label: D16
type_guessed: string
name: retrieve_data
arguments: label: D79
type_guessed: string

tool: D59: %f

tool: D52:  %c

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

tool: D82: Total: %.0f cobaias


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


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


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


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

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


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


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