; LLVM IR from aap/librw :: src/world.ll (ZN2rw5World15enumerateLightsEPNS_6AtomicEPNS_11WorldLightsE)

; 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::V3d" = type { float, float, float }
%"struct.rw::WorldLights" = type { i32, %"struct.rw::RGBAf", i32, ptr, i32, ptr }
%"struct.rw::RGBAf" = type { float, float, float, float }
%"struct.rw::Atomic" = type { %"struct.rw::ObjectWithFrame", ptr, %"struct.rw::Sphere", %"struct.rw::Sphere", 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::Sphere" = type { %"struct.rw::V3d", float }
%"struct.rw::LLLink" = type { ptr, ptr }
%"struct.rw::Geometry" = type { %"struct.rw::Object", i32, i16, i32, i32, i32, i32, ptr, ptr, [8 x ptr], ptr, %"struct.rw::MaterialList", ptr, ptr, i32 }
%"struct.rw::MaterialList" = type { ptr, i32, i32 }
%"struct.rw::World" = type { %"struct.rw::Object", %"struct.rw::LinkList", %"struct.rw::LinkList", %"struct.rw::LinkList" }
%"struct.rw::LinkList" = type { %"struct.rw::LLLink" }
%"struct.rw::Light" = type { %"struct.rw::ObjectWithFrame", float, %"struct.rw::RGBAf", float, %"struct.rw::LLLink", ptr, %"struct.rw::LLLink", ptr, ptr }
%"struct.rw::Matrix" = type { %"struct.rw::V3d", i32, %"struct.rw::V3d", i32, %"struct.rw::V3d", i32, %"struct.rw::V3d", i32 }

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2rw5World15enumerateLightsEPNS_6AtomicEPNS_11WorldLightsE(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef %1, ptr noundef %2) #2 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"struct.rw::V3d", align 4
  %19 = alloca { <2 x float>, float }, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %20 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.rw::WorldLights", ptr %21, i32 0, i32 2
  %23 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %23, ptr %7, align 4, !tbaa !14
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.rw::WorldLights", ptr %24, i32 0, i32 4
  %26 = load i32, ptr %25, align 8, !tbaa !15
  store i32 %26, ptr %8, align 4, !tbaa !14
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.rw::WorldLights", ptr %27, i32 0, i32 2
  store i32 0, ptr %28, align 4, !tbaa !9
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.rw::WorldLights", ptr %29, i32 0, i32 4
  store i32 0, ptr %30, align 8, !tbaa !15
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.rw::WorldLights", ptr %31, i32 0, i32 0
  store i32 0, ptr %32, align 8, !tbaa !16
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.rw::WorldLights", ptr %33, i32 0, i32 1
  %35 = getelementptr inbounds %"struct.rw::RGBAf", ptr %34, i32 0, i32 0
  store float 0.000000e+00, ptr %35, align 4, !tbaa !17
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.rw::WorldLights", ptr %36, i32 0, i32 1
  %38 = getelementptr inbounds %"struct.rw::RGBAf", ptr %37, i32 0, i32 1
  store float 0.000000e+00, ptr %38, align 4, !tbaa !18
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.rw::WorldLights", ptr %39, i32 0, i32 1
  %41 = getelementptr inbounds %"struct.rw::RGBAf", ptr %40, i32 0, i32 2
  store float 0.000000e+00, ptr %41, align 4, !tbaa !19
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.rw::WorldLights", ptr %42, i32 0, i32 1
  %44 = getelementptr inbounds %"struct.rw::RGBAf", ptr %43, i32 0, i32 3
  store float 1.000000e+00, ptr %44, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.rw::Atomic", ptr %45, i32 0, i32 1
  %47 = load ptr, ptr %46, align 8, !tbaa !21
  %48 = getelementptr inbounds %"struct.rw::Geometry", ptr %47, i32 0, i32 1
  %49 = load i32, ptr %48, align 8, !tbaa !28
  %50 = and i32 %49, 16
  store i32 %50, ptr %9, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store ptr null, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %51 = getelementptr inbounds %"struct.rw::World", ptr %20, i32 0, i32 2
  %52 = getelementptr inbounds %"struct.rw::LinkList", ptr %51, i32 0, i32 0
  %53 = getelementptr inbounds %"struct.rw::LLLink", ptr %52, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8, !tbaa !32
  store ptr %54, ptr %11, align 8, !tbaa !5
  br label %55

55:                                               ; preds = %138, %3
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.rw::LLLink", ptr %56, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8, !tbaa !35
  store ptr %58, ptr %10, align 8, !tbaa !5
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.rw::World", ptr %20, i32 0, i32 2
  %61 = call noundef ptr @_ZN2rw8LinkList3endEv(ptr noundef nonnull align 8 dereferenceable(16) %60)
  %62 = icmp ne ptr %59, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %55
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %140

64:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  %66 = call noundef ptr @_ZN2rw5Light9fromWorldEPNS_6LLLinkE(ptr noundef %65)
  store ptr %66, ptr %13, align 8, !tbaa !5
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = call noundef i32 @_ZN2rw5Light8getFlagsEv(ptr noundef nonnull align 8 dereferenceable(120) %67)
  %69 = and i32 %68, 1
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %71, label %72

71:                                               ; preds = %64
  store i32 4, ptr %12, align 4
  br label %135

72:                                               ; preds = %64
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  %74 = call noundef i32 @_ZN2rw5Light7getTypeEv(ptr noundef nonnull align 8 dereferenceable(120) %73)
  %75 = icmp eq i32 %74, 2
  br i1 %75, label %76, label %108

76:                                               ; preds = %72
  %77 = load ptr, ptr %13, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.rw::Light", ptr %77, i32 0, i32 2
  %79 = getelementptr inbounds %"struct.rw::RGBAf", ptr %78, i32 0, i32 0
  %80 = load float, ptr %79, align 4, !tbaa !36
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.rw::WorldLights", ptr %81, i32 0, i32 1
  %83 = getelementptr inbounds %"struct.rw::RGBAf", ptr %82, i32 0, i32 0
  %84 = load float, ptr %83, align 4, !tbaa !17
  %85 = fadd float %84, %80
  store float %85, ptr %83, align 4, !tbaa !17
  %86 = load ptr, ptr %13, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.rw::Light", ptr %86, i32 0, i32 2
  %88 = getelementptr inbounds %"struct.rw::RGBAf", ptr %87, i32 0, i32 1
  %89 = load float, ptr %88, align 4, !tbaa !38
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.rw::WorldLights", ptr %90, i32 0, i32 1
  %92 = getelementptr inbounds %"struct.rw::RGBAf", ptr %91, i32 0, i32 1
  %93 = load float, ptr %92, align 4, !tbaa !18
  %94 = fadd float %93, %89
  store float %94, ptr %92, align 4, !tbaa !18
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.rw::Light", ptr %95, i32 0, i32 2
  %97 = getelementptr inbounds %"struct.rw::RGBAf", ptr %96, i32 0, i32 2
  %98 = load float, ptr %97, align 4, !tbaa !39
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.rw::WorldLights", ptr %99, i32 0, i32 1
  %101 = getelementptr inbounds %"struct.rw::RGBAf", ptr %100, i32 0, i32 2
  %102 = load float, ptr %101, align 4, !tbaa !19
  %103 = fadd float %102, %98
  store float %103, ptr %101, align 4, !tbaa !19
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.rw::WorldLights", ptr %104, i32 0, i32 0
  %106 = load i32, ptr %105, align 8, !tbaa !16
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %105, align 8, !tbaa !16
  br label %134

108:                                              ; preds = %72
  %109 = load i32, ptr %9, align 4, !tbaa !14
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %133

111:                                              ; preds = %108
  %112 = load ptr, ptr %13, align 8, !tbaa !5
  %113 = call noundef i32 @_ZN2rw5Light7getTypeEv(ptr noundef nonnull align 8 dereferenceable(120) %112)
  %114 = icmp eq i32 %113, 1
  br i1 %114, label %115, label %133

115:                                              ; preds = %111
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.rw::WorldLights", ptr %116, i32 0, i32 2
  %118 = load i32, ptr %117, align 4, !tbaa !9
  %119 = load i32, ptr %7, align 4, !tbaa !14
  %120 = icmp slt i32 %118, %119
  br i1 %120, label %121, label %132

121:                                              ; preds = %115
  %122 = load ptr, ptr %13, align 8, !tbaa !5
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.rw::WorldLights", ptr %123, i32 0, i32 3
  %125 = load ptr, ptr %124, align 8, !tbaa !40
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.rw::WorldLights", ptr %126, i32 0, i32 2
  %128 = load i32, ptr %127, align 4, !tbaa !9
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %127, align 4, !tbaa !9
  %130 = sext i32 %128 to i64
  %131 = getelementptr inbounds ptr, ptr %125, i64 %130
  store ptr %122, ptr %131, align 8, !tbaa !5
  br label %132

132:                                              ; preds = %121, %115
  br label %133

133:                                              ; preds = %132, %111, %108
  br label %134

134:                                              ; preds = %133, %76
  store i32 0, ptr %12, align 4
  br label %135

135:                                              ; preds = %134, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  %136 = load i32, ptr %12, align 4
  switch i32 %136, label %221 [
    i32 0, label %137
    i32 4, label %138
  ]

137:                                              ; preds = %135
  br label %138

138:                                              ; preds = %137, %135
  %139 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %139, ptr %11, align 8, !tbaa !5
  br label %55, !llvm.loop !41

140:                                              ; preds = %63
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.rw::Atomic", ptr %141, i32 0, i32 8
  %143 = load ptr, ptr %142, align 8, !tbaa !43
  %144 = icmp ne ptr %143, %20
  br i1 %144, label %145, label %146

145:                                              ; preds = %140
  store i32 1, ptr %12, align 4
  br label %218

146:                                              ; preds = %140
  %147 = load i32, ptr %9, align 4, !tbaa !14
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %150, label %149

149:                                              ; preds = %146
  store i32 1, ptr %12, align 4
  br label %218

150:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store ptr null, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %151 = getelementptr inbounds %"struct.rw::World", ptr %20, i32 0, i32 1
  %152 = getelementptr inbounds %"struct.rw::LinkList", ptr %151, i32 0, i32 0
  %153 = getelementptr inbounds %"struct.rw::LLLink", ptr %152, i32 0, i32 0
  %154 = load ptr, ptr %153, align 8, !tbaa !44
  store ptr %154, ptr %15, align 8, !tbaa !5
  br label %155

155:                                              ; preds = %213, %150
  %156 = load ptr, ptr %15, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.rw::LLLink", ptr %156, i32 0, i32 0
  %158 = load ptr, ptr %157, align 8, !tbaa !35
  store ptr %158, ptr %14, align 8, !tbaa !5
  %159 = load ptr, ptr %15, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.rw::World", ptr %20, i32 0, i32 1
  %161 = call noundef ptr @_ZN2rw8LinkList3endEv(ptr noundef nonnull align 8 dereferenceable(16) %160)
  %162 = icmp ne ptr %159, %161
  br i1 %162, label %164, label %163

163:                                              ; preds = %155
  store i32 5, ptr %12, align 4
  br label %215

164:                                              ; preds = %155
  %165 = load ptr, ptr %6, align 8, !tbaa !5
  %166 = getelementptr inbounds %"struct.rw::WorldLights", ptr %165, i32 0, i32 4
  %167 = load i32, ptr %166, align 8, !tbaa !15
  %168 = load i32, ptr %8, align 4, !tbaa !14
  %169 = icmp sge i32 %167, %168
  br i1 %169, label %170, label %171

170:                                              ; preds = %164
  store i32 1, ptr %12, align 4
  br label %215

171:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %172 = load ptr, ptr %15, align 8, !tbaa !5
  %173 = call noundef ptr @_ZN2rw5Light9fromWorldEPNS_6LLLinkE(ptr noundef %172)
  store ptr %173, ptr %16, align 8, !tbaa !5
  %174 = load ptr, ptr %16, align 8, !tbaa !5
  %175 = call noundef i32 @_ZN2rw5Light8getFlagsEv(ptr noundef nonnull align 8 dereferenceable(120) %174)
  %176 = and i32 %175, 1
  %177 = icmp eq i32 %176, 0
  br i1 %177, label %178, label %179

178:                                              ; preds = %171
  store i32 7, ptr %12, align 4
  br label %210

179:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = call noundef ptr @_ZN2rw6Atomic22getWorldBoundingSphereEv(ptr noundef nonnull align 8 dereferenceable(136) %180)
  store ptr %181, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #7
  %182 = load ptr, ptr %16, align 8, !tbaa !5
  %183 = call noundef ptr @_ZNK2rw5Light8getFrameEv(ptr noundef nonnull align 8 dereferenceable(120) %182)
  %184 = call noundef ptr @_ZN2rw5Frame6getLTMEv(ptr noundef nonnull align 8 dereferenceable(200) %183)
  %185 = getelementptr inbounds %"struct.rw::Matrix", ptr %184, i32 0, i32 6
  %186 = load ptr, ptr %17, align 8, !tbaa !5
  %187 = getelementptr inbounds %"struct.rw::Sphere", ptr %186, i32 0, i32 0
  %188 = call { <2 x float>, float } @_ZN2rw3subERKNS_3V3dES2_(ptr noundef nonnull align 4 dereferenceable(12) %185, ptr noundef nonnull align 4 dereferenceable(12) %187)
  store { <2 x float>, float } %188, ptr %19, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 8 %19, i64 12, i1 false)
  %189 = call noundef float @_ZN2rw6lengthERKNS_3V3dE(ptr noundef nonnull align 4 dereferenceable(12) %18)
  %190 = load ptr, ptr %17, align 8, !tbaa !5
  %191 = getelementptr inbounds %"struct.rw::Sphere", ptr %190, i32 0, i32 1
  %192 = load float, ptr %191, align 4, !tbaa !45
  %193 = load ptr, ptr %16, align 8, !tbaa !5
  %194 = getelementptr inbounds %"struct.rw::Light", ptr %193, i32 0, i32 1
  %195 = load float, ptr %194, align 8, !tbaa !46
  %196 = fadd float %192, %195
  %197 = fcmp olt float %189, %196
  br i1 %197, label %198, label %209

198:                                              ; preds = %179
  %199 = load ptr, ptr %16, align 8, !tbaa !5
  %200 = load ptr, ptr %6, align 8, !tbaa !5
  %201 = getelementptr inbounds %"struct.rw::WorldLights", ptr %200, i32 0, i32 5
  %202 = load ptr, ptr %201, align 8, !tbaa !47
  %203 = load ptr, ptr %6, align 8, !tbaa !5
  %204 = getelementptr inbounds %"struct.rw::WorldLights", ptr %203, i32 0, i32 4
  %205 = load i32, ptr %204, align 8, !tbaa !15
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %204, align 8, !tbaa !15
  %207 = sext i32 %205 to i64
  %208 = getelementptr inbounds ptr, ptr %202, i64 %207
  store ptr %199, ptr %208, align 8, !tbaa !5
  br label %209

209:                                              ; preds = %198, %179
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  store i32 0, ptr %12, align 4
  br label %210

210:                                              ; preds = %209, %178
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  %211 = load i32, ptr %12, align 4
  switch i32 %211, label %221 [
    i32 0, label %212
    i32 7, label %213
  ]

212:                                              ; preds = %210
  br label %213

213:                                              ; preds = %212, %210
  %214 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %214, ptr %15, align 8, !tbaa !5
  br label %155, !llvm.loop !48

215:                                              ; preds = %170, %163
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  %216 = load i32, ptr %12, align 4
  switch i32 %216, label %218 [
    i32 5, label %217
  ]

217:                                              ; preds = %215
  store i32 0, ptr %12, align 4
  br label %218

218:                                              ; preds = %217, %215, %149, %145
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  %219 = load i32, ptr %12, align 4
  switch i32 %219, label %221 [
    i32 0, label %220
    i32 1, label %220
  ]

220:                                              ; preds = %218, %218
  ret void

221:                                              ; preds = %218, %210, %135
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN2rw5Light9fromWorldEPNS_6LLLinkE(ptr noundef) #1 align 2

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

declare noundef ptr @_ZN2rw6Atomic22getWorldBoundingSphereEv(ptr noundef nonnull align 8 dereferenceable(136)) #3

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

declare noundef ptr @_ZN2rw5Frame6getLTMEv(ptr noundef nonnull align 8 dereferenceable(200)) #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) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN2rw6lengthERKNS_3V3dE(ptr noundef nonnull align 4 dereferenceable(12)) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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 = { inlinehint 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #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, !11, i64 20}
!10 = !{!"_ZTSN2rw11WorldLightsE", !11, i64 0, !12, i64 4, !11, i64 20, !6, i64 24, !11, i64 32, !6, i64 40}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSN2rw5RGBAfE", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!13 = !{!"float", !7, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!10, !11, i64 32}
!16 = !{!10, !11, i64 0}
!17 = !{!10, !13, i64 4}
!18 = !{!10, !13, i64 8}
!19 = !{!10, !13, i64 12}
!20 = !{!10, !13, i64 16}
!21 = !{!22, !6, i64 40}
!22 = !{!"_ZTSN2rw6AtomicE", !23, i64 0, !6, i64 40, !26, i64 48, !26, i64 64, !6, i64 80, !25, i64 88, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128}
!23 = !{!"_ZTSN2rw15ObjectWithFrameE", !24, i64 0, !25, i64 16, !6, i64 32}
!24 = !{!"_ZTSN2rw6ObjectE", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !6, i64 8}
!25 = !{!"_ZTSN2rw6LLLinkE", !6, i64 0, !6, i64 8}
!26 = !{!"_ZTSN2rw6SphereE", !27, i64 0, !13, i64 12}
!27 = !{!"_ZTSN2rw3V3dE", !13, i64 0, !13, i64 4, !13, i64 8}
!28 = !{!29, !11, i64 16}
!29 = !{!"_ZTSN2rw8GeometryE", !24, i64 0, !11, i64 16, !30, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !6, i64 40, !6, i64 48, !7, i64 56, !6, i64 120, !31, i64 128, !6, i64 144, !6, i64 152, !11, i64 160}
!30 = !{!"short", !7, i64 0}
!31 = !{!"_ZTSN2rw12MaterialListE", !6, i64 0, !11, i64 8, !11, i64 12}
!32 = !{!33, !6, i64 32}
!33 = !{!"_ZTSN2rw5WorldE", !24, i64 0, !34, i64 16, !34, i64 32, !34, i64 48}
!34 = !{!"_ZTSN2rw8LinkListE", !25, i64 0}
!35 = !{!25, !6, i64 0}
!36 = !{!37, !13, i64 44}
!37 = !{!"_ZTSN2rw5LightE", !23, i64 0, !13, i64 40, !12, i64 44, !13, i64 60, !25, i64 64, !6, i64 80, !25, i64 88, !6, i64 104, !6, i64 112}
!38 = !{!37, !13, i64 48}
!39 = !{!37, !13, i64 52}
!40 = !{!10, !6, i64 24}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}
!43 = !{!22, !6, i64 120}
!44 = !{!33, !6, i64 16}
!45 = !{!26, !13, i64 12}
!46 = !{!37, !13, i64 40}
!47 = !{!10, !6, i64 40}
!48 = distinct !{!48, !42}


; 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::V3d" = type { float, float, float }

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2rw5World15enumerateLightsEPNS_6AtomicEPNS_11WorldLightsE(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef %1, ptr nocapture noundef %2) local_unnamed_addr #2 align 2 {
  %4 = alloca %"struct.rw::V3d", align 8
  %5 = getelementptr inbounds i8, ptr %2, i64 20
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %2, i64 32
  %8 = load i32, ptr %7, align 8, !tbaa !13
  store i32 0, ptr %5, align 4, !tbaa !5
  store i32 0, ptr %7, align 8, !tbaa !13
  %9 = getelementptr inbounds i8, ptr %2, i64 4
  %10 = getelementptr inbounds i8, ptr %2, i64 12
  %11 = getelementptr inbounds i8, ptr %2, i64 16
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %2, i8 0, i64 16, i1 false)
  store float 1.000000e+00, ptr %11, align 4, !tbaa !14
  %12 = getelementptr inbounds i8, ptr %1, i64 40
  %13 = load ptr, ptr %12, align 8, !tbaa !15
  %14 = getelementptr inbounds i8, ptr %13, i64 16
  %15 = load i32, ptr %14, align 8, !tbaa !22
  %.fr64 = freeze i32 %15
  %16 = and i32 %.fr64, 16
  %17 = getelementptr inbounds i8, ptr %0, i64 32
  %18 = load ptr, ptr %17, align 8, !tbaa !26
  %19 = load ptr, ptr %18, align 8, !tbaa !29
  %20 = tail call noundef ptr @_ZN2rw8LinkList3endEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
  %.not57 = icmp eq ptr %18, %20
  br i1 %.not57, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %3
  %.not56 = icmp eq i32 %16, 0
  %21 = getelementptr inbounds i8, ptr %2, i64 24
  br i1 %.not56, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %41
  %22 = phi ptr [ %42, %41 ], [ %19, %.lr.ph ]
  %.058.us = phi ptr [ %22, %41 ], [ %18, %.lr.ph ]
  %23 = tail call noundef ptr @_ZN2rw5Light9fromWorldEPNS_6LLLinkE(ptr noundef nonnull %.058.us)
  %24 = tail call noundef i32 @_ZN2rw5Light8getFlagsEv(ptr noundef nonnull align 8 dereferenceable(120) %23)
  %25 = and i32 %24, 1
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %41, label %27

27:                                               ; preds = %.lr.ph.split.us
  %28 = tail call noundef i32 @_ZN2rw5Light7getTypeEv(ptr noundef nonnull align 8 dereferenceable(120) %23)
  %29 = icmp eq i32 %28, 2
  br i1 %29, label %30, label %41

30:                                               ; preds = %27
  %31 = getelementptr inbounds i8, ptr %23, i64 44
  %32 = load <2 x float>, ptr %31, align 4, !tbaa !30
  %33 = load <2 x float>, ptr %9, align 4, !tbaa !30
  %34 = fadd <2 x float> %32, %33
  store <2 x float> %34, ptr %9, align 4, !tbaa !30
  %35 = getelementptr inbounds i8, ptr %23, i64 52
  %36 = load float, ptr %35, align 4, !tbaa !31
  %37 = load float, ptr %10, align 4, !tbaa !33
  %38 = fadd float %36, %37
  store float %38, ptr %10, align 4, !tbaa !33
  %39 = load i32, ptr %2, align 8, !tbaa !34
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %2, align 8, !tbaa !34
  br label %41

41:                                               ; preds = %27, %30, %.lr.ph.split.us
  %42 = load ptr, ptr %22, align 8, !tbaa !29
  %43 = tail call noundef ptr @_ZN2rw8LinkList3endEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
  %.not.us = icmp eq ptr %22, %43
  br i1 %.not.us, label %._crit_edge, label %.lr.ph.split.us, !llvm.loop !35

._crit_edge:                                      ; preds = %76, %41, %3
  %44 = getelementptr inbounds i8, ptr %1, i64 120
  %45 = load ptr, ptr %44, align 8, !tbaa !37
  %.not52 = icmp ne ptr %45, %0
  %.not53 = icmp eq i32 %16, 0
  %or.cond = or i1 %.not52, %.not53
  br i1 %or.cond, label %.loopexit, label %79

.lr.ph.split:                                     ; preds = %.lr.ph, %76
  %46 = phi ptr [ %77, %76 ], [ %19, %.lr.ph ]
  %.058 = phi ptr [ %46, %76 ], [ %18, %.lr.ph ]
  %47 = tail call noundef ptr @_ZN2rw5Light9fromWorldEPNS_6LLLinkE(ptr noundef nonnull %.058)
  %48 = tail call noundef i32 @_ZN2rw5Light8getFlagsEv(ptr noundef nonnull align 8 dereferenceable(120) %47)
  %49 = and i32 %48, 1
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %76, label %51

51:                                               ; preds = %.lr.ph.split
  %52 = tail call noundef i32 @_ZN2rw5Light7getTypeEv(ptr noundef nonnull align 8 dereferenceable(120) %47)
  %53 = icmp eq i32 %52, 2
  br i1 %53, label %54, label %65

54:                                               ; preds = %51
  %55 = getelementptr inbounds i8, ptr %47, i64 44
  %56 = load <2 x float>, ptr %55, align 4, !tbaa !30
  %57 = load <2 x float>, ptr %9, align 4, !tbaa !30
  %58 = fadd <2 x float> %56, %57
  store <2 x float> %58, ptr %9, align 4, !tbaa !30
  %59 = getelementptr inbounds i8, ptr %47, i64 52
  %60 = load float, ptr %59, align 4, !tbaa !31
  %61 = load float, ptr %10, align 4, !tbaa !33
  %62 = fadd float %60, %61
  store float %62, ptr %10, align 4, !tbaa !33
  %63 = load i32, ptr %2, align 8, !tbaa !34
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %2, align 8, !tbaa !34
  br label %76

65:                                               ; preds = %51
  %66 = tail call noundef i32 @_ZN2rw5Light7getTypeEv(ptr noundef nonnull align 8 dereferenceable(120) %47)
  %67 = icmp eq i32 %66, 1
  br i1 %67, label %68, label %76

68:                                               ; preds = %65
  %69 = load i32, ptr %5, align 4, !tbaa !5
  %70 = icmp slt i32 %69, %6
  br i1 %70, label %71, label %76

71:                                               ; preds = %68
  %72 = load ptr, ptr %21, align 8, !tbaa !38
  %73 = add nsw i32 %69, 1
  store i32 %73, ptr %5, align 4, !tbaa !5
  %74 = sext i32 %69 to i64
  %75 = getelementptr inbounds ptr, ptr %72, i64 %74
  store ptr %47, ptr %75, align 8, !tbaa !39
  br label %76

76:                                               ; preds = %54, %68, %71, %65, %.lr.ph.split
  %77 = load ptr, ptr %46, align 8, !tbaa !29
  %78 = tail call noundef ptr @_ZN2rw8LinkList3endEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
  %.not = icmp eq ptr %46, %78
  br i1 %.not, label %._crit_edge, label %.lr.ph.split, !llvm.loop !35

79:                                               ; preds = %._crit_edge
  %80 = getelementptr inbounds i8, ptr %0, i64 16
  %81 = load ptr, ptr %80, align 8, !tbaa !40
  %82 = load ptr, ptr %81, align 8, !tbaa !29
  %83 = tail call noundef ptr @_ZN2rw8LinkList3endEv(ptr noundef nonnull align 8 dereferenceable(16) %80)
  %.not5459 = icmp eq ptr %81, %83
  br i1 %.not5459, label %.loopexit, label %.lr.ph62

.lr.ph62:                                         ; preds = %79
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 8
  %84 = getelementptr inbounds i8, ptr %2, i64 40
  br label %85

85:                                               ; preds = %.lr.ph62, %113
  %86 = phi ptr [ %82, %.lr.ph62 ], [ %114, %113 ]
  %.04960 = phi ptr [ %81, %.lr.ph62 ], [ %86, %113 ]
  %87 = load i32, ptr %7, align 8, !tbaa !13
  %.not55 = icmp slt i32 %87, %8
  br i1 %.not55, label %88, label %.loopexit

88:                                               ; preds = %85
  %89 = call noundef ptr @_ZN2rw5Light9fromWorldEPNS_6LLLinkE(ptr noundef nonnull %.04960)
  %90 = call noundef i32 @_ZN2rw5Light8getFlagsEv(ptr noundef nonnull align 8 dereferenceable(120) %89)
  %91 = and i32 %90, 1
  %92 = icmp eq i32 %91, 0
  br i1 %92, label %113, label %93

93:                                               ; preds = %88
  %94 = call noundef ptr @_ZN2rw6Atomic22getWorldBoundingSphereEv(ptr noundef nonnull align 8 dereferenceable(136) %1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #7
  %95 = call noundef ptr @_ZNK2rw5Light8getFrameEv(ptr noundef nonnull align 8 dereferenceable(120) %89)
  %96 = call noundef ptr @_ZN2rw5Frame6getLTMEv(ptr noundef nonnull align 8 dereferenceable(200) %95)
  %97 = getelementptr inbounds i8, ptr %96, i64 48
  %98 = call { <2 x float>, float } @_ZN2rw3subERKNS_3V3dES2_(ptr noundef nonnull align 4 dereferenceable(12) %97, ptr noundef nonnull align 4 dereferenceable(12) %94)
  %.fca.0.extract = extractvalue { <2 x float>, float } %98, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %98, 1
  store <2 x float> %.fca.0.extract, ptr %4, align 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  %99 = call noundef float @_ZN2rw6lengthERKNS_3V3dE(ptr noundef nonnull align 4 dereferenceable(12) %4)
  %100 = getelementptr inbounds i8, ptr %94, i64 12
  %101 = load float, ptr %100, align 4, !tbaa !41
  %102 = getelementptr inbounds i8, ptr %89, i64 40
  %103 = load float, ptr %102, align 8, !tbaa !42
  %104 = fadd float %101, %103
  %105 = fcmp olt float %99, %104
  br i1 %105, label %106, label %112

106:                                              ; preds = %93
  %107 = load ptr, ptr %84, align 8, !tbaa !43
  %108 = load i32, ptr %7, align 8, !tbaa !13
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %7, align 8, !tbaa !13
  %110 = sext i32 %108 to i64
  %111 = getelementptr inbounds ptr, ptr %107, i64 %110
  store ptr %89, ptr %111, align 8, !tbaa !39
  br label %112

112:                                              ; preds = %106, %93
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #7
  br label %113

113:                                              ; preds = %88, %112
  %114 = load ptr, ptr %86, align 8, !tbaa !29
  %115 = call noundef ptr @_ZN2rw8LinkList3endEv(ptr noundef nonnull align 8 dereferenceable(16) %80)
  %.not54 = icmp eq ptr %86, %115
  br i1 %.not54, label %.loopexit, label %85, !llvm.loop !44

.loopexit:                                        ; preds = %85, %113, %79, %._crit_edge
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN2rw5Light9fromWorldEPNS_6LLLinkE(ptr noundef) local_unnamed_addr #1 align 2

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

declare noundef ptr @_ZN2rw6Atomic22getWorldBoundingSphereEv(ptr noundef nonnull align 8 dereferenceable(136)) local_unnamed_addr #3

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

declare noundef ptr @_ZN2rw5Frame6getLTMEv(ptr noundef nonnull align 8 dereferenceable(200)) local_unnamed_addr #3

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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 = { inlinehint 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !7, i64 20}
!6 = !{!"_ZTSN2rw11WorldLightsE", !7, i64 0, !10, i64 4, !7, i64 20, !12, i64 24, !7, i64 32, !12, i64 40}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN2rw5RGBAfE", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!11 = !{!"float", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!6, !7, i64 32}
!14 = !{!6, !11, i64 16}
!15 = !{!16, !12, i64 40}
!16 = !{!"_ZTSN2rw6AtomicE", !17, i64 0, !12, i64 40, !20, i64 48, !20, i64 64, !12, i64 80, !19, i64 88, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128}
!17 = !{!"_ZTSN2rw15ObjectWithFrameE", !18, i64 0, !19, i64 16, !12, i64 32}
!18 = !{!"_ZTSN2rw6ObjectE", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !12, i64 8}
!19 = !{!"_ZTSN2rw6LLLinkE", !12, i64 0, !12, i64 8}
!20 = !{!"_ZTSN2rw6SphereE", !21, i64 0, !11, i64 12}
!21 = !{!"_ZTSN2rw3V3dE", !11, i64 0, !11, i64 4, !11, i64 8}
!22 = !{!23, !7, i64 16}
!23 = !{!"_ZTSN2rw8GeometryE", !18, i64 0, !7, i64 16, !24, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !12, i64 40, !12, i64 48, !8, i64 56, !12, i64 120, !25, i64 128, !12, i64 144, !12, i64 152, !7, i64 160}
!24 = !{!"short", !8, i64 0}
!25 = !{!"_ZTSN2rw12MaterialListE", !12, i64 0, !7, i64 8, !7, i64 12}
!26 = !{!27, !12, i64 32}
!27 = !{!"_ZTSN2rw5WorldE", !18, i64 0, !28, i64 16, !28, i64 32, !28, i64 48}
!28 = !{!"_ZTSN2rw8LinkListE", !19, i64 0}
!29 = !{!19, !12, i64 0}
!30 = !{!11, !11, i64 0}
!31 = !{!32, !11, i64 52}
!32 = !{!"_ZTSN2rw5LightE", !17, i64 0, !11, i64 40, !10, i64 44, !11, i64 60, !19, i64 64, !12, i64 80, !19, i64 88, !12, i64 104, !12, i64 112}
!33 = !{!6, !11, i64 12}
!34 = !{!6, !7, i64 0}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = !{!16, !12, i64 120}
!38 = !{!6, !12, i64 24}
!39 = !{!12, !12, i64 0}
!40 = !{!27, !12, i64 16}
!41 = !{!20, !11, i64 12}
!42 = !{!32, !11, i64 40}
!43 = !{!6, !12, i64 40}
!44 = distinct !{!44, !36}


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