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

```asm
<get_all_radar_pts>:
  endbr64
  push   %rbp
  mov    %rdx,%rsi
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x118,%rsp
  mov    0x58(%rbp),%rax
  mov    %ecx,-0x118(%rbp)
  mov    %rdi,-0x100(%rbp)
  mov    %rsp,%rcx
  mov    0x18(%rbp),%r13
  mov    %rax,-0x108(%rbp)
  mov    0x68(%rbp),%rax
  mov    %r9,-0xe8(%rbp)
  mov    0x38(%rbp),%r15
  mov    %rax,-0x110(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  movslq 0x40(%rbp),%rax
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L143
L40:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L40
L143:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L119
L148:
  mov    -0x118(%rbp),%eax
  mov    %rsp,%r14
  test   %eax,%eax
  jle    L108
  mov    0x40(%rbp),%eax
  mov    0x48(%rbp),%edx
  movslq %r8d,%r8
  mov    %rsi,-0xf8(%rbp)
  movq   $0x0,-0xc8(%rbp)
  imul   0x50(%rbp),%edx
  sub    $0x1,%eax
  mov    %eax,%ebx
  lea    0x4(%r14,%rax,4),%r12
  lea    -0x60(%rbp),%rax
  imul   %edx,%ebx
  mov    %rax,-0xe0(%rbp)
  movslq %edx,%rdx
  lea    -0xb0(%rbp),%rax
  mov    %rax,-0x138(%rbp)
  lea    -0x40(%rbp),%rax
  mov    %rax,-0x130(%rbp)
  mov    0x40(%rbp),%eax
  mov    %ebx,-0x114(%rbp)
  lea    0x0(,%r8,4),%rbx
  sub    $0x2,%eax
  mov    %rbx,-0x128(%rbp)
  movslq -0x118(%rbp),%rbx
  mov    %eax,-0xd8(%rbp)
  mov    %r15,%rax
  mov    %r13,%r15
  mov    %rbx,-0x120(%rbp)
  mov    %rax,%r13
  lea    0x0(,%rdx,4),%rbx
  nopl   0x0(%rax,%rax,1)
L94:
  mov    -0x108(%rbp),%rdi
  mov    -0x110(%rbp),%rdx
  mov    -0xf8(%rbp),%rax
  movss  (%rax),%xmm0
  subss  (%rdi),%xmm0
  divss  (%rdx),%xmm0
  movss  %xmm0,-0xb8(%rbp)
  movss  0x4(%rax),%xmm0
  subss  0x4(%rdi),%xmm0
  divss  0x4(%rdx),%xmm0
  movss  %xmm0,-0xb4(%rbp)
  call   <floor@plt>
  movss  -0xb8(%rbp),%xmm0
  mov    %eax,-0xd0(%rbp)
  call   <floor@plt>
  mov    -0xd0(%rbp),%ecx
  movss  -0xb4(%rbp),%xmm0
  mov    %eax,%edx
  lea    0x1(%rax),%eax
  mov    %eax,-0x54(%rbp)
  mov    %eax,-0x44(%rbp)
  mov    D24(%rip),%rax
  mov    %ecx,-0x60(%rbp)
  movq   %rax,%xmm1
  mov    %ecx,-0x58(%rbp)
  add    $0x1,%ecx
  mov    %ecx,-0x50(%rbp)
  mov    %edx,-0x4c(%rbp)
  mov    %edx,-0xd4(%rbp)
  mov    %ecx,-0x48(%rbp)
  call   <fmod@plt>
  mov    D24(%rip),%rax
  movss  %xmm0,-0xd0(%rbp)
  movss  -0xb8(%rbp),%xmm0
  movq   %rax,%xmm1
  call   <fmod@plt>
  mov    -0xd4(%rbp),%edx
  mov    0x50(%rbp),%r8d
  movss  D21(%rip),%xmm1
  movss  -0xd0(%rbp),%xmm2
  movaps %xmm0,%xmm3
  mov    -0xe0(%rbp),%rsi
  mov    -0x138(%rbp),%rdi
  mov    %edx,%r10d
  movss  D21(%rip),%xmm6
  subss  %xmm2,%xmm1
  mov    -0x114(%rbp),%ecx
  mov    -0x130(%rbp),%r9
  subss  %xmm0,%xmm6
L183:
  mov    (%rsi),%eax
  add    $0x8,%rsi
  add    $0x4,%rdi
  imul   %r8d,%eax
  add    %ecx,%eax
  add    %r10d,%eax
  cltq
  movss  0x0(%r13,%rax,4),%xmm0
  movss  %xmm0,-0x4(%rdi)
  cmp    %rsi,%r9
  je     L81
  mov    0x4(%rsi),%r10d
  jmp    L183
  nopw   0x0(%rax,%rax,1)
L81:
  movss  -0xa8(%rbp),%xmm5
  movaps %xmm1,%xmm0
  mov    -0xe8(%rbp),%rax
  mulss  -0xac(%rbp),%xmm1
  mov    -0xc8(%rbp),%rdi
  mulss  %xmm2,%xmm5
  mulss  %xmm6,%xmm0
  movss  (%rax,%rdi,4),%xmm4
  mulss  -0xb0(%rbp),%xmm0
  mulss  %xmm3,%xmm2
  mulss  %xmm3,%xmm1
  mulss  %xmm6,%xmm5
  mulss  -0xa4(%rbp),%xmm2
  addss  %xmm5,%xmm0
  addss  %xmm1,%xmm0
  addss  %xmm2,%xmm0
  comiss %xmm0,%xmm4
  jbe    L85
  xor    %ecx,%ecx
  mov    0x40(%rbp),%r11d
  mov    %r13,-0xf0(%rbp)
  mov    %r14,%r8
  mov    %edx,%r13d
  mov    %r12,%r14
  mov    %r15,%r12
  mov    %rbx,%r15
  mov    %rcx,%rbx
L161:
  mov    -0xe0(%rbp),%rax
  mov    (%rax,%rbx,1),%ecx
  test   %r11d,%r11d
  jle    L154
  mov    0x50(%rbp),%esi
  mov    -0xf0(%rbp),%rdi
  movslq %r13d,%rax
  imul   %ecx,%esi
  movslq %esi,%rsi
  add    %rsi,%rax
  lea    (%rdi,%rax,4),%rsi
  mov    %r8,%rax
  nopw   0x0(%rax,%rax,1)
L2:
  movss  (%rsi),%xmm0
  add    $0x4,%rax
  add    %r15,%rsi
  movss  %xmm0,-0x4(%rax)
  cmp    %rax,%r14
  jne    L2
L154:
  mov    %r11d,%esi
  mov    %r8,%rdi
  movaps %xmm4,%xmm0
  mov    %ecx,-0xd4(%rbp)
  mov    %r11d,0x40(%rbp)
  mov    %r8,-0xd0(%rbp)
  call   <binary_search@plt>
  mov    -0xd0(%rbp),%r8
  mov    0x40(%rbp),%r11d
  cmp    $0xffffffff,%eax
  mov    -0xd4(%rbp),%ecx
  je     L136
  mov    -0xd8(%rbp),%esi
  cmp    $0xfffffffe,%eax
  je     L82
  cmp    -0xd8(%rbp),%eax
  je     L82
  lea    0x1(%rax),%esi
L144:
  movslq %eax,%r10
  imul   0x30(%rbp),%ecx
  mov    -0xc8(%rbp),%rdx
  lea    -0xa0(%rbp),%rdi
  imul   0x30(%rbp),%eax
  movss  (%r8,%r10,4),%xmm0
  movslq %esi,%r10
  imul   0x28(%rbp),%eax
  movss  %xmm0,-0xa0(%rbp,%rbx,1)
  imul   0x30(%rbp),%esi
  movss  (%r8,%r10,4),%xmm0
  lea    -0x80(%rbp),%r10
  imul   0x28(%rbp),%esi
  movss  %xmm0,-0x9c(%rbp,%rbx,1)
  add    %ecx,%eax
  add    %r13d,%eax
  cltq
  add    %ecx,%esi
  movss  (%r12,%rax,4),%xmm0
  add    %r13d,%esi
  mov    -0xe8(%rbp),%rax
  movslq %esi,%rsi
  movss  %xmm0,-0x80(%rbp,%rbx,1)
  movss  (%r12,%rsi,4),%xmm0
  movss  (%rax,%rdx,4),%xmm4
  movss  %xmm0,-0x7c(%rbp,%rbx,1)
  add    $0x8,%rbx
  cmp    $0x20,%rbx
  je     L106
  mov    -0x5c(%rbp,%rbx,1),%r13d
  jmp    L161
  nopl   0x0(%rax)
L82:
  lea    -0x3(%r11),%eax
  jmp    L144
  nopl   0x0(%rax)
L85:
  pxor   %xmm0,%xmm0
  mov    -0xc8(%rbp),%rax
  mov    -0x100(%rbp),%rdx
  divss  %xmm0,%xmm0
  mov    -0x118(%rbp),%ecx
  nopl   0x0(%rax)
L37:
  movss  %xmm0,(%rdx,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%ecx
  jg     L37
L114:
  addq   $0x1,-0xc8(%rbp)
  mov    -0x128(%rbp),%rdx
  mov    -0xc8(%rbp),%rax
  add    %rdx,-0xf8(%rbp)
  cmp    %rax,-0x120(%rbp)
  jne    L94
L108:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L207
  mov    -0x100(%rbp),%rax
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L106:
  mov    %r10,%rdx
  mov    %r15,%rbx
  movaps %xmm4,%xmm0
  mov    %r12,%r15
  mov    $0x2,%r9d
  mov    %r14,%r12
  mov    $0x8,%ecx
  mov    %r8,%r14
  mov    $0x8,%esi
  lea    -0xb8(%rbp),%r8
  mov    -0xf0(%rbp),%r13
  call   <trilinear_interp@plt>
  mov    -0x100(%rbp),%rax
  mov    -0xc8(%rbp),%rdx
  movss  %xmm0,(%rax,%rdx,4)
  jmp    L114
L136:
  mov    -0xf0(%rbp),%r13
  mov    -0xc8(%rbp),%rax
  mov    %r15,%rbx
  mov    %r12,%r15
  mov    -0x100(%rbp),%rdx
  mov    -0x118(%rbp),%ecx
  mov    %r14,%r12
  mov    %r8,%r14
  nopl   0x0(%rax)
L185:
  movl   $0xc61c3c00,(%rdx,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%ecx
  jg     L185
  jmp    L114
L119:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L148
L207:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D24
datatype: f64
name: extract_symbolic_data
arguments: data_tag: D21
datatype: byte[4]

tool: D24: 1

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

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