; LLVM IR from heroseh/cgm :: cgm (cgm_3d_aabb_vs_triangle)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%union.CgmVec3 = type { %struct.anon.0 }
%struct.anon.0 = type { float, float, float }
%struct.anon.9 = type { %union.CgmVec3, %union.CgmVec3, %union.CgmVec3 }

@__const.cgm_3d_aabb_vs_triangle.u0 = external hidden unnamed_addr constant %union.CgmVec3, align 4
@__const.cgm_3d_aabb_vs_triangle.u1 = external hidden unnamed_addr constant %union.CgmVec3, align 4
@__const.cgm_3d_aabb_vs_triangle.u2 = external hidden unnamed_addr constant %union.CgmVec3, align 4

; Function Attrs: nounwind uwtable
declare dso_local float @cgm_min(float noundef, float noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local float @cgm_max(float noundef, float noundef) #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @cgm_approx_eq(float noundef, float noundef) #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #1

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmVec3_sub(<2 x float>, float, <2 x float>, float) #4

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmVec3_neg(<2 x float>, float) #4

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmVec3_norm(<2 x float>, float) #4

; Function Attrs: nounwind uwtable
declare dso_local float @CgmVec3_dot(<2 x float>, float, <2 x float>, float) #4

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmVec3_mul_cross(<2 x float>, float, <2 x float>, float) #4

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmAabb3d_half_size(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmAabb3d_center(ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local zeroext i8 @cgm_3d_aabb_vs_triangle(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i8 noundef zeroext %4) #4 {
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca %union.CgmVec3, align 4
  %13 = alloca { <2 x float>, float }, align 8
  %14 = alloca %union.CgmVec3, align 4
  %15 = alloca { <2 x float>, float }, align 8
  %16 = alloca %union.CgmVec3, align 4
  %17 = alloca { <2 x float>, float }, align 4
  %18 = alloca { <2 x float>, float }, align 4
  %19 = alloca { <2 x float>, float }, align 8
  %20 = alloca %union.CgmVec3, align 4
  %21 = alloca { <2 x float>, float }, align 4
  %22 = alloca { <2 x float>, float }, align 4
  %23 = alloca { <2 x float>, float }, align 8
  %24 = alloca %union.CgmVec3, align 4
  %25 = alloca { <2 x float>, float }, align 4
  %26 = alloca { <2 x float>, float }, align 4
  %27 = alloca { <2 x float>, float }, align 8
  %28 = alloca %union.CgmVec3, align 4
  %29 = alloca { <2 x float>, float }, align 4
  %30 = alloca { <2 x float>, float }, align 4
  %31 = alloca { <2 x float>, float }, align 8
  %32 = alloca %union.CgmVec3, align 4
  %33 = alloca { <2 x float>, float }, align 4
  %34 = alloca { <2 x float>, float }, align 4
  %35 = alloca { <2 x float>, float }, align 8
  %36 = alloca %union.CgmVec3, align 4
  %37 = alloca { <2 x float>, float }, align 4
  %38 = alloca { <2 x float>, float }, align 4
  %39 = alloca { <2 x float>, float }, align 8
  %40 = alloca %union.CgmVec3, align 4
  %41 = alloca %union.CgmVec3, align 4
  %42 = alloca { <2 x float>, float }, align 4
  %43 = alloca { <2 x float>, float }, align 4
  %44 = alloca { <2 x float>, float }, align 8
  %45 = alloca { <2 x float>, float }, align 4
  %46 = alloca { <2 x float>, float }, align 8
  %47 = alloca %union.CgmVec3, align 4
  %48 = alloca %union.CgmVec3, align 4
  %49 = alloca %union.CgmVec3, align 4
  %50 = alloca [9 x [2 x %union.CgmVec3]], align 16
  %51 = alloca [4 x %union.CgmVec3], align 16
  %52 = alloca %union.CgmVec3, align 4
  %53 = alloca float, align 4
  %54 = alloca i32, align 4
  %55 = alloca i32, align 4
  %56 = alloca %union.CgmVec3, align 4
  %57 = alloca %union.CgmVec3, align 4
  %58 = alloca { <2 x float>, float }, align 4
  %59 = alloca { <2 x float>, float }, align 4
  %60 = alloca { <2 x float>, float }, align 8
  %61 = alloca float, align 4
  %62 = alloca { <2 x float>, float }, align 4
  %63 = alloca { <2 x float>, float }, align 4
  %64 = alloca %union.CgmVec3, align 4
  %65 = alloca { <2 x float>, float }, align 4
  %66 = alloca { <2 x float>, float }, align 8
  %67 = alloca float, align 4
  %68 = alloca { <2 x float>, float }, align 4
  %69 = alloca { <2 x float>, float }, align 4
  %70 = alloca float, align 4
  %71 = alloca { <2 x float>, float }, align 4
  %72 = alloca { <2 x float>, float }, align 4
  %73 = alloca float, align 4
  %74 = alloca { <2 x float>, float }, align 4
  %75 = alloca { <2 x float>, float }, align 4
  %76 = alloca float, align 4
  %77 = alloca { <2 x float>, float }, align 4
  %78 = alloca { <2 x float>, float }, align 4
  %79 = alloca { <2 x float>, float }, align 4
  %80 = alloca { <2 x float>, float }, align 4
  %81 = alloca { <2 x float>, float }, align 4
  %82 = alloca { <2 x float>, float }, align 4
  %83 = alloca float, align 4
  %84 = alloca float, align 4
  %85 = alloca float, align 4
  %86 = alloca float, align 4
  %87 = alloca %union.CgmVec3, align 4
  %88 = alloca i1, align 1
  %89 = alloca { <2 x float>, float }, align 4
  %90 = alloca { <2 x float>, float }, align 8
  %91 = alloca float, align 4
  %92 = alloca { <2 x float>, float }, align 4
  %93 = alloca { <2 x float>, float }, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i8 %4, ptr %11, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #5
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = call { <2 x float>, float } @CgmAabb3d_center(ptr noundef %94)
  %96 = getelementptr inbounds %union.CgmVec3, ptr %12, i32 0, i32 0
  store { <2 x float>, float } %95, ptr %13, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %96, ptr align 8 %13, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #5
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = call { <2 x float>, float } @CgmAabb3d_half_size(ptr noundef %97)
  %99 = getelementptr inbounds %union.CgmVec3, ptr %14, i32 0, i32 0
  store { <2 x float>, float } %98, ptr %15, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %99, ptr align 8 %15, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #5
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.anon.9, ptr %100, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %101, i64 12, i1 false)
  %102 = getelementptr inbounds { <2 x float>, float }, ptr %17, i32 0, i32 0
  %103 = load <2 x float>, ptr %102, align 4
  %104 = getelementptr inbounds { <2 x float>, float }, ptr %17, i32 0, i32 1
  %105 = load float, ptr %104, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %12, i64 12, i1 false)
  %106 = getelementptr inbounds { <2 x float>, float }, ptr %18, i32 0, i32 0
  %107 = load <2 x float>, ptr %106, align 4
  %108 = getelementptr inbounds { <2 x float>, float }, ptr %18, i32 0, i32 1
  %109 = load float, ptr %108, align 4
  %110 = call { <2 x float>, float } @CgmVec3_sub(<2 x float> %103, float %105, <2 x float> %107, float %109)
  %111 = getelementptr inbounds %union.CgmVec3, ptr %16, i32 0, i32 0
  store { <2 x float>, float } %110, ptr %19, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %111, ptr align 8 %19, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #5
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.anon.9, ptr %112, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %113, i64 12, i1 false)
  %114 = getelementptr inbounds { <2 x float>, float }, ptr %21, i32 0, i32 0
  %115 = load <2 x float>, ptr %114, align 4
  %116 = getelementptr inbounds { <2 x float>, float }, ptr %21, i32 0, i32 1
  %117 = load float, ptr %116, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %12, i64 12, i1 false)
  %118 = getelementptr inbounds { <2 x float>, float }, ptr %22, i32 0, i32 0
  %119 = load <2 x float>, ptr %118, align 4
  %120 = getelementptr inbounds { <2 x float>, float }, ptr %22, i32 0, i32 1
  %121 = load float, ptr %120, align 4
  %122 = call { <2 x float>, float } @CgmVec3_sub(<2 x float> %115, float %117, <2 x float> %119, float %121)
  %123 = getelementptr inbounds %union.CgmVec3, ptr %20, i32 0, i32 0
  store { <2 x float>, float } %122, ptr %23, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %123, ptr align 8 %23, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #5
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.anon.9, ptr %124, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %125, i64 12, i1 false)
  %126 = getelementptr inbounds { <2 x float>, float }, ptr %25, i32 0, i32 0
  %127 = load <2 x float>, ptr %126, align 4
  %128 = getelementptr inbounds { <2 x float>, float }, ptr %25, i32 0, i32 1
  %129 = load float, ptr %128, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %12, i64 12, i1 false)
  %130 = getelementptr inbounds { <2 x float>, float }, ptr %26, i32 0, i32 0
  %131 = load <2 x float>, ptr %130, align 4
  %132 = getelementptr inbounds { <2 x float>, float }, ptr %26, i32 0, i32 1
  %133 = load float, ptr %132, align 4
  %134 = call { <2 x float>, float } @CgmVec3_sub(<2 x float> %127, float %129, <2 x float> %131, float %133)
  %135 = getelementptr inbounds %union.CgmVec3, ptr %24, i32 0, i32 0
  store { <2 x float>, float } %134, ptr %27, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %135, ptr align 8 %27, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %20, i64 12, i1 false)
  %136 = getelementptr inbounds { <2 x float>, float }, ptr %29, i32 0, i32 0
  %137 = load <2 x float>, ptr %136, align 4
  %138 = getelementptr inbounds { <2 x float>, float }, ptr %29, i32 0, i32 1
  %139 = load float, ptr %138, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %16, i64 12, i1 false)
  %140 = getelementptr inbounds { <2 x float>, float }, ptr %30, i32 0, i32 0
  %141 = load <2 x float>, ptr %140, align 4
  %142 = getelementptr inbounds { <2 x float>, float }, ptr %30, i32 0, i32 1
  %143 = load float, ptr %142, align 4
  %144 = call { <2 x float>, float } @CgmVec3_sub(<2 x float> %137, float %139, <2 x float> %141, float %143)
  %145 = getelementptr inbounds %union.CgmVec3, ptr %28, i32 0, i32 0
  store { <2 x float>, float } %144, ptr %31, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %145, ptr align 8 %31, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %24, i64 12, i1 false)
  %146 = getelementptr inbounds { <2 x float>, float }, ptr %33, i32 0, i32 0
  %147 = load <2 x float>, ptr %146, align 4
  %148 = getelementptr inbounds { <2 x float>, float }, ptr %33, i32 0, i32 1
  %149 = load float, ptr %148, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %20, i64 12, i1 false)
  %150 = getelementptr inbounds { <2 x float>, float }, ptr %34, i32 0, i32 0
  %151 = load <2 x float>, ptr %150, align 4
  %152 = getelementptr inbounds { <2 x float>, float }, ptr %34, i32 0, i32 1
  %153 = load float, ptr %152, align 4
  %154 = call { <2 x float>, float } @CgmVec3_sub(<2 x float> %147, float %149, <2 x float> %151, float %153)
  %155 = getelementptr inbounds %union.CgmVec3, ptr %32, i32 0, i32 0
  store { <2 x float>, float } %154, ptr %35, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %155, ptr align 8 %35, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %36) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %16, i64 12, i1 false)
  %156 = getelementptr inbounds { <2 x float>, float }, ptr %37, i32 0, i32 0
  %157 = load <2 x float>, ptr %156, align 4
  %158 = getelementptr inbounds { <2 x float>, float }, ptr %37, i32 0, i32 1
  %159 = load float, ptr %158, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 %24, i64 12, i1 false)
  %160 = getelementptr inbounds { <2 x float>, float }, ptr %38, i32 0, i32 0
  %161 = load <2 x float>, ptr %160, align 4
  %162 = getelementptr inbounds { <2 x float>, float }, ptr %38, i32 0, i32 1
  %163 = load float, ptr %162, align 4
  %164 = call { <2 x float>, float } @CgmVec3_sub(<2 x float> %157, float %159, <2 x float> %161, float %163)
  %165 = getelementptr inbounds %union.CgmVec3, ptr %36, i32 0, i32 0
  store { <2 x float>, float } %164, ptr %39, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %165, ptr align 8 %39, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %40) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %28, i64 12, i1 false)
  %166 = getelementptr inbounds { <2 x float>, float }, ptr %42, i32 0, i32 0
  %167 = load <2 x float>, ptr %166, align 4
  %168 = getelementptr inbounds { <2 x float>, float }, ptr %42, i32 0, i32 1
  %169 = load float, ptr %168, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %32, i64 12, i1 false)
  %170 = getelementptr inbounds { <2 x float>, float }, ptr %43, i32 0, i32 0
  %171 = load <2 x float>, ptr %170, align 4
  %172 = getelementptr inbounds { <2 x float>, float }, ptr %43, i32 0, i32 1
  %173 = load float, ptr %172, align 4
  %174 = call { <2 x float>, float } @CgmVec3_mul_cross(<2 x float> %167, float %169, <2 x float> %171, float %173)
  %175 = getelementptr inbounds %union.CgmVec3, ptr %41, i32 0, i32 0
  store { <2 x float>, float } %174, ptr %44, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %175, ptr align 8 %44, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %41, i64 12, i1 false)
  %176 = getelementptr inbounds { <2 x float>, float }, ptr %45, i32 0, i32 0
  %177 = load <2 x float>, ptr %176, align 4
  %178 = getelementptr inbounds { <2 x float>, float }, ptr %45, i32 0, i32 1
  %179 = load float, ptr %178, align 4
  %180 = call { <2 x float>, float } @CgmVec3_norm(<2 x float> %177, float %179)
  %181 = getelementptr inbounds %union.CgmVec3, ptr %40, i32 0, i32 0
  store { <2 x float>, float } %180, ptr %46, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %181, ptr align 8 %46, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %47) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 4 @__const.cgm_3d_aabb_vs_triangle.u0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %48) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 4 @__const.cgm_3d_aabb_vs_triangle.u1, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %49) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 4 @__const.cgm_3d_aabb_vs_triangle.u2, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 216, ptr %50) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 4 %47, i64 12, i1 false), !tbaa.struct !10
  %182 = getelementptr inbounds %union.CgmVec3, ptr %50, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %182, ptr align 4 %28, i64 12, i1 false), !tbaa.struct !10
  %183 = getelementptr inbounds [2 x %union.CgmVec3], ptr %50, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %183, ptr align 4 %47, i64 12, i1 false), !tbaa.struct !10
  %184 = getelementptr inbounds %union.CgmVec3, ptr %183, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %184, ptr align 4 %32, i64 12, i1 false), !tbaa.struct !10
  %185 = getelementptr inbounds [2 x %union.CgmVec3], ptr %50, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %185, ptr align 4 %47, i64 12, i1 false), !tbaa.struct !10
  %186 = getelementptr inbounds %union.CgmVec3, ptr %185, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %186, ptr align 4 %36, i64 12, i1 false), !tbaa.struct !10
  %187 = getelementptr inbounds [2 x %union.CgmVec3], ptr %50, i64 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %187, ptr align 4 %48, i64 12, i1 false), !tbaa.struct !10
  %188 = getelementptr inbounds %union.CgmVec3, ptr %187, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %188, ptr align 4 %28, i64 12, i1 false), !tbaa.struct !10
  %189 = getelementptr inbounds [2 x %union.CgmVec3], ptr %50, i64 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %189, ptr align 4 %48, i64 12, i1 false), !tbaa.struct !10
  %190 = getelementptr inbounds %union.CgmVec3, ptr %189, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %190, ptr align 4 %32, i64 12, i1 false), !tbaa.struct !10
  %191 = getelementptr inbounds [2 x %union.CgmVec3], ptr %50, i64 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %191, ptr align 4 %48, i64 12, i1 false), !tbaa.struct !10
  %192 = getelementptr inbounds %union.CgmVec3, ptr %191, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %192, ptr align 4 %36, i64 12, i1 false), !tbaa.struct !10
  %193 = getelementptr inbounds [2 x %union.CgmVec3], ptr %50, i64 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %193, ptr align 4 %49, i64 12, i1 false), !tbaa.struct !10
  %194 = getelementptr inbounds %union.CgmVec3, ptr %193, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %194, ptr align 4 %28, i64 12, i1 false), !tbaa.struct !10
  %195 = getelementptr inbounds [2 x %union.CgmVec3], ptr %50, i64 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %195, ptr align 4 %49, i64 12, i1 false), !tbaa.struct !10
  %196 = getelementptr inbounds %union.CgmVec3, ptr %195, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %196, ptr align 4 %32, i64 12, i1 false), !tbaa.struct !10
  %197 = getelementptr inbounds [2 x %union.CgmVec3], ptr %50, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %197, ptr align 4 %49, i64 12, i1 false), !tbaa.struct !10
  %198 = getelementptr inbounds %union.CgmVec3, ptr %197, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %198, ptr align 4 %36, i64 12, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.start.p0(i64 48, ptr %51) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %51, ptr align 4 %40, i64 12, i1 false), !tbaa.struct !10
  %199 = getelementptr inbounds %union.CgmVec3, ptr %51, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %199, ptr align 4 %47, i64 12, i1 false), !tbaa.struct !10
  %200 = getelementptr inbounds %union.CgmVec3, ptr %51, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %200, ptr align 4 %48, i64 12, i1 false), !tbaa.struct !10
  %201 = getelementptr inbounds %union.CgmVec3, ptr %51, i64 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %201, ptr align 4 %49, i64 12, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.start.p0(i64 12, ptr %52) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #5
  store float 0x7FF0000000000000, ptr %53, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #5
  store i32 0, ptr %54, align 4, !tbaa !13
  br label %202

