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

```asm
<glp_qmd_qmdmrg>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdx,-0x10(%rsp)
  mov    0x40(%rsp),%rax
  cmpl   $0x0,(%rax)
  jle    L240
  mov    %rdi,%rbx
  mov    %rsi,%r13
  mov    %rcx,%r14
  mov    $0x1,%eax
  mov    0x40(%rsp),%rcx
  mov    0x48(%rsp),%rsi
L42:
  movslq (%rsi,%rax,4),%rdx
  movl   $0x0,(%r9,%rdx,4)
  mov    (%rcx),%edx
  add    $0x1,%rax
  cmp    %eax,%edx
  jge    L42
  test   %edx,%edx
  jle    L240
  movq   $0x1,-0x28(%rsp)
  lea    0x4(%r13),%r15
  mov    0x58(%rsp),%rax
  add    $0x8,%rax
  mov    %rax,-0x18(%rsp)
  mov    0x50(%rsp),%rax
  add    $0x8,%rax
  mov    %rax,-0x8(%rsp)
  mov    %r15,%rax
  mov    %r13,%r15
  mov    %r14,%r13
  mov    %rax,%r14
  jmp    L56
L225:
  neg    %eax
  jmp    L49
L31:
  mov    -0x30(%rsp),%r8
L256:
  test   %r10d,%r10d
  jle    L18
  mov    0x58(%rsp),%rax
  lea    0x4(%rax),%rsi
  lea    -0x1(%r10),%eax
  mov    -0x18(%rsp),%rcx
  lea    (%rcx,%rax,4),%rax
  mov    $0x0,%ecx
  movl   $0x0,-0x30(%rsp)
  mov    %r12d,-0x20(%rsp)
  mov    %ebp,-0x1c(%rsp)
  mov    %ecx,%ebp
  mov    %rax,%r12
  jmp    L121
L53:
  mov    -0x30(%rsp),%r8
  jmp    L256
L131:
  cmp    $0x1,%esi
  je     L98
L299:
  add    $0x4,%rdx
  cmp    %r11,%rdx
  je     L147
L137:
  mov    (%rdx),%eax
  test   %eax,%eax
  js     L225
  je     L31
  movslq %eax,%rdi
  lea    (%r9,%rdi,4),%rcx
  mov    (%rcx),%esi
  test   %esi,%esi
  jne    L131
  add    $0x1,%ebp
  movslq %ebp,%rsi
  mov    %eax,(%r8,%rsi,4)
  add    0x0(%r13,%rdi,4),%r12d
  movl   $0x1,(%rcx)
  jmp    L299
L98:
  add    $0x1,%r10d
  movslq %r10d,%rsi
  mov    0x58(%rsp),%rdi
  mov    %eax,(%rdi,%rsi,4)
  movl   $0x2,(%rcx)
  jmp    L299
L147:
  mov    -0x30(%rsp),%r8
  jmp    L256
L292:
  movl   $0x1,(%r9,%rcx,4)
  jmp    L247
L139:
  add    0x0(%r13,%rcx,4),%ebp
  movl   $0xffffffff,(%r9,%rcx,4)
  mov    %r10d,%eax
L181:
  cltq
  lea    (%r8,%rax,4),%rdx
  mov    (%rdx),%eax
  test   %eax,%eax
  jg     L181
  mov    -0x30(%rsp),%eax
  mov    %eax,(%rdx)
  mov    %r10d,-0x30(%rsp)
L247:
  add    $0x4,%rsi
  cmp    %r12,%rsi
  je     L226
L121:
  mov    (%rsi),%r10d
  movslq %r10d,%rcx
  mov    (%rbx,%rcx,4),%edi
  mov    0x4(%rbx,%rcx,4),%edx
  cmp    %edi,%edx
  jle    L139
  movslq %edi,%r11
  lea    (%r15,%r11,4),%rax
  sub    %edi,%edx
  lea    -0x1(%rdx),%edx
  add    %r11,%rdx
  lea    (%r14,%rdx,4),%rdi
L81:
  movslq (%rax),%rdx
  cmpl   $0x0,(%r9,%rdx,4)
  je     L292
  add    $0x4,%rax
  cmp    %rdi,%rax
  jne    L81
  jmp    L139
L226:
  mov    -0x20(%rsp),%r12d
  mov    %ebp,%ecx
  mov    -0x1c(%rsp),%ebp
  mov    -0x30(%rsp),%eax
  test   %eax,%eax
  jle    L18
  movslq %eax,%rdx
  mov    %ecx,0x0(%r13,%rdx,4)
  mov    0x38(%rsp),%rax
  add    (%rax),%r12d
  lea    -0x1(%r12),%eax
  mov    -0x10(%rsp),%rcx
  mov    %eax,(%rcx,%rdx,4)
  movl   $0x2,(%r9,%rdx,4)
L18:
  mov    0x48(%rsp),%rax
  mov    -0x28(%rsp),%rcx
  movslq (%rax,%rcx,4),%rax
  movl   $0x0,(%r9,%rax,4)
  test   %ebp,%ebp
  jg     L244
L168:
  addq   $0x1,-0x28(%rsp)
  mov    -0x28(%rsp),%rax
  mov    0x40(%rsp),%rcx
  cmp    %eax,(%rcx)
  jl     L240
L56:
  mov    0x48(%rsp),%rax
  mov    -0x28(%rsp),%rcx
  mov    (%rax,%rcx,4),%eax
  movslq %eax,%rdx
  movl   $0xffffffff,(%r9,%rdx,4)
  mov    $0x0,%ebp
  mov    $0x0,%r10d
  mov    $0x0,%r12d
  mov    %r8,-0x30(%rsp)
  mov    0x50(%rsp),%r8
L49:
  cltq
  mov    (%rbx,%rax,4),%ecx
  mov    0x4(%rbx,%rax,4),%eax
  cmp    %ecx,%eax
  jle    L53
  movslq %ecx,%rsi
  lea    (%r15,%rsi,4),%rdx
  sub    %ecx,%eax
  lea    -0x1(%rax),%eax
  add    %rsi,%rax
  lea    (%r14,%rax,4),%r11
  jmp    L137
L244:
  mov    0x50(%rsp),%rax
  add    $0x4,%rax
  lea    -0x1(%rbp),%edx
  mov    -0x8(%rsp),%rcx
  lea    (%rcx,%rdx,4),%rcx
L203:
  movslq (%rax),%rdx
  movl   $0x0,(%r9,%rdx,4)
  add    $0x4,%rax
  cmp    %rax,%rcx
  jne    L203
  jmp    L168
L240:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void glp_qmd_qmdmrg(int xadj[], int adjncy[], int deg[], int qsize[], int qlink[], int marker[], int *_deg0, int *_nhdsze, int nbrhd[], int rchset[], int ovrlp[]) {
  int deg1, head, inhd, iov, irch, j, jstop, jstrt, link, lnode, mark, mrgsze, nabor, node, novrlp, rchsze, root;
  if ((*_nhdsze) <= 0)
    return;
  for (inhd = 1; inhd <= (*_nhdsze); inhd++) {
    root = nbrhd[inhd];
    marker[root] = 0;
  }
  for (inhd = 1; inhd <= (*_nhdsze); inhd++) {
    root = nbrhd[inhd];
    marker[root] = -1;
    rchsze = 0;
    novrlp = 0;
    deg1 = 0;
  s200:
    jstrt = xadj[root];
    jstop = xadj[root + 1] - 1;
    for (j = jstrt; j <= jstop; j++) {
      nabor = adjncy[j];
      root = -nabor;
      if (nabor < 0)
        goto s200;
      if (nabor == 0)
        break;
      mark = marker[nabor];
      if (mark == 0) {
        rchsze++;
        rchset[rchsze] = nabor;
        deg1 += qsize[nabor];
        marker[nabor] = 1;
      } else if (mark == 1) {
        novrlp++;
        ovrlp[novrlp] = nabor;
        marker[nabor] = 2;
      }
    }
    head = 0;
    mrgsze = 0;
    for (iov = 1; iov <= novrlp; iov++) {
      node = ovrlp[iov];
      jstrt = xadj[node];
      jstop = xadj[node + 1] - 1;
      for (j = jstrt; j <= jstop; j++) {
        nabor = adjncy[j];
        if (marker[nabor] == 0) {
          marker[node] = 1;
          goto s1100;
        }
      }
      mrgsze += qsize[node];
      marker[node] = -1;
      lnode = node;
    s900:
      link = qlink[lnode];
      if (link > 0) {
        lnode = link;
        goto s900;
      }
      qlink[lnode] = head;
      head = node;
    s1100:;
    }
    if (head > 0) {
      qsize[head] = mrgsze;
      deg[head] = (*_deg0) + deg1 - 1;
      marker[head] = 2;
    }
    root = nbrhd[inhd];
    marker[root] = 0;
    if (rchsze > 0) {
      for (irch = 1; irch <= rchsze; irch++) {
        node = rchset[irch];
        marker[node] = 0;
      }
    }
  }
  return;
}
```