user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rbp
  mov    $0x0,%r12d
  mov    $0x0,%ebx
  lea    D2(%rip),%r14
  lea    D97(%rip),%r13
L26:
  add    $0x1,%ebx
  mov    %ebx,%esi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <scanf@plt>
  add    0x0(%rbp),%r12d
  add    $0x4,%rbp
  cmp    $0x5,%ebx
  jne    L26
  movslq %r12d,%rax
  imul   $0x66666667,%rax,%rax
  sar    $0x21,%rax
  sar    $0x1f,%r12d
  sub    %r12d,%eax
  pxor   %xmm2,%xmm2
  cvtsi2ss %eax,%xmm2
  movss  %xmm2,0xc(%rsp)
  lea    D110(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%ebx
  lea    D59(%rip),%rbp
L41:
  mov    0xc(%rsp,%rbx,4),%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%rbx
  cmp    $0x6,%rbx
  jne    L41
  pxor   %xmm0,%xmm0
  cvtss2sd 0xc(%rsp),%xmm0
  lea    D29(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  movss  D18(%rip),%xmm0
  comiss 0xc(%rsp),%xmm0
  ja     L86
  movss  0xc(%rsp),%xmm3
  comiss D35(%rip),%xmm3
  ja     L6
  movss  D61(%rip),%xmm0
  comiss 0xc(%rsp),%xmm0
  jbe    L4
  lea    D38(%rip),%rdi
  call   <puts@plt>
  jmp    L23
L86:
  lea    D16(%rip),%rdi
  call   <puts@plt>
L23:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L46
  mov    $0x0,%eax
  add    $0x30,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L6:
  lea    D30(%rip),%rdi
  call   <puts@plt>
  jmp    L23
L4:
  lea    D98(%rip),%rdi
  call   <puts@plt>
  jmp    L23
L46:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D2
type: string
name: extract_symbolic_data
arguments: data_label: D97
type: string
name: extract_symbolic_data
arguments: data_label: D110
type: string
name: extract_symbolic_data
arguments: data_label: D59
type: string
name: extract_symbolic_data
arguments: data_label: D29
type: string
name: extract_symbolic_data
arguments: data_label: D18
type: byte[4]
name: extract_symbolic_data
arguments: data_label: D35
type: byte[4]
name: extract_symbolic_data
arguments: data_label: D61
type: byte[4]
name: extract_symbolic_data
arguments: data_label: D38
type: string
name: extract_symbolic_data
arguments: data_label: D16
type: string
name: extract_symbolic_data
arguments: data_label: D30
type: string
name: extract_symbolic_data
arguments: data_label: D98
type: string

tool: D2: What was the approximate temperature %d days ago? - 

tool: D97: %d

tool: D110: 

The results just came in...


tool: D59: %d days ago the temperature was %d


tool: D29: 

	So the average would be.....
 %20.2f degrees ...



tool: {"D18": [0x00,0x00,0x20,0x41]}

tool: {"D35": [0x00,0x00,0x00,0x42]}

tool: {"D61": [0x00,0x00,0xa0,0x41]}

tool: D38: Brrr... friggg..!

tool: D16: Brrr.. jerrr!

tool: D30: Canicula, pffff..

tool: D98: Numa bine, vreme perfecta!

assistant: ```c
int main() {
  int temp[5];
  int day;
  int total = 0;
  for (day = 0; day < 5; day++) {
    printf("What was the approximate temperature %d days ago? - ", day + 1);
    scanf("%d", &temp[day]);
    total += temp[day];
  }
  float average = total / 5;
  printf("\n\nThe results just came in...\n\n");
  for (day = 0; day < 5; day++)
    printf("%d days ago the temperature was %d\n", day + 1, temp[day]);
  printf("\n\n\tSo the average would be.....\n %20.2f degrees ...\n\n", average);
  if (average < 10)
    puts("Brrr.. jerrr!");
  else if (average > 32)
    puts("Canicula, pffff..");
  else if (average < 20)
    puts("Brrr... friggg..!");
  else
    puts("Numa bine, vreme perfecta!");
  return 0;
}
```