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

; 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.CgmCapsule3d = type { %union.CgmVec3, %union.CgmVec3, float, float }

@__const.cgm_3d_aabb_vs_capsule.u0 = external hidden unnamed_addr constant %union.CgmVec3, align 4
@__const.cgm_3d_aabb_vs_capsule.u1 = external hidden unnamed_addr constant %union.CgmVec3, align 4
@__const.cgm_3d_aabb_vs_capsule.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_add(<2 x float>, float, <2 x float>, float) #4

; 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_mul_scalar(<2 x float>, float, float noundef) #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 } @CgmVec3_clamp(<2 x float>, float, <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_capsule(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #4 {
  %5 = alloca i8, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %union.CgmVec3, align 4
  %11 = alloca { <2 x float>, float }, align 8
  %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 4
  %16 = alloca { <2 x float>, float }, align 4
  %17 = alloca { <2 x float>, float }, align 8
  %18 = alloca %union.CgmVec3, align 4
  %19 = alloca { <2 x float>, float }, align 4
  %20 = alloca { <2 x float>, float }, align 8
  %21 = alloca %union.CgmVec3, align 4
  %22 = alloca { <2 x float>, float }, align 4
  %23 = alloca { <2 x float>, float }, align 4
  %24 = alloca { <2 x float>, float }, align 8
  %25 = alloca %union.CgmVec3, align 4
  %26 = alloca %union.CgmVec3, align 4
  %27 = alloca { <2 x float>, float }, align 4
  %28 = alloca { <2 x float>, float }, align 8
  %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 %union.CgmVec3, align 4
  %38 = alloca %union.CgmVec3, align 4
  %39 = alloca [3 x [2 x %union.CgmVec3]], align 16
  %40 = alloca %union.CgmVec3, align 4
  %41 = alloca %union.CgmVec3, align 4
  %42 = alloca %union.CgmVec3, align 4
  %43 = alloca %union.CgmVec3, align 4
  %44 = alloca { <2 x float>, float }, align 4
  %45 = alloca { <2 x float>, float }, align 8
  %46 = alloca { <2 x float>, float }, align 4
  %47 = alloca { <2 x float>, float }, align 4
  %48 = alloca { <2 x float>, float }, align 4
  %49 = alloca { <2 x float>, float }, align 8
  %50 = alloca { <2 x float>, float }, align 4
  %51 = alloca { <2 x float>, float }, align 4
  %52 = alloca { <2 x float>, float }, align 8
  %53 = alloca { <2 x float>, float }, align 4
  %54 = alloca { <2 x float>, float }, align 8
  %55 = alloca %union.CgmVec3, align 4
  %56 = alloca %union.CgmVec3, align 4
  %57 = alloca %union.CgmVec3, align 4
  %58 = alloca %union.CgmVec3, align 4
  %59 = alloca { <2 x float>, float }, align 4
  %60 = alloca { <2 x float>, float }, align 8
  %61 = alloca { <2 x float>, float }, align 4
  %62 = alloca { <2 x float>, float }, align 4
  %63 = alloca { <2 x float>, float }, align 4
  %64 = alloca { <2 x float>, float }, align 8
  %65 = alloca { <2 x float>, float }, align 4
  %66 = alloca { <2 x float>, float }, align 4
  %67 = alloca { <2 x float>, float }, align 8
  %68 = alloca { <2 x float>, float }, align 4
  %69 = alloca { <2 x float>, float }, align 8
  %70 = alloca [5 x %union.CgmVec3], align 16
  %71 = alloca %union.CgmVec3, align 4
  %72 = alloca float, align 4
  %73 = alloca i32, align 4
  %74 = alloca i32, align 4
  %75 = alloca %union.CgmVec3, align 4
  %76 = alloca %union.CgmVec3, 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 8
  %80 = alloca float, align 4
  %81 = alloca { <2 x float>, float }, align 4
  %82 = alloca { <2 x float>, float }, align 4
  %83 = alloca %union.CgmVec3, align 4
  %84 = alloca { <2 x float>, float }, align 4
  %85 = alloca { <2 x float>, float }, align 8
  %86 = alloca float, align 4
  %87 = alloca { <2 x float>, float }, align 4
  %88 = alloca { <2 x float>, float }, align 4
  %89 = alloca float, align 4
  %90 = alloca { <2 x float>, float }, align 4
  %91 = alloca { <2 x float>, float }, align 4
  %92 = alloca float, align 4
  %93 = alloca { <2 x float>, float }, align 4
  %94 = alloca { <2 x float>, float }, align 4
  %95 = alloca { <2 x float>, float }, align 4
  %96 = alloca { <2 x float>, float }, align 4
  %97 = alloca { <2 x float>, float }, align 4
  %98 = alloca { <2 x float>, float }, align 4
  %99 = alloca float, align 4
  %100 = alloca float, align 4
  %101 = alloca float, align 4
  %102 = alloca float, align 4
  %103 = alloca %union.CgmVec3, align 4
  %104 = alloca i1, align 1
  %105 = alloca { <2 x float>, float }, align 4
  %106 = alloca { <2 x float>, float }, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #5
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = call { <2 x float>, float } @CgmAabb3d_center(ptr noundef %107)
  %109 = getelementptr inbounds %union.CgmVec3, ptr %10, i32 0, i32 0
  store { <2 x float>, float } %108, ptr %11, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %109, ptr align 8 %11, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #5
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = call { <2 x float>, float } @CgmAabb3d_half_size(ptr noundef %110)
  %112 = getelementptr inbounds %union.CgmVec3, ptr %12, i32 0, i32 0
  store { <2 x float>, float } %111, ptr %13, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %112, ptr align 8 %13, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #5
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.CgmCapsule3d, ptr %113, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %114, i64 12, i1 false)
  %115 = getelementptr inbounds { <2 x float>, float }, ptr %15, i32 0, i32 0
  %116 = load <2 x float>, ptr %115, align 4
  %117 = getelementptr inbounds { <2 x float>, float }, ptr %15, i32 0, i32 1
  %118 = load float, ptr %117, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %10, i64 12, i1 false)
  %119 = getelementptr inbounds { <2 x float>, float }, ptr %16, i32 0, i32 0
  %120 = load <2 x float>, ptr %119, align 4
  %121 = getelementptr inbounds { <2 x float>, float }, ptr %16, i32 0, i32 1
  %122 = load float, ptr %121, align 4
  %123 = call { <2 x float>, float } @CgmVec3_sub(<2 x float> %116, float %118, <2 x float> %120, float %122)
  %124 = getelementptr inbounds %union.CgmVec3, ptr %14, i32 0, i32 0
  store { <2 x float>, float } %123, ptr %17, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %124, ptr align 8 %17, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #5
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.CgmCapsule3d, ptr %125, i32 0, i32 1
  %127 = load ptr, ptr %7, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.CgmCapsule3d, ptr %127, i32 0, i32 2
  %129 = load float, ptr %128, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %126, i64 12, i1 false)
  %130 = getelementptr inbounds { <2 x float>, float }, ptr %19, i32 0, i32 0
  %131 = load <2 x float>, ptr %130, align 4
  %132 = getelementptr inbounds { <2 x float>, float }, ptr %19, i32 0, i32 1
  %133 = load float, ptr %132, align 4
  %134 = call { <2 x float>, float } @CgmVec3_mul_scalar(<2 x float> %131, float %133, float noundef %129)
  %135 = getelementptr inbounds %union.CgmVec3, ptr %18, i32 0, i32 0
  store { <2 x float>, float } %134, ptr %20, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %135, ptr align 8 %20, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %14, i64 12, i1 false)
  %136 = getelementptr inbounds { <2 x float>, float }, ptr %22, i32 0, i32 0
  %137 = load <2 x float>, ptr %136, align 4
  %138 = getelementptr inbounds { <2 x float>, float }, ptr %22, i32 0, i32 1
  %139 = load float, ptr %138, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %18, i64 12, i1 false)
  %140 = getelementptr inbounds { <2 x float>, float }, ptr %23, i32 0, i32 0
  %141 = load <2 x float>, ptr %140, align 4
  %142 = getelementptr inbounds { <2 x float>, float }, ptr %23, i32 0, i32 1
  %143 = load float, ptr %142, align 4
  %144 = call { <2 x float>, float } @CgmVec3_add(<2 x float> %137, float %139, <2 x float> %141, float %143)
  %145 = getelementptr inbounds %union.CgmVec3, ptr %21, i32 0, i32 0
  store { <2 x float>, float } %144, ptr %24, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %145, ptr align 8 %24, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %18, i64 12, i1 false)
  %146 = getelementptr inbounds { <2 x float>, float }, ptr %27, i32 0, i32 0
  %147 = load <2 x float>, ptr %146, align 4
  %148 = getelementptr inbounds { <2 x float>, float }, ptr %27, i32 0, i32 1
  %149 = load float, ptr %148, align 4
  %150 = call { <2 x float>, float } @CgmVec3_neg(<2 x float> %147, float %149)
  %151 = getelementptr inbounds %union.CgmVec3, ptr %26, i32 0, i32 0
  store { <2 x float>, float } %150, ptr %28, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %151, ptr align 8 %28, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %14, i64 12, i1 false)
  %152 = getelementptr inbounds { <2 x float>, float }, ptr %29, i32 0, i32 0
  %153 = load <2 x float>, ptr %152, align 4
  %154 = getelementptr inbounds { <2 x float>, float }, ptr %29, i32 0, i32 1
  %155 = load float, ptr %154, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %26, i64 12, i1 false)
  %156 = getelementptr inbounds { <2 x float>, float }, ptr %30, i32 0, i32 0
  %157 = load <2 x float>, ptr %156, align 4
  %158 = getelementptr inbounds { <2 x float>, float }, ptr %30, i32 0, i32 1
  %159 = load float, ptr %158, align 4
  %160 = call { <2 x float>, float } @CgmVec3_add(<2 x float> %153, float %155, <2 x float> %157, float %159)
  %161 = getelementptr inbounds %union.CgmVec3, ptr %25, i32 0, i32 0
  store { <2 x float>, float } %160, ptr %31, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %161, 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 %25, i64 12, i1 false)
  %162 = getelementptr inbounds { <2 x float>, float }, ptr %33, i32 0, i32 0
  %163 = load <2 x float>, ptr %162, align 4
  %164 = getelementptr inbounds { <2 x float>, float }, ptr %33, i32 0, i32 1
  %165 = load float, ptr %164, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %21, i64 12, i1 false)
  %166 = getelementptr inbounds { <2 x float>, float }, ptr %34, i32 0, i32 0
  %167 = load <2 x float>, ptr %166, align 4
  %168 = getelementptr inbounds { <2 x float>, float }, ptr %34, i32 0, i32 1
  %169 = load float, ptr %168, align 4
  %170 = call { <2 x float>, float } @CgmVec3_sub(<2 x float> %163, float %165, <2 x float> %167, float %169)
  %171 = getelementptr inbounds %union.CgmVec3, ptr %32, i32 0, i32 0
  store { <2 x float>, float } %170, ptr %35, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %171, 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 %36, ptr align 4 @__const.cgm_3d_aabb_vs_capsule.u0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %37) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 @__const.cgm_3d_aabb_vs_capsule.u1, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %38) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 @__const.cgm_3d_aabb_vs_capsule.u2, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 72, ptr %39) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 4 %36, i64 12, i1 false), !tbaa.struct !12
  %172 = getelementptr inbounds %union.CgmVec3, ptr %39, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %172, ptr align 4 %32, i64 12, i1 false), !tbaa.struct !12
  %173 = getelementptr inbounds [2 x %union.CgmVec3], ptr %39, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %173, ptr align 4 %37, i64 12, i1 false), !tbaa.struct !12
  %174 = getelementptr inbounds %union.CgmVec3, ptr %173, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %174, ptr align 4 %32, i64 12, i1 false), !tbaa.struct !12
  %175 = getelementptr inbounds [2 x %union.CgmVec3], ptr %39, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %175, ptr align 4 %38, i64 12, i1 false), !tbaa.struct !12
  %176 = getelementptr inbounds %union.CgmVec3, ptr %175, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %176, ptr align 4 %32, i64 12, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.start.p0(i64 12, ptr %40) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 4 %12, i64 12, i1 false)
  %177 = getelementptr inbounds { <2 x float>, float }, ptr %44, i32 0, i32 0
  %178 = load <2 x float>, ptr %177, align 4
  %179 = getelementptr inbounds { <2 x float>, float }, ptr %44, i32 0, i32 1
  %180 = load float, ptr %179, align 4
  %181 = call { <2 x float>, float } @CgmVec3_neg(<2 x float> %178, float %180)
  %182 = getelementptr inbounds %union.CgmVec3, ptr %43, i32 0, i32 0
  store { <2 x float>, float } %181, ptr %45, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %182, ptr align 8 %45, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 %21, i64 12, i1 false)
  %183 = getelementptr inbounds { <2 x float>, float }, ptr %46, i32 0, i32 0
  %184 = load <2 x float>, ptr %183, align 4
  %185 = getelementptr inbounds { <2 x float>, float }, ptr %46, i32 0, i32 1
  %186 = load float, ptr %185, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 4 %43, i64 12, i1 false)
  %187 = getelementptr inbounds { <2 x float>, float }, ptr %47, i32 0, i32 0
  %188 = load <2 x float>, ptr %187, align 4
  %189 = getelementptr inbounds { <2 x float>, float }, ptr %47, i32 0, i32 1
  %190 = load float, ptr %189, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 4 %12, i64 12, i1 false)
  %191 = getelementptr inbounds { <2 x float>, float }, ptr %48, i32 0, i32 0
  %192 = load <2 x float>, ptr %191, align 4
  %193 = getelementptr inbounds { <2 x float>, float }, ptr %48, i32 0, i32 1
  %194 = load float, ptr %193, align 4
  %195 = call { <2 x float>, float } @CgmVec3_clamp(<2 x float> %184, float %186, <2 x float> %188, float %190, <2 x float> %192, float %194)
  %196 = getelementptr inbounds %union.CgmVec3, ptr %42, i32 0, i32 0
  store { <2 x float>, float } %195, ptr %49, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %196, ptr align 8 %49, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 4 %21, i64 12, i1 false)
  %197 = getelementptr inbounds { <2 x float>, float }, ptr %50, i32 0, i32 0
  %198 = load <2 x float>, ptr %197, align 4
  %199 = getelementptr inbounds { <2 x float>, float }, ptr %50, i32 0, i32 1
  %200 = load float, ptr %199, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %51, ptr align 4 %42, i64 12, i1 false)
  %201 = getelementptr inbounds { <2 x float>, float }, ptr %51, i32 0, i32 0
  %202 = load <2 x float>, ptr %201, align 4
  %203 = getelementptr inbounds { <2 x float>, float }, ptr %51, i32 0, i32 1
  %204 = load float, ptr %203, align 4
  %205 = call { <2 x float>, float } @CgmVec3_sub(<2 x float> %198, float %200, <2 x float> %202, float %204)
  %206 = getelementptr inbounds %union.CgmVec3, ptr %41, i32 0, i32 0
  store { <2 x float>, float } %205, ptr %52, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %206, ptr align 8 %52, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %53, ptr align 4 %41, i64 12, i1 false)
  %207 = getelementptr inbounds { <2 x float>, float }, ptr %53, i32 0, i32 0
  %208 = load <2 x float>, ptr %207, align 4
  %209 = getelementptr inbounds { <2 x float>, float }, ptr %53, i32 0, i32 1
  %210 = load float, ptr %209, align 4
  %211 = call { <2 x float>, float } @CgmVec3_norm(<2 x float> %208, float %210)
  %212 = getelementptr inbounds %union.CgmVec3, ptr %40, i32 0, i32 0
  store { <2 x float>, float } %211, ptr %54, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %212, ptr align 8 %54, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %55) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %59, ptr align 4 %12, i64 12, i1 false)
  %213 = getelementptr inbounds { <2 x float>, float }, ptr %59, i32 0, i32 0
  %214 = load <2 x float>, ptr %213, align 4
  %215 = getelementptr inbounds { <2 x float>, float }, ptr %59, i32 0, i32 1
  %216 = load float, ptr %215, align 4
  %217 = call { <2 x float>, float } @CgmVec3_neg(<2 x float> %214, float %216)
  %218 = getelementptr inbounds %union.CgmVec3, ptr %58, i32 0, i32 0
  store { <2 x float>, float } %217, ptr %60, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %218, ptr align 8 %60, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %61, ptr align 4 %25, i64 12, i1 false)
  %219 = getelementptr inbounds { <2 x float>, float }, ptr %61, i32 0, i32 0
  %220 = load <2 x float>, ptr %219, align 4
  %221 = getelementptr inbounds { <2 x float>, float }, ptr %61, i32 0, i32 1
  %222 = load float, ptr %221, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %62, ptr align 4 %58, i64 12, i1 false)
  %223 = getelementptr inbounds { <2 x float>, float }, ptr %62, i32 0, i32 0
  %224 = load <2 x float>, ptr %223, align 4
  %225 = getelementptr inbounds { <2 x float>, float }, ptr %62, i32 0, i32 1
  %226 = load float, ptr %225, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %63, ptr align 4 %12, i64 12, i1 false)
  %227 = getelementptr inbounds { <2 x float>, float }, ptr %63, i32 0, i32 0
  %228 = load <2 x float>, ptr %227, align 4
  %229 = getelementptr inbounds { <2 x float>, float }, ptr %63, i32 0, i32 1
  %230 = load float, ptr %229, align 4
  %231 = call { <2 x float>, float } @CgmVec3_clamp(<2 x float> %220, float %222, <2 x float> %224, float %226, <2 x float> %228, float %230)
  %232 = getelementptr inbounds %union.CgmVec3, ptr %57, i32 0, i32 0
  store { <2 x float>, float } %231, ptr %64, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %232, ptr align 8 %64, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %65, ptr align 4 %25, i64 12, i1 false)
  %233 = getelementptr inbounds { <2 x float>, float }, ptr %65, i32 0, i32 0
  %234 = load <2 x float>, ptr %233, align 4
  %235 = getelementptr inbounds { <2 x float>, float }, ptr %65, i32 0, i32 1
  %236 = load float, ptr %235, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %66, ptr align 4 %57, i64 12, i1 false)
  %237 = getelementptr inbounds { <2 x float>, float }, ptr %66, i32 0, i32 0
  %238 = load <2 x float>, ptr %237, align 4
  %239 = getelementptr inbounds { <2 x float>, float }, ptr %66, i32 0, i32 1
  %240 = load float, ptr %239, align 4
  %241 = call { <2 x float>, float } @CgmVec3_sub(<2 x float> %234, float %236, <2 x float> %238, float %240)
  %242 = getelementptr inbounds %union.CgmVec3, ptr %56, i32 0, i32 0
  store { <2 x float>, float } %241, ptr %67, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %242, ptr align 8 %67, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %68, ptr align 4 %56, i64 12, i1 false)
  %243 = getelementptr inbounds { <2 x float>, float }, ptr %68, i32 0, i32 0
  %244 = load <2 x float>, ptr %243, align 4
  %245 = getelementptr inbounds { <2 x float>, float }, ptr %68, i32 0, i32 1
  %246 = load float, ptr %245, align 4
  %247 = call { <2 x float>, float } @CgmVec3_norm(<2 x float> %244, float %246)
  %248 = getelementptr inbounds %union.CgmVec3, ptr %55, i32 0, i32 0
  store { <2 x float>, float } %247, ptr %69, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %248, ptr align 8 %69, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 60, ptr %70) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %70, ptr align 4 %36, i64 12, i1 false), !tbaa.struct !12
  %249 = getelementptr inbounds %union.CgmVec3, ptr %70, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %249, ptr align 4 %37, i64 12, i1 false), !tbaa.struct !12
  %250 = getelementptr inbounds %union.CgmVec3, ptr %70, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %250, ptr align 4 %38, i64 12, i1 false), !tbaa.struct !12
  %251 = getelementptr inbounds %union.CgmVec3, ptr %70, i64 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %251, ptr align 4 %40, i64 12, i1 false), !tbaa.struct !12
  %252 = getelementptr inbounds %union.CgmVec3, ptr %70, i64 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %252, ptr align 4 %55, i64 12, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.start.p0(i64 12, ptr %71) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %72) #5
  store float 0x7FF0000000000000, ptr %72, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %73) #5
  store i32 0, ptr %73, align 4, !tbaa !15
  br label %253

253:                                              ; preds = %416, %4
  %254 = load i32, ptr %73, align 4, !tbaa !15
  %255 = icmp ult i32 %254, 8
  br i1 %255, label %257, label %256

256:                                              ; preds = %253
  store i32 2, ptr %74, align 4
  br label %419

257:                                              ; preds = %253
  call void @llvm.lifetime.start.p0(i64 12, ptr %75) #5
  %258 = load i32, ptr %73, align 4, !tbaa !15
  %259 = icmp ult i32 %258, 3
  br i1 %259, label %260, label %302

260:                                              ; preds = %257
  %261 = load i32, ptr %73, align 4, !tbaa !15
  %262 = zext i32 %261 to i64
  %263 = getelementptr inbounds [3 x [2 x %union.CgmVec3]], ptr %39, i64 0, i64 %262
  %264 = getelementptr inbounds [2 x %union.CgmVec3], ptr %263, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %75, ptr align 8 %264, i64 12, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.start.p0(i64 12, ptr %76) #5
  %265 = load i32, ptr %73, align 4, !tbaa !15
  %266 = zext i32 %265 to i64
  %267 = getelementptr inbounds [3 x [2 x %union.CgmVec3]], ptr %39, i64 0, i64 %266
  %268 = getelementptr inbounds [2 x %union.CgmVec3], ptr %267, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %77, ptr align 4 %75, i64 12, i1 false)
  %269 = getelementptr inbounds { <2 x float>, float }, ptr %77, i32 0, i32 0
  %270 = load <2 x float>, ptr %269, align 4
  %271 = getelementptr inbounds { <2 x float>, float }, ptr %77, i32 0, i32 1
  %272 = load float, ptr %271, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %78, ptr align 4 %268, i64 12, i1 false)
  %273 = getelementptr inbounds { <2 x float>, float }, ptr %78, i32 0, i32 0
  %274 = load <2 x float>, ptr %273, align 4
  %275 = getelementptr inbounds { <2 x float>, float }, ptr %78, i32 0, i32 1
  %276 = load float, ptr %275, align 4
  %277 = call { <2 x float>, float } @CgmVec3_mul_cross(<2 x float> %270, float %272, <2 x float> %274, float %276)
  %278 = getelementptr inbounds %union.CgmVec3, ptr %76, i32 0, i32 0
  store { <2 x float>, float } %277, ptr %79, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %278, ptr align 8 %79, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %80) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %81, ptr align 4 %76, i64 12, i1 false)
  %279 = getelementptr inbounds { <2 x float>, float }, ptr %81, i32 0, i32 0
  %280 = load <2 x float>, ptr %279, align 4
  %281 = getelementptr inbounds { <2 x float>, float }, ptr %81, i32 0, i32 1
  %282 = load float, ptr %281, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %82, ptr align 4 %76, i64 12, i1 false)
  %283 = getelementptr inbounds { <2 x float>, float }, ptr %82, i32 0, i32 0
  %284 = load <2 x float>, ptr %283, align 4
  %285 = getelementptr inbounds { <2 x float>, float }, ptr %82, i32 0, i32 1
  %286 = load float, ptr %285, align 4
  %287 = call float @CgmVec3_dot(<2 x float> %280, float %282, <2 x float> %284, float %286)
  store float %287, ptr %80, align 4, !tbaa !14
  %288 = load float, ptr %80, align 4, !tbaa !14
  %289 = call zeroext i8 @cgm_approx_eq(float noundef %288, float noundef 0.000000e+00)
  %290 = icmp ne i8 %289, 0
  br i1 %290, label %291, label %292

