; LLVM IR from Overload-Technologies/Overload :: Dependencies/assimp/code/Material (MaterialSystem)

; 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"

%struct.aiMaterialProperty = type { %struct.aiString, i32, i32, i32, i32, ptr }
%struct.aiString = type { i32, [1024 x i8] }

@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [55 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local i32 @aiGetMaterialProperty(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #0

declare void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef, ptr noundef, i32 noundef) #1

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6Assimp7IsSpaceIcEEbT_(i8 noundef signext) #3

declare noundef ptr @_ZN6Assimp13DefaultLogger3getEv() #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Assimp6Logger5errorIJRA18_KcRPS2_RA55_S2_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 1 dereferenceable(18), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(55)) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z24aiGetMaterialDoubleArrayPK10aiMaterialPKcjjPdPj(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %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 ptr, align 8
  %21 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !9
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  %22 = load ptr, ptr %12, align 8, !tbaa !5
  %23 = icmp ne ptr %22, null
  br i1 %23, label %25, label %24

24:                                               ; preds = %6
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 185)
  br label %25

25:                                               ; preds = %24, %6
  %26 = phi i1 [ true, %6 ], [ false, %24 ]
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = icmp ne ptr %27, null
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 186)
  br label %30

30:                                               ; preds = %29, %25
  %31 = phi i1 [ true, %25 ], [ false, %29 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = load i32, ptr %10, align 4, !tbaa !9
  %35 = load i32, ptr %11, align 4, !tbaa !9
  %36 = call i32 @aiGetMaterialProperty(ptr noundef %32, ptr noundef %33, i32 noundef %34, i32 noundef %35, ptr noundef %14)
  %37 = load ptr, ptr %14, align 8, !tbaa !5
  %38 = icmp eq ptr null, %37
  br i1 %38, label %39, label %40

39:                                               ; preds = %30
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %258

40:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !9
  %41 = load ptr, ptr %14, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.aiMaterialProperty, ptr %41, i32 0, i32 4
  %43 = load i32, ptr %42, align 8, !tbaa !11
  %44 = icmp eq i32 1, %43
  br i1 %44, label %50, label %45

45:                                               ; preds = %40
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.aiMaterialProperty, ptr %46, i32 0, i32 4
  %48 = load i32, ptr %47, align 8, !tbaa !11
  %49 = icmp eq i32 5, %48
  br i1 %49, label %50, label %92

50:                                               ; preds = %45, %40
  %51 = load ptr, ptr %14, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.aiMaterialProperty, ptr %51, i32 0, i32 3
  %53 = load i32, ptr %52, align 4, !tbaa !15
  %54 = zext i32 %53 to i64
  %55 = udiv i64 %54, 4
  %56 = trunc i64 %55 to i32
  store i32 %56, ptr %16, align 4, !tbaa !9
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = icmp ne ptr %57, null
  br i1 %58, label %59, label %63

59:                                               ; preds = %50
  %60 = load ptr, ptr %13, align 8, !tbaa !5
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %60, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %62 = load i32, ptr %61, align 4, !tbaa !9
  store i32 %62, ptr %16, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %59, %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %82, %63
  %65 = load i32, ptr %17, align 4, !tbaa !9
  %66 = load i32, ptr %16, align 4, !tbaa !9
  %67 = icmp ult i32 %65, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %64
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %85

69:                                               ; preds = %64
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.aiMaterialProperty, ptr %70, i32 0, i32 5
  %72 = load ptr, ptr %71, align 8, !tbaa !16
  %73 = load i32, ptr %17, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = getelementptr inbounds float, ptr %72, i64 %74
  %76 = load float, ptr %75, align 4, !tbaa !17
  %77 = fpext float %76 to double
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  %79 = load i32, ptr %17, align 4, !tbaa !9
  %80 = zext i32 %79 to i64
  %81 = getelementptr inbounds double, ptr %78, i64 %80
  store double %77, ptr %81, align 8, !tbaa !19
  br label %82

82:                                               ; preds = %69
  %83 = load i32, ptr %17, align 4, !tbaa !9
  %84 = add i32 %83, 1
  store i32 %84, ptr %17, align 4, !tbaa !9
  br label %64, !llvm.loop !21

85:                                               ; preds = %68
  %86 = load ptr, ptr %13, align 8, !tbaa !5
  %87 = icmp ne ptr %86, null
  br i1 %87, label %88, label %91

88:                                               ; preds = %85
  %89 = load i32, ptr %16, align 4, !tbaa !9
  %90 = load ptr, ptr %13, align 8, !tbaa !5
  store i32 %89, ptr %90, align 4, !tbaa !9
  br label %91

91:                                               ; preds = %88, %85
  br label %256

92:                                               ; preds = %45
  %93 = load ptr, ptr %14, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.aiMaterialProperty, ptr %93, i32 0, i32 4
  %95 = load i32, ptr %94, align 8, !tbaa !11
  %96 = icmp eq i32 2, %95
  br i1 %96, label %97, label %140

97:                                               ; preds = %92
  %98 = load ptr, ptr %14, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.aiMaterialProperty, ptr %98, i32 0, i32 3
  %100 = load i32, ptr %99, align 4, !tbaa !15
  %101 = zext i32 %100 to i64
  %102 = udiv i64 %101, 8
  %103 = trunc i64 %102 to i32
  store i32 %103, ptr %16, align 4, !tbaa !9
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = icmp ne ptr %104, null
  br i1 %105, label %106, label %110

106:                                              ; preds = %97
  %107 = load ptr, ptr %13, align 8, !tbaa !5
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %107, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %109 = load i32, ptr %108, align 4, !tbaa !9
  store i32 %109, ptr %16, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %106, %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %130, %110
  %112 = load i32, ptr %18, align 4, !tbaa !9
  %113 = load i32, ptr %16, align 4, !tbaa !9
  %114 = icmp ult i32 %112, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %111
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %133

116:                                              ; preds = %111
  %117 = load ptr, ptr %14, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.aiMaterialProperty, ptr %117, i32 0, i32 5
  %119 = load ptr, ptr %118, align 8, !tbaa !16
  %120 = load i32, ptr %18, align 4, !tbaa !9
  %121 = zext i32 %120 to i64
  %122 = getelementptr inbounds double, ptr %119, i64 %121
  %123 = load double, ptr %122, align 8, !tbaa !19
  %124 = fptrunc double %123 to float
  %125 = fpext float %124 to double
  %126 = load ptr, ptr %12, align 8, !tbaa !5
  %127 = load i32, ptr %18, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  %129 = getelementptr inbounds double, ptr %126, i64 %128
  store double %125, ptr %129, align 8, !tbaa !19
  br label %130

130:                                              ; preds = %116
  %131 = load i32, ptr %18, align 4, !tbaa !9
  %132 = add i32 %131, 1
  store i32 %132, ptr %18, align 4, !tbaa !9
  br label %111, !llvm.loop !23

133:                                              ; preds = %115
  %134 = load ptr, ptr %13, align 8, !tbaa !5
  %135 = icmp ne ptr %134, null
  br i1 %135, label %136, label %139

136:                                              ; preds = %133
  %137 = load i32, ptr %16, align 4, !tbaa !9
  %138 = load ptr, ptr %13, align 8, !tbaa !5
  store i32 %137, ptr %138, align 4, !tbaa !9
  br label %139

139:                                              ; preds = %136, %133
  br label %255

140:                                              ; preds = %92
  %141 = load ptr, ptr %14, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.aiMaterialProperty, ptr %141, i32 0, i32 4
  %143 = load i32, ptr %142, align 8, !tbaa !11
  %144 = icmp eq i32 4, %143
  br i1 %144, label %145, label %188

145:                                              ; preds = %140
  %146 = load ptr, ptr %14, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.aiMaterialProperty, ptr %146, i32 0, i32 3
  %148 = load i32, ptr %147, align 4, !tbaa !15
  %149 = zext i32 %148 to i64
  %150 = udiv i64 %149, 4
  %151 = trunc i64 %150 to i32
  store i32 %151, ptr %16, align 4, !tbaa !9
  %152 = load ptr, ptr %13, align 8, !tbaa !5
  %153 = icmp ne ptr %152, null
  br i1 %153, label %154, label %158

154:                                              ; preds = %145
  %155 = load ptr, ptr %13, align 8, !tbaa !5
  %156 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %155, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %157 = load i32, ptr %156, align 4, !tbaa !9
  store i32 %157, ptr %16, align 4, !tbaa !9
  br label %158

158:                                              ; preds = %154, %145
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %159

159:                                              ; preds = %178, %158
  %160 = load i32, ptr %19, align 4, !tbaa !9
  %161 = load i32, ptr %16, align 4, !tbaa !9
  %162 = icmp ult i32 %160, %161
  br i1 %162, label %164, label %163

163:                                              ; preds = %159
  store i32 8, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %181

164:                                              ; preds = %159
  %165 = load ptr, ptr %14, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.aiMaterialProperty, ptr %165, i32 0, i32 5
  %167 = load ptr, ptr %166, align 8, !tbaa !16
  %168 = load i32, ptr %19, align 4, !tbaa !9
  %169 = zext i32 %168 to i64
  %170 = getelementptr inbounds i32, ptr %167, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !9
  %172 = sitofp i32 %171 to float
  %173 = fpext float %172 to double
  %174 = load ptr, ptr %12, align 8, !tbaa !5
  %175 = load i32, ptr %19, align 4, !tbaa !9
  %176 = zext i32 %175 to i64
  %177 = getelementptr inbounds double, ptr %174, i64 %176
  store double %173, ptr %177, align 8, !tbaa !19
  br label %178

178:                                              ; preds = %164
  %179 = load i32, ptr %19, align 4, !tbaa !9
  %180 = add i32 %179, 1
  store i32 %180, ptr %19, align 4, !tbaa !9
  br label %159, !llvm.loop !24

181:                                              ; preds = %163
  %182 = load ptr, ptr %13, align 8, !tbaa !5
  %183 = icmp ne ptr %182, null
  br i1 %183, label %184, label %187

184:                                              ; preds = %181
  %185 = load i32, ptr %16, align 4, !tbaa !9
  %186 = load ptr, ptr %13, align 8, !tbaa !5
  store i32 %185, ptr %186, align 4, !tbaa !9
  br label %187

187:                                              ; preds = %184, %181
  br label %254

188:                                              ; preds = %140
  %189 = load ptr, ptr %13, align 8, !tbaa !5
  %190 = icmp ne ptr %189, null
  br i1 %190, label %191, label %194

191:                                              ; preds = %188
  %192 = load ptr, ptr %13, align 8, !tbaa !5
  %193 = load i32, ptr %192, align 4, !tbaa !9
  store i32 %193, ptr %16, align 4, !tbaa !9
  br label %194

194:                                              ; preds = %191, %188
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %195 = load ptr, ptr %14, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.aiMaterialProperty, ptr %195, i32 0, i32 5
  %197 = load ptr, ptr %196, align 8, !tbaa !16
  %198 = getelementptr inbounds i8, ptr %197, i64 4
  store ptr %198, ptr %20, align 8, !tbaa !5
  %199 = load ptr, ptr %14, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.aiMaterialProperty, ptr %199, i32 0, i32 3
  %201 = load i32, ptr %200, align 4, !tbaa !15
  %202 = icmp uge i32 %201, 5
  br i1 %202, label %204, label %203

203:                                              ; preds = %194
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 245)
  br label %204

204:                                              ; preds = %203, %194
  %205 = phi i1 [ true, %194 ], [ false, %203 ]
  %206 = load ptr, ptr %14, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.aiMaterialProperty, ptr %206, i32 0, i32 5
  %208 = load ptr, ptr %207, align 8, !tbaa !16
  %209 = load ptr, ptr %14, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.aiMaterialProperty, ptr %209, i32 0, i32 3
  %211 = load i32, ptr %210, align 4, !tbaa !15
  %212 = sub i32 %211, 1
  %213 = zext i32 %212 to i64
  %214 = getelementptr inbounds i8, ptr %208, i64 %213
  %215 = load i8, ptr %214, align 1, !tbaa !25
  %216 = icmp ne i8 %215, 0
  br i1 %216, label %217, label %218

217:                                              ; preds = %204
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 246)
  br label %218

218:                                              ; preds = %217, %204
  %219 = phi i1 [ true, %204 ], [ false, %217 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %220

220:                                              ; preds = %239, %218
  %221 = load ptr, ptr %20, align 8, !tbaa !5
  %222 = load ptr, ptr %12, align 8, !tbaa !5
  %223 = load i32, ptr %21, align 4, !tbaa !9
  %224 = zext i32 %223 to i64
  %225 = getelementptr inbounds double, ptr %222, i64 %224
  %226 = call noundef ptr @_ZN6Assimp17fast_atoreal_moveId17DeadlyImportErrorEEPKcS3_RT_b(ptr noundef %221, ptr noundef nonnull align 8 dereferenceable(8) %225, i1 noundef zeroext true)
  store ptr %226, ptr %20, align 8, !tbaa !5
  %227 = load i32, ptr %21, align 4, !tbaa !9
  %228 = load i32, ptr %16, align 4, !tbaa !9
  %229 = sub i32 %228, 1
  %230 = icmp eq i32 %227, %229
  br i1 %230, label %231, label %232

231:                                              ; preds = %220
  store i32 11, ptr %15, align 4
  br label %242

232:                                              ; preds = %220
  %233 = load ptr, ptr %20, align 8, !tbaa !5
  %234 = load i8, ptr %233, align 1, !tbaa !25
  %235 = call noundef zeroext i1 @_ZN6Assimp7IsSpaceIcEEbT_(i8 noundef signext %234)
  br i1 %235, label %238, label %236

236:                                              ; preds = %232
  %237 = call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  call void @_ZN6Assimp6Logger5errorIJRA18_KcRPS2_RA55_S2_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(12) %237, ptr noundef nonnull align 1 dereferenceable(18) @.str.7, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 1 dereferenceable(55) @.str.8)
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %242

238:                                              ; preds = %232
  br label %239

239:                                              ; preds = %238
  %240 = load i32, ptr %21, align 4, !tbaa !9
  %241 = add i32 %240, 1
  store i32 %241, ptr %21, align 4, !tbaa !9
  br label %220, !llvm.loop !26

242:                                              ; preds = %236, %231
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  %243 = load i32, ptr %15, align 4
  switch i32 %243, label %251 [
    i32 11, label %244
  ]

244:                                              ; preds = %242
  %245 = load ptr, ptr %13, align 8, !tbaa !5
  %246 = icmp ne ptr %245, null
  br i1 %246, label %247, label %250

247:                                              ; preds = %244
  %248 = load i32, ptr %16, align 4, !tbaa !9
  %249 = load ptr, ptr %13, align 8, !tbaa !5
  store i32 %248, ptr %249, align 4, !tbaa !9
  br label %250

250:                                              ; preds = %247, %244
  store i32 0, ptr %15, align 4
  br label %251

251:                                              ; preds = %250, %242
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  %252 = load i32, ptr %15, align 4
  switch i32 %252, label %257 [
    i32 0, label %253
  ]

253:                                              ; preds = %251
  br label %254

254:                                              ; preds = %253, %187
  br label %255

255:                                              ; preds = %254, %139
  br label %256

256:                                              ; preds = %255, %91
  store i32 0, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %257

257:                                              ; preds = %256, %251
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %258

258:                                              ; preds = %257, %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  %259 = load i32, ptr %7, align 4
  ret i32 %259
}

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

attributes #0 = { 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 #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !14, i64 1040}
!12 = !{!"_ZTS18aiMaterialProperty", !13, i64 0, !10, i64 1028, !10, i64 1032, !10, i64 1036, !14, i64 1040, !6, i64 1048}
!13 = !{!"_ZTS8aiString", !10, i64 0, !7, i64 4}
!14 = !{!"_ZTS18aiPropertyTypeInfo", !7, i64 0}
!15 = !{!12, !10, i64 1036}
!16 = !{!12, !6, i64 1048}
!17 = !{!18, !18, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}
!25 = !{!7, !7, i64 0}
!26 = distinct !{!26, !22}


; 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"

@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [55 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local i32 @aiGetMaterialProperty(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

declare void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6Assimp7IsSpaceIcEEbT_(i8 noundef signext) local_unnamed_addr #3

declare noundef ptr @_ZN6Assimp13DefaultLogger3getEv() local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Assimp6Logger5errorIJRA18_KcRPS2_RA55_S2_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 1 dereferenceable(18), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(55)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 -1, 1) i32 @_Z24aiGetMaterialDoubleArrayPK10aiMaterialPKcjjPdPj(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #0 {
  %7 = ptrtoint ptr %4 to i64
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  store ptr %1, ptr %8, align 8, !tbaa !5
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %11, label %12

11:                                               ; preds = %6
  tail call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 185)
  br label %12

12:                                               ; preds = %11, %6
  %.not59 = icmp eq ptr %0, null
  br i1 %.not59, label %13, label %14

13:                                               ; preds = %12
  tail call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 186)
  br label %14

14:                                               ; preds = %13, %12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %15 = call i32 @aiGetMaterialProperty(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef nonnull %9)
  %16 = load ptr, ptr %9, align 8, !tbaa !5
  %17 = icmp eq ptr %16, null
  br i1 %17, label %161, label %18

18:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  %19 = getelementptr inbounds i8, ptr %16, i64 1040
  %20 = load i32, ptr %19, align 8, !tbaa !11
  switch i32 %20, label %123 [
    i32 1, label %21
    i32 5, label %21
    i32 2, label %45
    i32 4, label %96
  ]

21:                                               ; preds = %18, %18
  %22 = getelementptr inbounds i8, ptr %16, i64 1036
  %23 = load i32, ptr %22, align 4, !tbaa !15
  %24 = lshr i32 %23, 2
  store i32 %24, ptr %10, align 4, !tbaa !9
  %.not64 = icmp eq ptr %5, null
  br i1 %.not64, label %28, label %25

25:                                               ; preds = %21
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %27 = load i32, ptr %26, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %25, %21
  %29 = phi i32 [ %27, %25 ], [ %24, %21 ]
  %.not85 = icmp eq i32 %29, 0
  br i1 %.not85, label %._crit_edge78, label %.lr.ph77

.lr.ph77:                                         ; preds = %28
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %30, i64 1048
  %32 = load ptr, ptr %31, align 8, !tbaa !16
  %wide.trip.count95 = zext i32 %29 to i64
  %min.iters.check116 = icmp ult i32 %29, 4
  br i1 %min.iters.check116, label %scalar.ph115.preheader, label %vector.ph117

