; LLVM IR from sejja/3D-Software-Rasterizer :: Rasterizer/Source/Scene.ll (ZN5Scene6UpdateEv)

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

%class.Camera = type { %class.Vector4, %class.Vector4, %class.Vector4, %class.Vector4, %class.Vector4, %class.Vector4, %class.Vector4, %class.Vector4, %class.Vector4, %class.Vector4 }
%class.Vector4 = type { %union.anon }
%union.anon = type { [4 x float] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<GameObject *, std::allocator<GameObject *>>::_Vector_impl" }
%"struct.std::_Vector_base<GameObject *, std::allocator<GameObject *>>::_Vector_impl" = type { %"struct.std::_Vector_base<GameObject *, std::allocator<GameObject *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<GameObject *, std::allocator<GameObject *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Matrix4 = type { %union.anon.12 }
%union.anon.12 = type { [4 x [4 x float]] }
%class.Point4 = type { %union.anon.10 }
%union.anon.10 = type { [4 x float] }
%"struct.Graphics::Color" = type { float, float, float }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.GameObject = type { ptr, %class.Vector4, %class.Vector4, %class.Vector4, %class.Vector4, %class.Vector4, %class.Vector4, %"class.std::vector", %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.3 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.3 = type { i64, [8 x i8] }

@_ZN5SceneL3CamE = external hidden global %class.Camera, align 4
@_ZN5SceneL12sceneobjectsE = external hidden global %"class.std::vector", align 8
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZN5SceneL9wireframeE = external hidden global i8, align 1
@_ZN5SceneL7g_stateE = external hidden global i32, align 4
@_ZN5SceneL11g_camheightE = external hidden global float, align 4
@_ZN5SceneL13g_camdistanceE = external hidden global float, align 4
@_ZTI10GameObject = external dso_local constant { ptr, ptr }, align 8
@_ZTI3Box = external constant ptr
@_ZN5SceneL20g_copyframebuffer_shE = external hidden global { ptr }, align 8
@_ZN5SceneL14g_depthview_shE = external hidden global { ptr }, align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5Scene15GetObjectByNameEPKc(ptr noundef) #0

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP10GameObjectSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

declare void @_ZN7Vector4C1Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #4

declare noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #4

declare void @_ZNK7Vector45CrossERKS_(ptr dead_on_unwind writable sret(%class.Vector4) align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #4

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #5

; Function Attrs: nounwind
declare void @_ZN9GFXSystem14SetPostProcessEPN8Graphics11PostProcessE(ptr noundef nonnull align 8 dereferenceable(208), ptr noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Scene6UpdateEv() #0 {
  %1 = alloca ptr, align 8
  %2 = alloca %class.Vector4, align 4
  %3 = alloca %class.Matrix4, align 4
  %4 = alloca %class.Vector4, align 4
  %5 = alloca %class.Matrix4, align 4
  %6 = alloca %class.Vector4, align 4
  %7 = alloca %class.Matrix4, align 4
  %8 = alloca %class.Vector4, align 4
  %9 = alloca %class.Matrix4, align 4
  %10 = alloca %class.Vector4, align 4
  %11 = alloca %class.Matrix4, align 4
  %12 = alloca %class.Vector4, align 4
  %13 = alloca %class.Matrix4, align 4
  %14 = alloca %class.Vector4, align 4
  %15 = alloca %class.Matrix4, align 4
  %16 = alloca %class.Vector4, align 4
  %17 = alloca %class.Matrix4, align 4
  %18 = alloca %class.Vector4, align 4
  %19 = alloca %class.Matrix4, align 4
  %20 = alloca %class.Vector4, align 4
  %21 = alloca %class.Matrix4, align 4
  %22 = alloca %class.Vector4, align 4
  %23 = alloca %class.Matrix4, align 4
  %24 = alloca %class.Vector4, align 4
  %25 = alloca %class.Matrix4, align 4
  %26 = alloca %class.Vector4, align 4
  %27 = alloca %class.Vector4, align 4
  %28 = alloca %class.Vector4, align 4
  %29 = alloca %class.Matrix4, align 4
  %30 = alloca %class.Matrix4, align 4
  %31 = alloca %class.Point4, align 4
  %32 = alloca %class.Point4, align 4
  %33 = alloca %"struct.Graphics::Color", align 4
  %34 = alloca %class.Point4, align 4
  %35 = alloca %class.Point4, align 4
  %36 = alloca %"struct.Graphics::Color", align 4
  %37 = alloca %class.Matrix4, align 4
  %38 = alloca ptr, align 8
  %39 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %40 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca %class.Matrix4, align 4
  %44 = alloca %class.Matrix4, align 4
  %45 = alloca %class.Matrix4, align 4
  %46 = alloca %class.Matrix4, align 4
  %47 = alloca %class.Matrix4, align 4
  %48 = alloca %class.Matrix4, align 4
  %49 = alloca %class.Vector4, align 4
  %50 = alloca %class.Matrix4, align 4
  %51 = alloca ptr, align 8
  %52 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %53 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %54 = alloca ptr, align 8
  %55 = alloca ptr, align 8
  %56 = alloca %class.Matrix4, align 4
  %57 = alloca %class.Vector4, align 4
  %58 = alloca %class.Vector4, align 4
  %59 = alloca %class.Vector4, align 4
  %60 = alloca %class.Vector4, align 4
  %61 = alloca %class.Vector4, align 4
  %62 = alloca %class.Vector4, align 4
  %63 = alloca %class.Vector4, align 4
  %64 = alloca %class.Vector4, align 4
  %65 = alloca %class.Vector4, align 4
  %66 = alloca %class.Matrix4, align 4
  %67 = alloca %class.Matrix4, align 4
  %68 = alloca %class.Matrix4, align 4
  %69 = alloca %class.Matrix4, align 4
  %70 = alloca %class.Vector4, align 4
  %71 = alloca %class.Matrix4, align 4
  %72 = alloca ptr, align 8
  %73 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %74 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %75 = alloca ptr, align 8
  %76 = alloca ptr, align 8
  %77 = alloca %class.Matrix4, align 4
  %78 = alloca %class.Vector4, align 4
  %79 = alloca %class.Vector4, align 4
  %80 = alloca %class.Vector4, align 4
  %81 = alloca %class.Vector4, align 4
  %82 = alloca %class.Matrix4, align 4
  %83 = alloca %class.Matrix4, align 4
  %84 = alloca %class.Matrix4, align 4
  %85 = alloca %class.Matrix4, align 4
  %86 = alloca %class.Vector4, align 4
  %87 = alloca %class.Matrix4, align 4
  %88 = alloca ptr, align 8
  %89 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %90 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %91 = alloca ptr, align 8
  %92 = alloca ptr, align 8
  %93 = alloca %class.Matrix4, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #7
  %94 = call noundef ptr @_ZN5Scene15GetObjectByNameEPKc(ptr noundef @.str.2)
  store ptr %94, ptr %1, align 8, !tbaa !5
  %95 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 27)
  br i1 %95, label %96, label %98

96:                                               ; preds = %0
  store i8 1, ptr @_ZN5SceneL9wireframeE, align 1, !tbaa !9
  %97 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @_ZN9GFXSystem14SetPostProcessEPN8Graphics11PostProcessE(ptr noundef nonnull align 8 dereferenceable(208) %97, ptr noundef @_ZN5SceneL20g_copyframebuffer_shE) #7
  br label %98

98:                                               ; preds = %96, %0
  %99 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 28)
  br i1 %99, label %100, label %102

100:                                              ; preds = %98
  store i8 0, ptr @_ZN5SceneL9wireframeE, align 1, !tbaa !9
  %101 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @_ZN9GFXSystem14SetPostProcessEPN8Graphics11PostProcessE(ptr noundef nonnull align 8 dereferenceable(208) %101, ptr noundef @_ZN5SceneL20g_copyframebuffer_shE) #7
  br label %102

102:                                              ; preds = %100, %98
  %103 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 26)
  br i1 %103, label %104, label %106

104:                                              ; preds = %102
  store i8 0, ptr @_ZN5SceneL9wireframeE, align 1, !tbaa !9
  %105 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @_ZN9GFXSystem14SetPostProcessEPN8Graphics11PostProcessE(ptr noundef nonnull align 8 dereferenceable(208) %105, ptr noundef @_ZN5SceneL14g_depthview_shE) #7
  br label %106

106:                                              ; preds = %104, %102
  %107 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 0)
  br i1 %107, label %108, label %123

108:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 16, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %3) #7
  %109 = load ptr, ptr %1, align 8, !tbaa !5
  %110 = getelementptr inbounds %class.GameObject, ptr %109, i32 0, i32 5
  call void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %3, ptr noundef nonnull align 4 dereferenceable(16) %110, float noundef 0xBFB99999A0000000)
  %111 = load ptr, ptr %1, align 8, !tbaa !5
  %112 = getelementptr inbounds %class.GameObject, ptr %111, i32 0, i32 4
  call void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %2, ptr noundef nonnull align 4 dereferenceable(64) %3, ptr noundef nonnull align 4 dereferenceable(16) %112)
  %113 = load ptr, ptr %1, align 8, !tbaa !5
  %114 = getelementptr inbounds %class.GameObject, ptr %113, i32 0, i32 4
  %115 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %114, ptr noundef nonnull align 4 dereferenceable(16) %2)
  call void @llvm.lifetime.end.p0(i64 64, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %5) #7
  %116 = load ptr, ptr %1, align 8, !tbaa !5
  %117 = getelementptr inbounds %class.GameObject, ptr %116, i32 0, i32 5
  call void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %5, ptr noundef nonnull align 4 dereferenceable(16) %117, float noundef 0xBFB99999A0000000)
  %118 = load ptr, ptr %1, align 8, !tbaa !5
  %119 = getelementptr inbounds %class.GameObject, ptr %118, i32 0, i32 6
  call void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %4, ptr noundef nonnull align 4 dereferenceable(64) %5, ptr noundef nonnull align 4 dereferenceable(16) %119)
  %120 = load ptr, ptr %1, align 8, !tbaa !5
  %121 = getelementptr inbounds %class.GameObject, ptr %120, i32 0, i32 6
  %122 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %121, ptr noundef nonnull align 4 dereferenceable(16) %4)
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #7
  br label %123

123:                                              ; preds = %108, %106
  %124 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 3)
  br i1 %124, label %125, label %140

125:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %7) #7
  %126 = load ptr, ptr %1, align 8, !tbaa !5
  %127 = getelementptr inbounds %class.GameObject, ptr %126, i32 0, i32 5
  call void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %7, ptr noundef nonnull align 4 dereferenceable(16) %127, float noundef 0x3FB99999A0000000)
  %128 = load ptr, ptr %1, align 8, !tbaa !5
  %129 = getelementptr inbounds %class.GameObject, ptr %128, i32 0, i32 4
  call void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %6, ptr noundef nonnull align 4 dereferenceable(64) %7, ptr noundef nonnull align 4 dereferenceable(16) %129)
  %130 = load ptr, ptr %1, align 8, !tbaa !5
  %131 = getelementptr inbounds %class.GameObject, ptr %130, i32 0, i32 4
  %132 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %131, ptr noundef nonnull align 4 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #7
  %133 = load ptr, ptr %1, align 8, !tbaa !5
  %134 = getelementptr inbounds %class.GameObject, ptr %133, i32 0, i32 5
  call void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %9, ptr noundef nonnull align 4 dereferenceable(16) %134, float noundef 0x3FB99999A0000000)
  %135 = load ptr, ptr %1, align 8, !tbaa !5
  %136 = getelementptr inbounds %class.GameObject, ptr %135, i32 0, i32 6
  call void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %8, ptr noundef nonnull align 4 dereferenceable(64) %9, ptr noundef nonnull align 4 dereferenceable(16) %136)
  %137 = load ptr, ptr %1, align 8, !tbaa !5
  %138 = getelementptr inbounds %class.GameObject, ptr %137, i32 0, i32 6
  %139 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %138, ptr noundef nonnull align 4 dereferenceable(16) %8)
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
  br label %140

140:                                              ; preds = %125, %123
  %141 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 16)
  br i1 %141, label %142, label %157

142:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %11) #7
  %143 = load ptr, ptr %1, align 8, !tbaa !5
  %144 = getelementptr inbounds %class.GameObject, ptr %143, i32 0, i32 4
  call void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %11, ptr noundef nonnull align 4 dereferenceable(16) %144, float noundef 0xBFB99999A0000000)
  %145 = load ptr, ptr %1, align 8, !tbaa !5
  %146 = getelementptr inbounds %class.GameObject, ptr %145, i32 0, i32 5
  call void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %10, ptr noundef nonnull align 4 dereferenceable(64) %11, ptr noundef nonnull align 4 dereferenceable(16) %146)
  %147 = load ptr, ptr %1, align 8, !tbaa !5
  %148 = getelementptr inbounds %class.GameObject, ptr %147, i32 0, i32 5
  %149 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %148, ptr noundef nonnull align 4 dereferenceable(16) %10)
  call void @llvm.lifetime.end.p0(i64 64, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %13) #7
  %150 = load ptr, ptr %1, align 8, !tbaa !5
  %151 = getelementptr inbounds %class.GameObject, ptr %150, i32 0, i32 4
  call void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %13, ptr noundef nonnull align 4 dereferenceable(16) %151, float noundef 0xBFB99999A0000000)
  %152 = load ptr, ptr %1, align 8, !tbaa !5
  %153 = getelementptr inbounds %class.GameObject, ptr %152, i32 0, i32 6
  call void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %12, ptr noundef nonnull align 4 dereferenceable(64) %13, ptr noundef nonnull align 4 dereferenceable(16) %153)
  %154 = load ptr, ptr %1, align 8, !tbaa !5
  %155 = getelementptr inbounds %class.GameObject, ptr %154, i32 0, i32 6
  %156 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %155, ptr noundef nonnull align 4 dereferenceable(16) %12)
  call void @llvm.lifetime.end.p0(i64 64, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  br label %157

157:                                              ; preds = %142, %140
  %158 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 4)
  br i1 %158, label %159, label %174

159:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %15) #7
  %160 = load ptr, ptr %1, align 8, !tbaa !5
  %161 = getelementptr inbounds %class.GameObject, ptr %160, i32 0, i32 4
  call void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %15, ptr noundef nonnull align 4 dereferenceable(16) %161, float noundef 0x3FB99999A0000000)
  %162 = load ptr, ptr %1, align 8, !tbaa !5
  %163 = getelementptr inbounds %class.GameObject, ptr %162, i32 0, i32 5
  call void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %14, ptr noundef nonnull align 4 dereferenceable(64) %15, ptr noundef nonnull align 4 dereferenceable(16) %163)
  %164 = load ptr, ptr %1, align 8, !tbaa !5
  %165 = getelementptr inbounds %class.GameObject, ptr %164, i32 0, i32 5
  %166 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %165, ptr noundef nonnull align 4 dereferenceable(16) %14)
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #7
  %167 = load ptr, ptr %1, align 8, !tbaa !5
  %168 = getelementptr inbounds %class.GameObject, ptr %167, i32 0, i32 4
  call void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %17, ptr noundef nonnull align 4 dereferenceable(16) %168, float noundef 0x3FB99999A0000000)
  %169 = load ptr, ptr %1, align 8, !tbaa !5
  %170 = getelementptr inbounds %class.GameObject, ptr %169, i32 0, i32 6
  call void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %16, ptr noundef nonnull align 4 dereferenceable(64) %17, ptr noundef nonnull align 4 dereferenceable(16) %170)
  %171 = load ptr, ptr %1, align 8, !tbaa !5
  %172 = getelementptr inbounds %class.GameObject, ptr %171, i32 0, i32 6
  %173 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %172, ptr noundef nonnull align 4 dereferenceable(16) %16)
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  br label %174

174:                                              ; preds = %159, %157
  %175 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 22)
  br i1 %175, label %176, label %191

176:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #7
  %177 = load ptr, ptr %1, align 8, !tbaa !5
  %178 = getelementptr inbounds %class.GameObject, ptr %177, i32 0, i32 6
  call void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %19, ptr noundef nonnull align 4 dereferenceable(16) %178, float noundef 0xBFB99999A0000000)
  %179 = load ptr, ptr %1, align 8, !tbaa !5
  %180 = getelementptr inbounds %class.GameObject, ptr %179, i32 0, i32 5
  call void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %18, ptr noundef nonnull align 4 dereferenceable(64) %19, ptr noundef nonnull align 4 dereferenceable(16) %180)
  %181 = load ptr, ptr %1, align 8, !tbaa !5
  %182 = getelementptr inbounds %class.GameObject, ptr %181, i32 0, i32 5
  %183 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %182, ptr noundef nonnull align 4 dereferenceable(16) %18)
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #7
  %184 = load ptr, ptr %1, align 8, !tbaa !5
  %185 = getelementptr inbounds %class.GameObject, ptr %184, i32 0, i32 6
  call void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %21, ptr noundef nonnull align 4 dereferenceable(16) %185, float noundef 0xBFB99999A0000000)
  %186 = load ptr, ptr %1, align 8, !tbaa !5
  %187 = getelementptr inbounds %class.GameObject, ptr %186, i32 0, i32 4
  call void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %20, ptr noundef nonnull align 4 dereferenceable(64) %21, ptr noundef nonnull align 4 dereferenceable(16) %187)
  %188 = load ptr, ptr %1, align 8, !tbaa !5
  %189 = getelementptr inbounds %class.GameObject, ptr %188, i32 0, i32 4
  %190 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %189, ptr noundef nonnull align 4 dereferenceable(16) %20)
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #7
  br label %191

191:                                              ; preds = %176, %174
  %192 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 18)
  br i1 %192, label %193, label %208

193:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #7
  %194 = load ptr, ptr %1, align 8, !tbaa !5
  %195 = getelementptr inbounds %class.GameObject, ptr %194, i32 0, i32 6
  call void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %23, ptr noundef nonnull align 4 dereferenceable(16) %195, float noundef 0x3FB99999A0000000)
  %196 = load ptr, ptr %1, align 8, !tbaa !5
  %197 = getelementptr inbounds %class.GameObject, ptr %196, i32 0, i32 5
  call void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %22, ptr noundef nonnull align 4 dereferenceable(64) %23, ptr noundef nonnull align 4 dereferenceable(16) %197)
  %198 = load ptr, ptr %1, align 8, !tbaa !5
  %199 = getelementptr inbounds %class.GameObject, ptr %198, i32 0, i32 5
  %200 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %199, ptr noundef nonnull align 4 dereferenceable(16) %22)
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %25) #7
  %201 = load ptr, ptr %1, align 8, !tbaa !5
  %202 = getelementptr inbounds %class.GameObject, ptr %201, i32 0, i32 6
  call void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %25, ptr noundef nonnull align 4 dereferenceable(16) %202, float noundef 0x3FB99999A0000000)
  %203 = load ptr, ptr %1, align 8, !tbaa !5
  %204 = getelementptr inbounds %class.GameObject, ptr %203, i32 0, i32 4
  call void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %24, ptr noundef nonnull align 4 dereferenceable(64) %25, ptr noundef nonnull align 4 dereferenceable(16) %204)
  %205 = load ptr, ptr %1, align 8, !tbaa !5
  %206 = getelementptr inbounds %class.GameObject, ptr %205, i32 0, i32 4
  %207 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %206, ptr noundef nonnull align 4 dereferenceable(16) %24)
  call void @llvm.lifetime.end.p0(i64 64, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #7
  br label %208

208:                                              ; preds = %193, %191
  %209 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 57)
  br i1 %209, label %210, label %216

210:                                              ; preds = %208
  %211 = load ptr, ptr %1, align 8, !tbaa !5
  %212 = getelementptr inbounds %class.GameObject, ptr %211, i32 0, i32 5
  %213 = load ptr, ptr %1, align 8, !tbaa !5
  %214 = getelementptr inbounds %class.GameObject, ptr %213, i32 0, i32 1
  %215 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4pLERKS_(ptr noundef nonnull align 4 dereferenceable(16) %214, ptr noundef nonnull align 4 dereferenceable(16) %212)
  br label %216

216:                                              ; preds = %210, %208
  %217 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 29)
  br i1 %217, label %218, label %219

218:                                              ; preds = %216
  store i32 2, ptr @_ZN5SceneL7g_stateE, align 4, !tbaa !11
  br label %219

219:                                              ; preds = %218, %216
  %220 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 30)
  br i1 %220, label %221, label %222

221:                                              ; preds = %219
  store i32 1, ptr @_ZN5SceneL7g_stateE, align 4, !tbaa !11
  br label %222

222:                                              ; preds = %221, %219
  %223 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 31)
  br i1 %223, label %224, label %225

224:                                              ; preds = %222
  store i32 0, ptr @_ZN5SceneL7g_stateE, align 4, !tbaa !11
  br label %225

225:                                              ; preds = %224, %222
  %226 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 7)
  br i1 %226, label %227, label %230

227:                                              ; preds = %225
  %228 = load float, ptr @_ZN5SceneL11g_camheightE, align 4, !tbaa !13
  %229 = fadd float %228, 1.000000e+00
  store float %229, ptr @_ZN5SceneL11g_camheightE, align 4, !tbaa !13
  br label %230

230:                                              ; preds = %227, %225
  %231 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 24)
  br i1 %231, label %232, label %235

232:                                              ; preds = %230
  %233 = load float, ptr @_ZN5SceneL11g_camheightE, align 4, !tbaa !13
  %234 = fadd float %233, -1.000000e+00
  store float %234, ptr @_ZN5SceneL11g_camheightE, align 4, !tbaa !13
  br label %235

235:                                              ; preds = %232, %230
  %236 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 25)
  br i1 %236, label %237, label %240

237:                                              ; preds = %235
  %238 = load float, ptr @_ZN5SceneL13g_camdistanceE, align 4, !tbaa !13
  %239 = fadd float %238, -1.000000e+00
  store float %239, ptr @_ZN5SceneL13g_camdistanceE, align 4, !tbaa !13
  br label %240

240:                                              ; preds = %237, %235
  %241 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 23)
  br i1 %241, label %242, label %245

242:                                              ; preds = %240
  %243 = load float, ptr @_ZN5SceneL13g_camdistanceE, align 4, !tbaa !13
  %244 = fadd float %243, 1.000000e+00
  store float %244, ptr @_ZN5SceneL13g_camdistanceE, align 4, !tbaa !13
  br label %245

245:                                              ; preds = %242, %240
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #7
  %246 = load ptr, ptr %1, align 8, !tbaa !5
  %247 = getelementptr inbounds %class.GameObject, ptr %246, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #7
  %248 = load ptr, ptr %1, align 8, !tbaa !5
  %249 = getelementptr inbounds %class.GameObject, ptr %248, i32 0, i32 6
  %250 = load float, ptr @_ZN5SceneL13g_camdistanceE, align 4, !tbaa !13
  call void @_ZNK7Vector4mlEf(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %27, ptr noundef nonnull align 4 dereferenceable(16) %249, float noundef %250)
  call void @_ZNK7Vector4plERKS_(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %26, ptr noundef nonnull align 4 dereferenceable(16) %247, ptr noundef nonnull align 4 dereferenceable(16) %27)
  %251 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) @_ZN5SceneL3CamE, ptr noundef nonnull align 4 dereferenceable(16) %26)
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #7
  %252 = load ptr, ptr %1, align 8, !tbaa !5
  %253 = getelementptr inbounds %class.GameObject, ptr %252, i32 0, i32 6
  call void @_ZNK7Vector4ngEv(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %28, ptr noundef nonnull align 4 dereferenceable(16) %253)
  %254 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (%class.Camera, ptr @_ZN5SceneL3CamE, i32 0, i32 1), ptr noundef nonnull align 4 dereferenceable(16) %28)
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  %255 = load ptr, ptr %1, align 8, !tbaa !5
  %256 = getelementptr inbounds %class.GameObject, ptr %255, i32 0, i32 5
  %257 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (%class.Camera, ptr @_ZN5SceneL3CamE, i32 0, i32 2), ptr noundef nonnull align 4 dereferenceable(16) %256)
  %258 = load ptr, ptr %1, align 8, !tbaa !5
  %259 = getelementptr inbounds %class.GameObject, ptr %258, i32 0, i32 4
  %260 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (%class.Camera, ptr @_ZN5SceneL3CamE, i32 0, i32 3), ptr noundef nonnull align 4 dereferenceable(16) %259)
  %261 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %29) #7
  call void @_ZNK6Camera17ComputeViewMatrixEv(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %29, ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  call void @_ZN9GFXSystem15SetCameraMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %261, ptr noundef nonnull align 4 dereferenceable(64) %29) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %29) #7
  call void @_ZN6Camera21ComputeCameraFrustrumEv(ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  %262 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %30) #7
  call void @_ZN7Matrix48ViewportEffff(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %30, float noundef 6.400000e+02, float noundef 3.600000e+02, float noundef 2.000000e+00, float noundef 2.000000e+00)
  call void @_ZN9GFXSystem17SetViewportMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %262, ptr noundef nonnull align 4 dereferenceable(64) %30) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %30) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #7
  call void @_ZN6Point4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %31, float noundef 0.000000e+00, float noundef 3.600000e+02, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #7
  call void @_ZN6Point4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %32, float noundef 1.280000e+03, float noundef 3.600000e+02, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr %33) #7
  %263 = getelementptr inbounds %"struct.Graphics::Color", ptr %33, i32 0, i32 0
  store float 0.000000e+00, ptr %263, align 4, !tbaa !15
  %264 = getelementptr inbounds %"struct.Graphics::Color", ptr %33, i32 0, i32 1
  store float 0.000000e+00, ptr %264, align 4, !tbaa !17
  %265 = getelementptr inbounds %"struct.Graphics::Color", ptr %33, i32 0, i32 2
  store float 0.000000e+00, ptr %265, align 4, !tbaa !18
  call void @_ZN8Graphics10Rasterizer8DrawLineERK6Point4S3_RKNS_5ColorE(ptr noundef nonnull align 4 dereferenceable(16) %31, ptr noundef nonnull align 4 dereferenceable(16) %32, ptr noundef nonnull align 4 dereferenceable(12) %33) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #7
  call void @_ZN6Point4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %34, float noundef 6.400000e+02, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #7
  call void @_ZN6Point4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %35, float noundef 6.400000e+02, float noundef 7.200000e+02, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr %36) #7
  %266 = getelementptr inbounds %"struct.Graphics::Color", ptr %36, i32 0, i32 0
  store float 0.000000e+00, ptr %266, align 4, !tbaa !15
  %267 = getelementptr inbounds %"struct.Graphics::Color", ptr %36, i32 0, i32 1
  store float 0.000000e+00, ptr %267, align 4, !tbaa !17
  %268 = getelementptr inbounds %"struct.Graphics::Color", ptr %36, i32 0, i32 2
  store float 0.000000e+00, ptr %268, align 4, !tbaa !18
  call void @_ZN8Graphics10Rasterizer8DrawLineERK6Point4S3_RKNS_5ColorE(ptr noundef nonnull align 4 dereferenceable(16) %34, ptr noundef nonnull align 4 dereferenceable(16) %35, ptr noundef nonnull align 4 dereferenceable(12) %36) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #7
  %269 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %37) #7
  call void @_ZNK6Camera17ComputeViewMatrixEv(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %37, ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  call void @_ZN9GFXSystem15SetCameraMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %269, ptr noundef nonnull align 4 dereferenceable(64) %37) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %37) #7
  call void @_ZN6Camera21ComputeCameraFrustrumEv(ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  store ptr @_ZN5SceneL12sceneobjectsE, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #7
  %270 = call ptr @_ZNSt6vectorIP10GameObjectSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5SceneL12sceneobjectsE) #7
  %271 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %39, i32 0, i32 0
  store ptr %270, ptr %271, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #7
  %272 = call ptr @_ZNSt6vectorIP10GameObjectSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5SceneL12sceneobjectsE) #7
  %273 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %40, i32 0, i32 0
  store ptr %272, ptr %273, align 8
  br label %274

274:                                              ; preds = %298, %245
  %275 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP10GameObjectSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %40) #7
  br i1 %275, label %277, label %276

276:                                              ; preds = %274
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  br label %300

277:                                              ; preds = %274
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #7
  %278 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP10GameObjectSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #7
  store ptr %278, ptr %41, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #7
  %279 = load ptr, ptr %41, align 8, !tbaa !5
  %280 = load ptr, ptr %279, align 8, !tbaa !5
  %281 = icmp eq ptr %280, null
  br i1 %281, label %284, label %282

282:                                              ; preds = %277
  %283 = call ptr @__dynamic_cast(ptr %280, ptr @_ZTI10GameObject, ptr @_ZTI3Box, i64 0) #7
  br label %285

284:                                              ; preds = %277
  br label %285

285:                                              ; preds = %284, %282
  %286 = phi ptr [ %283, %282 ], [ null, %284 ]
  store ptr %286, ptr %42, align 8, !tbaa !5
  %287 = load ptr, ptr %42, align 8, !tbaa !5
  %288 = icmp ne ptr %287, null
  br i1 %288, label %289, label %297

289:                                              ; preds = %285
  %290 = load ptr, ptr %42, align 8, !tbaa !5
  %291 = load i8, ptr @_ZN5SceneL9wireframeE, align 1, !tbaa !9, !range !19, !noundef !20
  %292 = trunc i8 %291 to i1
  %293 = xor i1 %292, true
  call void @llvm.lifetime.start.p0(i64 64, ptr %43) #7
  call void @_ZN7Matrix4C1Effffffffffffffff(ptr noundef nonnull align 4 dereferenceable(64) %43, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %294 = load ptr, ptr %290, align 8, !tbaa !21
  %295 = getelementptr inbounds ptr, ptr %294, i64 0
  %296 = load ptr, ptr %295, align 8
  call void %296(ptr noundef nonnull align 8 dereferenceable(160) %290, i1 noundef zeroext %293, ptr noundef nonnull align 4 dereferenceable(64) %43) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %43) #7
  br label %297

297:                                              ; preds = %289, %285
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  br label %298

298:                                              ; preds = %297
  %299 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP10GameObjectSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #7
  br label %274

300:                                              ; preds = %276
  %301 = load ptr, ptr %1, align 8, !tbaa !5
  %302 = load i8, ptr @_ZN5SceneL9wireframeE, align 1, !tbaa !9, !range !19, !noundef !20
  %303 = trunc i8 %302 to i1
  %304 = xor i1 %303, true
  call void @llvm.lifetime.start.p0(i64 64, ptr %44) #7
  call void @_ZN7Matrix4C1Effffffffffffffff(ptr noundef nonnull align 4 dereferenceable(64) %44, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %305 = load ptr, ptr %301, align 8, !tbaa !21
  %306 = getelementptr inbounds ptr, ptr %305, i64 0
  %307 = load ptr, ptr %306, align 8
  call void %307(ptr noundef nonnull align 8 dereferenceable(160) %301, i1 noundef zeroext %304, ptr noundef nonnull align 4 dereferenceable(64) %44) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %44) #7
  %308 = load ptr, ptr %1, align 8, !tbaa !5
  %309 = getelementptr inbounds %class.GameObject, ptr %308, i32 0, i32 1
  %310 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) @_ZN5SceneL3CamE, ptr noundef nonnull align 4 dereferenceable(16) %309)
  %311 = load ptr, ptr %1, align 8, !tbaa !5
  %312 = getelementptr inbounds %class.GameObject, ptr %311, i32 0, i32 6
  %313 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (%class.Camera, ptr @_ZN5SceneL3CamE, i32 0, i32 2), ptr noundef nonnull align 4 dereferenceable(16) %312)
  %314 = load ptr, ptr %1, align 8, !tbaa !5
  %315 = getelementptr inbounds %class.GameObject, ptr %314, i32 0, i32 4
  %316 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (%class.Camera, ptr @_ZN5SceneL3CamE, i32 0, i32 3), ptr noundef nonnull align 4 dereferenceable(16) %315)
  %317 = load ptr, ptr %1, align 8, !tbaa !5
  %318 = getelementptr inbounds %class.GameObject, ptr %317, i32 0, i32 5
  %319 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (%class.Camera, ptr @_ZN5SceneL3CamE, i32 0, i32 1), ptr noundef nonnull align 4 dereferenceable(16) %318)
  %320 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %45) #7
  call void @_ZNK6Camera17ComputeViewMatrixEv(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %45, ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  call void @_ZN9GFXSystem15SetCameraMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %320, ptr noundef nonnull align 4 dereferenceable(64) %45) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %45) #7
  call void @_ZN6Camera21ComputeCameraFrustrumEv(ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  %321 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %46) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %47) #7
  call void @_ZN7Matrix48ViewportEffff(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %47, float noundef 6.400000e+02, float noundef 3.600000e+02, float noundef 2.000000e+00, float noundef 2.000000e+00)
  call void @llvm.lifetime.start.p0(i64 64, ptr %48) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #7
  call void @_ZN7Vector4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %49, float noundef 2.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @_ZN7Matrix49TranslateERK7Vector4(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %48, ptr noundef nonnull align 4 dereferenceable(16) %49)
  call void @_ZNK7Matrix4mlERKS_(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %46, ptr noundef nonnull align 4 dereferenceable(64) %47, ptr noundef nonnull align 4 dereferenceable(64) %48)
  call void @_ZN9GFXSystem17SetViewportMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %321, ptr noundef nonnull align 4 dereferenceable(64) %46) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %48) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %46) #7
  %322 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %50) #7
  call void @_ZNK6Camera17ComputeViewMatrixEv(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %50, ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  call void @_ZN9GFXSystem15SetCameraMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %322, ptr noundef nonnull align 4 dereferenceable(64) %50) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %50) #7
  call void @_ZN6Camera21ComputeCameraFrustrumEv(ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #7
  store ptr @_ZN5SceneL12sceneobjectsE, ptr %51, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #7
  %323 = call ptr @_ZNSt6vectorIP10GameObjectSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5SceneL12sceneobjectsE) #7
  %324 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %52, i32 0, i32 0
  store ptr %323, ptr %324, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #7
  %325 = call ptr @_ZNSt6vectorIP10GameObjectSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5SceneL12sceneobjectsE) #7
  %326 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %53, i32 0, i32 0
  store ptr %325, ptr %326, align 8
  br label %327

327:                                              ; preds = %351, %300
  %328 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP10GameObjectSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull align 8 dereferenceable(8) %53) #7
  br i1 %328, label %330, label %329

329:                                              ; preds = %327
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #7
  br label %353

330:                                              ; preds = %327
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #7
  %331 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP10GameObjectSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %52) #7
  store ptr %331, ptr %54, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #7
  %332 = load ptr, ptr %54, align 8, !tbaa !5
  %333 = load ptr, ptr %332, align 8, !tbaa !5
  %334 = icmp eq ptr %333, null
  br i1 %334, label %337, label %335

335:                                              ; preds = %330
  %336 = call ptr @__dynamic_cast(ptr %333, ptr @_ZTI10GameObject, ptr @_ZTI3Box, i64 0) #7
  br label %338

337:                                              ; preds = %330
  br label %338

338:                                              ; preds = %337, %335
  %339 = phi ptr [ %336, %335 ], [ null, %337 ]
  store ptr %339, ptr %55, align 8, !tbaa !5
  %340 = load ptr, ptr %55, align 8, !tbaa !5
  %341 = icmp ne ptr %340, null
  br i1 %341, label %342, label %350

342:                                              ; preds = %338
  %343 = load ptr, ptr %55, align 8, !tbaa !5
  %344 = load i8, ptr @_ZN5SceneL9wireframeE, align 1, !tbaa !9, !range !19, !noundef !20
  %345 = trunc i8 %344 to i1
  %346 = xor i1 %345, true
  call void @llvm.lifetime.start.p0(i64 64, ptr %56) #7
  call void @_ZN7Matrix4C1Effffffffffffffff(ptr noundef nonnull align 4 dereferenceable(64) %56, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %347 = load ptr, ptr %343, align 8, !tbaa !21
  %348 = getelementptr inbounds ptr, ptr %347, i64 0
  %349 = load ptr, ptr %348, align 8
  call void %349(ptr noundef nonnull align 8 dereferenceable(160) %343, i1 noundef zeroext %346, ptr noundef nonnull align 4 dereferenceable(64) %56) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %56) #7
  br label %350

350:                                              ; preds = %342, %338
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #7
  br label %351

351:                                              ; preds = %350
  %352 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP10GameObjectSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %52) #7
  br label %327

353:                                              ; preds = %329
  call void @llvm.lifetime.start.p0(i64 16, ptr %57) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %58) #7
  %354 = load ptr, ptr %1, align 8, !tbaa !5
  %355 = getelementptr inbounds %class.GameObject, ptr %354, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %59) #7
  %356 = load ptr, ptr %1, align 8, !tbaa !5
  %357 = getelementptr inbounds %class.GameObject, ptr %356, i32 0, i32 5
  %358 = load float, ptr @_ZN5SceneL13g_camdistanceE, align 4, !tbaa !13
  call void @_ZNK7Vector4mlEf(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %59, ptr noundef nonnull align 4 dereferenceable(16) %357, float noundef %358)
  call void @_ZNK7Vector4miERKS_(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %58, ptr noundef nonnull align 4 dereferenceable(16) %355, ptr noundef nonnull align 4 dereferenceable(16) %59)
  call void @llvm.lifetime.start.p0(i64 16, ptr %60) #7
  %359 = load ptr, ptr %1, align 8, !tbaa !5
  %360 = getelementptr inbounds %class.GameObject, ptr %359, i32 0, i32 4
  %361 = load float, ptr @_ZN5SceneL11g_camheightE, align 4, !tbaa !13
  call void @_ZNK7Vector4mlEf(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %60, ptr noundef nonnull align 4 dereferenceable(16) %360, float noundef %361)
  call void @_ZNK7Vector4plERKS_(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %57, ptr noundef nonnull align 4 dereferenceable(16) %58, ptr noundef nonnull align 4 dereferenceable(16) %60)
  %362 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) @_ZN5SceneL3CamE, ptr noundef nonnull align 4 dereferenceable(16) %57)
  call void @llvm.lifetime.end.p0(i64 16, ptr %60) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %59) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %58) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %57) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %61) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %62) #7
  %363 = load ptr, ptr %1, align 8, !tbaa !5
  %364 = getelementptr inbounds %class.GameObject, ptr %363, i32 0, i32 1
  call void @_ZNK7Vector4miERKS_(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %62, ptr noundef nonnull align 4 dereferenceable(16) %364, ptr noundef nonnull align 4 dereferenceable(16) @_ZN5SceneL3CamE)
  call void @llvm.lifetime.start.p0(i64 16, ptr %63) #7
  %365 = load ptr, ptr %1, align 8, !tbaa !5
  %366 = getelementptr inbounds %class.GameObject, ptr %365, i32 0, i32 1
  call void @_ZNK7Vector4miERKS_(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %63, ptr noundef nonnull align 4 dereferenceable(16) %366, ptr noundef nonnull align 4 dereferenceable(16) @_ZN5SceneL3CamE)
  %367 = call noundef float @_ZNK7Vector46LengthEv(ptr noundef nonnull align 4 dereferenceable(16) %63)
  call void @_ZNK7Vector4dvEf(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %61, ptr noundef nonnull align 4 dereferenceable(16) %62, float noundef %367)
  %368 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (%class.Camera, ptr @_ZN5SceneL3CamE, i32 0, i32 1), ptr noundef nonnull align 4 dereferenceable(16) %61)
  call void @llvm.lifetime.end.p0(i64 16, ptr %63) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %62) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %61) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %64) #7
  %369 = load ptr, ptr %1, align 8, !tbaa !5
  %370 = getelementptr inbounds %class.GameObject, ptr %369, i32 0, i32 4
  call void @_ZNK7Vector45CrossERKS_(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %64, ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (%class.Camera, ptr @_ZN5SceneL3CamE, i32 0, i32 1), ptr noundef nonnull align 4 dereferenceable(16) %370)
  %371 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (%class.Camera, ptr @_ZN5SceneL3CamE, i32 0, i32 2), ptr noundef nonnull align 4 dereferenceable(16) %64)
  call void @llvm.lifetime.end.p0(i64 16, ptr %64) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %65) #7
  call void @_ZNK7Vector45CrossERKS_(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %65, ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (%class.Camera, ptr @_ZN5SceneL3CamE, i32 0, i32 2), ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (%class.Camera, ptr @_ZN5SceneL3CamE, i32 0, i32 1))
  %372 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (%class.Camera, ptr @_ZN5SceneL3CamE, i32 0, i32 3), ptr noundef nonnull align 4 dereferenceable(16) %65)
  call void @llvm.lifetime.end.p0(i64 16, ptr %65) #7
  %373 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %66) #7
  call void @_ZNK6Camera17ComputeViewMatrixEv(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %66, ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  call void @_ZN9GFXSystem15SetCameraMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %373, ptr noundef nonnull align 4 dereferenceable(64) %66) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %66) #7
  call void @_ZN6Camera21ComputeCameraFrustrumEv(ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  %374 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %67) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %68) #7
  call void @_ZN7Matrix48ViewportEffff(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %68, float noundef 6.400000e+02, float noundef 3.600000e+02, float noundef 2.000000e+00, float noundef 2.000000e+00)
  call void @llvm.lifetime.start.p0(i64 64, ptr %69) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %70) #7
  call void @_ZN7Vector4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %70, float noundef 0.000000e+00, float noundef 2.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @_ZN7Matrix49TranslateERK7Vector4(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %69, ptr noundef nonnull align 4 dereferenceable(16) %70)
  call void @_ZNK7Matrix4mlERKS_(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %67, ptr noundef nonnull align 4 dereferenceable(64) %68, ptr noundef nonnull align 4 dereferenceable(64) %69)
  call void @_ZN9GFXSystem17SetViewportMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %374, ptr noundef nonnull align 4 dereferenceable(64) %67) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %70) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %69) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %68) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %67) #7
  %375 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %71) #7
  call void @_ZNK6Camera17ComputeViewMatrixEv(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %71, ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  call void @_ZN9GFXSystem15SetCameraMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %375, ptr noundef nonnull align 4 dereferenceable(64) %71) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %71) #7
  call void @_ZN6Camera21ComputeCameraFrustrumEv(ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #7
  store ptr @_ZN5SceneL12sceneobjectsE, ptr %72, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %73) #7
  %376 = call ptr @_ZNSt6vectorIP10GameObjectSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5SceneL12sceneobjectsE) #7
  %377 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %73, i32 0, i32 0
  store ptr %376, ptr %377, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %74) #7
  %378 = call ptr @_ZNSt6vectorIP10GameObjectSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5SceneL12sceneobjectsE) #7
  %379 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %74, i32 0, i32 0
  store ptr %378, ptr %379, align 8
  br label %380

380:                                              ; preds = %404, %353
  %381 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP10GameObjectSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef nonnull align 8 dereferenceable(8) %74) #7
  br i1 %381, label %383, label %382

382:                                              ; preds = %380
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #7
  br label %406

383:                                              ; preds = %380
  call void @llvm.lifetime.start.p0(i64 8, ptr %75) #7
  %384 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP10GameObjectSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %73) #7
  store ptr %384, ptr %75, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %76) #7
  %385 = load ptr, ptr %75, align 8, !tbaa !5
  %386 = load ptr, ptr %385, align 8, !tbaa !5
  %387 = icmp eq ptr %386, null
  br i1 %387, label %390, label %388

388:                                              ; preds = %383
  %389 = call ptr @__dynamic_cast(ptr %386, ptr @_ZTI10GameObject, ptr @_ZTI3Box, i64 0) #7
  br label %391

390:                                              ; preds = %383
  br label %391

391:                                              ; preds = %390, %388
  %392 = phi ptr [ %389, %388 ], [ null, %390 ]
  store ptr %392, ptr %76, align 8, !tbaa !5
  %393 = load ptr, ptr %76, align 8, !tbaa !5
  %394 = icmp ne ptr %393, null
  br i1 %394, label %395, label %403

395:                                              ; preds = %391
  %396 = load ptr, ptr %76, align 8, !tbaa !5
  %397 = load i8, ptr @_ZN5SceneL9wireframeE, align 1, !tbaa !9, !range !19, !noundef !20
  %398 = trunc i8 %397 to i1
  %399 = xor i1 %398, true
  call void @llvm.lifetime.start.p0(i64 64, ptr %77) #7
  call void @_ZN7Matrix4C1Effffffffffffffff(ptr noundef nonnull align 4 dereferenceable(64) %77, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %400 = load ptr, ptr %396, align 8, !tbaa !21
  %401 = getelementptr inbounds ptr, ptr %400, i64 0
  %402 = load ptr, ptr %401, align 8
  call void %402(ptr noundef nonnull align 8 dereferenceable(160) %396, i1 noundef zeroext %399, ptr noundef nonnull align 4 dereferenceable(64) %77) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %77) #7
  br label %403

403:                                              ; preds = %395, %391
  call void @llvm.lifetime.end.p0(i64 8, ptr %76) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %75) #7
  br label %404

404:                                              ; preds = %403
  %405 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP10GameObjectSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %73) #7
  br label %380

406:                                              ; preds = %382
  call void @llvm.lifetime.start.p0(i64 16, ptr %78) #7
  %407 = load ptr, ptr %1, align 8, !tbaa !5
  %408 = getelementptr inbounds %class.GameObject, ptr %407, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %79) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %80) #7
  %409 = load ptr, ptr %1, align 8, !tbaa !5
  %410 = getelementptr inbounds %class.GameObject, ptr %409, i32 0, i32 4
  %411 = load float, ptr @_ZN5SceneL11g_camheightE, align 4, !tbaa !13
  call void @_ZNK7Vector4mlEf(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %80, ptr noundef nonnull align 4 dereferenceable(16) %410, float noundef %411)
  call void @_ZNK7Vector4mlEf(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %79, ptr noundef nonnull align 4 dereferenceable(16) %80, float noundef 6.000000e+00)
  call void @_ZNK7Vector4plERKS_(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %78, ptr noundef nonnull align 4 dereferenceable(16) %408, ptr noundef nonnull align 4 dereferenceable(16) %79)
  %412 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) @_ZN5SceneL3CamE, ptr noundef nonnull align 4 dereferenceable(16) %78)
  call void @llvm.lifetime.end.p0(i64 16, ptr %80) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %79) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %78) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %81) #7
  %413 = load ptr, ptr %1, align 8, !tbaa !5
  %414 = getelementptr inbounds %class.GameObject, ptr %413, i32 0, i32 4
  call void @_ZNK7Vector4ngEv(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %81, ptr noundef nonnull align 4 dereferenceable(16) %414)
  %415 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (%class.Camera, ptr @_ZN5SceneL3CamE, i32 0, i32 1), ptr noundef nonnull align 4 dereferenceable(16) %81)
  call void @llvm.lifetime.end.p0(i64 16, ptr %81) #7
  %416 = load ptr, ptr %1, align 8, !tbaa !5
  %417 = getelementptr inbounds %class.GameObject, ptr %416, i32 0, i32 6
  %418 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (%class.Camera, ptr @_ZN5SceneL3CamE, i32 0, i32 2), ptr noundef nonnull align 4 dereferenceable(16) %417)
  %419 = load ptr, ptr %1, align 8, !tbaa !5
  %420 = getelementptr inbounds %class.GameObject, ptr %419, i32 0, i32 5
  %421 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (%class.Camera, ptr @_ZN5SceneL3CamE, i32 0, i32 3), ptr noundef nonnull align 4 dereferenceable(16) %420)
  %422 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %82) #7
  call void @_ZNK6Camera17ComputeViewMatrixEv(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %82, ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  call void @_ZN9GFXSystem15SetCameraMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %422, ptr noundef nonnull align 4 dereferenceable(64) %82) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %82) #7
  call void @_ZN6Camera21ComputeCameraFrustrumEv(ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  %423 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %83) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %84) #7
  call void @_ZN7Matrix48ViewportEffff(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %84, float noundef 6.400000e+02, float noundef 3.600000e+02, float noundef 2.000000e+00, float noundef 2.000000e+00)
  call void @llvm.lifetime.start.p0(i64 64, ptr %85) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %86) #7
  call void @_ZN7Vector4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %86, float noundef 2.000000e+00, float noundef 2.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @_ZN7Matrix49TranslateERK7Vector4(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %85, ptr noundef nonnull align 4 dereferenceable(16) %86)
  call void @_ZNK7Matrix4mlERKS_(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %83, ptr noundef nonnull align 4 dereferenceable(64) %84, ptr noundef nonnull align 4 dereferenceable(64) %85)
  call void @_ZN9GFXSystem17SetViewportMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %423, ptr noundef nonnull align 4 dereferenceable(64) %83) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %86) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %85) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %84) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %83) #7
  %424 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %87) #7
  call void @_ZNK6Camera17ComputeViewMatrixEv(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %87, ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  call void @_ZN9GFXSystem15SetCameraMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %424, ptr noundef nonnull align 4 dereferenceable(64) %87) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %87) #7
  call void @_ZN6Camera21ComputeCameraFrustrumEv(ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  call void @llvm.lifetime.start.p0(i64 8, ptr %88) #7
  store ptr @_ZN5SceneL12sceneobjectsE, ptr %88, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %89) #7
  %425 = call ptr @_ZNSt6vectorIP10GameObjectSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5SceneL12sceneobjectsE) #7
  %426 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %89, i32 0, i32 0
  store ptr %425, ptr %426, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %90) #7
  %427 = call ptr @_ZNSt6vectorIP10GameObjectSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5SceneL12sceneobjectsE) #7
  %428 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %90, i32 0, i32 0
  store ptr %427, ptr %428, align 8
  br label %429

429:                                              ; preds = %453, %406
  %430 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP10GameObjectSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %89, ptr noundef nonnull align 8 dereferenceable(8) %90) #7
  br i1 %430, label %432, label %431

431:                                              ; preds = %429
  call void @llvm.lifetime.end.p0(i64 8, ptr %90) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %89) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %88) #7
  br label %455

432:                                              ; preds = %429
  call void @llvm.lifetime.start.p0(i64 8, ptr %91) #7
  %433 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP10GameObjectSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %89) #7
  store ptr %433, ptr %91, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %92) #7
  %434 = load ptr, ptr %91, align 8, !tbaa !5
  %435 = load ptr, ptr %434, align 8, !tbaa !5
  %436 = icmp eq ptr %435, null
  br i1 %436, label %439, label %437

437:                                              ; preds = %432
  %438 = call ptr @__dynamic_cast(ptr %435, ptr @_ZTI10GameObject, ptr @_ZTI3Box, i64 0) #7
  br label %440

439:                                              ; preds = %432
  br label %440

440:                                              ; preds = %439, %437
  %441 = phi ptr [ %438, %437 ], [ null, %439 ]
  store ptr %441, ptr %92, align 8, !tbaa !5
  %442 = load ptr, ptr %92, align 8, !tbaa !5
  %443 = icmp ne ptr %442, null
  br i1 %443, label %444, label %452

444:                                              ; preds = %440
  %445 = load ptr, ptr %92, align 8, !tbaa !5
  %446 = load i8, ptr @_ZN5SceneL9wireframeE, align 1, !tbaa !9, !range !19, !noundef !20
  %447 = trunc i8 %446 to i1
  %448 = xor i1 %447, true
  call void @llvm.lifetime.start.p0(i64 64, ptr %93) #7
  call void @_ZN7Matrix4C1Effffffffffffffff(ptr noundef nonnull align 4 dereferenceable(64) %93, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %449 = load ptr, ptr %445, align 8, !tbaa !21
  %450 = getelementptr inbounds ptr, ptr %449, i64 0
  %451 = load ptr, ptr %450, align 8
  call void %451(ptr noundef nonnull align 8 dereferenceable(160) %445, i1 noundef zeroext %448, ptr noundef nonnull align 4 dereferenceable(64) %93) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %93) #7
  br label %452

452:                                              ; preds = %444, %440
  call void @llvm.lifetime.end.p0(i64 8, ptr %92) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %91) #7
  br label %453

453:                                              ; preds = %452
  %454 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP10GameObjectSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %89) #7
  br label %429

455:                                              ; preds = %431
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #7
  ret void
}

declare noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef) #4

declare void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind writable sret(%class.Matrix4) align 4, ptr noundef nonnull align 4 dereferenceable(16), float noundef) #4

declare void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind writable sret(%class.Vector4) align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(16)) #4

declare noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4pLERKS_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #4

declare void @_ZNK7Vector4plERKS_(ptr dead_on_unwind writable sret(%class.Vector4) align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #4

declare void @_ZNK7Vector4mlEf(ptr dead_on_unwind writable sret(%class.Vector4) align 4, ptr noundef nonnull align 4 dereferenceable(16), float noundef) #4

declare void @_ZNK7Vector4ngEv(ptr dead_on_unwind writable sret(%class.Vector4) align 4, ptr noundef nonnull align 4 dereferenceable(16)) #4

; Function Attrs: nounwind
declare void @_ZN9GFXSystem15SetCameraMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208), ptr noundef nonnull align 4 dereferenceable(64)) #5

declare void @_ZNK6Camera17ComputeViewMatrixEv(ptr dead_on_unwind writable sret(%class.Matrix4) align 4, ptr noundef nonnull align 4 dereferenceable(160)) #4

declare void @_ZN6Camera21ComputeCameraFrustrumEv(ptr noundef nonnull align 4 dereferenceable(160)) #4

; Function Attrs: nounwind
declare void @_ZN9GFXSystem17SetViewportMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208), ptr noundef nonnull align 4 dereferenceable(64)) #5

declare void @_ZN7Matrix48ViewportEffff(ptr dead_on_unwind writable sret(%class.Matrix4) align 4, float noundef, float noundef, float noundef, float noundef) #4

; Function Attrs: nounwind
declare void @_ZN8Graphics10Rasterizer8DrawLineERK6Point4S3_RKNS_5ColorE(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) #5

declare void @_ZN6Point4C1Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #4

; Function Attrs: nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) #6

declare void @_ZN7Matrix4C1Effffffffffffffff(ptr noundef nonnull align 4 dereferenceable(64), float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) unnamed_addr #4

declare void @_ZNK7Matrix4mlERKS_(ptr dead_on_unwind writable sret(%class.Matrix4) align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64)) #4

declare void @_ZN7Matrix49TranslateERK7Vector4(ptr dead_on_unwind writable sret(%class.Matrix4) align 4, ptr noundef nonnull align 4 dereferenceable(16)) #4

declare void @_ZNK7Vector4miERKS_(ptr dead_on_unwind writable sret(%class.Vector4) align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #4

declare void @_ZNK7Vector4dvEf(ptr dead_on_unwind writable sret(%class.Vector4) align 4, ptr noundef nonnull align 4 dereferenceable(16), float noundef) #4

declare noundef float @_ZNK7Vector46LengthEv(ptr noundef nonnull align 4 dereferenceable(16)) #4

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "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 willreturn memory(read) }
attributes #7 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN5Scene11Scene_stateE", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!16, !14, i64 0}
!16 = !{!"_ZTSN8Graphics5ColorE", !14, i64 0, !14, i64 4, !14, i64 8}
!17 = !{!16, !14, i64 4}
!18 = !{!16, !14, i64 8}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!22, !22, i64 0}
!22 = !{!"vtable pointer", !8, i64 0}


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

%class.Camera = type { %class.Vector4, %class.Vector4, %class.Vector4, %class.Vector4, %class.Vector4, %class.Vector4, %class.Vector4, %class.Vector4, %class.Vector4, %class.Vector4 }
%class.Vector4 = type { %union.anon }
%union.anon = type { [4 x float] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<GameObject *, std::allocator<GameObject *>>::_Vector_impl" }
%"struct.std::_Vector_base<GameObject *, std::allocator<GameObject *>>::_Vector_impl" = type { %"struct.std::_Vector_base<GameObject *, std::allocator<GameObject *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<GameObject *, std::allocator<GameObject *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Matrix4 = type { %union.anon.12 }
%union.anon.12 = type { [4 x [4 x float]] }
%class.Point4 = type { %union.anon.10 }
%union.anon.10 = type { [4 x float] }
%"struct.Graphics::Color" = type { float, float, float }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZN5SceneL3CamE = external hidden global %class.Camera, align 4
@_ZN5SceneL12sceneobjectsE = external hidden global %"class.std::vector", align 8
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZN5SceneL9wireframeE = external hidden local_unnamed_addr global i8, align 1
@_ZN5SceneL7g_stateE = external hidden local_unnamed_addr global i32, align 4
@_ZN5SceneL11g_camheightE = external hidden local_unnamed_addr global float, align 4
@_ZN5SceneL13g_camdistanceE = external hidden local_unnamed_addr global float, align 4
@_ZTI10GameObject = external dso_local constant { ptr, ptr }, align 8
@_ZTI3Box = external constant ptr
@_ZN5SceneL20g_copyframebuffer_shE = external hidden global { ptr }, align 8
@_ZN5SceneL14g_depthview_shE = external hidden global { ptr }, align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5Scene15GetObjectByNameEPKc(ptr noundef) local_unnamed_addr #0

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP10GameObjectSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

declare void @_ZN7Vector4C1Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #4

declare noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4

declare void @_ZNK7Vector45CrossERKS_(ptr dead_on_unwind writable sret(%class.Vector4) align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() local_unnamed_addr #5

; Function Attrs: nounwind
declare void @_ZN9GFXSystem14SetPostProcessEPN8Graphics11PostProcessE(ptr noundef nonnull align 8 dereferenceable(208), ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Scene6UpdateEv() local_unnamed_addr #0 {
  %1 = alloca %class.Vector4, align 4
  %2 = alloca %class.Matrix4, align 4
  %3 = alloca %class.Vector4, align 4
  %4 = alloca %class.Matrix4, align 4
  %5 = alloca %class.Vector4, align 4
  %6 = alloca %class.Matrix4, align 4
  %7 = alloca %class.Vector4, align 4
  %8 = alloca %class.Matrix4, align 4
  %9 = alloca %class.Vector4, align 4
  %10 = alloca %class.Matrix4, align 4
  %11 = alloca %class.Vector4, align 4
  %12 = alloca %class.Matrix4, align 4
  %13 = alloca %class.Vector4, align 4
  %14 = alloca %class.Matrix4, align 4
  %15 = alloca %class.Vector4, align 4
  %16 = alloca %class.Matrix4, align 4
  %17 = alloca %class.Vector4, align 4
  %18 = alloca %class.Matrix4, align 4
  %19 = alloca %class.Vector4, align 4
  %20 = alloca %class.Matrix4, align 4
  %21 = alloca %class.Vector4, align 4
  %22 = alloca %class.Matrix4, align 4
  %23 = alloca %class.Vector4, align 4
  %24 = alloca %class.Matrix4, align 4
  %25 = alloca %class.Vector4, align 4
  %26 = alloca %class.Vector4, align 4
  %27 = alloca %class.Vector4, align 4
  %28 = alloca %class.Matrix4, align 4
  %29 = alloca %class.Matrix4, align 4
  %30 = alloca %class.Point4, align 4
  %31 = alloca %class.Point4, align 4
  %32 = alloca %"struct.Graphics::Color", align 8
  %33 = alloca %class.Point4, align 4
  %34 = alloca %class.Point4, align 4
  %35 = alloca %"struct.Graphics::Color", align 8
  %36 = alloca %class.Matrix4, align 4
  %37 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %38 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %39 = alloca %class.Matrix4, align 4
  %40 = alloca %class.Matrix4, align 4
  %41 = alloca %class.Matrix4, align 4
  %42 = alloca %class.Matrix4, align 4
  %43 = alloca %class.Matrix4, align 4
  %44 = alloca %class.Matrix4, align 4
  %45 = alloca %class.Vector4, align 4
  %46 = alloca %class.Matrix4, align 4
  %47 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %48 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %49 = alloca %class.Matrix4, align 4
  %50 = alloca %class.Vector4, align 4
  %51 = alloca %class.Vector4, align 4
  %52 = alloca %class.Vector4, align 4
  %53 = alloca %class.Vector4, align 4
  %54 = alloca %class.Vector4, align 4
  %55 = alloca %class.Vector4, align 4
  %56 = alloca %class.Vector4, align 4
  %57 = alloca %class.Vector4, align 4
  %58 = alloca %class.Vector4, align 4
  %59 = alloca %class.Matrix4, align 4
  %60 = alloca %class.Matrix4, align 4
  %61 = alloca %class.Matrix4, align 4
  %62 = alloca %class.Matrix4, align 4
  %63 = alloca %class.Vector4, align 4
  %64 = alloca %class.Matrix4, align 4
  %65 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %66 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %67 = alloca %class.Matrix4, align 4
  %68 = alloca %class.Vector4, align 4
  %69 = alloca %class.Vector4, align 4
  %70 = alloca %class.Vector4, align 4
  %71 = alloca %class.Vector4, align 4
  %72 = alloca %class.Matrix4, align 4
  %73 = alloca %class.Matrix4, align 4
  %74 = alloca %class.Matrix4, align 4
  %75 = alloca %class.Matrix4, align 4
  %76 = alloca %class.Vector4, align 4
  %77 = alloca %class.Matrix4, align 4
  %78 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %79 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %80 = alloca %class.Matrix4, align 4
  %81 = tail call noundef ptr @_ZN5Scene15GetObjectByNameEPKc(ptr noundef nonnull @.str.2)
  %82 = tail call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 27)
  br i1 %82, label %83, label %85

83:                                               ; preds = %0
  store i8 1, ptr @_ZN5SceneL9wireframeE, align 1, !tbaa !5
  %84 = tail call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  tail call void @_ZN9GFXSystem14SetPostProcessEPN8Graphics11PostProcessE(ptr noundef nonnull align 8 dereferenceable(208) %84, ptr noundef nonnull @_ZN5SceneL20g_copyframebuffer_shE) #7
  br label %85

85:                                               ; preds = %83, %0
  %86 = tail call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 28)
  br i1 %86, label %87, label %89

87:                                               ; preds = %85
  store i8 0, ptr @_ZN5SceneL9wireframeE, align 1, !tbaa !5
  %88 = tail call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  tail call void @_ZN9GFXSystem14SetPostProcessEPN8Graphics11PostProcessE(ptr noundef nonnull align 8 dereferenceable(208) %88, ptr noundef nonnull @_ZN5SceneL20g_copyframebuffer_shE) #7
  br label %89

89:                                               ; preds = %87, %85
  %90 = tail call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 26)
  br i1 %90, label %91, label %93

91:                                               ; preds = %89
  store i8 0, ptr @_ZN5SceneL9wireframeE, align 1, !tbaa !5
  %92 = tail call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  tail call void @_ZN9GFXSystem14SetPostProcessEPN8Graphics11PostProcessE(ptr noundef nonnull align 8 dereferenceable(208) %92, ptr noundef nonnull @_ZN5SceneL14g_depthview_shE) #7
  br label %93

93:                                               ; preds = %91, %89
  %94 = tail call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 0)
  br i1 %94, label %95, label %101

95:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #7
  %96 = getelementptr inbounds i8, ptr %81, i64 72
  call void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %2, ptr noundef nonnull align 4 dereferenceable(16) %96, float noundef 0xBFB99999A0000000)
  %97 = getelementptr inbounds i8, ptr %81, i64 56
  call void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %1, ptr noundef nonnull align 4 dereferenceable(64) %2, ptr noundef nonnull align 4 dereferenceable(16) %97)
  %98 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %97, ptr noundef nonnull align 4 dereferenceable(16) %1)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #7
  call void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %4, ptr noundef nonnull align 4 dereferenceable(16) %96, float noundef 0xBFB99999A0000000)
  %99 = getelementptr inbounds i8, ptr %81, i64 88
  call void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %3, ptr noundef nonnull align 4 dereferenceable(64) %4, ptr noundef nonnull align 4 dereferenceable(16) %99)
  %100 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %99, ptr noundef nonnull align 4 dereferenceable(16) %3)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  br label %101

101:                                              ; preds = %95, %93
  %102 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 3)
  br i1 %102, label %103, label %109

103:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #7
  %104 = getelementptr inbounds i8, ptr %81, i64 72
  call void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %6, ptr noundef nonnull align 4 dereferenceable(16) %104, float noundef 0x3FB99999A0000000)
  %105 = getelementptr inbounds i8, ptr %81, i64 56
  call void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %5, ptr noundef nonnull align 4 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(16) %105)
  %106 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %105, ptr noundef nonnull align 4 dereferenceable(16) %5)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #7
  call void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %8, ptr noundef nonnull align 4 dereferenceable(16) %104, float noundef 0x3FB99999A0000000)
  %107 = getelementptr inbounds i8, ptr %81, i64 88
  call void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %7, ptr noundef nonnull align 4 dereferenceable(64) %8, ptr noundef nonnull align 4 dereferenceable(16) %107)
  %108 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %107, ptr noundef nonnull align 4 dereferenceable(16) %7)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  br label %109

109:                                              ; preds = %103, %101
  %110 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 16)
  br i1 %110, label %111, label %117

111:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #7
  %112 = getelementptr inbounds i8, ptr %81, i64 56
  call void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %10, ptr noundef nonnull align 4 dereferenceable(16) %112, float noundef 0xBFB99999A0000000)
  %113 = getelementptr inbounds i8, ptr %81, i64 72
  call void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %9, ptr noundef nonnull align 4 dereferenceable(64) %10, ptr noundef nonnull align 4 dereferenceable(16) %113)
  %114 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %113, ptr noundef nonnull align 4 dereferenceable(16) %9)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #7
  call void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %12, ptr noundef nonnull align 4 dereferenceable(16) %112, float noundef 0xBFB99999A0000000)
  %115 = getelementptr inbounds i8, ptr %81, i64 88
  call void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %11, ptr noundef nonnull align 4 dereferenceable(64) %12, ptr noundef nonnull align 4 dereferenceable(16) %115)
  %116 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %115, ptr noundef nonnull align 4 dereferenceable(16) %11)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  br label %117

117:                                              ; preds = %111, %109
  %118 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 4)
  br i1 %118, label %119, label %125

119:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #7
  %120 = getelementptr inbounds i8, ptr %81, i64 56
  call void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %14, ptr noundef nonnull align 4 dereferenceable(16) %120, float noundef 0x3FB99999A0000000)
  %121 = getelementptr inbounds i8, ptr %81, i64 72
  call void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %13, ptr noundef nonnull align 4 dereferenceable(64) %14, ptr noundef nonnull align 4 dereferenceable(16) %121)
  %122 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %121, ptr noundef nonnull align 4 dereferenceable(16) %13)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #7
  call void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %16, ptr noundef nonnull align 4 dereferenceable(16) %120, float noundef 0x3FB99999A0000000)
  %123 = getelementptr inbounds i8, ptr %81, i64 88
  call void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %15, ptr noundef nonnull align 4 dereferenceable(64) %16, ptr noundef nonnull align 4 dereferenceable(16) %123)
  %124 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %123, ptr noundef nonnull align 4 dereferenceable(16) %15)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  br label %125

125:                                              ; preds = %119, %117
  %126 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 22)
  br i1 %126, label %127, label %133

127:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %18) #7
  %128 = getelementptr inbounds i8, ptr %81, i64 88
  call void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %18, ptr noundef nonnull align 4 dereferenceable(16) %128, float noundef 0xBFB99999A0000000)
  %129 = getelementptr inbounds i8, ptr %81, i64 72
  call void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %17, ptr noundef nonnull align 4 dereferenceable(64) %18, ptr noundef nonnull align 4 dereferenceable(16) %129)
  %130 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %129, ptr noundef nonnull align 4 dereferenceable(16) %17)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %20) #7
  call void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %20, ptr noundef nonnull align 4 dereferenceable(16) %128, float noundef 0xBFB99999A0000000)
  %131 = getelementptr inbounds i8, ptr %81, i64 56
  call void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %19, ptr noundef nonnull align 4 dereferenceable(64) %20, ptr noundef nonnull align 4 dereferenceable(16) %131)
  %132 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %131, ptr noundef nonnull align 4 dereferenceable(16) %19)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #7
  br label %133

133:                                              ; preds = %127, %125
  %134 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 18)
  br i1 %134, label %135, label %141

135:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %22) #7
  %136 = getelementptr inbounds i8, ptr %81, i64 88
  call void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %22, ptr noundef nonnull align 4 dereferenceable(16) %136, float noundef 0x3FB99999A0000000)
  %137 = getelementptr inbounds i8, ptr %81, i64 72
  call void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %21, ptr noundef nonnull align 4 dereferenceable(64) %22, ptr noundef nonnull align 4 dereferenceable(16) %137)
  %138 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %137, ptr noundef nonnull align 4 dereferenceable(16) %21)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %24) #7
  call void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %24, ptr noundef nonnull align 4 dereferenceable(16) %136, float noundef 0x3FB99999A0000000)
  %139 = getelementptr inbounds i8, ptr %81, i64 56
  call void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %23, ptr noundef nonnull align 4 dereferenceable(64) %24, ptr noundef nonnull align 4 dereferenceable(16) %139)
  %140 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %139, ptr noundef nonnull align 4 dereferenceable(16) %23)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #7
  br label %141

141:                                              ; preds = %135, %133
  %142 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 57)
  br i1 %142, label %143, label %147

143:                                              ; preds = %141
  %144 = getelementptr inbounds i8, ptr %81, i64 72
  %145 = getelementptr inbounds i8, ptr %81, i64 8
  %146 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4pLERKS_(ptr noundef nonnull align 4 dereferenceable(16) %145, ptr noundef nonnull align 4 dereferenceable(16) %144)
  br label %147

147:                                              ; preds = %143, %141
  %148 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 29)
  br i1 %148, label %149, label %150

149:                                              ; preds = %147
  store i32 2, ptr @_ZN5SceneL7g_stateE, align 4, !tbaa !9
  br label %150

150:                                              ; preds = %149, %147
  %151 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 30)
  br i1 %151, label %152, label %153

152:                                              ; preds = %150
  store i32 1, ptr @_ZN5SceneL7g_stateE, align 4, !tbaa !9
  br label %153

153:                                              ; preds = %152, %150
  %154 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 31)
  br i1 %154, label %155, label %156

155:                                              ; preds = %153
  store i32 0, ptr @_ZN5SceneL7g_stateE, align 4, !tbaa !9
  br label %156

156:                                              ; preds = %155, %153
  %157 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 7)
  br i1 %157, label %158, label %161

158:                                              ; preds = %156
  %159 = load float, ptr @_ZN5SceneL11g_camheightE, align 4, !tbaa !11
  %160 = fadd float %159, 1.000000e+00
  store float %160, ptr @_ZN5SceneL11g_camheightE, align 4, !tbaa !11
  br label %161

161:                                              ; preds = %158, %156
  %162 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 24)
  br i1 %162, label %163, label %166

163:                                              ; preds = %161
  %164 = load float, ptr @_ZN5SceneL11g_camheightE, align 4, !tbaa !11
  %165 = fadd float %164, -1.000000e+00
  store float %165, ptr @_ZN5SceneL11g_camheightE, align 4, !tbaa !11
  br label %166

166:                                              ; preds = %163, %161
  %167 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 25)
  br i1 %167, label %168, label %171

168:                                              ; preds = %166
  %169 = load float, ptr @_ZN5SceneL13g_camdistanceE, align 4, !tbaa !11
  %170 = fadd float %169, -1.000000e+00
  store float %170, ptr @_ZN5SceneL13g_camdistanceE, align 4, !tbaa !11
  br label %171

171:                                              ; preds = %168, %166
  %172 = call noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef 23)
  %.pre = load float, ptr @_ZN5SceneL13g_camdistanceE, align 4, !tbaa !11
  br i1 %172, label %173, label %175

173:                                              ; preds = %171
  %174 = fadd float %.pre, 1.000000e+00
  store float %174, ptr @_ZN5SceneL13g_camdistanceE, align 4, !tbaa !11
  br label %175

175:                                              ; preds = %173, %171
  %176 = phi float [ %174, %173 ], [ %.pre, %171 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #7
  %177 = getelementptr inbounds i8, ptr %81, i64 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %26) #7
  %178 = getelementptr inbounds i8, ptr %81, i64 88
  call void @_ZNK7Vector4mlEf(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %26, ptr noundef nonnull align 4 dereferenceable(16) %178, float noundef %176)
  call void @_ZNK7Vector4plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %25, ptr noundef nonnull align 4 dereferenceable(16) %177, ptr noundef nonnull align 4 dereferenceable(16) %26)
  %179 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) @_ZN5SceneL3CamE, ptr noundef nonnull align 4 dereferenceable(16) %25)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #7
  call void @_ZNK7Vector4ngEv(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %27, ptr noundef nonnull align 4 dereferenceable(16) %178)
  %180 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (i8, ptr @_ZN5SceneL3CamE, i64 16), ptr noundef nonnull align 4 dereferenceable(16) %27)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #7
  %181 = getelementptr inbounds i8, ptr %81, i64 72
  %182 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (i8, ptr @_ZN5SceneL3CamE, i64 32), ptr noundef nonnull align 4 dereferenceable(16) %181)
  %183 = getelementptr inbounds i8, ptr %81, i64 56
  %184 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (i8, ptr @_ZN5SceneL3CamE, i64 48), ptr noundef nonnull align 4 dereferenceable(16) %183)
  %185 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %28) #7
  call void @_ZNK6Camera17ComputeViewMatrixEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %28, ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  call void @_ZN9GFXSystem15SetCameraMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %185, ptr noundef nonnull align 4 dereferenceable(64) %28) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %28) #7
  call void @_ZN6Camera21ComputeCameraFrustrumEv(ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  %186 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %29) #7
  call void @_ZN7Matrix48ViewportEffff(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %29, float noundef 6.400000e+02, float noundef 3.600000e+02, float noundef 2.000000e+00, float noundef 2.000000e+00)
  call void @_ZN9GFXSystem17SetViewportMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %186, ptr noundef nonnull align 4 dereferenceable(64) %29) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %29) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %30) #7
  call void @_ZN6Point4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %30, float noundef 0.000000e+00, float noundef 3.600000e+02, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %31) #7
  call void @_ZN6Point4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %31, float noundef 1.280000e+03, float noundef 3.600000e+02, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %32) #7
  store <2 x float> zeroinitializer, ptr %32, align 8, !tbaa !11
  %187 = getelementptr inbounds i8, ptr %32, i64 8
  store float 0.000000e+00, ptr %187, align 8, !tbaa !13
  call void @_ZN8Graphics10Rasterizer8DrawLineERK6Point4S3_RKNS_5ColorE(ptr noundef nonnull align 4 dereferenceable(16) %30, ptr noundef nonnull align 4 dereferenceable(16) %31, ptr noundef nonnull align 4 dereferenceable(12) %32) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %32) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %30) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %33) #7
  call void @_ZN6Point4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %33, float noundef 6.400000e+02, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %34) #7
  call void @_ZN6Point4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %34, float noundef 6.400000e+02, float noundef 7.200000e+02, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %35) #7
  store <2 x float> zeroinitializer, ptr %35, align 8, !tbaa !11
  %188 = getelementptr inbounds i8, ptr %35, i64 8
  store float 0.000000e+00, ptr %188, align 8, !tbaa !13
  call void @_ZN8Graphics10Rasterizer8DrawLineERK6Point4S3_RKNS_5ColorE(ptr noundef nonnull align 4 dereferenceable(16) %33, ptr noundef nonnull align 4 dereferenceable(16) %34, ptr noundef nonnull align 4 dereferenceable(12) %35) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %35) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %34) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #7
  %189 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %36) #7
  call void @_ZNK6Camera17ComputeViewMatrixEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %36, ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  call void @_ZN9GFXSystem15SetCameraMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %189, ptr noundef nonnull align 4 dereferenceable(64) %36) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %36) #7
  call void @_ZN6Camera21ComputeCameraFrustrumEv(ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %37) #7
  %190 = call ptr @_ZNSt6vectorIP10GameObjectSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5SceneL12sceneobjectsE) #7
  store ptr %190, ptr %37, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %38) #7
  %191 = call ptr @_ZNSt6vectorIP10GameObjectSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5SceneL12sceneobjectsE) #7
  store ptr %191, ptr %38, align 8
  %192 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP10GameObjectSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(8) %38) #7
  br i1 %192, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.thread, %175
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %37) #7
  %193 = load i8, ptr @_ZN5SceneL9wireframeE, align 1, !tbaa !5, !range !15, !noundef !16
  %194 = trunc nuw i8 %193 to i1
  %195 = xor i1 %194, true
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %40) #7
  call void @_ZN7Matrix4C1Effffffffffffffff(ptr noundef nonnull align 4 dereferenceable(64) %40, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %196 = load ptr, ptr %81, align 8, !tbaa !17
  %197 = load ptr, ptr %196, align 8
  call void %197(ptr noundef nonnull align 8 dereferenceable(160) %81, i1 noundef zeroext %195, ptr noundef nonnull align 4 dereferenceable(64) %40) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %40) #7
  %198 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) @_ZN5SceneL3CamE, ptr noundef nonnull align 4 dereferenceable(16) %177)
  %199 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (i8, ptr @_ZN5SceneL3CamE, i64 32), ptr noundef nonnull align 4 dereferenceable(16) %178)
  %200 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (i8, ptr @_ZN5SceneL3CamE, i64 48), ptr noundef nonnull align 4 dereferenceable(16) %183)
  %201 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (i8, ptr @_ZN5SceneL3CamE, i64 16), ptr noundef nonnull align 4 dereferenceable(16) %181)
  %202 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %41) #7
  call void @_ZNK6Camera17ComputeViewMatrixEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %41, ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  call void @_ZN9GFXSystem15SetCameraMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %202, ptr noundef nonnull align 4 dereferenceable(64) %41) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %41) #7
  call void @_ZN6Camera21ComputeCameraFrustrumEv(ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  %203 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %42) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %43) #7
  call void @_ZN7Matrix48ViewportEffff(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %43, float noundef 6.400000e+02, float noundef 3.600000e+02, float noundef 2.000000e+00, float noundef 2.000000e+00)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %44) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %45) #7
  call void @_ZN7Vector4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %45, float noundef 2.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @_ZN7Matrix49TranslateERK7Vector4(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %44, ptr noundef nonnull align 4 dereferenceable(16) %45)
  call void @_ZNK7Matrix4mlERKS_(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %42, ptr noundef nonnull align 4 dereferenceable(64) %43, ptr noundef nonnull align 4 dereferenceable(64) %44)
  call void @_ZN9GFXSystem17SetViewportMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %203, ptr noundef nonnull align 4 dereferenceable(64) %42) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %45) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %44) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %43) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %42) #7
  %204 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %46) #7
  call void @_ZNK6Camera17ComputeViewMatrixEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %46, ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  call void @_ZN9GFXSystem15SetCameraMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %204, ptr noundef nonnull align 4 dereferenceable(64) %46) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %46) #7
  call void @_ZN6Camera21ComputeCameraFrustrumEv(ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %47) #7
  %205 = call ptr @_ZNSt6vectorIP10GameObjectSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5SceneL12sceneobjectsE) #7
  store ptr %205, ptr %47, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %48) #7
  %206 = call ptr @_ZNSt6vectorIP10GameObjectSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5SceneL12sceneobjectsE) #7
  store ptr %206, ptr %48, align 8
  %207 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP10GameObjectSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull align 8 dereferenceable(8) %48) #7
  br i1 %207, label %.lr.ph89, label %._crit_edge90

.lr.ph:                                           ; preds = %175, %.thread
  %208 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP10GameObjectSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %37) #7
  %209 = load ptr, ptr %208, align 8, !tbaa !19
  %210 = icmp eq ptr %209, null
  br i1 %210, label %.thread, label %211

211:                                              ; preds = %.lr.ph
  %212 = call ptr @__dynamic_cast(ptr nonnull %209, ptr nonnull @_ZTI10GameObject, ptr nonnull @_ZTI3Box, i64 0) #7
  %.not80 = icmp eq ptr %212, null
  br i1 %.not80, label %.thread, label %213

213:                                              ; preds = %211
  %214 = load i8, ptr @_ZN5SceneL9wireframeE, align 1, !tbaa !5, !range !15, !noundef !16
  %215 = trunc nuw i8 %214 to i1
  %216 = xor i1 %215, true
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %39) #7
  call void @_ZN7Matrix4C1Effffffffffffffff(ptr noundef nonnull align 4 dereferenceable(64) %39, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %217 = load ptr, ptr %212, align 8, !tbaa !17
  %218 = load ptr, ptr %217, align 8
  call void %218(ptr noundef nonnull align 8 dereferenceable(160) %212, i1 noundef zeroext %216, ptr noundef nonnull align 4 dereferenceable(64) %39) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %39) #7
  br label %.thread

.thread:                                          ; preds = %.lr.ph, %213, %211
  %219 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP10GameObjectSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %37) #7
  %220 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP10GameObjectSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(8) %38) #7
  br i1 %220, label %.lr.ph, label %._crit_edge

._crit_edge90:                                    ; preds = %.thread82, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %48) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %47) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %50) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %51) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %52) #7
  %221 = load float, ptr @_ZN5SceneL13g_camdistanceE, align 4, !tbaa !11
  call void @_ZNK7Vector4mlEf(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %52, ptr noundef nonnull align 4 dereferenceable(16) %181, float noundef %221)
  call void @_ZNK7Vector4miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %51, ptr noundef nonnull align 4 dereferenceable(16) %177, ptr noundef nonnull align 4 dereferenceable(16) %52)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %53) #7
  %222 = load float, ptr @_ZN5SceneL11g_camheightE, align 4, !tbaa !11
  call void @_ZNK7Vector4mlEf(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %53, ptr noundef nonnull align 4 dereferenceable(16) %183, float noundef %222)
  call void @_ZNK7Vector4plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %50, ptr noundef nonnull align 4 dereferenceable(16) %51, ptr noundef nonnull align 4 dereferenceable(16) %53)
  %223 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) @_ZN5SceneL3CamE, ptr noundef nonnull align 4 dereferenceable(16) %50)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %53) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %52) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %51) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %50) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %54) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %55) #7
  call void @_ZNK7Vector4miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %55, ptr noundef nonnull align 4 dereferenceable(16) %177, ptr noundef nonnull align 4 dereferenceable(16) @_ZN5SceneL3CamE)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %56) #7
  call void @_ZNK7Vector4miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %56, ptr noundef nonnull align 4 dereferenceable(16) %177, ptr noundef nonnull align 4 dereferenceable(16) @_ZN5SceneL3CamE)
  %224 = call noundef float @_ZNK7Vector46LengthEv(ptr noundef nonnull align 4 dereferenceable(16) %56)
  call void @_ZNK7Vector4dvEf(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %54, ptr noundef nonnull align 4 dereferenceable(16) %55, float noundef %224)
  %225 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (i8, ptr @_ZN5SceneL3CamE, i64 16), ptr noundef nonnull align 4 dereferenceable(16) %54)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %56) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %55) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %54) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %57) #7
  call void @_ZNK7Vector45CrossERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %57, ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (i8, ptr @_ZN5SceneL3CamE, i64 16), ptr noundef nonnull align 4 dereferenceable(16) %183)
  %226 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (i8, ptr @_ZN5SceneL3CamE, i64 32), ptr noundef nonnull align 4 dereferenceable(16) %57)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %57) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %58) #7
  call void @_ZNK7Vector45CrossERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %58, ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (i8, ptr @_ZN5SceneL3CamE, i64 32), ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (i8, ptr @_ZN5SceneL3CamE, i64 16))
  %227 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (i8, ptr @_ZN5SceneL3CamE, i64 48), ptr noundef nonnull align 4 dereferenceable(16) %58)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %58) #7
  %228 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %59) #7
  call void @_ZNK6Camera17ComputeViewMatrixEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %59, ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  call void @_ZN9GFXSystem15SetCameraMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %228, ptr noundef nonnull align 4 dereferenceable(64) %59) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %59) #7
  call void @_ZN6Camera21ComputeCameraFrustrumEv(ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  %229 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %60) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %61) #7
  call void @_ZN7Matrix48ViewportEffff(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %61, float noundef 6.400000e+02, float noundef 3.600000e+02, float noundef 2.000000e+00, float noundef 2.000000e+00)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %62) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %63) #7
  call void @_ZN7Vector4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %63, float noundef 0.000000e+00, float noundef 2.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @_ZN7Matrix49TranslateERK7Vector4(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %62, ptr noundef nonnull align 4 dereferenceable(16) %63)
  call void @_ZNK7Matrix4mlERKS_(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %60, ptr noundef nonnull align 4 dereferenceable(64) %61, ptr noundef nonnull align 4 dereferenceable(64) %62)
  call void @_ZN9GFXSystem17SetViewportMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %229, ptr noundef nonnull align 4 dereferenceable(64) %60) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %63) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %62) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %61) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %60) #7
  %230 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %64) #7
  call void @_ZNK6Camera17ComputeViewMatrixEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %64, ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  call void @_ZN9GFXSystem15SetCameraMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %230, ptr noundef nonnull align 4 dereferenceable(64) %64) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %64) #7
  call void @_ZN6Camera21ComputeCameraFrustrumEv(ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %65) #7
  %231 = call ptr @_ZNSt6vectorIP10GameObjectSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5SceneL12sceneobjectsE) #7
  store ptr %231, ptr %65, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %66) #7
  %232 = call ptr @_ZNSt6vectorIP10GameObjectSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5SceneL12sceneobjectsE) #7
  store ptr %232, ptr %66, align 8
  %233 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP10GameObjectSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef nonnull align 8 dereferenceable(8) %66) #7
  br i1 %233, label %.lr.ph92, label %._crit_edge93

.lr.ph89:                                         ; preds = %._crit_edge, %.thread82
  %234 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP10GameObjectSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %47) #7
  %235 = load ptr, ptr %234, align 8, !tbaa !19
  %236 = icmp eq ptr %235, null
  br i1 %236, label %.thread82, label %237

237:                                              ; preds = %.lr.ph89
  %238 = call ptr @__dynamic_cast(ptr nonnull %235, ptr nonnull @_ZTI10GameObject, ptr nonnull @_ZTI3Box, i64 0) #7
  %.not79 = icmp eq ptr %238, null
  br i1 %.not79, label %.thread82, label %239

239:                                              ; preds = %237
  %240 = load i8, ptr @_ZN5SceneL9wireframeE, align 1, !tbaa !5, !range !15, !noundef !16
  %241 = trunc nuw i8 %240 to i1
  %242 = xor i1 %241, true
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %49) #7
  call void @_ZN7Matrix4C1Effffffffffffffff(ptr noundef nonnull align 4 dereferenceable(64) %49, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %243 = load ptr, ptr %238, align 8, !tbaa !17
  %244 = load ptr, ptr %243, align 8
  call void %244(ptr noundef nonnull align 8 dereferenceable(160) %238, i1 noundef zeroext %242, ptr noundef nonnull align 4 dereferenceable(64) %49) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %49) #7
  br label %.thread82

.thread82:                                        ; preds = %.lr.ph89, %239, %237
  %245 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP10GameObjectSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %47) #7
  %246 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP10GameObjectSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull align 8 dereferenceable(8) %48) #7
  br i1 %246, label %.lr.ph89, label %._crit_edge90

._crit_edge93:                                    ; preds = %.thread84, %._crit_edge90
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %66) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %65) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %68) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %69) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %70) #7
  %247 = load float, ptr @_ZN5SceneL11g_camheightE, align 4, !tbaa !11
  call void @_ZNK7Vector4mlEf(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %70, ptr noundef nonnull align 4 dereferenceable(16) %183, float noundef %247)
  call void @_ZNK7Vector4mlEf(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %69, ptr noundef nonnull align 4 dereferenceable(16) %70, float noundef 6.000000e+00)
  call void @_ZNK7Vector4plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %68, ptr noundef nonnull align 4 dereferenceable(16) %177, ptr noundef nonnull align 4 dereferenceable(16) %69)
  %248 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) @_ZN5SceneL3CamE, ptr noundef nonnull align 4 dereferenceable(16) %68)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %70) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %69) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %68) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %71) #7
  call void @_ZNK7Vector4ngEv(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %71, ptr noundef nonnull align 4 dereferenceable(16) %183)
  %249 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (i8, ptr @_ZN5SceneL3CamE, i64 16), ptr noundef nonnull align 4 dereferenceable(16) %71)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %71) #7
  %250 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (i8, ptr @_ZN5SceneL3CamE, i64 32), ptr noundef nonnull align 4 dereferenceable(16) %178)
  %251 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) getelementptr inbounds (i8, ptr @_ZN5SceneL3CamE, i64 48), ptr noundef nonnull align 4 dereferenceable(16) %181)
  %252 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %72) #7
  call void @_ZNK6Camera17ComputeViewMatrixEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %72, ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  call void @_ZN9GFXSystem15SetCameraMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %252, ptr noundef nonnull align 4 dereferenceable(64) %72) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %72) #7
  call void @_ZN6Camera21ComputeCameraFrustrumEv(ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  %253 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %73) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %74) #7
  call void @_ZN7Matrix48ViewportEffff(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %74, float noundef 6.400000e+02, float noundef 3.600000e+02, float noundef 2.000000e+00, float noundef 2.000000e+00)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %75) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %76) #7
  call void @_ZN7Vector4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %76, float noundef 2.000000e+00, float noundef 2.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @_ZN7Matrix49TranslateERK7Vector4(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %75, ptr noundef nonnull align 4 dereferenceable(16) %76)
  call void @_ZNK7Matrix4mlERKS_(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %73, ptr noundef nonnull align 4 dereferenceable(64) %74, ptr noundef nonnull align 4 dereferenceable(64) %75)
  call void @_ZN9GFXSystem17SetViewportMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %253, ptr noundef nonnull align 4 dereferenceable(64) %73) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %76) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %75) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %74) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %73) #7
  %254 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %77) #7
  call void @_ZNK6Camera17ComputeViewMatrixEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %77, ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  call void @_ZN9GFXSystem15SetCameraMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %254, ptr noundef nonnull align 4 dereferenceable(64) %77) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %77) #7
  call void @_ZN6Camera21ComputeCameraFrustrumEv(ptr noundef nonnull align 4 dereferenceable(160) @_ZN5SceneL3CamE)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %78) #7
  %255 = call ptr @_ZNSt6vectorIP10GameObjectSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5SceneL12sceneobjectsE) #7
  store ptr %255, ptr %78, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %79) #7
  %256 = call ptr @_ZNSt6vectorIP10GameObjectSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5SceneL12sceneobjectsE) #7
  store ptr %256, ptr %79, align 8
  %257 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP10GameObjectSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef nonnull align 8 dereferenceable(8) %79) #7
  br i1 %257, label %.lr.ph95, label %._crit_edge96

.lr.ph92:                                         ; preds = %._crit_edge90, %.thread84
  %258 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP10GameObjectSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %65) #7
  %259 = load ptr, ptr %258, align 8, !tbaa !19
  %260 = icmp eq ptr %259, null
  br i1 %260, label %.thread84, label %261

261:                                              ; preds = %.lr.ph92
  %262 = call ptr @__dynamic_cast(ptr nonnull %259, ptr nonnull @_ZTI10GameObject, ptr nonnull @_ZTI3Box, i64 0) #7
  %.not78 = icmp eq ptr %262, null
  br i1 %.not78, label %.thread84, label %263

263:                                              ; preds = %261
  %264 = load i8, ptr @_ZN5SceneL9wireframeE, align 1, !tbaa !5, !range !15, !noundef !16
  %265 = trunc nuw i8 %264 to i1
  %266 = xor i1 %265, true
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %67) #7
  call void @_ZN7Matrix4C1Effffffffffffffff(ptr noundef nonnull align 4 dereferenceable(64) %67, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %267 = load ptr, ptr %262, align 8, !tbaa !17
  %268 = load ptr, ptr %267, align 8
  call void %268(ptr noundef nonnull align 8 dereferenceable(160) %262, i1 noundef zeroext %266, ptr noundef nonnull align 4 dereferenceable(64) %67) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %67) #7
  br label %.thread84

.thread84:                                        ; preds = %.lr.ph92, %263, %261
  %269 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP10GameObjectSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %65) #7
  %270 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP10GameObjectSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef nonnull align 8 dereferenceable(8) %66) #7
  br i1 %270, label %.lr.ph92, label %._crit_edge93

._crit_edge96:                                    ; preds = %.thread86, %._crit_edge93
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %79) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %78) #7
  ret void

.lr.ph95:                                         ; preds = %._crit_edge93, %.thread86
  %271 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP10GameObjectSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %78) #7
  %272 = load ptr, ptr %271, align 8, !tbaa !19
  %273 = icmp eq ptr %272, null
  br i1 %273, label %.thread86, label %274

274:                                              ; preds = %.lr.ph95
  %275 = call ptr @__dynamic_cast(ptr nonnull %272, ptr nonnull @_ZTI10GameObject, ptr nonnull @_ZTI3Box, i64 0) #7
  %.not = icmp eq ptr %275, null
  br i1 %.not, label %.thread86, label %276

276:                                              ; preds = %274
  %277 = load i8, ptr @_ZN5SceneL9wireframeE, align 1, !tbaa !5, !range !15, !noundef !16
  %278 = trunc nuw i8 %277 to i1
  %279 = xor i1 %278, true
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %80) #7
  call void @_ZN7Matrix4C1Effffffffffffffff(ptr noundef nonnull align 4 dereferenceable(64) %80, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %280 = load ptr, ptr %275, align 8, !tbaa !17
  %281 = load ptr, ptr %280, align 8
  call void %281(ptr noundef nonnull align 8 dereferenceable(160) %275, i1 noundef zeroext %279, ptr noundef nonnull align 4 dereferenceable(64) %80) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %80) #7
  br label %.thread86

.thread86:                                        ; preds = %.lr.ph95, %276, %274
  %282 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP10GameObjectSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %78) #7
  %283 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP10GameObjectSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef nonnull align 8 dereferenceable(8) %79) #7
  br i1 %283, label %.lr.ph95, label %._crit_edge96
}

declare noundef zeroext i1 @_ZN2sf8Keyboard12isKeyPressedENS0_3KeyE(i32 noundef) local_unnamed_addr #4

declare void @_ZN7Matrix410RotateAxisERK7Vector4f(ptr dead_on_unwind writable sret(%class.Matrix4) align 4, ptr noundef nonnull align 4 dereferenceable(16), float noundef) local_unnamed_addr #4

declare void @_ZNK7Matrix4mlERK7Vector4(ptr dead_on_unwind writable sret(%class.Vector4) align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4

declare noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4pLERKS_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4

declare void @_ZNK7Vector4plERKS_(ptr dead_on_unwind writable sret(%class.Vector4) align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4

declare void @_ZNK7Vector4mlEf(ptr dead_on_unwind writable sret(%class.Vector4) align 4, ptr noundef nonnull align 4 dereferenceable(16), float noundef) local_unnamed_addr #4

declare void @_ZNK7Vector4ngEv(ptr dead_on_unwind writable sret(%class.Vector4) align 4, ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4

; Function Attrs: nounwind
declare void @_ZN9GFXSystem15SetCameraMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208), ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #5

declare void @_ZNK6Camera17ComputeViewMatrixEv(ptr dead_on_unwind writable sret(%class.Matrix4) align 4, ptr noundef nonnull align 4 dereferenceable(160)) local_unnamed_addr #4

declare void @_ZN6Camera21ComputeCameraFrustrumEv(ptr noundef nonnull align 4 dereferenceable(160)) local_unnamed_addr #4

; Function Attrs: nounwind
declare void @_ZN9GFXSystem17SetViewportMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208), ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #5

declare void @_ZN7Matrix48ViewportEffff(ptr dead_on_unwind writable sret(%class.Matrix4) align 4, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #4

; Function Attrs: nounwind
declare void @_ZN8Graphics10Rasterizer8DrawLineERK6Point4S3_RKNS_5ColorE(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5

declare void @_ZN6Point4C1Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) local_unnamed_addr #6

declare void @_ZN7Matrix4C1Effffffffffffffff(ptr noundef nonnull align 4 dereferenceable(64), float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) unnamed_addr #4

declare void @_ZNK7Matrix4mlERKS_(ptr dead_on_unwind writable sret(%class.Matrix4) align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #4

declare void @_ZN7Matrix49TranslateERK7Vector4(ptr dead_on_unwind writable sret(%class.Matrix4) align 4, ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4

declare void @_ZNK7Vector4miERKS_(ptr dead_on_unwind writable sret(%class.Vector4) align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4

declare void @_ZNK7Vector4dvEf(ptr dead_on_unwind writable sret(%class.Vector4) align 4, ptr noundef nonnull align 4 dereferenceable(16), float noundef) local_unnamed_addr #4

declare noundef float @_ZNK7Vector46LengthEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nofree nounwind willreturn memory(read) }
attributes #7 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTSN5Scene11Scene_stateE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !12, i64 8}
!14 = !{!"_ZTSN8Graphics5ColorE", !12, i64 0, !12, i64 4, !12, i64 8}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !18, i64 0}
!18 = !{!"vtable pointer", !8, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"any pointer", !7, i64 0}


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