user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<invmat>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x78,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  cmp    %edi,%esi
  je     L118
L158:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L230
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L118:
  movslq %esi,%rbx
  lea    (%rsi,%rsi,1),%r15d
  mov    %esi,%r8d
  mov    %rsp,%rcx
  movslq %r15d,%rax
  mov    %rbx,-0x50(%rbp)
  shl    $0x3,%rbx
  lea    0x0(,%rax,8),%r13
  mov    %rsp,-0x78(%rbp)
  imul   %rbx,%rax
  mov    %rbx,-0x48(%rbp)
  mov    %rax,%rsi
  and    $0xfffffffffffff000,%rsi
  sub    %rsi,%rcx
  cmp    %rcx,%rsp
  je     L156
L209:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L209
L156:
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L33
  orq    $0x0,-0x8(%rsp,%rax,1)
L33:
  mov    %rsp,%r14
  test   %r8d,%r8d
  jle    L162
  mov    -0x48(%rbp),%rax
  mov    %r15d,%edi
  mov    -0x50(%rbp),%rbx
  mov    %r13,%r12
  sub    %r8d,%edi
  mov    %rdx,-0x88(%rbp)
  shr    $0x3,%r12
  lea    (%r14,%rax,1),%rcx
  shl    $0x3,%rbx
  mov    %edi,-0x70(%rbp)
  mov    %rcx,-0x80(%rbp)
  mov    %rbx,-0x58(%rbp)
  xor    %ebx,%ebx
  mov    %r13,-0x60(%rbp)
  mov    %rdx,%r13
  mov    %r12,-0x90(%rbp)
  mov    %rax,%r12
  mov    %r15d,-0x68(%rbp)
  mov    %ebx,%r15d
  mov    %rcx,%rbx
  mov    %r14,-0x98(%rbp)
  mov    %r8d,%r14d
  nopw   0x0(%rax,%rax,1)
L89:
  mov    -0x58(%rbp),%rdx
  mov    %rbx,%rdi
  mov    %r13,%rsi
  sub    %r12,%rdi
  call   <memcpy@plt>
  mov    -0x70(%rbp),%eax
  mov    D8(%rip),%rsi
  pxor   %xmm2,%xmm2
  lea    -0x1(%rax),%edi
  xor    %eax,%eax
  movq   %rsi,%xmm1
  cmp    -0x68(%rbp),%r14d
  jl     L38
  jmp    L154
  nopw   0x0(%rax,%rax,1)
L69:
  mov    %rdx,%rax
L38:
  movapd %xmm1,%xmm0
  cmp    %eax,%r15d
  je     L137
  movapd %xmm2,%xmm0
L137:
  movsd  %xmm0,(%rbx,%rax,8)
  lea    0x1(%rax),%rdx
  cmp    %rdi,%rax
  jne    L69
L154:
  lea    0x1(%r15),%eax
  add    %r12,%r13
  add    -0x60(%rbp),%rbx
  cmp    %eax,%r14d
  je     L36
  mov    %eax,%r15d
  jmp    L89
L72:
  mov    -0x58(%rbp),%r15
  mov    -0x80(%rbp),%r14
  xor    %r12d,%r12d
  mov    -0x88(%rbp),%rdi
  nopl   (%rax)
L128:
  mov    %r14,%rsi
  mov    %r15,%rdx
  add    %r13,%r14
  call   <memcpy@plt>
  mov    %rax,%rdi
  mov    %r12d,%eax
  add    -0x48(%rbp),%rdi
  add    $0x1,%r12d
  cmp    %eax,%ebx
  jne    L128
L162:
  mov    -0x78(%rbp),%rsp
  jmp    L158
L36:
  mov    %r15d,%ebx
  mov    -0x68(%rbp),%r15d
  mov    -0x60(%rbp),%r13
  xor    %r10d,%r10d
  mov    -0x90(%rbp),%r12
  mov    -0x98(%rbp),%r14
  mov    $0xfffffffffffffff8,%r11
  xor    %r8d,%r8d
  lea    -0x1(%r15),%eax
  shl    $0x3,%rax
  lea    0x1(%r12),%rsi
  lea    0x8(%r14,%rax,1),%rdi
  mov    %rax,-0x70(%rbp)
  sub    %rax,%r11
  mov    %rsi,-0x60(%rbp)
  mov    %rdi,-0x68(%rbp)
  nopl   0x0(%rax,%rax,1)
L123:
  mov    -0x60(%rbp),%r9
  movslq %r8d,%rdi
  mov    -0x68(%rbp),%rdx
  mov    %r10,%rcx
  xor    %esi,%esi
  imul   %rdi,%r9
  nopl   0x0(%rax)
L217:
  cmp    %r8d,%esi
  je     L97
  movslq %esi,%rax
  imul   %r12,%rax
  add    %rdi,%rax
  movsd  (%r14,%rax,8),%xmm2
  divsd  (%r14,%r9,8),%xmm2
  test   %r15d,%r15d
  jle    L97
  lea    (%r11,%rdx,1),%rax
  nopl   0x0(%rax)
L68:
  movsd  (%rax,%rcx,8),%xmm1
  movsd  (%rax),%xmm0
  add    $0x8,%rax
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rax)
  cmp    %rdx,%rax
  jne    L68
L97:
  lea    0x1(%rsi),%eax
  sub    %r12,%rcx
  add    %r13,%rdx
  cmp    %esi,%ebx
  je     L73
  mov    %eax,%esi
  jmp    L217
L73:
  add    $0x1,%r8
  add    %r12,%r10
  cmp    %r8,-0x50(%rbp)
  jne    L123
  mov    -0x68(%rbp),%rdi
  mov    -0x60(%rbp),%rsi
  mov    $0xfffffffffffffff8,%rdx
  xor    %eax,%eax
  sub    -0x70(%rbp),%rdx
  nopw   0x0(%rax,%rax,1)
L34:
  movslq %eax,%rcx
  imul   %rsi,%rcx
  movsd  (%r14,%rcx,8),%xmm1
  lea    (%rdx,%rdi,1),%rcx
  test   %r15d,%r15d
  jle    L237
  xchg   %ax,%ax
L115:
  movsd  (%rcx),%xmm0
  add    $0x8,%rcx
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rcx)
  cmp    %rdi,%rcx
  jne    L115
L237:
  lea    0x1(%rax),%ecx
  add    %r13,%rdi
  cmp    %eax,%ebx
  je     L72
  mov    %ecx,%eax
  jmp    L34
L230:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D8
type_guessed: f64

tool: D8: 1

assistant: ```c
void invmat(int m, int n, double mat[m][n]) {
  if (m == n) {
    double ratio, a, matrix[n][2 * n];
    int i, j, k;
    for (i = 0; i < n; i++) {
      for (j = 0; j < n; j++)
        matrix[i][j] = mat[i][j];
      for (j = n; j < 2 * n; j++) {
        if (i == (j - n))
          matrix[i][j] = 1.0;
        else
          matrix[i][j] = 0.0;
      }
    }
    for (i = 0; i < n; i++) {
      for (j = 0; j < n; j++) {
        if (i != j) {
          ratio = matrix[j][i] / matrix[i][i];
          for (k = 0; k < 2 * n; k++) {
            matrix[j][k] -= ratio * matrix[i][k];
          }
        }
      }
    }
    for (i = 0; i < n; i++) {
      a = matrix[i][i];
      for (j = 0; j < 2 * n; j++) {
        matrix[i][j] /= a;
      }
    }
    for (i = 0; i < n; i++) {
      for (j = 0; j < n; j++)
        mat[i][j] = matrix[i][n + j];
    }
  }
}
```