; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Collision/Shape (TaperedCylinderShape)

; 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"

%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.6 }
%union.anon.6 = type { <4 x float> }

@_ZN3JPHL20cTaperedCylinderFaceE = external hidden global [8 x %"class.JPH::Vec3"], align 16
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [20 x i8], align 1

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH20TaperedCylinderShape12IsValidScaleENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(64), double, double) unnamed_addr #3 align 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) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) #5

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK3JPH20TaperedCylinderShape9GetScaledENS_4Vec3ERfS2_S2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(64), double, double, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH20TaperedCylinderShape17GetSupportingFaceERKNS_10SubShapeIDENS_4Vec3ES4_RKNS_5Mat44ERNS_11StaticArrayIS4_Lj32EEE(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull align 4 dereferenceable(4) %1, double %2, double %3, double %4, double %5, ptr noundef nonnull align 16 dereferenceable(64) %6, ptr noundef nonnull align 16 dereferenceable(528) %7) unnamed_addr #3 align 2 {
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.JPH::AssertLastParam", align 1
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"struct.JPH::AssertLastParam", align 1
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca float, align 4
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca %"class.JPH::Vec3", align 16
  %36 = alloca %"class.JPH::Vec3", align 16
  %37 = alloca %"class.JPH::Vec3", align 16
  %38 = alloca %"class.JPH::Mat44", align 16
  %39 = alloca %"class.JPH::Vec4", align 16
  %40 = alloca float, align 4
  %41 = alloca float, align 4
  %42 = alloca %"class.JPH::Vec4", align 16
  %43 = alloca %"class.JPH::Vec4", align 16
  %44 = alloca %"class.JPH::Vec4", align 16
  %45 = alloca %"class.JPH::Mat44", align 16
  %46 = alloca %"class.JPH::Mat44", align 16
  %47 = alloca %"class.JPH::Vec4", align 16
  %48 = alloca %"class.JPH::Vec4", align 16
  %49 = alloca %"class.JPH::Vec4", align 16
  %50 = alloca %"class.JPH::Vec4", align 16
  %51 = alloca %"class.JPH::Vec3", align 16
  %52 = alloca ptr, align 8
  %53 = alloca ptr, align 8
  %54 = alloca ptr, align 8
  %55 = alloca %"class.JPH::Vec3", align 16
  %56 = alloca %"class.JPH::Vec3", align 16
  %57 = alloca %"class.JPH::Vec3", align 16
  %58 = alloca %"class.JPH::Vec3", align 16
  %59 = alloca %"class.JPH::Vec3", align 16
  %60 = alloca %"class.JPH::Vec3", align 16
  %61 = alloca %"class.JPH::Vec3", align 16
  %62 = alloca ptr, align 8
  %63 = alloca %"class.JPH::Vec3", align 16
  %64 = alloca %"class.JPH::Vec3", align 16
  %65 = alloca %"class.JPH::Vec3", align 16
  %66 = alloca %"class.JPH::Vec3", align 16
  %67 = alloca %"class.JPH::Vec3", align 16
  %68 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  store double %2, ptr %68, align 16
  %69 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  store double %3, ptr %69, align 8
  %70 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  store double %4, ptr %70, align 16
  %71 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  store double %5, ptr %71, align 8
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %6, ptr %13, align 8, !tbaa !5
  store ptr %7, ptr %14, align 8, !tbaa !5
  %72 = load ptr, ptr %11, align 8
  br label %73

73:                                               ; preds = %8
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  %75 = call noundef zeroext i1 @_ZNK3JPH10SubShapeID7IsEmptyEv(ptr noundef nonnull align 4 dereferenceable(4) %74)
  br i1 %75, label %79, label %76

76:                                               ; preds = %73
  %77 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jS1_NS_15AssertLastParamE(ptr noundef @.str.11, ptr noundef @.str.9, i32 noundef 248, ptr noundef @.str.12)
  br i1 %77, label %78, label %79

78:                                               ; preds = %76
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #10, !srcloc !9
  br label %79

79:                                               ; preds = %78, %76, %73
  br label %80

80:                                               ; preds = %79
  br label %81

81:                                               ; preds = %80
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 %10, i64 16, i1 false), !tbaa.struct !10
  %82 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %83 = load double, ptr %82, align 16
  %84 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %85 = load double, ptr %84, align 8
  %86 = call noundef zeroext i1 @_ZNK3JPH20TaperedCylinderShape12IsValidScaleENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(64) %72, double %83, double %85)
  br i1 %86, label %90, label %87

87:                                               ; preds = %81
  %88 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.8, ptr noundef @.str.9, i32 noundef 249)
  br i1 %88, label %89, label %90

89:                                               ; preds = %87
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #10, !srcloc !12
  br label %90

90:                                               ; preds = %89, %87, %81
  br label %91

91:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %23, ptr align 16 %10, i64 16, i1 false), !tbaa.struct !10
  %92 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %93 = load double, ptr %92, align 16
  %94 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %95 = load double, ptr %94, align 8
  call void @_ZNK3JPH20TaperedCylinderShape9GetScaledENS_4Vec3ERfS2_S2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(64) %72, double %93, double %95, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %22)
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #10
  %96 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %9)
  %97 = getelementptr inbounds %"class.JPH::Vec3", ptr %25, i32 0, i32 0
  %98 = getelementptr inbounds %union.anon, ptr %97, i32 0, i32 0
  %99 = getelementptr inbounds { double, double }, ptr %98, i32 0, i32 0
  %100 = extractvalue { double, double } %96, 0
  store double %100, ptr %99, align 16
  %101 = getelementptr inbounds { double, double }, ptr %98, i32 0, i32 1
  %102 = extractvalue { double, double } %96, 1
  store double %102, ptr %101, align 8
  %103 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %104 = load double, ptr %103, align 16
  %105 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %106 = load double, ptr %105, align 8
  %107 = call { double, double } @_ZN3JPHL22sCalculateSideNormalXZENS_4Vec3E(double %104, double %106)
  %108 = getelementptr inbounds %"class.JPH::Vec3", ptr %24, i32 0, i32 0
  %109 = getelementptr inbounds %union.anon, ptr %108, i32 0, i32 0
  %110 = getelementptr inbounds { double, double }, ptr %109, i32 0, i32 0
  %111 = extractvalue { double, double } %107, 0
  store double %111, ptr %110, align 16
  %112 = getelementptr inbounds { double, double }, ptr %109, i32 0, i32 1
  %113 = extractvalue { double, double } %107, 1
  store double %113, ptr %112, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 %24, i64 16, i1 false), !tbaa.struct !10
  %114 = load float, ptr %18, align 4, !tbaa !13
  %115 = load float, ptr %19, align 4, !tbaa !13
  %116 = load float, ptr %20, align 4, !tbaa !13
  %117 = load float, ptr %21, align 4, !tbaa !13
  %118 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %119 = load double, ptr %118, align 16
  %120 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %121 = load double, ptr %120, align 8
  %122 = call { double, double } @_ZN3JPHL20sCalculateSideNormalENS_4Vec3Effff(double %119, double %121, float noundef %114, float noundef %115, float noundef %116, float noundef %117)
  %123 = getelementptr inbounds %"class.JPH::Vec3", ptr %26, i32 0, i32 0
  %124 = getelementptr inbounds %union.anon, ptr %123, i32 0, i32 0
  %125 = getelementptr inbounds { double, double }, ptr %124, i32 0, i32 0
  %126 = extractvalue { double, double } %122, 0
  store double %126, ptr %125, align 16
  %127 = getelementptr inbounds { double, double }, ptr %124, i32 0, i32 1
  %128 = extractvalue { double, double } %122, 1
  store double %128, ptr %127, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #10
  store float 0x3F50624DE0000000, ptr %28, align 4, !tbaa !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %9, i64 16, i1 false), !tbaa.struct !10
  %129 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %130 = load double, ptr %129, align 16
  %131 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %132 = load double, ptr %131, align 8
  %133 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %26, double %130, double %132)
  %134 = call noundef float @_ZSt3absf(float noundef %133)
  %135 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %9)
  %136 = call noundef float @_ZSt3absf(float noundef %135)
  %137 = fcmp ogt float %134, %136
  br i1 %137, label %138, label %205

138:                                              ; preds = %91
  %139 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #10
  %140 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #10
  %141 = load float, ptr %20, align 4, !tbaa !13
  %142 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %24, float noundef %141)
  %143 = getelementptr inbounds %"class.JPH::Vec3", ptr %32, i32 0, i32 0
  %144 = getelementptr inbounds %union.anon, ptr %143, i32 0, i32 0
  %145 = getelementptr inbounds { double, double }, ptr %144, i32 0, i32 0
  %146 = extractvalue { double, double } %142, 0
  store double %146, ptr %145, align 16
  %147 = getelementptr inbounds { double, double }, ptr %144, i32 0, i32 1
  %148 = extractvalue { double, double } %142, 1
  store double %148, ptr %147, align 8
  %149 = load float, ptr %18, align 4, !tbaa !13
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %33, float noundef 0.000000e+00, float noundef %149, float noundef 0.000000e+00)
  %150 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %151 = load double, ptr %150, align 16
  %152 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %153 = load double, ptr %152, align 8
  %154 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %32, double %151, double %153)
  %155 = getelementptr inbounds %"class.JPH::Vec3", ptr %31, i32 0, i32 0
  %156 = getelementptr inbounds %union.anon, ptr %155, i32 0, i32 0
  %157 = getelementptr inbounds { double, double }, ptr %156, i32 0, i32 0
  %158 = extractvalue { double, double } %154, 0
  store double %158, ptr %157, align 16
  %159 = getelementptr inbounds { double, double }, ptr %156, i32 0, i32 1
  %160 = extractvalue { double, double } %154, 1
  store double %160, ptr %159, align 8
  %161 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %162 = load double, ptr %161, align 16
  %163 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %164 = load double, ptr %163, align 8
  %165 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %140, double %162, double %164)
  %166 = getelementptr inbounds %"class.JPH::Vec3", ptr %30, i32 0, i32 0
  %167 = getelementptr inbounds %union.anon, ptr %166, i32 0, i32 0
  %168 = getelementptr inbounds { double, double }, ptr %167, i32 0, i32 0
  %169 = extractvalue { double, double } %165, 0
  store double %169, ptr %168, align 16
  %170 = getelementptr inbounds { double, double }, ptr %167, i32 0, i32 1
  %171 = extractvalue { double, double } %165, 1
  store double %171, ptr %170, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %139, ptr noundef nonnull align 16 dereferenceable(16) %30)
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #10
  %172 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #10
  %173 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #10
  %174 = load float, ptr %21, align 4, !tbaa !13
  %175 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %24, float noundef %174)
  %176 = getelementptr inbounds %"class.JPH::Vec3", ptr %36, i32 0, i32 0
  %177 = getelementptr inbounds %union.anon, ptr %176, i32 0, i32 0
  %178 = getelementptr inbounds { double, double }, ptr %177, i32 0, i32 0
  %179 = extractvalue { double, double } %175, 0
  store double %179, ptr %178, align 16
  %180 = getelementptr inbounds { double, double }, ptr %177, i32 0, i32 1
  %181 = extractvalue { double, double } %175, 1
  store double %181, ptr %180, align 8
  %182 = load float, ptr %19, align 4, !tbaa !13
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %37, float noundef 0.000000e+00, float noundef %182, float noundef 0.000000e+00)
  %183 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %184 = load double, ptr %183, align 16
  %185 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %186 = load double, ptr %185, align 8
  %187 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %36, double %184, double %186)
  %188 = getelementptr inbounds %"class.JPH::Vec3", ptr %35, i32 0, i32 0
  %189 = getelementptr inbounds %union.anon, ptr %188, i32 0, i32 0
  %190 = getelementptr inbounds { double, double }, ptr %189, i32 0, i32 0
  %191 = extractvalue { double, double } %187, 0
  store double %191, ptr %190, align 16
  %192 = getelementptr inbounds { double, double }, ptr %189, i32 0, i32 1
  %193 = extractvalue { double, double } %187, 1
  store double %193, ptr %192, align 8
  %194 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %195 = load double, ptr %194, align 16
  %196 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %197 = load double, ptr %196, align 8
  %198 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %173, double %195, double %197)
  %199 = getelementptr inbounds %"class.JPH::Vec3", ptr %34, i32 0, i32 0
  %200 = getelementptr inbounds %union.anon, ptr %199, i32 0, i32 0
  %201 = getelementptr inbounds { double, double }, ptr %200, i32 0, i32 0
  %202 = extractvalue { double, double } %198, 0
  store double %202, ptr %201, align 16
  %203 = getelementptr inbounds { double, double }, ptr %200, i32 0, i32 1
  %204 = extractvalue { double, double } %198, 1
  store double %204, ptr %203, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %172, ptr noundef nonnull align 16 dereferenceable(16) %34)
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #10
  br label %364

205:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 64, ptr %38) #10
  %206 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 %206, i64 64, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #10
  %207 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %9)
  %208 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %9)
  call void @_ZN3JPH4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16) %39, float noundef %207, float noundef 0.000000e+00, float noundef %208, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #10
  %209 = call noundef float @_ZNK3JPH4Vec48LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %39)
  store float %209, ptr %40, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #10
  %210 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %9)
  %211 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %210)
  store float %211, ptr %41, align 4, !tbaa !13
  %212 = load float, ptr %40, align 4, !tbaa !13
  %213 = load float, ptr %41, align 4, !tbaa !13
  %214 = fmul float 0x3F7F5A1580000000, %213
  %215 = fcmp ogt float %212, %214
  br i1 %215, label %216, label %254

216:                                              ; preds = %205
  %217 = load float, ptr %40, align 4, !tbaa !13
  %218 = call noundef float @_ZSt4sqrtf(float noundef %217)
  %219 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec4dVEf(ptr noundef nonnull align 16 dereferenceable(16) %39, float noundef %218)
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #10
  %220 = call { double, double } @_ZNK3JPH4Vec47SwizzleILj2ELj1ELj0ELj3EEES0_v(ptr noundef nonnull align 16 dereferenceable(16) %39)
  %221 = getelementptr inbounds %"class.JPH::Vec4", ptr %43, i32 0, i32 0
  %222 = getelementptr inbounds %union.anon.6, ptr %221, i32 0, i32 0
  %223 = getelementptr inbounds { double, double }, ptr %222, i32 0, i32 0
  %224 = extractvalue { double, double } %220, 0
  store double %224, ptr %223, align 16
  %225 = getelementptr inbounds { double, double }, ptr %222, i32 0, i32 1
  %226 = extractvalue { double, double } %220, 1
  store double %226, ptr %225, align 8
  call void @_ZN3JPH4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16) %44, float noundef -1.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %227 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %228 = load double, ptr %227, align 16
  %229 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %230 = load double, ptr %229, align 8
  %231 = call { double, double } @_ZNK3JPH4Vec4mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %43, double %228, double %230)
  %232 = getelementptr inbounds %"class.JPH::Vec4", ptr %42, i32 0, i32 0
  %233 = getelementptr inbounds %union.anon.6, ptr %232, i32 0, i32 0
  %234 = getelementptr inbounds { double, double }, ptr %233, i32 0, i32 0
  %235 = extractvalue { double, double } %231, 0
  store double %235, ptr %234, align 16
  %236 = getelementptr inbounds { double, double }, ptr %233, i32 0, i32 1
  %237 = extractvalue { double, double } %231, 1
  store double %237, ptr %236, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %45) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %46) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %47, ptr align 16 %39, i64 16, i1 false), !tbaa.struct !10
  call void @_ZN3JPH4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16) %48, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %49, ptr align 16 %42, i64 16, i1 false), !tbaa.struct !10
  call void @_ZN3JPH4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16) %50, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %238 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 0
  %239 = load double, ptr %238, align 16
  %240 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 1
  %241 = load double, ptr %240, align 8
  %242 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %243 = load double, ptr %242, align 16
  %244 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %245 = load double, ptr %244, align 8
  %246 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 0
  %247 = load double, ptr %246, align 16
  %248 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 1
  %249 = load double, ptr %248, align 8
  %250 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 0
  %251 = load double, ptr %250, align 16
  %252 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 1
  %253 = load double, ptr %252, align 8
  call void @_ZN3JPH5Mat44C2ENS_4Vec4ES1_S1_S1_(ptr noundef nonnull align 16 dereferenceable(64) %46, double %239, double %241, double %243, double %245, double %247, double %249, double %251, double %253)
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %45, ptr noundef nonnull align 16 dereferenceable(64) %38, ptr noundef nonnull align 16 dereferenceable(64) %46)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 %45, i64 64, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 64, ptr %46) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %45) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #10
  br label %254

254:                                              ; preds = %216, %205
  %255 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %9)
  %256 = fcmp olt float %255, 0.000000e+00
  br i1 %256, label %257, label %309

257:                                              ; preds = %254
  %258 = load float, ptr %20, align 4, !tbaa !13
  %259 = fcmp ogt float %258, 0x3F50624DE0000000
  br i1 %259, label %260, label %308

260:                                              ; preds = %257
  call void @llvm.lifetime.start.p0(i64 16, ptr %51) #10
  %261 = load float, ptr %18, align 4, !tbaa !13
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %51, float noundef 0.000000e+00, float noundef %261, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #10
  store ptr @_ZN3JPHL20cTaperedCylinderFaceE, ptr %52, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #10
  store ptr @_ZN3JPHL20cTaperedCylinderFaceE, ptr %53, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #10
  store ptr getelementptr inbounds (%"class.JPH::Vec3", ptr @_ZN3JPHL20cTaperedCylinderFaceE, i64 8), ptr %54, align 8, !tbaa !5
  br label %262

262:                                              ; preds = %304, %260
  %263 = load ptr, ptr %53, align 8, !tbaa !5
  %264 = load ptr, ptr %54, align 8, !tbaa !5
  %265 = icmp ne ptr %263, %264
  br i1 %265, label %267, label %266

266:                                              ; preds = %262
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #10
  br label %307

267:                                              ; preds = %262
  call void @llvm.lifetime.start.p0(i64 16, ptr %55) #10
  %268 = load ptr, ptr %53, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %55, ptr align 16 %268, i64 16, i1 false), !tbaa.struct !10
  %269 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %56) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %58) #10
  %270 = load float, ptr %20, align 4, !tbaa !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %59, ptr align 16 %55, i64 16, i1 false), !tbaa.struct !10
  %271 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 0
  %272 = load double, ptr %271, align 16
  %273 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 1
  %274 = load double, ptr %273, align 8
  %275 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %270, double %272, double %274)
  %276 = getelementptr inbounds %"class.JPH::Vec3", ptr %58, i32 0, i32 0
  %277 = getelementptr inbounds %union.anon, ptr %276, i32 0, i32 0
  %278 = getelementptr inbounds { double, double }, ptr %277, i32 0, i32 0
  %279 = extractvalue { double, double } %275, 0
  store double %279, ptr %278, align 16
  %280 = getelementptr inbounds { double, double }, ptr %277, i32 0, i32 1
  %281 = extractvalue { double, double } %275, 1
  store double %281, ptr %280, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %60, ptr align 16 %51, i64 16, i1 false), !tbaa.struct !10
  %282 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 0
  %283 = load double, ptr %282, align 16
  %284 = getelementptr inbounds { double, double }, ptr %60, i32 0, i32 1
  %285 = load double, ptr %284, align 8
  %286 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %58, double %283, double %285)
  %287 = getelementptr inbounds %"class.JPH::Vec3", ptr %57, i32 0, i32 0
  %288 = getelementptr inbounds %union.anon, ptr %287, i32 0, i32 0
  %289 = getelementptr inbounds { double, double }, ptr %288, i32 0, i32 0
  %290 = extractvalue { double, double } %286, 0
  store double %290, ptr %289, align 16
  %291 = getelementptr inbounds { double, double }, ptr %288, i32 0, i32 1
  %292 = extractvalue { double, double } %286, 1
  store double %292, ptr %291, align 8
  %293 = getelementptr inbounds { double, double }, ptr %57, i32 0, i32 0
  %294 = load double, ptr %293, align 16
  %295 = getelementptr inbounds { double, double }, ptr %57, i32 0, i32 1
  %296 = load double, ptr %295, align 8
  %297 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %38, double %294, double %296)
  %298 = getelementptr inbounds %"class.JPH::Vec3", ptr %56, i32 0, i32 0
  %299 = getelementptr inbounds %union.anon, ptr %298, i32 0, i32 0
  %300 = getelementptr inbounds { double, double }, ptr %299, i32 0, i32 0
  %301 = extractvalue { double, double } %297, 0
  store double %301, ptr %300, align 16
  %302 = getelementptr inbounds { double, double }, ptr %299, i32 0, i32 1
  %303 = extractvalue { double, double } %297, 1
  store double %303, ptr %302, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %269, ptr noundef nonnull align 16 dereferenceable(16) %56)
  call void @llvm.lifetime.end.p0(i64 16, ptr %58) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %56) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %55) #10
  br label %304

304:                                              ; preds = %267
  %305 = load ptr, ptr %53, align 8, !tbaa !5
  %306 = getelementptr inbounds %"class.JPH::Vec3", ptr %305, i32 1
  store ptr %306, ptr %53, align 8, !tbaa !5
  br label %262

307:                                              ; preds = %266
  call void @llvm.lifetime.end.p0(i64 16, ptr %51) #10
  br label %308

308:                                              ; preds = %307, %257
  br label %363

309:                                              ; preds = %254
  %310 = load float, ptr %21, align 4, !tbaa !13
  %311 = fcmp ogt float %310, 0x3F50624DE0000000
  br i1 %311, label %312, label %362

312:                                              ; preds = %309
  call void @llvm.lifetime.start.p0(i64 16, ptr %61) #10
  %313 = load float, ptr %19, align 4, !tbaa !13
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %61, float noundef 0.000000e+00, float noundef %313, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #10
  %314 = call noundef i64 @_ZSt4sizeIN3JPH4Vec3ELm8EEmRAT0__KT_(ptr noundef nonnull align 16 dereferenceable(128) @_ZN3JPHL20cTaperedCylinderFaceE) #10
  %315 = getelementptr inbounds %"class.JPH::Vec3", ptr @_ZN3JPHL20cTaperedCylinderFaceE, i64 %314
  %316 = getelementptr inbounds %"class.JPH::Vec3", ptr %315, i64 -1
  store ptr %316, ptr %62, align 8, !tbaa !5
  br label %317

317:                                              ; preds = %358, %312
  %318 = load ptr, ptr %62, align 8, !tbaa !5
  %319 = icmp uge ptr %318, @_ZN3JPHL20cTaperedCylinderFaceE
  br i1 %319, label %321, label %320

320:                                              ; preds = %317
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #10
  br label %361

321:                                              ; preds = %317
  %322 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %63) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %65) #10
  %323 = load float, ptr %21, align 4, !tbaa !13
  %324 = load ptr, ptr %62, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %66, ptr align 16 %324, i64 16, i1 false), !tbaa.struct !10
  %325 = getelementptr inbounds { double, double }, ptr %66, i32 0, i32 0
  %326 = load double, ptr %325, align 16
  %327 = getelementptr inbounds { double, double }, ptr %66, i32 0, i32 1
  %328 = load double, ptr %327, align 8
  %329 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %323, double %326, double %328)
  %330 = getelementptr inbounds %"class.JPH::Vec3", ptr %65, i32 0, i32 0
  %331 = getelementptr inbounds %union.anon, ptr %330, i32 0, i32 0
  %332 = getelementptr inbounds { double, double }, ptr %331, i32 0, i32 0
  %333 = extractvalue { double, double } %329, 0
  store double %333, ptr %332, align 16
  %334 = getelementptr inbounds { double, double }, ptr %331, i32 0, i32 1
  %335 = extractvalue { double, double } %329, 1
  store double %335, ptr %334, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %67, ptr align 16 %61, i64 16, i1 false), !tbaa.struct !10
  %336 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 0
  %337 = load double, ptr %336, align 16
  %338 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 1
  %339 = load double, ptr %338, align 8
  %340 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %65, double %337, double %339)
  %341 = getelementptr inbounds %"class.JPH::Vec3", ptr %64, i32 0, i32 0
  %342 = getelementptr inbounds %union.anon, ptr %341, i32 0, i32 0
  %343 = getelementptr inbounds { double, double }, ptr %342, i32 0, i32 0
  %344 = extractvalue { double, double } %340, 0
  store double %344, ptr %343, align 16
  %345 = getelementptr inbounds { double, double }, ptr %342, i32 0, i32 1
  %346 = extractvalue { double, double } %340, 1
  store double %346, ptr %345, align 8
  %347 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 0
  %348 = load double, ptr %347, align 16
  %349 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 1
  %350 = load double, ptr %349, align 8
  %351 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %38, double %348, double %350)
  %352 = getelementptr inbounds %"class.JPH::Vec3", ptr %63, i32 0, i32 0
  %353 = getelementptr inbounds %union.anon, ptr %352, i32 0, i32 0
  %354 = getelementptr inbounds { double, double }, ptr %353, i32 0, i32 0
  %355 = extractvalue { double, double } %351, 0
  store double %355, ptr %354, align 16
  %356 = getelementptr inbounds { double, double }, ptr %353, i32 0, i32 1
  %357 = extractvalue { double, double } %351, 1
  store double %357, ptr %356, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %322, ptr noundef nonnull align 16 dereferenceable(16) %63)
  call void @llvm.lifetime.end.p0(i64 16, ptr %65) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %63) #10
  br label %358

358:                                              ; preds = %321
  %359 = load ptr, ptr %62, align 8, !tbaa !5
  %360 = getelementptr inbounds %"class.JPH::Vec3", ptr %359, i32 -1
  store ptr %360, ptr %62, align 8, !tbaa !5
  br label %317, !llvm.loop !16

361:                                              ; preds = %320
  call void @llvm.lifetime.end.p0(i64 16, ptr %61) #10
  br label %362

362:                                              ; preds = %361, %309
  br label %363

363:                                              ; preds = %362, %308
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %38) #10
  br label %364

364:                                              ; preds = %363, %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH10SubShapeID7IsEmptyEv(ptr noundef nonnull align 4 dereferenceable(4)) #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jS1_NS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

