user: Converte this assembly snippet into its equivalent C code:

```asm
<copmd>:
  endbr64
  push   %r15
  imul   %r8d,%ecx
  push   %r14
  mov    %edx,%r14d
  mov    %r9,%rdx
  push   %r13
  mov    %r9,%r13
  push   %r12
  mov    %rsi,%r12
  mov    %ecx,%esi
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %ecx,%ebx
  sub    $0x18,%rsp
  mov    0x50(%rsp),%r15
  call   <verbatim_copy@plt>
  mov    %ebx,%ecx
  mov    %ebx,%esi
  mov    %r12,%rdi
  mov    %r15,%rdx
  call   <verbatim_copy@plt>
  cmp    %r14d,%ebx
  jge    L13
  mov    %r14d,%eax
  sub    %ebx,%eax
  mov    %eax,0x4(%rsp)
  movslq %ebx,%rax
  lea    0x10(,%rax,8),%r8
  lea    0x0(,%rax,8),%rdx
  lea    -0x8(%r8),%r10
  lea    0x0(%r13,%r8,1),%rsi
  lea    0x0(%rbp,%r10,1),%r9
  mov    %rsi,0x8(%rsp)
  lea    (%r15,%rdx,1),%rsi
  lea    0x0(%r13,%r10,1),%r11
  lea    0x0(%r13,%rdx,1),%rdi
  lea    0x0(%rbp,%rdx,1),%rcx
  add    %r12,%rdx
  cmp    %r9,%rsi
  setne  %r9b
  cmp    %r11,%rsi
  setne  %r11b
  and    %r9d,%r11d
  cmpl   $0x1,0x4(%rsp)
  setne  %r9b
  add    %r12,%r10
  and    %r11d,%r9d
  cmp    %r10,%rsi
  setne  %r10b
  and    %r10d,%r9d
  lea    0x0(%rbp,%r8,1),%r10
  cmp    %r10,%rdi
  setae  %r10b
  cmp    %rcx,0x8(%rsp)
  setbe  %r11b
  or     %r11d,%r10d
  test   %r10b,%r9b
  je     L53
  add    %r12,%r8
  cmp    %r8,%rdi
  setae  %r8b
  cmp    %rdx,0x8(%rsp)
  setbe  %r9b
  or     %r9b,%r8b
  je     L53
  mov    0x4(%rsp),%r8d
  movapd D11(%rip),%xmm1
  xor    %eax,%eax
  shr    %r8d
  shl    $0x4,%r8
  nopl   (%rax)
L7:
  movupd (%rcx,%rax,1),%xmm0
  movupd (%rdx,%rax,1),%xmm2
  addpd  %xmm2,%xmm0
  mulpd  %xmm1,%xmm0
  movups %xmm0,(%rdi,%rax,1)
  movupd (%rcx,%rax,1),%xmm0
  movupd (%rdx,%rax,1),%xmm3
  subpd  %xmm3,%xmm0
  mulpd  %xmm1,%xmm0
  movups %xmm0,(%rsi,%rax,1)
  add    $0x10,%rax
  cmp    %r8,%rax
  jne    L7
  mov    0x4(%rsp),%edi
  mov    %edi,%eax
  and    $0xfffffffe,%eax
  add    %eax,%ebx
  cmp    %eax,%edi
  je     L13
  movslq %ebx,%rbx
  movsd  D11(%rip),%xmm1
  lea    0x0(,%rbx,8),%rax
  add    %rax,%rbp
  add    %rax,%r12
  movsd  0x0(%rbp),%xmm0
  addsd  (%r12),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,0x0(%r13,%rbx,8)
  movsd  0x0(%rbp),%xmm0
  subsd  (%r12),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%r15,%rbx,8)
L13:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L53:
  movsd  D11(%rip),%xmm1
  nopl   0x0(%rax,%rax,1)
L14:
  movsd  0x0(%rbp,%rax,8),%xmm0
  addsd  (%r12,%rax,8),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,0x0(%r13,%rax,8)
  movsd  0x0(%rbp,%rax,8),%xmm0
  subsd  (%r12,%rax,8),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%r15,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r14d
  jg     L14
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D11
data_type: byte[16]

tool: {"D11": [0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x3f,0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x3f]}

assistant: ```c
void copmd(double *matrixInR, double *matrixInI, int sigInLength, int InRow, int InCol, double *matrixOutR, double *matrixOutI) {
  int i;
  verbatim_copy(matrixInR, InRow * InCol, matrixOutR, InRow * InCol);
  verbatim_copy(matrixInI, InRow * InCol, matrixOutI, InRow * InCol);
  for (i = InRow * InCol; i < sigInLength; i++) {
    matrixOutR[i] = (matrixInR[i] + matrixInI[i]) / 2;
    matrixOutI[i] = (matrixInR[i] - matrixInI[i]) / 2;
  }
  return;
}
```