user: 这段汇编代码用C语言表示是什么样的？

```asm
<kernel_dgemm_diag_left_3_lib4>:
  endbr64
  mov    %rsi,%r10
  mov    %rdx,%rax
  mov    %rcx,%rsi
  test   %edi,%edi
  jle    L34
  cmp    $0xffffffff,%r9d
  je     L75
  movsd  (%r10),%xmm1
  movsd  0x8(%r10),%xmm0
  movsd  0x10(%r10),%xmm2
  test   %r9d,%r9d
  jne    L43
  cmp    $0x3,%edi
  jle    L27
  lea    -0x4(%rdi),%r9d
  shr    $0x2,%r9d
  lea    0x1(%r9),%esi
  mov    %esi,%esi
  shl    $0x7,%rsi
  lea    (%rdx,%rsi,1),%rcx
  mov    %r8,%rdx
L102:
  movapd %xmm0,%xmm4
  mulsd  0x8(%rax),%xmm4
  movapd %xmm2,%xmm3
  mulsd  0x10(%rax),%xmm3
  movapd %xmm1,%xmm5
  mulsd  (%rax),%xmm5
  movsd  %xmm5,(%rdx)
  movsd  %xmm4,0x8(%rdx)
  movsd  %xmm3,0x10(%rdx)
  movapd %xmm0,%xmm4
  mulsd  0x28(%rax),%xmm4
  movapd %xmm2,%xmm3
  mulsd  0x30(%rax),%xmm3
  movapd %xmm1,%xmm5
  mulsd  0x20(%rax),%xmm5
  movsd  %xmm5,0x20(%rdx)
  movsd  %xmm4,0x28(%rdx)
  movsd  %xmm3,0x30(%rdx)
  movapd %xmm0,%xmm4
  mulsd  0x48(%rax),%xmm4
  movapd %xmm2,%xmm3
  mulsd  0x50(%rax),%xmm3
  movapd %xmm1,%xmm5
  mulsd  0x40(%rax),%xmm5
  movsd  %xmm5,0x40(%rdx)
  movsd  %xmm4,0x48(%rdx)
  movsd  %xmm3,0x50(%rdx)
  movapd %xmm0,%xmm4
  mulsd  0x68(%rax),%xmm4
  movapd %xmm2,%xmm3
  mulsd  0x70(%rax),%xmm3
  movapd %xmm1,%xmm5
  mulsd  0x60(%rax),%xmm5
  movsd  %xmm5,0x60(%rdx)
  movsd  %xmm4,0x68(%rdx)
  movsd  %xmm3,0x70(%rdx)
  sub    $0xffffffffffffff80,%rax
  sub    $0xffffffffffffff80,%rdx
  cmp    %rcx,%rax
  jne    L102
  add    %rsi,%r8
  lea    0x4(,%r9,4),%r9d
  cmp    %r9d,%edi
  jle    L37
L5:
  movapd %xmm0,%xmm4
  mulsd  0x8(%rcx),%xmm4
  movapd %xmm2,%xmm3
  mulsd  0x10(%rcx),%xmm3
  movapd %xmm1,%xmm5
  mulsd  (%rcx),%xmm5
  movsd  %xmm5,(%r8)
  movsd  %xmm4,0x8(%r8)
  movsd  %xmm3,0x10(%r8)
  add    $0x20,%rcx
  add    $0x20,%r8
  add    $0x1,%r9d
  cmp    %r9d,%edi
  jg     L5
  ret
L75:
  movsd  (%r10),%xmm1
  movq   D3(%rip),%xmm3
  xorpd  %xmm3,%xmm1
  movsd  0x8(%r10),%xmm0
  xorpd  %xmm3,%xmm0
  movsd  0x10(%r10),%xmm2
  xorpd  %xmm3,%xmm2
L43:
  mov    %rax,%r9
  mov    $0x0,%edx
  cmp    $0x3,%edi
  jle    L7
  lea    -0x4(%rdi),%r11d
  shr    $0x2,%r11d
  lea    0x1(%r11),%r10d
  mov    %r10d,%r10d
  shl    $0x7,%r10
  lea    (%rax,%r10,1),%r9
  mov    %r8,%rcx
  mov    %rsi,%rdx
L46:
  movapd %xmm0,%xmm4
  mulsd  0x8(%rax),%xmm4
  addsd  0x8(%rdx),%xmm4
  movapd %xmm2,%xmm3
  mulsd  0x10(%rax),%xmm3
  addsd  0x10(%rdx),%xmm3
  movapd %xmm1,%xmm5
  mulsd  (%rax),%xmm5
  addsd  (%rdx),%xmm5
  movsd  %xmm5,(%rcx)
  movsd  %xmm4,0x8(%rcx)
  movsd  %xmm3,0x10(%rcx)
  movapd %xmm0,%xmm4
  mulsd  0x28(%rax),%xmm4
  addsd  0x28(%rdx),%xmm4
  movapd %xmm2,%xmm3
  mulsd  0x30(%rax),%xmm3
  addsd  0x30(%rdx),%xmm3
  movapd %xmm1,%xmm5
  mulsd  0x20(%rax),%xmm5
  addsd  0x20(%rdx),%xmm5
  movsd  %xmm5,0x20(%rcx)
  movsd  %xmm4,0x28(%rcx)
  movsd  %xmm3,0x30(%rcx)
  movapd %xmm0,%xmm4
  mulsd  0x48(%rax),%xmm4
  addsd  0x48(%rdx),%xmm4
  movapd %xmm2,%xmm3
  mulsd  0x50(%rax),%xmm3
  addsd  0x50(%rdx),%xmm3
  movapd %xmm1,%xmm5
  mulsd  0x40(%rax),%xmm5
  addsd  0x40(%rdx),%xmm5
  movsd  %xmm5,0x40(%rcx)
  movsd  %xmm4,0x48(%rcx)
  movsd  %xmm3,0x50(%rcx)
  movapd %xmm0,%xmm4
  mulsd  0x68(%rax),%xmm4
  addsd  0x68(%rdx),%xmm4
  movapd %xmm2,%xmm3
  mulsd  0x70(%rax),%xmm3
  addsd  0x70(%rdx),%xmm3
  movapd %xmm1,%xmm5
  mulsd  0x60(%rax),%xmm5
  addsd  0x60(%rdx),%xmm5
  movsd  %xmm5,0x60(%rcx)
  movsd  %xmm4,0x68(%rcx)
  movsd  %xmm3,0x70(%rcx)
  sub    $0xffffffffffffff80,%rax
  sub    $0xffffffffffffff80,%rdx
  sub    $0xffffffffffffff80,%rcx
  cmp    %r9,%rax
  jne    L46
  add    %r10,%rsi
  add    %r10,%r8
  lea    0x4(,%r11,4),%edx
  cmp    %edx,%edi
  jle    L34
L7:
  mov    $0x0,%eax
L96:
  movapd %xmm0,%xmm4
  mulsd  0x8(%r9,%rax,1),%xmm4
  addsd  0x8(%rsi,%rax,1),%xmm4
  movapd %xmm2,%xmm3
  mulsd  0x10(%r9,%rax,1),%xmm3
  addsd  0x10(%rsi,%rax,1),%xmm3
  movapd %xmm1,%xmm5
  mulsd  (%r9,%rax,1),%xmm5
  addsd  (%rsi,%rax,1),%xmm5
  movsd  %xmm5,(%r8,%rax,1)
  movsd  %xmm4,0x8(%r8,%rax,1)
  movsd  %xmm3,0x10(%r8,%rax,1)
  add    $0x1,%edx
  add    $0x20,%rax
  cmp    %edx,%edi
  jg     L96
L34:
  ret
L37:
  ret
L27:
  mov    %rdx,%rcx
  jmp    L5
```

tool_calls: name: parse_data
arguments: data_label: D3
type_infered: byte[8]

tool: {"D3": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80]}

assistant: ```c
void kernel_dgemm_diag_left_3_lib4(int kmax, double *A, double *B, double *C, double *D, int alg) {
  if (kmax <= 0)
    return;
  const int bs = 4;
  int k;
  double a_0, a_1, a_2, b_0, b_1, b_2, c_0, c_1, c_2;
  if (alg == -1) {
    a_0 = -A[0];
    a_1 = -A[1];
    a_2 = -A[2];
  } else {
    a_0 = A[0];
    a_1 = A[1];
    a_2 = A[2];
  }
  if (alg == 0) {
    for (k = 0; k < kmax - 3; k += 4) {
      b_0 = B[0 + bs * 0];
      b_1 = B[1 + bs * 0];
      b_2 = B[2 + bs * 0];
      c_0 = a_0 * b_0;
      c_1 = a_1 * b_1;
      c_2 = a_2 * b_2;
      D[0 + bs * 0] = c_0;
      D[1 + bs * 0] = c_1;
      D[2 + bs * 0] = c_2;
      b_0 = B[0 + bs * 1];
      b_1 = B[1 + bs * 1];
      b_2 = B[2 + bs * 1];
      c_0 = a_0 * b_0;
      c_1 = a_1 * b_1;
      c_2 = a_2 * b_2;
      D[0 + bs * 1] = c_0;
      D[1 + bs * 1] = c_1;
      D[2 + bs * 1] = c_2;
      b_0 = B[0 + bs * 2];
      b_1 = B[1 + bs * 2];
      b_2 = B[2 + bs * 2];
      c_0 = a_0 * b_0;
      c_1 = a_1 * b_1;
      c_2 = a_2 * b_2;
      D[0 + bs * 2] = c_0;
      D[1 + bs * 2] = c_1;
      D[2 + bs * 2] = c_2;
      b_0 = B[0 + bs * 3];
      b_1 = B[1 + bs * 3];
      b_2 = B[2 + bs * 3];
      c_0 = a_0 * b_0;
      c_1 = a_1 * b_1;
      c_2 = a_2 * b_2;
      D[0 + bs * 3] = c_0;
      D[1 + bs * 3] = c_1;
      D[2 + bs * 3] = c_2;
      B += 16;
      D += 16;
    }
    for (; k < kmax; k++) {
      b_0 = B[0 + bs * 0];
      b_1 = B[1 + bs * 0];
      b_2 = B[2 + bs * 0];
      c_0 = a_0 * b_0;
      c_1 = a_1 * b_1;
      c_2 = a_2 * b_2;
      D[0 + bs * 0] = c_0;
      D[1 + bs * 0] = c_1;
      D[2 + bs * 0] = c_2;
      B += 4;
      D += 4;
    }
  } else {
    for (k = 0; k < kmax - 3; k += 4) {
      b_0 = B[0 + bs * 0];
      b_1 = B[1 + bs * 0];
      b_2 = B[2 + bs * 0];
      c_0 = C[0 + bs * 0] + a_0 * b_0;
      c_1 = C[1 + bs * 0] + a_1 * b_1;
      c_2 = C[2 + bs * 0] + a_2 * b_2;
      D[0 + bs * 0] = c_0;
      D[1 + bs * 0] = c_1;
      D[2 + bs * 0] = c_2;
      b_0 = B[0 + bs * 1];
      b_1 = B[1 + bs * 1];
      b_2 = B[2 + bs * 1];
      c_0 = C[0 + bs * 1] + a_0 * b_0;
      c_1 = C[1 + bs * 1] + a_1 * b_1;
      c_2 = C[2 + bs * 1] + a_2 * b_2;
      D[0 + bs * 1] = c_0;
      D[1 + bs * 1] = c_1;
      D[2 + bs * 1] = c_2;
      b_0 = B[0 + bs * 2];
      b_1 = B[1 + bs * 2];
      b_2 = B[2 + bs * 2];
      c_0 = C[0 + bs * 2] + a_0 * b_0;
      c_1 = C[1 + bs * 2] + a_1 * b_1;
      c_2 = C[2 + bs * 2] + a_2 * b_2;
      D[0 + bs * 2] = c_0;
      D[1 + bs * 2] = c_1;
      D[2 + bs * 2] = c_2;
      b_0 = B[0 + bs * 3];
      b_1 = B[1 + bs * 3];
      b_2 = B[2 + bs * 3];
      c_0 = C[0 + bs * 3] + a_0 * b_0;
      c_1 = C[1 + bs * 3] + a_1 * b_1;
      c_2 = C[2 + bs * 3] + a_2 * b_2;
      D[0 + bs * 3] = c_0;
      D[1 + bs * 3] = c_1;
      D[2 + bs * 3] = c_2;
      B += 16;
      C += 16;
      D += 16;
    }
    for (; k < kmax; k++) {
      b_0 = B[0 + bs * 0];
      b_1 = B[1 + bs * 0];
      b_2 = B[2 + bs * 0];
      c_0 = C[0 + bs * 0] + a_0 * b_0;
      c_1 = C[1 + bs * 0] + a_1 * b_1;
      c_2 = C[2 + bs * 0] + a_2 * b_2;
      D[0 + bs * 0] = c_0;
      D[1 + bs * 0] = c_1;
      D[2 + bs * 0] = c_2;
      B += 4;
      C += 4;
      D += 4;
    }
  }
}
```