; LLVM IR from erwincoumans/tiny-differentiable-simulator :: examples (opengl_test)

; 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.TinyOpenGL3App = type { %struct.TinyCommonGraphicsApp.base, ptr, ptr, ptr }
%struct.TinyCommonGraphicsApp.base = type <{ ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, float, float, float, float, i8, [3 x i8], [3 x float] }>
%"struct.TINY::TinyVector3" = type { float, float, float, i32 }
%"struct.TINY::TinyQuaternion" = type { float, float, float, float }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.tinyobj::attrib_t" = type { %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector.13" }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<tinyobj::shape_t, std::allocator<tinyobj::shape_t>>::_Vector_impl" }
%"struct.std::_Vector_base<tinyobj::shape_t, std::allocator<tinyobj::shape_t>>::_Vector_impl" = type { %"struct.std::_Vector_base<tinyobj::shape_t, std::allocator<tinyobj::shape_t>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tinyobj::shape_t, std::allocator<tinyobj::shape_t>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<tinyobj::material_t, std::allocator<tinyobj::material_t>>::_Vector_impl" }
%"struct.std::_Vector_base<tinyobj::material_t, std::allocator<tinyobj::material_t>>::_Vector_impl" = type { %"struct.std::_Vector_base<tinyobj::material_t, std::allocator<tinyobj::material_t>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tinyobj::material_t, std::allocator<tinyobj::material_t>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"class.std::vector.28" = type { %"struct.std::_Vector_base.29" }
%"struct.std::_Vector_base.29" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.33" = type { %"struct.std::_Vector_base.34" }
%"struct.std::_Vector_base.34" = type { %"struct.std::_Vector_base<GfxVertexFormat1, std::allocator<GfxVertexFormat1>>::_Vector_impl" }
%"struct.std::_Vector_base<GfxVertexFormat1, std::allocator<GfxVertexFormat1>>::_Vector_impl" = type { %"struct.std::_Vector_base<GfxVertexFormat1, std::allocator<GfxVertexFormat1>>::_Vector_impl_data" }
%"struct.std::_Vector_base<GfxVertexFormat1, std::allocator<GfxVertexFormat1>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.TinyProfileZone = type { i8 }
%struct.DrawGridData = type { i32, float, i32, i8, [4 x float] }
%struct.TinyCommonGraphicsApp = type <{ ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, float, float, float, float, i8, [3 x i8], [3 x float], [4 x i8] }>
%"struct.tinyobj::shape_t" = type { %"class.std::__cxx11::basic_string", %"struct.tinyobj::mesh_t", %"struct.tinyobj::lines_t", %"struct.tinyobj::points_t" }
%"struct.tinyobj::mesh_t" = type { %"class.std::vector.38", %"class.std::vector.8", %"class.std::vector.28", %"class.std::vector.43", %"class.std::vector.48" }
%"class.std::vector.38" = type { %"struct.std::_Vector_base.39" }
%"struct.std::_Vector_base.39" = type { %"struct.std::_Vector_base<tinyobj::index_t, std::allocator<tinyobj::index_t>>::_Vector_impl" }
%"struct.std::_Vector_base<tinyobj::index_t, std::allocator<tinyobj::index_t>>::_Vector_impl" = type { %"struct.std::_Vector_base<tinyobj::index_t, std::allocator<tinyobj::index_t>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tinyobj::index_t, std::allocator<tinyobj::index_t>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.43" = type { %"struct.std::_Vector_base.44" }
%"struct.std::_Vector_base.44" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.48" = type { %"struct.std::_Vector_base.49" }
%"struct.std::_Vector_base.49" = type { %"struct.std::_Vector_base<tinyobj::tag_t, std::allocator<tinyobj::tag_t>>::_Vector_impl" }
%"struct.std::_Vector_base<tinyobj::tag_t, std::allocator<tinyobj::tag_t>>::_Vector_impl" = type { %"struct.std::_Vector_base<tinyobj::tag_t, std::allocator<tinyobj::tag_t>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tinyobj::tag_t, std::allocator<tinyobj::tag_t>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.tinyobj::lines_t" = type { %"class.std::vector.38", %"class.std::vector.28" }
%"struct.tinyobj::points_t" = type { %"class.std::vector.38" }
%"struct.tinyobj::material_t" = type { %"class.std::__cxx11::basic_string", [3 x float], [3 x float], [3 x float], [3 x float], [3 x float], float, float, float, i32, i32, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"struct.tinyobj::texture_option_t", %"struct.tinyobj::texture_option_t", %"struct.tinyobj::texture_option_t", %"struct.tinyobj::texture_option_t", %"struct.tinyobj::texture_option_t", %"struct.tinyobj::texture_option_t", %"struct.tinyobj::texture_option_t", %"struct.tinyobj::texture_option_t", float, float, float, float, float, float, float, float, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"struct.tinyobj::texture_option_t", %"struct.tinyobj::texture_option_t", %"struct.tinyobj::texture_option_t", %"struct.tinyobj::texture_option_t", %"struct.tinyobj::texture_option_t", i32, %"class.std::map" }
%"struct.tinyobj::texture_option_t" = type { i32, float, float, float, [3 x float], [3 x float], [3 x float], i32, i8, i8, i8, i8, float, %"class.std::__cxx11::basic_string" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%struct.GfxVertexFormat1 = type { float, float, float, float, float, float, float, float, float }

@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [13 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %struct.TinyOpenGL3App, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"struct.TINY::TinyVector3", align 4
  %10 = alloca %"struct.TINY::TinyQuaternion", align 4
  %11 = alloca %"struct.TINY::TinyVector3", align 4
  %12 = alloca %"struct.TINY::TinyVector3", align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::vector.8", align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = alloca float, align 4
  %32 = alloca %"struct.tinyobj::attrib_t", align 8
  %33 = alloca %"class.std::vector.18", align 8
  %34 = alloca %"class.std::vector.23", align 8
  %35 = alloca float, align 4
  %36 = alloca float, align 4
  %37 = alloca float, align 4
  %38 = alloca %"class.std::__cxx11::basic_string", align 8
  %39 = alloca %"class.std::__cxx11::basic_string", align 8
  %40 = alloca [1024 x i8], align 16
  %41 = alloca i8, align 1
  %42 = alloca %"class.std::__cxx11::basic_string", align 8
  %43 = alloca %"class.std::__cxx11::basic_string", align 8
  %44 = alloca %"class.std::allocator", align 1
  %45 = alloca i8, align 1
  %46 = alloca %"class.std::vector.28", align 8
  %47 = alloca i32, align 4
  %48 = alloca %"class.std::vector.28", align 8
  %49 = alloca %"class.std::vector.33", align 8
  %50 = alloca float, align 4
  %51 = alloca float, align 4
  %52 = alloca float, align 4
  %53 = alloca ptr, align 8
  %54 = alloca %"class.std::__cxx11::basic_string", align 8
  %55 = alloca %"class.std::__cxx11::basic_string", align 8
  %56 = alloca %"class.std::allocator", align 1
  %57 = alloca %"class.std::vector.8", align 8
  %58 = alloca i32, align 4
  %59 = alloca i32, align 4
  %60 = alloca i32, align 4
  %61 = alloca ptr, align 8
  %62 = alloca i32, align 4
  %63 = alloca %class.TinyProfileZone, align 1
  %64 = alloca i32, align 4
  %65 = alloca %struct.DrawGridData, align 4
  %66 = alloca %struct.DrawGridData, align 8
  %67 = alloca ptr, align 8
  %68 = alloca %class.TinyProfileZone, align 1
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @_Z27TinyChromeUtilsStartTimingsv()
  call void @llvm.lifetime.start.p0(i64 104, ptr %6) #9
  call void @_ZN14TinyOpenGL3AppC1EPKciibiiii(ptr noundef nonnull align 8 dereferenceable(104) %6, ptr noundef @.str.12, i32 noundef 1024, i32 noundef 768, i1 noundef zeroext true, i32 noundef 0, i32 noundef -1, i32 noundef 131072, i32 noundef 134217728)
  %69 = getelementptr inbounds %struct.TinyCommonGraphicsApp, ptr %6, i32 0, i32 2
  %70 = load ptr, ptr %69, align 8, !tbaa !11
  %71 = load ptr, ptr %70, align 8, !tbaa !15
  %72 = getelementptr inbounds ptr, ptr %71, i64 2
  %73 = load ptr, ptr %72, align 8
  invoke void %73(ptr noundef nonnull align 8 dereferenceable(60) %70)
          to label %74 unwind label %127

74:                                               ; preds = %2
  invoke void @_ZN14TinyOpenGL3App11set_up_axisEi(ptr noundef nonnull align 8 dereferenceable(104) %6, i32 noundef 2)
          to label %75 unwind label %127

75:                                               ; preds = %74
  %76 = getelementptr inbounds %struct.TinyCommonGraphicsApp, ptr %6, i32 0, i32 2
  %77 = load ptr, ptr %76, align 8, !tbaa !11
  %78 = load ptr, ptr %77, align 8, !tbaa !15
  %79 = getelementptr inbounds ptr, ptr %78, i64 38
  %80 = load ptr, ptr %79, align 8
  %81 = invoke noundef ptr %80(ptr noundef nonnull align 8 dereferenceable(60) %77)
          to label %82 unwind label %127

82:                                               ; preds = %75
  %83 = load ptr, ptr %81, align 8, !tbaa !15
  %84 = getelementptr inbounds ptr, ptr %83, i64 8
  %85 = load ptr, ptr %84, align 8
  invoke void %85(ptr noundef nonnull align 8 dereferenceable(16) %81, float noundef 4.000000e+00)
          to label %86 unwind label %127

86:                                               ; preds = %82
  %87 = getelementptr inbounds %struct.TinyCommonGraphicsApp, ptr %6, i32 0, i32 2
  %88 = load ptr, ptr %87, align 8, !tbaa !11
  %89 = load ptr, ptr %88, align 8, !tbaa !15
  %90 = getelementptr inbounds ptr, ptr %89, i64 38
  %91 = load ptr, ptr %90, align 8
  %92 = invoke noundef ptr %91(ptr noundef nonnull align 8 dereferenceable(60) %88)
          to label %93 unwind label %127

93:                                               ; preds = %86
  %94 = load ptr, ptr %92, align 8, !tbaa !15
  %95 = getelementptr inbounds ptr, ptr %94, i64 15
  %96 = load ptr, ptr %95, align 8
  invoke void %96(ptr noundef nonnull align 8 dereferenceable(16) %92, float noundef -3.000000e+01)
          to label %97 unwind label %127

97:                                               ; preds = %93
  %98 = getelementptr inbounds %struct.TinyCommonGraphicsApp, ptr %6, i32 0, i32 2
  %99 = load ptr, ptr %98, align 8, !tbaa !11
  %100 = load ptr, ptr %99, align 8, !tbaa !15
  %101 = getelementptr inbounds ptr, ptr %100, i64 38
  %102 = load ptr, ptr %101, align 8
  %103 = invoke noundef ptr %102(ptr noundef nonnull align 8 dereferenceable(60) %99)
          to label %104 unwind label %127

104:                                              ; preds = %97
  %105 = load ptr, ptr %103, align 8, !tbaa !15
  %106 = getelementptr inbounds ptr, ptr %105, i64 7
  %107 = load ptr, ptr %106, align 8
  invoke void %107(ptr noundef nonnull align 8 dereferenceable(16) %103, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %108 unwind label %127

108:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #9
  invoke void @_ZN4TINY11TinyVector3IfNS_10FloatUtilsEEC2Efff(ptr noundef nonnull align 4 dereferenceable(16) %9, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0xBF947AE140000000)
          to label %109 unwind label %131

109:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #9
  invoke void @_ZN4TINY14TinyQuaternionIfNS_10FloatUtilsEEC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %10, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
          to label %110 unwind label %135

110:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #9
  invoke void @_ZN4TINY11TinyVector3IfNS_10FloatUtilsEEC2Efff(ptr noundef nonnull align 4 dereferenceable(16) %11, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %111 unwind label %139

111:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #9
  invoke void @_ZN4TINY11TinyVector3IfNS_10FloatUtilsEEC2Efff(ptr noundef nonnull align 4 dereferenceable(16) %12, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %112 unwind label %143

112:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  store i32 -1, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  store i32 128, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  store i32 255, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  store i32 1024, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  store i32 1024, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #9
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #9
  %113 = load i32, ptr %17, align 4, !tbaa !5
  %114 = load i32, ptr %18, align 4, !tbaa !5
  %115 = mul nsw i32 %113, %114
  %116 = mul nsw i32 %115, 3
  %117 = sext i32 %116 to i64
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %117)
          to label %118 unwind label %147

118:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %119

119:                                              ; preds = %155, %118
  %120 = load i32, ptr %20, align 4, !tbaa !5
  %121 = load i32, ptr %17, align 4, !tbaa !5
  %122 = load i32, ptr %18, align 4, !tbaa !5
  %123 = mul nsw i32 %121, %122
  %124 = mul nsw i32 %123, 3
  %125 = icmp slt i32 %120, %124
  br i1 %125, label %151, label %126

126:                                              ; preds = %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  br label %158

127:                                              ; preds = %104, %97, %93, %86, %82, %75, %74, %2
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %7, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %8, align 4
  br label %527

131:                                              ; preds = %108
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %7, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %8, align 4
  br label %526

135:                                              ; preds = %109
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %7, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %8, align 4
  br label %525

139:                                              ; preds = %110
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %7, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %8, align 4
  br label %524

143:                                              ; preds = %111
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %7, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %8, align 4
  br label %523

147:                                              ; preds = %228, %112
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %7, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %8, align 4
  br label %522

151:                                              ; preds = %119
  %152 = load i32, ptr %20, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %153) #9
  store i8 -1, ptr %154, align 1, !tbaa !17
  br label %155

155:                                              ; preds = %151
  %156 = load i32, ptr %20, align 4, !tbaa !5
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %20, align 4, !tbaa !5
  br label %119, !llvm.loop !18

158:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %159

159:                                              ; preds = %225, %158
  %160 = load i32, ptr %21, align 4, !tbaa !5
  %161 = load i32, ptr %17, align 4, !tbaa !5
  %162 = icmp slt i32 %160, %161
  br i1 %162, label %164, label %163

163:                                              ; preds = %159
  store i32 5, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %228

164:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %165

165:                                              ; preds = %221, %164
  %166 = load i32, ptr %23, align 4, !tbaa !5
  %167 = load i32, ptr %18, align 4, !tbaa !5
  %168 = icmp slt i32 %166, %167
  br i1 %168, label %170, label %169

169:                                              ; preds = %165
  store i32 8, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  br label %224

170:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  %171 = load i32, ptr %21, align 4, !tbaa !5
  %172 = load i32, ptr %17, align 4, !tbaa !5
  %173 = sdiv i32 %172, 2
  %174 = icmp slt i32 %171, %173
  %175 = zext i1 %174 to i64
  %176 = select i1 %174, i32 1, i32 0
  store i32 %176, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  %177 = load i32, ptr %23, align 4, !tbaa !5
  %178 = load i32, ptr %17, align 4, !tbaa !5
  %179 = sdiv i32 %178, 2
  %180 = icmp slt i32 %177, %179
  %181 = zext i1 %180 to i64
  %182 = select i1 %180, i32 1, i32 0
  store i32 %182, ptr %25, align 4, !tbaa !5
  %183 = load i32, ptr %24, align 4, !tbaa !5
  %184 = load i32, ptr %25, align 4, !tbaa !5
  %185 = icmp eq i32 %183, %184
  br i1 %185, label %186, label %220

186:                                              ; preds = %170
  %187 = load i32, ptr %14, align 4, !tbaa !5
  %188 = trunc i32 %187 to i8
  %189 = load i32, ptr %21, align 4, !tbaa !5
  %190 = load i32, ptr %23, align 4, !tbaa !5
  %191 = load i32, ptr %17, align 4, !tbaa !5
  %192 = mul nsw i32 %190, %191
  %193 = add nsw i32 %189, %192
  %194 = mul nsw i32 %193, 3
  %195 = add nsw i32 %194, 0
  %196 = sext i32 %195 to i64
  %197 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %196) #9
  store i8 %188, ptr %197, align 1, !tbaa !17
  %198 = load i32, ptr %15, align 4, !tbaa !5
  %199 = trunc i32 %198 to i8
  %200 = load i32, ptr %21, align 4, !tbaa !5
  %201 = load i32, ptr %23, align 4, !tbaa !5
  %202 = load i32, ptr %17, align 4, !tbaa !5
  %203 = mul nsw i32 %201, %202
  %204 = add nsw i32 %200, %203
  %205 = mul nsw i32 %204, 3
  %206 = add nsw i32 %205, 1
  %207 = sext i32 %206 to i64
  %208 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %207) #9
  store i8 %199, ptr %208, align 1, !tbaa !17
  %209 = load i32, ptr %16, align 4, !tbaa !5
  %210 = trunc i32 %209 to i8
  %211 = load i32, ptr %21, align 4, !tbaa !5
  %212 = load i32, ptr %23, align 4, !tbaa !5
  %213 = load i32, ptr %17, align 4, !tbaa !5
  %214 = mul nsw i32 %212, %213
  %215 = add nsw i32 %211, %214
  %216 = mul nsw i32 %215, 3
  %217 = add nsw i32 %216, 2
  %218 = sext i32 %217 to i64
  %219 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %218) #9
  store i8 %210, ptr %219, align 1, !tbaa !17
  br label %220

220:                                              ; preds = %186, %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  br label %221

221:                                              ; preds = %220
  %222 = load i32, ptr %23, align 4, !tbaa !5
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %23, align 4, !tbaa !5
  br label %165, !llvm.loop !20

224:                                              ; preds = %169
  br label %225

225:                                              ; preds = %224
  %226 = load i32, ptr %21, align 4, !tbaa !5
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %21, align 4, !tbaa !5
  br label %159, !llvm.loop !21

228:                                              ; preds = %163
  %229 = getelementptr inbounds %struct.TinyOpenGL3App, ptr %6, i32 0, i32 3
  %230 = load ptr, ptr %229, align 8, !tbaa !22
  %231 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef 0) #9
  %232 = load i32, ptr %17, align 4, !tbaa !5
  %233 = load i32, ptr %18, align 4, !tbaa !5
  %234 = load ptr, ptr %230, align 8, !tbaa !15
  %235 = getelementptr inbounds ptr, ptr %234, i64 11
  %236 = load ptr, ptr %235, align 8
  %237 = invoke noundef i32 %236(ptr noundef nonnull align 8 dereferenceable(60) %230, ptr noundef %231, i32 noundef %232, i32 noundef %233, i1 noundef zeroext true)
          to label %238 unwind label %147

238:                                              ; preds = %228
  store i32 %237, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  %239 = load i32, ptr %13, align 4, !tbaa !5
  %240 = invoke noundef i32 @_ZN14TinyOpenGL3App19register_cube_shapeEfffif(ptr noundef nonnull align 8 dereferenceable(104) %6, float noundef 1.000000e+01, float noundef 1.000000e+01, float noundef 0x3F847AE140000000, i32 noundef %239, float noundef 4.000000e+01)
          to label %241 unwind label %284

241:                                              ; preds = %238
  store i32 %240, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  %242 = getelementptr inbounds %struct.TinyCommonGraphicsApp, ptr %6, i32 0, i32 2
  %243 = load ptr, ptr %242, align 8, !tbaa !11
  %244 = load i32, ptr %26, align 4, !tbaa !5
  %245 = load ptr, ptr %243, align 8, !tbaa !15
  %246 = getelementptr inbounds ptr, ptr %245, i64 17
  %247 = load ptr, ptr %246, align 8
  %248 = invoke noundef i32 %247(ptr noundef nonnull align 8 dereferenceable(60) %243, i32 noundef %244, ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(16) %12, float noundef 1.000000e+00, i1 noundef zeroext true)
          to label %249 unwind label %288

249:                                              ; preds = %241
  store i32 %248, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  store float 0.000000e+00, ptr %28, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  store float 0.000000e+00, ptr %29, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  store float 1.000000e+00, ptr %30, align 4, !tbaa !24
  invoke void @_ZN4TINY11TinyVector3IfNS_10FloatUtilsEE8setValueERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %30)
          to label %250 unwind label %292

250:                                              ; preds = %249
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  %251 = invoke noundef i32 @_ZN14TinyOpenGL3App35register_graphics_unit_sphere_shapeE23EnumSphereLevelOfDetaili(ptr noundef nonnull align 8 dereferenceable(104) %6, i32 noundef 3, i32 noundef -1)
          to label %252 unwind label %288

252:                                              ; preds = %250
  store i32 %251, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #9
  store float 0x3FE6666660000000, ptr %31, align 4, !tbaa !24
  %253 = getelementptr inbounds %struct.TinyCommonGraphicsApp, ptr %6, i32 0, i32 2
  %254 = load ptr, ptr %253, align 8, !tbaa !11
  %255 = load i32, ptr %26, align 4, !tbaa !5
  %256 = load float, ptr %31, align 4, !tbaa !24
  %257 = load ptr, ptr %254, align 8, !tbaa !15
  %258 = getelementptr inbounds ptr, ptr %257, i64 17
  %259 = load ptr, ptr %258, align 8
  %260 = invoke noundef i32 %259(ptr noundef nonnull align 8 dereferenceable(60) %254, i32 noundef %255, ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(16) %12, float noundef %256, i1 noundef zeroext true)
          to label %261 unwind label %296

261:                                              ; preds = %252
  call void @llvm.lifetime.start.p0(i64 144, ptr %32) #9
  invoke void @_ZN7tinyobj8attrib_tC2Ev(ptr noundef nonnull align 8 dereferenceable(144) %32)
          to label %262 unwind label %300

262:                                              ; preds = %261
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #9
  call void @_ZNSt6vectorIN7tinyobj7shape_tESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #9
  call void @_ZNSt6vectorIN7tinyobj10material_tESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #9
  store float 0.000000e+00, ptr %35, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #9
  store float -2.000000e+00, ptr %36, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #9
  store float 1.000000e+00, ptr %37, align 4, !tbaa !24
  invoke void @_ZN4TINY11TinyVector3IfNS_10FloatUtilsEE8setValueERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(4) %37)
          to label %263 unwind label %304

