; LLVM IR from achilles288/robot-monitor-graphics :: src/base/internal/shadow_map_shader.ll (ZN3rmg8internal15ShadowMapShaderC2Ev)

; 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.rmg::Vec3" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float, float }
%"class.rmg::internal::ShadowMapShader" = type { %"class.rmg::internal::Shader.base", %"class.rmg::Camera", %"struct.rmg::Vec3", %"struct.rmg::Vec3", %"struct.rmg::Vec3", float, float, float, i32, i32, i32 }
%"class.rmg::internal::Shader.base" = type <{ ptr, i32 }>
%"class.rmg::Camera" = type { %"struct.rmg::Vec3", %"struct.rmg::Mat3", %"struct.rmg::Mat4", %"struct.rmg::Mat4", %"struct.rmg::Mat4", float, float, float, float, float, i32 }
%"struct.rmg::Mat3" = type { %union.anon.0 }
%union.anon.0 = type { [3 x [3 x float]] }
%"struct.rmg::Mat4" = type { %union.anon.1 }
%union.anon.1 = type { [4 x [4 x float]] }

@_ZTVN3rmg8internal15ShadowMapShaderE = external dso_local unnamed_addr constant { [5 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3rmg8internal15ShadowMapShaderC2Ev(ptr noundef nonnull align 8 dereferenceable(336) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"struct.rmg::Vec3", align 4
  %6 = alloca %"struct.rmg::Vec3", align 4
  %7 = alloca %"struct.rmg::Vec3", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %8 = load ptr, ptr %2, align 8
  call void @_ZN3rmg8internal6ShaderC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %8) #8
  store ptr getelementptr inbounds inrange(-16, 24) ({ [5 x ptr] }, ptr @_ZTVN3rmg8internal15ShadowMapShaderE, i32 0, i32 0, i32 2), ptr %8, align 8, !tbaa !9
  %9 = getelementptr inbounds %"class.rmg::internal::ShadowMapShader", ptr %8, i32 0, i32 1
  invoke void @_ZN3rmg6CameraC1Ev(ptr noundef nonnull align 4 dereferenceable(264) %9)
          to label %10 unwind label %53

10:                                               ; preds = %1
  %11 = getelementptr inbounds %"class.rmg::internal::ShadowMapShader", ptr %8, i32 0, i32 2
  invoke void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %11)
          to label %12 unwind label %53

12:                                               ; preds = %10
  %13 = getelementptr inbounds %"class.rmg::internal::ShadowMapShader", ptr %8, i32 0, i32 3
  invoke void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %13)
          to label %14 unwind label %53

14:                                               ; preds = %12
  %15 = getelementptr inbounds %"class.rmg::internal::ShadowMapShader", ptr %8, i32 0, i32 4
  invoke void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %15)
          to label %16 unwind label %53

16:                                               ; preds = %14
  %17 = getelementptr inbounds %"class.rmg::internal::ShadowMapShader", ptr %8, i32 0, i32 8
  store i32 0, ptr %17, align 4, !tbaa !11
  %18 = getelementptr inbounds %"class.rmg::internal::ShadowMapShader", ptr %8, i32 0, i32 9
  store i32 0, ptr %18, align 8, !tbaa !21
  %19 = getelementptr inbounds %"class.rmg::internal::ShadowMapShader", ptr %8, i32 0, i32 1
  invoke void @_ZN3rmg6Camera14setAspectRatioEf(ptr noundef nonnull align 4 dereferenceable(264) %19, float noundef 1.000000e+00)
          to label %20 unwind label %53

20:                                               ; preds = %16
  %21 = getelementptr inbounds %"class.rmg::internal::ShadowMapShader", ptr %8, i32 0, i32 1
  invoke void @_ZN3rmg6Camera25setOrthographicProjectionEv(ptr noundef nonnull align 4 dereferenceable(264) %21)
          to label %22 unwind label %53

22:                                               ; preds = %20
  %23 = getelementptr inbounds %"class.rmg::internal::ShadowMapShader", ptr %8, i32 0, i32 1
  invoke void @_ZN3rmg6Camera18setMinimumDistanceEf(ptr noundef nonnull align 4 dereferenceable(264) %23, float noundef 0.000000e+00)
          to label %24 unwind label %53

24:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 12, ptr %5) #8
  invoke void @_ZN3rmg4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %5, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %25 unwind label %57

25:                                               ; preds = %24
  %26 = getelementptr inbounds %"class.rmg::internal::ShadowMapShader", ptr %8, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %5, i64 12, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %6) #8
  invoke void @_ZN3rmg4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %6, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %27 unwind label %61

27:                                               ; preds = %25
  %28 = getelementptr inbounds %"class.rmg::internal::ShadowMapShader", ptr %8, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %28, ptr align 4 %6, i64 12, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %7) #8
  invoke void @_ZN3rmg4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %7, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %29 unwind label %65

29:                                               ; preds = %27
  %30 = getelementptr inbounds %"class.rmg::internal::ShadowMapShader", ptr %8, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %7, i64 12, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #8
  %31 = getelementptr inbounds %"class.rmg::internal::ShadowMapShader", ptr %8, i32 0, i32 5
  store float 1.000000e+00, ptr %31, align 8, !tbaa !24
  %32 = getelementptr inbounds %"class.rmg::internal::ShadowMapShader", ptr %8, i32 0, i32 6
  store float 1.000000e+01, ptr %32, align 4, !tbaa !25
  %33 = getelementptr inbounds %"class.rmg::internal::ShadowMapShader", ptr %8, i32 0, i32 5
  %34 = load float, ptr %33, align 8, !tbaa !24
  %35 = getelementptr inbounds %"class.rmg::internal::ShadowMapShader", ptr %8, i32 0, i32 6
  %36 = load float, ptr %35, align 4, !tbaa !25
  %37 = getelementptr inbounds %"class.rmg::internal::ShadowMapShader", ptr %8, i32 0, i32 5
  %38 = load float, ptr %37, align 8, !tbaa !24
  %39 = fsub float %36, %38
  %40 = fmul float 0x3FE99999A0000000, %39
  %41 = fdiv float %40, 2.000000e+00
  %42 = fadd float %34, %41
  %43 = getelementptr inbounds %"class.rmg::internal::ShadowMapShader", ptr %8, i32 0, i32 7
  store float %42, ptr %43, align 8, !tbaa !26
  invoke void @_ZN3rmg8internal15ShadowMapShader32calculateShadowMapperTranslationEv(ptr noundef nonnull align 8 dereferenceable(336) %8)
          to label %44 unwind label %53

44:                                               ; preds = %29
  %45 = getelementptr inbounds %"class.rmg::internal::ShadowMapShader", ptr %8, i32 0, i32 1
  %46 = getelementptr inbounds %"class.rmg::internal::ShadowMapShader", ptr %8, i32 0, i32 6
  %47 = load float, ptr %46, align 4, !tbaa !25
  %48 = getelementptr inbounds %"class.rmg::internal::ShadowMapShader", ptr %8, i32 0, i32 5
  %49 = load float, ptr %48, align 8, !tbaa !24
  %50 = fsub float %47, %49
  %51 = fmul float 0x3FE99999A0000000, %50
  invoke void @_ZN3rmg6Camera14setFieldOfViewEf(ptr noundef nonnull align 4 dereferenceable(264) %45, float noundef %51)
          to label %52 unwind label %53

52:                                               ; preds = %44
  ret void

53:                                               ; preds = %44, %29, %22, %20, %16, %14, %12, %10, %1
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %3, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %4, align 4
  br label %69

57:                                               ; preds = %24
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %3, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #8
  br label %69

61:                                               ; preds = %25
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %3, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #8
  br label %69

65:                                               ; preds = %27
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %3, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #8
  br label %69

69:                                               ; preds = %65, %61, %57, %53
  call void @_ZN3rmg8internal6ShaderD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %8) #8
  br label %70

70:                                               ; preds = %69
  %71 = load ptr, ptr %3, align 8
  %72 = load i32, ptr %4, align 4
  %73 = insertvalue { ptr, i32 } poison, ptr %71, 0
  %74 = insertvalue { ptr, i32 } %73, i32 %72, 1
  resume { ptr, i32 } %74
}

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

