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

```asm
<point_in_triangle>:
  endbr64
  movapd %xmm3,%xmm10
  movapd %xmm4,%xmm15
  movapd %xmm0,%xmm8
  movsd  0x8(%rsp),%xmm9
  subsd  0x10(%rsp),%xmm10
  subsd  0x18(%rsp),%xmm15
  movapd %xmm6,%xmm14
  movapd %xmm2,%xmm0
  subsd  %xmm3,%xmm14
  movapd %xmm7,%xmm12
  movsd  0x20(%rsp),%xmm2
  subsd  0x8(%rsp),%xmm2
  subsd  %xmm4,%xmm12
  movsd  0x10(%rsp),%xmm13
  movsd  %xmm10,-0x20(%rsp)
  movapd %xmm15,%xmm10
  movapd %xmm8,%xmm15
  subsd  %xmm5,%xmm9
  subsd  %xmm3,%xmm15
  movapd %xmm1,%xmm3
  subsd  %xmm6,%xmm13
  movsd  0x18(%rsp),%xmm11
  subsd  %xmm4,%xmm3
  movapd %xmm0,%xmm4
  movsd  %xmm2,-0x8(%rsp)
  movapd %xmm5,%xmm2
  subsd  %xmm5,%xmm4
  movapd %xmm8,%xmm5
  subsd  %xmm7,%xmm11
  subsd  %xmm6,%xmm5
  movapd %xmm1,%xmm6
  subsd  0x20(%rsp),%xmm2
  subsd  %xmm7,%xmm6
  movsd  %xmm3,-0x18(%rsp)
  subsd  0x18(%rsp),%xmm1
  movsd  %xmm4,-0x10(%rsp)
  movsd  -0x10(%rsp),%xmm7
  movapd %xmm5,%xmm3
  movapd %xmm0,%xmm5
  subsd  0x8(%rsp),%xmm5
  mulsd  %xmm14,%xmm7
  movapd %xmm6,%xmm4
  movapd %xmm8,%xmm6
  mulsd  -0x18(%rsp),%xmm14
  subsd  0x10(%rsp),%xmm6
  subsd  0x20(%rsp),%xmm0
  movq   %xmm7,%rax
  movapd %xmm9,%xmm7
  mulsd  %xmm15,%xmm7
  movq   %rax,%xmm8
  mulsd  %xmm12,%xmm15
  mulsd  -0x18(%rsp),%xmm9
  mulsd  -0x10(%rsp),%xmm12
  subsd  %xmm7,%xmm8
  subsd  %xmm14,%xmm15
  movapd %xmm13,%xmm14
  mulsd  %xmm5,%xmm14
  mulsd  %xmm4,%xmm13
  movq   %xmm8,%rax
  subsd  %xmm12,%xmm9
  movsd  -0x8(%rsp),%xmm8
  movapd %xmm8,%xmm7
  mulsd  %xmm3,%xmm7
  cvttsd2si %xmm9,%ecx
  mulsd  %xmm11,%xmm3
  mulsd  %xmm4,%xmm8
  mulsd  %xmm5,%xmm11
  subsd  %xmm7,%xmm14
  movapd %xmm10,%xmm7
  subsd  %xmm13,%xmm3
  mulsd  %xmm0,%xmm7
  movapd %xmm2,%xmm13
  mulsd  %xmm1,%xmm13
  mulsd  -0x20(%rsp),%xmm0
  subsd  %xmm11,%xmm8
  mulsd  %xmm6,%xmm2
  mulsd  %xmm6,%xmm10
  mulsd  -0x20(%rsp),%xmm1
  cvttsd2si %xmm8,%esi
  subsd  %xmm7,%xmm13
  subsd  %xmm2,%xmm0
  subsd  %xmm1,%xmm10
  test   %ecx,%ecx
  js     L271
  test   %esi,%esi
  js     L91
  cvttsd2si %xmm13,%edi
  mov    $0x1,%edx
  test   %edi,%edi
  js     L230
L24:
  movq   %rax,%xmm1
  cvttsd2si %xmm14,%ecx
  cvttsd2si %xmm1,%eax
  test   %eax,%eax
  js     L67
  test   %ecx,%ecx
  js     L38
  cvttsd2si %xmm0,%esi
  test   %esi,%esi
  js     L234
  add    $0x1,%edx
L180:
  cvttsd2si %xmm15,%eax
  cvttsd2si %xmm3,%ecx
  test   %eax,%eax
  js     L145
  test   %ecx,%ecx
  js     L87
  cvttsd2si %xmm10,%esi
  test   %esi,%esi
  js     L229
  lea    0x1(%rdx),%ecx
L144:
  add    $0x3,%ecx
  mov    $0x41,%eax
  shr    %cl,%rax
  and    $0x1,%eax
  ret
  nopw   0x0(%rax,%rax,1)
L91:
  test   %ecx,%ecx
  je     L186
L254:
  xor    %edx,%edx
  jmp    L24
  nopl   0x0(%rax,%rax,1)
L230:
  test   %ecx,%ecx
  jne    L254
  nopl   0x0(%rax)
L271:
  xor    %edx,%edx
  test   %esi,%esi
  jg     L24
L186:
  cvttsd2si %xmm13,%edx
  test   %edx,%edx
  setle  %dl
  movzbl %dl,%edx
  neg    %edx
  jmp    L24
  cs nopw 0x0(%rax,%rax,1)
L145:
  xor    %eax,%eax
  test   %ecx,%ecx
  jle    L182
L267:
  ret
  nopw   0x0(%rax,%rax,1)
L67:
  test   %ecx,%ecx
  jg     L180
L190:
  cvttsd2si %xmm0,%eax
  test   %eax,%eax
  jg     L180
L75:
  sub    $0x1,%edx
  jmp    L180
  nopl   0x0(%rax)
L87:
  test   %eax,%eax
  je     L182
L35:
  xor    %eax,%eax
  ret
  nopw   0x0(%rax,%rax,1)
L38:
  test   %eax,%eax
  jne    L180
  jmp    L190
  nopw   0x0(%rax,%rax,1)
L234:
  test   %eax,%eax
  jne    L180
  test   %ecx,%ecx
  jne    L180
  jmp    L75
  nopw   0x0(%rax,%rax,1)
L229:
  test   %eax,%eax
  jne    L35
  test   %ecx,%ecx
  je     L197
  ret
  nopl   0x0(%rax)
L182:
  cvttsd2si %xmm10,%ecx
  xor    %eax,%eax
  test   %ecx,%ecx
  jg     L267
L197:
  lea    -0x1(%rdx),%ecx
  jmp    L144
```

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);
}
```