user: 请将以下的汇编代码转换成C语言代码:

```asm
<induceSA>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rcx,%r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x48,%rsp
  mov    %rdx,0x20(%rsp)
  mov    %r8d,0x2c(%rsp)
  mov    %r9d,0x34(%rsp)
  cmp    %rcx,%rdx
  je     L278
L200:
  mov    0x34(%rsp),%edx
  mov    0x20(%rsp),%rdi
  xor    %ecx,%ecx
  mov    %r13,%rsi
  call   <getBuckets@plt>
  mov    0x2c(%rsp),%eax
  sub    $0x1,%eax
  cmpl   $0x4,0x80(%rsp)
  mov    %eax,0x30(%rsp)
  movslq %eax,%rbp
  je     L135
  movzbl (%r12,%rbp,1),%r9d
  movslq 0x0(%r13,%r9,4),%rax
  lea    (%rbx,%rax,4),%rdx
  mov    0x30(%rsp),%eax
  test   %eax,%eax
  jle    L271
  movzbl -0x1(%r12,%rbp,1),%ecx
L96:
  mov    0x2c(%rsp),%eax
  neg    %eax
  cmp    %r9d,%ecx
  cmovge 0x30(%rsp),%eax
L271:
  movslq 0x2c(%rsp),%rsi
  mov    %eax,(%rdx)
  lea    0x4(%rdx),%r11
  xor    %r15d,%r15d
  mov    %rsi,0x10(%rsp)
  test   %esi,%esi
  jle    L40
  mov    %r13,0x18(%rsp)
  mov    %rbx,%r13
  mov    %r9d,%ebx
  mov    %r11,(%rsp)
  mov    %rbp,0x38(%rsp)
  jmp    L154
L133:
  movslq %ebp,%rsi
  movzbl (%r12,%rax,1),%eax
  lea    (%r12,%rsi,1),%rcx
  cmp    %al,(%rcx)
  mov    %rcx,0x8(%rsp)
  setae  %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    0x8(%rsp),%rcx
  movzbl (%rcx),%r10d
L239:
  mov    (%rsp),%rcx
  cmp    %ebx,%r10d
  je     L32
  mov    0x18(%rsp),%rsi
  sub    %r13,%rcx
  movslq %ebx,%r9
  movslq %r10d,%rax
  sar    $0x2,%rcx
  mov    %ecx,(%rsi,%r9,4)
  movslq (%rsi,%rax,4),%rax
  lea    0x0(%r13,%rax,4),%rcx
L32:
  mov    %rcx,%rax
  xor    %edi,%edi
  mov    %r10d,0x8(%rsp)
  sub    %r13,%rax
  mov    %rcx,(%rsp)
  sar    $0x2,%rax
  cmp    %r15,%rax
  setg   %dil
  call   <assert@plt>
  test   %ebp,%ebp
  mov    (%rsp),%rcx
  mov    0x8(%rsp),%r10d
  je     L179
  cmpl   $0x4,0x80(%rsp)
  movslq %ebp,%rax
  je     L152
  movzbl -0x1(%r12,%rax,1),%eax
L177:
  mov    %r14d,%edx
  neg    %edx
  cmp    %eax,%r10d
  cmovg  %edx,%ebp
L179:
  lea    0x4(%rcx),%rax
  mov    %ebp,(%rcx)
  mov    %r10d,%ebx
  mov    %rax,(%rsp)
L66:
  add    $0x1,%r15
  cmp    %r15,0x10(%rsp)
  je     L178
L154:
  mov    0x0(%r13,%r15,4),%r14d
  mov    %r14d,%eax
  not    %eax
  mov    %eax,0x0(%r13,%r15,4)
  test   %r14d,%r14d
  jle    L66
  lea    -0x1(%r14),%ebp
  cmpl   $0x4,0x80(%rsp)
  movslq %ebp,%rax
  mov    %rax,0x8(%rsp)
  movslq %r14d,%rax
  jne    L133
  movslq %ebp,%rax
  shl    $0x2,%rax
  lea    (%r12,%rax,1),%rcx
  mov    0x4(%r12,%rax,1),%eax
  cmp    %eax,(%rcx)
  mov    %rcx,0x8(%rsp)
  setge  %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    0x8(%rsp),%rcx
  mov    (%rcx),%r10d
  jmp    L239
  nopl   0x0(%rax,%rax,1)
L178:
  mov    %r13,%rbx
  mov    0x38(%rsp),%rbp
  mov    0x18(%rsp),%r13
L40:
  cmp    %r13,0x20(%rsp)
  je     L124
L185:
  mov    0x34(%rsp),%edx
  mov    0x20(%rsp),%rdi
  mov    $0x1,%ecx
  mov    %r13,%rsi
  call   <getBuckets@plt>
  movslq 0x0(%r13),%rax
  xor    %r8d,%r8d
  lea    (%rbx,%rax,4),%r9
  mov    0x30(%rsp),%eax
  test   %eax,%eax
  js     L87
  mov    %r13,0x10(%rsp)
  mov    %rbx,%r15
  mov    %r8d,%r13d
  mov    %r9,(%rsp)
  jmp    L196
  nopl   0x0(%rax)
L95:
  lea    -0x1(%r14),%ebx
  cmpl   $0x4,0x80(%rsp)
  movslq %ebx,%rax
  mov    %rax,0x8(%rsp)
  movslq %r14d,%rax
  je     L94
  movslq %ebx,%rsi
  movzbl (%r12,%rax,1),%eax
  lea    (%r12,%rsi,1),%rdx
  cmp    %al,(%rdx)
  mov    %rdx,0x8(%rsp)
  setbe  %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    0x8(%rsp),%rdx
  movzbl (%rdx),%r10d
L33:
  mov    (%rsp),%rdx
  cmp    %r13d,%r10d
  je     L210
  mov    0x10(%rsp),%rsi
  sub    %r15,%rdx
  movslq %r13d,%r8
  movslq %r10d,%rax
  sar    $0x2,%rdx
  mov    %edx,(%rsi,%r8,4)
  movslq (%rsi,%rax,4),%rax
  lea    (%r15,%rax,4),%rdx
L210:
  mov    %rdx,%rax
  xor    %edi,%edi
  mov    %r10d,0x8(%rsp)
  sub    %r15,%rax
  mov    %rdx,(%rsp)
  sar    $0x2,%rax
  cmp    %rbp,%rax
  setle  %dil
  call   <assert@plt>
  test   %ebx,%ebx
  mov    (%rsp),%rdx
  mov    0x8(%rsp),%r10d
  je     L264
  cmpl   $0x4,0x80(%rsp)
  movslq %ebx,%rax
  je     L248
  movzbl -0x1(%r12,%rax,1),%eax
L176:
  cmp    %eax,%r10d
  jge    L242
L264:
  mov    %r14d,%ebx
  neg    %ebx
L242:
  lea    -0x4(%rdx),%rax
  sub    $0x1,%rbp
  mov    %ebx,-0x4(%rdx)
  mov    %r10d,%r13d
  mov    %rax,(%rsp)
  test   %ebp,%ebp
  js     L87
L196:
  mov    (%r15,%rbp,4),%r14d
  test   %r14d,%r14d
  jg     L95
  not    %r14d
  mov    %r14d,(%r15,%rbp,4)
  sub    $0x1,%rbp
  test   %ebp,%ebp
  jns    L196
L87:
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L94:
  movslq %ebx,%rax
  shl    $0x2,%rax
  lea    (%r12,%rax,1),%rdx
  mov    0x4(%r12,%rax,1),%eax
  cmp    %eax,(%rdx)
  mov    %rdx,0x8(%rsp)
  setle  %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    0x8(%rsp),%rdx
  mov    (%rdx),%r10d
  jmp    L33
  nopl   0x0(%rax)
L248:
  mov    -0x4(%r12,%rax,4),%eax
  jmp    L176
  nopw   0x0(%rax,%rax,1)
L152:
  mov    -0x4(%r12,%rax,4),%eax
  jmp    L177
  nopw   0x0(%rax,%rax,1)
L135:
  movslq (%r12,%rbp,4),%rax
  lea    0x0(,%rbp,4),%rcx
  mov    %rax,%r9
  movslq 0x0(%r13,%rax,4),%rax
  lea    (%rbx,%rax,4),%rdx
  mov    0x30(%rsp),%eax
  test   %eax,%eax
  jle    L271
  mov    -0x4(%r12,%rcx,1),%ecx
  jmp    L96
  cs nopw 0x0(%rax,%rax,1)
L278:
  mov    0x80(%rsp),%r8d
  mov    0x2c(%rsp),%edx
  mov    %r9d,%ecx
  mov    0x20(%rsp),%rsi
  call   <getCounts@plt>
  jmp    L200
  xchg   %ax,%ax
L124:
  mov    0x80(%rsp),%r8d
  mov    0x34(%rsp),%ecx
  mov    %r12,%rdi
  mov    0x2c(%rsp),%edx
  mov    0x20(%rsp),%rsi
  call   <getCounts@plt>
  jmp    L185
```

assistant: ```c
void induceSA(const void *T, int *SA, int *C, int *B, int n, int k, int cs) {
  int *b, i, j;
  int c0, c1;
  if (C == B) {
    getCounts(T, C, n, k, cs);
  }
  getBuckets(C, B, k, 0);
  j = n - 1;
  b = SA + B[c1 = (cs == sizeof(int) ? ((int *)T)[(j)] : ((unsigned char *)T)[(j)])];
  *b++ = ((0 < j) && ((cs == sizeof(int) ? ((int *)T)[(j - 1)] : ((unsigned char *)T)[(j - 1)]) < c1)) ? ~j : j;
  for (i = 0; i < n; ++i) {
    j = SA[i], SA[i] = ~j;
    if (0 < j) {
      --j;
      assert((cs == sizeof(int) ? ((int *)T)[(j)] : ((unsigned char *)T)[(j)]) >= (cs == sizeof(int) ? ((int *)T)[(j + 1)] : ((unsigned char *)T)[(j + 1)]));
      if ((c0 = (cs == sizeof(int) ? ((int *)T)[(j)] : ((unsigned char *)T)[(j)])) != c1) {
        B[c1] = b - SA;
        b = SA + B[c1 = c0];
      }
      assert(i < (b - SA));
      *b++ = ((0 < j) && ((cs == sizeof(int) ? ((int *)T)[(j - 1)] : ((unsigned char *)T)[(j - 1)]) < c1)) ? ~j : j;
    }
  }
  if (C == B) {
    getCounts(T, C, n, k, cs);
  }
  getBuckets(C, B, k, 1);
  for (i = n - 1, b = SA + B[c1 = 0]; 0 <= i; --i) {
    if (0 < (j = SA[i])) {
      --j;
      assert((cs == sizeof(int) ? ((int *)T)[(j)] : ((unsigned char *)T)[(j)]) <= (cs == sizeof(int) ? ((int *)T)[(j + 1)] : ((unsigned char *)T)[(j + 1)]));
      if ((c0 = (cs == sizeof(int) ? ((int *)T)[(j)] : ((unsigned char *)T)[(j)])) != c1) {
        B[c1] = b - SA;
        b = SA + B[c1 = c0];
      }
      assert((b - SA) <= i);
      *--b = ((j == 0) || ((cs == sizeof(int) ? ((int *)T)[(j - 1)] : ((unsigned char *)T)[(j - 1)]) > c1)) ? ~j : j;
    } else {
      SA[i] = ~j;
    }
  }
}
```