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

```asm
<uv2dv>:
  endbr64
  push   %r15
  mov    %rsi,%rax
  mov    %rdx,%rsi
  mov    %rcx,%rdx
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    0x48(%rsp),%r12d
  mov    0x40(%rsp),%r15d
  lea    0x1(%r12),%ecx
  mov    %r9,-0x8(%rsp)
  mov    0x38(%rsp),%r9d
  mov    %r8,-0x10(%rsp)
  lea    0x2(%r12),%r8d
  imul   %ecx,%r8d
  test   %r9d,%r9d
  jle    L30
  imul   %r15d,%ecx
  movslq %r15d,%r9
  mov    %rdx,-0x38(%rsp)
  movslq %r8d,%r8
  lea    0x0(,%r9,8),%r13
  lea    (%r15,%r15,1),%r9d
  mov    %rsi,-0x40(%rsp)
  movslq %r9d,%r9
  add    %r13,%rax
  movl   $0x0,-0x44(%rsp)
  lea    -0x1(%r15),%r14d
  mov    %ecx,%edx
  lea    0x0(,%r9,8),%rbx
  mov    %rax,-0x28(%rsp)
  add    %edx,%edx
  mov    %rbx,-0x50(%rsp)
  lea    0x0(,%r8,8),%rbx
  movslq %edx,%rdx
  mov    %rbx,-0x20(%rsp)
  lea    0x0(,%rdx,8),%rbx
  mov    %rbx,-0x18(%rsp)
  lea    (%rdi,%r13,1),%rbx
  mov    %rbx,-0x30(%rsp)
L78:
  mov    -0x40(%rsp),%rax
  mov    %rax,-0x60(%rsp)
  mov    -0x38(%rsp),%rax
  mov    %rax,-0x68(%rsp)
  test   %r12d,%r12d
  js     L28
  mov    -0x8(%rsp),%rax
  mov    %r12d,-0x74(%rsp)
  pxor   %xmm9,%xmm9
  mov    -0x28(%rsp),%r8
  mov    -0x30(%rsp),%rdi
  mov    %rax,-0x58(%rsp)
  mov    -0x10(%rsp),%rax
  mov    %rax,-0x70(%rsp)
  nopw   0x0(%rax,%rax,1)
L73:
  mov    %r12d,%eax
  sub    -0x74(%rsp),%eax
  mov    %rdi,%r10
  mov    %r8,%r9
  mov    %eax,-0x48(%rsp)
  mov    -0x58(%rsp),%rsi
  sub    %r13,%r10
  sub    %r13,%r9
  mov    -0x70(%rsp),%rcx
  mov    -0x68(%rsp),%rbx
  mov    %eax,%ebp
  mov    -0x60(%rsp),%r11
  nopl   (%rax)
L14:
  test   %r15d,%r15d
  jle    L53
  xor    %eax,%eax
  movapd %xmm9,%xmm5
  movapd %xmm9,%xmm6
  movapd %xmm9,%xmm7
  movapd %xmm9,%xmm8
  nop
L56:
  movsd  (%r9,%rax,8),%xmm2
  movsd  (%rdi,%rax,8),%xmm11
  mov    %rax,%rdx
  movsd  (%rcx,%rax,8),%xmm0
  movsd  (%rsi,%rax,8),%xmm3
  movapd %xmm2,%xmm1
  movapd %xmm11,%xmm4
  mulsd  %xmm0,%xmm1
  movapd %xmm0,%xmm10
  movapd %xmm3,%xmm12
  mulsd  %xmm3,%xmm4
  mulsd  %xmm3,%xmm2
  subsd  %xmm4,%xmm1
  movsd  (%r8,%rax,8),%xmm4
  mulsd  %xmm4,%xmm10
  addsd  %xmm1,%xmm8
  movsd  (%r10,%rax,8),%xmm1
  mulsd  %xmm3,%xmm4
  add    $0x1,%rax
  mulsd  %xmm1,%xmm12
  mulsd  %xmm0,%xmm1
  mulsd  %xmm11,%xmm0
  addsd  %xmm12,%xmm10
  addsd  %xmm4,%xmm1
  subsd  %xmm2,%xmm0
  addsd  %xmm10,%xmm7
  subsd  %xmm1,%xmm6
  subsd  %xmm0,%xmm5
  cmp    %rdx,%r14
  jne    L56
L34:
  movsd  %xmm8,(%r11)
  add    $0x10,%rbx
  add    $0x1,%ebp
  add    $0x10,%r11
  movsd  %xmm7,-0x8(%r11)
  add    %r13,%rcx
  add    %r13,%rsi
  movsd  %xmm6,-0x10(%rbx)
  movsd  %xmm5,-0x8(%rbx)
  cmp    %ebp,%r12d
  jge    L14
  mov    -0x74(%rsp),%ebx
  mov    -0x48(%rsp),%esi
  mov    $0x10,%ecx
  lea    0x1(%rbx),%eax
  mov    %rax,%rdx
  shl    $0x4,%rdx
  cmp    %esi,%r12d
  cmovl  %rcx,%rdx
  add    %rdx,-0x60(%rsp)
  add    %rdx,-0x68(%rsp)
  cmp    %esi,%r12d
  mov    $0x1,%esi
  cmovl  %rsi,%rax
  sub    $0x1,%ebx
  mov    %ebx,-0x74(%rsp)
  imul   %r13,%rax
  add    %rax,-0x70(%rsp)
  add    %rax,-0x58(%rsp)
  mov    -0x50(%rsp),%rax
  add    %rax,%rdi
  add    %rax,%r8
  cmp    $0xffffffff,%ebx
  jne    L73
L28:
  mov    -0x20(%rsp),%rdi
  addl   $0x1,-0x44(%rsp)
  add    %rdi,-0x40(%rsp)
  mov    -0x44(%rsp),%eax
  add    %rdi,-0x38(%rsp)
  mov    -0x18(%rsp),%rdi
  add    %rdi,-0x30(%rsp)
  add    %rdi,-0x28(%rsp)
  cmp    %eax,0x38(%rsp)
  jne    L78
L30:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L53:
  movapd %xmm9,%xmm5
  movapd %xmm9,%xmm6
  movapd %xmm9,%xmm7
  movapd %xmm9,%xmm8
  jmp    L34
```

assistant: ```c
void uv2dv(double *fu, double *fv, double *sd, double *sv, double *pol2, double *pol3, int klev, int nlat, int nt) {
  int lev, jmm, jfc, lat, nfc, nsp2;
  double dir, dii, vor, voi;
  double *ufr, *ufi, *vfr, *vfi;
  double *ful, *fvl, *sdl, *svl;
  double *po2, *po3;
  nsp2 = (nt + 1) * (nt + 2);
  nfc = (nt + 1) * 2;
  for (lev = 0; lev < klev; lev++) {
    po2 = pol2;
    po3 = pol3;
    ful = fu + lev * nfc * nlat;
    fvl = fv + lev * nfc * nlat;
    sdl = sd + lev * nsp2;
    svl = sv + lev * nsp2;
    for (jmm = 0; jmm <= nt; jmm++) {
      for (jfc = jmm; jfc <= nt; jfc++) {
        ufr = ful;
        ufi = ful + nlat;
        vfr = fvl;
        vfi = fvl + nlat;
        dir = 0.0;
        dii = 0.0;
        vor = 0.0;
        voi = 0.0;
        for (lat = 0; lat < nlat; lat++) {
          dir += vfr[lat] * po2[lat] - ufi[lat] * po3[lat];
          dii += vfi[lat] * po2[lat] + ufr[lat] * po3[lat];
          vor -= ufr[lat] * po2[lat] + vfi[lat] * po3[lat];
          voi -= ufi[lat] * po2[lat] - vfr[lat] * po3[lat];
        }
        *sdl++ = dir;
        *sdl++ = dii;
        *svl++ = vor;
        *svl++ = voi;
        po2 += nlat;
        po3 += nlat;
      }
      ful += 2 * nlat;
      fvl += 2 * nlat;
    }
  }
}
```