user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<rtranspose>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r12
  push   %rbx
  sub    $0x40,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %esi,-0x3c(%rbp)
  mov    %edx,-0x40(%rbp)
  mov    %rcx,-0x48(%rbp)
  mov    %r8d,-0x4c(%rbp)
  mov    %r9d,-0x50(%rbp)
  movl   $0x40,-0x2c(%rbp)
  mov    -0x3c(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jg     L67
  mov    -0x40(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jg     L67
  mov    $0x0,%ebx
  jmp    L85
L54:
  mov    $0x0,%r12d
  jmp    L76
L1:
  mov    %ebx,%eax
  imul   -0x50(%rbp),%eax
  add    %r12d,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  mov    %r12d,%eax
  imul   -0x4c(%rbp),%eax
  add    %ebx,%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x48(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%r12d
L76:
  cmp    -0x40(%rbp),%r12d
  jl     L1
  add    $0x1,%ebx
L85:
  cmp    -0x3c(%rbp),%ebx
  jl     L54
  jmp    L94
L67:
  mov    -0x40(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L8
  mov    -0x3c(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x40(%rbp),%xmm0
  movsd  D1(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <ceil@plt>
  mov    %eax,-0x18(%rbp)
  mov    -0x40(%rbp),%eax
  sub    -0x18(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x50(%rbp),%r8d
  mov    -0x4c(%rbp),%edi
  mov    -0x48(%rbp),%rcx
  mov    -0x18(%rbp),%edx
  mov    -0x1c(%rbp),%esi
  mov    -0x38(%rbp),%rax
  mov    %r8d,%r9d
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <rtranspose>
  mov    -0x18(%rbp),%eax
  imul   -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0x50(%rbp),%r8d
  mov    -0x4c(%rbp),%esi
  mov    -0x14(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  mov    %r8d,%r9d
  mov    %esi,%r8d
  mov    %eax,%esi
  call   <rtranspose>
  jmp    L94
L8:
  mov    -0x3c(%rbp),%eax
  cmp    -0x40(%rbp),%eax
  jle    L94
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x3c(%rbp),%xmm0
  movsd  D1(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <ceil@plt>
  mov    %eax,-0x28(%rbp)
  mov    -0x3c(%rbp),%eax
  sub    -0x28(%rbp),%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x40(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x50(%rbp),%r8d
  mov    -0x4c(%rbp),%edi
  mov    -0x48(%rbp),%rcx
  mov    -0x20(%rbp),%edx
  mov    -0x28(%rbp),%esi
  mov    -0x38(%rbp),%rax
  mov    %r8d,%r9d
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <rtranspose>
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x28(%rbp),%eax
  imul   -0x50(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0x50(%rbp),%r8d
  mov    -0x4c(%rbp),%esi
  mov    -0x20(%rbp),%edx
  mov    -0x24(%rbp),%eax
  mov    %r8d,%r9d
  mov    %esi,%r8d
  mov    %eax,%esi
  call   <rtranspose>
  jmp    L94
L94:
  nop
  add    $0x40,%rsp
  pop    %rbx
  pop    %r12
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: data_label: D1
data_type: f64

tool: D1: 2

assistant: ```c
void rtranspose(double *m, int rows, int cols, double *n, int r, int c) {
  register int i, j;
  int rm, cm;
  int rm1, cm1, rm2, cm2;
  int block;
  block = (int)64;
  if (rows <= block && cols <= block) {
    for (i = 0; i < rows; ++i) {
      for (j = 0; j < cols; ++j) {
        n[i + j * r] = m[j + i * c];
      }
    }
  } else if (cols >= rows) {
    rm = rows;
    cm1 = (int)ceil((double)cols / 2.0);
    cm2 = cols - cm1;
    rtranspose(m, rm, cm1, n, r, c);
    rtranspose(m + cm1, rm, cm2, n + cm1 * r, r, c);
  } else if (rows > cols) {
    rm1 = (int)ceil((double)rows / 2.0);
    rm2 = rows - rm1;
    cm = cols;
    rtranspose(m, rm1, cm, n, r, c);
    rtranspose(m + rm1 * c, rm2, cm, n + rm1, r, c);
  }
}
```