scalar.ph115.preheader:                           ; preds = %middle.block114, %.lr.ph77
  %indvars.iv92.ph = phi i64 [ 0, %.lr.ph77 ], [ %n.vec119, %middle.block114 ]
  br label %scalar.ph115

vector.ph117:                                     ; preds = %.lr.ph77
  %n.vec119 = and i64 %wide.trip.count95, 4294967292
  br label %vector.body121

vector.body121:                                   ; preds = %vector.body121, %vector.ph117
  %index122 = phi i64 [ 0, %vector.ph117 ], [ %index.next125, %vector.body121 ]
  %33 = getelementptr inbounds float, ptr %32, i64 %index122
  %34 = getelementptr inbounds i8, ptr %33, i64 8
  %wide.load123 = load <2 x float>, ptr %33, align 4, !tbaa !17
  %wide.load124 = load <2 x float>, ptr %34, align 4, !tbaa !17
  %35 = fpext <2 x float> %wide.load123 to <2 x double>
  %36 = fpext <2 x float> %wide.load124 to <2 x double>
  %37 = getelementptr inbounds double, ptr %4, i64 %index122
  %38 = getelementptr inbounds i8, ptr %37, i64 16
  store <2 x double> %35, ptr %37, align 8, !tbaa !19
  store <2 x double> %36, ptr %38, align 8, !tbaa !19
  %index.next125 = add nuw i64 %index122, 4
  %39 = icmp eq i64 %index.next125, %n.vec119
  br i1 %39, label %middle.block114, label %vector.body121, !llvm.loop !21

middle.block114:                                  ; preds = %vector.body121
  %cmp.n126 = icmp eq i64 %n.vec119, %wide.trip.count95
  br i1 %cmp.n126, label %._crit_edge78, label %scalar.ph115.preheader

._crit_edge78:                                    ; preds = %scalar.ph115, %middle.block114, %28
  br i1 %.not64, label %.critedge66, label %44

scalar.ph115:                                     ; preds = %scalar.ph115.preheader, %scalar.ph115
  %indvars.iv92 = phi i64 [ %indvars.iv.next93, %scalar.ph115 ], [ %indvars.iv92.ph, %scalar.ph115.preheader ]
  %40 = getelementptr inbounds float, ptr %32, i64 %indvars.iv92
  %41 = load float, ptr %40, align 4, !tbaa !17
  %42 = fpext float %41 to double
  %43 = getelementptr inbounds double, ptr %4, i64 %indvars.iv92
  store double %42, ptr %43, align 8, !tbaa !19
  %indvars.iv.next93 = add nuw nsw i64 %indvars.iv92, 1
  %exitcond96.not = icmp eq i64 %indvars.iv.next93, %wide.trip.count95
  br i1 %exitcond96.not, label %._crit_edge78, label %scalar.ph115, !llvm.loop !25

44:                                               ; preds = %._crit_edge78
  store i32 %29, ptr %5, align 4, !tbaa !9
  br label %.critedge66

45:                                               ; preds = %18
  %46 = getelementptr inbounds i8, ptr %16, i64 1036
  %47 = load i32, ptr %46, align 4, !tbaa !15
  %48 = lshr i32 %47, 3
  store i32 %48, ptr %10, align 4, !tbaa !9
  %.not63 = icmp eq ptr %5, null
  br i1 %.not63, label %52, label %49

49:                                               ; preds = %45
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %51 = load i32, ptr %50, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %49, %45
  %53 = phi i32 [ %51, %49 ], [ %48, %45 ]
  %.not84 = icmp eq i32 %53, 0
  br i1 %.not84, label %._crit_edge73, label %.lr.ph72

.lr.ph72:                                         ; preds = %52
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 1048
  %56 = load ptr, ptr %55, align 8, !tbaa !16
  %wide.trip.count90 = zext i32 %53 to i64
  %min.iters.check103 = icmp ult i32 %53, 4
  %57 = ptrtoint ptr %56 to i64
  %58 = sub i64 %7, %57
  %diff.check = icmp ult i64 %58, 32
  %or.cond = select i1 %min.iters.check103, i1 true, i1 %diff.check
  br i1 %or.cond, label %scalar.ph102.preheader, label %vector.ph104

scalar.ph102.preheader:                           ; preds = %middle.block101, %.lr.ph72
  %indvars.iv87.ph = phi i64 [ 0, %.lr.ph72 ], [ %n.vec106, %middle.block101 ]
  %xtraiter = and i64 %wide.trip.count90, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph102.prol.loopexit, label %scalar.ph102.prol

