user: 请从给定的汇编指令推导出C源代码:

```asm
<BatchInterpolatedValue3DMirrWarp>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0xb8,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %rdx,-0x68(%rbp)
  mov    %rcx,-0x70(%rbp)
  mov    %r8,-0x78(%rbp)
  movsd  %xmm0,-0x80(%rbp)
  movsd  %xmm1,-0x88(%rbp)
  movsd  %xmm2,-0x90(%rbp)
  mov    %r9,-0x98(%rbp)
  movsd  %xmm3,-0xa0(%rbp)
  movsd  %xmm4,-0xa8(%rbp)
  movsd  %xmm5,-0xb0(%rbp)
  movsd  %xmm6,-0xb8(%rbp)
  movsd  %xmm7,-0xc0(%rbp)
  movq   $0x0,-0x48(%rbp)
  movq   $0x0,-0x30(%rbp)
  jmp    L5
L7:
  movq   $0x0,-0x38(%rbp)
  jmp    L47
L0:
  movq   $0x0,-0x40(%rbp)
  jmp    L11
L21:
  pxor   %xmm1,%xmm1
  cvtsi2ssq -0x40(%rbp),%xmm1
  mov    -0x48(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  addss  %xmm1,%xmm0
  cvtss2sd %xmm0,%xmm0
  subsd  -0x88(%rbp),%xmm0
  divsd  -0x90(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2ssq -0x38(%rbp),%xmm1
  mov    -0x48(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  addss  %xmm1,%xmm0
  cvtss2sd %xmm0,%xmm0
  subsd  -0xa8(%rbp),%xmm0
  divsd  -0xb0(%rbp),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2ssq -0x30(%rbp),%xmm1
  mov    -0x48(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  addss  %xmm1,%xmm0
  cvtss2sd %xmm0,%xmm0
  subsd  -0xc0(%rbp),%xmm0
  divsd  0x18(%rbp),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  mov    -0x48(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x48(%rbp)
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  lea    (%rdx,%rax,1),%rbx
  mov    0x28(%rbp),%r8
  movsd  -0x18(%rbp),%xmm1
  movsd  -0x20(%rbp),%xmm0
  mov    -0x28(%rbp),%rdi
  mov    -0x78(%rbp),%rcx
  mov    -0x70(%rbp),%rdx
  mov    -0x68(%rbp),%rsi
  mov    -0x60(%rbp),%rax
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rdi,%xmm0
  mov    %rax,%rdi
  call   <InterpolatedValue3DMirr@plt>
  movd   %xmm0,%eax
  mov    %eax,(%rbx)
  addq   $0x1,-0x40(%rbp)
L11:
  pxor   %xmm1,%xmm1
  cvtsi2sdq -0x40(%rbp),%xmm1
  movsd  -0x80(%rbp),%xmm0
  comisd %xmm1,%xmm0
  ja     L21
  addq   $0x1,-0x38(%rbp)
L47:
  pxor   %xmm1,%xmm1
  cvtsi2sdq -0x38(%rbp),%xmm1
  movsd  -0xa0(%rbp),%xmm0
  comisd %xmm1,%xmm0
  ja     L0
  addq   $0x1,-0x30(%rbp)
L5:
  pxor   %xmm1,%xmm1
  cvtsi2sdq -0x30(%rbp),%xmm1
  movsd  -0xb8(%rbp),%xmm0
  comisd %xmm1,%xmm0
  ja     L7
  nop
  nop
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
extern void BatchInterpolatedValue3DMirrWarp(float *Bout, float *Bcoeff, long Width, long Height, long Slice, double nx, double offx, double mx, float *WarpX, double ny, double offy, double my, float *WarpY, double nz, double offz, double mz, float *WarpZ, long SplineDegree) {
  double x, y, z;
  long idx;
  long idcoordx, idcoordy, idcoordz;
  idx = 0;
  for (idcoordz = 0; idcoordz < nz; idcoordz++) {
    for (idcoordy = 0; idcoordy < ny; idcoordy++) {
      for (idcoordx = 0; idcoordx < nx; idcoordx++) {
        x = (idcoordx + WarpX[idx] - offx) / mx;
        y = (idcoordy + WarpY[idx] - offy) / my;
        z = (idcoordz + WarpZ[idx] - offz) / mz;
        Bout[idx++] = InterpolatedValue3DMirr(Bcoeff, Width, Height, Slice, x, y, z, SplineDegree);
      }
    }
  }
}
```