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

```asm
<zqSort>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,%r12
  mov    %esi,0xc(%rsp)
  mov    %rdx,%r13
  mov    %rcx,%r14
  cmp    $0x2,%esi
  ja     L156
L211:
  cmpl   $0x2,0xc(%rsp)
  jne    L49
  lea    0x8(%r12),%rsi
  mov    %r14,%rdx
  mov    %r12,%rdi
  call   *%r13
  test   %eax,%eax
  jle    L49
  mov    (%r12),%rax
  mov    0x8(%r12),%rdx
  mov    %rdx,(%r12)
  mov    %rax,0x8(%r12)
  jmp    L49
L171:
  mov    %r14,%rdx
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   *%r13
  test   %eax,%eax
  jle    L226
  mov    (%r12),%rax
  mov    (%rbx),%rdx
  mov    %rdx,(%r12)
  mov    %rax,(%rbx)
  jmp    L226
L155:
  mov    (%r12),%rax
  mov    0x0(%rbp),%rdx
  mov    %rdx,(%r12)
  mov    %rax,0x0(%rbp)
L49:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L125:
  cmp    %rbx,%rbp
  jae    L43
  add    $0x8,%rbp
L112:
  mov    %r14,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   *%r13
  test   %eax,%eax
  jg     L251
  jne    L125
  mov    0x0(%rbp),%rax
  mov    (%r15),%rdx
  mov    %rdx,0x0(%rbp)
  mov    %rax,(%r15)
  add    $0x8,%r15
  jmp    L125
L172:
  mov    0x0(%rbp),%rdx
  mov    (%rbx),%rcx
  mov    %rcx,0x0(%rbp)
  mov    %rdx,(%rbx)
  je     L269
  add    $0x8,%rbp
  sub    $0x8,%rbx
L269:
  cmp    %rbx,%rbp
  jb     L112
  jmp    L43
L251:
  cmp    %rbx,%rbp
  jae    L43
L52:
  mov    %r14,%rdx
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   *%r13
  test   %eax,%eax
  jns    L172
  sub    $0x8,%rbx
  cmp    %rbx,%rbp
  jb     L52
L43:
  mov    %r14,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   *%r13
  mov    %eax,%edx
  lea    0x8(%rbp),%rax
  test   %edx,%edx
  cmovle %rax,%rbp
  lea    -0x8(%rbp),%rax
  cmp    %r12,%r15
  jbe    L213
  cmp    %rax,%r15
  ja     L213
  mov    %r12,%rdx
L164:
  mov    (%rdx),%rcx
  mov    (%rax),%rsi
  mov    %rsi,(%rdx)
  mov    %rcx,(%rax)
  add    $0x8,%rdx
  sub    $0x8,%rax
  cmp    %rdx,%r15
  jbe    L213
  cmp    %rax,%r15
  jbe    L164
L213:
  mov    %rbp,%rbx
  sub    %r15,%rbx
  sar    $0x3,%rbx
  mov    %ebx,%esi
  mov    0xc(%rsp),%eax
  lea    (%r12,%rax,8),%rax
  sub    %rbp,%rax
  sar    $0x3,%rax
  mov    %eax,0xc(%rsp)
  cmp    %eax,%ebx
  jbe    L145
  mov    %r14,%rcx
  mov    %r13,%rdx
  mov    %eax,%esi
  mov    %rbp,%rdi
  call   <zqSort>
  mov    %ebx,0xc(%rsp)
L220:
  cmpl   $0x2,0xc(%rsp)
  jbe    L211
L156:
  mov    0xc(%rsp),%ecx
  lea    -0x1(%rcx),%eax
  lea    (%r12,%rax,8),%rbx
  mov    %ecx,%eax
  shr    %eax
  mov    %eax,%eax
  lea    (%r12,%rax,8),%rbp
  mov    %r14,%rdx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   *%r13
  test   %eax,%eax
  jle    L105
  mov    0x0(%rbp),%rax
  mov    (%rbx),%rdx
  mov    %rdx,0x0(%rbp)
  mov    %rax,(%rbx)
L105:
  mov    %r14,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   *%r13
  test   %eax,%eax
  jle    L171
  mov    0x0(%rbp),%rax
  mov    (%r12),%rdx
  mov    %rdx,0x0(%rbp)
  mov    %rax,(%r12)
L226:
  cmpl   $0x3,0xc(%rsp)
  je     L155
  lea    0x8(%r12),%rbp
  mov    %rbp,%r15
  jmp    L112
L145:
  mov    %r14,%rcx
  mov    %r13,%rdx
  mov    %r12,%rdi
  call   <zqSort>
  mov    %rbp,%r12
  jmp    L220
```

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;
    }
  }
}
```