user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r13
  lea    D64(%rip),%rdi
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  call   <puts@plt>
  xor    %eax,%eax
  lea    0xc(%rsp),%rsi
  lea    D139(%rip),%rdi
  call   <scanf@plt>
  movss  0xc(%rsp),%xmm0
  movss  D70(%rip),%xmm1
  comiss %xmm0,%xmm1
  ja     L33
  comiss D40(%rip),%xmm0
  jbe    L10
L33:
  lea    D28(%rip),%rdi
  call   <puts@plt>
L50:
  lea    D146(%rip),%rdi
  call   <system@plt>
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L97
  add    $0x78,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L10:
  lea    D42(%rip),%rdi
  lea    0x10(%rsp),%r13
  call   <puts@plt>
  movss  0xc(%rsp),%xmm0
  mov    %r13,%rdi
  mov    %r13,%rbx
  mov    $0x14,%esi
  lea    0x60(%rsp),%r12
  lea    D6(%rip),%rbp
  call   <generateTemperatures@plt>
  lea    D106(%rip),%rdi
  call   <puts@plt>
  nopl   0x0(%rax)
L79:
  pxor   %xmm0,%xmm0
  mov    %rbp,%rdi
  mov    $0x1,%eax
  add    $0x4,%rbx
  cvtss2sd -0x4(%rbx),%xmm0
  call   <printf@plt>
  cmp    %r12,%rbx
  jne    L79
  lea    D44(%rip),%rdi
  lea    D3(%rip),%rbp
  call   <puts@plt>
  lea    0x4(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D5(%rip),%rdi
  call   <puts@plt>
  lea    0x8(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    0x8(%rsp),%edx
  mov    0x4(%rsp),%esi
  mov    %r13,%rdi
  call   <averageTemp@plt>
  pxor   %xmm1,%xmm1
  comiss %xmm0,%xmm1
  jbe    L26
  cvttss2si %xmm0,%eax
  cmp    $0xfffffffe,%eax
  je     L111
  cmp    $0xffffffff,%eax
  je     L12
  cmp    $0xfffffffd,%eax
  jne    L50
  lea    D149(%rip),%rdi
  call   <puts@plt>
  jmp    L50
L26:
  lea    D35(%rip),%rdi
  mov    $0x1,%eax
  cvtss2sd %xmm0,%xmm0
  call   <printf@plt>
  jmp    L50
L12:
  lea    D48(%rip),%rdi
  call   <puts@plt>
  jmp    L50
L111:
  lea    D57(%rip),%rdi
  call   <puts@plt>
  jmp    L50
L97:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D64
datatype: string
name: parse_data
arguments: label: D139
datatype: string
name: parse_data
arguments: label: D70
datatype: byte[4]
name: parse_data
arguments: label: D40
datatype: byte[4]
name: parse_data
arguments: label: D28
datatype: string
name: parse_data
arguments: label: D146
datatype: string
name: parse_data
arguments: label: D42
datatype: string
name: parse_data
arguments: label: D6
datatype: string
name: parse_data
arguments: label: D106
datatype: string
name: parse_data
arguments: label: D44
datatype: string
name: parse_data
arguments: label: D3
datatype: string
name: parse_data
arguments: label: D5
datatype: string
name: parse_data
arguments: label: D149
datatype: string
name: parse_data
arguments: label: D35
datatype: string
name: parse_data
arguments: label: D48
datatype: string
name: parse_data
arguments: label: D57
datatype: string

tool: D64: Please input a start Temperature:

tool: D139: %f

tool: {"D70": [0x00,0x00,0x48,0xc2]}

tool: {"D40": [0x00,0x00,0x48,0x42]}

tool: D28: Temperature out of expected range

tool: D146: PAUSE

tool: D42: Begining generation of temperatures...

tool: D6: %2.0f, 

tool: D106: Temperatures are:

tool: D44: 
Please state the start day for average calculation:

tool: D3: %d

tool: D5: Please state the end day for average calculation:

tool: D149: End day must not exceed 20

tool: D35: The average Temperature is: %2.1f


tool: D48: Start day and end day must be > 0

tool: D57: Start day must be before end day

assistant: ```c
int main() {
  int _startDay, _endDay, _numDays, i;
  float temperatureValues[20], _startTemp, *ptr, _averageTemp;
  printf("Please input a start Temperature:\n");
  scanf("%f", &_startTemp);
  if (_startTemp < -50 || _startTemp > 50) {
    printf("Temperature out of expected range\n");
  } else {
    printf("Begining generation of temperatures...\n");
    ptr = &temperatureValues[0];
    generateTemperatures(ptr, 20, _startTemp);
    printf("Temperatures are:\n");
    for (i = 0; i < 20; i++) {
      printf("%2.0f, ", temperatureValues[i]);
    }
    printf("\nPlease state the start day for average calculation:\n");
    scanf("%d", &_startDay);
    printf("Please state the end day for average calculation:\n");
    scanf("%d", &_endDay);
    _averageTemp = averageTemp(ptr, _startDay, _endDay);
    if (_averageTemp < 0) {
      switch ((int)_averageTemp) {
      case -1:
        printf("Start day and end day must be > 0\n");
        break;
      case -2:
        printf("Start day must be before end day\n");
        break;
      case -3:
        printf("End day must not exceed 20\n");
        break;
      default:
        break;
      }
    } else
      printf("The average Temperature is: %2.1f\n", _averageTemp);
  }
  system("PAUSE");
  return 0;
}
```