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

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

%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<aiVertexWeight, std::allocator<aiVertexWeight>>::_Vector_impl" }
%"struct.std::_Vector_base<aiVertexWeight, std::allocator<aiVertexWeight>>::_Vector_impl" = type { %"struct.std::_Vector_base<aiVertexWeight, std::allocator<aiVertexWeight>>::_Vector_impl_data" }
%"struct.std::_Vector_base<aiVertexWeight, std::allocator<aiVertexWeight>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.aiString = type { i32, [1024 x i8] }
%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 }
%"class.Assimp::SplitLargeMeshesProcess_Triangle" = type <{ %"class.Assimp::BaseProcess", i32, [4 x i8] }>
%"class.Assimp::BaseProcess" = type { ptr, ptr, ptr }
%struct.aiFace = type { i32, ptr }
%class.aiColor4t = type { float, float, float, float }
%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.aiVertexWeight = type { i32, float }

@.str.4 = external hidden unnamed_addr constant [54 x i8], align 1

declare noundef ptr @_ZN6Assimp13DefaultLogger3getEv() #0

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp32SplitLargeMeshesProcess_Triangle9SplitMeshEjP6aiMeshRSt6vectorISt4pairIS2_jESaIS5_EE(ptr noundef nonnull align 8 dereferenceable(28) %0, i32 noundef %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::vector.5", align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca %struct.aiString, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %40 = load ptr, ptr %5, align 8
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.aiMesh, ptr %41, i32 0, i32 2
  %43 = load i32, ptr %42, align 8, !tbaa !11
  %44 = getelementptr inbounds %"class.Assimp::SplitLargeMeshesProcess_Triangle", ptr %40, i32 0, i32 1
  %45 = load i32, ptr %44, align 8, !tbaa !18
  %46 = icmp ugt i32 %43, %45
  br i1 %46, label %47, label %730

47:                                               ; preds = %4
  %48 = call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  call void @_ZN6Assimp6Logger4infoEPKc(ptr noundef nonnull align 8 dereferenceable(12) %48, ptr noundef @.str.4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.aiMesh, ptr %49, i32 0, i32 2
  %51 = load i32, ptr %50, align 8, !tbaa !11
  %52 = getelementptr inbounds %"class.Assimp::SplitLargeMeshesProcess_Triangle", ptr %40, i32 0, i32 1
  %53 = load i32, ptr %52, align 8, !tbaa !18
  %54 = udiv i32 %51, %53
  %55 = add i32 %54, 1
  store i32 %55, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.aiMesh, ptr %56, i32 0, i32 2
  %58 = load i32, ptr %57, align 8, !tbaa !11
  %59 = load i32, ptr %9, align 4, !tbaa !9
  %60 = udiv i32 %58, %59
  store i32 %60, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %61 = load i32, ptr %10, align 4, !tbaa !9
  %62 = mul i32 %61, 3
  store i32 %62, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %722, %47
  %64 = load i32, ptr %12, align 4, !tbaa !9
  %65 = load i32, ptr %9, align 4, !tbaa !9
  %66 = icmp ult i32 %64, %65
  br i1 %66, label %68, label %67

67:                                               ; preds = %63
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %725

68:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %69 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 1320) #9
  call void @_ZN6aiMeshC2Ev(ptr noundef nonnull align 8 dereferenceable(1320) %69) #8
  store ptr %69, ptr %14, align 8, !tbaa !5
  %70 = load i32, ptr %10, align 4, !tbaa !9
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.aiMesh, ptr %71, i32 0, i32 2
  store i32 %70, ptr %72, align 8, !tbaa !11
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.aiMesh, ptr %73, i32 0, i32 13
  %75 = load i32, ptr %74, align 8, !tbaa !21
  %76 = load ptr, ptr %14, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.aiMesh, ptr %76, i32 0, i32 13
  store i32 %75, ptr %77, align 8, !tbaa !21
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.aiMesh, ptr %78, i32 0, i32 14
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.aiMesh, ptr %80, i32 0, i32 14
  %82 = call noundef nonnull align 4 dereferenceable(1028) ptr @_ZN8aiStringaSERKS_(ptr noundef nonnull align 4 dereferenceable(1028) %81, ptr noundef nonnull align 4 dereferenceable(1028) %79)
  %83 = load i32, ptr %12, align 4, !tbaa !9
  %84 = load i32, ptr %9, align 4, !tbaa !9
  %85 = sub i32 %84, 1
  %86 = icmp eq i32 %83, %85
  br i1 %86, label %87, label %99

87:                                               ; preds = %68
  %88 = load i32, ptr %10, align 4, !tbaa !9
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.aiMesh, ptr %89, i32 0, i32 2
  %91 = load i32, ptr %90, align 8, !tbaa !11
  %92 = load i32, ptr %10, align 4, !tbaa !9
  %93 = load i32, ptr %9, align 4, !tbaa !9
  %94 = mul i32 %92, %93
  %95 = sub i32 %91, %94
  %96 = add i32 %88, %95
  %97 = load ptr, ptr %14, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.aiMesh, ptr %97, i32 0, i32 2
  store i32 %96, ptr %98, align 8, !tbaa !11
  br label %99

99:                                               ; preds = %87, %68
  %100 = load ptr, ptr %14, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.aiMesh, ptr %100, i32 0, i32 2
  %102 = load i32, ptr %101, align 8, !tbaa !11
  %103 = zext i32 %102 to i64
  %104 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %103, i64 16)
  %105 = extractvalue { i64, i1 } %104, 1
  %106 = extractvalue { i64, i1 } %104, 0
  %107 = call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %106, i64 8)
  %108 = extractvalue { i64, i1 } %107, 1
  %109 = or i1 %105, %108
  %110 = extractvalue { i64, i1 } %107, 0
  %111 = select i1 %109, i64 -1, i64 %110
  %112 = call noalias noundef nonnull ptr @_Znam(i64 noundef %111) #9
  store i64 %103, ptr %112, align 16
  %113 = getelementptr inbounds i8, ptr %112, i64 8
  %114 = icmp eq i64 %103, 0
  br i1 %114, label %121, label %115

115:                                              ; preds = %99
  %116 = getelementptr inbounds %struct.aiFace, ptr %113, i64 %103
  br label %117

117:                                              ; preds = %117, %115
  %118 = phi ptr [ %113, %115 ], [ %119, %117 ]
  call void @_ZN6aiFaceC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %118) #8
  %119 = getelementptr inbounds %struct.aiFace, ptr %118, i64 1
  %120 = icmp eq ptr %119, %116
  br i1 %120, label %121, label %117

121:                                              ; preds = %117, %99
  %122 = load ptr, ptr %14, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.aiMesh, ptr %122, i32 0, i32 10
  store ptr %113, ptr %123, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %124 = load i32, ptr %10, align 4, !tbaa !9
  %125 = load i32, ptr %12, align 4, !tbaa !9
  %126 = mul i32 %124, %125
  store i32 %126, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %127 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %127, ptr %17, align 4, !tbaa !9
  br label %128

128:                                              ; preds = %148, %121
  %129 = load i32, ptr %17, align 4, !tbaa !9
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.aiMesh, ptr %130, i32 0, i32 2
  %132 = load i32, ptr %131, align 8, !tbaa !11
  %133 = load i32, ptr %15, align 4, !tbaa !9
  %134 = add i32 %132, %133
  %135 = icmp ult i32 %129, %134
  br i1 %135, label %137, label %136

136:                                              ; preds = %128
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %151

137:                                              ; preds = %128
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.aiMesh, ptr %138, i32 0, i32 10
  %140 = load ptr, ptr %139, align 8, !tbaa !22
  %141 = load i32, ptr %17, align 4, !tbaa !9
  %142 = zext i32 %141 to i64
  %143 = getelementptr inbounds %struct.aiFace, ptr %140, i64 %142
  %144 = getelementptr inbounds %struct.aiFace, ptr %143, i32 0, i32 0
  %145 = load i32, ptr %144, align 8, !tbaa !23
  %146 = load i32, ptr %16, align 4, !tbaa !9
  %147 = add i32 %146, %145
  store i32 %147, ptr %16, align 4, !tbaa !9
  br label %148

148:                                              ; preds = %137
  %149 = load i32, ptr %17, align 4, !tbaa !9
  %150 = add i32 %149, 1
  store i32 %150, ptr %17, align 4, !tbaa !9
  br label %128, !llvm.loop !25

151:                                              ; preds = %136
  %152 = load i32, ptr %16, align 4, !tbaa !9
  %153 = load ptr, ptr %14, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.aiMesh, ptr %153, i32 0, i32 1
  store i32 %152, ptr %154, align 4, !tbaa !27
  %155 = load ptr, ptr %7, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.aiMesh, ptr %155, i32 0, i32 3
  %157 = load ptr, ptr %156, align 8, !tbaa !28
  %158 = icmp ne ptr %157, null
  br i1 %158, label %159, label %177

159:                                              ; preds = %151
  %160 = load i32, ptr %16, align 4, !tbaa !9
  %161 = zext i32 %160 to i64
  %162 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %161, i64 12)
  %163 = extractvalue { i64, i1 } %162, 1
  %164 = extractvalue { i64, i1 } %162, 0
  %165 = select i1 %163, i64 -1, i64 %164
  %166 = call noalias noundef nonnull ptr @_Znam(i64 noundef %165) #9
  %167 = icmp eq i64 %161, 0
  br i1 %167, label %174, label %168

168:                                              ; preds = %159
  %169 = getelementptr inbounds %class.aiVector3t, ptr %166, i64 %161
  br label %170

170:                                              ; preds = %170, %168
  %171 = phi ptr [ %166, %168 ], [ %172, %170 ]
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %171) #8
  %172 = getelementptr inbounds %class.aiVector3t, ptr %171, i64 1
  %173 = icmp eq ptr %172, %169
  br i1 %173, label %174, label %170

174:                                              ; preds = %170, %159
  %175 = load ptr, ptr %14, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.aiMesh, ptr %175, i32 0, i32 3
  store ptr %166, ptr %176, align 8, !tbaa !28
  br label %177

177:                                              ; preds = %174, %151
  %178 = load ptr, ptr %7, align 8, !tbaa !5
  %179 = call noundef zeroext i1 @_ZNK6aiMesh10HasNormalsEv(ptr noundef nonnull align 8 dereferenceable(1320) %178)
  br i1 %179, label %180, label %198

180:                                              ; preds = %177
  %181 = load i32, ptr %16, align 4, !tbaa !9
  %182 = zext i32 %181 to i64
  %183 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %182, i64 12)
  %184 = extractvalue { i64, i1 } %183, 1
  %185 = extractvalue { i64, i1 } %183, 0
  %186 = select i1 %184, i64 -1, i64 %185
  %187 = call noalias noundef nonnull ptr @_Znam(i64 noundef %186) #9
  %188 = icmp eq i64 %182, 0
  br i1 %188, label %195, label %189

189:                                              ; preds = %180
  %190 = getelementptr inbounds %class.aiVector3t, ptr %187, i64 %182
  br label %191

191:                                              ; preds = %191, %189
  %192 = phi ptr [ %187, %189 ], [ %193, %191 ]
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %192) #8
  %193 = getelementptr inbounds %class.aiVector3t, ptr %192, i64 1
  %194 = icmp eq ptr %193, %190
  br i1 %194, label %195, label %191

195:                                              ; preds = %191, %180
  %196 = load ptr, ptr %14, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.aiMesh, ptr %196, i32 0, i32 4
  store ptr %187, ptr %197, align 8, !tbaa !29
  br label %198

198:                                              ; preds = %195, %177
  %199 = load ptr, ptr %7, align 8, !tbaa !5
  %200 = call noundef zeroext i1 @_ZNK6aiMesh24HasTangentsAndBitangentsEv(ptr noundef nonnull align 8 dereferenceable(1320) %199)
  br i1 %200, label %201, label %236

201:                                              ; preds = %198
  %202 = load i32, ptr %16, align 4, !tbaa !9
  %203 = zext i32 %202 to i64
  %204 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %203, i64 12)
  %205 = extractvalue { i64, i1 } %204, 1
  %206 = extractvalue { i64, i1 } %204, 0
  %207 = select i1 %205, i64 -1, i64 %206
  %208 = call noalias noundef nonnull ptr @_Znam(i64 noundef %207) #9
  %209 = icmp eq i64 %203, 0
  br i1 %209, label %216, label %210

210:                                              ; preds = %201
  %211 = getelementptr inbounds %class.aiVector3t, ptr %208, i64 %203
  br label %212

212:                                              ; preds = %212, %210
  %213 = phi ptr [ %208, %210 ], [ %214, %212 ]
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %213) #8
  %214 = getelementptr inbounds %class.aiVector3t, ptr %213, i64 1
  %215 = icmp eq ptr %214, %211
  br i1 %215, label %216, label %212

216:                                              ; preds = %212, %201
  %217 = load ptr, ptr %14, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.aiMesh, ptr %217, i32 0, i32 5
  store ptr %208, ptr %218, align 8, !tbaa !30
  %219 = load i32, ptr %16, align 4, !tbaa !9
  %220 = zext i32 %219 to i64
  %221 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %220, i64 12)
  %222 = extractvalue { i64, i1 } %221, 1
  %223 = extractvalue { i64, i1 } %221, 0
  %224 = select i1 %222, i64 -1, i64 %223
  %225 = call noalias noundef nonnull ptr @_Znam(i64 noundef %224) #9
  %226 = icmp eq i64 %220, 0
  br i1 %226, label %233, label %227

227:                                              ; preds = %216
  %228 = getelementptr inbounds %class.aiVector3t, ptr %225, i64 %220
  br label %229

229:                                              ; preds = %229, %227
  %230 = phi ptr [ %225, %227 ], [ %231, %229 ]
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %230) #8
  %231 = getelementptr inbounds %class.aiVector3t, ptr %230, i64 1
  %232 = icmp eq ptr %231, %228
  br i1 %232, label %233, label %229

233:                                              ; preds = %229, %216
  %234 = load ptr, ptr %14, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.aiMesh, ptr %234, i32 0, i32 6
  store ptr %225, ptr %235, align 8, !tbaa !31
  br label %236

236:                                              ; preds = %233, %198
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %237

237:                                              ; preds = %278, %236
  %238 = load i32, ptr %18, align 4, !tbaa !9
  %239 = icmp ult i32 %238, 8
  br i1 %239, label %241, label %240

240:                                              ; preds = %237
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %281

241:                                              ; preds = %237
  %242 = load ptr, ptr %7, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.aiMesh, ptr %242, i32 0, i32 9
  %244 = load i32, ptr %18, align 4, !tbaa !9
  %245 = zext i32 %244 to i64
  %246 = getelementptr inbounds [8 x i32], ptr %243, i64 0, i64 %245
  %247 = load i32, ptr %246, align 4, !tbaa !9
  %248 = load ptr, ptr %14, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.aiMesh, ptr %248, i32 0, i32 9
  %250 = load i32, ptr %18, align 4, !tbaa !9
  %251 = zext i32 %250 to i64
  %252 = getelementptr inbounds [8 x i32], ptr %249, i64 0, i64 %251
  store i32 %247, ptr %252, align 4, !tbaa !9
  %253 = load ptr, ptr %7, align 8, !tbaa !5
  %254 = load i32, ptr %18, align 4, !tbaa !9
  %255 = call noundef zeroext i1 @_ZNK6aiMesh16HasTextureCoordsEj(ptr noundef nonnull align 8 dereferenceable(1320) %253, i32 noundef %254)
  br i1 %255, label %256, label %277

256:                                              ; preds = %241
  %257 = load i32, ptr %16, align 4, !tbaa !9
  %258 = zext i32 %257 to i64
  %259 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %258, i64 12)
  %260 = extractvalue { i64, i1 } %259, 1
  %261 = extractvalue { i64, i1 } %259, 0
  %262 = select i1 %260, i64 -1, i64 %261
  %263 = call noalias noundef nonnull ptr @_Znam(i64 noundef %262) #9
  %264 = icmp eq i64 %258, 0
  br i1 %264, label %271, label %265

265:                                              ; preds = %256
  %266 = getelementptr inbounds %class.aiVector3t, ptr %263, i64 %258
  br label %267

267:                                              ; preds = %267, %265
  %268 = phi ptr [ %263, %265 ], [ %269, %267 ]
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %268) #8
  %269 = getelementptr inbounds %class.aiVector3t, ptr %268, i64 1
  %270 = icmp eq ptr %269, %266
  br i1 %270, label %271, label %267

271:                                              ; preds = %267, %256
  %272 = load ptr, ptr %14, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.aiMesh, ptr %272, i32 0, i32 8
  %274 = load i32, ptr %18, align 4, !tbaa !9
  %275 = zext i32 %274 to i64
  %276 = getelementptr inbounds [8 x ptr], ptr %273, i64 0, i64 %275
  store ptr %263, ptr %276, align 8, !tbaa !5
  br label %277

277:                                              ; preds = %271, %241
  br label %278

278:                                              ; preds = %277
  %279 = load i32, ptr %18, align 4, !tbaa !9
  %280 = add i32 %279, 1
  store i32 %280, ptr %18, align 4, !tbaa !9
  br label %237, !llvm.loop !32

281:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %282

282:                                              ; preds = %312, %281
  %283 = load i32, ptr %19, align 4, !tbaa !9
  %284 = icmp ult i32 %283, 8
  br i1 %284, label %286, label %285

285:                                              ; preds = %282
  store i32 11, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %315

286:                                              ; preds = %282
  %287 = load ptr, ptr %7, align 8, !tbaa !5
  %288 = load i32, ptr %19, align 4, !tbaa !9
  %289 = call noundef zeroext i1 @_ZNK6aiMesh15HasVertexColorsEj(ptr noundef nonnull align 8 dereferenceable(1320) %287, i32 noundef %288)
  br i1 %289, label %290, label %311

290:                                              ; preds = %286
  %291 = load i32, ptr %16, align 4, !tbaa !9
  %292 = zext i32 %291 to i64
  %293 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %292, i64 16)
  %294 = extractvalue { i64, i1 } %293, 1
  %295 = extractvalue { i64, i1 } %293, 0
  %296 = select i1 %294, i64 -1, i64 %295
  %297 = call noalias noundef nonnull ptr @_Znam(i64 noundef %296) #9
  %298 = icmp eq i64 %292, 0
  br i1 %298, label %305, label %299

299:                                              ; preds = %290
  %300 = getelementptr inbounds %class.aiColor4t, ptr %297, i64 %292
  br label %301

301:                                              ; preds = %301, %299
  %302 = phi ptr [ %297, %299 ], [ %303, %301 ]
  call void @_ZN9aiColor4tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %302) #8
  %303 = getelementptr inbounds %class.aiColor4t, ptr %302, i64 1
  %304 = icmp eq ptr %303, %300
  br i1 %304, label %305, label %301

305:                                              ; preds = %301, %290
  %306 = load ptr, ptr %14, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.aiMesh, ptr %306, i32 0, i32 7
  %308 = load i32, ptr %19, align 4, !tbaa !9
  %309 = zext i32 %308 to i64
  %310 = getelementptr inbounds [8 x ptr], ptr %307, i64 0, i64 %309
  store ptr %297, ptr %310, align 8, !tbaa !5
  br label %311

311:                                              ; preds = %305, %286
  br label %312

312:                                              ; preds = %311
  %313 = load i32, ptr %19, align 4, !tbaa !9
  %314 = add i32 %313, 1
  store i32 %314, ptr %19, align 4, !tbaa !9
  br label %282, !llvm.loop !33

315:                                              ; preds = %285
  %316 = load ptr, ptr %7, align 8, !tbaa !5
  %317 = call noundef zeroext i1 @_ZNK6aiMesh8HasBonesEv(ptr noundef nonnull align 8 dereferenceable(1320) %316)
  br i1 %317, label %318, label %489

318:                                              ; preds = %315
  %319 = load ptr, ptr %7, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.aiMesh, ptr %319, i32 0, i32 11
  %321 = load i32, ptr %320, align 8, !tbaa !34
  %322 = zext i32 %321 to i64
  %323 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %322, i64 8)
  %324 = extractvalue { i64, i1 } %323, 1
  %325 = extractvalue { i64, i1 } %323, 0
  %326 = select i1 %324, i64 -1, i64 %325
  %327 = call noalias noundef nonnull ptr @_Znam(i64 noundef %326) #9
  %328 = load ptr, ptr %14, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.aiMesh, ptr %328, i32 0, i32 12
  store ptr %327, ptr %329, align 8, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #8
  call void @_ZNSt6vectorI14aiVertexWeightSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %330

330:                                              ; preds = %484, %318
  %331 = load i32, ptr %21, align 4, !tbaa !9
  %332 = load ptr, ptr %14, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.aiMesh, ptr %332, i32 0, i32 11
  %334 = load i32, ptr %333, align 8, !tbaa !34
  %335 = icmp ult i32 %331, %334
  br i1 %335, label %337, label %336

336:                                              ; preds = %330
  store i32 14, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %488

337:                                              ; preds = %330
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %338 = load ptr, ptr %14, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.aiMesh, ptr %338, i32 0, i32 12
  %340 = load ptr, ptr %339, align 8, !tbaa !35
  %341 = load i32, ptr %21, align 4, !tbaa !9
  %342 = zext i32 %341 to i64
  %343 = getelementptr inbounds ptr, ptr %340, i64 %342
  %344 = load ptr, ptr %343, align 8, !tbaa !5
  store ptr %344, ptr %22, align 8, !tbaa !5
  call void @_ZNSt6vectorI14aiVertexWeightSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  %345 = load ptr, ptr %22, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.aiBone, ptr %345, i32 0, i32 1
  %347 = load i32, ptr %346, align 4, !tbaa !36
  %348 = load i32, ptr %9, align 4, !tbaa !9
  %349 = udiv i32 %347, %348
  %350 = zext i32 %349 to i64
  invoke void @_ZNSt6vectorI14aiVertexWeightSaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %350)
          to label %351 unwind label %359

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

352:                                              ; preds = %398, %351
  %353 = load i32, ptr %25, align 4, !tbaa !9
  %354 = load ptr, ptr %22, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.aiBone, ptr %354, i32 0, i32 1
  %356 = load i32, ptr %355, align 4, !tbaa !36
  %357 = icmp ult i32 %353, %356
  br i1 %357, label %363, label %358

358:                                              ; preds = %352
  store i32 17, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %401

359:                                              ; preds = %337
  %360 = landingpad { ptr, i32 }
          cleanup
  %361 = extractvalue { ptr, i32 } %360, 0
  store ptr %361, ptr %23, align 8
  %362 = extractvalue { ptr, i32 } %360, 1
  store i32 %362, ptr %24, align 4
  br label %487

363:                                              ; preds = %352
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %364 = load ptr, ptr %22, align 8, !tbaa !5
  %365 = getelementptr inbounds %struct.aiBone, ptr %364, i32 0, i32 4
  %366 = load ptr, ptr %365, align 8, !tbaa !39
  %367 = load i32, ptr %25, align 4, !tbaa !9
  %368 = zext i32 %367 to i64
  %369 = getelementptr inbounds %struct.aiVertexWeight, ptr %366, i64 %368
  store ptr %369, ptr %26, align 8, !tbaa !5
  %370 = load ptr, ptr %26, align 8, !tbaa !5
  %371 = getelementptr inbounds %struct.aiVertexWeight, ptr %370, i32 0, i32 0
  %372 = load i32, ptr %371, align 4, !tbaa !40
  %373 = load i32, ptr %15, align 4, !tbaa !9
  %374 = icmp uge i32 %372, %373
  br i1 %374, label %375, label %397

375:                                              ; preds = %363
  %376 = load ptr, ptr %26, align 8, !tbaa !5
  %377 = getelementptr inbounds %struct.aiVertexWeight, ptr %376, i32 0, i32 0
  %378 = load i32, ptr %377, align 4, !tbaa !40
  %379 = load i32, ptr %15, align 4, !tbaa !9
  %380 = load i32, ptr %11, align 4, !tbaa !9
  %381 = add i32 %379, %380
  %382 = icmp ult i32 %378, %381
  br i1 %382, label %383, label %397

383:                                              ; preds = %375
  %384 = load ptr, ptr %26, align 8, !tbaa !5
  invoke void @_ZNSt6vectorI14aiVertexWeightSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 4 dereferenceable(8) %384)
          to label %385 unwind label %393

385:                                              ; preds = %383
  %386 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI14aiVertexWeightSaIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  %387 = load ptr, ptr %26, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %387, ptr align 4 %386, i64 8, i1 false), !tbaa.struct !42
  %388 = load i32, ptr %15, align 4, !tbaa !9
  %389 = load ptr, ptr %26, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.aiVertexWeight, ptr %389, i32 0, i32 0
  %391 = load i32, ptr %390, align 4, !tbaa !40
  %392 = sub i32 %391, %388
  store i32 %392, ptr %390, align 4, !tbaa !40
  br label %397

393:                                              ; preds = %383
  %394 = landingpad { ptr, i32 }
          cleanup
  %395 = extractvalue { ptr, i32 } %394, 0
  store ptr %395, ptr %23, align 8
  %396 = extractvalue { ptr, i32 } %394, 1
  store i32 %396, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %487

397:                                              ; preds = %385, %375, %363
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %398

398:                                              ; preds = %397
  %399 = load i32, ptr %25, align 4, !tbaa !9
  %400 = add i32 %399, 1
  store i32 %400, ptr %25, align 4, !tbaa !9
  br label %352, !llvm.loop !44

401:                                              ; preds = %358
  %402 = call noundef zeroext i1 @_ZNKSt6vectorI14aiVertexWeightSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  br i1 %402, label %483, label %403

403:                                              ; preds = %401
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %404 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 1120) #9
          to label %405 unwind label %443

405:                                              ; preds = %403
  call void @_ZN6aiBoneC2Ev(ptr noundef nonnull align 8 dereferenceable(1120) %404) #8
  store ptr %404, ptr %27, align 8, !tbaa !5
  %406 = load ptr, ptr %27, align 8, !tbaa !5
  %407 = load ptr, ptr %14, align 8, !tbaa !5
  %408 = getelementptr inbounds %struct.aiMesh, ptr %407, i32 0, i32 12
  %409 = load ptr, ptr %408, align 8, !tbaa !35
  %410 = load ptr, ptr %14, align 8, !tbaa !5
  %411 = getelementptr inbounds %struct.aiMesh, ptr %410, i32 0, i32 11
  %412 = load i32, ptr %411, align 8, !tbaa !34
  %413 = add i32 %412, 1
  store i32 %413, ptr %411, align 8, !tbaa !34
  %414 = zext i32 %412 to i64
  %415 = getelementptr inbounds ptr, ptr %409, i64 %414
  store ptr %406, ptr %415, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1028, ptr %28) #8
  %416 = load ptr, ptr %22, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.aiBone, ptr %416, i32 0, i32 0
  invoke void @_ZN8aiStringC2ERKS_(ptr noundef nonnull align 4 dereferenceable(1028) %28, ptr noundef nonnull align 4 dereferenceable(1028) %417)
          to label %418 unwind label %447

418:                                              ; preds = %405
  %419 = load ptr, ptr %27, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct.aiBone, ptr %419, i32 0, i32 0
  %421 = invoke noundef nonnull align 4 dereferenceable(1028) ptr @_ZN8aiStringaSERKS_(ptr noundef nonnull align 4 dereferenceable(1028) %420, ptr noundef nonnull align 4 dereferenceable(1028) %28)
          to label %422 unwind label %447

422:                                              ; preds = %418
  call void @llvm.lifetime.end.p0(i64 1028, ptr %28) #8
  %423 = call noundef i64 @_ZNKSt6vectorI14aiVertexWeightSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  %424 = trunc i64 %423 to i32
  %425 = load ptr, ptr %27, align 8, !tbaa !5
  %426 = getelementptr inbounds %struct.aiBone, ptr %425, i32 0, i32 1
  store i32 %424, ptr %426, align 4, !tbaa !36
  %427 = load ptr, ptr %22, align 8, !tbaa !5
  %428 = getelementptr inbounds %struct.aiBone, ptr %427, i32 0, i32 5
  %429 = load ptr, ptr %27, align 8, !tbaa !5
  %430 = getelementptr inbounds %struct.aiBone, ptr %429, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %430, ptr align 8 %428, i64 64, i1 false), !tbaa.struct !45
  %431 = load i32, ptr %9, align 4, !tbaa !9
  %432 = sub i32 %431, 1
  %433 = load i32, ptr %12, align 4, !tbaa !9
  %434 = icmp eq i32 %432, %433
  br i1 %434, label %435, label %451

435:                                              ; preds = %422
  %436 = load ptr, ptr %22, align 8, !tbaa !5
  %437 = getelementptr inbounds %struct.aiBone, ptr %436, i32 0, i32 4
  %438 = load ptr, ptr %437, align 8, !tbaa !39
  %439 = load ptr, ptr %27, align 8, !tbaa !5
  %440 = getelementptr inbounds %struct.aiBone, ptr %439, i32 0, i32 4
  store ptr %438, ptr %440, align 8, !tbaa !39
  %441 = load ptr, ptr %22, align 8, !tbaa !5
  %442 = getelementptr inbounds %struct.aiBone, ptr %441, i32 0, i32 4
  store ptr null, ptr %442, align 8, !tbaa !39
  br label %472

443:                                              ; preds = %451, %403
  %444 = landingpad { ptr, i32 }
          cleanup
  %445 = extractvalue { ptr, i32 } %444, 0
  store ptr %445, ptr %23, align 8
  %446 = extractvalue { ptr, i32 } %444, 1
  store i32 %446, ptr %24, align 4
  br label %482

447:                                              ; preds = %418, %405
  %448 = landingpad { ptr, i32 }
          cleanup
  %449 = extractvalue { ptr, i32 } %448, 0
  store ptr %449, ptr %23, align 8
  %450 = extractvalue { ptr, i32 } %448, 1
  store i32 %450, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 1028, ptr %28) #8
  br label %482

451:                                              ; preds = %422
  %452 = load ptr, ptr %27, align 8, !tbaa !5
  %453 = getelementptr inbounds %struct.aiBone, ptr %452, i32 0, i32 1
  %454 = load i32, ptr %453, align 4, !tbaa !36
  %455 = zext i32 %454 to i64
  %456 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %455, i64 8)
  %457 = extractvalue { i64, i1 } %456, 1
  %458 = extractvalue { i64, i1 } %456, 0
  %459 = select i1 %457, i64 -1, i64 %458
  %460 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %459) #9
          to label %461 unwind label %443

461:                                              ; preds = %451
  %462 = icmp eq i64 %455, 0
  br i1 %462, label %469, label %463

463:                                              ; preds = %461
  %464 = getelementptr inbounds %struct.aiVertexWeight, ptr %460, i64 %455
  br label %465

465:                                              ; preds = %465, %463
  %466 = phi ptr [ %460, %463 ], [ %467, %465 ]
  call void @_ZN14aiVertexWeightC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %466) #8
  %467 = getelementptr inbounds %struct.aiVertexWeight, ptr %466, i64 1
  %468 = icmp eq ptr %467, %464
  br i1 %468, label %469, label %465

469:                                              ; preds = %465, %461
  %470 = load ptr, ptr %27, align 8, !tbaa !5
  %471 = getelementptr inbounds %struct.aiBone, ptr %470, i32 0, i32 4
  store ptr %460, ptr %471, align 8, !tbaa !39
  br label %472

472:                                              ; preds = %469, %435
  %473 = load ptr, ptr %27, align 8, !tbaa !5
  %474 = getelementptr inbounds %struct.aiBone, ptr %473, i32 0, i32 4
  %475 = load ptr, ptr %474, align 8, !tbaa !39
  %476 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI14aiVertexWeightSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef 0) #8
  %477 = load ptr, ptr %27, align 8, !tbaa !5
  %478 = getelementptr inbounds %struct.aiBone, ptr %477, i32 0, i32 1
  %479 = load i32, ptr %478, align 4, !tbaa !36
  %480 = zext i32 %479 to i64
  %481 = mul i64 8, %480
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %475, ptr align 4 %476, i64 %481, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %483

482:                                              ; preds = %447, %443
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %487

483:                                              ; preds = %472, %401
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %484

484:                                              ; preds = %483
  %485 = load i32, ptr %21, align 4, !tbaa !9
  %486 = add i32 %485, 1
  store i32 %486, ptr %21, align 4, !tbaa !9
  br label %330, !llvm.loop !46

487:                                              ; preds = %482, %393, %359
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @_ZNSt6vectorI14aiVertexWeightSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %734

488:                                              ; preds = %336
  call void @_ZNSt6vectorI14aiVertexWeightSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #8
  br label %489

489:                                              ; preds = %488, %315
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  store i32 0, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  store i32 0, ptr %30, align 4, !tbaa !9
  br label %490

490:                                              ; preds = %716, %489
  %491 = load i32, ptr %30, align 4, !tbaa !9
  %492 = load ptr, ptr %14, align 8, !tbaa !5
  %493 = getelementptr inbounds %struct.aiMesh, ptr %492, i32 0, i32 2
  %494 = load i32, ptr %493, align 8, !tbaa !11
  %495 = icmp ult i32 %491, %494
  br i1 %495, label %497, label %496

496:                                              ; preds = %490
  store i32 20, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %719

497:                                              ; preds = %490
  %498 = load ptr, ptr %14, align 8, !tbaa !5
  %499 = getelementptr inbounds %struct.aiMesh, ptr %498, i32 0, i32 10
  %500 = load ptr, ptr %499, align 8, !tbaa !22
  %501 = load i32, ptr %30, align 4, !tbaa !9
  %502 = zext i32 %501 to i64
  %503 = getelementptr inbounds %struct.aiFace, ptr %500, i64 %502
  %504 = getelementptr inbounds %struct.aiFace, ptr %503, i32 0, i32 0
  store i32 3, ptr %504, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  %505 = load i32, ptr %30, align 4, !tbaa !9
  %506 = load i32, ptr %15, align 4, !tbaa !9
  %507 = add i32 %505, %506
  store i32 %507, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  %508 = load ptr, ptr %7, align 8, !tbaa !5
  %509 = getelementptr inbounds %struct.aiMesh, ptr %508, i32 0, i32 10
  %510 = load ptr, ptr %509, align 8, !tbaa !22
  %511 = load i32, ptr %31, align 4, !tbaa !9
  %512 = zext i32 %511 to i64
  %513 = getelementptr inbounds %struct.aiFace, ptr %510, i64 %512
  %514 = getelementptr inbounds %struct.aiFace, ptr %513, i32 0, i32 0
  %515 = load i32, ptr %514, align 8, !tbaa !23
  store i32 %515, ptr %32, align 4, !tbaa !9
  %516 = load i32, ptr %32, align 4, !tbaa !9
  %517 = load ptr, ptr %14, align 8, !tbaa !5
  %518 = getelementptr inbounds %struct.aiMesh, ptr %517, i32 0, i32 10
  %519 = load ptr, ptr %518, align 8, !tbaa !22
  %520 = load i32, ptr %30, align 4, !tbaa !9
  %521 = zext i32 %520 to i64
  %522 = getelementptr inbounds %struct.aiFace, ptr %519, i64 %521
  %523 = getelementptr inbounds %struct.aiFace, ptr %522, i32 0, i32 0
  store i32 %516, ptr %523, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %524 = load ptr, ptr %7, align 8, !tbaa !5
  %525 = getelementptr inbounds %struct.aiMesh, ptr %524, i32 0, i32 10
  %526 = load ptr, ptr %525, align 8, !tbaa !22
  %527 = load i32, ptr %31, align 4, !tbaa !9
  %528 = zext i32 %527 to i64
  %529 = getelementptr inbounds %struct.aiFace, ptr %526, i64 %528
  %530 = getelementptr inbounds %struct.aiFace, ptr %529, i32 0, i32 1
  %531 = load ptr, ptr %530, align 8, !tbaa !47
  store ptr %531, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %532 = load i32, ptr %32, align 4, !tbaa !9
  %533 = zext i32 %532 to i64
  %534 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %533, i64 4)
  %535 = extractvalue { i64, i1 } %534, 1
  %536 = extractvalue { i64, i1 } %534, 0
  %537 = select i1 %535, i64 -1, i64 %536
  %538 = call noalias noundef nonnull ptr @_Znam(i64 noundef %537) #9
  %539 = load ptr, ptr %14, align 8, !tbaa !5
  %540 = getelementptr inbounds %struct.aiMesh, ptr %539, i32 0, i32 10
  %541 = load ptr, ptr %540, align 8, !tbaa !22
  %542 = load i32, ptr %30, align 4, !tbaa !9
  %543 = zext i32 %542 to i64
  %544 = getelementptr inbounds %struct.aiFace, ptr %541, i64 %543
  %545 = getelementptr inbounds %struct.aiFace, ptr %544, i32 0, i32 1
  store ptr %538, ptr %545, align 8, !tbaa !47
  store ptr %538, ptr %34, align 8, !tbaa !5
  %546 = load i32, ptr %32, align 4, !tbaa !9
  switch i32 %546, label %562 [
    i32 1, label %547
    i32 2, label %552
    i32 3, label %557
  ]

547:                                              ; preds = %497
  %548 = load ptr, ptr %14, align 8, !tbaa !5
  %549 = getelementptr inbounds %struct.aiMesh, ptr %548, i32 0, i32 0
  %550 = load i32, ptr %549, align 8, !tbaa !48
  %551 = or i32 %550, 1
  store i32 %551, ptr %549, align 8, !tbaa !48
  br label %567

552:                                              ; preds = %497
  %553 = load ptr, ptr %14, align 8, !tbaa !5
  %554 = getelementptr inbounds %struct.aiMesh, ptr %553, i32 0, i32 0
  %555 = load i32, ptr %554, align 8, !tbaa !48
  %556 = or i32 %555, 2
  store i32 %556, ptr %554, align 8, !tbaa !48
  br label %567

557:                                              ; preds = %497
  %558 = load ptr, ptr %14, align 8, !tbaa !5
  %559 = getelementptr inbounds %struct.aiMesh, ptr %558, i32 0, i32 0
  %560 = load i32, ptr %559, align 8, !tbaa !48
  %561 = or i32 %560, 4
  store i32 %561, ptr %559, align 8, !tbaa !48
  br label %567

562:                                              ; preds = %497
  %563 = load ptr, ptr %14, align 8, !tbaa !5
  %564 = getelementptr inbounds %struct.aiMesh, ptr %563, i32 0, i32 0
  %565 = load i32, ptr %564, align 8, !tbaa !48
  %566 = or i32 %565, 8
  store i32 %566, ptr %564, align 8, !tbaa !48
  br label %567

567:                                              ; preds = %562, %557, %552, %547
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  store i32 0, ptr %35, align 4, !tbaa !9
  br label %568

568:                                              ; preds = %712, %567
  %569 = load i32, ptr %35, align 4, !tbaa !9
  %570 = load i32, ptr %32, align 4, !tbaa !9
  %571 = icmp ult i32 %569, %570
  br i1 %571, label %573, label %572

572:                                              ; preds = %568
  store i32 24, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %715

573:                                              ; preds = %568
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  %574 = load ptr, ptr %33, align 8, !tbaa !5
  %575 = load i32, ptr %35, align 4, !tbaa !9
  %576 = zext i32 %575 to i64
  %577 = getelementptr inbounds i32, ptr %574, i64 %576
  %578 = load i32, ptr %577, align 4, !tbaa !9
  store i32 %578, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  %579 = load i32, ptr %29, align 4, !tbaa !9
  %580 = add i32 %579, 1
  store i32 %580, ptr %29, align 4, !tbaa !9
  store i32 %579, ptr %37, align 4, !tbaa !9
  %581 = load i32, ptr %37, align 4, !tbaa !9
  %582 = load ptr, ptr %34, align 8, !tbaa !5
  %583 = load i32, ptr %35, align 4, !tbaa !9
  %584 = zext i32 %583 to i64
  %585 = getelementptr inbounds i32, ptr %582, i64 %584
  store i32 %581, ptr %585, align 4, !tbaa !9
  %586 = load ptr, ptr %7, align 8, !tbaa !5
  %587 = getelementptr inbounds %struct.aiMesh, ptr %586, i32 0, i32 3
  %588 = load ptr, ptr %587, align 8, !tbaa !28
  %589 = icmp ne ptr %588, null
  br i1 %589, label %590, label %603

590:                                              ; preds = %573
  %591 = load ptr, ptr %7, align 8, !tbaa !5
  %592 = getelementptr inbounds %struct.aiMesh, ptr %591, i32 0, i32 3
  %593 = load ptr, ptr %592, align 8, !tbaa !28
  %594 = load i32, ptr %36, align 4, !tbaa !9
  %595 = zext i32 %594 to i64
  %596 = getelementptr inbounds %class.aiVector3t, ptr %593, i64 %595
  %597 = load ptr, ptr %14, align 8, !tbaa !5
  %598 = getelementptr inbounds %struct.aiMesh, ptr %597, i32 0, i32 3
  %599 = load ptr, ptr %598, align 8, !tbaa !28
  %600 = load i32, ptr %37, align 4, !tbaa !9
  %601 = zext i32 %600 to i64
  %602 = getelementptr inbounds %class.aiVector3t, ptr %599, i64 %601
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %602, ptr align 4 %596, i64 12, i1 false), !tbaa.struct !49
  br label %603

603:                                              ; preds = %590, %573
  %604 = load ptr, ptr %7, align 8, !tbaa !5
  %605 = call noundef zeroext i1 @_ZNK6aiMesh10HasNormalsEv(ptr noundef nonnull align 8 dereferenceable(1320) %604)
  br i1 %605, label %606, label %619

606:                                              ; preds = %603
  %607 = load ptr, ptr %7, align 8, !tbaa !5
  %608 = getelementptr inbounds %struct.aiMesh, ptr %607, i32 0, i32 4
  %609 = load ptr, ptr %608, align 8, !tbaa !29
  %610 = load i32, ptr %36, align 4, !tbaa !9
  %611 = zext i32 %610 to i64
  %612 = getelementptr inbounds %class.aiVector3t, ptr %609, i64 %611
  %613 = load ptr, ptr %14, align 8, !tbaa !5
  %614 = getelementptr inbounds %struct.aiMesh, ptr %613, i32 0, i32 4
  %615 = load ptr, ptr %614, align 8, !tbaa !29
  %616 = load i32, ptr %37, align 4, !tbaa !9
  %617 = zext i32 %616 to i64
  %618 = getelementptr inbounds %class.aiVector3t, ptr %615, i64 %617
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %618, ptr align 4 %612, i64 12, i1 false), !tbaa.struct !49
  br label %619

619:                                              ; preds = %606, %603
  %620 = load ptr, ptr %7, align 8, !tbaa !5
  %621 = call noundef zeroext i1 @_ZNK6aiMesh24HasTangentsAndBitangentsEv(ptr noundef nonnull align 8 dereferenceable(1320) %620)
  br i1 %621, label %622, label %647

622:                                              ; preds = %619
  %623 = load ptr, ptr %7, align 8, !tbaa !5
  %624 = getelementptr inbounds %struct.aiMesh, ptr %623, i32 0, i32 5
  %625 = load ptr, ptr %624, align 8, !tbaa !30
  %626 = load i32, ptr %36, align 4, !tbaa !9
  %627 = zext i32 %626 to i64
  %628 = getelementptr inbounds %class.aiVector3t, ptr %625, i64 %627
  %629 = load ptr, ptr %14, align 8, !tbaa !5
  %630 = getelementptr inbounds %struct.aiMesh, ptr %629, i32 0, i32 5
  %631 = load ptr, ptr %630, align 8, !tbaa !30
  %632 = load i32, ptr %37, align 4, !tbaa !9
  %633 = zext i32 %632 to i64
  %634 = getelementptr inbounds %class.aiVector3t, ptr %631, i64 %633
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %634, ptr align 4 %628, i64 12, i1 false), !tbaa.struct !49
  %635 = load ptr, ptr %7, align 8, !tbaa !5
  %636 = getelementptr inbounds %struct.aiMesh, ptr %635, i32 0, i32 6
  %637 = load ptr, ptr %636, align 8, !tbaa !31
  %638 = load i32, ptr %36, align 4, !tbaa !9
  %639 = zext i32 %638 to i64
  %640 = getelementptr inbounds %class.aiVector3t, ptr %637, i64 %639
  %641 = load ptr, ptr %14, align 8, !tbaa !5
  %642 = getelementptr inbounds %struct.aiMesh, ptr %641, i32 0, i32 6
  %643 = load ptr, ptr %642, align 8, !tbaa !31
  %644 = load i32, ptr %37, align 4, !tbaa !9
  %645 = zext i32 %644 to i64
  %646 = getelementptr inbounds %class.aiVector3t, ptr %643, i64 %645
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %646, ptr align 4 %640, i64 12, i1 false), !tbaa.struct !49
  br label %647

647:                                              ; preds = %622, %619
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  store i32 0, ptr %38, align 4, !tbaa !9
  br label %648

648:                                              ; preds = %676, %647
  %649 = load i32, ptr %38, align 4, !tbaa !9
  %650 = icmp ult i32 %649, 8
  br i1 %650, label %652, label %651

651:                                              ; preds = %648
  store i32 27, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  br label %679

652:                                              ; preds = %648
  %653 = load ptr, ptr %7, align 8, !tbaa !5
  %654 = load i32, ptr %38, align 4, !tbaa !9
  %655 = call noundef zeroext i1 @_ZNK6aiMesh16HasTextureCoordsEj(ptr noundef nonnull align 8 dereferenceable(1320) %653, i32 noundef %654)
  br i1 %655, label %656, label %675

656:                                              ; preds = %652
  %657 = load ptr, ptr %7, align 8, !tbaa !5
  %658 = getelementptr inbounds %struct.aiMesh, ptr %657, i32 0, i32 8
  %659 = load i32, ptr %38, align 4, !tbaa !9
  %660 = zext i32 %659 to i64
  %661 = getelementptr inbounds [8 x ptr], ptr %658, i64 0, i64 %660
  %662 = load ptr, ptr %661, align 8, !tbaa !5
  %663 = load i32, ptr %36, align 4, !tbaa !9
  %664 = zext i32 %663 to i64
  %665 = getelementptr inbounds %class.aiVector3t, ptr %662, i64 %664
  %666 = load ptr, ptr %14, align 8, !tbaa !5
  %667 = getelementptr inbounds %struct.aiMesh, ptr %666, i32 0, i32 8
  %668 = load i32, ptr %38, align 4, !tbaa !9
  %669 = zext i32 %668 to i64
  %670 = getelementptr inbounds [8 x ptr], ptr %667, i64 0, i64 %669
  %671 = load ptr, ptr %670, align 8, !tbaa !5
  %672 = load i32, ptr %37, align 4, !tbaa !9
  %673 = zext i32 %672 to i64
  %674 = getelementptr inbounds %class.aiVector3t, ptr %671, i64 %673
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %674, ptr align 4 %665, i64 12, i1 false), !tbaa.struct !49
  br label %675

675:                                              ; preds = %656, %652
  br label %676

676:                                              ; preds = %675
  %677 = load i32, ptr %38, align 4, !tbaa !9
  %678 = add i32 %677, 1
  store i32 %678, ptr %38, align 4, !tbaa !9
  br label %648, !llvm.loop !50

679:                                              ; preds = %651
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  store i32 0, ptr %39, align 4, !tbaa !9
  br label %680

680:                                              ; preds = %708, %679
  %681 = load i32, ptr %39, align 4, !tbaa !9
  %682 = icmp ult i32 %681, 8
  br i1 %682, label %684, label %683

683:                                              ; preds = %680
  store i32 30, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  br label %711

684:                                              ; preds = %680
  %685 = load ptr, ptr %7, align 8, !tbaa !5
  %686 = load i32, ptr %39, align 4, !tbaa !9
  %687 = call noundef zeroext i1 @_ZNK6aiMesh15HasVertexColorsEj(ptr noundef nonnull align 8 dereferenceable(1320) %685, i32 noundef %686)
  br i1 %687, label %688, label %707

688:                                              ; preds = %684
  %689 = load ptr, ptr %7, align 8, !tbaa !5
  %690 = getelementptr inbounds %struct.aiMesh, ptr %689, i32 0, i32 7
  %691 = load i32, ptr %39, align 4, !tbaa !9
  %692 = zext i32 %691 to i64
  %693 = getelementptr inbounds [8 x ptr], ptr %690, i64 0, i64 %692
  %694 = load ptr, ptr %693, align 8, !tbaa !5
  %695 = load i32, ptr %36, align 4, !tbaa !9
  %696 = zext i32 %695 to i64
  %697 = getelementptr inbounds %class.aiColor4t, ptr %694, i64 %696
  %698 = load ptr, ptr %14, align 8, !tbaa !5
  %699 = getelementptr inbounds %struct.aiMesh, ptr %698, i32 0, i32 7
  %700 = load i32, ptr %39, align 4, !tbaa !9
  %701 = zext i32 %700 to i64
  %702 = getelementptr inbounds [8 x ptr], ptr %699, i64 0, i64 %701
  %703 = load ptr, ptr %702, align 8, !tbaa !5
  %704 = load i32, ptr %37, align 4, !tbaa !9
  %705 = zext i32 %704 to i64
  %706 = getelementptr inbounds %class.aiColor4t, ptr %703, i64 %705
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %706, ptr align 4 %697, i64 16, i1 false), !tbaa.struct !51
  br label %707

707:                                              ; preds = %688, %684
  br label %708

708:                                              ; preds = %707
  %709 = load i32, ptr %39, align 4, !tbaa !9
  %710 = add i32 %709, 1
  store i32 %710, ptr %39, align 4, !tbaa !9
  br label %680, !llvm.loop !52

711:                                              ; preds = %683
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %712

712:                                              ; preds = %711
  %713 = load i32, ptr %35, align 4, !tbaa !9
  %714 = add i32 %713, 1
  store i32 %714, ptr %35, align 4, !tbaa !9
  br label %568, !llvm.loop !53

715:                                              ; preds = %572
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %716

716:                                              ; preds = %715
  %717 = load i32, ptr %30, align 4, !tbaa !9
  %718 = add i32 %717, 1
  store i32 %718, ptr %30, align 4, !tbaa !9
  br label %490, !llvm.loop !54

719:                                              ; preds = %496
  %720 = load ptr, ptr %8, align 8, !tbaa !5
  %721 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIP6aiMeshjESaIS3_EE12emplace_backIJRS2_RjEEERS3_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %720, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %722

722:                                              ; preds = %719
  %723 = load i32, ptr %12, align 4, !tbaa !9
  %724 = add i32 %723, 1
  store i32 %724, ptr %12, align 4, !tbaa !9
  br label %63, !llvm.loop !55

725:                                              ; preds = %67
  %726 = load ptr, ptr %7, align 8, !tbaa !5
  %727 = icmp eq ptr %726, null
  br i1 %727, label %729, label %728

728:                                              ; preds = %725
  call void @_ZN6aiMeshD2Ev(ptr noundef nonnull align 8 dereferenceable(1320) %726) #8
  call void @_ZdlPvm(ptr noundef %726, i64 noundef 1320) #10
  br label %729

729:                                              ; preds = %728, %725
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %733

730:                                              ; preds = %4
  %731 = load ptr, ptr %8, align 8, !tbaa !5
  %732 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIP6aiMeshjESaIS3_EE12emplace_backIJRS2_RjEEERS3_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %731, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %6)
  br label %733

733:                                              ; preds = %730, %729
  ret void

734:                                              ; preds = %487
  %735 = load ptr, ptr %23, align 8
  %736 = load i32, ptr %24, align 4
  %737 = insertvalue { ptr, i32 } poison, ptr %735, 0
  %738 = insertvalue { ptr, i32 } %737, i32 %736, 1
  resume { ptr, i32 } %738
}

declare i32 @__gxx_personality_v0(...)

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

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

declare void @_ZN6Assimp6Logger4infoEPKc(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6aiMeshC2Ev(ptr noundef nonnull align 8 dereferenceable(1320)) unnamed_addr #5 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)) #5 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6aiMesh16HasTextureCoordsEj(ptr noundef nonnull align 8 dereferenceable(1320), i32 noundef) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6aiMesh15HasVertexColorsEj(ptr noundef nonnull align 8 dereferenceable(1320), i32 noundef) #5 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI14aiVertexWeightSaIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) #5 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) #6

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

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

; 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 #5 align 2

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

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

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

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

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #7

attributes #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nobuiltin nounwind "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) }
attributes #10 = { builtin 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 8}
!12 = !{!"_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, !14, i64 1280, !15, i64 1284, !6, i64 1312}
!13 = !{!"_ZTS8aiString", !10, i64 0, !7, i64 4}
!14 = !{!"_ZTS16aiMorphingMethod", !7, i64 0}
!15 = !{!"_ZTS6aiAABB", !16, i64 0, !16, i64 12}
!16 = !{!"_ZTS10aiVector3tIfE", !17, i64 0, !17, i64 4, !17, i64 8}
!17 = !{!"float", !7, i64 0}
!18 = !{!19, !10, i64 24}
!19 = !{!"_ZTSN6Assimp32SplitLargeMeshesProcess_TriangleE", !20, i64 0, !10, i64 24}
!20 = !{!"_ZTSN6Assimp11BaseProcessE", !6, i64 8, !6, i64 16}
!21 = !{!12, !10, i64 232}
!22 = !{!12, !6, i64 208}
!23 = !{!24, !10, i64 0}
!24 = !{!"_ZTS6aiFace", !10, i64 0, !6, i64 8}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!12, !10, i64 4}
!28 = !{!12, !6, i64 16}
!29 = !{!12, !6, i64 24}
!30 = !{!12, !6, i64 32}
!31 = !{!12, !6, i64 40}
!32 = distinct !{!32, !26}
!33 = distinct !{!33, !26}
!34 = !{!12, !10, i64 216}
!35 = !{!12, !6, i64 224}
!36 = !{!37, !10, i64 1028}
!37 = !{!"_ZTS6aiBone", !13, i64 0, !10, i64 1028, !6, i64 1032, !6, i64 1040, !6, i64 1048, !38, i64 1056}
!38 = !{!"_ZTS12aiMatrix4x4tIfE", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12, !17, i64 16, !17, i64 20, !17, i64 24, !17, i64 28, !17, i64 32, !17, i64 36, !17, i64 40, !17, i64 44, !17, i64 48, !17, i64 52, !17, i64 56, !17, i64 60}
!39 = !{!37, !6, i64 1048}
!40 = !{!41, !10, i64 0}
!41 = !{!"_ZTS14aiVertexWeight", !10, i64 0, !17, i64 4}
!42 = !{i64 0, i64 4, !9, i64 4, i64 4, !43}
!43 = !{!17, !17, i64 0}
!44 = distinct !{!44, !26}
!45 = !{i64 0, i64 4, !43, i64 4, i64 4, !43, i64 8, i64 4, !43, i64 12, i64 4, !43, i64 16, i64 4, !43, i64 20, i64 4, !43, i64 24, i64 4, !43, i64 28, i64 4, !43, i64 32, i64 4, !43, i64 36, i64 4, !43, i64 40, i64 4, !43, i64 44, i64 4, !43, i64 48, i64 4, !43, i64 52, i64 4, !43, i64 56, i64 4, !43, i64 60, i64 4, !43}
!46 = distinct !{!46, !26}
!47 = !{!24, !6, i64 8}
!48 = !{!12, !10, i64 0}
!49 = !{i64 0, i64 4, !43, i64 4, i64 4, !43, i64 8, i64 4, !43}
!50 = distinct !{!50, !26}
!51 = !{i64 0, i64 4, !43, i64 4, i64 4, !43, i64 8, i64 4, !43, i64 12, i64 4, !43}
!52 = distinct !{!52, !26}
!53 = distinct !{!53, !26}
!54 = distinct !{!54, !26}
!55 = distinct !{!55, !26}


; 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::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<aiVertexWeight, std::allocator<aiVertexWeight>>::_Vector_impl" }
%"struct.std::_Vector_base<aiVertexWeight, std::allocator<aiVertexWeight>>::_Vector_impl" = type { %"struct.std::_Vector_base<aiVertexWeight, std::allocator<aiVertexWeight>>::_Vector_impl_data" }
%"struct.std::_Vector_base<aiVertexWeight, std::allocator<aiVertexWeight>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.aiString = type { i32, [1024 x i8] }
%struct.aiFace = type { i32, ptr }
%class.aiVector3t = type { float, float, float }
%class.aiColor4t = type { float, float, float, float }
%struct.aiVertexWeight = type { i32, float }

@.str.4 = external hidden unnamed_addr constant [54 x i8], align 1
@switch.table._ZN6Assimp32SplitLargeMeshesProcess_Triangle9SplitMeshEjP6aiMeshRSt6vectorISt4pairIS2_jESaIS5_EE = private unnamed_addr constant [3 x i32] [i32 1, i32 2, i32 4], align 4

declare noundef ptr @_ZN6Assimp13DefaultLogger3getEv() local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp32SplitLargeMeshesProcess_Triangle9SplitMeshEjP6aiMeshRSt6vectorISt4pairIS2_jESaIS5_EE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(28) %0, i32 noundef %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.std::vector.5", align 8
  %9 = alloca %struct.aiString, align 4
  store i32 %1, ptr %5, align 4, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !9
  %10 = getelementptr inbounds i8, ptr %2, i64 8
  %11 = load i32, ptr %10, align 8, !tbaa !11
  %12 = getelementptr inbounds i8, ptr %0, i64 24
  %13 = load i32, ptr %12, align 8, !tbaa !18
  %14 = icmp ugt i32 %11, %13
  br i1 %14, label %15, label %724

15:                                               ; preds = %4
  %16 = tail call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  tail call void @_ZN6Assimp6Logger4infoEPKc(ptr noundef nonnull align 8 dereferenceable(12) %16, ptr noundef nonnull @.str.4)
  %17 = load i32, ptr %10, align 8, !tbaa !11
  %18 = load i32, ptr %12, align 8, !tbaa !18
  %19 = udiv i32 %17, %18
  %20 = add i32 %19, 1
  %21 = udiv i32 %17, %20
  %22 = mul i32 %19, %21
  br label %26

23:                                               ; preds = %._crit_edge177
  %24 = load ptr, ptr %6, align 8, !tbaa !9
  %25 = icmp eq ptr %24, null
  br i1 %25, label %726, label %723

26:                                               ; preds = %15, %._crit_edge177
  %27 = phi ptr [ %2, %15 ], [ %482, %._crit_edge177 ]
  %indvars.iv = phi i32 [ 0, %15 ], [ %indvars.iv.next, %._crit_edge177 ]
  %.0118178 = phi i32 [ 0, %15 ], [ %484, %._crit_edge177 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %28 = call noalias noundef nonnull dereferenceable(1320) ptr @_Znwm(i64 noundef 1320) #9
  call void @_ZN6aiMeshC2Ev(ptr noundef nonnull align 8 dereferenceable(1320) %28) #8
  store ptr %28, ptr %7, align 8, !tbaa !9
  %29 = getelementptr inbounds i8, ptr %28, i64 8
  store i32 %21, ptr %29, align 8, !tbaa !11
  %30 = getelementptr inbounds i8, ptr %27, i64 232
  %31 = load i32, ptr %30, align 8, !tbaa !21
  %32 = getelementptr inbounds i8, ptr %28, i64 232
  store i32 %31, ptr %32, align 8, !tbaa !21
  %33 = getelementptr inbounds i8, ptr %27, i64 236
  %34 = getelementptr inbounds i8, ptr %28, i64 236
  %35 = call noundef nonnull align 4 dereferenceable(1028) ptr @_ZN8aiStringaSERKS_(ptr noundef nonnull align 4 dereferenceable(1028) %34, ptr noundef nonnull align 4 dereferenceable(1028) %33)
  %36 = icmp eq i32 %.0118178, %19
  %.pre = load ptr, ptr %7, align 8, !tbaa !9
  br i1 %36, label %37, label %._crit_edge218

._crit_edge218:                                   ; preds = %26
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.pre, i64 8
  %.pre219 = load i32, ptr %.phi.trans.insert, align 8, !tbaa !11
  br label %43

37:                                               ; preds = %26
  %38 = load ptr, ptr %6, align 8, !tbaa !9
  %39 = getelementptr inbounds i8, ptr %38, i64 8
  %40 = load i32, ptr %39, align 8, !tbaa !11
  %41 = sub i32 %40, %22
  %42 = getelementptr inbounds i8, ptr %.pre, i64 8
  store i32 %41, ptr %42, align 8, !tbaa !11
  br label %43

43:                                               ; preds = %._crit_edge218, %37
  %44 = phi i32 [ %.pre219, %._crit_edge218 ], [ %41, %37 ]
  %45 = zext i32 %44 to i64
  %46 = shl nuw nsw i64 %45, 4
  %47 = or disjoint i64 %46, 8
  %48 = call noalias noundef nonnull ptr @_Znam(i64 noundef %47) #9
  store i64 %45, ptr %48, align 16
  %49 = getelementptr inbounds i8, ptr %48, i64 8
  %50 = icmp eq i32 %44, 0
  br i1 %50, label %.loopexit153, label %51

51:                                               ; preds = %43
  %52 = getelementptr inbounds %struct.aiFace, ptr %49, i64 %45
  br label %53

53:                                               ; preds = %53, %51
  %54 = phi ptr [ %49, %51 ], [ %55, %53 ]
  call void @_ZN6aiFaceC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %54) #8
  %55 = getelementptr inbounds i8, ptr %54, i64 16
  %56 = icmp eq ptr %55, %52
  br i1 %56, label %.loopexit153.loopexit, label %53

.loopexit153.loopexit:                            ; preds = %53
  %.pre220 = load ptr, ptr %7, align 8, !tbaa !9
  br label %.loopexit153

.loopexit153:                                     ; preds = %.loopexit153.loopexit, %43
  %57 = phi ptr [ %.pre220, %.loopexit153.loopexit ], [ %.pre, %43 ]
  %58 = getelementptr inbounds i8, ptr %57, i64 208
  store ptr %49, ptr %58, align 8, !tbaa !22
  %59 = mul i32 %.0118178, %21
  %60 = getelementptr inbounds i8, ptr %57, i64 8
  %61 = load i32, ptr %60, align 8, !tbaa !11
  %62 = add i32 %61, %59
  %63 = icmp ult i32 %59, %62
  %.pre221 = load ptr, ptr %6, align 8, !tbaa !9
  br i1 %63, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.loopexit153
  %64 = getelementptr inbounds i8, ptr %.pre221, i64 208
  %65 = load ptr, ptr %64, align 8, !tbaa !22
  %66 = zext i32 %indvars.iv to i64
  %67 = add i32 %61, %indvars.iv
  %68 = add i32 %61, -1
  %min.iters.check = icmp ult i32 %68, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv186.ph = phi i64 [ %66, %.lr.ph ], [ %ind.end, %middle.block ]
  %.0120155.ph = phi i32 [ 0, %.lr.ph ], [ %93, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph
  %69 = zext i32 %68 to i64
  %70 = add nuw nsw i64 %69, 1
  %n.mod.vf = and i64 %70, 7
  %71 = icmp eq i64 %n.mod.vf, 0
  %72 = select i1 %71, i64 8, i64 %n.mod.vf
  %n.vec = sub nsw i64 %70, %72
  %ind.end = add nsw i64 %n.vec, %66
  %invariant.gep = getelementptr i8, ptr %65, i64 16
  %invariant.gep269 = getelementptr i8, ptr %65, i64 32
  %invariant.gep271 = getelementptr i8, ptr %65, i64 48
  %invariant.gep273 = getelementptr i8, ptr %65, i64 64
  %invariant.gep275 = getelementptr i8, ptr %65, i64 80
  %invariant.gep277 = getelementptr i8, ptr %65, i64 96
  %invariant.gep279 = getelementptr i8, ptr %65, i64 112
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %90, %vector.body ]
  %vec.phi260 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %91, %vector.body ]
  %offset.idx = add i64 %index, %66
  %73 = getelementptr inbounds %struct.aiFace, ptr %65, i64 %offset.idx
  %gep = getelementptr %struct.aiFace, ptr %invariant.gep, i64 %offset.idx
  %gep270 = getelementptr %struct.aiFace, ptr %invariant.gep269, i64 %offset.idx
  %gep272 = getelementptr %struct.aiFace, ptr %invariant.gep271, i64 %offset.idx
  %gep274 = getelementptr %struct.aiFace, ptr %invariant.gep273, i64 %offset.idx
  %gep276 = getelementptr %struct.aiFace, ptr %invariant.gep275, i64 %offset.idx
  %gep278 = getelementptr %struct.aiFace, ptr %invariant.gep277, i64 %offset.idx
  %gep280 = getelementptr %struct.aiFace, ptr %invariant.gep279, i64 %offset.idx
  %74 = load i32, ptr %73, align 8, !tbaa !23
  %75 = load i32, ptr %gep, align 8, !tbaa !23
  %76 = load i32, ptr %gep270, align 8, !tbaa !23
  %77 = load i32, ptr %gep272, align 8, !tbaa !23
  %78 = insertelement <4 x i32> poison, i32 %74, i64 0
  %79 = insertelement <4 x i32> %78, i32 %75, i64 1
  %80 = insertelement <4 x i32> %79, i32 %76, i64 2
  %81 = insertelement <4 x i32> %80, i32 %77, i64 3
  %82 = load i32, ptr %gep274, align 8, !tbaa !23
  %83 = load i32, ptr %gep276, align 8, !tbaa !23
  %84 = load i32, ptr %gep278, align 8, !tbaa !23
  %85 = load i32, ptr %gep280, align 8, !tbaa !23
  %86 = insertelement <4 x i32> poison, i32 %82, i64 0
  %87 = insertelement <4 x i32> %86, i32 %83, i64 1
  %88 = insertelement <4 x i32> %87, i32 %84, i64 2
  %89 = insertelement <4 x i32> %88, i32 %85, i64 3
  %90 = add <4 x i32> %81, %vec.phi
  %91 = add <4 x i32> %89, %vec.phi260
  %index.next = add nuw i64 %index, 8
  %92 = icmp eq i64 %index.next, %n.vec
  br i1 %92, label %middle.block, label %vector.body, !llvm.loop !25

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %91, %90
  %93 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  br label %scalar.ph.preheader

._crit_edge:                                      ; preds = %scalar.ph, %.loopexit153
  %.0120.lcssa = phi i32 [ 0, %.loopexit153 ], [ %99, %scalar.ph ]
  %94 = getelementptr inbounds i8, ptr %57, i64 4
  store i32 %.0120.lcssa, ptr %94, align 4, !tbaa !29
  %95 = getelementptr inbounds i8, ptr %.pre221, i64 16
  %96 = load ptr, ptr %95, align 8, !tbaa !30
  %.not = icmp eq ptr %96, null
  br i1 %.not, label %113, label %100

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv186 = phi i64 [ %indvars.iv.next187, %scalar.ph ], [ %indvars.iv186.ph, %scalar.ph.preheader ]
  %.0120155 = phi i32 [ %99, %scalar.ph ], [ %.0120155.ph, %scalar.ph.preheader ]
  %97 = getelementptr inbounds %struct.aiFace, ptr %65, i64 %indvars.iv186
  %98 = load i32, ptr %97, align 8, !tbaa !23
  %99 = add i32 %98, %.0120155
  %indvars.iv.next187 = add nuw nsw i64 %indvars.iv186, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next187 to i32
  %exitcond.not = icmp eq i32 %67, %lftr.wideiv
  br i1 %exitcond.not, label %._crit_edge, label %scalar.ph, !llvm.loop !31

100:                                              ; preds = %._crit_edge
  %101 = zext i32 %.0120.lcssa to i64
  %102 = mul nuw nsw i64 %101, 12
  %103 = call noalias noundef nonnull ptr @_Znam(i64 noundef %102) #9
  %104 = icmp eq i32 %.0120.lcssa, 0
  br i1 %104, label %.loopexit152, label %105

105:                                              ; preds = %100
  %106 = getelementptr inbounds %class.aiVector3t, ptr %103, i64 %101
  br label %107

107:                                              ; preds = %107, %105
  %108 = phi ptr [ %103, %105 ], [ %109, %107 ]
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %108) #8
  %109 = getelementptr inbounds i8, ptr %108, i64 12
  %110 = icmp eq ptr %109, %106
  br i1 %110, label %.loopexit152.loopexit, label %107

.loopexit152.loopexit:                            ; preds = %107
  %.pre222 = load ptr, ptr %7, align 8, !tbaa !9
  br label %.loopexit152

.loopexit152:                                     ; preds = %.loopexit152.loopexit, %100
  %111 = phi ptr [ %.pre222, %.loopexit152.loopexit ], [ %57, %100 ]
  %112 = getelementptr inbounds i8, ptr %111, i64 16
  store ptr %103, ptr %112, align 8, !tbaa !30
  br label %113

113:                                              ; preds = %.loopexit152, %._crit_edge
  %114 = call noundef zeroext i1 @_ZNK6aiMesh10HasNormalsEv(ptr noundef nonnull align 8 dereferenceable(1320) %.pre221)
  br i1 %114, label %115, label %128

115:                                              ; preds = %113
  %116 = zext i32 %.0120.lcssa to i64
  %117 = mul nuw nsw i64 %116, 12
  %118 = call noalias noundef nonnull ptr @_Znam(i64 noundef %117) #9
  %119 = icmp eq i32 %.0120.lcssa, 0
  br i1 %119, label %.loopexit151, label %120

120:                                              ; preds = %115
  %121 = getelementptr inbounds %class.aiVector3t, ptr %118, i64 %116
  br label %122

122:                                              ; preds = %122, %120
  %123 = phi ptr [ %118, %120 ], [ %124, %122 ]
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %123) #8
  %124 = getelementptr inbounds i8, ptr %123, i64 12
  %125 = icmp eq ptr %124, %121
  br i1 %125, label %.loopexit151, label %122

.loopexit151:                                     ; preds = %122, %115
  %126 = load ptr, ptr %7, align 8, !tbaa !9
  %127 = getelementptr inbounds i8, ptr %126, i64 24
  store ptr %118, ptr %127, align 8, !tbaa !32
  br label %128

128:                                              ; preds = %.loopexit151, %113
  %129 = call noundef zeroext i1 @_ZNK6aiMesh24HasTangentsAndBitangentsEv(ptr noundef nonnull align 8 dereferenceable(1320) %.pre221)
  br i1 %129, label %130, label %._crit_edge224

._crit_edge224:                                   ; preds = %128
  %.pre225 = load ptr, ptr %7, align 8, !tbaa !9
  %.pre245 = zext i32 %.0120.lcssa to i64
  %.pre246 = mul nuw nsw i64 %.pre245, 12
  br label %156

130:                                              ; preds = %128
  %131 = zext i32 %.0120.lcssa to i64
  %132 = mul nuw nsw i64 %131, 12
  %133 = call noalias noundef nonnull ptr @_Znam(i64 noundef %132) #9
  %134 = icmp eq i32 %.0120.lcssa, 0
  br i1 %134, label %.thread, label %138

.thread:                                          ; preds = %130
  %135 = load ptr, ptr %7, align 8, !tbaa !9
  %136 = getelementptr inbounds i8, ptr %135, i64 32
  store ptr %133, ptr %136, align 8, !tbaa !33
  %137 = call noalias noundef nonnull ptr @_Znam(i64 noundef %132) #9
  br label %.loopexit150

138:                                              ; preds = %130
  %139 = getelementptr inbounds %class.aiVector3t, ptr %133, i64 %131
  br label %140

140:                                              ; preds = %140, %138
  %141 = phi ptr [ %133, %138 ], [ %142, %140 ]
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %141) #8
  %142 = getelementptr inbounds i8, ptr %141, i64 12
  %143 = icmp eq ptr %142, %139
  br i1 %143, label %144, label %140

144:                                              ; preds = %140
  %145 = load ptr, ptr %7, align 8, !tbaa !9
  %146 = getelementptr inbounds i8, ptr %145, i64 32
  store ptr %133, ptr %146, align 8, !tbaa !33
  %147 = call noalias noundef nonnull ptr @_Znam(i64 noundef %132) #9
  %148 = getelementptr inbounds %class.aiVector3t, ptr %147, i64 %131
  br label %149

149:                                              ; preds = %149, %144
  %150 = phi ptr [ %147, %144 ], [ %151, %149 ]
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %150) #8
  %151 = getelementptr inbounds i8, ptr %150, i64 12
  %152 = icmp eq ptr %151, %148
  br i1 %152, label %.loopexit150.loopexit, label %149

.loopexit150.loopexit:                            ; preds = %149
  %.pre223 = load ptr, ptr %7, align 8, !tbaa !9
  br label %.loopexit150

.loopexit150:                                     ; preds = %.loopexit150.loopexit, %.thread
  %153 = phi ptr [ %135, %.thread ], [ %.pre223, %.loopexit150.loopexit ]
  %154 = phi ptr [ %137, %.thread ], [ %147, %.loopexit150.loopexit ]
  %155 = getelementptr inbounds i8, ptr %153, i64 40
  store ptr %154, ptr %155, align 8, !tbaa !34
  br label %156

156:                                              ; preds = %._crit_edge224, %.loopexit150
  %.pre-phi247 = phi i64 [ %.pre246, %._crit_edge224 ], [ %132, %.loopexit150 ]
  %.pre-phi = phi i64 [ %.pre245, %._crit_edge224 ], [ %131, %.loopexit150 ]
  %157 = phi ptr [ %.pre225, %._crit_edge224 ], [ %153, %.loopexit150 ]
  %158 = icmp eq i32 %.0120.lcssa, 0
  %159 = getelementptr inbounds i8, ptr %.pre221, i64 176
  %160 = load i32, ptr %159, align 4, !tbaa !5
  %161 = getelementptr inbounds i8, ptr %157, i64 176
  store i32 %160, ptr %161, align 4, !tbaa !5
  %162 = call noundef zeroext i1 @_ZNK6aiMesh16HasTextureCoordsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre221, i32 noundef 0)
  br i1 %162, label %163, label %._crit_edge226

._crit_edge226:                                   ; preds = %156
  %.pre227 = load ptr, ptr %7, align 8, !tbaa !9
  br label %173

163:                                              ; preds = %156
  %164 = call noalias noundef nonnull ptr @_Znam(i64 noundef %.pre-phi247) #9
  br i1 %158, label %.loopexit148, label %165

165:                                              ; preds = %163
  %166 = getelementptr inbounds %class.aiVector3t, ptr %164, i64 %.pre-phi
  br label %167

167:                                              ; preds = %167, %165
  %168 = phi ptr [ %164, %165 ], [ %169, %167 ]
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %168) #8
  %169 = getelementptr inbounds i8, ptr %168, i64 12
  %170 = icmp eq ptr %169, %166
  br i1 %170, label %.loopexit148, label %167

.loopexit148:                                     ; preds = %167, %163
  %171 = load ptr, ptr %7, align 8, !tbaa !9
  %172 = getelementptr inbounds i8, ptr %171, i64 112
  store ptr %164, ptr %172, align 8, !tbaa !9
  br label %173

173:                                              ; preds = %._crit_edge226, %.loopexit148
  %174 = phi ptr [ %.pre227, %._crit_edge226 ], [ %171, %.loopexit148 ]
  %175 = getelementptr inbounds i8, ptr %.pre221, i64 180
  %176 = load i32, ptr %175, align 4, !tbaa !5
  %177 = getelementptr inbounds i8, ptr %174, i64 180
  store i32 %176, ptr %177, align 4, !tbaa !5
  %178 = call noundef zeroext i1 @_ZNK6aiMesh16HasTextureCoordsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre221, i32 noundef 1)
  br i1 %178, label %179, label %._crit_edge228

._crit_edge228:                                   ; preds = %173
  %.pre229 = load ptr, ptr %7, align 8, !tbaa !9
  br label %189

179:                                              ; preds = %173
  %180 = call noalias noundef nonnull ptr @_Znam(i64 noundef %.pre-phi247) #9
  br i1 %158, label %.loopexit148.1, label %181

181:                                              ; preds = %179
  %182 = getelementptr inbounds %class.aiVector3t, ptr %180, i64 %.pre-phi
  br label %183

183:                                              ; preds = %183, %181
  %184 = phi ptr [ %180, %181 ], [ %185, %183 ]
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %184) #8
  %185 = getelementptr inbounds i8, ptr %184, i64 12
  %186 = icmp eq ptr %185, %182
  br i1 %186, label %.loopexit148.1, label %183

.loopexit148.1:                                   ; preds = %183, %179
  %187 = load ptr, ptr %7, align 8, !tbaa !9
  %188 = getelementptr inbounds i8, ptr %187, i64 120
  store ptr %180, ptr %188, align 8, !tbaa !9
  br label %189

189:                                              ; preds = %._crit_edge228, %.loopexit148.1
  %190 = phi ptr [ %.pre229, %._crit_edge228 ], [ %187, %.loopexit148.1 ]
  %191 = getelementptr inbounds i8, ptr %.pre221, i64 184
  %192 = load i32, ptr %191, align 4, !tbaa !5
  %193 = getelementptr inbounds i8, ptr %190, i64 184
  store i32 %192, ptr %193, align 4, !tbaa !5
  %194 = call noundef zeroext i1 @_ZNK6aiMesh16HasTextureCoordsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre221, i32 noundef 2)
  br i1 %194, label %195, label %._crit_edge230

._crit_edge230:                                   ; preds = %189
  %.pre231 = load ptr, ptr %7, align 8, !tbaa !9
  br label %205

195:                                              ; preds = %189
  %196 = call noalias noundef nonnull ptr @_Znam(i64 noundef %.pre-phi247) #9
  br i1 %158, label %.loopexit148.2, label %197

197:                                              ; preds = %195
  %198 = getelementptr inbounds %class.aiVector3t, ptr %196, i64 %.pre-phi
  br label %199

199:                                              ; preds = %199, %197
  %200 = phi ptr [ %196, %197 ], [ %201, %199 ]
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %200) #8
  %201 = getelementptr inbounds i8, ptr %200, i64 12
  %202 = icmp eq ptr %201, %198
  br i1 %202, label %.loopexit148.2, label %199

.loopexit148.2:                                   ; preds = %199, %195
  %203 = load ptr, ptr %7, align 8, !tbaa !9
  %204 = getelementptr inbounds i8, ptr %203, i64 128
  store ptr %196, ptr %204, align 8, !tbaa !9
  br label %205

205:                                              ; preds = %._crit_edge230, %.loopexit148.2
  %206 = phi ptr [ %.pre231, %._crit_edge230 ], [ %203, %.loopexit148.2 ]
  %207 = getelementptr inbounds i8, ptr %.pre221, i64 188
  %208 = load i32, ptr %207, align 4, !tbaa !5
  %209 = getelementptr inbounds i8, ptr %206, i64 188
  store i32 %208, ptr %209, align 4, !tbaa !5
  %210 = call noundef zeroext i1 @_ZNK6aiMesh16HasTextureCoordsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre221, i32 noundef 3)
  br i1 %210, label %211, label %._crit_edge232

._crit_edge232:                                   ; preds = %205
  %.pre233 = load ptr, ptr %7, align 8, !tbaa !9
  br label %221

211:                                              ; preds = %205
  %212 = call noalias noundef nonnull ptr @_Znam(i64 noundef %.pre-phi247) #9
  br i1 %158, label %.loopexit148.3, label %213

213:                                              ; preds = %211
  %214 = getelementptr inbounds %class.aiVector3t, ptr %212, i64 %.pre-phi
  br label %215

215:                                              ; preds = %215, %213
  %216 = phi ptr [ %212, %213 ], [ %217, %215 ]
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %216) #8
  %217 = getelementptr inbounds i8, ptr %216, i64 12
  %218 = icmp eq ptr %217, %214
  br i1 %218, label %.loopexit148.3, label %215

.loopexit148.3:                                   ; preds = %215, %211
  %219 = load ptr, ptr %7, align 8, !tbaa !9
  %220 = getelementptr inbounds i8, ptr %219, i64 136
  store ptr %212, ptr %220, align 8, !tbaa !9
  br label %221

221:                                              ; preds = %._crit_edge232, %.loopexit148.3
  %222 = phi ptr [ %.pre233, %._crit_edge232 ], [ %219, %.loopexit148.3 ]
  %223 = getelementptr inbounds i8, ptr %.pre221, i64 192
  %224 = load i32, ptr %223, align 4, !tbaa !5
  %225 = getelementptr inbounds i8, ptr %222, i64 192
  store i32 %224, ptr %225, align 4, !tbaa !5
  %226 = call noundef zeroext i1 @_ZNK6aiMesh16HasTextureCoordsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre221, i32 noundef 4)
  br i1 %226, label %227, label %._crit_edge234

._crit_edge234:                                   ; preds = %221
  %.pre235 = load ptr, ptr %7, align 8, !tbaa !9
  br label %237

227:                                              ; preds = %221
  %228 = call noalias noundef nonnull ptr @_Znam(i64 noundef %.pre-phi247) #9
  br i1 %158, label %.loopexit148.4, label %229

229:                                              ; preds = %227
  %230 = getelementptr inbounds %class.aiVector3t, ptr %228, i64 %.pre-phi
  br label %231

231:                                              ; preds = %231, %229
  %232 = phi ptr [ %228, %229 ], [ %233, %231 ]
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %232) #8
  %233 = getelementptr inbounds i8, ptr %232, i64 12
  %234 = icmp eq ptr %233, %230
  br i1 %234, label %.loopexit148.4, label %231

.loopexit148.4:                                   ; preds = %231, %227
  %235 = load ptr, ptr %7, align 8, !tbaa !9
  %236 = getelementptr inbounds i8, ptr %235, i64 144
  store ptr %228, ptr %236, align 8, !tbaa !9
  br label %237

237:                                              ; preds = %._crit_edge234, %.loopexit148.4
  %238 = phi ptr [ %.pre235, %._crit_edge234 ], [ %235, %.loopexit148.4 ]
  %239 = getelementptr inbounds i8, ptr %.pre221, i64 196
  %240 = load i32, ptr %239, align 4, !tbaa !5
  %241 = getelementptr inbounds i8, ptr %238, i64 196
  store i32 %240, ptr %241, align 4, !tbaa !5
  %242 = call noundef zeroext i1 @_ZNK6aiMesh16HasTextureCoordsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre221, i32 noundef 5)
  br i1 %242, label %243, label %._crit_edge236

._crit_edge236:                                   ; preds = %237
  %.pre237 = load ptr, ptr %7, align 8, !tbaa !9
  br label %253

243:                                              ; preds = %237
  %244 = call noalias noundef nonnull ptr @_Znam(i64 noundef %.pre-phi247) #9
  br i1 %158, label %.loopexit148.5, label %245

245:                                              ; preds = %243
  %246 = getelementptr inbounds %class.aiVector3t, ptr %244, i64 %.pre-phi
  br label %247

247:                                              ; preds = %247, %245
  %248 = phi ptr [ %244, %245 ], [ %249, %247 ]
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %248) #8
  %249 = getelementptr inbounds i8, ptr %248, i64 12
  %250 = icmp eq ptr %249, %246
  br i1 %250, label %.loopexit148.5, label %247

.loopexit148.5:                                   ; preds = %247, %243
  %251 = load ptr, ptr %7, align 8, !tbaa !9
  %252 = getelementptr inbounds i8, ptr %251, i64 152
  store ptr %244, ptr %252, align 8, !tbaa !9
  br label %253

253:                                              ; preds = %._crit_edge236, %.loopexit148.5
  %254 = phi ptr [ %.pre237, %._crit_edge236 ], [ %251, %.loopexit148.5 ]
  %255 = getelementptr inbounds i8, ptr %.pre221, i64 200
  %256 = load i32, ptr %255, align 4, !tbaa !5
  %257 = getelementptr inbounds i8, ptr %254, i64 200
  store i32 %256, ptr %257, align 4, !tbaa !5
  %258 = call noundef zeroext i1 @_ZNK6aiMesh16HasTextureCoordsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre221, i32 noundef 6)
  br i1 %258, label %259, label %._crit_edge238

._crit_edge238:                                   ; preds = %253
  %.pre239 = load ptr, ptr %7, align 8, !tbaa !9
  br label %269

259:                                              ; preds = %253
  %260 = call noalias noundef nonnull ptr @_Znam(i64 noundef %.pre-phi247) #9
  br i1 %158, label %.loopexit148.6, label %261

261:                                              ; preds = %259
  %262 = getelementptr inbounds %class.aiVector3t, ptr %260, i64 %.pre-phi
  br label %263

263:                                              ; preds = %263, %261
  %264 = phi ptr [ %260, %261 ], [ %265, %263 ]
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %264) #8
  %265 = getelementptr inbounds i8, ptr %264, i64 12
  %266 = icmp eq ptr %265, %262
  br i1 %266, label %.loopexit148.6, label %263

.loopexit148.6:                                   ; preds = %263, %259
  %267 = load ptr, ptr %7, align 8, !tbaa !9
  %268 = getelementptr inbounds i8, ptr %267, i64 160
  store ptr %260, ptr %268, align 8, !tbaa !9
  br label %269

269:                                              ; preds = %._crit_edge238, %.loopexit148.6
  %270 = phi ptr [ %.pre239, %._crit_edge238 ], [ %267, %.loopexit148.6 ]
  %271 = getelementptr inbounds i8, ptr %.pre221, i64 204
  %272 = load i32, ptr %271, align 4, !tbaa !5
  %273 = getelementptr inbounds i8, ptr %270, i64 204
  store i32 %272, ptr %273, align 4, !tbaa !5
  %274 = call noundef zeroext i1 @_ZNK6aiMesh16HasTextureCoordsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre221, i32 noundef 7)
  br i1 %274, label %275, label %.preheader149

275:                                              ; preds = %269
  %276 = call noalias noundef nonnull ptr @_Znam(i64 noundef %.pre-phi247) #9
  br i1 %158, label %.loopexit148.7, label %277

277:                                              ; preds = %275
  %278 = getelementptr inbounds %class.aiVector3t, ptr %276, i64 %.pre-phi
  br label %279

279:                                              ; preds = %279, %277
  %280 = phi ptr [ %276, %277 ], [ %281, %279 ]
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %280) #8
  %281 = getelementptr inbounds i8, ptr %280, i64 12
  %282 = icmp eq ptr %281, %278
  br i1 %282, label %.loopexit148.7, label %279

.loopexit148.7:                                   ; preds = %279, %275
  %283 = load ptr, ptr %7, align 8, !tbaa !9
  %284 = getelementptr inbounds i8, ptr %283, i64 168
  store ptr %276, ptr %284, align 8, !tbaa !9
  br label %.preheader149

.preheader149:                                    ; preds = %.loopexit148.7, %269
  %285 = shl nuw nsw i64 %.pre-phi, 4
  %286 = call noundef zeroext i1 @_ZNK6aiMesh15HasVertexColorsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre221, i32 noundef 0)
  br i1 %286, label %287, label %297

287:                                              ; preds = %.preheader149
  %288 = call noalias noundef nonnull ptr @_Znam(i64 noundef %285) #9
  br i1 %158, label %.loopexit147, label %289

289:                                              ; preds = %287
  %290 = getelementptr inbounds %class.aiColor4t, ptr %288, i64 %.pre-phi
  br label %291

291:                                              ; preds = %291, %289
  %292 = phi ptr [ %288, %289 ], [ %293, %291 ]
  call void @_ZN9aiColor4tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %292) #8
  %293 = getelementptr inbounds i8, ptr %292, i64 16
  %294 = icmp eq ptr %293, %290
  br i1 %294, label %.loopexit147, label %291

.loopexit147:                                     ; preds = %291, %287
  %295 = load ptr, ptr %7, align 8, !tbaa !9
  %296 = getelementptr inbounds i8, ptr %295, i64 48
  store ptr %288, ptr %296, align 8, !tbaa !9
  br label %297

297:                                              ; preds = %.preheader149, %.loopexit147
  %298 = call noundef zeroext i1 @_ZNK6aiMesh15HasVertexColorsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre221, i32 noundef 1)
  br i1 %298, label %299, label %309

299:                                              ; preds = %297
  %300 = call noalias noundef nonnull ptr @_Znam(i64 noundef %285) #9
  br i1 %158, label %.loopexit147.1, label %301

301:                                              ; preds = %299
  %302 = getelementptr inbounds %class.aiColor4t, ptr %300, i64 %.pre-phi
  br label %303

303:                                              ; preds = %303, %301
  %304 = phi ptr [ %300, %301 ], [ %305, %303 ]
  call void @_ZN9aiColor4tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %304) #8
  %305 = getelementptr inbounds i8, ptr %304, i64 16
  %306 = icmp eq ptr %305, %302
  br i1 %306, label %.loopexit147.1, label %303

.loopexit147.1:                                   ; preds = %303, %299
  %307 = load ptr, ptr %7, align 8, !tbaa !9
  %308 = getelementptr inbounds i8, ptr %307, i64 56
  store ptr %300, ptr %308, align 8, !tbaa !9
  br label %309

309:                                              ; preds = %.loopexit147.1, %297
  %310 = call noundef zeroext i1 @_ZNK6aiMesh15HasVertexColorsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre221, i32 noundef 2)
  br i1 %310, label %311, label %321

311:                                              ; preds = %309
  %312 = call noalias noundef nonnull ptr @_Znam(i64 noundef %285) #9
  br i1 %158, label %.loopexit147.2, label %313

313:                                              ; preds = %311
  %314 = getelementptr inbounds %class.aiColor4t, ptr %312, i64 %.pre-phi
  br label %315

315:                                              ; preds = %315, %313
  %316 = phi ptr [ %312, %313 ], [ %317, %315 ]
  call void @_ZN9aiColor4tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %316) #8
  %317 = getelementptr inbounds i8, ptr %316, i64 16
  %318 = icmp eq ptr %317, %314
  br i1 %318, label %.loopexit147.2, label %315

.loopexit147.2:                                   ; preds = %315, %311
  %319 = load ptr, ptr %7, align 8, !tbaa !9
  %320 = getelementptr inbounds i8, ptr %319, i64 64
  store ptr %312, ptr %320, align 8, !tbaa !9
  br label %321

321:                                              ; preds = %.loopexit147.2, %309
  %322 = call noundef zeroext i1 @_ZNK6aiMesh15HasVertexColorsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre221, i32 noundef 3)
  br i1 %322, label %323, label %333

323:                                              ; preds = %321
  %324 = call noalias noundef nonnull ptr @_Znam(i64 noundef %285) #9
  br i1 %158, label %.loopexit147.3, label %325

325:                                              ; preds = %323
  %326 = getelementptr inbounds %class.aiColor4t, ptr %324, i64 %.pre-phi
  br label %327

327:                                              ; preds = %327, %325
  %328 = phi ptr [ %324, %325 ], [ %329, %327 ]
  call void @_ZN9aiColor4tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %328) #8
  %329 = getelementptr inbounds i8, ptr %328, i64 16
  %330 = icmp eq ptr %329, %326
  br i1 %330, label %.loopexit147.3, label %327

.loopexit147.3:                                   ; preds = %327, %323
  %331 = load ptr, ptr %7, align 8, !tbaa !9
  %332 = getelementptr inbounds i8, ptr %331, i64 72
  store ptr %324, ptr %332, align 8, !tbaa !9
  br label %333

333:                                              ; preds = %.loopexit147.3, %321
  %334 = call noundef zeroext i1 @_ZNK6aiMesh15HasVertexColorsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre221, i32 noundef 4)
  br i1 %334, label %335, label %345

335:                                              ; preds = %333
  %336 = call noalias noundef nonnull ptr @_Znam(i64 noundef %285) #9
  br i1 %158, label %.loopexit147.4, label %337

337:                                              ; preds = %335
  %338 = getelementptr inbounds %class.aiColor4t, ptr %336, i64 %.pre-phi
  br label %339

339:                                              ; preds = %339, %337
  %340 = phi ptr [ %336, %337 ], [ %341, %339 ]
  call void @_ZN9aiColor4tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %340) #8
  %341 = getelementptr inbounds i8, ptr %340, i64 16
  %342 = icmp eq ptr %341, %338
  br i1 %342, label %.loopexit147.4, label %339

.loopexit147.4:                                   ; preds = %339, %335
  %343 = load ptr, ptr %7, align 8, !tbaa !9
  %344 = getelementptr inbounds i8, ptr %343, i64 80
  store ptr %336, ptr %344, align 8, !tbaa !9
  br label %345

345:                                              ; preds = %.loopexit147.4, %333
  %346 = call noundef zeroext i1 @_ZNK6aiMesh15HasVertexColorsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre221, i32 noundef 5)
  br i1 %346, label %347, label %357

347:                                              ; preds = %345
  %348 = call noalias noundef nonnull ptr @_Znam(i64 noundef %285) #9
  br i1 %158, label %.loopexit147.5, label %349

349:                                              ; preds = %347
  %350 = getelementptr inbounds %class.aiColor4t, ptr %348, i64 %.pre-phi
  br label %351

351:                                              ; preds = %351, %349
  %352 = phi ptr [ %348, %349 ], [ %353, %351 ]
  call void @_ZN9aiColor4tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %352) #8
  %353 = getelementptr inbounds i8, ptr %352, i64 16
  %354 = icmp eq ptr %353, %350
  br i1 %354, label %.loopexit147.5, label %351

.loopexit147.5:                                   ; preds = %351, %347
  %355 = load ptr, ptr %7, align 8, !tbaa !9
  %356 = getelementptr inbounds i8, ptr %355, i64 88
  store ptr %348, ptr %356, align 8, !tbaa !9
  br label %357

357:                                              ; preds = %.loopexit147.5, %345
  %358 = call noundef zeroext i1 @_ZNK6aiMesh15HasVertexColorsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre221, i32 noundef 6)
  br i1 %358, label %359, label %369

359:                                              ; preds = %357
  %360 = call noalias noundef nonnull ptr @_Znam(i64 noundef %285) #9
  br i1 %158, label %.loopexit147.6, label %361

361:                                              ; preds = %359
  %362 = getelementptr inbounds %class.aiColor4t, ptr %360, i64 %.pre-phi
  br label %363

363:                                              ; preds = %363, %361
  %364 = phi ptr [ %360, %361 ], [ %365, %363 ]
  call void @_ZN9aiColor4tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %364) #8
  %365 = getelementptr inbounds i8, ptr %364, i64 16
  %366 = icmp eq ptr %365, %362
  br i1 %366, label %.loopexit147.6, label %363

.loopexit147.6:                                   ; preds = %363, %359
  %367 = load ptr, ptr %7, align 8, !tbaa !9
  %368 = getelementptr inbounds i8, ptr %367, i64 96
  store ptr %360, ptr %368, align 8, !tbaa !9
  br label %369

369:                                              ; preds = %.loopexit147.6, %357
  %370 = call noundef zeroext i1 @_ZNK6aiMesh15HasVertexColorsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre221, i32 noundef 7)
  br i1 %370, label %371, label %381

371:                                              ; preds = %369
  %372 = call noalias noundef nonnull ptr @_Znam(i64 noundef %285) #9
  br i1 %158, label %.loopexit147.7, label %373

373:                                              ; preds = %371
  %374 = getelementptr inbounds %class.aiColor4t, ptr %372, i64 %.pre-phi
  br label %375

375:                                              ; preds = %375, %373
  %376 = phi ptr [ %372, %373 ], [ %377, %375 ]
  call void @_ZN9aiColor4tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %376) #8
  %377 = getelementptr inbounds i8, ptr %376, i64 16
  %378 = icmp eq ptr %377, %374
  br i1 %378, label %.loopexit147.7, label %375

.loopexit147.7:                                   ; preds = %375, %371
  %379 = load ptr, ptr %7, align 8, !tbaa !9
  %380 = getelementptr inbounds i8, ptr %379, i64 104
  store ptr %372, ptr %380, align 8, !tbaa !9
  br label %381

381:                                              ; preds = %.loopexit147.7, %369
  %382 = call noundef zeroext i1 @_ZNK6aiMesh8HasBonesEv(ptr noundef nonnull align 8 dereferenceable(1320) %.pre221)
  br i1 %382, label %383, label %478

383:                                              ; preds = %381
  %384 = getelementptr inbounds i8, ptr %.pre221, i64 216
  %385 = load i32, ptr %384, align 8, !tbaa !35
  %386 = zext i32 %385 to i64
  %387 = shl nuw nsw i64 %386, 3
  %388 = call noalias noundef nonnull ptr @_Znam(i64 noundef %387) #9
  %389 = load ptr, ptr %7, align 8, !tbaa !9
  %390 = getelementptr inbounds i8, ptr %389, i64 224
  store ptr %388, ptr %390, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  call void @_ZNSt6vectorI14aiVertexWeightSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  %391 = load ptr, ptr %7, align 8, !tbaa !9
  %392 = getelementptr inbounds i8, ptr %391, i64 216
  %393 = load i32, ptr %392, align 8, !tbaa !35
  %.not181 = icmp eq i32 %393, 0
  br i1 %.not181, label %._crit_edge164, label %.lr.ph163

.lr.ph163:                                        ; preds = %383
  %394 = add i32 %.0118178, 3
  %395 = mul i32 %394, %21
  br label %396

._crit_edge164:                                   ; preds = %471, %383
  call void @_ZNSt6vectorI14aiVertexWeightSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  br label %478

396:                                              ; preds = %.lr.ph163, %471
  %indvars.iv200 = phi i64 [ 0, %.lr.ph163 ], [ %indvars.iv.next201, %471 ]
  %397 = phi ptr [ %391, %.lr.ph163 ], [ %472, %471 ]
  %398 = getelementptr inbounds i8, ptr %397, i64 224
  %399 = load ptr, ptr %398, align 8, !tbaa !36
  %400 = getelementptr inbounds ptr, ptr %399, i64 %indvars.iv200
  %401 = load ptr, ptr %400, align 8, !tbaa !9
  call void @_ZNSt6vectorI14aiVertexWeightSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  %402 = getelementptr inbounds i8, ptr %401, i64 1028
  %403 = load i32, ptr %402, align 4, !tbaa !37
  %404 = udiv i32 %403, %20
  %405 = zext i32 %404 to i64
  invoke void @_ZNSt6vectorI14aiVertexWeightSaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %405)
          to label %.preheader146 unwind label %409

.preheader146:                                    ; preds = %396
  %406 = load i32, ptr %402, align 4, !tbaa !37
  %.not182 = icmp eq i32 %406, 0
  br i1 %.not182, label %._crit_edge160, label %.lr.ph159

.lr.ph159:                                        ; preds = %.preheader146
  %407 = getelementptr inbounds i8, ptr %401, i64 1048
  br label %411

._crit_edge160:                                   ; preds = %425, %.preheader146
  %408 = call noundef zeroext i1 @_ZNKSt6vectorI14aiVertexWeightSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  br i1 %408, label %471, label %429

409:                                              ; preds = %396
  %410 = landingpad { ptr, i32 }
          cleanup
  br label %477

411:                                              ; preds = %.lr.ph159, %425
  %412 = phi i32 [ %406, %.lr.ph159 ], [ %426, %425 ]
  %indvars.iv197 = phi i64 [ 0, %.lr.ph159 ], [ %indvars.iv.next198, %425 ]
  %413 = load ptr, ptr %407, align 8, !tbaa !40
  %414 = getelementptr inbounds %struct.aiVertexWeight, ptr %413, i64 %indvars.iv197
  %415 = load i32, ptr %414, align 4, !tbaa !41
  %.not144 = icmp uge i32 %415, %59
  %416 = icmp ult i32 %415, %395
  %or.cond = and i1 %.not144, %416
  br i1 %or.cond, label %417, label %425

417:                                              ; preds = %411
  invoke void @_ZNSt6vectorI14aiVertexWeightSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 4 dereferenceable(8) %414)
          to label %418 unwind label %423

418:                                              ; preds = %417
  %419 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI14aiVertexWeightSaIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  %420 = load i64, ptr %419, align 4
  store i64 %420, ptr %414, align 4
  %421 = trunc i64 %420 to i32
  %422 = sub i32 %421, %59
  store i32 %422, ptr %414, align 4, !tbaa !41
  %.pre240 = load i32, ptr %402, align 4, !tbaa !37
  br label %425

423:                                              ; preds = %417
  %424 = landingpad { ptr, i32 }
          cleanup
  br label %477

425:                                              ; preds = %418, %411
  %426 = phi i32 [ %.pre240, %418 ], [ %412, %411 ]
  %indvars.iv.next198 = add nuw nsw i64 %indvars.iv197, 1
  %427 = zext i32 %426 to i64
  %428 = icmp ult i64 %indvars.iv.next198, %427
  br i1 %428, label %411, label %._crit_edge160, !llvm.loop !43

429:                                              ; preds = %._crit_edge160
  %430 = invoke noalias noundef nonnull dereferenceable(1120) ptr @_Znwm(i64 noundef 1120) #9
          to label %431 unwind label %450

431:                                              ; preds = %429
  call void @_ZN6aiBoneC2Ev(ptr noundef nonnull align 8 dereferenceable(1120) %430) #8
  %432 = load ptr, ptr %7, align 8, !tbaa !9
  %433 = getelementptr inbounds i8, ptr %432, i64 224
  %434 = load ptr, ptr %433, align 8, !tbaa !36
  %435 = getelementptr inbounds i8, ptr %432, i64 216
  %436 = load i32, ptr %435, align 8, !tbaa !35
  %437 = add i32 %436, 1
  store i32 %437, ptr %435, align 8, !tbaa !35
  %438 = zext i32 %436 to i64
  %439 = getelementptr inbounds ptr, ptr %434, i64 %438
  store ptr %430, ptr %439, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1028, ptr nonnull %9) #8
  call void @_ZN8aiStringC2ERKS_(ptr noundef nonnull align 4 dereferenceable(1028) %9, ptr noundef nonnull align 4 dereferenceable(1028) %401)
  %440 = call noundef nonnull align 4 dereferenceable(1028) ptr @_ZN8aiStringaSERKS_(ptr noundef nonnull align 4 dereferenceable(1028) %430, ptr noundef nonnull align 4 dereferenceable(1028) %9)
  call void @llvm.lifetime.end.p0(i64 1028, ptr nonnull %9) #8
  %441 = call noundef i64 @_ZNKSt6vectorI14aiVertexWeightSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  %442 = trunc i64 %441 to i32
  %443 = getelementptr inbounds i8, ptr %430, i64 1028
  store i32 %442, ptr %443, align 4, !tbaa !37
  %444 = getelementptr inbounds i8, ptr %401, i64 1056
  %445 = getelementptr inbounds i8, ptr %430, i64 1056
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %445, ptr noundef nonnull align 8 dereferenceable(64) %444, i64 64, i1 false), !tbaa.struct !44
  br i1 %36, label %446, label %452

446:                                              ; preds = %431
  %447 = getelementptr inbounds i8, ptr %401, i64 1048
  %448 = load ptr, ptr %447, align 8, !tbaa !40
  %449 = getelementptr inbounds i8, ptr %430, i64 1048
  store ptr %448, ptr %449, align 8, !tbaa !40
  store ptr null, ptr %447, align 8, !tbaa !40
  %.pre242 = load ptr, ptr %449, align 8, !tbaa !40
  br label %465

450:                                              ; preds = %452, %429
  %451 = landingpad { ptr, i32 }
          cleanup
  br label %477

452:                                              ; preds = %431
  %453 = and i64 %441, 4294967295
  %454 = shl nuw nsw i64 %453, 3
  %455 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %454) #9
          to label %456 unwind label %450

456:                                              ; preds = %452
  %457 = icmp eq i32 %442, 0
  br i1 %457, label %.loopexit, label %458

458:                                              ; preds = %456
  %459 = getelementptr inbounds %struct.aiVertexWeight, ptr %455, i64 %453
  br label %460

460:                                              ; preds = %460, %458
  %461 = phi ptr [ %455, %458 ], [ %462, %460 ]
  call void @_ZN14aiVertexWeightC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %461) #8
  %462 = getelementptr inbounds i8, ptr %461, i64 8
  %463 = icmp eq ptr %462, %459
  br i1 %463, label %.loopexit, label %460

.loopexit:                                        ; preds = %460, %456
  %464 = getelementptr inbounds i8, ptr %430, i64 1048
  store ptr %455, ptr %464, align 8, !tbaa !40
  br label %465

465:                                              ; preds = %.loopexit, %446
  %466 = phi ptr [ %455, %.loopexit ], [ %.pre242, %446 ]
  %467 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI14aiVertexWeightSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 0) #8
  %468 = load i32, ptr %443, align 4, !tbaa !37
  %469 = zext i32 %468 to i64
  %470 = shl nuw nsw i64 %469, 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %466, ptr nonnull align 4 %467, i64 %470, i1 false)
  br label %471

471:                                              ; preds = %465, %._crit_edge160
  %indvars.iv.next201 = add nuw nsw i64 %indvars.iv200, 1
  %472 = load ptr, ptr %7, align 8, !tbaa !9
  %473 = getelementptr inbounds i8, ptr %472, i64 216
  %474 = load i32, ptr %473, align 8, !tbaa !35
  %475 = zext i32 %474 to i64
  %476 = icmp ult i64 %indvars.iv.next201, %475
  br i1 %476, label %396, label %._crit_edge164, !llvm.loop !46

477:                                              ; preds = %450, %423, %409
  %.pn = phi { ptr, i32 } [ %424, %423 ], [ %451, %450 ], [ %410, %409 ]
  call void @_ZNSt6vectorI14aiVertexWeightSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  resume { ptr, i32 } %.pn

478:                                              ; preds = %._crit_edge164, %381
  %479 = load ptr, ptr %7, align 8, !tbaa !9
  %480 = getelementptr inbounds i8, ptr %479, i64 8
  %481 = load i32, ptr %480, align 8, !tbaa !11
  %.not183 = icmp eq i32 %481, 0
  br i1 %.not183, label %._crit_edge177, label %.lr.ph176

._crit_edge177:                                   ; preds = %._crit_edge171, %478
  %482 = phi ptr [ %.pre221, %478 ], [ %513, %._crit_edge171 ]
  %483 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIP6aiMeshjESaIS3_EE12emplace_backIJRS2_RjEEERS3_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  %484 = add nuw i32 %.0118178, 1
  %485 = icmp ult i32 %484, %20
  %indvars.iv.next = add i32 %indvars.iv, %21
  br i1 %485, label %26, label %23, !llvm.loop !47

.lr.ph176:                                        ; preds = %478, %._crit_edge171
  %486 = phi ptr [ %513, %._crit_edge171 ], [ %.pre221, %478 ]
  %indvars.iv215 = phi i64 [ %indvars.iv.next216, %._crit_edge171 ], [ 0, %478 ]
  %487 = phi ptr [ %512, %._crit_edge171 ], [ %479, %478 ]
  %.0125173 = phi i32 [ %.1.lcssa, %._crit_edge171 ], [ 0, %478 ]
  %488 = getelementptr inbounds i8, ptr %487, i64 208
  %489 = load ptr, ptr %488, align 8, !tbaa !22
  %490 = getelementptr inbounds %struct.aiFace, ptr %489, i64 %indvars.iv215
  store i32 3, ptr %490, align 8, !tbaa !23
  %491 = trunc nuw i64 %indvars.iv215 to i32
  %492 = add i32 %59, %491
  %493 = getelementptr inbounds i8, ptr %486, i64 208
  %494 = load ptr, ptr %493, align 8, !tbaa !22
  %495 = zext i32 %492 to i64
  %496 = getelementptr inbounds %struct.aiFace, ptr %494, i64 %495
  %497 = load i32, ptr %496, align 8, !tbaa !23
  store i32 %497, ptr %490, align 8, !tbaa !23
  %498 = getelementptr inbounds %struct.aiFace, ptr %494, i64 %495, i32 1
  %499 = load ptr, ptr %498, align 8, !tbaa !48
  %500 = zext i32 %497 to i64
  %501 = shl nuw nsw i64 %500, 2
  %502 = call noalias noundef nonnull ptr @_Znam(i64 noundef %501) #9
  %503 = load ptr, ptr %488, align 8, !tbaa !22
  %504 = getelementptr inbounds %struct.aiFace, ptr %503, i64 %indvars.iv215, i32 1
  store ptr %502, ptr %504, align 8, !tbaa !48
  %505 = load ptr, ptr %7, align 8, !tbaa !9
  %506 = load i32, ptr %505, align 8, !tbaa !49
  %switch.tableidx = add i32 %497, -1
  %507 = icmp ult i32 %switch.tableidx, 3
  br i1 %507, label %switch.lookup, label %508

508:                                              ; preds = %.lr.ph176
  %509 = or i32 %506, 8
  store i32 %509, ptr %505, align 8, !tbaa !49
  %.not184 = icmp eq i32 %497, 0
  br i1 %.not184, label %._crit_edge171, label %.lr.ph170.preheader

.lr.ph170.preheader:                              ; preds = %switch.lookup, %508
  br label %.lr.ph170

switch.lookup:                                    ; preds = %.lr.ph176
  %510 = zext nneg i32 %switch.tableidx to i64
  %switch.gep = getelementptr inbounds [3 x i32], ptr @switch.table._ZN6Assimp32SplitLargeMeshesProcess_Triangle9SplitMeshEjP6aiMeshRSt6vectorISt4pairIS2_jESaIS5_EE, i64 0, i64 %510
  %switch.load = load i32, ptr %switch.gep, align 4
  %511 = or i32 %506, %switch.load
  store i32 %511, ptr %505, align 8, !tbaa !49
  br label %.lr.ph170.preheader

._crit_edge171.loopexit:                          ; preds = %722
  %.pre244 = load ptr, ptr %7, align 8, !tbaa !9
  br label %._crit_edge171

._crit_edge171:                                   ; preds = %._crit_edge171.loopexit, %508
  %512 = phi ptr [ %505, %508 ], [ %.pre244, %._crit_edge171.loopexit ]
  %513 = phi ptr [ %486, %508 ], [ %.pre243, %._crit_edge171.loopexit ]
  %.1.lcssa = phi i32 [ %.0125173, %508 ], [ %521, %._crit_edge171.loopexit ]
  %indvars.iv.next216 = add nuw nsw i64 %indvars.iv215, 1
  %514 = getelementptr inbounds i8, ptr %512, i64 8
  %515 = load i32, ptr %514, align 8, !tbaa !11
  %516 = zext i32 %515 to i64
  %517 = icmp ult i64 %indvars.iv.next216, %516
  br i1 %517, label %.lr.ph176, label %._crit_edge177, !llvm.loop !50

.lr.ph170:                                        ; preds = %.lr.ph170.preheader, %722
  %518 = phi ptr [ %.pre243, %722 ], [ %486, %.lr.ph170.preheader ]
  %indvars.iv211 = phi i64 [ %indvars.iv.next212, %722 ], [ 0, %.lr.ph170.preheader ]
  %.1167 = phi i32 [ %521, %722 ], [ %.0125173, %.lr.ph170.preheader ]
  %519 = getelementptr inbounds i32, ptr %499, i64 %indvars.iv211
  %520 = load i32, ptr %519, align 4, !tbaa !5
  %521 = add i32 %.1167, 1
  %522 = getelementptr inbounds i32, ptr %502, i64 %indvars.iv211
  store i32 %.1167, ptr %522, align 4, !tbaa !5
  %523 = getelementptr inbounds i8, ptr %518, i64 16
  %524 = load ptr, ptr %523, align 8, !tbaa !30
  %.not143 = icmp eq ptr %524, null
  br i1 %.not143, label %533, label %525

525:                                              ; preds = %.lr.ph170
  %526 = zext i32 %520 to i64
  %527 = getelementptr inbounds %class.aiVector3t, ptr %524, i64 %526
  %528 = load ptr, ptr %7, align 8, !tbaa !9
  %529 = getelementptr inbounds i8, ptr %528, i64 16
  %530 = load ptr, ptr %529, align 8, !tbaa !30
  %531 = zext i32 %.1167 to i64
  %532 = getelementptr inbounds %class.aiVector3t, ptr %530, i64 %531
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %532, ptr noundef nonnull align 4 dereferenceable(12) %527, i64 12, i1 false), !tbaa.struct !51
  br label %533

533:                                              ; preds = %525, %.lr.ph170
  %534 = call noundef zeroext i1 @_ZNK6aiMesh10HasNormalsEv(ptr noundef nonnull align 8 dereferenceable(1320) %518)
  %.pre243 = load ptr, ptr %6, align 8, !tbaa !9
  br i1 %534, label %535, label %545

535:                                              ; preds = %533
  %536 = getelementptr inbounds i8, ptr %.pre243, i64 24
  %537 = load ptr, ptr %536, align 8, !tbaa !32
  %538 = zext i32 %520 to i64
  %539 = getelementptr inbounds %class.aiVector3t, ptr %537, i64 %538
  %540 = load ptr, ptr %7, align 8, !tbaa !9
  %541 = getelementptr inbounds i8, ptr %540, i64 24
  %542 = load ptr, ptr %541, align 8, !tbaa !32
  %543 = zext i32 %.1167 to i64
  %544 = getelementptr inbounds %class.aiVector3t, ptr %542, i64 %543
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %544, ptr noundef nonnull align 4 dereferenceable(12) %539, i64 12, i1 false), !tbaa.struct !51
  br label %545

545:                                              ; preds = %535, %533
  %546 = call noundef zeroext i1 @_ZNK6aiMesh24HasTangentsAndBitangentsEv(ptr noundef nonnull align 8 dereferenceable(1320) %.pre243)
  br i1 %546, label %547, label %._crit_edge248

._crit_edge248:                                   ; preds = %545
  %.pre249 = zext i32 %520 to i64
  %.pre251 = zext i32 %.1167 to i64
  br label %563

547:                                              ; preds = %545
  %548 = getelementptr inbounds i8, ptr %.pre243, i64 32
  %549 = load ptr, ptr %548, align 8, !tbaa !33
  %550 = zext i32 %520 to i64
  %551 = getelementptr inbounds %class.aiVector3t, ptr %549, i64 %550
  %552 = load ptr, ptr %7, align 8, !tbaa !9
  %553 = getelementptr inbounds i8, ptr %552, i64 32
  %554 = load ptr, ptr %553, align 8, !tbaa !33
  %555 = zext i32 %.1167 to i64
  %556 = getelementptr inbounds %class.aiVector3t, ptr %554, i64 %555
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %556, ptr noundef nonnull align 4 dereferenceable(12) %551, i64 12, i1 false), !tbaa.struct !51
  %557 = getelementptr inbounds i8, ptr %.pre243, i64 40
  %558 = load ptr, ptr %557, align 8, !tbaa !34
  %559 = getelementptr inbounds %class.aiVector3t, ptr %558, i64 %550
  %560 = getelementptr inbounds i8, ptr %552, i64 40
  %561 = load ptr, ptr %560, align 8, !tbaa !34
  %562 = getelementptr inbounds %class.aiVector3t, ptr %561, i64 %555
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %562, ptr noundef nonnull align 4 dereferenceable(12) %559, i64 12, i1 false), !tbaa.struct !51
  br label %563

563:                                              ; preds = %._crit_edge248, %547
  %.pre-phi252 = phi i64 [ %.pre251, %._crit_edge248 ], [ %555, %547 ]
  %.pre-phi250 = phi i64 [ %.pre249, %._crit_edge248 ], [ %550, %547 ]
  %564 = call noundef zeroext i1 @_ZNK6aiMesh16HasTextureCoordsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre243, i32 noundef 0)
  br i1 %564, label %565, label %573

565:                                              ; preds = %563
  %566 = getelementptr inbounds i8, ptr %.pre243, i64 112
  %567 = load ptr, ptr %566, align 8, !tbaa !9
  %568 = getelementptr inbounds %class.aiVector3t, ptr %567, i64 %.pre-phi250
  %569 = load ptr, ptr %7, align 8, !tbaa !9
  %570 = getelementptr inbounds i8, ptr %569, i64 112
  %571 = load ptr, ptr %570, align 8, !tbaa !9
  %572 = getelementptr inbounds %class.aiVector3t, ptr %571, i64 %.pre-phi252
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %572, ptr noundef nonnull align 4 dereferenceable(12) %568, i64 12, i1 false), !tbaa.struct !51
  br label %573

573:                                              ; preds = %563, %565
  %574 = call noundef zeroext i1 @_ZNK6aiMesh16HasTextureCoordsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre243, i32 noundef 1)
  br i1 %574, label %575, label %583

575:                                              ; preds = %573
  %576 = getelementptr inbounds i8, ptr %.pre243, i64 120
  %577 = load ptr, ptr %576, align 8, !tbaa !9
  %578 = getelementptr inbounds %class.aiVector3t, ptr %577, i64 %.pre-phi250
  %579 = load ptr, ptr %7, align 8, !tbaa !9
  %580 = getelementptr inbounds i8, ptr %579, i64 120
  %581 = load ptr, ptr %580, align 8, !tbaa !9
  %582 = getelementptr inbounds %class.aiVector3t, ptr %581, i64 %.pre-phi252
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %582, ptr noundef nonnull align 4 dereferenceable(12) %578, i64 12, i1 false), !tbaa.struct !51
  br label %583

583:                                              ; preds = %575, %573
  %584 = call noundef zeroext i1 @_ZNK6aiMesh16HasTextureCoordsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre243, i32 noundef 2)
  br i1 %584, label %585, label %593

585:                                              ; preds = %583
  %586 = getelementptr inbounds i8, ptr %.pre243, i64 128
  %587 = load ptr, ptr %586, align 8, !tbaa !9
  %588 = getelementptr inbounds %class.aiVector3t, ptr %587, i64 %.pre-phi250
  %589 = load ptr, ptr %7, align 8, !tbaa !9
  %590 = getelementptr inbounds i8, ptr %589, i64 128
  %591 = load ptr, ptr %590, align 8, !tbaa !9
  %592 = getelementptr inbounds %class.aiVector3t, ptr %591, i64 %.pre-phi252
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %592, ptr noundef nonnull align 4 dereferenceable(12) %588, i64 12, i1 false), !tbaa.struct !51
  br label %593

593:                                              ; preds = %585, %583
  %594 = call noundef zeroext i1 @_ZNK6aiMesh16HasTextureCoordsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre243, i32 noundef 3)
  br i1 %594, label %595, label %603

595:                                              ; preds = %593
  %596 = getelementptr inbounds i8, ptr %.pre243, i64 136
  %597 = load ptr, ptr %596, align 8, !tbaa !9
  %598 = getelementptr inbounds %class.aiVector3t, ptr %597, i64 %.pre-phi250
  %599 = load ptr, ptr %7, align 8, !tbaa !9
  %600 = getelementptr inbounds i8, ptr %599, i64 136
  %601 = load ptr, ptr %600, align 8, !tbaa !9
  %602 = getelementptr inbounds %class.aiVector3t, ptr %601, i64 %.pre-phi252
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %602, ptr noundef nonnull align 4 dereferenceable(12) %598, i64 12, i1 false), !tbaa.struct !51
  br label %603

603:                                              ; preds = %595, %593
  %604 = call noundef zeroext i1 @_ZNK6aiMesh16HasTextureCoordsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre243, i32 noundef 4)
  br i1 %604, label %605, label %613

605:                                              ; preds = %603
  %606 = getelementptr inbounds i8, ptr %.pre243, i64 144
  %607 = load ptr, ptr %606, align 8, !tbaa !9
  %608 = getelementptr inbounds %class.aiVector3t, ptr %607, i64 %.pre-phi250
  %609 = load ptr, ptr %7, align 8, !tbaa !9
  %610 = getelementptr inbounds i8, ptr %609, i64 144
  %611 = load ptr, ptr %610, align 8, !tbaa !9
  %612 = getelementptr inbounds %class.aiVector3t, ptr %611, i64 %.pre-phi252
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %612, ptr noundef nonnull align 4 dereferenceable(12) %608, i64 12, i1 false), !tbaa.struct !51
  br label %613

613:                                              ; preds = %605, %603
  %614 = call noundef zeroext i1 @_ZNK6aiMesh16HasTextureCoordsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre243, i32 noundef 5)
  br i1 %614, label %615, label %623

615:                                              ; preds = %613
  %616 = getelementptr inbounds i8, ptr %.pre243, i64 152
  %617 = load ptr, ptr %616, align 8, !tbaa !9
  %618 = getelementptr inbounds %class.aiVector3t, ptr %617, i64 %.pre-phi250
  %619 = load ptr, ptr %7, align 8, !tbaa !9
  %620 = getelementptr inbounds i8, ptr %619, i64 152
  %621 = load ptr, ptr %620, align 8, !tbaa !9
  %622 = getelementptr inbounds %class.aiVector3t, ptr %621, i64 %.pre-phi252
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %622, ptr noundef nonnull align 4 dereferenceable(12) %618, i64 12, i1 false), !tbaa.struct !51
  br label %623

623:                                              ; preds = %615, %613
  %624 = call noundef zeroext i1 @_ZNK6aiMesh16HasTextureCoordsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre243, i32 noundef 6)
  br i1 %624, label %625, label %633

625:                                              ; preds = %623
  %626 = getelementptr inbounds i8, ptr %.pre243, i64 160
  %627 = load ptr, ptr %626, align 8, !tbaa !9
  %628 = getelementptr inbounds %class.aiVector3t, ptr %627, i64 %.pre-phi250
  %629 = load ptr, ptr %7, align 8, !tbaa !9
  %630 = getelementptr inbounds i8, ptr %629, i64 160
  %631 = load ptr, ptr %630, align 8, !tbaa !9
  %632 = getelementptr inbounds %class.aiVector3t, ptr %631, i64 %.pre-phi252
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %632, ptr noundef nonnull align 4 dereferenceable(12) %628, i64 12, i1 false), !tbaa.struct !51
  br label %633

633:                                              ; preds = %625, %623
  %634 = call noundef zeroext i1 @_ZNK6aiMesh16HasTextureCoordsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre243, i32 noundef 7)
  br i1 %634, label %635, label %.preheader

635:                                              ; preds = %633
  %636 = getelementptr inbounds i8, ptr %.pre243, i64 168
  %637 = load ptr, ptr %636, align 8, !tbaa !9
  %638 = getelementptr inbounds %class.aiVector3t, ptr %637, i64 %.pre-phi250
  %639 = load ptr, ptr %7, align 8, !tbaa !9
  %640 = getelementptr inbounds i8, ptr %639, i64 168
  %641 = load ptr, ptr %640, align 8, !tbaa !9
  %642 = getelementptr inbounds %class.aiVector3t, ptr %641, i64 %.pre-phi252
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %642, ptr noundef nonnull align 4 dereferenceable(12) %638, i64 12, i1 false), !tbaa.struct !51
  br label %.preheader

.preheader:                                       ; preds = %635, %633
  %643 = call noundef zeroext i1 @_ZNK6aiMesh15HasVertexColorsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre243, i32 noundef 0)
  br i1 %643, label %644, label %652

644:                                              ; preds = %.preheader
  %645 = getelementptr inbounds i8, ptr %.pre243, i64 48
  %646 = load ptr, ptr %645, align 8, !tbaa !9
  %647 = getelementptr inbounds %class.aiColor4t, ptr %646, i64 %.pre-phi250
  %648 = load ptr, ptr %7, align 8, !tbaa !9
  %649 = getelementptr inbounds i8, ptr %648, i64 48
  %650 = load ptr, ptr %649, align 8, !tbaa !9
  %651 = getelementptr inbounds %class.aiColor4t, ptr %650, i64 %.pre-phi252
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %651, ptr noundef nonnull align 4 dereferenceable(16) %647, i64 16, i1 false), !tbaa.struct !52
  br label %652

652:                                              ; preds = %.preheader, %644
  %653 = call noundef zeroext i1 @_ZNK6aiMesh15HasVertexColorsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre243, i32 noundef 1)
  br i1 %653, label %654, label %662

654:                                              ; preds = %652
  %655 = getelementptr inbounds i8, ptr %.pre243, i64 56
  %656 = load ptr, ptr %655, align 8, !tbaa !9
  %657 = getelementptr inbounds %class.aiColor4t, ptr %656, i64 %.pre-phi250
  %658 = load ptr, ptr %7, align 8, !tbaa !9
  %659 = getelementptr inbounds i8, ptr %658, i64 56
  %660 = load ptr, ptr %659, align 8, !tbaa !9
  %661 = getelementptr inbounds %class.aiColor4t, ptr %660, i64 %.pre-phi252
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %661, ptr noundef nonnull align 4 dereferenceable(16) %657, i64 16, i1 false), !tbaa.struct !52
  br label %662

662:                                              ; preds = %654, %652
  %663 = call noundef zeroext i1 @_ZNK6aiMesh15HasVertexColorsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre243, i32 noundef 2)
  br i1 %663, label %664, label %672

664:                                              ; preds = %662
  %665 = getelementptr inbounds i8, ptr %.pre243, i64 64
  %666 = load ptr, ptr %665, align 8, !tbaa !9
  %667 = getelementptr inbounds %class.aiColor4t, ptr %666, i64 %.pre-phi250
  %668 = load ptr, ptr %7, align 8, !tbaa !9
  %669 = getelementptr inbounds i8, ptr %668, i64 64
  %670 = load ptr, ptr %669, align 8, !tbaa !9
  %671 = getelementptr inbounds %class.aiColor4t, ptr %670, i64 %.pre-phi252
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %671, ptr noundef nonnull align 4 dereferenceable(16) %667, i64 16, i1 false), !tbaa.struct !52
  br label %672

672:                                              ; preds = %664, %662
  %673 = call noundef zeroext i1 @_ZNK6aiMesh15HasVertexColorsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre243, i32 noundef 3)
  br i1 %673, label %674, label %682

674:                                              ; preds = %672
  %675 = getelementptr inbounds i8, ptr %.pre243, i64 72
  %676 = load ptr, ptr %675, align 8, !tbaa !9
  %677 = getelementptr inbounds %class.aiColor4t, ptr %676, i64 %.pre-phi250
  %678 = load ptr, ptr %7, align 8, !tbaa !9
  %679 = getelementptr inbounds i8, ptr %678, i64 72
  %680 = load ptr, ptr %679, align 8, !tbaa !9
  %681 = getelementptr inbounds %class.aiColor4t, ptr %680, i64 %.pre-phi252
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %681, ptr noundef nonnull align 4 dereferenceable(16) %677, i64 16, i1 false), !tbaa.struct !52
  br label %682

682:                                              ; preds = %674, %672
  %683 = call noundef zeroext i1 @_ZNK6aiMesh15HasVertexColorsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre243, i32 noundef 4)
  br i1 %683, label %684, label %692

684:                                              ; preds = %682
  %685 = getelementptr inbounds i8, ptr %.pre243, i64 80
  %686 = load ptr, ptr %685, align 8, !tbaa !9
  %687 = getelementptr inbounds %class.aiColor4t, ptr %686, i64 %.pre-phi250
  %688 = load ptr, ptr %7, align 8, !tbaa !9
  %689 = getelementptr inbounds i8, ptr %688, i64 80
  %690 = load ptr, ptr %689, align 8, !tbaa !9
  %691 = getelementptr inbounds %class.aiColor4t, ptr %690, i64 %.pre-phi252
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %691, ptr noundef nonnull align 4 dereferenceable(16) %687, i64 16, i1 false), !tbaa.struct !52
  br label %692

692:                                              ; preds = %684, %682
  %693 = call noundef zeroext i1 @_ZNK6aiMesh15HasVertexColorsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre243, i32 noundef 5)
  br i1 %693, label %694, label %702

694:                                              ; preds = %692
  %695 = getelementptr inbounds i8, ptr %.pre243, i64 88
  %696 = load ptr, ptr %695, align 8, !tbaa !9
  %697 = getelementptr inbounds %class.aiColor4t, ptr %696, i64 %.pre-phi250
  %698 = load ptr, ptr %7, align 8, !tbaa !9
  %699 = getelementptr inbounds i8, ptr %698, i64 88
  %700 = load ptr, ptr %699, align 8, !tbaa !9
  %701 = getelementptr inbounds %class.aiColor4t, ptr %700, i64 %.pre-phi252
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %701, ptr noundef nonnull align 4 dereferenceable(16) %697, i64 16, i1 false), !tbaa.struct !52
  br label %702

702:                                              ; preds = %694, %692
  %703 = call noundef zeroext i1 @_ZNK6aiMesh15HasVertexColorsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre243, i32 noundef 6)
  br i1 %703, label %704, label %712

704:                                              ; preds = %702
  %705 = getelementptr inbounds i8, ptr %.pre243, i64 96
  %706 = load ptr, ptr %705, align 8, !tbaa !9
  %707 = getelementptr inbounds %class.aiColor4t, ptr %706, i64 %.pre-phi250
  %708 = load ptr, ptr %7, align 8, !tbaa !9
  %709 = getelementptr inbounds i8, ptr %708, i64 96
  %710 = load ptr, ptr %709, align 8, !tbaa !9
  %711 = getelementptr inbounds %class.aiColor4t, ptr %710, i64 %.pre-phi252
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %711, ptr noundef nonnull align 4 dereferenceable(16) %707, i64 16, i1 false), !tbaa.struct !52
  br label %712

712:                                              ; preds = %704, %702
  %713 = call noundef zeroext i1 @_ZNK6aiMesh15HasVertexColorsEj(ptr noundef nonnull align 8 dereferenceable(1320) %.pre243, i32 noundef 7)
  br i1 %713, label %714, label %722

714:                                              ; preds = %712
  %715 = getelementptr inbounds i8, ptr %.pre243, i64 104
  %716 = load ptr, ptr %715, align 8, !tbaa !9
  %717 = getelementptr inbounds %class.aiColor4t, ptr %716, i64 %.pre-phi250
  %718 = load ptr, ptr %7, align 8, !tbaa !9
  %719 = getelementptr inbounds i8, ptr %718, i64 104
  %720 = load ptr, ptr %719, align 8, !tbaa !9
  %721 = getelementptr inbounds %class.aiColor4t, ptr %720, i64 %.pre-phi252
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %721, ptr noundef nonnull align 4 dereferenceable(16) %717, i64 16, i1 false), !tbaa.struct !52
  br label %722

722:                                              ; preds = %714, %712
  %indvars.iv.next212 = add nuw nsw i64 %indvars.iv211, 1
  %exitcond214.not = icmp eq i64 %indvars.iv.next212, %500
  br i1 %exitcond214.not, label %._crit_edge171.loopexit, label %.lr.ph170, !llvm.loop !53

723:                                              ; preds = %23
  call void @_ZN6aiMeshD2Ev(ptr noundef nonnull align 8 dereferenceable(1320) %24) #8
  call void @_ZdlPvm(ptr noundef nonnull %24, i64 noundef 1320) #10
  br label %726

724:                                              ; preds = %4
  %725 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIP6aiMeshjESaIS3_EE12emplace_backIJRS2_RjEEERS3_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %5)
  br label %726

726:                                              ; preds = %23, %723, %724
  ret void
}

declare i32 @__gxx_personality_v0(...)

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

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

declare void @_ZN6Assimp6Logger4infoEPKc(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6aiMeshC2Ev(ptr noundef nonnull align 8 dereferenceable(1320)) unnamed_addr #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)) local_unnamed_addr #4 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6aiMesh16HasTextureCoordsEj(ptr noundef nonnull align 8 dereferenceable(1320), i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6aiMesh15HasVertexColorsEj(ptr noundef nonnull align 8 dereferenceable(1320), i32 noundef) local_unnamed_addr #4 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI14aiVertexWeightSaIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorI14aiVertexWeightSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; 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 void @_ZN8aiStringC2ERKS_(ptr noundef nonnull align 4 dereferenceable(1028), ptr noundef nonnull align 4 dereferenceable(1028)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI14aiVertexWeightSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #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 4 dereferenceable(8) ptr @_ZNSt6vectorI14aiVertexWeightSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4 align 2

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

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #7

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTS6aiMesh", !6, i64 0, !6, i64 4, !6, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !7, i64 48, !7, i64 112, !7, i64 176, !10, i64 208, !6, i64 216, !10, i64 224, !6, i64 232, !13, i64 236, !6, i64 1264, !10, i64 1272, !14, i64 1280, !15, i64 1284, !10, i64 1312}
!13 = !{!"_ZTS8aiString", !6, i64 0, !7, i64 4}
!14 = !{!"_ZTS16aiMorphingMethod", !7, i64 0}
!15 = !{!"_ZTS6aiAABB", !16, i64 0, !16, i64 12}
!16 = !{!"_ZTS10aiVector3tIfE", !17, i64 0, !17, i64 4, !17, i64 8}
!17 = !{!"float", !7, i64 0}
!18 = !{!19, !6, i64 24}
!19 = !{!"_ZTSN6Assimp32SplitLargeMeshesProcess_TriangleE", !20, i64 0, !6, i64 24}
!20 = !{!"_ZTSN6Assimp11BaseProcessE", !10, i64 8, !10, i64 16}
!21 = !{!12, !6, i64 232}
!22 = !{!12, !10, i64 208}
!23 = !{!24, !6, i64 0}
!24 = !{!"_ZTS6aiFace", !6, i64 0, !10, i64 8}
!25 = distinct !{!25, !26, !27, !28}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!"llvm.loop.isvectorized", i32 1}
!28 = !{!"llvm.loop.unroll.runtime.disable"}
!29 = !{!12, !6, i64 4}
!30 = !{!12, !10, i64 16}
!31 = distinct !{!31, !26, !28, !27}
!32 = !{!12, !10, i64 24}
!33 = !{!12, !10, i64 32}
!34 = !{!12, !10, i64 40}
!35 = !{!12, !6, i64 216}
!36 = !{!12, !10, i64 224}
!37 = !{!38, !6, i64 1028}
!38 = !{!"_ZTS6aiBone", !13, i64 0, !6, i64 1028, !10, i64 1032, !10, i64 1040, !10, i64 1048, !39, i64 1056}
!39 = !{!"_ZTS12aiMatrix4x4tIfE", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12, !17, i64 16, !17, i64 20, !17, i64 24, !17, i64 28, !17, i64 32, !17, i64 36, !17, i64 40, !17, i64 44, !17, i64 48, !17, i64 52, !17, i64 56, !17, i64 60}
!40 = !{!38, !10, i64 1048}
!41 = !{!42, !6, i64 0}
!42 = !{!"_ZTS14aiVertexWeight", !6, i64 0, !17, i64 4}
!43 = distinct !{!43, !26}
!44 = !{i64 0, i64 4, !45, i64 4, i64 4, !45, i64 8, i64 4, !45, i64 12, i64 4, !45, i64 16, i64 4, !45, i64 20, i64 4, !45, i64 24, i64 4, !45, i64 28, i64 4, !45, i64 32, i64 4, !45, i64 36, i64 4, !45, i64 40, i64 4, !45, i64 44, i64 4, !45, i64 48, i64 4, !45, i64 52, i64 4, !45, i64 56, i64 4, !45, i64 60, i64 4, !45}
!45 = !{!17, !17, i64 0}
!46 = distinct !{!46, !26}
!47 = distinct !{!47, !26}
!48 = !{!24, !10, i64 8}
!49 = !{!12, !6, i64 0}
!50 = distinct !{!50, !26}
!51 = !{i64 0, i64 4, !45, i64 4, i64 4, !45, i64 8, i64 4, !45}
!52 = !{i64 0, i64 4, !45, i64 4, i64 4, !45, i64 8, i64 4, !45, i64 12, i64 4, !45}
!53 = distinct !{!53, !26}


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