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

```asm
<invert>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  mov    %rsi,%r14
  push   %r13
  push   %r12
  mov    %edi,%r12d
  push   %rbx
  sub    $0x88,%rsp
  mov    %rdx,-0xa8(%rbp)
  mov    %rsp,%rcx
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  movslq %edi,%rax
  mov    %rax,-0x50(%rbp)
  lea    0x0(,%rax,8),%rbx
  imul   %rax,%rax
  lea    0xf(,%rax,8),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L11
L139:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L139
L11:
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  jne    L119
L49:
  mov    %rsp,%r13
  test   %r12d,%r12d
  jle    L98
  mov    -0x50(%rbp),%rax
  mov    -0xa8(%rbp),%rdi
  mov    %r13,-0x48(%rbp)
  lea    0x0(,%rax,8),%r15
  xor    %eax,%eax
  mov    %eax,%r13d
  nopl   0x0(%rax,%rax,1)
L86:
  mov    %r15,%rdx
  xor    %esi,%esi
  call   <memset@plt>
  mov    %r13d,%r8d
  add    $0x1,%r13d
  mov    %rax,%rdi
  add    %rbx,%rdi
  cmp    %r13d,%r12d
  jne    L86
  mov    %r13d,-0x98(%rbp)
  mov    -0xa8(%rbp),%rdx
  lea    0x8(%rbx),%rdi
  xor    %eax,%eax
  mov    -0x48(%rbp),%r13
  nopl   0x0(%rax)
L90:
  mov    D17(%rip),%rcx
  mov    %rcx,(%rdx)
  mov    %eax,%ecx
  add    %rdi,%rdx
  add    $0x1,%eax
  cmp    %r8d,%ecx
  jne    L90
  mov    -0x98(%rbp),%edi
  mov    %r13,%rcx
  mov    %r14,%rdx
  mov    %r8d,-0x48(%rbp)
  mov    %edi,%esi
  call   <assign@plt>
  mov    %rbx,%r9
  mov    %r13,-0x60(%rbp)
  mov    -0x48(%rbp),%r8d
  mov    -0xa8(%rbp),%rax
  shr    $0x3,%r9
  mov    %r13,%rcx
  mov    %rbx,%r10
  movq   $0x0,-0x68(%rbp)
  mov    %rax,-0x70(%rbp)
  lea    0x1(%r9),%rax
  mov    %rax,-0x80(%rbp)
  lea    -0x2(%r12),%eax
  mov    %eax,-0xac(%rbp)
  nopl   0x0(%rax)
L183:
  mov    -0x68(%rbp),%rax
  movslq %eax,%r12
  add    $0x1,%eax
  cmp    %eax,-0x98(%rbp)
  jle    L44
  mov    -0x68(%rbp),%rbx
  mov    -0x80(%rbp),%r15
  mov    %r10,-0x88(%rbp)
  mov    %r9,-0x90(%rbp)
  lea    0x1(%rbx),%rax
  movslq %ebx,%r12
  mov    %r8d,-0x94(%rbp)
  mov    %rax,%r14
  mov    %rax,-0x78(%rbp)
  mov    -0xac(%rbp),%eax
  imul   %r12,%r15
  mov    %r12,-0xa0(%rbp)
  mov    %ebx,%r12d
  sub    %ebx,%eax
  lea    0x2(%rbx,%rax,1),%rax
  mov    %r15,%rbx
  mov    %r14,%r15
  mov    %rcx,%r14
  mov    %rax,-0x58(%rbp)
  nopl   0x0(%rax)
L178:
  movsd  (%r14,%r15,8),%xmm0
  call   <fabs@plt>
  movsd  0x0(%r13,%rbx,8),%xmm0
  mov    %rax,-0x48(%rbp)
  call   <fabs@plt>
  cmp    %rax,-0x48(%rbp)
  cmovg  %r15d,%r12d
  add    $0x1,%r15
  cmp    -0x58(%rbp),%r15
  jne    L178
  mov    -0x68(%rbp),%rax
  mov    %r12d,%ebx
  mov    -0x88(%rbp),%r10
  mov    %r14,%rcx
  mov    -0x90(%rbp),%r9
  mov    -0x94(%rbp),%r8d
  mov    -0xa0(%rbp),%r12
  cmp    %eax,%ebx
  jne    L105
L62:
  mov    -0x80(%rbp),%rax
  mov    -0x70(%rbp),%rsi
  xor    %edx,%edx
  movsd  D17(%rip),%xmm0
  imul   %r12,%rax
  divsd  0x0(%r13,%rax,8),%xmm0
L173:
  movslq %edx,%rax
  imul   %r9,%rax
  add    %r12,%rax
  movsd  0x0(%r13,%rax,8),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,0x0(%r13,%rax,8)
  movsd  (%rsi),%xmm1
  mov    %edx,%eax
  add    $0x1,%edx
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,(%rsi)
  add    %r10,%rsi
  cmp    %r8d,%eax
  jne    L173
  mov    -0x68(%rbp),%r11
  mov    %rcx,-0x48(%rbp)
  xor    %r14d,%r14d
  mov    -0xa8(%rbp),%r15
  mov    %r11,%rbx
  nopw   0x0(%rax,%rax,1)
L199:
  movslq %r14d,%rdi
  cmp    %r11d,%r14d
  je     L38
  mov    -0x60(%rbp),%rax
  mov    %r15,%rdx
  xor    %ecx,%ecx
  movsd  (%rax,%r14,8),%xmm1
  nopw   0x0(%rax,%rax,1)
L20:
  movslq %ecx,%rax
  imul   %r9,%rax
  lea    (%rdi,%rax,1),%rsi
  add    %r12,%rax
  movsd  0x0(%r13,%rax,8),%xmm2
  movsd  0x0(%r13,%rsi,8),%xmm0
  mov    %ecx,%eax
  add    $0x1,%ecx
  mulsd  %xmm1,%xmm2
  subsd  %xmm2,%xmm0
  movsd  (%rdx,%rbx,8),%xmm2
  mulsd  %xmm1,%xmm2
  movsd  %xmm0,0x0(%r13,%rsi,8)
  movsd  (%rdx),%xmm0
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rdx)
  add    %r10,%rdx
  cmp    %r8d,%eax
  jne    L20
L38:
  add    $0x1,%r14
  add    $0x8,%r15
  sub    $0x1,%rbx
  cmp    -0x50(%rbp),%r14
  jne    L199
  mov    -0x48(%rbp),%rcx
  mov    -0x78(%rbp),%rax
  add    %r10,-0x60(%rbp)
  addq   $0x8,-0x70(%rbp)
  add    %r10,%rcx
  mov    %rax,-0x68(%rbp)
  cmp    %rax,-0x50(%rbp)
  jne    L183
L107:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L33
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopl   0x0(%rax,%rax,1)
L105:
  movslq %ebx,%rdx
  mov    -0x70(%rbp),%rsi
  xor    %edi,%edi
  mov    %rdx,%rbx
  sub    %rax,%rbx
  nopw   0x0(%rax,%rax,1)
L71:
  movslq %edi,%rax
  imul   %r9,%rax
  lea    (%r12,%rax,1),%r11
  add    %rdx,%rax
  movsd  0x0(%r13,%rax,8),%xmm1
  movsd  0x0(%r13,%r11,8),%xmm0
  movsd  %xmm1,0x0(%r13,%r11,8)
  movsd  (%rsi,%rbx,8),%xmm1
  movsd  %xmm0,0x0(%r13,%rax,8)
  movsd  (%rsi),%xmm0
  mov    %edi,%eax
  add    $0x1,%edi
  movsd  %xmm1,(%rsi)
  movsd  %xmm0,(%rsi,%rbx,8)
  add    %r10,%rsi
  cmp    %r8d,%eax
  jne    L71
  jmp    L62
L44:
  mov    -0x68(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x78(%rbp)
  jmp    L62
L119:
  orq    $0x0,-0x8(%rsp,%rax,1)
  jmp    L49
L98:
  mov    %r13,%rcx
  mov    %r14,%rdx
  mov    %r12d,%esi
  mov    %r12d,%edi
  call   <assign@plt>
  jmp    L107
L33:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D17
datatype: byte[8]

tool: {"D17": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

assistant: ```c
void invert(int s, double m[s][s], double m_inv[s][s]) {
  double t;
  int swap, i, j, k;
  double tmp[s][s];
  for (i = 0; i < s; i++)
    for (j = 0; j < s; j++)
      m_inv[i][j] = 0;
  for (i = 0; i < s; i++)
    m_inv[i][i] = 1;
  assign(s, s, m, tmp);
  for (i = 0; i < s; i++) {
    swap = i;
    for (j = i + 1; j < s; j++) {
      if (fabs(tmp[i][j]) > fabs(tmp[i][i]))
        swap = j;
    }
    if (swap != i) {
      for (k = 0; k < s; k++) {
        t = tmp[k][i];
        tmp[k][i] = tmp[k][swap];
        tmp[k][swap] = t;
        t = m_inv[k][i];
        m_inv[k][i] = m_inv[k][swap];
        m_inv[k][swap] = t;
      }
    }
    t = 1 / tmp[i][i];
    for (k = 0; k < s; k++) {
      tmp[k][i] *= t;
      m_inv[k][i] *= t;
    }
    for (j = 0; j < s; j++)
      if (j != i) {
        t = tmp[i][j];
        for (k = 0; k < s; k++) {
          tmp[k][j] -= tmp[k][i] * t;
          m_inv[k][j] -= m_inv[k][i] * t;
        }
      }
  }
}
```