; 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: mustprogress uwtable
define dso_local i32 @aiGetMaterialFloatArray(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 95)
  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 96)
  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 %255

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 %91

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 = %81, %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 %84

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 = load ptr, ptr %12, align 8, !tbaa !5
  %78 = load i32, ptr %17, align 4, !tbaa !9
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds float, ptr %77, i64 %79
  store float %76, ptr %80, align 4, !tbaa !17
  br label %81

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

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

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

90:                                               ; preds = %87, %84
  br label %253

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

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

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

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

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

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

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

128:                                              ; preds = %115
  %129 = load i32, ptr %18, align 4, !tbaa !9
  %130 = add i32 %129, 1
  store i32 %130, ptr %18, align 4, !tbaa !9
  br label %110, !llvm.loop !23

131:                                              ; preds = %114
  %132 = load ptr, ptr %13, align 8, !tbaa !5
  %133 = icmp ne ptr %132, null
  br i1 %133, label %134, label %137

134:                                              ; preds = %131
  %135 = load i32, ptr %16, align 4, !tbaa !9
  %136 = load ptr, ptr %13, align 8, !tbaa !5
  store i32 %135, ptr %136, align 4, !tbaa !9
  br label %137

137:                                              ; preds = %134, %131
  br label %252

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

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

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

156:                                              ; preds = %152, %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %157

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

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

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

175:                                              ; preds = %162
  %176 = load i32, ptr %19, align 4, !tbaa !9
  %177 = add i32 %176, 1
  store i32 %177, ptr %19, align 4, !tbaa !9
  br label %157, !llvm.loop !24

178:                                              ; preds = %161
  %179 = load ptr, ptr %13, align 8, !tbaa !5
  %180 = icmp ne ptr %179, null
  br i1 %180, label %181, label %184

181:                                              ; preds = %178
  %182 = load i32, ptr %16, align 4, !tbaa !9
  %183 = load ptr, ptr %13, align 8, !tbaa !5
  store i32 %182, ptr %183, align 4, !tbaa !9
  br label %184

184:                                              ; preds = %181, %178
  br label %251

185:                                              ; preds = %138
  %186 = load ptr, ptr %13, align 8, !tbaa !5
  %187 = icmp ne ptr %186, null
  br i1 %187, label %188, label %191

188:                                              ; preds = %185
  %189 = load ptr, ptr %13, align 8, !tbaa !5
  %190 = load i32, ptr %189, align 4, !tbaa !9
  store i32 %190, ptr %16, align 4, !tbaa !9
  br label %191

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

200:                                              ; preds = %191
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 156)
  br label %201

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

214:                                              ; preds = %201
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 157)
  br label %215

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

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

228:                                              ; preds = %217
  store i32 11, ptr %15, align 4
  br label %239

229:                                              ; preds = %217
  %230 = load ptr, ptr %20, align 8, !tbaa !5
  %231 = load i8, ptr %230, align 1, !tbaa !25
  %232 = call noundef zeroext i1 @_ZN6Assimp7IsSpaceIcEEbT_(i8 noundef signext %231)
  br i1 %232, label %235, label %233

233:                                              ; preds = %229
  %234 = call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  call void @_ZN6Assimp6Logger5errorIJRA18_KcRPS2_RA55_S2_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(12) %234, 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 %239

235:                                              ; preds = %229
  br label %236

236:                                              ; preds = %235
  %237 = load i32, ptr %21, align 4, !tbaa !9
  %238 = add i32 %237, 1
  store i32 %238, ptr %21, align 4, !tbaa !9
  br label %217, !llvm.loop !26

239:                                              ; preds = %233, %228
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  %240 = load i32, ptr %15, align 4
  switch i32 %240, label %248 [
    i32 11, label %241
  ]

241:                                              ; preds = %239
  %242 = load ptr, ptr %13, align 8, !tbaa !5
  %243 = icmp ne ptr %242, null
  br i1 %243, label %244, label %247

244:                                              ; preds = %241
  %245 = load i32, ptr %16, align 4, !tbaa !9
  %246 = load ptr, ptr %13, align 8, !tbaa !5
  store i32 %245, ptr %246, align 4, !tbaa !9
  br label %247

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

248:                                              ; preds = %247, %239
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  %249 = load i32, ptr %15, align 4
  switch i32 %249, label %254 [
    i32 0, label %250
  ]

250:                                              ; preds = %248
  br label %251

251:                                              ; preds = %250, %184
  br label %252

252:                                              ; preds = %251, %137
  br label %253

253:                                              ; preds = %252, %90
  store i32 0, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %254

254:                                              ; preds = %253, %248
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %255

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

; 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 uwtable
declare dso_local noundef ptr @_ZN6Assimp17fast_atoreal_moveIf17DeadlyImportErrorEEPKcS3_RT_b(ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), i1 noundef zeroext) #4

; 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

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 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !22, i64 0}
!22 = !{!"double", !7, i64 0}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = !{!7, !7, i64 0}
!26 = distinct !{!26, !20}


; 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: mustprogress uwtable
define dso_local range(i32 -1, 1) i32 @aiGetMaterialFloatArray(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 95)
  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 96)
  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 %144, 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 %106 [
    i32 1, label %21
    i32 5, label %21
    i32 2, label %58
    i32 4, label %82
  ]

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, 8
  %33 = ptrtoint ptr %32 to i64
  %34 = sub i64 %7, %33
  %diff.check = icmp ult i64 %34, 32
  %or.cond = select i1 %min.iters.check116, i1 true, i1 %diff.check
  br i1 %or.cond, 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 ]
  %xtraiter = and i64 %wide.trip.count95, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph115.prol.loopexit, label %scalar.ph115.prol

scalar.ph115.prol:                                ; preds = %scalar.ph115.preheader, %scalar.ph115.prol
  %indvars.iv92.prol = phi i64 [ %indvars.iv.next93.prol, %scalar.ph115.prol ], [ %indvars.iv92.ph, %scalar.ph115.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph115.prol ], [ 0, %scalar.ph115.preheader ]
  %35 = getelementptr inbounds float, ptr %32, i64 %indvars.iv92.prol
  %36 = load float, ptr %35, align 4, !tbaa !17
  %37 = getelementptr inbounds float, ptr %4, i64 %indvars.iv92.prol
  store float %36, ptr %37, align 4, !tbaa !17
  %indvars.iv.next93.prol = add nuw nsw i64 %indvars.iv92.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.ph115.prol.loopexit, label %scalar.ph115.prol, !llvm.loop !19

scalar.ph115.prol.loopexit:                       ; preds = %scalar.ph115.prol, %scalar.ph115.preheader
  %indvars.iv92.unr = phi i64 [ %indvars.iv92.ph, %scalar.ph115.preheader ], [ %indvars.iv.next93.prol, %scalar.ph115.prol ]
  %38 = sub nsw i64 %indvars.iv92.ph, %wide.trip.count95
  %39 = icmp ugt i64 %38, -4
  br i1 %39, label %._crit_edge78, label %scalar.ph115

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

vector.body121:                                   ; preds = %vector.body121, %vector.ph117
  %index122 = phi i64 [ 0, %vector.ph117 ], [ %index.next125, %vector.body121 ]
  %40 = getelementptr inbounds float, ptr %32, i64 %index122
  %41 = getelementptr inbounds i8, ptr %40, i64 16
  %wide.load123 = load <4 x float>, ptr %40, align 4, !tbaa !17
  %wide.load124 = load <4 x float>, ptr %41, align 4, !tbaa !17
  %42 = getelementptr inbounds float, ptr %4, i64 %index122
  %43 = getelementptr inbounds i8, ptr %42, i64 16
  store <4 x float> %wide.load123, ptr %42, align 4, !tbaa !17
  store <4 x float> %wide.load124, ptr %43, align 4, !tbaa !17
  %index.next125 = add nuw i64 %index122, 8
  %44 = icmp eq i64 %index.next125, %n.vec119
  br i1 %44, 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.prol.loopexit, %scalar.ph115, %middle.block114, %28
  br i1 %.not64, label %.critedge66, label %57

scalar.ph115:                                     ; preds = %scalar.ph115.prol.loopexit, %scalar.ph115
  %indvars.iv92 = phi i64 [ %indvars.iv.next93.3, %scalar.ph115 ], [ %indvars.iv92.unr, %scalar.ph115.prol.loopexit ]
  %45 = getelementptr inbounds float, ptr %32, i64 %indvars.iv92
  %46 = load float, ptr %45, align 4, !tbaa !17
  %47 = getelementptr inbounds float, ptr %4, i64 %indvars.iv92
  store float %46, ptr %47, align 4, !tbaa !17
  %indvars.iv.next93 = add nuw nsw i64 %indvars.iv92, 1
  %48 = getelementptr inbounds float, ptr %32, i64 %indvars.iv.next93
  %49 = load float, ptr %48, align 4, !tbaa !17
  %50 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next93
  store float %49, ptr %50, align 4, !tbaa !17
  %indvars.iv.next93.1 = add nuw nsw i64 %indvars.iv92, 2
  %51 = getelementptr inbounds float, ptr %32, i64 %indvars.iv.next93.1
  %52 = load float, ptr %51, align 4, !tbaa !17
  %53 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next93.1
  store float %52, ptr %53, align 4, !tbaa !17
  %indvars.iv.next93.2 = add nuw nsw i64 %indvars.iv92, 3
  %54 = getelementptr inbounds float, ptr %32, i64 %indvars.iv.next93.2
  %55 = load float, ptr %54, align 4, !tbaa !17
  %56 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next93.2
  store float %55, ptr %56, align 4, !tbaa !17
  %indvars.iv.next93.3 = add nuw nsw i64 %indvars.iv92, 4
  %exitcond96.not.3 = icmp eq i64 %indvars.iv.next93.3, %wide.trip.count95
  br i1 %exitcond96.not.3, label %._crit_edge78, label %scalar.ph115, !llvm.loop !25

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

58:                                               ; preds = %18
  %59 = getelementptr inbounds i8, ptr %16, i64 1036
  %60 = load i32, ptr %59, align 4, !tbaa !15
  %61 = lshr i32 %60, 3
  store i32 %61, ptr %10, align 4, !tbaa !9
  %.not63 = icmp eq ptr %5, null
  br i1 %.not63, label %65, label %62

62:                                               ; preds = %58
  %63 = 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)
  %64 = load i32, ptr %63, align 4, !tbaa !9
  br label %65

65:                                               ; preds = %62, %58
  %66 = phi i32 [ %64, %62 ], [ %61, %58 ]
  %.not84 = icmp eq i32 %66, 0
  br i1 %.not84, label %._crit_edge73, label %.lr.ph72

.lr.ph72:                                         ; preds = %65
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %67, i64 1048
  %69 = load ptr, ptr %68, align 8, !tbaa !16
  %wide.trip.count90 = zext i32 %66 to i64
  %min.iters.check103 = icmp ult i32 %66, 4
  br i1 %min.iters.check103, 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 ]
  br 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 ]
  %70 = getelementptr inbounds double, ptr %69, i64 %index109
  %71 = getelementptr inbounds i8, ptr %70, i64 16
  %wide.load110 = load <2 x double>, ptr %70, align 8, !tbaa !26
  %wide.load111 = load <2 x double>, ptr %71, align 8, !tbaa !26
  %72 = fptrunc <2 x double> %wide.load110 to <2 x float>
  %73 = fptrunc <2 x double> %wide.load111 to <2 x float>
  %74 = getelementptr inbounds float, ptr %4, i64 %index109
  %75 = getelementptr inbounds i8, ptr %74, i64 8
  store <2 x float> %72, ptr %74, align 4, !tbaa !17
  store <2 x float> %73, ptr %75, align 4, !tbaa !17
  %index.next112 = add nuw i64 %index109, 4
  %76 = icmp eq i64 %index.next112, %n.vec106
  br i1 %76, 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, %middle.block101, %65
  br i1 %.not63, label %.critedge66, label %81

