user: Translate the below assembly code into C programming language:

```asm
<wkeep_2D_center>:
  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,-0x10(%rbp)
  mov    -0x3c(%rbp),%eax
  imul   -0x40(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x2c(%rbp),%r8d
  mov    -0x30(%rbp),%edi
  mov    -0x10(%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    -0x2c(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0x18(%rbp)
  mov    -0x30(%rbp),%eax
  sub    -0x40(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0x14(%rbp)
  mov    -0x18(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  jmp    L27
L10:
  mov    -0x14(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  jmp    L16
L32:
  mov    -0x20(%rbp),%eax
  imul   -0x30(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x10(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1c(%rbp),%eax
  sub    -0x14(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x20(%rbp),%eax
  sub    -0x18(%rbp),%eax
  imul   -0x40(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x8(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x1c(%rbp)
L16:
  mov    -0x14(%rbp),%edx
  mov    -0x40(%rbp),%eax
  add    %edx,%eax
  cmp    %eax,-0x1c(%rbp)
  jl     L32
  addl   $0x1,-0x20(%rbp)
L27:
  mov    -0x18(%rbp),%edx
  mov    -0x3c(%rbp),%eax
  add    %edx,%eax
  cmp    %eax,-0x20(%rbp)
  jl     L10
  mov    -0x40(%rbp),%r8d
  mov    -0x3c(%rbp),%edi
  mov    -0x38(%rbp),%rcx
  mov    -0x40(%rbp),%edx
  mov    -0x3c(%rbp),%esi
  mov    -0x8(%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>
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  nop
  leave
  ret
```

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