user: Converte this assembly snippet into its equivalent C code:

```asm
<QuicksortAsc>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,-0x78(%rbp)
  mov    %esi,-0x7c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  cmpl   $0x1,-0x7c(%rbp)
  je     L194
  cmpl   $0x0,-0x7c(%rbp)
  je     L194
  cmpl   $0x2,-0x7c(%rbp)
  jne    L180
  mov    -0x78(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x78(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jle    L119
  mov    -0x78(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x5c(%rbp)
  mov    -0x78(%rbp),%rax
  mov    0x4(%rax),%edx
  mov    -0x78(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x78(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    -0x5c(%rbp),%eax
  mov    %eax,(%rdx)
  jmp    L119
L180:
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x7c(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0x64(%rbp)
  mov    -0x64(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x60(%rbp)
  mov    -0x7c(%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,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L10:
  cmp    %rdx,%rsp
  je     L210
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L10
L210:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L157
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L157:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x50(%rbp)
  mov    -0x7c(%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,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L31:
  cmp    %rdx,%rsp
  je     L148
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L31
L148:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L136
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L136:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0x6c(%rbp)
  movl   $0x0,-0x68(%rbp)
  movl   $0x0,-0x70(%rbp)
  jmp    L203
L98:
  mov    -0x70(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  je     L11
  mov    -0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x64(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x78(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jge    L134
  mov    -0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x68(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x68(%rbp)
  mov    (%rcx),%ecx
  mov    -0x40(%rbp),%rdx
  cltq
  mov    %ecx,(%rdx,%rax,4)
  jmp    L11
L134:
  mov    -0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x6c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x6c(%rbp)
  mov    (%rcx),%ecx
  mov    -0x50(%rbp),%rdx
  cltq
  mov    %ecx,(%rdx,%rax,4)
L11:
  addl   $0x1,-0x70(%rbp)
L203:
  mov    -0x70(%rbp),%eax
  cmp    -0x7c(%rbp),%eax
  jl     L98
  mov    -0x68(%rbp),%edx
  mov    -0x40(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <QuicksortAsc>
  mov    -0x6c(%rbp),%edx
  mov    -0x50(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <QuicksortAsc>
  movl   $0x0,-0x70(%rbp)
  jmp    L215
L110:
  mov    -0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x40(%rbp),%rax
  mov    -0x70(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,(%rcx)
  addl   $0x1,-0x70(%rbp)
L215:
  mov    -0x70(%rbp),%eax
  cmp    -0x68(%rbp),%eax
  jl     L110
  mov    -0x68(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rax,%rdx
  mov    -0x60(%rbp),%eax
  mov    %eax,(%rdx)
  movl   $0x0,-0x70(%rbp)
  jmp    L2
L67:
  mov    -0x70(%rbp),%edx
  mov    -0x68(%rbp),%eax
  add    %edx,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x50(%rbp),%rax
  mov    -0x70(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,(%rcx)
  addl   $0x1,-0x70(%rbp)
L2:
  mov    -0x70(%rbp),%eax
  cmp    -0x6c(%rbp),%eax
  jl     L67
  mov    %rbx,%rsp
  jmp    L205
L194:
  nop
  jmp    L205
L119:
  nop
L205:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L127
  call   <__stack_chk_fail@plt>
L127:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

assistant: ```c
void QuicksortAsc(int *B, int len) {
  int i;
  if ((len == 1) || (len == 0)) {
    return;
  } else if (len == 2) {
    if (B[0] > B[1]) {
      int tmp = B[0];
      B[0] = B[1];
      B[1] = tmp;
    }
    return;
  } else {
    int pivot = len / 2;
    int pivotElement = B[pivot];
    int larger[len];
    int smaller[len];
    int lCount = 0, sCount = 0;
    for (i = 0; i < len; i++) {
      if (i == pivot) {
      } else if (B[i] < B[pivot]) {
        smaller[sCount++] = B[i];
      } else {
        larger[lCount++] = B[i];
      }
    }
    QuicksortAsc(smaller, sCount);
    QuicksortAsc(larger, lCount);
    for (i = 0; i < sCount; i++) {
      B[i] = smaller[i];
    }
    B[sCount] = pivotElement;
    for (i = 0; i < lCount; i++) {
      B[i + sCount + 1] = larger[i];
    }
    return;
  }
}
```