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

```asm
<_glp_mc21a>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edi,-0xc(%rsp)
  mov    %rdx,-0x38(%rsp)
  mov    %r9,-0x40(%rsp)
  mov    0x48(%rsp),%r14
  test   %edi,%edi
  jle    L48
  mov    %rsi,%rbx
  mov    %rcx,%r13
  mov    %r8,%r15
  lea    -0x1(%rdi),%eax
  mov    %rax,-0x8(%rsp)
  lea    0x2(%rax),%rcx
  mov    %rcx,-0x18(%rsp)
  mov    $0x1,%eax
  mov    0x38(%rsp),%rsi
  mov    0x40(%rsp),%rdi
L8:
  mov    0x0(%r13,%rax,4),%edx
  sub    $0x1,%edx
  mov    %edx,(%rsi,%rax,4)
  movl   $0x0,(%r15,%rax,4)
  movl   $0x0,(%rdi,%rax,4)
  add    $0x1,%rax
  cmp    %rcx,%rax
  jne    L8
  mov    -0xc(%rsp),%eax
  lea    0x1(%rax),%ecx
  movq   $0x1,-0x28(%rsp)
  movl   $0x0,-0x10(%rsp)
  jmp    L278
L263:
  mov    0x0(%r13,%rdi,4),%r11d
  mov    -0x38(%rsp),%rdx
  add    (%rdx,%rdi,4),%r11d
  sub    $0x1,%r11d
  mov    %r11d,%r10d
  sub    %eax,%r10d
  cmp    %r10d,%r11d
  jl     L323
  movslq %r10d,%rax
  mov    -0x30(%rsp),%rbp
L298:
  mov    %eax,%r10d
  mov    (%rbx,%rax,4),%ecx
  movslq %ecx,%rdx
  cmpl   $0x0,0x0(%rbp,%rdx,4)
  je     L128
  lea    0x1(%rax),%r10d
  add    $0x1,%rax
  cmp    %eax,%r11d
  jge    L298
L323:
  movl   $0xffffffff,(%r9)
  jmp    L133
L245:
  mov    -0x30(%rsp),%rax
  mov    (%rax,%rdx,1),%eax
  mov    -0x1c(%rsp),%edx
  mov    %edx,(%rdi)
  movslq %eax,%rdx
  mov    -0x40(%rsp),%rdi
  mov    %esi,(%rdi,%rdx,4)
  mov    %r11d,%edx
  sub    %r10d,%edx
  sub    $0x1,%edx
  mov    %edx,(%r12)
  mov    %eax,%esi
L197:
  addl   $0x1,-0x20(%rsp)
  mov    -0x20(%rsp),%eax
  cmp    %r8d,%eax
  jg     L143
L244:
  movslq %esi,%rdi
  mov    0x38(%rsp),%rax
  lea    (%rax,%rdi,4),%r9
  mov    (%r9),%eax
  test   %eax,%eax
  jns    L263
L133:
  mov    0x0(%r13,%rdi,4),%eax
  sub    $0x1,%eax
  mov    %eax,(%r14,%rdi,4)
  mov    $0x1,%ebp
  jmp    L261
L61:
  mov    -0x40(%rsp),%rax
  mov    (%rax,%r9,4),%esi
  cmp    $0xffffffff,%esi
  je     L44
  add    $0x1,%ebp
  cmp    %r8d,%ebp
  jg     L197
L261:
  movslq %esi,%r9
  lea    (%r14,%r9,4),%r12
  mov    (%r12),%eax
  test   %eax,%eax
  js     L61
  mov    0x0(%r13,%r9,4),%r11d
  mov    -0x38(%rsp),%rdi
  add    (%rdi,%r9,4),%r11d
  sub    $0x1,%r11d
  mov    %r11d,%r10d
  sub    %eax,%r10d
  cmp    %r10d,%r11d
  jl     L61
  movslq %r10d,%rax
L310:
  mov    %eax,%r10d
  mov    (%rbx,%rax,4),%ecx
  movslq %ecx,%rdx
  shl    $0x2,%rdx
  lea    (%r15,%rdx,1),%rdi
  cmp    %r8d,(%rdi)
  jne    L245
  lea    0x1(%rax),%r10d
  add    $0x1,%rax
  cmp    %eax,%r11d
  jge    L310
  jmp    L61
L143:
  mov    -0x30(%rsp),%r15
  jmp    L59
L44:
  mov    -0x30(%rsp),%r15
L221:
  addq   $0x1,-0x28(%rsp)
  mov    -0x28(%rsp),%rax
  cmp    -0x18(%rsp),%rax
  je     L159
L278:
  mov    -0x28(%rsp),%rax
  mov    %eax,-0x1c(%rsp)
  mov    -0x40(%rsp),%rsi
  movl   $0xffffffff,(%rsi,%rax,4)
  mov    %eax,%r8d
  test   %eax,%eax
  jle    L282
  mov    %eax,%esi
  movl   $0x1,-0x20(%rsp)
  mov    %r15,-0x30(%rsp)
  mov    0x40(%rsp),%r15
  jmp    L244
L159:
  mov    -0xc(%rsp),%ebx
  cmp    %ebx,-0x10(%rsp)
  jge    L26
  mov    0x38(%rsp),%rax
  add    $0x4,%rax
  mov    0x38(%rsp),%rbx
  mov    -0x8(%rsp),%rsi
  lea    0x8(%rbx,%rsi,4),%rdx
L258:
  movl   $0x0,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L258
  mov    $0x1,%eax
  mov    $0x0,%ecx
  mov    -0x18(%rsp),%rsi
  mov    0x38(%rsp),%rdi
  jmp    L40
L46:
  movslq %edx,%rdx
  mov    %eax,(%rdi,%rdx,4)
L249:
  add    $0x1,%rax
  cmp    %rsi,%rax
  je     L228
L40:
  mov    (%r15,%rax,4),%edx
  test   %edx,%edx
  jne    L46
  add    $0x1,%ecx
  movslq %ecx,%rdx
  mov    %eax,(%r14,%rdx,4)
  jmp    L249
L228:
  mov    $0x1,%eax
  mov    $0x0,%edx
  mov    -0x18(%rsp),%rcx
  mov    0x38(%rsp),%rsi
  jmp    L213
L173:
  add    $0x1,%rax
  cmp    %rcx,%rax
  je     L26
L213:
  cmpl   $0x0,(%rsi,%rax,4)
  jne    L173
  add    $0x1,%edx
  movslq %edx,%rdi
  movslq (%r14,%rdi,4),%rdi
  mov    %eax,(%r15,%rdi,4)
  jmp    L173
L48:
  movl   $0x0,-0x10(%rsp)
L26:
  mov    -0x10(%rsp),%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L128:
  mov    %rbp,%r15
L59:
  movslq %ecx,%rax
  mov    %esi,(%r15,%rax,4)
  movslq %esi,%rax
  mov    %r11d,%edx
  sub    %r10d,%edx
  sub    $0x1,%edx
  mov    0x38(%rsp),%rdi
  mov    %edx,(%rdi,%rax,4)
  addl   $0x1,-0x10(%rsp)
  mov    $0x1,%eax
  mov    -0x38(%rsp),%r9
  mov    -0x40(%rsp),%rdi
L3:
  movslq %esi,%rsi
  mov    (%rdi,%rsi,4),%esi
  cmp    $0xffffffff,%esi
  je     L221
  movslq %esi,%rdx
  mov    0x0(%r13,%rdx,4),%r10d
  add    (%r9,%rdx,4),%r10d
  sub    (%r14,%rdx,4),%r10d
  sub    $0x2,%r10d
  movslq %r10d,%rdx
  mov    (%rbx,%rdx,4),%ecx
  movslq %ecx,%rdx
  mov    %esi,(%r15,%rdx,4)
  add    $0x1,%eax
  cmp    %r8d,%eax
  jle    L3
  jmp    L221
L282:
  movslq %ecx,%rax
  mov    -0x28(%rsp),%rsi
  mov    %esi,(%r15,%rax,4)
  mov    %r11d,%eax
  sub    %r10d,%eax
  sub    $0x1,%eax
  mov    0x38(%rsp),%rdi
  mov    %eax,(%rdi,%rsi,4)
  addl   $0x1,-0x10(%rsp)
  jmp    L221
```

assistant: ```c
int _glp_mc21a(int n, const int icn[], const int ip[], const int lenr[], int iperm[], int pr[], int arp[], int cv[], int out[]) {
  int i, ii, in1, in2, j, j1, jord, k, kk, numnz;
  for (i = 1; i <= n; i++) {
    arp[i] = lenr[i] - 1;
    cv[i] = iperm[i] = 0;
  }
  numnz = 0;
  for (jord = 1; jord <= n; jord++) {
    j = jord;
    pr[j] = -1;
    for (k = 1; k <= jord; k++) {
      in1 = arp[j];
      if (in1 >= 0) {
        in2 = ip[j] + lenr[j] - 1;
        in1 = in2 - in1;
        for (ii = in1; ii <= in2; ii++) {
          i = icn[ii];
          if (iperm[i] == 0)
            goto L110;
        }
        arp[j] = -1;
      }
      out[j] = lenr[j] - 1;
      for (kk = 1; kk <= jord; kk++) {
        in1 = out[j];
        if (in1 >= 0) {
          in2 = ip[j] + lenr[j] - 1;
          in1 = in2 - in1;
          for (ii = in1; ii <= in2; ii++) {
            i = icn[ii];
            if (cv[i] != jord) {
              j1 = j;
              j = iperm[i];
              cv[i] = jord;
              pr[j] = j1;
              out[j1] = in2 - ii - 1;
              goto L100;
            }
          }
        }
        j = pr[j];
        if (j == -1)
          goto L130;
      }
    L100:;
    }
  L110:
    iperm[i] = j;
    arp[j] = in2 - ii - 1;
    numnz++;
    for (k = 1; k <= jord; k++) {
      j = pr[j];
      if (j == -1)
        break;
      ii = ip[j] + lenr[j] - out[j] - 2;
      i = icn[ii];
      iperm[i] = j;
    }
  L130:;
  }
  if (numnz < n) {
    for (i = 1; i <= n; i++)
      arp[i] = 0;
    k = 0;
    for (i = 1; i <= n; i++) {
      if (iperm[i] == 0)
        out[++k] = i;
      else
        arp[iperm[i]] = i;
    }
    k = 0;
    for (i = 1; i <= n; i++) {
      if (arp[i] == 0)
        iperm[out[++k]] = i;
    }
  }
  return numnz;
}
```