scalar.ph102:                                     ; preds = %scalar.ph102.preheader, %scalar.ph102
  %indvars.iv87 = phi i64 [ %indvars.iv.next88, %scalar.ph102 ], [ %indvars.iv87.ph, %scalar.ph102.preheader ]
  %77 = getelementptr inbounds double, ptr %69, i64 %indvars.iv87
  %78 = load double, ptr %77, align 8, !tbaa !26
  %79 = fptrunc double %78 to float
  %80 = getelementptr inbounds float, ptr %4, i64 %indvars.iv87
  store float %79, ptr %80, align 4, !tbaa !17
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %exitcond91.not = icmp eq i64 %indvars.iv.next88, %wide.trip.count90
  br i1 %exitcond91.not, label %._crit_edge73, label %scalar.ph102, !llvm.loop !29

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

82:                                               ; preds = %18
  %83 = getelementptr inbounds i8, ptr %16, i64 1036
  %84 = load i32, ptr %83, align 4, !tbaa !15
  %85 = lshr i32 %84, 2
  store i32 %85, ptr %10, align 4, !tbaa !9
  %.not62 = icmp eq ptr %5, null
  br i1 %.not62, label %89, label %86

86:                                               ; preds = %82
  %87 = 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)
  %88 = load i32, ptr %87, align 4, !tbaa !9
  store i32 %88, ptr %10, align 4, !tbaa !9
  br label %89

89:                                               ; preds = %86, %82
  %90 = phi i32 [ %88, %86 ], [ %85, %82 ]
  %.not83 = icmp eq i32 %90, 0
  br i1 %.not83, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %89
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %91, i64 1048
  %93 = load ptr, ptr %92, align 8, !tbaa !16
  %wide.trip.count = zext i32 %90 to i64
  %min.iters.check = icmp ult i32 %90, 8
  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, 4294967288
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %94 = getelementptr inbounds i32, ptr %93, i64 %index
  %95 = getelementptr inbounds i8, ptr %94, i64 16
  %wide.load = load <4 x i32>, ptr %94, align 4, !tbaa !9
  %wide.load100 = load <4 x i32>, ptr %95, align 4, !tbaa !9
  %96 = sitofp <4 x i32> %wide.load to <4 x float>
  %97 = sitofp <4 x i32> %wide.load100 to <4 x float>
  %98 = getelementptr inbounds float, ptr %4, i64 %index
  %99 = getelementptr inbounds i8, ptr %98, i64 16
  store <4 x float> %96, ptr %98, align 4, !tbaa !17
  store <4 x float> %97, ptr %99, align 4, !tbaa !17
  %index.next = add nuw i64 %index, 8
  %100 = icmp eq i64 %index.next, %n.vec
  br i1 %100, 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, %89
  br i1 %.not62, label %.critedge66, label %105

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %101 = getelementptr inbounds i32, ptr %93, i64 %indvars.iv
  %102 = load i32, ptr %101, align 4, !tbaa !9
  %103 = sitofp i32 %102 to float
  %104 = getelementptr inbounds float, ptr %4, i64 %indvars.iv
  store float %103, ptr %104, align 4, !tbaa !17
  %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

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

106:                                              ; preds = %18
  %.not60 = icmp eq ptr %5, null
  br i1 %.not60, label %109, label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %108, ptr %10, align 4, !tbaa !9
  br label %109

109:                                              ; preds = %107, %106
  %110 = getelementptr inbounds i8, ptr %16, i64 1048
  %111 = load ptr, ptr %110, align 8, !tbaa !16
  %112 = getelementptr inbounds i8, ptr %111, i64 4
  %113 = getelementptr inbounds i8, ptr %16, i64 1036
  %114 = load i32, ptr %113, align 4, !tbaa !15
  %115 = icmp ugt i32 %114, 4
  br i1 %115, label %117, label %116

116:                                              ; preds = %109
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 156)
  %.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 %117

117:                                              ; preds = %116, %109
  %118 = phi i32 [ %.pre99, %116 ], [ %114, %109 ]
  %119 = phi ptr [ %.pre97, %116 ], [ %111, %109 ]
  %120 = add i32 %118, -1
  %121 = zext i32 %120 to i64
  %122 = getelementptr inbounds i8, ptr %119, i64 %121
  %123 = load i8, ptr %122, align 1, !tbaa !32
  %.not61 = icmp eq i8 %123, 0
  br i1 %.not61, label %125, label %124

124:                                              ; preds = %117
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 157)
  br label %125

125:                                              ; preds = %124, %117
  %126 = call noundef ptr @_ZN6Assimp17fast_atoreal_moveIf17DeadlyImportErrorEEPKcS3_RT_b(ptr noundef nonnull %112, ptr noundef nonnull align 4 dereferenceable(4) %4, i1 noundef zeroext true)
  %127 = load i32, ptr %10, align 4, !tbaa !9
  %128 = icmp eq i32 %127, 1
  br i1 %128, label %.critedge, label %.lr.ph82

129:                                              ; preds = %.lr.ph82
  %130 = add i32 %.080, 1
  %131 = zext i32 %130 to i64
  %132 = getelementptr inbounds float, ptr %4, i64 %131
  %133 = call noundef ptr @_ZN6Assimp17fast_atoreal_moveIf17DeadlyImportErrorEEPKcS3_RT_b(ptr noundef nonnull %137, ptr noundef nonnull align 4 dereferenceable(4) %132, i1 noundef zeroext true)
  %134 = load i32, ptr %10, align 4, !tbaa !9
  %135 = add i32 %134, -2
  %136 = icmp eq i32 %.080, %135
  br i1 %136, label %.critedge, label %.lr.ph82, !llvm.loop !33

.lr.ph82:                                         ; preds = %125, %129
  %137 = phi ptr [ %133, %129 ], [ %126, %125 ]
  %.080 = phi i32 [ %130, %129 ], [ 0, %125 ]
  %138 = load i8, ptr %137, align 1, !tbaa !32
  %139 = call noundef zeroext i1 @_ZN6Assimp7IsSpaceIcEEbT_(i8 noundef signext %138)
  br i1 %139, label %129, label %140

140:                                              ; preds = %.lr.ph82
  %141 = call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  call void @_ZN6Assimp6Logger5errorIJRA18_KcRPS2_RA55_S2_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(12) %141, 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 = %129, %125
  %142 = phi i32 [ 1, %125 ], [ %134, %129 ]
  br i1 %.not60, label %.critedge66, label %143

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

.critedge66:                                      ; preds = %57, %._crit_edge78, %105, %._crit_edge, %._crit_edge73, %81, %.critedge, %143, %140
  %.151 = phi i32 [ -1, %140 ], [ 0, %143 ], [ 0, %.critedge ], [ 0, %81 ], [ 0, %._crit_edge73 ], [ 0, %._crit_edge ], [ 0, %105 ], [ 0, %._crit_edge78 ], [ 0, %57 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  br label %144

144:                                              ; 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 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 uwtable
declare dso_local noundef ptr @_ZN6Assimp17fast_atoreal_moveIf17DeadlyImportErrorEEPKcS3_RT_b(ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), i1 noundef zeroext) local_unnamed_addr #4

; 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

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 = distinct !{!19, !20}
!20 = !{!"llvm.loop.unroll.disable"}
!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, !23}
!26 = !{!27, !27, i64 0}
!27 = !{!"double", !7, i64 0}
!28 = distinct !{!28, !22, !23, !24}
!29 = distinct !{!29, !22, !24, !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