; LLVM IR from niessner/Matterport :: code/gaps/pkgs/R3Shapes/R3Draw.ll (ZNK10R3Triangle4DrawE7RNFlags)

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

%class.RNFlags = type { i64 }
%class.R3Triangle = type <{ %class.R3Surface, [3 x ptr], %class.R3Plane, %class.R3Box, %class.RNFlags, i32, [4 x i8] }>
%class.R3Surface = type { %class.R3Shape }
%class.R3Shape = type { ptr }
%class.R3Plane = type { %class.R3Vector, double }
%class.R3Vector = type { [3 x double] }
%class.R3Box = type { %class.R3Solid, %class.R3Point, %class.R3Point }
%class.R3Solid = type { %class.R3Shape }
%class.R3Point = type { [3 x double] }
%class.R3TriangleVertex = type <{ %class.R3Point, %class.R3Vector, %class.RNRgb, %class.R2Point, %class.RNFlags, i32, [4 x i8] }>
%class.RNRgb = type { [3 x double] }
%class.R2Point = type { [2 x double] }

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24)) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK10R3Triangle4DrawE7RNFlags(ptr noundef nonnull align 8 dereferenceable(132) %0, i64 %1) unnamed_addr #2 align 2 {
  %3 = alloca %class.RNFlags, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %class.RNFlags, align 8
  %6 = alloca %class.RNFlags, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %class.RNFlags, align 8
  %11 = alloca %class.RNFlags, align 8
  %12 = alloca %class.RNFlags, align 8
  %13 = alloca %class.RNFlags, align 8
  %14 = alloca %class.RNFlags, align 8
  %15 = alloca i32, align 4
  %16 = alloca %class.RNFlags, align 8
  %17 = alloca %class.RNFlags, align 8
  %18 = alloca %class.RNFlags, align 8
  %19 = alloca %class.RNFlags, align 8
  %20 = alloca %class.RNFlags, align 8
  %21 = getelementptr inbounds %class.RNFlags, ptr %3, i32 0, i32 0
  store i64 %1, ptr %21, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  %22 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %23 = call i64 @_ZNK10R3Triangle5FlagsEv(ptr noundef nonnull align 8 dereferenceable(132) %22)
  %24 = getelementptr inbounds %class.RNFlags, ptr %6, i32 0, i32 0
  store i64 %23, ptr %24, align 8
  %25 = call noundef i64 @_ZNK7RNFlagscvmEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %26 = call noundef i64 @_ZNK7RNFlagscvmEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %27 = and i64 %25, %26
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %27)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  %28 = call noundef i64 @_ZNK7RNFlagscvmEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  switch i64 %28, label %296 [
    i64 2, label %29
    i64 18, label %42
    i64 1026, label %56
    i64 274, label %81
    i64 562, label %106
    i64 50, label %132
    i64 818, label %190
    i64 306, label %227
  ]

29:                                               ; preds = %2
  call void @_Z14R3BeginPolygonv()
  %30 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %31 = getelementptr inbounds [3 x ptr], ptr %30, i64 0, i64 0
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  %33 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %32)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %33)
  %34 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %35 = getelementptr inbounds [3 x ptr], ptr %34, i64 0, i64 1
  %36 = load ptr, ptr %35, align 8, !tbaa !5
  %37 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %36)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %37)
  %38 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %39 = getelementptr inbounds [3 x ptr], ptr %38, i64 0, i64 2
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %41 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %40)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %41)
  call void @_Z12R3EndPolygonv()
  br label %426

42:                                               ; preds = %2
  call void @_Z14R3BeginPolygonv()
  %43 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10R3Triangle6NormalEv(ptr noundef nonnull align 8 dereferenceable(132) %22)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %43)
  %44 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %45 = getelementptr inbounds [3 x ptr], ptr %44, i64 0, i64 0
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  %47 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %46)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %47)
  %48 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %49 = getelementptr inbounds [3 x ptr], ptr %48, i64 0, i64 1
  %50 = load ptr, ptr %49, align 8, !tbaa !5
  %51 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %50)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %51)
  %52 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %53 = getelementptr inbounds [3 x ptr], ptr %52, i64 0, i64 2
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  %55 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %54)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %55)
  call void @_Z12R3EndPolygonv()
  br label %426

56:                                               ; preds = %2
  call void @_Z14R3BeginPolygonv()
  %57 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %58 = getelementptr inbounds [3 x ptr], ptr %57, i64 0, i64 0
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex5ColorEv(ptr noundef nonnull align 8 dereferenceable(100) %59)
  call void @_Z9RNLoadRgbRK5RNRgb(ptr noundef nonnull align 8 dereferenceable(24) %60)
  %61 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %62 = getelementptr inbounds [3 x ptr], ptr %61, i64 0, i64 0
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  %64 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %63)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %64)
  %65 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %66 = getelementptr inbounds [3 x ptr], ptr %65, i64 0, i64 1
  %67 = load ptr, ptr %66, align 8, !tbaa !5
  %68 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex5ColorEv(ptr noundef nonnull align 8 dereferenceable(100) %67)
  call void @_Z9RNLoadRgbRK5RNRgb(ptr noundef nonnull align 8 dereferenceable(24) %68)
  %69 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %70 = getelementptr inbounds [3 x ptr], ptr %69, i64 0, i64 1
  %71 = load ptr, ptr %70, align 8, !tbaa !5
  %72 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %71)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %72)
  %73 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %74 = getelementptr inbounds [3 x ptr], ptr %73, i64 0, i64 2
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  %76 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex5ColorEv(ptr noundef nonnull align 8 dereferenceable(100) %75)
  call void @_Z9RNLoadRgbRK5RNRgb(ptr noundef nonnull align 8 dereferenceable(24) %76)
  %77 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %78 = getelementptr inbounds [3 x ptr], ptr %77, i64 0, i64 2
  %79 = load ptr, ptr %78, align 8, !tbaa !5
  %80 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %79)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %80)
  call void @_Z12R3EndPolygonv()
  br label %426

81:                                               ; preds = %2
  call void @_Z14R3BeginPolygonv()
  %82 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %83 = getelementptr inbounds [3 x ptr], ptr %82, i64 0, i64 0
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  %85 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex6NormalEv(ptr noundef nonnull align 8 dereferenceable(100) %84)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %85)
  %86 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %87 = getelementptr inbounds [3 x ptr], ptr %86, i64 0, i64 0
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  %89 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %88)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %89)
  %90 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %91 = getelementptr inbounds [3 x ptr], ptr %90, i64 0, i64 1
  %92 = load ptr, ptr %91, align 8, !tbaa !5
  %93 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex6NormalEv(ptr noundef nonnull align 8 dereferenceable(100) %92)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %93)
  %94 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %95 = getelementptr inbounds [3 x ptr], ptr %94, i64 0, i64 1
  %96 = load ptr, ptr %95, align 8, !tbaa !5
  %97 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %96)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %97)
  %98 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %99 = getelementptr inbounds [3 x ptr], ptr %98, i64 0, i64 2
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  %101 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex6NormalEv(ptr noundef nonnull align 8 dereferenceable(100) %100)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %101)
  %102 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %103 = getelementptr inbounds [3 x ptr], ptr %102, i64 0, i64 2
  %104 = load ptr, ptr %103, align 8, !tbaa !5
  %105 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %104)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %105)
  call void @_Z12R3EndPolygonv()
  br label %426

106:                                              ; preds = %2
  call void @_Z14R3BeginPolygonv()
  %107 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10R3Triangle6NormalEv(ptr noundef nonnull align 8 dereferenceable(132) %22)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %107)
  %108 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %109 = getelementptr inbounds [3 x ptr], ptr %108, i64 0, i64 0
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  %111 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK16R3TriangleVertex13TextureCoordsEv(ptr noundef nonnull align 8 dereferenceable(100) %110)
  call void @_Z19R3LoadTextureCoordsRK7R2Point(ptr noundef nonnull align 8 dereferenceable(16) %111)
  %112 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %113 = getelementptr inbounds [3 x ptr], ptr %112, i64 0, i64 0
  %114 = load ptr, ptr %113, align 8, !tbaa !5
  %115 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %114)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %115)
  %116 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %117 = getelementptr inbounds [3 x ptr], ptr %116, i64 0, i64 1
  %118 = load ptr, ptr %117, align 8, !tbaa !5
  %119 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK16R3TriangleVertex13TextureCoordsEv(ptr noundef nonnull align 8 dereferenceable(100) %118)
  call void @_Z19R3LoadTextureCoordsRK7R2Point(ptr noundef nonnull align 8 dereferenceable(16) %119)
  %120 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %121 = getelementptr inbounds [3 x ptr], ptr %120, i64 0, i64 1
  %122 = load ptr, ptr %121, align 8, !tbaa !5
  %123 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %122)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %123)
  %124 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %125 = getelementptr inbounds [3 x ptr], ptr %124, i64 0, i64 2
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  %127 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK16R3TriangleVertex13TextureCoordsEv(ptr noundef nonnull align 8 dereferenceable(100) %126)
  call void @_Z19R3LoadTextureCoordsRK7R2Point(ptr noundef nonnull align 8 dereferenceable(16) %127)
  %128 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %129 = getelementptr inbounds [3 x ptr], ptr %128, i64 0, i64 2
  %130 = load ptr, ptr %129, align 8, !tbaa !5
  %131 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %130)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %131)
  call void @_Z12R3EndPolygonv()
  br label %426

132:                                              ; preds = %2
  %133 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10R3Triangle6NormalEv(ptr noundef nonnull align 8 dereferenceable(132) %22)
  %134 = call noundef i32 @_ZNK8R3Vector12MaxDimensionEv(ptr noundef nonnull align 8 dereferenceable(24) %133)
  store i32 %134, ptr %7, align 4, !tbaa !9
  %135 = load i32, ptr %7, align 4, !tbaa !9
  %136 = add nsw i32 %135, 1
  %137 = srem i32 %136, 3
  store i32 %137, ptr %8, align 4, !tbaa !9
  %138 = load i32, ptr %7, align 4, !tbaa !9
  %139 = add nsw i32 %138, 2
  %140 = srem i32 %139, 3
  store i32 %140, ptr %9, align 4, !tbaa !9
  call void @_Z14R3BeginPolygonv()
  %141 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10R3Triangle6NormalEv(ptr noundef nonnull align 8 dereferenceable(132) %22)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %141)
  %142 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %143 = getelementptr inbounds [3 x ptr], ptr %142, i64 0, i64 0
  %144 = load ptr, ptr %143, align 8, !tbaa !5
  %145 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %144)
  %146 = load i32, ptr %8, align 4, !tbaa !9
  %147 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %145, i32 noundef %146)
  %148 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %149 = getelementptr inbounds [3 x ptr], ptr %148, i64 0, i64 0
  %150 = load ptr, ptr %149, align 8, !tbaa !5
  %151 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %150)
  %152 = load i32, ptr %9, align 4, !tbaa !9
  %153 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %151, i32 noundef %152)
  call void @_Z19R3LoadTextureCoordsdd(double noundef %147, double noundef %153)
  %154 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %155 = getelementptr inbounds [3 x ptr], ptr %154, i64 0, i64 0
  %156 = load ptr, ptr %155, align 8, !tbaa !5
  %157 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %156)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %157)
  %158 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %159 = getelementptr inbounds [3 x ptr], ptr %158, i64 0, i64 1
  %160 = load ptr, ptr %159, align 8, !tbaa !5
  %161 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %160)
  %162 = load i32, ptr %8, align 4, !tbaa !9
  %163 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %161, i32 noundef %162)
  %164 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %165 = getelementptr inbounds [3 x ptr], ptr %164, i64 0, i64 1
  %166 = load ptr, ptr %165, align 8, !tbaa !5
  %167 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %166)
  %168 = load i32, ptr %9, align 4, !tbaa !9
  %169 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %167, i32 noundef %168)
  call void @_Z19R3LoadTextureCoordsdd(double noundef %163, double noundef %169)
  %170 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %171 = getelementptr inbounds [3 x ptr], ptr %170, i64 0, i64 1
  %172 = load ptr, ptr %171, align 8, !tbaa !5
  %173 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %172)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %173)
  %174 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %175 = getelementptr inbounds [3 x ptr], ptr %174, i64 0, i64 2
  %176 = load ptr, ptr %175, align 8, !tbaa !5
  %177 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %176)
  %178 = load i32, ptr %8, align 4, !tbaa !9
  %179 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %177, i32 noundef %178)
  %180 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %181 = getelementptr inbounds [3 x ptr], ptr %180, i64 0, i64 2
  %182 = load ptr, ptr %181, align 8, !tbaa !5
  %183 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %182)
  %184 = load i32, ptr %9, align 4, !tbaa !9
  %185 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %183, i32 noundef %184)
  call void @_Z19R3LoadTextureCoordsdd(double noundef %179, double noundef %185)
  %186 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %187 = getelementptr inbounds [3 x ptr], ptr %186, i64 0, i64 2
  %188 = load ptr, ptr %187, align 8, !tbaa !5
  %189 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %188)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %189)
  call void @_Z12R3EndPolygonv()
  br label %426

190:                                              ; preds = %2
  call void @_Z14R3BeginPolygonv()
  %191 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %192 = getelementptr inbounds [3 x ptr], ptr %191, i64 0, i64 0
  %193 = load ptr, ptr %192, align 8, !tbaa !5
  %194 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK16R3TriangleVertex13TextureCoordsEv(ptr noundef nonnull align 8 dereferenceable(100) %193)
  call void @_Z19R3LoadTextureCoordsRK7R2Point(ptr noundef nonnull align 8 dereferenceable(16) %194)
  %195 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %196 = getelementptr inbounds [3 x ptr], ptr %195, i64 0, i64 0
  %197 = load ptr, ptr %196, align 8, !tbaa !5
  %198 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex6NormalEv(ptr noundef nonnull align 8 dereferenceable(100) %197)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %198)
  %199 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %200 = getelementptr inbounds [3 x ptr], ptr %199, i64 0, i64 0
  %201 = load ptr, ptr %200, align 8, !tbaa !5
  %202 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %201)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %202)
  %203 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %204 = getelementptr inbounds [3 x ptr], ptr %203, i64 0, i64 1
  %205 = load ptr, ptr %204, align 8, !tbaa !5
  %206 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK16R3TriangleVertex13TextureCoordsEv(ptr noundef nonnull align 8 dereferenceable(100) %205)
  call void @_Z19R3LoadTextureCoordsRK7R2Point(ptr noundef nonnull align 8 dereferenceable(16) %206)
  %207 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %208 = getelementptr inbounds [3 x ptr], ptr %207, i64 0, i64 1
  %209 = load ptr, ptr %208, align 8, !tbaa !5
  %210 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex6NormalEv(ptr noundef nonnull align 8 dereferenceable(100) %209)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %210)
  %211 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %212 = getelementptr inbounds [3 x ptr], ptr %211, i64 0, i64 1
  %213 = load ptr, ptr %212, align 8, !tbaa !5
  %214 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %213)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %214)
  %215 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %216 = getelementptr inbounds [3 x ptr], ptr %215, i64 0, i64 2
  %217 = load ptr, ptr %216, align 8, !tbaa !5
  %218 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK16R3TriangleVertex13TextureCoordsEv(ptr noundef nonnull align 8 dereferenceable(100) %217)
  call void @_Z19R3LoadTextureCoordsRK7R2Point(ptr noundef nonnull align 8 dereferenceable(16) %218)
  %219 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %220 = getelementptr inbounds [3 x ptr], ptr %219, i64 0, i64 2
  %221 = load ptr, ptr %220, align 8, !tbaa !5
  %222 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex6NormalEv(ptr noundef nonnull align 8 dereferenceable(100) %221)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %222)
  %223 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %224 = getelementptr inbounds [3 x ptr], ptr %223, i64 0, i64 2
  %225 = load ptr, ptr %224, align 8, !tbaa !5
  %226 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %225)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %226)
  call void @_Z12R3EndPolygonv()
  br label %426

227:                                              ; preds = %2
  %228 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10R3Triangle6NormalEv(ptr noundef nonnull align 8 dereferenceable(132) %22)
  %229 = call noundef i32 @_ZNK8R3Vector12MaxDimensionEv(ptr noundef nonnull align 8 dereferenceable(24) %228)
  store i32 %229, ptr %7, align 4, !tbaa !9
  %230 = load i32, ptr %7, align 4, !tbaa !9
  %231 = add nsw i32 %230, 1
  %232 = srem i32 %231, 3
  store i32 %232, ptr %8, align 4, !tbaa !9
  %233 = load i32, ptr %7, align 4, !tbaa !9
  %234 = add nsw i32 %233, 2
  %235 = srem i32 %234, 3
  store i32 %235, ptr %9, align 4, !tbaa !9
  call void @_Z14R3BeginPolygonv()
  %236 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %237 = getelementptr inbounds [3 x ptr], ptr %236, i64 0, i64 0
  %238 = load ptr, ptr %237, align 8, !tbaa !5
  %239 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %238)
  %240 = load i32, ptr %8, align 4, !tbaa !9
  %241 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %239, i32 noundef %240)
  %242 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %243 = getelementptr inbounds [3 x ptr], ptr %242, i64 0, i64 0
  %244 = load ptr, ptr %243, align 8, !tbaa !5
  %245 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %244)
  %246 = load i32, ptr %9, align 4, !tbaa !9
  %247 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %245, i32 noundef %246)
  call void @_Z19R3LoadTextureCoordsdd(double noundef %241, double noundef %247)
  %248 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %249 = getelementptr inbounds [3 x ptr], ptr %248, i64 0, i64 0
  %250 = load ptr, ptr %249, align 8, !tbaa !5
  %251 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex6NormalEv(ptr noundef nonnull align 8 dereferenceable(100) %250)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %251)
  %252 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %253 = getelementptr inbounds [3 x ptr], ptr %252, i64 0, i64 0
  %254 = load ptr, ptr %253, align 8, !tbaa !5
  %255 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %254)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %255)
  %256 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %257 = getelementptr inbounds [3 x ptr], ptr %256, i64 0, i64 1
  %258 = load ptr, ptr %257, align 8, !tbaa !5
  %259 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %258)
  %260 = load i32, ptr %8, align 4, !tbaa !9
  %261 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %259, i32 noundef %260)
  %262 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %263 = getelementptr inbounds [3 x ptr], ptr %262, i64 0, i64 1
  %264 = load ptr, ptr %263, align 8, !tbaa !5
  %265 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %264)
  %266 = load i32, ptr %9, align 4, !tbaa !9
  %267 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %265, i32 noundef %266)
  call void @_Z19R3LoadTextureCoordsdd(double noundef %261, double noundef %267)
  %268 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %269 = getelementptr inbounds [3 x ptr], ptr %268, i64 0, i64 1
  %270 = load ptr, ptr %269, align 8, !tbaa !5
  %271 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex6NormalEv(ptr noundef nonnull align 8 dereferenceable(100) %270)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %271)
  %272 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %273 = getelementptr inbounds [3 x ptr], ptr %272, i64 0, i64 1
  %274 = load ptr, ptr %273, align 8, !tbaa !5
  %275 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %274)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %275)
  %276 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %277 = getelementptr inbounds [3 x ptr], ptr %276, i64 0, i64 2
  %278 = load ptr, ptr %277, align 8, !tbaa !5
  %279 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %278)
  %280 = load i32, ptr %8, align 4, !tbaa !9
  %281 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %279, i32 noundef %280)
  %282 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %283 = getelementptr inbounds [3 x ptr], ptr %282, i64 0, i64 2
  %284 = load ptr, ptr %283, align 8, !tbaa !5
  %285 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %284)
  %286 = load i32, ptr %9, align 4, !tbaa !9
  %287 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %285, i32 noundef %286)
  call void @_Z19R3LoadTextureCoordsdd(double noundef %281, double noundef %287)
  %288 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %289 = getelementptr inbounds [3 x ptr], ptr %288, i64 0, i64 2
  %290 = load ptr, ptr %289, align 8, !tbaa !5
  %291 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex6NormalEv(ptr noundef nonnull align 8 dereferenceable(100) %290)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %291)
  %292 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %293 = getelementptr inbounds [3 x ptr], ptr %292, i64 0, i64 2
  %294 = load ptr, ptr %293, align 8, !tbaa !5
  %295 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %294)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %295)
  call void @_Z12R3EndPolygonv()
  br label %426

296:                                              ; preds = %2
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %10, i64 noundef 2)
  %297 = getelementptr inbounds %class.RNFlags, ptr %10, i32 0, i32 0
  %298 = load i64, ptr %297, align 8
  %299 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 %298)
  %300 = icmp ne i32 %299, 0
  br i1 %300, label %301, label %407

301:                                              ; preds = %296
  call void @_Z14R3BeginPolygonv()
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %11, i64 noundef 16)
  %302 = getelementptr inbounds %class.RNFlags, ptr %11, i32 0, i32 0
  %303 = load i64, ptr %302, align 8
  %304 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 %303)
  %305 = icmp ne i32 %304, 0
  br i1 %305, label %306, label %313

306:                                              ; preds = %301
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef 256)
  %307 = getelementptr inbounds %class.RNFlags, ptr %12, i32 0, i32 0
  %308 = load i64, ptr %307, align 8
  %309 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 %308)
  %310 = icmp ne i32 %309, 0
  br i1 %310, label %313, label %311

311:                                              ; preds = %306
  %312 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10R3Triangle6NormalEv(ptr noundef nonnull align 8 dereferenceable(132) %22)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %312)
  br label %313

313:                                              ; preds = %311, %306, %301
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %13, i64 noundef 512)
  %314 = getelementptr inbounds %class.RNFlags, ptr %13, i32 0, i32 0
  %315 = load i64, ptr %314, align 8
  %316 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 %315)
  %317 = icmp ne i32 %316, 0
  br i1 %317, label %318, label %332

318:                                              ; preds = %313
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %14, i64 noundef 512)
  %319 = getelementptr inbounds %class.RNFlags, ptr %14, i32 0, i32 0
  %320 = load i64, ptr %319, align 8
  %321 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 %320)
  %322 = icmp ne i32 %321, 0
  br i1 %322, label %332, label %323

323:                                              ; preds = %318
  %324 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10R3Triangle6NormalEv(ptr noundef nonnull align 8 dereferenceable(132) %22)
  %325 = call noundef i32 @_ZNK8R3Vector12MaxDimensionEv(ptr noundef nonnull align 8 dereferenceable(24) %324)
  store i32 %325, ptr %7, align 4, !tbaa !9
  %326 = load i32, ptr %7, align 4, !tbaa !9
  %327 = add nsw i32 %326, 1
  %328 = srem i32 %327, 3
  store i32 %328, ptr %8, align 4, !tbaa !9
  %329 = load i32, ptr %7, align 4, !tbaa !9
  %330 = add nsw i32 %329, 2
  %331 = srem i32 %330, 3
  store i32 %331, ptr %9, align 4, !tbaa !9
  br label %332

332:                                              ; preds = %323, %318, %313
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %333

333:                                              ; preds = %403, %332
  %334 = load i32, ptr %15, align 4, !tbaa !9
  %335 = icmp slt i32 %334, 3
  br i1 %335, label %337, label %336

336:                                              ; preds = %333
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %406

337:                                              ; preds = %333
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %16, i64 noundef 1024)
  %338 = getelementptr inbounds %class.RNFlags, ptr %16, i32 0, i32 0
  %339 = load i64, ptr %338, align 8
  %340 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 %339)
  %341 = icmp ne i32 %340, 0
  br i1 %341, label %342, label %349

342:                                              ; preds = %337
  %343 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %344 = load i32, ptr %15, align 4, !tbaa !9
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds [3 x ptr], ptr %343, i64 0, i64 %345
  %347 = load ptr, ptr %346, align 8, !tbaa !5
  %348 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex5ColorEv(ptr noundef nonnull align 8 dereferenceable(100) %347)
  call void @_Z9RNLoadRgbRK5RNRgb(ptr noundef nonnull align 8 dereferenceable(24) %348)
  br label %349

349:                                              ; preds = %342, %337
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %17, i64 noundef 256)
  %350 = getelementptr inbounds %class.RNFlags, ptr %17, i32 0, i32 0
  %351 = load i64, ptr %350, align 8
  %352 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 %351)
  %353 = icmp ne i32 %352, 0
  br i1 %353, label %354, label %361

354:                                              ; preds = %349
  %355 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %356 = load i32, ptr %15, align 4, !tbaa !9
  %357 = sext i32 %356 to i64
  %358 = getelementptr inbounds [3 x ptr], ptr %355, i64 0, i64 %357
  %359 = load ptr, ptr %358, align 8, !tbaa !5
  %360 = getelementptr inbounds %class.R3TriangleVertex, ptr %359, i32 0, i32 1
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %360)
  br label %361

361:                                              ; preds = %354, %349
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %18, i64 noundef 512)
  %362 = getelementptr inbounds %class.RNFlags, ptr %18, i32 0, i32 0
  %363 = load i64, ptr %362, align 8
  %364 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 %363)
  %365 = icmp ne i32 %364, 0
  br i1 %365, label %366, label %396

366:                                              ; preds = %361
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %19, i64 noundef 512)
  %367 = getelementptr inbounds %class.RNFlags, ptr %19, i32 0, i32 0
  %368 = load i64, ptr %367, align 8
  %369 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 %368)
  %370 = icmp ne i32 %369, 0
  br i1 %370, label %371, label %378

371:                                              ; preds = %366
  %372 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %373 = load i32, ptr %15, align 4, !tbaa !9
  %374 = sext i32 %373 to i64
  %375 = getelementptr inbounds [3 x ptr], ptr %372, i64 0, i64 %374
  %376 = load ptr, ptr %375, align 8, !tbaa !5
  %377 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK16R3TriangleVertex13TextureCoordsEv(ptr noundef nonnull align 8 dereferenceable(100) %376)
  call void @_Z19R3LoadTextureCoordsRK7R2Point(ptr noundef nonnull align 8 dereferenceable(16) %377)
  br label %395

378:                                              ; preds = %366
  %379 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %380 = load i32, ptr %15, align 4, !tbaa !9
  %381 = sext i32 %380 to i64
  %382 = getelementptr inbounds [3 x ptr], ptr %379, i64 0, i64 %381
  %383 = load ptr, ptr %382, align 8, !tbaa !5
  %384 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %383)
  %385 = load i32, ptr %8, align 4, !tbaa !9
  %386 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %384, i32 noundef %385)
  %387 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %388 = load i32, ptr %15, align 4, !tbaa !9
  %389 = sext i32 %388 to i64
  %390 = getelementptr inbounds [3 x ptr], ptr %387, i64 0, i64 %389
  %391 = load ptr, ptr %390, align 8, !tbaa !5
  %392 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %391)
  %393 = load i32, ptr %9, align 4, !tbaa !9
  %394 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %392, i32 noundef %393)
  call void @_Z19R3LoadTextureCoordsdd(double noundef %386, double noundef %394)
  br label %395

395:                                              ; preds = %378, %371
  br label %396

396:                                              ; preds = %395, %361
  %397 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %398 = load i32, ptr %15, align 4, !tbaa !9
  %399 = sext i32 %398 to i64
  %400 = getelementptr inbounds [3 x ptr], ptr %397, i64 0, i64 %399
  %401 = load ptr, ptr %400, align 8, !tbaa !5
  %402 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %401)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %402)
  br label %403

403:                                              ; preds = %396
  %404 = load i32, ptr %15, align 4, !tbaa !9
  %405 = add nsw i32 %404, 1
  store i32 %405, ptr %15, align 4, !tbaa !9
  br label %333, !llvm.loop !11

406:                                              ; preds = %336
  call void @_Z12R3EndPolygonv()
  br label %407

407:                                              ; preds = %406, %296
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %20, i64 noundef 1)
  %408 = getelementptr inbounds %class.RNFlags, ptr %20, i32 0, i32 0
  %409 = load i64, ptr %408, align 8
  %410 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 %409)
  %411 = icmp ne i32 %410, 0
  br i1 %411, label %412, label %425

412:                                              ; preds = %407
  call void @_Z11R3BeginLoopv()
  %413 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %414 = getelementptr inbounds [3 x ptr], ptr %413, i64 0, i64 0
  %415 = load ptr, ptr %414, align 8, !tbaa !5
  %416 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %415)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %416)
  %417 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %418 = getelementptr inbounds [3 x ptr], ptr %417, i64 0, i64 1
  %419 = load ptr, ptr %418, align 8, !tbaa !5
  %420 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %419)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %420)
  %421 = getelementptr inbounds %class.R3Triangle, ptr %22, i32 0, i32 1
  %422 = getelementptr inbounds [3 x ptr], ptr %421, i64 0, i64 2
  %423 = load ptr, ptr %422, align 8, !tbaa !5
  %424 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %423)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %424)
  call void @_Z9R3EndLoopv()
  br label %425

425:                                              ; preds = %412, %407
  br label %426

426:                                              ; preds = %425, %227, %190, %132, %106, %81, %56, %42, %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i64 @_ZNK10R3Triangle5FlagsEv(ptr noundef nonnull align 8 dereferenceable(132)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK7RNFlagscvmEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z14R3BeginPolygonv() #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z12R3EndPolygonv() #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24)) #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z9RNLoadRgbRK5RNRgb(ptr noundef nonnull align 8 dereferenceable(24)) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex5ColorEv(ptr noundef nonnull align 8 dereferenceable(100)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex6NormalEv(ptr noundef nonnull align 8 dereferenceable(100)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z19R3LoadTextureCoordsRK7R2Point(ptr noundef nonnull align 8 dereferenceable(16)) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK16R3TriangleVertex13TextureCoordsEv(ptr noundef nonnull align 8 dereferenceable(100)) #3 align 2

declare noundef i32 @_ZNK8R3Vector12MaxDimensionEv(ptr noundef nonnull align 8 dereferenceable(24)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z19R3LoadTextureCoordsdd(double noundef, double noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8), i64) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z11R3BeginLoopv() #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z9R3EndLoopv() #1

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

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

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


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

%class.RNFlags = type { i64 }

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK10R3Triangle4DrawE7RNFlags(ptr noundef nonnull align 8 dereferenceable(132) %0, i64 %1) unnamed_addr #2 align 2 {
  %3 = alloca %class.RNFlags, align 8
  %4 = alloca %class.RNFlags, align 8
  %5 = alloca %class.RNFlags, align 8
  %6 = alloca %class.RNFlags, align 8
  %7 = alloca %class.RNFlags, align 8
  %8 = alloca %class.RNFlags, align 8
  %9 = alloca %class.RNFlags, align 8
  %10 = alloca %class.RNFlags, align 8
  %11 = alloca %class.RNFlags, align 8
  %12 = alloca %class.RNFlags, align 8
  %13 = alloca %class.RNFlags, align 8
  %14 = alloca %class.RNFlags, align 8
  %15 = alloca %class.RNFlags, align 8
  store i64 %1, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %16 = tail call i64 @_ZNK10R3Triangle5FlagsEv(ptr noundef nonnull align 8 dereferenceable(132) %0)
  store i64 %16, ptr %5, align 8
  %17 = call noundef i64 @_ZNK7RNFlagscvmEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %18 = call noundef i64 @_ZNK7RNFlagscvmEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %19 = and i64 %18, %17
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %19)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  %20 = call noundef i64 @_ZNK7RNFlagscvmEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  switch i64 %20, label %188 [
    i64 2, label %21
    i64 18, label %31
    i64 1026, label %42
    i64 274, label %58
    i64 562, label %74
    i64 50, label %91
    i64 818, label %126
    i64 306, label %148
  ]

21:                                               ; preds = %2
  call void @_Z14R3BeginPolygonv()
  %22 = getelementptr inbounds i8, ptr %0, i64 8
  %23 = load ptr, ptr %22, align 8, !tbaa !5
  %24 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %23)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %24)
  %25 = getelementptr inbounds i8, ptr %0, i64 16
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %27 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %26)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %27)
  %28 = getelementptr inbounds i8, ptr %0, i64 24
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  %30 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %29)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %30)
  call void @_Z12R3EndPolygonv()
  br label %322

31:                                               ; preds = %2
  call void @_Z14R3BeginPolygonv()
  %32 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10R3Triangle6NormalEv(ptr noundef nonnull align 8 dereferenceable(132) %0)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %32)
  %33 = getelementptr inbounds i8, ptr %0, i64 8
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %35 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %34)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %35)
  %36 = getelementptr inbounds i8, ptr %0, i64 16
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %38 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %37)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %38)
  %39 = getelementptr inbounds i8, ptr %0, i64 24
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %41 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %40)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %41)
  call void @_Z12R3EndPolygonv()
  br label %322

42:                                               ; preds = %2
  call void @_Z14R3BeginPolygonv()
  %43 = getelementptr inbounds i8, ptr %0, i64 8
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  %45 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex5ColorEv(ptr noundef nonnull align 8 dereferenceable(100) %44)
  call void @_Z9RNLoadRgbRK5RNRgb(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %46 = load ptr, ptr %43, align 8, !tbaa !5
  %47 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %46)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %47)
  %48 = getelementptr inbounds i8, ptr %0, i64 16
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex5ColorEv(ptr noundef nonnull align 8 dereferenceable(100) %49)
  call void @_Z9RNLoadRgbRK5RNRgb(ptr noundef nonnull align 8 dereferenceable(24) %50)
  %51 = load ptr, ptr %48, align 8, !tbaa !5
  %52 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %51)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %52)
  %53 = getelementptr inbounds i8, ptr %0, i64 24
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  %55 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex5ColorEv(ptr noundef nonnull align 8 dereferenceable(100) %54)
  call void @_Z9RNLoadRgbRK5RNRgb(ptr noundef nonnull align 8 dereferenceable(24) %55)
  %56 = load ptr, ptr %53, align 8, !tbaa !5
  %57 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %56)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %57)
  call void @_Z12R3EndPolygonv()
  br label %322

58:                                               ; preds = %2
  call void @_Z14R3BeginPolygonv()
  %59 = getelementptr inbounds i8, ptr %0, i64 8
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %61 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex6NormalEv(ptr noundef nonnull align 8 dereferenceable(100) %60)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %61)
  %62 = load ptr, ptr %59, align 8, !tbaa !5
  %63 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %62)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %63)
  %64 = getelementptr inbounds i8, ptr %0, i64 16
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  %66 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex6NormalEv(ptr noundef nonnull align 8 dereferenceable(100) %65)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %66)
  %67 = load ptr, ptr %64, align 8, !tbaa !5
  %68 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %67)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %68)
  %69 = getelementptr inbounds i8, ptr %0, i64 24
  %70 = load ptr, ptr %69, align 8, !tbaa !5
  %71 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex6NormalEv(ptr noundef nonnull align 8 dereferenceable(100) %70)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %71)
  %72 = load ptr, ptr %69, align 8, !tbaa !5
  %73 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %72)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %73)
  call void @_Z12R3EndPolygonv()
  br label %322

74:                                               ; preds = %2
  call void @_Z14R3BeginPolygonv()
  %75 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10R3Triangle6NormalEv(ptr noundef nonnull align 8 dereferenceable(132) %0)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %75)
  %76 = getelementptr inbounds i8, ptr %0, i64 8
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  %78 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK16R3TriangleVertex13TextureCoordsEv(ptr noundef nonnull align 8 dereferenceable(100) %77)
  call void @_Z19R3LoadTextureCoordsRK7R2Point(ptr noundef nonnull align 8 dereferenceable(16) %78)
  %79 = load ptr, ptr %76, align 8, !tbaa !5
  %80 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %79)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %80)
  %81 = getelementptr inbounds i8, ptr %0, i64 16
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  %83 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK16R3TriangleVertex13TextureCoordsEv(ptr noundef nonnull align 8 dereferenceable(100) %82)
  call void @_Z19R3LoadTextureCoordsRK7R2Point(ptr noundef nonnull align 8 dereferenceable(16) %83)
  %84 = load ptr, ptr %81, align 8, !tbaa !5
  %85 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %84)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %85)
  %86 = getelementptr inbounds i8, ptr %0, i64 24
  %87 = load ptr, ptr %86, align 8, !tbaa !5
  %88 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK16R3TriangleVertex13TextureCoordsEv(ptr noundef nonnull align 8 dereferenceable(100) %87)
  call void @_Z19R3LoadTextureCoordsRK7R2Point(ptr noundef nonnull align 8 dereferenceable(16) %88)
  %89 = load ptr, ptr %86, align 8, !tbaa !5
  %90 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %89)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %90)
  call void @_Z12R3EndPolygonv()
  br label %322

91:                                               ; preds = %2
  %92 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10R3Triangle6NormalEv(ptr noundef nonnull align 8 dereferenceable(132) %0)
  %93 = call noundef i32 @_ZNK8R3Vector12MaxDimensionEv(ptr noundef nonnull align 8 dereferenceable(24) %92)
  %94 = add nsw i32 %93, 1
  %95 = srem i32 %94, 3
  %96 = add nsw i32 %93, 2
  %97 = srem i32 %96, 3
  call void @_Z14R3BeginPolygonv()
  %98 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10R3Triangle6NormalEv(ptr noundef nonnull align 8 dereferenceable(132) %0)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %98)
  %99 = getelementptr inbounds i8, ptr %0, i64 8
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  %101 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %100)
  %102 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %101, i32 noundef %95)
  %103 = load ptr, ptr %99, align 8, !tbaa !5
  %104 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %103)
  %105 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %104, i32 noundef %97)
  call void @_Z19R3LoadTextureCoordsdd(double noundef %102, double noundef %105)
  %106 = load ptr, ptr %99, align 8, !tbaa !5
  %107 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %106)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %107)
  %108 = getelementptr inbounds i8, ptr %0, i64 16
  %109 = load ptr, ptr %108, align 8, !tbaa !5
  %110 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %109)
  %111 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %110, i32 noundef %95)
  %112 = load ptr, ptr %108, align 8, !tbaa !5
  %113 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %112)
  %114 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %113, i32 noundef %97)
  call void @_Z19R3LoadTextureCoordsdd(double noundef %111, double noundef %114)
  %115 = load ptr, ptr %108, align 8, !tbaa !5
  %116 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %115)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %116)
  %117 = getelementptr inbounds i8, ptr %0, i64 24
  %118 = load ptr, ptr %117, align 8, !tbaa !5
  %119 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %118)
  %120 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %119, i32 noundef %95)
  %121 = load ptr, ptr %117, align 8, !tbaa !5
  %122 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %121)
  %123 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %122, i32 noundef %97)
  call void @_Z19R3LoadTextureCoordsdd(double noundef %120, double noundef %123)
  %124 = load ptr, ptr %117, align 8, !tbaa !5
  %125 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %124)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %125)
  call void @_Z12R3EndPolygonv()
  br label %322

126:                                              ; preds = %2
  call void @_Z14R3BeginPolygonv()
  %127 = getelementptr inbounds i8, ptr %0, i64 8
  %128 = load ptr, ptr %127, align 8, !tbaa !5
  %129 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK16R3TriangleVertex13TextureCoordsEv(ptr noundef nonnull align 8 dereferenceable(100) %128)
  call void @_Z19R3LoadTextureCoordsRK7R2Point(ptr noundef nonnull align 8 dereferenceable(16) %129)
  %130 = load ptr, ptr %127, align 8, !tbaa !5
  %131 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex6NormalEv(ptr noundef nonnull align 8 dereferenceable(100) %130)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %131)
  %132 = load ptr, ptr %127, align 8, !tbaa !5
  %133 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %132)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %133)
  %134 = getelementptr inbounds i8, ptr %0, i64 16
  %135 = load ptr, ptr %134, align 8, !tbaa !5
  %136 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK16R3TriangleVertex13TextureCoordsEv(ptr noundef nonnull align 8 dereferenceable(100) %135)
  call void @_Z19R3LoadTextureCoordsRK7R2Point(ptr noundef nonnull align 8 dereferenceable(16) %136)
  %137 = load ptr, ptr %134, align 8, !tbaa !5
  %138 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex6NormalEv(ptr noundef nonnull align 8 dereferenceable(100) %137)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %138)
  %139 = load ptr, ptr %134, align 8, !tbaa !5
  %140 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %139)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %140)
  %141 = getelementptr inbounds i8, ptr %0, i64 24
  %142 = load ptr, ptr %141, align 8, !tbaa !5
  %143 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK16R3TriangleVertex13TextureCoordsEv(ptr noundef nonnull align 8 dereferenceable(100) %142)
  call void @_Z19R3LoadTextureCoordsRK7R2Point(ptr noundef nonnull align 8 dereferenceable(16) %143)
  %144 = load ptr, ptr %141, align 8, !tbaa !5
  %145 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex6NormalEv(ptr noundef nonnull align 8 dereferenceable(100) %144)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %145)
  %146 = load ptr, ptr %141, align 8, !tbaa !5
  %147 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %146)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %147)
  call void @_Z12R3EndPolygonv()
  br label %322

148:                                              ; preds = %2
  %149 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10R3Triangle6NormalEv(ptr noundef nonnull align 8 dereferenceable(132) %0)
  %150 = call noundef i32 @_ZNK8R3Vector12MaxDimensionEv(ptr noundef nonnull align 8 dereferenceable(24) %149)
  %151 = add nsw i32 %150, 1
  %152 = srem i32 %151, 3
  %153 = add nsw i32 %150, 2
  %154 = srem i32 %153, 3
  call void @_Z14R3BeginPolygonv()
  %155 = getelementptr inbounds i8, ptr %0, i64 8
  %156 = load ptr, ptr %155, align 8, !tbaa !5
  %157 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %156)
  %158 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %157, i32 noundef %152)
  %159 = load ptr, ptr %155, align 8, !tbaa !5
  %160 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %159)
  %161 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %160, i32 noundef %154)
  call void @_Z19R3LoadTextureCoordsdd(double noundef %158, double noundef %161)
  %162 = load ptr, ptr %155, align 8, !tbaa !5
  %163 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex6NormalEv(ptr noundef nonnull align 8 dereferenceable(100) %162)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %163)
  %164 = load ptr, ptr %155, align 8, !tbaa !5
  %165 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %164)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %165)
  %166 = getelementptr inbounds i8, ptr %0, i64 16
  %167 = load ptr, ptr %166, align 8, !tbaa !5
  %168 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %167)
  %169 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %168, i32 noundef %152)
  %170 = load ptr, ptr %166, align 8, !tbaa !5
  %171 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %170)
  %172 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %171, i32 noundef %154)
  call void @_Z19R3LoadTextureCoordsdd(double noundef %169, double noundef %172)
  %173 = load ptr, ptr %166, align 8, !tbaa !5
  %174 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex6NormalEv(ptr noundef nonnull align 8 dereferenceable(100) %173)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %174)
  %175 = load ptr, ptr %166, align 8, !tbaa !5
  %176 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %175)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %176)
  %177 = getelementptr inbounds i8, ptr %0, i64 24
  %178 = load ptr, ptr %177, align 8, !tbaa !5
  %179 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %178)
  %180 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %179, i32 noundef %152)
  %181 = load ptr, ptr %177, align 8, !tbaa !5
  %182 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %181)
  %183 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %182, i32 noundef %154)
  call void @_Z19R3LoadTextureCoordsdd(double noundef %180, double noundef %183)
  %184 = load ptr, ptr %177, align 8, !tbaa !5
  %185 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex6NormalEv(ptr noundef nonnull align 8 dereferenceable(100) %184)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %185)
  %186 = load ptr, ptr %177, align 8, !tbaa !5
  %187 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %186)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %187)
  call void @_Z12R3EndPolygonv()
  br label %322

188:                                              ; preds = %2
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef 2)
  %189 = load i64, ptr %6, align 8
  %190 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 %189)
  %.not = icmp eq i32 %190, 0
  br i1 %.not, label %309, label %191

191:                                              ; preds = %188
  call void @_Z14R3BeginPolygonv()
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef 16)
  %192 = load i64, ptr %7, align 8
  %193 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 %192)
  %.not30 = icmp eq i32 %193, 0
  br i1 %.not30, label %199, label %194

194:                                              ; preds = %191
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %8, i64 noundef 256)
  %195 = load i64, ptr %8, align 8
  %196 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 %195)
  %.not31 = icmp eq i32 %196, 0
  br i1 %.not31, label %197, label %199

197:                                              ; preds = %194
  %198 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10R3Triangle6NormalEv(ptr noundef nonnull align 8 dereferenceable(132) %0)
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %198)
  br label %199

199:                                              ; preds = %197, %194, %191
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 512)
  %200 = load i64, ptr %9, align 8
  %201 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 %200)
  %.not32 = icmp eq i32 %201, 0
  br i1 %.not32, label %212, label %202

202:                                              ; preds = %199
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %10, i64 noundef 512)
  %203 = load i64, ptr %10, align 8
  %204 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 %203)
  %.not33 = icmp eq i32 %204, 0
  br i1 %.not33, label %205, label %212

205:                                              ; preds = %202
  %206 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK10R3Triangle6NormalEv(ptr noundef nonnull align 8 dereferenceable(132) %0)
  %207 = call noundef i32 @_ZNK8R3Vector12MaxDimensionEv(ptr noundef nonnull align 8 dereferenceable(24) %206)
  %208 = add nsw i32 %207, 1
  %209 = srem i32 %208, 3
  %210 = add nsw i32 %207, 2
  %211 = srem i32 %210, 3
  br label %212

212:                                              ; preds = %205, %202, %199
  %.029 = phi i32 [ 0, %202 ], [ %209, %205 ], [ 0, %199 ]
  %.028 = phi i32 [ 0, %202 ], [ %211, %205 ], [ 0, %199 ]
  %213 = getelementptr inbounds i8, ptr %0, i64 8
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %11, i64 noundef 1024)
  %214 = load i64, ptr %11, align 8
  %215 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 %214)
  %.not35 = icmp eq i32 %215, 0
  br i1 %.not35, label %219, label %216

216:                                              ; preds = %212
  %217 = load ptr, ptr %213, align 8, !tbaa !5
  %218 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex5ColorEv(ptr noundef nonnull align 8 dereferenceable(100) %217)
  call void @_Z9RNLoadRgbRK5RNRgb(ptr noundef nonnull align 8 dereferenceable(24) %218)
  br label %219

219:                                              ; preds = %216, %212
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef 256)
  %220 = load i64, ptr %12, align 8
  %221 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 %220)
  %.not36 = icmp eq i32 %221, 0
  br i1 %.not36, label %225, label %222

222:                                              ; preds = %219
  %223 = load ptr, ptr %213, align 8, !tbaa !5
  %224 = getelementptr inbounds i8, ptr %223, i64 24
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %224)
  br label %225

225:                                              ; preds = %222, %219
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %13, i64 noundef 512)
  %226 = load i64, ptr %13, align 8
  %227 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 %226)
  %.not37 = icmp eq i32 %227, 0
  br i1 %.not37, label %240, label %228

228:                                              ; preds = %225
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %14, i64 noundef 512)
  %229 = load i64, ptr %14, align 8
  %230 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 %229)
  %.not38 = icmp eq i32 %230, 0
  %231 = load ptr, ptr %213, align 8, !tbaa !5
  br i1 %.not38, label %234, label %232

232:                                              ; preds = %228
  %233 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK16R3TriangleVertex13TextureCoordsEv(ptr noundef nonnull align 8 dereferenceable(100) %231)
  call void @_Z19R3LoadTextureCoordsRK7R2Point(ptr noundef nonnull align 8 dereferenceable(16) %233)
  br label %240

234:                                              ; preds = %228
  %235 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %231)
  %236 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %235, i32 noundef %.029)
  %237 = load ptr, ptr %213, align 8, !tbaa !5
  %238 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %237)
  %239 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %238, i32 noundef %.028)
  call void @_Z19R3LoadTextureCoordsdd(double noundef %236, double noundef %239)
  br label %240

240:                                              ; preds = %232, %234, %225
  %241 = load ptr, ptr %213, align 8, !tbaa !5
  %242 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %241)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %242)
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %11, i64 noundef 1024)
  %243 = load i64, ptr %11, align 8
  %244 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 %243)
  %.not35.1 = icmp eq i32 %244, 0
  br i1 %.not35.1, label %249, label %245

245:                                              ; preds = %240
  %246 = getelementptr inbounds i8, ptr %0, i64 16
  %247 = load ptr, ptr %246, align 8, !tbaa !5
  %248 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex5ColorEv(ptr noundef nonnull align 8 dereferenceable(100) %247)
  call void @_Z9RNLoadRgbRK5RNRgb(ptr noundef nonnull align 8 dereferenceable(24) %248)
  br label %249

249:                                              ; preds = %245, %240
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef 256)
  %250 = load i64, ptr %12, align 8
  %251 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 %250)
  %.not36.1 = icmp eq i32 %251, 0
  br i1 %.not36.1, label %256, label %252

252:                                              ; preds = %249
  %253 = getelementptr inbounds i8, ptr %0, i64 16
  %254 = load ptr, ptr %253, align 8, !tbaa !5
  %255 = getelementptr inbounds i8, ptr %254, i64 24
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %255)
  br label %256

256:                                              ; preds = %252, %249
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %13, i64 noundef 512)
  %257 = load i64, ptr %13, align 8
  %258 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 %257)
  %.not37.1 = icmp eq i32 %258, 0
  br i1 %.not37.1, label %272, label %259

259:                                              ; preds = %256
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %14, i64 noundef 512)
  %260 = load i64, ptr %14, align 8
  %261 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 %260)
  %.not38.1 = icmp eq i32 %261, 0
  %262 = getelementptr inbounds i8, ptr %0, i64 16
  %263 = load ptr, ptr %262, align 8, !tbaa !5
  br i1 %.not38.1, label %266, label %264

264:                                              ; preds = %259
  %265 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK16R3TriangleVertex13TextureCoordsEv(ptr noundef nonnull align 8 dereferenceable(100) %263)
  call void @_Z19R3LoadTextureCoordsRK7R2Point(ptr noundef nonnull align 8 dereferenceable(16) %265)
  br label %272

266:                                              ; preds = %259
  %267 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %263)
  %268 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %267, i32 noundef %.029)
  %269 = load ptr, ptr %262, align 8, !tbaa !5
  %270 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %269)
  %271 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %270, i32 noundef %.028)
  call void @_Z19R3LoadTextureCoordsdd(double noundef %268, double noundef %271)
  br label %272

272:                                              ; preds = %266, %264, %256
  %273 = getelementptr inbounds i8, ptr %0, i64 16
  %274 = load ptr, ptr %273, align 8, !tbaa !5
  %275 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %274)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %275)
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %11, i64 noundef 1024)
  %276 = load i64, ptr %11, align 8
  %277 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 %276)
  %.not35.2 = icmp eq i32 %277, 0
  br i1 %.not35.2, label %282, label %278

278:                                              ; preds = %272
  %279 = getelementptr inbounds i8, ptr %0, i64 24
  %280 = load ptr, ptr %279, align 8, !tbaa !5
  %281 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex5ColorEv(ptr noundef nonnull align 8 dereferenceable(100) %280)
  call void @_Z9RNLoadRgbRK5RNRgb(ptr noundef nonnull align 8 dereferenceable(24) %281)
  br label %282

282:                                              ; preds = %278, %272
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef 256)
  %283 = load i64, ptr %12, align 8
  %284 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 %283)
  %.not36.2 = icmp eq i32 %284, 0
  br i1 %.not36.2, label %289, label %285

285:                                              ; preds = %282
  %286 = getelementptr inbounds i8, ptr %0, i64 24
  %287 = load ptr, ptr %286, align 8, !tbaa !5
  %288 = getelementptr inbounds i8, ptr %287, i64 24
  call void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24) %288)
  br label %289

289:                                              ; preds = %285, %282
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %13, i64 noundef 512)
  %290 = load i64, ptr %13, align 8
  %291 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 %290)
  %.not37.2 = icmp eq i32 %291, 0
  br i1 %.not37.2, label %305, label %292

292:                                              ; preds = %289
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %14, i64 noundef 512)
  %293 = load i64, ptr %14, align 8
  %294 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 %293)
  %.not38.2 = icmp eq i32 %294, 0
  %295 = getelementptr inbounds i8, ptr %0, i64 24
  %296 = load ptr, ptr %295, align 8, !tbaa !5
  br i1 %.not38.2, label %299, label %297

297:                                              ; preds = %292
  %298 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK16R3TriangleVertex13TextureCoordsEv(ptr noundef nonnull align 8 dereferenceable(100) %296)
  call void @_Z19R3LoadTextureCoordsRK7R2Point(ptr noundef nonnull align 8 dereferenceable(16) %298)
  br label %305

299:                                              ; preds = %292
  %300 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %296)
  %301 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %300, i32 noundef %.029)
  %302 = load ptr, ptr %295, align 8, !tbaa !5
  %303 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %302)
  %304 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %303, i32 noundef %.028)
  call void @_Z19R3LoadTextureCoordsdd(double noundef %301, double noundef %304)
  br label %305

305:                                              ; preds = %299, %297, %289
  %306 = getelementptr inbounds i8, ptr %0, i64 24
  %307 = load ptr, ptr %306, align 8, !tbaa !5
  %308 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %307)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %308)
  call void @_Z12R3EndPolygonv()
  br label %309

309:                                              ; preds = %305, %188
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %15, i64 noundef 1)
  %310 = load i64, ptr %15, align 8
  %311 = call noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 %310)
  %.not34 = icmp eq i32 %311, 0
  br i1 %.not34, label %322, label %312

312:                                              ; preds = %309
  call void @_Z11R3BeginLoopv()
  %313 = getelementptr inbounds i8, ptr %0, i64 8
  %314 = load ptr, ptr %313, align 8, !tbaa !5
  %315 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %314)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %315)
  %316 = getelementptr inbounds i8, ptr %0, i64 16
  %317 = load ptr, ptr %316, align 8, !tbaa !5
  %318 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %317)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %318)
  %319 = getelementptr inbounds i8, ptr %0, i64 24
  %320 = load ptr, ptr %319, align 8, !tbaa !5
  %321 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100) %320)
  call void @_Z11R3LoadPointRK7R3Point(ptr noundef nonnull align 8 dereferenceable(24) %321)
  call void @_Z9R3EndLoopv()
  br label %322

322:                                              ; preds = %309, %312, %148, %126, %91, %74, %58, %42, %31, %21
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i64 @_ZNK10R3Triangle5FlagsEv(ptr noundef nonnull align 8 dereferenceable(132)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK7RNFlagscvmEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z14R3BeginPolygonv() local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex8PositionEv(ptr noundef nonnull align 8 dereferenceable(100)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z12R3EndPolygonv() local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z12R3LoadNormalRK8R3Vector(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z9RNLoadRgbRK5RNRgb(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex5ColorEv(ptr noundef nonnull align 8 dereferenceable(100)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK16R3TriangleVertex6NormalEv(ptr noundef nonnull align 8 dereferenceable(100)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z19R3LoadTextureCoordsRK7R2Point(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK16R3TriangleVertex13TextureCoordsEv(ptr noundef nonnull align 8 dereferenceable(100)) local_unnamed_addr #3 align 2

declare noundef i32 @_ZNK8R3Vector12MaxDimensionEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z19R3LoadTextureCoordsdd(double noundef, double noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK7RNFlagsixES_(ptr noundef nonnull align 8 dereferenceable(8), i64) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z11R3BeginLoopv() local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z9R3EndLoopv() local_unnamed_addr #1

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass