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

; 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::unique_ptr.50" = type { %"struct.std::__uniq_ptr_data.51" }
%"struct.std::__uniq_ptr_data.51" = type { %"class.std::__uniq_ptr_impl.52" }
%"class.std::__uniq_ptr_impl.52" = type { %"class.std::tuple.53" }
%"class.std::tuple.53" = type { %"struct.std::_Tuple_impl.54" }
%"struct.std::_Tuple_impl.54" = type { %"struct.std::_Head_base.57" }
%"struct.std::_Head_base.57" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.63" = type { ptr }
%"struct.Assimp::ObjFile::Model" = type { %"class.std::__cxx11::basic_string", %"class.std::vector.5", ptr, ptr, ptr, %"class.std::vector.0", %"class.std::vector.26", %"class.std::vector.26", %"class.std::vector.26", %"class.std::map", ptr, %"class.std::__cxx11::basic_string", %"class.std::vector.26", i32, ptr, %"class.std::vector.34", %"class.std::map.39" }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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::__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::vector.26" = type { %"struct.std::_Vector_base.27" }
%"struct.std::_Vector_base.27" = 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.34" = type { %"struct.std::_Vector_base.35" }
%"struct.std::_Vector_base.35" = 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.39" = type { %"class.std::_Rb_tree.40" }
%"class.std::_Rb_tree.40" = 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::Mesh" = type <{ %"class.std::__cxx11::basic_string", %"class.std::vector.58", ptr, i32, [8 x i32], i32, i8, [7 x i8] }>
%"class.std::vector.58" = type { %"struct.std::_Vector_base.59" }
%"struct.std::_Vector_base.59" = type { %"struct.std::_Vector_base<Assimp::ObjFile::Face *, std::allocator<Assimp::ObjFile::Face *>>::_Vector_impl" }
%"struct.std::_Vector_base<Assimp::ObjFile::Face *, std::allocator<Assimp::ObjFile::Face *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Assimp::ObjFile::Face *, std::allocator<Assimp::ObjFile::Face *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Assimp::ObjFile::Face *, std::allocator<Assimp::ObjFile::Face *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.aiMesh = type { i32, i32, i32, ptr, ptr, ptr, ptr, [8 x ptr], [8 x ptr], [8 x i32], ptr, i32, ptr, i32, %struct.aiString, i32, ptr, i32, %struct.aiAABB, ptr }
%struct.aiString = type { i32, [1024 x i8] }
%struct.aiAABB = type { %class.aiVector3t, %class.aiVector3t }
%class.aiVector3t = type { float, float, float }
%"struct.Assimp::ObjFile::Face" = type { i32, %"class.std::vector.10", %"class.std::vector.10", %"class.std::vector.10", ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.aiFace = type { i32, ptr }

@.str.14 = external hidden unnamed_addr constant [122 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [18 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #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)) #1 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp15ObjFileImporter14createTopologyEPKNS_7ObjFile5ModelEPKNS1_6ObjectEj(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.50") align 8 %0, ptr noundef nonnull align 8 dereferenceable(136) %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #5 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i1, align 1
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.63", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.63", align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i64, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i64, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca i32, align 4
  store ptr %0, ptr %6, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  %31 = load ptr, ptr %7, align 8
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = icmp ne ptr null, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %5
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str.18, ptr noundef @.str.14, i32 noundef 315)
  br label %35

35:                                               ; preds = %34, %5
  %36 = phi i1 [ true, %5 ], [ false, %34 ]
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = icmp eq ptr null, %37
  br i1 %38, label %39, label %40

39:                                               ; preds = %35
  call void @_ZNSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEC2IS2_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr null) #7
  br label %342

40:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.Assimp::ObjFile::Model", ptr %41, i32 0, i32 15
  %43 = load i32, ptr %10, align 4, !tbaa !9
  %44 = zext i32 %43 to i64
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPN6Assimp7ObjFile4MeshESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %44) #7
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  store ptr %46, ptr %11, align 8, !tbaa !5
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = icmp ne ptr %47, null
  br i1 %48, label %50, label %49

49:                                               ; preds = %40
  call void @_ZNSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEC2IS2_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr null) #7
  store i32 1, ptr %12, align 4
  br label %341

50:                                               ; preds = %40
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.Assimp::ObjFile::Mesh", ptr %51, i32 0, i32 1
  %53 = call noundef zeroext i1 @_ZNKSt6vectorIPN6Assimp7ObjFile4FaceESaIS3_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #7
  br i1 %53, label %54, label %55

54:                                               ; preds = %50
  call void @_ZNSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEC2IS2_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr null) #7
  store i32 1, ptr %12, align 4
  br label %341

55:                                               ; preds = %50
  store i1 false, ptr %13, align 1
  %56 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 1320) #8
  call void @_ZN6aiMeshC2Ev(ptr noundef nonnull align 8 dereferenceable(1320) %56) #7
  call void @_ZNSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEC2IS2_vEEPS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef %56) #7
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.Assimp::ObjFile::Mesh", ptr %57, i32 0, i32 0
  %59 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %58) #7
  br i1 %59, label %70, label %60

60:                                               ; preds = %55
  %61 = call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  %62 = getelementptr inbounds %struct.aiMesh, ptr %61, i32 0, i32 14
  %63 = load ptr, ptr %11, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.Assimp::ObjFile::Mesh", ptr %63, i32 0, i32 0
  invoke void @_ZN8aiString3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 4 dereferenceable(1028) %62, ptr noundef nonnull align 8 dereferenceable(32) %64)
          to label %65 unwind label %66

65:                                               ; preds = %60
  br label %70

66:                                               ; preds = %60
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %14, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %15, align 4
  br label %340

70:                                               ; preds = %65, %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %71

71:                                               ; preds = %142, %70
  %72 = load i64, ptr %16, align 8, !tbaa !11
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.Assimp::ObjFile::Mesh", ptr %73, i32 0, i32 1
  %75 = call noundef i64 @_ZNKSt6vectorIPN6Assimp7ObjFile4FaceESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %74) #7
  %76 = icmp ult i64 %72, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %71
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %145

78:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.Assimp::ObjFile::Mesh", ptr %79, i32 0, i32 1
  %81 = load i64, ptr %16, align 8, !tbaa !11
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN6Assimp7ObjFile4FaceESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef %81) #7
  %83 = load ptr, ptr %82, align 8, !tbaa !5
  store ptr %83, ptr %17, align 8, !tbaa !5
  %84 = load ptr, ptr %17, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.Assimp::ObjFile::Face", ptr %84, i32 0, i32 0
  %86 = load i32, ptr %85, align 8, !tbaa !13
  %87 = icmp eq i32 %86, 2
  br i1 %87, label %88, label %102

88:                                               ; preds = %78
  %89 = load ptr, ptr %17, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.Assimp::ObjFile::Face", ptr %89, i32 0, i32 1
  %91 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %90) #7
  %92 = sub i64 %91, 1
  %93 = trunc i64 %92 to i32
  %94 = call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  %95 = getelementptr inbounds %struct.aiMesh, ptr %94, i32 0, i32 2
  %96 = load i32, ptr %95, align 8, !tbaa !20
  %97 = add i32 %96, %93
  store i32 %97, ptr %95, align 8, !tbaa !20
  %98 = call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  %99 = getelementptr inbounds %struct.aiMesh, ptr %98, i32 0, i32 0
  %100 = load i32, ptr %99, align 8, !tbaa !27
  %101 = or i32 %100, 2
  store i32 %101, ptr %99, align 8, !tbaa !27
  br label %141

102:                                              ; preds = %78
  %103 = load ptr, ptr %17, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.Assimp::ObjFile::Face", ptr %103, i32 0, i32 0
  %105 = load i32, ptr %104, align 8, !tbaa !13
  %106 = icmp eq i32 %105, 1
  br i1 %106, label %107, label %120

107:                                              ; preds = %102
  %108 = load ptr, ptr %17, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.Assimp::ObjFile::Face", ptr %108, i32 0, i32 1
  %110 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %109) #7
  %111 = trunc i64 %110 to i32
  %112 = call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  %113 = getelementptr inbounds %struct.aiMesh, ptr %112, i32 0, i32 2
  %114 = load i32, ptr %113, align 8, !tbaa !20
  %115 = add i32 %114, %111
  store i32 %115, ptr %113, align 8, !tbaa !20
  %116 = call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  %117 = getelementptr inbounds %struct.aiMesh, ptr %116, i32 0, i32 0
  %118 = load i32, ptr %117, align 8, !tbaa !27
  %119 = or i32 %118, 1
  store i32 %119, ptr %117, align 8, !tbaa !27
  br label %140

120:                                              ; preds = %102
  %121 = call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  %122 = getelementptr inbounds %struct.aiMesh, ptr %121, i32 0, i32 2
  %123 = load i32, ptr %122, align 8, !tbaa !20
  %124 = add i32 %123, 1
  store i32 %124, ptr %122, align 8, !tbaa !20
  %125 = load ptr, ptr %17, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.Assimp::ObjFile::Face", ptr %125, i32 0, i32 1
  %127 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %126) #7
  %128 = icmp ugt i64 %127, 3
  br i1 %128, label %129, label %134

129:                                              ; preds = %120
  %130 = call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  %131 = getelementptr inbounds %struct.aiMesh, ptr %130, i32 0, i32 0
  %132 = load i32, ptr %131, align 8, !tbaa !27
  %133 = or i32 %132, 8
  store i32 %133, ptr %131, align 8, !tbaa !27
  br label %139

134:                                              ; preds = %120
  %135 = call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  %136 = getelementptr inbounds %struct.aiMesh, ptr %135, i32 0, i32 0
  %137 = load i32, ptr %136, align 8, !tbaa !27
  %138 = or i32 %137, 4
  store i32 %138, ptr %136, align 8, !tbaa !27
  br label %139

139:                                              ; preds = %134, %129
  br label %140

140:                                              ; preds = %139, %107
  br label %141

141:                                              ; preds = %140, %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %142

142:                                              ; preds = %141
  %143 = load i64, ptr %16, align 8, !tbaa !11
  %144 = add i64 %143, 1
  store i64 %144, ptr %16, align 8, !tbaa !11
  br label %71, !llvm.loop !28

145:                                              ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !9
  %146 = call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  %147 = getelementptr inbounds %struct.aiMesh, ptr %146, i32 0, i32 2
  %148 = load i32, ptr %147, align 8, !tbaa !20
  %149 = icmp ugt i32 %148, 0
  br i1 %149, label %150, label %329

150:                                              ; preds = %145
  %151 = call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  %152 = getelementptr inbounds %struct.aiMesh, ptr %151, i32 0, i32 2
  %153 = load i32, ptr %152, align 8, !tbaa !20
  %154 = zext i32 %153 to i64
  %155 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %154, i64 16)
  %156 = extractvalue { i64, i1 } %155, 1
  %157 = extractvalue { i64, i1 } %155, 0
  %158 = call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %157, i64 8)
  %159 = extractvalue { i64, i1 } %158, 1
  %160 = or i1 %156, %159
  %161 = extractvalue { i64, i1 } %158, 0
  %162 = select i1 %160, i64 -1, i64 %161
  %163 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %162) #8
          to label %164 unwind label %186

