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

```asm
<func>:
  endbr64
  push   %r15
  movslq %ecx,%r10
  push   %r14
  mov    %rdi,%r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    0x78(%rsp),%edi
  mov    0x70(%rsp),%eax
  mov    0x88(%rsp),%ebx
  mov    %edi,0x14(%rsp)
  mov    0x80(%rsp),%rdi
  mov    %eax,%r12d
  mov    %rdi,0x20(%rsp)
  lea    -0x1(%rax),%edi
  mov    %rdx,%rax
  mov    %edi,0x2c(%rsp)
  mov    %r14,%rdi
  mov    %r10,%r14
  mov    %r14d,%r15d
  test   %r14d,%r14d
  je     L40
L88:
  cmp    0x14(%rsp),%r12d
  jne    L76
  sub    $0x1,%r15d
  mov    $0x1,%ebp
  test   %r12d,%r12d
  jle    L91
  mov    %r14,0x18(%rsp)
  mov    %r13,%r14
  mov    %rdi,%r13
  mov    %ebx,0x28(%rsp)
  mov    %r15d,%ebx
  mov    %rax,%r15
L77:
  mov    0x28(%rsp),%eax
  mov    %ebx,%ecx
  mov    %r14,%rsi
  mov    %r13,%rdi
  push   %rax
  mov    0x20(%rsp),%rax
  mov    (%r15,%rax,8),%rdx
  imul   %rbp,%rdx
  add    0x28(%rsp),%rdx
  push   %rdx
  mov    0x24(%rsp),%edx
  sub    %ebp,%edx
  add    $0x1,%rbp
  push   %rdx
  mov    %r15,%rdx
  push   %r12
  mov    %r9d,0x28(%rsp)
  mov    %r8d,0x30(%rsp)
  call   <func>
  add    $0x20,%rsp
  cmp    %ebp,%r12d
  mov    0x10(%rsp),%r8d
  mov    0x8(%rsp),%r9d
  jge    L77
  mov    %r13,%rdi
  mov    0x28(%rsp),%ebx
  mov    %r14,%r13
  mov    0x18(%rsp),%r14
  mov    %r15,%rax
L91:
  add    $0x1,%ebx
  movslq %ebx,%rdx
  nopw   0x0(%rax,%rax,1)
L83:
  mov    %edx,%ebx
  mov    %rdx,%rcx
  add    $0x1,%rdx
  cmpb   $0x0,-0x1(%r13,%rdx,1)
  jne    L83
  movslq 0x2c(%rsp),%rsi
  imul   (%rax),%rsi
  movq   $0x0,0x20(%rsp)
  mov    (%rdi,%rcx,8),%rdx
  sub    %rsi,%rdx
  mov    %rdx,0x8(%rax,%r14,8)
  add    $0x1,%r14
  lea    -0x1(%r9),%edx
  cmp    %r14d,%edx
  jle    L13
  mov    %r12d,0x14(%rsp)
  mov    %r14d,%r15d
  test   %r14d,%r14d
  jne    L88
L40:
  mov    %rax,%r15
  movslq 0x14(%rsp),%rax
  mov    0x20(%rsp),%rdx
  mov    %rdi,%r14
  imul   (%r15),%rax
  mov    %r8d,%ecx
  add    %rax,%rdx
L2:
  add    $0x38,%rsp
  mov    %r13,%rsi
  mov    %r14,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1050 <mark@plt>
L76:
  mov    0x14(%rsp),%edx
  mov    %r12d,%esi
  mov    %rdi,%r14
  mov    %r15d,%r12d
  mov    %rax,%r15
  test   %edx,%edx
  je     L5
  js     L13
  movslq %r12d,%rcx
  mov    %esi,0x18(%rsp)
  lea    -0x1(%r12),%ebp
  xor    %r12d,%r12d
  lea    (%r15,%rcx,8),%rdi
  mov    %ebx,0x28(%rsp)
  mov    %r8d,%ebx
  mov    %rdi,0x8(%rsp)
L86:
  mov    0x28(%rsp),%eax
  mov    %ebx,%r8d
  mov    %ebp,%ecx
  mov    %r13,%rsi
  mov    %r14,%rdi
  push   %rax
  mov    0x10(%rsp),%rax
  mov    (%rax),%rdx
  imul   %r12,%rdx
  add    0x28(%rsp),%rdx
  push   %rdx
  mov    0x24(%rsp),%edx
  sub    %r12d,%edx
  add    $0x1,%r12
  push   %rdx
  mov    0x30(%rsp),%eax
  mov    %r15,%rdx
  push   %rax
  mov    %r9d,0x30(%rsp)
  call   <func>
  add    $0x20,%rsp
  mov    0x10(%rsp),%r9d
  cmp    %r12d,0x14(%rsp)
  jge    L86
L13:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L5:
  mov    0x20(%rsp),%rdx
  mov    %r8d,%ecx
  jmp    L2
```

assistant: ```c
void func(unsigned long long *a, unsigned char *flag, unsigned long long *output, int io, int total, int N, int K, int k, unsigned long long sum, int last) {
  if (0 == io) {
    sum += output[io] * k;
    mark(a, flag, sum, total);
  } else {
    if (K == k) {
      for (int i = 1; i <= K; i++) {
        func(a, flag, output, io - 1, total, N, K, k - i, sum + output[io] * i, last);
      }
      while (flag[++last]) {
      }
      output[++io] = a[last] - output[0] * (K - 1);
      if (io < N - 1) {
        func(a, flag, output, io, total, N, K, K, 0, last);
      }
    } else {
      if (0 == k) {
        mark(a, flag, sum, total);
      } else {
        for (int i = 0; i <= k; i++) {
          func(a, flag, output, io - 1, total, N, K, k - i, sum + output[io] * i, last);
        }
      }
    }
  }
}
```