user: 请将以下的汇编代码转换成C语言代码:

```asm
<invers>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,-0x10(%rsp)
  mov    %rdx,-0x8(%rsp)
  mov    %rcx,-0x18(%rsp)
  mov    %r8,-0x28(%rsp)
  test   %edi,%edi
  jle    L127
  mov    %edi,%r9d
  movapd %xmm0,%xmm4
  mov    %rdx,%rdi
  mov    $0x0,%ecx
  mov    %r9d,%esi
  movsd  D41(%rip),%xmm0
  jmp    L59
L61:
  movsd  %xmm0,(%rdx,%rax,8)
L169:
  add    $0x1,%rax
  cmp    %rsi,%rax
  je     L142
L173:
  cmp    %eax,%ecx
  je     L61
  movq   $0x0,(%rdx,%rax,8)
  jmp    L169
L142:
  lea    0x1(%rcx),%eax
  add    $0x50,%rdi
  cmp    %eax,%r9d
  je     L211
  mov    %eax,%ecx
L59:
  mov    %rdi,%rdx
  mov    $0x0,%eax
  jmp    L173
L140:
  mov    %r9d,%eax
L30:
  movsd  0x50(%rdx),%xmm0
  andpd  %xmm3,%xmm0
  comisd %xmm1,%xmm0
  maxsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  cmova  %eax,%edi
  lea    0x1(%rax),%r9d
  add    $0x50,%rdx
  cmp    %eax,%ecx
  jne    L140
  cmp    %r10d,%edi
  jne    L176
L36:
  movsd  (%r15),%xmm0
  movapd %xmm0,%xmm1
  andpd  %xmm5,%xmm1
  comisd %xmm1,%xmm4
  jbe    L128
  mov    -0x28(%rsp),%rax
  movl   $0x1,(%rax)
L179:
  add    $0x1,%r10
  add    $0x50,%r12
  add    $0x50,%rsi
  add    $0x50,%rbp
  add    $0x58,%r11
  cmp    %ebx,%ecx
  je     L178
  mov    -0x1c(%rsp),%ebx
L17:
  mov    -0x28(%rsp),%rax
  mov    (%rax),%r14d
  test   %r14d,%r14d
  jne    L178
  mov    %r12,%r13
  mov    %r11,%r15
  movsd  (%r11),%xmm1
  andpd  %xmm6,%xmm1
  lea    0x1(%rbx),%eax
  mov    %eax,-0x1c(%rsp)
  cmp    %ebx,%ecx
  jle    L36
  mov    %r11,%rdx
  mov    %ebx,%edi
  jmp    L30
L176:
  movslq %edi,%rdi
  lea    (%rdi,%rdi,4),%rdx
  shl    $0x4,%rdx
  mov    -0x10(%rsp),%rax
  lea    (%rax,%rdx,1),%rdi
  add    -0x8(%rsp),%rdx
  mov    $0x0,%eax
L162:
  movsd  0x0(%r13,%rax,8),%xmm0
  movsd  (%rdi,%rax,8),%xmm1
  movsd  %xmm1,0x0(%r13,%rax,8)
  movsd  %xmm0,(%rdi,%rax,8)
  movsd  (%rsi,%rax,8),%xmm0
  movsd  (%rdx,%rax,8),%xmm1
  movsd  %xmm1,(%rsi,%rax,8)
  movsd  %xmm0,(%rdx,%rax,8)
  mov    %rax,%r9
  add    $0x1,%rax
  cmp    %r8,%r9
  jne    L162
  mov    -0x18(%rsp),%rax
  movsd  (%rax),%xmm0
  xorpd  %xmm7,%xmm0
  movsd  %xmm0,(%rax)
  jmp    L36
L128:
  mov    -0x18(%rsp),%rax
  mulsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  movsd  (%r15),%xmm1
  mov    %rsi,%rdx
  mov    %r12,%rax
L159:
  movsd  (%rax),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  movsd  (%rdx),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rdx)
  add    $0x8,%rax
  add    $0x8,%rdx
  cmp    %rbp,%rax
  jne    L159
  mov    -0x8(%rsp),%rdx
  mov    -0x10(%rsp),%r15
  jmp    L227
L21:
  lea    0x1(%r14),%eax
  add    $0x50,%r15
  add    $0x50,%rdx
  cmp    %r14d,%ecx
  je     L179
  mov    %eax,%r14d
L227:
  cmp    %r10d,%r14d
  je     L21
  mov    %r15,%rdi
  movsd  (%r15,%r10,8),%xmm1
  mov    $0x0,%eax
L57:
  movapd %xmm1,%xmm2
  mulsd  0x0(%r13,%rax,8),%xmm2
  movsd  (%rdi,%rax,8),%xmm0
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rdi,%rax,8)
  movapd %xmm1,%xmm2
  mulsd  (%rsi,%rax,8),%xmm2
  movsd  (%rdx,%rax,8),%xmm0
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
  mov    %rax,%r9
  add    $0x1,%rax
  cmp    %r8,%r9
  jne    L57
  jmp    L21
L211:
  mov    -0x18(%rsp),%rax
  mov    D41(%rip),%rbx
  mov    %rbx,(%rax)
  mov    -0x28(%rsp),%rax
  movl   $0x0,(%rax)
  mov    %ecx,%r8d
  mov    -0x10(%rsp),%r12
  lea    0x8(%r12,%r8,8),%rbp
  mov    %r12,%r11
  mov    -0x8(%rsp),%rsi
  mov    $0x0,%r10d
  mov    $0x0,%ebx
  movq   D27(%rip),%xmm6
  movapd %xmm6,%xmm3
  movq   D47(%rip),%xmm7
  movapd %xmm6,%xmm5
  jmp    L17
L127:
  mov    -0x18(%rsp),%rax
  mov    D41(%rip),%rbx
  mov    %rbx,(%rax)
  mov    -0x28(%rsp),%rax
  movl   $0x0,(%rax)
L178:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: disassemble_data
arguments: label: D41
datatype: f64
name: disassemble_data
arguments: label: D27
datatype: qword
name: disassemble_data
arguments: label: D47
datatype: f32[2]

tool: D41: 1

tool: D27: 9223372036854775807

tool: {"D47": [0.0,-0.0]}

assistant: ```c
void invers(int n, double a[10][10], double eps, double b[10][10], double *det_a, int *err) {
  int i, j, k, pozmax;
  double amax, aux;
  for (i = 0; i < n; i++)
    for (j = 0; j < n; j++)
      if (i == j)
        b[i][j] = 1.0;
      else
        b[i][j] = 0.0;
  *det_a = 1.0;
  k = 0;
  *err = 0;
  while ((k < n) && (*err == 0)) {
    amax = fabs(a[k][k]);
    pozmax = k;
    for (i = k + 1; i < n; i++)
      if (fabs(a[i][k]) > amax) {
        amax = fabs(a[i][k]);
        pozmax = i;
      };
    if (k != pozmax) {
      for (j = 0; j < n; j++) {
        aux = a[k][j];
        a[k][j] = a[pozmax][j];
        a[pozmax][j] = aux;
        aux = b[k][j];
        b[k][j] = b[pozmax][j];
        b[pozmax][j] = aux;
      };
      *det_a = -*det_a;
    };
    if (fabs(a[k][k]) < eps)
      *err = 1;
    else {
      *det_a = *det_a * a[k][k];
      aux = a[k][k];
      for (j = 0; j < n; j++) {
        a[k][j] = a[k][j] / aux;
        b[k][j] = b[k][j] / aux;
      };
      for (i = 0; i < n; i++)
        if (i != k) {
          aux = a[i][k];
          for (j = 0; j < n; j++) {
            a[i][j] = a[i][j] - a[k][j] * aux;
            b[i][j] = b[i][j] - b[k][j] * aux;
          }
        }
    }
    k++;
  }
}
```