#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int compute_intervals_isectline(double *, double *, double *, double, double,
                                double, double, double, double, double, double,
                                double *, double *, double *, double *);
int coplanar_tri_tri(double *, double *, double *, double *, double *, double *,
                     double *);
int fabs(double);
int tri_tri_intersect_with_isectline(double V0[3], double V1[3], double V2[3],
                                     double U0[3], double U1[3], double U2[3],
                                     int *coplanar, double isectpt1[3],
                                     double isectpt2[3]) {
  double E1[3], E2[3];
  double N1[3], N2[3], d1, d2;
  double du0, du1, du2, dv0, dv1, dv2;
  double D[3];
  double isect1[2] = {0, 0}, isect2[2] = {0, 0};
  double isectpointA1[3] = {0, 0, 0}, isectpointA2[3] = {0, 0, 0};
  double isectpointB1[3] = {0, 0, 0}, isectpointB2[3] = {0, 0, 0};
  double du0du1, du0du2, dv0dv1, dv0dv2;
  short index;
  double vp0, vp1, vp2;
  double up0, up1, up2;
  double b, c, max;
  int smallest1, smallest2;
  E1[0] = V1[0] - V0[0];
  E1[1] = V1[1] - V0[1];
  E1[2] = V1[2] - V0[2];
  ;
  E2[0] = V2[0] - V0[0];
  E2[1] = V2[1] - V0[1];
  E2[2] = V2[2] - V0[2];
  ;
  N1[0] = E1[1] * E2[2] - E1[2] * E2[1];
  N1[1] = E1[2] * E2[0] - E1[0] * E2[2];
  N1[2] = E1[0] * E2[1] - E1[1] * E2[0];
  ;
  d1 = -(N1[0] * V0[0] + N1[1] * V0[1] + N1[2] * V0[2]);
  du0 = (N1[0] * U0[0] + N1[1] * U0[1] + N1[2] * U0[2]) + d1;
  du1 = (N1[0] * U1[0] + N1[1] * U1[1] + N1[2] * U1[2]) + d1;
  du2 = (N1[0] * U2[0] + N1[1] * U2[1] + N1[2] * U2[2]) + d1;
  if (fabs(du0) < 10e-6)
    du0 = 0.0;
  if (fabs(du1) < 10e-6)
    du1 = 0.0;
  if (fabs(du2) < 10e-6)
    du2 = 0.0;
  du0du1 = du0 * du1;
  du0du2 = du0 * du2;
  if (du0du1 > 0.0f && du0du2 > 0.0f)
    return 0;
  E1[0] = U1[0] - U0[0];
  E1[1] = U1[1] - U0[1];
  E1[2] = U1[2] - U0[2];
  ;
  E2[0] = U2[0] - U0[0];
  E2[1] = U2[1] - U0[1];
  E2[2] = U2[2] - U0[2];
  ;
  N2[0] = E1[1] * E2[2] - E1[2] * E2[1];
  N2[1] = E1[2] * E2[0] - E1[0] * E2[2];
  N2[2] = E1[0] * E2[1] - E1[1] * E2[0];
  ;
  d2 = -(N2[0] * U0[0] + N2[1] * U0[1] + N2[2] * U0[2]);
  dv0 = (N2[0] * V0[0] + N2[1] * V0[1] + N2[2] * V0[2]) + d2;
  dv1 = (N2[0] * V1[0] + N2[1] * V1[1] + N2[2] * V1[2]) + d2;
  dv2 = (N2[0] * V2[0] + N2[1] * V2[1] + N2[2] * V2[2]) + d2;
  if (fabs(dv0) < 10e-6)
    dv0 = 0.0;
  if (fabs(dv1) < 10e-6)
    dv1 = 0.0;
  if (fabs(dv2) < 10e-6)
    dv2 = 0.0;
  dv0dv1 = dv0 * dv1;
  dv0dv2 = dv0 * dv2;
  if (dv0dv1 > 0.0f && dv0dv2 > 0.0f)
    return 0;
  D[0] = N1[1] * N2[2] - N1[2] * N2[1];
  D[1] = N1[2] * N2[0] - N1[0] * N2[2];
  D[2] = N1[0] * N2[1] - N1[1] * N2[0];
  ;
  max = fabs(D[0]);
  index = 0;
  b = fabs(D[1]);
  c = fabs(D[2]);
  if (b > max)
    max = b, index = 1;
  if (c > max)
    max = c, index = 2;
  vp0 = V0[index];
  vp1 = V1[index];
  vp2 = V2[index];
  up0 = U0[index];
  up1 = U1[index];
  up2 = U2[index];
  *coplanar = compute_intervals_isectline(
      V0, V1, V2, vp0, vp1, vp2, dv0, dv1, dv2, dv0dv1, dv0dv2, &isect1[0],
      &isect1[1], isectpointA1, isectpointA2);
  if (*coplanar)
    return coplanar_tri_tri(N1, V0, V1, V2, U0, U1, U2);
  compute_intervals_isectline(U0, U1, U2, up0, up1, up2, du0, du1, du2, du0du1,
                              du0du2, &isect2[0], &isect2[1], isectpointB1,
                              isectpointB2);
  if (isect1[0] > isect1[1]) {
    double c;
    c = isect1[0];
    isect1[0] = isect1[1];
    isect1[1] = c;
    smallest1 = 1;
  } else
    smallest1 = 0;
  ;
  if (isect2[0] > isect2[1]) {
    double c;
    c = isect2[0];
    isect2[0] = isect2[1];
    isect2[1] = c;
    smallest2 = 1;
  } else
    smallest2 = 0;
  ;
  if (isect1[1] < isect2[0] || isect2[1] < isect1[0])
    return 0;
  if (isect2[0] < isect1[0]) {
    if (smallest1 == 0) {
      isectpt1[0] = isectpointA1[0];
      isectpt1[1] = isectpointA1[1];
      isectpt1[2] = isectpointA1[2];
      ;
    } else {
      isectpt1[0] = isectpointA2[0];
      isectpt1[1] = isectpointA2[1];
      isectpt1[2] = isectpointA2[2];
      ;
    }
    if (isect2[1] < isect1[1]) {
      if (smallest2 == 0) {
        isectpt2[0] = isectpointB2[0];
        isectpt2[1] = isectpointB2[1];
        isectpt2[2] = isectpointB2[2];
        ;
      } else {
        isectpt2[0] = isectpointB1[0];
        isectpt2[1] = isectpointB1[1];
        isectpt2[2] = isectpointB1[2];
        ;
      }
    } else {
      if (smallest1 == 0) {
        isectpt2[0] = isectpointA2[0];
        isectpt2[1] = isectpointA2[1];
        isectpt2[2] = isectpointA2[2];
        ;
      } else {
        isectpt2[0] = isectpointA1[0];
        isectpt2[1] = isectpointA1[1];
        isectpt2[2] = isectpointA1[2];
        ;
      }
    }
  } else {
    if (smallest2 == 0) {
      isectpt1[0] = isectpointB1[0];
      isectpt1[1] = isectpointB1[1];
      isectpt1[2] = isectpointB1[2];
      ;
    } else {
      isectpt1[0] = isectpointB2[0];
      isectpt1[1] = isectpointB2[1];
      isectpt1[2] = isectpointB2[2];
      ;
    }
    if (isect2[1] > isect1[1]) {
      if (smallest1 == 0) {
        isectpt2[0] = isectpointA2[0];
        isectpt2[1] = isectpointA2[1];
        isectpt2[2] = isectpointA2[2];
        ;
      } else {
        isectpt2[0] = isectpointA1[0];
        isectpt2[1] = isectpointA1[1];
        isectpt2[2] = isectpointA1[2];
        ;
      }
    } else {
      if (smallest2 == 0) {
        isectpt2[0] = isectpointB2[0];
        isectpt2[1] = isectpointB2[1];
        isectpt2[2] = isectpointB2[2];
        ;
      } else {
        isectpt2[0] = isectpointB1[0];
        isectpt2[1] = isectpointB1[1];
        isectpt2[2] = isectpointB1[2];
        ;
      }
    }
  }
  return 1;
}


x86 assembly (clang, -O0):
<tri_tri_intersect_with_isectline>:
push   %rbp
mov    %rsp,%rbp
sub    $0x240,%rsp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
lea    -0x120(%rbp),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1040 <memset@plt>
lea    -0x130(%rbp),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1040 <memset@plt>
lea    -0x150(%rbp),%rdi
xor    %esi,%esi
mov    $0x18,%edx
call   1040 <memset@plt>
lea    -0x170(%rbp),%rdi
xor    %esi,%esi
mov    $0x18,%edx
call   1040 <memset@plt>
lea    -0x190(%rbp),%rdi
xor    %esi,%esi
mov    $0x18,%edx
call   1040 <memset@plt>
lea    -0x1b0(%rbp),%rdi
xor    %esi,%esi
mov    $0x18,%edx
call   1040 <memset@plt>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
subsd  (%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
subsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x10(%rbp),%rax
subsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
subsd  (%rax),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
subsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x10(%rbp),%rax
subsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm1
mulsd  -0x68(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm1
mulsd  -0x60(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x50(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  -0x70(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x90(%rbp),%xmm1
ff
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm2
movsd  -0x88(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x80(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x90(%rbp),%xmm1
ff
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm2
movsd  -0x88(%rbp),%xmm0
ff
mov    -0x28(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x80(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  0x10(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x90(%rbp),%xmm1
ff
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm2
movsd  -0x88(%rbp),%xmm0
ff
mov    -0x30(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x80(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  0x10(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x90(%rbp),%xmm1
ff
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm2
movsd  -0x88(%rbp),%xmm0
ff
mov    -0x38(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x80(%rbp),%xmm0
mov    -0x38(%rbp),%rax
movsd  0x10(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0xc8(%rbp),%xmm0
ff
call   1050 <fabs@plt>
cvtsi2sd %eax,%xmm1
movsd  0x1b87(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    148e <tri_tri_intersect_with_isectline+0x34e>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0xd0(%rbp),%xmm0
ff
call   1050 <fabs@plt>
cvtsi2sd %eax,%xmm1
movsd  0x1b59(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    14bc <tri_tri_intersect_with_isectline+0x37c>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0xd8(%rbp),%xmm0
ff
call   1050 <fabs@plt>
cvtsi2sd %eax,%xmm1
movsd  0x1b2b(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    14ea <tri_tri_intersect_with_isectline+0x3aa>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0xc8(%rbp),%xmm0
ff
mulsd  -0xd0(%rbp),%xmm0
ff
movsd  %xmm0,-0x1b8(%rbp)
ff
movsd  -0xc8(%rbp),%xmm0
ff
mulsd  -0xd8(%rbp),%xmm0
ff
movsd  %xmm0,-0x1c0(%rbp)
ff
movsd  -0x1b8(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1550 <tri_tri_intersect_with_isectline+0x410>
movsd  -0x1c0(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1550 <tri_tri_intersect_with_isectline+0x410>
movl   $0x0,-0x4(%rbp)
jmp    2045 <tri_tri_intersect_with_isectline+0xf05>
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x28(%rbp),%rax
subsd  (%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x30(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x28(%rbp),%rax
subsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x30(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x28(%rbp),%rax
subsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x28(%rbp),%rax
subsd  (%rax),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x38(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x28(%rbp),%rax
subsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x38(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x28(%rbp),%rax
subsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm1
mulsd  -0x68(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm1
mulsd  -0x60(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x50(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  -0x70(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm1
ff
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm2
movsd  -0xa8(%rbp),%xmm0
ff
mov    -0x28(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0xa0(%rbp),%xmm0
ff
mov    -0x28(%rbp),%rax
movsd  0x10(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm1
ff
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm2
movsd  -0xa8(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0xa0(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0xc0(%rbp),%xmm0
ff
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm1
ff
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm2
movsd  -0xa8(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0xa0(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0xc0(%rbp),%xmm0
ff
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0xb0(%rbp),%xmm1
ff
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm2
movsd  -0xa8(%rbp),%xmm0
ff
mov    -0x20(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0xa0(%rbp),%xmm0
ff
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0xc0(%rbp),%xmm0
ff
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0xe0(%rbp),%xmm0
ff
call   1050 <fabs@plt>
cvtsi2sd %eax,%xmm1
movsd  0x1809(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    180c <tri_tri_intersect_with_isectline+0x6cc>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0xe8(%rbp),%xmm0
ff
call   1050 <fabs@plt>
cvtsi2sd %eax,%xmm1
movsd  0x17db(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    183a <tri_tri_intersect_with_isectline+0x6fa>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0xf0(%rbp),%xmm0
ff
call   1050 <fabs@plt>
cvtsi2sd %eax,%xmm1
movsd  0x17ad(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    1868 <tri_tri_intersect_with_isectline+0x728>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0xe0(%rbp),%xmm0
ff
mulsd  -0xe8(%rbp),%xmm0
ff
movsd  %xmm0,-0x1c8(%rbp)
ff
movsd  -0xe0(%rbp),%xmm0
ff
mulsd  -0xf0(%rbp),%xmm0
ff
movsd  %xmm0,-0x1d0(%rbp)
ff
movsd  -0x1c8(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    18ce <tri_tri_intersect_with_isectline+0x78e>
movsd  -0x1d0(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    18ce <tri_tri_intersect_with_isectline+0x78e>
movl   $0x0,-0x4(%rbp)
jmp    2045 <tri_tri_intersect_with_isectline+0xf05>
movsd  -0x88(%rbp),%xmm0
ff
movsd  -0xa0(%rbp),%xmm2
ff
movsd  -0x80(%rbp),%xmm1
mulsd  -0xa8(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x110(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
movsd  -0xb0(%rbp),%xmm2
ff
movsd  -0x90(%rbp),%xmm1
ff
mulsd  -0xa0(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0xa8(%rbp),%xmm2
ff
movsd  -0x88(%rbp),%xmm1
ff
mulsd  -0xb0(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0x110(%rbp),%xmm0
ff
call   1050 <fabs@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x220(%rbp)
ff
movw   $0x0,-0x1d2(%rbp)
movsd  -0x108(%rbp),%xmm0
ff
call   1050 <fabs@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x210(%rbp)
ff
movsd  -0x100(%rbp),%xmm0
ff
call   1050 <fabs@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x218(%rbp)
ff
movsd  -0x210(%rbp),%xmm0
ff
ucomisd -0x220(%rbp),%xmm0
jbe    1a20 <tri_tri_intersect_with_isectline+0x8e0>
movsd  -0x210(%rbp),%xmm0
ff
movsd  %xmm0,-0x220(%rbp)
ff
movw   $0x1,-0x1d2(%rbp)
movsd  -0x218(%rbp),%xmm0
ff
ucomisd -0x220(%rbp),%xmm0
ff
jbe    1a4f <tri_tri_intersect_with_isectline+0x90f>
movsd  -0x218(%rbp),%xmm0
ff
movsd  %xmm0,-0x220(%rbp)
ff
movw   $0x2,-0x1d2(%rbp)
mov    -0x10(%rbp),%rax
movswq -0x1d2(%rbp),%rcx
ff
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x1e0(%rbp)
ff
mov    -0x18(%rbp),%rax
movswq -0x1d2(%rbp),%rcx
ff
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x1e8(%rbp)
ff
mov    -0x20(%rbp),%rax
movswq -0x1d2(%rbp),%rcx
ff
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x1f0(%rbp)
ff
mov    -0x28(%rbp),%rax
movswq -0x1d2(%rbp),%rcx
ff
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x1f8(%rbp)
ff
mov    -0x30(%rbp),%rax
movswq -0x1d2(%rbp),%rcx
ff
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x200(%rbp)
ff
mov    -0x38(%rbp),%rax
movswq -0x1d2(%rbp),%rcx
ff
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x208(%rbp)
ff
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
movsd  -0x1e0(%rbp),%xmm0
ff
movsd  -0x1e8(%rbp),%xmm1
movsd  -0x1f0(%rbp),%xmm2
ff
movsd  -0xe0(%rbp),%xmm3
ff
movsd  -0xe8(%rbp),%xmm4
ff
movsd  -0xf0(%rbp),%xmm5
ff
movsd  -0x1c8(%rbp),%xmm6
ff
movsd  -0x1d0(%rbp),%xmm7
ff
lea    -0x120(%rbp),%rcx
lea    -0x120(%rbp),%r8
add    $0x8,%r8
lea    -0x150(%rbp),%r9
lea    -0x170(%rbp),%rax
mov    %rax,(%rsp)
call   1060 <compute_intervals_isectline@plt>
mov    %eax,%ecx
mov    0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    0x10(%rbp),%rax
cmpl   $0x0,(%rax)
je     1b9f <tri_tri_intersect_with_isectline+0xa5f>
lea    -0x90(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%r9
mov    -0x38(%rbp),%rax
mov    %rax,(%rsp)
call   1030 <coplanar_tri_tri@plt>
mov    %eax,-0x4(%rbp)
jmp    2045 <tri_tri_intersect_with_isectline+0xf05>
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
movsd  -0x1f8(%rbp),%xmm0
ff
movsd  -0x200(%rbp),%xmm1
ff
movsd  -0x208(%rbp),%xmm2
ff
movsd  -0xc8(%rbp),%xmm3
ff
movsd  -0xd0(%rbp),%xmm4
ff
movsd  -0xd8(%rbp),%xmm5
ff
movsd  -0x1b8(%rbp),%xmm6
ff
movsd  -0x1c0(%rbp),%xmm7
ff
lea    -0x130(%rbp),%rcx
lea    -0x130(%rbp),%r8
add    $0x8,%r8
lea    -0x190(%rbp),%r9
lea    -0x1b0(%rbp),%rax
mov    %rax,(%rsp)
call   1060 <compute_intervals_isectline@plt>
movsd  -0x120(%rbp),%xmm0
ff
ucomisd -0x118(%rbp),%xmm0
ff
jbe    1c69 <tri_tri_intersect_with_isectline+0xb29>
movsd  -0x120(%rbp),%xmm0
ff
movsd  %xmm0,-0x230(%rbp)
ff
movsd  -0x118(%rbp),%xmm0
ff
movsd  %xmm0,-0x120(%rbp)
ff
movsd  -0x230(%rbp),%xmm0
ff
movsd  %xmm0,-0x118(%rbp)
ff
movl   $0x1,-0x224(%rbp)
jmp    1c73 <tri_tri_intersect_with_isectline+0xb33>
movl   $0x0,-0x224(%rbp)
movsd  -0x130(%rbp),%xmm0
ff
ucomisd -0x128(%rbp),%xmm0
ff
jbe    1cc8 <tri_tri_intersect_with_isectline+0xb88>
movsd  -0x130(%rbp),%xmm0
ff
movsd  %xmm0,-0x238(%rbp)
ff
movsd  -0x128(%rbp),%xmm0
ff
movsd  %xmm0,-0x130(%rbp)
ff
movsd  -0x238(%rbp),%xmm0
ff
movsd  %xmm0,-0x128(%rbp)
ff
movl   $0x1,-0x228(%rbp)
jmp    1cd2 <tri_tri_intersect_with_isectline+0xb92>
movl   $0x0,-0x228(%rbp)
movsd  -0x118(%rbp),%xmm1
ff
movsd  -0x130(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
ja     1d06 <tri_tri_intersect_with_isectline+0xbc6>
movsd  -0x128(%rbp),%xmm1
ff
movsd  -0x120(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    1d12 <tri_tri_intersect_with_isectline+0xbd2>
movl   $0x0,-0x4(%rbp)
jmp    2045 <tri_tri_intersect_with_isectline+0xf05>
movsd  -0x130(%rbp),%xmm1
ff
movsd  -0x120(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    1eb7 <tri_tri_intersect_with_isectline+0xd77>
cmpl   $0x0,-0x224(%rbp)
jne    1d70 <tri_tri_intersect_with_isectline+0xc30>
movsd  -0x150(%rbp),%xmm0
ff
mov    0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x148(%rbp),%xmm0
ff
mov    0x18(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x140(%rbp),%xmm0
ff
mov    0x18(%rbp),%rax
movsd  %xmm0,0x10(%rax)
jmp    1da2 <tri_tri_intersect_with_isectline+0xc62>
movsd  -0x170(%rbp),%xmm0
ff
mov    0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x168(%rbp),%xmm0
ff
mov    0x18(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x160(%rbp),%xmm0
ff
mov    0x18(%rbp),%rax
movsd  %xmm0,0x10(%rax)
movsd  -0x128(%rbp),%xmm1
ff
movsd  -0x118(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    1e37 <tri_tri_intersect_with_isectline+0xcf7>
cmpl   $0x0,-0x228(%rbp)
jne    1e00 <tri_tri_intersect_with_isectline+0xcc0>
movsd  -0x1b0(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x1a8(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x1a0(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
jmp    1e32 <tri_tri_intersect_with_isectline+0xcf2>
movsd  -0x190(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x188(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x180(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
jmp    1eb2 <tri_tri_intersect_with_isectline+0xd72>
cmpl   $0x0,-0x224(%rbp)
jne    1e7b <tri_tri_intersect_with_isectline+0xd3b>
movsd  -0x170(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x168(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x160(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
jmp    1ead <tri_tri_intersect_with_isectline+0xd6d>
movsd  -0x150(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x148(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x140(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
jmp    1eb2 <tri_tri_intersect_with_isectline+0xd72>
jmp    203e <tri_tri_intersect_with_isectline+0xefe>
cmpl   $0x0,-0x228(%rbp)
jne    1efb <tri_tri_intersect_with_isectline+0xdbb>
movsd  -0x190(%rbp),%xmm0
ff
mov    0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x188(%rbp),%xmm0
ff
mov    0x18(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x180(%rbp),%xmm0
ff
mov    0x18(%rbp),%rax
movsd  %xmm0,0x10(%rax)
jmp    1f2d <tri_tri_intersect_with_isectline+0xded>
movsd  -0x1b0(%rbp),%xmm0
ff
mov    0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x1a8(%rbp),%xmm0
ff
mov    0x18(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x1a0(%rbp),%xmm0
ff
mov    0x18(%rbp),%rax
movsd  %xmm0,0x10(%rax)
movsd  -0x128(%rbp),%xmm0
ff
ucomisd -0x118(%rbp),%xmm0
ff
jbe    1fbe <tri_tri_intersect_with_isectline+0xe7e>
cmpl   $0x0,-0x224(%rbp)
jne    1f87 <tri_tri_intersect_with_isectline+0xe47>
movsd  -0x170(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x168(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x160(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
jmp    1fb9 <tri_tri_intersect_with_isectline+0xe79>
movsd  -0x150(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x148(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x140(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
jmp    2039 <tri_tri_intersect_with_isectline+0xef9>
cmpl   $0x0,-0x228(%rbp)
jne    2002 <tri_tri_intersect_with_isectline+0xec2>
movsd  -0x1b0(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x1a8(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x1a0(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
jmp    2034 <tri_tri_intersect_with_isectline+0xef4>
movsd  -0x190(%rbp),%xmm0
mov    0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x188(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x180(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
jmp    2039 <tri_tri_intersect_with_isectline+0xef9>
jmp    203e <tri_tri_intersect_with_isectline+0xefe>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x240,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tri_tri_intersect_with_isectline>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1d8,%rsp
mov    %r9,%r12
mov    %r8,%r14
mov    %rcx,%r15
mov    %rdx,%rbx
mov    %rdi,%rbp
xorps  %xmm0,%xmm0
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x110(%rsp)
movq   $0x0,0x120(%rsp)
movaps %xmm0,0xf0(%rsp)
movq   $0x0,0x100(%rsp)
movaps %xmm0,0xd0(%rsp)
movq   $0x0,0xe0(%rsp)
movaps %xmm0,0xb0(%rsp)
movq   $0x0,0xc0(%rsp)
movsd  (%rsi),%xmm1
movsd  (%rdi),%xmm0
subsd  %xmm0,%xmm1
mov    %rsi,0x148(%rsp)
movupd 0x8(%rsi),%xmm2
movupd 0x8(%rdi),%xmm8
subpd  %xmm8,%xmm2
movsd  0x8(%rdx),%xmm5
subsd  %xmm8,%xmm5
movsd  (%rdx),%xmm3
movhpd 0x10(%rdx),%xmm3
movapd %xmm8,%xmm4
movsd  %xmm0,%xmm4
subpd  %xmm4,%xmm3
movapd %xmm3,%xmm6
shufpd $0x1,%xmm3,%xmm6
movapd %xmm3,%xmm4
mulpd  %xmm2,%xmm6
mulsd  %xmm2,%xmm3
shufpd $0x1,%xmm1,%xmm2
movsd  %xmm5,%xmm4
mulpd  %xmm2,%xmm4
subpd  %xmm4,%xmm6
movapd %xmm6,0x1c0(%rsp)
mulsd  %xmm1,%xmm5
subsd  %xmm3,%xmm5
movsd  %xmm5,0x1d0(%rsp)
movapd %xmm6,%xmm7
unpckhpd %xmm6,%xmm7
movsd  (%r8),%xmm1
movsd  0x8(%r8),%xmm2
unpcklpd %xmm8,%xmm2
mulpd  %xmm7,%xmm2
movapd %xmm6,0x90(%rsp)
movapd %xmm6,%xmm3
unpcklpd %xmm6,%xmm3
unpcklpd %xmm0,%xmm1
mulpd  %xmm3,%xmm1
addpd  %xmm2,%xmm1
movapd %xmm5,0x30(%rsp)
movlpd 0x10(%r8),%xmm8
unpcklpd %xmm5,%xmm5
mulpd  %xmm5,%xmm8
addpd  %xmm1,%xmm8
movapd %xmm8,%xmm1
unpckhpd %xmm8,%xmm1
subsd  %xmm1,%xmm8
movapd %xmm8,0xa0(%rsp)
movsd  (%rcx),%xmm2
movsd  0x8(%rcx),%xmm4
movsd  0x10(%rcx),%xmm0
movhpd 0x8(%r9),%xmm4
movhpd (%r9),%xmm2
movapd %xmm7,0x130(%rsp)
mulpd  %xmm7,%xmm4
mulpd  %xmm3,%xmm2
movhpd 0x10(%r9),%xmm0
addpd  %xmm4,%xmm2
mulpd  %xmm5,%xmm0
addpd  %xmm2,%xmm0
subpd  %xmm1,%xmm0
movapd %xmm0,0x10(%rsp)
call   1040 <fabs@plt>
mov    %eax,%r13d
movaps 0xa0(%rsp),%xmm0
call   1040 <fabs@plt>
xorps  %xmm0,%xmm0
test   %eax,%eax
jle    1307 <tri_tri_intersect_with_isectline+0x1d7>
movaps 0xa0(%rsp),%xmm0
movsd  %xmm0,0xa0(%rsp)
movaps 0x10(%rsp),%xmm0
movhlps %xmm0,%xmm0
call   1040 <fabs@plt>
movd   %r13d,%xmm0
movd   %eax,%xmm1
punpckldq %xmm1,%xmm0
movdqa 0xcce(%rip),%xmm1
pcmpgtd %xmm0,%xmm1
pxor   %xmm0,%xmm0
pcmpgtd %xmm1,%xmm0
punpckldq %xmm0,%xmm1
pandn  0x10(%rsp),%xmm1
movdqa %xmm1,%xmm2
mulsd  0xa0(%rsp),%xmm2
pshufd $0xee,%xmm1,%xmm4
movdqa %xmm1,%xmm3
mulsd  %xmm4,%xmm3
xor    %eax,%eax
ucomisd 0xca4(%rip),%xmm2
jbe    137c <tri_tri_intersect_with_isectline+0x24c>
pxor   %xmm0,%xmm0
ucomisd %xmm0,%xmm3
ja     194f <tri_tri_intersect_with_isectline+0x81f>
movaps %xmm4,0x150(%rsp)
movapd %xmm3,0x160(%rsp)
movapd %xmm2,0x170(%rsp)
movdqa %xmm1,0x180(%rsp)
movsd  (%r14),%xmm3
movsd  0x8(%r14),%xmm4
movsd  (%r15),%xmm1
movsd  0x8(%r15),%xmm2
subsd  %xmm1,%xmm3
subsd  %xmm2,%xmm4
movsd  0x10(%r14),%xmm7
movsd  0x10(%r15),%xmm8
subsd  %xmm8,%xmm7
movsd  (%r12),%xmm5
movsd  0x8(%r12),%xmm9
subsd  %xmm1,%xmm5
subsd  %xmm2,%xmm9
movsd  0x10(%r12),%xmm6
subsd  %xmm8,%xmm6
movapd %xmm9,%xmm0
mulsd  %xmm7,%xmm0
mulsd  %xmm5,%xmm7
mulsd  %xmm4,%xmm5
movapd %xmm4,%xmm10
mulsd  %xmm6,%xmm10
subsd  %xmm0,%xmm10
mulsd  %xmm3,%xmm6
subsd  %xmm6,%xmm7
mulsd  %xmm3,%xmm9
subsd  %xmm5,%xmm9
movsd  0x0(%rbp),%xmm3
movsd  0x8(%rbp),%xmm4
movsd  0x10(%rbp),%xmm0
unpcklpd %xmm2,%xmm4
movapd %xmm7,%xmm2
unpcklpd %xmm7,%xmm2
mulpd  %xmm4,%xmm2
movapd %xmm10,%xmm4
unpcklpd %xmm10,%xmm4
unpcklpd %xmm1,%xmm3
mulpd  %xmm4,%xmm3
addpd  %xmm2,%xmm3
movapd %xmm9,%xmm1
unpcklpd %xmm9,%xmm1
unpcklpd %xmm8,%xmm0
mulpd  %xmm1,%xmm0
addpd  %xmm3,%xmm0
movapd %xmm0,%xmm3
unpckhpd %xmm0,%xmm3
subsd  %xmm3,%xmm0
mov    0x148(%rsp),%r13
movsd  0x8(%r13),%xmm2
mulsd  %xmm7,%xmm2
movsd  0x0(%r13),%xmm1
mulsd  %xmm10,%xmm1
addsd  %xmm2,%xmm1
movsd  0x10(%r13),%xmm2
mulsd  %xmm9,%xmm2
addsd  %xmm1,%xmm2
movapd %xmm3,0x80(%rsp)
subsd  %xmm3,%xmm2
movsd  %xmm2,0x28(%rsp)
movsd  0x8(%rbx),%xmm2
movapd %xmm7,0x70(%rsp)
mulsd  %xmm7,%xmm2
movsd  (%rbx),%xmm1
movapd %xmm10,0x1a0(%rsp)
mulsd  %xmm10,%xmm1
addsd  %xmm2,%xmm1
movsd  0x10(%rbx),%xmm2
movapd %xmm9,0x1b0(%rsp)
mulsd  %xmm9,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x10(%rsp)
movapd %xmm0,0x190(%rsp)
call   1040 <fabs@plt>
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x48(%rsp)
test   %eax,%eax
jle    152c <tri_tri_intersect_with_isectline+0x3fc>
movapd 0x190(%rsp),%xmm0
movsd  %xmm0,0x48(%rsp)
movsd  0x10(%rsp),%xmm0
subsd  0x80(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x28(%rsp),%xmm0
call   1040 <fabs@plt>
xorps  %xmm0,%xmm0
movsd  %xmm0,0x80(%rsp)
test   %eax,%eax
jle    156b <tri_tri_intersect_with_isectline+0x43b>
movsd  0x28(%rsp),%xmm0
movsd  %xmm0,0x80(%rsp)
movsd  0x10(%rsp),%xmm0
call   1040 <fabs@plt>
xorpd  %xmm5,%xmm5
test   %eax,%eax
jle    1584 <tri_tri_intersect_with_isectline+0x454>
movsd  0x10(%rsp),%xmm5
movsd  0x48(%rsp),%xmm0
movapd %xmm0,%xmm6
mulsd  0x80(%rsp),%xmm6
movapd %xmm0,%xmm7
mulsd  %xmm5,%xmm7
ucomisd 0xa69(%rip),%xmm6
jbe    15ba <tri_tri_intersect_with_isectline+0x48a>
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm7
jbe    15ba <tri_tri_intersect_with_isectline+0x48a>
xor    %eax,%eax
jmp    194f <tri_tri_intersect_with_isectline+0x81f>
movapd 0x70(%rsp),%xmm8
movapd %xmm8,%xmm1
movapd 0x30(%rsp),%xmm3
mulsd  %xmm3,%xmm1
movapd 0x130(%rsp),%xmm9
movapd %xmm9,%xmm0
movapd 0x1b0(%rsp),%xmm4
mulsd  %xmm4,%xmm0
subsd  %xmm1,%xmm0
movapd 0x90(%rsp),%xmm2
mulsd  %xmm2,%xmm4
movapd 0x1a0(%rsp),%xmm1
mulsd  %xmm1,%xmm3
subsd  %xmm4,%xmm3
movapd %xmm3,0x30(%rsp)
mulsd  %xmm9,%xmm1
mulsd  %xmm8,%xmm2
subsd  %xmm1,%xmm2
movapd %xmm2,0x90(%rsp)
movsd  %xmm5,0x28(%rsp)
movsd  %xmm6,0x130(%rsp)
movsd  %xmm7,0x10(%rsp)
call   1040 <fabs@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x70(%rsp)
movaps 0x30(%rsp),%xmm0
call   1040 <fabs@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x30(%rsp)
movaps 0x90(%rsp),%xmm0
call   1040 <fabs@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
xor    %eax,%eax
movsd  0x70(%rsp),%xmm1
movsd  0x30(%rsp),%xmm2
ucomisd %xmm1,%xmm2
seta   %al
maxsd  %xmm1,%xmm2
ucomisd %xmm2,%xmm0
mov    $0x2,%ecx
cmovbe %rax,%rcx
movsd  0x0(%rbp,%rcx,8),%xmm0
movsd  0x0(%r13,%rcx,8),%xmm1
movsd  (%rbx,%rcx,8),%xmm2
movsd  (%r15,%rcx,8),%xmm3
movsd  %xmm3,0x30(%rsp)
movsd  (%r14,%rcx,8),%xmm3
movsd  %xmm3,0x90(%rsp)
movsd  (%r12,%rcx,8),%xmm3
movsd  %xmm3,0x70(%rsp)
lea    0x68(%rsp),%r8
lea    0xf0(%rsp),%rax
mov    %rax,(%rsp)
lea    0x60(%rsp),%rcx
lea    0x110(%rsp),%r9
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %rbx,%rdx
movsd  0x48(%rsp),%xmm3
movsd  0x80(%rsp),%xmm4
movsd  0x28(%rsp),%xmm5
movsd  0x130(%rsp),%xmm6
movsd  0x10(%rsp),%xmm7
call   1050 <compute_intervals_isectline@plt>
mov    0x210(%rsp),%rcx
mov    %eax,(%rcx)
test   %eax,%eax
je     175f <tri_tri_intersect_with_isectline+0x62f>
mov    %r12,(%rsp)
lea    0x1c0(%rsp),%rdi
mov    %rbp,%rsi
mov    %r13,%rdx
mov    %rbx,%rcx
mov    %r15,%r8
mov    %r14,%r9
call   1030 <coplanar_tri_tri@plt>
jmp    194f <tri_tri_intersect_with_isectline+0x81f>
lea    0x58(%rsp),%r8
lea    0xb0(%rsp),%rax
mov    %rax,(%rsp)
lea    0x50(%rsp),%rcx
lea    0xd0(%rsp),%r9
mov    %r15,%rdi
mov    %r14,%rsi
mov    %r12,%rdx
movsd  0x30(%rsp),%xmm0
movsd  0x90(%rsp),%xmm1
movsd  0x70(%rsp),%xmm2
movaps 0x180(%rsp),%xmm3
movsd  0xa0(%rsp),%xmm4
movaps 0x150(%rsp),%xmm5
movaps 0x170(%rsp),%xmm6
movaps 0x160(%rsp),%xmm7
call   1050 <compute_intervals_isectline@plt>
movsd  0x60(%rsp),%xmm0
movsd  0x68(%rsp),%xmm1
ucomisd %xmm1,%xmm0
movapd %xmm0,%xmm6
movapd %xmm1,%xmm2
jbe    17f7 <tri_tri_intersect_with_isectline+0x6c7>
movsd  %xmm1,0x60(%rsp)
movsd  %xmm0,0x68(%rsp)
movapd %xmm1,%xmm6
movapd %xmm0,%xmm2
movsd  0x50(%rsp),%xmm4
movsd  0x58(%rsp),%xmm5
ucomisd %xmm5,%xmm4
movapd %xmm5,%xmm3
movapd %xmm4,%xmm7
mov    $0x0,%eax
jbe    182a <tri_tri_intersect_with_isectline+0x6fa>
movsd  %xmm5,0x50(%rsp)
movsd  %xmm4,0x58(%rsp)
movapd %xmm4,%xmm3
movapd %xmm5,%xmm7
ucomisd %xmm2,%xmm7
ja     194f <tri_tri_intersect_with_isectline+0x81f>
ucomisd %xmm3,%xmm6
ja     194f <tri_tri_intersect_with_isectline+0x81f>
mov    0x220(%rsp),%rax
mov    0x218(%rsp),%rcx
ucomisd %xmm7,%xmm6
jbe    187e <tri_tri_intersect_with_isectline+0x74e>
ucomisd %xmm1,%xmm0
jbe    18a5 <tri_tri_intersect_with_isectline+0x775>
movaps 0xf0(%rsp),%xmm0
movups %xmm0,(%rcx)
movsd  0x100(%rsp),%xmm0
movsd  %xmm0,0x10(%rcx)
ucomisd %xmm3,%xmm2
ja     18c4 <tri_tri_intersect_with_isectline+0x794>
jmp    1905 <tri_tri_intersect_with_isectline+0x7d5>
ucomisd %xmm5,%xmm4
jbe    18e0 <tri_tri_intersect_with_isectline+0x7b0>
movaps 0xb0(%rsp),%xmm4
movups %xmm4,(%rcx)
movsd  0xc0(%rsp),%xmm4
movsd  %xmm4,0x10(%rcx)
ucomisd %xmm2,%xmm3
jbe    18ca <tri_tri_intersect_with_isectline+0x79a>
jmp    18ff <tri_tri_intersect_with_isectline+0x7cf>
movaps 0x110(%rsp),%xmm0
movups %xmm0,(%rcx)
movsd  0x120(%rsp),%xmm0
movsd  %xmm0,0x10(%rcx)
ucomisd %xmm3,%xmm2
jbe    1931 <tri_tri_intersect_with_isectline+0x801>
ucomisd %xmm5,%xmm4
jbe    191b <tri_tri_intersect_with_isectline+0x7eb>
movaps 0xd0(%rsp),%xmm0
movups %xmm0,(%rax)
movsd  0xe0(%rsp),%xmm0
jmp    1945 <tri_tri_intersect_with_isectline+0x815>
movaps 0xd0(%rsp),%xmm4
movups %xmm4,(%rcx)
movsd  0xe0(%rsp),%xmm4
movsd  %xmm4,0x10(%rcx)
ucomisd %xmm2,%xmm3
jbe    191b <tri_tri_intersect_with_isectline+0x7eb>
ucomisd %xmm1,%xmm0
jbe    1931 <tri_tri_intersect_with_isectline+0x801>
movaps 0x110(%rsp),%xmm0
movups %xmm0,(%rax)
movsd  0x120(%rsp),%xmm0
jmp    1945 <tri_tri_intersect_with_isectline+0x815>
movaps 0xb0(%rsp),%xmm0
movups %xmm0,(%rax)
movsd  0xc0(%rsp),%xmm0
jmp    1945 <tri_tri_intersect_with_isectline+0x815>
movaps 0xf0(%rsp),%xmm0
movups %xmm0,(%rax)
movsd  0x100(%rsp),%xmm0
movsd  %xmm0,0x10(%rax)
mov    $0x1,%eax
add    $0x1d8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @tri_tri_intersect_with_isectline(double* %0, double* %1, double* %2, double* %3, double* %4, double* %5, i32* %6, double* %7, double* %8) {
%10 = alloca i32
%11 = alloca double*
%12 = alloca double*
%13 = alloca double*
%14 = alloca double*
%15 = alloca double*
%16 = alloca double*
%17 = alloca i32*
%18 = alloca double*
%19 = alloca double*
%20 = alloca [3 x double]
%21 = alloca [3 x double]
%22 = alloca [3 x double]
%23 = alloca [3 x double]
%24 = alloca double
%25 = alloca double
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca double
%30 = alloca double
%31 = alloca double
%32 = alloca [3 x double]
%33 = alloca [2 x double]
%34 = alloca [2 x double]
%35 = alloca [3 x double]
%36 = alloca [3 x double]
%37 = alloca [3 x double]
%38 = alloca [3 x double]
%39 = alloca double
%40 = alloca double
%41 = alloca double
%42 = alloca double
%43 = alloca i16
%44 = alloca double
%45 = alloca double
%46 = alloca double
%47 = alloca double
%48 = alloca double
%49 = alloca double
%50 = alloca double
%51 = alloca double
%52 = alloca double
%53 = alloca i32
%54 = alloca i32
%55 = alloca double
%56 = alloca double
store double* %0, double** %11
store double* %1, double** %12
store double* %2, double** %13
store double* %3, double** %14
store double* %4, double** %15
store double* %5, double** %16
store i32* %6, i32** %17
store double* %7, double** %18
store double* %8, double** %19
%57 = bitcast [2 x double]* %33 to i8*
%58 = bitcast [2 x double]* %34 to i8*
%59 = bitcast [3 x double]* %35 to i8*
%60 = bitcast [3 x double]* %36 to i8*
%61 = bitcast [3 x double]* %37 to i8*
%62 = bitcast [3 x double]* %38 to i8*
%63 = load double*, double** %12
%64 = getelementptr inbounds double, double* %63, i64 0
%65 = load double, double* %64
%66 = load double*, double** %11
%67 = getelementptr inbounds double, double* %66, i64 0
%68 = load double, double* %67
%69 = fsub double %65, %68
%70 = getelementptr inbounds [3 x double], [3 x double]* %20, i64 0, i64 0
store double %69, double* %70
%71 = load double*, double** %12
%72 = getelementptr inbounds double, double* %71, i64 1
%73 = load double, double* %72
%74 = load double*, double** %11
%75 = getelementptr inbounds double, double* %74, i64 1
%76 = load double, double* %75
%77 = fsub double %73, %76
%78 = getelementptr inbounds [3 x double], [3 x double]* %20, i64 0, i64 1
store double %77, double* %78
%79 = load double*, double** %12
%80 = getelementptr inbounds double, double* %79, i64 2
%81 = load double, double* %80
%82 = load double*, double** %11
%83 = getelementptr inbounds double, double* %82, i64 2
%84 = load double, double* %83
%85 = fsub double %81, %84
%86 = getelementptr inbounds [3 x double], [3 x double]* %20, i64 0, i64 2
store double %85, double* %86
%87 = load double*, double** %13
%88 = getelementptr inbounds double, double* %87, i64 0
%89 = load double, double* %88
%90 = load double*, double** %11
%91 = getelementptr inbounds double, double* %90, i64 0
%92 = load double, double* %91
%93 = fsub double %89, %92
%94 = getelementptr inbounds [3 x double], [3 x double]* %21, i64 0, i64 0
store double %93, double* %94
%95 = load double*, double** %13
%96 = getelementptr inbounds double, double* %95, i64 1
%97 = load double, double* %96
%98 = load double*, double** %11
%99 = getelementptr inbounds double, double* %98, i64 1
%100 = load double, double* %99
%101 = fsub double %97, %100
%102 = getelementptr inbounds [3 x double], [3 x double]* %21, i64 0, i64 1
store double %101, double* %102
%103 = load double*, double** %13
%104 = getelementptr inbounds double, double* %103, i64 2
%105 = load double, double* %104
%106 = load double*, double** %11
%107 = getelementptr inbounds double, double* %106, i64 2
%108 = load double, double* %107
%109 = fsub double %105, %108
%110 = getelementptr inbounds [3 x double], [3 x double]* %21, i64 0, i64 2
store double %109, double* %110
%111 = getelementptr inbounds [3 x double], [3 x double]* %20, i64 0, i64 1
%112 = load double, double* %111
%113 = getelementptr inbounds [3 x double], [3 x double]* %21, i64 0, i64 2
%114 = load double, double* %113
%115 = getelementptr inbounds [3 x double], [3 x double]* %20, i64 0, i64 2
%116 = load double, double* %115
%117 = getelementptr inbounds [3 x double], [3 x double]* %21, i64 0, i64 1
%118 = load double, double* %117
%119 = fmul double %116, %118
%120 = fneg double %119
%121 = call double @llvm.fmuladd.f64(double %112, double %114, double %120)
%122 = getelementptr inbounds [3 x double], [3 x double]* %22, i64 0, i64 0
store double %121, double* %122
%123 = getelementptr inbounds [3 x double], [3 x double]* %20, i64 0, i64 2
%124 = load double, double* %123
%125 = getelementptr inbounds [3 x double], [3 x double]* %21, i64 0, i64 0
%126 = load double, double* %125
%127 = getelementptr inbounds [3 x double], [3 x double]* %20, i64 0, i64 0
%128 = load double, double* %127
%129 = getelementptr inbounds [3 x double], [3 x double]* %21, i64 0, i64 2
%130 = load double, double* %129
%131 = fmul double %128, %130
%132 = fneg double %131
%133 = call double @llvm.fmuladd.f64(double %124, double %126, double %132)
%134 = getelementptr inbounds [3 x double], [3 x double]* %22, i64 0, i64 1
store double %133, double* %134
%135 = getelementptr inbounds [3 x double], [3 x double]* %20, i64 0, i64 0
%136 = load double, double* %135
%137 = getelementptr inbounds [3 x double], [3 x double]* %21, i64 0, i64 1
%138 = load double, double* %137
%139 = getelementptr inbounds [3 x double], [3 x double]* %20, i64 0, i64 1
%140 = load double, double* %139
%141 = getelementptr inbounds [3 x double], [3 x double]* %21, i64 0, i64 0
%142 = load double, double* %141
%143 = fmul double %140, %142
%144 = fneg double %143
%145 = call double @llvm.fmuladd.f64(double %136, double %138, double %144)
%146 = getelementptr inbounds [3 x double], [3 x double]* %22, i64 0, i64 2
store double %145, double* %146
%147 = getelementptr inbounds [3 x double], [3 x double]* %22, i64 0, i64 0
%148 = load double, double* %147
%149 = load double*, double** %11
%150 = getelementptr inbounds double, double* %149, i64 0
%151 = load double, double* %150
%152 = getelementptr inbounds [3 x double], [3 x double]* %22, i64 0, i64 1
%153 = load double, double* %152
%154 = load double*, double** %11
%155 = getelementptr inbounds double, double* %154, i64 1
%156 = load double, double* %155
%157 = fmul double %153, %156
%158 = call double @llvm.fmuladd.f64(double %148, double %151, double %157)
%159 = getelementptr inbounds [3 x double], [3 x double]* %22, i64 0, i64 2
%160 = load double, double* %159
%161 = load double*, double** %11
%162 = getelementptr inbounds double, double* %161, i64 2
%163 = load double, double* %162
%164 = call double @llvm.fmuladd.f64(double %160, double %163, double %158)
%165 = fneg double %164
store double %165, double* %24
%166 = getelementptr inbounds [3 x double], [3 x double]* %22, i64 0, i64 0
%167 = load double, double* %166
%168 = load double*, double** %14
%169 = getelementptr inbounds double, double* %168, i64 0
%170 = load double, double* %169
%171 = getelementptr inbounds [3 x double], [3 x double]* %22, i64 0, i64 1
%172 = load double, double* %171
%173 = load double*, double** %14
%174 = getelementptr inbounds double, double* %173, i64 1
%175 = load double, double* %174
%176 = fmul double %172, %175
%177 = call double @llvm.fmuladd.f64(double %167, double %170, double %176)
%178 = getelementptr inbounds [3 x double], [3 x double]* %22, i64 0, i64 2
%179 = load double, double* %178
%180 = load double*, double** %14
%181 = getelementptr inbounds double, double* %180, i64 2
%182 = load double, double* %181
%183 = call double @llvm.fmuladd.f64(double %179, double %182, double %177)
%184 = load double, double* %24
%185 = fadd double %183, %184
store double %185, double* %26
%186 = getelementptr inbounds [3 x double], [3 x double]* %22, i64 0, i64 0
%187 = load double, double* %186
%188 = load double*, double** %15
%189 = getelementptr inbounds double, double* %188, i64 0
%190 = load double, double* %189
%191 = getelementptr inbounds [3 x double], [3 x double]* %22, i64 0, i64 1
%192 = load double, double* %191
%193 = load double*, double** %15
%194 = getelementptr inbounds double, double* %193, i64 1
%195 = load double, double* %194
%196 = fmul double %192, %195
%197 = call double @llvm.fmuladd.f64(double %187, double %190, double %196)
%198 = getelementptr inbounds [3 x double], [3 x double]* %22, i64 0, i64 2
%199 = load double, double* %198
%200 = load double*, double** %15
%201 = getelementptr inbounds double, double* %200, i64 2
%202 = load double, double* %201
%203 = call double @llvm.fmuladd.f64(double %199, double %202, double %197)
%204 = load double, double* %24
%205 = fadd double %203, %204
store double %205, double* %27
%206 = getelementptr inbounds [3 x double], [3 x double]* %22, i64 0, i64 0
%207 = load double, double* %206
%208 = load double*, double** %16
%209 = getelementptr inbounds double, double* %208, i64 0
%210 = load double, double* %209
%211 = getelementptr inbounds [3 x double], [3 x double]* %22, i64 0, i64 1
%212 = load double, double* %211
%213 = load double*, double** %16
%214 = getelementptr inbounds double, double* %213, i64 1
%215 = load double, double* %214
%216 = fmul double %212, %215
%217 = call double @llvm.fmuladd.f64(double %207, double %210, double %216)
%218 = getelementptr inbounds [3 x double], [3 x double]* %22, i64 0, i64 2
%219 = load double, double* %218
%220 = load double*, double** %16
%221 = getelementptr inbounds double, double* %220, i64 2
%222 = load double, double* %221
%223 = call double @llvm.fmuladd.f64(double %219, double %222, double %217)
%224 = load double, double* %24
%225 = fadd double %223, %224
store double %225, double* %28
%226 = load double, double* %26
%227 = call i32 @fabs(double %226)
%228 = sitofp i32 %227 to double
%229 = fcmp olt double %228, 1.000000e-05
br i1 %229, label %230, label %231
230: ; preds = %9
store double 0.000000e+00, double* %26
br label %231
231: ; preds = %230, %9
%232 = load double, double* %27
%233 = call i32 @fabs(double %232)
%234 = sitofp i32 %233 to double
%235 = fcmp olt double %234, 1.000000e-05
br i1 %235, label %236, label %237
236: ; preds = %231
store double 0.000000e+00, double* %27
br label %237
237: ; preds = %236, %231
%238 = load double, double* %28
%239 = call i32 @fabs(double %238)
%240 = sitofp i32 %239 to double
%241 = fcmp olt double %240, 1.000000e-05
br i1 %241, label %242, label %243
242: ; preds = %237
store double 0.000000e+00, double* %28
br label %243
243: ; preds = %242, %237
%244 = load double, double* %26
%245 = load double, double* %27
%246 = fmul double %244, %245
store double %246, double* %39
%247 = load double, double* %26
%248 = load double, double* %28
%249 = fmul double %247, %248
store double %249, double* %40
%250 = load double, double* %39
%251 = fcmp ogt double %250, 0.000000e+00
br i1 %251, label %252, label %256
252: ; preds = %243
%253 = load double, double* %40
%254 = fcmp ogt double %253, 0.000000e+00
br i1 %254, label %255, label %256
255: ; preds = %252
store i32 0, i32* %10
br label %828
256: ; preds = %252, %243
%257 = load double*, double** %15
%258 = getelementptr inbounds double, double* %257, i64 0
%259 = load double, double* %258
%260 = load double*, double** %14
%261 = getelementptr inbounds double, double* %260, i64 0
%262 = load double, double* %261
%263 = fsub double %259, %262
%264 = getelementptr inbounds [3 x double], [3 x double]* %20, i64 0, i64 0
store double %263, double* %264
%265 = load double*, double** %15
%266 = getelementptr inbounds double, double* %265, i64 1
%267 = load double, double* %266
%268 = load double*, double** %14
%269 = getelementptr inbounds double, double* %268, i64 1
%270 = load double, double* %269
%271 = fsub double %267, %270
%272 = getelementptr inbounds [3 x double], [3 x double]* %20, i64 0, i64 1
store double %271, double* %272
%273 = load double*, double** %15
%274 = getelementptr inbounds double, double* %273, i64 2
%275 = load double, double* %274
%276 = load double*, double** %14
%277 = getelementptr inbounds double, double* %276, i64 2
%278 = load double, double* %277
%279 = fsub double %275, %278
%280 = getelementptr inbounds [3 x double], [3 x double]* %20, i64 0, i64 2
store double %279, double* %280
%281 = load double*, double** %16
%282 = getelementptr inbounds double, double* %281, i64 0
%283 = load double, double* %282
%284 = load double*, double** %14
%285 = getelementptr inbounds double, double* %284, i64 0
%286 = load double, double* %285
%287 = fsub double %283, %286
%288 = getelementptr inbounds [3 x double], [3 x double]* %21, i64 0, i64 0
store double %287, double* %288
%289 = load double*, double** %16
%290 = getelementptr inbounds double, double* %289, i64 1
%291 = load double, double* %290
%292 = load double*, double** %14
%293 = getelementptr inbounds double, double* %292, i64 1
%294 = load double, double* %293
%295 = fsub double %291, %294
%296 = getelementptr inbounds [3 x double], [3 x double]* %21, i64 0, i64 1
store double %295, double* %296
%297 = load double*, double** %16
%298 = getelementptr inbounds double, double* %297, i64 2
%299 = load double, double* %298
%300 = load double*, double** %14
%301 = getelementptr inbounds double, double* %300, i64 2
%302 = load double, double* %301
%303 = fsub double %299, %302
%304 = getelementptr inbounds [3 x double], [3 x double]* %21, i64 0, i64 2
store double %303, double* %304
%305 = getelementptr inbounds [3 x double], [3 x double]* %20, i64 0, i64 1
%306 = load double, double* %305
%307 = getelementptr inbounds [3 x double], [3 x double]* %21, i64 0, i64 2
%308 = load double, double* %307
%309 = getelementptr inbounds [3 x double], [3 x double]* %20, i64 0, i64 2
%310 = load double, double* %309
%311 = getelementptr inbounds [3 x double], [3 x double]* %21, i64 0, i64 1
%312 = load double, double* %311
%313 = fmul double %310, %312
%314 = fneg double %313
%315 = call double @llvm.fmuladd.f64(double %306, double %308, double %314)
%316 = getelementptr inbounds [3 x double], [3 x double]* %23, i64 0, i64 0
store double %315, double* %316
%317 = getelementptr inbounds [3 x double], [3 x double]* %20, i64 0, i64 2
%318 = load double, double* %317
%319 = getelementptr inbounds [3 x double], [3 x double]* %21, i64 0, i64 0
%320 = load double, double* %319
%321 = getelementptr inbounds [3 x double], [3 x double]* %20, i64 0, i64 0
%322 = load double, double* %321
%323 = getelementptr inbounds [3 x double], [3 x double]* %21, i64 0, i64 2
%324 = load double, double* %323
%325 = fmul double %322, %324
%326 = fneg double %325
%327 = call double @llvm.fmuladd.f64(double %318, double %320, double %326)
%328 = getelementptr inbounds [3 x double], [3 x double]* %23, i64 0, i64 1
store double %327, double* %328
%329 = getelementptr inbounds [3 x double], [3 x double]* %20, i64 0, i64 0
%330 = load double, double* %329
%331 = getelementptr inbounds [3 x double], [3 x double]* %21, i64 0, i64 1
%332 = load double, double* %331
%333 = getelementptr inbounds [3 x double], [3 x double]* %20, i64 0, i64 1
%334 = load double, double* %333
%335 = getelementptr inbounds [3 x double], [3 x double]* %21, i64 0, i64 0
%336 = load double, double* %335
%337 = fmul double %334, %336
%338 = fneg double %337
%339 = call double @llvm.fmuladd.f64(double %330, double %332, double %338)
%340 = getelementptr inbounds [3 x double], [3 x double]* %23, i64 0, i64 2
store double %339, double* %340
%341 = getelementptr inbounds [3 x double], [3 x double]* %23, i64 0, i64 0
%342 = load double, double* %341
%343 = load double*, double** %14
%344 = getelementptr inbounds double, double* %343, i64 0
%345 = load double, double* %344
%346 = getelementptr inbounds [3 x double], [3 x double]* %23, i64 0, i64 1
%347 = load double, double* %346
%348 = load double*, double** %14
%349 = getelementptr inbounds double, double* %348, i64 1
%350 = load double, double* %349
%351 = fmul double %347, %350
%352 = call double @llvm.fmuladd.f64(double %342, double %345, double %351)
%353 = getelementptr inbounds [3 x double], [3 x double]* %23, i64 0, i64 2
%354 = load double, double* %353
%355 = load double*, double** %14
%356 = getelementptr inbounds double, double* %355, i64 2
%357 = load double, double* %356
%358 = call double @llvm.fmuladd.f64(double %354, double %357, double %352)
%359 = fneg double %358
store double %359, double* %25
%360 = getelementptr inbounds [3 x double], [3 x double]* %23, i64 0, i64 0
%361 = load double, double* %360
%362 = load double*, double** %11
%363 = getelementptr inbounds double, double* %362, i64 0
%364 = load double, double* %363
%365 = getelementptr inbounds [3 x double], [3 x double]* %23, i64 0, i64 1
%366 = load double, double* %365
%367 = load double*, double** %11
%368 = getelementptr inbounds double, double* %367, i64 1
%369 = load double, double* %368
%370 = fmul double %366, %369
%371 = call double @llvm.fmuladd.f64(double %361, double %364, double %370)
%372 = getelementptr inbounds [3 x double], [3 x double]* %23, i64 0, i64 2
%373 = load double, double* %372
%374 = load double*, double** %11
%375 = getelementptr inbounds double, double* %374, i64 2
%376 = load double, double* %375
%377 = call double @llvm.fmuladd.f64(double %373, double %376, double %371)
%378 = load double, double* %25
%379 = fadd double %377, %378
store double %379, double* %29
%380 = getelementptr inbounds [3 x double], [3 x double]* %23, i64 0, i64 0
%381 = load double, double* %380
%382 = load double*, double** %12
%383 = getelementptr inbounds double, double* %382, i64 0
%384 = load double, double* %383
%385 = getelementptr inbounds [3 x double], [3 x double]* %23, i64 0, i64 1
%386 = load double, double* %385
%387 = load double*, double** %12
%388 = getelementptr inbounds double, double* %387, i64 1
%389 = load double, double* %388
%390 = fmul double %386, %389
%391 = call double @llvm.fmuladd.f64(double %381, double %384, double %390)
%392 = getelementptr inbounds [3 x double], [3 x double]* %23, i64 0, i64 2
%393 = load double, double* %392
%394 = load double*, double** %12
%395 = getelementptr inbounds double, double* %394, i64 2
%396 = load double, double* %395
%397 = call double @llvm.fmuladd.f64(double %393, double %396, double %391)
%398 = load double, double* %25
%399 = fadd double %397, %398
store double %399, double* %30
%400 = getelementptr inbounds [3 x double], [3 x double]* %23, i64 0, i64 0
%401 = load double, double* %400
%402 = load double*, double** %13
%403 = getelementptr inbounds double, double* %402, i64 0
%404 = load double, double* %403
%405 = getelementptr inbounds [3 x double], [3 x double]* %23, i64 0, i64 1
%406 = load double, double* %405
%407 = load double*, double** %13
%408 = getelementptr inbounds double, double* %407, i64 1
%409 = load double, double* %408
%410 = fmul double %406, %409
%411 = call double @llvm.fmuladd.f64(double %401, double %404, double %410)
%412 = getelementptr inbounds [3 x double], [3 x double]* %23, i64 0, i64 2
%413 = load double, double* %412
%414 = load double*, double** %13
%415 = getelementptr inbounds double, double* %414, i64 2
%416 = load double, double* %415
%417 = call double @llvm.fmuladd.f64(double %413, double %416, double %411)
%418 = load double, double* %25
%419 = fadd double %417, %418
store double %419, double* %31
%420 = load double, double* %29
%421 = call i32 @fabs(double %420)
%422 = sitofp i32 %421 to double
%423 = fcmp olt double %422, 1.000000e-05
br i1 %423, label %424, label %425
424: ; preds = %256
store double 0.000000e+00, double* %29
br label %425
425: ; preds = %424, %256
%426 = load double, double* %30
%427 = call i32 @fabs(double %426)
%428 = sitofp i32 %427 to double
%429 = fcmp olt double %428, 1.000000e-05
br i1 %429, label %430, label %431
430: ; preds = %425
store double 0.000000e+00, double* %30
br label %431
431: ; preds = %430, %425
%432 = load double, double* %31
%433 = call i32 @fabs(double %432)
%434 = sitofp i32 %433 to double
%435 = fcmp olt double %434, 1.000000e-05
br i1 %435, label %436, label %437
436: ; preds = %431
store double 0.000000e+00, double* %31
br label %437
437: ; preds = %436, %431
%438 = load double, double* %29
%439 = load double, double* %30
%440 = fmul double %438, %439
store double %440, double* %41
%441 = load double, double* %29
%442 = load double, double* %31
%443 = fmul double %441, %442
store double %443, double* %42
%444 = load double, double* %41
%445 = fcmp ogt double %444, 0.000000e+00
br i1 %445, label %446, label %450
446: ; preds = %437
%447 = load double, double* %42
%448 = fcmp ogt double %447, 0.000000e+00
br i1 %448, label %449, label %450
449: ; preds = %446
store i32 0, i32* %10
br label %828
450: ; preds = %446, %437
%451 = getelementptr inbounds [3 x double], [3 x double]* %22, i64 0, i64 1
%452 = load double, double* %451
%453 = getelementptr inbounds [3 x double], [3 x double]* %23, i64 0, i64 2
%454 = load double, double* %453
%455 = getelementptr inbounds [3 x double], [3 x double]* %22, i64 0, i64 2
%456 = load double, double* %455
%457 = getelementptr inbounds [3 x double], [3 x double]* %23, i64 0, i64 1
%458 = load double, double* %457
%459 = fmul double %456, %458
%460 = fneg double %459
%461 = call double @llvm.fmuladd.f64(double %452, double %454, double %460)
%462 = getelementptr inbounds [3 x double], [3 x double]* %32, i64 0, i64 0
store double %461, double* %462
%463 = getelementptr inbounds [3 x double], [3 x double]* %22, i64 0, i64 2
%464 = load double, double* %463
%465 = getelementptr inbounds [3 x double], [3 x double]* %23, i64 0, i64 0
%466 = load double, double* %465
%467 = getelementptr inbounds [3 x double], [3 x double]* %22, i64 0, i64 0
%468 = load double, double* %467
%469 = getelementptr inbounds [3 x double], [3 x double]* %23, i64 0, i64 2
%470 = load double, double* %469
%471 = fmul double %468, %470
%472 = fneg double %471
%473 = call double @llvm.fmuladd.f64(double %464, double %466, double %472)
%474 = getelementptr inbounds [3 x double], [3 x double]* %32, i64 0, i64 1
store double %473, double* %474
%475 = getelementptr inbounds [3 x double], [3 x double]* %22, i64 0, i64 0
%476 = load double, double* %475
%477 = getelementptr inbounds [3 x double], [3 x double]* %23, i64 0, i64 1
%478 = load double, double* %477
%479 = getelementptr inbounds [3 x double], [3 x double]* %22, i64 0, i64 1
%480 = load double, double* %479
%481 = getelementptr inbounds [3 x double], [3 x double]* %23, i64 0, i64 0
%482 = load double, double* %481
%483 = fmul double %480, %482
%484 = fneg double %483
%485 = call double @llvm.fmuladd.f64(double %476, double %478, double %484)
%486 = getelementptr inbounds [3 x double], [3 x double]* %32, i64 0, i64 2
store double %485, double* %486
%487 = getelementptr inbounds [3 x double], [3 x double]* %32, i64 0, i64 0
%488 = load double, double* %487
%489 = call i32 @fabs(double %488)
%490 = sitofp i32 %489 to double
store double %490, double* %52
store i16 0, i16* %43
%491 = getelementptr inbounds [3 x double], [3 x double]* %32, i64 0, i64 1
%492 = load double, double* %491
%493 = call i32 @fabs(double %492)
%494 = sitofp i32 %493 to double
store double %494, double* %50
%495 = getelementptr inbounds [3 x double], [3 x double]* %32, i64 0, i64 2
%496 = load double, double* %495
%497 = call i32 @fabs(double %496)
%498 = sitofp i32 %497 to double
store double %498, double* %51
%499 = load double, double* %50
%500 = load double, double* %52
%501 = fcmp ogt double %499, %500
br i1 %501, label %502, label %504
502: ; preds = %450
%503 = load double, double* %50
store double %503, double* %52
store i16 1, i16* %43
br label %504
504: ; preds = %502, %450
%505 = load double, double* %51
%506 = load double, double* %52
%507 = fcmp ogt double %505, %506
br i1 %507, label %508, label %510
508: ; preds = %504
%509 = load double, double* %51
store double %509, double* %52
store i16 2, i16* %43
br label %510
510: ; preds = %508, %504
%511 = load double*, double** %11
%512 = load i16, i16* %43
%513 = sext i16 %512 to i64
%514 = getelementptr inbounds double, double* %511, i64 %513
%515 = load double, double* %514
store double %515, double* %44
%516 = load double*, double** %12
%517 = load i16, i16* %43
%518 = sext i16 %517 to i64
%519 = getelementptr inbounds double, double* %516, i64 %518
%520 = load double, double* %519
store double %520, double* %45
%521 = load double*, double** %13
%522 = load i16, i16* %43
%523 = sext i16 %522 to i64
%524 = getelementptr inbounds double, double* %521, i64 %523
%525 = load double, double* %524
store double %525, double* %46
%526 = load double*, double** %14
%527 = load i16, i16* %43
%528 = sext i16 %527 to i64
%529 = getelementptr inbounds double, double* %526, i64 %528
%530 = load double, double* %529
store double %530, double* %47
%531 = load double*, double** %15
%532 = load i16, i16* %43
%533 = sext i16 %532 to i64
%534 = getelementptr inbounds double, double* %531, i64 %533
%535 = load double, double* %534
store double %535, double* %48
%536 = load double*, double** %16
%537 = load i16, i16* %43
%538 = sext i16 %537 to i64
%539 = getelementptr inbounds double, double* %536, i64 %538
%540 = load double, double* %539
store double %540, double* %49
%541 = load double*, double** %11
%542 = load double*, double** %12
%543 = load double*, double** %13
%544 = load double, double* %44
%545 = load double, double* %45
%546 = load double, double* %46
%547 = load double, double* %29
%548 = load double, double* %30
%549 = load double, double* %31
%550 = load double, double* %41
%551 = load double, double* %42
%552 = getelementptr inbounds [2 x double], [2 x double]* %33, i64 0, i64 0
%553 = getelementptr inbounds [2 x double], [2 x double]* %33, i64 0, i64 1
%554 = getelementptr inbounds [3 x double], [3 x double]* %35, i64 0, i64 0
%555 = getelementptr inbounds [3 x double], [3 x double]* %36, i64 0, i64 0
%556 = call i32 @compute_intervals_isectline(double* %541, double* %542, double* %543, double %544, double %545, double %546, double %547, double %548, double %549, double %550, double %551, double* %552, double* %553, double* %554, double* %555)
%557 = load i32*, i32** %17
store i32 %556, i32* %557
%558 = load i32*, i32** %17
%559 = load i32, i32* %558
%560 = icmp ne i32 %559, 0
br i1 %560, label %561, label %570
561: ; preds = %510
%562 = getelementptr inbounds [3 x double], [3 x double]* %22, i64 0, i64 0
%563 = load double*, double** %11
%564 = load double*, double** %12
%565 = load double*, double** %13
%566 = load double*, double** %14
%567 = load double*, double** %15
%568 = load double*, double** %16
%569 = call i32 @coplanar_tri_tri(double* %562, double* %563, double* %564, double* %565, double* %566, double* %567, double* %568)
store i32 %569, i32* %10
br label %828
570: ; preds = %510
%571 = load double*, double** %14
%572 = load double*, double** %15
%573 = load double*, double** %16
%574 = load double, double* %47
%575 = load double, double* %48
%576 = load double, double* %49
%577 = load double, double* %26
%578 = load double, double* %27
%579 = load double, double* %28
%580 = load double, double* %39
%581 = load double, double* %40
%582 = getelementptr inbounds [2 x double], [2 x double]* %34, i64 0, i64 0
%583 = getelementptr inbounds [2 x double], [2 x double]* %34, i64 0, i64 1
%584 = getelementptr inbounds [3 x double], [3 x double]* %37, i64 0, i64 0
%585 = getelementptr inbounds [3 x double], [3 x double]* %38, i64 0, i64 0
%586 = call i32 @compute_intervals_isectline(double* %571, double* %572, double* %573, double %574, double %575, double %576, double %577, double %578, double %579, double %580, double %581, double* %582, double* %583, double* %584, double* %585)
%587 = getelementptr inbounds [2 x double], [2 x double]* %33, i64 0, i64 0
%588 = load double, double* %587
%589 = getelementptr inbounds [2 x double], [2 x double]* %33, i64 0, i64 1
%590 = load double, double* %589
%591 = fcmp ogt double %588, %590
br i1 %591, label %592, label %600
592: ; preds = %570
%593 = getelementptr inbounds [2 x double], [2 x double]* %33, i64 0, i64 0
%594 = load double, double* %593
store double %594, double* %55
%595 = getelementptr inbounds [2 x double], [2 x double]* %33, i64 0, i64 1
%596 = load double, double* %595
%597 = getelementptr inbounds [2 x double], [2 x double]* %33, i64 0, i64 0
store double %596, double* %597
%598 = load double, double* %55
%599 = getelementptr inbounds [2 x double], [2 x double]* %33, i64 0, i64 1
store double %598, double* %599
store i32 1, i32* %53
br label %601
600: ; preds = %570
store i32 0, i32* %53
br label %601
601: ; preds = %600, %592
%602 = getelementptr inbounds [2 x double], [2 x double]* %34, i64 0, i64 0
%603 = load double, double* %602
%604 = getelementptr inbounds [2 x double], [2 x double]* %34, i64 0, i64 1
%605 = load double, double* %604
%606 = fcmp ogt double %603, %605
br i1 %606, label %607, label %615
607: ; preds = %601
%608 = getelementptr inbounds [2 x double], [2 x double]* %34, i64 0, i64 0
%609 = load double, double* %608
store double %609, double* %56
%610 = getelementptr inbounds [2 x double], [2 x double]* %34, i64 0, i64 1
%611 = load double, double* %610
%612 = getelementptr inbounds [2 x double], [2 x double]* %34, i64 0, i64 0
store double %611, double* %612
%613 = load double, double* %56
%614 = getelementptr inbounds [2 x double], [2 x double]* %34, i64 0, i64 1
store double %613, double* %614
store i32 1, i32* %54
br label %616
615: ; preds = %601
store i32 0, i32* %54
br label %616
616: ; preds = %615, %607
%617 = getelementptr inbounds [2 x double], [2 x double]* %33, i64 0, i64 1
%618 = load double, double* %617
%619 = getelementptr inbounds [2 x double], [2 x double]* %34, i64 0, i64 0
%620 = load double, double* %619
%621 = fcmp olt double %618, %620
br i1 %621, label %628, label %622
622: ; preds = %616
%623 = getelementptr inbounds [2 x double], [2 x double]* %34, i64 0, i64 1
%624 = load double, double* %623
%625 = getelementptr inbounds [2 x double], [2 x double]* %33, i64 0, i64 0
%626 = load double, double* %625
%627 = fcmp olt double %624, %626
br i1 %627, label %628, label %629
628: ; preds = %622, %616
store i32 0, i32* %10
br label %828
629: ; preds = %622
%630 = getelementptr inbounds [2 x double], [2 x double]* %34, i64 0, i64 0
%631 = load double, double* %630
%632 = getelementptr inbounds [2 x double], [2 x double]* %33, i64 0, i64 0
%633 = load double, double* %632
%634 = fcmp olt double %631, %633
br i1 %634, label %635, label %731
635: ; preds = %629
%636 = load i32, i32* %53
%637 = icmp eq i32 %636, 0
br i1 %637, label %638, label %651
638: ; preds = %635
%639 = getelementptr inbounds [3 x double], [3 x double]* %35, i64 0, i64 0
%640 = load double, double* %639
%641 = load double*, double** %18
%642 = getelementptr inbounds double, double* %641, i64 0
store double %640, double* %642
%643 = getelementptr inbounds [3 x double], [3 x double]* %35, i64 0, i64 1
%644 = load double, double* %643
%645 = load double*, double** %18
%646 = getelementptr inbounds double, double* %645, i64 1
store double %644, double* %646
%647 = getelementptr inbounds [3 x double], [3 x double]* %35, i64 0, i64 2
%648 = load double, double* %647
%649 = load double*, double** %18
%650 = getelementptr inbounds double, double* %649, i64 2
store double %648, double* %650
br label %664
651: ; preds = %635
%652 = getelementptr inbounds [3 x double], [3 x double]* %36, i64 0, i64 0
%653 = load double, double* %652
%654 = load double*, double** %18
%655 = getelementptr inbounds double, double* %654, i64 0
store double %653, double* %655
%656 = getelementptr inbounds [3 x double], [3 x double]* %36, i64 0, i64 1
%657 = load double, double* %656
%658 = load double*, double** %18
%659 = getelementptr inbounds double, double* %658, i64 1
store double %657, double* %659
%660 = getelementptr inbounds [3 x double], [3 x double]* %36, i64 0, i64 2
%661 = load double, double* %660
%662 = load double*, double** %18
%663 = getelementptr inbounds double, double* %662, i64 2
store double %661, double* %663
br label %664
664: ; preds = %651, %638
%665 = getelementptr inbounds [2 x double], [2 x double]* %34, i64 0, i64 1
%666 = load double, double* %665
%667 = getelementptr inbounds [2 x double], [2 x double]* %33, i64 0, i64 1
%668 = load double, double* %667
%669 = fcmp olt double %666, %668
br i1 %669, label %670, label %700
670: ; preds = %664
%671 = load i32, i32* %54
%672 = icmp eq i32 %671, 0
br i1 %672, label %673, label %686
673: ; preds = %670
%674 = getelementptr inbounds [3 x double], [3 x double]* %38, i64 0, i64 0
%675 = load double, double* %674
%676 = load double*, double** %19
%677 = getelementptr inbounds double, double* %676, i64 0
store double %675, double* %677
%678 = getelementptr inbounds [3 x double], [3 x double]* %38, i64 0, i64 1
%679 = load double, double* %678
%680 = load double*, double** %19
%681 = getelementptr inbounds double, double* %680, i64 1
store double %679, double* %681
%682 = getelementptr inbounds [3 x double], [3 x double]* %38, i64 0, i64 2
%683 = load double, double* %682
%684 = load double*, double** %19
%685 = getelementptr inbounds double, double* %684, i64 2
store double %683, double* %685
br label %699
686: ; preds = %670
%687 = getelementptr inbounds [3 x double], [3 x double]* %37, i64 0, i64 0
%688 = load double, double* %687
%689 = load double*, double** %19
%690 = getelementptr inbounds double, double* %689, i64 0
store double %688, double* %690
%691 = getelementptr inbounds [3 x double], [3 x double]* %37, i64 0, i64 1
%692 = load double, double* %691
%693 = load double*, double** %19
%694 = getelementptr inbounds double, double* %693, i64 1
store double %692, double* %694
%695 = getelementptr inbounds [3 x double], [3 x double]* %37, i64 0, i64 2
%696 = load double, double* %695
%697 = load double*, double** %19
%698 = getelementptr inbounds double, double* %697, i64 2
store double %696, double* %698
br label %699
699: ; preds = %686, %673
br label %730
700: ; preds = %664
%701 = load i32, i32* %53
%702 = icmp eq i32 %701, 0
br i1 %702, label %703, label %716
703: ; preds = %700
%704 = getelementptr inbounds [3 x double], [3 x double]* %36, i64 0, i64 0
%705 = load double, double* %704
%706 = load double*, double** %19
%707 = getelementptr inbounds double, double* %706, i64 0
store double %705, double* %707
%708 = getelementptr inbounds [3 x double], [3 x double]* %36, i64 0, i64 1
%709 = load double, double* %708
%710 = load double*, double** %19
%711 = getelementptr inbounds double, double* %710, i64 1
store double %709, double* %711
%712 = getelementptr inbounds [3 x double], [3 x double]* %36, i64 0, i64 2
%713 = load double, double* %712
%714 = load double*, double** %19
%715 = getelementptr inbounds double, double* %714, i64 2
store double %713, double* %715
br label %729
716: ; preds = %700
%717 = getelementptr inbounds [3 x double], [3 x double]* %35, i64 0, i64 0
%718 = load double, double* %717
%719 = load double*, double** %19
%720 = getelementptr inbounds double, double* %719, i64 0
store double %718, double* %720
%721 = getelementptr inbounds [3 x double], [3 x double]* %35, i64 0, i64 1
%722 = load double, double* %721
%723 = load double*, double** %19
%724 = getelementptr inbounds double, double* %723, i64 1
store double %722, double* %724
%725 = getelementptr inbounds [3 x double], [3 x double]* %35, i64 0, i64 2
%726 = load double, double* %725
%727 = load double*, double** %19
%728 = getelementptr inbounds double, double* %727, i64 2
store double %726, double* %728
br label %729
729: ; preds = %716, %703
br label %730
730: ; preds = %729, %699
br label %827
731: ; preds = %629
%732 = load i32, i32* %54
%733 = icmp eq i32 %732, 0
br i1 %733, label %734, label %747
734: ; preds = %731
%735 = getelementptr inbounds [3 x double], [3 x double]* %37, i64 0, i64 0
%736 = load double, double* %735
%737 = load double*, double** %18
%738 = getelementptr inbounds double, double* %737, i64 0
store double %736, double* %738
%739 = getelementptr inbounds [3 x double], [3 x double]* %37, i64 0, i64 1
%740 = load double, double* %739
%741 = load double*, double** %18
%742 = getelementptr inbounds double, double* %741, i64 1
store double %740, double* %742
%743 = getelementptr inbounds [3 x double], [3 x double]* %37, i64 0, i64 2
%744 = load double, double* %743
%745 = load double*, double** %18
%746 = getelementptr inbounds double, double* %745, i64 2
store double %744, double* %746
br label %760
747: ; preds = %731
%748 = getelementptr inbounds [3 x double], [3 x double]* %38, i64 0, i64 0
%749 = load double, double* %748
%750 = load double*, double** %18
%751 = getelementptr inbounds double, double* %750, i64 0
store double %749, double* %751
%752 = getelementptr inbounds [3 x double], [3 x double]* %38, i64 0, i64 1
%753 = load double, double* %752
%754 = load double*, double** %18
%755 = getelementptr inbounds double, double* %754, i64 1
store double %753, double* %755
%756 = getelementptr inbounds [3 x double], [3 x double]* %38, i64 0, i64 2
%757 = load double, double* %756
%758 = load double*, double** %18
%759 = getelementptr inbounds double, double* %758, i64 2
store double %757, double* %759
br label %760
760: ; preds = %747, %734
%761 = getelementptr inbounds [2 x double], [2 x double]* %34, i64 0, i64 1
%762 = load double, double* %761
%763 = getelementptr inbounds [2 x double], [2 x double]* %33, i64 0, i64 1
%764 = load double, double* %763
%765 = fcmp ogt double %762, %764
br i1 %765, label %766, label %796
766: ; preds = %760
%767 = load i32, i32* %53
%768 = icmp eq i32 %767, 0
br i1 %768, label %769, label %782
769: ; preds = %766
%770 = getelementptr inbounds [3 x double], [3 x double]* %36, i64 0, i64 0
%771 = load double, double* %770
%772 = load double*, double** %19
%773 = getelementptr inbounds double, double* %772, i64 0
store double %771, double* %773
%774 = getelementptr inbounds [3 x double], [3 x double]* %36, i64 0, i64 1
%775 = load double, double* %774
%776 = load double*, double** %19
%777 = getelementptr inbounds double, double* %776, i64 1
store double %775, double* %777
%778 = getelementptr inbounds [3 x double], [3 x double]* %36, i64 0, i64 2
%779 = load double, double* %778
%780 = load double*, double** %19
%781 = getelementptr inbounds double, double* %780, i64 2
store double %779, double* %781
br label %795
782: ; preds = %766
%783 = getelementptr inbounds [3 x double], [3 x double]* %35, i64 0, i64 0
%784 = load double, double* %783
%785 = load double*, double** %19
%786 = getelementptr inbounds double, double* %785, i64 0
store double %784, double* %786
%787 = getelementptr inbounds [3 x double], [3 x double]* %35, i64 0, i64 1
%788 = load double, double* %787
%789 = load double*, double** %19
%790 = getelementptr inbounds double, double* %789, i64 1
store double %788, double* %790
%791 = getelementptr inbounds [3 x double], [3 x double]* %35, i64 0, i64 2
%792 = load double, double* %791
%793 = load double*, double** %19
%794 = getelementptr inbounds double, double* %793, i64 2
store double %792, double* %794
br label %795
795: ; preds = %782, %769
br label %826
796: ; preds = %760
%797 = load i32, i32* %54
%798 = icmp eq i32 %797, 0
br i1 %798, label %799, label %812
799: ; preds = %796
%800 = getelementptr inbounds [3 x double], [3 x double]* %38, i64 0, i64 0
%801 = load double, double* %800
%802 = load double*, double** %19
%803 = getelementptr inbounds double, double* %802, i64 0
store double %801, double* %803
%804 = getelementptr inbounds [3 x double], [3 x double]* %38, i64 0, i64 1
%805 = load double, double* %804
%806 = load double*, double** %19
%807 = getelementptr inbounds double, double* %806, i64 1
store double %805, double* %807
%808 = getelementptr inbounds [3 x double], [3 x double]* %38, i64 0, i64 2
%809 = load double, double* %808
%810 = load double*, double** %19
%811 = getelementptr inbounds double, double* %810, i64 2
store double %809, double* %811
br label %825
812: ; preds = %796
%813 = getelementptr inbounds [3 x double], [3 x double]* %37, i64 0, i64 0
%814 = load double, double* %813
%815 = load double*, double** %19
%816 = getelementptr inbounds double, double* %815, i64 0
store double %814, double* %816
%817 = getelementptr inbounds [3 x double], [3 x double]* %37, i64 0, i64 1
%818 = load double, double* %817
%819 = load double*, double** %19
%820 = getelementptr inbounds double, double* %819, i64 1
store double %818, double* %820
%821 = getelementptr inbounds [3 x double], [3 x double]* %37, i64 0, i64 2
%822 = load double, double* %821
%823 = load double*, double** %19
%824 = getelementptr inbounds double, double* %823, i64 2
store double %822, double* %824
br label %825
825: ; preds = %812, %799
br label %826
826: ; preds = %825, %795
br label %827
827: ; preds = %826, %730
store i32 1, i32* %10
br label %828
828: ; preds = %827, %628, %561, %449, %255
%829 = load i32, i32* %10
ret i32 %829
}

LLVM IR (-O2):
define i32 @tri_tri_intersect_with_isectline(double* %0, double* %1, double* %2, double* %3, double* %4, double* %5, i32* nocapture writeonly %6, double* nocapture writeonly %7, double* writeonly %8) {
%10 = alloca [3 x double]
%11 = alloca [2 x double]
%12 = alloca [2 x double]
%13 = alloca [3 x double]
%14 = alloca [3 x double]
%15 = alloca [3 x double]
%16 = alloca [3 x double]
%17 = bitcast [3 x double]* %10 to i8*
%18 = bitcast [2 x double]* %11 to i8*
%19 = bitcast [2 x double]* %12 to i8*
%20 = bitcast [3 x double]* %13 to i8*
%21 = bitcast [3 x double]* %14 to i8*
%22 = bitcast [3 x double]* %15 to i8*
%23 = bitcast [3 x double]* %16 to i8*
%24 = load double, double* %1
%25 = load double, double* %0
%26 = fsub double %24, %25
%27 = getelementptr inbounds double, double* %1, i64 1
%28 = getelementptr inbounds double, double* %0, i64 1
%29 = bitcast double* %27 to <2 x double>*
%30 = load <2 x double>, <2 x double>* %29
%31 = bitcast double* %28 to <2 x double>*
%32 = load <2 x double>, <2 x double>* %31
%33 = fsub <2 x double> %30, %32
%34 = load double, double* %2
%35 = getelementptr inbounds double, double* %2, i64 1
%36 = load double, double* %35
%37 = extractelement <2 x double> %32, i64 0
%38 = fsub double %36, %37
%39 = getelementptr inbounds double, double* %2, i64 2
%40 = load double, double* %39
%41 = insertelement <2 x double> poison, double %34, i64 0
%42 = insertelement <2 x double> %41, double %40, i64 1
%43 = insertelement <2 x double> %32, double %25, i64 0
%44 = fsub <2 x double> %42, %43
%45 = shufflevector <2 x double> %44, <2 x double> poison, <2 x i32> <i32 1, i32 0>
%46 = getelementptr inbounds [3 x double], [3 x double]* %10, i64 0, i64 0
%47 = extractelement <2 x double> %33, i64 1
%48 = insertelement <2 x double> poison, double %47, i64 0
%49 = insertelement <2 x double> %48, double %26, i64 1
%50 = fneg <2 x double> %49
%51 = insertelement <2 x double> %44, double %38, i64 0
%52 = fmul <2 x double> %51, %50
%53 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %33, <2 x double> %45, <2 x double> %52)
%54 = bitcast [3 x double]* %10 to <2 x double>*
store <2 x double> %53, <2 x double>* %54
%55 = extractelement <2 x double> %33, i64 0
%56 = fneg double %55
%57 = extractelement <2 x double> %44, i64 0
%58 = fmul double %57, %56
%59 = tail call double @llvm.fmuladd.f64(double %26, double %38, double %58)
%60 = getelementptr inbounds [3 x double], [3 x double]* %10, i64 0, i64 2
store double %59, double* %60
%61 = extractelement <2 x double> %53, i64 1
%62 = extractelement <2 x double> %53, i64 0
%63 = load double, double* %3
%64 = getelementptr inbounds double, double* %3, i64 1
%65 = load double, double* %64
%66 = getelementptr inbounds double, double* %3, i64 2
%67 = load double, double* %66
%68 = load double, double* %4
%69 = getelementptr inbounds double, double* %4, i64 1
%70 = load double, double* %69
%71 = shufflevector <2 x double> %53, <2 x double> undef, <2 x i32> <i32 1, i32 1>
%72 = insertelement <2 x double> poison, double %70, i64 0
%73 = shufflevector <2 x double> %72, <2 x double> %32, <2 x i32> <i32 0, i32 2>
%74 = fmul <2 x double> %71, %73
%75 = shufflevector <2 x double> %53, <2 x double> undef, <2 x i32> zeroinitializer
%76 = insertelement <2 x double> poison, double %68, i64 0
%77 = insertelement <2 x double> %76, double %25, i64 1
%78 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %75, <2 x double> %77, <2 x double> %74)
%79 = getelementptr inbounds double, double* %4, i64 2
%80 = load double, double* %79
%81 = insertelement <2 x double> poison, double %59, i64 0
%82 = shufflevector <2 x double> %81, <2 x double> poison, <2 x i32> zeroinitializer
%83 = insertelement <2 x double> %32, double %80, i64 0
%84 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %82, <2 x double> %83, <2 x double> %78)
%85 = extractelement <2 x double> %84, i64 0
%86 = extractelement <2 x double> %84, i64 1
%87 = fsub double %85, %86
%88 = load double, double* %5
%89 = getelementptr inbounds double, double* %5, i64 1
%90 = load double, double* %89
%91 = insertelement <2 x double> poison, double %65, i64 0
%92 = insertelement <2 x double> %91, double %90, i64 1
%93 = fmul <2 x double> %71, %92
%94 = insertelement <2 x double> poison, double %63, i64 0
%95 = insertelement <2 x double> %94, double %88, i64 1
%96 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %75, <2 x double> %95, <2 x double> %93)
%97 = getelementptr inbounds double, double* %5, i64 2
%98 = load double, double* %97
%99 = insertelement <2 x double> poison, double %67, i64 0
%100 = insertelement <2 x double> %99, double %98, i64 1
%101 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %82, <2 x double> %100, <2 x double> %96)
%102 = shufflevector <2 x double> %84, <2 x double> undef, <2 x i32> <i32 1, i32 1>
%103 = fsub <2 x double> %101, %102
%104 = extractelement <2 x double> %103, i64 0
%105 = tail call i32 @fabs(double %104)
%106 = tail call i32 @fabs(double %87)
%107 = icmp slt i32 %106, 1
%108 = select i1 %107, double 0.000000e+00, double %87
%109 = extractelement <2 x double> %103, i64 1
%110 = tail call i32 @fabs(double %109)
%111 = insertelement <2 x i32> poison, i32 %105, i64 0
%112 = insertelement <2 x i32> %111, i32 %110, i64 1
%113 = icmp slt <2 x i32> %112, <i32 1, i32 1>
%114 = select <2 x i1> %113, <2 x double> zeroinitializer, <2 x double> %103
%115 = extractelement <2 x double> %114, i64 0
%116 = fmul double %115, %108
%117 = extractelement <2 x double> %114, i64 1
%118 = fmul double %115, %117
%119 = fcmp ogt double %116, 0.000000e+00
%120 = fcmp ogt double %118, 0.000000e+00
%121 = select i1 %119, i1 %120, i1 false
br i1 %121, label %356, label %122
122: ; preds = %9
%123 = getelementptr inbounds double, double* %0, i64 2
%124 = getelementptr inbounds double, double* %1, i64 2
%125 = load double, double* %4
%126 = load double, double* %3
%127 = fsub double %125, %126
%128 = load double, double* %69
%129 = load double, double* %64
%130 = fsub double %128, %129
%131 = load double, double* %79
%132 = load double, double* %66
%133 = fsub double %131, %132
%134 = load double, double* %5
%135 = fsub double %134, %126
%136 = load double, double* %89
%137 = fsub double %136, %129
%138 = load double, double* %97
%139 = fsub double %138, %132
%140 = fneg double %133
%141 = fmul double %137, %140
%142 = tail call double @llvm.fmuladd.f64(double %130, double %139, double %141)
%143 = fneg double %127
%144 = fmul double %139, %143
%145 = tail call double @llvm.fmuladd.f64(double %133, double %135, double %144)
%146 = fneg double %130
%147 = fmul double %135, %146
%148 = tail call double @llvm.fmuladd.f64(double %127, double %137, double %147)
%149 = load double, double* %0
%150 = load double, double* %28
%151 = insertelement <2 x double> poison, double %150, i64 0
%152 = insertelement <2 x double> %151, double %129, i64 1
%153 = insertelement <2 x double> poison, double %145, i64 0
%154 = shufflevector <2 x double> %153, <2 x double> poison, <2 x i32> zeroinitializer
%155 = fmul <2 x double> %152, %154
%156 = insertelement <2 x double> poison, double %142, i64 0
%157 = shufflevector <2 x double> %156, <2 x double> poison, <2 x i32> zeroinitializer
%158 = insertelement <2 x double> poison, double %149, i64 0
%159 = insertelement <2 x double> %158, double %126, i64 1
%160 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %157, <2 x double> %159, <2 x double> %155)
%161 = load double, double* %123
%162 = insertelement <2 x double> poison, double %148, i64 0
%163 = shufflevector <2 x double> %162, <2 x double> poison, <2 x i32> zeroinitializer
%164 = insertelement <2 x double> poison, double %161, i64 0
%165 = insertelement <2 x double> %164, double %132, i64 1
%166 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %163, <2 x double> %165, <2 x double> %160)
%167 = extractelement <2 x double> %166, i64 0
%168 = extractelement <2 x double> %166, i64 1
%169 = fsub double %167, %168
%170 = load double, double* %1
%171 = load double, double* %27
%172 = fmul double %145, %171
%173 = tail call double @llvm.fmuladd.f64(double %142, double %170, double %172)
%174 = load double, double* %124
%175 = tail call double @llvm.fmuladd.f64(double %148, double %174, double %173)
%176 = fsub double %175, %168
%177 = load double, double* %2
%178 = load double, double* %35
%179 = fmul double %145, %178
%180 = tail call double @llvm.fmuladd.f64(double %142, double %177, double %179)
%181 = load double, double* %39
%182 = tail call double @llvm.fmuladd.f64(double %148, double %181, double %180)
%183 = fsub double %182, %168
%184 = tail call i32 @fabs(double %169)
%185 = icmp slt i32 %184, 1
%186 = select i1 %185, double 0.000000e+00, double %169
%187 = tail call i32 @fabs(double %176)
%188 = icmp slt i32 %187, 1
%189 = select i1 %188, double 0.000000e+00, double %176
%190 = tail call i32 @fabs(double %183)
%191 = icmp slt i32 %190, 1
%192 = select i1 %191, double 0.000000e+00, double %183
%193 = fmul double %186, %189
%194 = fmul double %186, %192
%195 = fcmp ogt double %193, 0.000000e+00
%196 = fcmp ogt double %194, 0.000000e+00
%197 = select i1 %195, i1 %196, i1 false
br i1 %197, label %356, label %198
198: ; preds = %122
%199 = fneg double %59
%200 = fmul double %145, %199
%201 = tail call double @llvm.fmuladd.f64(double %61, double %148, double %200)
%202 = fneg double %62
%203 = fmul double %148, %202
%204 = tail call double @llvm.fmuladd.f64(double %59, double %142, double %203)
%205 = fneg double %61
%206 = fmul double %142, %205
%207 = tail call double @llvm.fmuladd.f64(double %62, double %145, double %206)
%208 = tail call i32 @fabs(double %201)
%209 = sitofp i32 %208 to double
%210 = tail call i32 @fabs(double %204)
%211 = sitofp i32 %210 to double
%212 = tail call i32 @fabs(double %207)
%213 = sitofp i32 %212 to double
%214 = fcmp ogt double %211, %209
%215 = zext i1 %214 to i64
%216 = select i1 %214, double %211, double %209
%217 = fcmp olt double %216, %213
%218 = select i1 %217, i64 2, i64 %215
%219 = getelementptr inbounds double, double* %0, i64 %218
%220 = load double, double* %219
%221 = getelementptr inbounds double, double* %1, i64 %218
%222 = load double, double* %221
%223 = getelementptr inbounds double, double* %2, i64 %218
%224 = load double, double* %223
%225 = getelementptr inbounds double, double* %3, i64 %218
%226 = load double, double* %225
%227 = getelementptr inbounds double, double* %4, i64 %218
%228 = load double, double* %227
%229 = getelementptr inbounds double, double* %5, i64 %218
%230 = load double, double* %229
%231 = getelementptr inbounds [2 x double], [2 x double]* %11, i64 0, i64 0
%232 = getelementptr inbounds [2 x double], [2 x double]* %11, i64 0, i64 1
%233 = getelementptr inbounds [3 x double], [3 x double]* %13, i64 0, i64 0
%234 = getelementptr inbounds [3 x double], [3 x double]* %14, i64 0, i64 0
%235 = call i32 @compute_intervals_isectline(double* %0, double* %1, double* %2, double %220, double %222, double %224, double %186, double %189, double %192, double %193, double %194, double* %231, double* %232, double* %233, double* %234)
store i32 %235, i32* %6
%236 = icmp eq i32 %235, 0
br i1 %236, label %239, label %237
237: ; preds = %198
%238 = call i32 @coplanar_tri_tri(double* %46, double* %0, double* %1, double* %2, double* %3, double* %4, double* %5)
br label %356
239: ; preds = %198
%240 = getelementptr inbounds [2 x double], [2 x double]* %12, i64 0, i64 0
%241 = getelementptr inbounds [2 x double], [2 x double]* %12, i64 0, i64 1
%242 = getelementptr inbounds [3 x double], [3 x double]* %15, i64 0, i64 0
%243 = getelementptr inbounds [3 x double], [3 x double]* %16, i64 0, i64 0
%244 = call i32 @compute_intervals_isectline(double* %3, double* %4, double* %5, double %226, double %228, double %230, double %115, double %108, double %117, double %116, double %118, double* %240, double* %241, double* %242, double* %243)
%245 = load double, double* %231
%246 = load double, double* %232
%247 = fcmp ogt double %245, %246
br i1 %247, label %248, label %249
248: ; preds = %239
store double %246, double* %231
store double %245, double* %232
br label %249
249: ; preds = %239, %248
%250 = phi double [ %245, %239 ], [ %246, %248 ]
%251 = phi double [ %246, %239 ], [ %245, %248 ]
%252 = load double, double* %240
%253 = load double, double* %241
%254 = fcmp ogt double %252, %253
br i1 %254, label %255, label %256
255: ; preds = %249
store double %253, double* %240
store double %252, double* %241
br label %256
256: ; preds = %249, %255
%257 = phi double [ %253, %249 ], [ %252, %255 ]
%258 = phi double [ %252, %249 ], [ %253, %255 ]
%259 = fcmp olt double %251, %258
%260 = fcmp olt double %257, %250
%261 = select i1 %259, i1 true, i1 %260
br i1 %261, label %356, label %262
262: ; preds = %256
%263 = fcmp olt double %258, %250
br i1 %263, label %264, label %310
264: ; preds = %262
br i1 %247, label %265, label %273
265: ; preds = %264
%266 = bitcast [3 x double]* %14 to <2 x double>*
%267 = load <2 x double>, <2 x double>* %266
%268 = bitcast double* %7 to <2 x double>*
store <2 x double> %267, <2 x double>* %268
%269 = getelementptr inbounds [3 x double], [3 x double]* %14, i64 0, i64 2
%270 = load double, double* %269
%271 = getelementptr inbounds double, double* %7, i64 2
store double %270, double* %271
%272 = fcmp olt double %257, %251
br i1 %272, label %281, label %303
273: ; preds = %264
%274 = bitcast [3 x double]* %13 to <2 x double>*
%275 = load <2 x double>, <2 x double>* %274
%276 = bitcast double* %7 to <2 x double>*
store <2 x double> %275, <2 x double>* %276
%277 = getelementptr inbounds [3 x double], [3 x double]* %13, i64 0, i64 2
%278 = load double, double* %277
%279 = getelementptr inbounds double, double* %7, i64 2
store double %278, double* %279
%280 = fcmp olt double %257, %251
br i1 %280, label %281, label %296
281: ; preds = %273, %265
br i1 %254, label %289, label %282
282: ; preds = %281
%283 = bitcast [3 x double]* %16 to <2 x double>*
%284 = load <2 x double>, <2 x double>* %283
%285 = bitcast double* %8 to <2 x double>*
store <2 x double> %284, <2 x double>* %285
%286 = getelementptr inbounds [3 x double], [3 x double]* %16, i64 0, i64 2
%287 = load double, double* %286
%288 = getelementptr inbounds double, double* %8, i64 2
store double %287, double* %288
br label %356
289: ; preds = %281
%290 = bitcast [3 x double]* %15 to <2 x double>*
%291 = load <2 x double>, <2 x double>* %290
%292 = bitcast double* %8 to <2 x double>*
store <2 x double> %291, <2 x double>* %292
%293 = getelementptr inbounds [3 x double], [3 x double]* %15, i64 0, i64 2
%294 = load double, double* %293
%295 = getelementptr inbounds double, double* %8, i64 2
store double %294, double* %295
br label %356
296: ; preds = %273
%297 = bitcast [3 x double]* %14 to <2 x double>*
%298 = load <2 x double>, <2 x double>* %297
%299 = bitcast double* %8 to <2 x double>*
store <2 x double> %298, <2 x double>* %299
%300 = getelementptr inbounds [3 x double], [3 x double]* %14, i64 0, i64 2
%301 = load double, double* %300
%302 = getelementptr inbounds double, double* %8, i64 2
store double %301, double* %302
br label %356
303: ; preds = %265
%304 = bitcast [3 x double]* %13 to <2 x double>*
%305 = load <2 x double>, <2 x double>* %304
%306 = bitcast double* %8 to <2 x double>*
store <2 x double> %305, <2 x double>* %306
%307 = getelementptr inbounds [3 x double], [3 x double]* %13, i64 0, i64 2
%308 = load double, double* %307
%309 = getelementptr inbounds double, double* %8, i64 2
store double %308, double* %309
br label %356
310: ; preds = %262
br i1 %254, label %311, label %319
311: ; preds = %310
%312 = bitcast [3 x double]* %16 to <2 x double>*
%313 = load <2 x double>, <2 x double>* %312
%314 = bitcast double* %7 to <2 x double>*
store <2 x double> %313, <2 x double>* %314
%315 = getelementptr inbounds [3 x double], [3 x double]* %16, i64 0, i64 2
%316 = load double, double* %315
%317 = getelementptr inbounds double, double* %7, i64 2
store double %316, double* %317
%318 = fcmp ogt double %257, %251
br i1 %318, label %327, label %349
319: ; preds = %310
%320 = bitcast [3 x double]* %15 to <2 x double>*
%321 = load <2 x double>, <2 x double>* %320
%322 = bitcast double* %7 to <2 x double>*
store <2 x double> %321, <2 x double>* %322
%323 = getelementptr inbounds [3 x double], [3 x double]* %15, i64 0, i64 2
%324 = load double, double* %323
%325 = getelementptr inbounds double, double* %7, i64 2
store double %324, double* %325
%326 = fcmp ogt double %257, %251
br i1 %326, label %327, label %342
327: ; preds = %319, %311
br i1 %247, label %335, label %328
328: ; preds = %327
%329 = bitcast [3 x double]* %14 to <2 x double>*
%330 = load <2 x double>, <2 x double>* %329
%331 = bitcast double* %8 to <2 x double>*
store <2 x double> %330, <2 x double>* %331
%332 = getelementptr inbounds [3 x double], [3 x double]* %14, i64 0, i64 2
%333 = load double, double* %332
%334 = getelementptr inbounds double, double* %8, i64 2
store double %333, double* %334
br label %356
335: ; preds = %327
%336 = bitcast [3 x double]* %13 to <2 x double>*
%337 = load <2 x double>, <2 x double>* %336
%338 = bitcast double* %8 to <2 x double>*
store <2 x double> %337, <2 x double>* %338
%339 = getelementptr inbounds [3 x double], [3 x double]* %13, i64 0, i64 2
%340 = load double, double* %339
%341 = getelementptr inbounds double, double* %8, i64 2
store double %340, double* %341
br label %356
342: ; preds = %319
%343 = bitcast [3 x double]* %16 to <2 x double>*
%344 = load <2 x double>, <2 x double>* %343
%345 = bitcast double* %8 to <2 x double>*
store <2 x double> %344, <2 x double>* %345
%346 = getelementptr inbounds [3 x double], [3 x double]* %16, i64 0, i64 2
%347 = load double, double* %346
%348 = getelementptr inbounds double, double* %8, i64 2
store double %347, double* %348
br label %356
349: ; preds = %311
%350 = bitcast [3 x double]* %15 to <2 x double>*
%351 = load <2 x double>, <2 x double>* %350
%352 = bitcast double* %8 to <2 x double>*
store <2 x double> %351, <2 x double>* %352
%353 = getelementptr inbounds [3 x double], [3 x double]* %15, i64 0, i64 2
%354 = load double, double* %353
%355 = getelementptr inbounds double, double* %8, i64 2
store double %354, double* %355
br label %356
356: ; preds = %296, %303, %282, %289, %342, %349, %328, %335, %256, %122, %9, %237
%357 = phi i32 [ %238, %237 ], [ 0, %9 ], [ 0, %122 ], [ 0, %256 ], [ 1, %335 ], [ 1, %328 ], [ 1, %349 ], [ 1, %342 ], [ 1, %289 ], [ 1, %282 ], [ 1, %303 ], [ 1, %296 ]
ret i32 %357
}