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

```asm
<dgemm2>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x70,%rsp
  mov    %rdx,0x60(%rsp)
  mov    %ecx,-0x58(%rsp)
  mov    %r8d,0x4(%rsp)
  test   %ecx,%ecx
  jle    L23
  mov    %ecx,%ebx
  mov    %ecx,%eax
  movl   $0x0,0x18(%rsp)
  mov    %rdi,%r13
  imul   %r8d,%ebx
  add    %eax,%eax
  movl   $0x0,(%rsp)
  mov    %rsi,%r14
  mov    %eax,-0x14(%rsp)
  cltq
  movq   $0x0,0x20(%rsp)
  mov    %ebx,0x1c(%rsp)
  movslq %ebx,%rbx
  mov    %rbx,0x58(%rsp)
  movslq %ecx,%rbx
  mov    %rbx,0x28(%rsp)
  lea    0x0(,%rax,8),%rbx
  shl    $0x4,%rax
  mov    %rax,%r15
  movslq %r8d,%rax
  mov    %rbx,-0x50(%rsp)
  mov    %rax,0x30(%rsp)
L81:
  mov    (%rsp),%eax
  mov    0x4(%rsp),%ebx
  add    %eax,%ebx
  mov    %ebx,-0x18(%rsp)
  cmp    %ebx,%eax
  jge    L22
  mov    0x20(%rsp),%rax
  mov    0x60(%rsp),%rbx
  movq   $0x0,-0x8(%rsp)
  movl   $0x0,-0x24(%rsp)
  shl    $0x3,%rax
  add    %rax,%rbx
  mov    %rbx,0x48(%rsp)
  lea    (%rax,%r13,1),%rbx
  mov    %rbx,0x38(%rsp)
  mov    0x28(%rsp),%rbx
  lea    0x0(,%rbx,8),%rdx
  lea    0x0(%r13,%rdx,1),%rbx
  sub    %rax,%rdx
  mov    %rbx,0x40(%rsp)
  mov    %rdx,-0x20(%rsp)
L42:
  mov    -0x24(%rsp),%eax
  mov    0x4(%rsp),%esi
  mov    %eax,%ebx
  add    %esi,%ebx
  mov    %ebx,-0x54(%rsp)
  cmp    %ebx,%eax
  jge    L76
  mov    0x48(%rsp),%rax
  mov    -0x8(%rsp),%rbx
  mov    %esi,-0x68(%rsp)
  movq   $0x0,0x8(%rsp)
  lea    (%rax,%rbx,8),%rax
  movl   $0x0,0x10(%rsp)
  mov    %rax,0x50(%rsp)
  mov    -0x58(%rsp),%eax
  movl   $0x0,-0x60(%rsp)
  mov    %eax,0x14(%rsp)
  mov    %r14,%rax
  mov    %r13,%r14
  mov    %rax,%r13
L38:
  mov    0x8(%rsp),%rax
  movslq 0x10(%rsp),%rcx
  mov    -0x60(%rsp),%ebx
  movslq 0x14(%rsp),%rdx
  lea    0x0(,%rax,8),%r8
  mov    0x38(%rsp),%rax
  sub    %rcx,%rdx
  lea    (%rax,%r8,1),%r9
  mov    -0x8(%rsp),%rax
  add    0x40(%rsp),%r8
  lea    0x0(,%rdx,8),%rsi
  mov    %rsi,-0x40(%rsp)
  add    %rcx,%rax
  lea    0x0(%r13,%rax,8),%rax
  mov    %rax,-0x10(%rsp)
  mov    -0x68(%rsp),%eax
  sub    $0x1,%eax
  sub    %ebx,%eax
  mov    %eax,-0x38(%rsp)
  shr    $0x2,%eax
  lea    -0x1(%rax),%edx
  lea    (%rbx,%rax,4),%eax
  mov    %eax,-0x34(%rsp)
  mov    0x18(%rsp),%eax
  add    $0x1,%rdx
  shl    $0x5,%rdx
  mov    %eax,-0x5c(%rsp)
  mov    0x50(%rsp),%rax
  mov    %rdx,-0x48(%rsp)
  mov    %rax,-0x30(%rsp)
  mov    (%rsp),%eax
  mov    %eax,-0x28(%rsp)
  xchg   %ax,%ax
L90:
  mov    -0x5c(%rsp),%eax
  add    -0x58(%rsp),%eax
  mov    -0x30(%rsp),%r12
  mov    -0x20(%rsp),%rbp
  mov    %eax,-0x6c(%rsp)
  mov    -0x10(%rsp),%rsi
  mov    -0x24(%rsp),%ebx
  add    %r12,%rbp
  nopw   0x0(%rax,%rax,1)
L55:
  lea    0x1(%rbx),%eax
  movsd  0x0(%rbp),%xmm5
  mov    -0x68(%rsp),%edi
  movsd  (%r12),%xmm6
  movsd  0x8(%r12),%xmm4
  mov    %eax,-0x70(%rsp)
  movsd  0x8(%rbp),%xmm3
  cmp    %edi,-0x60(%rsp)
  jge    L59
  cmpl   $0x3,-0x38(%rsp)
  jbe    L126
  mov    -0x40(%rsp),%rax
  mov    %ebx,-0x64(%rsp)
  lea    0x8(%r9),%r11
  xor    %edx,%edx
  mov    -0x50(%rsp),%rcx
  mov    -0x48(%rsp),%rbx
  lea    0x8(%r8),%r10
  lea    (%rax,%rsi,1),%rdi
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L113:
  movsd  (%rsi,%rdx,1),%xmm11
  movsd  (%rdi,%rdx,1),%xmm2
  movupd (%r9,%rax,1),%xmm10
  movupd (%r11,%rax,1),%xmm1
  movupd (%r8,%rax,1),%xmm8
  movupd (%r10,%rax,1),%xmm9
  movhpd (%rsi,%rcx,1),%xmm11
  movhpd (%rdi,%rcx,1),%xmm2
  movsd  0x8(%rsi,%rdx,1),%xmm7
  movsd  0x8(%rdi,%rdx,1),%xmm0
  add    %r15,%rdx
  movhpd 0x10(%r9,%rax,1),%xmm10
  movhpd 0x10(%r11,%rax,1),%xmm1
  movapd %xmm2,%xmm12
  movapd %xmm11,%xmm13
  movhpd 0x10(%r8,%rax,1),%xmm8
  movhpd 0x10(%r10,%rax,1),%xmm9
  add    $0x20,%rax
  movhpd 0x8(%rcx,%rsi,1),%xmm7
  movhpd 0x8(%rdi,%rcx,1),%xmm0
  add    %r15,%rcx
  mulpd  %xmm1,%xmm12
  mulpd  %xmm10,%xmm13
  mulpd  %xmm0,%xmm1
  mulpd  %xmm7,%xmm10
  mulpd  %xmm9,%xmm2
  mulpd  %xmm8,%xmm11
  mulpd  %xmm9,%xmm0
  addpd  %xmm13,%xmm12
  mulpd  %xmm8,%xmm7
  addpd  %xmm10,%xmm1
  addsd  %xmm12,%xmm6
  unpckhpd %xmm12,%xmm12
  addpd  %xmm11,%xmm2
  addsd  %xmm1,%xmm4
  unpckhpd %xmm1,%xmm1
  addpd  %xmm7,%xmm0
  addsd  %xmm12,%xmm6
  addsd  %xmm2,%xmm5
  unpckhpd %xmm2,%xmm2
  addsd  %xmm1,%xmm4
  addsd  %xmm0,%xmm3
  unpckhpd %xmm0,%xmm0
  addsd  %xmm2,%xmm5
  addsd  %xmm0,%xmm3
  cmp    %rbx,%rax
  jne    L113
  mov    -0x64(%rsp),%ebx
  mov    -0x34(%rsp),%eax
L108:
  mov    -0x5c(%rsp),%r11d
  mov    -0x6c(%rsp),%edi
  mov    -0x58(%rsp),%r10d
  lea    (%r11,%rax,1),%edx
  movslq %edx,%rdx
  movsd  (%r14,%rdx,8),%xmm1
  lea    0x1(%rax),%edx
  lea    (%r11,%rdx,1),%ecx
  add    %edi,%edx
  movslq %ecx,%rcx
  movslq %edx,%rdx
  movapd %xmm1,%xmm12
  movsd  (%r14,%rcx,8),%xmm8
  lea    (%rax,%rdi,1),%ecx
  movsd  (%r14,%rdx,8),%xmm9
  movslq %ecx,%rcx
  movsd  (%r14,%rcx,8),%xmm0
  mov    %r10d,%ecx
  movapd %xmm8,%xmm13
  imul   %eax,%ecx
  lea    (%rcx,%rbx,1),%edx
  movslq %edx,%rdx
  movsd  0x0(%r13,%rdx,8),%xmm2
  lea    (%rcx,%r10,1),%edx
  lea    (%rdx,%rbx,1),%edi
  mulsd  %xmm2,%xmm12
  movslq %edi,%rdi
  movsd  0x0(%r13,%rdi,8),%xmm11
  mov    -0x70(%rsp),%edi
  mulsd  %xmm0,%xmm2
  mulsd  %xmm11,%xmm13
  add    %edi,%ecx
  mulsd  %xmm9,%xmm11
  movslq %ecx,%rcx
  movsd  0x0(%r13,%rcx,8),%xmm10
  mov    %edi,%ecx
  add    %edx,%ecx
  mulsd  %xmm10,%xmm1
  movslq %ecx,%rcx
  movsd  0x0(%r13,%rcx,8),%xmm7
  mulsd  %xmm10,%xmm0
  addsd  %xmm13,%xmm12
  lea    0x2(%rax),%ecx
  addsd  %xmm11,%xmm2
  mulsd  %xmm7,%xmm8
  mulsd  %xmm9,%xmm7
  addsd  %xmm12,%xmm6
  addsd  %xmm2,%xmm5
  addsd  %xmm8,%xmm1
  addsd  %xmm7,%xmm0
  addsd  %xmm1,%xmm4
  addsd  %xmm0,%xmm3
  cmp    -0x68(%rsp),%ecx
  jge    L59
  lea    (%r11,%rcx,1),%edi
  add    $0x3,%eax
  add    %r10d,%edx
  movslq %edi,%rdi
  movsd  (%r14,%rdi,8),%xmm8
  lea    (%r11,%rax,1),%edi
  movslq %edi,%rdi
  movsd  (%r14,%rdi,8),%xmm1
  mov    -0x6c(%rsp),%edi
  add    %edi,%eax
  add    %edi,%ecx
  mov    -0x70(%rsp),%edi
  cltq
  movslq %ecx,%rcx
  movsd  (%r14,%rax,8),%xmm10
  lea    (%rbx,%rdx,1),%eax
  movsd  (%r14,%rcx,8),%xmm9
  cltq
  movsd  0x0(%r13,%rax,8),%xmm11
  lea    (%r10,%rdx,1),%eax
  add    %edi,%edx
  lea    (%rbx,%rax,1),%ecx
  add    %edi,%eax
  movslq %edx,%rdx
  movslq %ecx,%rcx
  cltq
  movapd %xmm11,%xmm13
  movsd  0x0(%r13,%rdx,8),%xmm7
  movsd  0x0(%r13,%rcx,8),%xmm2
  movsd  0x0(%r13,%rax,8),%xmm0
  mulsd  %xmm8,%xmm13
  mulsd  %xmm9,%xmm11
  mulsd  %xmm7,%xmm8
  movapd %xmm2,%xmm12
  mulsd  %xmm1,%xmm12
  mulsd  %xmm10,%xmm2
  mulsd  %xmm0,%xmm1
  mulsd  %xmm9,%xmm7
  mulsd  %xmm10,%xmm0
  addsd  %xmm13,%xmm12
  addsd  %xmm11,%xmm2
  addsd  %xmm8,%xmm1
  addsd  %xmm12,%xmm6
  addsd  %xmm7,%xmm0
  addsd  %xmm2,%xmm5
  addsd  %xmm1,%xmm4
  addsd  %xmm0,%xmm3
L59:
  add    $0x2,%ebx
  add    $0x10,%r12
  add    $0x10,%rbp
  add    $0x10,%rsi
  movsd  %xmm6,-0x10(%r12)
  movsd  %xmm5,-0x10(%rbp)
  movsd  %xmm4,-0x8(%r12)
  movsd  %xmm3,-0x8(%rbp)
  cmp    -0x54(%rsp),%ebx
  jl     L55
  mov    -0x50(%rsp),%rbx
  addl   $0x2,-0x28(%rsp)
  mov    -0x14(%rsp),%edi
  add    %rbx,-0x30(%rsp)
  add    %edi,-0x5c(%rsp)
  mov    -0x28(%rsp),%eax
  add    %rbx,%r9
  add    %rbx,%r8
  cmp    -0x18(%rsp),%eax
  jl     L90
  mov    0x4(%rsp),%ebx
  mov    0x1c(%rsp),%esi
  add    %ebx,-0x60(%rsp)
  mov    0x30(%rsp),%rdi
  add    %ebx,-0x68(%rsp)
  mov    -0x60(%rsp),%eax
  add    %esi,0x10(%rsp)
  add    %rdi,0x8(%rsp)
  add    %esi,0x14(%rsp)
  cmp    %eax,-0x58(%rsp)
  jg     L38
  mov    %r13,%rax
  mov    %r14,%r13
  mov    %rax,%r14
L76:
  mov    -0x54(%rsp),%eax
  mov    0x30(%rsp),%rsi
  add    %rsi,-0x8(%rsp)
  mov    %eax,-0x24(%rsp)
  cmp    %eax,-0x58(%rsp)
  jg     L42
L22:
  mov    -0x18(%rsp),%eax
  mov    0x1c(%rsp),%esi
  add    %esi,0x18(%rsp)
  mov    0x58(%rsp),%rsi
  mov    %eax,(%rsp)
  add    %rsi,0x20(%rsp)
  add    %rsi,0x28(%rsp)
  cmp    %eax,-0x58(%rsp)
  jg     L81
L23:
  add    $0x70,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L126:
  mov    -0x60(%rsp),%eax
  jmp    L108
```

assistant: ```c
void dgemm2(double *a, double *b, double *c, int n, int BLOCK_SIZE) {
  int i, j, k;
  int ii, jj, kk;
  for (i = 0; i < n; i += BLOCK_SIZE) {
    for (j = 0; j < n; j += BLOCK_SIZE) {
      for (k = 0; k < n; k += BLOCK_SIZE) {
        for (ii = i; ii < i + BLOCK_SIZE; ii += 2) {
          for (jj = j; jj < j + BLOCK_SIZE; jj += 2) {
            register double cc0 = c[ii * n + jj];
            register double cc1 = c[(ii + 1) * n + jj];
            register double cc2 = c[ii * n + (jj + 1)];
            register double cc3 = c[(ii + 1) * n + (jj + 1)];
            for (kk = k; kk < k + BLOCK_SIZE; kk += 2) {
              register double aa0 = a[ii * n + kk];
              register double aa1 = a[ii * n + (kk + 1)];
              register double aa2 = a[(ii + 1) * n + kk];
              register double aa3 = a[(ii + 1) * n + (kk + 1)];
              register double bb0 = b[kk * n + jj];
              register double bb1 = b[(kk + 1) * n + jj];
              register double bb2 = b[kk * n + (jj + 1)];
              register double bb3 = b[(kk + 1) * n + (jj + 1)];
              cc0 += aa0 * bb0 + aa1 * bb1;
              cc1 += aa2 * bb0 + aa3 * bb1;
              cc2 += aa0 * bb2 + aa1 * bb3;
              cc3 += aa2 * bb2 + aa3 * bb3;
            }
            c[ii * n + jj] = cc0;
            c[(ii + 1) * n + jj] = cc1;
            c[ii * n + (jj + 1)] = cc2;
            c[(ii + 1) * n + (jj + 1)] = cc3;
          }
        }
      }
    }
  }
}
```