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

```asm
<interpolating>:
  endbr64
  push   %r15
  mov    %rsi,%r15
  push   %r14
  push   %r13
  mov    %r9,%r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %r8,%rbx
  sub    $0x98,%rsp
  movsd  0x8(%rdx),%xmm1
  movupd (%r15),%xmm0
  movsd  (%rdx),%xmm2
  mov    %rdi,0x18(%rsp)
  lea    0x60(%rsp),%r8
  lea    0x40(%rsp),%rdi
  movhpd 0x8(%rcx),%xmm1
  unpckhpd %xmm0,%xmm0
  mov    0xd0(%rsp),%r14
  mov    0xd8(%rsp),%r12
  subpd  %xmm0,%xmm1
  movupd (%r15),%xmm0
  movhpd (%rcx),%xmm2
  mov    0xe0(%rsp),%rbp
  mov    %fs:0x28,%rsi
  mov    %rsi,0x88(%rsp)
  xor    %esi,%esi
  mov    %r8,%rsi
  mov    %r8,0x10(%rsp)
  unpcklpd %xmm0,%xmm0
  subpd  %xmm0,%xmm2
  movaps %xmm1,0x50(%rsp)
  pxor   %xmm1,%xmm1
  movaps %xmm1,0x60(%rsp)
  movaps %xmm1,0x70(%rsp)
  movaps %xmm2,0x40(%rsp)
  call   <mat22Invert@plt>
  mov    0x18(%rsp),%rax
  movupd (%r15),%xmm3
  pxor   %xmm1,%xmm1
  mov    0x10(%rsp),%rdi
  lea    0x30(%rsp),%rdx
  lea    0x20(%rsp),%rsi
  movsd  %xmm0,0x8(%rsp)
  movupd (%rax),%xmm2
  movaps %xmm1,0x30(%rsp)
  subpd  %xmm3,%xmm2
  movaps %xmm2,0x20(%rsp)
  call   <mat221Multiply@plt>
  movsd  0x8(%rsp),%xmm0
  ucomisd D15(%rip),%xmm0
  jp     L2
  je     L27
L2:
  movsd  0x0(%r13),%xmm4
  movsd  (%r14),%xmm0
  movsd  0x30(%rsp),%xmm2
  movsd  (%r12),%xmm3
  subsd  %xmm4,%xmm0
  movsd  0x38(%rsp),%xmm1
  subsd  %xmm4,%xmm3
  mulsd  %xmm2,%xmm0
  mulsd  %xmm1,%xmm3
  addsd  %xmm4,%xmm0
  addsd  %xmm3,%xmm0
  mulsd  (%rbx),%xmm0
  movsd  %xmm0,0x0(%rbp)
  movsd  0x8(%r13),%xmm4
  movsd  0x8(%r14),%xmm0
  movsd  0x8(%r12),%xmm3
  subsd  %xmm4,%xmm0
  subsd  %xmm4,%xmm3
  mulsd  %xmm2,%xmm0
  mulsd  %xmm1,%xmm3
  addsd  %xmm4,%xmm0
  addsd  %xmm3,%xmm0
  mulsd  0x8(%rbx),%xmm0
  movsd  %xmm0,0x8(%rbp)
  movsd  0x10(%r13),%xmm3
  movsd  0x10(%r14),%xmm0
  subsd  %xmm3,%xmm0
  mulsd  %xmm2,%xmm0
  movsd  0x10(%r12),%xmm2
  subsd  %xmm3,%xmm2
  mulsd  %xmm2,%xmm1
  addsd  %xmm3,%xmm0
  addsd  %xmm1,%xmm0
  mulsd  0x10(%rbx),%xmm0
  movsd  %xmm0,0x10(%rbp)
L21:
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L16
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L27:
  lea    D11(%rip),%rdi
  call   <printf@plt>
  jmp    L21
L16:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D15
type_guessed: f64
name: parse_data
arguments: tag: D11
type_guessed: string

tool: D15: 0

tool: D11: The matrix doesn't have an Inverse, something is wrong here


assistant: ```c
void interpolating(double x[2], double a[2], double b[2], double c[2], double rgb[3], double alpha[3], double beta[3], double gamma[3], double new_rgb[3]) {
  double m[2][2] = {{b[0] - a[0], c[0] - a[0]}, {b[1] - a[1], c[1] - a[1]}};
  double Inv[2][2] = {{0.0, 0.0}, {0.0, 0.0}};
  double det = mat22Invert(m, Inv);
  double vec[2] = {x[0] - a[0], x[1] - a[1]};
  double pq[2] = {0.0, 0.0};
  mat221Multiply(Inv, vec, pq);
  if (det != 0) {
    new_rgb[0] = (alpha[0] + pq[0] * (beta[0] - alpha[0]) + pq[1] * (gamma[0] - alpha[0])) * rgb[0];
    new_rgb[1] = (alpha[1] + pq[0] * (beta[1] - alpha[1]) + pq[1] * (gamma[1] - alpha[1])) * rgb[1];
    new_rgb[2] = (alpha[2] + pq[0] * (beta[2] - alpha[2]) + pq[1] * (gamma[2] - alpha[2])) * rgb[2];
  } else {
    printf("The matrix doesn't have an Inverse, something is wrong here\n");
  }
}
```