; LLVM IR from paroj/gltut :: Tut 13 Impostors/BasicImpostor.ll (Z7displayv)

; 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.ProgramMeshData = type { i32, i32, i32 }
%struct.UnlitProgData = type { i32, i32, i32 }
%"class.glutil::ViewPole" = type <{ %"class.glutil::ViewProvider", %"struct.glutil::ViewData", %"struct.glutil::ViewScale", %"struct.glutil::ViewData", i32, i8, i8, [2 x i8], i32, float, %"struct.glm::detail::tvec2", %"struct.glm::detail::tquat", [4 x i8] }>
%"class.glutil::ViewProvider" = type { ptr }
%"struct.glutil::ViewScale" = type { float, float, float, float, float, float, float }
%"struct.glutil::ViewData" = type { %"struct.glm::detail::tvec3", %"struct.glm::detail::tquat", float, float }
%"struct.glm::detail::tvec3" = type { %union.anon.3 }
%union.anon.3 = type { %struct.anon }
%struct.anon = type { float, float, float }
%"struct.glm::detail::tvec2" = type { %union.anon.6 }
%union.anon.6 = type { %struct.anon.7 }
%struct.anon.7 = type { i32, i32 }
%"struct.glm::detail::tquat" = type { float, float, float, float }
%"class.Framework::Timer" = type { i32, float, i8, i8, float, float }
%"struct.glm::detail::tvec4" = type { %union.anon.15 }
%union.anon.15 = type { %struct.anon.16 }
%struct.anon.16 = type { float, float, float, float }
%"struct.glm::detail::tmat3x3" = type { [3 x %"struct.glm::detail::tvec3"] }
%"class.glutil::MatrixStack" = type { %"class.std::stack", %"struct.glm::detail::tmat4x4" }
%"class.std::stack" = type { %"class.std::vector.19" }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = type { %"struct.std::_Vector_base<glm::detail::tmat4x4<float>, std::allocator<glm::detail::tmat4x4<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<glm::detail::tmat4x4<float>, std::allocator<glm::detail::tmat4x4<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<glm::detail::tmat4x4<float>, std::allocator<glm::detail::tmat4x4<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<glm::detail::tmat4x4<float>, std::allocator<glm::detail::tmat4x4<float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.glm::detail::tmat4x4" = type { [4 x %"struct.glm::detail::tvec4"] }
%struct.LightBlock = type { %"struct.glm::detail::tvec4", float, [3 x float], [2 x %struct.PerLight] }
%struct.PerLight = type { %"struct.glm::detail::tvec4", %"struct.glm::detail::tvec4" }
%"class.glutil::PushStack" = type { 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.0" = type { i8 }

@g_litMeshProg = external dso_local global %struct.ProgramMeshData, align 4
@g_Unlit = external dso_local global %struct.UnlitProgData, align 4
@g_viewPole = external dso_local global %"class.glutil::ViewPole", align 8
@g_pPlaneMesh = external dso_local global ptr, align 8
@g_pSphereMesh = external dso_local global ptr, align 8
@g_pCubeMesh = external dso_local global ptr, align 8
@g_lightUniformBuffer = external dso_local global i32, align 4
@g_materialUniformBuffer = external dso_local global i32, align 4
@g_materialBlockOffset = external dso_local global i32, align 4
@_funcptr_glEnable = external global ptr, align 8
@_funcptr_glDepthMask = external global ptr, align 8
@_funcptr_glBindBuffer = external global ptr, align 8
@_funcptr_glBindBufferRange = external global ptr, align 8
@_funcptr_glUseProgram = external global ptr, align 8
@_funcptr_glUniformMatrix4fv = external global ptr, align 8
@_funcptr_glUniformMatrix3fv = external global ptr, align 8
@_funcptr_glBindBufferBase = external global ptr, align 8
@g_bDrawCameraPos = external dso_local global i8, align 1
@g_bDrawLights = external dso_local global i8, align 1
@g_sphereTimer = external dso_local global %"class.Framework::Timer", align 4
@g_drawImposter = external dso_local global [4 x i8], align 1
@_funcptr_glClearColor = external global ptr, align 8
@_funcptr_glClearDepth = external global ptr, align 8
@_funcptr_glClear = external global ptr, align 8
@_funcptr_glBufferSubData = external global ptr, align 8
@_funcptr_glUniform4fv = external global ptr, align 8
@.str.25 = external hidden unnamed_addr constant [5 x i8], align 1
@_funcptr_glDisable = external global ptr, align 8
@_funcptr_glUniform4f = external global ptr, align 8

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

declare i32 @__gxx_personality_v0(...)

; 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 @_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

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10DrawSphereRN6glutil11MatrixStackERKN3glm6detail5tvec3IfEEf13MaterialNamesb(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 4 dereferenceable(12), float noundef, i32 noundef, i1 noundef zeroext) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm6detailmlIfEENS0_7tmat4x4IT_E8col_typeERKS4_RKNS4_8row_typeE(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tvec4") align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(16)) #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16)) #3

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

declare void @_ZN6glutil11MatrixStack9TranslateERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 4 dereferenceable(12)) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6glutil11MatrixStack5ScaleEf(ptr noundef nonnull align 8 dereferenceable(88), float noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm6detail7tmat3x3IfEC2ERKNS0_7tmat4x4IfEE(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(64)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm9transposeIfEENS_6detail7tmat3x3IT_EERKS4_(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tmat3x3") align 4, ptr noundef nonnull align 4 dereferenceable(36)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm7inverseIfEENS_6detail7tmat3x3IT_EERKS4_(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tmat3x3") align 4, ptr noundef nonnull align 4 dereferenceable(36)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(36) ptr @_ZN3glm6detail7tmat3x3IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail7tmat3x3IS1_EE(ptr noundef nonnull align 4 dereferenceable(36)) #3

declare void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15DrawSphereOrbitRN6glutil11MatrixStackERKN3glm6detail5tvec3IfEES7_fff13MaterialNamesb(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef, i32 noundef, i1 noundef zeroext) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z17CalcLightPositionv(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tvec4") align 4) #2

declare noundef float @_ZNK9Framework5Timer8GetAlphaEv(ptr noundef nonnull align 4 dereferenceable(20)) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7displayv() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.glutil::MatrixStack", align 8
  %2 = alloca %"struct.glm::detail::tmat4x4", align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %struct.LightBlock, align 4
  %7 = alloca %"struct.glm::detail::tvec4", align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca %"struct.glm::detail::tvec4", align 4
  %13 = alloca %"struct.glm::detail::tvec4", align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca %"struct.glm::detail::tvec4", align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca %"struct.glm::detail::tvec4", align 4
  %24 = alloca %"struct.glm::detail::tvec4", align 4
  %25 = alloca %"struct.glm::detail::tvec4", align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca %"struct.glm::detail::tmat3x3", align 4
  %31 = alloca %"struct.glm::detail::tmat3x3", align 4
  %32 = alloca %"struct.glm::detail::tmat3x3", align 4
  %33 = alloca %"struct.glm::detail::tvec3", align 4
  %34 = alloca float, align 4
  %35 = alloca float, align 4
  %36 = alloca float, align 4
  %37 = alloca %"struct.glm::detail::tvec3", align 4
  %38 = alloca float, align 4
  %39 = alloca float, align 4
  %40 = alloca float, align 4
  %41 = alloca %"struct.glm::detail::tvec3", align 4
  %42 = alloca float, align 4
  %43 = alloca float, align 4
  %44 = alloca float, align 4
  %45 = alloca %"struct.glm::detail::tvec3", align 4
  %46 = alloca float, align 4
  %47 = alloca float, align 4
  %48 = alloca float, align 4
  %49 = alloca %"struct.glm::detail::tvec3", align 4
  %50 = alloca float, align 4
  %51 = alloca float, align 4
  %52 = alloca float, align 4
  %53 = alloca %"struct.glm::detail::tvec3", align 4
  %54 = alloca float, align 4
  %55 = alloca float, align 4
  %56 = alloca float, align 4
  %57 = alloca %"struct.glm::detail::tvec3", align 4
  %58 = alloca float, align 4
  %59 = alloca float, align 4
  %60 = alloca float, align 4
  %61 = alloca %"class.glutil::PushStack", align 8
  %62 = alloca %"struct.glm::detail::tvec3", align 4
  %63 = alloca %"struct.glm::detail::tvec4", align 4
  %64 = alloca %"struct.glm::detail::tvec4", align 4
  %65 = alloca float, align 4
  %66 = alloca %"class.std::__cxx11::basic_string", align 8
  %67 = alloca %"class.std::allocator.0", align 1
  %68 = alloca %"class.glutil::PushStack", align 8
  %69 = alloca %"struct.glm::detail::tvec3", align 4
  %70 = alloca float, align 4
  %71 = alloca float, align 4
  %72 = alloca float, align 4
  %73 = alloca %"class.std::__cxx11::basic_string", align 8
  %74 = alloca %"class.std::allocator.0", align 1
  %75 = alloca %"class.std::__cxx11::basic_string", align 8
  %76 = alloca %"class.std::allocator.0", align 1
  %77 = call noundef zeroext i1 @_ZN9Framework5Timer6UpdateEv(ptr noundef nonnull align 4 dereferenceable(20) @g_sphereTimer)
  %78 = load ptr, ptr @_funcptr_glClearColor, align 8, !tbaa !5
  call void %78(float noundef 7.500000e-01, float noundef 7.500000e-01, float noundef 1.000000e+00, float noundef 1.000000e+00)
  %79 = load ptr, ptr @_funcptr_glClearDepth, align 8, !tbaa !5
  call void %79(double noundef 1.000000e+00)
  %80 = load ptr, ptr @_funcptr_glClear, align 8, !tbaa !5
  call void %80(i32 noundef 16640)
  %81 = load ptr, ptr @g_pPlaneMesh, align 8, !tbaa !5
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %405

83:                                               ; preds = %0
  %84 = load ptr, ptr @g_pSphereMesh, align 8, !tbaa !5
  %85 = icmp ne ptr %84, null
  br i1 %85, label %86, label %405

86:                                               ; preds = %83
  %87 = load ptr, ptr @g_pCubeMesh, align 8, !tbaa !5
  %88 = icmp ne ptr %87, null
  br i1 %88, label %89, label %405

89:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 88, ptr %1) #6
  call void @_ZN6glutil11MatrixStackC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %1)
  call void @llvm.lifetime.start.p0(i64 64, ptr %2) #6
  invoke void @_ZNK6glutil8ViewPole10CalcMatrixEv(ptr dead_on_unwind writable sret(%"struct.glm::detail::tmat4x4") align 4 %2, ptr noundef nonnull align 8 dereferenceable(148) @g_viewPole)
          to label %90 unwind label %222

90:                                               ; preds = %89
  invoke void @_ZN6glutil11MatrixStack9SetMatrixERKN3glm6detail7tmat4x4IfEE(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(64) %2)
          to label %91 unwind label %222

91:                                               ; preds = %90
  call void @llvm.lifetime.end.p0(i64 64, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %92 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %93 unwind label %226

93:                                               ; preds = %91
  store ptr %92, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 96, ptr %6) #6
  invoke void @_ZN10LightBlockC2Ev(ptr noundef nonnull align 4 dereferenceable(96) %6)
          to label %94 unwind label %230

94:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store float 0x3FC99999A0000000, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store float 0x3FC99999A0000000, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store float 0x3FC99999A0000000, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store float 1.000000e+00, ptr %11, align 4, !tbaa !9
  invoke void @_ZN3glm6detail5tvec4IfEC2ERKfS4_S4_S4_(ptr noundef nonnull align 4 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %95 unwind label %234

95:                                               ; preds = %94
  %96 = getelementptr inbounds %struct.LightBlock, ptr %6, i32 0, i32 0
  %97 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %96, ptr noundef nonnull align 4 dereferenceable(16) %7)
          to label %98 unwind label %234

98:                                               ; preds = %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  %99 = getelementptr inbounds %struct.LightBlock, ptr %6, i32 0, i32 1
  store float 0x3F5A36E2E0000000, ptr %99, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store float 0x3FE69FBE80000000, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store float 0x3FE69FBE80000000, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store float 0.000000e+00, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store float 0.000000e+00, ptr %17, align 4, !tbaa !9
  invoke void @_ZN3glm6detail5tvec4IfEC2ERKfS4_S4_S4_(ptr noundef nonnull align 4 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %101 unwind label %238

101:                                              ; preds = %98
  invoke void @_ZN3glm6detailmlIfEENS0_7tmat4x4IT_E8col_typeERKS4_RKNS4_8row_typeE(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4 %12, ptr noundef nonnull align 4 dereferenceable(64) %100, ptr noundef nonnull align 4 dereferenceable(16) %13)
          to label %102 unwind label %238

102:                                              ; preds = %101
  %103 = getelementptr inbounds %struct.LightBlock, ptr %6, i32 0, i32 3
  %104 = getelementptr inbounds [2 x %struct.PerLight], ptr %103, i64 0, i64 0
  %105 = getelementptr inbounds %struct.PerLight, ptr %104, i32 0, i32 0
  %106 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %105, ptr noundef nonnull align 4 dereferenceable(16) %12)
          to label %107 unwind label %238

107:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store float 0x3FE3333340000000, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store float 0x3FE3333340000000, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store float 0x3FE3333340000000, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store float 1.000000e+00, ptr %22, align 4, !tbaa !9
  invoke void @_ZN3glm6detail5tvec4IfEC2ERKfS4_S4_S4_(ptr noundef nonnull align 4 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %108 unwind label %242

108:                                              ; preds = %107
  %109 = getelementptr inbounds %struct.LightBlock, ptr %6, i32 0, i32 3
  %110 = getelementptr inbounds [2 x %struct.PerLight], ptr %109, i64 0, i64 0
  %111 = getelementptr inbounds %struct.PerLight, ptr %110, i32 0, i32 1
  %112 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %111, ptr noundef nonnull align 4 dereferenceable(16) %18)
          to label %113 unwind label %242

113:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #6
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #6
  invoke void @_Z17CalcLightPositionv(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4 %24)
          to label %115 unwind label %246

115:                                              ; preds = %113
  invoke void @_ZN3glm6detailmlIfEENS0_7tmat4x4IT_E8col_typeERKS4_RKNS4_8row_typeE(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4 %23, ptr noundef nonnull align 4 dereferenceable(64) %114, ptr noundef nonnull align 4 dereferenceable(16) %24)
          to label %116 unwind label %246

116:                                              ; preds = %115
  %117 = getelementptr inbounds %struct.LightBlock, ptr %6, i32 0, i32 3
  %118 = getelementptr inbounds [2 x %struct.PerLight], ptr %117, i64 0, i64 1
  %119 = getelementptr inbounds %struct.PerLight, ptr %118, i32 0, i32 0
  %120 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %119, ptr noundef nonnull align 4 dereferenceable(16) %23)
          to label %121 unwind label %246

121:                                              ; preds = %116
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store float 0x3FD99999A0000000, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  store float 0x3FD99999A0000000, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  store float 0x3FD99999A0000000, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  store float 1.000000e+00, ptr %29, align 4, !tbaa !9
  invoke void @_ZN3glm6detail5tvec4IfEC2ERKfS4_S4_S4_(ptr noundef nonnull align 4 dereferenceable(16) %25, ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %29)
          to label %122 unwind label %250

122:                                              ; preds = %121
  %123 = getelementptr inbounds %struct.LightBlock, ptr %6, i32 0, i32 3
  %124 = getelementptr inbounds [2 x %struct.PerLight], ptr %123, i64 0, i64 1
  %125 = getelementptr inbounds %struct.PerLight, ptr %124, i32 0, i32 1
  %126 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %125, ptr noundef nonnull align 4 dereferenceable(16) %25)
          to label %127 unwind label %250

127:                                              ; preds = %122
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  %128 = load ptr, ptr @_funcptr_glBindBuffer, align 8, !tbaa !5
  %129 = load i32, ptr @g_lightUniformBuffer, align 4, !tbaa !14
  invoke void %128(i32 noundef 35345, i32 noundef %129)
          to label %130 unwind label %230

130:                                              ; preds = %127
  %131 = load ptr, ptr @_funcptr_glBufferSubData, align 8, !tbaa !5
  invoke void %131(i32 noundef 35345, i64 noundef 0, i64 noundef 96, ptr noundef %6)
          to label %132 unwind label %230

132:                                              ; preds = %130
  %133 = load ptr, ptr @_funcptr_glBindBuffer, align 8, !tbaa !5
  invoke void %133(i32 noundef 35345, i32 noundef 0)
          to label %134 unwind label %230

134:                                              ; preds = %132
  %135 = load ptr, ptr @_funcptr_glBindBufferRange, align 8, !tbaa !5
  %136 = load i32, ptr @g_materialUniformBuffer, align 4, !tbaa !14
  %137 = load i32, ptr @g_materialBlockOffset, align 4, !tbaa !14
  %138 = mul nsw i32 0, %137
  %139 = sext i32 %138 to i64
  invoke void %135(i32 noundef 35345, i32 noundef 0, i32 noundef %136, i64 noundef %139, i64 noundef 48)
          to label %140 unwind label %230

140:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 36, ptr %30) #6
  %141 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %142 unwind label %254

142:                                              ; preds = %140
  invoke void @_ZN3glm6detail7tmat3x3IfEC2ERKNS0_7tmat4x4IfEE(ptr noundef nonnull align 4 dereferenceable(36) %30, ptr noundef nonnull align 4 dereferenceable(64) %141)
          to label %143 unwind label %254

143:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 36, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 36, ptr %32) #6
  invoke void @_ZN3glm7inverseIfEENS_6detail7tmat3x3IT_EERKS4_(ptr dead_on_unwind writable sret(%"struct.glm::detail::tmat3x3") align 4 %32, ptr noundef nonnull align 4 dereferenceable(36) %30)
          to label %144 unwind label %258

144:                                              ; preds = %143
  invoke void @_ZN3glm9transposeIfEENS_6detail7tmat3x3IT_EERKS4_(ptr dead_on_unwind writable sret(%"struct.glm::detail::tmat3x3") align 4 %31, ptr noundef nonnull align 4 dereferenceable(36) %32)
          to label %145 unwind label %258

145:                                              ; preds = %144
  %146 = invoke noundef nonnull align 4 dereferenceable(36) ptr @_ZN3glm6detail7tmat3x3IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(36) %30, ptr noundef nonnull align 4 dereferenceable(36) %31)
          to label %147 unwind label %258

147:                                              ; preds = %145
  call void @llvm.lifetime.end.p0(i64 36, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %31) #6
  %148 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %149 = load i32, ptr @g_litMeshProg, align 4, !tbaa !16
  invoke void %148(i32 noundef %149)
          to label %150 unwind label %254

150:                                              ; preds = %147
  %151 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %152 = load i32, ptr getelementptr inbounds (%struct.ProgramMeshData, ptr @g_litMeshProg, i32 0, i32 1), align 4, !tbaa !18
  %153 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %154 unwind label %254

154:                                              ; preds = %150
  %155 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %153)
          to label %156 unwind label %254

156:                                              ; preds = %154
  invoke void %151(i32 noundef %152, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %155)
          to label %157 unwind label %254

157:                                              ; preds = %156
  %158 = load ptr, ptr @_funcptr_glUniformMatrix3fv, align 8, !tbaa !5
  %159 = load i32, ptr getelementptr inbounds (%struct.ProgramMeshData, ptr @g_litMeshProg, i32 0, i32 2), align 4, !tbaa !19
  %160 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail7tmat3x3IS1_EE(ptr noundef nonnull align 4 dereferenceable(36) %30)
          to label %161 unwind label %254

161:                                              ; preds = %157
  invoke void %158(i32 noundef %159, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %160)
          to label %162 unwind label %254

162:                                              ; preds = %161
  %163 = load ptr, ptr @g_pPlaneMesh, align 8, !tbaa !5
  invoke void @_ZNK9Framework4Mesh6RenderEv(ptr noundef nonnull align 8 dereferenceable(8) %163)
          to label %164 unwind label %254

164:                                              ; preds = %162
  %165 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  invoke void %165(i32 noundef 0)
          to label %166 unwind label %254

166:                                              ; preds = %164
  %167 = load ptr, ptr @_funcptr_glBindBufferBase, align 8, !tbaa !5
  invoke void %167(i32 noundef 35345, i32 noundef 0, i32 noundef 0)
          to label %168 unwind label %254

168:                                              ; preds = %166
  call void @llvm.lifetime.end.p0(i64 36, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  store float 0.000000e+00, ptr %34, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  store float 1.000000e+01, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  store float 0.000000e+00, ptr %36, align 4, !tbaa !9
  invoke void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %33, ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 4 dereferenceable(4) %36)
          to label %169 unwind label %263

169:                                              ; preds = %168
  %170 = load i8, ptr @g_drawImposter, align 1, !tbaa !20, !range !22, !noundef !23
  %171 = trunc i8 %170 to i1
  invoke void @_Z10DrawSphereRN6glutil11MatrixStackERKN3glm6detail5tvec3IfEEf13MaterialNamesb(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(12) %33, float noundef 4.000000e+00, i32 noundef 1, i1 noundef zeroext %171)
          to label %172 unwind label %263

