user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<mult_vec_i_3>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,-0x18(%rsp)
  sub    %ecx,%r8d
  js     L101
  mov    0x48(%rsp),%r11d
  sub    0x40(%rsp),%r11d
  mov    %rdx,%r12
  lea    0x1(%r11),%ebx
  movslq %ebx,%rax
  mov    %ebx,-0x30(%rsp)
  shl    $0x2,%rax
  mov    %rax,-0x40(%rsp)
  mov    0x38(%rsp),%eax
  sub    %r9d,%eax
  js     L101
  cltq
  movslq %r8d,%r8
  mov    %rsi,%rbp
  lea    0x8(,%rax,8),%rax
  lea    0x8(,%r8,8),%rcx
  mov    %rax,-0x38(%rsp)
  mov    %ebx,%eax
  and    $0xfffffffc,%ebx
  shr    $0x2,%eax
  mov    %rcx,-0x10(%rsp)
  movslq %ebx,%r13
  lea    -0x1(%rax),%r10d
  lea    0x1(%rbx),%eax
  mov    %ebx,-0x2c(%rsp)
  shl    $0x2,%r13
  movslq %eax,%r14
  mov    %eax,-0x28(%rsp)
  lea    0x2(%rbx),%eax
  add    $0x1,%r10
  mov    %eax,-0x24(%rsp)
  cltq
  shl    $0x4,%r10
  xor    %ebx,%ebx
  shl    $0x2,%rax
  shl    $0x2,%r14
  mov    %rax,-0x20(%rsp)
  mov    %r11d,%eax
  lea    0x4(,%rax,4),%r15
  nopl   0x0(%rax,%rax,1)
L127:
  mov    -0x18(%rsp),%rax
  xor    %r9d,%r9d
  mov    (%rax,%rbx,1),%rax
  mov    %rax,-0x48(%rsp)
  nopl   0x0(%rax)
L47:
  mov    -0x48(%rsp),%rax
  xor    %ecx,%ecx
  mov    (%rax,%r9,1),%rax
  test   %r11d,%r11d
  js     L43
  mov    0x0(%rbp,%rbx,1),%rdx
  mov    (%rdx,%r9,1),%rsi
  mov    (%r12,%rbx,1),%rdx
  mov    (%rdx,%r9,1),%rdi
  mov    %rax,%rdx
  lea    0x4(%rsi),%r8
  lea    0x4(%rdi),%rcx
  sub    %rcx,%rdx
  mov    %rax,%rcx
  cmp    $0x8,%rdx
  seta   %dl
  sub    %r8,%rcx
  cmp    $0x8,%rcx
  seta   %cl
  test   %cl,%dl
  mov    $0x0,%edx
  je     L86
  cmp    $0x2,%r11d
  jbe    L86
  pxor   %xmm3,%xmm3
  nopw   0x0(%rax,%rax,1)
L41:
  movdqu (%rsi,%rdx,1),%xmm0
  movdqu (%rdi,%rdx,1),%xmm2
  movdqu (%rsi,%rdx,1),%xmm1
  movdqu (%rdi,%rdx,1),%xmm4
  psrlq  $0x20,%xmm0
  psrlq  $0x20,%xmm2
  pmuludq %xmm4,%xmm1
  pmuludq %xmm2,%xmm0
  pshufd $0x8,%xmm1,%xmm1
  pshufd $0x8,%xmm0,%xmm0
  punpckldq %xmm0,%xmm1
  movups %xmm1,(%rax,%rdx,1)
  add    $0x10,%rdx
  paddd  %xmm1,%xmm3
  cmp    %r10,%rdx
  jne    L41
  movdqa %xmm3,%xmm0
  mov    -0x2c(%rsp),%r8d
  psrldq $0x8,%xmm0
  paddd  %xmm0,%xmm3
  movdqa %xmm3,%xmm0
  psrldq $0x4,%xmm0
  paddd  %xmm0,%xmm3
  movd   %xmm3,%ecx
  cmp    %r8d,-0x30(%rsp)
  je     L43
  mov    (%rsi,%r13,1),%edx
  imul   (%rdi,%r13,1),%edx
  mov    %edx,(%rax,%r13,1)
  add    %edx,%ecx
  cmp    -0x28(%rsp),%r11d
  jl     L43
  mov    (%rsi,%r14,1),%edx
  imul   (%rdi,%r14,1),%edx
  mov    %edx,(%rax,%r14,1)
  add    %edx,%ecx
  cmp    -0x24(%rsp),%r11d
  jl     L43
  mov    -0x20(%rsp),%r8
  mov    (%rsi,%r8,1),%edx
  imul   (%rdi,%r8,1),%edx
  mov    %edx,(%rax,%r8,1)
  add    %edx,%ecx
L43:
  mov    -0x40(%rsp),%rsi
  add    $0x8,%r9
  mov    %ecx,(%rax,%rsi,1)
  cmp    -0x38(%rsp),%r9
  jne    L47
  add    $0x8,%rbx
  cmp    -0x10(%rsp),%rbx
  jne    L127
L101:
  mov    -0x18(%rsp),%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L86:
  xor    %ecx,%ecx
  nopw   0x0(%rax,%rax,1)
L79:
  mov    (%rdi,%rdx,1),%r8d
  imul   (%rsi,%rdx,1),%r8d
  mov    %r8d,(%rax,%rdx,1)
  add    $0x4,%rdx
  add    %r8d,%ecx
  cmp    %rdx,%r15
  jne    L79
  jmp    L43
```

assistant: ```c
int ***mult_vec_i_3(int ***res, int ***vec1, int ***vec2, int lo1, int hi1, int lo2, int hi2, int lo3, int hi3) {
  int i, j, k;
  int sum = 0;
  for (i = 0; i <= hi1 - lo1; i++)
    for (j = 0; j <= hi2 - lo2; j++) {
      for (k = 0; k <= hi3 - lo3; k++) {
        res[i][j][k] = vec1[i][j][k] * vec2[i][j][k];
        sum += res[i][j][k];
      }
      res[i][j][hi3 - lo3 + 1] = sum;
      sum = 0;
    }
  return res;
}
```