; LLVM IR from Overload-Technologies/Overload :: Dependencies/assimp/code/AssetLib/Obj (ObjFileMtlImporter)

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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.Assimp::ObjFileMtlImporter" = type { %"class.std::__cxx11::basic_string", %"class.__gnu_cxx::__normal_iterator", %"class.__gnu_cxx::__normal_iterator", ptr, i32, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Assimp::ObjFile::Model" = type { %"class.std::__cxx11::basic_string", %"class.std::vector.0", ptr, ptr, ptr, %"class.std::vector.5", %"class.std::vector.10", %"class.std::vector.10", %"class.std::vector.10", %"class.std::map", ptr, %"class.std::__cxx11::basic_string", %"class.std::vector.10", i32, ptr, %"class.std::vector.18", %"class.std::map.23" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<Assimp::ObjFile::Object *, std::allocator<Assimp::ObjFile::Object *>>::_Vector_impl" }
%"struct.std::_Vector_base<Assimp::ObjFile::Object *, std::allocator<Assimp::ObjFile::Object *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Assimp::ObjFile::Object *, std::allocator<Assimp::ObjFile::Object *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Assimp::ObjFile::Object *, std::allocator<Assimp::ObjFile::Object *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::vector<unsigned int> *>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::vector<unsigned int> *>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::vector<unsigned int> *>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::vector<unsigned int> *>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<aiVector3t<float>, std::allocator<aiVector3t<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<aiVector3t<float>, std::allocator<aiVector3t<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<aiVector3t<float>, std::allocator<aiVector3t<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<aiVector3t<float>, std::allocator<aiVector3t<float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<Assimp::ObjFile::Mesh *, std::allocator<Assimp::ObjFile::Mesh *>>::_Vector_impl" }
%"struct.std::_Vector_base<Assimp::ObjFile::Mesh *, std::allocator<Assimp::ObjFile::Mesh *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Assimp::ObjFile::Mesh *, std::allocator<Assimp::ObjFile::Mesh *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Assimp::ObjFile::Mesh *, std::allocator<Assimp::ObjFile::Mesh *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map.23" = type { %"class.std::_Rb_tree.24" }
%"class.std::_Rb_tree.24" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, Assimp::ObjFile::Material *>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, Assimp::ObjFile::Material *>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, Assimp::ObjFile::Material *>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, Assimp::ObjFile::Material *>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.Assimp::ObjFile::Material" = type { %struct.aiString, %struct.aiString, %struct.aiString, %struct.aiString, %struct.aiString, %struct.aiString, %struct.aiString, [6 x %struct.aiString], %struct.aiString, %struct.aiString, %struct.aiString, %struct.aiString, %struct.aiString, %struct.aiString, %struct.aiString, [20 x i8], %struct.aiColor3D, %struct.aiColor3D, %struct.aiColor3D, %struct.aiColor3D, float, float, i32, float, %struct.aiColor3D, %"struct.Assimp::Maybe", %"struct.Assimp::Maybe", %"struct.Assimp::Maybe.28", %"struct.Assimp::Maybe", %"struct.Assimp::Maybe", float, float }
%struct.aiString = type { i32, [1024 x i8] }
%struct.aiColor3D = type { float, float, float }
%"struct.Assimp::Maybe.28" = type <{ %struct.aiColor3D, i8, [3 x i8] }>
%"struct.Assimp::Maybe" = type <{ float, i8, [3 x i8] }>

@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@_ZN6AssimpL14DiffuseTextureE = external hidden constant [7 x i8], align 1
@_ZN6AssimpL14AmbientTextureE = external hidden constant [7 x i8], align 1
@_ZN6AssimpL15SpecularTextureE = external hidden constant [7 x i8], align 1
@_ZN6AssimpL20DisplacementTexture1E = external hidden constant [9 x i8], align 1
@_ZN6AssimpL20DisplacementTexture2E = external hidden constant [5 x i8], align 1
@_ZN6AssimpL14OpacityTextureE = external hidden constant [6 x i8], align 1
@_ZN6AssimpL16EmissiveTexture1E = external hidden constant [13 x i8], align 1
@_ZN6AssimpL16EmissiveTexture2E = external hidden constant [7 x i8], align 1
@_ZN6AssimpL12BumpTexture1E = external hidden constant [9 x i8], align 1
@_ZN6AssimpL12BumpTexture2E = external hidden constant [5 x i8], align 1
@_ZN6AssimpL15NormalTextureV1E = external hidden constant [7 x i8], align 1
@_ZN6AssimpL15NormalTextureV2E = external hidden constant [5 x i8], align 1
@_ZN6AssimpL17ReflectionTextureE = external hidden constant [5 x i8], align 1
@_ZN6AssimpL18SpecularityTextureE = external hidden constant [7 x i8], align 1
@_ZN6AssimpL16RoughnessTextureE = external hidden constant [7 x i8], align 1
@_ZN6AssimpL15MetallicTextureE = external hidden constant [7 x i8], align 1
@_ZN6AssimpL12SheenTextureE = external hidden constant [7 x i8], align 1
@_ZN6AssimpL10RMATextureE = external hidden constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [42 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8aiString3SetEPKc(ptr noundef nonnull align 4 dereferenceable(1028), ptr noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp18ObjFileMtlImporter10getTextureEv(ptr noundef nonnull align 8 dereferenceable(88) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %16 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store i32 -1, ptr %4, align 4, !tbaa !9
  %17 = getelementptr inbounds %"class.Assimp::ObjFileMtlImporter", ptr %16, i32 0, i32 3
  %18 = load ptr, ptr %17, align 8, !tbaa !11
  %19 = getelementptr inbounds %"struct.Assimp::ObjFile::Model", ptr %18, i32 0, i32 3
  %20 = load ptr, ptr %19, align 8, !tbaa !21
  %21 = icmp eq ptr %20, null
  br i1 %21, label %22, label %56

22:                                               ; preds = %1
  %23 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 20712) #9
  invoke void @_ZN6Assimp7ObjFile8MaterialC2Ev(ptr noundef nonnull align 4 dereferenceable(20712) %23)
          to label %24 unwind label %43

24:                                               ; preds = %22
  %25 = getelementptr inbounds %"class.Assimp::ObjFileMtlImporter", ptr %16, i32 0, i32 3
  %26 = load ptr, ptr %25, align 8, !tbaa !11
  %27 = getelementptr inbounds %"struct.Assimp::ObjFile::Model", ptr %26, i32 0, i32 3
  store ptr %23, ptr %27, align 8, !tbaa !21
  %28 = getelementptr inbounds %"class.Assimp::ObjFileMtlImporter", ptr %16, i32 0, i32 3
  %29 = load ptr, ptr %28, align 8, !tbaa !11
  %30 = getelementptr inbounds %"struct.Assimp::ObjFile::Model", ptr %29, i32 0, i32 3
  %31 = load ptr, ptr %30, align 8, !tbaa !21
  %32 = getelementptr inbounds %"struct.Assimp::ObjFile::Material", ptr %31, i32 0, i32 0
  call void @_ZN8aiString3SetEPKc(ptr noundef nonnull align 4 dereferenceable(1028) %32, ptr noundef @.str.6)
  %33 = getelementptr inbounds %"class.Assimp::ObjFileMtlImporter", ptr %16, i32 0, i32 3
  %34 = load ptr, ptr %33, align 8, !tbaa !11
  %35 = getelementptr inbounds %"struct.Assimp::ObjFile::Model", ptr %34, i32 0, i32 3
  %36 = load ptr, ptr %35, align 8, !tbaa !21
  %37 = getelementptr inbounds %"class.Assimp::ObjFileMtlImporter", ptr %16, i32 0, i32 3
  %38 = load ptr, ptr %37, align 8, !tbaa !11
  %39 = getelementptr inbounds %"struct.Assimp::ObjFile::Model", ptr %38, i32 0, i32 16
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %40 unwind label %47

40:                                               ; preds = %24
  %41 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN6Assimp7ObjFile8MaterialESt4lessIS5_ESaISt4pairIKS5_S9_EEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %39, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %42 unwind label %51

42:                                               ; preds = %40
  store ptr %36, ptr %41, align 8, !tbaa !5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  br label %56

43:                                               ; preds = %22
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %5, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %23, i64 noundef 20712) #10
  br label %264

47:                                               ; preds = %24
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %5, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %6, align 4
  br label %55

51:                                               ; preds = %40
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %5, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %6, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  br label %55

55:                                               ; preds = %51, %47
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  br label %264

56:                                               ; preds = %42, %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %57 = getelementptr inbounds %"class.Assimp::ObjFileMtlImporter", ptr %16, i32 0, i32 1
  %58 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPcSt6vectorIcSaIcEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %57) #8
  store ptr %58, ptr %9, align 8, !tbaa !5
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef %59, ptr noundef @_ZN6AssimpL14DiffuseTextureE, i32 noundef 6)
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %68, label %62

62:                                               ; preds = %56
  %63 = getelementptr inbounds %"class.Assimp::ObjFileMtlImporter", ptr %16, i32 0, i32 3
  %64 = load ptr, ptr %63, align 8, !tbaa !11
  %65 = getelementptr inbounds %"struct.Assimp::ObjFile::Model", ptr %64, i32 0, i32 3
  %66 = load ptr, ptr %65, align 8, !tbaa !21
  %67 = getelementptr inbounds %"struct.Assimp::ObjFile::Material", ptr %66, i32 0, i32 1
  store ptr %67, ptr %3, align 8, !tbaa !5
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %224

68:                                               ; preds = %56
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef %69, ptr noundef @_ZN6AssimpL14AmbientTextureE, i32 noundef 6)
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %78, label %72

72:                                               ; preds = %68
  %73 = getelementptr inbounds %"class.Assimp::ObjFileMtlImporter", ptr %16, i32 0, i32 3
  %74 = load ptr, ptr %73, align 8, !tbaa !11
  %75 = getelementptr inbounds %"struct.Assimp::ObjFile::Model", ptr %74, i32 0, i32 3
  %76 = load ptr, ptr %75, align 8, !tbaa !21
  %77 = getelementptr inbounds %"struct.Assimp::ObjFile::Material", ptr %76, i32 0, i32 3
  store ptr %77, ptr %3, align 8, !tbaa !5
  store i32 2, ptr %4, align 4, !tbaa !9
  br label %223

78:                                               ; preds = %68
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef %79, ptr noundef @_ZN6AssimpL15SpecularTextureE, i32 noundef 6)
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %88, label %82

82:                                               ; preds = %78
  %83 = getelementptr inbounds %"class.Assimp::ObjFileMtlImporter", ptr %16, i32 0, i32 3
  %84 = load ptr, ptr %83, align 8, !tbaa !11
  %85 = getelementptr inbounds %"struct.Assimp::ObjFile::Model", ptr %84, i32 0, i32 3
  %86 = load ptr, ptr %85, align 8, !tbaa !21
  %87 = getelementptr inbounds %"struct.Assimp::ObjFile::Material", ptr %86, i32 0, i32 2
  store ptr %87, ptr %3, align 8, !tbaa !5
  store i32 1, ptr %4, align 4, !tbaa !9
  br label %222

88:                                               ; preds = %78
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef %89, ptr noundef @_ZN6AssimpL20DisplacementTexture1E, i32 noundef 8)
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %92, label %96

92:                                               ; preds = %88
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef %93, ptr noundef @_ZN6AssimpL20DisplacementTexture2E, i32 noundef 4)
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %102, label %96

96:                                               ; preds = %92, %88
  %97 = getelementptr inbounds %"class.Assimp::ObjFileMtlImporter", ptr %16, i32 0, i32 3
  %98 = load ptr, ptr %97, align 8, !tbaa !11
  %99 = getelementptr inbounds %"struct.Assimp::ObjFile::Model", ptr %98, i32 0, i32 3
  %100 = load ptr, ptr %99, align 8, !tbaa !21
  %101 = getelementptr inbounds %"struct.Assimp::ObjFile::Material", ptr %100, i32 0, i32 10
  store ptr %101, ptr %3, align 8, !tbaa !5
  store i32 15, ptr %4, align 4, !tbaa !9
  br label %221

102:                                              ; preds = %92
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef %103, ptr noundef @_ZN6AssimpL14OpacityTextureE, i32 noundef 5)
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %112, label %106

106:                                              ; preds = %102
  %107 = getelementptr inbounds %"class.Assimp::ObjFileMtlImporter", ptr %16, i32 0, i32 3
  %108 = load ptr, ptr %107, align 8, !tbaa !11
  %109 = getelementptr inbounds %"struct.Assimp::ObjFile::Model", ptr %108, i32 0, i32 3
  %110 = load ptr, ptr %109, align 8, !tbaa !21
  %111 = getelementptr inbounds %"struct.Assimp::ObjFile::Material", ptr %110, i32 0, i32 9
  store ptr %111, ptr %3, align 8, !tbaa !5
  store i32 14, ptr %4, align 4, !tbaa !9
  br label %220

112:                                              ; preds = %102
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef %113, ptr noundef @_ZN6AssimpL16EmissiveTexture1E, i32 noundef 12)
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %120

116:                                              ; preds = %112
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef %117, ptr noundef @_ZN6AssimpL16EmissiveTexture2E, i32 noundef 6)
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %126, label %120

120:                                              ; preds = %116, %112
  %121 = getelementptr inbounds %"class.Assimp::ObjFileMtlImporter", ptr %16, i32 0, i32 3
  %122 = load ptr, ptr %121, align 8, !tbaa !11
  %123 = getelementptr inbounds %"struct.Assimp::ObjFile::Model", ptr %122, i32 0, i32 3
  %124 = load ptr, ptr %123, align 8, !tbaa !21
  %125 = getelementptr inbounds %"struct.Assimp::ObjFile::Material", ptr %124, i32 0, i32 4
  store ptr %125, ptr %3, align 8, !tbaa !5
  store i32 3, ptr %4, align 4, !tbaa !9
  br label %219

126:                                              ; preds = %116
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  %128 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef %127, ptr noundef @_ZN6AssimpL12BumpTexture1E, i32 noundef 8)
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %130, label %134

130:                                              ; preds = %126
  %131 = load ptr, ptr %9, align 8, !tbaa !5
  %132 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef %131, ptr noundef @_ZN6AssimpL12BumpTexture2E, i32 noundef 4)
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %140, label %134

134:                                              ; preds = %130, %126
  %135 = getelementptr inbounds %"class.Assimp::ObjFileMtlImporter", ptr %16, i32 0, i32 3
  %136 = load ptr, ptr %135, align 8, !tbaa !11
  %137 = getelementptr inbounds %"struct.Assimp::ObjFile::Model", ptr %136, i32 0, i32 3
  %138 = load ptr, ptr %137, align 8, !tbaa !21
  %139 = getelementptr inbounds %"struct.Assimp::ObjFile::Material", ptr %138, i32 0, i32 5
  store ptr %139, ptr %3, align 8, !tbaa !5
  store i32 4, ptr %4, align 4, !tbaa !9
  br label %218

140:                                              ; preds = %130
  %141 = load ptr, ptr %9, align 8, !tbaa !5
  %142 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef %141, ptr noundef @_ZN6AssimpL15NormalTextureV1E, i32 noundef 6)
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %144, label %148

144:                                              ; preds = %140
  %145 = load ptr, ptr %9, align 8, !tbaa !5
  %146 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef %145, ptr noundef @_ZN6AssimpL15NormalTextureV2E, i32 noundef 4)
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %154, label %148

148:                                              ; preds = %144, %140
  %149 = getelementptr inbounds %"class.Assimp::ObjFileMtlImporter", ptr %16, i32 0, i32 3
  %150 = load ptr, ptr %149, align 8, !tbaa !11
  %151 = getelementptr inbounds %"struct.Assimp::ObjFile::Model", ptr %150, i32 0, i32 3
  %152 = load ptr, ptr %151, align 8, !tbaa !21
  %153 = getelementptr inbounds %"struct.Assimp::ObjFile::Material", ptr %152, i32 0, i32 6
  store ptr %153, ptr %3, align 8, !tbaa !5
  store i32 5, ptr %4, align 4, !tbaa !9
  br label %217

154:                                              ; preds = %144
  %155 = load ptr, ptr %9, align 8, !tbaa !5
  %156 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef %155, ptr noundef @_ZN6AssimpL17ReflectionTextureE, i32 noundef 4)
  %157 = icmp ne i32 %156, 0
  br i1 %157, label %159, label %158

158:                                              ; preds = %154
  store i32 1, ptr %10, align 4
  br label %260

159:                                              ; preds = %154
  %160 = load ptr, ptr %9, align 8, !tbaa !5
  %161 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef %160, ptr noundef @_ZN6AssimpL18SpecularityTextureE, i32 noundef 6)
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %169, label %163

163:                                              ; preds = %159
  %164 = getelementptr inbounds %"class.Assimp::ObjFileMtlImporter", ptr %16, i32 0, i32 3
  %165 = load ptr, ptr %164, align 8, !tbaa !11
  %166 = getelementptr inbounds %"struct.Assimp::ObjFile::Model", ptr %165, i32 0, i32 3
  %167 = load ptr, ptr %166, align 8, !tbaa !21
  %168 = getelementptr inbounds %"struct.Assimp::ObjFile::Material", ptr %167, i32 0, i32 8
  store ptr %168, ptr %3, align 8, !tbaa !5
  store i32 13, ptr %4, align 4, !tbaa !9
  br label %215

169:                                              ; preds = %159
  %170 = load ptr, ptr %9, align 8, !tbaa !5
  %171 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef %170, ptr noundef @_ZN6AssimpL16RoughnessTextureE, i32 noundef 6)
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %179, label %173

173:                                              ; preds = %169
  %174 = getelementptr inbounds %"class.Assimp::ObjFileMtlImporter", ptr %16, i32 0, i32 3
  %175 = load ptr, ptr %174, align 8, !tbaa !11
  %176 = getelementptr inbounds %"struct.Assimp::ObjFile::Model", ptr %175, i32 0, i32 3
  %177 = load ptr, ptr %176, align 8, !tbaa !21
  %178 = getelementptr inbounds %"struct.Assimp::ObjFile::Material", ptr %177, i32 0, i32 11
  store ptr %178, ptr %3, align 8, !tbaa !5
  store i32 16, ptr %4, align 4, !tbaa !9
  br label %214

179:                                              ; preds = %169
  %180 = load ptr, ptr %9, align 8, !tbaa !5
  %181 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef %180, ptr noundef @_ZN6AssimpL15MetallicTextureE, i32 noundef 6)
  %182 = icmp ne i32 %181, 0
  br i1 %182, label %189, label %183

183:                                              ; preds = %179
  %184 = getelementptr inbounds %"class.Assimp::ObjFileMtlImporter", ptr %16, i32 0, i32 3
  %185 = load ptr, ptr %184, align 8, !tbaa !11
  %186 = getelementptr inbounds %"struct.Assimp::ObjFile::Model", ptr %185, i32 0, i32 3
  %187 = load ptr, ptr %186, align 8, !tbaa !21
  %188 = getelementptr inbounds %"struct.Assimp::ObjFile::Material", ptr %187, i32 0, i32 12
  store ptr %188, ptr %3, align 8, !tbaa !5
  store i32 17, ptr %4, align 4, !tbaa !9
  br label %213

189:                                              ; preds = %179
  %190 = load ptr, ptr %9, align 8, !tbaa !5
  %191 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef %190, ptr noundef @_ZN6AssimpL12SheenTextureE, i32 noundef 6)
  %192 = icmp ne i32 %191, 0
  br i1 %192, label %199, label %193

193:                                              ; preds = %189
  %194 = getelementptr inbounds %"class.Assimp::ObjFileMtlImporter", ptr %16, i32 0, i32 3
  %195 = load ptr, ptr %194, align 8, !tbaa !11
  %196 = getelementptr inbounds %"struct.Assimp::ObjFile::Model", ptr %195, i32 0, i32 3
  %197 = load ptr, ptr %196, align 8, !tbaa !21
  %198 = getelementptr inbounds %"struct.Assimp::ObjFile::Material", ptr %197, i32 0, i32 13
  store ptr %198, ptr %3, align 8, !tbaa !5
  store i32 18, ptr %4, align 4, !tbaa !9
  br label %212

199:                                              ; preds = %189
  %200 = load ptr, ptr %9, align 8, !tbaa !5
  %201 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef %200, ptr noundef @_ZN6AssimpL10RMATextureE, i32 noundef 6)
  %202 = icmp ne i32 %201, 0
  br i1 %202, label %209, label %203

203:                                              ; preds = %199
  %204 = getelementptr inbounds %"class.Assimp::ObjFileMtlImporter", ptr %16, i32 0, i32 3
  %205 = load ptr, ptr %204, align 8, !tbaa !11
  %206 = getelementptr inbounds %"struct.Assimp::ObjFile::Model", ptr %205, i32 0, i32 3
  %207 = load ptr, ptr %206, align 8, !tbaa !21
  %208 = getelementptr inbounds %"struct.Assimp::ObjFile::Material", ptr %207, i32 0, i32 14
  store ptr %208, ptr %3, align 8, !tbaa !5
  store i32 19, ptr %4, align 4, !tbaa !9
  br label %211

209:                                              ; preds = %199
  %210 = call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  call void @_ZN6Assimp6Logger5errorEPKc(ptr noundef nonnull align 8 dereferenceable(12) %210, ptr noundef @.str.7)
  store i32 1, ptr %10, align 4
  br label %260

211:                                              ; preds = %203
  br label %212

212:                                              ; preds = %211, %193
  br label %213

213:                                              ; preds = %212, %183
  br label %214

214:                                              ; preds = %213, %173
  br label %215

215:                                              ; preds = %214, %163
  br label %216

216:                                              ; preds = %215
  br label %217

217:                                              ; preds = %216, %148
  br label %218

218:                                              ; preds = %217, %134
  br label %219

219:                                              ; preds = %218, %120
  br label %220

220:                                              ; preds = %219, %106
  br label %221

221:                                              ; preds = %220, %96
  br label %222

222:                                              ; preds = %221, %82
  br label %223

223:                                              ; preds = %222, %72
  br label %224

224:                                              ; preds = %223, %62
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #8
  store i8 0, ptr %11, align 1, !tbaa !50
  call void @_ZN6Assimp18ObjFileMtlImporter16getTextureOptionERbRiRP8aiString(ptr noundef nonnull align 8 dereferenceable(88) %16, ptr noundef nonnull align 1 dereferenceable(1) %11, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %225 = load i8, ptr %11, align 1, !tbaa !50, !range !52, !noundef !53
  %226 = trunc i8 %225 to i1
  %227 = getelementptr inbounds %"class.Assimp::ObjFileMtlImporter", ptr %16, i32 0, i32 3
  %228 = load ptr, ptr %227, align 8, !tbaa !11
  %229 = getelementptr inbounds %"struct.Assimp::ObjFile::Model", ptr %228, i32 0, i32 3
  %230 = load ptr, ptr %229, align 8, !tbaa !21
  %231 = getelementptr inbounds %"struct.Assimp::ObjFile::Material", ptr %230, i32 0, i32 15
  %232 = load i32, ptr %4, align 4, !tbaa !9
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [20 x i8], ptr %231, i64 0, i64 %233
  %235 = zext i1 %226 to i8
  store i8 %235, ptr %234, align 1, !tbaa !50
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %236 = getelementptr inbounds %"class.Assimp::ObjFileMtlImporter", ptr %16, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %236, i64 8, i1 false), !tbaa.struct !54
  %237 = getelementptr inbounds %"class.Assimp::ObjFileMtlImporter", ptr %16, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %237, i64 8, i1 false), !tbaa.struct !54
  %238 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  %239 = load ptr, ptr %238, align 8
  %240 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %241 = load ptr, ptr %240, align 8
  %242 = invoke ptr @_ZN6Assimp7getNameIN9__gnu_cxx17__normal_iteratorIPcSt6vectorIcSaIcEEEEEET_S8_S8_RNSt7__cxx1112basic_stringIcSt11char_traitsIcES5_EE(ptr %239, ptr %241, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %243 unwind label %251

243:                                              ; preds = %224
  %244 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %242, ptr %244, align 8
  %245 = getelementptr inbounds %"class.Assimp::ObjFileMtlImporter", ptr %16, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %245, ptr align 8 %13, i64 8, i1 false), !tbaa.struct !54
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  %246 = load ptr, ptr %3, align 8, !tbaa !5
  %247 = icmp ne ptr null, %246
  br i1 %247, label %248, label %259

248:                                              ; preds = %243
  %249 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZN8aiString3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 4 dereferenceable(1028) %249, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %250 unwind label %255

250:                                              ; preds = %248
  br label %259

251:                                              ; preds = %224
  %252 = landingpad { ptr, i32 }
          cleanup
  %253 = extractvalue { ptr, i32 } %252, 0
  store ptr %253, ptr %5, align 8
  %254 = extractvalue { ptr, i32 } %252, 1
  store i32 %254, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %263

255:                                              ; preds = %248
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %5, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %6, align 4
  br label %263

259:                                              ; preds = %250, %243
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #8
  store i32 0, ptr %10, align 4
  br label %260

260:                                              ; preds = %259, %209, %158
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  %261 = load i32, ptr %10, align 4
  switch i32 %261, label %270 [
    i32 0, label %262
    i32 1, label %262
  ]

262:                                              ; preds = %260, %260
  ret void

263:                                              ; preds = %255, %251
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %264

264:                                              ; preds = %263, %55, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  br label %265

265:                                              ; preds = %264
  %266 = load ptr, ptr %5, align 8
  %267 = load i32, ptr %6, align 4
  %268 = insertvalue { ptr, i32 } poison, ptr %266, 0
  %269 = insertvalue { ptr, i32 } %268, i32 %267, 1
  resume { ptr, i32 } %269

270:                                              ; preds = %260
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8aiString3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 4 dereferenceable(1028), ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN6Assimp7ObjFile8MaterialESt4lessIS5_ESaISt4pairIKS5_S9_EEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef, ptr noundef, i32 noundef) #6

declare noundef ptr @_ZN6Assimp13DefaultLogger3getEv() #7

declare void @_ZN6Assimp6Logger5errorEPKc(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Assimp18ObjFileMtlImporter16getTextureOptionERbRiRP8aiString(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZN6Assimp7getNameIN9__gnu_cxx17__normal_iteratorIPcSt6vectorIcSaIcEEEEEET_S8_S8_RNSt7__cxx1112basic_stringIcSt11char_traitsIcES5_EE(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(32)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 48}
!12 = !{!"_ZTSN6Assimp18ObjFileMtlImporterE", !13, i64 0, !16, i64 32, !16, i64 40, !6, i64 48, !10, i64 56, !17, i64 64}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSN9__gnu_cxx17__normal_iteratorIPcSt6vectorIcSaIcEEEE", !6, i64 0}
!17 = !{!"_ZTSSt6vectorIcSaIcEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!22, !6, i64 64}
!22 = !{!"_ZTSN6Assimp7ObjFile5ModelE", !13, i64 0, !23, i64 32, !6, i64 56, !6, i64 64, !6, i64 72, !27, i64 80, !31, i64 104, !31, i64 128, !31, i64 152, !35, i64 176, !6, i64 224, !13, i64 232, !31, i64 264, !10, i64 288, !6, i64 296, !43, i64 304, !47, i64 328}
!23 = !{!"_ZTSSt6vectorIPN6Assimp7ObjFile6ObjectESaIS3_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIPN6Assimp7ObjFile6ObjectESaIS3_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIPN6Assimp7ObjFile6ObjectESaIS3_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIPN6Assimp7ObjFile6ObjectESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!"_ZTSSt6vectorI10aiVector3tIfESaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseI10aiVector3tIfESaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseI10aiVector3tIfESaIS1_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseI10aiVector3tIfESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!35 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPSt6vectorIjSaIjEESt4lessIS5_ESaISt4pairIKS5_S9_EEE", !36, i64 0}
!36 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_PSt6vectorIjSaIjEEESt10_Select1stISC_ESt4lessIS5_ESaISC_EE", !37, i64 0}
!37 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_PSt6vectorIjSaIjEEESt10_Select1stISC_ESt4lessIS5_ESaISC_EE13_Rb_tree_implISG_Lb1EEE", !38, i64 0, !40, i64 8}
!38 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !39, i64 0}
!39 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!40 = !{!"_ZTSSt15_Rb_tree_header", !41, i64 0, !15, i64 32}
!41 = !{!"_ZTSSt18_Rb_tree_node_base", !42, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!42 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!43 = !{!"_ZTSSt6vectorIPN6Assimp7ObjFile4MeshESaIS3_EE", !44, i64 0}
!44 = !{!"_ZTSSt12_Vector_baseIPN6Assimp7ObjFile4MeshESaIS3_EE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIPN6Assimp7ObjFile4MeshESaIS3_EE12_Vector_implE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIPN6Assimp7ObjFile4MeshESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!47 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN6Assimp7ObjFile8MaterialESt4lessIS5_ESaISt4pairIKS5_S9_EEE", !48, i64 0}
!48 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_PN6Assimp7ObjFile8MaterialEESt10_Select1stISC_ESt4lessIS5_ESaISC_EE", !49, i64 0}
!49 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_PN6Assimp7ObjFile8MaterialEESt10_Select1stISC_ESt4lessIS5_ESaISC_EE13_Rb_tree_implISG_Lb1EEE", !38, i64 0, !40, i64 8}
!50 = !{!51, !51, i64 0}
!51 = !{!"bool", !7, i64 0}
!52 = !{i8 0, i8 2}
!53 = !{}
!54 = !{i64 0, i64 8, !5}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }

@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@_ZN6AssimpL14DiffuseTextureE = external hidden constant [7 x i8], align 1
@_ZN6AssimpL14AmbientTextureE = external hidden constant [7 x i8], align 1
@_ZN6AssimpL15SpecularTextureE = external hidden constant [7 x i8], align 1
@_ZN6AssimpL20DisplacementTexture1E = external hidden constant [9 x i8], align 1
@_ZN6AssimpL20DisplacementTexture2E = external hidden constant [5 x i8], align 1
@_ZN6AssimpL14OpacityTextureE = external hidden constant [6 x i8], align 1
@_ZN6AssimpL16EmissiveTexture1E = external hidden constant [13 x i8], align 1
@_ZN6AssimpL16EmissiveTexture2E = external hidden constant [7 x i8], align 1
@_ZN6AssimpL12BumpTexture1E = external hidden constant [9 x i8], align 1
@_ZN6AssimpL12BumpTexture2E = external hidden constant [5 x i8], align 1
@_ZN6AssimpL15NormalTextureV1E = external hidden constant [7 x i8], align 1
@_ZN6AssimpL15NormalTextureV2E = external hidden constant [5 x i8], align 1
@_ZN6AssimpL17ReflectionTextureE = external hidden constant [5 x i8], align 1
@_ZN6AssimpL18SpecularityTextureE = external hidden constant [7 x i8], align 1
@_ZN6AssimpL16RoughnessTextureE = external hidden constant [7 x i8], align 1
@_ZN6AssimpL15MetallicTextureE = external hidden constant [7 x i8], align 1
@_ZN6AssimpL12SheenTextureE = external hidden constant [7 x i8], align 1
@_ZN6AssimpL10RMATextureE = external hidden constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [42 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8aiString3SetEPKc(ptr noundef nonnull align 4 dereferenceable(1028), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp18ObjFileMtlImporter10getTextureEv(ptr noundef nonnull align 8 dereferenceable(88) %0) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca i8, align 1
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %8 = getelementptr inbounds i8, ptr %0, i64 48
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %9, i64 64
  %11 = load ptr, ptr %10, align 8, !tbaa !19
  %12 = icmp eq ptr %11, null
  br i1 %12, label %13, label %32

13:                                               ; preds = %1
  %14 = tail call noalias noundef nonnull dereferenceable(20712) ptr @_Znwm(i64 noundef 20712) #8
  invoke void @_ZN6Assimp7ObjFile8MaterialC2Ev(ptr noundef nonnull align 4 dereferenceable(20712) %14)
          to label %15 unwind label %25

15:                                               ; preds = %13
  %16 = load ptr, ptr %8, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %16, i64 64
  store ptr %14, ptr %17, align 8, !tbaa !19
  tail call void @_ZN8aiString3SetEPKc(ptr noundef nonnull align 4 dereferenceable(1028) %14, ptr noundef nonnull @.str.6)
  %18 = load ptr, ptr %8, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 64
  %20 = load ptr, ptr %19, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %21 unwind label %27

21:                                               ; preds = %15
  %22 = getelementptr inbounds i8, ptr %18, i64 328
  %23 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN6Assimp7ObjFile8MaterialESt4lessIS5_ESaISt4pairIKS5_S9_EEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %22, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %24 unwind label %29

24:                                               ; preds = %21
  store ptr %20, ptr %23, align 8, !tbaa !48
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #7
  br label %32

25:                                               ; preds = %13
  %26 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %14, i64 noundef 20712) #9
  br label %155

27:                                               ; preds = %15
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %31

29:                                               ; preds = %21
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  br label %31

31:                                               ; preds = %29, %27
  %.pn = phi { ptr, i32 } [ %30, %29 ], [ %28, %27 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #7
  br label %155

32:                                               ; preds = %24, %1
  %33 = getelementptr inbounds i8, ptr %0, i64 32
  %34 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPcSt6vectorIcSaIcEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #7
  %35 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef nonnull %34, ptr noundef nonnull @_ZN6AssimpL14DiffuseTextureE, i32 noundef 6)
  %.not = icmp eq i32 %35, 0
  br i1 %.not, label %36, label %41

36:                                               ; preds = %32
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 64
  %39 = load ptr, ptr %38, align 8, !tbaa !19
  %40 = getelementptr inbounds i8, ptr %39, i64 1028
  store ptr %40, ptr %2, align 8, !tbaa !48
  store i32 0, ptr %3, align 4, !tbaa !49
  br label %137

41:                                               ; preds = %32
  %42 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef nonnull %34, ptr noundef nonnull @_ZN6AssimpL14AmbientTextureE, i32 noundef 6)
  %.not26 = icmp eq i32 %42, 0
  br i1 %.not26, label %43, label %48

43:                                               ; preds = %41
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i64 64
  %46 = load ptr, ptr %45, align 8, !tbaa !19
  %47 = getelementptr inbounds i8, ptr %46, i64 3084
  store ptr %47, ptr %2, align 8, !tbaa !48
  store i32 2, ptr %3, align 4, !tbaa !49
  br label %137

48:                                               ; preds = %41
  %49 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef nonnull %34, ptr noundef nonnull @_ZN6AssimpL15SpecularTextureE, i32 noundef 6)
  %.not27 = icmp eq i32 %49, 0
  br i1 %.not27, label %50, label %55

50:                                               ; preds = %48
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %51, i64 64
  %53 = load ptr, ptr %52, align 8, !tbaa !19
  %54 = getelementptr inbounds i8, ptr %53, i64 2056
  store ptr %54, ptr %2, align 8, !tbaa !48
  store i32 1, ptr %3, align 4, !tbaa !49
  br label %137

55:                                               ; preds = %48
  %56 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef nonnull %34, ptr noundef nonnull @_ZN6AssimpL20DisplacementTexture1E, i32 noundef 8)
  %.not28 = icmp eq i32 %56, 0
  br i1 %.not28, label %59, label %57

57:                                               ; preds = %55
  %58 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef nonnull %34, ptr noundef nonnull @_ZN6AssimpL20DisplacementTexture2E, i32 noundef 4)
  %.not29 = icmp eq i32 %58, 0
  br i1 %.not29, label %59, label %64

59:                                               ; preds = %57, %55
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i64 64
  %62 = load ptr, ptr %61, align 8, !tbaa !19
  %63 = getelementptr inbounds i8, ptr %62, i64 15420
  store ptr %63, ptr %2, align 8, !tbaa !48
  store i32 15, ptr %3, align 4, !tbaa !49
  br label %137

64:                                               ; preds = %57
  %65 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef nonnull %34, ptr noundef nonnull @_ZN6AssimpL14OpacityTextureE, i32 noundef 5)
  %.not30 = icmp eq i32 %65, 0
  br i1 %.not30, label %66, label %71

66:                                               ; preds = %64
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %67, i64 64
  %69 = load ptr, ptr %68, align 8, !tbaa !19
  %70 = getelementptr inbounds i8, ptr %69, i64 14392
  store ptr %70, ptr %2, align 8, !tbaa !48
  store i32 14, ptr %3, align 4, !tbaa !49
  br label %137

71:                                               ; preds = %64
  %72 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef nonnull %34, ptr noundef nonnull @_ZN6AssimpL16EmissiveTexture1E, i32 noundef 12)
  %.not31 = icmp eq i32 %72, 0
  br i1 %.not31, label %75, label %73

73:                                               ; preds = %71
  %74 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef nonnull %34, ptr noundef nonnull @_ZN6AssimpL16EmissiveTexture2E, i32 noundef 6)
  %.not32 = icmp eq i32 %74, 0
  br i1 %.not32, label %75, label %80

75:                                               ; preds = %73, %71
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %76, i64 64
  %78 = load ptr, ptr %77, align 8, !tbaa !19
  %79 = getelementptr inbounds i8, ptr %78, i64 4112
  store ptr %79, ptr %2, align 8, !tbaa !48
  store i32 3, ptr %3, align 4, !tbaa !49
  br label %137

80:                                               ; preds = %73
  %81 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef nonnull %34, ptr noundef nonnull @_ZN6AssimpL12BumpTexture1E, i32 noundef 8)
  %.not33 = icmp eq i32 %81, 0
  br i1 %.not33, label %84, label %82

82:                                               ; preds = %80
  %83 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef nonnull %34, ptr noundef nonnull @_ZN6AssimpL12BumpTexture2E, i32 noundef 4)
  %.not34 = icmp eq i32 %83, 0
  br i1 %.not34, label %84, label %89

84:                                               ; preds = %82, %80
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = getelementptr inbounds i8, ptr %85, i64 64
  %87 = load ptr, ptr %86, align 8, !tbaa !19
  %88 = getelementptr inbounds i8, ptr %87, i64 5140
  store ptr %88, ptr %2, align 8, !tbaa !48
  store i32 4, ptr %3, align 4, !tbaa !49
  br label %137

89:                                               ; preds = %82
  %90 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef nonnull %34, ptr noundef nonnull @_ZN6AssimpL15NormalTextureV1E, i32 noundef 6)
  %.not35 = icmp eq i32 %90, 0
  br i1 %.not35, label %93, label %91

91:                                               ; preds = %89
  %92 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef nonnull %34, ptr noundef nonnull @_ZN6AssimpL15NormalTextureV2E, i32 noundef 4)
  %.not36 = icmp eq i32 %92, 0
  br i1 %.not36, label %93, label %98

93:                                               ; preds = %91, %89
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = getelementptr inbounds i8, ptr %94, i64 64
  %96 = load ptr, ptr %95, align 8, !tbaa !19
  %97 = getelementptr inbounds i8, ptr %96, i64 6168
  store ptr %97, ptr %2, align 8, !tbaa !48
  store i32 5, ptr %3, align 4, !tbaa !49
  br label %137

98:                                               ; preds = %91
  %99 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef nonnull %34, ptr noundef nonnull @_ZN6AssimpL17ReflectionTextureE, i32 noundef 4)
  %.not37 = icmp eq i32 %99, 0
  br i1 %.not37, label %154, label %100

100:                                              ; preds = %98
  %101 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef nonnull %34, ptr noundef nonnull @_ZN6AssimpL18SpecularityTextureE, i32 noundef 6)
  %.not38 = icmp eq i32 %101, 0
  br i1 %.not38, label %102, label %107

102:                                              ; preds = %100
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = getelementptr inbounds i8, ptr %103, i64 64
  %105 = load ptr, ptr %104, align 8, !tbaa !19
  %106 = getelementptr inbounds i8, ptr %105, i64 13364
  store ptr %106, ptr %2, align 8, !tbaa !48
  store i32 13, ptr %3, align 4, !tbaa !49
  br label %137

107:                                              ; preds = %100
  %108 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef nonnull %34, ptr noundef nonnull @_ZN6AssimpL16RoughnessTextureE, i32 noundef 6)
  %.not39 = icmp eq i32 %108, 0
  br i1 %.not39, label %109, label %114

109:                                              ; preds = %107
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = getelementptr inbounds i8, ptr %110, i64 64
  %112 = load ptr, ptr %111, align 8, !tbaa !19
  %113 = getelementptr inbounds i8, ptr %112, i64 16448
  store ptr %113, ptr %2, align 8, !tbaa !48
  store i32 16, ptr %3, align 4, !tbaa !49
  br label %137

114:                                              ; preds = %107
  %115 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef nonnull %34, ptr noundef nonnull @_ZN6AssimpL15MetallicTextureE, i32 noundef 6)
  %.not40 = icmp eq i32 %115, 0
  br i1 %.not40, label %116, label %121

116:                                              ; preds = %114
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = getelementptr inbounds i8, ptr %117, i64 64
  %119 = load ptr, ptr %118, align 8, !tbaa !19
  %120 = getelementptr inbounds i8, ptr %119, i64 17476
  store ptr %120, ptr %2, align 8, !tbaa !48
  store i32 17, ptr %3, align 4, !tbaa !49
  br label %137

121:                                              ; preds = %114
  %122 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef nonnull %34, ptr noundef nonnull @_ZN6AssimpL12SheenTextureE, i32 noundef 6)
  %.not41 = icmp eq i32 %122, 0
  br i1 %.not41, label %123, label %128

123:                                              ; preds = %121
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = getelementptr inbounds i8, ptr %124, i64 64
  %126 = load ptr, ptr %125, align 8, !tbaa !19
  %127 = getelementptr inbounds i8, ptr %126, i64 18504
  store ptr %127, ptr %2, align 8, !tbaa !48
  store i32 18, ptr %3, align 4, !tbaa !49
  br label %137

128:                                              ; preds = %121
  %129 = call noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef nonnull %34, ptr noundef nonnull @_ZN6AssimpL10RMATextureE, i32 noundef 6)
  %.not42 = icmp eq i32 %129, 0
  br i1 %.not42, label %130, label %135

130:                                              ; preds = %128
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = getelementptr inbounds i8, ptr %131, i64 64
  %133 = load ptr, ptr %132, align 8, !tbaa !19
  %134 = getelementptr inbounds i8, ptr %133, i64 19532
  store ptr %134, ptr %2, align 8, !tbaa !48
  store i32 19, ptr %3, align 4, !tbaa !49
  br label %137

135:                                              ; preds = %128
  %136 = call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  call void @_ZN6Assimp6Logger5errorEPKc(ptr noundef nonnull align 8 dereferenceable(12) %136, ptr noundef nonnull @.str.7)
  br label %154

137:                                              ; preds = %43, %59, %75, %93, %102, %116, %130, %123, %109, %84, %66, %50, %36
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #7
  store i8 0, ptr %6, align 1, !tbaa !50
  call void @_ZN6Assimp18ObjFileMtlImporter16getTextureOptionERbRiRP8aiString(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %138 = load i8, ptr %6, align 1, !tbaa !50, !range !52, !noundef !53
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = getelementptr inbounds i8, ptr %139, i64 64
  %141 = load ptr, ptr %140, align 8, !tbaa !19
  %142 = getelementptr inbounds i8, ptr %141, i64 20560
  %143 = load i32, ptr %3, align 4, !tbaa !49
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [20 x i8], ptr %142, i64 0, i64 %144
  store i8 %138, ptr %145, align 1, !tbaa !50
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  %.sroa.01.0.copyload = load ptr, ptr %33, align 8, !tbaa !48
  %146 = getelementptr inbounds i8, ptr %0, i64 40
  %.sroa.0.0.copyload = load ptr, ptr %146, align 8, !tbaa !48
  %147 = invoke ptr @_ZN6Assimp7getNameIN9__gnu_cxx17__normal_iteratorIPcSt6vectorIcSaIcEEEEEET_S8_S8_RNSt7__cxx1112basic_stringIcSt11char_traitsIcES5_EE(ptr %.sroa.01.0.copyload, ptr %.sroa.0.0.copyload, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %148 unwind label %151

148:                                              ; preds = %137
  store ptr %147, ptr %33, align 8, !tbaa !48
  %149 = load ptr, ptr %2, align 8, !tbaa !48
  %.not45 = icmp eq ptr %149, null
  br i1 %.not45, label %153, label %150

150:                                              ; preds = %148
  call void @_ZN8aiString3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 4 dereferenceable(1028) %149, ptr noundef nonnull align 8 dereferenceable(32) %7)
  br label %153

151:                                              ; preds = %137
  %152 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  br label %155

153:                                              ; preds = %150, %148
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  br label %154

154:                                              ; preds = %98, %153, %135
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  ret void

155:                                              ; preds = %151, %31, %25
  %.pn43 = phi { ptr, i32 } [ %152, %151 ], [ %.pn, %31 ], [ %26, %25 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  resume { ptr, i32 } %.pn43
}

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8aiString3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 4 dereferenceable(1028), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN6Assimp7ObjFile8MaterialESt4lessIS5_ESaISt4pairIKS5_S9_EEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN6Assimp15ASSIMP_strincmpEPKcS1_j(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

declare noundef ptr @_ZN6Assimp13DefaultLogger3getEv() local_unnamed_addr #6

declare void @_ZN6Assimp6Logger5errorEPKc(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Assimp18ObjFileMtlImporter16getTextureOptionERbRiRP8aiString(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZN6Assimp7getNameIN9__gnu_cxx17__normal_iteratorIPcSt6vectorIcSaIcEEEEEET_S8_S8_RNSt7__cxx1112basic_stringIcSt11char_traitsIcES5_EE(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !9, i64 48}
!6 = !{!"_ZTSN6Assimp18ObjFileMtlImporterE", !7, i64 0, !13, i64 32, !13, i64 40, !9, i64 48, !14, i64 56, !15, i64 64}
!7 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !8, i64 0, !12, i64 8, !10, i64 16}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"_ZTSN9__gnu_cxx17__normal_iteratorIPcSt6vectorIcSaIcEEEE", !9, i64 0}
!14 = !{!"int", !10, i64 0}
!15 = !{!"_ZTSSt6vectorIcSaIcEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!19 = !{!20, !9, i64 64}
!20 = !{!"_ZTSN6Assimp7ObjFile5ModelE", !7, i64 0, !21, i64 32, !9, i64 56, !9, i64 64, !9, i64 72, !25, i64 80, !29, i64 104, !29, i64 128, !29, i64 152, !33, i64 176, !9, i64 224, !7, i64 232, !29, i64 264, !14, i64 288, !9, i64 296, !41, i64 304, !45, i64 328}
!21 = !{!"_ZTSSt6vectorIPN6Assimp7ObjFile6ObjectESaIS3_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIPN6Assimp7ObjFile6ObjectESaIS3_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIPN6Assimp7ObjFile6ObjectESaIS3_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIPN6Assimp7ObjFile6ObjectESaIS3_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!25 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!29 = !{!"_ZTSSt6vectorI10aiVector3tIfESaIS1_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseI10aiVector3tIfESaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseI10aiVector3tIfESaIS1_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseI10aiVector3tIfESaIS1_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!33 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPSt6vectorIjSaIjEESt4lessIS5_ESaISt4pairIKS5_S9_EEE", !34, i64 0}
!34 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_PSt6vectorIjSaIjEEESt10_Select1stISC_ESt4lessIS5_ESaISC_EE", !35, i64 0}
!35 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_PSt6vectorIjSaIjEEESt10_Select1stISC_ESt4lessIS5_ESaISC_EE13_Rb_tree_implISG_Lb1EEE", !36, i64 0, !38, i64 8}
!36 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !37, i64 0}
!37 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!38 = !{!"_ZTSSt15_Rb_tree_header", !39, i64 0, !12, i64 32}
!39 = !{!"_ZTSSt18_Rb_tree_node_base", !40, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!40 = !{!"_ZTSSt14_Rb_tree_color", !10, i64 0}
!41 = !{!"_ZTSSt6vectorIPN6Assimp7ObjFile4MeshESaIS3_EE", !42, i64 0}
!42 = !{!"_ZTSSt12_Vector_baseIPN6Assimp7ObjFile4MeshESaIS3_EE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIPN6Assimp7ObjFile4MeshESaIS3_EE12_Vector_implE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIPN6Assimp7ObjFile4MeshESaIS3_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!45 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN6Assimp7ObjFile8MaterialESt4lessIS5_ESaISt4pairIKS5_S9_EEE", !46, i64 0}
!46 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_PN6Assimp7ObjFile8MaterialEESt10_Select1stISC_ESt4lessIS5_ESaISC_EE", !47, i64 0}
!47 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_PN6Assimp7ObjFile8MaterialEESt10_Select1stISC_ESt4lessIS5_ESaISC_EE13_Rb_tree_implISG_Lb1EEE", !36, i64 0, !38, i64 8}
!48 = !{!9, !9, i64 0}
!49 = !{!14, !14, i64 0}
!50 = !{!51, !51, i64 0}
!51 = !{!"bool", !10, i64 0}
!52 = !{i8 0, i8 2}
!53 = !{}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass