; LLVM IR from zig-gamedev/zphysics :: libs/Jolt/Physics/Collision/Shape (CylinderShape)

; 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.3 }
%union.anon.3 = type { <4 x float> }
%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.9 }
%union.anon.9 = type { <4 x float> }
%"class.JPH::CylinderShape" = type { %"class.JPH::ConvexShape.base", float, float, float }
%"class.JPH::ConvexShape.base" = type <{ %"class.JPH::Shape.base", [6 x i8], %"class.JPH::RefConst", float }>
%"class.JPH::Shape.base" = type <{ ptr, %"class.JPH::RefTarget.7", [4 x i8], i64, i8, i8 }>
%"class.JPH::RefTarget.7" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::RefConst" = type { ptr }

@_ZN3JPHL8cTopFaceE = external hidden global [8 x %"class.JPH::Vec3"], align 16
@.str.7 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.13 = 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: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH13CylinderShape12IsValidScaleENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(56), 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: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec33AbsEv(ptr noundef nonnull align 16 dereferenceable(16)) #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 @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16)) #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH13CylinderShape17GetSupportingFaceERKNS_10SubShapeIDENS_4Vec3ES4_RKNS_5Mat44ERNS_11StaticArrayIS4_Lj32EEE(ptr noundef nonnull align 8 dereferenceable(56) %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 %"class.JPH::Vec3", align 16
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %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::Mat44", align 16
  %36 = alloca %"class.JPH::Vec3", align 16
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca ptr, align 8
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca %"class.JPH::Vec3", align 16
  %43 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  store double %2, ptr %43, align 16
  %44 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  store double %3, ptr %44, align 8
  %45 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  store double %4, ptr %45, align 16
  %46 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  store double %5, ptr %46, 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
  %47 = load ptr, ptr %11, align 8
  br label %48

48:                                               ; preds = %8
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  %50 = call noundef zeroext i1 @_ZNK3JPH10SubShapeID7IsEmptyEv(ptr noundef nonnull align 4 dereferenceable(4) %49)
  br i1 %50, label %54, label %51

51:                                               ; preds = %48
  %52 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jS1_NS_15AssertLastParamE(ptr noundef @.str.12, ptr noundef @.str.7, i32 noundef 193, ptr noundef @.str.13)
  br i1 %52, label %53, label %54

53:                                               ; preds = %51
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #8, !srcloc !9
  br label %54

54:                                               ; preds = %53, %51, %48
  br label %55

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %55
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 %10, i64 16, i1 false), !tbaa.struct !10
  %57 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %58 = load double, ptr %57, align 16
  %59 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %60 = load double, ptr %59, align 8
  %61 = call noundef zeroext i1 @_ZNK3JPH13CylinderShape12IsValidScaleENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(56) %47, double %58, double %60)
  br i1 %61, label %65, label %62

62:                                               ; preds = %56
  %63 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.10, ptr noundef @.str.7, i32 noundef 194)
  br i1 %63, label %64, label %65

64:                                               ; preds = %62
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #8, !srcloc !12
  br label %65

65:                                               ; preds = %64, %62, %56
  br label %66

66:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #8
  %67 = call { double, double } @_ZNK3JPH4Vec33AbsEv(ptr noundef nonnull align 16 dereferenceable(16) %10)
  %68 = getelementptr inbounds %"class.JPH::Vec3", ptr %18, i32 0, i32 0
  %69 = getelementptr inbounds %union.anon.3, ptr %68, i32 0, i32 0
  %70 = getelementptr inbounds { double, double }, ptr %69, i32 0, i32 0
  %71 = extractvalue { double, double } %67, 0
  store double %71, ptr %70, align 16
  %72 = getelementptr inbounds { double, double }, ptr %69, i32 0, i32 1
  %73 = extractvalue { double, double } %67, 1
  store double %73, ptr %72, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %74 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %18)
  store float %74, ptr %19, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %75 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %18)
  store float %75, ptr %20, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %76 = load float, ptr %20, align 4, !tbaa !13
  %77 = getelementptr inbounds %"class.JPH::CylinderShape", ptr %47, i32 0, i32 1
  %78 = load float, ptr %77, align 4, !tbaa !15
  %79 = fmul float %76, %78
  store float %79, ptr %21, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %80 = load float, ptr %19, align 4, !tbaa !13
  %81 = getelementptr inbounds %"class.JPH::CylinderShape", ptr %47, i32 0, i32 2
  %82 = load float, ptr %81, align 8, !tbaa !27
  %83 = fmul float %80, %82
  store float %83, ptr %22, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %84 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %9)
  store float %84, ptr %23, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %85 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %9)
  store float %85, ptr %24, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %86 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %9)
  store float %86, ptr %25, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %87 = load float, ptr %23, align 4, !tbaa !13
  %88 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %87)
  %89 = load float, ptr %25, align 4, !tbaa !13
  %90 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %89)
  %91 = fadd float %88, %90
  %92 = call noundef float @_ZSt4sqrtf(float noundef %91)
  store float %92, ptr %26, align 4, !tbaa !13
  %93 = load float, ptr %26, align 4, !tbaa !13
  %94 = load float, ptr %21, align 4, !tbaa !13
  %95 = fmul float %93, %94
  %96 = load float, ptr %22, align 4, !tbaa !13
  %97 = load float, ptr %24, align 4, !tbaa !13
  %98 = call noundef float @_ZSt3absf(float noundef %97)
  %99 = fmul float %96, %98
  %100 = fcmp ogt float %95, %99
  br i1 %100, label %101, label %145

101:                                              ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %102 = load float, ptr %22, align 4, !tbaa !13
  %103 = fneg float %102
  %104 = load float, ptr %26, align 4, !tbaa !13
  %105 = fdiv float %103, %104
  store float %105, ptr %27, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %106 = load float, ptr %23, align 4, !tbaa !13
  %107 = load float, ptr %27, align 4, !tbaa !13
  %108 = fmul float %106, %107
  store float %108, ptr %28, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %109 = load float, ptr %25, align 4, !tbaa !13
  %110 = load float, ptr %27, align 4, !tbaa !13
  %111 = fmul float %109, %110
  store float %111, ptr %29, align 4, !tbaa !13
  %112 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #8
  %113 = load ptr, ptr %13, align 8, !tbaa !5
  %114 = load float, ptr %28, align 4, !tbaa !13
  %115 = load float, ptr %21, align 4, !tbaa !13
  %116 = load float, ptr %29, align 4, !tbaa !13
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %31, float noundef %114, float noundef %115, float noundef %116)
  %117 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %118 = load double, ptr %117, align 16
  %119 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %120 = load double, ptr %119, align 8
  %121 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %113, double %118, double %120)
  %122 = getelementptr inbounds %"class.JPH::Vec3", ptr %30, i32 0, i32 0
  %123 = getelementptr inbounds %union.anon.3, ptr %122, i32 0, i32 0
  %124 = getelementptr inbounds { double, double }, ptr %123, i32 0, i32 0
  %125 = extractvalue { double, double } %121, 0
  store double %125, ptr %124, align 16
  %126 = getelementptr inbounds { double, double }, ptr %123, i32 0, i32 1
  %127 = extractvalue { double, double } %121, 1
  store double %127, ptr %126, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %112, ptr noundef nonnull align 16 dereferenceable(16) %30)
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  %128 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #8
  %129 = load ptr, ptr %13, align 8, !tbaa !5
  %130 = load float, ptr %28, align 4, !tbaa !13
  %131 = load float, ptr %21, align 4, !tbaa !13
  %132 = fneg float %131
  %133 = load float, ptr %29, align 4, !tbaa !13
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %33, float noundef %130, float noundef %132, float noundef %133)
  %134 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %135 = load double, ptr %134, align 16
  %136 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %137 = load double, ptr %136, align 8
  %138 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %129, double %135, double %137)
  %139 = getelementptr inbounds %"class.JPH::Vec3", ptr %32, i32 0, i32 0
  %140 = getelementptr inbounds %union.anon.3, ptr %139, i32 0, i32 0
  %141 = getelementptr inbounds { double, double }, ptr %140, i32 0, i32 0
  %142 = extractvalue { double, double } %138, 0
  store double %142, ptr %141, align 16
  %143 = getelementptr inbounds { double, double }, ptr %140, i32 0, i32 1
  %144 = extractvalue { double, double } %138, 1
  store double %144, ptr %143, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %128, ptr noundef nonnull align 16 dereferenceable(16) %32)
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %188

145:                                              ; preds = %66
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #8
  %146 = load float, ptr %24, align 4, !tbaa !13
  %147 = fcmp olt float %146, 0.000000e+00
  br i1 %147, label %148, label %152

148:                                              ; preds = %145
  %149 = load float, ptr %22, align 4, !tbaa !13
  %150 = load float, ptr %21, align 4, !tbaa !13
  %151 = load float, ptr %22, align 4, !tbaa !13
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %34, float noundef %149, float noundef %150, float noundef %151)
  br label %158

152:                                              ; preds = %145
  %153 = load float, ptr %22, align 4, !tbaa !13
  %154 = fneg float %153
  %155 = load float, ptr %21, align 4, !tbaa !13
  %156 = fneg float %155
  %157 = load float, ptr %22, align 4, !tbaa !13
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %34, float noundef %154, float noundef %156, float noundef %157)
  br label %158

158:                                              ; preds = %152, %148
  call void @llvm.lifetime.start.p0(i64 64, ptr %35) #8
  %159 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %36, ptr align 16 %34, i64 16, i1 false), !tbaa.struct !10
  %160 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %161 = load double, ptr %160, align 16
  %162 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %163 = load double, ptr %162, align 8
  call void @_ZNK3JPH5Mat449PreScaledENS_4Vec3E(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %35, ptr noundef nonnull align 16 dereferenceable(64) %159, double %161, double %163)
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  store ptr @_ZN3JPHL8cTopFaceE, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  store ptr @_ZN3JPHL8cTopFaceE, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  store ptr getelementptr inbounds (%"class.JPH::Vec3", ptr @_ZN3JPHL8cTopFaceE, i64 8), ptr %39, align 8, !tbaa !5
  br label %164

164:                                              ; preds = %184, %158
  %165 = load ptr, ptr %38, align 8, !tbaa !5
  %166 = load ptr, ptr %39, align 8, !tbaa !5
  %167 = icmp ne ptr %165, %166
  br i1 %167, label %169, label %168

168:                                              ; preds = %164
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  br label %187

169:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  %170 = load ptr, ptr %38, align 8, !tbaa !5
  store ptr %170, ptr %40, align 8, !tbaa !5
  %171 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #8
  %172 = load ptr, ptr %40, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %42, ptr align 16 %172, i64 16, i1 false), !tbaa.struct !10
  %173 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %174 = load double, ptr %173, align 16
  %175 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %176 = load double, ptr %175, align 8
  %177 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %35, double %174, double %176)
  %178 = getelementptr inbounds %"class.JPH::Vec3", ptr %41, i32 0, i32 0
  %179 = getelementptr inbounds %union.anon.3, ptr %178, i32 0, i32 0
  %180 = getelementptr inbounds { double, double }, ptr %179, i32 0, i32 0
  %181 = extractvalue { double, double } %177, 0
  store double %181, ptr %180, align 16
  %182 = getelementptr inbounds { double, double }, ptr %179, i32 0, i32 1
  %183 = extractvalue { double, double } %177, 1
  store double %183, ptr %182, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %171, ptr noundef nonnull align 16 dereferenceable(16) %41)
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  br label %184

184:                                              ; preds = %169
  %185 = load ptr, ptr %38, align 8, !tbaa !5
  %186 = getelementptr inbounds %"class.JPH::Vec3", ptr %185, i32 1
  store ptr %186, ptr %38, align 8, !tbaa !5
  br label %164

187:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 64, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #8
  br label %188

188:                                              ; preds = %187, %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH10SubShapeID7IsEmptyEv(ptr noundef nonnull align 4 dereferenceable(4)) #6 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) #2

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

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

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

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

; 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 void @_ZNK3JPH5Mat449PreScaledENS_4Vec3E(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64), double, double) #7 align 2

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 = { 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 #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 = { 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 #6 = { 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 #7 = { 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 #8 = { 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 2157740514}
!10 = !{i64 0, i64 16, !11}
!11 = !{!7, !7, i64 0}
!12 = !{i64 2157740870}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!16, !14, i64 44}
!16 = !{!"_ZTSN3JPH13CylinderShapeE", !17, i64 0, !14, i64 44, !14, i64 48, !14, i64 52}
!17 = !{!"_ZTSN3JPH11ConvexShapeE", !18, i64 0, !26, i64 32, !14, i64 40}
!18 = !{!"_ZTSN3JPH5ShapeE", !19, i64 8, !23, i64 16, !24, i64 24, !25, i64 25}
!19 = !{!"_ZTSN3JPH9RefTargetINS_5ShapeEEE", !20, i64 0}
!20 = !{!"_ZTSSt6atomicIjE", !21, i64 0}
!21 = !{!"_ZTSSt13__atomic_baseIjE", !22, i64 0}
!22 = !{!"int", !7, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTSN3JPH10EShapeTypeE", !7, i64 0}
!25 = !{!"_ZTSN3JPH13EShapeSubTypeE", !7, i64 0}
!26 = !{!"_ZTSN3JPH8RefConstINS_15PhysicsMaterialEEE", !6, i64 0}
!27 = !{!16, !14, i64 48}


; 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.3 }
%union.anon.3 = type { <4 x float> }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.9 }
%union.anon.9 = type { <4 x float> }

@_ZN3JPHL8cTopFaceE = external hidden local_unnamed_addr global [8 x %"class.JPH::Vec3"], align 16
@.str.7 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.13 = 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: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec33AbsEv(ptr noundef nonnull align 16 dereferenceable(16)) 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 @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH13CylinderShape17GetSupportingFaceERKNS_10SubShapeIDENS_4Vec3ES4_RKNS_5Mat44ERNS_11StaticArrayIS4_Lj32EEE(ptr noundef nonnull align 8 dereferenceable(56) %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 %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Mat44", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  store double %2, ptr %9, align 16
  %19 = getelementptr inbounds i8, ptr %9, i64 8
  store double %3, ptr %19, align 8
  store double %4, ptr %10, align 16
  %20 = getelementptr inbounds i8, ptr %10, i64 8
  store double %5, ptr %20, align 8
  %21 = tail call noundef zeroext i1 @_ZNK3JPH10SubShapeID7IsEmptyEv(ptr noundef nonnull align 4 dereferenceable(4) %1)
  br i1 %21, label %25, label %22

22:                                               ; preds = %8
  %23 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jS1_NS_15AssertLastParamE(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.7, i32 noundef 193, ptr noundef nonnull @.str.13)
  br i1 %23, label %24, label %25

24:                                               ; preds = %22
  tail call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !5
  br label %25

25:                                               ; preds = %24, %22, %8
  %26 = tail call noundef zeroext i1 @_ZNK3JPH13CylinderShape12IsValidScaleENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(56) %0, double %4, double %5)
  br i1 %26, label %30, label %27

27:                                               ; preds = %25
  %28 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.7, i32 noundef 194)
  br i1 %28, label %29, label %30

29:                                               ; preds = %27
  tail call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !6
  br label %30

30:                                               ; preds = %25, %27, %29
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  %31 = call { double, double } @_ZNK3JPH4Vec33AbsEv(ptr noundef nonnull align 16 dereferenceable(16) %10)
  %32 = extractvalue { double, double } %31, 0
  store double %32, ptr %11, align 16
  %33 = getelementptr inbounds i8, ptr %11, i64 8
  %34 = extractvalue { double, double } %31, 1
  store double %34, ptr %33, align 8
  %35 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %11)
  %36 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %11)
  %37 = getelementptr inbounds i8, ptr %0, i64 44
  %38 = load <2 x float>, ptr %37, align 4, !tbaa !7
  %39 = insertelement <2 x float> poison, float %36, i64 0
  %40 = insertelement <2 x float> %39, float %35, i64 1
  %41 = fmul <2 x float> %40, %38
  %42 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %9)
  %43 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %9)
  %44 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %9)
  %45 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %42)
  %46 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %44)
  %47 = fadd float %45, %46
  %48 = call noundef float @_ZSt4sqrtf(float noundef %47)
  %49 = call noundef float @_ZSt3absf(float noundef %43)
  %50 = insertelement <2 x float> poison, float %48, i64 0
  %51 = insertelement <2 x float> %50, float %49, i64 1
  %52 = fmul <2 x float> %41, %51
  %53 = extractelement <2 x float> %52, i64 0
  %54 = extractelement <2 x float> %52, i64 1
  %55 = fcmp ogt float %53, %54
  br i1 %55, label %56, label %78

56:                                               ; preds = %30
  %57 = extractelement <2 x float> %41, i64 1
  %58 = fneg float %57
  %59 = fdiv float %58, %48
  %60 = fmul float %42, %59
  %61 = fmul float %44, %59
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  %62 = extractelement <2 x float> %41, i64 0
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef %60, float noundef %62, float noundef %61)
  %63 = load double, ptr %13, align 16
  %64 = getelementptr inbounds i8, ptr %13, i64 8
  %65 = load double, ptr %64, align 8
  %66 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %6, double %63, double %65)
  %67 = extractvalue { double, double } %66, 0
  store double %67, ptr %12, align 16
  %68 = getelementptr inbounds i8, ptr %12, i64 8
  %69 = extractvalue { double, double } %66, 1
  store double %69, ptr %68, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %7, ptr noundef nonnull align 16 dereferenceable(16) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  %70 = fneg float %62
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %15, float noundef %60, float noundef %70, float noundef %61)
  %71 = load double, ptr %15, align 16
  %72 = getelementptr inbounds i8, ptr %15, i64 8
  %73 = load double, ptr %72, align 8
  %74 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %6, double %71, double %73)
  %75 = extractvalue { double, double } %74, 0
  store double %75, ptr %14, align 16
  %76 = getelementptr inbounds i8, ptr %14, i64 8
  %77 = extractvalue { double, double } %74, 1
  store double %77, ptr %76, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %7, ptr noundef nonnull align 16 dereferenceable(16) %14)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  br label %114

78:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #7
  %79 = fcmp olt float %43, 0.000000e+00
  br i1 %79, label %80, label %83

80:                                               ; preds = %78
  %81 = extractelement <2 x float> %41, i64 0
  %82 = extractelement <2 x float> %41, i64 1
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %16, float noundef %82, float noundef %81, float noundef %82)
  br label %88

83:                                               ; preds = %78
  %84 = extractelement <2 x float> %41, i64 1
  %85 = fneg float %84
  %86 = extractelement <2 x float> %41, i64 0
  %87 = fneg float %86
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %16, float noundef %85, float noundef %87, float noundef %84)
  br label %88

88:                                               ; preds = %83, %80
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #7
  %.sroa.05.0.copyload = load double, ptr %16, align 16
  %.sroa.26.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 8
  %.sroa.26.0.copyload = load double, ptr %.sroa.26.0..sroa_idx, align 8, !tbaa !11
  call void @_ZNK3JPH5Mat449PreScaledENS_4Vec3E(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %17, ptr noundef nonnull align 16 dereferenceable(64) %6, double %.sroa.05.0.copyload, double %.sroa.26.0.copyload)
  %89 = getelementptr inbounds i8, ptr %18, i64 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  %.sroa.0.0.copyload = load double, ptr @_ZN3JPHL8cTopFaceE, align 16
  %.sroa.2.0.copyload = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL8cTopFaceE, i64 8), align 8, !tbaa !11
  %90 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %17, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  %91 = extractvalue { double, double } %90, 0
  store double %91, ptr %18, align 16
  %92 = extractvalue { double, double } %90, 1
  store double %92, ptr %89, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %7, ptr noundef nonnull align 16 dereferenceable(16) %18)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  %.sroa.0.0.copyload.1 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL8cTopFaceE, i64 16), align 16
  %.sroa.2.0.copyload.1 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL8cTopFaceE, i64 24), align 8, !tbaa !11
  %93 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %17, double %.sroa.0.0.copyload.1, double %.sroa.2.0.copyload.1)
  %94 = extractvalue { double, double } %93, 0
  store double %94, ptr %18, align 16
  %95 = extractvalue { double, double } %93, 1
  store double %95, ptr %89, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %7, ptr noundef nonnull align 16 dereferenceable(16) %18)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  %.sroa.0.0.copyload.2 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL8cTopFaceE, i64 32), align 16
  %.sroa.2.0.copyload.2 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL8cTopFaceE, i64 40), align 8, !tbaa !11
  %96 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %17, double %.sroa.0.0.copyload.2, double %.sroa.2.0.copyload.2)
  %97 = extractvalue { double, double } %96, 0
  store double %97, ptr %18, align 16
  %98 = extractvalue { double, double } %96, 1
  store double %98, ptr %89, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %7, ptr noundef nonnull align 16 dereferenceable(16) %18)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  %.sroa.0.0.copyload.3 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL8cTopFaceE, i64 48), align 16
  %.sroa.2.0.copyload.3 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL8cTopFaceE, i64 56), align 8, !tbaa !11
  %99 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %17, double %.sroa.0.0.copyload.3, double %.sroa.2.0.copyload.3)
  %100 = extractvalue { double, double } %99, 0
  store double %100, ptr %18, align 16
  %101 = extractvalue { double, double } %99, 1
  store double %101, ptr %89, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %7, ptr noundef nonnull align 16 dereferenceable(16) %18)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  %.sroa.0.0.copyload.4 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL8cTopFaceE, i64 64), align 16
  %.sroa.2.0.copyload.4 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL8cTopFaceE, i64 72), align 8, !tbaa !11
  %102 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %17, double %.sroa.0.0.copyload.4, double %.sroa.2.0.copyload.4)
  %103 = extractvalue { double, double } %102, 0
  store double %103, ptr %18, align 16
  %104 = extractvalue { double, double } %102, 1
  store double %104, ptr %89, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %7, ptr noundef nonnull align 16 dereferenceable(16) %18)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  %.sroa.0.0.copyload.5 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL8cTopFaceE, i64 80), align 16
  %.sroa.2.0.copyload.5 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL8cTopFaceE, i64 88), align 8, !tbaa !11
  %105 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %17, double %.sroa.0.0.copyload.5, double %.sroa.2.0.copyload.5)
  %106 = extractvalue { double, double } %105, 0
  store double %106, ptr %18, align 16
  %107 = extractvalue { double, double } %105, 1
  store double %107, ptr %89, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %7, ptr noundef nonnull align 16 dereferenceable(16) %18)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  %.sroa.0.0.copyload.6 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL8cTopFaceE, i64 96), align 16
  %.sroa.2.0.copyload.6 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL8cTopFaceE, i64 104), align 8, !tbaa !11
  %108 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %17, double %.sroa.0.0.copyload.6, double %.sroa.2.0.copyload.6)
  %109 = extractvalue { double, double } %108, 0
  store double %109, ptr %18, align 16
  %110 = extractvalue { double, double } %108, 1
  store double %110, ptr %89, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %7, ptr noundef nonnull align 16 dereferenceable(16) %18)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  %.sroa.0.0.copyload.7 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL8cTopFaceE, i64 112), align 16
  %.sroa.2.0.copyload.7 = load double, ptr getelementptr inbounds (i8, ptr @_ZN3JPHL8cTopFaceE, i64 120), align 8, !tbaa !11
  %111 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %17, double %.sroa.0.0.copyload.7, double %.sroa.2.0.copyload.7)
  %112 = extractvalue { double, double } %111, 0
  store double %112, ptr %18, align 16
  %113 = extractvalue { double, double } %111, 1
  store double %113, ptr %89, align 8
  call void @_ZN3JPH11StaticArrayINS_4Vec3ELj32EE9push_backERKS1_(ptr noundef nonnull align 16 dereferenceable(528) %7, ptr noundef nonnull align 16 dereferenceable(16) %18)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  br label %114

114:                                              ; preds = %88, %56
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  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 #5 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 #2

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

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

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

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

; 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 void @_ZNK3JPH5Mat449PreScaledENS_4Vec3E(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64), double, double) local_unnamed_addr #6 align 2

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 = { 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 #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 = { 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 #5 = { 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 #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 = { 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 2157740514}
!6 = !{i64 2157740870}
!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}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass