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

```asm
<perm_member>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %r9d,%ebp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rcx,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  test   %edx,%edx
  jne    L35
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L14
  add    $0x58,%rsp
  mov    %r9d,%esi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1180 <isid@plt>
  nopl   0x0(%rax,%rax,1)
L35:
  lea    0x0(,%r9,4),%r14d
  mov    %edx,0x3c(%rsp)
  mov    %rsi,%rbx
  mov    %r8d,%r13d
  mov    %r14d,%edi
  call   <malloc@plt>
  mov    %r14d,%edi
  mov    %rax,0x30(%rsp)
  call   <malloc@plt>
  mov    %r14d,%edi
  mov    %rax,0x10(%rsp)
  call   <malloc@plt>
  mov    %r14d,%edi
  mov    %rax,%r15
  call   <malloc@plt>
  mov    %ebp,%edi
  imul   %ebp,%edi
  mov    %rax,(%rsp)
  shl    $0x2,%edi
  call   <malloc@plt>
  mov    %ebp,%edi
  imul   %r13d,%edi
  mov    %rax,0x18(%rsp)
  mov    %rax,%r14
  shl    $0x2,%edi
  call   <malloc@plt>
  sub    $0x8,%rsp
  mov    %r15,%r8
  mov    %ebp,%ecx
  mov    %rax,0x28(%rsp)
  mov    %r13d,%edx
  push   $0x1
  push   0x10(%rsp)
  push   %r14
  mov    0x28(%rsp),%rsi
  mov    (%rbx),%edi
  lea    0x60(%rsp),%r9
  call   <one_schreier_orbit@plt>
  mov    (%rbx),%edi
  add    $0x20,%rsp
  mov    %ebp,%edx
  mov    %r12,%rsi
  call   <onpoints@plt>
  mov    0x40(%rsp),%edx
  mov    %r15,%rsi
  mov    %eax,%edi
  mov    %eax,0x28(%rsp)
  call   <position@plt>
  xor    %r8d,%r8d
  mov    0x28(%rsp),%edi
  mov    0x30(%rsp),%r11
  test   %rax,%rax
  mov    0x3c(%rsp),%r10d
  jne    L2
L44:
  mov    %r11,%rdi
  mov    %r8d,0x8(%rsp)
  call   <free@plt>
  mov    0x10(%rsp),%rdi
  call   <free@plt>
  mov    %r15,%rdi
  call   <free@plt>
  mov    (%rsp),%rdi
  call   <free@plt>
  mov    0x18(%rsp),%rdi
  call   <free@plt>
  mov    0x20(%rsp),%rdi
  call   <free@plt>
  mov    0x8(%rsp),%r8d
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L14
  add    $0x58,%rsp
  mov    %r8d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L2:
  mov    (%rsp),%rdx
  mov    0x18(%rsp),%rsi
  mov    %r11,%rcx
  mov    %ebp,%r8d
  mov    %r10d,0x30(%rsp)
  mov    %r11,0x28(%rsp)
  call   <trace_schreier@plt>
  mov    0x10(%rsp),%r14
  mov    0x28(%rsp),%rdi
  mov    %ebp,%edx
  mov    %r14,%rsi
  call   <inverse@plt>
  mov    0x28(%rsp),%rdx
  mov    %r14,%rsi
  mov    %ebp,%ecx
  mov    %r12,%rdi
  call   <product@plt>
  sub    $0x8,%rsp
  mov    %ebp,%r8d
  mov    %r13d,%ecx
  lea    0x4c(%rsp),%rax
  mov    $0x1,%esi
  mov    %rbx,%rdi
  push   %rax
  mov    0x30(%rsp),%r14
  mov    0x18(%rsp),%rdx
  mov    %r14,%r9
  call   <stabilizer@plt>
  mov    0x38(%rsp),%r11
  mov    %ebp,%r9d
  mov    %r14,%rcx
  mov    0x40(%rsp),%r10d
  mov    0x54(%rsp),%r8d
  lea    0x4(%rbx),%rsi
  mov    %r11,%rdi
  mov    %r11,0x18(%rsp)
  lea    -0x1(%r10),%edx
  call   <perm_member>
  mov    %eax,%r8d
  pop    %rax
  pop    %rdx
  mov    0x8(%rsp),%r11
  jmp    L44
L14:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int perm_member(int *p, int *base, int bl, int *GS, int m, int n) {
  if (bl == 0)
    return (isid(p, n));
  else {
    int *pp = (int *)malloc(n * sizeof(int));
    int *ip = (int *)malloc(n * sizeof(int));
    int *orbit = (int *)malloc(n * sizeof(int)), ol;
    int *w = (int *)malloc(n * sizeof(int));
    int *nu = (int *)malloc(n * n * sizeof(int));
    int *stab = (int *)malloc(m * n * sizeof(int)), sl;
    int point, ret;
    one_schreier_orbit(base[0], GS, m, n, orbit, &ol, nu, w, 1);
    point = onpoints(base[0], p, n);
    if (position(point, orbit, ol)) {
      trace_schreier(point, nu, w, pp, n);
      inverse(pp, ip, n);
      product(p, ip, pp, n);
      stabilizer(base, 1, GS, m, n, stab, &sl);
      ret = perm_member(pp, base + 1, bl - 1, stab, sl, n);
    } else
      ret = 0;
    free(pp);
    free(ip);
    free(orbit);
    free(w);
    free(nu);
    free(stab);
    return (ret);
  }
}
```