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

; 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" = type { ptr }
%class.aiVector3t = type { float, float, float }
%"class.__gnu_cxx::__normal_iterator.10" = type { ptr }
%"class.Assimp::SkeletonMeshBuilder" = type <{ %"class.std::vector", %"class.std::vector.0", %"class.std::vector.5", i8, [7 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<aiVector3t<float>, std::allocator<aiVector3t<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<aiVector3t<float>, std::allocator<aiVector3t<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<aiVector3t<float>, std::allocator<aiVector3t<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<aiVector3t<float>, std::allocator<aiVector3t<float>>>::_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<Assimp::SkeletonMeshBuilder::Face, std::allocator<Assimp::SkeletonMeshBuilder::Face>>::_Vector_impl" }
%"struct.std::_Vector_base<Assimp::SkeletonMeshBuilder::Face, std::allocator<Assimp::SkeletonMeshBuilder::Face>>::_Vector_impl" = type { %"struct.std::_Vector_base<Assimp::SkeletonMeshBuilder::Face, std::allocator<Assimp::SkeletonMeshBuilder::Face>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Assimp::SkeletonMeshBuilder::Face, std::allocator<Assimp::SkeletonMeshBuilder::Face>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<aiBone *, std::allocator<aiBone *>>::_Vector_impl" }
%"struct.std::_Vector_base<aiBone *, std::allocator<aiBone *>>::_Vector_impl" = type { %"struct.std::_Vector_base<aiBone *, std::allocator<aiBone *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<aiBone *, std::allocator<aiBone *>>::_Vector_impl_data" = type { ptr, 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.aiString = type { i32, [1024 x i8] }
%struct.aiAABB = type { %class.aiVector3t, %class.aiVector3t }
%struct.aiFace = type { i32, ptr }
%"struct.Assimp::SkeletonMeshBuilder::Face" = type { [3 x i32] }

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN6Assimp19SkeletonMeshBuilder10CreateMeshEv(ptr noundef nonnull align 8 dereferenceable(73) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %class.aiVector3t, align 4
  %11 = alloca %class.aiVector3t, align 4
  %12 = alloca { <2 x float>, float }, align 8
  %13 = alloca %class.aiVector3t, align 4
  %14 = alloca { <2 x float>, float }, align 8
  %15 = alloca { <2 x float>, float }, align 8
  %16 = alloca %class.aiVector3t, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %20 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  %21 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 1320) #8
  call void @_ZN6aiMeshC2Ev(ptr noundef nonnull align 8 dereferenceable(1320) %21) #7
  store ptr %21, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %"class.Assimp::SkeletonMeshBuilder", ptr %20, i32 0, i32 0
  %23 = call noundef i64 @_ZNKSt6vectorI10aiVector3tIfESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  %24 = trunc i64 %23 to i32
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.aiMesh, ptr %25, i32 0, i32 1
  store i32 %24, ptr %26, align 4, !tbaa !9
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.aiMesh, ptr %27, i32 0, i32 1
  %29 = load i32, ptr %28, align 4, !tbaa !9
  %30 = zext i32 %29 to i64
  %31 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %30, i64 12)
  %32 = extractvalue { i64, i1 } %31, 1
  %33 = extractvalue { i64, i1 } %31, 0
  %34 = select i1 %32, i64 -1, i64 %33
  %35 = call noalias noundef nonnull ptr @_Znam(i64 noundef %34) #8
  %36 = icmp eq i64 %30, 0
  br i1 %36, label %43, label %37

37:                                               ; preds = %1
  %38 = getelementptr inbounds %class.aiVector3t, ptr %35, i64 %30
  br label %39

39:                                               ; preds = %39, %37
  %40 = phi ptr [ %35, %37 ], [ %41, %39 ]
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %40) #7
  %41 = getelementptr inbounds %class.aiVector3t, ptr %40, i64 1
  %42 = icmp eq ptr %41, %38
  br i1 %42, label %43, label %39

43:                                               ; preds = %39, %1
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.aiMesh, ptr %44, i32 0, i32 3
  store ptr %35, ptr %45, align 8, !tbaa !17
  %46 = getelementptr inbounds %"class.Assimp::SkeletonMeshBuilder", ptr %20, i32 0, i32 0
  %47 = call ptr @_ZNSt6vectorI10aiVector3tIfESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #7
  %48 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
  store ptr %47, ptr %48, align 8
  %49 = getelementptr inbounds %"class.Assimp::SkeletonMeshBuilder", ptr %20, i32 0, i32 0
  %50 = call ptr @_ZNSt6vectorI10aiVector3tIfESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #7
  %51 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  store ptr %50, ptr %51, align 8
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.aiMesh, ptr %52, i32 0, i32 3
  %54 = load ptr, ptr %53, align 8, !tbaa !17
  %55 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8
  %57 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8
  %59 = call noundef ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIP10aiVector3tIfESt6vectorIS3_SaIS3_EEEES4_ET0_T_SA_S9_(ptr %56, ptr %58, ptr noundef %54)
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.aiMesh, ptr %60, i32 0, i32 1
  %62 = load i32, ptr %61, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %63, i64 12)
  %65 = extractvalue { i64, i1 } %64, 1
  %66 = extractvalue { i64, i1 } %64, 0
  %67 = select i1 %65, i64 -1, i64 %66
  %68 = call noalias noundef nonnull ptr @_Znam(i64 noundef %67) #8
  %69 = icmp eq i64 %63, 0
  br i1 %69, label %76, label %70

70:                                               ; preds = %43
  %71 = getelementptr inbounds %class.aiVector3t, ptr %68, i64 %63
  br label %72

72:                                               ; preds = %72, %70
  %73 = phi ptr [ %68, %70 ], [ %74, %72 ]
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %73) #7
  %74 = getelementptr inbounds %class.aiVector3t, ptr %73, i64 1
  %75 = icmp eq ptr %74, %71
  br i1 %75, label %76, label %72

76:                                               ; preds = %72, %43
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.aiMesh, ptr %77, i32 0, i32 4
  store ptr %68, ptr %78, align 8, !tbaa !18
  %79 = getelementptr inbounds %"class.Assimp::SkeletonMeshBuilder", ptr %20, i32 0, i32 1
  %80 = call noundef i64 @_ZNKSt6vectorIN6Assimp19SkeletonMeshBuilder4FaceESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %79) #7
  %81 = trunc i64 %80 to i32
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.aiMesh, ptr %82, i32 0, i32 2
  store i32 %81, ptr %83, align 8, !tbaa !19
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.aiMesh, ptr %84, i32 0, i32 2
  %86 = load i32, ptr %85, align 8, !tbaa !19
  %87 = zext i32 %86 to i64
  %88 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %87, i64 16)
  %89 = extractvalue { i64, i1 } %88, 1
  %90 = extractvalue { i64, i1 } %88, 0
  %91 = call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %90, i64 8)
  %92 = extractvalue { i64, i1 } %91, 1
  %93 = or i1 %89, %92
  %94 = extractvalue { i64, i1 } %91, 0
  %95 = select i1 %93, i64 -1, i64 %94
  %96 = call noalias noundef nonnull ptr @_Znam(i64 noundef %95) #8
  store i64 %87, ptr %96, align 16
  %97 = getelementptr inbounds i8, ptr %96, i64 8
  %98 = icmp eq i64 %87, 0
  br i1 %98, label %105, label %99

99:                                               ; preds = %76
  %100 = getelementptr inbounds %struct.aiFace, ptr %97, i64 %87
  br label %101

101:                                              ; preds = %101, %99
  %102 = phi ptr [ %97, %99 ], [ %103, %101 ]
  call void @_ZN6aiFaceC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %102) #7
  %103 = getelementptr inbounds %struct.aiFace, ptr %102, i64 1
  %104 = icmp eq ptr %103, %100
  br i1 %104, label %105, label %101

105:                                              ; preds = %101, %76
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.aiMesh, ptr %106, i32 0, i32 10
  store ptr %97, ptr %107, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !21
  br label %108

108:                                              ; preds = %211, %105
  %109 = load i32, ptr %6, align 4, !tbaa !21
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.aiMesh, ptr %110, i32 0, i32 2
  %112 = load i32, ptr %111, align 8, !tbaa !19
  %113 = icmp ult i32 %109, %112
  br i1 %113, label %115, label %114

114:                                              ; preds = %108
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %214

115:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %116 = getelementptr inbounds %"class.Assimp::SkeletonMeshBuilder", ptr %20, i32 0, i32 1
  %117 = load i32, ptr %6, align 4, !tbaa !21
  %118 = zext i32 %117 to i64
  %119 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN6Assimp19SkeletonMeshBuilder4FaceESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %118) #7
  store ptr %119, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %120 = load ptr, ptr %3, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.aiMesh, ptr %120, i32 0, i32 10
  %122 = load ptr, ptr %121, align 8, !tbaa !20
  %123 = load i32, ptr %6, align 4, !tbaa !21
  %124 = zext i32 %123 to i64
  %125 = getelementptr inbounds %struct.aiFace, ptr %122, i64 %124
  store ptr %125, ptr %9, align 8, !tbaa !5
  %126 = load ptr, ptr %9, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.aiFace, ptr %126, i32 0, i32 0
  store i32 3, ptr %127, align 8, !tbaa !22
  %128 = call noalias noundef nonnull ptr @_Znam(i64 noundef 12) #8
  %129 = load ptr, ptr %9, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.aiFace, ptr %129, i32 0, i32 1
  store ptr %128, ptr %130, align 8, !tbaa !24
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.Assimp::SkeletonMeshBuilder::Face", ptr %131, i32 0, i32 0
  %133 = getelementptr inbounds [3 x i32], ptr %132, i64 0, i64 0
  %134 = load i32, ptr %133, align 4, !tbaa !21
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.aiFace, ptr %135, i32 0, i32 1
  %137 = load ptr, ptr %136, align 8, !tbaa !24
  %138 = getelementptr inbounds i32, ptr %137, i64 0
  store i32 %134, ptr %138, align 4, !tbaa !21
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.Assimp::SkeletonMeshBuilder::Face", ptr %139, i32 0, i32 0
  %141 = getelementptr inbounds [3 x i32], ptr %140, i64 0, i64 1
  %142 = load i32, ptr %141, align 4, !tbaa !21
  %143 = load ptr, ptr %9, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.aiFace, ptr %143, i32 0, i32 1
  %145 = load ptr, ptr %144, align 8, !tbaa !24
  %146 = getelementptr inbounds i32, ptr %145, i64 1
  store i32 %142, ptr %146, align 4, !tbaa !21
  %147 = load ptr, ptr %8, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.Assimp::SkeletonMeshBuilder::Face", ptr %147, i32 0, i32 0
  %149 = getelementptr inbounds [3 x i32], ptr %148, i64 0, i64 2
  %150 = load i32, ptr %149, align 4, !tbaa !21
  %151 = load ptr, ptr %9, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.aiFace, ptr %151, i32 0, i32 1
  %153 = load ptr, ptr %152, align 8, !tbaa !24
  %154 = getelementptr inbounds i32, ptr %153, i64 2
  store i32 %150, ptr %154, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #7
  %155 = getelementptr inbounds %"class.Assimp::SkeletonMeshBuilder", ptr %20, i32 0, i32 0
  %156 = load ptr, ptr %8, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.Assimp::SkeletonMeshBuilder::Face", ptr %156, i32 0, i32 0
  %158 = getelementptr inbounds [3 x i32], ptr %157, i64 0, i64 2
  %159 = load i32, ptr %158, align 4, !tbaa !21
  %160 = zext i32 %159 to i64
  %161 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI10aiVector3tIfESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %155, i64 noundef %160) #7
  %162 = getelementptr inbounds %"class.Assimp::SkeletonMeshBuilder", ptr %20, i32 0, i32 0
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  %164 = getelementptr inbounds %"struct.Assimp::SkeletonMeshBuilder::Face", ptr %163, i32 0, i32 0
  %165 = getelementptr inbounds [3 x i32], ptr %164, i64 0, i64 0
  %166 = load i32, ptr %165, align 4, !tbaa !21
  %167 = zext i32 %166 to i64
  %168 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI10aiVector3tIfESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %162, i64 noundef %167) #7
  %169 = call { <2 x float>, float } @_ZmiIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12) %161, ptr noundef nonnull align 4 dereferenceable(12) %168)
  store { <2 x float>, float } %169, ptr %12, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 8 %12, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #7
  %170 = getelementptr inbounds %"class.Assimp::SkeletonMeshBuilder", ptr %20, i32 0, i32 0
  %171 = load ptr, ptr %8, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.Assimp::SkeletonMeshBuilder::Face", ptr %171, i32 0, i32 0
  %173 = getelementptr inbounds [3 x i32], ptr %172, i64 0, i64 1
  %174 = load i32, ptr %173, align 4, !tbaa !21
  %175 = zext i32 %174 to i64
  %176 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI10aiVector3tIfESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %170, i64 noundef %175) #7
  %177 = getelementptr inbounds %"class.Assimp::SkeletonMeshBuilder", ptr %20, i32 0, i32 0
  %178 = load ptr, ptr %8, align 8, !tbaa !5
  %179 = getelementptr inbounds %"struct.Assimp::SkeletonMeshBuilder::Face", ptr %178, i32 0, i32 0
  %180 = getelementptr inbounds [3 x i32], ptr %179, i64 0, i64 0
  %181 = load i32, ptr %180, align 4, !tbaa !21
  %182 = zext i32 %181 to i64
  %183 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI10aiVector3tIfESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %177, i64 noundef %182) #7
  %184 = call { <2 x float>, float } @_ZmiIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12) %176, ptr noundef nonnull align 4 dereferenceable(12) %183)
  store { <2 x float>, float } %184, ptr %14, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 8 %14, i64 12, i1 false)
  %185 = call { <2 x float>, float } @_ZeoIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %13)
  store { <2 x float>, float } %185, ptr %15, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 8 %15, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #7
  %186 = call noundef float @_ZNK10aiVector3tIfE6LengthEv(ptr noundef nonnull align 4 dereferenceable(12) %10)
  %187 = fpext float %186 to double
  %188 = fcmp olt double %187, 1.000000e-05
  br i1 %188, label %189, label %190

189:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #7
  call void @_ZN10aiVector3tIfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %16, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %16, i64 12, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #7
  br label %190

190:                                              ; preds = %189, %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !21
  br label %191

191:                                              ; preds = %207, %190
  %192 = load i32, ptr %17, align 4, !tbaa !21
  %193 = icmp ult i32 %192, 3
  br i1 %193, label %195, label %194

194:                                              ; preds = %191
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %210

195:                                              ; preds = %191
  %196 = load ptr, ptr %3, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.aiMesh, ptr %196, i32 0, i32 4
  %198 = load ptr, ptr %197, align 8, !tbaa !18
  %199 = load ptr, ptr %8, align 8, !tbaa !5
  %200 = getelementptr inbounds %"struct.Assimp::SkeletonMeshBuilder::Face", ptr %199, i32 0, i32 0
  %201 = load i32, ptr %17, align 4, !tbaa !21
  %202 = zext i32 %201 to i64
  %203 = getelementptr inbounds [3 x i32], ptr %200, i64 0, i64 %202
  %204 = load i32, ptr %203, align 4, !tbaa !21
  %205 = zext i32 %204 to i64
  %206 = getelementptr inbounds %class.aiVector3t, ptr %198, i64 %205
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %206, ptr align 4 %10, i64 12, i1 false), !tbaa.struct !25
  br label %207

207:                                              ; preds = %195
  %208 = load i32, ptr %17, align 4, !tbaa !21
  %209 = add i32 %208, 1
  store i32 %209, ptr %17, align 4, !tbaa !21
  br label %191, !llvm.loop !27

210:                                              ; preds = %194
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %211

211:                                              ; preds = %210
  %212 = load i32, ptr %6, align 4, !tbaa !21
  %213 = add i32 %212, 1
  store i32 %213, ptr %6, align 4, !tbaa !21
  br label %108, !llvm.loop !29

214:                                              ; preds = %114
  %215 = getelementptr inbounds %"class.Assimp::SkeletonMeshBuilder", ptr %20, i32 0, i32 2
  %216 = call noundef i64 @_ZNKSt6vectorIP6aiBoneSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %215) #7
  %217 = trunc i64 %216 to i32
  %218 = load ptr, ptr %3, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.aiMesh, ptr %218, i32 0, i32 11
  store i32 %217, ptr %219, align 8, !tbaa !30
  %220 = load ptr, ptr %3, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.aiMesh, ptr %220, i32 0, i32 11
  %222 = load i32, ptr %221, align 8, !tbaa !30
  %223 = zext i32 %222 to i64
  %224 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %223, i64 8)
  %225 = extractvalue { i64, i1 } %224, 1
  %226 = extractvalue { i64, i1 } %224, 0
  %227 = select i1 %225, i64 -1, i64 %226
  %228 = call noalias noundef nonnull ptr @_Znam(i64 noundef %227) #8
  %229 = load ptr, ptr %3, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.aiMesh, ptr %229, i32 0, i32 12
  store ptr %228, ptr %230, align 8, !tbaa !31
  %231 = getelementptr inbounds %"class.Assimp::SkeletonMeshBuilder", ptr %20, i32 0, i32 2
  %232 = call ptr @_ZNSt6vectorIP6aiBoneSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %231) #7
  %233 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %18, i32 0, i32 0
  store ptr %232, ptr %233, align 8
  %234 = getelementptr inbounds %"class.Assimp::SkeletonMeshBuilder", ptr %20, i32 0, i32 2
  %235 = call ptr @_ZNSt6vectorIP6aiBoneSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %234) #7
  %236 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %19, i32 0, i32 0
  store ptr %235, ptr %236, align 8
  %237 = load ptr, ptr %3, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.aiMesh, ptr %237, i32 0, i32 12
  %239 = load ptr, ptr %238, align 8, !tbaa !31
  %240 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %18, i32 0, i32 0
  %241 = load ptr, ptr %240, align 8
  %242 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %19, i32 0, i32 0
  %243 = load ptr, ptr %242, align 8
  %244 = call noundef ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPP6aiBoneSt6vectorIS3_SaIS3_EEEES4_ET0_T_SA_S9_(ptr %241, ptr %243, ptr noundef %239)
  %245 = load ptr, ptr %3, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.aiMesh, ptr %245, i32 0, i32 13
  store i32 0, ptr %246, align 8, !tbaa !32
  %247 = load ptr, ptr %3, align 8, !tbaa !5
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  ret ptr %247
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZNK10aiVector3tIfE6LengthEv(ptr noundef nonnull align 4 dereferenceable(12)) #4 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZeoIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #4

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIP10aiVector3tIfESt6vectorIS3_SaIS3_EEEES4_ET0_T_SA_S9_(ptr, ptr, ptr noundef) #4

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZmiIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPP6aiBoneSt6vectorIS3_SaIS3_EEEES4_ET0_T_SA_S9_(ptr, ptr, ptr noundef) #4

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

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

attributes #0 = { 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 #1 = { mustprogress uwtable "min-legal-vector-width"="64" "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 nosync 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 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { 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 4}
!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 = !{!10, !6, i64 16}
!18 = !{!10, !6, i64 24}
!19 = !{!10, !11, i64 8}
!20 = !{!10, !6, i64 208}
!21 = !{!11, !11, i64 0}
!22 = !{!23, !11, i64 0}
!23 = !{!"_ZTS6aiFace", !11, i64 0, !6, i64 8}
!24 = !{!23, !6, i64 8}
!25 = !{i64 0, i64 4, !26, i64 4, i64 4, !26, i64 8, i64 4, !26}
!26 = !{!16, !16, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = !{!10, !11, i64 216}
!31 = !{!10, !6, i64 224}
!32 = !{!10, !11, i64 232}


; 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.aiVector3t = type { float, float, float }
%struct.aiFace = type { i32, ptr }

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

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull ptr @_ZN6Assimp19SkeletonMeshBuilder10CreateMeshEv(ptr noundef nonnull align 8 dereferenceable(73) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca %class.aiVector3t, align 8
  %3 = alloca %class.aiVector3t, align 8
  %4 = alloca %class.aiVector3t, align 8
  %5 = alloca %class.aiVector3t, align 4
  %6 = tail call noalias noundef nonnull dereferenceable(1320) ptr @_Znwm(i64 noundef 1320) #6
  tail call void @_ZN6aiMeshC2Ev(ptr noundef nonnull align 8 dereferenceable(1320) %6) #7
  %7 = tail call noundef i64 @_ZNKSt6vectorI10aiVector3tIfESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %8 = trunc i64 %7 to i32
  %9 = getelementptr inbounds i8, ptr %6, i64 4
  store i32 %8, ptr %9, align 4, !tbaa !5
  %10 = and i64 %7, 4294967295
  %11 = mul nuw nsw i64 %10, 12
  %12 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %11) #6
  %13 = icmp eq i64 %10, 0
  br i1 %13, label %.loopexit55, label %14

14:                                               ; preds = %1
  %15 = getelementptr inbounds %class.aiVector3t, ptr %12, i64 %10
  br label %16

16:                                               ; preds = %16, %14
  %17 = phi ptr [ %12, %14 ], [ %18, %16 ]
  tail call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %17) #7
  %18 = getelementptr inbounds i8, ptr %17, i64 12
  %19 = icmp eq ptr %18, %15
  br i1 %19, label %.loopexit55, label %16

.loopexit55:                                      ; preds = %16, %1
  %20 = getelementptr inbounds i8, ptr %6, i64 16
  store ptr %12, ptr %20, align 8, !tbaa !16
  %21 = tail call ptr @_ZNSt6vectorI10aiVector3tIfESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %22 = tail call ptr @_ZNSt6vectorI10aiVector3tIfESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %23 = load ptr, ptr %20, align 8, !tbaa !16
  %24 = tail call noundef ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIP10aiVector3tIfESt6vectorIS3_SaIS3_EEEES4_ET0_T_SA_S9_(ptr %21, ptr %22, ptr noundef %23)
  %25 = load i32, ptr %9, align 4, !tbaa !5
  %26 = zext i32 %25 to i64
  %27 = mul nuw nsw i64 %26, 12
  %28 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %27) #6
  %29 = icmp eq i32 %25, 0
  br i1 %29, label %.loopexit54, label %30

30:                                               ; preds = %.loopexit55
  %31 = getelementptr inbounds %class.aiVector3t, ptr %28, i64 %26
  br label %32

32:                                               ; preds = %32, %30
  %33 = phi ptr [ %28, %30 ], [ %34, %32 ]
  tail call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %33) #7
  %34 = getelementptr inbounds i8, ptr %33, i64 12
  %35 = icmp eq ptr %34, %31
  br i1 %35, label %.loopexit54, label %32

.loopexit54:                                      ; preds = %32, %.loopexit55
  %36 = getelementptr inbounds i8, ptr %6, i64 24
  store ptr %28, ptr %36, align 8, !tbaa !17
  %37 = getelementptr inbounds i8, ptr %0, i64 24
  %38 = tail call noundef i64 @_ZNKSt6vectorIN6Assimp19SkeletonMeshBuilder4FaceESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #7
  %39 = trunc i64 %38 to i32
  %40 = getelementptr inbounds i8, ptr %6, i64 8
  store i32 %39, ptr %40, align 8, !tbaa !18
  %41 = and i64 %38, 4294967295
  %42 = shl nuw nsw i64 %41, 4
  %43 = or disjoint i64 %42, 8
  %44 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %43) #6
  store i64 %41, ptr %44, align 16
  %45 = getelementptr inbounds i8, ptr %44, i64 8
  %46 = icmp eq i64 %41, 0
  br i1 %46, label %.loopexit, label %47

47:                                               ; preds = %.loopexit54
  %48 = getelementptr inbounds %struct.aiFace, ptr %45, i64 %41
  br label %49

49:                                               ; preds = %49, %47
  %50 = phi ptr [ %45, %47 ], [ %51, %49 ]
  tail call void @_ZN6aiFaceC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %50) #7
  %51 = getelementptr inbounds i8, ptr %50, i64 16
  %52 = icmp eq ptr %51, %48
  br i1 %52, label %.loopexit.loopexit, label %49

.loopexit.loopexit:                               ; preds = %49
  %.pre = load i32, ptr %40, align 8, !tbaa !18
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %.loopexit54
  %53 = phi i32 [ %.pre, %.loopexit.loopexit ], [ %39, %.loopexit54 ]
  %54 = getelementptr inbounds i8, ptr %6, i64 208
  store ptr %45, ptr %54, align 8, !tbaa !19
  %.not = icmp eq i32 %53, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.loopexit
  %.sroa.212.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  br label %68

._crit_edge:                                      ; preds = %99, %.loopexit
  %55 = getelementptr inbounds i8, ptr %0, i64 48
  %56 = call noundef i64 @_ZNKSt6vectorIP6aiBoneSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #7
  %57 = trunc i64 %56 to i32
  %58 = getelementptr inbounds i8, ptr %6, i64 216
  store i32 %57, ptr %58, align 8, !tbaa !20
  %59 = shl i64 %56, 3
  %60 = and i64 %59, 34359738360
  %61 = call noalias noundef nonnull ptr @_Znam(i64 noundef %60) #6
  %62 = getelementptr inbounds i8, ptr %6, i64 224
  store ptr %61, ptr %62, align 8, !tbaa !21
  %63 = call ptr @_ZNSt6vectorIP6aiBoneSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #7
  %64 = call ptr @_ZNSt6vectorIP6aiBoneSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #7
  %65 = load ptr, ptr %62, align 8, !tbaa !21
  %66 = call noundef ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPP6aiBoneSt6vectorIS3_SaIS3_EEEES4_ET0_T_SA_S9_(ptr %63, ptr %64, ptr noundef %65)
  %67 = getelementptr inbounds i8, ptr %6, i64 232
  store i32 0, ptr %67, align 8, !tbaa !22
  ret ptr %6

68:                                               ; preds = %.lr.ph, %99
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %99 ]
  %69 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN6Assimp19SkeletonMeshBuilder4FaceESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %indvars.iv) #7
  %70 = load ptr, ptr %54, align 8, !tbaa !19
  %71 = getelementptr inbounds %struct.aiFace, ptr %70, i64 %indvars.iv
  store i32 3, ptr %71, align 8, !tbaa !23
  %72 = call noalias noundef nonnull dereferenceable(12) ptr @_Znam(i64 noundef 12) #6
  %73 = getelementptr inbounds i8, ptr %71, i64 8
  store ptr %72, ptr %73, align 8, !tbaa !25
  %74 = load i32, ptr %69, align 4, !tbaa !26
  store i32 %74, ptr %72, align 4, !tbaa !26
  %75 = getelementptr inbounds i8, ptr %69, i64 4
  %76 = load i32, ptr %75, align 4, !tbaa !26
  %77 = getelementptr inbounds i8, ptr %72, i64 4
  store i32 %76, ptr %77, align 4, !tbaa !26
  %78 = getelementptr inbounds i8, ptr %69, i64 8
  %79 = load i32, ptr %78, align 4, !tbaa !26
  %80 = getelementptr inbounds i8, ptr %72, i64 8
  store i32 %79, ptr %80, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #7
  %81 = zext i32 %79 to i64
  %82 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI10aiVector3tIfESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %81) #7
  %83 = load i32, ptr %69, align 4, !tbaa !26
  %84 = zext i32 %83 to i64
  %85 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI10aiVector3tIfESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %84) #7
  %86 = call { <2 x float>, float } @_ZmiIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12) %82, ptr noundef nonnull align 4 dereferenceable(12) %85)
  %.fca.0.extract9 = extractvalue { <2 x float>, float } %86, 0
  %.fca.1.extract10 = extractvalue { <2 x float>, float } %86, 1
  store <2 x float> %.fca.0.extract9, ptr %3, align 8
  store float %.fca.1.extract10, ptr %.sroa.212.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #7
  %87 = load i32, ptr %75, align 4, !tbaa !26
  %88 = zext i32 %87 to i64
  %89 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI10aiVector3tIfESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %88) #7
  %90 = load i32, ptr %69, align 4, !tbaa !26
  %91 = zext i32 %90 to i64
  %92 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI10aiVector3tIfESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %91) #7
  %93 = call { <2 x float>, float } @_ZmiIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12) %89, ptr noundef nonnull align 4 dereferenceable(12) %92)
  %.fca.0.extract5 = extractvalue { <2 x float>, float } %93, 0
  %.fca.1.extract6 = extractvalue { <2 x float>, float } %93, 1
  store <2 x float> %.fca.0.extract5, ptr %4, align 8
  store float %.fca.1.extract6, ptr %.sroa.28.0..sroa_idx, align 8
  %94 = call { <2 x float>, float } @_ZeoIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %4)
  %.fca.0.extract = extractvalue { <2 x float>, float } %94, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %94, 1
  store <2 x float> %.fca.0.extract, ptr %2, align 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #7
  %95 = call noundef float @_ZNK10aiVector3tIfE6LengthEv(ptr noundef nonnull align 4 dereferenceable(12) %2)
  %96 = fpext float %95 to double
  %97 = fcmp olt double %96, 1.000000e-05
  br i1 %97, label %98, label %99

98:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #7
  call void @_ZN10aiVector3tIfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %5, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %5, i64 12, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #7
  br label %99

99:                                               ; preds = %98, %68
  %100 = load ptr, ptr %36, align 8, !tbaa !17
  %101 = load i32, ptr %69, align 4, !tbaa !26
  %102 = zext i32 %101 to i64
  %103 = getelementptr inbounds %class.aiVector3t, ptr %100, i64 %102
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %103, ptr noundef nonnull align 8 dereferenceable(12) %2, i64 12, i1 false), !tbaa.struct !27
  %104 = load ptr, ptr %36, align 8, !tbaa !17
  %105 = load i32, ptr %75, align 4, !tbaa !26
  %106 = zext i32 %105 to i64
  %107 = getelementptr inbounds %class.aiVector3t, ptr %104, i64 %106
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %107, ptr noundef nonnull align 8 dereferenceable(12) %2, i64 12, i1 false), !tbaa.struct !27
  %108 = load ptr, ptr %36, align 8, !tbaa !17
  %109 = load i32, ptr %78, align 4, !tbaa !26
  %110 = zext i32 %109 to i64
  %111 = getelementptr inbounds %class.aiVector3t, ptr %108, i64 %110
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %111, ptr noundef nonnull align 8 dereferenceable(12) %2, i64 12, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %112 = load i32, ptr %40, align 8, !tbaa !18
  %113 = zext i32 %112 to i64
  %114 = icmp ult i64 %indvars.iv.next, %113
  br i1 %114, label %68, label %._crit_edge, !llvm.loop !29
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZNK10aiVector3tIfE6LengthEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZeoIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIP10aiVector3tIfESt6vectorIS3_SaIS3_EEEES4_ET0_T_SA_S9_(ptr, ptr, ptr noundef) local_unnamed_addr #4

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZmiIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPP6aiBoneSt6vectorIS3_SaIS3_EEEES4_ET0_T_SA_S9_(ptr, ptr, ptr noundef) local_unnamed_addr #4

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

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

attributes #0 = { 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 #1 = { mustprogress uwtable "min-legal-vector-width"="64" "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 nosync 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 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { builtin allocsize(0) }
attributes #7 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 4}
!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 16}
!17 = !{!6, !10, i64 24}
!18 = !{!6, !7, i64 8}
!19 = !{!6, !10, i64 208}
!20 = !{!6, !7, i64 216}
!21 = !{!6, !10, i64 224}
!22 = !{!6, !7, i64 232}
!23 = !{!24, !7, i64 0}
!24 = !{!"_ZTS6aiFace", !7, i64 0, !10, i64 8}
!25 = !{!24, !10, i64 8}
!26 = !{!7, !7, i64 0}
!27 = !{i64 0, i64 4, !28, i64 4, i64 4, !28, i64 8, i64 4, !28}
!28 = !{!15, !15, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}


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