291:                                              ; preds = %260
  store i32 4, ptr %74, align 4
  br label %299

292:                                              ; preds = %260
  call void @llvm.lifetime.start.p0(i64 12, ptr %83) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %84, ptr align 4 %76, i64 12, i1 false)
  %293 = getelementptr inbounds { <2 x float>, float }, ptr %84, i32 0, i32 0
  %294 = load <2 x float>, ptr %293, align 4
  %295 = getelementptr inbounds { <2 x float>, float }, ptr %84, i32 0, i32 1
  %296 = load float, ptr %295, align 4
  %297 = call { <2 x float>, float } @CgmVec3_norm(<2 x float> %294, float %296)
  %298 = getelementptr inbounds %union.CgmVec3, ptr %83, i32 0, i32 0
  store { <2 x float>, float } %297, ptr %85, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %298, ptr align 8 %85, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %75, ptr align 4 %83, i64 12, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 12, ptr %83) #5
  store i32 0, ptr %74, align 4
  br label %299

299:                                              ; preds = %292, %291
  call void @llvm.lifetime.end.p0(i64 4, ptr %80) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %76) #5
  %300 = load i32, ptr %74, align 4
  switch i32 %300, label %413 [
    i32 0, label %301
  ]

301:                                              ; preds = %299
  br label %307

