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

```asm
<mergecb>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %rdx,-0x68(%rbp)
  mov    %ecx,-0x6c(%rbp)
  mov    %r8d,-0x70(%rbp)
  movss  %xmm0,-0x74(%rbp)
  mov    %r9d,-0x78(%rbp)
  cmpl   $0x1,-0x70(%rbp)
  jne    L5
  mov    $0x1,%eax
  jmp    L21
L5:
  mov    -0x70(%rbp),%eax
  mov    $0x4,%esi
  mov    %eax,%edi
  call   <calloc@plt>
  mov    %rax,-0x38(%rbp)
  movl   $0x0,-0x44(%rbp)
  jmp    L191
L32:
  mov    -0x44(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  add    $0x1,%edx
  mov    %edx,(%rax)
  addl   $0x1,-0x44(%rbp)
L191:
  mov    -0x44(%rbp),%eax
  cmp    -0x6c(%rbp),%eax
  jl     L32
  mov    -0x70(%rbp),%edx
  mov    -0x70(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <fmatrix@plt>
  mov    %rax,-0x30(%rbp)
  mov    -0x70(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x40(%rbp)
  movl   $0x0,-0x4c(%rbp)
  jmp    L146
L180:
  mov    -0x4c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x48(%rbp)
  jmp    L82
L167:
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rcx
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    -0x4c(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rsi
  mov    -0x30(%rbp),%rdx
  add    %rsi,%rdx
  mov    (%rdx),%rsi
  mov    -0x48(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x2,%rdx
  lea    (%rsi,%rdx,1),%rbx
  mov    -0x78(%rbp),%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <distance2@plt>
  movd   %xmm0,%eax
  mov    %eax,(%rbx)
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x48(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rax,%rdx
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rcx
  mov    -0x4c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rcx,%rax
  movss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x48(%rbp)
L82:
  mov    -0x48(%rbp),%eax
  cmp    -0x70(%rbp),%eax
  jl     L167
  addl   $0x1,-0x4c(%rbp)
L146:
  mov    -0x4c(%rbp),%eax
  cmp    -0x40(%rbp),%eax
  jl     L180
  movss  -0x74(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  comiss %xmm1,%xmm0
  jbe    L120
  mov    -0x78(%rbp),%edx
  mov    -0x70(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <fmatrix@plt>
  mov    %rax,-0x28(%rbp)
  movl   $0x0,-0x4c(%rbp)
  jmp    L184
L173:
  movl   $0x0,-0x48(%rbp)
  jmp    L59
L35:
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x48(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rax,%rdx
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rcx
  mov    -0x48(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rcx,%rax
  movss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x48(%rbp)
L59:
  mov    -0x48(%rbp),%eax
  cmp    -0x78(%rbp),%eax
  jl     L35
  addl   $0x1,-0x4c(%rbp)
L184:
  mov    -0x4c(%rbp),%eax
  cmp    -0x70(%rbp),%eax
  jl     L173
  mov    -0x70(%rbp),%eax
  mov    $0x4,%esi
  mov    %eax,%edi
  call   <calloc@plt>
  mov    %rax,-0x20(%rbp)
  movl   $0x0,-0x4c(%rbp)
  jmp    L129
L12:
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    -0x4c(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x20(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x4c(%rbp)
L129:
  mov    -0x4c(%rbp),%eax
  cmp    -0x70(%rbp),%eax
  jl     L12
  mov    -0x70(%rbp),%edx
  mov    -0x70(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <fmatrix@plt>
  mov    %rax,-0x18(%rbp)
  movl   $0x0,-0x4c(%rbp)
  jmp    L111
L41:
  movl   $0x0,-0x48(%rbp)
  jmp    L176
L33:
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x48(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rax,%rdx
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rcx
  mov    -0x48(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rcx,%rax
  movss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x48(%rbp)
L176:
  mov    -0x48(%rbp),%eax
  cmp    -0x70(%rbp),%eax
  jl     L33
  addl   $0x1,-0x4c(%rbp)
L111:
  mov    -0x4c(%rbp),%eax
  cmp    -0x70(%rbp),%eax
  jl     L41
  cmpl   $0x3,-0x78(%rbp)
  jne    L199
  movss  D2(%rip),%xmm0
  movss  %xmm0,-0x74(%rbp)
  jmp    L136
L199:
  cmpl   $0x1,-0x78(%rbp)
  jne    L136
  movss  D22(%rip),%xmm0
  movss  %xmm0,-0x74(%rbp)
L136:
  mov    -0x70(%rbp),%r9d
  mov    -0x6c(%rbp),%r8d
  mov    -0x68(%rbp),%rcx
  mov    -0x28(%rbp),%rdx
  mov    -0x58(%rbp),%rsi
  mov    -0x18(%rbp),%rax
  push   $0x1
  push   -0x20(%rbp)
  mov    -0x78(%rbp),%edi
  push   %rdi
  lea    -0x74(%rbp),%rdi
  push   %rdi
  mov    %rax,%rdi
  call   <mergecb1@plt>
  add    $0x20,%rsp
  mov    -0x70(%rbp),%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <free_fmatrix@plt>
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x70(%rbp),%edx
  mov    -0x18(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <free_fmatrix@plt>
L120:
  mov    -0x74(%rbp),%eax
  movd   %eax,%xmm0
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x70(%rbp),%r9d
  mov    -0x6c(%rbp),%r8d
  mov    -0x68(%rbp),%rcx
  mov    -0x60(%rbp),%rdx
  mov    -0x58(%rbp),%rsi
  mov    -0x30(%rbp),%rax
  push   $0x0
  push   -0x38(%rbp)
  mov    -0x78(%rbp),%edi
  push   %rdi
  lea    -0x74(%rbp),%rdi
  push   %rdi
  mov    %rax,%rdi
  call   <mergecb1@plt>
  add    $0x20,%rsp
  mov    %eax,-0x3c(%rbp)
  mov    -0x70(%rbp),%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <free_fmatrix@plt>
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x3c(%rbp),%eax
L21:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D2
data_type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D22
data_type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D0
data_type: string

tool: {"D2": [0x00,0x00,0xc8,0x43]}

tool: {"D22": [0x00,0x00,0x48,0x44]}

tool: D0: thresh %f 

assistant: ```c
int mergecb(float *B, float **cb, unsigned char *P, int npt, int N, float thresh, int dim) {
  int i, j, newN, *count, l, ei, *count2;
  float **dist, **dist2, **cb2;
  if (N == 1)
    return 1;
  count = (int *)calloc(N, sizeof(int));
  for (l = 0; l < npt; l++)
    count[P[l]]++;
  dist = (float **)fmatrix(N, N);
  ei = N - 1;
  for (i = 0; i < ei; i++) {
    for (j = i + 1; j < N; j++) {
      dist[i][j] = distance2(cb[i], cb[j], dim);
      dist[j][i] = dist[i][j];
    }
  }
  if (thresh < 0) {
    cb2 = (float **)fmatrix(N, dim);
    for (i = 0; i < N; i++)
      for (j = 0; j < dim; j++)
        cb2[i][j] = cb[i][j];
    count2 = (int *)calloc(N, sizeof(int));
    for (i = 0; i < N; i++)
      count2[i] = count[i];
    dist2 = (float **)fmatrix(N, N);
    for (i = 0; i < N; i++)
      for (j = 0; j < N; j++)
        dist2[i][j] = dist[i][j];
    if (dim == 3)
      thresh = 400;
    else if (dim == 1)
      thresh = 800;
    mergecb1(dist2, B, cb2, P, npt, N, &thresh, dim, count2, 1);
    free_fmatrix(cb2, N);
    free(count2);
    free_fmatrix(dist2, N);
  }
  printf("thresh %f ", thresh);
  newN = mergecb1(dist, B, cb, P, npt, N, &thresh, dim, count, 0);
  free_fmatrix(dist, N);
  free(count);
  return newN;
}
```