user: 下面的汇编指令对应的C源代码是什么:

```asm
<sort_typeBstar>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,0x10(%rsp)
  mov    %rsi,%r12
  mov    %rdx,%r15
  mov    %rcx,%rbp
  mov    %r8d,0x20(%rsp)
  mov    %rdx,%rax
  lea    0x400(%rdx),%rdx
L387:
  movl   $0x0,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L387
  mov    %rbp,%rax
  lea    0x40000(%rbp),%rdx
L508:
  movl   $0x0,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L508
  mov    0x20(%rsp),%eax
  lea    -0x1(%rax),%r14d
  movslq %eax,%r11
  mov    0x10(%rsp),%r10
  lea    -0x1(%r10,%r11,1),%rax
  mov    %rax,0x38(%rsp)
  movzbl (%rax),%edx
  mov    %r11,%r8
  mov    %r14d,%eax
L392:
  mov    %r8d,%r9d
L93:
  test   %eax,%eax
  js     L105
  movslq %eax,%rcx
  lea    -0x1(%r10,%rcx,1),%rsi
  jmp    L443
L258:
  mov    %ecx,%edx
L443:
  movslq %edx,%rcx
  addl   $0x1,(%r15,%rcx,4)
  mov    %eax,%edi
  sub    $0x1,%eax
  cmp    $0xffffffff,%eax
  je     L93
  movzbl (%rsi),%ecx
  sub    $0x1,%rsi
  cmp    %ecx,%edx
  jle    L258
  mov    %ecx,%esi
  shl    $0x8,%esi
  or     %esi,%edx
  movslq %edx,%rdx
  addl   $0x1,0x0(%rbp,%rdx,4)
  mov    %eax,-0x4(%r12,%r8,4)
  mov    %edi,%eax
  sub    $0x2,%eax
  js     L388
  movslq %eax,%rsi
  add    %r10,%rsi
L143:
  mov    %ecx,%edx
  movzbl (%rsi),%ecx
  cmp    %edx,%ecx
  jg     L388
  shl    $0x8,%edx
  or     %ecx,%edx
  movslq %edx,%rdx
  addl   $0x1,0x0(%rbp,%rdx,4)
  sub    $0x1,%eax
  sub    $0x1,%rsi
  cmp    $0xffffffff,%eax
  jne    L143
L388:
  sub    $0x1,%r8
  mov    %ecx,%edx
  jmp    L392
L105:
  mov    0x20(%rsp),%eax
  sub    %r9d,%eax
  mov    %eax,0x24(%rsp)
  mov    (%r15),%esi
  movl   $0x0,(%r15)
  add    0x0(%rbp),%esi
  mov    $0x0,%r9d
  mov    $0x1,%r10d
  mov    $0x0,%r8d
  mov    $0x1,%edx
  mov    $0x0,%edi
  jmp    L486
L367:
  mov    %r10d,%r9d
  mov    %edx,%r10d
L486:
  mov    %r8d,%eax
  or     %edx,%eax
  cltq
  lea    0x0(%rbp,%rax,4),%rax
  mov    %edi,%ecx
  add    (%rax),%ecx
  mov    %ecx,%edi
  mov    %ecx,(%rax)
  mov    %edx,%eax
  shl    $0x8,%eax
  or     %r9d,%eax
  cltq
  add    0x0(%rbp,%rax,4),%esi
  mov    %esi,%eax
  add    $0x1,%edx
  cmp    $0xff,%edx
  jle    L486
  movslq %r10d,%rdx
  lea    (%r15,%rdx,4),%rdx
  add    (%rdx),%esi
  add    %eax,%ecx
  mov    %ecx,(%rdx)
  mov    %r10d,%r8d
  shl    $0x8,%r8d
  mov    %r8d,%eax
  or     %r10d,%eax
  cltq
  add    0x0(%rbp,%rax,4),%esi
  lea    0x1(%r10),%edx
  cmp    $0xff,%edx
  jle    L367
  cmpl   $0x0,0x24(%rsp)
  jle    L365
  mov    0x24(%rsp),%ebx
  movslq %ebx,%rax
  sub    %rax,%r11
  lea    (%r12,%r11,4),%rsi
  mov    %rsi,0x18(%rsp)
  shl    $0x2,%rax
  mov    %rax,0x30(%rsp)
  lea    (%r12,%rax,1),%r13
  mov    %ebx,%eax
  sub    $0x2,%eax
  js     L491
  cltq
  mov    0x10(%rsp),%rsi
L291:
  mov    0x18(%rsp),%rbx
  movslq (%rbx,%rax,4),%rcx
  movzbl (%rsi,%rcx,1),%edx
  shl    $0x8,%edx
  movzbl 0x1(%rsi,%rcx,1),%ecx
  or     %ecx,%edx
  movslq %edx,%rdx
  lea    0x0(%rbp,%rdx,4),%rcx
  mov    (%rcx),%ebx
  lea    -0x1(%rbx),%edx
  mov    %edx,(%rcx)
  movslq %edx,%rdx
  mov    %eax,(%r12,%rdx,4)
  sub    $0x1,%rax
  test   %eax,%eax
  jns    L291
L491:
  mov    0x18(%rsp),%rax
  mov    0x30(%rsp),%rbx
  movslq -0x4(%rax,%rbx,1),%rdx
  mov    0x10(%rsp),%rbx
  movzbl (%rbx,%rdx,1),%eax
  shl    $0x8,%eax
  movzbl 0x1(%rbx,%rdx,1),%edx
  or     %edx,%eax
  cltq
  lea    0x0(%rbp,%rax,4),%rdx
  mov    (%rdx),%eax
  sub    $0x1,%eax
  mov    %eax,(%rdx)
  mov    0x24(%rsp),%esi
  lea    -0x1(%rsi),%ebx
  cltq
  mov    %ebx,(%r12,%rax,4)
  mov    %esi,%eax
  add    %eax,%eax
  mov    0x20(%rsp),%edi
  sub    %eax,%edi
  mov    %edi,0x40(%rsp)
  mov    %esi,%eax
  mov    $0xfe,%esi
  mov    %r13,0x28(%rsp)
  mov    %r14d,0x44(%rsp)
  mov    %eax,%r14d
  mov    %r15,0x48(%rsp)
  mov    %esi,%r15d
  jmp    L421
L375:
  sub    $0x1,%r13d
  cmp    %r15d,%r13d
  je     L83
L381:
  mov    %r14d,%edx
  mov    0xc(%rsp),%eax
  or     %r13d,%eax
  cltq
  mov    0x0(%rbp,%rax,4),%r14d
  mov    %edx,%eax
  sub    %r14d,%eax
  cmp    $0x1,%eax
  jle    L375
  movslq %r14d,%rax
  lea    (%r12,%rax,4),%rax
  movslq %edx,%rdx
  lea    (%r12,%rdx,4),%rcx
  sub    $0x8,%rsp
  cmp    %ebx,(%rax)
  sete   %dl
  movzbl %dl,%edx
  push   %rdx
  mov    0x30(%rsp),%esi
  push   %rsi
  push   $0x2
  mov    0x60(%rsp),%r9d
  mov    0x48(%rsp),%r8
  mov    %rax,%rdx
  mov    0x38(%rsp),%rsi
  mov    0x30(%rsp),%rdi
  mov    $0x0,%eax
  call   <sssort@plt>
  add    $0x20,%rsp
  jmp    L375
L83:
  sub    $0x1,%r15d
  test   %r14d,%r14d
  jle    L324
L421:
  mov    %r15d,%eax
  shl    $0x8,%eax
  mov    %eax,0xc(%rsp)
  mov    $0xff,%r13d
  cmp    $0xfe,%r15d
  jle    L381
  jmp    L83
L324:
  mov    0x28(%rsp),%r13
  mov    0x44(%rsp),%r14d
  mov    0x48(%rsp),%r15
  mov    %ebx,%ecx
  jmp    L49
L61:
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,(%rdi)
  test   %edx,%edx
  je     L502
  mov    %edx,%ecx
L369:
  movslq %ecx,%rdx
L376:
  mov    %edx,%esi
  mov    (%r12,%rdx,4),%eax
  not    %eax
  mov    %eax,(%r12,%rdx,4)
  cltq
  mov    %ecx,0x0(%r13,%rax,4)
  sub    $0x1,%rdx
  mov    (%r12,%rdx,4),%eax
  test   %eax,%eax
  js     L376
  cltq
  mov    %ecx,0x0(%r13,%rax,4)
  sub    $0x2,%esi
  mov    %esi,%ecx
  js     L502
L49:
  movslq %ecx,%rax
  lea    (%r12,%rax,4),%rax
  cmpl   $0x0,(%rax)
  js     L369
  mov    %ecx,%edx
L167:
  mov    %rax,%rdi
  movslq (%rax),%rsi
  mov    %edx,0x0(%r13,%rsi,4)
  sub    $0x1,%edx
  js     L73
  sub    $0x4,%rax
  cmpl   $0x0,(%rax)
  jns    L167
  jmp    L61
L50:
  test   %r14d,%r14d
  jns    L64
L243:
  test   %r14d,%r14d
  js     L305
  sub    $0x1,%r14d
  js     L243
  movslq %r14d,%rdx
  add    0x10(%rsp),%rdx
L439:
  mov    %eax,%ecx
  movzbl (%rdx),%eax
  cmp    %ecx,%eax
  jl     L50
  sub    $0x1,%r14d
  sub    $0x1,%rdx
  cmp    $0xffffffff,%r14d
  jne    L439
  jmp    L243
L64:
  mov    %r14d,%edx
  sub    $0x1,%edx
  js     L414
  movslq %edx,%rcx
  add    0x10(%rsp),%rcx
L24:
  mov    %eax,%edi
  movzbl (%rcx),%eax
  cmp    %edi,%eax
  jg     L414
  sub    $0x1,%edx
  sub    $0x1,%rcx
  cmp    $0xffffffff,%edx
  jne    L24
L414:
  test   %r14d,%r14d
  je     L17
  mov    %r14d,%edi
  sub    %edx,%edi
  mov    %r14d,%ecx
  not    %ecx
  cmp    $0x2,%edi
  cmovl  %ecx,%r14d
L17:
  movslq -0x4(%rsi),%rcx
  mov    %r14d,(%r12,%rcx,4)
  sub    $0x4,%rsi
  mov    %edx,%r14d
  jmp    L243
L305:
  mov    0x20(%rsp),%eax
  mov    %eax,0x3fffc(%rbp)
  mov    $0xfe00,%r9d
  mov    $0xfe,%r14d
  lea    -0x4(%r12),%rax
  mov    %rax,0x10(%rsp)
  mov    %ebx,%ecx
  mov    %r9d,%ebx
  jmp    L59
L371:
  mov    %r10d,%eax
  jmp    L92
L228:
  or     %ebx,%r13d
  movslq %r13d,%rdx
  lea    0x0(%rbp,%rdx,4),%rdi
  mov    0x20(%rsp),%edx
  add    $0x1,%edx
  or     %ebx,%edx
  movslq %edx,%rdx
  mov    %eax,%esi
  sub    (%rdi),%esi
  add    $0x1,%esi
  mov    %esi,0x0(%rbp,%rdx,4)
  mov    %eax,(%rdi)
  sub    $0x1,%r14
  sub    $0x100,%ebx
  cmp    $0xffffff00,%ebx
  je     L365
L59:
  mov    %r14d,0x20(%rsp)
  mov    %r14d,%r13d
  mov    0x4(%r15,%r14,4),%eax
  sub    $0x1,%eax
  mov    %r14d,%r9d
  cmp    $0xfe,%r14d
  jg     L228
  mov    %ebx,0xc(%rsp)
  mov    $0xff,%esi
  mov    %ecx,%edi
L186:
  mov    %esi,%edx
  shl    $0x8,%edx
  or     %r13d,%edx
  movslq %edx,%rdx
  lea    0x0(%rbp,%rdx,4),%rdx
  mov    %eax,%r10d
  sub    (%rdx),%r10d
  mov    %eax,(%rdx)
  mov    0xc(%rsp),%eax
  or     %esi,%eax
  cltq
  mov    0x0(%rbp,%rax,4),%r8d
  cmp    %edi,%r8d
  jg     L371
  movslq %edi,%rdx
  lea    0x0(,%rdx,4),%rcx
  lea    (%r12,%rcx,1),%rax
  mov    %edi,%r11d
  add    0x10(%rsp),%rcx
  sub    %r8d,%edi
  shl    $0x2,%rdi
  sub    %rdi,%rcx
  movslq %r10d,%rdi
  sub    %rdx,%rdi
L266:
  mov    (%rax),%edx
  mov    %edx,(%rax,%rdi,4)
  sub    $0x4,%rax
  cmp    %rax,%rcx
  jne    L266
  mov    %r8d,%eax
  sub    %r11d,%eax
  lea    -0x1(%r10,%rax,1),%eax
  lea    -0x1(%r8),%edi
L92:
  sub    $0x1,%esi
  cmp    %r9d,%esi
  jne    L186
  mov    %edi,%ecx
  jmp    L228
L73:
  sub    %ecx,%edx
  mov    %edx,(%rax)
L502:
  mov    $0x1,%ecx
  mov    0x24(%rsp),%edx
  mov    %r12,%rsi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <trsort@plt>
  mov    0x38(%rsp),%rax
  movzbl (%rax),%eax
  mov    0x30(%rsp),%rsi
  add    %r13,%rsi
  jmp    L243
L365:
  mov    0x24(%rsp),%eax
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
int sort_typeBstar(const unsigned char *T, int *SA, int *bucket_A, int *bucket_B, int n) {
  int *PAb, *ISAb, *buf;
  int i, j, k, t, m, bufsize;
  int c0, c1;
  for (i = 0; i < ((256)); ++i) {
    bucket_A[i] = 0;
  }
  for (i = 0; i < ((256) * (256)); ++i) {
    bucket_B[i] = 0;
  }
  for (i = n - 1, m = n, c0 = T[n - 1]; 0 <= i;) {
    do {
      ++bucket_A[(c1 = c0)];
    } while ((0 <= --i) && ((c0 = T[i]) >= c1));
    if (0 <= i) {
      ++(bucket_B[((c0) << 8) | (c1)]);
      SA[--m] = i;
      for (--i, c1 = c0; (0 <= i) && ((c0 = T[i]) <= c1); --i, c1 = c0) {
        ++(bucket_B[((c1) << 8) | (c0)]);
      }
    }
  }
  m = n - m;
  for (c0 = 0, i = 0, j = 0; c0 < (256); ++c0) {
    t = i + bucket_A[(c0)];
    bucket_A[(c0)] = i + j;
    i = t + (bucket_B[((c0) << 8) | (c0)]);
    for (c1 = c0 + 1; c1 < (256); ++c1) {
      j += (bucket_B[((c0) << 8) | (c1)]);
      (bucket_B[((c0) << 8) | (c1)]) = j;
      i += (bucket_B[((c1) << 8) | (c0)]);
    }
  }
  if (0 < m) {
    PAb = SA + n - m;
    ISAb = SA + m;
    for (i = m - 2; 0 <= i; --i) {
      t = PAb[i], c0 = T[t], c1 = T[t + 1];
      SA[--(bucket_B[((c0) << 8) | (c1)])] = i;
    }
    t = PAb[m - 1], c0 = T[t], c1 = T[t + 1];
    SA[--(bucket_B[((c0) << 8) | (c1)])] = m - 1;
    buf = SA + m, bufsize = n - (2 * m);
    for (c0 = (256) - 2, j = m; 0 < j; --c0) {
      for (c1 = (256) - 1; c0 < c1; j = i, --c1) {
        i = (bucket_B[((c0) << 8) | (c1)]);
        if (1 < (j - i)) {
          sssort(T, PAb, SA + i, SA + j, buf, bufsize, 2, n, *(SA + i) == (m - 1));
        }
      }
    }
    for (i = m - 1; 0 <= i; --i) {
      if (0 <= SA[i]) {
        j = i;
        do {
          ISAb[SA[i]] = i;
        } while ((0 <= --i) && (0 <= SA[i]));
        SA[i + 1] = i - j;
        if (i <= 0) {
          break;
        }
      }
      j = i;
      do {
        ISAb[SA[i] = ~SA[i]] = j;
      } while (SA[--i] < 0);
      ISAb[SA[i]] = j;
    }
    trsort(ISAb, SA, m, 1);
    for (i = n - 1, j = m, c0 = T[n - 1]; 0 <= i;) {
      for (--i, c1 = c0; (0 <= i) && ((c0 = T[i]) >= c1); --i, c1 = c0) {
      }
      if (0 <= i) {
        t = i;
        for (--i, c1 = c0; (0 <= i) && ((c0 = T[i]) <= c1); --i, c1 = c0) {
        }
        SA[ISAb[--j]] = ((t == 0) || (1 < (t - i))) ? t : ~t;
      }
    }
    (bucket_B[(((256) - 1) << 8) | ((256) - 1)]) = n;
    for (c0 = (256) - 2, k = m - 1; 0 <= c0; --c0) {
      i = bucket_A[(c0 + 1)] - 1;
      for (c1 = (256) - 1; c0 < c1; --c1) {
        t = i - (bucket_B[((c1) << 8) | (c0)]);
        (bucket_B[((c1) << 8) | (c0)]) = i;
        for (i = t, j = (bucket_B[((c0) << 8) | (c1)]); j <= k; --i, --k) {
          SA[i] = SA[k];
        }
      }
      (bucket_B[((c0) << 8) | (c0 + 1)]) = i - (bucket_B[((c0) << 8) | (c0)]) + 1;
      (bucket_B[((c0) << 8) | (c0)]) = i;
    }
  }
  return m;
}
```