user: What is the c source code of the assembly code below?

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x7dc,-0x40(%rbp)
  movl   $0x2,-0x3c(%rbp)
  movl   $0x1d,-0x38(%rbp)
  movl   $0x3c,-0x34(%rbp)
  movl   $0x7dd,-0x30(%rbp)
  movl   $0x3,-0x2c(%rbp)
  movl   $0x1,-0x28(%rbp)
  movl   $0x3c,-0x24(%rbp)
  movl   $0x7c1,-0x20(%rbp)
  movl   $0xa,-0x1c(%rbp)
  movl   $0x16,-0x18(%rbp)
  movl   $0x127,-0x14(%rbp)
  movl   $0x0,-0x4c(%rbp)
  mov    -0x4c(%rbp),%eax
  mov    %eax,-0x50(%rbp)
  movl   $0x0,-0x44(%rbp)
  movl   $0x0,-0x48(%rbp)
  jmp    L33
L15:
  mov    -0x48(%rbp),%eax
  cltq
  shl    $0x4,%rax
  add    %rbp,%rax
  sub    $0x38,%rax
  mov    (%rax),%edx
  mov    -0x48(%rbp),%eax
  cltq
  shl    $0x4,%rax
  add    %rbp,%rax
  sub    $0x3c,%rax
  mov    (%rax),%ecx
  mov    -0x48(%rbp),%eax
  cltq
  shl    $0x4,%rax
  add    %rbp,%rax
  sub    $0x40,%rax
  mov    (%rax),%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <day_of_year@plt>
  mov    %eax,-0x44(%rbp)
  mov    -0x48(%rbp),%eax
  cltq
  shl    $0x4,%rax
  add    %rbp,%rax
  sub    $0x40,%rax
  mov    (%rax),%eax
  lea    -0x4c(%rbp),%rcx
  lea    -0x50(%rbp),%rdx
  mov    -0x44(%rbp),%esi
  mov    %eax,%edi
  call   <month_day@plt>
  cmpl   $0x0,-0x44(%rbp)
  jle    L65
  mov    -0x50(%rbp),%eax
  test   %eax,%eax
  je     L65
  mov    -0x4c(%rbp),%eax
  test   %eax,%eax
  je     L65
  mov    -0x48(%rbp),%eax
  cltq
  shl    $0x4,%rax
  add    %rbp,%rax
  sub    $0x38,%rax
  mov    (%rax),%ecx
  mov    -0x48(%rbp),%eax
  cltq
  shl    $0x4,%rax
  add    %rbp,%rax
  sub    $0x3c,%rax
  mov    (%rax),%edx
  mov    -0x48(%rbp),%eax
  cltq
  shl    $0x4,%rax
  add    %rbp,%rax
  sub    $0x40,%rax
  mov    (%rax),%eax
  mov    -0x44(%rbp),%esi
  mov    %esi,%r8d
  mov    %eax,%esi
  lea    D22(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x4c(%rbp),%esi
  mov    -0x50(%rbp),%ecx
  mov    -0x48(%rbp),%eax
  cltq
  shl    $0x4,%rax
  add    %rbp,%rax
  sub    $0x40,%rax
  mov    (%rax),%edx
  mov    -0x44(%rbp),%eax
  mov    %esi,%r8d
  mov    %eax,%esi
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L45
L65:
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L45:
  addl   $0x1,-0x48(%rbp)
L33:
  cmpl   $0x2,-0x48(%rbp)
  jle    L15
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L7
  call   <__stack_chk_fail@plt>
L7:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D22
data_type: string
name: disassemble_data
arguments: data_label: D9
data_type: string
name: disassemble_data
arguments: data_label: D26
data_type: string

tool: D22: %4d-%02d-%02d is day %3d of the year. 

tool: D9: Day %3d of %4d is month %2d and day %3d.


tool: D26: Out of range

assistant: ```c
int main() {
  int i, m, d, doy;
  int tvals[][4] = {{2012, 2, 29, 60}, {2013, 3, 1, 60}, {1985, 10, 22, 295}};
  m = d = 0;
  doy = 0;
  for (i = 0; i < 3; i++) {
    doy = day_of_year(tvals[i][0], tvals[i][1], tvals[i][2]);
    month_day(tvals[i][0], doy, &m, &d);
    if (doy > 0 && m != 0 && d != 0) {
      printf("%4d-%02d-%02d is day %3d of the year. ", tvals[i][0], tvals[i][1], tvals[i][2], doy);
      printf("Day %3d of %4d is month %2d and day %3d.\n", doy, tvals[i][0], m, d);
    } else {
      printf("Out of range\n");
    }
  }
  return 0;
}
```