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    L217
  mov    %rdx,%rax
  lea    -0x1(%rbp),%edx
  lea    0x8(%r13,%rdx,8),%rcx
L159:
  mov    (%rax),%rdx
  add    $0x8,%rax
  addl   $0x1,(%rsp,%rdx,4)
  cmp    %rax,%rcx
  jne    L159
L217:
  lea    0x4(%rsp),%rdi
  mov    (%rsp),%edx
  lea    0x400(%rsp),%rcx
  mov    %rdi,%rax
  nopl   0x0(%rax,%rax,1)
L78:
  add    (%rax),%edx
  add    $0x4,%rax
  mov    %edx,-0x4(%rax)
  cmp    %rax,%rcx
  jne    L78
  mov    $0x3fc,%edx
  call   <memmove@plt>
  movl   $0x0,(%rsp)
  movslq %ebp,%rsi
  xor    %edx,%edx
  test   %ebp,%ebp
  jle    L145
L102:
  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    L102
  xor    %eax,%eax
  xchg   %ax,%ax
L12:
  mov    0x0(%r13,%rax,8),%rdx
  mov    (%rsp,%rdx,4),%edx
  mov    %edx,(%r12,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%rsi
  jne    L12
L145:
  mov    (%rsp),%eax
  movl   $0x0,(%r12,%rsi,4)
  lea    0x8(%rsp),%rcx
  mov    $0x1,%esi
L110:
  mov    -0x4(%rcx),%edx
  add    $0x1,%eax
  cmp    %eax,%edx
  jne    L72
  movslq %edx,%rax
  movl   $0xffffffff,(%rbx,%rax,4)
L72:
  mov    (%rcx),%eax
  add    $0x1,%edx
  cmp    %eax,%edx
  jne    L28
  movslq %eax,%rdx
  movl   $0xffffffff,(%rbx,%rdx,4)
L28:
  add    $0x2,%esi
  add    $0x8,%rcx
  cmp    $0xff,%esi
  jne    L110
  mov    0x3f8(%rsp),%eax
  add    $0x1,%eax
  cmp    0x3fc(%rsp),%eax
  jne    L151
  cltq
  movl   $0xffffffff,(%rbx,%rax,4)
L151:
  mov    %ebp,%r13d
  movl   $0xffffffff,(%rbx)
  mov    $0xffffffffffffffff,%rax
  mov    $0x1,%r14d
  not    %r13d
  test   %ebp,%ebp
  je     L191
L182:
  xor    %ecx,%ecx
  xor    %edx,%edx
  test   %ebp,%ebp
  jns    L103
  jmp    L23
  nopw   0x0(%rax,%rax,1)
L11:
  test   %ecx,%ecx
  je     L66
  mov    %edx,%eax
  sub    %ecx,%eax
  neg    %ecx
  cltq
  mov    %ecx,(%rbx,%rax,4)
  movslq %edx,%rax
  movslq (%rbx,%rax,4),%rax
L66:
  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     L165
L113:
  movslq %edx,%rax
  movslq (%rbx,%rax,4),%rax
L103:
  test   %eax,%eax
  jns    L11
  sub    %eax,%edx
  sub    %eax,%ecx
  cmp    %ebp,%edx
  jle    L113
L165:
  test   %ecx,%ecx
  je     L35
  sub    %ecx,%edx
  neg    %ecx
  movslq %edx,%rdx
  mov    %ecx,(%rbx,%rdx,4)
L35:
  movslq (%rbx),%rax
L23:
  add    %r14d,%r14d
  cmp    %eax,%r13d
  jne    L182
  xor    %eax,%eax
  test   %ebp,%ebp
  js     L190
  nopl   0x0(%rax)
L227:
  movslq (%r12,%rax,4),%rdx
  mov    %eax,(%rbx,%rdx,4)
  add    $0x1,%rax
  cmp    %eax,%ebp
  jge    L227
L190:
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L194
  add    $0x418,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L191:
  movslq (%r12),%rax
  movl   $0x0,(%rbx,%rax,4)
  jmp    L190
L194:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void qsufsort(off_t *I, off_t *V, u_char *old, off_t oldsize) {
  off_t buckets[256];
  off_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;
}
```