; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/SoftBody (SoftBodySharedSettings)

; 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::UnorderedSet" = type { %"class.JPH::HashTable.base", [4 x i8] }
%"class.JPH::HashTable.base" = type <{ ptr, ptr, i32, i32, i32 }>
%"struct.std::pair" = type { %"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator", i8, [7 x i8] }
%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator" = type { %"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::IteratorBase.base" = type <{ ptr, i32 }>
%"class.JPH::UnorderedMap" = type { %"class.JPH::HashTable.base.86", [4 x i8] }
%"class.JPH::HashTable.base.86" = type <{ ptr, ptr, i32, i32, i32 }>
%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator" = type { %"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::IteratorBase.base.88", [4 x i8] }
%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::IteratorBase.base.88" = type <{ ptr, i32 }>
%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator" = type { %"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::IteratorBase.base" = type <{ ptr, i32 }>
%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator" = type { %"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::IteratorBase.base.90", [4 x i8] }
%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::IteratorBase.base.90" = type <{ ptr, i32 }>
%"class.JPH::SoftBodySharedSettings" = type { %"class.JPH::RefTarget", %"class.JPH::Array", %"class.JPH::Array.38", %"class.JPH::Array.41", %"class.JPH::Array.44", %"class.JPH::Array.47", %"class.JPH::Array.50", %"class.JPH::Array.53", %"class.JPH::Array.56", %"class.JPH::Array.59", float, %"class.JPH::Array.62", %"class.JPH::Array.65", %"class.JPH::Array.68" }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::Array.38" = type { i64, i64, ptr }
%"class.JPH::Array.41" = type { i64, i64, ptr }
%"class.JPH::Array.44" = type { i64, i64, ptr }
%"class.JPH::Array.47" = type { i64, i64, ptr }
%"class.JPH::Array.50" = type { i64, i64, ptr }
%"class.JPH::Array.53" = type { i64, i64, ptr }
%"class.JPH::Array.56" = type { i64, i64, ptr }
%"class.JPH::Array.59" = type { i64, i64, ptr }
%"class.JPH::Array.62" = type { i64, i64, ptr }
%"class.JPH::Array.65" = type { i64, i64, ptr }
%"class.JPH::Array.68" = type { i64, i64, ptr }
%"class.JPH::SoftBodySharedSettings::Skinned" = type { i32, [4 x %"class.JPH::SoftBodySharedSettings::SkinWeight"], float, float, float, i32 }
%"class.JPH::SoftBodySharedSettings::SkinWeight" = type { i32, float }
%"struct.JPH::SoftBodySharedSettings::Face" = type { [3 x i32], i32 }
%"struct.std::pair.91" = type { i32, [4 x i8], %"class.JPH::UnorderedSet" }

@.str.11 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [10 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH22SoftBodySharedSettings33CalculateSkinnedConstraintNormalsEv(ptr noundef nonnull align 8 dereferenceable(304) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.JPH::UnorderedSet", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.std::pair", align 8
  %11 = alloca %"class.JPH::UnorderedMap", align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i8, align 1
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator", align 8
  %23 = alloca %"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator", align 8
  %24 = alloca %"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator", align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca %"struct.std::pair", align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca i32, align 4
  %36 = alloca %"struct.JPH::AssertLastParam", align 1
  %37 = alloca %"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator", align 8
  %38 = alloca %"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator", align 8
  %39 = alloca %"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator", align 8
  %40 = alloca ptr, align 8
  %41 = alloca i32, align 4
  %42 = alloca %"struct.JPH::AssertLastParam", align 1
  %43 = alloca %"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator", align 8
  %44 = alloca %"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %45 = load ptr, ptr %2, align 8
  %46 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %45, i32 0, i32 13
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %46)
  %47 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %45, i32 0, i32 6
  %48 = call noundef zeroext i1 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %47)
  br i1 %48, label %49, label %50

49:                                               ; preds = %1
  br label %360

50:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #5
  call void @_ZN3JPH12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %3) #5
  %51 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %45, i32 0, i32 6
  %52 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %51)
          to label %53 unwind label %68

53:                                               ; preds = %50
  %54 = trunc i64 %52 to i32
  invoke void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE7reserveEj(ptr noundef nonnull align 8 dereferenceable(28) %3, i32 noundef %54)
          to label %55 unwind label %68

55:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %56 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %45, i32 0, i32 6
  store ptr %56, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %57)
          to label %59 unwind label %72

59:                                               ; preds = %55
  store ptr %58, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %60)
          to label %62 unwind label %76

62:                                               ; preds = %59
  store ptr %61, ptr %8, align 8, !tbaa !5
  br label %63

63:                                               ; preds = %85, %62
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = icmp ne ptr %64, %65
  br i1 %66, label %80, label %67

67:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %94

68:                                               ; preds = %53, %50
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %4, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %5, align 4
  br label %362

72:                                               ; preds = %55
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %4, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %5, align 4
  br label %93

76:                                               ; preds = %59
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %4, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %5, align 4
  br label %92

80:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %81, ptr %9, align 8, !tbaa !5
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::Skinned", ptr %82, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #5
  invoke void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE6insertERKj(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %10, ptr noundef nonnull align 8 dereferenceable(28) %3, ptr noundef nonnull align 4 dereferenceable(4) %83)
          to label %84 unwind label %88

84:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %85

85:                                               ; preds = %84
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::Skinned", ptr %86, i32 1
  store ptr %87, ptr %7, align 8, !tbaa !5
  br label %63

88:                                               ; preds = %80
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %4, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %92

92:                                               ; preds = %88, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %93

93:                                               ; preds = %92, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %362

94:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #5
  call void @_ZN3JPH12UnorderedMapIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEES3_S5_EC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %11) #5
  %95 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %45, i32 0, i32 1
  %96 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %95)
          to label %97 unwind label %112

97:                                               ; preds = %94
  %98 = trunc i64 %96 to i32
  invoke void @_ZN3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_E7reserveEj(ptr noundef nonnull align 8 dereferenceable(28) %11, i32 noundef %98)
          to label %99 unwind label %112

99:                                               ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %100 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %45, i32 0, i32 2
  store ptr %100, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %101 = load ptr, ptr %12, align 8, !tbaa !5
  %102 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %101)
          to label %103 unwind label %116

103:                                              ; preds = %99
  store ptr %102, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  %105 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %104)
          to label %106 unwind label %120

106:                                              ; preds = %103
  store ptr %105, ptr %14, align 8, !tbaa !5
  br label %107

107:                                              ; preds = %221, %106
  %108 = load ptr, ptr %13, align 8, !tbaa !5
  %109 = load ptr, ptr %14, align 8, !tbaa !5
  %110 = icmp ne ptr %108, %109
  br i1 %110, label %124, label %111

111:                                              ; preds = %107
  store i32 4, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %227

112:                                              ; preds = %357, %231, %227, %97, %94
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %4, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %5, align 4
  br label %361

116:                                              ; preds = %99
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %4, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %5, align 4
  br label %226

120:                                              ; preds = %103
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %4, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %5, align 4
  br label %225

124:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %125 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %125, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #5
  store i8 1, ptr %17, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %126 = load ptr, ptr %16, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %126, i32 0, i32 0
  store ptr %127, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %128 = load ptr, ptr %18, align 8, !tbaa !5
  %129 = getelementptr inbounds [3 x i32], ptr %128, i64 0, i64 0
  store ptr %129, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %130 = load ptr, ptr %18, align 8, !tbaa !5
  %131 = getelementptr inbounds [3 x i32], ptr %130, i64 0, i64 0
  %132 = getelementptr inbounds i32, ptr %131, i64 3
  store ptr %132, ptr %20, align 8, !tbaa !5
  br label %133

133:                                              ; preds = %153, %124
  %134 = load ptr, ptr %19, align 8, !tbaa !5
  %135 = load ptr, ptr %20, align 8, !tbaa !5
  %136 = icmp ne ptr %134, %135
  br i1 %136, label %138, label %137

137:                                              ; preds = %133
  store i32 6, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %165

138:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %139 = load ptr, ptr %19, align 8, !tbaa !5
  %140 = load i32, ptr %139, align 4, !tbaa !11
  store i32 %140, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  invoke void @_ZNK3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE4findERKj(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator") align 8 %22, ptr noundef nonnull align 8 dereferenceable(28) %3, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %141 unwind label %156

141:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  invoke void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE3endEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator") align 8 %24, ptr noundef nonnull align 8 dereferenceable(28) %3)
          to label %142 unwind label %160

142:                                              ; preds = %141
  invoke void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE14const_iteratorC2ERKNS7_8iteratorE(ptr noundef nonnull align 8 dereferenceable(12) %23, ptr noundef nonnull align 8 dereferenceable(12) %24)
          to label %143 unwind label %160

143:                                              ; preds = %142
  %144 = invoke noundef zeroext i1 @_ZNK3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE12IteratorBaseIKS7_NS7_14const_iteratorEEneERKSA_(ptr noundef nonnull align 8 dereferenceable(12) %22, ptr noundef nonnull align 8 dereferenceable(12) %23)
          to label %145 unwind label %160

145:                                              ; preds = %143
  %146 = zext i1 %144 to i32
  %147 = load i8, ptr %17, align 1, !tbaa !9, !range !13, !noundef !14
  %148 = trunc i8 %147 to i1
  %149 = zext i1 %148 to i32
  %150 = and i32 %149, %146
  %151 = icmp ne i32 %150, 0
  %152 = zext i1 %151 to i8
  store i8 %152, ptr %17, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %153

153:                                              ; preds = %145
  %154 = load ptr, ptr %19, align 8, !tbaa !5
  %155 = getelementptr inbounds i32, ptr %154, i32 1
  store ptr %155, ptr %19, align 8, !tbaa !5
  br label %133

156:                                              ; preds = %138
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %4, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %5, align 4
  br label %164

160:                                              ; preds = %143, %142, %141
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %4, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  br label %164

164:                                              ; preds = %160, %156
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %224

165:                                              ; preds = %137
  %166 = load i8, ptr %17, align 1, !tbaa !9, !range !13, !noundef !14
  %167 = trunc i8 %166 to i1
  br i1 %167, label %169, label %168

168:                                              ; preds = %165
  store i32 5, ptr %15, align 4
  br label %215

169:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %170 = load ptr, ptr %16, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %170, i32 0, i32 0
  store ptr %171, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %172 = load ptr, ptr %25, align 8, !tbaa !5
  %173 = getelementptr inbounds [3 x i32], ptr %172, i64 0, i64 0
  store ptr %173, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %174 = load ptr, ptr %25, align 8, !tbaa !5
  %175 = getelementptr inbounds [3 x i32], ptr %174, i64 0, i64 0
  %176 = getelementptr inbounds i32, ptr %175, i64 3
  store ptr %176, ptr %27, align 8, !tbaa !5
  br label %177

177:                                              ; preds = %197, %169
  %178 = load ptr, ptr %26, align 8, !tbaa !5
  %179 = load ptr, ptr %27, align 8, !tbaa !5
  %180 = icmp ne ptr %178, %179
  br i1 %180, label %182, label %181

181:                                              ; preds = %177
  store i32 8, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %214

182:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %183 = load ptr, ptr %26, align 8, !tbaa !5
  %184 = load i32, ptr %183, align 4, !tbaa !11
  store i32 %184, ptr %28, align 4, !tbaa !11
  %185 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZN3JPH12UnorderedMapIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEES3_S5_EixERKj(ptr noundef nonnull align 8 dereferenceable(28) %11, ptr noundef nonnull align 4 dereferenceable(4) %28)
          to label %186 unwind label %200

186:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  %187 = load ptr, ptr %16, align 8, !tbaa !5
  %188 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %45, i32 0, i32 2
  %189 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %188)
          to label %190 unwind label %204

190:                                              ; preds = %186
  %191 = ptrtoint ptr %187 to i64
  %192 = ptrtoint ptr %189 to i64
  %193 = sub i64 %191, %192
  %194 = sdiv exact i64 %193, 16
  %195 = trunc i64 %194 to i32
  store i32 %195, ptr %29, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #5
  invoke void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE6insertERKj(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %30, ptr noundef nonnull align 8 dereferenceable(28) %185, ptr noundef nonnull align 4 dereferenceable(4) %29)
          to label %196 unwind label %208

196:                                              ; preds = %190
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  br label %197

197:                                              ; preds = %196
  %198 = load ptr, ptr %26, align 8, !tbaa !5
  %199 = getelementptr inbounds i32, ptr %198, i32 1
  store ptr %199, ptr %26, align 8, !tbaa !5
  br label %177

200:                                              ; preds = %182
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %4, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %5, align 4
  br label %213

204:                                              ; preds = %186
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %4, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %5, align 4
  br label %212

208:                                              ; preds = %190
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %4, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #5
  br label %212

212:                                              ; preds = %208, %204
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  br label %213

213:                                              ; preds = %212, %200
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %224

214:                                              ; preds = %181
  store i32 0, ptr %15, align 4
  br label %215

215:                                              ; preds = %214, %168
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  %216 = load i32, ptr %15, align 4
  switch i32 %216, label %218 [
    i32 0, label %217
  ]

217:                                              ; preds = %215
  store i32 0, ptr %15, align 4
  br label %218

218:                                              ; preds = %217, %215
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  %219 = load i32, ptr %15, align 4
  switch i32 %219, label %368 [
    i32 0, label %220
    i32 5, label %221
  ]

220:                                              ; preds = %218
  br label %221

221:                                              ; preds = %220, %218
  %222 = load ptr, ptr %13, align 8, !tbaa !5
  %223 = getelementptr inbounds %"struct.JPH::SoftBodySharedSettings::Face", ptr %222, i32 1
  store ptr %223, ptr %13, align 8, !tbaa !5
  br label %107

224:                                              ; preds = %213, %164
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %225

225:                                              ; preds = %224, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %226

226:                                              ; preds = %225, %116
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %361

227:                                              ; preds = %111
  %228 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %45, i32 0, i32 13
  %229 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %45, i32 0, i32 2
  %230 = invoke noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %229)
          to label %231 unwind label %112

231:                                              ; preds = %227
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %228, i64 noundef %230)
          to label %232 unwind label %112

232:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  %233 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %45, i32 0, i32 6
  store ptr %233, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  %234 = load ptr, ptr %31, align 8, !tbaa !5
  %235 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %234)
          to label %236 unwind label %245

236:                                              ; preds = %232
  store ptr %235, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  %237 = load ptr, ptr %31, align 8, !tbaa !5
  %238 = invoke noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %237)
          to label %239 unwind label %249

239:                                              ; preds = %236
  store ptr %238, ptr %33, align 8, !tbaa !5
  br label %240

240:                                              ; preds = %350, %239
  %241 = load ptr, ptr %32, align 8, !tbaa !5
  %242 = load ptr, ptr %33, align 8, !tbaa !5
  %243 = icmp ne ptr %241, %242
  br i1 %243, label %253, label %244

244:                                              ; preds = %240
  store i32 10, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  br label %357

245:                                              ; preds = %232
  %246 = landingpad { ptr, i32 }
          cleanup
  %247 = extractvalue { ptr, i32 } %246, 0
  store ptr %247, ptr %4, align 8
  %248 = extractvalue { ptr, i32 } %246, 1
  store i32 %248, ptr %5, align 4
  br label %356

249:                                              ; preds = %236
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %4, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %5, align 4
  br label %355

253:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  %254 = load ptr, ptr %32, align 8, !tbaa !5
  store ptr %254, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #5
  %255 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %45, i32 0, i32 13
  %256 = invoke noundef i64 @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %255)
          to label %257 unwind label %267

257:                                              ; preds = %253
  %258 = trunc i64 %256 to i32
  store i32 %258, ptr %35, align 4, !tbaa !11
  br label %259

259:                                              ; preds = %257
  %260 = load i32, ptr %35, align 4, !tbaa !11
  %261 = lshr i32 %260, 24
  %262 = icmp eq i32 %261, 0
  br i1 %262, label %271, label %263

263:                                              ; preds = %259
  %264 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.14, ptr noundef @.str.11, i32 noundef 462)
          to label %265 unwind label %267

265:                                              ; preds = %263
  br i1 %264, label %266, label %271

266:                                              ; preds = %265
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #5, !srcloc !15
  br label %271

267:                                              ; preds = %263, %253
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %4, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %5, align 4
  br label %354

271:                                              ; preds = %266, %265, %259
  br label %272

272:                                              ; preds = %271
  br label %273

273:                                              ; preds = %272
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #5
  %274 = load ptr, ptr %34, align 8, !tbaa !5
  %275 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::Skinned", ptr %274, i32 0, i32 0
  invoke void @_ZN3JPH12UnorderedMapIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEES3_S5_E4findERKj(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator") align 8 %38, ptr noundef nonnull align 8 dereferenceable(28) %11, ptr noundef nonnull align 4 dereferenceable(4) %275)
          to label %276 unwind label %295

276:                                              ; preds = %273
  invoke void @_ZN3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_E14const_iteratorC2ERKNSB_8iteratorE(ptr noundef nonnull align 8 dereferenceable(12) %37, ptr noundef nonnull align 8 dereferenceable(12) %38)
          to label %277 unwind label %295

277:                                              ; preds = %276
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #5
  invoke void @_ZNK3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_E4cendEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator") align 8 %39, ptr noundef nonnull align 8 dereferenceable(28) %11)
          to label %278 unwind label %299

278:                                              ; preds = %277
  %279 = invoke noundef zeroext i1 @_ZNK3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_E12IteratorBaseIKSB_NSB_14const_iteratorEEneERKSE_(ptr noundef nonnull align 8 dereferenceable(12) %37, ptr noundef nonnull align 8 dereferenceable(12) %39)
          to label %280 unwind label %299

280:                                              ; preds = %278
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #5
  br i1 %279, label %281, label %346

281:                                              ; preds = %280
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #5
  %282 = invoke noundef ptr @_ZNK3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_E12IteratorBaseIKSB_NSB_14const_iteratorEEptEv(ptr noundef nonnull align 8 dereferenceable(12) %37)
          to label %283 unwind label %303

283:                                              ; preds = %281
  %284 = getelementptr inbounds %"struct.std::pair.91", ptr %282, i32 0, i32 2
  store ptr %284, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #5
  %285 = load ptr, ptr %40, align 8, !tbaa !5
  %286 = invoke noundef i32 @_ZNK3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(28) %285)
          to label %287 unwind label %307

287:                                              ; preds = %283
  store i32 %286, ptr %41, align 4, !tbaa !11
  br label %288

288:                                              ; preds = %287
  %289 = load i32, ptr %41, align 4, !tbaa !11
  %290 = icmp ult i32 %289, 256
  br i1 %290, label %311, label %291

291:                                              ; preds = %288
  %292 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.15, ptr noundef @.str.11, i32 noundef 468)
          to label %293 unwind label %307

293:                                              ; preds = %291
  br i1 %292, label %294, label %311

294:                                              ; preds = %293
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #5, !srcloc !16
  br label %311

295:                                              ; preds = %276, %273
  %296 = landingpad { ptr, i32 }
          cleanup
  %297 = extractvalue { ptr, i32 } %296, 0
  store ptr %297, ptr %4, align 8
  %298 = extractvalue { ptr, i32 } %296, 1
  store i32 %298, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #5
  br label %353

299:                                              ; preds = %278, %277
  %300 = landingpad { ptr, i32 }
          cleanup
  %301 = extractvalue { ptr, i32 } %300, 0
  store ptr %301, ptr %4, align 8
  %302 = extractvalue { ptr, i32 } %300, 1
  store i32 %302, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #5
  br label %353

303:                                              ; preds = %281
  %304 = landingpad { ptr, i32 }
          cleanup
  %305 = extractvalue { ptr, i32 } %304, 0
  store ptr %305, ptr %4, align 8
  %306 = extractvalue { ptr, i32 } %304, 1
  store i32 %306, ptr %5, align 4
  br label %345

307:                                              ; preds = %331, %325, %322, %321, %319, %317, %313, %291, %283
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %4, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #5
  br label %345

311:                                              ; preds = %294, %293, %288
  br label %312

312:                                              ; preds = %311
  br label %313

313:                                              ; preds = %312
  %314 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %45, i32 0, i32 13
  %315 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %45, i32 0, i32 13
  %316 = invoke noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %315)
          to label %317 unwind label %307

317:                                              ; preds = %313
  %318 = load ptr, ptr %40, align 8, !tbaa !5
  invoke void @_ZNK3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE5beginEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator") align 8 %43, ptr noundef nonnull align 8 dereferenceable(28) %318)
          to label %319 unwind label %307

319:                                              ; preds = %317
  %320 = load ptr, ptr %40, align 8, !tbaa !5
  invoke void @_ZNK3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE3endEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator") align 8 %44, ptr noundef nonnull align 8 dereferenceable(28) %320)
          to label %321 unwind label %307

321:                                              ; preds = %319
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE6insertINS_9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE14const_iteratorEEEvPKjT_SG_(ptr noundef nonnull align 8 dereferenceable(24) %314, ptr noundef %316, ptr noundef %43, ptr noundef %44)
          to label %322 unwind label %307

322:                                              ; preds = %321
  %323 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %45, i32 0, i32 13
  %324 = invoke noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %323)
          to label %325 unwind label %307

325:                                              ; preds = %322
  %326 = load i32, ptr %35, align 4, !tbaa !11
  %327 = zext i32 %326 to i64
  %328 = getelementptr inbounds i32, ptr %324, i64 %327
  %329 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %45, i32 0, i32 13
  %330 = invoke noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %329)
          to label %331 unwind label %307

331:                                              ; preds = %325
  %332 = load i32, ptr %35, align 4, !tbaa !11
  %333 = zext i32 %332 to i64
  %334 = getelementptr inbounds i32, ptr %330, i64 %333
  %335 = load i32, ptr %41, align 4, !tbaa !11
  %336 = zext i32 %335 to i64
  %337 = getelementptr inbounds i32, ptr %334, i64 %336
  invoke void @_ZN3JPH9QuickSortIPjEEvT_S2_(ptr noundef %328, ptr noundef %337)
          to label %338 unwind label %307

338:                                              ; preds = %331
  %339 = load i32, ptr %35, align 4, !tbaa !11
  %340 = load i32, ptr %41, align 4, !tbaa !11
  %341 = shl i32 %340, 24
  %342 = add i32 %339, %341
  %343 = load ptr, ptr %34, align 8, !tbaa !5
  %344 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::Skinned", ptr %343, i32 0, i32 5
  store i32 %342, ptr %344, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #5
  br label %349

345:                                              ; preds = %307, %303
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #5
  br label %353

346:                                              ; preds = %280
  %347 = load ptr, ptr %34, align 8, !tbaa !5
  %348 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::Skinned", ptr %347, i32 0, i32 5
  store i32 0, ptr %348, align 4, !tbaa !17
  br label %349

349:                                              ; preds = %346, %338
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  br label %350

350:                                              ; preds = %349
  %351 = load ptr, ptr %32, align 8, !tbaa !5
  %352 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings::Skinned", ptr %351, i32 1
  store ptr %352, ptr %32, align 8, !tbaa !5
  br label %240

353:                                              ; preds = %345, %299, %295
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #5
  br label %354

354:                                              ; preds = %353, %267
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  br label %355

355:                                              ; preds = %354, %249
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  br label %356

356:                                              ; preds = %355, %245
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  br label %361

357:                                              ; preds = %244
  %358 = getelementptr inbounds %"class.JPH::SoftBodySharedSettings", ptr %45, i32 0, i32 13
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE13shrink_to_fitEv(ptr noundef nonnull align 8 dereferenceable(24) %358)
          to label %359 unwind label %112

359:                                              ; preds = %357
  call void @_ZN3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_ED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  call void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #5
  br label %360

360:                                              ; preds = %359, %49
  ret void

361:                                              ; preds = %356, %226, %112
  call void @_ZN3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_ED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  br label %362

362:                                              ; preds = %361, %93, %68
  call void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #5
  br label %363

363:                                              ; preds = %362
  %364 = load ptr, ptr %4, align 8
  %365 = load i32, ptr %5, align 4
  %366 = insertvalue { ptr, i32 } poison, ptr %364, 0
  %367 = insertvalue { ptr, i32 } %366, i32 %365, 1
  resume { ptr, i32 } %367

368:                                              ; preds = %218
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE7reserveEj(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE6insertERKj(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH12UnorderedMapIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEES3_S5_EC2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_E7reserveEj(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE4findERKj(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE12IteratorBaseIKS7_NS7_14const_iteratorEEneERKSA_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE3endEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE14const_iteratorC2ERKNS7_8iteratorE(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(28) ptr @_ZN3JPH12UnorderedMapIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEES3_S5_EixERKj(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH12UnorderedMapIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEES3_S5_E4findERKj(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_E14const_iteratorC2ERKNSB_8iteratorE(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_E12IteratorBaseIKSB_NSB_14const_iteratorEEneERKSE_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_E4cendEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_E12IteratorBaseIKSB_NSB_14const_iteratorEEptEv(ptr noundef nonnull align 8 dereferenceable(12)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(28)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE6insertINS_9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE14const_iteratorEEEvPKjT_SG_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE3endEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH9QuickSortIPjEEvT_S2_(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE13shrink_to_fitEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_ED2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = { 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 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{i64 2157802101}
!16 = !{i64 2157802428}
!17 = !{!18, !12, i64 48}
!18 = !{!"_ZTSN3JPH22SoftBodySharedSettings7SkinnedE", !12, i64 0, !7, i64 4, !19, i64 36, !19, i64 40, !19, i64 44, !12, i64 48}
!19 = !{!"float", !7, i64 0}


; 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::UnorderedSet" = type { %"class.JPH::HashTable.base", [4 x i8] }
%"class.JPH::HashTable.base" = type <{ ptr, ptr, i32, i32, i32 }>
%"struct.std::pair" = type { %"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator", i8, [7 x i8] }
%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator" = type { %"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::IteratorBase.base" = type <{ ptr, i32 }>
%"class.JPH::UnorderedMap" = type { %"class.JPH::HashTable.base.86", [4 x i8] }
%"class.JPH::HashTable.base.86" = type <{ ptr, ptr, i32, i32, i32 }>
%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator" = type { %"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::IteratorBase.base.88", [4 x i8] }
%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::IteratorBase.base.88" = type <{ ptr, i32 }>
%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator" = type { %"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::IteratorBase.base" = type <{ ptr, i32 }>
%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator" = type { %"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::IteratorBase.base.90", [4 x i8] }
%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::IteratorBase.base.90" = type <{ ptr, i32 }>

@.str.11 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [10 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH22SoftBodySharedSettings33CalculateSkinnedConstraintNormalsEv(ptr noundef nonnull align 8 dereferenceable(304) %0) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.JPH::UnorderedSet", align 8
  %3 = alloca %"struct.std::pair", align 8
  %4 = alloca %"class.JPH::UnorderedMap", align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator", align 8
  %7 = alloca %"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator", align 8
  %8 = alloca %"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca %"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator", align 8
  %13 = alloca %"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator", align 8
  %14 = alloca %"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator", align 8
  %15 = alloca %"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator", align 8
  %16 = alloca %"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator", align 8
  %17 = getelementptr inbounds i8, ptr %0, i64 280
  tail call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
  %18 = getelementptr inbounds i8, ptr %0, i64 128
  %19 = tail call noundef zeroext i1 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
  br i1 %19, label %152, label %20

20:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #5
  call void @_ZN3JPH12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %2) #5
  %21 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
  %22 = trunc i64 %21 to i32
  invoke void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE7reserveEj(ptr noundef nonnull align 8 dereferenceable(28) %2, i32 noundef %22)
          to label %23 unwind label %29

23:                                               ; preds = %20
  %24 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
  %25 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
  %.not86 = icmp eq ptr %24, %25
  br i1 %.not86, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %31, %23
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  call void @_ZN3JPH12UnorderedMapIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEES3_S5_EC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %4) #5
  %26 = getelementptr inbounds i8, ptr %0, i64 8
  %27 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26)
  %28 = trunc i64 %27 to i32
  invoke void @_ZN3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_E7reserveEj(ptr noundef nonnull align 8 dereferenceable(28) %4, i32 noundef %28)
          to label %35 unwind label %41

29:                                               ; preds = %20
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %154

.lr.ph:                                           ; preds = %23, %31
  %.06087 = phi ptr [ %32, %31 ], [ %24, %23 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  invoke void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE6insertERKj(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %3, ptr noundef nonnull align 8 dereferenceable(28) %2, ptr noundef nonnull align 4 dereferenceable(4) %.06087)
          to label %31 unwind label %33

31:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  %32 = getelementptr inbounds i8, ptr %.06087, i64 52
  %.not = icmp eq ptr %32, %25
  br i1 %.not, label %._crit_edge, label %.lr.ph

33:                                               ; preds = %.lr.ph
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  br label %154

35:                                               ; preds = %._crit_edge
  %36 = getelementptr inbounds i8, ptr %0, i64 32
  %37 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %36)
  %38 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %36)
  %.not6891 = icmp eq ptr %37, %38
  br i1 %.not6891, label %._crit_edge93, label %.preheader83

.preheader83:                                     ; preds = %35, %.loopexit
  %.06192 = phi ptr [ %96, %.loopexit ], [ %37, %35 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %39 = load i32, ptr %.06192, align 4, !tbaa !5
  store i32 %39, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  invoke void @_ZNK3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE4findERKj(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator") align 8 %6, ptr noundef nonnull align 8 dereferenceable(28) %2, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %46 unwind label %62

._crit_edge93:                                    ; preds = %.loopexit, %35
  %40 = call noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36)
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %40)
          to label %97 unwind label %41

41:                                               ; preds = %._crit_edge98, %._crit_edge93, %._crit_edge
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %153

.preheader:                                       ; preds = %60
  %43 = ptrtoint ptr %.06192 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  %44 = load i32, ptr %.06192, align 4, !tbaa !5
  store i32 %44, ptr %9, align 4, !tbaa !5
  %45 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZN3JPH12UnorderedMapIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEES3_S5_EixERKj(ptr noundef nonnull align 8 dereferenceable(28) %4, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %67 unwind label %91

46:                                               ; preds = %.preheader83
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  invoke void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator") align 8 %8, ptr noundef nonnull align 8 dereferenceable(28) %2)
          to label %47 unwind label %64

47:                                               ; preds = %46
  call void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE14const_iteratorC2ERKNS7_8iteratorE(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef nonnull align 8 dereferenceable(12) %8)
  %48 = invoke noundef zeroext i1 @_ZNK3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE12IteratorBaseIKS7_NS7_14const_iteratorEEneERKSA_(ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef nonnull align 8 dereferenceable(12) %7)
          to label %49 unwind label %64

49:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  %.065.ptr.1 = getelementptr inbounds i8, ptr %.06192, i64 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %50 = load i32, ptr %.065.ptr.1, align 4, !tbaa !5
  store i32 %50, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  invoke void @_ZNK3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE4findERKj(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator") align 8 %6, ptr noundef nonnull align 8 dereferenceable(28) %2, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %51 unwind label %62

51:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  invoke void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator") align 8 %8, ptr noundef nonnull align 8 dereferenceable(28) %2)
          to label %52 unwind label %64

52:                                               ; preds = %51
  call void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE14const_iteratorC2ERKNS7_8iteratorE(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef nonnull align 8 dereferenceable(12) %8)
  %53 = invoke noundef zeroext i1 @_ZNK3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE12IteratorBaseIKS7_NS7_14const_iteratorEEneERKSA_(ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef nonnull align 8 dereferenceable(12) %7)
          to label %54 unwind label %64

54:                                               ; preds = %52
  %55 = and i1 %48, %53
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  %.065.ptr.2 = getelementptr inbounds i8, ptr %.06192, i64 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %56 = load i32, ptr %.065.ptr.2, align 4, !tbaa !5
  store i32 %56, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  invoke void @_ZNK3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE4findERKj(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator") align 8 %6, ptr noundef nonnull align 8 dereferenceable(28) %2, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %57 unwind label %62

57:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  invoke void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator") align 8 %8, ptr noundef nonnull align 8 dereferenceable(28) %2)
          to label %58 unwind label %64

58:                                               ; preds = %57
  call void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE14const_iteratorC2ERKNS7_8iteratorE(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef nonnull align 8 dereferenceable(12) %8)
  %59 = invoke noundef zeroext i1 @_ZNK3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE12IteratorBaseIKS7_NS7_14const_iteratorEEneERKSA_(ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef nonnull align 8 dereferenceable(12) %7)
          to label %60 unwind label %64

60:                                               ; preds = %58
  %61 = and i1 %55, %59
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br i1 %61, label %.preheader, label %.loopexit

62:                                               ; preds = %54, %49, %.preheader83
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %66

64:                                               ; preds = %58, %57, %52, %51, %47, %46
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  br label %66

66:                                               ; preds = %64, %62
  %.pn77 = phi { ptr, i32 } [ %65, %64 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %153

67:                                               ; preds = %.preheader
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  %68 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %36)
  %69 = ptrtoint ptr %68 to i64
  %70 = sub i64 %43, %69
  %71 = lshr exact i64 %70, 4
  %72 = trunc i64 %71 to i32
  store i32 %72, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  invoke void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE6insertERKj(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %11, ptr noundef nonnull align 8 dereferenceable(28) %45, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %73 unwind label %93

73:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  %74 = load i32, ptr %.065.ptr.1, align 4, !tbaa !5
  store i32 %74, ptr %9, align 4, !tbaa !5
  %75 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZN3JPH12UnorderedMapIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEES3_S5_EixERKj(ptr noundef nonnull align 8 dereferenceable(28) %4, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %76 unwind label %91

76:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  %77 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %36)
  %78 = ptrtoint ptr %77 to i64
  %79 = sub i64 %43, %78
  %80 = lshr exact i64 %79, 4
  %81 = trunc i64 %80 to i32
  store i32 %81, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  invoke void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE6insertERKj(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %11, ptr noundef nonnull align 8 dereferenceable(28) %75, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %82 unwind label %93

82:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  %83 = load i32, ptr %.065.ptr.2, align 4, !tbaa !5
  store i32 %83, ptr %9, align 4, !tbaa !5
  %84 = invoke noundef nonnull align 8 dereferenceable(28) ptr @_ZN3JPH12UnorderedMapIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEES3_S5_EixERKj(ptr noundef nonnull align 8 dereferenceable(28) %4, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %85 unwind label %91

85:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  %86 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings4FaceENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %36)
  %87 = ptrtoint ptr %86 to i64
  %88 = sub i64 %43, %87
  %89 = lshr exact i64 %88, 4
  %90 = trunc i64 %89 to i32
  store i32 %90, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  invoke void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE6insertERKj(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %11, ptr noundef nonnull align 8 dereferenceable(28) %84, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %.loopexit.loopexit unwind label %93

.loopexit.loopexit:                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  br label %.loopexit

91:                                               ; preds = %82, %73, %.preheader
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %95

93:                                               ; preds = %85, %76, %67
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  br label %95

95:                                               ; preds = %93, %91
  %.pn75 = phi { ptr, i32 } [ %94, %93 ], [ %92, %91 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  br label %153

.loopexit:                                        ; preds = %.loopexit.loopexit, %60
  %96 = getelementptr inbounds i8, ptr %.06192, i64 16
  %.not68 = icmp eq ptr %96, %38
  br i1 %.not68, label %._crit_edge93, label %.preheader83

97:                                               ; preds = %._crit_edge93
  %98 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
  %99 = call noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
  %.not6994 = icmp eq ptr %98, %99
  br i1 %.not6994, label %._crit_edge98, label %.lr.ph97

._crit_edge98:                                    ; preds = %147, %97
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE13shrink_to_fitEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %151 unwind label %41

.lr.ph97:                                         ; preds = %97, %147
  %.06395 = phi ptr [ %149, %147 ], [ %98, %97 ]
  %100 = call noundef i64 @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
  %101 = trunc i64 %100 to i32
  %102 = icmp ult i32 %101, 16777216
  br i1 %102, label %109, label %103

103:                                              ; preds = %.lr.ph97
  %104 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.11, i32 noundef 462)
          to label %105 unwind label %107

105:                                              ; preds = %103
  br i1 %104, label %106, label %109

106:                                              ; preds = %105
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #5, !srcloc !9
  br label %109

107:                                              ; preds = %103
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %153

109:                                              ; preds = %106, %105, %.lr.ph97
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #5
  invoke void @_ZN3JPH12UnorderedMapIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEES3_S5_E4findERKj(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator") align 8 %13, ptr noundef nonnull align 8 dereferenceable(28) %4, ptr noundef nonnull align 4 dereferenceable(4) %.06395)
          to label %110 unwind label %124

110:                                              ; preds = %109
  call void @_ZN3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_E14const_iteratorC2ERKNSB_8iteratorE(ptr noundef nonnull align 8 dereferenceable(12) %12, ptr noundef nonnull align 8 dereferenceable(12) %13)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #5
  invoke void @_ZNK3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_E4cendEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator") align 8 %14, ptr noundef nonnull align 8 dereferenceable(28) %4)
          to label %111 unwind label %126

111:                                              ; preds = %110
  %112 = invoke noundef zeroext i1 @_ZNK3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_E12IteratorBaseIKSB_NSB_14const_iteratorEEneERKSE_(ptr noundef nonnull align 8 dereferenceable(12) %12, ptr noundef nonnull align 8 dereferenceable(12) %14)
          to label %113 unwind label %126

113:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #5
  br i1 %112, label %114, label %147

114:                                              ; preds = %113
  %115 = invoke noundef ptr @_ZNK3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_E12IteratorBaseIKSB_NSB_14const_iteratorEEptEv(ptr noundef nonnull align 8 dereferenceable(12) %12)
          to label %116 unwind label %128

116:                                              ; preds = %114
  %117 = getelementptr inbounds i8, ptr %115, i64 8
  %118 = call noundef i32 @_ZNK3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(28) %117)
  %119 = icmp ult i32 %118, 256
  br i1 %119, label %132, label %120

120:                                              ; preds = %116
  %121 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.11, i32 noundef 468)
          to label %122 unwind label %130

122:                                              ; preds = %120
  br i1 %121, label %123, label %132

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

124:                                              ; preds = %109
  %125 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #5
  br label %150

126:                                              ; preds = %111, %110
  %127 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #5
  br label %150

128:                                              ; preds = %114
  %129 = landingpad { ptr, i32 }
          cleanup
  br label %150

130:                                              ; preds = %136, %135, %134, %132, %120
  %131 = landingpad { ptr, i32 }
          cleanup
  br label %150

132:                                              ; preds = %123, %122, %116
  %133 = call noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
  invoke void @_ZNK3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator") align 8 %15, ptr noundef nonnull align 8 dereferenceable(28) %117)
          to label %134 unwind label %130

134:                                              ; preds = %132
  invoke void @_ZNK3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator") align 8 %16, ptr noundef nonnull align 8 dereferenceable(28) %117)
          to label %135 unwind label %130

135:                                              ; preds = %134
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE6insertINS_9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE14const_iteratorEEEvPKjT_SG_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef %133, ptr noundef nonnull %15, ptr noundef nonnull %16)
          to label %136 unwind label %130

136:                                              ; preds = %135
  %137 = call noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
  %138 = and i64 %100, 4294967295
  %139 = getelementptr inbounds i32, ptr %137, i64 %138
  %140 = call noundef ptr @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
  %141 = getelementptr inbounds i32, ptr %140, i64 %138
  %142 = zext i32 %118 to i64
  %143 = getelementptr inbounds i32, ptr %141, i64 %142
  invoke void @_ZN3JPH9QuickSortIPjEEvT_S2_(ptr noundef %139, ptr noundef %143)
          to label %144 unwind label %130

144:                                              ; preds = %136
  %145 = shl i32 %118, 24
  %146 = add i32 %145, %101
  br label %147

147:                                              ; preds = %113, %144
  %.sink = phi i32 [ %146, %144 ], [ 0, %113 ]
  %148 = getelementptr inbounds i8, ptr %.06395, i64 48
  store i32 %.sink, ptr %148, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  %149 = getelementptr inbounds i8, ptr %.06395, i64 52
  %.not69 = icmp eq ptr %149, %99
  br i1 %.not69, label %._crit_edge98, label %.lr.ph97

150:                                              ; preds = %128, %130, %126, %124
  %.pn.pn = phi { ptr, i32 } [ %127, %126 ], [ %125, %124 ], [ %131, %130 ], [ %129, %128 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  br label %153

151:                                              ; preds = %._crit_edge98
  call void @_ZN3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_ED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  call void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %2) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  br label %152

152:                                              ; preds = %1, %151
  ret void

153:                                              ; preds = %107, %150, %66, %95, %41
  %.pn77.pn.pn = phi { ptr, i32 } [ %42, %41 ], [ %.pn77, %66 ], [ %.pn75, %95 ], [ %.pn.pn, %150 ], [ %108, %107 ]
  call void @_ZN3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_ED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br label %154

154:                                              ; preds = %153, %33, %29
  %.pn81 = phi { ptr, i32 } [ %34, %33 ], [ %.pn77.pn.pn, %153 ], [ %30, %29 ]
  call void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %2) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  resume { ptr, i32 } %.pn81
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE7reserveEj(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayINS_22SoftBodySharedSettings7SkinnedENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE6insertERKj(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH12UnorderedMapIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEES3_S5_EC2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_E7reserveEj(ptr noundef nonnull align 8 dereferenceable(28), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE4findERKj(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE12IteratorBaseIKS7_NS7_14const_iteratorEEneERKSA_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE3endEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE14const_iteratorC2ERKNS7_8iteratorE(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(28) ptr @_ZN3JPH12UnorderedMapIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEES3_S5_EixERKj(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayIjNS_12STLAllocatorIjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH12UnorderedMapIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEES3_S5_E4findERKj(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_E14const_iteratorC2ERKNSB_8iteratorE(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_E12IteratorBaseIKSB_NSB_14const_iteratorEEneERKSE_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_E4cendEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::UnorderedMapDetail<unsigned int, JPH::UnorderedSet<unsigned int>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_E12IteratorBaseIKSB_NSB_14const_iteratorEEptEv(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE6insertINS_9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE14const_iteratorEEEvPKjT_SG_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEE3endEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<unsigned int, unsigned int, JPH::UnorderedSetDetail<unsigned int>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH9QuickSortIPjEEvT_S2_(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE13shrink_to_fitEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH9HashTableIjSt4pairIjNS_12UnorderedSetIjNS_4HashIjEESt8equal_toIjEEEENS_18UnorderedMapDetailIjS7_EES4_S6_ED2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH9HashTableIjjNS_18UnorderedSetDetailIjEENS_4HashIjEESt8equal_toIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #4 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 2157802101}
!10 = !{i64 2157802428}
!11 = !{!12, !6, i64 48}
!12 = !{!"_ZTSN3JPH22SoftBodySharedSettings7SkinnedE", !6, i64 0, !7, i64 4, !13, i64 36, !13, i64 40, !13, i64 44, !6, i64 48}
!13 = !{!"float", !7, i64 0}


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