user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  lea    D26(%rip),%rsi
  lea    D8(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%rbx
  lea    D31(%rip),%rsi
  lea    D15(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%rbp
  movl   $0x0,0x30(%rsp)
  movl   $0x1f,0x34(%rsp)
  movl   $0x1f,0x3c(%rsp)
  movl   $0x1e,0x40(%rsp)
  movl   $0x1f,0x44(%rsp)
  movl   $0x1e,0x48(%rsp)
  movl   $0x1f,0x4c(%rsp)
  movl   $0x1f,0x50(%rsp)
  movl   $0x1e,0x54(%rsp)
  movl   $0x1f,0x58(%rsp)
  movl   $0x1e,0x5c(%rsp)
  movl   $0x1f,0x60(%rsp)
  movq   $0x0,0x10(%rsp)
  movq   $0x0,0x18(%rsp)
  movq   $0x0,0x20(%rsp)
  movl   $0x0,0x28(%rsp)
  lea    0xc(%rsp),%rdx
  lea    D39(%rip),%rsi
  mov    %rbx,%rdi
  call   <fscanf@plt>
  mov    0xc(%rsp),%eax
  lea    0x76b(%rax),%edi
  cmp    $0x76b,%edi
  jle    L80
  mov    $0x1,%eax
  mov    $0x1,%r8d
  mov    $0x1,%esi
  mov    $0x76c,%ecx
  jmp    L2
L109:
  cmp    $0xb,%esi
  jg     L17
  add    $0x1,%esi
L83:
  lea    0x1(%rax),%edx
  movslq %edx,%rax
  imul   $0xffffffff92492493,%rax,%rax
  shr    $0x20,%rax
  add    %edx,%eax
  sar    $0x2,%eax
  mov    %edx,%r8d
  sar    $0x1f,%r8d
  sub    %r8d,%eax
  lea    0x0(,%rax,8),%r8d
  sub    %eax,%r8d
  mov    %edx,%eax
  sub    %r8d,%eax
  cmp    %edi,%ecx
  jg     L80
  mov    $0x1,%r8d
L2:
  movslq %ecx,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  sar    $0x27,%rdx
  mov    %ecx,%r9d
  sar    $0x1f,%r9d
  sub    %r9d,%edx
  imul   $0x190,%edx,%edx
  mov    $0x1d,%r9d
  cmp    %edx,%ecx
  je     L4
  movslq %ecx,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  sar    $0x25,%rdx
  mov    %ecx,%r9d
  sar    $0x1f,%r9d
  sub    %r9d,%edx
  imul   $0x64,%edx,%edx
  mov    $0x1c,%r9d
  cmp    %edx,%ecx
  je     L4
  mov    %ecx,%r9d
  and    $0x3,%r9d
  cmp    $0x1,%r9d
  mov    $0x1c,%r9d
  adc    $0x0,%r9d
L4:
  mov    %r9d,0x38(%rsp)
  movslq %esi,%rdx
  cmp    %r8d,0x30(%rsp,%rdx,4)
  jle    L109
  add    $0x1,%r8d
  lea    0x1(%rax),%edx
  movslq %edx,%rax
  imul   $0xffffffff92492493,%rax,%rax
  shr    $0x20,%rax
  add    %edx,%eax
  sar    $0x2,%eax
  mov    %edx,%r9d
  sar    $0x1f,%r9d
  sub    %r9d,%eax
  lea    0x0(,%rax,8),%r9d
  sub    %eax,%r9d
  mov    %edx,%eax
  sub    %r9d,%eax
  cmp    %ecx,%edi
  jl     L80
  cmp    $0xd,%r8d
  jne    L2
  movslq %eax,%rdx
  addl   $0x1,0x10(%rsp,%rdx,4)
  jmp    L2
L17:
  add    $0x1,%ecx
  mov    $0x1,%esi
  jmp    L83
L80:
  sub    $0x8,%rsp
  mov    0x2c(%rsp),%eax
  push   %rax
  mov    0x30(%rsp),%eax
  push   %rax
  mov    0x34(%rsp),%eax
  push   %rax
  mov    0x38(%rsp),%r9d
  mov    0x34(%rsp),%r8d
  mov    0x30(%rsp),%ecx
  mov    0x48(%rsp),%edx
  lea    D24(%rip),%rsi
  mov    %rbp,%rdi
  call   <fprintf@plt>
  add    $0x20,%rsp
  mov    %rbx,%rdi
  call   <fclose@plt>
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L69
  mov    $0x0,%eax
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  ret
L69:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D26
type_infered: string
name: parse_data
arguments: data_label: D8
type_infered: string
name: parse_data
arguments: data_label: D31
type_infered: string
name: parse_data
arguments: data_label: D15
type_infered: string
name: parse_data
arguments: data_label: D39
type_infered: string
name: parse_data
arguments: data_label: D24
type_infered: string

tool: D26: r

tool: D8: friday.in

tool: D31: w

tool: D15: friday.out

tool: D39: %d

tool: D24: %d %d %d %d %d %d %d


assistant: ```c
int main() {
  FILE *fin = fopen("friday.in", "r");
  FILE *fout = fopen("friday.out", "w");
  int days_in_month[13] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
  int res[7] = {0};
  int year = 1900, month = 1, day = 1;
  int n, end_year;
  int which_day = 1;
  fscanf(fin, "%d", &n);
  end_year = 1900 + n - 1;
  while (year <= end_year) {
    if (day == 13)
      res[which_day]++;
    if (year % 400 == 0 || (year % 100 != 0 && year % 4 == 0))
      days_in_month[2] = 29;
    else
      days_in_month[2] = 28;
    if (day < days_in_month[month])
      day++;
    else {
      day = 1;
      if (month < 12)
        month++;
      else {
        month = 1;
        year++;
      }
    }
    which_day++;
    which_day %= 7;
  }
  fprintf(fout, "%d %d %d %d %d %d %d\n", res[6], res[0], res[1], res[2], res[3], res[4], res[5]);
  fclose(fin);
  fclose(fout);
  return 0;
}
```