202:                                              ; preds = %370, %5
  %203 = load i32, ptr %54, align 4, !tbaa !13
  %204 = icmp ult i32 %203, 13
  br i1 %204, label %206, label %205

205:                                              ; preds = %202
  store i32 2, ptr %55, align 4
  br label %373

206:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 12, ptr %56) #5
  %207 = load i32, ptr %54, align 4, !tbaa !13
  %208 = icmp ult i32 %207, 9
  br i1 %208, label %209, label %251

209:                                              ; preds = %206
  %210 = load i32, ptr %54, align 4, !tbaa !13
  %211 = zext i32 %210 to i64
  %212 = getelementptr inbounds [9 x [2 x %union.CgmVec3]], ptr %50, i64 0, i64 %211
  %213 = getelementptr inbounds [2 x %union.CgmVec3], ptr %212, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %56, ptr align 8 %213, i64 12, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.start.p0(i64 12, ptr %57) #5
  %214 = load i32, ptr %54, align 4, !tbaa !13
  %215 = zext i32 %214 to i64
  %216 = getelementptr inbounds [9 x [2 x %union.CgmVec3]], ptr %50, i64 0, i64 %215
  %217 = getelementptr inbounds [2 x %union.CgmVec3], ptr %216, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %58, ptr align 4 %56, i64 12, i1 false)
  %218 = getelementptr inbounds { <2 x float>, float }, ptr %58, i32 0, i32 0
  %219 = load <2 x float>, ptr %218, align 4
  %220 = getelementptr inbounds { <2 x float>, float }, ptr %58, i32 0, i32 1
  %221 = load float, ptr %220, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %59, ptr align 4 %217, i64 12, i1 false)
  %222 = getelementptr inbounds { <2 x float>, float }, ptr %59, i32 0, i32 0
  %223 = load <2 x float>, ptr %222, align 4
  %224 = getelementptr inbounds { <2 x float>, float }, ptr %59, i32 0, i32 1
  %225 = load float, ptr %224, align 4
  %226 = call { <2 x float>, float } @CgmVec3_mul_cross(<2 x float> %219, float %221, <2 x float> %223, float %225)
  %227 = getelementptr inbounds %union.CgmVec3, ptr %57, i32 0, i32 0
  store { <2 x float>, float } %226, ptr %60, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %227, ptr align 8 %60, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %62, ptr align 4 %57, i64 12, i1 false)
  %228 = getelementptr inbounds { <2 x float>, float }, ptr %62, i32 0, i32 0
  %229 = load <2 x float>, ptr %228, align 4
  %230 = getelementptr inbounds { <2 x float>, float }, ptr %62, i32 0, i32 1
  %231 = load float, ptr %230, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %63, ptr align 4 %57, i64 12, i1 false)
  %232 = getelementptr inbounds { <2 x float>, float }, ptr %63, i32 0, i32 0
  %233 = load <2 x float>, ptr %232, align 4
  %234 = getelementptr inbounds { <2 x float>, float }, ptr %63, i32 0, i32 1
  %235 = load float, ptr %234, align 4
  %236 = call float @CgmVec3_dot(<2 x float> %229, float %231, <2 x float> %233, float %235)
  store float %236, ptr %61, align 4, !tbaa !11
  %237 = load float, ptr %61, align 4, !tbaa !11
  %238 = call zeroext i8 @cgm_approx_eq(float noundef %237, float noundef 0.000000e+00)
  %239 = icmp ne i8 %238, 0
  br i1 %239, label %240, label %241

240:                                              ; preds = %209
  store i32 4, ptr %55, align 4
  br label %248

241:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 12, ptr %64) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %65, ptr align 4 %57, i64 12, i1 false)
  %242 = getelementptr inbounds { <2 x float>, float }, ptr %65, i32 0, i32 0
  %243 = load <2 x float>, ptr %242, align 4
  %244 = getelementptr inbounds { <2 x float>, float }, ptr %65, i32 0, i32 1
  %245 = load float, ptr %244, align 4
  %246 = call { <2 x float>, float } @CgmVec3_norm(<2 x float> %243, float %245)
  %247 = getelementptr inbounds %union.CgmVec3, ptr %64, i32 0, i32 0
  store { <2 x float>, float } %246, ptr %66, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %247, ptr align 8 %66, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %56, ptr align 4 %64, i64 12, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 12, ptr %64) #5
  store i32 0, ptr %55, align 4
  br label %248

248:                                              ; preds = %241, %240
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %57) #5
  %249 = load i32, ptr %55, align 4
  switch i32 %249, label %367 [
    i32 0, label %250
  ]

250:                                              ; preds = %248
  br label %256

251:                                              ; preds = %206
  %252 = load i32, ptr %54, align 4, !tbaa !13
  %253 = sub i32 %252, 9
  %254 = zext i32 %253 to i64
  %255 = getelementptr inbounds [4 x %union.CgmVec3], ptr %51, i64 0, i64 %254
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %56, ptr align 4 %255, i64 12, i1 false), !tbaa.struct !10
  br label %256

