user: Translate the below assembly code into C programming language:

```asm
<QuickSort>:
  endbr64
  push   %r15
  movslq %edx,%rax
  mov    %rdi,%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %esi,%ebx
  sub    $0xa8,%rsp
  mov    %esi,0x34(%rsp)
  mov    %eax,0x68(%rsp)
  mov    %rax,0x90(%rsp)
L572:
  mov    0x68(%rsp),%ecx
  mov    %ebx,%edx
  mov    %ebx,%edi
  lea    0x1(%rbx),%r9d
  add    %ecx,%edx
  mov    %edx,%eax
  shr    $0x1f,%eax
  add    %edx,%eax
  mov    %ecx,%edx
  sar    %eax
  cltq
  mov    (%r15,%rax,4),%esi
  movslq %ebx,%rax
  lea    (%r15,%rax,4),%r8
  mov    0x90(%rsp),%rax
L832:
  mov    (%r8),%r11d
  lea    (%r15,%rax,4),%r10
  mov    %edi,%ebx
  mov    (%r10),%ecx
  cmp    %esi,%r11d
  jl     L433
  cmp    %ecx,%esi
  jge    L411
  lea    -0x4(%r15,%rax,4),%rax
  nopl   (%rax)
L688:
  mov    %rax,%r10
  mov    (%rax),%ecx
  sub    $0x4,%rax
  sub    $0x1,%edx
  cmp    %esi,%ecx
  jg     L688
L411:
  cmp    %edx,%edi
  jle    L51
L669:
  mov    %ebx,0x6c(%rsp)
  mov    %edx,0x44(%rsp)
  cmp    %edx,0x34(%rsp)
  jl     L273
L142:
  mov    0x68(%rsp),%ebx
  cmp    %ebx,0x34(%rsp)
  jge    L159
  mov    0x6c(%rsp),%eax
  mov    %eax,0x34(%rsp)
  mov    %eax,%ebx
  jmp    L572
L51:
  sub    $0x1,%edx
  mov    %ecx,(%r8)
  mov    %r9d,%ebx
  mov    %r11d,(%r10)
  cmp    %edx,%r9d
  jg     L669
  movslq %edx,%rax
L433:
  add    $0x4,%r8
  add    $0x1,%r9d
  add    $0x1,%edi
  jmp    L832
L273:
  mov    0x34(%rsp),%eax
  mov    %eax,0x24(%rsp)
  movslq 0x44(%rsp),%rax
  mov    0x24(%rsp),%ebx
  mov    %rax,0x88(%rsp)
L848:
  mov    0x44(%rsp),%ecx
  mov    %ebx,%edx
  mov    %ebx,%edi
  lea    0x1(%rbx),%r9d
  add    %ecx,%edx
  mov    %edx,%eax
  shr    $0x1f,%eax
  add    %edx,%eax
  mov    %ecx,%edx
  sar    %eax
  cltq
  mov    (%r15,%rax,4),%esi
  movslq %ebx,%rax
  lea    (%r15,%rax,4),%r8
  mov    0x88(%rsp),%rax
  nop
L798:
  mov    (%r8),%r11d
  lea    (%r15,%rax,4),%r10
  mov    %edi,%ebx
  mov    (%r10),%ecx
  cmp    %r11d,%esi
  jg     L683
  cmp    %ecx,%esi
  jge    L496
  lea    -0x4(%r15,%rax,4),%rax
  nopw   0x0(%rax,%rax,1)
L706:
  mov    %rax,%r10
  mov    (%rax),%ecx
  sub    $0x4,%rax
  sub    $0x1,%edx
  cmp    %ecx,%esi
  jl     L706
L496:
  cmp    %edx,%edi
  jle    L122
L518:
  mov    %ebx,0x70(%rsp)
  mov    %edx,0x48(%rsp)
  cmp    %edx,0x24(%rsp)
  jl     L375
L845:
  mov    0x44(%rsp),%ebx
  cmp    %ebx,0x24(%rsp)
  jge    L142
  mov    0x70(%rsp),%eax
  mov    %eax,0x24(%rsp)
  mov    %eax,%ebx
  jmp    L848
L122:
  sub    $0x1,%edx
  mov    %ecx,(%r8)
  mov    %r9d,%ebx
  mov    %r11d,(%r10)
  cmp    %edx,%r9d
  jg     L518
  movslq %edx,%rax
L683:
  add    $0x4,%r8
  add    $0x1,%r9d
  add    $0x1,%edi
  jmp    L798
L375:
  mov    0x24(%rsp),%eax
  mov    %eax,0x28(%rsp)
  movslq 0x48(%rsp),%rax
  mov    0x28(%rsp),%ebx
  mov    %rax,0x80(%rsp)
L467:
  mov    0x48(%rsp),%ecx
  mov    %ebx,%edx
  mov    %ebx,%edi
  lea    0x1(%rbx),%r9d
  add    %ecx,%edx
  mov    %edx,%eax
  shr    $0x1f,%eax
  add    %edx,%eax
  mov    %ecx,%edx
  sar    %eax
  cltq
  mov    (%r15,%rax,4),%esi
  movslq %ebx,%rax
  lea    (%r15,%rax,4),%r8
  mov    0x80(%rsp),%rax
  nopw   0x0(%rax,%rax,1)
L253:
  mov    (%r8),%r11d
  lea    (%r15,%rax,4),%r10
  mov    %edi,%ebx
  mov    (%r10),%ecx
  cmp    %r11d,%esi
  jg     L40
  cmp    %ecx,%esi
  jge    L256
  lea    -0x4(%r15,%rax,4),%rax
  nopw   0x0(%rax,%rax,1)
L638:
  mov    %rax,%r10
  mov    (%rax),%ecx
  sub    $0x4,%rax
  sub    $0x1,%edx
  cmp    %ecx,%esi
  jl     L638
L256:
  cmp    %edx,%edi
  jle    L783
L408:
  mov    %ebx,0x74(%rsp)
  mov    %edx,0x4c(%rsp)
  cmp    %edx,0x28(%rsp)
  jl     L283
L822:
  mov    0x48(%rsp),%ebx
  cmp    %ebx,0x28(%rsp)
  jge    L845
  mov    0x74(%rsp),%eax
  mov    %eax,0x28(%rsp)
  mov    %eax,%ebx
  jmp    L467
L783:
  sub    $0x1,%edx
  mov    %ecx,(%r8)
  mov    %r9d,%ebx
  mov    %r11d,(%r10)
  cmp    %edx,%r9d
  jg     L408
  movslq %edx,%rax
L40:
  add    $0x4,%r8
  add    $0x1,%r9d
  add    $0x1,%edi
  jmp    L253
L283:
  mov    0x28(%rsp),%eax
  mov    %eax,0x2c(%rsp)
  movslq 0x4c(%rsp),%rax
  mov    0x2c(%rsp),%ebx
  mov    %rax,0x78(%rsp)
L825:
  mov    0x4c(%rsp),%ecx
  mov    %ebx,%edx
  mov    %ebx,%edi
  lea    0x1(%rbx),%r9d
  add    %ecx,%edx
  mov    %edx,%eax
  shr    $0x1f,%eax
  add    %edx,%eax
  mov    %ecx,%edx
  sar    %eax
  cltq
  mov    (%r15,%rax,4),%esi
  movslq %ebx,%rax
  lea    (%r15,%rax,4),%r8
  mov    0x78(%rsp),%rax
  nopl   0x0(%rax)
L275:
  mov    (%r8),%r11d
  lea    (%r15,%rax,4),%r10
  mov    %edi,%ebx
  mov    (%r10),%ecx
  cmp    %r11d,%esi
  jg     L397
  cmp    %ecx,%esi
  jge    L790
  lea    -0x4(%r15,%rax,4),%rax
  nopw   0x0(%rax,%rax,1)
L258:
  mov    %rax,%r10
  mov    (%rax),%ecx
  sub    $0x4,%rax
  sub    $0x1,%edx
  cmp    %ecx,%esi
  jl     L258
L790:
  cmp    %edx,%edi
  jle    L684
L343:
  mov    %ebx,0x98(%rsp)
  mov    %edx,0x30(%rsp)
  cmp    %edx,0x2c(%rsp)
  jl     L369
L694:
  mov    0x4c(%rsp),%ebx
  cmp    %ebx,0x2c(%rsp)
  jge    L822
  mov    0x98(%rsp),%eax
  mov    %eax,0x2c(%rsp)
  mov    %eax,%ebx
  jmp    L825
L684:
  sub    $0x1,%edx
  mov    %ecx,(%r8)
  mov    %r9d,%ebx
  mov    %r11d,(%r10)
  cmp    %edx,%r9d
  jg     L343
  movslq %edx,%rax
L397:
  add    $0x4,%r8
  add    $0x1,%r9d
  add    $0x1,%edi
  jmp    L275
L369:
  mov    0x2c(%rsp),%eax
  mov    %eax,0x14(%rsp)
  movslq 0x30(%rsp),%rax
  mov    0x14(%rsp),%ebx
  mov    %rax,0x60(%rsp)
L702:
  mov    0x30(%rsp),%r14d
  mov    %ebx,%edx
  mov    %ebx,%edi
  lea    0x1(%rbx),%r9d
  add    %r14d,%edx
  mov    %edx,%eax
  shr    $0x1f,%eax
  add    %edx,%eax
  sar    %eax
  cltq
  mov    (%r15,%rax,4),%esi
  movslq %ebx,%rax
  lea    (%r15,%rax,4),%r8
  mov    0x60(%rsp),%rax
  nopw   0x0(%rax,%rax,1)
L516:
  mov    (%r8),%r10d
  lea    (%r15,%rax,4),%rcx
  mov    %edi,%r11d
  mov    (%rcx),%edx
  cmp    %r10d,%esi
  jg     L4
  cmp    %edx,%esi
  jge    L782
  lea    -0x4(%r15,%rax,4),%rax
  nopw   0x0(%rax,%rax,1)
L327:
  mov    %rax,%rcx
  mov    (%rax),%edx
  sub    $0x4,%rax
  sub    $0x1,%r14d
  cmp    %edx,%esi
  jl     L327
L782:
  cmp    %r14d,%edi
  jle    L117
L260:
  mov    %r11d,0x5c(%rsp)
  cmp    %r14d,0x14(%rsp)
  jl     L396
L399:
  mov    0x30(%rsp),%ebx
  cmp    %ebx,0x14(%rsp)
  jge    L694
  mov    0x5c(%rsp),%eax
  mov    %eax,0x14(%rsp)
  mov    %eax,%ebx
  jmp    L702
  nopw   0x0(%rax,%rax,1)
L117:
  sub    $0x1,%r14d
  mov    %edx,(%r8)
  mov    %r9d,%r11d
  mov    %r10d,(%rcx)
  cmp    %r14d,%r9d
  jg     L260
  movslq %r14d,%rax
L4:
  add    $0x4,%r8
  add    $0x1,%r9d
  add    $0x1,%edi
  jmp    L516
L396:
  mov    0x14(%rsp),%eax
  mov    %r14d,0x20(%rsp)
  mov    %eax,0xc(%rsp)
  movslq %r14d,%rax
  mov    0xc(%rsp),%ebx
  mov    %rax,0x50(%rsp)
L470:
  mov    0x20(%rsp),%r14d
  mov    %ebx,%edx
  mov    %ebx,%edi
  lea    0x1(%rbx),%r9d
  add    %r14d,%edx
  mov    %edx,%eax
  shr    $0x1f,%eax
  add    %edx,%eax
  sar    %eax
  cltq
  mov    (%r15,%rax,4),%esi
  movslq %ebx,%rax
  lea    (%r15,%rax,4),%r8
  mov    0x50(%rsp),%rax
  nopl   0x0(%rax)
L94:
  mov    (%r8),%r10d
  lea    (%r15,%rax,4),%rcx
  mov    %edi,%r11d
  mov    (%rcx),%edx
  cmp    %r10d,%esi
  jg     L395
  cmp    %edx,%esi
  jge    L131
  lea    -0x4(%r15,%rax,4),%rax
  nopw   0x0(%rax,%rax,1)
L779:
  mov    %rax,%rcx
  mov    (%rax),%edx
  sub    $0x4,%rax
  sub    $0x1,%r14d
  cmp    %edx,%esi
  jl     L779
L131:
  cmp    %edi,%r14d
  jge    L26
L79:
  mov    %r11d,0x40(%rsp)
  cmp    %r14d,0xc(%rsp)
  jl     L90
L559:
  mov    0x20(%rsp),%ebx
  cmp    %ebx,0xc(%rsp)
  jge    L399
  mov    0x40(%rsp),%eax
  mov    %eax,0xc(%rsp)
  mov    %eax,%ebx
  jmp    L470
  nop
L26:
  sub    $0x1,%r14d
  mov    %edx,(%r8)
  mov    %r9d,%r11d
  mov    %r10d,(%rcx)
  cmp    %r14d,%r9d
  jg     L79
  movslq %r14d,%rax
L395:
  add    $0x4,%r8
  add    $0x1,%r9d
  add    $0x1,%edi
  jmp    L94
L90:
  mov    0xc(%rsp),%eax
  mov    %r14d,0x10(%rsp)
  mov    %eax,0x4(%rsp)
  movslq %r14d,%rax
  mov    0x4(%rsp),%ebx
  mov    %r15,%r14
  mov    %rax,0x38(%rsp)
L336:
  mov    0x10(%rsp),%ebp
  mov    %ebx,%edx
  mov    %ebx,%edi
  lea    0x1(%rbx),%r9d
  add    %ebp,%edx
  mov    %edx,%eax
  shr    $0x1f,%eax
  add    %edx,%eax
  sar    %eax
  cltq
  mov    (%r14,%rax,4),%esi
  movslq %ebx,%rax
  lea    (%r14,%rax,4),%r8
  mov    0x38(%rsp),%rax
  nopw   0x0(%rax,%rax,1)
L579:
  mov    (%r8),%r10d
  lea    (%r14,%rax,4),%rcx
  mov    %edi,%r15d
  mov    (%rcx),%edx
  cmp    %r10d,%esi
  jg     L216
  cmp    %edx,%esi
  jge    L807
  lea    -0x4(%r14,%rax,4),%rax
  nopw   0x0(%rax,%rax,1)
L449:
  mov    %rax,%rcx
  mov    (%rax),%edx
  sub    $0x4,%rax
  sub    $0x1,%ebp
  cmp    %edx,%esi
  jl     L449
L807:
  cmp    %ebp,%edi
  jle    L834
L735:
  cmp    %ebp,0x4(%rsp)
  jl     L115
  mov    0x10(%rsp),%ebx
  cmp    %ebx,0x4(%rsp)
  jge    L537
L42:
  mov    %r15d,0x4(%rsp)
  mov    %r15d,%ebx
  jmp    L336
  nopl   (%rax)
L834:
  sub    $0x1,%ebp
  mov    %edx,(%r8)
  mov    %r9d,%r15d
  mov    %r10d,(%rcx)
  cmp    %ebp,%r9d
  jg     L735
  movslq %ebp,%rax
L216:
  add    $0x4,%r8
  add    $0x1,%r9d
  add    $0x1,%edi
  jmp    L579
L115:
  movslq %ebp,%rax
  mov    %ebp,0x8(%rsp)
  mov    0x4(%rsp),%r13d
  mov    %rax,0x18(%rsp)
  mov    %r15d,0x9c(%rsp)
L762:
  mov    0x8(%rsp),%ebx
  mov    %r13d,%edi
  lea    0x1(%r13),%r9d
  lea    0x0(%r13,%rbx,1),%edx
  mov    %edx,%eax
  shr    $0x1f,%eax
  add    %edx,%eax
  sar    %eax
  cltq
  mov    (%r14,%rax,4),%esi
  movslq %r13d,%rax
  lea    (%r14,%rax,4),%r8
  mov    0x18(%rsp),%rax
  nopl   (%rax)
L785:
  mov    (%r8),%r10d
  lea    (%r14,%rax,4),%rcx
  mov    %edi,%r12d
  mov    (%rcx),%edx
  cmp    %r10d,%esi
  jg     L793
  cmp    %edx,%esi
  jge    L690
  lea    -0x4(%r14,%rax,4),%rax
  nopw   0x0(%rax,%rax,1)
L381:
  mov    %rax,%rcx
  mov    (%rax),%edx
  sub    $0x4,%rax
  sub    $0x1,%ebx
  cmp    %edx,%esi
  jl     L381
L690:
  cmp    %ebx,%edi
  jle    L236
L255:
  cmp    %ebx,%r13d
  jl     L60
  cmp    0x8(%rsp),%r13d
  jge    L471
L18:
  mov    %r12d,%r13d
  jmp    L762
  nopl   0x0(%rax)
L236:
  sub    $0x1,%ebx
  mov    %edx,(%r8)
  mov    %r9d,%r12d
  mov    %r10d,(%rcx)
  cmp    %ebx,%r9d
  jg     L255
  movslq %ebx,%rax
L793:
  add    $0x4,%r8
  add    $0x1,%r9d
  add    $0x1,%edi
  jmp    L785
L60:
  movslq %ebx,%rax
  mov    %r12d,0x58(%rsp)
  mov    %r13d,%r15d
  mov    %rax,%r12
L363:
  lea    (%r15,%rbx,1),%edx
  mov    %r15d,%r8d
  lea    0x1(%r15),%r10d
  mov    %edx,%eax
  shr    $0x1f,%eax
  add    %edx,%eax
  mov    %ebx,%edx
  sar    %eax
  cltq
  mov    (%r14,%rax,4),%edi
  movslq %r15d,%rax
  lea    (%r14,%rax,4),%r9
  mov    %r12,%rax
  nopl   (%rax)
L306:
  mov    (%r9),%r11d
  lea    (%r14,%rax,4),%rsi
  mov    %r8d,%ebp
  mov    (%rsi),%ecx
  cmp    %r11d,%edi
  jg     L455
  cmp    %ecx,%edi
  jge    L195
  lea    -0x4(%r14,%rax,4),%rax
  nopw   0x0(%rax,%rax,1)
L39:
  mov    %rax,%rsi
  mov    (%rax),%ecx
  sub    $0x4,%rax
  sub    $0x1,%edx
  cmp    %ecx,%edi
  jl     L39
L195:
  cmp    %r8d,%edx
  jge    L522
L492:
  cmp    %edx,%r15d
  jl     L129
L573:
  cmp    %ebx,%r15d
  jge    L541
  mov    %ebp,%r15d
  jmp    L363
  nopl   0x0(%rax)
L522:
  sub    $0x1,%edx
  mov    %ecx,(%r9)
  mov    %r10d,%ebp
  mov    %r11d,(%rsi)
  cmp    %edx,%r10d
  jg     L492
  movslq %edx,%rax
L455:
  add    $0x4,%r9
  add    $0x1,%r10d
  add    $0x1,%r8d
  jmp    L306
L541:
  mov    0x58(%rsp),%r12d
  cmp    0x8(%rsp),%r13d
  jl     L18
L471:
  mov    0x9c(%rsp),%r15d
  mov    0x10(%rsp),%ebx
  cmp    %ebx,0x4(%rsp)
  jl     L42
L537:
  mov    %r14,%r15
  jmp    L559
L129:
  mov    %r15d,%esi
  mov    %r14,%rdi
  call   <QuickSort>
  jmp    L573
L159:
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void QuickSort(int *v, int l, int r) {
  int i, j, aux, x;
  i = l;
  j = r;
  x = v[(l + r) / 2];
  do {
    while (v[i] < x)
      i++;
    while (x < v[j])
      j--;
    if (i <= j) {
      aux = v[i];
      v[i] = v[j];
      v[j] = aux;
      i++;
      j--;
    }
  } while (i <= j);
  if (l < j)
    QuickSort(v, l, j);
  if (l < r)
    QuickSort(v, i, r);
}
```