; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Character (CharacterVirtual)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator" = type { %"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::IteratorBase.base" = type <{ ptr, i32 }>
%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::CharacterVirtual" = type <{ %"class.JPH::CharacterBase", %"class.JPH::CharacterID", [4 x i8], ptr, ptr, i8, [3 x i8], float, i32, i32, float, float, float, i32, float, float, i8, [3 x i8], float, float, [4 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Array.2", i32, [4 x i8], %"class.JPH::UnorderedMap", float, i8, [3 x i8], i64, %"class.JPH::BodyID", [12 x i8] }>
%"class.JPH::CharacterBase" = type { ptr, %"class.JPH::RefTarget", ptr, %"class.JPH::RefConst", %"class.JPH::Vec3", %"class.JPH::Plane", float, i32, %"class.JPH::BodyID", %"class.JPH::SubShapeID", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::RefConst.1", i64 }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.0 }
%union.anon.0 = type { <4 x float> }
%"class.JPH::SubShapeID" = type { i32 }
%"class.JPH::RefConst.1" = type { ptr }
%"class.JPH::CharacterID" = type { i32 }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Array.2" = type { i64, i64, ptr }
%"class.JPH::UnorderedMap" = type { %"class.JPH::HashTable.base", [4 x i8] }
%"class.JPH::HashTable.base" = type <{ ptr, ptr, i32, i32, i32 }>
%"class.JPH::BodyID" = type { i32 }
%"struct.std::pair" = type { %"class.JPH::CharacterVirtual::ContactKey", %"struct.JPH::CharacterVirtual::ListenerContactValue" }
%"class.JPH::CharacterVirtual::ContactKey" = type { %"class.JPH::BodyID", %"class.JPH::CharacterID", %"class.JPH::SubShapeID" }
%"struct.JPH::CharacterVirtual::ListenerContactValue" = type { %"class.JPH::CharacterContactSettings", i32 }
%"class.JPH::CharacterContactSettings" = type { i8, i8 }
%"struct.JPH::CharacterVirtual::Contact" = type <{ %"class.JPH::CharacterVirtual::ContactKey", [4 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, i8, i8, [6 x i8], ptr, i64, ptr, i8, i8, i8, [5 x i8] }>

@.str.1 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [30 x i8], align 1

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH16CharacterVirtual28FinishTrackingContactChangesEv(ptr noundef nonnull align 16 dereferenceable(372) %0) #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %"struct.JPH::AssertLastParam", align 1
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca %"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator", align 8
  %8 = alloca %"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator", align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator", align 8
  %15 = alloca %"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator", align 8
  %16 = alloca %"struct.JPH::AssertLastParam", align 1
  %17 = alloca %"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator", align 8
  %18 = alloca %"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator", align 8
  %19 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %20 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  %21 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %20, i32 0, i32 26
  %22 = load i32, ptr %21, align 8, !tbaa !9
  %23 = add nsw i32 %22, -1
  store i32 %23, ptr %21, align 8, !tbaa !9
  store i32 %23, ptr %3, align 4, !tbaa !33
  br label %24

24:                                               ; preds = %1
  %25 = load i32, ptr %3, align 4, !tbaa !33
  %26 = icmp sge i32 %25, 0
  br i1 %26, label %30, label %27

27:                                               ; preds = %24
  %28 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jS1_NS_15AssertLastParamE(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 1347, ptr noundef @.str.5)
  br i1 %28, label %29, label %30

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

30:                                               ; preds = %29, %27, %24
  br label %31

31:                                               ; preds = %30
  br label %32

32:                                               ; preds = %31
  %33 = load i32, ptr %3, align 4, !tbaa !33
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %32
  store i32 1, ptr %5, align 4
  br label %137

36:                                               ; preds = %32
  %37 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %20, i32 0, i32 3
  %38 = load ptr, ptr %37, align 8, !tbaa !35
  %39 = icmp eq ptr %38, null
  br i1 %39, label %40, label %41

40:                                               ; preds = %36
  store i32 1, ptr %5, align 4
  br label %137

41:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %42 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %20, i32 0, i32 28
  store ptr %42, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #5
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE5beginEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator") align 8 %7, ptr noundef nonnull align 8 dereferenceable(28) %43)
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE3endEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator") align 8 %8, ptr noundef nonnull align 8 dereferenceable(28) %44)
  br label %45

45:                                               ; preds = %53, %41
  %46 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE12IteratorBaseISC_NSC_8iteratorEEneERKSE_(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef nonnull align 8 dereferenceable(12) %8)
  br i1 %46, label %48, label %47

47:                                               ; preds = %45
  store i32 4, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %55

48:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %49 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %7)
  store ptr %49, ptr %9, align 8, !tbaa !5
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.std::pair", ptr %50, i32 0, i32 1
  %52 = getelementptr inbounds %"struct.JPH::CharacterVirtual::ListenerContactValue", ptr %51, i32 0, i32 1
  store i32 0, ptr %52, align 4, !tbaa !36
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %53

53:                                               ; preds = %48
  %54 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE12IteratorBaseISC_NSC_8iteratorEEppEv(ptr noundef nonnull align 8 dereferenceable(12) %7)
  br label %45

55:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %56 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %20, i32 0, i32 25
  store ptr %56, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = call noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %57)
  store ptr %58, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = call noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %59)
  store ptr %60, ptr %12, align 8, !tbaa !5
  br label %61

61:                                               ; preds = %90, %55
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = icmp ne ptr %62, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %61
  store i32 6, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %93

66:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %67, ptr %13, align 8, !tbaa !5
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.JPH::CharacterVirtual::Contact", ptr %68, i32 0, i32 14
  %70 = load i8, ptr %69, align 8, !tbaa !41, !range !44, !noundef !45
  %71 = trunc i8 %70 to i1
  br i1 %71, label %72, label %89

72:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  %73 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %20, i32 0, i32 28
  %74 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN3JPH12UnorderedMapINS_16CharacterVirtual10ContactKeyENS1_20ListenerContactValueENS_4HashIS2_EESt8equal_toIS2_EE4findERKS2_(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator") align 8 %14, ptr noundef nonnull align 8 dereferenceable(28) %73, ptr noundef nonnull align 4 dereferenceable(12) %74)
  br label %75

75:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  %76 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %20, i32 0, i32 28
  call void @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE3endEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator") align 8 %15, ptr noundef nonnull align 8 dereferenceable(28) %76)
  %77 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE12IteratorBaseISC_NSC_8iteratorEEneERKSE_(ptr noundef nonnull align 8 dereferenceable(12) %14, ptr noundef nonnull align 8 dereferenceable(12) %15)
  br i1 %77, label %80, label %78

78:                                               ; preds = %75
  %79 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 1365)
  br label %80

80:                                               ; preds = %78, %75
  %81 = phi i1 [ false, %75 ], [ %79, %78 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  br i1 %81, label %82, label %83

82:                                               ; preds = %80
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #5, !srcloc !46
  br label %83

83:                                               ; preds = %82, %80
  br label %84

84:                                               ; preds = %83
  br label %85

85:                                               ; preds = %84
  %86 = call noundef ptr @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12) %14)
  %87 = getelementptr inbounds %"struct.std::pair", ptr %86, i32 0, i32 1
  %88 = getelementptr inbounds %"struct.JPH::CharacterVirtual::ListenerContactValue", ptr %87, i32 0, i32 1
  store i32 1, ptr %88, align 4, !tbaa !36
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  br label %89

89:                                               ; preds = %85, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %90

90:                                               ; preds = %89
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.JPH::CharacterVirtual::Contact", ptr %91, i32 1
  store ptr %92, ptr %11, align 8, !tbaa !5
  br label %61

93:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  %94 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %20, i32 0, i32 28
  call void @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE5beginEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator") align 8 %17, ptr noundef nonnull align 8 dereferenceable(28) %94)
  br label %95

95:                                               ; preds = %133, %93
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  %96 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %20, i32 0, i32 28
  call void @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE3endEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator") align 8 %18, ptr noundef nonnull align 8 dereferenceable(28) %96)
  %97 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE12IteratorBaseISC_NSC_8iteratorEEneERKSE_(ptr noundef nonnull align 8 dereferenceable(12) %17, ptr noundef nonnull align 8 dereferenceable(12) %18)
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  br i1 %97, label %99, label %98

98:                                               ; preds = %95
  store i32 10, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  br label %135

99:                                               ; preds = %95
  %100 = call noundef ptr @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12) %17)
  %101 = getelementptr inbounds %"struct.std::pair", ptr %100, i32 0, i32 1
  %102 = getelementptr inbounds %"struct.JPH::CharacterVirtual::ListenerContactValue", ptr %101, i32 0, i32 1
  %103 = load i32, ptr %102, align 4, !tbaa !36
  %104 = icmp eq i32 %103, 0
  br i1 %104, label %105, label %132

105:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %106 = call noundef ptr @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12) %17)
  %107 = getelementptr inbounds %"struct.std::pair", ptr %106, i32 0, i32 0
  store ptr %107, ptr %19, align 8, !tbaa !5
  %108 = load ptr, ptr %19, align 8, !tbaa !5
  %109 = getelementptr inbounds %"class.JPH::CharacterVirtual::ContactKey", ptr %108, i32 0, i32 1
  %110 = call noundef zeroext i1 @_ZNK3JPH11CharacterID9IsInvalidEv(ptr noundef nonnull align 4 dereferenceable(4) %109)
  br i1 %110, label %121, label %111

111:                                              ; preds = %105
  %112 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %20, i32 0, i32 3
  %113 = load ptr, ptr %112, align 8, !tbaa !35
  %114 = load ptr, ptr %19, align 8, !tbaa !5
  %115 = getelementptr inbounds %"class.JPH::CharacterVirtual::ContactKey", ptr %114, i32 0, i32 1
  %116 = load ptr, ptr %19, align 8, !tbaa !5
  %117 = getelementptr inbounds %"class.JPH::CharacterVirtual::ContactKey", ptr %116, i32 0, i32 2
  %118 = load ptr, ptr %113, align 8, !tbaa !47
  %119 = getelementptr inbounds ptr, ptr %118, i64 10
  %120 = load ptr, ptr %119, align 8
  call void %120(ptr noundef nonnull align 8 dereferenceable(8) %113, ptr noundef %20, ptr noundef nonnull align 4 dereferenceable(4) %115, ptr noundef nonnull align 4 dereferenceable(4) %117)
  br label %131

121:                                              ; preds = %105
  %122 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %20, i32 0, i32 3
  %123 = load ptr, ptr %122, align 8, !tbaa !35
  %124 = load ptr, ptr %19, align 8, !tbaa !5
  %125 = getelementptr inbounds %"class.JPH::CharacterVirtual::ContactKey", ptr %124, i32 0, i32 0
  %126 = load ptr, ptr %19, align 8, !tbaa !5
  %127 = getelementptr inbounds %"class.JPH::CharacterVirtual::ContactKey", ptr %126, i32 0, i32 2
  %128 = load ptr, ptr %123, align 8, !tbaa !47
  %129 = getelementptr inbounds ptr, ptr %128, i64 7
  %130 = load ptr, ptr %129, align 8
  call void %130(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef %20, ptr noundef nonnull align 4 dereferenceable(4) %125, ptr noundef nonnull align 4 dereferenceable(4) %127)
  br label %131

131:                                              ; preds = %121, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %132

132:                                              ; preds = %131, %99
  br label %133

133:                                              ; preds = %132
  %134 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE12IteratorBaseISC_NSC_8iteratorEEppEv(ptr noundef nonnull align 8 dereferenceable(12) %17)
  br label %95, !llvm.loop !49

135:                                              ; preds = %98
  %136 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %20, i32 0, i32 28
  call void @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE18ClearAndKeepMemoryEv(ptr noundef nonnull align 8 dereferenceable(28) %136)
  store i32 0, ptr %5, align 4
  br label %137

137:                                              ; preds = %135, %40, %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  %138 = load i32, ptr %5, align 4
  switch i32 %138, label %140 [
    i32 0, label %139
    i32 1, label %139
  ]

139:                                              ; preds = %137, %137
  ret void

140:                                              ; preds = %137
  unreachable
}

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !15, i64 312}
!10 = !{!"_ZTSN3JPH16CharacterVirtualE", !11, i64 0, !26, i64 144, !6, i64 152, !6, i64 160, !27, i64 168, !20, i64 172, !15, i64 176, !15, i64 180, !20, i64 184, !20, i64 188, !20, i64 192, !15, i64 196, !20, i64 200, !20, i64 204, !28, i64 208, !20, i64 212, !20, i64 216, !17, i64 224, !17, i64 240, !29, i64 256, !17, i64 272, !30, i64 288, !15, i64 312, !31, i64 320, !20, i64 352, !28, i64 356, !25, i64 360, !22, i64 368}
!11 = !{!"_ZTSN3JPH13CharacterBaseE", !12, i64 8, !6, i64 16, !16, i64 24, !17, i64 32, !18, i64 48, !20, i64 64, !21, i64 68, !22, i64 72, !23, i64 76, !17, i64 80, !17, i64 96, !17, i64 112, !24, i64 128, !25, i64 136}
!12 = !{!"_ZTSN3JPH9RefTargetINS_13CharacterBaseEEE", !13, i64 0}
!13 = !{!"_ZTSSt6atomicIjE", !14, i64 0}
!14 = !{!"_ZTSSt13__atomic_baseIjE", !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !6, i64 0}
!17 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!18 = !{!"_ZTSN3JPH5PlaneE", !19, i64 0}
!19 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!20 = !{!"float", !7, i64 0}
!21 = !{!"_ZTSN3JPH13CharacterBase12EGroundStateE", !7, i64 0}
!22 = !{!"_ZTSN3JPH6BodyIDE", !15, i64 0}
!23 = !{!"_ZTSN3JPH10SubShapeIDE", !15, i64 0}
!24 = !{!"_ZTSN3JPH8RefConstINS_15PhysicsMaterialEEE", !6, i64 0}
!25 = !{!"long", !7, i64 0}
!26 = !{!"_ZTSN3JPH11CharacterIDE", !15, i64 0}
!27 = !{!"_ZTSN3JPH13EBackFaceModeE", !7, i64 0}
!28 = !{!"bool", !7, i64 0}
!29 = !{!"_ZTSN3JPH4QuatE", !19, i64 0}
!30 = !{!"_ZTSN3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEEE", !25, i64 0, !25, i64 8, !6, i64 16}
!31 = !{!"_ZTSN3JPH12UnorderedMapINS_16CharacterVirtual10ContactKeyENS1_20ListenerContactValueENS_4HashIS2_EESt8equal_toIS2_EEE", !32, i64 0}
!32 = !{!"_ZTSN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EEE", !6, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !15, i64 24}
!33 = !{!15, !15, i64 0}
!34 = !{i64 2159830029}
!35 = !{!10, !6, i64 152}
!36 = !{!37, !15, i64 16}
!37 = !{!"_ZTSSt4pairIN3JPH16CharacterVirtual10ContactKeyENS1_20ListenerContactValueEE", !38, i64 0, !39, i64 12}
!38 = !{!"_ZTSN3JPH16CharacterVirtual10ContactKeyE", !22, i64 0, !26, i64 4, !23, i64 8}
!39 = !{!"_ZTSN3JPH16CharacterVirtual20ListenerContactValueE", !40, i64 0, !15, i64 4}
!40 = !{!"_ZTSN3JPH24CharacterContactSettingsE", !28, i64 0, !28, i64 1}
!41 = !{!42, !28, i64 120}
!42 = !{!"_ZTSN3JPH16CharacterVirtual7ContactE", !38, i64 0, !17, i64 16, !17, i64 32, !17, i64 48, !17, i64 64, !20, i64 80, !20, i64 84, !43, i64 88, !28, i64 89, !6, i64 96, !25, i64 104, !6, i64 112, !28, i64 120, !28, i64 121, !28, i64 122}
!43 = !{!"_ZTSN3JPH11EMotionTypeE", !7, i64 0}
!44 = !{i8 0, i8 2}
!45 = !{}
!46 = !{i64 2159830392}
!47 = !{!48, !48, i64 0}
!48 = !{!"vtable pointer", !8, i64 0}
!49 = distinct !{!49, !50}
!50 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator" = type { %"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::IteratorBase.base" = type <{ ptr, i32 }>

@.str.1 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [30 x i8], align 1

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH16CharacterVirtual28FinishTrackingContactChangesEv(ptr noundef nonnull align 16 dereferenceable(372) %0) local_unnamed_addr #3 align 2 {
  %2 = alloca %"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator", align 8
  %3 = alloca %"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator", align 8
  %4 = alloca %"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator", align 8
  %5 = alloca %"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator", align 8
  %6 = alloca %"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator", align 8
  %7 = alloca %"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator", align 8
  %8 = getelementptr inbounds i8, ptr %0, i64 312
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %10 = add nsw i32 %9, -1
  store i32 %10, ptr %8, align 8, !tbaa !5
  %11 = icmp sgt i32 %9, 0
  br i1 %11, label %15, label %12

12:                                               ; preds = %1
  %13 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jS1_NS_15AssertLastParamE(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 1347, ptr noundef nonnull @.str.5)
  br i1 %13, label %14, label %.thread

14:                                               ; preds = %12
  tail call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #5, !srcloc !32
  br label %.thread

15:                                               ; preds = %1
  %.not18 = icmp eq i32 %9, 1
  br i1 %.not18, label %.thread, label %58

.thread:                                          ; preds = %12, %14, %15
  %16 = getelementptr inbounds i8, ptr %0, i64 152
  %17 = load ptr, ptr %16, align 8, !tbaa !33
  %18 = icmp eq ptr %17, null
  br i1 %18, label %58, label %19

19:                                               ; preds = %.thread
  %20 = getelementptr inbounds i8, ptr %0, i64 320
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  call void @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator") align 8 %2, ptr noundef nonnull align 8 dereferenceable(28) %20)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  call void @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator") align 8 %3, ptr noundef nonnull align 8 dereferenceable(28) %20)
  %21 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE12IteratorBaseISC_NSC_8iteratorEEneERKSE_(ptr noundef nonnull align 8 dereferenceable(12) %2, ptr noundef nonnull align 8 dereferenceable(12) %3)
  br i1 %21, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %19
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  %22 = getelementptr inbounds i8, ptr %0, i64 288
  %23 = call noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %22)
  %24 = call noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %22)
  %.not19 = icmp eq ptr %23, %24
  br i1 %.not19, label %._crit_edge23, label %.lr.ph22

.lr.ph:                                           ; preds = %19, %.lr.ph
  %25 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %2)
  %26 = getelementptr inbounds i8, ptr %25, i64 16
  store i32 0, ptr %26, align 4, !tbaa !34
  %27 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE12IteratorBaseISC_NSC_8iteratorEEppEv(ptr noundef nonnull align 8 dereferenceable(12) %2)
  %28 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE12IteratorBaseISC_NSC_8iteratorEEneERKSE_(ptr noundef nonnull align 8 dereferenceable(12) %2, ptr noundef nonnull align 8 dereferenceable(12) %3)
  br i1 %28, label %.lr.ph, label %._crit_edge

._crit_edge23:                                    ; preds = %41, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  call void @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator") align 8 %6, ptr noundef nonnull align 8 dereferenceable(28) %20)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator") align 8 %7, ptr noundef nonnull align 8 dereferenceable(28) %20)
  %29 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE12IteratorBaseISC_NSC_8iteratorEEneERKSE_(ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef nonnull align 8 dereferenceable(12) %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  br i1 %29, label %.lr.ph25, label %._crit_edge26

.lr.ph22:                                         ; preds = %._crit_edge, %41
  %.020 = phi ptr [ %42, %41 ], [ %23, %._crit_edge ]
  %30 = getelementptr inbounds i8, ptr %.020, i64 120
  %31 = load i8, ptr %30, align 8, !tbaa !39, !range !42, !noundef !43
  %32 = trunc nuw i8 %31 to i1
  br i1 %32, label %33, label %41

33:                                               ; preds = %.lr.ph22
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @_ZN3JPH12UnorderedMapINS_16CharacterVirtual10ContactKeyENS1_20ListenerContactValueENS_4HashIS2_EESt8equal_toIS2_EE4findERKS2_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator") align 8 %4, ptr noundef nonnull align 8 dereferenceable(28) %20, ptr noundef nonnull align 4 dereferenceable(12) %.020)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  call void @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator") align 8 %5, ptr noundef nonnull align 8 dereferenceable(28) %20)
  %34 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE12IteratorBaseISC_NSC_8iteratorEEneERKSE_(ptr noundef nonnull align 8 dereferenceable(12) %4, ptr noundef nonnull align 8 dereferenceable(12) %5)
  br i1 %34, label %.critedge, label %35

35:                                               ; preds = %33
  %36 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 1365)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br i1 %36, label %37, label %38

37:                                               ; preds = %35
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #5, !srcloc !44
  br label %38

.critedge:                                        ; preds = %33
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %38

38:                                               ; preds = %.critedge, %37, %35
  %39 = call noundef ptr @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12) %4)
  %40 = getelementptr inbounds i8, ptr %39, i64 16
  store i32 1, ptr %40, align 4, !tbaa !34
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  br label %41

41:                                               ; preds = %38, %.lr.ph22
  %42 = getelementptr inbounds i8, ptr %.020, i64 128
  %.not = icmp eq ptr %42, %24
  br i1 %.not, label %._crit_edge23, label %.lr.ph22

._crit_edge26:                                    ; preds = %55, %._crit_edge23
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE18ClearAndKeepMemoryEv(ptr noundef nonnull align 8 dereferenceable(28) %20)
  br label %58

.lr.ph25:                                         ; preds = %._crit_edge23, %55
  %43 = call noundef ptr @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12) %6)
  %44 = getelementptr inbounds i8, ptr %43, i64 16
  %45 = load i32, ptr %44, align 4, !tbaa !34
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %.sink.split, label %55

.sink.split:                                      ; preds = %.lr.ph25
  %47 = call noundef ptr @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12) %6)
  %48 = getelementptr inbounds i8, ptr %47, i64 4
  %49 = call noundef zeroext i1 @_ZNK3JPH11CharacterID9IsInvalidEv(ptr noundef nonnull align 4 dereferenceable(4) %48)
  %50 = load ptr, ptr %16, align 8, !tbaa !33
  %51 = getelementptr inbounds i8, ptr %47, i64 8
  %52 = load ptr, ptr %50, align 8, !tbaa !45
  %. = select i1 %49, i64 56, i64 80
  %.30 = select i1 %49, ptr %47, ptr %48
  %53 = getelementptr inbounds i8, ptr %52, i64 %.
  %54 = load ptr, ptr %53, align 8
  call void %54(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull %0, ptr noundef nonnull align 4 dereferenceable(4) %.30, ptr noundef nonnull align 4 dereferenceable(4) %51)
  br label %55

55:                                               ; preds = %.sink.split, %.lr.ph25
  %56 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE12IteratorBaseISC_NSC_8iteratorEEppEv(ptr noundef nonnull align 8 dereferenceable(12) %6)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator") align 8 %7, ptr noundef nonnull align 8 dereferenceable(28) %20)
  %57 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE12IteratorBaseISC_NSC_8iteratorEEneERKSE_(ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef nonnull align 8 dereferenceable(12) %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  br i1 %57, label %.lr.ph25, label %._crit_edge26, !llvm.loop !47

58:                                               ; preds = %.thread, %15, %._crit_edge26
  ret void
}

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 312}
!6 = !{!"_ZTSN3JPH16CharacterVirtualE", !7, i64 0, !25, i64 144, !14, i64 152, !14, i64 160, !26, i64 168, !19, i64 172, !11, i64 176, !11, i64 180, !19, i64 184, !19, i64 188, !19, i64 192, !11, i64 196, !19, i64 200, !19, i64 204, !27, i64 208, !19, i64 212, !19, i64 216, !16, i64 224, !16, i64 240, !28, i64 256, !16, i64 272, !29, i64 288, !11, i64 312, !30, i64 320, !19, i64 352, !27, i64 356, !24, i64 360, !21, i64 368}
!7 = !{!"_ZTSN3JPH13CharacterBaseE", !8, i64 8, !14, i64 16, !15, i64 24, !16, i64 32, !17, i64 48, !19, i64 64, !20, i64 68, !21, i64 72, !22, i64 76, !16, i64 80, !16, i64 96, !16, i64 112, !23, i64 128, !24, i64 136}
!8 = !{!"_ZTSN3JPH9RefTargetINS_13CharacterBaseEEE", !9, i64 0}
!9 = !{!"_ZTSSt6atomicIjE", !10, i64 0}
!10 = !{!"_ZTSSt13__atomic_baseIjE", !11, i64 0}
!11 = !{!"int", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"any pointer", !12, i64 0}
!15 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !14, i64 0}
!16 = !{!"_ZTSN3JPH4Vec3E", !12, i64 0}
!17 = !{!"_ZTSN3JPH5PlaneE", !18, i64 0}
!18 = !{!"_ZTSN3JPH4Vec4E", !12, i64 0}
!19 = !{!"float", !12, i64 0}
!20 = !{!"_ZTSN3JPH13CharacterBase12EGroundStateE", !12, i64 0}
!21 = !{!"_ZTSN3JPH6BodyIDE", !11, i64 0}
!22 = !{!"_ZTSN3JPH10SubShapeIDE", !11, i64 0}
!23 = !{!"_ZTSN3JPH8RefConstINS_15PhysicsMaterialEEE", !14, i64 0}
!24 = !{!"long", !12, i64 0}
!25 = !{!"_ZTSN3JPH11CharacterIDE", !11, i64 0}
!26 = !{!"_ZTSN3JPH13EBackFaceModeE", !12, i64 0}
!27 = !{!"bool", !12, i64 0}
!28 = !{!"_ZTSN3JPH4QuatE", !18, i64 0}
!29 = !{!"_ZTSN3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEEE", !24, i64 0, !24, i64 8, !14, i64 16}
!30 = !{!"_ZTSN3JPH12UnorderedMapINS_16CharacterVirtual10ContactKeyENS1_20ListenerContactValueENS_4HashIS2_EESt8equal_toIS2_EEE", !31, i64 0}
!31 = !{!"_ZTSN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EEE", !14, i64 0, !14, i64 8, !11, i64 16, !11, i64 20, !11, i64 24}
!32 = !{i64 2159830029}
!33 = !{!6, !14, i64 152}
!34 = !{!35, !11, i64 16}
!35 = !{!"_ZTSSt4pairIN3JPH16CharacterVirtual10ContactKeyENS1_20ListenerContactValueEE", !36, i64 0, !37, i64 12}
!36 = !{!"_ZTSN3JPH16CharacterVirtual10ContactKeyE", !21, i64 0, !25, i64 4, !22, i64 8}
!37 = !{!"_ZTSN3JPH16CharacterVirtual20ListenerContactValueE", !38, i64 0, !11, i64 4}
!38 = !{!"_ZTSN3JPH24CharacterContactSettingsE", !27, i64 0, !27, i64 1}
!39 = !{!40, !27, i64 120}
!40 = !{!"_ZTSN3JPH16CharacterVirtual7ContactE", !36, i64 0, !16, i64 16, !16, i64 32, !16, i64 48, !16, i64 64, !19, i64 80, !19, i64 84, !41, i64 88, !27, i64 89, !14, i64 96, !24, i64 104, !14, i64 112, !27, i64 120, !27, i64 121, !27, i64 122}
!41 = !{!"_ZTSN3JPH11EMotionTypeE", !12, i64 0}
!42 = !{i8 0, i8 2}
!43 = !{}
!44 = !{i64 2159830392}
!45 = !{!46, !46, i64 0}
!46 = !{!"vtable pointer", !13, i64 0}
!47 = distinct !{!47, !48}
!48 = !{!"llvm.loop.mustprogress"}


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