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
  mov    %rsi,%rbx
  sub    $0x648,%rsp
  movdqa D51(%rip),%xmm0
  movdqa D153(%rip),%xmm1
  mov    %fs:0x28,%rax
  mov    %rax,0x638(%rsp)
  xor    %eax,%eax
  movaps %xmm0,0x20(%rsp)
  movaps %xmm0,0x50(%rsp)
  movdqa D166(%rip),%xmm0
  movaps %xmm1,0x30(%rsp)
  movdqa D105(%rip),%xmm1
  movaps %xmm0,0x60(%rsp)
  movdqa D126(%rip),%xmm0
  movaps %xmm1,0x40(%rsp)
  movaps %xmm0,0x70(%rsp)
  cmp    $0x5,%edi
  je     L136
  lea    D175(%rip),%rdi
  call   <printf@plt>
  xor    %edi,%edi
  call   <exit@plt>
L136:
  mov    0x8(%rbx),%rdi
  lea    D67(%rip),%rsi
  xor    %r15d,%r15d
  lea    D93(%rip),%rbp
  lea    D106(%rip),%r14
  call   <fopen@plt>
  mov    0x10(%rbx),%rdi
  lea    D48(%rip),%rsi
  mov    %rax,0x8(%rsp)
  call   <fopen@plt>
  mov    0x18(%rbx),%rdi
  mov    %rbp,%rsi
  lea    0x18(%rsp),%rdx
  mov    %rax,%r12
  call   <sscanf@plt>
  mov    0x20(%rbx),%rdi
  mov    %rbp,%rsi
  xor    %ebx,%ebx
  lea    0x1c(%rsp),%rdx
  call   <sscanf@plt>
  mov    0x18(%rsp),%ebp
L24:
  cmp    %r13d,%ebx
  jl     L31
L147:
  cmp    %ebp,0x1c(%rsp)
  jl     L86
L31:
  test   $0x3,%bpl
  jne    L98
L15:
  imul   $0xc28f5c29,%ebp,%eax
  add    $0x51eb850,%eax
  mov    %eax,%edx
  ror    $0x2,%edx
  cmp    $0x28f5c28,%edx
  ja     L139
  ror    $0x4,%eax
  cmp    $0xa3d70a,%eax
  ja     L98
L139:
  mov    0x8(%rsp),%rdi
  lea    0x14(%rsp),%rdx
  mov    %r14,%rsi
  movl   $0x98,0x30(%rsp)
  call   <fscanf@plt>
  movslq %r15d,%rax
  movss  0x14(%rsp),%xmm0
  movslq %ebx,%rdx
  movslq 0x50(%rsp,%rax,4),%rax
  movss  %xmm0,0x80(%rsp,%rdx,4)
  lea    0x1(%rax),%ecx
  cmp    %ebx,%ecx
  je     L47
L129:
  mov    $0x16d,%r13d
L84:
  cmp    %r13d,%ebx
  je     L151
L99:
  add    $0x1,%ebx
  cmp    %r13d,%ebx
  jge    L147
  test   $0x3,%bpl
  je     L15
L98:
  mov    0x8(%rsp),%rdi
  lea    0x14(%rsp),%rdx
  mov    %r14,%rsi
  mov    $0x16c,%r13d
  call   <fscanf@plt>
  movslq %r15d,%rax
  movss  0x14(%rsp),%xmm0
  movslq %ebx,%rdx
  movslq 0x20(%rsp,%rax,4),%rax
  movss  %xmm0,0x80(%rsp,%rdx,4)
  lea    0x1(%rax),%esi
  cmp    %ebx,%esi
  jne    L84
  movss  0x80(%rsp,%rax,4),%xmm2
  movss  D34(%rip),%xmm1
  add    $0x1,%r15d
  mulss  %xmm2,%xmm1
  addss  %xmm0,%xmm1
  mulss  D115(%rip),%xmm1
  movss  D34(%rip),%xmm0
  movss  %xmm1,0x80(%rsp,%rax,4)
  mulss  0x80(%rsp,%rdx,4),%xmm0
  addss  %xmm2,%xmm0
  mulss  D115(%rip),%xmm0
  movss  %xmm0,0x80(%rsp,%rdx,4)
  cmp    %r13d,%ebx
  jne    L99
L151:
  movslq %r13d,%rax
  add    $0x1,%ebp
  lea    0x80(%rsp),%r15
  lea    0x84(%rsp,%rax,4),%rax
  lea    D77(%rip),%rbx
  mov    %rax,(%rsp)
L41:
  movss  (%r15),%xmm0
  mov    %rbx,%rsi
  mov    %r12,%rdi
  add    $0x4,%r15
  call   <fprintf@plt>
  cmp    (%rsp),%r15
  jne    L41
  xor    %ebx,%ebx
  xor    %r15d,%r15d
  jmp    L24
  nopl   0x0(%rax)
L47:
  movss  0x80(%rsp,%rax,4),%xmm3
  movss  D34(%rip),%xmm1
  add    $0x1,%r15d
  movss  D115(%rip),%xmm2
  mulss  %xmm3,%xmm1
  addss  %xmm0,%xmm1
  movss  D34(%rip),%xmm0
  mulss  %xmm2,%xmm1
  movss  %xmm1,0x80(%rsp,%rax,4)
  mulss  0x80(%rsp,%rdx,4),%xmm0
  addss  %xmm3,%xmm0
  mulss  %xmm2,%xmm0
  movss  %xmm0,0x80(%rsp,%rdx,4)
  jmp    L129
  nopl   0x0(%rax)
L86:
  mov    0x638(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L29
  add    $0x648,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L29:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D51
type: byte[16]
name: read_data
arguments: data_tag: D153
type: byte[16]
name: read_data
arguments: data_tag: D166
type: byte[16]
name: read_data
arguments: data_tag: D105
type: byte[16]
name: read_data
arguments: data_tag: D126
type: byte[16]
name: read_data
arguments: data_tag: D175
type: string
name: read_data
arguments: data_tag: D67
type: string
name: read_data
arguments: data_tag: D93
type: string
name: read_data
arguments: data_tag: D106
type: string
name: read_data
arguments: data_tag: D48
type: string
name: read_data
arguments: data_tag: D34
type: byte[4]
name: read_data
arguments: data_tag: D115
type: byte[4]
name: read_data
arguments: data_tag: D77
type: string

tool: {"D51": [0x1e,0x00,0x00,0x00,0x3c,0x00,0x00,0x00,0x5b,0x00,0x00,0x00,0x7a,0x00,0x00,0x00]}

tool: {"D153": [0x96,0x00,0x00,0x00,0xb5,0x00,0x00,0x00,0xd3,0x00,0x00,0x00,0xf2,0x00,0x00,0x00]}

tool: {"D166": [0x97,0x00,0x00,0x00,0xb6,0x00,0x00,0x00,0xd4,0x00,0x00,0x00,0xf3,0x00,0x00,0x00]}

tool: {"D105": [0x10,0x01,0x00,0x00,0x2f,0x01,0x00,0x00,0x4e,0x01,0x00,0x00,0x6c,0x01,0x00,0x00]}

tool: {"D126": [0x11,0x01,0x00,0x00,0x30,0x01,0x00,0x00,0x4f,0x01,0x00,0x00,0x6d,0x01,0x00,0x00]}

tool: D175: Wrong command line arguments: enter <bcdfile> <outfile> <startyear> <endyear> ,


tool: D67: r

tool: D93: %d

tool: D106: %f

tool: D48: w

tool: {"D34": [0x00,0x00,0x40,0x40]}

tool: {"D115": [0x00,0x00,0x80,0x3e]}

tool: D77: %10.3f


assistant: ```c
int main(int argc, char *argv[]) {
  FILE *rawfile, *rawccfile, *bcdfile, *outfile;
  float tmp, sum1, sum2, sum3, sum4, data, bcmdata[35];
  int i, j, k, n, day, mnth, year, nday, startwy, endwy, unitsw, DayYear;
  int dpm[12] = {31, 30, 31, 31, 28, 31, 30, 31, 30, 31, 31, 30};
  int tdeom[12] = {30, 60, 91, 122, 150, 181, 211, 242, 272, 303, 334, 364};
  int tdeoml[12] = {30, 60, 91, 122, 151, 182, 212, 243, 273, 304, 335, 365};
  float temp[4] = {0, 0, 0, 0};
  int leap = 0;
  if (argc != 5) {
    printf("Wrong command line arguments: enter <bcdfile> <outfile> <startyear> <endyear> ,\n");
    exit(0);
  }
  bcdfile = fopen(argv[1], "r");
  outfile = fopen(argv[2], "w");
  sscanf(argv[3], "%d", &startwy);
  sscanf(argv[4], "%d", &endwy);
  n = 0;
  i = 0;
  year = startwy;
  float OneYear[366];
  int EndJuly;
  while (n < DayYear || year <= endwy) {
    if ((year % 4 == 0) && (((year % 100 == 0) && (year % 400 != 0)) == 0)) {
      dpm[4] = 29;
      tdeom[4] = 152;
      DayYear = 365;
      leap = 1;
    } else {
      DayYear = 364;
      leap = 0;
    }
    fscanf(bcdfile, "%f", &tmp);
    OneYear[n] = tmp;
    if (leap == 1) {
      if (n == tdeoml[i] + 1) {
        float temp = OneYear[tdeoml[i]];
        OneYear[tdeoml[i]] = (3 * OneYear[tdeoml[i]] + OneYear[tdeoml[i] + 1]) / 4;
        OneYear[tdeoml[i] + 1] = (temp + 3 * OneYear[tdeoml[i] + 1]) / 4;
        i++;
      }
    } else {
      if (n == tdeom[i] + 1) {
        float temp = OneYear[tdeom[i]];
        OneYear[tdeom[i]] = (3 * OneYear[tdeom[i]] + OneYear[tdeom[i] + 1]) / 4;
        OneYear[tdeom[i] + 1] = (temp + 3 * OneYear[tdeom[i] + 1]) / 4;
        i++;
      }
    }
    if (n == DayYear) {
      year++;
      n = -1;
      i = 0;
      for (j = 0; j <= DayYear; j++) {
        fprintf(outfile, "%10.3f\n", OneYear[j]);
      }
    }
    n++;
  }
}
```