user: Please show me the C implementation that matches the assembly code listed below:

```asm
<double_exp_matrix>:
  endbr64
  push   %r15
  mov    %esi,%r15d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xc8,%rsp
  mov    %edi,0x24(%rsp)
  mov    %rdx,0x28(%rsp)
  mov    %ecx,0x20(%rsp)
  mov    %r8,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0xb8(%rsp)
  xor    %eax,%eax
  test   %ecx,%ecx
  je     L222
  test   %edi,%edi
  je     L177
  lea    -0x1(%rdi),%eax
  mov    %r8,%rcx
  shl    $0x5,%rax
  lea    0x20(%rdx,%rax,1),%rsi
  nopl   0x0(%rax,%rax,1)
L90:
  xor    %eax,%eax
  test   %r15d,%r15d
  je     L174
L71:
  movsd  (%rdx,%rax,8),%xmm0
  movsd  %xmm0,(%rcx,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r15d
  ja     L71
L174:
  add    $0x20,%rdx
  add    $0x20,%rcx
  cmp    %rsi,%rdx
  jne    L90
L177:
  cmpl   $0x1,0x20(%rsp)
  je     L225
  lea    0x30(%rsp),%rax
  mov    0x8(%rsp),%rbx
  movl   $0x1,0x14(%rsp)
  lea    -0x1(%r15),%edx
  mov    %rax,0x18(%rsp)
  mov    0x24(%rsp),%eax
  lea    0x8(,%rdx,8),%rbp
  sub    $0x1,%eax
  shl    $0x5,%rax
  lea    0x20(%rbx,%rax,1),%r12
  lea    0x50(%rsp,%rax,1),%r13
  mov    0x28(%rsp),%rax
  lea    0x8(%rax,%rdx,8),%rbx
  nopl   0x0(%rax)
L206:
  mov    0x24(%rsp),%eax
  mov    0x8(%rsp),%r14
  mov    0x18(%rsp),%rcx
  test   %eax,%eax
  je     L61
  xchg   %ax,%ax
L119:
  test   %r15d,%r15d
  je     L187
  mov    %rcx,%rdi
  mov    %rbp,%rdx
  mov    %r14,%rsi
  call   <memcpy@plt>
  mov    %rax,%rcx
L187:
  add    $0x20,%rcx
  add    $0x20,%r14
  cmp    %r13,%rcx
  jne    L119
  mov    0x8(%rsp),%rcx
  nopl   0x0(%rax,%rax,1)
L15:
  test   %r15d,%r15d
  je     L83
  mov    %rcx,%rdi
  mov    %rbp,%rdx
  xor    %esi,%esi
  call   <memset@plt>
  mov    %rax,%rcx
L83:
  add    $0x20,%rcx
  cmp    %r12,%rcx
  jne    L15
  mov    0x8(%rsp),%r9
  mov    0x18(%rsp),%rsi
  mov    0x28(%rsp),%r8
L151:
  mov    %r8,%rdi
  mov    %r9,%rcx
  test   %r15d,%r15d
  je     L134
L178:
  movsd  (%rcx),%xmm1
  mov    %rdi,%rdx
  xor    %eax,%eax
L97:
  movsd  (%rsi,%rax,8),%xmm0
  mulsd  (%rdx),%xmm0
  add    $0x1,%rax
  add    $0x20,%rdx
  addsd  %xmm0,%xmm1
  movsd  %xmm1,(%rcx)
  cmp    %eax,%r15d
  ja     L97
  add    $0x8,%rdi
  add    $0x8,%rcx
  cmp    %rbx,%rdi
  jne    L178
L134:
  add    $0x20,%rsi
  add    $0x20,%r9
  cmp    %r13,%rsi
  jne    L151
L61:
  addl   $0x1,0x14(%rsp)
  mov    0x14(%rsp),%eax
  cmp    %eax,0x20(%rsp)
  ja     L206
L225:
  mov    0xb8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L220
  add    $0xc8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L222:
  mov    0x24(%rsp),%esi
  test   %esi,%esi
  je     L225
  mov    0x8(%rsp),%rdx
  movsd  D9(%rip),%xmm1
  pxor   %xmm2,%xmm2
  mov    0x20(%rsp),%ecx
L204:
  xor    %eax,%eax
  test   %r15d,%r15d
  je     L176
L53:
  movapd %xmm1,%xmm0
  cmp    %eax,%ecx
  je     L16
  movapd %xmm2,%xmm0
L16:
  movsd  %xmm0,(%rdx,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r15d
  ja     L53
L176:
  add    $0x1,%ecx
  add    $0x20,%rdx
  cmp    %ecx,%esi
  jne    L204
  jmp    L225
L220:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D9
data_type: f64

tool: D9: 1

assistant: ```c
void double_exp_matrix(unsigned int lines, unsigned int columns, double m1[4][4], unsigned int expNumber, double result[4][4]) {
  unsigned int i, j, k, l;
  double m2[4][4];
  if (expNumber == 0) {
    for (i = 0; i < lines; i++) {
      for (j = 0; j < columns; j++) {
        if (i == j) {
          result[i][j] = 1.0;
        } else {
          result[i][j] = 0.0;
        }
      }
    }
    return;
  }
  for (i = 0; i < lines; i++)
    for (j = 0; j < columns; j++)
      result[i][j] = m1[i][j];
  if (expNumber == 1) {
    return;
  }
  for (l = 1; l < expNumber; l++) {
    for (i = 0; i < lines; i++)
      for (j = 0; j < columns; j++)
        m2[i][j] = result[i][j];
    for (i = 0; i < lines; i++)
      for (j = 0; j < columns; j++)
        result[i][j] = 0;
    for (i = 0; i < lines; i++) {
      for (j = 0; j < columns; j++) {
        for (k = 0; k < columns; k++) {
          result[i][j] = result[i][j] + (m2[i][k] * m1[k][j]);
        }
      }
    }
  }
}
```