user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<mmul5>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %ecx,-0x3c(%rbp)
  mov    %r8d,-0x40(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L38
L36:
  movl   $0x0,-0x18(%rbp)
  jmp    L39
L33:
  movl   $0x0,-0x14(%rbp)
  jmp    L8
L28:
  mov    -0x1c(%rbp),%eax
  imul   -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x1c(%rbp),%eax
  imul   -0x40(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    (%rax),%ecx
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x14(%rbp),%eax
  imul   -0x40(%rbp),%eax
  movslq %eax,%rsi
  mov    -0x18(%rbp),%eax
  cltq
  add    %rsi,%rax
  lea    0x0(,%rax,4),%rsi
  mov    -0x30(%rbp),%rax
  add    %rsi,%rax
  mov    (%rax),%eax
  imul   %edx,%eax
  lea    (%rcx,%rax,1),%edx
  mov    -0x8(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x8(%rbp),%rax
  mov    (%rax),%ecx
  mov    -0x14(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x14(%rbp),%eax
  add    $0x1,%eax
  imul   -0x40(%rbp),%eax
  movslq %eax,%rsi
  mov    -0x18(%rbp),%eax
  cltq
  add    %rsi,%rax
  lea    0x0(,%rax,4),%rsi
  mov    -0x30(%rbp),%rax
  add    %rsi,%rax
  mov    (%rax),%eax
  imul   %edx,%eax
  lea    (%rcx,%rax,1),%edx
  mov    -0x8(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x8(%rbp),%rax
  mov    (%rax),%ecx
  mov    -0x14(%rbp),%eax
  cltq
  add    $0x2,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x14(%rbp),%eax
  add    $0x2,%eax
  imul   -0x40(%rbp),%eax
  movslq %eax,%rsi
  mov    -0x18(%rbp),%eax
  cltq
  add    %rsi,%rax
  lea    0x0(,%rax,4),%rsi
  mov    -0x30(%rbp),%rax
  add    %rsi,%rax
  mov    (%rax),%eax
  imul   %edx,%eax
  lea    (%rcx,%rax,1),%edx
  mov    -0x8(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x8(%rbp),%rax
  mov    (%rax),%ecx
  mov    -0x14(%rbp),%eax
  cltq
  add    $0x3,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x14(%rbp),%eax
  add    $0x3,%eax
  imul   -0x40(%rbp),%eax
  movslq %eax,%rsi
  mov    -0x18(%rbp),%eax
  cltq
  add    %rsi,%rax
  lea    0x0(,%rax,4),%rsi
  mov    -0x30(%rbp),%rax
  add    %rsi,%rax
  mov    (%rax),%eax
  imul   %edx,%eax
  lea    (%rcx,%rax,1),%edx
  mov    -0x8(%rbp),%rax
  mov    %edx,(%rax)
  addl   $0x4,-0x14(%rbp)
L8:
  mov    -0x14(%rbp),%eax
  cmp    -0x40(%rbp),%eax
  jl     L28
  addl   $0x1,-0x18(%rbp)
L39:
  mov    -0x18(%rbp),%eax
  cmp    -0x40(%rbp),%eax
  jl     L33
  addl   $0x1,-0x1c(%rbp)
L38:
  mov    -0x1c(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L36
  nop
  nop
  pop    %rbp
  ret
```

assistant: ```c
void mmul5(int *a, int *b, int *res, int h, int w) {
  for (int i = 0; i < h; i++) {
    for (int j = 0; j < w; j++) {
      for (int k = 0; k < w; k += 4) {
        int *line = (a + i * w);
        int *res_pos = &(res + i * w)[j];
        *res_pos += (line)[k] * (b + k * w)[j];
        *res_pos += (line)[k + 1] * (b + (k + 1) * w)[j];
        *res_pos += (line)[k + 2] * (b + (k + 2) * w)[j];
        *res_pos += (line)[k + 3] * (b + (k + 3) * w)[j];
      }
    }
  }
}
```