user: Converte this assembly snippet into its equivalent C code:

```asm
<search>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  mov    %r8d,%r13d
  push   %r12
  lea    0x0(,%r13,4),%r15d
  push   %rbp
  push   %rbx
  mov    %esi,%ebx
  sub    $0x98,%rsp
  mov    0xd0(%rsp),%rax
  mov    %rdx,0x28(%rsp)
  mov    %ecx,0x40(%rsp)
  mov    0xf8(%rsp),%rdx
  imul   %r8d,%ecx
  mov    %rax,0x48(%rsp)
  mov    0xe8(%rsp),%rax
  mov    %esi,0x10(%rsp)
  mov    %rax,0x8(%rsp)
  mov    0xf0(%rsp),%rax
  mov    %ecx,%edi
  mov    %r9d,0x44(%rsp)
  shl    $0x2,%edi
  mov    %rdx,0x50(%rsp)
  mov    %rax,(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  call   <malloc@plt>
  mov    %r15d,%edi
  mov    %rax,0x30(%rsp)
  call   <malloc@plt>
  mov    %r15d,%edi
  mov    %rax,0x38(%rsp)
  call   <malloc@plt>
  mov    %r15d,%edi
  mov    %rax,%r12
  call   <malloc@plt>
  mov    %r15d,%edi
  mov    %rax,%rbp
  call   <malloc@plt>
  mov    %rax,0x20(%rsp)
  lea    0x1(%rbx),%eax
  cmp    0xe0(%rsp),%eax
  jne    L76
  mov    (%rsp),%rax
  movl   $0x0,(%rax)
L44:
  mov    0x30(%rsp),%rdi
  call   <free@plt>
  mov    0x38(%rsp),%rdi
  call   <free@plt>
  mov    %r12,%rdi
  call   <free@plt>
  mov    %rbp,%rdi
  call   <free@plt>
  mov    0x20(%rsp),%rdi
  call   <free@plt>
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L8
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L76:
  mov    0xe0(%rsp),%eax
  mov    %r13d,%r8d
  mov    %r14,%rdi
  add    $0x1,%eax
  mov    %eax,0x58(%rsp)
  push   0x50(%rsp)
  push   0x8(%rsp)
  push   0x18(%rsp)
  push   %rax
  mov    0xf8(%rsp),%eax
  push   %rax
  push   0x70(%rsp)
  mov    0x74(%rsp),%r9d
  mov    0x40(%rsp),%esi
  mov    0x70(%rsp),%ecx
  mov    0x58(%rsp),%rdx
  call   <search>
  mov    0x110(%rsp),%eax
  mov    %r13d,%r8d
  mov    %r14,%rdi
  lea    -0x1(%rax),%ebx
  mov    %ebx,0x8c(%rsp)
  add    $0x28,%rsp
  mov    %ebx,%esi
  lea    0x80(%rsp),%rax
  push   %rax
  mov    0x40(%rsp),%r15
  mov    0x50(%rsp),%ecx
  mov    0x38(%rsp),%rdx
  mov    %r15,%r9
  call   <stabilizer@plt>
  movslq 0xf0(%rsp),%rax
  mov    %r13d,%ecx
  mov    %r15,%rsi
  mov    0x88(%rsp),%edx
  lea    0x8c(%rsp),%r9
  shl    $0x2,%rax
  lea    -0x4(%rax),%rbx
  mov    -0x4(%r14,%rax,1),%edi
  mov    %rbx,0x70(%rsp)
  mov    0x48(%rsp),%rbx
  mov    %rbx,%r8
  call   <one_orbit@plt>
  pop    %rax
  pop    %rdx
  cmpl   $0x1,0x7c(%rsp)
  jle    L44
  lea    0x4(%rbx),%r11
  lea    0x80(%rsp),%rax
  mov    %r13d,0x14(%rsp)
  mov    %r14,%rbx
  mov    $0x1,%r15d
  mov    %rax,0x18(%rsp)
  mov    %r11,%r13
  lea    0x84(%rsp),%rax
  mov    %r15d,%r14d
  mov    %rax,0x68(%rsp)
  mov    %rbp,%r15
  jmp    L20
L60:
  add    $0x1,%r14d
  add    $0x4,%r13
  cmp    %r14d,0x7c(%rsp)
  jle    L26
L20:
  mov    (%rsp),%rax
  mov    0x0(%r13),%ebp
  mov    %r15,%r8
  mov    0x14(%rsp),%ecx
  mov    0x18(%rsp),%r9
  mov    (%rax),%edx
  mov    0x8(%rsp),%rax
  mov    %ebp,%edi
  mov    (%rax),%rsi
  call   <one_orbit@plt>
  mov    0x10(%rsp),%r8d
  mov    %rbx,%rcx
  mov    %r12,%rsi
  mov    0x80(%rsp),%edx
  mov    %r15,%rdi
  call   <sortB@plt>
  cmp    (%r12),%ebp
  jne    L60
  mov    0x5c(%rsp),%edx
  mov    0x20(%rsp),%rsi
  mov    %rbx,%rdi
  add    $0x1,%r14d
  add    $0x4,%r13
  call   <copy_list@plt>
  mov    0x20(%rsp),%rax
  mov    0x60(%rsp),%rsi
  mov    %rbx,%rdi
  mov    %ebp,(%rax,%rsi,1)
  movl   $0x0,0x84(%rsp)
  push   0x50(%rsp)
  push   0x70(%rsp)
  push   0x10(%rsp)
  push   0x20(%rsp)
  mov    0x100(%rsp),%esi
  push   %rsi
  push   %rax
  mov    0x88(%rsp),%eax
  push   %rax
  mov    0x118(%rsp),%eax
  push   %rax
  mov    0x118(%rsp),%eax
  push   %rax
  push   0x90(%rsp)
  mov    0x94(%rsp),%r9d
  mov    0x64(%rsp),%r8d
  mov    0x90(%rsp),%ecx
  mov    0x78(%rsp),%rdx
  mov    0x60(%rsp),%esi
  call   <generate@plt>
  add    $0x50,%rsp
  cmp    %r14d,0x7c(%rsp)
  jg     L20
L26:
  mov    %r15,%rbp
  jmp    L44
L8:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void search(int *base, int bl, int *GS, int m, int n, int prop, int *info, int infol, int s, int **GSK, int *mK, int *num) {
  int *stab = (int *)malloc(m * n * sizeof(int)), sl;
  int *orbit = (int *)malloc(n * sizeof(int)), ol;
  int *tmp = (int *)malloc(n * sizeof(int));
  int *Korbit = (int *)malloc(n * sizeof(int)), Kol;
  int *list = (int *)malloc(n * sizeof(int)), ll;
  int gammas, minKorbit, i, mark;
  if (s == bl + 1) {
    *mK = 0;
  } else {
    search(base, bl, GS, m, n, prop, info, infol, s + 1, GSK, mK, num);
    stabilizer(base, s - 1, GS, m, n, stab, &sl);
    one_orbit(base[s - 1], stab, sl, n, orbit, &ol);
    for (i = 1; i < ol; i++) {
      gammas = orbit[i];
      one_orbit(gammas, *GSK, *mK, n, Korbit, &Kol);
      sortB(Korbit, tmp, Kol, base, bl);
      minKorbit = tmp[0];
      if (minKorbit == gammas) {
        copy_list(base, list, s - 1);
        list[s - 1] = gammas;
        ll = s;
        mark = 0;
        generate(base, bl, GS, m, n, prop, info, infol, s, s + 1, list, ll, GSK, mK, &mark, num);
      }
    }
  }
  free(stab);
  free(orbit);
  free(tmp);
  free(Korbit);
  free(list);
}
```