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

```asm
<interpolating>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x98,%rsp
  mov    %rdi,%r12
  mov    %rsi,%rbx
  mov    %rcx,%rax
  mov    %r8,0x18(%rsp)
  mov    %r9,%rbp
  mov    0xd0(%rsp),%r15
  mov    0xd8(%rsp),%r14
  mov    0xe0(%rsp),%r13
  mov    %fs:0x28,%rcx
  mov    %rcx,0x88(%rsp)
  xor    %ecx,%ecx
  movsd  (%rsi),%xmm1
  movsd  (%rdx),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,0x40(%rsp)
  movsd  (%rax),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,0x48(%rsp)
  movsd  0x8(%rsi),%xmm1
  movsd  0x8(%rdx),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,0x50(%rsp)
  movsd  0x8(%rax),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,0x58(%rsp)
  movq   $0x0,0x60(%rsp)
  movq   $0x0,0x68(%rsp)
  movq   $0x0,0x70(%rsp)
  movq   $0x0,0x78(%rsp)
  lea    0x60(%rsp),%rax
  lea    0x40(%rsp),%rdi
  mov    %rax,0x10(%rsp)
  mov    %rax,%rsi
  call   <mat22Invert@plt>
  movsd  %xmm0,0x8(%rsp)
  movsd  (%r12),%xmm0
  subsd  (%rbx),%xmm0
  movsd  %xmm0,0x20(%rsp)
  movsd  0x8(%r12),%xmm0
  subsd  0x8(%rbx),%xmm0
  movsd  %xmm0,0x28(%rsp)
  movq   $0x0,0x30(%rsp)
  movq   $0x0,0x38(%rsp)
  lea    0x30(%rsp),%rdx
  lea    0x20(%rsp),%rsi
  mov    0x10(%rsp),%rdi
  call   <mat221Multiply@plt>
  movsd  0x8(%rsp),%xmm5
  ucomisd D15(%rip),%xmm5
  jp     L20
  je     L36
L20:
  movsd  0x0(%rbp),%xmm4
  movsd  0x30(%rsp),%xmm2
  movsd  0x38(%rsp),%xmm1
  movsd  (%r15),%xmm0
  subsd  %xmm4,%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm4,%xmm0
  movsd  (%r14),%xmm3
  subsd  %xmm4,%xmm3
  mulsd  %xmm1,%xmm3
  addsd  %xmm3,%xmm0
  mov    0x18(%rsp),%rax
  mulsd  (%rax),%xmm0
  movsd  %xmm0,0x0(%r13)
  movsd  0x8(%rbp),%xmm4
  movsd  0x8(%r15),%xmm0
  subsd  %xmm4,%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm4,%xmm0
  movsd  0x8(%r14),%xmm3
  subsd  %xmm4,%xmm3
  mulsd  %xmm1,%xmm3
  addsd  %xmm3,%xmm0
  mulsd  0x8(%rax),%xmm0
  movsd  %xmm0,0x8(%r13)
  movsd  0x10(%rbp),%xmm3
  movsd  0x10(%r15),%xmm0
  subsd  %xmm3,%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm3,%xmm0
  movsd  0x10(%r14),%xmm2
  subsd  %xmm3,%xmm2
  mulsd  %xmm2,%xmm1
  addsd  %xmm1,%xmm0
  mulsd  0x10(%rax),%xmm0
  movsd  %xmm0,0x10(%r13)
L11:
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L32
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L36:
  lea    D17(%rip),%rdi
  call   <printf@plt>
  jmp    L11
L32:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D15
type_infered: f64
name: unpack_data
arguments: tag: D17
type_infered: string

tool: D15: 0

tool: D17: 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");
  }
}
```