user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<neiEK>:
  endbr64
  push   %r15
  push   %r14
  mov    %r9d,%r14d
  push   %r13
  mov    %r8d,%r13d
  push   %r12
  mov    %ecx,%r12d
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    0x90(%rsp),%eax
  mov    0x98(%rsp),%rbx
  mov    %esi,0x18(%rsp)
  mov    %rdi,0x10(%rsp)
  lea    0x0(,%r8,8),%edi
  mov    0xa8(%rsp),%rbp
  sub    $0x1,%eax
  mov    %edx,0x20(%rsp)
  mov    %eax,0xc(%rsp)
  movsd  %xmm0,0x40(%rsp)
  call   <malloc@plt>
  test   %r13d,%r13d
  mov    0xb0(%rsp),%rcx
  mov    %rax,%r15
  jle    L336
  movslq 0x18(%rsp),%rdx
  mov    0x10(%rsp),%r8
  mov    %r13d,%eax
  lea    (%r15,%rax,8),%rsi
  mov    %r15,%rax
  shl    $0x3,%rdx
  sub    %r15,%r8
L131:
  mov    (%r8,%rax,1),%rdi
  add    $0x8,%rax
  movsd  (%rdi,%rdx,1),%xmm0
  movsd  %xmm0,-0x8(%rax)
  cmp    %rax,%rsi
  jne    L131
L336:
  movslq 0x20(%rsp),%rax
  movsd  0x40(%rsp),%xmm6
  mov    0xc(%rsp),%edi
  movsd  (%r15,%rax,8),%xmm0
  divsd  %xmm6,%xmm0
  cvttsd2si %xmm0,%eax
  and    %edi,%eax
  mov    %eax,0x38(%rsp)
  movslq %r12d,%rax
  movslq %r14d,%r12
  movsd  (%r15,%rax,8),%xmm0
  divsd  %xmm6,%xmm0
  cvttsd2si %xmm0,%eax
  and    %edi,%eax
  mov    %eax,0x30(%rsp)
  test   %r14d,%r14d
  jle    L134
  mov    %rcx,%rdi
  lea    0x0(,%r12,4),%rdx
  xor    %esi,%esi
  call   <memset@plt>
  mov    %rax,%rcx
L134:
  mov    0x90(%rsp),%eax
  mov    0x10(%rsp),%rdx
  movl   $0x0,0x28(%rsp)
  mov    %r13d,%edi
  movq   D17(%rip),%xmm2
  movsd  -0x8(%rbx,%r12,8),%xmm4
  shr    $0x1f,%eax
  add    0x90(%rsp),%eax
  sub    %r15,%rdx
  sar    %eax
  movapd %xmm2,%xmm3
  mov    %eax,0x4c(%rsp)
  lea    -0x2(%r13),%eax
  lea    0x10(%r15,%rax,8),%rsi
L348:
  mov    0x28(%rsp),%eax
  pxor   %xmm0,%xmm0
  sub    $0x1,%eax
  cvtsi2sd %eax,%xmm0
  mulsd  0x40(%rsp),%xmm0
  comisd %xmm0,%xmm4
  jbe    L594
  mov    0x38(%rsp),%r8d
  mov    0x28(%rsp),%r11d
  mov    %r8d,%eax
  sub    %r11d,%eax
  mov    %eax,0x2c(%rsp)
  test   %r11d,%r11d
  je     L549
  lea    (%r11,%r11,1),%r9d
  add    %r11d,%r8d
  mov    %r9d,0x20(%rsp)
  mov    %r8d,0x3c(%rsp)
  cmp    %r8d,%eax
  jg     L591
L453:
  mov    0x30(%rsp),%eax
  mov    0x28(%rsp),%r11d
  mov    %eax,%r8d
  add    %r11d,%eax
  sub    %r11d,%r8d
  mov    %eax,0x18(%rsp)
  mov    %r8d,0x48(%rsp)
  mov    0x2c(%rsp),%r8d
  mov    %r8d,0x34(%rsp)
L436:
  mov    0xc(%rsp),%eax
  mov    0x18(%rsp),%r11d
  and    0x34(%rsp),%eax
  cmp    %r11d,0x48(%rsp)
  jg     L421
  mov    0xa0(%rsp),%r8
  cltq
  mov    0x48(%rsp),%r13d
  mov    (%r8,%rax,8),%r8
  xchg   %ax,%ax
L183:
  mov    0xc(%rsp),%eax
  and    %r13d,%eax
  cltq
  movslq (%r8,%rax,4),%r10
  cmp    $0xffffffff,%r10d
  je     L407
  mov    0x10(%rsp),%rax
  movsd  (%r15),%xmm5
  mov    (%rax),%r11
  nopl   0x0(%rax)
L372:
  movapd %xmm5,%xmm1
  subsd  (%r11,%r10,8),%xmm1
  lea    0x0(,%r10,8),%r9
  andpd  %xmm2,%xmm1
  cmp    $0x1,%edi
  jle    L469
  mov    %rcx,0xb0(%rsp)
  lea    0x8(%r15),%rax
  nop
L261:
  mov    (%rdx,%rax,1),%rcx
  movsd  (%rax),%xmm0
  subsd  (%rcx,%r9,1),%xmm0
  andpd  %xmm2,%xmm0
  comisd %xmm1,%xmm0
  jbe    L206
  comisd %xmm4,%xmm0
  ja     L320
  movapd %xmm0,%xmm1
L206:
  add    $0x8,%rax
  cmp    %rax,%rsi
  jne    L261
  mov    0xb0(%rsp),%rcx
L469:
  xor    %eax,%eax
  test   %r14d,%r14d
  jle    L106
  xchg   %ax,%ax
L12:
  movsd  (%rbx,%rax,8),%xmm0
  comisd %xmm1,%xmm0
  jb     L525
  addl   $0x1,(%rcx,%rax,4)
L525:
  add    $0x1,%rax
  cmp    %rax,%r12
  jne    L12
L106:
  movslq 0x0(%rbp,%r10,4),%r10
  cmp    $0xffffffff,%r10d
  jne    L372
L407:
  add    0x20(%rsp),%r13d
  cmp    %r13d,0x18(%rsp)
  jge    L183
L421:
  addl   $0x1,0x34(%rsp)
  mov    0x34(%rsp),%eax
  cmp    0x3c(%rsp),%eax
  jle    L436
  mov    0x30(%rsp),%eax
  add    $0x1,%eax
  sub    0x28(%rsp),%eax
  mov    %eax,0x34(%rsp)
L108:
  mov    0xc(%rsp),%eax
  mov    0x34(%rsp),%r11d
  and    0x2c(%rsp),%eax
  cmp    %r11d,0x18(%rsp)
  jle    L179
  mov    0xa0(%rsp),%r8
  cltq
  mov    0x34(%rsp),%r13d
  mov    (%r8,%rax,8),%r8
  nopl   0x0(%rax)
L118:
  mov    0xc(%rsp),%eax
  and    %r13d,%eax
  cltq
  movslq (%r8,%rax,4),%r10
  cmp    $0xffffffff,%r10d
  je     L59
  mov    0x10(%rsp),%rax
  movsd  (%r15),%xmm5
  mov    (%rax),%r11
  nopl   0x0(%rax)
L414:
  movapd %xmm5,%xmm1
  subsd  (%r11,%r10,8),%xmm1
  lea    0x0(,%r10,8),%r9
  andpd  %xmm3,%xmm1
  cmp    $0x1,%edi
  jle    L239
  mov    %rcx,0xb0(%rsp)
  lea    0x8(%r15),%rax
  nopw   0x0(%rax,%rax,1)
L590:
  mov    (%rdx,%rax,1),%rcx
  movsd  (%rax),%xmm0
  subsd  (%rcx,%r9,1),%xmm0
  andpd  %xmm3,%xmm0
  comisd %xmm1,%xmm0
  jbe    L295
  comisd %xmm4,%xmm0
  ja     L571
  movapd %xmm0,%xmm1
L295:
  add    $0x8,%rax
  cmp    %rax,%rsi
  jne    L590
  mov    0xb0(%rsp),%rcx
L239:
  xor    %eax,%eax
  test   %r14d,%r14d
  jle    L450
  xchg   %ax,%ax
L472:
  movsd  (%rbx,%rax,8),%xmm0
  comisd %xmm1,%xmm0
  jb     L526
  addl   $0x1,(%rcx,%rax,4)
L526:
  add    $0x1,%rax
  cmp    %rax,%r12
  jne    L472
L450:
  movslq 0x0(%rbp,%r10,4),%r10
  cmp    $0xffffffff,%r10d
  jne    L414
L59:
  add    $0x1,%r13d
  cmp    %r13d,0x18(%rsp)
  jne    L118
L179:
  mov    0x20(%rsp),%r8d
  add    %r8d,0x2c(%rsp)
  mov    0x2c(%rsp),%eax
  cmp    0x3c(%rsp),%eax
  jle    L108
L591:
  addl   $0x1,0x28(%rsp)
  mov    0x28(%rsp),%eax
  cmp    %eax,0x4c(%rsp)
  jne    L348
  mov    %edi,%r13d
L422:
  mov    0x38(%rsp),%eax
  mov    0x28(%rsp),%edi
  mov    0x30(%rsp),%r8d
  mov    %eax,%r11d
  add    %edi,%eax
  sub    %edi,%r11d
  mov    %eax,0x2c(%rsp)
  sub    %edi,%r8d
  cmp    %eax,%r11d
  jge    L371
  mov    0xc(%rsp),%eax
  mov    0x10(%rsp),%r9
  mov    %r11d,0x34(%rsp)
  mov    %r11d,%r10d
  movq   D17(%rip),%xmm2
  and    %r8d,%eax
  sub    %r15,%r9
  cltq
  shl    $0x2,%rax
  mov    %rax,0x18(%rsp)
L566:
  mov    0xc(%rsp),%eax
  mov    0xa0(%rsp),%rdi
  and    %r10d,%eax
  cltq
  mov    (%rdi,%rax,8),%rax
  mov    0x18(%rsp),%rdi
  mov    (%rax,%rdi,1),%edx
  cmp    $0xffffffff,%edx
  je     L276
  mov    0x10(%rsp),%rax
  movsd  (%r15),%xmm3
  mov    (%rax),%rax
  mov    %rax,0x20(%rsp)
L314:
  mov    0x20(%rsp),%rax
  movslq %edx,%rdi
  movapd %xmm3,%xmm1
  lea    0x0(,%rdi,8),%r11
  subsd  (%rax,%rdi,8),%xmm1
  andpd  %xmm2,%xmm1
  cmp    $0x1,%r13d
  jle    L30
  lea    0x8(%r15),%rax
L270:
  mov    (%r9,%rax,1),%rdx
  movsd  (%rax),%xmm0
  subsd  (%rdx,%r11,1),%xmm0
  andpd  %xmm2,%xmm0
  comisd %xmm1,%xmm0
  jbe    L553
  comisd %xmm4,%xmm0
  movapd %xmm0,%xmm1
  ja     L30
L553:
  add    $0x8,%rax
  cmp    %rax,%rsi
  jne    L270
L30:
  xor    %eax,%eax
  test   %r14d,%r14d
  jle    L454
L460:
  movsd  (%rbx,%rax,8),%xmm0
  comisd %xmm1,%xmm0
  jb     L275
  addl   $0x1,(%rcx,%rax,4)
L275:
  add    $0x1,%rax
  cmp    %rax,%r12
  jne    L460
L454:
  mov    0x0(%rbp,%rdi,4),%edx
  cmp    $0xffffffff,%edx
  jne    L314
L276:
  add    $0x1,%r10d
  cmp    0x2c(%rsp),%r10d
  jne    L566
  mov    0x34(%rsp),%r11d
L371:
  mov    0x30(%rsp),%eax
  lea    0x1(%r8),%r10d
  add    0x28(%rsp),%eax
  mov    %eax,0x18(%rsp)
  and    0xc(%rsp),%r11d
  cmp    %eax,%r10d
  jge    L190
  mov    0xa0(%rsp),%rax
  mov    0x10(%rsp),%r9
  movslq %r11d,%r11
  movq   D17(%rip),%xmm2
  mov    (%rax,%r11,8),%r11
  sub    %r15,%r9
L178:
  mov    0xc(%rsp),%eax
  and    %r10d,%eax
  cltq
  mov    (%r11,%rax,4),%edx
  cmp    $0xffffffff,%edx
  je     L410
  mov    0x10(%rsp),%rax
  movsd  (%r15),%xmm3
  mov    %r11,0x20(%rsp)
  mov    (%rax),%rdi
L335:
  movslq %edx,%r8
  movapd %xmm3,%xmm1
  subsd  (%rdi,%r8,8),%xmm1
  lea    0x0(,%r8,8),%r11
  andpd  %xmm2,%xmm1
  cmp    $0x1,%r13d
  jle    L218
  lea    0x8(%r15),%rax
L339:
  mov    (%r9,%rax,1),%rdx
  movsd  (%rax),%xmm0
  subsd  (%rdx,%r11,1),%xmm0
  andpd  %xmm2,%xmm0
  comisd %xmm1,%xmm0
  jbe    L540
  comisd %xmm4,%xmm0
  movapd %xmm0,%xmm1
  ja     L218
L540:
  add    $0x8,%rax
  cmp    %rax,%rsi
  jne    L339
L218:
  xor    %eax,%eax
  test   %r14d,%r14d
  jle    L367
L478:
  movsd  (%rbx,%rax,8),%xmm0
  comisd %xmm1,%xmm0
  jb     L595
  addl   $0x1,(%rcx,%rax,4)
L595:
  add    $0x1,%rax
  cmp    %rax,%r12
  jne    L478
L367:
  mov    0x0(%rbp,%r8,4),%edx
  cmp    $0xffffffff,%edx
  jne    L335
  mov    0x20(%rsp),%r11
L410:
  add    $0x1,%r10d
  cmp    0x18(%rsp),%r10d
  jne    L178
  jmp    L190
  nopl   0x0(%rax,%rax,1)
L320:
  mov    0xb0(%rsp),%rcx
  movapd %xmm0,%xmm1
  jmp    L469
  nopl   0x0(%rax)
L571:
  mov    0xb0(%rsp),%rcx
  movapd %xmm0,%xmm1
  jmp    L239
L549:
  mov    0x38(%rsp),%eax
  movl   $0x1,0x20(%rsp)
  mov    %eax,0x3c(%rsp)
  jmp    L453
L594:
  mov    %edi,%r13d
  mov    0x28(%rsp),%edi
  cmp    %edi,0x4c(%rsp)
  je     L422
L190:
  mov    %r15,%rdi
  mov    %rcx,0xb0(%rsp)
  call   <free@plt>
  test   %r14d,%r14d
  mov    0xb0(%rsp),%rcx
  jle    L212
  lea    -0x1(%r14),%edx
  mov    %rcx,%rax
  lea    0x4(%rcx,%rdx,4),%rdx
L231:
  subl   $0x1,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L231
L212:
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: parse_data
arguments: label: D17
type_infered: qword

tool: D17: 9223372036854775807

assistant: ```c
void neiEK(double **x, int i, int comp1, int comp2, int dim, int K, int bs, double epsgrid, double *eps, int **box, int *lis, int *nx) {
  int ix, iy, ix1, iy1, ix2, jj, step, d, ik;
  int el, ib = bs - 1;
  double dd, dy;
  double *xx;
  xx = (double *)malloc(dim * sizeof(double));
  for (d = 0; d < dim; d++)
    xx[d] = x[d][i];
  ix = (int)(xx[comp1] / epsgrid) & ib;
  iy = (int)(xx[comp2] / epsgrid) & ib;
  jj = 0;
  for (ik = 0; ik < K; ik++)
    nx[ik] = 0;
  while (eps[K - 1] > epsgrid * (jj - 1)) {
    step = (jj) ? 2 * jj : 1;
    for (ix1 = ix - jj; ix1 <= ix + jj; ix1++) {
      ix2 = ix1 & ib;
      for (iy1 = iy - jj; iy1 <= iy + jj; iy1 += step) {
        el = box[ix2][iy1 & ib];
        while (el != -1) {
          dd = fabs(xx[0] - x[0][el]);
          for (d = 1; d < dim; d++)
            if ((dy = fabs(xx[d] - x[d][el])) > dd)
              if ((dd = dy) > eps[K - 1])
                break;
          ;
          for (ik = 0; ik < K; ik++) {
            if (dd <= eps[ik])
              nx[ik]++;
          }
          el = lis[el];
        }
      }
    }
    for (ix1 = ix - jj; ix1 <= ix + jj; ix1 += step) {
      ix2 = ix1 & ib;
      for (iy1 = iy - jj + 1; iy1 <= iy + jj - 1; iy1++) {
        el = box[ix2][iy1 & ib];
        while (el != -1) {
          dd = fabs(xx[0] - x[0][el]);
          for (d = 1; d < dim; d++)
            if ((dy = fabs(xx[d] - x[d][el])) > dd)
              if ((dd = dy) > eps[K - 1])
                break;
          for (ik = 0; ik < K; ik++) {
            if (dd <= eps[ik])
              nx[ik]++;
          }
          el = lis[el];
        }
      }
    }
    jj++;
    if (jj == (bs / 2))
      break;
  }
  if (jj == (bs / 2)) {
    for (ix1 = ix - jj; ix1 < ix + jj; ix1++) {
      ix2 = ix1 & ib;
      iy1 = iy - jj;
      el = box[ix2][iy1 & ib];
      while (el != -1) {
        dd = fabs(xx[0] - x[0][el]);
        for (d = 1; d < dim; d++)
          if ((dy = fabs(xx[d] - x[d][el])) > dd)
            if ((dd = dy) > eps[K - 1])
              break;
        for (ik = 0; ik < K; ik++) {
          if (dd <= eps[ik])
            nx[ik]++;
        }
        el = lis[el];
      }
    }
    ix1 = ix - jj;
    ix2 = ix1 & ib;
    for (iy1 = iy - jj + 1; iy1 <= iy + jj - 1; iy1++) {
      el = box[ix2][iy1 & ib];
      while (el != -1) {
        dd = fabs(xx[0] - x[0][el]);
        for (d = 1; d < dim; d++)
          if ((dy = fabs(xx[d] - x[d][el])) > dd)
            if ((dd = dy) > eps[K - 1])
              break;
        for (ik = 0; ik < K; ik++) {
          if (dd <= eps[ik])
            nx[ik]++;
        }
        el = lis[el];
      }
    }
  }
  free(xx);
  for (ik = 0; ik < K; ik++)
    nx[ik] -= 1;
}
```