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

```asm
<graph_connected_components_perm>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %edi,-0x44(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %rcx,-0x60(%rbp)
  mov    %r8,-0x68(%rbp)
  mov    %r9,-0x70(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x70(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  lea    -0x18(%rbp),%rdx
  mov    -0x44(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <u_alloc@plt>
  mov    %rax,-0x10(%rbp)
  movl   $0x0,-0x34(%rbp)
  jmp    L39
L87:
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movl   $0xffffffff,(%rax)
  addl   $0x1,-0x34(%rbp)
L39:
  mov    -0x34(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L87
  movl   $0x0,-0x30(%rbp)
  lea    -0x38(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <s_reset@plt>
  movl   $0x0,-0x2c(%rbp)
  jmp    L107
L47:
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jns    L32
  lea    -0x38(%rbp),%rdx
  mov    -0x10(%rbp),%rcx
  mov    -0x24(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <s_push@plt>
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rax,%rdx
  mov    -0x30(%rbp),%eax
  mov    %eax,(%rdx)
  jmp    L63
L43:
  lea    -0x38(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <s_pop@plt>
  mov    %eax,-0x20(%rbp)
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x28(%rbp)
  jmp    L23
L76:
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jns    L21
  lea    -0x38(%rbp),%rdx
  mov    -0x10(%rbp),%rcx
  mov    -0x1c(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <s_push@plt>
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rax,%rdx
  mov    -0x30(%rbp),%eax
  mov    %eax,(%rdx)
L21:
  addl   $0x1,-0x28(%rbp)
L23:
  mov    -0x20(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x28(%rbp)
  jl     L76
L63:
  mov    -0x38(%rbp),%eax
  test   %eax,%eax
  jg     L43
  addl   $0x1,-0x30(%rbp)
L32:
  addl   $0x1,-0x2c(%rbp)
L107:
  mov    -0x2c(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L47
  mov    -0x30(%rbp),%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L27
  call   <__stack_chk_fail@plt>
L27:
  leave
  ret
```

assistant: ```c
int graph_connected_components_perm(int n, int *xadj, int *adj, int *perm, int *part, int *aux) {
  int *auxptr = aux;
  int *active = u_alloc(n, &auxptr);
  for (int v = 0; v < n; v++) {
    part[v] = -1;
  }
  int size;
  int nc = 0;
  s_reset(active, &size);
  for (int i = 0; i < n; i++) {
    int v = perm[i];
    if (part[v] < 0) {
      s_push(v, active, &size);
      part[v] = nc;
      while (size > 0) {
        int v = s_pop(active, &size);
        for (int j = xadj[v]; j < xadj[v + 1]; j++) {
          int w = adj[j];
          if (part[w] < 0) {
            s_push(w, active, &size);
            part[w] = nc;
          }
        }
      }
      nc++;
    }
  }
  return nc;
}
```