; LLVM IR from Overload-Technologies/Overload :: Dependencies/assimp/code/PostProcessing (OptimizeMeshes)

; 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.5" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%struct.aiNode = type { %struct.aiString, %class.aiMatrix4x4t, ptr, i32, ptr, i32, ptr, ptr }
%struct.aiString = type { i32, [1024 x i8] }
%class.aiMatrix4x4t = type { float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float }
%"class.Assimp::OptimizeMeshesProcess" = type { %"class.Assimp::BaseProcess", ptr, %"class.std::vector", %"class.std::vector.0", i8, i32, i32, %"class.std::vector.0" }
%"class.Assimp::BaseProcess" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Assimp::OptimizeMeshesProcess::MeshInfo, std::allocator<Assimp::OptimizeMeshesProcess::MeshInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<Assimp::OptimizeMeshesProcess::MeshInfo, std::allocator<Assimp::OptimizeMeshesProcess::MeshInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<Assimp::OptimizeMeshesProcess::MeshInfo, std::allocator<Assimp::OptimizeMeshesProcess::MeshInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Assimp::OptimizeMeshesProcess::MeshInfo, std::allocator<Assimp::OptimizeMeshesProcess::MeshInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<aiMesh *, std::allocator<aiMesh *>>::_Vector_impl" }
%"struct.std::_Vector_base<aiMesh *, std::allocator<aiMesh *>>::_Vector_impl" = type { %"struct.std::_Vector_base<aiMesh *, std::allocator<aiMesh *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<aiMesh *, std::allocator<aiMesh *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Assimp::OptimizeMeshesProcess::MeshInfo" = type { i32, i32, i32 }
%struct.aiScene = type { i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, ptr, %struct.aiString, i32, ptr, 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 }

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp21OptimizeMeshesProcess11ProcessNodeEP6aiNode(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %18 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %19

19:                                               ; preds = %183, %2
  %20 = load i32, ptr %5, align 4, !tbaa !9
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.aiNode, ptr %21, i32 0, i32 5
  %23 = load i32, ptr %22, align 8, !tbaa !11
  %24 = icmp ult i32 %20, %23
  br i1 %24, label %26, label %25

25:                                               ; preds = %19
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %186

26:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.aiNode, ptr %27, i32 0, i32 6
  %29 = load ptr, ptr %28, align 8, !tbaa !16
  %30 = load i32, ptr %5, align 4, !tbaa !9
  %31 = zext i32 %30 to i64
  %32 = getelementptr inbounds i32, ptr %29, i64 %31
  store ptr %32, ptr %7, align 8, !tbaa !5
  %33 = getelementptr inbounds %"class.Assimp::OptimizeMeshesProcess", ptr %18, i32 0, i32 2
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = load i32, ptr %34, align 4, !tbaa !9
  %36 = zext i32 %35 to i64
  %37 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN6Assimp21OptimizeMeshesProcess8MeshInfoESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %36) #4
  %38 = getelementptr inbounds %"struct.Assimp::OptimizeMeshesProcess::MeshInfo", ptr %37, i32 0, i32 0
  %39 = load i32, ptr %38, align 4, !tbaa !17
  %40 = icmp ugt i32 %39, 1
  br i1 %40, label %41, label %50

41:                                               ; preds = %26
  %42 = getelementptr inbounds %"class.Assimp::OptimizeMeshesProcess", ptr %18, i32 0, i32 2
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = load i32, ptr %43, align 4, !tbaa !9
  %45 = zext i32 %44 to i64
  %46 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN6Assimp21OptimizeMeshesProcess8MeshInfoESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %45) #4
  %47 = getelementptr inbounds %"struct.Assimp::OptimizeMeshesProcess::MeshInfo", ptr %46, i32 0, i32 2
  %48 = load i32, ptr %47, align 4, !tbaa !19
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %48, ptr %49, align 4, !tbaa !9
  br label %182

50:                                               ; preds = %26
  %51 = getelementptr inbounds %"class.Assimp::OptimizeMeshesProcess", ptr %18, i32 0, i32 7
  call void @_ZNSt6vectorIP6aiMeshSaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %52 = load i32, ptr %5, align 4, !tbaa !9
  %53 = add i32 %52, 1
  store i32 %53, ptr %10, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %139, %50
  %55 = load i32, ptr %10, align 4, !tbaa !9
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.aiNode, ptr %56, i32 0, i32 5
  %58 = load i32, ptr %57, align 8, !tbaa !11
  %59 = icmp ult i32 %55, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %54
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %142

61:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.aiNode, ptr %62, i32 0, i32 6
  %64 = load ptr, ptr %63, align 8, !tbaa !16
  %65 = load i32, ptr %10, align 4, !tbaa !9
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds i32, ptr %64, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !9
  store i32 %68, ptr %11, align 4, !tbaa !9
  %69 = getelementptr inbounds %"class.Assimp::OptimizeMeshesProcess", ptr %18, i32 0, i32 2
  %70 = load i32, ptr %11, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN6Assimp21OptimizeMeshesProcess8MeshInfoESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef %71) #4
  %73 = getelementptr inbounds %"struct.Assimp::OptimizeMeshesProcess::MeshInfo", ptr %72, i32 0, i32 0
  %74 = load i32, ptr %73, align 4, !tbaa !17
  %75 = icmp eq i32 %74, 1
  br i1 %75, label %76, label %138

76:                                               ; preds = %61
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = load i32, ptr %77, align 4, !tbaa !9
  %79 = load i32, ptr %11, align 4, !tbaa !9
  %80 = load i32, ptr %8, align 4, !tbaa !9
  %81 = load i32, ptr %9, align 4, !tbaa !9
  %82 = call noundef zeroext i1 @_ZN6Assimp21OptimizeMeshesProcess7CanJoinEjjjj(ptr noundef nonnull align 8 dereferenceable(120) %18, i32 noundef %78, i32 noundef %79, i32 noundef %80, i32 noundef %81)
  br i1 %82, label %83, label %138

83:                                               ; preds = %76
  %84 = getelementptr inbounds %"class.Assimp::OptimizeMeshesProcess", ptr %18, i32 0, i32 7
  %85 = getelementptr inbounds %"class.Assimp::OptimizeMeshesProcess", ptr %18, i32 0, i32 1
  %86 = load ptr, ptr %85, align 8, !tbaa !20
  %87 = getelementptr inbounds %struct.aiScene, ptr %86, i32 0, i32 3
  %88 = load ptr, ptr %87, align 8, !tbaa !32
  %89 = load i32, ptr %11, align 4, !tbaa !9
  %90 = zext i32 %89 to i64
  %91 = getelementptr inbounds ptr, ptr %88, i64 %90
  call void @_ZNSt6vectorIP6aiMeshSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %84, ptr noundef nonnull align 8 dereferenceable(8) %91)
  %92 = getelementptr inbounds %"class.Assimp::OptimizeMeshesProcess", ptr %18, i32 0, i32 1
  %93 = load ptr, ptr %92, align 8, !tbaa !20
  %94 = getelementptr inbounds %struct.aiScene, ptr %93, i32 0, i32 3
  %95 = load ptr, ptr %94, align 8, !tbaa !32
  %96 = load i32, ptr %11, align 4, !tbaa !9
  %97 = zext i32 %96 to i64
  %98 = getelementptr inbounds ptr, ptr %95, i64 %97
  %99 = load ptr, ptr %98, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.aiMesh, ptr %99, i32 0, i32 1
  %101 = load i32, ptr %100, align 4, !tbaa !34
  %102 = load i32, ptr %8, align 4, !tbaa !9
  %103 = add i32 %102, %101
  store i32 %103, ptr %8, align 4, !tbaa !9
  %104 = getelementptr inbounds %"class.Assimp::OptimizeMeshesProcess", ptr %18, i32 0, i32 1
  %105 = load ptr, ptr %104, align 8, !tbaa !20
  %106 = getelementptr inbounds %struct.aiScene, ptr %105, i32 0, i32 3
  %107 = load ptr, ptr %106, align 8, !tbaa !32
  %108 = load i32, ptr %11, align 4, !tbaa !9
  %109 = zext i32 %108 to i64
  %110 = getelementptr inbounds ptr, ptr %107, i64 %109
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.aiMesh, ptr %111, i32 0, i32 2
  %113 = load i32, ptr %112, align 8, !tbaa !39
  %114 = load i32, ptr %9, align 4, !tbaa !9
  %115 = add i32 %114, %113
  store i32 %115, ptr %9, align 4, !tbaa !9
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.aiNode, ptr %116, i32 0, i32 6
  %118 = load ptr, ptr %117, align 8, !tbaa !16
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.aiNode, ptr %119, i32 0, i32 5
  %121 = load i32, ptr %120, align 8, !tbaa !11
  %122 = sub i32 %121, 1
  %123 = zext i32 %122 to i64
  %124 = getelementptr inbounds i32, ptr %118, i64 %123
  %125 = load i32, ptr %124, align 4, !tbaa !9
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.aiNode, ptr %126, i32 0, i32 6
  %128 = load ptr, ptr %127, align 8, !tbaa !16
  %129 = load i32, ptr %10, align 4, !tbaa !9
  %130 = zext i32 %129 to i64
  %131 = getelementptr inbounds i32, ptr %128, i64 %130
  store i32 %125, ptr %131, align 4, !tbaa !9
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.aiNode, ptr %132, i32 0, i32 5
  %134 = load i32, ptr %133, align 8, !tbaa !11
  %135 = add i32 %134, -1
  store i32 %135, ptr %133, align 8, !tbaa !11
  %136 = load i32, ptr %10, align 4, !tbaa !9
  %137 = add i32 %136, -1
  store i32 %137, ptr %10, align 4, !tbaa !9
  br label %138

