user: 请将以下的汇编代码转换成C语言代码：

```asm
<kernel_align_panel_3_3_lib4>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %edi,-0x24(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x28(%rbp)
  mov    %rcx,-0x38(%rbp)
  cmpl   $0x0,-0x24(%rbp)
  jle    L26
  movl   $0x4,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  imul   -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x18(%rbp)
  jmp    L58
L11:
  mov    -0x30(%rbp),%rax
  add    $0x18,%rax
  mov    %rax,%rdi
  call   <_mm_load_sd@plt>
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%edx
  mov    -0x38(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <_mm_store_sd@plt>
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <_mm_loadu_pd@plt>
  mov    %eax,-0xc(%rbp)
  mov    -0x38(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    -0xc(%rbp),%eax
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <_mm_storeu_pd@plt>
  mov    -0x14(%rbp),%eax
  add    $0x3,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rdi
  call   <_mm_load_sd@plt>
  mov    %eax,-0x10(%rbp)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  mov    -0x10(%rbp),%eax
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <_mm_store_sd@plt>
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rdi
  call   <_mm_loadu_pd@plt>
  mov    %eax,-0xc(%rbp)
  mov    -0x14(%rbp),%eax
  add    $0x1,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  mov    -0xc(%rbp),%eax
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <_mm_storeu_pd@plt>
  mov    -0x14(%rbp),%eax
  add    %eax,%eax
  add    $0x3,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rdi
  call   <_mm_load_sd@plt>
  mov    %eax,-0x10(%rbp)
  mov    -0x14(%rbp),%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  mov    -0x10(%rbp),%eax
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <_mm_store_sd@plt>
  mov    -0x14(%rbp),%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rdi
  call   <_mm_loadu_pd@plt>
  mov    %eax,-0xc(%rbp)
  mov    -0x14(%rbp),%eax
  add    %eax,%eax
  add    $0x1,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  mov    -0xc(%rbp),%eax
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <_mm_storeu_pd@plt>
  mov    -0x14(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rdi
  call   <_mm_load_sd@plt>
  mov    %eax,-0x10(%rbp)
  mov    -0x14(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  mov    -0x10(%rbp),%eax
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <_mm_store_sd@plt>
  mov    -0x14(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rdi
  call   <_mm_loadu_pd@plt>
  mov    %eax,-0xc(%rbp)
  mov    -0x14(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  add    $0x1,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  mov    -0xc(%rbp),%eax
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <_mm_storeu_pd@plt>
  subq   $0xffffffffffffff80,-0x30(%rbp)
  subq   $0xffffffffffffff80,-0x8(%rbp)
  subq   $0xffffffffffffff80,-0x38(%rbp)
  addl   $0x4,-0x18(%rbp)
L58:
  mov    -0x24(%rbp),%eax
  sub    $0x3,%eax
  cmp    %eax,-0x18(%rbp)
  jl     L11
  jmp    L49
L54:
  mov    -0x30(%rbp),%rax
  add    $0x18,%rax
  mov    %rax,%rdi
  call   <_mm_load_sd@plt>
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%edx
  mov    -0x38(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <_mm_store_sd@plt>
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <_mm_loadu_pd@plt>
  mov    %eax,-0xc(%rbp)
  mov    -0x38(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    -0xc(%rbp),%eax
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <_mm_storeu_pd@plt>
  addq   $0x20,-0x30(%rbp)
  addq   $0x20,-0x8(%rbp)
  addq   $0x20,-0x38(%rbp)
  addl   $0x1,-0x18(%rbp)
L49:
  mov    -0x18(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L54
  jmp    L53
L26:
  nop
L53:
  leave
  ret
```

assistant: ```c
void kernel_align_panel_3_3_lib4(int kmax, double *A0, int sda, double *B) {
  if (kmax <= 0)
    return;
  const int bs = 4;
  double *A1 = A0 + bs * sda;
  __m128d a_0, a_1;
  int k;
  for (k = 0; k < kmax - 3; k += 4) {
    a_0 = _mm_load_sd(&A0[3 + bs * 0]);
    _mm_store_sd(&B[0 + bs * 0], a_0);
    a_1 = _mm_loadu_pd(&A1[0 + bs * 0]);
    _mm_storeu_pd(&B[1 + bs * 0], a_1);
    a_0 = _mm_load_sd(&A0[3 + bs * 1]);
    _mm_store_sd(&B[0 + bs * 1], a_0);
    a_1 = _mm_loadu_pd(&A1[0 + bs * 1]);
    _mm_storeu_pd(&B[1 + bs * 1], a_1);
    a_0 = _mm_load_sd(&A0[3 + bs * 2]);
    _mm_store_sd(&B[0 + bs * 2], a_0);
    a_1 = _mm_loadu_pd(&A1[0 + bs * 2]);
    _mm_storeu_pd(&B[1 + bs * 2], a_1);
    a_0 = _mm_load_sd(&A0[3 + bs * 3]);
    _mm_store_sd(&B[0 + bs * 3], a_0);
    a_1 = _mm_loadu_pd(&A1[0 + bs * 3]);
    _mm_storeu_pd(&B[1 + bs * 3], a_1);
    A0 += 16;
    A1 += 16;
    B += 16;
  }
  for (; k < kmax; k++) {
    a_0 = _mm_load_sd(&A0[3 + bs * 0]);
    _mm_store_sd(&B[0 + bs * 0], a_0);
    a_1 = _mm_loadu_pd(&A1[0 + bs * 0]);
    _mm_storeu_pd(&B[1 + bs * 0], a_1);
    A0 += 4;
    A1 += 4;
    B += 4;
  }
}
```