; LLVM IR from Pi-Man/PiE :: source/Camera.ll (ZNK3PiE6Camera19getProjectionMatrixEv)

; 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.PiE::Matrix" = type { %"struct.std::array" }
%"struct.std::array" = type { [16 x float] }
%"struct.PiE::Camera" = type { ptr, %"class.std::mutex", %"struct.PiE::Matrix", %"struct.PiE::Matrix", %"struct.PiE::Matrix", %"struct.PiE::Matrix", ptr, i8, float, float, float }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3PiE6MatrixIfLi4ELi4EEC2Ev(ptr noundef nonnull align 4 dereferenceable(64)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3PiE6Camera19getProjectionMatrixEv(ptr dead_on_unwind noalias writable sret(%"struct.PiE::Matrix") align 4 %0, ptr noundef nonnull align 8 dereferenceable(328) %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca float, align 4
  %9 = alloca %"struct.PiE::Matrix", align 4
  %10 = alloca %"struct.std::array", align 4
  %11 = alloca float, align 4
  %12 = alloca %"struct.PiE::Matrix", align 4
  %13 = alloca %"struct.std::array", align 4
  store ptr %1, ptr %3, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %15 = getelementptr inbounds %"struct.PiE::Camera", ptr %14, i32 0, i32 9
  %16 = load float, ptr %15, align 8, !tbaa !9
  store float %16, ptr %4, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %17 = getelementptr inbounds %"struct.PiE::Camera", ptr %14, i32 0, i32 8
  %18 = load float, ptr %17, align 4, !tbaa !18
  store float %18, ptr %5, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %19 = getelementptr inbounds %"struct.PiE::Camera", ptr %14, i32 0, i32 6
  %20 = load ptr, ptr %19, align 8, !tbaa !19
  call void @SDL_GetWindowSize(ptr noundef %20, ptr noundef %6, ptr noundef %7)
  call void @_ZN3PiE6MatrixIfLi4ELi4EEC2Ev(ptr noundef nonnull align 4 dereferenceable(64) %0)
  %21 = getelementptr inbounds %"struct.PiE::Camera", ptr %14, i32 0, i32 7
  %22 = load i8, ptr %21, align 8, !tbaa !20, !range !21, !noundef !22
  %23 = trunc i8 %22 to i1
  br i1 %23, label %66, label %24

24:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %25 = getelementptr inbounds %"struct.PiE::Camera", ptr %14, i32 0, i32 10
  %26 = load float, ptr %25, align 4, !tbaa !23
  store float %26, ptr %8, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #5
  %27 = getelementptr inbounds %"struct.std::array", ptr %10, i32 0, i32 0
  %28 = load float, ptr %8, align 4, !tbaa !17
  store float %28, ptr %27, align 4, !tbaa !17
  %29 = getelementptr inbounds float, ptr %27, i64 1
  store float 0.000000e+00, ptr %29, align 4, !tbaa !17
  %30 = getelementptr inbounds float, ptr %27, i64 2
  store float 0.000000e+00, ptr %30, align 4, !tbaa !17
  %31 = getelementptr inbounds float, ptr %27, i64 3
  store float 0.000000e+00, ptr %31, align 4, !tbaa !17
  %32 = getelementptr inbounds float, ptr %27, i64 4
  store float 0.000000e+00, ptr %32, align 4, !tbaa !17
  %33 = getelementptr inbounds float, ptr %27, i64 5
  %34 = load float, ptr %8, align 4, !tbaa !17
  %35 = load i32, ptr %6, align 4, !tbaa !24
  %36 = sitofp i32 %35 to float
  %37 = fmul float %34, %36
  %38 = load i32, ptr %7, align 4, !tbaa !24
  %39 = sitofp i32 %38 to float
  %40 = fdiv float %37, %39
  store float %40, ptr %33, align 4, !tbaa !17
  %41 = getelementptr inbounds float, ptr %27, i64 6
  store float 0.000000e+00, ptr %41, align 4, !tbaa !17
  %42 = getelementptr inbounds float, ptr %27, i64 7
  store float 0.000000e+00, ptr %42, align 4, !tbaa !17
  %43 = getelementptr inbounds float, ptr %27, i64 8
  store float 0.000000e+00, ptr %43, align 4, !tbaa !17
  %44 = getelementptr inbounds float, ptr %27, i64 9
  store float 0.000000e+00, ptr %44, align 4, !tbaa !17
  %45 = getelementptr inbounds float, ptr %27, i64 10
  %46 = load float, ptr %4, align 4, !tbaa !17
  %47 = load float, ptr %5, align 4, !tbaa !17
  %48 = fadd float %46, %47
  %49 = load float, ptr %4, align 4, !tbaa !17
  %50 = load float, ptr %5, align 4, !tbaa !17
  %51 = fsub float %49, %50
  %52 = fdiv float %48, %51
  store float %52, ptr %45, align 4, !tbaa !17
  %53 = getelementptr inbounds float, ptr %27, i64 11
  %54 = load float, ptr %4, align 4, !tbaa !17
  %55 = fmul float 2.000000e+00, %54
  %56 = load float, ptr %5, align 4, !tbaa !17
  %57 = fmul float %55, %56
  %58 = load float, ptr %5, align 4, !tbaa !17
  %59 = load float, ptr %4, align 4, !tbaa !17
  %60 = fsub float %58, %59
  %61 = fdiv float %57, %60
  store float %61, ptr %53, align 4, !tbaa !17
  %62 = getelementptr inbounds float, ptr %27, i64 12
  store float 0.000000e+00, ptr %62, align 4, !tbaa !17
  %63 = getelementptr inbounds float, ptr %27, i64 13
  store float 0.000000e+00, ptr %63, align 4, !tbaa !17
  %64 = getelementptr inbounds float, ptr %27, i64 14
  store float 1.000000e+00, ptr %64, align 4, !tbaa !17
  %65 = getelementptr inbounds float, ptr %27, i64 15
  store float 0.000000e+00, ptr %65, align 4, !tbaa !17
  call void @_ZN3PiE6MatrixIfLi4ELi4EEC2EOSt5arrayIfLm16EE(ptr noundef nonnull align 4 dereferenceable(64) %9, ptr noundef nonnull align 4 dereferenceable(64) %10)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %0, ptr align 4 %9, i64 64, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %105

66:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %67 = getelementptr inbounds %"struct.PiE::Camera", ptr %14, i32 0, i32 10
  %68 = load float, ptr %67, align 4, !tbaa !23
  %69 = fdiv float 1.000000e+00, %68
  store float %69, ptr %11, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %13) #5
  %70 = getelementptr inbounds %"struct.std::array", ptr %13, i32 0, i32 0
  %71 = load float, ptr %11, align 4, !tbaa !17
  store float %71, ptr %70, align 4, !tbaa !17
  %72 = getelementptr inbounds float, ptr %70, i64 1
  store float 0.000000e+00, ptr %72, align 4, !tbaa !17
  %73 = getelementptr inbounds float, ptr %70, i64 2
  store float 0.000000e+00, ptr %73, align 4, !tbaa !17
  %74 = getelementptr inbounds float, ptr %70, i64 3
  store float 0.000000e+00, ptr %74, align 4, !tbaa !17
  %75 = getelementptr inbounds float, ptr %70, i64 4
  store float 0.000000e+00, ptr %75, align 4, !tbaa !17
  %76 = getelementptr inbounds float, ptr %70, i64 5
  %77 = load float, ptr %11, align 4, !tbaa !17
  %78 = load i32, ptr %6, align 4, !tbaa !24
  %79 = sitofp i32 %78 to float
  %80 = fmul float %77, %79
  %81 = load i32, ptr %7, align 4, !tbaa !24
  %82 = sitofp i32 %81 to float
  %83 = fdiv float %80, %82
  store float %83, ptr %76, align 4, !tbaa !17
  %84 = getelementptr inbounds float, ptr %70, i64 6
  store float 0.000000e+00, ptr %84, align 4, !tbaa !17
  %85 = getelementptr inbounds float, ptr %70, i64 7
  store float 0.000000e+00, ptr %85, align 4, !tbaa !17
  %86 = getelementptr inbounds float, ptr %70, i64 8
  store float 0.000000e+00, ptr %86, align 4, !tbaa !17
  %87 = getelementptr inbounds float, ptr %70, i64 9
  store float 0.000000e+00, ptr %87, align 4, !tbaa !17
  %88 = getelementptr inbounds float, ptr %70, i64 10
  %89 = load float, ptr %4, align 4, !tbaa !17
  %90 = load float, ptr %5, align 4, !tbaa !17
  %91 = fsub float %89, %90
  %92 = fdiv float 2.000000e+00, %91
  store float %92, ptr %88, align 4, !tbaa !17
  %93 = getelementptr inbounds float, ptr %70, i64 11
  %94 = load float, ptr %4, align 4, !tbaa !17
  %95 = load float, ptr %5, align 4, !tbaa !17
  %96 = fadd float %94, %95
  %97 = load float, ptr %5, align 4, !tbaa !17
  %98 = load float, ptr %4, align 4, !tbaa !17
  %99 = fsub float %97, %98
  %100 = fdiv float %96, %99
  store float %100, ptr %93, align 4, !tbaa !17
  %101 = getelementptr inbounds float, ptr %70, i64 12
  store float 0.000000e+00, ptr %101, align 4, !tbaa !17
  %102 = getelementptr inbounds float, ptr %70, i64 13
  store float 0.000000e+00, ptr %102, align 4, !tbaa !17
  %103 = getelementptr inbounds float, ptr %70, i64 14
  store float 0.000000e+00, ptr %103, align 4, !tbaa !17
  %104 = getelementptr inbounds float, ptr %70, i64 15
  store float 1.000000e+00, ptr %104, align 4, !tbaa !17
  call void @_ZN3PiE6MatrixIfLi4ELi4EEC2EOSt5arrayIfLm16EE(ptr noundef nonnull align 4 dereferenceable(64) %12, ptr noundef nonnull align 4 dereferenceable(64) %13)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %0, ptr align 4 %12, i64 64, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.end.p0(i64 64, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %105

105:                                              ; preds = %66, %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  ret void
}

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

declare void @SDL_GetWindowSize(ptr noundef, ptr noundef, ptr noundef) #3

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

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

attributes #0 = { 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 = { 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 = { "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 = { 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, !16, i64 320}
!10 = !{!"_ZTSN3PiE6CameraE", !11, i64 8, !13, i64 48, !13, i64 112, !13, i64 176, !13, i64 240, !6, i64 304, !15, i64 312, !16, i64 316, !16, i64 320, !16, i64 324}
!11 = !{!"_ZTSSt5mutex", !12, i64 0}
!12 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!13 = !{!"_ZTSN3PiE6MatrixIfLi4ELi4EEE", !14, i64 0}
!14 = !{!"_ZTSSt5arrayIfLm16EE", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!16, !16, i64 0}
!18 = !{!10, !16, i64 316}
!19 = !{!10, !6, i64 304}
!20 = !{!10, !15, i64 312}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!10, !16, i64 324}
!24 = !{!25, !25, i64 0}
!25 = !{!"int", !7, i64 0}
!26 = !{i64 0, i64 64, !27}
!27 = !{!7, !7, i64 0}


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

%"struct.PiE::Matrix" = type { %"struct.std::array" }
%"struct.std::array" = type { [16 x float] }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3PiE6MatrixIfLi4ELi4EEC2Ev(ptr noundef nonnull align 4 dereferenceable(64)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3PiE6Camera19getProjectionMatrixEv(ptr dead_on_unwind noalias writable sret(%"struct.PiE::Matrix") align 4 %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(328) %1) local_unnamed_addr #1 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"struct.PiE::Matrix", align 4
  %6 = alloca %"struct.std::array", align 4
  %7 = alloca %"struct.PiE::Matrix", align 4
  %8 = alloca %"struct.std::array", align 4
  %9 = getelementptr inbounds i8, ptr %1, i64 316
  %10 = load <2 x float>, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %11 = getelementptr inbounds i8, ptr %1, i64 304
  %12 = load ptr, ptr %11, align 8, !tbaa !9
  call void @SDL_GetWindowSize(ptr noundef %12, ptr noundef nonnull %3, ptr noundef nonnull %4)
  call void @_ZN3PiE6MatrixIfLi4ELi4EEC2Ev(ptr noundef nonnull align 4 dereferenceable(64) %0)
  %13 = getelementptr inbounds i8, ptr %1, i64 312
  %14 = load i8, ptr %13, align 8, !tbaa !17, !range !18, !noundef !19
  %15 = trunc nuw i8 %14 to i1
  %16 = getelementptr inbounds i8, ptr %1, i64 324
  %17 = load float, ptr %16, align 4, !tbaa !20
  %18 = extractelement <2 x float> %10, i64 0
  %19 = extractelement <2 x float> %10, i64 1
  %20 = fsub float %19, %18
  br i1 %15, label %43, label %21

21:                                               ; preds = %2
  %22 = shufflevector <2 x float> %10, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #6
  store float %17, ptr %6, align 4, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %6, i64 4
  %24 = getelementptr inbounds i8, ptr %6, i64 20
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %23, i8 0, i64 16, i1 false)
  %25 = load i32, ptr %3, align 4, !tbaa !21
  %26 = sitofp i32 %25 to float
  %27 = fmul float %17, %26
  %28 = load i32, ptr %4, align 4, !tbaa !21
  %29 = sitofp i32 %28 to float
  %30 = fdiv float %27, %29
  store float %30, ptr %24, align 4, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %6, i64 24
  %32 = getelementptr inbounds i8, ptr %6, i64 40
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %31, i8 0, i64 16, i1 false)
  %33 = fmul float %19, 2.000000e+00
  %34 = fsub float %18, %19
  %35 = insertelement <2 x float> %10, float %33, i64 1
  %36 = fadd <2 x float> %35, %22
  %37 = fmul <2 x float> %35, %22
  %38 = shufflevector <2 x float> %36, <2 x float> %37, <2 x i32> <i32 0, i32 3>
  %39 = insertelement <2 x float> poison, float %20, i64 0
  %40 = insertelement <2 x float> %39, float %34, i64 1
  %41 = fdiv <2 x float> %38, %40
  store <2 x float> %41, ptr %32, align 4, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %6, i64 48
  store <4 x float> <float 0.000000e+00, float 0.000000e+00, float 1.000000e+00, float 0.000000e+00>, ptr %42, align 4, !tbaa !5
  call void @_ZN3PiE6MatrixIfLi4ELi4EEC2EOSt5arrayIfLm16EE(ptr noundef nonnull align 4 dereferenceable(64) %5, ptr noundef nonnull align 4 dereferenceable(64) %6)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(64) %0, ptr noundef nonnull align 4 dereferenceable(64) %5, i64 64, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #6
  br label %62

43:                                               ; preds = %2
  %44 = fdiv float 1.000000e+00, %17
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #6
  store float %44, ptr %8, align 4, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %8, i64 4
  %46 = getelementptr inbounds i8, ptr %8, i64 20
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %45, i8 0, i64 16, i1 false)
  %47 = load i32, ptr %3, align 4, !tbaa !21
  %48 = sitofp i32 %47 to float
  %49 = fmul float %44, %48
  %50 = load i32, ptr %4, align 4, !tbaa !21
  %51 = sitofp i32 %50 to float
  %52 = fdiv float %49, %51
  store float %52, ptr %46, align 4, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %8, i64 24
  %54 = getelementptr inbounds i8, ptr %8, i64 40
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %53, i8 0, i64 16, i1 false)
  %55 = fadd float %19, %18
  %56 = fsub float %18, %19
  %57 = insertelement <2 x float> <float 2.000000e+00, float poison>, float %55, i64 1
  %58 = insertelement <2 x float> poison, float %20, i64 0
  %59 = insertelement <2 x float> %58, float %56, i64 1
  %60 = fdiv <2 x float> %57, %59
  store <2 x float> %60, ptr %54, align 4, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %8, i64 48
  store <4 x float> <float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 1.000000e+00>, ptr %61, align 4, !tbaa !5
  call void @_ZN3PiE6MatrixIfLi4ELi4EEC2EOSt5arrayIfLm16EE(ptr noundef nonnull align 4 dereferenceable(64) %7, ptr noundef nonnull align 4 dereferenceable(64) %8)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(64) %0, ptr noundef nonnull align 4 dereferenceable(64) %7, i64 64, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #6
  br label %62

62:                                               ; preds = %43, %21
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  ret void
}

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

declare void @SDL_GetWindowSize(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

attributes #0 = { 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 = { 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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !15, i64 304}
!10 = !{!"_ZTSN3PiE6CameraE", !11, i64 8, !13, i64 48, !13, i64 112, !13, i64 176, !13, i64 240, !15, i64 304, !16, i64 312, !6, i64 316, !6, i64 320, !6, i64 324}
!11 = !{!"_ZTSSt5mutex", !12, i64 0}
!12 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!13 = !{!"_ZTSN3PiE6MatrixIfLi4ELi4EEE", !14, i64 0}
!14 = !{!"_ZTSSt5arrayIfLm16EE", !7, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!10, !16, i64 312}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!10, !6, i64 324}
!21 = !{!22, !22, i64 0}
!22 = !{!"int", !7, i64 0}
!23 = !{i64 0, i64 64, !24}
!24 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass