; LLVM IR from aap/librw :: src/d3d/xboxskin.ll (ZN2rw4xbox16skinUninstanceCBEPNS_8GeometryEPNS0_18InstanceDataHeaderE)

; 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::MemoryFunctions" = type { ptr, ptr, ptr, ptr, ptr }
%"struct.rw::Skin" = type { i32, i32, i32, ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32 }
%"struct.rw::xbox::NativeSkin" = type { [256 x i32], [256 x i32], i32, ptr, i32 }
%"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::Object" = type { i8, i8, i8, i8, ptr }
%"struct.rw::MaterialList" = type { ptr, i32, i32 }
%"struct.rw::xbox::InstanceDataHeader" = type { %"struct.rw::InstanceDataHeader", i32, i16, i16, i32, i32, i32, ptr, i32, ptr, ptr, ptr }
%"struct.rw::InstanceDataHeader" = type { i32 }

@_ZN2rw6Engine8memfuncsE = external global %"struct.rw::MemoryFunctions", align 8

; 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

declare void @_ZN2rw4Skin4initEiii(ptr noundef nonnull align 8 dereferenceable(112), i32 noundef, i32 noundef, i32 noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2rw4xbox16skinUninstanceCBEPNS_8GeometryEPNS0_18InstanceDataHeaderE(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca [4 x float], align 16
  %16 = alloca [4 x i8], align 1
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN2rw4xbox19defaultUninstanceCBEPNS_8GeometryEPNS0_18InstanceDataHeaderE(ptr noundef %21, ptr noundef %22)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = call noundef ptr @_ZN2rw4Skin3getEPKNS_8GeometryE(ptr noundef %23)
  store ptr %24, ptr %5, align 8, !tbaa !5
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = icmp eq ptr %25, null
  br i1 %26, label %27, label %28

27:                                               ; preds = %2
  store i32 1, ptr %6, align 4
  br label %196

28:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.rw::Skin", ptr %29, i32 0, i32 14
  %31 = load ptr, ptr %30, align 8, !tbaa !9
  store ptr %31, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.rw::Skin", ptr %32, i32 0, i32 13
  %34 = load ptr, ptr %33, align 8, !tbaa !12
  store ptr %34, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.rw::Skin", ptr %35, i32 0, i32 4
  %37 = load ptr, ptr %36, align 8, !tbaa !13
  store ptr %37, ptr %9, align 8, !tbaa !5
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.rw::Skin", ptr %39, i32 0, i32 0
  %41 = load i32, ptr %40, align 8, !tbaa !14
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.rw::xbox::NativeSkin", ptr %42, i32 0, i32 2
  %44 = load i32, ptr %43, align 8, !tbaa !15
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.rw::Geometry", ptr %45, i32 0, i32 4
  %47 = load i32, ptr %46, align 4, !tbaa !17
  call void @_ZN2rw4Skin4initEiii(ptr noundef nonnull align 8 dereferenceable(112) %38, i32 noundef %41, i32 noundef %44, i32 noundef %47)
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.rw::Skin", ptr %48, i32 0, i32 4
  %50 = load ptr, ptr %49, align 8, !tbaa !13
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.rw::Skin", ptr %52, i32 0, i32 0
  %54 = load i32, ptr %53, align 8, !tbaa !14
  %55 = mul nsw i32 %54, 64
  %56 = sext i32 %55 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 4 %51, i64 %56, i1 false)
  %57 = load ptr, ptr getelementptr inbounds (%"struct.rw::MemoryFunctions", ptr @_ZN2rw6Engine8memfuncsE, i32 0, i32 2), align 8, !tbaa !22
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  call void %57(ptr noundef %58)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !24
  br label %59

59:                                               ; preds = %80, %28
  %60 = load i32, ptr %10, align 4, !tbaa !24
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.rw::Skin", ptr %61, i32 0, i32 1
  %63 = load i32, ptr %62, align 4, !tbaa !25
  %64 = icmp slt i32 %60, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %59
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %83

66:                                               ; preds = %59
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.rw::xbox::NativeSkin", ptr %67, i32 0, i32 0
  %69 = load i32, ptr %10, align 4, !tbaa !24
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [256 x i32], ptr %68, i64 0, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !24
  %73 = trunc i32 %72 to i8
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.rw::Skin", ptr %74, i32 0, i32 3
  %76 = load ptr, ptr %75, align 8, !tbaa !26
  %77 = load i32, ptr %10, align 4, !tbaa !24
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds i8, ptr %76, i64 %78
  store i8 %73, ptr %79, align 1, !tbaa !27
  br label %80

80:                                               ; preds = %66
  %81 = load i32, ptr %10, align 4, !tbaa !24
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %10, align 4, !tbaa !24
  br label %59, !llvm.loop !28

83:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.rw::Skin", ptr %84, i32 0, i32 6
  %86 = load ptr, ptr %85, align 8, !tbaa !30
  store ptr %86, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.rw::Skin", ptr %87, i32 0, i32 5
  %89 = load ptr, ptr %88, align 8, !tbaa !31
  store ptr %89, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.rw::xbox::NativeSkin", ptr %90, i32 0, i32 3
  %92 = load ptr, ptr %91, align 8, !tbaa !32
  store ptr %92, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.rw::xbox::InstanceDataHeader", ptr %93, i32 0, i32 5
  %95 = load i32, ptr %94, align 8, !tbaa !33
  store i32 %95, ptr %14, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  br label %96

96:                                               ; preds = %188, %83
  %97 = load i32, ptr %14, align 4, !tbaa !24
  %98 = add nsw i32 %97, -1
  store i32 %98, ptr %14, align 4, !tbaa !24
  %99 = icmp ne i32 %97, 0
  br i1 %99, label %100, label %189

100:                                              ; preds = %96
  %101 = getelementptr inbounds [4 x float], ptr %15, i64 0, i64 3
  store float 0.000000e+00, ptr %101, align 4, !tbaa !36
  %102 = getelementptr inbounds [4 x float], ptr %15, i64 0, i64 2
  store float 0.000000e+00, ptr %102, align 8, !tbaa !36
  %103 = getelementptr inbounds [4 x float], ptr %15, i64 0, i64 1
  store float 0.000000e+00, ptr %103, align 4, !tbaa !36
  %104 = getelementptr inbounds [4 x float], ptr %15, i64 0, i64 0
  store float 0.000000e+00, ptr %104, align 16, !tbaa !36
  %105 = getelementptr inbounds [4 x i8], ptr %16, i64 0, i64 3
  store i8 0, ptr %105, align 1, !tbaa !27
  %106 = getelementptr inbounds [4 x i8], ptr %16, i64 0, i64 2
  store i8 0, ptr %106, align 1, !tbaa !27
  %107 = getelementptr inbounds [4 x i8], ptr %16, i64 0, i64 1
  store i8 0, ptr %107, align 1, !tbaa !27
  %108 = getelementptr inbounds [4 x i8], ptr %16, i64 0, i64 0
  store i8 0, ptr %108, align 1, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !24
  br label %109

109:                                              ; preds = %126, %100
  %110 = load i32, ptr %18, align 4, !tbaa !24
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.rw::Skin", ptr %111, i32 0, i32 2
  %113 = load i32, ptr %112, align 8, !tbaa !38
  %114 = icmp slt i32 %110, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %109
  store i32 7, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %129

116:                                              ; preds = %109
  %117 = load ptr, ptr %13, align 8, !tbaa !5
  %118 = getelementptr inbounds i8, ptr %117, i32 1
  store ptr %118, ptr %13, align 8, !tbaa !5
  %119 = load i8, ptr %117, align 1, !tbaa !27
  %120 = zext i8 %119 to i32
  %121 = sitofp i32 %120 to float
  %122 = fdiv float %121, 2.550000e+02
  %123 = load i32, ptr %18, align 4, !tbaa !24
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [4 x float], ptr %15, i64 0, i64 %124
  store float %122, ptr %125, align 4, !tbaa !36
  br label %126

126:                                              ; preds = %116
  %127 = load i32, ptr %18, align 4, !tbaa !24
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %18, align 4, !tbaa !24
  br label %109, !llvm.loop !39

129:                                              ; preds = %115
  %130 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %130, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !24
  br label %131

131:                                              ; preds = %163, %129
  %132 = load i32, ptr %19, align 4, !tbaa !24
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.rw::Skin", ptr %133, i32 0, i32 2
  %135 = load i32, ptr %134, align 8, !tbaa !38
  %136 = icmp slt i32 %132, %135
  br i1 %136, label %138, label %137

137:                                              ; preds = %131
  store i32 10, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %166

138:                                              ; preds = %131
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.rw::xbox::NativeSkin", ptr %139, i32 0, i32 0
  %141 = load ptr, ptr %17, align 8, !tbaa !5
  %142 = getelementptr inbounds i16, ptr %141, i32 1
  store ptr %142, ptr %17, align 8, !tbaa !5
  %143 = load i16, ptr %141, align 2, !tbaa !40
  %144 = zext i16 %143 to i32
  %145 = sdiv i32 %144, 3
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [256 x i32], ptr %140, i64 0, i64 %146
  %148 = load i32, ptr %147, align 4, !tbaa !24
  %149 = trunc i32 %148 to i8
  %150 = load i32, ptr %19, align 4, !tbaa !24
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [4 x i8], ptr %16, i64 0, i64 %151
  store i8 %149, ptr %152, align 1, !tbaa !27
  %153 = load i32, ptr %19, align 4, !tbaa !24
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [4 x float], ptr %15, i64 0, i64 %154
  %156 = load float, ptr %155, align 4, !tbaa !36
  %157 = fcmp oeq float %156, 0.000000e+00
  br i1 %157, label %158, label %162

158:                                              ; preds = %138
  %159 = load i32, ptr %19, align 4, !tbaa !24
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [4 x i8], ptr %16, i64 0, i64 %160
  store i8 0, ptr %161, align 1, !tbaa !27
  br label %162

162:                                              ; preds = %158, %138
  br label %163

163:                                              ; preds = %162
  %164 = load i32, ptr %19, align 4, !tbaa !24
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %19, align 4, !tbaa !24
  br label %131, !llvm.loop !41

166:                                              ; preds = %137
  %167 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %167, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !24
  br label %168

168:                                              ; preds = %185, %166
  %169 = load i32, ptr %20, align 4, !tbaa !24
  %170 = icmp slt i32 %169, 4
  br i1 %170, label %172, label %171

171:                                              ; preds = %168
  store i32 13, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %188

172:                                              ; preds = %168
  %173 = load i32, ptr %20, align 4, !tbaa !24
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [4 x float], ptr %15, i64 0, i64 %174
  %176 = load float, ptr %175, align 4, !tbaa !36
  %177 = load ptr, ptr %11, align 8, !tbaa !5
  %178 = getelementptr inbounds float, ptr %177, i32 1
  store ptr %178, ptr %11, align 8, !tbaa !5
  store float %176, ptr %177, align 4, !tbaa !36
  %179 = load i32, ptr %20, align 4, !tbaa !24
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [4 x i8], ptr %16, i64 0, i64 %180
  %182 = load i8, ptr %181, align 1, !tbaa !27
  %183 = load ptr, ptr %12, align 8, !tbaa !5
  %184 = getelementptr inbounds i8, ptr %183, i32 1
  store ptr %184, ptr %12, align 8, !tbaa !5
  store i8 %182, ptr %183, align 1, !tbaa !27
  br label %185

185:                                              ; preds = %172
  %186 = load i32, ptr %20, align 4, !tbaa !24
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %20, align 4, !tbaa !24
  br label %168, !llvm.loop !42

188:                                              ; preds = %171
  br label %96, !llvm.loop !43

189:                                              ; preds = %96
  %190 = load ptr, ptr getelementptr inbounds (%"struct.rw::MemoryFunctions", ptr @_ZN2rw6Engine8memfuncsE, i32 0, i32 2), align 8, !tbaa !22
  %191 = load ptr, ptr %7, align 8, !tbaa !5
  %192 = getelementptr inbounds %"struct.rw::xbox::NativeSkin", ptr %191, i32 0, i32 3
  %193 = load ptr, ptr %192, align 8, !tbaa !32
  call void %190(ptr noundef %193)
  %194 = load ptr, ptr getelementptr inbounds (%"struct.rw::MemoryFunctions", ptr @_ZN2rw6Engine8memfuncsE, i32 0, i32 2), align 8, !tbaa !22
  %195 = load ptr, ptr %7, align 8, !tbaa !5
  call void %194(ptr noundef %195)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  store i32 0, ptr %6, align 4
  br label %196

196:                                              ; preds = %189, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  %197 = load i32, ptr %6, align 4
  switch i32 %197, label %199 [
    i32 0, label %198
    i32 1, label %198
  ]

198:                                              ; preds = %196, %196
  ret void

199:                                              ; preds = %196
  unreachable
}

declare void @_ZN2rw4xbox19defaultUninstanceCBEPNS_8GeometryEPNS0_18InstanceDataHeaderE(ptr noundef, ptr noundef) #1

; 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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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, !6, i64 96}
!10 = !{!"_ZTSN2rw4SkinE", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !11, i64 48, !11, i64 52, !11, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !11, i64 104}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !6, i64 88}
!13 = !{!10, !6, i64 24}
!14 = !{!10, !11, i64 0}
!15 = !{!16, !11, i64 2048}
!16 = !{!"_ZTSN2rw4xbox10NativeSkinE", !7, i64 0, !7, i64 1024, !11, i64 2048, !6, i64 2056, !11, i64 2064}
!17 = !{!18, !11, i64 28}
!18 = !{!"_ZTSN2rw8GeometryE", !19, i64 0, !11, i64 16, !20, 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, !21, i64 128, !6, i64 144, !6, i64 152, !11, i64 160}
!19 = !{!"_ZTSN2rw6ObjectE", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !6, i64 8}
!20 = !{!"short", !7, i64 0}
!21 = !{!"_ZTSN2rw12MaterialListE", !6, i64 0, !11, i64 8, !11, i64 12}
!22 = !{!23, !6, i64 16}
!23 = !{!"_ZTSN2rw15MemoryFunctionsE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!24 = !{!11, !11, i64 0}
!25 = !{!10, !11, i64 4}
!26 = !{!10, !6, i64 16}
!27 = !{!7, !7, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!10, !6, i64 40}
!31 = !{!10, !6, i64 32}
!32 = !{!16, !6, i64 2056}
!33 = !{!34, !11, i64 16}
!34 = !{!"_ZTSN2rw4xbox18InstanceDataHeaderE", !35, i64 0, !11, i64 4, !20, i64 8, !20, i64 10, !11, i64 12, !11, i64 16, !11, i64 20, !6, i64 24, !11, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!35 = !{!"_ZTSN2rw18InstanceDataHeaderE", !11, i64 0}
!36 = !{!37, !37, i64 0}
!37 = !{!"float", !7, i64 0}
!38 = !{!10, !11, i64 8}
!39 = distinct !{!39, !29}
!40 = !{!20, !20, i64 0}
!41 = distinct !{!41, !29}
!42 = distinct !{!42, !29}
!43 = distinct !{!43, !29}


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

@_ZN2rw6Engine8memfuncsE = external local_unnamed_addr global %"struct.rw::MemoryFunctions", align 8

; 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

declare void @_ZN2rw4Skin4initEiii(ptr noundef nonnull align 8 dereferenceable(112), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2rw4xbox16skinUninstanceCBEPNS_8GeometryEPNS0_18InstanceDataHeaderE(ptr noundef %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = alloca [4 x float], align 16
  %4 = alloca [4 x i8], align 4
  tail call void @_ZN2rw4xbox19defaultUninstanceCBEPNS_8GeometryEPNS0_18InstanceDataHeaderE(ptr noundef %0, ptr noundef %1)
  %5 = tail call noundef ptr @_ZN2rw4Skin3getEPKNS_8GeometryE(ptr noundef %0)
  %6 = icmp eq ptr %5, null
  br i1 %6, label %120, label %7

7:                                                ; preds = %2
  %8 = getelementptr inbounds i8, ptr %5, i64 96
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %5, i64 88
  %11 = load ptr, ptr %10, align 8, !tbaa !11
  %12 = getelementptr inbounds i8, ptr %5, i64 24
  %13 = load ptr, ptr %12, align 8, !tbaa !12
  %14 = load i32, ptr %5, align 8, !tbaa !13
  %15 = getelementptr inbounds i8, ptr %9, i64 2048
  %16 = load i32, ptr %15, align 8, !tbaa !14
  %17 = getelementptr inbounds i8, ptr %0, i64 28
  %18 = load i32, ptr %17, align 4, !tbaa !16
  tail call void @_ZN2rw4Skin4initEiii(ptr noundef nonnull align 8 dereferenceable(112) %5, i32 noundef %14, i32 noundef %16, i32 noundef %18)
  %19 = load ptr, ptr %12, align 8, !tbaa !12
  %20 = load i32, ptr %5, align 8, !tbaa !13
  %21 = shl nsw i32 %20, 6
  %22 = sext i32 %21 to i64
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %13, i64 %22, i1 false)
  %23 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN2rw6Engine8memfuncsE, i64 16), align 8, !tbaa !21
  tail call void %23(ptr noundef %11)
  %24 = getelementptr inbounds i8, ptr %5, i64 4
  %25 = load i32, ptr %24, align 4, !tbaa !23
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %7
  %27 = getelementptr inbounds i8, ptr %5, i64 16
  br label %43

._crit_edge:                                      ; preds = %43, %7
  %28 = getelementptr inbounds i8, ptr %5, i64 40
  %29 = load ptr, ptr %28, align 8, !tbaa !24
  %30 = getelementptr inbounds i8, ptr %5, i64 32
  %31 = load ptr, ptr %30, align 8, !tbaa !25
  %32 = getelementptr inbounds i8, ptr %9, i64 2056
  %33 = load ptr, ptr %32, align 8, !tbaa !26
  %34 = getelementptr inbounds i8, ptr %1, i64 16
  %35 = load i32, ptr %34, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %.not74 = icmp eq i32 %35, 0
  br i1 %.not74, label %._crit_edge80, label %.lr.ph79

.lr.ph79:                                         ; preds = %._crit_edge
  %36 = getelementptr inbounds i8, ptr %3, i64 12
  %37 = getelementptr inbounds i8, ptr %3, i64 8
  %38 = getelementptr inbounds i8, ptr %3, i64 4
  %39 = getelementptr inbounds i8, ptr %4, i64 3
  %40 = getelementptr inbounds i8, ptr %4, i64 2
  %41 = getelementptr inbounds i8, ptr %4, i64 1
  %42 = getelementptr inbounds i8, ptr %5, i64 8
  br label %52

43:                                               ; preds = %.lr.ph, %43
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %43 ]
  %44 = getelementptr inbounds [256 x i32], ptr %9, i64 0, i64 %indvars.iv
  %45 = load i32, ptr %44, align 4, !tbaa !30
  %46 = trunc i32 %45 to i8
  %47 = load ptr, ptr %27, align 8, !tbaa !31
  %48 = getelementptr inbounds i8, ptr %47, i64 %indvars.iv
  store i8 %46, ptr %48, align 1, !tbaa !32
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %49 = load i32, ptr %24, align 4, !tbaa !23
  %50 = sext i32 %49 to i64
  %51 = icmp slt i64 %indvars.iv.next, %50
  br i1 %51, label %43, label %._crit_edge, !llvm.loop !33

52:                                               ; preds = %.lr.ph79, %.preheader
  %.in = phi i32 [ %35, %.lr.ph79 ], [ %53, %.preheader ]
  %.05377 = phi ptr [ %33, %.lr.ph79 ], [ %.051.lcssa, %.preheader ]
  %.05476 = phi ptr [ %31, %.lr.ph79 ], [ %103, %.preheader ]
  %.05675 = phi ptr [ %29, %.lr.ph79 ], [ %102, %.preheader ]
  %53 = add nsw i32 %.in, -1
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %3, i8 0, i64 16, i1 false)
  store i32 0, ptr %4, align 4
  %54 = load i32, ptr %42, align 8, !tbaa !35
  %55 = icmp sgt i32 %54, 0
  br i1 %55, label %.lr.ph65.preheader, label %.preheader

.lr.ph65.preheader:                               ; preds = %52
  %wide.trip.count = zext nneg i32 %54 to i64
  %min.iters.check = icmp ult i32 %54, 4
  br i1 %min.iters.check, label %.lr.ph65.preheader106, label %vector.memcheck

.lr.ph65.preheader106:                            ; preds = %middle.block, %vector.memcheck, %.lr.ph65.preheader
  %indvars.iv85.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph65.preheader ], [ %n.vec, %middle.block ]
  %.162.ph = phi ptr [ %.05377, %vector.memcheck ], [ %.05377, %.lr.ph65.preheader ], [ %ind.end, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph65.prol.loopexit, label %.lr.ph65.prol

.lr.ph65.prol:                                    ; preds = %.lr.ph65.preheader106, %.lr.ph65.prol
  %indvars.iv85.prol = phi i64 [ %indvars.iv.next86.prol, %.lr.ph65.prol ], [ %indvars.iv85.ph, %.lr.ph65.preheader106 ]
  %.162.prol = phi ptr [ %56, %.lr.ph65.prol ], [ %.162.ph, %.lr.ph65.preheader106 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph65.prol ], [ 0, %.lr.ph65.preheader106 ]
  %56 = getelementptr inbounds i8, ptr %.162.prol, i64 1
  %57 = load i8, ptr %.162.prol, align 1, !tbaa !32
  %58 = uitofp i8 %57 to float
  %59 = fdiv float %58, 2.550000e+02
  %60 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 %indvars.iv85.prol
  store float %59, ptr %60, align 4, !tbaa !36
  %indvars.iv.next86.prol = add nuw nsw i64 %indvars.iv85.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph65.prol.loopexit, label %.lr.ph65.prol, !llvm.loop !38

.lr.ph65.prol.loopexit:                           ; preds = %.lr.ph65.prol, %.lr.ph65.preheader106
  %.lcssa107.unr = phi ptr [ poison, %.lr.ph65.preheader106 ], [ %56, %.lr.ph65.prol ]
  %indvars.iv85.unr = phi i64 [ %indvars.iv85.ph, %.lr.ph65.preheader106 ], [ %indvars.iv.next86.prol, %.lr.ph65.prol ]
  %.162.unr = phi ptr [ %.162.ph, %.lr.ph65.preheader106 ], [ %56, %.lr.ph65.prol ]
  %61 = sub nsw i64 %indvars.iv85.ph, %wide.trip.count
  %62 = icmp ugt i64 %61, -4
  br i1 %62, label %.preheader60, label %.lr.ph65

vector.memcheck:                                  ; preds = %.lr.ph65.preheader
  %63 = shl nuw nsw i64 %wide.trip.count, 2
  %scevgep = getelementptr i8, ptr %3, i64 %63
  %scevgep104 = getelementptr i8, ptr %.05377, i64 %wide.trip.count
  %bound0 = icmp ult ptr %3, %scevgep104
  %bound1 = icmp ult ptr %.05377, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph65.preheader106, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483644
  %ind.end = getelementptr i8, ptr %.05377, i64 %n.vec
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %next.gep = getelementptr i8, ptr %.05377, i64 %index
  %wide.load = load <4 x i8>, ptr %next.gep, align 1, !tbaa !32, !alias.scope !40
  %64 = uitofp <4 x i8> %wide.load to <4 x float>
  %65 = fdiv <4 x float> %64, <float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02>
  %66 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 %index
  store <4 x float> %65, ptr %66, align 16, !tbaa !36, !alias.scope !43, !noalias !40
  %index.next = add nuw i64 %index, 4
  %67 = icmp eq i64 %index.next, %n.vec
  br i1 %67, label %middle.block, label %vector.body, !llvm.loop !45

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader60, label %.lr.ph65.preheader106

.preheader60:                                     ; preds = %.lr.ph65.prol.loopexit, %.lr.ph65, %middle.block
  %.lcssa = phi ptr [ %ind.end, %middle.block ], [ %.lcssa107.unr, %.lr.ph65.prol.loopexit ], [ %83, %.lr.ph65 ]
  br i1 %55, label %.lr.ph69.preheader, label %.preheader

.lr.ph69.preheader:                               ; preds = %.preheader60
  %wide.trip.count91 = zext nneg i32 %54 to i64
  br label %.lr.ph69

.lr.ph65:                                         ; preds = %.lr.ph65.prol.loopexit, %.lr.ph65
  %indvars.iv85 = phi i64 [ %indvars.iv.next86.3, %.lr.ph65 ], [ %indvars.iv85.unr, %.lr.ph65.prol.loopexit ]
  %.162 = phi ptr [ %83, %.lr.ph65 ], [ %.162.unr, %.lr.ph65.prol.loopexit ]
  %68 = getelementptr inbounds i8, ptr %.162, i64 1
  %69 = load i8, ptr %.162, align 1, !tbaa !32
  %70 = uitofp i8 %69 to float
  %71 = fdiv float %70, 2.550000e+02
  %72 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 %indvars.iv85
  store float %71, ptr %72, align 4, !tbaa !36
  %indvars.iv.next86 = add nuw nsw i64 %indvars.iv85, 1
  %73 = getelementptr inbounds i8, ptr %.162, i64 2
  %74 = load i8, ptr %68, align 1, !tbaa !32
  %75 = uitofp i8 %74 to float
  %76 = fdiv float %75, 2.550000e+02
  %77 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 %indvars.iv.next86
  store float %76, ptr %77, align 4, !tbaa !36
  %indvars.iv.next86.1 = add nuw nsw i64 %indvars.iv85, 2
  %78 = getelementptr inbounds i8, ptr %.162, i64 3
  %79 = load i8, ptr %73, align 1, !tbaa !32
  %80 = uitofp i8 %79 to float
  %81 = fdiv float %80, 2.550000e+02
  %82 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 %indvars.iv.next86.1
  store float %81, ptr %82, align 4, !tbaa !36
  %indvars.iv.next86.2 = add nuw nsw i64 %indvars.iv85, 3
  %83 = getelementptr inbounds i8, ptr %.162, i64 4
  %84 = load i8, ptr %78, align 1, !tbaa !32
  %85 = uitofp i8 %84 to float
  %86 = fdiv float %85, 2.550000e+02
  %87 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 %indvars.iv.next86.2
  store float %86, ptr %87, align 4, !tbaa !36
  %indvars.iv.next86.3 = add nuw nsw i64 %indvars.iv85, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next86.3, %wide.trip.count
  br i1 %exitcond.not.3, label %.preheader60, label %.lr.ph65, !llvm.loop !48

.preheader.loopexit:                              ; preds = %116
  %.pre = load i8, ptr %4, align 4, !tbaa !32
  %.pre97 = load i8, ptr %41, align 1, !tbaa !32
  %.pre98 = load i8, ptr %40, align 2, !tbaa !32
  %.pre99 = load i8, ptr %39, align 1, !tbaa !32
  br label %.preheader

.preheader:                                       ; preds = %52, %.preheader.loopexit, %.preheader60
  %88 = phi i8 [ 0, %.preheader60 ], [ %.pre99, %.preheader.loopexit ], [ 0, %52 ]
  %89 = phi i8 [ 0, %.preheader60 ], [ %.pre98, %.preheader.loopexit ], [ 0, %52 ]
  %90 = phi i8 [ 0, %.preheader60 ], [ %.pre97, %.preheader.loopexit ], [ 0, %52 ]
  %91 = phi i8 [ 0, %.preheader60 ], [ %.pre, %.preheader.loopexit ], [ 0, %52 ]
  %.051.lcssa = phi ptr [ %.lcssa, %.preheader60 ], [ %104, %.preheader.loopexit ], [ %.05377, %52 ]
  %92 = load float, ptr %3, align 16, !tbaa !36
  %93 = getelementptr inbounds i8, ptr %.05675, i64 4
  store float %92, ptr %.05675, align 4, !tbaa !36
  %94 = getelementptr inbounds i8, ptr %.05476, i64 1
  store i8 %91, ptr %.05476, align 1, !tbaa !32
  %95 = load float, ptr %38, align 4, !tbaa !36
  %96 = getelementptr inbounds i8, ptr %.05675, i64 8
  store float %95, ptr %93, align 4, !tbaa !36
  %97 = getelementptr inbounds i8, ptr %.05476, i64 2
  store i8 %90, ptr %94, align 1, !tbaa !32
  %98 = load float, ptr %37, align 8, !tbaa !36
  %99 = getelementptr inbounds i8, ptr %.05675, i64 12
  store float %98, ptr %96, align 4, !tbaa !36
  %100 = getelementptr inbounds i8, ptr %.05476, i64 3
  store i8 %89, ptr %97, align 1, !tbaa !32
  %101 = load float, ptr %36, align 4, !tbaa !36
  %102 = getelementptr inbounds i8, ptr %.05675, i64 16
  store float %101, ptr %99, align 4, !tbaa !36
  %103 = getelementptr inbounds i8, ptr %.05476, i64 4
  store i8 %88, ptr %100, align 1, !tbaa !32
  %.not = icmp eq i32 %53, 0
  br i1 %.not, label %._crit_edge80.loopexit, label %52, !llvm.loop !49

.lr.ph69:                                         ; preds = %.lr.ph69.preheader, %116
  %indvars.iv88 = phi i64 [ 0, %.lr.ph69.preheader ], [ %indvars.iv.next89, %116 ]
  %.05167 = phi ptr [ %.lcssa, %.lr.ph69.preheader ], [ %104, %116 ]
  %104 = getelementptr inbounds i8, ptr %.05167, i64 2
  %105 = load i16, ptr %.05167, align 2, !tbaa !50
  %106 = udiv i16 %105, 3
  %107 = zext nneg i16 %106 to i64
  %108 = getelementptr inbounds [256 x i32], ptr %9, i64 0, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !30
  %110 = trunc i32 %109 to i8
  %111 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 %indvars.iv88
  store i8 %110, ptr %111, align 1, !tbaa !32
  %112 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 %indvars.iv88
  %113 = load float, ptr %112, align 4, !tbaa !36
  %114 = fcmp oeq float %113, 0.000000e+00
  br i1 %114, label %115, label %116

115:                                              ; preds = %.lr.ph69
  store i8 0, ptr %111, align 1, !tbaa !32
  br label %116

116:                                              ; preds = %.lr.ph69, %115
  %indvars.iv.next89 = add nuw nsw i64 %indvars.iv88, 1
  %exitcond92.not = icmp eq i64 %indvars.iv.next89, %wide.trip.count91
  br i1 %exitcond92.not, label %.preheader.loopexit, label %.lr.ph69, !llvm.loop !51

._crit_edge80.loopexit:                           ; preds = %.preheader
  %.pre100 = load ptr, ptr %32, align 8, !tbaa !26
  br label %._crit_edge80

._crit_edge80:                                    ; preds = %._crit_edge80.loopexit, %._crit_edge
  %117 = phi ptr [ %.pre100, %._crit_edge80.loopexit ], [ %33, %._crit_edge ]
  %118 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN2rw6Engine8memfuncsE, i64 16), align 8, !tbaa !21
  tail call void %118(ptr noundef %117)
  %119 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN2rw6Engine8memfuncsE, i64 16), align 8, !tbaa !21
  tail call void %119(ptr noundef nonnull %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  br label %120

120:                                              ; preds = %2, %._crit_edge80
  ret void
}

declare void @_ZN2rw4xbox19defaultUninstanceCBEPNS_8GeometryEPNS0_18InstanceDataHeaderE(ptr noundef, ptr noundef) local_unnamed_addr #1

; 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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, !10, i64 96}
!6 = !{!"_ZTSN2rw4SkinE", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !7, i64 48, !7, i64 52, !7, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !7, i64 104}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 88}
!12 = !{!6, !10, i64 24}
!13 = !{!6, !7, i64 0}
!14 = !{!15, !7, i64 2048}
!15 = !{!"_ZTSN2rw4xbox10NativeSkinE", !8, i64 0, !8, i64 1024, !7, i64 2048, !10, i64 2056, !7, i64 2064}
!16 = !{!17, !7, i64 28}
!17 = !{!"_ZTSN2rw8GeometryE", !18, i64 0, !7, i64 16, !19, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !10, i64 40, !10, i64 48, !8, i64 56, !10, i64 120, !20, i64 128, !10, i64 144, !10, i64 152, !7, i64 160}
!18 = !{!"_ZTSN2rw6ObjectE", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !10, i64 8}
!19 = !{!"short", !8, i64 0}
!20 = !{!"_ZTSN2rw12MaterialListE", !10, i64 0, !7, i64 8, !7, i64 12}
!21 = !{!22, !10, i64 16}
!22 = !{!"_ZTSN2rw15MemoryFunctionsE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!23 = !{!6, !7, i64 4}
!24 = !{!6, !10, i64 40}
!25 = !{!6, !10, i64 32}
!26 = !{!15, !10, i64 2056}
!27 = !{!28, !7, i64 16}
!28 = !{!"_ZTSN2rw4xbox18InstanceDataHeaderE", !29, i64 0, !7, i64 4, !19, i64 8, !19, i64 10, !7, i64 12, !7, i64 16, !7, i64 20, !10, i64 24, !7, i64 32, !10, i64 40, !10, i64 48, !10, i64 56}
!29 = !{!"_ZTSN2rw18InstanceDataHeaderE", !7, i64 0}
!30 = !{!7, !7, i64 0}
!31 = !{!6, !10, i64 16}
!32 = !{!8, !8, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!6, !7, i64 8}
!36 = !{!37, !37, i64 0}
!37 = !{!"float", !8, i64 0}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.unroll.disable"}
!40 = !{!41}
!41 = distinct !{!41, !42}
!42 = distinct !{!42, !"LVerDomain"}
!43 = !{!44}
!44 = distinct !{!44, !42}
!45 = distinct !{!45, !34, !46, !47}
!46 = !{!"llvm.loop.isvectorized", i32 1}
!47 = !{!"llvm.loop.unroll.runtime.disable"}
!48 = distinct !{!48, !34, !46}
!49 = distinct !{!49, !34}
!50 = !{!19, !19, i64 0}
!51 = distinct !{!51, !34}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass