user: 请将以下的汇编代码转换成C语言代码：

```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    D5(%rip),%rdi
  call   <printf@plt>
  cmp    $0x8,%r13d
  pop    %rax
  pop    %rdx
  mov    0x8(%rsp),%r11d
  mov    0xc(%rsp),%r10d
  je     L14
  cmp    $0x9,%r13d
  je     L31
  cmp    $0xa,%r13d
  je     L200
  cmp    $0xb,%r13d
  je     L22
  cmp    $0xc,%r13d
  jne    L209
  lea    -0x1(%r15),%eax
  cmp    $0x1e,%eax
  ja     L204
  lea    0x14f(%r15),%r11d
  jmp    L209
  nopl   0x0(%rax)
L31:
  lea    -0x1(%r15),%eax
  cmp    $0x1d,%eax
  ja     L204
  lea    0xf4(%r15),%r11d
L209:
  cmp    $0x8,%r12d
  je     L246
L0:
  cmp    $0x9,%r12d
  je     L266
  cmp    $0xa,%r12d
  je     L19
  cmp    $0xb,%r12d
  je     L105
  cmp    $0xc,%r12d
  jne    L142
  lea    -0x1(%rbx),%eax
  cmp    $0x1e,%eax
  ja     L204
  lea    0x14f(%rbx),%r10d
  jmp    L142
  nopl   0x0(%rax,%rax,1)
L14:
  lea    -0x1(%r15),%eax
  cmp    $0x1e,%eax
  ja     L278
  lea    0xd5(%r15),%r11d
  cmp    $0x8,%r12d
  jne    L0
L246:
  lea    -0x1(%rbx),%eax
  cmp    $0x1e,%eax
  ja     L204
  lea    0xd5(%rbx),%r10d
L142:
  mov    %r10d,%eax
  xor    %edx,%edx
  sub    %r11d,%eax
  cmp    %r10d,%r11d
  cmovg  %edx,%eax
L213:
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L258
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L266:
  lea    -0x1(%rbx),%eax
  cmp    $0x1d,%eax
  ja     L204
  lea    0xf4(%rbx),%r10d
  jmp    L142
  nopl   0x0(%rax)
L22:
  lea    -0x1(%r15),%eax
  cmp    $0x1d,%eax
  ja     L204
  lea    0x131(%r15),%r11d
  jmp    L209
  nopl   (%rax)
L105:
  lea    -0x1(%rbx),%eax
  cmp    $0x1d,%eax
  ja     L204
  lea    0x131(%rbx),%r10d
  jmp    L142
  nopl   0x0(%rax)
L200:
  lea    -0x1(%r15),%eax
  cmp    $0x1e,%eax
  ja     L204
  lea    0x112(%r15),%r11d
  jmp    L209
  nopl   (%rax)
L19:
  lea    -0x1(%rbx),%eax
  cmp    $0x1e,%eax
  ja     L204
  lea    0x112(%rbx),%r10d
  jmp    L142
  nopl   0x0(%rax)
L204:
  mov    $0xffffffff,%eax
  jmp    L213
L278:
  mov    $0xfffffffe,%eax
  jmp    L213
L258:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D5
data_type: string

tool: D5: %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);
}
```