256:                                              ; preds = %251, %250
  call void @llvm.lifetime.start.p0(i64 4, ptr %67) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %68, ptr align 4 %16, i64 12, i1 false)
  %257 = getelementptr inbounds { <2 x float>, float }, ptr %68, i32 0, i32 0
  %258 = load <2 x float>, ptr %257, align 4
  %259 = getelementptr inbounds { <2 x float>, float }, ptr %68, i32 0, i32 1
  %260 = load float, ptr %259, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %69, ptr align 4 %56, i64 12, i1 false)
  %261 = getelementptr inbounds { <2 x float>, float }, ptr %69, i32 0, i32 0
  %262 = load <2 x float>, ptr %261, align 4
  %263 = getelementptr inbounds { <2 x float>, float }, ptr %69, i32 0, i32 1
  %264 = load float, ptr %263, align 4
  %265 = call float @CgmVec3_dot(<2 x float> %258, float %260, <2 x float> %262, float %264)
  store float %265, ptr %67, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %70) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %71, ptr align 4 %20, i64 12, i1 false)
  %266 = getelementptr inbounds { <2 x float>, float }, ptr %71, i32 0, i32 0
  %267 = load <2 x float>, ptr %266, align 4
  %268 = getelementptr inbounds { <2 x float>, float }, ptr %71, i32 0, i32 1
  %269 = load float, ptr %268, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %72, ptr align 4 %56, i64 12, i1 false)
  %270 = getelementptr inbounds { <2 x float>, float }, ptr %72, i32 0, i32 0
  %271 = load <2 x float>, ptr %270, align 4
  %272 = getelementptr inbounds { <2 x float>, float }, ptr %72, i32 0, i32 1
  %273 = load float, ptr %272, align 4
  %274 = call float @CgmVec3_dot(<2 x float> %267, float %269, <2 x float> %271, float %273)
  store float %274, ptr %70, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %73) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %74, ptr align 4 %24, i64 12, i1 false)
  %275 = getelementptr inbounds { <2 x float>, float }, ptr %74, i32 0, i32 0
  %276 = load <2 x float>, ptr %275, align 4
  %277 = getelementptr inbounds { <2 x float>, float }, ptr %74, i32 0, i32 1
  %278 = load float, ptr %277, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %75, ptr align 4 %56, i64 12, i1 false)
  %279 = getelementptr inbounds { <2 x float>, float }, ptr %75, i32 0, i32 0
  %280 = load <2 x float>, ptr %279, align 4
  %281 = getelementptr inbounds { <2 x float>, float }, ptr %75, i32 0, i32 1
  %282 = load float, ptr %281, align 4
  %283 = call float @CgmVec3_dot(<2 x float> %276, float %278, <2 x float> %280, float %282)
  store float %283, ptr %73, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %76) #5
  %284 = getelementptr inbounds %struct.anon.0, ptr %14, i32 0, i32 0
  %285 = load float, ptr %284, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %77, ptr align 4 %47, i64 12, i1 false)
  %286 = getelementptr inbounds { <2 x float>, float }, ptr %77, i32 0, i32 0
  %287 = load <2 x float>, ptr %286, align 4
  %288 = getelementptr inbounds { <2 x float>, float }, ptr %77, i32 0, i32 1
  %289 = load float, ptr %288, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %78, ptr align 4 %56, i64 12, i1 false)
  %290 = getelementptr inbounds { <2 x float>, float }, ptr %78, i32 0, i32 0
  %291 = load <2 x float>, ptr %290, align 4
  %292 = getelementptr inbounds { <2 x float>, float }, ptr %78, i32 0, i32 1
  %293 = load float, ptr %292, align 4
  %294 = call float @CgmVec3_dot(<2 x float> %287, float %289, <2 x float> %291, float %293)
  %295 = call float @llvm.fabs.f32(float %294)
  %296 = getelementptr inbounds %struct.anon.0, ptr %14, i32 0, i32 1
  %297 = load float, ptr %296, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %79, ptr align 4 %48, i64 12, i1 false)
  %298 = getelementptr inbounds { <2 x float>, float }, ptr %79, i32 0, i32 0
  %299 = load <2 x float>, ptr %298, align 4
  %300 = getelementptr inbounds { <2 x float>, float }, ptr %79, i32 0, i32 1
  %301 = load float, ptr %300, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %80, ptr align 4 %56, i64 12, i1 false)
  %302 = getelementptr inbounds { <2 x float>, float }, ptr %80, i32 0, i32 0
  %303 = load <2 x float>, ptr %302, align 4
  %304 = getelementptr inbounds { <2 x float>, float }, ptr %80, i32 0, i32 1
  %305 = load float, ptr %304, align 4
  %306 = call float @CgmVec3_dot(<2 x float> %299, float %301, <2 x float> %303, float %305)
  %307 = call float @llvm.fabs.f32(float %306)
  %308 = fmul float %297, %307
  %309 = call float @llvm.fmuladd.f32(float %285, float %295, float %308)
  %310 = getelementptr inbounds %struct.anon.0, ptr %14, i32 0, i32 2
  %311 = load float, ptr %310, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %81, ptr align 4 %49, i64 12, i1 false)
  %312 = getelementptr inbounds { <2 x float>, float }, ptr %81, i32 0, i32 0
  %313 = load <2 x float>, ptr %312, align 4
  %314 = getelementptr inbounds { <2 x float>, float }, ptr %81, i32 0, i32 1
  %315 = load float, ptr %314, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %82, ptr align 4 %56, i64 12, i1 false)
  %316 = getelementptr inbounds { <2 x float>, float }, ptr %82, i32 0, i32 0
  %317 = load <2 x float>, ptr %316, align 4
  %318 = getelementptr inbounds { <2 x float>, float }, ptr %82, i32 0, i32 1
  %319 = load float, ptr %318, align 4
  %320 = call float @CgmVec3_dot(<2 x float> %313, float %315, <2 x float> %317, float %319)
  %321 = call float @llvm.fabs.f32(float %320)
  %322 = call float @llvm.fmuladd.f32(float %311, float %321, float %309)
  store float %322, ptr %76, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %83) #5
  %323 = load float, ptr %67, align 4, !tbaa !11
  %324 = load float, ptr %70, align 4, !tbaa !11
  %325 = call float @cgm_max(float noundef %323, float noundef %324)
  %326 = load float, ptr %73, align 4, !tbaa !11
  %327 = call float @cgm_max(float noundef %325, float noundef %326)
  store float %327, ptr %83, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %84) #5
  %328 = load float, ptr %67, align 4, !tbaa !11
  %329 = load float, ptr %70, align 4, !tbaa !11
  %330 = call float @cgm_min(float noundef %328, float noundef %329)
  %331 = load float, ptr %73, align 4, !tbaa !11
  %332 = call float @cgm_min(float noundef %330, float noundef %331)
  store float %332, ptr %84, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %85) #5
  %333 = load float, ptr %83, align 4, !tbaa !11
  %334 = fneg float %333
  %335 = load float, ptr %84, align 4, !tbaa !11
  %336 = call float @cgm_max(float noundef %334, float noundef %335)
  store float %336, ptr %85, align 4, !tbaa !11
  %337 = load float, ptr %85, align 4, !tbaa !11
  %338 = load float, ptr %76, align 4, !tbaa !11
  %339 = fcmp ogt float %337, %338
  br i1 %339, label %340, label %341