declare void @_ZN3rmg6CameraC1Ev(ptr noundef nonnull align 4 dereferenceable(264)) unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN3rmg6Camera14setAspectRatioEf(ptr noundef nonnull align 4 dereferenceable(264), float noundef) #2

declare void @_ZN3rmg6Camera25setOrthographicProjectionEv(ptr noundef nonnull align 4 dereferenceable(264)) #2

declare void @_ZN3rmg6Camera18setMinimumDistanceEf(ptr noundef nonnull align 4 dereferenceable(264), float noundef) #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3rmg4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #3 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) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3rmg8internal15ShadowMapShader32calculateShadowMapperTranslationEv(ptr noundef nonnull align 8 dereferenceable(336)) #6 align 2

declare void @_ZN3rmg6Camera14setFieldOfViewEf(ptr noundef nonnull align 4 dereferenceable(264), float noundef) #2

; Function Attrs: nounwind
declare void @_ZN3rmg8internal6ShaderD2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #7

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

!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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !14, i64 324}
!12 = !{!"_ZTSN3rmg8internal15ShadowMapShaderE", !13, i64 0, !15, i64 12, !16, i64 276, !16, i64 288, !16, i64 300, !19, i64 312, !19, i64 316, !19, i64 320, !14, i64 324, !14, i64 328, !14, i64 332}
!13 = !{!"_ZTSN3rmg8internal6ShaderE", !14, i64 8}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSN3rmg6CameraE", !16, i64 0, !17, i64 12, !18, i64 48, !18, i64 112, !18, i64 176, !19, i64 240, !19, i64 244, !19, i64 248, !19, i64 252, !19, i64 256, !20, i64 260}
!16 = !{!"_ZTSN3rmg4Vec3E", !7, i64 0}
!17 = !{!"_ZTSN3rmg4Mat3E", !7, i64 0}
!18 = !{!"_ZTSN3rmg4Mat4E", !7, i64 0}
!19 = !{!"float", !7, i64 0}
!20 = !{!"_ZTSN3rmg14ProjectionModeE", !7, i64 0}
!21 = !{!12, !14, i64 328}
!22 = !{i64 0, i64 12, !23}
!23 = !{!7, !7, i64 0}
!24 = !{!12, !19, i64 312}
!25 = !{!12, !19, i64 316}
!26 = !{!12, !19, i64 320}


; 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.rmg::Vec3" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float, float }

@_ZTVN3rmg8internal15ShadowMapShaderE = external dso_local unnamed_addr constant { [5 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3rmg8internal15ShadowMapShaderC2Ev(ptr noundef nonnull align 8 dereferenceable(336) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.rmg::Vec3", align 4
  %3 = alloca %"struct.rmg::Vec3", align 4
  %4 = alloca %"struct.rmg::Vec3", align 4
  tail call void @_ZN3rmg8internal6ShaderC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %0) #8
  store ptr getelementptr inbounds inrange(-16, 24) (i8, ptr @_ZTVN3rmg8internal15ShadowMapShaderE, i64 16), ptr %0, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 12
  invoke void @_ZN3rmg6CameraC1Ev(ptr noundef nonnull align 4 dereferenceable(264) %5)
          to label %6 unwind label %24

6:                                                ; preds = %1
  %7 = getelementptr inbounds i8, ptr %0, i64 276
  tail call void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %7)
  %8 = getelementptr inbounds i8, ptr %0, i64 288
  tail call void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %8)
  %9 = getelementptr inbounds i8, ptr %0, i64 300
  tail call void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %9)
  %10 = getelementptr inbounds i8, ptr %0, i64 324
  store i32 0, ptr %10, align 4, !tbaa !8
  %11 = getelementptr inbounds i8, ptr %0, i64 328
  store i32 0, ptr %11, align 8, !tbaa !19
  invoke void @_ZN3rmg6Camera14setAspectRatioEf(ptr noundef nonnull align 4 dereferenceable(264) %5, float noundef 1.000000e+00)
          to label %12 unwind label %24

12:                                               ; preds = %6
  invoke void @_ZN3rmg6Camera25setOrthographicProjectionEv(ptr noundef nonnull align 4 dereferenceable(264) %5)
          to label %13 unwind label %24

13:                                               ; preds = %12
  invoke void @_ZN3rmg6Camera18setMinimumDistanceEf(ptr noundef nonnull align 4 dereferenceable(264) %5, float noundef 0.000000e+00)
          to label %14 unwind label %24

14:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #8
  call void @_ZN3rmg4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %2, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %2, i64 12, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #8
  call void @_ZN3rmg4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %3, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %3, i64 12, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #8
  call void @_ZN3rmg4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %4, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %4, i64 12, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #8
  %15 = getelementptr inbounds i8, ptr %0, i64 312
  store <2 x float> <float 1.000000e+00, float 1.000000e+01>, ptr %15, align 8, !tbaa !22
  %16 = getelementptr inbounds i8, ptr %0, i64 320
  store float 0x4012666680000000, ptr %16, align 8, !tbaa !23
  invoke void @_ZN3rmg8internal15ShadowMapShader32calculateShadowMapperTranslationEv(ptr noundef nonnull align 8 dereferenceable(336) %0)
          to label %17 unwind label %24

17:                                               ; preds = %14
  %18 = getelementptr inbounds i8, ptr %0, i64 316
  %19 = load float, ptr %18, align 4, !tbaa !24
  %20 = load float, ptr %15, align 8, !tbaa !25
  %21 = fsub float %19, %20
  %22 = fmul float %21, 0x3FE99999A0000000
  invoke void @_ZN3rmg6Camera14setFieldOfViewEf(ptr noundef nonnull align 4 dereferenceable(264) %5, float noundef %22)
          to label %23 unwind label %24

23:                                               ; preds = %17
  ret void

24:                                               ; preds = %17, %14, %13, %12, %6, %1
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3rmg8internal6ShaderD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %0) #8
  resume { ptr, i32 } %25
}

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

declare void @_ZN3rmg6CameraC1Ev(ptr noundef nonnull align 4 dereferenceable(264)) unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN3rmg6Camera14setAspectRatioEf(ptr noundef nonnull align 4 dereferenceable(264), float noundef) local_unnamed_addr #2

declare void @_ZN3rmg6Camera25setOrthographicProjectionEv(ptr noundef nonnull align 4 dereferenceable(264)) local_unnamed_addr #2

declare void @_ZN3rmg6Camera18setMinimumDistanceEf(ptr noundef nonnull align 4 dereferenceable(264), float noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3rmg4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #3 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) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3rmg8internal15ShadowMapShader32calculateShadowMapperTranslationEv(ptr noundef nonnull align 8 dereferenceable(336)) local_unnamed_addr #6 align 2

declare void @_ZN3rmg6Camera14setFieldOfViewEf(ptr noundef nonnull align 4 dereferenceable(264), float noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN3rmg8internal6ShaderD2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #7

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

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !11, i64 324}
!9 = !{!"_ZTSN3rmg8internal15ShadowMapShaderE", !10, i64 0, !13, i64 12, !14, i64 276, !14, i64 288, !14, i64 300, !17, i64 312, !17, i64 316, !17, i64 320, !11, i64 324, !11, i64 328, !11, i64 332}
!10 = !{!"_ZTSN3rmg8internal6ShaderE", !11, i64 8}
!11 = !{!"int", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"_ZTSN3rmg6CameraE", !14, i64 0, !15, i64 12, !16, i64 48, !16, i64 112, !16, i64 176, !17, i64 240, !17, i64 244, !17, i64 248, !17, i64 252, !17, i64 256, !18, i64 260}
!14 = !{!"_ZTSN3rmg4Vec3E", !12, i64 0}
!15 = !{!"_ZTSN3rmg4Mat3E", !12, i64 0}
!16 = !{!"_ZTSN3rmg4Mat4E", !12, i64 0}
!17 = !{!"float", !12, i64 0}
!18 = !{!"_ZTSN3rmg14ProjectionModeE", !12, i64 0}
!19 = !{!9, !11, i64 328}
!20 = !{i64 0, i64 12, !21}
!21 = !{!12, !12, i64 0}
!22 = !{!17, !17, i64 0}
!23 = !{!9, !17, i64 320}
!24 = !{!9, !17, i64 316}
!25 = !{!9, !17, i64 312}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass