user: Please show me the C implementation that matches the assembly code listed below:

```asm
<solve3x3>:
  endbr64
  push   %rbx
  mov    $0x1,%eax
  mov    %rdx,%rbx
  sub    $0x30,%rsp
  movsd  (%rdi),%xmm9
  movsd  0x8(%rdi),%xmm8
  movsd  0x20(%rdi),%xmm4
  movsd  0x30(%rdi),%xmm10
  movsd  0x28(%rdi),%xmm3
  movapd %xmm9,%xmm7
  movapd %xmm8,%xmm0
  movsd  0x10(%rdi),%xmm11
  movapd %xmm4,%xmm5
  movsd  0x40(%rdi),%xmm12
  movsd  0x18(%rdi),%xmm2
  mulsd  %xmm4,%xmm7
  movapd %xmm11,%xmm13
  movsd  0x38(%rdi),%xmm1
  movapd %xmm3,%xmm14
  mulsd  %xmm3,%xmm0
  movapd %xmm12,%xmm15
  xor    %edi,%edi
  mulsd  %xmm10,%xmm5
  mulsd  %xmm2,%xmm13
  mulsd  %xmm1,%xmm14
  mulsd  %xmm2,%xmm15
  movapd %xmm7,%xmm6
  movsd  %xmm7,0x18(%rsp)
  movapd %xmm9,%xmm7
  mulsd  %xmm12,%xmm6
  movsd  %xmm5,0x8(%rsp)
  movapd %xmm0,%xmm5
  mulsd  %xmm10,%xmm5
  mulsd  %xmm14,%xmm7
  movsd  %xmm15,0x20(%rsp)
  addsd  %xmm6,%xmm5
  movapd %xmm13,%xmm6
  mulsd  %xmm1,%xmm6
  addsd  %xmm6,%xmm5
  movsd  0x8(%rsp),%xmm6
  mulsd  %xmm11,%xmm6
  subsd  %xmm6,%xmm5
  movapd %xmm15,%xmm6
  movapd %xmm4,%xmm15
  mulsd  %xmm8,%xmm6
  subsd  %xmm7,%xmm5
  movsd  (%rsi),%xmm7
  mulsd  %xmm7,%xmm15
  subsd  %xmm6,%xmm5
  movsd  0x8(%rsi),%xmm6
  mulsd  %xmm7,%xmm14
  movsd  %xmm5,0x10(%rsp)
  movsd  0x10(%rsi),%xmm5
  mulsd  %xmm12,%xmm15
  mulsd  %xmm5,%xmm0
  mulsd  %xmm5,%xmm4
  mulsd  %xmm5,%xmm13
  addsd  %xmm15,%xmm0
  movapd %xmm11,%xmm15
  mulsd  %xmm6,%xmm15
  mulsd  %xmm11,%xmm4
  mulsd  %xmm1,%xmm15
  addsd  %xmm15,%xmm0
  subsd  %xmm4,%xmm0
  movapd %xmm12,%xmm4
  mulsd  %xmm6,%xmm4
  subsd  %xmm14,%xmm0
  mulsd  %xmm8,%xmm4
  subsd  %xmm4,%xmm0
  movapd %xmm9,%xmm4
  mulsd  %xmm6,%xmm4
  movsd  %xmm0,0x28(%rsp)
  mulsd  %xmm4,%xmm12
  movapd %xmm3,%xmm4
  mulsd  %xmm7,%xmm4
  mulsd  %xmm5,%xmm3
  mulsd  %xmm10,%xmm4
  mulsd  %xmm9,%xmm3
  addsd  %xmm12,%xmm4
  movapd %xmm10,%xmm12
  mulsd  %xmm6,%xmm12
  addsd  %xmm13,%xmm4
  mulsd  %xmm12,%xmm11
  subsd  %xmm11,%xmm4
  subsd  %xmm3,%xmm4
  movsd  0x20(%rsp),%xmm3
  mulsd  %xmm7,%xmm3
  subsd  %xmm3,%xmm4
  movapd %xmm8,%xmm3
  mulsd  %xmm6,%xmm3
  movsd  %xmm4,0x20(%rsp)
  mulsd  %xmm10,%xmm3
  movsd  0x18(%rsp),%xmm10
  mulsd  %xmm5,%xmm10
  addsd  %xmm10,%xmm3
  movapd %xmm2,%xmm10
  mulsd  %xmm7,%xmm10
  mulsd  0x8(%rsp),%xmm7
  mulsd  %xmm5,%xmm2
  mulsd  %xmm1,%xmm10
  mulsd  %xmm6,%xmm1
  mulsd  %xmm8,%xmm2
  addsd  %xmm10,%xmm3
  mulsd  %xmm9,%xmm1
  subsd  %xmm7,%xmm3
  subsd  %xmm1,%xmm3
  subsd  %xmm2,%xmm3
  movsd  0x10(%rsp),%xmm2
  ucomisd D6(%rip),%xmm2
  setp   %dil
  movsd  %xmm3,0x8(%rsp)
  cmovne %eax,%edi
  call   <assert@plt>
  movsd  0x10(%rsp),%xmm2
  movsd  0x28(%rsp),%xmm0
  movsd  0x20(%rsp),%xmm4
  movsd  0x8(%rsp),%xmm3
  divsd  %xmm2,%xmm0
  divsd  %xmm2,%xmm4
  movsd  %xmm0,(%rbx)
  divsd  %xmm2,%xmm3
  movsd  %xmm4,0x8(%rbx)
  movsd  %xmm3,0x10(%rbx)
  add    $0x30,%rsp
  pop    %rbx
  ret
```

tool_calls: name: parse_data
arguments: data_label: D6
type_guessed: f64

tool: D6: 0

assistant: ```c
void solve3x3(double M[3 * 3], double P[3], double C[3]) {
  double delta = M[0] * M[4] * M[8] + M[1] * M[5] * M[6] + M[2] * M[3] * M[7] - M[6] * M[4] * M[2] - M[7] * M[5] * M[0] - M[8] * M[3] * M[1];
  double delta_x = P[0] * M[4] * M[8] + M[1] * M[5] * P[2] + M[2] * P[1] * M[7] - P[2] * M[4] * M[2] - M[7] * M[5] * P[0] - M[8] * P[1] * M[1];
  double delta_y = M[0] * P[1] * M[8] + P[0] * M[5] * M[6] + M[2] * M[3] * P[2] - M[6] * P[1] * M[2] - P[2] * M[5] * M[0] - M[8] * M[3] * P[0];
  double delta_z = M[0] * M[4] * P[2] + M[1] * P[1] * M[6] + P[0] * M[3] * M[7] - M[6] * M[4] * P[0] - M[7] * P[1] * M[0] - P[2] * M[3] * M[1];
  assert(delta != 0.f);
  C[0] = delta_x / delta;
  C[1] = delta_y / delta;
  C[2] = delta_z / delta;
}
```