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

```asm
<main>:
  endbr64
  push   %r15
  lea    D40(%rip),%rsi
  lea    D52(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  movdqa D27(%rip),%xmm0
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  mov    D30(%rip),%rax
  movl   $0x1f,0x30(%rsp)
  movups %xmm0,0x38(%rsp)
  movdqa D11(%rip),%xmm0
  mov    %rax,0x58(%rsp)
  movups %xmm0,0x48(%rsp)
  call   <fopen@plt>
  lea    D76(%rip),%rsi
  lea    D21(%rip),%rdi
  mov    %rax,%rbp
  call   <fopen@plt>
  lea    0xc(%rsp),%rdx
  lea    D69(%rip),%rsi
  mov    %rbp,%rdi
  mov    %rax,%r12
  call   <fscanf@plt>
  mov    0xc(%rsp),%eax
  pxor   %xmm0,%xmm0
  movq   $0x0,0x20(%rsp)
  movl   $0x0,0x28(%rsp)
  lea    0x76b(%rax),%r11d
  movaps %xmm0,0x10(%rsp)
  cmp    $0x76b,%r11d
  jle    L57
  mov    $0x76c,%edi
  xor    %r9d,%r9d
  mov    $0x1,%esi
  xor    %ecx,%ecx
  jmp    L105
  nopl   0x0(%rax,%rax,1)
L63:
  movslq %ecx,%r8
  add    $0x1,%ecx
L33:
  imul   $0xc28f5c29,%edi,%edx
  mov    $0x1d,%eax
  mov    %edx,%r10d
  ror    $0x4,%r10d
  cmp    $0xa3d70a,%r10d
  jbe    L132
  ror    $0x2,%edx
  mov    $0x1c,%eax
  cmp    $0x28f5c28,%edx
  jbe    L132
  mov    %edi,%eax
  and    $0x3,%eax
  cmp    $0x1,%eax
  mov    $0x1c,%eax
  adc    $0x0,%eax
L132:
  mov    %eax,0x34(%rsp)
  movslq %r9d,%rax
  cmp    %esi,0x30(%rsp,%rax,4)
  je     L24
  add    $0x1,%esi
  cmp    $0xd,%esi
  jne    L133
  addl   $0x1,0x10(%rsp,%r8,4)
L133:
  cmp    %r11d,%edi
  jg     L57
L105:
  cmp    $0x7,%ecx
  jne    L63
  mov    $0x1,%ecx
  xor    %r8d,%r8d
  jmp    L33
  nopl   0x0(%rax,%rax,1)
L24:
  add    $0x1,%r9d
  mov    $0x1,%esi
  cmp    $0xc,%r9d
  jne    L133
  add    $0x1,%edi
  xor    %r9d,%r9d
  cmp    %r11d,%edi
  jle    L105
  nopw   0x0(%rax,%rax,1)
L57:
  lea    0x10(%rsp),%rbx
  lea    0x1c(%rsp),%r15
  mov    %rbx,%r13
  lea    D75(%rip),%r14
L91:
  mov    0x10(%r13),%edx
  mov    %r14,%rsi
  mov    %r12,%rdi
  add    $0x4,%r13
  call   <fprintf@plt>
  cmp    %r13,%r15
  jne    L91
L100:
  mov    (%rbx),%edx
  mov    %r14,%rsi
  mov    %r12,%rdi
  add    $0x4,%rbx
  call   <fprintf@plt>
  cmp    %rbx,%r15
  jne    L100
  mov    0x1c(%rsp),%edx
  lea    D59(%rip),%rsi
  mov    %r12,%rdi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    %r12,%rdi
  call   <fclose@plt>
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L82
  add    $0x78,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L82:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D40
type: string
name: extract_symbolic_data
arguments: data_label: D52
type: string
name: extract_symbolic_data
arguments: data_label: D27
type: byte[16]
name: extract_symbolic_data
arguments: data_label: D30
type: byte[8]
name: extract_symbolic_data
arguments: data_label: D11
type: byte[16]
name: extract_symbolic_data
arguments: data_label: D76
type: string
name: extract_symbolic_data
arguments: data_label: D21
type: string
name: extract_symbolic_data
arguments: data_label: D69
type: string
name: extract_symbolic_data
arguments: data_label: D75
type: string
name: extract_symbolic_data
arguments: data_label: D59
type: string

tool: D40: r

tool: D52: friday.in

tool: {"D27": [0x1f,0x00,0x00,0x00,0x1e,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x1e,0x00,0x00,0x00]}

tool: {"D30": [0x1e,0x00,0x00,0x00,0x1f,0x00,0x00,0x00]}

tool: {"D11": [0x1f,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x1e,0x00,0x00,0x00,0x1f,0x00,0x00,0x00]}

tool: D76: w

tool: D21: friday.out

tool: D69: %d

tool: D75: %d 

tool: D59: %d


assistant: ```c
int main(void) {
  int d = 0, date = 1, month = 0, year = 1900, np, i;
  int array[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
  int final[7];
  FILE *fin, *fout;
  fin = fopen("friday.in", "r");
  fout = fopen("friday.out", "w");
  fscanf(fin, "%d", &np);
  for (i = 0; i < 7; i++)
    final[i] = 0;
  while (year < 1900 + np) {
    if (d == 7)
      d = 0;
    if (year % 400 == 0 || (year % 100 != 0 && year % 4 == 0)) {
      array[1] = 29;
    } else {
      array[1] = 28;
    }
    if (date == array[month]) {
      date = 1;
      month++;
      if (month == 12) {
        month = 0;
        year++;
      }
    } else {
      date++;
    }
    if (date == 13) {
      final[d] += 1;
    }
    d++;
  }
  for (i = 4; i < 7; i++) {
    fprintf(fout, "%d ", final[i]);
  }
  for (i = 0; i < 3; i++) {
    fprintf(fout, "%d ", final[i]);
  }
  fprintf(fout, "%d\n", final[3]);
  fclose(fin);
  fclose(fout);
}
```