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

```asm
<inverse>:
  endbr64
  push   %r15
  mov    %esi,%r15d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  mov    %edx,%edi
  push   %rbx
  mov    %edx,%ebx
  sub    $0x58,%rsp
  mov    %esi,0x24(%rsp)
  mov    $0x1,%esi
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  call   <imat@plt>
  mov    %ebx,%esi
  mov    %ebx,%edi
  cltq
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <mat@plt>
  movslq %eax,%r14
  test   %ebx,%ebx
  jle    L0
  movslq %r15d,%rax
  movslq %ebx,%rdx
  mov    %rbp,0x18(%rsp)
  mov    %ebx,%ecx
  shl    $0x3,%rax
  mov    %rbp,0x28(%rsp)
  mov    %r14,%rdi
  xor    %r15d,%r15d
  mov    %rax,0x10(%rsp)
  lea    0x0(,%rdx,8),%r13
  mov    %rax,%r12
  mov    %r13,%rbx
  mov    %ecx,%r13d
  nopl   0x0(%rax)
L2:
  mov    %rbp,%rsi
  mov    %rbx,%rdx
  add    %r12,%rbp
  call   <memcpy@plt>
  mov    %rax,%rdi
  mov    %r15d,%eax
  add    $0x1,%r15d
  add    %rbx,%rdi
  cmp    %r15d,%r13d
  jne    L2
  mov    0x8(%rsp),%rdx
  mov    %eax,0x30(%rsp)
  lea    0x40(%rsp),%rcx
  xor    %eax,%eax
  mov    %r15d,%esi
  mov    %r14,%rdi
  mov    0x18(%rsp),%rbx
  mov    0x28(%rsp),%rbp
  call   <ludcmp@plt>
  test   %eax,%eax
  jne    L103
  mov    0x10(%rsp),%rax
  mov    %r15d,%esi
  xor    %r12d,%r12d
  mov    %r15d,%r13d
  and    $0xfffffffe,%esi
  mov    %r14,0x18(%rsp)
  mov    %rbp,%r14
  add    $0x8,%rax
  mov    %esi,0x34(%rsp)
  mov    %rax,0x28(%rsp)
  mov    %r15d,%eax
  mov    %r12d,%r15d
  shr    %eax
  sub    $0x1,%eax
  add    $0x1,%rax
  mov    %rax,0x38(%rsp)
  cmp    $0x1,%r13d
  je     L56
  nopl   0x0(%rax)
L61:
  mov    0x38(%rsp),%rdx
  mov    %rbp,%rax
  pxor   %xmm0,%xmm0
  shl    $0x4,%rdx
  add    %rbp,%rdx
  nopl   0x0(%rax,%rax,1)
L76:
  movups %xmm0,(%rax)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L76
  mov    0x34(%rsp),%eax
  cmp    %r13d,%eax
  je     L66
L101:
  add    %r12d,%eax
  cltq
  movq   $0x0,(%r14,%rax,8)
L66:
  mov    0x8(%rsp),%rdx
  mov    0x18(%rsp),%rdi
  mov    %rbp,%rcx
  mov    %r13d,%esi
  mov    D7(%rip),%rax
  mov    %rax,(%rbx)
  xor    %eax,%eax
  call   <lubksb@plt>
  lea    0x1(%r15),%eax
  add    0x28(%rsp),%rbx
  add    0x10(%rsp),%rbp
  add    0x24(%rsp),%r12d
  cmp    %r15d,0x30(%rsp)
  je     L31
  mov    %eax,%r15d
  cmp    $0x1,%r13d
  jne    L61
L56:
  xor    %eax,%eax
  jmp    L101
  nopw   0x0(%rax,%rax,1)
L31:
  mov    0x18(%rsp),%r14
L19:
  mov    0x8(%rsp),%rdi
  call   <free@plt>
  mov    %r14,%rdi
  call   <free@plt>
  xor    %eax,%eax
L98:
  mov    0x48(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L11
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L0:
  mov    0x8(%rsp),%rdx
  xor    %eax,%eax
  lea    0x40(%rsp),%rcx
  mov    %ebx,%esi
  mov    %r14,%rdi
  call   <ludcmp@plt>
  test   %eax,%eax
  je     L19
L103:
  mov    0x8(%rsp),%rdi
  call   <free@plt>
  mov    %r14,%rdi
  call   <free@plt>
  mov    $0xffffffff,%eax
  jmp    L98
L11:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D7
type_infered: f64

tool: D7: 1

assistant: ```c
extern int inverse(double *A, int lda, int n) {
  double d, *B;
  int i, j, *indx;
  indx = imat(n, 1);
  B = mat(n, n);
  for (i = 0; i < n; i++)
    memcpy(B + i * n, A + lda * i, sizeof(double) * n);
  if (ludcmp(B, n, indx, &d)) {
    free(indx);
    free(B);
    return -1;
  }
  for (j = 0; j < n; j++) {
    for (i = 0; i < n; i++)
      A[i + j * lda] = 0.0;
    A[j + j * lda] = 1.0;
    lubksb(B, n, indx, A + j * lda);
  }
  free(indx);
  free(B);
  return 0;
}
```