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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  movl   $0x0,0x30(%rsp)
  lea    0x30(%rsp),%rsi
  lea    D251(%rip),%rdi
  call   <scanf@plt>
  cmpl   $0xffffffff,0x30(%rsp)
  je     L128
  mov    $0x0,%ebx
  movl   $0x0,0x18(%rsp)
  movl   $0x0,0x14(%rsp)
  movl   $0x1,0x1c(%rsp)
  mov    $0x0,%r12d
  pxor   %xmm4,%xmm4
  movss  %xmm4,0xc(%rsp)
  movss  %xmm4,0x10(%rsp)
  lea    0x34(%rsp),%r15
  lea    D251(%rip),%rbp
  lea    0x2c(%rsp),%r14
  lea    D82(%rip),%r13
  jmp    L161
L287:
  movss  0x2c(%rsp),%xmm3
  movss  %xmm3,0xc(%rsp)
  jmp    L31
L171:
  add    $0x1,%ebx
  lea    0x30(%rsp),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  cmpl   $0xffffffff,0x30(%rsp)
  je     L81
L161:
  mov    %r15,%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    %r14,%rsi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  test   %ebx,%ebx
  jle    L287
L31:
  movss  0x2c(%rsp),%xmm0
  comiss 0x10(%rsp),%xmm0
  jb     L64
  mov    0x30(%rsp),%r12d
  mov    0x34(%rsp),%eax
  mov    %eax,0x14(%rsp)
  movss  %xmm0,0x10(%rsp)
L64:
  movss  0xc(%rsp),%xmm2
  comiss %xmm0,%xmm2
  jb     L171
  mov    0x30(%rsp),%eax
  mov    %eax,0x1c(%rsp)
  mov    0x34(%rsp),%eax
  mov    %eax,0x18(%rsp)
  movss  %xmm0,0xc(%rsp)
  jmp    L171
L81:
  pxor   %xmm0,%xmm0
  cvtss2sd 0xc(%rsp),%xmm0
  lea    D16(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    0x1c(%rsp),%eax
  cmp    $0xc,%eax
  ja     L96
  mov    %eax,%eax
  lea    D98(%rip),%rdx
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  lea    D189(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L96
  lea    D77(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L96
  lea    D301(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L96
  lea    D250(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L96
  lea    D99(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L96
  lea    D133(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L96
  lea    D204(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L96
  lea    D102(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L96
  lea    D66(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L96
  lea    D112(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L96
  lea    D236(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L96
  lea    D286(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L120:
  mov    0x14(%rsp),%esi
  lea    D29(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L84
  mov    $0x0,%eax
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  lea    D189(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L120
  lea    D77(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L120
  lea    D301(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L120
  lea    D250(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L120
  lea    D99(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L120
  lea    D133(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L120
  lea    D204(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L120
  lea    D102(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L120
  lea    D66(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L120
  lea    D112(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L120
  lea    D236(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L120
L128:
  pxor   %xmm0,%xmm0
  lea    D16(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  movl   $0x0,0x18(%rsp)
  movl   $0x0,0x14(%rsp)
  mov    $0x0,%r12d
  pxor   %xmm5,%xmm5
  movss  %xmm5,0x10(%rsp)
  lea    D286(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L96:
  mov    0x18(%rsp),%esi
  lea    D29(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd 0x10(%rsp),%xmm0
  lea    D125(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  cmp    $0xc,%r12d
  ja     L120
  mov    %r12d,%r12d
  lea    D224(%rip),%rdx
  movslq (%rdx,%r12,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
L84:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D251
data_type: string
name: read_data
arguments: label: D82
data_type: string
name: read_data
arguments: label: D16
data_type: string
name: read_data
arguments: label: D189
data_type: string
name: read_data
arguments: label: D77
data_type: string
name: read_data
arguments: label: D301
data_type: string
name: read_data
arguments: label: D250
data_type: string
name: read_data
arguments: label: D99
data_type: string
name: read_data
arguments: label: D133
data_type: string
name: read_data
arguments: label: D204
data_type: string
name: read_data
arguments: label: D102
data_type: string
name: read_data
arguments: label: D66
data_type: string
name: read_data
arguments: label: D112
data_type: string
name: read_data
arguments: label: D236
data_type: string
name: read_data
arguments: label: D286
data_type: string
name: read_data
arguments: label: D29
data_type: string
name: read_data
arguments: label: D125
data_type: string

tool: D251: %d

tool: D82: %f

tool: D16: Minimum Price    $%6.2f     

tool: D189: February 

tool: D77: March    

tool: D301: April    

tool: D250: May      

tool: D99: June     

tool: D133: July     

tool: D204: August   

tool: D102: September

tool: D66: October  

tool: D112: November 

tool: D236: December 

tool: D286: January  

tool: D29:      %d


tool: D125: Maximum Price    $%6.2f     

assistant: ```c
int main(void) {
  float price;
  float maxPrice = 0;
  float minPrice = 0;
  int month = 0;
  int maxMonth = 0, minMonth = 1;
  int year;
  int maxYear = 0, minYear = 0;
  int count = 0;
  scanf("%d", &month);
  while (month != -1) {
    scanf("%d", &year);
    scanf("%f", &price);
    if (count < 1)
      minPrice = price;
    if (price >= maxPrice) {
      maxPrice = price;
      maxMonth = month;
      maxYear = year;
    }
    if (price <= minPrice) {
      minPrice = price;
      minMonth = month;
      minYear = year;
    }
    count++;
    scanf("%d", &month);
  }
  printf("Minimum Price    $%6.2f     ", minPrice);
  switch (minMonth) {
  case 1:
    printf("January  ");
    break;
  case 2:
    printf("February ");
    break;
  case 3:
    printf("March    ");
    break;
  case 4:
    printf("April    ");
    break;
  case 5:
    printf("May      ");
    break;
  case 6:
    printf("June     ");
    break;
  case 7:
    printf("July     ");
    break;
  case 8:
    printf("August   ");
    break;
  case 9:
    printf("September");
    break;
  case 10:
    printf("October  ");
    break;
  case 11:
    printf("November ");
    break;
  case 12:
    printf("December ");
    break;
  default:
    break;
  }
  printf("     %d\n", minYear);
  printf("Maximum Price    $%6.2f     ", maxPrice);
  switch (maxMonth) {
  case 1:
    printf("January  ");
    break;
  case 2:
    printf("February ");
    break;
  case 3:
    printf("March    ");
    break;
  case 4:
    printf("April    ");
    break;
  case 5:
    printf("May      ");
    break;
  case 6:
    printf("June     ");
    break;
  case 7:
    printf("July     ");
    break;
  case 8:
    printf("August   ");
    break;
  case 9:
    printf("September");
    break;
  case 10:
    printf("October  ");
    break;
  case 11:
    printf("November ");
    break;
  case 12:
    printf("December ");
    break;
  default:
    break;
  }
  printf("     %d\n", maxYear);
}
```