user: 请从给定的汇编指令推导出C源代码:

```asm
<m_inv6>:
  endbr64
  push   %r12
  movsd  D25(%rip),%xmm1
  mov    %rsi,%r12
  mov    %rsi,%rcx
  push   %rbp
  xor    %edx,%edx
  mov    %rdi,%rbp
  pxor   %xmm2,%xmm2
  push   %rbx
  nop
L74:
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L147:
  movapd %xmm1,%xmm0
  cmp    %eax,%edx
  je     L24
  movapd %xmm2,%xmm0
L24:
  movsd  %xmm0,(%rcx,%rax,8)
  add    $0x1,%rax
  cmp    $0x6,%rax
  jne    L147
  add    $0x1,%edx
  add    $0x30,%rcx
  cmp    $0x6,%edx
  jne    L74
  lea    0x30(%r12),%r10
  mov    %r12,%rdi
  mov    %rbp,%rsi
  mov    %rbp,%rbx
  movq   D14(%rip),%xmm3
  movsd  D21(%rip),%xmm5
  xor    %r9d,%r9d
  xor    %r11d,%r11d
  movq   D27(%rip),%xmm4
L37:
  movsd  (%rbx),%xmm1
  mov    %r11d,%ecx
  add    $0x1,%r11d
  movapd %xmm1,%xmm2
  andpd  %xmm3,%xmm2
  cmp    $0x6,%r11d
  je     L58
  mov    %rbx,%rdx
  mov    %r11d,%eax
  xchg   %ax,%ax
L112:
  movsd  0x30(%rdx),%xmm0
  andpd  %xmm3,%xmm0
  comisd %xmm2,%xmm0
  maxsd  %xmm2,%xmm0
  cmova  %eax,%ecx
  add    $0x1,%eax
  movapd %xmm0,%xmm2
  add    $0x30,%rdx
  cmp    $0x6,%eax
  jne    L112
  comisd %xmm0,%xmm5
  ja     L15
  cmp    %r9d,%ecx
  je     L9
  movslq %ecx,%rcx
  mov    %r9,%rax
  lea    (%rcx,%rcx,2),%rdx
  shl    $0x4,%rdx
  lea    0x0(%rbp,%rdx,1),%rcx
  jmp    L168
  nopl   0x0(%rax,%rax,1)
L167:
  movsd  (%rsi,%rax,8),%xmm1
L168:
  movsd  (%rcx,%rax,8),%xmm0
  movsd  %xmm0,(%rsi,%rax,8)
  movsd  %xmm1,(%rcx,%rax,8)
  add    $0x1,%rax
  cmp    $0x6,%eax
  jne    L167
  add    %r12,%rdx
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L50:
  movsd  (%rdi,%rax,1),%xmm0
  movsd  (%rdx,%rax,1),%xmm1
  movsd  %xmm1,(%rdi,%rax,1)
  movsd  %xmm0,(%rdx,%rax,1)
  add    $0x8,%rax
  cmp    $0x30,%rax
  jne    L50
  movsd  (%rbx),%xmm1
L9:
  mov    %r9,%rax
  movapd %xmm1,%xmm0
  jmp    L19
  nopl   0x0(%rax,%rax,1)
L41:
  movsd  (%rsi,%rax,8),%xmm0
L19:
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rsi,%rax,8)
  add    $0x1,%rax
  cmp    $0x6,%eax
  jne    L41
  mov    %rdi,%rax
  nopw   0x0(%rax,%rax,1)
L160:
  movsd  (%rax),%xmm0
  add    $0x8,%rax
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rax)
  cmp    %r10,%rax
  jne    L160
  mov    %rbp,%rcx
  mov    %r12,%rdx
  xor    %r8d,%r8d
  nopw   0x0(%rax,%rax,1)
L149:
  cmp    %r9d,%r8d
  je     L178
  movsd  (%rcx,%r9,8),%xmm2
  mov    %r9,%rax
  movapd %xmm2,%xmm1
  xorpd  %xmm4,%xmm1
  jmp    L72
  nopl   0x0(%rax,%rax,1)
L181:
  movsd  (%rcx,%rax,8),%xmm2
L72:
  movsd  (%rsi,%rax,8),%xmm0
  mulsd  %xmm1,%xmm0
  addsd  %xmm2,%xmm0
  movsd  %xmm0,(%rcx,%rax,8)
  add    $0x1,%rax
  cmp    $0x6,%eax
  jne    L181
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L145:
  movsd  (%rdi,%rax,1),%xmm0
  mulsd  %xmm1,%xmm0
  addsd  (%rdx,%rax,1),%xmm0
  movsd  %xmm0,(%rdx,%rax,1)
  add    $0x8,%rax
  cmp    $0x30,%rax
  jne    L145
L178:
  add    $0x1,%r8d
  add    $0x30,%rdx
  add    $0x30,%rcx
  cmp    $0x6,%r8d
  jne    L149
  add    $0x1,%r9
  add    $0x38,%rbx
  add    $0x30,%rsi
  add    $0x30,%rdi
  add    $0x30,%r10
  cmp    $0x6,%r11d
  jne    L37
L15:
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L58:
  comisd %xmm2,%xmm5
  jbe    L9
  jmp    L15
```

tool_calls: name: disassemble_data
arguments: label: D25
datatype: f64
name: disassemble_data
arguments: label: D14
datatype: qword
name: disassemble_data
arguments: label: D21
datatype: f64
name: disassemble_data
arguments: label: D27
datatype: f32[2]

tool: D25: 1

tool: D14: 9223372036854775807

tool: D21: 1e-07

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

assistant: ```c
void m_inv6(double mat[6][6], double id[6][6]) {
  const double Epsilon = 0.0000001;
  int i, j, s = 0, pindex, pivot = 1;
  double f, Maximum, h;
  for (i = 0; i < 6; i++)
    for (j = 0; j < 6; j++) {
      if (i == j)
        id[i][j] = 1.0;
      else
        id[i][j] = 0.;
    }
  do {
    Maximum = fabs(mat[s][s]);
    if (pivot) {
      pindex = s;
      for (i = s + 1; i < 6; i++)
        if (fabs(mat[i][s]) > Maximum) {
          Maximum = fabs(mat[i][s]);
          pindex = i;
        }
    }
    if (Maximum < Epsilon)
      break;
    if (pivot) {
      if (pindex != s) {
        for (j = s; j < 6; j++) {
          h = mat[s][j];
          mat[s][j] = mat[pindex][j];
          mat[pindex][j] = h;
        }
        for (j = 0; j < 6; j++) {
          h = id[s][j];
          id[s][j] = id[pindex][j];
          id[pindex][j] = h;
        }
      }
    }
    f = mat[s][s];
    for (j = s; j < 6; j++)
      mat[s][j] = mat[s][j] / f;
    for (j = 0; j < 6; j++)
      id[s][j] = id[s][j] / f;
    for (i = 0; i < 6; i++) {
      if (i != s) {
        f = -mat[i][s];
        for (j = s; j < 6; j++)
          mat[i][j] += f * mat[s][j];
        for (j = 0; j < 6; j++)
          id[i][j] += f * id[s][j];
      }
    }
    s++;
  } while (s < 6);
}
```