; LLVM IR from blat-blatnik/Painted-Portal-Ray-Tracing :: src/game.ll (Z10gameUpdated)

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

%struct.GpuSyncedList = type { i32, i64, %"class.std::vector", %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Light, std::allocator<Light>>::_Vector_impl" }
%"struct.std::_Vector_base<Light, std::allocator<Light>>::_Vector_impl" = type { %"struct.std::_Vector_base<Light, std::allocator<Light>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Light, std::allocator<Light>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%struct.GpuSyncedList.4 = type { i32, i64, %"class.std::vector.5", %"class.std::vector.0" }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<Material, std::allocator<Material>>::_Vector_impl" }
%"struct.std::_Vector_base<Material, std::allocator<Material>>::_Vector_impl" = type { %"struct.std::_Vector_base<Material, std::allocator<Material>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Material, std::allocator<Material>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.GpuSyncedList.10 = type { i32, i64, %"class.std::vector.11", %"class.std::vector.0" }
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<Plane, std::allocator<Plane>>::_Vector_impl" }
%"struct.std::_Vector_base<Plane, std::allocator<Plane>>::_Vector_impl" = type { %"struct.std::_Vector_base<Plane, std::allocator<Plane>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Plane, std::allocator<Plane>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.GpuSyncedList.16 = type { i32, i64, %"class.std::vector.17", %"class.std::vector.0" }
%"class.std::vector.17" = type { %"struct.std::_Vector_base.18" }
%"struct.std::_Vector_base.18" = type { %"struct.std::_Vector_base<Sphere, std::allocator<Sphere>>::_Vector_impl" }
%"struct.std::_Vector_base<Sphere, std::allocator<Sphere>>::_Vector_impl" = type { %"struct.std::_Vector_base<Sphere, std::allocator<Sphere>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Sphere, std::allocator<Sphere>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.GpuSyncedList.22 = type { i32, i64, %"class.std::vector.23", %"class.std::vector.0" }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<Voxel, std::allocator<Voxel>>::_Vector_impl" }
%"struct.std::_Vector_base<Voxel, std::allocator<Voxel>>::_Vector_impl" = type { %"struct.std::_Vector_base<Voxel, std::allocator<Voxel>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Voxel, std::allocator<Voxel>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.GpuSyncedList.28 = type { i32, i64, %"class.std::vector.29", %"class.std::vector.0" }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<Portal, std::allocator<Portal>>::_Vector_impl" }
%"struct.std::_Vector_base<Portal, std::allocator<Portal>>::_Vector_impl" = type { %"struct.std::_Vector_base<Portal, std::allocator<Portal>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Portal, std::allocator<Portal>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.vector = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float, float }
%struct.Light = type { %struct.vector, [4 x i8], %struct.vector, [4 x i8] }
%struct.vector.55 = type { %union.anon.56 }
%union.anon.56 = type { %struct.anon.57 }
%struct.anon.57 = type { i8, i8, i8 }
%struct.Ray = type { %struct.vector, %struct.vector }
%struct.Portal = type { %struct.vector, [4 x i8], %struct.vector, float }
%"struct.GpuSyncedList<Portal>::Wrapper" = type { ptr, i64 }
%struct.matrix.64 = type { [3 x %struct.vector] }
%"struct.GpuSyncedList<Light>::Wrapper" = type { ptr, i64 }
%struct.matrix = type { [4 x %struct.vector.40] }
%struct.vector.40 = type { %union.anon.41 }
%union.anon.41 = type { %struct.anon.42 }
%struct.anon.42 = type { float, float, float, float }
%struct.vector.35 = type { %union.anon.36 }
%union.anon.36 = type { %struct.anon.37 }
%struct.anon.37 = type { float, float }

@_ZL6lights = external hidden global %struct.GpuSyncedList, align 8
@_ZL9materials = external hidden global %struct.GpuSyncedList.4, align 8
@_ZL6planes = external hidden global %struct.GpuSyncedList.10, align 8
@_ZL7spheres = external hidden global %struct.GpuSyncedList.16, align 8
@_ZL6voxels = external hidden global %struct.GpuSyncedList.22, align 8
@_ZL7portals = external hidden global %struct.GpuSyncedList.28, align 8
@_ZL9cameraPos = external hidden global %struct.vector, align 4
@_ZL9cameraDir = external hidden global %struct.vector, align 4
@_ZL8cameraUp = external hidden global %struct.vector, align 4
@_ZL11cameraRight = external hidden global %struct.vector, align 4
@_ZL11lightBuffer = external hidden global [100 x %struct.Light], align 16
@_ZL6window = external hidden global ptr, align 8
@_ZL9velocityY = external hidden global float, align 4
@_ZL15doubleJumpReady = external hidden global i8, align 1
@_ZL8gameMode = external hidden global i32, align 4
@_ZL11cameraPitch = external hidden global float, align 4
@_ZL9cameraYaw = external hidden global float, align 4
@_ZL15cameraFoveaDist = external hidden global float, align 4
@_ZL25raytraceOutputFramebuffer = external hidden global i32, align 4
@glad_glBindFramebuffer = external global ptr, align 8
@_ZL21raytraceOutputTexture = external hidden global i32, align 4
@_ZL12textureAtlas = external hidden global i32, align 4
@_ZL14raytraceShader = external hidden global i32, align 4
@_ZL11paintShader = external hidden global i32, align 4
@glad_glViewport = external global ptr, align 8
@glad_glDrawArrays = external global ptr, align 8
@_ZZ10gameUpdatedE8frameAcc = external hidden global i32, align 4
@_ZZ10gameUpdatedE7timeAcc = external hidden global double, align 8
@.str.37 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [4 x i8], align 1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z9normalizeIfLi3EE6vectorIT_XT0_EES2_(ptr dead_on_unwind noalias writable sret(%struct.vector) align 4, ptr noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z5crossIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind noalias writable sret(%struct.vector) align 4, ptr noundef, ptr noundef) #1

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZpLIfLi3EER6vectorIT_XT0_EES3_S2_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZmlIfLi3EE6vectorIT_XT0_EES1_S2_(ptr dead_on_unwind noalias writable sret(%struct.vector) align 4, float noundef, ptr noundef) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZN13GpuSyncedListI6PortalEixEm(ptr noundef nonnull align 8 dereferenceable(80), i64 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZplIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind noalias writable sret(%struct.vector) align 4, ptr noundef, ptr noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6vectorIfLi2EEC2IiiEET_T0_(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10gameUpdated(double noundef %0) #5 {
  %2 = alloca double, align 8
  %3 = alloca float, align 4
  %4 = alloca %struct.vector, align 4
  %5 = alloca %struct.vector.55, align 1
  %6 = alloca %struct.vector, align 4
  %7 = alloca %struct.vector, align 4
  %8 = alloca %struct.vector, align 4
  %9 = alloca %struct.vector, align 4
  %10 = alloca %struct.vector, align 4
  %11 = alloca %struct.vector, align 4
  %12 = alloca %struct.vector, align 4
  %13 = alloca %struct.vector, align 4
  %14 = alloca %struct.vector, align 4
  %15 = alloca %struct.vector, align 4
  %16 = alloca %struct.vector, align 4
  %17 = alloca %struct.vector, align 4
  %18 = alloca %struct.vector, align 4
  %19 = alloca %struct.vector, align 4
  %20 = alloca %struct.vector, align 4
  %21 = alloca %struct.vector, align 4
  %22 = alloca %struct.Ray, align 4
  %23 = alloca %struct.vector, align 4
  %24 = alloca i32, align 4
  %25 = alloca %struct.vector, align 4
  %26 = alloca %struct.Portal, align 16
  %27 = alloca %"struct.GpuSyncedList<Portal>::Wrapper", align 8
  %28 = alloca %struct.Portal, align 16
  %29 = alloca %"struct.GpuSyncedList<Portal>::Wrapper", align 8
  %30 = alloca float, align 4
  %31 = alloca %struct.Ray, align 4
  %32 = alloca %struct.Portal, align 16
  %33 = alloca %struct.vector, align 4
  %34 = alloca %struct.vector, align 4
  %35 = alloca %struct.matrix.64, align 4
  %36 = alloca %struct.Portal, align 16
  %37 = alloca %struct.matrix.64, align 4
  %38 = alloca %struct.Portal, align 16
  %39 = alloca %struct.vector, align 4
  %40 = alloca %struct.vector, align 4
  %41 = alloca %struct.vector, align 4
  %42 = alloca %struct.vector, align 4
  %43 = alloca %struct.vector, align 4
  %44 = alloca %struct.vector, align 4
  %45 = alloca %struct.vector, align 4
  %46 = alloca %struct.matrix.64, align 4
  %47 = alloca %struct.matrix.64, align 4
  %48 = alloca %struct.matrix.64, align 4
  %49 = alloca %struct.matrix.64, align 4
  %50 = alloca %struct.vector, align 4
  %51 = alloca %struct.vector, align 4
  %52 = alloca %struct.vector, align 4
  %53 = alloca %struct.vector, align 4
  %54 = alloca %struct.vector, align 4
  %55 = alloca %struct.matrix.64, align 4
  %56 = alloca %struct.matrix.64, align 4
  %57 = alloca %struct.matrix.64, align 4
  %58 = alloca %struct.matrix.64, align 4
  %59 = alloca %struct.vector, align 4
  %60 = alloca %struct.vector, align 4
  %61 = alloca %struct.vector, align 4
  %62 = alloca %struct.vector, align 4
  %63 = alloca %struct.vector, align 4
  %64 = alloca %struct.vector, align 4
  %65 = alloca %struct.vector, align 4
  %66 = alloca %struct.vector, align 4
  %67 = alloca %struct.vector, align 4
  %68 = alloca %struct.vector, align 4
  %69 = alloca %struct.vector, align 4
  %70 = alloca %struct.vector, align 4
  %71 = alloca %struct.vector, align 4
  %72 = alloca %struct.vector, align 4
  %73 = alloca %struct.vector, align 4
  %74 = alloca %struct.vector, align 4
  %75 = alloca %struct.vector, align 4
  %76 = alloca %struct.vector, align 4
  %77 = alloca %struct.vector, align 4
  %78 = alloca %struct.vector, align 4
  %79 = alloca %struct.vector, align 4
  %80 = alloca %struct.vector, align 4
  %81 = alloca %struct.vector, align 4
  %82 = alloca %struct.vector, align 4
  %83 = alloca %struct.vector, align 4
  %84 = alloca float, align 4
  %85 = alloca %struct.vector, align 4
  %86 = alloca %struct.vector, align 4
  %87 = alloca float, align 4
  %88 = alloca %struct.vector, align 4
  %89 = alloca %struct.vector, align 4
  %90 = alloca float, align 4
  %91 = alloca float, align 4
  %92 = alloca %struct.vector, align 4
  %93 = alloca %struct.vector, align 4
  %94 = alloca %struct.vector, align 4
  %95 = alloca %struct.vector, align 4
  %96 = alloca %struct.vector, align 4
  %97 = alloca %struct.vector, align 4
  %98 = alloca %struct.vector, align 4
  %99 = alloca %struct.vector, align 4
  %100 = alloca %struct.vector, align 4
  %101 = alloca %struct.vector, align 4
  %102 = alloca %struct.vector, align 4
  %103 = alloca %struct.vector, align 4
  %104 = alloca %struct.vector, align 4
  %105 = alloca %struct.vector, align 4
  %106 = alloca %struct.vector, align 4
  %107 = alloca %struct.vector, align 4
  %108 = alloca %struct.vector, align 4
  %109 = alloca %struct.vector, align 4
  %110 = alloca %struct.vector, align 4
  %111 = alloca %struct.vector, align 4
  %112 = alloca %struct.vector, align 4
  %113 = alloca %struct.vector, align 4
  %114 = alloca %struct.vector, align 4
  %115 = alloca %struct.vector, align 4
  %116 = alloca %struct.vector, align 4
  %117 = alloca float, align 4
  %118 = alloca i64, align 8
  %119 = alloca %struct.Light, align 16
  %120 = alloca %"struct.GpuSyncedList<Light>::Wrapper", align 8
  %121 = alloca float, align 4
  %122 = alloca float, align 4
  %123 = alloca float, align 4
  %124 = alloca float, align 4
  %125 = alloca %struct.Light, align 16
  %126 = alloca %"struct.GpuSyncedList<Light>::Wrapper", align 8
  %127 = alloca i32, align 4
  %128 = alloca i32, align 4
  %129 = alloca %struct.matrix, align 4
  %130 = alloca %struct.vector, align 4
  %131 = alloca %struct.vector, align 4
  %132 = alloca %struct.vector, align 4
  %133 = alloca %struct.vector.35, align 4
  %134 = alloca %struct.vector, align 4
  %135 = alloca %struct.matrix.64, align 4
  %136 = alloca %struct.matrix, align 4
  %137 = alloca %struct.matrix, align 4
  %138 = alloca %struct.vector.35, align 4
  %139 = alloca [256 x i8], align 16
  store double %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #9
  %140 = load double, ptr %2, align 8, !tbaa !5
  %141 = fptrunc double %140 to float
  %142 = fmul float %141, 5.000000e+00
  store float %142, ptr %3, align 4, !tbaa !9
  %143 = load ptr, ptr @_ZL6window, align 8, !tbaa !11
  %144 = call i32 @glfwGetKey(ptr noundef %143, i32 noundef 340)
  %145 = icmp eq i32 %144, 1
  br i1 %145, label %146, label %149

146:                                              ; preds = %1
  %147 = load float, ptr %3, align 4, !tbaa !9
  %148 = fmul float %147, 2.000000e+00
  store float %148, ptr %3, align 4, !tbaa !9
  br label %149

149:                                              ; preds = %146, %1
  call void @llvm.lifetime.start.p0(i64 12, ptr %4) #9
  call void @_ZN6vectorIfLi3EEC2IiEET_(ptr noundef nonnull align 4 dereferenceable(12) %4, i32 noundef 0)
  %150 = load ptr, ptr @_ZL6window, align 8, !tbaa !11
  %151 = call i32 @glfwGetKey(ptr noundef %150, i32 noundef 87)
  %152 = icmp eq i32 %151, 1
  br i1 %152, label %153, label %158

153:                                              ; preds = %149
  %154 = getelementptr inbounds %struct.vector, ptr %4, i32 0, i32 0
  %155 = getelementptr inbounds %struct.anon, ptr %154, i32 0, i32 2
  %156 = load float, ptr %155, align 4, !tbaa !13
  %157 = fadd float %156, 1.000000e+00
  store float %157, ptr %155, align 4, !tbaa !13
  br label %158

158:                                              ; preds = %153, %149
  %159 = load ptr, ptr @_ZL6window, align 8, !tbaa !11
  %160 = call i32 @glfwGetKey(ptr noundef %159, i32 noundef 83)
  %161 = icmp eq i32 %160, 1
  br i1 %161, label %162, label %167

162:                                              ; preds = %158
  %163 = getelementptr inbounds %struct.vector, ptr %4, i32 0, i32 0
  %164 = getelementptr inbounds %struct.anon, ptr %163, i32 0, i32 2
  %165 = load float, ptr %164, align 4, !tbaa !13
  %166 = fsub float %165, 1.000000e+00
  store float %166, ptr %164, align 4, !tbaa !13
  br label %167

167:                                              ; preds = %162, %158
  %168 = load ptr, ptr @_ZL6window, align 8, !tbaa !11
  %169 = call i32 @glfwGetKey(ptr noundef %168, i32 noundef 65)
  %170 = icmp eq i32 %169, 1
  br i1 %170, label %171, label %176

171:                                              ; preds = %167
  %172 = getelementptr inbounds %struct.vector, ptr %4, i32 0, i32 0
  %173 = getelementptr inbounds %struct.anon, ptr %172, i32 0, i32 0
  %174 = load float, ptr %173, align 4, !tbaa !13
  %175 = fsub float %174, 1.000000e+00
  store float %175, ptr %173, align 4, !tbaa !13
  br label %176

176:                                              ; preds = %171, %167
  %177 = load ptr, ptr @_ZL6window, align 8, !tbaa !11
  %178 = call i32 @glfwGetKey(ptr noundef %177, i32 noundef 68)
  %179 = icmp eq i32 %178, 1
  br i1 %179, label %180, label %185

180:                                              ; preds = %176
  %181 = getelementptr inbounds %struct.vector, ptr %4, i32 0, i32 0
  %182 = getelementptr inbounds %struct.anon, ptr %181, i32 0, i32 0
  %183 = load float, ptr %182, align 4, !tbaa !13
  %184 = fadd float %183, 1.000000e+00
  store float %184, ptr %182, align 4, !tbaa !13
  br label %185

185:                                              ; preds = %180, %176
  %186 = load ptr, ptr @_ZL6window, align 8, !tbaa !11
  %187 = call i32 @glfwGetKey(ptr noundef %186, i32 noundef 341)
  %188 = icmp eq i32 %187, 1
  br i1 %188, label %189, label %194

189:                                              ; preds = %185
  %190 = getelementptr inbounds %struct.vector, ptr %4, i32 0, i32 0
  %191 = getelementptr inbounds %struct.anon, ptr %190, i32 0, i32 1
  %192 = load float, ptr %191, align 4, !tbaa !13
  %193 = fsub float %192, 1.000000e+00
  store float %193, ptr %191, align 4, !tbaa !13
  br label %194

194:                                              ; preds = %189, %185
  %195 = load ptr, ptr @_ZL6window, align 8, !tbaa !11
  %196 = call i32 @glfwGetKey(ptr noundef %195, i32 noundef 32)
  %197 = icmp eq i32 %196, 1
  br i1 %197, label %198, label %203

198:                                              ; preds = %194
  %199 = getelementptr inbounds %struct.vector, ptr %4, i32 0, i32 0
  %200 = getelementptr inbounds %struct.anon, ptr %199, i32 0, i32 1
  %201 = load float, ptr %200, align 4, !tbaa !13
  %202 = fadd float %201, 1.000000e+00
  store float %202, ptr %200, align 4, !tbaa !13
  br label %203

203:                                              ; preds = %198, %194
  %204 = load i32, ptr @_ZL8gameMode, align 4, !tbaa !14
  %205 = icmp eq i32 %204, 0
  br i1 %205, label %206, label %209

206:                                              ; preds = %203
  %207 = getelementptr inbounds %struct.vector, ptr %4, i32 0, i32 0
  %208 = getelementptr inbounds %struct.anon, ptr %207, i32 0, i32 1
  store float 0.000000e+00, ptr %208, align 4, !tbaa !13
  br label %209

209:                                              ; preds = %206, %203
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %4)
  call void @_ZN6vectorIfLi3EEC2IiEET_(ptr noundef nonnull align 4 dereferenceable(12) %7, i32 noundef 0)
  call void @_ZneIfE6vectorIbLi3EES0_IT_Li3EES3_(ptr dead_on_unwind writable sret(%struct.vector.55) align 1 %5, ptr noundef %6, ptr noundef %7)
  %210 = call noundef zeroext i1 @_Z3any6vectorIbLi3EE(ptr noundef %5)
  br i1 %210, label %211, label %213

211:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #9
  %212 = load float, ptr %3, align 4, !tbaa !9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %4)
  call void @_Z9normalizeIfLi3EE6vectorIT_XT0_EES2_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %9, ptr noundef %10)
  call void @_ZmlIfLi3EE6vectorIT_XT0_EES1_S2_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %8, float noundef %212, ptr noundef %9)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %4, ptr align 4 %8, i64 12, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #9
  br label %213

213:                                              ; preds = %211, %209
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #9
  %214 = getelementptr inbounds %struct.vector, ptr %4, i32 0, i32 0
  %215 = getelementptr inbounds %struct.anon, ptr %214, i32 0, i32 0
  %216 = load float, ptr %215, align 4, !tbaa !13
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) @_ZL11cameraRight)
  call void @_ZmlIfLi3EE6vectorIT_XT0_EES1_S2_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %13, float noundef %216, ptr noundef %14)
  %217 = getelementptr inbounds %struct.vector, ptr %4, i32 0, i32 0
  %218 = getelementptr inbounds %struct.anon, ptr %217, i32 0, i32 1
  %219 = load float, ptr %218, align 4, !tbaa !13
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) @_ZL8cameraUp)
  call void @_ZmlIfLi3EE6vectorIT_XT0_EES1_S2_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %15, float noundef %219, ptr noundef %16)
  call void @_ZplIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %12, ptr noundef %13, ptr noundef %15)
  %220 = getelementptr inbounds %struct.vector, ptr %4, i32 0, i32 0
  %221 = getelementptr inbounds %struct.anon, ptr %220, i32 0, i32 2
  %222 = load float, ptr %221, align 4, !tbaa !13
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %19, ptr noundef nonnull align 4 dereferenceable(12) @_ZL8cameraUp)
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(12) @_ZL11cameraRight)
  call void @_Z5crossIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %18, ptr noundef %19, ptr noundef %20)
  call void @_ZmlIfLi3EE6vectorIT_XT0_EES1_S2_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %17, float noundef %222, ptr noundef %18)
  call void @_ZplIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %11, ptr noundef %12, ptr noundef %17)
  %223 = load i32, ptr @_ZL8gameMode, align 4, !tbaa !14
  %224 = icmp eq i32 %223, 0
  br i1 %224, label %225, label %368

