user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<matrix_inversion>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %rdi,%r15
  mov    %esi,%ebx
  mov    %rdx,%r12
  mov    %esi,%edi
  imul   %esi,%edi
  mov    $0x4,%esi
  call   <calloc@plt>
  mov    %rax,0x78(%rsp)
  test   %ebx,%ebx
  jle    L64
  movslq %ebx,%rax
  lea    0x4(,%rax,4),%r10
  mov    %r10,0x68(%rsp)
  mov    %r12,%r14
  lea    0x0(,%rax,4),%r11
  mov    %r11,0x70(%rsp)
  mov    %ebx,%eax
  mov    0x78(%rsp),%rcx
  lea    (%rcx,%rax,4),%rdx
  mov    %r12,%rdi
  mov    $0x0,%r9d
  mov    %ebx,%r8d
  neg    %r8
  shl    $0x2,%r8
  mov    %r12,%rsi
  mov    %rcx,%rax
  sub    %rcx,%rsi
  mov    %r15,%rcx
  sub    %rax,%rcx
  movss  D11(%rip),%xmm1
L275:
  lea    (%r8,%rdx,1),%rax
L220:
  movl   $0x0,(%rsi,%rax,1)
  movss  (%rcx,%rax,1),%xmm0
  movss  %xmm0,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L220
  movss  %xmm1,(%rdi)
  lea    0x1(%r9),%eax
  add    %r10,%rdi
  add    %r11,%rdx
  cmp    %eax,%ebx
  je     L68
  mov    %eax,%r9d
  jmp    L275
L68:
  mov    %eax,0x8(%rsp)
  mov    %r9d,0x50(%rsp)
  mov    %r15,0x38(%rsp)
  mov    %r9d,%eax
  mov    %rax,0x20(%rsp)
  mov    0x68(%rsp),%rax
  sub    $0x4,%rax
  mov    %rax,0x10(%rsp)
  mov    %r15,0x30(%rsp)
  movl   $0x0,0x28(%rsp)
  movq   $0x0,0x18(%rsp)
  pxor   %xmm5,%xmm5
  movss  %xmm5,0x40(%rsp)
  movss  D11(%rip),%xmm6
  movss  %xmm6,0x2c(%rsp)
  mov    %r14,%rbx
  mov    %r15,%r13
  mov    %r12,%r15
  jmp    L82
L45:
  mov    %eax,%r14d
L213:
  movss  0x0(%rbp),%xmm0
  call   <fabs@plt>
  mov    %rax,%rbx
  mov    0x8(%rsp),%eax
  imul   %r12d,%eax
  add    0xc(%rsp),%eax
  cltq
  movss  0x0(%r13,%rax,4),%xmm0
  call   <fabs@plt>
  cmp    %rax,%rbx
  cmovg  %r14d,%r12d
  lea    0x1(%r14),%eax
  add    0x10(%rsp),%rbp
  cmp    %r14d,%r15d
  jne    L45
  mov    0x48(%rsp),%rbx
  mov    0x54(%rsp),%ebp
  mov    0x58(%rsp),%r15
  cmp    %ebp,%r12d
  jne    L204
L194:
  mov    0x30(%rsp),%rax
  movss  (%rax),%xmm1
  movss  0x2c(%rsp),%xmm3
  mulss  %xmm1,%xmm3
  movss  %xmm3,0x2c(%rsp)
  pxor   %xmm4,%xmm4
  ucomiss %xmm4,%xmm3
  jp     L108
  je     L18
L108:
  mov    $0x0,%eax
  mov    0x38(%rsp),%rcx
  mov    0x20(%rsp),%rsi
  jmp    L187
L204:
  mov    0x60(%rsp),%rcx
  shl    $0x2,%rcx
  lea    (%r15,%rcx,1),%rdi
  imul   0x8(%rsp),%r12d
  movslq %r12d,%rdx
  shl    $0x2,%rdx
  lea    (%r15,%rdx,1),%rsi
  add    %r13,%rcx
  add    %r13,%rdx
  mov    $0x0,%eax
  mov    0x20(%rsp),%r9
  jmp    L176
L80:
  lea    0x1(%rax),%r8
  cmp    %r9,%rax
  je     L194
  mov    %r8,%rax
L176:
  movss  (%rdi,%rax,4),%xmm0
  movss  (%rsi,%rax,4),%xmm1
  movss  %xmm1,(%rdi,%rax,4)
  movss  %xmm0,(%rsi,%rax,4)
  cmp    %eax,%ebp
  jg     L80
  movss  (%rcx,%rax,4),%xmm0
  movss  (%rdx,%rax,4),%xmm1
  movss  %xmm1,(%rcx,%rax,4)
  movss  %xmm0,(%rdx,%rax,4)
  jmp    L80
L18:
  mov    0x78(%rsp),%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L83
L130:
  lea    0x1(%rax),%rdx
  cmp    %rsi,%rax
  je     L156
  mov    %rdx,%rax
L187:
  movss  (%rbx,%rax,4),%xmm0
  divss  %xmm1,%xmm0
  movss  %xmm0,(%rbx,%rax,4)
  cmp    %eax,%ebp
  jg     L130
  movss  (%rcx,%rax,4),%xmm0
  divss  %xmm1,%xmm0
  movss  %xmm0,(%rcx,%rax,4)
  jmp    L130
L156:
  mov    0x28(%rsp),%r8d
  mov    0x8(%rsp),%r10d
  mov    %r10d,%edi
  mov    $0x0,%r9d
  mov    $0x0,%esi
  movss  0x40(%rsp),%xmm2
  mov    0x50(%rsp),%r11d
  mov    0x44(%rsp),%r12d
  jmp    L206
L142:
  add    $0x1,%edx
  cmp    %edi,%edx
  je     L251
L102:
  cmp    %ebp,%esi
  je     L142
  movslq %edx,%rax
  shl    $0x2,%rax
  lea    (%r15,%rax,1),%r14
  lea    (%rdx,%r8,1),%ecx
  movslq %ecx,%rcx
  movaps %xmm2,%xmm1
  mulss  (%r15,%rcx,4),%xmm1
  movss  (%r14),%xmm0
  subss  %xmm1,%xmm0
  movss  %xmm0,(%r14)
  add    %r13,%rax
  movaps %xmm2,%xmm1
  mulss  0x0(%r13,%rcx,4),%xmm1
  movss  (%rax),%xmm0
  subss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  jmp    L142
L251:
  lea    0x1(%rsi),%eax
  add    %r10d,%edi
  sub    %r10d,%r8d
  add    %r10d,%r9d
  cmp    %esi,%r11d
  je     L160
  mov    %eax,%esi
L206:
  cmp    %ebp,%esi
  je     L173
  lea    (%r9,%r12,1),%eax
  cltq
  movss  0x0(%r13,%rax,4),%xmm2
L173:
  mov    %r9d,%edx
  jmp    L102
L160:
  movss  %xmm2,0x40(%rsp)
  mov    0x18(%rsp),%rdi
  lea    0x1(%rdi),%rax
  mov    0x8(%rsp),%ecx
  add    %ecx,0x28(%rsp)
  mov    0x70(%rsp),%rcx
  add    %rcx,0x38(%rsp)
  add    %rcx,%rbx
  mov    0x68(%rsp),%rcx
  add    %rcx,0x30(%rsp)
  cmp    0x20(%rsp),%rdi
  je     L64
  mov    %rax,0x18(%rsp)
L82:
  mov    0x18(%rsp),%rax
  mov    %eax,0x44(%rsp)
  mov    %eax,0xc(%rsp)
  mov    %eax,%ebp
  cmp    %eax,0x8(%rsp)
  jle    L194
  movslq 0x28(%rsp),%rax
  mov    %rax,0x60(%rsp)
  mov    0x18(%rsp),%rdi
  add    %rdi,%rax
  lea    0x0(%r13,%rax,4),%rax
  mov    %edi,%r14d
  mov    %edi,%r12d
  mov    %rbx,0x48(%rsp)
  mov    %ebp,0x54(%rsp)
  mov    %rax,%rbp
  mov    %r15,0x58(%rsp)
  mov    0x50(%rsp),%r15d
  jmp    L213
L64:
  mov    0x78(%rsp),%rdi
  call   <free@plt>
  mov    $0x1,%eax
L83:
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D11
datatype: byte[4]

tool: {"D11": [0x00,0x00,0x80,0x3f]}

assistant: ```c
int matrix_inversion(float *A, int n, float *AInverse) {
  int i, j, iPass, imx, icol, irow;
  float det, temp, pivot;
  float factor = 0;
  float *ac = (float *)calloc(n * n, sizeof(float));
  det = 1;
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++) {
      AInverse[n * i + j] = 0;
      ac[n * i + j] = A[n * i + j];
    }
    AInverse[n * i + i] = 1;
  }
  for (iPass = 0; iPass < n; iPass++) {
    imx = iPass;
    for (irow = iPass; irow < n; irow++) {
      if (fabs(A[n * irow + iPass]) > fabs(A[n * imx + iPass]))
        imx = irow;
    }
    if (imx != iPass) {
      for (icol = 0; icol < n; icol++) {
        temp = AInverse[n * iPass + icol];
        AInverse[n * iPass + icol] = AInverse[n * imx + icol];
        AInverse[n * imx + icol] = temp;
        if (icol >= iPass) {
          temp = A[n * iPass + icol];
          A[n * iPass + icol] = A[n * imx + icol];
          A[n * imx + icol] = temp;
        }
      }
    }
    pivot = A[n * iPass + iPass];
    det = det * pivot;
    if (det == 0) {
      free(ac);
      return 0;
    }
    for (icol = 0; icol < n; icol++) {
      AInverse[n * iPass + icol] = AInverse[n * iPass + icol] / pivot;
      if (icol >= iPass)
        A[n * iPass + icol] = A[n * iPass + icol] / pivot;
    }
    for (irow = 0; irow < n; irow++) {
      if (irow != iPass)
        factor = A[n * irow + iPass];
      for (icol = 0; icol < n; icol++) {
        if (irow != iPass) {
          AInverse[n * irow + icol] -= factor * AInverse[n * iPass + icol];
          A[n * irow + icol] -= factor * A[n * iPass + icol];
        }
      }
    }
  }
  free(ac);
  return 1;
}
```