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

; 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.std::unordered_map" = type { %"class.std::_Hashtable.27" }
%"class.std::_Hashtable.27" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%struct.Edge = type { i32, i32 }
%"struct.JPH::AssertLastParam" = type { i8 }
%"struct.std::__detail::_Node_iterator.43" = type { %"struct.std::__detail::_Node_iterator_base.44" }
%"struct.std::__detail::_Node_iterator_base.44" = type { ptr }
%"class.JPH::Vec3" = type { %union.anon.18 }
%union.anon.18 = type { <4 x float> }
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.47 }
%union.anon.47 = type { <4 x float> }
%"class.JPH::IndexedTriangleNoMaterial" = type { [3 x i32] }
%struct.TriangleIndices = type { i32, [2 x i32] }
%"class.JPH::IndexedTriangle" = type { %"class.JPH::IndexedTriangleNoMaterial", i32 }
%"struct.std::pair.45" = type { %struct.Edge, %struct.TriangleIndices }
%"class.JPH::MeshShapeSettings" = type { %"class.JPH::ShapeSettings", %"class.JPH::Array", %"class.JPH::Array.5", %"class.JPH::Array.8", i32, float }
%"class.JPH::ShapeSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget", i64, %"class.JPH::Result" }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Result" = type <{ %union.anon, i8, [7 x i8] }>
%union.anon = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.2 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.2 = type { i64, [8 x i8] }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::Array.5" = type { i64, i64, ptr }
%"class.JPH::Array.8" = type { i64, i64, ptr }

@.str.9 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [102 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_15IndexedTriangleENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEE(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::unordered_map", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %struct.Edge, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"struct.JPH::AssertLastParam", align 1
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.std::__detail::_Node_iterator.43", align 8
  %18 = alloca %"struct.std::__detail::_Node_iterator.43", align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca %"class.JPH::Plane", align 16
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca %"class.JPH::Plane", align 16
  %36 = alloca %"class.JPH::Vec3", align 16
  %37 = alloca %"class.JPH::Vec3", align 16
  %38 = alloca %"class.JPH::Vec3", align 16
  %39 = alloca %"class.JPH::Vec3", align 16
  %40 = alloca %"class.JPH::Vec3", align 16
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca %"class.JPH::Vec3", align 16
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca ptr, align 8
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca %"struct.JPH::AssertLastParam", align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %5) #7
  call void @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #7
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = invoke noundef i64 @_ZNK3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %49)
          to label %51 unwind label %62

51:                                               ; preds = %2
  %52 = mul i64 %50, 3
  invoke void @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(56) %5, i64 noundef %52)
          to label %53 unwind label %62

53:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %161, %53
  %55 = load i32, ptr %8, align 4, !tbaa !9
  %56 = zext i32 %55 to i64
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = invoke noundef i64 @_ZNK3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %57)
          to label %59 unwind label %66

59:                                               ; preds = %54
  %60 = icmp ult i64 %56, %58
  br i1 %60, label %70, label %61

61:                                               ; preds = %59
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %166

62:                                               ; preds = %51, %2
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %6, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %7, align 4
  br label %519

66:                                               ; preds = %54
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %6, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %7, align 4
  br label %165

70:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = load i32, ptr %8, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  %74 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %73)
          to label %75 unwind label %80

75:                                               ; preds = %70
  store ptr %74, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %155, %75
  %77 = load i32, ptr %11, align 4, !tbaa !9
  %78 = icmp ult i32 %77, 3
  br i1 %78, label %84, label %79

79:                                               ; preds = %76
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %160

80:                                               ; preds = %70
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %6, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %7, align 4
  br label %164

84:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = getelementptr inbounds %"class.JPH::IndexedTriangleNoMaterial", ptr %85, i32 0, i32 0
  %87 = load i32, ptr %11, align 4, !tbaa !9
  %88 = zext i32 %87 to i64
  %89 = getelementptr inbounds [3 x i32], ptr %86, i64 0, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !9
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = getelementptr inbounds %"class.JPH::IndexedTriangleNoMaterial", ptr %91, i32 0, i32 0
  %93 = load i32, ptr %11, align 4, !tbaa !9
  %94 = add i32 %93, 1
  %95 = urem i32 %94, 3
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds [3 x i32], ptr %92, i64 0, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !9
  invoke void @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEEN4EdgeC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef %90, i32 noundef %98)
          to label %99 unwind label %119

99:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %100 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEEixERSH_(ptr noundef nonnull align 8 dereferenceable(56) %5, ptr noundef nonnull align 4 dereferenceable(8) %12)
          to label %101 unwind label %123

101:                                              ; preds = %99
  store ptr %100, ptr %13, align 8, !tbaa !5
  %102 = load ptr, ptr %13, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.TriangleIndices, ptr %102, i32 0, i32 0
  %104 = load i32, ptr %103, align 4, !tbaa !11
  %105 = icmp ult i32 %104, 2
  br i1 %105, label %106, label %127

106:                                              ; preds = %101
  %107 = load i32, ptr %8, align 4, !tbaa !9
  %108 = load ptr, ptr %13, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.TriangleIndices, ptr %108, i32 0, i32 1
  %110 = load ptr, ptr %13, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.TriangleIndices, ptr %110, i32 0, i32 0
  %112 = load i32, ptr %111, align 4, !tbaa !11
  %113 = zext i32 %112 to i64
  %114 = getelementptr inbounds [2 x i32], ptr %109, i64 0, i64 %113
  store i32 %107, ptr %114, align 4, !tbaa !9
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.TriangleIndices, ptr %115, i32 0, i32 0
  %117 = load i32, ptr %116, align 4, !tbaa !11
  %118 = add i32 %117, 1
  store i32 %118, ptr %116, align 4, !tbaa !11
  br label %154

119:                                              ; preds = %84
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %6, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %7, align 4
  br label %159

123:                                              ; preds = %99
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %6, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %7, align 4
  br label %158

127:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %128 = load i32, ptr %11, align 4, !tbaa !9
  %129 = add i32 %128, 5
  %130 = shl i32 1, %129
  store i32 %130, ptr %14, align 4, !tbaa !9
  br label %131

131:                                              ; preds = %127
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = getelementptr inbounds %"class.JPH::IndexedTriangle", ptr %132, i32 0, i32 1
  %134 = load i32, ptr %133, align 4, !tbaa !13
  %135 = load i32, ptr %14, align 4, !tbaa !9
  %136 = and i32 %134, %135
  %137 = icmp eq i32 %136, 0
  br i1 %137, label %146, label %138

138:                                              ; preds = %131
  %139 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.9, ptr noundef @.str.10, i32 noundef 284)
          to label %140 unwind label %142

140:                                              ; preds = %138
  br i1 %139, label %141, label %146

141:                                              ; preds = %140
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !16
  br label %146

142:                                              ; preds = %138
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %6, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %158

146:                                              ; preds = %141, %140, %131
  br label %147

147:                                              ; preds = %146
  br label %148

148:                                              ; preds = %147
  %149 = load i32, ptr %14, align 4, !tbaa !9
  %150 = load ptr, ptr %10, align 8, !tbaa !5
  %151 = getelementptr inbounds %"class.JPH::IndexedTriangle", ptr %150, i32 0, i32 1
  %152 = load i32, ptr %151, align 4, !tbaa !13
  %153 = or i32 %152, %149
  store i32 %153, ptr %151, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %154

154:                                              ; preds = %148, %106
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %155

155:                                              ; preds = %154
  %156 = load i32, ptr %11, align 4, !tbaa !9
  %157 = add i32 %156, 1
  store i32 %157, ptr %11, align 4, !tbaa !9
  br label %76, !llvm.loop !17

158:                                              ; preds = %142, %123
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %159

159:                                              ; preds = %158, %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %164

160:                                              ; preds = %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %161

161:                                              ; preds = %160
  %162 = load i32, ptr %8, align 4, !tbaa !9
  %163 = add i32 %162, 1
  store i32 %163, ptr %8, align 4, !tbaa !9
  br label %54, !llvm.loop !19

164:                                              ; preds = %159, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %165

165:                                              ; preds = %164, %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %519

166:                                              ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store ptr %5, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %167 = load ptr, ptr %16, align 8, !tbaa !5
  %168 = call ptr @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %167) #7
  %169 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.43", ptr %17, i32 0, i32 0
  %170 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.44", ptr %169, i32 0, i32 0
  store ptr %168, ptr %170, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %171 = load ptr, ptr %16, align 8, !tbaa !5
  %172 = call ptr @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %171) #7
  %173 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.43", ptr %18, i32 0, i32 0
  %174 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.44", ptr %173, i32 0, i32 0
  store ptr %172, ptr %174, align 8
  br label %175

175:                                              ; preds = %515, %166
  %176 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKZN3JPH9MeshShape16sFindActiveEdgesERKNS2_17MeshShapeSettingsERNS2_5ArrayINS2_15IndexedTriangleENS2_12STLAllocatorIS8_EEEEE4EdgeZNS3_16sFindActiveEdgesES6_SC_E15TriangleIndicesELb1EEESJ_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  br i1 %176, label %178, label %177

177:                                              ; preds = %175
  store i32 10, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %518

178:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %179 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKZN3JPH9MeshShape16sFindActiveEdgesERKNS2_17MeshShapeSettingsERNS2_5ArrayINS2_15IndexedTriangleENS2_12STLAllocatorIS8_EEEEE4EdgeZNS3_16sFindActiveEdgesES6_SC_E15TriangleIndicesELb0ELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  store ptr %179, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !9
  %180 = load ptr, ptr %19, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.std::pair.45", ptr %180, i32 0, i32 1
  %182 = getelementptr inbounds %struct.TriangleIndices, ptr %181, i32 0, i32 0
  %183 = load i32, ptr %182, align 4, !tbaa !20
  %184 = icmp eq i32 %183, 1
  br i1 %184, label %185, label %186

185:                                              ; preds = %178
  store i32 1, ptr %20, align 4, !tbaa !9
  br label %451

186:                                              ; preds = %178
  %187 = load ptr, ptr %19, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.std::pair.45", ptr %187, i32 0, i32 1
  %189 = getelementptr inbounds %struct.TriangleIndices, ptr %188, i32 0, i32 0
  %190 = load i32, ptr %189, align 4, !tbaa !20
  %191 = icmp eq i32 %190, 2
  br i1 %191, label %192, label %449

192:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = load ptr, ptr %19, align 8, !tbaa !5
  %195 = getelementptr inbounds %"struct.std::pair.45", ptr %194, i32 0, i32 1
  %196 = getelementptr inbounds %struct.TriangleIndices, ptr %195, i32 0, i32 1
  %197 = getelementptr inbounds [2 x i32], ptr %196, i64 0, i64 0
  %198 = load i32, ptr %197, align 4, !tbaa !9
  %199 = zext i32 %198 to i64
  %200 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %193, i64 noundef %199)
          to label %201 unwind label %390

201:                                              ; preds = %192
  store ptr %200, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %202 = load ptr, ptr %4, align 8, !tbaa !5
  %203 = load ptr, ptr %19, align 8, !tbaa !5
  %204 = getelementptr inbounds %"struct.std::pair.45", ptr %203, i32 0, i32 1
  %205 = getelementptr inbounds %struct.TriangleIndices, ptr %204, i32 0, i32 1
  %206 = getelementptr inbounds [2 x i32], ptr %205, i64 0, i64 1
  %207 = load i32, ptr %206, align 4, !tbaa !9
  %208 = zext i32 %207 to i64
  %209 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %202, i64 noundef %208)
          to label %210 unwind label %394

210:                                              ; preds = %201
  store ptr %209, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %211 = load ptr, ptr %19, align 8, !tbaa !5
  %212 = getelementptr inbounds %"struct.std::pair.45", ptr %211, i32 0, i32 0
  %213 = load ptr, ptr %21, align 8, !tbaa !5
  %214 = invoke noundef i32 @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEENK4Edge18GetIndexInTriangleERKS5_(ptr noundef nonnull align 4 dereferenceable(8) %212, ptr noundef nonnull align 4 dereferenceable(16) %213)
          to label %215 unwind label %398

215:                                              ; preds = %210
  store i32 %214, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %216 = load ptr, ptr %19, align 8, !tbaa !5
  %217 = getelementptr inbounds %"struct.std::pair.45", ptr %216, i32 0, i32 0
  %218 = load ptr, ptr %22, align 8, !tbaa !5
  %219 = invoke noundef i32 @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEENK4Edge18GetIndexInTriangleERKS5_(ptr noundef nonnull align 4 dereferenceable(8) %217, ptr noundef nonnull align 4 dereferenceable(16) %218)
          to label %220 unwind label %402

220:                                              ; preds = %215
  store i32 %219, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #7
  %221 = load ptr, ptr %3, align 8, !tbaa !5
  %222 = getelementptr inbounds %"class.JPH::MeshShapeSettings", ptr %221, i32 0, i32 1
  %223 = load ptr, ptr %21, align 8, !tbaa !5
  %224 = getelementptr inbounds %"class.JPH::IndexedTriangleNoMaterial", ptr %223, i32 0, i32 0
  %225 = load i32, ptr %23, align 4, !tbaa !9
  %226 = zext i32 %225 to i64
  %227 = getelementptr inbounds [3 x i32], ptr %224, i64 0, i64 %226
  %228 = load i32, ptr %227, align 4, !tbaa !9
  %229 = zext i32 %228 to i64
  %230 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %222, i64 noundef %229)
          to label %231 unwind label %406

231:                                              ; preds = %220
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %25, ptr noundef nonnull align 4 dereferenceable(12) %230)
          to label %232 unwind label %406

232:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #7
  %233 = load ptr, ptr %3, align 8, !tbaa !5
  %234 = getelementptr inbounds %"class.JPH::MeshShapeSettings", ptr %233, i32 0, i32 1
  %235 = load ptr, ptr %21, align 8, !tbaa !5
  %236 = getelementptr inbounds %"class.JPH::IndexedTriangleNoMaterial", ptr %235, i32 0, i32 0
  %237 = load i32, ptr %23, align 4, !tbaa !9
  %238 = add i32 %237, 1
  %239 = urem i32 %238, 3
  %240 = zext i32 %239 to i64
  %241 = getelementptr inbounds [3 x i32], ptr %236, i64 0, i64 %240
  %242 = load i32, ptr %241, align 4, !tbaa !9
  %243 = zext i32 %242 to i64
  %244 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %234, i64 noundef %243)
          to label %245 unwind label %410

245:                                              ; preds = %232
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %26, ptr noundef nonnull align 4 dereferenceable(12) %244)
          to label %246 unwind label %410

246:                                              ; preds = %245
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #7
  %247 = load ptr, ptr %3, align 8, !tbaa !5
  %248 = getelementptr inbounds %"class.JPH::MeshShapeSettings", ptr %247, i32 0, i32 1
  %249 = load ptr, ptr %21, align 8, !tbaa !5
  %250 = getelementptr inbounds %"class.JPH::IndexedTriangleNoMaterial", ptr %249, i32 0, i32 0
  %251 = load i32, ptr %23, align 4, !tbaa !9
  %252 = add i32 %251, 2
  %253 = urem i32 %252, 3
  %254 = zext i32 %253 to i64
  %255 = getelementptr inbounds [3 x i32], ptr %250, i64 0, i64 %254
  %256 = load i32, ptr %255, align 4, !tbaa !9
  %257 = zext i32 %256 to i64
  %258 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %248, i64 noundef %257)
          to label %259 unwind label %414

259:                                              ; preds = %246
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %27, ptr noundef nonnull align 4 dereferenceable(12) %258)
          to label %260 unwind label %414

260:                                              ; preds = %259
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %25, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %30, ptr align 16 %26, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 %27, i64 16, i1 false), !tbaa.struct !23
  %261 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %262 = load double, ptr %261, align 16
  %263 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %264 = load double, ptr %263, align 8
  %265 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %266 = load double, ptr %265, align 16
  %267 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %268 = load double, ptr %267, align 8
  %269 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %270 = load double, ptr %269, align 16
  %271 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %272 = load double, ptr %271, align 8
  %273 = invoke { double, double } @_ZN3JPH5Plane14sFromPointsCCWENS_4Vec3ES1_S1_(double %262, double %264, double %266, double %268, double %270, double %272)
          to label %274 unwind label %418

274:                                              ; preds = %260
  %275 = getelementptr inbounds %"class.JPH::Plane", ptr %28, i32 0, i32 0
  %276 = getelementptr inbounds %"class.JPH::Vec4", ptr %275, i32 0, i32 0
  %277 = getelementptr inbounds %union.anon.47, ptr %276, i32 0, i32 0
  %278 = getelementptr inbounds { double, double }, ptr %277, i32 0, i32 0
  %279 = extractvalue { double, double } %273, 0
  store double %279, ptr %278, align 16
  %280 = getelementptr inbounds { double, double }, ptr %277, i32 0, i32 1
  %281 = extractvalue { double, double } %273, 1
  store double %281, ptr %280, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #7
  %282 = load ptr, ptr %3, align 8, !tbaa !5
  %283 = getelementptr inbounds %"class.JPH::MeshShapeSettings", ptr %282, i32 0, i32 1
  %284 = load ptr, ptr %22, align 8, !tbaa !5
  %285 = getelementptr inbounds %"class.JPH::IndexedTriangleNoMaterial", ptr %284, i32 0, i32 0
  %286 = load i32, ptr %24, align 4, !tbaa !9
  %287 = zext i32 %286 to i64
  %288 = getelementptr inbounds [3 x i32], ptr %285, i64 0, i64 %287
  %289 = load i32, ptr %288, align 4, !tbaa !9
  %290 = zext i32 %289 to i64
  %291 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %283, i64 noundef %290)
          to label %292 unwind label %422

292:                                              ; preds = %274
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %32, ptr noundef nonnull align 4 dereferenceable(12) %291)
          to label %293 unwind label %422

293:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #7
  %294 = load ptr, ptr %3, align 8, !tbaa !5
  %295 = getelementptr inbounds %"class.JPH::MeshShapeSettings", ptr %294, i32 0, i32 1
  %296 = load ptr, ptr %22, align 8, !tbaa !5
  %297 = getelementptr inbounds %"class.JPH::IndexedTriangleNoMaterial", ptr %296, i32 0, i32 0
  %298 = load i32, ptr %24, align 4, !tbaa !9
  %299 = add i32 %298, 1
  %300 = urem i32 %299, 3
  %301 = zext i32 %300 to i64
  %302 = getelementptr inbounds [3 x i32], ptr %297, i64 0, i64 %301
  %303 = load i32, ptr %302, align 4, !tbaa !9
  %304 = zext i32 %303 to i64
  %305 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %295, i64 noundef %304)
          to label %306 unwind label %426

306:                                              ; preds = %293
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %33, ptr noundef nonnull align 4 dereferenceable(12) %305)
          to label %307 unwind label %426

307:                                              ; preds = %306
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #7
  %308 = load ptr, ptr %3, align 8, !tbaa !5
  %309 = getelementptr inbounds %"class.JPH::MeshShapeSettings", ptr %308, i32 0, i32 1
  %310 = load ptr, ptr %22, align 8, !tbaa !5
  %311 = getelementptr inbounds %"class.JPH::IndexedTriangleNoMaterial", ptr %310, i32 0, i32 0
  %312 = load i32, ptr %24, align 4, !tbaa !9
  %313 = add i32 %312, 2
  %314 = urem i32 %313, 3
  %315 = zext i32 %314 to i64
  %316 = getelementptr inbounds [3 x i32], ptr %311, i64 0, i64 %315
  %317 = load i32, ptr %316, align 4, !tbaa !9
  %318 = zext i32 %317 to i64
  %319 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %309, i64 noundef %318)
          to label %320 unwind label %430

320:                                              ; preds = %307
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %34, ptr noundef nonnull align 4 dereferenceable(12) %319)
          to label %321 unwind label %430

321:                                              ; preds = %320
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %36, ptr align 16 %32, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %37, ptr align 16 %33, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 %34, i64 16, i1 false), !tbaa.struct !23
  %322 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %323 = load double, ptr %322, align 16
  %324 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %325 = load double, ptr %324, align 8
  %326 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %327 = load double, ptr %326, align 16
  %328 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %329 = load double, ptr %328, align 8
  %330 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %331 = load double, ptr %330, align 16
  %332 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %333 = load double, ptr %332, align 8
  %334 = invoke { double, double } @_ZN3JPH5Plane14sFromPointsCCWENS_4Vec3ES1_S1_(double %323, double %325, double %327, double %329, double %331, double %333)
          to label %335 unwind label %434

335:                                              ; preds = %321
  %336 = getelementptr inbounds %"class.JPH::Plane", ptr %35, i32 0, i32 0
  %337 = getelementptr inbounds %"class.JPH::Vec4", ptr %336, i32 0, i32 0
  %338 = getelementptr inbounds %union.anon.47, ptr %337, i32 0, i32 0
  %339 = getelementptr inbounds { double, double }, ptr %338, i32 0, i32 0
  %340 = extractvalue { double, double } %334, 0
  store double %340, ptr %339, align 16
  %341 = getelementptr inbounds { double, double }, ptr %338, i32 0, i32 1
  %342 = extractvalue { double, double } %334, 1
  store double %342, ptr %341, align 8
  %343 = invoke { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %28)
          to label %344 unwind label %434

344:                                              ; preds = %335
  %345 = getelementptr inbounds %"class.JPH::Vec3", ptr %39, i32 0, i32 0
  %346 = getelementptr inbounds %union.anon.18, ptr %345, i32 0, i32 0
  %347 = getelementptr inbounds { double, double }, ptr %346, i32 0, i32 0
  %348 = extractvalue { double, double } %343, 0
  store double %348, ptr %347, align 16
  %349 = getelementptr inbounds { double, double }, ptr %346, i32 0, i32 1
  %350 = extractvalue { double, double } %343, 1
  store double %350, ptr %349, align 8
  %351 = invoke { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %35)
          to label %352 unwind label %434

352:                                              ; preds = %344
  %353 = getelementptr inbounds %"class.JPH::Vec3", ptr %40, i32 0, i32 0
  %354 = getelementptr inbounds %union.anon.18, ptr %353, i32 0, i32 0
  %355 = getelementptr inbounds { double, double }, ptr %354, i32 0, i32 0
  %356 = extractvalue { double, double } %351, 0
  store double %356, ptr %355, align 16
  %357 = getelementptr inbounds { double, double }, ptr %354, i32 0, i32 1
  %358 = extractvalue { double, double } %351, 1
  store double %358, ptr %357, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %42, ptr align 16 %25, i64 16, i1 false), !tbaa.struct !23
  %359 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %360 = load double, ptr %359, align 16
  %361 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %362 = load double, ptr %361, align 8
  %363 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %26, double %360, double %362)
          to label %364 unwind label %434

364:                                              ; preds = %352
  %365 = getelementptr inbounds %"class.JPH::Vec3", ptr %41, i32 0, i32 0
  %366 = getelementptr inbounds %union.anon.18, ptr %365, i32 0, i32 0
  %367 = getelementptr inbounds { double, double }, ptr %366, i32 0, i32 0
  %368 = extractvalue { double, double } %363, 0
  store double %368, ptr %367, align 16
  %369 = getelementptr inbounds { double, double }, ptr %366, i32 0, i32 1
  %370 = extractvalue { double, double } %363, 1
  store double %370, ptr %369, align 8
  %371 = load ptr, ptr %3, align 8, !tbaa !5
  %372 = getelementptr inbounds %"class.JPH::MeshShapeSettings", ptr %371, i32 0, i32 5
  %373 = load float, ptr %372, align 4, !tbaa !25
  %374 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %375 = load double, ptr %374, align 16
  %376 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %377 = load double, ptr %376, align 8
  %378 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %379 = load double, ptr %378, align 16
  %380 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %381 = load double, ptr %380, align 8
  %382 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %383 = load double, ptr %382, align 16
  %384 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %385 = load double, ptr %384, align 8
  %386 = invoke noundef zeroext i1 @_ZN3JPH11ActiveEdgesL12IsEdgeActiveENS_4Vec3ES1_S1_f(double %375, double %377, double %379, double %381, double %383, double %385, float noundef %373)
          to label %387 unwind label %434

387:                                              ; preds = %364
  %388 = zext i1 %386 to i64
  %389 = select i1 %386, i32 2, i32 0
  store i32 %389, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %450

390:                                              ; preds = %192
  %391 = landingpad { ptr, i32 }
          cleanup
  %392 = extractvalue { ptr, i32 } %391, 0
  store ptr %392, ptr %6, align 8
  %393 = extractvalue { ptr, i32 } %391, 1
  store i32 %393, ptr %7, align 4
  br label %448

394:                                              ; preds = %201
  %395 = landingpad { ptr, i32 }
          cleanup
  %396 = extractvalue { ptr, i32 } %395, 0
  store ptr %396, ptr %6, align 8
  %397 = extractvalue { ptr, i32 } %395, 1
  store i32 %397, ptr %7, align 4
  br label %447

398:                                              ; preds = %210
  %399 = landingpad { ptr, i32 }
          cleanup
  %400 = extractvalue { ptr, i32 } %399, 0
  store ptr %400, ptr %6, align 8
  %401 = extractvalue { ptr, i32 } %399, 1
  store i32 %401, ptr %7, align 4
  br label %446

402:                                              ; preds = %215
  %403 = landingpad { ptr, i32 }
          cleanup
  %404 = extractvalue { ptr, i32 } %403, 0
  store ptr %404, ptr %6, align 8
  %405 = extractvalue { ptr, i32 } %403, 1
  store i32 %405, ptr %7, align 4
  br label %445

406:                                              ; preds = %231, %220
  %407 = landingpad { ptr, i32 }
          cleanup
  %408 = extractvalue { ptr, i32 } %407, 0
  store ptr %408, ptr %6, align 8
  %409 = extractvalue { ptr, i32 } %407, 1
  store i32 %409, ptr %7, align 4
  br label %444

410:                                              ; preds = %245, %232
  %411 = landingpad { ptr, i32 }
          cleanup
  %412 = extractvalue { ptr, i32 } %411, 0
  store ptr %412, ptr %6, align 8
  %413 = extractvalue { ptr, i32 } %411, 1
  store i32 %413, ptr %7, align 4
  br label %443

414:                                              ; preds = %259, %246
  %415 = landingpad { ptr, i32 }
          cleanup
  %416 = extractvalue { ptr, i32 } %415, 0
  store ptr %416, ptr %6, align 8
  %417 = extractvalue { ptr, i32 } %415, 1
  store i32 %417, ptr %7, align 4
  br label %442

418:                                              ; preds = %260
  %419 = landingpad { ptr, i32 }
          cleanup
  %420 = extractvalue { ptr, i32 } %419, 0
  store ptr %420, ptr %6, align 8
  %421 = extractvalue { ptr, i32 } %419, 1
  store i32 %421, ptr %7, align 4
  br label %441

422:                                              ; preds = %292, %274
  %423 = landingpad { ptr, i32 }
          cleanup
  %424 = extractvalue { ptr, i32 } %423, 0
  store ptr %424, ptr %6, align 8
  %425 = extractvalue { ptr, i32 } %423, 1
  store i32 %425, ptr %7, align 4
  br label %440

426:                                              ; preds = %306, %293
  %427 = landingpad { ptr, i32 }
          cleanup
  %428 = extractvalue { ptr, i32 } %427, 0
  store ptr %428, ptr %6, align 8
  %429 = extractvalue { ptr, i32 } %427, 1
  store i32 %429, ptr %7, align 4
  br label %439

430:                                              ; preds = %320, %307
  %431 = landingpad { ptr, i32 }
          cleanup
  %432 = extractvalue { ptr, i32 } %431, 0
  store ptr %432, ptr %6, align 8
  %433 = extractvalue { ptr, i32 } %431, 1
  store i32 %433, ptr %7, align 4
  br label %438

434:                                              ; preds = %364, %352, %344, %335, %321
  %435 = landingpad { ptr, i32 }
          cleanup
  %436 = extractvalue { ptr, i32 } %435, 0
  store ptr %436, ptr %6, align 8
  %437 = extractvalue { ptr, i32 } %435, 1
  store i32 %437, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #7
  br label %438

438:                                              ; preds = %434, %430
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #7
  br label %439

439:                                              ; preds = %438, %426
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #7
  br label %440

440:                                              ; preds = %439, %422
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #7
  br label %441

441:                                              ; preds = %440, %418
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  br label %442

442:                                              ; preds = %441, %414
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  br label %443

443:                                              ; preds = %442, %410
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  br label %444

444:                                              ; preds = %443, %406
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  br label %445

445:                                              ; preds = %444, %402
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %446

446:                                              ; preds = %445, %398
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %447

447:                                              ; preds = %446, %394
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %448

448:                                              ; preds = %447, %390
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %517

449:                                              ; preds = %186
  store i32 2, ptr %20, align 4, !tbaa !9
  br label %450

450:                                              ; preds = %449, %387
  br label %451

451:                                              ; preds = %450, %185
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #7
  store i32 0, ptr %43, align 4, !tbaa !9
  br label %452

452:                                              ; preds = %509, %451
  %453 = load i32, ptr %43, align 4, !tbaa !9
  %454 = load i32, ptr %20, align 4, !tbaa !9
  %455 = icmp ult i32 %453, %454
  br i1 %455, label %457, label %456

456:                                              ; preds = %452
  store i32 12, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  br label %514

457:                                              ; preds = %452
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #7
  %458 = load ptr, ptr %19, align 8, !tbaa !5
  %459 = getelementptr inbounds %"struct.std::pair.45", ptr %458, i32 0, i32 1
  %460 = getelementptr inbounds %struct.TriangleIndices, ptr %459, i32 0, i32 1
  %461 = load i32, ptr %43, align 4, !tbaa !9
  %462 = zext i32 %461 to i64
  %463 = getelementptr inbounds [2 x i32], ptr %460, i64 0, i64 %462
  %464 = load i32, ptr %463, align 4, !tbaa !9
  store i32 %464, ptr %44, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #7
  %465 = load ptr, ptr %4, align 8, !tbaa !5
  %466 = load i32, ptr %44, align 4, !tbaa !9
  %467 = zext i32 %466 to i64
  %468 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %465, i64 noundef %467)
          to label %469 unwind label %489

469:                                              ; preds = %457
  store ptr %468, ptr %45, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #7
  %470 = load ptr, ptr %19, align 8, !tbaa !5
  %471 = getelementptr inbounds %"struct.std::pair.45", ptr %470, i32 0, i32 0
  %472 = load ptr, ptr %45, align 8, !tbaa !5
  %473 = invoke noundef i32 @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEENK4Edge18GetIndexInTriangleERKS5_(ptr noundef nonnull align 4 dereferenceable(8) %471, ptr noundef nonnull align 4 dereferenceable(16) %472)
          to label %474 unwind label %493

474:                                              ; preds = %469
  store i32 %473, ptr %46, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #7
  %475 = load i32, ptr %46, align 4, !tbaa !9
  %476 = add i32 %475, 5
  %477 = shl i32 1, %476
  store i32 %477, ptr %47, align 4, !tbaa !9
  br label %478

478:                                              ; preds = %474
  %479 = load ptr, ptr %45, align 8, !tbaa !5
  %480 = getelementptr inbounds %"class.JPH::IndexedTriangle", ptr %479, i32 0, i32 1
  %481 = load i32, ptr %480, align 4, !tbaa !13
  %482 = load i32, ptr %47, align 4, !tbaa !9
  %483 = and i32 %481, %482
  %484 = icmp eq i32 %483, 0
  br i1 %484, label %501, label %485

485:                                              ; preds = %478
  %486 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.9, ptr noundef @.str.10, i32 noundef 337)
          to label %487 unwind label %497

487:                                              ; preds = %485
  br i1 %486, label %488, label %501

488:                                              ; preds = %487
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !39
  br label %501

489:                                              ; preds = %457
  %490 = landingpad { ptr, i32 }
          cleanup
  %491 = extractvalue { ptr, i32 } %490, 0
  store ptr %491, ptr %6, align 8
  %492 = extractvalue { ptr, i32 } %490, 1
  store i32 %492, ptr %7, align 4
  br label %513

493:                                              ; preds = %469
  %494 = landingpad { ptr, i32 }
          cleanup
  %495 = extractvalue { ptr, i32 } %494, 0
  store ptr %495, ptr %6, align 8
  %496 = extractvalue { ptr, i32 } %494, 1
  store i32 %496, ptr %7, align 4
  br label %512

497:                                              ; preds = %485
  %498 = landingpad { ptr, i32 }
          cleanup
  %499 = extractvalue { ptr, i32 } %498, 0
  store ptr %499, ptr %6, align 8
  %500 = extractvalue { ptr, i32 } %498, 1
  store i32 %500, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #7
  br label %512

501:                                              ; preds = %488, %487, %478
  br label %502

502:                                              ; preds = %501
  br label %503

503:                                              ; preds = %502
  %504 = load i32, ptr %47, align 4, !tbaa !9
  %505 = load ptr, ptr %45, align 8, !tbaa !5
  %506 = getelementptr inbounds %"class.JPH::IndexedTriangle", ptr %505, i32 0, i32 1
  %507 = load i32, ptr %506, align 4, !tbaa !13
  %508 = or i32 %507, %504
  store i32 %508, ptr %506, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  br label %509

509:                                              ; preds = %503
  %510 = load i32, ptr %43, align 4, !tbaa !9
  %511 = add i32 %510, 1
  store i32 %511, ptr %43, align 4, !tbaa !9
  br label %452, !llvm.loop !40

512:                                              ; preds = %497, %493
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #7
  br label %513

513:                                              ; preds = %512, %489
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  br label %517

514:                                              ; preds = %456
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %515

515:                                              ; preds = %514
  %516 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKZN3JPH9MeshShape16sFindActiveEdgesERKNS2_17MeshShapeSettingsERNS2_5ArrayINS2_15IndexedTriangleENS2_12STLAllocatorIS8_EEEEE4EdgeZNS3_16sFindActiveEdgesES6_SC_E15TriangleIndicesELb0ELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  br label %175

517:                                              ; preds = %513, %448
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %519

518:                                              ; preds = %177
  call void @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %5) #7
  ret void

519:                                              ; preds = %517, %165, %62
  call void @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %5) #7
  br label %520

520:                                              ; preds = %519
  %521 = load ptr, ptr %6, align 8
  %522 = load i32, ptr %7, align 4
  %523 = insertvalue { ptr, i32 } poison, ptr %521, 0
  %524 = insertvalue { ptr, i32 } %523, i32 %522, 1
  resume { ptr, i32 } %524
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEEN4EdgeC2Eii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEEixERSH_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(8)) #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKZN3JPH9MeshShape16sFindActiveEdgesERKNS2_17MeshShapeSettingsERNS2_5ArrayINS2_15IndexedTriangleENS2_12STLAllocatorIS8_EEEEE4EdgeZNS3_16sFindActiveEdgesES6_SC_E15TriangleIndicesELb1EEESJ_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKZN3JPH9MeshShape16sFindActiveEdgesERKNS2_17MeshShapeSettingsERNS2_5ArrayINS2_15IndexedTriangleENS2_12STLAllocatorIS8_EEEEE4EdgeZNS3_16sFindActiveEdgesES6_SC_E15TriangleIndicesELb0ELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEENK4Edge18GetIndexInTriangleERKS5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(16)) #4 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH5Plane14sFromPointsCCWENS_4Vec3ES1_S1_(double, double, double, double, double, double) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN3JPH11ActiveEdgesL12IsEdgeActiveENS_4Vec3ES1_S1_f(double, double, double, double, double, double, float noundef) #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKZN3JPH9MeshShape16sFindActiveEdgesERKNS2_17MeshShapeSettingsERNS2_5ArrayINS2_15IndexedTriangleENS2_12STLAllocatorIS8_EEEEE4EdgeZNS3_16sFindActiveEdgesES6_SC_E15TriangleIndicesELb0ELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEE15TriangleIndices", !10, i64 0, !7, i64 4}
!13 = !{!14, !10, i64 12}
!14 = !{!"_ZTSN3JPH15IndexedTriangleE", !15, i64 0, !10, i64 12}
!15 = !{!"_ZTSN3JPH25IndexedTriangleNoMaterialE", !7, i64 0}
!16 = !{i64 2158603708}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = !{!21, !10, i64 8}
!21 = !{!"_ZTSSt4pairIKZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesE", !22, i64 0, !12, i64 8}
!22 = !{!"_ZTSZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEE4Edge", !10, i64 0, !10, i64 4}
!23 = !{i64 0, i64 16, !24}
!24 = !{!7, !7, i64 0}
!25 = !{!26, !38, i64 140}
!26 = !{!"_ZTSN3JPH17MeshShapeSettingsE", !27, i64 0, !35, i64 64, !36, i64 88, !37, i64 112, !10, i64 136, !38, i64 140}
!27 = !{!"_ZTSN3JPH13ShapeSettingsE", !28, i64 0, !29, i64 8, !32, i64 16, !33, i64 24}
!28 = !{!"_ZTSN3JPH18SerializableObjectE"}
!29 = !{!"_ZTSN3JPH9RefTargetINS_13ShapeSettingsEEE", !30, i64 0}
!30 = !{!"_ZTSSt6atomicIjE", !31, i64 0}
!31 = !{!"_ZTSSt13__atomic_baseIjE", !10, i64 0}
!32 = !{!"long", !7, i64 0}
!33 = !{!"_ZTSN3JPH6ResultINS_3RefINS_5ShapeEEEEE", !7, i64 0, !34, i64 32}
!34 = !{!"_ZTSN3JPH6ResultINS_3RefINS_5ShapeEEEE6EStateE", !7, i64 0}
!35 = !{!"_ZTSN3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEE", !32, i64 0, !32, i64 8, !6, i64 16}
!36 = !{!"_ZTSN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEEE", !32, i64 0, !32, i64 8, !6, i64 16}
!37 = !{!"_ZTSN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEEE", !32, i64 0, !32, i64 8, !6, i64 16}
!38 = !{!"float", !7, i64 0}
!39 = !{i64 2158604092}
!40 = distinct !{!40, !18}


; 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.std::unordered_map" = type { %"class.std::_Hashtable.27" }
%"class.std::_Hashtable.27" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%struct.Edge = type { i32, i32 }
%"struct.std::__detail::_Node_iterator.43" = type { %"struct.std::__detail::_Node_iterator_base.44" }
%"struct.std::__detail::_Node_iterator_base.44" = type { ptr }
%"class.JPH::Vec3" = type { %union.anon.18 }
%union.anon.18 = type { <4 x float> }
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.47 }
%union.anon.47 = type { <4 x float> }

@.str.9 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [102 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_15IndexedTriangleENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEE(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::unordered_map", align 8
  %4 = alloca %struct.Edge, align 4
  %5 = alloca %"struct.std::__detail::_Node_iterator.43", align 8
  %6 = alloca %"struct.std::__detail::_Node_iterator.43", align 8
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Plane", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Plane", align 16
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %3) #6
  call void @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #6
  %15 = call noundef i64 @_ZNK3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %16 = mul i64 %15, 3
  invoke void @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(56) %3, i64 noundef %16)
          to label %.preheader131 unwind label %25

.preheader131:                                    ; preds = %2
  %17 = call noundef i64 @_ZNK3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %.not = icmp eq i64 %17, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %111, %.preheader131
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %18 = call ptr @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %3) #6
  store ptr %18, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %19 = call ptr @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %3) #6
  store ptr %19, ptr %6, align 8
  %20 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKZN3JPH9MeshShape16sFindActiveEdgesERKNS2_17MeshShapeSettingsERNS2_5ArrayINS2_15IndexedTriangleENS2_12STLAllocatorIS8_EEEEE4EdgeZNS3_16sFindActiveEdgesES6_SC_E15TriangleIndicesELb1EEESJ_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br i1 %20, label %.lr.ph139, label %._crit_edge140

.lr.ph139:                                        ; preds = %._crit_edge
  %21 = getelementptr inbounds i8, ptr %0, i64 64
  %.sroa.226.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  %.sroa.224.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  %.sroa.222.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  %22 = getelementptr inbounds i8, ptr %10, i64 8
  %.sroa.220.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  %.sroa.218.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  %.sroa.216.0..sroa_idx = getelementptr inbounds i8, ptr %13, i64 8
  %23 = getelementptr inbounds i8, ptr %14, i64 8
  %24 = getelementptr inbounds i8, ptr %0, i64 140
  br label %117

25:                                               ; preds = %2
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %272

.lr.ph:                                           ; preds = %.preheader131, %111
  %27 = phi i64 [ %113, %111 ], [ 0, %.preheader131 ]
  %.0104133 = phi i32 [ %112, %111 ], [ 0, %.preheader131 ]
  %28 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %27)
          to label %.preheader unwind label %33

.preheader:                                       ; preds = %.lr.ph
  %29 = getelementptr inbounds i8, ptr %28, i64 12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %30 = load i32, ptr %28, align 4, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %28, i64 4
  %32 = load i32, ptr %31, align 4, !tbaa !5
  invoke void @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEEN4EdgeC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %4, i32 noundef %30, i32 noundef %32)
          to label %35 unwind label %45

33:                                               ; preds = %.lr.ph
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %272

35:                                               ; preds = %.preheader
  %36 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEEixERSH_(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 4 dereferenceable(8) %4)
          to label %37 unwind label %47

37:                                               ; preds = %35
  %38 = load i32, ptr %36, align 4, !tbaa !9
  %39 = icmp ult i32 %38, 2
  br i1 %39, label %40, label %49

40:                                               ; preds = %37
  %41 = getelementptr inbounds i8, ptr %36, i64 4
  %42 = zext nneg i32 %38 to i64
  %43 = getelementptr inbounds [2 x i32], ptr %41, i64 0, i64 %42
  store i32 %.0104133, ptr %43, align 4, !tbaa !5
  %44 = add nuw nsw i32 %38, 1
  store i32 %44, ptr %36, align 4, !tbaa !9
  br label %62

45:                                               ; preds = %87, %62, %.preheader
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %116

47:                                               ; preds = %90, %66, %35
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %116

49:                                               ; preds = %37
  %50 = load i32, ptr %29, align 4, !tbaa !11
  %51 = and i32 %50, 32
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %59, label %53

53:                                               ; preds = %49
  %54 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10, i32 noundef 284)
          to label %55 unwind label %57

55:                                               ; preds = %53
  br i1 %54, label %56, label %59

56:                                               ; preds = %55
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #6, !srcloc !14
  br label %59

57:                                               ; preds = %99, %75, %53
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %116

59:                                               ; preds = %56, %55, %49
  %60 = load i32, ptr %29, align 4, !tbaa !11
  %61 = or i32 %60, 32
  store i32 %61, ptr %29, align 4, !tbaa !11
  br label %62

62:                                               ; preds = %59, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %63 = load i32, ptr %31, align 4, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %28, i64 8
  %65 = load i32, ptr %64, align 4, !tbaa !5
  invoke void @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEEN4EdgeC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %4, i32 noundef %63, i32 noundef %65)
          to label %66 unwind label %45

66:                                               ; preds = %62
  %67 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEEixERSH_(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 4 dereferenceable(8) %4)
          to label %68 unwind label %47

68:                                               ; preds = %66
  %69 = load i32, ptr %67, align 4, !tbaa !9
  %70 = icmp ult i32 %69, 2
  br i1 %70, label %82, label %71

71:                                               ; preds = %68
  %72 = load i32, ptr %29, align 4, !tbaa !11
  %73 = and i32 %72, 64
  %74 = icmp eq i32 %73, 0
  br i1 %74, label %79, label %75

75:                                               ; preds = %71
  %76 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10, i32 noundef 284)
          to label %77 unwind label %57

77:                                               ; preds = %75
  br i1 %76, label %78, label %79

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

79:                                               ; preds = %78, %77, %71
  %80 = load i32, ptr %29, align 4, !tbaa !11
  %81 = or i32 %80, 64
  store i32 %81, ptr %29, align 4, !tbaa !11
  br label %87

82:                                               ; preds = %68
  %83 = getelementptr inbounds i8, ptr %67, i64 4
  %84 = zext nneg i32 %69 to i64
  %85 = getelementptr inbounds [2 x i32], ptr %83, i64 0, i64 %84
  store i32 %.0104133, ptr %85, align 4, !tbaa !5
  %86 = add nuw nsw i32 %69, 1
  store i32 %86, ptr %67, align 4, !tbaa !9
  br label %87

87:                                               ; preds = %82, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %88 = load i32, ptr %64, align 4, !tbaa !5
  %89 = load i32, ptr %28, align 4, !tbaa !5
  invoke void @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEEN4EdgeC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %4, i32 noundef %88, i32 noundef %89)
          to label %90 unwind label %45

90:                                               ; preds = %87
  %91 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEEixERSH_(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 4 dereferenceable(8) %4)
          to label %92 unwind label %47

92:                                               ; preds = %90
  %93 = load i32, ptr %91, align 4, !tbaa !9
  %94 = icmp ult i32 %93, 2
  br i1 %94, label %106, label %95

95:                                               ; preds = %92
  %96 = load i32, ptr %29, align 4, !tbaa !11
  %97 = and i32 %96, 128
  %98 = icmp eq i32 %97, 0
  br i1 %98, label %103, label %99

99:                                               ; preds = %95
  %100 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10, i32 noundef 284)
          to label %101 unwind label %57

101:                                              ; preds = %99
  br i1 %100, label %102, label %103

102:                                              ; preds = %101
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #6, !srcloc !14
  br label %103

103:                                              ; preds = %102, %101, %95
  %104 = load i32, ptr %29, align 4, !tbaa !11
  %105 = or i32 %104, 128
  store i32 %105, ptr %29, align 4, !tbaa !11
  br label %111

106:                                              ; preds = %92
  %107 = getelementptr inbounds i8, ptr %91, i64 4
  %108 = zext nneg i32 %93 to i64
  %109 = getelementptr inbounds [2 x i32], ptr %107, i64 0, i64 %108
  store i32 %.0104133, ptr %109, align 4, !tbaa !5
  %110 = add nuw nsw i32 %93, 1
  store i32 %110, ptr %91, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %106, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %112 = add i32 %.0104133, 1
  %113 = zext i32 %112 to i64
  %114 = call noundef i64 @_ZNK3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %115 = icmp ugt i64 %114, %113
  br i1 %115, label %.lr.ph, label %._crit_edge, !llvm.loop !15

116:                                              ; preds = %47, %57, %45
  %.pn126.pn = phi { ptr, i32 } [ %46, %45 ], [ %58, %57 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %272

._crit_edge140:                                   ; preds = %._crit_edge137, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #6
  ret void

117:                                              ; preds = %.lr.ph139, %._crit_edge137
  %118 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKZN3JPH9MeshShape16sFindActiveEdgesERKNS2_17MeshShapeSettingsERNS2_5ArrayINS2_15IndexedTriangleENS2_12STLAllocatorIS8_EEEEE4EdgeZNS3_16sFindActiveEdgesES6_SC_E15TriangleIndicesELb0ELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  %119 = getelementptr inbounds i8, ptr %118, i64 8
  %120 = load i32, ptr %119, align 4, !tbaa !17
  switch i32 %120, label %240 [
    i32 1, label %.lr.ph136
    i32 2, label %121
  ]

121:                                              ; preds = %117
  %122 = getelementptr inbounds i8, ptr %118, i64 12
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = zext i32 %123 to i64
  %125 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %124)
          to label %126 unwind label %209

126:                                              ; preds = %121
  %127 = getelementptr inbounds i8, ptr %118, i64 16
  %128 = load i32, ptr %127, align 4, !tbaa !5
  %129 = zext i32 %128 to i64
  %130 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %129)
          to label %131 unwind label %211

131:                                              ; preds = %126
  %132 = invoke noundef i32 @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEENK4Edge18GetIndexInTriangleERKS5_(ptr noundef nonnull align 4 dereferenceable(8) %118, ptr noundef nonnull align 4 dereferenceable(16) %125)
          to label %133 unwind label %213

133:                                              ; preds = %131
  %134 = invoke noundef i32 @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEENK4Edge18GetIndexInTriangleERKS5_(ptr noundef nonnull align 4 dereferenceable(8) %118, ptr noundef nonnull align 4 dereferenceable(16) %130)
          to label %135 unwind label %215

135:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  %136 = zext i32 %132 to i64
  %137 = getelementptr inbounds [3 x i32], ptr %125, i64 0, i64 %136
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = zext i32 %138 to i64
  %140 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %139)
          to label %141 unwind label %217

141:                                              ; preds = %135
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(12) %140)
          to label %142 unwind label %217

142:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  %143 = add i32 %132, 1
  %144 = urem i32 %143, 3
  %145 = zext nneg i32 %144 to i64
  %146 = getelementptr inbounds [3 x i32], ptr %125, i64 0, i64 %145
  %147 = load i32, ptr %146, align 4, !tbaa !5
  %148 = zext i32 %147 to i64
  %149 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %148)
          to label %150 unwind label %219

150:                                              ; preds = %142
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(12) %149)
          to label %151 unwind label %219

151:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  %152 = add i32 %132, 2
  %153 = urem i32 %152, 3
  %154 = zext nneg i32 %153 to i64
  %155 = getelementptr inbounds [3 x i32], ptr %125, i64 0, i64 %154
  %156 = load i32, ptr %155, align 4, !tbaa !5
  %157 = zext i32 %156 to i64
  %158 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %157)
          to label %159 unwind label %221

159:                                              ; preds = %151
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(12) %158)
          to label %160 unwind label %221

160:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  %.sroa.025.0.copyload = load double, ptr %7, align 16
  %.sroa.226.0.copyload = load double, ptr %.sroa.226.0..sroa_idx, align 8, !tbaa !20
  %.sroa.023.0.copyload = load double, ptr %8, align 16
  %.sroa.224.0.copyload = load double, ptr %.sroa.224.0..sroa_idx, align 8, !tbaa !20
  %.sroa.021.0.copyload = load double, ptr %9, align 16
  %.sroa.222.0.copyload = load double, ptr %.sroa.222.0..sroa_idx, align 8, !tbaa !20
  %161 = invoke { double, double } @_ZN3JPH5Plane14sFromPointsCCWENS_4Vec3ES1_S1_(double %.sroa.025.0.copyload, double %.sroa.226.0.copyload, double %.sroa.023.0.copyload, double %.sroa.224.0.copyload, double %.sroa.021.0.copyload, double %.sroa.222.0.copyload)
          to label %162 unwind label %223

162:                                              ; preds = %160
  %163 = extractvalue { double, double } %161, 0
  store double %163, ptr %10, align 16
  %164 = extractvalue { double, double } %161, 1
  store double %164, ptr %22, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  %165 = zext i32 %134 to i64
  %166 = getelementptr inbounds [3 x i32], ptr %130, i64 0, i64 %165
  %167 = load i32, ptr %166, align 4, !tbaa !5
  %168 = zext i32 %167 to i64
  %169 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %168)
          to label %170 unwind label %225

170:                                              ; preds = %162
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(12) %169)
          to label %171 unwind label %225

171:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  %172 = add i32 %134, 1
  %173 = urem i32 %172, 3
  %174 = zext nneg i32 %173 to i64
  %175 = getelementptr inbounds [3 x i32], ptr %130, i64 0, i64 %174
  %176 = load i32, ptr %175, align 4, !tbaa !5
  %177 = zext i32 %176 to i64
  %178 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %177)
          to label %179 unwind label %227

179:                                              ; preds = %171
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(12) %178)
          to label %180 unwind label %227

180:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  %181 = add i32 %134, 2
  %182 = urem i32 %181, 3
  %183 = zext nneg i32 %182 to i64
  %184 = getelementptr inbounds [3 x i32], ptr %130, i64 0, i64 %183
  %185 = load i32, ptr %184, align 4, !tbaa !5
  %186 = zext i32 %185 to i64
  %187 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %186)
          to label %188 unwind label %229

188:                                              ; preds = %180
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(12) %187)
          to label %189 unwind label %229

189:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  %.sroa.019.0.copyload = load double, ptr %11, align 16
  %.sroa.220.0.copyload = load double, ptr %.sroa.220.0..sroa_idx, align 8, !tbaa !20
  %.sroa.017.0.copyload = load double, ptr %12, align 16
  %.sroa.218.0.copyload = load double, ptr %.sroa.218.0..sroa_idx, align 8, !tbaa !20
  %.sroa.015.0.copyload = load double, ptr %13, align 16
  %.sroa.216.0.copyload = load double, ptr %.sroa.216.0..sroa_idx, align 8, !tbaa !20
  %190 = invoke { double, double } @_ZN3JPH5Plane14sFromPointsCCWENS_4Vec3ES1_S1_(double %.sroa.019.0.copyload, double %.sroa.220.0.copyload, double %.sroa.017.0.copyload, double %.sroa.218.0.copyload, double %.sroa.015.0.copyload, double %.sroa.216.0.copyload)
          to label %191 unwind label %231

191:                                              ; preds = %189
  %192 = extractvalue { double, double } %190, 0
  store double %192, ptr %14, align 16
  %193 = extractvalue { double, double } %190, 1
  store double %193, ptr %23, align 8
  %194 = invoke { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %10)
          to label %195 unwind label %231

195:                                              ; preds = %191
  %196 = extractvalue { double, double } %194, 0
  %197 = extractvalue { double, double } %194, 1
  %198 = invoke { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %14)
          to label %199 unwind label %231

199:                                              ; preds = %195
  %.sroa.0.0.copyload = load double, ptr %7, align 16
  %.sroa.2.0.copyload = load double, ptr %.sroa.226.0..sroa_idx, align 8, !tbaa !20
  %200 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %8, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
          to label %201 unwind label %231

201:                                              ; preds = %199
  %202 = extractvalue { double, double } %198, 1
  %203 = extractvalue { double, double } %198, 0
  %204 = extractvalue { double, double } %200, 0
  %205 = extractvalue { double, double } %200, 1
  %206 = load float, ptr %24, align 4, !tbaa !21
  %207 = invoke noundef zeroext i1 @_ZN3JPH11ActiveEdgesL12IsEdgeActiveENS_4Vec3ES1_S1_f(double %196, double %197, double %203, double %202, double %204, double %205, float noundef %206)
          to label %208 unwind label %231

208:                                              ; preds = %201
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br i1 %207, label %.lr.ph136, label %._crit_edge137

209:                                              ; preds = %121
  %210 = landingpad { ptr, i32 }
          cleanup
  br label %271

211:                                              ; preds = %126
  %212 = landingpad { ptr, i32 }
          cleanup
  br label %271

213:                                              ; preds = %131
  %214 = landingpad { ptr, i32 }
          cleanup
  br label %271

215:                                              ; preds = %133
  %216 = landingpad { ptr, i32 }
          cleanup
  br label %271

217:                                              ; preds = %141, %135
  %218 = landingpad { ptr, i32 }
          cleanup
  br label %239

219:                                              ; preds = %150, %142
  %220 = landingpad { ptr, i32 }
          cleanup
  br label %238

221:                                              ; preds = %159, %151
  %222 = landingpad { ptr, i32 }
          cleanup
  br label %237

223:                                              ; preds = %160
  %224 = landingpad { ptr, i32 }
          cleanup
  br label %236

225:                                              ; preds = %170, %162
  %226 = landingpad { ptr, i32 }
          cleanup
  br label %235

227:                                              ; preds = %179, %171
  %228 = landingpad { ptr, i32 }
          cleanup
  br label %234

229:                                              ; preds = %188, %180
  %230 = landingpad { ptr, i32 }
          cleanup
  br label %233

231:                                              ; preds = %201, %199, %195, %191, %189
  %232 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  br label %233

233:                                              ; preds = %231, %229
  %.pn = phi { ptr, i32 } [ %232, %231 ], [ %230, %229 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  br label %234

234:                                              ; preds = %233, %227
  %.pn.pn = phi { ptr, i32 } [ %.pn, %233 ], [ %228, %227 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  br label %235

235:                                              ; preds = %234, %225
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %234 ], [ %226, %225 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  br label %236

236:                                              ; preds = %235, %223
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %235 ], [ %224, %223 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  br label %237

237:                                              ; preds = %236, %221
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %236 ], [ %222, %221 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  br label %238

238:                                              ; preds = %237, %219
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %237 ], [ %220, %219 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  br label %239

239:                                              ; preds = %238, %217
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %238 ], [ %218, %217 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br label %271

240:                                              ; preds = %117
  br label %.lr.ph136

.lr.ph136:                                        ; preds = %208, %240, %117
  %.0107.ph = phi i64 [ 1, %117 ], [ 2, %240 ], [ 2, %208 ]
  %241 = getelementptr inbounds i8, ptr %118, i64 12
  br label %244

._crit_edge137:                                   ; preds = %268, %208
  %242 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKZN3JPH9MeshShape16sFindActiveEdgesERKNS2_17MeshShapeSettingsERNS2_5ArrayINS2_15IndexedTriangleENS2_12STLAllocatorIS8_EEEEE4EdgeZNS3_16sFindActiveEdgesES6_SC_E15TriangleIndicesELb0ELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  %243 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKZN3JPH9MeshShape16sFindActiveEdgesERKNS2_17MeshShapeSettingsERNS2_5ArrayINS2_15IndexedTriangleENS2_12STLAllocatorIS8_EEEEE4EdgeZNS3_16sFindActiveEdgesES6_SC_E15TriangleIndicesELb1EEESJ_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br i1 %243, label %117, label %._crit_edge140

244:                                              ; preds = %.lr.ph136, %268
  %indvars.iv = phi i64 [ 0, %.lr.ph136 ], [ %indvars.iv.next, %268 ]
  %245 = getelementptr inbounds [2 x i32], ptr %241, i64 0, i64 %indvars.iv
  %246 = load i32, ptr %245, align 4, !tbaa !5
  %247 = zext i32 %246 to i64
  %248 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %247)
          to label %249 unwind label %262

249:                                              ; preds = %244
  %250 = invoke noundef i32 @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEENK4Edge18GetIndexInTriangleERKS5_(ptr noundef nonnull align 4 dereferenceable(8) %118, ptr noundef nonnull align 4 dereferenceable(16) %248)
          to label %251 unwind label %264

251:                                              ; preds = %249
  %252 = add i32 %250, 5
  %253 = shl nuw i32 1, %252
  %254 = getelementptr inbounds i8, ptr %248, i64 12
  %255 = load i32, ptr %254, align 4, !tbaa !11
  %256 = and i32 %255, %253
  %257 = icmp eq i32 %256, 0
  br i1 %257, label %268, label %258

258:                                              ; preds = %251
  %259 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10, i32 noundef 337)
          to label %260 unwind label %266

260:                                              ; preds = %258
  br i1 %259, label %261, label %268

261:                                              ; preds = %260
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #6, !srcloc !36
  br label %268

262:                                              ; preds = %244
  %263 = landingpad { ptr, i32 }
          cleanup
  br label %271

264:                                              ; preds = %249
  %265 = landingpad { ptr, i32 }
          cleanup
  br label %271

266:                                              ; preds = %258
  %267 = landingpad { ptr, i32 }
          cleanup
  br label %271

268:                                              ; preds = %261, %260, %251
  %269 = load i32, ptr %254, align 4, !tbaa !11
  %270 = or i32 %269, %253
  store i32 %270, ptr %254, align 4, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %.0107.ph
  br i1 %exitcond.not, label %._crit_edge137, label %244, !llvm.loop !37

271:                                              ; preds = %262, %266, %264, %209, %213, %239, %215, %211
  %.pn122.pn.pn = phi { ptr, i32 } [ %210, %209 ], [ %212, %211 ], [ %214, %213 ], [ %.pn.pn.pn.pn.pn.pn.pn, %239 ], [ %216, %215 ], [ %263, %262 ], [ %267, %266 ], [ %265, %264 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %272

272:                                              ; preds = %33, %116, %271, %25
  %.pn126.pn.pn.pn = phi { ptr, i32 } [ %.pn122.pn.pn, %271 ], [ %26, %25 ], [ %.pn126.pn, %116 ], [ %34, %33 ]
  call void @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn126.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEEN4EdgeC2Eii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEEixERSH_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKZN3JPH9MeshShape16sFindActiveEdgesERKNS2_17MeshShapeSettingsERNS2_5ArrayINS2_15IndexedTriangleENS2_12STLAllocatorIS8_EEEEE4EdgeZNS3_16sFindActiveEdgesES6_SC_E15TriangleIndicesELb1EEESJ_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKZN3JPH9MeshShape16sFindActiveEdgesERKNS2_17MeshShapeSettingsERNS2_5ArrayINS2_15IndexedTriangleENS2_12STLAllocatorIS8_EEEEE4EdgeZNS3_16sFindActiveEdgesES6_SC_E15TriangleIndicesELb0ELb1EEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEENK4Edge18GetIndexInTriangleERKS5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH5Plane14sFromPointsCCWENS_4Vec3ES1_S1_(double, double, double, double, double, double) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN3JPH11ActiveEdgesL12IsEdgeActiveENS_4Vec3ES1_S1_f(double, double, double, double, double, double, float noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKZN3JPH9MeshShape16sFindActiveEdgesERKNS2_17MeshShapeSettingsERNS2_5ArrayINS2_15IndexedTriangleENS2_12STLAllocatorIS8_EEEEE4EdgeZNS3_16sFindActiveEdgesES6_SC_E15TriangleIndicesELb0ELb1EEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZNSt13unordered_mapIZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesZNS1_16sFindActiveEdgesES4_SA_E8EdgeHashSt8equal_toISB_ENS7_ISt4pairIKSB_SC_EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1 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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!10, !6, i64 0}
!10 = !{!"_ZTSZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEE15TriangleIndices", !6, i64 0, !7, i64 4}
!11 = !{!12, !6, i64 12}
!12 = !{!"_ZTSN3JPH15IndexedTriangleE", !13, i64 0, !6, i64 12}
!13 = !{!"_ZTSN3JPH25IndexedTriangleNoMaterialE", !7, i64 0}
!14 = !{i64 2158603708}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !6, i64 8}
!18 = !{!"_ZTSSt4pairIKZN3JPH9MeshShape16sFindActiveEdgesERKNS0_17MeshShapeSettingsERNS0_5ArrayINS0_15IndexedTriangleENS0_12STLAllocatorIS6_EEEEE4EdgeZNS1_16sFindActiveEdgesES4_SA_E15TriangleIndicesE", !19, i64 0, !10, i64 8}
!19 = !{!"_ZTSZN3JPH9MeshShape16sFindActiveEdgesERKNS_17MeshShapeSettingsERNS_5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS5_EEEEE4Edge", !6, i64 0, !6, i64 4}
!20 = !{!7, !7, i64 0}
!21 = !{!22, !35, i64 140}
!22 = !{!"_ZTSN3JPH17MeshShapeSettingsE", !23, i64 0, !31, i64 64, !33, i64 88, !34, i64 112, !6, i64 136, !35, i64 140}
!23 = !{!"_ZTSN3JPH13ShapeSettingsE", !24, i64 0, !25, i64 8, !28, i64 16, !29, i64 24}
!24 = !{!"_ZTSN3JPH18SerializableObjectE"}
!25 = !{!"_ZTSN3JPH9RefTargetINS_13ShapeSettingsEEE", !26, i64 0}
!26 = !{!"_ZTSSt6atomicIjE", !27, i64 0}
!27 = !{!"_ZTSSt13__atomic_baseIjE", !6, i64 0}
!28 = !{!"long", !7, i64 0}
!29 = !{!"_ZTSN3JPH6ResultINS_3RefINS_5ShapeEEEEE", !7, i64 0, !30, i64 32}
!30 = !{!"_ZTSN3JPH6ResultINS_3RefINS_5ShapeEEEE6EStateE", !7, i64 0}
!31 = !{!"_ZTSN3JPH5ArrayINS_6Float3ENS_12STLAllocatorIS1_EEEE", !28, i64 0, !28, i64 8, !32, i64 16}
!32 = !{!"any pointer", !7, i64 0}
!33 = !{!"_ZTSN3JPH5ArrayINS_15IndexedTriangleENS_12STLAllocatorIS1_EEEE", !28, i64 0, !28, i64 8, !32, i64 16}
!34 = !{!"_ZTSN3JPH5ArrayINS_8RefConstINS_15PhysicsMaterialEEENS_12STLAllocatorIS3_EEEE", !28, i64 0, !28, i64 8, !32, i64 16}
!35 = !{!"float", !7, i64 0}
!36 = !{i64 2158604092}
!37 = distinct !{!37, !16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass