user: What would the C source look like for the assembly code provided here:

```asm
<zqSort>:
  endbr64
  push   %r15
  mov    %rdi,%r15
  push   %r14
  mov    %rcx,%r14
  push   %r13
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %esi,0xc(%rsp)
  cmp    $0x2,%esi
  jbe    L125
L118:
  mov    0xc(%rsp),%ecx
  mov    %r14,%rdx
  lea    -0x1(%rcx),%eax
  lea    (%r15,%rax,8),%rbx
  mov    %ecx,%eax
  shr    %eax
  mov    %rbx,%rsi
  lea    (%r15,%rax,8),%rbp
  mov    %rbp,%rdi
  call   *%r12
  test   %eax,%eax
  jle    L18
  mov    0x0(%rbp),%rax
  mov    (%rbx),%rdx
  mov    %rdx,0x0(%rbp)
  mov    %rax,(%rbx)
L18:
  mov    %r14,%rdx
  mov    %r15,%rsi
  mov    %rbp,%rdi
  call   *%r12
  test   %eax,%eax
  jle    L237
  mov    0x0(%rbp),%rax
  mov    (%r15),%rdx
  mov    %rdx,0x0(%rbp)
  mov    %rax,(%r15)
L260:
  cmpl   $0x3,0xc(%rsp)
  je     L34
L63:
  lea    0x8(%r15),%rbp
  mov    %rbp,%r13
  nopl   (%rax)
L24:
  mov    %r14,%rdx
  mov    %r15,%rsi
  mov    %rbp,%rdi
  call   *%r12
  test   %eax,%eax
  jg     L208
L264:
  jne    L100
  mov    0x0(%r13),%rdx
  mov    0x0(%rbp),%rax
  add    $0x8,%r13
  mov    %rdx,0x0(%rbp)
  mov    %rax,-0x8(%r13)
L100:
  cmp    %rbx,%rbp
  jae    L126
  add    $0x8,%rbp
  mov    %r14,%rdx
  mov    %r15,%rsi
  mov    %rbp,%rdi
  call   *%r12
  test   %eax,%eax
  jle    L264
L208:
  cmp    %rbx,%rbp
  jb     L110
  jmp    L126
  cs nopw 0x0(%rax,%rax,1)
L82:
  sub    $0x8,%rbx
  cmp    %rbx,%rbp
  jae    L126
L110:
  mov    %r14,%rdx
  mov    %rbx,%rsi
  mov    %r15,%rdi
  call   *%r12
  test   %eax,%eax
  js     L82
  mov    0x0(%rbp),%rax
  mov    (%rbx),%rdx
  mov    %rdx,0x0(%rbp)
  mov    %rax,(%rbx)
  je     L149
  add    $0x8,%rbp
  sub    $0x8,%rbx
L149:
  cmp    %rbx,%rbp
  jb     L24
  nopw   0x0(%rax,%rax,1)
L126:
  mov    %r14,%rdx
  mov    %r15,%rsi
  mov    %rbp,%rdi
  call   *%r12
  test   %eax,%eax
  jle    L30
  lea    -0x8(%rbp),%rax
L220:
  cmp    %r15,%r13
  jbe    L37
  mov    %r15,%rdx
  jmp    L225
  nopw   0x0(%rax,%rax,1)
L145:
  mov    (%rax),%rsi
  mov    (%rdx),%rcx
  add    $0x8,%rdx
  sub    $0x8,%rax
  mov    %rsi,-0x8(%rdx)
  mov    %rcx,0x8(%rax)
  cmp    %rdx,%r13
  jbe    L37
L225:
  cmp    %rax,%r13
  jbe    L145
L37:
  mov    0xc(%rsp),%eax
  mov    %rbp,%rbx
  sub    %r13,%rbx
  lea    (%r15,%rax,8),%rax
  sar    $0x3,%rbx
  sub    %rbp,%rax
  mov    %ebx,%esi
  sar    $0x3,%rax
  mov    %eax,0xc(%rsp)
  cmp    %eax,%ebx
  jbe    L42
  mov    0xc(%rsp),%esi
  mov    %r14,%rcx
  mov    %r12,%rdx
  mov    %rbp,%rdi
  call   <zqSort>
  mov    %ebx,0xc(%rsp)
L156:
  cmpl   $0x2,0xc(%rsp)
  ja     L118
L125:
  cmpl   $0x2,0xc(%rsp)
  je     L140
L193:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L237:
  mov    %r14,%rdx
  mov    %rbx,%rsi
  mov    %r15,%rdi
  call   *%r12
  test   %eax,%eax
  jle    L260
  mov    (%r15),%rax
  mov    (%rbx),%rdx
  cmpl   $0x3,0xc(%rsp)
  mov    %rdx,(%r15)
  mov    %rax,(%rbx)
  jne    L63
L34:
  mov    (%r15),%rax
  mov    0x0(%rbp),%rdx
  mov    %rdx,(%r15)
  mov    %rax,0x0(%rbp)
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L30:
  mov    %rbp,%rax
  add    $0x8,%rbp
  jmp    L220
L42:
  mov    %r15,%rdi
  mov    %r14,%rcx
  mov    %r12,%rdx
  mov    %rbp,%r15
  call   <zqSort>
  jmp    L156
L140:
  lea    0x8(%r15),%rsi
  mov    %r14,%rdx
  mov    %r15,%rdi
  call   *%r12
  test   %eax,%eax
  jle    L193
  mov    (%r15),%rax
  mov    0x8(%r15),%rdx
  mov    %rax,0x8(%r15)
  mov    %rdx,(%r15)
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void zqSort(void *base, unsigned nElem, int (*Fcmp)(void *, void *, void *), void *pG) {
  long *pivotP, *leftP, *rightP, *pivotEnd, *pivotTemp, *leftTemp;
  unsigned lNum;
  int retval;
  pivotP = (long *)base;
  while (1) {
    if (nElem <= 2) {
      if (nElem == 2) {
        if (Fcmp(pivotP, rightP = 1 + pivotP, pG) > 0) {
          long t = *(pivotP);
          *(pivotP) = *(rightP);
          *(rightP) = t;
        };
      }
      return;
    }
    rightP = (nElem - 1) + pivotP;
    leftP = (nElem >> 1) + pivotP;
    if (Fcmp(leftP, rightP, pG) > 0) {
      {
        long t = *(leftP);
        *(leftP) = *(rightP);
        *(rightP) = t;
      };
    }
    if (Fcmp(leftP, pivotP, pG) > 0) {
      {
        long t = *(leftP);
        *(leftP) = *(pivotP);
        *(pivotP) = t;
      };
    } else if (Fcmp(pivotP, rightP, pG) > 0) {
      {
        long t = *(pivotP);
        *(pivotP) = *(rightP);
        *(rightP) = t;
      };
    }
    if (nElem == 3) {
      {
        long t = *(pivotP);
        *(pivotP) = *(leftP);
        *(leftP) = t;
      };
      return;
    }
    leftP = pivotEnd = pivotP + 1;
    do {
      while ((retval = Fcmp(leftP, pivotP, pG)) <= 0) {
        if (retval == 0) {
          {
            long t = *(leftP);
            *(leftP) = *(pivotEnd);
            *(pivotEnd) = t;
          };
          pivotEnd++;
        }
        if (leftP < rightP)
          leftP++;
        else
          goto qBreak;
      }
      while (leftP < rightP) {
        if ((retval = Fcmp(pivotP, rightP, pG)) < 0)
          rightP--;
        else {
          {
            long t = *(leftP);
            *(leftP) = *(rightP);
            *(rightP) = t;
          };
          if (retval != 0) {
            leftP++;
            rightP--;
          }
          break;
        }
      }
    } while (leftP < rightP);
  qBreak:
    if (Fcmp(leftP, pivotP, pG) <= 0)
      leftP = leftP + 1;
    leftTemp = leftP - 1;
    pivotTemp = pivotP;
    while ((pivotTemp < pivotEnd) && (leftTemp >= pivotEnd)) {
      {
        long t = *(pivotTemp);
        *(pivotTemp) = *(leftTemp);
        *(leftTemp) = t;
      };
      pivotTemp++;
      leftTemp--;
    }
    lNum = (leftP - pivotEnd);
    nElem = ((nElem + pivotP) - leftP);
    if (nElem < lNum) {
      zqSort(leftP, nElem, Fcmp, pG);
      nElem = lNum;
    } else {
      zqSort(pivotP, lNum, Fcmp, pG);
      pivotP = leftP;
    }
  }
}
```