; LLVM IR from aap/librw :: tools/subrast/subrast.ll (Z16UpdateSubRastersPN2rw6CameraEii)

; 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.rw::Rect" = type { i32, i32, i32, i32 }
%"struct.rw::Camera" = type { %"struct.rw::ObjectWithFrame", ptr, ptr, %"struct.rw::V2d", %"struct.rw::V2d", float, float, float, i32, %"struct.rw::Matrix", float, float, [6 x %"struct.rw::FrustumPlane"], [8 x %"struct.rw::V3d"], %"struct.rw::BBox", ptr, ptr, %"struct.rw::RawMatrix", %"struct.rw::RawMatrix", ptr, %"struct.rw::LLLink", ptr, ptr, ptr, ptr }
%"struct.rw::ObjectWithFrame" = type { %"struct.rw::Object", %"struct.rw::LLLink", ptr }
%"struct.rw::Object" = type { i8, i8, i8, i8, ptr }
%"struct.rw::V2d" = type { float, float }
%"struct.rw::Matrix" = type { %"struct.rw::V3d", i32, %"struct.rw::V3d", i32, %"struct.rw::V3d", i32, %"struct.rw::V3d", i32 }
%"struct.rw::V3d" = type { float, float, float }
%"struct.rw::FrustumPlane" = type { %"struct.rw::Plane", i8, i8, i8 }
%"struct.rw::Plane" = type { %"struct.rw::V3d", float }
%"struct.rw::BBox" = type { %"struct.rw::V3d", %"struct.rw::V3d" }
%"struct.rw::RawMatrix" = type { %"struct.rw::V3d", float, %"struct.rw::V3d", float, %"struct.rw::V3d", float, %"struct.rw::V3d", float }
%"struct.rw::LLLink" = type { ptr, ptr }

@SubCameras = external dso_local global [4 x ptr], align 16

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z19CameraSetViewWindowPN2rw6CameraEfff(ptr noundef, float noundef, float noundef, float noundef) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z16UpdateSubRastersPN2rw6CameraEii(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca [4 x %"struct.rw::Rect"], align 16
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %13 = load i32, ptr %6, align 4, !tbaa !9
  %14 = sitofp i32 %13 to float
  %15 = fmul float %14, 0x3FA99999A0000000
  store float %15, ptr %10, align 4, !tbaa !11
  %16 = load i32, ptr %5, align 4, !tbaa !9
  %17 = sitofp i32 %16 to float
  %18 = load float, ptr %10, align 4, !tbaa !11
  %19 = fneg float %18
  %20 = call float @llvm.fmuladd.f32(float %19, float 3.000000e+00, float %17)
  %21 = fdiv float %20, 2.000000e+00
  store float %21, ptr %8, align 4, !tbaa !11
  %22 = load i32, ptr %6, align 4, !tbaa !9
  %23 = sitofp i32 %22 to float
  %24 = load float, ptr %10, align 4, !tbaa !11
  %25 = fneg float %24
  %26 = call float @llvm.fmuladd.f32(float %25, float 3.000000e+00, float %23)
  %27 = fdiv float %26, 2.000000e+00
  store float %27, ptr %9, align 4, !tbaa !11
  %28 = load float, ptr %10, align 4, !tbaa !11
  %29 = fptosi float %28 to i32
  %30 = getelementptr inbounds [4 x %"struct.rw::Rect"], ptr %7, i64 0, i64 0
  %31 = getelementptr inbounds %"struct.rw::Rect", ptr %30, i32 0, i32 0
  store i32 %29, ptr %31, align 16, !tbaa !13
  %32 = load float, ptr %10, align 4, !tbaa !11
  %33 = fptosi float %32 to i32
  %34 = getelementptr inbounds [4 x %"struct.rw::Rect"], ptr %7, i64 0, i64 0
  %35 = getelementptr inbounds %"struct.rw::Rect", ptr %34, i32 0, i32 1
  store i32 %33, ptr %35, align 4, !tbaa !15
  %36 = load float, ptr %8, align 4, !tbaa !11
  %37 = fptosi float %36 to i32
  %38 = getelementptr inbounds [4 x %"struct.rw::Rect"], ptr %7, i64 0, i64 0
  %39 = getelementptr inbounds %"struct.rw::Rect", ptr %38, i32 0, i32 2
  store i32 %37, ptr %39, align 8, !tbaa !16
  %40 = load float, ptr %9, align 4, !tbaa !11
  %41 = fptosi float %40 to i32
  %42 = getelementptr inbounds [4 x %"struct.rw::Rect"], ptr %7, i64 0, i64 0
  %43 = getelementptr inbounds %"struct.rw::Rect", ptr %42, i32 0, i32 3
  store i32 %41, ptr %43, align 4, !tbaa !17
  %44 = load float, ptr %10, align 4, !tbaa !11
  %45 = load float, ptr %8, align 4, !tbaa !11
  %46 = call float @llvm.fmuladd.f32(float %44, float 2.000000e+00, float %45)
  %47 = fptosi float %46 to i32
  %48 = getelementptr inbounds [4 x %"struct.rw::Rect"], ptr %7, i64 0, i64 1
  %49 = getelementptr inbounds %"struct.rw::Rect", ptr %48, i32 0, i32 0
  store i32 %47, ptr %49, align 16, !tbaa !13
  %50 = load float, ptr %10, align 4, !tbaa !11
  %51 = fptosi float %50 to i32
  %52 = getelementptr inbounds [4 x %"struct.rw::Rect"], ptr %7, i64 0, i64 1
  %53 = getelementptr inbounds %"struct.rw::Rect", ptr %52, i32 0, i32 1
  store i32 %51, ptr %53, align 4, !tbaa !15
  %54 = load float, ptr %8, align 4, !tbaa !11
  %55 = fptosi float %54 to i32
  %56 = getelementptr inbounds [4 x %"struct.rw::Rect"], ptr %7, i64 0, i64 1
  %57 = getelementptr inbounds %"struct.rw::Rect", ptr %56, i32 0, i32 2
  store i32 %55, ptr %57, align 8, !tbaa !16
  %58 = load float, ptr %9, align 4, !tbaa !11
  %59 = fptosi float %58 to i32
  %60 = getelementptr inbounds [4 x %"struct.rw::Rect"], ptr %7, i64 0, i64 1
  %61 = getelementptr inbounds %"struct.rw::Rect", ptr %60, i32 0, i32 3
  store i32 %59, ptr %61, align 4, !tbaa !17
  %62 = load float, ptr %10, align 4, !tbaa !11
  %63 = fptosi float %62 to i32
  %64 = getelementptr inbounds [4 x %"struct.rw::Rect"], ptr %7, i64 0, i64 2
  %65 = getelementptr inbounds %"struct.rw::Rect", ptr %64, i32 0, i32 0
  store i32 %63, ptr %65, align 16, !tbaa !13
  %66 = load float, ptr %10, align 4, !tbaa !11
  %67 = load float, ptr %9, align 4, !tbaa !11
  %68 = call float @llvm.fmuladd.f32(float %66, float 2.000000e+00, float %67)
  %69 = fptosi float %68 to i32
  %70 = getelementptr inbounds [4 x %"struct.rw::Rect"], ptr %7, i64 0, i64 2
  %71 = getelementptr inbounds %"struct.rw::Rect", ptr %70, i32 0, i32 1
  store i32 %69, ptr %71, align 4, !tbaa !15
  %72 = load float, ptr %8, align 4, !tbaa !11
  %73 = fptosi float %72 to i32
  %74 = getelementptr inbounds [4 x %"struct.rw::Rect"], ptr %7, i64 0, i64 2
  %75 = getelementptr inbounds %"struct.rw::Rect", ptr %74, i32 0, i32 2
  store i32 %73, ptr %75, align 8, !tbaa !16
  %76 = load float, ptr %9, align 4, !tbaa !11
  %77 = fptosi float %76 to i32
  %78 = getelementptr inbounds [4 x %"struct.rw::Rect"], ptr %7, i64 0, i64 2
  %79 = getelementptr inbounds %"struct.rw::Rect", ptr %78, i32 0, i32 3
  store i32 %77, ptr %79, align 4, !tbaa !17
  %80 = load float, ptr %10, align 4, !tbaa !11
  %81 = load float, ptr %8, align 4, !tbaa !11
  %82 = call float @llvm.fmuladd.f32(float %80, float 2.000000e+00, float %81)
  %83 = fptosi float %82 to i32
  %84 = getelementptr inbounds [4 x %"struct.rw::Rect"], ptr %7, i64 0, i64 3
  %85 = getelementptr inbounds %"struct.rw::Rect", ptr %84, i32 0, i32 0
  store i32 %83, ptr %85, align 16, !tbaa !13
  %86 = load float, ptr %10, align 4, !tbaa !11
  %87 = load float, ptr %9, align 4, !tbaa !11
  %88 = call float @llvm.fmuladd.f32(float %86, float 2.000000e+00, float %87)
  %89 = fptosi float %88 to i32
  %90 = getelementptr inbounds [4 x %"struct.rw::Rect"], ptr %7, i64 0, i64 3
  %91 = getelementptr inbounds %"struct.rw::Rect", ptr %90, i32 0, i32 1
  store i32 %89, ptr %91, align 4, !tbaa !15
  %92 = load float, ptr %8, align 4, !tbaa !11
  %93 = fptosi float %92 to i32
  %94 = getelementptr inbounds [4 x %"struct.rw::Rect"], ptr %7, i64 0, i64 3
  %95 = getelementptr inbounds %"struct.rw::Rect", ptr %94, i32 0, i32 2
  store i32 %93, ptr %95, align 8, !tbaa !16
  %96 = load float, ptr %9, align 4, !tbaa !11
  %97 = fptosi float %96 to i32
  %98 = getelementptr inbounds [4 x %"struct.rw::Rect"], ptr %7, i64 0, i64 3
  %99 = getelementptr inbounds %"struct.rw::Rect", ptr %98, i32 0, i32 3
  store i32 %97, ptr %99, align 4, !tbaa !17
  %100 = load ptr, ptr @SubCameras, align 16, !tbaa !5
  %101 = load float, ptr %8, align 4, !tbaa !11
  %102 = load float, ptr %9, align 4, !tbaa !11
  call void @_Z19CameraSetViewWindowPN2rw6CameraEfff(ptr noundef %100, float noundef %101, float noundef %102, float noundef 5.000000e-01)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 1, ptr %11, align 4, !tbaa !9
  br label %103

103:                                              ; preds = %114, %3
  %104 = load i32, ptr %11, align 4, !tbaa !9
  %105 = icmp slt i32 %104, 4
  br i1 %105, label %107, label %106

106:                                              ; preds = %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %117

107:                                              ; preds = %103
  %108 = load i32, ptr %11, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [4 x ptr], ptr @SubCameras, i64 0, i64 %109
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  %112 = load float, ptr %8, align 4, !tbaa !11
  %113 = load float, ptr %9, align 4, !tbaa !11
  call void @_Z19CameraSetViewWindowPN2rw6CameraEfff(ptr noundef %111, float noundef %112, float noundef %113, float noundef 0x3FECCCCCC0000000)
  br label %114

114:                                              ; preds = %107
  %115 = load i32, ptr %11, align 4, !tbaa !9
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %11, align 4, !tbaa !9
  br label %103, !llvm.loop !18

117:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %147, %117
  %119 = load i32, ptr %12, align 4, !tbaa !9
  %120 = icmp slt i32 %119, 4
  br i1 %120, label %122, label %121

121:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %150

122:                                              ; preds = %118
  %123 = load i32, ptr %12, align 4, !tbaa !9
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [4 x ptr], ptr @SubCameras, i64 0, i64 %124
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.rw::Camera", ptr %126, i32 0, i32 15
  %128 = load ptr, ptr %127, align 8, !tbaa !20
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.rw::Camera", ptr %129, i32 0, i32 15
  %131 = load ptr, ptr %130, align 8, !tbaa !20
  %132 = load i32, ptr %12, align 4, !tbaa !9
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [4 x %"struct.rw::Rect"], ptr %7, i64 0, i64 %133
  call void @_ZN2rw6Raster9subRasterEPS0_PNS_4RectE(ptr noundef nonnull align 8 dereferenceable(96) %128, ptr noundef %131, ptr noundef %134)
  %135 = load i32, ptr %12, align 4, !tbaa !9
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [4 x ptr], ptr @SubCameras, i64 0, i64 %136
  %138 = load ptr, ptr %137, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.rw::Camera", ptr %138, i32 0, i32 16
  %140 = load ptr, ptr %139, align 8, !tbaa !30
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.rw::Camera", ptr %141, i32 0, i32 16
  %143 = load ptr, ptr %142, align 8, !tbaa !30
  %144 = load i32, ptr %12, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [4 x %"struct.rw::Rect"], ptr %7, i64 0, i64 %145
  call void @_ZN2rw6Raster9subRasterEPS0_PNS_4RectE(ptr noundef nonnull align 8 dereferenceable(96) %140, ptr noundef %143, ptr noundef %146)
  br label %147

147:                                              ; preds = %122
  %148 = load i32, ptr %12, align 4, !tbaa !9
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %12, align 4, !tbaa !9
  br label %118, !llvm.loop !31

150:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #4
  ret void
}

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

declare void @_ZN2rw6Raster9subRasterEPS0_PNS_4RectE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef, ptr noundef) #3

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN2rw4RectE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!15 = !{!14, !10, i64 4}
!16 = !{!14, !10, i64 8}
!17 = !{!14, !10, i64 12}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !6, i64 400}
!21 = !{!"_ZTSN2rw6CameraE", !22, i64 0, !6, i64 40, !6, i64 48, !25, i64 56, !25, i64 64, !12, i64 72, !12, i64 76, !12, i64 80, !10, i64 84, !26, i64 88, !12, i64 152, !12, i64 156, !7, i64 160, !7, i64 280, !28, i64 376, !6, i64 400, !6, i64 408, !29, i64 416, !29, i64 480, !6, i64 544, !24, i64 552, !6, i64 568, !6, i64 576, !6, i64 584, !6, i64 592}
!22 = !{!"_ZTSN2rw15ObjectWithFrameE", !23, i64 0, !24, i64 16, !6, i64 32}
!23 = !{!"_ZTSN2rw6ObjectE", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !6, i64 8}
!24 = !{!"_ZTSN2rw6LLLinkE", !6, i64 0, !6, i64 8}
!25 = !{!"_ZTSN2rw3V2dE", !12, i64 0, !12, i64 4}
!26 = !{!"_ZTSN2rw6MatrixE", !27, i64 0, !10, i64 12, !27, i64 16, !10, i64 28, !27, i64 32, !10, i64 44, !27, i64 48, !10, i64 60}
!27 = !{!"_ZTSN2rw3V3dE", !12, i64 0, !12, i64 4, !12, i64 8}
!28 = !{!"_ZTSN2rw4BBoxE", !27, i64 0, !27, i64 12}
!29 = !{!"_ZTSN2rw9RawMatrixE", !27, i64 0, !12, i64 12, !27, i64 16, !12, i64 28, !27, i64 32, !12, i64 44, !27, i64 48, !12, i64 60}
!30 = !{!21, !6, i64 408}
!31 = distinct !{!31, !19}


; 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.rw::Rect" = type { i32, i32, i32, i32 }

@SubCameras = external dso_local local_unnamed_addr global [4 x ptr], align 16

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z19CameraSetViewWindowPN2rw6CameraEfff(ptr noundef, float noundef, float noundef, float noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z16UpdateSubRastersPN2rw6CameraEii(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
.preheader:
  %3 = alloca [4 x %"struct.rw::Rect"], align 16
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #5
  %4 = insertelement <2 x i32> poison, i32 %1, i64 0
  %5 = insertelement <2 x i32> %4, i32 %2, i64 1
  %6 = sitofp <2 x i32> %5 to <2 x float>
  %7 = extractelement <2 x float> %6, i64 1
  %8 = fmul float %7, 0x3FA99999A0000000
  %9 = fneg float %8
  %10 = insertelement <2 x float> poison, float %9, i64 0
  %11 = shufflevector <2 x float> %10, <2 x float> poison, <2 x i32> zeroinitializer
  %12 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %11, <2 x float> <float 3.000000e+00, float 3.000000e+00>, <2 x float> %6)
  %13 = fmul <2 x float> %12, <float 5.000000e-01, float 5.000000e-01>
  %14 = getelementptr inbounds i8, ptr %3, i64 4
  %15 = extractelement <2 x float> %13, i64 0
  %16 = tail call float @llvm.fmuladd.f32(float %8, float 2.000000e+00, float %15)
  %17 = getelementptr inbounds i8, ptr %3, i64 16
  %18 = insertelement <4 x float> poison, float %8, i64 0
  %19 = shufflevector <2 x float> %13, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 poison, i32 poison>
  %20 = shufflevector <4 x float> %18, <4 x float> %19, <4 x i32> <i32 0, i32 4, i32 5, i32 poison>
  %21 = insertelement <4 x float> %20, float %16, i64 3
  %22 = fptosi <4 x float> %21 to <4 x i32>
  %23 = extractelement <4 x i32> %22, i64 0
  store i32 %23, ptr %3, align 16, !tbaa !5
  store <4 x i32> %22, ptr %14, align 4, !tbaa !10
  %24 = getelementptr inbounds i8, ptr %3, i64 20
  %25 = extractelement <4 x i32> %22, i64 1
  %26 = getelementptr inbounds i8, ptr %3, i64 32
  %27 = shufflevector <4 x i32> %22, <4 x i32> poison, <4 x i32> <i32 0, i32 1, i32 2, i32 0>
  store <4 x i32> %27, ptr %24, align 4, !tbaa !10
  %28 = extractelement <2 x float> %13, i64 1
  %29 = tail call float @llvm.fmuladd.f32(float %8, float 2.000000e+00, float %28)
  %30 = fptosi float %29 to i32
  %31 = getelementptr inbounds i8, ptr %3, i64 36
  store i32 %30, ptr %31, align 4, !tbaa !11
  %32 = getelementptr inbounds i8, ptr %3, i64 40
  store i32 %25, ptr %32, align 8, !tbaa !12
  %33 = getelementptr inbounds i8, ptr %3, i64 44
  %34 = getelementptr inbounds i8, ptr %3, i64 48
  %35 = shufflevector <4 x i32> %22, <4 x i32> poison, <2 x i32> <i32 2, i32 3>
  store <2 x i32> %35, ptr %33, align 4, !tbaa !10
  %36 = getelementptr inbounds i8, ptr %3, i64 52
  store i32 %30, ptr %36, align 4, !tbaa !11
  %37 = getelementptr inbounds i8, ptr %3, i64 56
  %38 = shufflevector <4 x i32> %22, <4 x i32> poison, <2 x i32> <i32 1, i32 2>
  store <2 x i32> %38, ptr %37, align 8, !tbaa !10
  %39 = load ptr, ptr @SubCameras, align 16, !tbaa !13
  tail call void @_Z19CameraSetViewWindowPN2rw6CameraEfff(ptr noundef %39, float noundef %15, float noundef %28, float noundef 5.000000e-01)
  %40 = load ptr, ptr getelementptr inbounds (i8, ptr @SubCameras, i64 8), align 8, !tbaa !13
  tail call void @_Z19CameraSetViewWindowPN2rw6CameraEfff(ptr noundef %40, float noundef %15, float noundef %28, float noundef 0x3FECCCCCC0000000)
  %41 = load ptr, ptr getelementptr inbounds (i8, ptr @SubCameras, i64 16), align 16, !tbaa !13
  tail call void @_Z19CameraSetViewWindowPN2rw6CameraEfff(ptr noundef %41, float noundef %15, float noundef %28, float noundef 0x3FECCCCCC0000000)
  %42 = load ptr, ptr getelementptr inbounds (i8, ptr @SubCameras, i64 24), align 8, !tbaa !13
  tail call void @_Z19CameraSetViewWindowPN2rw6CameraEfff(ptr noundef %42, float noundef %15, float noundef %28, float noundef 0x3FECCCCCC0000000)
  %43 = getelementptr inbounds i8, ptr %0, i64 400
  %44 = getelementptr inbounds i8, ptr %0, i64 408
  %45 = load ptr, ptr @SubCameras, align 16, !tbaa !13
  %46 = getelementptr inbounds i8, ptr %45, i64 400
  %47 = load ptr, ptr %46, align 8, !tbaa !15
  %48 = load ptr, ptr %43, align 8, !tbaa !15
  call void @_ZN2rw6Raster9subRasterEPS0_PNS_4RectE(ptr noundef nonnull align 8 dereferenceable(96) %47, ptr noundef %48, ptr noundef nonnull %3)
  %49 = load ptr, ptr @SubCameras, align 16, !tbaa !13
  %50 = getelementptr inbounds i8, ptr %49, i64 408
  %51 = load ptr, ptr %50, align 8, !tbaa !26
  %52 = load ptr, ptr %44, align 8, !tbaa !26
  call void @_ZN2rw6Raster9subRasterEPS0_PNS_4RectE(ptr noundef nonnull align 8 dereferenceable(96) %51, ptr noundef %52, ptr noundef nonnull %3)
  %53 = load ptr, ptr getelementptr inbounds (i8, ptr @SubCameras, i64 8), align 8, !tbaa !13
  %54 = getelementptr inbounds i8, ptr %53, i64 400
  %55 = load ptr, ptr %54, align 8, !tbaa !15
  %56 = load ptr, ptr %43, align 8, !tbaa !15
  call void @_ZN2rw6Raster9subRasterEPS0_PNS_4RectE(ptr noundef nonnull align 8 dereferenceable(96) %55, ptr noundef %56, ptr noundef nonnull %17)
  %57 = load ptr, ptr getelementptr inbounds (i8, ptr @SubCameras, i64 8), align 8, !tbaa !13
  %58 = getelementptr inbounds i8, ptr %57, i64 408
  %59 = load ptr, ptr %58, align 8, !tbaa !26
  %60 = load ptr, ptr %44, align 8, !tbaa !26
  call void @_ZN2rw6Raster9subRasterEPS0_PNS_4RectE(ptr noundef nonnull align 8 dereferenceable(96) %59, ptr noundef %60, ptr noundef nonnull %17)
  %61 = load ptr, ptr getelementptr inbounds (i8, ptr @SubCameras, i64 16), align 16, !tbaa !13
  %62 = getelementptr inbounds i8, ptr %61, i64 400
  %63 = load ptr, ptr %62, align 8, !tbaa !15
  %64 = load ptr, ptr %43, align 8, !tbaa !15
  call void @_ZN2rw6Raster9subRasterEPS0_PNS_4RectE(ptr noundef nonnull align 8 dereferenceable(96) %63, ptr noundef %64, ptr noundef nonnull %26)
  %65 = load ptr, ptr getelementptr inbounds (i8, ptr @SubCameras, i64 16), align 16, !tbaa !13
  %66 = getelementptr inbounds i8, ptr %65, i64 408
  %67 = load ptr, ptr %66, align 8, !tbaa !26
  %68 = load ptr, ptr %44, align 8, !tbaa !26
  call void @_ZN2rw6Raster9subRasterEPS0_PNS_4RectE(ptr noundef nonnull align 8 dereferenceable(96) %67, ptr noundef %68, ptr noundef nonnull %26)
  %69 = load ptr, ptr getelementptr inbounds (i8, ptr @SubCameras, i64 24), align 8, !tbaa !13
  %70 = getelementptr inbounds i8, ptr %69, i64 400
  %71 = load ptr, ptr %70, align 8, !tbaa !15
  %72 = load ptr, ptr %43, align 8, !tbaa !15
  call void @_ZN2rw6Raster9subRasterEPS0_PNS_4RectE(ptr noundef nonnull align 8 dereferenceable(96) %71, ptr noundef %72, ptr noundef nonnull %34)
  %73 = load ptr, ptr getelementptr inbounds (i8, ptr @SubCameras, i64 24), align 8, !tbaa !13
  %74 = getelementptr inbounds i8, ptr %73, i64 408
  %75 = load ptr, ptr %74, align 8, !tbaa !26
  %76 = load ptr, ptr %44, align 8, !tbaa !26
  call void @_ZN2rw6Raster9subRasterEPS0_PNS_4RectE(ptr noundef nonnull align 8 dereferenceable(96) %75, ptr noundef %76, ptr noundef nonnull %34)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #5
  ret void
}

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

declare void @_ZN2rw6Raster9subRasterEPS0_PNS_4RectE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #4

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 nosync nounwind speculatable willreturn memory(none) }
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, !7, i64 0}
!6 = !{!"_ZTSN2rw4RectE", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!6, !7, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!16, !14, i64 400}
!16 = !{!"_ZTSN2rw6CameraE", !17, i64 0, !14, i64 40, !14, i64 48, !20, i64 56, !20, i64 64, !21, i64 72, !21, i64 76, !21, i64 80, !7, i64 84, !22, i64 88, !21, i64 152, !21, i64 156, !8, i64 160, !8, i64 280, !24, i64 376, !14, i64 400, !14, i64 408, !25, i64 416, !25, i64 480, !14, i64 544, !19, i64 552, !14, i64 568, !14, i64 576, !14, i64 584, !14, i64 592}
!17 = !{!"_ZTSN2rw15ObjectWithFrameE", !18, i64 0, !19, i64 16, !14, i64 32}
!18 = !{!"_ZTSN2rw6ObjectE", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !14, i64 8}
!19 = !{!"_ZTSN2rw6LLLinkE", !14, i64 0, !14, i64 8}
!20 = !{!"_ZTSN2rw3V2dE", !21, i64 0, !21, i64 4}
!21 = !{!"float", !8, i64 0}
!22 = !{!"_ZTSN2rw6MatrixE", !23, i64 0, !7, i64 12, !23, i64 16, !7, i64 28, !23, i64 32, !7, i64 44, !23, i64 48, !7, i64 60}
!23 = !{!"_ZTSN2rw3V3dE", !21, i64 0, !21, i64 4, !21, i64 8}
!24 = !{!"_ZTSN2rw4BBoxE", !23, i64 0, !23, i64 12}
!25 = !{!"_ZTSN2rw9RawMatrixE", !23, i64 0, !21, i64 12, !23, i64 16, !21, i64 28, !23, i64 32, !21, i64 44, !23, i64 48, !21, i64 60}
!26 = !{!16, !14, i64 408}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass