user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<point_in_triangle>:
  endbr64
  movapd %xmm0,%xmm14
  movapd %xmm2,%xmm0
  movsd  0x18(%rsp),%xmm15
  movapd %xmm6,%xmm13
  subsd  %xmm3,%xmm13
  movapd %xmm7,%xmm2
  subsd  %xmm4,%xmm2
  movsd  %xmm2,-0x28(%rsp)
  movsd  0x8(%rsp),%xmm8
  subsd  %xmm5,%xmm8
  movsd  0x10(%rsp),%xmm11
  subsd  %xmm6,%xmm11
  movsd  %xmm11,-0x10(%rsp)
  movapd %xmm15,%xmm9
  subsd  %xmm7,%xmm9
  movsd  0x20(%rsp),%xmm12
  subsd  0x8(%rsp),%xmm12
  movapd %xmm3,%xmm10
  subsd  0x10(%rsp),%xmm10
  movapd %xmm10,%xmm11
  movapd %xmm4,%xmm10
  subsd  %xmm15,%xmm10
  movapd %xmm5,%xmm2
  subsd  0x20(%rsp),%xmm2
  movsd  %xmm2,-0x8(%rsp)
  movapd %xmm14,%xmm2
  subsd  %xmm3,%xmm2
  movapd %xmm1,%xmm3
  subsd  %xmm4,%xmm3
  movsd  %xmm3,-0x20(%rsp)
  movapd %xmm0,%xmm3
  subsd  %xmm5,%xmm3
  movsd  %xmm3,-0x18(%rsp)
  movapd %xmm14,%xmm5
  subsd  %xmm6,%xmm5
  movapd %xmm5,%xmm3
  movapd %xmm1,%xmm6
  subsd  %xmm7,%xmm6
  movapd %xmm6,%xmm4
  movapd %xmm0,%xmm5
  subsd  0x8(%rsp),%xmm5
  movapd %xmm14,%xmm6
  subsd  0x10(%rsp),%xmm6
  subsd  %xmm15,%xmm1
  subsd  0x20(%rsp),%xmm0
  movsd  -0x18(%rsp),%xmm15
  mulsd  %xmm13,%xmm15
  movapd %xmm8,%xmm7
  mulsd  %xmm2,%xmm7
  subsd  %xmm7,%xmm15
  movapd %xmm2,%xmm7
  mulsd  -0x28(%rsp),%xmm7
  mulsd  -0x20(%rsp),%xmm13
  subsd  %xmm13,%xmm7
  movapd %xmm12,%xmm13
  mulsd  %xmm4,%xmm13
  movapd %xmm9,%xmm14
  mulsd  %xmm5,%xmm14
  subsd  %xmm14,%xmm13
  movsd  -0x10(%rsp),%xmm2
  mulsd  %xmm2,%xmm5
  mulsd  %xmm3,%xmm12
  subsd  %xmm12,%xmm5
  mulsd  %xmm3,%xmm9
  mulsd  %xmm2,%xmm4
  subsd  %xmm4,%xmm9
  movsd  -0x8(%rsp),%xmm4
  movapd %xmm4,%xmm2
  mulsd  %xmm1,%xmm2
  movapd %xmm10,%xmm12
  mulsd  %xmm0,%xmm12
  subsd  %xmm12,%xmm2
  mulsd  %xmm11,%xmm0
  movapd %xmm4,%xmm3
  mulsd  %xmm6,%xmm3
  subsd  %xmm3,%xmm0
  mulsd  %xmm6,%xmm10
  mulsd  %xmm1,%xmm11
  subsd  %xmm11,%xmm10
  mulsd  -0x20(%rsp),%xmm8
  movsd  -0x28(%rsp),%xmm1
  mulsd  -0x18(%rsp),%xmm1
  subsd  %xmm1,%xmm8
  cvttsd2si %xmm8,%eax
  test   %eax,%eax
  js     L29
  cvttsd2si %xmm13,%edx
  test   %edx,%edx
  js     L48
  cvttsd2si %xmm2,%edx
  mov    $0x1,%ecx
  test   %edx,%edx
  jns    L2
  test   %eax,%eax
  je     L29
  mov    $0x0,%ecx
  jmp    L2
L29:
  cvttsd2si %xmm13,%eax
  mov    $0x0,%ecx
  test   %eax,%eax
  jg     L2
L291:
  cvttsd2si %xmm2,%eax
  test   %eax,%eax
  setle  %cl
  movzbl %cl,%ecx
  neg    %ecx
  jmp    L2
L240:
  test   %eax,%eax
  jne    L51
  cvttsd2si %xmm5,%eax
  test   %eax,%eax
  jg     L51
  jmp    L206
L60:
  cvttsd2si %xmm5,%eax
  test   %eax,%eax
  jg     L51
L218:
  cvttsd2si %xmm0,%eax
  test   %eax,%eax
  jg     L51
L206:
  sub    $0x1,%ecx
  jmp    L51
L66:
  test   %eax,%eax
  jne    L15
  cvttsd2si %xmm9,%eax
  test   %eax,%eax
  jg     L15
  jmp    L224
L160:
  cvttsd2si %xmm9,%eax
  test   %eax,%eax
  jg     L15
L50:
  cvttsd2si %xmm10,%eax
  test   %eax,%eax
  jg     L15
L224:
  sub    $0x1,%ecx
  jmp    L15
L38:
  test   %eax,%eax
  je     L50
L15:
  add    $0x3,%ecx
  mov    $0x41,%eax
  shr    %cl,%rax
  and    $0x1,%eax
  ret
L188:
  test   %eax,%eax
  je     L218
L51:
  cvttsd2si %xmm7,%eax
  test   %eax,%eax
  js     L160
  cvttsd2si %xmm9,%edx
  test   %edx,%edx
  js     L38
  cvttsd2si %xmm10,%edx
  test   %edx,%edx
  js     L66
  add    $0x1,%ecx
  jmp    L15
L48:
  test   %eax,%eax
  je     L291
  mov    $0x0,%ecx
L2:
  cvttsd2si %xmm15,%eax
  test   %eax,%eax
  js     L60
  cvttsd2si %xmm5,%edx
  test   %edx,%edx
  js     L188
  cvttsd2si %xmm0,%edx
  test   %edx,%edx
  js     L240
  add    $0x1,%ecx
  jmp    L51
```

assistant: ```c
int point_in_triangle(double point_x, double point_y, double point_z, double t1_x, double t1_y, double t1_z, double t2_x, double t2_y, double t2_z, double t3_x, double t3_y, double t3_z) {
  int answer;
  double answer1_x, answer1_y, answer1_z;
  double answer2_x, answer2_y, answer2_z;
  double answer3_x, answer3_y, answer3_z;
  double af1, af2, af3;
  double bf1, bf2, bf3;
  double cf1, cf2, cf3;
  double ab1, ab2, ab3;
  double bc1, bc2, bc3;
  double ca1, ca2, ca3;
  ab1 = (t2_x - t1_x);
  ab2 = (t2_y - t1_y);
  ab3 = (t2_z - t1_z);
  bc1 = (t3_x - t2_x);
  bc2 = (t3_y - t2_y);
  bc3 = (t3_z - t2_z);
  ca1 = (t1_x - t3_x);
  ca2 = (t1_y - t3_y);
  ca3 = (t1_z - t3_z);
  af1 = (point_x - t1_x);
  af2 = (point_y - t1_y);
  af3 = (point_z - t1_z);
  bf1 = (point_x - t2_x);
  bf2 = (point_y - t2_y);
  bf3 = (point_z - t2_z);
  cf1 = (point_x - t3_x);
  cf2 = (point_y - t3_y);
  cf3 = (point_z - t3_z);
  answer1_x = (af2 * ab3) - (af3 * ab2);
  answer1_y = (af3 * ab1) - (af1 * ab3);
  answer1_z = (af1 * ab2) - (af2 * ab1);
  answer2_x = (bf2 * bc3) - (bf3 * bc2);
  answer2_y = (bf3 * bc1) - (bf1 * bc3);
  answer2_z = (bf1 * bc2) - (bf2 * bc1);
  answer3_x = (cf2 * ca3) - (cf3 * ca2);
  answer3_y = (cf3 * ca1) - (cf1 * ca3);
  answer3_z = (cf1 * ca2) - (cf2 * ca1);
  answer = 0;
  if ((int)answer1_x >= 0 && (int)answer2_x >= 0 && (int)answer3_x >= 0) {
    answer++;
  } else if ((int)answer1_x <= 0 && (int)answer2_x <= 0 && (int)answer3_x <= 0) {
    answer--;
  }
  if ((int)answer1_y >= 0 && (int)answer2_y >= 0 && (int)answer3_y >= 0) {
    answer++;
  } else if ((int)answer1_y <= 0 && (int)answer2_y <= 0 && (int)answer3_y <= 0) {
    answer--;
  }
  if ((int)answer1_z >= 0 && (int)answer2_z >= 0 && (int)answer3_z >= 0) {
    answer++;
  } else if ((int)answer1_z <= 0 && (int)answer2_z <= 0 && (int)answer3_z <= 0) {
    answer--;
  }
  if (answer == 3 || answer == -3) {
    answer = 1;
  } else {
    answer = 0;
  }
  return (answer);
}
```