user: What would the C source look like for the assembly code provided here:

```asm
<s_cvt_tran_mat2pmat>:
  endbr64
  mov    %edx,%ecx
  push   %r15
  mov    %edi,%r10d
  neg    %ecx
  push   %r14
  and    $0x3,%ecx
  push   %r13
  cmp    %esi,%ecx
  push   %r12
  cmovg  %esi,%ecx
  push   %rbp
  push   %rbx
  sub    %ecx,%esi
  mov    %r9d,-0x4(%rsp)
  mov    %esi,-0x8(%rsp)
  test   %ecx,%ecx
  jle    L50
  test   %edi,%edi
  jle    L116
  movslq -0x4(%rsp),%rdi
  mov    0x38(%rsp),%rsi
  mov    %r8,%r11
  xor    %r9d,%r9d
  shl    $0x2,%rdi
  nopl   0x0(%rax)
L66:
  mov    %r11,%rdx
  xor    %eax,%eax
  nopl   (%rax)
L55:
  movss  (%rdx),%xmm0
  add    %rdi,%rdx
  movss  %xmm0,(%rsi,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%ecx
  jg     L55
  add    $0x1,%r9d
  add    $0x4,%r11
  add    $0x10,%rsi
  cmp    %r9d,%r10d
  jne    L66
L116:
  mov    -0x4(%rsp),%eax
  mov    0x38(%rsp),%rbx
  imul   %ecx,%eax
  cltq
  lea    (%r8,%rax,4),%r8
  mov    0x40(%rsp),%eax
  lea    -0x4(%rcx,%rax,4),%eax
  cltq
  lea    (%rbx,%rax,4),%rax
  mov    %rax,0x38(%rsp)
L50:
  mov    -0x8(%rsp),%eax
  sub    $0x3,%eax
  mov    %eax,-0x24(%rsp)
  test   %eax,%eax
  jle    L42
  mov    -0x4(%rsp),%eax
  mov    0x40(%rsp),%ebx
  xor    %ebp,%ebp
  xor    %r14d,%r14d
  lea    (%rax,%rax,1),%r11d
  mov    %eax,%r13d
  lea    0x0(,%rax,4),%r9d
  shl    $0x2,%ebx
  lea    (%r11,%rax,1),%r12d
  lea    -0x4(%r10),%eax
  mov    %ebx,-0x20(%rsp)
  xor    %ebx,%ebx
  shr    $0x2,%eax
  mov    %eax,%edx
  lea    0x4(,%rax,4),%eax
  mov    %eax,-0x1c(%rsp)
  mov    0x38(%rsp),%rax
  shl    $0x4,%rdx
  mov    %rdx,-0x18(%rsp)
  add    $0x40,%rax
  mov    %rax,-0x10(%rsp)
  nopl   0x0(%rax)
L61:
  xor    %edx,%edx
  cmp    $0x3,%r10d
  jle    L34
  movslq %ebx,%rax
  movslq %ebp,%r15
  movslq %r13d,%rdx
  lea    (%r8,%rax,4),%rdi
  mov    0x38(%rsp),%rax
  lea    (%r8,%rdx,4),%rsi
  movslq %r11d,%rdx
  lea    (%r8,%rdx,4),%rcx
  movslq %r12d,%rdx
  lea    (%rax,%r15,4),%rax
  add    -0x18(%rsp),%r15
  lea    (%r8,%rdx,4),%rdx
  mov    %rax,-0x30(%rsp)
  mov    -0x10(%rsp),%rax
  lea    (%rax,%r15,4),%r15
  mov    -0x30(%rsp),%rax
  nopl   0x0(%rax)
L134:
  movss  (%rdi),%xmm0
  add    $0x40,%rax
  add    $0x10,%rdi
  add    $0x10,%rsi
  add    $0x10,%rcx
  add    $0x10,%rdx
  movss  %xmm0,-0x40(%rax)
  movss  -0x10(%rsi),%xmm0
  movss  %xmm0,-0x3c(%rax)
  movss  -0x10(%rcx),%xmm0
  movss  %xmm0,-0x38(%rax)
  movss  -0x10(%rdx),%xmm0
  movss  %xmm0,-0x34(%rax)
  movss  -0xc(%rdi),%xmm0
  movss  %xmm0,-0x30(%rax)
  movss  -0xc(%rsi),%xmm0
  movss  %xmm0,-0x2c(%rax)
  movss  -0xc(%rcx),%xmm0
  movss  %xmm0,-0x28(%rax)
  movss  -0xc(%rdx),%xmm0
  movss  %xmm0,-0x24(%rax)
  movss  -0x8(%rdi),%xmm0
  movss  %xmm0,-0x20(%rax)
  movss  -0x8(%rsi),%xmm0
  movss  %xmm0,-0x1c(%rax)
  movss  -0x8(%rcx),%xmm0
  movss  %xmm0,-0x18(%rax)
  movss  -0x8(%rdx),%xmm0
  movss  %xmm0,-0x14(%rax)
  movss  -0x4(%rdi),%xmm0
  movss  %xmm0,-0x10(%rax)
  movss  -0x4(%rsi),%xmm0
  movss  %xmm0,-0xc(%rax)
  movss  -0x4(%rcx),%xmm0
  movss  %xmm0,-0x8(%rax)
  movss  -0x4(%rdx),%xmm0
  movss  %xmm0,-0x4(%rax)
  cmp    %rax,%r15
  jne    L134
  mov    -0x1c(%rsp),%edx
L34:
  cmp    %edx,%r10d
  jle    L71
  movslq %edx,%rax
  shl    $0x2,%edx
  movslq %ebp,%rcx
  mov    0x38(%rsp),%rdi
  movslq %edx,%rdx
  add    %rcx,%rdx
  movslq %ebx,%rcx
  lea    (%r8,%rcx,4),%r15
  movslq %r13d,%rcx
  lea    (%rdi,%rdx,4),%rdx
  lea    (%r8,%rcx,4),%rdi
  movslq %r11d,%rcx
  lea    (%r8,%rcx,4),%rsi
  movslq %r12d,%rcx
  lea    (%r8,%rcx,4),%rcx
L143:
  movss  (%r15,%rax,4),%xmm0
  add    $0x10,%rdx
  movss  %xmm0,-0x10(%rdx)
  movss  (%rdi,%rax,4),%xmm0
  movss  %xmm0,-0xc(%rdx)
  movss  (%rsi,%rax,4),%xmm0
  movss  %xmm0,-0x8(%rdx)
  movss  (%rcx,%rax,4),%xmm0
  add    $0x1,%rax
  movss  %xmm0,-0x4(%rdx)
  cmp    %eax,%r10d
  jg     L143
L71:
  add    $0x4,%r14d
  add    %r9d,%ebx
  add    -0x20(%rsp),%ebp
  add    %r9d,%r13d
  add    %r9d,%r11d
  add    %r9d,%r12d
  cmp    -0x24(%rsp),%r14d
  jl     L61
  mov    -0x8(%rsp),%eax
  sub    $0x4,%eax
  shr    $0x2,%eax
  lea    0x4(,%rax,4),%eax
L45:
  mov    -0x8(%rsp),%ebx
  cmp    %eax,%ebx
  jle    L32
  mov    %ebx,%r9d
  mov    $0x4,%edx
  sub    %eax,%r9d
  cmp    %edx,%r9d
  cmovg  %edx,%r9d
  test   %r10d,%r10d
  jle    L32
  movslq -0x4(%rsp),%rsi
  mov    0x38(%rsp),%rdi
  mov    %esi,%edx
  shl    $0x2,%rsi
  imul   %eax,%edx
  imul   0x40(%rsp),%eax
  movslq %edx,%rdx
  cltq
  lea    (%r8,%rdx,4),%r8
  lea    (%rdi,%rax,4),%rcx
  xor    %edi,%edi
  nopl   (%rax)
L84:
  mov    %r8,%rdx
  xor    %eax,%eax
  nopl   (%rax)
L93:
  movss  (%rdx),%xmm0
  add    %rsi,%rdx
  movss  %xmm0,(%rcx,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%r9d
  jg     L93
  add    $0x1,%edi
  add    $0x4,%r8
  add    $0x10,%rcx
  cmp    %edi,%r10d
  jne    L84
L32:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L42:
  xor    %eax,%eax
  jmp    L45
```

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