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

```asm
<Day>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %edx,%r13d
  push   %r12
  mov    %esi,%r12d
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  sub    $0x48,%rsp
  movdqa D10(%rip),%xmm0
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  movaps %xmm0,(%rsp)
  movdqa D1(%rip),%xmm0
  movaps %xmm0,0x10(%rsp)
  movdqa D15(%rip),%xmm0
  movaps %xmm0,0x20(%rsp)
  call   <Leap@plt>
  mov    %eax,%r14d
  lea    -0x1(%rbp),%eax
  cmp    $0x270e,%eax
  ja     L119
  lea    -0x1(%r12),%eax
  cmp    $0xb,%eax
  ja     L253
  cmp    $0x2,%r12d
  je     L201
  cltq
  cmp    %r13d,(%rsp,%rax,4)
  jl     L89
L176:
  test   %r13d,%r13d
  jle    L89
  mov    $0x1,%ebx
  cmp    $0x1,%ebp
  je     L35
  mov    $0x1,%r15d
  jmp    L24
  nopl   (%rax)
L26:
  lea    0x16e(%rbx),%eax
L209:
  movslq %eax,%rbx
  cltd
  add    $0x1,%r15d
  imul   $0xffffffff92492493,%rbx,%rbx
  shr    $0x20,%rbx
  add    %eax,%ebx
  sar    $0x2,%ebx
  sub    %edx,%ebx
  lea    0x0(,%rbx,8),%edx
  sub    %ebx,%edx
  sub    %edx,%eax
  mov    %eax,%ebx
  cmp    %r15d,%ebp
  je     L35
L24:
  mov    %r15d,%edi
  call   <Leap@plt>
  test   %eax,%eax
  jne    L26
  lea    0x16d(%rbx),%eax
  jmp    L209
  xchg   %ax,%ax
L35:
  cmp    $0x1,%r12d
  je     L164
  lea    0x1f(%rbx),%eax
  mov    %rax,%rdx
  imul   $0x24924925,%rax,%rax
  mov    %edx,%ebx
  shr    $0x20,%rax
  sub    %eax,%ebx
  shr    %ebx
  add    %eax,%ebx
  shr    $0x2,%ebx
  lea    0x0(,%rbx,8),%eax
  sub    %ebx,%eax
  sub    %eax,%edx
  mov    %edx,%ebx
  test   %r14d,%r14d
  je     L66
  cmp    $0x2,%r12d
  je     L164
  lea    0x1d(%rdx),%eax
L195:
  mov    %rax,%rdx
  imul   $0x24924925,%rax,%rax
  mov    %edx,%ebx
  shr    $0x20,%rax
  sub    %eax,%ebx
  shr    %ebx
  add    %eax,%ebx
  shr    $0x2,%ebx
  lea    0x0(,%rbx,8),%eax
  sub    %ebx,%eax
  sub    %eax,%edx
  mov    %edx,%ebx
  cmp    $0x3,%r12d
  je     L164
  lea    0x1f(%rdx),%eax
  mov    %rax,%rdx
  imul   $0x24924925,%rax,%rax
  mov    %edx,%ebx
  shr    $0x20,%rax
  sub    %eax,%ebx
  shr    %ebx
  add    %eax,%ebx
  shr    $0x2,%ebx
  lea    0x0(,%rbx,8),%eax
  sub    %ebx,%eax
  sub    %eax,%edx
  mov    %edx,%ebx
  cmp    $0x4,%r12d
  je     L164
  lea    0x1e(%rdx),%eax
  mov    %rax,%rdx
  imul   $0x24924925,%rax,%rax
  mov    %edx,%ebx
  shr    $0x20,%rax
  sub    %eax,%ebx
  shr    %ebx
  add    %eax,%ebx
  shr    $0x2,%ebx
  lea    0x0(,%rbx,8),%eax
  sub    %ebx,%eax
  sub    %eax,%edx
  mov    %edx,%ebx
  cmp    $0x5,%r12d
  je     L164
  lea    0x1f(%rdx),%eax
  mov    %rax,%rdx
  imul   $0x24924925,%rax,%rax
  mov    %edx,%ebx
  shr    $0x20,%rax
  sub    %eax,%ebx
  shr    %ebx
  add    %eax,%ebx
  shr    $0x2,%ebx
  lea    0x0(,%rbx,8),%eax
  sub    %ebx,%eax
  sub    %eax,%edx
  mov    %edx,%ebx
  cmp    $0x6,%r12d
  je     L164
  lea    0x1e(%rdx),%eax
  mov    %rax,%rdx
  imul   $0x24924925,%rax,%rax
  mov    %edx,%ebx
  shr    $0x20,%rax
  sub    %eax,%ebx
  shr    %ebx
  add    %eax,%ebx
  shr    $0x2,%ebx
  lea    0x0(,%rbx,8),%eax
  sub    %ebx,%eax
  sub    %eax,%edx
  mov    %edx,%ebx
  cmp    $0x7,%r12d
  je     L164
  lea    0x1f(%rdx),%eax
  mov    %rax,%rdx
  imul   $0x24924925,%rax,%rax
  mov    %edx,%ebx
  shr    $0x20,%rax
  sub    %eax,%ebx
  shr    %ebx
  add    %eax,%ebx
  shr    $0x2,%ebx
  lea    0x0(,%rbx,8),%eax
  sub    %ebx,%eax
  sub    %eax,%edx
  mov    %edx,%ebx
  cmp    $0x8,%r12d
  je     L164
  lea    0x1f(%rdx),%eax
  mov    %rax,%rdx
  imul   $0x24924925,%rax,%rax
  mov    %edx,%ebx
  shr    $0x20,%rax
  sub    %eax,%ebx
  shr    %ebx
  add    %eax,%ebx
  shr    $0x2,%ebx
  lea    0x0(,%rbx,8),%eax
  sub    %ebx,%eax
  sub    %eax,%edx
  mov    %edx,%ebx
  cmp    $0x9,%r12d
  je     L164
  lea    0x1e(%rdx),%eax
  mov    %rax,%rdx
  imul   $0x24924925,%rax,%rax
  mov    %edx,%ebx
  shr    $0x20,%rax
  sub    %eax,%ebx
  shr    %ebx
  add    %eax,%ebx
  shr    $0x2,%ebx
  lea    0x0(,%rbx,8),%eax
  sub    %ebx,%eax
  sub    %eax,%edx
  mov    %edx,%ebx
  cmp    $0xa,%r12d
  je     L164
  lea    0x1f(%rdx),%eax
  mov    %rax,%rdx
  imul   $0x24924925,%rax,%rax
  mov    %edx,%ebx
  shr    $0x20,%rax
  sub    %eax,%ebx
  shr    %ebx
  add    %eax,%ebx
  shr    $0x2,%ebx
  lea    0x0(,%rbx,8),%eax
  sub    %ebx,%eax
  sub    %eax,%edx
  mov    %edx,%ebx
  cmp    $0xc,%r12d
  jne    L164
  lea    0x1e(%rdx),%eax
  mov    %rax,%rdx
  imul   $0x24924925,%rax,%rax
  mov    %edx,%ebx
  shr    $0x20,%rax
  sub    %eax,%ebx
  shr    %ebx
  add    %eax,%ebx
  shr    $0x2,%ebx
  lea    0x0(,%rbx,8),%eax
  sub    %ebx,%eax
  sub    %eax,%edx
  mov    %edx,%ebx
L164:
  lea    -0x1(%rbx,%r13,1),%edx
  movslq %edx,%rax
  mov    %edx,%ecx
  imul   $0xffffffff92492493,%rax,%rax
  sar    $0x1f,%ecx
  shr    $0x20,%rax
  add    %edx,%eax
  sar    $0x2,%eax
  sub    %ecx,%eax
  lea    0x0(,%rax,8),%ecx
  sub    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
L121:
  mov    0x38(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L215
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L66:
  cmp    $0x2,%r12d
  je     L164
  lea    0x1c(%rdx),%eax
  jmp    L195
  xchg   %ax,%ax
L201:
  lea    0x1c(%r14),%eax
  cmp    %r13d,%eax
  jge    L176
L89:
  mov    $0xfffffffd,%eax
  jmp    L121
L253:
  mov    $0xfffffffe,%eax
  jmp    L121
L119:
  mov    $0xffffffff,%eax
  jmp    L121
L215:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D10
type_guessed: byte[16]
name: read_data
arguments: label: D1
type_guessed: byte[16]
name: read_data
arguments: label: D15
type_guessed: byte[16]

tool: {"D10": [0x1f,0x00,0x00,0x00,0x1c,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x1e,0x00,0x00,0x00]}

tool: {"D1": [0x1f,0x00,0x00,0x00,0x1e,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x1f,0x00,0x00,0x00]}

tool: {"D15": [0x1e,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x1e,0x00,0x00,0x00,0x1f,0x00,0x00,0x00]}

assistant: ```c
int Day(int y, int m, int d) {
  int day_tab[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
  int k = Leap(y);
  if (y <= 0 || y > 9999)
    return -1;
  else if (m > 12 || m <= 0)
    return -2;
  else if (m == 2 && d > day_tab[m - 1] + k)
    return -3;
  else if ((d > day_tab[m - 1] && m != 2) || d <= 0)
    return -3;
  int i = 0, n = 1;
  for (i = 1; i < y; i++) {
    if (Leap(i))
      n = (n + 366) % 7;
    else
      n = (n + 365) % 7;
  }
  for (i = 1; i < m; i++) {
    switch (i) {
    case 2:
      if (k) {
        n = (n + 29) % 7;
      } else {
        n = (n + 28) % 7;
      }
      break;
    case 4:
    case 6:
    case 9:
    case 11:
      n = (n + 30) % 7;
      break;
    default:
      n = (n + 31) % 7;
    }
  }
  n = (n + d - 1) % 7;
  return n;
}
```