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

```asm
<mul_mdmd_md>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa8,%rsp
  mov    %edi,0x8c(%rsp)
  mov    %esi,0x48(%rsp)
  mov    %edx,0x68(%rsp)
  mov    %rcx,0x90(%rsp)
  mov    %r8,0x40(%rsp)
  mov    %r9,0x98(%rsp)
  mov    0xe0(%rsp),%r15d
  mov    0xf0(%rsp),%r14d
  mov    %edi,%eax
  imul   %r14d,%eax
  cltq
  lea    (%r9,%rax,8),%r8
  cmp    %r8,%r9
  je     L329
  mov    %r9,%rcx
  movslq %r14d,%rdi
  shl    $0x3,%rdi
  movslq %edx,%rax
  lea    (%r9,%rax,8),%rsi
  jmp    L328
L85:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L85
L286:
  add    %rdi,%rcx
  add    %rdi,%rsi
  cmp    %rcx,%r8
  je     L329
L328:
  mov    %rsi,%rdx
  cmp    %rsi,%rcx
  je     L286
  mov    %rcx,%rax
  jmp    L85
L329:
  cmpl   $0x8,0x48(%rsp)
  setle  %dl
  cmpl   $0x8,0x68(%rsp)
  setle  %al
  test   %al,%dl
  je     L314
  cmpl   $0x8,0x8c(%rsp)
  jle    L345
L314:
  mov    0x8c(%rsp),%eax
  sub    $0x7,%eax
  mov    %eax,0x6c(%rsp)
  test   %eax,%eax
  jle    L15
  mov    0xe8(%rsp),%eax
  shl    $0x3,%eax
  cltq
  lea    0x0(,%rax,8),%rsi
  mov    %rsi,0x8(%rsp)
  lea    0x0(,%r14,8),%eax
  cltq
  shl    $0x3,%rax
  mov    %rax,0x70(%rsp)
  mov    0x98(%rsp),%rax
  mov    %rax,0x50(%rsp)
  lea    0x0(,%r15,8),%eax
  cltq
  shl    $0x3,%rax
  mov    %rax,0x78(%rsp)
  mov    0x90(%rsp),%rax
  mov    %rax,0x58(%rsp)
  mov    0x68(%rsp),%eax
  sub    $0x8,%eax
  shr    $0x3,%eax
  add    $0x1,%eax
  mov    %eax,%edx
  shl    $0x6,%rdx
  mov    %rdx,0x80(%rsp)
  mov    0x40(%rsp),%rcx
  add    %rdx,%rcx
  mov    %rcx,0x20(%rsp)
  mov    0x48(%rsp),%ecx
  lea    -0x8(%rcx),%edx
  shr    $0x3,%edx
  add    $0x1,%edx
  mov    %edx,%ecx
  mov    %rcx,%rdi
  shl    $0x6,%rdi
  mov    %rdi,0x60(%rsp)
  lea    0x0(,%rdx,8),%edi
  mov    %edi,0x28(%rsp)
  imul   %rsi,%rcx
  mov    %rcx,0x30(%rsp)
  shl    $0x3,%eax
  mov    %eax,0x88(%rsp)
  movl   $0x0,0x4c(%rsp)
  jmp    L203
L15:
  movl   $0x0,0x38(%rsp)
  jmp    L360
L345:
  sub    $0x8,%rsp
  push   %r14
  mov    0xf8(%rsp),%eax
  push   %rax
  push   %r15
  mov    0xb8(%rsp),%r9
  mov    0x60(%rsp),%r8
  mov    0xb0(%rsp),%rcx
  mov    0x88(%rsp),%edx
  mov    0x68(%rsp),%esi
  mov    0xac(%rsp),%edi
  call   <mul_mdmd_md_l1_arb_all@plt>
  add    $0x20,%rsp
  jmp    L373
L341:
  addq   $0x40,0x10(%rsp)
  mov    0x10(%rsp),%rax
  add    $0x40,%r12
  cmp    0x20(%rsp),%rax
  je     L229
L98:
  mov    0x10(%rsp),%rbp
  mov    0x18(%rsp),%rbx
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  mov    $0x0,%eax
  cmpl   $0x7,0x48(%rsp)
  jle    L410
L275:
  mov    %r14d,%r9d
  mov    0xe8(%rsp),%r8d
  mov    %r15d,%ecx
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <mul_mdmd_md_l1@plt>
  add    0x8(%rsp),%rbp
  add    $0x40,%rbx
  cmp    %r13,%rbx
  jne    L275
  mov    0x10(%rsp),%rdx
  add    0x30(%rsp),%rdx
  mov    %r13,%rsi
  mov    0x28(%rsp),%eax
L410:
  cmp    %eax,0x48(%rsp)
  jle    L341
  mov    0x48(%rsp),%edi
  sub    %eax,%edi
  sub    $0x8,%rsp
  push   %r14
  mov    0xf8(%rsp),%r9d
  mov    %r15d,%r8d
  mov    %r12,%rcx
  call   <mul_mdmd_md_l1_arb_k@plt>
  add    $0x10,%rsp
  jmp    L341
L229:
  mov    0x80(%rsp),%rsi
  add    %rsi,0x38(%rsp)
  mov    0x20(%rsp),%rax
  mov    %rax,0x10(%rsp)
  mov    0x88(%rsp),%r13d
L330:
  cmp    %r13d,0x68(%rsp)
  jg     L299
L185:
  addl   $0x8,0x4c(%rsp)
  mov    0x4c(%rsp),%eax
  mov    0x70(%rsp),%rcx
  add    %rcx,0x50(%rsp)
  mov    0x78(%rsp),%rcx
  add    %rcx,0x58(%rsp)
  cmp    0x6c(%rsp),%eax
  jge    L175
L203:
  mov    0x50(%rsp),%r12
  mov    %r12,0x38(%rsp)
  mov    0x58(%rsp),%rax
  mov    %rax,0x18(%rsp)
  cmpl   $0x7,0x68(%rsp)
  jle    L69
  add    0x60(%rsp),%rax
  mov    %rax,%r13
  mov    0x40(%rsp),%rax
  mov    %rax,0x10(%rsp)
  jmp    L98
L69:
  mov    0x40(%rsp),%rax
  mov    %rax,0x10(%rsp)
  mov    $0x0,%r13d
  jmp    L330
L299:
  cmpl   $0x7,0x48(%rsp)
  jle    L390
  mov    0x18(%rsp),%rax
  mov    %rax,%r12
  add    0x60(%rsp),%r12
  mov    0x10(%rsp),%rbx
  mov    0x68(%rsp),%ebp
  sub    %r13d,%ebp
  mov    %r13d,0x18(%rsp)
  mov    %ebp,%r13d
  mov    %rax,%rbp
L169:
  sub    $0x8,%rsp
  push   %r14
  mov    0xf8(%rsp),%eax
  push   %rax
  push   %r15
  mov    0x58(%rsp),%r9
  mov    %rbx,%r8
  mov    %rbp,%rcx
  mov    %r13d,%edx
  mov    $0x8,%esi
  mov    $0x8,%edi
  call   <mul_mdmd_md_l1_arb_all@plt>
  add    0x28(%rsp),%rbx
  add    $0x40,%rbp
  add    $0x20,%rsp
  cmp    %r12,%rbp
  jne    L169
  mov    0x18(%rsp),%r13d
  mov    0x30(%rsp),%rsi
  add    %rsi,0x10(%rsp)
  mov    0x28(%rsp),%eax
L269:
  cmp    %eax,0x48(%rsp)
  jle    L185
  mov    0x68(%rsp),%edx
  sub    %r13d,%edx
  mov    0x48(%rsp),%esi
  sub    %eax,%esi
  sub    $0x8,%rsp
  push   %r14
  mov    0xf8(%rsp),%eax
  push   %rax
  push   %r15
  mov    0x58(%rsp),%r9
  mov    0x30(%rsp),%r8
  mov    %r12,%rcx
  mov    $0x8,%edi
  call   <mul_mdmd_md_l1_arb_all@plt>
  add    $0x20,%rsp
  jmp    L185
L390:
  mov    0x18(%rsp),%r12
  mov    $0x0,%eax
  jmp    L269
L175:
  mov    0x8c(%rsp),%eax
  sub    $0x8,%eax
  shr    $0x3,%eax
  lea    0x8(,%rax,8),%eax
  mov    %eax,0x38(%rsp)
L360:
  mov    0x8c(%rsp),%edi
  mov    0x38(%rsp),%ecx
  cmp    %ecx,%edi
  jle    L373
  mov    %ecx,%eax
  imul   %r14d,%eax
  cltq
  mov    0x98(%rsp),%rsi
  lea    (%rsi,%rax,8),%r13
  mov    %r13,0x50(%rsp)
  mov    %ecx,%esi
  mov    %ecx,%eax
  imul   %r15d,%eax
  cltq
  mov    0x90(%rsp),%rcx
  lea    (%rcx,%rax,8),%rbx
  mov    %rbx,0x28(%rsp)
  mov    0x68(%rsp),%ecx
  cmp    $0x7,%ecx
  jle    L395
  mov    0xe8(%rsp),%eax
  shl    $0x3,%eax
  cltq
  lea    0x0(,%rax,8),%r10
  mov    %r10,0x18(%rsp)
  lea    -0x8(%rcx),%eax
  shr    $0x3,%eax
  mov    %eax,0x58(%rsp)
  add    $0x1,%eax
  mov    %eax,%eax
  shl    $0x6,%rax
  mov    %rax,0x60(%rsp)
  mov    0x40(%rsp),%rcx
  add    %rax,%rcx
  mov    %rcx,0x20(%rsp)
  mov    0x48(%rsp),%eax
  sub    $0x8,%eax
  shr    $0x3,%eax
  add    $0x1,%eax
  mov    %eax,%edx
  mov    %rdx,%rcx
  shl    $0x6,%rcx
  lea    (%rbx,%rcx,1),%r12
  shl    $0x3,%eax
  mov    %eax,0x4c(%rsp)
  imul   %r10,%rdx
  mov    %rdx,0x30(%rsp)
  sub    %esi,%edi
  mov    %edi,0x10(%rsp)
  mov    %r13,0x8(%rsp)
  mov    0xe8(%rsp),%r13d
  jmp    L73
L310:
  addq   $0x40,0x40(%rsp)
  mov    0x40(%rsp),%rax
  addq   $0x40,0x8(%rsp)
  cmp    0x20(%rsp),%rax
  je     L381
L73:
  mov    0x40(%rsp),%rbp
  mov    0x28(%rsp),%rbx
  mov    %rbp,%r8
  mov    %rbx,%rcx
  mov    $0x0,%eax
  cmpl   $0x7,0x48(%rsp)
  jle    L283
L264:
  sub    $0x8,%rsp
  push   %r14
  push   %r13
  push   %r15
  mov    0x28(%rsp),%r9
  mov    %rbp,%r8
  mov    %rbx,%rcx
  mov    $0x8,%edx
  mov    $0x8,%esi
  mov    0x30(%rsp),%edi
  call   <mul_mdmd_md_l1_arb_all@plt>
  add    0x38(%rsp),%rbp
  add    $0x40,%rbx
  add    $0x20,%rsp
  cmp    %r12,%rbx
  jne    L264
  mov    0x40(%rsp),%r8
  add    0x30(%rsp),%r8
  mov    %r12,%rcx
  mov    0x4c(%rsp),%eax
L283:
  cmp    %eax,0x48(%rsp)
  jle    L310
  mov    0x48(%rsp),%esi
  sub    %eax,%esi
  sub    $0x8,%rsp
  push   %r14
  push   %r13
  push   %r15
  mov    0x28(%rsp),%r9
  mov    $0x8,%edx
  mov    0x30(%rsp),%edi
  call   <mul_mdmd_md_l1_arb_all@plt>
  add    $0x20,%rsp
  jmp    L310
L381:
  mov    0x58(%rsp),%eax
  lea    0x8(,%rax,8),%eax
  mov    %eax,0x10(%rsp)
  mov    0x60(%rsp),%rsi
  add    %rsi,0x50(%rsp)
L8:
  mov    0x68(%rsp),%ecx
  mov    0x10(%rsp),%esi
  cmp    %esi,%ecx
  jle    L373
  mov    0x48(%rsp),%edi
  cmp    $0x7,%edi
  jle    L364
  mov    0xe8(%rsp),%eax
  shl    $0x3,%eax
  cltq
  shl    $0x3,%rax
  mov    %rax,0x8(%rsp)
  lea    -0x8(%rdi),%eax
  shr    $0x3,%eax
  mov    %eax,%r13d
  lea    0x1(%rax),%eax
  mov    %eax,%eax
  mov    %rax,0x18(%rsp)
  shl    $0x6,%rax
  mov    0x28(%rsp),%rdi
  lea    (%rdi,%rax,1),%rbp
  mov    0x20(%rsp),%rbx
  sub    %esi,%ecx
  mov    %ecx,%r12d
  mov    %r13d,0x28(%rsp)
  mov    %rdi,%r13
L155:
  mov    0x8c(%rsp),%edi
  sub    0x38(%rsp),%edi
  sub    $0x8,%rsp
  push   %r14
  mov    0xf8(%rsp),%eax
  push   %rax
  push   %r15
  mov    0x70(%rsp),%r9
  mov    %rbx,%r8
  mov    %r13,%rcx
  mov    %r12d,%edx
  mov    $0x8,%esi
  call   <mul_mdmd_md_l1_arb_all@plt>
  add    0x28(%rsp),%rbx
  add    $0x40,%r13
  add    $0x20,%rsp
  cmp    %rbp,%r13
  jne    L155
  mov    0x28(%rsp),%r13d
  lea    0x8(,%r13,8),%ecx
  mov    0x8(%rsp),%rax
  imul   0x18(%rsp),%rax
  add    %rax,0x20(%rsp)
L302:
  cmp    %ecx,0x48(%rsp)
  jg     L288
L373:
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L395:
  mov    0x40(%rsp),%rax
  mov    %rax,0x20(%rsp)
  movl   $0x0,0x10(%rsp)
  jmp    L8
L364:
  mov    0x28(%rsp),%rbp
  mov    $0x0,%ecx
  jmp    L302
L288:
  mov    0x68(%rsp),%edx
  sub    0x10(%rsp),%edx
  mov    0x48(%rsp),%esi
  sub    %ecx,%esi
  mov    0x8c(%rsp),%edi
  sub    0x38(%rsp),%edi
  sub    $0x8,%rsp
  push   %r14
  mov    0xf8(%rsp),%eax
  push   %rax
  push   %r15
  mov    0x70(%rsp),%r9
  mov    0x40(%rsp),%r8
  mov    %rbp,%rcx
  call   <mul_mdmd_md_l1_arb_all@plt>
  add    $0x20,%rsp
  jmp    L373
```