164:                                              ; preds = %150
  store i64 %154, ptr %163, align 16
  %165 = getelementptr inbounds i8, ptr %163, i64 8
  %166 = icmp eq i64 %154, 0
  br i1 %166, label %173, label %167

167:                                              ; preds = %164
  %168 = getelementptr inbounds %struct.aiFace, ptr %165, i64 %154
  br label %169

169:                                              ; preds = %169, %167
  %170 = phi ptr [ %165, %167 ], [ %171, %169 ]
  call void @_ZN6aiFaceC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %170) #7
  %171 = getelementptr inbounds %struct.aiFace, ptr %170, i64 1
  %172 = icmp eq ptr %171, %168
  br i1 %172, label %173, label %169

173:                                              ; preds = %169, %164
  %174 = call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  %175 = getelementptr inbounds %struct.aiMesh, ptr %174, i32 0, i32 10
  store ptr %165, ptr %175, align 8, !tbaa !30
  %176 = load ptr, ptr %11, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.Assimp::ObjFile::Mesh", ptr %176, i32 0, i32 5
  %178 = load i32, ptr %177, align 4, !tbaa !31
  %179 = icmp ne i32 %178, -1
  br i1 %179, label %180, label %190

180:                                              ; preds = %173
  %181 = load ptr, ptr %11, align 8, !tbaa !5
  %182 = getelementptr inbounds %"struct.Assimp::ObjFile::Mesh", ptr %181, i32 0, i32 5
  %183 = load i32, ptr %182, align 4, !tbaa !31
  %184 = call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  %185 = getelementptr inbounds %struct.aiMesh, ptr %184, i32 0, i32 13
  store i32 %183, ptr %185, align 8, !tbaa !40
  br label %190

186:                                              ; preds = %329, %150
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %14, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %15, align 4
  br label %337

190:                                              ; preds = %180, %173
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %191 = load ptr, ptr %11, align 8, !tbaa !5
  %192 = getelementptr inbounds %"struct.Assimp::ObjFile::Mesh", ptr %191, i32 0, i32 1
  store ptr %192, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %193 = load ptr, ptr %20, align 8, !tbaa !5
  %194 = call ptr @_ZNSt6vectorIPN6Assimp7ObjFile4FaceESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %193) #7
  %195 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.63", ptr %21, i32 0, i32 0
  store ptr %194, ptr %195, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %196 = load ptr, ptr %20, align 8, !tbaa !5
  %197 = call ptr @_ZNSt6vectorIPN6Assimp7ObjFile4FaceESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %196) #7
  %198 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.63", ptr %22, i32 0, i32 0
  store ptr %197, ptr %198, align 8
  br label %199

199:                                              ; preds = %325, %190
  %200 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN6Assimp7ObjFile4FaceESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  br i1 %200, label %202, label %201

201:                                              ; preds = %199
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %328

202:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN6Assimp7ObjFile4FaceESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  store ptr %203, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %204 = load ptr, ptr %23, align 8, !tbaa !5
  %205 = load ptr, ptr %204, align 8, !tbaa !5
  store ptr %205, ptr %24, align 8, !tbaa !5
  %206 = load ptr, ptr %24, align 8, !tbaa !5
  %207 = getelementptr inbounds %"struct.Assimp::ObjFile::Face", ptr %206, i32 0, i32 0
  %208 = load i32, ptr %207, align 8, !tbaa !13
  %209 = icmp eq i32 %208, 2
  br i1 %209, label %210, label %243

210:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  store i64 0, ptr %25, align 8, !tbaa !11
  br label %211

211:                                              ; preds = %235, %210
  %212 = load i64, ptr %25, align 8, !tbaa !11
  %213 = load ptr, ptr %24, align 8, !tbaa !5
  %214 = getelementptr inbounds %"struct.Assimp::ObjFile::Face", ptr %213, i32 0, i32 1
  %215 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %214) #7
  %216 = sub i64 %215, 1
  %217 = icmp ult i64 %212, %216
  br i1 %217, label %219, label %218

218:                                              ; preds = %211
  store i32 7, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %242

219:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %220 = call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  %221 = getelementptr inbounds %struct.aiMesh, ptr %220, i32 0, i32 10
  %222 = load ptr, ptr %221, align 8, !tbaa !30
  %223 = load i32, ptr %19, align 4, !tbaa !9
  %224 = add i32 %223, 1
  store i32 %224, ptr %19, align 4, !tbaa !9
  %225 = zext i32 %223 to i64
  %226 = getelementptr inbounds %struct.aiFace, ptr %222, i64 %225
  store ptr %226, ptr %26, align 8, !tbaa !5
  %227 = load ptr, ptr %26, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.aiFace, ptr %227, i32 0, i32 0
  store i32 2, ptr %228, align 8, !tbaa !41
  %229 = load i32, ptr %18, align 4, !tbaa !9
  %230 = add i32 %229, 2
  store i32 %230, ptr %18, align 4, !tbaa !9
  %231 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef 8) #8
          to label %232 unwind label %238

232:                                              ; preds = %219
  %233 = load ptr, ptr %26, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.aiFace, ptr %233, i32 0, i32 1
  store ptr %231, ptr %234, align 8, !tbaa !43
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %235

235:                                              ; preds = %232
  %236 = load i64, ptr %25, align 8, !tbaa !11
  %237 = add i64 %236, 1
  store i64 %237, ptr %25, align 8, !tbaa !11
  br label %211, !llvm.loop !44

238:                                              ; preds = %219
  %239 = landingpad { ptr, i32 }
          cleanup
  %240 = extractvalue { ptr, i32 } %239, 0
  store ptr %240, ptr %14, align 8
  %241 = extractvalue { ptr, i32 } %239, 1
  store i32 %241, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %327

242:                                              ; preds = %218
  store i32 6, ptr %12, align 4
  br label %319

243:                                              ; preds = %202
  %244 = load ptr, ptr %24, align 8, !tbaa !5
  %245 = getelementptr inbounds %"struct.Assimp::ObjFile::Face", ptr %244, i32 0, i32 0
  %246 = load i32, ptr %245, align 8, !tbaa !13
  %247 = icmp eq i32 %246, 1
  br i1 %247, label %248, label %280

248:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  store i64 0, ptr %27, align 8, !tbaa !11
  br label %249

249:                                              ; preds = %272, %248
  %250 = load i64, ptr %27, align 8, !tbaa !11
  %251 = load ptr, ptr %24, align 8, !tbaa !5
  %252 = getelementptr inbounds %"struct.Assimp::ObjFile::Face", ptr %251, i32 0, i32 1
  %253 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %252) #7
  %254 = icmp ult i64 %250, %253
  br i1 %254, label %256, label %255

255:                                              ; preds = %249
  store i32 10, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %279

256:                                              ; preds = %249
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %257 = call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  %258 = getelementptr inbounds %struct.aiMesh, ptr %257, i32 0, i32 10
  %259 = load ptr, ptr %258, align 8, !tbaa !30
  %260 = load i32, ptr %19, align 4, !tbaa !9
  %261 = add i32 %260, 1
  store i32 %261, ptr %19, align 4, !tbaa !9
  %262 = zext i32 %260 to i64
  %263 = getelementptr inbounds %struct.aiFace, ptr %259, i64 %262
  store ptr %263, ptr %28, align 8, !tbaa !5
  %264 = load ptr, ptr %28, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.aiFace, ptr %264, i32 0, i32 0
  store i32 1, ptr %265, align 8, !tbaa !41
  %266 = load i32, ptr %18, align 4, !tbaa !9
  %267 = add i32 %266, 1
  store i32 %267, ptr %18, align 4, !tbaa !9
  %268 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef 4) #8
          to label %269 unwind label %275

269:                                              ; preds = %256
  %270 = load ptr, ptr %28, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.aiFace, ptr %270, i32 0, i32 1
  store ptr %268, ptr %271, align 8, !tbaa !43
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %272

272:                                              ; preds = %269
  %273 = load i64, ptr %27, align 8, !tbaa !11
  %274 = add i64 %273, 1
  store i64 %274, ptr %27, align 8, !tbaa !11
  br label %249, !llvm.loop !45

275:                                              ; preds = %256
  %276 = landingpad { ptr, i32 }
          cleanup
  %277 = extractvalue { ptr, i32 } %276, 0
  store ptr %277, ptr %14, align 8
  %278 = extractvalue { ptr, i32 } %276, 1
  store i32 %278, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %327

279:                                              ; preds = %255
  store i32 6, ptr %12, align 4
  br label %319

280:                                              ; preds = %243
  br label %281

281:                                              ; preds = %280
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %282 = call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  %283 = getelementptr inbounds %struct.aiMesh, ptr %282, i32 0, i32 10
  %284 = load ptr, ptr %283, align 8, !tbaa !30
  %285 = load i32, ptr %19, align 4, !tbaa !9
  %286 = add i32 %285, 1
  store i32 %286, ptr %19, align 4, !tbaa !9
  %287 = zext i32 %285 to i64
  %288 = getelementptr inbounds %struct.aiFace, ptr %284, i64 %287
  store ptr %288, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %289 = load ptr, ptr %23, align 8, !tbaa !5
  %290 = load ptr, ptr %289, align 8, !tbaa !5
  %291 = getelementptr inbounds %"struct.Assimp::ObjFile::Face", ptr %290, i32 0, i32 1
  %292 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %291) #7
  %293 = trunc i64 %292 to i32
  store i32 %293, ptr %30, align 4, !tbaa !9
  %294 = load i32, ptr %30, align 4, !tbaa !9
  %295 = load ptr, ptr %29, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.aiFace, ptr %295, i32 0, i32 0
  store i32 %294, ptr %296, align 8, !tbaa !41
  %297 = load i32, ptr %18, align 4, !tbaa !9
  %298 = add i32 %297, %294
  store i32 %298, ptr %18, align 4, !tbaa !9
  %299 = load ptr, ptr %29, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.aiFace, ptr %299, i32 0, i32 0
  %301 = load i32, ptr %300, align 8, !tbaa !41
  %302 = icmp ugt i32 %301, 0
  br i1 %302, label %303, label %318

303:                                              ; preds = %281
  %304 = load i32, ptr %30, align 4, !tbaa !9
  %305 = zext i32 %304 to i64
  %306 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %305, i64 4)
  %307 = extractvalue { i64, i1 } %306, 1
  %308 = extractvalue { i64, i1 } %306, 0
  %309 = select i1 %307, i64 -1, i64 %308
  %310 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %309) #8
          to label %311 unwind label %314

311:                                              ; preds = %303
  %312 = load ptr, ptr %29, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.aiFace, ptr %312, i32 0, i32 1
  store ptr %310, ptr %313, align 8, !tbaa !43
  br label %318

314:                                              ; preds = %303
  %315 = landingpad { ptr, i32 }
          cleanup
  %316 = extractvalue { ptr, i32 } %315, 0
  store ptr %316, ptr %14, align 8
  %317 = extractvalue { ptr, i32 } %315, 1
  store i32 %317, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br label %327

318:                                              ; preds = %311, %281
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  store i32 0, ptr %12, align 4
  br label %319

319:                                              ; preds = %318, %279, %242
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  %320 = load i32, ptr %12, align 4
  switch i32 %320, label %322 [
    i32 0, label %321
  ]

321:                                              ; preds = %319
  store i32 0, ptr %12, align 4
  br label %322

322:                                              ; preds = %321, %319
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  %323 = load i32, ptr %12, align 4
  switch i32 %323, label %348 [
    i32 0, label %324
    i32 6, label %325
  ]

324:                                              ; preds = %322
  br label %325

325:                                              ; preds = %324, %322
  %326 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN6Assimp7ObjFile4FaceESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  br label %199

327:                                              ; preds = %314, %275, %238
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %337

328:                                              ; preds = %201
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %329

329:                                              ; preds = %328, %145
  %330 = load ptr, ptr %8, align 8, !tbaa !5
  %331 = load ptr, ptr %9, align 8, !tbaa !5
  %332 = load i32, ptr %10, align 4, !tbaa !9
  %333 = call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  %334 = load i32, ptr %18, align 4, !tbaa !9
  invoke void @_ZN6Assimp15ObjFileImporter17createVertexArrayEPKNS_7ObjFile5ModelEPKNS1_6ObjectEjP6aiMeshj(ptr noundef nonnull align 8 dereferenceable(136) %31, ptr noundef %330, ptr noundef %331, i32 noundef %332, ptr noundef %333, i32 noundef %334)
          to label %335 unwind label %186

335:                                              ; preds = %329
  store i1 true, ptr %13, align 1
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  %336 = load i1, ptr %13, align 1
  br i1 %336, label %339, label %338

337:                                              ; preds = %327, %186
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %340

338:                                              ; preds = %335
  call void @_ZNSt10unique_ptrI6aiMeshSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  br label %339

339:                                              ; preds = %338, %335
  br label %341

340:                                              ; preds = %337, %66
  call void @_ZNSt10unique_ptrI6aiMeshSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %343

341:                                              ; preds = %339, %54, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %342

342:                                              ; preds = %341, %39
  ret void

343:                                              ; preds = %340
  %344 = load ptr, ptr %14, align 8
  %345 = load i32, ptr %15, align 4
  %346 = insertvalue { ptr, i32 } poison, ptr %344, 0
  %347 = insertvalue { ptr, i32 } %346, i32 %345, 1
  resume { ptr, i32 } %347

348:                                              ; preds = %322
  unreachable
}

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Assimp15ObjFileImporter17createVertexArrayEPKNS_7ObjFile5ModelEPKNS1_6ObjectEjP6aiMeshj(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #5 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = { 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 #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTSN6Assimp7ObjFile4FaceE", !15, i64 0, !16, i64 8, !16, i64 32, !16, i64 56, !6, i64 80}
!15 = !{!"_ZTS15aiPrimitiveType", !7, i64 0}
!16 = !{!"_ZTSSt6vectorIjSaIjEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!21, !10, i64 8}
!21 = !{!"_ZTS6aiMesh", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !7, i64 48, !7, i64 112, !7, i64 176, !6, i64 208, !10, i64 216, !6, i64 224, !10, i64 232, !22, i64 236, !10, i64 1264, !6, i64 1272, !23, i64 1280, !24, i64 1284, !6, i64 1312}
!22 = !{!"_ZTS8aiString", !10, i64 0, !7, i64 4}
!23 = !{!"_ZTS16aiMorphingMethod", !7, i64 0}
!24 = !{!"_ZTS6aiAABB", !25, i64 0, !25, i64 12}
!25 = !{!"_ZTS10aiVector3tIfE", !26, i64 0, !26, i64 4, !26, i64 8}
!26 = !{!"float", !7, i64 0}
!27 = !{!21, !10, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!21, !6, i64 208}
!31 = !{!32, !10, i64 100}
!32 = !{!"_ZTSN6Assimp7ObjFile4MeshE", !33, i64 0, !35, i64 32, !6, i64 56, !10, i64 64, !7, i64 68, !10, i64 100, !39, i64 104}
!33 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !34, i64 0, !12, i64 8, !7, i64 16}
!34 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!35 = !{!"_ZTSSt6vectorIPN6Assimp7ObjFile4FaceESaIS3_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIPN6Assimp7ObjFile4FaceESaIS3_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIPN6Assimp7ObjFile4FaceESaIS3_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIPN6Assimp7ObjFile4FaceESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!39 = !{!"bool", !7, i64 0}
!40 = !{!21, !10, i64 232}
!41 = !{!42, !10, i64 0}
!42 = !{!"_ZTS6aiFace", !10, i64 0, !6, i64 8}
!43 = !{!42, !6, i64 8}
!44 = distinct !{!44, !29}
!45 = distinct !{!45, !29}


; 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::unique_ptr.50" = type { %"struct.std::__uniq_ptr_data.51" }
%"struct.std::__uniq_ptr_data.51" = type { %"class.std::__uniq_ptr_impl.52" }
%"class.std::__uniq_ptr_impl.52" = type { %"class.std::tuple.53" }
%"class.std::tuple.53" = type { %"struct.std::_Tuple_impl.54" }
%"struct.std::_Tuple_impl.54" = type { %"struct.std::_Head_base.57" }
%"struct.std::_Head_base.57" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.63" = type { ptr }
%struct.aiFace = type { i32, ptr }

@.str.14 = external hidden unnamed_addr constant [122 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [18 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #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 #1 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp15ObjFileImporter14createTopologyEPKNS_7ObjFile5ModelEPKNS1_6ObjectEj(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.50") align 8 %0, ptr noundef nonnull align 8 dereferenceable(136) %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.63", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.63", align 8
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %8, label %9

8:                                                ; preds = %5
  tail call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.14, i32 noundef 315)
  br label %9

9:                                                ; preds = %8, %5
  %10 = icmp eq ptr %3, null
  br i1 %10, label %.sink.split, label %11

11:                                               ; preds = %9
  %12 = getelementptr inbounds i8, ptr %2, i64 304
  %13 = zext i32 %4 to i64
  %14 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPN6Assimp7ObjFile4MeshESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %13) #6
  %15 = load ptr, ptr %14, align 8, !tbaa !5
  %.not75 = icmp eq ptr %15, null
  br i1 %.not75, label %.sink.split, label %16

16:                                               ; preds = %11
  %17 = getelementptr inbounds i8, ptr %15, i64 32
  %18 = tail call noundef zeroext i1 @_ZNKSt6vectorIPN6Assimp7ObjFile4FaceESaIS3_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  br i1 %18, label %.sink.split, label %19

19:                                               ; preds = %16
  %20 = tail call noalias noundef nonnull dereferenceable(1320) ptr @_Znwm(i64 noundef 1320) #7
  tail call void @_ZN6aiMeshC2Ev(ptr noundef nonnull align 8 dereferenceable(1320) %20) #6
  tail call void @_ZNSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEC2IS2_vEEPS0_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %20) #6
  %21 = tail call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br i1 %21, label %25, label %22

22:                                               ; preds = %19
  %23 = tail call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %24 = getelementptr inbounds i8, ptr %23, i64 236
  tail call void @_ZN8aiString3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 4 dereferenceable(1028) %24, ptr noundef nonnull align 8 dereferenceable(32) %15)
  br label %25

25:                                               ; preds = %22, %19
  %26 = tail call noundef i64 @_ZNKSt6vectorIPN6Assimp7ObjFile4FaceESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  %.not109 = icmp eq i64 %26, 0
  br i1 %.not109, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %70, %25
  %27 = tail call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  %29 = load i32, ptr %28, align 8, !tbaa !9
  %.not76 = icmp eq i32 %29, 0
  br i1 %.not76, label %165, label %74

.lr.ph:                                           ; preds = %25, %70
  %.06191 = phi i64 [ %71, %70 ], [ 0, %25 ]
  %30 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN6Assimp7ObjFile4FaceESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %.06191) #6
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  %32 = load i32, ptr %31, align 8, !tbaa !17
  switch i32 %32, label %56 [
    i32 2, label %33
    i32 1, label %45
  ]

33:                                               ; preds = %.lr.ph
  %34 = getelementptr inbounds i8, ptr %31, i64 8
  %35 = tail call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #6
  %36 = trunc i64 %35 to i32
  %37 = add i32 %36, -1
  %38 = tail call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %39 = getelementptr inbounds i8, ptr %38, i64 8
  %40 = load i32, ptr %39, align 8, !tbaa !9
  %41 = add i32 %37, %40
  store i32 %41, ptr %39, align 8, !tbaa !9
  %42 = tail call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %43 = load i32, ptr %42, align 8, !tbaa !24
  %44 = or i32 %43, 2
  store i32 %44, ptr %42, align 8, !tbaa !24
  br label %70

45:                                               ; preds = %.lr.ph
  %46 = getelementptr inbounds i8, ptr %31, i64 8
  %47 = tail call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #6
  %48 = trunc i64 %47 to i32
  %49 = tail call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %50 = getelementptr inbounds i8, ptr %49, i64 8
  %51 = load i32, ptr %50, align 8, !tbaa !9
  %52 = add i32 %51, %48
  store i32 %52, ptr %50, align 8, !tbaa !9
  %53 = tail call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %54 = load i32, ptr %53, align 8, !tbaa !24
  %55 = or i32 %54, 1
  store i32 %55, ptr %53, align 8, !tbaa !24
  br label %70

56:                                               ; preds = %.lr.ph
  %57 = tail call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %58 = getelementptr inbounds i8, ptr %57, i64 8
  %59 = load i32, ptr %58, align 8, !tbaa !9
  %60 = add i32 %59, 1
  store i32 %60, ptr %58, align 8, !tbaa !9
  %61 = getelementptr inbounds i8, ptr %31, i64 8
  %62 = tail call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #6
  %63 = icmp ugt i64 %62, 3
  %64 = tail call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %65 = load i32, ptr %64, align 8, !tbaa !24
  br i1 %63, label %66, label %68

66:                                               ; preds = %56
  %67 = or i32 %65, 8
  store i32 %67, ptr %64, align 8, !tbaa !24
  br label %70

68:                                               ; preds = %56
  %69 = or i32 %65, 4
  store i32 %69, ptr %64, align 8, !tbaa !24
  br label %70

70:                                               ; preds = %45, %68, %66, %33
  %71 = add nuw i64 %.06191, 1
  %72 = tail call noundef i64 @_ZNKSt6vectorIPN6Assimp7ObjFile4FaceESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  %73 = icmp ult i64 %71, %72
  br i1 %73, label %.lr.ph, label %._crit_edge, !llvm.loop !25

74:                                               ; preds = %._crit_edge
  %75 = tail call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %76 = getelementptr inbounds i8, ptr %75, i64 8
  %77 = load i32, ptr %76, align 8, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = shl nuw nsw i64 %78, 4
  %80 = or disjoint i64 %79, 8
  %81 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %80) #7
          to label %82 unwind label %98

82:                                               ; preds = %74
  store i64 %78, ptr %81, align 16
  %83 = getelementptr inbounds i8, ptr %81, i64 8
  %84 = icmp eq i32 %77, 0
  br i1 %84, label %.loopexit83, label %85

85:                                               ; preds = %82
  %86 = getelementptr inbounds %struct.aiFace, ptr %83, i64 %78
  br label %87

87:                                               ; preds = %87, %85
  %88 = phi ptr [ %83, %85 ], [ %89, %87 ]
  tail call void @_ZN6aiFaceC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %88) #6
  %89 = getelementptr inbounds i8, ptr %88, i64 16
  %90 = icmp eq ptr %89, %86
  br i1 %90, label %.loopexit83, label %87

.loopexit83:                                      ; preds = %87, %82
  %91 = tail call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %92 = getelementptr inbounds i8, ptr %91, i64 208
  store ptr %83, ptr %92, align 8, !tbaa !27
  %93 = getelementptr inbounds i8, ptr %15, i64 100
  %94 = load i32, ptr %93, align 4, !tbaa !28
  %.not77 = icmp eq i32 %94, -1
  br i1 %.not77, label %100, label %95

95:                                               ; preds = %.loopexit83
  %96 = tail call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %97 = getelementptr inbounds i8, ptr %96, i64 232
  store i32 %94, ptr %97, align 8, !tbaa !38
  br label %100

98:                                               ; preds = %165, %74
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %167

100:                                              ; preds = %95, %.loopexit83
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %101 = tail call ptr @_ZNSt6vectorIPN6Assimp7ObjFile4FaceESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  store ptr %101, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %102 = tail call ptr @_ZNSt6vectorIPN6Assimp7ObjFile4FaceESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  store ptr %102, ptr %7, align 8
  %103 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN6Assimp7ObjFile4FaceESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %103, label %.lr.ph106, label %._crit_edge107

._crit_edge107:                                   ; preds = %.loopexit, %100
  %.062.lcssa = phi i32 [ 0, %100 ], [ %.3, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %165

.lr.ph106:                                        ; preds = %100, %.loopexit
  %.062104 = phi i32 [ %.3, %.loopexit ], [ 0, %100 ]
  %.064103 = phi i32 [ %.367, %.loopexit ], [ 0, %100 ]
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN6Assimp7ObjFile4FaceESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %105 = load ptr, ptr %104, align 8, !tbaa !5
  %106 = load i32, ptr %105, align 8, !tbaa !17
  switch i32 %106, label %142 [
    i32 2, label %.preheader
    i32 1, label %.preheader81
  ]

.preheader81:                                     ; preds = %.lr.ph106
  %107 = getelementptr inbounds i8, ptr %105, i64 8
  %108 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %107) #6
  %.not110 = icmp eq i64 %108, 0
  br i1 %.not110, label %.loopexit, label %.lr.ph95

.preheader:                                       ; preds = %.lr.ph106
  %109 = getelementptr inbounds i8, ptr %105, i64 8
  %110 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %109) #6
  %.not111 = icmp eq i64 %110, 1
  br i1 %.not111, label %.loopexit, label %.lr.ph100

.lr.ph100:                                        ; preds = %.preheader, %117
  %.06099 = phi i64 [ %121, %117 ], [ 0, %.preheader ]
  %.16398 = phi i32 [ %118, %117 ], [ %.062104, %.preheader ]
  %.16597 = phi i32 [ %119, %117 ], [ %.064103, %.preheader ]
  %111 = call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %112 = getelementptr inbounds i8, ptr %111, i64 208
  %113 = load ptr, ptr %112, align 8, !tbaa !27
  %114 = zext i32 %.16597 to i64
  %115 = getelementptr inbounds %struct.aiFace, ptr %113, i64 %114
  store i32 2, ptr %115, align 8, !tbaa !39
  %116 = invoke noalias noundef nonnull dereferenceable(8) ptr @_Znam(i64 noundef 8) #7
          to label %117 unwind label %125

117:                                              ; preds = %.lr.ph100
  %118 = add i32 %.16398, 2
  %119 = add i32 %.16597, 1
  %120 = getelementptr inbounds i8, ptr %115, i64 8
  store ptr %116, ptr %120, align 8, !tbaa !41
  %121 = add nuw i64 %.06099, 1
  %122 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %109) #6
  %123 = add i64 %122, -1
  %124 = icmp ult i64 %121, %123
  br i1 %124, label %.lr.ph100, label %.loopexit, !llvm.loop !42

125:                                              ; preds = %.lr.ph100
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %164

.lr.ph95:                                         ; preds = %.preheader81, %133
  %.05794 = phi i64 [ %137, %133 ], [ 0, %.preheader81 ]
  %.293 = phi i32 [ %134, %133 ], [ %.062104, %.preheader81 ]
  %.26692 = phi i32 [ %135, %133 ], [ %.064103, %.preheader81 ]
  %127 = call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %128 = getelementptr inbounds i8, ptr %127, i64 208
  %129 = load ptr, ptr %128, align 8, !tbaa !27
  %130 = zext i32 %.26692 to i64
  %131 = getelementptr inbounds %struct.aiFace, ptr %129, i64 %130
  store i32 1, ptr %131, align 8, !tbaa !39
  %132 = invoke noalias noundef nonnull dereferenceable(4) ptr @_Znam(i64 noundef 4) #7
          to label %133 unwind label %140

133:                                              ; preds = %.lr.ph95
  %134 = add i32 %.293, 1
  %135 = add i32 %.26692, 1
  %136 = getelementptr inbounds i8, ptr %131, i64 8
  store ptr %132, ptr %136, align 8, !tbaa !41
  %137 = add nuw i64 %.05794, 1
  %138 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %107) #6
  %139 = icmp ult i64 %137, %138
  br i1 %139, label %.lr.ph95, label %.loopexit, !llvm.loop !43

140:                                              ; preds = %.lr.ph95
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %164

142:                                              ; preds = %.lr.ph106
  %143 = call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  %144 = getelementptr inbounds i8, ptr %143, i64 208
  %145 = load ptr, ptr %144, align 8, !tbaa !27
  %146 = add i32 %.064103, 1
  %147 = zext i32 %.064103 to i64
  %148 = getelementptr inbounds %struct.aiFace, ptr %145, i64 %147
  %149 = load ptr, ptr %104, align 8, !tbaa !5
  %150 = getelementptr inbounds i8, ptr %149, i64 8
  %151 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %150) #6
  %152 = trunc i64 %151 to i32
  store i32 %152, ptr %148, align 8, !tbaa !39
  %153 = add i32 %.062104, %152
  %.not78 = icmp eq i32 %152, 0
  br i1 %.not78, label %.loopexit, label %154

154:                                              ; preds = %142
  %155 = shl i64 %151, 2
  %156 = and i64 %155, 17179869180
  %157 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %156) #7
          to label %158 unwind label %160

158:                                              ; preds = %154
  %159 = getelementptr inbounds i8, ptr %148, i64 8
  store ptr %157, ptr %159, align 8, !tbaa !41
  br label %.loopexit

160:                                              ; preds = %154
  %161 = landingpad { ptr, i32 }
          cleanup
  br label %164

.loopexit:                                        ; preds = %133, %117, %.preheader81, %.preheader, %142, %158
  %.367 = phi i32 [ %146, %158 ], [ %146, %142 ], [ %.064103, %.preheader ], [ %.064103, %.preheader81 ], [ %119, %117 ], [ %135, %133 ]
  %.3 = phi i32 [ %153, %158 ], [ %153, %142 ], [ %.062104, %.preheader ], [ %.062104, %.preheader81 ], [ %118, %117 ], [ %134, %133 ]
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN6Assimp7ObjFile4FaceESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %163 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN6Assimp7ObjFile4FaceESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %163, label %.lr.ph106, label %._crit_edge107

164:                                              ; preds = %160, %140, %125
  %.pn = phi { ptr, i32 } [ %126, %125 ], [ %141, %140 ], [ %161, %160 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %167

165:                                              ; preds = %._crit_edge107, %._crit_edge
  %.4 = phi i32 [ %.062.lcssa, %._crit_edge107 ], [ 0, %._crit_edge ]
  %166 = call noundef ptr @_ZNKSt10unique_ptrI6aiMeshSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  invoke void @_ZN6Assimp15ObjFileImporter17createVertexArrayEPKNS_7ObjFile5ModelEPKNS1_6ObjectEjP6aiMeshj(ptr noundef nonnull align 8 dereferenceable(136) %1, ptr noundef %2, ptr noundef nonnull %3, i32 noundef %4, ptr noundef %166, i32 noundef %.4)
          to label %168 unwind label %98

167:                                              ; preds = %164, %98
  %.pn.pn = phi { ptr, i32 } [ %.pn, %164 ], [ %99, %98 ]
  call void @_ZNSt10unique_ptrI6aiMeshSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  resume { ptr, i32 } %.pn.pn

.sink.split:                                      ; preds = %16, %11, %9
  tail call void @_ZNSt10unique_ptrI6aiMeshSt14default_deleteIS0_EEC2IS2_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr null) #6
  br label %168

168:                                              ; preds = %.sink.split, %165
  ret void
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"_ZTS6aiMesh", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !7, i64 48, !7, i64 112, !7, i64 176, !6, i64 208, !11, i64 216, !6, i64 224, !11, i64 232, !12, i64 236, !11, i64 1264, !6, i64 1272, !13, i64 1280, !14, i64 1284, !6, i64 1312}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS8aiString", !11, i64 0, !7, i64 4}
!13 = !{!"_ZTS16aiMorphingMethod", !7, i64 0}
!14 = !{!"_ZTS6aiAABB", !15, i64 0, !15, i64 12}
!15 = !{!"_ZTS10aiVector3tIfE", !16, i64 0, !16, i64 4, !16, i64 8}
!16 = !{!"float", !7, i64 0}
!17 = !{!18, !19, i64 0}
!18 = !{!"_ZTSN6Assimp7ObjFile4FaceE", !19, i64 0, !20, i64 8, !20, i64 32, !20, i64 56, !6, i64 80}
!19 = !{!"_ZTS15aiPrimitiveType", !7, i64 0}
!20 = !{!"_ZTSSt6vectorIjSaIjEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!10, !11, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!10, !6, i64 208}
!28 = !{!29, !11, i64 100}
!29 = !{!"_ZTSN6Assimp7ObjFile4MeshE", !30, i64 0, !33, i64 32, !6, i64 56, !11, i64 64, !7, i64 68, !11, i64 100, !37, i64 104}
!30 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !31, i64 0, !32, i64 8, !7, i64 16}
!31 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!32 = !{!"long", !7, i64 0}
!33 = !{!"_ZTSSt6vectorIPN6Assimp7ObjFile4FaceESaIS3_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseIPN6Assimp7ObjFile4FaceESaIS3_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIPN6Assimp7ObjFile4FaceESaIS3_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIPN6Assimp7ObjFile4FaceESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!37 = !{!"bool", !7, i64 0}
!38 = !{!10, !11, i64 232}
!39 = !{!40, !11, i64 0}
!40 = !{!"_ZTS6aiFace", !11, i64 0, !6, i64 8}
!41 = !{!40, !6, i64 8}
!42 = distinct !{!42, !26}
!43 = distinct !{!43, !26}


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