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

```asm
<LateByDays>:
  endbr64
  push   %r15
  mov    $0x4,%edx
  push   %r14
  push   %r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  mov    %rdi,%rsi
  sub    $0x28,%rsp
  mov    %r10d,0xc(%rsp)
  lea    0x13(%rsp),%rbp
  mov    %r11d,0x8(%rsp)
  mov    %rbp,%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  call   <strncpy@plt>
  mov    %rbp,%rdi
  xor    %eax,%eax
  movb   $0x0,0x17(%rsp)
  call   <atoi@plt>
  lea    0x4(%r12),%rsi
  mov    $0x2,%edx
  mov    %rbp,%rdi
  mov    %eax,%r14d
  call   <strncpy@plt>
  mov    %rbp,%rdi
  xor    %eax,%eax
  movb   $0x0,0x15(%rsp)
  call   <atoi@plt>
  lea    0x6(%r12),%rsi
  mov    $0x2,%edx
  mov    %rbp,%rdi
  mov    %eax,%r13d
  call   <strncpy@plt>
  mov    %rbp,%rdi
  xor    %eax,%eax
  movb   $0x0,0x15(%rsp)
  call   <atoi@plt>
  mov    %rbx,%rsi
  mov    $0x4,%edx
  mov    %rbp,%rdi
  mov    %eax,%r15d
  call   <strncpy@plt>
  mov    %rbp,%rdi
  xor    %eax,%eax
  movb   $0x0,0x17(%rsp)
  call   <atoi@plt>
  lea    0x4(%rbx),%rsi
  mov    $0x2,%edx
  mov    %rbp,%rdi
  mov    %eax,0x4(%rsp)
  call   <strncpy@plt>
  mov    %rbp,%rdi
  xor    %eax,%eax
  movb   $0x0,0x15(%rsp)
  call   <atoi@plt>
  lea    0x6(%rbx),%rsi
  mov    $0x2,%edx
  mov    %rbp,%rdi
  mov    %eax,%r12d
  call   <strncpy@plt>
  mov    %rbp,%rdi
  xor    %eax,%eax
  movb   $0x0,0x15(%rsp)
  call   <atoi@plt>
  sub    $0x8,%rsp
  mov    %r13d,%edx
  mov    %r12d,%r9d
  push   %rax
  mov    0x14(%rsp),%r8d
  mov    %eax,%ebx
  mov    %r15d,%ecx
  xor    %eax,%eax
  mov    %r14d,%esi
  lea    D7(%rip),%rdi
  call   <printf@plt>
  cmp    $0x8,%r13d
  pop    %rax
  pop    %rdx
  mov    0x8(%rsp),%r11d
  mov    0xc(%rsp),%r10d
  je     L279
  cmp    $0x9,%r13d
  je     L18
  cmp    $0xa,%r13d
  je     L224
  cmp    $0xb,%r13d
  je     L94
  cmp    $0xc,%r13d
  jne    L248
  lea    -0x1(%r15),%eax
  cmp    $0x1e,%eax
  ja     L142
  lea    0x14f(%r15),%r11d
  jmp    L248
  nopl   0x0(%rax)
L18:
  lea    -0x1(%r15),%eax
  cmp    $0x1d,%eax
  ja     L142
  lea    0xf4(%r15),%r11d
L248:
  cmp    $0x8,%r12d
  je     L298
L64:
  cmp    $0x9,%r12d
  je     L202
  cmp    $0xa,%r12d
  je     L62
  cmp    $0xb,%r12d
  je     L144
  cmp    $0xc,%r12d
  jne    L99
  lea    -0x1(%rbx),%eax
  cmp    $0x1e,%eax
  ja     L142
  lea    0x14f(%rbx),%r10d
  jmp    L99
  nopl   0x0(%rax,%rax,1)
L279:
  lea    -0x1(%r15),%eax
  cmp    $0x1e,%eax
  ja     L194
  lea    0xd5(%r15),%r11d
  cmp    $0x8,%r12d
  jne    L64
L298:
  lea    -0x1(%rbx),%eax
  cmp    $0x1e,%eax
  ja     L142
  lea    0xd5(%rbx),%r10d
L99:
  mov    %r10d,%eax
  xor    %edx,%edx
  sub    %r11d,%eax
  cmp    %r10d,%r11d
  cmovg  %edx,%eax
L280:
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L8
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L202:
  lea    -0x1(%rbx),%eax
  cmp    $0x1d,%eax
  ja     L142
  lea    0xf4(%rbx),%r10d
  jmp    L99
  nopl   0x0(%rax)
L94:
  lea    -0x1(%r15),%eax
  cmp    $0x1d,%eax
  ja     L142
  lea    0x131(%r15),%r11d
  jmp    L248
  nopl   (%rax)
L144:
  lea    -0x1(%rbx),%eax
  cmp    $0x1d,%eax
  ja     L142
  lea    0x131(%rbx),%r10d
  jmp    L99
  nopl   0x0(%rax)
L224:
  lea    -0x1(%r15),%eax
  cmp    $0x1e,%eax
  ja     L142
  lea    0x112(%r15),%r11d
  jmp    L248
  nopl   (%rax)
L62:
  lea    -0x1(%rbx),%eax
  cmp    $0x1e,%eax
  ja     L142
  lea    0x112(%rbx),%r10d
  jmp    L99
  nopl   0x0(%rax)
L142:
  mov    $0xffffffff,%eax
  jmp    L280
L194:
  mov    $0xfffffffe,%eax
  jmp    L280
L8:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D7
datatype: string

tool: D7: %i %i %i , %i %i %i


assistant: ```c
int LateByDays(char *duedt, char *subdt) {
  int d1, m1, y1;
  int d2, m2, y2;
  char tmp[5];
  int days1, days2;
  strncpy(tmp, &duedt[0], 4);
  tmp[4] = '\0';
  y1 = atoi(tmp);
  strncpy(tmp, &duedt[4], 2);
  tmp[2] = '\0';
  m1 = atoi(tmp);
  strncpy(tmp, &duedt[6], 2);
  tmp[2] = '\0';
  d1 = atoi(tmp);
  strncpy(tmp, &subdt[0], 4);
  tmp[4] = '\0';
  y2 = atoi(tmp);
  strncpy(tmp, &subdt[4], 2);
  tmp[2] = '\0';
  m2 = atoi(tmp);
  strncpy(tmp, &subdt[6], 3);
  tmp[2] = '\0';
  d2 = atoi(tmp);
  printf("%i %i %i , %i %i %i\n", y1, m1, d1, y2, m2, d2);
  if (m1 == 8) {
    if ((d1 < 1) || (d1 > 31))
      return (-2);
    days1 = 31 + 29 + 31 + 30 + 31 + 30 + 31 + d1;
  } else if (m1 == 9) {
    if ((d1 < 1) || (d1 > 30))
      return (-1);
    days1 = 31 + 29 + 31 + 30 + 31 + 30 + 31 + 31 + d1;
  } else if (m1 == 10) {
    if ((d1 < 1) || (d1 > 31))
      return (-1);
    days1 = 31 + 29 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + d1;
  } else if (m1 == 11) {
    if ((d1 < 1) || (d1 > 30))
      return (-1);
    days1 = 31 + 29 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + d1;
  } else if (m1 == 12) {
    if ((d1 < 1) || (d1 > 31))
      return (-1);
    days1 = 31 + 29 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30 + d1;
  }
  if (m2 == 8) {
    if ((d2 < 1) || (d2 > 31))
      return (-1);
    days2 = 31 + 29 + 31 + 30 + 31 + 30 + 31 + d2;
  } else if (m2 == 9) {
    if ((d2 < 1) || (d2 > 30))
      return (-1);
    days2 = 31 + 29 + 31 + 30 + 31 + 30 + 31 + 31 + d2;
  } else if (m2 == 10) {
    if ((d2 < 1) || (d2 > 31))
      return (-1);
    days2 = 31 + 29 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + d2;
  } else if (m2 == 11) {
    if ((d2 < 1) || (d2 > 30))
      return (-1);
    days2 = 31 + 29 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + d2;
  } else if (m2 == 12) {
    if ((d2 < 1) || (d2 > 31))
      return (-1);
    days2 = 31 + 29 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30 + d2;
  }
  if (days1 > days2)
    return 0;
  return (days2 - days1);
}
```