user: What is the c source code of the assembly code below?

```asm
<permute>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  mov    %esi,%r13d
  push   %r12
  push   %rbx
  mov    %rdx,%rbx
  sub    $0x28,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsp,%rcx
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  movslq %esi,%rax
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rsi
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rsi
  and    $0xfffffffffffffff0,%rdx
  sub    %rsi,%rcx
  cmp    %rcx,%rsp
  je     L25
L92:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L92
L25:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L196
L141:
  mov    %rax,%rdx
  mov    %rsp,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%r15
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L126
L50:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L50
L126:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L71
L192:
  mov    %rsp,-0x50(%rbp)
  mov    %r13d,-0x3c(%rbp)
  movl   $0x1,(%rbx)
  test   %r13d,%r13d
  je     L24
  mov    %r13d,%eax
  mov    $0x1,%edi
  nopl   (%rax)
L44:
  imul   %eax,%edi
  sub    $0x1,%eax
  jne    L44
  mov    %edi,(%rbx)
  shl    $0x3,%edi
  movl   $0x0,-0x3c(%rbp)
  call   <malloc@plt>
  mov    (%rbx),%edx
  movl   $0x0,-0x3c(%rbp)
  mov    %rax,%r12
  test   %edx,%edx
  jle    L9
L33:
  lea    0x0(,%r13,4),%r14d
  nopl   0x0(%rax)
L69:
  mov    %r14d,%edi
  call   <malloc@plt>
  movslq -0x3c(%rbp),%rdx
  mov    %rax,%r8
  mov    %rdx,%rax
  mov    %r8,(%r12,%rdx,8)
  add    $0x1,%eax
  mov    %eax,-0x3c(%rbp)
  cmp    (%rbx),%eax
  jl     L69
L9:
  movl   $0x0,-0x3c(%rbp)
  test   %r13d,%r13d
  jle    L103
  lea    -0x1(%r13),%eax
  cmp    $0x2,%eax
  jbe    L7
  mov    %r13d,%edx
  movdqa D2(%rip),%xmm0
  mov    %r15,%rax
  shr    $0x2,%edx
  shl    $0x4,%rdx
  add    %r15,%rdx
  nopl   0x0(%rax)
L83:
  movups %xmm0,(%rax)
  add    $0x10,%rax
  cmp    %rax,%rdx
  jne    L83
  mov    %r13d,%eax
  and    $0xfffffffc,%eax
  test   $0x3,%r13b
  je     L103
L160:
  movslq %eax,%rdx
  lea    0x1(%rax),%ecx
  lea    (%r15,%rdx,4),%rdx
  movl   $0x1,(%rdx)
  cmp    %ecx,%r13d
  jle    L103
  add    $0x2,%eax
  movl   $0x1,0x4(%rdx)
  cmp    %r13d,%eax
  jge    L103
  movl   $0x1,0x8(%rdx)
L103:
  sub    $0x8,%rsp
  mov    -0x50(%rbp),%rdx
  mov    -0x48(%rbp),%rdi
  lea    -0x3c(%rbp),%r9
  push   $0x0
  mov    %r12,%r8
  mov    %r15,%rcx
  mov    %r13d,%esi
  call   <fun@plt>
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L174
  lea    -0x28(%rbp),%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopl   0x0(%rax)
L196:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L141
L24:
  mov    $0x8,%edi
  call   <malloc@plt>
  movl   $0x0,-0x3c(%rbp)
  mov    %rax,%r12
  mov    (%rbx),%eax
  test   %eax,%eax
  jg     L33
  jmp    L103
L7:
  xor    %eax,%eax
  jmp    L160
L71:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L192
L174:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D2
type: byte[16]

tool: {"D2": [0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00]}

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;
}
```