user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x10(%rbp)
  lea    D78(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0x14(%rbp),%rax
  mov    %rax,%rsi
  lea    D56(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x14(%rbp),%eax
  cltd
  shr    $0x1e,%edx
  add    %edx,%eax
  and    $0x3,%eax
  sub    %edx,%eax
  mov    %eax,-0xc(%rbp)
  cmpl   $0x3,-0xc(%rbp)
  je     L15
  cmpl   $0x3,-0xc(%rbp)
  jg     L5
  cmpl   $0x2,-0xc(%rbp)
  je     L74
  cmpl   $0x2,-0xc(%rbp)
  jg     L5
  cmpl   $0x0,-0xc(%rbp)
  je     L113
  cmpl   $0x1,-0xc(%rbp)
  je     L91
  jmp    L5
L113:
  mov    -0x14(%rbp),%eax
  and    $0x3,%eax
  test   %eax,%eax
  jne    L91
  addl   $0x2,-0x10(%rbp)
L91:
  mov    -0x14(%rbp),%eax
  cltd
  shr    $0x1e,%edx
  add    %edx,%eax
  and    $0x3,%eax
  sub    %edx,%eax
  cmp    $0x1,%eax
  jne    L74
  addl   $0x1,-0x10(%rbp)
L74:
  mov    -0x14(%rbp),%eax
  cltd
  shr    $0x1e,%edx
  add    %edx,%eax
  and    $0x3,%eax
  sub    %edx,%eax
  cmp    $0x2,%eax
  jne    L15
  addl   $0x2,-0x10(%rbp)
L15:
  mov    -0x14(%rbp),%eax
  cltd
  shr    $0x1e,%edx
  add    %edx,%eax
  and    $0x3,%eax
  sub    %edx,%eax
  cmp    $0x3,%eax
  jne    L5
  addl   $0x3,-0x10(%rbp)
L5:
  cmpl   $0x6,-0x10(%rbp)
  ja     L84
  mov    -0x10(%rbp),%eax
  lea    0x0(,%rax,4),%rdx
  lea    D90(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D90(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D64(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D41(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D104(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D96(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D18(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L84:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L25
  call   <__stack_chk_fail@plt>
L25:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D78
type: string
name: retrieve_data
arguments: label: D56
type: string
name: retrieve_data
arguments: label: D8
type: string
name: retrieve_data
arguments: label: D64
type: string
name: retrieve_data
arguments: label: D41
type: string
name: retrieve_data
arguments: label: D104
type: string
name: retrieve_data
arguments: label: D17
type: string
name: retrieve_data
arguments: label: D96
type: string
name: retrieve_data
arguments: label: D18
type: string

tool: D78: Enter the year:

tool: D56: %d

tool: D8: Monday

tool: D64: Tuesday

tool: D41: Wednesday

tool: D104: Thursday

tool: D17: Friday

tool: D96: Saturday

tool: D18: Sunday

assistant: ```c
int main() {
  int a, b, count = 0;
  printf("Enter the year:");
  scanf("%d", &a);
  b = a % 4;
  switch (b) {
  case 0:
    if (a % 4 == 0)
      count += 2;
  case 1:
    if (a % 4 == 1)
      count += 1;
  case 2:
    if (a % 4 == 2)
      count += 2;
  case 3:
    if (a % 4 == 3)
      count += 3;
  }
  switch (count) {
  case 0:
    printf("Monday");
  case 1:
    printf("Tuesday");
  case 2:
    printf("Wednesday");
  case 3:
    printf("Thursday");
  case 4:
    printf("Friday");
  case 5:
    printf("Saturday");
  case 6:
    printf("Sunday");
  }
}
```