340:                                              ; preds = %256
  store i8 0, ptr %6, align 1
  store i32 1, ptr %55, align 4
  br label %366

341:                                              ; preds = %256
  call void @llvm.lifetime.start.p0(i64 4, ptr %86) #5
  %342 = load float, ptr %76, align 4, !tbaa !11
  %343 = load float, ptr %85, align 4, !tbaa !11
  %344 = fsub float %342, %343
  store float %344, ptr %86, align 4, !tbaa !11
  %345 = load float, ptr %86, align 4, !tbaa !11
  %346 = load float, ptr %53, align 4, !tbaa !11
  %347 = fcmp olt float %345, %346
  br i1 %347, label %348, label %365

348:                                              ; preds = %341
  %349 = load float, ptr %86, align 4, !tbaa !11
  store float %349, ptr %53, align 4, !tbaa !11
  %350 = load float, ptr %84, align 4, !tbaa !11
  %351 = load float, ptr %83, align 4, !tbaa !11
  %352 = load float, ptr %84, align 4, !tbaa !11
  %353 = fsub float %351, %352
  %354 = call float @llvm.fmuladd.f32(float %353, float 5.000000e-01, float %350)
  %355 = fcmp ogt float %354, 0.000000e+00
  store i1 false, ptr %88, align 1
  br i1 %355, label %356, label %363

356:                                              ; preds = %348
  call void @llvm.lifetime.start.p0(i64 12, ptr %87) #5
  store i1 true, ptr %88, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %89, ptr align 4 %56, i64 12, i1 false)
  %357 = getelementptr inbounds { <2 x float>, float }, ptr %89, i32 0, i32 0
  %358 = load <2 x float>, ptr %357, align 4
  %359 = getelementptr inbounds { <2 x float>, float }, ptr %89, i32 0, i32 1
  %360 = load float, ptr %359, align 4
  %361 = call { <2 x float>, float } @CgmVec3_neg(<2 x float> %358, float %360)
  %362 = getelementptr inbounds %union.CgmVec3, ptr %87, i32 0, i32 0
  store { <2 x float>, float } %361, ptr %90, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %362, ptr align 8 %90, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %52, ptr align 4 %87, i64 12, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 12, ptr %87) #5
  br label %364

363:                                              ; preds = %348
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %52, ptr align 4 %56, i64 12, i1 false), !tbaa.struct !10
  br label %364

364:                                              ; preds = %363, %356
  br label %365

365:                                              ; preds = %364, %341
  call void @llvm.lifetime.end.p0(i64 4, ptr %86) #5
  store i32 0, ptr %55, align 4
  br label %366

366:                                              ; preds = %365, %340
  call void @llvm.lifetime.end.p0(i64 4, ptr %85) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %84) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %83) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %76) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #5
  br label %367

367:                                              ; preds = %366, %248
  call void @llvm.lifetime.end.p0(i64 12, ptr %56) #5
  %368 = load i32, ptr %55, align 4
  switch i32 %368, label %373 [
    i32 0, label %369
    i32 4, label %370
  ]

369:                                              ; preds = %367
  br label %370

370:                                              ; preds = %369, %367
  %371 = load i32, ptr %54, align 4, !tbaa !13
  %372 = add i32 %371, 1
  store i32 %372, ptr %54, align 4, !tbaa !13
  br label %202, !llvm.loop !15

373:                                              ; preds = %367, %205
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #5
  %374 = load i32, ptr %55, align 4
  switch i32 %374, label %408 [
    i32 2, label %375
  ]

375:                                              ; preds = %373
  %376 = load i8, ptr %11, align 1, !tbaa !9
  %377 = icmp ne i8 %376, 0
  br i1 %377, label %378, label %396

378:                                              ; preds = %375
  call void @llvm.lifetime.start.p0(i64 4, ptr %91) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %92, ptr align 4 %52, i64 12, i1 false)
  %379 = getelementptr inbounds { <2 x float>, float }, ptr %92, i32 0, i32 0
  %380 = load <2 x float>, ptr %379, align 4
  %381 = getelementptr inbounds { <2 x float>, float }, ptr %92, i32 0, i32 1
  %382 = load float, ptr %381, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %93, ptr align 4 %40, i64 12, i1 false)
  %383 = getelementptr inbounds { <2 x float>, float }, ptr %93, i32 0, i32 0
  %384 = load <2 x float>, ptr %383, align 4
  %385 = getelementptr inbounds { <2 x float>, float }, ptr %93, i32 0, i32 1
  %386 = load float, ptr %385, align 4
  %387 = call float @CgmVec3_dot(<2 x float> %380, float %382, <2 x float> %384, float %386)
  store float %387, ptr %91, align 4, !tbaa !11
  %388 = load float, ptr %91, align 4, !tbaa !11
  %389 = fpext float %388 to double
  %390 = fcmp olt double %389, 0x3FE6A09E667E556E
  br i1 %390, label %391, label %392

391:                                              ; preds = %378
  store i8 0, ptr %6, align 1
  store i32 1, ptr %55, align 4
  br label %393

392:                                              ; preds = %378
  store i32 0, ptr %55, align 4
  br label %393

393:                                              ; preds = %392, %391
  call void @llvm.lifetime.end.p0(i64 4, ptr %91) #5
  %394 = load i32, ptr %55, align 4
  switch i32 %394, label %408 [
    i32 0, label %395
  ]

395:                                              ; preds = %393
  br label %396

396:                                              ; preds = %395, %375
  %397 = load ptr, ptr %9, align 8, !tbaa !5
  %398 = icmp ne ptr %397, null
  br i1 %398, label %399, label %401

399:                                              ; preds = %396
  %400 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %400, ptr align 4 %52, i64 12, i1 false), !tbaa.struct !10
  br label %401

401:                                              ; preds = %399, %396
  %402 = load ptr, ptr %10, align 8, !tbaa !5
  %403 = icmp ne ptr %402, null
  br i1 %403, label %404, label %407

404:                                              ; preds = %401
  %405 = load float, ptr %53, align 4, !tbaa !11
  %406 = load ptr, ptr %10, align 8, !tbaa !5
  store float %405, ptr %406, align 4, !tbaa !11
  br label %407

407:                                              ; preds = %404, %401
  store i8 1, ptr %6, align 1
  store i32 1, ptr %55, align 4
  br label %408

408:                                              ; preds = %407, %393, %373
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %52) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %51) #5
  call void @llvm.lifetime.end.p0(i64 216, ptr %50) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %49) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %48) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %47) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #5
  %409 = load i8, ptr %6, align 1
  ret i8 %409
}

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{i64 0, i64 12, !9}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%union.CgmVec3 = type { %struct.anon.0 }
%struct.anon.0 = type { float, float, float }

@__const.cgm_3d_aabb_vs_triangle.u0 = external hidden unnamed_addr constant %union.CgmVec3, align 4
@__const.cgm_3d_aabb_vs_triangle.u1 = external hidden unnamed_addr constant %union.CgmVec3, align 4
@__const.cgm_3d_aabb_vs_triangle.u2 = external hidden unnamed_addr constant %union.CgmVec3, align 4

; Function Attrs: nounwind uwtable
declare dso_local float @cgm_min(float noundef, float noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local float @cgm_max(float noundef, float noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @cgm_approx_eq(float noundef, float noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #1

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmVec3_sub(<2 x float>, float, <2 x float>, float) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmVec3_neg(<2 x float>, float) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmVec3_norm(<2 x float>, float) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local float @CgmVec3_dot(<2 x float>, float, <2 x float>, float) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmVec3_mul_cross(<2 x float>, float, <2 x float>, float) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmAabb3d_half_size(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @CgmAabb3d_center(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i8 @cgm_3d_aabb_vs_triangle(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef writeonly %2, ptr noundef writeonly %3, i8 noundef zeroext %4) local_unnamed_addr #3 {
  %6 = alloca [9 x [2 x %union.CgmVec3]], align 16
  %7 = alloca [4 x %union.CgmVec3], align 16
  %8 = tail call { <2 x float>, float } @CgmAabb3d_center(ptr noundef %0)
  %.fca.0.extract246 = extractvalue { <2 x float>, float } %8, 0
  %.fca.1.extract247 = extractvalue { <2 x float>, float } %8, 1
  %9 = tail call { <2 x float>, float } @CgmAabb3d_half_size(ptr noundef %0)
  %.fca.0.extract240 = extractvalue { <2 x float>, float } %9, 0
  %.fca.1.extract241 = extractvalue { <2 x float>, float } %9, 1
  %.sroa.0234.0.copyload = load <2 x float>, ptr %1, align 4
  %.sroa.2235.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 8
  %.sroa.2235.0.copyload = load float, ptr %.sroa.2235.0..sroa_idx, align 4
  %10 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.sroa.0234.0.copyload, float %.sroa.2235.0.copyload, <2 x float> %.fca.0.extract246, float %.fca.1.extract247)
  %.fca.0.extract228 = extractvalue { <2 x float>, float } %10, 0
  %.fca.1.extract229 = extractvalue { <2 x float>, float } %10, 1
  %11 = getelementptr inbounds i8, ptr %1, i64 12
  %.sroa.0222.0.copyload = load <2 x float>, ptr %11, align 4
  %.sroa.2223.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 20
  %.sroa.2223.0.copyload = load float, ptr %.sroa.2223.0..sroa_idx, align 4
  %12 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.sroa.0222.0.copyload, float %.sroa.2223.0.copyload, <2 x float> %.fca.0.extract246, float %.fca.1.extract247)
  %.fca.0.extract216 = extractvalue { <2 x float>, float } %12, 0
  %.fca.1.extract217 = extractvalue { <2 x float>, float } %12, 1
  %13 = getelementptr inbounds i8, ptr %1, i64 24
  %.sroa.0210.0.copyload = load <2 x float>, ptr %13, align 4
  %.sroa.2211.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 32
  %.sroa.2211.0.copyload = load float, ptr %.sroa.2211.0..sroa_idx, align 4
  %14 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.sroa.0210.0.copyload, float %.sroa.2211.0.copyload, <2 x float> %.fca.0.extract246, float %.fca.1.extract247)
  %.fca.0.extract204 = extractvalue { <2 x float>, float } %14, 0
  %.fca.1.extract205 = extractvalue { <2 x float>, float } %14, 1
  %15 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.fca.0.extract216, float %.fca.1.extract217, <2 x float> %.fca.0.extract228, float %.fca.1.extract229)
  %.fca.0.extract188 = extractvalue { <2 x float>, float } %15, 0
  %.fca.1.extract189 = extractvalue { <2 x float>, float } %15, 1
  %16 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.fca.0.extract204, float %.fca.1.extract205, <2 x float> %.fca.0.extract216, float %.fca.1.extract217)
  %.fca.0.extract173 = extractvalue { <2 x float>, float } %16, 0
  %.fca.1.extract174 = extractvalue { <2 x float>, float } %16, 1
  %17 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.fca.0.extract228, float %.fca.1.extract229, <2 x float> %.fca.0.extract204, float %.fca.1.extract205)
  %.fca.0.extract157 = extractvalue { <2 x float>, float } %17, 0
  %.fca.1.extract158 = extractvalue { <2 x float>, float } %17, 1
  %18 = tail call { <2 x float>, float } @CgmVec3_mul_cross(<2 x float> %.fca.0.extract188, float %.fca.1.extract189, <2 x float> %.fca.0.extract173, float %.fca.1.extract174)
  %.fca.0.extract146 = extractvalue { <2 x float>, float } %18, 0
  %.fca.1.extract147 = extractvalue { <2 x float>, float } %18, 1
  %19 = tail call { <2 x float>, float } @CgmVec3_norm(<2 x float> %.fca.0.extract146, float %.fca.1.extract147)
  %.fca.0.extract140 = extractvalue { <2 x float>, float } %19, 0
  %.fca.1.extract141 = extractvalue { <2 x float>, float } %19, 1
  %.sroa.0127.0.copyload = load <2 x float>, ptr @__const.cgm_3d_aabb_vs_triangle.u0, align 4
  %.sroa.8132.0.copyload = load float, ptr getelementptr inbounds (i8, ptr @__const.cgm_3d_aabb_vs_triangle.u0, i64 8), align 4
  %.sroa.0114.0.copyload = load <2 x float>, ptr @__const.cgm_3d_aabb_vs_triangle.u1, align 4
  %.sroa.8119.0.copyload = load float, ptr getelementptr inbounds (i8, ptr @__const.cgm_3d_aabb_vs_triangle.u1, i64 8), align 4
  %.sroa.0102.0.copyload = load <2 x float>, ptr @__const.cgm_3d_aabb_vs_triangle.u2, align 4
  %.sroa.8.0.copyload = load float, ptr getelementptr inbounds (i8, ptr @__const.cgm_3d_aabb_vs_triangle.u2, i64 8), align 4
  call void @llvm.lifetime.start.p0(i64 216, ptr nonnull %6) #4
  store <2 x float> %.sroa.0127.0.copyload, ptr %6, align 16
  %.sroa.8132.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  store float %.sroa.8132.0.copyload, ptr %.sroa.8132.0..sroa_idx, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %6, i64 12
  store <2 x float> %.fca.0.extract188, ptr %20, align 4
  %.sroa.7199.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 20
  store float %.fca.1.extract189, ptr %.sroa.7199.0..sroa_idx, align 4, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %6, i64 24
  store <2 x float> %.sroa.0127.0.copyload, ptr %21, align 8
  %.sroa.8132.0..sroa_idx134 = getelementptr inbounds i8, ptr %6, i64 32
  store float %.sroa.8132.0.copyload, ptr %.sroa.8132.0..sroa_idx134, align 16, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %6, i64 36
  store <2 x float> %.fca.0.extract173, ptr %22, align 4
  %.sroa.7.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 44
  store float %.fca.1.extract174, ptr %.sroa.7.0..sroa_idx, align 4, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %6, i64 48
  store <2 x float> %.sroa.0127.0.copyload, ptr %23, align 16
  %.sroa.8132.0..sroa_idx136 = getelementptr inbounds i8, ptr %6, i64 56
  store float %.sroa.8132.0.copyload, ptr %.sroa.8132.0..sroa_idx136, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %6, i64 60
  store <2 x float> %.fca.0.extract157, ptr %24, align 4
  %.sroa.6168.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 68
  store float %.fca.1.extract158, ptr %.sroa.6168.0..sroa_idx, align 4, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %6, i64 72
  store <2 x float> %.sroa.0114.0.copyload, ptr %25, align 8
  %.sroa.8119.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 80
  store float %.sroa.8119.0.copyload, ptr %.sroa.8119.0..sroa_idx, align 16, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %6, i64 84
  store <2 x float> %.fca.0.extract188, ptr %26, align 4
  %.sroa.7199.0..sroa_idx200 = getelementptr inbounds i8, ptr %6, i64 92
  store float %.fca.1.extract189, ptr %.sroa.7199.0..sroa_idx200, align 4, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %6, i64 96
  store <2 x float> %.sroa.0114.0.copyload, ptr %27, align 16
  %.sroa.8119.0..sroa_idx121 = getelementptr inbounds i8, ptr %6, i64 104
  store float %.sroa.8119.0.copyload, ptr %.sroa.8119.0..sroa_idx121, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %6, i64 108
  store <2 x float> %.fca.0.extract173, ptr %28, align 4
  %.sroa.7.0..sroa_idx184 = getelementptr inbounds i8, ptr %6, i64 116
  store float %.fca.1.extract174, ptr %.sroa.7.0..sroa_idx184, align 4, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %6, i64 120
  store <2 x float> %.sroa.0114.0.copyload, ptr %29, align 8
  %.sroa.8119.0..sroa_idx123 = getelementptr inbounds i8, ptr %6, i64 128
  store float %.sroa.8119.0.copyload, ptr %.sroa.8119.0..sroa_idx123, align 16, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %6, i64 132
  store <2 x float> %.fca.0.extract157, ptr %30, align 4
  %.sroa.6168.0..sroa_idx169 = getelementptr inbounds i8, ptr %6, i64 140
  store float %.fca.1.extract158, ptr %.sroa.6168.0..sroa_idx169, align 4, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %6, i64 144
  store <2 x float> %.sroa.0102.0.copyload, ptr %31, align 16
  %.sroa.8.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 152
  store float %.sroa.8.0.copyload, ptr %.sroa.8.0..sroa_idx, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %6, i64 156
  store <2 x float> %.fca.0.extract188, ptr %32, align 4
  %.sroa.7199.0..sroa_idx202 = getelementptr inbounds i8, ptr %6, i64 164
  store float %.fca.1.extract189, ptr %.sroa.7199.0..sroa_idx202, align 4, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %6, i64 168
  store <2 x float> %.sroa.0102.0.copyload, ptr %33, align 8
  %.sroa.8.0..sroa_idx108 = getelementptr inbounds i8, ptr %6, i64 176
  store float %.sroa.8.0.copyload, ptr %.sroa.8.0..sroa_idx108, align 16, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %6, i64 180
  store <2 x float> %.fca.0.extract173, ptr %34, align 4
  %.sroa.7.0..sroa_idx186 = getelementptr inbounds i8, ptr %6, i64 188
  store float %.fca.1.extract174, ptr %.sroa.7.0..sroa_idx186, align 4, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %6, i64 192
  store <2 x float> %.sroa.0102.0.copyload, ptr %35, align 16
  %.sroa.8.0..sroa_idx110 = getelementptr inbounds i8, ptr %6, i64 200
  store float %.sroa.8.0.copyload, ptr %.sroa.8.0..sroa_idx110, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %6, i64 204
  store <2 x float> %.fca.0.extract157, ptr %36, align 4
  %.sroa.6168.0..sroa_idx171 = getelementptr inbounds i8, ptr %6, i64 212
  store float %.fca.1.extract158, ptr %.sroa.6168.0..sroa_idx171, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #4
  store <2 x float> %.fca.0.extract140, ptr %7, align 16
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  store float %.fca.1.extract141, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %7, i64 12
  store <2 x float> %.sroa.0127.0.copyload, ptr %37, align 4
  %.sroa.8132.0..sroa_idx138 = getelementptr inbounds i8, ptr %7, i64 20
  store float %.sroa.8132.0.copyload, ptr %.sroa.8132.0..sroa_idx138, align 4, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %7, i64 24
  store <2 x float> %.sroa.0114.0.copyload, ptr %38, align 8
  %.sroa.8119.0..sroa_idx125 = getelementptr inbounds i8, ptr %7, i64 32
  store float %.sroa.8119.0.copyload, ptr %.sroa.8119.0..sroa_idx125, align 16, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %7, i64 36
  store <2 x float> %.sroa.0102.0.copyload, ptr %39, align 4
  %.sroa.8.0..sroa_idx112 = getelementptr inbounds i8, ptr %7, i64 44
  store float %.sroa.8.0.copyload, ptr %.sroa.8.0..sroa_idx112, align 4, !tbaa !5
  %.sroa.0244.0.vec.extract = extractelement <2 x float> %.fca.0.extract240, i64 0
  %.sroa.0244.4.vec.extract = extractelement <2 x float> %.fca.0.extract240, i64 1
  br label %40

40:                                               ; preds = %5, %81
  %indvars.iv = phi i64 [ 0, %5 ], [ %indvars.iv.next, %81 ]
  %.sroa.6101.0309 = phi float [ undef, %5 ], [ %.sroa.6101.3.ph, %81 ]
  %.sroa.0100.0308 = phi <2 x float> [ undef, %5 ], [ %.sroa.0100.3.ph, %81 ]
  %.0265307 = phi float [ 0x7FF0000000000000, %5 ], [ %.3268.ph, %81 ]
  %41 = icmp ult i64 %indvars.iv, 9
  br i1 %41, label %42, label %49

42:                                               ; preds = %40
  %43 = getelementptr inbounds [9 x [2 x %union.CgmVec3]], ptr %6, i64 0, i64 %indvars.iv
  %.sroa.075.0.copyload = load <2 x float>, ptr %43, align 8
  %.sroa.14.0..sroa_idx = getelementptr inbounds i8, ptr %43, i64 8
  %.sroa.14.0.copyload = load float, ptr %.sroa.14.0..sroa_idx, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %43, i64 12
  %.sroa.068.0.copyload = load <2 x float>, ptr %44, align 4
  %.sroa.269.0..sroa_idx = getelementptr inbounds i8, ptr %43, i64 20
  %.sroa.269.0.copyload = load float, ptr %.sroa.269.0..sroa_idx, align 4
  %45 = tail call { <2 x float>, float } @CgmVec3_mul_cross(<2 x float> %.sroa.075.0.copyload, float %.sroa.14.0.copyload, <2 x float> %.sroa.068.0.copyload, float %.sroa.269.0.copyload)
  %.fca.0.extract64 = extractvalue { <2 x float>, float } %45, 0
  %.fca.1.extract65 = extractvalue { <2 x float>, float } %45, 1
  %46 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract64, float %.fca.1.extract65, <2 x float> %.fca.0.extract64, float %.fca.1.extract65)
  %47 = tail call zeroext i8 @cgm_approx_eq(float noundef %46, float noundef 0.000000e+00)
  %.not = icmp eq i8 %47, 0
  br i1 %.not, label %.thread, label %81

.thread:                                          ; preds = %42
  %48 = tail call { <2 x float>, float } @CgmVec3_norm(<2 x float> %.fca.0.extract64, float %.fca.1.extract65)
  %.fca.0.extract51 = extractvalue { <2 x float>, float } %48, 0
  %.fca.1.extract52 = extractvalue { <2 x float>, float } %48, 1
  br label %52

49:                                               ; preds = %40
  %50 = add nsw i64 %indvars.iv, -9
  %51 = getelementptr inbounds [4 x %union.CgmVec3], ptr %7, i64 0, i64 %50
  %.sroa.075.0.copyload83 = load <2 x float>, ptr %51, align 4
  %.sroa.14.0..sroa_idx85 = getelementptr inbounds i8, ptr %51, i64 8
  %.sroa.14.0.copyload86 = load float, ptr %.sroa.14.0..sroa_idx85, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %.thread, %49
  %.sroa.075.1 = phi <2 x float> [ %.sroa.075.0.copyload83, %49 ], [ %.fca.0.extract51, %.thread ]
  %.sroa.14.1 = phi float [ %.sroa.14.0.copyload86, %49 ], [ %.fca.1.extract52, %.thread ]
  %53 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract228, float %.fca.1.extract229, <2 x float> %.sroa.075.1, float %.sroa.14.1)
  %54 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract216, float %.fca.1.extract217, <2 x float> %.sroa.075.1, float %.sroa.14.1)
  %55 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract204, float %.fca.1.extract205, <2 x float> %.sroa.075.1, float %.sroa.14.1)
  %56 = tail call float @CgmVec3_dot(<2 x float> %.sroa.0127.0.copyload, float %.sroa.8132.0.copyload, <2 x float> %.sroa.075.1, float %.sroa.14.1)
  %57 = tail call float @llvm.fabs.f32(float %56)
  %58 = tail call float @CgmVec3_dot(<2 x float> %.sroa.0114.0.copyload, float %.sroa.8119.0.copyload, <2 x float> %.sroa.075.1, float %.sroa.14.1)
  %59 = tail call float @llvm.fabs.f32(float %58)
  %60 = fmul float %.sroa.0244.4.vec.extract, %59
  %61 = tail call float @llvm.fmuladd.f32(float %.sroa.0244.0.vec.extract, float %57, float %60)
  %62 = tail call float @CgmVec3_dot(<2 x float> %.sroa.0102.0.copyload, float %.sroa.8.0.copyload, <2 x float> %.sroa.075.1, float %.sroa.14.1)
  %63 = tail call float @llvm.fabs.f32(float %62)
  %64 = tail call float @llvm.fmuladd.f32(float %.fca.1.extract241, float %63, float %61)
  %65 = tail call float @cgm_max(float noundef %53, float noundef %54)
  %66 = tail call float @cgm_max(float noundef %65, float noundef %55)
  %67 = tail call float @cgm_min(float noundef %53, float noundef %54)
  %68 = tail call float @cgm_min(float noundef %67, float noundef %55)
  %69 = fneg float %66
  %70 = tail call float @cgm_max(float noundef %69, float noundef %68)
  %71 = fcmp ogt float %70, %64
  br i1 %71, label %.loopexit, label %72

72:                                               ; preds = %52
  %73 = fsub float %64, %70
  %74 = fcmp olt float %73, %.0265307
  br i1 %74, label %75, label %81

75:                                               ; preds = %72
  %76 = fsub float %66, %68
  %77 = tail call float @llvm.fmuladd.f32(float %76, float 5.000000e-01, float %68)
  %78 = fcmp ogt float %77, 0.000000e+00
  br i1 %78, label %79, label %81

79:                                               ; preds = %75
  %80 = tail call { <2 x float>, float } @CgmVec3_neg(<2 x float> %.sroa.075.1, float %.sroa.14.1)
  %.fca.0.extract = extractvalue { <2 x float>, float } %80, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %80, 1
  br label %81

81:                                               ; preds = %75, %79, %72, %42
  %.3268.ph = phi float [ %.0265307, %42 ], [ %73, %75 ], [ %.0265307, %72 ], [ %73, %79 ]
  %.sroa.0100.3.ph = phi <2 x float> [ %.sroa.0100.0308, %42 ], [ %.sroa.075.1, %75 ], [ %.sroa.0100.0308, %72 ], [ %.fca.0.extract, %79 ]
  %.sroa.6101.3.ph = phi float [ %.sroa.6101.0309, %42 ], [ %.sroa.14.1, %75 ], [ %.sroa.6101.0309, %72 ], [ %.fca.1.extract, %79 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond = icmp eq i64 %indvars.iv.next, 13
  br i1 %exitcond, label %82, label %40, !llvm.loop !8

82:                                               ; preds = %81
  %.not281 = icmp eq i8 %4, 0
  br i1 %.not281, label %87, label %83

83:                                               ; preds = %82
  %84 = tail call float @CgmVec3_dot(<2 x float> %.sroa.0100.3.ph, float %.sroa.6101.3.ph, <2 x float> %.fca.0.extract140, float %.fca.1.extract141)
  %85 = fpext float %84 to double
  %86 = fcmp uge double %85, 0x3FE6A09E667E556E
  br i1 %86, label %87, label %.loopexit

87:                                               ; preds = %83, %82
  %.not282 = icmp eq ptr %2, null
  br i1 %.not282, label %89, label %88

88:                                               ; preds = %87
  store <2 x float> %.sroa.0100.3.ph, ptr %2, align 4
  %.sroa.6101.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  store float %.sroa.6101.3.ph, ptr %.sroa.6101.0..sroa_idx, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %88, %87
  %.not283 = icmp eq ptr %3, null
  br i1 %.not283, label %.loopexit, label %90

90:                                               ; preds = %89
  store float %.3268.ph, ptr %3, align 4, !tbaa !10
  br label %.loopexit

.loopexit:                                        ; preds = %52, %89, %90, %83
  %.5 = phi i8 [ 0, %83 ], [ 1, %90 ], [ 1, %89 ], [ 0, %52 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 216, ptr nonnull %6) #4
  ret i8 %.5
}

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !6, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass