; LLVM IR from Overload-Technologies/Overload :: Dependencies/assimp/code/Common (SceneCombiner)

; 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.__gnu_cxx::__normal_iterator.32" = type { ptr }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<Assimp::BoneWithHash, std::allocator<Assimp::BoneWithHash>>::_List_impl" }
%"struct.std::__cxx11::_List_base<Assimp::BoneWithHash, std::allocator<Assimp::BoneWithHash>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"struct.std::_List_const_iterator" = type { ptr }
%"struct.std::_List_iterator" = type { ptr }
%struct.aiString = type { i32, [1024 x i8] }
%"class.__gnu_cxx::__normal_iterator.46" = type { ptr }
%struct.aiMesh = type { i32, i32, i32, ptr, ptr, ptr, ptr, [8 x ptr], [8 x ptr], [8 x i32], ptr, i32, ptr, i32, %struct.aiString, i32, ptr, i32, %struct.aiAABB, ptr }
%struct.aiAABB = type { %class.aiVector3t, %class.aiVector3t }
%class.aiVector3t = type { float, float, float }
%"struct.std::pair.36" = type { i32, ptr }
%struct.aiBone = type { %struct.aiString, i32, ptr, ptr, ptr, %class.aiMatrix4x4t }
%class.aiMatrix4x4t = type { float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float }
%"struct.Assimp::BoneWithHash" = type { %"struct.std::pair.36", %"class.std::vector.38" }
%"class.std::vector.38" = type { %"struct.std::_Vector_base.39" }
%"struct.std::_Vector_base.39" = type { %"struct.std::_Vector_base<std::pair<aiBone *, unsigned int>, std::allocator<std::pair<aiBone *, unsigned int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<aiBone *, unsigned int>, std::allocator<std::pair<aiBone *, unsigned int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<aiBone *, unsigned int>, std::allocator<std::pair<aiBone *, unsigned int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<aiBone *, unsigned int>, std::allocator<std::pair<aiBone *, unsigned int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.43" = type <{ ptr, i32, [4 x i8] }>
%struct.aiVertexWeight = type { i32, float }

@.str.9 = external hidden unnamed_addr constant [83 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #1

declare i32 @__gxx_personality_v0(...)

; 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) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #1

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

declare noundef ptr @_ZN6Assimp13DefaultLogger3getEv() #5

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp13SceneCombiner10MergeBonesEP6aiMeshN9__gnu_cxx17__normal_iteratorIPKS2_St6vectorIS2_SaIS2_EEEESA_(ptr noundef %0, ptr %1, ptr %2) #6 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.32", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.32", align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::__cxx11::list", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.32", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.32", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::_List_const_iterator", align 8
  %13 = alloca %"struct.std::_List_iterator", align 8
  %14 = alloca %"struct.std::_List_const_iterator", align 8
  %15 = alloca %"struct.std::_List_iterator", align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca %struct.aiString, align 4
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.46", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.46", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.46", align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.46", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.46", align 8
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.32", ptr %4, i32 0, i32 0
  store ptr %1, ptr %28, align 8
  %29 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.32", ptr %5, i32 0, i32 0
  store ptr %2, ptr %29, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = icmp eq ptr null, %30
  br i1 %31, label %37, label %32

32:                                               ; preds = %3
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.aiMesh, ptr %33, i32 0, i32 11
  %35 = load i32, ptr %34, align 8, !tbaa !9
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %38

37:                                               ; preds = %32, %3
  br label %239

38:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #9
  call void @_ZNSt7__cxx114listIN6Assimp12BoneWithHashESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %4, i64 8, i1 false), !tbaa.struct !17
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %5, i64 8, i1 false), !tbaa.struct !17
  %39 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.32", ptr %8, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8
  %41 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.32", ptr %9, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8
  invoke void @_ZN6Assimp13SceneCombiner19BuildUniqueBoneListERNSt7__cxx114listINS_12BoneWithHashESaIS3_EEEN9__gnu_cxx17__normal_iteratorIPKP6aiMeshSt6vectorISA_SaISA_EEEESG_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr %40, ptr %42)
          to label %43 unwind label %62

43:                                               ; preds = %38
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.aiMesh, ptr %44, i32 0, i32 11
  store i32 0, ptr %45, align 8, !tbaa !9
  %46 = call noundef i64 @_ZNKSt7__cxx114listIN6Assimp12BoneWithHashESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  %47 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %46, i64 8)
  %48 = extractvalue { i64, i1 } %47, 1
  %49 = extractvalue { i64, i1 } %47, 0
  %50 = select i1 %48, i64 -1, i64 %49
  %51 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %50) #10
          to label %52 unwind label %62

52:                                               ; preds = %43
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.aiMesh, ptr %53, i32 0, i32 12
  store ptr %51, ptr %54, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %55 = call ptr @_ZNSt7__cxx114listIN6Assimp12BoneWithHashESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  %56 = getelementptr inbounds %"struct.std::_List_iterator", ptr %13, i32 0, i32 0
  store ptr %55, ptr %56, align 8
  call void @_ZNSt20_List_const_iteratorIN6Assimp12BoneWithHashEEC2ERKSt14_List_iteratorIS1_E(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %57 = call ptr @_ZNSt7__cxx114listIN6Assimp12BoneWithHashESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  %58 = getelementptr inbounds %"struct.std::_List_iterator", ptr %15, i32 0, i32 0
  store ptr %57, ptr %58, align 8
  call void @_ZNSt20_List_const_iteratorIN6Assimp12BoneWithHashEEC2ERKSt14_List_iteratorIS1_E(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %59

59:                                               ; preds = %234, %52
  %60 = call noundef zeroext i1 @_ZStneRKSt20_List_const_iteratorIN6Assimp12BoneWithHashEES4_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %14) #9
  br i1 %60, label %66, label %61

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

62:                                               ; preds = %43, %38
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %10, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %11, align 4
  br label %240

66:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %67 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 1120) #10
          to label %68 unwind label %97

68:                                               ; preds = %66
  call void @_ZN6aiBoneC2Ev(ptr noundef nonnull align 8 dereferenceable(1120) %67) #9
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.aiMesh, ptr %69, i32 0, i32 12
  %71 = load ptr, ptr %70, align 8, !tbaa !18
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.aiMesh, ptr %72, i32 0, i32 11
  %74 = load i32, ptr %73, align 8, !tbaa !9
  %75 = add i32 %74, 1
  store i32 %75, ptr %73, align 8, !tbaa !9
  %76 = zext i32 %74 to i64
  %77 = getelementptr inbounds ptr, ptr %71, i64 %76
  store ptr %67, ptr %77, align 8, !tbaa !5
  store ptr %67, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1028, ptr %18) #9
  %78 = call noundef ptr @_ZNKSt20_List_const_iteratorIN6Assimp12BoneWithHashEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  %79 = getelementptr inbounds %"struct.std::pair.36", ptr %78, i32 0, i32 1
  %80 = load ptr, ptr %79, align 8, !tbaa !19
  invoke void @_ZN8aiStringC2ERKS_(ptr noundef nonnull align 4 dereferenceable(1028) %18, ptr noundef nonnull align 4 dereferenceable(1028) %80)
          to label %81 unwind label %101

81:                                               ; preds = %68
  %82 = load ptr, ptr %17, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.aiBone, ptr %82, i32 0, i32 0
  %84 = invoke noundef nonnull align 4 dereferenceable(1028) ptr @_ZN8aiStringaSERKS_(ptr noundef nonnull align 4 dereferenceable(1028) %83, ptr noundef nonnull align 4 dereferenceable(1028) %18)
          to label %85 unwind label %101

85:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 1028, ptr %18) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %86 = call noundef ptr @_ZNKSt20_List_const_iteratorIN6Assimp12BoneWithHashEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  %87 = getelementptr inbounds %"struct.Assimp::BoneWithHash", ptr %86, i32 0, i32 1
  %88 = call ptr @_ZNKSt6vectorISt4pairIP6aiBonejESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #9
  %89 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.46", ptr %19, i32 0, i32 0
  store ptr %88, ptr %89, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %90 = call noundef ptr @_ZNKSt20_List_const_iteratorIN6Assimp12BoneWithHashEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  %91 = getelementptr inbounds %"struct.Assimp::BoneWithHash", ptr %90, i32 0, i32 1
  %92 = call ptr @_ZNKSt6vectorISt4pairIP6aiBonejESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %91) #9
  %93 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.46", ptr %20, i32 0, i32 0
  store ptr %92, ptr %93, align 8
  br label %94

94:                                               ; preds = %150, %85
  %95 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  br i1 %95, label %105, label %96

96:                                               ; preds = %94
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %153

97:                                               ; preds = %66
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %10, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %11, align 4
  br label %237

101:                                              ; preds = %81, %68
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %10, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 1028, ptr %18) #9
  br label %237

105:                                              ; preds = %94
  %106 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  %107 = getelementptr inbounds %"struct.std::pair.43", ptr %106, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8, !tbaa !21
  %109 = getelementptr inbounds %struct.aiBone, ptr %108, i32 0, i32 1
  %110 = load i32, ptr %109, align 4, !tbaa !23
  %111 = load ptr, ptr %17, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.aiBone, ptr %111, i32 0, i32 1
  %113 = load i32, ptr %112, align 4, !tbaa !23
  %114 = add i32 %113, %110
  store i32 %114, ptr %112, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %115 = call noundef ptr @_ZNKSt20_List_const_iteratorIN6Assimp12BoneWithHashEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  %116 = getelementptr inbounds %"struct.Assimp::BoneWithHash", ptr %115, i32 0, i32 1
  %117 = call ptr @_ZNKSt6vectorISt4pairIP6aiBonejESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %116) #9
  %118 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.46", ptr %21, i32 0, i32 0
  store ptr %117, ptr %118, align 8
  %119 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #9
  br i1 %119, label %120, label %129

120:                                              ; preds = %105
  %121 = load ptr, ptr %17, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.aiBone, ptr %121, i32 0, i32 5
  %123 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  %124 = getelementptr inbounds %"struct.std::pair.43", ptr %123, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8, !tbaa !21
  %126 = getelementptr inbounds %struct.aiBone, ptr %125, i32 0, i32 5
  %127 = invoke noundef zeroext i1 @_ZNK12aiMatrix4x4tIfEneERKS0_(ptr noundef nonnull align 4 dereferenceable(64) %122, ptr noundef nonnull align 4 dereferenceable(64) %126)
          to label %128 unwind label %135

128:                                              ; preds = %120
  br label %129

129:                                              ; preds = %128, %105
  %130 = phi i1 [ false, %105 ], [ %127, %128 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  br i1 %130, label %131, label %143

131:                                              ; preds = %129
  %132 = invoke noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
          to label %133 unwind label %139

133:                                              ; preds = %131
  invoke void @_ZN6Assimp6Logger4warnEPKc(ptr noundef nonnull align 8 dereferenceable(12) %132, ptr noundef @.str.9)
          to label %134 unwind label %139

134:                                              ; preds = %133
  br label %150

135:                                              ; preds = %120
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %10, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  br label %152

139:                                              ; preds = %133, %131
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %10, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %11, align 4
  br label %152

143:                                              ; preds = %129
  %144 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  %145 = getelementptr inbounds %"struct.std::pair.43", ptr %144, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8, !tbaa !21
  %147 = getelementptr inbounds %struct.aiBone, ptr %146, i32 0, i32 5
  %148 = load ptr, ptr %17, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.aiBone, ptr %148, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %149, ptr align 8 %147, i64 64, i1 false), !tbaa.struct !26
  br label %150

150:                                              ; preds = %143, %134
  %151 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  br label %94, !llvm.loop !28

152:                                              ; preds = %139, %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %236

153:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %154 = load ptr, ptr %17, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.aiBone, ptr %154, i32 0, i32 1
  %156 = load i32, ptr %155, align 4, !tbaa !23
  %157 = zext i32 %156 to i64
  %158 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %157, i64 8)
  %159 = extractvalue { i64, i1 } %158, 1
  %160 = extractvalue { i64, i1 } %158, 0
  %161 = select i1 %159, i64 -1, i64 %160
  %162 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %161) #10
          to label %163 unwind label %185

163:                                              ; preds = %153
  %164 = icmp eq i64 %157, 0
  br i1 %164, label %171, label %165

165:                                              ; preds = %163
  %166 = getelementptr inbounds %struct.aiVertexWeight, ptr %162, i64 %157
  br label %167

167:                                              ; preds = %167, %165
  %168 = phi ptr [ %162, %165 ], [ %169, %167 ]
  call void @_ZN14aiVertexWeightC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %168) #9
  %169 = getelementptr inbounds %struct.aiVertexWeight, ptr %168, i64 1
  %170 = icmp eq ptr %169, %166
  br i1 %170, label %171, label %167

171:                                              ; preds = %167, %163
  %172 = load ptr, ptr %17, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.aiBone, ptr %172, i32 0, i32 4
  store ptr %162, ptr %173, align 8, !tbaa !30
  store ptr %162, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %174 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt20_List_const_iteratorIN6Assimp12BoneWithHashEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  %175 = getelementptr inbounds %"struct.Assimp::BoneWithHash", ptr %174, i32 0, i32 1
  %176 = call ptr @_ZNKSt6vectorISt4pairIP6aiBonejESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %175) #9
  %177 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.46", ptr %23, i32 0, i32 0
  store ptr %176, ptr %177, align 8
  br label %178

178:                                              ; preds = %230, %171
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %179 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt20_List_const_iteratorIN6Assimp12BoneWithHashEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  %180 = getelementptr inbounds %"struct.Assimp::BoneWithHash", ptr %179, i32 0, i32 1
  %181 = call ptr @_ZNKSt6vectorISt4pairIP6aiBonejESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %180) #9
  %182 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.46", ptr %24, i32 0, i32 0
  store ptr %181, ptr %182, align 8
  %183 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  br i1 %183, label %189, label %184

184:                                              ; preds = %178
  store i32 8, ptr %16, align 4
  br label %232

185:                                              ; preds = %153
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %10, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  br label %236

189:                                              ; preds = %178
  %190 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  br i1 %190, label %191, label %192

191:                                              ; preds = %189
  store i32 8, ptr %16, align 4
  br label %232

192:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %193 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #9
  %194 = getelementptr inbounds %"struct.std::pair.43", ptr %193, i32 0, i32 0
  %195 = load ptr, ptr %194, align 8, !tbaa !21
  store ptr %195, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  store i32 0, ptr %26, align 4, !tbaa !31
  br label %196

196:                                              ; preds = %224, %192
  %197 = load i32, ptr %26, align 4, !tbaa !31
  %198 = load ptr, ptr %25, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.aiBone, ptr %198, i32 0, i32 1
  %200 = load i32, ptr %199, align 4, !tbaa !23
  %201 = icmp ult i32 %197, %200
  br i1 %201, label %203, label %202

202:                                              ; preds = %196
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  br label %229

203:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  %204 = load ptr, ptr %25, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.aiBone, ptr %204, i32 0, i32 4
  %206 = load ptr, ptr %205, align 8, !tbaa !30
  %207 = load i32, ptr %26, align 4, !tbaa !31
  %208 = zext i32 %207 to i64
  %209 = getelementptr inbounds %struct.aiVertexWeight, ptr %206, i64 %208
  store ptr %209, ptr %27, align 8, !tbaa !5
  %210 = load ptr, ptr %27, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.aiVertexWeight, ptr %210, i32 0, i32 1
  %212 = load float, ptr %211, align 4, !tbaa !32
  %213 = load ptr, ptr %22, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.aiVertexWeight, ptr %213, i32 0, i32 1
  store float %212, ptr %214, align 4, !tbaa !32
  %215 = load ptr, ptr %27, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.aiVertexWeight, ptr %215, i32 0, i32 0
  %217 = load i32, ptr %216, align 4, !tbaa !34
  %218 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #9
  %219 = getelementptr inbounds %"struct.std::pair.43", ptr %218, i32 0, i32 1
  %220 = load i32, ptr %219, align 8, !tbaa !35
  %221 = add i32 %217, %220
  %222 = load ptr, ptr %22, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.aiVertexWeight, ptr %222, i32 0, i32 0
  store i32 %221, ptr %223, align 4, !tbaa !34
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  br label %224

224:                                              ; preds = %203
  %225 = load i32, ptr %26, align 4, !tbaa !31
  %226 = add i32 %225, 1
  store i32 %226, ptr %26, align 4, !tbaa !31
  %227 = load ptr, ptr %22, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.aiVertexWeight, ptr %227, i32 1
  store ptr %228, ptr %22, align 8, !tbaa !5
  br label %196, !llvm.loop !36

229:                                              ; preds = %202
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  br label %230

230:                                              ; preds = %229
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #9
  br label %178, !llvm.loop !37

232:                                              ; preds = %191, %184
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  br label %233

233:                                              ; preds = %232
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  br label %234

234:                                              ; preds = %233
  %235 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt20_List_const_iteratorIN6Assimp12BoneWithHashEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  br label %59, !llvm.loop !38

236:                                              ; preds = %185, %152
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  br label %237

237:                                              ; preds = %236, %101, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  br label %240

238:                                              ; preds = %61
  call void @_ZNSt7__cxx1110_List_baseIN6Assimp12BoneWithHashESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #9
  br label %239

239:                                              ; preds = %238, %37
  ret void

240:                                              ; preds = %237, %62
  call void @_ZNSt7__cxx1110_List_baseIN6Assimp12BoneWithHashESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #9
  br label %241

241:                                              ; preds = %240
  %242 = load ptr, ptr %10, align 8
  %243 = load i32, ptr %11, align 4
  %244 = insertvalue { ptr, i32 } poison, ptr %242, 0
  %245 = insertvalue { ptr, i32 } %244, i32 %243, 1
  resume { ptr, i32 } %245
}

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(1028) ptr @_ZN8aiStringaSERKS_(ptr noundef nonnull align 4 dereferenceable(1028), ptr noundef nonnull align 4 dereferenceable(1028)) #4 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #7

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK12aiMatrix4x4tIfEneERKS0_(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64)) #8 align 2

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

declare void @_ZN6Assimp6Logger4warnEPKc(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) #5

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxeqIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #7

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin allocsize(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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { "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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }

!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, !11, i64 216}
!10 = !{!"_ZTS6aiMesh", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !7, i64 48, !7, i64 112, !7, i64 176, !6, i64 208, !11, i64 216, !6, i64 224, !11, i64 232, !12, i64 236, !11, i64 1264, !6, i64 1272, !13, i64 1280, !14, i64 1284, !6, i64 1312}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS8aiString", !11, i64 0, !7, i64 4}
!13 = !{!"_ZTS16aiMorphingMethod", !7, i64 0}
!14 = !{!"_ZTS6aiAABB", !15, i64 0, !15, i64 12}
!15 = !{!"_ZTS10aiVector3tIfE", !16, i64 0, !16, i64 4, !16, i64 8}
!16 = !{!"float", !7, i64 0}
!17 = !{i64 0, i64 8, !5}
!18 = !{!10, !6, i64 224}
!19 = !{!20, !6, i64 8}
!20 = !{!"_ZTSSt4pairIjP8aiStringE", !11, i64 0, !6, i64 8}
!21 = !{!22, !6, i64 0}
!22 = !{!"_ZTSSt4pairIP6aiBonejE", !6, i64 0, !11, i64 8}
!23 = !{!24, !11, i64 1028}
!24 = !{!"_ZTS6aiBone", !12, i64 0, !11, i64 1028, !6, i64 1032, !6, i64 1040, !6, i64 1048, !25, i64 1056}
!25 = !{!"_ZTS12aiMatrix4x4tIfE", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !16, i64 24, !16, i64 28, !16, i64 32, !16, i64 36, !16, i64 40, !16, i64 44, !16, i64 48, !16, i64 52, !16, i64 56, !16, i64 60}
!26 = !{i64 0, i64 4, !27, i64 4, i64 4, !27, i64 8, i64 4, !27, i64 12, i64 4, !27, i64 16, i64 4, !27, i64 20, i64 4, !27, i64 24, i64 4, !27, i64 28, i64 4, !27, i64 32, i64 4, !27, i64 36, i64 4, !27, i64 40, i64 4, !27, i64 44, i64 4, !27, i64 48, i64 4, !27, i64 52, i64 4, !27, i64 56, i64 4, !27, i64 60, i64 4, !27}
!27 = !{!16, !16, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!24, !6, i64 1048}
!31 = !{!11, !11, i64 0}
!32 = !{!33, !16, i64 4}
!33 = !{!"_ZTS14aiVertexWeight", !11, i64 0, !16, i64 4}
!34 = !{!33, !11, i64 0}
!35 = !{!22, !11, i64 8}
!36 = distinct !{!36, !29}
!37 = distinct !{!37, !29}
!38 = distinct !{!38, !29}


; 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::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<Assimp::BoneWithHash, std::allocator<Assimp::BoneWithHash>>::_List_impl" }
%"struct.std::__cxx11::_List_base<Assimp::BoneWithHash, std::allocator<Assimp::BoneWithHash>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"struct.std::_List_const_iterator" = type { ptr }
%"struct.std::_List_iterator" = type { ptr }
%struct.aiString = type { i32, [1024 x i8] }
%"class.__gnu_cxx::__normal_iterator.46" = type { ptr }
%struct.aiVertexWeight = type { i32, float }

@.str.9 = external hidden unnamed_addr constant [83 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8aiStringC2ERKS_(ptr noundef nonnull align 4 dereferenceable(1028), ptr noundef nonnull align 4 dereferenceable(1028)) unnamed_addr #3 align 2

declare noundef ptr @_ZN6Assimp13DefaultLogger3getEv() local_unnamed_addr #4

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp13SceneCombiner10MergeBonesEP6aiMeshN9__gnu_cxx17__normal_iteratorIPKS2_St6vectorIS2_SaIS2_EEEESA_(ptr noundef %0, ptr %1, ptr %2) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::__cxx11::list", align 8
  %5 = alloca %"struct.std::_List_const_iterator", align 8
  %6 = alloca %"struct.std::_List_iterator", align 8
  %7 = alloca %"struct.std::_List_const_iterator", align 8
  %8 = alloca %"struct.std::_List_iterator", align 8
  %9 = alloca %struct.aiString, align 4
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.46", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.46", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.46", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.46", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.46", align 8
  %15 = icmp eq ptr %0, null
  br i1 %15, label %142, label %16

16:                                               ; preds = %3
  %17 = getelementptr inbounds i8, ptr %0, i64 216
  %18 = load i32, ptr %17, align 8, !tbaa !5
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %142, label %20

20:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #8
  call void @_ZNSt7__cxx114listIN6Assimp12BoneWithHashESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  invoke void @_ZN6Assimp13SceneCombiner19BuildUniqueBoneListERNSt7__cxx114listINS_12BoneWithHashESaIS3_EEEN9__gnu_cxx17__normal_iteratorIPKP6aiMeshSt6vectorISA_SaISA_EEEESG_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr %1, ptr %2)
          to label %21 unwind label %32

21:                                               ; preds = %20
  store i32 0, ptr %17, align 8, !tbaa !5
  %22 = call noundef i64 @_ZNKSt7__cxx114listIN6Assimp12BoneWithHashESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  %23 = icmp ugt i64 %22, 2305843009213693951
  %24 = shl nuw i64 %22, 3
  %25 = select i1 %23, i64 -1, i64 %24
  %26 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %25) #9
          to label %27 unwind label %32

27:                                               ; preds = %21
  %28 = getelementptr inbounds i8, ptr %0, i64 224
  store ptr %26, ptr %28, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %29 = call ptr @_ZNSt7__cxx114listIN6Assimp12BoneWithHashESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  store ptr %29, ptr %6, align 8
  call void @_ZNSt20_List_const_iteratorIN6Assimp12BoneWithHashEEC2ERKSt14_List_iteratorIS1_E(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %30 = call ptr @_ZNSt7__cxx114listIN6Assimp12BoneWithHashESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  store ptr %30, ptr %8, align 8
  call void @_ZNSt20_List_const_iteratorIN6Assimp12BoneWithHashEEC2ERKSt14_List_iteratorIS1_E(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  %31 = call noundef zeroext i1 @_ZStneRKSt20_List_const_iteratorIN6Assimp12BoneWithHashEES4_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  br i1 %31, label %.lr.ph50, label %._crit_edge51

._crit_edge51:                                    ; preds = %._crit_edge47, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @_ZNSt7__cxx1110_List_baseIN6Assimp12BoneWithHashESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  br label %142

32:                                               ; preds = %21, %20
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %143

.lr.ph50:                                         ; preds = %27, %._crit_edge47
  %34 = invoke noalias noundef nonnull dereferenceable(1120) ptr @_Znwm(i64 noundef 1120) #9
          to label %35 unwind label %59

35:                                               ; preds = %.lr.ph50
  call void @_ZN6aiBoneC2Ev(ptr noundef nonnull align 8 dereferenceable(1120) %34) #8
  %36 = load ptr, ptr %28, align 8, !tbaa !16
  %37 = load i32, ptr %17, align 8, !tbaa !5
  %38 = add i32 %37, 1
  store i32 %38, ptr %17, align 8, !tbaa !5
  %39 = zext i32 %37 to i64
  %40 = getelementptr inbounds ptr, ptr %36, i64 %39
  store ptr %34, ptr %40, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 1028, ptr nonnull %9) #8
  %41 = call noundef ptr @_ZNKSt20_List_const_iteratorIN6Assimp12BoneWithHashEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %42 = getelementptr inbounds i8, ptr %41, i64 8
  %43 = load ptr, ptr %42, align 8, !tbaa !18
  call void @_ZN8aiStringC2ERKS_(ptr noundef nonnull align 4 dereferenceable(1028) %9, ptr noundef nonnull align 4 dereferenceable(1028) %43)
  %44 = call noundef nonnull align 4 dereferenceable(1028) ptr @_ZN8aiStringaSERKS_(ptr noundef nonnull align 4 dereferenceable(1028) %34, ptr noundef nonnull align 4 dereferenceable(1028) %9)
  call void @llvm.lifetime.end.p0(i64 1028, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %45 = call noundef ptr @_ZNKSt20_List_const_iteratorIN6Assimp12BoneWithHashEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %46 = getelementptr inbounds i8, ptr %45, i64 16
  %47 = call ptr @_ZNKSt6vectorISt4pairIP6aiBonejESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #8
  store ptr %47, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %48 = call noundef ptr @_ZNKSt20_List_const_iteratorIN6Assimp12BoneWithHashEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %49 = getelementptr inbounds i8, ptr %48, i64 16
  %50 = call ptr @_ZNKSt6vectorISt4pairIP6aiBonejESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #8
  store ptr %50, ptr %11, align 8
  %51 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  br i1 %51, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %35
  %52 = getelementptr inbounds i8, ptr %34, i64 1028
  %53 = getelementptr inbounds i8, ptr %34, i64 1056
  br label %61

._crit_edge:                                      ; preds = %89, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  %54 = getelementptr inbounds i8, ptr %34, i64 1028
  %55 = load i32, ptr %54, align 4, !tbaa !20
  %56 = zext i32 %55 to i64
  %57 = shl nuw nsw i64 %56, 3
  %58 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %57) #9
          to label %93 unwind label %109

59:                                               ; preds = %.lr.ph50
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %141

61:                                               ; preds = %.lr.ph, %89
  %62 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %63 = load ptr, ptr %62, align 8, !tbaa !23
  %64 = getelementptr inbounds i8, ptr %63, i64 1028
  %65 = load i32, ptr %64, align 4, !tbaa !20
  %66 = load i32, ptr %52, align 4, !tbaa !20
  %67 = add i32 %66, %65
  store i32 %67, ptr %52, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %68 = call noundef ptr @_ZNKSt20_List_const_iteratorIN6Assimp12BoneWithHashEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %69 = getelementptr inbounds i8, ptr %68, i64 16
  %70 = call ptr @_ZNKSt6vectorISt4pairIP6aiBonejESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %69) #8
  store ptr %70, ptr %12, align 8
  %71 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br i1 %71, label %72, label %.critedge

72:                                               ; preds = %61
  %73 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %74 = load ptr, ptr %73, align 8, !tbaa !23
  %75 = getelementptr inbounds i8, ptr %74, i64 1056
  %76 = invoke noundef zeroext i1 @_ZNK12aiMatrix4x4tIfEneERKS0_(ptr noundef nonnull align 4 dereferenceable(64) %53, ptr noundef nonnull align 4 dereferenceable(64) %75)
          to label %77 unwind label %81

77:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  br i1 %76, label %78, label %85

78:                                               ; preds = %77
  %79 = invoke noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
          to label %80 unwind label %83

80:                                               ; preds = %78
  invoke void @_ZN6Assimp6Logger4warnEPKc(ptr noundef nonnull align 8 dereferenceable(12) %79, ptr noundef nonnull @.str.9)
          to label %89 unwind label %83

81:                                               ; preds = %72
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  br label %92

83:                                               ; preds = %80, %78
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %92

.critedge:                                        ; preds = %61
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  br label %85

85:                                               ; preds = %.critedge, %77
  %86 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %87 = load ptr, ptr %86, align 8, !tbaa !23
  %88 = getelementptr inbounds i8, ptr %87, i64 1056
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %53, ptr noundef nonnull align 8 dereferenceable(64) %88, i64 64, i1 false), !tbaa.struct !25
  br label %89

89:                                               ; preds = %80, %85
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %91 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  br i1 %91, label %61, label %._crit_edge, !llvm.loop !27

92:                                               ; preds = %83, %81
  %.pn = phi { ptr, i32 } [ %84, %83 ], [ %82, %81 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %140

93:                                               ; preds = %._crit_edge
  %94 = icmp eq i32 %55, 0
  br i1 %94, label %.loopexit, label %95

95:                                               ; preds = %93
  %96 = getelementptr inbounds %struct.aiVertexWeight, ptr %58, i64 %56
  br label %97

97:                                               ; preds = %97, %95
  %98 = phi ptr [ %58, %95 ], [ %99, %97 ]
  call void @_ZN14aiVertexWeightC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %98) #8
  %99 = getelementptr inbounds i8, ptr %98, i64 8
  %100 = icmp eq ptr %99, %96
  br i1 %100, label %.loopexit, label %97

.loopexit:                                        ; preds = %97, %93
  %101 = getelementptr inbounds i8, ptr %34, i64 1048
  store ptr %58, ptr %101, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  %102 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt20_List_const_iteratorIN6Assimp12BoneWithHashEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %103 = getelementptr inbounds i8, ptr %102, i64 16
  %104 = call ptr @_ZNKSt6vectorISt4pairIP6aiBonejESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %103) #8
  store ptr %104, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %105 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt20_List_const_iteratorIN6Assimp12BoneWithHashEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %106 = getelementptr inbounds i8, ptr %105, i64 16
  %107 = call ptr @_ZNKSt6vectorISt4pairIP6aiBonejESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %106) #8
  store ptr %107, ptr %14, align 8
  %108 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  br i1 %108, label %.lr.ph46, label %._crit_edge47

109:                                              ; preds = %._crit_edge
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %140

.lr.ph46:                                         ; preds = %.loopexit, %._crit_edge43
  %.03144 = phi ptr [ %.132.lcssa, %._crit_edge43 ], [ %58, %.loopexit ]
  %111 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  br i1 %111, label %._crit_edge47, label %112

112:                                              ; preds = %.lr.ph46
  %113 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  %114 = load ptr, ptr %113, align 8, !tbaa !23
  %115 = getelementptr inbounds i8, ptr %114, i64 1028
  %116 = load i32, ptr %115, align 4, !tbaa !20
  %.not = icmp eq i32 %116, 0
  br i1 %.not, label %._crit_edge43, label %.lr.ph42

.lr.ph42:                                         ; preds = %112
  %117 = getelementptr inbounds i8, ptr %114, i64 1048
  br label %123

._crit_edge43:                                    ; preds = %123, %112
  %.132.lcssa = phi ptr [ %.03144, %112 ], [ %134, %123 ]
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %119 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt20_List_const_iteratorIN6Assimp12BoneWithHashEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %120 = getelementptr inbounds i8, ptr %119, i64 16
  %121 = call ptr @_ZNKSt6vectorISt4pairIP6aiBonejESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %120) #8
  store ptr %121, ptr %14, align 8
  %122 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  br i1 %122, label %.lr.ph46, label %._crit_edge47, !llvm.loop !30

123:                                              ; preds = %.lr.ph42, %123
  %indvars.iv = phi i64 [ 0, %.lr.ph42 ], [ %indvars.iv.next, %123 ]
  %.13239 = phi ptr [ %.03144, %.lr.ph42 ], [ %134, %123 ]
  %124 = load ptr, ptr %117, align 8, !tbaa !29
  %125 = getelementptr inbounds %struct.aiVertexWeight, ptr %124, i64 %indvars.iv
  %126 = getelementptr inbounds i8, ptr %125, i64 4
  %127 = load float, ptr %126, align 4, !tbaa !31
  %128 = getelementptr inbounds i8, ptr %.13239, i64 4
  store float %127, ptr %128, align 4, !tbaa !31
  %129 = load i32, ptr %125, align 4, !tbaa !33
  %130 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  %131 = getelementptr inbounds i8, ptr %130, i64 8
  %132 = load i32, ptr %131, align 8, !tbaa !34
  %133 = add i32 %132, %129
  store i32 %133, ptr %.13239, align 4, !tbaa !33
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %134 = getelementptr inbounds i8, ptr %.13239, i64 8
  %135 = load i32, ptr %115, align 4, !tbaa !20
  %136 = zext i32 %135 to i64
  %137 = icmp ult i64 %indvars.iv.next, %136
  br i1 %137, label %123, label %._crit_edge43, !llvm.loop !35

._crit_edge47:                                    ; preds = %._crit_edge43, %.lr.ph46, %.loopexit
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt20_List_const_iteratorIN6Assimp12BoneWithHashEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %139 = call noundef zeroext i1 @_ZStneRKSt20_List_const_iteratorIN6Assimp12BoneWithHashEES4_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  br i1 %139, label %.lr.ph50, label %._crit_edge51, !llvm.loop !36

140:                                              ; preds = %109, %92
  %.pn.pn = phi { ptr, i32 } [ %.pn, %92 ], [ %110, %109 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  br label %141

141:                                              ; preds = %140, %59
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %140 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br label %143

142:                                              ; preds = %3, %16, %._crit_edge51
  ret void

143:                                              ; preds = %141, %32
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %141 ], [ %33, %32 ]
  call void @_ZNSt7__cxx1110_List_baseIN6Assimp12BoneWithHashESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  resume { ptr, i32 } %.pn.pn.pn.pn
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6aiBoneC2Ev(ptr noundef nonnull align 8 dereferenceable(1120)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(1028) ptr @_ZN8aiStringaSERKS_(ptr noundef nonnull align 4 dereferenceable(1028), ptr noundef nonnull align 4 dereferenceable(1028)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

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

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

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

declare void @_ZN6Assimp6Logger4warnEPKc(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) local_unnamed_addr #4

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxeqIPKSt4pairIP6aiBonejESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin allocsize(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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }

!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, !7, i64 216}
!6 = !{!"_ZTS6aiMesh", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !8, i64 48, !8, i64 112, !8, i64 176, !10, i64 208, !7, i64 216, !10, i64 224, !7, i64 232, !11, i64 236, !7, i64 1264, !10, i64 1272, !12, i64 1280, !13, i64 1284, !10, i64 1312}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTS8aiString", !7, i64 0, !8, i64 4}
!12 = !{!"_ZTS16aiMorphingMethod", !8, i64 0}
!13 = !{!"_ZTS6aiAABB", !14, i64 0, !14, i64 12}
!14 = !{!"_ZTS10aiVector3tIfE", !15, i64 0, !15, i64 4, !15, i64 8}
!15 = !{!"float", !8, i64 0}
!16 = !{!6, !10, i64 224}
!17 = !{!10, !10, i64 0}
!18 = !{!19, !10, i64 8}
!19 = !{!"_ZTSSt4pairIjP8aiStringE", !7, i64 0, !10, i64 8}
!20 = !{!21, !7, i64 1028}
!21 = !{!"_ZTS6aiBone", !11, i64 0, !7, i64 1028, !10, i64 1032, !10, i64 1040, !10, i64 1048, !22, i64 1056}
!22 = !{!"_ZTS12aiMatrix4x4tIfE", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !15, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !15, i64 56, !15, i64 60}
!23 = !{!24, !10, i64 0}
!24 = !{!"_ZTSSt4pairIP6aiBonejE", !10, i64 0, !7, i64 8}
!25 = !{i64 0, i64 4, !26, i64 4, i64 4, !26, i64 8, i64 4, !26, i64 12, i64 4, !26, i64 16, i64 4, !26, i64 20, i64 4, !26, i64 24, i64 4, !26, i64 28, i64 4, !26, i64 32, i64 4, !26, i64 36, i64 4, !26, i64 40, i64 4, !26, i64 44, i64 4, !26, i64 48, i64 4, !26, i64 52, i64 4, !26, i64 56, i64 4, !26, i64 60, i64 4, !26}
!26 = !{!15, !15, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!21, !10, i64 1048}
!30 = distinct !{!30, !28}
!31 = !{!32, !15, i64 4}
!32 = !{!"_ZTS14aiVertexWeight", !7, i64 0, !15, i64 4}
!33 = !{!32, !7, i64 0}
!34 = !{!24, !7, i64 8}
!35 = distinct !{!35, !28}
!36 = distinct !{!36, !28}


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