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

```asm
<get_all_radar_pts>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r12
  push   %rbx
  sub    $0x160,%rsp
  mov    %rdi,-0x118(%rbp)
  mov    %esi,-0x11c(%rbp)
  mov    %rdx,-0x128(%rbp)
  mov    %ecx,-0x120(%rbp)
  mov    %r8d,-0x12c(%rbp)
  mov    %r9,-0x138(%rbp)
  mov    0x18(%rbp),%rax
  mov    %rax,-0x140(%rbp)
  mov    0x38(%rbp),%rax
  mov    %rax,-0x148(%rbp)
  mov    0x58(%rbp),%rax
  mov    %rax,-0x150(%rbp)
  mov    0x68(%rbp),%rax
  mov    %rax,-0x158(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%r12
  mov    -0x120(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0xd0(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0x170(%rbp)
  movq   $0x0,-0x168(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0x180(%rbp)
  movq   $0x0,-0x178(%rbp)
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L57:
  cmp    %rdx,%rsp
  je     L94
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L57
L94:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L106
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L106:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0xc8(%rbp)
  movl   $0x0,-0x110(%rbp)
  movl   $0x0,-0xf4(%rbp)
  movl   $0x0,-0xf0(%rbp)
  movl   $0x0,-0xec(%rbp)
  movl   $0x0,-0xe8(%rbp)
  movl   $0x1,-0x10c(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xe4(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xe0(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xdc(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xd8(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xd4(%rbp)
  movl   $0x0,-0x108(%rbp)
  mov    0x40(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0xc0(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  movslq %eax,%rdx
  mov    %rdx,%r10
  mov    $0x0,%r11d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L211:
  cmp    %rdx,%rsp
  je     L183
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L211
L183:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L76
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L76:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0xb8(%rbp)
  movl   $0x0,-0x104(%rbp)
  movl   $0x0,-0x100(%rbp)
  movl   $0x0,-0x110(%rbp)
  jmp    L157
L54:
  mov    -0x110(%rbp),%eax
  imul   -0x12c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x128(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x150(%rbp),%rax
  movss  (%rax),%xmm1
  subss  %xmm1,%xmm0
  mov    -0x158(%rbp),%rax
  movss  (%rax),%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0xb0(%rbp)
  mov    -0x110(%rbp),%eax
  imul   -0x12c(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x128(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x150(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm1
  subss  %xmm1,%xmm0
  mov    -0x158(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0xac(%rbp)
  mov    -0xac(%rbp),%eax
  movd   %eax,%xmm0
  call   <floor@plt>
  mov    %eax,-0xf4(%rbp)
  mov    -0xb0(%rbp),%eax
  movd   %eax,%xmm0
  call   <floor@plt>
  mov    %eax,-0xf0(%rbp)
  mov    -0xf4(%rbp),%eax
  mov    %eax,-0xec(%rbp)
  mov    -0xf0(%rbp),%eax
  mov    %eax,-0xe8(%rbp)
  mov    -0xf4(%rbp),%eax
  mov    %eax,-0x50(%rbp)
  mov    -0xf0(%rbp),%eax
  mov    %eax,-0x4c(%rbp)
  mov    -0xf4(%rbp),%eax
  mov    %eax,-0x48(%rbp)
  mov    -0xf0(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x44(%rbp)
  mov    -0xf4(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x40(%rbp)
  mov    -0xf0(%rbp),%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0xf4(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x38(%rbp)
  mov    -0xf0(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x34(%rbp)
  movl   $0x1,-0x10c(%rbp)
  mov    -0xac(%rbp),%eax
  movsd  D43(%rip),%xmm0
  movapd %xmm0,%xmm1
  movd   %eax,%xmm0
  call   <fmod@plt>
  movd   %xmm0,%eax
  mov    %eax,-0xd8(%rbp)
  mov    -0xb0(%rbp),%eax
  movsd  D43(%rip),%xmm0
  movapd %xmm0,%xmm1
  movd   %eax,%xmm0
  call   <fmod@plt>
  movd   %xmm0,%eax
  mov    %eax,-0xd4(%rbp)
  movss  D20(%rip),%xmm0
  subss  -0xd8(%rbp),%xmm0
  movss  %xmm0,-0xe0(%rbp)
  movss  D20(%rip),%xmm0
  subss  -0xd4(%rbp),%xmm0
  movss  %xmm0,-0xdc(%rbp)
  movl   $0x0,-0x104(%rbp)
  jmp    L137
L232:
  mov    0x40(%rbp),%eax
  sub    $0x1,%eax
  imul   0x48(%rbp),%eax
  imul   0x50(%rbp),%eax
  mov    %eax,%edx
  mov    -0x104(%rbp),%eax
  cltq
  mov    -0x50(%rbp,%rax,8),%eax
  imul   0x50(%rbp),%eax
  add    %eax,%edx
  mov    -0x104(%rbp),%eax
  cltq
  mov    -0x4c(%rbp,%rax,8),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x148(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x104(%rbp),%eax
  cltq
  movss  %xmm0,-0xa0(%rbp,%rax,4)
  addl   $0x1,-0x104(%rbp)
L137:
  cmpl   $0x3,-0x104(%rbp)
  jle    L232
  movss  -0xe0(%rbp),%xmm0
  movaps %xmm0,%xmm1
  mulss  -0xdc(%rbp),%xmm1
  movss  -0xa0(%rbp),%xmm0
  mulss  %xmm0,%xmm1
  movss  -0x98(%rbp),%xmm0
  mulss  -0xd8(%rbp),%xmm0
  mulss  -0xdc(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x9c(%rbp),%xmm0
  mulss  -0xe0(%rbp),%xmm0
  mulss  -0xd4(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0xd8(%rbp),%xmm0
  movaps %xmm0,%xmm2
  mulss  -0xd4(%rbp),%xmm2
  movss  -0x94(%rbp),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,-0xe4(%rbp)
  mov    -0x110(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x138(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  comiss -0xe4(%rbp),%xmm0
  jbe    L180
  movl   $0x0,-0x108(%rbp)
  jmp    L264
L31:
  mov    -0x108(%rbp),%eax
  cltq
  mov    -0x50(%rbp,%rax,8),%eax
  mov    %eax,-0xa8(%rbp)
  mov    -0x108(%rbp),%eax
  cltq
  mov    -0x4c(%rbp,%rax,8),%eax
  mov    %eax,-0xa4(%rbp)
  movl   $0x0,-0x104(%rbp)
  jmp    L61
L71:
  mov    -0x104(%rbp),%eax
  imul   0x48(%rbp),%eax
  imul   0x50(%rbp),%eax
  mov    %eax,%edx
  mov    -0xa8(%rbp),%eax
  imul   0x50(%rbp),%eax
  add    %eax,%edx
  mov    -0xa4(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x148(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0xb8(%rbp),%rax
  mov    -0x104(%rbp),%edx
  movslq %edx,%rdx
  movss  %xmm0,(%rax,%rdx,4)
  addl   $0x1,-0x104(%rbp)
L61:
  mov    -0x104(%rbp),%eax
  cmp    0x40(%rbp),%eax
  jl     L71
  mov    -0x110(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x138(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    0x40(%rbp),%edx
  mov    -0xb8(%rbp),%rax
  movd   %ecx,%xmm0
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <binary_search@plt>
  mov    %eax,-0x100(%rbp)
  cmpl   $0xffffffff,-0x100(%rbp)
  jne    L113
  movl   $0x2,-0x10c(%rbp)
  jmp    L227
L113:
  cmpl   $0xfffffffe,-0x100(%rbp)
  jne    L14
  mov    0x40(%rbp),%eax
  sub    $0x3,%eax
  mov    %eax,-0xfc(%rbp)
  mov    0x40(%rbp),%eax
  sub    $0x2,%eax
  mov    %eax,-0xf8(%rbp)
  jmp    L161
L14:
  mov    0x40(%rbp),%eax
  sub    $0x2,%eax
  cmp    %eax,-0x100(%rbp)
  jne    L253
  subl   $0x1,-0x100(%rbp)
L253:
  mov    -0x100(%rbp),%eax
  mov    %eax,-0xfc(%rbp)
  mov    -0x100(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0xf8(%rbp)
L161:
  mov    -0x108(%rbp),%eax
  lea    (%rax,%rax,1),%ecx
  mov    -0xb8(%rbp),%rax
  mov    -0xfc(%rbp),%edx
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm0
  movslq %ecx,%rax
  movss  %xmm0,-0x90(%rbp,%rax,4)
  mov    -0x108(%rbp),%eax
  add    %eax,%eax
  lea    0x1(%rax),%ecx
  mov    -0xb8(%rbp),%rax
  mov    -0xf8(%rbp),%edx
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm0
  movslq %ecx,%rax
  movss  %xmm0,-0x90(%rbp,%rax,4)
  mov    -0xfc(%rbp),%eax
  imul   0x30(%rbp),%eax
  imul   0x28(%rbp),%eax
  mov    %eax,%edx
  mov    -0xa8(%rbp),%eax
  imul   0x30(%rbp),%eax
  add    %eax,%edx
  mov    -0xa4(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x140(%rbp),%rax
  add    %rdx,%rax
  mov    -0x108(%rbp),%edx
  add    %edx,%edx
  movss  (%rax),%xmm0
  movslq %edx,%rax
  movss  %xmm0,-0x70(%rbp,%rax,4)
  mov    -0xf8(%rbp),%eax
  imul   0x30(%rbp),%eax
  imul   0x28(%rbp),%eax
  mov    %eax,%edx
  mov    -0xa8(%rbp),%eax
  imul   0x30(%rbp),%eax
  add    %eax,%edx
  mov    -0xa4(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x140(%rbp),%rax
  add    %rdx,%rax
  mov    -0x108(%rbp),%edx
  add    %edx,%edx
  add    $0x1,%edx
  movss  (%rax),%xmm0
  movslq %edx,%rax
  movss  %xmm0,-0x70(%rbp,%rax,4)
  addl   $0x1,-0x108(%rbp)
L264:
  cmpl   $0x3,-0x108(%rbp)
  jle    L31
L227:
  cmpl   $0x2,-0x10c(%rbp)
  jne    L200
  mov    -0x110(%rbp),%eax
  mov    %eax,-0x104(%rbp)
  jmp    L42
L235:
  mov    -0x104(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x118(%rbp),%rax
  add    %rdx,%rax
  movss  D6(%rip),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x104(%rbp)
L42:
  mov    -0x104(%rbp),%eax
  cmp    -0x120(%rbp),%eax
  jl     L235
  jmp    L95
L200:
  mov    -0x110(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x138(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x110(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x118(%rbp),%rax
  lea    (%rdx,%rax,1),%rbx
  lea    -0xb0(%rbp),%rsi
  lea    -0x70(%rbp),%rdx
  lea    -0x90(%rbp),%rax
  movd   %ecx,%xmm0
  mov    $0x2,%r9d
  mov    %rsi,%r8
  mov    $0x8,%ecx
  mov    $0x8,%esi
  mov    %rax,%rdi
  call   <trilinear_interp@plt>
  movd   %xmm0,%eax
  mov    %eax,(%rbx)
  jmp    L95
L180:
  mov    -0x110(%rbp),%eax
  mov    %eax,-0x104(%rbp)
  jmp    L88
L69:
  mov    -0x104(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x118(%rbp),%rax
  add    %rdx,%rax
  pxor   %xmm0,%xmm0
  divss  %xmm0,%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x104(%rbp)
L88:
  mov    -0x104(%rbp),%eax
  cmp    -0x120(%rbp),%eax
  jl     L69
L95:
  addl   $0x1,-0x110(%rbp)
L157:
  mov    -0x110(%rbp),%eax
  cmp    -0x120(%rbp),%eax
  jl     L54
  mov    -0x118(%rbp),%rax
  mov    %r12,%rsp
  mov    -0x28(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L23
  call   <__stack_chk_fail@plt>
L23:
  lea    -0x20(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D43
data_type: f64
name: disassemble_data
arguments: tag: D20
data_type: byte[4]
name: disassemble_data
arguments: tag: D6
data_type: byte[4]

tool: D43: 1

tool: {"D20": [0x00,0x00,0x80,0x3f]}

tool: {"D6": [0x00,0x3c,0x1c,0xc6]}

assistant: ```c
float *get_all_radar_pts(float *output, int len, float *coords_rad_pts, int crp_x, int crp_y, float *radar_heights, int rh_x, float *model_data, int md_x, int md_y, int md_z, float *model_heights, int mh_x, int mh_y, int mh_z, float *llc_cosmo, int llc_cosmo_x, float *res_cosmo, int res_cosmo_x) {
  float radar_pts[crp_x];
  int i = 0;
  int llc_i = 0;
  int llc_j = 0;
  int current_llc_i = 0;
  int current_llc_j = 0;
  int flag = 1;
  float interp_topo = 0.0;
  float diff_i = 0;
  float diff_j = 0;
  float v[4];
  float pos_i = 0.0;
  float pos_j = 0.0;
  float pos_radar_bin[2];
  float coords_neighbours[8];
  float val_neighbours[8];
  int j = 0;
  float slice_vert[mh_x];
  int k = 0;
  int idx = 0;
  int closest_1, closest_2;
  for (i = 0; i < crp_x; i++) {
    pos_radar_bin[0] = (coords_rad_pts[i * crp_y + 0] - llc_cosmo[0]) / res_cosmo[0];
    pos_radar_bin[1] = (coords_rad_pts[i * crp_y + 1] - llc_cosmo[1]) / res_cosmo[1];
    llc_i = floor(pos_radar_bin[1]);
    llc_j = floor(pos_radar_bin[0]);
    current_llc_i = llc_i;
    current_llc_j = llc_j;
    int neighb[4][2] = {{llc_i, llc_j}, {llc_i, llc_j + 1}, {llc_i + 1, llc_j}, {llc_i + 1, llc_j + 1}};
    flag = 1;
    pos_i = fmod(pos_radar_bin[1], 1.0);
    pos_j = fmod(pos_radar_bin[0], 1.0);
    diff_i = 1.0 - pos_i;
    diff_j = 1.0 - pos_j;
    for (k = 0; k < 4; k++) {
      v[k] = model_heights[(mh_x - 1) * mh_y * mh_z + neighb[k][0] * mh_z + neighb[k][1]];
    }
    interp_topo = diff_i * diff_j * v[0] + pos_i * v[2] * diff_j + diff_i * v[1] * pos_j + pos_i * pos_j * v[3];
    if (interp_topo < radar_heights[i]) {
      for (j = 0; j < 4; j++) {
        int n[2] = {neighb[j][0], neighb[j][1]};
        slice_vert[mh_x];
        for (k = 0; k < mh_x; k++) {
          slice_vert[k] = model_heights[k * mh_y * mh_z + n[0] * mh_z + n[1]];
        }
        idx = binary_search(slice_vert, mh_x, radar_heights[i]);
        if (idx == -1) {
          flag = 2;
          break;
        }
        if (idx == -2) {
          closest_1 = mh_x - 3;
          closest_2 = mh_x - 2;
        } else {
          if (idx == (mh_x - 2)) {
            idx--;
          }
          closest_1 = idx;
          closest_2 = idx + 1;
        }
        coords_neighbours[2 * j] = slice_vert[closest_1];
        coords_neighbours[2 * j + 1] = slice_vert[closest_2];
        val_neighbours[2 * j] = model_data[closest_1 * md_z * md_y + n[0] * md_z + n[1]];
        val_neighbours[2 * j + 1] = model_data[closest_2 * md_z * md_y + n[0] * md_z + n[1]];
      }
      if (flag == 2) {
        for (k = i; k < crp_x; k++) {
          output[k] = -9999;
        }
      } else {
        output[i] = trilinear_interp(coords_neighbours, 8, val_neighbours, 8, pos_radar_bin, 2, radar_heights[i]);
      }
    } else {
      for (k = i; k < crp_x; k++) {
        output[k] = 0.0 / 0.0;
      }
    }
  }
  return output;
}
```