user: Demonstrate the C code that generates the assembly output below:

```asm
<m_inv6>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,-0x8(%rsp)
  mov    %rsi,%r15
  mov    $0x0,%edx
  movsd  D16(%rip),%xmm0
  jmp    L199
L163:
  movsd  %xmm0,(%rcx,%rax,8)
L146:
  add    $0x1,%rax
  cmp    $0x6,%rax
  je     L118
L89:
  cmp    %eax,%edx
  je     L163
  movq   $0x0,(%rcx,%rax,8)
  jmp    L146
L118:
  add    $0x1,%edx
  add    $0x30,%rsi
  cmp    $0x6,%edx
  je     L227
L199:
  mov    %rsi,%rcx
  mov    $0x0,%eax
  jmp    L89
L227:
  lea    0x30(%r15),%r11
  mov    -0x8(%rsp),%r13
  lea    0x30(%r13),%rbp
  mov    %r15,%r14
  mov    $0x0,%r10d
  mov    $0x0,%r12d
  movq   D38(%rip),%xmm4
  movapd %xmm4,%xmm2
  movsd  D43(%rip),%xmm5
  movq   D45(%rip),%xmm3
  jmp    L25
L12:
  cmp    $0x5,%r10d
  jg     L173
  movslq %ecx,%rax
  lea    (%rax,%rax,2),%rdx
  shl    $0x4,%rdx
  add    -0x8(%rsp),%rdx
  mov    %r10,%rax
L0:
  movsd  (%rsi,%rax,8),%xmm0
  movsd  (%rdx,%rax,8),%xmm1
  movsd  %xmm1,(%rsi,%rax,8)
  movsd  %xmm0,(%rdx,%rax,8)
  add    $0x1,%rax
  cmp    $0x5,%eax
  jle    L0
L173:
  movslq %ecx,%rcx
  lea    (%rcx,%rcx,2),%rdx
  shl    $0x4,%rdx
  add    %r15,%rdx
  mov    %r14,%rax
L246:
  movsd  (%rax),%xmm0
  movsd  (%rdx),%xmm1
  movsd  %xmm1,(%rax)
  movsd  %xmm0,(%rdx)
  add    $0x8,%rax
  add    $0x8,%rdx
  cmp    %r11,%rax
  jne    L246
  jmp    L228
L240:
  movapd %xmm1,%xmm0
  mulsd  (%rsi,%rax,8),%xmm0
  addsd  (%rcx,%rax,8),%xmm0
  movsd  %xmm0,(%rcx,%rax,8)
  add    $0x1,%rax
  cmp    $0x5,%eax
  jle    L240
L183:
  mov    $0x0,%eax
L253:
  movapd %xmm1,%xmm0
  mulsd  (%r8,%rax,1),%xmm0
  addsd  (%rdx,%rax,1),%xmm0
  movsd  %xmm0,(%rdx,%rax,1)
  add    $0x8,%rax
  cmp    $0x30,%rax
  jne    L253
L115:
  add    $0x1,%edi
  add    $0x30,%rdx
  add    $0x30,%r9
  cmp    $0x6,%edi
  je     L261
L124:
  cmp    %ebx,%edi
  je     L115
  mov    %r9,%rcx
  movsd  (%r9,%r10,8),%xmm1
  xorpd  %xmm3,%xmm1
  cmp    $0x5,%ebx
  jg     L183
  mov    %r10,%rax
  jmp    L240
L261:
  add    $0x1,%r10
  add    $0x38,%r13
  add    $0x30,%r14
  add    $0x30,%r11
  add    $0x30,%rbp
  cmp    $0x6,%r12d
  je     L18
L25:
  lea    -0x30(%rbp),%rsi
  mov    %r13,%rdi
  movsd  0x0(%r13),%xmm1
  andpd  %xmm4,%xmm1
  mov    %r12d,%ecx
  add    $0x1,%r12d
  cmp    $0x5,%r12d
  jg     L4
  mov    %r13,%rdx
  mov    %r12d,%eax
L74:
  movsd  0x30(%rdx),%xmm0
  andpd  %xmm2,%xmm0
  comisd %xmm1,%xmm0
  maxsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  cmova  %eax,%ecx
  add    $0x1,%eax
  add    $0x30,%rdx
  cmp    $0x6,%eax
  jne    L74
  comisd %xmm0,%xmm5
  ja     L18
  cmp    %r10d,%ecx
  jne    L12
L228:
  movsd  (%rdi),%xmm1
  mov    %r10d,%ebx
  cmp    $0x5,%r10d
  jg     L48
  mov    %r13,%rax
L222:
  movsd  (%rax),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  cmp    %rbp,%rax
  jne    L222
L48:
  mov    %r14,%rax
L263:
  movsd  (%rax),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  cmp    %r11,%rax
  jne    L263
  mov    %r14,%r8
  mov    -0x8(%rsp),%r9
  mov    %r15,%rdx
  mov    $0x0,%edi
  jmp    L124
L4:
  movsd  D43(%rip),%xmm6
  comisd %xmm1,%xmm6
  jbe    L228
L18:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: read_data
arguments: data_tag: D16
type_guessed: f64
name: read_data
arguments: data_tag: D38
type_guessed: qword
name: read_data
arguments: data_tag: D43
type_guessed: f64
name: read_data
arguments: data_tag: D45
type_guessed: f32[2]

tool: D16: 1

tool: D38: 9223372036854775807

tool: D43: 1e-07

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