user: What would the C source look like for the assembly code provided here?

```asm
<print_restricted_partitions>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x68,%rsp
  mov    %edi,-0x74(%rbp)
  mov    %esi,-0x78(%rbp)
  mov    %fs:0x28,%rsi
  mov    %rsi,-0x38(%rbp)
  xor    %esi,%esi
  mov    %rsp,%rsi
  mov    %rsi,%r13
  mov    -0x74(%rbp),%esi
  add    $0x1,%esi
  movslq %esi,%rdi
  sub    $0x1,%rdi
  mov    %rdi,-0x60(%rbp)
  movslq %esi,%rdi
  mov    %rdi,%r8
  mov    $0x0,%r9d
  movslq %esi,%rdi
  lea    0x0(,%rdi,4),%r12
  mov    -0x74(%rbp),%edi
  add    $0x1,%edi
  movslq %edi,%r8
  sub    $0x1,%r8
  mov    %r8,-0x58(%rbp)
  movslq %esi,%rsi
  mov    %rsi,%rcx
  mov    $0x0,%ebx
  movslq %edi,%rsi
  mov    %rsi,%rax
  mov    $0x0,%edx
  mov    %rbx,%rdi
  imul   %rax,%rdi
  mov    %rdx,%rsi
  imul   %rcx,%rsi
  add    %rdi,%rsi
  mul    %rcx
  lea    (%rsi,%rdx,1),%rcx
  mov    %rcx,%rdx
  mov    -0x74(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x74(%rbp),%eax
  add    $0x1,%eax
  imul   %edx,%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x50(%rbp)
  mov    -0x78(%rbp),%edx
  mov    -0x74(%rbp),%ecx
  mov    -0x50(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <partition_dbl_restr_numbers@plt>
  mov    -0x74(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x48(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0x90(%rbp)
  movq   $0x0,-0x88(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L48:
  cmp    %rdx,%rsp
  je     L41
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L48
L41:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L12
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L12:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0x64(%rbp)
  jmp    L16
L6:
  lea    -0x68(%rbp),%r8
  mov    -0x40(%rbp),%rdi
  mov    -0x64(%rbp),%ecx
  mov    -0x78(%rbp),%edx
  mov    -0x74(%rbp),%esi
  mov    -0x50(%rbp),%rax
  mov    %r8,%r9
  mov    %rdi,%r8
  mov    %rax,%rdi
  call   <partition_restr_from_id@plt>
  mov    -0x68(%rbp),%edx
  mov    -0x40(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <array_print@plt>
  addl   $0x1,-0x64(%rbp)
L16:
  mov    %r12,%rdx
  shr    $0x2,%rdx
  mov    -0x50(%rbp),%rax
  lea    0x1(%rdx),%rcx
  mov    -0x74(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  mov    (%rax,%rdx,4),%eax
  cmp    %eax,-0x64(%rbp)
  jl     L6
  mov    -0x50(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    %r13,%rsp
  nop
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L54
  call   <__stack_chk_fail@plt>
L54:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

assistant: ```c
void print_restricted_partitions(int n, int k) {
  int(*p)[n + 1][n + 1] = malloc(((n + 1) * (n + 1) * sizeof(int)));
  partition_dbl_restr_numbers(p, n, k);
  int part[n], num_part;
  int i;
  for (i = 0; i < (*p)[n][n]; i++) {
    partition_restr_from_id(p, n, k, i, part, &num_part);
    array_print(part, num_part);
  }
  free(p);
}
```