user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x28(%rbp)
  movl   $0x0,-0x24(%rbp)
  movl   $0x0,-0x20(%rbp)
  movl   $0x0,-0x1c(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  lea    D87(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x2c(%rbp),%rax
  mov    %rax,%rsi
  lea    D36(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  jmp    L3
L27:
  lea    D55(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x18(%rbp),%rax
  mov    %rax,%rsi
  lea    D97(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movsd  -0x18(%rbp),%xmm0
  mov    -0x2c(%rbp),%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  divsd  %xmm1,%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  -0x18(%rbp),%xmm0
  comisd D76(%rip),%xmm0
  jb     L2
  addl   $0x1,-0x28(%rbp)
  jmp    L80
L2:
  movsd  -0x18(%rbp),%xmm1
  movsd  D76(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L84
  movsd  -0x18(%rbp),%xmm0
  comisd D11(%rip),%xmm0
  jb     L84
  addl   $0x1,-0x20(%rbp)
  jmp    L80
L84:
  movsd  -0x18(%rbp),%xmm1
  movsd  D11(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L80
  addl   $0x1,-0x24(%rbp)
L80:
  addl   $0x1,-0x1c(%rbp)
L3:
  mov    -0x2c(%rbp),%eax
  cmp    %eax,-0x1c(%rbp)
  jle    L27
  mov    -0x24(%rbp),%ecx
  mov    -0x20(%rbp),%edx
  mov    -0x28(%rbp),%eax
  mov    %eax,%esi
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x10(%rbp),%rax
  movq   %rax,%xmm0
  lea    D70(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L63
  call   <__stack_chk_fail@plt>
L63:
  leave
  ret
```

tool_calls: name: parse_data
arguments: tag: D87
data_type: string
name: parse_data
arguments: tag: D36
data_type: string
name: parse_data
arguments: tag: D55
data_type: string
name: parse_data
arguments: tag: D97
data_type: string
name: parse_data
arguments: tag: D76
data_type: f32[4]
name: parse_data
arguments: tag: D11
data_type: f32
name: parse_data
arguments: tag: D16
data_type: string
name: parse_data
arguments: tag: D70
data_type: string

tool: D87: Please enter the total numbers of days to observed

tool: D36: %d

tool: D55: Please enter the tempretures

tool: D97: %lf

tool: {"D76": [0.0,3.33203125,0.0,3.21875]}

tool: D11: 0

tool: D16: no of hot days %d
no of avg temp days %d
no of cold days %d


tool: D70: The averege is %f


assistant: ```c
main() {
  int days, count1 = 0, count3 = 0, count2 = 0;
  double temp;
  int i = 0;
  double avg = 0.0;
  printf("Please enter the total numbers of days to observed\n");
  scanf("%d", &days);
  while (i <= days) {
    printf("Please enter the tempretures\n");
    scanf("%lf", &temp);
    avg = avg + (double)temp / days;
    if (temp >= 85)
      count1 += 1;
    else if (temp < 85 && temp >= 60)
      count2 += 1;
    else if (temp < 60)
      count3 += 1;
    i = i + 1;
  }
  printf("no of hot days %d\nno of avg temp days %d\nno of cold days %d\n", count1, count2, count3);
  printf("The averege is %f\n", avg);
}
```