; LLVM IR from aap/librw :: src/d3d/xboxskin.ll (ZN2rw4xbox14skinInstanceCBEPNS_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::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::xbox::InstanceDataHeader" = type { %"struct.rw::InstanceDataHeader", i32, i16, i16, i32, i32, i32, ptr, i32, ptr, ptr, ptr }
%"struct.rw::InstanceDataHeader" = type { i32 }

@.str.10 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [80 x i8], align 1

; 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: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN2rw14mustmalloc_LOCEmjPKc(i64 noundef, i32 noundef, ptr noundef) #1

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

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

27:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %28 = call noundef ptr @_ZN2rw14mustmalloc_LOCEmjPKc(i64 noundef 2072, i32 noundef 196886, ptr noundef @.str.10)
  store ptr %28, ptr %7, align 8, !tbaa !5
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.rw::Skin", ptr %30, i32 0, i32 14
  store ptr %29, ptr %31, align 8, !tbaa !9
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.rw::Skin", ptr %32, i32 0, i32 1
  %34 = load i32, ptr %33, align 4, !tbaa !12
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.rw::xbox::NativeSkin", ptr %35, i32 0, i32 2
  store i32 %34, ptr %36, align 8, !tbaa !13
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.rw::xbox::NativeSkin", ptr %37, i32 0, i32 0
  %39 = getelementptr inbounds [256 x i32], ptr %38, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 8 %39, i8 -1, i64 1024, i1 false)
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.rw::xbox::NativeSkin", ptr %40, i32 0, i32 1
  %42 = getelementptr inbounds [256 x i32], ptr %41, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 8 %42, i8 0, i64 1024, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !15
  br label %43

43:                                               ; preds = %76, %27
  %44 = load i32, ptr %8, align 4, !tbaa !15
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.rw::Skin", ptr %45, i32 0, i32 1
  %47 = load i32, ptr %46, align 4, !tbaa !12
  %48 = icmp slt i32 %44, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %43
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %79

50:                                               ; preds = %43
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.rw::Skin", ptr %51, i32 0, i32 3
  %53 = load ptr, ptr %52, align 8, !tbaa !16
  %54 = load i32, ptr %8, align 4, !tbaa !15
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds i8, ptr %53, i64 %55
  %57 = load i8, ptr %56, align 1, !tbaa !17
  %58 = zext i8 %57 to i32
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.rw::xbox::NativeSkin", ptr %59, i32 0, i32 0
  %61 = load i32, ptr %8, align 4, !tbaa !15
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [256 x i32], ptr %60, i64 0, i64 %62
  store i32 %58, ptr %63, align 4, !tbaa !15
  %64 = load i32, ptr %8, align 4, !tbaa !15
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.rw::xbox::NativeSkin", ptr %65, i32 0, i32 1
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.rw::Skin", ptr %67, i32 0, i32 3
  %69 = load ptr, ptr %68, align 8, !tbaa !16
  %70 = load i32, ptr %8, align 4, !tbaa !15
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds i8, ptr %69, i64 %71
  %73 = load i8, ptr %72, align 1, !tbaa !17
  %74 = zext i8 %73 to i64
  %75 = getelementptr inbounds [256 x i32], ptr %66, i64 0, i64 %74
  store i32 %64, ptr %75, align 4, !tbaa !15
  br label %76

76:                                               ; preds = %50
  %77 = load i32, ptr %8, align 4, !tbaa !15
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %8, align 4, !tbaa !15
  br label %43, !llvm.loop !18

79:                                               ; preds = %49
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.rw::Skin", ptr %80, i32 0, i32 2
  %82 = load i32, ptr %81, align 8, !tbaa !20
  %83 = mul nsw i32 3, %82
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.rw::xbox::NativeSkin", ptr %84, i32 0, i32 4
  store i32 %83, ptr %85, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.rw::xbox::InstanceDataHeader", ptr %86, i32 0, i32 5
  %88 = load i32, ptr %87, align 8, !tbaa !22
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.rw::xbox::NativeSkin", ptr %89, i32 0, i32 4
  %91 = load i32, ptr %90, align 8, !tbaa !21
  %92 = mul nsw i32 %88, %91
  %93 = sext i32 %92 to i64
  %94 = mul i64 %93, 1
  %95 = call noundef ptr @_ZN2rw14mustmalloc_LOCEmjPKc(i64 noundef %94, i32 noundef 196886, ptr noundef @.str.11)
  store ptr %95, ptr %9, align 8, !tbaa !5
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.rw::xbox::NativeSkin", ptr %97, i32 0, i32 3
  store ptr %96, ptr %98, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.rw::Skin", ptr %99, i32 0, i32 6
  %101 = load ptr, ptr %100, align 8, !tbaa !27
  store ptr %101, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %102, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.rw::xbox::InstanceDataHeader", ptr %103, i32 0, i32 5
  %105 = load i32, ptr %104, align 8, !tbaa !22
  store i32 %105, ptr %14, align 4, !tbaa !15
  br label %106

106:                                              ; preds = %162, %79
  %107 = load i32, ptr %14, align 4, !tbaa !15
  %108 = add nsw i32 %107, -1
  store i32 %108, ptr %14, align 4, !tbaa !15
  %109 = icmp ne i32 %107, 0
  br i1 %109, label %110, label %171

110:                                              ; preds = %106
  store i32 0, ptr %11, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 1, ptr %15, align 4, !tbaa !15
  br label %111

111:                                              ; preds = %135, %110
  %112 = load i32, ptr %15, align 4, !tbaa !15
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.rw::Skin", ptr %113, i32 0, i32 2
  %115 = load i32, ptr %114, align 8, !tbaa !20
  %116 = icmp slt i32 %112, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %111
  store i32 7, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %138

118:                                              ; preds = %111
  %119 = load ptr, ptr %12, align 8, !tbaa !5
  %120 = load i32, ptr %15, align 4, !tbaa !15
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds float, ptr %119, i64 %121
  %123 = load float, ptr %122, align 4, !tbaa !28
  %124 = call float @llvm.fmuladd.f32(float %123, float 2.550000e+02, float 5.000000e-01)
  %125 = fptosi float %124 to i32
  %126 = load i32, ptr %15, align 4, !tbaa !15
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [4 x i32], ptr %10, i64 0, i64 %127
  store i32 %125, ptr %128, align 4, !tbaa !15
  %129 = load i32, ptr %15, align 4, !tbaa !15
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [4 x i32], ptr %10, i64 0, i64 %130
  %132 = load i32, ptr %131, align 4, !tbaa !15
  %133 = load i32, ptr %11, align 4, !tbaa !15
  %134 = add nsw i32 %133, %132
  store i32 %134, ptr %11, align 4, !tbaa !15
  br label %135

135:                                              ; preds = %118
  %136 = load i32, ptr %15, align 4, !tbaa !15
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %15, align 4, !tbaa !15
  br label %111, !llvm.loop !30

138:                                              ; preds = %117
  %139 = load i32, ptr %11, align 4, !tbaa !15
  %140 = sub nsw i32 255, %139
  %141 = getelementptr inbounds [4 x i32], ptr %10, i64 0, i64 0
  store i32 %140, ptr %141, align 16, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !15
  br label %142

142:                                              ; preds = %159, %138
  %143 = load i32, ptr %16, align 4, !tbaa !15
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.rw::Skin", ptr %144, i32 0, i32 2
  %146 = load i32, ptr %145, align 8, !tbaa !20
  %147 = icmp slt i32 %143, %146
  br i1 %147, label %149, label %148

148:                                              ; preds = %142
  store i32 10, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %162

149:                                              ; preds = %142
  %150 = load i32, ptr %16, align 4, !tbaa !15
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [4 x i32], ptr %10, i64 0, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !15
  %154 = trunc i32 %153 to i8
  %155 = load ptr, ptr %13, align 8, !tbaa !5
  %156 = load i32, ptr %16, align 4, !tbaa !15
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds i8, ptr %155, i64 %157
  store i8 %154, ptr %158, align 1, !tbaa !17
  br label %159

159:                                              ; preds = %149
  %160 = load i32, ptr %16, align 4, !tbaa !15
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %16, align 4, !tbaa !15
  br label %142, !llvm.loop !31

162:                                              ; preds = %148
  %163 = load ptr, ptr %7, align 8, !tbaa !5
  %164 = getelementptr inbounds %"struct.rw::xbox::NativeSkin", ptr %163, i32 0, i32 4
  %165 = load i32, ptr %164, align 8, !tbaa !21
  %166 = load ptr, ptr %13, align 8, !tbaa !5
  %167 = sext i32 %165 to i64
  %168 = getelementptr inbounds i8, ptr %166, i64 %167
  store ptr %168, ptr %13, align 8, !tbaa !5
  %169 = load ptr, ptr %12, align 8, !tbaa !5
  %170 = getelementptr inbounds float, ptr %169, i64 4
  store ptr %170, ptr %12, align 8, !tbaa !5
  br label %106, !llvm.loop !32

171:                                              ; preds = %106
  %172 = load ptr, ptr %4, align 8, !tbaa !5
  %173 = getelementptr inbounds %"struct.rw::xbox::InstanceDataHeader", ptr %172, i32 0, i32 5
  %174 = load i32, ptr %173, align 8, !tbaa !22
  store i32 %174, ptr %14, align 4, !tbaa !15
  %175 = load ptr, ptr %9, align 8, !tbaa !5
  %176 = load ptr, ptr %5, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.rw::Skin", ptr %176, i32 0, i32 2
  %178 = load i32, ptr %177, align 8, !tbaa !20
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds i8, ptr %175, i64 %179
  store ptr %180, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %181 = load ptr, ptr %5, align 8, !tbaa !5
  %182 = getelementptr inbounds %"struct.rw::Skin", ptr %181, i32 0, i32 5
  %183 = load ptr, ptr %182, align 8, !tbaa !33
  store ptr %183, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  br label %184

184:                                              ; preds = %217, %171
  %185 = load i32, ptr %14, align 4, !tbaa !15
  %186 = add nsw i32 %185, -1
  store i32 %186, ptr %14, align 4, !tbaa !15
  %187 = icmp ne i32 %185, 0
  br i1 %187, label %188, label %226

188:                                              ; preds = %184
  %189 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %189, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !15
  br label %190

190:                                              ; preds = %214, %188
  %191 = load i32, ptr %19, align 4, !tbaa !15
  %192 = load ptr, ptr %5, align 8, !tbaa !5
  %193 = getelementptr inbounds %"struct.rw::Skin", ptr %192, i32 0, i32 2
  %194 = load i32, ptr %193, align 8, !tbaa !20
  %195 = icmp slt i32 %191, %194
  br i1 %195, label %197, label %196

196:                                              ; preds = %190
  store i32 15, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %217

197:                                              ; preds = %190
  %198 = load ptr, ptr %7, align 8, !tbaa !5
  %199 = getelementptr inbounds %"struct.rw::xbox::NativeSkin", ptr %198, i32 0, i32 1
  %200 = load ptr, ptr %17, align 8, !tbaa !5
  %201 = load i32, ptr %19, align 4, !tbaa !15
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds i8, ptr %200, i64 %202
  %204 = load i8, ptr %203, align 1, !tbaa !17
  %205 = zext i8 %204 to i64
  %206 = getelementptr inbounds [256 x i32], ptr %199, i64 0, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !15
  %208 = mul nsw i32 3, %207
  %209 = trunc i32 %208 to i16
  %210 = load ptr, ptr %18, align 8, !tbaa !5
  %211 = load i32, ptr %19, align 4, !tbaa !15
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds i16, ptr %210, i64 %212
  store i16 %209, ptr %213, align 2, !tbaa !34
  br label %214

214:                                              ; preds = %197
  %215 = load i32, ptr %19, align 4, !tbaa !15
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %19, align 4, !tbaa !15
  br label %190, !llvm.loop !35

217:                                              ; preds = %196
  %218 = load ptr, ptr %7, align 8, !tbaa !5
  %219 = getelementptr inbounds %"struct.rw::xbox::NativeSkin", ptr %218, i32 0, i32 4
  %220 = load i32, ptr %219, align 8, !tbaa !21
  %221 = load ptr, ptr %13, align 8, !tbaa !5
  %222 = sext i32 %220 to i64
  %223 = getelementptr inbounds i8, ptr %221, i64 %222
  store ptr %223, ptr %13, align 8, !tbaa !5
  %224 = load ptr, ptr %17, align 8, !tbaa !5
  %225 = getelementptr inbounds i8, ptr %224, i64 4
  store ptr %225, ptr %17, align 8, !tbaa !5
  br label %184, !llvm.loop !36

226:                                              ; preds = %184
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  store i32 0, ptr %6, align 4
  br label %227

227:                                              ; preds = %226, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  %228 = load i32, ptr %6, align 4
  switch i32 %228, label %230 [
    i32 0, label %229
    i32 1, label %229
  ]

229:                                              ; preds = %227, %227
  ret void

230:                                              ; preds = %227
  unreachable
}

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = { "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 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !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, !11, i64 4}
!13 = !{!14, !11, i64 2048}
!14 = !{!"_ZTSN2rw4xbox10NativeSkinE", !7, i64 0, !7, i64 1024, !11, i64 2048, !6, i64 2056, !11, i64 2064}
!15 = !{!11, !11, i64 0}
!16 = !{!10, !6, i64 16}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!10, !11, i64 8}
!21 = !{!14, !11, i64 2064}
!22 = !{!23, !11, i64 16}
!23 = !{!"_ZTSN2rw4xbox18InstanceDataHeaderE", !24, i64 0, !11, i64 4, !25, i64 8, !25, 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}
!24 = !{!"_ZTSN2rw18InstanceDataHeaderE", !11, i64 0}
!25 = !{!"short", !7, i64 0}
!26 = !{!14, !6, i64 2056}
!27 = !{!10, !6, i64 40}
!28 = !{!29, !29, i64 0}
!29 = !{!"float", !7, i64 0}
!30 = distinct !{!30, !19}
!31 = distinct !{!31, !19}
!32 = distinct !{!32, !19}
!33 = !{!10, !6, i64 32}
!34 = !{!25, !25, i64 0}
!35 = distinct !{!35, !19}
!36 = distinct !{!36, !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"

@.str.10 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [80 x i8], align 1

; 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: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN2rw14mustmalloc_LOCEmjPKc(i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2rw4xbox14skinInstanceCBEPNS_8GeometryEPNS0_18InstanceDataHeaderE(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca [4 x i32], align 16
  tail call void @_ZN2rw4xbox17defaultInstanceCBEPNS_8GeometryEPNS0_18InstanceDataHeaderE(ptr noundef %0, ptr noundef %1)
  %4 = tail call noundef ptr @_ZN2rw4Skin3getEPKNS_8GeometryE(ptr noundef %0)
  %5 = icmp eq ptr %4, null
  br i1 %5, label %129, label %6

6:                                                ; preds = %2
  %7 = tail call noundef ptr @_ZN2rw14mustmalloc_LOCEmjPKc(i64 noundef 2072, i32 noundef 196886, ptr noundef nonnull @.str.10)
  %8 = getelementptr inbounds i8, ptr %4, i64 96
  store ptr %7, ptr %8, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %4, i64 4
  %10 = load i32, ptr %9, align 4, !tbaa !11
  %11 = getelementptr inbounds i8, ptr %7, i64 2048
  store i32 %10, ptr %11, align 8, !tbaa !12
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1024) %7, i8 -1, i64 1024, i1 false)
  %12 = getelementptr inbounds i8, ptr %7, i64 1024
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1024) %12, i8 0, i64 1024, i1 false)
  %13 = load i32, ptr %9, align 4, !tbaa !11
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %6
  %15 = getelementptr inbounds i8, ptr %4, i64 16
  %16 = load ptr, ptr %15, align 8, !tbaa !14
  br label %30

._crit_edge:                                      ; preds = %30, %6
  %17 = getelementptr inbounds i8, ptr %4, i64 8
  %18 = load i32, ptr %17, align 8, !tbaa !15
  %19 = mul nsw i32 %18, 3
  %20 = getelementptr inbounds i8, ptr %7, i64 2064
  store i32 %19, ptr %20, align 8, !tbaa !16
  %21 = getelementptr inbounds i8, ptr %1, i64 16
  %22 = load i32, ptr %21, align 8, !tbaa !17
  %23 = mul nsw i32 %22, %19
  %24 = sext i32 %23 to i64
  %25 = tail call noundef ptr @_ZN2rw14mustmalloc_LOCEmjPKc(i64 noundef %24, i32 noundef 196886, ptr noundef nonnull @.str.11)
  %26 = getelementptr inbounds i8, ptr %7, i64 2056
  store ptr %25, ptr %26, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #8
  %27 = load i32, ptr %21, align 8, !tbaa !17
  %.not86 = icmp eq i32 %27, 0
  br i1 %.not86, label %._crit_edge96, label %.preheader76.preheader

.preheader76.preheader:                           ; preds = %._crit_edge
  %.pre111 = load i32, ptr %17, align 8, !tbaa !15
  %28 = getelementptr inbounds i8, ptr %4, i64 40
  %29 = load ptr, ptr %28, align 8, !tbaa !22
  br label %.preheader76

30:                                               ; preds = %.lr.ph, %30
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %30 ]
  %31 = getelementptr inbounds i8, ptr %16, i64 %indvars.iv
  %32 = load i8, ptr %31, align 1, !tbaa !23
  %33 = zext i8 %32 to i32
  %34 = getelementptr inbounds [256 x i32], ptr %7, i64 0, i64 %indvars.iv
  store i32 %33, ptr %34, align 4, !tbaa !24
  %35 = load i8, ptr %31, align 1, !tbaa !23
  %36 = zext i8 %35 to i64
  %37 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %36
  %38 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %38, ptr %37, align 4, !tbaa !24
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %39 = load i32, ptr %9, align 4, !tbaa !11
  %40 = sext i32 %39 to i64
  %41 = icmp slt i64 %indvars.iv.next, %40
  br i1 %41, label %30, label %._crit_edge, !llvm.loop !25

.preheader76:                                     ; preds = %.preheader76.preheader, %._crit_edge85
  %42 = phi i32 [ %66, %._crit_edge85 ], [ %.pre111, %.preheader76.preheader ]
  %.in = phi i32 [ %43, %._crit_edge85 ], [ %27, %.preheader76.preheader ]
  %.06988 = phi ptr [ %69, %._crit_edge85 ], [ %25, %.preheader76.preheader ]
  %.07187 = phi ptr [ %70, %._crit_edge85 ], [ %29, %.preheader76.preheader ]
  %43 = add nsw i32 %.in, -1
  %44 = icmp sgt i32 %42, 1
  br i1 %44, label %.lr.ph80.preheader, label %._crit_edge81

.lr.ph80.preheader:                               ; preds = %.preheader76
  %wide.trip.count = zext nneg i32 %42 to i64
  %45 = add nsw i64 %wide.trip.count, -1
  %min.iters.check = icmp ult i32 %42, 9
  br i1 %min.iters.check, label %.lr.ph80.preheader120, label %vector.ph

.lr.ph80.preheader120:                            ; preds = %middle.block, %.lr.ph80.preheader
  %indvars.iv99.ph = phi i64 [ 1, %.lr.ph80.preheader ], [ %ind.end, %middle.block ]
  %.07278.ph = phi i32 [ 0, %.lr.ph80.preheader ], [ %57, %middle.block ]
  br label %.lr.ph80

vector.ph:                                        ; preds = %.lr.ph80.preheader
  %n.vec = and i64 %45, -8
  %ind.end = or disjoint i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %54, %vector.body ]
  %vec.phi118 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %55, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %46 = getelementptr inbounds float, ptr %.07187, i64 %offset.idx
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  %wide.load = load <4 x float>, ptr %46, align 4, !tbaa !27
  %wide.load119 = load <4 x float>, ptr %47, align 4, !tbaa !27
  %48 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %wide.load, <4 x float> <float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02>, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>)
  %49 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %wide.load119, <4 x float> <float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02>, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>)
  %50 = fptosi <4 x float> %48 to <4 x i32>
  %51 = fptosi <4 x float> %49 to <4 x i32>
  %52 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 %offset.idx
  %53 = getelementptr inbounds i8, ptr %52, i64 16
  store <4 x i32> %50, ptr %52, align 4, !tbaa !24
  store <4 x i32> %51, ptr %53, align 4, !tbaa !24
  %54 = add <4 x i32> %vec.phi, %50
  %55 = add <4 x i32> %vec.phi118, %51
  %index.next = add nuw i64 %index, 8
  %56 = icmp eq i64 %index.next, %n.vec
  br i1 %56, label %middle.block, label %vector.body, !llvm.loop !29

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %55, %54
  %57 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %45, %n.vec
  br i1 %cmp.n, label %._crit_edge81, label %.lr.ph80.preheader120

._crit_edge81:                                    ; preds = %.lr.ph80, %middle.block, %.preheader76
  %.072.lcssa = phi i32 [ 0, %.preheader76 ], [ %57, %middle.block ], [ %65, %.lr.ph80 ]
  %58 = sub nsw i32 255, %.072.lcssa
  store i32 %58, ptr %3, align 16, !tbaa !24
  %59 = icmp sgt i32 %42, 0
  br i1 %59, label %.lr.ph84, label %._crit_edge85

.lr.ph80:                                         ; preds = %.lr.ph80.preheader120, %.lr.ph80
  %indvars.iv99 = phi i64 [ %indvars.iv.next100, %.lr.ph80 ], [ %indvars.iv99.ph, %.lr.ph80.preheader120 ]
  %.07278 = phi i32 [ %65, %.lr.ph80 ], [ %.07278.ph, %.lr.ph80.preheader120 ]
  %60 = getelementptr inbounds float, ptr %.07187, i64 %indvars.iv99
  %61 = load float, ptr %60, align 4, !tbaa !27
  %62 = tail call float @llvm.fmuladd.f32(float %61, float 2.550000e+02, float 5.000000e-01)
  %63 = fptosi float %62 to i32
  %64 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 %indvars.iv99
  store i32 %63, ptr %64, align 4, !tbaa !24
  %65 = add nsw i32 %.07278, %63
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next100, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge81, label %.lr.ph80, !llvm.loop !32

._crit_edge85:                                    ; preds = %.lr.ph84, %._crit_edge81
  %66 = phi i32 [ %42, %._crit_edge81 ], [ %75, %.lr.ph84 ]
  %67 = load i32, ptr %20, align 8, !tbaa !16
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds i8, ptr %.06988, i64 %68
  %70 = getelementptr inbounds i8, ptr %.07187, i64 16
  %.not = icmp eq i32 %43, 0
  br i1 %.not, label %._crit_edge89, label %.preheader76, !llvm.loop !33

.lr.ph84:                                         ; preds = %._crit_edge81, %.lr.ph84
  %indvars.iv102 = phi i64 [ %indvars.iv.next103, %.lr.ph84 ], [ 0, %._crit_edge81 ]
  %71 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 %indvars.iv102
  %72 = load i32, ptr %71, align 4, !tbaa !24
  %73 = trunc i32 %72 to i8
  %74 = getelementptr inbounds i8, ptr %.06988, i64 %indvars.iv102
  store i8 %73, ptr %74, align 1, !tbaa !23
  %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 1
  %75 = load i32, ptr %17, align 8, !tbaa !15
  %76 = sext i32 %75 to i64
  %77 = icmp slt i64 %indvars.iv.next103, %76
  br i1 %77, label %.lr.ph84, label %._crit_edge85, !llvm.loop !34

._crit_edge89:                                    ; preds = %._crit_edge85
  %.pre110 = load i32, ptr %21, align 8, !tbaa !17
  %.not7593 = icmp eq i32 %.pre110, 0
  br i1 %.not7593, label %._crit_edge96, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %._crit_edge89
  %78 = icmp sgt i32 %66, 0
  %79 = load i32, ptr %20, align 8, !tbaa !16
  %80 = sext i32 %79 to i64
  br i1 %78, label %.preheader.us.preheader, label %._crit_edge96

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %81 = zext nneg i32 %66 to i64
  %82 = getelementptr inbounds i8, ptr %25, i64 %81
  %83 = getelementptr inbounds i8, ptr %4, i64 32
  %84 = load ptr, ptr %83, align 8, !tbaa !35
  %wide.trip.count108 = zext nneg i32 %66 to i64
  %xtraiter = and i64 %wide.trip.count108, 3
  %85 = icmp ult i32 %66, 4
  %unroll_iter = and i64 %wide.trip.count108, 2147483644
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge92.us
  %.in112 = phi i32 [ %86, %._crit_edge92.us ], [ %.pre110, %.preheader.us.preheader ]
  %.06595.us = phi ptr [ %128, %._crit_edge92.us ], [ %84, %.preheader.us.preheader ]
  %.17094.us = phi ptr [ %127, %._crit_edge92.us ], [ %82, %.preheader.us.preheader ]
  %86 = add nsw i32 %.in112, -1
  br i1 %85, label %._crit_edge92.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %indvars.iv105 = phi i64 [ %indvars.iv.next106.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %87 = getelementptr inbounds i8, ptr %.06595.us, i64 %indvars.iv105
  %88 = load i8, ptr %87, align 1, !tbaa !23
  %89 = zext i8 %88 to i64
  %90 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !24
  %92 = trunc i32 %91 to i16
  %93 = mul i16 %92, 3
  %94 = getelementptr inbounds i16, ptr %.17094.us, i64 %indvars.iv105
  store i16 %93, ptr %94, align 2, !tbaa !36
  %indvars.iv.next106 = or disjoint i64 %indvars.iv105, 1
  %95 = getelementptr inbounds i8, ptr %.06595.us, i64 %indvars.iv.next106
  %96 = load i8, ptr %95, align 1, !tbaa !23
  %97 = zext i8 %96 to i64
  %98 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !24
  %100 = trunc i32 %99 to i16
  %101 = mul i16 %100, 3
  %102 = getelementptr inbounds i16, ptr %.17094.us, i64 %indvars.iv.next106
  store i16 %101, ptr %102, align 2, !tbaa !36
  %indvars.iv.next106.1 = or disjoint i64 %indvars.iv105, 2
  %103 = getelementptr inbounds i8, ptr %.06595.us, i64 %indvars.iv.next106.1
  %104 = load i8, ptr %103, align 1, !tbaa !23
  %105 = zext i8 %104 to i64
  %106 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !24
  %108 = trunc i32 %107 to i16
  %109 = mul i16 %108, 3
  %110 = getelementptr inbounds i16, ptr %.17094.us, i64 %indvars.iv.next106.1
  store i16 %109, ptr %110, align 2, !tbaa !36
  %indvars.iv.next106.2 = or disjoint i64 %indvars.iv105, 3
  %111 = getelementptr inbounds i8, ptr %.06595.us, i64 %indvars.iv.next106.2
  %112 = load i8, ptr %111, align 1, !tbaa !23
  %113 = zext i8 %112 to i64
  %114 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %113
  %115 = load i32, ptr %114, align 4, !tbaa !24
  %116 = trunc i32 %115 to i16
  %117 = mul i16 %116, 3
  %118 = getelementptr inbounds i16, ptr %.17094.us, i64 %indvars.iv.next106.2
  store i16 %117, ptr %118, align 2, !tbaa !36
  %indvars.iv.next106.3 = add nuw nsw i64 %indvars.iv105, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge92.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !37

._crit_edge92.us.unr-lcssa:                       ; preds = %.preheader.us.new, %.preheader.us
  %indvars.iv105.unr = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next106.3, %.preheader.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge92.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge92.us.unr-lcssa, %.epil.preheader
  %indvars.iv105.epil = phi i64 [ %indvars.iv.next106.epil, %.epil.preheader ], [ %indvars.iv105.unr, %._crit_edge92.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge92.us.unr-lcssa ]
  %119 = getelementptr inbounds i8, ptr %.06595.us, i64 %indvars.iv105.epil
  %120 = load i8, ptr %119, align 1, !tbaa !23
  %121 = zext i8 %120 to i64
  %122 = getelementptr inbounds [256 x i32], ptr %12, i64 0, i64 %121
  %123 = load i32, ptr %122, align 4, !tbaa !24
  %124 = trunc i32 %123 to i16
  %125 = mul i16 %124, 3
  %126 = getelementptr inbounds i16, ptr %.17094.us, i64 %indvars.iv105.epil
  store i16 %125, ptr %126, align 2, !tbaa !36
  %indvars.iv.next106.epil = add nuw nsw i64 %indvars.iv105.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge92.us, label %.epil.preheader, !llvm.loop !38

._crit_edge92.us:                                 ; preds = %.epil.preheader, %._crit_edge92.us.unr-lcssa
  %127 = getelementptr inbounds i8, ptr %.17094.us, i64 %80
  %128 = getelementptr inbounds i8, ptr %.06595.us, i64 4
  %.not75.us = icmp eq i32 %86, 0
  br i1 %.not75.us, label %._crit_edge96, label %.preheader.us, !llvm.loop !40

._crit_edge96:                                    ; preds = %._crit_edge92.us, %._crit_edge, %.preheader.lr.ph, %._crit_edge89
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  br label %129

129:                                              ; preds = %2, %._crit_edge96
  ret void
}

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #7

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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, !7, i64 4}
!12 = !{!13, !7, i64 2048}
!13 = !{!"_ZTSN2rw4xbox10NativeSkinE", !8, i64 0, !8, i64 1024, !7, i64 2048, !10, i64 2056, !7, i64 2064}
!14 = !{!6, !10, i64 16}
!15 = !{!6, !7, i64 8}
!16 = !{!13, !7, i64 2064}
!17 = !{!18, !7, i64 16}
!18 = !{!"_ZTSN2rw4xbox18InstanceDataHeaderE", !19, i64 0, !7, i64 4, !20, i64 8, !20, 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}
!19 = !{!"_ZTSN2rw18InstanceDataHeaderE", !7, i64 0}
!20 = !{!"short", !8, i64 0}
!21 = !{!13, !10, i64 2056}
!22 = !{!6, !10, i64 40}
!23 = !{!8, !8, i64 0}
!24 = !{!7, !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!28, !28, i64 0}
!28 = !{!"float", !8, i64 0}
!29 = distinct !{!29, !26, !30, !31}
!30 = !{!"llvm.loop.isvectorized", i32 1}
!31 = !{!"llvm.loop.unroll.runtime.disable"}
!32 = distinct !{!32, !26, !31, !30}
!33 = distinct !{!33, !26}
!34 = distinct !{!34, !26}
!35 = !{!6, !10, i64 32}
!36 = !{!20, !20, i64 0}
!37 = distinct !{!37, !26}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.unroll.disable"}
!40 = distinct !{!40, !26}


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