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

```asm
<C_advect_velocity>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %rcx,-0x60(%rbp)
  mov    %r8,-0x68(%rbp)
  mov    %r9d,-0x6c(%rbp)
  movsd  %xmm0,-0x78(%rbp)
  movsd  %xmm1,-0x80(%rbp)
  movsd  %xmm2,-0x88(%rbp)
  mov    -0x6c(%rbp),%eax
  imul   0x10(%rbp),%eax
  mov    %eax,-0x34(%rbp)
  movl   $0x0,-0x3c(%rbp)
  jmp    L31
L103:
  movl   $0x0,-0x38(%rbp)
  jmp    L122
L63:
  mov    -0x3c(%rbp),%eax
  imul   0x10(%rbp),%eax
  mov    %eax,%edx
  mov    -0x38(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x30(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x3c(%rbp),%xmm0
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mulsd  -0x88(%rbp),%xmm1
  divsd  -0x78(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x2c(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x38(%rbp),%xmm0
  mov    -0x34(%rbp),%edx
  mov    -0x30(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mulsd  -0x88(%rbp),%xmm1
  divsd  -0x80(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x28(%rbp)
  pxor   %xmm0,%xmm0
  comiss -0x2c(%rbp),%xmm0
  jbe    L61
  pxor   %xmm0,%xmm0
  jmp    L98
L61:
  pxor   %xmm0,%xmm0
  cvtss2sd -0x2c(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x6c(%rbp),%xmm1
  movsd  D34(%rip),%xmm2
  subsd  %xmm2,%xmm1
  comisd %xmm1,%xmm0
  jb     L0
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x6c(%rbp),%xmm0
  movsd  D34(%rip),%xmm1
  subsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  jmp    L98
L0:
  movss  -0x2c(%rbp),%xmm0
L98:
  movss  %xmm0,-0x2c(%rbp)
  pxor   %xmm0,%xmm0
  comiss -0x28(%rbp),%xmm0
  jbe    L24
  pxor   %xmm0,%xmm0
  jmp    L28
L24:
  pxor   %xmm0,%xmm0
  cvtss2sd -0x28(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0x10(%rbp),%xmm1
  movsd  D34(%rip),%xmm2
  subsd  %xmm2,%xmm1
  comisd %xmm1,%xmm0
  jb     L102
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0x10(%rbp),%xmm0
  movsd  D34(%rip),%xmm1
  subsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  jmp    L28
L102:
  movss  -0x28(%rbp),%xmm0
L28:
  movss  %xmm0,-0x28(%rbp)
  movss  -0x2c(%rbp),%xmm0
  cvttss2si %xmm0,%eax
  mov    %eax,-0x24(%rbp)
  movss  -0x28(%rbp),%xmm0
  cvttss2si %xmm0,%eax
  mov    %eax,-0x20(%rbp)
  pxor   %xmm0,%xmm0
  cvtss2sd -0x2c(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x24(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x1c(%rbp)
  pxor   %xmm0,%xmm0
  cvtss2sd -0x28(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x20(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x18(%rbp)
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x60(%rbp),%rax
  add    %rax,%rdx
  mov    -0x24(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x34(%rbp),%edx
  mov    -0x30(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x60(%rbp),%rax
  add    %rax,%rdx
  mov    -0x20(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  pxor   %xmm0,%xmm0
  cvtss2sd -0x1c(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x34(%rbp),%edx
  mov    -0x30(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  pxor   %xmm0,%xmm0
  cvtss2sd -0x18(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x30(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L128
  mov    -0x24(%rbp),%eax
  imul   0x10(%rbp),%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rax,%rdx
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x48(%rbp),%rax
  lea    (%rcx,%rax,1),%rbx
  movss  -0x18(%rbp),%xmm0
  mov    -0x1c(%rbp),%eax
  movaps %xmm0,%xmm1
  movd   %eax,%xmm0
  mov    0x10(%rbp),%esi
  mov    %rdx,%rdi
  call   <advect_sample@plt>
  movq   %xmm0,%rax
  mov    %rax,(%rbx)
  mov    -0x34(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x14(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rax,%rdx
  mov    -0x34(%rbp),%ecx
  mov    -0x30(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x48(%rbp),%rax
  lea    (%rcx,%rax,1),%rbx
  movss  -0x18(%rbp),%xmm0
  mov    -0x1c(%rbp),%eax
  movaps %xmm0,%xmm1
  movd   %eax,%xmm0
  mov    0x10(%rbp),%esi
  mov    %rdx,%rdi
  call   <advect_sample@plt>
  movq   %xmm0,%rax
  mov    %rax,(%rbx)
  jmp    L16
L128:
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rax,%rdx
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x48(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x34(%rbp),%edx
  mov    -0x30(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rax,%rdx
  mov    -0x34(%rbp),%ecx
  mov    -0x30(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x48(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
L16:
  addl   $0x1,-0x38(%rbp)
L122:
  mov    -0x38(%rbp),%eax
  cmp    0x10(%rbp),%eax
  jl     L63
  addl   $0x1,-0x3c(%rbp)
L31:
  mov    -0x3c(%rbp),%eax
  cmp    -0x6c(%rbp),%eax
  jl     L103
  nop
  nop
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D34
type_infered: f64

tool: D34: 1.01

assistant: ```c
void C_advect_velocity(double *v, const double *const v0, const unsigned char *bound, int *advect_indexes, double *advect_lerps, const int Nx, const int Ny, const double dx, const double dy, const double dt) {
  int x, y, idx, xi, yi, iidx;
  int vyidx = Nx * Ny;
  float xa, ya, s, t;
#pragma omp for schedule(auto)
  for (x = 0; x < Nx; ++x) {
    for (y = 0; y < Ny; ++y) {
      idx = y + x * Ny;
      xa = (double)x - dt * v0[0 + idx] / dx;
      ya = (double)y - dt * v0[vyidx + idx] / dy;
      xa = xa < 0.0 ? 0.0 : (xa >= Nx - 1.01) ? (Nx - 1.01) : xa;
      ya = ya < 0.0 ? 0.0 : (ya >= Ny - 1.01) ? (Ny - 1.01) : ya;
      xi = (int)xa;
      yi = (int)ya;
      s = xa - (double)xi;
      t = ya - (double)yi;
      advect_indexes[0 + idx] = xi;
      advect_indexes[vyidx + idx] = yi;
      advect_lerps[0 + idx] = s;
      advect_lerps[vyidx + idx] = t;
      if (!bound[idx]) {
        iidx = yi + xi * Ny;
        v[0 + idx] = advect_sample(v0 + iidx, Ny, s, t);
        v[vyidx + idx] = advect_sample(v0 + vyidx + iidx, Ny, s, t);
      } else {
        v[0 + idx] = v0[0 + idx];
        v[vyidx + idx] = v0[vyidx + idx];
      }
    }
  }
}
```