user: Converte this assembly snippet into its equivalent C code:

```asm
<s_align_pmat>:
  endbr64
  push   %r15
  mov    %ecx,%r10d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edi,%ebx
  mov    0x38(%rsp),%r11
  movslq 0x40(%rsp),%rcx
  test   %edi,%edi
  jle    L63
  test   %esi,%esi
  jle    L63
  mov    %edx,%edi
  cmp    $0x1,%r10d
  jne    L129
  mov    %esi,%edx
  mov    %rcx,-0x30(%rsp)
  imul   %r9d,%edi
  movslq %r9d,%r15
  shr    $0x2,%edx
  lea    0x0(,%r15,4),%rax
  xor    %r9d,%r9d
  mov    %esi,%r13d
  lea    -0x1(%rdx),%ecx
  mov    %esi,%edx
  mov    %rax,-0x38(%rsp)
  and    $0xfffffffc,%edx
  movslq %edi,%rdi
  add    $0x1,%rcx
  lea    0x1(%rdx),%r10d
  mov    %edx,-0x24(%rsp)
  mov    %edx,%r14d
  add    $0x2,%edx
  mov    %edx,-0x1c(%rsp)
  lea    (%r8,%rdi,4),%rax
  shl    $0x4,%rcx
  mov    %rdx,-0x10(%rsp)
  lea    -0x1(%rsi),%edx
  mov    %edx,-0x28(%rsp)
  mov    %r10d,-0x20(%rsp)
  mov    %r10,-0x18(%rsp)
  xor    %r10d,%r10d
  nop
L100:
  lea    (%r11,%r9,4),%rdx
  lea    0x4(%rax),%r12
  mov    %rdx,%rbp
  sub    %r12,%rbp
  cmp    $0x8,%rbp
  mov    $0x0,%ebp
  jbe    L113
  cmpl   $0x2,-0x28(%rsp)
  jbe    L113
  nopl   0x0(%rax,%rax,1)
L133:
  movups (%rax,%rbp,1),%xmm1
  movups %xmm1,(%rdx,%rbp,1)
  add    $0x10,%rbp
  cmp    %rcx,%rbp
  jne    L133
  cmp    -0x24(%rsp),%esi
  je     L9
  lea    (%r14,%rdi,1),%rdx
  movss  (%r8,%rdx,4),%xmm0
  lea    (%r14,%r9,1),%rdx
  movss  %xmm0,(%r11,%rdx,4)
  cmp    -0x20(%rsp),%esi
  jle    L9
  mov    -0x18(%rsp),%rbp
  lea    0x0(%rbp,%rdi,1),%rdx
  movss  (%r8,%rdx,4),%xmm0
  lea    0x0(%rbp,%r9,1),%rdx
  movss  %xmm0,(%r11,%rdx,4)
  cmp    -0x1c(%rsp),%esi
  jle    L9
  mov    -0x10(%rsp),%rbp
  lea    0x0(%rbp,%rdi,1),%rdx
  movss  (%r8,%rdx,4),%xmm0
  lea    0x0(%rbp,%r9,1),%rdx
  movss  %xmm0,(%r11,%rdx,4)
L9:
  add    $0x1,%r10d
  add    -0x38(%rsp),%rax
  add    %r15,%rdi
  add    -0x30(%rsp),%r9
  cmp    %r10d,%ebx
  jne    L100
L63:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L113:
  movss  (%rax,%rbp,4),%xmm0
  movss  %xmm0,(%rdx,%rbp,4)
  add    $0x1,%rbp
  cmp    %rbp,%r13
  jne    L113
  jmp    L9
L129:
  movslq %r10d,%rbp
  xor    %r12d,%r12d
  shl    $0x2,%rbp
  nopw   0x0(%rax,%rax,1)
L62:
  lea    (%rdi,%r12,1),%eax
  cltd
  idiv   %r10d
  imul   %r10d,%eax
  movslq %edx,%rdx
  imul   %r9d,%eax
  movslq %eax,%r13
  mov    %r12d,%eax
  add    %rdx,%r13
  cltd
  idiv   %r10d
  lea    (%r8,%r13,4),%r14
  imul   %r10d,%eax
  movslq %edx,%rdx
  imul   %ecx,%eax
  cltq
  add    %rdx,%rax
  xor    %edx,%edx
  lea    (%r11,%rax,4),%r13
  xor    %eax,%eax
  nopl   0x0(%rax,%rax,1)
L138:
  movss  (%r14,%rax,1),%xmm0
  add    $0x1,%edx
  movss  %xmm0,0x0(%r13,%rax,1)
  add    %rbp,%rax
  cmp    %edx,%esi
  jne    L138
  add    $0x1,%r12d
  cmp    %r12d,%ebx
  jne    L62
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void s_align_pmat(int row, int col, int offset, int bs, float *A, int sda, float *B, int sdb) {
  int i, j;
  float *ptrA, *ptrB;
  for (i = 0; i < row; i++) {
    ptrA = A + ((offset + i) / bs) * bs * sda + ((offset + i) % bs);
    ptrB = B + (i / bs) * bs * sdb + (i % bs);
    for (j = 0; j < col; j++) {
      ptrB[j * bs] = ptrA[j * bs];
    }
  }
}
```