user: Demonstrate the C code that generates the assembly output below:

```asm
<dyaddown_2D_keep_odd>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %edx,-0x30(%rbp)
  mov    %rcx,-0x38(%rbp)
  mov    %r8d,-0x3c(%rbp)
  mov    %r9d,-0x40(%rbp)
  mov    -0x2c(%rbp),%eax
  imul   -0x30(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x2c(%rbp),%r8d
  mov    -0x40(%rbp),%edi
  mov    -0x18(%rbp),%rcx
  mov    -0x2c(%rbp),%edx
  mov    -0x30(%rbp),%esi
  mov    -0x28(%rbp),%rax
  mov    %r8d,%r9d
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <matrix_tran@plt>
  mov    -0x3c(%rbp),%eax
  imul   -0x30(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x10(%rbp)
  movl   $0x0,-0x20(%rbp)
  jmp    L1
L73:
  movl   $0x0,-0x1c(%rbp)
  jmp    L53
L41:
  mov    -0x20(%rbp),%eax
  imul   -0x30(%rbp),%eax
  lea    (%rax,%rax,1),%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rax,%rdx
  mov    -0x20(%rbp),%eax
  imul   -0x30(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x1c(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x10(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x1c(%rbp)
L53:
  mov    -0x1c(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L41
  addl   $0x1,-0x20(%rbp)
L1:
  mov    -0x20(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L73
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x3c(%rbp),%eax
  imul   -0x30(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x40(%rbp),%r8d
  mov    -0x2c(%rbp),%edi
  mov    -0x8(%rbp),%rcx
  mov    -0x30(%rbp),%edx
  mov    -0x3c(%rbp),%esi
  mov    -0x10(%rbp),%rax
  mov    %r8d,%r9d
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <matrix_tran@plt>
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  movl   $0x0,-0x1c(%rbp)
  jmp    L78
L35:
  movl   $0x0,-0x20(%rbp)
  jmp    L14
L60:
  mov    -0x1c(%rbp),%eax
  imul   -0x3c(%rbp),%eax
  lea    (%rax,%rax,1),%edx
  mov    -0x20(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x8(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1c(%rbp),%eax
  imul   -0x3c(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x20(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x20(%rbp)
L14:
  mov    -0x20(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L60
  addl   $0x1,-0x1c(%rbp)
L78:
  mov    -0x1c(%rbp),%eax
  cmp    -0x40(%rbp),%eax
  jl     L35
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  nop
  leave
  ret
```

assistant: ```c
void dyaddown_2D_keep_odd(double *matrixIn, int matrixInRow, int matrixInCol, double *matrixOut, int matrixOutRow, int matrixOutCol) {
  int row, col;
  double *matrixInTemp, *matrixOutPre, *matrixOutTemp;
  matrixInTemp = malloc(matrixInRow * matrixInCol * sizeof(double));
  matrix_tran(matrixIn, matrixInCol, matrixInRow, matrixInTemp, matrixOutCol, matrixInRow);
  matrixOutPre = malloc(matrixOutRow * matrixInCol * sizeof(double));
  for (row = 0; row < matrixOutRow; row++) {
    for (col = 0; col < matrixInCol; col++)
      matrixOutPre[col + row * matrixInCol] = matrixInTemp[col + 2 * row * matrixInCol];
  }
  free(matrixInTemp);
  matrixOutTemp = malloc(matrixOutRow * matrixInCol * sizeof(double));
  matrix_tran(matrixOutPre, matrixOutRow, matrixInCol, matrixOutTemp, matrixInRow, matrixOutCol);
  free(matrixOutPre);
  for (col = 0; col < matrixOutCol; col++) {
    for (row = 0; row < matrixOutRow; row++)
      matrixOut[row + col * matrixOutRow] = matrixOutTemp[row + 2 * col * matrixOutRow];
  }
  free(matrixOutTemp);
  return;
}
```