user: Translate the below assembly code into C programming language:

```asm
<s_cvt_mat2pmat>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edi,%ecx
  mov    %esi,%r12d
  mov    %r8,%r14
  mov    %r9d,-0x50(%rsp)
  mov    %edx,%eax
  sar    $0x1f,%eax
  shr    $0x1d,%eax
  add    %eax,%edx
  and    $0x7,%edx
  sub    %edx,%eax
  lea    0x8(%rax),%eax
  mov    %eax,%esi
  sar    $0x1f,%esi
  shr    $0x1d,%esi
  lea    (%rax,%rsi,1),%edx
  and    $0x7,%edx
  sub    %esi,%edx
  cmp    %edi,%edx
  cmovg  %edi,%edx
  sub    %edx,%ecx
  mov    %ecx,-0x4(%rsp)
  test   %edx,%edx
  jle    L165
  test   %r12d,%r12d
  jle    L183
  movslq %r9d,%r8
  shl    $0x2,%r8
  mov    %r14,%rsi
  mov    0x38(%rsp),%rcx
  lea    0x0(,%r12,8),%r9d
  mov    $0x0,%edi
L49:
  mov    $0x0,%eax
L135:
  movss  (%rsi,%rax,4),%xmm0
  movss  %xmm0,(%rcx,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%edx
  jg     L135
  add    $0x8,%edi
  add    %r8,%rsi
  add    $0x20,%rcx
  cmp    %r9d,%edi
  jne    L49
L183:
  movslq %edx,%rax
  lea    (%r14,%rax,4),%r14
  mov    0x40(%rsp),%eax
  lea    -0x8(%rdx,%rax,8),%eax
  cltq
  mov    0x38(%rsp),%rbx
  lea    (%rbx,%rax,4),%rax
  mov    %rax,0x38(%rsp)
L165:
  mov    -0x4(%rsp),%eax
  sub    $0x7,%eax
  mov    %eax,-0x4c(%rsp)
  test   %eax,%eax
  jle    L52
  mov    0x40(%rsp),%eax
  shl    $0x3,%eax
  mov    %eax,-0x48(%rsp)
  mov    -0x50(%rsp),%ebx
  movslq %ebx,%rax
  lea    0x0(,%rax,4),%rdi
  mov    %rdi,-0x58(%rsp)
  lea    (%r14,%rdi,1),%rbp
  lea    0x0(,%rbx,8),%r8d
  movslq %r8d,%r8
  shl    $0x2,%r8
  lea    (%rbx,%rbx,1),%edx
  movslq %edx,%rcx
  sub    %rax,%rcx
  lea    0x0(,%rcx,4),%rdi
  mov    %rdi,-0x38(%rsp)
  add    %ebx,%edx
  movslq %edx,%rdx
  sub    %rax,%rdx
  lea    0x0(,%rdx,4),%rdi
  mov    %rdi,-0x30(%rsp)
  lea    0x0(,%rbx,4),%edx
  movslq %edx,%rcx
  sub    %rax,%rcx
  lea    0x0(,%rcx,4),%rdi
  mov    %rdi,-0x28(%rsp)
  add    %ebx,%edx
  movslq %edx,%rdx
  sub    %rax,%rdx
  lea    0x0(,%rdx,4),%rbx
  mov    %rbx,-0x20(%rsp)
  lea    -0x8(%r12),%edx
  shr    $0x3,%edx
  mov    %edx,%ecx
  shl    $0x6,%rcx
  mov    %rcx,-0x40(%rsp)
  lea    (%rax,%rax,2),%rsi
  shl    $0x3,%rsi
  lea    0x8(,%rdx,8),%eax
  mov    %eax,-0x44(%rsp)
  mov    $0x0,%r13d
  mov    $0x0,%r15d
  mov    0x38(%rsp),%rax
  add    $0x100,%rax
  mov    %rax,-0x18(%rsp)
  lea    -0x1(%r12),%eax
  mov    %eax,-0x8(%rsp)
  mov    0x38(%rsp),%rax
  add    $0x20,%rax
  mov    %rax,-0x10(%rsp)
  jmp    L192
L157:
  add    -0x48(%rsp),%r15d
  add    $0x20,%rbp
  add    $0x8,%r13
  cmp    %r13d,-0x4c(%rsp)
  jle    L129
L192:
  mov    $0x0,%ecx
  cmp    $0x7,%r12d
  jle    L115
  lea    (%r14,%r13,4),%rcx
  movslq %r15d,%rdx
  mov    0x38(%rsp),%rax
  lea    (%rax,%rdx,4),%rax
  mov    -0x38(%rsp),%rbx
  lea    0x0(%rbp,%rbx,1),%r11
  mov    -0x30(%rsp),%rbx
  lea    0x0(%rbp,%rbx,1),%r10
  mov    -0x28(%rsp),%rbx
  lea    0x0(%rbp,%rbx,1),%r9
  mov    -0x20(%rsp),%rbx
  lea    0x0(%rbp,%rbx,1),%rdi
  add    -0x40(%rsp),%rdx
  mov    -0x18(%rsp),%rbx
  lea    (%rbx,%rdx,4),%rbx
  mov    %rbp,%rdx
L191:
  movss  (%rcx),%xmm0
  movss  %xmm0,(%rax)
  movss  0x4(%rcx),%xmm0
  movss  %xmm0,0x4(%rax)
  movss  0x8(%rcx),%xmm0
  movss  %xmm0,0x8(%rax)
  movss  0xc(%rcx),%xmm0
  movss  %xmm0,0xc(%rax)
  movss  0x10(%rcx),%xmm0
  movss  %xmm0,0x10(%rax)
  movss  0x14(%rcx),%xmm0
  movss  %xmm0,0x14(%rax)
  movss  0x18(%rcx),%xmm0
  movss  %xmm0,0x18(%rax)
  movss  0x1c(%rcx),%xmm0
  movss  %xmm0,0x1c(%rax)
  movss  (%rdx),%xmm0
  movss  %xmm0,0x20(%rax)
  movss  0x4(%rdx),%xmm0
  movss  %xmm0,0x24(%rax)
  movss  0x8(%rdx),%xmm0
  movss  %xmm0,0x28(%rax)
  movss  0xc(%rdx),%xmm0
  movss  %xmm0,0x2c(%rax)
  movss  0x10(%rdx),%xmm0
  movss  %xmm0,0x30(%rax)
  movss  0x14(%rdx),%xmm0
  movss  %xmm0,0x34(%rax)
  movss  0x18(%rdx),%xmm0
  movss  %xmm0,0x38(%rax)
  movss  0x1c(%rdx),%xmm0
  movss  %xmm0,0x3c(%rax)
  movss  (%r11),%xmm0
  movss  %xmm0,0x40(%rax)
  movss  0x4(%r11),%xmm0
  movss  %xmm0,0x44(%rax)
  movss  0x8(%r11),%xmm0
  movss  %xmm0,0x48(%rax)
  movss  0xc(%r11),%xmm0
  movss  %xmm0,0x4c(%rax)
  movss  0x10(%r11),%xmm0
  movss  %xmm0,0x50(%rax)
  movss  0x14(%r11),%xmm0
  movss  %xmm0,0x54(%rax)
  movss  0x18(%r11),%xmm0
  movss  %xmm0,0x58(%rax)
  movss  0x1c(%r11),%xmm0
  movss  %xmm0,0x5c(%rax)
  movss  (%r10),%xmm0
  movss  %xmm0,0x60(%rax)
  movss  0x4(%r10),%xmm0
  movss  %xmm0,0x64(%rax)
  movss  0x8(%r10),%xmm0
  movss  %xmm0,0x68(%rax)
  movss  0xc(%r10),%xmm0
  movss  %xmm0,0x6c(%rax)
  movss  0x10(%r10),%xmm0
  movss  %xmm0,0x70(%rax)
  movss  0x14(%r10),%xmm0
  movss  %xmm0,0x74(%rax)
  movss  0x18(%r10),%xmm0
  movss  %xmm0,0x78(%rax)
  movss  0x1c(%r10),%xmm0
  movss  %xmm0,0x7c(%rax)
  movss  (%r9),%xmm0
  movss  %xmm0,0x80(%rax)
  movss  0x4(%r9),%xmm0
  movss  %xmm0,0x84(%rax)
  movss  0x8(%r9),%xmm0
  movss  %xmm0,0x88(%rax)
  movss  0xc(%r9),%xmm0
  movss  %xmm0,0x8c(%rax)
  movss  0x10(%r9),%xmm0
  movss  %xmm0,0x90(%rax)
  movss  0x14(%r9),%xmm0
  movss  %xmm0,0x94(%rax)
  movss  0x18(%r9),%xmm0
  movss  %xmm0,0x98(%rax)
  movss  0x1c(%r9),%xmm0
  movss  %xmm0,0x9c(%rax)
  movss  (%rdi),%xmm0
  movss  %xmm0,0xa0(%rax)
  movss  0x4(%rdi),%xmm0
  movss  %xmm0,0xa4(%rax)
  movss  0x8(%rdi),%xmm0
  movss  %xmm0,0xa8(%rax)
  movss  0xc(%rdi),%xmm0
  movss  %xmm0,0xac(%rax)
  movss  0x10(%rdi),%xmm0
  movss  %xmm0,0xb0(%rax)
  movss  0x14(%rdi),%xmm0
  movss  %xmm0,0xb4(%rax)
  movss  0x18(%rdi),%xmm0
  movss  %xmm0,0xb8(%rax)
  movss  0x1c(%rdi),%xmm0
  movss  %xmm0,0xbc(%rax)
  movss  (%rcx,%rsi,1),%xmm0
  movss  %xmm0,0xc0(%rax)
  movss  0x4(%rcx,%rsi,1),%xmm0
  movss  %xmm0,0xc4(%rax)
  movss  0x8(%rcx,%rsi,1),%xmm0
  movss  %xmm0,0xc8(%rax)
  movss  0xc(%rcx,%rsi,1),%xmm0
  movss  %xmm0,0xcc(%rax)
  movss  0x10(%rcx,%rsi,1),%xmm0
  movss  %xmm0,0xd0(%rax)
  movss  0x14(%rcx,%rsi,1),%xmm0
  movss  %xmm0,0xd4(%rax)
  movss  0x18(%rcx,%rsi,1),%xmm0
  movss  %xmm0,0xd8(%rax)
  movss  0x1c(%rcx,%rsi,1),%xmm0
  movss  %xmm0,0xdc(%rax)
  movss  (%rdx,%rsi,1),%xmm0
  movss  %xmm0,0xe0(%rax)
  movss  0x4(%rdx,%rsi,1),%xmm0
  movss  %xmm0,0xe4(%rax)
  movss  0x8(%rdx,%rsi,1),%xmm0
  movss  %xmm0,0xe8(%rax)
  movss  0xc(%rdx,%rsi,1),%xmm0
  movss  %xmm0,0xec(%rax)
  movss  0x10(%rdx,%rsi,1),%xmm0
  movss  %xmm0,0xf0(%rax)
  movss  0x14(%rdx,%rsi,1),%xmm0
  movss  %xmm0,0xf4(%rax)
  movss  0x18(%rdx,%rsi,1),%xmm0
  movss  %xmm0,0xf8(%rax)
  movss  0x1c(%rdx,%rsi,1),%xmm0
  movss  %xmm0,0xfc(%rax)
  add    %r8,%rcx
  add    $0x100,%rax
  add    %r8,%rdx
  add    %r8,%r11
  add    %r8,%r10
  add    %r8,%r9
  add    %r8,%rdi
  cmp    %rbx,%rax
  jne    L191
  mov    -0x44(%rsp),%ecx
L115:
  cmp    %ecx,%r12d
  jle    L157
  mov    -0x50(%rsp),%eax
  imul   %ecx,%eax
  cltq
  add    %r13,%rax
  lea    (%r14,%rax,4),%rdx
  movslq %r15d,%rdi
  lea    0x0(,%rcx,8),%eax
  cltq
  add    %rdi,%rax
  mov    0x38(%rsp),%rbx
  lea    (%rbx,%rax,4),%rax
  mov    -0x8(%rsp),%r9d
  sub    %ecx,%r9d
  movslq %ecx,%rcx
  add    %rcx,%r9
  lea    (%rdi,%r9,8),%rcx
  mov    -0x10(%rsp),%rbx
  lea    (%rbx,%rcx,4),%rcx
L123:
  movss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
  movss  0x4(%rdx),%xmm0
  movss  %xmm0,0x4(%rax)
  movss  0x8(%rdx),%xmm0
  movss  %xmm0,0x8(%rax)
  movss  0xc(%rdx),%xmm0
  movss  %xmm0,0xc(%rax)
  movss  0x10(%rdx),%xmm0
  movss  %xmm0,0x10(%rax)
  movss  0x14(%rdx),%xmm0
  movss  %xmm0,0x14(%rax)
  movss  0x18(%rdx),%xmm0
  movss  %xmm0,0x18(%rax)
  movss  0x1c(%rdx),%xmm0
  movss  %xmm0,0x1c(%rax)
  add    -0x58(%rsp),%rdx
  add    $0x20,%rax
  cmp    %rcx,%rax
  jne    L123
  jmp    L157
L129:
  mov    -0x4(%rsp),%eax
  sub    $0x8,%eax
  shr    $0x3,%eax
  lea    0x8(,%rax,8),%r11d
L174:
  mov    -0x4(%rsp),%eax
  cmp    %r11d,%eax
  jle    L23
  mov    %eax,%r10d
  sub    %r11d,%r10d
  mov    $0x8,%esi
  cmp    %esi,%r10d
  cmovle %r10d,%esi
  test   %r12d,%r12d
  jle    L23
  mov    %r11d,%r9d
  imul   0x40(%rsp),%r9d
  mov    $0x0,%r8d
  mov    $0x0,%edi
  movslq %r11d,%r11
  movslq %r9d,%r9
  mov    -0x50(%rsp),%ebx
  mov    0x38(%rsp),%rbp
  jmp    L74
L52:
  mov    $0x0,%r11d
  jmp    L174
L106:
  movslq %r8d,%rax
  add    %r11,%rax
  lea    (%r14,%rax,4),%rcx
  lea    0x0(,%rdi,8),%eax
  cltq
  add    %r9,%rax
  lea    0x0(%rbp,%rax,4),%rdx
  mov    $0x0,%eax
L48:
  movss  (%rcx,%rax,4),%xmm0
  movss  %xmm0,(%rdx,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%esi
  jg     L48
L130:
  add    $0x1,%edi
  add    %ebx,%r8d
  cmp    %edi,%r12d
  je     L23
L74:
  test   %r10d,%r10d
  jg     L106
  jmp    L130
L23:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void s_cvt_mat2pmat(int row, int col, int offset, int bs_dummy, float *A, int lda, float *pA, int sda) {
  const int bs = 8;
  int i, ii, j, row0, row1, row2;
  row0 = (bs - offset % bs) % bs;
  if (row0 > row)
    row0 = row;
  row1 = row - row0;
  ii = 0;
  if (row0 > 0) {
    for (j = 0; j < col; j++) {
      for (i = 0; i < row0; i++) {
        pA[i + j * bs + ii * sda] = A[i + ii + j * lda];
      }
    }
    A += row0;
    pA += row0 + bs * (sda - 1);
  }
  ii = 0;
  for (; ii < row1 - 7; ii += bs) {
    j = 0;
    for (; j < col - 7; j += 8) {
      pA[0 + (j + 0) * bs + ii * sda] = A[ii + 0 + (j + 0) * lda];
      pA[1 + (j + 0) * bs + ii * sda] = A[ii + 1 + (j + 0) * lda];
      pA[2 + (j + 0) * bs + ii * sda] = A[ii + 2 + (j + 0) * lda];
      pA[3 + (j + 0) * bs + ii * sda] = A[ii + 3 + (j + 0) * lda];
      pA[4 + (j + 0) * bs + ii * sda] = A[ii + 4 + (j + 0) * lda];
      pA[5 + (j + 0) * bs + ii * sda] = A[ii + 5 + (j + 0) * lda];
      pA[6 + (j + 0) * bs + ii * sda] = A[ii + 6 + (j + 0) * lda];
      pA[7 + (j + 0) * bs + ii * sda] = A[ii + 7 + (j + 0) * lda];
      pA[0 + (j + 1) * bs + ii * sda] = A[ii + 0 + (j + 1) * lda];
      pA[1 + (j + 1) * bs + ii * sda] = A[ii + 1 + (j + 1) * lda];
      pA[2 + (j + 1) * bs + ii * sda] = A[ii + 2 + (j + 1) * lda];
      pA[3 + (j + 1) * bs + ii * sda] = A[ii + 3 + (j + 1) * lda];
      pA[4 + (j + 1) * bs + ii * sda] = A[ii + 4 + (j + 1) * lda];
      pA[5 + (j + 1) * bs + ii * sda] = A[ii + 5 + (j + 1) * lda];
      pA[6 + (j + 1) * bs + ii * sda] = A[ii + 6 + (j + 1) * lda];
      pA[7 + (j + 1) * bs + ii * sda] = A[ii + 7 + (j + 1) * lda];
      pA[0 + (j + 2) * bs + ii * sda] = A[ii + 0 + (j + 2) * lda];
      pA[1 + (j + 2) * bs + ii * sda] = A[ii + 1 + (j + 2) * lda];
      pA[2 + (j + 2) * bs + ii * sda] = A[ii + 2 + (j + 2) * lda];
      pA[3 + (j + 2) * bs + ii * sda] = A[ii + 3 + (j + 2) * lda];
      pA[4 + (j + 2) * bs + ii * sda] = A[ii + 4 + (j + 2) * lda];
      pA[5 + (j + 2) * bs + ii * sda] = A[ii + 5 + (j + 2) * lda];
      pA[6 + (j + 2) * bs + ii * sda] = A[ii + 6 + (j + 2) * lda];
      pA[7 + (j + 2) * bs + ii * sda] = A[ii + 7 + (j + 2) * lda];
      pA[0 + (j + 3) * bs + ii * sda] = A[ii + 0 + (j + 3) * lda];
      pA[1 + (j + 3) * bs + ii * sda] = A[ii + 1 + (j + 3) * lda];
      pA[2 + (j + 3) * bs + ii * sda] = A[ii + 2 + (j + 3) * lda];
      pA[3 + (j + 3) * bs + ii * sda] = A[ii + 3 + (j + 3) * lda];
      pA[4 + (j + 3) * bs + ii * sda] = A[ii + 4 + (j + 3) * lda];
      pA[5 + (j + 3) * bs + ii * sda] = A[ii + 5 + (j + 3) * lda];
      pA[6 + (j + 3) * bs + ii * sda] = A[ii + 6 + (j + 3) * lda];
      pA[7 + (j + 3) * bs + ii * sda] = A[ii + 7 + (j + 3) * lda];
      pA[0 + (j + 4) * bs + ii * sda] = A[ii + 0 + (j + 4) * lda];
      pA[1 + (j + 4) * bs + ii * sda] = A[ii + 1 + (j + 4) * lda];
      pA[2 + (j + 4) * bs + ii * sda] = A[ii + 2 + (j + 4) * lda];
      pA[3 + (j + 4) * bs + ii * sda] = A[ii + 3 + (j + 4) * lda];
      pA[4 + (j + 4) * bs + ii * sda] = A[ii + 4 + (j + 4) * lda];
      pA[5 + (j + 4) * bs + ii * sda] = A[ii + 5 + (j + 4) * lda];
      pA[6 + (j + 4) * bs + ii * sda] = A[ii + 6 + (j + 4) * lda];
      pA[7 + (j + 4) * bs + ii * sda] = A[ii + 7 + (j + 4) * lda];
      pA[0 + (j + 5) * bs + ii * sda] = A[ii + 0 + (j + 5) * lda];
      pA[1 + (j + 5) * bs + ii * sda] = A[ii + 1 + (j + 5) * lda];
      pA[2 + (j + 5) * bs + ii * sda] = A[ii + 2 + (j + 5) * lda];
      pA[3 + (j + 5) * bs + ii * sda] = A[ii + 3 + (j + 5) * lda];
      pA[4 + (j + 5) * bs + ii * sda] = A[ii + 4 + (j + 5) * lda];
      pA[5 + (j + 5) * bs + ii * sda] = A[ii + 5 + (j + 5) * lda];
      pA[6 + (j + 5) * bs + ii * sda] = A[ii + 6 + (j + 5) * lda];
      pA[7 + (j + 5) * bs + ii * sda] = A[ii + 7 + (j + 5) * lda];
      pA[0 + (j + 6) * bs + ii * sda] = A[ii + 0 + (j + 6) * lda];
      pA[1 + (j + 6) * bs + ii * sda] = A[ii + 1 + (j + 6) * lda];
      pA[2 + (j + 6) * bs + ii * sda] = A[ii + 2 + (j + 6) * lda];
      pA[3 + (j + 6) * bs + ii * sda] = A[ii + 3 + (j + 6) * lda];
      pA[4 + (j + 6) * bs + ii * sda] = A[ii + 4 + (j + 6) * lda];
      pA[5 + (j + 6) * bs + ii * sda] = A[ii + 5 + (j + 6) * lda];
      pA[6 + (j + 6) * bs + ii * sda] = A[ii + 6 + (j + 6) * lda];
      pA[7 + (j + 6) * bs + ii * sda] = A[ii + 7 + (j + 6) * lda];
      pA[0 + (j + 7) * bs + ii * sda] = A[ii + 0 + (j + 7) * lda];
      pA[1 + (j + 7) * bs + ii * sda] = A[ii + 1 + (j + 7) * lda];
      pA[2 + (j + 7) * bs + ii * sda] = A[ii + 2 + (j + 7) * lda];
      pA[3 + (j + 7) * bs + ii * sda] = A[ii + 3 + (j + 7) * lda];
      pA[4 + (j + 7) * bs + ii * sda] = A[ii + 4 + (j + 7) * lda];
      pA[5 + (j + 7) * bs + ii * sda] = A[ii + 5 + (j + 7) * lda];
      pA[6 + (j + 7) * bs + ii * sda] = A[ii + 6 + (j + 7) * lda];
      pA[7 + (j + 7) * bs + ii * sda] = A[ii + 7 + (j + 7) * lda];
    }
    for (; j < col; j++) {
      pA[0 + (j + 0) * bs + ii * sda] = A[ii + 0 + (j + 0) * lda];
      pA[1 + (j + 0) * bs + ii * sda] = A[ii + 1 + (j + 0) * lda];
      pA[2 + (j + 0) * bs + ii * sda] = A[ii + 2 + (j + 0) * lda];
      pA[3 + (j + 0) * bs + ii * sda] = A[ii + 3 + (j + 0) * lda];
      pA[4 + (j + 0) * bs + ii * sda] = A[ii + 4 + (j + 0) * lda];
      pA[5 + (j + 0) * bs + ii * sda] = A[ii + 5 + (j + 0) * lda];
      pA[6 + (j + 0) * bs + ii * sda] = A[ii + 6 + (j + 0) * lda];
      pA[7 + (j + 0) * bs + ii * sda] = A[ii + 7 + (j + 0) * lda];
    }
  }
  if (ii < row1) {
    row2 = row1 - ii;
    if (bs < row2)
      row2 = bs;
    for (j = 0; j < col; j++) {
      for (i = 0; i < row2; i++) {
        pA[i + j * bs + ii * sda] = A[i + ii + j * lda];
      }
    }
  }
}
```