302:                                              ; preds = %257
  %303 = load i32, ptr %73, align 4, !tbaa !15
  %304 = sub i32 %303, 3
  %305 = zext i32 %304 to i64
  %306 = getelementptr inbounds [5 x %union.CgmVec3], ptr %70, i64 0, i64 %305
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %75, ptr align 4 %306, i64 12, i1 false), !tbaa.struct !12
  br label %307

307:                                              ; preds = %302, %301
  call void @llvm.lifetime.start.p0(i64 4, ptr %86) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %87, ptr align 4 %21, i64 12, i1 false)
  %308 = getelementptr inbounds { <2 x float>, float }, ptr %87, i32 0, i32 0
  %309 = load <2 x float>, ptr %308, align 4
  %310 = getelementptr inbounds { <2 x float>, float }, ptr %87, i32 0, i32 1
  %311 = load float, ptr %310, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %88, ptr align 4 %75, i64 12, i1 false)
  %312 = getelementptr inbounds { <2 x float>, float }, ptr %88, i32 0, i32 0
  %313 = load <2 x float>, ptr %312, align 4
  %314 = getelementptr inbounds { <2 x float>, float }, ptr %88, i32 0, i32 1
  %315 = load float, ptr %314, align 4
  %316 = call float @CgmVec3_dot(<2 x float> %309, float %311, <2 x float> %313, float %315)
  store float %316, ptr %86, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %89) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %90, ptr align 4 %25, i64 12, i1 false)
  %317 = getelementptr inbounds { <2 x float>, float }, ptr %90, i32 0, i32 0
  %318 = load <2 x float>, ptr %317, align 4
  %319 = getelementptr inbounds { <2 x float>, float }, ptr %90, i32 0, i32 1
  %320 = load float, ptr %319, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %91, ptr align 4 %75, i64 12, i1 false)
  %321 = getelementptr inbounds { <2 x float>, float }, ptr %91, i32 0, i32 0
  %322 = load <2 x float>, ptr %321, align 4
  %323 = getelementptr inbounds { <2 x float>, float }, ptr %91, i32 0, i32 1
  %324 = load float, ptr %323, align 4
  %325 = call float @CgmVec3_dot(<2 x float> %318, float %320, <2 x float> %322, float %324)
  store float %325, ptr %89, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %92) #5
  %326 = getelementptr inbounds %struct.anon.0, ptr %12, i32 0, i32 0
  %327 = load float, ptr %326, align 4, !tbaa !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %93, ptr align 4 %36, i64 12, i1 false)
  %328 = getelementptr inbounds { <2 x float>, float }, ptr %93, i32 0, i32 0
  %329 = load <2 x float>, ptr %328, align 4
  %330 = getelementptr inbounds { <2 x float>, float }, ptr %93, i32 0, i32 1
  %331 = load float, ptr %330, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %94, ptr align 4 %75, i64 12, i1 false)
  %332 = getelementptr inbounds { <2 x float>, float }, ptr %94, i32 0, i32 0
  %333 = load <2 x float>, ptr %332, align 4
  %334 = getelementptr inbounds { <2 x float>, float }, ptr %94, i32 0, i32 1
  %335 = load float, ptr %334, align 4
  %336 = call float @CgmVec3_dot(<2 x float> %329, float %331, <2 x float> %333, float %335)
  %337 = call float @llvm.fabs.f32(float %336)
  %338 = getelementptr inbounds %struct.anon.0, ptr %12, i32 0, i32 1
  %339 = load float, ptr %338, align 4, !tbaa !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %95, ptr align 4 %37, i64 12, i1 false)
  %340 = getelementptr inbounds { <2 x float>, float }, ptr %95, i32 0, i32 0
  %341 = load <2 x float>, ptr %340, align 4
  %342 = getelementptr inbounds { <2 x float>, float }, ptr %95, i32 0, i32 1
  %343 = load float, ptr %342, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %96, ptr align 4 %75, i64 12, i1 false)
  %344 = getelementptr inbounds { <2 x float>, float }, ptr %96, i32 0, i32 0
  %345 = load <2 x float>, ptr %344, align 4
  %346 = getelementptr inbounds { <2 x float>, float }, ptr %96, i32 0, i32 1
  %347 = load float, ptr %346, align 4
  %348 = call float @CgmVec3_dot(<2 x float> %341, float %343, <2 x float> %345, float %347)
  %349 = call float @llvm.fabs.f32(float %348)
  %350 = fmul float %339, %349
  %351 = call float @llvm.fmuladd.f32(float %327, float %337, float %350)
  %352 = getelementptr inbounds %struct.anon.0, ptr %12, i32 0, i32 2
  %353 = load float, ptr %352, align 4, !tbaa !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %97, ptr align 4 %38, i64 12, i1 false)
  %354 = getelementptr inbounds { <2 x float>, float }, ptr %97, i32 0, i32 0
  %355 = load <2 x float>, ptr %354, align 4
  %356 = getelementptr inbounds { <2 x float>, float }, ptr %97, i32 0, i32 1
  %357 = load float, ptr %356, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %98, ptr align 4 %75, i64 12, i1 false)
  %358 = getelementptr inbounds { <2 x float>, float }, ptr %98, i32 0, i32 0
  %359 = load <2 x float>, ptr %358, align 4
  %360 = getelementptr inbounds { <2 x float>, float }, ptr %98, i32 0, i32 1
  %361 = load float, ptr %360, align 4
  %362 = call float @CgmVec3_dot(<2 x float> %355, float %357, <2 x float> %359, float %361)
  %363 = call float @llvm.fabs.f32(float %362)
  %364 = call float @llvm.fmuladd.f32(float %353, float %363, float %351)
  store float %364, ptr %92, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %99) #5
  %365 = load float, ptr %86, align 4, !tbaa !14
  %366 = load float, ptr %89, align 4, !tbaa !14
  %367 = call float @cgm_max(float noundef %365, float noundef %366)
  %368 = load ptr, ptr %7, align 8, !tbaa !5
  %369 = getelementptr inbounds %struct.CgmCapsule3d, ptr %368, i32 0, i32 3
  %370 = load float, ptr %369, align 4, !tbaa !17
  %371 = fadd float %367, %370
  store float %371, ptr %99, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %100) #5
  %372 = load float, ptr %86, align 4, !tbaa !14
  %373 = load float, ptr %89, align 4, !tbaa !14
  %374 = call float @cgm_min(float noundef %372, float noundef %373)
  %375 = load ptr, ptr %7, align 8, !tbaa !5
  %376 = getelementptr inbounds %struct.CgmCapsule3d, ptr %375, i32 0, i32 3
  %377 = load float, ptr %376, align 4, !tbaa !17
  %378 = fsub float %374, %377
  store float %378, ptr %100, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %101) #5
  %379 = load float, ptr %99, align 4, !tbaa !14
  %380 = fneg float %379
  %381 = load float, ptr %100, align 4, !tbaa !14
  %382 = call float @cgm_max(float noundef %380, float noundef %381)
  store float %382, ptr %101, align 4, !tbaa !14
  %383 = load float, ptr %101, align 4, !tbaa !14
  %384 = load float, ptr %92, align 4, !tbaa !14
  %385 = fcmp ogt float %383, %384
  br i1 %385, label %386, label %387

