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

```asm
<quickSort_parallel_internal_i_d>:
  endbr64
  push   %r15
  mov    %edx,%r11d
  push   %r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  mov    %ecx,%r12d
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %r8d,0xc(%rsp)
L24:
  lea    (%r11,%r12,1),%edx
  mov    %r12d,%ecx
  mov    %r11d,%ebx
  mov    %edx,%eax
  shr    $0x1f,%eax
  add    %edx,%eax
  sar    %eax
  cltq
  mov    0x0(%rbp,%rax,4),%r9d
  nopl   (%rax)
L8:
  cmp    %ecx,%ebx
  jg     L18
L118:
  movslq %ebx,%rdi
  lea    0x0(,%rdi,4),%rdx
  lea    0x0(%rbp,%rdx,1),%rsi
  mov    (%rsi),%r8d
  cmp    %r9d,%r8d
  jge    L40
  lea    0x1(%rbx),%eax
  lea    0x4(%rbp,%rdx,1),%rdx
  cltq
  xchg   %ax,%ax
L57:
  mov    (%rdx),%r8d
  mov    %rax,%rdi
  mov    %eax,%ebx
  mov    %rdx,%rsi
  lea    0x1(%rdi),%rax
  lea    0x4(%rdx),%rdx
  cmp    %r9d,%r8d
  jl     L57
  movslq %ecx,%r14
  lea    0x0(%rbp,%r14,4),%r15
  mov    (%r15),%r10d
  cmp    %r9d,%r10d
  jle    L124
L67:
  lea    -0x1(%rcx),%eax
  lea    -0x4(%rbp,%r14,4),%rdx
  cltq
  nopw   0x0(%rax,%rax,1)
L113:
  mov    (%rdx),%r10d
  mov    %eax,%ecx
  mov    %rdx,%r15
  mov    %rax,%r14
  sub    $0x4,%rdx
  sub    $0x1,%rax
  cmp    %r9d,%r10d
  jg     L113
L124:
  cmp    %ebx,%ecx
  jl     L8
L144:
  lea    0x0(%r13,%rdi,8),%rdx
  lea    0x0(%r13,%r14,8),%rax
  add    $0x1,%ebx
  sub    $0x1,%ecx
  movsd  (%rdx),%xmm0
  movsd  (%rax),%xmm1
  mov    %r10d,(%rsi)
  mov    %r8d,(%r15)
  movsd  %xmm1,(%rdx)
  movsd  %xmm0,(%rax)
  cmp    %ecx,%ebx
  jle    L118
L18:
  mov    %r12d,%eax
  sub    %r11d,%eax
  cmp    0xc(%rsp),%eax
  jge    L119
  cmp    %r11d,%ecx
  jg     L68
L29:
  cmp    %r12d,%ebx
  jge    L98
L127:
  mov    %ebx,%r11d
  jmp    L24
  nopl   0x0(%rax)
L40:
  movslq %ecx,%r14
  lea    0x0(%rbp,%r14,4),%r15
  mov    (%r15),%r10d
  cmp    %r10d,%r9d
  jl     L67
  jmp    L144
L98:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L68:
  mov    0xc(%rsp),%r8d
  mov    %r11d,%edx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <quickSort_parallel_internal_i_d>
  jmp    L29
L119:
  mov    0xc(%rsp),%r8d
  mov    %r11d,%edx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <quickSort_parallel_internal_i_d>
  jmp    L127
```

assistant: ```c
void quickSort_parallel_internal_i_d(int *key, double *value, int left, int right, int cutoff) {
  int i = left, j = right;
  int tmp;
  int pivot = key[(left + right) / 2];
  {
    while (i <= j) {
      while (key[i] < pivot)
        i++;
      while (key[j] > pivot)
        j--;
      if (i <= j) {
        tmp = key[i];
        key[i] = key[j];
        key[j] = tmp;
        double tmp_v = value[i];
        value[i] = value[j];
        value[j] = tmp_v;
        i++;
        j--;
      }
    }
  }
  if (((right - left) < cutoff)) {
    if (left < j) {
      quickSort_parallel_internal_i_d(key, value, left, j, cutoff);
    }
    if (i < right) {
      quickSort_parallel_internal_i_d(key, value, i, right, cutoff);
    }
  } else {
#pragma omp task
    { quickSort_parallel_internal_i_d(key, value, left, j, cutoff); }
#pragma omp task
    { quickSort_parallel_internal_i_d(key, value, i, right, cutoff); }
  }
}
```