user: Demonstrate the C code that generates the assembly output below:

```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    $0x6f8,%rsp
  mov    %edx,0xc(%rsp)
  lea    0x58(%rsp),%rsi
  mov    0x730(%rsp),%ebx
  mov    %r9,0x18(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x6e8(%rsp)
  xor    %eax,%eax
  call   <vis5d_get_ctx_display_index@plt>
  lea    0x30(%rsp),%rcx
  lea    0x2c(%rsp),%rdx
  lea    0x28(%rsp),%rsi
  sub    $0x8,%rsp
  lea    0x44(%rsp),%rax
  push   %rax
  mov    0x68(%rsp),%edi
  lea    0x48(%rsp),%r9
  lea    0x44(%rsp),%r8
  call   <vis5d_get_sizePRIME@plt>
  lea    0xb0(%rsp),%rcx
  lea    0x54(%rsp),%rdx
  mov    %r14d,%edi
  lea    0x50(%rsp),%rsi
  pop    %rax
  lea    0x5c(%rsp),%rax
  push   %rax
  lea    0x60(%rsp),%rax
  push   %rax
  lea    0x64(%rsp),%rax
  push   %rax
  lea    0x68(%rsp),%r9
  lea    0x3e0(%rsp),%r8
  call   <vis5d_get_size@plt>
  add    $0x20,%rsp
  movslq %r12d,%rax
  mov    0xc(%rsp),%r10d
  cmpl   $0x1,0xa0(%rsp,%rax,4)
  je     L137
  mov    0x34(%rsp),%eax
  mov    0x30(%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)
L40:
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  mov    0x58(%rsp),%edi
  lea    0x88(%rsp),%r15
  cvtsi2ss %r13d,%xmm0
  lea    0x7c(%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     L2
  jg     L128
  test   %ebx,%ebx
  je     L99
  cmp    $0x1,%ebx
  jne    L96
  mov    0x28(%rsp),%eax
  pxor   %xmm6,%xmm6
  pxor   %xmm3,%xmm3
  sub    $0x1,%eax
  cvtsi2ss %eax,%xmm6
  mov    0x2c(%rsp),%eax
  sub    $0x1,%eax
  cvtsi2ss %eax,%xmm3
  movss  %xmm6,0x4(%rsp)
  movss  %xmm3,0x8(%rsp)
  nopl   0x0(%rax)
L96:
  movss  0x8(%rsp),%xmm1
  mov    0x58(%rsp),%edi
  mov    %r12d,%edx
  mov    %ebp,%esi
  movss  0x4(%rsp),%xmm0
  lea    0x64(%rsp),%r13
  lea    0x6c(%rsp),%r9
  lea    0x68(%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    0x94(%rsp),%rcx
  lea    0x9c(%rsp),%r9
  mov    0x58(%rsp),%edi
  lea    0x98(%rsp),%r8
  call   <vis5d_gridPRIME_to_xyzPRIME@plt>
  lea    0x70(%rsp),%rsi
  mov    %r15,%rcx
  mov    %r14,%rdx
  movss  0x94(%rsp),%xmm0
  subss  0x64(%rsp),%xmm0
  mov    %r13,%rdi
  movss  %xmm0,0x70(%rsp)
  movss  0x98(%rsp),%xmm0
  subss  0x68(%rsp),%xmm0
  movss  %xmm0,0x74(%rsp)
  movss  0x9c(%rsp),%xmm0
  subss  0x6c(%rsp),%xmm0
  movss  %xmm0,0x78(%rsp)
  call   <point_nearest_line@plt>
  ucomiss 0xc(%rsp),%xmm0
  jp     L107
  mov    $0x0,%eax
  jne    L107
L114:
  mov    0x6e8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L108
  add    $0x6f8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L128:
  cmp    $0x3,%ebx
  jne    L96
  movss  0xc(%rsp),%xmm4
  movss  %xmm4,0x8(%rsp)
  movss  %xmm4,0x4(%rsp)
  jmp    L96
  nopl   0x0(%rax,%rax,1)
L137:
  mov    0x30(%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    L40
  nopw   0x0(%rax,%rax,1)
L107:
  movss  0x78(%rsp),%xmm2
  mov    0x18(%rsp),%r9
  mov    %r12d,%edx
  mov    %ebp,%esi
  movss  0x74(%rsp),%xmm1
  mov    0x58(%rsp),%edi
  lea    0x5c(%rsp),%rcx
  lea    0x60(%rsp),%r8
  mulss  %xmm0,%xmm2
  mulss  %xmm0,%xmm1
  addss  0x6c(%rsp),%xmm2
  mulss  0x70(%rsp),%xmm0
  addss  0x68(%rsp),%xmm1
  addss  0x64(%rsp),%xmm0
  call   <vis5d_xyzPRIME_to_gridPRIME@plt>
  mov    $0x1,%eax
  jmp    L114
  nopl   0x0(%rax,%rax,1)
L99:
  mov    0x2c(%rsp),%eax
  pxor   %xmm6,%xmm6
  movss  0xc(%rsp),%xmm7
  sub    $0x1,%eax
  movss  %xmm7,0x4(%rsp)
  cvtsi2ss %eax,%xmm6
  movss  %xmm6,0x8(%rsp)
  jmp    L96
  xchg   %ax,%ax
L2:
  mov    0x28(%rsp),%eax
  pxor   %xmm5,%xmm5
  movss  0xc(%rsp),%xmm7
  sub    $0x1,%eax
  movss  %xmm7,0x8(%rsp)
  cvtsi2ss %eax,%xmm5
  movss  %xmm5,0x4(%rsp)
  jmp    L96
L108:
  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;
  }
}
```