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

; 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.aiMatrix4x4t = type { float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float }
%struct.aiNode = type { %struct.aiString, %class.aiMatrix4x4t, ptr, i32, ptr, i32, ptr, ptr }
%struct.aiString = type { i32, [1024 x i8] }
%"class.Assimp::ObjExporter" = type { %"class.std::__cxx11::basic_ostringstream", %"class.std::__cxx11::basic_ostringstream", %"class.std::__cxx11::basic_string", ptr, %"class.std::vector", %"class.std::vector", %"class.std::vector.3", %"class.std::vector.8", i8, %"class.Assimp::ObjExporter::indexMap", %"class.Assimp::ObjExporter::indexMap", %"class.Assimp::ObjExporter::indexMap.16", %"class.std::vector.23", %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_ostringstream" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<aiColor4t<float>, std::allocator<aiColor4t<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<aiColor4t<float>, std::allocator<aiColor4t<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<aiColor4t<float>, std::allocator<aiColor4t<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<aiColor4t<float>, std::allocator<aiColor4t<float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<Assimp::ObjExporter::vertexData, std::allocator<Assimp::ObjExporter::vertexData>>::_Vector_impl" }
%"struct.std::_Vector_base<Assimp::ObjExporter::vertexData, std::allocator<Assimp::ObjExporter::vertexData>>::_Vector_impl" = type { %"struct.std::_Vector_base<Assimp::ObjExporter::vertexData, std::allocator<Assimp::ObjExporter::vertexData>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Assimp::ObjExporter::vertexData, std::allocator<Assimp::ObjExporter::vertexData>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Assimp::ObjExporter::indexMap" = type { i32, %"class.std::map" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<aiVector3t<float>, std::pair<const aiVector3t<float>, int>, std::_Select1st<std::pair<const aiVector3t<float>, int>>, Assimp::ObjExporter::aiVectorCompare>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<aiVector3t<float>, std::pair<const aiVector3t<float>, int>, std::_Select1st<std::pair<const aiVector3t<float>, int>>, Assimp::ObjExporter::aiVectorCompare>::_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.Assimp::ObjExporter::indexMap.16" = type { i32, %"class.std::map.17" }
%"class.std::map.17" = type { %"class.std::_Rb_tree.18" }
%"class.std::_Rb_tree.18" = type { %"struct.std::_Rb_tree<Assimp::ObjExporter::vertexData, std::pair<const Assimp::ObjExporter::vertexData, int>, std::_Select1st<std::pair<const Assimp::ObjExporter::vertexData, int>>, Assimp::ObjExporter::vertexDataCompare>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<Assimp::ObjExporter::vertexData, std::pair<const Assimp::ObjExporter::vertexData, int>, std::_Select1st<std::pair<const Assimp::ObjExporter::vertexData, int>>, Assimp::ObjExporter::vertexDataCompare>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<Assimp::ObjExporter::MeshInstance, std::allocator<Assimp::ObjExporter::MeshInstance>>::_Vector_impl" }
%"struct.std::_Vector_base<Assimp::ObjExporter::MeshInstance, std::allocator<Assimp::ObjExporter::MeshInstance>>::_Vector_impl" = type { %"struct.std::_Vector_base<Assimp::ObjExporter::MeshInstance, std::allocator<Assimp::ObjExporter::MeshInstance>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Assimp::ObjExporter::MeshInstance, std::allocator<Assimp::ObjExporter::MeshInstance>>::_Vector_impl_data" = type { 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] }
%struct.aiScene = type { i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, ptr, %struct.aiString, i32, 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.aiAABB = type { %class.aiVector3t, %class.aiVector3t }
%class.aiVector3t = type { float, float, float }

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp11ObjExporter7AddNodeEPK6aiNodeRK12aiMatrix4x4tIfEb(ptr noundef nonnull align 8 dereferenceable(1120) %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(64) %2, i1 noundef zeroext %3) #1 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca ptr, align 8
  %10 = alloca %class.aiMatrix4x4t, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %14 = zext i1 %3 to i8
  store i8 %14, ptr %8, align 1, !tbaa !9
  %15 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #4
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.aiNode, ptr %17, i32 0, i32 1
  call void @_ZNK12aiMatrix4x4tIfEmlERKS0_(ptr dead_on_unwind writable sret(%class.aiMatrix4x4t) align 4 %10, ptr noundef nonnull align 4 dereferenceable(64) %16, ptr noundef nonnull align 4 dereferenceable(64) %18)
  store ptr %10, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  store ptr null, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %19

19:                                               ; preds = %84, %4
  %20 = load i32, ptr %12, align 4, !tbaa !11
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.aiNode, ptr %21, i32 0, i32 5
  %23 = load i32, ptr %22, align 8, !tbaa !13
  %24 = icmp ult i32 %20, %23
  br i1 %24, label %26, label %25

25:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %87

26:                                               ; preds = %19
  %27 = getelementptr inbounds %"class.Assimp::ObjExporter", ptr %15, i32 0, i32 3
  %28 = load ptr, ptr %27, align 8, !tbaa !18
  %29 = getelementptr inbounds %struct.aiScene, ptr %28, i32 0, i32 3
  %30 = load ptr, ptr %29, align 8, !tbaa !60
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.aiNode, ptr %31, i32 0, i32 6
  %33 = load ptr, ptr %32, align 8, !tbaa !62
  %34 = load i32, ptr %12, align 4, !tbaa !11
  %35 = zext i32 %34 to i64
  %36 = getelementptr inbounds i32, ptr %33, i64 %35
  %37 = load i32, ptr %36, align 4, !tbaa !11
  %38 = zext i32 %37 to i64
  %39 = getelementptr inbounds ptr, ptr %30, i64 %38
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  store ptr %40, ptr %11, align 8, !tbaa !5
  %41 = load ptr, ptr %11, align 8, !tbaa !5
  %42 = icmp ne ptr null, %41
  br i1 %42, label %43, label %63

43:                                               ; preds = %26
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.aiMesh, ptr %44, i32 0, i32 14
  %46 = getelementptr inbounds %"class.Assimp::ObjExporter", ptr %15, i32 0, i32 3
  %47 = load ptr, ptr %46, align 8, !tbaa !18
  %48 = getelementptr inbounds %struct.aiScene, ptr %47, i32 0, i32 3
  %49 = load ptr, ptr %48, align 8, !tbaa !60
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.aiNode, ptr %50, i32 0, i32 6
  %52 = load ptr, ptr %51, align 8, !tbaa !62
  %53 = load i32, ptr %12, align 4, !tbaa !11
  %54 = zext i32 %53 to i64
  %55 = getelementptr inbounds i32, ptr %52, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !11
  %57 = zext i32 %56 to i64
  %58 = getelementptr inbounds ptr, ptr %49, i64 %57
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = load i8, ptr %8, align 1, !tbaa !9, !range !63, !noundef !64
  %62 = trunc i8 %61 to i1
  call void @_ZN6Assimp11ObjExporter7AddMeshERK8aiStringPK6aiMeshRK12aiMatrix4x4tIfEb(ptr noundef nonnull align 8 dereferenceable(1120) %15, ptr noundef nonnull align 4 dereferenceable(1028) %45, ptr noundef %59, ptr noundef nonnull align 4 dereferenceable(64) %60, i1 noundef zeroext %62)
  br label %83

63:                                               ; preds = %26
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.aiNode, ptr %64, i32 0, i32 0
  %66 = getelementptr inbounds %"class.Assimp::ObjExporter", ptr %15, i32 0, i32 3
  %67 = load ptr, ptr %66, align 8, !tbaa !18
  %68 = getelementptr inbounds %struct.aiScene, ptr %67, i32 0, i32 3
  %69 = load ptr, ptr %68, align 8, !tbaa !60
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.aiNode, ptr %70, i32 0, i32 6
  %72 = load ptr, ptr %71, align 8, !tbaa !62
  %73 = load i32, ptr %12, align 4, !tbaa !11
  %74 = zext i32 %73 to i64
  %75 = getelementptr inbounds i32, ptr %72, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !11
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds ptr, ptr %69, i64 %77
  %79 = load ptr, ptr %78, align 8, !tbaa !5
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = load i8, ptr %8, align 1, !tbaa !9, !range !63, !noundef !64
  %82 = trunc i8 %81 to i1
  call void @_ZN6Assimp11ObjExporter7AddMeshERK8aiStringPK6aiMeshRK12aiMatrix4x4tIfEb(ptr noundef nonnull align 8 dereferenceable(1120) %15, ptr noundef nonnull align 4 dereferenceable(1028) %65, ptr noundef %79, ptr noundef nonnull align 4 dereferenceable(64) %80, i1 noundef zeroext %82)
  br label %83

83:                                               ; preds = %63, %43
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr %12, align 4, !tbaa !11
  %86 = add i32 %85, 1
  store i32 %86, ptr %12, align 4, !tbaa !11
  br label %19, !llvm.loop !65

87:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !11
  br label %88

88:                                               ; preds = %106, %87
  %89 = load i32, ptr %13, align 4, !tbaa !11
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.aiNode, ptr %90, i32 0, i32 3
  %92 = load i32, ptr %91, align 8, !tbaa !67
  %93 = icmp ult i32 %89, %92
  br i1 %93, label %95, label %94

94:                                               ; preds = %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %109

95:                                               ; preds = %88
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.aiNode, ptr %96, i32 0, i32 4
  %98 = load ptr, ptr %97, align 8, !tbaa !68
  %99 = load i32, ptr %13, align 4, !tbaa !11
  %100 = zext i32 %99 to i64
  %101 = getelementptr inbounds ptr, ptr %98, i64 %100
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = load i8, ptr %8, align 1, !tbaa !9, !range !63, !noundef !64
  %105 = trunc i8 %104 to i1
  call void @_ZN6Assimp11ObjExporter7AddNodeEPK6aiNodeRK12aiMatrix4x4tIfEb(ptr noundef nonnull align 8 dereferenceable(1120) %15, ptr noundef %102, ptr noundef nonnull align 4 dereferenceable(64) %103, i1 noundef zeroext %105)
  br label %106

106:                                              ; preds = %95
  %107 = load i32, ptr %13, align 4, !tbaa !11
  %108 = add i32 %107, 1
  store i32 %108, ptr %13, align 4, !tbaa !11
  br label %88, !llvm.loop !69

109:                                              ; preds = %94
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Assimp11ObjExporter7AddMeshERK8aiStringPK6aiMeshRK12aiMatrix4x4tIfEb(ptr noundef nonnull align 8 dereferenceable(1120), ptr noundef nonnull align 4 dereferenceable(1028), ptr noundef, ptr noundef nonnull align 4 dereferenceable(64), i1 noundef zeroext) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK12aiMatrix4x4tIfEmlERKS0_(ptr dead_on_unwind noalias writable sret(%class.aiMatrix4x4t) align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64)) #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { 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 #4 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 1120}
!14 = !{!"_ZTS6aiNode", !15, i64 0, !16, i64 1028, !6, i64 1096, !12, i64 1104, !6, i64 1112, !12, i64 1120, !6, i64 1128, !6, i64 1136}
!15 = !{!"_ZTS8aiString", !12, i64 0, !7, i64 4}
!16 = !{!"_ZTS12aiMatrix4x4tIfE", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12, !17, i64 16, !17, i64 20, !17, i64 24, !17, i64 28, !17, i64 32, !17, i64 36, !17, i64 40, !17, i64 44, !17, i64 48, !17, i64 52, !17, i64 56, !17, i64 60}
!17 = !{!"float", !7, i64 0}
!18 = !{!19, !6, i64 784}
!19 = !{!"_ZTSN6Assimp11ObjExporterE", !20, i64 0, !20, i64 376, !26, i64 752, !6, i64 784, !29, i64 792, !29, i64 816, !33, i64 840, !37, i64 864, !10, i64 888, !41, i64 896, !41, i64 952, !50, i64 1008, !56, i64 1064, !26, i64 1088}
!20 = !{!"_ZTSNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE", !21, i64 0, !22, i64 8}
!21 = !{!"_ZTSSo"}
!22 = !{!"_ZTSNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE", !23, i64 0, !25, i64 64, !26, i64 72}
!23 = !{!"_ZTSSt15basic_streambufIcSt11char_traitsIcEE", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !24, i64 56}
!24 = !{!"_ZTSSt6locale", !6, i64 0}
!25 = !{!"_ZTSSt13_Ios_Openmode", !7, i64 0}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !27, i64 0, !28, i64 8, !7, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!28 = !{!"long", !7, i64 0}
!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", !6, i64 0, !6, i64 8, !6, i64 16}
!33 = !{!"_ZTSSt6vectorI9aiColor4tIfESaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseI9aiColor4tIfESaIS1_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseI9aiColor4tIfESaIS1_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseI9aiColor4tIfESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!37 = !{!"_ZTSSt6vectorIN6Assimp11ObjExporter10vertexDataESaIS2_EE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseIN6Assimp11ObjExporter10vertexDataESaIS2_EE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIN6Assimp11ObjExporter10vertexDataESaIS2_EE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIN6Assimp11ObjExporter10vertexDataESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!41 = !{!"_ZTSN6Assimp11ObjExporter8indexMapI10aiVector3tIfENS0_15aiVectorCompareEEE", !12, i64 0, !42, i64 8}
!42 = !{!"_ZTSSt3mapI10aiVector3tIfEiN6Assimp11ObjExporter15aiVectorCompareESaISt4pairIKS1_iEEE", !43, i64 0}
!43 = !{!"_ZTSSt8_Rb_treeI10aiVector3tIfESt4pairIKS1_iESt10_Select1stIS4_EN6Assimp11ObjExporter15aiVectorCompareESaIS4_EE", !44, i64 0}
!44 = !{!"_ZTSNSt8_Rb_treeI10aiVector3tIfESt4pairIKS1_iESt10_Select1stIS4_EN6Assimp11ObjExporter15aiVectorCompareESaIS4_EE13_Rb_tree_implIS9_Lb1EEE", !45, i64 0, !47, i64 8}
!45 = !{!"_ZTSSt20_Rb_tree_key_compareIN6Assimp11ObjExporter15aiVectorCompareEE", !46, i64 0}
!46 = !{!"_ZTSN6Assimp11ObjExporter15aiVectorCompareE"}
!47 = !{!"_ZTSSt15_Rb_tree_header", !48, i64 0, !28, i64 32}
!48 = !{!"_ZTSSt18_Rb_tree_node_base", !49, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!49 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!50 = !{!"_ZTSN6Assimp11ObjExporter8indexMapINS0_10vertexDataENS0_17vertexDataCompareEEE", !12, i64 0, !51, i64 8}
!51 = !{!"_ZTSSt3mapIN6Assimp11ObjExporter10vertexDataEiNS1_17vertexDataCompareESaISt4pairIKS2_iEEE", !52, i64 0}
!52 = !{!"_ZTSSt8_Rb_treeIN6Assimp11ObjExporter10vertexDataESt4pairIKS2_iESt10_Select1stIS5_ENS1_17vertexDataCompareESaIS5_EE", !53, i64 0}
!53 = !{!"_ZTSNSt8_Rb_treeIN6Assimp11ObjExporter10vertexDataESt4pairIKS2_iESt10_Select1stIS5_ENS1_17vertexDataCompareESaIS5_EE13_Rb_tree_implIS8_Lb1EEE", !54, i64 0, !47, i64 8}
!54 = !{!"_ZTSSt20_Rb_tree_key_compareIN6Assimp11ObjExporter17vertexDataCompareEE", !55, i64 0}
!55 = !{!"_ZTSN6Assimp11ObjExporter17vertexDataCompareE"}
!56 = !{!"_ZTSSt6vectorIN6Assimp11ObjExporter12MeshInstanceESaIS2_EE", !57, i64 0}
!57 = !{!"_ZTSSt12_Vector_baseIN6Assimp11ObjExporter12MeshInstanceESaIS2_EE", !58, i64 0}
!58 = !{!"_ZTSNSt12_Vector_baseIN6Assimp11ObjExporter12MeshInstanceESaIS2_EE12_Vector_implE", !59, i64 0}
!59 = !{!"_ZTSNSt12_Vector_baseIN6Assimp11ObjExporter12MeshInstanceESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!60 = !{!61, !6, i64 24}
!61 = !{!"_ZTS7aiScene", !12, i64 0, !6, i64 8, !12, i64 16, !6, i64 24, !12, i64 32, !6, i64 40, !12, i64 48, !6, i64 56, !12, i64 64, !6, i64 72, !12, i64 80, !6, i64 88, !12, i64 96, !6, i64 104, !6, i64 112, !15, i64 120, !12, i64 1148, !6, i64 1152, !6, i64 1160}
!62 = !{!14, !6, i64 1128}
!63 = !{i8 0, i8 2}
!64 = !{}
!65 = distinct !{!65, !66}
!66 = !{!"llvm.loop.mustprogress"}
!67 = !{!14, !12, i64 1104}
!68 = !{!14, !6, i64 1112}
!69 = distinct !{!69, !66}


; 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.aiMatrix4x4t = type { float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float }

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

; 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 uwtable
define dso_local void @_ZN6Assimp11ObjExporter7AddNodeEPK6aiNodeRK12aiMatrix4x4tIfEb(ptr noundef nonnull align 8 dereferenceable(1120) %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(64) %2, i1 noundef zeroext %3) local_unnamed_addr #1 align 2 {
  %5 = alloca %class.aiMatrix4x4t, align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #4
  %6 = getelementptr inbounds i8, ptr %1, i64 1028
  call void @_ZNK12aiMatrix4x4tIfEmlERKS0_(ptr dead_on_unwind nonnull writable sret(%class.aiMatrix4x4t) align 4 %5, ptr noundef nonnull align 4 dereferenceable(64) %2, ptr noundef nonnull align 4 dereferenceable(64) %6)
  %7 = getelementptr inbounds i8, ptr %1, i64 1120
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %.not30 = icmp eq i32 %8, 0
  br i1 %.not30, label %.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %4
  %9 = getelementptr inbounds i8, ptr %0, i64 784
  %10 = getelementptr inbounds i8, ptr %1, i64 1128
  br label %14

.preheader:                                       ; preds = %27, %4
  %11 = getelementptr inbounds i8, ptr %1, i64 1104
  %12 = load i32, ptr %11, align 8, !tbaa !14
  %.not31 = icmp eq i32 %12, 0
  br i1 %.not31, label %._crit_edge, label %.lr.ph29

.lr.ph29:                                         ; preds = %.preheader
  %13 = getelementptr inbounds i8, ptr %1, i64 1112
  br label %31

14:                                               ; preds = %.lr.ph, %27
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %27 ]
  %15 = load ptr, ptr %9, align 8, !tbaa !15
  %16 = getelementptr inbounds i8, ptr %15, i64 24
  %17 = load ptr, ptr %16, align 8, !tbaa !58
  %18 = load ptr, ptr %10, align 8, !tbaa !60
  %19 = getelementptr inbounds i32, ptr %18, i64 %indvars.iv
  %20 = load i32, ptr %19, align 4, !tbaa !61
  %21 = zext i32 %20 to i64
  %22 = getelementptr inbounds ptr, ptr %17, i64 %21
  %23 = load ptr, ptr %22, align 8, !tbaa !62
  %.not = icmp eq ptr %23, null
  br i1 %.not, label %26, label %24

24:                                               ; preds = %14
  %25 = getelementptr inbounds i8, ptr %23, i64 236
  call void @_ZN6Assimp11ObjExporter7AddMeshERK8aiStringPK6aiMeshRK12aiMatrix4x4tIfEb(ptr noundef nonnull align 8 dereferenceable(1120) %0, ptr noundef nonnull align 4 dereferenceable(1028) %25, ptr noundef nonnull %23, ptr noundef nonnull align 4 dereferenceable(64) %5, i1 noundef zeroext %3)
  br label %27

26:                                               ; preds = %14
  call void @_ZN6Assimp11ObjExporter7AddMeshERK8aiStringPK6aiMeshRK12aiMatrix4x4tIfEb(ptr noundef nonnull align 8 dereferenceable(1120) %0, ptr noundef nonnull align 4 dereferenceable(1028) %1, ptr noundef null, ptr noundef nonnull align 4 dereferenceable(64) %5, i1 noundef zeroext %3)
  br label %27

27:                                               ; preds = %24, %26
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %28 = load i32, ptr %7, align 8, !tbaa !5
  %29 = zext i32 %28 to i64
  %30 = icmp ult i64 %indvars.iv.next, %29
  br i1 %30, label %14, label %.preheader, !llvm.loop !63

._crit_edge:                                      ; preds = %31, %.preheader
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #4
  ret void

31:                                               ; preds = %.lr.ph29, %31
  %indvars.iv33 = phi i64 [ 0, %.lr.ph29 ], [ %indvars.iv.next34, %31 ]
  %32 = load ptr, ptr %13, align 8, !tbaa !65
  %33 = getelementptr inbounds ptr, ptr %32, i64 %indvars.iv33
  %34 = load ptr, ptr %33, align 8, !tbaa !62
  call void @_ZN6Assimp11ObjExporter7AddNodeEPK6aiNodeRK12aiMatrix4x4tIfEb(ptr noundef nonnull align 8 dereferenceable(1120) %0, ptr noundef %34, ptr noundef nonnull align 4 dereferenceable(64) %5, i1 noundef zeroext %3)
  %indvars.iv.next34 = add nuw nsw i64 %indvars.iv33, 1
  %35 = load i32, ptr %11, align 8, !tbaa !14
  %36 = zext i32 %35 to i64
  %37 = icmp ult i64 %indvars.iv.next34, %36
  br i1 %37, label %31, label %._crit_edge, !llvm.loop !66
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Assimp11ObjExporter7AddMeshERK8aiStringPK6aiMeshRK12aiMatrix4x4tIfEb(ptr noundef nonnull align 8 dereferenceable(1120), ptr noundef nonnull align 4 dereferenceable(1028), ptr noundef, ptr noundef nonnull align 4 dereferenceable(64), i1 noundef zeroext) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK12aiMatrix4x4tIfEmlERKS0_(ptr dead_on_unwind noalias writable sret(%class.aiMatrix4x4t) align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { 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 #4 = { 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, !8, i64 1120}
!6 = !{!"_ZTS6aiNode", !7, i64 0, !11, i64 1028, !13, i64 1096, !8, i64 1104, !13, i64 1112, !8, i64 1120, !13, i64 1128, !13, i64 1136}
!7 = !{!"_ZTS8aiString", !8, i64 0, !9, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTS12aiMatrix4x4tIfE", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60}
!12 = !{!"float", !9, i64 0}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!6, !8, i64 1104}
!15 = !{!16, !13, i64 784}
!16 = !{!"_ZTSN6Assimp11ObjExporterE", !17, i64 0, !17, i64 376, !23, i64 752, !13, i64 784, !26, i64 792, !26, i64 816, !30, i64 840, !34, i64 864, !38, i64 888, !39, i64 896, !39, i64 952, !48, i64 1008, !54, i64 1064, !23, i64 1088}
!17 = !{!"_ZTSNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE", !18, i64 0, !19, i64 8}
!18 = !{!"_ZTSSo"}
!19 = !{!"_ZTSNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE", !20, i64 0, !22, i64 64, !23, i64 72}
!20 = !{!"_ZTSSt15basic_streambufIcSt11char_traitsIcEE", !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !21, i64 56}
!21 = !{!"_ZTSSt6locale", !13, i64 0}
!22 = !{!"_ZTSSt13_Ios_Openmode", !9, i64 0}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !24, i64 0, !25, i64 8, !9, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!25 = !{!"long", !9, i64 0}
!26 = !{!"_ZTSSt6vectorI10aiVector3tIfESaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseI10aiVector3tIfESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseI10aiVector3tIfESaIS1_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseI10aiVector3tIfESaIS1_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!30 = !{!"_ZTSSt6vectorI9aiColor4tIfESaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseI9aiColor4tIfESaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseI9aiColor4tIfESaIS1_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseI9aiColor4tIfESaIS1_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!34 = !{!"_ZTSSt6vectorIN6Assimp11ObjExporter10vertexDataESaIS2_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseIN6Assimp11ObjExporter10vertexDataESaIS2_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIN6Assimp11ObjExporter10vertexDataESaIS2_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIN6Assimp11ObjExporter10vertexDataESaIS2_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!38 = !{!"bool", !9, i64 0}
!39 = !{!"_ZTSN6Assimp11ObjExporter8indexMapI10aiVector3tIfENS0_15aiVectorCompareEEE", !8, i64 0, !40, i64 8}
!40 = !{!"_ZTSSt3mapI10aiVector3tIfEiN6Assimp11ObjExporter15aiVectorCompareESaISt4pairIKS1_iEEE", !41, i64 0}
!41 = !{!"_ZTSSt8_Rb_treeI10aiVector3tIfESt4pairIKS1_iESt10_Select1stIS4_EN6Assimp11ObjExporter15aiVectorCompareESaIS4_EE", !42, i64 0}
!42 = !{!"_ZTSNSt8_Rb_treeI10aiVector3tIfESt4pairIKS1_iESt10_Select1stIS4_EN6Assimp11ObjExporter15aiVectorCompareESaIS4_EE13_Rb_tree_implIS9_Lb1EEE", !43, i64 0, !45, i64 8}
!43 = !{!"_ZTSSt20_Rb_tree_key_compareIN6Assimp11ObjExporter15aiVectorCompareEE", !44, i64 0}
!44 = !{!"_ZTSN6Assimp11ObjExporter15aiVectorCompareE"}
!45 = !{!"_ZTSSt15_Rb_tree_header", !46, i64 0, !25, i64 32}
!46 = !{!"_ZTSSt18_Rb_tree_node_base", !47, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!47 = !{!"_ZTSSt14_Rb_tree_color", !9, i64 0}
!48 = !{!"_ZTSN6Assimp11ObjExporter8indexMapINS0_10vertexDataENS0_17vertexDataCompareEEE", !8, i64 0, !49, i64 8}
!49 = !{!"_ZTSSt3mapIN6Assimp11ObjExporter10vertexDataEiNS1_17vertexDataCompareESaISt4pairIKS2_iEEE", !50, i64 0}
!50 = !{!"_ZTSSt8_Rb_treeIN6Assimp11ObjExporter10vertexDataESt4pairIKS2_iESt10_Select1stIS5_ENS1_17vertexDataCompareESaIS5_EE", !51, i64 0}
!51 = !{!"_ZTSNSt8_Rb_treeIN6Assimp11ObjExporter10vertexDataESt4pairIKS2_iESt10_Select1stIS5_ENS1_17vertexDataCompareESaIS5_EE13_Rb_tree_implIS8_Lb1EEE", !52, i64 0, !45, i64 8}
!52 = !{!"_ZTSSt20_Rb_tree_key_compareIN6Assimp11ObjExporter17vertexDataCompareEE", !53, i64 0}
!53 = !{!"_ZTSN6Assimp11ObjExporter17vertexDataCompareE"}
!54 = !{!"_ZTSSt6vectorIN6Assimp11ObjExporter12MeshInstanceESaIS2_EE", !55, i64 0}
!55 = !{!"_ZTSSt12_Vector_baseIN6Assimp11ObjExporter12MeshInstanceESaIS2_EE", !56, i64 0}
!56 = !{!"_ZTSNSt12_Vector_baseIN6Assimp11ObjExporter12MeshInstanceESaIS2_EE12_Vector_implE", !57, i64 0}
!57 = !{!"_ZTSNSt12_Vector_baseIN6Assimp11ObjExporter12MeshInstanceESaIS2_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!58 = !{!59, !13, i64 24}
!59 = !{!"_ZTS7aiScene", !8, i64 0, !13, i64 8, !8, i64 16, !13, i64 24, !8, i64 32, !13, i64 40, !8, i64 48, !13, i64 56, !8, i64 64, !13, i64 72, !8, i64 80, !13, i64 88, !8, i64 96, !13, i64 104, !13, i64 112, !7, i64 120, !8, i64 1148, !13, i64 1152, !13, i64 1160}
!60 = !{!6, !13, i64 1128}
!61 = !{!8, !8, i64 0}
!62 = !{!13, !13, i64 0}
!63 = distinct !{!63, !64}
!64 = !{!"llvm.loop.mustprogress"}
!65 = !{!6, !13, i64 1112}
!66 = distinct !{!66, !64}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass