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

```asm
<transxy>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %edi,%ebx
  mov    %rsi,0x10(%rsp)
  mov    %rdx,0x18(%rsp)
  mov    $0x0,%eax
  call   <gridInqXsize@plt>
  mov    %eax,%ebp
  mov    %ebx,%edi
  mov    $0x0,%eax
  call   <gridInqYsize@plt>
  mov    %eax,%ebx
  movslq %eax,%r13
  shl    $0x3,%r13
  mov    %r13,%rcx
  mov    $0x28,%edx
  lea    D15(%rip),%r15
  mov    %r15,%rsi
  lea    D11(%rip),%rdi
  mov    $0x0,%eax
  call   <Malloc@plt>
  mov    %eax,%r12d
  cltq
  mov    %rax,0x8(%rsp)
  movslq %ebp,%r14
  shl    $0x3,%r14
  mov    %r14,%rcx
  mov    $0x29,%edx
  mov    %r15,%rsi
  lea    D11(%rip),%rdi
  mov    $0x0,%eax
  call   <Malloc@plt>
  mov    %eax,%edi
  movslq %eax,%r15
  test   %ebx,%ebx
  jle    L36
  mov    0x10(%rsp),%rdx
  movslq %r12d,%rax
  lea    -0x1(%rbx),%ecx
  lea    0x8(%rax,%rcx,8),%rcx
L32:
  mov    %rdx,(%rax)
  add    %r14,%rdx
  add    $0x8,%rax
  cmp    %rcx,%rax
  jne    L32
  test   %ebp,%ebp
  jle    L23
L64:
  mov    0x18(%rsp),%rdx
  movslq %edi,%rax
  lea    -0x1(%rbp),%ecx
  lea    0x8(%rax,%rcx,8),%rcx
L43:
  mov    %rdx,(%rax)
  add    %r13,%rdx
  add    $0x8,%rax
  cmp    %rcx,%rax
  jne    L43
  test   %ebx,%ebx
  jle    L9
L23:
  mov    %ebx,%r9d
  shl    $0x3,%r9
  lea    -0x1(%rbp),%eax
  lea    0x8(,%rax,8),%r8
  mov    $0x0,%ecx
  movslq %r12d,%r12
  movslq %edi,%rdi
  jmp    L14
L81:
  mov    (%rsi),%rdx
  movsd  (%rdx,%rax,1),%xmm0
  mov    (%rdi,%rax,1),%rdx
  movsd  %xmm0,(%rdx,%rcx,1)
  add    $0x8,%rax
  cmp    %rax,%r8
  jne    L81
L60:
  add    $0x8,%rcx
  cmp    %r9,%rcx
  je     L9
L14:
  lea    (%r12,%rcx,1),%rsi
  mov    $0x0,%eax
  test   %ebp,%ebp
  jg     L81
  jmp    L60
L36:
  test   %ebp,%ebp
  jg     L64
L9:
  mov    0x8(%rsp),%rcx
  mov    $0x32,%edx
  lea    D15(%rip),%rbp
  mov    %rbp,%rsi
  lea    D11(%rip),%rbx
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <Free@plt>
  mov    %r15,%rcx
  mov    $0x33,%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <Free@plt>
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: disassemble_data
arguments: label: D15
type_guessed: string
name: disassemble_data
arguments: label: D11
type_guessed: string

tool: D15: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/Transpose.c

tool: D11: transxy

assistant: ```c
void transxy(int gridID, double *array1, double *array2) {
  int i, j;
  int nx, ny;
  double **a2D1, **a2D2;
  nx = gridInqXsize(gridID);
  ny = gridInqYsize(gridID);
  a2D1 = (double **)Malloc(__func__, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/Transpose.c", 40, (ny * sizeof(double *)));
  a2D2 = (double **)Malloc(__func__, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/Transpose.c", 41, (nx * sizeof(double *)));
  for (j = 0; j < ny; ++j)
    a2D1[j] = array1 + j * nx;
  for (i = 0; i < nx; ++i)
    a2D2[i] = array2 + i * ny;
  for (j = 0; j < ny; ++j)
    for (i = 0; i < nx; ++i)
      a2D2[i][j] = a2D1[j][i];
  Free(__func__, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/Transpose.c", 50, (a2D1));
  Free(__func__, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/Transpose.c", 51, (a2D2));
}
```