user: 请将以下的汇编代码转换成C语言代码:

```asm
<move_hslice>:
  endbr64
  push   %r15
  push   %r14
  mov    %edi,%r14d
  push   %r13
  mov    %esi,%r13d
  push   %r12
  mov    %r8d,%r12d
  push   %rbp
  mov    %ecx,%ebp
  push   %rbx
  sub    $0x708,%rsp
  mov    %edx,0xc(%rsp)
  lea    0x5c(%rsp),%rsi
  mov    0x740(%rsp),%ebx
  mov    %r9,0x18(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x6f8(%rsp)
  xor    %eax,%eax
  call   <vis5d_get_ctx_display_index@plt>
  lea    0x34(%rsp),%rcx
  lea    0x30(%rsp),%rdx
  lea    0x2c(%rsp),%rsi
  sub    $0x8,%rsp
  lea    0x48(%rsp),%rax
  push   %rax
  mov    0x6c(%rsp),%edi
  lea    0x4c(%rsp),%r9
  lea    0x48(%rsp),%r8
  call   <vis5d_get_sizePRIME@plt>
  lea    0xc0(%rsp),%rcx
  lea    0x58(%rsp),%rdx
  mov    %r14d,%edi
  lea    0x54(%rsp),%rsi
  pop    %rax
  lea    0x60(%rsp),%rax
  push   %rax
  lea    0x64(%rsp),%rax
  push   %rax
  lea    0x68(%rsp),%rax
  push   %rax
  lea    0x6c(%rsp),%r9
  lea    0x3f0(%rsp),%r8
  call   <vis5d_get_size@plt>
  add    $0x20,%rsp
  movslq %r12d,%rax
  mov    0xc(%rsp),%r10d
  cmpl   $0x1,0xb0(%rsp,%rax,4)
  je     L67
  mov    0x38(%rsp),%eax
  mov    0x34(%rsp),%edx
  pxor   %xmm5,%xmm5
  pxor   %xmm2,%xmm2
  pxor   %xmm6,%xmm6
  cvtsi2ss %eax,%xmm2
  lea    -0x1(%rax,%rdx,1),%edx
  movss  %xmm6,0xc(%rsp)
  cvtsi2ss %edx,%xmm5
  movss  %xmm5,0x10(%rsp)
L135:
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  mov    0x5c(%rsp),%edi
  lea    0xa4(%rsp),%r15
  cvtsi2ss %r13d,%xmm0
  lea    0x98(%rsp),%r14
  mov    %r15,%rdx
  movss  %xmm2,0x14(%rsp)
  cvtsi2ss %r10d,%xmm1
  mov    %r14,%rsi
  call   <vis5d_unproject@plt>
  cmp    $0x2,%ebx
  movss  0x14(%rsp),%xmm2
  je     L76
  jg     L93
  test   %ebx,%ebx
  je     L57
  cmp    $0x1,%ebx
  jne    L118
  mov    0x2c(%rsp),%eax
  pxor   %xmm6,%xmm6
  pxor   %xmm3,%xmm3
  sub    $0x1,%eax
  cvtsi2ss %eax,%xmm6
  mov    0x30(%rsp),%eax
  sub    $0x1,%eax
  cvtsi2ss %eax,%xmm3
  movss  %xmm6,0x4(%rsp)
  movss  %xmm3,0x8(%rsp)
  nopl   0x0(%rax)
L118:
  movss  0x8(%rsp),%xmm1
  mov    0x5c(%rsp),%edi
  mov    %r12d,%edx
  mov    %ebp,%esi
  movss  0x4(%rsp),%xmm0
  lea    0x68(%rsp),%r13
  lea    0x70(%rsp),%r9
  lea    0x6c(%rsp),%r8
  mov    %r13,%rcx
  call   <vis5d_gridPRIME_to_xyzPRIME@plt>
  movss  0x10(%rsp),%xmm2
  mov    %r12d,%edx
  mov    %ebp,%esi
  movss  0x8(%rsp),%xmm1
  movss  0x4(%rsp),%xmm0
  lea    0x88(%rsp),%rcx
  lea    0x90(%rsp),%r9
  mov    0x5c(%rsp),%edi
  lea    0x8c(%rsp),%r8
  call   <vis5d_gridPRIME_to_xyzPRIME@plt>
  lea    0x78(%rsp),%rsi
  mov    %r15,%rcx
  mov    %r14,%rdx
  movq   0x88(%rsp),%xmm0
  movq   0x68(%rsp),%xmm1
  mov    %r13,%rdi
  subps  %xmm1,%xmm0
  movlps %xmm0,0x78(%rsp)
  movss  0x90(%rsp),%xmm0
  subss  0x70(%rsp),%xmm0
  movss  %xmm0,0x80(%rsp)
  call   <point_nearest_line@plt>
  ucomiss 0xc(%rsp),%xmm0
  jp     L138
  mov    $0x0,%eax
  jne    L138
L44:
  mov    0x6f8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L40
  add    $0x708,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L93:
  cmp    $0x3,%ebx
  jne    L118
  movss  0xc(%rsp),%xmm4
  movss  %xmm4,0x8(%rsp)
  movss  %xmm4,0x4(%rsp)
  jmp    L118
  nopl   0x0(%rax,%rax,1)
L67:
  mov    0x34(%rsp),%eax
  pxor   %xmm5,%xmm5
  pxor   %xmm7,%xmm7
  movss  %xmm7,0xc(%rsp)
  movaps %xmm7,%xmm2
  sub    $0x1,%eax
  cvtsi2ss %eax,%xmm5
  movss  %xmm5,0x10(%rsp)
  jmp    L135
  nopw   0x0(%rax,%rax,1)
L138:
  movss  0x7c(%rsp),%xmm1
  mov    0x18(%rsp),%r9
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    0x5c(%rsp),%edi
  lea    0x60(%rsp),%rcx
  lea    0x64(%rsp),%r8
  movss  0x80(%rsp),%xmm2
  mulss  %xmm0,%xmm1
  mulss  %xmm0,%xmm2
  addss  0x6c(%rsp),%xmm1
  mulss  0x78(%rsp),%xmm0
  addss  0x70(%rsp),%xmm2
  addss  0x68(%rsp),%xmm0
  call   <vis5d_xyzPRIME_to_gridPRIME@plt>
  mov    $0x1,%eax
  jmp    L44
  cs nopw 0x0(%rax,%rax,1)
L57:
  mov    0x30(%rsp),%eax
  pxor   %xmm6,%xmm6
  movss  0xc(%rsp),%xmm7
  sub    $0x1,%eax
  movss  %xmm7,0x4(%rsp)
  cvtsi2ss %eax,%xmm6
  movss  %xmm6,0x8(%rsp)
  jmp    L118
  cs nopw 0x0(%rax,%rax,1)
L76:
  mov    0x2c(%rsp),%eax
  pxor   %xmm5,%xmm5
  movss  0xc(%rsp),%xmm7
  sub    $0x1,%eax
  movss  %xmm7,0x8(%rsp)
  cvtsi2ss %eax,%xmm5
  movss  %xmm5,0x4(%rsp)
  jmp    L118
L40:
  call   <__stack_chk_fail@plt>
```

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;
  }
}
```