user: 请从给定的汇编指令推导出C源代码：

```asm
<findTopNCluster>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %rdi,0x40(%rsp)
  mov    %rsi,0x48(%rsp)
  mov    %edx,0x3c(%rsp)
  movsd  %xmm0,(%rsp)
  mov    %r9,0x50(%rsp)
  mov    0xb0(%rsp),%ebx
  test   %ebx,%ebx
  jle    L185
  mov    %rcx,%r15
  mov    %r8d,%r14d
  mov    %edx,%ebp
  test   %edx,%edx
  jle    L189
  mov    $0x0,%r11d
  mov    $0x0,%r10d
  mov    $0xffffffff,%r9d
  mov    $0xffffffff,%esi
  mov    %r8d,%r8d
  pxor   %xmm1,%xmm1
  jmp    L240
L126:
  mov    %eax,%r9d
  mov    %r10d,%esi
L143:
  add    $0x1,%rax
  cmp    %r8,%rax
  je     L258
L215:
  movsd  (%rdi,%rax,8),%xmm0
  comisd %xmm0,%xmm1
  jbe    L143
  test   %esi,%esi
  js     L126
  mov    %r14d,%edx
  imul   %esi,%edx
  add    %r9d,%edx
  movslq %edx,%rdx
  ucomisd (%r15,%rdx,8),%xmm0
  cmova  %eax,%r9d
  cmova  %r10d,%esi
  jmp    L143
L258:
  add    $0x1,%r10d
  add    %r14d,%r11d
  cmp    %r10d,%ebp
  je     L277
L240:
  test   %r14d,%r14d
  jle    L258
  movslq %r11d,%rax
  lea    (%r15,%rax,8),%rdi
  mov    $0x0,%eax
  jmp    L215
L189:
  mov    $0xffffffff,%r9d
  mov    $0xffffffff,%esi
L277:
  mov    0x50(%rsp),%rax
  mov    %esi,(%rax)
  mov    0xa0(%rsp),%rax
  mov    %r9d,(%rax)
  mov    %r14d,%eax
  imul   %esi,%eax
  add    %r9d,%eax
  cltq
  movsd  (%r15,%rax,8),%xmm0
  mov    0xa8(%rsp),%rax
  movsd  %xmm0,(%rax)
  movslq %esi,%rsi
  mov    0x40(%rsp),%rdi
  movsd  (%rdi,%rsi,8),%xmm6
  movsd  %xmm6,0x8(%rsp)
  mov    0x48(%rsp),%rax
  movsd  (%rax,%rsi,8),%xmm7
  movsd  %xmm7,0x10(%rsp)
  add    $0x1,%r9d
  pxor   %xmm0,%xmm0
  cvtsi2sd %r9d,%xmm0
  mulsd  (%rsp),%xmm0
  movsd  %xmm0,0x18(%rsp)
  cmp    $0x1,%ebx
  jle    L185
  mov    %ebx,%eax
  mov    %rax,0x58(%rsp)
  mov    0x3c(%rsp),%eax
  lea    -0x1(%rax),%eax
  lea    0x8(%rdi,%rax,8),%rax
  mov    %rax,0x20(%rsp)
  movq   $0x1,0x30(%rsp)
  mov    D7(%rip),%rbx
  jmp    L91
L160:
  call   <sqrt@plt>
  jmp    L68
L130:
  mov    %eax,%r9d
  mov    %r10d,%ecx
L186:
  add    $0x1,%rax
  cmp    %rax,%r8
  je     L222
L218:
  movsd  (%rdi,%rax,8),%xmm0
  pxor   %xmm2,%xmm2
  comisd %xmm0,%xmm2
  jbe    L186
  test   %ecx,%ecx
  js     L130
  mov    %r14d,%edx
  imul   %ecx,%edx
  add    %r9d,%edx
  movslq %edx,%rdx
  ucomisd (%r15,%rdx,8),%xmm0
  cmova  %eax,%r9d
  cmova  %r10d,%ecx
  jmp    L186
L222:
  add    $0x1,%r10d
  add    %r14d,%r11d
  cmp    %r10d,%ebp
  je     L152
L261:
  test   %r14d,%r14d
  jle    L222
  movslq %r11d,%rax
  lea    (%r15,%rax,8),%rdi
  mov    $0x0,%eax
  jmp    L218
L152:
  mov    0x50(%rsp),%rax
  mov    0x30(%rsp),%rdi
  mov    %ecx,(%rax,%rdi,4)
  mov    0xa0(%rsp),%rax
  mov    %r9d,(%rax,%rdi,4)
  cmp    $0xffffffff,%ecx
  je     L185
  mov    %r14d,%eax
  imul   %ecx,%eax
  add    %r9d,%eax
  cltq
  movsd  (%r15,%rax,8),%xmm0
  mov    0xa8(%rsp),%rsi
  mov    %rdi,%rax
  movsd  %xmm0,(%rsi,%rdi,8)
  movslq %ecx,%rcx
  mov    0x40(%rsp),%rdi
  movsd  (%rdi,%rcx,8),%xmm3
  movsd  %xmm3,0x8(%rsp)
  mov    0x48(%rsp),%rdi
  movsd  (%rdi,%rcx,8),%xmm4
  movsd  %xmm4,0x10(%rsp)
  add    $0x1,%r9d
  pxor   %xmm0,%xmm0
  cvtsi2sd %r9d,%xmm0
  mulsd  (%rsp),%xmm0
  movsd  %xmm0,0x18(%rsp)
  add    $0x1,%rax
  mov    %rax,0x30(%rsp)
  cmp    0x58(%rsp),%rax
  je     L185
L91:
  mov    0x30(%rsp),%eax
  cmpl   $0x0,0x3c(%rsp)
  jle    L131
  mov    0x48(%rsp),%r12
  mov    0x40(%rsp),%rbp
  mov    $0x0,%r13d
  lea    -0x1(%r14),%eax
  mov    %eax,0x38(%rsp)
  lea    0x8(%r15),%rax
  mov    %rax,0x28(%rsp)
L94:
  movsd  0x0(%rbp),%xmm0
  subsd  0x8(%rsp),%xmm0
  movsd  (%r12),%xmm1
  subsd  0x10(%rsp),%xmm1
  mulsd  %xmm0,%xmm0
  mulsd  %xmm1,%xmm1
  addsd  %xmm1,%xmm0
  pxor   %xmm5,%xmm5
  ucomisd %xmm0,%xmm5
  ja     L160
  sqrtsd %xmm0,%xmm0
L68:
  subsd  0x18(%rsp),%xmm0
  divsd  (%rsp),%xmm0
  call   <ceil@plt>
  sub    $0x1,%eax
  mov    $0x0,%edx
  cmovs  %edx,%eax
  cmp    %r14d,%eax
  jge    L180
  movslq %eax,%rcx
  movslq %r13d,%rdx
  add    %rdx,%rcx
  lea    (%r15,%rcx,8),%rdx
  mov    0x38(%rsp),%esi
  sub    %eax,%esi
  lea    (%rsi,%rcx,1),%rax
  mov    0x28(%rsp),%rdi
  lea    (%rdi,%rax,8),%rax
L57:
  mov    %rbx,(%rdx)
  add    $0x8,%rdx
  cmp    %rax,%rdx
  jne    L57
L180:
  add    $0x8,%rbp
  add    $0x8,%r12
  add    %r14d,%r13d
  cmp    0x20(%rsp),%rbp
  jne    L94
  mov    $0x0,%r11d
  mov    $0x0,%r10d
  mov    $0xffffffff,%r9d
  mov    $0xffffffff,%ecx
  mov    %r14d,%r8d
  mov    0x3c(%rsp),%ebp
  jmp    L261
L131:
  cltq
  mov    0x50(%rsp),%rbx
  movl   $0xffffffff,(%rbx,%rax,4)
  mov    0xa0(%rsp),%rbx
  movl   $0xffffffff,(%rbx,%rax,4)
L185:
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: parse_data
arguments: label: D7
type_infered: byte[8]

tool: {"D7": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

assistant: ```c
void findTopNCluster(double *x, double *y, int locCount, double *ll, double wSize, int wCount, int *center, int *radius, double *cLL, int nClusters) {
  if (nClusters < 1)
    return;
  int aCenter = -1;
  int aRadius = -1;
  for (int i = 0; i < locCount; i++) {
    for (int j = 0; j < wCount; j++) {
      if (ll[i * wCount + j] < 0) {
        if (aCenter < 0) {
          aCenter = i;
          aRadius = j;
        } else if (ll[i * wCount + j] > ll[aCenter * wCount + aRadius]) {
          aCenter = i;
          aRadius = j;
        }
      }
    }
  }
  center[0] = aCenter;
  radius[0] = aRadius;
  cLL[0] = ll[aCenter * wCount + aRadius];
  double lastX, lastY, lastRad;
  lastX = x[aCenter];
  lastY = y[aCenter];
  lastRad = (aRadius + 1) * wSize;
  double distance;
  int maxWindow;
  for (int c = 1; c < nClusters; c++) {
    for (int i = 0; i < locCount; i++) {
      distance = sqrt((x[i] - lastX) * (x[i] - lastX) + (y[i] - lastY) * (y[i] - lastY)) - lastRad;
      maxWindow = ceil(distance / wSize) - 1;
      if (maxWindow < 0)
        maxWindow = 0;
      for (int j = maxWindow; j < wCount; j++)
        ll[i * wCount + j] = 1;
    }
    aCenter = -1;
    aRadius = -1;
    for (int i = 0; i < locCount; i++) {
      for (int j = 0; j < wCount; j++) {
        if (ll[i * wCount + j] < 0) {
          if (aCenter < 0) {
            aCenter = i;
            aRadius = j;
          } else if (ll[i * wCount + j] > ll[aCenter * wCount + aRadius]) {
            aCenter = i;
            aRadius = j;
          }
        }
      }
    }
    center[c] = aCenter;
    radius[c] = aRadius;
    if (aCenter != -1)
      cLL[c] = ll[aCenter * wCount + aRadius];
    else
      break;
    lastX = x[aCenter];
    lastY = y[aCenter];
    lastRad = (aRadius + 1) * wSize;
  }
  return;
}
```