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

```asm
<main>:
  endbr64
  push   %r15
  lea    D79(%rip),%r15
  push   %r14
  lea    D21(%rip),%r14
  push   %r13
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%r13
  mov    %r13,%rbp
L59:
  add    $0x1,%ebx
  mov    %r15,%rdi
  xor    %eax,%eax
  mov    %ebx,%esi
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %r14,%rdi
  add    $0x4,%rbp
  call   <scanf@plt>
  add    -0x4(%rbp),%r12d
  cmp    $0x5,%ebx
  jne    L59
  movslq %r12d,%rax
  sar    $0x1f,%r12d
  pxor   %xmm2,%xmm2
  lea    D81(%rip),%rdi
  imul   $0x66666667,%rax,%rax
  mov    $0x1,%ebx
  lea    D104(%rip),%rbp
  sar    $0x21,%rax
  sub    %r12d,%eax
  cvtsi2ss %eax,%xmm2
  movss  %xmm2,0xc(%rsp)
  call   <puts@plt>
L0:
  mov    -0x4(%r13,%rbx,4),%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    $0x6,%rbx
  jne    L0
  pxor   %xmm0,%xmm0
  lea    D100(%rip),%rdi
  mov    $0x1,%eax
  cvtss2sd 0xc(%rsp),%xmm0
  call   <printf@plt>
  movss  D74(%rip),%xmm0
  comiss 0xc(%rsp),%xmm0
  ja     L80
  movss  0xc(%rsp),%xmm3
  comiss D56(%rip),%xmm3
  ja     L35
  movss  D73(%rip),%xmm0
  comiss 0xc(%rsp),%xmm0
  jbe    L22
  lea    D48(%rip),%rdi
  call   <puts@plt>
L39:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L49
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L35:
  lea    D72(%rip),%rdi
  call   <puts@plt>
  jmp    L39
L80:
  lea    D51(%rip),%rdi
  call   <puts@plt>
  jmp    L39
L22:
  lea    D18(%rip),%rdi
  call   <puts@plt>
  jmp    L39
L49:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D79
type_infered: string
name: read_data
arguments: data_label: D21
type_infered: string
name: read_data
arguments: data_label: D81
type_infered: string
name: read_data
arguments: data_label: D104
type_infered: string
name: read_data
arguments: data_label: D100
type_infered: string
name: read_data
arguments: data_label: D74
type_infered: byte[4]
name: read_data
arguments: data_label: D56
type_infered: byte[4]
name: read_data
arguments: data_label: D73
type_infered: byte[4]
name: read_data
arguments: data_label: D48
type_infered: string
name: read_data
arguments: data_label: D72
type_infered: string
name: read_data
arguments: data_label: D51
type_infered: string
name: read_data
arguments: data_label: D18
type_infered: string

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

tool: D21: %d

tool: D81: 

The results just came in...


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


tool: D100: 

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



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

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

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

tool: D48: Brrr... friggg..!

tool: D72: Canicula, pffff..

tool: D51: Brrr.. jerrr!

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