; LLVM IR from ThePhysicsGuys/Physics3D :: engine/io (import)

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

%"struct.P3D::Graphics::ExtendedTriangleMesh" = type { %"class.P3D::TriangleMesh", %"class.std::shared_ptr", %"class.std::shared_ptr.14", %"class.std::shared_ptr", %"class.std::shared_ptr" }
%"class.P3D::TriangleMesh" = type { %"class.P3D::MeshPrototype" }
%"class.P3D::MeshPrototype" = type { %"class.P3D::UniqueAlignedPointer", %"class.P3D::UniqueAlignedPointer.13", i32, i32 }
%"class.P3D::UniqueAlignedPointer" = type { ptr }
%"class.P3D::UniqueAlignedPointer.13" = type { ptr }
%"class.std::shared_ptr.14" = type { %"class.std::__shared_ptr.15" }
%"class.std::__shared_ptr.15" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"struct.P3D::Triangle" = type { %union.anon.35 }
%union.anon.35 = type { %struct.anon.36 }
%struct.anon.36 = type { i32, i32, i32 }
%"struct.P3D::Vector.10" = type { %union.anon.11 }
%union.anon.11 = type { [3 x float] }
%"struct.P3D::Vector.27" = type { %union.anon.28 }
%union.anon.28 = type { [2 x float] }
%"struct.P3D::Face" = type { [3 x %"struct.P3D::Vertex"] }
%"struct.P3D::Vertex" = type { i32, %"class.std::optional", %"class.std::optional" }
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload_base.base", [3 x i8] }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<int>::_Storage", i8 }>
%"union.std::_Optional_payload_base<int>::_Storage" = type { i32 }
%struct.anon.29 = type { float, float }
%struct.anon.12 = 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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D35reorderWithoutSharedVerticesSupportERKSt6vectorINS_6VectorIfLm3EEESaIS2_EES6_RKS0_INS1_IfLm2EEESaIS7_EERKS0_INS_4FaceESaISC_EE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::ExtendedTriangleMesh") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4) #3 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 ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca %"struct.P3D::Triangle", align 4
  %22 = alloca %"struct.P3D::Vector.10", align 4
  %23 = alloca %"struct.P3D::Vector.10", align 4
  %24 = alloca %"struct.P3D::Vector.10", align 4
  %25 = alloca { <2 x float>, float }, align 8
  %26 = alloca %"struct.P3D::Vector.10", align 4
  %27 = alloca { <2 x float>, float }, align 8
  %28 = alloca %"struct.P3D::Vector.27", align 4
  %29 = alloca %"struct.P3D::Vector.27", align 4
  %30 = alloca float, align 4
  %31 = alloca %"struct.P3D::Vector.10", align 4
  %32 = alloca { <2 x float>, float }, align 8
  %33 = alloca %"struct.P3D::Vector.10", align 4
  %34 = alloca { <2 x float>, float }, align 8
  %35 = alloca i32, align 4
  %36 = alloca ptr, align 8
  %37 = alloca i1, align 1
  %38 = alloca %"class.std::shared_ptr", align 8
  %39 = alloca ptr, align 8
  %40 = alloca i32, align 4
  %41 = alloca %"class.std::shared_ptr.14", align 8
  %42 = alloca %"class.std::shared_ptr", align 8
  %43 = alloca %"class.std::shared_ptr", align 8
  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 ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = call noundef i64 @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %44) #9
  %46 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %45, i64 12)
  %47 = extractvalue { i64, i1 } %46, 1
  %48 = extractvalue { i64, i1 } %46, 0
  %49 = select i1 %47, i64 -1, i64 %48
  %50 = call noalias noundef nonnull ptr @_Znam(i64 noundef %49) #10
  %51 = icmp eq i64 %45, 0
  br i1 %51, label %58, label %52

52:                                               ; preds = %5
  %53 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %50, i64 %45
  br label %54

54:                                               ; preds = %54, %52
  %55 = phi ptr [ %50, %52 ], [ %56, %54 ]
  call void @_ZN3P3D6VectorIfLm3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %55) #9
  %56 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %55, i64 1
  %57 = icmp eq ptr %56, %53
  br i1 %57, label %58, label %54

58:                                               ; preds = %54, %5
  store ptr %50, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %59

59:                                               ; preds = %72, %58
  %60 = load i64, ptr %12, align 8, !tbaa !9
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = call noundef i64 @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #9
  %63 = icmp ult i64 %60, %62
  br i1 %63, label %65, label %64

64:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  br label %75

65:                                               ; preds = %59
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = load i64, ptr %12, align 8, !tbaa !9
  %68 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef %67) #9
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  %70 = load i64, ptr %12, align 8, !tbaa !9
  %71 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %69, i64 %70
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %71, ptr align 4 %68, i64 12, i1 false), !tbaa.struct !11
  br label %72

72:                                               ; preds = %65
  %73 = load i64, ptr %12, align 8, !tbaa !9
  %74 = add i64 %73, 1
  store i64 %74, ptr %12, align 8, !tbaa !9
  br label %59, !llvm.loop !13

75:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  store ptr null, ptr %13, align 8, !tbaa !5
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = call noundef zeroext i1 @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %76) #9
  br i1 %77, label %94, label %78

78:                                               ; preds = %75
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = call noundef i64 @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %79) #9
  %81 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %80, i64 12)
  %82 = extractvalue { i64, i1 } %81, 1
  %83 = extractvalue { i64, i1 } %81, 0
  %84 = select i1 %82, i64 -1, i64 %83
  %85 = call noalias noundef nonnull ptr @_Znam(i64 noundef %84) #10
  %86 = icmp eq i64 %80, 0
  br i1 %86, label %93, label %87

87:                                               ; preds = %78
  %88 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %85, i64 %80
  br label %89

89:                                               ; preds = %89, %87
  %90 = phi ptr [ %85, %87 ], [ %91, %89 ]
  call void @_ZN3P3D6VectorIfLm3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %90) #9
  %91 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %90, i64 1
  %92 = icmp eq ptr %91, %88
  br i1 %92, label %93, label %89

93:                                               ; preds = %89, %78
  store ptr %85, ptr %13, align 8, !tbaa !5
  br label %94

94:                                               ; preds = %93, %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  store ptr null, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  store ptr null, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  store ptr null, ptr %16, align 8, !tbaa !5
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = call noundef zeroext i1 @_ZNKSt6vectorIN3P3D6VectorIfLm2EEESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #9
  br i1 %96, label %143, label %97

97:                                               ; preds = %94
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = call noundef i64 @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %98) #9
  %100 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %99, i64 8)
  %101 = extractvalue { i64, i1 } %100, 1
  %102 = extractvalue { i64, i1 } %100, 0
  %103 = select i1 %101, i64 -1, i64 %102
  %104 = call noalias noundef nonnull ptr @_Znam(i64 noundef %103) #10
  %105 = icmp eq i64 %99, 0
  br i1 %105, label %112, label %106

106:                                              ; preds = %97
  %107 = getelementptr inbounds %"struct.P3D::Vector.27", ptr %104, i64 %99
  br label %108

108:                                              ; preds = %108, %106
  %109 = phi ptr [ %104, %106 ], [ %110, %108 ]
  call void @_ZN3P3D6VectorIfLm2EEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %109) #9
  %110 = getelementptr inbounds %"struct.P3D::Vector.27", ptr %109, i64 1
  %111 = icmp eq ptr %110, %107
  br i1 %111, label %112, label %108

112:                                              ; preds = %108, %97
  store ptr %104, ptr %14, align 8, !tbaa !5
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = call noundef i64 @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %113) #9
  %115 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %114, i64 12)
  %116 = extractvalue { i64, i1 } %115, 1
  %117 = extractvalue { i64, i1 } %115, 0
  %118 = select i1 %116, i64 -1, i64 %117
  %119 = call noalias noundef nonnull ptr @_Znam(i64 noundef %118) #10
  %120 = icmp eq i64 %114, 0
  br i1 %120, label %127, label %121

121:                                              ; preds = %112
  %122 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %119, i64 %114
  br label %123

123:                                              ; preds = %123, %121
  %124 = phi ptr [ %119, %121 ], [ %125, %123 ]
  call void @_ZN3P3D6VectorIfLm3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %124) #9
  %125 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %124, i64 1
  %126 = icmp eq ptr %125, %122
  br i1 %126, label %127, label %123

127:                                              ; preds = %123, %112
  store ptr %119, ptr %15, align 8, !tbaa !5
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = call noundef i64 @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %128) #9
  %130 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %129, i64 12)
  %131 = extractvalue { i64, i1 } %130, 1
  %132 = extractvalue { i64, i1 } %130, 0
  %133 = select i1 %131, i64 -1, i64 %132
  %134 = call noalias noundef nonnull ptr @_Znam(i64 noundef %133) #10
  %135 = icmp eq i64 %129, 0
  br i1 %135, label %142, label %136

136:                                              ; preds = %127
  %137 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %134, i64 %129
  br label %138

138:                                              ; preds = %138, %136
  %139 = phi ptr [ %134, %136 ], [ %140, %138 ]
  call void @_ZN3P3D6VectorIfLm3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %139) #9
  %140 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %139, i64 1
  %141 = icmp eq ptr %140, %137
  br i1 %141, label %142, label %138

142:                                              ; preds = %138, %127
  store ptr %134, ptr %16, align 8, !tbaa !5
  br label %143

143:                                              ; preds = %142, %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %144 = load ptr, ptr %10, align 8, !tbaa !5
  %145 = call noundef i64 @_ZNKSt6vectorIN3P3D4FaceESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %144) #9
  %146 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %145, i64 12)
  %147 = extractvalue { i64, i1 } %146, 1
  %148 = extractvalue { i64, i1 } %146, 0
  %149 = select i1 %147, i64 -1, i64 %148
  %150 = call noalias noundef nonnull ptr @_Znam(i64 noundef %149) #10
  store ptr %150, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %151

