user: Converte this assembly snippet into its equivalent C code:

```asm
<Ipol2>:
  endbr64
  movss  D70(%rip),%xmm2
  movaps %xmm0,%xmm3
  movaps %xmm0,%xmm6
  mov    %rcx,%rdx
  movss  D42(%rip),%xmm5
  andps  %xmm2,%xmm3
  movaps %xmm2,%xmm4
  ucomiss %xmm3,%xmm5
  jbe    L27
  cvttss2si %xmm0,%eax
  pxor   %xmm3,%xmm3
  movss  D65(%rip),%xmm7
  andnps %xmm0,%xmm4
  cvtsi2ss %eax,%xmm3
  movaps %xmm3,%xmm6
  cmpnless %xmm0,%xmm6
  andps  %xmm7,%xmm6
  subss  %xmm6,%xmm3
  movaps %xmm3,%xmm6
  orps   %xmm4,%xmm6
L27:
  cvttss2si %xmm6,%ecx
  pxor   %xmm3,%xmm3
  movaps %xmm1,%xmm4
  cvtsi2ss %ecx,%xmm3
  subss  %xmm3,%xmm0
  movaps %xmm1,%xmm3
  andps  %xmm2,%xmm3
  ucomiss %xmm3,%xmm5
  jbe    L26
  cvttss2si %xmm1,%eax
  pxor   %xmm3,%xmm3
  movss  D65(%rip),%xmm5
  andnps %xmm1,%xmm2
  cvtsi2ss %eax,%xmm3
  movaps %xmm3,%xmm4
  cmpnless %xmm1,%xmm4
  andps  %xmm5,%xmm4
  subss  %xmm4,%xmm3
  movaps %xmm3,%xmm4
  orps   %xmm2,%xmm4
L26:
  cvttss2si %xmm4,%eax
  pxor   %xmm2,%xmm2
  movl   $0x0,(%rdx)
  cvtsi2ss %eax,%xmm2
  subss  %xmm2,%xmm1
  test   %rdi,%rdi
  je     L2
  imul   %esi,%eax
  movss  D61(%rip),%xmm2
  add    %ecx,%eax
  comiss %xmm0,%xmm2
  cltq
  lea    (%rdi,%rax,4),%rax
  movss  (%rax),%xmm5
  jbe    L36
  comiss %xmm1,%xmm2
  jbe    L19
  movss  %xmm5,(%rdx)
  ret
  nopl   0x0(%rax,%rax,1)
L14:
  pxor   %xmm3,%xmm3
  pxor   %xmm7,%xmm7
  pxor   %xmm6,%xmm6
  movslq %esi,%rsi
  movsd  D78(%rip),%xmm8
  cvtss2sd %xmm0,%xmm3
  cvtss2sd %xmm1,%xmm7
  mulss  %xmm1,%xmm0
  movapd %xmm8,%xmm2
  subsd  %xmm7,%xmm8
  subsd  %xmm3,%xmm2
  mulsd  %xmm8,%xmm3
  movapd %xmm2,%xmm4
  mulsd  %xmm8,%xmm4
  mulsd  %xmm7,%xmm2
  cvtsd2ss %xmm3,%xmm3
  cvtsd2ss %xmm4,%xmm4
  addss  %xmm4,%xmm6
  mulss  %xmm5,%xmm4
  pxor   %xmm5,%xmm5
  cvtsd2ss %xmm2,%xmm2
  addss  %xmm3,%xmm6
  addss  %xmm5,%xmm4
  addss  %xmm2,%xmm6
  movss  %xmm4,(%rdx)
  mulss  0x4(%rax),%xmm3
  addss  %xmm4,%xmm3
  movss  %xmm3,(%rdx)
  mulss  (%rax,%rsi,4),%xmm2
  addss  %xmm3,%xmm2
  movss  %xmm2,(%rdx)
  movss  0x4(%rax,%rsi,4),%xmm1
  mulss  %xmm0,%xmm1
  addss  %xmm6,%xmm0
  addss  %xmm2,%xmm1
  divss  %xmm0,%xmm1
  movss  %xmm1,(%rdx)
L2:
  ret
  nopl   0x0(%rax)
L36:
  comiss %xmm1,%xmm2
  jbe    L14
  movss  D65(%rip),%xmm1
  pxor   %xmm3,%xmm3
  subss  %xmm0,%xmm1
  addss  %xmm1,%xmm3
  mulss  %xmm5,%xmm1
  movss  %xmm1,(%rdx)
  movss  0x4(%rax),%xmm2
  mulss  %xmm0,%xmm2
  addss  %xmm3,%xmm0
  addss  %xmm1,%xmm2
  divss  %xmm0,%xmm2
  movss  %xmm2,(%rdx)
  ret
  nopw   0x0(%rax,%rax,1)
L19:
  movss  D65(%rip),%xmm2
  pxor   %xmm3,%xmm3
  pxor   %xmm7,%xmm7
  movslq %esi,%rsi
  movaps %xmm2,%xmm0
  subss  %xmm1,%xmm0
  addss  %xmm0,%xmm3
  mulss  %xmm5,%xmm0
  addss  %xmm7,%xmm0
  movss  %xmm0,(%rdx)
  movss  (%rax,%rsi,4),%xmm2
  mulss  %xmm1,%xmm2
  addss  %xmm3,%xmm1
  addss  %xmm0,%xmm2
  divss  %xmm1,%xmm2
  movss  %xmm2,(%rdx)
  ret
```

tool_calls: name: unpack_data
arguments: label: D70
data_type: byte[4]
name: unpack_data
arguments: label: D42
data_type: byte[4]
name: unpack_data
arguments: label: D65
data_type: f32
name: unpack_data
arguments: label: D61
data_type: byte[4]
name: unpack_data
arguments: label: D78
data_type: f32[2]

tool: {"D70": [0xff,0xff,0xff,0x7f]}

tool: {"D42": [0x00,0x00,0x00,0x4b]}

tool: D65: 1

tool: {"D61": [0x17,0xb7,0xd1,0x38]}

tool: {"D78": [0.0,1.875]}

assistant: ```c
void Ipol2(float *Data, int Dim_1, int Dim_2, float f_1, float f_2, float *value) {
  const float eps = 1e-4;
  int cnt;
  float *pval1, *pval2, *pval3, *pval4;
  float w1, w2, w3, w4;
  float weight;
  int i_1, i_2;
  float r_1, r_2;
  (i_1) = floor(f_1);
  (r_1) = (f_1) - (float)(i_1);
  (i_2) = floor(f_2);
  (r_2) = (f_2) - (float)(i_2);
  weight = 0.0;
  *value = 0.0;
  cnt = 0;
  if (!Data)
    return;
  pval1 = (Data) + ((i_1) + ((i_2) * (Dim_1)));
  if (r_1 < eps) {
    if (r_2 < eps) {
      cnt++;
      *value = *pval1;
    } else {
      cnt++;
      w1 = 1.0 - r_2;
      weight += w1;
      *value += *pval1 * w1;
      pval4 = (pval1) + (Dim_1);
      cnt++;
      w4 = r_2;
      weight += w4;
      *value += *pval4 * w4;
      if (cnt)
        *value = *value / weight;
    }
  } else {
    if (r_2 < eps) {
      cnt++;
      w1 = (1 - r_1);
      weight += w1;
      *value = *pval1 * w1;
      pval2 = (pval1) + 1;
      cnt++;
      w2 = r_1;
      weight += w2;
      *value += *pval2 * w2;
      if (cnt)
        *value = *value / weight;
    } else {
      cnt++;
      w1 = (1.0 - r_1) * (1.0 - r_2);
      weight += w1;
      *value += *pval1 * w1;
      pval2 = (pval1) + 1;
      cnt++;
      w2 = r_1 * (1.0 - r_2);
      weight += w2;
      *value += *pval2 * w2;
      pval4 = (pval1) + (Dim_1);
      cnt++;
      w4 = (1.0 - r_1) * r_2;
      weight += w4;
      *value += *pval4 * w4;
      pval3 = (pval1) + (1 + (Dim_1));
      cnt++;
      w3 = r_1 * r_2;
      weight += w3;
      *value += *pval3 * w3;
      if (cnt)
        *value = *value / weight;
    }
  }
}
```