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

```asm
<glp_qmd_qmdrch>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %rcx,-0x40(%rbp)
  mov    %r8,-0x48(%rbp)
  mov    %r9,-0x50(%rbp)
  mov    0x18(%rbp),%rax
  movl   $0x0,(%rax)
  mov    -0x50(%rbp),%rax
  movl   $0x0,(%rax)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  sub    $0x1,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L142
  mov    -0x14(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  jmp    L138
L118:
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x18(%rbp)
  cmpl   $0x0,-0x18(%rbp)
  je     L81
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L75
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  js     L66
  mov    -0x50(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x50(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x50(%rbp),%rax
  mov    (%rax),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rax,%rdx
  mov    -0x18(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
  jmp    L88
L66:
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movl   $0xffffffff,(%rax)
  mov    0x18(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    0x18(%rbp),%rax
  mov    %edx,(%rax)
  mov    0x18(%rbp),%rax
  mov    (%rax),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x20(%rbp),%rax
  add    %rax,%rdx
  mov    -0x18(%rbp),%eax
  mov    %eax,(%rdx)
L89:
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x18(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  sub    $0x1,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  jmp    L65
L92:
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  neg    %eax
  mov    %eax,-0x18(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  jns    L25
  jmp    L89
L25:
  cmpl   $0x0,-0x4(%rbp)
  je     L34
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L125
  mov    -0x50(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x50(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x50(%rbp),%rax
  mov    (%rax),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
L125:
  addl   $0x1,-0x1c(%rbp)
L65:
  mov    -0x1c(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jle    L92
L75:
  nop
  jmp    L88
L34:
  nop
L88:
  addl   $0x1,-0x20(%rbp)
L138:
  mov    -0x20(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jle    L118
  jmp    L103
L142:
  nop
  jmp    L103
L81:
  nop
L103:
  pop    %rbp
  ret
```

assistant: ```c
void glp_qmd_qmdrch(int *_root, int xadj[], int adjncy[], int deg[], int marker[], int *_rchsze, int rchset[], int *_nhdsze, int nbrhd[]) {
  int i, istop, istrt, j, jstop, jstrt, nabor, node;
  (*_nhdsze) = 0;
  (*_rchsze) = 0;
  istrt = xadj[(*_root)];
  istop = xadj[(*_root) + 1] - 1;
  if (istop < istrt)
    return;
  for (i = istrt; i <= istop; i++) {
    nabor = adjncy[i];
    if (nabor == 0)
      return;
    if (marker[nabor] == 0) {
      if (deg[nabor] >= 0) {
        (*_rchsze)++;
        rchset[(*_rchsze)] = nabor;
        marker[nabor] = 1;
        goto s600;
      }
      marker[nabor] = -1;
      (*_nhdsze)++;
      nbrhd[(*_nhdsze)] = nabor;
    s300:
      jstrt = xadj[nabor];
      jstop = xadj[nabor + 1] - 1;
      for (j = jstrt; j <= jstop; j++) {
        node = adjncy[j];
        nabor = -node;
        if (node < 0)
          goto s300;
        if (node == 0)
          goto s600;
        if (marker[node] == 0) {
          (*_rchsze)++;
          rchset[(*_rchsze)] = node;
          marker[node] = 1;
        }
      }
    }
  s600:;
  }
  return;
}
```