151:                                              ; preds = %469, %143
  %152 = load i64, ptr %18, align 8, !tbaa !9
  %153 = load ptr, ptr %10, align 8, !tbaa !5
  %154 = call noundef i64 @_ZNKSt6vectorIN3P3D4FaceESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %153) #9
  %155 = icmp ult i64 %152, %154
  br i1 %155, label %157, label %156

156:                                              ; preds = %151
  store i32 5, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  br label %472

157:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %158 = load ptr, ptr %10, align 8, !tbaa !5
  %159 = load i64, ptr %18, align 8, !tbaa !9
  %160 = call noundef nonnull align 4 dereferenceable(60) ptr @_ZNKSt6vectorIN3P3D4FaceESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %158, i64 noundef %159) #9
  store ptr %160, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #9
  %161 = getelementptr inbounds %"struct.P3D::Triangle", ptr %21, i32 0, i32 0
  %162 = getelementptr inbounds %struct.anon.36, ptr %161, i32 0, i32 0
  %163 = load ptr, ptr %20, align 8, !tbaa !5
  %164 = getelementptr inbounds %"struct.P3D::Face", ptr %163, i32 0, i32 0
  %165 = getelementptr inbounds [3 x %"struct.P3D::Vertex"], ptr %164, i64 0, i64 0
  %166 = getelementptr inbounds %"struct.P3D::Vertex", ptr %165, i32 0, i32 0
  %167 = load i32, ptr %166, align 4, !tbaa !15
  store i32 %167, ptr %162, align 4, !tbaa !23
  %168 = getelementptr inbounds %struct.anon.36, ptr %161, i32 0, i32 1
  %169 = load ptr, ptr %20, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.P3D::Face", ptr %169, i32 0, i32 0
  %171 = getelementptr inbounds [3 x %"struct.P3D::Vertex"], ptr %170, i64 0, i64 1
  %172 = getelementptr inbounds %"struct.P3D::Vertex", ptr %171, i32 0, i32 0
  %173 = load i32, ptr %172, align 4, !tbaa !15
  store i32 %173, ptr %168, align 4, !tbaa !25
  %174 = getelementptr inbounds %struct.anon.36, ptr %161, i32 0, i32 2
  %175 = load ptr, ptr %20, align 8, !tbaa !5
  %176 = getelementptr inbounds %"struct.P3D::Face", ptr %175, i32 0, i32 0
  %177 = getelementptr inbounds [3 x %"struct.P3D::Vertex"], ptr %176, i64 0, i64 2
  %178 = getelementptr inbounds %"struct.P3D::Vertex", ptr %177, i32 0, i32 0
  %179 = load i32, ptr %178, align 4, !tbaa !15
  store i32 %179, ptr %174, align 4, !tbaa !26
  %180 = load ptr, ptr %17, align 8, !tbaa !5
  %181 = load i64, ptr %18, align 8, !tbaa !9
  %182 = getelementptr inbounds %"struct.P3D::Triangle", ptr %180, i64 %181
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %182, ptr align 4 %21, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #9
  call void @_ZN3P3D6VectorIfLm3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %22) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #9
  call void @_ZN3P3D6VectorIfLm3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %23) #9
  %183 = load ptr, ptr %14, align 8, !tbaa !5
  %184 = icmp ne ptr %183, null
  br i1 %184, label %185, label %402

185:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #9
  %186 = load ptr, ptr %7, align 8, !tbaa !5
  %187 = load ptr, ptr %20, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.P3D::Face", ptr %187, i32 0, i32 0
  %189 = getelementptr inbounds [3 x %"struct.P3D::Vertex"], ptr %188, i64 0, i64 1
  %190 = getelementptr inbounds %"struct.P3D::Vertex", ptr %189, i32 0, i32 0
  %191 = load i32, ptr %190, align 4, !tbaa !15
  %192 = sext i32 %191 to i64
  %193 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %186, i64 noundef %192) #9
  %194 = load ptr, ptr %7, align 8, !tbaa !5
  %195 = load ptr, ptr %20, align 8, !tbaa !5
  %196 = getelementptr inbounds %"struct.P3D::Face", ptr %195, i32 0, i32 0
  %197 = getelementptr inbounds [3 x %"struct.P3D::Vertex"], ptr %196, i64 0, i64 0
  %198 = getelementptr inbounds %"struct.P3D::Vertex", ptr %197, i32 0, i32 0
  %199 = load i32, ptr %198, align 4, !tbaa !15
  %200 = sext i32 %199 to i64
  %201 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %194, i64 noundef %200) #9
  %202 = call { <2 x float>, float } @_ZN3P3DmiIffLm3EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %193, ptr noundef nonnull align 4 dereferenceable(12) %201) #9
  %203 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %24, i32 0, i32 0
  %204 = getelementptr inbounds %union.anon.11, ptr %203, i32 0, i32 0
  store { <2 x float>, float } %202, ptr %25, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %204, ptr align 8 %25, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %26) #9
  %205 = load ptr, ptr %7, align 8, !tbaa !5
  %206 = load ptr, ptr %20, align 8, !tbaa !5
  %207 = getelementptr inbounds %"struct.P3D::Face", ptr %206, i32 0, i32 0
  %208 = getelementptr inbounds [3 x %"struct.P3D::Vertex"], ptr %207, i64 0, i64 2
  %209 = getelementptr inbounds %"struct.P3D::Vertex", ptr %208, i32 0, i32 0
  %210 = load i32, ptr %209, align 4, !tbaa !15
  %211 = sext i32 %210 to i64
  %212 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %205, i64 noundef %211) #9
  %213 = load ptr, ptr %7, align 8, !tbaa !5
  %214 = load ptr, ptr %20, align 8, !tbaa !5
  %215 = getelementptr inbounds %"struct.P3D::Face", ptr %214, i32 0, i32 0
  %216 = getelementptr inbounds [3 x %"struct.P3D::Vertex"], ptr %215, i64 0, i64 0
  %217 = getelementptr inbounds %"struct.P3D::Vertex", ptr %216, i32 0, i32 0
  %218 = load i32, ptr %217, align 4, !tbaa !15
  %219 = sext i32 %218 to i64
  %220 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %213, i64 noundef %219) #9
  %221 = call { <2 x float>, float } @_ZN3P3DmiIffLm3EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %212, ptr noundef nonnull align 4 dereferenceable(12) %220) #9
  %222 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %26, i32 0, i32 0
  %223 = getelementptr inbounds %union.anon.11, ptr %222, i32 0, i32 0
  store { <2 x float>, float } %221, ptr %27, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %223, ptr align 8 %27, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  %224 = load ptr, ptr %9, align 8, !tbaa !5
  %225 = load ptr, ptr %20, align 8, !tbaa !5
  %226 = getelementptr inbounds %"struct.P3D::Face", ptr %225, i32 0, i32 0
  %227 = getelementptr inbounds [3 x %"struct.P3D::Vertex"], ptr %226, i64 0, i64 1
  %228 = getelementptr inbounds %"struct.P3D::Vertex", ptr %227, i32 0, i32 2
  %229 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKRSt8optionalIiEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %228) #9
  %230 = load i32, ptr %229, align 4, !tbaa !27
  %231 = sext i32 %230 to i64
  %232 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %224, i64 noundef %231) #9
  %233 = load ptr, ptr %9, align 8, !tbaa !5
  %234 = load ptr, ptr %20, align 8, !tbaa !5
  %235 = getelementptr inbounds %"struct.P3D::Face", ptr %234, i32 0, i32 0
  %236 = getelementptr inbounds [3 x %"struct.P3D::Vertex"], ptr %235, i64 0, i64 0
  %237 = getelementptr inbounds %"struct.P3D::Vertex", ptr %236, i32 0, i32 2
  %238 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKRSt8optionalIiEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %237) #9
  %239 = load i32, ptr %238, align 4, !tbaa !27
  %240 = sext i32 %239 to i64
  %241 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %233, i64 noundef %240) #9
  %242 = call <2 x float> @_ZN3P3DmiIffLm2EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(8) %232, ptr noundef nonnull align 4 dereferenceable(8) %241) #9
  %243 = getelementptr inbounds %"struct.P3D::Vector.27", ptr %28, i32 0, i32 0
  %244 = getelementptr inbounds %union.anon.28, ptr %243, i32 0, i32 0
  store <2 x float> %242, ptr %244, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  %245 = load ptr, ptr %9, align 8, !tbaa !5
  %246 = load ptr, ptr %20, align 8, !tbaa !5
  %247 = getelementptr inbounds %"struct.P3D::Face", ptr %246, i32 0, i32 0
  %248 = getelementptr inbounds [3 x %"struct.P3D::Vertex"], ptr %247, i64 0, i64 2
  %249 = getelementptr inbounds %"struct.P3D::Vertex", ptr %248, i32 0, i32 2
  %250 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKRSt8optionalIiEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %249) #9
  %251 = load i32, ptr %250, align 4, !tbaa !27
  %252 = sext i32 %251 to i64
  %253 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %245, i64 noundef %252) #9
  %254 = load ptr, ptr %9, align 8, !tbaa !5
  %255 = load ptr, ptr %20, align 8, !tbaa !5
  %256 = getelementptr inbounds %"struct.P3D::Face", ptr %255, i32 0, i32 0
  %257 = getelementptr inbounds [3 x %"struct.P3D::Vertex"], ptr %256, i64 0, i64 0
  %258 = getelementptr inbounds %"struct.P3D::Vertex", ptr %257, i32 0, i32 2
  %259 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKRSt8optionalIiEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %258) #9
  %260 = load i32, ptr %259, align 4, !tbaa !27
  %261 = sext i32 %260 to i64
  %262 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %254, i64 noundef %261) #9
  %263 = call <2 x float> @_ZN3P3DmiIffLm2EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(8) %253, ptr noundef nonnull align 4 dereferenceable(8) %262) #9
  %264 = getelementptr inbounds %"struct.P3D::Vector.27", ptr %29, i32 0, i32 0
  %265 = getelementptr inbounds %union.anon.28, ptr %264, i32 0, i32 0
  store <2 x float> %263, ptr %265, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  %266 = getelementptr inbounds %"struct.P3D::Vector.27", ptr %28, i32 0, i32 0
  %267 = getelementptr inbounds %struct.anon.29, ptr %266, i32 0, i32 0
  %268 = load float, ptr %267, align 4, !tbaa !12
  %269 = getelementptr inbounds %"struct.P3D::Vector.27", ptr %29, i32 0, i32 0
  %270 = getelementptr inbounds %struct.anon.29, ptr %269, i32 0, i32 1
  %271 = load float, ptr %270, align 4, !tbaa !12
  %272 = getelementptr inbounds %"struct.P3D::Vector.27", ptr %29, i32 0, i32 0
  %273 = getelementptr inbounds %struct.anon.29, ptr %272, i32 0, i32 0
  %274 = load float, ptr %273, align 4, !tbaa !12
  %275 = getelementptr inbounds %"struct.P3D::Vector.27", ptr %28, i32 0, i32 0
  %276 = getelementptr inbounds %struct.anon.29, ptr %275, i32 0, i32 1
  %277 = load float, ptr %276, align 4, !tbaa !12
  %278 = fmul float %274, %277
  %279 = fneg float %278
  %280 = call float @llvm.fmuladd.f32(float %268, float %271, float %279)
  %281 = fdiv float 1.000000e+00, %280
  store float %281, ptr %30, align 4, !tbaa !28
  %282 = load float, ptr %30, align 4, !tbaa !28
  %283 = getelementptr inbounds %"struct.P3D::Vector.27", ptr %29, i32 0, i32 0
  %284 = getelementptr inbounds %struct.anon.29, ptr %283, i32 0, i32 1
  %285 = load float, ptr %284, align 4, !tbaa !12
  %286 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %24, i32 0, i32 0
  %287 = getelementptr inbounds %struct.anon.12, ptr %286, i32 0, i32 0
  %288 = load float, ptr %287, align 4, !tbaa !12
  %289 = getelementptr inbounds %"struct.P3D::Vector.27", ptr %28, i32 0, i32 0
  %290 = getelementptr inbounds %struct.anon.29, ptr %289, i32 0, i32 1
  %291 = load float, ptr %290, align 4, !tbaa !12
  %292 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %26, i32 0, i32 0
  %293 = getelementptr inbounds %struct.anon.12, ptr %292, i32 0, i32 0
  %294 = load float, ptr %293, align 4, !tbaa !12
  %295 = fmul float %291, %294
  %296 = fneg float %295
  %297 = call float @llvm.fmuladd.f32(float %285, float %288, float %296)
  %298 = fmul float %282, %297
  %299 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %22, i32 0, i32 0
  %300 = getelementptr inbounds %struct.anon.12, ptr %299, i32 0, i32 0
  store float %298, ptr %300, align 4, !tbaa !12
  %301 = load float, ptr %30, align 4, !tbaa !28
  %302 = getelementptr inbounds %"struct.P3D::Vector.27", ptr %29, i32 0, i32 0
  %303 = getelementptr inbounds %struct.anon.29, ptr %302, i32 0, i32 1
  %304 = load float, ptr %303, align 4, !tbaa !12
  %305 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %24, i32 0, i32 0
  %306 = getelementptr inbounds %struct.anon.12, ptr %305, i32 0, i32 1
  %307 = load float, ptr %306, align 4, !tbaa !12
  %308 = getelementptr inbounds %"struct.P3D::Vector.27", ptr %28, i32 0, i32 0
  %309 = getelementptr inbounds %struct.anon.29, ptr %308, i32 0, i32 1
  %310 = load float, ptr %309, align 4, !tbaa !12
  %311 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %26, i32 0, i32 0
  %312 = getelementptr inbounds %struct.anon.12, ptr %311, i32 0, i32 1
  %313 = load float, ptr %312, align 4, !tbaa !12
  %314 = fmul float %310, %313
  %315 = fneg float %314
  %316 = call float @llvm.fmuladd.f32(float %304, float %307, float %315)
  %317 = fmul float %301, %316
  %318 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %22, i32 0, i32 0
  %319 = getelementptr inbounds %struct.anon.12, ptr %318, i32 0, i32 1
  store float %317, ptr %319, align 4, !tbaa !12
  %320 = load float, ptr %30, align 4, !tbaa !28
  %321 = getelementptr inbounds %"struct.P3D::Vector.27", ptr %29, i32 0, i32 0
  %322 = getelementptr inbounds %struct.anon.29, ptr %321, i32 0, i32 1
  %323 = load float, ptr %322, align 4, !tbaa !12
  %324 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %24, i32 0, i32 0
  %325 = getelementptr inbounds %struct.anon.12, ptr %324, i32 0, i32 2
  %326 = load float, ptr %325, align 4, !tbaa !12
  %327 = getelementptr inbounds %"struct.P3D::Vector.27", ptr %28, i32 0, i32 0
  %328 = getelementptr inbounds %struct.anon.29, ptr %327, i32 0, i32 1
  %329 = load float, ptr %328, align 4, !tbaa !12
  %330 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %26, i32 0, i32 0
  %331 = getelementptr inbounds %struct.anon.12, ptr %330, i32 0, i32 2
  %332 = load float, ptr %331, align 4, !tbaa !12
  %333 = fmul float %329, %332
  %334 = fneg float %333
  %335 = call float @llvm.fmuladd.f32(float %323, float %326, float %334)
  %336 = fmul float %320, %335
  %337 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %22, i32 0, i32 0
  %338 = getelementptr inbounds %struct.anon.12, ptr %337, i32 0, i32 2
  store float %336, ptr %338, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 12, ptr %31) #9
  %339 = call { <2 x float>, float } @_ZN3P3D9normalizeIfLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %22) #9
  %340 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %31, i32 0, i32 0
  %341 = getelementptr inbounds %union.anon.11, ptr %340, i32 0, i32 0
  store { <2 x float>, float } %339, ptr %32, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %341, ptr align 8 %32, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %31, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #9
  %342 = load float, ptr %30, align 4, !tbaa !28
  %343 = getelementptr inbounds %"struct.P3D::Vector.27", ptr %29, i32 0, i32 0
  %344 = getelementptr inbounds %struct.anon.29, ptr %343, i32 0, i32 0
  %345 = load float, ptr %344, align 4, !tbaa !12
  %346 = fneg float %345
  %347 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %24, i32 0, i32 0
  %348 = getelementptr inbounds %struct.anon.12, ptr %347, i32 0, i32 0
  %349 = load float, ptr %348, align 4, !tbaa !12
  %350 = getelementptr inbounds %"struct.P3D::Vector.27", ptr %28, i32 0, i32 0
  %351 = getelementptr inbounds %struct.anon.29, ptr %350, i32 0, i32 0
  %352 = load float, ptr %351, align 4, !tbaa !12
  %353 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %26, i32 0, i32 0
  %354 = getelementptr inbounds %struct.anon.12, ptr %353, i32 0, i32 0
  %355 = load float, ptr %354, align 4, !tbaa !12
  %356 = fmul float %352, %355
  %357 = call float @llvm.fmuladd.f32(float %346, float %349, float %356)
  %358 = fmul float %342, %357
  %359 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %23, i32 0, i32 0
  %360 = getelementptr inbounds %struct.anon.12, ptr %359, i32 0, i32 0
  store float %358, ptr %360, align 4, !tbaa !12
  %361 = load float, ptr %30, align 4, !tbaa !28
  %362 = getelementptr inbounds %"struct.P3D::Vector.27", ptr %29, i32 0, i32 0
  %363 = getelementptr inbounds %struct.anon.29, ptr %362, i32 0, i32 0
  %364 = load float, ptr %363, align 4, !tbaa !12
  %365 = fneg float %364
  %366 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %24, i32 0, i32 0
  %367 = getelementptr inbounds %struct.anon.12, ptr %366, i32 0, i32 1
  %368 = load float, ptr %367, align 4, !tbaa !12
  %369 = getelementptr inbounds %"struct.P3D::Vector.27", ptr %28, i32 0, i32 0
  %370 = getelementptr inbounds %struct.anon.29, ptr %369, i32 0, i32 0
  %371 = load float, ptr %370, align 4, !tbaa !12
  %372 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %26, i32 0, i32 0
  %373 = getelementptr inbounds %struct.anon.12, ptr %372, i32 0, i32 1
  %374 = load float, ptr %373, align 4, !tbaa !12
  %375 = fmul float %371, %374
  %376 = call float @llvm.fmuladd.f32(float %365, float %368, float %375)
  %377 = fmul float %361, %376
  %378 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %23, i32 0, i32 0
  %379 = getelementptr inbounds %struct.anon.12, ptr %378, i32 0, i32 1
  store float %377, ptr %379, align 4, !tbaa !12
  %380 = load float, ptr %30, align 4, !tbaa !28
  %381 = getelementptr inbounds %"struct.P3D::Vector.27", ptr %29, i32 0, i32 0
  %382 = getelementptr inbounds %struct.anon.29, ptr %381, i32 0, i32 0
  %383 = load float, ptr %382, align 4, !tbaa !12
  %384 = fneg float %383
  %385 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %24, i32 0, i32 0
  %386 = getelementptr inbounds %struct.anon.12, ptr %385, i32 0, i32 2
  %387 = load float, ptr %386, align 4, !tbaa !12
  %388 = getelementptr inbounds %"struct.P3D::Vector.27", ptr %28, i32 0, i32 0
  %389 = getelementptr inbounds %struct.anon.29, ptr %388, i32 0, i32 0
  %390 = load float, ptr %389, align 4, !tbaa !12
  %391 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %26, i32 0, i32 0
  %392 = getelementptr inbounds %struct.anon.12, ptr %391, i32 0, i32 2
  %393 = load float, ptr %392, align 4, !tbaa !12
  %394 = fmul float %390, %393
  %395 = call float @llvm.fmuladd.f32(float %384, float %387, float %394)
  %396 = fmul float %380, %395
  %397 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %23, i32 0, i32 0
  %398 = getelementptr inbounds %struct.anon.12, ptr %397, i32 0, i32 2
  store float %396, ptr %398, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 12, ptr %33) #9
  %399 = call { <2 x float>, float } @_ZN3P3D9normalizeIfLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %23) #9
  %400 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %33, i32 0, i32 0
  %401 = getelementptr inbounds %union.anon.11, ptr %400, i32 0, i32 0
  store { <2 x float>, float } %399, ptr %34, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %401, ptr align 8 %34, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %33, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #9
  br label %402

402:                                              ; preds = %185, %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #9
  store i32 0, ptr %35, align 4, !tbaa !27
  br label %403

403:                                              ; preds = %465, %402
  %404 = load i32, ptr %35, align 4, !tbaa !27
  %405 = icmp slt i32 %404, 3
  br i1 %405, label %407, label %406

406:                                              ; preds = %403
  store i32 8, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  br label %468

407:                                              ; preds = %403
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #9
  %408 = load ptr, ptr %20, align 8, !tbaa !5
  %409 = load i32, ptr %35, align 4, !tbaa !27
  %410 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNK3P3D4FaceixEi(ptr noundef nonnull align 4 dereferenceable(60) %408, i32 noundef %409)
  store ptr %410, ptr %36, align 8, !tbaa !5
  %411 = load ptr, ptr %13, align 8, !tbaa !5
  %412 = icmp ne ptr %411, null
  br i1 %412, label %413, label %431

413:                                              ; preds = %407
  %414 = load ptr, ptr %36, align 8, !tbaa !5
  %415 = getelementptr inbounds %"struct.P3D::Vertex", ptr %414, i32 0, i32 1
  %416 = call noundef zeroext i1 @_ZNKSt8optionalIiE9has_valueEv(ptr noundef nonnull align 4 dereferenceable(8) %415) #9
  br i1 %416, label %417, label %431

417:                                              ; preds = %413
  %418 = load ptr, ptr %8, align 8, !tbaa !5
  %419 = load ptr, ptr %36, align 8, !tbaa !5
  %420 = getelementptr inbounds %"struct.P3D::Vertex", ptr %419, i32 0, i32 1
  %421 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKRSt8optionalIiEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %420) #9
  %422 = load i32, ptr %421, align 4, !tbaa !27
  %423 = sext i32 %422 to i64
  %424 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %418, i64 noundef %423) #9
  %425 = load ptr, ptr %13, align 8, !tbaa !5
  %426 = load ptr, ptr %36, align 8, !tbaa !5
  %427 = getelementptr inbounds %"struct.P3D::Vertex", ptr %426, i32 0, i32 0
  %428 = load i32, ptr %427, align 4, !tbaa !15
  %429 = sext i32 %428 to i64
  %430 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %425, i64 %429
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %430, ptr align 4 %424, i64 12, i1 false), !tbaa.struct !11
  br label %431

431:                                              ; preds = %417, %413, %407
  %432 = load ptr, ptr %14, align 8, !tbaa !5
  %433 = icmp ne ptr %432, null
  br i1 %433, label %434, label %464

434:                                              ; preds = %431
  %435 = load ptr, ptr %36, align 8, !tbaa !5
  %436 = getelementptr inbounds %"struct.P3D::Vertex", ptr %435, i32 0, i32 2
  %437 = call noundef zeroext i1 @_ZNKSt8optionalIiE9has_valueEv(ptr noundef nonnull align 4 dereferenceable(8) %436) #9
  br i1 %437, label %438, label %464

438:                                              ; preds = %434
  %439 = load ptr, ptr %9, align 8, !tbaa !5
  %440 = load ptr, ptr %36, align 8, !tbaa !5
  %441 = getelementptr inbounds %"struct.P3D::Vertex", ptr %440, i32 0, i32 2
  %442 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKRSt8optionalIiEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %441) #9
  %443 = load i32, ptr %442, align 4, !tbaa !27
  %444 = sext i32 %443 to i64
  %445 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %439, i64 noundef %444) #9
  %446 = load ptr, ptr %14, align 8, !tbaa !5
  %447 = load ptr, ptr %36, align 8, !tbaa !5
  %448 = getelementptr inbounds %"struct.P3D::Vertex", ptr %447, i32 0, i32 0
  %449 = load i32, ptr %448, align 4, !tbaa !15
  %450 = sext i32 %449 to i64
  %451 = getelementptr inbounds %"struct.P3D::Vector.27", ptr %446, i64 %450
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %451, ptr align 4 %445, i64 8, i1 false), !tbaa.struct !30
  %452 = load ptr, ptr %15, align 8, !tbaa !5
  %453 = load ptr, ptr %36, align 8, !tbaa !5
  %454 = getelementptr inbounds %"struct.P3D::Vertex", ptr %453, i32 0, i32 0
  %455 = load i32, ptr %454, align 4, !tbaa !15
  %456 = sext i32 %455 to i64
  %457 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %452, i64 %456
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %457, ptr align 4 %22, i64 12, i1 false), !tbaa.struct !11
  %458 = load ptr, ptr %16, align 8, !tbaa !5
  %459 = load ptr, ptr %36, align 8, !tbaa !5
  %460 = getelementptr inbounds %"struct.P3D::Vertex", ptr %459, i32 0, i32 0
  %461 = load i32, ptr %460, align 4, !tbaa !15
  %462 = sext i32 %461 to i64
  %463 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %458, i64 %462
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %463, ptr align 4 %23, i64 12, i1 false), !tbaa.struct !11
  br label %464

464:                                              ; preds = %438, %434, %431
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  br label %465

465:                                              ; preds = %464
  %466 = load i32, ptr %35, align 4, !tbaa !27
  %467 = add nsw i32 %466, 1
  store i32 %467, ptr %35, align 4, !tbaa !27
  br label %403, !llvm.loop !31

468:                                              ; preds = %406
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %469

469:                                              ; preds = %468
  %470 = load i64, ptr %18, align 8, !tbaa !9
  %471 = add i64 %470, 1
  store i64 %471, ptr %18, align 8, !tbaa !9
  br label %151, !llvm.loop !32

472:                                              ; preds = %156
  store i1 false, ptr %37, align 1
  %473 = load ptr, ptr %11, align 8, !tbaa !5
  %474 = load ptr, ptr %7, align 8, !tbaa !5
  %475 = call noundef i64 @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %474) #9
  %476 = trunc i64 %475 to i32
  %477 = load ptr, ptr %17, align 8, !tbaa !5
  %478 = load ptr, ptr %10, align 8, !tbaa !5
  %479 = call noundef i64 @_ZNKSt6vectorIN3P3D4FaceESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %478) #9
  %480 = trunc i64 %479 to i32
  call void @_ZN3P3D8Graphics20ExtendedTriangleMeshC2EPKNS_6VectorIfLm3EEEiPKNS_8TriangleEi(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef %473, i32 noundef %476, ptr noundef %477, i32 noundef %480)
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #9
  %481 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZNSt10shared_ptrIA_KN3P3D6VectorIfLm3EEEEC2IS2_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef %481)
          to label %482 unwind label %494

482:                                              ; preds = %472
  invoke void @_ZN3P3D8Graphics20ExtendedTriangleMesh15setNormalBufferERKSt10shared_ptrIA_KNS_6VectorIfLm3EEEE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(16) %38)
          to label %483 unwind label %498

483:                                              ; preds = %482
  call void @_ZNSt12__shared_ptrIA_KN3P3D6VectorIfLm3EEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %38) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #9
  %484 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZNSt10shared_ptrIA_KN3P3D6VectorIfLm2EEEEC2IS2_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef %484)
          to label %485 unwind label %503

485:                                              ; preds = %483
  invoke void @_ZN3P3D8Graphics20ExtendedTriangleMesh11setUVBufferERKSt10shared_ptrIA_KNS_6VectorIfLm2EEEE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(16) %41)
          to label %486 unwind label %507

486:                                              ; preds = %485
  call void @_ZNSt12__shared_ptrIA_KN3P3D6VectorIfLm2EEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %41) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #9
  %487 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZNSt10shared_ptrIA_KN3P3D6VectorIfLm3EEEEC2IS2_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %42, ptr noundef %487)
          to label %488 unwind label %512

488:                                              ; preds = %486
  invoke void @_ZN3P3D8Graphics20ExtendedTriangleMesh16setTangentBufferERKSt10shared_ptrIA_KNS_6VectorIfLm3EEEE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(16) %42)
          to label %489 unwind label %516

489:                                              ; preds = %488
  call void @_ZNSt12__shared_ptrIA_KN3P3D6VectorIfLm3EEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %42) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #9
  %490 = load ptr, ptr %16, align 8, !tbaa !5
  invoke void @_ZNSt10shared_ptrIA_KN3P3D6VectorIfLm3EEEEC2IS2_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %43, ptr noundef %490)
          to label %491 unwind label %521

491:                                              ; preds = %489
  invoke void @_ZN3P3D8Graphics20ExtendedTriangleMesh18setBitangentBufferERKSt10shared_ptrIA_KNS_6VectorIfLm3EEEE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(16) %43)
          to label %492 unwind label %525

492:                                              ; preds = %491
  call void @_ZNSt12__shared_ptrIA_KN3P3D6VectorIfLm3EEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %43) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #9
  store i1 true, ptr %37, align 1
  store i32 1, ptr %19, align 4
  %493 = load i1, ptr %37, align 1
  br i1 %493, label %531, label %530

494:                                              ; preds = %472
  %495 = landingpad { ptr, i32 }
          cleanup
  %496 = extractvalue { ptr, i32 } %495, 0
  store ptr %496, ptr %39, align 8
  %497 = extractvalue { ptr, i32 } %495, 1
  store i32 %497, ptr %40, align 4
  br label %502

498:                                              ; preds = %482
  %499 = landingpad { ptr, i32 }
          cleanup
  %500 = extractvalue { ptr, i32 } %499, 0
  store ptr %500, ptr %39, align 8
  %501 = extractvalue { ptr, i32 } %499, 1
  store i32 %501, ptr %40, align 4
  call void @_ZNSt12__shared_ptrIA_KN3P3D6VectorIfLm3EEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %38) #9
  br label %502

502:                                              ; preds = %498, %494
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #9
  br label %532

503:                                              ; preds = %483
  %504 = landingpad { ptr, i32 }
          cleanup
  %505 = extractvalue { ptr, i32 } %504, 0
  store ptr %505, ptr %39, align 8
  %506 = extractvalue { ptr, i32 } %504, 1
  store i32 %506, ptr %40, align 4
  br label %511

507:                                              ; preds = %485
  %508 = landingpad { ptr, i32 }
          cleanup
  %509 = extractvalue { ptr, i32 } %508, 0
  store ptr %509, ptr %39, align 8
  %510 = extractvalue { ptr, i32 } %508, 1
  store i32 %510, ptr %40, align 4
  call void @_ZNSt12__shared_ptrIA_KN3P3D6VectorIfLm2EEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %41) #9
  br label %511

511:                                              ; preds = %507, %503
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #9
  br label %532

512:                                              ; preds = %486
  %513 = landingpad { ptr, i32 }
          cleanup
  %514 = extractvalue { ptr, i32 } %513, 0
  store ptr %514, ptr %39, align 8
  %515 = extractvalue { ptr, i32 } %513, 1
  store i32 %515, ptr %40, align 4
  br label %520

516:                                              ; preds = %488
  %517 = landingpad { ptr, i32 }
          cleanup
  %518 = extractvalue { ptr, i32 } %517, 0
  store ptr %518, ptr %39, align 8
  %519 = extractvalue { ptr, i32 } %517, 1
  store i32 %519, ptr %40, align 4
  call void @_ZNSt12__shared_ptrIA_KN3P3D6VectorIfLm3EEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %42) #9
  br label %520

520:                                              ; preds = %516, %512
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #9
  br label %532

521:                                              ; preds = %489
  %522 = landingpad { ptr, i32 }
          cleanup
  %523 = extractvalue { ptr, i32 } %522, 0
  store ptr %523, ptr %39, align 8
  %524 = extractvalue { ptr, i32 } %522, 1
  store i32 %524, ptr %40, align 4
  br label %529

525:                                              ; preds = %491
  %526 = landingpad { ptr, i32 }
          cleanup
  %527 = extractvalue { ptr, i32 } %526, 0
  store ptr %527, ptr %39, align 8
  %528 = extractvalue { ptr, i32 } %526, 1
  store i32 %528, ptr %40, align 4
  call void @_ZNSt12__shared_ptrIA_KN3P3D6VectorIfLm3EEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %43) #9
  br label %529

529:                                              ; preds = %525, %521
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #9
  br label %532

530:                                              ; preds = %492
  call void @_ZN3P3D8Graphics20ExtendedTriangleMeshD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %0) #9
  br label %531

531:                                              ; preds = %530, %492
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  ret void

532:                                              ; preds = %529, %520, %511, %502
  call void @_ZN3P3D8Graphics20ExtendedTriangleMeshD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %0) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  br label %533

533:                                              ; preds = %532
  %534 = load ptr, ptr %39, align 8
  %535 = load i32, ptr %40, align 4
  %536 = insertvalue { ptr, i32 } poison, ptr %534, 0
  %537 = insertvalue { ptr, i32 } %536, i32 %535, 1
  resume { ptr, i32 } %537
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EE4sizeEv(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) #5

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZN3P3DmiIffLm3EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZN3P3DmiIffLm2EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #6

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZN3P3D9normalizeIfLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(20) ptr @_ZNK3P3D4FaceixEi(ptr noundef nonnull align 4 dereferenceable(60), i32 noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics20ExtendedTriangleMeshC2EPKNS_6VectorIfLm3EEEiPKNS_8TriangleEi(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef, i32 noundef, ptr noundef, i32 noundef) unnamed_addr #7 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt10shared_ptrIA_KN3P3D6VectorIfLm3EEEEC2IS2_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #7 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt10shared_ptrIA_KN3P3D6VectorIfLm2EEEEC2IS2_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #7 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics20ExtendedTriangleMeshD2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #8 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { mustprogress nounwind 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 #7 = { 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { 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 = !{!"long", !7, i64 0}
!11 = !{i64 0, i64 12, !12}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTSN3P3D6VertexE", !17, i64 0, !18, i64 4, !18, i64 12}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSSt8optionalIiE", !19, i64 0}
!19 = !{!"_ZTSSt14_Optional_baseIiLb1ELb1EE", !20, i64 0}
!20 = !{!"_ZTSSt17_Optional_payloadIiLb1ELb1ELb1EE", !21, i64 0}
!21 = !{!"_ZTSSt22_Optional_payload_baseIiE", !7, i64 0, !22, i64 4}
!22 = !{!"bool", !7, i64 0}
!23 = !{!24, !17, i64 0}
!24 = !{!"_ZTSN3P3D8TriangleUt_Ut_E", !17, i64 0, !17, i64 4, !17, i64 8}
!25 = !{!24, !17, i64 4}
!26 = !{!24, !17, i64 8}
!27 = !{!17, !17, i64 0}
!28 = !{!29, !29, i64 0}
!29 = !{!"float", !7, i64 0}
!30 = !{i64 0, i64 8, !12}
!31 = distinct !{!31, !14}
!32 = distinct !{!32, !14}


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

%"struct.P3D::Graphics::ExtendedTriangleMesh" = type { %"class.P3D::TriangleMesh", %"class.std::shared_ptr", %"class.std::shared_ptr.14", %"class.std::shared_ptr", %"class.std::shared_ptr" }
%"class.P3D::TriangleMesh" = type { %"class.P3D::MeshPrototype" }
%"class.P3D::MeshPrototype" = type { %"class.P3D::UniqueAlignedPointer", %"class.P3D::UniqueAlignedPointer.13", i32, i32 }
%"class.P3D::UniqueAlignedPointer" = type { ptr }
%"class.P3D::UniqueAlignedPointer.13" = type { ptr }
%"class.std::shared_ptr.14" = type { %"class.std::__shared_ptr.15" }
%"class.std::__shared_ptr.15" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"struct.P3D::Vector.10" = type { %union.anon.11 }
%union.anon.11 = type { [3 x float] }
%"struct.P3D::Vector.27" = type { %union.anon.28 }
%union.anon.28 = type { [2 x float] }
%"struct.P3D::Triangle" = type { %union.anon.35 }
%union.anon.35 = type { %struct.anon.36 }
%struct.anon.36 = type { i32, i32, i32 }

; 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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D35reorderWithoutSharedVerticesSupportERKSt6vectorINS_6VectorIfLm3EEESaIS2_EES6_RKS0_INS1_IfLm2EEESaIS7_EERKS0_INS_4FaceESaISC_EE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::ExtendedTriangleMesh") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"struct.P3D::Vector.10", align 8
  %7 = alloca %"struct.P3D::Vector.10", align 8
  %8 = alloca %"class.std::shared_ptr", align 8
  %9 = alloca %"class.std::shared_ptr.14", align 8
  %10 = alloca %"class.std::shared_ptr", align 8
  %11 = alloca %"class.std::shared_ptr", align 8
  %12 = tail call noundef i64 @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #10
  %13 = tail call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %12, i64 12)
  %14 = extractvalue { i64, i1 } %13, 1
  %15 = extractvalue { i64, i1 } %13, 0
  %16 = select i1 %14, i64 -1, i64 %15
  %17 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %16) #11
  %18 = icmp eq i64 %12, 0
  br i1 %18, label %.loopexit152, label %19

19:                                               ; preds = %5
  %20 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %17, i64 %12
  br label %21

21:                                               ; preds = %21, %19
  %22 = phi ptr [ %17, %19 ], [ %23, %21 ]
  tail call void @_ZN3P3D6VectorIfLm3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %22) #10
  %23 = getelementptr inbounds i8, ptr %22, i64 12
  %24 = icmp eq ptr %23, %20
  br i1 %24, label %.loopexit152, label %21

.loopexit152:                                     ; preds = %21, %5
  %25 = tail call noundef i64 @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #10
  %.not161 = icmp eq i64 %25, 0
  br i1 %.not161, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.loopexit152
  %26 = tail call noundef zeroext i1 @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #10
  br i1 %26, label %.loopexit151, label %32

.lr.ph:                                           ; preds = %.loopexit152, %.lr.ph
  %.0135153 = phi i64 [ %29, %.lr.ph ], [ 0, %.loopexit152 ]
  %27 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.0135153) #10
  %28 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %17, i64 %.0135153
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %28, ptr noundef nonnull align 4 dereferenceable(12) %27, i64 12, i1 false), !tbaa.struct !5
  %29 = add nuw i64 %.0135153, 1
  %30 = tail call noundef i64 @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #10
  %31 = icmp ult i64 %29, %30
  br i1 %31, label %.lr.ph, label %._crit_edge, !llvm.loop !9

32:                                               ; preds = %._crit_edge
  %33 = tail call noundef i64 @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #10
  %34 = tail call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %33, i64 12)
  %35 = extractvalue { i64, i1 } %34, 1
  %36 = extractvalue { i64, i1 } %34, 0
  %37 = select i1 %35, i64 -1, i64 %36
  %38 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %37) #11
  %39 = icmp eq i64 %33, 0
  br i1 %39, label %.loopexit151, label %40

40:                                               ; preds = %32
  %41 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %38, i64 %33
  br label %42

42:                                               ; preds = %42, %40
  %43 = phi ptr [ %38, %40 ], [ %44, %42 ]
  tail call void @_ZN3P3D6VectorIfLm3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %43) #10
  %44 = getelementptr inbounds i8, ptr %43, i64 12
  %45 = icmp eq ptr %44, %41
  br i1 %45, label %.loopexit151, label %42

.loopexit151:                                     ; preds = %42, %32, %._crit_edge
  %.0137 = phi ptr [ null, %._crit_edge ], [ %38, %32 ], [ %38, %42 ]
  %46 = tail call noundef zeroext i1 @_ZNKSt6vectorIN3P3D6VectorIfLm2EEESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #10
  br i1 %46, label %.loopexit, label %47

47:                                               ; preds = %.loopexit151
  %48 = tail call noundef i64 @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #10
  %49 = icmp ugt i64 %48, 2305843009213693951
  %50 = shl nuw i64 %48, 3
  %51 = select i1 %49, i64 -1, i64 %50
  %52 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %51) #11
  %53 = icmp eq i64 %48, 0
  br i1 %53, label %.loopexit150, label %54

54:                                               ; preds = %47
  %55 = getelementptr inbounds %"struct.P3D::Vector.27", ptr %52, i64 %48
  br label %56

56:                                               ; preds = %56, %54
  %57 = phi ptr [ %52, %54 ], [ %58, %56 ]
  tail call void @_ZN3P3D6VectorIfLm2EEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %57) #10
  %58 = getelementptr inbounds i8, ptr %57, i64 8
  %59 = icmp eq ptr %58, %55
  br i1 %59, label %.loopexit150, label %56

.loopexit150:                                     ; preds = %56, %47
  %60 = tail call noundef i64 @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #10
  %61 = tail call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %60, i64 12)
  %62 = extractvalue { i64, i1 } %61, 1
  %63 = extractvalue { i64, i1 } %61, 0
  %64 = select i1 %62, i64 -1, i64 %63
  %65 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %64) #11
  %66 = icmp eq i64 %60, 0
  br i1 %66, label %.loopexit149, label %67

67:                                               ; preds = %.loopexit150
  %68 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %65, i64 %60
  br label %69

69:                                               ; preds = %69, %67
  %70 = phi ptr [ %65, %67 ], [ %71, %69 ]
  tail call void @_ZN3P3D6VectorIfLm3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %70) #10
  %71 = getelementptr inbounds i8, ptr %70, i64 12
  %72 = icmp eq ptr %71, %68
  br i1 %72, label %.loopexit149, label %69

.loopexit149:                                     ; preds = %69, %.loopexit150
  %73 = tail call noundef i64 @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #10
  %74 = tail call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %73, i64 12)
  %75 = extractvalue { i64, i1 } %74, 1
  %76 = extractvalue { i64, i1 } %74, 0
  %77 = select i1 %75, i64 -1, i64 %76
  %78 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %77) #11
  %79 = icmp eq i64 %73, 0
  br i1 %79, label %.loopexit, label %80

80:                                               ; preds = %.loopexit149
  %81 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %78, i64 %73
  br label %82

82:                                               ; preds = %82, %80
  %83 = phi ptr [ %78, %80 ], [ %84, %82 ]
  tail call void @_ZN3P3D6VectorIfLm3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %83) #10
  %84 = getelementptr inbounds i8, ptr %83, i64 12
  %85 = icmp eq ptr %84, %81
  br i1 %85, label %.loopexit, label %82

.loopexit:                                        ; preds = %82, %.loopexit149, %.loopexit151
  %.0140 = phi ptr [ null, %.loopexit151 ], [ %78, %.loopexit149 ], [ %78, %82 ]
  %.0139 = phi ptr [ null, %.loopexit151 ], [ %65, %.loopexit149 ], [ %65, %82 ]
  %.0138 = phi ptr [ null, %.loopexit151 ], [ %52, %.loopexit149 ], [ %52, %82 ]
  %86 = tail call noundef i64 @_ZNKSt6vectorIN3P3D4FaceESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  %87 = tail call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %86, i64 12)
  %88 = extractvalue { i64, i1 } %87, 1
  %89 = extractvalue { i64, i1 } %87, 0
  %90 = select i1 %88, i64 -1, i64 %89
  %91 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %90) #11
  %92 = tail call noundef i64 @_ZNKSt6vectorIN3P3D4FaceESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  %.not162 = icmp eq i64 %92, 0
  br i1 %.not162, label %._crit_edge160, label %.lr.ph159

.lr.ph159:                                        ; preds = %.loopexit
  %.not = icmp eq ptr %.0138, null
  %93 = getelementptr inbounds i8, ptr %6, i64 8
  %94 = getelementptr inbounds i8, ptr %7, i64 8
  %.not148 = icmp eq ptr %.0137, null
  br label %99

._crit_edge160:                                   ; preds = %.split156.us, %.loopexit
  %95 = call noundef i64 @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #10
  %96 = trunc i64 %95 to i32
  %97 = call noundef i64 @_ZNKSt6vectorIN3P3D4FaceESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  %98 = trunc i64 %97 to i32
  call void @_ZN3P3D8Graphics20ExtendedTriangleMeshC2EPKNS_6VectorIfLm3EEEiPKNS_8TriangleEi(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull %17, i32 noundef %96, ptr noundef nonnull %91, i32 noundef %98)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #10
  invoke void @_ZNSt10shared_ptrIA_KN3P3D6VectorIfLm3EEEEC2IS2_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef %.0137)
          to label %297 unwind label %301

99:                                               ; preds = %.lr.ph159, %.split156.us
  %.0141157 = phi i64 [ 0, %.lr.ph159 ], [ %205, %.split156.us ]
  %100 = call noundef nonnull align 4 dereferenceable(60) ptr @_ZNKSt6vectorIN3P3D4FaceESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.0141157) #10
  %101 = load i32, ptr %100, align 4, !tbaa !11
  %102 = getelementptr inbounds i8, ptr %100, i64 20
  %103 = load i32, ptr %102, align 4, !tbaa !11
  %104 = getelementptr inbounds i8, ptr %100, i64 40
  %105 = load i32, ptr %104, align 4, !tbaa !11
  %106 = getelementptr inbounds %"struct.P3D::Triangle", ptr %91, i64 %.0141157
  store i32 %101, ptr %106, align 4
  %.sroa.474.0..sroa_idx = getelementptr inbounds i8, ptr %106, i64 4
  store i32 %103, ptr %.sroa.474.0..sroa_idx, align 4
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %106, i64 8
  store i32 %105, ptr %.sroa.5.0..sroa_idx, align 4, !tbaa !6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #10
  call void @_ZN3P3D6VectorIfLm3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #10
  call void @_ZN3P3D6VectorIfLm3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #10
  br i1 %.not, label %.split.us, label %.split

.split:                                           ; preds = %99
  %107 = load i32, ptr %102, align 4, !tbaa !11
  %108 = sext i32 %107 to i64
  %109 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %108) #10
  %110 = load i32, ptr %100, align 4, !tbaa !11
  %111 = sext i32 %110 to i64
  %112 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %111) #10
  %113 = call { <2 x float>, float } @_ZN3P3DmiIffLm3EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %109, ptr noundef nonnull align 4 dereferenceable(12) %112) #10
  %.fca.0.extract62 = extractvalue { <2 x float>, float } %113, 0
  %.fca.1.extract63 = extractvalue { <2 x float>, float } %113, 1
  %114 = load i32, ptr %104, align 4, !tbaa !11
  %115 = sext i32 %114 to i64
  %116 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %115) #10
  %117 = load i32, ptr %100, align 4, !tbaa !11
  %118 = sext i32 %117 to i64
  %119 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %118) #10
  %120 = call { <2 x float>, float } @_ZN3P3DmiIffLm3EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %116, ptr noundef nonnull align 4 dereferenceable(12) %119) #10
  %.fca.0.extract52 = extractvalue { <2 x float>, float } %120, 0
  %.fca.1.extract53 = extractvalue { <2 x float>, float } %120, 1
  %121 = getelementptr inbounds i8, ptr %100, i64 32
  %122 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKRSt8optionalIiEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %121) #10
  %123 = load i32, ptr %122, align 4, !tbaa !19
  %124 = sext i32 %123 to i64
  %125 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %124) #10
  %126 = getelementptr inbounds i8, ptr %100, i64 12
  %127 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKRSt8optionalIiEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %126) #10
  %128 = load i32, ptr %127, align 4, !tbaa !19
  %129 = sext i32 %128 to i64
  %130 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %129) #10
  %131 = call <2 x float> @_ZN3P3DmiIffLm2EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(8) %125, ptr noundef nonnull align 4 dereferenceable(8) %130) #10
  %132 = getelementptr inbounds i8, ptr %100, i64 52
  %133 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKRSt8optionalIiEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %132) #10
  %134 = load i32, ptr %133, align 4, !tbaa !19
  %135 = sext i32 %134 to i64
  %136 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %135) #10
  %137 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKRSt8optionalIiEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %126) #10
  %138 = load i32, ptr %137, align 4, !tbaa !19
  %139 = sext i32 %138 to i64
  %140 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %139) #10
  %141 = call <2 x float> @_ZN3P3DmiIffLm2EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(8) %136, ptr noundef nonnull align 4 dereferenceable(8) %140) #10
  %.sroa.039.0.vec.extract = extractelement <2 x float> %131, i64 0
  %.sroa.026.4.vec.extract = extractelement <2 x float> %141, i64 1
  %.sroa.026.0.vec.extract = extractelement <2 x float> %141, i64 0
  %.sroa.039.4.vec.extract = extractelement <2 x float> %131, i64 1
  %142 = fneg float %.sroa.026.0.vec.extract
  %143 = fmul float %.sroa.039.4.vec.extract, %142
  %144 = call float @llvm.fmuladd.f32(float %.sroa.039.0.vec.extract, float %.sroa.026.4.vec.extract, float %143)
  %145 = fdiv float 1.000000e+00, %144
  %146 = fneg float %.sroa.039.4.vec.extract
  %147 = insertelement <2 x float> poison, float %146, i64 0
  %148 = shufflevector <2 x float> %147, <2 x float> poison, <2 x i32> zeroinitializer
  %149 = fmul <2 x float> %.fca.0.extract52, %148
  %150 = shufflevector <2 x float> %141, <2 x float> poison, <2 x i32> <i32 1, i32 1>
  %151 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %150, <2 x float> %.fca.0.extract62, <2 x float> %149)
  %152 = insertelement <2 x float> poison, float %145, i64 0
  %153 = shufflevector <2 x float> %152, <2 x float> poison, <2 x i32> zeroinitializer
  %154 = fmul <2 x float> %151, %153
  store <2 x float> %154, ptr %6, align 8, !tbaa !6
  %155 = fmul float %.fca.1.extract53, %146
  %156 = call float @llvm.fmuladd.f32(float %.sroa.026.4.vec.extract, float %.fca.1.extract63, float %155)
  %157 = fmul float %156, %145
  store float %157, ptr %93, align 8, !tbaa !6
  %158 = call { <2 x float>, float } @_ZN3P3D9normalizeIfLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %6) #10
  %.fca.0.extract14 = extractvalue { <2 x float>, float } %158, 0
  %.fca.1.extract15 = extractvalue { <2 x float>, float } %158, 1
  store <2 x float> %.fca.0.extract14, ptr %6, align 8
  store float %.fca.1.extract15, ptr %93, align 8, !tbaa !6
  %159 = shufflevector <2 x float> %131, <2 x float> poison, <2 x i32> zeroinitializer
  %160 = fmul <2 x float> %.fca.0.extract52, %159
  %161 = insertelement <2 x float> poison, float %142, i64 0
  %162 = shufflevector <2 x float> %161, <2 x float> poison, <2 x i32> zeroinitializer
  %163 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %162, <2 x float> %.fca.0.extract62, <2 x float> %160)
  %164 = fmul <2 x float> %163, %153
  store <2 x float> %164, ptr %7, align 8, !tbaa !6
  %165 = fmul float %.fca.1.extract53, %.sroa.039.0.vec.extract
  %166 = call float @llvm.fmuladd.f32(float %142, float %.fca.1.extract63, float %165)
  %167 = fmul float %166, %145
  store float %167, ptr %94, align 8, !tbaa !6
  %168 = call { <2 x float>, float } @_ZN3P3D9normalizeIfLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %7) #10
  %.fca.0.extract = extractvalue { <2 x float>, float } %168, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %168, 1
  store <2 x float> %.fca.0.extract, ptr %7, align 8
  store float %.fca.1.extract, ptr %94, align 8, !tbaa !6
  %169 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNK3P3D4FaceixEi(ptr noundef nonnull align 4 dereferenceable(60) %100, i32 noundef 0)
  br i1 %.not148, label %219, label %208

.split.us:                                        ; preds = %99
  %170 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNK3P3D4FaceixEi(ptr noundef nonnull align 4 dereferenceable(60) %100, i32 noundef 0)
  br i1 %.not148, label %.split.us.split.us.preheader, label %.split.us.split.preheader

.split.us.split.preheader:                        ; preds = %.split.us
  %171 = getelementptr inbounds i8, ptr %170, i64 4
  %172 = call noundef zeroext i1 @_ZNKSt8optionalIiE9has_valueEv(ptr noundef nonnull align 4 dereferenceable(8) %171) #10
  br i1 %172, label %175, label %.split.us.split.1

.split.us.split.us.preheader:                     ; preds = %.split.us
  %173 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNK3P3D4FaceixEi(ptr noundef nonnull align 4 dereferenceable(60) %100, i32 noundef 1)
  %174 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNK3P3D4FaceixEi(ptr noundef nonnull align 4 dereferenceable(60) %100, i32 noundef 2)
  br label %.split156.us

175:                                              ; preds = %.split.us.split.preheader
  %176 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKRSt8optionalIiEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %171) #10
  %177 = load i32, ptr %176, align 4, !tbaa !19
  %178 = sext i32 %177 to i64
  %179 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %178) #10
  %180 = load i32, ptr %170, align 4, !tbaa !11
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %.0137, i64 %181
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %182, ptr noundef nonnull align 4 dereferenceable(12) %179, i64 12, i1 false), !tbaa.struct !5
  br label %.split.us.split.1

.split.us.split.1:                                ; preds = %175, %.split.us.split.preheader
  %183 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNK3P3D4FaceixEi(ptr noundef nonnull align 4 dereferenceable(60) %100, i32 noundef 1)
  %184 = getelementptr inbounds i8, ptr %183, i64 4
  %185 = call noundef zeroext i1 @_ZNKSt8optionalIiE9has_valueEv(ptr noundef nonnull align 4 dereferenceable(8) %184) #10
  br i1 %185, label %186, label %.split.us.split.2

186:                                              ; preds = %.split.us.split.1
  %187 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKRSt8optionalIiEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %184) #10
  %188 = load i32, ptr %187, align 4, !tbaa !19
  %189 = sext i32 %188 to i64
  %190 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %189) #10
  %191 = load i32, ptr %183, align 4, !tbaa !11
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %.0137, i64 %192
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %193, ptr noundef nonnull align 4 dereferenceable(12) %190, i64 12, i1 false), !tbaa.struct !5
  br label %.split.us.split.2

.split.us.split.2:                                ; preds = %186, %.split.us.split.1
  %194 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNK3P3D4FaceixEi(ptr noundef nonnull align 4 dereferenceable(60) %100, i32 noundef 2)
  %195 = getelementptr inbounds i8, ptr %194, i64 4
  %196 = call noundef zeroext i1 @_ZNKSt8optionalIiE9has_valueEv(ptr noundef nonnull align 4 dereferenceable(8) %195) #10
  br i1 %196, label %197, label %.split156.us

197:                                              ; preds = %.split.us.split.2
  %198 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKRSt8optionalIiEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %195) #10
  %199 = load i32, ptr %198, align 4, !tbaa !19
  %200 = sext i32 %199 to i64
  %201 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %200) #10
  %202 = load i32, ptr %194, align 4, !tbaa !11
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %.0137, i64 %203
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %204, ptr noundef nonnull align 4 dereferenceable(12) %201, i64 12, i1 false), !tbaa.struct !5
  br label %.split156.us

.split156.us:                                     ; preds = %279, %282, %.split.us.split.2, %197, %.split.us.split.us.preheader
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #10
  %205 = add nuw i64 %.0141157, 1
  %206 = call noundef i64 @_ZNKSt6vectorIN3P3D4FaceESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  %207 = icmp ult i64 %205, %206
  br i1 %207, label %99, label %._crit_edge160, !llvm.loop !20

208:                                              ; preds = %.split
  %209 = getelementptr inbounds i8, ptr %169, i64 4
  %210 = call noundef zeroext i1 @_ZNKSt8optionalIiE9has_valueEv(ptr noundef nonnull align 4 dereferenceable(8) %209) #10
  br i1 %210, label %211, label %219

211:                                              ; preds = %208
  %212 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKRSt8optionalIiEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %209) #10
  %213 = load i32, ptr %212, align 4, !tbaa !19
  %214 = sext i32 %213 to i64
  %215 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %214) #10
  %216 = load i32, ptr %169, align 4, !tbaa !11
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %.0137, i64 %217
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %218, ptr noundef nonnull align 4 dereferenceable(12) %215, i64 12, i1 false), !tbaa.struct !5
  br label %219

219:                                              ; preds = %211, %208, %.split
  %220 = getelementptr inbounds i8, ptr %169, i64 12
  %221 = call noundef zeroext i1 @_ZNKSt8optionalIiE9has_valueEv(ptr noundef nonnull align 4 dereferenceable(8) %220) #10
  br i1 %221, label %222, label %.split.1

222:                                              ; preds = %219
  %223 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKRSt8optionalIiEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %220) #10
  %224 = load i32, ptr %223, align 4, !tbaa !19
  %225 = sext i32 %224 to i64
  %226 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %225) #10
  %227 = load i32, ptr %169, align 4, !tbaa !11
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds %"struct.P3D::Vector.27", ptr %.0138, i64 %228
  %230 = load i64, ptr %226, align 4, !tbaa !6
  store i64 %230, ptr %229, align 4, !tbaa !6
  %231 = load i32, ptr %169, align 4, !tbaa !11
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %.0139, i64 %232
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %233, ptr noundef nonnull align 8 dereferenceable(12) %6, i64 12, i1 false), !tbaa.struct !5
  %234 = load i32, ptr %169, align 4, !tbaa !11
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %.0140, i64 %235
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %236, ptr noundef nonnull align 8 dereferenceable(12) %7, i64 12, i1 false), !tbaa.struct !5
  br label %.split.1

.split.1:                                         ; preds = %222, %219
  %237 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNK3P3D4FaceixEi(ptr noundef nonnull align 4 dereferenceable(60) %100, i32 noundef 1)
  br i1 %.not148, label %249, label %238

238:                                              ; preds = %.split.1
  %239 = getelementptr inbounds i8, ptr %237, i64 4
  %240 = call noundef zeroext i1 @_ZNKSt8optionalIiE9has_valueEv(ptr noundef nonnull align 4 dereferenceable(8) %239) #10
  br i1 %240, label %241, label %249

241:                                              ; preds = %238
  %242 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKRSt8optionalIiEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %239) #10
  %243 = load i32, ptr %242, align 4, !tbaa !19
  %244 = sext i32 %243 to i64
  %245 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %244) #10
  %246 = load i32, ptr %237, align 4, !tbaa !11
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %.0137, i64 %247
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %248, ptr noundef nonnull align 4 dereferenceable(12) %245, i64 12, i1 false), !tbaa.struct !5
  br label %249

249:                                              ; preds = %241, %238, %.split.1
  %250 = getelementptr inbounds i8, ptr %237, i64 12
  %251 = call noundef zeroext i1 @_ZNKSt8optionalIiE9has_valueEv(ptr noundef nonnull align 4 dereferenceable(8) %250) #10
  br i1 %251, label %252, label %.split.2

252:                                              ; preds = %249
  %253 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKRSt8optionalIiEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %250) #10
  %254 = load i32, ptr %253, align 4, !tbaa !19
  %255 = sext i32 %254 to i64
  %256 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %255) #10
  %257 = load i32, ptr %237, align 4, !tbaa !11
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds %"struct.P3D::Vector.27", ptr %.0138, i64 %258
  %260 = load i64, ptr %256, align 4, !tbaa !6
  store i64 %260, ptr %259, align 4, !tbaa !6
  %261 = load i32, ptr %237, align 4, !tbaa !11
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %.0139, i64 %262
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %263, ptr noundef nonnull align 8 dereferenceable(12) %6, i64 12, i1 false), !tbaa.struct !5
  %264 = load i32, ptr %237, align 4, !tbaa !11
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %.0140, i64 %265
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %266, ptr noundef nonnull align 8 dereferenceable(12) %7, i64 12, i1 false), !tbaa.struct !5
  br label %.split.2

.split.2:                                         ; preds = %252, %249
  %267 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNK3P3D4FaceixEi(ptr noundef nonnull align 4 dereferenceable(60) %100, i32 noundef 2)
  br i1 %.not148, label %279, label %268

268:                                              ; preds = %.split.2
  %269 = getelementptr inbounds i8, ptr %267, i64 4
  %270 = call noundef zeroext i1 @_ZNKSt8optionalIiE9has_valueEv(ptr noundef nonnull align 4 dereferenceable(8) %269) #10
  br i1 %270, label %271, label %279

271:                                              ; preds = %268
  %272 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKRSt8optionalIiEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %269) #10
  %273 = load i32, ptr %272, align 4, !tbaa !19
  %274 = sext i32 %273 to i64
  %275 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %274) #10
  %276 = load i32, ptr %267, align 4, !tbaa !11
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %.0137, i64 %277
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %278, ptr noundef nonnull align 4 dereferenceable(12) %275, i64 12, i1 false), !tbaa.struct !5
  br label %279

279:                                              ; preds = %271, %268, %.split.2
  %280 = getelementptr inbounds i8, ptr %267, i64 12
  %281 = call noundef zeroext i1 @_ZNKSt8optionalIiE9has_valueEv(ptr noundef nonnull align 4 dereferenceable(8) %280) #10
  br i1 %281, label %282, label %.split156.us

282:                                              ; preds = %279
  %283 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKRSt8optionalIiEdeEv(ptr noundef nonnull align 4 dereferenceable(8) %280) #10
  %284 = load i32, ptr %283, align 4, !tbaa !19
  %285 = sext i32 %284 to i64
  %286 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm2EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %285) #10
  %287 = load i32, ptr %267, align 4, !tbaa !11
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds %"struct.P3D::Vector.27", ptr %.0138, i64 %288
  %290 = load i64, ptr %286, align 4, !tbaa !6
  store i64 %290, ptr %289, align 4, !tbaa !6
  %291 = load i32, ptr %267, align 4, !tbaa !11
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %.0139, i64 %292
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %293, ptr noundef nonnull align 8 dereferenceable(12) %6, i64 12, i1 false), !tbaa.struct !5
  %294 = load i32, ptr %267, align 4, !tbaa !11
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds %"struct.P3D::Vector.10", ptr %.0140, i64 %295
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %296, ptr noundef nonnull align 8 dereferenceable(12) %7, i64 12, i1 false), !tbaa.struct !5
  br label %.split156.us

297:                                              ; preds = %._crit_edge160
  call void @_ZN3P3D8Graphics20ExtendedTriangleMesh15setNormalBufferERKSt10shared_ptrIA_KNS_6VectorIfLm3EEEE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(16) %8)
  call void @_ZNSt12__shared_ptrIA_KN3P3D6VectorIfLm3EEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #10
  invoke void @_ZNSt10shared_ptrIA_KN3P3D6VectorIfLm2EEEEC2IS2_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef %.0138)
          to label %298 unwind label %303

298:                                              ; preds = %297
  call void @_ZN3P3D8Graphics20ExtendedTriangleMesh11setUVBufferERKSt10shared_ptrIA_KNS_6VectorIfLm2EEEE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(16) %9)
  call void @_ZNSt12__shared_ptrIA_KN3P3D6VectorIfLm2EEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #10
  invoke void @_ZNSt10shared_ptrIA_KN3P3D6VectorIfLm3EEEEC2IS2_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef %.0139)
          to label %299 unwind label %305

299:                                              ; preds = %298
  call void @_ZN3P3D8Graphics20ExtendedTriangleMesh16setTangentBufferERKSt10shared_ptrIA_KNS_6VectorIfLm3EEEE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(16) %10)
  call void @_ZNSt12__shared_ptrIA_KN3P3D6VectorIfLm3EEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #10
  invoke void @_ZNSt10shared_ptrIA_KN3P3D6VectorIfLm3EEEEC2IS2_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %.0140)
          to label %300 unwind label %307

300:                                              ; preds = %299
  call void @_ZN3P3D8Graphics20ExtendedTriangleMesh18setBitangentBufferERKSt10shared_ptrIA_KNS_6VectorIfLm3EEEE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(16) %11)
  call void @_ZNSt12__shared_ptrIA_KN3P3D6VectorIfLm3EEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #10
  ret void

301:                                              ; preds = %._crit_edge160
  %302 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #10
  br label %309

303:                                              ; preds = %297
  %304 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #10
  br label %309

305:                                              ; preds = %298
  %306 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #10
  br label %309

307:                                              ; preds = %299
  %308 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #10
  br label %309

309:                                              ; preds = %307, %305, %303, %301
  %.pn = phi { ptr, i32 } [ %308, %307 ], [ %306, %305 ], [ %304, %303 ], [ %302, %301 ]
  call void @_ZN3P3D8Graphics20ExtendedTriangleMeshD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %0) #10
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: mustprogress 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) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_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 @_ZNKSt6vectorIN3P3D6VectorIfLm3EEESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3P3D4FaceESaIS1_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 4 dereferenceable(60) ptr @_ZNKSt6vectorIN3P3D4FaceESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZN3P3DmiIffLm3EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZN3P3DmiIffLm2EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN3P3D6VectorIfLm2EEESaIS2_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 nonnull align 4 dereferenceable(4) ptr @_ZNKRSt8optionalIiEdeEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZN3P3D9normalizeIfLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(20) ptr @_ZNK3P3D4FaceixEi(ptr noundef nonnull align 4 dereferenceable(60), i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics20ExtendedTriangleMeshC2EPKNS_6VectorIfLm3EEEiPKNS_8TriangleEi(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef, i32 noundef, ptr noundef, i32 noundef) unnamed_addr #7 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt10shared_ptrIA_KN3P3D6VectorIfLm3EEEEC2IS2_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #7 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt10shared_ptrIA_KN3P3D6VectorIfLm2EEEEC2IS2_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #7 align 2

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #9

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { mustprogress nounwind 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 #7 = { 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 #8 = { 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 #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { nounwind }
attributes #11 = { 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 = !{i64 0, i64 12, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN3P3D6VertexE", !13, i64 0, !14, i64 4, !14, i64 12}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTSSt8optionalIiE", !15, i64 0}
!15 = !{!"_ZTSSt14_Optional_baseIiLb1ELb1EE", !16, i64 0}
!16 = !{!"_ZTSSt17_Optional_payloadIiLb1ELb1ELb1EE", !17, i64 0}
!17 = !{!"_ZTSSt22_Optional_payload_baseIiE", !7, i64 0, !18, i64 4}
!18 = !{!"bool", !7, i64 0}
!19 = !{!13, !13, i64 0}
!20 = distinct !{!20, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass