user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<graph_dfs_preorder>:
  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    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x68(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  lea    -0x20(%rbp),%rdx
  mov    -0x44(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <u_alloc@plt>
  mov    %rax,-0x18(%rbp)
  lea    -0x20(%rbp),%rdx
  mov    -0x44(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <u_alloc@plt>
  mov    %rax,-0x10(%rbp)
  movl   $0x0,-0x38(%rbp)
  jmp    L20
L51:
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  addl   $0x1,-0x38(%rbp)
L20:
  mov    -0x38(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L51
  movl   $0x0,-0x34(%rbp)
  lea    -0x3c(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <s_reset@plt>
  movl   $0x0,-0x30(%rbp)
  jmp    L99
L102:
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L37
  lea    -0x3c(%rbp),%rdx
  mov    -0x18(%rbp),%rcx
  mov    -0x30(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <s_push@plt>
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
  jmp    L29
L73:
  lea    -0x3c(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <s_pop@plt>
  mov    %eax,-0x28(%rbp)
  mov    -0x34(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x34(%rbp)
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x60(%rbp),%rax
  add    %rax,%rdx
  mov    -0x28(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x2c(%rbp)
  jmp    L72
L1:
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L83
  lea    -0x3c(%rbp),%rdx
  mov    -0x18(%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    -0x10(%rbp),%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
L83:
  addl   $0x1,-0x2c(%rbp)
L72:
  mov    -0x28(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x2c(%rbp)
  jl     L1
L29:
  mov    -0x3c(%rbp),%eax
  test   %eax,%eax
  jg     L73
L37:
  addl   $0x1,-0x30(%rbp)
L99:
  mov    -0x30(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L102
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L49
  call   <__stack_chk_fail@plt>
L49:
  leave
  ret
```

assistant: ```c
void graph_dfs_preorder(int n, int *xadj, int *adj, int *perm, int *aux) {
  int *auxptr = aux;
  int *active = u_alloc(n, &auxptr);
  int *visit = u_alloc(n, &auxptr);
  for (int v = 0; v < n; v++) {
    visit[v] = 0;
  }
  int p = 0;
  int size;
  s_reset(active, &size);
  for (int v = 0; v < n; v++) {
    if (!visit[v]) {
      s_push(v, active, &size);
      visit[v] = 1;
      while (size > 0) {
        int v = s_pop(active, &size);
        perm[p++] = v;
        for (int j = xadj[v]; j < xadj[v + 1]; j++) {
          int w = adj[j];
          if (!visit[w]) {
            s_push(w, active, &size);
            visit[w] = 1;
          }
        }
      }
    }
  }
}
```