138:                                              ; preds = %83, %76, %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %139

139:                                              ; preds = %138
  %140 = load i32, ptr %10, align 4, !tbaa !9
  %141 = add i32 %140, 1
  store i32 %141, ptr %10, align 4, !tbaa !9
  br label %54, !llvm.loop !40

142:                                              ; preds = %60
  %143 = getelementptr inbounds %"class.Assimp::OptimizeMeshesProcess", ptr %18, i32 0, i32 7
  %144 = call noundef zeroext i1 @_ZNKSt6vectorIP6aiMeshSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %143) #4
  br i1 %144, label %166, label %145

145:                                              ; preds = %142
  %146 = getelementptr inbounds %"class.Assimp::OptimizeMeshesProcess", ptr %18, i32 0, i32 7
  %147 = getelementptr inbounds %"class.Assimp::OptimizeMeshesProcess", ptr %18, i32 0, i32 1
  %148 = load ptr, ptr %147, align 8, !tbaa !20
  %149 = getelementptr inbounds %struct.aiScene, ptr %148, i32 0, i32 3
  %150 = load ptr, ptr %149, align 8, !tbaa !32
  %151 = load ptr, ptr %7, align 8, !tbaa !5
  %152 = load i32, ptr %151, align 4, !tbaa !9
  %153 = zext i32 %152 to i64
  %154 = getelementptr inbounds ptr, ptr %150, i64 %153
  call void @_ZNSt6vectorIP6aiMeshSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %146, ptr noundef nonnull align 8 dereferenceable(8) %154)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %155 = getelementptr inbounds %"class.Assimp::OptimizeMeshesProcess", ptr %18, i32 0, i32 7
  %156 = call ptr @_ZNSt6vectorIP6aiMeshSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %155) #4
  %157 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %156, ptr %157, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKP6aiMeshSt6vectorIS2_SaIS2_EEEC2IPS2_vEERKNS0_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %158 = getelementptr inbounds %"class.Assimp::OptimizeMeshesProcess", ptr %18, i32 0, i32 7
  %159 = call ptr @_ZNSt6vectorIP6aiMeshSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %158) #4
  %160 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %159, ptr %160, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKP6aiMeshSt6vectorIS2_SaIS2_EEEC2IPS2_vEERKNS0_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #4
  %161 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %13, i32 0, i32 0
  %162 = load ptr, ptr %161, align 8
  %163 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %15, i32 0, i32 0
  %164 = load ptr, ptr %163, align 8
  call void @_ZN6Assimp13SceneCombiner11MergeMeshesEPP6aiMeshjN9__gnu_cxx17__normal_iteratorIPKS2_St6vectorIS2_SaIS2_EEEESB_(ptr noundef %12, i32 noundef 0, ptr %162, ptr %164)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  %165 = getelementptr inbounds %"class.Assimp::OptimizeMeshesProcess", ptr %18, i32 0, i32 3
  call void @_ZNSt6vectorIP6aiMeshSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %165, ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %176

166:                                              ; preds = %142
  %167 = getelementptr inbounds %"class.Assimp::OptimizeMeshesProcess", ptr %18, i32 0, i32 3
  %168 = getelementptr inbounds %"class.Assimp::OptimizeMeshesProcess", ptr %18, i32 0, i32 1
  %169 = load ptr, ptr %168, align 8, !tbaa !20
  %170 = getelementptr inbounds %struct.aiScene, ptr %169, i32 0, i32 3
  %171 = load ptr, ptr %170, align 8, !tbaa !32
  %172 = load ptr, ptr %7, align 8, !tbaa !5
  %173 = load i32, ptr %172, align 4, !tbaa !9
  %174 = zext i32 %173 to i64
  %175 = getelementptr inbounds ptr, ptr %171, i64 %174
  call void @_ZNSt6vectorIP6aiMeshSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %167, ptr noundef nonnull align 8 dereferenceable(8) %175)
  br label %176

176:                                              ; preds = %166, %145
  %177 = getelementptr inbounds %"class.Assimp::OptimizeMeshesProcess", ptr %18, i32 0, i32 3
  %178 = call noundef i64 @_ZNKSt6vectorIP6aiMeshSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %177) #4
  %179 = sub i64 %178, 1
  %180 = trunc i64 %179 to i32
  %181 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %180, ptr %181, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %182

182:                                              ; preds = %176, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %183

183:                                              ; preds = %182
  %184 = load i32, ptr %5, align 4, !tbaa !9
  %185 = add i32 %184, 1
  store i32 %185, ptr %5, align 4, !tbaa !9
  br label %19, !llvm.loop !42

186:                                              ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %187

187:                                              ; preds = %202, %186
  %188 = load i32, ptr %17, align 4, !tbaa !9
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.aiNode, ptr %189, i32 0, i32 3
  %191 = load i32, ptr %190, align 8, !tbaa !43
  %192 = icmp ult i32 %188, %191
  br i1 %192, label %194, label %193

193:                                              ; preds = %187
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %205

194:                                              ; preds = %187
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.aiNode, ptr %195, i32 0, i32 4
  %197 = load ptr, ptr %196, align 8, !tbaa !44
  %198 = load i32, ptr %17, align 4, !tbaa !9
  %199 = zext i32 %198 to i64
  %200 = getelementptr inbounds ptr, ptr %197, i64 %199
  %201 = load ptr, ptr %200, align 8, !tbaa !5
  call void @_ZN6Assimp21OptimizeMeshesProcess11ProcessNodeEP6aiNode(ptr noundef nonnull align 8 dereferenceable(120) %18, ptr noundef %201)
  br label %202

202:                                              ; preds = %194
  %203 = load i32, ptr %17, align 4, !tbaa !9
  %204 = add i32 %203, 1
  store i32 %204, ptr %17, align 4, !tbaa !9
  br label %187, !llvm.loop !45

205:                                              ; preds = %193
  ret void
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6Assimp21OptimizeMeshesProcess7CanJoinEjjjj(ptr noundef nonnull align 8 dereferenceable(120), i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1 align 2

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

declare void @_ZN6Assimp13SceneCombiner11MergeMeshesEPP6aiMeshjN9__gnu_cxx17__normal_iteratorIPKS2_St6vectorIS2_SaIS2_EEEESB_(ptr noundef, i32 noundef, ptr, ptr) #3

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { "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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 1120}
!12 = !{!"_ZTS6aiNode", !13, i64 0, !14, i64 1028, !6, i64 1096, !10, i64 1104, !6, i64 1112, !10, i64 1120, !6, i64 1128, !6, i64 1136}
!13 = !{!"_ZTS8aiString", !10, i64 0, !7, i64 4}
!14 = !{!"_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}
!15 = !{!"float", !7, i64 0}
!16 = !{!12, !6, i64 1128}
!17 = !{!18, !10, i64 0}
!18 = !{!"_ZTSN6Assimp21OptimizeMeshesProcess8MeshInfoE", !10, i64 0, !10, i64 4, !10, i64 8}
!19 = !{!18, !10, i64 8}
!20 = !{!21, !6, i64 24}
!21 = !{!"_ZTSN6Assimp21OptimizeMeshesProcessE", !22, i64 0, !6, i64 24, !23, i64 32, !27, i64 56, !31, i64 80, !10, i64 84, !10, i64 88, !27, i64 96}
!22 = !{!"_ZTSN6Assimp11BaseProcessE", !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt6vectorIN6Assimp21OptimizeMeshesProcess8MeshInfoESaIS2_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIN6Assimp21OptimizeMeshesProcess8MeshInfoESaIS2_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN6Assimp21OptimizeMeshesProcess8MeshInfoESaIS2_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN6Assimp21OptimizeMeshesProcess8MeshInfoESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSSt6vectorIP6aiMeshSaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIP6aiMeshSaIS1_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIP6aiMeshSaIS1_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIP6aiMeshSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!"bool", !7, i64 0}
!32 = !{!33, !6, i64 24}
!33 = !{!"_ZTS7aiScene", !10, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !10, i64 32, !6, i64 40, !10, i64 48, !6, i64 56, !10, i64 64, !6, i64 72, !10, i64 80, !6, i64 88, !10, i64 96, !6, i64 104, !6, i64 112, !13, i64 120, !10, i64 1148, !6, i64 1152, !6, i64 1160}
!34 = !{!35, !10, i64 4}
!35 = !{!"_ZTS6aiMesh", !10, i64 0, !10, i64 4, !10, 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, !10, i64 216, !6, i64 224, !10, i64 232, !13, i64 236, !10, i64 1264, !6, i64 1272, !36, i64 1280, !37, i64 1284, !6, i64 1312}
!36 = !{!"_ZTS16aiMorphingMethod", !7, i64 0}
!37 = !{!"_ZTS6aiAABB", !38, i64 0, !38, i64 12}
!38 = !{!"_ZTS10aiVector3tIfE", !15, i64 0, !15, i64 4, !15, i64 8}
!39 = !{!35, !10, i64 8}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = distinct !{!42, !41}
!43 = !{!12, !10, i64 1104}
!44 = !{!12, !6, i64 1112}
!45 = distinct !{!45, !41}


; 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.__gnu_cxx::__normal_iterator.5" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

; 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 uwtable
declare dso_local void @_ZNSt6vectorIP6aiMeshSaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp21OptimizeMeshesProcess11ProcessNodeEP6aiNode(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr nocapture noundef %1) local_unnamed_addr #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = getelementptr inbounds i8, ptr %1, i64 1120
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %.preheader, label %.lr.ph52

.lr.ph52:                                         ; preds = %2
  %10 = getelementptr inbounds i8, ptr %1, i64 1128
  %11 = getelementptr inbounds i8, ptr %0, i64 32
  %12 = getelementptr inbounds i8, ptr %0, i64 96
  %13 = getelementptr inbounds i8, ptr %0, i64 24
  %14 = getelementptr inbounds i8, ptr %0, i64 56
  br label %18

.preheader:                                       ; preds = %95, %2
  %15 = getelementptr inbounds i8, ptr %1, i64 1104
  %16 = load i32, ptr %15, align 8, !tbaa !14
  %.not56 = icmp eq i32 %16, 0
  br i1 %.not56, label %._crit_edge55, label %.lr.ph54

.lr.ph54:                                         ; preds = %.preheader
  %17 = getelementptr inbounds i8, ptr %1, i64 1112
  br label %99

18:                                               ; preds = %.lr.ph52, %95
  %indvars.iv = phi i64 [ 0, %.lr.ph52 ], [ %indvars.iv.next.pre-phi, %95 ]
  %19 = load ptr, ptr %10, align 8, !tbaa !15
  %20 = getelementptr inbounds i32, ptr %19, i64 %indvars.iv
  %21 = load i32, ptr %20, align 4, !tbaa !16
  %22 = zext i32 %21 to i64
  %23 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN6Assimp21OptimizeMeshesProcess8MeshInfoESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %22) #4
  %24 = load i32, ptr %23, align 4, !tbaa !17
  %25 = icmp ugt i32 %24, 1
  br i1 %25, label %26, label %32

26:                                               ; preds = %18
  %27 = load i32, ptr %20, align 4, !tbaa !16
  %28 = zext i32 %27 to i64
  %29 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN6Assimp21OptimizeMeshesProcess8MeshInfoESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %28) #4
  %30 = getelementptr inbounds i8, ptr %29, i64 8
  %31 = load i32, ptr %30, align 4, !tbaa !19
  %.pre = add nuw nsw i64 %indvars.iv, 1
  br label %95

32:                                               ; preds = %18
  call void @_ZNSt6vectorIP6aiMeshSaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef 0)
  %33 = add nuw nsw i64 %indvars.iv, 1
  %34 = load i32, ptr %8, align 8, !tbaa !5
  %35 = zext i32 %34 to i64
  %36 = icmp ult i64 %33, %35
  br i1 %36, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %32
  %37 = trunc nuw i64 %33 to i32
  %38 = trunc nuw i64 %indvars.iv to i32
  br label %.lr.ph

._crit_edge:                                      ; preds = %82, %32
  %39 = call noundef zeroext i1 @_ZNKSt6vectorIP6aiMeshSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  %40 = load ptr, ptr %13, align 8, !tbaa !20
  %41 = getelementptr inbounds i8, ptr %40, i64 24
  %42 = load ptr, ptr %41, align 8, !tbaa !32
  %43 = load i32, ptr %20, align 4, !tbaa !16
  %44 = zext i32 %43 to i64
  %45 = getelementptr inbounds ptr, ptr %42, i64 %44
  br i1 %39, label %90, label %85

.lr.ph:                                           ; preds = %.lr.ph.preheader, %82
  %.03948 = phi i32 [ %.039, %82 ], [ %37, %.lr.ph.preheader ]
  %.039.in47 = phi i32 [ %.1, %82 ], [ %38, %.lr.ph.preheader ]
  %.04046 = phi i32 [ %.141, %82 ], [ 0, %.lr.ph.preheader ]
  %.04245 = phi i32 [ %.143, %82 ], [ 0, %.lr.ph.preheader ]
  %46 = load ptr, ptr %10, align 8, !tbaa !15
  %47 = zext i32 %.03948 to i64
  %48 = getelementptr inbounds i32, ptr %46, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !16
  %50 = zext i32 %49 to i64
  %51 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN6Assimp21OptimizeMeshesProcess8MeshInfoESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %50) #4
  %52 = load i32, ptr %51, align 4, !tbaa !17
  %53 = icmp eq i32 %52, 1
  br i1 %53, label %54, label %82

54:                                               ; preds = %.lr.ph
  %55 = load i32, ptr %20, align 4, !tbaa !16
  %56 = call noundef zeroext i1 @_ZN6Assimp21OptimizeMeshesProcess7CanJoinEjjjj(ptr noundef nonnull align 8 dereferenceable(120) %0, i32 noundef %55, i32 noundef %49, i32 noundef %.04245, i32 noundef %.04046)
  br i1 %56, label %57, label %82

57:                                               ; preds = %54
  %58 = load ptr, ptr %13, align 8, !tbaa !20
  %59 = getelementptr inbounds i8, ptr %58, i64 24
  %60 = load ptr, ptr %59, align 8, !tbaa !32
  %61 = getelementptr inbounds ptr, ptr %60, i64 %50
  call void @_ZNSt6vectorIP6aiMeshSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(8) %61)
  %62 = load ptr, ptr %13, align 8, !tbaa !20
  %63 = getelementptr inbounds i8, ptr %62, i64 24
  %64 = load ptr, ptr %63, align 8, !tbaa !32
  %65 = getelementptr inbounds ptr, ptr %64, i64 %50
  %66 = load ptr, ptr %65, align 8, !tbaa !34
  %67 = getelementptr inbounds i8, ptr %66, i64 4
  %68 = load i32, ptr %67, align 4, !tbaa !35
  %69 = add i32 %68, %.04245
  %70 = getelementptr inbounds i8, ptr %66, i64 8
  %71 = load i32, ptr %70, align 8, !tbaa !40
  %72 = add i32 %71, %.04046
  %73 = load ptr, ptr %10, align 8, !tbaa !15
  %74 = load i32, ptr %8, align 8, !tbaa !5
  %75 = add i32 %74, -1
  %76 = zext i32 %75 to i64
  %77 = getelementptr inbounds i32, ptr %73, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !16
  %79 = getelementptr inbounds i32, ptr %73, i64 %47
  store i32 %78, ptr %79, align 4, !tbaa !16
  %80 = load i32, ptr %8, align 8, !tbaa !5
  %81 = add i32 %80, -1
  store i32 %81, ptr %8, align 8, !tbaa !5
  br label %82

82:                                               ; preds = %57, %54, %.lr.ph
  %.143 = phi i32 [ %69, %57 ], [ %.04245, %54 ], [ %.04245, %.lr.ph ]
  %.141 = phi i32 [ %72, %57 ], [ %.04046, %54 ], [ %.04046, %.lr.ph ]
  %.1 = phi i32 [ %.039.in47, %57 ], [ %.03948, %54 ], [ %.03948, %.lr.ph ]
  %.039 = add i32 %.1, 1
  %83 = load i32, ptr %8, align 8, !tbaa !5
  %84 = icmp ult i32 %.039, %83
  br i1 %84, label %.lr.ph, label %._crit_edge, !llvm.loop !41

85:                                               ; preds = %._crit_edge
  call void @_ZNSt6vectorIP6aiMeshSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(8) %45)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %86 = call ptr @_ZNSt6vectorIP6aiMeshSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  store ptr %86, ptr %5, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKP6aiMeshSt6vectorIS2_SaIS2_EEEC2IPS2_vEERKNS0_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %87 = call ptr @_ZNSt6vectorIP6aiMeshSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  store ptr %87, ptr %7, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKP6aiMeshSt6vectorIS2_SaIS2_EEEC2IPS2_vEERKNS0_IT_S7_EE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %88 = load ptr, ptr %4, align 8
  %89 = load ptr, ptr %6, align 8
  call void @_ZN6Assimp13SceneCombiner11MergeMeshesEPP6aiMeshjN9__gnu_cxx17__normal_iteratorIPKS2_St6vectorIS2_SaIS2_EEEESB_(ptr noundef nonnull %3, i32 noundef 0, ptr %88, ptr %89)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @_ZNSt6vectorIP6aiMeshSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  br label %91

90:                                               ; preds = %._crit_edge
  call void @_ZNSt6vectorIP6aiMeshSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(8) %45)
  br label %91

91:                                               ; preds = %90, %85
  %92 = call noundef i64 @_ZNKSt6vectorIP6aiMeshSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #4
  %93 = trunc i64 %92 to i32
  %94 = add i32 %93, -1
  br label %95

95:                                               ; preds = %91, %26
  %indvars.iv.next.pre-phi = phi i64 [ %33, %91 ], [ %.pre, %26 ]
  %storemerge = phi i32 [ %94, %91 ], [ %31, %26 ]
  store i32 %storemerge, ptr %20, align 4, !tbaa !16
  %96 = load i32, ptr %8, align 8, !tbaa !5
  %97 = zext i32 %96 to i64
  %98 = icmp ult i64 %indvars.iv.next.pre-phi, %97
  br i1 %98, label %18, label %.preheader, !llvm.loop !43

._crit_edge55:                                    ; preds = %99, %.preheader
  ret void

99:                                               ; preds = %.lr.ph54, %99
  %indvars.iv59 = phi i64 [ 0, %.lr.ph54 ], [ %indvars.iv.next60, %99 ]
  %100 = load ptr, ptr %17, align 8, !tbaa !44
  %101 = getelementptr inbounds ptr, ptr %100, i64 %indvars.iv59
  %102 = load ptr, ptr %101, align 8, !tbaa !34
  call void @_ZN6Assimp21OptimizeMeshesProcess11ProcessNodeEP6aiNode(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef %102)
  %indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
  %103 = load i32, ptr %15, align 8, !tbaa !14
  %104 = zext i32 %103 to i64
  %105 = icmp ult i64 %indvars.iv.next60, %104
  br i1 %105, label %99, label %._crit_edge55, !llvm.loop !45
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6Assimp21OptimizeMeshesProcess7CanJoinEjjjj(ptr noundef nonnull align 8 dereferenceable(120), i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

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

declare void @_ZN6Assimp13SceneCombiner11MergeMeshesEPP6aiMeshjN9__gnu_cxx17__normal_iteratorIPKS2_St6vectorIS2_SaIS2_EEEESB_(ptr noundef, i32 noundef, ptr, ptr) local_unnamed_addr #3

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { "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 = { 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, !8, i64 1120}
!6 = !{!"_ZTS6aiNode", !7, i64 0, !11, i64 1028, !13, i64 1096, !8, i64 1104, !13, i64 1112, !8, i64 1120, !13, i64 1128, !13, i64 1136}
!7 = !{!"_ZTS8aiString", !8, i64 0, !9, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTS12aiMatrix4x4tIfE", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60}
!12 = !{!"float", !9, i64 0}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!6, !8, i64 1104}
!15 = !{!6, !13, i64 1128}
!16 = !{!8, !8, i64 0}
!17 = !{!18, !8, i64 0}
!18 = !{!"_ZTSN6Assimp21OptimizeMeshesProcess8MeshInfoE", !8, i64 0, !8, i64 4, !8, i64 8}
!19 = !{!18, !8, i64 8}
!20 = !{!21, !13, i64 24}
!21 = !{!"_ZTSN6Assimp21OptimizeMeshesProcessE", !22, i64 0, !13, i64 24, !23, i64 32, !27, i64 56, !31, i64 80, !8, i64 84, !8, i64 88, !27, i64 96}
!22 = !{!"_ZTSN6Assimp11BaseProcessE", !13, i64 8, !13, i64 16}
!23 = !{!"_ZTSSt6vectorIN6Assimp21OptimizeMeshesProcess8MeshInfoESaIS2_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIN6Assimp21OptimizeMeshesProcess8MeshInfoESaIS2_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN6Assimp21OptimizeMeshesProcess8MeshInfoESaIS2_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN6Assimp21OptimizeMeshesProcess8MeshInfoESaIS2_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!27 = !{!"_ZTSSt6vectorIP6aiMeshSaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIP6aiMeshSaIS1_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIP6aiMeshSaIS1_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIP6aiMeshSaIS1_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!31 = !{!"bool", !9, i64 0}
!32 = !{!33, !13, i64 24}
!33 = !{!"_ZTS7aiScene", !8, i64 0, !13, i64 8, !8, i64 16, !13, i64 24, !8, i64 32, !13, i64 40, !8, i64 48, !13, i64 56, !8, i64 64, !13, i64 72, !8, i64 80, !13, i64 88, !8, i64 96, !13, i64 104, !13, i64 112, !7, i64 120, !8, i64 1148, !13, i64 1152, !13, i64 1160}
!34 = !{!13, !13, i64 0}
!35 = !{!36, !8, i64 4}
!36 = !{!"_ZTS6aiMesh", !8, i64 0, !8, i64 4, !8, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !9, i64 48, !9, i64 112, !9, i64 176, !13, i64 208, !8, i64 216, !13, i64 224, !8, i64 232, !7, i64 236, !8, i64 1264, !13, i64 1272, !37, i64 1280, !38, i64 1284, !13, i64 1312}
!37 = !{!"_ZTS16aiMorphingMethod", !9, i64 0}
!38 = !{!"_ZTS6aiAABB", !39, i64 0, !39, i64 12}
!39 = !{!"_ZTS10aiVector3tIfE", !12, i64 0, !12, i64 4, !12, i64 8}
!40 = !{!36, !8, i64 8}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}
!43 = distinct !{!43, !42}
!44 = !{!6, !13, i64 1112}
!45 = distinct !{!45, !42}


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