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

```asm
<e2h>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  movsd  %xmm0,-0x28(%rbp)
  mov    %rdi,-0x30(%rbp)
  mov    %rsi,-0x38(%rbp)
  mov    %rdx,-0x40(%rbp)
  mov    %rcx,-0x48(%rbp)
  mov    %r8,-0x50(%rbp)
  movsd  -0x28(%rbp),%xmm0
  movsd  D3(%rip),%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  imul   $0xffffffffb38cf9b1,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x8,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  imul   $0x16d,%eax,%ecx
  mov    -0x1c(%rbp),%eax
  add    $0x1,%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  add    %ecx,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x18(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jge    L3
  subl   $0x1,-0x1c(%rbp)
L3:
  mov    -0x1c(%rbp),%eax
  imul   $0x16d,%eax,%ecx
  mov    -0x1c(%rbp),%eax
  add    $0x1,%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  add    %ecx,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x1c(%rbp),%eax
  lea    0x7b2(%rax),%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x18(%rbp),%eax
  sub    -0x14(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x38(%rbp),%rax
  mov    %edx,(%rax)
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x18(%rbp),%xmm1
  movsd  D3(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x28(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x8(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x10(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x10(%rbp),%xmm1
  movsd  -0x8(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  mov    -0x10(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  imul   $0xffffffff88888889,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x5,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%edx
  mov    %edx,%eax
  shl    $0x4,%edx
  sub    %edx,%eax
  shl    $0x2,%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  addsd  -0x8(%rbp),%xmm0
  mov    -0x50(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x10(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  imul   $0xffffffff88888889,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x5,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%edx
  mov    %edx,%eax
  shl    $0x4,%edx
  sub    %edx,%eax
  shl    $0x2,%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  add    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x40(%rbp),%rax
  mov    -0x10(%rbp),%edx
  mov    %edx,(%rax)
  nop
  pop    %rbp
  ret
```

tool_calls: name: read_data
arguments: data_tag: D3
type_guessed: f64

tool: D3: 86400

assistant: ```c
void e2h(double t, int *year, int *doy, int *hour, int *miin, double *sec) {
  double fsec;
  int idate, itime, irest, iysupp, idsupp;
  idate = t / 86400.0;
  iysupp = idate / 365;
  idsupp = iysupp * 365 + (iysupp + 1) / 4;
  if (idate < idsupp)
    iysupp = iysupp - 1;
  idsupp = iysupp * 365 + (iysupp + 1) / 4;
  *year = 1970 + iysupp;
  *doy = idate - idsupp + 1;
  fsec = t - idate * 86400.0;
  irest = fsec;
  fsec = fsec - irest;
  itime = irest;
  irest = itime / 60;
  *sec = itime - irest * 60 + fsec;
  itime = irest;
  irest = itime / 60;
  *miin = itime - irest * 60;
  *hour = irest;
}
```