user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<invert>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x88,%rsp
  mov    %rdx,-0xa0(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  movslq %edi,%rax
  lea    0x0(,%rax,8),%rbx
  mov    %rbx,-0x48(%rbp)
  imul   %rax,%rax
  lea    0xf(,%rax,8),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffffff0,%rdx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rcx
  sub    %rax,%rcx
L155:
  cmp    %rcx,%rsp
  je     L121
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L155
L121:
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L66
  orq    $0x0,-0x8(%rsp,%rax,1)
L66:
  mov    %rsp,%r15
  test   %edi,%edi
  jle    L38
  lea    -0x1(%rdi),%eax
  mov    -0xa0(%rbp),%rbx
  lea    0x8(%rbx,%rax,8),%rdx
  mov    $0x0,%r13d
  mov    %edi,%ecx
  neg    %rcx
  shl    $0x3,%rcx
  mov    -0x48(%rbp),%r8
L153:
  lea    (%rcx,%rdx,1),%rax
L205:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L205
  lea    0x1(%r13),%eax
  add    %r8,%rdx
  cmp    %eax,%edi
  je     L10
  mov    %eax,%r13d
  jmp    L153
L10:
  mov    %eax,-0xa4(%rbp)
  mov    -0x48(%rbp),%rax
  lea    0x8(%rax),%rdi
  mov    -0xa0(%rbp),%rdx
  mov    $0x0,%eax
  movsd  D6(%rip),%xmm0
L79:
  movsd  %xmm0,(%rdx)
  mov    %eax,%ecx
  add    $0x1,%eax
  add    %rdi,%rdx
  cmp    %ecx,%r13d
  jne    L79
  mov    %r15,%rcx
  mov    %rsi,%rdx
  mov    -0xa4(%rbp),%edi
  mov    %edi,%esi
  call   <assign@plt>
  mov    -0x48(%rbp),%r12
  shr    $0x3,%r12
  mov    %r15,-0x60(%rbp)
  mov    %r13d,%eax
  mov    %rax,-0x88(%rbp)
  mov    %r15,-0x80(%rbp)
  mov    -0xa0(%rbp),%rax
  mov    %rax,-0x78(%rbp)
  movq   $0x0,-0x68(%rbp)
  lea    -0x1(%r13),%eax
  mov    %eax,-0xa8(%rbp)
  lea    0x1(%r12),%rax
  mov    %rax,-0x90(%rbp)
  jmp    L190
L176:
  mov    -0x78(%rbp),%rdx
  mov    $0x0,%ecx
  movslq -0x6c(%rbp),%r8
  movslq %eax,%r9
  mov    %r9,%rdi
  sub    %rbx,%rdi
L40:
  movslq %ecx,%rax
  imul   %r12,%rax
  lea    (%r8,%rax,1),%rsi
  movsd  (%r15,%rsi,8),%xmm0
  add    %r9,%rax
  movsd  (%r15,%rax,8),%xmm1
  movsd  %xmm1,(%r15,%rsi,8)
  movsd  %xmm0,(%r15,%rax,8)
  movsd  (%rdx),%xmm0
  movsd  (%rdx,%rdi,8),%xmm1
  movsd  %xmm1,(%rdx)
  movsd  %xmm0,(%rdx,%rdi,8)
  mov    %ecx,%eax
  add    $0x1,%ecx
  add    -0x48(%rbp),%rdx
  cmp    %eax,%r13d
  jne    L40
  jmp    L30
L29:
  lea    0x1(%r8),%rax
  add    $0x8,%r10
  sub    $0x1,%rdi
  cmp    %r14,%r8
  je     L58
  mov    %rax,%r8
L173:
  cmp    %ebx,%r8d
  je     L29
  mov    -0x60(%rbp),%rax
  movsd  (%rax,%r8,8),%xmm1
  mov    %r10,%rdx
  mov    $0x0,%ecx
  movslq %r8d,%r11
L56:
  movslq %ecx,%rax
  imul   %r12,%rax
  lea    (%r11,%rax,1),%rsi
  add    %r9,%rax
  movapd %xmm1,%xmm2
  mulsd  (%r15,%rax,8),%xmm2
  movsd  (%r15,%rsi,8),%xmm0
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%r15,%rsi,8)
  movapd %xmm1,%xmm2
  mulsd  (%rdx,%rdi,8),%xmm2
  movsd  (%rdx),%xmm0
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rdx)
  mov    %ecx,%eax
  add    $0x1,%ecx
  add    -0x48(%rbp),%rdx
  cmp    %eax,%r13d
  jne    L56
  jmp    L29
L58:
  mov    -0x68(%rbp),%rbx
  lea    0x1(%rbx),%rax
  mov    -0x48(%rbp),%rsi
  add    %rsi,-0x60(%rbp)
  addq   $0x8,-0x78(%rbp)
  add    %rsi,-0x80(%rbp)
  cmp    -0x88(%rbp),%rbx
  je     L2
  mov    %rax,-0x68(%rbp)
L190:
  mov    -0x68(%rbp),%rdi
  mov    %edi,-0x6c(%rbp)
  mov    %edi,%eax
  add    $0x1,%eax
  cmp    %eax,-0xa4(%rbp)
  jle    L30
  lea    0x1(%rdi),%rbx
  mov    -0xa8(%rbp),%eax
  sub    %edi,%eax
  lea    0x2(%rdi,%rax,1),%rax
  mov    %rax,-0x58(%rbp)
  movslq %edi,%r14
  imul   -0x90(%rbp),%r14
  mov    %r12,-0x98(%rbp)
  mov    %edi,%r12d
  mov    %r13d,-0x70(%rbp)
  mov    -0x80(%rbp),%r13
L80:
  movsd  0x0(%r13,%rbx,8),%xmm0
  call   <fabs@plt>
  mov    %rax,-0x50(%rbp)
  movsd  (%r15,%r14,8),%xmm0
  call   <fabs@plt>
  cmp    %rax,-0x50(%rbp)
  cmovg  %ebx,%r12d
  add    $0x1,%rbx
  cmp    -0x58(%rbp),%rbx
  jne    L80
  mov    %r12d,%eax
  mov    -0x98(%rbp),%r12
  mov    -0x70(%rbp),%r13d
  mov    -0x68(%rbp),%rbx
  cmp    %ebx,%eax
  jne    L176
L30:
  mov    -0x6c(%rbp),%ebx
  movslq %ebx,%rax
  imul   -0x90(%rbp),%rax
  movsd  D6(%rip),%xmm0
  divsd  (%r15,%rax,8),%xmm0
  mov    -0x78(%rbp),%rcx
  mov    $0x0,%edx
  movslq %ebx,%rsi
L62:
  movslq %edx,%rax
  imul   %r12,%rax
  add    %rsi,%rax
  movapd %xmm0,%xmm1
  mulsd  (%r15,%rax,8),%xmm1
  movsd  %xmm1,(%r15,%rax,8)
  movapd %xmm0,%xmm1
  mulsd  (%rcx),%xmm1
  movsd  %xmm1,(%rcx)
  mov    %edx,%eax
  add    $0x1,%edx
  add    -0x48(%rbp),%rcx
  cmp    %eax,%r13d
  jne    L62
  mov    -0x68(%rbp),%rbx
  mov    %rbx,%rdi
  mov    -0xa0(%rbp),%r10
  mov    $0x0,%r8d
  movslq -0x6c(%rbp),%r9
  mov    -0x88(%rbp),%r14
  jmp    L173
L38:
  mov    %r15,%rcx
  mov    %rsi,%rdx
  mov    %edi,%esi
  call   <assign@plt>
L2:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L3
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L3:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D6
datatype: byte[8]

tool: {"D6": [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;
        }
      }
  }
}
```