; Function Attrs: alwaysinline mustprogress uwtable
declare hidden { double, double } @_ZN3JPHL22sCalculateSideNormalXZENS_4Vec3E(double, double) #6

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16)) #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare hidden { double, double } @_ZN3JPHL20sCalculateSideNormalENS_4Vec3Effff(double, double, float noundef, float noundef, float noundef, float noundef) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) #7

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528), ptr noundef nonnull align 16 dereferenceable(16)) #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64), double, double) #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16)) #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16)) #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #8 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec48LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) #7

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec4dVEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) #8 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec47SwizzleILj2ELj1ELj0ELj3EEES0_v(ptr noundef nonnull align 16 dereferenceable(16)) #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec4mlES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) #8 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5Mat44C2ENS_4Vec4ES1_S1_S1_(ptr noundef nonnull align 16 dereferenceable(64), double, double, double, double, double, double, double, double) unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef, double, double) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt4sizeIN3JPH4Vec3ELm8EEmRAT0__KT_(ptr noundef nonnull align 16 dereferenceable(128)) #9

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "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 #2 = { alwaysinline mustprogress 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 #3 = { mustprogress 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint mustprogress 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 #6 = { alwaysinline mustprogress 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 #7 = { inlinehint mustprogress 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 #8 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "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 #9 = { mustprogress 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 #10 = { 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++ TBAA"}
!9 = !{i64 2157860179}
!10 = !{i64 0, i64 16, !11}
!11 = !{!7, !7, i64 0}
!12 = !{i64 2157860535}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{i64 0, i64 64, !11}
!16 = distinct !{!16, !17}
!17 = !{!"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"

%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.6 }
%union.anon.6 = type { <4 x float> }

@_ZN3JPHL20cTaperedCylinderFaceE = external hidden global [8 x %"class.JPH::Vec3"], align 16
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [20 x i8], align 1

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH20TaperedCylinderShape12IsValidScaleENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(64), double, double) unnamed_addr #3 align 2

; Function Attrs: mustprogress 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) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK3JPH20TaperedCylinderShape9GetScaledENS_4Vec3ERfS2_S2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(64), double, double, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH20TaperedCylinderShape17GetSupportingFaceERKNS_10SubShapeIDENS_4Vec3ES4_RKNS_5Mat44ERNS_11StaticArrayIS4_Lj32EEE(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull align 4 dereferenceable(4) %1, double %2, double %3, double %4, double %5, ptr noundef nonnull align 16 dereferenceable(64) %6, ptr noundef nonnull align 16 dereferenceable(528) %7) unnamed_addr #3 align 2 {
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Mat44", align 16
  %24 = alloca %"class.JPH::Vec4", align 16
  %25 = alloca %"class.JPH::Vec4", align 16
  %26 = alloca %"class.JPH::Vec4", align 16
  %27 = alloca %"class.JPH::Mat44", align 16
  %28 = alloca %"class.JPH::Mat44", align 16
  %29 = alloca %"class.JPH::Vec4", align 16
  %30 = alloca %"class.JPH::Vec4", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca %"class.JPH::Vec3", align 16
  %36 = alloca %"class.JPH::Vec3", align 16
  store double %2, ptr %9, align 16
  %37 = getelementptr inbounds i8, ptr %9, i64 8
  store double %3, ptr %37, align 8
  %38 = tail call noundef zeroext i1 @_ZNK3JPH10SubShapeID7IsEmptyEv(ptr noundef nonnull align 4 dereferenceable(4) %1)
  br i1 %38, label %42, label %39

39:                                               ; preds = %8
  %40 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jS1_NS_15AssertLastParamE(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.9, i32 noundef 248, ptr noundef nonnull @.str.12)
  br i1 %40, label %41, label %42

41:                                               ; preds = %39
  tail call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #10, !srcloc !5
  br label %42

42:                                               ; preds = %41, %39, %8
  %43 = tail call noundef zeroext i1 @_ZNK3JPH20TaperedCylinderShape12IsValidScaleENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(64) %0, double %4, double %5)
  br i1 %43, label %47, label %44

44:                                               ; preds = %42
  %45 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.9, i32 noundef 249)
  br i1 %45, label %46, label %47

46:                                               ; preds = %44
  tail call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #10, !srcloc !6
  br label %47

47:                                               ; preds = %42, %44, %46
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #10
  call void @_ZNK3JPH20TaperedCylinderShape9GetScaledENS_4Vec3ERfS2_S2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(64) %0, double %4, double %5, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #10
  %48 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %9)
  %49 = extractvalue { double, double } %48, 0
  %50 = extractvalue { double, double } %48, 1
  %51 = call { double, double } @_ZN3JPHL22sCalculateSideNormalXZENS_4Vec3E(double %49, double %50)
  %52 = extractvalue { double, double } %51, 0
  store double %52, ptr %15, align 16
  %53 = getelementptr inbounds i8, ptr %15, i64 8
  %54 = extractvalue { double, double } %51, 1
  store double %54, ptr %53, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #10
  %55 = load float, ptr %10, align 4, !tbaa !7
  %56 = load float, ptr %11, align 4, !tbaa !7
  %57 = load float, ptr %12, align 4, !tbaa !7
  %58 = load float, ptr %13, align 4, !tbaa !7
  %59 = call { double, double } @_ZN3JPHL20sCalculateSideNormalENS_4Vec3Effff(double %52, double %54, float noundef %55, float noundef %56, float noundef %57, float noundef %58)
  %60 = extractvalue { double, double } %59, 0
  store double %60, ptr %16, align 16
  %61 = getelementptr inbounds i8, ptr %16, i64 8
  %62 = extractvalue { double, double } %59, 1
  store double %62, ptr %61, align 8
  %.sroa.031.0.copyload = load double, ptr %9, align 16
  %.sroa.232.0.copyload = load double, ptr %37, align 8, !tbaa !11
  %63 = call noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %.sroa.031.0.copyload, double %.sroa.232.0.copyload)
  %64 = call noundef float @_ZSt3absf(float noundef %63)
  %65 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %9)
  %66 = call noundef float @_ZSt3absf(float noundef %65)
  %67 = fcmp ogt float %64, %66
  br i1 %67, label %68, label %101

68:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #10
  %69 = load float, ptr %12, align 4, !tbaa !7
  %70 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %15, float noundef %69)
  %71 = extractvalue { double, double } %70, 0
  store double %71, ptr %18, align 16
  %72 = getelementptr inbounds i8, ptr %18, i64 8
  %73 = extractvalue { double, double } %70, 1
  store double %73, ptr %72, align 8
  %74 = load float, ptr %10, align 4, !tbaa !7
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %19, float noundef 0.000000e+00, float noundef %74, float noundef 0.000000e+00)
  %75 = load double, ptr %19, align 16
  %76 = getelementptr inbounds i8, ptr %19, i64 8
  %77 = load double, ptr %76, align 8
  %78 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %18, double %75, double %77)
  %79 = extractvalue { double, double } %78, 0
  %80 = extractvalue { double, double } %78, 1
  %81 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %6, double %79, double %80)
  %82 = extractvalue { double, double } %81, 0
  store double %82, ptr %17, align 16
  %83 = getelementptr inbounds i8, ptr %17, i64 8
  %84 = extractvalue { double, double } %81, 1
  store double %84, ptr %83, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %7, ptr noundef nonnull align 16 dereferenceable(16) %17)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #10
  %85 = load float, ptr %13, align 4, !tbaa !7
  %86 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %15, float noundef %85)
  %87 = extractvalue { double, double } %86, 0
  store double %87, ptr %21, align 16
  %88 = getelementptr inbounds i8, ptr %21, i64 8
  %89 = extractvalue { double, double } %86, 1
  store double %89, ptr %88, align 8
  %90 = load float, ptr %11, align 4, !tbaa !7
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %22, float noundef 0.000000e+00, float noundef %90, float noundef 0.000000e+00)
  %91 = load double, ptr %22, align 16
  %92 = getelementptr inbounds i8, ptr %22, i64 8
  %93 = load double, ptr %92, align 8
  %94 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %21, double %91, double %93)
  %95 = extractvalue { double, double } %94, 0
  %96 = extractvalue { double, double } %94, 1
  %97 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %6, double %95, double %96)
  %98 = extractvalue { double, double } %97, 0
  store double %98, ptr %20, align 16
  %99 = getelementptr inbounds i8, ptr %20, i64 8
  %100 = extractvalue { double, double } %97, 1
  store double %100, ptr %99, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %7, ptr noundef nonnull align 16 dereferenceable(16) %20)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #10
  br label %239

101:                                              ; preds = %47
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %23) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %23, ptr noundef nonnull align 16 dereferenceable(64) %6, i64 64, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #10
  %102 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %9)
  %103 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %9)
  call void @_ZN3JPH4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16) %24, float noundef %102, float noundef 0.000000e+00, float noundef %103, float noundef 0.000000e+00)
  %104 = call noundef float @_ZNK3JPH4Vec48LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %24)
  %105 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %9)
  %106 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %105)
  %107 = fmul float %106, 0x3F7F5A1580000000
  %108 = fcmp ogt float %104, %107
  br i1 %108, label %109, label %128

109:                                              ; preds = %101
  %110 = call noundef float @_ZSt4sqrtf(float noundef %104)
  %111 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec4dVEf(ptr noundef nonnull align 16 dereferenceable(16) %24, float noundef %110)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #10
  %112 = call { double, double } @_ZNK3JPH4Vec47SwizzleILj2ELj1ELj0ELj3EEES0_v(ptr noundef nonnull align 16 dereferenceable(16) %24)
  %113 = extractvalue { double, double } %112, 0
  store double %113, ptr %25, align 16
  %114 = getelementptr inbounds i8, ptr %25, i64 8
  %115 = extractvalue { double, double } %112, 1
  store double %115, ptr %114, align 8
  call void @_ZN3JPH4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16) %26, float noundef -1.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %116 = load double, ptr %26, align 16
  %117 = getelementptr inbounds i8, ptr %26, i64 8
  %118 = load double, ptr %117, align 8
  %119 = call { double, double } @_ZNK3JPH4Vec4mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %25, double %116, double %118)
  %120 = extractvalue { double, double } %119, 0
  %121 = extractvalue { double, double } %119, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %27) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %28) #10
  %.sroa.020.0.copyload = load double, ptr %24, align 16
  %.sroa.221.0..sroa_idx = getelementptr inbounds i8, ptr %24, i64 8
  %.sroa.221.0.copyload = load double, ptr %.sroa.221.0..sroa_idx, align 8, !tbaa !11
  call void @_ZN3JPH4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16) %29, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @_ZN3JPH4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16) %30, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %122 = load double, ptr %29, align 16
  %123 = getelementptr inbounds i8, ptr %29, i64 8
  %124 = load double, ptr %123, align 8
  %125 = load double, ptr %30, align 16
  %126 = getelementptr inbounds i8, ptr %30, i64 8
  %127 = load double, ptr %126, align 8
  call void @_ZN3JPH5Mat44C2ENS_4Vec4ES1_S1_S1_(ptr noundef nonnull align 16 dereferenceable(64) %28, double %.sroa.020.0.copyload, double %.sroa.221.0.copyload, double %122, double %124, double %120, double %121, double %125, double %127)
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %27, ptr noundef nonnull align 16 dereferenceable(64) %23, ptr noundef nonnull align 16 dereferenceable(64) %28)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %23, ptr noundef nonnull align 16 dereferenceable(64) %27, i64 64, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %28) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %27) #10
  br label %128

128:                                              ; preds = %109, %101
  %129 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %9)
  %130 = fcmp olt float %129, 0.000000e+00
  br i1 %130, label %131, label %218

131:                                              ; preds = %128
  %132 = load float, ptr %12, align 4, !tbaa !7
  %133 = fcmp ogt float %132, 0x3F50624DE0000000
  br i1 %133, label %134, label %238

134:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %31) #10
  %135 = load float, ptr %10, align 4, !tbaa !7
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %31, float noundef 0.000000e+00, float noundef %135, float noundef 0.000000e+00)
  %136 = getelementptr inbounds i8, ptr %33, i64 8
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %31, i64 8
  %137 = getelementptr inbounds i8, ptr %32, i64 8
  %.sroa.013.0.copyload = load double, ptr @_ZN3JPHL20cTaperedCylinderFaceE, align 16
  %.sroa.4.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL20cTaperedCylinderFaceE, i64 8), align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %33) #10
  %138 = load float, ptr %12, align 4, !tbaa !7
  %139 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %138, double %.sroa.013.0.copyload, double %.sroa.4.0.copyload)
  %140 = extractvalue { double, double } %139, 0
  store double %140, ptr %33, align 16
  %141 = extractvalue { double, double } %139, 1
  store double %141, ptr %136, align 8
  %.sroa.07.0.copyload = load double, ptr %31, align 16
  %.sroa.28.0.copyload = load double, ptr %.sroa.28.0..sroa_idx, align 8, !tbaa !11
  %142 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %33, double %.sroa.07.0.copyload, double %.sroa.28.0.copyload)
  %143 = extractvalue { double, double } %142, 0
  %144 = extractvalue { double, double } %142, 1
  %145 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %23, double %143, double %144)
  %146 = extractvalue { double, double } %145, 0
  store double %146, ptr %32, align 16
  %147 = extractvalue { double, double } %145, 1
  store double %147, ptr %137, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %7, ptr noundef nonnull align 16 dereferenceable(16) %32)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #10
  %.sroa.013.0.copyload.1 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL20cTaperedCylinderFaceE, i64 16), align 16
  %.sroa.4.0.copyload.1 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL20cTaperedCylinderFaceE, i64 24), align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %33) #10
  %148 = load float, ptr %12, align 4, !tbaa !7
  %149 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %148, double %.sroa.013.0.copyload.1, double %.sroa.4.0.copyload.1)
  %150 = extractvalue { double, double } %149, 0
  store double %150, ptr %33, align 16
  %151 = extractvalue { double, double } %149, 1
  store double %151, ptr %136, align 8
  %.sroa.07.0.copyload.1 = load double, ptr %31, align 16
  %.sroa.28.0.copyload.1 = load double, ptr %.sroa.28.0..sroa_idx, align 8, !tbaa !11
  %152 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %33, double %.sroa.07.0.copyload.1, double %.sroa.28.0.copyload.1)
  %153 = extractvalue { double, double } %152, 0
  %154 = extractvalue { double, double } %152, 1
  %155 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %23, double %153, double %154)
  %156 = extractvalue { double, double } %155, 0
  store double %156, ptr %32, align 16
  %157 = extractvalue { double, double } %155, 1
  store double %157, ptr %137, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %7, ptr noundef nonnull align 16 dereferenceable(16) %32)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #10
  %.sroa.013.0.copyload.2 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL20cTaperedCylinderFaceE, i64 32), align 16
  %.sroa.4.0.copyload.2 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL20cTaperedCylinderFaceE, i64 40), align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %33) #10
  %158 = load float, ptr %12, align 4, !tbaa !7
  %159 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %158, double %.sroa.013.0.copyload.2, double %.sroa.4.0.copyload.2)
  %160 = extractvalue { double, double } %159, 0
  store double %160, ptr %33, align 16
  %161 = extractvalue { double, double } %159, 1
  store double %161, ptr %136, align 8
  %.sroa.07.0.copyload.2 = load double, ptr %31, align 16
  %.sroa.28.0.copyload.2 = load double, ptr %.sroa.28.0..sroa_idx, align 8, !tbaa !11
  %162 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %33, double %.sroa.07.0.copyload.2, double %.sroa.28.0.copyload.2)
  %163 = extractvalue { double, double } %162, 0
  %164 = extractvalue { double, double } %162, 1
  %165 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %23, double %163, double %164)
  %166 = extractvalue { double, double } %165, 0
  store double %166, ptr %32, align 16
  %167 = extractvalue { double, double } %165, 1
  store double %167, ptr %137, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %7, ptr noundef nonnull align 16 dereferenceable(16) %32)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #10
  %.sroa.013.0.copyload.3 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL20cTaperedCylinderFaceE, i64 48), align 16
  %.sroa.4.0.copyload.3 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL20cTaperedCylinderFaceE, i64 56), align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %33) #10
  %168 = load float, ptr %12, align 4, !tbaa !7
  %169 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %168, double %.sroa.013.0.copyload.3, double %.sroa.4.0.copyload.3)
  %170 = extractvalue { double, double } %169, 0
  store double %170, ptr %33, align 16
  %171 = extractvalue { double, double } %169, 1
  store double %171, ptr %136, align 8
  %.sroa.07.0.copyload.3 = load double, ptr %31, align 16
  %.sroa.28.0.copyload.3 = load double, ptr %.sroa.28.0..sroa_idx, align 8, !tbaa !11
  %172 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %33, double %.sroa.07.0.copyload.3, double %.sroa.28.0.copyload.3)
  %173 = extractvalue { double, double } %172, 0
  %174 = extractvalue { double, double } %172, 1
  %175 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %23, double %173, double %174)
  %176 = extractvalue { double, double } %175, 0
  store double %176, ptr %32, align 16
  %177 = extractvalue { double, double } %175, 1
  store double %177, ptr %137, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %7, ptr noundef nonnull align 16 dereferenceable(16) %32)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #10
  %.sroa.013.0.copyload.4 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL20cTaperedCylinderFaceE, i64 64), align 16
  %.sroa.4.0.copyload.4 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL20cTaperedCylinderFaceE, i64 72), align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %33) #10
  %178 = load float, ptr %12, align 4, !tbaa !7
  %179 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %178, double %.sroa.013.0.copyload.4, double %.sroa.4.0.copyload.4)
  %180 = extractvalue { double, double } %179, 0
  store double %180, ptr %33, align 16
  %181 = extractvalue { double, double } %179, 1
  store double %181, ptr %136, align 8
  %.sroa.07.0.copyload.4 = load double, ptr %31, align 16
  %.sroa.28.0.copyload.4 = load double, ptr %.sroa.28.0..sroa_idx, align 8, !tbaa !11
  %182 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %33, double %.sroa.07.0.copyload.4, double %.sroa.28.0.copyload.4)
  %183 = extractvalue { double, double } %182, 0
  %184 = extractvalue { double, double } %182, 1
  %185 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %23, double %183, double %184)
  %186 = extractvalue { double, double } %185, 0
  store double %186, ptr %32, align 16
  %187 = extractvalue { double, double } %185, 1
  store double %187, ptr %137, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %7, ptr noundef nonnull align 16 dereferenceable(16) %32)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #10
  %.sroa.013.0.copyload.5 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL20cTaperedCylinderFaceE, i64 80), align 16
  %.sroa.4.0.copyload.5 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL20cTaperedCylinderFaceE, i64 88), align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %33) #10
  %188 = load float, ptr %12, align 4, !tbaa !7
  %189 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %188, double %.sroa.013.0.copyload.5, double %.sroa.4.0.copyload.5)
  %190 = extractvalue { double, double } %189, 0
  store double %190, ptr %33, align 16
  %191 = extractvalue { double, double } %189, 1
  store double %191, ptr %136, align 8
  %.sroa.07.0.copyload.5 = load double, ptr %31, align 16
  %.sroa.28.0.copyload.5 = load double, ptr %.sroa.28.0..sroa_idx, align 8, !tbaa !11
  %192 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %33, double %.sroa.07.0.copyload.5, double %.sroa.28.0.copyload.5)
  %193 = extractvalue { double, double } %192, 0
  %194 = extractvalue { double, double } %192, 1
  %195 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %23, double %193, double %194)
  %196 = extractvalue { double, double } %195, 0
  store double %196, ptr %32, align 16
  %197 = extractvalue { double, double } %195, 1
  store double %197, ptr %137, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %7, ptr noundef nonnull align 16 dereferenceable(16) %32)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #10
  %.sroa.013.0.copyload.6 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL20cTaperedCylinderFaceE, i64 96), align 16
  %.sroa.4.0.copyload.6 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL20cTaperedCylinderFaceE, i64 104), align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %33) #10
  %198 = load float, ptr %12, align 4, !tbaa !7
  %199 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %198, double %.sroa.013.0.copyload.6, double %.sroa.4.0.copyload.6)
  %200 = extractvalue { double, double } %199, 0
  store double %200, ptr %33, align 16
  %201 = extractvalue { double, double } %199, 1
  store double %201, ptr %136, align 8
  %.sroa.07.0.copyload.6 = load double, ptr %31, align 16
  %.sroa.28.0.copyload.6 = load double, ptr %.sroa.28.0..sroa_idx, align 8, !tbaa !11
  %202 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %33, double %.sroa.07.0.copyload.6, double %.sroa.28.0.copyload.6)
  %203 = extractvalue { double, double } %202, 0
  %204 = extractvalue { double, double } %202, 1
  %205 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %23, double %203, double %204)
  %206 = extractvalue { double, double } %205, 0
  store double %206, ptr %32, align 16
  %207 = extractvalue { double, double } %205, 1
  store double %207, ptr %137, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %7, ptr noundef nonnull align 16 dereferenceable(16) %32)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #10
  %.sroa.013.0.copyload.7 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL20cTaperedCylinderFaceE, i64 112), align 16
  %.sroa.4.0.copyload.7 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL20cTaperedCylinderFaceE, i64 120), align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %33) #10
  %208 = load float, ptr %12, align 4, !tbaa !7
  %209 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %208, double %.sroa.013.0.copyload.7, double %.sroa.4.0.copyload.7)
  %210 = extractvalue { double, double } %209, 0
  store double %210, ptr %33, align 16
  %211 = extractvalue { double, double } %209, 1
  store double %211, ptr %136, align 8
  %.sroa.07.0.copyload.7 = load double, ptr %31, align 16
  %.sroa.28.0.copyload.7 = load double, ptr %.sroa.28.0..sroa_idx, align 8, !tbaa !11
  %212 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %33, double %.sroa.07.0.copyload.7, double %.sroa.28.0.copyload.7)
  %213 = extractvalue { double, double } %212, 0
  %214 = extractvalue { double, double } %212, 1
  %215 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %23, double %213, double %214)
  %216 = extractvalue { double, double } %215, 0
  store double %216, ptr %32, align 16
  %217 = extractvalue { double, double } %215, 1
  store double %217, ptr %137, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %7, ptr noundef nonnull align 16 dereferenceable(16) %32)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #10
  br label %238

218:                                              ; preds = %128
  %219 = load float, ptr %13, align 4, !tbaa !7
  %220 = fcmp ogt float %219, 0x3F50624DE0000000
  br i1 %220, label %221, label %238

221:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %34) #10
  %222 = load float, ptr %11, align 4, !tbaa !7
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %34, float noundef 0.000000e+00, float noundef %222, float noundef 0.000000e+00)
  %223 = call noundef i64 @_ZSt4sizeIN3JPH4Vec3ELm8EEmRAT0__KT_(ptr noundef nonnull align 16 dereferenceable(128) @_ZN3JPHL20cTaperedCylinderFaceE) #10
  %224 = getelementptr inbounds %"class.JPH::Vec3", ptr @_ZN3JPHL20cTaperedCylinderFaceE, i64 %223
  %.05154 = getelementptr inbounds i8, ptr %224, i64 -16
  %.not55 = icmp ult ptr %.05154, @_ZN3JPHL20cTaperedCylinderFaceE
  br i1 %.not55, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %221
  %225 = getelementptr inbounds i8, ptr %36, i64 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %34, i64 8
  %226 = getelementptr inbounds i8, ptr %35, i64 8
  br label %227

._crit_edge:                                      ; preds = %227, %221
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %34) #10
  br label %238

227:                                              ; preds = %.lr.ph, %227
  %.05157 = phi ptr [ %.05154, %.lr.ph ], [ %.051, %227 ]
  %.pn56 = phi ptr [ %224, %.lr.ph ], [ %.05157, %227 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %35) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %36) #10
  %228 = load float, ptr %13, align 4, !tbaa !7
  %.sroa.01.0.copyload = load double, ptr %.05157, align 16
  %.sroa.22.0..sroa_idx = getelementptr inbounds i8, ptr %.pn56, i64 -8
  %.sroa.22.0.copyload = load double, ptr %.sroa.22.0..sroa_idx, align 8, !tbaa !11
  %229 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %228, double %.sroa.01.0.copyload, double %.sroa.22.0.copyload)
  %230 = extractvalue { double, double } %229, 0
  store double %230, ptr %36, align 16
  %231 = extractvalue { double, double } %229, 1
  store double %231, ptr %225, align 8
  %.sroa.0.0.copyload = load double, ptr %34, align 16
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !11
  %232 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %36, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  %233 = extractvalue { double, double } %232, 0
  %234 = extractvalue { double, double } %232, 1
  %235 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %23, double %233, double %234)
  %236 = extractvalue { double, double } %235, 0
  store double %236, ptr %35, align 16
  %237 = extractvalue { double, double } %235, 1
  store double %237, ptr %226, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %7, ptr noundef nonnull align 16 dereferenceable(16) %35)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %36) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %35) #10
  %.051 = getelementptr inbounds i8, ptr %.05157, i64 -16
  %.not = icmp ult ptr %.051, @_ZN3JPHL20cTaperedCylinderFaceE
  br i1 %.not, label %._crit_edge, label %227, !llvm.loop !13

238:                                              ; preds = %218, %._crit_edge, %131, %134
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %23) #10
  br label %239

239:                                              ; preds = %238, %68
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #10
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH10SubShapeID7IsEmptyEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jS1_NS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: alwaysinline mustprogress uwtable
declare hidden { double, double } @_ZN3JPHL22sCalculateSideNormalXZENS_4Vec3E(double, double) local_unnamed_addr #6

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare hidden { double, double } @_ZN3JPHL20sCalculateSideNormalENS_4Vec3Effff(double, double, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) local_unnamed_addr #7

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec33DotES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64), double, double) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #8 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec48LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) local_unnamed_addr #7

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec4dVEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) local_unnamed_addr #8 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec47SwizzleILj2ELj1ELj0ELj3EEES0_v(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec4mlES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) local_unnamed_addr #8 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5Mat44C2ENS_4Vec4ES1_S1_S1_(ptr noundef nonnull align 16 dereferenceable(64), double, double, double, double, double, double, double, double) unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef, double, double) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt4sizeIN3JPH4Vec3ELm8EEmRAT0__KT_(ptr noundef nonnull align 16 dereferenceable(128)) local_unnamed_addr #9

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "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 #2 = { alwaysinline mustprogress 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 #3 = { mustprogress 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint mustprogress 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 #6 = { alwaysinline mustprogress 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 #7 = { inlinehint mustprogress 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 #8 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "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 #9 = { mustprogress 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 #10 = { 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 = !{i64 2157860179}
!6 = !{i64 2157860535}
!7 = !{!8, !8, i64 0}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!9, !9, i64 0}
!12 = !{i64 0, i64 64, !11}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass