user: Translate the below assembly code into C programming language:

```asm
<permute>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x68,%rsp
  mov    %rdi,-0x78(%rbp)
  mov    %esi,-0x7c(%rbp)
  mov    %rdx,-0x88(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x7c(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x60(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L42:
  cmp    %rdx,%rsp
  je     L107
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L42
L107:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L80
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L80:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x58(%rbp)
  mov    -0x7c(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x50(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r10
  mov    $0x0,%r11d
  movslq %eax,%rdx
  mov    %rdx,%r8
  mov    $0x0,%r9d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L26:
  cmp    %rdx,%rsp
  je     L85
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L26
L85:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L116
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L116:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x48(%rbp)
  movq   $0x0,-0x40(%rbp)
  mov    -0x7c(%rbp),%eax
  mov    %eax,-0x64(%rbp)
  mov    -0x88(%rbp),%rax
  movl   $0x1,(%rax)
  jmp    L55
L129:
  mov    -0x64(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x64(%rbp)
  mov    -0x88(%rbp),%rdx
  mov    (%rdx),%edx
  imul   %eax,%edx
  mov    -0x88(%rbp),%rax
  mov    %edx,(%rax)
L55:
  mov    -0x64(%rbp),%eax
  test   %eax,%eax
  jne    L129
  mov    -0x88(%rbp),%rax
  mov    (%rax),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0x64(%rbp)
  jmp    L124
L47:
  mov    -0x7c(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    -0x64(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x40(%rbp),%rdx
  add    %rcx,%rdx
  mov    %rax,(%rdx)
  mov    -0x64(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x64(%rbp)
L124:
  mov    -0x88(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x64(%rbp),%eax
  cmp    %eax,%edx
  jg     L47
  movl   $0x0,-0x64(%rbp)
  jmp    L7
L8:
  mov    -0x64(%rbp),%edx
  mov    -0x58(%rbp),%rax
  movslq %edx,%rdx
  movl   $0x1,(%rax,%rdx,4)
  mov    -0x64(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x64(%rbp)
L7:
  mov    -0x64(%rbp),%eax
  cmp    %eax,-0x7c(%rbp)
  jg     L8
  movl   $0x0,-0x64(%rbp)
  lea    -0x64(%rbp),%r8
  mov    -0x40(%rbp),%rdi
  mov    -0x58(%rbp),%rcx
  mov    -0x48(%rbp),%rdx
  mov    -0x7c(%rbp),%esi
  mov    -0x78(%rbp),%rax
  sub    $0x8,%rsp
  push   $0x0
  mov    %r8,%r9
  mov    %rdi,%r8
  mov    %rax,%rdi
  call   <fun@plt>
  add    $0x10,%rsp
  mov    -0x40(%rbp),%rax
  mov    %rbx,%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L113
  call   <__stack_chk_fail@plt>
L113:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

assistant: ```c
int **permute(int *nums, int numsSize, int *returnSize) {
  int i;
  int arr[numsSize];
  int tmp[numsSize];
  int **ret = NULL;
  i = numsSize;
  *returnSize = 1;
  while (i) {
    *returnSize *= i--;
  }
  ret = (int **)malloc(sizeof(int *) * *returnSize);
  for (i = 0; i < *returnSize; i++) {
    ret[i] = (int *)malloc(sizeof(int) * numsSize);
  }
  for (i = 0; i < numsSize; i++) {
    arr[i] = 1;
  }
  i = 0;
  fun(nums, numsSize, tmp, arr, ret, &i, 0);
  return ret;
}
```