; LLVM IR from Angelo1211/HybridRenderingEngine :: src/camera.ll (ZN6Camera6updateEj)

; 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.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.glm::vec.2" = type { %union.anon.3 }
%union.anon.3 = type { %struct.anon.4 }
%struct.anon.4 = type { float, float, float }
%"struct.glm::mat" = type { [4 x %"struct.glm::vec"] }
%"struct.glm::vec" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float, float, float }
%struct.Camera = type <{ %"struct.glm::mat", %"struct.glm::mat", %struct.Frustum, %"class.std::set", %"struct.glm::vec.2", %"struct.glm::vec.2", %"struct.glm::vec.2", %"struct.glm::vec.2", float, float, %"struct.glm::vec.2", %"struct.glm::vec.2", %"struct.glm::vec.2", %"struct.glm::vec.2", %"struct.glm::vec.2", float, float, float, float, float, i32, [4 x i8] }>
%struct.Frustum = type { [6 x %struct.Plane], float, float, float, float, float, float }
%struct.Plane = type { %"struct.glm::vec.2", float }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<char, char, std::_Identity<char>, std::less<char>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<char, char, std::_Identity<char>, std::less<char>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Camera6updateEj(ptr noundef nonnull align 8 dereferenceable(436) %0, i32 noundef %1) #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca float, align 4
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %8 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %9 = alloca i8, align 1
  %10 = alloca %"struct.glm::vec.2", align 4
  %11 = alloca { <2 x float>, float }, align 8
  %12 = alloca %"struct.glm::vec.2", align 4
  %13 = alloca { <2 x float>, float }, align 8
  %14 = alloca %"struct.glm::vec.2", align 4
  %15 = alloca { <2 x float>, float }, align 8
  %16 = alloca %"struct.glm::vec.2", align 4
  %17 = alloca { <2 x float>, float }, align 8
  %18 = alloca %"struct.glm::vec.2", align 4
  %19 = alloca { <2 x float>, float }, align 8
  %20 = alloca %"struct.glm::vec.2", align 4
  %21 = alloca { <2 x float>, float }, align 8
  %22 = alloca %"struct.glm::vec.2", align 4
  %23 = alloca { <2 x float>, float }, align 8
  %24 = alloca %"struct.glm::mat", align 4
  %25 = alloca %"struct.glm::mat", align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %26 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %27 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 17
  %28 = load float, ptr %27, align 4, !tbaa !11
  %29 = load i32, ptr %4, align 4, !tbaa !9
  %30 = uitofp i32 %29 to float
  %31 = fmul float %28, %30
  store float %31, ptr %5, align 4, !tbaa !26
  call void @_ZN6Camera17updateOrientationEv(ptr noundef nonnull align 8 dereferenceable(436) %26)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %32 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 3
  store ptr %32, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = call ptr @_ZNKSt3setIcSt4lessIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %33) #7
  %35 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %7, i32 0, i32 0
  store ptr %34, ptr %35, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = call ptr @_ZNKSt3setIcSt4lessIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %36) #7
  %38 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %8, i32 0, i32 0
  store ptr %37, ptr %38, align 8
  br label %39

39:                                               ; preds = %96, %2
  %40 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIcES2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  br i1 %40, label %42, label %41

41:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %98

42:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #7
  %43 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt23_Rb_tree_const_iteratorIcEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %44 = load i8, ptr %43, align 1, !tbaa !27
  store i8 %44, ptr %9, align 1, !tbaa !27
  %45 = load i8, ptr %9, align 1, !tbaa !27
  %46 = sext i8 %45 to i32
  switch i32 %46, label %95 [
    i32 119, label %47
    i32 115, label %55
    i32 97, label %63
    i32 100, label %71
    i32 113, label %79
    i32 101, label %87
  ]

47:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #7
  %48 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 12
  %49 = load float, ptr %5, align 4, !tbaa !26
  %50 = call { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S3_(ptr noundef nonnull align 4 dereferenceable(12) %48, float noundef %49)
  %51 = getelementptr inbounds %"struct.glm::vec.2", ptr %10, i32 0, i32 0
  %52 = getelementptr inbounds %union.anon.3, ptr %51, i32 0, i32 0
  store { <2 x float>, float } %50, ptr %11, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %52, ptr align 8 %11, i64 12, i1 false)
  %53 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 10
  %54 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEpLIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12) %53, ptr noundef nonnull align 4 dereferenceable(12) %10)
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #7
  br label %95

55:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #7
  %56 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 12
  %57 = load float, ptr %5, align 4, !tbaa !26
  %58 = call { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S3_(ptr noundef nonnull align 4 dereferenceable(12) %56, float noundef %57)
  %59 = getelementptr inbounds %"struct.glm::vec.2", ptr %12, i32 0, i32 0
  %60 = getelementptr inbounds %union.anon.3, ptr %59, i32 0, i32 0
  store { <2 x float>, float } %58, ptr %13, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %60, ptr align 8 %13, i64 12, i1 false)
  %61 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 10
  %62 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEmIIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12) %61, ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #7
  br label %95

63:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #7
  %64 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 11
  %65 = load float, ptr %5, align 4, !tbaa !26
  %66 = call { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S3_(ptr noundef nonnull align 4 dereferenceable(12) %64, float noundef %65)
  %67 = getelementptr inbounds %"struct.glm::vec.2", ptr %14, i32 0, i32 0
  %68 = getelementptr inbounds %union.anon.3, ptr %67, i32 0, i32 0
  store { <2 x float>, float } %66, ptr %15, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %68, ptr align 8 %15, i64 12, i1 false)
  %69 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 10
  %70 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEmIIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12) %69, ptr noundef nonnull align 4 dereferenceable(12) %14)
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #7
  br label %95

71:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #7
  %72 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 11
  %73 = load float, ptr %5, align 4, !tbaa !26
  %74 = call { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S3_(ptr noundef nonnull align 4 dereferenceable(12) %72, float noundef %73)
  %75 = getelementptr inbounds %"struct.glm::vec.2", ptr %16, i32 0, i32 0
  %76 = getelementptr inbounds %union.anon.3, ptr %75, i32 0, i32 0
  store { <2 x float>, float } %74, ptr %17, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %76, ptr align 8 %17, i64 12, i1 false)
  %77 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 10
  %78 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEpLIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12) %77, ptr noundef nonnull align 4 dereferenceable(12) %16)
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #7
  br label %95

79:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #7
  %80 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 14
  %81 = load float, ptr %5, align 4, !tbaa !26
  %82 = call { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S3_(ptr noundef nonnull align 4 dereferenceable(12) %80, float noundef %81)
  %83 = getelementptr inbounds %"struct.glm::vec.2", ptr %18, i32 0, i32 0
  %84 = getelementptr inbounds %union.anon.3, ptr %83, i32 0, i32 0
  store { <2 x float>, float } %82, ptr %19, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %84, ptr align 8 %19, i64 12, i1 false)
  %85 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 10
  %86 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEpLIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12) %85, ptr noundef nonnull align 4 dereferenceable(12) %18)
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #7
  br label %95

87:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #7
  %88 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 14
  %89 = load float, ptr %5, align 4, !tbaa !26
  %90 = call { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S3_(ptr noundef nonnull align 4 dereferenceable(12) %88, float noundef %89)
  %91 = getelementptr inbounds %"struct.glm::vec.2", ptr %20, i32 0, i32 0
  %92 = getelementptr inbounds %union.anon.3, ptr %91, i32 0, i32 0
  store { <2 x float>, float } %90, ptr %21, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %92, ptr align 8 %21, i64 12, i1 false)
  %93 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 10
  %94 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEmIIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12) %93, ptr noundef nonnull align 4 dereferenceable(12) %20)
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #7
  br label %95

95:                                               ; preds = %87, %79, %71, %63, %55, %47, %42
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  br label %96

96:                                               ; preds = %95
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIcEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br label %39

98:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #7
  %99 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 10
  %100 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 12
  %101 = call { <2 x float>, float } @_ZN3glmplIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(12) %99, ptr noundef nonnull align 4 dereferenceable(12) %100)
  %102 = getelementptr inbounds %"struct.glm::vec.2", ptr %22, i32 0, i32 0
  %103 = getelementptr inbounds %union.anon.3, ptr %102, i32 0, i32 0
  store { <2 x float>, float } %101, ptr %23, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %103, ptr align 8 %23, i64 12, i1 false)
  %104 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %104, ptr align 4 %22, i64 12, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %24) #7
  %105 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 10
  %106 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 13
  %107 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 14
  call void @_ZN3glm6lookAtIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKNS_3vecILi3ES3_XT0_EEES8_S8_(ptr dead_on_unwind writable sret(%"struct.glm::mat") align 4 %24, ptr noundef nonnull align 4 dereferenceable(12) %105, ptr noundef nonnull align 4 dereferenceable(12) %106, ptr noundef nonnull align 4 dereferenceable(12) %107)
  %108 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %108, ptr align 4 %24, i64 64, i1 false), !tbaa.struct !29
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #7
  %109 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 2
  %110 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 0
  %111 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 10
  call void @_ZN7Frustum12updatePlanesERN3glm3matILi4ELi4EfLNS0_9qualifierE0EEERKNS0_3vecILi3EfLS2_0EEE(ptr noundef nonnull align 4 dereferenceable(120) %109, ptr noundef nonnull align 4 dereferenceable(64) %110, ptr noundef nonnull align 4 dereferenceable(12) %111)
  call void @llvm.lifetime.start.p0(i64 64, ptr %25) #7
  %112 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 2
  %113 = getelementptr inbounds %struct.Frustum, ptr %112, i32 0, i32 1
  %114 = load float, ptr %113, align 8, !tbaa !30
  %115 = call noundef float @_ZN3glm7radiansIfEET_S1_(float noundef %114)
  %116 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 2
  %117 = getelementptr inbounds %struct.Frustum, ptr %116, i32 0, i32 4
  %118 = load float, ptr %117, align 4, !tbaa !31
  %119 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 2
  %120 = getelementptr inbounds %struct.Frustum, ptr %119, i32 0, i32 2
  %121 = load float, ptr %120, align 4, !tbaa !32
  %122 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 2
  %123 = getelementptr inbounds %struct.Frustum, ptr %122, i32 0, i32 3
  %124 = load float, ptr %123, align 8, !tbaa !33
  call void @_ZN3glm11perspectiveIfEENS_3matILi4ELi4ET_LNS_9qualifierE0EEES2_S2_S2_S2_(ptr dead_on_unwind writable sret(%"struct.glm::mat") align 4 %25, float noundef %115, float noundef %118, float noundef %121, float noundef %124)
  %125 = getelementptr inbounds %struct.Camera, ptr %26, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %125, ptr align 4 %25, i64 64, i1 false), !tbaa.struct !29
  call void @llvm.lifetime.end.p0(i64 64, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  ret void
}

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S3_(ptr noundef nonnull align 4 dereferenceable(12), float noundef) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEpLIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEmIIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3glmplIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm6lookAtIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKNS_3vecILi3ES3_XT0_EEES8_S8_(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #3

declare void @_ZN7Frustum12updatePlanesERN3glm3matILi4ELi4EfLNS0_9qualifierE0EEERKNS0_3vecILi3EfLS2_0EEE(ptr noundef nonnull align 4 dereferenceable(120), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(12)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm11perspectiveIfEENS_3matILi4ELi4ET_LNS_9qualifierE0EEES2_S2_S2_S2_(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat") align 4, float noundef, float noundef, float noundef, float noundef) #3

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !15, i64 420}
!12 = !{!"_ZTS6Camera", !13, i64 0, !13, i64 64, !14, i64 128, !16, i64 248, !25, i64 296, !25, i64 308, !25, i64 320, !25, i64 332, !15, i64 344, !15, i64 348, !25, i64 352, !25, i64 364, !25, i64 376, !25, i64 388, !25, i64 400, !15, i64 412, !15, i64 416, !15, i64 420, !15, i64 424, !15, i64 428, !10, i64 432}
!13 = !{!"_ZTSN3glm3matILi4ELi4EfLNS_9qualifierE0EEE", !7, i64 0}
!14 = !{!"_ZTS7Frustum", !7, i64 0, !15, i64 96, !15, i64 100, !15, i64 104, !15, i64 108, !15, i64 112, !15, i64 116}
!15 = !{!"float", !7, i64 0}
!16 = !{!"_ZTSSt3setIcSt4lessIcESaIcEE", !17, i64 0}
!17 = !{!"_ZTSSt8_Rb_treeIccSt9_IdentityIcESt4lessIcESaIcEE", !18, i64 0}
!18 = !{!"_ZTSNSt8_Rb_treeIccSt9_IdentityIcESt4lessIcESaIcEE13_Rb_tree_implIS3_Lb1EEE", !19, i64 0, !21, i64 8}
!19 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIcEE", !20, i64 0}
!20 = !{!"_ZTSSt4lessIcE"}
!21 = !{!"_ZTSSt15_Rb_tree_header", !22, i64 0, !24, i64 32}
!22 = !{!"_ZTSSt18_Rb_tree_node_base", !23, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!23 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!24 = !{!"long", !7, i64 0}
!25 = !{!"_ZTSN3glm3vecILi3EfLNS_9qualifierE0EEE", !7, i64 0}
!26 = !{!15, !15, i64 0}
!27 = !{!7, !7, i64 0}
!28 = !{i64 0, i64 12, !27}
!29 = !{i64 0, i64 64, !27}
!30 = !{!12, !15, i64 224}
!31 = !{!12, !15, i64 236}
!32 = !{!12, !15, i64 228}
!33 = !{!12, !15, i64 232}


; 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.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.glm::vec.2" = type { %union.anon.3 }
%union.anon.3 = type { %struct.anon.4 }
%struct.anon.4 = type { float, float, float }
%"struct.glm::mat" = type { [4 x %"struct.glm::vec"] }
%"struct.glm::vec" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float, float, float }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Camera6updateEj(ptr noundef nonnull align 8 dereferenceable(436) %0, i32 noundef %1) local_unnamed_addr #0 align 2 {
  %3 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %4 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %5 = alloca %"struct.glm::vec.2", align 8
  %6 = alloca %"struct.glm::vec.2", align 8
  %7 = alloca %"struct.glm::vec.2", align 8
  %8 = alloca %"struct.glm::vec.2", align 8
  %9 = alloca %"struct.glm::vec.2", align 8
  %10 = alloca %"struct.glm::vec.2", align 8
  %11 = alloca %"struct.glm::mat", align 4
  %12 = alloca %"struct.glm::mat", align 4
  %13 = getelementptr inbounds i8, ptr %0, i64 420
  %14 = load float, ptr %13, align 4, !tbaa !5
  %15 = uitofp i32 %1 to float
  %16 = fmul float %14, %15
  tail call void @_ZN6Camera17updateOrientationEv(ptr noundef nonnull align 8 dereferenceable(436) %0)
  %17 = getelementptr inbounds i8, ptr %0, i64 248
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %18 = tail call ptr @_ZNKSt3setIcSt4lessIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %17) #7
  store ptr %18, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %19 = tail call ptr @_ZNKSt3setIcSt4lessIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %17) #7
  store ptr %19, ptr %4, align 8
  %20 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIcES2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  br i1 %20, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %21 = getelementptr inbounds i8, ptr %0, i64 400
  %.sroa.25.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  %22 = getelementptr inbounds i8, ptr %0, i64 352
  %.sroa.29.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  %23 = getelementptr inbounds i8, ptr %0, i64 364
  %.sroa.213.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  %.sroa.217.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  %24 = getelementptr inbounds i8, ptr %0, i64 376
  %.sroa.221.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  %.sroa.225.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  br label %41

._crit_edge:                                      ; preds = %62, %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  %25 = getelementptr inbounds i8, ptr %0, i64 352
  %26 = getelementptr inbounds i8, ptr %0, i64 376
  %27 = call { <2 x float>, float } @_ZN3glmplIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %26)
  %.fca.0.extract = extractvalue { <2 x float>, float } %27, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %27, 1
  %28 = getelementptr inbounds i8, ptr %0, i64 388
  store <2 x float> %.fca.0.extract, ptr %28, align 4
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 396
  store float %.fca.1.extract, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #7
  %29 = getelementptr inbounds i8, ptr %0, i64 400
  call void @_ZN3glm6lookAtIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKNS_3vecILi3ES3_XT0_EEES8_S8_(ptr dead_on_unwind nonnull writable sret(%"struct.glm::mat") align 4 %11, ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %28, ptr noundef nonnull align 4 dereferenceable(12) %29)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull align 4 dereferenceable(64) %11, i64 64, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #7
  %30 = getelementptr inbounds i8, ptr %0, i64 128
  call void @_ZN7Frustum12updatePlanesERN3glm3matILi4ELi4EfLNS0_9qualifierE0EEERKNS0_3vecILi3EfLS2_0EEE(ptr noundef nonnull align 4 dereferenceable(120) %30, ptr noundef nonnull align 4 dereferenceable(64) %0, ptr noundef nonnull align 4 dereferenceable(12) %25)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #7
  %31 = getelementptr inbounds i8, ptr %0, i64 224
  %32 = load float, ptr %31, align 8, !tbaa !26
  %33 = call noundef float @_ZN3glm7radiansIfEET_S1_(float noundef %32)
  %34 = getelementptr inbounds i8, ptr %0, i64 236
  %35 = load float, ptr %34, align 4, !tbaa !27
  %36 = getelementptr inbounds i8, ptr %0, i64 228
  %37 = load float, ptr %36, align 4, !tbaa !28
  %38 = getelementptr inbounds i8, ptr %0, i64 232
  %39 = load float, ptr %38, align 8, !tbaa !29
  call void @_ZN3glm11perspectiveIfEENS_3matILi4ELi4ET_LNS_9qualifierE0EEES2_S2_S2_S2_(ptr dead_on_unwind nonnull writable sret(%"struct.glm::mat") align 4 %12, float noundef %33, float noundef %35, float noundef %37, float noundef %39)
  %40 = getelementptr inbounds i8, ptr %0, i64 64
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %40, ptr noundef nonnull align 4 dereferenceable(64) %12, i64 64, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #7
  ret void

41:                                               ; preds = %.lr.ph, %62
  %42 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt23_Rb_tree_const_iteratorIcEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  %43 = load i8, ptr %42, align 1, !tbaa !24
  switch i8 %43, label %62 [
    i8 119, label %44
    i8 115, label %47
    i8 97, label %50
    i8 100, label %53
    i8 113, label %56
    i8 101, label %59
  ]

44:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #7
  %45 = call { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S3_(ptr noundef nonnull align 4 dereferenceable(12) %24, float noundef %16)
  %.fca.0.extract22 = extractvalue { <2 x float>, float } %45, 0
  %.fca.1.extract23 = extractvalue { <2 x float>, float } %45, 1
  store <2 x float> %.fca.0.extract22, ptr %5, align 8
  store float %.fca.1.extract23, ptr %.sroa.225.0..sroa_idx, align 8
  %46 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEpLIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %5)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #7
  br label %62

47:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #7
  %48 = call { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S3_(ptr noundef nonnull align 4 dereferenceable(12) %24, float noundef %16)
  %.fca.0.extract18 = extractvalue { <2 x float>, float } %48, 0
  %.fca.1.extract19 = extractvalue { <2 x float>, float } %48, 1
  store <2 x float> %.fca.0.extract18, ptr %6, align 8
  store float %.fca.1.extract19, ptr %.sroa.221.0..sroa_idx, align 8
  %49 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEmIIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  br label %62

50:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #7
  %51 = call { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S3_(ptr noundef nonnull align 4 dereferenceable(12) %23, float noundef %16)
  %.fca.0.extract14 = extractvalue { <2 x float>, float } %51, 0
  %.fca.1.extract15 = extractvalue { <2 x float>, float } %51, 1
  store <2 x float> %.fca.0.extract14, ptr %7, align 8
  store float %.fca.1.extract15, ptr %.sroa.217.0..sroa_idx, align 8
  %52 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEmIIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %7)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  br label %62

53:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #7
  %54 = call { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S3_(ptr noundef nonnull align 4 dereferenceable(12) %23, float noundef %16)
  %.fca.0.extract10 = extractvalue { <2 x float>, float } %54, 0
  %.fca.1.extract11 = extractvalue { <2 x float>, float } %54, 1
  store <2 x float> %.fca.0.extract10, ptr %8, align 8
  store float %.fca.1.extract11, ptr %.sroa.213.0..sroa_idx, align 8
  %55 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEpLIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %8)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #7
  br label %62

56:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #7
  %57 = call { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S3_(ptr noundef nonnull align 4 dereferenceable(12) %21, float noundef %16)
  %.fca.0.extract6 = extractvalue { <2 x float>, float } %57, 0
  %.fca.1.extract7 = extractvalue { <2 x float>, float } %57, 1
  store <2 x float> %.fca.0.extract6, ptr %9, align 8
  store float %.fca.1.extract7, ptr %.sroa.29.0..sroa_idx, align 8
  %58 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEpLIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %9)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #7
  br label %62

59:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #7
  %60 = call { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S3_(ptr noundef nonnull align 4 dereferenceable(12) %21, float noundef %16)
  %.fca.0.extract2 = extractvalue { <2 x float>, float } %60, 0
  %.fca.1.extract3 = extractvalue { <2 x float>, float } %60, 1
  store <2 x float> %.fca.0.extract2, ptr %10, align 8
  store float %.fca.1.extract3, ptr %.sroa.25.0..sroa_idx, align 8
  %61 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEmIIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %10)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #7
  br label %62

62:                                               ; preds = %59, %56, %53, %50, %47, %44, %41
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorIcEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  %64 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIcES2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  br i1 %64, label %41, label %._crit_edge
}

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S3_(ptr noundef nonnull align 4 dereferenceable(12), float noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEpLIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEmIIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3glmplIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm6lookAtIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKNS_3vecILi3ES3_XT0_EEES8_S8_(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3

declare void @_ZN7Frustum12updatePlanesERN3glm3matILi4ELi4EfLNS0_9qualifierE0EEERKNS0_3vecILi3EfLS2_0EEE(ptr noundef nonnull align 4 dereferenceable(120), ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm11perspectiveIfEENS_3matILi4ELi4ET_LNS_9qualifierE0EEES2_S2_S2_S2_(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat") align 4, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #3

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #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 = { 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, !11, i64 420}
!6 = !{!"_ZTS6Camera", !7, i64 0, !7, i64 64, !10, i64 128, !12, i64 248, !22, i64 296, !22, i64 308, !22, i64 320, !22, i64 332, !11, i64 344, !11, i64 348, !22, i64 352, !22, i64 364, !22, i64 376, !22, i64 388, !22, i64 400, !11, i64 412, !11, i64 416, !11, i64 420, !11, i64 424, !11, i64 428, !23, i64 432}
!7 = !{!"_ZTSN3glm3matILi4ELi4EfLNS_9qualifierE0EEE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS7Frustum", !8, i64 0, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116}
!11 = !{!"float", !8, i64 0}
!12 = !{!"_ZTSSt3setIcSt4lessIcESaIcEE", !13, i64 0}
!13 = !{!"_ZTSSt8_Rb_treeIccSt9_IdentityIcESt4lessIcESaIcEE", !14, i64 0}
!14 = !{!"_ZTSNSt8_Rb_treeIccSt9_IdentityIcESt4lessIcESaIcEE13_Rb_tree_implIS3_Lb1EEE", !15, i64 0, !17, i64 8}
!15 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIcEE", !16, i64 0}
!16 = !{!"_ZTSSt4lessIcE"}
!17 = !{!"_ZTSSt15_Rb_tree_header", !18, i64 0, !21, i64 32}
!18 = !{!"_ZTSSt18_Rb_tree_node_base", !19, i64 0, !20, i64 8, !20, i64 16, !20, i64 24}
!19 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!20 = !{!"any pointer", !8, i64 0}
!21 = !{!"long", !8, i64 0}
!22 = !{!"_ZTSN3glm3vecILi3EfLNS_9qualifierE0EEE", !8, i64 0}
!23 = !{!"int", !8, i64 0}
!24 = !{!8, !8, i64 0}
!25 = !{i64 0, i64 64, !24}
!26 = !{!6, !11, i64 224}
!27 = !{!6, !11, i64 236}
!28 = !{!6, !11, i64 228}
!29 = !{!6, !11, i64 232}


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