user: Converte this assembly snippet into its equivalent C code:

```asm
<seven>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xe0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0xd0(%rbp)
  movl   $0x1f,-0xcc(%rbp)
  movl   $0x1c,-0xc8(%rbp)
  movl   $0x1f,-0xc4(%rbp)
  movl   $0x1e,-0xc0(%rbp)
  movl   $0x1f,-0xbc(%rbp)
  movl   $0x1e,-0xb8(%rbp)
  movl   $0x1f,-0xb4(%rbp)
  movl   $0x1f,-0xb0(%rbp)
  movl   $0x1e,-0xac(%rbp)
  movl   $0x1f,-0xa8(%rbp)
  movl   $0x1e,-0xa4(%rbp)
  movl   $0x1f,-0xa0(%rbp)
  movq   $0x0,-0x90(%rbp)
  movw   $0x0,-0x88(%rbp)
  movabs $0x797261756e614a,%rax
  mov    %rax,-0x86(%rbp)
  movw   $0x0,-0x7e(%rbp)
  movabs $0x7972617572626546,%rax
  mov    %rax,-0x7c(%rbp)
  movw   $0x0,-0x74(%rbp)
  movabs $0x686372614d,%rax
  mov    %rax,-0x72(%rbp)
  movw   $0x0,-0x6a(%rbp)
  movabs $0x6c69727041,%rax
  mov    %rax,-0x68(%rbp)
  movw   $0x0,-0x60(%rbp)
  movq   $0x79614d,-0x5e(%rbp)
  movw   $0x0,-0x56(%rbp)
  movq   $0x656e754a,-0x54(%rbp)
  movw   $0x0,-0x4c(%rbp)
  movq   $0x796c754a,-0x4a(%rbp)
  movw   $0x0,-0x42(%rbp)
  movabs $0x747375677541,%rax
  mov    %rax,-0x40(%rbp)
  movw   $0x0,-0x38(%rbp)
  movabs $0x65626d6574706553,%rax
  mov    %rax,-0x36(%rbp)
  movw   $0x72,-0x2e(%rbp)
  movabs $0x7265626f74634f,%rax
  mov    %rax,-0x2c(%rbp)
  movw   $0x0,-0x24(%rbp)
  movabs $0x7265626d65766f4e,%rax
  mov    %rax,-0x22(%rbp)
  movw   $0x0,-0x1a(%rbp)
  movabs $0x7265626d65636544,%rax
  mov    %rax,-0x18(%rbp)
  movw   $0x0,-0x10(%rbp)
  lea    D94(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0xe0(%rbp),%rax
  mov    %rax,%rsi
  lea    D64(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0xe0(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x68db8bad,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0xc,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0xdc(%rbp)
  mov    -0xe0(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x5,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x5,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  mov    %edx,-0xd8(%rbp)
  mov    -0xd8(%rbp),%edx
  imul   $0x64,%edx,%edx
  sub    %edx,%eax
  mov    %eax,-0xd8(%rbp)
  mov    -0xe0(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x5,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  mov    %edx,-0xd4(%rbp)
  mov    -0xd4(%rbp),%edx
  imul   $0x64,%edx,%edx
  sub    %edx,%eax
  mov    %eax,-0xd4(%rbp)
  mov    -0xc8(%rbp),%edx
  mov    -0xd4(%rbp),%eax
  and    $0x3,%eax
  test   %eax,%eax
  sete   %al
  movzbl %al,%eax
  add    %edx,%eax
  mov    %eax,-0xc8(%rbp)
  cmpl   $0x0,-0xd8(%rbp)
  jle    L72
  cmpl   $0xc,-0xd8(%rbp)
  jg     L72
  cmpl   $0x0,-0xdc(%rbp)
  jle    L72
  mov    -0xd8(%rbp),%eax
  cltq
  mov    -0xd0(%rbp,%rax,4),%eax
  cmp    %eax,-0xdc(%rbp)
  jle    L90
L72:
  lea    D70(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L12
L90:
  mov    -0xdc(%rbp),%eax
  mov    %eax,%esi
  lea    D30(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0xdc(%rbp),%eax
  sub    $0xa,%eax
  cmp    $0x9,%eax
  ja     L128
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L88
L128:
  mov    -0xdc(%rbp),%ecx
  movslq %ecx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %ecx,%edx
  sar    $0x1f,%edx
  sub    %edx,%eax
  mov    %eax,%edx
  shl    $0x2,%edx
  add    %eax,%edx
  lea    (%rdx,%rdx,1),%eax
  mov    %eax,%edx
  mov    %ecx,%eax
  sub    %edx,%eax
  cmp    $0x3,%eax
  je     L136
  cmp    $0x3,%eax
  jg     L75
  cmp    $0x1,%eax
  je     L71
  cmp    $0x2,%eax
  je     L21
  jmp    L75
L71:
  lea    D56(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L88
L21:
  lea    D33(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L88
L136:
  lea    D99(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L88
L75:
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  nop
L88:
  lea    -0x90(%rbp),%rcx
  mov    -0xd8(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  add    %rax,%rax
  add    %rax,%rcx
  mov    -0xd4(%rbp),%eax
  mov    %eax,%edx
  mov    %rcx,%rsi
  lea    D36(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L12:
  mov    $0x0,%eax
  call   <getchar@plt>
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L14
  call   <__stack_chk_fail@plt>
L14:
  leave
  ret
```

tool_calls: name: parse_data
arguments: tag: D94
data_type: string
name: parse_data
arguments: tag: D64
data_type: string
name: parse_data
arguments: tag: D70
data_type: string
name: parse_data
arguments: tag: D30
data_type: string
name: parse_data
arguments: tag: D3
data_type: string
name: parse_data
arguments: tag: D56
data_type: string
name: parse_data
arguments: tag: D33
data_type: string
name: parse_data
arguments: tag: D99
data_type: string
name: parse_data
arguments: tag: D36
data_type: string
name: parse_data
arguments: tag: D21
data_type: string

tool: D94: enter date (int) in ddmmyy format: 

tool: D64: %d

tool: D70: 
invalid date

tool: D30: 
formatted date: %d

tool: D3: th 

tool: D56: st 

tool: D33: nd 

tool: D99: rd 

tool: D36: %s '%d


tool: D21: 
returning to menu. press Enter...

assistant: ```c
void seven() {
  int date, day, month, year, days[13] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
  char months[13][10] = {"", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"};
  printf("enter date (int) in ddmmyy format: ");
  scanf("%d", &date);
  day = date / 10000;
  month = (date / 100) % 100;
  year = date % 100;
  days[2] += (year % 4 == 0) ? 1 : 0;
  if ((month < 1) || (month > 12) || (day < 1) || (day > days[month]))
    printf("\ninvalid date\n");
  else {
    printf("\nformatted date: %d", day);
    if ((day / 10) == 1)
      printf("th ");
    else
      switch (day % 10) {
      case 1:
        printf("st ");
        break;
      case 2:
        printf("nd ");
        break;
      case 3:
        printf("rd ");
        break;
      default:
        printf("th ");
        break;
      }
    printf("%s '%d\n", months[month], year);
  }
  getchar();
  printf("\nreturning to menu. press Enter...");
  getchar();
}
```