user: Translate the below assembly code into C programming language:

```asm
<kmeanspp_multi>:
  endbr64
  push   %r15
  mov    %r8d,%r15d
  push   %r14
  push   %r13
  mov    %rdi,%r13
  lea    0x0(,%r8,8),%edi
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %r9d,%ebx
  sub    $0x78,%rsp
  mov    0xb8(%rsp),%r12d
  mov    %rsi,0x38(%rsp)
  mov    %edx,0x30(%rsp)
  mov    0xb0(%rsp),%r14d
  mov    %ecx,0x14(%rsp)
  mov    %r8d,0x68(%rsp)
  call   <malloc@plt>
  mov    %rbp,0x28(%rsp)
  mov    %rax,0x48(%rsp)
  mov    %ebx,%eax
  imul   %r12d,%eax
  mov    %eax,0x34(%rsp)
  cmp    $0x1,%r15d
  jle    L275
  mov    %r15d,%edi
  imul   %eax,%edi
  shl    $0x3,%edi
  call   <malloc@plt>
  mov    %rax,0x28(%rsp)
L275:
  xor    %eax,%eax
  call   <omp_get_thread_num@plt>
  mov    %eax,%ebp
  mov    0x34(%rsp),%eax
  lea    0x0(,%rax,8),%edi
  call   <malloc@plt>
  mov    0x14(%rsp),%ecx
  mov    %rax,%r15
  test   %ecx,%ecx
  jle    L276
  mov    %ebx,%edi
  mov    0x48(%rsp),%rsi
  movslq %ebp,%rax
  mov    0x28(%rsp),%r9
  imul   %r12d,%edi
  lea    0x8(%r15),%rcx
  lea    (%rsi,%rax,8),%rax
  mov    %rax,0x40(%rsp)
  imul   %edi,%ebp
  mov    %edi,0x58(%rsp)
  lea    -0x1(%rdi),%edx
  movslq %ebp,%rax
  shl    $0x3,%rax
  lea    (%r9,%rax,1),%rsi
  cmp    %rcx,%rsi
  je     L49
  cmp    $0x2,%edx
  jbe    L49
  mov    %edi,%eax
  and    $0xfffffffe,%edi
  sub    %r15,%rsi
  shr    %eax
  mov    %edi,0x5c(%rsp)
  sub    $0x1,%eax
  mov    %rsi,0x60(%rsp)
  add    $0x1,%rax
  shl    $0x4,%rax
  add    %r15,%rax
  mov    %rax,0x50(%rsp)
  movslq %edi,%rax
  lea    (%r15,%rax,8),%r11
  lea    0x0(%rbp,%rdi,1),%eax
  xor    %ebp,%ebp
  cltq
  lea    (%r9,%rax,8),%r10
  jmp    L31
  nopl   0x0(%rax)
L138:
  add    $0x1,%ebp
  cmp    %ebp,0x14(%rsp)
  je     L276
L31:
  mov    0x30(%rsp),%edx
  mov    %r12d,%r9d
  mov    %r14d,%r8d
  mov    %ebx,%ecx
  mov    %r15,%rsi
  mov    %r13,%rdi
  mov    %r10,0x8(%rsp)
  mov    %r11,(%rsp)
  call   <kmeanspp@plt>
  mov    %r12d,%r8d
  mov    %r14d,%ecx
  mov    %ebx,%edx
  mov    %r15,%rsi
  mov    %r13,%rdi
  call   <model_variance@plt>
  test   %ebp,%ebp
  mov    (%rsp),%r11
  mov    0x8(%rsp),%r10
  je     L227
  movsd  0x18(%rsp),%xmm3
  comisd %xmm0,%xmm3
  jbe    L138
L227:
  mov    0x40(%rsp),%rax
  mov    0x34(%rsp),%edx
  movsd  %xmm0,(%rax)
  test   %edx,%edx
  jle    L172
  mov    0x50(%rsp),%rdx
  mov    0x60(%rsp),%rcx
  mov    %r15,%rax
  nop
L89:
  movupd (%rax),%xmm2
  movups %xmm2,(%rcx,%rax,1)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L89
  mov    0x5c(%rsp),%esi
  cmp    %esi,0x58(%rsp)
  je     L172
  movsd  (%r11),%xmm1
  movsd  %xmm1,(%r10)
L172:
  movsd  %xmm0,0x18(%rsp)
  add    $0x1,%ebp
  cmp    %ebp,0x14(%rsp)
  jne    L31
L276:
  mov    %r15,%rdi
  call   <free@plt>
  xor    %eax,%eax
  cmpl   $0x1,0x68(%rsp)
  mov    0x48(%rsp),%rdx
  jle    L40
  mov    0x6c(%rsp),%ecx
  mov    0x68(%rsp),%esi
  jmp    L290
  nopl   0x0(%rax)
L25:
  movsd  0x20(%rsp),%xmm4
  comisd %xmm0,%xmm4
  minsd  %xmm4,%xmm0
  cmova  %eax,%ecx
  add    $0x1,%eax
  movsd  %xmm0,0x20(%rsp)
  add    $0x8,%rdx
  cmp    %eax,%esi
  je     L96
L290:
  movsd  (%rdx),%xmm0
  test   %eax,%eax
  jne    L25
  add    $0x1,%eax
  xor    %ecx,%ecx
  movsd  %xmm0,0x20(%rsp)
  add    $0x8,%rdx
  cmp    %eax,%esi
  jne    L290
L96:
  mov    0x34(%rsp),%r9d
  test   %r9d,%r9d
  jle    L40
  mov    %ecx,%eax
  mov    0x38(%rsp),%rdi
  imul   %ebx,%eax
  mov    0x28(%rsp),%rbx
  imul   %r12d,%eax
  movslq %eax,%rcx
  lea    0x8(,%rcx,8),%rdx
  lea    (%rbx,%rdx,1),%rsi
  cmp    %rsi,%rdi
  je     L37
  lea    -0x1(%r9),%esi
  cmp    $0x2,%esi
  jbe    L37
  shr    %r9d
  lea    -0x8(%rbx,%rdx,1),%rsi
  xor    %edx,%edx
  mov    %r9d,%ecx
  shl    $0x4,%rcx
  nopl   0x0(%rax)
L270:
  movupd (%rsi,%rdx,1),%xmm5
  movups %xmm5,(%rdi,%rdx,1)
  add    $0x10,%rdx
  cmp    %rdx,%rcx
  jne    L270
  mov    0x34(%rsp),%ebx
  mov    %ebx,%edx
  and    $0xfffffffe,%edx
  and    $0x1,%ebx
  je     L40
  mov    0x28(%rsp),%rsi
  add    %edx,%eax
  cltq
  movsd  (%rsi,%rax,8),%xmm0
  mov    0x38(%rsp),%rax
  movsd  %xmm0,(%rax,%rdx,8)
L40:
  mov    0x28(%rsp),%rdi
  call   <free@plt>
  mov    0x48(%rsp),%rdi
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1090 <free@plt>
L37:
  mov    0x28(%rsp),%rbx
  mov    0x34(%rsp),%eax
  xor    %edx,%edx
  mov    0x38(%rsp),%rsi
  lea    (%rbx,%rcx,8),%rcx
  xchg   %ax,%ax
L139:
  movsd  (%rcx,%rdx,8),%xmm0
  movsd  %xmm0,(%rsi,%rdx,8)
  add    $0x1,%rdx
  cmp    %rdx,%rax
  jne    L139
  jmp    L40
L49:
  mov    0x28(%rsp),%rsi
  sub    %r15,%rax
  lea    0x8(%r15,%rdx,8),%r10
  xor    %r11d,%r11d
  mov    %r10,0x8(%rsp)
  lea    (%rsi,%rax,1),%rbp
  mov    %rbp,(%rsp)
  mov    %r11d,%ebp
  jmp    L286
  nopw   0x0(%rax,%rax,1)
L82:
  add    $0x1,%ebp
  cmp    %ebp,0x14(%rsp)
  je     L276
L286:
  mov    0x30(%rsp),%edx
  mov    %r12d,%r9d
  mov    %r14d,%r8d
  mov    %ebx,%ecx
  mov    %r15,%rsi
  mov    %r13,%rdi
  call   <kmeanspp@plt>
  mov    %r12d,%r8d
  mov    %r14d,%ecx
  mov    %ebx,%edx
  mov    %r15,%rsi
  mov    %r13,%rdi
  call   <model_variance@plt>
  movapd %xmm0,%xmm1
  test   %ebp,%ebp
  je     L27
  movsd  0x18(%rsp),%xmm6
  comisd %xmm0,%xmm6
  jbe    L82
L27:
  mov    0x40(%rsp),%rax
  movsd  %xmm1,(%rax)
  mov    0x34(%rsp),%eax
  test   %eax,%eax
  jle    L173
  mov    (%rsp),%r11
  mov    0x8(%rsp),%r10
  mov    %r15,%rax
  nopl   0x0(%rax,%rax,1)
L243:
  movsd  (%rax),%xmm0
  movsd  %xmm0,(%r11,%rax,1)
  add    $0x8,%rax
  cmp    %r10,%rax
  jne    L243
L173:
  movsd  %xmm1,0x18(%rsp)
  jmp    L82
```

assistant: ```c
void kmeanspp_multi(double *data, double *centroids, int n_samples, int n_runs, int n_jobs, int k, int N, int D) {
  double *all_centroids;
  double *all_variances = (double *)malloc(n_jobs * sizeof(double));
  if (n_jobs > 1) {
    all_centroids = (double *)malloc(k * D * n_jobs * sizeof(double));
  } else {
    all_centroids = centroids;
  }
#pragma omp parallel shared(all_centroids, all_variances, data, distance_metric) num_threads(n_jobs)
  {
    int id = omp_get_thread_num();
    double minimum_variance, cur_variance;
    double *current_centroid = (double *)malloc(k * D * sizeof(double));
    int local_iter = 0;
#pragma omp for
    for (int i = 0; i < n_runs; i++) {
      kmeanspp(data, current_centroid, n_samples, k, N, D);
      cur_variance = model_variance(data, current_centroid, k, N, D);
      if (local_iter == 0 || cur_variance < minimum_variance) {
        minimum_variance = cur_variance;
        all_variances[id] = cur_variance;
        for (int j = 0; j < k * D; j++) {
          all_centroids[id * D * k + j] = current_centroid[j];
        }
      }
      local_iter++;
    }
    free(current_centroid);
    do {
      ;
    } while (0);
  }
  if (n_jobs > 1) {
    double min_variance;
    int min_variance_index;
    do {
      ;
    } while (0);
    for (int i = 0; i < n_jobs; i++) {
      do {
        ;
      } while (0);
      if (i == 0 || all_variances[i] < min_variance) {
        min_variance = all_variances[i];
        min_variance_index = i;
      }
    }
    do {
      ;
    } while (0);
    for (int i = 0; i < k * D; i++) {
      centroids[i] = all_centroids[min_variance_index * k * D + i];
    }
  }
  free(all_centroids);
  free(all_variances);
}
```