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

```asm
<check_scheduled_time>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  call   <strlen@plt>
  cmp    $0xe,%eax
  jne    L47
  lea    0x23(%rsp),%rbp
  mov    %rbx,%rsi
  mov    $0x4,%edx
  mov    %rbp,%rdi
  lea    0x17(%rsp),%r14
  lea    0x1a(%rsp),%r12
  call   <strncpy@plt>
  lea    0x14(%rsp),%r8
  lea    0x4(%rbx),%rsi
  mov    $0x2,%edx
  mov    %r8,%rdi
  mov    %r8,0x8(%rsp)
  lea    0x1d(%rsp),%r13
  lea    0x20(%rsp),%r15
  movb   $0x0,0x27(%rsp)
  call   <strncpy@plt>
  lea    0x6(%rbx),%rsi
  mov    %r14,%rdi
  mov    $0x2,%edx
  movb   $0x0,0x16(%rsp)
  call   <strncpy@plt>
  lea    0x8(%rbx),%rsi
  mov    %r12,%rdi
  mov    $0x2,%edx
  movb   $0x0,0x19(%rsp)
  call   <strncpy@plt>
  lea    0xa(%rbx),%rsi
  mov    %r13,%rdi
  mov    $0x2,%edx
  movb   $0x0,0x1c(%rsp)
  call   <strncpy@plt>
  lea    0xc(%rbx),%rsi
  mov    $0x2,%edx
  mov    %r15,%rdi
  movb   $0x0,0x1f(%rsp)
  call   <strncpy@plt>
  mov    %rbp,%rdi
  movb   $0x0,0x22(%rsp)
  call   <atoi@plt>
  mov    0x8(%rsp),%rdi
  mov    %eax,%ebp
  call   <atoi@plt>
  mov    %r14,%rdi
  mov    %eax,%ebx
  call   <atoi@plt>
  mov    %r12,%rdi
  mov    %eax,%r14d
  call   <atoi@plt>
  mov    %r13,%rdi
  mov    %eax,%r12d
  call   <atoi@plt>
  mov    %r15,%rdi
  mov    %eax,%r13d
  call   <atoi@plt>
  lea    -0x7b2(%rbp),%edx
  cmp    $0x82,%edx
  ja     L47
  lea    -0x1(%rbx),%edx
  cmp    $0xb,%edx
  ja     L47
  lea    -0x1(%r14),%edx
  cmp    $0x1e,%edx
  ja     L47
  cmp    $0x2,%ebx
  je     L46
  cmp    $0xb,%ebx
  ja     L145
  mov    $0xa50,%edx
  bt     %rbx,%rdx
  jae    L145
  cmp    $0x1f,%r14d
  je     L47
L145:
  cmp    $0x17,%r12d
  ja     L47
  cmp    $0x3b,%r13d
  ja     L47
  cmp    $0x3b,%eax
  seta   %al
  movzbl %al,%eax
  neg    %eax
L117:
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L148
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L46:
  test   $0x3,%bpl
  jne    L103
  imul   $0xc28f5c29,%ebp,%ebp
  add    $0x51eb850,%ebp
  mov    %ebp,%edx
  ror    $0x2,%edx
  cmp    $0x28f5c28,%edx
  ja     L44
  ror    $0x4,%ebp
  cmp    $0xa3d70a,%ebp
  ja     L103
L44:
  cmp    $0x1d,%r14d
  jle    L145
  nopl   0x0(%rax,%rax,1)
L47:
  mov    $0xffffffff,%eax
  jmp    L117
  nopw   0x0(%rax,%rax,1)
L103:
  cmp    $0x1c,%r14d
  jle    L145
  jmp    L47
L148:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int check_scheduled_time(char *data) {
  int size, i_year, i_mon, i_day, i_hour, i_min, i_sec, val, leap_year;
  char year[5], mon[3], day[3], hour[3], min[3], sec[3];
  size = strlen(data);
  if (size != 14) {
    return -1;
  }
  strncpy(year, data, 4);
  year[4] = '\0';
  strncpy(mon, (data + 4), 2);
  mon[2] = '\0';
  strncpy(day, (data + 6), 2);
  day[2] = '\0';
  strncpy(hour, (data + 8), 2);
  hour[2] = '\0';
  strncpy(min, (data + 10), 2);
  min[2] = '\0';
  strncpy(sec, (data + 12), 2);
  sec[2] = '\0';
  i_year = atoi(year);
  i_mon = atoi(mon);
  i_day = atoi(day);
  i_hour = atoi(hour);
  i_min = atoi(min);
  i_sec = atoi(sec);
  if (i_year < 1970 || i_year > 2100) {
    return -1;
  }
  if (i_mon < 1 || i_mon > 12) {
    return -1;
  }
  if (i_day < 1 || i_day > 31) {
    return -1;
  }
  if (i_mon == 2) {
    if ((val = i_year % 4) == 0) {
      leap_year = 1;
      if ((val = i_year % 100) == 0) {
        leap_year = 0;
        if ((val = i_year % 400) == 0) {
          leap_year = 1;
        }
      }
    } else {
      leap_year = 0;
    }
    if (leap_year == 0 && i_day > 28) {
      return -1;
    }
    if (leap_year == 1 && i_day > 29) {
      return -1;
    }
  }
  if (i_mon == 4 || i_mon == 6 || i_mon == 9 || i_mon == 11) {
    if (i_day > 30) {
      return -1;
    }
  }
  if (i_hour < 0 || i_hour > 23) {
    return -1;
  }
  if (i_min < 0 || i_min > 59) {
    return -1;
  }
  if (i_sec < 0 || i_sec > 59) {
    return -1;
  }
  return 0;
}
```