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

```asm
<QuickSort>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %edx,0x14(%rsp)
  cmp    %edx,%esi
  jge    L811
  mov    %rdi,%r14
  mov    %esi,%r15d
L871:
  movslq %r15d,%r13
  mov    0x14(%rsp),%eax
  mov    %r15d,%edi
  lea    (%r14,%r13,4),%rdx
  mov    (%rdx),%esi
  mov    %esi,%ecx
L349:
  movslq %eax,%r9
  lea    (%r14,%r9,4),%r10
  mov    (%r10),%r8d
  cmp    %r8d,%esi
  jge    L838
  cmp    %eax,%edi
  jge    L1303
  lea    -0x4(%r14,%r9,4),%r9
  jmp    L1296
L1200:
  sub    $0x4,%r9
  cmp    %edi,%eax
  je     L1051
L1296:
  mov    (%r9),%r8d
  sub    $0x1,%eax
  mov    %r9,%r10
  cmp    %esi,%r8d
  jg     L1200
L838:
  cmp    %eax,%edi
  jge    L1303
  mov    %r8d,(%rdx)
  movslq %edi,%r8
  shl    $0x2,%r8
  mov    %ecx,(%r10)
  lea    (%r14,%r8,1),%rdx
  mov    (%rdx),%ecx
  cmp    %ecx,%esi
  jle    L349
  lea    0x4(%r14,%r8,1),%r8
  jmp    L599
L476:
  cmp    %esi,%ecx
  jge    L349
L599:
  add    $0x1,%edi
  mov    (%r8),%ecx
  mov    %r8,%rdx
  add    $0x4,%r8
  cmp    %eax,%edi
  jl     L476
  jmp    L349
L288:
  mov    0xc(%rsp),%r15d
  add    $0x1,%r15d
  cmp    0x14(%rsp),%r15d
  jl     L871
L811:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L1303:
  cmp    %eax,%edi
  jne    L1033
L1051:
  mov    %edi,0xc(%rsp)
  cmp    %r15d,0xc(%rsp)
  jle    L288
L515:
  lea    (%r14,%r13,4),%rdx
  mov    0xc(%rsp),%eax
  mov    %r15d,%edi
  mov    (%rdx),%esi
  mov    %esi,%ecx
L1047:
  movslq %eax,%r9
  lea    (%r14,%r9,4),%r10
  mov    (%r10),%r8d
  cmp    %r8d,%esi
  jge    L1454
  cmp    %eax,%edi
  jge    L97
  lea    -0x4(%r14,%r9,4),%r9
  jmp    L39
L1372:
  sub    $0x4,%r9
  cmp    %eax,%edi
  je     L688
L39:
  mov    (%r9),%r8d
  sub    $0x1,%eax
  mov    %r9,%r10
  cmp    %r8d,%esi
  jl     L1372
L1454:
  cmp    %eax,%edi
  jge    L97
  mov    %r8d,(%rdx)
  movslq %edi,%r8
  shl    $0x2,%r8
  mov    %ecx,(%r10)
  lea    (%r14,%r8,1),%rdx
  mov    (%rdx),%ecx
  cmp    %ecx,%esi
  jle    L1047
  lea    0x4(%r14,%r8,1),%r8
  jmp    L378
L624:
  cmp    %ecx,%esi
  jle    L1047
L378:
  add    $0x1,%edi
  mov    (%r8),%ecx
  mov    %r8,%rdx
  add    $0x4,%r8
  cmp    %eax,%edi
  jl     L624
  jmp    L1047
L97:
  cmp    %eax,%edi
  jne    L890
L688:
  mov    %edi,0x8(%rsp)
  cmp    %r15d,0x8(%rsp)
  jle    L1379
  mov    %r13,%rax
  mov    %r15d,%r13d
  mov    %rax,%r15
L1049:
  lea    (%r14,%r15,4),%rsi
  mov    0x8(%rsp),%eax
  mov    %r13d,%edi
  mov    (%rsi),%ecx
  mov    %ecx,%edx
L1388:
  movslq %eax,%r9
  lea    (%r14,%r9,4),%r10
  mov    (%r10),%r8d
  cmp    %r8d,%ecx
  jge    L404
  cmp    %eax,%edi
  jge    L105
  lea    -0x4(%r14,%r9,4),%r9
  jmp    L307
L615:
  sub    $0x4,%r9
  cmp    %edi,%eax
  je     L100
L307:
  mov    (%r9),%r8d
  sub    $0x1,%eax
  mov    %r9,%r10
  cmp    %r8d,%ecx
  jl     L615
L404:
  cmp    %eax,%edi
  jge    L105
  mov    %r8d,(%rsi)
  mov    %edx,(%r10)
  jmp    L59
L100:
  movslq %edi,%rbx
  mov    %edi,0x10(%rsp)
  mov    %r15,%rdx
  mov    %rbx,0x20(%rsp)
  cmp    %r13d,%edi
  jle    L119
L1258:
  lea    (%r14,%rdx,4),%rcx
  mov    0x10(%rsp),%eax
  mov    0x20(%rsp),%rsi
  mov    %r13d,%r12d
  mov    (%rcx),%r8d
  mov    %r8d,%edi
L904:
  lea    (%r14,%rsi,4),%r10
  mov    (%r10),%r9d
  cmp    %r9d,%r8d
  jge    L439
  cmp    %r12d,%eax
  jle    L478
  lea    -0x4(%r14,%rsi,4),%rsi
  jmp    L219
L522:
  sub    $0x4,%rsi
  cmp    %r12d,%eax
  je     L1466
L219:
  mov    (%rsi),%r9d
  sub    $0x1,%eax
  mov    %rsi,%r10
  cmp    %r9d,%r8d
  jl     L522
L439:
  cmp    %eax,%r12d
  jge    L34
  mov    %r9d,(%rcx)
  mov    %edi,(%r10)
L461:
  movslq %r12d,%rsi
  shl    $0x2,%rsi
  lea    (%r14,%rsi,1),%rcx
  mov    (%rcx),%edi
  cmp    %edi,%r8d
  jle    L252
  cmp    %eax,%r12d
  jge    L252
  lea    0x4(%r14,%rsi,1),%rsi
  jmp    L1376
L1269:
  cmp    %edi,%r8d
  jle    L252
L1376:
  add    $0x1,%r12d
  mov    (%rsi),%edi
  mov    %rsi,%rcx
  lea    0x4(%rsi),%rsi
  cmp    %eax,%r12d
  jl     L1269
L252:
  movslq %eax,%rsi
  jmp    L904
L34:
  jne    L461
L1466:
  mov    %r12d,%r9d
  cmp    %r12d,%r13d
  jge    L10
L742:
  lea    (%r14,%rdx,4),%rcx
  mov    %r9d,%eax
  mov    %r13d,%r8d
  mov    (%rcx),%edi
  mov    %edi,%esi
L1403:
  movslq %eax,%r11
  lea    (%r14,%r11,4),%rbx
  mov    (%rbx),%r10d
  cmp    %edi,%r10d
  jle    L94
  cmp    %r8d,%eax
  jle    L720
  lea    -0x4(%r14,%r11,4),%r11
  jmp    L640
L952:
  sub    $0x4,%r11
  cmp    %r8d,%eax
  je     L561
L640:
  mov    (%r11),%r10d
  sub    $0x1,%eax
  mov    %r11,%rbx
  cmp    %r10d,%edi
  jl     L952
L94:
  cmp    %r8d,%eax
  jle    L720
  mov    %r10d,(%rcx)
  movslq %r8d,%r10
  shl    $0x2,%r10
  mov    %esi,(%rbx)
  lea    (%r14,%r10,1),%rcx
  mov    (%rcx),%esi
  cmp    %esi,%edi
  jle    L1403
  lea    0x4(%r14,%r10,1),%r10
  jmp    L1213
L50:
  cmp    %eax,%r8d
  jge    L1403
L1213:
  mov    (%r10),%esi
  mov    %r10,%rcx
  add    $0x1,%r8d
  add    $0x4,%r10
  cmp    %esi,%edi
  jg     L50
  jmp    L1403
L119:
  mov    0x10(%rsp),%r13d
  add    $0x1,%r13d
  cmp    %r13d,0x8(%rsp)
  jle    L1379
  movslq %r13d,%r15
  jmp    L1049
L105:
  cmp    %edi,%eax
  je     L100
L59:
  movslq %edi,%r8
  shl    $0x2,%r8
  lea    (%r14,%r8,1),%rsi
  mov    (%rsi),%edx
  cmp    %edi,%eax
  jle    L1388
  cmp    %edx,%ecx
  jle    L1388
  lea    0x4(%r14,%r8,1),%r8
  jmp    L1066
L553:
  cmp    %edx,%ecx
  jle    L1388
L1066:
  add    $0x1,%edi
  mov    (%r8),%edx
  mov    %r8,%rsi
  add    $0x4,%r8
  cmp    %eax,%edi
  jl     L553
  jmp    L1388
L720:
  cmp    %eax,%r8d
  jne    L887
L561:
  movslq %r8d,%rax
  mov    %rax,0x18(%rsp)
  cmp    %r8d,%r13d
  jge    L1107
L421:
  lea    (%r14,%rdx,4),%rsi
  mov    0x18(%rsp),%rdi
  mov    %r8d,%eax
  mov    %r13d,%r12d
  mov    (%rsi),%r10d
  mov    %r10d,%ecx
L208:
  lea    (%r14,%rdi,4),%rbx
  mov    (%rbx),%r11d
  cmp    %r10d,%r11d
  jle    L7
  cmp    %r12d,%eax
  jle    L1352
  lea    -0x4(%r14,%rdi,4),%rdi
  jmp    L376
  nop
L1235:
  sub    $0x4,%rdi
  cmp    %r12d,%eax
  je     L1314
L376:
  mov    (%rdi),%r11d
  sub    $0x1,%eax
  mov    %rdi,%rbx
  cmp    %r11d,%r10d
  jl     L1235
L7:
  cmp    %eax,%r12d
  jge    L1167
  mov    %r11d,(%rsi)
  mov    %ecx,(%rbx)
L1174:
  movslq %r12d,%rdi
  shl    $0x2,%rdi
  lea    (%r14,%rdi,1),%rsi
  mov    (%rsi),%ecx
  cmp    %ecx,%r10d
  jle    L265
  cmp    %eax,%r12d
  jge    L265
  lea    0x4(%r14,%rdi,1),%rdi
  jmp    L731
  nop
L393:
  cmp    %ecx,%r10d
  jle    L265
L731:
  add    $0x1,%r12d
  mov    (%rdi),%ecx
  mov    %rdi,%rsi
  lea    0x4(%rdi),%rdi
  cmp    %eax,%r12d
  jl     L393
L265:
  movslq %eax,%rdi
  jmp    L208
L1167:
  jne    L1174
L1314:
  cmp    %r12d,%r13d
  jge    L894
L1215:
  lea    (%r14,%rdx,4),%rsi
  mov    %r12d,%eax
  mov    %r13d,%ebp
  mov    (%rsi),%edi
  mov    %edi,%ecx
L594:
  movslq %eax,%rbx
  lea    (%r14,%rbx,4),%r11
  mov    (%r11),%r10d
  cmp    %edi,%r10d
  jle    L1477
  cmp    %ebp,%eax
  jle    L631
  lea    -0x4(%r14,%rbx,4),%rbx
  jmp    L1445
  nop
L870:
  sub    $0x4,%rbx
  cmp    %ebp,%eax
  je     L263
L1445:
  mov    (%rbx),%r10d
  sub    $0x1,%eax
  mov    %rbx,%r11
  cmp    %r10d,%edi
  jl     L870
L1477:
  cmp    %ebp,%eax
  jle    L631
  mov    %r10d,(%rsi)
  movslq %ebp,%r10
  shl    $0x2,%r10
  mov    %ecx,(%r11)
  lea    (%r14,%r10,1),%rsi
  mov    (%rsi),%ecx
  cmp    %ecx,%edi
  jle    L594
  lea    0x4(%r14,%r10,1),%r10
  jmp    L1071
  nopl   0x0(%rax,%rax,1)
L902:
  cmp    %ecx,%edi
  jle    L594
L1071:
  add    $0x1,%ebp
  mov    (%r10),%ecx
  mov    %r10,%rsi
  add    $0x4,%r10
  cmp    %eax,%ebp
  jl     L902
  jmp    L594
L631:
  cmp    %eax,%ebp
  jne    L235
L263:
  cmp    %r13d,%ebp
  jle    L410
L203:
  lea    (%r14,%rdx,4),%rsi
  mov    %ebp,%eax
  mov    %r13d,%ebx
  mov    (%rsi),%edi
  mov    %edi,%ecx
  nopl   (%rax)
L58:
  movslq %eax,%r10
  lea    (%r14,%r10,4),%r15
  mov    (%r15),%r11d
  cmp    %edi,%r11d
  jle    L768
  cmp    %ebx,%eax
  jle    L1221
  lea    -0x4(%r14,%r10,4),%r10
  jmp    L17
  nopw   0x0(%rax,%rax,1)
L1290:
  sub    $0x4,%r10
  cmp    %ebx,%eax
  je     L479
L17:
  mov    (%r10),%r11d
  sub    $0x1,%eax
  mov    %r10,%r15
  cmp    %r11d,%edi
  jl     L1290
L768:
  cmp    %ebx,%eax
  jle    L1221
  movslq %ebx,%r10
  mov    %r11d,(%rsi)
  shl    $0x2,%r10
  mov    %ecx,(%r15)
  lea    (%r14,%r10,1),%rsi
  mov    (%rsi),%ecx
  cmp    %ecx,%edi
  jle    L58
  lea    0x4(%r14,%r10,1),%r10
  jmp    L597
L924:
  cmp    %ecx,%edi
  jle    L58
L597:
  add    $0x1,%ebx
  mov    (%r10),%ecx
  mov    %r10,%rsi
  add    $0x4,%r10
  cmp    %eax,%ebx
  jl     L924
  jmp    L58
L1221:
  cmp    %eax,%ebx
  jne    L1323
  nop
L479:
  cmp    %r13d,%ebx
  jle    L786
L504:
  lea    (%r14,%rdx,4),%rax
  mov    %ebx,%edi
  mov    %r13d,%r15d
  mov    (%rax),%esi
  mov    %esi,%ecx
  cs nopw 0x0(%rax,%rax,1)
L659:
  movslq %edi,%r11
  lea    (%r14,%r11,4),%r10
  mov    (%r10),%edx
  cmp    %edx,%esi
  jge    L173
  cmp    %r15d,%edi
  jle    L1342
  lea    -0x4(%r14,%r11,4),%r11
  jmp    L296
  nopw   0x0(%rax,%rax,1)
L71:
  sub    $0x4,%r11
  cmp    %r15d,%edi
  je     L1464
L296:
  mov    (%r11),%edx
  sub    $0x1,%edi
  mov    %r11,%r10
  cmp    %edx,%esi
  jl     L71
L173:
  cmp    %r15d,%edi
  jle    L1342
  mov    %edx,(%rax)
  movslq %r15d,%rdx
  shl    $0x2,%rdx
  mov    %ecx,(%r10)
  lea    (%r14,%rdx,1),%rax
  lea    0x4(%r14,%rdx,1),%rdx
  mov    (%rax),%ecx
  cmp    %esi,%ecx
  jl     L205
  jmp    L659
  nopl   0x0(%rax,%rax,1)
L26:
  cmp    %edi,%r15d
  jge    L659
L205:
  mov    (%rdx),%ecx
  mov    %rdx,%rax
  add    $0x1,%r15d
  add    $0x4,%rdx
  cmp    %ecx,%esi
  jg     L26
  jmp    L659
L786:
  lea    0x1(%rbx),%r13d
  cmp    %ebp,%r13d
  jge    L410
  movslq %r13d,%rdx
  jmp    L203
L1342:
  cmp    %edi,%r15d
  jne    L835
  nopw   0x0(%rax,%rax,1)
L1464:
  mov    %r13d,%esi
  mov    %r15d,%edx
  mov    %r14,%rdi
  mov    %r8d,0x2c(%rsp)
  lea    0x1(%r15),%r13d
  mov    %r9d,0x28(%rsp)
  call   <QuickSort>
  cmp    %ebx,%r13d
  mov    0x28(%rsp),%r9d
  mov    0x2c(%rsp),%r8d
  jge    L786
  movslq %r13d,%rdx
  jmp    L504
L410:
  lea    0x1(%rbp),%r13d
  cmp    %r12d,%r13d
  jge    L894
  movslq %r13d,%rdx
  jmp    L1215
L894:
  lea    0x1(%r12),%r13d
  cmp    %r8d,%r13d
  jge    L1107
  movslq %r13d,%rdx
  jmp    L421
L1352:
  je     L1314
  movslq %r12d,%rcx
  lea    (%r14,%rcx,4),%rsi
  mov    (%rsi),%ecx
  jmp    L208
  nopw   0x0(%rax,%rax,1)
L1107:
  lea    0x1(%r8),%r13d
  cmp    %r9d,%r13d
  jge    L228
  movslq %r13d,%rdx
  jmp    L742
L228:
  mov    %r9d,%r12d
L10:
  lea    0x1(%r12),%r13d
  cmp    0x10(%rsp),%r13d
  jge    L119
  movslq %r13d,%rdx
  jmp    L1258
L478:
  je     L1466
  movslq %r12d,%rcx
  lea    (%r14,%rcx,4),%rcx
  mov    (%rcx),%edi
  jmp    L904
  nopl   0x0(%rax,%rax,1)
L1379:
  mov    0x8(%rsp),%r15d
  add    $0x1,%r15d
  cmp    %r15d,0xc(%rsp)
  jle    L288
  movslq %r15d,%r13
  jmp    L515
L1033:
  movslq %edi,%rdx
  lea    (%r14,%rdx,4),%rdx
  mov    (%rdx),%ecx
  jmp    L349
L887:
  movslq %r8d,%rcx
  lea    (%r14,%rcx,4),%rcx
  mov    (%rcx),%esi
  jmp    L1403
L235:
  movslq %ebp,%rcx
  lea    (%r14,%rcx,4),%rsi
  mov    (%rsi),%ecx
  jmp    L594
L1323:
  movslq %ebx,%rcx
  lea    (%r14,%rcx,4),%rsi
  mov    (%rsi),%ecx
  jmp    L58
L835:
  movslq %r15d,%rax
  lea    (%r14,%rax,4),%rax
  mov    (%rax),%ecx
  jmp    L659
L890:
  movslq %edi,%rdx
  lea    (%r14,%rdx,4),%rdx
  mov    (%rdx),%ecx
  jmp    L1047
```

assistant: ```c
void QuickSort(int array[], int begin, int end) {
  if (begin >= end) {
    return;
  }
  int base_pos = begin;
  int base_value = array[base_pos];
  int left_pos = begin, right_pos = end;
  int temp_val;
  while (left_pos != right_pos) {
    while (array[left_pos] < base_value && left_pos < right_pos) {
      left_pos++;
    }
    while (array[right_pos] > base_value && left_pos < right_pos) {
      right_pos--;
    }
    if (left_pos < right_pos) {
      temp_val = array[left_pos];
      array[left_pos] = array[right_pos];
      array[right_pos] = temp_val;
    }
  }
  QuickSort(array, begin, left_pos);
  QuickSort(array, left_pos + 1, end);
}
```