225:                                              ; preds = %213
  %226 = getelementptr inbounds %struct.vector, ptr %11, i32 0, i32 0
  %227 = getelementptr inbounds %struct.anon, ptr %226, i32 0, i32 1
  store float 0.000000e+00, ptr %227, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #9
  %228 = getelementptr inbounds %struct.vector, ptr %11, i32 0, i32 0
  %229 = getelementptr inbounds %struct.anon, ptr %228, i32 0, i32 0
  %230 = load float, ptr %229, align 4, !tbaa !13
  %231 = load float, ptr @_ZL9velocityY, align 4, !tbaa !9
  %232 = load double, ptr %2, align 8, !tbaa !5
  %233 = fptrunc double %232 to float
  %234 = fmul float %231, %233
  %235 = getelementptr inbounds %struct.vector, ptr %11, i32 0, i32 0
  %236 = getelementptr inbounds %struct.anon, ptr %235, i32 0, i32 2
  %237 = load float, ptr %236, align 4, !tbaa !13
  call void @_ZN6vectorIfLi3EEC2IfffEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %21, float noundef %230, float noundef %234, float noundef %237)
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #9
  %238 = getelementptr inbounds %struct.Ray, ptr %22, i32 0, i32 0
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %238, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  %239 = getelementptr inbounds %struct.Ray, ptr %22, i32 0, i32 1
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %23, ptr noundef nonnull align 4 dereferenceable(12) %21)
  call void @_Z9normalizeIfLi3EE6vectorIT_XT0_EES2_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %239, ptr noundef %23)
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  %240 = call noundef i32 @_ZL16getClosestPortal6vectorIfLi3EE(ptr noundef %25)
  store i32 %240, ptr %24, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #9
  %241 = load i32, ptr %24, align 4, !tbaa !17
  %242 = sext i32 %241 to i64
  %243 = call { ptr, i64 } @_ZN13GpuSyncedListI6PortalEixEm(ptr noundef nonnull align 8 dereferenceable(80) @_ZL7portals, i64 noundef %242)
  %244 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 0
  %245 = extractvalue { ptr, i64 } %243, 0
  store ptr %245, ptr %244, align 8
  %246 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 1
  %247 = extractvalue { ptr, i64 } %243, 1
  store i64 %247, ptr %246, align 8
  call void @_ZN13GpuSyncedListI6PortalE7WrappercvS0_Ev(ptr dead_on_unwind writable sret(%struct.Portal) align 16 %26, ptr noundef nonnull align 8 dereferenceable(16) %27)
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #9
  %248 = load i32, ptr %24, align 4, !tbaa !17
  %249 = sext i32 %248 to i64
  %250 = sub i64 1, %249
  %251 = call { ptr, i64 } @_ZN13GpuSyncedListI6PortalEixEm(ptr noundef nonnull align 8 dereferenceable(80) @_ZL7portals, i64 noundef %250)
  %252 = getelementptr inbounds { ptr, i64 }, ptr %29, i32 0, i32 0
  %253 = extractvalue { ptr, i64 } %251, 0
  store ptr %253, ptr %252, align 8
  %254 = getelementptr inbounds { ptr, i64 }, ptr %29, i32 0, i32 1
  %255 = extractvalue { ptr, i64 } %251, 1
  store i64 %255, ptr %254, align 8
  call void @_ZN13GpuSyncedListI6PortalE7WrappercvS0_Ev(ptr dead_on_unwind writable sret(%struct.Portal) align 16 %28, ptr noundef nonnull align 8 dereferenceable(16) %29)
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  call void @_ZN3RayC2ERKS_(ptr noundef nonnull align 4 dereferenceable(24) %31, ptr noundef nonnull align 4 dereferenceable(24) %22)
  call void @_ZN6PortalC2ERKS_(ptr noundef nonnull align 16 dereferenceable(32) %32, ptr noundef nonnull align 16 dereferenceable(32) %26)
  %256 = call noundef float @_ZL9intersect3Ray6Portal(ptr noundef %31, ptr noundef %32)
  store float %256, ptr %30, align 4, !tbaa !9
  %257 = load float, ptr %30, align 4, !tbaa !9
  %258 = fcmp olt float %257, 5.000000e-01
  br i1 %258, label %259, label %277

259:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 12, ptr %33) #9
  %260 = getelementptr inbounds %struct.Portal, ptr %26, i32 0, i32 2
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %34, ptr noundef nonnull align 4 dereferenceable(12) %260)
  call void @_ZngIfE6vectorIT_Li3EES2_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %33, ptr noundef %34)
  %261 = getelementptr inbounds %struct.Portal, ptr %26, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %261, ptr align 4 %33, i64 12, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #9
  call void @llvm.lifetime.start.p0(i64 36, ptr %35) #9
  call void @_ZN6PortalC2ERKS_(ptr noundef nonnull align 16 dereferenceable(32) %36, ptr noundef nonnull align 16 dereferenceable(32) %26)
  call void @_ZL15getPortalMatrix6Portal(ptr dead_on_unwind writable sret(%struct.matrix.64) align 4 %35, ptr noundef %36)
  call void @llvm.lifetime.start.p0(i64 36, ptr %37) #9
  call void @_ZN6PortalC2ERKS_(ptr noundef nonnull align 16 dereferenceable(32) %38, ptr noundef nonnull align 16 dereferenceable(32) %28)
  call void @_ZL15getPortalMatrix6Portal(ptr dead_on_unwind writable sret(%struct.matrix.64) align 4 %37, ptr noundef %38)
  call void @llvm.lifetime.start.p0(i64 12, ptr %39) #9
  %262 = getelementptr inbounds %struct.Ray, ptr %22, i32 0, i32 0
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %40, ptr noundef nonnull align 4 dereferenceable(12) %262)
  %263 = getelementptr inbounds %struct.Ray, ptr %22, i32 0, i32 1
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %42, ptr noundef nonnull align 4 dereferenceable(12) %263)
  %264 = load float, ptr %30, align 4, !tbaa !9
  call void @_ZmlIfLi3EE6vectorIT_XT0_EES2_S1_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %41, ptr noundef %42, float noundef %264)
  call void @_ZplIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %39, ptr noundef %40, ptr noundef %41)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 @_ZL9cameraPos, ptr align 4 %39, i64 12, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 12, ptr %39) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr %43) #9
  %265 = getelementptr inbounds %struct.Portal, ptr %28, i32 0, i32 0
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %44, ptr noundef nonnull align 4 dereferenceable(12) %265)
  call void @_ZN6matrixIfLi3ELi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(36) %48, ptr noundef nonnull align 4 dereferenceable(36) %37)
  call void @_Z7inverseIfE6matrixIT_Li3ELi3EES2_(ptr dead_on_unwind writable sret(%struct.matrix.64) align 4 %47, ptr noundef %48)
  call void @_ZN6matrixIfLi3ELi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(36) %49, ptr noundef nonnull align 4 dereferenceable(36) %35)
  call void @_ZmlIfE6matrixIT_Li3ELi3EES2_S2_(ptr dead_on_unwind writable sret(%struct.matrix.64) align 4 %46, ptr noundef %47, ptr noundef %49)
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %51, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  %266 = getelementptr inbounds %struct.Portal, ptr %26, i32 0, i32 0
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %52, ptr noundef nonnull align 4 dereferenceable(12) %266)
  call void @_ZmiIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %50, ptr noundef %51, ptr noundef %52)
  call void @_ZmlIfE6vectorIT_Li3EE6matrixIS1_Li3ELi3EES2_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %45, ptr noundef %46, ptr noundef %50)
  call void @_ZplIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %43, ptr noundef %44, ptr noundef %45)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 @_ZL9cameraPos, ptr align 4 %43, i64 12, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 12, ptr %43) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr %53) #9
  call void @_ZN6matrixIfLi3ELi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(36) %57, ptr noundef nonnull align 4 dereferenceable(36) %37)
  call void @_Z7inverseIfE6matrixIT_Li3ELi3EES2_(ptr dead_on_unwind writable sret(%struct.matrix.64) align 4 %56, ptr noundef %57)
  call void @_ZN6matrixIfLi3ELi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(36) %58, ptr noundef nonnull align 4 dereferenceable(36) %35)
  call void @_ZmlIfE6matrixIT_Li3ELi3EES2_S2_(ptr dead_on_unwind writable sret(%struct.matrix.64) align 4 %55, ptr noundef %56, ptr noundef %58)
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %59, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraDir)
  call void @_ZmlIfE6vectorIT_Li3EE6matrixIS1_Li3ELi3EES2_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %54, ptr noundef %55, ptr noundef %59)
  call void @_Z9normalizeIfLi3EE6vectorIT_XT0_EES2_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %53, ptr noundef %54)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 @_ZL9cameraDir, ptr align 4 %53, i64 12, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 12, ptr %53) #9
  %267 = getelementptr inbounds %struct.Ray, ptr %22, i32 0, i32 1
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %61, ptr noundef nonnull align 4 dereferenceable(12) %267)
  call void @_ZmlIfLi3EE6vectorIT_XT0_EES2_S1_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %60, ptr noundef %61, float noundef 0x3FB99999A0000000)
  %268 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZpLIfLi3EER6vectorIT_XT0_EES3_S2_(ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos, ptr noundef %60)
  %269 = load float, ptr getelementptr inbounds (%struct.anon, ptr @_ZL9cameraDir, i32 0, i32 1), align 4, !tbaa !13
  %270 = call noundef float @_ZSt4atanf(float noundef %269)
  store float %270, ptr @_ZL9cameraYaw, align 4, !tbaa !9
  %271 = load float, ptr @_ZL9cameraDir, align 4, !tbaa !13
  %272 = load float, ptr getelementptr inbounds (%struct.anon, ptr @_ZL9cameraDir, i32 0, i32 2), align 4, !tbaa !13
  %273 = call noundef float @_ZSt5atan2ff(float noundef %271, float noundef %272)
  %274 = fadd float 0x400921FB60000000, %273
  store float %274, ptr @_ZL11cameraPitch, align 4, !tbaa !9
  %275 = getelementptr inbounds %struct.Portal, ptr %28, i32 0, i32 2
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %63, ptr noundef nonnull align 4 dereferenceable(12) %275)
  call void @_ZmlIfLi3EE6vectorIT_XT0_EES2_S1_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %62, ptr noundef %63, float noundef 0x3FB99999A0000000)
  %276 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZpLIfLi3EER6vectorIT_XT0_EES3_S2_(ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos, ptr noundef %62)
  call void @llvm.lifetime.end.p0(i64 36, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 36, ptr %35) #9
  br label %277

