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

; 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.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = type { %"struct.std::_Vector_base<WorldParser::Transform, std::allocator<WorldParser::Transform>>::_Vector_impl" }
%"struct.std::_Vector_base<WorldParser::Transform, std::allocator<WorldParser::Transform>>::_Vector_impl" = type { %"struct.std::_Vector_base<WorldParser::Transform, std::allocator<WorldParser::Transform>>::_Vector_impl_data" }
%"struct.std::_Vector_base<WorldParser::Transform, std::allocator<WorldParser::Transform>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.9" = type { ptr }
%class.Matrix4 = type { %union.anon.12 }
%union.anon.12 = type { [4 x [4 x float]] }
%"struct.WorldParser::Transform" = type { %"class.std::__cxx11::basic_string", %class.Point4, %class.Vector4, %class.Vector4, %"class.std::__cxx11::basic_string" }
%class.Point4 = type { %union.anon.10 }
%union.anon.10 = type { [4 x float] }
%"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] }
%class.GameObject = type { ptr, %class.Vector4, %class.Vector4, %class.Vector4, %class.Vector4, %class.Vector4, %class.Vector4, %"class.std::vector", %"class.std::__cxx11::basic_string" }
%struct.anon.11 = type { float, float, float, float }
%struct.anon = type { float, float, float, float }

@_ZN5SceneL3CamE = external hidden global %class.Camera, align 4
@_ZN5SceneL12sceneobjectsE = external hidden global %"class.std::vector", align 8
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@_ZN11WorldParser12sceneobjectsE = external global %"class.std::vector.4", align 8
@_ZN11WorldParser4leftE = external global float, align 4
@_ZN11WorldParser5rightE = external global float, align 4
@_ZN11WorldParser6bottomE = external global float, align 4
@_ZN11WorldParser3topE = external global float, align 4
@_ZN11WorldParser9nearPlaneE = external global float, align 4
@_ZN11WorldParser8farPlaneE = external global float, align 4
@_ZN11WorldParser5focalE = external global float, align 4
@_ZN5SceneL20g_copyframebuffer_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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Scene4InitEv() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca ptr, align 8
  %2 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %class.Vector4, align 4
  %9 = alloca %class.Vector4, align 4
  %10 = alloca %class.Vector4, align 4
  %11 = alloca %class.Vector4, align 4
  %12 = alloca %class.Vector4, align 4
  %13 = alloca %class.Vector4, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %class.Vector4, align 4
  %18 = alloca %class.Matrix4, align 4
  call void @_ZN11WorldParser16LoadDataFromFileEPKc(ptr noundef @.str)
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #9
  store ptr @_ZN11WorldParser12sceneobjectsE, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #9
  %19 = call ptr @_ZNSt6vectorIN11WorldParser9TransformESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN11WorldParser12sceneobjectsE) #9
  %20 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.9", ptr %2, i32 0, i32 0
  store ptr %19, ptr %20, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #9
  %21 = call ptr @_ZNSt6vectorIN11WorldParser9TransformESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN11WorldParser12sceneobjectsE) #9
  %22 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.9", ptr %3, i32 0, i32 0
  store ptr %21, ptr %22, align 8
  br label %23

23:                                               ; preds = %134, %0
  %24 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN11WorldParser9TransformESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #9
  br i1 %24, label %26, label %25

25:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #9
  br label %136

26:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #9
  %27 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN11WorldParser9TransformESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #9
  store ptr %27, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  %28 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 160) #10
  invoke void @_ZN3BoxC2Ev(ptr noundef nonnull align 8 dereferenceable(160) %28)
          to label %29 unwind label %127

29:                                               ; preds = %26
  store ptr %28, ptr %5, align 8, !tbaa !5
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.WorldParser::Transform", ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %class.GameObject, ptr %32, i32 0, i32 8
  %34 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(32) %31)
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #9
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.WorldParser::Transform", ptr %35, i32 0, i32 1
  %37 = getelementptr inbounds %class.Point4, ptr %36, i32 0, i32 0
  %38 = getelementptr inbounds %struct.anon.11, ptr %37, i32 0, i32 0
  %39 = load float, ptr %38, align 8, !tbaa !9
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.WorldParser::Transform", ptr %40, i32 0, i32 1
  %42 = getelementptr inbounds %class.Point4, ptr %41, i32 0, i32 0
  %43 = getelementptr inbounds %struct.anon.11, ptr %42, i32 0, i32 1
  %44 = load float, ptr %43, align 4, !tbaa !9
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.WorldParser::Transform", ptr %45, i32 0, i32 1
  %47 = getelementptr inbounds %class.Point4, ptr %46, i32 0, i32 0
  %48 = getelementptr inbounds %struct.anon.11, ptr %47, i32 0, i32 2
  %49 = load float, ptr %48, align 8, !tbaa !9
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.WorldParser::Transform", ptr %50, i32 0, i32 1
  %52 = getelementptr inbounds %class.Point4, ptr %51, i32 0, i32 0
  %53 = getelementptr inbounds %struct.anon.11, ptr %52, i32 0, i32 3
  %54 = load float, ptr %53, align 4, !tbaa !9
  call void @_ZN7Vector4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %8, float noundef %39, float noundef %44, float noundef %49, float noundef %54)
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %class.GameObject, ptr %55, i32 0, i32 1
  %57 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %56, ptr noundef nonnull align 4 dereferenceable(16) %8)
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #9
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.WorldParser::Transform", ptr %58, i32 0, i32 2
  %60 = getelementptr inbounds %class.Vector4, ptr %59, i32 0, i32 0
  %61 = getelementptr inbounds %struct.anon, ptr %60, i32 0, i32 0
  %62 = load float, ptr %61, align 8, !tbaa !9
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.WorldParser::Transform", ptr %63, i32 0, i32 2
  %65 = getelementptr inbounds %class.Vector4, ptr %64, i32 0, i32 0
  %66 = getelementptr inbounds %struct.anon, ptr %65, i32 0, i32 1
  %67 = load float, ptr %66, align 4, !tbaa !9
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.WorldParser::Transform", ptr %68, i32 0, i32 2
  %70 = getelementptr inbounds %class.Vector4, ptr %69, i32 0, i32 0
  %71 = getelementptr inbounds %struct.anon, ptr %70, i32 0, i32 2
  %72 = load float, ptr %71, align 8, !tbaa !9
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.WorldParser::Transform", ptr %73, i32 0, i32 2
  %75 = getelementptr inbounds %class.Vector4, ptr %74, i32 0, i32 0
  %76 = getelementptr inbounds %struct.anon, ptr %75, i32 0, i32 3
  %77 = load float, ptr %76, align 4, !tbaa !9
  call void @_ZN7Vector4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %9, float noundef %62, float noundef %67, float noundef %72, float noundef %77)
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %class.GameObject, ptr %78, i32 0, i32 2
  %80 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %79, ptr noundef nonnull align 4 dereferenceable(16) %9)
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #9
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.WorldParser::Transform", ptr %81, i32 0, i32 3
  %83 = getelementptr inbounds %class.Vector4, ptr %82, i32 0, i32 0
  %84 = getelementptr inbounds %struct.anon, ptr %83, i32 0, i32 0
  %85 = load float, ptr %84, align 8, !tbaa !9
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.WorldParser::Transform", ptr %86, i32 0, i32 3
  %88 = getelementptr inbounds %class.Vector4, ptr %87, i32 0, i32 0
  %89 = getelementptr inbounds %struct.anon, ptr %88, i32 0, i32 1
  %90 = load float, ptr %89, align 4, !tbaa !9
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.WorldParser::Transform", ptr %91, i32 0, i32 3
  %93 = getelementptr inbounds %class.Vector4, ptr %92, i32 0, i32 0
  %94 = getelementptr inbounds %struct.anon, ptr %93, i32 0, i32 2
  %95 = load float, ptr %94, align 8, !tbaa !9
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.WorldParser::Transform", ptr %96, i32 0, i32 3
  %98 = getelementptr inbounds %class.Vector4, ptr %97, i32 0, i32 0
  %99 = getelementptr inbounds %struct.anon, ptr %98, i32 0, i32 3
  %100 = load float, ptr %99, align 4, !tbaa !9
  call void @_ZN7Vector4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %10, float noundef %85, float noundef %90, float noundef %95, float noundef %100)
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %class.GameObject, ptr %101, i32 0, i32 3
  %103 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %102, ptr noundef nonnull align 4 dereferenceable(16) %10)
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #9
  call void @_ZN7Vector4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %11, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %class.GameObject, ptr %104, i32 0, i32 4
  %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) %11)
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #9
  call void @_ZN7Vector4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %12, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %class.GameObject, ptr %107, i32 0, i32 5
  %109 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %108, ptr noundef nonnull align 4 dereferenceable(16) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #9
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %class.GameObject, ptr %110, i32 0, i32 5
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %class.GameObject, ptr %112, i32 0, i32 4
  call void @_ZNK7Vector45CrossERKS_(ptr dead_on_unwind writable sret(%class.Vector4) align 4 %13, ptr noundef nonnull align 4 dereferenceable(16) %111, ptr noundef nonnull align 4 dereferenceable(16) %113)
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = getelementptr inbounds %class.GameObject, ptr %114, i32 0, i32 6
  %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) %13)
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.WorldParser::Transform", ptr %117, i32 0, i32 4
  %119 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %118) #9
  %120 = call noundef ptr @_ZN5Scene15GetObjectByNameEPKc(ptr noundef %119)
  store ptr %120, ptr %14, align 8, !tbaa !5
  %121 = load ptr, ptr %14, align 8, !tbaa !5
  %122 = icmp ne ptr %121, null
  br i1 %122, label %123, label %131

123:                                              ; preds = %29
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  %125 = getelementptr inbounds %class.GameObject, ptr %124, i32 0, i32 7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %126, ptr %15, align 8, !tbaa !5
  call void @_ZNSt6vectorIP10GameObjectSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %125, ptr noundef nonnull align 8 dereferenceable(8) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %133

127:                                              ; preds = %26
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %6, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %7, align 4
  call void @_ZdlPvm(ptr noundef %28, i64 noundef 160) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #9
  br label %149

131:                                              ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %132, ptr %16, align 8, !tbaa !5
  call void @_ZNSt6vectorIP10GameObjectSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5SceneL12sceneobjectsE, ptr noundef nonnull align 8 dereferenceable(8) %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  br label %133

133:                                              ; preds = %131, %123
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  br label %134

134:                                              ; preds = %133
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN11WorldParser9TransformESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #9
  br label %23

136:                                              ; preds = %25
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #9
  call void @_ZN7Vector4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %17, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %137 = 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) %17)
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #9
  %138 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #9
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #9
  %139 = load float, ptr @_ZN11WorldParser4leftE, align 4, !tbaa !10
  %140 = load float, ptr @_ZN11WorldParser5rightE, align 4, !tbaa !10
  %141 = load float, ptr @_ZN11WorldParser6bottomE, align 4, !tbaa !10
  %142 = load float, ptr @_ZN11WorldParser3topE, align 4, !tbaa !10
  %143 = load float, ptr @_ZN11WorldParser9nearPlaneE, align 4, !tbaa !10
  %144 = load float, ptr @_ZN11WorldParser8farPlaneE, align 4, !tbaa !10
  %145 = load float, ptr @_ZN11WorldParser5focalE, align 4, !tbaa !10
  %146 = fmul float %145, 2.000000e+00
  call void @_ZN7Matrix410ProjectionEfffffff(ptr dead_on_unwind writable sret(%class.Matrix4) align 4 %18, float noundef %139, float noundef %140, float noundef %141, float noundef %142, float noundef %143, float noundef %144, float noundef %146)
  call void @_ZN9GFXSystem19SetProjectionMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %138, ptr noundef nonnull align 4 dereferenceable(64) %18) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #9
  %147 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #9
  call void @_ZN9GFXSystem14SetPostProcessEPN8Graphics11PostProcessE(ptr noundef nonnull align 8 dereferenceable(208) %147, ptr noundef @_ZN5SceneL20g_copyframebuffer_shE) #9
  %148 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #9
  call void @_ZN9GFXSystem9SetCameraEP6Camera(ptr noundef nonnull align 8 dereferenceable(208) %148, ptr noundef @_ZN5SceneL3CamE) #9
  ret void

149:                                              ; preds = %127
  %150 = load ptr, ptr %6, align 8
  %151 = load i32, ptr %7, align 4
  %152 = insertvalue { ptr, i32 } poison, ptr %150, 0
  %153 = insertvalue { ptr, i32 } %152, i32 %151, 1
  resume { ptr, i32 } %153
}

declare void @_ZN11WorldParser16LoadDataFromFileEPKc(ptr noundef) #2

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

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

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

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

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #7

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

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

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

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

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

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

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

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

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

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

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

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

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress 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 #5 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nobuiltin 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 #8 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !7, 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.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = type { %"struct.std::_Vector_base<WorldParser::Transform, std::allocator<WorldParser::Transform>>::_Vector_impl" }
%"struct.std::_Vector_base<WorldParser::Transform, std::allocator<WorldParser::Transform>>::_Vector_impl" = type { %"struct.std::_Vector_base<WorldParser::Transform, std::allocator<WorldParser::Transform>>::_Vector_impl_data" }
%"struct.std::_Vector_base<WorldParser::Transform, std::allocator<WorldParser::Transform>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.9" = type { ptr }
%class.Matrix4 = type { %union.anon.12 }
%union.anon.12 = type { [4 x [4 x float]] }

@_ZN5SceneL3CamE = external hidden global %class.Camera, align 4
@_ZN5SceneL12sceneobjectsE = external hidden global %"class.std::vector", align 8
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@_ZN11WorldParser12sceneobjectsE = external global %"class.std::vector.4", align 8
@_ZN11WorldParser4leftE = external local_unnamed_addr global float, align 4
@_ZN11WorldParser5rightE = external local_unnamed_addr global float, align 4
@_ZN11WorldParser6bottomE = external local_unnamed_addr global float, align 4
@_ZN11WorldParser3topE = external local_unnamed_addr global float, align 4
@_ZN11WorldParser9nearPlaneE = external local_unnamed_addr global float, align 4
@_ZN11WorldParser8farPlaneE = external local_unnamed_addr global float, align 4
@_ZN11WorldParser5focalE = external local_unnamed_addr global float, align 4
@_ZN5SceneL20g_copyframebuffer_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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Scene4InitEv() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %2 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %3 = alloca %class.Vector4, align 4
  %4 = alloca %class.Vector4, align 4
  %5 = alloca %class.Vector4, align 4
  %6 = alloca %class.Vector4, align 4
  %7 = alloca %class.Vector4, align 4
  %8 = alloca %class.Vector4, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %class.Vector4, align 4
  %12 = alloca %class.Matrix4, align 4
  tail call void @_ZN11WorldParser16LoadDataFromFileEPKc(ptr noundef nonnull @.str)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #9
  %13 = tail call ptr @_ZNSt6vectorIN11WorldParser9TransformESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN11WorldParser12sceneobjectsE) #9
  store ptr %13, ptr %1, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #9
  %14 = tail call ptr @_ZNSt6vectorIN11WorldParser9TransformESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN11WorldParser12sceneobjectsE) #9
  store ptr %14, ptr %2, align 8
  %15 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN11WorldParser9TransformESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #9
  br i1 %15, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %77, %0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #9
  call void @_ZN7Vector4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %11, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %16 = 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) %11)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  %17 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #9
  %18 = load float, ptr @_ZN11WorldParser4leftE, align 4, !tbaa !5
  %19 = load float, ptr @_ZN11WorldParser5rightE, align 4, !tbaa !5
  %20 = load float, ptr @_ZN11WorldParser6bottomE, align 4, !tbaa !5
  %21 = load float, ptr @_ZN11WorldParser3topE, align 4, !tbaa !5
  %22 = load float, ptr @_ZN11WorldParser9nearPlaneE, align 4, !tbaa !5
  %23 = load float, ptr @_ZN11WorldParser8farPlaneE, align 4, !tbaa !5
  %24 = load float, ptr @_ZN11WorldParser5focalE, align 4, !tbaa !5
  %25 = fmul float %24, 2.000000e+00
  call void @_ZN7Matrix410ProjectionEfffffff(ptr dead_on_unwind nonnull writable sret(%class.Matrix4) align 4 %12, float noundef %18, float noundef %19, float noundef %20, float noundef %21, float noundef %22, float noundef %23, float noundef %25)
  call void @_ZN9GFXSystem19SetProjectionMatrixERK7Matrix4(ptr noundef nonnull align 8 dereferenceable(208) %17, ptr noundef nonnull align 4 dereferenceable(64) %12) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #9
  %26 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #9
  call void @_ZN9GFXSystem14SetPostProcessEPN8Graphics11PostProcessE(ptr noundef nonnull align 8 dereferenceable(208) %26, ptr noundef nonnull @_ZN5SceneL20g_copyframebuffer_shE) #9
  %27 = call noundef nonnull align 8 dereferenceable(208) ptr @_ZN9GFXSystem11GetInstanceEv() #9
  call void @_ZN9GFXSystem9SetCameraEP6Camera(ptr noundef nonnull align 8 dereferenceable(208) %27, ptr noundef nonnull @_ZN5SceneL3CamE) #9
  ret void

.lr.ph:                                           ; preds = %0, %77
  %28 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN11WorldParser9TransformESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #9
  %29 = call noalias noundef nonnull dereferenceable(160) ptr @_Znwm(i64 noundef 160) #10
  invoke void @_ZN3BoxC2Ev(ptr noundef nonnull align 8 dereferenceable(160) %29)
          to label %30 unwind label %74

30:                                               ; preds = %.lr.ph
  %31 = getelementptr inbounds i8, ptr %29, i64 128
  %32 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(32) %28)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #9
  %33 = getelementptr inbounds i8, ptr %28, i64 32
  %34 = load float, ptr %33, align 8, !tbaa !9
  %35 = getelementptr inbounds i8, ptr %28, i64 36
  %36 = load float, ptr %35, align 4, !tbaa !9
  %37 = getelementptr inbounds i8, ptr %28, i64 40
  %38 = load float, ptr %37, align 8, !tbaa !9
  %39 = getelementptr inbounds i8, ptr %28, i64 44
  %40 = load float, ptr %39, align 4, !tbaa !9
  call void @_ZN7Vector4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %3, float noundef %34, float noundef %36, float noundef %38, float noundef %40)
  %41 = getelementptr inbounds i8, ptr %29, i64 8
  %42 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %41, ptr noundef nonnull align 4 dereferenceable(16) %3)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #9
  %43 = getelementptr inbounds i8, ptr %28, i64 48
  %44 = load float, ptr %43, align 8, !tbaa !9
  %45 = getelementptr inbounds i8, ptr %28, i64 52
  %46 = load float, ptr %45, align 4, !tbaa !9
  %47 = getelementptr inbounds i8, ptr %28, i64 56
  %48 = load float, ptr %47, align 8, !tbaa !9
  %49 = getelementptr inbounds i8, ptr %28, i64 60
  %50 = load float, ptr %49, align 4, !tbaa !9
  call void @_ZN7Vector4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %4, float noundef %44, float noundef %46, float noundef %48, float noundef %50)
  %51 = getelementptr inbounds i8, ptr %29, i64 24
  %52 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %51, ptr noundef nonnull align 4 dereferenceable(16) %4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  %53 = getelementptr inbounds i8, ptr %28, i64 64
  %54 = load float, ptr %53, align 8, !tbaa !9
  %55 = getelementptr inbounds i8, ptr %28, i64 68
  %56 = load float, ptr %55, align 4, !tbaa !9
  %57 = getelementptr inbounds i8, ptr %28, i64 72
  %58 = load float, ptr %57, align 8, !tbaa !9
  %59 = getelementptr inbounds i8, ptr %28, i64 76
  %60 = load float, ptr %59, align 4, !tbaa !9
  call void @_ZN7Vector4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %5, float noundef %54, float noundef %56, float noundef %58, float noundef %60)
  %61 = getelementptr inbounds i8, ptr %29, i64 40
  %62 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %61, ptr noundef nonnull align 4 dereferenceable(16) %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #9
  call void @_ZN7Vector4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %6, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %63 = getelementptr inbounds i8, ptr %29, i64 56
  %64 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %63, ptr noundef nonnull align 4 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #9
  call void @_ZN7Vector4C1Effff(ptr noundef nonnull align 4 dereferenceable(16) %7, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %65 = getelementptr inbounds i8, ptr %29, i64 72
  %66 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %65, ptr noundef nonnull align 4 dereferenceable(16) %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #9
  call void @_ZNK7Vector45CrossERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector4) align 4 %8, ptr noundef nonnull align 4 dereferenceable(16) %65, ptr noundef nonnull align 4 dereferenceable(16) %63)
  %67 = getelementptr inbounds i8, ptr %29, i64 88
  %68 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN7Vector4aSERKS_(ptr noundef nonnull align 4 dereferenceable(16) %67, ptr noundef nonnull align 4 dereferenceable(16) %8)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  %69 = getelementptr inbounds i8, ptr %28, i64 80
  %70 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %69) #9
  %71 = call noundef ptr @_ZN5Scene15GetObjectByNameEPKc(ptr noundef %70)
  %.not = icmp eq ptr %71, null
  br i1 %.not, label %76, label %72

72:                                               ; preds = %30
  %73 = getelementptr inbounds i8, ptr %71, i64 104
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  store ptr %29, ptr %9, align 8, !tbaa !10
  call void @_ZNSt6vectorIP10GameObjectSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %73, ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  br label %77

74:                                               ; preds = %.lr.ph
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %29, i64 noundef 160) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #9
  resume { ptr, i32 } %75

76:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  store ptr %29, ptr %10, align 8, !tbaa !10
  call void @_ZNSt6vectorIP10GameObjectSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5SceneL12sceneobjectsE, ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  br label %77

77:                                               ; preds = %76, %72
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN11WorldParser9TransformESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #9
  %79 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN11WorldParser9TransformESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #9
  br i1 %79, label %.lr.ph, label %._crit_edge
}

declare void @_ZN11WorldParser16LoadDataFromFileEPKc(ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

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

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

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

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

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

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

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

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

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

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

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

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress 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 #5 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nobuiltin 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 #8 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass