; LLVM IR from ThePhysicsGuys/Physics3D :: graphics (meshRegistry)

; 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.4", %"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.3", i32, i32 }
%"class.P3D::UniqueAlignedPointer" = type { ptr }
%"class.P3D::UniqueAlignedPointer.3" = type { ptr }
%"class.std::shared_ptr.4" = type { %"class.std::__shared_ptr.5" }
%"class.std::__shared_ptr.5" = 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" = type { %union.anon }
%union.anon = type { [3 x float] }
%"struct.P3D::Vector.7" = type { %union.anon.8 }
%union.anon.8 = type { [2 x float] }
%struct.anon.9 = type { float, float }
%"struct.P3D::Triangle" = type { %union.anon.10 }
%union.anon.10 = type { %struct.anon.11 }
%struct.anon.11 = type { i32, i32, i32 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D8Graphics12MeshRegistry10createQuadERKNS_6VectorIfLm3EEES5_RKNS2_IfLm2EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::ExtendedTriangleMesh") align 8 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(8) %3) #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"struct.P3D::Vector", align 4
  %10 = alloca %"struct.P3D::Vector", align 4
  %11 = alloca { <2 x float>, float }, align 8
  %12 = alloca %"struct.P3D::Vector", align 4
  %13 = alloca { <2 x float>, float }, align 8
  %14 = alloca %"struct.P3D::Vector", align 4
  %15 = alloca %"struct.P3D::Vector", align 4
  %16 = alloca { <2 x float>, float }, align 8
  %17 = alloca float, align 4
  %18 = alloca { <2 x float>, float }, align 8
  %19 = alloca %"struct.P3D::Vector", align 4
  %20 = alloca %"struct.P3D::Vector", align 4
  %21 = alloca { <2 x float>, float }, align 8
  %22 = alloca float, align 4
  %23 = alloca { <2 x float>, float }, align 8
  %24 = alloca %"struct.P3D::Vector", align 4
  %25 = alloca %"struct.P3D::Vector", align 4
  %26 = alloca { <2 x float>, float }, align 8
  %27 = alloca { <2 x float>, float }, align 8
  %28 = alloca %"struct.P3D::Vector", align 4
  %29 = alloca %"struct.P3D::Vector", align 4
  %30 = alloca { <2 x float>, float }, align 8
  %31 = alloca { <2 x float>, float }, align 8
  %32 = alloca %"struct.P3D::Vector", align 4
  %33 = alloca %"struct.P3D::Vector", align 4
  %34 = alloca { <2 x float>, float }, align 8
  %35 = alloca { <2 x float>, float }, align 8
  %36 = alloca %"struct.P3D::Vector", align 4
  %37 = alloca %"struct.P3D::Vector", align 4
  %38 = alloca { <2 x float>, float }, align 8
  %39 = alloca { <2 x float>, float }, align 8
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca ptr, align 8
  %44 = alloca i1, align 1
  %45 = alloca %"class.std::shared_ptr", align 8
  %46 = alloca ptr, align 8
  %47 = alloca i32, align 4
  %48 = alloca %"class.std::shared_ptr.4", align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #7
  call void @_ZN3P3D6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %9, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #7
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = call { <2 x float>, float } @_ZN3P3DrmIffEENS_6VectorIDTmimlixfp_Li1Eixfp0_Li2Emlixfp_Li2Eixfp0_Li1EELm3EEERKNS1_IT_Lm3EEERKNS1_IT0_Lm3EEE(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %49) #7
  %51 = getelementptr inbounds %"struct.P3D::Vector", ptr %10, i32 0, i32 0
  %52 = getelementptr inbounds %union.anon, ptr %51, i32 0, i32 0
  store { <2 x float>, float } %50, ptr %11, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %52, ptr align 8 %11, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #7
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = call { <2 x float>, float } @_ZN3P3DrmIffEENS_6VectorIDTmimlixfp_Li1Eixfp0_Li2Emlixfp_Li2Eixfp0_Li1EELm3EEERKNS1_IT_Lm3EEERKNS1_IT0_Lm3EEE(ptr noundef nonnull align 4 dereferenceable(12) %53, ptr noundef nonnull align 4 dereferenceable(12) %10) #7
  %55 = getelementptr inbounds %"struct.P3D::Vector", ptr %12, i32 0, i32 0
  %56 = getelementptr inbounds %union.anon, ptr %55, i32 0, i32 0
  store { <2 x float>, float } %54, ptr %13, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %56, ptr align 8 %13, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #7
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.P3D::Vector.7", ptr %57, i32 0, i32 0
  %59 = getelementptr inbounds %struct.anon.9, ptr %58, i32 0, i32 0
  %60 = call { <2 x float>, float } @_ZN3P3DmlIffLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(4) %59) #7
  %61 = getelementptr inbounds %"struct.P3D::Vector", ptr %15, i32 0, i32 0
  %62 = getelementptr inbounds %union.anon, ptr %61, i32 0, i32 0
  store { <2 x float>, float } %60, ptr %16, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %62, ptr align 8 %16, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store float 2.000000e+00, ptr %17, align 4, !tbaa !9
  %63 = call { <2 x float>, float } @_ZN3P3DdvIffLm3EEENS_6VectorIDTdvixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(4) %17) #7
  %64 = getelementptr inbounds %"struct.P3D::Vector", ptr %14, i32 0, i32 0
  %65 = getelementptr inbounds %union.anon, ptr %64, i32 0, i32 0
  store { <2 x float>, float } %63, ptr %18, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %65, ptr align 8 %18, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #7
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.P3D::Vector.7", ptr %66, i32 0, i32 0
  %68 = getelementptr inbounds %struct.anon.9, ptr %67, i32 0, i32 1
  %69 = call { <2 x float>, float } @_ZN3P3DmlIffLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(4) %68) #7
  %70 = getelementptr inbounds %"struct.P3D::Vector", ptr %20, i32 0, i32 0
  %71 = getelementptr inbounds %union.anon, ptr %70, i32 0, i32 0
  store { <2 x float>, float } %69, ptr %21, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %71, ptr align 8 %21, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store float 2.000000e+00, ptr %22, align 4, !tbaa !9
  %72 = call { <2 x float>, float } @_ZN3P3DdvIffLm3EEENS_6VectorIDTdvixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(4) %22) #7
  %73 = getelementptr inbounds %"struct.P3D::Vector", ptr %19, i32 0, i32 0
  %74 = getelementptr inbounds %union.anon, ptr %73, i32 0, i32 0
  store { <2 x float>, float } %72, ptr %23, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %74, ptr align 8 %23, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #7
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = call { <2 x float>, float } @_ZN3P3DmiIffLm3EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %75, ptr noundef nonnull align 4 dereferenceable(12) %14) #7
  %77 = getelementptr inbounds %"struct.P3D::Vector", ptr %25, i32 0, i32 0
  %78 = getelementptr inbounds %union.anon, ptr %77, i32 0, i32 0
  store { <2 x float>, float } %76, ptr %26, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %78, ptr align 8 %26, i64 12, i1 false)
  %79 = call { <2 x float>, float } @_ZN3P3DmiIffLm3EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %19) #7
  %80 = getelementptr inbounds %"struct.P3D::Vector", ptr %24, i32 0, i32 0
  %81 = getelementptr inbounds %union.anon, ptr %80, i32 0, i32 0
  store { <2 x float>, float } %79, ptr %27, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %81, ptr align 8 %27, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #7
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = call { <2 x float>, float } @_ZN3P3DplIffLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %82, ptr noundef nonnull align 4 dereferenceable(12) %14) #7
  %84 = getelementptr inbounds %"struct.P3D::Vector", ptr %29, i32 0, i32 0
  %85 = getelementptr inbounds %union.anon, ptr %84, i32 0, i32 0
  store { <2 x float>, float } %83, ptr %30, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %85, ptr align 8 %30, i64 12, i1 false)
  %86 = call { <2 x float>, float } @_ZN3P3DmiIffLm3EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %29, ptr noundef nonnull align 4 dereferenceable(12) %19) #7
  %87 = getelementptr inbounds %"struct.P3D::Vector", ptr %28, i32 0, i32 0
  %88 = getelementptr inbounds %union.anon, ptr %87, i32 0, i32 0
  store { <2 x float>, float } %86, ptr %31, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %88, ptr align 8 %31, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %33) #7
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = call { <2 x float>, float } @_ZN3P3DmiIffLm3EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %89, ptr noundef nonnull align 4 dereferenceable(12) %14) #7
  %91 = getelementptr inbounds %"struct.P3D::Vector", ptr %33, i32 0, i32 0
  %92 = getelementptr inbounds %union.anon, ptr %91, i32 0, i32 0
  store { <2 x float>, float } %90, ptr %34, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %92, ptr align 8 %34, i64 12, i1 false)
  %93 = call { <2 x float>, float } @_ZN3P3DplIffLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %33, ptr noundef nonnull align 4 dereferenceable(12) %19) #7
  %94 = getelementptr inbounds %"struct.P3D::Vector", ptr %32, i32 0, i32 0
  %95 = getelementptr inbounds %union.anon, ptr %94, i32 0, i32 0
  store { <2 x float>, float } %93, ptr %35, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %95, ptr align 8 %35, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %36) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %37) #7
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = call { <2 x float>, float } @_ZN3P3DplIffLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %96, ptr noundef nonnull align 4 dereferenceable(12) %14) #7
  %98 = getelementptr inbounds %"struct.P3D::Vector", ptr %37, i32 0, i32 0
  %99 = getelementptr inbounds %union.anon, ptr %98, i32 0, i32 0
  store { <2 x float>, float } %97, ptr %38, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %99, ptr align 8 %38, i64 12, i1 false)
  %100 = call { <2 x float>, float } @_ZN3P3DplIffLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %37, ptr noundef nonnull align 4 dereferenceable(12) %19) #7
  %101 = getelementptr inbounds %"struct.P3D::Vector", ptr %36, i32 0, i32 0
  %102 = getelementptr inbounds %union.anon, ptr %101, i32 0, i32 0
  store { <2 x float>, float } %100, ptr %39, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %102, ptr align 8 %39, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #7
  %103 = call noalias noundef nonnull ptr @_Znam(i64 noundef 48) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %103, ptr align 4 %24, i64 12, i1 false), !tbaa.struct !11
  %104 = getelementptr inbounds %"struct.P3D::Vector", ptr %103, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %104, ptr align 4 %28, i64 12, i1 false), !tbaa.struct !11
  %105 = getelementptr inbounds %"struct.P3D::Vector", ptr %104, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %105, ptr align 4 %32, i64 12, i1 false), !tbaa.struct !11
  %106 = getelementptr inbounds %"struct.P3D::Vector", ptr %105, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %106, ptr align 4 %36, i64 12, i1 false), !tbaa.struct !11
  %107 = getelementptr inbounds %"struct.P3D::Vector", ptr %106, i64 1
  store ptr %103, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #7
  %108 = call noalias noundef nonnull ptr @_Znam(i64 noundef 24) #8
  %109 = getelementptr inbounds %"struct.P3D::Triangle", ptr %108, i32 0, i32 0
  %110 = getelementptr inbounds %struct.anon.11, ptr %109, i32 0, i32 0
  store i32 0, ptr %110, align 8, !tbaa !13
  %111 = getelementptr inbounds %struct.anon.11, ptr %109, i32 0, i32 1
  store i32 1, ptr %111, align 4, !tbaa !16
  %112 = getelementptr inbounds %struct.anon.11, ptr %109, i32 0, i32 2
  store i32 3, ptr %112, align 8, !tbaa !17
  %113 = getelementptr inbounds %"struct.P3D::Triangle", ptr %108, i64 1
  %114 = getelementptr inbounds %"struct.P3D::Triangle", ptr %113, i32 0, i32 0
  %115 = getelementptr inbounds %struct.anon.11, ptr %114, i32 0, i32 0
  store i32 0, ptr %115, align 4, !tbaa !13
  %116 = getelementptr inbounds %struct.anon.11, ptr %114, i32 0, i32 1
  store i32 3, ptr %116, align 4, !tbaa !16
  %117 = getelementptr inbounds %struct.anon.11, ptr %114, i32 0, i32 2
  store i32 2, ptr %117, align 4, !tbaa !17
  %118 = getelementptr inbounds %"struct.P3D::Triangle", ptr %113, i64 1
  store ptr %108, ptr %41, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #7
  %119 = call noalias noundef nonnull ptr @_Znam(i64 noundef 48) #8
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %119, ptr align 4 %120, i64 12, i1 false), !tbaa.struct !11
  %121 = getelementptr inbounds %"struct.P3D::Vector", ptr %119, i64 1
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %121, ptr align 4 %122, i64 12, i1 false), !tbaa.struct !11
  %123 = getelementptr inbounds %"struct.P3D::Vector", ptr %121, i64 1
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %123, ptr align 4 %124, i64 12, i1 false), !tbaa.struct !11
  %125 = getelementptr inbounds %"struct.P3D::Vector", ptr %123, i64 1
  %126 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %125, ptr align 4 %126, i64 12, i1 false), !tbaa.struct !11
  %127 = getelementptr inbounds %"struct.P3D::Vector", ptr %125, i64 1
  store ptr %119, ptr %42, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #7
  %128 = call noalias noundef nonnull ptr @_Znam(i64 noundef 32) #8
  call void @_ZN3P3D6VectorIfLm2EEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %128, float noundef 0.000000e+00, float noundef 0.000000e+00) #7
  %129 = getelementptr inbounds %"struct.P3D::Vector.7", ptr %128, i64 1
  call void @_ZN3P3D6VectorIfLm2EEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %129, float noundef 1.000000e+00, float noundef 0.000000e+00) #7
  %130 = getelementptr inbounds %"struct.P3D::Vector.7", ptr %129, i64 1
  call void @_ZN3P3D6VectorIfLm2EEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %130, float noundef 0.000000e+00, float noundef 1.000000e+00) #7
  %131 = getelementptr inbounds %"struct.P3D::Vector.7", ptr %130, i64 1
  call void @_ZN3P3D6VectorIfLm2EEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %131, float noundef 1.000000e+00, float noundef 1.000000e+00) #7
  %132 = getelementptr inbounds %"struct.P3D::Vector.7", ptr %131, i64 1
  store ptr %128, ptr %43, align 8, !tbaa !5
  store i1 false, ptr %44, align 1
  %133 = load ptr, ptr %40, align 8, !tbaa !5
  %134 = load ptr, ptr %41, align 8, !tbaa !5
  call void @_ZN3P3D8Graphics20ExtendedTriangleMeshC2EPKNS_6VectorIfLm3EEEiPKNS_8TriangleEi(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef %133, i32 noundef 4, ptr noundef %134, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 16, ptr %45) #7
  %135 = load ptr, ptr %42, align 8, !tbaa !5
  invoke void @_ZNSt10shared_ptrIA_KN3P3D6VectorIfLm3EEEEC2IS2_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef %135)
          to label %136 unwind label %142

136:                                              ; preds = %4
  invoke void @_ZN3P3D8Graphics20ExtendedTriangleMesh15setNormalBufferERKSt10shared_ptrIA_KNS_6VectorIfLm3EEEE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(16) %45)
          to label %137 unwind label %146

137:                                              ; preds = %136
  call void @_ZNSt12__shared_ptrIA_KN3P3D6VectorIfLm3EEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %45) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %48) #7
  %138 = load ptr, ptr %43, align 8, !tbaa !5
  invoke void @_ZNSt10shared_ptrIA_KN3P3D6VectorIfLm2EEEEC2IS2_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %48, ptr noundef %138)
          to label %139 unwind label %151

139:                                              ; preds = %137
  invoke void @_ZN3P3D8Graphics20ExtendedTriangleMesh11setUVBufferERKSt10shared_ptrIA_KNS_6VectorIfLm2EEEE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(16) %48)
          to label %140 unwind label %155

140:                                              ; preds = %139
  call void @_ZNSt12__shared_ptrIA_KN3P3D6VectorIfLm2EEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %48) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #7
  store i1 true, ptr %44, align 1
  %141 = load i1, ptr %44, align 1
  br i1 %141, label %161, label %160

142:                                              ; preds = %4
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %46, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %47, align 4
  br label %150

146:                                              ; preds = %136
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %46, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %47, align 4
  call void @_ZNSt12__shared_ptrIA_KN3P3D6VectorIfLm3EEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %45) #7
  br label %150

150:                                              ; preds = %146, %142
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #7
  br label %162

151:                                              ; preds = %137
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %46, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %47, align 4
  br label %159

155:                                              ; preds = %139
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %46, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %47, align 4
  call void @_ZNSt12__shared_ptrIA_KN3P3D6VectorIfLm2EEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %48) #7
  br label %159

159:                                              ; preds = %155, %151
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #7
  br label %162

160:                                              ; preds = %140
  call void @_ZN3P3D8Graphics20ExtendedTriangleMeshD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %0) #7
  br label %161

161:                                              ; preds = %160, %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #7
  ret void

162:                                              ; preds = %159, %150
  call void @_ZN3P3D8Graphics20ExtendedTriangleMeshD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %0) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #7
  br label %163

163:                                              ; preds = %162
  %164 = load ptr, ptr %46, align 8
  %165 = load i32, ptr %47, align 4
  %166 = insertvalue { ptr, i32 } poison, ptr %164, 0
  %167 = insertvalue { ptr, i32 } %166, i32 %165, 1
  resume { ptr, i32 } %167
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZN3P3DrmIffEENS_6VectorIDTmimlixfp_Li1Eixfp0_Li2Emlixfp_Li2Eixfp0_Li1EELm3EEERKNS1_IT_Lm3EEERKNS1_IT0_Lm3EEE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #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) #3

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

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

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

; 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)) #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6VectorIfLm2EEC2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #2 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 #5 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)) #2 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 #5 align 2

declare i32 @__gxx_personality_v0(...)

; 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 #2 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)) #2 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 #5 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 #2 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{i64 0, i64 12, !12}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTSN3P3D8TriangleUt_Ut_E", !15, i64 0, !15, i64 4, !15, i64 8}
!15 = !{!"int", !7, i64 0}
!16 = !{!14, !15, i64 4}
!17 = !{!14, !15, i64 8}


; 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.4", %"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.3", i32, i32 }
%"class.P3D::UniqueAlignedPointer" = type { ptr }
%"class.P3D::UniqueAlignedPointer.3" = type { ptr }
%"class.std::shared_ptr.4" = type { %"class.std::__shared_ptr.5" }
%"class.std::__shared_ptr.5" = 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" = type { %union.anon }
%union.anon = type { [3 x float] }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D8Graphics12MeshRegistry10createQuadERKNS_6VectorIfLm3EEES5_RKNS2_IfLm2EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::ExtendedTriangleMesh") align 8 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(8) %3) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"struct.P3D::Vector", align 4
  %6 = alloca %"struct.P3D::Vector", align 8
  %7 = alloca %"struct.P3D::Vector", align 8
  %8 = alloca %"struct.P3D::Vector", align 8
  %9 = alloca %"struct.P3D::Vector", align 8
  %10 = alloca float, align 4
  %11 = alloca %"struct.P3D::Vector", align 8
  %12 = alloca %"struct.P3D::Vector", align 8
  %13 = alloca float, align 4
  %14 = alloca %"struct.P3D::Vector", align 8
  %15 = alloca %"struct.P3D::Vector", align 8
  %16 = alloca %"struct.P3D::Vector", align 8
  %17 = alloca %"struct.P3D::Vector", align 8
  %18 = alloca %"class.std::shared_ptr", align 8
  %19 = alloca %"class.std::shared_ptr.4", align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #7
  call void @_ZN3P3D6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %5, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #7
  %20 = call { <2 x float>, float } @_ZN3P3DrmIffEENS_6VectorIDTmimlixfp_Li1Eixfp0_Li2Emlixfp_Li2Eixfp0_Li1EELm3EEERKNS1_IT_Lm3EEERKNS1_IT0_Lm3EEE(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %2) #7
  %.fca.0.extract61 = extractvalue { <2 x float>, float } %20, 0
  %.fca.1.extract62 = extractvalue { <2 x float>, float } %20, 1
  store <2 x float> %.fca.0.extract61, ptr %6, align 8
  %.sroa.264.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  store float %.fca.1.extract62, ptr %.sroa.264.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #7
  %21 = call { <2 x float>, float } @_ZN3P3DrmIffEENS_6VectorIDTmimlixfp_Li1Eixfp0_Li2Emlixfp_Li2Eixfp0_Li1EELm3EEERKNS1_IT_Lm3EEERKNS1_IT0_Lm3EEE(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %6) #7
  %.fca.0.extract57 = extractvalue { <2 x float>, float } %21, 0
  %.fca.1.extract58 = extractvalue { <2 x float>, float } %21, 1
  store <2 x float> %.fca.0.extract57, ptr %7, align 8
  %.sroa.260.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  store float %.fca.1.extract58, ptr %.sroa.260.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #7
  %22 = call { <2 x float>, float } @_ZN3P3DmlIffLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(4) %3) #7
  %.fca.0.extract53 = extractvalue { <2 x float>, float } %22, 0
  %.fca.1.extract54 = extractvalue { <2 x float>, float } %22, 1
  store <2 x float> %.fca.0.extract53, ptr %9, align 8
  %.sroa.256.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  store float %.fca.1.extract54, ptr %.sroa.256.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  store float 2.000000e+00, ptr %10, align 4, !tbaa !5
  %23 = call { <2 x float>, float } @_ZN3P3DdvIffLm3EEENS_6VectorIDTdvixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(4) %10) #7
  %.fca.0.extract49 = extractvalue { <2 x float>, float } %23, 0
  %.fca.1.extract50 = extractvalue { <2 x float>, float } %23, 1
  store <2 x float> %.fca.0.extract49, ptr %8, align 8
  %.sroa.252.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  store float %.fca.1.extract50, ptr %.sroa.252.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #7
  %24 = getelementptr inbounds i8, ptr %3, i64 4
  %25 = call { <2 x float>, float } @_ZN3P3DmlIffLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(4) %24) #7
  %.fca.0.extract45 = extractvalue { <2 x float>, float } %25, 0
  %.fca.1.extract46 = extractvalue { <2 x float>, float } %25, 1
  store <2 x float> %.fca.0.extract45, ptr %12, align 8
  %.sroa.248.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  store float %.fca.1.extract46, ptr %.sroa.248.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  store float 2.000000e+00, ptr %13, align 4, !tbaa !5
  %26 = call { <2 x float>, float } @_ZN3P3DdvIffLm3EEENS_6VectorIDTdvixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(4) %13) #7
  %.fca.0.extract41 = extractvalue { <2 x float>, float } %26, 0
  %.fca.1.extract42 = extractvalue { <2 x float>, float } %26, 1
  store <2 x float> %.fca.0.extract41, ptr %11, align 8
  %.sroa.244.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  store float %.fca.1.extract42, ptr %.sroa.244.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #7
  %27 = call { <2 x float>, float } @_ZN3P3DmiIffLm3EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %8) #7
  %.fca.0.extract35 = extractvalue { <2 x float>, float } %27, 0
  %.fca.1.extract36 = extractvalue { <2 x float>, float } %27, 1
  store <2 x float> %.fca.0.extract35, ptr %14, align 8
  %.sroa.238.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 8
  store float %.fca.1.extract36, ptr %.sroa.238.0..sroa_idx, align 8
  %28 = call { <2 x float>, float } @_ZN3P3DmiIffLm3EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) %11) #7
  %.fca.0.extract31 = extractvalue { <2 x float>, float } %28, 0
  %.fca.1.extract32 = extractvalue { <2 x float>, float } %28, 1
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #7
  %29 = call { <2 x float>, float } @_ZN3P3DplIffLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %8) #7
  %.fca.0.extract25 = extractvalue { <2 x float>, float } %29, 0
  %.fca.1.extract26 = extractvalue { <2 x float>, float } %29, 1
  store <2 x float> %.fca.0.extract25, ptr %15, align 8
  %.sroa.228.0..sroa_idx = getelementptr inbounds i8, ptr %15, i64 8
  store float %.fca.1.extract26, ptr %.sroa.228.0..sroa_idx, align 8
  %30 = call { <2 x float>, float } @_ZN3P3DmiIffLm3EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %11) #7
  %.fca.0.extract21 = extractvalue { <2 x float>, float } %30, 0
  %.fca.1.extract22 = extractvalue { <2 x float>, float } %30, 1
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #7
  %31 = call { <2 x float>, float } @_ZN3P3DmiIffLm3EEENS_6VectorIDTmiixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %8) #7
  %.fca.0.extract15 = extractvalue { <2 x float>, float } %31, 0
  %.fca.1.extract16 = extractvalue { <2 x float>, float } %31, 1
  store <2 x float> %.fca.0.extract15, ptr %16, align 8
  %.sroa.218.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 8
  store float %.fca.1.extract16, ptr %.sroa.218.0..sroa_idx, align 8
  %32 = call { <2 x float>, float } @_ZN3P3DplIffLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %11) #7
  %.fca.0.extract11 = extractvalue { <2 x float>, float } %32, 0
  %.fca.1.extract12 = extractvalue { <2 x float>, float } %32, 1
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #7
  %33 = call { <2 x float>, float } @_ZN3P3DplIffLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %8) #7
  %.fca.0.extract6 = extractvalue { <2 x float>, float } %33, 0
  %.fca.1.extract7 = extractvalue { <2 x float>, float } %33, 1
  store <2 x float> %.fca.0.extract6, ptr %17, align 8
  %.sroa.29.0..sroa_idx = getelementptr inbounds i8, ptr %17, i64 8
  store float %.fca.1.extract7, ptr %.sroa.29.0..sroa_idx, align 8
  %34 = call { <2 x float>, float } @_ZN3P3DplIffLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %11) #7
  %.fca.0.extract = extractvalue { <2 x float>, float } %34, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %34, 1
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #7
  %35 = call noalias noundef nonnull dereferenceable(48) ptr @_Znam(i64 noundef 48) #8
  store <2 x float> %.fca.0.extract31, ptr %35, align 8
  %.sroa.540.0..sroa_idx = getelementptr inbounds i8, ptr %35, i64 8
  store float %.fca.1.extract32, ptr %.sroa.540.0..sroa_idx, align 8, !tbaa !9
  %36 = getelementptr inbounds i8, ptr %35, i64 12
  store <2 x float> %.fca.0.extract21, ptr %36, align 4
  %.sroa.530.0..sroa_idx = getelementptr inbounds i8, ptr %35, i64 20
  store float %.fca.1.extract22, ptr %.sroa.530.0..sroa_idx, align 4, !tbaa !9
  %37 = getelementptr inbounds i8, ptr %35, i64 24
  store <2 x float> %.fca.0.extract11, ptr %37, align 8
  %.sroa.520.0..sroa_idx = getelementptr inbounds i8, ptr %35, i64 32
  store float %.fca.1.extract12, ptr %.sroa.520.0..sroa_idx, align 8, !tbaa !9
  %38 = getelementptr inbounds i8, ptr %35, i64 36
  store <2 x float> %.fca.0.extract, ptr %38, align 4
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %35, i64 44
  store float %.fca.1.extract, ptr %.sroa.5.0..sroa_idx, align 4, !tbaa !9
  %39 = call noalias noundef nonnull dereferenceable(24) ptr @_Znam(i64 noundef 24) #8
  store <4 x i32> <i32 0, i32 1, i32 3, i32 0>, ptr %39, align 8, !tbaa !10
  %40 = getelementptr inbounds i8, ptr %39, i64 16
  store i32 3, ptr %40, align 4, !tbaa !12
  %41 = getelementptr inbounds i8, ptr %39, i64 20
  store i32 2, ptr %41, align 4, !tbaa !14
  %42 = call noalias noundef nonnull dereferenceable(48) ptr @_Znam(i64 noundef 48) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %42, ptr noundef nonnull align 4 dereferenceable(12) %2, i64 12, i1 false), !tbaa.struct !15
  %43 = getelementptr inbounds i8, ptr %42, i64 12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %43, ptr noundef nonnull align 4 dereferenceable(12) %2, i64 12, i1 false), !tbaa.struct !15
  %44 = getelementptr inbounds i8, ptr %42, i64 24
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %44, ptr noundef nonnull align 4 dereferenceable(12) %2, i64 12, i1 false), !tbaa.struct !15
  %45 = getelementptr inbounds i8, ptr %42, i64 36
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %45, ptr noundef nonnull align 4 dereferenceable(12) %2, i64 12, i1 false), !tbaa.struct !15
  %46 = call noalias noundef nonnull dereferenceable(32) ptr @_Znam(i64 noundef 32) #8
  call void @_ZN3P3D6VectorIfLm2EEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %46, float noundef 0.000000e+00, float noundef 0.000000e+00) #7
  %47 = getelementptr inbounds i8, ptr %46, i64 8
  call void @_ZN3P3D6VectorIfLm2EEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %47, float noundef 1.000000e+00, float noundef 0.000000e+00) #7
  %48 = getelementptr inbounds i8, ptr %46, i64 16
  call void @_ZN3P3D6VectorIfLm2EEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %48, float noundef 0.000000e+00, float noundef 1.000000e+00) #7
  %49 = getelementptr inbounds i8, ptr %46, i64 24
  call void @_ZN3P3D6VectorIfLm2EEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %49, float noundef 1.000000e+00, float noundef 1.000000e+00) #7
  call void @_ZN3P3D8Graphics20ExtendedTriangleMeshC2EPKNS_6VectorIfLm3EEEiPKNS_8TriangleEi(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull %35, i32 noundef 4, ptr noundef nonnull %39, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  invoke void @_ZNSt10shared_ptrIA_KN3P3D6VectorIfLm3EEEEC2IS2_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull %42)
          to label %50 unwind label %52

50:                                               ; preds = %4
  call void @_ZN3P3D8Graphics20ExtendedTriangleMesh15setNormalBufferERKSt10shared_ptrIA_KNS_6VectorIfLm3EEEE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(16) %18)
  call void @_ZNSt12__shared_ptrIA_KN3P3D6VectorIfLm3EEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #7
  invoke void @_ZNSt10shared_ptrIA_KN3P3D6VectorIfLm2EEEEC2IS2_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull %46)
          to label %51 unwind label %54

51:                                               ; preds = %50
  call void @_ZN3P3D8Graphics20ExtendedTriangleMesh11setUVBufferERKSt10shared_ptrIA_KNS_6VectorIfLm2EEEE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(16) %19)
  call void @_ZNSt12__shared_ptrIA_KN3P3D6VectorIfLm2EEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #7
  ret void

52:                                               ; preds = %4
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  br label %56

54:                                               ; preds = %50
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #7
  br label %56

56:                                               ; preds = %54, %52
  %.pn = phi { ptr, i32 } [ %55, %54 ], [ %53, %52 ]
  call void @_ZN3P3D8Graphics20ExtendedTriangleMeshD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %0) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #7
  resume { ptr, i32 } %.pn
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZN3P3DrmIffEENS_6VectorIDTmimlixfp_Li1Eixfp0_Li2Emlixfp_Li2Eixfp0_Li1EELm3EEERKNS1_IT_Lm3EEERKNS1_IT0_Lm3EEE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #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) #3

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

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

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

; 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 #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZN3P3DplIffLm3EEENS_6VectorIDTplixfp_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 #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6VectorIfLm2EEC2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #2 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 #5 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 #2 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 #5 align 2

declare i32 @__gxx_personality_v0(...)

; 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 #2 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 #2 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 #5 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 #2 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 4}
!13 = !{!"_ZTSN3P3D8TriangleUt_Ut_E", !11, i64 0, !11, i64 4, !11, i64 8}
!14 = !{!13, !11, i64 8}
!15 = !{i64 0, i64 12, !9}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass