user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  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    D13(%rip),%rdi
  call   <scanf@plt>
  cmpl   $0x0,0x20(%rsp)
  jle    L1
  mov    $0x0,%r15d
  mov    $0x0,%r14d
  mov    $0x0,%r13d
  mov    $0x0,%ebp
  mov    $0x0,%ebx
  lea    D54(%rip),%r12
  jmp    L40
L76:
  add    0x24(%rsp),%r13d
L26:
  add    0x24(%rsp),%ebp
  add    $0x1,%ebx
  cmp    %ebx,0x20(%rsp)
  jle    L21
L40:
  lea    0x1f(%rsp),%rdx
  lea    0x24(%rsp),%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movzbl 0x1f(%rsp),%eax
  cmp    $0x43,%al
  je     L76
  cmp    $0x52,%al
  je     L43
  cmp    $0x53,%al
  jne    L26
  add    0x24(%rsp),%r15d
  jmp    L26
L43:
  add    0x24(%rsp),%r14d
  jmp    L26
L1:
  mov    $0x0,%r15d
  mov    $0x0,%r14d
  mov    $0x0,%r13d
  mov    $0x0,%ebp
L21:
  pxor   %xmm3,%xmm3
  cvtsi2sd %ebp,%xmm3
  movsd  %xmm3,(%rsp)
  movapd %xmm3,%xmm0
  lea    D1(%rip),%rdi
  call   <printf@plt>
  pxor   %xmm6,%xmm6
  cvtsi2sd %r13d,%xmm6
  movq   %xmm6,%rbp
  movapd %xmm6,%xmm0
  lea    D99(%rip),%rdi
  call   <printf@plt>
  pxor   %xmm7,%xmm7
  cvtsi2sd %r14d,%xmm7
  movq   %xmm7,%rbx
  movapd %xmm7,%xmm0
  lea    D95(%rip),%rdi
  call   <printf@plt>
  pxor   %xmm2,%xmm2
  cvtsi2sd %r15d,%xmm2
  movsd  %xmm2,0x8(%rsp)
  movapd %xmm2,%xmm0
  lea    D83(%rip),%rdi
  call   <printf@plt>
  movsd  D70(%rip),%xmm0
  movapd %xmm0,%xmm1
  divsd  (%rsp),%xmm1
  movq   %rbp,%xmm4
  movsd  %xmm1,(%rsp)
  mulsd  %xmm1,%xmm4
  movapd %xmm4,%xmm0
  lea    D87(%rip),%rdi
  call   <printf@plt>
  movq   %rbx,%xmm5
  mulsd  (%rsp),%xmm5
  movapd %xmm5,%xmm0
  lea    D33(%rip),%rdi
  call   <printf@plt>
  movsd  0x8(%rsp),%xmm0
  mulsd  (%rsp),%xmm0
  lea    D40(%rip),%rdi
  call   <printf@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L23
  mov    $0x0,%eax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L23:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D13
type_guessed: string
name: parse_data
arguments: data_label: D54
type_guessed: string
name: parse_data
arguments: data_label: D1
type_guessed: string
name: parse_data
arguments: data_label: D99
type_guessed: string
name: parse_data
arguments: data_label: D95
type_guessed: string
name: parse_data
arguments: data_label: D83
type_guessed: string
name: parse_data
arguments: data_label: D70
type_guessed: f64
name: parse_data
arguments: data_label: D87
type_guessed: string
name: parse_data
arguments: data_label: D33
type_guessed: string
name: parse_data
arguments: data_label: D40
type_guessed: string

tool: D13: %d

tool: D54: %d %c

tool: D1: Total: %d cobaias


tool: D99: Total de coelhos: %d


tool: D95: Total de ratos: %d


tool: D83: Total de sapos: %d


tool: D70: 100

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


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


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


assistant: ```c
int main() {
  int testsQtt;
  scanf("%d", &testsQtt);
  int i;
  char animalType;
  int animalAmount;
  int totalQtt = 0, cQtt = 0, rQtt = 0, sQtt = 0;
  for (i = 0; i < testsQtt; i++) {
    scanf("%d %c", &animalAmount, &animalType);
    if (animalType == 'C')
      cQtt += animalAmount;
    else if (animalType == 'R')
      rQtt += animalAmount;
    else if (animalType == 'S')
      sQtt += animalAmount;
    totalQtt += animalAmount;
  }
  printf("Total: %d cobaias\n", totalQtt);
  printf("Total de coelhos: %d\n", cQtt);
  printf("Total de ratos: %d\n", rQtt);
  printf("Total de sapos: %d\n", sQtt);
  printf("Percentual de coelhos: %.2f %%\n", ((100.0 / totalQtt) * cQtt));
  printf("Percentual de ratos: %.2f %%\n", ((100.0 / totalQtt) * rQtt));
  printf("Percentual de sapos: %.2f %%\n", ((100.0 / totalQtt) * sQtt));
  return 0;
}
```