user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<move_hslice>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x720,%rsp
  mov    %edi,-0x704(%rbp)
  mov    %esi,-0x708(%rbp)
  mov    %edx,-0x70c(%rbp)
  mov    %ecx,-0x710(%rbp)
  mov    %r8d,-0x714(%rbp)
  mov    %r9,-0x720(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x6c8(%rbp),%rdx
  mov    -0x704(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <vis5d_get_ctx_display_index@plt>
  mov    -0x6c8(%rbp),%eax
  lea    -0x6e8(%rbp),%r9
  lea    -0x6ec(%rbp),%r8
  lea    -0x6f0(%rbp),%rcx
  lea    -0x6f4(%rbp),%rdx
  lea    -0x6f8(%rbp),%rsi
  sub    $0x8,%rsp
  lea    -0x6e4(%rbp),%rdi
  push   %rdi
  mov    %eax,%edi
  call   <vis5d_get_sizePRIME@plt>
  add    $0x10,%rsp
  lea    -0x6d8(%rbp),%r9
  lea    -0x330(%rbp),%r8
  lea    -0x650(%rbp),%rcx
  lea    -0x6dc(%rbp),%rdx
  lea    -0x6e0(%rbp),%rsi
  mov    -0x704(%rbp),%eax
  sub    $0x8,%rsp
  lea    -0x6cc(%rbp),%rdi
  push   %rdi
  lea    -0x6d0(%rbp),%rdi
  push   %rdi
  lea    -0x6d4(%rbp),%rdi
  push   %rdi
  mov    %eax,%edi
  call   <vis5d_get_size@plt>
  add    $0x20,%rsp
  mov    -0x714(%rbp),%eax
  cltq
  mov    -0x650(%rbp,%rax,4),%eax
  cmp    $0x1,%eax
  jne    L70
  mov    -0x6f0(%rbp),%eax
  sub    $0x1,%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  %xmm0,-0x6b4(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x6b0(%rbp)
  jmp    L24
L70:
  mov    -0x6f0(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x6ec(%rbp),%eax
  add    %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  %xmm0,-0x6b4(%rbp)
  mov    -0x6ec(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  %xmm0,-0x6b0(%rbp)
L24:
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x708(%rbp),%xmm0
  movss  %xmm0,-0x6ac(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x70c(%rbp),%xmm0
  movss  %xmm0,-0x6a8(%rbp)
  mov    -0x6c8(%rbp),%eax
  lea    -0x668(%rbp),%rdx
  lea    -0x674(%rbp),%rsi
  movss  -0x6a8(%rbp),%xmm0
  mov    -0x6ac(%rbp),%ecx
  movaps %xmm0,%xmm1
  movd   %ecx,%xmm0
  mov    %eax,%edi
  call   <vis5d_unproject@plt>
  cmpl   $0x3,0x10(%rbp)
  je     L124
  cmpl   $0x3,0x10(%rbp)
  jg     L76
  cmpl   $0x2,0x10(%rbp)
  je     L115
  cmpl   $0x2,0x10(%rbp)
  jg     L76
  cmpl   $0x0,0x10(%rbp)
  je     L20
  cmpl   $0x1,0x10(%rbp)
  je     L43
  jmp    L76
L20:
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x6bc(%rbp)
  mov    -0x6f4(%rbp),%eax
  sub    $0x1,%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  %xmm0,-0x6b8(%rbp)
  jmp    L76
L43:
  mov    -0x6f8(%rbp),%eax
  sub    $0x1,%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  %xmm0,-0x6bc(%rbp)
  mov    -0x6f4(%rbp),%eax
  sub    $0x1,%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  %xmm0,-0x6b8(%rbp)
  jmp    L76
L115:
  mov    -0x6f8(%rbp),%eax
  sub    $0x1,%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  %xmm0,-0x6bc(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x6b8(%rbp)
  jmp    L76
L124:
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x6bc(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x6b8(%rbp)
  nop
L76:
  movss  -0x6b4(%rbp),%xmm0
  movss  %xmm0,-0x6a4(%rbp)
  movss  -0x6b0(%rbp),%xmm0
  movss  %xmm0,-0x6a0(%rbp)
  mov    -0x6c8(%rbp),%eax
  lea    -0x68c(%rbp),%rdx
  lea    0x8(%rdx),%r9
  lea    -0x68c(%rbp),%rdx
  lea    0x4(%rdx),%r8
  lea    -0x68c(%rbp),%rcx
  movss  -0x6a0(%rbp),%xmm1
  movss  -0x6b8(%rbp),%xmm0
  mov    -0x6bc(%rbp),%edi
  mov    -0x714(%rbp),%edx
  mov    -0x710(%rbp),%esi
  movaps %xmm1,%xmm2
  movaps %xmm0,%xmm1
  movd   %edi,%xmm0
  mov    %eax,%edi
  call   <vis5d_gridPRIME_to_xyzPRIME@plt>
  mov    -0x6c8(%rbp),%eax
  lea    -0x65c(%rbp),%rdx
  lea    0x8(%rdx),%r9
  lea    -0x65c(%rbp),%rdx
  lea    0x4(%rdx),%r8
  lea    -0x65c(%rbp),%rcx
  movss  -0x6a4(%rbp),%xmm1
  movss  -0x6b8(%rbp),%xmm0
  mov    -0x6bc(%rbp),%edi
  mov    -0x714(%rbp),%edx
  mov    -0x710(%rbp),%esi
  movaps %xmm1,%xmm2
  movaps %xmm0,%xmm1
  movd   %edi,%xmm0
  mov    %eax,%edi
  call   <vis5d_gridPRIME_to_xyzPRIME@plt>
  movss  -0x65c(%rbp),%xmm0
  movss  -0x68c(%rbp),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x680(%rbp)
  movss  -0x658(%rbp),%xmm0
  movss  -0x688(%rbp),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x67c(%rbp)
  movss  -0x654(%rbp),%xmm0
  movss  -0x684(%rbp),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x678(%rbp)
  lea    -0x668(%rbp),%rcx
  lea    -0x674(%rbp),%rdx
  lea    -0x680(%rbp),%rsi
  lea    -0x68c(%rbp),%rax
  mov    %rax,%rdi
  call   <point_nearest_line@plt>
  movd   %xmm0,%eax
  mov    %eax,-0x69c(%rbp)
  pxor   %xmm0,%xmm0
  ucomiss -0x69c(%rbp),%xmm0
  jp     L32
  pxor   %xmm0,%xmm0
  ucomiss -0x69c(%rbp),%xmm0
  jne    L32
  mov    $0x0,%eax
  jmp    L16
L32:
  movss  -0x68c(%rbp),%xmm1
  movss  -0x680(%rbp),%xmm0
  mulss  -0x69c(%rbp),%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x698(%rbp)
  movss  -0x688(%rbp),%xmm1
  movss  -0x67c(%rbp),%xmm0
  mulss  -0x69c(%rbp),%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x694(%rbp)
  movss  -0x684(%rbp),%xmm1
  movss  -0x678(%rbp),%xmm0
  mulss  -0x69c(%rbp),%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x690(%rbp)
  mov    -0x6c8(%rbp),%eax
  mov    -0x720(%rbp),%r9
  lea    -0x6c0(%rbp),%r8
  lea    -0x6c4(%rbp),%rcx
  movss  -0x690(%rbp),%xmm1
  movss  -0x694(%rbp),%xmm0
  mov    -0x698(%rbp),%edi
  mov    -0x714(%rbp),%edx
  mov    -0x710(%rbp),%esi
  movaps %xmm1,%xmm2
  movaps %xmm0,%xmm1
  movd   %edi,%xmm0
  mov    %eax,%edi
  call   <vis5d_xyzPRIME_to_gridPRIME@plt>
  mov    $0x1,%eax
L16:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L125
  call   <__stack_chk_fail@plt>
L125:
  leave
  ret
```

assistant: ```c
int move_hslice(int index, int curx, int cury, int time, int var, float *level, int corner) {
  float cx, cy;
  float a[3], da[3];
  float b[3], db[3];
  float t;
  float topl, botl, aa[3];
  float r, c;
  float maxlevel, minlevel;
  int Nr, Nc, Nl, LowLev, MaxNlVar, WindNl, WindLow;
  int vNr, vNc, vNl[200], vLowLev[200], vMaxNl, vMaxNlVar, vWindNl, vWindLow;
  int dindex;
  vis5d_get_ctx_display_index(index, &dindex);
  vis5d_get_sizePRIME(dindex, &Nr, &Nc, &Nl, &LowLev, &WindNl, &WindLow);
  vis5d_get_size(index, &vNr, &vNc, vNl, vLowLev, &vMaxNl, &vMaxNlVar, &vWindNl, &vWindLow);
  if (vNl[var] == 1) {
    maxlevel = (float)(Nl - 1);
    minlevel = 0.0;
  } else {
    maxlevel = (float)(Nl - 1 + LowLev);
    minlevel = (float)LowLev;
  }
  cx = (float)curx;
  cy = (float)cury;
  vis5d_unproject(dindex, cx, cy, b, db);
  switch (corner) {
  case 0:
    r = 0.0;
    c = (float)(Nc - 1);
    break;
  case 1:
    r = (float)(Nr - 1);
    c = (float)(Nc - 1);
    break;
  case 2:
    r = (float)(Nr - 1);
    c = 0.0;
    break;
  case 3:
    r = 0.0;
    c = 0.0;
    break;
  }
  topl = maxlevel;
  botl = minlevel;
  vis5d_gridPRIME_to_xyzPRIME(dindex, time, var, r, c, botl, &a[0], &a[1], &a[2]);
  vis5d_gridPRIME_to_xyzPRIME(dindex, time, var, r, c, topl, &aa[0], &aa[1], &aa[2]);
  da[0] = aa[0] - a[0];
  da[1] = aa[1] - a[1];
  da[2] = aa[2] - a[2];
  t = point_nearest_line(a, da, b, db);
  if (t == 0.0) {
    return 0;
  } else {
    float x, y, z, row, col;
    x = a[0] + t * da[0];
    y = a[1] + t * da[1];
    z = a[2] + t * da[2];
    vis5d_xyzPRIME_to_gridPRIME(dindex, time, var, x, y, z, &row, &col, level);
    return 1;
  }
}
```