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

```asm
<qsufsort>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rdx,%r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %ecx,%ebp
  mov    $0x80,%ecx
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x418,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x408(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rsi
  mov    %rsi,%rdi
  rep stos %rax,%es:(%rdi)
  test   %ebp,%ebp
  jle    L207
  mov    %rdx,%rax
  lea    -0x1(%rbp),%edx
  lea    0x8(%r13,%rdx,8),%rcx
L223:
  mov    (%rax),%rdx
  add    $0x8,%rax
  addl   $0x1,(%rsp,%rdx,4)
  cmp    %rax,%rcx
  jne    L223
L207:
  lea    0x4(%rsp),%rdi
  mov    (%rsp),%edx
  lea    0x400(%rsp),%rcx
  mov    %rdi,%rax
  nopl   0x0(%rax,%rax,1)
L179:
  add    (%rax),%edx
  add    $0x4,%rax
  mov    %edx,-0x4(%rax)
  cmp    %rax,%rcx
  jne    L179
  mov    $0x3fc,%edx
  call   <memmove@plt>
  movl   $0x0,(%rsp)
  movslq %ebp,%rsi
  xor    %edx,%edx
  test   %ebp,%ebp
  jle    L160
L174:
  mov    0x0(%r13,%rdx,8),%rcx
  mov    (%rsp,%rcx,4),%eax
  add    $0x1,%eax
  mov    %eax,(%rsp,%rcx,4)
  cltq
  mov    %edx,(%rbx,%rax,4)
  add    $0x1,%rdx
  cmp    %rdx,%rsi
  jne    L174
  xor    %eax,%eax
  xchg   %ax,%ax
L70:
  mov    0x0(%r13,%rax,8),%rdx
  mov    (%rsp,%rdx,4),%edx
  mov    %edx,(%r12,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%rsi
  jne    L70
L160:
  mov    (%rsp),%eax
  movl   $0x0,(%r12,%rsi,4)
  lea    0x8(%rsp),%rcx
  mov    $0x1,%esi
L64:
  mov    -0x4(%rcx),%edx
  add    $0x1,%eax
  cmp    %eax,%edx
  jne    L1
  movslq %edx,%rax
  movl   $0xffffffff,(%rbx,%rax,4)
L1:
  mov    (%rcx),%eax
  add    $0x1,%edx
  cmp    %eax,%edx
  jne    L229
  movslq %eax,%rdx
  movl   $0xffffffff,(%rbx,%rdx,4)
L229:
  add    $0x2,%esi
  add    $0x8,%rcx
  cmp    $0xff,%esi
  jne    L64
  mov    0x3f8(%rsp),%eax
  add    $0x1,%eax
  cmp    0x3fc(%rsp),%eax
  jne    L39
  cltq
  movl   $0xffffffff,(%rbx,%rax,4)
L39:
  mov    %ebp,%r13d
  movl   $0xffffffff,(%rbx)
  mov    $0xffffffffffffffff,%rax
  mov    $0x1,%r14d
  not    %r13d
  test   %ebp,%ebp
  je     L20
L16:
  xor    %ecx,%ecx
  xor    %edx,%edx
  test   %ebp,%ebp
  jns    L106
  jmp    L115
  nopw   0x0(%rax,%rax,1)
L9:
  test   %ecx,%ecx
  je     L57
  mov    %edx,%eax
  sub    %ecx,%eax
  neg    %ecx
  cltq
  mov    %ecx,(%rbx,%rax,4)
  movslq %edx,%rax
  movslq (%rbx,%rax,4),%rax
L57:
  mov    (%r12,%rax,4),%r15d
  mov    %r14d,%r8d
  mov    %r12,%rsi
  mov    %rbx,%rdi
  add    $0x1,%r15d
  mov    %r15d,%ecx
  sub    %edx,%ecx
  call   <split@plt>
  mov    %r15d,%edx
  xor    %ecx,%ecx
  cmp    %ebp,%edx
  jg     L117
L37:
  movslq %edx,%rax
  movslq (%rbx,%rax,4),%rax
L106:
  test   %eax,%eax
  jns    L9
  sub    %eax,%edx
  sub    %eax,%ecx
  cmp    %ebp,%edx
  jle    L37
L117:
  test   %ecx,%ecx
  je     L227
  sub    %ecx,%edx
  neg    %ecx
  movslq %edx,%rdx
  mov    %ecx,(%rbx,%rdx,4)
L227:
  movslq (%rbx),%rax
L115:
  add    %r14d,%r14d
  cmp    %eax,%r13d
  jne    L16
  xor    %eax,%eax
  test   %ebp,%ebp
  js     L189
  nopl   0x0(%rax)
L127:
  movslq (%r12,%rax,4),%rdx
  mov    %eax,(%rbx,%rdx,4)
  add    $0x1,%rax
  cmp    %eax,%ebp
  jge    L127
L189:
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L225
  add    $0x418,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L20:
  movslq (%r12),%rax
  movl   $0x0,(%rbx,%rax,4)
  jmp    L189
L225:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void qsufsort(int32_t *I, int32_t *V, u_char *old, int32_t oldsize) {
  int32_t buckets[256];
  int32_t i, h, len;
  for (i = 0; i < 256; i++)
    buckets[i] = 0;
  for (i = 0; i < oldsize; i++)
    buckets[old[i]]++;
  for (i = 1; i < 256; i++)
    buckets[i] += buckets[i - 1];
  for (i = 255; i > 0; i--)
    buckets[i] = buckets[i - 1];
  buckets[0] = 0;
  for (i = 0; i < oldsize; i++)
    I[++buckets[old[i]]] = i;
  I[0] = oldsize;
  for (i = 0; i < oldsize; i++)
    V[i] = buckets[old[i]];
  V[oldsize] = 0;
  for (i = 1; i < 256; i++)
    if (buckets[i] == buckets[i - 1] + 1)
      I[buckets[i]] = -1;
  I[0] = -1;
  for (h = 1; I[0] != -(oldsize + 1); h += h) {
    len = 0;
    for (i = 0; i < oldsize + 1;) {
      if (I[i] < 0) {
        len -= I[i];
        i -= I[i];
      } else {
        if (len)
          I[i - len] = -len;
        len = V[I[i]] + 1 - i;
        split(I, V, i, len, h);
        i += len;
        len = 0;
      };
    };
    if (len)
      I[i - len] = -len;
  };
  for (i = 0; i < oldsize + 1; i++)
    I[V[i]] = i;
}
```