386:                                              ; preds = %307
  store i8 0, ptr %5, align 1
  store i32 1, ptr %74, align 4
  br label %412

387:                                              ; preds = %307
  call void @llvm.lifetime.start.p0(i64 4, ptr %102) #5
  %388 = load float, ptr %92, align 4, !tbaa !14
  %389 = load float, ptr %101, align 4, !tbaa !14
  %390 = fsub float %388, %389
  store float %390, ptr %102, align 4, !tbaa !14
  %391 = load float, ptr %102, align 4, !tbaa !14
  %392 = load float, ptr %72, align 4, !tbaa !14
  %393 = fcmp olt float %391, %392
  br i1 %393, label %394, label %411

394:                                              ; preds = %387
  %395 = load float, ptr %102, align 4, !tbaa !14
  store float %395, ptr %72, align 4, !tbaa !14
  %396 = load float, ptr %100, align 4, !tbaa !14
  %397 = load float, ptr %99, align 4, !tbaa !14
  %398 = load float, ptr %100, align 4, !tbaa !14
  %399 = fsub float %397, %398
  %400 = call float @llvm.fmuladd.f32(float %399, float 5.000000e-01, float %396)
  %401 = fcmp ogt float %400, 0.000000e+00
  store i1 false, ptr %104, align 1
  br i1 %401, label %402, label %409

402:                                              ; preds = %394
  call void @llvm.lifetime.start.p0(i64 12, ptr %103) #5
  store i1 true, ptr %104, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %105, ptr align 4 %75, i64 12, i1 false)
  %403 = getelementptr inbounds { <2 x float>, float }, ptr %105, i32 0, i32 0
  %404 = load <2 x float>, ptr %403, align 4
  %405 = getelementptr inbounds { <2 x float>, float }, ptr %105, i32 0, i32 1
  %406 = load float, ptr %405, align 4
  %407 = call { <2 x float>, float } @CgmVec3_neg(<2 x float> %404, float %406)
  %408 = getelementptr inbounds %union.CgmVec3, ptr %103, i32 0, i32 0
  store { <2 x float>, float } %407, ptr %106, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %408, ptr align 8 %106, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %71, ptr align 4 %103, i64 12, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 12, ptr %103) #5
  br label %410

409:                                              ; preds = %394
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %71, ptr align 4 %75, i64 12, i1 false), !tbaa.struct !12
  br label %410

410:                                              ; preds = %409, %402
  br label %411

411:                                              ; preds = %410, %387
  call void @llvm.lifetime.end.p0(i64 4, ptr %102) #5
  store i32 0, ptr %74, align 4
  br label %412

412:                                              ; preds = %411, %386
  call void @llvm.lifetime.end.p0(i64 4, ptr %101) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %100) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %99) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %92) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %89) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %86) #5
  br label %413

413:                                              ; preds = %412, %299
  call void @llvm.lifetime.end.p0(i64 12, ptr %75) #5
  %414 = load i32, ptr %74, align 4
  switch i32 %414, label %419 [
    i32 0, label %415
    i32 4, label %416
  ]

415:                                              ; preds = %413
  br label %416

416:                                              ; preds = %415, %413
  %417 = load i32, ptr %73, align 4, !tbaa !15
  %418 = add i32 %417, 1
  store i32 %418, ptr %73, align 4, !tbaa !15
  br label %253, !llvm.loop !18

419:                                              ; preds = %413, %256
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #5
  %420 = load i32, ptr %74, align 4
  switch i32 %420, label %433 [
    i32 2, label %421
  ]

421:                                              ; preds = %419
  %422 = load ptr, ptr %8, align 8, !tbaa !5
  %423 = icmp ne ptr %422, null
  br i1 %423, label %424, label %426

424:                                              ; preds = %421
  %425 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %425, ptr align 4 %71, i64 12, i1 false), !tbaa.struct !12
  br label %426

426:                                              ; preds = %424, %421
  %427 = load ptr, ptr %9, align 8, !tbaa !5
  %428 = icmp ne ptr %427, null
  br i1 %428, label %429, label %432

429:                                              ; preds = %426
  %430 = load float, ptr %72, align 4, !tbaa !14
  %431 = load ptr, ptr %9, align 8, !tbaa !5
  store float %430, ptr %431, align 4, !tbaa !14
  br label %432

432:                                              ; preds = %429, %426
  store i8 1, ptr %5, align 1
  store i32 1, ptr %74, align 4
  br label %433

433:                                              ; preds = %432, %419
  call void @llvm.lifetime.end.p0(i64 4, ptr %72) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %71) #5
  call void @llvm.lifetime.end.p0(i64 60, ptr %70) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %55) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #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 %25) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #5
  %434 = load i8, ptr %5, align 1
  ret i8 %434
}

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 = !{!10, !11, i64 24}
!10 = !{!"CgmCapsule3d", !7, i64 0, !7, i64 12, !11, i64 24, !11, i64 28}
!11 = !{!"float", !7, i64 0}
!12 = !{i64 0, i64 12, !13}
!13 = !{!7, !7, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!10, !11, i64 28}
!18 = distinct !{!18, !19}
!19 = !{!"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_capsule.u0 = external hidden unnamed_addr constant %union.CgmVec3, align 4
@__const.cgm_3d_aabb_vs_capsule.u1 = external hidden unnamed_addr constant %union.CgmVec3, align 4
@__const.cgm_3d_aabb_vs_capsule.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_add(<2 x float>, float, <2 x float>, float) local_unnamed_addr #3

; 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_mul_scalar(<2 x float>, float, float noundef) 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 } @CgmVec3_clamp(<2 x float>, float, <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_capsule(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef writeonly %2, ptr noundef writeonly %3) local_unnamed_addr #3 {
  %5 = alloca [3 x [2 x %union.CgmVec3]], align 16
  %6 = alloca [5 x %union.CgmVec3], align 16
  %7 = tail call { <2 x float>, float } @CgmAabb3d_center(ptr noundef %0)
  %.fca.0.extract262 = extractvalue { <2 x float>, float } %7, 0
  %.fca.1.extract263 = extractvalue { <2 x float>, float } %7, 1
  %8 = tail call { <2 x float>, float } @CgmAabb3d_half_size(ptr noundef %0)
  %.fca.0.extract253 = extractvalue { <2 x float>, float } %8, 0
  %.fca.1.extract254 = extractvalue { <2 x float>, float } %8, 1
  %.sroa.0248.0.copyload = load <2 x float>, ptr %1, align 4
  %.sroa.2249.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 8
  %.sroa.2249.0.copyload = load float, ptr %.sroa.2249.0..sroa_idx, align 4
  %9 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.sroa.0248.0.copyload, float %.sroa.2249.0.copyload, <2 x float> %.fca.0.extract262, float %.fca.1.extract263)
  %.fca.0.extract242 = extractvalue { <2 x float>, float } %9, 0
  %.fca.1.extract243 = extractvalue { <2 x float>, float } %9, 1
  %10 = getelementptr inbounds i8, ptr %1, i64 12
  %11 = getelementptr inbounds i8, ptr %1, i64 24
  %12 = load float, ptr %11, align 4, !tbaa !5
  %.sroa.0237.0.copyload = load <2 x float>, ptr %10, align 4
  %.sroa.2238.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 20
  %.sroa.2238.0.copyload = load float, ptr %.sroa.2238.0..sroa_idx, align 4
  %13 = tail call { <2 x float>, float } @CgmVec3_mul_scalar(<2 x float> %.sroa.0237.0.copyload, float %.sroa.2238.0.copyload, float noundef %12)
  %.fca.0.extract233 = extractvalue { <2 x float>, float } %13, 0
  %.fca.1.extract234 = extractvalue { <2 x float>, float } %13, 1
  %14 = tail call { <2 x float>, float } @CgmVec3_add(<2 x float> %.fca.0.extract242, float %.fca.1.extract243, <2 x float> %.fca.0.extract233, float %.fca.1.extract234)
  %.fca.0.extract220 = extractvalue { <2 x float>, float } %14, 0
  %.fca.1.extract221 = extractvalue { <2 x float>, float } %14, 1
  %15 = tail call { <2 x float>, float } @CgmVec3_neg(<2 x float> %.fca.0.extract233, float %.fca.1.extract234)
  %.fca.0.extract208 = extractvalue { <2 x float>, float } %15, 0
  %.fca.1.extract209 = extractvalue { <2 x float>, float } %15, 1
  %16 = tail call { <2 x float>, float } @CgmVec3_add(<2 x float> %.fca.0.extract242, float %.fca.1.extract243, <2 x float> %.fca.0.extract208, float %.fca.1.extract209)
  %.fca.0.extract200 = extractvalue { <2 x float>, float } %16, 0
  %.fca.1.extract201 = extractvalue { <2 x float>, float } %16, 1
  %17 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.fca.0.extract200, float %.fca.1.extract201, <2 x float> %.fca.0.extract220, float %.fca.1.extract221)
  %.fca.0.extract184 = extractvalue { <2 x float>, float } %17, 0
  %.fca.1.extract185 = extractvalue { <2 x float>, float } %17, 1
  %.sroa.0177.0.copyload = load <2 x float>, ptr @__const.cgm_3d_aabb_vs_capsule.u0, align 4
  %.sroa.6180.0.copyload = load float, ptr getelementptr inbounds (i8, ptr @__const.cgm_3d_aabb_vs_capsule.u0, i64 8), align 4
  %.sroa.0170.0.copyload = load <2 x float>, ptr @__const.cgm_3d_aabb_vs_capsule.u1, align 4
  %.sroa.6173.0.copyload = load float, ptr getelementptr inbounds (i8, ptr @__const.cgm_3d_aabb_vs_capsule.u1, i64 8), align 4
  %.sroa.0163.0.copyload = load <2 x float>, ptr @__const.cgm_3d_aabb_vs_capsule.u2, align 4
  %.sroa.6166.0.copyload = load float, ptr getelementptr inbounds (i8, ptr @__const.cgm_3d_aabb_vs_capsule.u2, i64 8), align 4
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %5) #4
  store <2 x float> %.sroa.0177.0.copyload, ptr %5, align 16
  %.sroa.6180.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  store float %.sroa.6180.0.copyload, ptr %.sroa.6180.0..sroa_idx, align 8, !tbaa !10
  %18 = getelementptr inbounds i8, ptr %5, i64 12
  store <2 x float> %.fca.0.extract184, ptr %18, align 4
  %.sroa.6195.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 20
  store float %.fca.1.extract185, ptr %.sroa.6195.0..sroa_idx, align 4, !tbaa !10
  %19 = getelementptr inbounds i8, ptr %5, i64 24
  store <2 x float> %.sroa.0170.0.copyload, ptr %19, align 8
  %.sroa.6173.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 32
  store float %.sroa.6173.0.copyload, ptr %.sroa.6173.0..sroa_idx, align 16, !tbaa !10
  %20 = getelementptr inbounds i8, ptr %5, i64 36
  store <2 x float> %.fca.0.extract184, ptr %20, align 4
  %.sroa.6195.0..sroa_idx196 = getelementptr inbounds i8, ptr %5, i64 44
  store float %.fca.1.extract185, ptr %.sroa.6195.0..sroa_idx196, align 4, !tbaa !10
  %21 = getelementptr inbounds i8, ptr %5, i64 48
  store <2 x float> %.sroa.0163.0.copyload, ptr %21, align 16
  %.sroa.6166.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 56
  store float %.sroa.6166.0.copyload, ptr %.sroa.6166.0..sroa_idx, align 8, !tbaa !10
  %22 = getelementptr inbounds i8, ptr %5, i64 60
  store <2 x float> %.fca.0.extract184, ptr %22, align 4
  %.sroa.6195.0..sroa_idx198 = getelementptr inbounds i8, ptr %5, i64 68
  store float %.fca.1.extract185, ptr %.sroa.6195.0..sroa_idx198, align 4, !tbaa !10
  %23 = tail call { <2 x float>, float } @CgmVec3_neg(<2 x float> %.fca.0.extract253, float %.fca.1.extract254)
  %.fca.0.extract149 = extractvalue { <2 x float>, float } %23, 0
  %.fca.1.extract150 = extractvalue { <2 x float>, float } %23, 1
  %24 = tail call { <2 x float>, float } @CgmVec3_clamp(<2 x float> %.fca.0.extract220, float %.fca.1.extract221, <2 x float> %.fca.0.extract149, float %.fca.1.extract150, <2 x float> %.fca.0.extract253, float %.fca.1.extract254)
  %.fca.0.extract139 = extractvalue { <2 x float>, float } %24, 0
  %.fca.1.extract140 = extractvalue { <2 x float>, float } %24, 1
  %25 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.fca.0.extract220, float %.fca.1.extract221, <2 x float> %.fca.0.extract139, float %.fca.1.extract140)
  %.fca.0.extract131 = extractvalue { <2 x float>, float } %25, 0
  %.fca.1.extract132 = extractvalue { <2 x float>, float } %25, 1
  %26 = tail call { <2 x float>, float } @CgmVec3_norm(<2 x float> %.fca.0.extract131, float %.fca.1.extract132)
  %.fca.0.extract125 = extractvalue { <2 x float>, float } %26, 0
  %.fca.1.extract126 = extractvalue { <2 x float>, float } %26, 1
  %27 = tail call { <2 x float>, float } @CgmVec3_neg(<2 x float> %.fca.0.extract253, float %.fca.1.extract254)
  %.fca.0.extract111 = extractvalue { <2 x float>, float } %27, 0
  %.fca.1.extract112 = extractvalue { <2 x float>, float } %27, 1
  %28 = tail call { <2 x float>, float } @CgmVec3_clamp(<2 x float> %.fca.0.extract200, float %.fca.1.extract201, <2 x float> %.fca.0.extract111, float %.fca.1.extract112, <2 x float> %.fca.0.extract253, float %.fca.1.extract254)
  %.fca.0.extract101 = extractvalue { <2 x float>, float } %28, 0
  %.fca.1.extract102 = extractvalue { <2 x float>, float } %28, 1
  %29 = tail call { <2 x float>, float } @CgmVec3_sub(<2 x float> %.fca.0.extract200, float %.fca.1.extract201, <2 x float> %.fca.0.extract101, float %.fca.1.extract102)
  %.fca.0.extract93 = extractvalue { <2 x float>, float } %29, 0
  %.fca.1.extract94 = extractvalue { <2 x float>, float } %29, 1
  %30 = tail call { <2 x float>, float } @CgmVec3_norm(<2 x float> %.fca.0.extract93, float %.fca.1.extract94)
  %.fca.0.extract87 = extractvalue { <2 x float>, float } %30, 0
  %.fca.1.extract88 = extractvalue { <2 x float>, float } %30, 1
  call void @llvm.lifetime.start.p0(i64 60, ptr nonnull %6) #4
  store <2 x float> %.sroa.0177.0.copyload, ptr %6, align 16
  %.sroa.6180.0..sroa_idx182 = getelementptr inbounds i8, ptr %6, i64 8
  store float %.sroa.6180.0.copyload, ptr %.sroa.6180.0..sroa_idx182, align 8, !tbaa !10
  %31 = getelementptr inbounds i8, ptr %6, i64 12
  store <2 x float> %.sroa.0170.0.copyload, ptr %31, align 4
  %.sroa.6173.0..sroa_idx175 = getelementptr inbounds i8, ptr %6, i64 20
  store float %.sroa.6173.0.copyload, ptr %.sroa.6173.0..sroa_idx175, align 4, !tbaa !10
  %32 = getelementptr inbounds i8, ptr %6, i64 24
  store <2 x float> %.sroa.0163.0.copyload, ptr %32, align 8
  %.sroa.6166.0..sroa_idx168 = getelementptr inbounds i8, ptr %6, i64 32
  store float %.sroa.6166.0.copyload, ptr %.sroa.6166.0..sroa_idx168, align 16, !tbaa !10
  %33 = getelementptr inbounds i8, ptr %6, i64 36
  store <2 x float> %.fca.0.extract125, ptr %33, align 4
  %.sroa.4162.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 44
  store float %.fca.1.extract126, ptr %.sroa.4162.0..sroa_idx, align 4, !tbaa !10
  %34 = getelementptr inbounds i8, ptr %6, i64 48
  store <2 x float> %.fca.0.extract87, ptr %34, align 16
  %.sroa.4124.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 56
  store float %.fca.1.extract88, ptr %.sroa.4124.0..sroa_idx, align 8, !tbaa !10
  %.sroa.0257.0.vec.extract = extractelement <2 x float> %.fca.0.extract253, i64 0
  %.sroa.0257.4.vec.extract = extractelement <2 x float> %.fca.0.extract253, i64 1
  %35 = getelementptr inbounds i8, ptr %1, i64 28
  br label %36

36:                                               ; preds = %4, %78
  %indvars.iv = phi i64 [ 0, %4 ], [ %indvars.iv.next, %78 ]
  %.sroa.5.0322 = phi float [ undef, %4 ], [ %.sroa.5.3.ph, %78 ]
  %.sroa.086.0321 = phi <2 x float> [ undef, %4 ], [ %.sroa.086.3.ph, %78 ]
  %.0280320 = phi float [ 0x7FF0000000000000, %4 ], [ %.3283.ph, %78 ]
  %37 = icmp ult i64 %indvars.iv, 3
  br i1 %37, label %38, label %45

38:                                               ; preds = %36
  %39 = getelementptr inbounds [3 x [2 x %union.CgmVec3]], ptr %5, i64 0, i64 %indvars.iv
  %.sroa.063.0.copyload = load <2 x float>, ptr %39, align 8
  %.sroa.13.0..sroa_idx = getelementptr inbounds i8, ptr %39, i64 8
  %.sroa.13.0.copyload = load float, ptr %.sroa.13.0..sroa_idx, align 8, !tbaa !10
  %40 = getelementptr inbounds i8, ptr %39, i64 12
  %.sroa.056.0.copyload = load <2 x float>, ptr %40, align 4
  %.sroa.257.0..sroa_idx = getelementptr inbounds i8, ptr %39, i64 20
  %.sroa.257.0.copyload = load float, ptr %.sroa.257.0..sroa_idx, align 4
  %41 = tail call { <2 x float>, float } @CgmVec3_mul_cross(<2 x float> %.sroa.063.0.copyload, float %.sroa.13.0.copyload, <2 x float> %.sroa.056.0.copyload, float %.sroa.257.0.copyload)
  %.fca.0.extract52 = extractvalue { <2 x float>, float } %41, 0
  %.fca.1.extract53 = extractvalue { <2 x float>, float } %41, 1
  %42 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract52, float %.fca.1.extract53, <2 x float> %.fca.0.extract52, float %.fca.1.extract53)
  %43 = tail call zeroext i8 @cgm_approx_eq(float noundef %42, float noundef 0.000000e+00)
  %.not = icmp eq i8 %43, 0
  br i1 %.not, label %.thread, label %78

.thread:                                          ; preds = %38
  %44 = tail call { <2 x float>, float } @CgmVec3_norm(<2 x float> %.fca.0.extract52, float %.fca.1.extract53)
  %.fca.0.extract39 = extractvalue { <2 x float>, float } %44, 0
  %.fca.1.extract40 = extractvalue { <2 x float>, float } %44, 1
  br label %48

45:                                               ; preds = %36
  %46 = add nsw i64 %indvars.iv, -3
  %47 = getelementptr inbounds [5 x %union.CgmVec3], ptr %6, i64 0, i64 %46
  %.sroa.063.0.copyload70 = load <2 x float>, ptr %47, align 4
  %.sroa.13.0..sroa_idx72 = getelementptr inbounds i8, ptr %47, i64 8
  %.sroa.13.0.copyload73 = load float, ptr %.sroa.13.0..sroa_idx72, align 4, !tbaa !10
  br label %48

48:                                               ; preds = %.thread, %45
  %.sroa.063.1 = phi <2 x float> [ %.sroa.063.0.copyload70, %45 ], [ %.fca.0.extract39, %.thread ]
  %.sroa.13.1 = phi float [ %.sroa.13.0.copyload73, %45 ], [ %.fca.1.extract40, %.thread ]
  %49 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract220, float %.fca.1.extract221, <2 x float> %.sroa.063.1, float %.sroa.13.1)
  %50 = tail call float @CgmVec3_dot(<2 x float> %.fca.0.extract200, float %.fca.1.extract201, <2 x float> %.sroa.063.1, float %.sroa.13.1)
  %51 = tail call float @CgmVec3_dot(<2 x float> %.sroa.0177.0.copyload, float %.sroa.6180.0.copyload, <2 x float> %.sroa.063.1, float %.sroa.13.1)
  %52 = tail call float @llvm.fabs.f32(float %51)
  %53 = tail call float @CgmVec3_dot(<2 x float> %.sroa.0170.0.copyload, float %.sroa.6173.0.copyload, <2 x float> %.sroa.063.1, float %.sroa.13.1)
  %54 = tail call float @llvm.fabs.f32(float %53)
  %55 = fmul float %.sroa.0257.4.vec.extract, %54
  %56 = tail call float @llvm.fmuladd.f32(float %.sroa.0257.0.vec.extract, float %52, float %55)
  %57 = tail call float @CgmVec3_dot(<2 x float> %.sroa.0163.0.copyload, float %.sroa.6166.0.copyload, <2 x float> %.sroa.063.1, float %.sroa.13.1)
  %58 = tail call float @llvm.fabs.f32(float %57)
  %59 = tail call float @llvm.fmuladd.f32(float %.fca.1.extract254, float %58, float %56)
  %60 = tail call float @cgm_max(float noundef %49, float noundef %50)
  %61 = load float, ptr %35, align 4, !tbaa !11
  %62 = fadd float %60, %61
  %63 = tail call float @cgm_min(float noundef %49, float noundef %50)
  %64 = load float, ptr %35, align 4, !tbaa !11
  %65 = fsub float %63, %64
  %66 = fneg float %62
  %67 = tail call float @cgm_max(float noundef %66, float noundef %65)
  %68 = fcmp ogt float %67, %59
  br i1 %68, label %.loopexit, label %69

69:                                               ; preds = %48
  %70 = fsub float %59, %67
  %71 = fcmp olt float %70, %.0280320
  br i1 %71, label %72, label %78

72:                                               ; preds = %69
  %73 = fsub float %62, %65
  %74 = tail call float @llvm.fmuladd.f32(float %73, float 5.000000e-01, float %65)
  %75 = fcmp ogt float %74, 0.000000e+00
  br i1 %75, label %76, label %78

76:                                               ; preds = %72
  %77 = tail call { <2 x float>, float } @CgmVec3_neg(<2 x float> %.sroa.063.1, float %.sroa.13.1)
  %.fca.0.extract = extractvalue { <2 x float>, float } %77, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %77, 1
  br label %78

78:                                               ; preds = %72, %76, %69, %38
  %.3283.ph = phi float [ %.0280320, %38 ], [ %70, %72 ], [ %.0280320, %69 ], [ %70, %76 ]
  %.sroa.086.3.ph = phi <2 x float> [ %.sroa.086.0321, %38 ], [ %.sroa.063.1, %72 ], [ %.sroa.086.0321, %69 ], [ %.fca.0.extract, %76 ]
  %.sroa.5.3.ph = phi float [ %.sroa.5.0322, %38 ], [ %.sroa.13.1, %72 ], [ %.sroa.5.0322, %69 ], [ %.fca.1.extract, %76 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond = icmp eq i64 %indvars.iv.next, 8
  br i1 %exitcond, label %79, label %36, !llvm.loop !12

79:                                               ; preds = %78
  %.not295 = icmp eq ptr %2, null
  br i1 %.not295, label %81, label %80

80:                                               ; preds = %79
  store <2 x float> %.sroa.086.3.ph, ptr %2, align 4
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  store float %.sroa.5.3.ph, ptr %.sroa.5.0..sroa_idx, align 4, !tbaa !10
  br label %81

81:                                               ; preds = %80, %79
  %.not296 = icmp eq ptr %3, null
  br i1 %.not296, label %.loopexit, label %82

82:                                               ; preds = %81
  store float %.3283.ph, ptr %3, align 4, !tbaa !14
  br label %.loopexit

.loopexit:                                        ; preds = %48, %81, %82
  %.4 = phi i8 [ 1, %82 ], [ 1, %81 ], [ 0, %48 ]
  call void @llvm.lifetime.end.p0(i64 60, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %5) #4
  ret i8 %.4
}

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, !9, i64 24}
!6 = !{!"CgmCapsule3d", !7, i64 0, !7, i64 12, !9, i64 24, !9, i64 28}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"float", !7, i64 0}
!10 = !{!7, !7, i64 0}
!11 = !{!6, !9, i64 28}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!9, !9, i64 0}


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