277:                                              ; preds = %259, %225
  %278 = load float, ptr @_ZL9velocityY, align 4, !tbaa !9
  %279 = fcmp ogt float %278, 0.000000e+00
  br i1 %279, label %280, label %285

280:                                              ; preds = %277
  call void @llvm.lifetime.start.p0(i64 12, ptr %64) #9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %65, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  %281 = load double, ptr %2, align 8, !tbaa !5
  %282 = fptrunc double %281 to float
  %283 = load float, ptr @_ZL9velocityY, align 4, !tbaa !9
  %284 = fmul float %282, %283
  call void @_ZN6vectorIfLi3EEC2IifiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %66, i32 noundef 0, float noundef %284, i32 noundef 0)
  call void @_ZL22moveWithCollisionCheck6vectorIfLi3EES0_f(ptr dead_on_unwind writable sret(%struct.vector) align 4 %64, ptr noundef %65, ptr noundef %66, float noundef 0x3F50624DE0000000)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 @_ZL9cameraPos, ptr align 4 %64, i64 12, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 12, ptr %64) #9
  br label %299

285:                                              ; preds = %277
  %286 = load float, ptr @_ZL9velocityY, align 4, !tbaa !9
  %287 = fcmp olt float %286, 0.000000e+00
  br i1 %287, label %288, label %298

288:                                              ; preds = %285
  call void @llvm.lifetime.start.p0(i64 12, ptr %67) #9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %68, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  call void @_ZN6vectorIfLi3EEC2IifiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %69, i32 noundef 0, float noundef 0x3FECCCCCC0000000, i32 noundef 0)
  call void @_ZmiIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %67, ptr noundef %68, ptr noundef %69)
  call void @llvm.lifetime.start.p0(i64 12, ptr %70) #9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %71, ptr noundef nonnull align 4 dereferenceable(12) %67)
  %289 = load double, ptr %2, align 8, !tbaa !5
  %290 = fptrunc double %289 to float
  %291 = load float, ptr @_ZL9velocityY, align 4, !tbaa !9
  %292 = fmul float %290, %291
  call void @_ZN6vectorIfLi3EEC2IifiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %72, i32 noundef 0, float noundef %292, i32 noundef 0)
  call void @_ZL22moveWithCollisionCheck6vectorIfLi3EES0_f(ptr dead_on_unwind writable sret(%struct.vector) align 4 %70, ptr noundef %71, ptr noundef %72, float noundef 0x3F847AE140000000)
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %74, ptr noundef nonnull align 4 dereferenceable(12) %70)
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %75, ptr noundef nonnull align 4 dereferenceable(12) %67)
  call void @_ZmiIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %73, ptr noundef %74, ptr noundef %75)
  %293 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZpLIfLi3EER6vectorIT_XT0_EES3_S2_(ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos, ptr noundef %73)
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %76, ptr noundef nonnull align 4 dereferenceable(12) %67)
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %77, ptr noundef nonnull align 4 dereferenceable(12) %70)
  %294 = call noundef float @_Z8distanceIfLi3EET_6vectorIS0_XT0_EES2_(ptr noundef %76, ptr noundef %77)
  %295 = fcmp olt float %294, 0x3F50624DE0000000
  br i1 %295, label %296, label %297

296:                                              ; preds = %288
  store float 0.000000e+00, ptr @_ZL9velocityY, align 4, !tbaa !9
  store i8 1, ptr @_ZL15doubleJumpReady, align 1, !tbaa !19
  br label %297

297:                                              ; preds = %296, %288
  call void @llvm.lifetime.end.p0(i64 12, ptr %70) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %67) #9
  br label %298

298:                                              ; preds = %297, %285
  br label %299

299:                                              ; preds = %298, %280
  %300 = getelementptr inbounds %struct.vector, ptr %11, i32 0, i32 0
  %301 = getelementptr inbounds %struct.anon, ptr %300, i32 0, i32 0
  %302 = load float, ptr %301, align 4, !tbaa !13
  %303 = fcmp une float %302, 0.000000e+00
  br i1 %303, label %304, label %308

304:                                              ; preds = %299
  call void @llvm.lifetime.start.p0(i64 12, ptr %78) #9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %79, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  %305 = getelementptr inbounds %struct.vector, ptr %11, i32 0, i32 0
  %306 = getelementptr inbounds %struct.anon, ptr %305, i32 0, i32 0
  %307 = load float, ptr %306, align 4, !tbaa !13
  call void @_ZN6vectorIfLi3EEC2IfiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %80, float noundef %307, i32 noundef 0, i32 noundef 0)
  call void @_ZL22moveWithCollisionCheck6vectorIfLi3EES0_f(ptr dead_on_unwind writable sret(%struct.vector) align 4 %78, ptr noundef %79, ptr noundef %80, float noundef 0x3FB99999A0000000)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 @_ZL9cameraPos, ptr align 4 %78, i64 12, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 12, ptr %78) #9
  br label %308

308:                                              ; preds = %304, %299
  %309 = getelementptr inbounds %struct.vector, ptr %11, i32 0, i32 0
  %310 = getelementptr inbounds %struct.anon, ptr %309, i32 0, i32 2
  %311 = load float, ptr %310, align 4, !tbaa !13
  %312 = fcmp une float %311, 0.000000e+00
  br i1 %312, label %313, label %317

313:                                              ; preds = %308
  call void @llvm.lifetime.start.p0(i64 12, ptr %81) #9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %82, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  %314 = getelementptr inbounds %struct.vector, ptr %11, i32 0, i32 0
  %315 = getelementptr inbounds %struct.anon, ptr %314, i32 0, i32 2
  %316 = load float, ptr %315, align 4, !tbaa !13
  call void @_ZN6vectorIfLi3EEC2IiifEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %83, i32 noundef 0, i32 noundef 0, float noundef %316)
  call void @_ZL22moveWithCollisionCheck6vectorIfLi3EES0_f(ptr dead_on_unwind writable sret(%struct.vector) align 4 %81, ptr noundef %82, ptr noundef %83, float noundef 0x3FB99999A0000000)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 @_ZL9cameraPos, ptr align 4 %81, i64 12, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 12, ptr %81) #9
  br label %317

317:                                              ; preds = %313, %308
  call void @llvm.lifetime.start.p0(i64 4, ptr %84) #9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %85, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  call void @_ZN6vectorIfLi3EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %86, i32 noundef 0, i32 noundef 1, i32 noundef 0)
  %318 = call noundef float @_ZL26getDistanceToNearestObject6vectorIfLi3EES0_(ptr noundef %85, ptr noundef %86)
  store float %318, ptr %84, align 4, !tbaa !9
  %319 = load float, ptr %84, align 4, !tbaa !9
  %320 = fcmp olt float %319, 0x3F847AE140000000
  br i1 %320, label %321, label %324

321:                                              ; preds = %317
  %322 = load float, ptr @_ZL9velocityY, align 4, !tbaa !9
  %323 = call noundef float @_Z3minIfET_S0_S0_(float noundef 0.000000e+00, float noundef %322)
  store float %323, ptr @_ZL9velocityY, align 4, !tbaa !9
  br label %324

324:                                              ; preds = %321, %317
  call void @llvm.lifetime.start.p0(i64 4, ptr %87) #9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %88, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  call void @_ZN6vectorIfLi3EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %89, i32 noundef 0, i32 noundef -1, i32 noundef 0)
  %325 = call noundef float @_ZL26getDistanceToNearestObject6vectorIfLi3EES0_(ptr noundef %88, ptr noundef %89)
  store float %325, ptr %87, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %90) #9
  %326 = load float, ptr %87, align 4, !tbaa !9
  store float %326, ptr %90, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %91) #9
  store float 2.500000e-01, ptr %91, align 4, !tbaa !9
  %327 = load float, ptr %90, align 4, !tbaa !9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %93, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  %328 = load float, ptr %91, align 4, !tbaa !9
  %329 = fneg float %328
  %330 = load float, ptr %91, align 4, !tbaa !9
  %331 = fneg float %330
  call void @_ZN6vectorIfLi3EEC2IfifEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %94, float noundef %329, i32 noundef 0, float noundef %331)
  call void @_ZplIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %92, ptr noundef %93, ptr noundef %94)
  call void @_ZN6vectorIfLi3EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %95, i32 noundef 0, i32 noundef -1, i32 noundef 0)
  %332 = call noundef float @_ZL26getDistanceToNearestObject6vectorIfLi3EES0_(ptr noundef %92, ptr noundef %95)
  %333 = call noundef float @_Z3minIfET_S0_S0_(float noundef %327, float noundef %332)
  store float %333, ptr %90, align 4, !tbaa !9
  %334 = load float, ptr %90, align 4, !tbaa !9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %97, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  %335 = load float, ptr %91, align 4, !tbaa !9
  %336 = fneg float %335
  %337 = load float, ptr %91, align 4, !tbaa !9
  call void @_ZN6vectorIfLi3EEC2IfifEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %98, float noundef %336, i32 noundef 0, float noundef %337)
  call void @_ZplIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %96, ptr noundef %97, ptr noundef %98)
  call void @_ZN6vectorIfLi3EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %99, i32 noundef 0, i32 noundef -1, i32 noundef 0)
  %338 = call noundef float @_ZL26getDistanceToNearestObject6vectorIfLi3EES0_(ptr noundef %96, ptr noundef %99)
  %339 = call noundef float @_Z3minIfET_S0_S0_(float noundef %334, float noundef %338)
  store float %339, ptr %90, align 4, !tbaa !9
  %340 = load float, ptr %90, align 4, !tbaa !9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %101, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  %341 = load float, ptr %91, align 4, !tbaa !9
  %342 = load float, ptr %91, align 4, !tbaa !9
  %343 = fneg float %342
  call void @_ZN6vectorIfLi3EEC2IfifEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %102, float noundef %341, i32 noundef 0, float noundef %343)
  call void @_ZplIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %100, ptr noundef %101, ptr noundef %102)
  call void @_ZN6vectorIfLi3EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %103, i32 noundef 0, i32 noundef -1, i32 noundef 0)
  %344 = call noundef float @_ZL26getDistanceToNearestObject6vectorIfLi3EES0_(ptr noundef %100, ptr noundef %103)
  %345 = call noundef float @_Z3minIfET_S0_S0_(float noundef %340, float noundef %344)
  store float %345, ptr %90, align 4, !tbaa !9
  %346 = load float, ptr %90, align 4, !tbaa !9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %105, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  %347 = load float, ptr %91, align 4, !tbaa !9
  %348 = load float, ptr %91, align 4, !tbaa !9
  call void @_ZN6vectorIfLi3EEC2IfifEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %106, float noundef %347, i32 noundef 0, float noundef %348)
  call void @_ZplIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %104, ptr noundef %105, ptr noundef %106)
  call void @_ZN6vectorIfLi3EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %107, i32 noundef 0, i32 noundef -1, i32 noundef 0)
  %349 = call noundef float @_ZL26getDistanceToNearestObject6vectorIfLi3EES0_(ptr noundef %104, ptr noundef %107)
  %350 = call noundef float @_Z3minIfET_S0_S0_(float noundef %346, float noundef %349)
  store float %350, ptr %90, align 4, !tbaa !9
  %351 = load float, ptr %90, align 4, !tbaa !9
  %352 = fcmp ogt float %351, 1.000000e+00
  br i1 %352, label %353, label %359

353:                                              ; preds = %324
  %354 = load double, ptr %2, align 8, !tbaa !5
  %355 = fptrunc double %354 to float
  %356 = load float, ptr @_ZL9velocityY, align 4, !tbaa !9
  %357 = fneg float %355
  %358 = call float @llvm.fmuladd.f32(float %357, float 4.000000e+01, float %356)
  store float %358, ptr @_ZL9velocityY, align 4, !tbaa !9
  br label %359

359:                                              ; preds = %353, %324
  %360 = load float, ptr %87, align 4, !tbaa !9
  %361 = fcmp olt float %360, 0x3FECCCCCC0000000
  br i1 %361, label %362, label %367

362:                                              ; preds = %359
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %108, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  call void @_ZN6vectorIfLi3EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %109, i32 noundef 0, i32 noundef -1, i32 noundef 0)
  %363 = call noundef float @_ZL26getDistanceToNearestObject6vectorIfLi3EES0_(ptr noundef %108, ptr noundef %109)
  store float %363, ptr %84, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %110) #9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %112, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  %364 = load float, ptr %87, align 4, !tbaa !9
  call void @_ZN6vectorIfLi3EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %114, i32 noundef 0, i32 noundef -1, i32 noundef 0)
  call void @_ZmlIfLi3EE6vectorIT_XT0_EES1_S2_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %113, float noundef %364, ptr noundef %114)
  call void @_ZplIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %111, ptr noundef %112, ptr noundef %113)
  call void @_ZN6vectorIfLi3EEC2IifiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %115, i32 noundef 0, float noundef 0x3FECCCCCC0000000, i32 noundef 0)
  call void @_ZplIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind writable sret(%struct.vector) align 4 %110, ptr noundef %111, ptr noundef %115)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 @_ZL9cameraPos, ptr align 4 %110, i64 12, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 12, ptr %110) #9
  %365 = load float, ptr @_ZL9velocityY, align 4, !tbaa !9
  %366 = call noundef float @_Z3maxIfET_S0_S0_(float noundef %365, float noundef 0.000000e+00)
  store float %366, ptr @_ZL9velocityY, align 4, !tbaa !9
  store i8 1, ptr @_ZL15doubleJumpReady, align 1, !tbaa !19
  br label %367

367:                                              ; preds = %362, %359
  call void @llvm.lifetime.end.p0(i64 4, ptr %91) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %90) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %87) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %84) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #9
  br label %370

368:                                              ; preds = %213
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %116, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %369 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZpLIfLi3EER6vectorIT_XT0_EES3_S2_(ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos, ptr noundef %116)
  br label %370

370:                                              ; preds = %368, %367
  call void @llvm.lifetime.start.p0(i64 4, ptr %117) #9
  %371 = call double @glfwGetTime()
  %372 = fptrunc double %371 to float
  store float %372, ptr %117, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %118) #9
  store i64 0, ptr %118, align 8, !tbaa !21
  br label %373

373:                                              ; preds = %458, %370
  %374 = load i64, ptr %118, align 8, !tbaa !21
  %375 = call noundef i64 @_ZN13GpuSyncedListI5LightE6lengthEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZL6lights)
  %376 = icmp ult i64 %374, %375
  br i1 %376, label %378, label %377

377:                                              ; preds = %373
  call void @llvm.lifetime.end.p0(i64 8, ptr %118) #9
  br label %461