scalar.ph102.prol:                                ; preds = %scalar.ph102.preheader, %scalar.ph102.prol
  %indvars.iv87.prol = phi i64 [ %indvars.iv.next88.prol, %scalar.ph102.prol ], [ %indvars.iv87.ph, %scalar.ph102.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph102.prol ], [ 0, %scalar.ph102.preheader ]
  %59 = getelementptr inbounds double, ptr %56, i64 %indvars.iv87.prol
  %60 = load double, ptr %59, align 8, !tbaa !19
  %61 = fptrunc double %60 to float
  %62 = fpext float %61 to double
  %63 = getelementptr inbounds double, ptr %4, i64 %indvars.iv87.prol
  store double %62, ptr %63, align 8, !tbaa !19
  %indvars.iv.next88.prol = add nuw nsw i64 %indvars.iv87.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph102.prol.loopexit, label %scalar.ph102.prol, !llvm.loop !26

scalar.ph102.prol.loopexit:                       ; preds = %scalar.ph102.prol, %scalar.ph102.preheader
  %indvars.iv87.unr = phi i64 [ %indvars.iv87.ph, %scalar.ph102.preheader ], [ %indvars.iv.next88.prol, %scalar.ph102.prol ]
  %64 = sub nsw i64 %indvars.iv87.ph, %wide.trip.count90
  %65 = icmp ugt i64 %64, -4
  br i1 %65, label %._crit_edge73, label %scalar.ph102

vector.ph104:                                     ; preds = %.lr.ph72
  %n.vec106 = and i64 %wide.trip.count90, 4294967292
  br label %vector.body108

vector.body108:                                   ; preds = %vector.body108, %vector.ph104
  %index109 = phi i64 [ 0, %vector.ph104 ], [ %index.next112, %vector.body108 ]
  %66 = getelementptr inbounds double, ptr %56, i64 %index109
  %67 = getelementptr inbounds i8, ptr %66, i64 16
  %wide.load110 = load <2 x double>, ptr %66, align 8, !tbaa !19
  %wide.load111 = load <2 x double>, ptr %67, align 8, !tbaa !19
  %68 = fptrunc <2 x double> %wide.load110 to <2 x float>
  %69 = fptrunc <2 x double> %wide.load111 to <2 x float>
  %70 = fpext <2 x float> %68 to <2 x double>
  %71 = fpext <2 x float> %69 to <2 x double>
  %72 = getelementptr inbounds double, ptr %4, i64 %index109
  %73 = getelementptr inbounds i8, ptr %72, i64 16
  store <2 x double> %70, ptr %72, align 8, !tbaa !19
  store <2 x double> %71, ptr %73, align 8, !tbaa !19
  %index.next112 = add nuw i64 %index109, 4
  %74 = icmp eq i64 %index.next112, %n.vec106
  br i1 %74, label %middle.block101, label %vector.body108, !llvm.loop !28

middle.block101:                                  ; preds = %vector.body108
  %cmp.n113 = icmp eq i64 %n.vec106, %wide.trip.count90
  br i1 %cmp.n113, label %._crit_edge73, label %scalar.ph102.preheader

._crit_edge73:                                    ; preds = %scalar.ph102.prol.loopexit, %scalar.ph102, %middle.block101, %52
  br i1 %.not63, label %.critedge66, label %95

scalar.ph102:                                     ; preds = %scalar.ph102.prol.loopexit, %scalar.ph102
  %indvars.iv87 = phi i64 [ %indvars.iv.next88.3, %scalar.ph102 ], [ %indvars.iv87.unr, %scalar.ph102.prol.loopexit ]
  %75 = getelementptr inbounds double, ptr %56, i64 %indvars.iv87
  %76 = load double, ptr %75, align 8, !tbaa !19
  %77 = fptrunc double %76 to float
  %78 = fpext float %77 to double
  %79 = getelementptr inbounds double, ptr %4, i64 %indvars.iv87
  store double %78, ptr %79, align 8, !tbaa !19
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %80 = getelementptr inbounds double, ptr %56, i64 %indvars.iv.next88
  %81 = load double, ptr %80, align 8, !tbaa !19
  %82 = fptrunc double %81 to float
  %83 = fpext float %82 to double
  %84 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next88
  store double %83, ptr %84, align 8, !tbaa !19
  %indvars.iv.next88.1 = add nuw nsw i64 %indvars.iv87, 2
  %85 = getelementptr inbounds double, ptr %56, i64 %indvars.iv.next88.1
  %86 = load double, ptr %85, align 8, !tbaa !19
  %87 = fptrunc double %86 to float
  %88 = fpext float %87 to double
  %89 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next88.1
  store double %88, ptr %89, align 8, !tbaa !19
  %indvars.iv.next88.2 = add nuw nsw i64 %indvars.iv87, 3
  %90 = getelementptr inbounds double, ptr %56, i64 %indvars.iv.next88.2
  %91 = load double, ptr %90, align 8, !tbaa !19
  %92 = fptrunc double %91 to float
  %93 = fpext float %92 to double
  %94 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next88.2
  store double %93, ptr %94, align 8, !tbaa !19
  %indvars.iv.next88.3 = add nuw nsw i64 %indvars.iv87, 4
  %exitcond91.not.3 = icmp eq i64 %indvars.iv.next88.3, %wide.trip.count90
  br i1 %exitcond91.not.3, label %._crit_edge73, label %scalar.ph102, !llvm.loop !29

95:                                               ; preds = %._crit_edge73
  store i32 %53, ptr %5, align 4, !tbaa !9
  br label %.critedge66

96:                                               ; preds = %18
  %97 = getelementptr inbounds i8, ptr %16, i64 1036
  %98 = load i32, ptr %97, align 4, !tbaa !15
  %99 = lshr i32 %98, 2
  store i32 %99, ptr %10, align 4, !tbaa !9
  %.not62 = icmp eq ptr %5, null
  br i1 %.not62, label %103, label %100

100:                                              ; preds = %96
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %102 = load i32, ptr %101, align 4, !tbaa !9
  store i32 %102, ptr %10, align 4, !tbaa !9
  br label %103

103:                                              ; preds = %100, %96
  %104 = phi i32 [ %102, %100 ], [ %99, %96 ]
  %.not83 = icmp eq i32 %104, 0
  br i1 %.not83, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %103
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  %106 = getelementptr inbounds i8, ptr %105, i64 1048
  %107 = load ptr, ptr %106, align 8, !tbaa !16
  %wide.trip.count = zext i32 %104 to i64
  %min.iters.check = icmp ult i32 %104, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %wide.trip.count, 4294967292
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %108 = getelementptr inbounds i32, ptr %107, i64 %index
  %109 = getelementptr inbounds i8, ptr %108, i64 8
  %wide.load = load <2 x i32>, ptr %108, align 4, !tbaa !9
  %wide.load100 = load <2 x i32>, ptr %109, align 4, !tbaa !9
  %110 = sitofp <2 x i32> %wide.load to <2 x float>
  %111 = sitofp <2 x i32> %wide.load100 to <2 x float>
  %112 = fpext <2 x float> %110 to <2 x double>
  %113 = fpext <2 x float> %111 to <2 x double>
  %114 = getelementptr inbounds double, ptr %4, i64 %index
  %115 = getelementptr inbounds i8, ptr %114, i64 16
  store <2 x double> %112, ptr %114, align 8, !tbaa !19
  store <2 x double> %113, ptr %115, align 8, !tbaa !19
  %index.next = add nuw i64 %index, 4
  %116 = icmp eq i64 %index.next, %n.vec
  br i1 %116, label %middle.block, label %vector.body, !llvm.loop !30

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

._crit_edge:                                      ; preds = %scalar.ph, %middle.block, %103
  br i1 %.not62, label %.critedge66, label %122

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %117 = getelementptr inbounds i32, ptr %107, i64 %indvars.iv
  %118 = load i32, ptr %117, align 4, !tbaa !9
  %119 = sitofp i32 %118 to float
  %120 = fpext float %119 to double
  %121 = getelementptr inbounds double, ptr %4, i64 %indvars.iv
  store double %120, ptr %121, align 8, !tbaa !19
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %scalar.ph, !llvm.loop !31

122:                                              ; preds = %._crit_edge
  store i32 %104, ptr %5, align 4, !tbaa !9
  br label %.critedge66

123:                                              ; preds = %18
  %.not60 = icmp eq ptr %5, null
  br i1 %.not60, label %126, label %124

124:                                              ; preds = %123
  %125 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %125, ptr %10, align 4, !tbaa !9
  br label %126

126:                                              ; preds = %124, %123
  %127 = getelementptr inbounds i8, ptr %16, i64 1048
  %128 = load ptr, ptr %127, align 8, !tbaa !16
  %129 = getelementptr inbounds i8, ptr %128, i64 4
  %130 = getelementptr inbounds i8, ptr %16, i64 1036
  %131 = load i32, ptr %130, align 4, !tbaa !15
  %132 = icmp ugt i32 %131, 4
  br i1 %132, label %134, label %133

133:                                              ; preds = %126
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 245)
  %.pre = load ptr, ptr %9, align 8, !tbaa !5
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.pre, i64 1048
  %.pre97 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !16
  %.phi.trans.insert98 = getelementptr inbounds i8, ptr %.pre, i64 1036
  %.pre99 = load i32, ptr %.phi.trans.insert98, align 4, !tbaa !15
  br label %134

134:                                              ; preds = %133, %126
  %135 = phi i32 [ %.pre99, %133 ], [ %131, %126 ]
  %136 = phi ptr [ %.pre97, %133 ], [ %128, %126 ]
  %137 = add i32 %135, -1
  %138 = zext i32 %137 to i64
  %139 = getelementptr inbounds i8, ptr %136, i64 %138
  %140 = load i8, ptr %139, align 1, !tbaa !32
  %.not61 = icmp eq i8 %140, 0
  br i1 %.not61, label %142, label %141

141:                                              ; preds = %134
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 246)
  br label %142

142:                                              ; preds = %141, %134
  %143 = call noundef ptr @_ZN6Assimp17fast_atoreal_moveId17DeadlyImportErrorEEPKcS3_RT_b(ptr noundef nonnull %129, ptr noundef nonnull align 8 dereferenceable(8) %4, i1 noundef zeroext true)
  %144 = load i32, ptr %10, align 4, !tbaa !9
  %145 = icmp eq i32 %144, 1
  br i1 %145, label %.critedge, label %.lr.ph82

146:                                              ; preds = %.lr.ph82
  %147 = add i32 %.080, 1
  %148 = zext i32 %147 to i64
  %149 = getelementptr inbounds double, ptr %4, i64 %148
  %150 = call noundef ptr @_ZN6Assimp17fast_atoreal_moveId17DeadlyImportErrorEEPKcS3_RT_b(ptr noundef nonnull %154, ptr noundef nonnull align 8 dereferenceable(8) %149, i1 noundef zeroext true)
  %151 = load i32, ptr %10, align 4, !tbaa !9
  %152 = add i32 %151, -2
  %153 = icmp eq i32 %.080, %152
  br i1 %153, label %.critedge, label %.lr.ph82, !llvm.loop !33

.lr.ph82:                                         ; preds = %142, %146
  %154 = phi ptr [ %150, %146 ], [ %143, %142 ]
  %.080 = phi i32 [ %147, %146 ], [ 0, %142 ]
  %155 = load i8, ptr %154, align 1, !tbaa !32
  %156 = call noundef zeroext i1 @_ZN6Assimp7IsSpaceIcEEbT_(i8 noundef signext %155)
  br i1 %156, label %146, label %157

157:                                              ; preds = %.lr.ph82
  %158 = call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  call void @_ZN6Assimp6Logger5errorIJRA18_KcRPS2_RA55_S2_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(12) %158, ptr noundef nonnull align 1 dereferenceable(18) @.str.7, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 1 dereferenceable(55) @.str.8)
  br label %.critedge66

.critedge:                                        ; preds = %146, %142
  %159 = phi i32 [ 1, %142 ], [ %151, %146 ]
  br i1 %.not60, label %.critedge66, label %160

160:                                              ; preds = %.critedge
  store i32 %159, ptr %5, align 4, !tbaa !9
  br label %.critedge66

.critedge66:                                      ; preds = %44, %._crit_edge78, %122, %._crit_edge, %._crit_edge73, %95, %.critedge, %160, %157
  %.151 = phi i32 [ -1, %157 ], [ 0, %160 ], [ 0, %.critedge ], [ 0, %95 ], [ 0, %._crit_edge73 ], [ 0, %._crit_edge ], [ 0, %122 ], [ 0, %._crit_edge78 ], [ 0, %44 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  br label %161

161:                                              ; preds = %14, %.critedge66
  %.2 = phi i32 [ %.151, %.critedge66 ], [ -1, %14 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  ret i32 %.2
}

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

attributes #0 = { 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 #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !14, i64 1040}
!12 = !{!"_ZTS18aiMaterialProperty", !13, i64 0, !10, i64 1028, !10, i64 1032, !10, i64 1036, !14, i64 1040, !6, i64 1048}
!13 = !{!"_ZTS8aiString", !10, i64 0, !7, i64 4}
!14 = !{!"_ZTS18aiPropertyTypeInfo", !7, i64 0}
!15 = !{!12, !10, i64 1036}
!16 = !{!12, !6, i64 1048}
!17 = !{!18, !18, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = distinct !{!21, !22, !23, !24}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!"llvm.loop.isvectorized", i32 1}
!24 = !{!"llvm.loop.unroll.runtime.disable"}
!25 = distinct !{!25, !22, !24, !23}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.unroll.disable"}
!28 = distinct !{!28, !22, !23, !24}
!29 = distinct !{!29, !22, !23}
!30 = distinct !{!30, !22, !23, !24}
!31 = distinct !{!31, !22, !24, !23}
!32 = !{!7, !7, i64 0}
!33 = distinct !{!33, !22}


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