user: 请从给定的汇编指令推导出C源代码：

```asm
<_glp_qmd_genqmd>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xb0,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %rdx,-0x68(%rbp)
  mov    %rcx,-0x70(%rbp)
  mov    %r8,-0x78(%rbp)
  mov    %r9,-0x80(%rbp)
  mov    0x10(%rbp),%rax
  mov    %rax,-0x88(%rbp)
  mov    0x18(%rbp),%rax
  mov    %rax,-0x90(%rbp)
  mov    0x20(%rbp),%rax
  mov    %rax,-0x98(%rbp)
  mov    0x28(%rbp),%rax
  mov    %rax,-0xa0(%rbp)
  mov    0x30(%rbp),%rax
  mov    %rax,-0xa8(%rbp)
  mov    0x38(%rbp),%rax
  mov    %rax,-0xb0(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x58(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x30(%rbp)
  mov    -0xb0(%rbp),%rax
  movl   $0x0,(%rax)
  movl   $0x1,-0x40(%rbp)
  jmp    L181
L18:
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x70(%rbp),%rax
  add    %rax,%rdx
  mov    -0x40(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rax,%rdx
  mov    -0x40(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  mov    -0x40(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    -0x40(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x60(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%edx
  sub    %edx,%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x80(%rbp),%rax
  add    %rax,%rdx
  mov    -0x18(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x18(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jge    L167
  mov    -0x18(%rbp),%eax
  mov    %eax,-0x30(%rbp)
L167:
  mov    -0x40(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x40(%rbp)
L181:
  mov    -0x58(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x40(%rbp),%eax
  cmp    %eax,%edx
  jge    L18
  movl   $0x0,-0x2c(%rbp)
L198:
  movl   $0x1,-0x24(%rbp)
  mov    -0x30(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x58(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x30(%rbp)
L188:
  mov    -0x2c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jle    L10
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0x24(%rbp)
L10:
  mov    -0x24(%rbp),%eax
  mov    %eax,-0x34(%rbp)
  jmp    L68
L109:
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x40(%rbp)
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  js     L71
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x18(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jle    L161
  mov    -0x18(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jge    L71
  mov    -0x18(%rbp),%eax
  mov    %eax,-0x30(%rbp)
L71:
  addl   $0x1,-0x34(%rbp)
L68:
  mov    -0x58(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x34(%rbp)
  jle    L109
  jmp    L198
L161:
  nop
  mov    -0x34(%rbp),%eax
  mov    %eax,-0x24(%rbp)
  mov    -0xb0(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x80(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %eax,%edx
  mov    -0xb0(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
  lea    -0x3c(%rbp),%r9
  mov    -0x88(%rbp),%r8
  mov    -0x80(%rbp),%rcx
  mov    -0x68(%rbp),%rdx
  mov    -0x60(%rbp),%rsi
  lea    -0x40(%rbp),%rax
  sub    $0x8,%rsp
  push   -0x98(%rbp)
  lea    -0x44(%rbp),%rdi
  push   %rdi
  push   -0x90(%rbp)
  mov    %rax,%rdi
  call   <_glp_qmd_qmdrch@plt>
  add    $0x20,%rsp
  mov    -0x40(%rbp),%eax
  mov    %eax,-0x28(%rbp)
L138:
  addl   $0x1,-0x2c(%rbp)
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x70(%rbp),%rax
  add    %rax,%rdx
  mov    -0x10(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rax,%rdx
  mov    -0x14(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x70(%rbp),%rax
  add    %rax,%rdx
  mov    -0x28(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rax,%rdx
  mov    -0x2c(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  movl   $0xffffffff,(%rax)
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x28(%rbp)
  cmpl   $0x0,-0x28(%rbp)
  jle    L187
  jmp    L138
L187:
  mov    -0x3c(%rbp),%eax
  test   %eax,%eax
  jle    L38
  mov    -0x44(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  lea    (%rdx,%rax,1),%r8
  mov    -0x3c(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x90(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0xa0(%rbp),%r9
  mov    -0x80(%rbp),%r10
  mov    -0x90(%rbp),%rcx
  lea    -0x3c(%rbp),%rdx
  mov    -0x68(%rbp),%rsi
  mov    -0x60(%rbp),%rax
  push   %r8
  push   %rdi
  push   -0x88(%rbp)
  push   -0xa8(%rbp)
  mov    %r10,%r8
  mov    %rax,%rdi
  call   <_glp_qmd_qmdupd@plt>
  add    $0x20,%rsp
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  movl   $0x1,-0x38(%rbp)
  jmp    L24
L168:
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  js     L60
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x18(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jge    L26
  mov    -0x18(%rbp),%eax
  mov    %eax,-0x30(%rbp)
L26:
  mov    -0x18(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jg     L60
  mov    -0x20(%rbp),%eax
  mov    %eax,-0x30(%rbp)
  mov    -0x18(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x24(%rbp)
L60:
  addl   $0x1,-0x38(%rbp)
L24:
  mov    -0x3c(%rbp),%eax
  cmp    %eax,-0x38(%rbp)
  jle    L168
  mov    -0x44(%rbp),%eax
  test   %eax,%eax
  jle    L38
  mov    -0x90(%rbp),%r8
  lea    -0x3c(%rbp),%rdi
  mov    -0x88(%rbp),%rcx
  mov    -0x68(%rbp),%rdx
  mov    -0x60(%rbp),%rsi
  lea    -0x40(%rbp),%rax
  sub    $0x8,%rsp
  push   -0x98(%rbp)
  mov    %r8,%r9
  mov    %rdi,%r8
  mov    %rax,%rdi
  call   <_glp_qmd_qmdqt@plt>
  add    $0x10,%rsp
L38:
  mov    -0x58(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x2c(%rbp)
  jge    L202
  jmp    L188
L202:
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L5
  call   <__stack_chk_fail@plt>
L5:
  leave
  ret
```

