user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<QSufSortTransform>:
  endbr64
  push   %r15
  sub    %r8d,%ecx
  mov    %edx,%r15d
  push   %r14
  lea    0x1(%rcx),%r10d
  mov    %r8d,%r14d
  push   %r13
  mov    %rsi,%r13
  push   %r12
  push   %rbp
  mov    $0x20,%ebp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x28,%rsp
  mov    %rdi,(%rsp)
  mov    %r10d,%edi
  mov    %r9d,0x18(%rsp)
  mov    %r10d,0x14(%rsp)
  call   <leadingZero@plt>
  mov    D3(%rip),%rdx
  mov    0x14(%rsp),%r10d
  lea    -0x1(%r14),%edi
  sub    %eax,%ebp
  mov    0x18(%rsp),%r9d
  mov    %edi,0x1c(%rsp)
  mov    (%rdx),%r11d
  mov    %ebp,%ecx
  movslq %r15d,%rdx
  lea    (%rbx,%rdx,4),%rdi
  sar    %cl,%r11d
  test   %r15d,%r15d
  mov    %rdi,0x8(%rsp)
  setg   %cl
  cmp    %r9d,%r10d
  setle  %dl
  test   %dl,%cl
  je     L50
  test   %r11d,%r11d
  js     L50
  mov    %rbx,%rdx
  mov    %r10d,%eax
  xor    %ebx,%ebx
  xor    %r12d,%r12d
  mov    %ebp,%ecx
  jmp    L101
  nopl   0x0(%rax,%rax,1)
L120:
  cmp    %eax,%r9d
  jl     L39
L101:
  mov    (%rdx),%esi
  shl    %cl,%ebx
  movslq %eax,%r8
  mov    %r12d,%ebp
  add    $0x1,%r12d
  add    $0x4,%rdx
  sub    %r14d,%esi
  add    $0x1,%esi
  or     %esi,%ebx
  mov    %eax,%esi
  shl    %cl,%esi
  mov    %esi,%eax
  or     %r10d,%eax
  cmp    %r12d,%r15d
  setg   %dil
  cmp    %r8d,%r11d
  setge  %sil
  test   %sil,%dil
  jne    L120
L39:
  mov    %ebp,%eax
  mov    %ecx,%ebp
  mov    0x1c(%rsp),%edi
  mov    $0x1,%r9d
  mov    %eax,%ecx
  mov    0x8(%rsp),%rax
  imul   %ebp,%ecx
  mov    %edi,(%rax)
  shl    %cl,%r9d
  sub    $0x1,%r9d
  test   %r8d,%r8d
  js     L141
L180:
  movslq %r8d,%rax
  xor    %esi,%esi
  mov    %r13,%rdi
  mov    %r9d,0x18(%rsp)
  lea    0x4(,%rax,4),%rdx
  mov    %r8d,0x14(%rsp)
  call   <memset@plt>
  mov    0x18(%rsp),%r9d
  movslq 0x14(%rsp),%r8
L141:
  cmp    %r15d,%r12d
  jg     L103
  mov    %r15d,%eax
  mov    (%rsp),%rdi
  movslq %r12d,%rdx
  mov    %ebp,%ecx
  sub    %r12d,%eax
  add    %rdx,%rax
  lea    (%rdi,%rdx,4),%rsi
  lea    0x4(%rdi,%rax,4),%rdi
  mov    %ebx,%eax
L0:
  movslq %eax,%rdx
  and    %r9d,%eax
  add    $0x4,%rsi
  movl   $0x1,0x0(%r13,%rdx,4)
  mov    -0x4(%rsi),%edx
  shl    %cl,%eax
  sub    %r14d,%edx
  add    $0x1,%edx
  or     %edx,%eax
  cmp    %rsi,%rdi
  jne    L0
  mov    %ecx,%ebp
L202:
  mov    $0x1,%edx
  mov    %ebp,%ecx
  cmp    $0x1,%r12d
  jle    L52
  nopl   0x0(%rax)
L51:
  movslq %eax,%rsi
  add    $0x1,%edx
  and    %r9d,%eax
  movl   $0x1,0x0(%r13,%rsi,4)
  shl    %cl,%eax
  cmp    %edx,%r12d
  jne    L51
  mov    %ecx,%ebp
L52:
  test   %r8d,%r8d
  js     L198
  lea    0x4(%r13,%r8,4),%rdx
  mov    %r13,%rax
  mov    $0x1,%r8d
  nopw   0x0(%rax,%rax,1)
L171:
  mov    (%rax),%ecx
  test   %ecx,%ecx
  je     L83
  mov    %r8d,(%rax)
  add    $0x1,%r8d
L83:
  add    $0x4,%rax
  cmp    %rax,%rdx
  jne    L171
  cmp    %r15d,%r12d
  jg     L48
L53:
  mov    %r15d,%edi
  mov    (%rsp),%rcx
  sub    %r12d,%edi
  mov    %edi,%edx
  mov    %rcx,%rax
  lea    0x4(%rcx,%rdx,4),%rsi
  movslq %r12d,%rdx
  mov    %ebp,%ecx
  nopl   0x0(%rax,%rax,1)
L140:
  movslq %ebx,%r10
  and    %r9d,%ebx
  mov    0x0(%r13,%r10,4),%r10d
  shl    %cl,%ebx
  mov    %r10d,(%rax)
  mov    (%rax,%rdx,4),%r10d
  add    $0x4,%rax
  sub    %r14d,%r10d
  add    $0x1,%r10d
  or     %r10d,%ebx
  cmp    %rax,%rsi
  jne    L140
  mov    %ecx,%ebp
  add    $0x1,%edi
L187:
  cmp    %edi,%r15d
  jle    L130
  sub    $0x1,%r15d
  mov    (%rsp),%rcx
  movslq %edi,%rdx
  sub    %edi,%r15d
  add    %rdx,%r15
  lea    (%rcx,%rdx,4),%rax
  lea    0x4(%rcx,%r15,4),%rsi
  mov    %ebp,%ecx
  nopl   (%rax)
L25:
  movslq %ebx,%rdx
  add    $0x4,%rax
  and    %r9d,%ebx
  mov    0x0(%r13,%rdx,4),%edx
  shl    %cl,%ebx
  mov    %edx,-0x4(%rax)
  cmp    %rsi,%rax
  jne    L25
L130:
  mov    0x8(%rsp),%rax
  movl   $0x0,(%rax)
  mov    0x60(%rsp),%rax
  mov    %r12d,(%rax)
  add    $0x28,%rsp
  mov    %r8d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L103:
  mov    %ebx,%eax
  jmp    L202
  nopw   0x0(%rax,%rax,1)
L198:
  mov    $0x1,%r8d
  cmp    %r15d,%r12d
  jle    L53
  nop
L48:
  xor    %edi,%edi
  jmp    L187
  nopw   0x0(%rax,%rax,1)
L50:
  lea    -0x20(%rax),%ecx
  mov    0x1c(%rsp),%edi
  mov    0x8(%rsp),%rax
  xor    %r8d,%r8d
  mov    $0x1,%r9d
  xor    %ebx,%ebx
  xor    %r12d,%r12d
  shl    %cl,%r9d
  mov    %edi,(%rax)
  sub    $0x1,%r9d
  jmp    L180
```

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