172:                                              ; preds = %169
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %37) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  store float 0.000000e+00, ptr %38, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #6
  store float 1.000000e+01, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #6
  store float 0.000000e+00, ptr %40, align 4, !tbaa !9
  invoke void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %37, ptr noundef nonnull align 4 dereferenceable(4) %38, ptr noundef nonnull align 4 dereferenceable(4) %39, ptr noundef nonnull align 4 dereferenceable(4) %40)
          to label %173 unwind label %267

173:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 12, ptr %41) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #6
  store float 0x3FE3333340000000, ptr %42, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #6
  store float 0x3FE99999A0000000, ptr %43, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #6
  store float 0.000000e+00, ptr %44, align 4, !tbaa !9
  invoke void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %41, ptr noundef nonnull align 4 dereferenceable(4) %42, ptr noundef nonnull align 4 dereferenceable(4) %43, ptr noundef nonnull align 4 dereferenceable(4) %44)
          to label %174 unwind label %271

174:                                              ; preds = %173
  %175 = invoke noundef float @_ZNK9Framework5Timer8GetAlphaEv(ptr noundef nonnull align 4 dereferenceable(20) @g_sphereTimer)
          to label %176 unwind label %271

176:                                              ; preds = %174
  %177 = load i8, ptr getelementptr inbounds ([4 x i8], ptr @g_drawImposter, i64 0, i64 1), align 1, !tbaa !20, !range !22, !noundef !23
  %178 = trunc i8 %177 to i1
  invoke void @_Z15DrawSphereOrbitRN6glutil11MatrixStackERKN3glm6detail5tvec3IfEES7_fff13MaterialNamesb(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(12) %37, ptr noundef nonnull align 4 dereferenceable(12) %41, float noundef 2.000000e+01, float noundef %175, float noundef 2.000000e+00, i32 noundef 3, i1 noundef zeroext %178)
          to label %179 unwind label %271

179:                                              ; preds = %176
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %45) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #6
  store float -1.000000e+01, ptr %46, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #6
  store float 1.000000e+00, ptr %47, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #6
  store float 0.000000e+00, ptr %48, align 4, !tbaa !9
  invoke void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %45, ptr noundef nonnull align 4 dereferenceable(4) %46, ptr noundef nonnull align 4 dereferenceable(4) %47, ptr noundef nonnull align 4 dereferenceable(4) %48)
          to label %180 unwind label %276

180:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 12, ptr %49) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #6
  store float 0.000000e+00, ptr %50, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #6
  store float 1.000000e+00, ptr %51, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #6
  store float 0.000000e+00, ptr %52, align 4, !tbaa !9
  invoke void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %49, 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 %181 unwind label %280

181:                                              ; preds = %180
  %182 = invoke noundef float @_ZNK9Framework5Timer8GetAlphaEv(ptr noundef nonnull align 4 dereferenceable(20) @g_sphereTimer)
          to label %183 unwind label %280

183:                                              ; preds = %181
  %184 = load i8, ptr getelementptr inbounds ([4 x i8], ptr @g_drawImposter, i64 0, i64 2), align 1, !tbaa !20, !range !22, !noundef !23
  %185 = trunc i8 %184 to i1
  invoke void @_Z15DrawSphereOrbitRN6glutil11MatrixStackERKN3glm6detail5tvec3IfEES7_fff13MaterialNamesb(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(12) %45, ptr noundef nonnull align 4 dereferenceable(12) %49, float noundef 1.000000e+01, float noundef %182, float noundef 1.000000e+00, i32 noundef 4, i1 noundef zeroext %185)
          to label %186 unwind label %280

186:                                              ; preds = %183
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %45) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %53) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #6
  store float 1.000000e+01, ptr %54, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #6
  store float 1.000000e+00, ptr %55, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #6
  store float 0.000000e+00, ptr %56, align 4, !tbaa !9
  invoke void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %53, ptr noundef nonnull align 4 dereferenceable(4) %54, ptr noundef nonnull align 4 dereferenceable(4) %55, ptr noundef nonnull align 4 dereferenceable(4) %56)
          to label %187 unwind label %285

187:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 12, ptr %57) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #6
  store float 0.000000e+00, ptr %58, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #6
  store float 1.000000e+00, ptr %59, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #6
  store float 0.000000e+00, ptr %60, align 4, !tbaa !9
  invoke void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %57, ptr noundef nonnull align 4 dereferenceable(4) %58, ptr noundef nonnull align 4 dereferenceable(4) %59, ptr noundef nonnull align 4 dereferenceable(4) %60)
          to label %188 unwind label %289

188:                                              ; preds = %187
  %189 = invoke noundef float @_ZNK9Framework5Timer8GetAlphaEv(ptr noundef nonnull align 4 dereferenceable(20) @g_sphereTimer)
          to label %190 unwind label %289

190:                                              ; preds = %188
  %191 = fmul float %189, 2.000000e+00
  %192 = load i8, ptr getelementptr inbounds ([4 x i8], ptr @g_drawImposter, i64 0, i64 3), align 1, !tbaa !20, !range !22, !noundef !23
  %193 = trunc i8 %192 to i1
  invoke void @_Z15DrawSphereOrbitRN6glutil11MatrixStackERKN3glm6detail5tvec3IfEES7_fff13MaterialNamesb(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(12) %53, ptr noundef nonnull align 4 dereferenceable(12) %57, float noundef 1.000000e+01, float noundef %191, float noundef 1.000000e+00, i32 noundef 2, i1 noundef zeroext %193)
          to label %194 unwind label %289

194:                                              ; preds = %190
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %57) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %53) #6
  %195 = load i8, ptr @g_bDrawLights, align 1, !tbaa !20, !range !22, !noundef !23
  %196 = trunc i8 %195 to i1
  br i1 %196, label %197, label %326

197:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %198 unwind label %294

198:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 12, ptr %62) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %63) #6
  invoke void @_Z17CalcLightPositionv(ptr dead_on_unwind writable sret(%"struct.glm::detail::tvec4") align 4 %63)
          to label %199 unwind label %298

199:                                              ; preds = %198
  invoke void @_ZN3glm6detail5tvec3IfEC2IfEERKNS0_5tvec4IT_EE(ptr noundef nonnull align 4 dereferenceable(12) %62, ptr noundef nonnull align 4 dereferenceable(16) %63)
          to label %200 unwind label %298

200:                                              ; preds = %199
  invoke void @_ZN6glutil11MatrixStack9TranslateERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(12) %62)
          to label %201 unwind label %298

201:                                              ; preds = %200
  call void @llvm.lifetime.end.p0(i64 16, ptr %63) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %62) #6
  invoke void @_ZN6glutil11MatrixStack5ScaleEf(ptr noundef nonnull align 8 dereferenceable(88) %1, float noundef 5.000000e-01)
          to label %202 unwind label %302

202:                                              ; preds = %201
  %203 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %204 = load i32, ptr @g_Unlit, align 4, !tbaa !24
  invoke void %203(i32 noundef %204)
          to label %205 unwind label %302

205:                                              ; preds = %202
  %206 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %207 = load i32, ptr getelementptr inbounds (%struct.UnlitProgData, ptr @g_Unlit, i32 0, i32 2), align 4, !tbaa !26
  %208 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %209 unwind label %302

209:                                              ; preds = %205
  %210 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %208)
          to label %211 unwind label %302

211:                                              ; preds = %209
  invoke void %206(i32 noundef %207, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %210)
          to label %212 unwind label %302

212:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 16, ptr %64) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %65) #6
  store float 1.000000e+00, ptr %65, align 4, !tbaa !9
  invoke void @_ZN3glm6detail5tvec4IfEC2ERKf(ptr noundef nonnull align 4 dereferenceable(16) %64, ptr noundef nonnull align 4 dereferenceable(4) %65)
          to label %213 unwind label %306

213:                                              ; preds = %212
  call void @llvm.lifetime.end.p0(i64 4, ptr %65) #6
  %214 = load ptr, ptr @_funcptr_glUniform4fv, align 8, !tbaa !5
  %215 = load i32, ptr getelementptr inbounds (%struct.UnlitProgData, ptr @g_Unlit, i32 0, i32 1), align 4, !tbaa !27
  %216 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16) %64)
          to label %217 unwind label %310

217:                                              ; preds = %213
  invoke void %214(i32 noundef %215, i32 noundef 1, ptr noundef %216)
          to label %218 unwind label %310

218:                                              ; preds = %217
  %219 = load ptr, ptr @g_pCubeMesh, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %66) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %67) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %67) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %66, ptr noundef @.str.25, ptr noundef nonnull align 1 dereferenceable(1) %67)
          to label %220 unwind label %314

220:                                              ; preds = %218
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %219, ptr noundef nonnull align 8 dereferenceable(32) %66)
          to label %221 unwind label %318

221:                                              ; preds = %220
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %66) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %67) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %67) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %66) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %64) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %61) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #6
  br label %326

222:                                              ; preds = %90, %89
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %3, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %2) #6
  br label %404

226:                                              ; preds = %91
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %3, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %4, align 4
  br label %403

230:                                              ; preds = %134, %132, %130, %127, %93
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %3, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %4, align 4
  br label %402

234:                                              ; preds = %95, %94
  %235 = landingpad { ptr, i32 }
          cleanup
  %236 = extractvalue { ptr, i32 } %235, 0
  store ptr %236, ptr %3, align 8
  %237 = extractvalue { ptr, i32 } %235, 1
  store i32 %237, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  br label %402

238:                                              ; preds = %102, %101, %98
  %239 = landingpad { ptr, i32 }
          cleanup
  %240 = extractvalue { ptr, i32 } %239, 0
  store ptr %240, ptr %3, align 8
  %241 = extractvalue { ptr, i32 } %239, 1
  store i32 %241, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  br label %402

242:                                              ; preds = %108, %107
  %243 = landingpad { ptr, i32 }
          cleanup
  %244 = extractvalue { ptr, i32 } %243, 0
  store ptr %244, ptr %3, align 8
  %245 = extractvalue { ptr, i32 } %243, 1
  store i32 %245, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  br label %402

246:                                              ; preds = %116, %115, %113
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %3, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  br label %402

250:                                              ; preds = %122, %121
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %3, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  br label %402

254:                                              ; preds = %166, %164, %162, %161, %157, %156, %154, %150, %147, %142, %140
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %3, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %4, align 4
  br label %262

258:                                              ; preds = %145, %144, %143
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %3, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 36, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %31) #6
  br label %262

262:                                              ; preds = %258, %254
  call void @llvm.lifetime.end.p0(i64 36, ptr %30) #6
  br label %402

263:                                              ; preds = %169, %168
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %3, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #6
  br label %402

267:                                              ; preds = %172
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %3, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %4, align 4
  br label %275

271:                                              ; preds = %176, %174, %173
  %272 = landingpad { ptr, i32 }
          cleanup
  %273 = extractvalue { ptr, i32 } %272, 0
  store ptr %273, ptr %3, align 8
  %274 = extractvalue { ptr, i32 } %272, 1
  store i32 %274, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %41) #6
  br label %275

275:                                              ; preds = %271, %267
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #6
  br label %402

276:                                              ; preds = %179
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %3, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %4, align 4
  br label %284

280:                                              ; preds = %183, %181, %180
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %3, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %49) #6
  br label %284

284:                                              ; preds = %280, %276
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %45) #6
  br label %402

285:                                              ; preds = %186
  %286 = landingpad { ptr, i32 }
          cleanup
  %287 = extractvalue { ptr, i32 } %286, 0
  store ptr %287, ptr %3, align 8
  %288 = extractvalue { ptr, i32 } %286, 1
  store i32 %288, ptr %4, align 4
  br label %293

289:                                              ; preds = %190, %188, %187
  %290 = landingpad { ptr, i32 }
          cleanup
  %291 = extractvalue { ptr, i32 } %290, 0
  store ptr %291, ptr %3, align 8
  %292 = extractvalue { ptr, i32 } %290, 1
  store i32 %292, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %57) #6
  br label %293

293:                                              ; preds = %289, %285
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %53) #6
  br label %402

294:                                              ; preds = %197
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %3, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %4, align 4
  br label %325

298:                                              ; preds = %200, %199, %198
  %299 = landingpad { ptr, i32 }
          cleanup
  %300 = extractvalue { ptr, i32 } %299, 0
  store ptr %300, ptr %3, align 8
  %301 = extractvalue { ptr, i32 } %299, 1
  store i32 %301, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %63) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %62) #6
  br label %324

302:                                              ; preds = %211, %209, %205, %202, %201
  %303 = landingpad { ptr, i32 }
          cleanup
  %304 = extractvalue { ptr, i32 } %303, 0
  store ptr %304, ptr %3, align 8
  %305 = extractvalue { ptr, i32 } %303, 1
  store i32 %305, ptr %4, align 4
  br label %324

306:                                              ; preds = %212
  %307 = landingpad { ptr, i32 }
          cleanup
  %308 = extractvalue { ptr, i32 } %307, 0
  store ptr %308, ptr %3, align 8
  %309 = extractvalue { ptr, i32 } %307, 1
  store i32 %309, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %65) #6
  br label %323

310:                                              ; preds = %217, %213
  %311 = landingpad { ptr, i32 }
          cleanup
  %312 = extractvalue { ptr, i32 } %311, 0
  store ptr %312, ptr %3, align 8
  %313 = extractvalue { ptr, i32 } %311, 1
  store i32 %313, ptr %4, align 4
  br label %323

314:                                              ; preds = %218
  %315 = landingpad { ptr, i32 }
          cleanup
  %316 = extractvalue { ptr, i32 } %315, 0
  store ptr %316, ptr %3, align 8
  %317 = extractvalue { ptr, i32 } %315, 1
  store i32 %317, ptr %4, align 4
  br label %322

318:                                              ; preds = %220
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %3, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %4, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %66) #6
  br label %322

322:                                              ; preds = %318, %314
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %67) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %67) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %66) #6
  br label %323

323:                                              ; preds = %322, %310, %306
  call void @llvm.lifetime.end.p0(i64 16, ptr %64) #6
  br label %324

324:                                              ; preds = %323, %302, %298
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %61) #6
  br label %325

325:                                              ; preds = %324, %294
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #6
  br label %402

326:                                              ; preds = %221, %194
  %327 = load i8, ptr @g_bDrawCameraPos, align 1, !tbaa !20, !range !22, !noundef !23
  %328 = trunc i8 %327 to i1
  br i1 %328, label %329, label %401

329:                                              ; preds = %326
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %330 unwind label %369

330:                                              ; preds = %329
  invoke void @_ZN6glutil11MatrixStack11SetIdentityEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %331 unwind label %373

331:                                              ; preds = %330
  call void @llvm.lifetime.start.p0(i64 12, ptr %69) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %70) #6
  store float 0.000000e+00, ptr %70, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %71) #6
  store float 0.000000e+00, ptr %71, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %72) #6
  %332 = invoke noundef nonnull align 4 dereferenceable(36) ptr @_ZNK6glutil8ViewPole7GetViewEv(ptr noundef nonnull align 8 dereferenceable(148) @g_viewPole)
          to label %333 unwind label %377

333:                                              ; preds = %331
  %334 = getelementptr inbounds %"struct.glutil::ViewData", ptr %332, i32 0, i32 2
  %335 = load float, ptr %334, align 4, !tbaa !28
  %336 = fneg float %335
  store float %336, ptr %72, align 4, !tbaa !9
  invoke void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %69, ptr noundef nonnull align 4 dereferenceable(4) %70, ptr noundef nonnull align 4 dereferenceable(4) %71, ptr noundef nonnull align 4 dereferenceable(4) %72)
          to label %337 unwind label %377

337:                                              ; preds = %333
  invoke void @_ZN6glutil11MatrixStack9TranslateERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(12) %69)
          to label %338 unwind label %377

338:                                              ; preds = %337
  call void @llvm.lifetime.end.p0(i64 4, ptr %72) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %69) #6
  %339 = load ptr, ptr @_funcptr_glDisable, align 8, !tbaa !5
  invoke void %339(i32 noundef 2929)
          to label %340 unwind label %373

340:                                              ; preds = %338
  %341 = load ptr, ptr @_funcptr_glDepthMask, align 8, !tbaa !5
  invoke void %341(i8 noundef zeroext 0)
          to label %342 unwind label %373

342:                                              ; preds = %340
  %343 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %344 = load i32, ptr @g_Unlit, align 4, !tbaa !24
  invoke void %343(i32 noundef %344)
          to label %345 unwind label %373

345:                                              ; preds = %342
  %346 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %347 = load i32, ptr getelementptr inbounds (%struct.UnlitProgData, ptr @g_Unlit, i32 0, i32 2), align 4, !tbaa !26
  %348 = invoke noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %349 unwind label %373

349:                                              ; preds = %345
  %350 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %348)
          to label %351 unwind label %373

351:                                              ; preds = %349
  invoke void %346(i32 noundef %347, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %350)
          to label %352 unwind label %373

352:                                              ; preds = %351
  %353 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %354 = load i32, ptr getelementptr inbounds (%struct.UnlitProgData, ptr @g_Unlit, i32 0, i32 1), align 4, !tbaa !27
  invoke void %353(i32 noundef %354, float noundef 2.500000e-01, float noundef 2.500000e-01, float noundef 2.500000e-01, float noundef 1.000000e+00)
          to label %355 unwind label %373

355:                                              ; preds = %352
  %356 = load ptr, ptr @g_pCubeMesh, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %73) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %74) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %74) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %73, ptr noundef @.str.25, ptr noundef nonnull align 1 dereferenceable(1) %74)
          to label %357 unwind label %381

357:                                              ; preds = %355
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %356, ptr noundef nonnull align 8 dereferenceable(32) %73)
          to label %358 unwind label %385

358:                                              ; preds = %357
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %73) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %74) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %74) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %73) #6
  %359 = load ptr, ptr @_funcptr_glDepthMask, align 8, !tbaa !5
  invoke void %359(i8 noundef zeroext 1)
          to label %360 unwind label %373

360:                                              ; preds = %358
  %361 = load ptr, ptr @_funcptr_glEnable, align 8, !tbaa !5
  invoke void %361(i32 noundef 2929)
          to label %362 unwind label %373

362:                                              ; preds = %360
  %363 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %364 = load i32, ptr getelementptr inbounds (%struct.UnlitProgData, ptr @g_Unlit, i32 0, i32 1), align 4, !tbaa !27
  invoke void %363(i32 noundef %364, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %365 unwind label %373

365:                                              ; preds = %362
  %366 = load ptr, ptr @g_pCubeMesh, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %75) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %76) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %76) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %75, ptr noundef @.str.25, ptr noundef nonnull align 1 dereferenceable(1) %76)
          to label %367 unwind label %390

367:                                              ; preds = %365
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %366, ptr noundef nonnull align 8 dereferenceable(32) %75)
          to label %368 unwind label %394

368:                                              ; preds = %367
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %75) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %76) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %76) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %75) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %68) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #6
  br label %401

369:                                              ; preds = %329
  %370 = landingpad { ptr, i32 }
          cleanup
  %371 = extractvalue { ptr, i32 } %370, 0
  store ptr %371, ptr %3, align 8
  %372 = extractvalue { ptr, i32 } %370, 1
  store i32 %372, ptr %4, align 4
  br label %400

373:                                              ; preds = %362, %360, %358, %352, %351, %349, %345, %342, %340, %338, %330
  %374 = landingpad { ptr, i32 }
          cleanup
  %375 = extractvalue { ptr, i32 } %374, 0
  store ptr %375, ptr %3, align 8
  %376 = extractvalue { ptr, i32 } %374, 1
  store i32 %376, ptr %4, align 4
  br label %399

377:                                              ; preds = %337, %333, %331
  %378 = landingpad { ptr, i32 }
          cleanup
  %379 = extractvalue { ptr, i32 } %378, 0
  store ptr %379, ptr %3, align 8
  %380 = extractvalue { ptr, i32 } %378, 1
  store i32 %380, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %72) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %69) #6
  br label %399

381:                                              ; preds = %355
  %382 = landingpad { ptr, i32 }
          cleanup
  %383 = extractvalue { ptr, i32 } %382, 0
  store ptr %383, ptr %3, align 8
  %384 = extractvalue { ptr, i32 } %382, 1
  store i32 %384, ptr %4, align 4
  br label %389

385:                                              ; preds = %357
  %386 = landingpad { ptr, i32 }
          cleanup
  %387 = extractvalue { ptr, i32 } %386, 0
  store ptr %387, ptr %3, align 8
  %388 = extractvalue { ptr, i32 } %386, 1
  store i32 %388, ptr %4, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %73) #6
  br label %389

389:                                              ; preds = %385, %381
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %74) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %74) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %73) #6
  br label %399

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

394:                                              ; preds = %367
  %395 = landingpad { ptr, i32 }
          cleanup
  %396 = extractvalue { ptr, i32 } %395, 0
  store ptr %396, ptr %3, align 8
  %397 = extractvalue { ptr, i32 } %395, 1
  store i32 %397, ptr %4, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %75) #6
  br label %398

398:                                              ; preds = %394, %390
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %76) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %76) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %75) #6
  br label %399

399:                                              ; preds = %398, %389, %377, %373
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %68) #6
  br label %400

400:                                              ; preds = %399, %369
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #6
  br label %402

401:                                              ; preds = %368, %326
  call void @llvm.lifetime.end.p0(i64 96, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %1) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %1) #6
  br label %405

402:                                              ; preds = %400, %325, %293, %284, %275, %263, %262, %250, %246, %242, %238, %234, %230
  call void @llvm.lifetime.end.p0(i64 96, ptr %6) #6
  br label %403

403:                                              ; preds = %402, %226
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %404

404:                                              ; preds = %403, %222
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %1) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %1) #6
  br label %406

405:                                              ; preds = %401, %86, %83, %0
  call void @glutPostRedisplay()
  call void @glutSwapBuffers()
  ret void

406:                                              ; preds = %404
  %407 = load ptr, ptr %3, align 8
  %408 = load i32, ptr %4, align 4
  %409 = insertvalue { ptr, i32 } poison, ptr %407, 0
  %410 = insertvalue { ptr, i32 } %409, i32 %408, 1
  resume { ptr, i32 } %410
}

declare noundef zeroext i1 @_ZN9Framework5Timer6UpdateEv(ptr noundef nonnull align 4 dereferenceable(20)) #5

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

declare void @_ZN6glutil11MatrixStack9SetMatrixERKN3glm6detail7tmat4x4IfEE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 4 dereferenceable(64)) #5

declare void @_ZNK6glutil8ViewPole10CalcMatrixEv(ptr dead_on_unwind writable sret(%"struct.glm::detail::tmat4x4") align 4, ptr noundef nonnull align 8 dereferenceable(148)) unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10LightBlockC2Ev(ptr noundef nonnull align 4 dereferenceable(96)) unnamed_addr #4 align 2

declare void @_ZNK9Framework4Mesh6RenderEv(ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

declare void @_ZN6glutil11MatrixStack11SetIdentityEv(ptr noundef nonnull align 8 dereferenceable(88)) #5

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

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

declare void @glutPostRedisplay() #5

declare void @glutSwapBuffers() #5

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 16}
!12 = !{!"_ZTS10LightBlock", !13, i64 0, !10, i64 16, !7, i64 20, !7, i64 32}
!13 = !{!"_ZTSN3glm6detail5tvec4IfEE", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !15, i64 0}
!17 = !{!"_ZTS15ProgramMeshData", !15, i64 0, !15, i64 4, !15, i64 8}
!18 = !{!17, !15, i64 4}
!19 = !{!17, !15, i64 8}
!20 = !{!21, !21, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!25, !15, i64 0}
!25 = !{!"_ZTS13UnlitProgData", !15, i64 0, !15, i64 4, !15, i64 8}
!26 = !{!25, !15, i64 8}
!27 = !{!25, !15, i64 4}
!28 = !{!29, !10, i64 28}
!29 = !{!"_ZTSN6glutil8ViewDataE", !30, i64 0, !31, i64 12, !10, i64 28, !10, i64 32}
!30 = !{!"_ZTSN3glm6detail5tvec3IfEE", !7, i64 0}
!31 = !{!"_ZTSN3glm6detail5tquatIfEE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}


; 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.ProgramMeshData = type { i32, i32, i32 }
%struct.UnlitProgData = type { i32, i32, i32 }
%"class.glutil::ViewPole" = type <{ %"class.glutil::ViewProvider", %"struct.glutil::ViewData", %"struct.glutil::ViewScale", %"struct.glutil::ViewData", i32, i8, i8, [2 x i8], i32, float, %"struct.glm::detail::tvec2", %"struct.glm::detail::tquat", [4 x i8] }>
%"class.glutil::ViewProvider" = type { ptr }
%"struct.glutil::ViewScale" = type { float, float, float, float, float, float, float }
%"struct.glutil::ViewData" = type { %"struct.glm::detail::tvec3", %"struct.glm::detail::tquat", float, float }
%"struct.glm::detail::tvec3" = type { %union.anon.3 }
%union.anon.3 = type { %struct.anon }
%struct.anon = type { float, float, float }
%"struct.glm::detail::tvec2" = type { %union.anon.6 }
%union.anon.6 = type { %struct.anon.7 }
%struct.anon.7 = type { i32, i32 }
%"struct.glm::detail::tquat" = type { float, float, float, float }
%"class.Framework::Timer" = type { i32, float, i8, i8, float, float }
%"struct.glm::detail::tvec4" = type { %union.anon.15 }
%union.anon.15 = type { %struct.anon.16 }
%struct.anon.16 = type { float, float, float, float }
%"struct.glm::detail::tmat3x3" = type { [3 x %"struct.glm::detail::tvec3"] }
%"class.glutil::MatrixStack" = type { %"class.std::stack", %"struct.glm::detail::tmat4x4" }
%"class.std::stack" = type { %"class.std::vector.19" }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = type { %"struct.std::_Vector_base<glm::detail::tmat4x4<float>, std::allocator<glm::detail::tmat4x4<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<glm::detail::tmat4x4<float>, std::allocator<glm::detail::tmat4x4<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<glm::detail::tmat4x4<float>, std::allocator<glm::detail::tmat4x4<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<glm::detail::tmat4x4<float>, std::allocator<glm::detail::tmat4x4<float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.glm::detail::tmat4x4" = type { [4 x %"struct.glm::detail::tvec4"] }
%struct.LightBlock = type { %"struct.glm::detail::tvec4", float, [3 x float], [2 x %struct.PerLight] }
%struct.PerLight = type { %"struct.glm::detail::tvec4", %"struct.glm::detail::tvec4" }
%"class.glutil::PushStack" = type { 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.0" = type { i8 }

@g_litMeshProg = external dso_local local_unnamed_addr global %struct.ProgramMeshData, align 4
@g_Unlit = external dso_local local_unnamed_addr global %struct.UnlitProgData, align 4
@g_viewPole = external dso_local global %"class.glutil::ViewPole", align 8
@g_pPlaneMesh = external dso_local local_unnamed_addr global ptr, align 8
@g_pSphereMesh = external dso_local local_unnamed_addr global ptr, align 8
@g_pCubeMesh = external dso_local local_unnamed_addr global ptr, align 8
@g_lightUniformBuffer = external dso_local local_unnamed_addr global i32, align 4
@g_materialUniformBuffer = external dso_local local_unnamed_addr global i32, align 4
@_funcptr_glEnable = external local_unnamed_addr global ptr, align 8
@_funcptr_glDepthMask = external local_unnamed_addr global ptr, align 8
@_funcptr_glBindBuffer = external local_unnamed_addr global ptr, align 8
@_funcptr_glBindBufferRange = external local_unnamed_addr global ptr, align 8
@_funcptr_glUseProgram = external local_unnamed_addr global ptr, align 8
@_funcptr_glUniformMatrix4fv = external local_unnamed_addr global ptr, align 8
@_funcptr_glUniformMatrix3fv = external local_unnamed_addr global ptr, align 8
@_funcptr_glBindBufferBase = external local_unnamed_addr global ptr, align 8
@g_bDrawCameraPos = external dso_local local_unnamed_addr global i8, align 1
@g_bDrawLights = external dso_local local_unnamed_addr global i8, align 1
@g_sphereTimer = external dso_local global %"class.Framework::Timer", align 4
@g_drawImposter = external dso_local local_unnamed_addr global [4 x i8], align 1
@_funcptr_glClearColor = external local_unnamed_addr global ptr, align 8
@_funcptr_glClearDepth = external local_unnamed_addr global ptr, align 8
@_funcptr_glClear = external local_unnamed_addr global ptr, align 8
@_funcptr_glBufferSubData = external local_unnamed_addr global ptr, align 8
@_funcptr_glUniform4fv = external local_unnamed_addr global ptr, align 8
@.str.25 = external hidden unnamed_addr constant [5 x i8], align 1
@_funcptr_glDisable = external local_unnamed_addr global ptr, align 8
@_funcptr_glUniform4f = external local_unnamed_addr global ptr, align 8

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

declare i32 @__gxx_personality_v0(...)

; 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 @_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

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10DrawSphereRN6glutil11MatrixStackERKN3glm6detail5tvec3IfEEf13MaterialNamesb(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 4 dereferenceable(12), float noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm6detailmlIfEENS0_7tmat4x4IT_E8col_typeERKS4_RKNS4_8row_typeE(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tvec4") align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3

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

declare void @_ZN6glutil11MatrixStack9TranslateERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6glutil11MatrixStack5ScaleEf(ptr noundef nonnull align 8 dereferenceable(88), float noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm6detail7tmat3x3IfEC2ERKNS0_7tmat4x4IfEE(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(64)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm9transposeIfEENS_6detail7tmat3x3IT_EERKS4_(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tmat3x3") align 4, ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm7inverseIfEENS_6detail7tmat3x3IT_EERKS4_(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tmat3x3") align 4, ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(36) ptr @_ZN3glm6detail7tmat3x3IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail7tmat3x3IS1_EE(ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #3

declare void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15DrawSphereOrbitRN6glutil11MatrixStackERKN3glm6detail5tvec3IfEES7_fff13MaterialNamesb(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z17CalcLightPositionv(ptr dead_on_unwind noalias writable sret(%"struct.glm::detail::tvec4") align 4) local_unnamed_addr #2

declare noundef float @_ZNK9Framework5Timer8GetAlphaEv(ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7displayv() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.glutil::MatrixStack", align 8
  %2 = alloca %"struct.glm::detail::tmat4x4", align 4
  %3 = alloca %struct.LightBlock, align 4
  %4 = alloca %"struct.glm::detail::tvec4", align 4
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca %"struct.glm::detail::tvec4", align 4
  %10 = alloca %"struct.glm::detail::tvec4", align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca %"struct.glm::detail::tvec4", align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca %"struct.glm::detail::tvec4", align 4
  %21 = alloca %"struct.glm::detail::tvec4", align 4
  %22 = alloca %"struct.glm::detail::tvec4", align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca %"struct.glm::detail::tmat3x3", align 4
  %28 = alloca %"struct.glm::detail::tmat3x3", align 4
  %29 = alloca %"struct.glm::detail::tmat3x3", align 4
  %30 = alloca %"struct.glm::detail::tvec3", align 4
  %31 = alloca float, align 4
  %32 = alloca float, align 4
  %33 = alloca float, align 4
  %34 = alloca %"struct.glm::detail::tvec3", align 4
  %35 = alloca float, align 4
  %36 = alloca float, align 4
  %37 = alloca float, align 4
  %38 = alloca %"struct.glm::detail::tvec3", align 4
  %39 = alloca float, align 4
  %40 = alloca float, align 4
  %41 = alloca float, align 4
  %42 = alloca %"struct.glm::detail::tvec3", align 4
  %43 = alloca float, align 4
  %44 = alloca float, align 4
  %45 = alloca float, align 4
  %46 = alloca %"struct.glm::detail::tvec3", align 4
  %47 = alloca float, align 4
  %48 = alloca float, align 4
  %49 = alloca float, align 4
  %50 = alloca %"struct.glm::detail::tvec3", align 4
  %51 = alloca float, align 4
  %52 = alloca float, align 4
  %53 = alloca float, align 4
  %54 = alloca %"struct.glm::detail::tvec3", align 4
  %55 = alloca float, align 4
  %56 = alloca float, align 4
  %57 = alloca float, align 4
  %58 = alloca %"class.glutil::PushStack", align 8
  %59 = alloca %"struct.glm::detail::tvec3", align 4
  %60 = alloca %"struct.glm::detail::tvec4", align 4
  %61 = alloca %"struct.glm::detail::tvec4", align 4
  %62 = alloca float, align 4
  %63 = alloca %"class.std::__cxx11::basic_string", align 8
  %64 = alloca %"class.std::allocator.0", align 1
  %65 = alloca %"class.glutil::PushStack", align 8
  %66 = alloca %"struct.glm::detail::tvec3", align 4
  %67 = alloca float, align 4
  %68 = alloca float, align 4
  %69 = alloca float, align 4
  %70 = alloca %"class.std::__cxx11::basic_string", align 8
  %71 = alloca %"class.std::allocator.0", align 1
  %72 = alloca %"class.std::__cxx11::basic_string", align 8
  %73 = alloca %"class.std::allocator.0", align 1
  %74 = tail call noundef zeroext i1 @_ZN9Framework5Timer6UpdateEv(ptr noundef nonnull align 4 dereferenceable(20) @g_sphereTimer)
  %75 = load ptr, ptr @_funcptr_glClearColor, align 8, !tbaa !5
  tail call void %75(float noundef 7.500000e-01, float noundef 7.500000e-01, float noundef 1.000000e+00, float noundef 1.000000e+00)
  %76 = load ptr, ptr @_funcptr_glClearDepth, align 8, !tbaa !5
  tail call void %76(double noundef 1.000000e+00)
  %77 = load ptr, ptr @_funcptr_glClear, align 8, !tbaa !5
  tail call void %77(i32 noundef 16640)
  %78 = load ptr, ptr @g_pPlaneMesh, align 8, !tbaa !5
  %79 = icmp ne ptr %78, null
  %80 = load ptr, ptr @g_pSphereMesh, align 8
  %81 = icmp ne ptr %80, null
  %or.cond = select i1 %79, i1 %81, i1 false
  %82 = load ptr, ptr @g_pCubeMesh, align 8
  %83 = icmp ne ptr %82, null
  %or.cond3 = select i1 %or.cond, i1 %83, i1 false
  br i1 %or.cond3, label %84, label %277

84:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %1) #6
  call void @_ZN6glutil11MatrixStackC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %1)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #6
  invoke void @_ZNK6glutil8ViewPole10CalcMatrixEv(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tmat4x4") align 4 %2, ptr noundef nonnull align 8 dereferenceable(148) @g_viewPole)
          to label %85 unwind label %179

85:                                               ; preds = %84
  invoke void @_ZN6glutil11MatrixStack9SetMatrixERKN3glm6detail7tmat4x4IfEE(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(64) %2)
          to label %86 unwind label %179

86:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #6
  %87 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %3) #6
  invoke void @_ZN10LightBlockC2Ev(ptr noundef nonnull align 4 dereferenceable(96) %3)
          to label %88 unwind label %181

88:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  store float 0x3FC99999A0000000, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  store float 0x3FC99999A0000000, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  store float 0x3FC99999A0000000, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store float 1.000000e+00, ptr %8, align 4, !tbaa !9
  call void @_ZN3glm6detail5tvec4IfEC2ERKfS4_S4_S4_(ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %89 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(16) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  %90 = getelementptr inbounds i8, ptr %3, i64 16
  store float 0x3F5A36E2E0000000, ptr %90, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  store float 0x3FE69FBE80000000, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  store float 0x3FE69FBE80000000, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  store float 0.000000e+00, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  store float 0.000000e+00, ptr %14, align 4, !tbaa !9
  call void @_ZN3glm6detail5tvec4IfEC2ERKfS4_S4_S4_(ptr noundef nonnull align 4 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  invoke void @_ZN3glm6detailmlIfEENS0_7tmat4x4IT_E8col_typeERKS4_RKNS4_8row_typeE(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec4") align 4 %9, ptr noundef nonnull align 4 dereferenceable(64) %87, ptr noundef nonnull align 4 dereferenceable(16) %10)
          to label %91 unwind label %183

91:                                               ; preds = %88
  %92 = getelementptr inbounds i8, ptr %3, i64 32
  %93 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %92, ptr noundef nonnull align 4 dereferenceable(16) %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  store float 0x3FE3333340000000, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #6
  store float 0x3FE3333340000000, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #6
  store float 0x3FE3333340000000, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #6
  store float 1.000000e+00, ptr %19, align 4, !tbaa !9
  call void @_ZN3glm6detail5tvec4IfEC2ERKfS4_S4_S4_(ptr noundef nonnull align 4 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %94 = getelementptr inbounds i8, ptr %3, i64 48
  %95 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %94, ptr noundef nonnull align 4 dereferenceable(16) %15)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #6
  invoke void @_Z17CalcLightPositionv(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec4") align 4 %21)
          to label %96 unwind label %185

96:                                               ; preds = %91
  invoke void @_ZN3glm6detailmlIfEENS0_7tmat4x4IT_E8col_typeERKS4_RKNS4_8row_typeE(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec4") align 4 %20, ptr noundef nonnull align 4 dereferenceable(64) %87, ptr noundef nonnull align 4 dereferenceable(16) %21)
          to label %97 unwind label %185

97:                                               ; preds = %96
  %98 = getelementptr inbounds i8, ptr %3, i64 64
  %99 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %98, ptr noundef nonnull align 4 dereferenceable(16) %20)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #6
  store float 0x3FD99999A0000000, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #6
  store float 0x3FD99999A0000000, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #6
  store float 0x3FD99999A0000000, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #6
  store float 1.000000e+00, ptr %26, align 4, !tbaa !9
  call void @_ZN3glm6detail5tvec4IfEC2ERKfS4_S4_S4_(ptr noundef nonnull align 4 dereferenceable(16) %22, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %100 = getelementptr inbounds i8, ptr %3, i64 80
  %101 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm6detail5tvec4IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(16) %100, ptr noundef nonnull align 4 dereferenceable(16) %22)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #6
  %102 = load ptr, ptr @_funcptr_glBindBuffer, align 8, !tbaa !5
  %103 = load i32, ptr @g_lightUniformBuffer, align 4, !tbaa !14
  invoke void %102(i32 noundef 35345, i32 noundef %103)
          to label %104 unwind label %181

104:                                              ; preds = %97
  %105 = load ptr, ptr @_funcptr_glBufferSubData, align 8, !tbaa !5
  invoke void %105(i32 noundef 35345, i64 noundef 0, i64 noundef 96, ptr noundef nonnull %3)
          to label %106 unwind label %181

106:                                              ; preds = %104
  %107 = load ptr, ptr @_funcptr_glBindBuffer, align 8, !tbaa !5
  invoke void %107(i32 noundef 35345, i32 noundef 0)
          to label %108 unwind label %181

108:                                              ; preds = %106
  %109 = load ptr, ptr @_funcptr_glBindBufferRange, align 8, !tbaa !5
  %110 = load i32, ptr @g_materialUniformBuffer, align 4, !tbaa !14
  invoke void %109(i32 noundef 35345, i32 noundef 0, i32 noundef %110, i64 noundef 0, i64 noundef 48)
          to label %111 unwind label %181

111:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %27) #6
  %112 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  invoke void @_ZN3glm6detail7tmat3x3IfEC2ERKNS0_7tmat4x4IfEE(ptr noundef nonnull align 4 dereferenceable(36) %27, ptr noundef nonnull align 4 dereferenceable(64) %112)
          to label %113 unwind label %187

113:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %28) #6
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %29) #6
  invoke void @_ZN3glm7inverseIfEENS_6detail7tmat3x3IT_EERKS4_(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tmat3x3") align 4 %29, ptr noundef nonnull align 4 dereferenceable(36) %27)
          to label %114 unwind label %189

114:                                              ; preds = %113
  invoke void @_ZN3glm9transposeIfEENS_6detail7tmat3x3IT_EERKS4_(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tmat3x3") align 4 %28, ptr noundef nonnull align 4 dereferenceable(36) %29)
          to label %115 unwind label %189

115:                                              ; preds = %114
  %116 = invoke noundef nonnull align 4 dereferenceable(36) ptr @_ZN3glm6detail7tmat3x3IfEaSERKS2_(ptr noundef nonnull align 4 dereferenceable(36) %27, ptr noundef nonnull align 4 dereferenceable(36) %28)
          to label %117 unwind label %189

117:                                              ; preds = %115
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %29) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %28) #6
  %118 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %119 = load i32, ptr @g_litMeshProg, align 4, !tbaa !16
  invoke void %118(i32 noundef %119)
          to label %120 unwind label %187

120:                                              ; preds = %117
  %121 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %122 = load i32, ptr getelementptr inbounds (i8, ptr @g_litMeshProg, i64 4), align 4, !tbaa !18
  %123 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  %124 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %123)
          to label %125 unwind label %187

125:                                              ; preds = %120
  invoke void %121(i32 noundef %122, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %124)
          to label %126 unwind label %187

126:                                              ; preds = %125
  %127 = load ptr, ptr @_funcptr_glUniformMatrix3fv, align 8, !tbaa !5
  %128 = load i32, ptr getelementptr inbounds (i8, ptr @g_litMeshProg, i64 8), align 4, !tbaa !19
  %129 = call noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail7tmat3x3IS1_EE(ptr noundef nonnull align 4 dereferenceable(36) %27)
  invoke void %127(i32 noundef %128, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %129)
          to label %130 unwind label %187

130:                                              ; preds = %126
  %131 = load ptr, ptr @g_pPlaneMesh, align 8, !tbaa !5
  invoke void @_ZNK9Framework4Mesh6RenderEv(ptr noundef nonnull align 8 dereferenceable(8) %131)
          to label %132 unwind label %187

132:                                              ; preds = %130
  %133 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  invoke void %133(i32 noundef 0)
          to label %134 unwind label %187

134:                                              ; preds = %132
  %135 = load ptr, ptr @_funcptr_glBindBufferBase, align 8, !tbaa !5
  invoke void %135(i32 noundef 35345, i32 noundef 0, i32 noundef 0)
          to label %136 unwind label %187

136:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %27) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %30) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %31) #6
  store float 0.000000e+00, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %32) #6
  store float 1.000000e+01, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %33) #6
  store float 0.000000e+00, ptr %33, align 4, !tbaa !9
  call void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %30, ptr noundef nonnull align 4 dereferenceable(4) %31, ptr noundef nonnull align 4 dereferenceable(4) %32, ptr noundef nonnull align 4 dereferenceable(4) %33)
  %137 = load i8, ptr @g_drawImposter, align 1, !tbaa !20, !range !22, !noundef !23
  %138 = trunc nuw i8 %137 to i1
  invoke void @_Z10DrawSphereRN6glutil11MatrixStackERKN3glm6detail5tvec3IfEEf13MaterialNamesb(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(12) %30, float noundef 4.000000e+00, i32 noundef 1, i1 noundef zeroext %138)
          to label %139 unwind label %192

139:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %30) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %34) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %35) #6
  store float 0.000000e+00, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %36) #6
  store float 1.000000e+01, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %37) #6
  store float 0.000000e+00, ptr %37, align 4, !tbaa !9
  call void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %34, ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(4) %37)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %38) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %39) #6
  store float 0x3FE3333340000000, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %40) #6
  store float 0x3FE99999A0000000, ptr %40, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %41) #6
  store float 0.000000e+00, ptr %41, align 4, !tbaa !9
  call void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %38, ptr noundef nonnull align 4 dereferenceable(4) %39, ptr noundef nonnull align 4 dereferenceable(4) %40, ptr noundef nonnull align 4 dereferenceable(4) %41)
  %140 = invoke noundef float @_ZNK9Framework5Timer8GetAlphaEv(ptr noundef nonnull align 4 dereferenceable(20) @g_sphereTimer)
          to label %141 unwind label %194

141:                                              ; preds = %139
  %142 = load i8, ptr getelementptr inbounds (i8, ptr @g_drawImposter, i64 1), align 1, !tbaa !20, !range !22, !noundef !23
  %143 = trunc nuw i8 %142 to i1
  invoke void @_Z15DrawSphereOrbitRN6glutil11MatrixStackERKN3glm6detail5tvec3IfEES7_fff13MaterialNamesb(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(12) %34, ptr noundef nonnull align 4 dereferenceable(12) %38, float noundef 2.000000e+01, float noundef %140, float noundef 2.000000e+00, i32 noundef 3, i1 noundef zeroext %143)
          to label %144 unwind label %194

144:                                              ; preds = %141
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %41) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %40) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %39) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %38) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %34) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %42) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %43) #6
  store float -1.000000e+01, ptr %43, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %44) #6
  store float 1.000000e+00, ptr %44, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %45) #6
  store float 0.000000e+00, ptr %45, align 4, !tbaa !9
  call void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %42, ptr noundef nonnull align 4 dereferenceable(4) %43, ptr noundef nonnull align 4 dereferenceable(4) %44, ptr noundef nonnull align 4 dereferenceable(4) %45)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %46) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %47) #6
  store float 0.000000e+00, ptr %47, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %48) #6
  store float 1.000000e+00, ptr %48, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %49) #6
  store float 0.000000e+00, ptr %49, align 4, !tbaa !9
  call void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %46, ptr noundef nonnull align 4 dereferenceable(4) %47, ptr noundef nonnull align 4 dereferenceable(4) %48, ptr noundef nonnull align 4 dereferenceable(4) %49)
  %145 = invoke noundef float @_ZNK9Framework5Timer8GetAlphaEv(ptr noundef nonnull align 4 dereferenceable(20) @g_sphereTimer)
          to label %146 unwind label %196

146:                                              ; preds = %144
  %147 = load i8, ptr getelementptr inbounds (i8, ptr @g_drawImposter, i64 2), align 1, !tbaa !20, !range !22, !noundef !23
  %148 = trunc nuw i8 %147 to i1
  invoke void @_Z15DrawSphereOrbitRN6glutil11MatrixStackERKN3glm6detail5tvec3IfEES7_fff13MaterialNamesb(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(12) %42, ptr noundef nonnull align 4 dereferenceable(12) %46, float noundef 1.000000e+01, float noundef %145, float noundef 1.000000e+00, i32 noundef 4, i1 noundef zeroext %148)
          to label %149 unwind label %196

149:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %49) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %48) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %47) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %46) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %45) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %44) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %43) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %42) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %50) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %51) #6
  store float 1.000000e+01, ptr %51, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %52) #6
  store float 1.000000e+00, ptr %52, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %53) #6
  store float 0.000000e+00, ptr %53, align 4, !tbaa !9
  call void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %50, ptr noundef nonnull align 4 dereferenceable(4) %51, ptr noundef nonnull align 4 dereferenceable(4) %52, ptr noundef nonnull align 4 dereferenceable(4) %53)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %54) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %55) #6
  store float 0.000000e+00, ptr %55, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %56) #6
  store float 1.000000e+00, ptr %56, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %57) #6
  store float 0.000000e+00, ptr %57, align 4, !tbaa !9
  call void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %54, ptr noundef nonnull align 4 dereferenceable(4) %55, ptr noundef nonnull align 4 dereferenceable(4) %56, ptr noundef nonnull align 4 dereferenceable(4) %57)
  %150 = invoke noundef float @_ZNK9Framework5Timer8GetAlphaEv(ptr noundef nonnull align 4 dereferenceable(20) @g_sphereTimer)
          to label %151 unwind label %198

151:                                              ; preds = %149
  %152 = fmul float %150, 2.000000e+00
  %153 = load i8, ptr getelementptr inbounds (i8, ptr @g_drawImposter, i64 3), align 1, !tbaa !20, !range !22, !noundef !23
  %154 = trunc nuw i8 %153 to i1
  invoke void @_Z15DrawSphereOrbitRN6glutil11MatrixStackERKN3glm6detail5tvec3IfEES7_fff13MaterialNamesb(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(12) %50, ptr noundef nonnull align 4 dereferenceable(12) %54, float noundef 1.000000e+01, float noundef %152, float noundef 1.000000e+00, i32 noundef 2, i1 noundef zeroext %154)
          to label %155 unwind label %198

155:                                              ; preds = %151
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %57) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %56) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %55) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %54) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %53) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %52) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %51) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %50) #6
  %156 = load i8, ptr @g_bDrawLights, align 1, !tbaa !20, !range !22, !noundef !23
  %157 = trunc nuw i8 %156 to i1
  br i1 %157, label %158, label %216

158:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %58) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %159 unwind label %200

159:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %59) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %60) #6
  invoke void @_Z17CalcLightPositionv(ptr dead_on_unwind nonnull writable sret(%"struct.glm::detail::tvec4") align 4 %60)
          to label %160 unwind label %202

160:                                              ; preds = %159
  call void @_ZN3glm6detail5tvec3IfEC2IfEERKNS0_5tvec4IT_EE(ptr noundef nonnull align 4 dereferenceable(12) %59, ptr noundef nonnull align 4 dereferenceable(16) %60)
  invoke void @_ZN6glutil11MatrixStack9TranslateERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(12) %59)
          to label %161 unwind label %202

161:                                              ; preds = %160
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %60) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %59) #6
  invoke void @_ZN6glutil11MatrixStack5ScaleEf(ptr noundef nonnull align 8 dereferenceable(88) %1, float noundef 5.000000e-01)
          to label %162 unwind label %204

162:                                              ; preds = %161
  %163 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %164 = load i32, ptr @g_Unlit, align 4, !tbaa !24
  invoke void %163(i32 noundef %164)
          to label %165 unwind label %204

165:                                              ; preds = %162
  %166 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %167 = load i32, ptr getelementptr inbounds (i8, ptr @g_Unlit, i64 8), align 4, !tbaa !26
  %168 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  %169 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %168)
          to label %170 unwind label %204

170:                                              ; preds = %165
  invoke void %166(i32 noundef %167, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %169)
          to label %171 unwind label %204

171:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %61) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %62) #6
  store float 1.000000e+00, ptr %62, align 4, !tbaa !9
  call void @_ZN3glm6detail5tvec4IfEC2ERKf(ptr noundef nonnull align 4 dereferenceable(16) %61, ptr noundef nonnull align 4 dereferenceable(4) %62)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %62) #6
  %172 = load ptr, ptr @_funcptr_glUniform4fv, align 8, !tbaa !5
  %173 = load i32, ptr getelementptr inbounds (i8, ptr @g_Unlit, i64 4), align 4, !tbaa !27
  %174 = call noundef ptr @_ZN3glm9value_ptrIfEEPT_RNS_6detail5tvec4IS1_EE(ptr noundef nonnull align 4 dereferenceable(16) %61)
  invoke void %172(i32 noundef %173, i32 noundef 1, ptr noundef %174)
          to label %175 unwind label %206

175:                                              ; preds = %171
  %176 = load ptr, ptr @g_pCubeMesh, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %63) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %64) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %64) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %63, ptr noundef nonnull @.str.25, ptr noundef nonnull align 1 dereferenceable(1) %64)
          to label %177 unwind label %208

177:                                              ; preds = %175
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %176, ptr noundef nonnull align 8 dereferenceable(32) %63)
          to label %178 unwind label %210

178:                                              ; preds = %177
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %63) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %64) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %64) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %63) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %61) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %58) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %58) #6
  br label %216

179:                                              ; preds = %85, %84
  %180 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #6
  br label %276

181:                                              ; preds = %108, %106, %104, %97, %86
  %182 = landingpad { ptr, i32 }
          cleanup
  br label %275

183:                                              ; preds = %88
  %184 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  br label %275

185:                                              ; preds = %96, %91
  %186 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #6
  br label %275

187:                                              ; preds = %134, %132, %130, %126, %125, %120, %117, %111
  %188 = landingpad { ptr, i32 }
          cleanup
  br label %191

189:                                              ; preds = %115, %114, %113
  %190 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %29) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %28) #6
  br label %191

191:                                              ; preds = %189, %187
  %.pn = phi { ptr, i32 } [ %188, %187 ], [ %190, %189 ]
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %27) #6
  br label %275

192:                                              ; preds = %136
  %193 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %30) #6
  br label %275

194:                                              ; preds = %141, %139
  %195 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %41) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %40) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %39) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %38) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %34) #6
  br label %275

196:                                              ; preds = %146, %144
  %197 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %49) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %48) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %47) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %46) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %45) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %44) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %43) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %42) #6
  br label %275

198:                                              ; preds = %151, %149
  %199 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %57) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %56) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %55) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %54) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %53) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %52) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %51) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %50) #6
  br label %275

200:                                              ; preds = %158
  %201 = landingpad { ptr, i32 }
          cleanup
  br label %215

202:                                              ; preds = %160, %159
  %203 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %60) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %59) #6
  br label %214

204:                                              ; preds = %170, %165, %162, %161
  %205 = landingpad { ptr, i32 }
          cleanup
  br label %214

206:                                              ; preds = %171
  %207 = landingpad { ptr, i32 }
          cleanup
  br label %213

208:                                              ; preds = %175
  %209 = landingpad { ptr, i32 }
          cleanup
  br label %212

210:                                              ; preds = %177
  %211 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %63) #6
  br label %212

212:                                              ; preds = %210, %208
  %.pn18 = phi { ptr, i32 } [ %211, %210 ], [ %209, %208 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %64) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %64) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %63) #6
  br label %213

213:                                              ; preds = %212, %206
  %.pn18.pn = phi { ptr, i32 } [ %.pn18, %212 ], [ %207, %206 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %61) #6
  br label %214

214:                                              ; preds = %213, %204, %202
  %.pn18.pn.pn = phi { ptr, i32 } [ %.pn18.pn, %213 ], [ %205, %204 ], [ %203, %202 ]
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %58) #6
  br label %215

215:                                              ; preds = %214, %200
  %.pn18.pn.pn.pn = phi { ptr, i32 } [ %.pn18.pn.pn, %214 ], [ %201, %200 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %58) #6
  br label %275

216:                                              ; preds = %178, %155
  %217 = load i8, ptr @g_bDrawCameraPos, align 1, !tbaa !20, !range !22, !noundef !23
  %218 = trunc nuw i8 %217 to i1
  br i1 %218, label %219, label %274

219:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %65) #6
  invoke void @_ZN6glutil9PushStackC2ERNS_11MatrixStackE(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %220 unwind label %256

220:                                              ; preds = %219
  invoke void @_ZN6glutil11MatrixStack11SetIdentityEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
          to label %221 unwind label %258

221:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %66) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %67) #6
  store float 0.000000e+00, ptr %67, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %68) #6
  store float 0.000000e+00, ptr %68, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %69) #6
  %222 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNK6glutil8ViewPole7GetViewEv(ptr noundef nonnull align 8 dereferenceable(148) @g_viewPole)
  %223 = getelementptr inbounds i8, ptr %222, i64 28
  %224 = load float, ptr %223, align 4, !tbaa !28
  %225 = fneg float %224
  store float %225, ptr %69, align 4, !tbaa !9
  call void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %66, ptr noundef nonnull align 4 dereferenceable(4) %67, ptr noundef nonnull align 4 dereferenceable(4) %68, ptr noundef nonnull align 4 dereferenceable(4) %69)
  invoke void @_ZN6glutil11MatrixStack9TranslateERKN3glm6detail5tvec3IfEE(ptr noundef nonnull align 8 dereferenceable(88) %1, ptr noundef nonnull align 4 dereferenceable(12) %66)
          to label %226 unwind label %260

226:                                              ; preds = %221
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %69) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %68) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %67) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %66) #6
  %227 = load ptr, ptr @_funcptr_glDisable, align 8, !tbaa !5
  invoke void %227(i32 noundef 2929)
          to label %228 unwind label %258

228:                                              ; preds = %226
  %229 = load ptr, ptr @_funcptr_glDepthMask, align 8, !tbaa !5
  invoke void %229(i8 noundef zeroext 0)
          to label %230 unwind label %258

230:                                              ; preds = %228
  %231 = load ptr, ptr @_funcptr_glUseProgram, align 8, !tbaa !5
  %232 = load i32, ptr @g_Unlit, align 4, !tbaa !24
  invoke void %231(i32 noundef %232)
          to label %233 unwind label %258

233:                                              ; preds = %230
  %234 = load ptr, ptr @_funcptr_glUniformMatrix4fv, align 8, !tbaa !5
  %235 = load i32, ptr getelementptr inbounds (i8, ptr @g_Unlit, i64 8), align 4, !tbaa !26
  %236 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZNK6glutil11MatrixStack3TopEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  %237 = invoke noundef ptr @_ZN3glm9value_ptrIfEEPKT_RKNS_6detail7tmat4x4IS1_EE(ptr noundef nonnull align 4 dereferenceable(64) %236)
          to label %238 unwind label %258

238:                                              ; preds = %233
  invoke void %234(i32 noundef %235, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %237)
          to label %239 unwind label %258

239:                                              ; preds = %238
  %240 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %241 = load i32, ptr getelementptr inbounds (i8, ptr @g_Unlit, i64 4), align 4, !tbaa !27
  invoke void %240(i32 noundef %241, float noundef 2.500000e-01, float noundef 2.500000e-01, float noundef 2.500000e-01, float noundef 1.000000e+00)
          to label %242 unwind label %258

242:                                              ; preds = %239
  %243 = load ptr, ptr @g_pCubeMesh, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %70) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %71) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %71) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %70, ptr noundef nonnull @.str.25, ptr noundef nonnull align 1 dereferenceable(1) %71)
          to label %244 unwind label %262

244:                                              ; preds = %242
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %243, ptr noundef nonnull align 8 dereferenceable(32) %70)
          to label %245 unwind label %264

245:                                              ; preds = %244
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %70) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %71) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %71) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %70) #6
  %246 = load ptr, ptr @_funcptr_glDepthMask, align 8, !tbaa !5
  invoke void %246(i8 noundef zeroext 1)
          to label %247 unwind label %258

247:                                              ; preds = %245
  %248 = load ptr, ptr @_funcptr_glEnable, align 8, !tbaa !5
  invoke void %248(i32 noundef 2929)
          to label %249 unwind label %258

249:                                              ; preds = %247
  %250 = load ptr, ptr @_funcptr_glUniform4f, align 8, !tbaa !5
  %251 = load i32, ptr getelementptr inbounds (i8, ptr @g_Unlit, i64 4), align 4, !tbaa !27
  invoke void %250(i32 noundef %251, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %252 unwind label %258

252:                                              ; preds = %249
  %253 = load ptr, ptr @g_pCubeMesh, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %72) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %73) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %73) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %72, ptr noundef nonnull @.str.25, ptr noundef nonnull align 1 dereferenceable(1) %73)
          to label %254 unwind label %267

254:                                              ; preds = %252
  invoke void @_ZNK9Framework4Mesh6RenderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %253, ptr noundef nonnull align 8 dereferenceable(32) %72)
          to label %255 unwind label %269

255:                                              ; preds = %254
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %72) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %73) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %73) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %72) #6
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %65) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %65) #6
  br label %274

256:                                              ; preds = %219
  %257 = landingpad { ptr, i32 }
          cleanup
  br label %273

258:                                              ; preds = %249, %247, %245, %239, %238, %233, %230, %228, %226, %220
  %259 = landingpad { ptr, i32 }
          cleanup
  br label %272

260:                                              ; preds = %221
  %261 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %69) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %68) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %67) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %66) #6
  br label %272

262:                                              ; preds = %242
  %263 = landingpad { ptr, i32 }
          cleanup
  br label %266

264:                                              ; preds = %244
  %265 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %70) #6
  br label %266

266:                                              ; preds = %264, %262
  %.pn23 = phi { ptr, i32 } [ %265, %264 ], [ %263, %262 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %71) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %71) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %70) #6
  br label %272

267:                                              ; preds = %252
  %268 = landingpad { ptr, i32 }
          cleanup
  br label %271

269:                                              ; preds = %254
  %270 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %72) #6
  br label %271

271:                                              ; preds = %269, %267
  %.pn25 = phi { ptr, i32 } [ %270, %269 ], [ %268, %267 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %73) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %73) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %72) #6
  br label %272

272:                                              ; preds = %271, %266, %260, %258
  %.pn25.pn = phi { ptr, i32 } [ %.pn25, %271 ], [ %259, %258 ], [ %.pn23, %266 ], [ %261, %260 ]
  call void @_ZN6glutil9PushStackD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %65) #6
  br label %273

273:                                              ; preds = %272, %256
  %.pn25.pn.pn = phi { ptr, i32 } [ %.pn25.pn, %272 ], [ %257, %256 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %65) #6
  br label %275

274:                                              ; preds = %255, %216
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %3) #6
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %1) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %1) #6
  br label %277

275:                                              ; preds = %273, %215, %198, %196, %194, %192, %191, %185, %183, %181
  %.pn25.pn.pn.pn = phi { ptr, i32 } [ %.pn25.pn.pn, %273 ], [ %.pn18.pn.pn.pn, %215 ], [ %199, %198 ], [ %197, %196 ], [ %195, %194 ], [ %193, %192 ], [ %.pn, %191 ], [ %182, %181 ], [ %186, %185 ], [ %184, %183 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %3) #6
  br label %276

276:                                              ; preds = %275, %179
  %.pn25.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn25.pn.pn.pn, %275 ], [ %180, %179 ]
  call void @_ZN6glutil11MatrixStackD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %1) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn25.pn.pn.pn.pn

277:                                              ; preds = %274, %0
  call void @glutPostRedisplay()
  call void @glutSwapBuffers()
  ret void
}

declare noundef zeroext i1 @_ZN9Framework5Timer6UpdateEv(ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #5

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

declare void @_ZN6glutil11MatrixStack9SetMatrixERKN3glm6detail7tmat4x4IfEE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #5

declare void @_ZNK6glutil8ViewPole10CalcMatrixEv(ptr dead_on_unwind writable sret(%"struct.glm::detail::tmat4x4") align 4, ptr noundef nonnull align 8 dereferenceable(148)) unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10LightBlockC2Ev(ptr noundef nonnull align 4 dereferenceable(96)) unnamed_addr #4 align 2

declare void @_ZNK9Framework4Mesh6RenderEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

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

declare void @_ZN6glutil11MatrixStack11SetIdentityEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #5

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

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

declare void @glutPostRedisplay() local_unnamed_addr #5

declare void @glutSwapBuffers() local_unnamed_addr #5

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

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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { "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 }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 16}
!12 = !{!"_ZTS10LightBlock", !13, i64 0, !10, i64 16, !7, i64 20, !7, i64 32}
!13 = !{!"_ZTSN3glm6detail5tvec4IfEE", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !15, i64 0}
!17 = !{!"_ZTS15ProgramMeshData", !15, i64 0, !15, i64 4, !15, i64 8}
!18 = !{!17, !15, i64 4}
!19 = !{!17, !15, i64 8}
!20 = !{!21, !21, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!25, !15, i64 0}
!25 = !{!"_ZTS13UnlitProgData", !15, i64 0, !15, i64 4, !15, i64 8}
!26 = !{!25, !15, i64 8}
!27 = !{!25, !15, i64 4}
!28 = !{!29, !10, i64 28}
!29 = !{!"_ZTSN6glutil8ViewDataE", !30, i64 0, !31, i64 12, !10, i64 28, !10, i64 32}
!30 = !{!"_ZTSN3glm6detail5tvec3IfEE", !7, i64 0}
!31 = !{!"_ZTSN3glm6detail5tquatIfEE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}


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