263:                                              ; preds = %262
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %38) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %39) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #9
  call void @llvm.lifetime.start.p0(i64 1024, ptr %40) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %41) #9
  store i8 1, ptr %41, align 1, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 32, ptr %42) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %43) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %44) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef @.str.13, ptr noundef nonnull align 1 dereferenceable(1) %44)
          to label %264 unwind label %308

264:                                              ; preds = %263
  %265 = invoke noundef zeroext i1 @_ZN3tds9FileUtils9find_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERS6_(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(32) %42)
          to label %266 unwind label %312

266:                                              ; preds = %264
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %43) #9
  %267 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %42) #9
  %268 = getelementptr inbounds [1024 x i8], ptr %40, i64 0, i64 0
  %269 = invoke noundef i32 @_ZN3tds9FileUtils12extract_pathEPKcPci(ptr noundef %267, ptr noundef %268, i32 noundef 1024)
          to label %270 unwind label %317

270:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 1, ptr %45) #9
  %271 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %42) #9
  %272 = getelementptr inbounds [1024 x i8], ptr %40, i64 0, i64 0
  %273 = load i8, ptr %41, align 1, !tbaa !25, !range !26, !noundef !27
  %274 = trunc i8 %273 to i1
  %275 = invoke noundef zeroext i1 @_ZN7tinyobj7LoadObjEPNS_8attrib_tEPSt6vectorINS_7shape_tESaIS3_EEPS2_INS_10material_tESaIS7_EEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESH_PKcSJ_bb(ptr noundef %32, ptr noundef %33, ptr noundef %34, ptr noundef %38, ptr noundef %39, ptr noundef %271, ptr noundef %272, i1 noundef zeroext %274, i1 noundef zeroext true)
          to label %276 unwind label %321

276:                                              ; preds = %270
  %277 = zext i1 %275 to i8
  store i8 %277, ptr %45, align 1, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 24, ptr %46) #9
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %46) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #9
  store i32 0, ptr %47, align 4, !tbaa !5
  br label %278

278:                                              ; preds = %435, %276
  %279 = load i32, ptr %47, align 4, !tbaa !5
  %280 = sext i32 %279 to i64
  %281 = call noundef i64 @_ZNKSt6vectorIN7tinyobj7shape_tESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  %282 = icmp ult i64 %280, %281
  br i1 %282, label %325, label %283

283:                                              ; preds = %278
  store i32 11, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #9
  br label %443

284:                                              ; preds = %238
  %285 = landingpad { ptr, i32 }
          cleanup
  %286 = extractvalue { ptr, i32 } %285, 0
  store ptr %286, ptr %7, align 8
  %287 = extractvalue { ptr, i32 } %285, 1
  store i32 %287, ptr %8, align 4
  br label %521

288:                                              ; preds = %250, %241
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %7, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %8, align 4
  br label %520

292:                                              ; preds = %249
  %293 = landingpad { ptr, i32 }
          cleanup
  %294 = extractvalue { ptr, i32 } %293, 0
  store ptr %294, ptr %7, align 8
  %295 = extractvalue { ptr, i32 } %293, 1
  store i32 %295, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  br label %520

296:                                              ; preds = %252
  %297 = landingpad { ptr, i32 }
          cleanup
  %298 = extractvalue { ptr, i32 } %297, 0
  store ptr %298, ptr %7, align 8
  %299 = extractvalue { ptr, i32 } %297, 1
  store i32 %299, ptr %8, align 4
  br label %519

300:                                              ; preds = %261
  %301 = landingpad { ptr, i32 }
          cleanup
  %302 = extractvalue { ptr, i32 } %301, 0
  store ptr %302, ptr %7, align 8
  %303 = extractvalue { ptr, i32 } %301, 1
  store i32 %303, ptr %8, align 4
  br label %518

304:                                              ; preds = %262
  %305 = landingpad { ptr, i32 }
          cleanup
  %306 = extractvalue { ptr, i32 } %305, 0
  store ptr %306, ptr %7, align 8
  %307 = extractvalue { ptr, i32 } %305, 1
  store i32 %307, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  br label %517

308:                                              ; preds = %263
  %309 = landingpad { ptr, i32 }
          cleanup
  %310 = extractvalue { ptr, i32 } %309, 0
  store ptr %310, ptr %7, align 8
  %311 = extractvalue { ptr, i32 } %309, 1
  store i32 %311, ptr %8, align 4
  br label %316

312:                                              ; preds = %264
  %313 = landingpad { ptr, i32 }
          cleanup
  %314 = extractvalue { ptr, i32 } %313, 0
  store ptr %314, ptr %7, align 8
  %315 = extractvalue { ptr, i32 } %313, 1
  store i32 %315, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #9
  br label %316

316:                                              ; preds = %312, %308
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %43) #9
  br label %516

317:                                              ; preds = %266
  %318 = landingpad { ptr, i32 }
          cleanup
  %319 = extractvalue { ptr, i32 } %318, 0
  store ptr %319, ptr %7, align 8
  %320 = extractvalue { ptr, i32 } %318, 1
  store i32 %320, ptr %8, align 4
  br label %516

321:                                              ; preds = %270
  %322 = landingpad { ptr, i32 }
          cleanup
  %323 = extractvalue { ptr, i32 } %322, 0
  store ptr %323, ptr %7, align 8
  %324 = extractvalue { ptr, i32 } %322, 1
  store i32 %324, ptr %8, align 4
  br label %515

325:                                              ; preds = %278
  call void @llvm.lifetime.start.p0(i64 24, ptr %48) #9
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %48) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %49) #9
  call void @_ZNSt6vectorI16GfxVertexFormat1SaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %49) #9
  %326 = load i32, ptr %47, align 4, !tbaa !5
  %327 = sext i32 %326 to i64
  %328 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNSt6vectorIN7tinyobj7shape_tESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %327) #9
  invoke void @_ZN13TinyMeshUtils13extract_shapeERKN7tinyobj8attrib_tERKNS0_7shape_tERKSt6vectorINS0_10material_tESaIS8_EERS7_IiSaIiEERS7_I16GfxVertexFormat1SaISG_EERi(ptr noundef nonnull align 8 dereferenceable(144) %32, ptr noundef nonnull align 8 dereferenceable(224) %328, ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(24) %48, ptr noundef nonnull align 8 dereferenceable(24) %49, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %329 unwind label %382

329:                                              ; preds = %325
  store i32 -1, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #9
  store float 1.000000e+00, ptr %50, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #9
  store float 1.000000e+00, ptr %51, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #9
  store float 1.000000e+00, ptr %52, align 4, !tbaa !24
  invoke void @_ZN4TINY11TinyVector3IfNS_10FloatUtilsEE8setValueERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(4) %50, ptr noundef nonnull align 4 dereferenceable(4) %51, ptr noundef nonnull align 4 dereferenceable(4) %52)
          to label %330 unwind label %386

330:                                              ; preds = %329
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #9
  %331 = load i32, ptr %47, align 4, !tbaa !5
  %332 = sext i32 %331 to i64
  %333 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNSt6vectorIN7tinyobj7shape_tESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %332) #9
  %334 = getelementptr inbounds %"struct.tinyobj::shape_t", ptr %333, i32 0, i32 1
  %335 = getelementptr inbounds %"struct.tinyobj::mesh_t", ptr %334, i32 0, i32 2
  %336 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %335) #9
  %337 = icmp ne i64 %336, 0
  br i1 %337, label %338, label %410

338:                                              ; preds = %330
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #9
  %339 = load i32, ptr %47, align 4, !tbaa !5
  %340 = sext i32 %339 to i64
  %341 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNSt6vectorIN7tinyobj7shape_tESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %340) #9
  %342 = getelementptr inbounds %"struct.tinyobj::shape_t", ptr %341, i32 0, i32 1
  %343 = getelementptr inbounds %"struct.tinyobj::mesh_t", ptr %342, i32 0, i32 2
  %344 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %343, i64 noundef 0) #9
  %345 = load i32, ptr %344, align 4, !tbaa !5
  %346 = sext i32 %345 to i64
  %347 = call noundef nonnull align 8 dereferenceable(1864) ptr @_ZNSt6vectorIN7tinyobj10material_tESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %346) #9
  store ptr %347, ptr %53, align 8, !tbaa !9
  %348 = load ptr, ptr %53, align 8, !tbaa !9
  %349 = getelementptr inbounds %"struct.tinyobj::material_t", ptr %348, i32 0, i32 2
  %350 = getelementptr inbounds [3 x float], ptr %349, i64 0, i64 0
  %351 = load ptr, ptr %53, align 8, !tbaa !9
  %352 = getelementptr inbounds %"struct.tinyobj::material_t", ptr %351, i32 0, i32 2
  %353 = getelementptr inbounds [3 x float], ptr %352, i64 0, i64 1
  %354 = load ptr, ptr %53, align 8, !tbaa !9
  %355 = getelementptr inbounds %"struct.tinyobj::material_t", ptr %354, i32 0, i32 2
  %356 = getelementptr inbounds [3 x float], ptr %355, i64 0, i64 2
  invoke void @_ZN4TINY11TinyVector3IfNS_10FloatUtilsEE8setValueERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(4) %350, ptr noundef nonnull align 4 dereferenceable(4) %353, ptr noundef nonnull align 4 dereferenceable(4) %356)
          to label %357 unwind label %390

357:                                              ; preds = %338
  %358 = load ptr, ptr %53, align 8, !tbaa !9
  %359 = getelementptr inbounds %"struct.tinyobj::material_t", ptr %358, i32 0, i32 12
  %360 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %359) #9
  %361 = icmp ne i64 %360, 0
  br i1 %361, label %362, label %408

362:                                              ; preds = %357
  call void @llvm.lifetime.start.p0(i64 32, ptr %54) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %55) #9
  %363 = getelementptr inbounds [1024 x i8], ptr %40, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 1, ptr %56) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %56) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %55, ptr noundef %363, ptr noundef nonnull align 1 dereferenceable(1) %56)
          to label %364 unwind label %394

364:                                              ; preds = %362
  %365 = load ptr, ptr %53, align 8, !tbaa !9
  %366 = getelementptr inbounds %"struct.tinyobj::material_t", ptr %365, i32 0, i32 12
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %54, ptr noundef nonnull align 8 dereferenceable(32) %55, ptr noundef nonnull align 8 dereferenceable(32) %366)
          to label %367 unwind label %398

367:                                              ; preds = %364
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %55) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %56) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %56) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %55) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %57) #9
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %57) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #9
  %368 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %54) #9
  %369 = invoke ptr @stbi_load(ptr noundef %368, ptr noundef %58, ptr noundef %59, ptr noundef %60, i32 noundef 3)
          to label %370 unwind label %403

370:                                              ; preds = %367
  store ptr %369, ptr %61, align 8, !tbaa !9
  %371 = getelementptr inbounds %struct.TinyCommonGraphicsApp, ptr %6, i32 0, i32 2
  %372 = load ptr, ptr %371, align 8, !tbaa !11
  %373 = load ptr, ptr %61, align 8, !tbaa !9
  %374 = load i32, ptr %58, align 4, !tbaa !5
  %375 = load i32, ptr %59, align 4, !tbaa !5
  %376 = load ptr, ptr %372, align 8, !tbaa !15
  %377 = getelementptr inbounds ptr, ptr %376, i64 11
  %378 = load ptr, ptr %377, align 8
  %379 = invoke noundef i32 %378(ptr noundef nonnull align 8 dereferenceable(60) %372, ptr noundef %373, i32 noundef %374, i32 noundef %375, i1 noundef zeroext true)
          to label %380 unwind label %403

380:                                              ; preds = %370
  store i32 %379, ptr %13, align 4, !tbaa !5
  %381 = load ptr, ptr %61, align 8, !tbaa !9
  call void @free(ptr noundef %381) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #9
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %57) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %57) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %54) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %54) #9
  br label %408

382:                                              ; preds = %410, %325
  %383 = landingpad { ptr, i32 }
          cleanup
  %384 = extractvalue { ptr, i32 } %383, 0
  store ptr %384, ptr %7, align 8
  %385 = extractvalue { ptr, i32 } %383, 1
  store i32 %385, ptr %8, align 4
  br label %442

386:                                              ; preds = %329
  %387 = landingpad { ptr, i32 }
          cleanup
  %388 = extractvalue { ptr, i32 } %387, 0
  store ptr %388, ptr %7, align 8
  %389 = extractvalue { ptr, i32 } %387, 1
  store i32 %389, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #9
  br label %442

390:                                              ; preds = %338
  %391 = landingpad { ptr, i32 }
          cleanup
  %392 = extractvalue { ptr, i32 } %391, 0
  store ptr %392, ptr %7, align 8
  %393 = extractvalue { ptr, i32 } %391, 1
  store i32 %393, ptr %8, align 4
  br label %409

394:                                              ; preds = %362
  %395 = landingpad { ptr, i32 }
          cleanup
  %396 = extractvalue { ptr, i32 } %395, 0
  store ptr %396, ptr %7, align 8
  %397 = extractvalue { ptr, i32 } %395, 1
  store i32 %397, ptr %8, align 4
  br label %402

398:                                              ; preds = %364
  %399 = landingpad { ptr, i32 }
          cleanup
  %400 = extractvalue { ptr, i32 } %399, 0
  store ptr %400, ptr %7, align 8
  %401 = extractvalue { ptr, i32 } %399, 1
  store i32 %401, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %55) #9
  br label %402

402:                                              ; preds = %398, %394
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %56) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %56) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %55) #9
  br label %407

403:                                              ; preds = %370, %367
  %404 = landingpad { ptr, i32 }
          cleanup
  %405 = extractvalue { ptr, i32 } %404, 0
  store ptr %405, ptr %7, align 8
  %406 = extractvalue { ptr, i32 } %404, 1
  store i32 %406, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #9
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %57) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %57) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %54) #9
  br label %407

407:                                              ; preds = %403, %402
  call void @llvm.lifetime.end.p0(i64 32, ptr %54) #9
  br label %409

408:                                              ; preds = %380, %357
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #9
  br label %410

409:                                              ; preds = %407, %390
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #9
  br label %442

410:                                              ; preds = %408, %330
  %411 = getelementptr inbounds %struct.TinyCommonGraphicsApp, ptr %6, i32 0, i32 2
  %412 = load ptr, ptr %411, align 8, !tbaa !11
  %413 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt6vectorI16GfxVertexFormat1SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef 0) #9
  %414 = getelementptr inbounds %struct.GfxVertexFormat1, ptr %413, i32 0, i32 0
  %415 = call noundef i64 @_ZNKSt6vectorI16GfxVertexFormat1SaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #9
  %416 = trunc i64 %415 to i32
  %417 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef 0) #9
  %418 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #9
  %419 = trunc i64 %418 to i32
  %420 = load i32, ptr %13, align 4, !tbaa !5
  %421 = load ptr, ptr %412, align 8, !tbaa !15
  %422 = getelementptr inbounds ptr, ptr %421, i64 9
  %423 = load ptr, ptr %422, align 8
  %424 = invoke noundef i32 %423(ptr noundef nonnull align 8 dereferenceable(60) %412, ptr noundef %414, i32 noundef %416, ptr noundef %417, i32 noundef %419, i32 noundef 1, i32 noundef %420)
          to label %425 unwind label %382

425:                                              ; preds = %410
  store i32 %424, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #9
  %426 = getelementptr inbounds %struct.TinyCommonGraphicsApp, ptr %6, i32 0, i32 2
  %427 = load ptr, ptr %426, align 8, !tbaa !11
  %428 = load i32, ptr %26, align 4, !tbaa !5
  %429 = load ptr, ptr %427, align 8, !tbaa !15
  %430 = getelementptr inbounds ptr, ptr %429, i64 17
  %431 = load ptr, ptr %430, align 8
  %432 = invoke noundef i32 %431(ptr noundef nonnull align 8 dereferenceable(60) %427, i32 noundef %428, ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(16) %12, float noundef 1.000000e+00, i1 noundef zeroext true)
          to label %433 unwind label %438

433:                                              ; preds = %425
  store i32 %432, ptr %62, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %46, ptr noundef nonnull align 4 dereferenceable(4) %62)
          to label %434 unwind label %438

434:                                              ; preds = %433
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #9
  call void @_ZNSt6vectorI16GfxVertexFormat1SaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %49) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %49) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %48) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %48) #9
  br label %435

435:                                              ; preds = %434
  %436 = load i32, ptr %47, align 4, !tbaa !5
  %437 = add nsw i32 %436, 1
  store i32 %437, ptr %47, align 4, !tbaa !5
  br label %278, !llvm.loop !28

438:                                              ; preds = %433, %425
  %439 = landingpad { ptr, i32 }
          cleanup
  %440 = extractvalue { ptr, i32 } %439, 0
  store ptr %440, ptr %7, align 8
  %441 = extractvalue { ptr, i32 } %439, 1
  store i32 %441, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #9
  br label %442

442:                                              ; preds = %438, %409, %386, %382
  call void @_ZNSt6vectorI16GfxVertexFormat1SaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %49) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %49) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %48) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %48) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #9
  br label %514

443:                                              ; preds = %283
  %444 = getelementptr inbounds %struct.TinyCommonGraphicsApp, ptr %6, i32 0, i32 2
  %445 = load ptr, ptr %444, align 8, !tbaa !11
  invoke void @_ZN24TinyGLInstancingRenderer16write_transformsEv(ptr noundef nonnull align 8 dereferenceable(60) %445)
          to label %446 unwind label %478

446:                                              ; preds = %443
  br label %447

447:                                              ; preds = %477, %446
  %448 = getelementptr inbounds %struct.TinyCommonGraphicsApp, ptr %6, i32 0, i32 1
  %449 = load ptr, ptr %448, align 8, !tbaa !29
  %450 = load ptr, ptr %449, align 8, !tbaa !15
  %451 = getelementptr inbounds ptr, ptr %450, i64 7
  %452 = load ptr, ptr %451, align 8
  %453 = invoke noundef zeroext i1 %452(ptr noundef nonnull align 8 dereferenceable(8) %449)
          to label %454 unwind label %478

454:                                              ; preds = %447
  %455 = xor i1 %453, true
  br i1 %455, label %456, label %511

456:                                              ; preds = %454
  call void @llvm.lifetime.start.p0(i64 1, ptr %63) #9
  invoke void @_ZN15TinyProfileZoneC2EPKc(ptr noundef nonnull align 1 dereferenceable(1) %63, ptr noundef @.str.14)
          to label %457 unwind label %482

457:                                              ; preds = %456
  call void @llvm.lifetime.start.p0(i64 4, ptr %64) #9
  store i32 2, ptr %64, align 4, !tbaa !5
  %458 = getelementptr inbounds %struct.TinyCommonGraphicsApp, ptr %6, i32 0, i32 2
  %459 = load ptr, ptr %458, align 8, !tbaa !11
  %460 = load i32, ptr %64, align 4, !tbaa !5
  %461 = load ptr, ptr %459, align 8, !tbaa !15
  %462 = getelementptr inbounds ptr, ptr %461, i64 36
  %463 = load ptr, ptr %462, align 8
  invoke void %463(ptr noundef nonnull align 8 dereferenceable(60) %459, i32 noundef %460)
          to label %464 unwind label %486

464:                                              ; preds = %457
  call void @llvm.lifetime.start.p0(i64 32, ptr %65) #9
  invoke void @_ZN12DrawGridDataC2Ei(ptr noundef nonnull align 4 dereferenceable(32) %65, i32 noundef 2)
          to label %465 unwind label %490

465:                                              ; preds = %464
  %466 = getelementptr inbounds %struct.DrawGridData, ptr %65, i32 0, i32 2
  store i32 2, ptr %466, align 4, !tbaa !30
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %66, ptr align 4 %65, i64 32, i1 false), !tbaa.struct !32
  invoke void @_ZN14TinyOpenGL3App9draw_gridE12DrawGridData(ptr noundef nonnull align 8 dereferenceable(104) %6, ptr noundef byval(%struct.DrawGridData) align 8 %66)
          to label %467 unwind label %490

467:                                              ; preds = %465
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #9
  store ptr @.str.15, ptr %67, align 8, !tbaa !9
  %468 = load ptr, ptr %67, align 8, !tbaa !9
  invoke void @_ZN14TinyOpenGL3App12draw_text_3dEPKcffff(ptr noundef nonnull align 8 dereferenceable(104) %6, ptr noundef %468, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %469 unwind label %494

469:                                              ; preds = %467
  call void @llvm.lifetime.start.p0(i64 1, ptr %68) #9
  invoke void @_ZN15TinyProfileZoneC2EPKc(ptr noundef nonnull align 1 dereferenceable(1) %68, ptr noundef @.str.16)
          to label %470 unwind label %498

470:                                              ; preds = %469
  %471 = getelementptr inbounds %struct.TinyCommonGraphicsApp, ptr %6, i32 0, i32 2
  %472 = load ptr, ptr %471, align 8, !tbaa !11
  %473 = load ptr, ptr %472, align 8, !tbaa !15
  %474 = getelementptr inbounds ptr, ptr %473, i64 3
  %475 = load ptr, ptr %474, align 8
  invoke void %475(ptr noundef nonnull align 8 dereferenceable(60) %472)
          to label %476 unwind label %502

476:                                              ; preds = %470
  call void @_ZN15TinyProfileZoneD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %68) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %68) #9
  invoke void @_ZN14TinyOpenGL3App11swap_bufferEv(ptr noundef nonnull align 8 dereferenceable(104) %6)
          to label %477 unwind label %494

477:                                              ; preds = %476
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %65) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #9
  call void @_ZN15TinyProfileZoneD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %63) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %63) #9
  br label %447, !llvm.loop !33

478:                                              ; preds = %511, %447, %443
  %479 = landingpad { ptr, i32 }
          cleanup
  %480 = extractvalue { ptr, i32 } %479, 0
  store ptr %480, ptr %7, align 8
  %481 = extractvalue { ptr, i32 } %479, 1
  store i32 %481, ptr %8, align 4
  br label %514

482:                                              ; preds = %456
  %483 = landingpad { ptr, i32 }
          cleanup
  %484 = extractvalue { ptr, i32 } %483, 0
  store ptr %484, ptr %7, align 8
  %485 = extractvalue { ptr, i32 } %483, 1
  store i32 %485, ptr %8, align 4
  br label %510

486:                                              ; preds = %457
  %487 = landingpad { ptr, i32 }
          cleanup
  %488 = extractvalue { ptr, i32 } %487, 0
  store ptr %488, ptr %7, align 8
  %489 = extractvalue { ptr, i32 } %487, 1
  store i32 %489, ptr %8, align 4
  br label %509

490:                                              ; preds = %465, %464
  %491 = landingpad { ptr, i32 }
          cleanup
  %492 = extractvalue { ptr, i32 } %491, 0
  store ptr %492, ptr %7, align 8
  %493 = extractvalue { ptr, i32 } %491, 1
  store i32 %493, ptr %8, align 4
  br label %508

494:                                              ; preds = %476, %467
  %495 = landingpad { ptr, i32 }
          cleanup
  %496 = extractvalue { ptr, i32 } %495, 0
  store ptr %496, ptr %7, align 8
  %497 = extractvalue { ptr, i32 } %495, 1
  store i32 %497, ptr %8, align 4
  br label %507

498:                                              ; preds = %469
  %499 = landingpad { ptr, i32 }
          cleanup
  %500 = extractvalue { ptr, i32 } %499, 0
  store ptr %500, ptr %7, align 8
  %501 = extractvalue { ptr, i32 } %499, 1
  store i32 %501, ptr %8, align 4
  br label %506

502:                                              ; preds = %470
  %503 = landingpad { ptr, i32 }
          cleanup
  %504 = extractvalue { ptr, i32 } %503, 0
  store ptr %504, ptr %7, align 8
  %505 = extractvalue { ptr, i32 } %503, 1
  store i32 %505, ptr %8, align 4
  call void @_ZN15TinyProfileZoneD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %68) #9
  br label %506

506:                                              ; preds = %502, %498
  call void @llvm.lifetime.end.p0(i64 1, ptr %68) #9
  br label %507

507:                                              ; preds = %506, %494
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #9
  br label %508

508:                                              ; preds = %507, %490
  call void @llvm.lifetime.end.p0(i64 32, ptr %65) #9
  br label %509

509:                                              ; preds = %508, %486
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #9
  call void @_ZN15TinyProfileZoneD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %63) #9
  br label %510

510:                                              ; preds = %509, %482
  call void @llvm.lifetime.end.p0(i64 1, ptr %63) #9
  br label %514

511:                                              ; preds = %454
  invoke void @_Z42TinyChromeUtilsStopTimingsAndWriteJsonFilePKc(ptr noundef @.str.17)
          to label %512 unwind label %478

512:                                              ; preds = %511
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %46) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %46) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 1024, ptr %40) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #9
  call void @_ZNSt6vectorIN7tinyobj10material_tESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #9
  call void @_ZNSt6vectorIN7tinyobj7shape_tESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #9
  call void @_ZN7tinyobj8attrib_tD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %32) #9
  call void @llvm.lifetime.end.p0(i64 144, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #9
  call void @_ZN14TinyOpenGL3AppD1Ev(ptr noundef nonnull align 8 dereferenceable(104) %6) #9
  call void @llvm.lifetime.end.p0(i64 104, ptr %6) #9
  %513 = load i32, ptr %3, align 4
  ret i32 %513

514:                                              ; preds = %510, %478, %442
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %46) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %46) #9
  br label %515

515:                                              ; preds = %514, %321
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #9
  br label %516

516:                                              ; preds = %515, %317, %316
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 1024, ptr %40) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #9
  br label %517

517:                                              ; preds = %516, %304
  call void @_ZNSt6vectorIN7tinyobj10material_tESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #9
  call void @_ZNSt6vectorIN7tinyobj7shape_tESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #9
  call void @_ZN7tinyobj8attrib_tD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %32) #9
  br label %518

518:                                              ; preds = %517, %300
  call void @llvm.lifetime.end.p0(i64 144, ptr %32) #9
  br label %519

519:                                              ; preds = %518, %296
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  br label %520

520:                                              ; preds = %519, %292, %288
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  br label %521

521:                                              ; preds = %520, %284
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  br label %522

522:                                              ; preds = %521, %147
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  br label %523

523:                                              ; preds = %522, %143
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #9
  br label %524

524:                                              ; preds = %523, %139
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #9
  br label %525

525:                                              ; preds = %524, %135
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #9
  br label %526

526:                                              ; preds = %525, %131
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #9
  br label %527

527:                                              ; preds = %526, %127
  call void @_ZN14TinyOpenGL3AppD1Ev(ptr noundef nonnull align 8 dereferenceable(104) %6) #9
  call void @llvm.lifetime.end.p0(i64 104, ptr %6) #9
  br label %528

528:                                              ; preds = %527
  %529 = load ptr, ptr %7, align 8
  %530 = load i32, ptr %8, align 4
  %531 = insertvalue { ptr, i32 } poison, ptr %529, 0
  %532 = insertvalue { ptr, i32 } %531, i32 %530, 1
  resume { ptr, i32 } %532
}

declare void @_Z27TinyChromeUtilsStartTimingsv() #4

declare void @_ZN14TinyOpenGL3AppC1EPKciibiiii(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef, i32 noundef, i32 noundef, i1 noundef zeroext, i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #4

declare void @_ZN14TinyOpenGL3App11set_up_axisEi(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef) unnamed_addr #4

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

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

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

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

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

declare noundef i32 @_ZN14TinyOpenGL3App19register_cube_shapeEfffif(ptr noundef nonnull align 8 dereferenceable(104), float noundef, float noundef, float noundef, i32 noundef, float noundef) unnamed_addr #4

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

declare noundef i32 @_ZN14TinyOpenGL3App35register_graphics_unit_sphere_shapeE23EnumSphereLevelOfDetaili(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef, i32 noundef) unnamed_addr #4

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3tds9FileUtils9find_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERS6_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3tds9FileUtils12extract_pathEPKcPci(ptr noundef, ptr noundef, i32 noundef) #2 align 2

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

declare noundef zeroext i1 @_ZN7tinyobj7LoadObjEPNS_8attrib_tEPSt6vectorINS_7shape_tESaIS3_EEPS2_INS_10material_tESaIS7_EEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESH_PKcSJ_bb(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext, i1 noundef zeroext) #4

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13TinyMeshUtils13extract_shapeERKN7tinyobj8attrib_tERKNS0_7shape_tERKSt6vectorINS0_10material_tESaIS8_EERS7_IiSaIiEERS7_I16GfxVertexFormat1SaISG_EERi(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(224), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #5

declare ptr @stbi_load(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #4

; Function Attrs: nounwind
declare void @free(ptr noundef) #6

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

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

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

declare void @_ZN24TinyGLInstancingRenderer16write_transformsEv(ptr noundef nonnull align 8 dereferenceable(60)) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12DrawGridDataC2Ei(ptr noundef nonnull align 4 dereferenceable(32), i32 noundef) unnamed_addr #1 align 2

declare void @_ZN14TinyOpenGL3App9draw_gridE12DrawGridData(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef byval(%struct.DrawGridData) align 8) unnamed_addr #4

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

declare void @_ZN14TinyOpenGL3App12draw_text_3dEPKcffff(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef, float noundef, float noundef, float noundef, float noundef) unnamed_addr #4

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

declare void @_ZN14TinyOpenGL3App11swap_bufferEv(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #4

declare void @_Z42TinyChromeUtilsStopTimingsAndWriteJsonFilePKc(ptr noundef) #4

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

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

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

; Function Attrs: nounwind
declare void @_ZN14TinyOpenGL3AppD1Ev(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #6

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

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 16}
!12 = !{!"_ZTS21TinyCommonGraphicsApp", !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !13, i64 40, !13, i64 41, !13, i64 42, !14, i64 44, !14, i64 48, !14, i64 52, !14, i64 56, !13, i64 60, !7, i64 64}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = !{!23, !10, i64 96}
!23 = !{!"_ZTS14TinyOpenGL3App", !12, i64 0, !10, i64 80, !10, i64 88, !10, i64 96}
!24 = !{!14, !14, i64 0}
!25 = !{!13, !13, i64 0}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = distinct !{!28, !19}
!29 = !{!12, !10, i64 8}
!30 = !{!31, !6, i64 8}
!31 = !{!"_ZTS12DrawGridData", !6, i64 0, !14, i64 4, !6, i64 8, !13, i64 12, !7, i64 16}
!32 = !{i64 0, i64 4, !5, i64 4, i64 4, !24, i64 8, i64 4, !5, i64 12, i64 1, !25, i64 16, i64 16, !17}
!33 = distinct !{!33, !19}


; 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.TinyOpenGL3App = type { %struct.TinyCommonGraphicsApp.base, ptr, ptr, ptr }
%struct.TinyCommonGraphicsApp.base = type <{ ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, float, float, float, float, i8, [3 x i8], [3 x float] }>
%"struct.TINY::TinyVector3" = type { float, float, float, i32 }
%"struct.TINY::TinyQuaternion" = type { float, float, float, float }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.tinyobj::attrib_t" = type { %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector.13" }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<tinyobj::shape_t, std::allocator<tinyobj::shape_t>>::_Vector_impl" }
%"struct.std::_Vector_base<tinyobj::shape_t, std::allocator<tinyobj::shape_t>>::_Vector_impl" = type { %"struct.std::_Vector_base<tinyobj::shape_t, std::allocator<tinyobj::shape_t>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tinyobj::shape_t, std::allocator<tinyobj::shape_t>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<tinyobj::material_t, std::allocator<tinyobj::material_t>>::_Vector_impl" }
%"struct.std::_Vector_base<tinyobj::material_t, std::allocator<tinyobj::material_t>>::_Vector_impl" = type { %"struct.std::_Vector_base<tinyobj::material_t, std::allocator<tinyobj::material_t>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tinyobj::material_t, std::allocator<tinyobj::material_t>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"class.std::vector.28" = type { %"struct.std::_Vector_base.29" }
%"struct.std::_Vector_base.29" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.33" = type { %"struct.std::_Vector_base.34" }
%"struct.std::_Vector_base.34" = type { %"struct.std::_Vector_base<GfxVertexFormat1, std::allocator<GfxVertexFormat1>>::_Vector_impl" }
%"struct.std::_Vector_base<GfxVertexFormat1, std::allocator<GfxVertexFormat1>>::_Vector_impl" = type { %"struct.std::_Vector_base<GfxVertexFormat1, std::allocator<GfxVertexFormat1>>::_Vector_impl_data" }
%"struct.std::_Vector_base<GfxVertexFormat1, std::allocator<GfxVertexFormat1>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.TinyProfileZone = type { i8 }
%struct.DrawGridData = type { i32, float, i32, i8, [4 x float] }

@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [13 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca %struct.TinyOpenGL3App, align 8
  %4 = alloca %"struct.TINY::TinyVector3", align 4
  %5 = alloca %"struct.TINY::TinyQuaternion", align 4
  %6 = alloca %"struct.TINY::TinyVector3", align 4
  %7 = alloca %"struct.TINY::TinyVector3", align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::vector.8", align 8
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca %"struct.tinyobj::attrib_t", align 8
  %14 = alloca %"class.std::vector.18", align 8
  %15 = alloca %"class.std::vector.23", align 8
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca [1024 x i8], align 16
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::allocator", align 1
  %25 = alloca %"class.std::vector.28", align 8
  %26 = alloca %"class.std::vector.28", align 8
  %27 = alloca %"class.std::vector.33", align 8
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca %"class.std::__cxx11::basic_string", align 8
  %33 = alloca %"class.std::allocator", align 1
  %34 = alloca %"class.std::vector.8", align 8
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca %class.TinyProfileZone, align 1
  %40 = alloca %struct.DrawGridData, align 8
  %41 = alloca %class.TinyProfileZone, align 1
  tail call void @_Z27TinyChromeUtilsStartTimingsv()
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %3) #9
  call void @_ZN14TinyOpenGL3AppC1EPKciibiiii(ptr noundef nonnull align 8 dereferenceable(104) %3, ptr noundef nonnull @.str.12, i32 noundef 1024, i32 noundef 768, i1 noundef zeroext true, i32 noundef 0, i32 noundef -1, i32 noundef 131072, i32 noundef 134217728)
  %42 = getelementptr inbounds i8, ptr %3, i64 16
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %44 = load ptr, ptr %43, align 8, !tbaa !12
  %45 = getelementptr inbounds i8, ptr %44, i64 16
  %46 = load ptr, ptr %45, align 8
  invoke void %46(ptr noundef nonnull align 8 dereferenceable(60) %43)
          to label %47 unwind label %80

47:                                               ; preds = %2
  invoke void @_ZN14TinyOpenGL3App11set_up_axisEi(ptr noundef nonnull align 8 dereferenceable(104) %3, i32 noundef 2)
          to label %48 unwind label %80

48:                                               ; preds = %47
  %49 = load ptr, ptr %42, align 8, !tbaa !5
  %50 = load ptr, ptr %49, align 8, !tbaa !12
  %51 = getelementptr inbounds i8, ptr %50, i64 304
  %52 = load ptr, ptr %51, align 8
  %53 = invoke noundef ptr %52(ptr noundef nonnull align 8 dereferenceable(60) %49)
          to label %54 unwind label %80

54:                                               ; preds = %48
  %55 = load ptr, ptr %53, align 8, !tbaa !12
  %56 = getelementptr inbounds i8, ptr %55, i64 64
  %57 = load ptr, ptr %56, align 8
  invoke void %57(ptr noundef nonnull align 8 dereferenceable(16) %53, float noundef 4.000000e+00)
          to label %58 unwind label %80

58:                                               ; preds = %54
  %59 = load ptr, ptr %42, align 8, !tbaa !5
  %60 = load ptr, ptr %59, align 8, !tbaa !12
  %61 = getelementptr inbounds i8, ptr %60, i64 304
  %62 = load ptr, ptr %61, align 8
  %63 = invoke noundef ptr %62(ptr noundef nonnull align 8 dereferenceable(60) %59)
          to label %64 unwind label %80

64:                                               ; preds = %58
  %65 = load ptr, ptr %63, align 8, !tbaa !12
  %66 = getelementptr inbounds i8, ptr %65, i64 120
  %67 = load ptr, ptr %66, align 8
  invoke void %67(ptr noundef nonnull align 8 dereferenceable(16) %63, float noundef -3.000000e+01)
          to label %68 unwind label %80

68:                                               ; preds = %64
  %69 = load ptr, ptr %42, align 8, !tbaa !5
  %70 = load ptr, ptr %69, align 8, !tbaa !12
  %71 = getelementptr inbounds i8, ptr %70, i64 304
  %72 = load ptr, ptr %71, align 8
  %73 = invoke noundef ptr %72(ptr noundef nonnull align 8 dereferenceable(60) %69)
          to label %74 unwind label %80

74:                                               ; preds = %68
  %75 = load ptr, ptr %73, align 8, !tbaa !12
  %76 = getelementptr inbounds i8, ptr %75, i64 56
  %77 = load ptr, ptr %76, align 8
  invoke void %77(ptr noundef nonnull align 8 dereferenceable(16) %73, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %78 unwind label %80

78:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #9
  call void @_ZN4TINY11TinyVector3IfNS_10FloatUtilsEEC2Efff(ptr noundef nonnull align 4 dereferenceable(16) %4, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0xBF947AE140000000)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  invoke void @_ZN4TINY14TinyQuaternionIfNS_10FloatUtilsEEC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %5, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
          to label %79 unwind label %82

79:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #9
  call void @_ZN4TINY11TinyVector3IfNS_10FloatUtilsEEC2Efff(ptr noundef nonnull align 4 dereferenceable(16) %6, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #9
  call void @_ZN4TINY11TinyVector3IfNS_10FloatUtilsEEC2Efff(ptr noundef nonnull align 4 dereferenceable(16) %7, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #9
  store i32 -1, ptr %8, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #9
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 3145728)
          to label %.preheader103 unwind label %84

80:                                               ; preds = %74, %68, %64, %58, %54, %48, %47, %2
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %267

82:                                               ; preds = %78
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %266

84:                                               ; preds = %88, %79
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %265

.preheader103:                                    ; preds = %79, %.preheader103
  %indvars.iv = phi i64 [ %indvars.iv.next, %.preheader103 ], [ 0, %79 ]
  %86 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv) #9
  store i8 -1, ptr %86, align 1, !tbaa !16
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 3145728
  br i1 %exitcond.not, label %.preheader101, label %.preheader103, !llvm.loop !17

.preheader101:                                    ; preds = %.preheader103, %96
  %indvars.iv114 = phi i64 [ %indvars.iv.next115, %96 ], [ 0, %.preheader103 ]
  %87 = icmp ult i64 %indvars.iv114, 512
  br label %97

88:                                               ; preds = %96
  %89 = getelementptr inbounds i8, ptr %3, i64 96
  %90 = load ptr, ptr %89, align 8, !tbaa !19
  %91 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 0) #9
  %92 = load ptr, ptr %90, align 8, !tbaa !12
  %93 = getelementptr inbounds i8, ptr %92, i64 88
  %94 = load ptr, ptr %93, align 8
  %95 = invoke noundef i32 %94(ptr noundef nonnull align 8 dereferenceable(60) %90, ptr noundef nonnull %91, i32 noundef 1024, i32 noundef 1024, i1 noundef zeroext true)
          to label %110 unwind label %84

96:                                               ; preds = %109
  %indvars.iv.next115 = add nuw nsw i64 %indvars.iv114, 1
  %exitcond117.not = icmp eq i64 %indvars.iv.next115, 1024
  br i1 %exitcond117.not, label %88, label %.preheader101, !llvm.loop !21

97:                                               ; preds = %.preheader101, %109
  %indvars.iv110 = phi i64 [ 0, %.preheader101 ], [ %indvars.iv.next111, %109 ]
  %98 = icmp ugt i64 %indvars.iv110, 511
  %99 = xor i1 %87, %98
  br i1 %99, label %100, label %109

100:                                              ; preds = %97
  %101 = shl nuw nsw i64 %indvars.iv110, 10
  %102 = add nuw nsw i64 %101, %indvars.iv114
  %103 = mul nuw nsw i64 %102, 3
  %104 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %103) #9
  store i8 0, ptr %104, align 1, !tbaa !16
  %105 = add nuw nsw i64 %103, 1
  %106 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %105) #9
  store i8 -128, ptr %106, align 1, !tbaa !16
  %107 = add nuw nsw i64 %103, 2
  %108 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %107) #9
  store i8 -1, ptr %108, align 1, !tbaa !16
  br label %109

109:                                              ; preds = %100, %97
  %indvars.iv.next111 = add nuw nsw i64 %indvars.iv110, 1
  %exitcond113.not = icmp eq i64 %indvars.iv.next111, 1024
  br i1 %exitcond113.not, label %96, label %97, !llvm.loop !22

110:                                              ; preds = %88
  store i32 %95, ptr %8, align 4, !tbaa !14
  %111 = invoke noundef i32 @_ZN14TinyOpenGL3App19register_cube_shapeEfffif(ptr noundef nonnull align 8 dereferenceable(104) %3, float noundef 1.000000e+01, float noundef 1.000000e+01, float noundef 0x3F847AE140000000, i32 noundef %95, float noundef 4.000000e+01)
          to label %112 unwind label %140

112:                                              ; preds = %110
  %113 = load ptr, ptr %42, align 8, !tbaa !5
  %114 = load ptr, ptr %113, align 8, !tbaa !12
  %115 = getelementptr inbounds i8, ptr %114, i64 136
  %116 = load ptr, ptr %115, align 8
  %117 = invoke noundef i32 %116(ptr noundef nonnull align 8 dereferenceable(60) %113, i32 noundef %111, ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(16) %7, float noundef 1.000000e+00, i1 noundef zeroext true)
          to label %118 unwind label %142

118:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #9
  store float 0.000000e+00, ptr %10, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #9
  store float 0.000000e+00, ptr %11, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #9
  store float 1.000000e+00, ptr %12, align 4, !tbaa !23
  call void @_ZN4TINY11TinyVector3IfNS_10FloatUtilsEE8setValueERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  %119 = invoke noundef i32 @_ZN14TinyOpenGL3App35register_graphics_unit_sphere_shapeE23EnumSphereLevelOfDetaili(ptr noundef nonnull align 8 dereferenceable(104) %3, i32 noundef 3, i32 noundef -1)
          to label %120 unwind label %142

120:                                              ; preds = %118
  %121 = load ptr, ptr %42, align 8, !tbaa !5
  %122 = load ptr, ptr %121, align 8, !tbaa !12
  %123 = getelementptr inbounds i8, ptr %122, i64 136
  %124 = load ptr, ptr %123, align 8
  %125 = invoke noundef i32 %124(ptr noundef nonnull align 8 dereferenceable(60) %121, i32 noundef %119, ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(16) %7, float noundef 0x3FE6666660000000, i1 noundef zeroext true)
          to label %126 unwind label %144

126:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %13) #9
  call void @_ZN7tinyobj8attrib_tC2Ev(ptr noundef nonnull align 8 dereferenceable(144) %13)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #9
  call void @_ZNSt6vectorIN7tinyobj7shape_tESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #9
  call void @_ZNSt6vectorIN7tinyobj10material_tESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #9
  store float 0.000000e+00, ptr %16, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #9
  store float -2.000000e+00, ptr %17, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #9
  store float 1.000000e+00, ptr %18, align 4, !tbaa !23
  call void @_ZN4TINY11TinyVector3IfNS_10FloatUtilsEE8setValueERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #9
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %21) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %23) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull @.str.13, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %127 unwind label %146

127:                                              ; preds = %126
  %128 = invoke noundef zeroext i1 @_ZN3tds9FileUtils9find_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERS6_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %129 unwind label %148

129:                                              ; preds = %127
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #9
  %130 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  %131 = invoke noundef i32 @_ZN3tds9FileUtils12extract_pathEPKcPci(ptr noundef %130, ptr noundef nonnull %21, i32 noundef 1024)
          to label %132 unwind label %151

132:                                              ; preds = %129
  %133 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  %134 = invoke noundef zeroext i1 @_ZN7tinyobj7LoadObjEPNS_8attrib_tEPSt6vectorINS_7shape_tESaIS3_EEPS2_INS_10material_tESaIS7_EEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESH_PKcSJ_bb(ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef %133, ptr noundef nonnull %21, i1 noundef zeroext true, i1 noundef zeroext true)
          to label %135 unwind label %153

135:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %25) #9
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #9
  %136 = call noundef i64 @_ZNKSt6vectorIN7tinyobj7shape_tESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  %.not108 = icmp eq i64 %136, 0
  br i1 %.not108, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %216, %135
  %137 = load ptr, ptr %42, align 8, !tbaa !5
  invoke void @_ZN24TinyGLInstancingRenderer16write_transformsEv(ptr noundef nonnull align 8 dereferenceable(60) %137)
          to label %.preheader unwind label %.loopexit.split-lp

.preheader:                                       ; preds = %._crit_edge
  %138 = getelementptr inbounds i8, ptr %3, i64 8
  %139 = getelementptr inbounds i8, ptr %40, i64 8
  br label %222

140:                                              ; preds = %110
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %265

142:                                              ; preds = %118, %112
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %265

144:                                              ; preds = %120
  %145 = landingpad { ptr, i32 }
          cleanup
  br label %265

146:                                              ; preds = %126
  %147 = landingpad { ptr, i32 }
          cleanup
  br label %150

148:                                              ; preds = %127
  %149 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  br label %150

150:                                              ; preds = %148, %146
  %.pn = phi { ptr, i32 } [ %149, %148 ], [ %147, %146 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #9
  br label %264

151:                                              ; preds = %129
  %152 = landingpad { ptr, i32 }
          cleanup
  br label %264

153:                                              ; preds = %132
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %264

.lr.ph:                                           ; preds = %135, %216
  %indvars.iv118 = phi i64 [ %indvars.iv.next119, %216 ], [ 0, %135 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %26) #9
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %27) #9
  call void @_ZNSt6vectorI16GfxVertexFormat1SaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #9
  %155 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNSt6vectorIN7tinyobj7shape_tESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv118) #9
  invoke void @_ZN13TinyMeshUtils13extract_shapeERKN7tinyobj8attrib_tERKNS0_7shape_tERKSt6vectorINS0_10material_tESaIS8_EERS7_IiSaIiEERS7_I16GfxVertexFormat1SaISG_EERi(ptr noundef nonnull align 8 dereferenceable(144) %13, ptr noundef nonnull align 8 dereferenceable(224) %155, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %156 unwind label %186

156:                                              ; preds = %.lr.ph
  store i32 -1, ptr %8, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #9
  store float 1.000000e+00, ptr %28, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #9
  store float 1.000000e+00, ptr %29, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %30) #9
  store float 1.000000e+00, ptr %30, align 4, !tbaa !23
  call void @_ZN4TINY11TinyVector3IfNS_10FloatUtilsEE8setValueERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %30)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #9
  %157 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNSt6vectorIN7tinyobj7shape_tESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv118) #9
  %158 = getelementptr inbounds i8, ptr %157, i64 80
  %159 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %158) #9
  %.not = icmp eq i64 %159, 0
  br i1 %.not, label %196, label %160

160:                                              ; preds = %156
  %161 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNSt6vectorIN7tinyobj7shape_tESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv118) #9
  %162 = getelementptr inbounds i8, ptr %161, i64 80
  %163 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %162, i64 noundef 0) #9
  %164 = load i32, ptr %163, align 4, !tbaa !14
  %165 = sext i32 %164 to i64
  %166 = call noundef nonnull align 8 dereferenceable(1864) ptr @_ZNSt6vectorIN7tinyobj10material_tESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %165) #9
  %167 = getelementptr inbounds i8, ptr %166, i64 44
  %168 = getelementptr inbounds i8, ptr %166, i64 48
  %169 = getelementptr inbounds i8, ptr %166, i64 52
  call void @_ZN4TINY11TinyVector3IfNS_10FloatUtilsEE8setValueERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(4) %167, ptr noundef nonnull align 4 dereferenceable(4) %168, ptr noundef nonnull align 4 dereferenceable(4) %169)
  %170 = getelementptr inbounds i8, ptr %166, i64 144
  %171 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %170) #9
  %.not85 = icmp eq i64 %171, 0
  br i1 %.not85, label %196, label %172

172:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %31) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %32) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %33) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull %21, ptr noundef nonnull align 1 dereferenceable(1) %33)
          to label %173 unwind label %188

173:                                              ; preds = %172
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %31, ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(32) %170)
          to label %174 unwind label %190

174:                                              ; preds = %173
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %33) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %32) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %34) #9
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %35) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %36) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %37) #9
  %175 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %31) #9
  %176 = invoke ptr @stbi_load(ptr noundef %175, ptr noundef nonnull %35, ptr noundef nonnull %36, ptr noundef nonnull %37, i32 noundef 3)
          to label %177 unwind label %193

177:                                              ; preds = %174
  %178 = load ptr, ptr %42, align 8, !tbaa !5
  %179 = load i32, ptr %35, align 4, !tbaa !14
  %180 = load i32, ptr %36, align 4, !tbaa !14
  %181 = load ptr, ptr %178, align 8, !tbaa !12
  %182 = getelementptr inbounds i8, ptr %181, i64 88
  %183 = load ptr, ptr %182, align 8
  %184 = invoke noundef i32 %183(ptr noundef nonnull align 8 dereferenceable(60) %178, ptr noundef %176, i32 noundef %179, i32 noundef %180, i1 noundef zeroext true)
          to label %185 unwind label %193

185:                                              ; preds = %177
  store i32 %184, ptr %8, align 4, !tbaa !14
  call void @free(ptr noundef %176) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #9
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %34) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #9
  br label %196

186:                                              ; preds = %196, %.lr.ph
  %187 = landingpad { ptr, i32 }
          cleanup
  br label %221

188:                                              ; preds = %172
  %189 = landingpad { ptr, i32 }
          cleanup
  br label %192

190:                                              ; preds = %173
  %191 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #9
  br label %192

192:                                              ; preds = %190, %188
  %.pn86 = phi { ptr, i32 } [ %191, %190 ], [ %189, %188 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %33) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %32) #9
  br label %195

193:                                              ; preds = %177, %174
  %194 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #9
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %34) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #9
  br label %195

195:                                              ; preds = %193, %192
  %.pn88 = phi { ptr, i32 } [ %194, %193 ], [ %.pn86, %192 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #9
  br label %221

196:                                              ; preds = %160, %185, %156
  %197 = load ptr, ptr %42, align 8, !tbaa !5
  %198 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt6vectorI16GfxVertexFormat1SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef 0) #9
  %199 = call noundef i64 @_ZNKSt6vectorI16GfxVertexFormat1SaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #9
  %200 = trunc i64 %199 to i32
  %201 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef 0) #9
  %202 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #9
  %203 = trunc i64 %202 to i32
  %204 = load i32, ptr %8, align 4, !tbaa !14
  %205 = load ptr, ptr %197, align 8, !tbaa !12
  %206 = getelementptr inbounds i8, ptr %205, i64 72
  %207 = load ptr, ptr %206, align 8
  %208 = invoke noundef i32 %207(ptr noundef nonnull align 8 dereferenceable(60) %197, ptr noundef nonnull %198, i32 noundef %200, ptr noundef nonnull %201, i32 noundef %203, i32 noundef 1, i32 noundef %204)
          to label %209 unwind label %186

209:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %38) #9
  %210 = load ptr, ptr %42, align 8, !tbaa !5
  %211 = load ptr, ptr %210, align 8, !tbaa !12
  %212 = getelementptr inbounds i8, ptr %211, i64 136
  %213 = load ptr, ptr %212, align 8
  %214 = invoke noundef i32 %213(ptr noundef nonnull align 8 dereferenceable(60) %210, i32 noundef %208, ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(16) %7, float noundef 1.000000e+00, i1 noundef zeroext true)
          to label %215 unwind label %219

215:                                              ; preds = %209
  store i32 %214, ptr %38, align 4, !tbaa !14
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 4 dereferenceable(4) %38)
          to label %216 unwind label %219

216:                                              ; preds = %215
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %38) #9
  call void @_ZNSt6vectorI16GfxVertexFormat1SaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %27) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %26) #9
  %indvars.iv.next119 = add nuw nsw i64 %indvars.iv118, 1
  %217 = call noundef i64 @_ZNKSt6vectorIN7tinyobj7shape_tESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  %218 = icmp ugt i64 %217, %indvars.iv.next119
  br i1 %218, label %.lr.ph, label %._crit_edge, !llvm.loop !24

219:                                              ; preds = %215, %209
  %220 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %38) #9
  br label %221

221:                                              ; preds = %219, %195, %186
  %.pn90 = phi { ptr, i32 } [ %220, %219 ], [ %187, %186 ], [ %.pn88, %195 ]
  call void @_ZNSt6vectorI16GfxVertexFormat1SaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %27) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %26) #9
  br label %263

222:                                              ; preds = %.preheader, %244
  %223 = load ptr, ptr %138, align 8, !tbaa !25
  %224 = load ptr, ptr %223, align 8, !tbaa !12
  %225 = getelementptr inbounds i8, ptr %224, i64 56
  %226 = load ptr, ptr %225, align 8
  %227 = invoke noundef zeroext i1 %226(ptr noundef nonnull align 8 dereferenceable(8) %223)
          to label %228 unwind label %.loopexit

228:                                              ; preds = %222
  br i1 %227, label %261, label %229

229:                                              ; preds = %228
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %39) #9
  invoke void @_ZN15TinyProfileZoneC2EPKc(ptr noundef nonnull align 1 dereferenceable(1) %39, ptr noundef nonnull @.str.14)
          to label %230 unwind label %245

230:                                              ; preds = %229
  %231 = load ptr, ptr %42, align 8, !tbaa !5
  %232 = load ptr, ptr %231, align 8, !tbaa !12
  %233 = getelementptr inbounds i8, ptr %232, i64 288
  %234 = load ptr, ptr %233, align 8
  invoke void %234(ptr noundef nonnull align 8 dereferenceable(60) %231, i32 noundef 2)
          to label %235 unwind label %247

235:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %40) #9
  call void @_ZN12DrawGridDataC2Ei(ptr noundef nonnull align 4 dereferenceable(32) %40, i32 noundef 2)
  store i32 2, ptr %139, align 8, !tbaa !26
  invoke void @_ZN14TinyOpenGL3App9draw_gridE12DrawGridData(ptr noundef nonnull align 8 dereferenceable(104) %3, ptr noundef nonnull byval(%struct.DrawGridData) align 8 %40)
          to label %236 unwind label %249

236:                                              ; preds = %235
  invoke void @_ZN14TinyOpenGL3App12draw_text_3dEPKcffff(ptr noundef nonnull align 8 dereferenceable(104) %3, ptr noundef nonnull @.str.15, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %237 unwind label %251

237:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %41) #9
  invoke void @_ZN15TinyProfileZoneC2EPKc(ptr noundef nonnull align 1 dereferenceable(1) %41, ptr noundef nonnull @.str.16)
          to label %238 unwind label %253

238:                                              ; preds = %237
  %239 = load ptr, ptr %42, align 8, !tbaa !5
  %240 = load ptr, ptr %239, align 8, !tbaa !12
  %241 = getelementptr inbounds i8, ptr %240, i64 24
  %242 = load ptr, ptr %241, align 8
  invoke void %242(ptr noundef nonnull align 8 dereferenceable(60) %239)
          to label %243 unwind label %255

243:                                              ; preds = %238
  call void @_ZN15TinyProfileZoneD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %41) #9
  invoke void @_ZN14TinyOpenGL3App11swap_bufferEv(ptr noundef nonnull align 8 dereferenceable(104) %3)
          to label %244 unwind label %251

244:                                              ; preds = %243
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %40) #9
  call void @_ZN15TinyProfileZoneD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %39) #9
  br label %222, !llvm.loop !28

.loopexit:                                        ; preds = %222
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %263

.loopexit.split-lp:                               ; preds = %._crit_edge, %261
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %263

245:                                              ; preds = %229
  %246 = landingpad { ptr, i32 }
          cleanup
  br label %260

247:                                              ; preds = %230
  %248 = landingpad { ptr, i32 }
          cleanup
  br label %259

249:                                              ; preds = %235
  %250 = landingpad { ptr, i32 }
          cleanup
  br label %258

251:                                              ; preds = %243, %236
  %252 = landingpad { ptr, i32 }
          cleanup
  br label %258

253:                                              ; preds = %237
  %254 = landingpad { ptr, i32 }
          cleanup
  br label %257

255:                                              ; preds = %238
  %256 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN15TinyProfileZoneD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #9
  br label %257

257:                                              ; preds = %255, %253
  %.pn78 = phi { ptr, i32 } [ %256, %255 ], [ %254, %253 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %41) #9
  br label %258

258:                                              ; preds = %251, %257, %249
  %.pn80.pn = phi { ptr, i32 } [ %250, %249 ], [ %252, %251 ], [ %.pn78, %257 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %40) #9
  br label %259

259:                                              ; preds = %258, %247
  %.pn80.pn.pn = phi { ptr, i32 } [ %.pn80.pn, %258 ], [ %248, %247 ]
  call void @_ZN15TinyProfileZoneD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #9
  br label %260

260:                                              ; preds = %259, %245
  %.pn80.pn.pn.pn = phi { ptr, i32 } [ %.pn80.pn.pn, %259 ], [ %246, %245 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %39) #9
  br label %263

261:                                              ; preds = %228
  invoke void @_Z42TinyChromeUtilsStopTimingsAndWriteJsonFilePKc(ptr noundef nonnull @.str.17)
          to label %262 unwind label %.loopexit.split-lp

262:                                              ; preds = %261
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %21) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #9
  call void @_ZNSt6vectorIN7tinyobj10material_tESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #9
  call void @_ZNSt6vectorIN7tinyobj7shape_tESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #9
  call void @_ZN7tinyobj8attrib_tD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %13) #9
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %13) #9
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  call void @_ZN14TinyOpenGL3AppD1Ev(ptr noundef nonnull align 8 dereferenceable(104) %3) #9
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %3) #9
  ret i32 0

263:                                              ; preds = %.loopexit, %.loopexit.split-lp, %260, %221
  %.pn90.pn = phi { ptr, i32 } [ %.pn90, %221 ], [ %.pn80.pn.pn.pn, %260 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #9
  br label %264

264:                                              ; preds = %153, %263, %151, %150
  %.pn90.pn.pn.pn = phi { ptr, i32 } [ %152, %151 ], [ %.pn, %150 ], [ %.pn90.pn, %263 ], [ %154, %153 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %21) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #9
  call void @_ZNSt6vectorIN7tinyobj10material_tESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #9
  call void @_ZNSt6vectorIN7tinyobj7shape_tESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #9
  call void @_ZN7tinyobj8attrib_tD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %13) #9
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %13) #9
  br label %265

265:                                              ; preds = %140, %144, %264, %142, %84
  %.pn90.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %85, %84 ], [ %141, %140 ], [ %143, %142 ], [ %.pn90.pn.pn.pn, %264 ], [ %145, %144 ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #9
  br label %266

266:                                              ; preds = %265, %82
  %.pn90.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn90.pn.pn.pn.pn.pn.pn.pn, %265 ], [ %83, %82 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  br label %267

267:                                              ; preds = %266, %80
  %.pn90.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn90.pn.pn.pn.pn.pn.pn.pn.pn, %266 ], [ %81, %80 ]
  call void @_ZN14TinyOpenGL3AppD1Ev(ptr noundef nonnull align 8 dereferenceable(104) %3) #9
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %3) #9
  resume { ptr, i32 } %.pn90.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

declare void @_Z27TinyChromeUtilsStartTimingsv() local_unnamed_addr #4

declare void @_ZN14TinyOpenGL3AppC1EPKciibiiii(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef, i32 noundef, i32 noundef, i1 noundef zeroext, i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #4

declare void @_ZN14TinyOpenGL3App11set_up_axisEi(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef) unnamed_addr #4

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

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

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

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

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

declare noundef i32 @_ZN14TinyOpenGL3App19register_cube_shapeEfffif(ptr noundef nonnull align 8 dereferenceable(104), float noundef, float noundef, float noundef, i32 noundef, float noundef) unnamed_addr #4

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

declare noundef i32 @_ZN14TinyOpenGL3App35register_graphics_unit_sphere_shapeE23EnumSphereLevelOfDetaili(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef, i32 noundef) unnamed_addr #4

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3tds9FileUtils9find_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERS6_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3tds9FileUtils12extract_pathEPKcPci(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2 align 2

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

declare noundef zeroext i1 @_ZN7tinyobj7LoadObjEPNS_8attrib_tEPSt6vectorINS_7shape_tESaIS3_EEPS2_INS_10material_tESaIS7_EEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESH_PKcSJ_bb(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #4

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13TinyMeshUtils13extract_shapeERKN7tinyobj8attrib_tERKNS0_7shape_tERKSt6vectorINS0_10material_tESaIS8_EERS7_IiSaIiEERS7_I16GfxVertexFormat1SaISG_EERi(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(224), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

declare ptr @stbi_load(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #6

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

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

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

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

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

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

declare void @_ZN24TinyGLInstancingRenderer16write_transformsEv(ptr noundef nonnull align 8 dereferenceable(60)) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12DrawGridDataC2Ei(ptr noundef nonnull align 4 dereferenceable(32), i32 noundef) unnamed_addr #1 align 2

declare void @_ZN14TinyOpenGL3App9draw_gridE12DrawGridData(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef byval(%struct.DrawGridData) align 8) unnamed_addr #4

declare void @_ZN14TinyOpenGL3App12draw_text_3dEPKcffff(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef, float noundef, float noundef, float noundef, float noundef) unnamed_addr #4

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

declare void @_ZN14TinyOpenGL3App11swap_bufferEv(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #4

declare void @_Z42TinyChromeUtilsStopTimingsAndWriteJsonFilePKc(ptr noundef) local_unnamed_addr #4

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

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

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

; Function Attrs: nounwind
declare void @_ZN14TinyOpenGL3AppD1Ev(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #8

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

!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, !7, i64 16}
!6 = !{!"_ZTS21TinyCommonGraphicsApp", !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !10, i64 41, !10, i64 42, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !10, i64 60, !8, i64 64}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"vtable pointer", !9, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !8, i64 0}
!16 = !{!8, !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !7, i64 96}
!20 = !{!"_ZTS14TinyOpenGL3App", !6, i64 0, !7, i64 80, !7, i64 88, !7, i64 96}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
!23 = !{!11, !11, i64 0}
!24 = distinct !{!24, !18}
!25 = !{!6, !7, i64 8}
!26 = !{!27, !15, i64 8}
!27 = !{!"_ZTS12DrawGridData", !15, i64 0, !11, i64 4, !15, i64 8, !10, i64 12, !8, i64 16}
!28 = distinct !{!28, !18}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass