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

```asm
<dwt3d_combine>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    0x90(%rsp),%rax
  mov    0x98(%rsp),%rbx
  mov    %rsi,0x48(%rsp)
  mov    0xd0(%rsp),%ebp
  mov    0xa0(%rsp),%r12d
  mov    %rdx,0x10(%rsp)
  mov    %rax,0x30(%rsp)
  mov    0xc8(%rsp),%eax
  mov    %rbx,0x38(%rsp)
  mov    0xc0(%rsp),%ebx
  mov    %r12d,%esi
  mov    %eax,%r15d
  mov    0xa8(%rsp),%r13d
  mov    0xb0(%rsp),%r14d
  mov    %rcx,0x18(%rsp)
  mov    0xb8(%rsp),%r10
  mov    %r8,0x20(%rsp)
  imul   %ebx,%r15d
  mov    %r9,0x28(%rsp)
  mov    %r14d,%ecx
  mov    %ebx,%r9d
  mov    %r13d,%edx
  push   %rbp
  mov    %r10,%r8
  imul   %ebp,%r15d
  mov    %eax,0xc(%rsp)
  push   %rax
  mov    %r10,0x50(%rsp)
  call   <dwt3d_tran_z_inv@plt>
  movslq %r15d,%rax
  push   %rbp
  mov    %ebx,%r9d
  lea    0x0(,%rax,8),%rsi
  mov    0x1c(%rsp),%eax
  mov    %r14d,%ecx
  mov    %r13d,%edx
  add    %r15d,%r15d
  push   %rax
  mov    0x60(%rsp),%r10
  movslq %r15d,%r15
  mov    0x68(%rsp),%rdi
  lea    (%r10,%rsi,1),%r8
  mov    %rsi,0x28(%rsp)
  mov    %r12d,%esi
  call   <dwt3d_tran_z_inv@plt>
  mov    0x60(%rsp),%r10
  mov    %ebx,%r9d
  mov    %r14d,%ecx
  add    $0x20,%rsp
  mov    %r13d,%edx
  mov    %r12d,%esi
  push   %rbp
  mov    0xc(%rsp),%eax
  lea    (%r10,%r15,8),%r15
  mov    %r15,%r8
  push   %rax
  mov    0x20(%rsp),%rdi
  call   <dwt3d_tran_z_inv@plt>
  add    0x18(%rsp),%r15
  push   %rbp
  mov    %ebx,%r9d
  mov    0x1c(%rsp),%eax
  mov    %r15,%r8
  mov    %r14d,%ecx
  mov    %r13d,%edx
  mov    %r12d,%esi
  push   %rax
  mov    0x38(%rsp),%rdi
  call   <dwt3d_tran_z_inv@plt>
  add    0x28(%rsp),%r15
  mov    %ebx,%r9d
  mov    %r14d,%ecx
  add    $0x20,%rsp
  mov    %r15,%r8
  mov    %r13d,%edx
  mov    %r12d,%esi
  push   %rbp
  mov    0xc(%rsp),%eax
  push   %rax
  mov    0x30(%rsp),%rdi
  call   <dwt3d_tran_z_inv@plt>
  add    0x18(%rsp),%r15
  push   %rbp
  mov    %ebx,%r9d
  mov    0x1c(%rsp),%eax
  mov    %r15,%r8
  mov    %r14d,%ecx
  mov    %r13d,%edx
  mov    %r12d,%esi
  push   %rax
  mov    0x48(%rsp),%rdi
  call   <dwt3d_tran_z_inv@plt>
  add    0x28(%rsp),%r15
  mov    %ebx,%r9d
  mov    %r14d,%ecx
  add    $0x20,%rsp
  mov    %r15,%r8
  mov    %r13d,%edx
  mov    %r12d,%esi
  push   %rbp
  mov    0xc(%rsp),%eax
  push   %rax
  mov    0x40(%rsp),%rdi
  call   <dwt3d_tran_z_inv@plt>
  mov    0x14(%rsp),%eax
  mov    %ebx,%r9d
  mov    %r14d,%ecx
  mov    0x18(%rsp),%rsi
  mov    %ebp,0xa8(%rsp)
  mov    %r13d,%edx
  mov    %eax,0xa0(%rsp)
  mov    0x48(%rsp),%rdi
  add    $0x68,%rsp
  pop    %rbx
  lea    (%r15,%rsi,1),%r8
  pop    %rbp
  mov    %r12d,%esi
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1050 <dwt3d_tran_z_inv@plt>
```

assistant: ```c
void dwt3d_combine(double *mat1, double *mat2, double *mat3, double *mat4, double *mat5, double *mat6, double *mat7, double *mat8, int rowIn, int colIn, int sliIn, double *matOut, int rowOut, int colOut, int sliOut) {
  int siz;
  siz = rowOut * colOut * sliOut;
  dwt3d_tran_z_inv(mat1, rowIn, colIn, sliIn, matOut, rowOut, colOut, sliOut);
  dwt3d_tran_z_inv(mat2, rowIn, colIn, sliIn, matOut + siz, rowOut, colOut, sliOut);
  dwt3d_tran_z_inv(mat3, rowIn, colIn, sliIn, matOut + siz * 2, rowOut, colOut, sliOut);
  dwt3d_tran_z_inv(mat4, rowIn, colIn, sliIn, matOut + siz * 3, rowOut, colOut, sliOut);
  dwt3d_tran_z_inv(mat5, rowIn, colIn, sliIn, matOut + siz * 4, rowOut, colOut, sliOut);
  dwt3d_tran_z_inv(mat6, rowIn, colIn, sliIn, matOut + siz * 5, rowOut, colOut, sliOut);
  dwt3d_tran_z_inv(mat7, rowIn, colIn, sliIn, matOut + siz * 6, rowOut, colOut, sliOut);
  dwt3d_tran_z_inv(mat8, rowIn, colIn, sliIn, matOut + siz * 7, rowOut, colOut, sliOut);
  return;
}
```