user: 请从给定的汇编指令推导出C源代码:

```asm
<quickSort>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x98,%rsp
  mov    %rdi,-0x98(%rbp)
  mov    %esi,-0x9c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x9c(%rbp),%edx
  movslq %edx,%rax
  sub    $0x1,%rax
  mov    %rax,-0x68(%rbp)
  movslq %edx,%rax
  mov    %rax,-0xb0(%rbp)
  movq   $0x0,-0xa8(%rbp)
  movslq %edx,%rax
  mov    %rax,-0xc0(%rbp)
  movq   $0x0,-0xb8(%rbp)
  movslq %edx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L84:
  cmp    %rdx,%rsp
  je     L44
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L84
L44:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L59
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L59:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x60(%rbp)
  movl   $0x0,-0x90(%rbp)
  mov    -0x9c(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x58(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L24:
  cmp    %rdx,%rsp
  je     L199
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L24
L199:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L138
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L138:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x50(%rbp)
  movl   $0x0,-0x8c(%rbp)
  mov    -0x9c(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x48(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r10
  mov    $0x0,%r11d
  movslq %eax,%rdx
  mov    %rdx,%r8
  mov    $0x0,%r9d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L15:
  cmp    %rdx,%rsp
  je     L212
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L15
L212:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L142
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L142:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0x88(%rbp)
  mov    -0x9c(%rbp),%eax
  sar    $0x2,%eax
  mov    %eax,-0x84(%rbp)
  cmpl   $0x1,-0x9c(%rbp)
  jle    L217
  mov    -0x98(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x78(%rbp)
  mov    -0x84(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x74(%rbp)
  mov    -0x9c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x70(%rbp)
  mov    -0x70(%rbp),%edx
  mov    -0x74(%rbp),%ecx
  mov    -0x78(%rbp),%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <findMedian@plt>
  mov    %eax,-0x6c(%rbp)
  mov    -0x9c(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x84(%rbp)
  jmp    L58
L102:
  mov    -0x84(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x6c(%rbp)
  jle    L256
  mov    -0x84(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x60(%rbp),%rax
  mov    -0x90(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  addl   $0x1,-0x90(%rbp)
  jmp    L95
L256:
  mov    -0x84(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x6c(%rbp)
  jge    L64
  mov    -0x84(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x40(%rbp),%rax
  mov    -0x88(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  addl   $0x1,-0x88(%rbp)
  jmp    L95
L64:
  mov    -0x84(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x50(%rbp),%rax
  mov    -0x8c(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  addl   $0x1,-0x8c(%rbp)
L95:
  subl   $0x1,-0x84(%rbp)
L58:
  cmpl   $0x0,-0x84(%rbp)
  jns    L102
  mov    -0x90(%rbp),%edx
  mov    -0x60(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <quickSort>
  mov    -0x88(%rbp),%edx
  mov    -0x40(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <quickSort>
  movl   $0x0,-0x84(%rbp)
  jmp    L216
L16:
  mov    -0x84(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x60(%rbp),%rax
  mov    -0x84(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,(%rcx)
  addl   $0x1,-0x84(%rbp)
L216:
  mov    -0x84(%rbp),%eax
  cmp    -0x90(%rbp),%eax
  jge    L222
  mov    -0x84(%rbp),%eax
  cmp    -0x9c(%rbp),%eax
  jl     L16
L222:
  movl   $0x0,-0x80(%rbp)
  jmp    L76
L219:
  mov    -0x84(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x50(%rbp),%rax
  mov    -0x80(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,(%rcx)
  addl   $0x1,-0x84(%rbp)
  addl   $0x1,-0x80(%rbp)
L76:
  mov    -0x80(%rbp),%eax
  cmp    -0x8c(%rbp),%eax
  jge    L224
  mov    -0x84(%rbp),%eax
  cmp    -0x9c(%rbp),%eax
  jl     L219
L224:
  movl   $0x0,-0x7c(%rbp)
  jmp    L3
L50:
  mov    -0x84(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x40(%rbp),%rax
  mov    -0x7c(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,(%rcx)
  addl   $0x1,-0x84(%rbp)
  addl   $0x1,-0x7c(%rbp)
L3:
  mov    -0x7c(%rbp),%eax
  cmp    -0x88(%rbp),%eax
  jge    L217
  mov    -0x84(%rbp),%eax
  cmp    -0x9c(%rbp),%eax
  jl     L50
L217:
  mov    %rbx,%rsp
  nop
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L211
  call   <__stack_chk_fail@plt>
L211:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

assistant: ```c
void quickSort(int *array, int length) {
  int pivot;
  int less[length];
  int lessLen = 0;
  int equal[length];
  int equalLen = 0;
  int greater[length];
  int greaterLen = 0;
  int i = length >> 2;
  int first, middle, last;
  if (length > 1) {
    first = array[0];
    middle = array[i];
    last = array[length - 1];
    pivot = findMedian(first, middle, last);
    for (i = length - 1; i >= 0; --i) {
      if (array[i] < pivot) {
        less[lessLen] = array[i];
        ++lessLen;
      } else if (array[i] > pivot) {
        greater[greaterLen] = array[i];
        ++greaterLen;
      } else {
        equal[equalLen] = array[i];
        ++equalLen;
      }
    }
    quickSort(less, lessLen);
    quickSort(greater, greaterLen);
    for (i = 0; i < lessLen && i < length; ++i)
      array[i] = less[i];
    for (int j = 0; j < equalLen && i < length; ++i, ++j)
      array[i] = equal[j];
    for (int k = 0; k < greaterLen && i < length; ++i, ++k)
      array[i] = greater[k];
  }
}
```