user: What is the c source code of the assembly code below:

```asm
<invert_matrix>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,0x10(%rsp)
  mov    %esi,%r15d
  mov    %esi,0xc(%rsp)
  mov    %esi,%ebp
  shl    $0x3,%rbp
  mov    %rbp,%rdi
  call   <malloc@plt>
  mov    %rax,%rbx
  mov    %rax,(%rsp)
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <check_alloc@plt>
  test   %r15d,%r15d
  je     L24
  mov    %rbx,%r15
  mov    %rbp,%r12
  lea    0x0(%rbp,%rbx,1),%r13
  mov    %r13,0x18(%rsp)
L55:
  mov    %rbp,%rdi
  call   <malloc@plt>
  mov    %rax,%rdi
  mov    %rax,(%rbx)
  mov    $0x0,%eax
  call   <check_alloc@plt>
  add    $0x8,%rbx
  cmp    %r13,%rbx
  jne    L55
  mov    %rbp,%rdi
  call   <malloc@plt>
  mov    %rax,%r14
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <check_alloc@plt>
  mov    %r14,%rbx
  add    %r14,%r12
L63:
  mov    %rbp,%rdi
  call   <malloc@plt>
  mov    %rax,%rdi
  mov    %rax,(%rbx)
  mov    $0x0,%eax
  call   <check_alloc@plt>
  add    $0x8,%rbx
  cmp    %r12,%rbx
  jne    L63
  mov    %rbp,%rdi
  call   <malloc@plt>
  mov    %rax,%rbp
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <check_alloc@plt>
  mov    0xc(%rsp),%r12d
  lea    0x0(,%r12,8),%rbx
  mov    $0x0,%r13d
  jmp    L59
L69:
  movsd  %xmm0,0x0(%rbp,%rdi,8)
  mov    $0x0,%eax
L17:
  mov    (%rsi),%rdx
  movsd  (%rdx,%rax,1),%xmm0
  mov    (%rcx),%rdx
  movsd  %xmm0,(%rdx,%rax,1)
  add    $0x8,%rax
  cmp    %rax,%rbx
  jne    L17
  add    $0x1,%rdi
  add    $0x8,%rsi
  add    $0x8,%rcx
  cmp    %r12,%rdi
  je     L13
L20:
  movsd  D7(%rip),%xmm0
  cmp    %r13d,%edi
  je     L69
  pxor   %xmm0,%xmm0
  jmp    L69
L13:
  mov    0xc(%rsp),%edx
  mov    %rbp,%rsi
  mov    (%rsp),%rdi
  call   <solvele@plt>
  lea    0x0(,%r13,8),%rcx
  mov    $0x0,%eax
L46:
  movsd  0x0(%rbp,%rax,8),%xmm0
  mov    (%r14,%rax,8),%rdx
  movsd  %xmm0,(%rdx,%rcx,1)
  add    $0x1,%rax
  cmp    %r12,%rax
  jne    L46
  add    $0x1,%r13
  cmp    %r12,%r13
  je     L16
L59:
  mov    0x10(%rsp),%rsi
  mov    %r15,%rcx
  mov    $0x0,%edi
  jmp    L20
L16:
  mov    %rbp,%rdi
  call   <free@plt>
  mov    0x18(%rsp),%rbx
L35:
  mov    (%r15),%rdi
  call   <free@plt>
  add    $0x8,%r15
  cmp    %rbx,%r15
  jne    L35
L85:
  mov    (%rsp),%rdi
  call   <free@plt>
  mov    %r14,%rax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L24:
  mov    %rbp,%rdi
  call   <malloc@plt>
  mov    %rax,%r14
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <check_alloc@plt>
  mov    %rbp,%rdi
  call   <malloc@plt>
  mov    %rax,%rbx
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <check_alloc@plt>
  mov    %rbx,%rdi
  call   <free@plt>
  jmp    L85
```

tool_calls: name: retrieve_data
arguments: tag: D7
type_guessed: f64

tool: D7: 1

assistant: ```c
double **invert_matrix(double **mat, unsigned int size) {
  int i, j, k;
  double **hmat, **imat, *vec;
  extern void solvele(double **, double *, unsigned int);
  check_alloc(hmat = (double **)malloc(sizeof(double *) * size));
  for (i = 0; i < size; i++) {
    check_alloc(hmat[i] = (double *)malloc(sizeof(double) * size));
  }
  check_alloc(imat = (double **)malloc(sizeof(double *) * size));
  for (i = 0; i < size; i++) {
    check_alloc(imat[i] = (double *)malloc(sizeof(double) * size));
  }
  check_alloc(vec = (double *)malloc(sizeof(double) * size));
  for (i = 0; i < size; i++) {
    for (j = 0; j < size; j++) {
      vec[j] = (i == j) ? 1.0 : 0.0;
      for (k = 0; k < size; k++)
        hmat[j][k] = mat[j][k];
    }
    solvele(hmat, vec, size);
    for (j = 0; j < size; j++)
      imat[j][i] = vec[j];
  }
  free(vec);
  for (i = 0; i < size; i++)
    free(hmat[i]);
  free(hmat);
  return imat;
}
```