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

```asm
<qsufsort>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x440,%rsp
  mov    %rdi,-0x428(%rbp)
  mov    %rsi,-0x430(%rbp)
  mov    %rdx,-0x438(%rbp)
  mov    %ecx,-0x43c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x41c(%rbp)
  jmp    L151
L238:
  mov    -0x41c(%rbp),%eax
  cltq
  movl   $0x0,-0x410(%rbp,%rax,4)
  addl   $0x1,-0x41c(%rbp)
L151:
  cmpl   $0xff,-0x41c(%rbp)
  jle    L238
  movl   $0x0,-0x41c(%rbp)
  jmp    L98
L12:
  mov    -0x41c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x438(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    -0x410(%rbp,%rax,4),%edx
  add    $0x1,%edx
  mov    %edx,-0x410(%rbp,%rax,4)
  addl   $0x1,-0x41c(%rbp)
L98:
  mov    -0x41c(%rbp),%eax
  cmp    -0x43c(%rbp),%eax
  jl     L12
  movl   $0x1,-0x41c(%rbp)
  jmp    L239
L23:
  mov    -0x41c(%rbp),%eax
  cltq
  mov    -0x410(%rbp,%rax,4),%edx
  mov    -0x41c(%rbp),%eax
  sub    $0x1,%eax
  cltq
  mov    -0x410(%rbp,%rax,4),%eax
  add    %eax,%edx
  mov    -0x41c(%rbp),%eax
  cltq
  mov    %edx,-0x410(%rbp,%rax,4)
  addl   $0x1,-0x41c(%rbp)
L239:
  cmpl   $0xff,-0x41c(%rbp)
  jle    L23
  movl   $0xff,-0x41c(%rbp)
  jmp    L147
L182:
  mov    -0x41c(%rbp),%eax
  sub    $0x1,%eax
  cltq
  mov    -0x410(%rbp,%rax,4),%edx
  mov    -0x41c(%rbp),%eax
  cltq
  mov    %edx,-0x410(%rbp,%rax,4)
  subl   $0x1,-0x41c(%rbp)
L147:
  cmpl   $0x0,-0x41c(%rbp)
  jg     L182
  movl   $0x0,-0x410(%rbp)
  movl   $0x0,-0x41c(%rbp)
  jmp    L174
L122:
  mov    -0x41c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x438(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    -0x410(%rbp,%rax,4),%edx
  add    $0x1,%edx
  mov    %edx,-0x410(%rbp,%rax,4)
  mov    -0x410(%rbp,%rax,4),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x428(%rbp),%rax
  add    %rax,%rdx
  mov    -0x41c(%rbp),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x41c(%rbp)
L174:
  mov    -0x41c(%rbp),%eax
  cmp    -0x43c(%rbp),%eax
  jl     L122
  mov    -0x428(%rbp),%rax
  mov    -0x43c(%rbp),%edx
  mov    %edx,(%rax)
  movl   $0x0,-0x41c(%rbp)
  jmp    L175
L77:
  mov    -0x41c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x438(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    -0x41c(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x430(%rbp),%rdx
  add    %rcx,%rdx
  mov    -0x410(%rbp,%rax,4),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x41c(%rbp)
L175:
  mov    -0x41c(%rbp),%eax
  cmp    -0x43c(%rbp),%eax
  jl     L77
  mov    -0x43c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x430(%rbp),%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  movl   $0x1,-0x41c(%rbp)
  jmp    L51
L241:
  mov    -0x41c(%rbp),%eax
  cltq
  mov    -0x410(%rbp,%rax,4),%edx
  mov    -0x41c(%rbp),%eax
  sub    $0x1,%eax
  cltq
  mov    -0x410(%rbp,%rax,4),%eax
  add    $0x1,%eax
  cmp    %eax,%edx
  jne    L252
  mov    -0x41c(%rbp),%eax
  cltq
  mov    -0x410(%rbp,%rax,4),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x428(%rbp),%rax
  add    %rdx,%rax
  movl   $0xffffffff,(%rax)
L252:
  addl   $0x1,-0x41c(%rbp)
L51:
  cmpl   $0xff,-0x41c(%rbp)
  jle    L241
  mov    -0x428(%rbp),%rax
  movl   $0xffffffff,(%rax)
  movl   $0x1,-0x418(%rbp)
  jmp    L110
L42:
  movl   $0x0,-0x414(%rbp)
  movl   $0x0,-0x41c(%rbp)
  jmp    L169
L179:
  mov    -0x41c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x428(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jns    L18
  mov    -0x41c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x428(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  sub    %eax,-0x414(%rbp)
  mov    -0x41c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x428(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  sub    %eax,-0x41c(%rbp)
  jmp    L169
L18:
  cmpl   $0x0,-0x414(%rbp)
  je     L191
  mov    -0x41c(%rbp),%eax
  sub    -0x414(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x428(%rbp),%rax
  add    %rdx,%rax
  mov    -0x414(%rbp),%edx
  neg    %edx
  mov    %edx,(%rax)
L191:
  mov    -0x41c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x428(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x430(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  add    $0x1,%eax
  sub    -0x41c(%rbp),%eax
  mov    %eax,-0x414(%rbp)
  mov    -0x418(%rbp),%edi
  mov    -0x414(%rbp),%ecx
  mov    -0x41c(%rbp),%edx
  mov    -0x430(%rbp),%rsi
  mov    -0x428(%rbp),%rax
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <split@plt>
  mov    -0x414(%rbp),%eax
  add    %eax,-0x41c(%rbp)
  movl   $0x0,-0x414(%rbp)
L169:
  mov    -0x43c(%rbp),%eax
  cmp    -0x41c(%rbp),%eax
  jge    L179
  cmpl   $0x0,-0x414(%rbp)
  je     L88
  mov    -0x41c(%rbp),%eax
  sub    -0x414(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x428(%rbp),%rax
  add    %rdx,%rax
  mov    -0x414(%rbp),%edx
  neg    %edx
  mov    %edx,(%rax)
L88:
  shll   -0x418(%rbp)
L110:
  mov    -0x428(%rbp),%rax
  mov    (%rax),%eax
  mov    -0x43c(%rbp),%edx
  not    %edx
  cmp    %edx,%eax
  jne    L42
  movl   $0x0,-0x41c(%rbp)
  jmp    L116
L178:
  mov    -0x41c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x430(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x428(%rbp),%rax
  add    %rax,%rdx
  mov    -0x41c(%rbp),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x41c(%rbp)
L116:
  mov    -0x43c(%rbp),%eax
  cmp    -0x41c(%rbp),%eax
  jge    L178
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L253
  call   <__stack_chk_fail@plt>
L253:
  leave
  ret
```

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;
}
```