assistant: ```c
void mul_mdmd_md(const int M, const int K, const int N, const double *const A, const double *const B, double *const C, const int Astride, const int Bstride, const int Cstride) {
  int m2, k2, n2;
  const double *a2, *b2;
  double *c2;
  const double *ap2, *bp2;
  double *cp2;
  {
    double *cprb, *cpre, *cp, *cpe;
    cpre = C + M * Cstride;
    for (cprb = C; cprb != cpre; cprb += Cstride) {
      cpe = cprb + N;
      for (cp = cprb; cp != cpe; cp++) {
        *cp = 0.0;
      }
    }
  }
  if (M < 9 && K < 9 && N < 9) {
    mul_mdmd_md_l1_arb_all(M, K, N, A, B, C, Astride, Bstride, Cstride);
    return;
  }
  for (m2 = 0; m2 <= M - 8; m2 += 8) {
    c2 = C + m2 * Cstride;
    a2 = A + m2 * Astride;
    for (n2 = 0, b2 = B, cp2 = c2; n2 <= N - 8; n2 += 8, b2 += 8, cp2 += 8) {
      for (k2 = 0, bp2 = b2, ap2 = a2; k2 <= K - 8; k2 += 8, bp2 += 8 * Bstride, ap2 += 8) {
        mul_mdmd_md_l1(ap2, bp2, cp2, Astride, Bstride, Cstride);
      }
      if (k2 < K) {
        mul_mdmd_md_l1_arb_k(K - k2, ap2, bp2, cp2, Astride, Bstride, Cstride);
      }
    }
    if (n2 < N) {
      for (k2 = 0, bp2 = b2, ap2 = a2; k2 <= K - 8; k2 += 8, bp2 += 8 * Bstride, ap2 += 8) {
        mul_mdmd_md_l1_arb_all(8, 8, N - n2, ap2, bp2, cp2, Astride, Bstride, Cstride);
      }
      if (k2 < K) {
        mul_mdmd_md_l1_arb_all(8, K - k2, N - n2, ap2, bp2, cp2, Astride, Bstride, Cstride);
      }
    }
  }
  if (m2 < M) {
    c2 = C + m2 * Cstride;
    a2 = A + m2 * Astride;
    for (n2 = 0, b2 = B, cp2 = c2; n2 <= N - 8; n2 += 8, b2 += 8, cp2 += 8) {
      for (k2 = 0, bp2 = b2, ap2 = a2; k2 <= K - 8; k2 += 8, bp2 += 8 * Bstride, ap2 += 8) {
        mul_mdmd_md_l1_arb_all(M - m2, 8, 8, ap2, bp2, cp2, Astride, Bstride, Cstride);
      }
      if (k2 < K) {
        mul_mdmd_md_l1_arb_all(M - m2, K - k2, 8, ap2, bp2, cp2, Astride, Bstride, Cstride);
      }
    }
    if (n2 < N) {
      for (k2 = 0, bp2 = b2, ap2 = a2; k2 <= K - 8; k2 += 8, bp2 += 8 * Bstride, ap2 += 8) {
        mul_mdmd_md_l1_arb_all(M - m2, 8, N - n2, ap2, bp2, cp2, Astride, Bstride, Cstride);
      }
      if (k2 < K) {
        mul_mdmd_md_l1_arb_all(M - m2, K - k2, N - n2, ap2, bp2, cp2, Astride, Bstride, Cstride);
      }
    }
  }
}
```