user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  movl   $0x0,0xc(%rsp)
  movl   $0x0,0x10(%rsp)
  movl   $0x0,0x14(%rsp)
  lea    D18(%rip),%rdi
  call   <printf@plt>
  lea    0x14(%rsp),%rsi
  lea    D206(%rip),%rdi
  call   <scanf@plt>
  mov    0x14(%rsp),%eax
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  sar    $0x27,%rdx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x190,%edx,%edx
  mov    $0x1,%r13d
  cmp    %edx,%eax
  je     L207
  mov    $0x0,%r13d
  test   $0x3,%al
  jne    L207
  mov    $0x64,%ecx
  cltd
  idiv   %ecx
  test   %edx,%edx
  setg   %r13b
  movzbl %r13b,%r13d
L207:
  lea    D195(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rsi
  lea    D206(%rip),%rdi
  call   <scanf@plt>
  mov    0x10(%rsp),%eax
  sub    $0x1,%eax
  cmp    $0xb,%eax
  jbe    L46
  lea    D154(%rip),%r14
  lea    D33(%rip),%r12
  lea    0x10(%rsp),%rbp
  lea    D206(%rip),%rbx
L95:
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    0x10(%rsp),%eax
  sub    $0x1,%eax
  cmp    $0xb,%eax
  ja     L95
L46:
  lea    D218(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  lea    D206(%rip),%rdi
  call   <scanf@plt>
  mov    0x10(%rsp),%ecx
  cmp    $0xc,%ecx
  ja     L2
  mov    $0x1,%eax
  shl    %cl,%rax
  test   $0x15aa,%eax
  je     L1
  mov    0xc(%rsp),%eax
  sub    $0x1,%eax
  cmp    $0x1e,%eax
  jbe    L2
  lea    D256(%rip),%r14
  lea    D228(%rip),%r12
  lea    0xc(%rsp),%rbp
  lea    D206(%rip),%rbx
L102:
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    0xc(%rsp),%eax
  sub    $0x1,%eax
  cmp    $0x1e,%eax
  ja     L102
L2:
  mov    0x14(%rsp),%ecx
  mov    0x10(%rsp),%edx
  mov    0xc(%rsp),%esi
  lea    D138(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmp    $0x1,%r13d
  je     L146
L127:
  mov    0x14(%rsp),%esi
  lea    D149(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L129:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L10
  mov    $0x0,%eax
  add    $0x20,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L1:
  test   $0xa50,%eax
  je     L122
  mov    0xc(%rsp),%eax
  sub    $0x1,%eax
  lea    D256(%rip),%r14
  lea    D14(%rip),%r12
  lea    0xc(%rsp),%rbp
  lea    D206(%rip),%rbx
  cmp    $0x1d,%eax
  jbe    L2
L43:
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    0xc(%rsp),%eax
  sub    $0x1,%eax
  cmp    $0x1d,%eax
  ja     L43
  jmp    L2
L122:
  cmp    $0x2,%ecx
  jne    L2
  cmp    $0x1,%r13d
  je     L125
  mov    0xc(%rsp),%eax
  sub    $0x1,%eax
  lea    D256(%rip),%r13
  lea    D34(%rip),%r12
  lea    0xc(%rsp),%rbp
  lea    D206(%rip),%rbx
  cmp    $0x1b,%eax
  jbe    L173
L27:
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    0xc(%rsp),%eax
  sub    $0x1,%eax
  cmp    $0x1b,%eax
  ja     L27
L173:
  mov    0x14(%rsp),%ecx
  mov    0x10(%rsp),%edx
  mov    0xc(%rsp),%esi
  lea    D138(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L127
L125:
  mov    0xc(%rsp),%eax
  sub    $0x1,%eax
  cmp    $0x1c,%eax
  jbe    L204
  lea    D256(%rip),%r13
  lea    D258(%rip),%r12
  lea    0xc(%rsp),%rbp
  lea    D206(%rip),%rbx
L120:
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    0xc(%rsp),%eax
  sub    $0x1,%eax
  cmp    $0x1c,%eax
  ja     L120
L204:
  mov    0x14(%rsp),%ecx
  mov    0x10(%rsp),%edx
  mov    0xc(%rsp),%esi
  lea    D138(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L146:
  mov    0x14(%rsp),%esi
  lea    D97(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L129
L10:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D18
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D206
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D195
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D154
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D33
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D218
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D256
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D228
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D138
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D149
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D14
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D34
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D258
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D97
type_guessed: string

tool: D18: 
Please enter a year: 

tool: D206: %d

tool: D195: 
Please enter a month: 

tool: D154: 
Error - the month that you entered is not possible.

tool: D33: 
Please enter a correct month between 1 and 12: 

tool: D218: 
Please enter a day: 

tool: D256: 
Error - the day that you entered is not possible.

tool: D228: 
Please enter a correct day between 1 and 31: 

tool: D138: 
You entered, %d/%d/%d. (day/month/year)


tool: D149: 
Your year, %d, is not a leap year.


tool: D14: 
Please enter a correct day between 1 and 30: 

tool: D34: 
Please enter a correct day between 1 and 28: 

tool: D258: 
Please enter a correct day between 1 and 29: 

tool: D97: 
Your year, %d, is a leap year.


assistant: ```c
int main() {
  int day, month, year, leapYear;
  day = 0;
  month = 0;
  year = 0;
  leapYear = 0;
  printf("\nPlease enter a year: ");
  scanf("%d", &year);
  if ((year % 400 == 0) || (year % 4 == 0 && year % 100 > 0)) {
    leapYear = 1;
  } else {
    leapYear = 0;
  }
  printf("\nPlease enter a month: ");
  scanf("%d", &month);
  while (month < 1 || month > 12) {
    printf("\nError - the month that you entered is not possible.");
    printf("\nPlease enter a correct month between 1 and 12: ");
    scanf("%d", &month);
  }
  printf("\nPlease enter a day: ");
  scanf("%d", &day);
  switch (month) {
  case 1:
  case 3:
  case 5:
  case 7:
  case 8:
  case 10:
  case 12:
    while (day < 1 || day > 31) {
      printf("\nError - the day that you entered is not possible.");
      printf("\nPlease enter a correct day between 1 and 31: ");
      scanf("%d", &day);
    }
    break;
  case 2:
    if (leapYear == 1) {
      while (day < 1 || day > 29) {
        printf("\nError - the day that you entered is not possible.");
        printf("\nPlease enter a correct day between 1 and 29: ");
        scanf("%d", &day);
      }
      break;
    } else {
      while (day < 1 || day > 28) {
        printf("\nError - the day that you entered is not possible.");
        printf("\nPlease enter a correct day between 1 and 28: ");
        scanf("%d", &day);
      }
      break;
    }
  case 4:
  case 6:
  case 9:
  case 11:
    while (day < 1 || day > 30) {
      printf("\nError - the day that you entered is not possible.");
      printf("\nPlease enter a correct day between 1 and 30: ");
      scanf("%d", &day);
    }
  }
  printf("\nYou entered, %d/%d/%d. (day/month/year)\n", day, month, year);
  if (leapYear == 1) {
    printf("\nYour year, %d, is a leap year.\n", year);
  } else
    printf("\nYour year, %d, is not a leap year.\n", year);
  return 0;
}
```