user: What would the C source look like for the assembly code provided here?

```asm
<move_hslice>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x6e8,%rsp
  mov    %edi,%r14d
  mov    %esi,0x8(%rsp)
  mov    %edx,0xc(%rsp)
  mov    %ecx,%r12d
  mov    %r8d,%ebx
  mov    %r9,%r15
  mov    0x720(%rsp),%ebp
  mov    %fs:0x28,%rax
  mov    %rax,0x6d8(%rsp)
  xor    %eax,%eax
  lea    0x48(%rsp),%rsi
  call   <vis5d_get_ctx_display_index@plt>
  lea    0x20(%rsp),%rcx
  lea    0x1c(%rsp),%rdx
  lea    0x18(%rsp),%rsi
  sub    $0x8,%rsp
  lea    0x34(%rsp),%rax
  push   %rax
  lea    0x38(%rsp),%r9
  lea    0x34(%rsp),%r8
  mov    0x58(%rsp),%edi
  call   <vis5d_get_sizePRIME@plt>
  lea    0xa0(%rsp),%rcx
  lea    0x44(%rsp),%rdx
  lea    0x40(%rsp),%rsi
  add    $0x8,%rsp
  lea    0x4c(%rsp),%rax
  push   %rax
  lea    0x50(%rsp),%rax
  push   %rax
  lea    0x54(%rsp),%rax
  push   %rax
  lea    0x58(%rsp),%r9
  lea    0x3d0(%rsp),%r8
  mov    %r14d,%edi
  call   <vis5d_get_size@plt>
  movslq %ebx,%rax
  add    $0x20,%rsp
  cmpl   $0x1,0x90(%rsp,%rax,4)
  je     L118
  mov    0x24(%rsp),%eax
  mov    0x20(%rsp),%edx
  lea    -0x1(%rax,%rdx,1),%edx
  pxor   %xmm3,%xmm3
  cvtsi2ss %edx,%xmm3
  movss  %xmm3,0x4(%rsp)
  pxor   %xmm4,%xmm4
  cvtsi2ss %eax,%xmm4
  movd   %xmm4,%r14d
L67:
  lea    0x78(%rsp),%rdx
  lea    0x6c(%rsp),%rsi
  pxor   %xmm0,%xmm0
  cvtsi2ssl 0x8(%rsp),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2ssl 0xc(%rsp),%xmm1
  mov    0x48(%rsp),%edi
  call   <vis5d_unproject@plt>
  cmp    $0x2,%ebp
  je     L20
  jg     L77
  test   %ebp,%ebp
  je     L35
  cmp    $0x1,%ebp
  jne    L9
  mov    0x18(%rsp),%eax
  sub    $0x1,%eax
  pxor   %xmm6,%xmm6
  cvtsi2ss %eax,%xmm6
  movss  %xmm6,(%rsp)
  mov    0x1c(%rsp),%eax
  sub    $0x1,%eax
  pxor   %xmm7,%xmm7
  cvtsi2ss %eax,%xmm7
  movd   %xmm7,%r13d
  jmp    L9
L118:
  mov    0x20(%rsp),%eax
  sub    $0x1,%eax
  pxor   %xmm5,%xmm5
  cvtsi2ss %eax,%xmm5
  movss  %xmm5,0x4(%rsp)
  mov    D20(%rip),%r14d
  jmp    L67
L77:
  cmp    $0x3,%ebp
  jne    L9
  mov    D20(%rip),%r13d
  mov    %r13d,(%rsp)
L9:
  lea    0x54(%rsp),%rbp
  lea    0x5c(%rsp),%r9
  lea    0x58(%rsp),%r8
  mov    %rbp,%rcx
  movd   %r14d,%xmm2
  movd   %r13d,%xmm1
  movss  (%rsp),%xmm0
  mov    %ebx,%edx
  mov    %r12d,%esi
  mov    0x48(%rsp),%edi
  call   <vis5d_gridPRIME_to_xyzPRIME@plt>
  lea    0x84(%rsp),%rcx
  lea    0x8c(%rsp),%r9
  lea    0x88(%rsp),%r8
  movss  0x4(%rsp),%xmm2
  movd   %r13d,%xmm1
  movss  (%rsp),%xmm0
  mov    %ebx,%edx
  mov    %r12d,%esi
  mov    0x48(%rsp),%edi
  call   <vis5d_gridPRIME_to_xyzPRIME@plt>
  movss  0x84(%rsp),%xmm0
  subss  0x54(%rsp),%xmm0
  movss  %xmm0,0x60(%rsp)
  movss  0x88(%rsp),%xmm0
  subss  0x58(%rsp),%xmm0
  movss  %xmm0,0x64(%rsp)
  movss  0x8c(%rsp),%xmm0
  subss  0x5c(%rsp),%xmm0
  movss  %xmm0,0x68(%rsp)
  lea    0x78(%rsp),%rcx
  lea    0x6c(%rsp),%rdx
  lea    0x60(%rsp),%rsi
  mov    %rbp,%rdi
  call   <point_nearest_line@plt>
  ucomiss D20(%rip),%xmm0
  jp     L135
  mov    $0x0,%eax
  jne    L135
L5:
  mov    0x6d8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L87
  add    $0x6e8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L35:
  mov    0x1c(%rsp),%eax
  sub    $0x1,%eax
  pxor   %xmm6,%xmm6
  cvtsi2ss %eax,%xmm6
  movd   %xmm6,%r13d
  pxor   %xmm7,%xmm7
  movss  %xmm7,(%rsp)
  jmp    L9
L20:
  mov    0x18(%rsp),%eax
  sub    $0x1,%eax
  pxor   %xmm5,%xmm5
  cvtsi2ss %eax,%xmm5
  movss  %xmm5,(%rsp)
  mov    D20(%rip),%r13d
  jmp    L9
L135:
  lea    0x4c(%rsp),%rcx
  movaps %xmm0,%xmm2
  mulss  0x68(%rsp),%xmm2
  movaps %xmm0,%xmm1
  mulss  0x64(%rsp),%xmm1
  mulss  0x60(%rsp),%xmm0
  addss  0x54(%rsp),%xmm0
  mov    %r15,%r9
  lea    0x50(%rsp),%r8
  addss  0x5c(%rsp),%xmm2
  addss  0x58(%rsp),%xmm1
  mov    %ebx,%edx
  mov    %r12d,%esi
  mov    0x48(%rsp),%edi
  call   <vis5d_xyzPRIME_to_gridPRIME@plt>
  mov    $0x1,%eax
  jmp    L5
L87:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D20
type_infered: f32

tool: D20: 0

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