user: What would the C source look like for the assembly code provided here?

```asm
<QSufSortTransform>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %edx,-0x44(%rbp)
  mov    %ecx,-0x48(%rbp)
  mov    %r8d,-0x4c(%rbp)
  mov    %r9d,-0x50(%rbp)
  movl   $0x0,-0x1c(%rbp)
  movl   $0x0,-0x18(%rbp)
  mov    -0x48(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  mov    %eax,%edi
  call   <leadingZero@plt>
  mov    %eax,%edx
  mov    $0x20,%eax
  sub    %edx,%eax
  mov    %eax,-0xc(%rbp)
  mov    D6(%rip),%rax
  mov    (%rax),%edx
  mov    -0xc(%rbp),%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x10(%rbp),%eax
  mov    %eax,-0x2c(%rbp)
  movl   $0x0,-0x20(%rbp)
  jmp    L59
L124:
  mov    -0xc(%rbp),%eax
  mov    -0x1c(%rbp),%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  sub    -0x4c(%rbp),%eax
  add    $0x1,%eax
  or     %edx,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x2c(%rbp),%eax
  mov    %eax,-0x18(%rbp)
  mov    -0xc(%rbp),%eax
  mov    -0x18(%rbp),%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     -0x10(%rbp),%eax
  mov    %eax,-0x2c(%rbp)
  addl   $0x1,-0x20(%rbp)
L59:
  mov    -0x20(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jge    L51
  mov    -0x18(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jg     L51
  mov    -0x2c(%rbp),%eax
  cmp    -0x50(%rbp),%eax
  jle    L124
L51:
  mov    -0x20(%rbp),%eax
  sub    $0x1,%eax
  imul   -0xc(%rbp),%eax
  mov    $0x1,%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  sub    $0x1,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    -0x4c(%rbp),%edx
  sub    $0x1,%edx
  mov    %edx,(%rax)
  movl   $0x0,-0x28(%rbp)
  jmp    L56
L25:
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  addl   $0x1,-0x28(%rbp)
L56:
  mov    -0x28(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  jle    L25
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x20(%rbp),%eax
  mov    %eax,-0x28(%rbp)
  jmp    L31
L143:
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
  mov    -0x2c(%rbp),%eax
  and    -0x4(%rbp),%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  sub    -0x4c(%rbp),%eax
  add    $0x1,%eax
  or     %edx,%eax
  mov    %eax,-0x2c(%rbp)
  addl   $0x1,-0x28(%rbp)
L31:
  mov    -0x28(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jle    L143
  movl   $0x1,-0x28(%rbp)
  jmp    L78
L165:
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
  mov    -0x2c(%rbp),%eax
  and    -0x4(%rbp),%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %eax,-0x2c(%rbp)
  addl   $0x1,-0x28(%rbp)
L78:
  mov    -0x28(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jl     L165
  movl   $0x1,-0x14(%rbp)
  movl   $0x0,-0x28(%rbp)
  jmp    L130
L60:
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  je     L23
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rax,%rdx
  mov    -0x14(%rbp),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x14(%rbp)
L23:
  addl   $0x1,-0x28(%rbp)
L130:
  mov    -0x28(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  jle    L60
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0x2c(%rbp)
  movl   $0x0,-0x28(%rbp)
  mov    -0x20(%rbp),%eax
  mov    %eax,-0x24(%rbp)
  jmp    L74
L98:
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    -0x28(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x38(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x2c(%rbp),%eax
  and    -0x4(%rbp),%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  sub    -0x4c(%rbp),%eax
  add    $0x1,%eax
  or     %edx,%eax
  mov    %eax,-0x2c(%rbp)
  addl   $0x1,-0x28(%rbp)
  addl   $0x1,-0x24(%rbp)
L74:
  mov    -0x24(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jle    L98
  jmp    L112
L115:
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    -0x28(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x38(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x2c(%rbp),%eax
  and    -0x4(%rbp),%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %eax,-0x2c(%rbp)
  addl   $0x1,-0x28(%rbp)
L112:
  mov    -0x28(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L115
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  mov    0x10(%rbp),%rax
  mov    -0x20(%rbp),%edx
  mov    %edx,(%rax)
  mov    -0x14(%rbp),%eax
  leave
  ret
```

assistant: ```c
int QSufSortTransform(int *__restrict V, int *__restrict I, const int numChar, const int largestInputSymbol, const int smallestInputSymbol, const int maxNewAlphabetSize, int *numSymbolAggregated) {
  int c, i, j;
  int a;
  int mask;
  int minSymbolInChunk = 0, maxSymbolInChunk = 0;
  int newAlphabetSize;
  int maxNumInputSymbol, maxNumBit, maxSymbol;
  maxNumInputSymbol = largestInputSymbol - smallestInputSymbol + 1;
  maxNumBit = 32 - leadingZero(maxNumInputSymbol);
  maxSymbol = INT_MAX >> maxNumBit;
  c = maxNumInputSymbol;
  for (a = 0; a < numChar && maxSymbolInChunk <= maxSymbol && c <= maxNewAlphabetSize; a++) {
    minSymbolInChunk = (minSymbolInChunk << maxNumBit) | (V[a] - smallestInputSymbol + 1);
    maxSymbolInChunk = c;
    c = (maxSymbolInChunk << maxNumBit) | maxNumInputSymbol;
  }
  mask = (1 << (a - 1) * maxNumBit) - 1;
  V[numChar] = smallestInputSymbol - 1;
  for (i = 0; i <= maxSymbolInChunk; i++) {
    I[i] = 0;
  }
  c = minSymbolInChunk;
  for (i = a; i <= numChar; i++) {
    I[c] = 1;
    c = ((c & mask) << maxNumBit) | (V[i] - smallestInputSymbol + 1);
  }
  for (i = 1; i < a; i++) {
    I[c] = 1;
    c = (c & mask) << maxNumBit;
  }
  newAlphabetSize = 1;
  for (i = 0; i <= maxSymbolInChunk; i++) {
    if (I[i]) {
      I[i] = newAlphabetSize;
      newAlphabetSize++;
    }
  }
  c = minSymbolInChunk;
  for (i = 0, j = a; j <= numChar; i++, j++) {
    V[i] = I[c];
    c = ((c & mask) << maxNumBit) | (V[j] - smallestInputSymbol + 1);
  }
  for (; i < numChar; i++) {
    V[i] = I[c];
    c = (c & mask) << maxNumBit;
  }
  V[numChar] = 0;
  *numSymbolAggregated = a;
  return newAlphabetSize;
}
```