user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<dayno>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    %edx,-0x1c(%rbp)
  mov    %ecx,-0x20(%rbp)
  mov    -0x18(%rbp),%eax
  lea    0x9(%rax),%ecx
  movslq %ecx,%rax
  imul   $0x2aaaaaab,%rax,%rax
  shr    $0x20,%rax
  sar    %eax
  mov    %ecx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  shl    $0x2,%eax
  sub    %eax,%ecx
  mov    %ecx,%edx
  lea    0x1(%rdx),%eax
  imul   $0x1a,%eax,%eax
  sub    $0x2,%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  lea    0x1(%rax),%esi
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x7,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x190,%edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  lea    0x190(%rdx),%eax
  add    %eax,%esi
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x7,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x190,%edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  lea    0x190(%rdx),%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  add    %eax,%esi
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x7,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x190,%edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  lea    0x190(%rdx),%eax
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x5,%edx
  sar    $0x1f,%eax
  sub    %edx,%eax
  add    %eax,%esi
  cmpl   $0x2,-0x18(%rbp)
  jg     L81
  mov    -0x14(%rbp),%eax
  and    $0x3,%eax
  test   %eax,%eax
  jne    L134
  mov    -0x14(%rbp),%edx
  movslq %edx,%rax
  imul   $0x51eb851f,%rax,%rax
  shr    $0x20,%rax
  sar    $0x5,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  imul   $0x64,%eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  test   %eax,%eax
  jne    L20
L134:
  mov    -0x14(%rbp),%edx
  movslq %edx,%rax
  imul   $0x51eb851f,%rax,%rax
  shr    $0x20,%rax
  sar    $0x7,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  imul   $0x190,%eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  test   %eax,%eax
  jne    L27
L20:
  mov    $0x5,%eax
  jmp    L54
L27:
  mov    $0x6,%eax
  jmp    L54
L81:
  mov    $0x0,%eax
L54:
  add    %esi,%eax
  movslq %eax,%rdx
  imul   $0xffffffff92492493,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x2,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  mov    %edx,-0x8(%rbp)
  mov    -0x8(%rbp),%ecx
  mov    %ecx,%edx
  shl    $0x3,%edx
  sub    %ecx,%edx
  sub    %edx,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x1c(%rbp),%edx
  mov    %edx,%eax
  shl    $0x3,%eax
  sub    %edx,%eax
  mov    %eax,%ecx
  mov    -0x20(%rbp),%eax
  add    %ecx,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x18(%rbp),%eax
  sub    $0x1,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  lea    D7(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  mov    %eax,-0xc(%rbp)
  cmpl   $0x2,-0x18(%rbp)
  jne    L1
  mov    -0x14(%rbp),%eax
  and    $0x3,%eax
  test   %eax,%eax
  jne    L105
  mov    -0x14(%rbp),%edx
  movslq %edx,%rax
  imul   $0x51eb851f,%rax,%rax
  shr    $0x20,%rax
  sar    $0x5,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  imul   $0x64,%eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  test   %eax,%eax
  jne    L115
L105:
  mov    -0x14(%rbp),%edx
  movslq %edx,%rax
  imul   $0x51eb851f,%rax,%rax
  shr    $0x20,%rax
  sar    $0x7,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  imul   $0x190,%eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  test   %eax,%eax
  jne    L1
L115:
  addl   $0x1,-0xc(%rbp)
L1:
  mov    -0x4(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jge    L113
  mov    $0x0,%eax
  jmp    L14
L113:
  mov    -0x4(%rbp),%eax
  sub    -0x8(%rbp),%eax
  cmp    %eax,-0xc(%rbp)
  jg     L58
  mov    $0x0,%eax
  jmp    L14
L58:
  mov    -0x4(%rbp),%eax
  sub    -0x8(%rbp),%eax
  add    $0x1,%eax
L14:
  pop    %rbp
  ret
```

assistant: ```c
int dayno(int yyyy, int mm, int x, int y) {
  static int daytab[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
  int a, b, c;
  a = ((((((mm) + 9) % 12 + 1) * 26 - 2) / 10 + (1) + ((yyyy) % 400 + 400) + ((yyyy) % 400 + 400) / 4 - ((yyyy) % 400 + 400) / 100 + (((mm) <= 2) ? ((((((yyyy) % 4) == 0) && (((yyyy) % 100) != 0)) || (((yyyy) % 400) == 0)) ? 5 : 6) : 0)) % 7);
  b = x * 7 + y;
  c = daytab[mm - 1];
  if ((mm == 2) && ((((yyyy % 4) == 0) && ((yyyy % 100) != 0)) || ((yyyy % 400) == 0)))
    c++;
  if (b < a)
    return (0);
  if ((b - a) >= c)
    return (0);
  return ((b - a + 1));
}
```