user: 请从给定的汇编指令推导出C源代码：

```asm
<mm_double_TN_c>:
  endbr64
  push   %r15
  movapd %xmm0,%xmm5
  mov    %edi,%eax
  movapd %xmm0,%xmm3
  push   %r14
  unpcklpd %xmm5,%xmm5
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %esi,%ebx
  sub    $0xa8,%rsp
  mov    %esi,0x14(%rsp)
  mov    0xe0(%rsp),%r13d
  mov    %rcx,0x68(%rsp)
  mov    0xf0(%rsp),%esi
  mov    %r8,0x48(%rsp)
  mov    %r9,0x58(%rsp)
  cmp    $0x4,%ebx
  jle    L229
  lea    -0x1(%rbx),%ecx
  mov    %ecx,%edi
  and    $0x3,%edi
  sub    %edi,%ebx
  mov    %edi,0x60(%rsp)
  mov    %ebx,%ecx
  imul   %r13d,%ecx
  mov    %ecx,%r12d
L231:
  movslq %edx,%rcx
  imul   %esi,%eax
  pxor   %xmm4,%xmm4
  mov    %edx,%r8d
  imul   $0x55555556,%rcx,%rdi
  sar    $0x1f,%r8d
  cltq
  shr    $0x20,%rdi
  mov    %edi,%ebx
  sub    %r8d,%ebx
  lea    (%rbx,%rbx,2),%edi
  sub    %edi,%edx
  ucomisd %xmm4,%xmm1
  mov    %edi,%ebx
  mov    0x58(%rsp),%rdi
  mov    %edx,0x70(%rsp)
  lea    (%rdi,%rax,8),%rax
  mov    %rax,0x38(%rsp)
  jp     L382
  jne    L382
  cmp    %rax,%rdi
  je     L219
  movslq %esi,%rax
  movaps %xmm5,(%rsp)
  lea    0x0(,%rax,8),%r14
  mov    %rax,0x98(%rsp)
  mov    0x58(%rsp),%rax
  mov    %r14,0x50(%rsp)
  lea    (%rax,%rcx,8),%rbp
  movsd  %xmm3,0x18(%rsp)
  mov    %rax,%rcx
  nopw   0x0(%rax,%rax,1)
L311:
  cmp    %rbp,%rcx
  je     L436
  mov    %rbp,%rdx
  xor    %esi,%esi
  mov    %rcx,%rdi
  add    %r14,%rbp
  sub    %rcx,%rdx
  call   <memset@plt>
  pxor   %xmm4,%xmm4
  mov    %rax,%rcx
  add    %r14,%rcx
  cmp    %rcx,0x38(%rsp)
  jne    L311
L271:
  movapd (%rsp),%xmm5
  movsd  0x18(%rsp),%xmm3
L53:
  mov    0x60(%rsp),%eax
  movslq 0xe8(%rsp),%rdx
  movslq %r13d,%r11
  mov    0x68(%rsp),%r14
  mov    %r11,0x78(%rsp)
  lea    0x0(,%r11,8),%rsi
  mov    %eax,%edi
  mov    %rdx,0x80(%rsp)
  mov    %rdx,%r8
  lea    0x0(,%rdx,8),%rcx
  and    $0x4,%edi
  shl    $0x5,%r8
  mov    %edi,(%rsp)
  mov    %eax,%edi
  and    $0x1,%eax
  and    $0x2,%edi
  mov    %eax,0x24(%rsp)
  movslq %ebx,%rax
  mov    %edi,0x18(%rsp)
  mov    0x58(%rsp),%rdi
  mov    %rax,0x90(%rsp)
  lea    (%rdi,%rax,8),%r15
  movslq %r12d,%rax
  mov    %rdi,0x28(%rsp)
  mov    %rax,0x88(%rsp)
  lea    (%r14,%rax,8),%r10
  lea    (%rdx,%rdx,2),%rax
  shl    $0x3,%rax
  mov    %rax,0x40(%rsp)
  mov    %r11,%rax
  lea    (%r11,%r11,2),%r11
  shl    $0x5,%rax
  shl    $0x3,%r11
  mov    %rax,%rbx
  nop
L112:
  lea    (%r14,%rsi,1),%rax
  mov    0x48(%rsp),%r9
  mov    %rax,0x30(%rsp)
  mov    0x28(%rsp),%rax
  mov    %rax,%rdi
  cmp    %r15,%rax
  jne    L123
  jmp    L301
  nopl   0x0(%rax)
L305:
  mov    %r9,%rdx
  pxor   %xmm6,%xmm6
  movapd %xmm4,%xmm2
  mov    %r14,%rax
L444:
  mov    (%rsp),%r12d
  test   %r12d,%r12d
  je     L447
  movsd  (%rax),%xmm7
  movsd  0x10(%rdx),%xmm0
  lea    (%rdx,%rcx,1),%r13
  add    %rsi,%rax
  movsd  0x10(%r13),%xmm8
  lea    0x0(%r13,%rcx,1),%r12
  mulsd  %xmm7,%xmm0
  unpcklpd %xmm7,%xmm7
  lea    (%r12,%rcx,1),%rbp
  addsd  %xmm2,%xmm0
  movsd  (%rax),%xmm2
  add    %rsi,%rax
  movsd  (%rax),%xmm1
  add    %rsi,%rax
  mulsd  %xmm2,%xmm8
  unpcklpd %xmm2,%xmm2
  addsd  %xmm0,%xmm8
  movupd (%rdx),%xmm0
  lea    0x0(%rbp,%rcx,1),%rdx
  mulpd  %xmm7,%xmm0
  movupd (%r12),%xmm7
  addpd  %xmm6,%xmm0
  movupd 0x0(%r13),%xmm6
  mulpd  %xmm6,%xmm2
  addpd  %xmm2,%xmm0
  movapd %xmm1,%xmm2
  mulsd  0x10(%r12),%xmm1
  unpcklpd %xmm2,%xmm2
  mulpd  %xmm7,%xmm2
  movupd 0x0(%rbp),%xmm7
  addsd  %xmm8,%xmm1
  addpd  %xmm2,%xmm0
  movsd  (%rax),%xmm2
  add    %rsi,%rax
  movapd %xmm2,%xmm6
  mulsd  0x10(%rbp),%xmm2
  unpcklpd %xmm6,%xmm6
  mulpd  %xmm7,%xmm6
  addsd  %xmm1,%xmm2
  addpd  %xmm0,%xmm6
L447:
  mov    0x18(%rsp),%ebp
  test   %ebp,%ebp
  je     L135
  movsd  (%rax),%xmm0
  movupd (%rdx),%xmm7
  add    %rsi,%rax
  lea    (%rdx,%rcx,1),%rbp
  movapd %xmm0,%xmm1
  mulsd  0x10(%rdx),%xmm0
  unpcklpd %xmm1,%xmm1
  lea    0x0(%rbp,%rcx,1),%rdx
  mulpd  %xmm7,%xmm1
  movupd 0x0(%rbp),%xmm7
  addsd  %xmm2,%xmm0
  movsd  (%rax),%xmm2
  add    %rsi,%rax
  addpd  %xmm6,%xmm1
  movapd %xmm2,%xmm6
  mulsd  0x10(%rbp),%xmm2
  unpcklpd %xmm6,%xmm6
  mulpd  %xmm7,%xmm6
  addsd  %xmm0,%xmm2
  addpd  %xmm1,%xmm6
L135:
  mov    0x24(%rsp),%r13d
  test   %r13d,%r13d
  je     L293
  movsd  (%rax),%xmm0
  movupd (%rdx),%xmm7
  movapd %xmm0,%xmm1
  mulsd  0x10(%rdx),%xmm0
  unpcklpd %xmm1,%xmm1
  mulpd  %xmm7,%xmm1
  addsd  %xmm0,%xmm2
  addpd  %xmm1,%xmm6
L293:
  mulpd  %xmm5,%xmm6
  movupd (%rdi),%xmm7
  add    $0x18,%rdi
  add    $0x18,%r9
  mulsd  %xmm3,%xmm2
  addsd  -0x8(%rdi),%xmm2
  addpd  %xmm7,%xmm6
  movsd  %xmm2,-0x8(%rdi)
  movups %xmm6,-0x18(%rdi)
  cmp    %r15,%rdi
  je     L301
L123:
  cmpl   $0x4,0x14(%rsp)
  jle    L305
  mov    0x40(%rsp),%rax
  movupd (%r9),%xmm9
  lea    (%rcx,%r9,1),%rdx
  pxor   %xmm8,%xmm8
  movsd  0x10(%r9),%xmm2
  movsd  (%r14),%xmm0
  movapd %xmm4,%xmm1
  lea    (%r9,%rax,1),%rbp
  mov    0x30(%rsp),%rax
  nopw   0x0(%rax,%rax,1)
L286:
  mulsd  %xmm0,%xmm2
  movsd  (%rax),%xmm6
  unpcklpd %xmm0,%xmm0
  movupd (%rdx),%xmm10
  mulpd  %xmm9,%xmm0
  movsd  0x10(%rdx,%rcx,1),%xmm7
  movupd 0x0(%rbp,%rcx,1),%xmm9
  addsd  %xmm1,%xmm2
  movsd  0x10(%rdx),%xmm1
  addpd  %xmm8,%xmm0
  mulsd  %xmm6,%xmm1
  unpcklpd %xmm6,%xmm6
  mulpd  %xmm10,%xmm6
  addsd  %xmm2,%xmm1
  movsd  (%rax,%rsi,1),%xmm2
  addpd  %xmm6,%xmm0
  movupd (%rdx,%rcx,1),%xmm6
  add    %r8,%rdx
  mulsd  %xmm2,%xmm7
  unpcklpd %xmm2,%xmm2
  mulpd  %xmm6,%xmm2
  movupd 0x0(%rbp),%xmm6
  addsd  %xmm1,%xmm7
  movsd  (%rax,%rsi,2),%xmm1
  addpd  %xmm2,%xmm0
  movapd %xmm1,%xmm2
  mulsd  0x10(%rbp),%xmm1
  unpcklpd %xmm2,%xmm2
  mulpd  %xmm6,%xmm2
  addsd  %xmm7,%xmm1
  addpd  %xmm2,%xmm0
  movsd  0x10(%rbp,%rcx,1),%xmm2
  add    %r8,%rbp
  movapd %xmm0,%xmm8
  movsd  (%rax,%r11,1),%xmm0
  add    %rbx,%rax
  cmp    %r10,%rax
  jne    L286
  mulsd  %xmm0,%xmm2
  movapd %xmm0,%xmm6
  unpcklpd %xmm6,%xmm6
  mulpd  %xmm9,%xmm6
  addsd  %xmm1,%xmm2
  addpd  %xmm8,%xmm6
  jmp    L444
L388:
  movslq %esi,%rax
  mov    0x38(%rsp),%rdi
  mov    %rax,0x98(%rsp)
  shl    $0x3,%rax
  mov    %rax,0x50(%rsp)
  cmp    %rdi,0x58(%rsp)
  jne    L53
L219:
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L382:
  ucomisd D1(%rip),%xmm1
  jp     L262
  je     L388
L262:
  mov    0x58(%rsp),%rax
  mov    0x38(%rsp),%r9
  cmp    %r9,%rax
  je     L219
  movslq %esi,%rdi
  movapd %xmm1,%xmm2
  lea    (%rax,%rcx,8),%rsi
  mov    %rax,%rdx
  lea    0x0(,%rdi,8),%r8
  mov    %rdi,0x98(%rsp)
  unpcklpd %xmm2,%xmm2
  mov    %r8,0x50(%rsp)
  nopl   0x0(%rax)
L333:
  cmp    %rsi,%rdx
  je     L47
  mov    %rsi,%rcx
  mov    %rdx,%rax
  sub    %rdx,%rcx
  lea    -0x8(%rcx),%rdi
  shr    $0x3,%rdi
  add    $0x1,%rdi
  cmp    $0x8,%rcx
  je     L127
  mov    %rdi,%rcx
  shr    %rcx
  shl    $0x4,%rcx
  add    %rdx,%rcx
  nopl   (%rax)
L322:
  movupd (%rax),%xmm0
  add    $0x10,%rax
  mulpd  %xmm2,%xmm0
  movups %xmm0,-0x10(%rax)
  cmp    %rax,%rcx
  jne    L322
  mov    %rdi,%rcx
  and    $0xfffffffffffffffe,%rcx
  lea    (%rdx,%rcx,8),%rax
  cmp    %rcx,%rdi
  je     L47
L127:
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
L47:
  add    %r8,%rdx
  add    %r8,%rsi
  cmp    %rdx,%r9
  jne    L333
  jmp    L53
L229:
  mov    %ebx,0x60(%rsp)
  xor    %r12d,%r12d
  jmp    L231
  nopl   (%rax)
L301:
  mov    0x50(%rsp),%rdi
  add    $0x8,%r14
  add    %rdi,0x28(%rsp)
  add    $0x8,%r10
  mov    0x28(%rsp),%rax
  add    %rdi,%r15
  cmp    %rax,0x38(%rsp)
  jne    L112
  mov    0x38(%rsp),%rbx
  cmp    %rbx,0x58(%rsp)
  je     L219
  mov    0x70(%rsp),%r15d
  mov    0x90(%rsp),%rax
  mov    0x48(%rsp),%r14
  mov    0x80(%rsp),%rsi
  mov    %r15d,%ebx
  shl    $0x3,%rax
  and    $0x1,%r15d
  mov    0x78(%rsp),%r10
  and    $0x2,%ebx
  add    %rax,%r14
  mov    %r15d,0x30(%rsp)
  mov    %rsi,%r9
  mov    %ebx,(%rsp)
  mov    0x60(%rsp),%ebx
  lea    0x0(,%rsi,8),%rcx
  lea    0x0(,%r10,8),%rdx
  mov    0x88(%rsp),%r15
  lea    (%r14,%rcx,1),%r11
  mov    0x98(%rsp),%r13
  shl    $0x5,%r9
  mov    %ebx,%edi
  mov    %r11,0x70(%rsp)
  and    $0x4,%edi
  shl    $0x3,%r13
  mov    %edi,0x18(%rsp)
  mov    %ebx,%edi
  and    $0x1,%ebx
  mov    %ebx,0x28(%rsp)
  lea    0x10(%r14),%rbx
  and    $0x2,%edi
  mov    %rbx,0x40(%rsp)
  mov    0x58(%rsp),%rbx
  mov    %edi,0x24(%rsp)
  lea    0x10(%rbx,%rax,1),%rdi
  mov    0x68(%rsp),%rbx
  lea    (%rbx,%r15,8),%r8
  mov    %rsi,%r15
  shl    $0x4,%rsi
  add    %r11,%rsi
  lea    (%r10,%r10,2),%r11
  shl    $0x5,%r10
  mov    %rsi,0x58(%rsp)
  lea    (%r15,%r15,2),%rsi
  shl    $0x3,%r11
  shl    $0x3,%rsi
  mov    %rsi,0x60(%rsp)
  mov    $0xfffffffffffffff0,%rsi
  sub    %rax,%rsi
  mov    %rsi,%r15
  jmp    L457
  nopl   0x0(%rax)
L418:
  mov    %rbx,%rax
  pxor   %xmm0,%xmm0
L415:
  mov    0x18(%rsp),%ebp
  test   %ebp,%ebp
  je     L133
  movsd  (%rax),%xmm2
  movupd (%rsi),%xmm1
  lea    (%rsi,%rcx,1),%rbp
  mov    %rbp,%r12
  lea    (%rax,%rdx,1),%rbp
  unpcklpd %xmm2,%xmm2
  mov    %r12,0x48(%rsp)
  mov    0x48(%rsp),%rsi
  add    %rcx,%r12
  mulpd  %xmm2,%xmm1
  movsd  (%rax,%rdx,1),%xmm2
  mov    %r12,0x50(%rsp)
  add    %rcx,%r12
  unpcklpd %xmm2,%xmm2
  addpd  %xmm0,%xmm1
  movupd (%rsi),%xmm0
  mov    0x50(%rsp),%rsi
  mulpd  %xmm2,%xmm0
  movsd  (%rax,%rdx,2),%xmm2
  lea    0x0(%rbp,%rdx,2),%rax
  add    %rdx,%rax
  unpcklpd %xmm2,%xmm2
  addpd  %xmm0,%xmm1
  movupd (%rsi),%xmm0
  lea    (%r12,%rcx,1),%rsi
  mulpd  %xmm2,%xmm0
  movsd  0x0(%rbp,%rdx,2),%xmm2
  unpcklpd %xmm2,%xmm2
  addpd  %xmm0,%xmm1
  movupd (%r12),%xmm0
  mulpd  %xmm2,%xmm0
  addpd  %xmm1,%xmm0
L133:
  mov    0x24(%rsp),%r12d
  test   %r12d,%r12d
  je     L345
  movsd  (%rax),%xmm2
  movupd (%rsi),%xmm1
  lea    (%rsi,%rcx,1),%rbp
  lea    0x0(%rbp,%rcx,1),%rsi
  unpcklpd %xmm2,%xmm2
  mulpd  %xmm2,%xmm1
  movsd  (%rax,%rdx,1),%xmm2
  lea    (%rax,%rdx,2),%rax
  unpcklpd %xmm2,%xmm2
  addpd  %xmm1,%xmm0
  movupd 0x0(%rbp),%xmm1
  mulpd  %xmm2,%xmm1
  addpd  %xmm1,%xmm0
L345:
  mov    0x28(%rsp),%ebp
  test   %ebp,%ebp
  je     L200
  movsd  (%rax),%xmm2
  movupd (%rsi),%xmm1
  unpcklpd %xmm2,%xmm2
  mulpd  %xmm2,%xmm1
  addpd  %xmm1,%xmm0
L200:
  mulpd  %xmm5,%xmm0
  movupd -0x10(%rdi),%xmm7
  mov    0x40(%rsp),%rsi
  mov    %rdi,%rbp
  addpd  %xmm7,%xmm0
  movups %xmm0,-0x10(%rdi)
L421:
  mov    0x30(%rsp),%eax
  test   %eax,%eax
  je     L435
  cmpl   $0x4,0x14(%rsp)
  mov    %rbx,%rax
  movapd %xmm4,%xmm0
  jg     L97
L183:
  mov    0x18(%rsp),%r12d
  test   %r12d,%r12d
  je     L44
  movsd  (%rsi),%xmm1
  mulsd  (%rax),%xmm1
  lea    (%rsi,%rcx,1),%r12
  add    %rdx,%rax
  lea    (%r12,%rcx,1),%rsi
  addsd  %xmm0,%xmm1
  movsd  (%r12),%xmm0
  mulsd  (%rax),%xmm0
  add    %rdx,%rax
  lea    (%rsi,%rcx,1),%r12
  addsd  %xmm1,%xmm0
  movsd  (%rsi),%xmm1
  mulsd  (%rax),%xmm1
  add    %rdx,%rax
  lea    (%r12,%rcx,1),%rsi
  addsd  %xmm0,%xmm1
  movsd  (%r12),%xmm0
  mulsd  (%rax),%xmm0
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
L44:
  mov    0x24(%rsp),%r12d
  test   %r12d,%r12d
  je     L289
  movsd  (%rsi),%xmm1
  mulsd  (%rax),%xmm1
  lea    (%rsi,%rcx,1),%r12
  add    %rdx,%rax
  lea    (%r12,%rcx,1),%rsi
  addsd  %xmm1,%xmm0
  movsd  (%r12),%xmm1
  mulsd  (%rax),%xmm1
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
L289:
  mov    0x28(%rsp),%r12d
  test   %r12d,%r12d
  je     L416
  movsd  (%rsi),%xmm1
  mulsd  (%rax),%xmm1
  addsd  %xmm1,%xmm0
L416:
  mulsd  %xmm3,%xmm0
  addsd  0x0(%rbp),%xmm0
  movsd  %xmm0,0x0(%rbp)
L435:
  add    %r13,%rdi
  add    $0x8,%rbx
  add    $0x8,%r8
  lea    (%r15,%rdi,1),%rax
  cmp    %rax,0x38(%rsp)
  je     L219
L457:
  mov    (%rsp),%r12d
  lea    -0x10(%rdi),%rbp
  mov    %r14,%rsi
  test   %r12d,%r12d
  je     L421
  cmpl   $0x4,0x14(%rsp)
  jle    L418
  movupd (%r14),%xmm2
  movsd  (%rbx),%xmm0
  lea    (%rbx,%rdx,1),%rax
  pxor   %xmm1,%xmm1
  mov    0x58(%rsp),%rbp
  mov    0x70(%rsp),%rsi
  nopw   0x0(%rax,%rax,1)
L121:
  unpcklpd %xmm0,%xmm0
  movupd (%rsi),%xmm7
  mulpd  %xmm2,%xmm0
  movupd 0x0(%rbp,%rcx,1),%xmm2
  addpd  %xmm1,%xmm0
  movsd  (%rax),%xmm1
  unpcklpd %xmm1,%xmm1
  mulpd  %xmm7,%xmm1
  movupd (%rsi,%rcx,1),%xmm7
  add    %r9,%rsi
  addpd  %xmm1,%xmm0
  movsd  (%rax,%rdx,1),%xmm1
  unpcklpd %xmm1,%xmm1
  mulpd  %xmm7,%xmm1
  movupd 0x0(%rbp),%xmm7
  add    %r9,%rbp
  addpd  %xmm1,%xmm0
  movsd  (%rax,%rdx,2),%xmm1
  unpcklpd %xmm1,%xmm1
  mulpd  %xmm7,%xmm1
  addpd  %xmm0,%xmm1
  movsd  (%rax,%r11,1),%xmm0
  add    %r10,%rax
  cmp    %r8,%rax
  jne    L121
  unpcklpd %xmm0,%xmm0
  mulpd  %xmm2,%xmm0
  addpd  %xmm1,%xmm0
  jmp    L415
L97:
  movsd  (%rbx),%xmm2
  movsd  (%rsi),%xmm0
  lea    (%rbx,%rdx,1),%rax
  add    %rcx,%rsi
  mov    0x60(%rsp),%r12
  movapd %xmm4,%xmm1
  nopw   0x0(%rax,%rax,1)
L58:
  mulsd  %xmm2,%xmm0
  movsd  (%rax,%r11,1),%xmm2
  addsd  %xmm1,%xmm0
  movsd  (%rsi),%xmm1
  mulsd  (%rax),%xmm1
  addsd  %xmm0,%xmm1
  movsd  (%rsi,%rcx,1),%xmm0
  mulsd  (%rax,%rdx,1),%xmm0
  addsd  %xmm1,%xmm0
  movsd  (%rsi,%rcx,2),%xmm1
  mulsd  (%rax,%rdx,2),%xmm1
  add    %r10,%rax
  addsd  %xmm0,%xmm1
  movsd  (%rsi,%r12,1),%xmm0
  add    %r9,%rsi
  cmp    %r8,%rax
  jne    L58
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  jmp    L183
L436:
  add    %r14,%rcx
  add    %r14,%rbp
  cmp    %rcx,0x38(%rsp)
  jne    L311
  jmp    L271
```

tool_calls: name: read_data
arguments: tag: D1
type_infered: f64

tool: D1: 1

assistant: ```c
void mm_double_TN_c(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, const double alpha, const double beta) {
  const double *a;
  const double *b;
  double *c;
  const double *ap;
  const double *bp;
  double *cp;
  const int C_sbs_stride = Cstride * 1;
  const int k_marg_el = ((K >= 5) ? ((K - 1) & 3) : K);
  const int k_norm = (K - k_marg_el) * Astride;
  const int m_marg_el = M & 0;
  const int m_norm = M - m_marg_el;
  const int n_marg_el = N % 3;
  const int n_norm = N - n_marg_el;
  double *const c_endp = C + m_norm * Cstride;
  register double c0_0, c0_1, c0_2;
  register double t0_0, t0_1, t0_2;
  if (beta == 0.0) {
    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;
      }
    }
  } else if (beta != 1.0) {
    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 *= (beta);
      }
    }
  }
  for (c = C, a = A; c != c_endp; c += C_sbs_stride, a += 1) {
    const double *const ap_endp = a + k_norm;
    double *const cp_endp = c + n_norm;
    for (b = B, cp = c; cp != cp_endp; b += 3, cp += 3) {
      register double _b0, _b1, _b2;
      register double _a0;
      double *_cp;
      ap = a;
      bp = b;
      c0_0 = 0.0;
      c0_1 = 0.0;
      c0_2 = 0.0;
      if (K >= 5) {
        _b0 = bp[0];
        _b1 = bp[1];
        _b2 = bp[2];
        _a0 = ap[0];
        bp += Bstride;
        ap += Astride;
        do {
          t0_0 = _a0 * _b0;
          t0_1 = _a0 * _b1;
          t0_2 = _a0 * _b2;
          c0_0 += t0_0;
          c0_1 += t0_1;
          c0_2 += t0_2;
          _b0 = bp[0];
          _b1 = bp[1];
          _b2 = bp[2];
          _a0 = ap[0];
          ap += Astride;
          bp += Bstride;
          t0_0 = _a0 * _b0;
          t0_1 = _a0 * _b1;
          t0_2 = _a0 * _b2;
          c0_0 += t0_0;
          c0_1 += t0_1;
          c0_2 += t0_2;
          _b0 = bp[0];
          _b1 = bp[1];
          _b2 = bp[2];
          _a0 = ap[0];
          ap += Astride;
          bp += Bstride;
          t0_0 = _a0 * _b0;
          t0_1 = _a0 * _b1;
          t0_2 = _a0 * _b2;
          c0_0 += t0_0;
          c0_1 += t0_1;
          c0_2 += t0_2;
          _b0 = bp[0];
          _b1 = bp[1];
          _b2 = bp[2];
          _a0 = ap[0];
          ap += Astride;
          bp += Bstride;
          t0_0 = _a0 * _b0;
          t0_1 = _a0 * _b1;
          t0_2 = _a0 * _b2;
          c0_0 += t0_0;
          c0_1 += t0_1;
          c0_2 += t0_2;
          _b0 = bp[0];
          _b1 = bp[1];
          _b2 = bp[2];
          _a0 = ap[0];
          ap += Astride;
          bp += Bstride;
        } while (ap != ap_endp);
        t0_0 = _a0 * _b0;
        t0_1 = _a0 * _b1;
        t0_2 = _a0 * _b2;
        c0_0 += t0_0;
        c0_1 += t0_1;
        c0_2 += t0_2;
      }
      if (k_marg_el & 0x4) {
        _b0 = bp[0];
        _b1 = bp[1];
        _b2 = bp[2];
        bp += Bstride;
        _a0 = ap[0];
        c0_0 += _a0 * _b0;
        c0_1 += _a0 * _b1;
        c0_2 += _a0 * _b2;
        ap += Astride;
        _b0 = bp[0];
        _b1 = bp[1];
        _b2 = bp[2];
        bp += Bstride;
        _a0 = ap[0];
        c0_0 += _a0 * _b0;
        c0_1 += _a0 * _b1;
        c0_2 += _a0 * _b2;
        ap += Astride;
        _b0 = bp[0];
        _b1 = bp[1];
        _b2 = bp[2];
        bp += Bstride;
        _a0 = ap[0];
        c0_0 += _a0 * _b0;
        c0_1 += _a0 * _b1;
        c0_2 += _a0 * _b2;
        ap += Astride;
        _b0 = bp[0];
        _b1 = bp[1];
        _b2 = bp[2];
        bp += Bstride;
        _a0 = ap[0];
        c0_0 += _a0 * _b0;
        c0_1 += _a0 * _b1;
        c0_2 += _a0 * _b2;
        ap += Astride;
      }
      if (k_marg_el & 0x2) {
        _b0 = bp[0];
        _b1 = bp[1];
        _b2 = bp[2];
        bp += Bstride;
        _a0 = ap[0];
        c0_0 += _a0 * _b0;
        c0_1 += _a0 * _b1;
        c0_2 += _a0 * _b2;
        ap += Astride;
        _b0 = bp[0];
        _b1 = bp[1];
        _b2 = bp[2];
        bp += Bstride;
        _a0 = ap[0];
        c0_0 += _a0 * _b0;
        c0_1 += _a0 * _b1;
        c0_2 += _a0 * _b2;
        ap += Astride;
      }
      if (k_marg_el & 0x1) {
        _b0 = bp[0];
        _b1 = bp[1];
        _b2 = bp[2];
        bp += Bstride;
        _a0 = ap[0];
        c0_0 += _a0 * _b0;
        c0_1 += _a0 * _b1;
        c0_2 += _a0 * _b2;
        ap += Astride;
      }
      _cp = cp;
      _cp[0] += alpha * c0_0;
      _cp[1] += alpha * c0_1;
      _cp[2] += alpha * c0_2;
    }
  }
  for (c = C, a = A; c != c_endp; c += C_sbs_stride, a += 1) {
    const double *const ap_endp = a + k_norm;
    b = B + n_norm;
    cp = c + n_norm;
    if (n_marg_el & 0x2) {
      register double _b0, _b1;
      register double _a0;
      double *_cp;
      ap = a;
      bp = b;
      c0_0 = 0.0;
      c0_1 = 0.0;
      if (K >= 5) {
        _b0 = bp[0];
        _b1 = bp[1];
        _a0 = ap[0];
        bp += Bstride;
        ap += Astride;
        do {
          t0_0 = _a0 * _b0;
          t0_1 = _a0 * _b1;
          c0_0 += t0_0;
          c0_1 += t0_1;
          _b0 = bp[0];
          _b1 = bp[1];
          _a0 = ap[0];
          ap += Astride;
          bp += Bstride;
          t0_0 = _a0 * _b0;
          t0_1 = _a0 * _b1;
          c0_0 += t0_0;
          c0_1 += t0_1;
          _b0 = bp[0];
          _b1 = bp[1];
          _a0 = ap[0];
          ap += Astride;
          bp += Bstride;
          t0_0 = _a0 * _b0;
          t0_1 = _a0 * _b1;
          c0_0 += t0_0;
          c0_1 += t0_1;
          _b0 = bp[0];
          _b1 = bp[1];
          _a0 = ap[0];
          ap += Astride;
          bp += Bstride;
          t0_0 = _a0 * _b0;
          t0_1 = _a0 * _b1;
          c0_0 += t0_0;
          c0_1 += t0_1;
          _b0 = bp[0];
          _b1 = bp[1];
          _a0 = ap[0];
          ap += Astride;
          bp += Bstride;
        } while (ap != ap_endp);
        t0_0 = _a0 * _b0;
        t0_1 = _a0 * _b1;
        c0_0 += t0_0;
        c0_1 += t0_1;
      }
      if (k_marg_el & 0x4) {
        _b0 = bp[0];
        _b1 = bp[1];
        bp += Bstride;
        _a0 = ap[0];
        c0_0 += _a0 * _b0;
        c0_1 += _a0 * _b1;
        ap += Astride;
        _b0 = bp[0];
        _b1 = bp[1];
        bp += Bstride;
        _a0 = ap[0];
        c0_0 += _a0 * _b0;
        c0_1 += _a0 * _b1;
        ap += Astride;
        _b0 = bp[0];
        _b1 = bp[1];
        bp += Bstride;
        _a0 = ap[0];
        c0_0 += _a0 * _b0;
        c0_1 += _a0 * _b1;
        ap += Astride;
        _b0 = bp[0];
        _b1 = bp[1];
        bp += Bstride;
        _a0 = ap[0];
        c0_0 += _a0 * _b0;
        c0_1 += _a0 * _b1;
        ap += Astride;
      }
      if (k_marg_el & 0x2) {
        _b0 = bp[0];
        _b1 = bp[1];
        bp += Bstride;
        _a0 = ap[0];
        c0_0 += _a0 * _b0;
        c0_1 += _a0 * _b1;
        ap += Astride;
        _b0 = bp[0];
        _b1 = bp[1];
        bp += Bstride;
        _a0 = ap[0];
        c0_0 += _a0 * _b0;
        c0_1 += _a0 * _b1;
        ap += Astride;
      }
      if (k_marg_el & 0x1) {
        _b0 = bp[0];
        _b1 = bp[1];
        bp += Bstride;
        _a0 = ap[0];
        c0_0 += _a0 * _b0;
        c0_1 += _a0 * _b1;
        ap += Astride;
      }
      _cp = cp;
      _cp[0] += alpha * c0_0;
      _cp[1] += alpha * c0_1;
      b += 2;
      cp += 2;
    }
    if (n_marg_el & 0x1) {
      register double _b0;
      register double _a0;
      double *_cp;
      ap = a;
      bp = b;
      c0_0 = 0.0;
      if (K >= 5) {
        _b0 = bp[0];
        _a0 = ap[0];
        bp += Bstride;
        ap += Astride;
        do {
          t0_0 = _a0 * _b0;
          c0_0 += t0_0;
          _b0 = bp[0];
          _a0 = ap[0];
          ap += Astride;
          bp += Bstride;
          t0_0 = _a0 * _b0;
          c0_0 += t0_0;
          _b0 = bp[0];
          _a0 = ap[0];
          ap += Astride;
          bp += Bstride;
          t0_0 = _a0 * _b0;
          c0_0 += t0_0;
          _b0 = bp[0];
          _a0 = ap[0];
          ap += Astride;
          bp += Bstride;
          t0_0 = _a0 * _b0;
          c0_0 += t0_0;
          _b0 = bp[0];
          _a0 = ap[0];
          ap += Astride;
          bp += Bstride;
        } while (ap != ap_endp);
        t0_0 = _a0 * _b0;
        c0_0 += t0_0;
      }
      if (k_marg_el & 0x4) {
        _b0 = bp[0];
        bp += Bstride;
        _a0 = ap[0];
        c0_0 += _a0 * _b0;
        ap += Astride;
        _b0 = bp[0];
        bp += Bstride;
        _a0 = ap[0];
        c0_0 += _a0 * _b0;
        ap += Astride;
        _b0 = bp[0];
        bp += Bstride;
        _a0 = ap[0];
        c0_0 += _a0 * _b0;
        ap += Astride;
        _b0 = bp[0];
        bp += Bstride;
        _a0 = ap[0];
        c0_0 += _a0 * _b0;
        ap += Astride;
      }
      if (k_marg_el & 0x2) {
        _b0 = bp[0];
        bp += Bstride;
        _a0 = ap[0];
        c0_0 += _a0 * _b0;
        ap += Astride;
        _b0 = bp[0];
        bp += Bstride;
        _a0 = ap[0];
        c0_0 += _a0 * _b0;
        ap += Astride;
      }
      if (k_marg_el & 0x1) {
        _b0 = bp[0];
        bp += Bstride;
        _a0 = ap[0];
        c0_0 += _a0 * _b0;
        ap += Astride;
      }
      _cp = cp;
      _cp[0] += alpha * c0_0;
    }
  }
}
```