user: Please show me the C implementation that matches the assembly code listed below:

```asm
<matmac>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %rdi,-0x68(%rbp)
  mov    %rsi,-0x70(%rbp)
  mov    %rdx,-0x78(%rbp)
  mov    %ecx,-0x7c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x54(%rbp)
  movl   $0x0,-0x54(%rbp)
  jmp    L58
L23:
  movl   $0x0,-0x50(%rbp)
  jmp    L94
L0:
  movl   $0x0,-0x4c(%rbp)
  jmp    L40
L67:
  mov    -0x4c(%rbp),%eax
  cltq
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x30(%rbp,%rax,4)
  addl   $0x1,-0x4c(%rbp)
L40:
  cmpl   $0x7,-0x4c(%rbp)
  jle    L67
  movl   $0x0,-0x48(%rbp)
  jmp    L129
L17:
  mov    -0x54(%rbp),%eax
  imul   -0x7c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x48(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x44(%rbp)
  movl   $0x0,-0x4c(%rbp)
  jmp    L1
L25:
  mov    -0x48(%rbp),%eax
  imul   -0x7c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x50(%rbp),%eax
  cltq
  add    %rax,%rdx
  mov    -0x4c(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x40(%rbp)
  mov    -0x48(%rbp),%eax
  imul   -0x7c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x50(%rbp),%eax
  cltq
  add    %rax,%rdx
  mov    -0x4c(%rbp),%eax
  cltq
  add    %rdx,%rax
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x3c(%rbp)
  mov    -0x48(%rbp),%eax
  imul   -0x7c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x50(%rbp),%eax
  cltq
  add    %rax,%rdx
  mov    -0x4c(%rbp),%eax
  cltq
  add    %rdx,%rax
  add    $0x2,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x38(%rbp)
  mov    -0x48(%rbp),%eax
  imul   -0x7c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x50(%rbp),%eax
  cltq
  add    %rax,%rdx
  mov    -0x4c(%rbp),%eax
  cltq
  add    %rdx,%rax
  add    $0x3,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x34(%rbp)
  mov    -0x4c(%rbp),%eax
  cltq
  movss  -0x30(%rbp,%rax,4),%xmm1
  movss  -0x40(%rbp),%xmm0
  mulss  -0x44(%rbp),%xmm0
  addss  %xmm1,%xmm0
  mov    -0x4c(%rbp),%eax
  cltq
  movss  %xmm0,-0x30(%rbp,%rax,4)
  mov    -0x4c(%rbp),%eax
  add    $0x1,%eax
  cltq
  movss  -0x30(%rbp,%rax,4),%xmm1
  movss  -0x3c(%rbp),%xmm0
  mulss  -0x44(%rbp),%xmm0
  mov    -0x4c(%rbp),%eax
  add    $0x1,%eax
  addss  %xmm1,%xmm0
  cltq
  movss  %xmm0,-0x30(%rbp,%rax,4)
  mov    -0x4c(%rbp),%eax
  add    $0x2,%eax
  cltq
  movss  -0x30(%rbp,%rax,4),%xmm1
  movss  -0x38(%rbp),%xmm0
  mulss  -0x44(%rbp),%xmm0
  mov    -0x4c(%rbp),%eax
  add    $0x2,%eax
  addss  %xmm1,%xmm0
  cltq
  movss  %xmm0,-0x30(%rbp,%rax,4)
  mov    -0x4c(%rbp),%eax
  add    $0x3,%eax
  cltq
  movss  -0x30(%rbp,%rax,4),%xmm1
  movss  -0x34(%rbp),%xmm0
  mulss  -0x44(%rbp),%xmm0
  mov    -0x4c(%rbp),%eax
  add    $0x3,%eax
  addss  %xmm1,%xmm0
  cltq
  movss  %xmm0,-0x30(%rbp,%rax,4)
  addl   $0x4,-0x4c(%rbp)
L1:
  cmpl   $0x7,-0x4c(%rbp)
  jle    L25
  addl   $0x1,-0x48(%rbp)
L129:
  mov    -0x48(%rbp),%eax
  cmp    -0x7c(%rbp),%eax
  jl     L17
  movl   $0x0,-0x4c(%rbp)
  jmp    L20
L66:
  mov    -0x54(%rbp),%eax
  imul   -0x7c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x50(%rbp),%eax
  cltq
  add    %rax,%rdx
  mov    -0x4c(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0x4c(%rbp),%eax
  cltq
  movss  -0x30(%rbp,%rax,4),%xmm0
  mov    -0x54(%rbp),%eax
  imul   -0x7c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x50(%rbp),%eax
  cltq
  add    %rax,%rdx
  mov    -0x4c(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  addss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x4c(%rbp)
L20:
  cmpl   $0x7,-0x4c(%rbp)
  jle    L66
  addl   $0x8,-0x50(%rbp)
L94:
  mov    -0x50(%rbp),%eax
  cmp    -0x7c(%rbp),%eax
  jl     L0
  addl   $0x1,-0x54(%rbp)
L58:
  mov    -0x54(%rbp),%eax
  cmp    -0x7c(%rbp),%eax
  jl     L23
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L14
  call   <__stack_chk_fail@plt>
L14:
  leave
  ret
```

assistant: ```c
void matmac(volatile float *restrict aa, volatile float *restrict bb, volatile float *restrict cc, int NN) {
  int i = 0;
  for (i = 0; i < NN; i++) {
    int j0, j1;
    for (j0 = 0; j0 < NN; j0 += 8) {
      int x;
      float tot[8];
      for (j1 = 0; j1 < 8; j1++) {
        tot[j1] = 0.0;
      }
      for (x = 0; x < NN; x++) {
        float tmp = *(aa + (i * NN) + x);
        for (j1 = 0; j1 < 8; j1 += 4) {
          float tmp2[4];
          tmp2[0] = *(bb + (x * NN) + j0 + j1 + 0);
          tmp2[1] = *(bb + (x * NN) + j0 + j1 + 1);
          tmp2[2] = *(bb + (x * NN) + j0 + j1 + 2);
          tmp2[3] = *(bb + (x * NN) + j0 + j1 + 3);
          tot[j1 + 0] += tmp * tmp2[0];
          tot[j1 + 1] += tmp * tmp2[1];
          tot[j1 + 2] += tmp * tmp2[2];
          tot[j1 + 3] += tmp * tmp2[3];
        }
      }
      for (j1 = 0; j1 < 8; j1 += 1) {
        *(cc + (i * NN) + j0 + j1) += tot[j1];
      }
    }
  }
  return;
}
```