user: What is the c source code of the assembly code below:

```asm
<dlamov_>:
  endbr64
  push   %r15
  mov    %rdi,%r15
  push   %r14
  push   %r13
  mov    %rdx,%r13
  push   %r12
  mov    %rcx,%r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %r9,%rbx
  sub    $0x48,%rsp
  mov    (%rdx),%ecx
  movslq (%rsi),%r11
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  mov    0x80(%rsp),%r10
  mov    (%r8),%r14d
  lea    -0x1(%rcx),%edx
  mov    %r11d,0x28(%rsp)
  mov    (%r10),%r9d
  mov    %edx,%esi
  imul   %r9d,%esi
  movslq %esi,%rax
  add    %r11,%rax
  lea    -0x8(%rbx,%rax,8),%rax
  cmp    %rax,%r12
  ja     L195
  mov    %edx,%eax
  imul   %r14d,%eax
  cltq
  add    %r11,%rax
  lea    -0x8(%r12,%rax,8),%rax
  cmp    %rax,%rbx
  jbe    L101
L195:
  sub    $0x8,%rsp
  mov    %rbp,%rsi
  mov    %r15,%rdi
  mov    %rbx,%r9
  push   %r10
  mov    %r12,%rcx
  mov    %r13,%rdx
  call   <dlacpy_@plt>
  pop    %rsi
  pop    %rdi
L255:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L66
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L101:
  mov    %r10,0x10(%rsp)
  mov    %r8,0x8(%rsp)
  cmp    %r9d,%r14d
  je     L53
  mov    %r11,%rdi
  imul   %ecx,%edi
  shl    $0x3,%edi
  call   <malloc@plt>
  mov    0x8(%rsp),%r8
  mov    0x10(%rsp),%r10
  test   %rax,%rax
  mov    %rax,%r14
  je     L345
  mov    %r10,0x10(%rsp)
  sub    $0x8,%rsp
  mov    %rax,%r9
  mov    %r12,%rcx
  lea    0x30(%rsp),%r11
  mov    %r13,%rdx
  mov    %rbp,%rsi
  mov    %r15,%rdi
  push   %r11
  mov    %r11,0x18(%rsp)
  call   <dlacpy_@plt>
  mov    0x20(%rsp),%r10
  mov    %r13,%rdx
  mov    %rbx,%r9
  mov    0x18(%rsp),%r8
  mov    %r14,%rcx
  mov    %rbp,%rsi
  mov    %r15,%rdi
  mov    %r10,(%rsp)
  call   <dlacpy_@plt>
  mov    %r14,%rdi
  call   <free@plt>
  pop    %rax
  pop    %rdx
  jmp    L255
  nopl   (%rax)
L345:
  mov    $0x564f,%ecx
  lea    0x2c(%rsp),%rsi
  lea    0x31(%rsp),%rdi
  mov    $0x7,%edx
  movl   $0xffffffff,0x2c(%rsp)
  movl   $0x4d414c44,0x31(%rsp)
  mov    %cx,0x35(%rsp)
  movb   $0x0,0x37(%rsp)
  call   <xerbla_@plt>
  jmp    L255
  nopl   0x0(%rax,%rax,1)
L53:
  movsbl (%rdi),%edi
  mov    %ecx,0x8(%rsp)
  mov    %esi,0x1c(%rsp)
  mov    %edx,0x10(%rsp)
  call   <toupper@plt>
  movslq 0x8(%rsp),%rcx
  cmp    $0x4c,%eax
  je     L395
  cmp    $0x55,%eax
  mov    0x10(%rsp),%edx
  mov    0x1c(%rsp),%esi
  jne    L136
  cmp    %r12,%rbx
  jae    L235
  test   %ecx,%ecx
  jle    L255
  mov    0x28(%rsp),%r8d
  mov    %r14d,%r10d
  mov    %r14d,%r9d
  mov    $0x1,%edx
L356:
  cmp    %rcx,%rdx
  je     L255
  test   %edx,%edx
  jle    L116
  movslq %r9d,%rax
  lea    (%r12,%rax,8),%rdi
  movslq %r10d,%rax
  lea    (%rbx,%rax,8),%rsi
  xor    %eax,%eax
  jmp    L216
  nop
L427:
  movsd  (%rdi,%rax,8),%xmm0
  movsd  %xmm0,(%rsi,%rax,8)
  add    $0x1,%rax
  cmp    %rdx,%rax
  je     L116
L216:
  cmp    %eax,%r8d
  jg     L427
L116:
  add    %r14d,%r9d
  add    %r14d,%r10d
  add    $0x1,%rdx
  jmp    L356
  nopl   0x0(%rax)
L235:
  mov    0x28(%rsp),%r9d
  mov    %esi,%r8d
  test   %edx,%edx
  js     L255
  nopl   0x0(%rax,%rax,1)
L185:
  cmp    %edx,%r9d
  mov    %edx,%eax
  cmovle %r9d,%eax
  sub    $0x1,%eax
  js     L429
  movslq %esi,%rcx
  cltq
  lea    (%r12,%rcx,8),%rdi
  movslq %r8d,%rcx
  lea    (%rbx,%rcx,8),%rcx
  xchg   %ax,%ax
L237:
  movsd  (%rdi,%rax,8),%xmm0
  movsd  %xmm0,(%rcx,%rax,8)
  sub    $0x1,%rax
  test   %eax,%eax
  jns    L237
L429:
  sub    $0x1,%edx
  sub    %r14d,%esi
  sub    %r14d,%r8d
  cmp    $0xffffffff,%edx
  jne    L185
  jmp    L255
  nopl   (%rax)
L395:
  cmp    %r12,%rbx
  jae    L68
  test   %ecx,%ecx
  jle    L255
  mov    0x28(%rsp),%edx
  xor    %r10d,%r10d
  xor    %r9d,%r9d
  xor    %r8d,%r8d
  cs nopw 0x0(%rax,%rax,1)
L431:
  cmp    %r8d,%edx
  jle    L64
  movslq %r9d,%rax
  lea    (%r12,%rax,8),%rdi
  movslq %r10d,%rax
  lea    (%rbx,%rax,8),%rsi
  mov    %r8,%rax
  cs nopw 0x0(%rax,%rax,1)
L221:
  movsd  (%rdi,%rax,8),%xmm0
  movsd  %xmm0,(%rsi,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%edx
  jg     L221
L64:
  add    $0x1,%r8
  add    %r14d,%r9d
  add    %r14d,%r10d
  cmp    %r8,%rcx
  jne    L431
  jmp    L255
  cs nopw 0x0(%rax,%rax,1)
L136:
  cmp    %r12,%rbx
  jb     L13
  test   %edx,%edx
  js     L255
  mov    0x28(%rsp),%eax
  mov    %esi,%r8d
  lea    -0x1(%rax),%r9d
  nopl   0x0(%rax,%rax,1)
L59:
  test   %r9d,%r9d
  js     L240
  movslq %esi,%rcx
  movslq %r9d,%rax
  lea    (%r12,%rcx,8),%rdi
  movslq %r8d,%rcx
  lea    (%rbx,%rcx,8),%rcx
  cs nopw 0x0(%rax,%rax,1)
L214:
  movsd  (%rdi,%rax,8),%xmm0
  movsd  %xmm0,(%rcx,%rax,8)
  sub    $0x1,%rax
  test   %eax,%eax
  jns    L214
L240:
  sub    $0x1,%edx
  sub    %r14d,%esi
  sub    %r14d,%r8d
  cmp    $0xffffffff,%edx
  jne    L59
  jmp    L255
  nopl   (%rax)
L13:
  test   %ecx,%ecx
  jle    L255
  movslq 0x28(%rsp),%rdi
  xor    %r10d,%r10d
  xor    %r9d,%r9d
  xor    %r8d,%r8d
  mov    %rdi,%r11
  nopl   0x0(%rax)
L259:
  test   %r11d,%r11d
  jle    L244
  movslq %r9d,%rax
  lea    (%r12,%rax,8),%rsi
  movslq %r10d,%rax
  lea    (%rbx,%rax,8),%rdx
  xor    %eax,%eax
  nopl   (%rax)
L393:
  movsd  (%rsi,%rax,8),%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
  add    $0x1,%rax
  cmp    %rdi,%rax
  jne    L393
L244:
  add    $0x1,%r8d
  add    %r14d,%r9d
  add    %r14d,%r10d
  cmp    %r8d,%ecx
  jne    L259
  jmp    L255
  nopw   0x0(%rax,%rax,1)
L68:
  mov    0x28(%rsp),%r10d
  cmp    %ecx,%r10d
  cmovle %r10d,%ecx
  mov    %ecx,%r8d
  sub    $0x1,%r8d
  js     L255
  imul   %r14d,%r8d
  movslq %r10d,%r11
  lea    -0x1(%r10),%ebp
  sub    $0x2,%r11
  mov    %r8d,%r9d
  nopl   0x0(%rax,%rax,1)
L269:
  cmp    %ecx,%r10d
  jl     L0
  mov    %r10d,%edx
  mov    %r11,%rdi
  movslq %ebp,%rax
  sub    %ecx,%edx
  sub    %rdx,%rdi
  movslq %r8d,%rdx
  lea    (%r12,%rdx,8),%rsi
  movslq %r9d,%rdx
  lea    (%rbx,%rdx,8),%rdx
  nopl   0x0(%rax)
L166:
  movsd  (%rsi,%rax,8),%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
  sub    $0x1,%rax
  cmp    %rdi,%rax
  jne    L166
L0:
  sub    %r14d,%r8d
  sub    %r14d,%r9d
  sub    $0x1,%ecx
  jne    L269
  jmp    L255
L66:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void dlamov_(const char *UPLO, const int *M, const int *N, const double *A, const int *LDA, double *B, const int *LDB) {
  const int m = *M;
  const int n = *N;
  const int lda = *LDA;
  const int ldb = *LDB;
  if (B + m - 1 + ldb * (n - 1) < A || A + m - 1 + lda * (n - 1) < B) {
    dlacpy_(UPLO, M, N, A, LDA, B, LDB);
  } else if (lda != ldb) {
    double *tmp = malloc(sizeof(*A) * m * n);
    if (!tmp) {
      int info = -1;
      const char func[] = "DLAMOV";
      xerbla_(func, &info, sizeof func);
    } else {
      dlacpy_(UPLO, M, N, A, LDA, tmp, &m);
      dlacpy_(UPLO, M, N, tmp, &m, B, LDB);
      free(tmp);
    }
  } else {
    int i, j;
    switch (toupper(*UPLO)) {
    case 'U':
      if (A > B) {
        for (j = 0; j < n; j++)
          for (i = 0; i < j && i < m; i++)
            B[i + ldb * j] = A[i + lda * j];
      } else {
        for (j = n; --j >= 0;)
          for (i = j < m ? j : m; --i >= 0;)
            B[i + ldb * j] = A[i + lda * j];
      }
      break;
    case 'L':
      if (A > B) {
        for (j = 0; j < n; j++)
          for (i = j; i < m; i++)
            B[i + ldb * j] = A[i + lda * j];
      } else {
        for (j = m < n ? m : n; --j >= 0;)
          for (i = m; --i >= j;)
            B[i + ldb * j] = A[i + lda * j];
      }
      break;
    default:
      if (A > B) {
        for (j = 0; j < n; j++)
          for (i = 0; i < m; i++)
            B[i + ldb * j] = A[i + lda * j];
      } else {
        for (j = n; --j >= 0;)
          for (i = m; --i >= 0;)
            B[i + ldb * j] = A[i + lda * j];
      }
      break;
    }
  }
}
```