378:                                              ; preds = %373
  call void @llvm.lifetime.start.p0(i64 32, ptr %119) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %120) #9
  %379 = load i64, ptr %118, align 8, !tbaa !21
  %380 = call { ptr, i64 } @_ZN13GpuSyncedListI5LightEixEm(ptr noundef nonnull align 8 dereferenceable(80) @_ZL6lights, i64 noundef %379)
  %381 = getelementptr inbounds { ptr, i64 }, ptr %120, i32 0, i32 0
  %382 = extractvalue { ptr, i64 } %380, 0
  store ptr %382, ptr %381, align 8
  %383 = getelementptr inbounds { ptr, i64 }, ptr %120, i32 0, i32 1
  %384 = extractvalue { ptr, i64 } %380, 1
  store i64 %384, ptr %383, align 8
  call void @_ZN13GpuSyncedListI5LightE7WrappercvS0_Ev(ptr dead_on_unwind writable sret(%struct.Light) align 16 %119, ptr noundef nonnull align 8 dereferenceable(16) %120)
  call void @llvm.lifetime.end.p0(i64 16, ptr %120) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %121) #9
  %385 = load i64, ptr %118, align 8, !tbaa !21
  %386 = getelementptr inbounds [100 x %struct.Light], ptr @_ZL11lightBuffer, i64 0, i64 %385
  %387 = getelementptr inbounds %struct.Light, ptr %386, i32 0, i32 2
  %388 = getelementptr inbounds %struct.vector, ptr %387, i32 0, i32 0
  %389 = getelementptr inbounds %struct.anon, ptr %388, i32 0, i32 0
  %390 = load float, ptr %389, align 16, !tbaa !13
  store float %390, ptr %121, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %122) #9
  %391 = load i64, ptr %118, align 8, !tbaa !21
  %392 = getelementptr inbounds [100 x %struct.Light], ptr @_ZL11lightBuffer, i64 0, i64 %391
  %393 = getelementptr inbounds %struct.Light, ptr %392, i32 0, i32 2
  %394 = getelementptr inbounds %struct.vector, ptr %393, i32 0, i32 0
  %395 = getelementptr inbounds %struct.anon, ptr %394, i32 0, i32 1
  %396 = load float, ptr %395, align 4, !tbaa !13
  store float %396, ptr %122, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %123) #9
  %397 = load float, ptr %121, align 4, !tbaa !9
  %398 = load float, ptr %122, align 4, !tbaa !9
  %399 = fadd float %397, %398
  %400 = fmul float 0x3FD99999A0000000, %399
  %401 = load i64, ptr %118, align 8, !tbaa !21
  %402 = getelementptr inbounds [100 x %struct.Light], ptr @_ZL11lightBuffer, i64 0, i64 %401
  %403 = getelementptr inbounds %struct.Light, ptr %402, i32 0, i32 2
  %404 = getelementptr inbounds %struct.vector, ptr %403, i32 0, i32 0
  %405 = getelementptr inbounds %struct.anon, ptr %404, i32 0, i32 2
  %406 = load float, ptr %405, align 8, !tbaa !13
  %407 = fmul float %400, %406
  %408 = call noundef float @_Z3maxIfET_S0_S0_(float noundef 0x3FD99999A0000000, float noundef %407)
  store float %408, ptr %123, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %124) #9
  %409 = load float, ptr %122, align 4, !tbaa !9
  %410 = load float, ptr %122, align 4, !tbaa !9
  %411 = fsub float %409, %410
  %412 = fmul float 0x3FE99999A0000000, %411
  %413 = load i64, ptr %118, align 8, !tbaa !21
  %414 = getelementptr inbounds [100 x %struct.Light], ptr @_ZL11lightBuffer, i64 0, i64 %413
  %415 = getelementptr inbounds %struct.Light, ptr %414, i32 0, i32 2
  %416 = getelementptr inbounds %struct.vector, ptr %415, i32 0, i32 0
  %417 = getelementptr inbounds %struct.anon, ptr %416, i32 0, i32 2
  %418 = load float, ptr %417, align 8, !tbaa !13
  %419 = fmul float %412, %418
  %420 = call noundef float @_Z3maxIfET_S0_S0_(float noundef 0x3FD99999A0000000, float noundef %419)
  store float %420, ptr %124, align 4, !tbaa !9
  %421 = load i64, ptr %118, align 8, !tbaa !21
  %422 = getelementptr inbounds [100 x %struct.Light], ptr @_ZL11lightBuffer, i64 0, i64 %421
  %423 = getelementptr inbounds %struct.Light, ptr %422, i32 0, i32 0
  %424 = getelementptr inbounds %struct.vector, ptr %423, i32 0, i32 0
  %425 = getelementptr inbounds %struct.anon, ptr %424, i32 0, i32 0
  %426 = load float, ptr %425, align 16, !tbaa !13
  %427 = load float, ptr %123, align 4, !tbaa !9
  %428 = load float, ptr %121, align 4, !tbaa !9
  %429 = load float, ptr %117, align 4, !tbaa !9
  %430 = fmul float %428, %429
  %431 = call noundef float @_ZSt3cosf(float noundef %430)
  %432 = call float @llvm.fmuladd.f32(float %427, float %431, float %426)
  %433 = getelementptr inbounds %struct.Light, ptr %119, i32 0, i32 0
  %434 = getelementptr inbounds %struct.vector, ptr %433, i32 0, i32 0
  %435 = getelementptr inbounds %struct.anon, ptr %434, i32 0, i32 0
  store float %432, ptr %435, align 16, !tbaa !13
  %436 = load i64, ptr %118, align 8, !tbaa !21
  %437 = getelementptr inbounds [100 x %struct.Light], ptr @_ZL11lightBuffer, i64 0, i64 %436
  %438 = getelementptr inbounds %struct.Light, ptr %437, i32 0, i32 0
  %439 = getelementptr inbounds %struct.vector, ptr %438, i32 0, i32 0
  %440 = getelementptr inbounds %struct.anon, ptr %439, i32 0, i32 2
  %441 = load float, ptr %440, align 8, !tbaa !13
  %442 = load float, ptr %124, align 4, !tbaa !9
  %443 = load float, ptr %122, align 4, !tbaa !9
  %444 = load float, ptr %117, align 4, !tbaa !9
  %445 = fmul float %443, %444
  %446 = call noundef float @_ZSt3sinf(float noundef %445)
  %447 = call float @llvm.fmuladd.f32(float %442, float %446, float %441)
  %448 = getelementptr inbounds %struct.Light, ptr %119, i32 0, i32 0
  %449 = getelementptr inbounds %struct.vector, ptr %448, i32 0, i32 0
  %450 = getelementptr inbounds %struct.anon, ptr %449, i32 0, i32 2
  store float %447, ptr %450, align 8, !tbaa !13
  call void @_ZN5LightC2ERKS_(ptr noundef nonnull align 16 dereferenceable(28) %125, ptr noundef nonnull align 16 dereferenceable(28) %119)
  call void @llvm.lifetime.start.p0(i64 16, ptr %126) #9
  %451 = load i64, ptr %118, align 8, !tbaa !21
  %452 = call { ptr, i64 } @_ZN13GpuSyncedListI5LightEixEm(ptr noundef nonnull align 8 dereferenceable(80) @_ZL6lights, i64 noundef %451)
  %453 = getelementptr inbounds { ptr, i64 }, ptr %126, i32 0, i32 0
  %454 = extractvalue { ptr, i64 } %452, 0
  store ptr %454, ptr %453, align 8
  %455 = getelementptr inbounds { ptr, i64 }, ptr %126, i32 0, i32 1
  %456 = extractvalue { ptr, i64 } %452, 1
  store i64 %456, ptr %455, align 8
  %457 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN13GpuSyncedListI5LightE7WrapperaSES0_(ptr noundef nonnull align 8 dereferenceable(16) %126, ptr noundef %125)
  call void @llvm.lifetime.end.p0(i64 16, ptr %126) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %124) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %123) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %122) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %121) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %119) #9
  br label %458

458:                                              ; preds = %378
  %459 = load i64, ptr %118, align 8, !tbaa !21
  %460 = add i64 %459, 1
  store i64 %460, ptr %118, align 8, !tbaa !21
  br label %373, !llvm.loop !23

461:                                              ; preds = %377
  %462 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !11
  %463 = load i32, ptr @_ZL25raytraceOutputFramebuffer, align 4, !tbaa !17
  call void %462(i32 noundef 36160, i32 noundef %463)
  %464 = load ptr, ptr @glad_glViewport, align 8, !tbaa !11
  call void %464(i32 noundef 0, i32 noundef 0, i32 noundef 256, i32 noundef 256)
  %465 = load i32, ptr @_ZL14raytraceShader, align 4, !tbaa !17
  call void @_Z10bindShaderj(i32 noundef %465)
  call void @_ZN13GpuSyncedListI5LightE4bindEji(ptr noundef nonnull align 8 dereferenceable(80) @_ZL6lights, i32 noundef 37074, i32 noundef 0)
  call void @_ZN13GpuSyncedListI8MaterialE4bindEji(ptr noundef nonnull align 8 dereferenceable(80) @_ZL9materials, i32 noundef 37074, i32 noundef 1)
  call void @_ZN13GpuSyncedListI5PlaneE4bindEji(ptr noundef nonnull align 8 dereferenceable(80) @_ZL6planes, i32 noundef 37074, i32 noundef 2)
  call void @_ZN13GpuSyncedListI6SphereE4bindEji(ptr noundef nonnull align 8 dereferenceable(80) @_ZL7spheres, i32 noundef 37074, i32 noundef 3)
  call void @_ZN13GpuSyncedListI5VoxelE4bindEji(ptr noundef nonnull align 8 dereferenceable(80) @_ZL6voxels, i32 noundef 37074, i32 noundef 4)
  call void @_ZN13GpuSyncedListI6PortalE4bindEji(ptr noundef nonnull align 8 dereferenceable(80) @_ZL7portals, i32 noundef 37074, i32 noundef 5)
  %466 = load i32, ptr @_ZL12textureAtlas, align 4, !tbaa !17
  call void @_Z16bindTextureArrayjj(i32 noundef %466, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %127) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %128) #9
  %467 = load ptr, ptr @_ZL6window, align 8, !tbaa !11
  call void @glfwGetFramebufferSize(ptr noundef %467, ptr noundef %127, ptr noundef %128)
  call void @llvm.lifetime.start.p0(i64 64, ptr %129) #9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %130, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %131, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraDir)
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %132, ptr noundef nonnull align 4 dereferenceable(12) @_ZL8cameraUp)
  call void @_Z11lookAtMatRHIfE6matrixIT_Li4ELi4EE6vectorIS1_Li3EES4_S4_(ptr dead_on_unwind writable sret(%struct.matrix) align 4 %129, ptr noundef %130, ptr noundef %131, ptr noundef %132)
  %468 = load i32, ptr @_ZL14raytraceShader, align 4, !tbaa !17
  %469 = load i32, ptr %127, align 4, !tbaa !17
  %470 = load i32, ptr %128, align 4, !tbaa !17
  call void @_ZN6vectorIfLi2EEC2IiiEET_T0_(ptr noundef nonnull align 4 dereferenceable(8) %133, i32 noundef %469, i32 noundef %470)
  call void @_Z10setUniformjj6vectorIfLi2EE(i32 noundef %468, i32 noundef 0, ptr noundef %133)
  %471 = load i32, ptr @_ZL14raytraceShader, align 4, !tbaa !17
  %472 = load float, ptr @_ZL15cameraFoveaDist, align 4, !tbaa !9
  call void @_Z10setUniformjjf(i32 noundef %471, i32 noundef 1, float noundef %472)
  %473 = load i32, ptr @_ZL14raytraceShader, align 4, !tbaa !17
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %134, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  call void @_Z10setUniformjj6vectorIfLi3EE(i32 noundef %473, i32 noundef 2, ptr noundef %134)
  %474 = load i32, ptr @_ZL14raytraceShader, align 4, !tbaa !17
  call void @_ZN6matrixIfLi4ELi4EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(64) %137, ptr noundef nonnull align 4 dereferenceable(64) %129)
  call void @_Z7inverseIfE6matrixIT_Li4ELi4EES2_(ptr dead_on_unwind writable sret(%struct.matrix) align 4 %136, ptr noundef %137)
  call void @_ZN6matrixIfLi3ELi3EEC2IfEES_IT_Li4ELi4EE(ptr noundef nonnull align 4 dereferenceable(36) %135, ptr noundef %136)
  call void @_Z10setUniformjj6matrixIfLi3ELi3EE(i32 noundef %474, i32 noundef 3, ptr noundef %135)
  %475 = load i32, ptr @_ZL14raytraceShader, align 4, !tbaa !17
  %476 = call double @glfwGetTime()
  %477 = fptrunc double %476 to float
  call void @_Z10setUniformjjf(i32 noundef %475, i32 noundef 8, float noundef %477)
  %478 = load i32, ptr @_ZL14raytraceShader, align 4, !tbaa !17
  call void @_Z10setUniformjji(i32 noundef %478, i32 noundef 9, i32 noundef 0)
  %479 = load ptr, ptr @glad_glDrawArrays, align 8, !tbaa !11
  call void %479(i32 noundef 5, i32 noundef 0, i32 noundef 4)
  %480 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !11
  call void %480(i32 noundef 36160, i32 noundef 0)
  %481 = load ptr, ptr @glad_glViewport, align 8, !tbaa !11
  %482 = load i32, ptr %127, align 4, !tbaa !17
  %483 = load i32, ptr %128, align 4, !tbaa !17
  call void %481(i32 noundef 0, i32 noundef 0, i32 noundef %482, i32 noundef %483)
  %484 = load i32, ptr @_ZL11paintShader, align 4, !tbaa !17
  call void @_Z10bindShaderj(i32 noundef %484)
  %485 = load i32, ptr @_ZL11paintShader, align 4, !tbaa !17
  call void @_Z10setUniformjji(i32 noundef %485, i32 noundef 0, i32 noundef 0)
  %486 = load i32, ptr @_ZL11paintShader, align 4, !tbaa !17
  %487 = load i32, ptr %127, align 4, !tbaa !17
  %488 = load i32, ptr %128, align 4, !tbaa !17
  call void @_ZN6vectorIfLi2EEC2IiiEET_T0_(ptr noundef nonnull align 4 dereferenceable(8) %138, i32 noundef %487, i32 noundef %488)
  call void @_Z10setUniformjj6vectorIfLi2EE(i32 noundef %486, i32 noundef 1, ptr noundef %138)
  %489 = load i32, ptr @_ZL21raytraceOutputTexture, align 4, !tbaa !17
  call void @_Z11bindTexturejj(i32 noundef %489, i32 noundef 0)
  %490 = load ptr, ptr @glad_glDrawArrays, align 8, !tbaa !11
  call void %490(i32 noundef 5, i32 noundef 0, i32 noundef 4)
  %491 = load ptr, ptr @_ZL6window, align 8, !tbaa !11
  call void @glfwSwapBuffers(ptr noundef %491)
  %492 = load i32, ptr @_ZZ10gameUpdatedE8frameAcc, align 4, !tbaa !17
  %493 = add nsw i32 %492, 1
  store i32 %493, ptr @_ZZ10gameUpdatedE8frameAcc, align 4, !tbaa !17
  %494 = load double, ptr %2, align 8, !tbaa !5
  %495 = load double, ptr @_ZZ10gameUpdatedE7timeAcc, align 8, !tbaa !5
  %496 = fadd double %495, %494
  store double %496, ptr @_ZZ10gameUpdatedE7timeAcc, align 8, !tbaa !5
  br label %497

497:                                              ; preds = %514, %461
  %498 = load double, ptr @_ZZ10gameUpdatedE7timeAcc, align 8, !tbaa !5
  %499 = fcmp oge double %498, 2.500000e-01
  br i1 %499, label %500, label %519

500:                                              ; preds = %497
  call void @llvm.lifetime.start.p0(i64 256, ptr %139) #9
  %501 = getelementptr inbounds [256 x i8], ptr %139, i64 0, i64 0
  %502 = load i32, ptr @_ZZ10gameUpdatedE8frameAcc, align 4, !tbaa !17
  %503 = sitofp i32 %502 to double
  %504 = load double, ptr @_ZZ10gameUpdatedE7timeAcc, align 8, !tbaa !5
  %505 = fdiv double %503, %504
  %506 = load i32, ptr @_ZL8gameMode, align 4, !tbaa !14
  %507 = icmp eq i32 %506, 0
  br i1 %507, label %508, label %509

508:                                              ; preds = %500
  br label %514

509:                                              ; preds = %500
  %510 = load i32, ptr @_ZL8gameMode, align 4, !tbaa !14
  %511 = icmp eq i32 %510, 1
  %512 = zext i1 %511 to i64
  %513 = select i1 %511, ptr @.str.39, ptr @.str.40
  br label %514

514:                                              ; preds = %509, %508
  %515 = phi ptr [ @.str.38, %508 ], [ %513, %509 ]
  %516 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %501, ptr noundef @.str.37, double noundef %505, ptr noundef %515) #9
  %517 = load ptr, ptr @_ZL6window, align 8, !tbaa !11
  %518 = getelementptr inbounds [256 x i8], ptr %139, i64 0, i64 0
  call void @glfwSetWindowTitle(ptr noundef %517, ptr noundef %518)
  store double 0.000000e+00, ptr @_ZZ10gameUpdatedE7timeAcc, align 8, !tbaa !5
  store i32 0, ptr @_ZZ10gameUpdatedE8frameAcc, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 256, ptr %139) #9
  br label %497, !llvm.loop !25

519:                                              ; preds = %497
  call void @llvm.lifetime.end.p0(i64 64, ptr %129) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %128) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %127) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %117) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  ret void
}

declare i32 @glfwGetKey(ptr noundef, i32 noundef) #6

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3any6vectorIbLi3EE(ptr noundef) #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZneIfE6vectorIbLi3EES0_IT_Li3EES3_(ptr dead_on_unwind noalias writable sret(%struct.vector.55) align 1, ptr noundef, ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL16getClosestPortal6vectorIfLi3EE(ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13GpuSyncedListI6PortalE7WrappercvS0_Ev(ptr dead_on_unwind noalias writable sret(%struct.Portal) align 16, ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZL9intersect3Ray6Portal(ptr noundef, ptr noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZngIfE6vectorIT_Li3EES2_(ptr dead_on_unwind noalias writable sret(%struct.vector) align 4, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL15getPortalMatrix6Portal(ptr dead_on_unwind noalias writable sret(%struct.matrix.64) align 4, ptr noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZmlIfLi3EE6vectorIT_XT0_EES2_S1_(ptr dead_on_unwind noalias writable sret(%struct.vector) align 4, ptr noundef, float noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZmlIfE6vectorIT_Li3EE6matrixIS1_Li3ELi3EES2_(ptr dead_on_unwind noalias writable sret(%struct.vector) align 4, ptr noundef, ptr noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZmlIfE6matrixIT_Li3ELi3EES2_S2_(ptr dead_on_unwind noalias writable sret(%struct.matrix.64) align 4, ptr noundef, ptr noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z7inverseIfE6matrixIT_Li3ELi3EES2_(ptr dead_on_unwind noalias writable sret(%struct.matrix.64) align 4, ptr noundef) #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZmiIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind noalias writable sret(%struct.vector) align 4, ptr noundef, ptr noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4atanf(float noundef) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt5atan2ff(float noundef, float noundef) #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22moveWithCollisionCheck6vectorIfLi3EES0_f(ptr dead_on_unwind noalias writable sret(%struct.vector) align 4, ptr noundef, ptr noundef, float noundef) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6vectorIfLi3EEC2IifiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, float noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_Z8distanceIfLi3EET_6vectorIS0_XT0_EES2_(ptr noundef, ptr noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6vectorIfLi3EEC2IfiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12), float noundef, i32 noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6vectorIfLi3EEC2IiifEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef, float noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZL26getDistanceToNearestObject6vectorIfLi3EES0_(ptr noundef, ptr noundef) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z3minIfET_S0_S0_(float noundef, float noundef) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6vectorIfLi3EEC2IfifEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12), float noundef, i32 noundef, float noundef) unnamed_addr #0 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z3maxIfET_S0_S0_(float noundef, float noundef) #0

declare double @glfwGetTime() #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZN13GpuSyncedListI5LightEixEm(ptr noundef nonnull align 8 dereferenceable(80), i64 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13GpuSyncedListI5LightE7WrappercvS0_Ev(ptr dead_on_unwind noalias writable sret(%struct.Light) align 16, ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3cosf(float noundef) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3sinf(float noundef) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN13GpuSyncedListI5LightE7WrapperaSES0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #5 align 2

declare void @_Z10bindShaderj(i32 noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13GpuSyncedListI5LightE4bindEji(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13GpuSyncedListI8MaterialE4bindEji(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13GpuSyncedListI5PlaneE4bindEji(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13GpuSyncedListI6SphereE4bindEji(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13GpuSyncedListI5VoxelE4bindEji(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13GpuSyncedListI6PortalE4bindEji(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef) #5 align 2

declare void @_Z16bindTextureArrayjj(i32 noundef, i32 noundef) #6

declare void @glfwGetFramebufferSize(ptr noundef, ptr noundef, ptr noundef) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z11lookAtMatRHIfE6matrixIT_Li4ELi4EE6vectorIS1_Li3EES4_S4_(ptr dead_on_unwind noalias writable sret(%struct.matrix) align 4, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10setUniformjj6vectorIfLi2EE(i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10setUniformjjf(i32 noundef, i32 noundef, float noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10setUniformjj6vectorIfLi3EE(i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10setUniformjj6matrixIfLi3ELi3EE(i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z7inverseIfE6matrixIT_Li4ELi4EES2_(ptr dead_on_unwind noalias writable sret(%struct.matrix) align 4, ptr noundef) #1

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

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

declare void @_Z11bindTexturejj(i32 noundef, i32 noundef) #6

declare void @glfwSwapBuffers(ptr noundef) #6

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #8

declare void @glfwSetWindowTitle(ptr noundef, ptr noundef) #6

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"_ZTS8GameMode", !7, i64 0}
!16 = !{i64 0, i64 12, !13}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"long", !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}


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

%struct.GpuSyncedList = type { i32, i64, %"class.std::vector", %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Light, std::allocator<Light>>::_Vector_impl" }
%"struct.std::_Vector_base<Light, std::allocator<Light>>::_Vector_impl" = type { %"struct.std::_Vector_base<Light, std::allocator<Light>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Light, std::allocator<Light>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%struct.GpuSyncedList.4 = type { i32, i64, %"class.std::vector.5", %"class.std::vector.0" }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<Material, std::allocator<Material>>::_Vector_impl" }
%"struct.std::_Vector_base<Material, std::allocator<Material>>::_Vector_impl" = type { %"struct.std::_Vector_base<Material, std::allocator<Material>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Material, std::allocator<Material>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.GpuSyncedList.10 = type { i32, i64, %"class.std::vector.11", %"class.std::vector.0" }
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<Plane, std::allocator<Plane>>::_Vector_impl" }
%"struct.std::_Vector_base<Plane, std::allocator<Plane>>::_Vector_impl" = type { %"struct.std::_Vector_base<Plane, std::allocator<Plane>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Plane, std::allocator<Plane>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.GpuSyncedList.16 = type { i32, i64, %"class.std::vector.17", %"class.std::vector.0" }
%"class.std::vector.17" = type { %"struct.std::_Vector_base.18" }
%"struct.std::_Vector_base.18" = type { %"struct.std::_Vector_base<Sphere, std::allocator<Sphere>>::_Vector_impl" }
%"struct.std::_Vector_base<Sphere, std::allocator<Sphere>>::_Vector_impl" = type { %"struct.std::_Vector_base<Sphere, std::allocator<Sphere>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Sphere, std::allocator<Sphere>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.GpuSyncedList.22 = type { i32, i64, %"class.std::vector.23", %"class.std::vector.0" }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<Voxel, std::allocator<Voxel>>::_Vector_impl" }
%"struct.std::_Vector_base<Voxel, std::allocator<Voxel>>::_Vector_impl" = type { %"struct.std::_Vector_base<Voxel, std::allocator<Voxel>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Voxel, std::allocator<Voxel>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.GpuSyncedList.28 = type { i32, i64, %"class.std::vector.29", %"class.std::vector.0" }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<Portal, std::allocator<Portal>>::_Vector_impl" }
%"struct.std::_Vector_base<Portal, std::allocator<Portal>>::_Vector_impl" = type { %"struct.std::_Vector_base<Portal, std::allocator<Portal>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Portal, std::allocator<Portal>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.vector = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float, float }
%struct.Light = type { %struct.vector, [4 x i8], %struct.vector, [4 x i8] }
%struct.vector.55 = type { %union.anon.56 }
%union.anon.56 = type { %struct.anon.57 }
%struct.anon.57 = type { i8, i8, i8 }
%struct.Ray = type { %struct.vector, %struct.vector }
%struct.Portal = type { %struct.vector, [4 x i8], %struct.vector, float }
%"struct.GpuSyncedList<Portal>::Wrapper" = type { ptr, i64 }
%struct.matrix.64 = type { [3 x %struct.vector] }
%"struct.GpuSyncedList<Light>::Wrapper" = type { ptr, i64 }
%struct.matrix = type { [4 x %struct.vector.40] }
%struct.vector.40 = type { %union.anon.41 }
%union.anon.41 = type { %struct.anon.42 }
%struct.anon.42 = type { float, float, float, float }
%struct.vector.35 = type { %union.anon.36 }
%union.anon.36 = type { %struct.anon.37 }
%struct.anon.37 = type { float, float }

@_ZL6lights = external hidden global %struct.GpuSyncedList, align 8
@_ZL9materials = external hidden global %struct.GpuSyncedList.4, align 8
@_ZL6planes = external hidden global %struct.GpuSyncedList.10, align 8
@_ZL7spheres = external hidden global %struct.GpuSyncedList.16, align 8
@_ZL6voxels = external hidden global %struct.GpuSyncedList.22, align 8
@_ZL7portals = external hidden global %struct.GpuSyncedList.28, align 8
@_ZL9cameraPos = external hidden global %struct.vector, align 4
@_ZL9cameraDir = external hidden global %struct.vector, align 4
@_ZL8cameraUp = external hidden global %struct.vector, align 4
@_ZL11cameraRight = external hidden global %struct.vector, align 4
@_ZL11lightBuffer = external hidden local_unnamed_addr global [100 x %struct.Light], align 16
@_ZL6window = external hidden local_unnamed_addr global ptr, align 8
@_ZL9velocityY = external hidden local_unnamed_addr global float, align 4
@_ZL15doubleJumpReady = external hidden local_unnamed_addr global i8, align 1
@_ZL8gameMode = external hidden local_unnamed_addr global i32, align 4
@_ZL11cameraPitch = external hidden local_unnamed_addr global float, align 4
@_ZL9cameraYaw = external hidden local_unnamed_addr global float, align 4
@_ZL15cameraFoveaDist = external hidden local_unnamed_addr global float, align 4
@_ZL25raytraceOutputFramebuffer = external hidden local_unnamed_addr global i32, align 4
@glad_glBindFramebuffer = external local_unnamed_addr global ptr, align 8
@_ZL21raytraceOutputTexture = external hidden local_unnamed_addr global i32, align 4
@_ZL12textureAtlas = external hidden local_unnamed_addr global i32, align 4
@_ZL14raytraceShader = external hidden local_unnamed_addr global i32, align 4
@_ZL11paintShader = external hidden local_unnamed_addr global i32, align 4
@glad_glViewport = external local_unnamed_addr global ptr, align 8
@glad_glDrawArrays = external local_unnamed_addr global ptr, align 8
@_ZZ10gameUpdatedE8frameAcc = external hidden local_unnamed_addr global i32, align 4
@_ZZ10gameUpdatedE7timeAcc = external hidden local_unnamed_addr global double, align 8
@.str.37 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [4 x i8], align 1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z9normalizeIfLi3EE6vectorIT_XT0_EES2_(ptr dead_on_unwind noalias writable sret(%struct.vector) align 4, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z5crossIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind noalias writable sret(%struct.vector) align 4, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZpLIfLi3EER6vectorIT_XT0_EES3_S2_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZmlIfLi3EE6vectorIT_XT0_EES1_S2_(ptr dead_on_unwind noalias writable sret(%struct.vector) align 4, float noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZN13GpuSyncedListI6PortalEixEm(ptr noundef nonnull align 8 dereferenceable(80), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZplIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind noalias writable sret(%struct.vector) align 4, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6vectorIfLi2EEC2IiiEET_T0_(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10gameUpdated(double noundef %0) local_unnamed_addr #5 {
  %2 = alloca %struct.vector, align 4
  %3 = alloca %struct.vector.55, align 1
  %4 = alloca %struct.vector, align 4
  %5 = alloca %struct.vector, align 4
  %6 = alloca %struct.vector, align 4
  %7 = alloca %struct.vector, align 4
  %8 = alloca %struct.vector, align 4
  %9 = alloca %struct.vector, align 4
  %10 = alloca %struct.vector, align 4
  %11 = alloca %struct.vector, align 4
  %12 = alloca %struct.vector, align 4
  %13 = alloca %struct.vector, align 4
  %14 = alloca %struct.vector, align 4
  %15 = alloca %struct.vector, align 4
  %16 = alloca %struct.vector, align 4
  %17 = alloca %struct.vector, align 4
  %18 = alloca %struct.vector, align 4
  %19 = alloca %struct.vector, align 4
  %20 = alloca %struct.Ray, align 4
  %21 = alloca %struct.vector, align 4
  %22 = alloca %struct.vector, align 4
  %23 = alloca %struct.Portal, align 16
  %24 = alloca %"struct.GpuSyncedList<Portal>::Wrapper", align 8
  %25 = alloca %struct.Portal, align 16
  %26 = alloca %"struct.GpuSyncedList<Portal>::Wrapper", align 8
  %27 = alloca %struct.Ray, align 4
  %28 = alloca %struct.Portal, align 16
  %29 = alloca %struct.vector, align 4
  %30 = alloca %struct.vector, align 4
  %31 = alloca %struct.matrix.64, align 4
  %32 = alloca %struct.Portal, align 16
  %33 = alloca %struct.matrix.64, align 4
  %34 = alloca %struct.Portal, align 16
  %35 = alloca %struct.vector, align 4
  %36 = alloca %struct.vector, align 4
  %37 = alloca %struct.vector, align 4
  %38 = alloca %struct.vector, align 4
  %39 = alloca %struct.vector, align 4
  %40 = alloca %struct.vector, align 4
  %41 = alloca %struct.vector, align 4
  %42 = alloca %struct.matrix.64, align 4
  %43 = alloca %struct.matrix.64, align 4
  %44 = alloca %struct.matrix.64, align 4
  %45 = alloca %struct.matrix.64, align 4
  %46 = alloca %struct.vector, align 4
  %47 = alloca %struct.vector, align 4
  %48 = alloca %struct.vector, align 4
  %49 = alloca %struct.vector, align 4
  %50 = alloca %struct.vector, align 4
  %51 = alloca %struct.matrix.64, align 4
  %52 = alloca %struct.matrix.64, align 4
  %53 = alloca %struct.matrix.64, align 4
  %54 = alloca %struct.matrix.64, align 4
  %55 = alloca %struct.vector, align 4
  %56 = alloca %struct.vector, align 4
  %57 = alloca %struct.vector, align 4
  %58 = alloca %struct.vector, align 4
  %59 = alloca %struct.vector, align 4
  %60 = alloca %struct.vector, align 4
  %61 = alloca %struct.vector, align 4
  %62 = alloca %struct.vector, align 4
  %63 = alloca %struct.vector, align 4
  %64 = alloca %struct.vector, align 4
  %65 = alloca %struct.vector, align 4
  %66 = alloca %struct.vector, align 4
  %67 = alloca %struct.vector, align 4
  %68 = alloca %struct.vector, align 4
  %69 = alloca %struct.vector, align 4
  %70 = alloca %struct.vector, align 4
  %71 = alloca %struct.vector, align 4
  %72 = alloca %struct.vector, align 4
  %73 = alloca %struct.vector, align 4
  %74 = alloca %struct.vector, align 4
  %75 = alloca %struct.vector, align 4
  %76 = alloca %struct.vector, align 4
  %77 = alloca %struct.vector, align 4
  %78 = alloca %struct.vector, align 4
  %79 = alloca %struct.vector, align 4
  %80 = alloca %struct.vector, align 4
  %81 = alloca %struct.vector, align 4
  %82 = alloca %struct.vector, align 4
  %83 = alloca %struct.vector, align 4
  %84 = alloca %struct.vector, align 4
  %85 = alloca %struct.vector, align 4
  %86 = alloca %struct.vector, align 4
  %87 = alloca %struct.vector, align 4
  %88 = alloca %struct.vector, align 4
  %89 = alloca %struct.vector, align 4
  %90 = alloca %struct.vector, align 4
  %91 = alloca %struct.vector, align 4
  %92 = alloca %struct.vector, align 4
  %93 = alloca %struct.vector, align 4
  %94 = alloca %struct.vector, align 4
  %95 = alloca %struct.vector, align 4
  %96 = alloca %struct.vector, align 4
  %97 = alloca %struct.vector, align 4
  %98 = alloca %struct.vector, align 4
  %99 = alloca %struct.vector, align 4
  %100 = alloca %struct.vector, align 4
  %101 = alloca %struct.vector, align 4
  %102 = alloca %struct.vector, align 4
  %103 = alloca %struct.vector, align 4
  %104 = alloca %struct.vector, align 4
  %105 = alloca %struct.vector, align 4
  %106 = alloca %struct.vector, align 4
  %107 = alloca %struct.vector, align 4
  %108 = alloca %struct.vector, align 4
  %109 = alloca %struct.Light, align 16
  %110 = alloca %"struct.GpuSyncedList<Light>::Wrapper", align 8
  %111 = alloca %struct.Light, align 16
  %112 = alloca %"struct.GpuSyncedList<Light>::Wrapper", align 8
  %113 = alloca i32, align 4
  %114 = alloca i32, align 4
  %115 = alloca %struct.matrix, align 4
  %116 = alloca %struct.vector, align 4
  %117 = alloca %struct.vector, align 4
  %118 = alloca %struct.vector, align 4
  %119 = alloca %struct.vector.35, align 4
  %120 = alloca %struct.vector, align 4
  %121 = alloca %struct.matrix.64, align 4
  %122 = alloca %struct.matrix, align 4
  %123 = alloca %struct.matrix, align 4
  %124 = alloca %struct.vector.35, align 4
  %125 = alloca [256 x i8], align 16
  %126 = fptrunc double %0 to float
  %127 = fmul float %126, 5.000000e+00
  %128 = load ptr, ptr @_ZL6window, align 8, !tbaa !5
  %129 = tail call i32 @glfwGetKey(ptr noundef %128, i32 noundef 340)
  %130 = icmp eq i32 %129, 1
  %131 = fmul float %127, 2.000000e+00
  %.0 = select i1 %130, float %131, float %127
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #9
  call void @_ZN6vectorIfLi3EEC2IiEET_(ptr noundef nonnull align 4 dereferenceable(12) %2, i32 noundef 0)
  %132 = load ptr, ptr @_ZL6window, align 8, !tbaa !5
  %133 = call i32 @glfwGetKey(ptr noundef %132, i32 noundef 87)
  %134 = icmp eq i32 %133, 1
  br i1 %134, label %135, label %139

135:                                              ; preds = %1
  %136 = getelementptr inbounds i8, ptr %2, i64 8
  %137 = load float, ptr %136, align 4, !tbaa !9
  %138 = fadd float %137, 1.000000e+00
  store float %138, ptr %136, align 4, !tbaa !9
  br label %139

139:                                              ; preds = %135, %1
  %140 = load ptr, ptr @_ZL6window, align 8, !tbaa !5
  %141 = call i32 @glfwGetKey(ptr noundef %140, i32 noundef 83)
  %142 = icmp eq i32 %141, 1
  br i1 %142, label %143, label %147

143:                                              ; preds = %139
  %144 = getelementptr inbounds i8, ptr %2, i64 8
  %145 = load float, ptr %144, align 4, !tbaa !9
  %146 = fadd float %145, -1.000000e+00
  store float %146, ptr %144, align 4, !tbaa !9
  br label %147

147:                                              ; preds = %143, %139
  %148 = load ptr, ptr @_ZL6window, align 8, !tbaa !5
  %149 = call i32 @glfwGetKey(ptr noundef %148, i32 noundef 65)
  %150 = icmp eq i32 %149, 1
  br i1 %150, label %151, label %154

151:                                              ; preds = %147
  %152 = load float, ptr %2, align 4, !tbaa !9
  %153 = fadd float %152, -1.000000e+00
  store float %153, ptr %2, align 4, !tbaa !9
  br label %154

154:                                              ; preds = %151, %147
  %155 = load ptr, ptr @_ZL6window, align 8, !tbaa !5
  %156 = call i32 @glfwGetKey(ptr noundef %155, i32 noundef 68)
  %157 = icmp eq i32 %156, 1
  br i1 %157, label %158, label %161

158:                                              ; preds = %154
  %159 = load float, ptr %2, align 4, !tbaa !9
  %160 = fadd float %159, 1.000000e+00
  store float %160, ptr %2, align 4, !tbaa !9
  br label %161

161:                                              ; preds = %158, %154
  %162 = load ptr, ptr @_ZL6window, align 8, !tbaa !5
  %163 = call i32 @glfwGetKey(ptr noundef %162, i32 noundef 341)
  %164 = icmp eq i32 %163, 1
  br i1 %164, label %165, label %169

165:                                              ; preds = %161
  %166 = getelementptr inbounds i8, ptr %2, i64 4
  %167 = load float, ptr %166, align 4, !tbaa !9
  %168 = fadd float %167, -1.000000e+00
  store float %168, ptr %166, align 4, !tbaa !9
  br label %169

169:                                              ; preds = %165, %161
  %170 = load ptr, ptr @_ZL6window, align 8, !tbaa !5
  %171 = call i32 @glfwGetKey(ptr noundef %170, i32 noundef 32)
  %172 = icmp eq i32 %171, 1
  br i1 %172, label %173, label %177

173:                                              ; preds = %169
  %174 = getelementptr inbounds i8, ptr %2, i64 4
  %175 = load float, ptr %174, align 4, !tbaa !9
  %176 = fadd float %175, 1.000000e+00
  store float %176, ptr %174, align 4, !tbaa !9
  br label %177

177:                                              ; preds = %173, %169
  %178 = load i32, ptr @_ZL8gameMode, align 4, !tbaa !10
  %179 = icmp eq i32 %178, 0
  br i1 %179, label %180, label %182

180:                                              ; preds = %177
  %181 = getelementptr inbounds i8, ptr %2, i64 4
  store float 0.000000e+00, ptr %181, align 4, !tbaa !9
  br label %182

182:                                              ; preds = %180, %177
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %2)
  call void @_ZN6vectorIfLi3EEC2IiEET_(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 0)
  call void @_ZneIfE6vectorIbLi3EES0_IT_Li3EES3_(ptr dead_on_unwind nonnull writable sret(%struct.vector.55) align 1 %3, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %183 = call noundef zeroext i1 @_Z3any6vectorIbLi3EE(ptr noundef nonnull %3)
  br i1 %183, label %184, label %185

184:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %2)
  call void @_Z9normalizeIfLi3EE6vectorIT_XT0_EES2_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %7, ptr noundef nonnull %8)
  call void @_ZmlIfLi3EE6vectorIT_XT0_EES1_S2_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %6, float noundef %.0, ptr noundef nonnull %7)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %6, i64 12, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #9
  br label %185

185:                                              ; preds = %184, %182
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #9
  %186 = load float, ptr %2, align 4, !tbaa !9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) @_ZL11cameraRight)
  call void @_ZmlIfLi3EE6vectorIT_XT0_EES1_S2_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %11, float noundef %186, ptr noundef nonnull %12)
  %187 = getelementptr inbounds i8, ptr %2, i64 4
  %188 = load float, ptr %187, align 4, !tbaa !9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) @_ZL8cameraUp)
  call void @_ZmlIfLi3EE6vectorIT_XT0_EES1_S2_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %13, float noundef %188, ptr noundef nonnull %14)
  call void @_ZplIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %10, ptr noundef nonnull %11, ptr noundef nonnull %13)
  %189 = getelementptr inbounds i8, ptr %2, i64 8
  %190 = load float, ptr %189, align 4, !tbaa !9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) @_ZL8cameraUp)
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) @_ZL11cameraRight)
  call void @_Z5crossIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %16, ptr noundef nonnull %17, ptr noundef nonnull %18)
  call void @_ZmlIfLi3EE6vectorIT_XT0_EES1_S2_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %15, float noundef %190, ptr noundef nonnull %16)
  call void @_ZplIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %9, ptr noundef nonnull %10, ptr noundef nonnull %15)
  %191 = load i32, ptr @_ZL8gameMode, align 4, !tbaa !10
  %192 = icmp eq i32 %191, 0
  br i1 %192, label %193, label %279

193:                                              ; preds = %185
  %194 = getelementptr inbounds i8, ptr %9, i64 4
  store float 0.000000e+00, ptr %194, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %19) #9
  %195 = load float, ptr %9, align 4, !tbaa !9
  %196 = load float, ptr @_ZL9velocityY, align 4, !tbaa !13
  %197 = fmul float %196, %126
  %198 = getelementptr inbounds i8, ptr %9, i64 8
  %199 = load float, ptr %198, align 4, !tbaa !9
  call void @_ZN6vectorIfLi3EEC2IfffEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %19, float noundef %195, float noundef %197, float noundef %199)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  %200 = getelementptr inbounds i8, ptr %20, i64 12
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %19)
  call void @_Z9normalizeIfLi3EE6vectorIT_XT0_EES2_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %200, ptr noundef nonnull %21)
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  %201 = call noundef i32 @_ZL16getClosestPortal6vectorIfLi3EE(ptr noundef nonnull %22)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %23) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #9
  %202 = sext i32 %201 to i64
  %203 = call { ptr, i64 } @_ZN13GpuSyncedListI6PortalEixEm(ptr noundef nonnull align 8 dereferenceable(80) @_ZL7portals, i64 noundef %202)
  %204 = extractvalue { ptr, i64 } %203, 0
  store ptr %204, ptr %24, align 8
  %205 = getelementptr inbounds i8, ptr %24, i64 8
  %206 = extractvalue { ptr, i64 } %203, 1
  store i64 %206, ptr %205, align 8
  call void @_ZN13GpuSyncedListI6PortalE7WrappercvS0_Ev(ptr dead_on_unwind nonnull writable sret(%struct.Portal) align 16 %23, ptr noundef nonnull align 8 dereferenceable(16) %24)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %25) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %26) #9
  %207 = sub nsw i64 1, %202
  %208 = call { ptr, i64 } @_ZN13GpuSyncedListI6PortalEixEm(ptr noundef nonnull align 8 dereferenceable(80) @_ZL7portals, i64 noundef %207)
  %209 = extractvalue { ptr, i64 } %208, 0
  store ptr %209, ptr %26, align 8
  %210 = getelementptr inbounds i8, ptr %26, i64 8
  %211 = extractvalue { ptr, i64 } %208, 1
  store i64 %211, ptr %210, align 8
  call void @_ZN13GpuSyncedListI6PortalE7WrappercvS0_Ev(ptr dead_on_unwind nonnull writable sret(%struct.Portal) align 16 %25, ptr noundef nonnull align 8 dereferenceable(16) %26)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #9
  call void @_ZN3RayC2ERKS_(ptr noundef nonnull align 4 dereferenceable(24) %27, ptr noundef nonnull align 4 dereferenceable(24) %20)
  call void @_ZN6PortalC2ERKS_(ptr noundef nonnull align 16 dereferenceable(32) %28, ptr noundef nonnull align 16 dereferenceable(32) %23)
  %212 = call noundef float @_ZL9intersect3Ray6Portal(ptr noundef nonnull %27, ptr noundef nonnull %28)
  %213 = fcmp olt float %212, 5.000000e-01
  br i1 %213, label %214, label %225

214:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %29) #9
  %215 = getelementptr inbounds i8, ptr %23, i64 16
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %30, ptr noundef nonnull align 4 dereferenceable(12) %215)
  call void @_ZngIfE6vectorIT_Li3EES2_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %29, ptr noundef nonnull %30)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(12) %215, ptr noundef nonnull align 4 dereferenceable(12) %29, i64 12, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %29) #9
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %31) #9
  call void @_ZN6PortalC2ERKS_(ptr noundef nonnull align 16 dereferenceable(32) %32, ptr noundef nonnull align 16 dereferenceable(32) %23)
  call void @_ZL15getPortalMatrix6Portal(ptr dead_on_unwind nonnull writable sret(%struct.matrix.64) align 4 %31, ptr noundef nonnull %32)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %33) #9
  call void @_ZN6PortalC2ERKS_(ptr noundef nonnull align 16 dereferenceable(32) %34, ptr noundef nonnull align 16 dereferenceable(32) %25)
  call void @_ZL15getPortalMatrix6Portal(ptr dead_on_unwind nonnull writable sret(%struct.matrix.64) align 4 %33, ptr noundef nonnull %34)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %35) #9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %36, ptr noundef nonnull align 4 dereferenceable(12) %20)
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %38, ptr noundef nonnull align 4 dereferenceable(12) %200)
  call void @_ZmlIfLi3EE6vectorIT_XT0_EES2_S1_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %37, ptr noundef nonnull %38, float noundef %212)
  call void @_ZplIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %35, ptr noundef nonnull %36, ptr noundef nonnull %37)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos, ptr noundef nonnull align 4 dereferenceable(12) %35, i64 12, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %35) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %39) #9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %40, ptr noundef nonnull align 4 dereferenceable(12) %25)
  call void @_ZN6matrixIfLi3ELi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(36) %44, ptr noundef nonnull align 4 dereferenceable(36) %33)
  call void @_Z7inverseIfE6matrixIT_Li3ELi3EES2_(ptr dead_on_unwind nonnull writable sret(%struct.matrix.64) align 4 %43, ptr noundef nonnull %44)
  call void @_ZN6matrixIfLi3ELi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(36) %45, ptr noundef nonnull align 4 dereferenceable(36) %31)
  call void @_ZmlIfE6matrixIT_Li3ELi3EES2_S2_(ptr dead_on_unwind nonnull writable sret(%struct.matrix.64) align 4 %42, ptr noundef nonnull %43, ptr noundef nonnull %45)
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %47, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %48, ptr noundef nonnull align 4 dereferenceable(12) %23)
  call void @_ZmiIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %46, ptr noundef nonnull %47, ptr noundef nonnull %48)
  call void @_ZmlIfE6vectorIT_Li3EE6matrixIS1_Li3ELi3EES2_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %41, ptr noundef nonnull %42, ptr noundef nonnull %46)
  call void @_ZplIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %39, ptr noundef nonnull %40, ptr noundef nonnull %41)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos, ptr noundef nonnull align 4 dereferenceable(12) %39, i64 12, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %39) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %49) #9
  call void @_ZN6matrixIfLi3ELi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(36) %53, ptr noundef nonnull align 4 dereferenceable(36) %33)
  call void @_Z7inverseIfE6matrixIT_Li3ELi3EES2_(ptr dead_on_unwind nonnull writable sret(%struct.matrix.64) align 4 %52, ptr noundef nonnull %53)
  call void @_ZN6matrixIfLi3ELi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(36) %54, ptr noundef nonnull align 4 dereferenceable(36) %31)
  call void @_ZmlIfE6matrixIT_Li3ELi3EES2_S2_(ptr dead_on_unwind nonnull writable sret(%struct.matrix.64) align 4 %51, ptr noundef nonnull %52, ptr noundef nonnull %54)
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %55, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraDir)
  call void @_ZmlIfE6vectorIT_Li3EE6matrixIS1_Li3ELi3EES2_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %50, ptr noundef nonnull %51, ptr noundef nonnull %55)
  call void @_Z9normalizeIfLi3EE6vectorIT_XT0_EES2_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %49, ptr noundef nonnull %50)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraDir, ptr noundef nonnull align 4 dereferenceable(12) %49, i64 12, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %49) #9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %57, ptr noundef nonnull align 4 dereferenceable(12) %200)
  call void @_ZmlIfLi3EE6vectorIT_XT0_EES2_S1_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %56, ptr noundef nonnull %57, float noundef 0x3FB99999A0000000)
  %216 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZpLIfLi3EER6vectorIT_XT0_EES3_S2_(ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos, ptr noundef nonnull %56)
  %217 = load float, ptr getelementptr inbounds (i8, ptr @_ZL9cameraDir, i64 4), align 4, !tbaa !9
  %218 = call noundef float @_ZSt4atanf(float noundef %217)
  store float %218, ptr @_ZL9cameraYaw, align 4, !tbaa !13
  %219 = load float, ptr @_ZL9cameraDir, align 4, !tbaa !9
  %220 = load float, ptr getelementptr inbounds (i8, ptr @_ZL9cameraDir, i64 8), align 4, !tbaa !9
  %221 = call noundef float @_ZSt5atan2ff(float noundef %219, float noundef %220)
  %222 = fadd float %221, 0x400921FB60000000
  store float %222, ptr @_ZL11cameraPitch, align 4, !tbaa !13
  %223 = getelementptr inbounds i8, ptr %25, i64 16
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %59, ptr noundef nonnull align 4 dereferenceable(12) %223)
  call void @_ZmlIfLi3EE6vectorIT_XT0_EES2_S1_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %58, ptr noundef nonnull %59, float noundef 0x3FB99999A0000000)
  %224 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZpLIfLi3EER6vectorIT_XT0_EES3_S2_(ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos, ptr noundef nonnull %58)
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %33) #9
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %31) #9
  br label %225

225:                                              ; preds = %214, %193
  %226 = load float, ptr @_ZL9velocityY, align 4, !tbaa !13
  %227 = fcmp ogt float %226, 0.000000e+00
  br i1 %227, label %228, label %231

228:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %60) #9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %61, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  %229 = load float, ptr @_ZL9velocityY, align 4, !tbaa !13
  %230 = fmul float %229, %126
  call void @_ZN6vectorIfLi3EEC2IifiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %62, i32 noundef 0, float noundef %230, i32 noundef 0)
  call void @_ZL22moveWithCollisionCheck6vectorIfLi3EES0_f(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %60, ptr noundef nonnull %61, ptr noundef nonnull %62, float noundef 0x3F50624DE0000000)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos, ptr noundef nonnull align 4 dereferenceable(12) %60, i64 12, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %60) #9
  br label %241

231:                                              ; preds = %225
  %232 = fcmp olt float %226, 0.000000e+00
  br i1 %232, label %233, label %241

233:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %63) #9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %64, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  call void @_ZN6vectorIfLi3EEC2IifiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %65, i32 noundef 0, float noundef 0x3FECCCCCC0000000, i32 noundef 0)
  call void @_ZmiIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %63, ptr noundef nonnull %64, ptr noundef nonnull %65)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %66) #9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %67, ptr noundef nonnull align 4 dereferenceable(12) %63)
  %234 = load float, ptr @_ZL9velocityY, align 4, !tbaa !13
  %235 = fmul float %234, %126
  call void @_ZN6vectorIfLi3EEC2IifiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %68, i32 noundef 0, float noundef %235, i32 noundef 0)
  call void @_ZL22moveWithCollisionCheck6vectorIfLi3EES0_f(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %66, ptr noundef nonnull %67, ptr noundef nonnull %68, float noundef 0x3F847AE140000000)
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %70, ptr noundef nonnull align 4 dereferenceable(12) %66)
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %71, ptr noundef nonnull align 4 dereferenceable(12) %63)
  call void @_ZmiIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %69, ptr noundef nonnull %70, ptr noundef nonnull %71)
  %236 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZpLIfLi3EER6vectorIT_XT0_EES3_S2_(ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos, ptr noundef nonnull %69)
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %72, ptr noundef nonnull align 4 dereferenceable(12) %63)
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %73, ptr noundef nonnull align 4 dereferenceable(12) %66)
  %237 = call noundef float @_Z8distanceIfLi3EET_6vectorIS0_XT0_EES2_(ptr noundef nonnull %72, ptr noundef nonnull %73)
  %238 = fcmp olt float %237, 0x3F50624DE0000000
  br i1 %238, label %239, label %240

239:                                              ; preds = %233
  store float 0.000000e+00, ptr @_ZL9velocityY, align 4, !tbaa !13
  store i8 1, ptr @_ZL15doubleJumpReady, align 1, !tbaa !15
  br label %240

240:                                              ; preds = %239, %233
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %66) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %63) #9
  br label %241

241:                                              ; preds = %231, %240, %228
  %242 = load float, ptr %9, align 4, !tbaa !9
  %243 = fcmp une float %242, 0.000000e+00
  br i1 %243, label %244, label %246

244:                                              ; preds = %241
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %74) #9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %75, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  %245 = load float, ptr %9, align 4, !tbaa !9
  call void @_ZN6vectorIfLi3EEC2IfiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %76, float noundef %245, i32 noundef 0, i32 noundef 0)
  call void @_ZL22moveWithCollisionCheck6vectorIfLi3EES0_f(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %74, ptr noundef nonnull %75, ptr noundef nonnull %76, float noundef 0x3FB99999A0000000)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos, ptr noundef nonnull align 4 dereferenceable(12) %74, i64 12, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %74) #9
  br label %246

246:                                              ; preds = %244, %241
  %247 = load float, ptr %198, align 4, !tbaa !9
  %248 = fcmp une float %247, 0.000000e+00
  br i1 %248, label %249, label %251

249:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %77) #9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %78, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  %250 = load float, ptr %198, align 4, !tbaa !9
  call void @_ZN6vectorIfLi3EEC2IiifEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %79, i32 noundef 0, i32 noundef 0, float noundef %250)
  call void @_ZL22moveWithCollisionCheck6vectorIfLi3EES0_f(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %77, ptr noundef nonnull %78, ptr noundef nonnull %79, float noundef 0x3FB99999A0000000)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos, ptr noundef nonnull align 4 dereferenceable(12) %77, i64 12, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %77) #9
  br label %251

251:                                              ; preds = %249, %246
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %80, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  call void @_ZN6vectorIfLi3EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %81, i32 noundef 0, i32 noundef 1, i32 noundef 0)
  %252 = call noundef float @_ZL26getDistanceToNearestObject6vectorIfLi3EES0_(ptr noundef nonnull %80, ptr noundef nonnull %81)
  %253 = fcmp olt float %252, 0x3F847AE140000000
  br i1 %253, label %254, label %257

254:                                              ; preds = %251
  %255 = load float, ptr @_ZL9velocityY, align 4, !tbaa !13
  %256 = call noundef float @_Z3minIfET_S0_S0_(float noundef 0.000000e+00, float noundef %255)
  store float %256, ptr @_ZL9velocityY, align 4, !tbaa !13
  br label %257

257:                                              ; preds = %254, %251
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %82, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  call void @_ZN6vectorIfLi3EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %83, i32 noundef 0, i32 noundef -1, i32 noundef 0)
  %258 = call noundef float @_ZL26getDistanceToNearestObject6vectorIfLi3EES0_(ptr noundef nonnull %82, ptr noundef nonnull %83)
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %85, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  call void @_ZN6vectorIfLi3EEC2IfifEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %86, float noundef -2.500000e-01, i32 noundef 0, float noundef -2.500000e-01)
  call void @_ZplIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %84, ptr noundef nonnull %85, ptr noundef nonnull %86)
  call void @_ZN6vectorIfLi3EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %87, i32 noundef 0, i32 noundef -1, i32 noundef 0)
  %259 = call noundef float @_ZL26getDistanceToNearestObject6vectorIfLi3EES0_(ptr noundef nonnull %84, ptr noundef nonnull %87)
  %260 = call noundef float @_Z3minIfET_S0_S0_(float noundef %258, float noundef %259)
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %89, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  call void @_ZN6vectorIfLi3EEC2IfifEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %90, float noundef -2.500000e-01, i32 noundef 0, float noundef 2.500000e-01)
  call void @_ZplIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %88, ptr noundef nonnull %89, ptr noundef nonnull %90)
  call void @_ZN6vectorIfLi3EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %91, i32 noundef 0, i32 noundef -1, i32 noundef 0)
  %261 = call noundef float @_ZL26getDistanceToNearestObject6vectorIfLi3EES0_(ptr noundef nonnull %88, ptr noundef nonnull %91)
  %262 = call noundef float @_Z3minIfET_S0_S0_(float noundef %260, float noundef %261)
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %93, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  call void @_ZN6vectorIfLi3EEC2IfifEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %94, float noundef 2.500000e-01, i32 noundef 0, float noundef -2.500000e-01)
  call void @_ZplIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %92, ptr noundef nonnull %93, ptr noundef nonnull %94)
  call void @_ZN6vectorIfLi3EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %95, i32 noundef 0, i32 noundef -1, i32 noundef 0)
  %263 = call noundef float @_ZL26getDistanceToNearestObject6vectorIfLi3EES0_(ptr noundef nonnull %92, ptr noundef nonnull %95)
  %264 = call noundef float @_Z3minIfET_S0_S0_(float noundef %262, float noundef %263)
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %97, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  call void @_ZN6vectorIfLi3EEC2IfifEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %98, float noundef 2.500000e-01, i32 noundef 0, float noundef 2.500000e-01)
  call void @_ZplIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %96, ptr noundef nonnull %97, ptr noundef nonnull %98)
  call void @_ZN6vectorIfLi3EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %99, i32 noundef 0, i32 noundef -1, i32 noundef 0)
  %265 = call noundef float @_ZL26getDistanceToNearestObject6vectorIfLi3EES0_(ptr noundef nonnull %96, ptr noundef nonnull %99)
  %266 = call noundef float @_Z3minIfET_S0_S0_(float noundef %264, float noundef %265)
  %267 = fcmp ogt float %266, 1.000000e+00
  br i1 %267, label %268, label %272

268:                                              ; preds = %257
  %269 = load float, ptr @_ZL9velocityY, align 4, !tbaa !13
  %270 = fneg float %126
  %271 = call float @llvm.fmuladd.f32(float %270, float 4.000000e+01, float %269)
  store float %271, ptr @_ZL9velocityY, align 4, !tbaa !13
  br label %272

272:                                              ; preds = %268, %257
  %273 = fcmp olt float %258, 0x3FECCCCCC0000000
  br i1 %273, label %274, label %278

274:                                              ; preds = %272
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %100, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  call void @_ZN6vectorIfLi3EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %101, i32 noundef 0, i32 noundef -1, i32 noundef 0)
  %275 = call noundef float @_ZL26getDistanceToNearestObject6vectorIfLi3EES0_(ptr noundef nonnull %100, ptr noundef nonnull %101)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %102) #9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %104, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  call void @_ZN6vectorIfLi3EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %106, i32 noundef 0, i32 noundef -1, i32 noundef 0)
  call void @_ZmlIfLi3EE6vectorIT_XT0_EES1_S2_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %105, float noundef %258, ptr noundef nonnull %106)
  call void @_ZplIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %103, ptr noundef nonnull %104, ptr noundef nonnull %105)
  call void @_ZN6vectorIfLi3EEC2IifiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %107, i32 noundef 0, float noundef 0x3FECCCCCC0000000, i32 noundef 0)
  call void @_ZplIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind nonnull writable sret(%struct.vector) align 4 %102, ptr noundef nonnull %103, ptr noundef nonnull %107)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos, ptr noundef nonnull align 4 dereferenceable(12) %102, i64 12, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %102) #9
  %276 = load float, ptr @_ZL9velocityY, align 4, !tbaa !13
  %277 = call noundef float @_Z3maxIfET_S0_S0_(float noundef %276, float noundef 0.000000e+00)
  store float %277, ptr @_ZL9velocityY, align 4, !tbaa !13
  store i8 1, ptr @_ZL15doubleJumpReady, align 1, !tbaa !15
  br label %278

278:                                              ; preds = %274, %272
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #9
  br label %281

279:                                              ; preds = %185
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %108, ptr noundef nonnull align 4 dereferenceable(12) %9)
  %280 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZpLIfLi3EER6vectorIT_XT0_EES3_S2_(ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos, ptr noundef nonnull %108)
  br label %281

281:                                              ; preds = %279, %278
  %282 = call double @glfwGetTime()
  %283 = fptrunc double %282 to float
  %284 = call noundef i64 @_ZN13GpuSyncedListI5LightE6lengthEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZL6lights)
  %.not = icmp eq i64 %284, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %281
  %285 = getelementptr inbounds i8, ptr %110, i64 8
  %286 = getelementptr inbounds i8, ptr %109, i64 8
  %287 = getelementptr inbounds i8, ptr %112, i64 8
  br label %332

._crit_edge:                                      ; preds = %332, %281
  %288 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !5
  %289 = load i32, ptr @_ZL25raytraceOutputFramebuffer, align 4, !tbaa !17
  call void %288(i32 noundef 36160, i32 noundef %289)
  %290 = load ptr, ptr @glad_glViewport, align 8, !tbaa !5
  call void %290(i32 noundef 0, i32 noundef 0, i32 noundef 256, i32 noundef 256)
  %291 = load i32, ptr @_ZL14raytraceShader, align 4, !tbaa !17
  call void @_Z10bindShaderj(i32 noundef %291)
  call void @_ZN13GpuSyncedListI5LightE4bindEji(ptr noundef nonnull align 8 dereferenceable(80) @_ZL6lights, i32 noundef 37074, i32 noundef 0)
  call void @_ZN13GpuSyncedListI8MaterialE4bindEji(ptr noundef nonnull align 8 dereferenceable(80) @_ZL9materials, i32 noundef 37074, i32 noundef 1)
  call void @_ZN13GpuSyncedListI5PlaneE4bindEji(ptr noundef nonnull align 8 dereferenceable(80) @_ZL6planes, i32 noundef 37074, i32 noundef 2)
  call void @_ZN13GpuSyncedListI6SphereE4bindEji(ptr noundef nonnull align 8 dereferenceable(80) @_ZL7spheres, i32 noundef 37074, i32 noundef 3)
  call void @_ZN13GpuSyncedListI5VoxelE4bindEji(ptr noundef nonnull align 8 dereferenceable(80) @_ZL6voxels, i32 noundef 37074, i32 noundef 4)
  call void @_ZN13GpuSyncedListI6PortalE4bindEji(ptr noundef nonnull align 8 dereferenceable(80) @_ZL7portals, i32 noundef 37074, i32 noundef 5)
  %292 = load i32, ptr @_ZL12textureAtlas, align 4, !tbaa !17
  call void @_Z16bindTextureArrayjj(i32 noundef %292, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %113) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %114) #9
  %293 = load ptr, ptr @_ZL6window, align 8, !tbaa !5
  call void @glfwGetFramebufferSize(ptr noundef %293, ptr noundef nonnull %113, ptr noundef nonnull %114)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %115) #9
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %116, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %117, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraDir)
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %118, ptr noundef nonnull align 4 dereferenceable(12) @_ZL8cameraUp)
  call void @_Z11lookAtMatRHIfE6matrixIT_Li4ELi4EE6vectorIS1_Li3EES4_S4_(ptr dead_on_unwind nonnull writable sret(%struct.matrix) align 4 %115, ptr noundef nonnull %116, ptr noundef nonnull %117, ptr noundef nonnull %118)
  %294 = load i32, ptr @_ZL14raytraceShader, align 4, !tbaa !17
  %295 = load i32, ptr %113, align 4, !tbaa !17
  %296 = load i32, ptr %114, align 4, !tbaa !17
  call void @_ZN6vectorIfLi2EEC2IiiEET_T0_(ptr noundef nonnull align 4 dereferenceable(8) %119, i32 noundef %295, i32 noundef %296)
  call void @_Z10setUniformjj6vectorIfLi2EE(i32 noundef %294, i32 noundef 0, ptr noundef nonnull %119)
  %297 = load i32, ptr @_ZL14raytraceShader, align 4, !tbaa !17
  %298 = load float, ptr @_ZL15cameraFoveaDist, align 4, !tbaa !13
  call void @_Z10setUniformjjf(i32 noundef %297, i32 noundef 1, float noundef %298)
  %299 = load i32, ptr @_ZL14raytraceShader, align 4, !tbaa !17
  call void @_ZN6vectorIfLi3EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %120, ptr noundef nonnull align 4 dereferenceable(12) @_ZL9cameraPos)
  call void @_Z10setUniformjj6vectorIfLi3EE(i32 noundef %299, i32 noundef 2, ptr noundef nonnull %120)
  %300 = load i32, ptr @_ZL14raytraceShader, align 4, !tbaa !17
  call void @_ZN6matrixIfLi4ELi4EEC2ERKS0_(ptr noundef nonnull align 4 dereferenceable(64) %123, ptr noundef nonnull align 4 dereferenceable(64) %115)
  call void @_Z7inverseIfE6matrixIT_Li4ELi4EES2_(ptr dead_on_unwind nonnull writable sret(%struct.matrix) align 4 %122, ptr noundef nonnull %123)
  call void @_ZN6matrixIfLi3ELi3EEC2IfEES_IT_Li4ELi4EE(ptr noundef nonnull align 4 dereferenceable(36) %121, ptr noundef nonnull %122)
  call void @_Z10setUniformjj6matrixIfLi3ELi3EE(i32 noundef %300, i32 noundef 3, ptr noundef nonnull %121)
  %301 = load i32, ptr @_ZL14raytraceShader, align 4, !tbaa !17
  %302 = call double @glfwGetTime()
  %303 = fptrunc double %302 to float
  call void @_Z10setUniformjjf(i32 noundef %301, i32 noundef 8, float noundef %303)
  %304 = load i32, ptr @_ZL14raytraceShader, align 4, !tbaa !17
  call void @_Z10setUniformjji(i32 noundef %304, i32 noundef 9, i32 noundef 0)
  %305 = load ptr, ptr @glad_glDrawArrays, align 8, !tbaa !5
  call void %305(i32 noundef 5, i32 noundef 0, i32 noundef 4)
  %306 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !5
  call void %306(i32 noundef 36160, i32 noundef 0)
  %307 = load ptr, ptr @glad_glViewport, align 8, !tbaa !5
  %308 = load i32, ptr %113, align 4, !tbaa !17
  %309 = load i32, ptr %114, align 4, !tbaa !17
  call void %307(i32 noundef 0, i32 noundef 0, i32 noundef %308, i32 noundef %309)
  %310 = load i32, ptr @_ZL11paintShader, align 4, !tbaa !17
  call void @_Z10bindShaderj(i32 noundef %310)
  %311 = load i32, ptr @_ZL11paintShader, align 4, !tbaa !17
  call void @_Z10setUniformjji(i32 noundef %311, i32 noundef 0, i32 noundef 0)
  %312 = load i32, ptr @_ZL11paintShader, align 4, !tbaa !17
  %313 = load i32, ptr %113, align 4, !tbaa !17
  %314 = load i32, ptr %114, align 4, !tbaa !17
  call void @_ZN6vectorIfLi2EEC2IiiEET_T0_(ptr noundef nonnull align 4 dereferenceable(8) %124, i32 noundef %313, i32 noundef %314)
  call void @_Z10setUniformjj6vectorIfLi2EE(i32 noundef %312, i32 noundef 1, ptr noundef nonnull %124)
  %315 = load i32, ptr @_ZL21raytraceOutputTexture, align 4, !tbaa !17
  call void @_Z11bindTexturejj(i32 noundef %315, i32 noundef 0)
  %316 = load ptr, ptr @glad_glDrawArrays, align 8, !tbaa !5
  call void %316(i32 noundef 5, i32 noundef 0, i32 noundef 4)
  %317 = load ptr, ptr @_ZL6window, align 8, !tbaa !5
  call void @glfwSwapBuffers(ptr noundef %317)
  %318 = load i32, ptr @_ZZ10gameUpdatedE8frameAcc, align 4, !tbaa !17
  %319 = add nsw i32 %318, 1
  store i32 %319, ptr @_ZZ10gameUpdatedE8frameAcc, align 4, !tbaa !17
  %320 = load double, ptr @_ZZ10gameUpdatedE7timeAcc, align 8, !tbaa !19
  %321 = fadd double %320, %0
  store double %321, ptr @_ZZ10gameUpdatedE7timeAcc, align 8, !tbaa !19
  %322 = fcmp ult double %321, 2.500000e-01
  br i1 %322, label %368, label %.lr.ph55.split.us

.lr.ph55.split.us:                                ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %125) #9
  %323 = sitofp i32 %319 to double
  %324 = fdiv double %323, %321
  %325 = load i32, ptr @_ZL8gameMode, align 4, !tbaa !10
  %326 = icmp eq i32 %325, 0
  %327 = icmp eq i32 %325, 1
  %328 = select i1 %327, ptr @.str.39, ptr @.str.40
  %329 = select i1 %326, ptr @.str.38, ptr %328
  %330 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %125, ptr noundef nonnull dereferenceable(1) @.str.37, double noundef %324, ptr noundef nonnull %329) #9
  %331 = load ptr, ptr @_ZL6window, align 8, !tbaa !5
  call void @glfwSetWindowTitle(ptr noundef %331, ptr noundef nonnull %125)
  store double 0.000000e+00, ptr @_ZZ10gameUpdatedE7timeAcc, align 8, !tbaa !19
  store i32 0, ptr @_ZZ10gameUpdatedE8frameAcc, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %125) #9
  br label %368

332:                                              ; preds = %.lr.ph, %332
  %.04853 = phi i64 [ 0, %.lr.ph ], [ %365, %332 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %109) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %110) #9
  %333 = call { ptr, i64 } @_ZN13GpuSyncedListI5LightEixEm(ptr noundef nonnull align 8 dereferenceable(80) @_ZL6lights, i64 noundef %.04853)
  %334 = extractvalue { ptr, i64 } %333, 0
  store ptr %334, ptr %110, align 8
  %335 = extractvalue { ptr, i64 } %333, 1
  store i64 %335, ptr %285, align 8
  call void @_ZN13GpuSyncedListI5LightE7WrappercvS0_Ev(ptr dead_on_unwind nonnull writable sret(%struct.Light) align 16 %109, ptr noundef nonnull align 8 dereferenceable(16) %110)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %110) #9
  %336 = getelementptr inbounds [100 x %struct.Light], ptr @_ZL11lightBuffer, i64 0, i64 %.04853
  %337 = getelementptr inbounds i8, ptr %336, i64 16
  %338 = load float, ptr %337, align 16, !tbaa !9
  %339 = getelementptr inbounds i8, ptr %336, i64 20
  %340 = load float, ptr %339, align 4, !tbaa !9
  %341 = fadd float %338, %340
  %342 = fmul float %341, 0x3FD99999A0000000
  %343 = getelementptr inbounds i8, ptr %336, i64 24
  %344 = load float, ptr %343, align 8, !tbaa !9
  %345 = fmul float %344, %342
  %346 = call noundef float @_Z3maxIfET_S0_S0_(float noundef 0x3FD99999A0000000, float noundef %345)
  %347 = fsub float %340, %340
  %348 = fmul float %347, 0x3FE99999A0000000
  %349 = load float, ptr %343, align 8, !tbaa !9
  %350 = fmul float %348, %349
  %351 = call noundef float @_Z3maxIfET_S0_S0_(float noundef 0x3FD99999A0000000, float noundef %350)
  %352 = load float, ptr %336, align 16, !tbaa !9
  %353 = fmul float %338, %283
  %354 = call noundef float @_ZSt3cosf(float noundef %353)
  %355 = call float @llvm.fmuladd.f32(float %346, float %354, float %352)
  store float %355, ptr %109, align 16, !tbaa !9
  %356 = getelementptr inbounds i8, ptr %336, i64 8
  %357 = load float, ptr %356, align 8, !tbaa !9
  %358 = fmul float %340, %283
  %359 = call noundef float @_ZSt3sinf(float noundef %358)
  %360 = call float @llvm.fmuladd.f32(float %351, float %359, float %357)
  store float %360, ptr %286, align 8, !tbaa !9
  call void @_ZN5LightC2ERKS_(ptr noundef nonnull align 16 dereferenceable(28) %111, ptr noundef nonnull align 16 dereferenceable(28) %109)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %112) #9
  %361 = call { ptr, i64 } @_ZN13GpuSyncedListI5LightEixEm(ptr noundef nonnull align 8 dereferenceable(80) @_ZL6lights, i64 noundef %.04853)
  %362 = extractvalue { ptr, i64 } %361, 0
  store ptr %362, ptr %112, align 8
  %363 = extractvalue { ptr, i64 } %361, 1
  store i64 %363, ptr %287, align 8
  %364 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN13GpuSyncedListI5LightE7WrapperaSES0_(ptr noundef nonnull align 8 dereferenceable(16) %112, ptr noundef nonnull %111)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %112) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %109) #9
  %365 = add nuw i64 %.04853, 1
  %366 = call noundef i64 @_ZN13GpuSyncedListI5LightE6lengthEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZL6lights)
  %367 = icmp ult i64 %365, %366
  br i1 %367, label %332, label %._crit_edge, !llvm.loop !21

368:                                              ; preds = %.lr.ph55.split.us, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %115) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %114) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %113) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #9
  ret void
}

declare i32 @glfwGetKey(ptr noundef, i32 noundef) local_unnamed_addr #6

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3any6vectorIbLi3EE(ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZneIfE6vectorIbLi3EES0_IT_Li3EES3_(ptr dead_on_unwind noalias writable sret(%struct.vector.55) align 1, ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL16getClosestPortal6vectorIfLi3EE(ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13GpuSyncedListI6PortalE7WrappercvS0_Ev(ptr dead_on_unwind noalias writable sret(%struct.Portal) align 16, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZL9intersect3Ray6Portal(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZngIfE6vectorIT_Li3EES2_(ptr dead_on_unwind noalias writable sret(%struct.vector) align 4, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL15getPortalMatrix6Portal(ptr dead_on_unwind noalias writable sret(%struct.matrix.64) align 4, ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZmlIfLi3EE6vectorIT_XT0_EES2_S1_(ptr dead_on_unwind noalias writable sret(%struct.vector) align 4, ptr noundef, float noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZmlIfE6vectorIT_Li3EE6matrixIS1_Li3ELi3EES2_(ptr dead_on_unwind noalias writable sret(%struct.vector) align 4, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZmlIfE6matrixIT_Li3ELi3EES2_S2_(ptr dead_on_unwind noalias writable sret(%struct.matrix.64) align 4, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z7inverseIfE6matrixIT_Li3ELi3EES2_(ptr dead_on_unwind noalias writable sret(%struct.matrix.64) align 4, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZmiIfE6vectorIT_Li3EES2_S2_(ptr dead_on_unwind noalias writable sret(%struct.vector) align 4, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4atanf(float noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt5atan2ff(float noundef, float noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22moveWithCollisionCheck6vectorIfLi3EES0_f(ptr dead_on_unwind noalias writable sret(%struct.vector) align 4, ptr noundef, ptr noundef, float noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6vectorIfLi3EEC2IifiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, float noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_Z8distanceIfLi3EET_6vectorIS0_XT0_EES2_(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6vectorIfLi3EEC2IfiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12), float noundef, i32 noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6vectorIfLi3EEC2IiifEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef, float noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZL26getDistanceToNearestObject6vectorIfLi3EES0_(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z3minIfET_S0_S0_(float noundef, float noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6vectorIfLi3EEC2IfifEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12), float noundef, i32 noundef, float noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z3maxIfET_S0_S0_(float noundef, float noundef) local_unnamed_addr #0

declare double @glfwGetTime() local_unnamed_addr #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZN13GpuSyncedListI5LightEixEm(ptr noundef nonnull align 8 dereferenceable(80), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13GpuSyncedListI5LightE7WrappercvS0_Ev(ptr dead_on_unwind noalias writable sret(%struct.Light) align 16, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3cosf(float noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3sinf(float noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN13GpuSyncedListI5LightE7WrapperaSES0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #5 align 2

declare void @_Z10bindShaderj(i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13GpuSyncedListI5LightE4bindEji(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13GpuSyncedListI8MaterialE4bindEji(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13GpuSyncedListI5PlaneE4bindEji(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13GpuSyncedListI6SphereE4bindEji(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13GpuSyncedListI5VoxelE4bindEji(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13GpuSyncedListI6PortalE4bindEji(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef) local_unnamed_addr #5 align 2

declare void @_Z16bindTextureArrayjj(i32 noundef, i32 noundef) local_unnamed_addr #6

declare void @glfwGetFramebufferSize(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z11lookAtMatRHIfE6matrixIT_Li4ELi4EE6vectorIS1_Li3EES4_S4_(ptr dead_on_unwind noalias writable sret(%struct.matrix) align 4, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10setUniformjj6vectorIfLi2EE(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10setUniformjjf(i32 noundef, i32 noundef, float noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10setUniformjj6vectorIfLi3EE(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10setUniformjj6matrixIfLi3ELi3EE(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z7inverseIfE6matrixIT_Li4ELi4EES2_(ptr dead_on_unwind noalias writable sret(%struct.matrix) align 4, ptr noundef) local_unnamed_addr #1

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

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

declare void @_Z11bindTexturejj(i32 noundef, i32 noundef) local_unnamed_addr #6

declare void @glfwSwapBuffers(ptr noundef) local_unnamed_addr #6

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #8

declare void @glfwSetWindowTitle(ptr noundef, ptr noundef) local_unnamed_addr #6

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 = !{!"_ZTS8GameMode", !7, i64 0}
!12 = !{i64 0, i64 12, !9}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass