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

```asm
<graph_reverse_map>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x34(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %rdx,-0x48(%rbp)
  mov    %rcx,-0x50(%rbp)
  mov    %r8,-0x58(%rbp)
  mov    %r9,-0x60(%rbp)
  movl   $0x0,-0x24(%rbp)
  jmp    L81
L13:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  addl   $0x1,-0x24(%rbp)
L81:
  mov    -0x34(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0x24(%rbp)
  jle    L13
  movl   $0x0,-0x20(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L95
L27:
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  cltq
  add    $0x2,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  add    $0x1,%edx
  mov    %edx,(%rax)
  addl   $0x1,-0x1c(%rbp)
L37:
  mov    -0x20(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x1c(%rbp)
  jl     L27
  addl   $0x1,-0x20(%rbp)
L95:
  mov    -0x20(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L37
  movl   $0x0,-0x18(%rbp)
  jmp    L59
L1:
  mov    -0x18(%rbp),%eax
  cltq
  add    $0x2,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x18(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x18(%rbp),%eax
  cltq
  add    $0x2,%rax
  lea    0x0(,%rax,4),%rsi
  mov    -0x50(%rbp),%rax
  add    %rsi,%rax
  add    %ecx,%edx
  mov    %edx,(%rax)
  addl   $0x1,-0x18(%rbp)
L59:
  mov    -0x18(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L1
  movl   $0x0,-0x14(%rbp)
  movl   $0x0,-0x10(%rbp)
  jmp    L82
L42:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rax,%rdx
  mov    -0x14(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x60(%rbp),%rax
  add    %rax,%rdx
  mov    -0x10(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0xc(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  add    $0x1,%edx
  mov    %edx,(%rax)
  addl   $0x1,-0x10(%rbp)
L8:
  mov    -0x14(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x10(%rbp)
  jl     L42
  addl   $0x1,-0x14(%rbp)
L82:
  mov    -0x14(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L8
  nop
  nop
  pop    %rbp
  ret
```

assistant: ```c
void graph_reverse_map(int n, int *xadj, int *adj, int *rxadj, int *radj, int *rmap) {
  for (int i = 0; i < n + 2; i++) {
    rxadj[i] = 0;
  }
  for (int v = 0, j = 0; v < n; v++) {
    for (; j < xadj[v + 1]; j++) {
      int w = adj[j];
      rxadj[w + 2]++;
    }
  }
  for (int v = 0; v < n; v++) {
    rxadj[v + 2] += rxadj[v + 1];
  }
  for (int v = 0, j = 0; v < n; v++) {
    for (; j < xadj[v + 1]; j++) {
      int w = adj[j];
      int rj = rxadj[w + 1];
      radj[rj] = v;
      rmap[rj] = j;
      rxadj[w + 1]++;
    }
  }
}
```