assistant: ```c
void _glp_qmd_genqmd(int *_neqns, int xadj[], int adjncy[], int perm[], int invp[], int deg[], int marker[], int rchset[], int nbrhd[], int qsize[], int qlink[], int *_nofsub) {
  int inode, ip, irch, j, mindeg, ndeg, nhdsze, node, np, num, nump1, nxnode, rchsze, search, thresh;
  mindeg = (*_neqns);
  (*_nofsub) = 0;
  for (node = 1; node <= (*_neqns); node++) {
    perm[node] = node;
    invp[node] = node;
    marker[node] = 0;
    qsize[node] = 1;
    qlink[node] = 0;
    ndeg = xadj[node + 1] - xadj[node];
    deg[node] = ndeg;
    if (ndeg < mindeg)
      mindeg = ndeg;
  }
  num = 0;
s200:
  search = 1;
  thresh = mindeg;
  mindeg = (*_neqns);
s300:
  nump1 = num + 1;
  if (nump1 > search)
    search = nump1;
  for (j = search; j <= (*_neqns); j++) {
    node = perm[j];
    if (marker[node] >= 0) {
      ndeg = deg[node];
      if (ndeg <= thresh)
        goto s500;
      if (ndeg < mindeg)
        mindeg = ndeg;
    }
  }
  goto s200;
s500:
  search = j;
  (*_nofsub) += deg[node];
  marker[node] = 1;
  _glp_qmd_qmdrch(&node, xadj, adjncy, deg, marker, &rchsze, rchset, &nhdsze, nbrhd);
  nxnode = node;
s600:
  num++;
  np = invp[nxnode];
  ip = perm[num];
  perm[np] = ip;
  invp[ip] = np;
  perm[num] = nxnode;
  invp[nxnode] = num;
  deg[nxnode] = -1;
  nxnode = qlink[nxnode];
  if (nxnode > 0)
    goto s600;
  if (rchsze > 0) {
    _glp_qmd_qmdupd(xadj, adjncy, &rchsze, rchset, deg, qsize, qlink, marker, &rchset[rchsze + 1], &nbrhd[nhdsze + 1]);
    marker[node] = 0;
    for (irch = 1; irch <= rchsze; irch++) {
      inode = rchset[irch];
      if (marker[inode] >= 0) {
        marker[inode] = 0;
        ndeg = deg[inode];
        if (ndeg < mindeg)
          mindeg = ndeg;
        if (ndeg <= thresh) {
          mindeg = thresh;
          thresh = ndeg;
          search = invp[inode];
        }
      }
    }
    if (nhdsze > 0)
      _glp_qmd_qmdqt(&node, xadj, adjncy, marker, &rchsze, rchset, nbrhd);
  }
  if (num < (*_neqns))
    goto s300;
  return;
}
```