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

```asm
<qsort2C>:
  endbr64
  push   %r15
  mov    %rdi,%r15
  push   %r14
  push   %r13
  push   %r12
  mov    %edx,%r12d
  push   %rbp
  mov    %ecx,%ebp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x28,%rsp
  mov    %r8d,0x1c(%rsp)
L89:
  cmp    %ebp,%r12d
  jge    L49
  mov    0x1c(%rsp),%eax
  test   %eax,%eax
  je     L98
L72:
  lea    0x0(%rbp,%r12,1),%eax
  mov    %r12d,%esi
  mov    %r15,%rdi
  mov    %eax,%r13d
  shr    $0x1f,%r13d
  add    %eax,%r13d
  sar    %r13d
  mov    %r13d,%edx
  call   <swapj@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %rbx,%rdi
  call   <swapm@plt>
  lea    0x1(%r12),%ecx
  cmp    %ecx,%ebp
  jl     L76
  movslq %r12d,%rax
  movslq %ecx,%r14
  mov    %r12d,%r13d
  lea    (%rbx,%rax,8),%rax
  mov    %rax,0x10(%rsp)
  jmp    L32
  cs nopw 0x0(%rax,%rax,1)
L53:
  add    $0x1,%r14
  cmp    %r14d,%ebp
  jl     L12
L32:
  movsd  (%rbx,%r14,8),%xmm0
  mov    %r14d,0x8(%rsp)
  call   <fabs@plt>
  mov    0x10(%rsp),%rdx
  mov    %rax,(%rsp)
  movsd  (%rdx),%xmm0
  call   <fabs@plt>
  cmp    %rax,(%rsp)
  jge    L53
  mov    0x8(%rsp),%edx
  add    $0x1,%r13d
  mov    %r15,%rdi
  add    $0x1,%r14
  mov    %r13d,%esi
  call   <swapj@plt>
  mov    0x8(%rsp),%edx
  mov    %r13d,%esi
  mov    %rbx,%rdi
  call   <swapm@plt>
  cmp    %r14d,%ebp
  jge    L32
L12:
  mov    %r12d,%esi
  mov    %r13d,%edx
  mov    %r15,%rdi
  call   <swapj@plt>
  mov    %r12d,%esi
  mov    %r13d,%edx
  mov    %rbx,%rdi
  call   <swapm@plt>
  mov    0x1c(%rsp),%r8d
  mov    %r12d,%edx
  mov    %rbx,%rsi
  lea    -0x1(%r13),%ecx
  mov    %r15,%rdi
  lea    0x1(%r13),%r12d
  call   <qsort2C>
  cmp    %ebp,%r12d
  jl     L72
L49:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L91:
  mov    %r9d,%edx
  mov    %r12d,%esi
  mov    %r15,%rdi
  mov    %r9d,(%rsp)
  call   <swapj@plt>
  mov    (%rsp),%edx
  mov    %r12d,%esi
  mov    %rbx,%rdi
  call   <swapm@plt>
  mov    (%rsp),%r9d
  mov    %r12d,%edx
  xor    %r8d,%r8d
  mov    %rbx,%rsi
  mov    %r15,%rdi
  lea    -0x1(%r9),%ecx
  call   <qsort2C>
  mov    (%rsp),%r9d
  lea    0x1(%r9),%r12d
  cmp    %ebp,%r12d
  jge    L49
L98:
  lea    0x0(%rbp,%r12,1),%eax
  mov    %r12d,%esi
  mov    %r15,%rdi
  mov    %eax,%r13d
  shr    $0x1f,%r13d
  add    %eax,%r13d
  sar    %r13d
  mov    %r13d,%edx
  call   <swapj@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %rbx,%rdi
  call   <swapm@plt>
  lea    0x1(%r12),%r13d
  cmp    %r13d,%ebp
  jl     L76
  movslq %r12d,%rax
  movslq %r13d,%r13
  mov    %r12d,%r9d
  lea    (%rbx,%rax,8),%rcx
  jmp    L16
  nopl   (%rax)
L94:
  add    $0x1,%r13
  cmp    %r13d,%ebp
  jl     L91
L16:
  movsd  (%rcx),%xmm0
  comisd (%rbx,%r13,8),%xmm0
  jbe    L94
  add    $0x1,%r9d
  mov    %r13d,%edx
  mov    %r15,%rdi
  mov    %rcx,0x8(%rsp)
  mov    %r9d,%esi
  mov    %r9d,(%rsp)
  call   <swapj@plt>
  mov    (%rsp),%esi
  mov    %r13d,%edx
  mov    %rbx,%rdi
  call   <swapm@plt>
  mov    0x8(%rsp),%rcx
  mov    (%rsp),%r9d
  jmp    L94
  nopl   (%rax)
L76:
  mov    %r12d,%edx
  mov    %r12d,%esi
  lea    -0x1(%r12),%ebp
  mov    %r15,%rdi
  call   <swapj@plt>
  mov    %r12d,%edx
  mov    %r12d,%esi
  mov    %rbx,%rdi
  call   <swapm@plt>
  jmp    L89
```

assistant: ```c
void qsort2C(int *ja, double *ma, int left, int right, int abval) {
  int i, last;
  if (left >= right)
    return;
  if (abval) {
    swapj(ja, left, (left + right) / 2);
    swapm(ma, left, (left + right) / 2);
    last = left;
    for (i = left + 1; i <= right; i++) {
      if (fabs(ma[i]) < fabs(ma[left])) {
        swapj(ja, ++last, i);
        swapm(ma, last, i);
      }
    }
    swapj(ja, left, last);
    swapm(ma, left, last);
    qsort2C(ja, ma, left, last - 1, abval);
    qsort2C(ja, ma, last + 1, right, abval);
  } else {
    swapj(ja, left, (left + right) / 2);
    swapm(ma, left, (left + right) / 2);
    last = left;
    for (i = left + 1; i <= right; i++) {
      if (ma[i] < ma[left]) {
        swapj(ja, ++last, i);
        swapm(ma, last, i);
      }
    }
    swapj(ja, left, last);
    swapm(ma, left, last);
    qsort2C(ja, ma, left, last - 1, abval);
    qsort2C(ja, ma, last + 1, right, abval);
  }
}
```